|
|
!(function(){var zA=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[2303],{70557:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},27812:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},89489:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},59477:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},40001:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},26227:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},49198:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},84105:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},18785:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},87169:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},73331:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},15277:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},52671:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},8657:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},56082:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},33853:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},15075:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},43531:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},61485:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},38819:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},47472:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},95869:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},87395:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return Fe.createElement(ie.Z,(0,xe.Z)({},o,{ref:L,icon:Me}))},O=Fe.forwardRef(Y),I=O},35593:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return kt}});var xe=g(44127),Fe=g(72071),se=g(6620),Me=g(43403),ie=g(92310),Y=g.n(ie),O=g(29301),I=g(76846),n=g(96452),o=g(6089),L=g(80402),p=g(34280),a=g(49658),d=g(59301),m=g(96663),S=g(77900),$=g(8654);function F(K){var y=K.prefixCls,h=K.align,D=K.arrow,Ae=K.arrowPos,Z=D||{},k=Z.className,te=Z.content,Se=Ae.x,Be=Se===void 0?0:Se,Ie=Ae.y,Ge=Ie===void 0?0:Ie,mt=d.useRef();if(!h||!h.points)return null;var $e={position:"absolute"};if(h.autoArrow!==!1){var tt=h.points[0],dt=h.points[1],Ze=tt[0],Ke=tt[1],Bt=dt[0],Vt=dt[1];Ze===Bt||!["t","b"].includes(Ze)?$e.top=Ge:Ze==="t"?$e.top=0:$e.bottom=0,Ke===Vt||!["l","r"].includes(Ke)?$e.left=Be:Ke==="l"?$e.left=0:$e.right=0}return d.createElement("div",{ref:mt,className:Y()("".concat(y,"-arrow"),k),style:$e},te)}function H(K){var y=K.prefixCls,h=K.open,D=K.zIndex,Ae=K.mask,Z=K.motion;return Ae?d.createElement(S.default,(0,m.Z)({},Z,{motionAppear:!0,visible:h,removeOnLeave:!0}),function(k){var te=k.className;return d.createElement("div",{style:{zIndex:D},className:Y()("".concat(y,"-mask"),te)})}):null}var V=d.memo(function(K){var y=K.children;return y},function(K,y){return y.cache}),ee=V,B=d.forwardRef(function(K,y){var h=K.popup,D=K.className,Ae=K.prefixCls,Z=K.style,k=K.target,te=K.onVisibleChanged,Se=K.open,Be=K.keepDom,Ie=K.fresh,Ge=K.onClick,mt=K.mask,$e=K.arrow,tt=K.arrowPos,dt=K.align,Ze=K.motion,Ke=K.maskMotion,Bt=K.forceRender,Vt=K.getPopupContainer,Ut=K.autoDestroy,mr=K.portal,br=K.zIndex,re=K.onMouseEnter,ue=K.onMouseLeave,rr=K.onPointerEnter,Qe=K.ready,ot=K.offsetX,Jr=K.offsetY,Tt=K.offsetR,Kt=K.offsetB,qt=K.onAlign,et=K.onPrepare,ft=K.stretch,ht=K.targetWidth,Gt=K.targetHeight,Oe=typeof h=="function"?h():h,on=Se||Be,Mt=(Vt==null?void 0:Vt.length)>0,On=d.useState(!Vt||!Mt),Xn=(0,Fe.Z)(On,2),yi=Xn[0],$i=Xn[1];if((0,p.Z)(function(){!yi&&Mt&&k&&$i(!0)},[yi,Mt,k]),!yi)return null;var Dn="auto",zn={left:"-1000vw",top:"-1000vh",right:Dn,bottom:Dn};if(Qe||!Se){var Xt,$r=dt.points,en=dt.dynamicInset||((Xt=dt._experimental)===null||Xt===void 0?void 0:Xt.dynamicInset),Pt=en&&$r[0][1]==="r",Et=en&&$r[0][0]==="b";Pt?(zn.right=Tt,zn.left=Dn):(zn.left=ot,zn.right=Dn),Et?(zn.bottom=Kt,zn.top=Dn):(zn.top=Jr,zn.bottom=Dn)}var _r={};return ft&&(ft.includes("height")&&Gt?_r.height=Gt:ft.includes("minHeight")&&Gt&&(_r.minHeight=Gt),ft.includes("width")&&ht?_r.width=ht:ft.includes("minWidth")&&ht&&(_r.minWidth=ht)),Se||(_r.pointerEvents="none"),d.createElement(mr,{open:Bt||on,getContainer:Vt&&function(){return Vt(k)},autoDestroy:Ut},d.createElement(H,{prefixCls:Ae,open:Se,zIndex:br,mask:mt,motion:Ke}),d.createElement(O.Z,{onResize:qt,disabled:!Se},function(Fr){return d.createElement(S.default,(0,m.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Bt,leavedClassName:"".concat(Ae,"-hidden")},Ze,{onAppearPrepare:et,onEnterPrepare:et,visible:Se,onVisibleChanged:function(an){var _n;Ze==null||(_n=Ze.onVisibleChanged)===null||_n===void 0||_n.call(Ze,an),te(an)}}),function(In,an){var _n=In.className,mn=In.style,Mn=Y()(Ae,_n,D);return d.createElement("div",{ref:(0,$.sQ)(Fr,y,an),className:Mn,style:(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({"--arrow-x":"".concat(tt.x||0,"px"),"--arrow-y":"".concat(tt.y||0,"px")},zn),_r),mn),{},{boxSizing:"border-box",zIndex:br},Z),onMouseEnter:re,onMouseLeave:ue,onPointerEnter:rr,onClick:Ge},$e&&d.createElement(F,{prefixCls:Ae,arrow:$e,arrowPos:tt,align:dt}),d.createElement(ee,{cache:!Se&&!Ie},Oe))})}))}),G=B,le=d.forwardRef(function(K,y){var h=K.children,D=K.getTriggerDOMNode,Ae=(0,$.Yr)(h),Z=d.useCallback(function(te){(0,$.mH)(y,D?D(te):te)},[D]),k=(0,$.x1)(Z,h.ref);return Ae?d.cloneElement(h,{ref:k}):h}),J=le,we=d.createContext(null),Ce=we;function Le(K){return K?Array.isArray(K)?K:[K]:[]}function ae(K,y,h,D){return d.useMemo(function(){var Ae=Le(h!=null?h:y),Z=Le(D!=null?D:y),k=new Set(Ae),te=new Set(Z);return K&&(k.has("hover")&&(k.delete("hover"),k.add("click")),te.has("hover")&&(te.delete("hover"),te.add("click"))),[k,te]},[K,y,h,D])}var pe=g(29194);function T(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2?arguments[2]:void 0;return h?K[0]===y[0]:K[0]===y[0]&&K[1]===y[1]}function Ee(K,y,h,D){for(var Ae=h.points,Z=Object.keys(K),k=0;k<Z.length;k+=1){var te,Se=Z[k];if(T((te=K[Se])===null||te===void 0?void 0:te.points,Ae,D))return"".concat(y,"-placement-").concat(Se)}return""}function oe(K,y,h,D){return y||(h?{motionName:"".concat(K,"-").concat(h)}:D?{motionName:D}:null)}function fe(K){return K.ownerDocument.defaultView}function ye(K){for(var y=[],h=K==null?void 0:K.parentElement,D=["hidden","scroll","clip","auto"];h;){var Ae=fe(h).getComputedStyle(h),Z=Ae.overflowX,k=Ae.overflowY,te=Ae.overflow;[Z,k,te].some(function(Se){return D.includes(Se)})&&y.push(h),h=h.parentElement}return y}function _(K){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(K)?y:K}function N(K){return _(parseFloat(K),0)}function X(K,y){var h=(0,xe.Z)({},K);return(y||[]).forEach(function(D){if(!(D instanceof HTMLBodyElement||D instanceof HTMLHtmlElement)){var Ae=fe(D).getComputedStyle(D),Z=Ae.overflow,k=Ae.overflowClipMargin,te=Ae.borderTopWidth,Se=Ae.borderBottomWidth,Be=Ae.borderLeftWidth,Ie=Ae.borderRightWidth,Ge=D.getBoundingClientRect(),mt=D.offsetHeight,$e=D.clientHeight,tt=D.offsetWidth,dt=D.clientWidth,Ze=N(te),Ke=N(Se),Bt=N(Be),Vt=N(Ie),Ut=_(Math.round(Ge.width/tt*1e3)/1e3),mr=_(Math.round(Ge.height/mt*1e3)/1e3),br=(tt-dt-Bt-Vt)*Ut,re=(mt-$e-Ze-Ke)*mr,ue=Ze*mr,rr=Ke*mr,Qe=Bt*Ut,ot=Vt*Ut,Jr=0,Tt=0;if(Z==="clip"){var Kt=N(k);Jr=Kt*Ut,Tt=Kt*mr}var qt=Ge.x+Qe-Jr,et=Ge.y+ue-Tt,ft=qt+Ge.width+2*Jr-Qe-ot-br,ht=et+Ge.height+2*Tt-ue-rr-re;h.left=Math.max(h.left,qt),h.top=Math.max(h.top,et),h.right=Math.min(h.right,ft),h.bottom=Math.min(h.bottom,ht)}}),h}function he(K){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h="".concat(y),D=h.match(/^(.*)\%$/);return D?K*(parseFloat(D[1])/100):parseFloat(h)}function qe(K,y){var h=y||[],D=(0,Fe.Z)(h,2),Ae=D[0],Z=D[1];return[he(K.width,Ae),he(K.height,Z)]}function st(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[K[0],K[1]]}function nt(K,y){var h=y[0],D=y[1],Ae,Z;return h==="t"?Z=K.y:h==="b"?Z=K.y+K.height:Z=K.y+K.height/2,D==="l"?Ae=K.x:D==="r"?Ae=K.x+K.width:Ae=K.x+K.width/2,{x:Ae,y:Z}}function Rt(K,y){var h={t:"b",b:"t",l:"r",r:"l"};return K.map(function(D,Ae){return Ae===y?h[D]||"c":D}).join("")}function sr(K,y,h,D,Ae,Z,k){var te=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ae[D]||{}}),Se=(0,Fe.Z)(te,2),Be=Se[0],Ie=Se[1],Ge=d.useRef(0),mt=d.useMemo(function(){return y?ye(y):[]},[y]),$e=d.useRef({}),tt=function(){$e.current={}};K||tt();var dt=(0,o.Z)(function(){if(y&&h&&K){let Ki=function(ya,Pa){var Os=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mn,us=Oe.x+ya,bs=Oe.y+Pa,ts=us+Xt,Eo=bs+zn,po=Math.max(us,Os.left),qs=Math.max(bs,Os.top),$s=Math.min(ts,Os.right),Ps=Math.min(Eo,Os.bottom);return Math.max(0,($s-po)*(Ps-qs))},ki=function(){Fn=Oe.y+Cn,Zn=Fn+zn,Ei=Oe.x+Sr,ji=Ei+Xt};var Bt,Vt,Ut=y,mr=Ut.ownerDocument,br=fe(Ut),re=br.getComputedStyle(Ut),ue=re.width,rr=re.height,Qe=re.position,ot=Ut.style.left,Jr=Ut.style.top,Tt=Ut.style.right,Kt=Ut.style.bottom,qt=Ut.style.overflow,et=(0,xe.Z)((0,xe.Z)({},Ae[D]),Z),ft=mr.createElement("div");(Bt=Ut.parentElement)===null||Bt===void 0||Bt.appendChild(ft),ft.style.left="".concat(Ut.offsetLeft,"px"),ft.style.top="".concat(Ut.offsetTop,"px"),ft.style.position=Qe,ft.style.height="".concat(Ut.offsetHeight,"px"),ft.style.width="".concat(Ut.offsetWidth,"px"),Ut.style.left="0",Ut.style.top="0",Ut.style.right="auto",Ut.style.bottom="auto",Ut.style.overflow="hidden";var ht;if(Array.isArray(h))ht={x:h[0],y:h[1],width:0,height:0};else{var Gt=h.getBoundingClientRect();ht={x:Gt.x,y:Gt.y,width:Gt.width,height:Gt.height}}var Oe=Ut.getBoundingClientRect(),on=mr.documentElement,Mt=on.clientWidth,On=on.clientHeight,Xn=on.scrollWidth,yi=on.scrollHeight,$i=on.scrollTop,Dn=on.scrollLeft,zn=Oe.height,Xt=Oe.width,$r=ht.height,en=ht.width,Pt={left:0,top:0,right:Mt,bottom:On},Et={left:-Dn,top:-$i,right:Xn-Dn,bottom:yi-$i},_r=et.htmlRegion,Fr="visible",In="visibleFirst";_r!=="scroll"&&_r!==In&&(_r=Fr);var an=_r===In,_n=X(Et,mt),mn=X(Pt,mt),Mn=_r===Fr?mn:_n,ei=an?mn:Mn;Ut.style.left="auto",Ut.style.top="auto",Ut.style.right="0",Ut.style.bottom="0";var Kr=Ut.getBoundingClientRect();Ut.style.left=ot,Ut.style.top=Jr,Ut.style.right=Tt,Ut.style.bottom=Kt,Ut.style.overflow=qt,(Vt=Ut.parentElement)===null||Vt===void 0||Vt.removeChild(ft);var Vr=_(Math.round(Xt/parseFloat(ue)*1e3)/1e3),Tn=_(Math.round(zn/parseFloat(rr)*1e3)/1e3);if(Vr===0||Tn===0||(0,I.Sh)(h)&&!(0,pe.Z)(h))return;var Sn=et.offset,Un=et.targetOffset,Vn=qe(Oe,Sn),Ui=(0,Fe.Z)(Vn,2),di=Ui[0],bn=Ui[1],dr=qe(ht,Un),vr=(0,Fe.Z)(dr,2),Ir=vr[0],Yr=vr[1];ht.x-=Ir,ht.y-=Yr;var Mr=et.points||[],cn=(0,Fe.Z)(Mr,2),nn=cn[0],jn=cn[1],ti=st(jn),ui=st(nn),Ri=nt(ht,ti),Qi=nt(Oe,ui),Pi=(0,xe.Z)({},et),Sr=Ri.x-Qi.x+di,Cn=Ri.y-Qi.y+bn,fn=Ki(Sr,Cn),hi=Ki(Sr,Cn,mn),ii=nt(ht,["t","l"]),ri=nt(Oe,["t","l"]),bi=nt(ht,["b","r"]),Ti=nt(Oe,["b","r"]),Bi=et.overflow||{},Zi=Bi.adjustX,ua=Bi.adjustY,xi=Bi.shiftX,gn=Bi.shiftY,Ht=function(Pa){return typeof Pa=="boolean"?Pa:Pa>=0},Fn,Zn,Ei,ji;ki();var da=Ht(ua),Ea=ui[0]===ti[0];if(da&&ui[0]==="t"&&(Zn>ei.bottom||$e.current.bt)){var qi=Cn;Ea?qi-=zn-$r:qi=ii.y-Ti.y-bn;var Sa=Ki(Sr,qi),_i=Ki(Sr,qi,mn);Sa>fn||Sa===fn&&(!an||_i>=hi)?($e.current.bt=!0,Cn=qi,bn=-bn,Pi.points=[Rt(ui,0),Rt(ti,0)]):$e.current.bt=!1}if(da&&ui[0]==="b"&&(Fn<ei.top||$e.current.tb)){var ai=Cn;Ea?ai+=zn-$r:ai=bi.y-ri.y-bn;var zi=Ki(Sr,ai),na=Ki(Sr,ai,mn);zi>fn||zi===fn&&(!an||na>=hi)?($e.current.tb=!0,Cn=ai,bn=-bn,Pi.points=[Rt(ui,0),Rt(ti,0)]):$e.current.tb=!1}var Ca=Ht(Zi),ys=ui[1]===ti[1];if(Ca&&ui[1]==="l"&&(ji>ei.right||$e.current.rl)){var oi=Sr;ys?oi-=Xt-en:oi=ii.x-Ti.x-di;var _a=Ki(oi,Cn),ga=Ki(oi,Cn,mn);_a>fn||_a===fn&&(!an||ga>=hi)?($e.current.rl=!0,Sr=oi,di=-di,Pi.points=[Rt(ui,1),Rt(ti,1)]):$e.current.rl=!1}if(Ca&&ui[1]==="r"&&(Ei<ei.left||$e.current.lr)){var Ua=Sr;ys?Ua+=Xt-en:Ua=bi.x-ri.x-di;var Cs=Ki(Ua,Cn),ns=Ki(Ua,Cn,mn);Cs>fn||Cs===fn&&(!an||ns>=hi)?($e.current.lr=!0,Sr=Ua,di=-di,Pi.points=[Rt(ui,1),Rt(ti,1)]):$e.current.lr=!1}ki();var Fa=xi===!0?0:xi;typeof Fa=="number"&&(Ei<mn.left&&(Sr-=Ei-mn.left-di,ht.x+en<mn.left+Fa&&(Sr+=ht.x-mn.left+en-Fa)),ji>mn.right&&(Sr-=ji-mn.right-di,ht.x>mn.right-Fa&&(Sr+=ht.x-mn.right+Fa)));var Ni=gn===!0?0:gn;typeof Ni=="number"&&(Fn<mn.top&&(Cn-=Fn-mn.top-bn,ht.y+$r<mn.top+Ni&&(Cn+=ht.y-mn.top+$r-Ni)),Zn>mn.bottom&&(Cn-=Zn-mn.bottom-bn,ht.y>mn.bottom-Ni&&(Cn+=ht.y-mn.bottom+Ni)));var oa=Oe.x+Sr,fs=oa+Xt,is=Oe.y+Cn,es=is+zn,Yi=ht.x,hs=Yi+en,aa=ht.y,co=aa+$r,js=Math.max(oa,Yi),wo=Math.min(fs,hs),As=(js+wo)/2,xo=As-oa,as=Math.max(is,aa),Yn=Math.min(es,co),Da=(as+Yn)/2,io=Da-is;k==null||k(y,Pi);var Vi=Kr.right-Oe.x-(Sr+Oe.width),ea=Kr.bottom-Oe.y-(Cn+Oe.height);Ie({ready:!0,offsetX:Sr/Vr,offsetY:Cn/Tn,offsetR:Vi/Vr,offsetB:ea/Tn,arrowX:xo/Vr,arrowY:io/Tn,scaleX:Vr,scaleY:Tn,align:Pi})}}),Ze=function(){Ge.current+=1;var Vt=Ge.current;Promise.resolve().then(function(){Ge.current===Vt&&dt()})},Ke=function(){Ie(function(Vt){return(0,xe.Z)((0,xe.Z)({},Vt),{},{ready:!1})})};return(0,p.Z)(Ke,[D]),(0,p.Z)(function(){K||Ke()},[K]),[Be.ready,Be.offsetX,Be.offsetY,Be.offsetR,Be.offsetB,Be.arrowX,Be.arrowY,Be.scaleX,Be.scaleY,Be.align,Ze]}var Jt=g(19127);function We(K,y,h,D,Ae){(0,p.Z)(function(){if(K&&y&&h){let Ge=function(){D(),Ae()};var Z=y,k=h,te=ye(Z),Se=ye(k),Be=fe(k),Ie=new Set([Be].concat((0,Jt.Z)(te),(0,Jt.Z)(Se)));return Ie.forEach(function(mt){mt.addEventListener("scroll",Ge,{passive:!0})}),Be.addEventListener("resize",Ge,{passive:!0}),D(),function(){Ie.forEach(function(mt){mt.removeEventListener("scroll",Ge),Be.removeEventListener("resize",Ge)})}}},[K,y,h])}var Er=g(48736),xr=g(16089);function Wr(K,y,h,D,Ae,Z,k,te){var Se=d.useRef(K),Be=d.useRef(!1);Se.current!==K&&(Be.current=!0,Se.current=K),d.useEffect(function(){var Ie=(0,xr.Z)(function(){Be.current=!1});return function(){xr.Z.cancel(Ie)}},[K]),d.useEffect(function(){if(y&&D&&(!Ae||Z)){var Ie=function(){var Qe=!1,ot=function(Kt){var qt=Kt.target;Qe=k(qt)},Jr=function(Kt){var qt=Kt.target;!Be.current&&Se.current&&!Qe&&!k(qt)&&te(!1)};return[ot,Jr]},Ge=Ie(),mt=(0,Fe.Z)(Ge,2),$e=mt[0],tt=mt[1],dt=Ie(),Ze=(0,Fe.Z)(dt,2),Ke=Ze[0],Bt=Ze[1],Vt=fe(D);Vt.addEventListener("mousedown",$e,!0),Vt.addEventListener("click",tt,!0),Vt.addEventListener("contextmenu",tt,!0);var Ut=(0,n.A)(h);if(Ut&&(Ut.addEventListener("mousedown",Ke,!0),Ut.addEventListener("click",Bt,!0),Ut.addEventListener("contextmenu",Bt,!0)),0)var mr,br,re,ue;return function(){Vt.removeEventListener("mousedown",$e,!0),Vt.removeEventListener("click",tt,!0),Vt.removeEventListener("contextmenu",tt,!0),Ut&&(Ut.removeEventListener("mousedown",Ke,!0),Ut.removeEventListener("click",Bt,!0),Ut.removeEventListener("contextmenu",Bt,!0))}}},[y,h,D,Ae,Z])}var Cr=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function _e(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Me.Z,y=d.forwardRef(function(h,D){var Ae=h.prefixCls,Z=Ae===void 0?"rc-trigger-popup":Ae,k=h.children,te=h.action,Se=te===void 0?"hover":te,Be=h.showAction,Ie=h.hideAction,Ge=h.popupVisible,mt=h.defaultPopupVisible,$e=h.onPopupVisibleChange,tt=h.afterPopupVisibleChange,dt=h.mouseEnterDelay,Ze=h.mouseLeaveDelay,Ke=Ze===void 0?.1:Ze,Bt=h.focusDelay,Vt=h.blurDelay,Ut=h.mask,mr=h.maskClosable,br=mr===void 0?!0:mr,re=h.getPopupContainer,ue=h.forceRender,rr=h.autoDestroy,Qe=h.destroyPopupOnHide,ot=h.popup,Jr=h.popupClassName,Tt=h.popupStyle,Kt=h.popupPlacement,qt=h.builtinPlacements,et=qt===void 0?{}:qt,ft=h.popupAlign,ht=h.zIndex,Gt=h.stretch,Oe=h.getPopupClassNameFromAlign,on=h.fresh,Mt=h.alignPoint,On=h.onPopupClick,Xn=h.onPopupAlign,yi=h.arrow,$i=h.popupMotion,Dn=h.maskMotion,zn=h.popupTransitionName,Xt=h.popupAnimation,$r=h.maskTransitionName,en=h.maskAnimation,Pt=h.className,Et=h.getTriggerDOMNode,_r=(0,se.Z)(h,Cr),Fr=rr||Qe||!1,In=d.useState(!1),an=(0,Fe.Z)(In,2),_n=an[0],mn=an[1];(0,p.Z)(function(){mn((0,a.Z)())},[]);var Mn=d.useRef({}),ei=d.useContext(Ce),Kr=d.useMemo(function(){return{registerSubPopup:function(pi,la){Mn.current[pi]=la,ei==null||ei.registerSubPopup(pi,la)}}},[ei]),Vr=(0,L.Z)(),Tn=d.useState(null),Sn=(0,Fe.Z)(Tn,2),Un=Sn[0],Vn=Sn[1],Ui=(0,o.Z)(function(Fi){(0,I.Sh)(Fi)&&Un!==Fi&&Vn(Fi),ei==null||ei.registerSubPopup(Vr,Fi)}),di=d.useState(null),bn=(0,Fe.Z)(di,2),dr=bn[0],vr=bn[1],Ir=d.useRef(null),Yr=(0,o.Z)(function(Fi){(0,I.Sh)(Fi)&&dr!==Fi&&(vr(Fi),Ir.current=Fi)}),Mr=d.Children.only(k),cn=(Mr==null?void 0:Mr.props)||{},nn={},jn=(0,o.Z)(function(Fi){var pi,la,ps=dr;return(ps==null?void 0:ps.contains(Fi))||((pi=(0,n.A)(ps))===null||pi===void 0?void 0:pi.host)===Fi||Fi===ps||(Un==null?void 0:Un.contains(Fi))||((la=(0,n.A)(Un))===null||la===void 0?void 0:la.host)===Fi||Fi===Un||Object.values(Mn.current).some(function(Oa){return(Oa==null?void 0:Oa.contains(Fi))||Fi===Oa})}),ti=oe(Z,$i,Xt,zn),ui=oe(Z,Dn,en,$r),Ri=d.useState(mt||!1),Qi=(0,Fe.Z)(Ri,2),Pi=Qi[0],Sr=Qi[1],Cn=Ge!=null?Ge:Pi,fn=(0,o.Z)(function(Fi){Ge===void 0&&Sr(Fi)});(0,p.Z)(function(){Sr(Ge||!1)},[Ge]);var hi=d.useRef(Cn);hi.current=Cn;var ii=d.useRef([]);ii.current=[];var ri=(0,o.Z)(function(Fi){var pi;fn(Fi),((pi=ii.current[ii.current.length-1])!==null&&pi!==void 0?pi:Cn)!==Fi&&(ii.current.push(Fi),$e==null||$e(Fi))}),bi=d.useRef(),Ti=function(){clearTimeout(bi.current)},Bi=function(pi){var la=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ti(),la===0?ri(pi):bi.current=setTimeout(function(){ri(pi)},la*1e3)};d.useEffect(function(){return Ti},[]);var Zi=d.useState(!1),ua=(0,Fe.Z)(Zi,2),xi=ua[0],gn=ua[1];(0,p.Z)(function(Fi){(!Fi||Cn)&&gn(!0)},[Cn]);var Ht=d.useState(null),Fn=(0,Fe.Z)(Ht,2),Zn=Fn[0],Ei=Fn[1],ji=d.useState([0,0]),da=(0,Fe.Z)(ji,2),Ea=da[0],qi=da[1],Sa=function(pi){qi([pi.clientX,pi.clientY])},_i=sr(Cn,Un,Mt?Ea:dr,Kt,et,ft,Xn),ai=(0,Fe.Z)(_i,11),zi=ai[0],na=ai[1],Ca=ai[2],ys=ai[3],oi=ai[4],_a=ai[5],ga=ai[6],Ua=ai[7],Cs=ai[8],ns=ai[9],Fa=ai[10],Ni=ae(_n,Se,Be,Ie),oa=(0,Fe.Z)(Ni,2),fs=oa[0],is=oa[1],es=fs.has("click"),Yi=is.has("click")||is.has("contextMenu"),hs=(0,o.Z)(function(){xi||Fa()}),aa=function(){hi.current&&Mt&&Yi&&Bi(!1)};We(Cn,dr,Un,hs,aa),(0,p.Z)(function(){hs()},[Ea,Kt]),(0,p.Z)(function(){Cn&&!(et!=null&&et[Kt])&&hs()},[JSON.stringify(ft)]);var co=d.useMemo(function(){var Fi=Ee(et,Z,ns,Mt);return Y()(Fi,Oe==null?void 0:Oe(ns))},[ns,Oe,et,Z,Mt]);d.useImperativeHandle(D,function(){return{nativeElement:Ir.current,forceAlign:hs}});var js=d.useState(0),wo=(0,Fe.Z)(js,2),As=wo[0],xo=wo[1],as=d.useState(0),Yn=(0,Fe.Z)(as,2),Da=Yn[0],io=Yn[1],Vi=function(){if(Gt&&dr){var pi=dr.getBoundingClientRect();xo(pi.width),io(pi.height)}},ea=function(){Vi(),hs()},Ki=function(pi){gn(!1),Fa(),tt==null||tt(pi)},ki=function(){return new Promise(function(pi){Vi(),Ei(function(){return pi})})};(0,p.Z)(function(){Zn&&(Fa(),Zn(),Ei(null))},[Zn]);function ya(Fi,pi,la,ps){nn[Fi]=function(Oa){var ks;ps==null||ps(Oa),Bi(pi,la);for(var Gs=arguments.length,mo=new Array(Gs>1?Gs-1:0),Ns=1;Ns<Gs;Ns++)mo[Ns-1]=arguments[Ns];(ks=cn[Fi])===null||ks===void 0||ks.call.apply(ks,[cn,Oa].concat(mo))}}(es||Yi)&&(nn.onClick=function(Fi){var pi;hi.current&&Yi?Bi(!1):!hi.current&&es&&(Sa(Fi),Bi(!0));for(var la=arguments.length,ps=new Array(la>1?la-1:0),Oa=1;Oa<la;Oa++)ps[Oa-1]=arguments[Oa];(pi=cn.onClick)===null||pi===void 0||pi.call.apply(pi,[cn,Fi].concat(ps))}),Wr(Cn,Yi,dr,Un,Ut,br,jn,Bi);var Pa=fs.has("hover"),Os=is.has("hover"),us,bs;Pa&&(ya("onMouseEnter",!0,dt,function(Fi){Sa(Fi)}),ya("onPointerEnter",!0,dt,function(Fi){Sa(Fi)}),us=function(pi){(Cn||xi)&&Un!==null&&Un!==void 0&&Un.contains(pi.target)&&Bi(!0,dt)},Mt&&(nn.onMouseMove=function(Fi){var pi;(pi=cn.onMouseMove)===null||pi===void 0||pi.call(cn,Fi)})),Os&&(ya("onMouseLeave",!1,Ke),ya("onPointerLeave",!1,Ke),bs=function(){Bi(!1,Ke)}),fs.has("focus")&&ya("onFocus",!0,Bt),is.has("focus")&&ya("onBlur",!1,Vt),fs.has("contextMenu")&&(nn.onContextMenu=function(Fi){var pi;hi.current&&is.has("contextMenu")?Bi(!1):(Sa(Fi),Bi(!0)),Fi.preventDefault();for(var la=arguments.length,ps=new Array(la>1?la-1:0),Oa=1;Oa<la;Oa++)ps[Oa-1]=arguments[Oa];(pi=cn.onContextMenu)===null||pi===void 0||pi.call.apply(pi,[cn,Fi].concat(ps))}),Pt&&(nn.className=Y()(cn.className,Pt));var ts=(0,xe.Z)((0,xe.Z)({},cn),nn),Eo={},po=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];po.forEach(function(Fi){_r[Fi]&&(Eo[Fi]=function(){for(var pi,la=arguments.length,ps=new Array(la),Oa=0;Oa<la;Oa++)ps[Oa]=arguments[Oa];(pi=ts[Fi])===null||pi===void 0||pi.call.apply(pi,[ts].concat(ps)),_r[Fi].apply(_r,ps)})});var qs=d.cloneElement(Mr,(0,xe.Z)((0,xe.Z)({},ts),Eo)),$s={x:_a,y:ga},Ps=yi?(0,xe.Z)({},yi!==!0?yi:{}):null;return d.createElement(d.Fragment,null,d.createElement(O.Z,{disabled:!Cn,ref:Yr,onResize:ea},d.createElement(J,{getTriggerDOMNode:Et},qs)),d.createElement(Ce.Provider,{value:Kr},d.createElement(G,{portal:K,ref:Ui,prefixCls:Z,popup:ot,className:Y()(Jr,co),style:Tt,target:dr,onMouseEnter:us,onMouseLeave:bs,onPointerEnter:us,zIndex:ht,open:Cn,keepDom:xi,fresh:on,onClick:On,mask:Ut,motion:ti,maskMotion:ui,onVisibleChanged:Ki,onPrepare:ki,forceRender:ue,autoDestroy:Fr,getPopupContainer:re,align:ns,arrow:Ps,arrowPos:$s,ready:zi,offsetX:na,offsetY:Ca,offsetR:ys,offsetB:oi,onAlign:hs,stretch:Gt,targetWidth:As/Ua,targetHeight:Da/Cs})))});return y}var kt=_e(Me.Z)},50304:function(){"use strict"},8797:function(yn,Wt,g){"use strict";var xe=g(59301),Fe=g(93314),se=g(3113),Me=Object.defineProperty,ie=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,o=(d,m,S)=>m in d?Me(d,m,{enumerable:!0,configurable:!0,writable:!0,value:S}):d[m]=S,L=(d,m)=>{for(var S in m||(m={}))I.call(m,S)&&o(d,S,m[S]);if(O)for(var S of O(m))n.call(m,S)&&o(d,S,m[S]);return d},p=(d,m)=>ie(d,Y(m));const a=({img:d,buttonProps:m={},styles:S={},customText:$,ButtonText:F,ButtonClick:H,Buttonclass:V,ButtonTwo:ee,imgStyles:B,loading:G=!1,className:le=""})=>xe.createElement("section",{className:`tc animated fadeIn ${le}`,style:L({color:"#999",margin:"100px auto",visibility:G?"hidden":"visible"},S)},xe.createElement("img",{src:d||Fe,style:p(L({},B),{pointerEvents:"none",userSelect:"none"})}),xe.createElement("p",{className:"mt20 font14"},$||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),F&&xe.createElement(se.ZP,L({className:V,onClick:H},m),F),ee&&ee);Wt.Z=a},23210:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return V}});var xe=g(59301),Fe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},se=g(3113),Me=g(70557),ie=g(23954),Y=g(6848),O=g(955),I=g(94941),n=g(8797),o=g(3294),L=g(19381),p=g(59301),a=Object.defineProperty,d=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,$=(ee,B,G)=>B in ee?a(ee,B,{enumerable:!0,configurable:!0,writable:!0,value:G}):ee[B]=G,F=(ee,B)=>{for(var G in B||(B={}))m.call(B,G)&&$(ee,G,B[G]);if(d)for(var G of d(B))S.call(B,G)&&$(ee,G,B[G]);return ee},H=(ee,B,G)=>new Promise((le,J)=>{var we=ae=>{try{Le(G.next(ae))}catch(pe){J(pe)}},Ce=ae=>{try{Le(G.throw(ae))}catch(pe){J(pe)}},Le=ae=>ae.done?le(ae.value):Promise.resolve(ae.value).then(we,Ce);Le((G=G.apply(ee,B)).next())}),V=({editOffice:ee="view",data:B,theme:G,type:le,filename:J,monacoEditor:we,className:Ce,style:Le,close:ae,onClose:pe,hasMask:T,disabledDownload:Ee,onImgDimensions:oe,showNodata:fe,recordInfo:ye})=>{const[_,N]=(0,xe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[X,he]=(0,xe.useState)(""),[qe,st]=(0,xe.useState)(),nt=window.ENV==="build"?"/react/build":"",Rt=location.host.startsWith("localhost")?o.Z.PROXY_SERVER:o.Z.API_SERVER,Jt=10*(1024*1024),We=(0,xe.useRef)();B!=null&&B.startsWith("/api")&&le!=="txt"&&(B=o.Z.API_SERVER+B);const Er=_e=>_e.substring(_e.lastIndexOf("/")+1).split(".").pop();J&&we&&(we.filename=J),(0,xe.useEffect)(()=>{var _e,kt;const K=(kt=(_e=document.cookie)==null?void 0:_e.replace(/\s/g,""))==null?void 0:kt.split(";");K==null||K.map(y=>{let h=y.split("=");h[0]==="_educoder_session"&&he(h[1])})},[]),(0,xe.useEffect)(()=>{le==="office"&&(B.indexOf("bigfilescdn.")>-1||B.indexOf("bigfiles1")>-1?st({url:B,fileType:Er(B),model:B.indexOf("model=edit")?"edit":"view"}):xr())},[le,B]);const xr=()=>H(void 0,null,function*(){console.log("data:",B);let _e=B;B.startsWith("http")||(_e=location.origin+_e);let kt=new URL(_e).pathname.split("/").pop();const K=yield(0,I.gJ)({attachment_id:kt});K.url=Rt+K.url,st(K)}),Wr=()=>{if(B.startsWith("http")||B.startsWith("blob:")){Cr();return}(0,O.Sv)(J||"educoder",B,J)},Cr=()=>{ye&&(0,L.fc)({id:ye==null?void 0:ye.id,watch_type:1,course_id:ye==null?void 0:ye.course_id}),(0,O.Nd)(J||"educoder",decodeURIComponent(B))};return p.createElement("div",{style:F({},Le||{}),className:`${T&&Fe.bgBlack} ${le?Fe.wrp:"hide"}`},ae&&p.createElement("div",{className:Fe.close,ref:We},!!oe&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>We.current},p.createElement("span",{onClick:()=>{pe(),oe()}},p.createElement("i",{className:"icon-yulanpizhu"}))),!Ee&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>We.current},p.createElement("span",{onClick:Cr},p.createElement("i",{className:"icon-quxiaozhiding"}))),p.createElement(Y.Z,{title:"\u5173\u95ED",getPopupContainer:()=>We.current},p.createElement("span",{className:"",onClick:pe},p.createElement("i",{className:"icon-guanbi1"})))),p.createElement("div",{className:`${Fe[Ce]} ${Ce} ${Fe.monaco} ${le==="txt"?"show":"hide"}`},le==="txt"&&p.createElement(p.Fragment,null,p.createElement(ie.ZP,F({},we)))),le==="audio"&&p.createElement("audio",{src:`${(B==null?void 0:B.indexOf("http://"))>-1||(B==null?void 0:B.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${B}`,autoPlay:!0}),le==="video"&&p.createElement(p.Fragment,null,(B==null?void 0:B.indexOf("http"))>-1?p.createElement("video",{controls:!0,src:`${B}`,autoPlay:!0}):p.createElement("video",{controls:!0,src:`data:video/mp4;base64,${B}`,autoPlay:!0})),le==="office"&&qe&&p.createElement("iframe",{src:`${nt}/office.html?key=${qe.key}&url=${btoa(qe.url)}&callbackUrl=${Rt+(qe.callbackUrl||"")}&fileType=${qe.fileType}&title=${qe.title||""}&model=${ee}&officeServer=${o.Z.ONLYOFFICE}&disabledDownload=${!!Ee}`}),le==="html"&&p.createElement("iframe",{src:B+"&disposition=inline"}),le==="pdf"&&p.createElement("iframe",{src:`${nt}/js/pdfview/index.html?filename=${J||"educoder.pdf"}&url=${encodeURIComponent(B)}&disabledDownload=${!!Ee}`}),le==="image"&&p.createElement("img",{src:`${(B==null?void 0:B.indexOf("http://"))>-1||(B==null?void 0:B.indexOf("https://"))>-1?"":"data:image/png;base64,"}${B}`}),(le==="other"||le==="download")&&p.createElement(p.Fragment,null,fe?p.createElement(n.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:p.createElement(se.ZP,{icon:p.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Wr,disabled:Ee},"\u4E0B\u8F7D")}):p.createElement(se.ZP,{type:"primary",size:"middle",onClick:Wr,disabled:Ee},p.createElement(Me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(yn,Wt,g){"use strict";g.d(Wt,{z:function(){return le},Z:function(){return J}});var xe=g(59301),Fe=g(50304),se=g(24768),Me=g(64018),ie=g(40846),Y=g(3294),O=g(955),I=g(15342),n=g(1012),o=g(23210),L=g(59301),a=({html:we})=>{const Ce=(0,xe.useRef)(null),Le=(0,xe.useRef)(null),ae=`.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 36px !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,xe.useEffect)(()=>{const pe=Ce.current.attachShadow({mode:"open"});Le.current=document.createElement("div"),Le.current.className="markdown-body",Le.current.innerHTML=we,pe.appendChild(Le.current);const T=document.createElement("style");return T.textContent=ae,pe.appendChild(T),()=>{pe.innerHTML=""}},[]),(0,xe.useEffect)(()=>{Le.current&&(Le.current.innerHTML=we)},[we]),L.createElement("div",{ref:Ce})},d=Object.defineProperty,m=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,F=(we,Ce,Le)=>Ce in we?d(we,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Le}):we[Ce]=Le,H=(we,Ce)=>{for(var Le in Ce||(Ce={}))S.call(Ce,Le)&&F(we,Le,Ce[Le]);if(m)for(var Le of m(Ce))$.call(Ce,Le)&&F(we,Le,Ce[Le]);return we};const V="@\u2581\u2581@",ee="@\u2581@",B=/<pre[^>]*>/g;function G(we){let Ce=document.createElement("div");return Ce.innerHTML=we,Ce.childNodes.length===0?"":Ce.childNodes[0].nodeValue}const le=(we,Ce)=>{we=we||"";const Le=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ae=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,pe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,T=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ce?we.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Le,(Ee,oe,fe,ye,_,N,X)=>{const he=oe||ye||N,qe=fe||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+he+qe+"&t="+(0,O.Jn)(he,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(we=we.replace(T,(Ee,oe,fe,ye,_,N,X)=>{const he=oe||ye||N,qe=fe||_||X||"?";return Y.Z.API_SERVER+"/attachments/download/"+he+qe+"&t="+(0,O.Jn)(he,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(Le,(Ee,oe,fe,ye,_,N,X)=>{const he=oe||ye||N,qe=fe||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+he+qe+"&t="+(0,O.Jn)(he,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(ae,(Ee,oe,fe,ye,_)=>{const N=oe||ye,X=fe||_||"";return'"'+Y.Z.API_SERVER+"/api/attachments/"+N+X+N+X+"&t="+(0,O.Jn)(N,Date.now())}).replace(pe,(Ee,oe,fe,ye,_)=>{const N=oe||ye,X=fe||_||"";return"("+Y.Z.API_SERVER+"/files/uploads/"+N+X+N+X+"&t="+(0,O.Jn)(N,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,`
|
|
|
`),we)};var J=({value:we="",className:Ce,showTextOnly:Le,showLines:ae,style:pe={},stylesPrev:T={},highlightKeywords:Ee,showProgramFill:oe,isProgramFill:fe,disabledFill:ye=!1,programFillValue:_,onFillChange:N=qe=>{},onFillBlur:X=()=>{},onFillFocus:he=()=>{}})=>{let qe=String(we);const[st,nt]=(0,xe.useState)(""),[Rt,sr]=(0,xe.useState)("office"),[Jt,We]=(0,xe.useState)([]),Er=(0,xe.useRef)("a"+(0,n.Z)()),xr={},Wr=(Se,Be,Ie)=>{const Ge=document.createElement(Se===ee?"input":"textarea");Ge.style.width="100%",Ge.style.height=Se===ee?"40px":"151px",Ge.rows=5,Ge.spellcheck=!1,Ge.name="edu-program-fill",Ge.placeholder="\u8BF7\u8F93\u5165",Ge.dataset.id=Be;const mt=Object.keys(xr).length;return xr[mt]=Ge,`<span class="edu-program-fill-wrap ${Se===ee?"":"show"}" style="width:${Se===ee?"400px":"100%"}" title=${Ie||""}><span>${Ge.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Cr(Se){return Se=Se.replace(/!\[.*?\]\(.*?\)/g,""),Se=Se.replace(/\[.*?\]\(.*?\)/g,""),Se=Se.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Se=Se.replace(/<embed.*?>/g,""),Se=Se.replace(/<img.*?>/g,""),Se=Se.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Se=Se.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Se=Se.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Se=Se.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Se}const _e=Se=>Se.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Be,Ie){let Ge=Ie.replace(/(\n|\r)/g,"").split("}"),mt=[];return Ge.map($e=>{$e!=""&&mt.push(`.${Er.current} ${$e}`)}),`<style>${mt.join("}")}</style>`}),kt=(0,xe.useMemo)(()=>{try{const Ge=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,mt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$e=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,tt=/\(\/attachments\/download\//g;qe=qe.replace(tt,"("+Y.Z.API_SERVER+"/attachments/download/").replace(Ge,"("+Y.Z.API_SERVER+"/api/attachments/").replace(mt,'"'+Y.Z.API_SERVER+"/api/attachments/").replace($e,'"'+Y.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,`
|
|
|
`)}catch(Ge){}if(oe){let Ge=-1;return qe=qe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(mt,$e,tt){var dt;return++Ge,Wr(mt,Ge,(dt=_==null?void 0:_[Ge])==null?void 0:dt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${_e(qe||"")}</pre>`}let Se=_e(qe);Se=(0,se.ZP)(Se);const Be=(0,se.ez)();qe.match(/\[TOC\]/)&&(Se=Se.replace("<p>[TOC]</p>",(0,se.Qv)()),(0,se.Iy)()),Se=Se.replace(/(__special_katext_id_\d+__)/g,(Ge,mt)=>{const{type:$e,expression:tt}=Be[mt];return(0,I.renderToString)(G(tt)||"",{displayMode:$e==="block",throwOnError:!1,output:"html"})}),Se=Se.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,se.AL)();const Ie=document.createElement("div");if(Ie.innerHTML=Se,Le)return Ie.innerText;if(Ee){const Ge=Ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return D(Ie,Ge),Ie.innerHTML}return setTimeout(()=>k(),500),Ie.innerHTML},[qe,Ee]);(0,xe.useEffect)(()=>{Ae.current&&Ae.current.querySelectorAll(["input","textarea"]).forEach(Be=>{Be.oninput=K,Be.onblur=y,Be.onfocus=h})},[Jt]),(0,xe.useEffect)(()=>{var Se,Be,Ie,Ge,mt;if(_!=null&&_.length)try{const $e=Ae.current.querySelectorAll(".edu-program-fill-score"),tt=Ae.current.querySelectorAll('[name="edu-program-fill"]');for(const[dt,Ze]of tt.entries())Ze.value=((Se=_==null?void 0:_[dt])==null?void 0:Se.value)||"",((Be=_==null?void 0:_[dt])==null?void 0:Be.type)==="warning"?Ze.className="program-fill-warning":((Ie=_==null?void 0:_[dt])==null?void 0:Ie.type)==="success"?Ze.className="program-fill-success":Ze.className="";for(const[dt,Ze]of $e.entries())Ze.innerHTML=(Ge=_==null?void 0:_[dt])!=null&&Ge.score?`${(mt=_==null?void 0:_[dt])==null?void 0:mt.score}\u5206`:"";We(_)}catch($e){console.log($e,"error")}},[_]);const K=Se=>{Jt[Se.target.dataset.id]=Jt[Se.target.dataset.id]||{},Jt[Se.target.dataset.id].value=Se.target.value,We([...Jt]),N(Jt,Se.target.dataset.id)},y=Se=>{Jt[Se.target.dataset.id]=Jt[Se.target.dataset.id]||{},Jt[Se.target.dataset.id].value=Se.target.value,We([...Jt]),X(Jt,Se.target.dataset.id)},h=Se=>{Jt[Se.target.dataset.id]=Jt[Se.target.dataset.id]||{},Jt[Se.target.dataset.id].value=Se.target.value,We([...Jt]),he(Jt,Se.target.dataset.id)};function D(Se,Be){return Se.childNodes.forEach(Ie=>{var Ge;if(Ie.childNodes.length>0)D(Ie,Be);else if(Ie.nodeName!=="IMG")if(Ie.innerHTML)Ie.innerHTML=(Ge=Ie.innerHTML)==null?void 0:Ge.replace(new RegExp(Be,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const mt=document.createElement("span");mt.innerHTML=Ie.textContent.replace(new RegExp(Be,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ie.replaceWith(mt)}})}const Ae=(0,xe.useRef)();se.jb.WebkitLineClamp=ae,ae&&(pe=H(H({},pe),se.jb));function Z(Se){let Be=Se.target;if(Be.tagName.toUpperCase()==="A"){let Ie=Be.getAttribute("href");if(Ie.indexOf("office")>-1)Se.preventDefault(),nt(Ie),sr("office");else if(Ie.indexOf("application/pdf")>-1)Se.preventDefault(),nt(Ie),sr("pdf");else if(Ie.indexOf("text/html")>-1)Se.preventDefault(),nt(Ie),sr("html");else if(Ie.startsWith("#")){Se.preventDefault();let Ge=document.getElementById(Ie.replace("#",""));Ge&&Ge.scrollIntoView(!0)}}}const k=()=>{var Se;const Be=(Se=Ae.current)==null?void 0:Se.querySelectorAll("video");Be==null||Be.forEach(Ie=>{if(Ie.oncontextmenu=()=>!1,Ie.src.indexOf(".m3u8")>-1&&!Ie.canPlayType("application/vnd.apple.mpegurl")){if(ie.ZP.isSupported()){var Ge=new ie.ZP;Ge.loadSource(Ie.src),Ge.attachMedia(Ie)}}})};(0,xe.useEffect)(()=>{if(Ae.current&&kt&&kt.match(B)&&window.PR.prettyPrint(),Ae.current)return Ae.current.addEventListener("click",Z),()=>{var Se;(Se=Ae.current)==null||Se.removeEventListener("click",Z),(0,se.AL)(),(0,se.Iy)()}},[kt,Ae.current,Z]),(0,xe.useEffect)(()=>{var Se;const Be=Ie=>{Ie.preventDefault(),Ie.clipboardData.setData("text",window.getSelection().toString())};return(Se=Ae.current)==null||Se.addEventListener("copy",Be),()=>{var Ie;(Ie=Ae.current)==null||Ie.removeEventListener("copy",Be)}},[Ae.current]);const te=Se=>/<style[\s\S]*?>/i.test(Se||"");return xe.createElement(xe.Fragment,null,Le&&xe.createElement("div",{ref:Ae},kt),!Le&&!te(kt)&&xe.createElement("div",{ref:Ae,style:H({},pe),className:`${Ce||""} ${ye?"disabled-fill":""} markdown-body ${Er.current}`,dangerouslySetInnerHTML:{__html:kt}}),!Le&&te(kt)&&xe.createElement(a,{html:kt}),xe.createElement(o.Z,{close:!0,data:st,type:st!=null&&st.length?Rt:"",style:H({},T),onClose:()=>nt("")}))}},23954:function(yn,Wt,g){"use strict";g.d(Wt,{SV:function(){return Ae},ZP:function(){return D}});var xe=g(59301),Fe=g(76374);const se={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"]},Me={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"]},ie={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(`
|
|
|
`)}]},Y={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(`
|
|
|
`)}]},O={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 I=g(53184),n=g.n(I),o=Object.defineProperty,L=Object.defineProperties,p=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,S=(Z,k,te)=>k in Z?o(Z,k,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[k]=te,$=(Z,k)=>{for(var te in k||(k={}))d.call(k,te)&&S(Z,te,k[te]);if(a)for(var te of a(k))m.call(k,te)&&S(Z,te,k[te]);return Z},F=(Z,k)=>L(Z,p(k)),H=(Z,k,te)=>new Promise((Se,Be)=>{var Ie=$e=>{try{mt(te.next($e))}catch(tt){Be(tt)}},Ge=$e=>{try{mt(te.throw($e))}catch(tt){Be(tt)}},mt=$e=>$e.done?Se($e.value):Promise.resolve($e.value).then(Ie,Ge);mt((te=te.apply(Z,k)).next())});const V={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"]}},ee=(Z,k)=>k.map(te=>({label:te,kind:Z.languages.CompletionItemKind.Keyword,insertText:te})),B=Z=>Object.keys(V.tables).map(k=>({label:k,kind:Z.languages.CompletionItemKind.Variable,insertText:k})),G=(Z,k)=>{const te=V.tables[Z];return te?te.map(Se=>({label:Se,kind:k.languages.CompletionItemKind.Field,insertText:Se})):[]};function le(Z,k,te,Se,Be){let Ie=k.getWordUntilPosition(te),Ge={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},mt=Se.map($e=>({label:$e,kind:Z.languages.CompletionItemKind.Keyword,insertText:$e,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}));return Be.map($e=>{mt.push(F($({},$e),{range:Ge}))}),mt}var J=Z=>{V.languages.map(Be=>(Z.languages.registerDocumentFormattingEditProvider(Be,{provideDocumentFormattingEdits(Ie,Ge,mt){return H(this,null,function*(){const $e=n()(Ie.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:Ie.getFullModelRange(),text:$e}]})}}),Be));const k=ie.quickKey.map(Be=>({label:Be.label,kind:Z.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet})),te=Y.quickKey.map(Be=>({label:Be.label,kind:Z.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Se=Me.quickKey.map(Be=>({label:Be.label,kind:Z.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Z.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Be,Ie){var Ge=Be.getWordUntilPosition(Ie),mt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},$e=Be.getLineContent(Ie.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...ie.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt})),...ie.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt}))]}}}),Z.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Be,Ie){var Ge=Be.getWordUntilPosition(Ie),mt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn};return{suggestions:[...se.keywords.map($e=>({label:$e,kind:Z.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt}))]}}}),Z.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Be,Ie){var Ge=Be.getWordUntilPosition(Ie),mt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},$e=Be.getLineContent(Ie.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Me.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt})),...Me.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt}))]}}}),Z.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Be,Ie){var Ge=Be.getWordUntilPosition(Ie),mt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},$e=Be.getLineContent(Ie.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...O.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt})),...O.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt}))]}}}),Z.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Be,Ie){var Ge=Be.getWordUntilPosition(Ie),mt={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},$e=Be.getLineContent(Ie.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Y.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt})),...Y.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt}))]}}})};const we="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ce=Object.defineProperty,Le=(Z,k,te)=>k in Z?Ce(Z,k,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[k]=te,ae=(Z,k,te)=>Le(Z,typeof k!="symbol"?k+"":k,te);const pe=class GA{constructor(k,te,Se){this.placeholder=k,this.editor=te,this.monaco=Se,te.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return GA.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)}};ae(pe,"ID","editor.widget.placeholderHint");var Ee=pe,oe=g(96236),fe=g(8591),ye=g(6848),_=g(89392),N=g(34604),X=g(56102),he=Object.defineProperty,qe=Object.defineProperties,st=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,Jt=(Z,k,te)=>k in Z?he(Z,k,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[k]=te,We=(Z,k)=>{for(var te in k||(k={}))Rt.call(k,te)&&Jt(Z,te,k[te]);if(nt)for(var te of nt(k))sr.call(k,te)&&Jt(Z,te,k[te]);return Z},Er=(Z,k)=>qe(Z,st(k)),xr=(Z,k)=>{var te={};for(var Se in Z)Rt.call(Z,Se)&&k.indexOf(Se)<0&&(te[Se]=Z[Se]);if(Z!=null&&nt)for(var Se of nt(Z))k.indexOf(Se)<0&&sr.call(Z,Se)&&(te[Se]=Z[Se]);return te},Wr=(Z,k,te)=>new Promise((Se,Be)=>{var Ie=$e=>{try{mt(te.next($e))}catch(tt){Be(tt)}},Ge=$e=>{try{mt(te.throw($e))}catch(tt){Be(tt)}},mt=$e=>$e.done?Se($e.value):Promise.resolve($e.value).then(Ie,Ge);mt((te=te.apply(Z,k)).next())});function Cr(Z){return/^\d+$/.test(Z)?`${Z}px`:Z}function _e(){}let kt=!1;const K={"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 y(Z=[]){let k=Z;if(Array.isArray(Z)){for(let te=0;te<Z.length;te++){let Se=K[Z[te]];if(Se)return Se}return k[0]}return K[k]||k}let h=null;var D=Z=>{var k=Z,{width:te="100%",height:Se="100%",value:Be,language:Ie="javascript",style:Ge={},options:mt={},overrideServices:$e={},theme:tt="vs-dark",onEditBlur:dt,isCopy:Ze=!1,onSave:Ke,autoHeight:Bt=!1,forbidCopy:Vt=!1,onChange:Ut=_e,editorDidMount:mr=_e,onFocus:br=_e,onBreakPoint:re=_e,breakPointValue:ue=[],filename:rr="educoder.txt",errorLine:Qe,errorContent:ot="",highlightLine:Jr,openBreakPoint:Tt=!1,placeholder:Kt=""}=k,qt=xr(k,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const et=(0,xe.useRef)(),ft=(0,xe.useRef)({}),ht=(0,xe.useRef)(),Gt=(0,xe.useRef)(),Oe=(0,xe.useRef)([]),on=(0,xe.useRef)(!1),Mt=(0,xe.useRef)(),On=(0,xe.useRef)(),Xn=(0,xe.useRef)(!1),[yi,$i]=(0,xe.useState)(!1);function Dn(){let Kr;return et.current&&(Kr=new Fe.Z(Vr=>{for(let Tn of Vr)(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&ft.current.instance.layout()}),Kr.observe(et.current)),Kr}function zn(){fe.ZP.warning({content:decodeURIComponent(we),key:"monaco-editor-tip"})}const Xt=()=>{let Kr=ft.current.instance;if(Be!=null&&Kr&&yi){const Vr=Kr.getModel();Vr&&Be!==Vr.getValue()&&(kt=!0,Vr.setValue(Be),Kr.layout(),kt=!1)}};(0,xe.useEffect)(()=>{const Kr=N.Z.subscribe("formatDocument",Vr=>{var Tn;let Sn=ft.current.instance;(Tn=Sn==null?void 0:Sn.getAction)==null||Tn.call(Sn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Vr=>{Ut(Vr)},Kr},[]),(0,xe.useEffect)(()=>{var Kr;let Vr=ft.current.instance;Gt.current&&clearTimeout(Gt.current),Gt.current=setTimeout(()=>{Xt()},500),Be&&(Be!=null&&Be.length)&&((Kr=Vr==null?void 0:Vr.updateOptions)==null||Kr.call(Vr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Be.split(/\r\n|\r|\n/g).length))+3,5)}))},[Be,yi,ft.current]),(0,xe.useEffect)(()=>{if(Qe&&ft.current&&ft.current.instance){let Vr=ft.current.instance;Vr.changeViewZones(function(Tn){var Sn=document.createElement("div");Sn.style.padding="10px 20px",Sn.style.width="calc(100% - 20px)",Sn.className="my-error-line-wrp",Sn.innerHTML=ot,Tn.addZone({afterLineNumber:Qe||11,heightInLines:3,domNode:Sn})});var Kr={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}};Vr.addOverlayWidget(Kr),Vr.revealPositionInCenter({lineNumber:20,column:1})}},[Qe,ft.current,yi]);const $r=(Kr="",Vr)=>{if(!Kr||Kr.trim()==="")return!0;const Sn=ft.current.instance.getModel().getLineTokens(Vr);let Un=!1;for(let Vn=0;Vn<2;Vn++)Sn.getStandardTokenType(Vn)===1&&(Un=!0);return Un};(0,xe.useEffect)(()=>{var Kr;const Vr=(Kr=ft.current)==null?void 0:Kr.instance;if(Vr&&yi&&Vt){const Tn=Vr.onDidBlurEditorWidget(()=>{Xn.current=!1}),Sn=Vr.onDidFocusEditorText(()=>{Xn.current=!0});return()=>{Tn.dispose(),Sn.dispose()}}},[ft.current,yi,Vt]),(0,xe.useEffect)(()=>{var Kr;if((Kr=ft.current)!=null&&Kr.instance&&yi&&Tt){let Vr=ft.current.instance,Tn=Vr.getModel();if(!Tn)return;(()=>{var cn;let nn=[],jn=[];const ti=Tn.getAllDecorations();for(let Ri of ti)Ri.options.className==="highlighted-line"&&(nn.push((cn=Ri==null?void 0:Ri.range)==null?void 0:cn.startLineNumber),jn.push(Ri==null?void 0:Ri.id));if(Jr===nn[0])return;Tn.deltaDecorations(jn,[]);const ui=Tn.getLineCount();Jr&&Jr<=ui&&(Vr.deltaDecorations([],[{range:new h.Range(Jr,1,Jr,Tn.getLineMaxColumn(Jr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Vr.revealLineInCenter(Jr))})();const Un=(cn=!1)=>{var nn;let jn=[],ti=[];const ui=Tn.getAllDecorations();for(let Ri of ui)Ri.options.linesDecorationsClassName==="breakpoints-select"&&(jn.push((nn=Ri==null?void 0:Ri.range)==null?void 0:nn.startLineNumber),ti.push(Ri==null?void 0:Ri.id));if(cn)return{lines:jn,ids:ti};re(jn)},Vn=cn=>Wr(void 0,null,function*(){let nn={range:new h.Range(cn,1,cn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Tn.deltaDecorations([],[nn]),Un()}),Ui=cn=>Wr(void 0,null,function*(){let nn=[];const jn=Vr.getLineDecorations(cn);for(let ti of jn)ti.options.linesDecorationsClassName==="breakpoints-select"&&nn.push(ti.id);yield Tn.deltaDecorations(nn,[]),Un()}),di=cn=>{let nn=Vr.getLineDecorations(cn);for(let jn of nn)if(jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_.isEqual)(ue,Un(!0).lines)){Tn.deltaDecorations(Un(!0).ids,[]);const cn=ue.map(nn=>({range:new h.Range(nn,1,nn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Tn.deltaDecorations([],cn)}const bn=Vr.onDidChangeModelContent(cn=>{let nn=Vr.getPosition();if(nn){let jn=nn.lineNumber;clearTimeout(On.current),On.current=setTimeout(()=>{$r(Tn.getLineContent(jn),jn)?Ui(jn):di(jn)?(Ui(jn),Vn(jn)):Un()},100)}}),dr=Vr.onMouseDown(cn=>{var nn,jn,ti;if(cn.target.detail&&((ti=(jn=(nn=cn.target)==null?void 0:nn.element)==null?void 0:jn.className)!=null&&ti.includes("line-numbers"))){let ui=cn.target.position.lineNumber;if($r(Tn.getLineContent(ui),ui))return;di(ui)?Ui(ui):Vn(ui)}}),vr=cn=>{let nn={range:new h.Range(cn,1,cn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Oe.current=Vr.deltaDecorations(Oe.current,[nn])},Ir=()=>{Oe.current=Vr.deltaDecorations(Oe.current,[])},Yr=Vr.onMouseMove(cn=>{var nn,jn,ti;if(Ir(),cn.target.detail&&((ti=(jn=(nn=cn.target)==null?void 0:nn.element)==null?void 0:jn.className)!=null&&ti.includes("line-numbers"))){let ui=cn.target.position.lineNumber;if($r(Tn.getLineContent(ui),ui))return;vr(ui)}}),Mr=Vr.onMouseLeave(()=>{Ir()});return()=>{bn.dispose(),dr.dispose(),Yr.dispose(),Mr.dispose()}}},[ft.current,yi,ue,Jr,Tt,Ie]),(0,xe.useEffect)(()=>{var Kr;(Kr=ft.current)!=null&&Kr.instance&&Tt&&ft.current.instance.setPosition({lineNumber:0,column:0})},[Jr]);function en(){let Kr=ft.current.instance;if(Kr){const Vr=Kr.getSelection(),Tn=ft.current.pastePos||{},Sn=new h.Range(Tn.startLineNumber||Vr.endLineNumber,Tn.startColumn||Vr.endColumn,Tn.endLineNumber||Vr.endLineNumber,Tn.endColumn||Vr.endColumn);setTimeout(()=>{Kr.executeEdits("",[{range:Sn,text:""}])},300)}}function Pt(Kr){(window.navigator.platform.match("Mac")?Kr.metaKey:Kr.ctrlKey)&&Kr.keyCode==83&&(Kr.preventDefault(),Ke())}const Et=()=>{if(Bt&&ft.current.instance){const Kr=ft.current.instance.getContentHeight();Mn(Kr<Se?Se:Kr)}else Mn(Se)};function _r(Kr){var Vr=document.createEvent("MouseEvents");Vr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Kr.dispatchEvent(Vr)}const Fr=Kr=>{if(!Xn.current)return;const{keyCode:Vr,ctrlKey:Tn,metaKey:Sn,target:Un,type:Vn}=Kr;return(Vn==="paste"||(Vr===67||Vr===86)&&(Sn||Tn))&&Un.nodeName==="TEXTAREA"&&(zn(),Kr.preventDefault()),!1};function In(Kr,Vr){var Tn=window.URL||window.webkitURL||window,Sn=new Blob([Vr]),Un=document.createElementNS("http://www.w3.org/1999/xhtml","a");Un.href=Tn.createObjectURL(Sn),Un.download=Kr,_r(Un)}(0,xe.useEffect)(()=>{Et()},[Et]),(0,xe.useEffect)(()=>{et.current&&!yi&&Promise.all([g.e(8909),g.e(3267)]).then(g.bind(g,71448)).then(Kr=>{try{h=Kr,ft.current.instance=h.editor.create(et.current,{value:Be,language:y(Ie),theme:tt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},$e);const Vr=ft.current.instance;let Un=[...oe.BH._menuItems].find(bn=>bn[0]._debugName=="EditorContext")[1],Vn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ui=(bn,dr)=>{var vr,Ir;let Yr=bn._first;do dr.includes((Ir=(vr=Yr.element)==null?void 0:vr.command)==null?void 0:Ir.id)&&bn._remove(Yr);while(Yr=Yr.next)};if(mr(Vr,h),setTimeout(()=>{Et(),ft.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{In(rr||"educoder.txt",Vr.getValue())}})},500),ft.current.subscription=Vr.onDidChangeModelContent(bn=>{on.current?clearTimeout(Mt.current):(Et(),Ut(Vr.getValue(),bn)),Mt.current=setTimeout(()=>{on.current=!1},500)}),window.Monaco||J(h,y(Ie)),Vt&&(Ui(Un,Vn),et.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Fr),window.removeEventListener("paste",Fr),window.addEventListener("keydown",Fr),window.addEventListener("paste",Fr)),window.Monaco=h,dt&&Vr.onDidBlurEditorWidget(()=>{dt(Vr.getValue())}),br&&Vr.onDidFocusEditorText(()=>{br(Vr.getValue())}),Vt)try{Vr.onDidPaste(bn=>{const dr=Vr.getSelection(),vr=ft.current.pastePos||{},Ir=new h.Range(vr.startLineNumber||dr.endLineNumber,vr.startColumn||dr.endColumn,vr.endLineNumber||dr.endLineNumber,vr.endColumn||dr.endColumn);Vr.executeEdits("",[{range:bn.range,text:""}])})}catch(bn){}let di=Dn();return Kt&&typeof Kt=="string"&&new Ee(Kt,Vr,h),$i(!0),()=>{const bn=ft.current.instance;bn.dispose();const dr=bn.getModel();dr&&dr.dispose(),ft.current.subscription&&ft.current.subscription.dispose(),di.unobserve(et.current)}}catch(Vr){}})},[]),(0,xe.useEffect)(()=>{if(ft.current.instance&&yi)return document.addEventListener("keydown",Pt,!1),()=>{document.removeEventListener("keydown",Pt)}},[Ke,yi]),(0,xe.useEffect)(()=>{let Kr=ft.current.instance;if(Kr&&yi){let Vr=y(Ie);h.editor.setModelLanguage(Kr.getModel(),Vr)}},[Ie,yi]),(0,xe.useEffect)(()=>{ft.current.instance&&yi&&h.editor.setTheme(tt)},[tt,yi]),(0,xe.useEffect)(()=>{let Kr=ft.current.instance;ht.current=mt,Kr&&yi&&(Kr.updateOptions(We({},mt)),setTimeout(()=>{Kr.getModel().updateOptions(We({},mt))},200))},[JSON.stringify(mt),yi]),(0,xe.useEffect)(()=>{let Kr=ft.current.instance;Kr&&yi&&Kr.layout()},[te,Se,yi]);const[an,_n]=(0,xe.useState)(Cr(te)),[mn,Mn]=(0,xe.useState)(Cr(Se)),ei=Er(We({},Ge),{width:an,height:mn,position:"relative"});return xe.createElement("div",{className:"my-monaco-editor",ref:et,style:ei},Ze&&xe.createElement(X.CopyToClipboard,{text:Be,onCopy:()=>fe.ZP.success("\u590D\u5236\u6210\u529F")},xe.createElement(ye.Z,{title:"\u590D\u5236\u4EE3\u7801"},xe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},xe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ae({width:Z="100%",height:k="100%",original:te,modified:Se,language:Be,options:Ie={}}){const Ge=(0,xe.useRef)(),[mt,$e]=(0,xe.useState)(null);function tt(Bt){let Vt;return Ge.current&&(Vt=new Fe.Z(Ut=>{for(let mr of Ut)(mr.target.offsetHeight>0||mr.target.offsetWidth>0)&&Bt.layout()}),Vt.observe(Ge.current)),Vt}(0,xe.useEffect)(()=>(Ge.current&&Promise.all([g.e(8909),g.e(9404)]).then(g.bind(g,2550)).then(Bt=>{h=Bt;const Vt=h.editor.createDiffEditor(Ge.current,Er(We({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}));$e(Vt);let Ut=tt(Vt);return()=>{Vt.dispose();const mr=Vt.getModel();mr&&mr.dispose(),Ut.unobserve(Ge.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,xe.useEffect)(()=>{mt&&mt.setModel({original:h.editor.createModel(te,Be),modified:h.editor.createModel(Se,Be)})},[te,Se,Be,mt]);const dt=Cr(Z),Ze=Cr(k),Ke={width:dt,height:Ze};return xe.createElement("div",{className:"my-diff-editor",ref:Ge,style:Ke})}},67059:function(yn,Wt,g){"use strict";g.r(Wt),g.d(Wt,{default:function(){return D}});var xe=g(59301),Fe=g(61186),se=g.n(Fe),Me=g(86129),ie=g.n(Me),Y=g(99064),O=g(89070),I=g(43418),n=g(8591),o=g(95237),L=g(43604),p=g(3113),a=g(61621),d=g(66104),m=g(28103),S=g(1710),$=g(10777),F=g(57809),H=g(71418),V=g(27812),ee=g(95869),B=g(87169),G=g(26227),le=g(3294),J=g(24065),we=g(955),Ce=g(78241),Le=g(5871),ae=g(92832),pe=({defaultValue:Ae,onBlur:Z,max:k,className:te="game-score"})=>{const[Se,Be]=(0,xe.useState)(Ae);(0,xe.useEffect)(()=>{Be(Ae)},[Ae]);function Ie(mt){Be(mt)}function Ge(){Se&&(Z(Se>k?k:Se),Be(null))}return xe.createElement(Le.Z,{max:k,min:0,className:te,value:Se,onChange:Ie,onBlur:Ge})},T={greyText:"greyText___lvEE6",info:"info___El01Z",label:"label___GmvST",blackContent:"blackContent___FYo0Z",orangeContent:"orangeContent____uYQ3",inputLabel:"inputLabel___ruiZm",tableTitle:"tableTitle___ir3x7",scoreTable:"scoreTable___b9Z37"},Ee=g(59301),oe=(Ae,Z,k)=>new Promise((te,Se)=>{var Be=mt=>{try{Ge(k.next(mt))}catch($e){Se($e)}},Ie=mt=>{try{Ge(k.throw(mt))}catch($e){Se($e)}},Ge=mt=>mt.done?te(mt.value):Promise.resolve(mt.value).then(Be,Ie);Ge((k=k.apply(Ae,Z)).next())});const fe=({shixunHomeworks:Ae,dispatch:Z,classroomList:k,gethomeworkreport:te,homeWorkReport:Se})=>{var Be,Ie;const{shixunWorkReport:Ge}=Ae,mt=(0,O.useParams)(),[$e,tt]=(0,xe.useState)(!1),[dt,Ze]=(0,xe.useState)(!1),[Ke,Bt]=(0,xe.useState)(""),[Vt]=Ce.default.useForm(),Ut=()=>oe(void 0,null,function*(){Ze(!0);const re=Vt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${mt.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:re.hidden_comment,comment:re.comment}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),Vt.resetFields(),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),Ze(!1)}),mr=()=>oe(void 0,null,function*(){if(!Ke){n.ZP.warning("\u8BF7\u586B\u5199\u5206\u6570");return}Ze(!0);const re=Vt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${mt.homeworkId}/add_score.json`,{method:"post",body:{comment:re.comment,score:Ke}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),Ze(!1)}),br=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:160,render:re=>re||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:110},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:160},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:160},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:re=>re||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:90,render:(re,ue)=>Ee.createElement("div",null,Ee.createElement("span",{style:{color:parseFloat(ue.score_full)!==parseFloat(re)?"#E30000":"#53C41B"}},re),"/",ue.score_full)},{title:"\u8C03\u5206",width:100,dataIndex:"action",render:(re,ue)=>(0,J.GJ)()?Ee.createElement(pe,{max:ue.score_full,onBlur:rr=>oe(void 0,null,function*(){var Qe;if((0,J.Rm)()&&!((Qe=k.AssistantObject.practice)!=null&&Qe.can_appraise)){n.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 ot=yield(0,Y.ZP)(`/api/student_works/${mt.homeworkId}/adjust_score.json`,{method:"post",body:{score:rr}});te(),ot.status===0&&n.ZP.success("\u8C03\u5206\u6210\u529F")})}):Se!=null&&Se.is_anonymous?Ee.createElement(Le.Z,{min:0,value:Ke,onChange:rr=>Bt(rr),max:ue.score_full}):re}].filter(re=>Se!=null&&Se.is_anonymous?!["late_penalty","score","absence_penalty"].includes(re.dataIndex):!0);return Ee.createElement(I.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",afterClose:()=>{Vt.resetFields(),Bt("")},confirmLoading:dt,open:Ae.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>oe(void 0,null,function*(){var re;if((0,J.Rm)()&&!((re=k.AssistantObject.practice)!=null&&re.can_appraise)){n.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}if(Se!=null&&Se.is_anonymous){mr();return}const ue=Vt.getFieldsValue();JSON.stringify(ue)==="{}"||ue.hidden_comment===""&&ue.comment===""?tt(!0):Ut()}),onCancel:()=>{Z({type:"shixunHomeworks/setActionTabs",payload:{}})}},Ee.createElement(o.Z,{className:T.info},Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u59D3\u540D"),Ee.createElement("span",{className:T.blackContent},Se==null?void 0:Se.username)),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u5B66\u53F7"),Ee.createElement("span",{className:T.blackContent},(Se==null?void 0:Se.student_id)||"--")),!(Se!=null&&Se.is_anonymous)&&Ee.createElement(Ee.Fragment,null,Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u73ED\u7EA7"),Ee.createElement("span",{className:T.blackContent},(Se==null?void 0:Se.group_name)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u8865\u4EA4\u6263\u5206"),Ee.createElement("span",{className:T.orangeContent},((Be=Se==null?void 0:Se.stage_list[0])==null?void 0:Be.late_penalty)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u7F3A\u8BC4\u6263\u5206"),Ee.createElement("span",{className:T.orangeContent},((Ie=Se==null?void 0:Se.stage_list[0])==null?void 0:Ie.absence_penalty)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u603B\u6210\u7EE9"),Ee.createElement("span",{className:T.orangeContent},(Se==null?void 0:Se.stage_list[0].score)||"--")))),Ee.createElement(Ce.default,{form:Vt,onChange:()=>{$e&&tt(!1)}},Ee.createElement("div",{className:`${T.inputLabel} ${T.greyText}`},Se!=null&&Se.is_anonymous?"\u8BC4\u8BED":"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ee.createElement(Ce.default.Item,{name:"comment"},Ee.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),!(Se!=null&&Se.is_anonymous)&&Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{className:`${T.inputLabel} ${T.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ee.createElement(Ce.default.Item,{name:"hidden_comment"},Ee.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))," ")),$e&&Ee.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Ee.createElement("div",{className:T.tableTitle},"\u5173\u5361\u6210\u7EE9"),Ee.createElement(S.default,{className:T.scoreTable,dataSource:Se==null?void 0:Se.stage_list,rowKey:"challenge_id",pagination:!1,columns:br}))};var ye=(0,O.connect)(({shixunHomeworks:Ae,classroomList:Z})=>({shixunHomeworks:Ae,classroomList:Z}))(fe),_={},N=(Ae,Z,k)=>new Promise((te,Se)=>{var Be=mt=>{try{Ge(k.next(mt))}catch($e){Se($e)}},Ie=mt=>{try{Ge(k.throw(mt))}catch($e){Se($e)}},Ge=mt=>mt.done?te(mt.value):Promise.resolve(mt.value).then(Be,Ie);Ge((k=k.apply(Ae,Z)).next())});const X=({shixunHomeworks:Ae,dispatch:Z,gethomeworkreport:k,homeWorkReport:te})=>{var Se,Be;const{shixunWorkReport:Ie}=Ae;console.log(te,"homeWorkReport");const Ge=(0,O.useParams)(),[mt,$e]=(0,xe.useState)(!1),[tt]=Ce.default.useForm(),{user_name:dt,score:Ze,comment_time:Ke,content:Bt,score_id:Vt,user_id:Ut}=((Be=(Se=Ae==null?void 0:Ae.actionTabs)==null?void 0:Se.selectArrs)==null?void 0:Be.data)||{},mr=()=>N(void 0,null,function*(){yield tt.validateFields(),$e(!0);const br=tt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${Ge.homeworkId}/appeal_anonymous_score.json`,{method:"post",body:{comment:br.comment,score_id:Vt,userId:Ut}})).status===0&&(n.ZP.success("\u64CD\u4F5C\u6210\u529F"),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),k()),$e(!1)});return xe.createElement(I.default,{centered:!0,width:600,title:"\u533F\u8BC4\u7533\u8BC9",afterClose:()=>{tt.resetFields()},confirmLoading:mt,open:Ae.actionTabs.key==="\u533F\u8BC4\u7533\u8BC9",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:mr,onCancel:()=>{Z({type:"shixunHomeworks/setActionTabs",payload:{}})}},xe.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15,marginBottom:20}},xe.createElement(o.Z,{justify:"space-between",className:_.info},xe.createElement("span",null,xe.createElement("span",{className:"c-grey-666"},dt),xe.createElement("span",{className:"c-grey-333 ml5"},"\u8C03\u5206\u4E3A"),xe.createElement("span",{className:"c-orange ml5"},Ze,"\u5206")),xe.createElement("span",{className:"c-grey-333"},Ke)),xe.createElement("div",{className:"c-grey-333 mt5"},Bt)),xe.createElement(Ce.default,{form:tt,className:"mt15",layout:"vertical"},xe.createElement(Ce.default.Item,{name:"comment",label:"\u7533\u8BC9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0"}]},xe.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0",rows:3}))))};var he=(0,O.connect)(({shixunHomeworks:Ae})=>({shixunHomeworks:Ae}))(X),qe=g(45633),st={flex_box_center:"flex_box_center___uz0LL",flex_space_between:"flex_space_between___kuKI5",flex_box_vertical_center:"flex_box_vertical_center___VzPH1",flex_box_center_end:"flex_box_center_end___Tyr1U",flex_box_column:"flex_box_column___qsgVa",title:"title___SFyGM",export:"export___ezPhH",title1_right:"title1_right___tMOJn",userPic:"userPic___mW4Rr",userInfo:"userInfo___vYvSZ",listItem:"listItem___gJf4Z",rightInfo:"rightInfo___PRYRt",shixunTitle:"shixunTitle___STlvE",shixunWrp:"shixunWrp___knhTt",footerBar:"footerBar___R5IlQ",footerBarStatic:"footerBarStatic___M4EQj",exitComment:"exitComment___NoCI4",nextComment:"nextComment___sFj7z",modal:"modal___TwQdH",tag:"tag___RErUu"},nt=g(85149),Rt=g(36708),sr=g(44164),Jt=g.n(sr),We=g(59301),Er=Object.defineProperty,xr=Object.getOwnPropertySymbols,Wr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,_e=(Ae,Z,k)=>Z in Ae?Er(Ae,Z,{enumerable:!0,configurable:!0,writable:!0,value:k}):Ae[Z]=k,kt=(Ae,Z)=>{for(var k in Z||(Z={}))Wr.call(Z,k)&&_e(Ae,k,Z[k]);if(xr)for(var k of xr(Z))Cr.call(Z,k)&&_e(Ae,k,Z[k]);return Ae},K=(Ae,Z)=>{var k={};for(var te in Ae)Wr.call(Ae,te)&&Z.indexOf(te)<0&&(k[te]=Ae[te]);if(Ae!=null&&xr)for(var te of xr(Ae))Z.indexOf(te)<0&&Cr.call(Ae,te)&&(k[te]=Ae[te]);return k},y=(Ae,Z,k)=>new Promise((te,Se)=>{var Be=mt=>{try{Ge(k.next(mt))}catch($e){Se($e)}},Ie=mt=>{try{Ge(k.throw(mt))}catch($e){Se($e)}},Ge=mt=>mt.done?te(mt.value):Promise.resolve(mt.value).then(Be,Ie);Ge((k=k.apply(Ae,Z)).next())});const h=Ae=>{var Z=Ae,{shixunHomeworks:k,classroomList:te,globalSetting:Se,loading:Be,user:Ie,dispatch:Ge}=Z,mt=K(Z,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),$e,tt,dt,Ze,Ke,Bt,Vt;const[Ut,mr]=(0,xe.useState)(kt({},(0,O.useParams)())),br=(0,O.useParams)(),re=(0,O.useLocation)(),[]=(0,xe.useState)([]),[ue,rr]=(0,xe.useState)({last:!1}),[Qe,ot]=(0,xe.useState)({last:!1}),Jr=(0,xe.useRef)(),Tt=(0,xe.useRef)(),[Kt,qt]=(0,xe.useState)(!1),[et,ft]=(0,xe.useState)(!1),[ht,Gt]=(0,xe.useState)(!1),[Oe,on]=(0,xe.useState)(),[Mt,On]=(0,xe.useState)(),[Xn,yi]=(0,xe.useState)(!0),[$i,Dn]=(0,xe.useState)(),zn=(0,J.GJ)(),[Xt,$r]=(0,xe.useState)(new(ie())),[en,Pt]=(0,xe.useState)(0),[Et,_r]=(0,xe.useState)([]),[Fr,In]=(0,xe.useState)(!1),[an,_n]=(0,xe.useState)(!1),[mn,Mn]=(0,xe.useState)(""),[ei,Kr]=(0,xe.useState)(!1),[Vr,Tn]=(0,xe.useState)(!0),[Sn,Un]=(0,xe.useState)(0),[Vn]=(0,O.useSearchParams)(),Ui=()=>y(void 0,null,function*(){(Ie.userInfo.is_teacher||Ie.userInfo.admin)&&(Kr(!0),Tn(!1))});(0,xe.useEffect)(()=>{Ui(),console.log("\u6253\u5370\u7684------",Oe),console.log(k),Mn(Oe==null?void 0:Oe.repeat_minus_score)},[Oe,Ie]),(0,xe.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Oe==null?void 0:Oe.work_score),Un(Oe==null?void 0:Oe.work_score)},[Oe==null?void 0:Oe.work_score,mn]),(0,xe.useEffect)(()=>(Ge({type:"globalSetting/footerToggle",payload:!1}),()=>{Ge({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,xe.useEffect)(()=>{var Sr;if(Oe){let Cn=[];(Sr=Oe==null?void 0:Oe.target_test_sets)==null||Sr.map((fn,hi)=>{var ii;(ii=fn==null?void 0:fn.targets)==null||ii.map((ri,bi)=>{var Ti;ri.name=fn==null?void 0:fn.name,ri.total_target_score=fn==null?void 0:fn.total_target_score,ri.actual_target_score=fn==null?void 0:fn.actual_target_score,ri.rowSpan=bi===0?(Ti=fn==null?void 0:fn.targets)==null?void 0:Ti.length:0,ri.order=hi+1,Cn.push(ri)})}),Dn(Cn),Ge({type:"classroomList/getAssistantPermissions",payload:{course_id:Ut.coursesId}})}},[Oe]),(0,xe.useEffect)(()=>{k.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&Et.length>0&&Oe!=null&&Oe.course_name&&vr("all")},[Oe==null?void 0:Oe.course_name]),(0,xe.useEffect)(()=>{console.log(br),mr(kt({},br))},[re.pathname]);const di=()=>{document.body.scrollIntoView()};function bn(){return y(this,null,function*(){var Sr,Cn,fn,hi;const ii=JSON.parse(localStorage.all_student_works_param||"{}"),ri=yield Ge({type:"shixunHomeworks/getAllStudentWorks",payload:kt(kt({},Ut),ii)});_r(ri.all_student_works);const bi=(Sr=ri.all_student_works)==null?void 0:Sr.map(Ti=>String(Ti.student_work_id)).indexOf(Ut.homeworkId);bi===((Cn=ri.all_student_works)==null?void 0:Cn.length)-1?rr({last:!0}):rr((fn=ri.all_student_works)==null?void 0:fn[bi+1]),ot(bi===0?{last:!0}:(hi=ri.all_student_works)==null?void 0:hi[bi-1])})}const dr=()=>{document.querySelectorAll("canvas").forEach(Sr=>{(!Sr.clientWidth||!Sr.clientHeight)&&Sr.remove()})},vr=Sr=>y(void 0,null,function*(){let Cn=0,fn;fn=I.default.info({width:460,title:We.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",We.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:We.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",We.createElement("span",{className:"c-blue"},Cn+1),"/",Sr!=="all"?1:Et==null?void 0:Et.length,We.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:st.modal,onOk:()=>{}});const hi={margin:[0,0],filename:`${Oe==null?void 0:Oe.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};function ii(){return y(this,null,function*(){di(),Cn++,setTimeout(()=>y(this,null,function*(){var bi;dr();const Ti=Xt.folder(`${(bi=Oe==null?void 0:Oe.stage_list[0])==null?void 0:bi.shixun_name}`),Bi=document.querySelector("#export-all").children;let Zi=Jt()();for(let ua=0;ua<Bi.length;ua++)yield Zi.set(hi).from(Bi[ua]).toContainer().toCanvas().toPdf().get("pdf").then(xi=>y(this,null,function*(){ua<Bi.length-1&&(yield xi.addPage())}));Ti.file(`${Et[Cn-1].student_work_user_name}.pdf`,Zi.output("blob")),fn.update({content:We.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",We.createElement("span",{className:"c-blue"},Cn),"/",Et==null?void 0:Et.length,We.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Cn==(Et==null?void 0:Et.length)?(fn.destroy(),Ir()):ri()}),2200)})}function ri(){return y(this,null,function*(){var bi,Ti,Bi,Zi,ua;const xi=yield(0,Y.ZP)(`/api/student_works/${Et[Cn].student_work_id}/jupyter_work_report.json`,{method:"get"});if((xi==null?void 0:xi.status)===0)if(on(xi.data),(Ti=(bi=xi==null?void 0:xi.data)==null?void 0:bi.shixun_detail[0])!=null&&Ti.myshixun_identifier){yi(!0);const gn=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(Zi=(Bi=xi==null?void 0:xi.data)==null?void 0:Bi.shixun_detail[0])==null?void 0:Zi.myshixun_identifier,student_work_id:(ua=xi==null?void 0:xi.data)==null?void 0:ua.work_id}});gn.status===0&&(On(gn.html_content),yi(!1),nn(),ii())}else ii()})}if(Sr!=="all"||(Et==null?void 0:Et.length)<2){dr(),di();const bi=Tt.current.children;let Ti=Jt()();const Bi=Xt.folder(`${Oe==null?void 0:Oe.username}`);for(let Zi=0;Zi<bi.length;Zi++)yield Ti.set(hi).from(bi[Zi]).toContainer().toCanvas().toPdf().get("pdf").then(ua=>y(void 0,null,function*(){Zi<bi.length-1&&(yield ua.addPage())}));qt(!1),Bi.file(`${Oe==null?void 0:Oe.username}.pdf`,Ti.output("blob"),{base64:!1}),fn.destroy(),Ir();return}else ri()}),Ir=()=>{Xt.generateAsync({type:"blob"}).then(function(Sr){const Cn=document.createElement("a");Cn.href=window.URL.createObjectURL(Sr),Cn.download=(Oe==null?void 0:Oe.course_name)+".zip",document.body.appendChild(Cn);const fn=document.createEvent("MouseEvents");fn.initEvent("click",!1,!1),Cn.dispatchEvent(fn),document.body.removeChild(Cn),$r(new(ie()))}),Gt(!1)};(0,xe.useEffect)(()=>{jn()},[Ut.homeworkId]),(0,xe.useEffect)(()=>{Oe!=null&&Oe.work_id&&((0,J.GJ)()||Oe!=null&&Oe.is_anonymous)&&bn()},[Oe==null?void 0:Oe.work_id]),(0,xe.useEffect)(()=>{console.log(Oe)},[Oe]);const Yr=()=>y(void 0,null,function*(){const Sr=yield(0,Y.ZP)(`/api/student_works/${Ut.homeworkId}/jupyter_work_report.json`,{method:"get"});(Sr==null?void 0:Sr.status)===0&&on(Sr.data)}),Mr=()=>y(void 0,null,function*(){var Sr,Cn,fn,hi,ii;const ri=yield(0,Y.ZP)(`/api/student_works/${Ut.homeworkId}/jupyter_work_report.json`,{method:"get"});if((ri==null?void 0:ri.status)===0&&(on(ri.data),(Cn=(Sr=ri==null?void 0:ri.data)==null?void 0:Sr.shixun_detail[0])!=null&&Cn.myshixun_identifier)){yi(!0);const bi=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(hi=(fn=ri==null?void 0:ri.data)==null?void 0:fn.shixun_detail[0])==null?void 0:hi.myshixun_identifier,student_work_id:(ii=ri==null?void 0:ri.data)==null?void 0:ii.work_id}});if(bi.status===0){On(bi.html_content),yi(!1),cn(bi.html_content);return}}}),cn=Sr=>{var Cn,fn;(fn=(Cn=Sr==null?void 0:Sr.match)==null?void 0:Cn.call(Sr,/<script [^>]*src=['"]([^'"]+)[^>]*>/gi))==null||fn.map(hi=>{const ii=document.createElement("script");ii.src=/<script [^>]*src=['"]([^'"]+)[^>]*>/gi.exec(hi)[1],document.body.appendChild(ii)}),nn()},nn=()=>{try{window.MathJax&&(MathJax.Hub.Config({TeX:{equationNumbers:{autoNumber:"AMS",useLabelIds:!0}},tex2jax:{inlineMath:[["$","$"],["\\\\(","\\\\)"]],displayMath:[["$$","$$"],["\\\\[","\\\\]"]],processEscapes:!0,processEnvironments:!0},displayAlign:"center",CommonHTML:{linebreaks:{automatic:!0}},"HTML-CSS":{linebreaks:{automatic:!0}}}),MathJax.Hub.Queue(["Typeset",MathJax.Hub]))}catch(Sr){}},jn=()=>y(void 0,null,function*(){ft(!0),Mr(),ft(!1)}),ti=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0,render:(Sr,Cn,fn)=>Sr},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:Oe!=null&&Oe.is_anonymous?220:170,render:Sr=>Sr||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:Oe!=null&&Oe.is_anonymous?140:90},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:Oe!=null&&Oe.is_anonymous?220:170},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:130},{title:"\u8865\u4EA4\u6263\u5206",dataIndex:"late_penalty",width:90,render:Sr=>Sr||"--"},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:Sr=>Sr||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:100,render:(Sr,Cn)=>We.createElement("div",null,We.createElement("span",{style:{color:parseFloat(Cn.score_full)!==parseFloat(Sr)?"red":"green"}},Sr||0),"/",Cn.score_full)},{title:"\u8C03\u5206",dataIndex:"action",width:110,render:(Sr,Cn)=>zn?We.createElement(pe,{max:Cn.score_full,onBlur:fn=>y(void 0,null,function*(){var hi;if((0,J.Rm)()&&!((hi=te.AssistantObject.practice)!=null&&hi.can_appraise)){n.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 ii=yield(0,Y.ZP)(`/api/student_works/${Ut.homeworkId}/adjust_score.json`,{method:"post",body:{score:fn}});Yr(),ii.status===0&&n.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Sr}].filter(Sr=>Oe!=null&&Oe.is_anonymous?!["late_penalty","absence_penalty","score","action"].includes(Sr.dataIndex):!0),ui=Oe==null?void 0:Oe.comment_scores.map(Sr=>{var Cn,fn,hi;return{children:We.createElement(o.Z,null,We.createElement(L.Z,{span:24},We.createElement(o.Z,null,We.createElement(L.Z,{flex:1},We.createElement("span",{className:"c-light-black mr10"},Sr.user_name),We.createElement("span",null,"\u8C03\u5206\u4E3A"),We.createElement("span",{className:"ml10 c-orange"},Sr.score?Sr.score:0,"\u5206")),We.createElement(L.Z,null,We.createElement("span",{className:"c-light-black ml10"},Sr.comment_time)))),We.createElement(L.Z,{span:24,className:"mt8"},We.createElement(o.Z,{className:"mt8"},We.createElement(L.Z,{span:22},Sr.content?We.createElement("span",{style:{color:"#333333"}},Sr.content):We.createElement("span",{className:"c-light-black"},"\u6682\u672A\u5199\u8BC4\u8BED")),We.createElement(L.Z,{className:"tr",span:2},(Sr==null?void 0:Sr.can_appeal)&&!(Sr!=null&&Sr.is_invalid)&&We.createElement(p.ZP,{size:"small",type:"primary",onClick:()=>{Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u533F\u8BC4\u7533\u8BC9",selectArrs:{data:kt({},Sr)}}})}},"\u7533\u8BC9")))),!!(Sr!=null&&Sr.appeal_info)&&We.createElement(L.Z,{span:24,className:"mt8"},We.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15}},We.createElement(o.Z,{justify:"space-between"},We.createElement("span",null,We.createElement("span",{className:"c-grey-333"},(Cn=Sr==null?void 0:Sr.appeal_info)==null?void 0:Cn.user_name),We.createElement("span",null,(Sr==null?void 0:Sr.appeal_status)===1&&We.createElement("span",{className:`tag-style bg-orange ml10 ${st.tag}`},"\u7533\u8BC9\u4E2D"),(Sr==null?void 0:Sr.appeal_status)===2&&We.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${st.tag}`},"\u7533\u8BC9\u5DF2\u64A4\u9500"),(Sr==null?void 0:Sr.appeal_status)===3&&We.createElement("span",{className:`tag-style ml10 ${st.tag}`,style:{background:"#57BE40"}},"\u7533\u8BC9\u6210\u529F"),(Sr==null?void 0:Sr.appeal_status)===4&&We.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${st.tag}`},"\u7533\u8BC9\u88AB\u62D2\u7EDD"),(Sr==null?void 0:Sr.appeal_status)===5&&We.createElement("span",{className:`tag-style c-light-black ml10 ${st.tag}`,style:{background:"#E9EAED"}},"\u7533\u8BC9\u5931\u8D25"))),We.createElement("span",{className:"c-light-black"}," ",se()((fn=Sr==null?void 0:Sr.appeal_info)==null?void 0:fn.time).format("YYYY-MM-DD HH:mm:ss"))),We.createElement(o.Z,{justify:"space-between",className:"mt10"},We.createElement(L.Z,{flex:1},(hi=Sr.appeal_info)==null?void 0:hi.content),We.createElement(L.Z,{style:{flexShrink:0,marginLeft:"auto"}},(Sr==null?void 0:Sr.appeal_status)===1&&(0,J.GJ)()&&We.createElement("span",{onClick:()=>{I.default.confirm({title:"\u63A5\u53D7\u7533\u8BC9",icon:null,content:"\u6B64\u533F\u8BC4\u8BB0\u5F55\u5C06\u4F5C\u5E9F\uFF0C\u533F\u8BC4\u5B66\u751F\u7684\u4F5C\u54C1\u5C06\u88AB\u6263\u51CF\u8FDD\u89C4\u533F\u8BC4\u5206 \u662F\u5426\u786E\u8BA4\u63A5\u53D7\u7533\u8BC9\uFF1F",onOk:()=>y(void 0,null,function*(){const ii=yield(0,Y.ZP)(`/api/student_works/${Ut.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Sr.score_id,status:3}});(ii==null?void 0:ii.status)===0&&Yr()})})},className:"c-red current"},"\u63A5\u53D7\u7533\u8BC9"),(Sr==null?void 0:Sr.appeal_status)===1&&(0,J.GJ)()&&We.createElement("span",{onClick:()=>{I.default.confirm({icon:null,title:"\u63A5\u53D7\u7533\u8BC9",content:"\u6B64\u533F\u8BC4\u8BB0\u5F55\u88AB\u8BA4\u4E3A\u5408\u7406\uFF0C\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9\uFF1F",onOk:()=>y(void 0,null,function*(){const ii=yield(0,Y.ZP)(`/api/student_works/${Ut.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Sr.score_id,status:4}});(ii==null?void 0:ii.status)===0&&Yr()})})},className:"c-light-black current ml10"},"\u62D2\u7EDD\u7533\u8BC9"))))))}}),Ri=Sr=>{On(null),Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Sr==="next"?O.history.push(`/classrooms/${Ut.coursesId}/common_homework/${Ut.categoryId}/${ue==null?void 0:ue.student_work_id}/comment?page=${Vn.get("page")}`):O.history.push(`/classrooms/${Ut.coursesId}/common_homework/${Ut.categoryId}/${Qe==null?void 0:Qe.student_work_id}/comment?page=${Vn.get("page")}`)},200)},Qi=Sr=>{Mn(""),Sr.target.value&&(console.log("\u8FDB\u6765",Oe),Sr.target.value=Sr.target.value>(Oe==null?void 0:Oe.repeat_setting_score)?Oe==null?void 0:Oe.repeat_setting_score:Sr.target.value,Mn(Sr.target.value))},Pi=()=>y(void 0,null,function*(){const Sr=yield(0,Y.ZP)(`/api/student_works/${Oe==null?void 0:Oe.work_id}/update_repeat_score`,{method:"put",body:{score:mn}});yield Ge({type:"shixunHomeworks/gethomeWorkReport",payload:kt({},Ut)}),Sr.status===0&&n.ZP.info("\u64CD\u4F5C\u6210\u529F")});return console.log(!!(Oe!=null&&Oe.category),Oe==null?void 0:Oe.course_id,"homeWorkReport"),We.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},We.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},We.createElement(a.Z,{loading:et,active:!0,avatar:{size:40},paragraph:{rows:5}},We.createElement("div",{className:"edu-container"},(Oe==null?void 0:Oe.course_id)&&We.createElement("section",{className:"animated fadeIn"},We.createElement("aside",{className:""},(Oe==null?void 0:Oe.category)&&We.createElement(d.Z,{separator:">"},We.createElement(d.Z.Item,null,We.createElement(O.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework`},Oe==null?void 0:Oe.course_name)),We.createElement(d.Z.Item,null,We.createElement(O.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe!=null&&Oe.category.main?"":Oe==null?void 0:Oe.category.category_id}`},Oe==null?void 0:Oe.category.category_name)),We.createElement(d.Z.Item,null,We.createElement(O.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe==null?void 0:Oe.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),We.createElement(d.Z.Item,null,Oe==null?void 0:Oe.username))),We.createElement("aside",{className:[st.title1,"mt20"].join(" ")},We.createElement(o.Z,{align:"middle"},We.createElement(L.Z,{flex:1},We.createElement(O.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe==null?void 0:Oe.homework_common_id}/detail?page=${Vn.get("page")}`},We.createElement(V.Z,{className:"font16 c-black"})),We.createElement("strong",{style:{fontWeight:700},className:"font20 ml5"},Oe==null?void 0:Oe.shixun_name),We.createElement(we.VV,{status:Oe==null?void 0:Oe.homework_status})),We.createElement(L.Z,{className:st.title1_right},!(Oe!=null&&Oe.is_anonymous)&&!!(Oe!=null&&Oe.work_status)&&We.createElement(p.ZP,null,We.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),We.createElement(O.Link,{className:"c-black",target:"_blank",to:`/tasks/${(tt=($e=Oe==null?void 0:Oe.shixun_detail)==null?void 0:$e[0])==null?void 0:tt.myshixun_identifier}/jupyter${(0,J.GJ)()?"":`?homework_common_id=${br.categoryId}`}`},(0,J.GJ)()?"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD":"\u67E5\u770B\u5B9E\u8BAD")),(0,J.GJ)()&&!((dt=Oe==null?void 0:Oe.homework_status)!=null&&dt.includes("\u5DF2\u622A\u6B62"))&&We.createElement(p.ZP,{className:"ml10",onClick:()=>y(void 0,null,function*(){yield Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"redoShixunModal",homework_common_id:br.categoryId,student_work_id:br.homeworkId}})})},We.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),!(Oe!=null&&Oe.is_anonymous)&&We.createElement(p.ZP,{className:"ml10",onClick:()=>{var Sr;if((0,J.Rm)()&&!((Sr=te.AssistantObject.normal)!=null&&Sr.can_download)){n.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}vr("")},loading:Kt},We.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,J.GJ)()&&(Et==null?void 0:Et.length)>1&&We.createElement(p.ZP,{className:"ml10",onClick:()=>{var Sr;if((0,J.Rm)()&&!((Sr=te.AssistantObject.normal)!=null&&Sr.can_download)){n.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}vr("all")}},We.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),We.createElement("aside",{className:"mt30 relative"})),We.createElement("aside",{className:"edu-container bg-white",ref:Jr},We.createElement("div",{id:"export-all",ref:Tt},We.createElement("div",{id:"export-all-1"},We.createElement("div",{className:st.title},We.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),We.createElement("div",null,!((Ze=Oe==null?void 0:Oe.homework_status)!=null&&Ze.includes("\u5DF2\u622A\u6B62")&&(0,J.dE)())&&((0,J.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&We.createElement(p.ZP,{className:"mr20",type:"primary",onClick:()=>{Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Oe==null?void 0:Oe.user_id,data:kt({},Oe)}}})}},We.createElement(ee.Z,null),Oe!=null&&Oe.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),We.createElement(m.Z,{style:{marginTop:0}}),We.createElement(o.Z,{className:"pl30 pr30"},We.createElement(L.Z,null,We.createElement("img",{className:st.userPic,src:`${le.Z.IMG_SERVER}/images/${Oe==null?void 0:Oe.image_url}`,alt:Oe==null?void 0:Oe.username})),We.createElement(L.Z,{className:"pt20"},We.createElement("span",{className:"font16 ml40"},Oe==null?void 0:Oe.username),We.createElement(we.Y,{status:Oe==null?void 0:Oe.work_status}),We.createElement("ul",{className:st.userInfo},We.createElement("li",null,"\u5B66\u53F7\uFF1A",(Oe==null?void 0:Oe.student_id)||"--"),((0,J.GJ)()||!(Oe!=null&&Oe.is_anonymous))&&We.createElement("li",null,"\u5206\u73ED\uFF1A",(Oe==null?void 0:Oe.group_name)||"--"),We.createElement("br",null)))),We.createElement("aside",{className:"pl30 pr30 mt30 mb10"},We.createElement(S.default,{dataSource:Oe==null?void 0:Oe.stage_list,rowKey:Sr=>Sr==null?void 0:Sr.challenge_id,pagination:!1,columns:ti})),((Oe==null?void 0:Oe.work_comment_hidden)||(Oe==null?void 0:Oe.work_comment))&&We.createElement("div",null,We.createElement(o.Z,{align:"middle"},We.createElement(L.Z,{flex:1},We.createElement("h1",{className:st.title},"\u70B9\u8BC4\u5185\u5BB9")),We.createElement(L.Z,{className:"pr30"},(0,J.GJ)()&&We.createElement(p.ZP,{onClick:()=>y(void 0,null,function*(){I.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:We.createElement(B.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return y(this,null,function*(){(yield(0,Rt.gZ)({comment_id:Oe==null?void 0:Oe.comment_id,homeworkId:Ut.homeworkId})).status===0&&(n.ZP.success("\u5220\u9664\u6210\u529F"),Yr())})}})})},We.createElement(G.Z,null),"\u5220\u9664"))),(Oe==null?void 0:Oe.work_comment)&&We.createElement("aside",{className:"pl30 pr30",style:{marginTop:"-5px"}},We.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),We.createElement("br",null),We.createElement(nt.Z,{value:Oe==null?void 0:Oe.work_comment,className:"font14"})),(Oe==null?void 0:Oe.work_comment_hidden)&&We.createElement("aside",{className:"pl30 pr30 mt15"},We.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),We.createElement("br",null),We.createElement(nt.Z,{value:Oe==null?void 0:Oe.work_comment_hidden,className:"font14"}))),(Oe==null?void 0:Oe.comment_scores.length)>0&&We.createElement(We.Fragment,null,We.createElement("h1",{className:st.title},"\u8C03\u5206\u539F\u56E0"),We.createElement("aside",{className:"pl30 pr30",style:{marginTop:"4px"}},We.createElement($.Z,{items:ui}))),((Ke=Oe==null?void 0:Oe.shixun_detail[0])==null?void 0:Ke.myshixun_identifier)&&We.createElement(We.Fragment,null,We.createElement("h1",{className:st.title,style:{marginTop:"-20px"}},"\u5B9E\u8BAD\u8BE6\u60C5"),We.createElement("aside",{className:"pl30 pr30"},We.createElement("div",{className:st.shixunWrp},We.createElement("h2",null,We.createElement("span",null,"\u8BC4\u6D4B\u4EE3\u7801",We.createElement("span",{className:"ml5 font12 c-grey-999"},"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u540E\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\u8BE6\u60C5")),We.createElement("span",null,We.createElement(F.default,{style:{width:200},value:(Bt=Oe==null?void 0:Oe.shixun_detail[0])==null?void 0:Bt.path}," ",Oe==null?void 0:Oe.shixun_detail.map(Sr=>We.createElement(Option,{value:Sr.path},Sr.path))," "))),We.createElement(H.Z,{spinning:Xn},We.createElement("div",{style:{width:"100%",minHeight:"550px",padding:"16px"},dangerouslySetInnerHTML:{__html:Mt}})))))))),((0,J.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&We.createElement("aside",{className:`${st.footerBar} ${Kt?st.footerBarStatic:""}`},We.createElement("aside",{className:"edu-container"},We.createElement(o.Z,{align:"middle"},We.createElement(L.Z,{flex:"1"},We.createElement(O.Link,{className:st.exitComment,to:`/classrooms/${Ut.coursesId}/common_homework/${Ut.categoryId}/detail?page=${Vn.get("page")}`},"\u8FD4\u56DE\u5217\u8868")),We.createElement(L.Z,{flex:"1",className:"tr"},We.createElement(p.ZP,{type:"default",disabled:Qe==null?void 0:Qe.last,onClick:()=>Ri()},"\u4E0A\u4E00\u4E2A"),We.createElement(p.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:ue==null?void 0:ue.last,onClick:()=>Ri("next")},"\u4E0B\u4E00\u4E2A"),!((Vt=Oe==null?void 0:Oe.homework_status)!=null&&Vt.includes("\u5DF2\u622A\u6B62")&&(0,J.dE)())&&((0,J.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&We.createElement(p.ZP,{type:"primary",onClick:()=>y(void 0,null,function*(){Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Oe==null?void 0:Oe.user_id,data:kt({},Oe)}}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),We.createElement(he,{gethomeworkreport:Yr,homeWorkReport:Oe}),We.createElement(ye,{gethomeworkreport:Yr,homeWorkReport:Oe}),We.createElement(qe.Z,{getData:Yr}),We.createElement(I.default,{open:Fr,width:860,centered:!0,onCancel:()=>{In(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},We.createElement("div",{style:{color:"#333333",fontWeight:400}},We.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),We.createElement("br",null),We.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"),We.createElement("br",null),We.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"),We.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 "),We.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")),We.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},We.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),We.createElement("br",null),We.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 "),We.createElement("br",null),We.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"),We.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 "),We.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"),We.createElement("br",null),We.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")),We.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},We.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),We.createElement("br",null),We.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")),We.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},We.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),We.createElement("br",null),We.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"))),We.createElement(I.default,{open:an,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{_n(!1)},width:600},We.createElement("div",{style:{fontWeight:400,color:"#333333"}},We.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",We.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),We.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",We.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),We.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",We.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"))))};var D=(0,O.connect)(({shixunHomeworks:Ae,classroomList:Z,loading:k,globalSetting:te,user:Se})=>({shixunHomeworks:Ae,classroomList:Z,globalSetting:te,loading:k.effects,user:Se}))(h)},45633:function(yn,Wt,g){"use strict";var xe=g(43418),Fe=g(8591),se=g(99064),Me=g(89070),ie=g(24065),Y=g(59301),O=(n,o,L)=>new Promise((p,a)=>{var d=$=>{try{S(L.next($))}catch(F){a(F)}},m=$=>{try{S(L.throw($))}catch(F){a(F)}},S=$=>$.done?p($.value):Promise.resolve($.value).then(d,m);S((L=L.apply(n,o)).next())});const I=({shixunHomeworks:n,dispatch:o,classroomList:L,getData:p})=>Y.createElement(xe.default,{centered:!0,title:"\u63D0\u793A",open:n.actionTabs.key==="redoShixunModal",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>O(void 0,null,function*(){var a;if((0,ie.Rm)()&&!((a=L.AssistantObject.normal)!=null&&a.can_redo)){Fe.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}(yield(0,se.ZP)(`/api/homework_commons/${n.actionTabs.homework_common_id}/batch_redo_modal.json`,{method:"post",body:{student_work_id:n.actionTabs.student_work_id}})).status===0&&(Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),o({type:"shixunHomeworks/setActionTabs",payload:{}}),p())}),onCancel:()=>{o({type:"shixunHomeworks/setActionTabs",payload:{}})}},Y.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C",n.actionTabs.isshixun?"\u5B66\u751F\u5B9E\u8BAD":"\u5B66\u751F\u4F5C\u54C1\u63D0\u4EA4","\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Y.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"));Wt.Z=(0,Me.connect)(({shixunHomeworks:n,classroomList:o})=>({shixunHomeworks:n,classroomList:o}))(I)},24768:function(yn,Wt,g){"use strict";g.d(Wt,{AL:function(){return ee},Iy:function(){return L},Qv:function(){return d},ez:function(){return V},jb:function(){return p}});var xe=g(32834),Fe=g.n(xe),se=g(11690),Me=g.n(se);let ie=1;function Y(we,Ce){const Le=we.match(/^(\s+)(?:```)/);if(Le===null)return Ce;const ae=Le[1];return Ce.split(`
|
|
|
`).map(pe=>{const T=pe.match(/^\s+/);if(T===null)return pe;const[Ee]=T;return Ee.length>=ae.length?pe.slice(ae.length):pe}).join(`
|
|
|
`)}let O=[],I=["<ul>"];const n=new(Fe()).Renderer,o=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){O.length=0,I=["<ul>"]}const p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function a(we,Ce,Le,ae){if(Ce>=we.length||we[Ce].level<=Le)return Ce;var pe=we[Ce];ae.push("<li><a href='#"+ie+pe.anchor+"'>"+pe.text+"</a>"),Ce++;var T=[];return Ce=a(we,Ce,pe.level,T),T.length>0&&(ae.push("<ul>"),T.forEach(function(Ee){ae.push(Ee)}),ae.push("</ul>")),ae.push("</li>"),Ce=a(we,Ce,Le,ae),Ce}function d(){return a(O,0,0,I),I.push("</ul>"),I.join("")}const m={heading(we){const Ce=o.exec(we);if(ie+=1,Ce)return{type:"heading",raw:Ce[0],depth:Ce[1].length,text:Ce[2]}},fences(we){const Ce=this.rules.block.fences.exec(we);if(Ce){const Le=Ce[0];let ae=Y(Le,Ce[3]||"");const pe=Ce[2]?Ce[2].trim():Ce[2];if(["latex","katex","math"].indexOf(pe)>=0){const T=F(),Ee=ae;ae=T,H[T]={type:"block",expression:Ee}}return{type:"code",raw:Le,lang:pe,text:ae}}}},S=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let $=0;const F=()=>`__special_katext_id_${$++}__`;let H={};function V(){return H}function ee(){$=0,H={}}function B(we){return we=we.replace(S,(Ce,Le)=>{const ae=F();return H[ae]={type:"inline",expression:Le},ae}),we}const G=n.listitem;n.listitem=function(we){return G(B(we))};const le=n.paragraph;n.paragraph=function(we){return le(B(we))};const J=n.tablecell;n.tablecell=function(we,Ce){return J(B(we),Ce)},n.code=function(we,Ce,Le){const ae=(Ce||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?`<p class='editormd-tex'>${we}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ce}">${Le?we:(0,se.escape)(we,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Le?we:(0,se.escape)(we,!0))+"</code></pre>"},n.heading=function(we,Ce,Le){let ae=this.options.headerPrefix+Le.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return O.push({anchor:ae,level:Ce,text:we}),"<h"+Ce+' id="'+ie+ae+'">'+we+"</h"+Ce+">"},Fe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Fe().use({tokenizer:m,renderer:n}),Wt.ZP=Fe()},36785:function(yn,Wt,g){"use strict";g.d(Wt,{o2:function(){return ie},yT:function(){return Y}});var xe=g(19127),Fe=g(33166);const se=Fe.i.map(O=>`${O}-inverse`),Me=["success","processing","error","default","warning"];function ie(O){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,xe.Z)(se),(0,xe.Z)(Fe.i)).includes(O):Fe.i.includes(O)}function Y(O){return Me.includes(O)}},50371:function(yn,Wt){"use strict";function g(){const xe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Fe=1;Fe<arguments.length;Fe++){const se=Fe<0||arguments.length<=Fe?void 0:arguments[Fe];se&&Object.keys(se).forEach(Me=>{const ie=se[Me];ie!==void 0&&(xe[Me]=ie)})}return xe}Wt.Z=g},13845:function(yn,Wt,g){"use strict";g.d(Wt,{F:function(){return xe},Z:function(){return Fe}});function xe(se){return se!=null&&se===se.window}function Fe(se,Me){var ie,Y;if(typeof window=="undefined")return 0;const O=Me?"scrollTop":"scrollLeft";let I=0;return xe(se)?I=se[Me?"pageYOffset":"pageXOffset"]:se instanceof Document?I=se.documentElement[O]:(se instanceof HTMLElement||se)&&(I=se[O]),se&&!xe(se)&&typeof I!="number"&&(I=(Y=((ie=se.ownerDocument)!==null&&ie!==void 0?ie:se).documentElement)===null||Y===void 0?void 0:Y[O]),I}},56762:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});var xe=g(59301);function Fe(){const[,se]=xe.useReducer(Me=>Me+1,0);return se}},79676:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Y}});var xe=g(19447);function Fe(O,I,n,o){if(o===!1)return{adjustX:!1,adjustY:!1};const L=o&&typeof o=="object"?o:{},p={};switch(O){case"top":case"bottom":p.shiftX=I.dropdownArrowOffset*2+n;break;case"left":case"right":p.shiftY=I.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},p),L);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const se={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Me={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},ie=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Y(O){const{arrowWidth:I,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:L,borderRadius:p,visibleFirst:a}=O,d=I/2,m={};return Object.keys(se).forEach(S=>{const $=o&&Me[S]||se[S],F=Object.assign(Object.assign({},$),{offset:[0,0]});switch(m[S]=F,ie.has(S)&&(F.autoArrow=!1),S){case"top":case"topLeft":case"topRight":F.offset[1]=-d-L;break;case"bottom":case"bottomLeft":case"bottomRight":F.offset[1]=d+L;break;case"left":case"leftTop":case"leftBottom":F.offset[0]=-d-L;break;case"right":case"rightTop":case"rightBottom":F.offset[0]=d+L;break}const H=(0,xe.fS)({contentRadius:p,limitVerticalRadius:!0});if(o)switch(S){case"topLeft":case"bottomLeft":F.offset[0]=-H.dropdownArrowOffset-d;break;case"topRight":case"bottomRight":F.offset[0]=H.dropdownArrowOffset+d;break;case"leftTop":case"rightTop":F.offset[1]=-H.dropdownArrowOffset-d;break;case"leftBottom":case"rightBottom":F.offset[1]=H.dropdownArrowOffset+d;break}F.overflow=Fe(S,H,I,n),a&&(F.htmlRegion="visibleFirst")}),m}},68031:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Me}});var xe=g(16089);function Fe(ie,Y,O,I){const n=O-Y;return ie/=I/2,ie<1?n/2*ie*ie*ie+Y:n/2*((ie-=2)*ie*ie+2)+Y}var se=g(13845);function Me(ie){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:O=()=>window,callback:I,duration:n=450}=Y,o=O(),L=(0,se.Z)(o,!0),p=Date.now(),a=()=>{const m=Date.now()-p,S=Fe(m>n?n:m,L,ie,n);(0,se.F)(o)?o.scrollTo(window.pageXOffset,S):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=S:o.scrollTop=S,m<n?(0,xe.Z)(a):typeof I=="function"&&I()};(0,xe.Z)(a)}},19080:function(yn,Wt,g){"use strict";g.d(Wt,{F:function(){return ie},Z:function(){return Me}});var xe=g(92310),Fe=g.n(xe);const se=null;function Me(Y,O,I){return Fe()({[`${Y}-status-success`]:O==="success",[`${Y}-status-warning`]:O==="warning",[`${Y}-status-error`]:O==="error",[`${Y}-status-validating`]:O==="validating",[`${Y}-has-feedback`]:I})}const ie=(Y,O)=>O||Y},66104:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Ee}});var xe=g(92310),Fe=g.n(xe),se=g(11592),Me=g(26112),ie=g(59301),Y=g(92343),O=g(36355),I=g(84105),n=g(91857);const o=oe=>{let{children:fe}=oe;const{getPrefixCls:ye}=ie.useContext(O.E_),_=ye("breadcrumb");return ie.createElement("li",{className:`${_}-separator`,"aria-hidden":"true"},fe===""?fe:fe||"/")};o.__ANT_BREADCRUMB_SEPARATOR=!0;var L=o,p=function(oe,fe){var ye={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&fe.indexOf(_)<0&&(ye[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)fe.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ye[_[N]]=oe[_[N]]);return ye};function a(oe,fe){if(oe.title===void 0||oe.title===null)return null;const ye=Object.keys(fe).join("|");return typeof oe.title=="object"?oe.title:String(oe.title).replace(new RegExp(`:(${ye})`,"g"),(_,N)=>fe[N]||_)}function d(oe,fe,ye,_){if(ye==null)return null;const{className:N,onClick:X}=fe,he=p(fe,["className","onClick"]),qe=Object.assign(Object.assign({},(0,Me.Z)(he,{data:!0,aria:!0})),{onClick:X});return _!==void 0?ie.createElement("a",Object.assign({},qe,{className:Fe()(`${oe}-link`,N),href:_}),ye):ie.createElement("span",Object.assign({},qe,{className:Fe()(`${oe}-link`,N)}),ye)}function m(oe,fe){return(_,N,X,he,qe)=>{if(fe)return fe(_,N,X,he);const st=a(_,N);return d(oe,_,st,qe)}}var S=function(oe,fe){var ye={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&fe.indexOf(_)<0&&(ye[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)fe.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ye[_[N]]=oe[_[N]]);return ye};const $=oe=>{const{prefixCls:fe,separator:ye="/",children:_,menu:N,overlay:X,dropdownProps:he,href:qe}=oe,nt=(Rt=>{if(N||X){const sr=Object.assign({},he);if(N){const Jt=N||{},{items:We}=Jt,Er=S(Jt,["items"]);sr.menu=Object.assign(Object.assign({},Er),{items:We==null?void 0:We.map((xr,Wr)=>{var{key:Cr,title:_e,label:kt,path:K}=xr,y=S(xr,["key","title","label","path"]);let h=kt!=null?kt:_e;return K&&(h=ie.createElement("a",{href:`${qe}${K}`},h)),Object.assign(Object.assign({},y),{key:Cr!=null?Cr:Wr,label:h})})})}else X&&(sr.overlay=X);return ie.createElement(n.Z,Object.assign({placement:"bottom"},sr),ie.createElement("span",{className:`${fe}-overlay-link`},Rt,ie.createElement(I.Z,null)))}return Rt})(_);return nt!=null?ie.createElement(ie.Fragment,null,ie.createElement("li",null,nt),ye&&ie.createElement(L,null,ye)):null},F=oe=>{const{prefixCls:fe,children:ye,href:_}=oe,N=S(oe,["prefixCls","children","href"]),{getPrefixCls:X}=ie.useContext(O.E_),he=X("breadcrumb",fe);return ie.createElement($,Object.assign({},N,{prefixCls:he}),d(he,N,ye,_))};F.__ANT_BREADCRUMB_ITEM=!0;var H=F,V=g(17313),ee=g(83116),B=g(37613);const G=oe=>{const{componentCls:fe,iconCls:ye}=oe;return{[fe]:Object.assign(Object.assign({},(0,V.Wf)(oe)),{color:oe.itemColor,fontSize:oe.fontSize,[ye]:{fontSize:oe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:oe.linkColor,transition:`color ${oe.motionDurationMid}`,padding:`0 ${oe.paddingXXS}px`,borderRadius:oe.borderRadiusSM,height:oe.lineHeight*oe.fontSize,display:"inline-block",marginInline:-oe.marginXXS,"&:hover":{color:oe.linkHoverColor,backgroundColor:oe.colorBgTextHover}},(0,V.Qy)(oe)),"li:last-child":{color:oe.lastItemColor},[`${fe}-separator`]:{marginInline:oe.separatorMargin,color:oe.separatorColor},[`${fe}-link`]:{[`
|
|
|
> ${ye} + span,
|
|
|
> ${ye} + a
|
|
|
`]:{marginInlineStart:oe.marginXXS}},[`${fe}-overlay-link`]:{borderRadius:oe.borderRadiusSM,height:oe.lineHeight*oe.fontSize,display:"inline-block",padding:`0 ${oe.paddingXXS}px`,marginInline:-oe.marginXXS,[`> ${ye}`]:{marginInlineStart:oe.marginXXS,fontSize:oe.fontSizeIcon},"&:hover":{color:oe.linkHoverColor,backgroundColor:oe.colorBgTextHover,a:{color:oe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${oe.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,ee.Z)("Breadcrumb",oe=>{const fe=(0,B.TS)(oe,{});return[G(fe)]},oe=>({itemColor:oe.colorTextDescription,lastItemColor:oe.colorText,iconFontSize:oe.fontSize,linkColor:oe.colorTextDescription,linkHoverColor:oe.colorText,separatorColor:oe.colorTextDescription,separatorMargin:oe.marginXS})),J=function(oe,fe){var ye={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&fe.indexOf(_)<0&&(ye[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)fe.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ye[_[N]]=oe[_[N]]);return ye};function we(oe){const{breadcrumbName:fe,children:ye}=oe,_=J(oe,["breadcrumbName","children"]),N=Object.assign({title:fe},_);return ye&&(N.menu={items:ye.map(X=>{var{breadcrumbName:he}=X,qe=J(X,["breadcrumbName"]);return Object.assign(Object.assign({},qe),{title:he})})}),N}function Ce(oe,fe){return(0,ie.useMemo)(()=>oe||(fe?fe.map(we):null),[oe,fe])}var Le=function(oe,fe){var ye={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&fe.indexOf(_)<0&&(ye[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)fe.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ye[_[N]]=oe[_[N]]);return ye};const ae=(oe,fe)=>{if(fe===void 0)return fe;let ye=(fe||"").replace(/^\//,"");return Object.keys(oe).forEach(_=>{ye=ye.replace(`:${_}`,oe[_])}),ye},pe=oe=>{const{prefixCls:fe,separator:ye="/",style:_,className:N,rootClassName:X,routes:he,items:qe,children:st,itemRender:nt,params:Rt={}}=oe,sr=Le(oe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Jt,direction:We,breadcrumb:Er}=ie.useContext(O.E_);let xr;const Wr=Jt("breadcrumb",fe),[Cr,_e]=le(Wr),kt=Ce(qe,he),K=m(Wr,nt);if(kt&&kt.length>0){const D=[],Ae=qe||he;xr=kt.map((Z,k)=>{const{path:te,key:Se,type:Be,menu:Ie,overlay:Ge,onClick:mt,className:$e,separator:tt,dropdownProps:dt}=Z,Ze=ae(Rt,te);Ze!==void 0&&D.push(Ze);const Ke=Se!=null?Se:k;if(Be==="separator")return ie.createElement(L,{key:Ke},tt);const Bt={},Vt=k===kt.length-1;Ie?Bt.menu=Ie:Ge&&(Bt.overlay=Ge);let{href:Ut}=Z;return D.length&&Ze!==void 0&&(Ut=`#/${D.join("/")}`),ie.createElement($,Object.assign({key:Ke},Bt,(0,Me.Z)(Z,{data:!0,aria:!0}),{className:$e,dropdownProps:dt,href:Ut,separator:Vt?"":ye,onClick:mt,prefixCls:Wr}),K(Z,Rt,Ae,D,Ut))})}else if(st){const D=(0,se.Z)(st).length;xr=(0,se.Z)(st).map((Ae,Z)=>{if(!Ae)return Ae;const k=Z===D-1;return(0,Y.Tm)(Ae,{separator:k?"":ye,key:Z})})}const y=Fe()(Wr,Er==null?void 0:Er.className,{[`${Wr}-rtl`]:We==="rtl"},N,X,_e),h=Object.assign(Object.assign({},Er==null?void 0:Er.style),_);return Cr(ie.createElement("nav",Object.assign({className:y,style:h},sr),ie.createElement("ol",null,xr)))};pe.Item=H,pe.Separator=L;var T=pe,Ee=T},24905:function(yn,Wt,g){"use strict";g.d(Wt,{default:function(){return le}});var xe=g(92310),Fe=g.n(xe),se=g(5630),Me=g(59301),ie=g(36355),Y=g(1684),O=g(32441),n=Me.createContext(null),o=g(98447),L=g(14088),p=g(4572),a=function(J,we){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&we.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)we.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce};const d=(J,we)=>{var Ce;const{prefixCls:Le,className:ae,rootClassName:pe,children:T,indeterminate:Ee=!1,style:oe,onMouseEnter:fe,onMouseLeave:ye,skipGroup:_=!1,disabled:N}=J,X=a(J,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:he,direction:qe,checkbox:st}=Me.useContext(ie.E_),nt=Me.useContext(n),{isFormItemInput:Rt}=Me.useContext(O.aM),sr=Me.useContext(Y.Z),Jt=(Ce=(nt==null?void 0:nt.disabled)||N)!==null&&Ce!==void 0?Ce:sr,We=Me.useRef(X.value);Me.useEffect(()=>{nt==null||nt.registerValue(X.value)},[]),Me.useEffect(()=>{if(!_)return X.value!==We.current&&(nt==null||nt.cancelValue(We.current),nt==null||nt.registerValue(X.value),We.current=X.value),()=>nt==null?void 0:nt.cancelValue(X.value)},[X.value]);const Er=he("checkbox",Le),[xr,Wr]=(0,o.ZP)(Er),Cr=Object.assign({},X);nt&&!_&&(Cr.onChange=function(){X.onChange&&X.onChange.apply(X,arguments),nt.toggleOption&&nt.toggleOption({label:T,value:X.value})},Cr.name=nt.name,Cr.checked=nt.value.includes(X.value));const _e=Fe()(`${Er}-wrapper`,{[`${Er}-rtl`]:qe==="rtl",[`${Er}-wrapper-checked`]:Cr.checked,[`${Er}-wrapper-disabled`]:Jt,[`${Er}-wrapper-in-form-item`]:Rt},st==null?void 0:st.className,ae,pe,Wr),kt=Fe()({[`${Er}-indeterminate`]:Ee},p.A,Wr),K=Ee?"mixed":void 0;return xr(Me.createElement(L.Z,{component:"Checkbox",disabled:Jt},Me.createElement("label",{className:_e,style:Object.assign(Object.assign({},st==null?void 0:st.style),oe),onMouseEnter:fe,onMouseLeave:ye},Me.createElement(se.Z,Object.assign({"aria-checked":K},Cr,{prefixCls:Er,className:kt,disabled:Jt,ref:we})),T!==void 0&&Me.createElement("span",null,T))))};var S=Me.forwardRef(d),$=g(19127),F=g(2738),H=function(J,we){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&we.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)we.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce};const V=(J,we)=>{const{defaultValue:Ce,children:Le,options:ae=[],prefixCls:pe,className:T,rootClassName:Ee,style:oe,onChange:fe}=J,ye=H(J,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:_,direction:N}=Me.useContext(ie.E_),[X,he]=Me.useState(ye.value||Ce||[]),[qe,st]=Me.useState([]);Me.useEffect(()=>{"value"in ye&&he(ye.value||[])},[ye.value]);const nt=Me.useMemo(()=>ae.map(y=>typeof y=="string"||typeof y=="number"?{label:y,value:y}:y),[ae]),Rt=y=>{st(h=>h.filter(D=>D!==y))},sr=y=>{st(h=>[].concat((0,$.Z)(h),[y]))},Jt=y=>{const h=X.indexOf(y.value),D=(0,$.Z)(X);h===-1?D.push(y.value):D.splice(h,1),"value"in ye||he(D),fe==null||fe(D.filter(Ae=>qe.includes(Ae)).sort((Ae,Z)=>{const k=nt.findIndex(Se=>Se.value===Ae),te=nt.findIndex(Se=>Se.value===Z);return k-te}))},We=_("checkbox",pe),Er=`${We}-group`,[xr,Wr]=(0,o.ZP)(We),Cr=(0,F.Z)(ye,["value","disabled"]),_e=ae.length?nt.map(y=>Me.createElement(S,{prefixCls:We,key:y.value.toString(),disabled:"disabled"in y?y.disabled:ye.disabled,value:y.value,checked:X.includes(y.value),onChange:y.onChange,className:`${Er}-item`,style:y.style,title:y.title},y.label)):Le,kt={toggleOption:Jt,value:X,disabled:ye.disabled,name:ye.name,registerValue:sr,cancelValue:Rt},K=Fe()(Er,{[`${Er}-rtl`]:N==="rtl"},T,Ee,Wr);return xr(Me.createElement("div",Object.assign({className:K,style:oe},Cr,{ref:we}),Me.createElement(n.Provider,{value:kt},_e)))},ee=Me.forwardRef(V);var B=Me.memo(ee);const G=S;G.Group=B,G.__ANT_CHECKBOX=!0;var le=G},98447:function(yn,Wt,g){"use strict";g.d(Wt,{C2:function(){return ie}});var xe=g(17313),Fe=g(37613),se=g(83116);const Me=Y=>{const{checkboxCls:O}=Y,I=`${O}-wrapper`;return[{[`${O}-group`]:Object.assign(Object.assign({},(0,xe.Wf)(Y)),{display:"inline-flex",flexWrap:"wrap",columnGap:Y.marginXS,[`> ${Y.antCls}-row`]:{flex:1}}),[I]:Object.assign(Object.assign({},(0,xe.Wf)(Y)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${I}`]:{marginInlineStart:0},[`&${I}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[O]:Object.assign(Object.assign({},(0,xe.Wf)(Y)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Y.borderRadiusSM,alignSelf:"center",[`${O}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${O}-inner`]:Object.assign({},(0,xe.oN)(Y))},[`${O}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Y.checkboxSize,height:Y.checkboxSize,direction:"ltr",backgroundColor:Y.colorBgContainer,border:`${Y.lineWidth}px ${Y.lineType} ${Y.colorBorder}`,borderRadius:Y.borderRadiusSM,borderCollapse:"separate",transition:`all ${Y.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Y.checkboxSize/14*5,height:Y.checkboxSize/14*8,border:`${Y.lineWidthBold}px solid ${Y.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Y.motionDurationFast} ${Y.motionEaseInBack}, opacity ${Y.motionDurationFast}`}},"& + span":{paddingInlineStart:Y.paddingXS,paddingInlineEnd:Y.paddingXS}})},{[`
|
|
|
${I}:not(${I}-disabled),
|
|
|
${O}:not(${O}-disabled)
|
|
|
`]:{[`&:hover ${O}-inner`]:{borderColor:Y.colorPrimary}},[`${I}:not(${I}-disabled)`]:{[`&:hover ${O}-checked:not(${O}-disabled) ${O}-inner`]:{backgroundColor:Y.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${O}-checked:not(${O}-disabled):after`]:{borderColor:Y.colorPrimaryHover}}},{[`${O}-checked`]:{[`${O}-inner`]:{backgroundColor:Y.colorPrimary,borderColor:Y.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Y.motionDurationMid} ${Y.motionEaseOutBack} ${Y.motionDurationFast}`}}},[`
|
|
|
${I}-checked:not(${I}-disabled),
|
|
|
${O}-checked:not(${O}-disabled)
|
|
|
`]:{[`&:hover ${O}-inner`]:{backgroundColor:Y.colorPrimaryHover,borderColor:"transparent"}}},{[O]:{"&-indeterminate":{[`${O}-inner`]:{backgroundColor:Y.colorBgContainer,borderColor:Y.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Y.fontSizeLG/2,height:Y.fontSizeLG/2,backgroundColor:Y.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${I}-disabled`]:{cursor:"not-allowed"},[`${O}-disabled`]:{[`&, ${O}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${O}-inner`]:{background:Y.colorBgContainerDisabled,borderColor:Y.colorBorder,"&:after":{borderColor:Y.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Y.colorTextDisabled},[`&${O}-indeterminate ${O}-inner::after`]:{background:Y.colorTextDisabled}}}]};function ie(Y,O){const I=(0,Fe.TS)(O,{checkboxCls:`.${Y}`,checkboxSize:O.controlInteractiveSize});return[Me(I)]}Wt.ZP=(0,se.Z)("Checkbox",(Y,O)=>{let{prefixCls:I}=O;return[ie(I,Y)]})},93891:function(yn,Wt,g){"use strict";var xe=g(59301),Fe=g(36355),se=g(64165);const Me=ie=>{const{componentName:Y}=ie,{getPrefixCls:O}=(0,xe.useContext)(Fe.E_),I=O("empty");switch(Y){case"Table":case"List":return xe.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return xe.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE,className:`${I}-small`});default:return xe.createElement(se.Z,null)}};Wt.Z=Me},28103:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return p}});var xe=g(92310),Fe=g.n(xe),se=g(59301),Me=g(36355),ie=g(17313),Y=g(83116),O=g(37613);const I=a=>{const{componentCls:d,sizePaddingEdgeHorizontal:m,colorSplit:S,lineWidth:$,textPaddingInline:F,orientationMargin:H,verticalMarginInline:V}=a;return{[d]:Object.assign(Object.assign({},(0,ie.Wf)(a)),{borderBlockStart:`${$}px solid ${S}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:V,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${$}px solid ${S}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${a.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${d}-with-text`]:{display:"flex",alignItems:"center",margin:`${a.dividerHorizontalWithTextGutterMargin}px 0`,color:a.colorTextHeading,fontWeight:500,fontSize:a.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${S}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${$}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${d}-with-text-left`]:{"&::before":{width:`${H*100}%`},"&::after":{width:`${100-H*100}%`}},[`&-horizontal${d}-with-text-right`]:{"&::before":{width:`${100-H*100}%`},"&::after":{width:`${H*100}%`}},[`${d}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:F},"&-dashed":{background:"none",borderColor:S,borderStyle:"dashed",borderWidth:`${$}px 0 0`},[`&-horizontal${d}-with-text${d}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${d}-dashed`]:{borderInlineStartWidth:$,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${d}-with-text`]:{color:a.colorText,fontWeight:"normal",fontSize:a.fontSize},[`&-horizontal${d}-with-text-left${d}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${d}-inner-text`]:{paddingInlineStart:m}},[`&-horizontal${d}-with-text-right${d}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${d}-inner-text`]:{paddingInlineEnd:m}}})}};var n=(0,Y.Z)("Divider",a=>{const d=(0,O.TS)(a,{dividerHorizontalWithTextGutterMargin:a.margin,dividerHorizontalGutterMargin:a.marginLG,sizePaddingEdgeHorizontal:0});return[I(d)]},a=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:a.marginXS})),o=function(a,d){var m={};for(var S in a)Object.prototype.hasOwnProperty.call(a,S)&&d.indexOf(S)<0&&(m[S]=a[S]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,S=Object.getOwnPropertySymbols(a);$<S.length;$++)d.indexOf(S[$])<0&&Object.prototype.propertyIsEnumerable.call(a,S[$])&&(m[S[$]]=a[S[$]]);return m},p=a=>{const{getPrefixCls:d,direction:m,divider:S}=se.useContext(Me.E_),{prefixCls:$,type:F="horizontal",orientation:H="center",orientationMargin:V,className:ee,rootClassName:B,children:G,dashed:le,plain:J,style:we}=a,Ce=o(a,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Le=d("divider",$),[ae,pe]=n(Le),T=H.length>0?`-${H}`:H,Ee=!!G,oe=H==="left"&&V!=null,fe=H==="right"&&V!=null,ye=Fe()(Le,S==null?void 0:S.className,pe,`${Le}-${F}`,{[`${Le}-with-text`]:Ee,[`${Le}-with-text${T}`]:Ee,[`${Le}-dashed`]:!!le,[`${Le}-plain`]:!!J,[`${Le}-rtl`]:m==="rtl",[`${Le}-no-default-orientation-margin-left`]:oe,[`${Le}-no-default-orientation-margin-right`]:fe},ee,B),_=se.useMemo(()=>typeof V=="number"?V:/^\d+$/.test(V)?Number(V):V,[V]),N=Object.assign(Object.assign({},oe&&{marginLeft:_}),fe&&{marginRight:_});return ae(se.createElement("div",Object.assign({className:ye,style:Object.assign(Object.assign({},S==null?void 0:S.style),we)},Ce,{role:"separator"}),G&&F!=="vertical"&&se.createElement("span",{className:`${Le}-inner-text`,style:N},G)))}},91857:function(yn,Wt,g){"use strict";var xe=g(59301),Fe=g(38819),se=g(92310),Me=g.n(se),ie=g(31561),Y=g(70425),O=g(18929),I=g(2738),n=g(79676),o=g(53487),L=g(92343),p=g(36355),a=g(20834),d=g(40875),m=g(88088),S=g(47211);const $=null,F=B=>{const{menu:G,arrow:le,prefixCls:J,children:we,trigger:Ce,disabled:Le,dropdownRender:ae,getPopupContainer:pe,overlayClassName:T,rootClassName:Ee,open:oe,onOpenChange:fe,visible:ye,onVisibleChange:_,mouseEnterDelay:N=.15,mouseLeaveDelay:X=.1,autoAdjustOverflow:he=!0,placement:qe="",overlay:st,transitionName:nt}=B,{getPopupContainer:Rt,getPrefixCls:sr,direction:Jt}=xe.useContext(p.E_),We=xe.useMemo(()=>{const Ie=sr();return nt!==void 0?nt:qe.includes("top")?`${Ie}-slide-down`:`${Ie}-slide-up`},[sr,qe,nt]),Er=xe.useMemo(()=>qe?qe.includes("Center")?qe.slice(0,qe.indexOf("Center")):qe:Jt==="rtl"?"bottomRight":"bottomLeft",[qe,Jt]),xr=sr("dropdown",J),[Wr,Cr]=(0,S.Z)(xr),[,_e]=(0,m.Z)(),kt=xe.Children.only(we),K=(0,L.Tm)(kt,{className:Me()(`${xr}-trigger`,{[`${xr}-rtl`]:Jt==="rtl"},kt.props.className),disabled:Le}),y=Le?[]:Ce;let h;y&&y.includes("contextMenu")&&(h=!0);const[D,Ae]=(0,O.Z)(!1,{value:oe!=null?oe:ye}),Z=(0,Y.useEvent)(Ie=>{fe==null||fe(Ie),_==null||_(Ie),Ae(Ie)}),k=Me()(T,Ee,Cr,{[`${xr}-rtl`]:Jt==="rtl"}),te=(0,n.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:he,offset:_e.marginXXS,arrowWidth:le?_e.sizePopupArrow:0,borderRadius:_e.borderRadius}),Se=xe.useCallback(()=>{Ae(!1)},[]),Be=()=>{let Ie;return G!=null&&G.items?Ie=xe.createElement(a.default,Object.assign({},G)):typeof st=="function"?Ie=st():Ie=st,ae&&(Ie=ae(Ie)),Ie=xe.Children.only(typeof Ie=="string"?xe.createElement("span",null,Ie):Ie),xe.createElement(d.J,{prefixCls:`${xr}-menu`,expandIcon:xe.createElement("span",{className:`${xr}-menu-submenu-arrow`},xe.createElement(Fe.Z,{className:`${xr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Se,validator:Ge=>{let{mode:mt}=Ge}},Ie)};return Wr(xe.createElement(ie.Z,Object.assign({alignPoint:h},(0,I.Z)(B,["rootClassName"]),{mouseEnterDelay:N,mouseLeaveDelay:X,visible:D,builtinPlacements:te,arrow:!!le,overlayClassName:k,prefixCls:xr,getPopupContainer:pe||Rt,transitionName:We,trigger:y,overlay:Be,placement:Er,onVisibleChange:Z}),K))};function H(B){return Object.assign(Object.assign({},B),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const V=(0,o.Z)(F,"dropdown",B=>B,H),ee=B=>xe.createElement(V,Object.assign({},B),xe.createElement("span",null));F._InternalPanelDoNotUseOrYouWillBeFired=ee,Wt.Z=F},38854:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return m}});var xe=g(91857),Fe=g(92310),se=g.n(Fe),Me=g(59301),ie=g(18785),Y=g(3113),O=g(36355),I=g(81327),n=g(33234),o=g(47211),L=function(S,$){var F={};for(var H in S)Object.prototype.hasOwnProperty.call(S,H)&&$.indexOf(H)<0&&(F[H]=S[H]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,H=Object.getOwnPropertySymbols(S);V<H.length;V++)$.indexOf(H[V])<0&&Object.prototype.propertyIsEnumerable.call(S,H[V])&&(F[H[V]]=S[H[V]]);return F};const p=S=>{const{getPopupContainer:$,getPrefixCls:F,direction:H}=Me.useContext(O.E_),{prefixCls:V,type:ee="default",danger:B,disabled:G,loading:le,onClick:J,htmlType:we,children:Ce,className:Le,menu:ae,arrow:pe,autoFocus:T,overlay:Ee,trigger:oe,align:fe,open:ye,onOpenChange:_,placement:N,getPopupContainer:X,href:he,icon:qe=Me.createElement(ie.Z,null),title:st,buttonsRender:nt=Be=>Be,mouseEnterDelay:Rt,mouseLeaveDelay:sr,overlayClassName:Jt,overlayStyle:We,destroyPopupOnHide:Er,dropdownRender:xr}=S,Wr=L(S,["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"]),Cr=F("dropdown",V),_e=`${Cr}-button`,[kt,K]=(0,o.Z)(Cr),y={menu:ae,arrow:pe,autoFocus:T,align:fe,disabled:G,trigger:G?[]:oe,onOpenChange:_,getPopupContainer:X||$,mouseEnterDelay:Rt,mouseLeaveDelay:sr,overlayClassName:Jt,overlayStyle:We,destroyPopupOnHide:Er,dropdownRender:xr},{compactSize:h,compactItemClassnames:D}=(0,n.ri)(Cr,H),Ae=se()(_e,D,Le,K);"overlay"in S&&(y.overlay=Ee),"open"in S&&(y.open=ye),"placement"in S?y.placement=N:y.placement=H==="rtl"?"bottomLeft":"bottomRight";const Z=Me.createElement(Y.ZP,{type:ee,danger:B,disabled:G,loading:le,onClick:J,htmlType:we,href:he,title:st},Ce),k=Me.createElement(Y.ZP,{type:ee,danger:B,icon:qe}),[te,Se]=nt([Z,k]);return kt(Me.createElement(I.Z.Compact,Object.assign({className:Ae,size:h,block:!0},Wr),te,Me.createElement(xe.Z,Object.assign({},y),Se)))};p.__ANT_BUTTON=!0;var a=p;const d=xe.Z;d.Button=a;var m=d},47211:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return L}});var xe=g(17313),Fe=g(13826),se=g(92899),Me=g(29878),ie=g(19447),Y=g(83116),O=g(37613),n=p=>{const{componentCls:a,menuCls:d,colorError:m,colorTextLightSolid:S}=p,$=`${d}-item`;return{[`${a}, ${a}-menu-submenu`]:{[`${d} ${$}`]:{[`&${$}-danger:not(${$}-disabled)`]:{color:m,"&:hover":{color:S,backgroundColor:m}}}}}};const o=p=>{const{componentCls:a,menuCls:d,zIndexPopup:m,dropdownArrowDistance:S,sizePopupArrow:$,antCls:F,iconCls:H,motionDurationMid:V,dropdownPaddingVertical:ee,fontSize:B,dropdownEdgeChildPadding:G,colorTextDisabled:le,fontSizeIcon:J,controlPaddingHorizontal:we,colorBgElevated:Ce}=p;return[{[a]:Object.assign(Object.assign({},(0,xe.Wf)(p)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:m,display:"block","&::before":{position:"absolute",insetBlock:-S+$/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${F}-btn`]:{[`& > ${H}-down, & > ${F}-btn-icon > ${H}-down`]:{fontSize:J}},[`${a}-wrap`]:{position:"relative",[`${F}-btn > ${H}-down`]:{fontSize:J},[`${H}-down::before`]:{transition:`transform ${V}`}},[`${a}-wrap-open`]:{[`${H}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottomRight,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottomRight`]:{animationName:Fe.fJ},[`&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-top,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-top,
|
|
|
&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-topRight,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-topRight`]:{animationName:Fe.Qt},[`&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottomRight`]:{animationName:Fe.Uw},[`&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-top,
|
|
|
&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-topRight`]:{animationName:Fe.ly}})},(0,ie.ZP)(p,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${a} ${d}`]:{position:"relative",margin:0},[`${d}-submenu-popup`]:{position:"absolute",zIndex:m,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${a}, ${a}-menu-submenu`]:{[d]:Object.assign(Object.assign({padding:G,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:p.borderRadiusLG,outline:"none",boxShadow:p.boxShadowSecondary},(0,xe.Qy)(p)),{[`${d}-item-group-title`]:{padding:`${ee}px ${we}px`,color:p.colorTextDescription,transition:`all ${V}`},[`${d}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${d}-item-icon`]:{minWidth:B,marginInlineEnd:p.marginXS,fontSize:p.fontSizeSM},[`${d}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${V}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${d}-item, ${d}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${we}px`,color:p.colorText,fontWeight:"normal",fontSize:B,lineHeight:p.lineHeight,cursor:"pointer",transition:`all ${V}`,borderRadius:p.borderRadiusSM,"&:hover, &-active":{backgroundColor:p.controlItemBgHover}},(0,xe.Qy)(p)),{"&-selected":{color:p.colorPrimary,backgroundColor:p.controlItemBgActive,"&:hover, &-active":{backgroundColor:p.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${p.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:p.colorSplit},[`${a}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:p.paddingXS,[`${a}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:p.colorTextDescription,fontSize:J,fontStyle:"normal"}}}),[`${d}-item-group-list`]:{margin:`0 ${p.marginXS}px`,padding:0,listStyle:"none"},[`${d}-submenu-title`]:{paddingInlineEnd:we+p.fontSizeSM},[`${d}-submenu-vertical`]:{position:"relative"},[`${d}-submenu${d}-submenu-disabled ${a}-menu-submenu-title`]:{[`&, ${a}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Ce,cursor:"not-allowed"}},[`${d}-submenu-selected ${a}-menu-submenu-title`]:{color:p.colorPrimary}})}},[(0,Fe.oN)(p,"slide-up"),(0,Fe.oN)(p,"slide-down"),(0,se.Fm)(p,"move-up"),(0,se.Fm)(p,"move-down"),(0,Me._y)(p,"zoom-big")]]};var L=(0,Y.Z)("Dropdown",(p,a)=>{let{rootPrefixCls:d}=a;const{marginXXS:m,sizePopupArrow:S,controlHeight:$,fontSize:F,lineHeight:H,paddingXXS:V,componentCls:ee,borderRadiusLG:B}=p,G=($-F*H)/2,{dropdownArrowOffset:le}=(0,ie.fS)({contentRadius:B}),J=(0,O.TS)(p,{menuCls:`${ee}-menu`,rootPrefixCls:d,dropdownArrowDistance:S/2+m,dropdownArrowOffset:le,dropdownPaddingVertical:G,dropdownEdgeChildPadding:V});return[o(J),n(J)]},p=>({zIndexPopup:p.zIndexPopupBase+50}))},64165:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return V}});var xe=g(92310),Fe=g.n(xe),se=g(59301),Me=g(36355),ie=g(9763),Y=g(64993),O=g(88088),n=()=>{const[,ee]=(0,O.Z)(),G=new Y.C(ee.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return se.createElement("svg",{style:G,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("g",{transform:"translate(24 31.67)"},se.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),se.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"}),se.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)"}),se.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"}),se.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"})),se.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"}),se.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},se.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),se.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},L=()=>{const[,ee]=(0,O.Z)(),{colorFill:B,colorFillTertiary:G,colorFillQuaternary:le,colorBgContainer:J}=ee,{borderColor:we,shadowColor:Ce,contentColor:Le}=(0,se.useMemo)(()=>({borderColor:new Y.C(B).onBackground(J).toHexShortString(),shadowColor:new Y.C(G).onBackground(J).toHexShortString(),contentColor:new Y.C(le).onBackground(J).toHexShortString()}),[B,G,le,J]);return se.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},se.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},se.createElement("ellipse",{fill:Ce,cx:"32",cy:"33",rx:"32",ry:"7"}),se.createElement("g",{fillRule:"nonzero",stroke:we},se.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"}),se.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:Le}))))},p=g(83116),a=g(37613);const d=ee=>{const{componentCls:B,margin:G,marginXS:le,marginXL:J,fontSize:we,lineHeight:Ce}=ee;return{[B]:{marginInline:le,fontSize:we,lineHeight:Ce,textAlign:"center",[`${B}-image`]:{height:ee.emptyImgHeight,marginBottom:le,opacity:ee.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${B}-description`]:{color:ee.colorText},[`${B}-footer`]:{marginTop:G},"&-normal":{marginBlock:J,color:ee.colorTextDisabled,[`${B}-description`]:{color:ee.colorTextDisabled},[`${B}-image`]:{height:ee.emptyImgHeightMD}},"&-small":{marginBlock:le,color:ee.colorTextDisabled,[`${B}-image`]:{height:ee.emptyImgHeightSM}}}}};var m=(0,p.Z)("Empty",ee=>{const{componentCls:B,controlHeightLG:G}=ee,le=(0,a.TS)(ee,{emptyImgCls:`${B}-img`,emptyImgHeight:G*2.5,emptyImgHeightMD:G,emptyImgHeightSM:G*.875});return[d(le)]}),S=function(ee,B){var G={};for(var le in ee)Object.prototype.hasOwnProperty.call(ee,le)&&B.indexOf(le)<0&&(G[le]=ee[le]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,le=Object.getOwnPropertySymbols(ee);J<le.length;J++)B.indexOf(le[J])<0&&Object.prototype.propertyIsEnumerable.call(ee,le[J])&&(G[le[J]]=ee[le[J]]);return G};const $=se.createElement(n,null),F=se.createElement(L,null),H=ee=>{var{className:B,rootClassName:G,prefixCls:le,image:J=$,description:we,children:Ce,imageStyle:Le,style:ae}=ee,pe=S(ee,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:T,direction:Ee,empty:oe}=se.useContext(Me.E_),fe=T("empty",le),[ye,_]=m(fe),[N]=(0,ie.Z)("Empty"),X=typeof we!="undefined"?we:N==null?void 0:N.description,he=typeof X=="string"?X:"empty";let qe=null;return typeof J=="string"?qe=se.createElement("img",{alt:he,src:J}):qe=J,ye(se.createElement("div",Object.assign({className:Fe()(_,fe,oe==null?void 0:oe.className,{[`${fe}-normal`]:J===F,[`${fe}-rtl`]:Ee==="rtl"},B,G),style:Object.assign(Object.assign({},oe==null?void 0:oe.style),ae)},pe),se.createElement("div",{className:`${fe}-image`,style:Le},qe),X&&se.createElement("div",{className:`${fe}-description`},X),Ce&&se.createElement("div",{className:`${fe}-footer`},Ce)))};H.PRESENTED_IMAGE_DEFAULT=$,H.PRESENTED_IMAGE_SIMPLE=F;var V=H},78241:function(yn,Wt,g){"use strict";g.d(Wt,{default:function(){return zn}});var xe=g(19127),Fe=g(92310),se=g.n(Fe),Me=g(77900),ie=g(59301),Y=g(62892),O=g(32441);function I(Xt){const[$r,en]=ie.useState(Xt);return ie.useEffect(()=>{const Pt=setTimeout(()=>{en(Xt)},Xt.length?0:10);return()=>{clearTimeout(Pt)}},[Xt]),$r}var n=g(17313),o=g(29878),L=g(8378),p=g(37613),a=g(83116),m=Xt=>{const{componentCls:$r}=Xt,en=`${$r}-show-help`,Pt=`${$r}-show-help-item`;return{[en]:{transition:`opacity ${Xt.motionDurationSlow} ${Xt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Pt]:{overflow:"hidden",transition:`height ${Xt.motionDurationSlow} ${Xt.motionEaseInOut},
|
|
|
opacity ${Xt.motionDurationSlow} ${Xt.motionEaseInOut},
|
|
|
transform ${Xt.motionDurationSlow} ${Xt.motionEaseInOut} !important`,[`&${Pt}-appear, &${Pt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Pt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const S=Xt=>({legend:{display:"block",width:"100%",marginBottom:Xt.marginLG,padding:0,color:Xt.colorTextDescription,fontSize:Xt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Xt.lineWidth}px ${Xt.lineType} ${Xt.colorBorder}`},label:{fontSize:Xt.fontSize},'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 ${Xt.controlOutlineWidth}px ${Xt.controlOutline}`},output:{display:"block",paddingTop:15,color:Xt.colorText,fontSize:Xt.fontSize,lineHeight:Xt.lineHeight}}),$=(Xt,$r)=>{const{formItemCls:en}=Xt;return{[en]:{[`${en}-label > label`]:{height:$r},[`${en}-control-input`]:{minHeight:$r}}}},F=Xt=>{const{componentCls:$r}=Xt;return{[Xt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,n.Wf)(Xt)),S(Xt)),{[`${$r}-text`]:{display:"inline-block",paddingInlineEnd:Xt.paddingSM},"&-small":Object.assign({},$(Xt,Xt.controlHeightSM)),"&-large":Object.assign({},$(Xt,Xt.controlHeightLG))})}},H=Xt=>{const{formItemCls:$r,iconCls:en,componentCls:Pt,rootPrefixCls:Et,labelRequiredMarkColor:_r,labelColor:Fr,labelFontSize:In,labelHeight:an,labelColonMarginInlineStart:_n,labelColonMarginInlineEnd:mn,itemMarginBottom:Mn}=Xt;return{[$r]:Object.assign(Object.assign({},(0,n.Wf)(Xt)),{marginBottom:Mn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Et}-row`]:{display:"none"},"&-has-warning":{[`${$r}-split`]:{color:Xt.colorError}},"&-has-error":{[`${$r}-split`]:{color:Xt.colorWarning}},[`${$r}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Xt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:an,color:Fr,fontSize:In,[`> ${en}`]:{fontSize:Xt.fontSize,verticalAlign:"top"},[`&${$r}-required:not(${$r}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Xt.marginXXS,color:_r,fontSize:Xt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Pt}-hide-required-mark &`]:{display:"none"}},[`${$r}-optional`]:{display:"inline-block",marginInlineStart:Xt.marginXXS,color:Xt.colorTextDescription,[`${Pt}-hide-required-mark &`]:{display:"none"}},[`${$r}-tooltip`]:{color:Xt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Xt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:_n,marginInlineEnd:mn},[`&${$r}-no-colon::after`]:{content:'"\\a0"'}}},[`${$r}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Et}-col-'"]):not([class*="' ${Et}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Xt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[$r]:{"&-explain, &-extra":{clear:"both",color:Xt.colorTextDescription,fontSize:Xt.fontSize,lineHeight:Xt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Xt.controlHeightSM,transition:`color ${Xt.motionDurationMid} ${Xt.motionEaseOut}`},"&-explain":{"&-error":{color:Xt.colorError},"&-warning":{color:Xt.colorWarning}}},[`&-with-help ${$r}-explain`]:{height:"auto",opacity:1},[`${$r}-feedback-icon`]:{fontSize:Xt.fontSize,textAlign:"center",visibility:"visible",animationName:o.kr,animationDuration:Xt.motionDurationMid,animationTimingFunction:Xt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Xt.colorSuccess},"&-error":{color:Xt.colorError},"&-warning":{color:Xt.colorWarning},"&-validating":{color:Xt.colorPrimary}}})}},V=Xt=>{const{componentCls:$r,formItemCls:en}=Xt;return{[`${$r}-horizontal`]:{[`${en}-label`]:{flexGrow:0},[`${en}-control`]:{flex:"1 1 0",minWidth:0},[`${en}-label[class$='-24'], ${en}-label[class*='-24 ']`]:{[`& + ${en}-control`]:{minWidth:"unset"}}}}},ee=Xt=>{const{componentCls:$r,formItemCls:en}=Xt;return{[`${$r}-inline`]:{display:"flex",flexWrap:"wrap",[en]:{flex:"none",marginInlineEnd:Xt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${en}-label,
|
|
|
> ${en}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${en}-label`]:{flex:"none"},[`${$r}-text`]:{display:"inline-block"},[`${en}-has-feedback`]:{display:"inline-block"}}}}},B=Xt=>({padding:Xt.verticalLabelPadding,margin:Xt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),G=Xt=>{const{componentCls:$r,formItemCls:en,rootPrefixCls:Pt}=Xt;return{[`${en} ${en}-label`]:B(Xt),[$r]:{[en]:{flexWrap:"wrap",[`${en}-label, ${en}-control`]:{[`&:not([class*=" ${Pt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},le=Xt=>{const{componentCls:$r,formItemCls:en,rootPrefixCls:Pt}=Xt;return{[`${$r}-vertical`]:{[en]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${$r}-item-control`]:{width:"100%"}}},[`${$r}-vertical ${en}-label,
|
|
|
.${Pt}-col-24${en}-label,
|
|
|
.${Pt}-col-xl-24${en}-label`]:B(Xt),[`@media (max-width: ${Xt.screenXSMax}px)`]:[G(Xt),{[$r]:{[`.${Pt}-col-xs-24${en}-label`]:B(Xt)}}],[`@media (max-width: ${Xt.screenSMMax}px)`]:{[$r]:{[`.${Pt}-col-sm-24${en}-label`]:B(Xt)}},[`@media (max-width: ${Xt.screenMDMax}px)`]:{[$r]:{[`.${Pt}-col-md-24${en}-label`]:B(Xt)}},[`@media (max-width: ${Xt.screenLGMax}px)`]:{[$r]:{[`.${Pt}-col-lg-24${en}-label`]:B(Xt)}}}},J=(Xt,$r)=>(0,p.TS)(Xt,{formItemCls:`${Xt.componentCls}-item`,rootPrefixCls:$r});var we=(0,a.Z)("Form",(Xt,$r)=>{let{rootPrefixCls:en}=$r;const Pt=J(Xt,en);return[F(Pt),H(Pt),m(Pt),V(Pt),ee(Pt),le(Pt),(0,L.Z)(Pt),o.kr]},Xt=>({labelRequiredMarkColor:Xt.colorError,labelColor:Xt.colorTextHeading,labelFontSize:Xt.fontSize,labelHeight:Xt.controlHeight,labelColonMarginInlineStart:Xt.marginXXS/2,labelColonMarginInlineEnd:Xt.marginXS,itemMarginBottom:Xt.marginLG,verticalLabelPadding:`0 0 ${Xt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ce=[];function Le(Xt,$r,en){let Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Xt=="string"?Xt:`${$r}-${Pt}`,error:Xt,errorStatus:en}}var pe=Xt=>{let{help:$r,helpStatus:en,errors:Pt=Ce,warnings:Et=Ce,className:_r,fieldId:Fr,onVisibleChanged:In}=Xt;const{prefixCls:an}=ie.useContext(O.Rk),_n=`${an}-item-explain`,[,mn]=we(an),Mn=(0,ie.useMemo)(()=>(0,Y.Z)(an),[an]),ei=I(Pt),Kr=I(Et),Vr=ie.useMemo(()=>$r!=null?[Le($r,"help",en)]:[].concat((0,xe.Z)(ei.map((Sn,Un)=>Le(Sn,"error","error",Un))),(0,xe.Z)(Kr.map((Sn,Un)=>Le(Sn,"warning","warning",Un)))),[$r,en,ei,Kr]),Tn={};return Fr&&(Tn.id=`${Fr}_help`),ie.createElement(Me.default,{motionDeadline:Mn.motionDeadline,motionName:`${an}-show-help`,visible:!!Vr.length,onVisibleChanged:In},Sn=>{const{className:Un,style:Vn}=Sn;return ie.createElement("div",Object.assign({},Tn,{className:se()(_n,Un,_r,mn),style:Vn,role:"alert"}),ie.createElement(Me.CSSMotionList,Object.assign({keys:Vr},(0,Y.Z)(an),{motionName:`${an}-show-help-item`,component:!1}),Ui=>{const{key:di,error:bn,errorStatus:dr,className:vr,style:Ir}=Ui;return ie.createElement("div",{key:di,className:se()(vr,{[`${_n}-${dr}`]:dr}),style:Ir},bn)}))})},T=g(95013),Ee=g(36355),oe=g(1684),fe=g(52946),ye=g(19716),_=g(16722);const N=["parentNode"],X="form_item";function he(Xt){return Xt===void 0||Xt===!1?[]:Array.isArray(Xt)?Xt:[Xt]}function qe(Xt,$r){if(!Xt.length)return;const en=Xt.join("_");return $r?`${$r}_${en}`:N.includes(en)?`${X}_${en}`:en}function st(Xt,$r,en,Pt,Et,_r){let Fr=Pt;return _r!==void 0?Fr=_r:en.validating?Fr="validating":Xt.length?Fr="error":$r.length?Fr="warning":(en.touched||Et&&en.validated)&&(Fr="success"),Fr}function nt(Xt){return he(Xt).join("_")}function Rt(Xt){const[$r]=(0,T.useForm)(),en=ie.useRef({}),Pt=ie.useMemo(()=>Xt!=null?Xt:Object.assign(Object.assign({},$r),{__INTERNAL__:{itemRef:Et=>_r=>{const Fr=nt(Et);_r?en.current[Fr]=_r:delete en.current[Fr]}},scrollToField:function(Et){let _r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Fr=he(Et),In=qe(Fr,Pt.__INTERNAL__.name),an=In?document.getElementById(In):null;an&&(0,_.Z)(an,Object.assign({scrollMode:"if-needed",block:"nearest"},_r))},getFieldInstance:Et=>{const _r=nt(Et);return en.current[_r]}}),[Xt,$r]);return[Pt]}var sr=g(28726),Jt=function(Xt,$r){var en={};for(var Pt in Xt)Object.prototype.hasOwnProperty.call(Xt,Pt)&&$r.indexOf(Pt)<0&&(en[Pt]=Xt[Pt]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Pt=Object.getOwnPropertySymbols(Xt);Et<Pt.length;Et++)$r.indexOf(Pt[Et])<0&&Object.prototype.propertyIsEnumerable.call(Xt,Pt[Et])&&(en[Pt[Et]]=Xt[Pt[Et]]);return en};const We=(Xt,$r)=>{const en=ie.useContext(oe.Z),{getPrefixCls:Pt,direction:Et,form:_r}=ie.useContext(Ee.E_),{prefixCls:Fr,className:In,rootClassName:an,size:_n,disabled:mn=en,form:Mn,colon:ei,labelAlign:Kr,labelWrap:Vr,labelCol:Tn,wrapperCol:Sn,hideRequiredMark:Un,layout:Vn="horizontal",scrollToFirstError:Ui,requiredMark:di,onFinishFailed:bn,name:dr,style:vr,feedbackIcons:Ir}=Xt,Yr=Jt(Xt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Mr=(0,ye.Z)(_n),cn=ie.useContext(sr.Z),nn=(0,ie.useMemo)(()=>di!==void 0?di:_r&&_r.requiredMark!==void 0?_r.requiredMark:!Un,[Un,di,_r]),jn=ei!=null?ei:_r==null?void 0:_r.colon,ti=Pt("form",Fr),[ui,Ri]=we(ti),Qi=se()(ti,`${ti}-${Vn}`,{[`${ti}-hide-required-mark`]:nn===!1,[`${ti}-rtl`]:Et==="rtl",[`${ti}-${Mr}`]:Mr},Ri,_r==null?void 0:_r.className,In,an),[Pi]=Rt(Mn),{__INTERNAL__:Sr}=Pi;Sr.name=dr;const Cn=(0,ie.useMemo)(()=>({name:dr,labelAlign:Kr,labelCol:Tn,labelWrap:Vr,wrapperCol:Sn,vertical:Vn==="vertical",colon:jn,requiredMark:nn,itemRef:Sr.itemRef,form:Pi,feedbackIcons:Ir}),[dr,Kr,Tn,Sn,Vn,jn,nn,Pi,Ir]);ie.useImperativeHandle($r,()=>Pi);const fn=(ii,ri)=>{if(ii){let bi={block:"nearest"};typeof ii=="object"&&(bi=ii),Pi.scrollToField(ri,bi)}},hi=ii=>{if(bn==null||bn(ii),ii.errorFields.length){const ri=ii.errorFields[0].name;if(Ui!==void 0){fn(Ui,ri);return}_r&&_r.scrollToFirstError!==void 0&&fn(_r.scrollToFirstError,ri)}};return ui(ie.createElement(oe.n,{disabled:mn},ie.createElement(fe.q,{size:Mr},ie.createElement(O.RV,Object.assign({},{validateMessages:cn}),ie.createElement(O.q3.Provider,{value:Cn},ie.createElement(T.default,Object.assign({id:dr},Yr,{name:dr,onFinishFailed:hi,form:Pi,style:Object.assign(Object.assign({},_r==null?void 0:_r.style),vr),className:Qi})))))))};var xr=ie.forwardRef(We),Wr=g(41799),Cr=g(8654),_e=g(92343),kt=g(11592);function K(Xt){if(typeof Xt=="function")return Xt;const $r=(0,kt.Z)(Xt);return $r.length<=1?$r[0]:$r}const y=()=>{const{status:Xt,errors:$r=[],warnings:en=[]}=(0,ie.useContext)(O.aM);return{status:Xt,errors:$r,warnings:en}};y.Context=O.aM;var h=y,D=g(16089);function Ae(Xt){const[$r,en]=ie.useState(Xt),Pt=(0,ie.useRef)(null),Et=(0,ie.useRef)([]),_r=(0,ie.useRef)(!1);ie.useEffect(()=>(_r.current=!1,()=>{_r.current=!0,D.Z.cancel(Pt.current),Pt.current=null}),[]);function Fr(In){_r.current||(Pt.current===null&&(Et.current=[],Pt.current=(0,D.Z)(()=>{Pt.current=null,en(an=>{let _n=an;return Et.current.forEach(mn=>{_n=mn(_n)}),_n})})),Et.current.push(In))}return[$r,Fr]}function Z(){const{itemRef:Xt}=ie.useContext(O.q3),$r=ie.useRef({});function en(Pt,Et){const _r=Et&&typeof Et=="object"&&Et.ref,Fr=Pt.join("_");return($r.current.name!==Fr||$r.current.originRef!==_r)&&($r.current.name=Fr,$r.current.originRef=_r,$r.current.ref=(0,Cr.sQ)(Xt(Pt),_r)),$r.current.ref}return en}var k=g(29194),te=g(34280),Se=g(2738),Be=g(27382),Ie=g(37028);const Ge=Xt=>{const{formItemCls:$r}=Xt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${$r}-control`]:{display:"flex"}}}};var mt=(0,a.b)(["Form","item-item"],(Xt,$r)=>{let{rootPrefixCls:en}=$r;const Pt=J(Xt,en);return[Ge(Pt)]}),tt=Xt=>{const{prefixCls:$r,status:en,wrapperCol:Pt,children:Et,errors:_r,warnings:Fr,_internalItemRender:In,extra:an,help:_n,fieldId:mn,marginBottom:Mn,onErrorVisibleChanged:ei}=Xt,Kr=`${$r}-item`,Vr=ie.useContext(O.q3),Tn=Pt||Vr.wrapperCol||{},Sn=se()(`${Kr}-control`,Tn.className),Un=ie.useMemo(()=>Object.assign({},Vr),[Vr]);delete Un.labelCol,delete Un.wrapperCol;const Vn=ie.createElement("div",{className:`${Kr}-control-input`},ie.createElement("div",{className:`${Kr}-control-input-content`},Et)),Ui=ie.useMemo(()=>({prefixCls:$r,status:en}),[$r,en]),di=Mn!==null||_r.length||Fr.length?ie.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ie.createElement(O.Rk.Provider,{value:Ui},ie.createElement(pe,{fieldId:mn,errors:_r,warnings:Fr,help:_n,helpStatus:en,className:`${Kr}-explain-connected`,onVisibleChanged:ei})),!!Mn&&ie.createElement("div",{style:{width:0,height:Mn}})):null,bn={};mn&&(bn.id=`${mn}_extra`);const dr=an?ie.createElement("div",Object.assign({},bn,{className:`${Kr}-extra`}),an):null,vr=In&&In.mark==="pro_table_render"&&In.render?In.render(Xt,{input:Vn,errorList:di,extra:dr}):ie.createElement(ie.Fragment,null,Vn,di,dr);return ie.createElement(O.q3.Provider,{value:Un},ie.createElement(Ie.Z,Object.assign({},Tn,{className:Sn}),vr),ie.createElement(mt,{prefixCls:$r}))},dt=g(61485),Ze=g(31724),Ke=g(9763),Bt=g(6848),Vt=function(Xt,$r){var en={};for(var Pt in Xt)Object.prototype.hasOwnProperty.call(Xt,Pt)&&$r.indexOf(Pt)<0&&(en[Pt]=Xt[Pt]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Pt=Object.getOwnPropertySymbols(Xt);Et<Pt.length;Et++)$r.indexOf(Pt[Et])<0&&Object.prototype.propertyIsEnumerable.call(Xt,Pt[Et])&&(en[Pt[Et]]=Xt[Pt[Et]]);return en};function Ut(Xt){return Xt?typeof Xt=="object"&&!ie.isValidElement(Xt)?Xt:{title:Xt}:null}var br=Xt=>{let{prefixCls:$r,label:en,htmlFor:Pt,labelCol:Et,labelAlign:_r,colon:Fr,required:In,requiredMark:an,tooltip:_n}=Xt;var mn;const[Mn]=(0,Ke.Z)("Form"),{vertical:ei,labelAlign:Kr,labelCol:Vr,labelWrap:Tn,colon:Sn}=ie.useContext(O.q3);if(!en)return null;const Un=Et||Vr||{},Vn=_r||Kr,Ui=`${$r}-item-label`,di=se()(Ui,Vn==="left"&&`${Ui}-left`,Un.className,{[`${Ui}-wrap`]:!!Tn});let bn=en;const dr=Fr===!0||Sn!==!1&&Fr!==!1;dr&&!ei&&typeof en=="string"&&en.trim()!==""&&(bn=en.replace(/[:|:]\s*$/,""));const Ir=Ut(_n);if(Ir){const{icon:nn=ie.createElement(dt.Z,null)}=Ir,jn=Vt(Ir,["icon"]),ti=ie.createElement(Bt.Z,Object.assign({},jn),ie.cloneElement(nn,{className:`${$r}-item-tooltip`,title:""}));bn=ie.createElement(ie.Fragment,null,bn,ti)}const Yr=an==="optional",Mr=typeof an=="function";Mr?bn=an(bn,{required:!!In}):Yr&&!In&&(bn=ie.createElement(ie.Fragment,null,bn,ie.createElement("span",{className:`${$r}-item-optional`,title:""},(Mn==null?void 0:Mn.optional)||((mn=Ze.Z.Form)===null||mn===void 0?void 0:mn.optional))));const cn=se()({[`${$r}-item-required`]:In,[`${$r}-item-required-mark-optional`]:Yr||Mr,[`${$r}-item-no-colon`]:!dr});return ie.createElement(Ie.Z,Object.assign({},Un,{className:di}),ie.createElement("label",{htmlFor:Pt,className:cn,title:typeof en=="string"?en:""},bn))},re=g(29679),ue=g(19248),rr=g(96512),Qe=g(58617);const ot={success:re.Z,warning:rr.Z,error:ue.Z,validating:Qe.Z};function Jr(Xt){let{children:$r,errors:en,warnings:Pt,hasFeedback:Et,validateStatus:_r,prefixCls:Fr,meta:In,noStyle:an}=Xt;const _n=`${Fr}-item`,{feedbackIcons:mn}=ie.useContext(O.q3),Mn=st(en,Pt,In,null,!!Et,_r),{isFormItemInput:ei,status:Kr}=ie.useContext(O.aM),Vr=ie.useMemo(()=>{var Tn;let Sn;if(Et){const Ui=Et!==!0&&Et.icons||mn,di=Mn&&((Tn=Ui==null?void 0:Ui({status:Mn,errors:en,warnings:Pt}))===null||Tn===void 0?void 0:Tn[Mn]),bn=Mn&&ot[Mn];Sn=di!==!1&&bn?ie.createElement("span",{className:se()(`${_n}-feedback-icon`,`${_n}-feedback-icon-${Mn}`)},di||ie.createElement(bn,null)):null}let Un=!0,Vn=Mn||"";return an&&(Un=ei,Vn=(Mn!=null?Mn:Kr)||""),{status:Vn,errors:en,warnings:Pt,hasFeedback:!!Et,feedbackIcon:Sn,isFormItemInput:Un}},[Mn,Et,an,ei,Kr]);return ie.createElement(O.aM.Provider,{value:Vr},$r)}var Tt=function(Xt,$r){var en={};for(var Pt in Xt)Object.prototype.hasOwnProperty.call(Xt,Pt)&&$r.indexOf(Pt)<0&&(en[Pt]=Xt[Pt]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Pt=Object.getOwnPropertySymbols(Xt);Et<Pt.length;Et++)$r.indexOf(Pt[Et])<0&&Object.prototype.propertyIsEnumerable.call(Xt,Pt[Et])&&(en[Pt[Et]]=Xt[Pt[Et]]);return en};function Kt(Xt){const{prefixCls:$r,className:en,rootClassName:Pt,style:Et,help:_r,errors:Fr,warnings:In,validateStatus:an,meta:_n,hasFeedback:mn,hidden:Mn,children:ei,fieldId:Kr,required:Vr,isRequired:Tn,onSubItemMetaChange:Sn}=Xt,Un=Tt(Xt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Vn=`${$r}-item`,{requiredMark:Ui}=ie.useContext(O.q3),di=ie.useRef(null),bn=I(Fr),dr=I(In),vr=_r!=null,Ir=!!(vr||Fr.length||In.length),Yr=!!di.current&&(0,k.Z)(di.current),[Mr,cn]=ie.useState(null);(0,te.Z)(()=>{if(Ir&&di.current){const Ri=getComputedStyle(di.current);cn(parseInt(Ri.marginBottom,10))}},[Ir,Yr]);const nn=Ri=>{Ri||cn(null)},ti=function(){let Ri=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Qi=Ri?bn:_n.errors,Pi=Ri?dr:_n.warnings;return st(Qi,Pi,_n,"",!!mn,an)}(),ui=se()(Vn,en,Pt,{[`${Vn}-with-help`]:vr||bn.length||dr.length,[`${Vn}-has-feedback`]:ti&&mn,[`${Vn}-has-success`]:ti==="success",[`${Vn}-has-warning`]:ti==="warning",[`${Vn}-has-error`]:ti==="error",[`${Vn}-is-validating`]:ti==="validating",[`${Vn}-hidden`]:Mn});return ie.createElement("div",{className:ui,style:Et,ref:di},ie.createElement(Be.Z,Object.assign({className:`${Vn}-row`},(0,Se.Z)(Un,["_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(br,Object.assign({htmlFor:Kr},Xt,{requiredMark:Ui,required:Vr!=null?Vr:Tn,prefixCls:$r})),ie.createElement(tt,Object.assign({},Xt,_n,{errors:bn,warnings:dr,prefixCls:$r,status:ti,help:_r,marginBottom:Mr,onErrorVisibleChanged:nn}),ie.createElement(O.qI.Provider,{value:Sn},ie.createElement(Jr,{prefixCls:$r,meta:_n,errors:_n.errors,warnings:_n.warnings,hasFeedback:mn,validateStatus:ti},ei)))),!!Mr&&ie.createElement("div",{className:`${Vn}-margin-offset`,style:{marginBottom:-Mr}}))}const qt="__SPLIT__",et=null,ft=ie.memo(Xt=>{let{children:$r}=Xt;return $r},(Xt,$r)=>Xt.value===$r.value&&Xt.update===$r.update&&Xt.childProps.length===$r.childProps.length&&Xt.childProps.every((en,Pt)=>en===$r.childProps[Pt]));function ht(Xt){return Xt!=null}function Gt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Oe(Xt){const{name:$r,noStyle:en,className:Pt,dependencies:Et,prefixCls:_r,shouldUpdate:Fr,rules:In,children:an,required:_n,label:mn,messageVariables:Mn,trigger:ei="onChange",validateTrigger:Kr,hidden:Vr,help:Tn}=Xt,{getPrefixCls:Sn}=ie.useContext(Ee.E_),{name:Un}=ie.useContext(O.q3),Vn=K(an),Ui=typeof Vn=="function",di=ie.useContext(O.qI),{validateTrigger:bn}=ie.useContext(T.FieldContext),dr=Kr!==void 0?Kr:bn,vr=ht($r),Ir=Sn("form",_r),[Yr,Mr]=we(Ir),cn=ie.useContext(T.ListContext),nn=ie.useRef(),[jn,ti]=Ae({}),[ui,Ri]=(0,Wr.Z)(()=>Gt()),Qi=ri=>{const bi=cn==null?void 0:cn.getKey(ri.name);if(Ri(ri.destroy?Gt():ri,!0),en&&Tn!==!1&&di){let Ti=ri.name;if(ri.destroy)Ti=nn.current||Ti;else if(bi!==void 0){const[Bi,Zi]=bi;Ti=[Bi].concat((0,xe.Z)(Zi)),nn.current=Ti}di(ri,Ti)}},Pi=(ri,bi)=>{ti(Ti=>{const Bi=Object.assign({},Ti),ua=[].concat((0,xe.Z)(ri.name.slice(0,-1)),(0,xe.Z)(bi)).join(qt);return ri.destroy?delete Bi[ua]:Bi[ua]=ri,Bi})},[Sr,Cn]=ie.useMemo(()=>{const ri=(0,xe.Z)(ui.errors),bi=(0,xe.Z)(ui.warnings);return Object.values(jn).forEach(Ti=>{ri.push.apply(ri,(0,xe.Z)(Ti.errors||[])),bi.push.apply(bi,(0,xe.Z)(Ti.warnings||[]))}),[ri,bi]},[jn,ui.errors,ui.warnings]),fn=Z();function hi(ri,bi,Ti){return en&&!Vr?ie.createElement(Jr,{prefixCls:Ir,hasFeedback:Xt.hasFeedback,validateStatus:Xt.validateStatus,meta:ui,errors:Sr,warnings:Cn,noStyle:!0},ri):ie.createElement(Kt,Object.assign({key:"row"},Xt,{className:se()(Pt,Mr),prefixCls:Ir,fieldId:bi,isRequired:Ti,errors:Sr,warnings:Cn,meta:ui,onSubItemMetaChange:Pi}),ri)}if(!vr&&!Ui&&!Et)return Yr(hi(Vn));let ii={};return typeof mn=="string"?ii.label=mn:$r&&(ii.label=String($r)),Mn&&(ii=Object.assign(Object.assign({},ii),Mn)),Yr(ie.createElement(T.Field,Object.assign({},Xt,{messageVariables:ii,trigger:ei,validateTrigger:dr,onMetaChange:Qi}),(ri,bi,Ti)=>{const Bi=he($r).length&&bi?bi.name:[],Zi=qe(Bi,Un),ua=_n!==void 0?_n:!!(In&&In.some(Ht=>{if(Ht&&typeof Ht=="object"&&Ht.required&&!Ht.warningOnly)return!0;if(typeof Ht=="function"){const Fn=Ht(Ti);return Fn&&Fn.required&&!Fn.warningOnly}return!1})),xi=Object.assign({},ri);let gn=null;if(Array.isArray(Vn)&&vr)gn=Vn;else if(!(Ui&&(!(Fr||Et)||vr))){if(!(Et&&!Ui&&!vr))if((0,_e.l$)(Vn)){const Ht=Object.assign(Object.assign({},Vn.props),xi);if(Ht.id||(Ht.id=Zi),Tn||Sr.length>0||Cn.length>0||Xt.extra){const Ei=[];(Tn||Sr.length>0)&&Ei.push(`${Zi}_help`),Xt.extra&&Ei.push(`${Zi}_extra`),Ht["aria-describedby"]=Ei.join(" ")}Sr.length>0&&(Ht["aria-invalid"]="true"),ua&&(Ht["aria-required"]="true"),(0,Cr.Yr)(Vn)&&(Ht.ref=fn(Bi,Vn)),new Set([].concat((0,xe.Z)(he(ei)),(0,xe.Z)(he(dr)))).forEach(Ei=>{Ht[Ei]=function(){for(var ji,da,Ea,qi,Sa,_i=arguments.length,ai=new Array(_i),zi=0;zi<_i;zi++)ai[zi]=arguments[zi];(Ea=xi[Ei])===null||Ea===void 0||(ji=Ea).call.apply(ji,[xi].concat(ai)),(Sa=(qi=Vn.props)[Ei])===null||Sa===void 0||(da=Sa).call.apply(da,[qi].concat(ai))}});const Zn=[Ht["aria-required"],Ht["aria-invalid"],Ht["aria-describedby"]];gn=ie.createElement(ft,{value:xi[Xt.valuePropName||"value"],update:Vn,childProps:Zn},(0,_e.Tm)(Vn,Ht))}else Ui&&(Fr||Et)&&!vr?gn=Vn(Ti):gn=Vn}return hi(gn,Zi,ua)}))}const on=Oe;on.useStatus=h;var Mt=on,On=function(Xt,$r){var en={};for(var Pt in Xt)Object.prototype.hasOwnProperty.call(Xt,Pt)&&$r.indexOf(Pt)<0&&(en[Pt]=Xt[Pt]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Pt=Object.getOwnPropertySymbols(Xt);Et<Pt.length;Et++)$r.indexOf(Pt[Et])<0&&Object.prototype.propertyIsEnumerable.call(Xt,Pt[Et])&&(en[Pt[Et]]=Xt[Pt[Et]]);return en},yi=Xt=>{var{prefixCls:$r,children:en}=Xt,Pt=On(Xt,["prefixCls","children"]);const{getPrefixCls:Et}=ie.useContext(Ee.E_),_r=Et("form",$r),Fr=ie.useMemo(()=>({prefixCls:_r,status:"error"}),[_r]);return ie.createElement(T.List,Object.assign({},Pt),(In,an,_n)=>ie.createElement(O.Rk.Provider,{value:Fr},en(In.map(mn=>Object.assign(Object.assign({},mn),{fieldKey:mn.key})),an,{errors:_n.errors,warnings:_n.warnings})))};function $i(){const{form:Xt}=(0,ie.useContext)(O.q3);return Xt}const Dn=xr;Dn.Item=Mt,Dn.List=yi,Dn.ErrorList=pe,Dn.useForm=Rt,Dn.useFormInstance=$i,Dn.useWatch=T.useWatch,Dn.Provider=O.RV,Dn.create=()=>{};var zn=Dn},8628:function(yn,Wt,g){"use strict";var xe=g(59301),Fe=g(34280),se=g(56762),Me=g(69507);function ie(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const O=(0,xe.useRef)({}),I=(0,se.Z)(),n=(0,Me.ZP)();return(0,Fe.Z)(()=>{const o=n.subscribe(L=>{O.current=L,Y&&I()});return()=>n.unsubscribe(o)},[]),O.current}Wt.Z=ie},5871:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return dt}});var xe=g(84105),Fe=g(87395),se=g(92310),Me=g.n(se),ie=g(96663),Y=g(90493),O=g(20135),I=g(72071),n=g(6620),o=g(52884),L=g(95727);function p(){return typeof BigInt=="function"}function a(Ze){return!Ze&&Ze!==0&&!Number.isNaN(Ze)||!String(Ze).trim()}function d(Ze){var Ke=Ze.trim(),Bt=Ke.startsWith("-");Bt&&(Ke=Ke.slice(1)),Ke=Ke.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ke.startsWith(".")&&(Ke="0".concat(Ke));var Vt=Ke||"0",Ut=Vt.split("."),mr=Ut[0]||"0",br=Ut[1]||"0";mr==="0"&&br==="0"&&(Bt=!1);var re=Bt?"-":"";return{negative:Bt,negativeStr:re,trimStr:Vt,integerStr:mr,decimalStr:br,fullStr:"".concat(re).concat(Vt)}}function m(Ze){var Ke=String(Ze);return!Number.isNaN(Number(Ke))&&Ke.includes("e")}function S(Ze){var Ke=String(Ze);if(m(Ze)){var Bt=Number(Ke.slice(Ke.indexOf("e-")+2)),Vt=Ke.match(/\.(\d+)/);return Vt!=null&&Vt[1]&&(Bt+=Vt[1].length),Bt}return Ke.includes(".")&&F(Ke)?Ke.length-Ke.indexOf(".")-1:0}function $(Ze){var Ke=String(Ze);if(m(Ze)){if(Ze>Number.MAX_SAFE_INTEGER)return String(p()?BigInt(Ze).toString():Number.MAX_SAFE_INTEGER);if(Ze<Number.MIN_SAFE_INTEGER)return String(p()?BigInt(Ze).toString():Number.MIN_SAFE_INTEGER);Ke=Ze.toFixed(S(Ke))}return d(Ke).fullStr}function F(Ze){return typeof Ze=="number"?!Number.isNaN(Ze):Ze?/^\s*-?\d+(\.\d+)?\s*$/.test(Ze)||/^\s*-?\d+\.\s*$/.test(Ze)||/^\s*-?\.\d+\s*$/.test(Ze):!1}var H=function(){function Ze(Ke){if((0,o.Z)(this,Ze),(0,Y.Z)(this,"origin",""),(0,Y.Z)(this,"negative",void 0),(0,Y.Z)(this,"integer",void 0),(0,Y.Z)(this,"decimal",void 0),(0,Y.Z)(this,"decimalLen",void 0),(0,Y.Z)(this,"empty",void 0),(0,Y.Z)(this,"nan",void 0),a(Ke)){this.empty=!0;return}if(this.origin=String(Ke),Ke==="-"||Number.isNaN(Ke)){this.nan=!0;return}var Bt=Ke;if(m(Bt)&&(Bt=Number(Bt)),Bt=typeof Bt=="string"?Bt:$(Bt),F(Bt)){var Vt=d(Bt);this.negative=Vt.negative;var Ut=Vt.trimStr.split(".");this.integer=BigInt(Ut[0]);var mr=Ut[1]||"0";this.decimal=BigInt(mr),this.decimalLen=mr.length}else this.nan=!0}return(0,L.Z)(Ze,[{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(Bt){var Vt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Bt,"0"));return BigInt(Vt)}},{key:"negate",value:function(){var Bt=new Ze(this.toString());return Bt.negative=!Bt.negative,Bt}},{key:"cal",value:function(Bt,Vt,Ut){var mr=Math.max(this.getDecimalStr().length,Bt.getDecimalStr().length),br=this.alignDecimal(mr),re=Bt.alignDecimal(mr),ue=Vt(br,re).toString(),rr=Ut(mr),Qe=d(ue),ot=Qe.negativeStr,Jr=Qe.trimStr,Tt="".concat(ot).concat(Jr.padStart(rr+1,"0"));return new Ze("".concat(Tt.slice(0,-rr),".").concat(Tt.slice(-rr)))}},{key:"add",value:function(Bt){if(this.isInvalidate())return new Ze(Bt);var Vt=new Ze(Bt);return Vt.isInvalidate()?this:this.cal(Vt,function(Ut,mr){return Ut+mr},function(Ut){return Ut})}},{key:"multi",value:function(Bt){var Vt=new Ze(Bt);return this.isInvalidate()||Vt.isInvalidate()?new Ze(NaN):this.cal(Vt,function(Ut,mr){return Ut*mr},function(Ut){return Ut*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Bt){return this.toString()===(Bt==null?void 0:Bt.toString())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":d("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ze}(),V=function(){function Ze(Ke){if((0,o.Z)(this,Ze),(0,Y.Z)(this,"origin",""),(0,Y.Z)(this,"number",void 0),(0,Y.Z)(this,"empty",void 0),a(Ke)){this.empty=!0;return}this.origin=String(Ke),this.number=Number(Ke)}return(0,L.Z)(Ze,[{key:"negate",value:function(){return new Ze(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new Ze(Bt);var Vt=Number(Bt);if(Number.isNaN(Vt))return this;var Ut=this.number+Vt;if(Ut>Number.MAX_SAFE_INTEGER)return new Ze(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Ze(Number.MIN_SAFE_INTEGER);var mr=Math.max(S(this.number),S(Vt));return new Ze(Ut.toFixed(mr))}},{key:"multi",value:function(Bt){var Vt=Number(Bt);if(this.isInvalidate()||Number.isNaN(Vt))return new Ze(NaN);var Ut=this.number*Vt;if(Ut>Number.MAX_SAFE_INTEGER)return new Ze(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Ze(Number.MIN_SAFE_INTEGER);var mr=Math.max(S(this.number),S(Vt));return new Ze(Ut.toFixed(mr))}},{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(Bt){return this.toNumber()===(Bt==null?void 0:Bt.toNumber())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":$(this.number):this.origin}}]),Ze}();function ee(Ze){return p()?new H(Ze):new V(Ze)}function B(Ze,Ke,Bt){var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ze==="")return"";var Ut=d(Ze),mr=Ut.negativeStr,br=Ut.integerStr,re=Ut.decimalStr,ue="".concat(Ke).concat(re),rr="".concat(mr).concat(br);if(Bt>=0){var Qe=Number(re[Bt]);if(Qe>=5&&!Vt){var ot=ee(Ze).add("".concat(mr,"0.").concat("0".repeat(Bt)).concat(10-Qe));return B(ot.toString(),Ke,Bt,Vt)}return Bt===0?rr:"".concat(rr).concat(Ke).concat(re.padEnd(Bt,"0").slice(0,Bt))}return ue===".0"?rr:"".concat(rr).concat(ue)}var G=ee,le=g(93681),J=g(34280),we=g(8654),Ce=g(59301),Le=g(48736);function ae(Ze,Ke){var Bt=(0,Ce.useRef)(null);function Vt(){try{var mr=Ze.selectionStart,br=Ze.selectionEnd,re=Ze.value,ue=re.substring(0,mr),rr=re.substring(br);Bt.current={start:mr,end:br,value:re,beforeTxt:ue,afterTxt:rr}}catch(Qe){}}function Ut(){if(Ze&&Bt.current&&Ke)try{var mr=Ze.value,br=Bt.current,re=br.beforeTxt,ue=br.afterTxt,rr=br.start,Qe=mr.length;if(mr.endsWith(ue))Qe=mr.length-Bt.current.afterTxt.length;else if(mr.startsWith(re))Qe=re.length;else{var ot=re[rr-1],Jr=mr.indexOf(ot,rr-1);Jr!==-1&&(Qe=Jr+1)}Ze.setSelectionRange(Qe,Qe)}catch(Tt){(0,Le.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Tt.message))}}return[Vt,Ut]}var pe=g(49658),T=function(){var Ke=(0,Ce.useState)(!1),Bt=(0,I.Z)(Ke,2),Vt=Bt[0],Ut=Bt[1];return(0,J.Z)(function(){Ut((0,pe.Z)())},[]),Vt},Ee=T,oe=g(16089),fe=200,ye=600;function _(Ze){var Ke=Ze.prefixCls,Bt=Ze.upNode,Vt=Ze.downNode,Ut=Ze.upDisabled,mr=Ze.downDisabled,br=Ze.onStep,re=Ce.useRef(),ue=Ce.useRef([]),rr=Ce.useRef();rr.current=br;var Qe=function(){clearTimeout(re.current)},ot=function(Gt,Oe){Gt.preventDefault(),Qe(),rr.current(Oe);function on(){rr.current(Oe),re.current=setTimeout(on,fe)}re.current=setTimeout(on,ye)};Ce.useEffect(function(){return function(){Qe(),ue.current.forEach(function(ht){return oe.Z.cancel(ht)})}},[]);var Jr=Ee();if(Jr)return null;var Tt="".concat(Ke,"-handler"),Kt=Me()(Tt,"".concat(Tt,"-up"),(0,Y.Z)({},"".concat(Tt,"-up-disabled"),Ut)),qt=Me()(Tt,"".concat(Tt,"-down"),(0,Y.Z)({},"".concat(Tt,"-down-disabled"),mr)),et=function(){return ue.current.push((0,oe.Z)(Qe))},ft={unselectable:"on",role:"button",onMouseUp:et,onMouseLeave:et};return Ce.createElement("div",{className:"".concat(Tt,"-wrap")},Ce.createElement("span",(0,ie.Z)({},ft,{onMouseDown:function(Gt){ot(Gt,!0)},"aria-label":"Increase Value","aria-disabled":Ut,className:Kt}),Bt||Ce.createElement("span",{unselectable:"on",className:"".concat(Ke,"-handler-up-inner")})),Ce.createElement("span",(0,ie.Z)({},ft,{onMouseDown:function(Gt){ot(Gt,!1)},"aria-label":"Decrease Value","aria-disabled":mr,className:qt}),Vt||Ce.createElement("span",{unselectable:"on",className:"".concat(Ke,"-handler-down-inner")})))}function N(Ze){var Ke=typeof Ze=="number"?$(Ze):d(Ze).fullStr,Bt=Ke.includes(".");return Bt?d(Ke.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ze+"0"}var X=g(5643),he=function(){var Ze=(0,Ce.useRef)(0),Ke=function(){oe.Z.cancel(Ze.current)};return(0,Ce.useEffect)(function(){return Ke},[]),function(Bt){Ke(),Ze.current=(0,oe.Z)(function(){Bt()})}},qe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],st=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],nt=function(Ke,Bt){return Ke||Bt.isEmpty()?Bt.toString():Bt.toNumber()},Rt=function(Ke){var Bt=G(Ke);return Bt.isInvalidate()?null:Bt},sr=Ce.forwardRef(function(Ze,Ke){var Bt,Vt=Ze.prefixCls,Ut=Vt===void 0?"rc-input-number":Vt,mr=Ze.className,br=Ze.style,re=Ze.min,ue=Ze.max,rr=Ze.step,Qe=rr===void 0?1:rr,ot=Ze.defaultValue,Jr=Ze.value,Tt=Ze.disabled,Kt=Ze.readOnly,qt=Ze.upHandler,et=Ze.downHandler,ft=Ze.keyboard,ht=Ze.controls,Gt=ht===void 0?!0:ht,Oe=Ze.classNames,on=Ze.stringMode,Mt=Ze.parser,On=Ze.formatter,Xn=Ze.precision,yi=Ze.decimalSeparator,$i=Ze.onChange,Dn=Ze.onInput,zn=Ze.onPressEnter,Xt=Ze.onStep,$r=(0,n.Z)(Ze,qe),en="".concat(Ut,"-input"),Pt=Ce.useRef(null),Et=Ce.useState(!1),_r=(0,I.Z)(Et,2),Fr=_r[0],In=_r[1],an=Ce.useRef(!1),_n=Ce.useRef(!1),mn=Ce.useRef(!1),Mn=Ce.useState(function(){return G(Jr!=null?Jr:ot)}),ei=(0,I.Z)(Mn,2),Kr=ei[0],Vr=ei[1];function Tn(gn){Jr===void 0&&Vr(gn)}var Sn=Ce.useCallback(function(gn,Ht){if(!Ht)return Xn>=0?Xn:Math.max(S(gn),S(Qe))},[Xn,Qe]),Un=Ce.useCallback(function(gn){var Ht=String(gn);if(Mt)return Mt(Ht);var Fn=Ht;return yi&&(Fn=Fn.replace(yi,".")),Fn.replace(/[^\w.-]+/g,"")},[Mt,yi]),Vn=Ce.useRef(""),Ui=Ce.useCallback(function(gn,Ht){if(On)return On(gn,{userTyping:Ht,input:String(Vn.current)});var Fn=typeof gn=="number"?$(gn):gn;if(!Ht){var Zn=Sn(Fn,Ht);if(F(Fn)&&(yi||Zn>=0)){var Ei=yi||".";Fn=B(Fn,Ei,Zn)}}return Fn},[On,Sn,yi]),di=Ce.useState(function(){var gn=ot!=null?ot:Jr;return Kr.isInvalidate()&&["string","number"].includes((0,O.Z)(gn))?Number.isNaN(gn)?"":gn:Ui(Kr.toString(),!1)}),bn=(0,I.Z)(di,2),dr=bn[0],vr=bn[1];Vn.current=dr;function Ir(gn,Ht){vr(Ui(gn.isInvalidate()?gn.toString(!1):gn.toString(!Ht),Ht))}var Yr=Ce.useMemo(function(){return Rt(ue)},[ue,Xn]),Mr=Ce.useMemo(function(){return Rt(re)},[re,Xn]),cn=Ce.useMemo(function(){return!Yr||!Kr||Kr.isInvalidate()?!1:Yr.lessEquals(Kr)},[Yr,Kr]),nn=Ce.useMemo(function(){return!Mr||!Kr||Kr.isInvalidate()?!1:Kr.lessEquals(Mr)},[Mr,Kr]),jn=ae(Pt.current,Fr),ti=(0,I.Z)(jn,2),ui=ti[0],Ri=ti[1],Qi=function(Ht){return Yr&&!Ht.lessEquals(Yr)?Yr:Mr&&!Mr.lessEquals(Ht)?Mr:null},Pi=function(Ht){return!Qi(Ht)},Sr=function(Ht,Fn){var Zn=Ht,Ei=Pi(Zn)||Zn.isEmpty();if(!Zn.isEmpty()&&!Fn&&(Zn=Qi(Zn)||Zn,Ei=!0),!Kt&&!Tt&&Ei){var ji=Zn.toString(),da=Sn(ji,Fn);return da>=0&&(Zn=G(B(ji,".",da)),Pi(Zn)||(Zn=G(B(ji,".",da,!0)))),Zn.equals(Kr)||(Tn(Zn),$i==null||$i(Zn.isEmpty()?null:nt(on,Zn)),Jr===void 0&&Ir(Zn,Fn)),Zn}return Kr},Cn=he(),fn=function gn(Ht){if(ui(),Vn.current=Ht,vr(Ht),!_n.current){var Fn=Un(Ht),Zn=G(Fn);Zn.isNaN()||Sr(Zn,!0)}Dn==null||Dn(Ht),Cn(function(){var Ei=Ht;Mt||(Ei=Ht.replace(/。/g,".")),Ei!==Ht&&gn(Ei)})},hi=function(){_n.current=!0},ii=function(){_n.current=!1,fn(Pt.current.value)},ri=function(Ht){fn(Ht.target.value)},bi=function(Ht){var Fn;if(!(Ht&&cn||!Ht&&nn)){an.current=!1;var Zn=G(mn.current?N(Qe):Qe);Ht||(Zn=Zn.negate());var Ei=(Kr||G(0)).add(Zn.toString()),ji=Sr(Ei,!1);Xt==null||Xt(nt(on,ji),{offset:mn.current?N(Qe):Qe,type:Ht?"up":"down"}),(Fn=Pt.current)===null||Fn===void 0||Fn.focus()}},Ti=function(Ht){var Fn=G(Un(dr)),Zn=Fn;Fn.isNaN()?Zn=Sr(Kr,Ht):Zn=Sr(Fn,Ht),Jr!==void 0?Ir(Kr,!1):Zn.isNaN()||Ir(Zn,!1)},Bi=function(){an.current=!0},Zi=function(Ht){var Fn=Ht.key,Zn=Ht.shiftKey;an.current=!0,mn.current=Zn,Fn==="Enter"&&(_n.current||(an.current=!1),Ti(!1),zn==null||zn(Ht)),ft!==!1&&!_n.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Fn)&&(bi(Fn==="Up"||Fn==="ArrowUp"),Ht.preventDefault())},ua=function(){an.current=!1,mn.current=!1},xi=function(){Ti(!1),In(!1),an.current=!1};return(0,J.o)(function(){Kr.isInvalidate()||Ir(Kr,!1)},[Xn]),(0,J.o)(function(){var gn=G(Jr);Vr(gn);var Ht=G(Un(dr));(!gn.equals(Ht)||!an.current||On)&&Ir(gn,an.current)},[Jr]),(0,J.o)(function(){On&&Ri()},[dr]),Ce.createElement("div",{className:Me()(Ut,Oe==null?void 0:Oe.input,mr,(Bt={},(0,Y.Z)(Bt,"".concat(Ut,"-focused"),Fr),(0,Y.Z)(Bt,"".concat(Ut,"-disabled"),Tt),(0,Y.Z)(Bt,"".concat(Ut,"-readonly"),Kt),(0,Y.Z)(Bt,"".concat(Ut,"-not-a-number"),Kr.isNaN()),(0,Y.Z)(Bt,"".concat(Ut,"-out-of-range"),!Kr.isInvalidate()&&!Pi(Kr)),Bt)),style:br,onFocus:function(){In(!0)},onBlur:xi,onKeyDown:Zi,onKeyUp:ua,onCompositionStart:hi,onCompositionEnd:ii,onBeforeInput:Bi},Gt&&Ce.createElement(_,{prefixCls:Ut,upNode:qt,downNode:et,upDisabled:cn,downDisabled:nn,onStep:bi}),Ce.createElement("div",{className:"".concat(en,"-wrap")},Ce.createElement("input",(0,ie.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":re,"aria-valuemax":ue,"aria-valuenow":Kr.isInvalidate()?null:Kr.toString(),step:Qe},$r,{ref:(0,we.sQ)(Pt,Ke),className:en,value:dr,onChange:ri,disabled:Tt,readOnly:Kt}))))}),Jt=Ce.forwardRef(function(Ze,Ke){var Bt=Ze.disabled,Vt=Ze.style,Ut=Ze.prefixCls,mr=Ze.value,br=Ze.prefix,re=Ze.suffix,ue=Ze.addonBefore,rr=Ze.addonAfter,Qe=Ze.classes,ot=Ze.className,Jr=Ze.classNames,Tt=(0,n.Z)(Ze,st),Kt=Ce.useRef(null),qt=function(ft){Kt.current&&(0,X.nH)(Kt.current,ft)};return Ce.createElement(le.BaseInput,{inputElement:Ce.createElement(sr,(0,ie.Z)({prefixCls:Ut,disabled:Bt,classNames:Jr,ref:(0,we.sQ)(Kt,Ke)},Tt)),className:ot,triggerFocus:qt,prefixCls:Ut,value:mr,disabled:Bt,style:Vt,prefix:br,suffix:re,addonAfter:rr,addonBefore:ue,classes:Qe,classNames:Jr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Jt.displayName="InputNumber";var We=Jt,Er=We,xr=g(19080),Wr=g(36355),Cr=g(92736),_e=g(1684),kt=g(19716),K=g(32441),y=g(33234),h=g(9937),D=g(17313),Ae=g(74207),Z=g(83116),k=g(37613);const te=(Ze,Ke)=>{let{componentCls:Bt,borderRadiusSM:Vt,borderRadiusLG:Ut}=Ze;const mr=Ke==="lg"?Ut:Vt;return{[`&-${Ke}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:mr,borderEndEndRadius:mr},[`${Bt}-handler-up`]:{borderStartEndRadius:mr},[`${Bt}-handler-down`]:{borderEndEndRadius:mr}}}},Se=Ze=>{const{componentCls:Ke,lineWidth:Bt,lineType:Vt,colorBorder:Ut,borderRadius:mr,fontSizeLG:br,controlHeightLG:re,controlHeightSM:ue,colorError:rr,paddingInlineSM:Qe,colorTextDescription:ot,motionDurationMid:Jr,handleHoverColor:Tt,paddingInline:Kt,paddingBlock:qt,handleBg:et,handleActiveBg:ft,colorTextDisabled:ht,borderRadiusSM:Gt,borderRadiusLG:Oe,controlWidth:on,handleVisible:Mt,handleBorderColor:On}=Ze;return[{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(Ze)),(0,h.ik)(Ze)),(0,h.bi)(Ze,Ke)),{display:"inline-block",width:on,margin:0,padding:0,border:`${Bt}px ${Vt} ${Ut}`,borderRadius:mr,"&-rtl":{direction:"rtl",[`${Ke}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:br,borderRadius:Oe,[`input${Ke}-input`]:{height:re-2*Bt}},"&-sm":{padding:0,borderRadius:Gt,[`input${Ke}-input`]:{height:ue-2*Bt,padding:`0 ${Qe}px`}},"&:hover":Object.assign({},(0,h.pU)(Ze)),"&-focused":Object.assign({},(0,h.M1)(Ze)),"&-out-of-range":{[`${Ke}-input-wrap`]:{input:{color:rr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,D.Wf)(Ze)),(0,h.s7)(Ze)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ke}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ke}-group-addon`]:{borderRadius:Oe,fontSize:Ze.fontSizeLG}},"&-sm":{[`${Ke}-group-addon`]:{borderRadius:Gt}},[`${Ke}-wrapper-disabled > ${Ke}-group-addon`]:Object.assign({},(0,h.Xy)(Ze))}}),[`&-disabled ${Ke}-input`]:{cursor:"not-allowed"},[Ke]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(Ze)),{width:"100%",padding:`${qt}px ${Kt}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:mr,outline:0,transition:`all ${Jr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,h.nz)(Ze.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Ke]:Object.assign(Object.assign(Object.assign({[`&:hover ${Ke}-handler-wrap, &-focused ${Ke}-handler-wrap`]:{opacity:1},[`${Ke}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ze.handleWidth,height:"100%",background:et,borderStartStartRadius:0,borderStartEndRadius:mr,borderEndEndRadius:mr,borderEndStartRadius:0,opacity:Mt===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Jr} linear ${Jr}`,[`${Ke}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Ke}-handler-up-inner,
|
|
|
${Ke}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Ze.handleFontSize}}},[`${Ke}-handler`]:{height:"50%",overflow:"hidden",color:ot,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Bt}px ${Vt} ${On}`,transition:`all ${Jr} linear`,"&:active":{background:ft},"&:hover":{height:"60%",[`
|
|
|
${Ke}-handler-up-inner,
|
|
|
${Ke}-handler-down-inner
|
|
|
`]:{color:Tt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,D.Ro)()),{color:ot,transition:`all ${Jr} linear`,userSelect:"none"})},[`${Ke}-handler-up`]:{borderStartEndRadius:mr},[`${Ke}-handler-down`]:{borderBlockStart:`${Bt}px ${Vt} ${On}`,borderEndEndRadius:mr}},te(Ze,"lg")),te(Ze,"sm")),{"&-disabled, &-readonly":{[`${Ke}-handler-wrap`]:{display:"none"},[`${Ke}-input`]:{color:"inherit"}},[`
|
|
|
${Ke}-handler-up-disabled,
|
|
|
${Ke}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Ke}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Ke}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:ht}})},{[`${Ke}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Ke}-handler-down`]:{borderBlockStartWidth:0}}}]},Be=Ze=>{const{componentCls:Ke,paddingBlock:Bt,paddingInline:Vt,inputAffixPadding:Ut,controlWidth:mr,borderRadiusLG:br,borderRadiusSM:re}=Ze;return{[`${Ke}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,h.ik)(Ze)),(0,h.bi)(Ze,`${Ke}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:mr,padding:0,paddingInlineStart:Vt,"&-lg":{borderRadius:br},"&-sm":{borderRadius:re},[`&:not(${Ke}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,h.pU)(Ze)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ke}-disabled`]:{background:"transparent"},[`> div${Ke}`]:{width:"100%",border:"none",outline:"none",[`&${Ke}-focused`]:{boxShadow:"none !important"}},[`input${Ke}-input`]:{padding:`${Bt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ke}-handler-wrap`]:{zIndex:2},[Ke]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ut},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Vt,marginInlineStart:Ut}}})}};var Ie=(0,Z.Z)("InputNumber",Ze=>{const Ke=(0,k.TS)(Ze,(0,h.e5)(Ze));return[Se(Ke),Be(Ke),(0,Ae.c)(Ke)]},Ze=>Object.assign(Object.assign({},(0,h.TM)(Ze)),{controlWidth:90,handleWidth:Ze.controlHeightSM-Ze.lineWidth*2,handleFontSize:Ze.fontSize/2,handleVisible:"auto",handleActiveBg:Ze.colorFillAlter,handleBg:Ze.colorBgContainer,handleHoverColor:Ze.colorPrimary,handleBorderColor:Ze.colorBorder})),Ge=function(Ze,Ke){var Bt={};for(var Vt in Ze)Object.prototype.hasOwnProperty.call(Ze,Vt)&&Ke.indexOf(Vt)<0&&(Bt[Vt]=Ze[Vt]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Vt=Object.getOwnPropertySymbols(Ze);Ut<Vt.length;Ut++)Ke.indexOf(Vt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Vt[Ut])&&(Bt[Vt[Ut]]=Ze[Vt[Ut]]);return Bt};const mt=Ce.forwardRef((Ze,Ke)=>{const{getPrefixCls:Bt,direction:Vt}=Ce.useContext(Wr.E_),Ut=Ce.useRef(null);Ce.useImperativeHandle(Ke,()=>Ut.current);const{className:mr,rootClassName:br,size:re,disabled:ue,prefixCls:rr,addonBefore:Qe,addonAfter:ot,prefix:Jr,bordered:Tt=!0,readOnly:Kt,status:qt,controls:et}=Ze,ft=Ge(Ze,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),ht=Bt("input-number",rr),[Gt,Oe]=Ie(ht),{compactSize:on,compactItemClassnames:Mt}=(0,y.ri)(ht,Vt);let On=Ce.createElement(Fe.Z,{className:`${ht}-handler-up-inner`}),Xn=Ce.createElement(xe.Z,{className:`${ht}-handler-down-inner`});const yi=typeof et=="boolean"?et:void 0;typeof et=="object"&&(On=typeof et.upIcon=="undefined"?On:Ce.createElement("span",{className:`${ht}-handler-up-inner`},et.upIcon),Xn=typeof et.downIcon=="undefined"?Xn:Ce.createElement("span",{className:`${ht}-handler-down-inner`},et.downIcon));const{hasFeedback:$i,status:Dn,isFormItemInput:zn,feedbackIcon:Xt}=Ce.useContext(K.aM),$r=(0,xr.F)(Dn,qt),en=(0,kt.Z)(an=>{var _n;return(_n=re!=null?re:on)!==null&&_n!==void 0?_n:an}),Pt=Ce.useContext(_e.Z),Et=ue!=null?ue:Pt,_r=Me()({[`${ht}-lg`]:en==="large",[`${ht}-sm`]:en==="small",[`${ht}-rtl`]:Vt==="rtl",[`${ht}-borderless`]:!Tt,[`${ht}-in-form-item`]:zn},(0,xr.Z)(ht,$r),Mt,Oe),Fr=`${ht}-group`,In=Ce.createElement(Er,Object.assign({ref:Ut,disabled:Et,className:Me()(mr,br),upHandler:On,downHandler:Xn,prefixCls:ht,readOnly:Kt,controls:yi,prefix:Jr,suffix:$i&&Xt,addonAfter:ot&&Ce.createElement(y.BR,null,Ce.createElement(K.Ux,{override:!0,status:!0},ot)),addonBefore:Qe&&Ce.createElement(y.BR,null,Ce.createElement(K.Ux,{override:!0,status:!0},Qe)),classNames:{input:_r},classes:{affixWrapper:Me()((0,xr.Z)(`${ht}-affix-wrapper`,$r,$i),{[`${ht}-affix-wrapper-sm`]:en==="small",[`${ht}-affix-wrapper-lg`]:en==="large",[`${ht}-affix-wrapper-rtl`]:Vt==="rtl",[`${ht}-affix-wrapper-borderless`]:!Tt},Oe),wrapper:Me()({[`${Fr}-rtl`]:Vt==="rtl",[`${ht}-wrapper-disabled`]:Et},Oe),group:Me()({[`${ht}-group-wrapper-sm`]:en==="small",[`${ht}-group-wrapper-lg`]:en==="large",[`${ht}-group-wrapper-rtl`]:Vt==="rtl"},(0,xr.Z)(`${ht}-group-wrapper`,$r,$i),Oe)}},ft));return Gt(In)}),$e=mt,tt=Ze=>Ce.createElement(Cr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ce.createElement(mt,Object.assign({},Ze)));$e._InternalPanelDoNotUseOrYouWillBeFired=tt;var dt=$e},9432:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return H},n:function(){return $}});var xe=g(19248),Fe=g(92310),se=g.n(Fe),Me=g(93681),ie=g(8654),Y=g(59301),O=g(19080),I=g(36355),n=g(1684),o=g(19716),L=g(32441),p=g(33234),a=g(59412),d=g(9937);function m(V){return!!(V.prefix||V.suffix||V.allowClear)}var S=function(V,ee){var B={};for(var G in V)Object.prototype.hasOwnProperty.call(V,G)&&ee.indexOf(G)<0&&(B[G]=V[G]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,G=Object.getOwnPropertySymbols(V);le<G.length;le++)ee.indexOf(G[le])<0&&Object.prototype.propertyIsEnumerable.call(V,G[le])&&(B[G[le]]=V[G[le]]);return B};function $(V,ee){if(!V)return;V.focus(ee);const{cursor:B}=ee||{};if(B){const G=V.value.length;switch(B){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(G,G);break;default:V.setSelectionRange(0,G);break}}}var H=(0,Y.forwardRef)((V,ee)=>{var B;const{prefixCls:G,bordered:le=!0,status:J,size:we,disabled:Ce,onBlur:Le,onFocus:ae,suffix:pe,allowClear:T,addonAfter:Ee,addonBefore:oe,className:fe,style:ye,styles:_,rootClassName:N,onChange:X,classNames:he}=V,qe=S(V,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:st,direction:nt,input:Rt}=Y.useContext(I.E_),sr=st("input",G),Jt=(0,Y.useRef)(null),[We,Er]=(0,d.ZP)(sr),{compactSize:xr,compactItemClassnames:Wr}=(0,p.ri)(sr,nt),Cr=(0,o.Z)(mt=>{var $e;return($e=we!=null?we:xr)!==null&&$e!==void 0?$e:mt}),_e=Y.useContext(n.Z),kt=Ce!=null?Ce:_e,{status:K,hasFeedback:y,feedbackIcon:h}=(0,Y.useContext)(L.aM),D=(0,O.F)(K,J),Ae=m(V)||!!y,Z=(0,Y.useRef)(Ae);(0,Y.useEffect)(()=>{var mt;Ae&&Z.current,Z.current=Ae},[Ae]);const k=(0,a.Z)(Jt,!0),te=mt=>{k(),Le==null||Le(mt)},Se=mt=>{k(),ae==null||ae(mt)},Be=mt=>{k(),X==null||X(mt)},Ie=(y||pe)&&Y.createElement(Y.Fragment,null,pe,y&&h);let Ge;return typeof T=="object"&&(T!=null&&T.clearIcon)?Ge=T:T&&(Ge={clearIcon:Y.createElement(xe.Z,null)}),We(Y.createElement(Me.default,Object.assign({ref:(0,ie.sQ)(ee,Jt),prefixCls:sr,autoComplete:Rt==null?void 0:Rt.autoComplete},qe,{disabled:kt,onBlur:te,onFocus:Se,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),ye),styles:Object.assign(Object.assign({},Rt==null?void 0:Rt.styles),_),suffix:Ie,allowClear:Ge,className:se()(fe,N,Wr,Rt==null?void 0:Rt.className),onChange:Be,addonAfter:Ee&&Y.createElement(p.BR,null,Y.createElement(L.Ux,{override:!0,status:!0},Ee)),addonBefore:oe&&Y.createElement(p.BR,null,Y.createElement(L.Ux,{override:!0,status:!0},oe)),classNames:Object.assign(Object.assign(Object.assign({},he),Rt==null?void 0:Rt.classNames),{input:se()({[`${sr}-sm`]:Cr==="small",[`${sr}-lg`]:Cr==="large",[`${sr}-rtl`]:nt==="rtl",[`${sr}-borderless`]:!le},!Ae&&(0,O.Z)(sr,D),he==null?void 0:he.input,(B=Rt==null?void 0:Rt.classNames)===null||B===void 0?void 0:B.input,Er)}),classes:{affixWrapper:se()({[`${sr}-affix-wrapper-sm`]:Cr==="small",[`${sr}-affix-wrapper-lg`]:Cr==="large",[`${sr}-affix-wrapper-rtl`]:nt==="rtl",[`${sr}-affix-wrapper-borderless`]:!le},(0,O.Z)(`${sr}-affix-wrapper`,D,y),Er),wrapper:se()({[`${sr}-group-rtl`]:nt==="rtl"},Er),group:se()({[`${sr}-group-wrapper-sm`]:Cr==="small",[`${sr}-group-wrapper-lg`]:Cr==="large",[`${sr}-group-wrapper-rtl`]:nt==="rtl",[`${sr}-group-wrapper-disabled`]:kt},(0,O.Z)(`${sr}-group-wrapper`,D,y),Er)}})))})},1643:function(yn,Wt,g){"use strict";var xe=g(19248),Fe=g(92310),se=g.n(Fe),Me=g(9296),ie=g(59301),Y=g(19080),O=g(36355),I=g(1684),n=g(19716),o=g(32441),L=g(9432),p=g(9937),a=function(m,S){var $={};for(var F in m)Object.prototype.hasOwnProperty.call(m,F)&&S.indexOf(F)<0&&($[F]=m[F]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,F=Object.getOwnPropertySymbols(m);H<F.length;H++)S.indexOf(F[H])<0&&Object.prototype.propertyIsEnumerable.call(m,F[H])&&($[F[H]]=m[F[H]]);return $};const d=(0,ie.forwardRef)((m,S)=>{const{prefixCls:$,bordered:F=!0,size:H,disabled:V,status:ee,allowClear:B,showCount:G,classNames:le,rootClassName:J,className:we}=m,Ce=a(m,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Le,direction:ae}=ie.useContext(O.E_),pe=(0,n.Z)(H),T=ie.useContext(I.Z),Ee=V!=null?V:T,{status:oe,hasFeedback:fe,feedbackIcon:ye}=ie.useContext(o.aM),_=(0,Y.F)(oe,ee),N=ie.useRef(null);ie.useImperativeHandle(S,()=>{var nt;return{resizableTextArea:(nt=N.current)===null||nt===void 0?void 0:nt.resizableTextArea,focus:Rt=>{var sr,Jt;(0,L.n)((Jt=(sr=N.current)===null||sr===void 0?void 0:sr.resizableTextArea)===null||Jt===void 0?void 0:Jt.textArea,Rt)},blur:()=>{var Rt;return(Rt=N.current)===null||Rt===void 0?void 0:Rt.blur()}}});const X=Le("input",$);let he;typeof B=="object"&&(B!=null&&B.clearIcon)?he=B:B&&(he={clearIcon:ie.createElement(xe.Z,null)});const[qe,st]=(0,p.ZP)(X);return qe(ie.createElement(Me.default,Object.assign({},Ce,{disabled:Ee,allowClear:he,className:se()(we,J),classes:{affixWrapper:se()(`${X}-textarea-affix-wrapper`,{[`${X}-affix-wrapper-rtl`]:ae==="rtl",[`${X}-affix-wrapper-borderless`]:!F,[`${X}-affix-wrapper-sm`]:pe==="small",[`${X}-affix-wrapper-lg`]:pe==="large",[`${X}-textarea-show-count`]:G},(0,Y.Z)(`${X}-affix-wrapper`,_),st)},classNames:Object.assign(Object.assign({},le),{textarea:se()({[`${X}-borderless`]:!F,[`${X}-sm`]:pe==="small",[`${X}-lg`]:pe==="large"},(0,Y.Z)(X,_),st,le==null?void 0:le.textarea)}),prefixCls:X,suffix:fe&&ie.createElement("span",{className:`${X}-textarea-suffix`},ye),showCount:G,ref:N})))});Wt.Z=d},59412:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});var xe=g(59301);function Fe(se,Me){const ie=(0,xe.useRef)([]),Y=()=>{ie.current.push(setTimeout(()=>{var O,I,n,o;!((O=se.current)===null||O===void 0)&&O.input&&((I=se.current)===null||I===void 0?void 0:I.input.getAttribute("type"))==="password"&&(!((n=se.current)===null||n===void 0)&&n.input.hasAttribute("value"))&&((o=se.current)===null||o===void 0||o.input.removeAttribute("value"))}))};return(0,xe.useEffect)(()=>(Me&&Y(),()=>ie.current.forEach(O=>{O&&clearTimeout(O)})),[]),Y}},92832:function(yn,Wt,g){"use strict";g.d(Wt,{default:function(){return pe}});var xe=g(92310),Fe=g.n(xe),se=g(59301),Me=g(36355),ie=g(32441),Y=g(9937),I=T=>{const{getPrefixCls:Ee,direction:oe}=(0,se.useContext)(Me.E_),{prefixCls:fe,className:ye}=T,_=Ee("input-group",fe),N=Ee("input"),[X,he]=(0,Y.ZP)(N),qe=Fe()(_,{[`${_}-lg`]:T.size==="large",[`${_}-sm`]:T.size==="small",[`${_}-compact`]:T.compact,[`${_}-rtl`]:oe==="rtl"},he,ye),st=(0,se.useContext)(ie.aM),nt=(0,se.useMemo)(()=>Object.assign(Object.assign({},st),{isFormItemInput:!1}),[st]);return X(se.createElement("span",{className:qe,style:T.style,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onFocus:T.onFocus,onBlur:T.onBlur},se.createElement(ie.aM.Provider,{value:nt},T.children)))},n=g(9432),o=g(73331),L=g(15277),p=g(2738),a=g(8654),d=g(59412),m=function(T,Ee){var oe={};for(var fe in T)Object.prototype.hasOwnProperty.call(T,fe)&&Ee.indexOf(fe)<0&&(oe[fe]=T[fe]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,fe=Object.getOwnPropertySymbols(T);ye<fe.length;ye++)Ee.indexOf(fe[ye])<0&&Object.prototype.propertyIsEnumerable.call(T,fe[ye])&&(oe[fe[ye]]=T[fe[ye]]);return oe};const S=T=>T?se.createElement(L.Z,null):se.createElement(o.Z,null),$={click:"onClick",hover:"onMouseOver"};var H=se.forwardRef((T,Ee)=>{const{visibilityToggle:oe=!0}=T,fe=typeof oe=="object"&&oe.visible!==void 0,[ye,_]=(0,se.useState)(()=>fe?oe.visible:!1),N=(0,se.useRef)(null);se.useEffect(()=>{fe&&_(oe.visible)},[fe,oe]);const X=(0,d.Z)(N),he=()=>{const{disabled:kt}=T;kt||(ye&&X(),_(K=>{var y;const h=!K;return typeof oe=="object"&&((y=oe.onVisibleChange)===null||y===void 0||y.call(oe,h)),h}))},qe=kt=>{const{action:K="click",iconRender:y=S}=T,h=$[K]||"",D=y(ye),Ae={[h]:he,className:`${kt}-icon`,key:"passwordIcon",onMouseDown:Z=>{Z.preventDefault()},onMouseUp:Z=>{Z.preventDefault()}};return se.cloneElement(se.isValidElement(D)?D:se.createElement("span",null,D),Ae)},{className:st,prefixCls:nt,inputPrefixCls:Rt,size:sr}=T,Jt=m(T,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:We}=se.useContext(Me.E_),Er=We("input",Rt),xr=We("input-password",nt),Wr=oe&&qe(xr),Cr=Fe()(xr,st,{[`${xr}-${sr}`]:!!sr}),_e=Object.assign(Object.assign({},(0,p.Z)(Jt,["suffix","iconRender","visibilityToggle"])),{type:ye?"text":"password",className:Cr,prefixCls:Er,suffix:Wr});return sr&&(_e.size=sr),se.createElement(n.Z,Object.assign({ref:(0,a.sQ)(Ee,N)},_e))}),V=g(47472),ee=g(92343),B=g(3113),G=g(19716),le=g(33234),J=function(T,Ee){var oe={};for(var fe in T)Object.prototype.hasOwnProperty.call(T,fe)&&Ee.indexOf(fe)<0&&(oe[fe]=T[fe]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,fe=Object.getOwnPropertySymbols(T);ye<fe.length;ye++)Ee.indexOf(fe[ye])<0&&Object.prototype.propertyIsEnumerable.call(T,fe[ye])&&(oe[fe[ye]]=T[fe[ye]]);return oe},Ce=se.forwardRef((T,Ee)=>{const{prefixCls:oe,inputPrefixCls:fe,className:ye,size:_,suffix:N,enterButton:X=!1,addonAfter:he,loading:qe,disabled:st,onSearch:nt,onChange:Rt,onCompositionStart:sr,onCompositionEnd:Jt}=T,We=J(T,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Er,direction:xr}=se.useContext(Me.E_),Wr=se.useRef(!1),Cr=Er("input-search",oe),_e=Er("input",fe),{compactSize:kt}=(0,le.ri)(Cr,xr),K=(0,G.Z)(tt=>{var dt;return(dt=_!=null?_:kt)!==null&&dt!==void 0?dt:tt}),y=se.useRef(null),h=tt=>{tt&&tt.target&&tt.type==="click"&&nt&&nt(tt.target.value,tt,{source:"clear"}),Rt&&Rt(tt)},D=tt=>{var dt;document.activeElement===((dt=y.current)===null||dt===void 0?void 0:dt.input)&&tt.preventDefault()},Ae=tt=>{var dt,Ze;nt&&nt((Ze=(dt=y.current)===null||dt===void 0?void 0:dt.input)===null||Ze===void 0?void 0:Ze.value,tt,{source:"input"})},Z=tt=>{Wr.current||qe||Ae(tt)},k=typeof X=="boolean"?se.createElement(V.Z,null):null,te=`${Cr}-button`;let Se;const Be=X||{},Ie=Be.type&&Be.type.__ANT_BUTTON===!0;Ie||Be.type==="button"?Se=(0,ee.Tm)(Be,Object.assign({onMouseDown:D,onClick:tt=>{var dt,Ze;(Ze=(dt=Be==null?void 0:Be.props)===null||dt===void 0?void 0:dt.onClick)===null||Ze===void 0||Ze.call(dt,tt),Ae(tt)},key:"enterButton"},Ie?{className:te,size:K}:{})):Se=se.createElement(B.ZP,{className:te,type:X?"primary":void 0,size:K,disabled:st,key:"enterButton",onMouseDown:D,onClick:Ae,loading:qe,icon:k},X),he&&(Se=[Se,(0,ee.Tm)(he,{key:"addonAfter"})]);const Ge=Fe()(Cr,{[`${Cr}-rtl`]:xr==="rtl",[`${Cr}-${K}`]:!!K,[`${Cr}-with-button`]:!!X},ye),mt=tt=>{Wr.current=!0,sr==null||sr(tt)},$e=tt=>{Wr.current=!1,Jt==null||Jt(tt)};return se.createElement(n.Z,Object.assign({ref:(0,a.sQ)(y,Ee),onPressEnter:Z},We,{size:K,onCompositionStart:mt,onCompositionEnd:$e,prefixCls:_e,addonAfter:Se,suffix:N,onChange:h,className:Ge,disabled:st}))}),Le=g(1643);const ae=n.Z;ae.Group=I,ae.Search=Ce,ae.TextArea=Le.Z,ae.Password=H;var pe=ae},9937:function(yn,Wt,g){"use strict";g.d(Wt,{M1:function(){return O},TM:function(){return ee},Xy:function(){return I},bi:function(){return L},e5:function(){return V},ik:function(){return p},nz:function(){return ie},pU:function(){return Y},s7:function(){return a},x0:function(){return o}});var xe=g(17313),Fe=g(74207),se=g(37613),Me=g(83116);const ie=B=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:B,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Y=B=>({borderColor:B.hoverBorderColor}),O=B=>({borderColor:B.activeBorderColor,boxShadow:B.activeShadow,outline:0}),I=B=>({color:B.colorTextDisabled,backgroundColor:B.colorBgContainerDisabled,borderColor:B.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Y((0,se.TS)(B,{hoverBorderColor:B.colorBorder})))}),n=B=>{const{paddingBlockLG:G,fontSizeLG:le,lineHeightLG:J,borderRadiusLG:we,paddingInlineLG:Ce}=B;return{padding:`${G}px ${Ce}px`,fontSize:le,lineHeight:J,borderRadius:we}},o=B=>({padding:`${B.paddingBlockSM}px ${B.paddingInlineSM}px`,borderRadius:B.borderRadiusSM}),L=(B,G)=>{const{componentCls:le,colorError:J,colorWarning:we,errorActiveShadow:Ce,warningActiveShadow:Le,colorErrorBorderHover:ae,colorWarningBorderHover:pe}=B;return{[`&-status-error:not(${G}-disabled):not(${G}-borderless)${G}`]:{borderColor:J,"&:hover":{borderColor:ae},"&:focus, &-focused":Object.assign({},O((0,se.TS)(B,{activeBorderColor:J,activeShadow:Ce}))),[`${le}-prefix, ${le}-suffix`]:{color:J}},[`&-status-warning:not(${G}-disabled):not(${G}-borderless)${G}`]:{borderColor:we,"&:hover":{borderColor:pe},"&:focus, &-focused":Object.assign({},O((0,se.TS)(B,{activeBorderColor:we,activeShadow:Le}))),[`${le}-prefix, ${le}-suffix`]:{color:we}}}},p=B=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${B.paddingBlock}px ${B.paddingInline}px`,color:B.colorText,fontSize:B.fontSize,lineHeight:B.lineHeight,backgroundColor:B.colorBgContainer,backgroundImage:"none",borderWidth:B.lineWidth,borderStyle:B.lineType,borderColor:B.colorBorder,borderRadius:B.borderRadius,transition:`all ${B.motionDurationMid}`},ie(B.colorTextPlaceholder)),{"&:hover":Object.assign({},Y(B)),"&:focus, &-focused":Object.assign({},O(B)),"&-disabled, &[disabled]":Object.assign({},I(B)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:B.controlHeight,lineHeight:B.lineHeight,verticalAlign:"bottom",transition:`all ${B.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},n(B)),"&-sm":Object.assign({},o(B)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),a=B=>{const{componentCls:G,antCls:le}=B;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:B.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${G}, &-lg > ${G}-group-addon`]:Object.assign({},n(B)),[`&-sm ${G}, &-sm > ${G}-group-addon`]:Object.assign({},o(B)),[`&-lg ${le}-select-single ${le}-select-selector`]:{height:B.controlHeightLG},[`&-sm ${le}-select-single ${le}-select-selector`]:{height:B.controlHeightSM},[`> ${G}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${G}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${B.paddingInline}px`,color:B.colorText,fontWeight:"normal",fontSize:B.fontSize,textAlign:"center",backgroundColor:B.colorFillAlter,border:`${B.lineWidth}px ${B.lineType} ${B.colorBorder}`,borderRadius:B.borderRadius,transition:`all ${B.motionDurationSlow}`,lineHeight:1,[`${le}-select`]:{margin:`-${B.paddingBlock+1}px -${B.paddingInline}px`,[`&${le}-select-single:not(${le}-select-customize-input)`]:{[`${le}-select-selector`]:{backgroundColor:"inherit",border:`${B.lineWidth}px ${B.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${le}-select-selector`]:{color:B.colorPrimary}}},[`${le}-cascader-picker`]:{margin:`-9px -${B.paddingInline}px`,backgroundColor:"transparent",[`${le}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${G}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${G}-search-with-button &`]:{zIndex:0}}},[`> ${G}:first-child, ${G}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${G}-affix-wrapper`]:{[`&:not(:first-child) ${G}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${G}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${G}:last-child, ${G}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${le}-select ${le}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${G}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${G}-search &`]:{borderStartStartRadius:B.borderRadius,borderEndStartRadius:B.borderRadius}},[`&:not(:first-child), ${G}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${G}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,xe.dF)()),{[`${G}-group-addon, ${G}-group-wrap, > ${G}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:B.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${G}-affix-wrapper,
|
|
|
& > ${G}-number-affix-wrapper,
|
|
|
& > ${le}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-B.lineWidth,borderInlineEndWidth:B.lineWidth},[`${G}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
|
|
|
& > ${le}-select-auto-complete ${G},
|
|
|
& > ${le}-cascader-picker ${G},
|
|
|
& > ${G}-group-wrapper ${G}`]:{borderInlineEndWidth:B.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${le}-select-focused`]:{zIndex:1},[`& > ${le}-select > ${le}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${le}-select:first-child > ${le}-select-selector,
|
|
|
& > ${le}-select-auto-complete:first-child ${G},
|
|
|
& > ${le}-cascader-picker:first-child ${G}`]:{borderStartStartRadius:B.borderRadius,borderEndStartRadius:B.borderRadius},[`& > *:last-child,
|
|
|
& > ${le}-select:last-child > ${le}-select-selector,
|
|
|
& > ${le}-cascader-picker:last-child ${G},
|
|
|
& > ${le}-cascader-picker-focused:last-child ${G}`]:{borderInlineEndWidth:B.lineWidth,borderStartEndRadius:B.borderRadius,borderEndEndRadius:B.borderRadius},[`& > ${le}-select-auto-complete ${G}`]:{verticalAlign:"top"},[`${G}-group-wrapper + ${G}-group-wrapper`]:{marginInlineStart:-B.lineWidth,[`${G}-affix-wrapper`]:{borderRadius:0}},[`${G}-group-wrapper:not(:last-child)`]:{[`&${G}-search > ${G}-group`]:{[`& > ${G}-group-addon > ${G}-search-button`]:{borderRadius:0},[`& > ${G}`]:{borderStartStartRadius:B.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:B.borderRadius}}}})}},d=B=>{const{componentCls:G,controlHeightSM:le,lineWidth:J}=B,Ce=(le-J*2-16)/2;return{[G]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(B)),p(B)),L(B,G)),{'&[type="color"]':{height:B.controlHeight,[`&${G}-lg`]:{height:B.controlHeightLG},[`&${G}-sm`]:{height:le,paddingTop:Ce,paddingBottom:Ce}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},m=B=>{const{componentCls:G}=B;return{[`${G}-clear-icon`]:{margin:0,color:B.colorTextQuaternary,fontSize:B.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${B.motionDurationSlow}`,"&:hover":{color:B.colorTextTertiary},"&:active":{color:B.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${B.inputAffixPadding}px`}}}},S=B=>{const{componentCls:G,inputAffixPadding:le,colorTextDescription:J,motionDurationSlow:we,colorIcon:Ce,colorIconHover:Le,iconCls:ae}=B;return{[`${G}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(B)),{display:"inline-flex",[`&:not(${G}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Y(B)),{zIndex:1,[`${G}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${G}[disabled]`]:{background:"transparent"}},[`> input${G}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${G}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:B.paddingXS}},"&-show-count-suffix":{color:J},"&-show-count-has-suffix":{marginInlineEnd:B.paddingXXS},"&-prefix":{marginInlineEnd:le},"&-suffix":{marginInlineStart:le}}}),m(B)),{[`${ae}${G}-password-icon`]:{color:Ce,cursor:"pointer",transition:`all ${we}`,"&:hover":{color:Le}}}),L(B,`${G}-affix-wrapper`))}},$=B=>{const{componentCls:G,colorError:le,colorWarning:J,borderRadiusLG:we,borderRadiusSM:Ce}=B;return{[`${G}-group`]:Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(B)),a(B)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${G}-group-addon`]:{borderRadius:we,fontSize:B.fontSizeLG}},"&-sm":{[`${G}-group-addon`]:{borderRadius:Ce}},"&-status-error":{[`${G}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${G}-group-addon`]:{color:J,borderColor:J}},"&-disabled":{[`${G}-group-addon`]:Object.assign({},I(B))},[`&:not(${G}-compact-first-item):not(${G}-compact-last-item)${G}-compact-item`]:{[`${G}, ${G}-group-addon`]:{borderRadius:0}},[`&:not(${G}-compact-last-item)${G}-compact-first-item`]:{[`${G}, ${G}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${G}-compact-first-item)${G}-compact-last-item`]:{[`${G}, ${G}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},F=B=>{const{componentCls:G,antCls:le}=B,J=`${G}-search`;return{[J]:{[`${G}`]:{"&:hover, &:focus":{borderColor:B.colorPrimaryHover,[`+ ${G}-group-addon ${J}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:B.colorPrimaryHover}}},[`${G}-affix-wrapper`]:{borderRadius:0},[`${G}-lg`]:{lineHeight:B.lineHeightLG-2e-4},[`> ${G}-group`]:{[`> ${G}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${J}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:B.borderRadius,borderEndEndRadius:B.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${J}-button:not(${le}-btn-primary)`]:{color:B.colorTextDescription,"&:hover":{color:B.colorPrimaryHover},"&:active":{color:B.colorPrimaryActive},[`&${le}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${J}-button`]:{height:B.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${J}-button`]:{height:B.controlHeightLG},[`&-small ${J}-button`]:{height:B.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${G}-compact-item`]:{[`&:not(${G}-compact-last-item)`]:{[`${G}-group-addon`]:{[`${G}-search-button`]:{marginInlineEnd:-B.lineWidth,borderRadius:0}}},[`&:not(${G}-compact-first-item)`]:{[`${G},${G}-affix-wrapper`]:{borderRadius:0}},[`> ${G}-group-addon ${G}-search-button,
|
|
|
> ${G},
|
|
|
${G}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${G}-affix-wrapper-focused`]:{zIndex:2}}}}},H=B=>{const{componentCls:G,paddingLG:le}=B,J=`${G}-textarea`;return{[J]:{position:"relative","&-show-count":{[`> ${G}`]:{height:"100%"},[`${G}-data-count`]:{position:"absolute",bottom:-B.fontSize*B.lineHeight,insetInlineEnd:0,color:B.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${G}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${J}-has-feedback`]:{[`${G}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${G}-affix-wrapper`]:{padding:0,[`> textarea${G}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${G}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${G}-clear-icon`]:{position:"absolute",insetInlineEnd:B.paddingXS,insetBlockStart:B.paddingXS},[`${J}-suffix`]:{position:"absolute",top:0,insetInlineEnd:B.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function V(B){return(0,se.TS)(B,{inputAffixPadding:B.paddingXXS})}const ee=B=>{const{controlHeight:G,fontSize:le,lineHeight:J,lineWidth:we,controlHeightSM:Ce,controlHeightLG:Le,fontSizeLG:ae,lineHeightLG:pe,paddingSM:T,controlPaddingHorizontalSM:Ee,controlPaddingHorizontal:oe,colorFillAlter:fe,colorPrimaryHover:ye,controlOutlineWidth:_,controlOutline:N,colorErrorOutline:X,colorWarningOutline:he}=B;return{paddingBlock:Math.max(Math.round((G-le*J)/2*10)/10-we,3),paddingBlockSM:Math.max(Math.round((Ce-le*J)/2*10)/10-we,0),paddingBlockLG:Math.ceil((Le-ae*pe)/2*10)/10-we,paddingInline:T-we,paddingInlineSM:Ee-we,paddingInlineLG:oe-we,addonBg:fe,activeBorderColor:ye,hoverBorderColor:ye,activeShadow:`0 0 0 ${_}px ${N}`,errorActiveShadow:`0 0 0 ${_}px ${X}`,warningActiveShadow:`0 0 0 ${_}px ${he}`}};Wt.ZP=(0,Me.Z)("Input",B=>{const G=(0,se.TS)(B,V(B));return[d(G),H(G),S(G),$(G),F(G),(0,Fe.c)(G)]},ee)},45818:function(yn,Wt,g){"use strict";g.d(Wt,{D:function(){return V},Z:function(){return G}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(J,we){return Fe.createElement(ie.Z,(0,xe.Z)({},J,{ref:we,icon:Me}))},O=Fe.forwardRef(Y),I=O,n=g(33853),o=g(38819),L=g(92310),p=g.n(L),a=g(2738),m=le=>!isNaN(parseFloat(le))&&isFinite(le),S=g(36355),$=g(84966),F=function(le,J){var we={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&J.indexOf(Ce)<0&&(we[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Ce=Object.getOwnPropertySymbols(le);Le<Ce.length;Le++)J.indexOf(Ce[Le])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Le])&&(we[Ce[Le]]=le[Ce[Le]]);return we};const H={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},V=Fe.createContext({}),ee=(()=>{let le=0;return function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${J}${le}`}})();var G=Fe.forwardRef((le,J)=>{const{prefixCls:we,className:Ce,trigger:Le,children:ae,defaultCollapsed:pe=!1,theme:T="dark",style:Ee={},collapsible:oe=!1,reverseArrow:fe=!1,width:ye=200,collapsedWidth:_=80,zeroWidthTriggerStyle:N,breakpoint:X,onCollapse:he,onBreakpoint:qe}=le,st=F(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nt}=(0,Fe.useContext)($.Gs),[Rt,sr]=(0,Fe.useState)("collapsed"in le?le.collapsed:pe),[Jt,We]=(0,Fe.useState)(!1);(0,Fe.useEffect)(()=>{"collapsed"in le&&sr(le.collapsed)},[le.collapsed]);const Er=(K,y)=>{"collapsed"in le||sr(K),he==null||he(K,y)},xr=(0,Fe.useRef)();xr.current=K=>{We(K.matches),qe==null||qe(K.matches),Rt!==K.matches&&Er(K.matches,"responsive")},(0,Fe.useEffect)(()=>{function K(h){return xr.current(h)}let y;if(typeof window!="undefined"){const{matchMedia:h}=window;if(h&&X&&X in H){y=h(`(max-width: ${H[X]})`);try{y.addEventListener("change",K)}catch(D){y.addListener(K)}K(y)}}return()=>{try{y==null||y.removeEventListener("change",K)}catch(h){y==null||y.removeListener(K)}}},[X]),(0,Fe.useEffect)(()=>{const K=ee("ant-sider-");return nt.addSider(K),()=>nt.removeSider(K)},[]);const Wr=()=>{Er(!Rt,"clickTrigger")},{getPrefixCls:Cr}=(0,Fe.useContext)(S.E_),_e=()=>{const K=Cr("layout-sider",we),y=(0,a.Z)(st,["collapsed"]),h=Rt?_:ye,D=m(h)?`${h}px`:String(h),Ae=parseFloat(String(_||0))===0?Fe.createElement("span",{onClick:Wr,className:p()(`${K}-zero-width-trigger`,`${K}-zero-width-trigger-${fe?"right":"left"}`),style:N},Le||Fe.createElement(I,null)):null,te={expanded:fe?Fe.createElement(o.Z,null):Fe.createElement(n.Z,null),collapsed:fe?Fe.createElement(n.Z,null):Fe.createElement(o.Z,null)}[Rt?"collapsed":"expanded"],Se=Le!==null?Ae||Fe.createElement("div",{className:`${K}-trigger`,onClick:Wr,style:{width:D}},Le||te):null,Be=Object.assign(Object.assign({},Ee),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),Ie=p()(K,`${K}-${T}`,{[`${K}-collapsed`]:!!Rt,[`${K}-has-trigger`]:oe&&Le!==null&&!Ae,[`${K}-below`]:!!Jt,[`${K}-zero-width`]:parseFloat(D)===0},Ce);return Fe.createElement("aside",Object.assign({className:Ie},y,{style:Be,ref:J}),Fe.createElement("div",{className:`${K}-children`},ae),oe||Jt&&Ae?Se:null)},kt=Fe.useMemo(()=>({siderCollapsed:Rt}),[Rt]);return Fe.createElement(V.Provider,{value:kt},_e())})},84966:function(yn,Wt,g){"use strict";g.d(Wt,{VY:function(){return V},$_:function(){return H},h4:function(){return F},Gs:function(){return a},ZP:function(){return ee}});var xe=g(19127),Fe=g(92310),se=g.n(Fe),Me=g(2738),ie=g(59301),Y=g(36355),O=g(83116),n=B=>{const{componentCls:G,bodyBg:le,lightSiderBg:J,lightTriggerBg:we,lightTriggerColor:Ce}=B;return{[`${G}-sider-light`]:{background:J,[`${G}-sider-trigger`]:{color:Ce,background:we},[`${G}-sider-zero-width-trigger`]:{color:Ce,background:we,border:`1px solid ${le}`,borderInlineStart:0}}}};const o=B=>{const{antCls:G,componentCls:le,colorText:J,triggerColor:we,footerBg:Ce,triggerBg:Le,headerHeight:ae,headerPadding:pe,headerColor:T,footerPadding:Ee,triggerHeight:oe,zeroTriggerHeight:fe,zeroTriggerWidth:ye,motionDurationMid:_,motionDurationSlow:N,fontSize:X,borderRadius:he,bodyBg:qe,headerBg:st,siderBg:nt}=B;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:qe,"&, *":{boxSizing:"border-box"},[`&${le}-has-sider`]:{flexDirection:"row",[`> ${le}, > ${le}-content`]:{width:0}},[`${le}-header, &${le}-footer`]:{flex:"0 0 auto"},[`${le}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${_}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${G}-menu${G}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:oe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:oe,color:we,lineHeight:`${oe}px`,textAlign:"center",background:Le,cursor:"pointer",transition:`all ${_}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ae,insetInlineEnd:-ye,zIndex:1,width:ye,height:fe,color:we,fontSize:B.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:he,borderEndEndRadius:he,borderEndStartRadius:0,cursor:"pointer",transition:`background ${N} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${N}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ye,borderStartStartRadius:he,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:he}}}}},n(B)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:ae,padding:pe,color:T,lineHeight:`${ae}px`,background:st,[`${G}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:Ee,color:J,fontSize:X,background:Ce},[`${le}-content`]:{flex:"auto",minHeight:0}}};var L=(0,O.Z)("Layout",B=>[o(B)],B=>{const{colorBgLayout:G,controlHeight:le,controlHeightLG:J,colorText:we,controlHeightSM:Ce,marginXXS:Le,colorTextLightSolid:ae,colorBgContainer:pe}=B,T=J*1.25;return{colorBgHeader:"#001529",colorBgBody:G,colorBgTrigger:"#002140",bodyBg:G,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${T}px`,headerColor:we,footerPadding:`${Ce}px ${T}px`,footerBg:G,siderBg:"#001529",triggerHeight:J+Le*2,triggerBg:"#002140",triggerColor:ae,zeroTriggerWidth:J,zeroTriggerHeight:J,lightSiderBg:pe,lightTriggerBg:pe,lightTriggerColor:we}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),p=function(B,G){var le={};for(var J in B)Object.prototype.hasOwnProperty.call(B,J)&&G.indexOf(J)<0&&(le[J]=B[J]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,J=Object.getOwnPropertySymbols(B);we<J.length;we++)G.indexOf(J[we])<0&&Object.prototype.propertyIsEnumerable.call(B,J[we])&&(le[J[we]]=B[J[we]]);return le};const a=ie.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function d(B){let{suffixCls:G,tagName:le,displayName:J}=B;return we=>ie.forwardRef((Le,ae)=>ie.createElement(we,Object.assign({ref:ae,suffixCls:G,tagName:le},Le)))}const m=ie.forwardRef((B,G)=>{const{prefixCls:le,suffixCls:J,className:we,tagName:Ce}=B,Le=p(B,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ae}=ie.useContext(Y.E_),pe=ae("layout",le),[T,Ee]=L(pe),oe=J?`${pe}-${J}`:pe;return T(ie.createElement(Ce,Object.assign({className:se()(le||oe,we,Ee),ref:G},Le)))}),S=ie.forwardRef((B,G)=>{const{direction:le}=ie.useContext(Y.E_),[J,we]=ie.useState([]),{prefixCls:Ce,className:Le,rootClassName:ae,children:pe,hasSider:T,tagName:Ee,style:oe}=B,fe=p(B,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ye=(0,Me.Z)(fe,["suffixCls"]),{getPrefixCls:_,layout:N}=ie.useContext(Y.E_),X=_("layout",Ce),[he,qe]=L(X),st=se()(X,{[`${X}-has-sider`]:typeof T=="boolean"?T:J.length>0,[`${X}-rtl`]:le==="rtl"},N==null?void 0:N.className,Le,ae,qe),nt=ie.useMemo(()=>({siderHook:{addSider:Rt=>{we(sr=>[].concat((0,xe.Z)(sr),[Rt]))},removeSider:Rt=>{we(sr=>sr.filter(Jt=>Jt!==Rt))}}}),[]);return he(ie.createElement(a.Provider,{value:nt},ie.createElement(Ee,Object.assign({ref:G,className:st,style:Object.assign(Object.assign({},N==null?void 0:N.style),oe)},ye),pe)))}),$=d({tagName:"div",displayName:"Layout"})(S),F=d({suffixCls:"header",tagName:"header",displayName:"Header"})(m),H=d({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(m),V=d({suffixCls:"content",tagName:"main",displayName:"Content"})(m);var ee=$},40875:function(yn,Wt,g){"use strict";g.d(Wt,{J:function(){return Y}});var xe=g(59301),Fe=g(33234),se=g(70425),Me=function(O,I){var n={};for(var o in O)Object.prototype.hasOwnProperty.call(O,o)&&I.indexOf(o)<0&&(n[o]=O[o]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,o=Object.getOwnPropertySymbols(O);L<o.length;L++)I.indexOf(o[L])<0&&Object.prototype.propertyIsEnumerable.call(O,o[L])&&(n[o[L]]=O[o[L]]);return n};const ie=xe.createContext(null),Y=xe.forwardRef((O,I)=>{const{children:n}=O,o=Me(O,["children"]),L=xe.useContext(ie),p=xe.useMemo(()=>Object.assign(Object.assign({},L),o),[L,o.prefixCls,o.mode,o.selectable]);return xe.createElement(ie.Provider,{value:p},xe.createElement(Fe.BR,null,(0,se.supportNodeRef)(n)?xe.cloneElement(n,{ref:I}):n))});Wt.Z=ie},20834:function(yn,Wt,g){"use strict";g.d(Wt,{default:function(){return kt}});var xe=g(15285),Fe=g(59301),se=g(45818),Me=g(92310),ie=g.n(Me),Y=g(36355),O=function(K,y){var h={};for(var D in K)Object.prototype.hasOwnProperty.call(K,D)&&y.indexOf(D)<0&&(h[D]=K[D]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,D=Object.getOwnPropertySymbols(K);Ae<D.length;Ae++)y.indexOf(D[Ae])<0&&Object.prototype.propertyIsEnumerable.call(K,D[Ae])&&(h[D[Ae]]=K[D[Ae]]);return h},n=K=>{const{prefixCls:y,className:h,dashed:D}=K,Ae=O(K,["prefixCls","className","dashed"]),{getPrefixCls:Z}=Fe.useContext(Y.E_),k=Z("menu",y),te=ie()({[`${k}-item-divider-dashed`]:!!D},h);return Fe.createElement(xe.iz,Object.assign({className:te},Ae))},o=g(11592),L=g(2738),p=g(6848),a=g(92343),m=(0,Fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$=K=>{var y;const{className:h,children:D,icon:Ae,title:Z,danger:k}=K,{prefixCls:te,firstLevel:Se,direction:Be,disableMenuItemTitleTooltip:Ie,inlineCollapsed:Ge}=Fe.useContext(m),mt=Bt=>{const Vt=Fe.createElement("span",{className:`${te}-title-content`},D);return(!Ae||(0,a.l$)(D)&&D.type==="span")&&D&&Bt&&Se&&typeof D=="string"?Fe.createElement("div",{className:`${te}-inline-collapsed-noicon`},D.charAt(0)):Vt},{siderCollapsed:$e}=Fe.useContext(se.D);let tt=Z;typeof Z=="undefined"?tt=Se?D:"":Z===!1&&(tt="");const dt={title:tt};!$e&&!Ge&&(dt.title=null,dt.open=!1);const Ze=(0,o.Z)(D).length;let Ke=Fe.createElement(xe.ck,Object.assign({},(0,L.Z)(K,["title","icon","danger"]),{className:ie()({[`${te}-item-danger`]:k,[`${te}-item-only-child`]:(Ae?Ze+1:Ze)===1},h),title:typeof Z=="string"?Z:void 0}),(0,a.Tm)(Ae,{className:ie()((0,a.l$)(Ae)?(y=Ae.props)===null||y===void 0?void 0:y.className:"",`${te}-item-icon`)}),mt(Ge));return Ie||(Ke=Fe.createElement(p.Z,Object.assign({},dt,{placement:Be==="rtl"?"left":"right",overlayClassName:`${te}-inline-collapsed-tooltip`}),Ke)),Ke},H=K=>{var y;const{popupClassName:h,icon:D,title:Ae,theme:Z}=K,k=Fe.useContext(m),{prefixCls:te,inlineCollapsed:Se,theme:Be}=k,Ie=(0,xe.Xl)();let Ge;if(!D)Ge=Se&&!Ie.length&&Ae&&typeof Ae=="string"?Fe.createElement("div",{className:`${te}-inline-collapsed-noicon`},Ae.charAt(0)):Fe.createElement("span",{className:`${te}-title-content`},Ae);else{const $e=(0,a.l$)(Ae)&&Ae.type==="span";Ge=Fe.createElement(Fe.Fragment,null,(0,a.Tm)(D,{className:ie()((0,a.l$)(D)?(y=D.props)===null||y===void 0?void 0:y.className:"",`${te}-item-icon`)}),$e?Ae:Fe.createElement("span",{className:`${te}-title-content`},Ae))}const mt=Fe.useMemo(()=>Object.assign(Object.assign({},k),{firstLevel:!1}),[k]);return Fe.createElement(m.Provider,{value:mt},Fe.createElement(xe.Wd,Object.assign({},(0,L.Z)(K,["icon"]),{title:Ge,popupClassName:ie()(te,h,`${te}-${Z||Be}`)})))},V=g(18785),ee=g(70425),B=g(62892),G=g(40875),le=function(K,y){var h={};for(var D in K)Object.prototype.hasOwnProperty.call(K,D)&&y.indexOf(D)<0&&(h[D]=K[D]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,D=Object.getOwnPropertySymbols(K);Ae<D.length;Ae++)y.indexOf(D[Ae])<0&&Object.prototype.propertyIsEnumerable.call(K,D[Ae])&&(h[D[Ae]]=K[D[Ae]]);return h};function J(K){return(K||[]).map((y,h)=>{if(y&&typeof y=="object"){const D=y,{label:Ae,children:Z,key:k,type:te}=D,Se=le(D,["label","children","key","type"]),Be=k!=null?k:`tmp-${h}`;return Z||te==="group"?te==="group"?Fe.createElement(xe.BW,Object.assign({key:Be},Se,{title:Ae}),J(Z)):Fe.createElement(H,Object.assign({key:Be},Se,{title:Ae}),J(Z)):te==="divider"?Fe.createElement(n,Object.assign({key:Be},Se)):Fe.createElement($,Object.assign({key:Be},Se),Ae)}return null}).filter(y=>y)}function we(K){return Fe.useMemo(()=>K&&J(K),[K])}var Ce=g(64993),Le=g(17313),ae=g(8378),pe=g(13826),T=g(29878),Ee=g(83116),oe=g(37613),ye=K=>{const{componentCls:y,motionDurationSlow:h,horizontalLineHeight:D,colorSplit:Ae,lineWidth:Z,lineType:k,itemPaddingInline:te}=K;return{[`${y}-horizontal`]:{lineHeight:D,border:0,borderBottom:`${Z}px ${k} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${y}-item, ${y}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:te},[`> ${y}-item:hover,
|
|
|
> ${y}-item-active,
|
|
|
> ${y}-submenu ${y}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${y}-item, ${y}-submenu-title`]:{transition:[`border-color ${h}`,`background ${h}`].join(",")},[`${y}-submenu-arrow`]:{display:"none"}}}},N=K=>{let{componentCls:y,menuArrowOffset:h}=K;return{[`${y}-rtl`]:{direction:"rtl"},[`${y}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${y}-rtl${y}-vertical,
|
|
|
${y}-submenu-rtl ${y}-vertical`]:{[`${y}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${h})`},"&::after":{transform:`rotate(45deg) translateY(${h})`}}}}};const X=K=>Object.assign({},(0,Le.oN)(K));var qe=(K,y)=>{const{componentCls:h,itemColor:D,itemSelectedColor:Ae,groupTitleColor:Z,itemBg:k,subMenuItemBg:te,itemSelectedBg:Se,activeBarHeight:Be,activeBarWidth:Ie,activeBarBorderWidth:Ge,motionDurationSlow:mt,motionEaseInOut:$e,motionEaseOut:tt,itemPaddingInline:dt,motionDurationMid:Ze,itemHoverColor:Ke,lineType:Bt,colorSplit:Vt,itemDisabledColor:Ut,dangerItemColor:mr,dangerItemHoverColor:br,dangerItemSelectedColor:re,dangerItemActiveBg:ue,dangerItemSelectedBg:rr,itemHoverBg:Qe,itemActiveBg:ot,menuSubMenuBg:Jr,horizontalItemSelectedColor:Tt,horizontalItemSelectedBg:Kt,horizontalItemBorderRadius:qt,horizontalItemHoverBg:et,popupBg:ft}=K;return{[`${h}-${y}, ${h}-${y} > ${h}`]:{color:D,background:k,[`&${h}-root:focus-visible`]:Object.assign({},X(K)),[`${h}-item-group-title`]:{color:Z},[`${h}-submenu-selected`]:{[`> ${h}-submenu-title`]:{color:Ae}},[`${h}-item-disabled, ${h}-submenu-disabled`]:{color:`${Ut} !important`},[`${h}-item:not(${h}-item-selected):not(${h}-submenu-selected)`]:{[`&:hover, > ${h}-submenu-title:hover`]:{color:Ke}},[`&:not(${h}-horizontal)`]:{[`${h}-item:not(${h}-item-selected)`]:{"&:hover":{backgroundColor:Qe},"&:active":{backgroundColor:ot}},[`${h}-submenu-title`]:{"&:hover":{backgroundColor:Qe},"&:active":{backgroundColor:ot}}},[`${h}-item-danger`]:{color:mr,[`&${h}-item:hover`]:{[`&:not(${h}-item-selected):not(${h}-submenu-selected)`]:{color:br}},[`&${h}-item:active`]:{background:ue}},[`${h}-item a`]:{"&, &:hover":{color:"inherit"}},[`${h}-item-selected`]:{color:Ae,[`&${h}-item-danger`]:{color:re},"a, a:hover":{color:"inherit"}},[`& ${h}-item-selected`]:{backgroundColor:Se,[`&${h}-item-danger`]:{backgroundColor:rr}},[`${h}-item, ${h}-submenu-title`]:{[`&:not(${h}-item-disabled):focus-visible`]:Object.assign({},X(K))},[`&${h}-submenu > ${h}`]:{backgroundColor:Jr},[`&${h}-popup > ${h}`]:{backgroundColor:ft},[`&${h}-horizontal`]:Object.assign(Object.assign({},y==="dark"?{borderBottom:0}:{}),{[`> ${h}-item, > ${h}-submenu`]:{top:Ge,marginTop:-Ge,marginBottom:0,borderRadius:qt,"&::after":{position:"absolute",insetInline:dt,bottom:0,borderBottom:`${Be}px solid transparent`,transition:`border-color ${mt} ${$e}`,content:'""'},"&:hover, &-active, &-open":{background:et,"&::after":{borderBottomWidth:Be,borderBottomColor:Tt}},"&-selected":{color:Tt,backgroundColor:Kt,"&:hover":{backgroundColor:Kt},"&::after":{borderBottomWidth:Be,borderBottomColor:Tt}}}}),[`&${h}-root`]:{[`&${h}-inline, &${h}-vertical`]:{borderInlineEnd:`${Ge}px ${Bt} ${Vt}`}},[`&${h}-inline`]:{[`${h}-sub${h}-inline`]:{background:te},[`${h}-item, ${h}-submenu-title`]:Ge&&Ie?{width:`calc(100% + ${Ge}px)`}:{},[`${h}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ie}px solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ze} ${tt}`,`opacity ${Ze} ${tt}`].join(","),content:'""'},[`&${h}-item-danger`]:{"&::after":{borderInlineEndColor:re}}},[`${h}-selected, ${h}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ze} ${$e}`,`opacity ${Ze} ${$e}`].join(",")}}}}}};const st=K=>{const{componentCls:y,itemHeight:h,itemMarginInline:D,padding:Ae,menuArrowSize:Z,marginXS:k,itemMarginBlock:te}=K,Se=Ae+Z+k;return{[`${y}-item`]:{position:"relative",overflow:"hidden"},[`${y}-item, ${y}-submenu-title`]:{height:h,lineHeight:`${h}px`,paddingInline:Ae,overflow:"hidden",textOverflow:"ellipsis",marginInline:D,marginBlock:te,width:`calc(100% - ${D*2}px)`},[`> ${y}-item,
|
|
|
> ${y}-submenu > ${y}-submenu-title`]:{height:h,lineHeight:`${h}px`},[`${y}-item-group-list ${y}-submenu-title,
|
|
|
${y}-submenu-title`]:{paddingInlineEnd:Se}}};var Rt=K=>{const{componentCls:y,iconCls:h,itemHeight:D,colorTextLightSolid:Ae,dropdownWidth:Z,controlHeightLG:k,motionDurationMid:te,motionEaseOut:Se,paddingXL:Be,itemMarginInline:Ie,fontSizeLG:Ge,motionDurationSlow:mt,paddingXS:$e,boxShadowSecondary:tt,collapsedWidth:dt,collapsedIconSize:Ze}=K,Ke={height:D,lineHeight:`${D}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[y]:{"&-inline, &-vertical":Object.assign({[`&${y}-root`]:{boxShadow:"none"}},st(K))},[`${y}-submenu-popup`]:{[`${y}-vertical`]:Object.assign(Object.assign({},st(K)),{boxShadow:tt})}},{[`${y}-submenu-popup ${y}-vertical${y}-sub`]:{minWidth:Z,maxHeight:`calc(100vh - ${k*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${y}-inline`]:{width:"100%",[`&${y}-root`]:{[`${y}-item, ${y}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${mt}`,`background ${mt}`,`padding ${te} ${Se}`].join(","),[`> ${y}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${y}-sub${y}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${y}-submenu > ${y}-submenu-title`]:Ke,[`& ${y}-item-group-title`]:{paddingInlineStart:Be}},[`${y}-item`]:Ke}},{[`${y}-inline-collapsed`]:{width:dt,[`&${y}-root`]:{[`${y}-item, ${y}-submenu ${y}-submenu-title`]:{[`> ${y}-inline-collapsed-noicon`]:{fontSize:Ge,textAlign:"center"}}},[`> ${y}-item,
|
|
|
> ${y}-item-group > ${y}-item-group-list > ${y}-item,
|
|
|
> ${y}-item-group > ${y}-item-group-list > ${y}-submenu > ${y}-submenu-title,
|
|
|
> ${y}-submenu > ${y}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ge/2}px - ${Ie}px)`,textOverflow:"clip",[`
|
|
|
${y}-submenu-arrow,
|
|
|
${y}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${y}-item-icon, ${h}`]:{margin:0,fontSize:Ze,lineHeight:`${D}px`,"+ span":{display:"inline-block",opacity:0}}},[`${y}-item-icon, ${h}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${y}-item-icon, ${h}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${y}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:$e})}}]};const sr=K=>{const{componentCls:y,motionDurationSlow:h,motionDurationMid:D,motionEaseInOut:Ae,motionEaseOut:Z,iconCls:k,iconSize:te,iconMarginInlineEnd:Se}=K;return{[`${y}-item, ${y}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${h}`,`background ${h}`,`padding ${h} ${Ae}`].join(","),[`${y}-item-icon, ${k}`]:{minWidth:te,fontSize:te,transition:[`font-size ${D} ${Z}`,`margin ${h} ${Ae}`,`color ${h}`].join(","),"+ span":{marginInlineStart:Se,opacity:1,transition:[`opacity ${h} ${Ae}`,`margin ${h}`,`color ${h}`].join(",")}},[`${y}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${y}-item-only-child`]:{[`> ${k}, > ${y}-item-icon`]:{marginInlineEnd:0}}},[`${y}-item-disabled, ${y}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${y}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Jt=K=>{const{componentCls:y,motionDurationSlow:h,motionEaseInOut:D,borderRadius:Ae,menuArrowSize:Z,menuArrowOffset:k}=K;return{[`${y}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:K.margin,width:Z,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${h} ${D}, opacity ${h}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Z*.6,height:Z*.15,backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${h} ${D}`,`transform ${h} ${D}`,`top ${h} ${D}`,`color ${h} ${D}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${k})`},"&::after":{transform:`rotate(-45deg) translateY(${k})`}}}}},We=K=>{const{antCls:y,componentCls:h,fontSize:D,motionDurationSlow:Ae,motionDurationMid:Z,motionEaseInOut:k,paddingXS:te,padding:Se,colorSplit:Be,lineWidth:Ie,zIndexPopup:Ge,borderRadiusLG:mt,subMenuItemBorderRadius:$e,menuArrowSize:tt,menuArrowOffset:dt,lineType:Ze,menuPanelMaskInset:Ke,groupTitleLineHeight:Bt,groupTitleFontSize:Vt}=K;return[{"":{[`${h}`]:Object.assign(Object.assign({},(0,Le.dF)()),{"&-hidden":{display:"none"}})},[`${h}-submenu-hidden`]:{display:"none"}},{[h]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(K)),(0,Le.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:D,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${h}-item`]:{flex:"none"}},[`${h}-item, ${h}-submenu, ${h}-submenu-title`]:{borderRadius:K.itemBorderRadius},[`${h}-item-group-title`]:{padding:`${te}px ${Se}px`,fontSize:Vt,lineHeight:Bt,transition:`all ${Ae}`},[`&-horizontal ${h}-submenu`]:{transition:[`border-color ${Ae} ${k}`,`background ${Ae} ${k}`].join(",")},[`${h}-submenu, ${h}-submenu-inline`]:{transition:[`border-color ${Ae} ${k}`,`background ${Ae} ${k}`,`padding ${Z} ${k}`].join(",")},[`${h}-submenu ${h}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${k}`,`padding ${Ae} ${k}`].join(",")},[`${h}-title-content`]:{transition:`color ${Ae}`},[`${h}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${h}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Be,borderStyle:Ze,borderWidth:0,borderTopWidth:Ie,marginBlock:Ie,padding:0,"&-dashed":{borderStyle:"dashed"}}}),sr(K)),{[`${h}-item-group`]:{[`${h}-item-group-list`]:{margin:0,padding:0,[`${h}-item, ${h}-submenu-title`]:{paddingInline:`${D*2}px ${Se}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ge,borderRadius:mt,boxShadow:"none",transformOrigin:"0 0",[`&${h}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ke}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ke},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:K.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:K.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:K.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:K.paddingXS},[`> ${h}`]:Object.assign(Object.assign(Object.assign({borderRadius:mt},sr(K)),Jt(K)),{[`${h}-item, ${h}-submenu > ${h}-submenu-title`]:{borderRadius:$e},[`${h}-submenu-title::after`]:{transition:`transform ${Ae} ${k}`}})}}),Jt(K)),{[`&-inline-collapsed ${h}-submenu-arrow,
|
|
|
&-inline ${h}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${dt})`},"&::after":{transform:`rotate(45deg) translateX(-${dt})`}},[`${h}-submenu-open${h}-submenu-inline > ${h}-submenu-title > ${h}-submenu-arrow`]:{transform:`translateY(-${tt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${dt})`},"&::before":{transform:`rotate(45deg) translateX(${dt})`}}})},{[`${y}-layout-header`]:{[h]:{lineHeight:"inherit"}}}]};var Er=(K,y)=>(0,Ee.Z)("Menu",D=>{if(y===!1)return[];const{colorBgElevated:Ae,colorPrimary:Z,colorTextLightSolid:k,controlHeightLG:te,fontSize:Se,darkItemColor:Be,darkDangerItemColor:Ie,darkItemBg:Ge,darkSubMenuItemBg:mt,darkItemSelectedColor:$e,darkItemSelectedBg:tt,darkDangerItemSelectedBg:dt,darkItemHoverBg:Ze,darkGroupTitleColor:Ke,darkItemHoverColor:Bt,darkItemDisabledColor:Vt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:mr,darkDangerItemActiveBg:br}=D,re=Se/7*5,ue=(0,oe.TS)(D,{menuArrowSize:re,menuHorizontalHeight:te*1.15,menuArrowOffset:`${re*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ae}),rr=(0,oe.TS)(ue,{itemColor:Be,itemHoverColor:Bt,groupTitleColor:Ke,itemSelectedColor:$e,itemBg:Ge,popupBg:Ge,subMenuItemBg:mt,itemActiveBg:"transparent",itemSelectedBg:tt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ze,itemDisabledColor:Vt,dangerItemColor:Ie,dangerItemHoverColor:Ut,dangerItemSelectedColor:mr,dangerItemActiveBg:br,dangerItemSelectedBg:dt,menuSubMenuBg:mt,horizontalItemSelectedColor:k,horizontalItemSelectedBg:Z});return[We(ue),ye(ue),Rt(ue),qe(ue,"light"),qe(rr,"dark"),N(ue),(0,ae.Z)(ue),(0,pe.oN)(ue,"slide-up"),(0,pe.oN)(ue,"slide-down"),(0,T._y)(ue,"zoom-big")]},D=>{const{colorPrimary:Ae,colorError:Z,colorTextDisabled:k,colorErrorBg:te,colorText:Se,colorTextDescription:Be,colorBgContainer:Ie,colorFillAlter:Ge,colorFillContent:mt,lineWidth:$e,lineWidthBold:tt,controlItemBgActive:dt,colorBgTextHover:Ze,controlHeightLG:Ke,lineHeight:Bt,colorBgElevated:Vt,marginXXS:Ut,padding:mr,fontSize:br,controlHeightSM:re,fontSizeLG:ue,colorTextLightSolid:rr,colorErrorHover:Qe}=D,ot=new Ce.C(rr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:D.zIndexPopupBase+50,radiusItem:D.borderRadiusLG,itemBorderRadius:D.borderRadiusLG,radiusSubMenuItem:D.borderRadiusSM,subMenuItemBorderRadius:D.borderRadiusSM,colorItemText:Se,itemColor:Se,colorItemTextHover:Se,itemHoverColor:Se,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:Be,groupTitleColor:Be,colorItemTextSelected:Ae,itemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:Ie,itemBg:Ie,colorItemBgHover:Ze,itemHoverBg:Ze,colorItemBgActive:mt,itemActiveBg:dt,colorSubItemBg:Ge,subMenuItemBg:Ge,colorItemBgSelected:dt,itemSelectedBg:dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:tt,activeBarHeight:tt,colorActiveBarBorderSize:$e,activeBarBorderWidth:$e,colorItemTextDisabled:k,itemDisabledColor:k,colorDangerItemText:Z,dangerItemColor:Z,colorDangerItemTextHover:Z,dangerItemHoverColor:Z,colorDangerItemTextSelected:Z,dangerItemSelectedColor:Z,colorDangerItemBgActive:te,dangerItemActiveBg:te,colorDangerItemBgSelected:te,dangerItemSelectedBg:te,itemMarginInline:D.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ke,groupTitleLineHeight:Bt,collapsedWidth:Ke*2,popupBg:Vt,itemMarginBlock:Ut,itemPaddingInline:mr,horizontalLineHeight:`${Ke*1.15}px`,iconSize:br,iconMarginInlineEnd:re-br,collapsedIconSize:ue,groupTitleFontSize:br,darkItemDisabledColor:new Ce.C(rr).setAlpha(.25).toRgbString(),darkItemColor:ot,darkDangerItemColor:Z,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rr,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:Z,darkItemHoverBg:"transparent",darkGroupTitleColor:ot,darkItemHoverColor:rr,darkDangerItemHoverColor:Qe,darkDangerItemSelectedColor:rr,darkDangerItemActiveBg:Z}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(K),xr=function(K,y){var h={};for(var D in K)Object.prototype.hasOwnProperty.call(K,D)&&y.indexOf(D)<0&&(h[D]=K[D]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,D=Object.getOwnPropertySymbols(K);Ae<D.length;Ae++)y.indexOf(D[Ae])<0&&Object.prototype.propertyIsEnumerable.call(K,D[Ae])&&(h[D[Ae]]=K[D[Ae]]);return h},Cr=(0,Fe.forwardRef)((K,y)=>{var h,D;const Ae=Fe.useContext(G.Z),Z=Ae||{},{getPrefixCls:k,getPopupContainer:te,direction:Se,menu:Be}=Fe.useContext(Y.E_),Ie=k(),{prefixCls:Ge,className:mt,style:$e,theme:tt="light",expandIcon:dt,_internalDisableMenuItemTitleTooltip:Ze,inlineCollapsed:Ke,siderCollapsed:Bt,items:Vt,children:Ut,rootClassName:mr,mode:br,selectable:re,onClick:ue,overflowedIndicatorPopupClassName:rr}=K,Qe=xr(K,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ot=(0,L.Z)(Qe,["collapsedWidth"]),Jr=we(Vt)||Ut;(h=Z.validator)===null||h===void 0||h.call(Z,{mode:br});const Tt=(0,ee.useEvent)(function(){var Xn;ue==null||ue.apply(void 0,arguments),(Xn=Z.onClick)===null||Xn===void 0||Xn.call(Z)}),Kt=Z.mode||br,qt=re!=null?re:Z.selectable,et=Fe.useMemo(()=>Bt!==void 0?Bt:Ke,[Ke,Bt]),ft={horizontal:{motionName:`${Ie}-slide-up`},inline:(0,B.Z)(Ie),other:{motionName:`${Ie}-zoom-big`}},ht=k("menu",Ge||Z.prefixCls),[Gt,Oe]=Er(ht,!Ae),on=ie()(`${ht}-${tt}`,Be==null?void 0:Be.className,mt);let Mt;if(typeof dt=="function")Mt=dt;else if(dt===null||dt===!1)Mt=null;else if(Z.expandIcon===null||Z.expandIcon===!1)Mt=null;else{const Xn=dt!=null?dt:Z.expandIcon;Mt=(0,a.Tm)(Xn,{className:ie()(`${ht}-submenu-expand-icon`,(0,a.l$)(Xn)?(D=Xn.props)===null||D===void 0?void 0:D.className:"")})}const On=Fe.useMemo(()=>({prefixCls:ht,inlineCollapsed:et||!1,direction:Se,firstLevel:!0,theme:tt,mode:Kt,disableMenuItemTitleTooltip:Ze}),[ht,et,Se,Ze,tt]);return Gt(Fe.createElement(G.Z.Provider,{value:null},Fe.createElement(m.Provider,{value:On},Fe.createElement(xe.ZP,Object.assign({getPopupContainer:te,overflowedIndicator:Fe.createElement(V.Z,null),overflowedIndicatorPopupClassName:ie()(ht,`${ht}-${tt}`,rr),mode:Kt,selectable:qt,onClick:Tt},ot,{inlineCollapsed:et,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),$e),className:on,prefixCls:ht,direction:Se,defaultMotions:ft,expandIcon:Mt,ref:y,rootClassName:ie()(mr,Oe)}),Jr))))});const _e=(0,Fe.forwardRef)((K,y)=>{const h=(0,Fe.useRef)(null),D=Fe.useContext(se.D);return(0,Fe.useImperativeHandle)(y,()=>({menu:h.current,focus:Ae=>{var Z;(Z=h.current)===null||Z===void 0||Z.focus(Ae)}})),Fe.createElement(Cr,Object.assign({ref:h},K,D))});_e.Item=$,_e.SubMenu=H,_e.Divider=n,_e.ItemGroup=xe.BW;var kt=_e},58421:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Z}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(te,Se){return Fe.createElement(ie.Z,(0,xe.Z)({},te,{ref:Se,icon:Me}))},O=Fe.forwardRef(Y),I=O,n=g(49198),o=g(33853),L=g(38819),p=g(92310),a=g.n(p),d=g(90493),m=g(44127),S=g(52884),$=g(95727),F=g(65711),H=g(85745),V=g(26112),ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},B=ee,G=g(91735),le=function(k){(0,F.Z)(Se,k);var te=(0,H.Z)(Se);function Se(){var Be;(0,S.Z)(this,Se);for(var Ie=arguments.length,Ge=new Array(Ie),mt=0;mt<Ie;mt++)Ge[mt]=arguments[mt];return Be=te.call.apply(te,[this].concat(Ge)),Be.state={goInputText:""},Be.getValidValue=function(){var $e=Be.state.goInputText;return!$e||Number.isNaN($e)?void 0:Number($e)},Be.buildOptionText=function($e){return"".concat($e," ").concat(Be.props.locale.items_per_page)},Be.changeSize=function($e){Be.props.changeSize(Number($e))},Be.handleChange=function($e){Be.setState({goInputText:$e.target.value})},Be.handleBlur=function($e){var tt=Be.props,dt=tt.goButton,Ze=tt.quickGo,Ke=tt.rootPrefixCls,Bt=Be.state.goInputText;dt||Bt===""||(Be.setState({goInputText:""}),!($e.relatedTarget&&($e.relatedTarget.className.indexOf("".concat(Ke,"-item-link"))>=0||$e.relatedTarget.className.indexOf("".concat(Ke,"-item"))>=0))&&Ze(Be.getValidValue()))},Be.go=function($e){var tt=Be.state.goInputText;tt!==""&&($e.keyCode===B.ENTER||$e.type==="click")&&(Be.setState({goInputText:""}),Be.props.quickGo(Be.getValidValue()))},Be}return(0,$.Z)(Se,[{key:"getPageSizeOptions",value:function(){var Ie=this.props,Ge=Ie.pageSize,mt=Ie.pageSizeOptions;return mt.some(function($e){return $e.toString()===Ge.toString()})?mt:mt.concat([Ge.toString()]).sort(function($e,tt){var dt=Number.isNaN(Number($e))?0:Number($e),Ze=Number.isNaN(Number(tt))?0:Number(tt);return dt-Ze})}},{key:"render",value:function(){var Ie=this,Ge=this.props,mt=Ge.pageSize,$e=Ge.locale,tt=Ge.rootPrefixCls,dt=Ge.changeSize,Ze=Ge.quickGo,Ke=Ge.goButton,Bt=Ge.selectComponentClass,Vt=Ge.buildOptionText,Ut=Ge.selectPrefixCls,mr=Ge.disabled,br=this.state.goInputText,re="".concat(tt,"-options"),ue=Bt,rr=null,Qe=null,ot=null;if(!dt&&!Ze)return null;var Jr=this.getPageSizeOptions();if(dt&&ue){var Tt=Jr.map(function(Kt,qt){return Fe.createElement(ue.Option,{key:qt,value:Kt.toString()},(Vt||Ie.buildOptionText)(Kt))});rr=Fe.createElement(ue,{disabled:mr,prefixCls:Ut,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(mt||Jr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(qt){return qt.parentNode},"aria-label":$e.page_size,defaultOpen:!1},Tt)}return Ze&&(Ke&&(ot=typeof Ke=="boolean"?Fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:mr,className:"".concat(re,"-quick-jumper-button")},$e.jump_to_confirm):Fe.createElement("span",{onClick:this.go,onKeyUp:this.go},Ke)),Qe=Fe.createElement("div",{className:"".concat(re,"-quick-jumper")},$e.jump_to,Fe.createElement("input",{disabled:mr,type:"text",value:br,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":$e.page}),$e.page,ot)),Fe.createElement("li",{className:"".concat(re)},rr,Qe)}}]),Se}(Fe.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var J=le,we=function(te){var Se,Be=te.rootPrefixCls,Ie=te.page,Ge=te.active,mt=te.className,$e=te.showTitle,tt=te.onClick,dt=te.onKeyPress,Ze=te.itemRender,Ke="".concat(Be,"-item"),Bt=a()(Ke,"".concat(Ke,"-").concat(Ie),(Se={},(0,d.Z)(Se,"".concat(Ke,"-active"),Ge),(0,d.Z)(Se,"".concat(Ke,"-disabled"),!Ie),(0,d.Z)(Se,te.className,mt),Se)),Vt=function(){tt(Ie)},Ut=function(re){dt(re,tt,Ie)},mr=Ze(Ie,"page",Fe.createElement("a",{rel:"nofollow"},Ie));return mr?Fe.createElement("li",{title:$e?Ie.toString():null,className:Bt,onClick:Vt,onKeyPress:Ut,tabIndex:0},mr):null},Ce=we;function Le(){}function ae(k){var te=Number(k);return typeof te=="number"&&!Number.isNaN(te)&&isFinite(te)&&Math.floor(te)===te}var pe=function(te,Se,Be){return Be};function T(k,te,Se){var Be=typeof k=="undefined"?te.pageSize:k;return Math.floor((Se.total-1)/Be)+1}var Ee=function(k){(0,F.Z)(Se,k);var te=(0,H.Z)(Se);function Se(Be){var Ie;(0,S.Z)(this,Se),Ie=te.call(this,Be),Ie.paginationNode=Fe.createRef(),Ie.getJumpPrevPage=function(){return Math.max(1,Ie.state.current-(Ie.props.showLessItems?3:5))},Ie.getJumpNextPage=function(){return Math.min(T(void 0,Ie.state,Ie.props),Ie.state.current+(Ie.props.showLessItems?3:5))},Ie.getItemIcon=function(dt,Ze){var Ke=Ie.props.prefixCls,Bt=dt||Fe.createElement("button",{type:"button","aria-label":Ze,className:"".concat(Ke,"-item-link")});return typeof dt=="function"&&(Bt=Fe.createElement(dt,(0,m.Z)({},Ie.props))),Bt},Ie.isValid=function(dt){var Ze=Ie.props.total;return ae(dt)&&dt!==Ie.state.current&&ae(Ze)&&Ze>0},Ie.shouldDisplayQuickJumper=function(){var dt=Ie.props,Ze=dt.showQuickJumper,Ke=dt.total,Bt=Ie.state.pageSize;return Ke<=Bt?!1:Ze},Ie.handleKeyDown=function(dt){(dt.keyCode===B.ARROW_UP||dt.keyCode===B.ARROW_DOWN)&&dt.preventDefault()},Ie.handleKeyUp=function(dt){var Ze=Ie.getValidValue(dt),Ke=Ie.state.currentInputValue;Ze!==Ke&&Ie.setState({currentInputValue:Ze}),dt.keyCode===B.ENTER?Ie.handleChange(Ze):dt.keyCode===B.ARROW_UP?Ie.handleChange(Ze-1):dt.keyCode===B.ARROW_DOWN&&Ie.handleChange(Ze+1)},Ie.handleBlur=function(dt){var Ze=Ie.getValidValue(dt);Ie.handleChange(Ze)},Ie.changePageSize=function(dt){var Ze=Ie.state.current,Ke=T(dt,Ie.state,Ie.props);Ze=Ze>Ke?Ke:Ze,Ke===0&&(Ze=Ie.state.current),typeof dt=="number"&&("pageSize"in Ie.props||Ie.setState({pageSize:dt}),"current"in Ie.props||Ie.setState({current:Ze,currentInputValue:Ze})),Ie.props.onShowSizeChange(Ze,dt),"onChange"in Ie.props&&Ie.props.onChange&&Ie.props.onChange(Ze,dt)},Ie.handleChange=function(dt){var Ze=Ie.props,Ke=Ze.disabled,Bt=Ze.onChange,Vt=Ie.state,Ut=Vt.pageSize,mr=Vt.current,br=Vt.currentInputValue;if(Ie.isValid(dt)&&!Ke){var re=T(void 0,Ie.state,Ie.props),ue=dt;return dt>re?ue=re:dt<1&&(ue=1),"current"in Ie.props||Ie.setState({current:ue}),ue!==br&&Ie.setState({currentInputValue:ue}),Bt(ue,Ut),ue}return mr},Ie.prev=function(){Ie.hasPrev()&&Ie.handleChange(Ie.state.current-1)},Ie.next=function(){Ie.hasNext()&&Ie.handleChange(Ie.state.current+1)},Ie.jumpPrev=function(){Ie.handleChange(Ie.getJumpPrevPage())},Ie.jumpNext=function(){Ie.handleChange(Ie.getJumpNextPage())},Ie.hasPrev=function(){return Ie.state.current>1},Ie.hasNext=function(){return Ie.state.current<T(void 0,Ie.state,Ie.props)},Ie.runIfEnter=function(dt,Ze){if(dt.key==="Enter"||dt.charCode===13){for(var Ke=arguments.length,Bt=new Array(Ke>2?Ke-2:0),Vt=2;Vt<Ke;Vt++)Bt[Vt-2]=arguments[Vt];Ze.apply(void 0,Bt)}},Ie.runIfEnterPrev=function(dt){Ie.runIfEnter(dt,Ie.prev)},Ie.runIfEnterNext=function(dt){Ie.runIfEnter(dt,Ie.next)},Ie.runIfEnterJumpPrev=function(dt){Ie.runIfEnter(dt,Ie.jumpPrev)},Ie.runIfEnterJumpNext=function(dt){Ie.runIfEnter(dt,Ie.jumpNext)},Ie.handleGoTO=function(dt){(dt.keyCode===B.ENTER||dt.type==="click")&&Ie.handleChange(Ie.state.currentInputValue)},Ie.renderPrev=function(dt){var Ze=Ie.props,Ke=Ze.prevIcon,Bt=Ze.itemRender,Vt=Bt(dt,"prev",Ie.getItemIcon(Ke,"prev page")),Ut=!Ie.hasPrev();return(0,Fe.isValidElement)(Vt)?(0,Fe.cloneElement)(Vt,{disabled:Ut}):Vt},Ie.renderNext=function(dt){var Ze=Ie.props,Ke=Ze.nextIcon,Bt=Ze.itemRender,Vt=Bt(dt,"next",Ie.getItemIcon(Ke,"next page")),Ut=!Ie.hasNext();return(0,Fe.isValidElement)(Vt)?(0,Fe.cloneElement)(Vt,{disabled:Ut}):Vt};var Ge=Be.onChange!==Le,mt="current"in Be;mt&&!Ge&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var $e=Be.defaultCurrent;"current"in Be&&($e=Be.current);var tt=Be.defaultPageSize;return"pageSize"in Be&&(tt=Be.pageSize),$e=Math.min($e,T(tt,void 0,Be)),Ie.state={current:$e,currentInputValue:$e,pageSize:tt},Ie}return(0,$.Z)(Se,[{key:"componentDidUpdate",value:function(Ie,Ge){var mt=this.props.prefixCls;if(Ge.current!==this.state.current&&this.paginationNode.current){var $e=this.paginationNode.current.querySelector(".".concat(mt,"-item-").concat(Ge.current));if($e&&document.activeElement===$e){var tt;$e==null||(tt=$e.blur)===null||tt===void 0||tt.call($e)}}}},{key:"getValidValue",value:function(Ie){var Ge=Ie.target.value,mt=T(void 0,this.state,this.props),$e=this.state.currentInputValue,tt;return Ge===""?tt=Ge:Number.isNaN(Number(Ge))?tt=$e:Ge>=mt?tt=mt:tt=Number(Ge),tt}},{key:"getShowSizeChanger",value:function(){var Ie=this.props,Ge=Ie.showSizeChanger,mt=Ie.total,$e=Ie.totalBoundaryShowSizeChanger;return typeof Ge!="undefined"?Ge:mt>$e}},{key:"render",value:function(){var Ie=this.props,Ge=Ie.prefixCls,mt=Ie.className,$e=Ie.style,tt=Ie.disabled,dt=Ie.hideOnSinglePage,Ze=Ie.total,Ke=Ie.locale,Bt=Ie.showQuickJumper,Vt=Ie.showLessItems,Ut=Ie.showTitle,mr=Ie.showTotal,br=Ie.simple,re=Ie.itemRender,ue=Ie.showPrevNextJumpers,rr=Ie.jumpPrevIcon,Qe=Ie.jumpNextIcon,ot=Ie.selectComponentClass,Jr=Ie.selectPrefixCls,Tt=Ie.pageSizeOptions,Kt=this.state,qt=Kt.current,et=Kt.pageSize,ft=Kt.currentInputValue;if(dt===!0&&Ze<=et)return null;var ht=T(void 0,this.state,this.props),Gt=[],Oe=null,on=null,Mt=null,On=null,Xn=null,yi=Bt&&Bt.goButton,$i=Vt?1:2,Dn=qt-1>0?qt-1:0,zn=qt+1<ht?qt+1:ht,Xt=(0,V.Z)(this.props,{aria:!0,data:!0}),$r=mr&&Fe.createElement("li",{className:"".concat(Ge,"-total-text")},mr(Ze,[Ze===0?0:(qt-1)*et+1,qt*et>Ze?Ze:qt*et]));if(br){yi&&(typeof yi=="boolean"?Xn=Fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ke.jump_to_confirm):Xn=Fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},yi),Xn=Fe.createElement("li",{title:Ut?"".concat(Ke.jump_to).concat(qt,"/").concat(ht):null,className:"".concat(Ge,"-simple-pager")},Xn));var en=this.renderPrev(Dn);return Fe.createElement("ul",(0,xe.Z)({className:a()(Ge,"".concat(Ge,"-simple"),(0,d.Z)({},"".concat(Ge,"-disabled"),tt),mt),style:$e,ref:this.paginationNode},Xt),$r,en?Fe.createElement("li",{title:Ut?Ke.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Ge,"-prev"),(0,d.Z)({},"".concat(Ge,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},en):null,Fe.createElement("li",{title:Ut?"".concat(qt,"/").concat(ht):null,className:"".concat(Ge,"-simple-pager")},Fe.createElement("input",{type:"text",value:ft,disabled:tt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Fe.createElement("span",{className:"".concat(Ge,"-slash")},"/"),ht),Fe.createElement("li",{title:Ut?Ke.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(Ge,"-next"),(0,d.Z)({},"".concat(Ge,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(zn)),Xn)}if(ht<=3+$i*2){var Pt={locale:Ke,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ut,itemRender:re};ht||Gt.push(Fe.createElement(Ce,(0,xe.Z)({},Pt,{key:"noPager",page:1,className:"".concat(Ge,"-item-disabled")})));for(var Et=1;Et<=ht;Et+=1){var _r=qt===Et;Gt.push(Fe.createElement(Ce,(0,xe.Z)({},Pt,{key:Et,page:Et,active:_r})))}}else{var Fr=Vt?Ke.prev_3:Ke.prev_5,In=Vt?Ke.next_3:Ke.next_5,an=re(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(rr,"prev page")),_n=re(this.getJumpNextPage(),"jump-next",this.getItemIcon(Qe,"next page"));ue&&(Oe=an?Fe.createElement("li",{title:Ut?Fr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(Ge,"-jump-prev"),(0,d.Z)({},"".concat(Ge,"-jump-prev-custom-icon"),!!rr))},an):null,on=_n?Fe.createElement("li",{title:Ut?In:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(Ge,"-jump-next"),(0,d.Z)({},"".concat(Ge,"-jump-next-custom-icon"),!!Qe))},_n):null),On=Fe.createElement(Ce,{locale:Ke,last:!0,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ht,page:ht,active:!1,showTitle:Ut,itemRender:re}),Mt=Fe.createElement(Ce,{locale:Ke,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ut,itemRender:re});var mn=Math.max(1,qt-$i),Mn=Math.min(qt+$i,ht);qt-1<=$i&&(Mn=1+$i*2),ht-qt<=$i&&(mn=ht-$i*2);for(var ei=mn;ei<=Mn;ei+=1){var Kr=qt===ei;Gt.push(Fe.createElement(Ce,{locale:Ke,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ei,page:ei,active:Kr,showTitle:Ut,itemRender:re}))}qt-1>=$i*2&&qt!==3&&(Gt[0]=(0,Fe.cloneElement)(Gt[0],{className:"".concat(Ge,"-item-after-jump-prev")}),Gt.unshift(Oe)),ht-qt>=$i*2&&qt!==ht-2&&(Gt[Gt.length-1]=(0,Fe.cloneElement)(Gt[Gt.length-1],{className:"".concat(Ge,"-item-before-jump-next")}),Gt.push(on)),mn!==1&&Gt.unshift(Mt),Mn!==ht&&Gt.push(On)}var Vr=!this.hasPrev()||!ht,Tn=!this.hasNext()||!ht,Sn=this.renderPrev(Dn),Un=this.renderNext(zn);return Fe.createElement("ul",(0,xe.Z)({className:a()(Ge,mt,(0,d.Z)({},"".concat(Ge,"-disabled"),tt)),style:$e,ref:this.paginationNode},Xt),$r,Sn?Fe.createElement("li",{title:Ut?Ke.prev_page:null,onClick:this.prev,tabIndex:Vr?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Ge,"-prev"),(0,d.Z)({},"".concat(Ge,"-disabled"),Vr)),"aria-disabled":Vr},Sn):null,Gt,Un?Fe.createElement("li",{title:Ut?Ke.next_page:null,onClick:this.next,tabIndex:Tn?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(Ge,"-next"),(0,d.Z)({},"".concat(Ge,"-disabled"),Tn)),"aria-disabled":Tn},Un):null,Fe.createElement(J,{disabled:tt,locale:Ke,rootPrefixCls:Ge,selectComponentClass:ot,selectPrefixCls:Jr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:qt,pageSize:et,pageSizeOptions:Tt,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:yi}))}}],[{key:"getDerivedStateFromProps",value:function(Ie,Ge){var mt={};if("current"in Ie&&(mt.current=Ie.current,Ie.current!==Ge.current&&(mt.currentInputValue=mt.current)),"pageSize"in Ie&&Ie.pageSize!==Ge.pageSize){var $e=Ge.current,tt=T(Ie.pageSize,Ge,Ie);$e=$e>tt?tt:$e,"current"in Ie||(mt.current=$e,mt.currentInputValue=$e),mt.pageSize=Ie.pageSize}return mt}}]),Se}(Fe.Component);Ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Le,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Le,locale:G.Z,style:{},itemRender:pe,totalBoundaryShowSizeChanger:50};var oe=Ee,fe=g(22075),ye=g(36355),_=g(19716),N=g(8628),X=g(9763),he=g(57809);const qe=k=>Fe.createElement(he.default,Object.assign({},k,{showSearch:!0,size:"small"})),st=k=>Fe.createElement(he.default,Object.assign({},k,{showSearch:!0,size:"middle"}));qe.Option=he.default.Option,st.Option=he.default.Option;var nt=g(9937),Rt=g(17313),sr=g(83116),Jt=g(37613);const We=k=>{const{componentCls:te}=k;return{[`${te}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${te}-item-link`]:{color:k.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${te}-item-link`]:{color:k.colorTextDisabled,cursor:"not-allowed"}}},[`&${te}-disabled`]:{cursor:"not-allowed",[`${te}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:k.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:k.colorBorder,backgroundColor:k.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:k.itemActiveBgDisabled},a:{color:k.itemActiveColorDisabled}}},[`${te}-item-link`]:{color:k.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${te}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${te}-simple-pager`]:{color:k.colorTextDisabled},[`${te}-jump-prev, ${te}-jump-next`]:{[`${te}-item-link-icon`]:{opacity:0},[`${te}-item-ellipsis`]:{opacity:1}}},[`&${te}-simple`]:{[`${te}-prev, ${te}-next`]:{[`&${te}-disabled ${te}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Er=k=>{const{componentCls:te}=k;return{[`&${te}-mini ${te}-total-text, &${te}-mini ${te}-simple-pager`]:{height:k.itemSizeSM,lineHeight:`${k.itemSizeSM}px`},[`&${te}-mini ${te}-item`]:{minWidth:k.itemSizeSM,height:k.itemSizeSM,margin:0,lineHeight:`${k.itemSizeSM-2}px`},[`&${te}-mini:not(${te}-disabled) ${te}-item:not(${te}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:k.colorBgTextHover},"&:active":{backgroundColor:k.colorBgTextActive}},[`&${te}-mini ${te}-prev, &${te}-mini ${te}-next`]:{minWidth:k.itemSizeSM,height:k.itemSizeSM,margin:0,lineHeight:`${k.itemSizeSM}px`},[`&${te}-mini:not(${te}-disabled)`]:{[`${te}-prev, ${te}-next`]:{[`&:hover ${te}-item-link`]:{backgroundColor:k.colorBgTextHover},[`&:active ${te}-item-link`]:{backgroundColor:k.colorBgTextActive},[`&${te}-disabled:hover ${te}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${te}-mini ${te}-prev ${te}-item-link,
|
|
|
&${te}-mini ${te}-next ${te}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:k.itemSizeSM,lineHeight:`${k.itemSizeSM}px`}},[`&${te}-mini ${te}-jump-prev, &${te}-mini ${te}-jump-next`]:{height:k.itemSizeSM,marginInlineEnd:0,lineHeight:`${k.itemSizeSM}px`},[`&${te}-mini ${te}-options`]:{marginInlineStart:k.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:k.miniOptionsSizeChangerTop},"&-quick-jumper":{height:k.itemSizeSM,lineHeight:`${k.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,nt.x0)(k)),{width:k.paginationMiniQuickJumperInputWidth,height:k.controlHeightSM})}}}},xr=k=>{const{componentCls:te}=k;return{[`
|
|
|
&${te}-simple ${te}-prev,
|
|
|
&${te}-simple ${te}-next
|
|
|
`]:{height:k.itemSizeSM,lineHeight:`${k.itemSizeSM}px`,verticalAlign:"top",[`${te}-item-link`]:{height:k.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:k.colorBgTextHover},"&:active":{backgroundColor:k.colorBgTextActive},"&::after":{height:k.itemSizeSM,lineHeight:`${k.itemSizeSM}px`}}},[`&${te}-simple ${te}-simple-pager`]:{display:"inline-block",height:k.itemSizeSM,marginInlineEnd:k.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:k.marginXS,padding:`0 ${k.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:k.itemInputBg,border:`${k.lineWidth}px ${k.lineType} ${k.colorBorder}`,borderRadius:k.borderRadius,outline:"none",transition:`border-color ${k.motionDurationMid}`,color:"inherit","&:hover":{borderColor:k.colorPrimary},"&:focus":{borderColor:k.colorPrimaryHover,boxShadow:`${k.inputOutlineOffset}px 0 ${k.controlOutlineWidth}px ${k.controlOutline}`},"&[disabled]":{color:k.colorTextDisabled,backgroundColor:k.colorBgContainerDisabled,borderColor:k.colorBorder,cursor:"not-allowed"}}}}},Wr=k=>{const{componentCls:te}=k;return{[`${te}-jump-prev, ${te}-jump-next`]:{outline:0,[`${te}-item-container`]:{position:"relative",[`${te}-item-link-icon`]:{color:k.colorPrimary,fontSize:k.fontSizeSM,opacity:0,transition:`all ${k.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${te}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:k.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:k.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:k.paginationEllipsisTextIndent,opacity:1,transition:`all ${k.motionDurationMid}`}},"&:hover":{[`${te}-item-link-icon`]:{opacity:1},[`${te}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${te}-prev,
|
|
|
${te}-jump-prev,
|
|
|
${te}-jump-next
|
|
|
`]:{marginInlineEnd:k.marginXS},[`
|
|
|
${te}-prev,
|
|
|
${te}-next,
|
|
|
${te}-jump-prev,
|
|
|
${te}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:k.itemSize,height:k.itemSize,color:k.colorText,fontFamily:k.fontFamily,lineHeight:`${k.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:k.borderRadius,cursor:"pointer",transition:`all ${k.motionDurationMid}`},[`${te}-prev, ${te}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:k.colorText,cursor:"pointer",userSelect:"none"},[`${te}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:k.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${k.lineWidth}px ${k.lineType} transparent`,borderRadius:k.borderRadius,outline:"none",transition:`all ${k.motionDurationMid}`},[`&:hover ${te}-item-link`]:{backgroundColor:k.colorBgTextHover},[`&:active ${te}-item-link`]:{backgroundColor:k.colorBgTextActive},[`&${te}-disabled:hover`]:{[`${te}-item-link`]:{backgroundColor:"transparent"}}},[`${te}-slash`]:{marginInlineEnd:k.paginationSlashMarginInlineEnd,marginInlineStart:k.paginationSlashMarginInlineStart},[`${te}-options`]:{display:"inline-block",marginInlineStart:k.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:k.controlHeight,marginInlineStart:k.marginXS,lineHeight:`${k.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,nt.ik)(k)),{width:k.controlHeightLG*1.25,height:k.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:k.marginXS,marginInlineEnd:k.marginXS})}}}},Cr=k=>{const{componentCls:te}=k;return{[`${te}-item`]:{display:"inline-block",minWidth:k.itemSize,height:k.itemSize,marginInlineEnd:k.marginXS,fontFamily:k.fontFamily,lineHeight:`${k.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${k.lineWidth}px ${k.lineType} transparent`,borderRadius:k.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${k.paginationItemPaddingInline}px`,color:k.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${te}-item-active)`]:{"&:hover":{transition:`all ${k.motionDurationMid}`,backgroundColor:k.colorBgTextHover},"&:active":{backgroundColor:k.colorBgTextActive}},"&-active":{fontWeight:k.fontWeightStrong,backgroundColor:k.itemActiveBg,borderColor:k.colorPrimary,a:{color:k.colorPrimary},"&:hover":{borderColor:k.colorPrimaryHover},"&:hover a":{color:k.colorPrimaryHover}}}}},_e=k=>{const{componentCls:te}=k;return{[te]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(k)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${te}-total-text`]:{display:"inline-block",height:k.itemSize,marginInlineEnd:k.marginXS,lineHeight:`${k.itemSize-2}px`,verticalAlign:"middle"}}),Cr(k)),Wr(k)),xr(k)),Er(k)),We(k)),{[`@media only screen and (max-width: ${k.screenLG}px)`]:{[`${te}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${k.screenSM}px)`]:{[`${te}-options`]:{display:"none"}}}),[`&${k.componentCls}-rtl`]:{direction:"rtl"}}},kt=k=>{const{componentCls:te}=k;return{[`${te}${te}-disabled:not(${te}-mini)`]:{"&, &:hover":{[`${te}-item-link`]:{borderColor:k.colorBorder}},"&:focus-visible":{[`${te}-item-link`]:{borderColor:k.colorBorder}},[`${te}-item, ${te}-item-link`]:{backgroundColor:k.colorBgContainerDisabled,borderColor:k.colorBorder,[`&:hover:not(${te}-item-active)`]:{backgroundColor:k.colorBgContainerDisabled,borderColor:k.colorBorder,a:{color:k.colorTextDisabled}},[`&${te}-item-active`]:{backgroundColor:k.itemActiveBgDisabled}},[`${te}-prev, ${te}-next`]:{"&:hover button":{backgroundColor:k.colorBgContainerDisabled,borderColor:k.colorBorder,color:k.colorTextDisabled},[`${te}-item-link`]:{backgroundColor:k.colorBgContainerDisabled,borderColor:k.colorBorder}}},[`${te}:not(${te}-mini)`]:{[`${te}-prev, ${te}-next`]:{"&:hover button":{borderColor:k.colorPrimaryHover,backgroundColor:k.itemBg},[`${te}-item-link`]:{backgroundColor:k.itemLinkBg,borderColor:k.colorBorder},[`&:hover ${te}-item-link`]:{borderColor:k.colorPrimary,backgroundColor:k.itemBg,color:k.colorPrimary},[`&${te}-disabled`]:{[`${te}-item-link`]:{borderColor:k.colorBorder,color:k.colorTextDisabled}}},[`${te}-item`]:{backgroundColor:k.itemBg,border:`${k.lineWidth}px ${k.lineType} ${k.colorBorder}`,[`&:hover:not(${te}-item-active)`]:{borderColor:k.colorPrimary,backgroundColor:k.itemBg,a:{color:k.colorPrimary}},"&-active":{borderColor:k.colorPrimary}}}}},K=k=>{const{componentCls:te}=k;return{[`${te}:not(${te}-disabled)`]:{[`${te}-item`]:Object.assign({},(0,Rt.Qy)(k)),[`${te}-jump-prev, ${te}-jump-next`]:{"&:focus-visible":Object.assign({[`${te}-item-link-icon`]:{opacity:1},[`${te}-item-ellipsis`]:{opacity:0}},(0,Rt.oN)(k))},[`${te}-prev, ${te}-next`]:{[`&:focus-visible ${te}-item-link`]:Object.assign({},(0,Rt.oN)(k))}}}};var y=(0,sr.Z)("Pagination",k=>{const te=(0,Jt.TS)(k,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:k.marginXXS/2,paginationMiniQuickJumperInputWidth:k.controlHeightLG*1.1,paginationItemPaddingInline:k.marginXXS*1.5,paginationEllipsisLetterSpacing:k.marginXXS/2,paginationSlashMarginInlineStart:k.marginXXS,paginationSlashMarginInlineEnd:k.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,nt.e5)(k),(0,nt.TM)(k));return[_e(te),K(te),k.wireframe&&kt(te)]},k=>({itemBg:k.colorBgContainer,itemSize:k.controlHeight,itemSizeSM:k.controlHeightSM,itemActiveBg:k.colorBgContainer,itemLinkBg:k.colorBgContainer,itemActiveColorDisabled:k.colorTextDisabled,itemActiveBgDisabled:k.controlItemBgActiveDisabled,itemInputBg:k.colorBgContainer,miniOptionsSizeChangerTop:0})),h=function(k,te){var Se={};for(var Be in k)Object.prototype.hasOwnProperty.call(k,Be)&&te.indexOf(Be)<0&&(Se[Be]=k[Be]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Be=Object.getOwnPropertySymbols(k);Ie<Be.length;Ie++)te.indexOf(Be[Ie])<0&&Object.prototype.propertyIsEnumerable.call(k,Be[Ie])&&(Se[Be[Ie]]=k[Be[Ie]]);return Se},Ae=k=>{const{prefixCls:te,selectPrefixCls:Se,className:Be,rootClassName:Ie,style:Ge,size:mt,locale:$e,selectComponentClass:tt,responsive:dt,showSizeChanger:Ze}=k,Ke=h(k,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Bt}=(0,N.Z)(dt),{getPrefixCls:Vt,direction:Ut,pagination:mr={}}=Fe.useContext(ye.E_),br=Vt("pagination",te),[re,ue]=y(br),rr=Ze!=null?Ze:mr.showSizeChanger,Qe=Fe.useMemo(()=>{const ht=Fe.createElement("span",{className:`${br}-item-ellipsis`},"\u2022\u2022\u2022"),Gt=Fe.createElement("button",{className:`${br}-item-link`,type:"button",tabIndex:-1},Ut==="rtl"?Fe.createElement(L.Z,null):Fe.createElement(o.Z,null)),Oe=Fe.createElement("button",{className:`${br}-item-link`,type:"button",tabIndex:-1},Ut==="rtl"?Fe.createElement(o.Z,null):Fe.createElement(L.Z,null)),on=Fe.createElement("a",{className:`${br}-item-link`},Fe.createElement("div",{className:`${br}-item-container`},Ut==="rtl"?Fe.createElement(n.Z,{className:`${br}-item-link-icon`}):Fe.createElement(I,{className:`${br}-item-link-icon`}),ht)),Mt=Fe.createElement("a",{className:`${br}-item-link`},Fe.createElement("div",{className:`${br}-item-container`},Ut==="rtl"?Fe.createElement(I,{className:`${br}-item-link-icon`}):Fe.createElement(n.Z,{className:`${br}-item-link-icon`}),ht));return{prevIcon:Gt,nextIcon:Oe,jumpPrevIcon:on,jumpNextIcon:Mt}},[Ut,br]),[ot]=(0,X.Z)("Pagination",fe.Z),Jr=Object.assign(Object.assign({},ot),$e),Tt=(0,_.Z)(mt),Kt=Tt==="small"||!!(Bt&&!Tt&&dt),qt=Vt("select",Se),et=a()({[`${br}-mini`]:Kt,[`${br}-rtl`]:Ut==="rtl"},mr==null?void 0:mr.className,Be,Ie,ue),ft=Object.assign(Object.assign({},mr==null?void 0:mr.style),Ge);return re(Fe.createElement(oe,Object.assign({},Qe,Ke,{style:ft,prefixCls:br,selectPrefixCls:qt,className:et,selectComponentClass:tt||(Kt?qe:st),locale:Jr,showSizeChanger:rr})))},Z=Ae},5112:function(yn,Wt,g){"use strict";g.d(Wt,{ZP:function(){return N}});var xe=g(92310),Fe=g.n(xe),se=g(18929),Me=g(26112),ie=g(59301),Y=g(36355),O=g(19716);const I=ie.createContext(null),n=I.Provider;var o=I;const L=ie.createContext(null),p=L.Provider;var a=g(5630),d=g(8654),m=g(1684),S=g(32441),$=g(17313),F=g(83116),H=g(37613);const V=X=>{const{componentCls:he,antCls:qe}=X,st=`${he}-group`;return{[st]:Object.assign(Object.assign({},(0,$.Wf)(X)),{display:"inline-block",fontSize:0,[`&${st}-rtl`]:{direction:"rtl"},[`${qe}-badge ${qe}-badge-count`]:{zIndex:1},[`> ${qe}-badge:not(:first-child) > ${qe}-button-wrapper`]:{borderInlineStart:"none"}})}},ee=X=>{const{componentCls:he,wrapperMarginInlineEnd:qe,colorPrimary:st,radioSize:nt,motionDurationSlow:Rt,motionDurationMid:sr,motionEaseInOutCirc:Jt,colorBgContainer:We,colorBorder:Er,lineWidth:xr,dotSize:Wr,colorBgContainerDisabled:Cr,colorTextDisabled:_e,paddingXS:kt,dotColorDisabled:K,lineType:y,radioDotDisabledSize:h,wireframe:D,colorWhite:Ae}=X,Z=`${he}-inner`;return{[`${he}-wrapper`]:Object.assign(Object.assign({},(0,$.Wf)(X)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:qe,cursor:"pointer",[`&${he}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:X.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${he}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${xr}px ${y} ${st}`,borderRadius:"50%",visibility:"hidden",content:'""'},[he]:Object.assign(Object.assign({},(0,$.Wf)(X)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${he}-wrapper:hover &,
|
|
|
&:hover ${Z}`]:{borderColor:st},[`${he}-input:focus-visible + ${Z}`]:Object.assign({},(0,$.oN)(X)),[`${he}:hover::after, ${he}-wrapper:hover &::after`]:{visibility:"visible"},[`${he}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:nt,height:nt,marginBlockStart:nt/-2,marginInlineStart:nt/-2,backgroundColor:D?st:Ae,borderBlockStart:0,borderInlineStart:0,borderRadius:nt,transform:"scale(0)",opacity:0,transition:`all ${Rt} ${Jt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:nt,height:nt,backgroundColor:We,borderColor:Er,borderStyle:"solid",borderWidth:xr,borderRadius:"50%",transition:`all ${sr}`},[`${he}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${he}-checked`]:{[Z]:{borderColor:st,backgroundColor:D?We:st,"&::after":{transform:`scale(${Wr/nt})`,opacity:1,transition:`all ${Rt} ${Jt}`}}},[`${he}-disabled`]:{cursor:"not-allowed",[Z]:{backgroundColor:Cr,borderColor:Er,cursor:"not-allowed","&::after":{backgroundColor:K}},[`${he}-input`]:{cursor:"not-allowed"},[`${he}-disabled + span`]:{color:_e,cursor:"not-allowed"},[`&${he}-checked`]:{[Z]:{"&::after":{transform:`scale(${h/nt})`}}}},[`span${he} + *`]:{paddingInlineStart:kt,paddingInlineEnd:kt}})}},B=X=>{const{buttonColor:he,controlHeight:qe,componentCls:st,lineWidth:nt,lineType:Rt,colorBorder:sr,motionDurationSlow:Jt,motionDurationMid:We,buttonPaddingInline:Er,fontSize:xr,buttonBg:Wr,fontSizeLG:Cr,controlHeightLG:_e,controlHeightSM:kt,paddingXS:K,borderRadius:y,borderRadiusSM:h,borderRadiusLG:D,buttonCheckedBg:Ae,buttonSolidCheckedColor:Z,colorTextDisabled:k,colorBgContainerDisabled:te,buttonCheckedBgDisabled:Se,buttonCheckedColorDisabled:Be,colorPrimary:Ie,colorPrimaryHover:Ge,colorPrimaryActive:mt,buttonSolidCheckedBg:$e,buttonSolidCheckedHoverBg:tt,buttonSolidCheckedActiveBg:dt}=X;return{[`${st}-button-wrapper`]:{position:"relative",display:"inline-block",height:qe,margin:0,paddingInline:Er,paddingBlock:0,color:he,fontSize:xr,lineHeight:`${qe-nt*2}px`,background:Wr,border:`${nt}px ${Rt} ${sr}`,borderBlockStartWidth:nt+.02,borderInlineStartWidth:0,borderInlineEndWidth:nt,cursor:"pointer",transition:[`color ${We}`,`background ${We}`,`box-shadow ${We}`].join(","),a:{color:he},[`> ${st}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-nt,insetInlineStart:-nt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:nt,paddingInline:0,backgroundColor:sr,transition:`background-color ${Jt}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt}px ${Rt} ${sr}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${st}-group-large &`]:{height:_e,fontSize:Cr,lineHeight:`${_e-nt*2}px`,"&:first-child":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child":{borderStartEndRadius:D,borderEndEndRadius:D}},[`${st}-group-small &`]:{height:kt,paddingInline:K-nt,paddingBlock:0,lineHeight:`${kt-nt*2}px`,"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:Ie},"&:has(:focus-visible)":Object.assign({},(0,$.oN)(X)),[`${st}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${st}-button-wrapper-disabled)`]:{zIndex:1,color:Ie,background:Ae,borderColor:Ie,"&::before":{backgroundColor:Ie},"&:first-child":{borderColor:Ie},"&:hover":{color:Ge,borderColor:Ge,"&::before":{backgroundColor:Ge}},"&:active":{color:mt,borderColor:mt,"&::before":{backgroundColor:mt}}},[`${st}-group-solid &-checked:not(${st}-button-wrapper-disabled)`]:{color:Z,background:$e,borderColor:$e,"&:hover":{color:Z,background:tt,borderColor:tt},"&:active":{color:Z,background:dt,borderColor:dt}},"&-disabled":{color:k,backgroundColor:te,borderColor:sr,cursor:"not-allowed","&:first-child, &:hover":{color:k,backgroundColor:te,borderColor:sr}},[`&-disabled${st}-button-wrapper-checked`]:{color:Be,backgroundColor:Se,borderColor:sr,boxShadow:"none"}}}},G=X=>X-4*2;var le=(0,F.Z)("Radio",X=>{const{controlOutline:he,controlOutlineWidth:qe,radioSize:st}=X,nt=`0 0 0 ${qe}px ${he}`,Rt=nt,sr=G(st),Jt=(0,H.TS)(X,{radioDotDisabledSize:sr,radioFocusShadow:nt,radioButtonFocusShadow:Rt});return[V(Jt),ee(Jt),B(Jt)]},X=>{const{wireframe:he,padding:qe,marginXS:st,lineWidth:nt,fontSizeLG:Rt,colorText:sr,colorBgContainer:Jt,colorTextDisabled:We,controlItemBgActiveDisabled:Er,colorTextLightSolid:xr,colorPrimary:Wr,colorPrimaryHover:Cr,colorPrimaryActive:_e}=X,kt=4,K=Rt,y=he?G(K):K-(kt+nt)*2;return{radioSize:K,dotSize:y,dotColorDisabled:We,buttonSolidCheckedColor:xr,buttonSolidCheckedBg:Wr,buttonSolidCheckedHoverBg:Cr,buttonSolidCheckedActiveBg:_e,buttonBg:Jt,buttonCheckedBg:Jt,buttonColor:sr,buttonCheckedBgDisabled:Er,buttonCheckedColorDisabled:We,buttonPaddingInline:qe-nt,wrapperMarginInlineEnd:st}}),J=g(14088),we=g(4572),Ce=function(X,he){var qe={};for(var st in X)Object.prototype.hasOwnProperty.call(X,st)&&he.indexOf(st)<0&&(qe[st]=X[st]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,st=Object.getOwnPropertySymbols(X);nt<st.length;nt++)he.indexOf(st[nt])<0&&Object.prototype.propertyIsEnumerable.call(X,st[nt])&&(qe[st[nt]]=X[st[nt]]);return qe};const Le=(X,he)=>{var qe,st;const nt=ie.useContext(o),Rt=ie.useContext(L),{getPrefixCls:sr,direction:Jt,radio:We}=ie.useContext(Y.E_),Er=ie.useRef(null),xr=(0,d.sQ)(he,Er),{isFormItemInput:Wr}=ie.useContext(S.aM),Cr=mt=>{var $e,tt;($e=X.onChange)===null||$e===void 0||$e.call(X,mt),(tt=nt==null?void 0:nt.onChange)===null||tt===void 0||tt.call(nt,mt)},{prefixCls:_e,className:kt,rootClassName:K,children:y,style:h}=X,D=Ce(X,["prefixCls","className","rootClassName","children","style"]),Ae=sr("radio",_e),Z=((nt==null?void 0:nt.optionType)||Rt)==="button",k=Z?`${Ae}-button`:Ae,[te,Se]=le(Ae),Be=Object.assign({},D),Ie=ie.useContext(m.Z);nt&&(Be.name=nt.name,Be.onChange=Cr,Be.checked=X.value===nt.value,Be.disabled=(qe=Be.disabled)!==null&&qe!==void 0?qe:nt.disabled),Be.disabled=(st=Be.disabled)!==null&&st!==void 0?st:Ie;const Ge=Fe()(`${k}-wrapper`,{[`${k}-wrapper-checked`]:Be.checked,[`${k}-wrapper-disabled`]:Be.disabled,[`${k}-wrapper-rtl`]:Jt==="rtl",[`${k}-wrapper-in-form-item`]:Wr},We==null?void 0:We.className,kt,K,Se);return te(ie.createElement(J.Z,{component:"Radio",disabled:Be.disabled},ie.createElement("label",{className:Ge,style:Object.assign(Object.assign({},We==null?void 0:We.style),h),onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave},ie.createElement(a.Z,Object.assign({},Be,{className:Fe()(Be.className,!Z&&we.A),type:"radio",prefixCls:k,ref:xr})),y!==void 0?ie.createElement("span",null,y):null)))};var pe=ie.forwardRef(Le);const T=ie.forwardRef((X,he)=>{const{getPrefixCls:qe,direction:st}=ie.useContext(Y.E_),[nt,Rt]=(0,se.Z)(X.defaultValue,{value:X.value}),sr=$e=>{const tt=nt,dt=$e.target.value;"value"in X||Rt(dt);const{onChange:Ze}=X;Ze&&dt!==tt&&Ze($e)},{prefixCls:Jt,className:We,rootClassName:Er,options:xr,buttonStyle:Wr="outline",disabled:Cr,children:_e,size:kt,style:K,id:y,onMouseEnter:h,onMouseLeave:D,onFocus:Ae,onBlur:Z}=X,k=qe("radio",Jt),te=`${k}-group`,[Se,Be]=le(k);let Ie=_e;xr&&xr.length>0&&(Ie=xr.map($e=>typeof $e=="string"||typeof $e=="number"?ie.createElement(pe,{key:$e.toString(),prefixCls:k,disabled:Cr,value:$e,checked:nt===$e},$e):ie.createElement(pe,{key:`radio-group-value-options-${$e.value}`,prefixCls:k,disabled:$e.disabled||Cr,value:$e.value,checked:nt===$e.value,title:$e.title,style:$e.style},$e.label)));const Ge=(0,O.Z)(kt),mt=Fe()(te,`${te}-${Wr}`,{[`${te}-${Ge}`]:Ge,[`${te}-rtl`]:st==="rtl"},We,Er,Be);return Se(ie.createElement("div",Object.assign({},(0,Me.Z)(X,{aria:!0,data:!0}),{className:mt,style:K,onMouseEnter:h,onMouseLeave:D,onFocus:Ae,onBlur:Z,id:y,ref:he}),ie.createElement(n,{value:{onChange:sr,value:nt,disabled:X.disabled,name:X.name,optionType:X.optionType}},Ie)))});var Ee=ie.memo(T),oe=function(X,he){var qe={};for(var st in X)Object.prototype.hasOwnProperty.call(X,st)&&he.indexOf(st)<0&&(qe[st]=X[st]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,st=Object.getOwnPropertySymbols(X);nt<st.length;nt++)he.indexOf(st[nt])<0&&Object.prototype.propertyIsEnumerable.call(X,st[nt])&&(qe[st[nt]]=X[st[nt]]);return qe};const fe=(X,he)=>{const{getPrefixCls:qe}=ie.useContext(Y.E_),{prefixCls:st}=X,nt=oe(X,["prefixCls"]),Rt=qe("radio",st);return ie.createElement(p,{value:"button"},ie.createElement(pe,Object.assign({prefixCls:Rt},nt,{type:"radio",ref:he})))};var ye=ie.forwardRef(fe);const _=pe;_.Button=ye,_.Group=Ee,_.__ANT_RADIO=!0;var N=_},57809:function(yn,Wt,g){"use strict";var xe=g(92310),Fe=g.n(xe),se=g(77861),Me=g(2738),ie=g(59301),Y=g(53487),O=g(62892),I=g(19080),n=g(36355),o=g(1684),L=g(93891),p=g(19716),a=g(32441),d=g(33234),m=g(14154),S=g(58582),$=g(84443),F=g(66339),H=function(le,J){var we={};for(var Ce in le)Object.prototype.hasOwnProperty.call(le,Ce)&&J.indexOf(Ce)<0&&(we[Ce]=le[Ce]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Ce=Object.getOwnPropertySymbols(le);Le<Ce.length;Le++)J.indexOf(Ce[Le])<0&&Object.prototype.propertyIsEnumerable.call(le,Ce[Le])&&(we[Ce[Le]]=le[Ce[Le]]);return we};const V="SECRET_COMBOBOX_MODE_DO_NOT_USE",ee=(le,J)=>{var we,{prefixCls:Ce,bordered:Le=!0,className:ae,rootClassName:pe,getPopupContainer:T,popupClassName:Ee,dropdownClassName:oe,listHeight:fe=256,placement:ye,listItemHeight:_=24,size:N,disabled:X,notFoundContent:he,status:qe,builtinPlacements:st,dropdownMatchSelectWidth:nt,popupMatchSelectWidth:Rt,direction:sr,style:Jt,allowClear:We}=le,Er=H(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:xr,getPrefixCls:Wr,renderEmpty:Cr,direction:_e,virtual:kt,popupMatchSelectWidth:K,popupOverflow:y,select:h}=ie.useContext(n.E_),D=Wr("select",Ce),Ae=Wr(),Z=sr!=null?sr:_e,{compactSize:k,compactItemClassnames:te}=(0,d.ri)(D,Z),[Se,Be]=(0,m.Z)(D),Ie=ie.useMemo(()=>{const{mode:ft}=Er;if(ft!=="combobox")return ft===V?"combobox":ft},[Er.mode]),Ge=Ie==="multiple"||Ie==="tags",mt=(0,$.Z)(Er.suffixIcon,Er.showArrow),$e=(we=Rt!=null?Rt:nt)!==null&&we!==void 0?we:K,{status:tt,hasFeedback:dt,isFormItemInput:Ze,feedbackIcon:Ke}=ie.useContext(a.aM),Bt=(0,I.F)(tt,qe);let Vt;he!==void 0?Vt=he:Ie==="combobox"?Vt=null:Vt=(Cr==null?void 0:Cr("Select"))||ie.createElement(L.Z,{componentName:"Select"});const{suffixIcon:Ut,itemIcon:mr,removeIcon:br,clearIcon:re}=(0,F.Z)(Object.assign(Object.assign({},Er),{multiple:Ge,hasFeedback:dt,feedbackIcon:Ke,showSuffixIcon:mt,prefixCls:D,showArrow:Er.showArrow,componentName:"Select"})),ue=We===!0?{clearIcon:re}:We,rr=(0,Me.Z)(Er,["suffixIcon","itemIcon"]),Qe=Fe()(Ee||oe,{[`${D}-dropdown-${Z}`]:Z==="rtl"},pe,Be),ot=(0,p.Z)(ft=>{var ht;return(ht=N!=null?N:k)!==null&&ht!==void 0?ht:ft}),Jr=ie.useContext(o.Z),Tt=X!=null?X:Jr,Kt=Fe()({[`${D}-lg`]:ot==="large",[`${D}-sm`]:ot==="small",[`${D}-rtl`]:Z==="rtl",[`${D}-borderless`]:!Le,[`${D}-in-form-item`]:Ze},(0,I.Z)(D,Bt,dt),te,h==null?void 0:h.className,ae,pe,Be),qt=ie.useMemo(()=>ye!==void 0?ye:Z==="rtl"?"bottomRight":"bottomLeft",[ye,Z]),et=(0,S.Z)(st,y);return Se(ie.createElement(se.ZP,Object.assign({ref:J,virtual:kt,showSearch:h==null?void 0:h.showSearch},rr,{style:Object.assign(Object.assign({},h==null?void 0:h.style),Jt),dropdownMatchSelectWidth:$e,builtinPlacements:et,transitionName:(0,O.m)(Ae,"slide-up",Er.transitionName),listHeight:fe,listItemHeight:_,mode:Ie,prefixCls:D,placement:qt,direction:Z,suffixIcon:Ut,menuItemSelectedIcon:mr,removeIcon:br,allowClear:ue,notFoundContent:Vt,className:Kt,getPopupContainer:T||xr,dropdownClassName:Qe,disabled:Tt})))},B=ie.forwardRef(ee),G=(0,Y.Z)(B);B.SECRET_COMBOBOX_MODE_DO_NOT_USE=V,B.Option=se.Wx,B.OptGroup=se.Xo,B._InternalPanelDoNotUseOrYouWillBeFired=G,Wt.default=B},14154:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return B}});var xe=g(17313),Fe=g(74207),se=g(37613),Me=g(83116),ie=g(13826),Y=g(92899);const O=G=>{const{optionHeight:le,optionFontSize:J,optionLineHeight:we,optionPadding:Ce}=G;return{position:"relative",display:"block",minHeight:le,padding:Ce,color:G.colorText,fontWeight:"normal",fontSize:J,lineHeight:we,boxSizing:"border-box"}};var n=G=>{const{antCls:le,componentCls:J}=G,we=`${J}-item`,Ce=`&${le}-slide-up-enter${le}-slide-up-enter-active`,Le=`&${le}-slide-up-appear${le}-slide-up-appear-active`,ae=`&${le}-slide-up-leave${le}-slide-up-leave-active`,pe=`${J}-dropdown-placement-`;return[{[`${J}-dropdown`]:Object.assign(Object.assign({},(0,xe.Wf)(G)),{position:"absolute",top:-9999,zIndex:G.zIndexPopup,boxSizing:"border-box",padding:G.paddingXXS,overflow:"hidden",fontSize:G.fontSize,fontVariant:"initial",backgroundColor:G.colorBgElevated,borderRadius:G.borderRadiusLG,outline:"none",boxShadow:G.boxShadowSecondary,[`
|
|
|
${Ce}${pe}bottomLeft,
|
|
|
${Le}${pe}bottomLeft
|
|
|
`]:{animationName:ie.fJ},[`
|
|
|
${Ce}${pe}topLeft,
|
|
|
${Le}${pe}topLeft,
|
|
|
${Ce}${pe}topRight,
|
|
|
${Le}${pe}topRight
|
|
|
`]:{animationName:ie.Qt},[`${ae}${pe}bottomLeft`]:{animationName:ie.Uw},[`
|
|
|
${ae}${pe}topLeft,
|
|
|
${ae}${pe}topRight
|
|
|
`]:{animationName:ie.ly},"&-hidden":{display:"none"},[`${we}`]:Object.assign(Object.assign({},O(G)),{cursor:"pointer",transition:`background ${G.motionDurationSlow} ease`,borderRadius:G.borderRadiusSM,"&-group":{color:G.colorTextDescription,fontSize:G.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},xe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${we}-option-disabled)`]:{backgroundColor:G.optionActiveBg},[`&-selected:not(${we}-option-disabled)`]:{color:G.optionSelectedColor,fontWeight:G.optionSelectedFontWeight,backgroundColor:G.optionSelectedBg,[`${we}-option-state`]:{color:G.colorPrimary}},"&-disabled":{[`&${we}-option-selected`]:{backgroundColor:G.colorBgContainerDisabled},color:G.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:G.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ie.oN)(G,"slide-up"),(0,ie.oN)(G,"slide-down"),(0,Y.Fm)(G,"move-up"),(0,Y.Fm)(G,"move-down")]};const o=2,L=G=>{let{controlHeightSM:le,controlHeight:J,lineWidth:we}=G;const Ce=(J-le)/2-we,Le=Math.ceil(Ce/2);return[Ce,Le]};function p(G,le){const{componentCls:J,iconCls:we}=G,Ce=`${J}-selection-overflow`,Le=G.multipleSelectItemHeight,[ae]=L(G),pe=le?`${J}-${le}`:"";return{[`${J}-multiple${pe}`]:{fontSize:G.fontSize,[Ce]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${J}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ae-o}px ${o*2}px`,borderRadius:G.borderRadius,[`${J}-show-search&`]:{cursor:"text"},[`${J}-disabled&`]:{background:G.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${o}px 0`,lineHeight:`${Le}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${J}-show-arrow ${J}-selector,
|
|
|
&${J}-allow-clear ${J}-selector
|
|
|
`]:{paddingInlineEnd:G.fontSizeIcon+G.controlPaddingHorizontal},[`${J}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Le,marginTop:o,marginBottom:o,lineHeight:`${Le-G.lineWidth*2}px`,background:G.multipleItemBg,border:`${G.lineWidth}px ${G.lineType} ${G.multipleItemBorderColor}`,borderRadius:G.borderRadiusSM,cursor:"default",transition:`font-size ${G.motionDurationSlow}, line-height ${G.motionDurationSlow}, height ${G.motionDurationSlow}`,userSelect:"none",marginInlineEnd:o*2,paddingInlineStart:G.paddingXS,paddingInlineEnd:G.paddingXS/2,[`${J}-disabled&`]:{color:G.multipleItemColorDisabled,borderColor:G.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:G.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,xe.Ro)()),{display:"inline-flex",alignItems:"center",color:G.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${we}`]:{verticalAlign:"-0.2em"},"&:hover":{color:G.colorIconHover}})},[`${Ce}-item + ${Ce}-item`]:{[`${J}-selection-search`]:{marginInlineStart:0}},[`${J}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:G.inputPaddingHorizontalBase-ae,"\n &-input,\n &-mirror\n ":{height:Le,fontFamily:G.fontFamily,lineHeight:`${Le}px`,transition:`all ${G.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${J}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:G.inputPaddingHorizontalBase,insetInlineEnd:G.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${G.motionDurationSlow}`}}}}var d=G=>{const{componentCls:le}=G,J=(0,se.TS)(G,{controlHeight:G.controlHeightSM,multipleSelectItemHeight:G.controlHeightXS,borderRadius:G.borderRadiusSM,borderRadiusSM:G.borderRadiusXS}),we=(0,se.TS)(G,{fontSize:G.fontSizeLG,controlHeight:G.controlHeightLG,multipleSelectItemHeight:G.multipleItemHeightLG,borderRadius:G.borderRadiusLG,borderRadiusSM:G.borderRadius}),[,Ce]=L(G);return[p(G),p(J,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:G.controlPaddingHorizontalSM-G.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Ce}}},p(we,"lg")]};function m(G,le){const{componentCls:J,inputPaddingHorizontalBase:we,borderRadius:Ce}=G,Le=G.controlHeight-G.lineWidth*2,ae=Math.ceil(G.fontSize*1.25),pe=le?`${J}-${le}`:"";return{[`${J}-single${pe}`]:{fontSize:G.fontSize,[`${J}-selector`]:Object.assign(Object.assign({},(0,xe.Wf)(G)),{display:"flex",borderRadius:Ce,[`${J}-selection-search`]:{position:"absolute",top:0,insetInlineStart:we,insetInlineEnd:we,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${J}-selection-item,
|
|
|
${J}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Le}px`,transition:`all ${G.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Le}px`}},[`${J}-selection-item`]:{position:"relative",userSelect:"none"},[`${J}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${J}-selection-item:after`,`${J}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${J}-show-arrow ${J}-selection-item,
|
|
|
&${J}-show-arrow ${J}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ae},[`&${J}-open ${J}-selection-item`]:{color:G.colorTextPlaceholder},[`&:not(${J}-customize-input)`]:{[`${J}-selector`]:{width:"100%",height:G.controlHeight,padding:`0 ${we}px`,[`${J}-selection-search-input`]:{height:Le},"&:after":{lineHeight:`${Le}px`}}},[`&${J}-customize-input`]:{[`${J}-selector`]:{"&:after":{display:"none"},[`${J}-selection-search`]:{position:"static",width:"100%"},[`${J}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${we}px`,"&:after":{display:"none"}}}}}}}function S(G){const{componentCls:le}=G,J=G.controlPaddingHorizontalSM-G.lineWidth;return[m(G),m((0,se.TS)(G,{controlHeight:G.controlHeightSM,borderRadius:G.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selection-search`]:{insetInlineStart:J,insetInlineEnd:J},[`${le}-selector`]:{padding:`0 ${J}px`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:J+G.fontSize*1.5},[`
|
|
|
&${le}-show-arrow ${le}-selection-item,
|
|
|
&${le}-show-arrow ${le}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:G.fontSize*1.5}}}},m((0,se.TS)(G,{controlHeight:G.singleItemHeightLG,fontSize:G.fontSizeLG,borderRadius:G.borderRadiusLG}),"lg")]}const $=G=>{const{componentCls:le,selectorBg:J}=G;return{position:"relative",backgroundColor:J,border:`${G.lineWidth}px ${G.lineType} ${G.colorBorder}`,transition:`all ${G.motionDurationMid} ${G.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:G.colorTextDisabled,background:G.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:G.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},F=function(G,le){let J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:we,borderHoverColor:Ce,outlineColor:Le,antCls:ae}=le,pe=J?{[`${we}-selector`]:{borderColor:Ce}}:{};return{[G]:{[`&:not(${we}-disabled):not(${we}-customize-input):not(${ae}-pagination-size-changer)`]:Object.assign(Object.assign({},pe),{[`${we}-focused& ${we}-selector`]:{borderColor:Ce,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${Le}`,outline:0},[`&:hover ${we}-selector`]:{borderColor:Ce}})}}},H=G=>{const{componentCls:le}=G;return{[`${le}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},V=G=>{const{componentCls:le,inputPaddingHorizontalBase:J,iconCls:we}=G;return{[le]:Object.assign(Object.assign({},(0,xe.Wf)(G)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},$(G)),H(G)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},xe.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},xe.vS),{flex:1,color:G.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,xe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:J,height:G.fontSizeIcon,marginTop:-G.fontSizeIcon/2,color:G.colorTextQuaternary,fontSize:G.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[we]:{verticalAlign:"top",transition:`transform ${G.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${le}-suffix)`]:{pointerEvents:"auto"}},[`${le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:J,zIndex:1,display:"inline-block",width:G.fontSizeIcon,height:G.fontSizeIcon,marginTop:-G.fontSizeIcon/2,color:G.colorTextQuaternary,fontSize:G.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:G.clearBg,cursor:"pointer",opacity:0,transition:`color ${G.motionDurationMid} ease, opacity ${G.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:G.colorTextTertiary}},"&:hover":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:J+G.fontSize+G.paddingXS}}}},ee=G=>{const{componentCls:le}=G;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},V(G),S(G),d(G),n(G),{[`${le}-rtl`]:{direction:"rtl"}},F(le,(0,se.TS)(G,{borderHoverColor:G.colorPrimaryHover,outlineColor:G.controlOutline})),F(`${le}-status-error`,(0,se.TS)(G,{borderHoverColor:G.colorErrorHover,outlineColor:G.colorErrorOutline}),!0),F(`${le}-status-warning`,(0,se.TS)(G,{borderHoverColor:G.colorWarningHover,outlineColor:G.colorWarningOutline}),!0),(0,Fe.c)(G,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var B=(0,Me.Z)("Select",(G,le)=>{let{rootPrefixCls:J}=le;const we=(0,se.TS)(G,{rootPrefixCls:J,inputPaddingHorizontalBase:G.paddingSM-1,multipleSelectItemHeight:G.multipleItemHeight});return[ee(we)]},G=>{const{fontSize:le,lineHeight:J,controlHeight:we,controlPaddingHorizontal:Ce,zIndexPopupBase:Le,colorText:ae,fontWeightStrong:pe,controlItemBgActive:T,controlItemBgHover:Ee,colorBgContainer:oe,colorFillSecondary:fe,controlHeightLG:ye,controlHeightSM:_,colorBgContainerDisabled:N,colorTextDisabled:X}=G;return{zIndexPopup:Le+50,optionSelectedColor:ae,optionSelectedFontWeight:pe,optionSelectedBg:T,optionActiveBg:Ee,optionPadding:`${(we-le*J)/2}px ${Ce}px`,optionFontSize:le,optionLineHeight:J,optionHeight:we,selectorBg:oe,clearBg:oe,singleItemHeightLG:ye,multipleItemBg:fe,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightLG:we,multipleSelectorBgDisabled:N,multipleItemColorDisabled:X,multipleItemBorderColorDisabled:"transparent"}})},58582:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});const xe=se=>{const ie={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:se==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ie),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ie),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ie),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ie),{points:["br","tr"],offset:[0,-4]})}};function Fe(se,Me){return se||xe(Me)}},84443:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return xe}});function xe(Fe,se){return se!==void 0?se:Fe!==null}},66339:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});var xe=g(40001),Fe=g(19248),se=g(99267),Me=g(84105),ie=g(58617),Y=g(47472),O=g(59301);function I(n){let{suffixIcon:o,clearIcon:L,menuItemSelectedIcon:p,removeIcon:a,loading:d,multiple:m,hasFeedback:S,prefixCls:$,showSuffixIcon:F,feedbackIcon:H,showArrow:V,componentName:ee}=n;const B=L!=null?L:O.createElement(Fe.Z,null),G=Ce=>o===null&&!S&&!V?null:O.createElement(O.Fragment,null,F!==!1&&Ce,S&&H);let le=null;if(o!==void 0)le=G(o);else if(d)le=G(O.createElement(ie.Z,{spin:!0}));else{const Ce=`${$}-suffix`;le=Le=>{let{open:ae,showSearch:pe}=Le;return G(ae&&pe?O.createElement(Y.Z,{className:Ce}):O.createElement(Me.Z,{className:Ce}))}}let J=null;p!==void 0?J=p:m?J=O.createElement(xe.Z,null):J=null;let we=null;return a!==void 0?we=a:we=O.createElement(se.Z,null),{clearIcon:B,suffixIcon:le,itemIcon:J,removeIcon:we}}},61621:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return y}});var xe=g(92310),Fe=g.n(xe),se=g(59301),Me=g(36355),ie=g(2738),O=h=>{const{prefixCls:D,className:Ae,style:Z,size:k,shape:te}=h,Se=Fe()({[`${D}-lg`]:k==="large",[`${D}-sm`]:k==="small"}),Be=Fe()({[`${D}-circle`]:te==="circle",[`${D}-square`]:te==="square",[`${D}-round`]:te==="round"}),Ie=se.useMemo(()=>typeof k=="number"?{width:k,height:k,lineHeight:`${k}px`}:{},[k]);return se.createElement("span",{className:Fe()(D,Se,Be,Ae),style:Object.assign(Object.assign({},Ie),Z)})},I=g(93083),n=g(83116),o=g(37613);const L=new I.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),p=h=>({height:h,lineHeight:`${h}px`}),a=h=>Object.assign({width:h},p(h)),d=h=>({background:h.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:L,animationDuration:h.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),m=h=>Object.assign({width:h*5,minWidth:h*5},p(h)),S=h=>{const{skeletonAvatarCls:D,gradientFromColor:Ae,controlHeight:Z,controlHeightLG:k,controlHeightSM:te}=h;return{[`${D}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ae},a(Z)),[`${D}${D}-circle`]:{borderRadius:"50%"},[`${D}${D}-lg`]:Object.assign({},a(k)),[`${D}${D}-sm`]:Object.assign({},a(te))}},$=h=>{const{controlHeight:D,borderRadiusSM:Ae,skeletonInputCls:Z,controlHeightLG:k,controlHeightSM:te,gradientFromColor:Se}=h;return{[`${Z}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Se,borderRadius:Ae},m(D)),[`${Z}-lg`]:Object.assign({},m(k)),[`${Z}-sm`]:Object.assign({},m(te))}},F=h=>Object.assign({width:h},p(h)),H=h=>{const{skeletonImageCls:D,imageSizeBase:Ae,gradientFromColor:Z,borderRadiusSM:k}=h;return{[`${D}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Z,borderRadius:k},F(Ae*2)),{[`${D}-path`]:{fill:"#bfbfbf"},[`${D}-svg`]:Object.assign(Object.assign({},F(Ae)),{maxWidth:Ae*4,maxHeight:Ae*4}),[`${D}-svg${D}-svg-circle`]:{borderRadius:"50%"}}),[`${D}${D}-circle`]:{borderRadius:"50%"}}},V=(h,D,Ae)=>{const{skeletonButtonCls:Z}=h;return{[`${Ae}${Z}-circle`]:{width:D,minWidth:D,borderRadius:"50%"},[`${Ae}${Z}-round`]:{borderRadius:D}}},ee=h=>Object.assign({width:h*2,minWidth:h*2},p(h)),B=h=>{const{borderRadiusSM:D,skeletonButtonCls:Ae,controlHeight:Z,controlHeightLG:k,controlHeightSM:te,gradientFromColor:Se}=h;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Se,borderRadius:D,width:Z*2,minWidth:Z*2},ee(Z))},V(h,Z,Ae)),{[`${Ae}-lg`]:Object.assign({},ee(k))}),V(h,k,`${Ae}-lg`)),{[`${Ae}-sm`]:Object.assign({},ee(te))}),V(h,te,`${Ae}-sm`))},G=h=>{const{componentCls:D,skeletonAvatarCls:Ae,skeletonTitleCls:Z,skeletonParagraphCls:k,skeletonButtonCls:te,skeletonInputCls:Se,skeletonImageCls:Be,controlHeight:Ie,controlHeightLG:Ge,controlHeightSM:mt,gradientFromColor:$e,padding:tt,marginSM:dt,borderRadius:Ze,titleHeight:Ke,blockRadius:Bt,paragraphLiHeight:Vt,controlHeightXS:Ut,paragraphMarginTop:mr}=h;return{[`${D}`]:{display:"table",width:"100%",[`${D}-header`]:{display:"table-cell",paddingInlineEnd:tt,verticalAlign:"top",[`${Ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$e},a(Ie)),[`${Ae}-circle`]:{borderRadius:"50%"},[`${Ae}-lg`]:Object.assign({},a(Ge)),[`${Ae}-sm`]:Object.assign({},a(mt))},[`${D}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Z}`]:{width:"100%",height:Ke,background:$e,borderRadius:Bt,[`+ ${k}`]:{marginBlockStart:mt}},[`${k}`]:{padding:0,"> li":{width:"100%",height:Vt,listStyle:"none",background:$e,borderRadius:Bt,"+ li":{marginBlockStart:Ut}}},[`${k}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${D}-content`]:{[`${Z}, ${k} > li`]:{borderRadius:Ze}}},[`${D}-with-avatar ${D}-content`]:{[`${Z}`]:{marginBlockStart:dt,[`+ ${k}`]:{marginBlockStart:mr}}},[`${D}${D}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},B(h)),S(h)),$(h)),H(h)),[`${D}${D}-block`]:{width:"100%",[`${te}`]:{width:"100%"},[`${Se}`]:{width:"100%"}},[`${D}${D}-active`]:{[`
|
|
|
${Z},
|
|
|
${k} > li,
|
|
|
${Ae},
|
|
|
${te},
|
|
|
${Se},
|
|
|
${Be}
|
|
|
`]:Object.assign({},d(h))}}};var le=(0,n.Z)("Skeleton",h=>{const{componentCls:D}=h,Ae=(0,o.TS)(h,{skeletonAvatarCls:`${D}-avatar`,skeletonTitleCls:`${D}-title`,skeletonParagraphCls:`${D}-paragraph`,skeletonButtonCls:`${D}-button`,skeletonInputCls:`${D}-input`,skeletonImageCls:`${D}-image`,imageSizeBase:h.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${h.gradientFromColor} 25%, ${h.gradientToColor} 37%, ${h.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[G(Ae)]},h=>{const{colorFillContent:D,colorFill:Ae}=h,Z=D,k=Ae;return{color:Z,colorGradientEnd:k,gradientFromColor:Z,gradientToColor:k,titleHeight:h.controlHeight/2,blockRadius:h.borderRadiusSM,paragraphMarginTop:h.marginLG+h.marginXXS,paragraphLiHeight:h.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),we=h=>{const{prefixCls:D,className:Ae,rootClassName:Z,active:k,shape:te="circle",size:Se="default"}=h,{getPrefixCls:Be}=se.useContext(Me.E_),Ie=Be("skeleton",D),[Ge,mt]=le(Ie),$e=(0,ie.Z)(h,["prefixCls","className"]),tt=Fe()(Ie,`${Ie}-element`,{[`${Ie}-active`]:k},Ae,Z,mt);return Ge(se.createElement("div",{className:tt},se.createElement(O,Object.assign({prefixCls:`${Ie}-avatar`,shape:te,size:Se},$e))))},Le=h=>{const{prefixCls:D,className:Ae,rootClassName:Z,active:k,block:te=!1,size:Se="default"}=h,{getPrefixCls:Be}=se.useContext(Me.E_),Ie=Be("skeleton",D),[Ge,mt]=le(Ie),$e=(0,ie.Z)(h,["prefixCls"]),tt=Fe()(Ie,`${Ie}-element`,{[`${Ie}-active`]:k,[`${Ie}-block`]:te},Ae,Z,mt);return Ge(se.createElement("div",{className:tt},se.createElement(O,Object.assign({prefixCls:`${Ie}-button`,size:Se},$e))))};const ae="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var T=h=>{const{prefixCls:D,className:Ae,rootClassName:Z,style:k,active:te}=h,{getPrefixCls:Se}=se.useContext(Me.E_),Be=Se("skeleton",D),[Ie,Ge]=le(Be),mt=Fe()(Be,`${Be}-element`,{[`${Be}-active`]:te},Ae,Z,Ge);return Ie(se.createElement("div",{className:mt},se.createElement("div",{className:Fe()(`${Be}-image`,Ae),style:k},se.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Be}-image-svg`},se.createElement("path",{d:ae,className:`${Be}-image-path`})))))},oe=h=>{const{prefixCls:D,className:Ae,rootClassName:Z,active:k,block:te,size:Se="default"}=h,{getPrefixCls:Be}=se.useContext(Me.E_),Ie=Be("skeleton",D),[Ge,mt]=le(Ie),$e=(0,ie.Z)(h,["prefixCls"]),tt=Fe()(Ie,`${Ie}-element`,{[`${Ie}-active`]:k,[`${Ie}-block`]:te},Ae,Z,mt);return Ge(se.createElement("div",{className:tt},se.createElement(O,Object.assign({prefixCls:`${Ie}-input`,size:Se},$e))))},fe=g(96663),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},_=ye,N=g(7657),X=function(D,Ae){return se.createElement(N.Z,(0,fe.Z)({},D,{ref:Ae,icon:_}))},he=se.forwardRef(X),qe=he,nt=h=>{const{prefixCls:D,className:Ae,rootClassName:Z,style:k,active:te,children:Se}=h,{getPrefixCls:Be}=se.useContext(Me.E_),Ie=Be("skeleton",D),[Ge,mt]=le(Ie),$e=Fe()(Ie,`${Ie}-element`,{[`${Ie}-active`]:te},mt,Ae,Z),tt=Se!=null?Se:se.createElement(qe,null);return Ge(se.createElement("div",{className:$e},se.createElement("div",{className:Fe()(`${Ie}-image`,Ae),style:k},tt)))},Rt=g(19127),Jt=h=>{const D=Be=>{const{width:Ie,rows:Ge=2}=h;if(Array.isArray(Ie))return Ie[Be];if(Ge-1===Be)return Ie},{prefixCls:Ae,className:Z,style:k,rows:te}=h,Se=(0,Rt.Z)(Array(te)).map((Be,Ie)=>se.createElement("li",{key:Ie,style:{width:D(Ie)}}));return se.createElement("ul",{className:Fe()(Ae,Z),style:k},Se)},Er=h=>{let{prefixCls:D,className:Ae,width:Z,style:k}=h;return se.createElement("h3",{className:Fe()(D,Ae),style:Object.assign({width:Z},k)})};function xr(h){return h&&typeof h=="object"?h:{}}function Wr(h,D){return h&&!D?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Cr(h,D){return!h&&D?{width:"38%"}:h&&D?{width:"50%"}:{}}function _e(h,D){const Ae={};return(!h||!D)&&(Ae.width="61%"),!h&&D?Ae.rows=3:Ae.rows=2,Ae}const kt=h=>{const{prefixCls:D,loading:Ae,className:Z,rootClassName:k,style:te,children:Se,avatar:Be=!1,title:Ie=!0,paragraph:Ge=!0,active:mt,round:$e}=h,{getPrefixCls:tt,direction:dt,skeleton:Ze}=se.useContext(Me.E_),Ke=tt("skeleton",D),[Bt,Vt]=le(Ke);if(Ae||!("loading"in h)){const Ut=!!Be,mr=!!Ie,br=!!Ge;let re;if(Ut){const Qe=Object.assign(Object.assign({prefixCls:`${Ke}-avatar`},Wr(mr,br)),xr(Be));re=se.createElement("div",{className:`${Ke}-header`},se.createElement(O,Object.assign({},Qe)))}let ue;if(mr||br){let Qe;if(mr){const Jr=Object.assign(Object.assign({prefixCls:`${Ke}-title`},Cr(Ut,br)),xr(Ie));Qe=se.createElement(Er,Object.assign({},Jr))}let ot;if(br){const Jr=Object.assign(Object.assign({prefixCls:`${Ke}-paragraph`},_e(Ut,mr)),xr(Ge));ot=se.createElement(Jt,Object.assign({},Jr))}ue=se.createElement("div",{className:`${Ke}-content`},Qe,ot)}const rr=Fe()(Ke,{[`${Ke}-with-avatar`]:Ut,[`${Ke}-active`]:mt,[`${Ke}-rtl`]:dt==="rtl",[`${Ke}-round`]:$e},Ze==null?void 0:Ze.className,Z,k,Vt);return Bt(se.createElement("div",{className:rr,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),te)},re,ue))}return typeof Se!="undefined"?Se:null};kt.Button=Le,kt.Avatar=we,kt.Input=oe,kt.Image=T,kt.Node=nt;var K=kt,y=K},81327:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return $}});var xe=g(59301),Fe=g(92310),se=g.n(Fe),Me=g(11592),ie=g(36355),Y=g(33234);const O=xe.createContext({latestIndex:0}),I=O.Provider;var o=F=>{let{className:H,index:V,children:ee,split:B,style:G}=F;const{latestIndex:le}=xe.useContext(O);return ee==null?null:xe.createElement(xe.Fragment,null,xe.createElement("div",{className:H,style:G},ee),V<le&&B&&xe.createElement("span",{className:`${H}-split`},B))},L=g(2856);function p(F){return["small","middle","large"].includes(F)}function a(F){return F?typeof F=="number"&&!Number.isNaN(F):!1}var d=function(F,H){var V={};for(var ee in F)Object.prototype.hasOwnProperty.call(F,ee)&&H.indexOf(ee)<0&&(V[ee]=F[ee]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,ee=Object.getOwnPropertySymbols(F);B<ee.length;B++)H.indexOf(ee[B])<0&&Object.prototype.propertyIsEnumerable.call(F,ee[B])&&(V[ee[B]]=F[ee[B]]);return V};const S=xe.forwardRef((F,H)=>{var V,ee;const{getPrefixCls:B,space:G,direction:le}=xe.useContext(ie.E_),{size:J=(G==null?void 0:G.size)||"small",align:we,className:Ce,rootClassName:Le,children:ae,direction:pe="horizontal",prefixCls:T,split:Ee,style:oe,wrap:fe=!1,classNames:ye,styles:_}=F,N=d(F,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[X,he]=Array.isArray(J)?J:[J,J],qe=p(he),st=p(X),nt=a(he),Rt=a(X),sr=(0,Me.Z)(ae,{keepEmpty:!0}),Jt=we===void 0&&pe==="horizontal"?"center":we,We=B("space",T),[Er,xr]=(0,L.Z)(We),Wr=se()(We,G==null?void 0:G.className,xr,`${We}-${pe}`,{[`${We}-rtl`]:le==="rtl",[`${We}-align-${Jt}`]:Jt,[`${We}-gap-row-${he}`]:qe,[`${We}-gap-col-${X}`]:st},Ce,Le),Cr=se()(`${We}-item`,(V=ye==null?void 0:ye.item)!==null&&V!==void 0?V:(ee=G==null?void 0:G.classNames)===null||ee===void 0?void 0:ee.item);let _e=0;const kt=sr.map((h,D)=>{var Ae,Z;h!=null&&(_e=D);const k=h&&h.key||`${Cr}-${D}`;return xe.createElement(o,{className:Cr,key:k,index:D,split:Ee,style:(Ae=_==null?void 0:_.item)!==null&&Ae!==void 0?Ae:(Z=G==null?void 0:G.styles)===null||Z===void 0?void 0:Z.item},h)}),K=xe.useMemo(()=>({latestIndex:_e}),[_e]);if(sr.length===0)return null;const y={};return fe&&(y.flexWrap="wrap"),!st&&Rt&&(y.columnGap=X),!qe&&nt&&(y.rowGap=he),Er(xe.createElement("div",Object.assign({ref:H,className:Wr,style:Object.assign(Object.assign(Object.assign({},y),G==null?void 0:G.style),oe)},N),xe.createElement(I,{value:K},kt)))});S.Compact=Y.ZP;var $=S},8378:function(yn,Wt){"use strict";const g=xe=>({[xe.componentCls]:{[`${xe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${xe.motionDurationMid} ${xe.motionEaseInOut},
|
|
|
opacity ${xe.motionDurationMid} ${xe.motionEaseInOut} !important`}},[`${xe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${xe.motionDurationMid} ${xe.motionEaseInOut},
|
|
|
opacity ${xe.motionDurationMid} ${xe.motionEaseInOut} !important`}}});Wt.Z=g},92899:function(yn,Wt,g){"use strict";g.d(Wt,{Fm:function(){return p}});var xe=g(93083),Fe=g(95406);const se=new xe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Me=new xe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ie=new xe.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y=new xe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),O=new xe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),I=new xe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),n=new xe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),o=new xe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),L={"move-up":{inKeyframes:n,outKeyframes:o},"move-down":{inKeyframes:se,outKeyframes:Me},"move-left":{inKeyframes:ie,outKeyframes:Y},"move-right":{inKeyframes:O,outKeyframes:I}},p=(a,d)=>{const{antCls:m}=a,S=`${m}-${d}`,{inKeyframes:$,outKeyframes:F}=L[d];return[(0,Fe.R)(S,$,F,a.motionDurationMid),{[`
|
|
|
${S}-enter,
|
|
|
${S}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:a.motionEaseOutCirc},[`${S}-leave`]:{animationTimingFunction:a.motionEaseInOutCirc}}]}},13826:function(yn,Wt,g){"use strict";g.d(Wt,{Qt:function(){return ie},Uw:function(){return Me},fJ:function(){return se},ly:function(){return Y},oN:function(){return p}});var xe=g(93083),Fe=g(95406);const se=new xe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Me=new xe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ie=new xe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Y=new xe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),O=new xe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),I=new xe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),n=new xe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),o=new xe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),L={"slide-up":{inKeyframes:se,outKeyframes:Me},"slide-down":{inKeyframes:ie,outKeyframes:Y},"slide-left":{inKeyframes:O,outKeyframes:I},"slide-right":{inKeyframes:n,outKeyframes:o}},p=(a,d)=>{const{antCls:m}=a,S=`${m}-${d}`,{inKeyframes:$,outKeyframes:F}=L[d];return[(0,Fe.R)(S,$,F,a.motionDurationMid),{[`
|
|
|
${S}-enter,
|
|
|
${S}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:a.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${S}-leave`]:{animationTimingFunction:a.motionEaseInQuint}}]}},15969:function(yn,Wt,g){"use strict";g.d(Wt,{N:function(){return xe}});const xe=Fe=>({color:Fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Fe.motionDurationSlow}`,"&:focus, &:hover":{color:Fe.colorLinkHover},"&:active":{color:Fe.colorLinkActive}})},19447:function(yn,Wt,g){"use strict";g.d(Wt,{ZP:function(){return ie},fS:function(){return se},qN:function(){return Fe}});var xe=g(47585);const Fe=8;function se(Y){const O=Fe,{contentRadius:I,limitVerticalRadius:n}=Y,o=I>12?I+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:n?O:o}}function Me(Y,O){return Y?O:{}}function ie(Y,O){const{componentCls:I,sizePopupArrow:n,borderRadiusXS:o,borderRadiusOuter:L,boxShadowPopoverArrow:p}=Y,{colorBg:a,contentRadius:d=Y.borderRadiusLG,limitVerticalRadius:m,arrowDistance:S=0,arrowPlacement:$={left:!0,right:!0,top:!0,bottom:!0}}=O,{dropdownArrowOffsetVertical:F,dropdownArrowOffset:H}=se({contentRadius:d,limitVerticalRadius:m});return{[I]:Object.assign(Object.assign(Object.assign(Object.assign({[`${I}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,xe.r)(n,o,L,a,p)),{"&:before":{background:a}})]},Me(!!$.top,{[[`&-placement-top ${I}-arrow`,`&-placement-topLeft ${I}-arrow`,`&-placement-topRight ${I}-arrow`].join(",")]:{bottom:S,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${I}-arrow`]:{left:{_skip_check_:!0,value:H}},[`&-placement-topRight ${I}-arrow`]:{right:{_skip_check_:!0,value:H}}})),Me(!!$.bottom,{[[`&-placement-bottom ${I}-arrow`,`&-placement-bottomLeft ${I}-arrow`,`&-placement-bottomRight ${I}-arrow`].join(",")]:{top:S,transform:"translateY(-100%)"},[`&-placement-bottom ${I}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${I}-arrow`]:{left:{_skip_check_:!0,value:H}},[`&-placement-bottomRight ${I}-arrow`]:{right:{_skip_check_:!0,value:H}}})),Me(!!$.left,{[[`&-placement-left ${I}-arrow`,`&-placement-leftTop ${I}-arrow`,`&-placement-leftBottom ${I}-arrow`].join(",")]:{right:{_skip_check_:!0,value:S},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${I}-arrow`]:{top:F},[`&-placement-leftBottom ${I}-arrow`]:{bottom:F}})),Me(!!$.right,{[[`&-placement-right ${I}-arrow`,`&-placement-rightTop ${I}-arrow`,`&-placement-rightBottom ${I}-arrow`].join(",")]:{left:{_skip_check_:!0,value:S},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${I}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${I}-arrow`]:{top:F},[`&-placement-rightBottom ${I}-arrow`]:{bottom:F}}))}}},47585:function(yn,Wt,g){"use strict";g.d(Wt,{r:function(){return xe}});const xe=(Fe,se,Me,ie,Y)=>{const O=Fe/2,I=0,n=O,o=Me*1/Math.sqrt(2),L=O-Me*(1-1/Math.sqrt(2)),p=O-se*(1/Math.sqrt(2)),a=Me*(Math.sqrt(2)-1)+se*(1/Math.sqrt(2)),d=2*O-p,m=a,S=2*O-o,$=L,F=2*O-I,H=n,V=O*Math.sqrt(2)+Me*(Math.sqrt(2)-2),ee=Me*(Math.sqrt(2)-1);return{pointerEvents:"none",width:Fe,height:Fe,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:Fe,height:Fe/2,background:ie,clipPath:{_multi_value_:!0,value:[`polygon(${ee}px 100%, 50% ${ee}px, ${2*O-ee}px 100%, ${ee}px 100%)`,`path('M ${I} ${n} A ${Me} ${Me} 0 0 0 ${o} ${L} L ${p} ${a} A ${se} ${se} 0 0 1 ${d} ${m} L ${S} ${$} A ${Me} ${Me} 0 0 0 ${F} ${H} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:V,height:V,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${se}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:Y,zIndex:0,background:"transparent"}}}},1710:function(yn,Wt,g){"use strict";g.d(Wt,{default:function(){return Nr}});var xe={},Fe="rc-table-internal-hook",se=g(72071),Me=g(6089),ie=g(34280),Y=g(13697),O=g(59301),I=g(4676);function n(ve){var Pe=O.createContext(void 0),Xe=function(ut){var xt=ut.value,Qt=ut.children,lr=O.useRef(xt);lr.current=xt;var He=O.useState(function(){return{getValue:function(){return lr.current},listeners:new Set}}),At=(0,se.Z)(He,1),Te=At[0];return(0,ie.Z)(function(){(0,I.unstable_batchedUpdates)(function(){Te.listeners.forEach(function(Ft){Ft(xt)})})},[xt]),O.createElement(Pe.Provider,{value:Te},Qt)};return{Context:Pe,Provider:Xe,defaultValue:ve}}function o(ve,Pe){var Xe=(0,Me.Z)(typeof Pe=="function"?Pe:function(Ft){if(Pe===void 0)return Ft;if(!Array.isArray(Pe))return Ft[Pe];var er={};return Pe.forEach(function(or){er[or]=Ft[or]}),er}),lt=O.useContext(ve==null?void 0:ve.Context),ut=lt||{},xt=ut.listeners,Qt=ut.getValue,lr=O.useRef();lr.current=Xe(lt?Qt():ve==null?void 0:ve.defaultValue);var He=O.useState({}),At=(0,se.Z)(He,2),Te=At[1];return(0,ie.Z)(function(){if(!lt)return;function Ft(er){var or=Xe(er);(0,Y.Z)(lr.current,or,!0)||Te({})}return xt.add(Ft),function(){xt.delete(Ft)}},[lt]),lr.current}var L=g(96663),p=g(8654);function a(){var ve=O.createContext(null);function Pe(){return O.useContext(ve)}function Xe(ut,xt){var Qt=(0,p.Yr)(ut),lr=function(At,Te){var Ft=Qt?{ref:Te}:{},er=O.useRef(0),or=O.useRef(At),ur=Pe();return ur!==null?O.createElement(ut,(0,L.Z)({},At,Ft)):((!xt||xt(or.current,At))&&(er.current+=1),or.current=At,O.createElement(ve.Provider,{value:er.current},O.createElement(ut,(0,L.Z)({},At,Ft))))};return Qt?O.forwardRef(lr):lr}function lt(ut,xt){var Qt=(0,p.Yr)(ut),lr=function(At,Te){var Ft=Qt?{ref:Te}:{};return Pe(),O.createElement(ut,(0,L.Z)({},At,Ft))};return Qt?O.memo(O.forwardRef(lr),xt):O.memo(lr,xt)}return{makeImmutable:Xe,responseImmutable:lt,useImmutableMark:Pe}}var d=a(),m=d.makeImmutable,S=d.responseImmutable,$=d.useImmutableMark,F=a(),H=F.makeImmutable,V=F.responseImmutable,ee=F.useImmutableMark,B=n(),G=B;function le(ve,Pe){var Xe=O.useRef(0);Xe.current+=1;var lt=O.useRef(ve),ut=[];Object.keys(ve||{}).map(function(Qt){var lr;(ve==null?void 0:ve[Qt])!==((lr=lt.current)===null||lr===void 0?void 0:lr[Qt])&&ut.push(Qt)}),lt.current=ve;var xt=O.useRef([]);return ut.length&&(xt.current=ut),O.useDebugValue(Xe.current),O.useDebugValue(xt.current.join(", ")),Pe&&console.log("".concat(Pe,":"),Xe.current,xt.current),Xe.current}var J=null,we=O.memo(function(){var ve=le();return O.createElement("h1",null,"Render Times: ",ve)});we.displayName="RenderBlock";var Ce=g(20135),Le=g(44127),ae=g(90493),pe=g(92310),T=g.n(pe),Ee=g(80547),oe=g(97938),fe=g(48736),ye=O.createContext({renderWithProps:!1}),_=ye,N="RC_TABLE_KEY";function X(ve){return ve==null?[]:Array.isArray(ve)?ve:[ve]}function he(ve){var Pe=[],Xe={};return ve.forEach(function(lt){for(var ut=lt||{},xt=ut.key,Qt=ut.dataIndex,lr=xt||X(Qt).join("-")||N;Xe[lr];)lr="".concat(lr,"_next");Xe[lr]=!0,Pe.push(lr)}),Pe}function qe(ve){return ve!=null}function st(ve){return ve&&(0,Ce.Z)(ve)==="object"&&!Array.isArray(ve)&&!O.isValidElement(ve)}function nt(ve,Pe,Xe,lt,ut,xt){var Qt=O.useContext(_),lr=ee(),He=(0,Ee.Z)(function(){if(qe(lt))return[lt];var At=Pe==null||Pe===""?[]:Array.isArray(Pe)?Pe:[Pe],Te=(0,oe.Z)(ve,At),Ft=Te,er=void 0;if(ut){var or=ut(Te,ve,Xe);st(or)?(Ft=or.children,er=or.props,Qt.renderWithProps=!0):Ft=or}return[Ft,er]},[lr,ve,lt,Pe,ut,Xe],function(At,Te){if(xt){var Ft=(0,se.Z)(At,2),er=Ft[1],or=(0,se.Z)(Te,2),ur=or[1];return xt(ur,er)}return Qt.renderWithProps?!0:!(0,Y.Z)(At,Te,!0)});return He}function Rt(ve,Pe,Xe,lt){var ut=ve+Pe-1;return ve<=lt&&ut>=Xe}function sr(ve,Pe){return o(G,function(Xe){var lt=Rt(ve,Pe||1,Xe.hoverStartRow,Xe.hoverEndRow);return[lt,Xe.onHover]})}var Jt=function(Pe){var Xe=Pe.ellipsis,lt=Pe.rowType,ut=Pe.children,xt,Qt=Xe===!0?{showTitle:!0}:Xe;return Qt&&(Qt.showTitle||lt==="header")&&(typeof ut=="string"||typeof ut=="number"?xt=ut.toString():O.isValidElement(ut)&&typeof ut.props.children=="string"&&(xt=ut.props.children)),xt};function We(ve){var Pe,Xe,lt,ut,xt,Qt,lr,He,At=ve.component,Te=ve.children,Ft=ve.ellipsis,er=ve.scope,or=ve.prefixCls,ur=ve.className,St=ve.align,Gr=ve.record,Zr=ve.render,sn=ve.dataIndex,An=ve.renderIndex,ni=ve.shouldCellUpdate,zr=ve.index,Yt=ve.rowType,wi=ve.colSpan,fi=ve.rowSpan,tn=ve.fixLeft,wn=ve.fixRight,pn=ve.firstFixLeft,rn=ve.lastFixLeft,Qn=ve.firstFixRight,vi=ve.lastFixRight,Mi=ve.appendNode,je=ve.additionalProps,A=je===void 0?{}:je,w=ve.isSticky,E="".concat(or,"-cell"),z=o(G,["supportSticky","allColumnsFixedLeft"]),be=z.supportSticky,ze=z.allColumnsFixedLeft,pt=nt(Gr,sn,An,Te,Zr,ni),It=(0,se.Z)(pt,2),$t=It[0],fr=It[1],Dr={},Hr=typeof tn=="number"&&be,Hn=typeof wn=="number"&&be;Hr&&(Dr.position="sticky",Dr.left=tn),Hn&&(Dr.position="sticky",Dr.right=wn);var Ur=(Pe=(Xe=(lt=fr==null?void 0:fr.colSpan)!==null&<!==void 0?lt:A.colSpan)!==null&&Xe!==void 0?Xe:wi)!==null&&Pe!==void 0?Pe:1,xn=(ut=(xt=(Qt=fr==null?void 0:fr.rowSpan)!==null&&Qt!==void 0?Qt:A.rowSpan)!==null&&xt!==void 0?xt:fi)!==null&&ut!==void 0?ut:1,Nn=sr(zr,xn),kn=(0,se.Z)(Nn,2),Jn=kn[0],Rn=kn[1],Oi=function(qn){var Qa;Gr&&Rn(zr,zr+xn-1),A==null||(Qa=A.onMouseEnter)===null||Qa===void 0||Qa.call(A,qn)},Gi=function(qn){var Qa;Gr&&Rn(-1,-1),A==null||(Qa=A.onMouseLeave)===null||Qa===void 0||Qa.call(A,qn)};if(Ur===0||xn===0)return null;var Ji=(lr=A.title)!==null&&lr!==void 0?lr:Jt({rowType:Yt,ellipsis:Ft,children:$t}),Ia=T()(E,ur,(He={},(0,ae.Z)(He,"".concat(E,"-fix-left"),Hr&&be),(0,ae.Z)(He,"".concat(E,"-fix-left-first"),pn&&be),(0,ae.Z)(He,"".concat(E,"-fix-left-last"),rn&&be),(0,ae.Z)(He,"".concat(E,"-fix-left-all"),rn&&ze&&be),(0,ae.Z)(He,"".concat(E,"-fix-right"),Hn&&be),(0,ae.Z)(He,"".concat(E,"-fix-right-first"),Qn&&be),(0,ae.Z)(He,"".concat(E,"-fix-right-last"),vi&&be),(0,ae.Z)(He,"".concat(E,"-ellipsis"),Ft),(0,ae.Z)(He,"".concat(E,"-with-append"),Mi),(0,ae.Z)(He,"".concat(E,"-fix-sticky"),(Hr||Hn)&&w&&be),(0,ae.Z)(He,"".concat(E,"-row-hover"),!fr&&Jn),He),A.className,fr==null?void 0:fr.className),Di={};St&&(Di.textAlign=St);var ss=(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},Dr),A.style),Di),fr==null?void 0:fr.style),La=$t;return(0,Ce.Z)(La)==="object"&&!Array.isArray(La)&&!O.isValidElement(La)&&(La=null),Ft&&(rn||Qn)&&(La=O.createElement("span",{className:"".concat(E,"-content")},La)),O.createElement(At,(0,L.Z)({},fr,A,{className:Ia,style:ss,title:Ji,scope:er,onMouseEnter:Oi,onMouseLeave:Gi,colSpan:Ur!==1?Ur:null,rowSpan:xn!==1?xn:null}),Mi,La)}var Er=O.memo(We);function xr(ve,Pe,Xe,lt,ut,xt){var Qt=Xe[ve]||{},lr=Xe[Pe]||{},He,At;Qt.fixed==="left"?He=lt.left[ut==="rtl"?Pe:ve]:lr.fixed==="right"&&(At=lt.right[ut==="rtl"?ve:Pe]);var Te=!1,Ft=!1,er=!1,or=!1,ur=Xe[Pe+1],St=Xe[ve-1],Gr=!(xt!=null&&xt.children);if(ut==="rtl"){if(He!==void 0){var Zr=St&&St.fixed==="left";or=!Zr&&Gr}else if(At!==void 0){var sn=ur&&ur.fixed==="right";er=!sn&&Gr}}else if(He!==void 0){var An=ur&&ur.fixed==="left";Te=!An&&Gr}else if(At!==void 0){var ni=St&&St.fixed==="right";Ft=!ni&&Gr}return{fixLeft:He,fixRight:At,lastFixLeft:Te,firstFixRight:Ft,lastFixRight:er,firstFixLeft:or,isSticky:lt.isSticky}}var Wr=O.createContext({}),Cr=Wr;function _e(ve){var Pe=ve.className,Xe=ve.index,lt=ve.children,ut=ve.colSpan,xt=ut===void 0?1:ut,Qt=ve.rowSpan,lr=ve.align,He=o(G,["prefixCls","direction"]),At=He.prefixCls,Te=He.direction,Ft=O.useContext(Cr),er=Ft.scrollColumnIndex,or=Ft.stickyOffsets,ur=Ft.flattenColumns,St=Ft.columns,Gr=Xe+xt-1,Zr=Gr+1===er?xt+1:xt,sn=xr(Xe,Xe+Zr-1,ur,or,Te,St==null?void 0:St[Xe]);return O.createElement(Er,(0,L.Z)({className:Pe,index:Xe,component:"td",prefixCls:At,record:null,dataIndex:null,align:lr,colSpan:Zr,rowSpan:Qt,render:function(){return lt}},sn))}var kt=g(6620),K=["children"];function y(ve){var Pe=ve.children,Xe=(0,kt.Z)(ve,K);return O.createElement("tr",Xe,Pe)}function h(ve){var Pe=ve.children;return Pe}h.Row=y,h.Cell=_e;var D=h;function Ae(ve){var Pe=ve.children,Xe=ve.stickyOffsets,lt=ve.flattenColumns,ut=ve.columns,xt=o(G,"prefixCls"),Qt=lt.length-1,lr=lt[Qt],He=O.useMemo(function(){return{stickyOffsets:Xe,flattenColumns:lt,scrollColumnIndex:lr!=null&&lr.scrollbar?Qt:null,columns:ut}},[lr,lt,Qt,Xe,ut]);return O.createElement(Cr.Provider,{value:He},O.createElement("tfoot",{className:"".concat(xt,"-summary")},Pe))}var Z=V(Ae),k=D,te=g(70425),Se=g(29301),Be=g(29194),Ie=g(24514),Ge=g(75152),mt=g(26112);function $e(ve,Pe,Xe,lt,ut,xt,Qt){ve.push({record:Pe,indent:Xe,index:Qt});var lr=xt(Pe),He=ut==null?void 0:ut.has(lr);if(Pe&&Array.isArray(Pe[lt])&&He)for(var At=0;At<Pe[lt].length;At+=1)$e(ve,Pe[lt][At],Xe+1,lt,ut,xt,At)}function tt(ve,Pe,Xe,lt){var ut=O.useMemo(function(){if(Xe!=null&&Xe.size){for(var xt=[],Qt=0;Qt<(ve==null?void 0:ve.length);Qt+=1){var lr=ve[Qt];$e(xt,lr,0,Pe,Xe,lt,Qt)}return xt}return ve==null?void 0:ve.map(function(He,At){return{record:He,indent:0,index:At}})},[ve,Pe,Xe,lt]);return ut}function dt(ve){var Pe=ve.prefixCls,Xe=ve.children,lt=ve.component,ut=ve.cellComponent,xt=ve.className,Qt=ve.expanded,lr=ve.colSpan,He=ve.isEmpty,At=o(G,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Te=At.scrollbarSize,Ft=At.fixHeader,er=At.fixColumn,or=At.componentWidth,ur=At.horizonScroll,St=Xe;return(He?ur&&or:er)&&(St=O.createElement("div",{style:{width:or-(Ft?Te:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Pe,"-expanded-row-fixed")},St)),O.createElement(lt,{className:xt,style:{display:Qt?null:"none"}},O.createElement(Er,{component:ut,prefixCls:Pe,colSpan:lr},St))}var Ze=dt;function Ke(ve,Pe,Xe,lt){var ut=o(G,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),xt=ut.flattenColumns,Qt=ut.expandableType,lr=ut.expandedKeys,He=ut.childrenColumnName,At=ut.onTriggerExpand,Te=ut.rowExpandable,Ft=ut.onRow,er=ut.expandRowByClick,or=ut.rowClassName,ur=Qt==="nest",St=Qt==="row"&&(!Te||Te(ve)),Gr=St||ur,Zr=lr&&lr.has(Pe),sn=He&&ve&&ve[He],An=(0,te.useEvent)(At),ni=Ft==null?void 0:Ft(ve,Xe),zr=ni==null?void 0:ni.onClick,Yt=function(wn){er&&Gr&&At(ve,wn);for(var pn=arguments.length,rn=new Array(pn>1?pn-1:0),Qn=1;Qn<pn;Qn++)rn[Qn-1]=arguments[Qn];zr==null||zr.apply(void 0,[wn].concat(rn))},wi;typeof or=="string"?wi=or:typeof or=="function"&&(wi=or(ve,Xe,lt));var fi=he(xt);return(0,Le.Z)((0,Le.Z)({},ut),{},{columnsKey:fi,nestExpandable:ur,expanded:Zr,hasNestChildren:sn,record:ve,onTriggerExpand:An,rowSupportExpand:St,expandable:Gr,rowProps:(0,Le.Z)((0,Le.Z)({},ni),{},{className:T()(wi,ni==null?void 0:ni.className),onClick:Yt})})}function Bt(ve,Pe,Xe,lt,ut){var xt=ve.record,Qt=ve.prefixCls,lr=ve.columnsKey,He=ve.fixedInfoList,At=ve.expandIconColumnIndex,Te=ve.nestExpandable,Ft=ve.indentSize,er=ve.expandIcon,or=ve.expanded,ur=ve.hasNestChildren,St=ve.onTriggerExpand,Gr=lr[Xe],Zr=He[Xe],sn;Xe===(At||0)&&Te&&(sn=O.createElement(O.Fragment,null,O.createElement("span",{style:{paddingLeft:"".concat(Ft*lt,"px")},className:"".concat(Qt,"-row-indent indent-level-").concat(lt)}),er({prefixCls:Qt,expanded:or,expandable:ur,record:xt,onExpand:St})));var An;return Pe.onCell&&(An=Pe.onCell(xt,ut)),{key:Gr,fixedInfo:Zr,appendCellNode:sn,additionalCellProps:An||{}}}function Vt(ve){var Pe=ve.className,Xe=ve.style,lt=ve.record,ut=ve.index,xt=ve.renderIndex,Qt=ve.rowKey,lr=ve.indent,He=lr===void 0?0:lr,At=ve.rowComponent,Te=ve.cellComponent,Ft=ve.scopeCellComponent,er=Ke(lt,Qt,ut,He),or=er.prefixCls,ur=er.flattenColumns,St=er.expandedRowClassName,Gr=er.expandedRowRender,Zr=er.rowProps,sn=er.expanded,An=er.rowSupportExpand,ni=O.useState(!1),zr=(0,se.Z)(ni,2),Yt=zr[0],wi=zr[1];O.useEffect(function(){sn&&wi(!0)},[sn]);var fi=O.createElement(At,(0,L.Z)({},Zr,{"data-row-key":Qt,className:T()(Pe,"".concat(or,"-row"),"".concat(or,"-row-level-").concat(He),Zr==null?void 0:Zr.className),style:(0,Le.Z)((0,Le.Z)({},Xe),Zr==null?void 0:Zr.style)}),ur.map(function(rn,Qn){var vi=rn.render,Mi=rn.dataIndex,je=rn.className,A=Bt(er,rn,Qn,He,ut),w=A.key,E=A.fixedInfo,z=A.appendCellNode,be=A.additionalCellProps;return O.createElement(Er,(0,L.Z)({className:je,ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:rn.rowScope?Ft:Te,prefixCls:or,key:w,record:lt,index:ut,renderIndex:xt,dataIndex:Mi,render:vi,shouldCellUpdate:rn.shouldCellUpdate},E,{appendNode:z,additionalProps:be}))})),tn;if(An&&(Yt||sn)){var wn=Gr(lt,ut,He+1,sn),pn=St&&St(lt,ut,He);tn=O.createElement(Ze,{expanded:sn,className:T()("".concat(or,"-expanded-row"),"".concat(or,"-expanded-row-level-").concat(He+1),pn),prefixCls:or,component:At,cellComponent:Te,colSpan:ur.length,isEmpty:!1},wn)}return O.createElement(O.Fragment,null,fi,tn)}Vt.displayName="BodyRow";var Ut=V(Vt);function mr(ve){var Pe=ve.columnKey,Xe=ve.onColumnResize,lt=O.useRef();return O.useEffect(function(){lt.current&&Xe(Pe,lt.current.offsetWidth)},[]),O.createElement(Se.Z,{data:Pe},O.createElement("td",{ref:lt,style:{padding:0,border:0,height:0}},O.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function br(ve){var Pe=ve.prefixCls,Xe=ve.columnsKey,lt=ve.onColumnResize;return O.createElement("tr",{"aria-hidden":"true",className:"".concat(Pe,"-measure-row"),style:{height:0,fontSize:0}},O.createElement(Se.Z.Collection,{onBatchResize:function(xt){xt.forEach(function(Qt){var lr=Qt.data,He=Qt.size;lt(lr,He.offsetWidth)})}},Xe.map(function(ut){return O.createElement(mr,{key:ut,columnKey:ut,onColumnResize:lt})})))}function re(ve){var Pe=ve.data,Xe=ve.measureColumnWidth,lt=o(G,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ut=lt.prefixCls,xt=lt.getComponent,Qt=lt.onColumnResize,lr=lt.flattenColumns,He=lt.getRowKey,At=lt.expandedKeys,Te=lt.childrenColumnName,Ft=lt.emptyNode,er=tt(Pe,Te,At,He),or=O.useRef({renderWithProps:!1}),ur=xt(["body","wrapper"],"tbody"),St=xt(["body","row"],"tr"),Gr=xt(["body","cell"],"td"),Zr=xt(["body","cell"],"th"),sn;Pe.length?sn=er.map(function(ni,zr){var Yt=ni.record,wi=ni.indent,fi=ni.index,tn=He(Yt,zr);return O.createElement(Ut,{key:tn,rowKey:tn,record:Yt,index:zr,renderIndex:fi,rowComponent:St,cellComponent:Gr,scopeCellComponent:Zr,getRowKey:He,indent:wi})}):sn=O.createElement(Ze,{expanded:!0,className:"".concat(ut,"-placeholder"),prefixCls:ut,component:St,cellComponent:Gr,colSpan:lr.length,isEmpty:!0},Ft);var An=he(lr);return O.createElement(_.Provider,{value:or.current},O.createElement(ur,{className:"".concat(ut,"-tbody")},Xe&&O.createElement(br,{prefixCls:ut,columnsKey:An,onColumnResize:Qt}),sn))}re.displayName="Body";var ue=V(re),rr=["expandable"],Qe="RC_TABLE_INTERNAL_COL_DEFINE";function ot(ve){var Pe=ve.expandable,Xe=(0,kt.Z)(ve,rr),lt;return"expandable"in ve?lt=(0,Le.Z)((0,Le.Z)({},Xe),Pe):lt=Xe,lt.showExpandColumn===!1&&(lt.expandIconColumnIndex=-1),lt}var Jr=["columnType"];function Tt(ve){for(var Pe=ve.colWidths,Xe=ve.columns,lt=ve.columCount,ut=[],xt=lt||Xe.length,Qt=!1,lr=xt-1;lr>=0;lr-=1){var He=Pe[lr],At=Xe&&Xe[lr],Te=At&&At[Qe];if(He||Te||Qt){var Ft=Te||{},er=Ft.columnType,or=(0,kt.Z)(Ft,Jr);ut.unshift(O.createElement("col",(0,L.Z)({key:lr,style:{width:He}},or))),Qt=!0}}return O.createElement("colgroup",null,ut)}var Kt=Tt,qt=g(19127),et=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ft(ve,Pe){return(0,O.useMemo)(function(){for(var Xe=[],lt=0;lt<Pe;lt+=1){var ut=ve[lt];if(ut!==void 0)Xe[lt]=ut;else return null}return Xe},[ve.join("_"),Pe])}var ht=O.forwardRef(function(ve,Pe){var Xe=ve.className,lt=ve.noData,ut=ve.columns,xt=ve.flattenColumns,Qt=ve.colWidths,lr=ve.columCount,He=ve.stickyOffsets,At=ve.direction,Te=ve.fixHeader,Ft=ve.stickyTopOffset,er=ve.stickyBottomOffset,or=ve.stickyClassName,ur=ve.onScroll,St=ve.maxContentScroll,Gr=ve.children,Zr=(0,kt.Z)(ve,et),sn=o(G,["prefixCls","scrollbarSize","isSticky"]),An=sn.prefixCls,ni=sn.scrollbarSize,zr=sn.isSticky,Yt=zr&&!Te?0:ni,wi=O.useRef(null),fi=O.useCallback(function(je){(0,p.mH)(Pe,je),(0,p.mH)(wi,je)},[]);O.useEffect(function(){var je;function A(w){var E=w,z=E.currentTarget,be=E.deltaX;be&&(ur({currentTarget:z,scrollLeft:z.scrollLeft+be}),w.preventDefault())}return(je=wi.current)===null||je===void 0||je.addEventListener("wheel",A),function(){var w;(w=wi.current)===null||w===void 0||w.removeEventListener("wheel",A)}},[]);var tn=O.useMemo(function(){return xt.every(function(je){return je.width})},[xt]),wn=xt[xt.length-1],pn={fixed:wn?wn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(An,"-cell-scrollbar")}}},rn=(0,O.useMemo)(function(){return Yt?[].concat((0,qt.Z)(ut),[pn]):ut},[Yt,ut]),Qn=(0,O.useMemo)(function(){return Yt?[].concat((0,qt.Z)(xt),[pn]):xt},[Yt,xt]),vi=(0,O.useMemo)(function(){var je=He.right,A=He.left;return(0,Le.Z)((0,Le.Z)({},He),{},{left:At==="rtl"?[].concat((0,qt.Z)(A.map(function(w){return w+Yt})),[0]):A,right:At==="rtl"?je:[].concat((0,qt.Z)(je.map(function(w){return w+Yt})),[0]),isSticky:zr})},[Yt,He,zr]),Mi=ft(Qt,lr);return O.createElement("div",{style:(0,Le.Z)({overflow:"hidden"},zr?{top:Ft,bottom:er}:{}),ref:fi,className:T()(Xe,(0,ae.Z)({},or,!!or))},O.createElement("table",{style:{tableLayout:"fixed",visibility:lt||Mi?null:"hidden"}},(!lt||!St||tn)&&O.createElement(Kt,{colWidths:Mi?[].concat((0,qt.Z)(Mi),[Yt]):[],columCount:lr+1,columns:Qn}),Gr((0,Le.Z)((0,Le.Z)({},Zr),{},{stickyOffsets:vi,columns:rn,flattenColumns:Qn}))))});ht.displayName="FixedHolder";var Gt=O.memo(ht);function Oe(ve){var Pe=ve.cells,Xe=ve.stickyOffsets,lt=ve.flattenColumns,ut=ve.rowComponent,xt=ve.cellComponent,Qt=ve.tdCellComponent,lr=ve.onHeaderRow,He=ve.index,At=o(G,["prefixCls","direction"]),Te=At.prefixCls,Ft=At.direction,er;lr&&(er=lr(Pe.map(function(ur){return ur.column}),He));var or=he(Pe.map(function(ur){return ur.column}));return O.createElement(ut,er,Pe.map(function(ur,St){var Gr=ur.column,Zr=xr(ur.colStart,ur.colEnd,lt,Xe,Ft,Gr),sn;return Gr&&Gr.onHeaderCell&&(sn=ur.column.onHeaderCell(Gr)),O.createElement(Er,(0,L.Z)({},ur,{scope:Gr.title?ur.colSpan>1?"colgroup":"col":null,ellipsis:Gr.ellipsis,align:Gr.align,component:Gr.title?xt:Qt,prefixCls:Te,key:or[St]},Zr,{additionalProps:sn,rowType:"header"}))}))}Oe.displayName="HeaderRow";var on=Oe;function Mt(ve){var Pe=[];function Xe(Qt,lr){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Pe[He]=Pe[He]||[];var At=lr,Te=Qt.filter(Boolean).map(function(Ft){var er={key:Ft.key,className:Ft.className||"",children:Ft.title,column:Ft,colStart:At},or=1,ur=Ft.children;return ur&&ur.length>0&&(or=Xe(ur,At,He+1).reduce(function(St,Gr){return St+Gr},0),er.hasSubColumns=!0),"colSpan"in Ft&&(or=Ft.colSpan),"rowSpan"in Ft&&(er.rowSpan=Ft.rowSpan),er.colSpan=or,er.colEnd=er.colStart+or-1,Pe[He].push(er),At+=or,or});return Te}Xe(ve,0);for(var lt=Pe.length,ut=function(lr){Pe[lr].forEach(function(He){!("rowSpan"in He)&&!He.hasSubColumns&&(He.rowSpan=lt-lr)})},xt=0;xt<lt;xt+=1)ut(xt);return Pe}function On(ve){var Pe=ve.stickyOffsets,Xe=ve.columns,lt=ve.flattenColumns,ut=ve.onHeaderRow,xt=o(G,["prefixCls","getComponent"]),Qt=xt.prefixCls,lr=xt.getComponent,He=O.useMemo(function(){return Mt(Xe)},[Xe]),At=lr(["header","wrapper"],"thead"),Te=lr(["header","row"],"tr"),Ft=lr(["header","cell"],"th"),er=lr(["header","cell"],"td");return O.createElement(At,{className:"".concat(Qt,"-thead")},He.map(function(or,ur){var St=O.createElement(on,{key:ur,flattenColumns:lt,cells:or,stickyOffsets:Pe,rowComponent:Te,cellComponent:Ft,tdCellComponent:er,onHeaderRow:ut,index:ur});return St}))}var Xn=V(On),yi=g(11592);function $i(ve){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Pe=="number"?Pe:Pe.endsWith("%")?ve*parseFloat(Pe)/100:null}function Dn(ve,Pe){return O.useMemo(function(){if(Pe&&Pe>0){var Xe=0,lt=0;ve.forEach(function(At){var Te=$i(Pe,At.width);Te?Xe+=Te:lt+=1});var ut=Pe-Xe,xt=lt,Qt=ut/lt,lr=0,He=ve.map(function(At){var Te=(0,Le.Z)({},At),Ft=$i(Pe,Te.width);if(Ft)Te.width=Ft;else{var er=Math.floor(Qt);Te.width=xt===1?ut:er,ut-=er,xt-=1}return lr+=Te.width,Te});return[He,lr]}return[ve,Pe]},[ve,Pe])}var zn=["children"],Xt=["fixed"];function $r(ve){return(0,yi.Z)(ve).filter(function(Pe){return O.isValidElement(Pe)}).map(function(Pe){var Xe=Pe.key,lt=Pe.props,ut=lt.children,xt=(0,kt.Z)(lt,zn),Qt=(0,Le.Z)({key:Xe},xt);return ut&&(Qt.children=$r(ut)),Qt})}function en(ve){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ve.filter(function(Xe){return Xe&&(0,Ce.Z)(Xe)==="object"}).reduce(function(Xe,lt,ut){var xt=lt.fixed,Qt=xt===!0?"left":xt,lr="".concat(Pe,"-").concat(ut),He=lt.children;return He&&He.length>0?[].concat((0,qt.Z)(Xe),(0,qt.Z)(en(He,lr).map(function(At){return(0,Le.Z)({fixed:Qt},At)}))):[].concat((0,qt.Z)(Xe),[(0,Le.Z)((0,Le.Z)({key:lr},lt),{},{fixed:Qt})])},[])}function Pt(ve){for(var Pe=!0,Xe=0;Xe<ve.length;Xe+=1){var lt=ve[Xe];if(Pe&<.fixed!=="left")Pe=!1;else if(!Pe&<.fixed==="left"){warning(!1,"Index ".concat(Xe-1," of `columns` missing `fixed='left'` prop."));break}}for(var ut=!0,xt=ve.length-1;xt>=0;xt-=1){var Qt=ve[xt];if(ut&&Qt.fixed!=="right")ut=!1;else if(!ut&&Qt.fixed==="right"){warning(!1,"Index ".concat(xt+1," of `columns` missing `fixed='right'` prop."));break}}}function Et(ve){return ve.map(function(Pe){var Xe=Pe.fixed,lt=(0,kt.Z)(Pe,Xt),ut=Xe;return Xe==="left"?ut="right":Xe==="right"&&(ut="left"),(0,Le.Z)({fixed:ut},lt)})}function _r(ve,Pe){var Xe=ve.prefixCls,lt=ve.columns,ut=ve.children,xt=ve.expandable,Qt=ve.expandedKeys,lr=ve.columnTitle,He=ve.getRowKey,At=ve.onTriggerExpand,Te=ve.expandIcon,Ft=ve.rowExpandable,er=ve.expandIconColumnIndex,or=ve.direction,ur=ve.expandRowByClick,St=ve.columnWidth,Gr=ve.fixed,Zr=ve.scrollWidth,sn=O.useMemo(function(){return lt||$r(ut)},[lt,ut]),An=O.useMemo(function(){if(xt){var wn,pn=sn.slice();if(!pn.includes(xe)){var rn=er||0;rn>=0&&pn.splice(rn,0,xe)}var Qn=pn.indexOf(xe);pn=pn.filter(function(A,w){return A!==xe||w===Qn});var vi=sn[Qn],Mi;(Gr==="left"||Gr)&&!er?Mi="left":(Gr==="right"||Gr)&&er===sn.length?Mi="right":Mi=vi?vi.fixed:null;var je=(wn={},(0,ae.Z)(wn,Qe,{className:"".concat(Xe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ae.Z)(wn,"title",lr),(0,ae.Z)(wn,"fixed",Mi),(0,ae.Z)(wn,"className","".concat(Xe,"-row-expand-icon-cell")),(0,ae.Z)(wn,"width",St),(0,ae.Z)(wn,"render",function(w,E,z){var be=He(E,z),ze=Qt.has(be),pt=Ft?Ft(E):!0,It=Te({prefixCls:Xe,expanded:ze,expandable:pt,record:E,onExpand:At});return ur?O.createElement("span",{onClick:function(fr){return fr.stopPropagation()}},It):It}),wn);return pn.map(function(A){return A===xe?je:A})}return sn.filter(function(A){return A!==xe})},[xt,sn,He,Qt,Te,or]),ni=O.useMemo(function(){var wn=An;return Pe&&(wn=Pe(wn)),wn.length||(wn=[{render:function(){return null}}]),wn},[Pe,An,or]),zr=O.useMemo(function(){return or==="rtl"?Et(en(ni)):en(ni)},[ni,or,Zr]),Yt=Dn(zr,Zr),wi=(0,se.Z)(Yt,2),fi=wi[0],tn=wi[1];return[ni,fi,tn]}var Fr=_r;function In(ve){var Pe,Xe=ve.prefixCls,lt=ve.record,ut=ve.onExpand,xt=ve.expanded,Qt=ve.expandable,lr="".concat(Xe,"-row-expand-icon");if(!Qt)return O.createElement("span",{className:T()(lr,"".concat(Xe,"-row-spaced"))});var He=function(Te){ut(lt,Te),Te.stopPropagation()};return O.createElement("span",{className:T()(lr,(Pe={},(0,ae.Z)(Pe,"".concat(Xe,"-row-expanded"),xt),(0,ae.Z)(Pe,"".concat(Xe,"-row-collapsed"),!xt),Pe)),onClick:He})}function an(ve,Pe,Xe){var lt=[];function ut(xt){(xt||[]).forEach(function(Qt,lr){lt.push(Pe(Qt,lr)),ut(Qt[Xe])})}return ut(ve),lt}function _n(ve,Pe,Xe){var lt=ot(ve),ut=lt.expandIcon,xt=lt.expandedRowKeys,Qt=lt.defaultExpandedRowKeys,lr=lt.defaultExpandAllRows,He=lt.expandedRowRender,At=lt.onExpand,Te=lt.onExpandedRowsChange,Ft=lt.childrenColumnName,er=ut||In,or=Ft||"children",ur=O.useMemo(function(){return He?"row":ve.expandable&&ve.internalHooks===Fe&&ve.expandable.__PARENT_RENDER_ICON__||Pe.some(function(zr){return zr&&(0,Ce.Z)(zr)==="object"&&zr[or]})?"nest":!1},[!!He,Pe]),St=O.useState(function(){return Qt||(lr?an(Pe,Xe,or):[])}),Gr=(0,se.Z)(St,2),Zr=Gr[0],sn=Gr[1],An=O.useMemo(function(){return new Set(xt||Zr||[])},[xt,Zr]),ni=O.useCallback(function(zr){var Yt=Xe(zr,Pe.indexOf(zr)),wi,fi=An.has(Yt);fi?(An.delete(Yt),wi=(0,qt.Z)(An)):wi=[].concat((0,qt.Z)(An),[Yt]),sn(wi),At&&At(!fi,zr),Te&&Te(wi)},[Xe,An,Pe,At,Te]);return[lt,ur,An,er,or,ni]}function mn(ve,Pe,Xe,lt){var ut=ve.map(function(xt,Qt){return xr(Qt,Qt,ve,Pe,Xe,lt==null?void 0:lt[Qt])});return(0,Ee.Z)(function(){return ut},[ut],function(xt,Qt){return!(0,Y.Z)(xt,Qt)})}function Mn(ve){var Pe=(0,O.useRef)(ve),Xe=(0,O.useState)({}),lt=(0,se.Z)(Xe,2),ut=lt[1],xt=(0,O.useRef)(null),Qt=(0,O.useRef)([]);function lr(He){Qt.current.push(He);var At=Promise.resolve();xt.current=At,At.then(function(){if(xt.current===At){var Te=Qt.current,Ft=Pe.current;Qt.current=[],Te.forEach(function(er){Pe.current=er(Pe.current)}),xt.current=null,Ft!==Pe.current&&ut({})}})}return(0,O.useEffect)(function(){return function(){xt.current=null}},[]),[Pe.current,lr]}function ei(ve){var Pe=(0,O.useRef)(ve||null),Xe=(0,O.useRef)();function lt(){window.clearTimeout(Xe.current)}function ut(Qt){Pe.current=Qt,lt(),Xe.current=window.setTimeout(function(){Pe.current=null,Xe.current=void 0},100)}function xt(){return Pe.current}return(0,O.useEffect)(function(){return lt},[]),[ut,xt]}function Kr(){var ve=O.useState(-1),Pe=(0,se.Z)(ve,2),Xe=Pe[0],lt=Pe[1],ut=O.useState(-1),xt=(0,se.Z)(ut,2),Qt=xt[0],lr=xt[1],He=O.useCallback(function(At,Te){lt(At),lr(Te)},[]);return[Xe,Qt,He]}var Vr=g(47273),Tn=(0,Vr.Z)()?window:null;function Sn(ve,Pe){var Xe=(0,Ce.Z)(ve)==="object"?ve:{},lt=Xe.offsetHeader,ut=lt===void 0?0:lt,xt=Xe.offsetSummary,Qt=xt===void 0?0:xt,lr=Xe.offsetScroll,He=lr===void 0?0:lr,At=Xe.getContainer,Te=At===void 0?function(){return Tn}:At,Ft=Te()||Tn;return O.useMemo(function(){var er=!!ve;return{isSticky:er,stickyClassName:er?"".concat(Pe,"-sticky-holder"):"",offsetHeader:ut,offsetSummary:Qt,offsetScroll:He,container:Ft}},[He,ut,Qt,Pe,Ft])}function Un(ve,Pe,Xe){var lt=(0,O.useMemo)(function(){for(var ut=[],xt=[],Qt=0,lr=0,He=0;He<Pe;He+=1)if(Xe==="rtl"){xt[He]=lr,lr+=ve[He]||0;var At=Pe-He-1;ut[At]=Qt,Qt+=ve[At]||0}else{ut[He]=Qt,Qt+=ve[He]||0;var Te=Pe-He-1;xt[Te]=lr,lr+=ve[Te]||0}return{left:ut,right:xt}},[ve,Pe,Xe]);return lt}var Vn=Un;function Ui(ve){var Pe=ve.className,Xe=ve.children;return O.createElement("div",{className:Pe},Xe)}var di=Ui,bn=g(8224),dr=g(55468),vr=function(Pe,Xe){var lt,ut,xt=Pe.scrollBodyRef,Qt=Pe.onScroll,lr=Pe.offsetScroll,He=Pe.container,At=o(G,"prefixCls"),Te=((lt=xt.current)===null||lt===void 0?void 0:lt.scrollWidth)||0,Ft=((ut=xt.current)===null||ut===void 0?void 0:ut.clientWidth)||0,er=Te&&Ft*(Ft/Te),or=O.useRef(),ur=Mn({scrollLeft:0,isHiddenScrollBar:!1}),St=(0,se.Z)(ur,2),Gr=St[0],Zr=St[1],sn=O.useRef({delta:0,x:0}),An=O.useState(!1),ni=(0,se.Z)(An,2),zr=ni[0],Yt=ni[1],wi=function(){Yt(!1)},fi=function(Qn){Qn.persist(),sn.current.delta=Qn.pageX-Gr.scrollLeft,sn.current.x=0,Yt(!0),Qn.preventDefault()},tn=function(Qn){var vi,Mi=Qn||((vi=window)===null||vi===void 0?void 0:vi.event),je=Mi.buttons;if(!zr||je===0){zr&&Yt(!1);return}var A=sn.current.x+Qn.pageX-sn.current.x-sn.current.delta;A<=0&&(A=0),A+er>=Ft&&(A=Ft-er),Qt({scrollLeft:A/Ft*(Te+2)}),sn.current.x=Qn.pageX},wn=function(){if(xt.current){var Qn=(0,dr.os)(xt.current).top,vi=Qn+xt.current.offsetHeight,Mi=He===window?document.documentElement.scrollTop+window.innerHeight:(0,dr.os)(He).top+He.clientHeight;vi-(0,Ge.Z)()<=Mi||Qn>=Mi-lr?Zr(function(je){return(0,Le.Z)((0,Le.Z)({},je),{},{isHiddenScrollBar:!0})}):Zr(function(je){return(0,Le.Z)((0,Le.Z)({},je),{},{isHiddenScrollBar:!1})})}},pn=function(Qn){Zr(function(vi){return(0,Le.Z)((0,Le.Z)({},vi),{},{scrollLeft:Qn/Te*Ft||0})})};return O.useImperativeHandle(Xe,function(){return{setScrollLeft:pn}}),O.useEffect(function(){var rn=(0,bn.Z)(document.body,"mouseup",wi,!1),Qn=(0,bn.Z)(document.body,"mousemove",tn,!1);return wn(),function(){rn.remove(),Qn.remove()}},[er,zr]),O.useEffect(function(){var rn=(0,bn.Z)(He,"scroll",wn,!1),Qn=(0,bn.Z)(window,"resize",wn,!1);return function(){rn.remove(),Qn.remove()}},[He]),O.useEffect(function(){Gr.isHiddenScrollBar||Zr(function(rn){var Qn=xt.current;return Qn?(0,Le.Z)((0,Le.Z)({},rn),{},{scrollLeft:Qn.scrollLeft/Qn.scrollWidth*Qn.clientWidth}):rn})},[Gr.isHiddenScrollBar]),Te<=Ft||!er||Gr.isHiddenScrollBar?null:O.createElement("div",{style:{height:(0,Ge.Z)(),width:Ft,bottom:lr},className:"".concat(At,"-sticky-scroll")},O.createElement("div",{onMouseDown:fi,ref:or,className:T()("".concat(At,"-sticky-scroll-bar"),(0,ae.Z)({},"".concat(At,"-sticky-scroll-bar-active"),zr)),style:{width:"".concat(er,"px"),transform:"translate3d(".concat(Gr.scrollLeft,"px, 0, 0)")}}))},Ir=O.forwardRef(vr);function Yr(ve){return null}var Mr=Yr;function cn(ve){return null}var nn=cn,jn="rc-table",ti=[],ui={};function Ri(){return"No Data"}function Qi(ve){var Pe,Xe=(0,Le.Z)({rowKey:"key",prefixCls:jn,emptyText:Ri},ve),lt=Xe.prefixCls,ut=Xe.className,xt=Xe.rowClassName,Qt=Xe.style,lr=Xe.data,He=Xe.rowKey,At=Xe.scroll,Te=Xe.tableLayout,Ft=Xe.direction,er=Xe.title,or=Xe.footer,ur=Xe.summary,St=Xe.caption,Gr=Xe.id,Zr=Xe.showHeader,sn=Xe.components,An=Xe.emptyText,ni=Xe.onRow,zr=Xe.onHeaderRow,Yt=Xe.internalHooks,wi=Xe.transformColumns,fi=Xe.internalRefs,tn=Xe.tailor,wn=Xe.sticky,pn=lr||ti,rn=!!pn.length,Qn=Yt===Fe,vi=O.useCallback(function(ka,gs){return(0,oe.Z)(sn,ka)||gs},[sn]),Mi=O.useMemo(function(){return typeof He=="function"?He:function(ka){var gs=ka&&ka[He];return gs}},[He]),je=vi(["body"]),A=Kr(),w=(0,se.Z)(A,3),E=w[0],z=w[1],be=w[2],ze=_n(Xe,pn,Mi),pt=(0,se.Z)(ze,6),It=pt[0],$t=pt[1],fr=pt[2],Dr=pt[3],Hr=pt[4],Hn=pt[5],Ur=At==null?void 0:At.x,xn=O.useState(0),Nn=(0,se.Z)(xn,2),kn=Nn[0],Jn=Nn[1],Rn=Fr((0,Le.Z)((0,Le.Z)((0,Le.Z)({},Xe),It),{},{expandable:!!It.expandedRowRender,columnTitle:It.columnTitle,expandedKeys:fr,getRowKey:Mi,onTriggerExpand:Hn,expandIcon:Dr,expandIconColumnIndex:It.expandIconColumnIndex,direction:Ft,scrollWidth:Qn&&tn&&typeof Ur=="number"?Ur:null}),Qn?wi:null),Oi=(0,se.Z)(Rn,3),Gi=Oi[0],Ji=Oi[1],Ia=Oi[2],Di=Ia!=null?Ia:Ur,ss=O.useMemo(function(){return{columns:Gi,flattenColumns:Ji}},[Gi,Ji]),La=O.useRef(),va=O.useRef(),qn=O.useRef(),Qa=O.useRef(),Fs=O.useRef(),fa=O.useState(!1),Aa=(0,se.Z)(fa,2),ma=Aa[0],ja=Aa[1],os=O.useState(!1),ca=(0,se.Z)(os,2),xs=ca[0],_s=ca[1],Js=Mn(new Map),Ws=(0,se.Z)(Js,2),Vs=Ws[0],Vo=Ws[1],$o=he(Ji),Co=$o.map(function(ka){return Vs.get(ka)}),ho=O.useMemo(function(){return Co},[Co.join("_")]),to=Vn(ho,Ji.length,Ft),Ds=At&&qe(At.y),ls=At&&qe(Di)||!!It.fixed,Al=ls&&Ji.some(function(ka){var gs=ka.fixed;return gs}),Cl=O.useRef(),sl=Sn(wn,lt),Yo=sl.isSticky,_u=sl.offsetHeader,Wl=sl.offsetSummary,za=sl.offsetScroll,Ta=sl.stickyClassName,oo=sl.container,Bs=O.useMemo(function(){return ur==null?void 0:ur(pn)},[ur,pn]),yo=(Ds||Yo)&&O.isValidElement(Bs)&&Bs.type===D&&Bs.props.fixed,_o,Bo,Fo;Ds&&(Bo={overflowY:"scroll",maxHeight:At.y}),ls&&(_o={overflowX:"auto"},Ds||(Bo={overflowY:"hidden"}),Fo={width:Di===!0?"auto":Di,minWidth:"100%"});var _l=O.useCallback(function(ka,gs){(0,Be.Z)(La.current)&&Vo(function(Qo){if(Qo.get(ka)!==gs){var Il=new Map(Qo);return Il.set(ka,gs),Il}return Qo})},[]),Ko=ei(null),Vl=(0,se.Z)(Ko,2),hu=Vl[0],ac=Vl[1];function nu(ka,gs){gs&&(typeof gs=="function"?gs(ka):gs.scrollLeft!==ka&&(gs.scrollLeft=ka,gs.scrollLeft!==ka&&setTimeout(function(){gs.scrollLeft=ka},0)))}var dl=(0,Me.Z)(function(ka){var gs=ka.currentTarget,Qo=ka.scrollLeft,Il=Ft==="rtl",Tl=typeof Qo=="number"?Qo:gs.scrollLeft,Fu=gs||ui;if(!ac()||ac()===Fu){var Du;hu(Fu),nu(Tl,va.current),nu(Tl,qn.current),nu(Tl,Fs.current),nu(Tl,(Du=Cl.current)===null||Du===void 0?void 0:Du.setScrollLeft)}var fl=gs||va.current;if(fl){var Fl=fl.scrollWidth,$u=fl.clientWidth;if(Fl===$u){ja(!1),_s(!1);return}Il?(ja(-Tl<Fl-$u),_s(-Tl>0)):(ja(Tl>0),_s(Tl<Fl-$u))}}),iu=function(){ls&&qn.current?dl({currentTarget:qn.current}):(ja(!1),_s(!1))},Mu=function(gs){var Qo=gs.width;Qo!==kn&&(iu(),Jn(La.current?La.current.offsetWidth:Qo))},pu=O.useRef(!1);O.useEffect(function(){pu.current&&iu()},[ls,lr,Gi.length]),O.useEffect(function(){pu.current=!0},[]);var Uu=O.useState(0),Qu=(0,se.Z)(Uu,2),Hl=Qu[0],Bl=Qu[1],mu=O.useState(!0),gu=(0,se.Z)(mu,2),Po=gu[0],Do=gu[1];O.useEffect(function(){(!tn||!Qn)&&(qn.current instanceof Element?Bl((0,Ge.o)(qn.current).width):Bl((0,Ge.o)(Qa.current).width)),Do((0,Ie.G)("position","sticky"))},[]),O.useEffect(function(){Qn&&fi&&(fi.body.current=qn.current)});var ju=O.useCallback(function(ka){return O.createElement(O.Fragment,null,O.createElement(Xn,ka),yo==="top"&&O.createElement(Z,ka,Bs))},[yo,Bs]),sc=O.useCallback(function(ka){return O.createElement(Z,ka,Bs)},[Bs]),Ma=vi(["table"],"table"),Bu=O.useMemo(function(){return Te||(Al?Di==="max-content"?"auto":"fixed":Ds||Yo||Ji.some(function(ka){var gs=ka.ellipsis;return gs})?"fixed":"auto")},[Ds,Al,Ji,Te,Yo]),Su,ol={colWidths:ho,columCount:Ji.length,stickyOffsets:to,onHeaderRow:zr,fixHeader:Ds,scroll:At},Hu=O.useMemo(function(){return rn?null:typeof An=="function"?An():An},[rn,An]),Iu=O.createElement(ue,{data:pn,measureColumnWidth:Ds||ls||Yo}),Yl=O.createElement(Kt,{colWidths:Ji.map(function(ka){var gs=ka.width;return gs}),columns:Ji}),vu=St!=null?O.createElement("caption",{className:"".concat(lt,"-caption")},St):void 0,Tu=(0,mt.Z)(Xe,{data:!0}),Sl=(0,mt.Z)(Xe,{aria:!0});if(Ds||Yo){var Uo;typeof je=="function"?(Uo=je(pn,{scrollbarSize:Hl,ref:qn,onScroll:dl}),ol.colWidths=Ji.map(function(ka,gs){var Qo=ka.width,Il=gs===Ji.length-1?Qo-Hl:Qo;return typeof Il=="number"&&!Number.isNaN(Il)?Il:0})):Uo=O.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},_o),Bo),onScroll:dl,ref:qn,className:T()("".concat(lt,"-body"))},O.createElement(Ma,(0,L.Z)({style:(0,Le.Z)((0,Le.Z)({},Fo),{},{tableLayout:Bu})},Sl),vu,Yl,Iu,!yo&&Bs&&O.createElement(Z,{stickyOffsets:to,flattenColumns:Ji,columns:Gi},Bs)));var cs=(0,Le.Z)((0,Le.Z)((0,Le.Z)({noData:!pn.length,maxContentScroll:ls&&Di==="max-content"},ol),ss),{},{direction:Ft,stickyClassName:Ta,onScroll:dl});Su=O.createElement(O.Fragment,null,Zr!==!1&&O.createElement(Gt,(0,L.Z)({},cs,{stickyTopOffset:_u,className:"".concat(lt,"-header"),ref:va}),ju),Uo,yo&&yo!=="top"&&O.createElement(Gt,(0,L.Z)({},cs,{stickyBottomOffset:Wl,className:"".concat(lt,"-summary"),ref:Fs}),sc),Yo&&O.createElement(Ir,{ref:Cl,offsetScroll:za,scrollBodyRef:qn,onScroll:dl,container:oo}))}else Su=O.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},_o),Bo),className:T()("".concat(lt,"-content")),onScroll:dl,ref:qn},O.createElement(Ma,(0,L.Z)({style:(0,Le.Z)((0,Le.Z)({},Fo),{},{tableLayout:Bu})},Sl),vu,Yl,Zr!==!1&&O.createElement(Xn,(0,L.Z)({},ol,ss)),Iu,Bs&&O.createElement(Z,{stickyOffsets:to,flattenColumns:Ji,columns:Gi},Bs)));var Xo=O.createElement("div",(0,L.Z)({className:T()(lt,ut,(Pe={},(0,ae.Z)(Pe,"".concat(lt,"-rtl"),Ft==="rtl"),(0,ae.Z)(Pe,"".concat(lt,"-ping-left"),ma),(0,ae.Z)(Pe,"".concat(lt,"-ping-right"),xs),(0,ae.Z)(Pe,"".concat(lt,"-layout-fixed"),Te==="fixed"),(0,ae.Z)(Pe,"".concat(lt,"-fixed-header"),Ds),(0,ae.Z)(Pe,"".concat(lt,"-fixed-column"),Al),(0,ae.Z)(Pe,"".concat(lt,"-scroll-horizontal"),ls),(0,ae.Z)(Pe,"".concat(lt,"-has-fix-left"),Ji[0]&&Ji[0].fixed),(0,ae.Z)(Pe,"".concat(lt,"-has-fix-right"),Ji[Ji.length-1]&&Ji[Ji.length-1].fixed==="right"),Pe)),style:Qt,id:Gr,ref:La},Tu),er&&O.createElement(di,{className:"".concat(lt,"-title")},er(pn)),O.createElement("div",{ref:Qa,className:"".concat(lt,"-container")},Su),or&&O.createElement(di,{className:"".concat(lt,"-footer")},or(pn)));ls&&(Xo=O.createElement(Se.Z,{onResize:Mu},Xo));var Jo=mn(Ji,to,Ft,Gi),bc=O.useMemo(function(){return{scrollX:Di,prefixCls:lt,getComponent:vi,scrollbarSize:Hl,direction:Ft,fixedInfoList:Jo,isSticky:Yo,supportSticky:Po,componentWidth:kn,fixHeader:Ds,fixColumn:Al,horizonScroll:ls,tableLayout:Bu,rowClassName:xt,expandedRowClassName:It.expandedRowClassName,expandIcon:Dr,expandableType:$t,expandRowByClick:It.expandRowByClick,expandedRowRender:It.expandedRowRender,onTriggerExpand:Hn,expandIconColumnIndex:It.expandIconColumnIndex,indentSize:It.indentSize,allColumnsFixedLeft:Ji.every(function(ka){return ka.fixed==="left"}),emptyNode:Hu,columns:Gi,flattenColumns:Ji,onColumnResize:_l,hoverStartRow:E,hoverEndRow:z,onHover:be,rowExpandable:It.rowExpandable,onRow:ni,getRowKey:Mi,expandedKeys:fr,childrenColumnName:Hr}},[Di,lt,vi,Hl,Ft,Jo,Yo,Po,kn,Ds,Al,ls,Bu,xt,It.expandedRowClassName,Dr,$t,It.expandRowByClick,It.expandedRowRender,Hn,It.expandIconColumnIndex,It.indentSize,Hu,Gi,Ji,_l,E,z,be,It.rowExpandable,ni,Mi,fr,Hr]);return O.createElement(G.Provider,{value:bc},Xo)}function Pi(ve){return H(Qi,ve)}var Sr=Pi();Sr.EXPAND_COLUMN=xe,Sr.INTERNAL_HOOKS=Fe,Sr.Column=Mr,Sr.ColumnGroup=nn,Sr.Summary=k;var Cn=Sr,fn=g(45680),hi=n(null),ii=n(null);function ri(ve,Pe,Xe){var lt=Pe||1;return Xe[ve+lt]-(Xe[ve]||0)}function bi(ve){var Pe=ve.rowInfo,Xe=ve.column,lt=ve.colIndex,ut=ve.indent,xt=ve.index,Qt=ve.renderIndex,lr=ve.record,He=ve.style,At=ve.className,Te=ve.inverse,Ft=ve.getHeight,er=Xe.render,or=Xe.dataIndex,ur=Xe.className,St=Xe.width,Gr=o(ii,["columnsOffset"]),Zr=Gr.columnsOffset,sn=Bt(Pe,Xe,lt,ut,xt),An=sn.key,ni=sn.fixedInfo,zr=sn.appendCellNode,Yt=sn.additionalCellProps,wi=Yt.style,fi=Yt.colSpan,tn=fi===void 0?1:fi,wn=Yt.rowSpan,pn=wn===void 0?1:wn,rn=lt-1,Qn=ri(rn,tn,Zr),vi=tn>1?St-Qn:0,Mi=(0,Le.Z)((0,Le.Z)((0,Le.Z)({},wi),He),{},{flex:"0 0 ".concat(Qn,"px"),width:"".concat(Qn,"px"),marginRight:vi,pointerEvents:"auto"}),je=O.useMemo(function(){return Te?pn<=1:tn===0||pn===0||pn>1},[pn,tn,Te]);je?Mi.visibility="hidden":Te&&(Mi.height=Ft==null?void 0:Ft(pn));var A=je?function(){return null}:er,w={};return(pn===0||tn===0)&&(w.rowSpan=1,w.colSpan=1),O.createElement(Er,(0,L.Z)({className:T()(ur,At),ellipsis:Xe.ellipsis,align:Xe.align,scope:Xe.rowScope,component:"div",prefixCls:Pe.prefixCls,key:An,record:lr,index:xt,renderIndex:Qt,dataIndex:or,render:A,shouldCellUpdate:Xe.shouldCellUpdate},ni,{appendNode:zr,additionalProps:(0,Le.Z)((0,Le.Z)({},Yt),{},{style:Mi},w)}))}var Ti=bi,Bi=["data","index","className","rowKey","style","extra","getHeight"],Zi=O.forwardRef(function(ve,Pe){var Xe=ve.data,lt=ve.index,ut=ve.className,xt=ve.rowKey,Qt=ve.style,lr=ve.extra,He=ve.getHeight,At=(0,kt.Z)(ve,Bi),Te=Xe.record,Ft=Xe.indent,er=Xe.index,or=o(G,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ur=or.scrollX,St=or.flattenColumns,Gr=or.prefixCls,Zr=or.fixColumn,sn=or.componentWidth,An=Ke(Te,xt,lt,Ft),ni=An.rowSupportExpand,zr=An.expanded,Yt=An.rowProps,wi=An.expandedRowRender,fi=An.expandedRowClassName,tn;if(ni&&zr){var wn=wi(Te,lt,Ft+1,zr),pn=fi==null?void 0:fi(Te,lt,Ft),rn={};Zr&&(rn={style:(0,ae.Z)({},"--virtual-width","".concat(sn,"px"))});var Qn="".concat(Gr,"-expanded-row-cell");tn=O.createElement("div",{className:T()("".concat(Gr,"-expanded-row"),"".concat(Gr,"-expanded-row-level-").concat(Ft+1),pn)},O.createElement(Er,{component:"div",prefixCls:Gr,className:T()(Qn,(0,ae.Z)({},"".concat(Qn,"-fixed"),Zr)),additionalProps:rn},wn))}var vi=(0,Le.Z)((0,Le.Z)({},Qt),{},{width:ur});lr&&(vi.position="absolute",vi.pointerEvents="none");var Mi=O.createElement("div",(0,L.Z)({},Yt,At,{ref:ni?null:Pe,className:T()(ut,"".concat(Gr,"-row"),Yt==null?void 0:Yt.className,(0,ae.Z)({},"".concat(Gr,"-row-extra"),lr)),style:(0,Le.Z)((0,Le.Z)({},vi),Yt==null?void 0:Yt.style)}),St.map(function(je,A){return O.createElement(Ti,{key:A,rowInfo:An,column:je,colIndex:A,indent:Ft,index:lt,renderIndex:er,record:Te,inverse:lr,getHeight:He})}));return ni?O.createElement("div",{ref:Pe},Mi,tn):Mi}),ua=V(Zi),xi=ua,gn=O.forwardRef(function(ve,Pe){var Xe=ve.data,lt=ve.onScroll,ut=o(G,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),xt=ut.flattenColumns,Qt=ut.onColumnResize,lr=ut.getRowKey,He=ut.expandedKeys,At=ut.prefixCls,Te=ut.childrenColumnName,Ft=ut.emptyNode,er=ut.scrollX,or=o(hi),ur=or.scrollY,St=or.listItemHeight,Gr=O.useRef(),Zr=tt(Xe,Te,He,lr),sn=O.useMemo(function(){var tn=0;return xt.map(function(wn){var pn=wn.width,rn=wn.key;return tn+=pn,[rn,pn,tn]})},[xt]),An=O.useMemo(function(){return sn.map(function(tn){return tn[2]})},[sn]);O.useEffect(function(){sn.forEach(function(tn){var wn=(0,se.Z)(tn,2),pn=wn[0],rn=wn[1];Qt(pn,rn)})},[sn]),O.useImperativeHandle(Pe,function(){var tn={};return Object.defineProperty(tn,"scrollLeft",{get:function(){var pn;return((pn=Gr.current)===null||pn===void 0?void 0:pn.getScrollInfo().x)||0},set:function(pn){var rn;(rn=Gr.current)===null||rn===void 0||rn.scrollTo({left:pn})}}),tn});var ni=function(wn,pn){var rn,Qn=(rn=Zr[pn])===null||rn===void 0?void 0:rn.record,vi=wn.onCell;if(vi){var Mi,je=vi(Qn,pn);return(Mi=je==null?void 0:je.rowSpan)!==null&&Mi!==void 0?Mi:1}return 1},zr=function(wn){var pn=wn.start,rn=wn.end,Qn=wn.getSize,vi=wn.offsetY;if(rn<0)return null;for(var Mi=xt.filter(function(Ur){return ni(Ur,pn)===0}),je=pn,A=function(xn){if(Mi=Mi.filter(function(Nn){return ni(Nn,xn)===0}),!Mi.length)return je=xn,"break"},w=pn;w>=0;w-=1){var E=A(w);if(E==="break")break}for(var z=xt.filter(function(Ur){return ni(Ur,rn)!==1}),be=rn,ze=function(xn){if(z=z.filter(function(Nn){return ni(Nn,xn)!==1}),!z.length)return be=Math.max(xn-1,rn),"break"},pt=rn;pt<Zr.length;pt+=1){var It=ze(pt);if(It==="break")break}for(var $t=[],fr=function(xn){var Nn=Zr[xn];if(!Nn)return"continue";xt.some(function(kn){return ni(kn,xn)>1})&&$t.push(xn)},Dr=je;Dr<=be;Dr+=1)var Hr=fr(Dr);var Hn=$t.map(function(Ur){var xn=Zr[Ur],Nn=lr(xn.record,Ur),kn=function(Oi){var Gi=Ur+Oi-1,Ji=lr(Zr[Gi].record,Gi),Ia=Qn(Nn,Ji);return Ia.bottom-Ia.top},Jn=Qn(Nn);return O.createElement(xi,{key:Ur,data:xn,rowKey:Nn,index:Ur,style:{top:-vi+Jn.top},extra:!0,getHeight:kn})});return Hn},Yt=O.useMemo(function(){return{columnsOffset:An}},[An]),wi="".concat(At,"-tbody"),fi;return Zr.length?fi=O.createElement(fn.Z,{fullHeight:!1,ref:Gr,className:T()(wi,"".concat(wi,"-virtual")),height:ur,itemHeight:St||24,data:Zr,itemKey:function(wn){return lr(wn.record)},scrollWidth:er,onVirtualScroll:function(wn){var pn=wn.x;lt({scrollLeft:pn})},extraRender:zr},function(tn,wn,pn){var rn=lr(tn.record,wn);return O.createElement(xi,(0,L.Z)({data:tn,rowKey:rn,index:wn},pn))}):fi=O.createElement("div",{className:T()("".concat(At,"-placeholder"))},O.createElement(Er,{component:"div",prefixCls:At},Ft)),O.createElement(ii.Provider,{value:Yt},fi)}),Ht=V(gn),Fn=Ht,Zn=function(Pe,Xe){var lt=Xe.ref,ut=Xe.onScroll;return O.createElement(Fn,{ref:lt,data:Pe,onScroll:ut})},Ei=100;function ji(ve){var Pe=ve.columns,Xe=ve.scroll,lt=ve.prefixCls,ut=lt===void 0?jn:lt,xt=ve.className,Qt=ve.listItemHeight,lr=Xe||{},He=lr.x,At=lr.y;typeof He!="number"&&(He=((Pe||[]).length+1)*Ei),typeof At!="number"&&(At=500);var Te=O.useMemo(function(){return{scrollY:At,listItemHeight:Qt}},[At,Qt]);return O.createElement(hi.Provider,{value:Te},O.createElement(Cn,(0,L.Z)({},ve,{className:T()(xt,"".concat(ut,"-virtual")),scroll:(0,Le.Z)((0,Le.Z)({},Xe),{},{x:He}),components:{body:Zn},columns:Pe,internalHooks:Fe,tailor:!0})))}function da(ve){return H(ji,ve)}var Ea=da(),qi=null;function Sa(ve){return null}var _i=Sa;function ai(ve){return null}var zi=ai,na=g(2738),Ca=g(68031),ys=g(36355),oi=g(93891),_a=g(19716),ga=g(8628),Ua=g(31724),Cs=g(58421),ns=g(71418),Fa=g(88088);function Ni(ve){return function(Xe){let{prefixCls:lt,onExpand:ut,record:xt,expanded:Qt,expandable:lr}=Xe;const He=`${lt}-row-expand-icon`;return O.createElement("button",{type:"button",onClick:At=>{ut(xt,At),At.stopPropagation()},className:T()(He,{[`${He}-spaced`]:!lr,[`${He}-expanded`]:lr&&Qt,[`${He}-collapsed`]:lr&&!Qt}),"aria-label":Qt?ve.collapse:ve.expand,"aria-expanded":Qt})}}var oa=Ni;function fs(ve,Pe){return"key"in ve&&ve.key!==void 0&&ve.key!==null?ve.key:ve.dataIndex?Array.isArray(ve.dataIndex)?ve.dataIndex.join("."):ve.dataIndex:Pe}function is(ve,Pe){return Pe?`${Pe}-${ve}`:`${ve}`}function es(ve,Pe){return typeof ve=="function"?ve(Pe):ve}function Yi(ve,Pe){const Xe=es(ve,Pe);return Object.prototype.toString.call(Xe)==="[object Object]"?"":Xe}var hs={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"},aa=hs,co=g(7657),js=function(Pe,Xe){return O.createElement(co.Z,(0,L.Z)({},Pe,{ref:Xe,icon:aa}))},wo=O.forwardRef(js),As=wo,xo=g(56762);function as(ve){const Pe=O.useRef(ve),Xe=(0,xo.Z)();return[()=>Pe.current,lt=>{Pe.current=lt,Xe()}]}var Yn=g(3113),Da=g(24905),io=g(38854),Vi=g(64165),ea=g(20834),Ki=g(40875),ki=g(5112),ya=g(17574),Pa=g(47472),Os=g(92832);function us(ve){let{value:Pe,onChange:Xe,filterSearch:lt,tablePrefixCls:ut,locale:xt}=ve;return lt?O.createElement("div",{className:`${ut}-filter-dropdown-search`},O.createElement(Os.default,{prefix:O.createElement(Pa.Z,null),placeholder:xt.filterSearchPlaceholder,onChange:Xe,value:Pe,htmlSize:1,className:`${ut}-filter-dropdown-search-input`})):null}var bs=us,ts=g(10228);const Eo=ve=>{const{keyCode:Pe}=ve;Pe===ts.Z.ENTER&&ve.stopPropagation()};var qs=O.forwardRef((ve,Pe)=>O.createElement("div",{className:ve.className,onClick:Xe=>Xe.stopPropagation(),onKeyDown:Eo,ref:Pe},ve.children));function $s(ve){let Pe=[];return(ve||[]).forEach(Xe=>{let{value:lt,children:ut}=Xe;Pe.push(lt),ut&&(Pe=[].concat((0,qt.Z)(Pe),(0,qt.Z)($s(ut))))}),Pe}function Ps(ve){return ve.some(Pe=>{let{children:Xe}=Pe;return Xe})}function Fi(ve,Pe){return typeof Pe=="string"||typeof Pe=="number"?Pe==null?void 0:Pe.toString().toLowerCase().includes(ve.trim().toLowerCase()):!1}function pi(ve){let{filters:Pe,prefixCls:Xe,filteredKeys:lt,filterMultiple:ut,searchValue:xt,filterSearch:Qt}=ve;return Pe.map((lr,He)=>{const At=String(lr.value);if(lr.children)return{key:At||He,label:lr.text,popupClassName:`${Xe}-dropdown-submenu`,children:pi({filters:lr.children,prefixCls:Xe,filteredKeys:lt,filterMultiple:ut,searchValue:xt,filterSearch:Qt})};const Te=ut?Da.default:ki.ZP,Ft={key:lr.value!==void 0?At:He,label:O.createElement(O.Fragment,null,O.createElement(Te,{checked:lt.includes(At)}),O.createElement("span",null,lr.text))};return xt.trim()?typeof Qt=="function"?Qt(xt,lr)?Ft:null:Fi(xt,lr.text)?Ft:null:Ft})}function la(ve){var Pe,Xe;const{tablePrefixCls:lt,prefixCls:ut,column:xt,dropdownPrefixCls:Qt,columnKey:lr,filterMultiple:He,filterMode:At="menu",filterSearch:Te=!1,filterState:Ft,triggerFilter:er,locale:or,children:ur,getPopupContainer:St}=ve,{filterDropdownOpen:Gr,onFilterDropdownOpenChange:Zr,filterResetToDefaultFilteredValue:sn,defaultFilteredValue:An,filterDropdownVisible:ni,onFilterDropdownVisibleChange:zr}=xt,[Yt,wi]=O.useState(!1),fi=!!(Ft&&(!((Pe=Ft.filteredKeys)===null||Pe===void 0)&&Pe.length||Ft.forceFiltered)),tn=Rn=>{wi(Rn),Zr==null||Zr(Rn),zr==null||zr(Rn)},wn=(Xe=Gr!=null?Gr:ni)!==null&&Xe!==void 0?Xe:Yt,pn=Ft==null?void 0:Ft.filteredKeys,[rn,Qn]=as(pn||[]),vi=Rn=>{let{selectedKeys:Oi}=Rn;Qn(Oi)},Mi=(Rn,Oi)=>{let{node:Gi,checked:Ji}=Oi;vi(He?{selectedKeys:Rn}:{selectedKeys:Ji&&Gi.key?[Gi.key]:[]})};O.useEffect(()=>{Yt&&vi({selectedKeys:pn||[]})},[pn]);const[je,A]=O.useState([]),w=Rn=>{A(Rn)},[E,z]=O.useState(""),be=Rn=>{const{value:Oi}=Rn.target;z(Oi)};O.useEffect(()=>{Yt||z("")},[Yt]);const ze=Rn=>{const Oi=Rn&&Rn.length?Rn:null;if(Oi===null&&(!Ft||!Ft.filteredKeys)||(0,Y.Z)(Oi,Ft==null?void 0:Ft.filteredKeys,!0))return null;er({column:xt,key:lr,filteredKeys:Oi})},pt=()=>{tn(!1),ze(rn())},It=function(){let{confirm:Rn,closeDropdown:Oi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Rn&&ze([]),Oi&&tn(!1),z(""),Qn(sn?(An||[]).map(Gi=>String(Gi)):[])},$t=function(){let{closeDropdown:Rn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Rn&&tn(!1),ze(rn())},fr=Rn=>{Rn&&pn!==void 0&&Qn(pn||[]),tn(Rn),!Rn&&!xt.filterDropdown&&pt()},Dr=T()({[`${Qt}-menu-without-submenu`]:!Ps(xt.filters||[])}),Hr=Rn=>{if(Rn.target.checked){const Oi=$s(xt==null?void 0:xt.filters).map(Gi=>String(Gi));Qn(Oi)}else Qn([])},Hn=Rn=>{let{filters:Oi}=Rn;return(Oi||[]).map((Gi,Ji)=>{const Ia=String(Gi.value),Di={title:Gi.text,key:Gi.value!==void 0?Ia:Ji};return Gi.children&&(Di.children=Hn({filters:Gi.children})),Di})},Ur=Rn=>{var Oi;return Object.assign(Object.assign({},Rn),{text:Rn.title,value:Rn.key,children:((Oi=Rn.children)===null||Oi===void 0?void 0:Oi.map(Gi=>Ur(Gi)))||[]})};let xn;if(typeof xt.filterDropdown=="function")xn=xt.filterDropdown({prefixCls:`${Qt}-custom`,setSelectedKeys:Rn=>vi({selectedKeys:Rn}),selectedKeys:rn(),confirm:$t,clearFilters:It,filters:xt.filters,visible:wn,close:()=>{tn(!1)}});else if(xt.filterDropdown)xn=xt.filterDropdown;else{const Rn=rn()||[],Oi=()=>(xt.filters||[]).length===0?O.createElement(Vi.Z,{image:Vi.Z.PRESENTED_IMAGE_SIMPLE,description:or.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):At==="tree"?O.createElement(O.Fragment,null,O.createElement(bs,{filterSearch:Te,value:E,onChange:be,tablePrefixCls:lt,locale:or}),O.createElement("div",{className:`${lt}-filter-dropdown-tree`},He?O.createElement(Da.default,{checked:Rn.length===$s(xt.filters).length,indeterminate:Rn.length>0&&Rn.length<$s(xt.filters).length,className:`${lt}-filter-dropdown-checkall`,onChange:Hr},or.filterCheckall):null,O.createElement(ya.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:He,checkStrictly:!He,className:`${Qt}-menu`,onCheck:Mi,checkedKeys:Rn,selectedKeys:Rn,showIcon:!1,treeData:Hn({filters:xt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:E.trim()?Ji=>typeof Te=="function"?Te(E,Ur(Ji)):Fi(E,Ji.title):void 0}))):O.createElement(O.Fragment,null,O.createElement(bs,{filterSearch:Te,value:E,onChange:be,tablePrefixCls:lt,locale:or}),O.createElement(ea.default,{selectable:!0,multiple:He,prefixCls:`${Qt}-menu`,className:Dr,onSelect:vi,onDeselect:vi,selectedKeys:Rn,getPopupContainer:St,openKeys:je,onOpenChange:w,items:pi({filters:xt.filters||[],filterSearch:Te,prefixCls:ut,filteredKeys:rn(),filterMultiple:He,searchValue:E})})),Gi=()=>sn?(0,Y.Z)((An||[]).map(Ji=>String(Ji)),Rn,!0):Rn.length===0;xn=O.createElement(O.Fragment,null,Oi(),O.createElement("div",{className:`${ut}-dropdown-btns`},O.createElement(Yn.ZP,{type:"link",size:"small",disabled:Gi(),onClick:()=>It()},or.filterReset),O.createElement(Yn.ZP,{type:"primary",size:"small",onClick:pt},or.filterConfirm)))}xt.filterDropdown&&(xn=O.createElement(Ki.J,{selectable:void 0},xn));const Nn=()=>O.createElement(qs,{className:`${ut}-dropdown`},xn);let kn;typeof xt.filterIcon=="function"?kn=xt.filterIcon(fi):xt.filterIcon?kn=xt.filterIcon:kn=O.createElement(As,null);const{direction:Jn}=O.useContext(ys.E_);return O.createElement("div",{className:`${ut}-column`},O.createElement("span",{className:`${lt}-column-title`},ur),O.createElement(io.Z,{dropdownRender:Nn,trigger:["click"],open:wn,onOpenChange:fr,getPopupContainer:St,placement:Jn==="rtl"?"bottomLeft":"bottomRight"},O.createElement("span",{role:"button",tabIndex:-1,className:T()(`${ut}-trigger`,{active:fi}),onClick:Rn=>{Rn.stopPropagation()}},kn)))}var ps=la;function Oa(ve,Pe,Xe){let lt=[];return(ve||[]).forEach((ut,xt)=>{var Qt;const lr=is(xt,Xe);if(ut.filters||"filterDropdown"in ut||"onFilter"in ut)if("filteredValue"in ut){let He=ut.filteredValue;"filterDropdown"in ut||(He=(Qt=He==null?void 0:He.map(String))!==null&&Qt!==void 0?Qt:He),lt.push({column:ut,key:fs(ut,lr),filteredKeys:He,forceFiltered:ut.filtered})}else lt.push({column:ut,key:fs(ut,lr),filteredKeys:Pe&&ut.defaultFilteredValue?ut.defaultFilteredValue:void 0,forceFiltered:ut.filtered});"children"in ut&&(lt=[].concat((0,qt.Z)(lt),(0,qt.Z)(Oa(ut.children,Pe,lr))))}),lt}function ks(ve,Pe,Xe,lt,ut,xt,Qt,lr){return Xe.map((He,At)=>{const Te=is(At,lr),{filterMultiple:Ft=!0,filterMode:er,filterSearch:or}=He;let ur=He;if(ur.filters||ur.filterDropdown){const St=fs(ur,Te),Gr=lt.find(Zr=>{let{key:sn}=Zr;return St===sn});ur=Object.assign(Object.assign({},ur),{title:Zr=>O.createElement(ps,{tablePrefixCls:ve,prefixCls:`${ve}-filter`,dropdownPrefixCls:Pe,column:ur,columnKey:St,filterState:Gr,filterMultiple:Ft,filterMode:er,filterSearch:or,triggerFilter:xt,locale:ut,getPopupContainer:Qt},es(He.title,Zr))})}return"children"in ur&&(ur=Object.assign(Object.assign({},ur),{children:ks(ve,Pe,ur.children,lt,ut,xt,Qt,Te)})),ur})}function Gs(ve){const Pe={};return ve.forEach(Xe=>{let{key:lt,filteredKeys:ut,column:xt}=Xe;const{filters:Qt,filterDropdown:lr}=xt;if(lr)Pe[lt]=ut||null;else if(Array.isArray(ut)){const He=$s(Qt);Pe[lt]=He.filter(At=>ut.includes(String(At)))}else Pe[lt]=null}),Pe}function mo(ve,Pe){return Pe.reduce((Xe,lt)=>{const{column:{onFilter:ut,filters:xt},filteredKeys:Qt}=lt;return ut&&Qt&&Qt.length?Xe.filter(lr=>Qt.some(He=>{const At=$s(xt),Te=At.findIndex(er=>String(er)===String(He)),Ft=Te!==-1?At[Te]:He;return ut(Ft,lr)})):Xe},ve)}const Ns=ve=>ve.flatMap(Pe=>"children"in Pe?[Pe].concat((0,qt.Z)(Ns(Pe.children||[]))):[Pe]);function Ii(ve){let{prefixCls:Pe,dropdownPrefixCls:Xe,mergedColumns:lt,onFilterChange:ut,getPopupContainer:xt,locale:Qt}=ve;const lr=O.useMemo(()=>Ns(lt||[]),[lt]),[He,At]=O.useState(()=>Oa(lr,!0)),Te=O.useMemo(()=>{const ur=Oa(lr,!1);if(ur.length===0)return ur;let St=!0,Gr=!0;if(ur.forEach(Zr=>{let{filteredKeys:sn}=Zr;sn!==void 0?St=!1:Gr=!1}),St){const Zr=(lr||[]).map((sn,An)=>fs(sn,is(An)));return He.filter(sn=>{let{key:An}=sn;return Zr.includes(An)}).map(sn=>{const An=lr[Zr.findIndex(ni=>ni===sn.key)];return Object.assign(Object.assign({},sn),{column:Object.assign(Object.assign({},sn.column),An),forceFiltered:An.filtered})})}return ur},[lr,He]),Ft=O.useMemo(()=>Gs(Te),[Te]),er=ur=>{const St=Te.filter(Gr=>{let{key:Zr}=Gr;return Zr!==ur.key});St.push(ur),At(St),ut(Gs(St),St)};return[ur=>ks(Pe,Xe,ur,Te,Qt,er,xt),Te,Ft]}var kl=Ii;function Ys(ve,Pe,Xe){const lt=O.useRef({});function ut(xt){if(!lt.current||lt.current.data!==ve||lt.current.childrenColumnName!==Pe||lt.current.getRowKey!==Xe){let lr=function(He){He.forEach((At,Te)=>{const Ft=Xe(At,Te);Qt.set(Ft,At),At&&typeof At=="object"&&Pe in At&&lr(At[Pe]||[])})};const Qt=new Map;lr(ve),lt.current={data:ve,childrenColumnName:Pe,kvMap:Qt,getRowKey:Xe}}return lt.current.kvMap.get(xt)}return[ut]}var il=g(50371),ko=function(ve,Pe){var Xe={};for(var lt in ve)Object.prototype.hasOwnProperty.call(ve,lt)&&Pe.indexOf(lt)<0&&(Xe[lt]=ve[lt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,lt=Object.getOwnPropertySymbols(ve);ut<lt.length;ut++)Pe.indexOf(lt[ut])<0&&Object.prototype.propertyIsEnumerable.call(ve,lt[ut])&&(Xe[lt[ut]]=ve[lt[ut]]);return Xe};const Ao=10;function Ba(ve,Pe){const Xe={current:ve.current,pageSize:ve.pageSize};return Object.keys(Pe&&typeof Pe=="object"?Pe:{}).forEach(ut=>{const xt=ve[ut];typeof xt!="function"&&(Xe[ut]=xt)}),Xe}function vl(ve,Pe,Xe){const lt=Xe&&typeof Xe=="object"?Xe:{},{total:ut=0}=lt,xt=ko(lt,["total"]),[Qt,lr]=(0,O.useState)(()=>({current:"defaultCurrent"in xt?xt.defaultCurrent:1,pageSize:"defaultPageSize"in xt?xt.defaultPageSize:Ao})),He=(0,il.Z)(Qt,xt,{total:ut>0?ut:ve}),At=Math.ceil((ut||ve)/He.pageSize);He.current>At&&(He.current=At||1);const Te=(er,or)=>{lr({current:er!=null?er:1,pageSize:or||He.pageSize})},Ft=(er,or)=>{var ur;Xe&&((ur=Xe.onChange)===null||ur===void 0||ur.call(Xe,er,or)),Te(er,or),Pe(er,or||(He==null?void 0:He.pageSize))};return Xe===!1?[{},()=>{}]:[Object.assign(Object.assign({},He),{onChange:Ft}),Te]}var yl=vl,fo=g(84105),go=g(35654),Na=g(90782),pa=g(71430),eo=g(18929);const Ya={},rs="SELECT_ALL",Hs="SELECT_INVERT",ba="SELECT_NONE",Zs=[],ao=(ve,Pe)=>{let Xe=[];return(Pe||[]).forEach(lt=>{Xe.push(lt),lt&&typeof lt=="object"&&ve in lt&&(Xe=[].concat((0,qt.Z)(Xe),(0,qt.Z)(ao(ve,lt[ve]))))}),Xe};var Io=(ve,Pe)=>{const{preserveSelectedRowKeys:Xe,selectedRowKeys:lt,defaultSelectedRowKeys:ut,getCheckboxProps:xt,onChange:Qt,onSelect:lr,onSelectAll:He,onSelectInvert:At,onSelectNone:Te,onSelectMultiple:Ft,columnWidth:er,type:or,selections:ur,fixed:St,renderCell:Gr,hideSelectAll:Zr,checkStrictly:sn=!0}=Pe||{},{prefixCls:An,data:ni,pageData:zr,getRecordByKey:Yt,getRowKey:wi,expandType:fi,childrenColumnName:tn,locale:wn,getPopupContainer:pn}=ve,[rn,Qn]=(0,eo.Z)(lt||ut||Zs,{value:lt}),vi=O.useRef(new Map),Mi=(0,O.useCallback)(Ur=>{if(Xe){const xn=new Map;Ur.forEach(Nn=>{let kn=Yt(Nn);!kn&&vi.current.has(Nn)&&(kn=vi.current.get(Nn)),xn.set(Nn,kn)}),vi.current=xn}},[Yt,Xe]);O.useEffect(()=>{Mi(rn)},[rn]);const{keyEntities:je}=(0,O.useMemo)(()=>{if(sn)return{keyEntities:null};let Ur=ni;if(Xe){const xn=new Set(ni.map((kn,Jn)=>wi(kn,Jn))),Nn=Array.from(vi.current).reduce((kn,Jn)=>{let[Rn,Oi]=Jn;return xn.has(Rn)?kn:kn.concat(Oi)},[]);Ur=[].concat((0,qt.Z)(Ur),(0,qt.Z)(Nn))}return(0,pa.I8)(Ur,{externalGetKey:wi,childrenPropName:tn})},[ni,wi,sn,tn,Xe]),A=(0,O.useMemo)(()=>ao(tn,zr),[tn,zr]),w=(0,O.useMemo)(()=>{const Ur=new Map;return A.forEach((xn,Nn)=>{const kn=wi(xn,Nn),Jn=(xt?xt(xn):null)||{};Ur.set(kn,Jn)}),Ur},[A,wi,xt]),E=(0,O.useCallback)(Ur=>{var xn;return!!(!((xn=w.get(wi(Ur)))===null||xn===void 0)&&xn.disabled)},[w,wi]),[z,be]=(0,O.useMemo)(()=>{if(sn)return[rn||[],[]];const{checkedKeys:Ur,halfCheckedKeys:xn}=(0,Na.S)(rn,!0,je,E);return[Ur||[],xn]},[rn,sn,je,E]),ze=(0,O.useMemo)(()=>{const Ur=or==="radio"?z.slice(0,1):z;return new Set(Ur)},[z,or]),pt=(0,O.useMemo)(()=>or==="radio"?new Set:new Set(be),[be,or]),[It,$t]=(0,O.useState)(null);O.useEffect(()=>{Pe||Qn(Zs)},[!!Pe]);const fr=(0,O.useCallback)((Ur,xn)=>{let Nn,kn;Mi(Ur),Xe?(Nn=Ur,kn=Ur.map(Jn=>vi.current.get(Jn))):(Nn=[],kn=[],Ur.forEach(Jn=>{const Rn=Yt(Jn);Rn!==void 0&&(Nn.push(Jn),kn.push(Rn))})),Qn(Nn),Qt==null||Qt(Nn,kn,{type:xn})},[Qn,Yt,Qt,Xe]),Dr=(0,O.useCallback)((Ur,xn,Nn,kn)=>{if(lr){const Jn=Nn.map(Rn=>Yt(Rn));lr(Yt(Ur),xn,Jn,kn)}fr(Nn,"single")},[lr,Yt,fr]),Hr=(0,O.useMemo)(()=>!ur||Zr?null:(ur===!0?[rs,Hs,ba]:ur).map(xn=>xn===rs?{key:"all",text:wn.selectionAll,onSelect(){fr(ni.map((Nn,kn)=>wi(Nn,kn)).filter(Nn=>{const kn=w.get(Nn);return!(kn!=null&&kn.disabled)||ze.has(Nn)}),"all")}}:xn===Hs?{key:"invert",text:wn.selectInvert,onSelect(){const Nn=new Set(ze);zr.forEach((Jn,Rn)=>{const Oi=wi(Jn,Rn),Gi=w.get(Oi);Gi!=null&&Gi.disabled||(Nn.has(Oi)?Nn.delete(Oi):Nn.add(Oi))});const kn=Array.from(Nn);At&&At(kn),fr(kn,"invert")}}:xn===ba?{key:"none",text:wn.selectNone,onSelect(){Te==null||Te(),fr(Array.from(ze).filter(Nn=>{const kn=w.get(Nn);return kn==null?void 0:kn.disabled}),"none")}}:xn).map(xn=>Object.assign(Object.assign({},xn),{onSelect:function(){for(var Nn,kn,Jn=arguments.length,Rn=new Array(Jn),Oi=0;Oi<Jn;Oi++)Rn[Oi]=arguments[Oi];(kn=xn.onSelect)===null||kn===void 0||(Nn=kn).call.apply(Nn,[xn].concat(Rn)),$t(null)}})),[ur,ze,zr,wi,At,fr]);return[(0,O.useCallback)(Ur=>{var xn;if(!Pe)return Ur.filter(fa=>fa!==Ya);let Nn=(0,qt.Z)(Ur);const kn=new Set(ze),Jn=A.map(wi).filter(fa=>!w.get(fa).disabled),Rn=Jn.every(fa=>kn.has(fa)),Oi=Jn.some(fa=>kn.has(fa)),Gi=()=>{const fa=[];Rn?Jn.forEach(ma=>{kn.delete(ma),fa.push(ma)}):Jn.forEach(ma=>{kn.has(ma)||(kn.add(ma),fa.push(ma))});const Aa=Array.from(kn);He==null||He(!Rn,Aa.map(ma=>Yt(ma)),fa.map(ma=>Yt(ma))),fr(Aa,"all"),$t(null)};let Ji;if(or!=="radio"){let fa;if(Hr){const ca={getPopupContainer:pn,items:Hr.map((xs,_s)=>{const{key:Js,text:Ws,onSelect:Vs}=xs;return{key:Js!=null?Js:_s,onClick:()=>{Vs==null||Vs(Jn)},label:Ws}})};fa=O.createElement("div",{className:`${An}-selection-extra`},O.createElement(io.Z,{menu:ca,getPopupContainer:pn},O.createElement("span",null,O.createElement(fo.Z,null))))}const Aa=A.map((ca,xs)=>{const _s=wi(ca,xs),Js=w.get(_s)||{};return Object.assign({checked:kn.has(_s)},Js)}).filter(ca=>{let{disabled:xs}=ca;return xs}),ma=!!Aa.length&&Aa.length===A.length,ja=ma&&Aa.every(ca=>{let{checked:xs}=ca;return xs}),os=ma&&Aa.some(ca=>{let{checked:xs}=ca;return xs});Ji=!Zr&&O.createElement("div",{className:`${An}-selection`},O.createElement(Da.default,{checked:ma?ja:!!A.length&&Rn,indeterminate:ma?!ja&&os:!Rn&&Oi,onChange:Gi,disabled:A.length===0||ma,"aria-label":fa?"Custom selection":"Select all",skipGroup:!0}),fa)}let Ia;or==="radio"?Ia=(fa,Aa,ma)=>{const ja=wi(Aa,ma),os=kn.has(ja);return{node:O.createElement(ki.ZP,Object.assign({},w.get(ja),{checked:os,onClick:ca=>ca.stopPropagation(),onChange:ca=>{kn.has(ja)||Dr(ja,!0,[ja],ca.nativeEvent)}})),checked:os}}:Ia=(fa,Aa,ma)=>{var ja;const os=wi(Aa,ma),ca=kn.has(os),xs=pt.has(os),_s=w.get(os);let Js;return fi==="nest"?Js=xs:Js=(ja=_s==null?void 0:_s.indeterminate)!==null&&ja!==void 0?ja:xs,{node:O.createElement(Da.default,Object.assign({},_s,{indeterminate:Js,checked:ca,skipGroup:!0,onClick:Ws=>Ws.stopPropagation(),onChange:Ws=>{let{nativeEvent:Vs}=Ws;const{shiftKey:Vo}=Vs;let $o=-1,Co=-1;if(Vo&&sn){const ho=new Set([It,os]);Jn.some((to,Ds)=>{if(ho.has(to))if($o===-1)$o=Ds;else return Co=Ds,!0;return!1})}if(Co!==-1&&$o!==Co&&sn){const ho=Jn.slice($o,Co+1),to=[];ca?ho.forEach(ls=>{kn.has(ls)&&(to.push(ls),kn.delete(ls))}):ho.forEach(ls=>{kn.has(ls)||(to.push(ls),kn.add(ls))});const Ds=Array.from(kn);Ft==null||Ft(!ca,Ds.map(ls=>Yt(ls)),to.map(ls=>Yt(ls))),fr(Ds,"multiple")}else{const ho=z;if(sn){const to=ca?(0,go._5)(ho,os):(0,go.L0)(ho,os);Dr(os,!ca,to,Vs)}else{const to=(0,Na.S)([].concat((0,qt.Z)(ho),[os]),!0,je,E),{checkedKeys:Ds,halfCheckedKeys:ls}=to;let Al=Ds;if(ca){const Cl=new Set(Ds);Cl.delete(os),Al=(0,Na.S)(Array.from(Cl),{checked:!1,halfCheckedKeys:ls},je,E).checkedKeys}Dr(os,!ca,Al,Vs)}}$t(ca?null:os)}})),checked:ca}};const Di=(fa,Aa,ma)=>{const{node:ja,checked:os}=Ia(fa,Aa,ma);return Gr?Gr(os,Aa,ma,ja):ja};if(!Nn.includes(Ya))if(Nn.findIndex(fa=>{var Aa;return((Aa=fa[Qe])===null||Aa===void 0?void 0:Aa.columnType)==="EXPAND_COLUMN"})===0){const[fa,...Aa]=Nn;Nn=[fa,Ya].concat((0,qt.Z)(Aa))}else Nn=[Ya].concat((0,qt.Z)(Nn));const ss=Nn.indexOf(Ya);Nn=Nn.filter((fa,Aa)=>fa!==Ya||Aa===ss);const La=Nn[ss-1],va=Nn[ss+1];let qn=St;qn===void 0&&((va==null?void 0:va.fixed)!==void 0?qn=va.fixed:(La==null?void 0:La.fixed)!==void 0&&(qn=La.fixed)),qn&&La&&((xn=La[Qe])===null||xn===void 0?void 0:xn.columnType)==="EXPAND_COLUMN"&&La.fixed===void 0&&(La.fixed=qn);const Qa=T()(`${An}-selection-col`,{[`${An}-selection-col-with-dropdown`]:ur&&or==="checkbox"}),Fs={fixed:qn,width:er,className:`${An}-selection-column`,title:Pe.columnTitle||Ji,render:Di,onCell:Pe.onCell,[Qe]:{className:Qa}};return Nn.map(fa=>fa===Ya?Fs:fa)},[wi,A,Pe,z,ze,pt,er,Hr,fi,It,w,Ft,Dr,E]),ze]},Xa=g(89489),bl=g(59477),so=g(6848);const vo="ascend",tu="descend";function wl(ve){return typeof ve.sorter=="object"&&typeof ve.sorter.multiple=="number"?ve.sorter.multiple:!1}function cl(ve){return typeof ve=="function"?ve:ve&&typeof ve=="object"&&ve.compare?ve.compare:!1}function Ml(ve,Pe){return Pe?ve[ve.indexOf(Pe)+1]:ve[0]}function xl(ve,Pe,Xe){let lt=[];function ut(xt,Qt){lt.push({column:xt,key:fs(xt,Qt),multiplePriority:wl(xt),sortOrder:xt.sortOrder})}return(ve||[]).forEach((xt,Qt)=>{const lr=is(Qt,Xe);xt.children?("sortOrder"in xt&&ut(xt,lr),lt=[].concat((0,qt.Z)(lt),(0,qt.Z)(xl(xt.children,Pe,lr)))):xt.sorter&&("sortOrder"in xt?ut(xt,lr):Pe&&xt.defaultSortOrder&<.push({column:xt,key:fs(xt,lr),multiplePriority:wl(xt),sortOrder:xt.defaultSortOrder}))}),lt}function Mo(ve,Pe,Xe,lt,ut,xt,Qt,lr){return(Pe||[]).map((He,At)=>{const Te=is(At,lr);let Ft=He;if(Ft.sorter){const er=Ft.sortDirections||ut,or=Ft.showSorterTooltip===void 0?Qt:Ft.showSorterTooltip,ur=fs(Ft,Te),St=Xe.find(fi=>{let{key:tn}=fi;return tn===ur}),Gr=St?St.sortOrder:null,Zr=Ml(er,Gr);let sn;if(He.sortIcon)sn=He.sortIcon({sortOrder:Gr});else{const fi=er.includes(vo)&&O.createElement(bl.Z,{className:T()(`${ve}-column-sorter-up`,{active:Gr===vo})}),tn=er.includes(tu)&&O.createElement(Xa.Z,{className:T()(`${ve}-column-sorter-down`,{active:Gr===tu})});sn=O.createElement("span",{className:T()(`${ve}-column-sorter`,{[`${ve}-column-sorter-full`]:!!(fi&&tn)})},O.createElement("span",{className:`${ve}-column-sorter-inner`,"aria-hidden":"true"},fi,tn))}const{cancelSort:An,triggerAsc:ni,triggerDesc:zr}=xt||{};let Yt=An;Zr===tu?Yt=zr:Zr===vo&&(Yt=ni);const wi=typeof or=="object"?or:{title:Yt};Ft=Object.assign(Object.assign({},Ft),{className:T()(Ft.className,{[`${ve}-column-sort`]:Gr}),title:fi=>{const tn=O.createElement("div",{className:`${ve}-column-sorters`},O.createElement("span",{className:`${ve}-column-title`},es(He.title,fi)),sn);return or?O.createElement(so.Z,Object.assign({},wi),tn):tn},onHeaderCell:fi=>{const tn=He.onHeaderCell&&He.onHeaderCell(fi)||{},wn=tn.onClick,pn=tn.onKeyDown;tn.onClick=vi=>{lt({column:He,key:ur,sortOrder:Zr,multiplePriority:wl(He)}),wn==null||wn(vi)},tn.onKeyDown=vi=>{vi.keyCode===ts.Z.ENTER&&(lt({column:He,key:ur,sortOrder:Zr,multiplePriority:wl(He)}),pn==null||pn(vi))};const rn=Yi(He.title,{}),Qn=rn==null?void 0:rn.toString();return Gr?tn["aria-sort"]=Gr==="ascend"?"ascending":"descending":tn["aria-label"]=Qn||"",tn.className=T()(tn.className,`${ve}-column-has-sorters`),tn.tabIndex=0,He.ellipsis&&(tn.title=(rn!=null?rn:"").toString()),tn}})}return"children"in Ft&&(Ft=Object.assign(Object.assign({},Ft),{children:Mo(ve,Ft.children,Xe,lt,ut,xt,Qt,Te)})),Ft})}function Ks(ve){const{column:Pe,sortOrder:Xe}=ve;return{column:Pe,order:Xe,field:Pe.dataIndex,columnKey:Pe.key}}function To(ve){const Pe=ve.filter(Xe=>{let{sortOrder:lt}=Xe;return lt}).map(Ks);return Pe.length===0&&ve.length?Object.assign(Object.assign({},Ks(ve[ve.length-1])),{column:void 0}):Pe.length<=1?Pe[0]||{}:Pe}function Va(ve,Pe,Xe){const lt=Pe.slice().sort((Qt,lr)=>lr.multiplePriority-Qt.multiplePriority),ut=ve.slice(),xt=lt.filter(Qt=>{let{column:{sorter:lr},sortOrder:He}=Qt;return cl(lr)&&He});return xt.length?ut.sort((Qt,lr)=>{for(let He=0;He<xt.length;He+=1){const At=xt[He],{column:{sorter:Te},sortOrder:Ft}=At,er=cl(Te);if(er&&Ft){const or=er(Qt,lr,Ft);if(or!==0)return Ft===vo?or:-or}}return 0}).map(Qt=>{const lr=Qt[Xe];return lr?Object.assign(Object.assign({},Qt),{[Xe]:Va(lr,Pe,Xe)}):Qt}):ut}function ms(ve){let{prefixCls:Pe,mergedColumns:Xe,onSorterChange:lt,sortDirections:ut,tableLocale:xt,showSorterTooltip:Qt}=ve;const[lr,He]=O.useState(xl(Xe,!0)),At=O.useMemo(()=>{let ur=!0;const St=xl(Xe,!1);if(!St.length)return lr;const Gr=[];function Zr(An){ur?Gr.push(An):Gr.push(Object.assign(Object.assign({},An),{sortOrder:null}))}let sn=null;return St.forEach(An=>{sn===null?(Zr(An),An.sortOrder&&(An.multiplePriority===!1?ur=!1:sn=!0)):(sn&&An.multiplePriority!==!1||(ur=!1),Zr(An))}),Gr},[Xe,lr]),Te=O.useMemo(()=>{const ur=At.map(St=>{let{column:Gr,sortOrder:Zr}=St;return{column:Gr,order:Zr}});return{sortColumns:ur,sortColumn:ur[0]&&ur[0].column,sortOrder:ur[0]&&ur[0].order}},[At]);function Ft(ur){let St;ur.multiplePriority===!1||!At.length||At[0].multiplePriority===!1?St=[ur]:St=[].concat((0,qt.Z)(At.filter(Gr=>{let{key:Zr}=Gr;return Zr!==ur.key})),[ur]),He(St),lt(To(St),St)}return[ur=>Mo(Pe,ur,At,Ft,ut,xt,Qt),At,Te,()=>To(At)]}function Ja(ve,Pe){return ve.map(Xe=>{const lt=Object.assign({},Xe);return lt.title=es(Xe.title,Pe),"children"in lt&&(lt.children=Ja(lt.children,Pe)),lt})}function ws(ve){return[O.useCallback(Xe=>Ja(Xe,ve),[ve])]}var Xs=Pi((ve,Pe)=>{const{_renderTimes:Xe}=ve,{_renderTimes:lt}=Pe;return Xe!==lt}),El=da((ve,Pe)=>{const{_renderTimes:Xe}=ve,{_renderTimes:lt}=Pe;return Xe!==lt}),al=g(64993),Ul=g(17313),Au=g(83116),Ql=g(37613),ci=ve=>{const{componentCls:Pe}=ve,Xe=`${ve.lineWidth}px ${ve.lineType} ${ve.tableBorderColor}`,lt=(ut,xt,Qt)=>({[`&${Pe}-${ut}`]:{[`> ${Pe}-container`]:{[`> ${Pe}-content, > ${Pe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Pe}-expanded-row-fixed`]:{margin:`-${xt}px -${Qt+ve.lineWidth}px`}}}}}});return{[`${Pe}-wrapper`]:{[`${Pe}${Pe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Pe}-title`]:{border:Xe,borderBottom:0},[`> ${Pe}-container`]:{borderInlineStart:Xe,borderTop:Xe,[`
|
|
|
> ${Pe}-content,
|
|
|
> ${Pe}-header,
|
|
|
> ${Pe}-body,
|
|
|
> ${Pe}-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:Xe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Xe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Pe}-cell-fix-right-first::after`]:{borderInlineEnd:Xe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Pe}-expanded-row-fixed`]:{margin:`-${ve.tablePaddingVertical}px -${ve.tablePaddingHorizontal+ve.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ve.lineWidth,bottom:0,borderInlineEnd:Xe,content:'""'}}}}}},[`&${Pe}-scroll-horizontal`]:{[`> ${Pe}-container > ${Pe}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Pe}-expanded-row,
|
|
|
> tr${Pe}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},lt("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle)),lt("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall)),{[`> ${Pe}-footer`]:{border:Xe,borderTop:0}}),[`${Pe}-cell`]:{[`${Pe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ve.lineWidth}px 0 ${ve.lineWidth}px ${ve.tableHeaderBg}`}},[`${Pe}-bordered ${Pe}-cell-scrollbar`]:{borderInlineEnd:Xe}}}},ru=ve=>{const{componentCls:Pe}=ve;return{[`${Pe}-wrapper`]:{[`${Pe}-cell-ellipsis`]:Object.assign(Object.assign({},Ul.vS),{wordBreak:"keep-all",[`
|
|
|
&${Pe}-cell-fix-left-last,
|
|
|
&${Pe}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Pe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Pe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},nc=ve=>{const{componentCls:Pe}=ve;return{[`${Pe}-wrapper`]:{[`${Pe}-tbody > tr${Pe}-placeholder`]:{textAlign:"center",color:ve.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ve.colorBgContainer}}}}},fu=g(15969),tl=ve=>{const{componentCls:Pe,antCls:Xe,controlInteractiveSize:lt,motionDurationSlow:ut,lineWidth:xt,paddingXS:Qt,lineType:lr,tableBorderColor:He,tableExpandIconBg:At,tableExpandColumnWidth:Te,borderRadius:Ft,fontSize:er,fontSizeSM:or,lineHeight:ur,tablePaddingVertical:St,tablePaddingHorizontal:Gr,tableExpandedRowBg:Zr,paddingXXS:sn}=ve,An=lt/2-xt,ni=An*2+xt*3,zr=`${xt}px ${lr} ${He}`,Yt=sn-xt;return{[`${Pe}-wrapper`]:{[`${Pe}-expand-icon-col`]:{width:Te},[`${Pe}-row-expand-icon-cell`]:{textAlign:"center",[`${Pe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Pe}-row-indent`]:{height:1,float:"left"},[`${Pe}-row-expand-icon`]:Object.assign(Object.assign({},(0,fu.N)(ve)),{position:"relative",float:"left",boxSizing:"border-box",width:ni,height:ni,padding:0,color:"inherit",lineHeight:`${ni}px`,background:At,border:zr,borderRadius:Ft,transform:`scale(${lt/ni})`,transition:`all ${ut}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${ut} ease-out`,content:'""'},"&::before":{top:An,insetInlineEnd:Yt,insetInlineStart:Yt,height:xt},"&::after":{top:Yt,bottom:Yt,insetInlineStart:An,width:xt,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"}}),[`${Pe}-row-indent + ${Pe}-row-expand-icon`]:{marginTop:(er*ur-xt*3)/2-Math.ceil((or*1.4-xt*3)/2),marginInlineEnd:Qt},[`tr${Pe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Zr}},[`${Xe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Pe}-expanded-row-fixed`]:{position:"relative",margin:`-${St}px -${Gr}px`,padding:`${St}px ${Gr}px`}}}},b=ve=>{const{componentCls:Pe,antCls:Xe,iconCls:lt,tableFilterDropdownWidth:ut,tableFilterDropdownSearchWidth:xt,paddingXXS:Qt,paddingXS:lr,colorText:He,lineWidth:At,lineType:Te,tableBorderColor:Ft,tableHeaderIconColor:er,fontSizeSM:or,tablePaddingHorizontal:ur,borderRadius:St,motionDurationSlow:Gr,colorTextDescription:Zr,colorPrimary:sn,tableHeaderFilterActiveBg:An,colorTextDisabled:ni,tableFilterDropdownBg:zr,tableFilterDropdownHeight:Yt,controlItemBgHover:wi,controlItemBgActive:fi,boxShadowSecondary:tn,filterDropdownMenuBg:wn}=ve,pn=`${Xe}-dropdown`,rn=`${Pe}-filter-dropdown`,Qn=`${Xe}-tree`,vi=`${At}px ${Te} ${Ft}`;return[{[`${Pe}-wrapper`]:{[`${Pe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Pe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Qt,marginInline:`${Qt}px ${-ur/2}px`,padding:`0 ${Qt}px`,color:er,fontSize:or,borderRadius:St,cursor:"pointer",transition:`all ${Gr}`,"&:hover":{color:Zr,background:An},"&.active":{color:sn}}}},{[`${Xe}-dropdown`]:{[rn]:Object.assign(Object.assign({},(0,Ul.Wf)(ve)),{minWidth:ut,backgroundColor:zr,borderRadius:St,boxShadow:tn,overflow:"hidden",[`${pn}-menu`]:{maxHeight:Yt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:wn,"&:empty::after":{display:"block",padding:`${lr}px 0`,color:ni,fontSize:or,textAlign:"center",content:'"Not Found"'}},[`${rn}-tree`]:{paddingBlock:`${lr}px 0`,paddingInline:lr,[Qn]:{padding:0},[`${Qn}-treenode ${Qn}-node-content-wrapper:hover`]:{backgroundColor:wi},[`${Qn}-treenode-checkbox-checked ${Qn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:fi}}},[`${rn}-search`]:{padding:lr,borderBottom:vi,"&-input":{input:{minWidth:xt},[lt]:{color:ni}}},[`${rn}-checkall`]:{width:"100%",marginBottom:Qt,marginInlineStart:Qt},[`${rn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${lr-At}px ${lr}px`,overflow:"hidden",borderTop:vi}})}},{[`${Xe}-dropdown ${rn}, ${rn}-submenu`]:{[`${Xe}-checkbox-wrapper + span`]:{paddingInlineStart:lr,color:He},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},v=ve=>{const{componentCls:Pe,lineWidth:Xe,colorSplit:lt,motionDurationSlow:ut,zIndexTableFixed:xt,tableBg:Qt,zIndexTableSticky:lr}=ve,He=lt;return{[`${Pe}-wrapper`]:{[`
|
|
|
${Pe}-cell-fix-left,
|
|
|
${Pe}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:xt,background:Qt},[`
|
|
|
${Pe}-cell-fix-left-first::after,
|
|
|
${Pe}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Xe,width:30,transform:"translateX(100%)",transition:`box-shadow ${ut}`,content:'""',pointerEvents:"none"},[`${Pe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Pe}-cell-fix-right-first::after,
|
|
|
${Pe}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Xe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${ut}`,content:'""',pointerEvents:"none"},[`${Pe}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:lr+1,width:30,transition:`box-shadow ${ut}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Pe}-ping-left`]:{[`&:not(${Pe}-has-fix-left) ${Pe}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${He}`}},[`
|
|
|
${Pe}-cell-fix-left-first::after,
|
|
|
${Pe}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${He}`},[`${Pe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Pe}-ping-right`]:{[`&:not(${Pe}-has-fix-right) ${Pe}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${He}`}},[`
|
|
|
${Pe}-cell-fix-right-first::after,
|
|
|
${Pe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${He}`}}}}},ne=ve=>{const{componentCls:Pe,antCls:Xe}=ve;return{[`${Pe}-wrapper`]:{[`${Pe}-pagination${Xe}-pagination`]:{margin:`${ve.margin}px 0`},[`${Pe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ve.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ge=ve=>{const{componentCls:Pe,tableRadius:Xe}=ve;return{[`${Pe}-wrapper`]:{[Pe]:{[`${Pe}-title, ${Pe}-header`]:{borderRadius:`${Xe}px ${Xe}px 0 0`},[`${Pe}-title + ${Pe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Pe}-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:Xe,borderStartEndRadius:Xe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Xe},"> *:last-child":{borderStartEndRadius:Xe}}},"&-footer":{borderRadius:`0 0 ${Xe}px ${Xe}px`}}}}},ke=ve=>{const{componentCls:Pe}=ve;return{[`${Pe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Pe}-pagination-left`]:{justifyContent:"flex-end"},[`${Pe}-pagination-right`]:{justifyContent:"flex-start"},[`${Pe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Pe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Pe}-row-indent`]:{float:"right"}}}}},vt=ve=>{const{componentCls:Pe,antCls:Xe,iconCls:lt,fontSizeIcon:ut,padding:xt,paddingXS:Qt,tableHeaderIconColor:lr,tableHeaderIconColorHover:He,tableSelectionColumnWidth:At}=ve;return{[`${Pe}-wrapper`]:{[`${Pe}-selection-col`]:{width:At,[`&${Pe}-selection-col-with-dropdown`]:{width:At+ut+xt/4}},[`${Pe}-bordered ${Pe}-selection-col`]:{width:At+Qt*2,[`&${Pe}-selection-col-with-dropdown`]:{width:At+ut+xt/4+Qt*2}},[`
|
|
|
table tr th${Pe}-selection-column,
|
|
|
table tr td${Pe}-selection-column
|
|
|
`]:{paddingInlineEnd:ve.paddingXS,paddingInlineStart:ve.paddingXS,textAlign:"center",[`${Xe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Pe}-selection-column${Pe}-cell-fix-left`]:{zIndex:ve.zIndexTableFixed+1},[`table tr th${Pe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Pe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Pe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ve.tablePaddingHorizontal/4}px`,[lt]:{color:lr,fontSize:ut,verticalAlign:"baseline","&:hover":{color:He}}}}}},Ot=ve=>{const{componentCls:Pe}=ve,Xe=(lt,ut,xt,Qt)=>({[`${Pe}${Pe}-${lt}`]:{fontSize:Qt,[`
|
|
|
${Pe}-title,
|
|
|
${Pe}-footer,
|
|
|
${Pe}-cell,
|
|
|
${Pe}-thead > tr > th,
|
|
|
${Pe}-tbody > tr > th,
|
|
|
${Pe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${ut}px ${xt}px`},[`${Pe}-filter-trigger`]:{marginInlineEnd:`-${xt/2}px`},[`${Pe}-expanded-row-fixed`]:{margin:`-${ut}px -${xt}px`},[`${Pe}-tbody`]:{[`${Pe}-wrapper:only-child ${Pe}`]:{marginBlock:`-${ut}px`,marginInline:`${ve.tableExpandColumnWidth-xt}px -${xt}px`}},[`${Pe}-selection-column`]:{paddingInlineStart:`${xt/4}px`}}});return{[`${Pe}-wrapper`]:Object.assign(Object.assign({},Xe("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle,ve.tableFontSizeMiddle)),Xe("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall,ve.tableFontSizeSmall))}},cr=ve=>{const{componentCls:Pe,marginXXS:Xe,fontSizeIcon:lt,tableHeaderIconColor:ut,tableHeaderIconColorHover:xt}=ve;return{[`${Pe}-wrapper`]:{[`${Pe}-thead th${Pe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,"&:hover":{background:ve.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ve.colorPrimary},[`
|
|
|
&${Pe}-cell-fix-left:hover,
|
|
|
&${Pe}-cell-fix-right:hover
|
|
|
`]:{background:ve.tableFixedHeaderSortActiveBg}},[`${Pe}-thead th${Pe}-column-sort`]:{background:ve.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Pe}-column-sort`]:{background:ve.tableBodySortBg},[`${Pe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Pe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Pe}-column-sorter`]:{marginInlineStart:Xe,color:ut,fontSize:0,transition:`color ${ve.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:lt,"&.active":{color:ve.colorPrimary}},[`${Pe}-column-sorter-up + ${Pe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Pe}-column-sorters:hover ${Pe}-column-sorter`]:{color:xt}}}},hr=ve=>{const{componentCls:Pe,opacityLoading:Xe,tableScrollThumbBg:lt,tableScrollThumbBgHover:ut,tableScrollThumbSize:xt,tableScrollBg:Qt,zIndexTableSticky:lr,stickyScrollBarBorderRadius:He}=ve,At=`${ve.lineWidth}px ${ve.lineType} ${ve.tableBorderColor}`;return{[`${Pe}-wrapper`]:{[`${Pe}-sticky`]:{"&-holder":{position:"sticky",zIndex:lr,background:ve.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${xt}px !important`,zIndex:lr,display:"flex",alignItems:"center",background:Qt,borderTop:At,opacity:Xe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:xt,backgroundColor:lt,borderRadius:He,transition:`all ${ve.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:ut}}}}}}},Ar=ve=>{const{componentCls:Pe,lineWidth:Xe,tableBorderColor:lt}=ve,ut=`${Xe}px ${ve.lineType} ${lt}`;return{[`${Pe}-wrapper`]:{[`${Pe}-summary`]:{position:"relative",zIndex:ve.zIndexTableFixed,background:ve.tableBg,"> tr":{"> th, > td":{borderBottom:ut}}},[`div${Pe}-summary`]:{boxShadow:`0 -${Xe}px 0 ${lt}`}}}},ln=ve=>{const{componentCls:Pe}=ve,Xe=`${ve.lineWidth}px ${ve.lineType} ${ve.tableBorderColor}`,lt=`${Pe}-expanded-row-cell`;return{[`${Pe}-wrapper`]:{[`${Pe}-tbody-virtual`]:{[`${Pe}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Pe}-cell`]:{borderBottom:Xe},[`${Pe}-expanded-row`]:{[`${lt}${lt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ve.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Pe}-bordered`]:{[`${Pe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Xe,position:"absolute"},[`${Pe}-cell`]:{borderInlineEnd:Xe,[`&${Pe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ve.lineWidth,borderInlineStart:Xe}}}}}}};const Ln=ve=>{const{componentCls:Pe,fontWeightStrong:Xe,tablePaddingVertical:lt,tablePaddingHorizontal:ut,lineWidth:xt,lineType:Qt,tableBorderColor:lr,tableFontSize:He,tableBg:At,tableRadius:Te,tableHeaderTextColor:Ft,motionDurationMid:er,tableHeaderBg:or,tableHeaderCellSplitColor:ur,tableRowHoverBg:St,tableSelectedRowBg:Gr,tableSelectedRowHoverBg:Zr,tableFooterTextColor:sn,tableFooterBg:An,paddingContentVerticalLG:ni}=ve,zr=`${xt}px ${Qt} ${lr}`;return{[`${Pe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ul.dF)()),{[Pe]:Object.assign(Object.assign({},(0,Ul.Wf)(ve)),{fontSize:He,background:At,borderRadius:`${Te}px ${Te}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Te}px ${Te}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Pe}-cell,
|
|
|
${Pe}-thead > tr > th,
|
|
|
${Pe}-tbody > tr > th,
|
|
|
${Pe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${ni}px ${ut}px`,overflowWrap:"break-word"},[`${Pe}-title`]:{padding:`${lt}px ${ut}px`},[`${Pe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Ft,fontWeight:Xe,textAlign:"start",background:or,borderBottom:zr,transition:`background ${er} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Pe}-selection-column):not(${Pe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ur,transform:"translateY(-50%)",transition:`background-color ${er}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Pe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${er}, border-color ${er}`,borderBottom:zr,[`
|
|
|
> ${Pe}-wrapper:only-child,
|
|
|
> ${Pe}-expanded-row-fixed > ${Pe}-wrapper:only-child
|
|
|
`]:{[Pe]:{marginBlock:`-${lt}px`,marginInline:`${ve.tableExpandColumnWidth-ut}px -${ut}px`,[`${Pe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Ft,fontWeight:Xe,textAlign:"start",background:or,borderBottom:zr,transition:`background ${er} ease`},[`
|
|
|
&${Pe}-row:hover > th,
|
|
|
&${Pe}-row:hover > td,
|
|
|
> th${Pe}-cell-row-hover,
|
|
|
> td${Pe}-cell-row-hover
|
|
|
`]:{background:St},[`&${Pe}-row-selected`]:{"> th, > td":{background:Gr},"&:hover > th, &:hover > td":{background:Zr}}}},[`${Pe}-footer`]:{padding:`${lt}px ${ut}px`,color:sn,background:An}})}};var Ai=(0,Au.Z)("Table",ve=>{const{colorTextHeading:Pe,colorSplit:Xe,colorIcon:lt,colorIconHover:ut,opacityLoading:xt,colorBgContainer:Qt,controlInteractiveSize:lr,headerBg:He,headerColor:At,headerSortActiveBg:Te,headerSortHoverBg:Ft,bodySortBg:er,rowHoverBg:or,rowSelectedBg:ur,rowSelectedHoverBg:St,rowExpandedBg:Gr,cellPaddingBlock:Zr,cellPaddingInline:sn,cellPaddingBlockMD:An,cellPaddingInlineMD:ni,cellPaddingBlockSM:zr,cellPaddingInlineSM:Yt,borderColor:wi,footerBg:fi,footerColor:tn,headerBorderRadius:wn,cellFontSize:pn,cellFontSizeMD:rn,cellFontSizeSM:Qn,headerSplitColor:vi,fixedHeaderSortActiveBg:Mi,headerFilterHoverBg:je,filterDropdownBg:A,expandIconBg:w,selectionColumnWidth:E,stickyScrollBarBg:z}=ve,be=new al.C(lt),ze=new al.C(ut),pt=2,It=(0,Ql.TS)(ve,{tableFontSize:pn,tableBg:Qt,tableRadius:wn,tablePaddingVertical:Zr,tablePaddingHorizontal:sn,tablePaddingVerticalMiddle:An,tablePaddingHorizontalMiddle:ni,tablePaddingVerticalSmall:zr,tablePaddingHorizontalSmall:Yt,tableBorderColor:wi,tableHeaderTextColor:At,tableHeaderBg:He,tableFooterTextColor:tn,tableFooterBg:fi,tableHeaderCellSplitColor:vi,tableHeaderSortBg:Te,tableHeaderSortHoverBg:Ft,tableHeaderIconColor:be.clone().setAlpha(be.getAlpha()*xt).toRgbString(),tableHeaderIconColorHover:ze.clone().setAlpha(ze.getAlpha()*xt).toRgbString(),tableBodySortBg:er,tableFixedHeaderSortActiveBg:Mi,tableHeaderFilterActiveBg:je,tableFilterDropdownBg:A,tableRowHoverBg:or,tableSelectedRowBg:ur,tableSelectedRowHoverBg:St,zIndexTableFixed:pt,zIndexTableSticky:pt+1,tableFontSizeMiddle:rn,tableFontSizeSmall:Qn,tableSelectionColumnWidth:E,tableExpandIconBg:w,tableExpandColumnWidth:lr+2*ve.padding,tableExpandedRowBg:Gr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:z,tableScrollThumbBgHover:Pe,tableScrollBg:Xe});return[Ln(It),ne(It),Ar(It),cr(It),b(It),ci(It),ge(It),tl(It),Ar(It),nc(It),vt(It),v(It),hr(It),ru(It),Ot(It),ke(It),ln(It)]},ve=>{const{colorFillAlter:Pe,colorBgContainer:Xe,colorTextHeading:lt,colorFillSecondary:ut,colorFillContent:xt,controlItemBgActive:Qt,controlItemBgActiveHover:lr,padding:He,paddingSM:At,paddingXS:Te,colorBorderSecondary:Ft,borderRadiusLG:er,fontSize:or,controlHeight:ur,colorTextPlaceholder:St}=ve,Gr=new al.C(ut).onBackground(Xe).toHexShortString(),Zr=new al.C(xt).onBackground(Xe).toHexShortString(),sn=new al.C(Pe).onBackground(Xe).toHexShortString();return{headerBg:sn,headerColor:lt,headerSortActiveBg:Gr,headerSortHoverBg:Zr,bodySortBg:sn,rowHoverBg:sn,rowSelectedBg:Qt,rowSelectedHoverBg:lr,rowExpandedBg:Pe,cellPaddingBlock:He,cellPaddingInline:He,cellPaddingBlockMD:At,cellPaddingInlineMD:Te,cellPaddingBlockSM:Te,cellPaddingInlineSM:Te,borderColor:Ft,headerBorderRadius:er,footerBg:sn,footerColor:lt,cellFontSize:or,cellFontSizeMD:or,cellFontSizeSM:or,headerSplitColor:Ft,fixedHeaderSortActiveBg:Gr,headerFilterHoverBg:xt,filterDropdownMenuBg:Xe,filterDropdownBg:Xe,expandIconBg:Xe,selectionColumnWidth:ur,stickyScrollBarBg:St,stickyScrollBarBorderRadius:100}});const hn=[],Br=(ve,Pe)=>{const{prefixCls:Xe,className:lt,rootClassName:ut,style:xt,size:Qt,bordered:lr,dropdownPrefixCls:He,dataSource:At,pagination:Te,rowSelection:Ft,rowKey:er="key",rowClassName:or,columns:ur,children:St,childrenColumnName:Gr,onChange:Zr,getPopupContainer:sn,loading:An,expandIcon:ni,expandable:zr,expandedRowRender:Yt,expandIconColumnIndex:wi,indentSize:fi,scroll:tn,sortDirections:wn,locale:pn,showSorterTooltip:rn=!0,virtual:Qn}=ve,vi=O.useMemo(()=>ur||$r(St),[ur,St]),Mi=O.useMemo(()=>vi.some(za=>za.responsive),[vi]),je=(0,ga.Z)(Mi),A=O.useMemo(()=>{const za=new Set(Object.keys(je).filter(Ta=>je[Ta]));return vi.filter(Ta=>!Ta.responsive||Ta.responsive.some(oo=>za.has(oo)))},[vi,je]),w=(0,na.Z)(ve,["className","style","columns"]),{locale:E=Ua.Z,direction:z,table:be,renderEmpty:ze,getPrefixCls:pt,getPopupContainer:It}=O.useContext(ys.E_),$t=(0,_a.Z)(Qt),fr=Object.assign(Object.assign({},E.Table),pn),Dr=At||hn,Hr=pt("table",Xe),Hn=pt("dropdown",He),Ur=Object.assign({childrenColumnName:Gr,expandIconColumnIndex:wi},zr),{childrenColumnName:xn="children"}=Ur,Nn=O.useMemo(()=>Dr.some(za=>za==null?void 0:za[xn])?"nest":Yt||zr&&zr.expandedRowRender?"row":null,[Dr]),kn={body:O.useRef()},Jn=O.useMemo(()=>typeof er=="function"?er:za=>za==null?void 0:za[er],[er]),[Rn]=Ys(Dr,xn,Jn),Oi={},Gi=function(za,Ta){let oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Bs,yo,_o;const Bo=Object.assign(Object.assign({},Oi),za);oo&&((Bs=Oi.resetPagination)===null||Bs===void 0||Bs.call(Oi),!((yo=Bo.pagination)===null||yo===void 0)&&yo.current&&(Bo.pagination.current=1),Te&&Te.onChange&&Te.onChange(1,(_o=Bo.pagination)===null||_o===void 0?void 0:_o.pageSize)),tn&&tn.scrollToFirstRowOnChange!==!1&&kn.body.current&&(0,Ca.Z)(0,{getContainer:()=>kn.body.current}),Zr==null||Zr(Bo.pagination,Bo.filters,Bo.sorter,{currentDataSource:mo(Va(Dr,Bo.sorterStates,xn),Bo.filterStates),action:Ta})},Ji=(za,Ta)=>{Gi({sorter:za,sorterStates:Ta},"sort",!1)},[Ia,Di,ss,La]=ms({prefixCls:Hr,mergedColumns:A,onSorterChange:Ji,sortDirections:wn||["ascend","descend"],tableLocale:fr,showSorterTooltip:rn}),va=O.useMemo(()=>Va(Dr,Di,xn),[Dr,Di]);Oi.sorter=La(),Oi.sorterStates=Di;const qn=(za,Ta)=>{Gi({filters:za,filterStates:Ta},"filter",!0)},[Qa,Fs,fa]=kl({prefixCls:Hr,locale:fr,dropdownPrefixCls:Hn,mergedColumns:A,onFilterChange:qn,getPopupContainer:sn||It}),Aa=mo(va,Fs);Oi.filters=fa,Oi.filterStates=Fs;const ma=O.useMemo(()=>{const za={};return Object.keys(fa).forEach(Ta=>{fa[Ta]!==null&&(za[Ta]=fa[Ta])}),Object.assign(Object.assign({},ss),{filters:za})},[ss,fa]),[ja]=ws(ma),os=(za,Ta)=>{Gi({pagination:Object.assign(Object.assign({},Oi.pagination),{current:za,pageSize:Ta})},"paginate")},[ca,xs]=yl(Aa.length,os,Te);Oi.pagination=Te===!1?{}:Ba(ca,Te),Oi.resetPagination=xs;const _s=O.useMemo(()=>{if(Te===!1||!ca.pageSize)return Aa;const{current:za=1,total:Ta,pageSize:oo=Ao}=ca;return Aa.length<Ta?Aa.length>oo?Aa.slice((za-1)*oo,za*oo):Aa:Aa.slice((za-1)*oo,za*oo)},[!!Te,Aa,ca&&ca.current,ca&&ca.pageSize,ca&&ca.total]),[Js,Ws]=Io({prefixCls:Hr,data:Aa,pageData:_s,getRowKey:Jn,getRecordByKey:Rn,expandType:Nn,childrenColumnName:xn,locale:fr,getPopupContainer:sn||It},Ft),Vs=(za,Ta,oo)=>{let Bs;return typeof or=="function"?Bs=T()(or(za,Ta,oo)):Bs=T()(or),T()({[`${Hr}-row-selected`]:Ws.has(Jn(za,Ta))},Bs)};Ur.__PARENT_RENDER_ICON__=Ur.expandIcon,Ur.expandIcon=Ur.expandIcon||ni||oa(fr),Nn==="nest"&&Ur.expandIconColumnIndex===void 0?Ur.expandIconColumnIndex=Ft?1:0:Ur.expandIconColumnIndex>0&&Ft&&(Ur.expandIconColumnIndex-=1),typeof Ur.indentSize!="number"&&(Ur.indentSize=typeof fi=="number"?fi:15);const Vo=O.useCallback(za=>ja(Js(Qa(Ia(za)))),[Ia,Qa,Js]);let $o,Co;if(Te!==!1&&(ca!=null&&ca.total)){let za;ca.size?za=ca.size:za=$t==="small"||$t==="middle"?"small":void 0;const Ta=yo=>O.createElement(Cs.Z,Object.assign({},ca,{className:T()(`${Hr}-pagination ${Hr}-pagination-${yo}`,ca.className),size:za})),oo=z==="rtl"?"left":"right",{position:Bs}=ca;if(Bs!==null&&Array.isArray(Bs)){const yo=Bs.find(Fo=>Fo.includes("top")),_o=Bs.find(Fo=>Fo.includes("bottom")),Bo=Bs.every(Fo=>`${Fo}`=="none");!yo&&!_o&&!Bo&&(Co=Ta(oo)),yo&&($o=Ta(yo.toLowerCase().replace("top",""))),_o&&(Co=Ta(_o.toLowerCase().replace("bottom","")))}else Co=Ta(oo)}let ho;typeof An=="boolean"?ho={spinning:An}:typeof An=="object"&&(ho=Object.assign({spinning:!0},An));const[to,Ds]=Ai(Hr),[,ls]=(0,Fa.Z)(),Al=T()(`${Hr}-wrapper`,be==null?void 0:be.className,{[`${Hr}-wrapper-rtl`]:z==="rtl"},lt,ut,Ds),Cl=Object.assign(Object.assign({},be==null?void 0:be.style),xt),sl=pn&&pn.emptyText||(ze==null?void 0:ze("Table"))||O.createElement(oi.Z,{componentName:"Table"}),Yo=Qn?El:Xs,_u={},Wl=O.useMemo(()=>{const{fontSize:za,lineHeight:Ta,padding:oo,paddingXS:Bs,paddingSM:yo}=ls,_o=Math.floor(za*Ta);switch($t){case"large":return oo*2+_o;case"small":return Bs*2+_o;default:return yo*2+_o}},[ls,$t]);return Qn&&(_u.listItemHeight=Wl),to(O.createElement("div",{ref:Pe,className:Al,style:Cl},O.createElement(ns.Z,Object.assign({spinning:!1},ho),$o,O.createElement(Yo,Object.assign({},_u,w,{columns:A,direction:z,expandable:Ur,prefixCls:Hr,className:T()({[`${Hr}-middle`]:$t==="middle",[`${Hr}-small`]:$t==="small",[`${Hr}-bordered`]:lr,[`${Hr}-empty`]:Dr.length===0}),data:_s,rowKey:Jn,rowClassName:Vs,emptyText:sl,internalHooks:Fe,internalRefs:kn,transformColumns:Vo})),Co)))};var vn=O.forwardRef(Br);const Gn=(ve,Pe)=>{const Xe=O.useRef(0);return Xe.current+=1,O.createElement(vn,Object.assign({},ve,{ref:Pe,_renderTimes:Xe.current}))},zt=O.forwardRef(Gn);zt.SELECTION_COLUMN=Ya,zt.EXPAND_COLUMN=xe,zt.SELECTION_ALL=rs,zt.SELECTION_INVERT=Hs,zt.SELECTION_NONE=ba,zt.Column=_i,zt.ColumnGroup=zi,zt.Summary=k;var nr=zt,Nr=nr},33166:function(yn,Wt,g){"use strict";g.d(Wt,{i:function(){return xe}});const xe=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});var xe=g(33166);function Fe(se,Me){return xe.i.reduce((ie,Y)=>{const O=se[`${Y}1`],I=se[`${Y}3`],n=se[`${Y}6`],o=se[`${Y}7`];return Object.assign(Object.assign({},ie),Me(Y,{lightColor:O,lightBorderColor:I,darkColor:n,textColor:o}))},{})}},10777:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return le}});var xe=g(92310),Fe=g.n(xe),se=g(59301),Me=g(36355),ie=function(J,we){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&we.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)we.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce},O=J=>{var{prefixCls:we,className:Ce,color:Le="blue",dot:ae,pending:pe=!1,position:T,label:Ee,children:oe}=J,fe=ie(J,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:ye}=se.useContext(Me.E_),_=ye("timeline",we),N=Fe()(`${_}-item`,{[`${_}-item-pending`]:pe},Ce),X=/blue|red|green|gray/.test(Le||"")?void 0:Le,he=Fe()(`${_}-item-head`,{[`${_}-item-head-custom`]:!!ae,[`${_}-item-head-${Le}`]:!X});return se.createElement("li",Object.assign({},fe,{className:N}),Ee&&se.createElement("div",{className:`${_}-item-label`},Ee),se.createElement("div",{className:`${_}-item-tail`}),se.createElement("div",{className:he,style:{borderColor:X,color:X}},ae),se.createElement("div",{className:`${_}-item-content`},oe))},I=g(19127),n=g(58617),o=function(J,we){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&we.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)we.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce},p=J=>{var{prefixCls:we,className:Ce,pending:Le=!1,children:ae,items:pe,rootClassName:T,reverse:Ee=!1,direction:oe,hashId:fe,pendingDot:ye,mode:_=""}=J,N=o(J,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const X=(We,Er)=>_==="alternate"?We==="right"?`${we}-item-right`:We==="left"?`${we}-item-left`:Er%2===0?`${we}-item-left`:`${we}-item-right`:_==="left"?`${we}-item-left`:_==="right"?`${we}-item-right`:We==="right"?`${we}-item-right`:"",he=(0,I.Z)(pe||[]),qe=typeof Le=="boolean"?null:Le;Le&&he.push({pending:!!Le,dot:ye||se.createElement(n.Z,null),children:qe}),Ee&&he.reverse();const st=he.length,nt=`${we}-item-last`,Rt=he.filter(We=>!!We).map((We,Er)=>{var xr;const Wr=Er===st-2?nt:"",Cr=Er===st-1?nt:"",{className:_e}=We,kt=o(We,["className"]);return se.createElement(O,Object.assign({},kt,{className:Fe()([_e,!Ee&&Le?Wr:Cr,X((xr=We==null?void 0:We.position)!==null&&xr!==void 0?xr:"",Er)]),key:(We==null?void 0:We.key)||Er}))}),sr=he.some(We=>!!(We!=null&&We.label)),Jt=Fe()(we,{[`${we}-pending`]:!!Le,[`${we}-reverse`]:!!Ee,[`${we}-${_}`]:!!_&&!sr,[`${we}-label`]:sr,[`${we}-rtl`]:oe==="rtl"},Ce,T,fe);return se.createElement("ul",Object.assign({},N,{className:Jt}),Rt)},a=g(11592);function d(J,we){return J&&Array.isArray(J)?J:(0,a.Z)(we).map(Ce=>{var Le,ae;return Object.assign({children:(ae=(Le=Ce==null?void 0:Ce.props)===null||Le===void 0?void 0:Le.children)!==null&&ae!==void 0?ae:""},Ce.props)})}var m=d,S=g(17313),$=g(83116),F=g(37613);const H=J=>{const{componentCls:we}=J;return{[we]:Object.assign(Object.assign({},(0,S.Wf)(J)),{margin:0,padding:0,listStyle:"none",[`${we}-item`]:{position:"relative",margin:0,paddingBottom:J.itemPaddingBottom,fontSize:J.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:J.itemHeadSize,insetInlineStart:(J.itemHeadSize-J.tailWidth)/2,height:`calc(100% - ${J.itemHeadSize}px)`,borderInlineStart:`${J.tailWidth}px ${J.lineType} ${J.tailColor}`},"&-pending":{[`${we}-item-head`]:{fontSize:J.fontSizeSM,backgroundColor:"transparent"},[`${we}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:J.itemHeadSize,height:J.itemHeadSize,backgroundColor:J.dotBg,border:`${J.dotBorderWidth}px ${J.lineType} transparent`,borderRadius:"50%","&-blue":{color:J.colorPrimary,borderColor:J.colorPrimary},"&-red":{color:J.colorError,borderColor:J.colorError},"&-green":{color:J.colorSuccess,borderColor:J.colorSuccess},"&-gray":{color:J.colorTextDisabled,borderColor:J.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:J.itemHeadSize/2,insetInlineStart:J.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:J.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(J.fontSize*J.lineHeight-J.fontSize)+J.lineWidth,marginInlineStart:J.margin+J.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${we}-item-tail`]:{display:"none"},[`> ${we}-item-content`]:{minHeight:J.controlHeightLG*1.2}}},[`&${we}-alternate,
|
|
|
&${we}-right,
|
|
|
&${we}-label`]:{[`${we}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${J.marginXXS}px`,"&-custom":{marginInlineStart:J.tailWidth/2}},"&-left":{[`${we}-item-content`]:{insetInlineStart:`calc(50% - ${J.marginXXS}px)`,width:`calc(50% - ${J.marginSM}px)`,textAlign:"start"}},"&-right":{[`${we}-item-content`]:{width:`calc(50% - ${J.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${we}-right`]:{[`${we}-item-right`]:{[`${we}-item-tail,
|
|
|
${we}-item-head,
|
|
|
${we}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(J.itemHeadSize+J.tailWidth)/2}px)`},[`${we}-item-content`]:{width:`calc(100% - ${J.itemHeadSize+J.marginXS}px)`}}},[`&${we}-pending
|
|
|
${we}-item-last
|
|
|
${we}-item-tail`]:{display:"block",height:`calc(100% - ${J.margin}px)`,borderInlineStart:`${J.tailWidth}px dotted ${J.tailColor}`},[`&${we}-reverse
|
|
|
${we}-item-last
|
|
|
${we}-item-tail`]:{display:"none"},[`&${we}-reverse ${we}-item-pending`]:{[`${we}-item-tail`]:{insetBlockStart:J.margin,display:"block",height:`calc(100% - ${J.margin}px)`,borderInlineStart:`${J.tailWidth}px dotted ${J.tailColor}`},[`${we}-item-content`]:{minHeight:J.controlHeightLG*1.2}},[`&${we}-label`]:{[`${we}-item-label`]:{position:"absolute",insetBlockStart:-(J.fontSize*J.lineHeight-J.fontSize)+J.tailWidth,width:`calc(50% - ${J.marginSM}px)`,textAlign:"end"},[`${we}-item-right`]:{[`${we}-item-label`]:{insetInlineStart:`calc(50% + ${J.marginSM}px)`,width:`calc(50% - ${J.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${we}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var V=(0,$.Z)("Timeline",J=>{const we=(0,F.TS)(J,{itemHeadSize:10,customHeadPaddingVertical:J.paddingXXS,paddingInlineEnd:2});return[H(we)]},J=>({tailColor:J.colorSplit,tailWidth:J.lineWidthBold,dotBorderWidth:J.wireframe?J.lineWidthBold:J.lineWidth*3,dotBg:J.colorBgContainer,itemPaddingBottom:J.padding*1.25})),ee=function(J,we){var Ce={};for(var Le in J)Object.prototype.hasOwnProperty.call(J,Le)&&we.indexOf(Le)<0&&(Ce[Le]=J[Le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(J);ae<Le.length;ae++)we.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Le[ae])&&(Ce[Le[ae]]=J[Le[ae]]);return Ce};const B=J=>{const{getPrefixCls:we,direction:Ce,timeline:Le}=se.useContext(Me.E_),{prefixCls:ae,children:pe,items:T,className:Ee,style:oe}=J,fe=ee(J,["prefixCls","children","items","className","style"]),ye=we("timeline",ae),[_,N]=V(ye),X=m(T,pe);return _(se.createElement(p,Object.assign({},fe,{className:Fe()(Le==null?void 0:Le.className,Ee),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),oe),prefixCls:ye,direction:Ce,items:X,hashId:N})))};B.Item=O;var G=B,le=G},6848:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Le}});var xe=g(59301),Fe=g(92310),se=g.n(Fe),Me=g(55477),ie=g(18929),Y=g(62892),O=g(79676),I=g(92343),n=g(36355),o=g(33234),L=g(88088),p=g(17313),a=g(29878),d=g(19447),m=g(45157),S=g(37613),$=g(83116);const F=ae=>{const{componentCls:pe,tooltipMaxWidth:T,tooltipColor:Ee,tooltipBg:oe,tooltipBorderRadius:fe,zIndexPopup:ye,controlHeight:_,boxShadowSecondary:N,paddingSM:X,paddingXS:he,tooltipRadiusOuter:qe}=ae;return[{[pe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(ae)),{position:"absolute",zIndex:ye,display:"block",width:"max-content",maxWidth:T,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":oe,[`${pe}-inner`]:{minWidth:_,minHeight:_,padding:`${X/2}px ${he}px`,color:Ee,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:oe,borderRadius:fe,boxShadow:N,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${pe}-inner`]:{borderRadius:Math.min(fe,d.qN)}},[`${pe}-content`]:{position:"relative"}}),(0,m.Z)(ae,(st,nt)=>{let{darkColor:Rt}=nt;return{[`&${pe}-${st}`]:{[`${pe}-inner`]:{backgroundColor:Rt},[`${pe}-arrow`]:{"--antd-arrow-background-color":Rt}}}})),{"&-rtl":{direction:"rtl"}})},(0,d.ZP)((0,S.TS)(ae,{borderRadiusOuter:qe}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:fe,limitVerticalRadius:!0}),{[`${pe}-pure`]:{position:"relative",maxWidth:"none",margin:ae.sizePopupArrow}}]};var H=(ae,pe)=>(0,$.Z)("Tooltip",Ee=>{if(pe===!1)return[];const{borderRadius:oe,colorTextLightSolid:fe,colorBgDefault:ye,borderRadiusOuter:_}=Ee,N=(0,S.TS)(Ee,{tooltipMaxWidth:250,tooltipColor:fe,tooltipBorderRadius:oe,tooltipBg:ye,tooltipRadiusOuter:_>4?4:_});return[F(N),(0,a._y)(Ee,"zoom-big-fast")]},Ee=>{let{zIndexPopupBase:oe,colorBgSpotlight:fe}=Ee;return{zIndexPopup:oe+70,colorBgDefault:fe}},{resetStyle:!1})(ae),V=g(36785);function ee(ae,pe){const T=(0,V.o2)(pe),Ee=se()({[`${ae}-${pe}`]:pe&&T}),oe={},fe={};return pe&&!T&&(oe.background=pe,fe["--antd-arrow-background-color"]=pe),{className:Ee,overlayStyle:oe,arrowStyle:fe}}var G=ae=>{const{prefixCls:pe,className:T,placement:Ee="top",title:oe,color:fe,overlayInnerStyle:ye}=ae,{getPrefixCls:_}=xe.useContext(n.E_),N=_("tooltip",pe),[X,he]=H(N,!0),qe=ee(N,fe),st=qe.arrowStyle,nt=Object.assign(Object.assign({},ye),qe.overlayStyle),Rt=se()(he,N,`${N}-pure`,`${N}-placement-${Ee}`,T,qe.className);return X(xe.createElement("div",{className:Rt,style:st},xe.createElement("div",{className:`${N}-arrow`}),xe.createElement(Me.G,Object.assign({},ae,{className:he,prefixCls:N,overlayInnerStyle:nt}),oe)))},le=function(ae,pe){var T={};for(var Ee in ae)Object.prototype.hasOwnProperty.call(ae,Ee)&&pe.indexOf(Ee)<0&&(T[Ee]=ae[Ee]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Ee=Object.getOwnPropertySymbols(ae);oe<Ee.length;oe++)pe.indexOf(Ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ae,Ee[oe])&&(T[Ee[oe]]=ae[Ee[oe]]);return T};const J=(ae,pe)=>{const T={},Ee=Object.assign({},ae);return pe.forEach(oe=>{ae&&oe in ae&&(T[oe]=ae[oe],delete Ee[oe])}),{picked:T,omitted:Ee}};function we(ae,pe){const T=ae.type;if((T.__ANT_BUTTON===!0||ae.type==="button")&&ae.props.disabled||T.__ANT_SWITCH===!0&&(ae.props.disabled||ae.props.loading)||T.__ANT_RADIO===!0&&ae.props.disabled){const{picked:Ee,omitted:oe}=J(ae.props.style,["position","left","right","top","bottom","float","display","zIndex"]),fe=Object.assign(Object.assign({display:"inline-block"},Ee),{cursor:"not-allowed",width:ae.props.block?"100%":void 0}),ye=Object.assign(Object.assign({},oe),{pointerEvents:"none"}),_=(0,I.Tm)(ae,{style:ye,className:null});return xe.createElement("span",{style:fe,className:se()(ae.props.className,`${pe}-disabled-compatible-wrapper`)},_)}return ae}const Ce=xe.forwardRef((ae,pe)=>{var T,Ee;const{prefixCls:oe,openClassName:fe,getTooltipContainer:ye,overlayClassName:_,color:N,overlayInnerStyle:X,children:he,afterOpenChange:qe,afterVisibleChange:st,destroyTooltipOnHide:nt,arrow:Rt=!0,title:sr,overlay:Jt,builtinPlacements:We,arrowPointAtCenter:Er=!1,autoAdjustOverflow:xr=!0}=ae,Wr=!!Rt,[,Cr]=(0,L.Z)(),{getPopupContainer:_e,getPrefixCls:kt,direction:K}=xe.useContext(n.E_),y=xe.useRef(null),h=()=>{var Kt;(Kt=y.current)===null||Kt===void 0||Kt.forceAlign()};xe.useImperativeHandle(pe,()=>({forceAlign:h,forcePopupAlign:()=>{h()}}));const[D,Ae]=(0,ie.Z)(!1,{value:(T=ae.open)!==null&&T!==void 0?T:ae.visible,defaultValue:(Ee=ae.defaultOpen)!==null&&Ee!==void 0?Ee:ae.defaultVisible}),Z=!sr&&!Jt&&sr!==0,k=Kt=>{var qt,et;Ae(Z?!1:Kt),Z||((qt=ae.onOpenChange)===null||qt===void 0||qt.call(ae,Kt),(et=ae.onVisibleChange)===null||et===void 0||et.call(ae,Kt))},te=xe.useMemo(()=>{var Kt,qt;let et=Er;return typeof Rt=="object"&&(et=(qt=(Kt=Rt.pointAtCenter)!==null&&Kt!==void 0?Kt:Rt.arrowPointAtCenter)!==null&&qt!==void 0?qt:Er),We||(0,O.Z)({arrowPointAtCenter:et,autoAdjustOverflow:xr,arrowWidth:Wr?Cr.sizePopupArrow:0,borderRadius:Cr.borderRadius,offset:Cr.marginXXS,visibleFirst:!0})},[Er,Rt,We,Cr]),Se=xe.useMemo(()=>sr===0?sr:Jt||sr||"",[Jt,sr]),Be=xe.createElement(o.BR,null,typeof Se=="function"?Se():Se),{getPopupContainer:Ie,placement:Ge="top",mouseEnterDelay:mt=.1,mouseLeaveDelay:$e=.1,overlayStyle:tt,rootClassName:dt}=ae,Ze=le(ae,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ke=kt("tooltip",oe),Bt=kt(),Vt=ae["data-popover-inject"];let Ut=D;!("open"in ae)&&!("visible"in ae)&&Z&&(Ut=!1);const mr=we((0,I.l$)(he)&&!(0,I.M2)(he)?he:xe.createElement("span",null,he),Ke),br=mr.props,re=!br.className||typeof br.className=="string"?se()(br.className,fe||`${Ke}-open`):br.className,[ue,rr]=H(Ke,!Vt),Qe=ee(Ke,N),ot=Qe.arrowStyle,Jr=Object.assign(Object.assign({},X),Qe.overlayStyle),Tt=se()(_,{[`${Ke}-rtl`]:K==="rtl"},Qe.className,dt,rr);return ue(xe.createElement(Me.Z,Object.assign({},Ze,{showArrow:Wr,placement:Ge,mouseEnterDelay:mt,mouseLeaveDelay:$e,prefixCls:Ke,overlayClassName:Tt,overlayStyle:Object.assign(Object.assign({},ot),tt),getTooltipContainer:Ie||ye||_e,ref:y,builtinPlacements:te,overlay:Be,visible:Ut,onVisibleChange:k,afterVisibleChange:qe!=null?qe:st,overlayInnerStyle:Jr,arrowContent:xe.createElement("span",{className:`${Ke}-arrow-content`}),motion:{motionName:(0,Y.m)(Bt,"zoom-big-fast",ae.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!nt}),Ut?(0,I.Tm)(mr,{className:re}):mr))});Ce._InternalPanelDoNotUseOrYouWillBeFired=G;var Le=Ce},17574:function(yn,Wt,g){"use strict";g.d(Wt,{default:function(){return N}});var xe=g(43858),Fe=g(19127),se=g(52671),Me=g(8657),ie=g(96663),Y=g(59301),O={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"},I=O,n=g(7657),o=function(he,qe){return Y.createElement(n.Z,(0,ie.Z)({},he,{ref:qe,icon:I}))},L=Y.forwardRef(o),p=L,a=g(92310),d=g.n(a),m=g(35654),S=g(71430),$=g(36355),F=g(56082),H=g(62892),V=g(20648);const ee=4;function B(X){const{dropPosition:he,dropLevelOffset:qe,prefixCls:st,indent:nt,direction:Rt="ltr"}=X,sr=Rt==="ltr"?"left":"right",Jt=Rt==="ltr"?"right":"left",We={[sr]:-qe*nt+ee,[Jt]:0};switch(he){case-1:We.top=-3;break;case 1:We.bottom=-3;break;default:We.bottom=-3,We[sr]=nt+ee;break}return Y.createElement("div",{style:We,className:`${st}-drop-indicator`})}var G=g(71997),J=Y.forwardRef((X,he)=>{const{getPrefixCls:qe,direction:st,virtual:nt,tree:Rt}=Y.useContext($.E_),{prefixCls:sr,className:Jt,showIcon:We=!1,showLine:Er,switcherIcon:xr,blockNode:Wr=!1,children:Cr,checkable:_e=!1,selectable:kt=!0,draggable:K,motion:y,style:h}=X,D=qe("tree",sr),Ae=qe(),Z=y!=null?y:Object.assign(Object.assign({},(0,H.Z)(Ae)),{motionAppear:!1}),k=Object.assign(Object.assign({},X),{checkable:_e,selectable:kt,showIcon:We,motion:Z,blockNode:Wr,showLine:!!Er,dropIndicatorRender:B}),[te,Se]=(0,V.ZP)(D),Be=Y.useMemo(()=>{if(!K)return!1;let Ge={};switch(typeof K){case"function":Ge.nodeDraggable=K;break;case"object":Ge=Object.assign({},K);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||Y.createElement(F.Z,null)),Ge},[K]),Ie=Ge=>Y.createElement(G.Z,{prefixCls:D,switcherIcon:xr,treeNodeProps:Ge,showLine:Er});return te(Y.createElement(xe.Z,Object.assign({itemHeight:20,ref:he,virtual:nt},k,{style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),h),prefixCls:D,className:d()({[`${D}-icon-hide`]:!We,[`${D}-block-node`]:Wr,[`${D}-unselectable`]:!kt,[`${D}-rtl`]:st==="rtl"},Rt==null?void 0:Rt.className,Jt,Se),direction:st,checkable:_e&&Y.createElement("span",{className:`${D}-checkbox-inner`}),selectable:kt,switcherIcon:Ie,draggable:Be}),Cr))}),we;(function(X){X[X.None=0]="None",X[X.Start=1]="Start",X[X.End=2]="End"})(we||(we={}));function Ce(X,he){function qe(st){const{key:nt,children:Rt}=st;he(nt,st)!==!1&&Ce(Rt||[],he)}X.forEach(qe)}function Le(X){let{treeData:he,expandedKeys:qe,startKey:st,endKey:nt}=X;const Rt=[];let sr=we.None;if(st&&st===nt)return[st];if(!st||!nt)return[];function Jt(We){return We===st||We===nt}return Ce(he,We=>{if(sr===we.End)return!1;if(Jt(We)){if(Rt.push(We),sr===we.None)sr=we.Start;else if(sr===we.Start)return sr=we.End,!1}else sr===we.Start&&Rt.push(We);return qe.includes(We)}),Rt}function ae(X,he){const qe=(0,Fe.Z)(he),st=[];return Ce(X,(nt,Rt)=>{const sr=qe.indexOf(nt);return sr!==-1&&(st.push(Rt),qe.splice(sr,1)),!!qe.length}),st}var pe=function(X,he){var qe={};for(var st in X)Object.prototype.hasOwnProperty.call(X,st)&&he.indexOf(st)<0&&(qe[st]=X[st]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,st=Object.getOwnPropertySymbols(X);nt<st.length;nt++)he.indexOf(st[nt])<0&&Object.prototype.propertyIsEnumerable.call(X,st[nt])&&(qe[st[nt]]=X[st[nt]]);return qe};function T(X){const{isLeaf:he,expanded:qe}=X;return he?Y.createElement(se.Z,null):qe?Y.createElement(Me.Z,null):Y.createElement(p,null)}function Ee(X){let{treeData:he,children:qe}=X;return he||(0,S.zn)(qe)}const oe=(X,he)=>{var{defaultExpandAll:qe,defaultExpandParent:st,defaultExpandedKeys:nt}=X,Rt=pe(X,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const sr=Y.useRef(),Jt=Y.useRef(),We=()=>{const{keyEntities:Be}=(0,S.I8)(Ee(Rt));let Ie;return qe?Ie=Object.keys(Be):st?Ie=(0,m.r7)(Rt.expandedKeys||nt||[],Be):Ie=Rt.expandedKeys||nt,Ie},[Er,xr]=Y.useState(Rt.selectedKeys||Rt.defaultSelectedKeys||[]),[Wr,Cr]=Y.useState(()=>We());Y.useEffect(()=>{"selectedKeys"in Rt&&xr(Rt.selectedKeys)},[Rt.selectedKeys]),Y.useEffect(()=>{"expandedKeys"in Rt&&Cr(Rt.expandedKeys)},[Rt.expandedKeys]);const _e=(Be,Ie)=>{var Ge;return"expandedKeys"in Rt||Cr(Be),(Ge=Rt.onExpand)===null||Ge===void 0?void 0:Ge.call(Rt,Be,Ie)},kt=(Be,Ie)=>{var Ge;const{multiple:mt}=Rt,{node:$e,nativeEvent:tt}=Ie,{key:dt=""}=$e,Ze=Ee(Rt),Ke=Object.assign(Object.assign({},Ie),{selected:!0}),Bt=(tt==null?void 0:tt.ctrlKey)||(tt==null?void 0:tt.metaKey),Vt=tt==null?void 0:tt.shiftKey;let Ut;mt&&Bt?(Ut=Be,sr.current=dt,Jt.current=Ut,Ke.selectedNodes=ae(Ze,Ut)):mt&&Vt?(Ut=Array.from(new Set([].concat((0,Fe.Z)(Jt.current||[]),(0,Fe.Z)(Le({treeData:Ze,expandedKeys:Wr,startKey:dt,endKey:sr.current}))))),Ke.selectedNodes=ae(Ze,Ut)):(Ut=[dt],sr.current=dt,Jt.current=Ut,Ke.selectedNodes=ae(Ze,Ut)),(Ge=Rt.onSelect)===null||Ge===void 0||Ge.call(Rt,Ut,Ke),"selectedKeys"in Rt||xr(Ut)},{getPrefixCls:K,direction:y}=Y.useContext($.E_),{prefixCls:h,className:D,showIcon:Ae=!0,expandAction:Z="click"}=Rt,k=pe(Rt,["prefixCls","className","showIcon","expandAction"]),te=K("tree",h),Se=d()(`${te}-directory`,{[`${te}-directory-rtl`]:y==="rtl"},D);return Y.createElement(J,Object.assign({icon:T,ref:he,blockNode:!0},k,{showIcon:Ae,expandAction:Z,prefixCls:te,className:Se,expandedKeys:Wr,selectedKeys:Er,onSelect:kt,onExpand:_e}))};var ye=Y.forwardRef(oe);const _=J;_.DirectoryTree=ye,_.TreeNode=xe.O;var N=_},20648:function(yn,Wt,g){"use strict";g.d(Wt,{TM:function(){return a},Yk:function(){return p}});var xe=g(93083),Fe=g(98447),se=g(17313),Me=g(8378),ie=g(37613),Y=g(83116);const O=new xe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),I=(d,m)=>({[`.${d}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${m.motionDurationSlow}`}}}),n=(d,m)=>({[`.${d}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:m.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${m.lineWidthBold}px solid ${m.colorPrimary}`,borderRadius:"50%",content:'""'}}}),o=(d,m)=>{const{treeCls:S,treeNodeCls:$,treeNodePadding:F,titleHeight:H,nodeSelectedBg:V,nodeHoverBg:ee}=m,B=m.paddingXS;return{[S]:Object.assign(Object.assign({},(0,se.Wf)(m)),{background:m.colorBgContainer,borderRadius:m.borderRadius,transition:`background-color ${m.motionDurationSlow}`,[`&${S}-rtl`]:{[`${S}-switcher`]:{"&_close":{[`${S}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${S}-active-focused)`]:Object.assign({},(0,se.oN)(m)),[`${S}-list-holder-inner`]:{alignItems:"flex-start"},[`&${S}-block-node`]:{[`${S}-list-holder-inner`]:{alignItems:"stretch",[`${S}-node-content-wrapper`]:{flex:"auto"},[`${$}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:F,insetInlineStart:0,border:`1px solid ${m.colorPrimary}`,opacity:0,animationName:O,animationDuration:m.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${$}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${F}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${S}-node-content-wrapper`]:{color:m.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${S}-node-content-wrapper`]:Object.assign({},(0,se.oN)(m)),[`&:not(${$}-disabled).filter-node ${S}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${S}-draggable-icon`]:{flexShrink:0,width:H,lineHeight:`${H}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${m.motionDurationSlow}`,[`${$}:hover &`]:{opacity:.45}},[`&${$}-disabled`]:{[`${S}-draggable-icon`]:{visibility:"hidden"}}}},[`${S}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:H}},[`${S}-draggable-icon`]:{visibility:"hidden"},[`${S}-switcher`]:Object.assign(Object.assign({},I(d,m)),{position:"relative",flex:"none",alignSelf:"stretch",width:H,margin:0,lineHeight:`${H}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${S}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:m.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:H/2,bottom:-F,marginInlineStart:-1,borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:H/2*.8,height:H/2,borderBottom:`1px solid ${m.colorBorder}`,content:'""'}}}),[`${S}-checkbox`]:{top:"initial",marginInlineEnd:B},[`${S}-node-content-wrapper, ${S}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:H,margin:0,padding:`0 ${m.paddingXS/2}px`,color:"inherit",lineHeight:`${H}px`,background:"transparent",borderRadius:m.borderRadius,cursor:"pointer",transition:`all ${m.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ee},[`&${S}-node-selected`]:{backgroundColor:V},[`${S}-iconEle`]:{display:"inline-block",width:H,height:H,lineHeight:`${H}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${S}-unselectable ${S}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${S}-node-content-wrapper`]:Object.assign({lineHeight:`${H}px`,userSelect:"none"},n(d,m)),[`${$}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${m.colorPrimary}`}},"&-show-line":{[`${S}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:H/2,bottom:-F,borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${S}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${$}-leaf-last`]:{[`${S}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${H/2}px !important`}}}}})}},L=d=>{const{treeCls:m,treeNodeCls:S,treeNodePadding:$,directoryNodeSelectedBg:F,directoryNodeSelectedColor:H}=d;return{[`${m}${m}-directory`]:{[S]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:$,insetInlineStart:0,transition:`background-color ${d.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:d.controlItemBgHover}},"> *":{zIndex:1},[`${m}-switcher`]:{transition:`color ${d.motionDurationMid}`},[`${m}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${m}-node-selected`]:{color:H,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:F},[`${m}-switcher`]:{color:H},[`${m}-node-content-wrapper`]:{color:H,background:"transparent"}}}}}},p=(d,m)=>{const S=`.${d}`,$=`${S}-treenode`,F=m.paddingXS/2,H=(0,ie.TS)(m,{treeCls:S,treeNodeCls:$,treeNodePadding:F});return[o(d,H),L(H)]},a=d=>{const{controlHeightSM:m}=d;return{titleHeight:m,nodeHoverBg:d.controlItemBgHover,nodeSelectedBg:d.controlItemBgActive}};Wt.ZP=(0,Y.Z)("Tree",(d,m)=>{let{prefixCls:S}=m;return[{[d.componentCls]:(0,Fe.C2)(`${S}-checkbox`,d)},p(S,d),(0,Me.Z)(d)]},d=>{const{colorTextLightSolid:m,colorPrimary:S}=d;return Object.assign(Object.assign({},a(d)),{directoryNodeSelectedColor:m,directoryNodeSelectedBg:S})})},71997:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return $}});var xe=g(96663),Fe=g(59301),se={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"},Me=se,ie=g(7657),Y=function(H,V){return Fe.createElement(ie.Z,(0,xe.Z)({},H,{ref:V,icon:Me}))},O=Fe.forwardRef(Y),I=O,n=g(52671),o=g(58617),L=g(15075),p=g(43531),a=g(92310),d=g.n(a),m=g(92343),$=F=>{const{prefixCls:H,switcherIcon:V,treeNodeProps:ee,showLine:B}=F,{isLeaf:G,expanded:le,loading:J}=ee;if(J)return Fe.createElement(o.Z,{className:`${H}-switcher-loading-icon`});let we;if(B&&typeof B=="object"&&(we=B.showLeafIcon),G){if(!B)return null;if(typeof we!="boolean"&&we){const ae=typeof we=="function"?we(ee):we,pe=`${H}-switcher-line-custom-icon`;return(0,m.l$)(ae)?(0,m.Tm)(ae,{className:d()(ae.props.className||"",pe)}):ae}return we?Fe.createElement(n.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement("span",{className:`${H}-switcher-leaf-line`})}const Ce=`${H}-switcher-icon`,Le=typeof V=="function"?V(ee):V;return(0,m.l$)(Le)?(0,m.Tm)(Le,{className:d()(Le.props.className||"",Ce)}):Le!==void 0?Le:B?le?Fe.createElement(L.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement(p.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement(I,{className:Ce})}},86251:function(yn,Wt){"use strict";Wt.byteLength=O,Wt.toByteArray=n,Wt.fromByteArray=p;for(var g=[],xe=[],Fe=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Me=0,ie=se.length;Me<ie;++Me)g[Me]=se[Me],xe[se.charCodeAt(Me)]=Me;xe[45]=62,xe[95]=63;function Y(a){var d=a.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=a.indexOf("=");m===-1&&(m=d);var S=m===d?0:4-m%4;return[m,S]}function O(a){var d=Y(a),m=d[0],S=d[1];return(m+S)*3/4-S}function I(a,d,m){return(d+m)*3/4-m}function n(a){var d,m=Y(a),S=m[0],$=m[1],F=new Fe(I(a,S,$)),H=0,V=$>0?S-4:S,ee;for(ee=0;ee<V;ee+=4)d=xe[a.charCodeAt(ee)]<<18|xe[a.charCodeAt(ee+1)]<<12|xe[a.charCodeAt(ee+2)]<<6|xe[a.charCodeAt(ee+3)],F[H++]=d>>16&255,F[H++]=d>>8&255,F[H++]=d&255;return $===2&&(d=xe[a.charCodeAt(ee)]<<2|xe[a.charCodeAt(ee+1)]>>4,F[H++]=d&255),$===1&&(d=xe[a.charCodeAt(ee)]<<10|xe[a.charCodeAt(ee+1)]<<4|xe[a.charCodeAt(ee+2)]>>2,F[H++]=d>>8&255,F[H++]=d&255),F}function o(a){return g[a>>18&63]+g[a>>12&63]+g[a>>6&63]+g[a&63]}function L(a,d,m){for(var S,$=[],F=d;F<m;F+=3)S=(a[F]<<16&16711680)+(a[F+1]<<8&65280)+(a[F+2]&255),$.push(o(S));return $.join("")}function p(a){for(var d,m=a.length,S=m%3,$=[],F=16383,H=0,V=m-S;H<V;H+=F)$.push(L(a,H,H+F>V?V:H+F));return S===1?(d=a[m-1],$.push(g[d>>2]+g[d<<4&63]+"==")):S===2&&(d=(a[m-2]<<8)+a[m-1],$.push(g[d>>10]+g[d>>4&63]+g[d<<2&63]+"=")),$.join("")}},19208:function(yn,Wt,g){"use strict";var xe;var Fe=g(86251),se=g(67467),Me=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Wt.lW=I,xe=H,Wt.h2=50;var ie=2147483647;xe=ie,I.TYPED_ARRAY_SUPPORT=Y(),!I.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 Y(){try{var K=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(K,y),K.foo()===42}catch(h){return!1}}Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(I.isBuffer(this))return this.buffer}}),Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(I.isBuffer(this))return this.byteOffset}});function O(K){if(K>ie)throw new RangeError('The value "'+K+'" is invalid for option "size"');var y=new Uint8Array(K);return Object.setPrototypeOf(y,I.prototype),y}function I(K,y,h){if(typeof K=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(K)}return n(K,y,h)}I.poolSize=8192;function n(K,y,h){if(typeof K=="string")return a(K,y);if(ArrayBuffer.isView(K))return m(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Cr(K,ArrayBuffer)||K&&Cr(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Cr(K,SharedArrayBuffer)||K&&Cr(K.buffer,SharedArrayBuffer)))return S(K,y,h);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var D=K.valueOf&&K.valueOf();if(D!=null&&D!==K)return I.from(D,y,h);var Ae=$(K);if(Ae)return Ae;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return I.from(K[Symbol.toPrimitive]("string"),y,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}I.from=function(K,y,h){return n(K,y,h)},Object.setPrototypeOf(I.prototype,Uint8Array.prototype),Object.setPrototypeOf(I,Uint8Array);function o(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function L(K,y,h){return o(K),K<=0?O(K):y!==void 0?typeof h=="string"?O(K).fill(y,h):O(K).fill(y):O(K)}I.alloc=function(K,y,h){return L(K,y,h)};function p(K){return o(K),O(K<0?0:F(K)|0)}I.allocUnsafe=function(K){return p(K)},I.allocUnsafeSlow=function(K){return p(K)};function a(K,y){if((typeof y!="string"||y==="")&&(y="utf8"),!I.isEncoding(y))throw new TypeError("Unknown encoding: "+y);var h=V(K,y)|0,D=O(h),Ae=D.write(K,y);return Ae!==h&&(D=D.slice(0,Ae)),D}function d(K){for(var y=K.length<0?0:F(K.length)|0,h=O(y),D=0;D<y;D+=1)h[D]=K[D]&255;return h}function m(K){if(Cr(K,Uint8Array)){var y=new Uint8Array(K);return S(y.buffer,y.byteOffset,y.byteLength)}return d(K)}function S(K,y,h){if(y<0||K.byteLength<y)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<y+(h||0))throw new RangeError('"length" is outside of buffer bounds');var D;return y===void 0&&h===void 0?D=new Uint8Array(K):h===void 0?D=new Uint8Array(K,y):D=new Uint8Array(K,y,h),Object.setPrototypeOf(D,I.prototype),D}function $(K){if(I.isBuffer(K)){var y=F(K.length)|0,h=O(y);return h.length===0||K.copy(h,0,0,y),h}if(K.length!==void 0)return typeof K.length!="number"||_e(K.length)?O(0):d(K);if(K.type==="Buffer"&&Array.isArray(K.data))return d(K.data)}function F(K){if(K>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return K|0}function H(K){return+K!=K&&(K=0),I.alloc(+K)}I.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==I.prototype},I.compare=function(y,h){if(Cr(y,Uint8Array)&&(y=I.from(y,y.offset,y.byteLength)),Cr(h,Uint8Array)&&(h=I.from(h,h.offset,h.byteLength)),!I.isBuffer(y)||!I.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===h)return 0;for(var D=y.length,Ae=h.length,Z=0,k=Math.min(D,Ae);Z<k;++Z)if(y[Z]!==h[Z]){D=y[Z],Ae=h[Z];break}return D<Ae?-1:Ae<D?1:0},I.isEncoding=function(y){switch(String(y).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}},I.concat=function(y,h){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return I.alloc(0);var D;if(h===void 0)for(h=0,D=0;D<y.length;++D)h+=y[D].length;var Ae=I.allocUnsafe(h),Z=0;for(D=0;D<y.length;++D){var k=y[D];if(Cr(k,Uint8Array))Z+k.length>Ae.length?I.from(k).copy(Ae,Z):Uint8Array.prototype.set.call(Ae,k,Z);else if(I.isBuffer(k))k.copy(Ae,Z);else throw new TypeError('"list" argument must be an Array of Buffers');Z+=k.length}return Ae};function V(K,y){if(I.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Cr(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);var h=K.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&h===0)return 0;for(var Ae=!1;;)switch(y){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Jt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return xr(K).length;default:if(Ae)return D?-1:Jt(K).length;y=(""+y).toLowerCase(),Ae=!0}}I.byteLength=V;function ee(K,y,h){var D=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,y>>>=0,h<=y))return"";for(K||(K="utf8");;)switch(K){case"hex":return _(this,y,h);case"utf8":case"utf-8":return T(this,y,h);case"ascii":return fe(this,y,h);case"latin1":case"binary":return ye(this,y,h);case"base64":return pe(this,y,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,y,h);default:if(D)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),D=!0}}I.prototype._isBuffer=!0;function B(K,y,h){var D=K[y];K[y]=K[h],K[h]=D}I.prototype.swap16=function(){var y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<y;h+=2)B(this,h,h+1);return this},I.prototype.swap32=function(){var y=this.length;if(y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<y;h+=4)B(this,h,h+3),B(this,h+1,h+2);return this},I.prototype.swap64=function(){var y=this.length;if(y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<y;h+=8)B(this,h,h+7),B(this,h+1,h+6),B(this,h+2,h+5),B(this,h+3,h+4);return this},I.prototype.toString=function(){var y=this.length;return y===0?"":arguments.length===0?T(this,0,y):ee.apply(this,arguments)},I.prototype.toLocaleString=I.prototype.toString,I.prototype.equals=function(y){if(!I.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y?!0:I.compare(this,y)===0},I.prototype.inspect=function(){var y="",h=Wt.h2;return y=this.toString("hex",0,h).replace(/(.{2})/g,"$1 ").trim(),this.length>h&&(y+=" ... "),"<Buffer "+y+">"},Me&&(I.prototype[Me]=I.prototype.inspect),I.prototype.compare=function(y,h,D,Ae,Z){if(Cr(y,Uint8Array)&&(y=I.from(y,y.offset,y.byteLength)),!I.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(h===void 0&&(h=0),D===void 0&&(D=y?y.length:0),Ae===void 0&&(Ae=0),Z===void 0&&(Z=this.length),h<0||D>y.length||Ae<0||Z>this.length)throw new RangeError("out of range index");if(Ae>=Z&&h>=D)return 0;if(Ae>=Z)return-1;if(h>=D)return 1;if(h>>>=0,D>>>=0,Ae>>>=0,Z>>>=0,this===y)return 0;for(var k=Z-Ae,te=D-h,Se=Math.min(k,te),Be=this.slice(Ae,Z),Ie=y.slice(h,D),Ge=0;Ge<Se;++Ge)if(Be[Ge]!==Ie[Ge]){k=Be[Ge],te=Ie[Ge];break}return k<te?-1:te<k?1:0};function G(K,y,h,D,Ae){if(K.length===0)return-1;if(typeof h=="string"?(D=h,h=0):h>2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,_e(h)&&(h=Ae?0:K.length-1),h<0&&(h=K.length+h),h>=K.length){if(Ae)return-1;h=K.length-1}else if(h<0)if(Ae)h=0;else return-1;if(typeof y=="string"&&(y=I.from(y,D)),I.isBuffer(y))return y.length===0?-1:le(K,y,h,D,Ae);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?Ae?Uint8Array.prototype.indexOf.call(K,y,h):Uint8Array.prototype.lastIndexOf.call(K,y,h):le(K,[y],h,D,Ae);throw new TypeError("val must be string, number or Buffer")}function le(K,y,h,D,Ae){var Z=1,k=K.length,te=y.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(K.length<2||y.length<2)return-1;Z=2,k/=2,te/=2,h/=2}function Se($e,tt){return Z===1?$e[tt]:$e.readUInt16BE(tt*Z)}var Be;if(Ae){var Ie=-1;for(Be=h;Be<k;Be++)if(Se(K,Be)===Se(y,Ie===-1?0:Be-Ie)){if(Ie===-1&&(Ie=Be),Be-Ie+1===te)return Ie*Z}else Ie!==-1&&(Be-=Be-Ie),Ie=-1}else for(h+te>k&&(h=k-te),Be=h;Be>=0;Be--){for(var Ge=!0,mt=0;mt<te;mt++)if(Se(K,Be+mt)!==Se(y,mt)){Ge=!1;break}if(Ge)return Be}return-1}I.prototype.includes=function(y,h,D){return this.indexOf(y,h,D)!==-1},I.prototype.indexOf=function(y,h,D){return G(this,y,h,D,!0)},I.prototype.lastIndexOf=function(y,h,D){return G(this,y,h,D,!1)};function J(K,y,h,D){h=Number(h)||0;var Ae=K.length-h;D?(D=Number(D),D>Ae&&(D=Ae)):D=Ae;var Z=y.length;D>Z/2&&(D=Z/2);for(var k=0;k<D;++k){var te=parseInt(y.substr(k*2,2),16);if(_e(te))return k;K[h+k]=te}return k}function we(K,y,h,D){return Wr(Jt(y,K.length-h),K,h,D)}function Ce(K,y,h,D){return Wr(We(y),K,h,D)}function Le(K,y,h,D){return Wr(xr(y),K,h,D)}function ae(K,y,h,D){return Wr(Er(y,K.length-h),K,h,D)}I.prototype.write=function(y,h,D,Ae){if(h===void 0)Ae="utf8",D=this.length,h=0;else if(D===void 0&&typeof h=="string")Ae=h,D=this.length,h=0;else if(isFinite(h))h=h>>>0,isFinite(D)?(D=D>>>0,Ae===void 0&&(Ae="utf8")):(Ae=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Z=this.length-h;if((D===void 0||D>Z)&&(D=Z),y.length>0&&(D<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ae||(Ae="utf8");for(var k=!1;;)switch(Ae){case"hex":return J(this,y,h,D);case"utf8":case"utf-8":return we(this,y,h,D);case"ascii":case"latin1":case"binary":return Ce(this,y,h,D);case"base64":return Le(this,y,h,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,y,h,D);default:if(k)throw new TypeError("Unknown encoding: "+Ae);Ae=(""+Ae).toLowerCase(),k=!0}},I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function pe(K,y,h){return y===0&&h===K.length?Fe.fromByteArray(K):Fe.fromByteArray(K.slice(y,h))}function T(K,y,h){h=Math.min(K.length,h);for(var D=[],Ae=y;Ae<h;){var Z=K[Ae],k=null,te=Z>239?4:Z>223?3:Z>191?2:1;if(Ae+te<=h){var Se,Be,Ie,Ge;switch(te){case 1:Z<128&&(k=Z);break;case 2:Se=K[Ae+1],(Se&192)===128&&(Ge=(Z&31)<<6|Se&63,Ge>127&&(k=Ge));break;case 3:Se=K[Ae+1],Be=K[Ae+2],(Se&192)===128&&(Be&192)===128&&(Ge=(Z&15)<<12|(Se&63)<<6|Be&63,Ge>2047&&(Ge<55296||Ge>57343)&&(k=Ge));break;case 4:Se=K[Ae+1],Be=K[Ae+2],Ie=K[Ae+3],(Se&192)===128&&(Be&192)===128&&(Ie&192)===128&&(Ge=(Z&15)<<18|(Se&63)<<12|(Be&63)<<6|Ie&63,Ge>65535&&Ge<1114112&&(k=Ge))}}k===null?(k=65533,te=1):k>65535&&(k-=65536,D.push(k>>>10&1023|55296),k=56320|k&1023),D.push(k),Ae+=te}return oe(D)}var Ee=4096;function oe(K){var y=K.length;if(y<=Ee)return String.fromCharCode.apply(String,K);for(var h="",D=0;D<y;)h+=String.fromCharCode.apply(String,K.slice(D,D+=Ee));return h}function fe(K,y,h){var D="";h=Math.min(K.length,h);for(var Ae=y;Ae<h;++Ae)D+=String.fromCharCode(K[Ae]&127);return D}function ye(K,y,h){var D="";h=Math.min(K.length,h);for(var Ae=y;Ae<h;++Ae)D+=String.fromCharCode(K[Ae]);return D}function _(K,y,h){var D=K.length;(!y||y<0)&&(y=0),(!h||h<0||h>D)&&(h=D);for(var Ae="",Z=y;Z<h;++Z)Ae+=kt[K[Z]];return Ae}function N(K,y,h){for(var D=K.slice(y,h),Ae="",Z=0;Z<D.length-1;Z+=2)Ae+=String.fromCharCode(D[Z]+D[Z+1]*256);return Ae}I.prototype.slice=function(y,h){var D=this.length;y=~~y,h=h===void 0?D:~~h,y<0?(y+=D,y<0&&(y=0)):y>D&&(y=D),h<0?(h+=D,h<0&&(h=0)):h>D&&(h=D),h<y&&(h=y);var Ae=this.subarray(y,h);return Object.setPrototypeOf(Ae,I.prototype),Ae};function X(K,y,h){if(K%1!==0||K<0)throw new RangeError("offset is not uint");if(K+y>h)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUintLE=I.prototype.readUIntLE=function(y,h,D){y=y>>>0,h=h>>>0,D||X(y,h,this.length);for(var Ae=this[y],Z=1,k=0;++k<h&&(Z*=256);)Ae+=this[y+k]*Z;return Ae},I.prototype.readUintBE=I.prototype.readUIntBE=function(y,h,D){y=y>>>0,h=h>>>0,D||X(y,h,this.length);for(var Ae=this[y+--h],Z=1;h>0&&(Z*=256);)Ae+=this[y+--h]*Z;return Ae},I.prototype.readUint8=I.prototype.readUInt8=function(y,h){return y=y>>>0,h||X(y,1,this.length),this[y]},I.prototype.readUint16LE=I.prototype.readUInt16LE=function(y,h){return y=y>>>0,h||X(y,2,this.length),this[y]|this[y+1]<<8},I.prototype.readUint16BE=I.prototype.readUInt16BE=function(y,h){return y=y>>>0,h||X(y,2,this.length),this[y]<<8|this[y+1]},I.prototype.readUint32LE=I.prototype.readUInt32LE=function(y,h){return y=y>>>0,h||X(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},I.prototype.readUint32BE=I.prototype.readUInt32BE=function(y,h){return y=y>>>0,h||X(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},I.prototype.readIntLE=function(y,h,D){y=y>>>0,h=h>>>0,D||X(y,h,this.length);for(var Ae=this[y],Z=1,k=0;++k<h&&(Z*=256);)Ae+=this[y+k]*Z;return Z*=128,Ae>=Z&&(Ae-=Math.pow(2,8*h)),Ae},I.prototype.readIntBE=function(y,h,D){y=y>>>0,h=h>>>0,D||X(y,h,this.length);for(var Ae=h,Z=1,k=this[y+--Ae];Ae>0&&(Z*=256);)k+=this[y+--Ae]*Z;return Z*=128,k>=Z&&(k-=Math.pow(2,8*h)),k},I.prototype.readInt8=function(y,h){return y=y>>>0,h||X(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},I.prototype.readInt16LE=function(y,h){y=y>>>0,h||X(y,2,this.length);var D=this[y]|this[y+1]<<8;return D&32768?D|4294901760:D},I.prototype.readInt16BE=function(y,h){y=y>>>0,h||X(y,2,this.length);var D=this[y+1]|this[y]<<8;return D&32768?D|4294901760:D},I.prototype.readInt32LE=function(y,h){return y=y>>>0,h||X(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},I.prototype.readInt32BE=function(y,h){return y=y>>>0,h||X(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},I.prototype.readFloatLE=function(y,h){return y=y>>>0,h||X(y,4,this.length),se.read(this,y,!0,23,4)},I.prototype.readFloatBE=function(y,h){return y=y>>>0,h||X(y,4,this.length),se.read(this,y,!1,23,4)},I.prototype.readDoubleLE=function(y,h){return y=y>>>0,h||X(y,8,this.length),se.read(this,y,!0,52,8)},I.prototype.readDoubleBE=function(y,h){return y=y>>>0,h||X(y,8,this.length),se.read(this,y,!1,52,8)};function he(K,y,h,D,Ae,Z){if(!I.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>Ae||y<Z)throw new RangeError('"value" argument is out of bounds');if(h+D>K.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(y,h,D,Ae){if(y=+y,h=h>>>0,D=D>>>0,!Ae){var Z=Math.pow(2,8*D)-1;he(this,y,h,D,Z,0)}var k=1,te=0;for(this[h]=y&255;++te<D&&(k*=256);)this[h+te]=y/k&255;return h+D},I.prototype.writeUintBE=I.prototype.writeUIntBE=function(y,h,D,Ae){if(y=+y,h=h>>>0,D=D>>>0,!Ae){var Z=Math.pow(2,8*D)-1;he(this,y,h,D,Z,0)}var k=D-1,te=1;for(this[h+k]=y&255;--k>=0&&(te*=256);)this[h+k]=y/te&255;return h+D},I.prototype.writeUint8=I.prototype.writeUInt8=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,1,255,0),this[h]=y&255,h+1},I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,2,65535,0),this[h]=y&255,this[h+1]=y>>>8,h+2},I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,2,65535,0),this[h]=y>>>8,this[h+1]=y&255,h+2},I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,4,4294967295,0),this[h+3]=y>>>24,this[h+2]=y>>>16,this[h+1]=y>>>8,this[h]=y&255,h+4},I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,4,4294967295,0),this[h]=y>>>24,this[h+1]=y>>>16,this[h+2]=y>>>8,this[h+3]=y&255,h+4},I.prototype.writeIntLE=function(y,h,D,Ae){if(y=+y,h=h>>>0,!Ae){var Z=Math.pow(2,8*D-1);he(this,y,h,D,Z-1,-Z)}var k=0,te=1,Se=0;for(this[h]=y&255;++k<D&&(te*=256);)y<0&&Se===0&&this[h+k-1]!==0&&(Se=1),this[h+k]=(y/te>>0)-Se&255;return h+D},I.prototype.writeIntBE=function(y,h,D,Ae){if(y=+y,h=h>>>0,!Ae){var Z=Math.pow(2,8*D-1);he(this,y,h,D,Z-1,-Z)}var k=D-1,te=1,Se=0;for(this[h+k]=y&255;--k>=0&&(te*=256);)y<0&&Se===0&&this[h+k+1]!==0&&(Se=1),this[h+k]=(y/te>>0)-Se&255;return h+D},I.prototype.writeInt8=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,1,127,-128),y<0&&(y=255+y+1),this[h]=y&255,h+1},I.prototype.writeInt16LE=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,2,32767,-32768),this[h]=y&255,this[h+1]=y>>>8,h+2},I.prototype.writeInt16BE=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,2,32767,-32768),this[h]=y>>>8,this[h+1]=y&255,h+2},I.prototype.writeInt32LE=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,4,2147483647,-2147483648),this[h]=y&255,this[h+1]=y>>>8,this[h+2]=y>>>16,this[h+3]=y>>>24,h+4},I.prototype.writeInt32BE=function(y,h,D){return y=+y,h=h>>>0,D||he(this,y,h,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[h]=y>>>24,this[h+1]=y>>>16,this[h+2]=y>>>8,this[h+3]=y&255,h+4};function qe(K,y,h,D,Ae,Z){if(h+D>K.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function st(K,y,h,D,Ae){return y=+y,h=h>>>0,Ae||qe(K,y,h,4,34028234663852886e22,-34028234663852886e22),se.write(K,y,h,D,23,4),h+4}I.prototype.writeFloatLE=function(y,h,D){return st(this,y,h,!0,D)},I.prototype.writeFloatBE=function(y,h,D){return st(this,y,h,!1,D)};function nt(K,y,h,D,Ae){return y=+y,h=h>>>0,Ae||qe(K,y,h,8,17976931348623157e292,-17976931348623157e292),se.write(K,y,h,D,52,8),h+8}I.prototype.writeDoubleLE=function(y,h,D){return nt(this,y,h,!0,D)},I.prototype.writeDoubleBE=function(y,h,D){return nt(this,y,h,!1,D)},I.prototype.copy=function(y,h,D,Ae){if(!I.isBuffer(y))throw new TypeError("argument should be a Buffer");if(D||(D=0),!Ae&&Ae!==0&&(Ae=this.length),h>=y.length&&(h=y.length),h||(h=0),Ae>0&&Ae<D&&(Ae=D),Ae===D||y.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("sourceEnd out of bounds");Ae>this.length&&(Ae=this.length),y.length-h<Ae-D&&(Ae=y.length-h+D);var Z=Ae-D;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(h,D,Ae):Uint8Array.prototype.set.call(y,this.subarray(D,Ae),h),Z},I.prototype.fill=function(y,h,D,Ae){if(typeof y=="string"){if(typeof h=="string"?(Ae=h,h=0,D=this.length):typeof D=="string"&&(Ae=D,D=this.length),Ae!==void 0&&typeof Ae!="string")throw new TypeError("encoding must be a string");if(typeof Ae=="string"&&!I.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);if(y.length===1){var Z=y.charCodeAt(0);(Ae==="utf8"&&Z<128||Ae==="latin1")&&(y=Z)}}else typeof y=="number"?y=y&255:typeof y=="boolean"&&(y=Number(y));if(h<0||this.length<h||this.length<D)throw new RangeError("Out of range index");if(D<=h)return this;h=h>>>0,D=D===void 0?this.length:D>>>0,y||(y=0);var k;if(typeof y=="number")for(k=h;k<D;++k)this[k]=y;else{var te=I.isBuffer(y)?y:I.from(y,Ae),Se=te.length;if(Se===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(k=0;k<D-h;++k)this[k+h]=te[k%Se]}return this};var Rt=/[^+/0-9A-Za-z-_]/g;function sr(K){if(K=K.split("=")[0],K=K.trim().replace(Rt,""),K.length<2)return"";for(;K.length%4!==0;)K=K+"=";return K}function Jt(K,y){y=y||1/0;for(var h,D=K.length,Ae=null,Z=[],k=0;k<D;++k){if(h=K.charCodeAt(k),h>55295&&h<57344){if(!Ae){if(h>56319){(y-=3)>-1&&Z.push(239,191,189);continue}else if(k+1===D){(y-=3)>-1&&Z.push(239,191,189);continue}Ae=h;continue}if(h<56320){(y-=3)>-1&&Z.push(239,191,189),Ae=h;continue}h=(Ae-55296<<10|h-56320)+65536}else Ae&&(y-=3)>-1&&Z.push(239,191,189);if(Ae=null,h<128){if((y-=1)<0)break;Z.push(h)}else if(h<2048){if((y-=2)<0)break;Z.push(h>>6|192,h&63|128)}else if(h<65536){if((y-=3)<0)break;Z.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((y-=4)<0)break;Z.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return Z}function We(K){for(var y=[],h=0;h<K.length;++h)y.push(K.charCodeAt(h)&255);return y}function Er(K,y){for(var h,D,Ae,Z=[],k=0;k<K.length&&!((y-=2)<0);++k)h=K.charCodeAt(k),D=h>>8,Ae=h%256,Z.push(Ae),Z.push(D);return Z}function xr(K){return Fe.toByteArray(sr(K))}function Wr(K,y,h,D){for(var Ae=0;Ae<D&&!(Ae+h>=y.length||Ae>=K.length);++Ae)y[Ae+h]=K[Ae];return Ae}function Cr(K,y){return K instanceof y||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===y.name}function _e(K){return K!==K}var kt=function(){for(var K="0123456789abcdef",y=new Array(256),h=0;h<16;++h)for(var D=h*16,Ae=0;Ae<16;++Ae)y[D+Ae]=K[h]+K[Ae];return y}()},64018:function(){var yn,Wt,g,xe=!1,Fe,se;window.PR_SHOULD_USE_CONTINUATION=!0;var Me,ie;(function(){var Y=window,O=["break,continue,do,else,for,if,return,while"],I=[O,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],n=[I,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[n,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],L=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],p=[n,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],a="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",d=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],m="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",S=[O,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],$=[O,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],F=[O,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],H=[o,p,L,d,m,S,$,F],V=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ee="str",B="kwd",G="com",le="typ",J="lit",we="pun",Ce="pln",Le="tag",ae="dec",pe="src",T="atn",Ee="atv",oe="nocode",fe="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function ye(K){for(var y=0,h=!1,D=!1,Ae=0,Z=K.length;Ae<Z;++Ae){var k=K[Ae];if(k.ignoreCase)D=!0;else if(/[a-z]/i.test(k.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){h=!0,D=!1;break}}var te={b:8,t:9,n:10,v:11,f:12,r:13};function Se($e){var tt=$e.charCodeAt(0);if(tt!==92)return tt;var dt=$e.charAt(1);return tt=te[dt],tt||("0"<=dt&&dt<="7"?parseInt($e.substring(1),8):dt==="u"||dt==="x"?parseInt($e.substring(2),16):$e.charCodeAt(1))}function Be($e){if($e<32)return($e<16?"\\x0":"\\x")+$e.toString(16);var tt=String.fromCharCode($e);return tt==="\\"||tt==="-"||tt==="]"||tt==="^"?"\\"+tt:tt}function Ie($e){var tt=$e.substring(1,$e.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),dt=[],Ze=tt[0]==="^",Ke=["["];Ze&&Ke.push("^");for(var Bt=Ze?1:0,Vt=tt.length;Bt<Vt;++Bt){var Ut=tt[Bt];if(/\\[bdsw]/i.test(Ut))Ke.push(Ut);else{var mr=Se(Ut),br;Bt+2<Vt&&tt[Bt+1]==="-"?(br=Se(tt[Bt+2]),Bt+=2):br=mr,dt.push([mr,br]),br<65||mr>122||(br<65||mr>90||dt.push([Math.max(65,mr)|32,Math.min(br,90)|32]),br<97||mr>122||dt.push([Math.max(97,mr)&-33,Math.min(br,122)&-33]))}}dt.sort(function(Qe,ot){return Qe[0]-ot[0]||ot[1]-Qe[1]});for(var re=[],ue=[],Bt=0;Bt<dt.length;++Bt){var rr=dt[Bt];rr[0]<=ue[1]+1?ue[1]=Math.max(ue[1],rr[1]):re.push(ue=rr)}for(var Bt=0;Bt<re.length;++Bt){var rr=re[Bt];Ke.push(Be(rr[0])),rr[1]>rr[0]&&(rr[1]+1>rr[0]&&Ke.push("-"),Ke.push(Be(rr[1])))}return Ke.push("]"),Ke.join("")}function Ge($e){for(var tt=$e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),dt=tt.length,Ze=[],Ke=0,Bt=0;Ke<dt;++Ke){var Vt=tt[Ke];if(Vt==="(")++Bt;else if(Vt.charAt(0)==="\\"){var Ut=+Vt.substring(1);Ut&&(Ut<=Bt?Ze[Ut]=-1:tt[Ke]=Be(Ut))}}for(var Ke=1;Ke<Ze.length;++Ke)Ze[Ke]===-1&&(Ze[Ke]=++y);for(var Ke=0,Bt=0;Ke<dt;++Ke){var Vt=tt[Ke];if(Vt==="(")++Bt,Ze[Bt]||(tt[Ke]="(?:");else if(Vt.charAt(0)==="\\"){var Ut=+Vt.substring(1);Ut&&Ut<=Bt&&(tt[Ke]="\\"+Ze[Ut])}}for(var Ke=0;Ke<dt;++Ke)tt[Ke]==="^"&&tt[Ke+1]!=="^"&&(tt[Ke]="");if($e.ignoreCase&&h)for(var Ke=0;Ke<dt;++Ke){var Vt=tt[Ke],mr=Vt.charAt(0);Vt.length>=2&&mr==="["?tt[Ke]=Ie(Vt):mr!=="\\"&&(tt[Ke]=Vt.replace(/[a-zA-Z]/g,function(ue){var rr=ue.charCodeAt(0);return"["+String.fromCharCode(rr&-33,rr|32)+"]"}))}return tt.join("")}for(var mt=[],Ae=0,Z=K.length;Ae<Z;++Ae){var k=K[Ae];if(k.global||k.multiline)throw new Error(""+k);mt.push("(?:"+Ge(k)+")")}return new RegExp(mt.join("|"),D?"gi":"g")}function _(K,y){var h=/(?:^|\s)nocode(?:\s|$)/,D=[],Ae=0,Z=[],k=0;function te(Se){var Be=Se.nodeType;if(Be==1){if(h.test(Se.className))return;for(var Ie=Se.firstChild;Ie;Ie=Ie.nextSibling)te(Ie);var Ge=Se.nodeName.toLowerCase();(Ge==="br"||Ge==="li")&&(D[k]=`
|
|
|
`,Z[k<<1]=Ae++,Z[k++<<1|1]=Se)}else if(Be==3||Be==4){var mt=Se.nodeValue;mt.length&&(y?mt=mt.replace(/\r\n?/g,`
|
|
|
`):mt=mt.replace(/[ \t\r\n]+/g," "),D[k]=mt,Z[k<<1]=Ae,Ae+=mt.length,Z[k++<<1|1]=Se)}}return te(K),{sourceCode:D.join("").replace(/\n$/,""),spans:Z}}function N(K,y,h,D,Ae){if(h){var Z={sourceNode:K,pre:1,langExtension:null,numberLines:null,sourceCode:h,spans:null,basePos:y,decorations:null};D(Z),Ae.push.apply(Ae,Z.decorations)}}var X=/\S/;function he(K){for(var y=void 0,h=K.firstChild;h;h=h.nextSibling){var D=h.nodeType;y=D===1?y?K:h:D===3&&X.test(h.nodeValue)?K:y}return y===K?void 0:y}function qe(K,y){var h={},D;(function(){for(var k=K.concat(y),te=[],Se={},Be=0,Ie=k.length;Be<Ie;++Be){var Ge=k[Be],mt=Ge[3];if(mt)for(var $e=mt.length;--$e>=0;)h[mt.charAt($e)]=Ge;var tt=Ge[1],dt=""+tt;Se.hasOwnProperty(dt)||(te.push(tt),Se[dt]=null)}te.push(/[\0-\uffff]/),D=ye(te)})();var Ae=y.length,Z=function(k){for(var te=k.sourceCode,Se=k.basePos,Be=k.sourceNode,Ie=[Se,Ce],Ge=0,mt=te.match(D)||[],$e={},tt=0,dt=mt.length;tt<dt;++tt){var Ze=mt[tt],Ke=$e[Ze],Bt=void 0,Vt;if(typeof Ke=="string")Vt=!1;else{var Ut=h[Ze.charAt(0)];if(Ut)Bt=Ze.match(Ut[1]),Ke=Ut[0];else{for(var mr=0;mr<Ae;++mr)if(Ut=y[mr],Bt=Ze.match(Ut[1]),Bt){Ke=Ut[0];break}Bt||(Ke=Ce)}Vt=Ke.length>=5&&Ke.substring(0,5)==="lang-",Vt&&!(Bt&&typeof Bt[1]=="string")&&(Vt=!1,Ke=pe),Vt||($e[Ze]=Ke)}var br=Ge;if(Ge+=Ze.length,!Vt)Ie.push(Se+br,Ke);else{var re=Bt[1],ue=Ze.indexOf(re),rr=ue+re.length;Bt[2]&&(rr=Ze.length-Bt[2].length,ue=rr-re.length);var Qe=Ke.substring(5);N(Be,Se+br,Ze.substring(0,ue),Z,Ie),N(Be,Se+br+ue,re,Er(Qe,re),Ie),N(Be,Se+br+rr,Ze.substring(rr),Z,Ie)}}k.decorations=Ie};return Z}function st(K){var y=[],h=[];K.tripleQuotedStrings?y.push([ee,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):K.multiLineStrings?y.push([ee,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):y.push([ee,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),K.verbatimStrings&&h.push([ee,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var D=K.hashComments;D&&(K.cStyleComments?(D>1?y.push([G,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):y.push([G,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),h.push([ee,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):y.push([G,/^#[^\r\n]*/,null,"#"])),K.cStyleComments&&(h.push([G,/^\/\/[^\r\n]*/,null]),h.push([G,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ae=K.regexLiterals;if(Ae){var Z=Ae>1?"":`
|
|
|
\r`,k=Z?".":"[\\S\\s]",te="/(?=[^/*"+Z+"])(?:[^/\\x5B\\x5C"+Z+"]|\\x5C"+k+"|\\x5B(?:[^\\x5C\\x5D"+Z+"]|\\x5C"+k+")*(?:\\x5D|$))+/";h.push(["lang-regex",RegExp("^"+fe+"("+te+")")])}var Se=K.types;Se&&h.push([le,Se]);var Be=(""+K.keywords).replace(/^ | $/g,"");Be.length&&h.push([B,new RegExp("^(?:"+Be.replace(/[\s,]+/g,"|")+")\\b"),null]),y.push([Ce,/^\s+/,null,` \r
|
|
|
\xA0`]);var Ie="^.[^\\s\\w.$@'\"`/\\\\]*";return K.regexLiterals&&(Ie+="(?!s*/)"),h.push([J,/^@[a-z_$][a-z_$@0-9]*/i,null],[le,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Ce,/^[a-z_$][a-z_$@0-9]*/i,null],[J,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Ce,/^\\[\s\S]?/,null],[we,new RegExp(Ie),null]),qe(y,h)}var nt=st({keywords:H,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Rt(K,y,h){for(var D=/(?:^|\s)nocode(?:\s|$)/,Ae=/\r\n?|\n/,Z=K.ownerDocument,k=Z.createElement("li");K.firstChild;)k.appendChild(K.firstChild);var te=[k];function Se(tt){var dt=tt.nodeType;if(dt==1&&!D.test(tt.className))if(tt.nodeName==="br")Be(tt),tt.parentNode&&tt.parentNode.removeChild(tt);else for(var Ze=tt.firstChild;Ze;Ze=Ze.nextSibling)Se(Ze);else if((dt==3||dt==4)&&h){var Ke=tt.nodeValue,Bt=Ke.match(Ae);if(Bt){var Vt=Ke.substring(0,Bt.index);tt.nodeValue=Vt;var Ut=Ke.substring(Bt.index+Bt[0].length);if(Ut){var mr=tt.parentNode;mr.insertBefore(Z.createTextNode(Ut),tt.nextSibling)}Be(tt),Vt||tt.parentNode.removeChild(tt)}}}function Be(tt){for(;!tt.nextSibling;)if(tt=tt.parentNode,!tt)return;function dt(Bt,Vt){var Ut=Vt?Bt.cloneNode(!1):Bt,mr=Bt.parentNode;if(mr){var br=dt(mr,1),re=Bt.nextSibling;br.appendChild(Ut);for(var ue=re;ue;ue=re)re=ue.nextSibling,br.appendChild(ue)}return Ut}for(var Ze=dt(tt.nextSibling,0),Ke;(Ke=Ze.parentNode)&&Ke.nodeType===1;)Ze=Ke;te.push(Ze)}for(var Ie=0;Ie<te.length;++Ie)Se(te[Ie]);y===(y|0)&&te[0].setAttribute("value",y);var Ge=Z.createElement("ol");Ge.className="linenums";for(var mt=Math.max(0,y-1|0)||0,Ie=0,$e=te.length;Ie<$e;++Ie)k=te[Ie],k.className="L"+(Ie+mt)%10,k.firstChild||k.appendChild(Z.createTextNode("\xA0")),Ge.appendChild(k);K.appendChild(Ge)}function sr(K){var y=/\bMSIE\s(\d+)/.exec(navigator.userAgent);y=y&&+y[1]<=8;var h=/\n/g,D=K.sourceCode,Ae=D.length,Z=0,k=K.spans,te=k.length,Se=0,Be=K.decorations,Ie=Be.length,Ge=0;Be[Ie]=Ae;var mt,$e;for($e=mt=0;$e<Ie;)Be[$e]!==Be[$e+2]?(Be[mt++]=Be[$e++],Be[mt++]=Be[$e++]):$e+=2;for(Ie=mt,$e=mt=0;$e<Ie;){for(var tt=Be[$e],dt=Be[$e+1],Ze=$e+2;Ze+2<=Ie&&Be[Ze+1]===dt;)Ze+=2;Be[mt++]=tt,Be[mt++]=dt,$e=Ze}Ie=Be.length=mt;var Ke=K.sourceNode,Bt="";Ke&&(Bt=Ke.style.display,Ke.style.display="none");try{for(var Vt=null;Se<te;){var Ut=k[Se],mr=k[Se+2]||Ae,br=Be[Ge+2]||Ae,Ze=Math.min(mr,br),re=k[Se+1],ue;if(re.nodeType!==1&&(ue=D.substring(Z,Ze))){y&&(ue=ue.replace(h,"\r")),re.nodeValue=ue;var rr=re.ownerDocument,Qe=rr.createElement("span");Qe.className=Be[Ge+1];var ot=re.parentNode;ot.replaceChild(Qe,re),Qe.appendChild(re),Z<mr&&(k[Se+1]=re=rr.createTextNode(D.substring(Ze,mr)),ot.insertBefore(re,Qe.nextSibling))}Z=Ze,Z>=mr&&(Se+=2),Z>=br&&(Ge+=2)}}finally{Ke&&(Ke.style.display=Bt)}}var Jt={};function We(K,y){for(var h=y.length;--h>=0;){var D=y[h];Jt.hasOwnProperty(D)?Y.console&&console.warn("cannot override language handler %s",D):Jt[D]=K}}function Er(K,y){return K&&Jt.hasOwnProperty(K)||(K=/^\s*</.test(y)?"default-markup":"default-code"),Jt[K]}We(nt,["default-code"]),We(qe([],[[Ce,/^[^<?]+/],[ae,/^<!\w[^>]*(?:>|$)/],[G,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[we,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),We(qe([[Ce,/^[\s]+/,null,` \r
|
|
|
`],[Ee,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Le,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[T,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[we,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),We(qe([],[[Ee,/^[\s\S]+/]]),["uq.val"]),We(st({keywords:o,hashComments:!0,cStyleComments:!0,types:V}),["c","cc","cpp","cxx","cyc","m"]),We(st({keywords:"null,true,false"}),["json"]),We(st({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:V}),["cs"]),We(st({keywords:L,cStyleComments:!0}),["java"]),We(st({keywords:F,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),We(st({keywords:S,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),We(st({keywords:m,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),We(st({keywords:$,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),We(st({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),We(st({keywords:a,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),We(qe([],[[ee,/^[\s\S]+/]]),["regex"]);function xr(K){var y=K.langExtension;try{var h=_(K.sourceNode,K.pre),D=h.sourceCode;K.sourceCode=D,K.spans=h.spans,K.basePos=0,Er(y,D)(K),sr(K)}catch(Ae){Y.console&&console.log(Ae&&Ae.stack||Ae)}}function Wr(K,y,h){var D=h||!1,Ae=y||null,Z=document.createElement("div");Z.innerHTML="<pre>"+K+"</pre>",Z=Z.firstChild,D&&Rt(Z,D,!0);var k={langExtension:Ae,numberLines:D,sourceNode:Z,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return xr(k),Z.innerHTML}function Cr(K,y){var h=y||document.body,D=h.ownerDocument||document;function Ae(Ut){return h.getElementsByTagName(Ut)}for(var Z=[Ae("pre"),Ae("code"),Ae("xmp")],k=[],te=0;te<Z.length;++te)for(var Se=0,Be=Z[te].length;Se<Be;++Se)k.push(Z[te][Se]);Z=null;var Ie=Date;Ie.now||(Ie={now:function(){return+new Date}});var Ge=0,mt=/\blang(?:uage)?-([\w.]+)(?!\S)/,$e=/\bprettyprint\b/,tt=/\bprettyprinted\b/,dt=/pre|xmp/i,Ze=/^code$/i,Ke=/^(?:pre|code|xmp)$/i,Bt={};function Vt(){for(var Ut=Y.PR_SHOULD_USE_CONTINUATION?Ie.now()+250:1/0;Ge<k.length&&Ie.now()<Ut;Ge++){for(var mr=k[Ge],br=Bt,re=mr;re=re.previousSibling;){var ue=re.nodeType,rr=(ue===7||ue===8)&&re.nodeValue;if(rr?!/^\??prettify\b/.test(rr):ue!==3||/\S/.test(re.nodeValue))break;if(rr){br={},rr.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Mt,On,Xn){br[On]=Xn});break}}var Qe=mr.className;if((br!==Bt||$e.test(Qe))&&!tt.test(Qe)){for(var ot=!1,Jr=mr.parentNode;Jr;Jr=Jr.parentNode){var Tt=Jr.tagName;if(Ke.test(Tt)&&Jr.className&&$e.test(Jr.className)){ot=!0;break}}if(!ot){mr.className+=" prettyprinted";var Kt=br.lang;if(!Kt){Kt=Qe.match(mt);var qt;!Kt&&(qt=he(mr))&&Ze.test(qt.tagName)&&(Kt=qt.className.match(mt)),Kt&&(Kt=Kt[1])}var et;if(dt.test(mr.tagName))et=1;else{var ft=mr.currentStyle,ht=D.defaultView,Gt=ft?ft.whiteSpace:ht&&ht.getComputedStyle?ht.getComputedStyle(mr,null).getPropertyValue("white-space"):0;et=Gt&&Gt.substring(0,3)==="pre"}var Oe=br.linenums;(Oe=Oe==="true"||+Oe)||(Oe=Qe.match(/\blinenums\b(?::(\d+))?/),Oe=Oe?Oe[1]&&Oe[1].length?+Oe[1]:!0:!1),Oe&&Rt(mr,Oe,et);var on={langExtension:Kt,sourceNode:mr,numberLines:Oe,pre:et,sourceCode:null,basePos:null,spans:null,decorations:null};xr(on)}}}Ge<k.length?Y.setTimeout(Vt,250):typeof K=="function"&&K()}Vt()}var _e=Y.PR={createSimpleLexer:qe,registerLangHandler:We,sourceDecorator:st,PR_ATTRIB_NAME:T,PR_ATTRIB_VALUE:Ee,PR_COMMENT:G,PR_DECLARATION:ae,PR_KEYWORD:B,PR_LITERAL:J,PR_NOCODE:oe,PR_PLAIN:Ce,PR_PUNCTUATION:we,PR_SOURCE:pe,PR_STRING:ee,PR_TAG:Le,PR_TYPE:le,prettyPrintOne:xe?Y.prettyPrintOne=Wr:Me=Wr,prettyPrint:ie=xe?Y.prettyPrint=Cr:ie=Cr},kt=Y.define;typeof kt=="function"&&kt.amd&&kt("google-code-prettify",[],function(){return _e})})()},25769:function(yn,Wt,g){"use strict";var xe=g(98040),Fe={"text/plain":"Text","text/html":"Url",default:"Text"},se="Copy to clipboard: #{key}, Enter";function Me(Y){var O=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return Y.replace(/#{\s*key\s*}/g,O)}function ie(Y,O){var I,n,o,L,p,a,d=!1;O||(O={}),I=O.debug||!1;try{o=xe(),L=document.createRange(),p=document.getSelection(),a=document.createElement("span"),a.textContent=Y,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(S){if(S.stopPropagation(),O.format)if(S.preventDefault(),typeof S.clipboardData=="undefined"){I&&console.warn("unable to use e.clipboardData"),I&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var $=Fe[O.format]||Fe.default;window.clipboardData.setData($,Y)}else S.clipboardData.clearData(),S.clipboardData.setData(O.format,Y);O.onCopy&&(S.preventDefault(),O.onCopy(S.clipboardData))}),document.body.appendChild(a),L.selectNodeContents(a),p.addRange(L);var m=document.execCommand("copy");if(!m)throw new Error("copy command was unsuccessful");d=!0}catch(S){I&&console.error("unable to copy using execCommand: ",S),I&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(O.format||"text",Y),O.onCopy&&O.onCopy(window.clipboardData),d=!0}catch($){I&&console.error("unable to copy using clipboardData: ",$),I&&console.error("falling back to prompt"),n=Me("message"in O?O.message:se),window.prompt(n,Y)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(L):p.removeAllRanges()),a&&document.body.removeChild(a),o()}return d}yn.exports=ie},64270:function(yn){(function(Wt,g){yn.exports=g()})(this,function(){"use strict";var Wt=function(R,C){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,M){Q.__proto__=M}||function(Q,M){for(var Ne in M)Object.prototype.hasOwnProperty.call(M,Ne)&&(Q[Ne]=M[Ne])},Wt(R,C)};function g(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");Wt(R,C);function Q(){this.constructor=R}R.prototype=C===null?Object.create(C):(Q.prototype=C.prototype,new Q)}var xe=function(){return xe=Object.assign||function(C){for(var Q,M=1,Ne=arguments.length;M<Ne;M++){Q=arguments[M];for(var it in Q)Object.prototype.hasOwnProperty.call(Q,it)&&(C[it]=Q[it])}return C},xe.apply(this,arguments)};function Fe(R,C,Q,M){function Ne(it){return it instanceof Q?it:new Q(function(Lt){Lt(it)})}return new(Q||(Q=Promise))(function(it,Lt){function ir(qr){try{Qr(M.next(qr))}catch(u){Lt(u)}}function ar(qr){try{Qr(M.throw(qr))}catch(u){Lt(u)}}function Qr(qr){qr.done?it(qr.value):Ne(qr.value).then(ir,ar)}Qr((M=M.apply(R,C||[])).next())})}function se(R,C){var Q={label:0,sent:function(){if(it[0]&1)throw it[1];return it[1]},trys:[],ops:[]},M,Ne,it,Lt;return Lt={next:ir(0),throw:ir(1),return:ir(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function ir(Qr){return function(qr){return ar([Qr,qr])}}function ar(Qr){if(M)throw new TypeError("Generator is already executing.");for(;Q;)try{if(M=1,Ne&&(it=Qr[0]&2?Ne.return:Qr[0]?Ne.throw||((it=Ne.return)&&it.call(Ne),0):Ne.next)&&!(it=it.call(Ne,Qr[1])).done)return it;switch(Ne=0,it&&(Qr=[Qr[0]&2,it.value]),Qr[0]){case 0:case 1:it=Qr;break;case 4:return Q.label++,{value:Qr[1],done:!1};case 5:Q.label++,Ne=Qr[1],Qr=[0];continue;case 7:Qr=Q.ops.pop(),Q.trys.pop();continue;default:if(it=Q.trys,!(it=it.length>0&&it[it.length-1])&&(Qr[0]===6||Qr[0]===2)){Q=0;continue}if(Qr[0]===3&&(!it||Qr[1]>it[0]&&Qr[1]<it[3])){Q.label=Qr[1];break}if(Qr[0]===6&&Q.label<it[1]){Q.label=it[1],it=Qr;break}if(it&&Q.label<it[2]){Q.label=it[2],Q.ops.push(Qr);break}it[2]&&Q.ops.pop(),Q.trys.pop();continue}Qr=C.call(R,Q)}catch(qr){Qr=[6,qr],Ne=0}finally{M=it=0}if(Qr[0]&5)throw Qr[1];return{value:Qr[0]?Qr[1]:void 0,done:!0}}}function Me(R,C,Q){if(Q||arguments.length===2)for(var M=0,Ne=C.length,it;M<Ne;M++)(it||!(M in C))&&(it||(it=Array.prototype.slice.call(C,0,M)),it[M]=C[M]);return R.concat(it||C)}for(var ie=function(){function R(C,Q,M,Ne){this.left=C,this.top=Q,this.width=M,this.height=Ne}return R.prototype.add=function(C,Q,M,Ne){return new R(this.left+C,this.top+Q,this.width+M,this.height+Ne)},R.fromClientRect=function(C,Q){return new R(Q.left+C.windowBounds.left,Q.top+C.windowBounds.top,Q.width,Q.height)},R.fromDOMRectList=function(C,Q){var M=Array.from(Q).find(function(Ne){return Ne.width!==0});return M?new R(M.left+C.windowBounds.left,M.top+C.windowBounds.top,M.width,M.height):R.EMPTY},R.EMPTY=new R(0,0,0,0),R}(),Y=function(R,C){return ie.fromClientRect(R,C.getBoundingClientRect())},O=function(R){var C=R.body,Q=R.documentElement;if(!C||!Q)throw new Error("Unable to get document size");var M=Math.max(Math.max(C.scrollWidth,Q.scrollWidth),Math.max(C.offsetWidth,Q.offsetWidth),Math.max(C.clientWidth,Q.clientWidth)),Ne=Math.max(Math.max(C.scrollHeight,Q.scrollHeight),Math.max(C.offsetHeight,Q.offsetHeight),Math.max(C.clientHeight,Q.clientHeight));return new ie(0,0,M,Ne)},I=function(R){for(var C=[],Q=0,M=R.length;Q<M;){var Ne=R.charCodeAt(Q++);if(Ne>=55296&&Ne<=56319&&Q<M){var it=R.charCodeAt(Q++);(it&64512)===56320?C.push(((Ne&1023)<<10)+(it&1023)+65536):(C.push(Ne),Q--)}else C.push(Ne)}return C},n=function(){for(var R=[],C=0;C<arguments.length;C++)R[C]=arguments[C];if(String.fromCodePoint)return String.fromCodePoint.apply(String,R);var Q=R.length;if(!Q)return"";for(var M=[],Ne=-1,it="";++Ne<Q;){var Lt=R[Ne];Lt<=65535?M.push(Lt):(Lt-=65536,M.push((Lt>>10)+55296,Lt%1024+56320)),(Ne+1===Q||M.length>16384)&&(it+=String.fromCharCode.apply(String,M),M.length=0)}return it},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),p=0;p<o.length;p++)L[o.charCodeAt(p)]=p;for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),m=0;m<a.length;m++)d[a.charCodeAt(m)]=m;for(var S=function(R){var C=R.length*.75,Q=R.length,M,Ne=0,it,Lt,ir,ar;R[R.length-1]==="="&&(C--,R[R.length-2]==="="&&C--);var Qr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(C):new Array(C),qr=Array.isArray(Qr)?Qr:new Uint8Array(Qr);for(M=0;M<Q;M+=4)it=d[R.charCodeAt(M)],Lt=d[R.charCodeAt(M+1)],ir=d[R.charCodeAt(M+2)],ar=d[R.charCodeAt(M+3)],qr[Ne++]=it<<2|Lt>>4,qr[Ne++]=(Lt&15)<<4|ir>>2,qr[Ne++]=(ir&3)<<6|ar&63;return Qr},$=function(R){for(var C=R.length,Q=[],M=0;M<C;M+=2)Q.push(R[M+1]<<8|R[M]);return Q},F=function(R){for(var C=R.length,Q=[],M=0;M<C;M+=4)Q.push(R[M+3]<<24|R[M+2]<<16|R[M+1]<<8|R[M]);return Q},H=5,V=11,ee=2,B=V-H,G=65536>>H,le=1<<H,J=le-1,we=1024>>H,Ce=G+we,Le=Ce,ae=32,pe=Le+ae,T=65536>>V,Ee=1<<B,oe=Ee-1,fe=function(R,C,Q){return R.slice?R.slice(C,Q):new Uint16Array(Array.prototype.slice.call(R,C,Q))},ye=function(R,C,Q){return R.slice?R.slice(C,Q):new Uint32Array(Array.prototype.slice.call(R,C,Q))},_=function(R,C){var Q=S(R),M=Array.isArray(Q)?F(Q):new Uint32Array(Q),Ne=Array.isArray(Q)?$(Q):new Uint16Array(Q),it=24,Lt=fe(Ne,it/2,M[4]/2),ir=M[5]===2?fe(Ne,(it+M[4])/2):ye(M,Math.ceil((it+M[4])/4));return new N(M[0],M[1],M[2],M[3],Lt,ir)},N=function(){function R(C,Q,M,Ne,it,Lt){this.initialValue=C,this.errorValue=Q,this.highStart=M,this.highValueIndex=Ne,this.index=it,this.data=Lt}return R.prototype.get=function(C){var Q;if(C>=0){if(C<55296||C>56319&&C<=65535)return Q=this.index[C>>H],Q=(Q<<ee)+(C&J),this.data[Q];if(C<=65535)return Q=this.index[G+(C-55296>>H)],Q=(Q<<ee)+(C&J),this.data[Q];if(C<this.highStart)return Q=pe-T+(C>>V),Q=this.index[Q],Q+=C>>H&oe,Q=this.index[Q],Q=(Q<<ee)+(C&J),this.data[Q];if(C<=1114111)return this.data[this.highValueIndex]}return this.errorValue},R}(),X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),qe=0;qe<X.length;qe++)he[X.charCodeAt(qe)]=qe;var st="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",nt=50,Rt=1,sr=2,Jt=3,We=4,Er=5,xr=7,Wr=8,Cr=9,_e=10,kt=11,K=12,y=13,h=14,D=15,Ae=16,Z=17,k=18,te=19,Se=20,Be=21,Ie=22,Ge=23,mt=24,$e=25,tt=26,dt=27,Ze=28,Ke=29,Bt=30,Vt=31,Ut=32,mr=33,br=34,re=35,ue=36,rr=37,Qe=38,ot=39,Jr=40,Tt=41,Kt=42,qt=43,et=[9001,65288],ft="!",ht="\xD7",Gt="\xF7",Oe=_(st),on=[Bt,ue],Mt=[Rt,sr,Jt,Er],On=[_e,Wr],Xn=[dt,tt],yi=Mt.concat(On),$i=[Qe,ot,Jr,br,re],Dn=[D,y],zn=function(R,C){C===void 0&&(C="strict");var Q=[],M=[],Ne=[];return R.forEach(function(it,Lt){var ir=Oe.get(it);if(ir>nt?(Ne.push(!0),ir-=nt):Ne.push(!1),["normal","auto","loose"].indexOf(C)!==-1&&[8208,8211,12316,12448].indexOf(it)!==-1)return M.push(Lt),Q.push(Ae);if(ir===We||ir===kt){if(Lt===0)return M.push(Lt),Q.push(Bt);var ar=Q[Lt-1];return yi.indexOf(ar)===-1?(M.push(M[Lt-1]),Q.push(ar)):(M.push(Lt),Q.push(Bt))}if(M.push(Lt),ir===Vt)return Q.push(C==="strict"?Be:rr);if(ir===Kt||ir===Ke)return Q.push(Bt);if(ir===qt)return it>=131072&&it<=196605||it>=196608&&it<=262141?Q.push(rr):Q.push(Bt);Q.push(ir)}),[M,Q,Ne]},Xt=function(R,C,Q,M){var Ne=M[Q];if(Array.isArray(R)?R.indexOf(Ne)!==-1:R===Ne)for(var it=Q;it<=M.length;){it++;var Lt=M[it];if(Lt===C)return!0;if(Lt!==_e)break}if(Ne===_e)for(var it=Q;it>0;){it--;var ir=M[it];if(Array.isArray(R)?R.indexOf(ir)!==-1:R===ir)for(var ar=Q;ar<=M.length;){ar++;var Lt=M[ar];if(Lt===C)return!0;if(Lt!==_e)break}if(ir!==_e)break}return!1},$r=function(R,C){for(var Q=R;Q>=0;){var M=C[Q];if(M===_e)Q--;else return M}return 0},en=function(R,C,Q,M,Ne){if(Q[M]===0)return ht;var it=M-1;if(Array.isArray(Ne)&&Ne[it]===!0)return ht;var Lt=it-1,ir=it+1,ar=C[it],Qr=Lt>=0?C[Lt]:0,qr=C[ir];if(ar===sr&&qr===Jt)return ht;if(Mt.indexOf(ar)!==-1)return ft;if(Mt.indexOf(qr)!==-1||On.indexOf(qr)!==-1)return ht;if($r(it,C)===Wr)return Gt;if(Oe.get(R[it])===kt||(ar===Ut||ar===mr)&&Oe.get(R[ir])===kt||ar===xr||qr===xr||ar===Cr||[_e,y,D].indexOf(ar)===-1&&qr===Cr||[Z,k,te,mt,Ze].indexOf(qr)!==-1||$r(it,C)===Ie||Xt(Ge,Ie,it,C)||Xt([Z,k],Be,it,C)||Xt(K,K,it,C))return ht;if(ar===_e)return Gt;if(ar===Ge||qr===Ge)return ht;if(qr===Ae||ar===Ae)return Gt;if([y,D,Be].indexOf(qr)!==-1||ar===h||Qr===ue&&Dn.indexOf(ar)!==-1||ar===Ze&&qr===ue||qr===Se||on.indexOf(qr)!==-1&&ar===$e||on.indexOf(ar)!==-1&&qr===$e||ar===dt&&[rr,Ut,mr].indexOf(qr)!==-1||[rr,Ut,mr].indexOf(ar)!==-1&&qr===tt||on.indexOf(ar)!==-1&&Xn.indexOf(qr)!==-1||Xn.indexOf(ar)!==-1&&on.indexOf(qr)!==-1||[dt,tt].indexOf(ar)!==-1&&(qr===$e||[Ie,D].indexOf(qr)!==-1&&C[ir+1]===$e)||[Ie,D].indexOf(ar)!==-1&&qr===$e||ar===$e&&[$e,Ze,mt].indexOf(qr)!==-1)return ht;if([$e,Ze,mt,Z,k].indexOf(qr)!==-1)for(var u=it;u>=0;){var P=C[u];if(P===$e)return ht;if([Ze,mt].indexOf(P)!==-1)u--;else break}if([dt,tt].indexOf(qr)!==-1)for(var u=[Z,k].indexOf(ar)!==-1?Lt:it;u>=0;){var P=C[u];if(P===$e)return ht;if([Ze,mt].indexOf(P)!==-1)u--;else break}if(Qe===ar&&[Qe,ot,br,re].indexOf(qr)!==-1||[ot,br].indexOf(ar)!==-1&&[ot,Jr].indexOf(qr)!==-1||[Jr,re].indexOf(ar)!==-1&&qr===Jr||$i.indexOf(ar)!==-1&&[Se,tt].indexOf(qr)!==-1||$i.indexOf(qr)!==-1&&ar===dt||on.indexOf(ar)!==-1&&on.indexOf(qr)!==-1||ar===mt&&on.indexOf(qr)!==-1||on.concat($e).indexOf(ar)!==-1&&qr===Ie&&et.indexOf(R[ir])===-1||on.concat($e).indexOf(qr)!==-1&&ar===k)return ht;if(ar===Tt&&qr===Tt){for(var me=Q[it],Ue=1;me>0&&(me--,C[me]===Tt);)Ue++;if(Ue%2!==0)return ht}return ar===Ut&&qr===mr?ht:Gt},Pt=function(R,C){C||(C={lineBreak:"normal",wordBreak:"normal"});var Q=zn(R,C.lineBreak),M=Q[0],Ne=Q[1],it=Q[2];(C.wordBreak==="break-all"||C.wordBreak==="break-word")&&(Ne=Ne.map(function(ir){return[$e,Bt,Kt].indexOf(ir)!==-1?rr:ir}));var Lt=C.wordBreak==="keep-all"?it.map(function(ir,ar){return ir&&R[ar]>=19968&&R[ar]<=40959}):void 0;return[M,Ne,Lt]},Et=function(){function R(C,Q,M,Ne){this.codePoints=C,this.required=Q===ft,this.start=M,this.end=Ne}return R.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},R}(),_r=function(R,C){var Q=I(R),M=Pt(Q,C),Ne=M[0],it=M[1],Lt=M[2],ir=Q.length,ar=0,Qr=0;return{next:function(){if(Qr>=ir)return{done:!0,value:null};for(var qr=ht;Qr<ir&&(qr=en(Q,it,Ne,++Qr,Lt))===ht;);if(qr!==ht||Qr===ir){var u=new Et(Q,qr,ar,Qr);return ar=Qr,{value:u,done:!1}}return{done:!0,value:null}}}},Fr=1,In=2,an=4,_n=8,mn=10,Mn=47,ei=92,Kr=9,Vr=32,Tn=34,Sn=61,Un=35,Vn=36,Ui=37,di=39,bn=40,dr=41,vr=95,Ir=45,Yr=33,Mr=60,cn=62,nn=64,jn=91,ti=93,ui=61,Ri=123,Qi=63,Pi=125,Sr=124,Cn=126,fn=128,hi=65533,ii=42,ri=43,bi=44,Ti=58,Bi=59,Zi=46,ua=0,xi=8,gn=11,Ht=14,Fn=31,Zn=127,Ei=-1,ji=48,da=97,Ea=101,qi=102,Sa=117,_i=122,ai=65,zi=69,na=70,Ca=85,ys=90,oi=function(R){return R>=ji&&R<=57},_a=function(R){return R>=55296&&R<=57343},ga=function(R){return oi(R)||R>=ai&&R<=na||R>=da&&R<=qi},Ua=function(R){return R>=da&&R<=_i},Cs=function(R){return R>=ai&&R<=ys},ns=function(R){return Ua(R)||Cs(R)},Fa=function(R){return R>=fn},Ni=function(R){return R===mn||R===Kr||R===Vr},oa=function(R){return ns(R)||Fa(R)||R===vr},fs=function(R){return oa(R)||oi(R)||R===Ir},is=function(R){return R>=ua&&R<=xi||R===gn||R>=Ht&&R<=Fn||R===Zn},es=function(R,C){return R!==ei?!1:C!==mn},Yi=function(R,C,Q){return R===Ir?oa(C)||es(C,Q):oa(R)?!0:!!(R===ei&&es(R,C))},hs=function(R,C,Q){return R===ri||R===Ir?oi(C)?!0:C===Zi&&oi(Q):oi(R===Zi?C:R)},aa=function(R){var C=0,Q=1;(R[C]===ri||R[C]===Ir)&&(R[C]===Ir&&(Q=-1),C++);for(var M=[];oi(R[C]);)M.push(R[C++]);var Ne=M.length?parseInt(n.apply(void 0,M),10):0;R[C]===Zi&&C++;for(var it=[];oi(R[C]);)it.push(R[C++]);var Lt=it.length,ir=Lt?parseInt(n.apply(void 0,it),10):0;(R[C]===zi||R[C]===Ea)&&C++;var ar=1;(R[C]===ri||R[C]===Ir)&&(R[C]===Ir&&(ar=-1),C++);for(var Qr=[];oi(R[C]);)Qr.push(R[C++]);var qr=Qr.length?parseInt(n.apply(void 0,Qr),10):0;return Q*(Ne+ir*Math.pow(10,-Lt))*Math.pow(10,ar*qr)},co={type:2},js={type:3},wo={type:4},As={type:13},xo={type:8},as={type:21},Yn={type:9},Da={type:10},io={type:11},Vi={type:12},ea={type:14},Ki={type:23},ki={type:1},ya={type:25},Pa={type:24},Os={type:26},us={type:27},bs={type:28},ts={type:29},Eo={type:31},po={type:32},qs=function(){function R(){this._value=[]}return R.prototype.write=function(C){this._value=this._value.concat(I(C))},R.prototype.read=function(){for(var C=[],Q=this.consumeToken();Q!==po;)C.push(Q),Q=this.consumeToken();return C},R.prototype.consumeToken=function(){var C=this.consumeCodePoint();switch(C){case Tn:return this.consumeStringToken(Tn);case Un:var Q=this.peekCodePoint(0),M=this.peekCodePoint(1),Ne=this.peekCodePoint(2);if(fs(Q)||es(M,Ne)){var it=Yi(Q,M,Ne)?In:Fr,Lt=this.consumeName();return{type:5,value:Lt,flags:it}}break;case Vn:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),As;break;case di:return this.consumeStringToken(di);case bn:return co;case dr:return js;case ii:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),ea;break;case ri:if(hs(C,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(C),this.consumeNumericToken();break;case bi:return wo;case Ir:var ir=C,ar=this.peekCodePoint(0),Qr=this.peekCodePoint(1);if(hs(ir,ar,Qr))return this.reconsumeCodePoint(C),this.consumeNumericToken();if(Yi(ir,ar,Qr))return this.reconsumeCodePoint(C),this.consumeIdentLikeToken();if(ar===Ir&&Qr===cn)return this.consumeCodePoint(),this.consumeCodePoint(),Pa;break;case Zi:if(hs(C,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(C),this.consumeNumericToken();break;case Mn:if(this.peekCodePoint(0)===ii)for(this.consumeCodePoint();;){var qr=this.consumeCodePoint();if(qr===ii&&(qr=this.consumeCodePoint(),qr===Mn))return this.consumeToken();if(qr===Ei)return this.consumeToken()}break;case Ti:return Os;case Bi:return us;case Mr:if(this.peekCodePoint(0)===Yr&&this.peekCodePoint(1)===Ir&&this.peekCodePoint(2)===Ir)return this.consumeCodePoint(),this.consumeCodePoint(),ya;break;case nn:var u=this.peekCodePoint(0),P=this.peekCodePoint(1),me=this.peekCodePoint(2);if(Yi(u,P,me)){var Lt=this.consumeName();return{type:7,value:Lt}}break;case jn:return bs;case ei:if(es(C,this.peekCodePoint(0)))return this.reconsumeCodePoint(C),this.consumeIdentLikeToken();break;case ti:return ts;case ui:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),xo;break;case Ri:return io;case Pi:return Vi;case Sa:case Ca:var Ue=this.peekCodePoint(0),at=this.peekCodePoint(1);return Ue===ri&&(ga(at)||at===Qi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(C),this.consumeIdentLikeToken();case Sr:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),Yn;if(this.peekCodePoint(0)===Sr)return this.consumeCodePoint(),as;break;case Cn:if(this.peekCodePoint(0)===Sn)return this.consumeCodePoint(),Da;break;case Ei:return po}return Ni(C)?(this.consumeWhiteSpace(),Eo):oi(C)?(this.reconsumeCodePoint(C),this.consumeNumericToken()):oa(C)?(this.reconsumeCodePoint(C),this.consumeIdentLikeToken()):{type:6,value:n(C)}},R.prototype.consumeCodePoint=function(){var C=this._value.shift();return typeof C=="undefined"?-1:C},R.prototype.reconsumeCodePoint=function(C){this._value.unshift(C)},R.prototype.peekCodePoint=function(C){return C>=this._value.length?-1:this._value[C]},R.prototype.consumeUnicodeRangeToken=function(){for(var C=[],Q=this.consumeCodePoint();ga(Q)&&C.length<6;)C.push(Q),Q=this.consumeCodePoint();for(var M=!1;Q===Qi&&C.length<6;)C.push(Q),Q=this.consumeCodePoint(),M=!0;if(M){var Ne=parseInt(n.apply(void 0,C.map(function(ar){return ar===Qi?ji:ar})),16),it=parseInt(n.apply(void 0,C.map(function(ar){return ar===Qi?na:ar})),16);return{type:30,start:Ne,end:it}}var Lt=parseInt(n.apply(void 0,C),16);if(this.peekCodePoint(0)===Ir&&ga(this.peekCodePoint(1))){this.consumeCodePoint(),Q=this.consumeCodePoint();for(var ir=[];ga(Q)&&ir.length<6;)ir.push(Q),Q=this.consumeCodePoint();var it=parseInt(n.apply(void 0,ir),16);return{type:30,start:Lt,end:it}}else return{type:30,start:Lt,end:Lt}},R.prototype.consumeIdentLikeToken=function(){var C=this.consumeName();return C.toLowerCase()==="url"&&this.peekCodePoint(0)===bn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===bn?(this.consumeCodePoint(),{type:19,value:C}):{type:20,value:C}},R.prototype.consumeUrlToken=function(){var C=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ei)return{type:22,value:""};var Q=this.peekCodePoint(0);if(Q===di||Q===Tn){var M=this.consumeStringToken(this.consumeCodePoint());return M.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ei||this.peekCodePoint(0)===dr)?(this.consumeCodePoint(),{type:22,value:M.value}):(this.consumeBadUrlRemnants(),Ki)}for(;;){var Ne=this.consumeCodePoint();if(Ne===Ei||Ne===dr)return{type:22,value:n.apply(void 0,C)};if(Ni(Ne))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ei||this.peekCodePoint(0)===dr?(this.consumeCodePoint(),{type:22,value:n.apply(void 0,C)}):(this.consumeBadUrlRemnants(),Ki);if(Ne===Tn||Ne===di||Ne===bn||is(Ne))return this.consumeBadUrlRemnants(),Ki;if(Ne===ei)if(es(Ne,this.peekCodePoint(0)))C.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Ki;else C.push(Ne)}},R.prototype.consumeWhiteSpace=function(){for(;Ni(this.peekCodePoint(0));)this.consumeCodePoint()},R.prototype.consumeBadUrlRemnants=function(){for(;;){var C=this.consumeCodePoint();if(C===dr||C===Ei)return;es(C,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},R.prototype.consumeStringSlice=function(C){for(var Q=5e4,M="";C>0;){var Ne=Math.min(Q,C);M+=n.apply(void 0,this._value.splice(0,Ne)),C-=Ne}return this._value.shift(),M},R.prototype.consumeStringToken=function(C){var Q="",M=0;do{var Ne=this._value[M];if(Ne===Ei||Ne===void 0||Ne===C)return Q+=this.consumeStringSlice(M),{type:0,value:Q};if(Ne===mn)return this._value.splice(0,M),ki;if(Ne===ei){var it=this._value[M+1];it!==Ei&&it!==void 0&&(it===mn?(Q+=this.consumeStringSlice(M),M=-1,this._value.shift()):es(Ne,it)&&(Q+=this.consumeStringSlice(M),Q+=n(this.consumeEscapedCodePoint()),M=-1))}M++}while(!0)},R.prototype.consumeNumber=function(){var C=[],Q=an,M=this.peekCodePoint(0);for((M===ri||M===Ir)&&C.push(this.consumeCodePoint());oi(this.peekCodePoint(0));)C.push(this.consumeCodePoint());M=this.peekCodePoint(0);var Ne=this.peekCodePoint(1);if(M===Zi&&oi(Ne))for(C.push(this.consumeCodePoint(),this.consumeCodePoint()),Q=_n;oi(this.peekCodePoint(0));)C.push(this.consumeCodePoint());M=this.peekCodePoint(0),Ne=this.peekCodePoint(1);var it=this.peekCodePoint(2);if((M===zi||M===Ea)&&((Ne===ri||Ne===Ir)&&oi(it)||oi(Ne)))for(C.push(this.consumeCodePoint(),this.consumeCodePoint()),Q=_n;oi(this.peekCodePoint(0));)C.push(this.consumeCodePoint());return[aa(C),Q]},R.prototype.consumeNumericToken=function(){var C=this.consumeNumber(),Q=C[0],M=C[1],Ne=this.peekCodePoint(0),it=this.peekCodePoint(1),Lt=this.peekCodePoint(2);if(Yi(Ne,it,Lt)){var ir=this.consumeName();return{type:15,number:Q,flags:M,unit:ir}}return Ne===Ui?(this.consumeCodePoint(),{type:16,number:Q,flags:M}):{type:17,number:Q,flags:M}},R.prototype.consumeEscapedCodePoint=function(){var C=this.consumeCodePoint();if(ga(C)){for(var Q=n(C);ga(this.peekCodePoint(0))&&Q.length<6;)Q+=n(this.consumeCodePoint());Ni(this.peekCodePoint(0))&&this.consumeCodePoint();var M=parseInt(Q,16);return M===0||_a(M)||M>1114111?hi:M}return C===Ei?hi:C},R.prototype.consumeName=function(){for(var C="";;){var Q=this.consumeCodePoint();if(fs(Q))C+=n(Q);else if(es(Q,this.peekCodePoint(0)))C+=n(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Q),C}},R}(),$s=function(){function R(C){this._tokens=C}return R.create=function(C){var Q=new qs;return Q.write(C),new R(Q.read())},R.parseValue=function(C){return R.create(C).parseComponentValue()},R.parseValues=function(C){return R.create(C).parseComponentValues()},R.prototype.parseComponentValue=function(){for(var C=this.consumeToken();C.type===31;)C=this.consumeToken();if(C.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(C);var Q=this.consumeComponentValue();do C=this.consumeToken();while(C.type===31);if(C.type===32)return Q;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},R.prototype.parseComponentValues=function(){for(var C=[];;){var Q=this.consumeComponentValue();if(Q.type===32)return C;C.push(Q),C.push()}},R.prototype.consumeComponentValue=function(){var C=this.consumeToken();switch(C.type){case 11:case 28:case 2:return this.consumeSimpleBlock(C.type);case 19:return this.consumeFunction(C)}return C},R.prototype.consumeSimpleBlock=function(C){for(var Q={type:C,values:[]},M=this.consumeToken();;){if(M.type===32||mo(M,C))return Q;this.reconsumeToken(M),Q.values.push(this.consumeComponentValue()),M=this.consumeToken()}},R.prototype.consumeFunction=function(C){for(var Q={name:C.value,values:[],type:18};;){var M=this.consumeToken();if(M.type===32||M.type===3)return Q;this.reconsumeToken(M),Q.values.push(this.consumeComponentValue())}},R.prototype.consumeToken=function(){var C=this._tokens.shift();return typeof C=="undefined"?po:C},R.prototype.reconsumeToken=function(C){this._tokens.unshift(C)},R}(),Ps=function(R){return R.type===15},Fi=function(R){return R.type===17},pi=function(R){return R.type===20},la=function(R){return R.type===0},ps=function(R,C){return pi(R)&&R.value===C},Oa=function(R){return R.type!==31},ks=function(R){return R.type!==31&&R.type!==4},Gs=function(R){var C=[],Q=[];return R.forEach(function(M){if(M.type===4){if(Q.length===0)throw new Error("Error parsing function args, zero tokens for arg");C.push(Q),Q=[];return}M.type!==31&&Q.push(M)}),Q.length&&C.push(Q),C},mo=function(R,C){return C===11&&R.type===12||C===28&&R.type===29?!0:C===2&&R.type===3},Ns=function(R){return R.type===17||R.type===15},Ii=function(R){return R.type===16||Ns(R)},kl=function(R){return R.length>1?[R[0],R[1]]:[R[0]]},Ys={type:17,number:0,flags:an},il={type:16,number:50,flags:an},ko={type:16,number:100,flags:an},Ao=function(R,C,Q){var M=R[0],Ne=R[1];return[Ba(M,C),Ba(typeof Ne!="undefined"?Ne:M,Q)]},Ba=function(R,C){if(R.type===16)return R.number/100*C;if(Ps(R))switch(R.unit){case"rem":case"em":return 16*R.number;case"px":default:return R.number}return R.number},vl="deg",yl="grad",fo="rad",go="turn",Na={name:"angle",parse:function(R,C){if(C.type===15)switch(C.unit){case vl:return Math.PI*C.number/180;case yl:return Math.PI/200*C.number;case fo:return C.number;case go:return Math.PI*2*C.number}throw new Error("Unsupported angle type")}},pa=function(R){return R.type===15&&(R.unit===vl||R.unit===yl||R.unit===fo||R.unit===go)},eo=function(R){var C=R.filter(pi).map(function(Q){return Q.value}).join(" ");switch(C){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ys,Ys];case"to top":case"bottom":return Ya(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ys,ko];case"to right":case"left":return Ya(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ko,ko];case"to bottom":case"top":return Ya(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ko,Ys];case"to left":case"right":return Ya(270)}return 0},Ya=function(R){return Math.PI*R/180},rs={name:"color",parse:function(R,C){if(C.type===18){var Q=bl[C.name];if(typeof Q=="undefined")throw new Error('Attempting to parse an unsupported color function "'+C.name+'"');return Q(R,C.values)}if(C.type===5){if(C.value.length===3){var M=C.value.substring(0,1),Ne=C.value.substring(1,2),it=C.value.substring(2,3);return Zs(parseInt(M+M,16),parseInt(Ne+Ne,16),parseInt(it+it,16),1)}if(C.value.length===4){var M=C.value.substring(0,1),Ne=C.value.substring(1,2),it=C.value.substring(2,3),Lt=C.value.substring(3,4);return Zs(parseInt(M+M,16),parseInt(Ne+Ne,16),parseInt(it+it,16),parseInt(Lt+Lt,16)/255)}if(C.value.length===6){var M=C.value.substring(0,2),Ne=C.value.substring(2,4),it=C.value.substring(4,6);return Zs(parseInt(M,16),parseInt(Ne,16),parseInt(it,16),1)}if(C.value.length===8){var M=C.value.substring(0,2),Ne=C.value.substring(2,4),it=C.value.substring(4,6),Lt=C.value.substring(6,8);return Zs(parseInt(M,16),parseInt(Ne,16),parseInt(it,16),parseInt(Lt,16)/255)}}if(C.type===20){var ir=vo[C.value.toUpperCase()];if(typeof ir!="undefined")return ir}return vo.TRANSPARENT}},Hs=function(R){return(255&R)===0},ba=function(R){var C=255&R,Q=255&R>>8,M=255&R>>16,Ne=255&R>>24;return C<255?"rgba("+Ne+","+M+","+Q+","+C/255+")":"rgb("+Ne+","+M+","+Q+")"},Zs=function(R,C,Q,M){return(R<<24|C<<16|Q<<8|Math.round(M*255)<<0)>>>0},ao=function(R,C){if(R.type===17)return R.number;if(R.type===16){var Q=C===3?1:255;return C===3?R.number/100*Q:Math.round(R.number/100*Q)}return 0},Oo=function(R,C){var Q=C.filter(ks);if(Q.length===3){var M=Q.map(ao),Ne=M[0],it=M[1],Lt=M[2];return Zs(Ne,it,Lt,1)}if(Q.length===4){var ir=Q.map(ao),Ne=ir[0],it=ir[1],Lt=ir[2],ar=ir[3];return Zs(Ne,it,Lt,ar)}return 0};function Io(R,C,Q){return Q<0&&(Q+=1),Q>=1&&(Q-=1),Q<1/6?(C-R)*Q*6+R:Q<1/2?C:Q<2/3?(C-R)*6*(2/3-Q)+R:R}var Xa=function(R,C){var Q=C.filter(ks),M=Q[0],Ne=Q[1],it=Q[2],Lt=Q[3],ir=(M.type===17?Ya(M.number):Na.parse(R,M))/(Math.PI*2),ar=Ii(Ne)?Ne.number/100:0,Qr=Ii(it)?it.number/100:0,qr=typeof Lt!="undefined"&&Ii(Lt)?Ba(Lt,1):1;if(ar===0)return Zs(Qr*255,Qr*255,Qr*255,1);var u=Qr<=.5?Qr*(ar+1):Qr+ar-Qr*ar,P=Qr*2-u,me=Io(P,u,ir+1/3),Ue=Io(P,u,ir),at=Io(P,u,ir-1/3);return Zs(me*255,Ue*255,at*255,qr)},bl={hsl:Xa,hsla:Xa,rgb:Oo,rgba:Oo},so=function(R,C){return rs.parse(R,$s.create(C).parseComponentValue())},vo={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},tu={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(R,C){return C.map(function(Q){if(pi(Q))switch(Q.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wl={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},cl=function(R,C){var Q=rs.parse(R,C[0]),M=C[1];return M&&Ii(M)?{color:Q,stop:M}:{color:Q,stop:null}},Ml=function(R,C){var Q=R[0],M=R[R.length-1];Q.stop===null&&(Q.stop=Ys),M.stop===null&&(M.stop=ko);for(var Ne=[],it=0,Lt=0;Lt<R.length;Lt++){var ir=R[Lt].stop;if(ir!==null){var ar=Ba(ir,C);ar>it?Ne.push(ar):Ne.push(it),it=ar}else Ne.push(null)}for(var Qr=null,Lt=0;Lt<Ne.length;Lt++){var qr=Ne[Lt];if(qr===null)Qr===null&&(Qr=Lt);else if(Qr!==null){for(var u=Lt-Qr,P=Ne[Qr-1],me=(qr-P)/(u+1),Ue=1;Ue<=u;Ue++)Ne[Qr+Ue-1]=me*Ue;Qr=null}}return R.map(function(at,bt){var gt=at.color;return{color:gt,stop:Math.max(Math.min(1,Ne[bt]/C),0)}})},xl=function(R,C,Q){var M=C/2,Ne=Q/2,it=Ba(R[0],C)-M,Lt=Ne-Ba(R[1],Q);return(Math.atan2(Lt,it)+Math.PI*2)%(Math.PI*2)},Mo=function(R,C,Q){var M=typeof R=="number"?R:xl(R,C,Q),Ne=Math.abs(C*Math.sin(M))+Math.abs(Q*Math.cos(M)),it=C/2,Lt=Q/2,ir=Ne/2,ar=Math.sin(M-Math.PI/2)*ir,Qr=Math.cos(M-Math.PI/2)*ir;return[Ne,it-Qr,it+Qr,Lt-ar,Lt+ar]},Ks=function(R,C){return Math.sqrt(R*R+C*C)},To=function(R,C,Q,M,Ne){var it=[[0,0],[0,C],[R,0],[R,C]];return it.reduce(function(Lt,ir){var ar=ir[0],Qr=ir[1],qr=Ks(Q-ar,M-Qr);return(Ne?qr<Lt.optimumDistance:qr>Lt.optimumDistance)?{optimumCorner:ir,optimumDistance:qr}:Lt},{optimumDistance:Ne?1/0:-1/0,optimumCorner:null}).optimumCorner},Va=function(R,C,Q,M,Ne){var it=0,Lt=0;switch(R.size){case 0:R.shape===0?it=Lt=Math.min(Math.abs(C),Math.abs(C-M),Math.abs(Q),Math.abs(Q-Ne)):R.shape===1&&(it=Math.min(Math.abs(C),Math.abs(C-M)),Lt=Math.min(Math.abs(Q),Math.abs(Q-Ne)));break;case 2:if(R.shape===0)it=Lt=Math.min(Ks(C,Q),Ks(C,Q-Ne),Ks(C-M,Q),Ks(C-M,Q-Ne));else if(R.shape===1){var ir=Math.min(Math.abs(Q),Math.abs(Q-Ne))/Math.min(Math.abs(C),Math.abs(C-M)),ar=To(M,Ne,C,Q,!0),Qr=ar[0],qr=ar[1];it=Ks(Qr-C,(qr-Q)/ir),Lt=ir*it}break;case 1:R.shape===0?it=Lt=Math.max(Math.abs(C),Math.abs(C-M),Math.abs(Q),Math.abs(Q-Ne)):R.shape===1&&(it=Math.max(Math.abs(C),Math.abs(C-M)),Lt=Math.max(Math.abs(Q),Math.abs(Q-Ne)));break;case 3:if(R.shape===0)it=Lt=Math.max(Ks(C,Q),Ks(C,Q-Ne),Ks(C-M,Q),Ks(C-M,Q-Ne));else if(R.shape===1){var ir=Math.max(Math.abs(Q),Math.abs(Q-Ne))/Math.max(Math.abs(C),Math.abs(C-M)),u=To(M,Ne,C,Q,!1),Qr=u[0],qr=u[1];it=Ks(Qr-C,(qr-Q)/ir),Lt=ir*it}break}return Array.isArray(R.size)&&(it=Ba(R.size[0],M),Lt=R.size.length===2?Ba(R.size[1],Ne):it),[it,Lt]},ms=function(R,C){var Q=Ya(180),M=[];return Gs(C).forEach(function(Ne,it){if(it===0){var Lt=Ne[0];if(Lt.type===20&&Lt.value==="to"){Q=eo(Ne);return}else if(pa(Lt)){Q=Na.parse(R,Lt);return}}var ir=cl(R,Ne);M.push(ir)}),{angle:Q,stops:M,type:1}},Ja=function(R,C){var Q=Ya(180),M=[];return Gs(C).forEach(function(Ne,it){if(it===0){var Lt=Ne[0];if(Lt.type===20&&["top","left","right","bottom"].indexOf(Lt.value)!==-1){Q=eo(Ne);return}else if(pa(Lt)){Q=(Na.parse(R,Lt)+Ya(270))%Ya(360);return}}var ir=cl(R,Ne);M.push(ir)}),{angle:Q,stops:M,type:1}},ws=function(R,C){var Q=Ya(180),M=[],Ne=1,it=0,Lt=3,ir=[];return Gs(C).forEach(function(ar,Qr){var qr=ar[0];if(Qr===0){if(pi(qr)&&qr.value==="linear"){Ne=1;return}else if(pi(qr)&&qr.value==="radial"){Ne=2;return}}if(qr.type===18){if(qr.name==="from"){var u=rs.parse(R,qr.values[0]);M.push({stop:Ys,color:u})}else if(qr.name==="to"){var u=rs.parse(R,qr.values[0]);M.push({stop:ko,color:u})}else if(qr.name==="color-stop"){var P=qr.values.filter(ks);if(P.length===2){var u=rs.parse(R,P[1]),me=P[0];Fi(me)&&M.push({stop:{type:16,number:me.number*100,flags:me.flags},color:u})}}}}),Ne===1?{angle:(Q+Ya(180))%Ya(360),stops:M,type:Ne}:{size:Lt,shape:it,stops:M,position:ir,type:Ne}},Xs="closest-side",El="farthest-side",al="closest-corner",Ul="farthest-corner",Au="circle",Ql="ellipse",jl="cover",ci="contain",du=function(R,C){var Q=0,M=3,Ne=[],it=[];return Gs(C).forEach(function(Lt,ir){var ar=!0;if(ir===0){var Qr=!1;ar=Lt.reduce(function(u,P){if(Qr)if(pi(P))switch(P.value){case"center":return it.push(il),u;case"top":case"left":return it.push(Ys),u;case"right":case"bottom":return it.push(ko),u}else(Ii(P)||Ns(P))&&it.push(P);else if(pi(P))switch(P.value){case Au:return Q=0,!1;case Ql:return Q=1,!1;case"at":return Qr=!0,!1;case Xs:return M=0,!1;case jl:case El:return M=1,!1;case ci:case al:return M=2,!1;case Ul:return M=3,!1}else if(Ns(P)||Ii(P))return Array.isArray(M)||(M=[]),M.push(P),!1;return u},ar)}if(ar){var qr=cl(R,Lt);Ne.push(qr)}}),{size:M,shape:Q,stops:Ne,position:it,type:2}},ru=function(R,C){var Q=0,M=3,Ne=[],it=[];return Gs(C).forEach(function(Lt,ir){var ar=!0;if(ir===0?ar=Lt.reduce(function(qr,u){if(pi(u))switch(u.value){case"center":return it.push(il),!1;case"top":case"left":return it.push(Ys),!1;case"right":case"bottom":return it.push(ko),!1}else if(Ii(u)||Ns(u))return it.push(u),!1;return qr},ar):ir===1&&(ar=Lt.reduce(function(qr,u){if(pi(u))switch(u.value){case Au:return Q=0,!1;case Ql:return Q=1,!1;case ci:case Xs:return M=0,!1;case El:return M=1,!1;case al:return M=2,!1;case jl:case Ul:return M=3,!1}else if(Ns(u)||Ii(u))return Array.isArray(M)||(M=[]),M.push(u),!1;return qr},ar)),ar){var Qr=cl(R,Lt);Ne.push(Qr)}}),{size:M,shape:Q,stops:Ne,position:it,type:2}},rc=function(R){return R.type===1},nc=function(R){return R.type===2},fu={name:"image",parse:function(R,C){if(C.type===22){var Q={url:C.value,type:0};return R.cache.addImage(C.value),Q}if(C.type===18){var M=tl[C.name];if(typeof M=="undefined")throw new Error('Attempting to parse an unsupported image function "'+C.name+'"');return M(R,C.values)}throw new Error("Unsupported image type "+C.type)}};function ic(R){return!(R.type===20&&R.value==="none")&&(R.type!==18||!!tl[R.name])}var tl={"linear-gradient":ms,"-moz-linear-gradient":Ja,"-ms-linear-gradient":Ja,"-o-linear-gradient":Ja,"-webkit-linear-gradient":Ja,"radial-gradient":du,"-moz-radial-gradient":ru,"-ms-radial-gradient":ru,"-o-radial-gradient":ru,"-webkit-radial-gradient":ru,"-webkit-gradient":ws},ku={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(R,C){if(C.length===0)return[];var Q=C[0];return Q.type===20&&Q.value==="none"?[]:C.filter(function(M){return ks(M)&&ic(M)}).map(function(M){return fu.parse(R,M)})}},b={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(R,C){return C.map(function(Q){if(pi(Q))switch(Q.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},c={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(R,C){return Gs(C).map(function(Q){return Q.filter(Ii)}).map(kl)}},v={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(R,C){return Gs(C).map(function(Q){return Q.filter(pi).map(function(M){return M.value}).join(" ")}).map(U)}},U=function(R){switch(R){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}},ne;(function(R){R.AUTO="auto",R.CONTAIN="contain",R.COVER="cover"})(ne||(ne={}));var W={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(R,C){return Gs(C).map(function(Q){return Q.filter(ge)})}},ge=function(R){return pi(R)||Ii(R)},De=function(R){return{name:"border-"+R+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ke=De("top"),rt=De("right"),vt=De("bottom"),yt=De("left"),Ot=function(R){return{name:"border-radius-"+R,initialValue:"0 0",prefix:!1,type:1,parse:function(C,Q){return kl(Q.filter(Ii))}}},Ve=Ot("top-left"),cr=Ot("top-right"),tr=Ot("bottom-right"),hr=Ot("bottom-left"),jt=function(R){return{name:"border-"+R+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(C,Q){switch(Q){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ar=jt("top"),kr=jt("right"),ln=jt("bottom"),Ln=jt("left"),Ai=function(R){return{name:"border-"+R+"-width",initialValue:"0",type:0,prefix:!1,parse:function(C,Q){return Ps(Q)?Q.number:0}}},hn=Ai("top"),Br=Ai("right"),vn=Ai("bottom"),Gn=Ai("left"),zt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},nr={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(R,C){switch(C){case"rtl":return 1;case"ltr":default:return 0}}},Nr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(R,C){return C.filter(pi).reduce(function(Q,M){return Q|ve(M.value)},0)}},ve=function(R){switch(R){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},Pe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(R,C){switch(C){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Xe={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(R,C){return C.type===20&&C.value==="normal"?0:C.type===17||C.type===15?C.number:0}},lt;(function(R){R.NORMAL="normal",R.STRICT="strict"})(lt||(lt={}));var ut={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(R,C){switch(C){case"strict":return lt.STRICT;case"normal":default:return lt.NORMAL}}},xt={name:"line-height",initialValue:"normal",prefix:!1,type:4},Qt=function(R,C){return pi(R)&&R.value==="normal"?1.2*C:R.type===17?C*R.number:Ii(R)?Ba(R,C):C},lr={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(R,C){return C.type===20&&C.value==="none"?null:fu.parse(R,C)}},He={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(R,C){switch(C){case"inside":return 0;case"outside":default:return 1}}},At={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(R,C){switch(C){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}}},Te=function(R){return{name:"margin-"+R,initialValue:"0",prefix:!1,type:4}},Ft=Te("top"),er=Te("right"),or=Te("bottom"),ur=Te("left"),St={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(R,C){return C.filter(pi).map(function(Q){switch(Q.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Gr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(R,C){switch(C){case"break-word":return"break-word";case"normal":default:return"normal"}}},Zr=function(R){return{name:"padding-"+R,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},sn=Zr("top"),An=Zr("right"),ni=Zr("bottom"),zr=Zr("left"),Yt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(R,C){switch(C){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},wi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(R,C){switch(C){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},fi={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(R,C){return C.length===1&&ps(C[0],"none")?[]:Gs(C).map(function(Q){for(var M={color:vo.TRANSPARENT,offsetX:Ys,offsetY:Ys,blur:Ys},Ne=0,it=0;it<Q.length;it++){var Lt=Q[it];Ns(Lt)?(Ne===0?M.offsetX=Lt:Ne===1?M.offsetY=Lt:M.blur=Lt,Ne++):M.color=rs.parse(R,Lt)}return M})}},tn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(R,C){switch(C){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},wn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(R,C){if(C.type===20&&C.value==="none")return null;if(C.type===18){var Q=Qn[C.name];if(typeof Q=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+C.name+'"');return Q(C.values)}return null}},pn=function(R){var C=R.filter(function(Q){return Q.type===17}).map(function(Q){return Q.number});return C.length===6?C:null},rn=function(R){var C=R.filter(function(ar){return ar.type===17}).map(function(ar){return ar.number}),Q=C[0],M=C[1];C[2],C[3];var Ne=C[4],it=C[5];C[6],C[7],C[8],C[9],C[10],C[11];var Lt=C[12],ir=C[13];return C[14],C[15],C.length===16?[Q,M,Ne,it,Lt,ir]:null},Qn={matrix:pn,matrix3d:rn},vi={type:16,number:50,flags:an},Mi=[vi,vi],je={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(R,C){var Q=C.filter(Ii);return Q.length!==2?Mi:[Q[0],Q[1]]}},A={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(R,C){switch(C){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},w;(function(R){R.NORMAL="normal",R.BREAK_ALL="break-all",R.KEEP_ALL="keep-all"})(w||(w={}));for(var E={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(R,C){switch(C){case"break-all":return w.BREAK_ALL;case"keep-all":return w.KEEP_ALL;case"normal":default:return w.NORMAL}}},z={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(R,C){if(C.type===20)return{auto:!0,order:0};if(Fi(C))return{auto:!1,order:C.number};throw new Error("Invalid z-index number parsed")}},be={name:"time",parse:function(R,C){if(C.type===15)switch(C.unit.toLowerCase()){case"s":return 1e3*C.number;case"ms":return C.number}throw new Error("Unsupported time type")}},ze={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(R,C){return Fi(C)?C.number:1}},pt={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},It={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(R,C){return C.filter(pi).map(function(Q){switch(Q.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Q){return Q!==0})}},$t={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(R,C){var Q=[],M=[];return C.forEach(function(Ne){switch(Ne.type){case 20:case 0:Q.push(Ne.value);break;case 17:Q.push(Ne.number.toString());break;case 4:M.push(Q.join(" ")),Q.length=0;break}}),Q.length&&M.push(Q.join(" ")),M.map(function(Ne){return Ne.indexOf(" ")===-1?Ne:"'"+Ne+"'"})}},fr={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Dr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(R,C){if(Fi(C))return C.number;if(pi(C))switch(C.value){case"bold":return 700;case"normal":default:return 400}return 400}},Hr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(R,C){return C.filter(pi).map(function(Q){return Q.value})}},Hn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(R,C){switch(C){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ur=function(R,C){return(R&C)!==0},xn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(R,C){if(C.length===0)return[];var Q=C[0];return Q.type===20&&Q.value==="none"?[]:C}},Nn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(R,C){if(C.length===0)return null;var Q=C[0];if(Q.type===20&&Q.value==="none")return null;for(var M=[],Ne=C.filter(Oa),it=0;it<Ne.length;it++){var Lt=Ne[it],ir=Ne[it+1];if(Lt.type===20){var ar=ir&&Fi(ir)?ir.number:1;M.push({counter:Lt.value,increment:ar})}}return M}},kn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(R,C){if(C.length===0)return[];for(var Q=[],M=C.filter(Oa),Ne=0;Ne<M.length;Ne++){var it=M[Ne],Lt=M[Ne+1];if(pi(it)&&it.value!=="none"){var ir=Lt&&Fi(Lt)?Lt.number:0;Q.push({counter:it.value,reset:ir})}}return Q}},Jn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(R,C){return C.filter(Ps).map(function(Q){return be.parse(R,Q)})}},Rn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(R,C){if(C.length===0)return null;var Q=C[0];if(Q.type===20&&Q.value==="none")return null;var M=[],Ne=C.filter(la);if(Ne.length%2!==0)return null;for(var it=0;it<Ne.length;it+=2){var Lt=Ne[it].value,ir=Ne[it+1].value;M.push({open:Lt,close:ir})}return M}},Oi=function(R,C,Q){if(!R)return"";var M=R[Math.min(C,R.length-1)];return M?Q?M.open:M.close:""},Gi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(R,C){return C.length===1&&ps(C[0],"none")?[]:Gs(C).map(function(Q){for(var M={color:255,offsetX:Ys,offsetY:Ys,blur:Ys,spread:Ys,inset:!1},Ne=0,it=0;it<Q.length;it++){var Lt=Q[it];ps(Lt,"inset")?M.inset=!0:Ns(Lt)?(Ne===0?M.offsetX=Lt:Ne===1?M.offsetY=Lt:Ne===2?M.blur=Lt:M.spread=Lt,Ne++):M.color=rs.parse(R,Lt)}return M})}},Ji={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(R,C){var Q=[0,1,2],M=[];return C.filter(pi).forEach(function(Ne){switch(Ne.value){case"stroke":M.push(1);break;case"fill":M.push(0);break;case"markers":M.push(2);break}}),Q.forEach(function(Ne){M.indexOf(Ne)===-1&&M.push(Ne)}),M}},Ia={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Di={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(R,C){return Ps(C)?C.number:0}},ss=function(){function R(C,Q){var M,Ne;this.animationDuration=qn(C,Jn,Q.animationDuration),this.backgroundClip=qn(C,tu,Q.backgroundClip),this.backgroundColor=qn(C,wl,Q.backgroundColor),this.backgroundImage=qn(C,ku,Q.backgroundImage),this.backgroundOrigin=qn(C,b,Q.backgroundOrigin),this.backgroundPosition=qn(C,c,Q.backgroundPosition),this.backgroundRepeat=qn(C,v,Q.backgroundRepeat),this.backgroundSize=qn(C,W,Q.backgroundSize),this.borderTopColor=qn(C,ke,Q.borderTopColor),this.borderRightColor=qn(C,rt,Q.borderRightColor),this.borderBottomColor=qn(C,vt,Q.borderBottomColor),this.borderLeftColor=qn(C,yt,Q.borderLeftColor),this.borderTopLeftRadius=qn(C,Ve,Q.borderTopLeftRadius),this.borderTopRightRadius=qn(C,cr,Q.borderTopRightRadius),this.borderBottomRightRadius=qn(C,tr,Q.borderBottomRightRadius),this.borderBottomLeftRadius=qn(C,hr,Q.borderBottomLeftRadius),this.borderTopStyle=qn(C,Ar,Q.borderTopStyle),this.borderRightStyle=qn(C,kr,Q.borderRightStyle),this.borderBottomStyle=qn(C,ln,Q.borderBottomStyle),this.borderLeftStyle=qn(C,Ln,Q.borderLeftStyle),this.borderTopWidth=qn(C,hn,Q.borderTopWidth),this.borderRightWidth=qn(C,Br,Q.borderRightWidth),this.borderBottomWidth=qn(C,vn,Q.borderBottomWidth),this.borderLeftWidth=qn(C,Gn,Q.borderLeftWidth),this.boxShadow=qn(C,Gi,Q.boxShadow),this.color=qn(C,zt,Q.color),this.direction=qn(C,nr,Q.direction),this.display=qn(C,Nr,Q.display),this.float=qn(C,Pe,Q.cssFloat),this.fontFamily=qn(C,$t,Q.fontFamily),this.fontSize=qn(C,fr,Q.fontSize),this.fontStyle=qn(C,Hn,Q.fontStyle),this.fontVariant=qn(C,Hr,Q.fontVariant),this.fontWeight=qn(C,Dr,Q.fontWeight),this.letterSpacing=qn(C,Xe,Q.letterSpacing),this.lineBreak=qn(C,ut,Q.lineBreak),this.lineHeight=qn(C,xt,Q.lineHeight),this.listStyleImage=qn(C,lr,Q.listStyleImage),this.listStylePosition=qn(C,He,Q.listStylePosition),this.listStyleType=qn(C,At,Q.listStyleType),this.marginTop=qn(C,Ft,Q.marginTop),this.marginRight=qn(C,er,Q.marginRight),this.marginBottom=qn(C,or,Q.marginBottom),this.marginLeft=qn(C,ur,Q.marginLeft),this.opacity=qn(C,ze,Q.opacity);var it=qn(C,St,Q.overflow);this.overflowX=it[0],this.overflowY=it[it.length>1?1:0],this.overflowWrap=qn(C,Gr,Q.overflowWrap),this.paddingTop=qn(C,sn,Q.paddingTop),this.paddingRight=qn(C,An,Q.paddingRight),this.paddingBottom=qn(C,ni,Q.paddingBottom),this.paddingLeft=qn(C,zr,Q.paddingLeft),this.paintOrder=qn(C,Ji,Q.paintOrder),this.position=qn(C,wi,Q.position),this.textAlign=qn(C,Yt,Q.textAlign),this.textDecorationColor=qn(C,pt,(M=Q.textDecorationColor)!==null&&M!==void 0?M:Q.color),this.textDecorationLine=qn(C,It,(Ne=Q.textDecorationLine)!==null&&Ne!==void 0?Ne:Q.textDecoration),this.textShadow=qn(C,fi,Q.textShadow),this.textTransform=qn(C,tn,Q.textTransform),this.transform=qn(C,wn,Q.transform),this.transformOrigin=qn(C,je,Q.transformOrigin),this.visibility=qn(C,A,Q.visibility),this.webkitTextStrokeColor=qn(C,Ia,Q.webkitTextStrokeColor),this.webkitTextStrokeWidth=qn(C,Di,Q.webkitTextStrokeWidth),this.wordBreak=qn(C,E,Q.wordBreak),this.zIndex=qn(C,z,Q.zIndex)}return R.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},R.prototype.isTransparent=function(){return Hs(this.backgroundColor)},R.prototype.isTransformed=function(){return this.transform!==null},R.prototype.isPositioned=function(){return this.position!==0},R.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},R.prototype.isFloating=function(){return this.float!==0},R.prototype.isInlineLevel=function(){return Ur(this.display,4)||Ur(this.display,33554432)||Ur(this.display,268435456)||Ur(this.display,536870912)||Ur(this.display,67108864)||Ur(this.display,134217728)},R}(),La=function(){function R(C,Q){this.content=qn(C,xn,Q.content),this.quotes=qn(C,Rn,Q.quotes)}return R}(),va=function(){function R(C,Q){this.counterIncrement=qn(C,Nn,Q.counterIncrement),this.counterReset=qn(C,kn,Q.counterReset)}return R}(),qn=function(R,C,Q){var M=new qs,Ne=Q!==null&&typeof Q!="undefined"?Q.toString():C.initialValue;M.write(Ne);var it=new $s(M.read());switch(C.type){case 2:var Lt=it.parseComponentValue();return C.parse(R,pi(Lt)?Lt.value:C.initialValue);case 0:return C.parse(R,it.parseComponentValue());case 1:return C.parse(R,it.parseComponentValues());case 4:return it.parseComponentValue();case 3:switch(C.format){case"angle":return Na.parse(R,it.parseComponentValue());case"color":return rs.parse(R,it.parseComponentValue());case"image":return fu.parse(R,it.parseComponentValue());case"length":var ir=it.parseComponentValue();return Ns(ir)?ir:Ys;case"length-percentage":var ar=it.parseComponentValue();return Ii(ar)?ar:Ys;case"time":return be.parse(R,it.parseComponentValue())}break}},Qa="data-html2canvas-debug",Fs=function(R){var C=R.getAttribute(Qa);switch(C){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},fa=function(R,C){var Q=Fs(R);return Q===1||C===Q},Aa=function(){function R(C,Q){if(this.context=C,this.textNodes=[],this.elements=[],this.flags=0,fa(Q,3))debugger;this.styles=new ss(C,window.getComputedStyle(Q,null)),Wn(Q)&&(this.styles.animationDuration.some(function(M){return M>0})&&(Q.style.animationDuration="0s"),this.styles.transform!==null&&(Q.style.transform="none")),this.bounds=Y(this.context,Q),fa(Q,4)&&(this.flags|=16)}return R}(),ma="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",os=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ca=0;ca<ja.length;ca++)os[ja.charCodeAt(ca)]=ca;for(var xs=function(R){var C=R.length*.75,Q=R.length,M,Ne=0,it,Lt,ir,ar;R[R.length-1]==="="&&(C--,R[R.length-2]==="="&&C--);var Qr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(C):new Array(C),qr=Array.isArray(Qr)?Qr:new Uint8Array(Qr);for(M=0;M<Q;M+=4)it=os[R.charCodeAt(M)],Lt=os[R.charCodeAt(M+1)],ir=os[R.charCodeAt(M+2)],ar=os[R.charCodeAt(M+3)],qr[Ne++]=it<<2|Lt>>4,qr[Ne++]=(Lt&15)<<4|ir>>2,qr[Ne++]=(ir&3)<<6|ar&63;return Qr},_s=function(R){for(var C=R.length,Q=[],M=0;M<C;M+=2)Q.push(R[M+1]<<8|R[M]);return Q},Js=function(R){for(var C=R.length,Q=[],M=0;M<C;M+=4)Q.push(R[M+3]<<24|R[M+2]<<16|R[M+1]<<8|R[M]);return Q},Ws=5,Vs=11,Vo=2,$o=Vs-Ws,Co=65536>>Ws,ho=1<<Ws,to=ho-1,Ds=1024>>Ws,ls=Co+Ds,Al=ls,Cl=32,sl=Al+Cl,Yo=65536>>Vs,_u=1<<$o,Wl=_u-1,za=function(R,C,Q){return R.slice?R.slice(C,Q):new Uint16Array(Array.prototype.slice.call(R,C,Q))},Ta=function(R,C,Q){return R.slice?R.slice(C,Q):new Uint32Array(Array.prototype.slice.call(R,C,Q))},oo=function(R,C){var Q=xs(R),M=Array.isArray(Q)?Js(Q):new Uint32Array(Q),Ne=Array.isArray(Q)?_s(Q):new Uint16Array(Q),it=24,Lt=za(Ne,it/2,M[4]/2),ir=M[5]===2?za(Ne,(it+M[4])/2):Ta(M,Math.ceil((it+M[4])/4));return new Bs(M[0],M[1],M[2],M[3],Lt,ir)},Bs=function(){function R(C,Q,M,Ne,it,Lt){this.initialValue=C,this.errorValue=Q,this.highStart=M,this.highValueIndex=Ne,this.index=it,this.data=Lt}return R.prototype.get=function(C){var Q;if(C>=0){if(C<55296||C>56319&&C<=65535)return Q=this.index[C>>Ws],Q=(Q<<Vo)+(C&to),this.data[Q];if(C<=65535)return Q=this.index[Co+(C-55296>>Ws)],Q=(Q<<Vo)+(C&to),this.data[Q];if(C<this.highStart)return Q=sl-Yo+(C>>Vs),Q=this.index[Q],Q+=C>>Ws&Wl,Q=this.index[Q],Q=(Q<<Vo)+(C&to),this.data[Q];if(C<=1114111)return this.data[this.highValueIndex]}return this.errorValue},R}(),yo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_o=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Bo=0;Bo<yo.length;Bo++)_o[yo.charCodeAt(Bo)]=Bo;var Fo=1,_l=2,Ko=3,Vl=4,hu=5,ac=7,nu=8,dl=9,iu=10,Mu=11,pu=12,Uu=13,Qu=14,Hl=15,Bl=function(R){for(var C=[],Q=0,M=R.length;Q<M;){var Ne=R.charCodeAt(Q++);if(Ne>=55296&&Ne<=56319&&Q<M){var it=R.charCodeAt(Q++);(it&64512)===56320?C.push(((Ne&1023)<<10)+(it&1023)+65536):(C.push(Ne),Q--)}else C.push(Ne)}return C},mu=function(){for(var R=[],C=0;C<arguments.length;C++)R[C]=arguments[C];if(String.fromCodePoint)return String.fromCodePoint.apply(String,R);var Q=R.length;if(!Q)return"";for(var M=[],Ne=-1,it="";++Ne<Q;){var Lt=R[Ne];Lt<=65535?M.push(Lt):(Lt-=65536,M.push((Lt>>10)+55296,Lt%1024+56320)),(Ne+1===Q||M.length>16384)&&(it+=String.fromCharCode.apply(String,M),M.length=0)}return it},gu=oo(ma),Po="\xD7",Do="\xF7",ju=function(R){return gu.get(R)},sc=function(R,C,Q){var M=Q-2,Ne=C[M],it=C[Q-1],Lt=C[Q];if(it===_l&&Lt===Ko)return Po;if(it===_l||it===Ko||it===Vl||Lt===_l||Lt===Ko||Lt===Vl)return Do;if(it===nu&&[nu,dl,Mu,pu].indexOf(Lt)!==-1||(it===Mu||it===dl)&&(Lt===dl||Lt===iu)||(it===pu||it===iu)&&Lt===iu||Lt===Uu||Lt===hu||Lt===ac||it===Fo)return Po;if(it===Uu&&Lt===Qu){for(;Ne===hu;)Ne=C[--M];if(Ne===Qu)return Po}if(it===Hl&&Lt===Hl){for(var ir=0;Ne===Hl;)ir++,Ne=C[--M];if(ir%2===0)return Po}return Do},Ma=function(R){var C=Bl(R),Q=C.length,M=0,Ne=0,it=C.map(ju);return{next:function(){if(M>=Q)return{done:!0,value:null};for(var Lt=Po;M<Q&&(Lt=sc(C,it,++M))===Po;);if(Lt!==Po||M===Q){var ir=mu.apply(null,C.slice(Ne,M));return Ne=M,{value:ir,done:!1}}return{done:!0,value:null}}}},Bu=function(R){for(var C=Ma(R),Q=[],M;!(M=C.next()).done;)M.value&&Q.push(M.value.slice());return Q},Su=function(R){var C=123;if(R.createRange){var Q=R.createRange();if(Q.getBoundingClientRect){var M=R.createElement("boundtest");M.style.height=C+"px",M.style.display="block",R.body.appendChild(M),Q.selectNode(M);var Ne=Q.getBoundingClientRect(),it=Math.round(Ne.height);if(R.body.removeChild(M),it===C)return!0}}return!1},ol=function(R){var C=R.createElement("boundtest");C.style.width="50px",C.style.display="block",C.style.fontSize="12px",C.style.letterSpacing="0px",C.style.wordSpacing="0px",R.body.appendChild(C);var Q=R.createRange();C.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var M=C.firstChild,Ne=I(M.data).map(function(ar){return n(ar)}),it=0,Lt={},ir=Ne.every(function(ar,Qr){Q.setStart(M,it),Q.setEnd(M,it+ar.length);var qr=Q.getBoundingClientRect();it+=ar.length;var u=qr.x>Lt.x||qr.y>Lt.y;return Lt=qr,Qr===0?!0:u});return R.body.removeChild(C),ir},Hu=function(){return typeof new Image().crossOrigin!="undefined"},Iu=function(){return typeof new XMLHttpRequest().responseType=="string"},Yl=function(R){var C=new Image,Q=R.createElement("canvas"),M=Q.getContext("2d");if(!M)return!1;C.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{M.drawImage(C,0,0),Q.toDataURL()}catch(Ne){return!1}return!0},vu=function(R){return R[0]===0&&R[1]===255&&R[2]===0&&R[3]===255},Tu=function(R){var C=R.createElement("canvas"),Q=100;C.width=Q,C.height=Q;var M=C.getContext("2d");if(!M)return Promise.reject(!1);M.fillStyle="rgb(0, 255, 0)",M.fillRect(0,0,Q,Q);var Ne=new Image,it=C.toDataURL();Ne.src=it;var Lt=Sl(Q,Q,0,0,Ne);return M.fillStyle="red",M.fillRect(0,0,Q,Q),Uo(Lt).then(function(ir){M.drawImage(ir,0,0);var ar=M.getImageData(0,0,Q,Q).data;M.fillStyle="red",M.fillRect(0,0,Q,Q);var Qr=R.createElement("div");return Qr.style.backgroundImage="url("+it+")",Qr.style.height=Q+"px",vu(ar)?Uo(Sl(Q,Q,0,0,Qr)):Promise.reject(!1)}).then(function(ir){return M.drawImage(ir,0,0),vu(M.getImageData(0,0,Q,Q).data)}).catch(function(){return!1})},Sl=function(R,C,Q,M,Ne){var it="http://www.w3.org/2000/svg",Lt=document.createElementNS(it,"svg"),ir=document.createElementNS(it,"foreignObject");return Lt.setAttributeNS(null,"width",R.toString()),Lt.setAttributeNS(null,"height",C.toString()),ir.setAttributeNS(null,"width","100%"),ir.setAttributeNS(null,"height","100%"),ir.setAttributeNS(null,"x",Q.toString()),ir.setAttributeNS(null,"y",M.toString()),ir.setAttributeNS(null,"externalResourcesRequired","true"),Lt.appendChild(ir),ir.appendChild(Ne),Lt},Uo=function(R){return new Promise(function(C,Q){var M=new Image;M.onload=function(){return C(M)},M.onerror=Q,M.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(R))})},cs={get SUPPORT_RANGE_BOUNDS(){var R=Su(document);return Object.defineProperty(cs,"SUPPORT_RANGE_BOUNDS",{value:R}),R},get SUPPORT_WORD_BREAKING(){var R=cs.SUPPORT_RANGE_BOUNDS&&ol(document);return Object.defineProperty(cs,"SUPPORT_WORD_BREAKING",{value:R}),R},get SUPPORT_SVG_DRAWING(){var R=Yl(document);return Object.defineProperty(cs,"SUPPORT_SVG_DRAWING",{value:R}),R},get SUPPORT_FOREIGNOBJECT_DRAWING(){var R=typeof Array.from=="function"&&typeof window.fetch=="function"?Tu(document):Promise.resolve(!1);return Object.defineProperty(cs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:R}),R},get SUPPORT_CORS_IMAGES(){var R=Hu();return Object.defineProperty(cs,"SUPPORT_CORS_IMAGES",{value:R}),R},get SUPPORT_RESPONSE_TYPE(){var R=Iu();return Object.defineProperty(cs,"SUPPORT_RESPONSE_TYPE",{value:R}),R},get SUPPORT_CORS_XHR(){var R="withCredentials"in new XMLHttpRequest;return Object.defineProperty(cs,"SUPPORT_CORS_XHR",{value:R}),R},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var R=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(cs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:R}),R}},Xo=function(){function R(C,Q){this.text=C,this.bounds=Q}return R}(),Jo=function(R,C,Q,M){var Ne=Il(C,Q),it=[],Lt=0;return Ne.forEach(function(ir){if(Q.textDecorationLine.length||ir.trim().length>0)if(cs.SUPPORT_RANGE_BOUNDS){var ar=ka(M,Lt,ir.length).getClientRects();if(ar.length>1){var Qr=gs(ir),qr=0;Qr.forEach(function(P){it.push(new Xo(P,ie.fromDOMRectList(R,ka(M,qr+Lt,P.length).getClientRects()))),qr+=P.length})}else it.push(new Xo(ir,ie.fromDOMRectList(R,ar)))}else{var u=M.splitText(ir.length);it.push(new Xo(ir,bc(R,M))),M=u}else cs.SUPPORT_RANGE_BOUNDS||(M=M.splitText(ir.length));Lt+=ir.length}),it},bc=function(R,C){var Q=C.ownerDocument;if(Q){var M=Q.createElement("html2canvaswrapper");M.appendChild(C.cloneNode(!0));var Ne=C.parentNode;if(Ne){Ne.replaceChild(M,C);var it=Y(R,M);return M.firstChild&&Ne.replaceChild(M.firstChild,M),it}}return ie.EMPTY},ka=function(R,C,Q){var M=R.ownerDocument;if(!M)throw new Error("Node has no owner document");var Ne=M.createRange();return Ne.setStart(R,C),Ne.setEnd(R,C+Q),Ne},gs=function(R){if(cs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var C=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(C.segment(R)).map(function(Q){return Q.segment})}return Bu(R)},Qo=function(R,C){if(cs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Q=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Q.segment(R)).map(function(M){return M.segment})}return Fu(R,C)},Il=function(R,C){return C.letterSpacing!==0?gs(R):Qo(R,C)},Tl=[32,160,4961,65792,65793,4153,4241],Fu=function(R,C){for(var Q=_r(R,{lineBreak:C.lineBreak,wordBreak:C.overflowWrap==="break-word"?"break-word":C.wordBreak}),M=[],Ne,it=function(){if(Ne.value){var Lt=Ne.value.slice(),ir=I(Lt),ar="";ir.forEach(function(Qr){Tl.indexOf(Qr)===-1?ar+=n(Qr):(ar.length&&M.push(ar),M.push(n(Qr)),ar="")}),ar.length&&M.push(ar)}};!(Ne=Q.next()).done;)it();return M},Du=function(){function R(C,Q,M){this.text=fl(Q.data,M.textTransform),this.textBounds=Jo(C,this.text,M,Q)}return R}(),fl=function(R,C){switch(C){case 1:return R.toLowerCase();case 3:return R.replace(Fl,$u);case 2:return R.toUpperCase();default:return R}},Fl=/(^|\s|:|-|\(|\))([a-z])/g,$u=function(R,C,Q){return R.length>0?C+Q.toUpperCase():R},yu=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;return Ne.src=M.currentSrc||M.src,Ne.intrinsicWidth=M.naturalWidth,Ne.intrinsicHeight=M.naturalHeight,Ne.context.cache.addImage(Ne.src),Ne}return C}(Aa),$l=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;return Ne.canvas=M,Ne.intrinsicWidth=M.width,Ne.intrinsicHeight=M.height,Ne}return C}(Aa),oc=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this,it=new XMLSerializer,Lt=Y(Q,M);return M.setAttribute("width",Lt.width+"px"),M.setAttribute("height",Lt.height+"px"),Ne.svg="data:image/svg+xml,"+encodeURIComponent(it.serializeToString(M)),Ne.intrinsicWidth=M.width.baseVal.value,Ne.intrinsicHeight=M.height.baseVal.value,Ne.context.cache.addImage(Ne.svg),Ne}return C}(Aa),Lu=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;return Ne.value=M.value,Ne}return C}(Aa),hl=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;return Ne.start=M.start,Ne.reversed=typeof M.reversed=="boolean"&&M.reversed===!0,Ne}return C}(Aa),lc=[{type:15,flags:0,unit:"px",number:3}],Nc=[{type:16,flags:0,number:50}],wc=function(R){return R.width>R.height?new ie(R.left+(R.width-R.height)/2,R.top,R.height,R.height):R.width<R.height?new ie(R.left,R.top+(R.height-R.width)/2,R.width,R.width):R},uc=function(R){var C=R.type===xc?new Array(R.value.length+1).join("\u2022"):R.value;return C.length===0?R.placeholder||"":C},Ku="checkbox",au="radio",xc="password",cc=707406591,Ac=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;switch(Ne.type=M.type.toLowerCase(),Ne.checked=M.checked,Ne.value=uc(M),(Ne.type===Ku||Ne.type===au)&&(Ne.styles.backgroundColor=3739148031,Ne.styles.borderTopColor=Ne.styles.borderRightColor=Ne.styles.borderBottomColor=Ne.styles.borderLeftColor=2779096575,Ne.styles.borderTopWidth=Ne.styles.borderRightWidth=Ne.styles.borderBottomWidth=Ne.styles.borderLeftWidth=1,Ne.styles.borderTopStyle=Ne.styles.borderRightStyle=Ne.styles.borderBottomStyle=Ne.styles.borderLeftStyle=1,Ne.styles.backgroundClip=[0],Ne.styles.backgroundOrigin=[0],Ne.bounds=wc(Ne.bounds)),Ne.type){case Ku:Ne.styles.borderTopRightRadius=Ne.styles.borderTopLeftRadius=Ne.styles.borderBottomRightRadius=Ne.styles.borderBottomLeftRadius=lc;break;case au:Ne.styles.borderTopRightRadius=Ne.styles.borderTopLeftRadius=Ne.styles.borderBottomRightRadius=Ne.styles.borderBottomLeftRadius=Nc;break}return Ne}return C}(Aa),Ic=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this,it=M.options[M.selectedIndex||0];return Ne.value=it&&it.text||"",Ne}return C}(Aa),Ru=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;return Ne.value=M.value,Ne}return C}(Aa),su=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;Ne.src=M.src,Ne.width=parseInt(M.width,10)||0,Ne.height=parseInt(M.height,10)||0,Ne.backgroundColor=Ne.styles.backgroundColor;try{if(M.contentWindow&&M.contentWindow.document&&M.contentWindow.document.documentElement){Ne.tree=ce(Q,M.contentWindow.document.documentElement);var it=M.contentWindow.document.documentElement?so(Q,getComputedStyle(M.contentWindow.document.documentElement).backgroundColor):vo.TRANSPARENT,Lt=M.contentWindow.document.body?so(Q,getComputedStyle(M.contentWindow.document.body).backgroundColor):vo.TRANSPARENT;Ne.backgroundColor=Hs(it)?Hs(Lt)?Ne.styles.backgroundColor:Lt:it}}catch(ir){}return Ne}return C}(Aa),zu=["OL","UL","MENU"],Dl=function(R,C,Q,M){for(var Ne=C.firstChild,it=void 0;Ne;Ne=it)if(it=Ne.nextSibling,Pr(Ne)&&Ne.data.trim().length>0)Q.textNodes.push(new Du(R,Ne,Q.styles));else if(un(Ne))if(dc(Ne)&&Ne.assignedNodes)Ne.assignedNodes().forEach(function(ir){return Dl(R,ir,Q,M)});else{var Lt=Gu(R,Ne);Lt.styles.isVisible()&&(wt(Ne,Lt,M)?Lt.flags|=4:gr(Lt.styles)&&(Lt.flags|=2),zu.indexOf(Ne.tagName)!==-1&&(Lt.flags|=8),Q.elements.push(Lt),Ne.slot,Ne.shadowRoot?Dl(R,Ne.shadowRoot,Lt,M):!Ol(Ne)&&!Ss(Ne)&&!Zu(Ne)&&Dl(R,Ne,Lt,M))}},Gu=function(R,C){return zo(C)?new yu(R,C):bo(C)?new $l(R,C):Ss(C)?new oc(R,C):ra(C)?new Lu(R,C):xa(C)?new hl(R,C):Ha(C)?new Ac(R,C):Zu(C)?new Ic(R,C):Ol(C)?new Ru(R,C):jo(C)?new su(R,C):new Aa(R,C)},ce=function(R,C){var Q=Gu(R,C);return Q.flags|=4,Dl(R,C,Q,Q),Q},wt=function(R,C,Q){return C.styles.isPositionedWithZIndex()||C.styles.opacity<1||C.styles.isTransformed()||ro(R)&&Q.styles.isTransparent()},gr=function(R){return R.isPositioned()||R.isFloating()},Pr=function(R){return R.nodeType===Node.TEXT_NODE},un=function(R){return R.nodeType===Node.ELEMENT_NODE},Wn=function(R){return un(R)&&typeof R.style!="undefined"&&!Ci(R)},Ci=function(R){return typeof R.className=="object"},ra=function(R){return R.tagName==="LI"},xa=function(R){return R.tagName==="OL"},Ha=function(R){return R.tagName==="INPUT"},Wa=function(R){return R.tagName==="HTML"},Ss=function(R){return R.tagName==="svg"},ro=function(R){return R.tagName==="BODY"},bo=function(R){return R.tagName==="CANVAS"},Lo=function(R){return R.tagName==="VIDEO"},zo=function(R){return R.tagName==="IMG"},jo=function(R){return R.tagName==="IFRAME"},Ll=function(R){return R.tagName==="STYLE"},Rl=function(R){return R.tagName==="SCRIPT"},Ol=function(R){return R.tagName==="TEXTAREA"},Zu=function(R){return R.tagName==="SELECT"},dc=function(R){return R.tagName==="SLOT"},Wu=function(R){return R.tagName.indexOf("-")>0},Vu=function(){function R(){this.counters={}}return R.prototype.getCounterValue=function(C){var Q=this.counters[C];return Q&&Q.length?Q[Q.length-1]:1},R.prototype.getCounterValues=function(C){var Q=this.counters[C];return Q||[]},R.prototype.pop=function(C){var Q=this;C.forEach(function(M){return Q.counters[M].pop()})},R.prototype.parse=function(C){var Q=this,M=C.counterIncrement,Ne=C.counterReset,it=!0;M!==null&&M.forEach(function(ir){var ar=Q.counters[ir.counter];ar&&ir.increment!==0&&(it=!1,ar.length||ar.push(1),ar[Math.max(0,ar.length-1)]+=ir.increment)});var Lt=[];return it&&Ne.forEach(function(ir){var ar=Q.counters[ir.counter];Lt.push(ir.counter),ar||(ar=Q.counters[ir.counter]=[]),ar.push(ir.reset)}),Lt},R}(),fc={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"]},Yu={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"]},hc={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"]},qo={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"]},Kl=function(R,C,Q,M,Ne,it){return R<C||R>Q?Jl(R,Ne,it.length>0):M.integers.reduce(function(Lt,ir,ar){for(;R>=ir;)R-=ir,Lt+=M.values[ar];return Lt},"")+it},Xu=function(R,C,Q,M){var Ne="";do Q||R--,Ne=M(R)+Ne,R/=C;while(R*C>=C);return Ne},no=function(R,C,Q,M,Ne){var it=Q-C+1;return(R<0?"-":"")+(Xu(Math.abs(R),it,M,function(Lt){return n(Math.floor(Lt%it)+C)})+Ne)},Xl=function(R,C,Q){Q===void 0&&(Q=". ");var M=C.length;return Xu(Math.abs(R),M,!1,function(Ne){return C[Math.floor(Ne%M)]})+Q},Ho=1,ou=2,zl=4,Ou=8,No=function(R,C,Q,M,Ne,it){if(R<-9999||R>9999)return Jl(R,4,Ne.length>0);var Lt=Math.abs(R),ir=Ne;if(Lt===0)return C[0]+ir;for(var ar=0;Lt>0&&ar<=4;ar++){var Qr=Lt%10;Qr===0&&Ur(it,Ho)&&ir!==""?ir=C[Qr]+ir:Qr>1||Qr===1&&ar===0||Qr===1&&ar===1&&Ur(it,ou)||Qr===1&&ar===1&&Ur(it,zl)&&R>100||Qr===1&&ar>1&&Ur(it,Ou)?ir=C[Qr]+(ar>0?Q[ar-1]:"")+ir:Qr===1&&ar>0&&(ir=Q[ar-1]+ir),Lt=Math.floor(Lt/10)}return(R<0?M:"")+ir},Pu="\u5341\u767E\u5343\u842C",Ec="\u62FE\u4F70\u4EDF\u842C",Cc="\u30DE\u30A4\u30CA\u30B9",Gl="\uB9C8\uC774\uB108\uC2A4",Jl=function(R,C,Q){var M=Q?". ":"",Ne=Q?"\u3001":"",it=Q?", ":"",Lt=Q?" ":"";switch(C){case 0:return"\u2022"+Lt;case 1:return"\u25E6"+Lt;case 2:return"\u25FE"+Lt;case 5:var ir=no(R,48,57,!0,M);return ir.length<4?"0"+ir:ir;case 4:return Xl(R,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ne);case 6:return Kl(R,1,3999,fc,3,M).toLowerCase();case 7:return Kl(R,1,3999,fc,3,M);case 8:return no(R,945,969,!1,M);case 9:return no(R,97,122,!1,M);case 10:return no(R,65,90,!1,M);case 11:return no(R,1632,1641,!0,M);case 12:case 49:return Kl(R,1,9999,Yu,3,M);case 35:return Kl(R,1,9999,Yu,3,M).toLowerCase();case 13:return no(R,2534,2543,!0,M);case 14:case 30:return no(R,6112,6121,!0,M);case 15:return Xl(R,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Ne);case 16:return Xl(R,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Ne);case 17:case 48:return No(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Pu,"\u8CA0",Ne,ou|zl|Ou);case 47:return No(R,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Ec,"\u8CA0",Ne,Ho|ou|zl|Ou);case 42:return No(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Pu,"\u8D1F",Ne,ou|zl|Ou);case 41:return No(R,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Ec,"\u8D1F",Ne,Ho|ou|zl|Ou);case 26:return No(R,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Cc,Ne,0);case 25:return No(R,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Cc,Ne,Ho|ou|zl);case 31:return No(R,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Gl,it,Ho|ou|zl);case 33:return No(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Gl,it,0);case 32:return No(R,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Gl,it,Ho|ou|zl);case 18:return no(R,2406,2415,!0,M);case 20:return Kl(R,1,19999,qo,3,M);case 21:return no(R,2790,2799,!0,M);case 22:return no(R,2662,2671,!0,M);case 22:return Kl(R,1,10999,hc,3,M);case 23:return Xl(R,"\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 Xl(R,"\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 no(R,3302,3311,!0,M);case 28:return Xl(R,"\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",Ne);case 29:return Xl(R,"\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",Ne);case 34:return no(R,3792,3801,!0,M);case 37:return no(R,6160,6169,!0,M);case 38:return no(R,4160,4169,!0,M);case 39:return no(R,2918,2927,!0,M);case 40:return no(R,1776,1785,!0,M);case 43:return no(R,3046,3055,!0,M);case 44:return no(R,3174,3183,!0,M);case 45:return no(R,3664,3673,!0,M);case 46:return no(R,3872,3881,!0,M);case 3:default:return no(R,48,57,!0,M)}},el="data-html2canvas-ignore",rl=function(){function R(C,Q,M){if(this.context=C,this.options=M,this.scrolledElements=[],this.referenceElement=Q,this.counters=new Vu,this.quoteDepth=0,!Q.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Q.ownerDocument.documentElement,!1)}return R.prototype.toIFrame=function(C,Q){var M=this,Ne=bu(C,Q);if(!Ne.contentWindow)return Promise.reject("Unable to find iframe window");var it=C.defaultView.pageXOffset,Lt=C.defaultView.pageYOffset,ir=Ne.contentWindow,ar=ir.document,Qr=wu(Ne).then(function(){return Fe(M,void 0,void 0,function(){var qr,u;return se(this,function(P){switch(P.label){case 0:return this.scrolledElements.forEach(pc),ir&&(ir.scrollTo(Q.left,Q.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ir.scrollY!==Q.top||ir.scrollX!==Q.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ir.scrollX-Q.left,ir.scrollY-Q.top,0,0))),qr=this.options.onclone,u=this.clonedReferenceElement,typeof u=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:ar.fonts&&ar.fonts.ready?[4,ar.fonts.ready]:[3,2];case 1:P.sent(),P.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ju(ar)]:[3,4];case 3:P.sent(),P.label=4;case 4:return typeof qr=="function"?[2,Promise.resolve().then(function(){return qr(ar,u)}).then(function(){return Ne})]:[2,Ne]}})})});return ar.open(),ar.write(Go(document.doctype)+"<html></html>"),Zl(this.referenceElement.ownerDocument,it,Lt),ar.replaceChild(ar.adoptNode(this.documentElement),ar.documentElement),ar.close(),Qr},R.prototype.createElementClone=function(C){if(fa(C,2))debugger;if(bo(C))return this.createCanvasClone(C);if(Lo(C))return this.createVideoClone(C);if(Ll(C))return this.createStyleClone(C);var Q=C.cloneNode(!1);return zo(Q)&&(zo(C)&&C.currentSrc&&C.currentSrc!==C.src&&(Q.src=C.currentSrc,Q.srcset=""),Q.loading==="lazy"&&(Q.loading="eager")),Wu(Q)?this.createCustomElementClone(Q):Q},R.prototype.createCustomElementClone=function(C){var Q=document.createElement("html2canvascustomelement");return qu(C.style,Q),Q},R.prototype.createStyleClone=function(C){try{var Q=C.sheet;if(Q&&Q.cssRules){var M=[].slice.call(Q.cssRules,0).reduce(function(it,Lt){return Lt&&typeof Lt.cssText=="string"?it+Lt.cssText:it},""),Ne=C.cloneNode(!1);return Ne.textContent=M,Ne}}catch(it){if(this.context.logger.error("Unable to access cssRules property",it),it.name!=="SecurityError")throw it}return C.cloneNode(!1)},R.prototype.createCanvasClone=function(C){var Q;if(this.options.inlineImages&&C.ownerDocument){var M=C.ownerDocument.createElement("img");try{return M.src=C.toDataURL(),M}catch(Qr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",C)}}var Ne=C.cloneNode(!1);try{Ne.width=C.width,Ne.height=C.height;var it=C.getContext("2d"),Lt=Ne.getContext("2d");if(Lt)if(!this.options.allowTaint&&it)Lt.putImageData(it.getImageData(0,0,C.width,C.height),0,0);else{var ir=(Q=C.getContext("webgl2"))!==null&&Q!==void 0?Q:C.getContext("webgl");if(ir){var ar=ir.getContextAttributes();(ar==null?void 0:ar.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",C)}Lt.drawImage(C,0,0)}return Ne}catch(Qr){this.context.logger.info("Unable to clone canvas as it is tainted",C)}return Ne},R.prototype.createVideoClone=function(C){var Q=C.ownerDocument.createElement("canvas");Q.width=C.offsetWidth,Q.height=C.offsetHeight;var M=Q.getContext("2d");try{return M&&(M.drawImage(C,0,0,Q.width,Q.height),this.options.allowTaint||M.getImageData(0,0,Q.width,Q.height)),Q}catch(it){this.context.logger.info("Unable to clone video as it is tainted",C)}var Ne=C.ownerDocument.createElement("canvas");return Ne.width=C.offsetWidth,Ne.height=C.offsetHeight,Ne},R.prototype.appendChildNode=function(C,Q,M){(!un(Q)||!Rl(Q)&&!Q.hasAttribute(el)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Q)))&&(!this.options.copyStyles||!un(Q)||!Ll(Q))&&C.appendChild(this.cloneNode(Q,M))},R.prototype.cloneChildNodes=function(C,Q,M){for(var Ne=this,it=C.shadowRoot?C.shadowRoot.firstChild:C.firstChild;it;it=it.nextSibling)if(un(it)&&dc(it)&&typeof it.assignedNodes=="function"){var Lt=it.assignedNodes();Lt.length&&Lt.forEach(function(ir){return Ne.appendChildNode(Q,ir,M)})}else this.appendChildNode(Q,it,M)},R.prototype.cloneNode=function(C,Q){if(Pr(C))return document.createTextNode(C.data);if(!C.ownerDocument)return C.cloneNode(!1);var M=C.ownerDocument.defaultView;if(M&&un(C)&&(Wn(C)||Ci(C))){var Ne=this.createElementClone(C);Ne.style.transitionProperty="none";var it=M.getComputedStyle(C),Lt=M.getComputedStyle(C,":before"),ir=M.getComputedStyle(C,":after");this.referenceElement===C&&Wn(Ne)&&(this.clonedReferenceElement=Ne),ro(Ne)&&e(Ne);var ar=this.counters.parse(new va(this.context,it)),Qr=this.resolvePseudoContent(C,Ne,Lt,Pl.BEFORE);Wu(C)&&(Q=!0),Lo(C)||this.cloneChildNodes(C,Ne,Q),Qr&&Ne.insertBefore(Qr,Ne.firstChild);var qr=this.resolvePseudoContent(C,Ne,ir,Pl.AFTER);return qr&&Ne.appendChild(qr),this.counters.pop(ar),(it&&(this.options.copyStyles||Ci(C))&&!jo(C)||Q)&&qu(it,Ne),(C.scrollTop!==0||C.scrollLeft!==0)&&this.scrolledElements.push([Ne,C.scrollLeft,C.scrollTop]),(Ol(C)||Zu(C))&&(Ol(Ne)||Zu(Ne))&&(Ne.value=C.value),Ne}return C.cloneNode(!1)},R.prototype.resolvePseudoContent=function(C,Q,M,Ne){var it=this;if(M){var Lt=M.content,ir=Q.ownerDocument;if(!(!ir||!Lt||Lt==="none"||Lt==="-moz-alt-content"||M.display==="none")){this.counters.parse(new va(this.context,M));var ar=new La(this.context,M),Qr=ir.createElement("html2canvaspseudoelement");qu(M,Qr),ar.content.forEach(function(u){if(u.type===0)Qr.appendChild(ir.createTextNode(u.value));else if(u.type===22){var P=ir.createElement("img");P.src=u.value,P.style.opacity="1",Qr.appendChild(P)}else if(u.type===18){if(u.name==="attr"){var me=u.values.filter(pi);me.length&&Qr.appendChild(ir.createTextNode(C.getAttribute(me[0].value)||""))}else if(u.name==="counter"){var Ue=u.values.filter(ks),at=Ue[0],bt=Ue[1];if(at&&pi(at)){var gt=it.counters.getCounterValue(at.value),Ct=bt&&pi(bt)?At.parse(it.context,bt.value):3;Qr.appendChild(ir.createTextNode(Jl(gt,Ct,!1)))}}else if(u.name==="counters"){var Nt=u.values.filter(ks),at=Nt[0],Zt=Nt[1],bt=Nt[2];if(at&&pi(at)){var yr=it.counters.getCounterValues(at.value),wr=bt&&pi(bt)?At.parse(it.context,bt.value):3,Xr=Zt&&Zt.type===0?Zt.value:"",Rr=yr.map(function(Or){return Jl(Or,wr,!1)}).join(Xr);Qr.appendChild(ir.createTextNode(Rr))}}}else if(u.type===20)switch(u.value){case"open-quote":Qr.appendChild(ir.createTextNode(Oi(ar.quotes,it.quoteDepth++,!0)));break;case"close-quote":Qr.appendChild(ir.createTextNode(Oi(ar.quotes,--it.quoteDepth,!1)));break;default:Qr.appendChild(ir.createTextNode(u.value))}}),Qr.className=xu+" "+ll;var qr=Ne===Pl.BEFORE?" "+xu:" "+ll;return Ci(Q)?Q.className.baseValue+=qr:Q.className+=qr,Qr}}},R.destroy=function(C){return C.parentNode?(C.parentNode.removeChild(C),!0):!1},R}(),Pl;(function(R){R[R.BEFORE=0]="BEFORE",R[R.AFTER=1]="AFTER"})(Pl||(Pl={}));var bu=function(R,C){var Q=R.createElement("iframe");return Q.className="html2canvas-container",Q.style.visibility="hidden",Q.style.position="fixed",Q.style.left="-10000px",Q.style.top="0px",Q.style.border="0",Q.width=C.width.toString(),Q.height=C.height.toString(),Q.scrolling="no",Q.setAttribute(el,"true"),R.body.appendChild(Q),Q},lu=function(R){return new Promise(function(C){if(R.complete){C();return}if(!R.src){C();return}R.onload=C,R.onerror=C})},Ju=function(R){return Promise.all([].slice.call(R.images,0).map(lu))},wu=function(R){return new Promise(function(C,Q){var M=R.contentWindow;if(!M)return Q("No window assigned for iframe");var Ne=M.document;M.onload=R.onload=function(){M.onload=R.onload=null;var it=setInterval(function(){Ne.body.childNodes.length>0&&Ne.readyState==="complete"&&(clearInterval(it),C(R))},50)}})},Ro=["all","d","content"],qu=function(R,C){for(var Q=R.length-1;Q>=0;Q--){var M=R.item(Q);Ro.indexOf(M)===-1&&C.style.setProperty(M,R.getPropertyValue(M))}return C},Go=function(R){var C="";return R&&(C+="<!DOCTYPE ",R.name&&(C+=R.name),R.internalSubset&&(C+=R.internalSubset),R.publicId&&(C+='"'+R.publicId+'"'),R.systemId&&(C+='"'+R.systemId+'"'),C+=">"),C},Zl=function(R,C,Q){R&&R.defaultView&&(C!==R.defaultView.pageXOffset||Q!==R.defaultView.pageYOffset)&&R.defaultView.scrollTo(C,Q)},pc=function(R){var C=R[0],Q=R[1],M=R[2];C.scrollLeft=Q,C.scrollTop=M},Tc=":before",_c=":after",xu="___html2canvas___pseudoelement_before",ll="___html2canvas___pseudoelement_after",f=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,e=function(R){t(R,"."+xu+Tc+f+`
|
|
|
.`+ll+_c+f)},t=function(R,C){var Q=R.ownerDocument;if(Q){var M=Q.createElement("style");M.textContent=C,R.appendChild(M)}},r=function(){function R(){}return R.getOrigin=function(C){var Q=R._link;return Q?(Q.href=C,Q.href=Q.href,Q.protocol+Q.hostname+Q.port):"about:blank"},R.isSameOrigin=function(C){return R.getOrigin(C)===R._origin},R.setContext=function(C){R._link=C.document.createElement("a"),R._origin=R.getOrigin(C.location.href)},R._origin="about:blank",R}(),i=function(){function R(C,Q){this.context=C,this._options=Q,this._cache={}}return R.prototype.addImage=function(C){var Q=Promise.resolve();return this.has(C)||(Re(C)||j(C))&&(this._cache[C]=this.loadImage(C)).catch(function(){}),Q},R.prototype.match=function(C){return this._cache[C]},R.prototype.loadImage=function(C){return Fe(this,void 0,void 0,function(){var Q,M,Ne,it,Lt=this;return se(this,function(ir){switch(ir.label){case 0:return Q=r.isSameOrigin(C),M=!q(C)&&this._options.useCORS===!0&&cs.SUPPORT_CORS_IMAGES&&!Q,Ne=!q(C)&&!Q&&!Re(C)&&typeof this._options.proxy=="string"&&cs.SUPPORT_CORS_XHR&&!M,!Q&&this._options.allowTaint===!1&&!q(C)&&!Re(C)&&!Ne&&!M?[2]:(it=C,Ne?[4,this.proxy(it)]:[3,2]);case 1:it=ir.sent(),ir.label=2;case 2:return this.context.logger.debug("Added image "+C.substring(0,256)),[4,new Promise(function(ar,Qr){var qr=new Image;qr.onload=function(){return ar(qr)},qr.onerror=Qr,(de(it)||M)&&(qr.crossOrigin="anonymous"),qr.src=it,qr.complete===!0&&setTimeout(function(){return ar(qr)},500),Lt._options.imageTimeout>0&&setTimeout(function(){return Qr("Timed out ("+Lt._options.imageTimeout+"ms) loading image")},Lt._options.imageTimeout)})];case 3:return[2,ir.sent()]}})})},R.prototype.has=function(C){return typeof this._cache[C]!="undefined"},R.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},R.prototype.proxy=function(C){var Q=this,M=this._options.proxy;if(!M)throw new Error("No proxy defined");var Ne=C.substring(0,256);return new Promise(function(it,Lt){var ir=cs.SUPPORT_RESPONSE_TYPE?"blob":"text",ar=new XMLHttpRequest;ar.onload=function(){if(ar.status===200)if(ir==="text")it(ar.response);else{var u=new FileReader;u.addEventListener("load",function(){return it(u.result)},!1),u.addEventListener("error",function(P){return Lt(P)},!1),u.readAsDataURL(ar.response)}else Lt("Failed to proxy resource "+Ne+" with status code "+ar.status)},ar.onerror=Lt;var Qr=M.indexOf("?")>-1?"&":"?";if(ar.open("GET",""+M+Qr+"url="+encodeURIComponent(C)+"&responseType="+ir),ir!=="text"&&ar instanceof XMLHttpRequest&&(ar.responseType=ir),Q._options.imageTimeout){var qr=Q._options.imageTimeout;ar.timeout=qr,ar.ontimeout=function(){return Lt("Timed out ("+qr+"ms) proxying "+Ne)}}ar.send()})},R}(),s=/^data:image\/svg\+xml/i,l=/^data:image\/.*;base64,/i,x=/^data:image\/.*/i,j=function(R){return cs.SUPPORT_SVG_DRAWING||!Ye(R)},q=function(R){return x.test(R)},de=function(R){return l.test(R)},Re=function(R){return R.substr(0,4)==="blob"},Ye=function(R){return R.substr(-3).toLowerCase()==="svg"||s.test(R)},Je=function(){function R(C,Q){this.type=0,this.x=C,this.y=Q}return R.prototype.add=function(C,Q){return new R(this.x+C,this.y+Q)},R}(),ct=function(R,C,Q){return new Je(R.x+(C.x-R.x)*Q,R.y+(C.y-R.y)*Q)},_t=function(){function R(C,Q,M,Ne){this.type=1,this.start=C,this.startControl=Q,this.endControl=M,this.end=Ne}return R.prototype.subdivide=function(C,Q){var M=ct(this.start,this.startControl,C),Ne=ct(this.startControl,this.endControl,C),it=ct(this.endControl,this.end,C),Lt=ct(M,Ne,C),ir=ct(Ne,it,C),ar=ct(Lt,ir,C);return Q?new R(this.start,M,Lt,ar):new R(ar,ir,it,this.end)},R.prototype.add=function(C,Q){return new R(this.start.add(C,Q),this.startControl.add(C,Q),this.endControl.add(C,Q),this.end.add(C,Q))},R.prototype.reverse=function(){return new R(this.end,this.endControl,this.startControl,this.start)},R}(),Dt=function(R){return R.type===1},pr=function(){function R(C){var Q=C.styles,M=C.bounds,Ne=Ao(Q.borderTopLeftRadius,M.width,M.height),it=Ne[0],Lt=Ne[1],ir=Ao(Q.borderTopRightRadius,M.width,M.height),ar=ir[0],Qr=ir[1],qr=Ao(Q.borderBottomRightRadius,M.width,M.height),u=qr[0],P=qr[1],me=Ao(Q.borderBottomLeftRadius,M.width,M.height),Ue=me[0],at=me[1],bt=[];bt.push((it+ar)/M.width),bt.push((Ue+u)/M.width),bt.push((Lt+at)/M.height),bt.push((Qr+P)/M.height);var gt=Math.max.apply(Math,bt);gt>1&&(it/=gt,Lt/=gt,ar/=gt,Qr/=gt,u/=gt,P/=gt,Ue/=gt,at/=gt);var Ct=M.width-ar,Nt=M.height-P,Zt=M.width-u,yr=M.height-at,wr=Q.borderTopWidth,Xr=Q.borderRightWidth,Rr=Q.borderBottomWidth,En=Q.borderLeftWidth,Bn=Ba(Q.paddingTop,C.bounds.width),Or=Ba(Q.paddingRight,C.bounds.width),jr=Ba(Q.paddingBottom,C.bounds.width),Pn=Ba(Q.paddingLeft,C.bounds.width);this.topLeftBorderDoubleOuterBox=it>0||Lt>0?Lr(M.left+En/3,M.top+wr/3,it-En/3,Lt-wr/3,Tr.TOP_LEFT):new Je(M.left+En/3,M.top+wr/3),this.topRightBorderDoubleOuterBox=it>0||Lt>0?Lr(M.left+Ct,M.top+wr/3,ar-Xr/3,Qr-wr/3,Tr.TOP_RIGHT):new Je(M.left+M.width-Xr/3,M.top+wr/3),this.bottomRightBorderDoubleOuterBox=u>0||P>0?Lr(M.left+Zt,M.top+Nt,u-Xr/3,P-Rr/3,Tr.BOTTOM_RIGHT):new Je(M.left+M.width-Xr/3,M.top+M.height-Rr/3),this.bottomLeftBorderDoubleOuterBox=Ue>0||at>0?Lr(M.left+En/3,M.top+yr,Ue-En/3,at-Rr/3,Tr.BOTTOM_LEFT):new Je(M.left+En/3,M.top+M.height-Rr/3),this.topLeftBorderDoubleInnerBox=it>0||Lt>0?Lr(M.left+En*2/3,M.top+wr*2/3,it-En*2/3,Lt-wr*2/3,Tr.TOP_LEFT):new Je(M.left+En*2/3,M.top+wr*2/3),this.topRightBorderDoubleInnerBox=it>0||Lt>0?Lr(M.left+Ct,M.top+wr*2/3,ar-Xr*2/3,Qr-wr*2/3,Tr.TOP_RIGHT):new Je(M.left+M.width-Xr*2/3,M.top+wr*2/3),this.bottomRightBorderDoubleInnerBox=u>0||P>0?Lr(M.left+Zt,M.top+Nt,u-Xr*2/3,P-Rr*2/3,Tr.BOTTOM_RIGHT):new Je(M.left+M.width-Xr*2/3,M.top+M.height-Rr*2/3),this.bottomLeftBorderDoubleInnerBox=Ue>0||at>0?Lr(M.left+En*2/3,M.top+yr,Ue-En*2/3,at-Rr*2/3,Tr.BOTTOM_LEFT):new Je(M.left+En*2/3,M.top+M.height-Rr*2/3),this.topLeftBorderStroke=it>0||Lt>0?Lr(M.left+En/2,M.top+wr/2,it-En/2,Lt-wr/2,Tr.TOP_LEFT):new Je(M.left+En/2,M.top+wr/2),this.topRightBorderStroke=it>0||Lt>0?Lr(M.left+Ct,M.top+wr/2,ar-Xr/2,Qr-wr/2,Tr.TOP_RIGHT):new Je(M.left+M.width-Xr/2,M.top+wr/2),this.bottomRightBorderStroke=u>0||P>0?Lr(M.left+Zt,M.top+Nt,u-Xr/2,P-Rr/2,Tr.BOTTOM_RIGHT):new Je(M.left+M.width-Xr/2,M.top+M.height-Rr/2),this.bottomLeftBorderStroke=Ue>0||at>0?Lr(M.left+En/2,M.top+yr,Ue-En/2,at-Rr/2,Tr.BOTTOM_LEFT):new Je(M.left+En/2,M.top+M.height-Rr/2),this.topLeftBorderBox=it>0||Lt>0?Lr(M.left,M.top,it,Lt,Tr.TOP_LEFT):new Je(M.left,M.top),this.topRightBorderBox=ar>0||Qr>0?Lr(M.left+Ct,M.top,ar,Qr,Tr.TOP_RIGHT):new Je(M.left+M.width,M.top),this.bottomRightBorderBox=u>0||P>0?Lr(M.left+Zt,M.top+Nt,u,P,Tr.BOTTOM_RIGHT):new Je(M.left+M.width,M.top+M.height),this.bottomLeftBorderBox=Ue>0||at>0?Lr(M.left,M.top+yr,Ue,at,Tr.BOTTOM_LEFT):new Je(M.left,M.top+M.height),this.topLeftPaddingBox=it>0||Lt>0?Lr(M.left+En,M.top+wr,Math.max(0,it-En),Math.max(0,Lt-wr),Tr.TOP_LEFT):new Je(M.left+En,M.top+wr),this.topRightPaddingBox=ar>0||Qr>0?Lr(M.left+Math.min(Ct,M.width-Xr),M.top+wr,Ct>M.width+Xr?0:Math.max(0,ar-Xr),Math.max(0,Qr-wr),Tr.TOP_RIGHT):new Je(M.left+M.width-Xr,M.top+wr),this.bottomRightPaddingBox=u>0||P>0?Lr(M.left+Math.min(Zt,M.width-En),M.top+Math.min(Nt,M.height-Rr),Math.max(0,u-Xr),Math.max(0,P-Rr),Tr.BOTTOM_RIGHT):new Je(M.left+M.width-Xr,M.top+M.height-Rr),this.bottomLeftPaddingBox=Ue>0||at>0?Lr(M.left+En,M.top+Math.min(yr,M.height-Rr),Math.max(0,Ue-En),Math.max(0,at-Rr),Tr.BOTTOM_LEFT):new Je(M.left+En,M.top+M.height-Rr),this.topLeftContentBox=it>0||Lt>0?Lr(M.left+En+Pn,M.top+wr+Bn,Math.max(0,it-(En+Pn)),Math.max(0,Lt-(wr+Bn)),Tr.TOP_LEFT):new Je(M.left+En+Pn,M.top+wr+Bn),this.topRightContentBox=ar>0||Qr>0?Lr(M.left+Math.min(Ct,M.width+En+Pn),M.top+wr+Bn,Ct>M.width+En+Pn?0:ar-En+Pn,Qr-(wr+Bn),Tr.TOP_RIGHT):new Je(M.left+M.width-(Xr+Or),M.top+wr+Bn),this.bottomRightContentBox=u>0||P>0?Lr(M.left+Math.min(Zt,M.width-(En+Pn)),M.top+Math.min(Nt,M.height+wr+Bn),Math.max(0,u-(Xr+Or)),P-(Rr+jr),Tr.BOTTOM_RIGHT):new Je(M.left+M.width-(Xr+Or),M.top+M.height-(Rr+jr)),this.bottomLeftContentBox=Ue>0||at>0?Lr(M.left+En+Pn,M.top+yr,Math.max(0,Ue-(En+Pn)),at-(Rr+jr),Tr.BOTTOM_LEFT):new Je(M.left+En+Pn,M.top+M.height-(Rr+jr))}return R}(),Tr;(function(R){R[R.TOP_LEFT=0]="TOP_LEFT",R[R.TOP_RIGHT=1]="TOP_RIGHT",R[R.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",R[R.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Tr||(Tr={}));var Lr=function(R,C,Q,M,Ne){var it=4*((Math.sqrt(2)-1)/3),Lt=Q*it,ir=M*it,ar=R+Q,Qr=C+M;switch(Ne){case Tr.TOP_LEFT:return new _t(new Je(R,Qr),new Je(R,Qr-ir),new Je(ar-Lt,C),new Je(ar,C));case Tr.TOP_RIGHT:return new _t(new Je(R,C),new Je(R+Lt,C),new Je(ar,Qr-ir),new Je(ar,Qr));case Tr.BOTTOM_RIGHT:return new _t(new Je(ar,C),new Je(ar,C+ir),new Je(R+Lt,Qr),new Je(R,Qr));case Tr.BOTTOM_LEFT:default:return new _t(new Je(ar,Qr),new Je(ar-Lt,Qr),new Je(R,C+ir),new Je(R,C))}},$n=function(R){return[R.topLeftBorderBox,R.topRightBorderBox,R.bottomRightBorderBox,R.bottomLeftBorderBox]},dn=function(R){return[R.topLeftContentBox,R.topRightContentBox,R.bottomRightContentBox,R.bottomLeftContentBox]},gi=function(R){return[R.topLeftPaddingBox,R.topRightPaddingBox,R.bottomRightPaddingBox,R.bottomLeftPaddingBox]},Kn=function(){function R(C,Q,M){this.offsetX=C,this.offsetY=Q,this.matrix=M,this.type=0,this.target=6}return R}(),Si=function(){function R(C,Q){this.path=C,this.target=Q,this.type=1}return R}(),ta=function(){function R(C){this.opacity=C,this.type=2,this.target=6}return R}(),mi=function(R){return R.type===0},Li=function(R){return R.type===1},Ga=function(R){return R.type===2},ia=function(R,C){return R.length===C.length?R.some(function(Q,M){return Q===C[M]}):!1},$a=function(R,C,Q,M,Ne){return R.map(function(it,Lt){switch(Lt){case 0:return it.add(C,Q);case 1:return it.add(C+M,Q);case 2:return it.add(C+M,Q+Ne);case 3:return it.add(C,Q+Ne)}return it})},Ka=function(){function R(C){this.element=C,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return R}(),Ra=function(){function R(C,Q){if(this.container=C,this.parent=Q,this.effects=[],this.curves=new pr(this.container),this.container.styles.opacity<1&&this.effects.push(new ta(this.container.styles.opacity)),this.container.styles.transform!==null){var M=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Ne=this.container.bounds.top+this.container.styles.transformOrigin[1].number,it=this.container.styles.transform;this.effects.push(new Kn(M,Ne,it))}if(this.container.styles.overflowX!==0){var Lt=$n(this.curves),ir=gi(this.curves);ia(Lt,ir)?this.effects.push(new Si(Lt,6)):(this.effects.push(new Si(Lt,2)),this.effects.push(new Si(ir,4)))}}return R.prototype.getEffects=function(C){for(var Q=[2,3].indexOf(this.container.styles.position)===-1,M=this.parent,Ne=this.effects.slice(0);M;){var it=M.effects.filter(function(ar){return!Li(ar)});if(Q||M.container.styles.position!==0||!M.parent){if(Ne.unshift.apply(Ne,it),Q=[2,3].indexOf(M.container.styles.position)===-1,M.container.styles.overflowX!==0){var Lt=$n(M.curves),ir=gi(M.curves);ia(Lt,ir)||Ne.unshift(new Si(ir,6))}}else Ne.unshift.apply(Ne,it);M=M.parent}return Ne.filter(function(ar){return Ur(ar.target,C)})},R}(),Is=function(R,C,Q,M){R.container.elements.forEach(function(Ne){var it=Ur(Ne.flags,4),Lt=Ur(Ne.flags,2),ir=new Ra(Ne,R);Ur(Ne.styles.display,2048)&&M.push(ir);var ar=Ur(Ne.flags,8)?[]:M;if(it||Lt){var Qr=it||Ne.styles.isPositioned()?Q:C,qr=new Ka(ir);if(Ne.styles.isPositioned()||Ne.styles.opacity<1||Ne.styles.isTransformed()){var u=Ne.styles.zIndex.order;if(u<0){var P=0;Qr.negativeZIndex.some(function(Ue,at){return u>Ue.element.container.styles.zIndex.order?(P=at,!1):P>0}),Qr.negativeZIndex.splice(P,0,qr)}else if(u>0){var me=0;Qr.positiveZIndex.some(function(Ue,at){return u>=Ue.element.container.styles.zIndex.order?(me=at+1,!1):me>0}),Qr.positiveZIndex.splice(me,0,qr)}else Qr.zeroOrAutoZIndexOrTransformedOrOpacity.push(qr)}else Ne.styles.isFloating()?Qr.nonPositionedFloats.push(qr):Qr.nonPositionedInlineLevel.push(qr);Is(ir,qr,it?qr:Q,ar)}else Ne.styles.isInlineLevel()?C.inlineLevel.push(ir):C.nonInlineLevel.push(ir),Is(ir,C,Q,ar);Ur(Ne.flags,8)&&zs(Ne,ar)})},zs=function(R,C){for(var Q=R instanceof hl?R.start:1,M=R instanceof hl?R.reversed:!1,Ne=0;Ne<C.length;Ne++){var it=C[Ne];it.container instanceof Lu&&typeof it.container.value=="number"&&it.container.value!==0&&(Q=it.container.value),it.listValue=Jl(Q,it.container.styles.listStyleType,!0),Q+=M?-1:1}},ha=function(R){var C=new Ra(R,null),Q=new Ka(C),M=[];return Is(C,Q,Q,M),zs(C.container,M),Q},sa=function(R,C){switch(C){case 0:return Ls(R.topLeftBorderBox,R.topLeftPaddingBox,R.topRightBorderBox,R.topRightPaddingBox);case 1:return Ls(R.topRightBorderBox,R.topRightPaddingBox,R.bottomRightBorderBox,R.bottomRightPaddingBox);case 2:return Ls(R.bottomRightBorderBox,R.bottomRightPaddingBox,R.bottomLeftBorderBox,R.bottomLeftPaddingBox);case 3:default:return Ls(R.bottomLeftBorderBox,R.bottomLeftPaddingBox,R.topLeftBorderBox,R.topLeftPaddingBox)}},Ms=function(R,C){switch(C){case 0:return Ls(R.topLeftBorderBox,R.topLeftBorderDoubleOuterBox,R.topRightBorderBox,R.topRightBorderDoubleOuterBox);case 1:return Ls(R.topRightBorderBox,R.topRightBorderDoubleOuterBox,R.bottomRightBorderBox,R.bottomRightBorderDoubleOuterBox);case 2:return Ls(R.bottomRightBorderBox,R.bottomRightBorderDoubleOuterBox,R.bottomLeftBorderBox,R.bottomLeftBorderDoubleOuterBox);case 3:default:return Ls(R.bottomLeftBorderBox,R.bottomLeftBorderDoubleOuterBox,R.topLeftBorderBox,R.topLeftBorderDoubleOuterBox)}},ds=function(R,C){switch(C){case 0:return Ls(R.topLeftBorderDoubleInnerBox,R.topLeftPaddingBox,R.topRightBorderDoubleInnerBox,R.topRightPaddingBox);case 1:return Ls(R.topRightBorderDoubleInnerBox,R.topRightPaddingBox,R.bottomRightBorderDoubleInnerBox,R.bottomRightPaddingBox);case 2:return Ls(R.bottomRightBorderDoubleInnerBox,R.bottomRightPaddingBox,R.bottomLeftBorderDoubleInnerBox,R.bottomLeftPaddingBox);case 3:default:return Ls(R.bottomLeftBorderDoubleInnerBox,R.bottomLeftPaddingBox,R.topLeftBorderDoubleInnerBox,R.topLeftPaddingBox)}},Us=function(R,C){switch(C){case 0:return lo(R.topLeftBorderStroke,R.topRightBorderStroke);case 1:return lo(R.topRightBorderStroke,R.bottomRightBorderStroke);case 2:return lo(R.bottomRightBorderStroke,R.bottomLeftBorderStroke);case 3:default:return lo(R.bottomLeftBorderStroke,R.topLeftBorderStroke)}},lo=function(R,C){var Q=[];return Dt(R)?Q.push(R.subdivide(.5,!1)):Q.push(R),Dt(C)?Q.push(C.subdivide(.5,!0)):Q.push(C),Q},Ls=function(R,C,Q,M){var Ne=[];return Dt(R)?Ne.push(R.subdivide(.5,!1)):Ne.push(R),Dt(Q)?Ne.push(Q.subdivide(.5,!0)):Ne.push(Q),Dt(M)?Ne.push(M.subdivide(.5,!0).reverse()):Ne.push(M),Dt(C)?Ne.push(C.subdivide(.5,!1).reverse()):Ne.push(C),Ne},Zo=function(R){var C=R.bounds,Q=R.styles;return C.add(Q.borderLeftWidth,Q.borderTopWidth,-(Q.borderRightWidth+Q.borderLeftWidth),-(Q.borderTopWidth+Q.borderBottomWidth))},ul=function(R){var C=R.styles,Q=R.bounds,M=Ba(C.paddingLeft,Q.width),Ne=Ba(C.paddingRight,Q.width),it=Ba(C.paddingTop,Q.width),Lt=Ba(C.paddingBottom,Q.width);return Q.add(M+C.borderLeftWidth,it+C.borderTopWidth,-(C.borderRightWidth+C.borderLeftWidth+M+Ne),-(C.borderTopWidth+C.borderBottomWidth+it+Lt))},mc=function(R,C){return R===0?C.bounds:R===2?ul(C):Zo(C)},kc=function(R,C){return R===0?C.bounds:R===2?ul(C):Zo(C)},Zc=function(R,C,Q){var M=mc(pl(R.styles.backgroundOrigin,C),R),Ne=kc(pl(R.styles.backgroundClip,C),R),it=gc(pl(R.styles.backgroundSize,C),Q,M),Lt=it[0],ir=it[1],ar=Ao(pl(R.styles.backgroundPosition,C),M.width-Lt,M.height-ir),Qr=ec(pl(R.styles.backgroundRepeat,C),ar,it,M,Ne),qr=Math.round(M.left+ar[0]),u=Math.round(M.top+ar[1]);return[Qr,qr,u,Lt,ir]},Fc=function(R){return pi(R)&&R.value===ne.AUTO},Qc=function(R){return typeof R=="number"},gc=function(R,C,Q){var M=C[0],Ne=C[1],it=C[2],Lt=R[0],ir=R[1];if(!Lt)return[0,0];if(Ii(Lt)&&ir&&Ii(ir))return[Ba(Lt,Q.width),Ba(ir,Q.height)];var ar=Qc(it);if(pi(Lt)&&(Lt.value===ne.CONTAIN||Lt.value===ne.COVER)){if(Qc(it)){var Qr=Q.width/Q.height;return Qr<it!=(Lt.value===ne.COVER)?[Q.width,Q.width/it]:[Q.height*it,Q.height]}return[Q.width,Q.height]}var qr=Qc(M),u=Qc(Ne),P=qr||u;if(Fc(Lt)&&(!ir||Fc(ir))){if(qr&&u)return[M,Ne];if(!ar&&!P)return[Q.width,Q.height];if(P&&ar){var me=qr?M:Ne*it,Ue=u?Ne:M/it;return[me,Ue]}var at=qr?M:Q.width,bt=u?Ne:Q.height;return[at,bt]}if(ar){var gt=0,Ct=0;return Ii(Lt)?gt=Ba(Lt,Q.width):Ii(ir)&&(Ct=Ba(ir,Q.height)),Fc(Lt)?gt=Ct*it:(!ir||Fc(ir))&&(Ct=gt/it),[gt,Ct]}var Nt=null,Zt=null;if(Ii(Lt)?Nt=Ba(Lt,Q.width):ir&&Ii(ir)&&(Zt=Ba(ir,Q.height)),Nt!==null&&(!ir||Fc(ir))&&(Zt=qr&&u?Nt/M*Ne:Q.height),Zt!==null&&Fc(Lt)&&(Nt=qr&&u?Zt/Ne*M:Q.width),Nt!==null&&Zt!==null)return[Nt,Zt];throw new Error("Unable to calculate background-size for element")},pl=function(R,C){var Q=R[C];return typeof Q=="undefined"?R[0]:Q},ec=function(R,C,Q,M,Ne){var it=C[0],Lt=C[1],ir=Q[0],ar=Q[1];switch(R){case 2:return[new Je(Math.round(M.left),Math.round(M.top+Lt)),new Je(Math.round(M.left+M.width),Math.round(M.top+Lt)),new Je(Math.round(M.left+M.width),Math.round(ar+M.top+Lt)),new Je(Math.round(M.left),Math.round(ar+M.top+Lt))];case 3:return[new Je(Math.round(M.left+it),Math.round(M.top)),new Je(Math.round(M.left+it+ir),Math.round(M.top)),new Je(Math.round(M.left+it+ir),Math.round(M.height+M.top)),new Je(Math.round(M.left+it),Math.round(M.height+M.top))];case 1:return[new Je(Math.round(M.left+it),Math.round(M.top+Lt)),new Je(Math.round(M.left+it+ir),Math.round(M.top+Lt)),new Je(Math.round(M.left+it+ir),Math.round(M.top+Lt+ar)),new Je(Math.round(M.left+it),Math.round(M.top+Lt+ar))];default:return[new Je(Math.round(Ne.left),Math.round(Ne.top)),new Je(Math.round(Ne.left+Ne.width),Math.round(Ne.top)),new Je(Math.round(Ne.left+Ne.width),Math.round(Ne.height+Ne.top)),new Je(Math.round(Ne.left),Math.round(Ne.height+Ne.top))]}},mA="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Wc="Hidden Text",vc=function(){function R(C){this._data={},this._document=C}return R.prototype.parseMetrics=function(C,Q){var M=this._document.createElement("div"),Ne=this._document.createElement("img"),it=this._document.createElement("span"),Lt=this._document.body;M.style.visibility="hidden",M.style.fontFamily=C,M.style.fontSize=Q,M.style.margin="0",M.style.padding="0",M.style.whiteSpace="nowrap",Lt.appendChild(M),Ne.src=mA,Ne.width=1,Ne.height=1,Ne.style.margin="0",Ne.style.padding="0",Ne.style.verticalAlign="baseline",it.style.fontFamily=C,it.style.fontSize=Q,it.style.margin="0",it.style.padding="0",it.appendChild(this._document.createTextNode(Wc)),M.appendChild(it),M.appendChild(Ne);var ir=Ne.offsetTop-it.offsetTop+2;M.removeChild(it),M.appendChild(this._document.createTextNode(Wc)),M.style.lineHeight="normal",Ne.style.verticalAlign="super";var ar=Ne.offsetTop-M.offsetTop+2;return Lt.removeChild(M),{baseline:ir,middle:ar}},R.prototype.getMetrics=function(C,Q){var M=C+" "+Q;return typeof this._data[M]=="undefined"&&(this._data[M]=this.parseMetrics(C,Q)),this._data[M]},R}(),ql=function(){function R(C,Q){this.context=C,this.options=Q}return R}(),gA=1e4,vA=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;return Ne._activeEffects=[],Ne.canvas=M.canvas?M.canvas:document.createElement("canvas"),Ne.ctx=Ne.canvas.getContext("2d"),M.canvas||(Ne.canvas.width=Math.floor(M.width*M.scale),Ne.canvas.height=Math.floor(M.height*M.scale),Ne.canvas.style.width=M.width+"px",Ne.canvas.style.height=M.height+"px"),Ne.fontMetrics=new vc(document),Ne.ctx.scale(Ne.options.scale,Ne.options.scale),Ne.ctx.translate(-M.x,-M.y),Ne.ctx.textBaseline="bottom",Ne._activeEffects=[],Ne.context.logger.debug("Canvas renderer initialized ("+M.width+"x"+M.height+") with scale "+M.scale),Ne}return C.prototype.applyEffects=function(Q){for(var M=this;this._activeEffects.length;)this.popEffect();Q.forEach(function(Ne){return M.applyEffect(Ne)})},C.prototype.applyEffect=function(Q){this.ctx.save(),Ga(Q)&&(this.ctx.globalAlpha=Q.opacity),mi(Q)&&(this.ctx.translate(Q.offsetX,Q.offsetY),this.ctx.transform(Q.matrix[0],Q.matrix[1],Q.matrix[2],Q.matrix[3],Q.matrix[4],Q.matrix[5]),this.ctx.translate(-Q.offsetX,-Q.offsetY)),Li(Q)&&(this.path(Q.path),this.ctx.clip()),this._activeEffects.push(Q)},C.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},C.prototype.renderStack=function(Q){return Fe(this,void 0,void 0,function(){var M;return se(this,function(Ne){switch(Ne.label){case 0:return M=Q.element.container.styles,M.isVisible()?[4,this.renderStackContent(Q)]:[3,2];case 1:Ne.sent(),Ne.label=2;case 2:return[2]}})})},C.prototype.renderNode=function(Q){return Fe(this,void 0,void 0,function(){return se(this,function(M){switch(M.label){case 0:if(Ur(Q.container.flags,16))debugger;return Q.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Q)]:[3,3];case 1:return M.sent(),[4,this.renderNodeContent(Q)];case 2:M.sent(),M.label=3;case 3:return[2]}})})},C.prototype.renderTextWithLetterSpacing=function(Q,M,Ne){var it=this;if(M===0)this.ctx.fillText(Q.text,Q.bounds.left,Q.bounds.top+Ne);else{var Lt=gs(Q.text);Lt.reduce(function(ir,ar){return it.ctx.fillText(ar,ir,Q.bounds.top+Ne),ir+it.ctx.measureText(ar).width},Q.bounds.left)}},C.prototype.createFontStyle=function(Q){var M=Q.fontVariant.filter(function(Lt){return Lt==="normal"||Lt==="small-caps"}).join(""),Ne=yA(Q.fontFamily).join(", "),it=Ps(Q.fontSize)?""+Q.fontSize.number+Q.fontSize.unit:Q.fontSize.number+"px";return[[Q.fontStyle,M,Q.fontWeight,it,Ne].join(" "),Ne,it]},C.prototype.renderTextNode=function(Q,M){return Fe(this,void 0,void 0,function(){var Ne,it,Lt,ir,ar,Qr,qr,u,P=this;return se(this,function(me){return Ne=this.createFontStyle(M),it=Ne[0],Lt=Ne[1],ir=Ne[2],this.ctx.font=it,this.ctx.direction=M.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",ar=this.fontMetrics.getMetrics(Lt,ir),Qr=ar.baseline,qr=ar.middle,u=M.paintOrder,Q.textBounds.forEach(function(Ue){u.forEach(function(at){switch(at){case 0:P.ctx.fillStyle=ba(M.color),P.renderTextWithLetterSpacing(Ue,M.letterSpacing,Qr);var bt=M.textShadow;bt.length&&Ue.text.trim().length&&(bt.slice(0).reverse().forEach(function(gt){P.ctx.shadowColor=ba(gt.color),P.ctx.shadowOffsetX=gt.offsetX.number*P.options.scale,P.ctx.shadowOffsetY=gt.offsetY.number*P.options.scale,P.ctx.shadowBlur=gt.blur.number,P.renderTextWithLetterSpacing(Ue,M.letterSpacing,Qr)}),P.ctx.shadowColor="",P.ctx.shadowOffsetX=0,P.ctx.shadowOffsetY=0,P.ctx.shadowBlur=0),M.textDecorationLine.length&&(P.ctx.fillStyle=ba(M.textDecorationColor||M.color),M.textDecorationLine.forEach(function(gt){switch(gt){case 1:P.ctx.fillRect(Ue.bounds.left,Math.round(Ue.bounds.top+Qr),Ue.bounds.width,1);break;case 2:P.ctx.fillRect(Ue.bounds.left,Math.round(Ue.bounds.top),Ue.bounds.width,1);break;case 3:P.ctx.fillRect(Ue.bounds.left,Math.ceil(Ue.bounds.top+qr),Ue.bounds.width,1);break}}));break;case 1:M.webkitTextStrokeWidth&&Ue.text.trim().length&&(P.ctx.strokeStyle=ba(M.webkitTextStrokeColor),P.ctx.lineWidth=M.webkitTextStrokeWidth,P.ctx.lineJoin=window.chrome?"miter":"round",P.ctx.strokeText(Ue.text,Ue.bounds.left,Ue.bounds.top+Qr)),P.ctx.strokeStyle="",P.ctx.lineWidth=0,P.ctx.lineJoin="miter";break}})}),[2]})})},C.prototype.renderReplacedElement=function(Q,M,Ne){if(Ne&&Q.intrinsicWidth>0&&Q.intrinsicHeight>0){var it=ul(Q),Lt=gi(M);this.path(Lt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Ne,0,0,Q.intrinsicWidth,Q.intrinsicHeight,it.left,it.top,it.width,it.height),this.ctx.restore()}},C.prototype.renderNodeContent=function(Q){return Fe(this,void 0,void 0,function(){var M,Ne,it,Lt,ir,ar,Ct,Ct,Qr,qr,u,P,Zt,me,Ue,yr,at,bt,gt,Ct,Nt,Zt,yr;return se(this,function(wr){switch(wr.label){case 0:this.applyEffects(Q.getEffects(4)),M=Q.container,Ne=Q.curves,it=M.styles,Lt=0,ir=M.textNodes,wr.label=1;case 1:return Lt<ir.length?(ar=ir[Lt],[4,this.renderTextNode(ar,it)]):[3,4];case 2:wr.sent(),wr.label=3;case 3:return Lt++,[3,1];case 4:if(!(M instanceof yu))return[3,8];wr.label=5;case 5:return wr.trys.push([5,7,,8]),[4,this.context.cache.match(M.src)];case 6:return Ct=wr.sent(),this.renderReplacedElement(M,Ne,Ct),[3,8];case 7:return wr.sent(),this.context.logger.error("Error loading image "+M.src),[3,8];case 8:if(M instanceof $l&&this.renderReplacedElement(M,Ne,M.canvas),!(M instanceof oc))return[3,12];wr.label=9;case 9:return wr.trys.push([9,11,,12]),[4,this.context.cache.match(M.svg)];case 10:return Ct=wr.sent(),this.renderReplacedElement(M,Ne,Ct),[3,12];case 11:return wr.sent(),this.context.logger.error("Error loading svg "+M.svg.substring(0,255)),[3,12];case 12:return M instanceof su&&M.tree?(Qr=new C(this.context,{scale:this.options.scale,backgroundColor:M.backgroundColor,x:0,y:0,width:M.width,height:M.height}),[4,Qr.render(M.tree)]):[3,14];case 13:qr=wr.sent(),M.width&&M.height&&this.ctx.drawImage(qr,0,0,M.width,M.height,M.bounds.left,M.bounds.top,M.bounds.width,M.bounds.height),wr.label=14;case 14:if(M instanceof Ac&&(u=Math.min(M.bounds.width,M.bounds.height),M.type===Ku?M.checked&&(this.ctx.save(),this.path([new Je(M.bounds.left+u*.39363,M.bounds.top+u*.79),new Je(M.bounds.left+u*.16,M.bounds.top+u*.5549),new Je(M.bounds.left+u*.27347,M.bounds.top+u*.44071),new Je(M.bounds.left+u*.39694,M.bounds.top+u*.5649),new Je(M.bounds.left+u*.72983,M.bounds.top+u*.23),new Je(M.bounds.left+u*.84,M.bounds.top+u*.34085),new Je(M.bounds.left+u*.39363,M.bounds.top+u*.79)]),this.ctx.fillStyle=ba(cc),this.ctx.fill(),this.ctx.restore()):M.type===au&&M.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(M.bounds.left+u/2,M.bounds.top+u/2,u/4,0,Math.PI*2,!0),this.ctx.fillStyle=ba(cc),this.ctx.fill(),this.ctx.restore())),eA(M)&&M.value.length){switch(P=this.createFontStyle(it),Zt=P[0],me=P[1],Ue=this.fontMetrics.getMetrics(Zt,me).baseline,this.ctx.font=Zt,this.ctx.fillStyle=ba(it.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=rA(M.styles.textAlign),yr=ul(M),at=0,M.styles.textAlign){case 1:at+=yr.width/2;break;case 2:at+=yr.width;break}bt=yr.add(at,0,0,-yr.height/2+1),this.ctx.save(),this.path([new Je(yr.left,yr.top),new Je(yr.left+yr.width,yr.top),new Je(yr.left+yr.width,yr.top+yr.height),new Je(yr.left,yr.top+yr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Xo(M.value,bt),it.letterSpacing,Ue),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ur(M.styles.display,2048))return[3,20];if(M.styles.listStyleImage===null)return[3,19];if(gt=M.styles.listStyleImage,gt.type!==0)return[3,18];Ct=void 0,Nt=gt.url,wr.label=15;case 15:return wr.trys.push([15,17,,18]),[4,this.context.cache.match(Nt)];case 16:return Ct=wr.sent(),this.ctx.drawImage(Ct,M.bounds.left-(Ct.width+10),M.bounds.top),[3,18];case 17:return wr.sent(),this.context.logger.error("Error loading list-style-image "+Nt),[3,18];case 18:return[3,20];case 19:Q.listValue&&M.styles.listStyleType!==-1&&(Zt=this.createFontStyle(it)[0],this.ctx.font=Zt,this.ctx.fillStyle=ba(it.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",yr=new ie(M.bounds.left,M.bounds.top+Ba(M.styles.paddingTop,M.bounds.width),M.bounds.width,Qt(it.lineHeight,it.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Xo(Q.listValue,yr),it.letterSpacing,Qt(it.lineHeight,it.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),wr.label=20;case 20:return[2]}})})},C.prototype.renderStackContent=function(Q){return Fe(this,void 0,void 0,function(){var M,Ne,gt,it,Lt,gt,ir,ar,gt,Qr,qr,gt,u,P,gt,me,Ue,gt,at,bt,gt;return se(this,function(Ct){switch(Ct.label){case 0:if(Ur(Q.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Q.element)];case 1:Ct.sent(),M=0,Ne=Q.negativeZIndex,Ct.label=2;case 2:return M<Ne.length?(gt=Ne[M],[4,this.renderStack(gt)]):[3,5];case 3:Ct.sent(),Ct.label=4;case 4:return M++,[3,2];case 5:return[4,this.renderNodeContent(Q.element)];case 6:Ct.sent(),it=0,Lt=Q.nonInlineLevel,Ct.label=7;case 7:return it<Lt.length?(gt=Lt[it],[4,this.renderNode(gt)]):[3,10];case 8:Ct.sent(),Ct.label=9;case 9:return it++,[3,7];case 10:ir=0,ar=Q.nonPositionedFloats,Ct.label=11;case 11:return ir<ar.length?(gt=ar[ir],[4,this.renderStack(gt)]):[3,14];case 12:Ct.sent(),Ct.label=13;case 13:return ir++,[3,11];case 14:Qr=0,qr=Q.nonPositionedInlineLevel,Ct.label=15;case 15:return Qr<qr.length?(gt=qr[Qr],[4,this.renderStack(gt)]):[3,18];case 16:Ct.sent(),Ct.label=17;case 17:return Qr++,[3,15];case 18:u=0,P=Q.inlineLevel,Ct.label=19;case 19:return u<P.length?(gt=P[u],[4,this.renderNode(gt)]):[3,22];case 20:Ct.sent(),Ct.label=21;case 21:return u++,[3,19];case 22:me=0,Ue=Q.zeroOrAutoZIndexOrTransformedOrOpacity,Ct.label=23;case 23:return me<Ue.length?(gt=Ue[me],[4,this.renderStack(gt)]):[3,26];case 24:Ct.sent(),Ct.label=25;case 25:return me++,[3,23];case 26:at=0,bt=Q.positiveZIndex,Ct.label=27;case 27:return at<bt.length?(gt=bt[at],[4,this.renderStack(gt)]):[3,30];case 28:Ct.sent(),Ct.label=29;case 29:return at++,[3,27];case 30:return[2]}})})},C.prototype.mask=function(Q){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(Q.slice(0).reverse()),this.ctx.closePath()},C.prototype.path=function(Q){this.ctx.beginPath(),this.formatPath(Q),this.ctx.closePath()},C.prototype.formatPath=function(Q){var M=this;Q.forEach(function(Ne,it){var Lt=Dt(Ne)?Ne.start:Ne;it===0?M.ctx.moveTo(Lt.x,Lt.y):M.ctx.lineTo(Lt.x,Lt.y),Dt(Ne)&&M.ctx.bezierCurveTo(Ne.startControl.x,Ne.startControl.y,Ne.endControl.x,Ne.endControl.y,Ne.end.x,Ne.end.y)})},C.prototype.renderRepeat=function(Q,M,Ne,it){this.path(Q),this.ctx.fillStyle=M,this.ctx.translate(Ne,it),this.ctx.fill(),this.ctx.translate(-Ne,-it)},C.prototype.resizeImage=function(Q,M,Ne){var it;if(Q.width===M&&Q.height===Ne)return Q;var Lt=(it=this.canvas.ownerDocument)!==null&&it!==void 0?it:document,ir=Lt.createElement("canvas");ir.width=Math.max(1,M),ir.height=Math.max(1,Ne);var ar=ir.getContext("2d");return ar.drawImage(Q,0,0,Q.width,Q.height,0,0,M,Ne),ir},C.prototype.renderBackgroundImage=function(Q){return Fe(this,void 0,void 0,function(){var M,Ne,it,Lt,ir,ar;return se(this,function(Qr){switch(Qr.label){case 0:M=Q.styles.backgroundImage.length-1,Ne=function(qr){var u,P,me,Bn,Xi,Hi,Pn,si,Rr,Ue,Bn,Xi,Hi,Pn,si,at,bt,gt,Ct,Nt,Zt,yr,wr,Xr,Rr,En,Bn,Or,jr,Pn,si,li,Xi,Hi,wa,Wi,Es,Rs,vs,qa,Qs,Ts;return se(this,function(Za){switch(Za.label){case 0:if(qr.type!==0)return[3,5];u=void 0,P=qr.url,Za.label=1;case 1:return Za.trys.push([1,3,,4]),[4,it.context.cache.match(P)];case 2:return u=Za.sent(),[3,4];case 3:return Za.sent(),it.context.logger.error("Error loading background-image "+P),[3,4];case 4:return u&&(me=Zc(Q,M,[u.width,u.height,u.width/u.height]),Bn=me[0],Xi=me[1],Hi=me[2],Pn=me[3],si=me[4],Rr=it.ctx.createPattern(it.resizeImage(u,Pn,si),"repeat"),it.renderRepeat(Bn,Rr,Xi,Hi)),[3,6];case 5:rc(qr)?(Ue=Zc(Q,M,[null,null,null]),Bn=Ue[0],Xi=Ue[1],Hi=Ue[2],Pn=Ue[3],si=Ue[4],at=Mo(qr.angle,Pn,si),bt=at[0],gt=at[1],Ct=at[2],Nt=at[3],Zt=at[4],yr=document.createElement("canvas"),yr.width=Pn,yr.height=si,wr=yr.getContext("2d"),Xr=wr.createLinearGradient(gt,Nt,Ct,Zt),Ml(qr.stops,bt).forEach(function(So){return Xr.addColorStop(So.stop,ba(So.color))}),wr.fillStyle=Xr,wr.fillRect(0,0,Pn,si),Pn>0&&si>0&&(Rr=it.ctx.createPattern(yr,"repeat"),it.renderRepeat(Bn,Rr,Xi,Hi))):nc(qr)&&(En=Zc(Q,M,[null,null,null]),Bn=En[0],Or=En[1],jr=En[2],Pn=En[3],si=En[4],li=qr.position.length===0?[il]:qr.position,Xi=Ba(li[0],Pn),Hi=Ba(li[li.length-1],si),wa=Va(qr,Xi,Hi,Pn,si),Wi=wa[0],Es=wa[1],Wi>0&&Es>0&&(Rs=it.ctx.createRadialGradient(Or+Xi,jr+Hi,0,Or+Xi,jr+Hi,Wi),Ml(qr.stops,Wi*2).forEach(function(So){return Rs.addColorStop(So.stop,ba(So.color))}),it.path(Bn),it.ctx.fillStyle=Rs,Wi!==Es?(vs=Q.bounds.left+.5*Q.bounds.width,qa=Q.bounds.top+.5*Q.bounds.height,Qs=Es/Wi,Ts=1/Qs,it.ctx.save(),it.ctx.translate(vs,qa),it.ctx.transform(1,0,0,Qs,0,0),it.ctx.translate(-vs,-qa),it.ctx.fillRect(Or,Ts*(jr-qa)+qa,Pn,si*Ts),it.ctx.restore()):it.ctx.fill())),Za.label=6;case 6:return M--,[2]}})},it=this,Lt=0,ir=Q.styles.backgroundImage.slice(0).reverse(),Qr.label=1;case 1:return Lt<ir.length?(ar=ir[Lt],[5,Ne(ar)]):[3,4];case 2:Qr.sent(),Qr.label=3;case 3:return Lt++,[3,1];case 4:return[2]}})})},C.prototype.renderSolidBorder=function(Q,M,Ne){return Fe(this,void 0,void 0,function(){return se(this,function(it){return this.path(sa(Ne,M)),this.ctx.fillStyle=ba(Q),this.ctx.fill(),[2]})})},C.prototype.renderDoubleBorder=function(Q,M,Ne,it){return Fe(this,void 0,void 0,function(){var Lt,ir;return se(this,function(ar){switch(ar.label){case 0:return M<3?[4,this.renderSolidBorder(Q,Ne,it)]:[3,2];case 1:return ar.sent(),[2];case 2:return Lt=Ms(it,Ne),this.path(Lt),this.ctx.fillStyle=ba(Q),this.ctx.fill(),ir=ds(it,Ne),this.path(ir),this.ctx.fill(),[2]}})})},C.prototype.renderNodeBackgroundAndBorders=function(Q){return Fe(this,void 0,void 0,function(){var M,Ne,it,Lt,ir,ar,Qr,qr,u=this;return se(this,function(P){switch(P.label){case 0:return this.applyEffects(Q.getEffects(2)),M=Q.container.styles,Ne=!Hs(M.backgroundColor)||M.backgroundImage.length,it=[{style:M.borderTopStyle,color:M.borderTopColor,width:M.borderTopWidth},{style:M.borderRightStyle,color:M.borderRightColor,width:M.borderRightWidth},{style:M.borderBottomStyle,color:M.borderBottomColor,width:M.borderBottomWidth},{style:M.borderLeftStyle,color:M.borderLeftColor,width:M.borderLeftWidth}],Lt=tA(pl(M.backgroundClip,0),Q.curves),Ne||M.boxShadow.length?(this.ctx.save(),this.path(Lt),this.ctx.clip(),Hs(M.backgroundColor)||(this.ctx.fillStyle=ba(M.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Q.container)]):[3,2];case 1:P.sent(),this.ctx.restore(),M.boxShadow.slice(0).reverse().forEach(function(me){u.ctx.save();var Ue=$n(Q.curves),at=me.inset?0:gA,bt=$a(Ue,-at+(me.inset?1:-1)*me.spread.number,(me.inset?1:-1)*me.spread.number,me.spread.number*(me.inset?-2:2),me.spread.number*(me.inset?-2:2));me.inset?(u.path(Ue),u.ctx.clip(),u.mask(bt)):(u.mask(Ue),u.ctx.clip(),u.path(bt)),u.ctx.shadowOffsetX=me.offsetX.number+at,u.ctx.shadowOffsetY=me.offsetY.number,u.ctx.shadowColor=ba(me.color),u.ctx.shadowBlur=me.blur.number,u.ctx.fillStyle=me.inset?ba(me.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),P.label=2;case 2:ir=0,ar=0,Qr=it,P.label=3;case 3:return ar<Qr.length?(qr=Qr[ar],qr.style!==0&&!Hs(qr.color)&&qr.width>0?qr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(qr.color,qr.width,ir,Q.curves,2)]:[3,11]):[3,13];case 4:return P.sent(),[3,11];case 5:return qr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(qr.color,qr.width,ir,Q.curves,3)];case 6:return P.sent(),[3,11];case 7:return qr.style!==4?[3,9]:[4,this.renderDoubleBorder(qr.color,qr.width,ir,Q.curves)];case 8:return P.sent(),[3,11];case 9:return[4,this.renderSolidBorder(qr.color,ir,Q.curves)];case 10:P.sent(),P.label=11;case 11:ir++,P.label=12;case 12:return ar++,[3,3];case 13:return[2]}})})},C.prototype.renderDashedDottedBorder=function(Q,M,Ne,it,Lt){return Fe(this,void 0,void 0,function(){var ir,ar,Qr,qr,u,P,me,Ue,at,bt,gt,Ct,Nt,Zt,yr,wr,yr,wr;return se(this,function(Xr){return this.ctx.save(),ir=Us(it,Ne),ar=sa(it,Ne),Lt===2&&(this.path(ar),this.ctx.clip()),Dt(ar[0])?(Qr=ar[0].start.x,qr=ar[0].start.y):(Qr=ar[0].x,qr=ar[0].y),Dt(ar[1])?(u=ar[1].end.x,P=ar[1].end.y):(u=ar[1].x,P=ar[1].y),Ne===0||Ne===2?me=Math.abs(Qr-u):me=Math.abs(qr-P),this.ctx.beginPath(),Lt===3?this.formatPath(ir):this.formatPath(ar.slice(0,2)),Ue=M<3?M*3:M*2,at=M<3?M*2:M,Lt===3&&(Ue=M,at=M),bt=!0,me<=Ue*2?bt=!1:me<=Ue*2+at?(gt=me/(2*Ue+at),Ue*=gt,at*=gt):(Ct=Math.floor((me+at)/(Ue+at)),Nt=(me-Ct*Ue)/(Ct-1),Zt=(me-(Ct+1)*Ue)/Ct,at=Zt<=0||Math.abs(at-Nt)<Math.abs(at-Zt)?Nt:Zt),bt&&(Lt===3?this.ctx.setLineDash([0,Ue+at]):this.ctx.setLineDash([Ue,at])),Lt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=M):this.ctx.lineWidth=M*2+1.1,this.ctx.strokeStyle=ba(Q),this.ctx.stroke(),this.ctx.setLineDash([]),Lt===2&&(Dt(ar[0])&&(yr=ar[3],wr=ar[0],this.ctx.beginPath(),this.formatPath([new Je(yr.end.x,yr.end.y),new Je(wr.start.x,wr.start.y)]),this.ctx.stroke()),Dt(ar[1])&&(yr=ar[1],wr=ar[2],this.ctx.beginPath(),this.formatPath([new Je(yr.end.x,yr.end.y),new Je(wr.start.x,wr.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},C.prototype.render=function(Q){return Fe(this,void 0,void 0,function(){var M;return se(this,function(Ne){switch(Ne.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ba(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),M=ha(Q),[4,this.renderStack(M)];case 1:return Ne.sent(),this.applyEffects([]),[2,this.canvas]}})})},C}(ql),eA=function(R){return R instanceof Ru||R instanceof Ic?!0:R instanceof Ac&&R.type!==au&&R.type!==Ku},tA=function(R,C){switch(R){case 0:return $n(C);case 2:return dn(C);case 1:default:return gi(C)}},rA=function(R){switch(R){case 1:return"center";case 2:return"right";case 0:default:return"left"}},nA=["-apple-system","system-ui"],yA=function(R){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?R.filter(function(C){return nA.indexOf(C)===-1}):R},jc=function(R){g(C,R);function C(Q,M){var Ne=R.call(this,Q,M)||this;return Ne.canvas=M.canvas?M.canvas:document.createElement("canvas"),Ne.ctx=Ne.canvas.getContext("2d"),Ne.options=M,Ne.canvas.width=Math.floor(M.width*M.scale),Ne.canvas.height=Math.floor(M.height*M.scale),Ne.canvas.style.width=M.width+"px",Ne.canvas.style.height=M.height+"px",Ne.ctx.scale(Ne.options.scale,Ne.options.scale),Ne.ctx.translate(-M.x,-M.y),Ne.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+M.width+"x"+M.height+" at "+M.x+","+M.y+") with scale "+M.scale),Ne}return C.prototype.render=function(Q){return Fe(this,void 0,void 0,function(){var M,Ne;return se(this,function(it){switch(it.label){case 0:return M=Sl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Q),[4,Hc(M)];case 1:return Ne=it.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ba(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Ne,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},C}(ql),Hc=function(R){return new Promise(function(C,Q){var M=new Image;M.onload=function(){C(M)},M.onerror=Q,M.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(R))})},Mc=function(){function R(C){var Q=C.id,M=C.enabled;this.id=Q,this.enabled=M,this.start=Date.now()}return R.prototype.debug=function(){for(var C=[],Q=0;Q<arguments.length;Q++)C[Q]=arguments[Q];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Me([this.id,this.getTime()+"ms"],C)):this.info.apply(this,C))},R.prototype.getTime=function(){return Date.now()-this.start},R.prototype.info=function(){for(var C=[],Q=0;Q<arguments.length;Q++)C[Q]=arguments[Q];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Me([this.id,this.getTime()+"ms"],C))},R.prototype.warn=function(){for(var C=[],Q=0;Q<arguments.length;Q++)C[Q]=arguments[Q];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Me([this.id,this.getTime()+"ms"],C)):this.info.apply(this,C))},R.prototype.error=function(){for(var C=[],Q=0;Q<arguments.length;Q++)C[Q]=arguments[Q];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Me([this.id,this.getTime()+"ms"],C)):this.info.apply(this,C))},R.instances={},R}(),Vc=function(){function R(C,Q){var M;this.windowBounds=Q,this.instanceName="#"+R.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:C.logging}),this.cache=(M=C.cache)!==null&&M!==void 0?M:new i(this,C)}return R.instanceCount=1,R}(),iA=function(R,C){return C===void 0&&(C={}),bA(R,C)};typeof window!="undefined"&&r.setContext(window);var bA=function(R,C){return Fe(void 0,void 0,void 0,function(){var Q,M,Ne,it,Lt,ir,ar,Qr,qr,u,P,me,Ue,at,bt,gt,Ct,Nt,Zt,yr,Xr,wr,Xr,Rr,En,Bn,Or,jr,Pn,si,li,Xi,Hi,wa,Wi,Es,Rs,vs,qa,Qs;return se(this,function(Ts){switch(Ts.label){case 0:if(!R||typeof R!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Q=R.ownerDocument,!Q)throw new Error("Element is not attached to a Document");if(M=Q.defaultView,!M)throw new Error("Document is not attached to a Window");return Ne={allowTaint:(Rr=C.allowTaint)!==null&&Rr!==void 0?Rr:!1,imageTimeout:(En=C.imageTimeout)!==null&&En!==void 0?En:15e3,proxy:C.proxy,useCORS:(Bn=C.useCORS)!==null&&Bn!==void 0?Bn:!1},it=xe({logging:(Or=C.logging)!==null&&Or!==void 0?Or:!0,cache:C.cache},Ne),Lt={windowWidth:(jr=C.windowWidth)!==null&&jr!==void 0?jr:M.innerWidth,windowHeight:(Pn=C.windowHeight)!==null&&Pn!==void 0?Pn:M.innerHeight,scrollX:(si=C.scrollX)!==null&&si!==void 0?si:M.pageXOffset,scrollY:(li=C.scrollY)!==null&&li!==void 0?li:M.pageYOffset},ir=new ie(Lt.scrollX,Lt.scrollY,Lt.windowWidth,Lt.windowHeight),ar=new Vc(it,ir),Qr=(Xi=C.foreignObjectRendering)!==null&&Xi!==void 0?Xi:!1,qr={allowTaint:(Hi=C.allowTaint)!==null&&Hi!==void 0?Hi:!1,onclone:C.onclone,ignoreElements:C.ignoreElements,inlineImages:Qr,copyStyles:Qr},ar.logger.debug("Starting document clone with size "+ir.width+"x"+ir.height+" scrolled to "+-ir.left+","+-ir.top),u=new rl(ar,R,qr),P=u.clonedReferenceElement,P?[4,u.toIFrame(Q,ir)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return me=Ts.sent(),Ue=ro(P)||Wa(P)?O(P.ownerDocument):Y(ar,P),at=Ue.width,bt=Ue.height,gt=Ue.left,Ct=Ue.top,Nt=aA(ar,P,C.backgroundColor),Zt={canvas:C.canvas,backgroundColor:Nt,scale:(Wi=(wa=C.scale)!==null&&wa!==void 0?wa:M.devicePixelRatio)!==null&&Wi!==void 0?Wi:1,x:((Es=C.x)!==null&&Es!==void 0?Es:0)+gt,y:((Rs=C.y)!==null&&Rs!==void 0?Rs:0)+Ct,width:(vs=C.width)!==null&&vs!==void 0?vs:Math.ceil(at),height:(qa=C.height)!==null&&qa!==void 0?qa:Math.ceil(bt)},Qr?(ar.logger.debug("Document cloned, using foreign object rendering"),Xr=new jc(ar,Zt),[4,Xr.render(P)]):[3,3];case 2:return yr=Ts.sent(),[3,5];case 3:return ar.logger.debug("Document cloned, element located at "+gt+","+Ct+" with size "+at+"x"+bt+" using computed rendering"),ar.logger.debug("Starting DOM parsing"),wr=ce(ar,P),Nt===wr.styles.backgroundColor&&(wr.styles.backgroundColor=vo.TRANSPARENT),ar.logger.debug("Starting renderer for element at "+Zt.x+","+Zt.y+" with size "+Zt.width+"x"+Zt.height),Xr=new vA(ar,Zt),[4,Xr.render(wr)];case 4:yr=Ts.sent(),Ts.label=5;case 5:return(!((Qs=C.removeContainer)!==null&&Qs!==void 0)||Qs)&&(rl.destroy(me)||ar.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ar.logger.debug("Finished rendering"),[2,yr]}})})},aA=function(R,C,Q){var M=C.ownerDocument,Ne=M.documentElement?so(R,getComputedStyle(M.documentElement).backgroundColor):vo.TRANSPARENT,it=M.body?so(R,getComputedStyle(M.body).backgroundColor):vo.TRANSPARENT,Lt=typeof Q=="string"?so(R,Q):Q===null?vo.TRANSPARENT:4294967295;return C===M.documentElement?Hs(Ne)?Hs(it)?Lt:it:Ne:Lt};return iA})},44164:function(yn,Wt,g){var xe=g(97671);(function(se,Me){yn.exports=Me(g(7348),g(64270))})(self,function(Fe,se){return function(){var Me={"./src/plugin/hyperlinks.js":function(I,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.string.link.js"),d=o.n(a),m=o("./src/worker.js"),S=o("./src/utils.js"),$=[],F={toContainer:m.default.prototype.toContainer,toPdf:m.default.prototype.toPdf};m.default.prototype.toContainer=function(){return F.toContainer.call(this).then(function(){if(this.opt.enableLinks){var ee=this.prop.container,B=ee.querySelectorAll("a"),G=(0,S.unitConvert)(ee.getBoundingClientRect(),this.prop.pageSize.k);$=[],Array.prototype.forEach.call(B,function(le){for(var J=le.getClientRects(),we=0;we<J.length;we++){var Ce=(0,S.unitConvert)(J[we],this.prop.pageSize.k);Ce.left-=G.left,Ce.top-=G.top;var Le=Math.floor(Ce.top/this.prop.pageSize.inner.height)+1,ae=this.opt.margin[0]+Ce.top%this.prop.pageSize.inner.height,pe=this.opt.margin[1]+Ce.left;$.push({page:Le,top:ae,left:pe,clientRect:Ce,link:le})}},this)}})},m.default.prototype.toPdf=function(){return F.toPdf.call(this).then(function(){if(this.opt.enableLinks){$.forEach(function(B){this.prop.pdf.setPage(B.page),this.prop.pdf.link(B.left,B.top,B.clientRect.width,B.clientRect.height,{url:B.link.href})},this);var ee=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(ee)}})}},"./src/plugin/jspdf-plugin.js":function(I,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.symbol.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.symbol.description.js"),d=o.n(a),m=o("./node_modules/core-js/modules/es.object.to-string.js"),S=o.n(m),$=o("./node_modules/core-js/modules/es.symbol.iterator.js"),F=o.n($),H=o("./node_modules/core-js/modules/es.array.iterator.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.string.iterator.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=o.n(G),J=o("jspdf"),we=o.n(J);function Ce(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(pe){return typeof pe}:Ce=function(pe){return pe&&typeof Symbol=="function"&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},Ce(Le)}J.jsPDF.getPageSize=function(Le,ae,pe){if(Ce(Le)==="object"){var T=Le;Le=T.orientation,ae=T.unit||ae,pe=T.format||pe}ae=ae||"mm",pe=pe||"a4",Le=(""+(Le||"P")).toLowerCase();var Ee=(""+pe).toLowerCase(),oe={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(ae){case"pt":var fe=1;break;case"mm":var fe=72/25.4;break;case"cm":var fe=72/2.54;break;case"in":var fe=72;break;case"px":var fe=72/96;break;case"pc":var fe=12;break;case"em":var fe=12;break;case"ex":var fe=6;break;default:throw"Invalid unit: "+ae}if(oe.hasOwnProperty(Ee))var ye=oe[Ee][1]/fe,_=oe[Ee][0]/fe;else try{var ye=pe[1],_=pe[0]}catch(he){throw new Error("Invalid format: "+pe)}if(Le==="p"||Le==="portrait"){if(Le="p",_>ye){var N=_;_=ye,ye=N}}else if(Le==="l"||Le==="landscape"){if(Le="l",ye>_){var N=_;_=ye,ye=N}}else throw"Invalid orientation: "+Le;var X={width:_,height:ye,unit:ae,k:fe};return X},n.default=J.jsPDF},"./src/plugin/pagebreaks.js":function(I,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.array.concat.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.array.slice.js"),d=o.n(a),m=o("./node_modules/core-js/modules/es.array.join.js"),S=o.n(m),$=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),F=o.n($),H=o("./node_modules/core-js/modules/es.object.keys.js"),V=o.n(H),ee=o("./src/worker.js"),B=o("./src/utils.js"),G={toContainer:ee.default.prototype.toContainer};ee.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},ee.default.prototype.toContainer=function(){return G.toContainer.call(this).then(function(){var we=this.prop.container,Ce=this.prop.pageSize.inner.px.height,Le=[].concat(this.opt.pagebreak.mode),ae={avoidAll:Le.indexOf("avoid-all")!==-1,css:Le.indexOf("css")!==-1,legacy:Le.indexOf("legacy")!==-1},pe={},T=this;["before","after","avoid"].forEach(function(fe){var ye=ae.avoidAll&&fe==="avoid";pe[fe]=ye?[]:[].concat(T.opt.pagebreak[fe]||[]),pe[fe].length>0&&(pe[fe]=Array.prototype.slice.call(we.querySelectorAll(pe[fe].join(", "))))});var Ee=we.querySelectorAll(".html2pdf__page-break");Ee=Array.prototype.slice.call(Ee);var oe=we.querySelectorAll("*");Array.prototype.forEach.call(oe,function(ye){var _={before:!1,after:ae.legacy&&Ee.indexOf(ye)!==-1,avoid:ae.avoidAll};if(ae.css){var N=window.getComputedStyle(ye),X=["always","page","left","right"],he=["avoid","avoid-page"];_={before:_.before||X.indexOf(N.breakBefore||N.pageBreakBefore)!==-1,after:_.after||X.indexOf(N.breakAfter||N.pageBreakAfter)!==-1,avoid:_.avoid||he.indexOf(N.breakInside||N.pageBreakInside)!==-1}}Object.keys(_).forEach(function(Jt){_[Jt]=_[Jt]||pe[Jt].indexOf(ye)!==-1});var qe=ye.getBoundingClientRect();if(_.avoid&&!_.before){var st=Math.floor(qe.top/Ce),nt=Math.floor(qe.bottom/Ce),Rt=Math.abs(qe.bottom-qe.top)/Ce;nt!==st&&Rt<=1&&(_.before=!0)}if(_.before){var sr=(0,B.createElement)("div",{style:{display:"block",height:Ce-qe.top%Ce+"px"}});ye.parentNode.insertBefore(sr,ye)}if(_.after){var sr=(0,B.createElement)("div",{style:{display:"block",height:Ce-qe.bottom%Ce+"px"}});ye.parentNode.insertBefore(sr,ye.nextSibling)}})})}},"./src/utils.js":function(I,n,o){"use strict";o.r(n),o.d(n,{objType:function(){return Le},createElement:function(){return ae},cloneNode:function(){return pe},unitConvert:function(){return T},toPx:function(){return Ee}});var L=o("./node_modules/core-js/modules/es.number.constructor.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.symbol.js"),d=o.n(a),m=o("./node_modules/core-js/modules/es.symbol.description.js"),S=o.n(m),$=o("./node_modules/core-js/modules/es.object.to-string.js"),F=o.n($),H=o("./node_modules/core-js/modules/es.symbol.iterator.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.array.iterator.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/es.string.iterator.js"),le=o.n(G),J=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),we=o.n(J);function Ce(oe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(ye){return typeof ye}:Ce=function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},Ce(oe)}var Le=function(fe){var ye=Ce(fe);return ye==="undefined"?"undefined":ye==="string"||fe instanceof String?"string":ye==="number"||fe instanceof Number?"number":ye==="function"||fe instanceof Function?"function":fe&&fe.constructor===Array?"array":fe&&fe.nodeType===1?"element":ye==="object"?"object":"unknown"},ae=function(fe,ye){var _=document.createElement(fe);if(ye.className&&(_.className=ye.className),ye.innerHTML){_.innerHTML=ye.innerHTML;for(var N=_.getElementsByTagName("script"),X=N.length;X-- >0;null)N[X].parentNode.removeChild(N[X])}for(var he in ye.style)_.style[he]=ye.style[he];return _},pe=function oe(fe,ye){for(var _=fe.nodeType===3?document.createTextNode(fe.nodeValue):fe.cloneNode(!1),N=fe.firstChild;N;N=N.nextSibling)(ye===!0||N.nodeType!==1||N.nodeName!=="SCRIPT")&&_.appendChild(oe(N,ye));return fe.nodeType===1&&(fe.nodeName==="CANVAS"?(_.width=fe.width,_.height=fe.height,_.getContext("2d").drawImage(fe,0,0)):(fe.nodeName==="TEXTAREA"||fe.nodeName==="SELECT")&&(_.value=fe.value),_.addEventListener("load",function(){_.scrollTop=fe.scrollTop,_.scrollLeft=fe.scrollLeft},!0)),_},T=function(fe,ye){if(Le(fe)==="number")return fe*72/96/ye;var _={};for(var N in fe)_[N]=fe[N]*72/96/ye;return _},Ee=function(fe,ye){return Math.floor(fe*ye/72*96)}},"./src/worker.js":function(I,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.object.assign.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.array.map.js"),d=o.n(a),m=o("./node_modules/core-js/modules/es.object.keys.js"),S=o.n(m),$=o("./node_modules/core-js/modules/es.array.concat.js"),F=o.n($),H=o("./node_modules/core-js/modules/es.object.to-string.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.regexp.to-string.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/es.function.name.js"),le=o.n(G),J=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),we=o.n(J),Ce=o("jspdf"),Le=o.n(Ce),ae=o("html2canvas"),pe=o.n(ae),T=o("./src/utils.js"),Ee=o("./node_modules/es6-promise/dist/es6-promise.js"),oe=o.n(Ee),fe=oe().Promise,ye=function _(N){var X=Object.assign(_.convert(fe.resolve()),JSON.parse(JSON.stringify(_.template))),he=_.convert(fe.resolve(),X);return he=he.setProgress(1,_,1,[_]),he=he.set(N),he};ye.prototype=Object.create(fe.prototype),ye.prototype.constructor=ye,ye.convert=function(N,X){return N.__proto__=X||ye.prototype,N},ye.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:{}}},ye.prototype.from=function(N,X){function he(qe){switch((0,T.objType)(qe)){case"string":return"string";case"element":return qe.nodeName.toLowerCase&&qe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(X=X||he(N),X){case"string":return this.set({src:(0,T.createElement)("div",{innerHTML:N})});case"element":return this.set({src:N});case"canvas":return this.set({canvas:N});case"img":return this.set({img:N});default:return this.error("Unknown source type.")}})},ye.prototype.to=function(N){switch(N){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.")}},ye.prototype.toContainer=function(){var N=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(N).then(function(){var he={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},qe={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};he.opacity=0;var st=(0,T.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,T.createElement)("div",{className:"html2pdf__overlay",style:he}),this.prop.container=(0,T.createElement)("div",{className:"html2pdf__container",style:qe}),this.prop.container.appendChild(st),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},ye.prototype.toCanvas=function(){var N=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(N).then(function(){var he=Object.assign({},this.opt.html2canvas);return delete he.onrendered,ae(this.prop.container,he)}).then(function(he){var qe=this.opt.html2canvas.onrendered||function(){};qe(he),this.prop.canvas=he,document.body.removeChild(this.prop.overlay)})},ye.prototype.toImg=function(){var N=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(N).then(function(){var he=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=he})},ye.prototype.toPdf=function(){var N=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(N).then(function(){var he=this.prop.canvas,qe=this.opt,st=he.height,nt=Math.floor(he.width*this.prop.pageSize.inner.ratio),Rt=Math.ceil(st/nt),sr=this.prop.pageSize.inner.height,Jt=document.createElement("canvas"),We=Jt.getContext("2d");Jt.width=he.width,Jt.height=nt,this.prop.pdf=this.prop.pdf||new Ce.jsPDF(qe.jsPDF);for(var Er=0;Er<Rt;Er++){Er===Rt-1&&st%nt!==0&&(Jt.height=st%nt,sr=Jt.height*this.prop.pageSize.inner.width/Jt.width);var xr=Jt.width,Wr=Jt.height;We.fillStyle="white",We.fillRect(0,0,xr,Wr),We.drawImage(he,0,Er*nt,xr,Wr,0,0,xr,Wr),Er&&this.prop.pdf.addPage();var Cr=Jt.toDataURL("image/"+qe.image.type,qe.image.quality);this.prop.pdf.addImage(Cr,qe.image.type,qe.margin[1],qe.margin[0],this.prop.pageSize.inner.width,sr)}})},ye.prototype.output=function(N,X,he){return he=he||"pdf",he.toLowerCase()==="img"||he.toLowerCase()==="image"?this.outputImg(N,X):this.outputPdf(N,X)},ye.prototype.outputPdf=function(N,X){var he=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(he).then(function(){return this.prop.pdf.output(N,X)})},ye.prototype.outputImg=function(N,X){var he=[function(){return this.prop.img||this.toImg()}];return this.thenList(he).then(function(){switch(N){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 "'+N+'" is not supported.'}})},ye.prototype.save=function(N){var X=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(X).set(N?{filename:N}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ye.prototype.set=function(N){if((0,T.objType)(N)!=="object")return this;var X=Object.keys(N||{}).map(function(he){switch(he){case"margin":return this.setMargin.bind(this,N.margin);case"jsPDF":return function(){return this.opt.jsPDF=N.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,N.pageSize);default:return he in ye.template.prop?function(){this.prop[he]=N[he]}:function(){this.opt[he]=N[he]}}},this);return this.then(function(){return this.thenList(X)})},ye.prototype.get=function(N,X){return this.then(function(){var qe=N in ye.template.prop?this.prop[N]:this.opt[N];return X?X(qe):qe})},ye.prototype.setMargin=function(N){return this.then(function(){switch((0,T.objType)(N)){case"number":N=[N,N,N,N];case"array":if(N.length===2&&(N=[N[0],N[1],N[0],N[1]]),N.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=N}).then(this.setPageSize)},ye.prototype.setPageSize=function(N){return this.then(function(){N=N||Ce.jsPDF.getPageSize(this.opt.jsPDF),N.hasOwnProperty("inner")||(N.inner={width:N.width-this.opt.margin[1]-this.opt.margin[3],height:N.height-this.opt.margin[0]-this.opt.margin[2]},N.inner.px={width:(0,T.toPx)(N.inner.width,N.k),height:(0,T.toPx)(N.inner.height,N.k)},N.inner.ratio=N.inner.height/N.inner.width),this.prop.pageSize=N})},ye.prototype.setProgress=function(N,X,he,qe){return N!=null&&(this.progress.val=N),X!=null&&(this.progress.state=X),he!=null&&(this.progress.n=he),qe!=null&&(this.progress.stack=qe),this.progress.ratio=this.progress.val/this.progress.state,this},ye.prototype.updateProgress=function(N,X,he,qe){return this.setProgress(N?this.progress.val+N:null,X||null,he?this.progress.n+he:null,qe?this.progress.stack.concat(qe):null)},ye.prototype.then=function(N,X){var he=this;return this.thenCore(N,X,function(st,nt){return he.updateProgress(null,null,1,[st]),fe.prototype.then.call(this,function(sr){return he.updateProgress(null,st),sr}).then(st,nt).then(function(sr){return he.updateProgress(1),sr})})},ye.prototype.thenCore=function(N,X,he){he=he||fe.prototype.then;var qe=this;N&&(N=N.bind(qe)),X&&(X=X.bind(qe));var st=fe.toString().indexOf("[native code]")!==-1&&fe.name==="Promise",nt=st?qe:ye.convert(Object.assign({},qe),fe.prototype),Rt=he.call(nt,N,X);return ye.convert(Rt,qe.__proto__)},ye.prototype.thenExternal=function(N,X){return fe.prototype.then.call(this,N,X)},ye.prototype.thenList=function(N){var X=this;return N.forEach(function(qe){X=X.thenCore(qe)}),X},ye.prototype.catch=function(_){_&&(_=_.bind(this));var N=fe.prototype.catch.call(this,_);return ye.convert(N,this)},ye.prototype.catchExternal=function(N){return fe.prototype.catch.call(this,N)},ye.prototype.error=function(N){return this.then(function(){throw new Error(N)})},ye.prototype.using=ye.prototype.set,ye.prototype.saveAs=ye.prototype.save,ye.prototype.export=ye.prototype.output,ye.prototype.run=ye.prototype.then,n.default=ye},"./node_modules/core-js/internals/a-function.js":function(I){I.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}},"./node_modules/core-js/internals/a-possible-prototype.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js");I.exports=function(p){if(!L(p)&&p!==null)throw TypeError("Can't set "+String(p)+" as a prototype");return p}},"./node_modules/core-js/internals/add-to-unscopables.js":function(I,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js"),p=o("./node_modules/core-js/internals/object-create.js"),a=o("./node_modules/core-js/internals/object-define-property.js"),d=L("unscopables"),m=Array.prototype;m[d]==null&&a.f(m,d,{configurable:!0,value:p(null)}),I.exports=function(S){m[d][S]=!0}},"./node_modules/core-js/internals/an-object.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js");I.exports=function(p){if(!L(p))throw TypeError(String(p)+" is not an object");return p}},"./node_modules/core-js/internals/array-for-each.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/array-iteration.js").forEach,p=o("./node_modules/core-js/internals/array-method-is-strict.js"),a=p("forEach");I.exports=a?[].forEach:function(m){return L(this,m,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/to-length.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js"),d=function(m){return function(S,$,F){var H=L(S),V=p(H.length),ee=a(F,V),B;if(m&&$!=$){for(;V>ee;)if(B=H[ee++],B!=B)return!0}else for(;V>ee;ee++)if((m||ee in H)&&H[ee]===$)return m||ee||0;return!m&&-1}};I.exports={includes:d(!0),indexOf:d(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(I,n,o){var L=o("./node_modules/core-js/internals/function-bind-context.js"),p=o("./node_modules/core-js/internals/indexed-object.js"),a=o("./node_modules/core-js/internals/to-object.js"),d=o("./node_modules/core-js/internals/to-length.js"),m=o("./node_modules/core-js/internals/array-species-create.js"),S=[].push,$=function(F){var H=F==1,V=F==2,ee=F==3,B=F==4,G=F==6,le=F==7,J=F==5||G;return function(we,Ce,Le,ae){for(var pe=a(we),T=p(pe),Ee=L(Ce,Le,3),oe=d(T.length),fe=0,ye=ae||m,_=H?ye(we,oe):V||le?ye(we,0):void 0,N,X;oe>fe;fe++)if((J||fe in T)&&(N=T[fe],X=Ee(N,fe,pe),F))if(H)_[fe]=X;else if(X)switch(F){case 3:return!0;case 5:return N;case 6:return fe;case 2:S.call(_,N)}else switch(F){case 4:return!1;case 7:S.call(_,N)}return G?-1:ee||B?B:_}};I.exports={forEach:$(0),map:$(1),filter:$(2),some:$(3),every:$(4),find:$(5),findIndex:$(6),filterReject:$(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/well-known-symbol.js"),a=o("./node_modules/core-js/internals/engine-v8-version.js"),d=p("species");I.exports=function(m){return a>=51||!L(function(){var S=[],$=S.constructor={};return $[d]=function(){return{foo:1}},S[m](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/fails.js");I.exports=function(p,a){var d=[][p];return!!d&&L(function(){d.call(null,a||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/is-array.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),d=a("species");I.exports=function(m){var S;return p(m)&&(S=m.constructor,typeof S=="function"&&(S===Array||p(S.prototype))?S=void 0:L(S)&&(S=S[d],S===null&&(S=void 0))),S===void 0?Array:S}},"./node_modules/core-js/internals/array-species-create.js":function(I,n,o){var L=o("./node_modules/core-js/internals/array-species-constructor.js");I.exports=function(p,a){return new(L(p))(a===0?0:a)}},"./node_modules/core-js/internals/classof-raw.js":function(I){var n={}.toString;I.exports=function(o){return n.call(o).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/classof-raw.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),d=a("toStringTag"),m=p(function(){return arguments}())=="Arguments",S=function($,F){try{return $[F]}catch(H){}};I.exports=L?p:function($){var F,H,V;return $===void 0?"Undefined":$===null?"Null":typeof(H=S(F=Object($),d))=="string"?H:m?p(F):(V=p(F))=="Object"&&typeof F.callee=="function"?"Arguments":V}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(I,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/own-keys.js"),a=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),d=o("./node_modules/core-js/internals/object-define-property.js");I.exports=function(m,S){for(var $=p(S),F=d.f,H=a.f,V=0;V<$.length;V++){var ee=$[V];L(m,ee)||F(m,ee,H(S,ee))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js");I.exports=!L(function(){function p(){}return p.prototype.constructor=null,Object.getPrototypeOf(new p)!==p.prototype})},"./node_modules/core-js/internals/create-html.js":function(I,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=/"/g;I.exports=function(d,m,S,$){var F=p(L(d)),H="<"+m;return S!==""&&(H+=" "+S+'="'+p($).replace(a,""")+'"'),H+">"+F+"</"+m+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,p=o("./node_modules/core-js/internals/object-create.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),d=o("./node_modules/core-js/internals/set-to-string-tag.js"),m=o("./node_modules/core-js/internals/iterators.js"),S=function(){return this};I.exports=function($,F,H){var V=F+" Iterator";return $.prototype=p(L,{next:a(1,H)}),d($,V,!1,!0),m[V]=S,$}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js");I.exports=L?function(d,m,S){return p.f(d,m,a(1,S))}:function(d,m,S){return d[m]=S,d}},"./node_modules/core-js/internals/create-property-descriptor.js":function(I){I.exports=function(n,o){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:o}}},"./node_modules/core-js/internals/create-property.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-property-key.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js");I.exports=function(d,m,S){var $=L(m);$ in d?p.f(d,$,a(0,S)):d[$]=S}},"./node_modules/core-js/internals/define-iterator.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/create-iterator-constructor.js"),a=o("./node_modules/core-js/internals/object-get-prototype-of.js"),d=o("./node_modules/core-js/internals/object-set-prototype-of.js"),m=o("./node_modules/core-js/internals/set-to-string-tag.js"),S=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),$=o("./node_modules/core-js/internals/redefine.js"),F=o("./node_modules/core-js/internals/well-known-symbol.js"),H=o("./node_modules/core-js/internals/is-pure.js"),V=o("./node_modules/core-js/internals/iterators.js"),ee=o("./node_modules/core-js/internals/iterators-core.js"),B=ee.IteratorPrototype,G=ee.BUGGY_SAFARI_ITERATORS,le=F("iterator"),J="keys",we="values",Ce="entries",Le=function(){return this};I.exports=function(ae,pe,T,Ee,oe,fe,ye){p(T,pe,Ee);var _=function(We){if(We===oe&&st)return st;if(!G&&We in he)return he[We];switch(We){case J:return function(){return new T(this,We)};case we:return function(){return new T(this,We)};case Ce:return function(){return new T(this,We)}}return function(){return new T(this)}},N=pe+" Iterator",X=!1,he=ae.prototype,qe=he[le]||he["@@iterator"]||oe&&he[oe],st=!G&&qe||_(oe),nt=pe=="Array"&&he.entries||qe,Rt,sr,Jt;if(nt&&(Rt=a(nt.call(new ae)),B!==Object.prototype&&Rt.next&&(!H&&a(Rt)!==B&&(d?d(Rt,B):typeof Rt[le]!="function"&&S(Rt,le,Le)),m(Rt,N,!0,!0),H&&(V[N]=Le))),oe==we&&qe&&qe.name!==we&&(X=!0,st=function(){return qe.call(this)}),(!H||ye)&&he[le]!==st&&S(he,le,st),V[pe]=st,oe)if(sr={values:_(we),keys:fe?st:_(J),entries:_(Ce)},ye)for(Jt in sr)(G||X||!(Jt in he))&&$(he,Jt,sr[Jt]);else L({target:pe,proto:!0,forced:G||X},sr);return sr}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(I,n,o){var L=o("./node_modules/core-js/internals/path.js"),p=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),d=o("./node_modules/core-js/internals/object-define-property.js").f;I.exports=function(m){var S=L.Symbol||(L.Symbol={});p(S,m)||d(S,m,{value:a.f(m)})}},"./node_modules/core-js/internals/descriptors.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js");I.exports=!L(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/is-object.js"),a=L.document,d=p(a)&&p(a.createElement);I.exports=function(m){return d?a.createElement(m):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(I){I.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(I,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js");I.exports=L("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/engine-user-agent.js"),a=L.process,d=L.Deno,m=a&&a.versions||d&&d.version,S=m&&m.v8,$,F;S?($=S.split("."),F=$[0]<4?1:$[0]+$[1]):p&&($=p.match(/Edge\/(\d+)/),(!$||$[1]>=74)&&($=p.match(/Chrome\/(\d+)/),$&&(F=$[1]))),I.exports=F&&+F},"./node_modules/core-js/internals/enum-bug-keys.js":function(I){I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),d=o("./node_modules/core-js/internals/redefine.js"),m=o("./node_modules/core-js/internals/set-global.js"),S=o("./node_modules/core-js/internals/copy-constructor-properties.js"),$=o("./node_modules/core-js/internals/is-forced.js");I.exports=function(F,H){var V=F.target,ee=F.global,B=F.stat,G,le,J,we,Ce,Le;if(ee?le=L:B?le=L[V]||m(V,{}):le=(L[V]||{}).prototype,le)for(J in H){if(Ce=H[J],F.noTargetGet?(Le=p(le,J),we=Le&&Le.value):we=le[J],G=$(ee?J:V+(B?".":"#")+J,F.forced),!G&&we!==void 0){if(typeof Ce==typeof we)continue;S(Ce,we)}(F.sham||we&&we.sham)&&a(Ce,"sham",!0),d(le,J,Ce,F)}}},"./node_modules/core-js/internals/fails.js":function(I){I.exports=function(n){try{return!!n()}catch(o){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(I,n,o){var L=o("./node_modules/core-js/internals/a-function.js");I.exports=function(p,a,d){if(L(p),a===void 0)return p;switch(d){case 0:return function(){return p.call(a)};case 1:return function(m){return p.call(a,m)};case 2:return function(m,S){return p.call(a,m,S)};case 3:return function(m,S,$){return p.call(a,m,S,$)}}return function(){return p.apply(a,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=function(a){return typeof a=="function"?a:void 0};I.exports=function(a,d){return arguments.length<2?p(L[a]):L[a]&&L[a][d]}},"./node_modules/core-js/internals/global.js":function(I){var n=function(o){return o&&o.Math==Math&&o};I.exports=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof g.g=="object"&&g.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-object.js"),p={}.hasOwnProperty;I.exports=Object.hasOwn||function(d,m){return p.call(L(d),m)}},"./node_modules/core-js/internals/hidden-keys.js":function(I){I.exports={}},"./node_modules/core-js/internals/html.js":function(I,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js");I.exports=L("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/document-create-element.js");I.exports=!L&&!p(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/classof-raw.js"),a="".split;I.exports=L(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return p(d)=="String"?a.call(d,""):Object(d)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/object-set-prototype-of.js");I.exports=function(a,d,m){var S,$;return p&&typeof(S=d.constructor)=="function"&&S!==m&&L($=S.prototype)&&$!==m.prototype&&p(a,$),a}},"./node_modules/core-js/internals/inspect-source.js":function(I,n,o){var L=o("./node_modules/core-js/internals/shared-store.js"),p=Function.toString;typeof L.inspectSource!="function"&&(L.inspectSource=function(a){return p.call(a)}),I.exports=L.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(I,n,o){var L=o("./node_modules/core-js/internals/native-weak-map.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/is-object.js"),d=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),m=o("./node_modules/core-js/internals/has.js"),S=o("./node_modules/core-js/internals/shared-store.js"),$=o("./node_modules/core-js/internals/shared-key.js"),F=o("./node_modules/core-js/internals/hidden-keys.js"),H="Object already initialized",V=p.WeakMap,ee,B,G,le=function(T){return G(T)?B(T):ee(T,{})},J=function(T){return function(Ee){var oe;if(!a(Ee)||(oe=B(Ee)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return oe}};if(L||S.state){var we=S.state||(S.state=new V),Ce=we.get,Le=we.has,ae=we.set;ee=function(T,Ee){if(Le.call(we,T))throw new TypeError(H);return Ee.facade=T,ae.call(we,T,Ee),Ee},B=function(T){return Ce.call(we,T)||{}},G=function(T){return Le.call(we,T)}}else{var pe=$("state");F[pe]=!0,ee=function(T,Ee){if(m(T,pe))throw new TypeError(H);return Ee.facade=T,d(T,pe,Ee),Ee},B=function(T){return m(T,pe)?T[pe]:{}},G=function(T){return m(T,pe)}}I.exports={set:ee,get:B,has:G,enforce:le,getterFor:J}},"./node_modules/core-js/internals/is-array.js":function(I,n,o){var L=o("./node_modules/core-js/internals/classof-raw.js");I.exports=Array.isArray||function(a){return L(a)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=/#|\.prototype\./,a=function(F,H){var V=m[d(F)];return V==$?!0:V==S?!1:typeof H=="function"?L(H):!!H},d=a.normalize=function(F){return String(F).replace(p,".").toLowerCase()},m=a.data={},S=a.NATIVE="N",$=a.POLYFILL="P";I.exports=a},"./node_modules/core-js/internals/is-object.js":function(I){I.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}},"./node_modules/core-js/internals/is-pure.js":function(I){I.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(I,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js"),p=o("./node_modules/core-js/internals/use-symbol-as-uid.js");I.exports=p?function(a){return typeof a=="symbol"}:function(a){var d=L("Symbol");return typeof d=="function"&&Object(a)instanceof d}},"./node_modules/core-js/internals/iterators-core.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/object-get-prototype-of.js"),a=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),d=o("./node_modules/core-js/internals/has.js"),m=o("./node_modules/core-js/internals/well-known-symbol.js"),S=o("./node_modules/core-js/internals/is-pure.js"),$=m("iterator"),F=!1,H=function(){return this},V,ee,B;[].keys&&(B=[].keys(),"next"in B?(ee=p(p(B)),ee!==Object.prototype&&(V=ee)):F=!0);var G=V==null||L(function(){var le={};return V[$].call(le)!==le});G&&(V={}),(!S||G)&&!d(V,$)&&a(V,$,H),I.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:F}},"./node_modules/core-js/internals/iterators.js":function(I){I.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(I,n,o){var L=o("./node_modules/core-js/internals/engine-v8-version.js"),p=o("./node_modules/core-js/internals/fails.js");I.exports=!!Object.getOwnPropertySymbols&&!p(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&L&&L<41})},"./node_modules/core-js/internals/native-weak-map.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/inspect-source.js"),a=L.WeakMap;I.exports=typeof a=="function"&&/native code/.test(p(a))},"./node_modules/core-js/internals/object-assign.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/object-keys.js"),d=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),m=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),S=o("./node_modules/core-js/internals/to-object.js"),$=o("./node_modules/core-js/internals/indexed-object.js"),F=Object.assign,H=Object.defineProperty;I.exports=!F||p(function(){if(L&&F({b:1},F(H({},"a",{enumerable:!0,get:function(){H(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var V={},ee={},B=Symbol(),G="abcdefghijklmnopqrst";return V[B]=7,G.split("").forEach(function(le){ee[le]=le}),F({},V)[B]!=7||a(F({},ee)).join("")!=G})?function(ee,B){for(var G=S(ee),le=arguments.length,J=1,we=d.f,Ce=m.f;le>J;)for(var Le=$(arguments[J++]),ae=we?a(Le).concat(we(Le)):a(Le),pe=ae.length,T=0,Ee;pe>T;)Ee=ae[T++],(!L||Ce.call(Le,Ee))&&(G[Ee]=Le[Ee]);return G}:F},"./node_modules/core-js/internals/object-create.js":function(I,n,o){var L=o("./node_modules/core-js/internals/an-object.js"),p=o("./node_modules/core-js/internals/object-define-properties.js"),a=o("./node_modules/core-js/internals/enum-bug-keys.js"),d=o("./node_modules/core-js/internals/hidden-keys.js"),m=o("./node_modules/core-js/internals/html.js"),S=o("./node_modules/core-js/internals/document-create-element.js"),$=o("./node_modules/core-js/internals/shared-key.js"),F=">",H="<",V="prototype",ee="script",B=$("IE_PROTO"),G=function(){},le=function(ae){return H+ee+F+ae+H+"/"+ee+F},J=function(ae){ae.write(le("")),ae.close();var pe=ae.parentWindow.Object;return ae=null,pe},we=function(){var ae=S("iframe"),pe="java"+ee+":",T;if(ae.style)return ae.style.display="none",m.appendChild(ae),ae.src=String(pe),T=ae.contentWindow.document,T.open(),T.write(le("document.F=Object")),T.close(),T.F},Ce,Le=function(){try{Ce=new ActiveXObject("htmlfile")}catch(pe){}Le=document.domain&&Ce?J(Ce):we()||J(Ce);for(var ae=a.length;ae--;)delete Le[V][a[ae]];return Le()};d[B]=!0,I.exports=Object.create||function(pe,T){var Ee;return pe!==null?(G[V]=L(pe),Ee=new G,G[V]=null,Ee[B]=pe):Ee=Le(),T===void 0?Ee:p(Ee,T)}},"./node_modules/core-js/internals/object-define-properties.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/an-object.js"),d=o("./node_modules/core-js/internals/object-keys.js");I.exports=L?Object.defineProperties:function(S,$){a(S);for(var F=d($),H=F.length,V=0,ee;H>V;)p.f(S,ee=F[V++],$[ee]);return S}},"./node_modules/core-js/internals/object-define-property.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/ie8-dom-define.js"),a=o("./node_modules/core-js/internals/an-object.js"),d=o("./node_modules/core-js/internals/to-property-key.js"),m=Object.defineProperty;n.f=L?m:function($,F,H){if(a($),F=d(F),a(H),p)try{return m($,F,H)}catch(V){}if("get"in H||"set"in H)throw TypeError("Accessors not supported");return"value"in H&&($[F]=H.value),$}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),d=o("./node_modules/core-js/internals/to-indexed-object.js"),m=o("./node_modules/core-js/internals/to-property-key.js"),S=o("./node_modules/core-js/internals/has.js"),$=o("./node_modules/core-js/internals/ie8-dom-define.js"),F=Object.getOwnPropertyDescriptor;n.f=L?F:function(V,ee){if(V=d(V),ee=m(ee),$)try{return F(V,ee)}catch(B){}if(S(V,ee))return a(!p.f.call(V,ee),V[ee])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,a={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(S){try{return p(S)}catch($){return d.slice()}};I.exports.f=function($){return d&&a.call($)=="[object Window]"?m($):p(L($))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(I,n,o){var L=o("./node_modules/core-js/internals/object-keys-internal.js"),p=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=p.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(m){return L(m,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(I,n){n.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(I,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/shared-key.js"),d=o("./node_modules/core-js/internals/correct-prototype-getter.js"),m=a("IE_PROTO"),S=Object.prototype;I.exports=d?Object.getPrototypeOf:function($){return $=p($),L($,m)?$[m]:typeof $.constructor=="function"&&$ instanceof $.constructor?$.constructor.prototype:$ instanceof Object?S:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(I,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/array-includes.js").indexOf,d=o("./node_modules/core-js/internals/hidden-keys.js");I.exports=function(m,S){var $=p(m),F=0,H=[],V;for(V in $)!L(d,V)&&L($,V)&&H.push(V);for(;S.length>F;)L($,V=S[F++])&&(~a(H,V)||H.push(V));return H}},"./node_modules/core-js/internals/object-keys.js":function(I,n,o){var L=o("./node_modules/core-js/internals/object-keys-internal.js"),p=o("./node_modules/core-js/internals/enum-bug-keys.js");I.exports=Object.keys||function(d){return L(d,p)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(I,n){"use strict";var o={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,p=L&&!o.call({1:2},1);n.f=p?function(d){var m=L(this,d);return!!m&&m.enumerable}:o},"./node_modules/core-js/internals/object-set-prototype-of.js":function(I,n,o){var L=o("./node_modules/core-js/internals/an-object.js"),p=o("./node_modules/core-js/internals/a-possible-prototype.js");I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,d={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(d,[]),a=d instanceof Array}catch(S){}return function($,F){return L($),p(F),a?m.call($,F):$.__proto__=F,$}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/classof.js");I.exports=L?{}.toString:function(){return"[object "+p(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js");I.exports=function(p,a){var d,m;if(a==="string"&&typeof(d=p.toString)=="function"&&!L(m=d.call(p))||typeof(d=p.valueOf)=="function"&&!L(m=d.call(p))||a!=="string"&&typeof(d=p.toString)=="function"&&!L(m=d.call(p)))return m;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(I,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js"),p=o("./node_modules/core-js/internals/object-get-own-property-names.js"),a=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),d=o("./node_modules/core-js/internals/an-object.js");I.exports=L("Reflect","ownKeys")||function(S){var $=p.f(d(S)),F=a.f;return F?$.concat(F(S)):$}},"./node_modules/core-js/internals/path.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js");I.exports=L},"./node_modules/core-js/internals/redefine.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=o("./node_modules/core-js/internals/has.js"),d=o("./node_modules/core-js/internals/set-global.js"),m=o("./node_modules/core-js/internals/inspect-source.js"),S=o("./node_modules/core-js/internals/internal-state.js"),$=S.get,F=S.enforce,H=String(String).split("String");(I.exports=function(V,ee,B,G){var le=G?!!G.unsafe:!1,J=G?!!G.enumerable:!1,we=G?!!G.noTargetGet:!1,Ce;if(typeof B=="function"&&(typeof ee=="string"&&!a(B,"name")&&p(B,"name",ee),Ce=F(B),Ce.source||(Ce.source=H.join(typeof ee=="string"?ee:""))),V===L){J?V[ee]=B:d(ee,B);return}else le?!we&&V[ee]&&(J=!0):delete V[ee];J?V[ee]=B:p(V,ee,B)})(Function.prototype,"toString",function(){return typeof this=="function"&&$(this).source||m(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/an-object.js");I.exports=function(){var p=L(this),a="";return p.global&&(a+="g"),p.ignoreCase&&(a+="i"),p.multiline&&(a+="m"),p.dotAll&&(a+="s"),p.unicode&&(a+="u"),p.sticky&&(a+="y"),a}},"./node_modules/core-js/internals/require-object-coercible.js":function(I){I.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},"./node_modules/core-js/internals/set-global.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js");I.exports=function(p,a){try{Object.defineProperty(L,p,{value:a,configurable:!0,writable:!0})}catch(d){L[p]=a}return a}},"./node_modules/core-js/internals/set-to-string-tag.js":function(I,n,o){var L=o("./node_modules/core-js/internals/object-define-property.js").f,p=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),d=a("toStringTag");I.exports=function(m,S,$){m&&!p(m=$?m:m.prototype,d)&&L(m,d,{configurable:!0,value:S})}},"./node_modules/core-js/internals/shared-key.js":function(I,n,o){var L=o("./node_modules/core-js/internals/shared.js"),p=o("./node_modules/core-js/internals/uid.js"),a=L("keys");I.exports=function(d){return a[d]||(a[d]=p(d))}},"./node_modules/core-js/internals/shared-store.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/set-global.js"),a="__core-js_shared__",d=L[a]||p(a,{});I.exports=d},"./node_modules/core-js/internals/shared.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-pure.js"),p=o("./node_modules/core-js/internals/shared-store.js");(I.exports=function(a,d){return p[a]||(p[a]=d!==void 0?d:{})})("versions",[]).push({version:"3.16.0",mode:L?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(I,n,o){var L=o("./node_modules/core-js/internals/fails.js");I.exports=function(p){return L(function(){var a=""[p]('"');return a!==a.toLowerCase()||a.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/require-object-coercible.js"),d=function(m){return function(S,$){var F=p(a(S)),H=L($),V=F.length,ee,B;return H<0||H>=V?m?"":void 0:(ee=F.charCodeAt(H),ee<55296||ee>56319||H+1===V||(B=F.charCodeAt(H+1))<56320||B>57343?m?F.charAt(H):ee:m?F.slice(H,H+2):(ee-55296<<10)+(B-56320)+65536)}};I.exports={codeAt:d(!1),charAt:d(!0)}},"./node_modules/core-js/internals/string-trim.js":function(I,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/whitespaces.js"),d="["+a+"]",m=RegExp("^"+d+d+"*"),S=RegExp(d+d+"*$"),$=function(F){return function(H){var V=p(L(H));return F&1&&(V=V.replace(m,"")),F&2&&(V=V.replace(S,"")),V}};I.exports={start:$(1),end:$(2),trim:$(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=Math.max,a=Math.min;I.exports=function(d,m){var S=L(d);return S<0?p(S+m,0):a(S,m)}},"./node_modules/core-js/internals/to-indexed-object.js":function(I,n,o){var L=o("./node_modules/core-js/internals/indexed-object.js"),p=o("./node_modules/core-js/internals/require-object-coercible.js");I.exports=function(a){return L(p(a))}},"./node_modules/core-js/internals/to-integer.js":function(I){var n=Math.ceil,o=Math.floor;I.exports=function(L){return isNaN(L=+L)?0:(L>0?o:n)(L)}},"./node_modules/core-js/internals/to-length.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=Math.min;I.exports=function(a){return a>0?p(L(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(I,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js");I.exports=function(p){return Object(L(p))}},"./node_modules/core-js/internals/to-primitive.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/is-symbol.js"),a=o("./node_modules/core-js/internals/ordinary-to-primitive.js"),d=o("./node_modules/core-js/internals/well-known-symbol.js"),m=d("toPrimitive");I.exports=function(S,$){if(!L(S)||p(S))return S;var F=S[m],H;if(F!==void 0){if($===void 0&&($="default"),H=F.call(S,$),!L(H)||p(H))return H;throw TypeError("Can't convert object to primitive value")}return $===void 0&&($="number"),a(S,$)}},"./node_modules/core-js/internals/to-property-key.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-primitive.js"),p=o("./node_modules/core-js/internals/is-symbol.js");I.exports=function(a){var d=L(a,"string");return p(d)?d:String(d)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(I,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js"),p=L("toStringTag"),a={};a[p]="z",I.exports=String(a)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(I,n,o){var L=o("./node_modules/core-js/internals/is-symbol.js");I.exports=function(p){if(L(p))throw TypeError("Cannot convert a Symbol value to a string");return String(p)}},"./node_modules/core-js/internals/uid.js":function(I){var n=0,o=Math.random();I.exports=function(L){return"Symbol("+String(L===void 0?"":L)+")_"+(++n+o).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(I,n,o){var L=o("./node_modules/core-js/internals/native-symbol.js");I.exports=L&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(I,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js");n.f=L},"./node_modules/core-js/internals/well-known-symbol.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/has.js"),d=o("./node_modules/core-js/internals/uid.js"),m=o("./node_modules/core-js/internals/native-symbol.js"),S=o("./node_modules/core-js/internals/use-symbol-as-uid.js"),$=p("wks"),F=L.Symbol,H=S?F:F&&F.withoutSetter||d;I.exports=function(V){return(!a($,V)||!(m||typeof $[V]=="string"))&&(m&&a(F,V)?$[V]=F[V]:$[V]=H("Symbol."+V)),$[V]}},"./node_modules/core-js/internals/whitespaces.js":function(I){I.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(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/is-array.js"),d=o("./node_modules/core-js/internals/is-object.js"),m=o("./node_modules/core-js/internals/to-object.js"),S=o("./node_modules/core-js/internals/to-length.js"),$=o("./node_modules/core-js/internals/create-property.js"),F=o("./node_modules/core-js/internals/array-species-create.js"),H=o("./node_modules/core-js/internals/array-method-has-species-support.js"),V=o("./node_modules/core-js/internals/well-known-symbol.js"),ee=o("./node_modules/core-js/internals/engine-v8-version.js"),B=V("isConcatSpreadable"),G=9007199254740991,le="Maximum allowed index exceeded",J=ee>=51||!p(function(){var ae=[];return ae[B]=!1,ae.concat()[0]!==ae}),we=H("concat"),Ce=function(ae){if(!d(ae))return!1;var pe=ae[B];return pe!==void 0?!!pe:a(ae)},Le=!J||!we;L({target:"Array",proto:!0,forced:Le},{concat:function(pe){var T=m(this),Ee=F(T,0),oe=0,fe,ye,_,N,X;for(fe=-1,_=arguments.length;fe<_;fe++)if(X=fe===-1?T:arguments[fe],Ce(X)){if(N=S(X.length),oe+N>G)throw TypeError(le);for(ye=0;ye<N;ye++,oe++)ye in X&&$(Ee,oe,X[ye])}else{if(oe>=G)throw TypeError(le);$(Ee,oe++,X)}return Ee.length=oe,Ee}})},"./node_modules/core-js/modules/es.array.iterator.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/add-to-unscopables.js"),a=o("./node_modules/core-js/internals/iterators.js"),d=o("./node_modules/core-js/internals/internal-state.js"),m=o("./node_modules/core-js/internals/define-iterator.js"),S="Array Iterator",$=d.set,F=d.getterFor(S);I.exports=m(Array,"Array",function(H,V){$(this,{type:S,target:L(H),index:0,kind:V})},function(){var H=F(this),V=H.target,ee=H.kind,B=H.index++;return!V||B>=V.length?(H.target=void 0,{value:void 0,done:!0}):ee=="keys"?{value:B,done:!1}:ee=="values"?{value:V[B],done:!1}:{value:[B,V[B]],done:!1}},"values"),a.Arguments=a.Array,p("keys"),p("values"),p("entries")},"./node_modules/core-js/modules/es.array.join.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/indexed-object.js"),a=o("./node_modules/core-js/internals/to-indexed-object.js"),d=o("./node_modules/core-js/internals/array-method-is-strict.js"),m=[].join,S=p!=Object,$=d("join",",");L({target:"Array",proto:!0,forced:S||!$},{join:function(H){return m.call(a(this),H===void 0?",":H)}})},"./node_modules/core-js/modules/es.array.map.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/array-iteration.js").map,a=o("./node_modules/core-js/internals/array-method-has-species-support.js"),d=a("map");L({target:"Array",proto:!0,forced:!d},{map:function(S){return p(this,S,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/is-object.js"),a=o("./node_modules/core-js/internals/is-array.js"),d=o("./node_modules/core-js/internals/to-absolute-index.js"),m=o("./node_modules/core-js/internals/to-length.js"),S=o("./node_modules/core-js/internals/to-indexed-object.js"),$=o("./node_modules/core-js/internals/create-property.js"),F=o("./node_modules/core-js/internals/well-known-symbol.js"),H=o("./node_modules/core-js/internals/array-method-has-species-support.js"),V=H("slice"),ee=F("species"),B=[].slice,G=Math.max;L({target:"Array",proto:!0,forced:!V},{slice:function(J,we){var Ce=S(this),Le=m(Ce.length),ae=d(J,Le),pe=d(we===void 0?Le:we,Le),T,Ee,oe;if(a(Ce)&&(T=Ce.constructor,typeof T=="function"&&(T===Array||a(T.prototype))?T=void 0:p(T)&&(T=T[ee],T===null&&(T=void 0)),T===Array||T===void 0))return B.call(Ce,ae,pe);for(Ee=new(T===void 0?Array:T)(G(pe-ae,0)),oe=0;ae<pe;ae++,oe++)ae in Ce&&$(Ee,oe,Ce[ae]);return Ee.length=oe,Ee}})},"./node_modules/core-js/modules/es.function.name.js":function(I,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js").f,a=Function.prototype,d=a.toString,m=/^\s*function ([^ (]*)/,S="name";L&&!(S in a)&&p(a,S,{configurable:!0,get:function(){try{return d.call(this).match(m)[1]}catch($){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/is-forced.js"),d=o("./node_modules/core-js/internals/redefine.js"),m=o("./node_modules/core-js/internals/has.js"),S=o("./node_modules/core-js/internals/classof-raw.js"),$=o("./node_modules/core-js/internals/inherit-if-required.js"),F=o("./node_modules/core-js/internals/is-symbol.js"),H=o("./node_modules/core-js/internals/to-primitive.js"),V=o("./node_modules/core-js/internals/fails.js"),ee=o("./node_modules/core-js/internals/object-create.js"),B=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,G=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,le=o("./node_modules/core-js/internals/object-define-property.js").f,J=o("./node_modules/core-js/internals/string-trim.js").trim,we="Number",Ce=p[we],Le=Ce.prototype,ae=S(ee(Le))==we,pe=function(ye){if(F(ye))throw TypeError("Cannot convert a Symbol value to a number");var _=H(ye,"number"),N,X,he,qe,st,nt,Rt,sr;if(typeof _=="string"&&_.length>2){if(_=J(_),N=_.charCodeAt(0),N===43||N===45){if(X=_.charCodeAt(2),X===88||X===120)return NaN}else if(N===48){switch(_.charCodeAt(1)){case 66:case 98:he=2,qe=49;break;case 79:case 111:he=8,qe=55;break;default:return+_}for(st=_.slice(2),nt=st.length,Rt=0;Rt<nt;Rt++)if(sr=st.charCodeAt(Rt),sr<48||sr>qe)return NaN;return parseInt(st,he)}}return+_};if(a(we,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var T=function(_){var N=arguments.length<1?0:_,X=this;return X instanceof T&&(ae?V(function(){Le.valueOf.call(X)}):S(X)!=we)?$(new Ce(pe(N)),X,T):pe(N)},Ee=L?B(Ce):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),oe=0,fe;Ee.length>oe;oe++)m(Ce,fe=Ee[oe])&&!m(T,fe)&&le(T,fe,G(Ce,fe));T.prototype=Le,Le.constructor=T,d(p,we,T)}},"./node_modules/core-js/modules/es.object.assign.js":function(I,n,o){var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/object-assign.js");L({target:"Object",stat:!0,forced:Object.assign!==p},{assign:p})},"./node_modules/core-js/modules/es.object.keys.js":function(I,n,o){var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/object-keys.js"),d=o("./node_modules/core-js/internals/fails.js"),m=d(function(){a(1)});L({target:"Object",stat:!0,forced:m},{keys:function($){return a(p($))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(I,n,o){var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/redefine.js"),a=o("./node_modules/core-js/internals/object-to-string.js");L||p(Object.prototype,"toString",a,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/redefine.js"),p=o("./node_modules/core-js/internals/an-object.js"),a=o("./node_modules/core-js/internals/to-string.js"),d=o("./node_modules/core-js/internals/fails.js"),m=o("./node_modules/core-js/internals/regexp-flags.js"),S="toString",$=RegExp.prototype,F=$[S],H=d(function(){return F.call({source:"a",flags:"b"})!="/a/b"}),V=F.name!=S;(H||V)&&L(RegExp.prototype,S,function(){var B=p(this),G=a(B.source),le=B.flags,J=a(le===void 0&&B instanceof RegExp&&!("flags"in $)?m.call(B):le);return"/"+G+"/"+J},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/string-multibyte.js").charAt,p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/internal-state.js"),d=o("./node_modules/core-js/internals/define-iterator.js"),m="String Iterator",S=a.set,$=a.getterFor(m);d(String,"String",function(F){S(this,{type:m,string:p(F),index:0})},function(){var H=$(this),V=H.string,ee=H.index,B;return ee>=V.length?{value:void 0,done:!0}:(B=L(V,ee),H.index+=B.length,{value:B,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/create-html.js"),a=o("./node_modules/core-js/internals/string-html-forced.js");L({target:"String",proto:!0,forced:a("link")},{link:function(m){return p(this,"a","href",m)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/descriptors.js"),a=o("./node_modules/core-js/internals/global.js"),d=o("./node_modules/core-js/internals/has.js"),m=o("./node_modules/core-js/internals/is-object.js"),S=o("./node_modules/core-js/internals/object-define-property.js").f,$=o("./node_modules/core-js/internals/copy-constructor-properties.js"),F=a.Symbol;if(p&&typeof F=="function"&&(!("description"in F.prototype)||F().description!==void 0)){var H={},V=function(){var we=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Ce=this instanceof V?new F(we):we===void 0?F():F(we);return we===""&&(H[Ce]=!0),Ce};$(V,F);var ee=V.prototype=F.prototype;ee.constructor=V;var B=ee.toString,G=String(F("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;S(ee,"description",{configurable:!0,get:function(){var we=m(this)?this.valueOf():this,Ce=B.call(we);if(d(H,we))return"";var Le=G?Ce.slice(7,-1):Ce.replace(le,"$1");return Le===""?void 0:Le}}),L({global:!0,forced:!0},{Symbol:V})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(I,n,o){var L=o("./node_modules/core-js/internals/define-well-known-symbol.js");L("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(I,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/get-built-in.js"),d=o("./node_modules/core-js/internals/is-pure.js"),m=o("./node_modules/core-js/internals/descriptors.js"),S=o("./node_modules/core-js/internals/native-symbol.js"),$=o("./node_modules/core-js/internals/fails.js"),F=o("./node_modules/core-js/internals/has.js"),H=o("./node_modules/core-js/internals/is-array.js"),V=o("./node_modules/core-js/internals/is-object.js"),ee=o("./node_modules/core-js/internals/is-symbol.js"),B=o("./node_modules/core-js/internals/an-object.js"),G=o("./node_modules/core-js/internals/to-object.js"),le=o("./node_modules/core-js/internals/to-indexed-object.js"),J=o("./node_modules/core-js/internals/to-property-key.js"),we=o("./node_modules/core-js/internals/to-string.js"),Ce=o("./node_modules/core-js/internals/create-property-descriptor.js"),Le=o("./node_modules/core-js/internals/object-create.js"),ae=o("./node_modules/core-js/internals/object-keys.js"),pe=o("./node_modules/core-js/internals/object-get-own-property-names.js"),T=o("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ee=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),oe=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),fe=o("./node_modules/core-js/internals/object-define-property.js"),ye=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),_=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=o("./node_modules/core-js/internals/redefine.js"),X=o("./node_modules/core-js/internals/shared.js"),he=o("./node_modules/core-js/internals/shared-key.js"),qe=o("./node_modules/core-js/internals/hidden-keys.js"),st=o("./node_modules/core-js/internals/uid.js"),nt=o("./node_modules/core-js/internals/well-known-symbol.js"),Rt=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),sr=o("./node_modules/core-js/internals/define-well-known-symbol.js"),Jt=o("./node_modules/core-js/internals/set-to-string-tag.js"),We=o("./node_modules/core-js/internals/internal-state.js"),Er=o("./node_modules/core-js/internals/array-iteration.js").forEach,xr=he("hidden"),Wr="Symbol",Cr="prototype",_e=nt("toPrimitive"),kt=We.set,K=We.getterFor(Wr),y=Object[Cr],h=p.Symbol,D=a("JSON","stringify"),Ae=oe.f,Z=fe.f,k=T.f,te=ye.f,Se=X("symbols"),Be=X("op-symbols"),Ie=X("string-to-symbol-registry"),Ge=X("symbol-to-string-registry"),mt=X("wks"),$e=p.QObject,tt=!$e||!$e[Cr]||!$e[Cr].findChild,dt=m&&$(function(){return Le(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a!=7})?function(rr,Qe,ot){var Jr=Ae(y,Qe);Jr&&delete y[Qe],Z(rr,Qe,ot),Jr&&rr!==y&&Z(y,Qe,Jr)}:Z,Ze=function(rr,Qe){var ot=Se[rr]=Le(h[Cr]);return kt(ot,{type:Wr,tag:rr,description:Qe}),m||(ot.description=Qe),ot},Ke=function(Qe,ot,Jr){Qe===y&&Ke(Be,ot,Jr),B(Qe);var Tt=J(ot);return B(Jr),F(Se,Tt)?(Jr.enumerable?(F(Qe,xr)&&Qe[xr][Tt]&&(Qe[xr][Tt]=!1),Jr=Le(Jr,{enumerable:Ce(0,!1)})):(F(Qe,xr)||Z(Qe,xr,Ce(1,{})),Qe[xr][Tt]=!0),dt(Qe,Tt,Jr)):Z(Qe,Tt,Jr)},Bt=function(Qe,ot){B(Qe);var Jr=le(ot),Tt=ae(Jr).concat(re(Jr));return Er(Tt,function(Kt){(!m||Ut.call(Jr,Kt))&&Ke(Qe,Kt,Jr[Kt])}),Qe},Vt=function(Qe,ot){return ot===void 0?Le(Qe):Bt(Le(Qe),ot)},Ut=function(Qe){var ot=J(Qe),Jr=te.call(this,ot);return this===y&&F(Se,ot)&&!F(Be,ot)?!1:Jr||!F(this,ot)||!F(Se,ot)||F(this,xr)&&this[xr][ot]?Jr:!0},mr=function(Qe,ot){var Jr=le(Qe),Tt=J(ot);if(!(Jr===y&&F(Se,Tt)&&!F(Be,Tt))){var Kt=Ae(Jr,Tt);return Kt&&F(Se,Tt)&&!(F(Jr,xr)&&Jr[xr][Tt])&&(Kt.enumerable=!0),Kt}},br=function(Qe){var ot=k(le(Qe)),Jr=[];return Er(ot,function(Tt){!F(Se,Tt)&&!F(qe,Tt)&&Jr.push(Tt)}),Jr},re=function(Qe){var ot=Qe===y,Jr=k(ot?Be:le(Qe)),Tt=[];return Er(Jr,function(Kt){F(Se,Kt)&&(!ot||F(y,Kt))&&Tt.push(Se[Kt])}),Tt};if(S||(h=function(){if(this instanceof h)throw TypeError("Symbol is not a constructor");var Qe=!arguments.length||arguments[0]===void 0?void 0:we(arguments[0]),ot=st(Qe),Jr=function(Tt){this===y&&Jr.call(Be,Tt),F(this,xr)&&F(this[xr],ot)&&(this[xr][ot]=!1),dt(this,ot,Ce(1,Tt))};return m&&tt&&dt(y,ot,{configurable:!0,set:Jr}),Ze(ot,Qe)},N(h[Cr],"toString",function(){return K(this).tag}),N(h,"withoutSetter",function(rr){return Ze(st(rr),rr)}),ye.f=Ut,fe.f=Ke,oe.f=mr,pe.f=T.f=br,Ee.f=re,Rt.f=function(rr){return Ze(nt(rr),rr)},m&&(Z(h[Cr],"description",{configurable:!0,get:function(){return K(this).description}}),d||N(y,"propertyIsEnumerable",Ut,{unsafe:!0}))),L({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:h}),Er(ae(mt),function(rr){sr(rr)}),L({target:Wr,stat:!0,forced:!S},{for:function(rr){var Qe=we(rr);if(F(Ie,Qe))return Ie[Qe];var ot=h(Qe);return Ie[Qe]=ot,Ge[ot]=Qe,ot},keyFor:function(Qe){if(!ee(Qe))throw TypeError(Qe+" is not a symbol");if(F(Ge,Qe))return Ge[Qe]},useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),L({target:"Object",stat:!0,forced:!S,sham:!m},{create:Vt,defineProperty:Ke,defineProperties:Bt,getOwnPropertyDescriptor:mr}),L({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:br,getOwnPropertySymbols:re}),L({target:"Object",stat:!0,forced:$(function(){Ee.f(1)})},{getOwnPropertySymbols:function(Qe){return Ee.f(G(Qe))}}),D){var ue=!S||$(function(){var rr=h();return D([rr])!="[null]"||D({a:rr})!="{}"||D(Object(rr))!="{}"});L({target:"JSON",stat:!0,forced:ue},{stringify:function(Qe,ot,Jr){for(var Tt=[Qe],Kt=1,qt;arguments.length>Kt;)Tt.push(arguments[Kt++]);if(qt=ot,!(!V(ot)&&Qe===void 0||ee(Qe)))return H(ot)||(ot=function(et,ft){if(typeof qt=="function"&&(ft=qt.call(this,et,ft)),!ee(ft))return ft}),Tt[1]=ot,D.apply(null,Tt)}})}h[Cr][_e]||_(h[Cr],_e,h[Cr].valueOf),Jt(h,Wr),qe[xr]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/dom-iterables.js"),a=o("./node_modules/core-js/internals/array-for-each.js"),d=o("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var m in p){var S=L[m],$=S&&S.prototype;if($&&$.forEach!==a)try{d($,"forEach",a)}catch(F){$.forEach=a}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(I,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/dom-iterables.js"),a=o("./node_modules/core-js/modules/es.array.iterator.js"),d=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),m=o("./node_modules/core-js/internals/well-known-symbol.js"),S=m("iterator"),$=m("toStringTag"),F=a.values;for(var H in p){var V=L[H],ee=V&&V.prototype;if(ee){if(ee[S]!==F)try{d(ee,S,F)}catch(G){ee[S]=F}if(ee[$]||d(ee,$,H),p[H]){for(var B in a)if(ee[B]!==a[B])try{d(ee,B,a[B])}catch(G){ee[B]=a[B]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(I){(function(n,o){I.exports=o()})(this,function(){"use strict";function n($e){var tt=typeof $e;return $e!==null&&(tt==="object"||tt==="function")}function o($e){return typeof $e=="function"}var L=void 0;Array.isArray?L=Array.isArray:L=function($e){return Object.prototype.toString.call($e)==="[object Array]"};var p=L,a=0,d=void 0,m=void 0,S=function(tt,dt){ae[a]=tt,ae[a+1]=dt,a+=2,a===2&&(m?m(pe):Ee())};function $($e){m=$e}function F($e){S=$e}var H=typeof window!="undefined"?window:void 0,V=H||{},ee=V.MutationObserver||V.WebKitMutationObserver,B=typeof self=="undefined"&&typeof xe!="undefined"&&{}.toString.call(xe)==="[object process]",G=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return xe.nextTick(pe)}}function J(){return typeof d!="undefined"?function(){d(pe)}:Le()}function we(){var $e=0,tt=new ee(pe),dt=document.createTextNode("");return tt.observe(dt,{characterData:!0}),function(){dt.data=$e=++$e%2}}function Ce(){var $e=new MessageChannel;return $e.port1.onmessage=pe,function(){return $e.port2.postMessage(0)}}function Le(){var $e=setTimeout;return function(){return $e(pe,1)}}var ae=new Array(1e3);function pe(){for(var $e=0;$e<a;$e+=2){var tt=ae[$e],dt=ae[$e+1];tt(dt),ae[$e]=void 0,ae[$e+1]=void 0}a=0}function T(){try{var $e=Function("return this")().require("vertx");return d=$e.runOnLoop||$e.runOnContext,J()}catch(tt){return Le()}}var Ee=void 0;B?Ee=le():ee?Ee=we():G?Ee=Ce():H===void 0?Ee=T():Ee=Le();function oe($e,tt){var dt=this,Ze=new this.constructor(_);Ze[ye]===void 0&&D(Ze);var Ke=dt._state;if(Ke){var Bt=arguments[Ke-1];S(function(){return kt(Ke,Ze,Bt,dt._result)})}else Cr(dt,Ze,$e,tt);return Ze}function fe($e){var tt=this;if($e&&typeof $e=="object"&&$e.constructor===tt)return $e;var dt=new tt(_);return We(dt,$e),dt}var ye=Math.random().toString(36).substring(2);function _(){}var N=void 0,X=1,he=2;function qe(){return new TypeError("You cannot resolve a promise with itself")}function st(){return new TypeError("A promises callback cannot return that same promise.")}function nt($e,tt,dt,Ze){try{$e.call(tt,dt,Ze)}catch(Ke){return Ke}}function Rt($e,tt,dt){S(function(Ze){var Ke=!1,Bt=nt(dt,tt,function(Vt){Ke||(Ke=!0,tt!==Vt?We(Ze,Vt):xr(Ze,Vt))},function(Vt){Ke||(Ke=!0,Wr(Ze,Vt))},"Settle: "+(Ze._label||" unknown promise"));!Ke&&Bt&&(Ke=!0,Wr(Ze,Bt))},$e)}function sr($e,tt){tt._state===X?xr($e,tt._result):tt._state===he?Wr($e,tt._result):Cr(tt,void 0,function(dt){return We($e,dt)},function(dt){return Wr($e,dt)})}function Jt($e,tt,dt){tt.constructor===$e.constructor&&dt===oe&&tt.constructor.resolve===fe?sr($e,tt):dt===void 0?xr($e,tt):o(dt)?Rt($e,tt,dt):xr($e,tt)}function We($e,tt){if($e===tt)Wr($e,qe());else if(n(tt)){var dt=void 0;try{dt=tt.then}catch(Ze){Wr($e,Ze);return}Jt($e,tt,dt)}else xr($e,tt)}function Er($e){$e._onerror&&$e._onerror($e._result),_e($e)}function xr($e,tt){$e._state===N&&($e._result=tt,$e._state=X,$e._subscribers.length!==0&&S(_e,$e))}function Wr($e,tt){$e._state===N&&($e._state=he,$e._result=tt,S(Er,$e))}function Cr($e,tt,dt,Ze){var Ke=$e._subscribers,Bt=Ke.length;$e._onerror=null,Ke[Bt]=tt,Ke[Bt+X]=dt,Ke[Bt+he]=Ze,Bt===0&&$e._state&&S(_e,$e)}function _e($e){var tt=$e._subscribers,dt=$e._state;if(tt.length!==0){for(var Ze=void 0,Ke=void 0,Bt=$e._result,Vt=0;Vt<tt.length;Vt+=3)Ze=tt[Vt],Ke=tt[Vt+dt],Ze?kt(dt,Ze,Ke,Bt):Ke(Bt);$e._subscribers.length=0}}function kt($e,tt,dt,Ze){var Ke=o(dt),Bt=void 0,Vt=void 0,Ut=!0;if(Ke){try{Bt=dt(Ze)}catch(mr){Ut=!1,Vt=mr}if(tt===Bt){Wr(tt,st());return}}else Bt=Ze;tt._state!==N||(Ke&&Ut?We(tt,Bt):Ut===!1?Wr(tt,Vt):$e===X?xr(tt,Bt):$e===he&&Wr(tt,Bt))}function K($e,tt){try{tt(function(Ze){We($e,Ze)},function(Ze){Wr($e,Ze)})}catch(dt){Wr($e,dt)}}var y=0;function h(){return y++}function D($e){$e[ye]=y++,$e._state=void 0,$e._result=void 0,$e._subscribers=[]}function Ae(){return new Error("Array Methods must be provided an Array")}var Z=function(){function $e(tt,dt){this._instanceConstructor=tt,this.promise=new tt(_),this.promise[ye]||D(this.promise),p(dt)?(this.length=dt.length,this._remaining=dt.length,this._result=new Array(this.length),this.length===0?xr(this.promise,this._result):(this.length=this.length||0,this._enumerate(dt),this._remaining===0&&xr(this.promise,this._result))):Wr(this.promise,Ae())}return $e.prototype._enumerate=function(dt){for(var Ze=0;this._state===N&&Ze<dt.length;Ze++)this._eachEntry(dt[Ze],Ze)},$e.prototype._eachEntry=function(dt,Ze){var Ke=this._instanceConstructor,Bt=Ke.resolve;if(Bt===fe){var Vt=void 0,Ut=void 0,mr=!1;try{Vt=dt.then}catch(re){mr=!0,Ut=re}if(Vt===oe&&dt._state!==N)this._settledAt(dt._state,Ze,dt._result);else if(typeof Vt!="function")this._remaining--,this._result[Ze]=dt;else if(Ke===Ge){var br=new Ke(_);mr?Wr(br,Ut):Jt(br,dt,Vt),this._willSettleAt(br,Ze)}else this._willSettleAt(new Ke(function(re){return re(dt)}),Ze)}else this._willSettleAt(Bt(dt),Ze)},$e.prototype._settledAt=function(dt,Ze,Ke){var Bt=this.promise;Bt._state===N&&(this._remaining--,dt===he?Wr(Bt,Ke):this._result[Ze]=Ke),this._remaining===0&&xr(Bt,this._result)},$e.prototype._willSettleAt=function(dt,Ze){var Ke=this;Cr(dt,void 0,function(Bt){return Ke._settledAt(X,Ze,Bt)},function(Bt){return Ke._settledAt(he,Ze,Bt)})},$e}();function k($e){return new Z(this,$e).promise}function te($e){var tt=this;return p($e)?new tt(function(dt,Ze){for(var Ke=$e.length,Bt=0;Bt<Ke;Bt++)tt.resolve($e[Bt]).then(dt,Ze)}):new tt(function(dt,Ze){return Ze(new TypeError("You must pass an array to race."))})}function Se($e){var tt=this,dt=new tt(_);return Wr(dt,$e),dt}function Be(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Ie(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ge=function(){function $e(tt){this[ye]=h(),this._result=this._state=void 0,this._subscribers=[],_!==tt&&(typeof tt!="function"&&Be(),this instanceof $e?K(this,tt):Ie())}return $e.prototype.catch=function(dt){return this.then(null,dt)},$e.prototype.finally=function(dt){var Ze=this,Ke=Ze.constructor;return o(dt)?Ze.then(function(Bt){return Ke.resolve(dt()).then(function(){return Bt})},function(Bt){return Ke.resolve(dt()).then(function(){throw Bt})}):Ze.then(dt,dt)},$e}();Ge.prototype.then=oe,Ge.all=k,Ge.race=te,Ge.resolve=fe,Ge.reject=Se,Ge._setScheduler=$,Ge._setAsap=F,Ge._asap=S;function mt(){var $e=void 0;if(typeof g.g!="undefined")$e=g.g;else if(typeof self!="undefined")$e=self;else try{$e=Function("return this")()}catch(Ze){throw new Error("polyfill failed because global object is unavailable in this environment")}var tt=$e.Promise;if(tt){var dt=null;try{dt=Object.prototype.toString.call(tt.resolve())}catch(Ze){}if(dt==="[object Promise]"&&!tt.cast)return}$e.Promise=Ge}return Ge.polyfill=mt,Ge.Promise=Ge,Ge})},html2canvas:function(I){"use strict";I.exports=se},jspdf:function(I){"use strict";I.exports=Fe}},ie={};function Y(I){var n=ie[I];if(n!==void 0)return n.exports;var o=ie[I]={exports:{}};return Me[I].call(o.exports,o,o.exports,Y),o.exports}(function(){Y.n=function(I){var n=I&&I.__esModule?function(){return I.default}:function(){return I};return Y.d(n,{a:n}),n}})(),function(){Y.d=function(I,n){for(var o in n)Y.o(n,o)&&!Y.o(I,o)&&Object.defineProperty(I,o,{enumerable:!0,get:n[o]})}}(),function(){Y.o=function(I,n){return Object.prototype.hasOwnProperty.call(I,n)}}(),function(){Y.r=function(I){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(I,"__esModule",{value:!0})}}();var O={};return function(){"use strict";Y.r(O);var I=Y("./src/worker.js"),n=Y("./src/plugin/jspdf-plugin.js"),o=Y("./src/plugin/pagebreaks.js"),L=Y("./src/plugin/hyperlinks.js"),p=function a(d,m){var S=new a.Worker(m);return d?S.from(d).save():S};p.Worker=I.default,O.default=p}(),O=O.default,O}()})},67467:function(yn,Wt){Wt.read=function(g,xe,Fe,se,Me){var ie,Y,O=Me*8-se-1,I=(1<<O)-1,n=I>>1,o=-7,L=Fe?Me-1:0,p=Fe?-1:1,a=g[xe+L];for(L+=p,ie=a&(1<<-o)-1,a>>=-o,o+=O;o>0;ie=ie*256+g[xe+L],L+=p,o-=8);for(Y=ie&(1<<-o)-1,ie>>=-o,o+=se;o>0;Y=Y*256+g[xe+L],L+=p,o-=8);if(ie===0)ie=1-n;else{if(ie===I)return Y?NaN:(a?-1:1)*(1/0);Y=Y+Math.pow(2,se),ie=ie-n}return(a?-1:1)*Y*Math.pow(2,ie-se)},Wt.write=function(g,xe,Fe,se,Me,ie){var Y,O,I,n=ie*8-Me-1,o=(1<<n)-1,L=o>>1,p=Me===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=se?0:ie-1,d=se?1:-1,m=xe<0||xe===0&&1/xe<0?1:0;for(xe=Math.abs(xe),isNaN(xe)||xe===1/0?(O=isNaN(xe)?1:0,Y=o):(Y=Math.floor(Math.log(xe)/Math.LN2),xe*(I=Math.pow(2,-Y))<1&&(Y--,I*=2),Y+L>=1?xe+=p/I:xe+=p*Math.pow(2,1-L),xe*I>=2&&(Y++,I/=2),Y+L>=o?(O=0,Y=o):Y+L>=1?(O=(xe*I-1)*Math.pow(2,Me),Y=Y+L):(O=xe*Math.pow(2,L-1)*Math.pow(2,Me),Y=0));Me>=8;g[Fe+a]=O&255,a+=d,O/=256,Me-=8);for(Y=Y<<Me|O,n+=Me;n>0;g[Fe+a]=Y&255,a+=d,Y/=256,n-=8);g[Fe+a-d]|=m*128}},53184:function(yn,Wt,g){"use strict";var xe,Fe;function se(Me,ie,Y){var O=function(I,n){return Me.js_beautify(I,n)};return O.js=Me.js_beautify,O.css=ie.css_beautify,O.html=Y.html_beautify,O.js_beautify=Me.js_beautify,O.css_beautify=ie.css_beautify,O.html_beautify=Y.html_beautify,O}xe=[g(58553),g(87804),g(40998)],Fe=function(Me,ie,Y){return se(Me,ie,Y)}.apply(Wt,xe),Fe!==void 0&&(yn.exports=Fe)},87804:function(yn,Wt){var g,xe;(function(){var Fe;(function(){"use strict";var Me=[,,function(I){function n(p){this.__parent=p,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}n.prototype.clone_empty=function(){var p=new n(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},n.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},n.prototype.has_match=function(p){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(p))return!0;return!1},n.prototype.set_indent=function(p,a){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},n.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},n.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},n.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},n.prototype.is_empty=function(){return this.__items.length===0},n.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},n.prototype.push=function(p){this.__items.push(p);var a=p.lastIndexOf(`
|
|
|
`);a!==-1?this.__character_count=p.length-a:this.__character_count+=p.length},n.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},n.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},n.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},n.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},n.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function o(p,a){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),a=a||"",p.indent_level>0&&(a=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}o.prototype.get_indent_size=function(p,a){var d=this.__base_string_length;return a=a||0,p<0&&(d=0),d+=p*this.__indent_size,d+=a,d},o.prototype.get_indent_string=function(p,a){var d=this.__base_string;return a=a||0,p<0&&(p=0,d=""),a+=p*this.__indent_size,this.__ensure_cache(a),d+=this.__cache[a],d},o.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var p=this.__cache.length,a=0,d="";this.__indent_size&&p>=this.__indent_size&&(a=Math.floor(p/this.__indent_size),p-=a*this.__indent_size,d=new Array(a+1).join(this.__indent_string)),p&&(d+=new Array(p+1).join(" ")),this.__cache.push(d)};function L(p,a){this.__indent_cache=new o(p,a),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new n(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(p,a){return this.__indent_cache.get_indent_string(p,a)},L.prototype.get_indent_size=function(p,a){return this.__indent_cache.get_indent_size(p,a)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(p){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
|
|
|
`);return p!==`
|
|
|
`&&(d=d.replace(/[\n]/g,p)),d},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(p,a){return p=p||0,a=a||0,this.next_line.set_indent(p,a),this.__lines.length>1?(this.current_line.set_indent(p,a),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(p){for(var a=0;a<p.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},L.prototype.remove_indent=function(p){for(var a=this.__lines.length;p<a;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(p,a){for(var d=this.__lines.length-2;d>=0;){var m=this.__lines[d];if(m.is_empty())break;if(m.item(0).indexOf(p)!==0&&m.item(-1)!==a){this.__lines.splice(d+1,0,new n(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},I.exports.Output=L},,,,function(I){function n(p,a){this.raw_options=o(p,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}n.prototype._get_array=function(p,a){var d=this.raw_options[p],m=a||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(m=d.concat()):typeof d=="string"&&(m=d.split(/[^a-zA-Z0-9_\/\-]+/)),m},n.prototype._get_boolean=function(p,a){var d=this.raw_options[p],m=d===void 0?!!a:!!d;return m},n.prototype._get_characters=function(p,a){var d=this.raw_options[p],m=a||"";return typeof d=="string"&&(m=d.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),m},n.prototype._get_number=function(p,a){var d=this.raw_options[p];a=parseInt(a,10),isNaN(a)&&(a=0);var m=parseInt(d,10);return isNaN(m)&&(m=a),m},n.prototype._get_selection=function(p,a,d){var m=this._get_selection_list(p,a,d);if(m.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m[0]},n.prototype._get_selection_list=function(p,a,d){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[a[0]],!this._is_valid_selection(d,a))throw new Error("Invalid Default Value!");var m=this._get_array(p,d);if(!this._is_valid_selection(m,a))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m},n.prototype._is_valid_selection=function(p,a){return p.length&&a.length&&!p.some(function(d){return a.indexOf(d)===-1})};function o(p,a){var d={};p=L(p);var m;for(m in p)m!==a&&(d[m]=p[m]);if(a&&p[a])for(m in p[a])d[m]=p[a][m];return d}function L(p){var a={},d;for(d in p){var m=d.replace(/-/g,"_");a[m]=p[d]}return a}I.exports.Options=n,I.exports.normalizeOpts=L,I.exports.mergeOpts=o},,function(I){var n=RegExp.prototype.hasOwnProperty("sticky");function o(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position<this.__input_length},o.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},o.prototype.peek=function(L){var p=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(p=this.__input.charAt(L)),p},o.prototype.__match=function(L,p){L.lastIndex=p;var a=L.exec(this.__input);return a&&!(n&&L.sticky)&&a.index!==p&&(a=null),a},o.prototype.test=function(L,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(L,p):!1},o.prototype.testChar=function(L,p){var a=this.peek(p);return L.lastIndex=0,a!==null&&L.test(a)},o.prototype.match=function(L){var p=this.__match(L,this.__position);return p?this.__position+=p[0].length:p=null,p},o.prototype.read=function(L,p,a){var d="",m;return L&&(m=this.match(L),m&&(d+=m[0])),p&&(m||!L)&&(d+=this.readUntil(p,a)),d},o.prototype.readUntil=function(L,p){var a="",d=this.__position;L.lastIndex=this.__position;var m=L.exec(this.__input);return m?(d=m.index,p&&(d+=m[0].length)):d=this.__input_length,a=this.__input.substring(this.__position,d),this.__position=d,a},o.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},o.prototype.get_regexp=function(L,p){var a=null,d="g";return p&&n&&(d="y"),typeof L=="string"&&L!==""?a=new RegExp(L,d):L&&(a=new RegExp(L.source,d)),a},o.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},o.prototype.peekUntilAfter=function(L){var p=this.__position,a=this.readUntilAfter(L);return this.__position=p,a},o.prototype.lookBack=function(L){var p=this.__position-1;return p>=L.length&&this.__input.substring(p-L.length,p).toLowerCase()===L},I.exports.InputScanner=o},,,,,function(I){function n(o,L){o=typeof o=="string"?o:o.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+L,"g")}n.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(o);p;)L[p[1]]=p[2],p=this.__directive_pattern.exec(o);return L},n.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},I.exports.Directives=n},,function(I,n,o){var L=o(16).Beautifier,p=o(17).Options;function a(d,m){var S=new L(d,m);return S.beautify()}I.exports=a,I.exports.defaultOptions=function(){return new p}},function(I,n,o){var L=o(17).Options,p=o(2).Output,a=o(8).InputScanner,d=o(13).Directives,m=new d(/\/\*/,/\*\//),S=/\r\n|[\r\n]/,$=/\r\n|[\r\n]/g,F=/\s/,H=/(?:\s|\n)+/g,V=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ee=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function B(G,le){this._source_text=G||"",this._options=new L(le),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}B.prototype.eatString=function(G){var le="";for(this._ch=this._input.next();this._ch;){if(le+=this._ch,this._ch==="\\")le+=this._input.next();else if(G.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return le},B.prototype.eatWhitespace=function(G){for(var le=F.test(this._input.peek()),J=0;F.test(this._input.peek());)this._ch=this._input.next(),G&&this._ch===`
|
|
|
`&&(J===0||J<this._options.max_preserve_newlines)&&(J++,this._output.add_new_line(!0));return le},B.prototype.foundNestedPseudoClass=function(){for(var G=0,le=1,J=this._input.peek(le);J;){if(J==="{")return!0;if(J==="(")G+=1;else if(J===")"){if(G===0)return!1;G-=1}else if(J===";"||J==="}")return!1;le++,J=this._input.peek(le)}return!1},B.prototype.print_string=function(G){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(G)},B.prototype.preserveSingleSpace=function(G){G&&(this._output.space_before_token=!0)},B.prototype.indent=function(){this._indentLevel++},B.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},B.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var G=this._source_text,le=this._options.eol;le==="auto"&&(le=`
|
|
|
`,G&&S.test(G||"")&&(le=G.match(S)[0])),G=G.replace($,`
|
|
|
`);var J=G.match(/^[\t ]*/)[0];this._output=new p(this._options,J),this._input=new a(G),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var we=0,Ce=!1,Le=!1,ae=!1,pe=!1,T=!1,Ee=this._ch,oe=!1,fe,ye,_;fe=this._input.read(H),ye=fe!=="",_=Ee,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Ee=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var N=this._input.read(V),X=m.get_directives(N);X&&X.ignore==="start"&&(N+=m.readIgnored(this._input)),this.print_string(N),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(ee)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(ye),this.print_string(this._ch);var he=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);he.match(/[ :]$/)&&(he=this.eatString(": ").replace(/\s+$/,""),this.print_string(he),this._output.space_before_token=!0),we===0&&he.indexOf(":")!==-1&&(Le=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(ye),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var qe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);qe.match(/[ :]$/)&&(qe=this.eatString(": ").replace(/\s+$/,""),this.print_string(qe),this._output.space_before_token=!0),we===0&&qe.indexOf(":")!==-1?(Le=!0,this.indent()):qe in this.NESTED_AT_RULE?(this._nestedLevel+=1,qe in this.CONDITIONAL_GROUP_RULE&&(ae=!0)):we===0&&!Le&&(pe=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(ye),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Le&&(Le=!1,this.outdent()),pe=!1,ae?(ae=!1,Ce=this._indentLevel>=this._nestedLevel):Ce=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&Ce&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(_==="("?this._output.space_before_token=!1:_!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),_==="{"&&this._output.trim(!0),Le&&(this.outdent(),Le=!1),this.print_string(this._ch),Ce=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var st=0;st<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;st++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[st])){oe=!0;break}(Ce||ae)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!pe&&we===0?(this.print_string(":"),Le||(Le=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var nt=_==='"'||_==="'";this.preserveSingleSpace(nt||ye),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")oe=!1,we===0?(Le&&(this.outdent(),Le=!1),pe=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),we++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),we&&(we--,this.outdent()));else{var Rt=!1;this._input.lookBack("with")&&(Rt=!0),this.preserveSingleSpace(ye||Rt),this.print_string(this._ch),Le&&_==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),T=!0):(this.eatWhitespace(),we++,this.indent())}else if(this._ch===")")we&&(we--,this.outdent()),T&&this._input.peek()===";"&&this._options.selector_separator_newline&&(T=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!Le||T)&&we===0&&!pe?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Le&&we===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&F.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(ye),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),F.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var sr=_==='"'||_==="'";this.preserveSingleSpace(sr||ye),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&oe&&this._output.add_new_line()}var Jt=this._output.get_code(le);return Jt},I.exports.Beautifier=B},function(I,n,o){var L=o(6).Options;function p(a){L.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var d=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||d;var m=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var S=0;S<m.length;S++)m[S]!=="expand"?this.brace_style="collapse":this.brace_style=m[S]}p.prototype=new L,I.exports.Options=p}],ie={};function Y(I){var n=ie[I];if(n!==void 0)return n.exports;var o=ie[I]={exports:{}};return Me[I](o,o.exports,Y),o.exports}var O=Y(15);Fe=O})();var se=Fe;g=[],xe=function(){return{css_beautify:se}}.apply(Wt,g),xe!==void 0&&(yn.exports=xe)})()},40998:function(yn,Wt,g){var xe,Fe;(function(){var se;(function(){"use strict";var O=[,,function(L){function p(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var m=new p(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},p.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},p.prototype.has_match=function(m){for(var S=this.__items.length-1;S>=0;S--)if(this.__items[S].match(m))return!0;return!1},p.prototype.set_indent=function(m,S){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=S||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(m){this.__items.push(m);var S=m.lastIndexOf(`
|
|
|
`);S!==-1?this.__character_count=m.length-S:this.__character_count+=m.length},p.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function a(m,S){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),S=S||"",m.indent_level>0&&(S=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=S,this.__base_string_length=S.length}a.prototype.get_indent_size=function(m,S){var $=this.__base_string_length;return S=S||0,m<0&&($=0),$+=m*this.__indent_size,$+=S,$},a.prototype.get_indent_string=function(m,S){var $=this.__base_string;return S=S||0,m<0&&(m=0,$=""),S+=m*this.__indent_size,this.__ensure_cache(S),$+=this.__cache[S],$},a.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var m=this.__cache.length,S=0,$="";this.__indent_size&&m>=this.__indent_size&&(S=Math.floor(m/this.__indent_size),m-=S*this.__indent_size,$=new Array(S+1).join(this.__indent_string)),m&&($+=new Array(m+1).join(" ")),this.__cache.push($)};function d(m,S){this.__indent_cache=new a(m,S),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}d.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},d.prototype.get_line_number=function(){return this.__lines.length},d.prototype.get_indent_string=function(m,S){return this.__indent_cache.get_indent_string(m,S)},d.prototype.get_indent_size=function(m,S){return this.__indent_cache.get_indent_size(m,S)},d.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},d.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},d.prototype.get_code=function(m){this.trim(!0);var S=this.current_line.pop();S&&(S[S.length-1]===`
|
|
|
`&&(S=S.replace(/\n+$/g,"")),this.current_line.push(S)),this._end_with_newline&&this.__add_outputline();var $=this.__lines.join(`
|
|
|
`);return m!==`
|
|
|
`&&($=$.replace(/[\n]/g,m)),$},d.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},d.prototype.set_indent=function(m,S){return m=m||0,S=S||0,this.next_line.set_indent(m,S),this.__lines.length>1?(this.current_line.set_indent(m,S),!0):(this.current_line.set_indent(),!1)},d.prototype.add_raw_token=function(m){for(var S=0;S<m.newlines;S++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},d.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},d.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},d.prototype.remove_indent=function(m){for(var S=this.__lines.length;m<S;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},d.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},d.prototype.just_added_newline=function(){return this.current_line.is_empty()},d.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},d.prototype.ensure_empty_line_above=function(m,S){for(var $=this.__lines.length-2;$>=0;){var F=this.__lines[$];if(F.is_empty())break;if(F.item(0).indexOf(m)!==0&&F.item(-1)!==S){this.__lines.splice($+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}$--}},L.exports.Output=d},function(L){function p(a,d,m,S){this.type=a,this.text=d,this.comments_before=null,this.newlines=m||0,this.whitespace_before=S||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}L.exports.Token=p},,,function(L){function p(m,S){this.raw_options=a(m,S),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(m,S){var $=this.raw_options[m],F=S||[];return typeof $=="object"?$!==null&&typeof $.concat=="function"&&(F=$.concat()):typeof $=="string"&&(F=$.split(/[^a-zA-Z0-9_\/\-]+/)),F},p.prototype._get_boolean=function(m,S){var $=this.raw_options[m],F=$===void 0?!!S:!!$;return F},p.prototype._get_characters=function(m,S){var $=this.raw_options[m],F=S||"";return typeof $=="string"&&(F=$.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),F},p.prototype._get_number=function(m,S){var $=this.raw_options[m];S=parseInt(S,10),isNaN(S)&&(S=0);var F=parseInt($,10);return isNaN(F)&&(F=S),F},p.prototype._get_selection=function(m,S,$){var F=this._get_selection_list(m,S,$);if(F.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[m]+"'");return F[0]},p.prototype._get_selection_list=function(m,S,$){if(!S||S.length===0)throw new Error("Selection list cannot be empty.");if($=$||[S[0]],!this._is_valid_selection($,S))throw new Error("Invalid Default Value!");var F=this._get_array(m,$);if(!this._is_valid_selection(F,S))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[m]+"'");return F},p.prototype._is_valid_selection=function(m,S){return m.length&&S.length&&!m.some(function($){return S.indexOf($)===-1})};function a(m,S){var $={};m=d(m);var F;for(F in m)F!==S&&($[F]=m[F]);if(S&&m[S])for(F in m[S])$[F]=m[S][F];return $}function d(m){var S={},$;for($ in m){var F=$.replace(/-/g,"_");S[F]=m[$]}return S}L.exports.Options=p,L.exports.normalizeOpts=d,L.exports.mergeOpts=a},,function(L){var p=RegExp.prototype.hasOwnProperty("sticky");function a(d){this.__input=d||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var d=null;return this.hasNext()&&(d=this.__input.charAt(this.__position),this.__position+=1),d},a.prototype.peek=function(d){var m=null;return d=d||0,d+=this.__position,d>=0&&d<this.__input_length&&(m=this.__input.charAt(d)),m},a.prototype.__match=function(d,m){d.lastIndex=m;var S=d.exec(this.__input);return S&&!(p&&d.sticky)&&S.index!==m&&(S=null),S},a.prototype.test=function(d,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(d,m):!1},a.prototype.testChar=function(d,m){var S=this.peek(m);return d.lastIndex=0,S!==null&&d.test(S)},a.prototype.match=function(d){var m=this.__match(d,this.__position);return m?this.__position+=m[0].length:m=null,m},a.prototype.read=function(d,m,S){var $="",F;return d&&(F=this.match(d),F&&($+=F[0])),m&&(F||!d)&&($+=this.readUntil(m,S)),$},a.prototype.readUntil=function(d,m){var S="",$=this.__position;d.lastIndex=this.__position;var F=d.exec(this.__input);return F?($=F.index,m&&($+=F[0].length)):$=this.__input_length,S=this.__input.substring(this.__position,$),this.__position=$,S},a.prototype.readUntilAfter=function(d){return this.readUntil(d,!0)},a.prototype.get_regexp=function(d,m){var S=null,$="g";return m&&p&&($="y"),typeof d=="string"&&d!==""?S=new RegExp(d,$):d&&(S=new RegExp(d.source,$)),S},a.prototype.get_literal_regexp=function(d){return RegExp(d.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(d){var m=this.__position,S=this.readUntilAfter(d);return this.__position=m,S},a.prototype.lookBack=function(d){var m=this.__position-1;return m>=d.length&&this.__input.substring(m-d.length,m).toLowerCase()===d},L.exports.InputScanner=a},function(L,p,a){var d=a(8).InputScanner,m=a(3).Token,S=a(10).TokenStream,$=a(11).WhitespacePattern,F={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},H=function(V,ee){this._input=new d(V),this._options=ee||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new $(this._input)};H.prototype.tokenize=function(){this._input.restart(),this.__tokens=new S,this._reset();for(var V,ee=new m(F.START,""),B=null,G=[],le=new S;ee.type!==F.EOF;){for(V=this._get_next_token(ee,B);this._is_comment(V);)le.add(V),V=this._get_next_token(ee,B);le.isEmpty()||(V.comments_before=le,le=new S),V.parent=B,this._is_opening(V)?(G.push(B),B=V):B&&this._is_closing(V,B)&&(V.opened=B,B.closed=V,B=G.pop(),V.parent=B),V.previous=ee,ee.next=V,this.__tokens.add(V),ee=V}return this.__tokens},H.prototype._is_first_token=function(){return this.__tokens.isEmpty()},H.prototype._reset=function(){},H.prototype._get_next_token=function(V,ee){this._readWhitespace();var B=this._input.read(/.+/g);return B?this._create_token(F.RAW,B):this._create_token(F.EOF,"")},H.prototype._is_comment=function(V){return!1},H.prototype._is_opening=function(V){return!1},H.prototype._is_closing=function(V,ee){return!1},H.prototype._create_token=function(V,ee){var B=new m(V,ee,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return B},H.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},L.exports.Tokenizer=H,L.exports.TOKEN=F},function(L){function p(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},p.prototype.peek=function(a){var d=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(d=this.__tokens[a]),d},p.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},L.exports.TokenStream=p},function(L,p,a){var d=a(12).Pattern;function m(S,$){d.call(this,S,$),$?this._line_regexp=this._input.get_regexp($._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}m.prototype=new d,m.prototype.__set_whitespace_patterns=function(S,$){S+="\\t ",$+="\\n\\r",this._match_pattern=this._input.get_regexp("["+S+$+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+$+"]")},m.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var S=this._input.read(this._match_pattern);if(S===" ")this.whitespace_before_token=" ";else if(S){var $=this.__split(this._newline_regexp,S);this.newline_count=$.length-1,this.whitespace_before_token=$[this.newline_count]}return S},m.prototype.matching=function(S,$){var F=this._create();return F.__set_whitespace_patterns(S,$),F._update(),F},m.prototype._create=function(){return new m(this._input,this)},m.prototype.__split=function(S,$){S.lastIndex=0;for(var F=0,H=[],V=S.exec($);V;)H.push($.substring(F,V.index)),F=V.index+V[0].length,V=S.exec($);return F<$.length?H.push($.substring(F,$.length)):H.push(""),H},L.exports.WhitespacePattern=m},function(L){function p(a,d){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,d&&(this._starting_pattern=this._input.get_regexp(d._starting_pattern,!0),this._match_pattern=this._input.get_regexp(d._match_pattern,!0),this._until_pattern=this._input.get_regexp(d._until_pattern),this._until_after=d._until_after)}p.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(a){var d=this._create();return d._until_after=!0,d._until_pattern=this._input.get_regexp(a),d._update(),d},p.prototype.until=function(a){var d=this._create();return d._until_after=!1,d._until_pattern=this._input.get_regexp(a),d._update(),d},p.prototype.starting_with=function(a){var d=this._create();return d._starting_pattern=this._input.get_regexp(a,!0),d._update(),d},p.prototype.matching=function(a){var d=this._create();return d._match_pattern=this._input.get_regexp(a,!0),d._update(),d},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},L.exports.Pattern=p},function(L){function p(a,d){a=typeof a=="string"?a:a.source,d=typeof d=="string"?d:d.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+d,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+d,"g")}p.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var d={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(a);m;)d[m[1]]=m[2],m=this.__directive_pattern.exec(a);return d},p.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},L.exports.Directives=p},function(L,p,a){var d=a(12).Pattern,m={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function S($,F){d.call(this,$,F),this.__template_pattern=null,this._disabled=Object.assign({},m),this._excluded=Object.assign({},m),F&&(this.__template_pattern=this._input.get_regexp(F.__template_pattern),this._excluded=Object.assign(this._excluded,F._excluded),this._disabled=Object.assign(this._disabled,F._disabled));var H=new d($);this.__patterns={handlebars_comment:H.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:H.starting_with(/{{{/).until_after(/}}}/),handlebars:H.starting_with(/{{/).until_after(/}}/),php:H.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:H.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:H.starting_with(/{%/).until_after(/%}/),django_value:H.starting_with(/{{/).until_after(/}}/),django_comment:H.starting_with(/{#/).until_after(/#}/),smarty:H.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:H.starting_with(/{\*/).until_after(/\*}/),smarty_literal:H.starting_with(/{literal}/).until_after(/{\/literal}/)}}S.prototype=new d,S.prototype._create=function(){return new S(this._input,this)},S.prototype._update=function(){this.__set_templated_pattern()},S.prototype.disable=function($){var F=this._create();return F._disabled[$]=!0,F._update(),F},S.prototype.read_options=function($){var F=this._create();for(var H in m)F._disabled[H]=$.templating.indexOf(H)===-1;return F._update(),F},S.prototype.exclude=function($){var F=this._create();return F._excluded[$]=!0,F._update(),F},S.prototype.read=function(){var $="";this._match_pattern?$=this._input.read(this._starting_pattern):$=this._input.read(this._starting_pattern,this.__template_pattern);for(var F=this._read_template();F;)this._match_pattern?F+=this._input.read(this._match_pattern):F+=this._input.readUntil(this.__template_pattern),$+=F,F=this._read_template();return this._until_after&&($+=this._input.readUntilAfter(this._until_pattern)),$},S.prototype.__set_templated_pattern=function(){var $=[];this._disabled.php||$.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||$.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||$.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||$.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||($.push(this.__patterns.django._starting_pattern.source),$.push(this.__patterns.django_value._starting_pattern.source),$.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||$.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&$.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+$.join("|")+")")},S.prototype._read_template=function(){var $="",F=this._input.peek();if(F==="<"){var H=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&H==="?"&&($=$||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&H==="%"&&($=$||this.__patterns.erb.read())}else F==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&($=$||this.__patterns.handlebars_comment.read(),$=$||this.__patterns.handlebars_unescaped.read(),$=$||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&($=$||this.__patterns.django_value.read()),this._excluded.django||($=$||this.__patterns.django_comment.read(),$=$||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&($=$||this.__patterns.smarty_comment.read(),$=$||this.__patterns.smarty_literal.read(),$=$||this.__patterns.smarty.read()));return $},L.exports.TemplatablePattern=S},,,,function(L,p,a){var d=a(19).Beautifier,m=a(20).Options;function S($,F,H,V){var ee=new d($,F,H,V);return ee.beautify()}L.exports=S,L.exports.defaultOptions=function(){return new m}},function(L,p,a){var d=a(20).Options,m=a(2).Output,S=a(21).Tokenizer,$=a(21).TOKEN,F=/\r\n|[\r\n]/,H=/\r\n|[\r\n]/g,V=function(pe,T){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=pe.max_preserve_newlines,this.preserve_newlines=pe.preserve_newlines,this._output=new m(pe,T)};V.prototype.current_line_has_match=function(pe){return this._output.current_line.has_match(pe)},V.prototype.set_space_before_token=function(pe,T){this._output.space_before_token=pe,this._output.non_breaking_space=T},V.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},V.prototype.add_raw_token=function(pe){this._output.add_raw_token(pe)},V.prototype.print_preserved_newlines=function(pe){var T=0;pe.type!==$.TEXT&&pe.previous.type!==$.TEXT&&(T=pe.newlines?1:0),this.preserve_newlines&&(T=pe.newlines<this.max_preserve_newlines+1?pe.newlines:this.max_preserve_newlines+1);for(var Ee=0;Ee<T;Ee++)this.print_newline(Ee>0);return T!==0},V.prototype.traverse_whitespace=function(pe){return pe.whitespace_before||pe.newlines?(this.print_preserved_newlines(pe)||(this._output.space_before_token=!0),!0):!1},V.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},V.prototype.print_newline=function(pe){this._output.add_new_line(pe)},V.prototype.print_token=function(pe){pe.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(pe.text))},V.prototype.indent=function(){this.indent_level++},V.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},V.prototype.get_full_indent=function(pe){return pe=this.indent_level+(pe||0),pe<1?"":this._output.get_indent_string(pe)};var ee=function(pe){for(var T=null,Ee=pe.next;Ee.type!==$.EOF&&pe.closed!==Ee;){if(Ee.type===$.ATTRIBUTE&&Ee.text==="type"){Ee.next&&Ee.next.type===$.EQUALS&&Ee.next.next&&Ee.next.next.type===$.VALUE&&(T=Ee.next.next.text);break}Ee=Ee.next}return T},B=function(pe,T){var Ee=null,oe=null;return T.closed?(pe==="script"?Ee="text/javascript":pe==="style"&&(Ee="text/css"),Ee=ee(T)||Ee,Ee.search("text/css")>-1?oe="css":Ee.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?oe="javascript":Ee.search(/(text|application|dojo)\/(x-)?(html)/)>-1?oe="html":Ee.search(/test\/null/)>-1&&(oe="null"),oe):null};function G(pe,T){return T.indexOf(pe)!==-1}function le(pe,T,Ee){this.parent=pe||null,this.tag=T?T.tag_name:"",this.indent_level=Ee||0,this.parser_token=T||null}function J(pe){this._printer=pe,this._current_frame=null}J.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},J.prototype.record_tag=function(pe){var T=new le(this._current_frame,pe,this._printer.indent_level);this._current_frame=T},J.prototype._try_pop_frame=function(pe){var T=null;return pe&&(T=pe.parser_token,this._printer.indent_level=pe.indent_level,this._current_frame=pe.parent),T},J.prototype._get_frame=function(pe,T){for(var Ee=this._current_frame;Ee&&pe.indexOf(Ee.tag)===-1;){if(T&&T.indexOf(Ee.tag)!==-1){Ee=null;break}Ee=Ee.parent}return Ee},J.prototype.try_pop=function(pe,T){var Ee=this._get_frame([pe],T);return this._try_pop_frame(Ee)},J.prototype.indent_to_tag=function(pe){var T=this._get_frame(pe);T&&(this._printer.indent_level=T.indent_level)};function we(pe,T,Ee,oe){this._source_text=pe||"",T=T||{},this._js_beautify=Ee,this._css_beautify=oe,this._tag_stack=null;var fe=new d(T,"html");this._options=fe,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}we.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var pe=this._source_text,T=this._options.eol;this._options.eol==="auto"&&(T=`
|
|
|
`,pe&&F.test(pe)&&(T=pe.match(F)[0])),pe=pe.replace(H,`
|
|
|
`);var Ee=pe.match(/^[\t ]*/)[0],oe={text:"",type:""},fe=new Ce(this._options),ye=new V(this._options,Ee),_=new S(pe,this._options).tokenize();this._tag_stack=new J(ye);for(var N=null,X=_.next();X.type!==$.EOF;)X.type===$.TAG_OPEN||X.type===$.COMMENT?(N=this._handle_tag_open(ye,X,fe,oe,_),fe=N):X.type===$.ATTRIBUTE||X.type===$.EQUALS||X.type===$.VALUE||X.type===$.TEXT&&!fe.tag_complete?N=this._handle_inside_tag(ye,X,fe,oe):X.type===$.TAG_CLOSE?N=this._handle_tag_close(ye,X,fe):X.type===$.TEXT?N=this._handle_text(ye,X,fe):X.type===$.CONTROL_FLOW_OPEN?N=this._handle_control_flow_open(ye,X):X.type===$.CONTROL_FLOW_CLOSE?N=this._handle_control_flow_close(ye,X):ye.add_raw_token(X),oe=N,X=_.next();var he=ye._output.get_code(T);return he},we.prototype._handle_control_flow_open=function(pe,T){var Ee={text:T.text,type:T.type};return pe.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),T.newlines?pe.print_preserved_newlines(T):pe.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),pe.print_token(T),pe.indent(),Ee},we.prototype._handle_control_flow_close=function(pe,T){var Ee={text:T.text,type:T.type};return pe.deindent(),T.newlines?pe.print_preserved_newlines(T):pe.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),pe.print_token(T),Ee},we.prototype._handle_tag_close=function(pe,T,Ee){var oe={text:T.text,type:T.type};return pe.alignment_size=0,Ee.tag_complete=!0,pe.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),Ee.is_unformatted?pe.add_raw_token(T):(Ee.tag_start_char==="<"&&(pe.set_space_before_token(T.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&Ee.has_wrapped_attrs&&pe.print_newline(!1)),pe.print_token(T)),Ee.indent_content&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&(pe.indent(),Ee.indent_content=!1),!Ee.is_inline_element&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&pe.set_wrap_point(),oe},we.prototype._handle_inside_tag=function(pe,T,Ee,oe){var fe=Ee.has_wrapped_attrs,ye={text:T.text,type:T.type};return pe.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),Ee.is_unformatted?pe.add_raw_token(T):Ee.tag_start_char==="{"&&T.type===$.TEXT?pe.print_preserved_newlines(T)?(T.newlines=0,pe.add_raw_token(T)):pe.print_token(T):(T.type===$.ATTRIBUTE?pe.set_space_before_token(!0):(T.type===$.EQUALS||T.type===$.VALUE&&T.previous.type===$.EQUALS)&&pe.set_space_before_token(!1),T.type===$.ATTRIBUTE&&Ee.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(pe.traverse_whitespace(T),fe=fe||T.newlines!==0),this._is_wrap_attributes_force&&Ee.attr_count>=this._options.wrap_attributes_min_attrs&&(oe.type!==$.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(pe.print_newline(!1),fe=!0)),pe.print_token(T),fe=fe||pe.previous_token_wrapped(),Ee.has_wrapped_attrs=fe),ye},we.prototype._handle_text=function(pe,T,Ee){var oe={text:T.text,type:"TK_CONTENT"};return Ee.custom_beautifier_name?this._print_custom_beatifier_text(pe,T,Ee):Ee.is_unformatted||Ee.is_content_unformatted?pe.add_raw_token(T):(pe.traverse_whitespace(T),pe.print_token(T)),oe},we.prototype._print_custom_beatifier_text=function(pe,T,Ee){var oe=this;if(T.text!==""){var fe=T.text,ye,_=1,N="",X="";Ee.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?ye=this._js_beautify:Ee.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?ye=this._css_beautify:Ee.custom_beautifier_name==="html"&&(ye=function(sr,Jt){var We=new we(sr,Jt,oe._js_beautify,oe._css_beautify);return We.beautify()}),this._options.indent_scripts==="keep"?_=0:this._options.indent_scripts==="separate"&&(_=-pe.indent_level);var he=pe.get_full_indent(_);if(fe=fe.replace(/\n[ \t]*$/,""),Ee.custom_beautifier_name!=="html"&&fe[0]==="<"&&fe.match(/^(<!--|<!\[CDATA\[)/)){var qe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(fe);if(!qe){pe.add_raw_token(T);return}N=he+qe[1]+`
|
|
|
`,fe=qe[4],qe[5]&&(X=he+qe[5]),fe=fe.replace(/\n[ \t]*$/,""),(qe[2]||qe[3].indexOf(`
|
|
|
`)!==-1)&&(qe=qe[3].match(/[ \t]+$/),qe&&(T.whitespace_before=qe[0]))}if(fe)if(ye){var st=function(){this.eol=`
|
|
|
`};st.prototype=this._options.raw_options;var nt=new st;fe=ye(he+fe,nt)}else{var Rt=T.whitespace_before;Rt&&(fe=fe.replace(new RegExp(`
|
|
|
(`+Rt+")?","g"),`
|
|
|
`)),fe=he+fe.replace(/\n/g,`
|
|
|
`+he)}N&&(fe?fe=N+fe+`
|
|
|
`+X:fe=N+X),pe.print_newline(!1),fe&&(T.text=fe,T.whitespace_before="",T.newlines=0,pe.add_raw_token(T),pe.print_newline(!0))}},we.prototype._handle_tag_open=function(pe,T,Ee,oe,fe){var ye=this._get_tag_open_token(T);if((Ee.is_unformatted||Ee.is_content_unformatted)&&!Ee.is_empty_element&&T.type===$.TAG_OPEN&&!ye.is_start_tag?(pe.add_raw_token(T),ye.start_tag_token=this._tag_stack.try_pop(ye.tag_name)):(pe.traverse_whitespace(T),this._set_tag_position(pe,T,ye,Ee,oe),ye.is_inline_element||pe.set_wrap_point(),pe.print_token(T)),ye.is_start_tag&&this._is_wrap_attributes_force){var _=0,N;do N=fe.peek(_),N.type===$.ATTRIBUTE&&(ye.attr_count+=1),_+=1;while(N.type!==$.EOF&&N.type!==$.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(ye.alignment_size=T.text.length+1),!ye.tag_complete&&!ye.is_unformatted&&(pe.alignment_size=ye.alignment_size),ye};var Ce=function(pe,T,Ee){if(this.parent=T||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!Ee)this.tag_complete=!0;else{var oe;this.tag_start_char=Ee.text[0],this.text=Ee.text,this.tag_start_char==="<"?(oe=Ee.text.match(/^<([^\s>]*)/),this.tag_check=oe?oe[1]:""):(oe=Ee.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=oe?oe[1]:"",(Ee.text.startsWith("{{#>")||Ee.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&Ee.next!==null?this.tag_check=Ee.next.text.split(" ")[0]:this.tag_check=Ee.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),Ee.type===$.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||Ee.closed&&Ee.closed.text==="/>";var fe=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(fe=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!pe.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(fe)))}};we.prototype._get_tag_open_token=function(pe){var T=new Ce(this._options,this._tag_stack.get_parser_token(),pe);return T.alignment_size=this._options.wrap_attributes_indent_size,T.is_end_tag=T.is_end_tag||G(T.tag_check,this._options.void_elements),T.is_empty_element=T.tag_complete||T.is_start_tag&&T.is_end_tag,T.is_unformatted=!T.tag_complete&&G(T.tag_check,this._options.unformatted),T.is_content_unformatted=!T.is_empty_element&&G(T.tag_check,this._options.content_unformatted),T.is_inline_element=G(T.tag_name,this._options.inline)||this._options.inline_custom_elements&&T.tag_name.includes("-")||T.tag_start_char==="{",T},we.prototype._set_tag_position=function(pe,T,Ee,oe,fe){if(Ee.is_empty_element||(Ee.is_end_tag?Ee.start_tag_token=this._tag_stack.try_pop(Ee.tag_name):(this._do_optional_end_element(Ee)&&(Ee.is_inline_element||pe.print_newline(!1)),this._tag_stack.record_tag(Ee),(Ee.tag_name==="script"||Ee.tag_name==="style")&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&(Ee.custom_beautifier_name=B(Ee.tag_check,T)))),G(Ee.tag_check,this._options.extra_liners)&&(pe.print_newline(!1),pe._output.just_added_blankline()||pe.print_newline(!0)),Ee.is_empty_element){if(Ee.tag_start_char==="{"&&Ee.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),Ee.indent_content=!0;var ye=pe.current_line_has_match(/{{#if/);ye||pe.print_newline(!1)}Ee.tag_name==="!--"&&fe.type===$.TAG_CLOSE&&oe.is_end_tag&&Ee.text.indexOf(`
|
|
|
`)===-1||(Ee.is_inline_element||Ee.is_unformatted||pe.print_newline(!1),this._calcluate_parent_multiline(pe,Ee))}else if(Ee.is_end_tag){var _=!1;_=Ee.start_tag_token&&Ee.start_tag_token.multiline_content,_=_||!Ee.is_inline_element&&!(oe.is_inline_element||oe.is_unformatted)&&!(fe.type===$.TAG_CLOSE&&Ee.start_tag_token===oe)&&fe.type!=="TK_CONTENT",(Ee.is_content_unformatted||Ee.is_unformatted)&&(_=!1),_&&pe.print_newline(!1)}else Ee.indent_content=!Ee.custom_beautifier_name,Ee.tag_start_char==="<"&&(Ee.tag_name==="html"?Ee.indent_content=this._options.indent_inner_html:Ee.tag_name==="head"?Ee.indent_content=this._options.indent_head_inner_html:Ee.tag_name==="body"&&(Ee.indent_content=this._options.indent_body_inner_html)),!(Ee.is_inline_element||Ee.is_unformatted)&&(fe.type!=="TK_CONTENT"||Ee.is_content_unformatted)&&pe.print_newline(!1),this._calcluate_parent_multiline(pe,Ee)},we.prototype._calcluate_parent_multiline=function(pe,T){T.parent&&pe._output.just_added_newline()&&!((T.is_inline_element||T.is_unformatted)&&T.parent.is_inline_element)&&(T.parent.multiline_content=!0)};var Le=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],ae=["a","audio","del","ins","map","noscript","video"];we.prototype._do_optional_end_element=function(pe){var T=null;if(!(pe.is_empty_element||!pe.is_start_tag||!pe.parent)){if(pe.tag_name==="body")T=T||this._tag_stack.try_pop("head");else if(pe.tag_name==="li")T=T||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(pe.tag_name==="dd"||pe.tag_name==="dt")T=T||this._tag_stack.try_pop("dt",["dl"]),T=T||this._tag_stack.try_pop("dd",["dl"]);else if(pe.parent.tag_name==="p"&&Le.indexOf(pe.tag_name)!==-1){var Ee=pe.parent.parent;(!Ee||ae.indexOf(Ee.tag_name)===-1)&&(T=T||this._tag_stack.try_pop("p"))}else pe.tag_name==="rp"||pe.tag_name==="rt"?(T=T||this._tag_stack.try_pop("rt",["ruby","rtc"]),T=T||this._tag_stack.try_pop("rp",["ruby","rtc"])):pe.tag_name==="optgroup"?T=T||this._tag_stack.try_pop("optgroup",["select"]):pe.tag_name==="option"?T=T||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):pe.tag_name==="colgroup"?T=T||this._tag_stack.try_pop("caption",["table"]):pe.tag_name==="thead"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"])):pe.tag_name==="tbody"||pe.tag_name==="tfoot"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"]),T=T||this._tag_stack.try_pop("thead",["table"]),T=T||this._tag_stack.try_pop("tbody",["table"])):pe.tag_name==="tr"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"]),T=T||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(pe.tag_name==="th"||pe.tag_name==="td")&&(T=T||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),T=T||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return pe.parent=this._tag_stack.get_parser_token(),T}},L.exports.Beautifier=we},function(L,p,a){var d=a(6).Options;function m(S){d.call(this,S,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}m.prototype=new d,L.exports.Options=m},function(L,p,a){var d=a(9).Tokenizer,m=a(9).TOKEN,S=a(13).Directives,$=a(14).TemplatablePattern,F=a(12).Pattern,H={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:m.START,RAW:m.RAW,EOF:m.EOF},V=new S(/<\!--/,/-->/),ee=function(B,G){d.call(this,B,G),this._current_tag_name="";var le=new $(this._input).read_options(this._options),J=new F(this._input);if(this.__patterns={word:le.until(/[\n\r\t <]/),word_control_flow_close_excluded:le.until(/[\n\r\t <}]/),single_quote:le.until_after(/'/),double_quote:le.until_after(/"/),attribute:le.until(/[\n\r\t =>]|\/>/),element_name:le.until(/[\n\r\t >\/]/),angular_control_flow_start:J.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:J.starting_with(/{{!--/).until_after(/--}}/),handlebars:J.starting_with(/{{/).until_after(/}}/),handlebars_open:J.until(/[\n\r\t }]/),handlebars_raw_close:J.until(/}}/),comment:J.starting_with(/<!--/).until_after(/-->/),cdata:J.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:J.starting_with(/<!\[/).until_after(/]>/),processing:J.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var we=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=J.matching(we).until_after(we)}};ee.prototype=new d,ee.prototype._is_comment=function(B){return!1},ee.prototype._is_opening=function(B){return B.type===H.TAG_OPEN||B.type===H.CONTROL_FLOW_OPEN},ee.prototype._is_closing=function(B,G){return B.type===H.TAG_CLOSE&&G&&((B.text===">"||B.text==="/>")&&G.text[0]==="<"||B.text==="}}"&&G.text[0]==="{"&&G.text[1]==="{")||B.type===H.CONTROL_FLOW_CLOSE&&B.text==="}"&&G.text.endsWith("{")},ee.prototype._reset=function(){this._current_tag_name=""},ee.prototype._get_next_token=function(B,G){var le=null;this._readWhitespace();var J=this._input.peek();return J===null?this._create_token(H.EOF,""):(le=le||this._read_open_handlebars(J,G),le=le||this._read_attribute(J,B,G),le=le||this._read_close(J,G),le=le||this._read_script_and_style(J,B),le=le||this._read_control_flows(J,G),le=le||this._read_raw_content(J,B,G),le=le||this._read_content_word(J,G),le=le||this._read_comment_or_cdata(J),le=le||this._read_processing(J),le=le||this._read_open(J,G),le=le||this._create_token(H.UNKNOWN,this._input.next()),le)},ee.prototype._read_comment_or_cdata=function(B){var G=null,le=null,J=null;if(B==="<"){var we=this._input.peek(1);we==="!"&&(le=this.__patterns.comment.read(),le?(J=V.get_directives(le),J&&J.ignore==="start"&&(le+=V.readIgnored(this._input))):le=this.__patterns.cdata.read()),le&&(G=this._create_token(H.COMMENT,le),G.directives=J)}return G},ee.prototype._read_processing=function(B){var G=null,le=null,J=null;if(B==="<"){var we=this._input.peek(1);(we==="!"||we==="?")&&(le=this.__patterns.conditional_comment.read(),le=le||this.__patterns.processing.read()),le&&(G=this._create_token(H.COMMENT,le),G.directives=J)}return G},ee.prototype._read_open=function(B,G){var le=null,J=null;return(!G||G.type===H.CONTROL_FLOW_OPEN)&&B==="<"&&(le=this._input.next(),this._input.peek()==="/"&&(le+=this._input.next()),le+=this.__patterns.element_name.read(),J=this._create_token(H.TAG_OPEN,le)),J},ee.prototype._read_open_handlebars=function(B,G){var le=null,J=null;return(!G||G.type===H.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&B==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(le=this.__patterns.handlebars_comment.read(),le=le||this.__patterns.handlebars.read(),J=this._create_token(H.COMMENT,le)):(le=this.__patterns.handlebars_open.read(),J=this._create_token(H.TAG_OPEN,le))),J},ee.prototype._read_control_flows=function(B,G){var le="",J=null;if(!this._options.templating.includes("angular"))return J;if(B==="@"){if(le=this.__patterns.angular_control_flow_start.read(),le==="")return J;for(var we=le.endsWith("(")?1:0,Ce=0;!(le.endsWith("{")&&we===Ce);){var Le=this._input.next();if(Le===null)break;Le==="("?we++:Le===")"&&Ce++,le+=Le}J=this._create_token(H.CONTROL_FLOW_OPEN,le)}else B==="}"&&G&&G.type===H.CONTROL_FLOW_OPEN&&(le=this._input.next(),J=this._create_token(H.CONTROL_FLOW_CLOSE,le));return J},ee.prototype._read_close=function(B,G){var le=null,J=null;return G&&G.type===H.TAG_OPEN&&(G.text[0]==="<"&&(B===">"||B==="/"&&this._input.peek(1)===">")?(le=this._input.next(),B==="/"&&(le+=this._input.next()),J=this._create_token(H.TAG_CLOSE,le)):G.text[0]==="{"&&B==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),J=this._create_token(H.TAG_CLOSE,"}}"))),J},ee.prototype._read_attribute=function(B,G,le){var J=null,we="";if(le&&le.text[0]==="<")if(B==="=")J=this._create_token(H.EQUALS,this._input.next());else if(B==='"'||B==="'"){var Ce=this._input.next();B==='"'?Ce+=this.__patterns.double_quote.read():Ce+=this.__patterns.single_quote.read(),J=this._create_token(H.VALUE,Ce)}else we=this.__patterns.attribute.read(),we&&(G.type===H.EQUALS?J=this._create_token(H.VALUE,we):J=this._create_token(H.ATTRIBUTE,we));return J},ee.prototype._is_content_unformatted=function(B){return this._options.void_elements.indexOf(B)===-1&&(this._options.content_unformatted.indexOf(B)!==-1||this._options.unformatted.indexOf(B)!==-1)},ee.prototype._read_raw_content=function(B,G,le){var J="";if(le&&le.text[0]==="{")J=this.__patterns.handlebars_raw_close.read();else if(G.type===H.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var we=G.opened.text.substr(1).toLowerCase();this._is_content_unformatted(we)&&(J=this._input.readUntil(new RegExp("</"+we+"[\\n\\r\\t ]*?>","ig")))}return J?this._create_token(H.TEXT,J):null},ee.prototype._read_script_and_style=function(B,G){if(G.type===H.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var le=G.opened.text.substr(1).toLowerCase();if(le==="script"||le==="style"){var J=this._read_comment_or_cdata(B);if(J)return J.type=H.TEXT,J;var we=this._input.readUntil(new RegExp("</"+le+"[\\n\\r\\t ]*?>","ig"));if(we)return this._create_token(H.TEXT,we)}}return null},ee.prototype._read_content_word=function(B,G){var le="";return this._options.unformatted_content_delimiter&&B===this._options.unformatted_content_delimiter[0]&&(le=this.__patterns.unformatted_content_delimiter.read()),le||(le=G&&G.type===H.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),le?this._create_token(H.TEXT,le):null},L.exports.Tokenizer=ee,L.exports.TOKEN=H}],I={};function n(L){var p=I[L];if(p!==void 0)return p.exports;var a=I[L]={exports:{}};return O[L](a,a.exports,n),a.exports}var o=n(18);se=o})();var Me=se;if(1)xe=[g,g(58553),g(87804)],Fe=function(O){var I=g(58553),n=g(87804);return{html_beautify:function(o,L){return Me(o,L,I.js_beautify,n.css_beautify)}}}.apply(Wt,xe),Fe!==void 0&&(yn.exports=Fe);else var ie,Y})()},58553:function(yn,Wt){var g,xe;(function(){var Fe;(function(){"use strict";var Me=[function(I,n,o){var L=o(1).Beautifier,p=o(5).Options;function a(d,m){var S=new L(d,m);return S.beautify()}I.exports=a,I.exports.defaultOptions=function(){return new p}},function(I,n,o){var L=o(2).Output,p=o(3).Token,a=o(4),d=o(5).Options,m=o(7).Tokenizer,S=o(7).line_starters,$=o(7).positionable_operators,F=o(7).TOKEN;function H(N,X){return X.indexOf(N)!==-1}function V(N){return N.replace(/^\s+/g,"")}function ee(N){for(var X={},he=0;he<N.length;he++)X[N[he].replace(/-/g,"_")]=N[he];return X}function B(N,X){return N&&N.type===F.RESERVED&&N.text===X}function G(N,X){return N&&N.type===F.RESERVED&&H(N.text,X)}var le=["case","return","do","if","throw","else","await","break","continue","async"],J=["before-newline","after-newline","preserve-newline"],we=ee(J),Ce=[we.before_newline,we.preserve_newline],Le={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ae(N,X){X.multiline_frame||X.mode===Le.ForInitializer||X.mode===Le.Conditional||N.remove_indent(X.start_line_index)}function pe(N){N=N.replace(a.allLineBreaks,`
|
|
|
`);for(var X=[],he=N.indexOf(`
|
|
|
`);he!==-1;)X.push(N.substring(0,he)),N=N.substring(he+1),he=N.indexOf(`
|
|
|
`);return N.length&&X.push(N),X}function T(N){return N===Le.ArrayLiteral}function Ee(N){return H(N,[Le.Expression,Le.ForInitializer,Le.Conditional])}function oe(N,X){for(var he=0;he<N.length;he++){var qe=N[he].trim();if(qe.charAt(0)!==X)return!1}return!0}function fe(N,X){for(var he=0,qe=N.length,st;he<qe;he++)if(st=N[he],st&&st.indexOf(X)!==0)return!1;return!0}function ye(N,X){X=X||{},this._source_text=N||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new d(X)}ye.prototype.create_flags=function(N,X){var he=0;N&&(he=N.indentation_level,!this._output.just_added_newline()&&N.line_indent_level>he&&(he=N.line_indent_level));var qe={mode:X,parent:N,last_token:N?N.last_token:new p(F.START_BLOCK,""),last_word:N?N.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:he,alignment:0,line_indent_level:N?N.line_indent_level:he,start_line_index:this._output.get_line_number(),ternary_depth:0};return qe},ye.prototype._reset=function(N){var X=N.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new L(this._options,X),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Le.BlockStatement);var he=new m(N,this._options);return this._tokens=he.tokenize(),N},ye.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var N,X=this._reset(this._source_text),he=this._options.eol;this._options.eol==="auto"&&(he=`
|
|
|
`,X&&a.lineBreak.test(X||"")&&(he=X.match(a.lineBreak)[0]));for(var qe=this._tokens.next();qe;)this.handle_token(qe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=qe,qe=this._tokens.next();return N=this._output.get_code(he),N},ye.prototype.handle_token=function(N,X){N.type===F.START_EXPR?this.handle_start_expr(N):N.type===F.END_EXPR?this.handle_end_expr(N):N.type===F.START_BLOCK?this.handle_start_block(N):N.type===F.END_BLOCK?this.handle_end_block(N):N.type===F.WORD?this.handle_word(N):N.type===F.RESERVED?this.handle_word(N):N.type===F.SEMICOLON?this.handle_semicolon(N):N.type===F.STRING?this.handle_string(N):N.type===F.EQUALS?this.handle_equals(N):N.type===F.OPERATOR?this.handle_operator(N):N.type===F.COMMA?this.handle_comma(N):N.type===F.BLOCK_COMMENT?this.handle_block_comment(N,X):N.type===F.COMMENT?this.handle_comment(N,X):N.type===F.DOT?this.handle_dot(N):N.type===F.EOF?this.handle_eof(N):N.type===F.UNKNOWN?this.handle_unknown(N,X):this.handle_unknown(N,X)},ye.prototype.handle_whitespace_and_comments=function(N,X){var he=N.newlines,qe=this._options.keep_array_indentation&&T(this._flags.mode);if(N.comments_before)for(var st=N.comments_before.next();st;)this.handle_whitespace_and_comments(st,X),this.handle_token(st,X),st=N.comments_before.next();if(qe)for(var nt=0;nt<he;nt+=1)this.print_newline(nt>0,X);else if(this._options.max_preserve_newlines&&he>this._options.max_preserve_newlines&&(he=this._options.max_preserve_newlines),this._options.preserve_newlines&&he>1){this.print_newline(!1,X);for(var Rt=1;Rt<he;Rt+=1)this.print_newline(!0,X)}};var _=["async","break","continue","return","throw","yield"];ye.prototype.allow_wrap_or_preserved_newline=function(N,X){if(X=X===void 0?!1:X,!this._output.just_added_newline()){var he=this._options.preserve_newlines&&N.newlines||X,qe=H(this._flags.last_token.text,$)||H(N.text,$);if(qe){var st=H(this._flags.last_token.text,$)&&H(this._options.operator_position,Ce)||H(N.text,$);he=he&&st}if(he)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(G(this._flags.last_token,_))return;this._output.set_wrap_point()}}},ye.prototype.print_newline=function(N,X){if(!X&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==F.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var he=this._tokens.peek();this._flags.mode===Le.Statement&&!(this._flags.if_block&&B(he,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(N)&&(this._flags.multiline_frame=!0)},ye.prototype.print_token_line_indentation=function(N){this._output.just_added_newline()&&(this._options.keep_array_indentation&&N.newlines&&(N.text==="["||T(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(N.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},ye.prototype.print_token=function(N){if(this._output.raw){this._output.add_raw_token(N);return}if(this._options.comma_first&&N.previous&&N.previous.type===F.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var X=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(X),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(N),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(N),this._output.non_breaking_space=!0,this._output.add_token(N.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},ye.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ye.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ye.prototype.set_mode=function(N){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,N),this._flags=this.create_flags(this._previous_flags,N),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ye.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Le.Statement&&ae(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ye.prototype.start_of_object_property=function(){return this._flags.parent.mode===Le.ObjectLiteral&&this._flags.mode===Le.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||G(this._flags.last_token,["get","set"]))},ye.prototype.start_of_statement=function(N){var X=!1;return X=X||G(this._flags.last_token,["var","let","const"])&&N.type===F.WORD,X=X||B(this._flags.last_token,"do"),X=X||!(this._flags.parent.mode===Le.ObjectLiteral&&this._flags.mode===Le.Statement)&&G(this._flags.last_token,_)&&!N.newlines,X=X||B(this._flags.last_token,"else")&&!(B(N,"if")&&!N.comments_before),X=X||this._flags.last_token.type===F.END_EXPR&&(this._previous_flags.mode===Le.ForInitializer||this._previous_flags.mode===Le.Conditional),X=X||this._flags.last_token.type===F.WORD&&this._flags.mode===Le.BlockStatement&&!this._flags.in_case&&!(N.text==="--"||N.text==="++")&&this._last_last_text!=="function"&&N.type!==F.WORD&&N.type!==F.RESERVED,X=X||this._flags.mode===Le.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||G(this._flags.last_token,["get","set"])),X?(this.set_mode(Le.Statement),this.indent(),this.handle_whitespace_and_comments(N,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(N,G(N,["do","for","if","while"])),!0):!1},ye.prototype.handle_start_expr=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N);var X=Le.Expression;if(N.text==="["){if(this._flags.last_token.type===F.WORD||this._flags.last_token.text===")"){G(this._flags.last_token,S)&&(this._output.space_before_token=!0),this.print_token(N),this.set_mode(X),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}X=Le.ArrayLiteral,T(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),H(this._flags.last_token.type,[F.START_EXPR,F.END_EXPR,F.WORD,F.OPERATOR,F.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===F.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,X=Le.ForInitializer):H(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,X=Le.Conditional):H(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&N.whitespace_before===""?this._output.space_before_token=!1:(H(this._flags.last_token.text,S)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(N);else if(this._flags.last_token.type===F.WORD){this._output.space_before_token=!1;var he=this._tokens.peek(-3);if(this._options.space_after_named_function&&he){var qe=this._tokens.peek(-4);G(he,["async","function"])||he.text==="*"&&G(qe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Le.ObjectLiteral?(he.text==="{"||he.text===","||he.text==="*"&&(qe.text==="{"||qe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(N);(this._flags.last_token.type===F.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(H(this._last_last_text,["function","yield"])||this._flags.mode===Le.ObjectLiteral&&H(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===F.START_BLOCK?this.print_newline():(this._flags.last_token.type===F.END_EXPR||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===F.COMMA)&&this.allow_wrap_or_preserved_newline(N,N.newlines),this.print_token(N),this.set_mode(X),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},ye.prototype.handle_end_expr=function(N){for(;this._flags.mode===Le.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(N,N.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===F.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(N),this.restore_mode(),ae(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Le.Conditional&&(this._previous_flags.mode=Le.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},ye.prototype.handle_start_block=function(N){this.handle_whitespace_and_comments(N);var X=this._tokens.peek(),he=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===F.END_EXPR?(this.set_mode(Le.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Le.BlockStatement):he&&(H(he.text,[":",","])&&H(X.type,[F.STRING,F.WORD,F.RESERVED])||H(X.text,["get","set","..."])&&H(he.type,[F.WORD,F.RESERVED]))?H(this._last_last_text,["class","interface"])&&!H(he.text,[":",","])?this.set_mode(Le.BlockStatement):this.set_mode(Le.ObjectLiteral):this._flags.last_token.type===F.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Le.BlockStatement):H(this._flags.last_token.type,[F.EQUALS,F.START_EXPR,F.COMMA,F.OPERATOR])||G(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Le.ObjectLiteral):this.set_mode(Le.BlockStatement),this._flags.last_token&&G(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var qe=!X.comments_before&&X.text==="}",st=qe&&this._flags.last_word==="function"&&this._flags.last_token.type===F.END_EXPR;if(this._options.brace_preserve_inline){var nt=0,Rt=null;this._flags.inline_frame=!0;do if(nt+=1,Rt=this._tokens.peek(nt-1),Rt.newlines){this._flags.inline_frame=!1;break}while(Rt.type!==F.EOF&&!(Rt.type===F.END_BLOCK&&Rt.opened===N))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&N.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==F.OPERATOR&&(st||this._flags.last_token.type===F.EQUALS||G(this._flags.last_token,le)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.COMMA)&&((this._flags.last_token.type===F.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(N),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==F.OPERATOR&&this._flags.last_token.type!==F.START_EXPR&&(H(this._flags.last_token.type,[F.START_BLOCK,F.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(N),this.indent(),!qe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},ye.prototype.handle_end_block=function(N){for(this.handle_whitespace_and_comments(N);this._flags.mode===Le.Statement;)this.restore_mode();var X=this._flags.last_token.type===F.START_BLOCK;this._flags.inline_frame&&!X?this._output.space_before_token=!0:this._options.brace_style==="expand"?X||this.print_newline():X||(T(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(N)},ye.prototype.handle_word=function(N){if(N.type===F.RESERVED){if(H(N.text,["set","get"])&&this._flags.mode!==Le.ObjectLiteral)N.type=F.WORD;else if(N.text==="import"&&H(this._tokens.peek().text,["(","."]))N.type=F.WORD;else if(H(N.text,["as","from"])&&!this._flags.import_block)N.type=F.WORD;else if(this._flags.mode===Le.ObjectLiteral){var X=this._tokens.peek();X.text===":"&&(N.type=F.WORD)}}if(this.start_of_statement(N)?G(this._flags.last_token,["var","let","const"])&&N.type===F.WORD&&(this._flags.declaration_statement=!0):N.newlines&&!Ee(this._flags.mode)&&(this._flags.last_token.type!==F.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==F.EQUALS&&(this._options.preserve_newlines||!G(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(N),this.print_newline()):this.handle_whitespace_and_comments(N),this._flags.do_block&&!this._flags.do_while)if(B(N,"while")){this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&B(N,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Le.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&G(N,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(N),this._flags.in_case=!0;return}if((this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR)&&!this.start_of_object_property()&&!(H(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Le.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(N),B(N,"function")){(H(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(H(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===F.OPERATOR))&&!this._output.just_added_blankline()&&!N.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD?G(this._flags.last_token,["get","set","new","export"])||G(this._flags.last_token,_)?this._output.space_before_token=!0:B(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===F.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Ee(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(N),this._flags.last_word=N.text;return}var he="NONE";if(this._flags.last_token.type===F.END_BLOCK?this._previous_flags.inline_frame?he="SPACE":G(N,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&N.newlines?he="NEWLINE":(he="SPACE",this._output.space_before_token=!0):he="NEWLINE":this._flags.last_token.type===F.SEMICOLON&&this._flags.mode===Le.BlockStatement?he="NEWLINE":this._flags.last_token.type===F.SEMICOLON&&Ee(this._flags.mode)?he="SPACE":this._flags.last_token.type===F.STRING?he="NEWLINE":this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD||this._flags.last_token.text==="*"&&(H(this._last_last_text,["function","yield"])||this._flags.mode===Le.ObjectLiteral&&H(this._last_last_text,["{",","]))?he="SPACE":this._flags.last_token.type===F.START_BLOCK?this._flags.inline_frame?he="SPACE":he="NEWLINE":this._flags.last_token.type===F.END_EXPR&&(this._output.space_before_token=!0,he="NEWLINE"),G(N,S)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?he="SPACE":he="NEWLINE"),G(N,["else","catch","finally"]))if((!(this._flags.last_token.type===F.END_BLOCK&&this._previous_flags.mode===Le.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&N.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var qe=this._output.current_line;qe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else he==="NEWLINE"?G(this._flags.last_token,le)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&G(N,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==F.END_EXPR?(this._flags.last_token.type!==F.START_EXPR||!G(N,["var","let","const"]))&&this._flags.last_token.text!==":"&&(B(N,"if")&&B(N.previous,"else")?this._output.space_before_token=!0:this.print_newline()):G(N,S)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():he==="SPACE"&&(this._output.space_before_token=!0);N.previous&&(N.previous.type===F.WORD||N.previous.type===F.RESERVED)&&(this._output.space_before_token=!0),this.print_token(N),this._flags.last_word=N.text,N.type===F.RESERVED&&(N.text==="do"?this._flags.do_block=!0:N.text==="if"?this._flags.if_block=!0:N.text==="import"?this._flags.import_block=!0:this._flags.import_block&&B(N,"from")&&(this._flags.import_block=!1))},ye.prototype.handle_semicolon=function(N){this.start_of_statement(N)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(N);for(var X=this._tokens.peek();this._flags.mode===Le.Statement&&!(this._flags.if_block&&B(X,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(N)},ye.prototype.handle_string=function(N){N.text.startsWith("`")&&N.newlines===0&&N.whitespace_before===""&&(N.previous.text===")"||this._flags.last_token.type===F.WORD)||(this.start_of_statement(N)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(N),this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(N):N.text.startsWith("`")&&this._flags.last_token.type===F.END_EXPR&&(N.previous.text==="]"||N.previous.text===")")&&N.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(N)},ye.prototype.handle_equals=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0},ye.prototype.handle_comma=function(N){this.handle_whitespace_and_comments(N,!0),this.print_token(N),this._output.space_before_token=!0,this._flags.declaration_statement?(Ee(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(N)):this._flags.mode===Le.ObjectLiteral||this._flags.mode===Le.Statement&&this._flags.parent.mode===Le.ObjectLiteral?(this._flags.mode===Le.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(N)},ye.prototype.handle_operator=function(N){var X=N.text==="*"&&(G(this._flags.last_token,["function","yield"])||H(this._flags.last_token.type,[F.START_BLOCK,F.COMMA,F.END_BLOCK,F.SEMICOLON])),he=H(N.text,["-","+"])&&(H(this._flags.last_token.type,[F.START_BLOCK,F.START_EXPR,F.EQUALS,F.OPERATOR])||H(this._flags.last_token.text,S)||this._flags.last_token.text===",");if(!this.start_of_statement(N)){var qe=!X;this.handle_whitespace_and_comments(N,qe)}if(N.text==="*"&&this._flags.last_token.type===F.DOT){this.print_token(N);return}if(N.text==="::"){this.print_token(N);return}if(H(N.text,["-","+"])&&this.start_of_object_property()){this.print_token(N);return}if(this._flags.last_token.type===F.OPERATOR&&H(this._options.operator_position,Ce)&&this.allow_wrap_or_preserved_newline(N),N.text===":"&&this._flags.in_case){this.print_token(N),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==F.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var st=!0,nt=!0,Rt=!1;if(N.text===":"?this._flags.ternary_depth===0?st=!1:(this._flags.ternary_depth-=1,Rt=!0):N.text==="?"&&(this._flags.ternary_depth+=1),!he&&!X&&this._options.preserve_newlines&&H(N.text,$)){var sr=N.text===":",Jt=sr&&Rt,We=sr&&!Rt;switch(this._options.operator_position){case we.before_newline:this._output.space_before_token=!We,this.print_token(N),(!sr||Jt)&&this.allow_wrap_or_preserved_newline(N),this._output.space_before_token=!0;return;case we.after_newline:this._output.space_before_token=!0,!sr||Jt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(N):this._output.space_before_token=!1,this.print_token(N),this._output.space_before_token=!0;return;case we.preserve_newline:We||this.allow_wrap_or_preserved_newline(N),st=!(this._output.just_added_newline()||We),this._output.space_before_token=st,this.print_token(N),this._output.space_before_token=!0;return}}if(X){this.allow_wrap_or_preserved_newline(N),st=!1;var Er=this._tokens.peek();nt=Er&&H(Er.type,[F.WORD,F.RESERVED])}else if(N.text==="...")this.allow_wrap_or_preserved_newline(N),st=this._flags.last_token.type===F.START_BLOCK,nt=!1;else if(H(N.text,["--","++","!","~"])||he){if((this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR)&&this.allow_wrap_or_preserved_newline(N),st=!1,nt=!1,N.newlines&&(N.text==="--"||N.text==="++"||N.text==="~")){var xr=G(this._flags.last_token,le)&&N.newlines;xr&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(xr,!0)}this._flags.last_token.text===";"&&Ee(this._flags.mode)&&(st=!0),this._flags.last_token.type===F.RESERVED?st=!0:this._flags.last_token.type===F.END_EXPR?st=!(this._flags.last_token.text==="]"&&(N.text==="--"||N.text==="++")):this._flags.last_token.type===F.OPERATOR&&(st=H(N.text,["--","-","++","+"])&&H(this._flags.last_token.text,["--","-","++","+"]),H(N.text,["+","-"])&&H(this._flags.last_token.text,["--","++"])&&(nt=!0)),(this._flags.mode===Le.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Le.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||st,this.print_token(N),this._output.space_before_token=nt},ye.prototype.handle_block_comment=function(N,X){if(this._output.raw){this._output.add_raw_token(N),N.directives&&N.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(N.directives){this.print_newline(!1,X),this.print_token(N),N.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(N.text)&&!N.newlines){this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0;return}else this.print_block_commment(N,X)},ye.prototype.print_block_commment=function(N,X){var he=pe(N.text),qe,st=!1,nt=!1,Rt=N.whitespace_before,sr=Rt.length;if(this.print_newline(!1,X),this.print_token_line_indentation(N),this._output.add_token(he[0]),this.print_newline(!1,X),he.length>1){for(he=he.slice(1),st=oe(he,"*"),nt=fe(he,Rt),st&&(this._flags.alignment=1),qe=0;qe<he.length;qe++)st?(this.print_token_line_indentation(N),this._output.add_token(V(he[qe]))):nt&&he[qe]?(this.print_token_line_indentation(N),this._output.add_token(he[qe].substring(sr))):(this._output.current_line.set_indent(-1),this._output.add_token(he[qe])),this.print_newline(!1,X);this._flags.alignment=0}},ye.prototype.handle_comment=function(N,X){N.newlines?this.print_newline(!1,X):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(N),this.print_newline(!1,X)},ye.prototype.handle_dot=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),G(this._flags.last_token,le)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(N,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(N)},ye.prototype.handle_unknown=function(N,X){this.print_token(N),N.text[N.text.length-1]===`
|
|
|
`&&this.print_newline(!1,X)},ye.prototype.handle_eof=function(N){for(;this._flags.mode===Le.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N)},I.exports.Beautifier=ye},function(I){function n(p){this.__parent=p,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}n.prototype.clone_empty=function(){var p=new n(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},n.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},n.prototype.has_match=function(p){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(p))return!0;return!1},n.prototype.set_indent=function(p,a){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},n.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},n.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},n.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},n.prototype.is_empty=function(){return this.__items.length===0},n.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},n.prototype.push=function(p){this.__items.push(p);var a=p.lastIndexOf(`
|
|
|
`);a!==-1?this.__character_count=p.length-a:this.__character_count+=p.length},n.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},n.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},n.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},n.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},n.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function o(p,a){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),a=a||"",p.indent_level>0&&(a=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}o.prototype.get_indent_size=function(p,a){var d=this.__base_string_length;return a=a||0,p<0&&(d=0),d+=p*this.__indent_size,d+=a,d},o.prototype.get_indent_string=function(p,a){var d=this.__base_string;return a=a||0,p<0&&(p=0,d=""),a+=p*this.__indent_size,this.__ensure_cache(a),d+=this.__cache[a],d},o.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var p=this.__cache.length,a=0,d="";this.__indent_size&&p>=this.__indent_size&&(a=Math.floor(p/this.__indent_size),p-=a*this.__indent_size,d=new Array(a+1).join(this.__indent_string)),p&&(d+=new Array(p+1).join(" ")),this.__cache.push(d)};function L(p,a){this.__indent_cache=new o(p,a),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new n(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(p,a){return this.__indent_cache.get_indent_string(p,a)},L.prototype.get_indent_size=function(p,a){return this.__indent_cache.get_indent_size(p,a)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(p){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var d=this.__lines.join(`
|
|
|
`);return p!==`
|
|
|
`&&(d=d.replace(/[\n]/g,p)),d},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(p,a){return p=p||0,a=a||0,this.next_line.set_indent(p,a),this.__lines.length>1?(this.current_line.set_indent(p,a),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(p){for(var a=0;a<p.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},L.prototype.remove_indent=function(p){for(var a=this.__lines.length;p<a;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(p,a){for(var d=this.__lines.length-2;d>=0;){var m=this.__lines[d];if(m.is_empty())break;if(m.item(0).indexOf(p)!==0&&m.item(-1)!==a){this.__lines.splice(d+1,0,new n(this)),this.previous_line=this.__lines[this.__lines.length-2];break}d--}},I.exports.Output=L},function(I){function n(o,L,p,a){this.type=o,this.text=L,this.comments_before=null,this.newlines=p||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}I.exports.Token=n},function(I,n){var o="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",L="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",a="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",d="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",m="(?:"+d+"|["+o+p+"])",S="(?:"+d+"|["+L+p+a+"])*";n.identifier=new RegExp(m+S,"g"),n.identifierStart=new RegExp(m),n.identifierMatch=new RegExp("(?:"+d+"|["+L+p+a+"])+");var $=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;n.newline=/[\n\r\u2028\u2029]/,n.lineBreak=new RegExp(`\r
|
|
|
|`+n.newline.source),n.allLineBreaks=new RegExp(n.lineBreak.source,"g")},function(I,n,o){var L=o(6).Options,p=["before-newline","after-newline","preserve-newline"];function a(d){L.call(this,d,"js");var m=this.raw_options.brace_style||null;m==="expand-strict"?this.raw_options.brace_style="expand":m==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var S=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var $=0;$<S.length;$++)S[$]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=S[$];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",p),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}a.prototype=new L,I.exports.Options=a},function(I){function n(p,a){this.raw_options=o(p,a),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}n.prototype._get_array=function(p,a){var d=this.raw_options[p],m=a||[];return typeof d=="object"?d!==null&&typeof d.concat=="function"&&(m=d.concat()):typeof d=="string"&&(m=d.split(/[^a-zA-Z0-9_\/\-]+/)),m},n.prototype._get_boolean=function(p,a){var d=this.raw_options[p],m=d===void 0?!!a:!!d;return m},n.prototype._get_characters=function(p,a){var d=this.raw_options[p],m=a||"";return typeof d=="string"&&(m=d.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),m},n.prototype._get_number=function(p,a){var d=this.raw_options[p];a=parseInt(a,10),isNaN(a)&&(a=0);var m=parseInt(d,10);return isNaN(m)&&(m=a),m},n.prototype._get_selection=function(p,a,d){var m=this._get_selection_list(p,a,d);if(m.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m[0]},n.prototype._get_selection_list=function(p,a,d){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(d=d||[a[0]],!this._is_valid_selection(d,a))throw new Error("Invalid Default Value!");var m=this._get_array(p,d);if(!this._is_valid_selection(m,a))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m},n.prototype._is_valid_selection=function(p,a){return p.length&&a.length&&!p.some(function(d){return a.indexOf(d)===-1})};function o(p,a){var d={};p=L(p);var m;for(m in p)m!==a&&(d[m]=p[m]);if(a&&p[a])for(m in p[a])d[m]=p[a][m];return d}function L(p){var a={},d;for(d in p){var m=d.replace(/-/g,"_");a[m]=p[d]}return a}I.exports.Options=n,I.exports.normalizeOpts=L,I.exports.mergeOpts=o},function(I,n,o){var L=o(8).InputScanner,p=o(9).Tokenizer,a=o(9).TOKEN,d=o(13).Directives,m=o(4),S=o(12).Pattern,$=o(14).TemplatablePattern;function F(oe,fe){return fe.indexOf(oe)!==-1}var H={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:a.START,RAW:a.RAW,EOF:a.EOF},V=new d(/\/\*/,/\*\//),ee=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,B=/[0-9]/,G=/[^\d\.]/,le=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),J=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";J=J.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),J="\\?\\.(?!\\d) "+J,J=J.replace(/ /g,"|");var we=new RegExp(J),Ce="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Le=Ce.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ae=new RegExp("^(?:"+Le.join("|")+")$"),pe,T=function(oe,fe){p.call(this,oe,fe),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var ye=new S(this._input),_=new $(this._input).read_options(this._options);this.__patterns={template:_,identifier:_.starting_with(m.identifier).matching(m.identifierMatch),number:ye.matching(ee),punct:ye.matching(we),comment:ye.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:ye.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:ye.matching(/<!--/),html_comment_end:ye.matching(/-->/),include:ye.starting_with(/#include/).until_after(m.lineBreak),shebang:ye.starting_with(/#!/).until_after(m.lineBreak),xml:ye.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:_.until(/['\\\n\r\u2028\u2029]/),double_quote:_.until(/["\\\n\r\u2028\u2029]/),template_text:_.until(/[`\\$]/),template_expression:_.until(/[`}\\]/)}};T.prototype=new p,T.prototype._is_comment=function(oe){return oe.type===H.COMMENT||oe.type===H.BLOCK_COMMENT||oe.type===H.UNKNOWN},T.prototype._is_opening=function(oe){return oe.type===H.START_BLOCK||oe.type===H.START_EXPR},T.prototype._is_closing=function(oe,fe){return(oe.type===H.END_BLOCK||oe.type===H.END_EXPR)&&fe&&(oe.text==="]"&&fe.text==="["||oe.text===")"&&fe.text==="("||oe.text==="}"&&fe.text==="{")},T.prototype._reset=function(){pe=!1},T.prototype._get_next_token=function(oe,fe){var ye=null;this._readWhitespace();var _=this._input.peek();return _===null?this._create_token(H.EOF,""):(ye=ye||this._read_non_javascript(_),ye=ye||this._read_string(_),ye=ye||this._read_pair(_,this._input.peek(1)),ye=ye||this._read_word(oe),ye=ye||this._read_singles(_),ye=ye||this._read_comment(_),ye=ye||this._read_regexp(_,oe),ye=ye||this._read_xml(_,oe),ye=ye||this._read_punctuation(),ye=ye||this._create_token(H.UNKNOWN,this._input.next()),ye)},T.prototype._read_word=function(oe){var fe;if(fe=this.__patterns.identifier.read(),fe!=="")return fe=fe.replace(m.allLineBreaks,`
|
|
|
`),!(oe.type===H.DOT||oe.type===H.RESERVED&&(oe.text==="set"||oe.text==="get"))&&ae.test(fe)?(fe==="in"||fe==="of")&&(oe.type===H.WORD||oe.type===H.STRING)?this._create_token(H.OPERATOR,fe):this._create_token(H.RESERVED,fe):this._create_token(H.WORD,fe);if(fe=this.__patterns.number.read(),fe!=="")return this._create_token(H.WORD,fe)},T.prototype._read_singles=function(oe){var fe=null;return oe==="("||oe==="["?fe=this._create_token(H.START_EXPR,oe):oe===")"||oe==="]"?fe=this._create_token(H.END_EXPR,oe):oe==="{"?fe=this._create_token(H.START_BLOCK,oe):oe==="}"?fe=this._create_token(H.END_BLOCK,oe):oe===";"?fe=this._create_token(H.SEMICOLON,oe):oe==="."&&G.test(this._input.peek(1))?fe=this._create_token(H.DOT,oe):oe===","&&(fe=this._create_token(H.COMMA,oe)),fe&&this._input.next(),fe},T.prototype._read_pair=function(oe,fe){var ye=null;return oe==="#"&&fe==="{"&&(ye=this._create_token(H.START_BLOCK,oe+fe)),ye&&(this._input.next(),this._input.next()),ye},T.prototype._read_punctuation=function(){var oe=this.__patterns.punct.read();if(oe!=="")return oe==="="?this._create_token(H.EQUALS,oe):oe==="?."?this._create_token(H.DOT,oe):this._create_token(H.OPERATOR,oe)},T.prototype._read_non_javascript=function(oe){var fe="";if(oe==="#"){if(this._is_first_token()&&(fe=this.__patterns.shebang.read(),fe))return this._create_token(H.UNKNOWN,fe.trim()+`
|
|
|
`);if(fe=this.__patterns.include.read(),fe)return this._create_token(H.UNKNOWN,fe.trim()+`
|
|
|
`);oe=this._input.next();var ye="#";if(this._input.hasNext()&&this._input.testChar(B)){do oe=this._input.next(),ye+=oe;while(this._input.hasNext()&&oe!=="#"&&oe!=="=");return oe==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(ye+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(ye+="{}",this._input.next(),this._input.next())),this._create_token(H.WORD,ye)}this._input.back()}else if(oe==="<"&&this._is_first_token()){if(fe=this.__patterns.html_comment_start.read(),fe){for(;this._input.hasNext()&&!this._input.testChar(m.newline);)fe+=this._input.next();return pe=!0,this._create_token(H.COMMENT,fe)}}else if(pe&&oe==="-"&&(fe=this.__patterns.html_comment_end.read(),fe))return pe=!1,this._create_token(H.COMMENT,fe);return null},T.prototype._read_comment=function(oe){var fe=null;if(oe==="/"){var ye="";if(this._input.peek(1)==="*"){ye=this.__patterns.block_comment.read();var _=V.get_directives(ye);_&&_.ignore==="start"&&(ye+=V.readIgnored(this._input)),ye=ye.replace(m.allLineBreaks,`
|
|
|
`),fe=this._create_token(H.BLOCK_COMMENT,ye),fe.directives=_}else this._input.peek(1)==="/"&&(ye=this.__patterns.comment.read(),fe=this._create_token(H.COMMENT,ye))}return fe},T.prototype._read_string=function(oe){if(oe==="`"||oe==="'"||oe==='"'){var fe=this._input.next();return this.has_char_escapes=!1,oe==="`"?fe+=this._read_string_recursive("`",!0,"${"):fe+=this._read_string_recursive(oe),this.has_char_escapes&&this._options.unescape_strings&&(fe=Ee(fe)),this._input.peek()===oe&&(fe+=this._input.next()),fe=fe.replace(m.allLineBreaks,`
|
|
|
`),this._create_token(H.STRING,fe)}return null},T.prototype._allow_regexp_or_xml=function(oe){return oe.type===H.RESERVED&&F(oe.text,["return","case","throw","else","do","typeof","yield"])||oe.type===H.END_EXPR&&oe.text===")"&&oe.opened.previous.type===H.RESERVED&&F(oe.opened.previous.text,["if","while","for"])||F(oe.type,[H.COMMENT,H.START_EXPR,H.START_BLOCK,H.START,H.END_BLOCK,H.OPERATOR,H.EQUALS,H.EOF,H.SEMICOLON,H.COMMA])},T.prototype._read_regexp=function(oe,fe){if(oe==="/"&&this._allow_regexp_or_xml(fe)){for(var ye=this._input.next(),_=!1,N=!1;this._input.hasNext()&&(_||N||this._input.peek()!==oe)&&!this._input.testChar(m.newline);)ye+=this._input.peek(),_?_=!1:(_=this._input.peek()==="\\",this._input.peek()==="["?N=!0:this._input.peek()==="]"&&(N=!1)),this._input.next();return this._input.peek()===oe&&(ye+=this._input.next(),ye+=this._input.read(m.identifier)),this._create_token(H.STRING,ye)}return null},T.prototype._read_xml=function(oe,fe){if(this._options.e4x&&oe==="<"&&this._allow_regexp_or_xml(fe)){var ye="",_=this.__patterns.xml.read_match();if(_){for(var N=_[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),X=N.indexOf("{")===0,he=0;_;){var qe=!!_[1],st=_[2],nt=!!_[_.length-1]||st.slice(0,8)==="![CDATA[";if(!nt&&(st===N||X&&st.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(qe?--he:++he),ye+=_[0],he<=0)break;_=this.__patterns.xml.read_match()}return _||(ye+=this._input.match(/[\s\S]*/g)[0]),ye=ye.replace(m.allLineBreaks,`
|
|
|
`),this._create_token(H.STRING,ye)}}return null};function Ee(oe){for(var fe="",ye=0,_=new L(oe),N=null;_.hasNext();)if(N=_.match(/([\s]|[^\\]|\\\\)+/g),N&&(fe+=N[0]),_.peek()==="\\"){if(_.next(),_.peek()==="x")N=_.match(/x([0-9A-Fa-f]{2})/g);else if(_.peek()==="u")N=_.match(/u([0-9A-Fa-f]{4})/g),N||(N=_.match(/u\{([0-9A-Fa-f]+)\}/g));else{fe+="\\",_.hasNext()&&(fe+=_.next());continue}if(!N||(ye=parseInt(N[1],16),ye>126&&ye<=255&&N[0].indexOf("x")===0))return oe;ye>=0&&ye<32||ye>1114111?fe+="\\"+N[0]:ye===34||ye===39||ye===92?fe+="\\"+String.fromCharCode(ye):fe+=String.fromCharCode(ye)}return fe}T.prototype._read_string_recursive=function(oe,fe,ye){var _,N;oe==="'"?N=this.__patterns.single_quote:oe==='"'?N=this.__patterns.double_quote:oe==="`"?N=this.__patterns.template_text:oe==="}"&&(N=this.__patterns.template_expression);for(var X=N.read(),he="";this._input.hasNext();){if(he=this._input.next(),he===oe||!fe&&m.newline.test(he)){this._input.back();break}else he==="\\"&&this._input.hasNext()?(_=this._input.peek(),_==="x"||_==="u"?this.has_char_escapes=!0:_==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),he+=this._input.next()):ye&&(ye==="${"&&he==="$"&&this._input.peek()==="{"&&(he+=this._input.next()),ye===he&&(oe==="`"?he+=this._read_string_recursive("}",fe,"`"):he+=this._read_string_recursive("`",fe,"${"),this._input.hasNext()&&(he+=this._input.next())));he+=N.read(),X+=he}return X},I.exports.Tokenizer=T,I.exports.TOKEN=H,I.exports.positionable_operators=le.slice(),I.exports.line_starters=Ce.slice()},function(I){var n=RegExp.prototype.hasOwnProperty("sticky");function o(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position<this.__input_length},o.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},o.prototype.peek=function(L){var p=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(p=this.__input.charAt(L)),p},o.prototype.__match=function(L,p){L.lastIndex=p;var a=L.exec(this.__input);return a&&!(n&&L.sticky)&&a.index!==p&&(a=null),a},o.prototype.test=function(L,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(L,p):!1},o.prototype.testChar=function(L,p){var a=this.peek(p);return L.lastIndex=0,a!==null&&L.test(a)},o.prototype.match=function(L){var p=this.__match(L,this.__position);return p?this.__position+=p[0].length:p=null,p},o.prototype.read=function(L,p,a){var d="",m;return L&&(m=this.match(L),m&&(d+=m[0])),p&&(m||!L)&&(d+=this.readUntil(p,a)),d},o.prototype.readUntil=function(L,p){var a="",d=this.__position;L.lastIndex=this.__position;var m=L.exec(this.__input);return m?(d=m.index,p&&(d+=m[0].length)):d=this.__input_length,a=this.__input.substring(this.__position,d),this.__position=d,a},o.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},o.prototype.get_regexp=function(L,p){var a=null,d="g";return p&&n&&(d="y"),typeof L=="string"&&L!==""?a=new RegExp(L,d):L&&(a=new RegExp(L.source,d)),a},o.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},o.prototype.peekUntilAfter=function(L){var p=this.__position,a=this.readUntilAfter(L);return this.__position=p,a},o.prototype.lookBack=function(L){var p=this.__position-1;return p>=L.length&&this.__input.substring(p-L.length,p).toLowerCase()===L},I.exports.InputScanner=o},function(I,n,o){var L=o(8).InputScanner,p=o(3).Token,a=o(10).TokenStream,d=o(11).WhitespacePattern,m={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},S=function($,F){this._input=new L($),this._options=F||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new d(this._input)};S.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var $,F=new p(m.START,""),H=null,V=[],ee=new a;F.type!==m.EOF;){for($=this._get_next_token(F,H);this._is_comment($);)ee.add($),$=this._get_next_token(F,H);ee.isEmpty()||($.comments_before=ee,ee=new a),$.parent=H,this._is_opening($)?(V.push(H),H=$):H&&this._is_closing($,H)&&($.opened=H,H.closed=$,H=V.pop(),$.parent=H),$.previous=F,F.next=$,this.__tokens.add($),F=$}return this.__tokens},S.prototype._is_first_token=function(){return this.__tokens.isEmpty()},S.prototype._reset=function(){},S.prototype._get_next_token=function($,F){this._readWhitespace();var H=this._input.read(/.+/g);return H?this._create_token(m.RAW,H):this._create_token(m.EOF,"")},S.prototype._is_comment=function($){return!1},S.prototype._is_opening=function($){return!1},S.prototype._is_closing=function($,F){return!1},S.prototype._create_token=function($,F){var H=new p($,F,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return H},S.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},I.exports.Tokenizer=S,I.exports.TOKEN=m},function(I){function n(o){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=o}n.prototype.restart=function(){this.__position=0},n.prototype.isEmpty=function(){return this.__tokens_length===0},n.prototype.hasNext=function(){return this.__position<this.__tokens_length},n.prototype.next=function(){var o=null;return this.hasNext()&&(o=this.__tokens[this.__position],this.__position+=1),o},n.prototype.peek=function(o){var L=null;return o=o||0,o+=this.__position,o>=0&&o<this.__tokens_length&&(L=this.__tokens[o]),L},n.prototype.add=function(o){this.__parent_token&&(o.parent=this.__parent_token),this.__tokens.push(o),this.__tokens_length+=1},I.exports.TokenStream=n},function(I,n,o){var L=o(12).Pattern;function p(a,d){L.call(this,a,d),d?this._line_regexp=this._input.get_regexp(d._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}p.prototype=new L,p.prototype.__set_whitespace_patterns=function(a,d){a+="\\t ",d+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+d+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+d+"]")},p.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var d=this.__split(this._newline_regexp,a);this.newline_count=d.length-1,this.whitespace_before_token=d[this.newline_count]}return a},p.prototype.matching=function(a,d){var m=this._create();return m.__set_whitespace_patterns(a,d),m._update(),m},p.prototype._create=function(){return new p(this._input,this)},p.prototype.__split=function(a,d){a.lastIndex=0;for(var m=0,S=[],$=a.exec(d);$;)S.push(d.substring(m,$.index)),m=$.index+$[0].length,$=a.exec(d);return m<d.length?S.push(d.substring(m,d.length)):S.push(""),S},I.exports.WhitespacePattern=p},function(I){function n(o,L){this._input=o,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,L&&(this._starting_pattern=this._input.get_regexp(L._starting_pattern,!0),this._match_pattern=this._input.get_regexp(L._match_pattern,!0),this._until_pattern=this._input.get_regexp(L._until_pattern),this._until_after=L._until_after)}n.prototype.read=function(){var o=this._input.read(this._starting_pattern);return(!this._starting_pattern||o)&&(o+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),o},n.prototype.read_match=function(){return this._input.match(this._match_pattern)},n.prototype.until_after=function(o){var L=this._create();return L._until_after=!0,L._until_pattern=this._input.get_regexp(o),L._update(),L},n.prototype.until=function(o){var L=this._create();return L._until_after=!1,L._until_pattern=this._input.get_regexp(o),L._update(),L},n.prototype.starting_with=function(o){var L=this._create();return L._starting_pattern=this._input.get_regexp(o,!0),L._update(),L},n.prototype.matching=function(o){var L=this._create();return L._match_pattern=this._input.get_regexp(o,!0),L._update(),L},n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){},I.exports.Pattern=n},function(I){function n(o,L){o=typeof o=="string"?o:o.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+L,"g")}n.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(o);p;)L[p[1]]=p[2],p=this.__directive_pattern.exec(o);return L},n.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},I.exports.Directives=n},function(I,n,o){var L=o(12).Pattern,p={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function a(d,m){L.call(this,d,m),this.__template_pattern=null,this._disabled=Object.assign({},p),this._excluded=Object.assign({},p),m&&(this.__template_pattern=this._input.get_regexp(m.__template_pattern),this._excluded=Object.assign(this._excluded,m._excluded),this._disabled=Object.assign(this._disabled,m._disabled));var S=new L(d);this.__patterns={handlebars_comment:S.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:S.starting_with(/{{{/).until_after(/}}}/),handlebars:S.starting_with(/{{/).until_after(/}}/),php:S.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:S.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:S.starting_with(/{%/).until_after(/%}/),django_value:S.starting_with(/{{/).until_after(/}}/),django_comment:S.starting_with(/{#/).until_after(/#}/),smarty:S.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:S.starting_with(/{\*/).until_after(/\*}/),smarty_literal:S.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new L,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(d){var m=this._create();return m._disabled[d]=!0,m._update(),m},a.prototype.read_options=function(d){var m=this._create();for(var S in p)m._disabled[S]=d.templating.indexOf(S)===-1;return m._update(),m},a.prototype.exclude=function(d){var m=this._create();return m._excluded[d]=!0,m._update(),m},a.prototype.read=function(){var d="";this._match_pattern?d=this._input.read(this._starting_pattern):d=this._input.read(this._starting_pattern,this.__template_pattern);for(var m=this._read_template();m;)this._match_pattern?m+=this._input.read(this._match_pattern):m+=this._input.readUntil(this.__template_pattern),d+=m,m=this._read_template();return this._until_after&&(d+=this._input.readUntilAfter(this._until_pattern)),d},a.prototype.__set_templated_pattern=function(){var d=[];this._disabled.php||d.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||d.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||d.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||d.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(d.push(this.__patterns.django._starting_pattern.source),d.push(this.__patterns.django_value._starting_pattern.source),d.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||d.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&d.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+d.join("|")+")")},a.prototype._read_template=function(){var d="",m=this._input.peek();if(m==="<"){var S=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&S==="?"&&(d=d||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&S==="%"&&(d=d||this.__patterns.erb.read())}else m==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(d=d||this.__patterns.handlebars_comment.read(),d=d||this.__patterns.handlebars_unescaped.read(),d=d||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(d=d||this.__patterns.django_value.read()),this._excluded.django||(d=d||this.__patterns.django_comment.read(),d=d||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(d=d||this.__patterns.smarty_comment.read(),d=d||this.__patterns.smarty_literal.read(),d=d||this.__patterns.smarty.read()));return d},I.exports.TemplatablePattern=a}],ie={};function Y(I){var n=ie[I];if(n!==void 0)return n.exports;var o=ie[I]={exports:{}};return Me[I](o,o.exports,Y),o.exports}var O=Y(0);Fe=O})();var se=Fe;g=[],xe=function(){return{js_beautify:se}}.apply(Wt,g),xe!==void 0&&(yn.exports=xe)})()},7348:function(yn,Wt,g){"use strict";g.r(Wt),g.d(Wt,{AcroForm:function(){return Ys},AcroFormAppearance:function(){return Ii},AcroFormButton:function(){return la},AcroFormCheckBox:function(){return Gs},AcroFormChoiceField:function(){return $s},AcroFormComboBox:function(){return Fi},AcroFormEditBox:function(){return pi},AcroFormListBox:function(){return Ps},AcroFormPasswordField:function(){return Ns},AcroFormPushButton:function(){return ps},AcroFormRadioButton:function(){return Oa},AcroFormTextField:function(){return mo},GState:function(){return Ua},ShadingPattern:function(){return ns},TilingPattern:function(){return Fa},default:function(){return Ni},jsPDF:function(){return Ni}});var xe=g(20135),Fe={},se=function(b,c,v,U,ne){var W=new Worker(Fe[c]||(Fe[c]=URL.createObjectURL(new Blob([b+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return W.onmessage=function(ge){var De=ge.data,ke=De.$e$;if(ke){var rt=new Error(ke[0]);rt.code=ke[1],rt.stack=ke[2],ne(rt,null)}else ne(null,De)},W.postMessage(v,U),W},Me=Uint8Array,ie=Uint16Array,Y=Int32Array,O=new Me([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]),I=new Me([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),n=new Me([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(b,c){for(var v=new ie(31),U=0;U<31;++U)v[U]=c+=1<<b[U-1];for(var ne=new Y(v[30]),U=1;U<30;++U)for(var W=v[U];W<v[U+1];++W)ne[W]=W-v[U]<<5|U;return{b:v,r:ne}},L=o(O,2),p=L.b,a=L.r;p[28]=258,a[258]=28;for(var d=o(I,0),m=d.b,S=d.r,$=new ie(32768),F=0;F<32768;++F){var H=(F&43690)>>1|(F&21845)<<1;H=(H&52428)>>2|(H&13107)<<2,H=(H&61680)>>4|(H&3855)<<4,$[F]=((H&65280)>>8|(H&255)<<8)>>1}for(var V=function(b,c,v){for(var U=b.length,ne=0,W=new ie(c);ne<U;++ne)b[ne]&&++W[b[ne]-1];var ge=new ie(c);for(ne=1;ne<c;++ne)ge[ne]=ge[ne-1]+W[ne-1]<<1;var De;if(v){De=new ie(1<<c);var ke=15-c;for(ne=0;ne<U;++ne)if(b[ne])for(var rt=ne<<4|b[ne],vt=c-b[ne],yt=ge[b[ne]-1]++<<vt,Ot=yt|(1<<vt)-1;yt<=Ot;++yt)De[$[yt]>>ke]=rt}else for(De=new ie(U),ne=0;ne<U;++ne)b[ne]&&(De[ne]=$[ge[b[ne]-1]++]>>15-b[ne]);return De},ee=new Me(288),F=0;F<144;++F)ee[F]=8;for(var F=144;F<256;++F)ee[F]=9;for(var F=256;F<280;++F)ee[F]=7;for(var F=280;F<288;++F)ee[F]=8;for(var B=new Me(32),F=0;F<32;++F)B[F]=5;var G=V(ee,9,0),le=V(ee,9,1),J=V(B,5,0),we=V(B,5,1),Ce=function(b){for(var c=b[0],v=1;v<b.length;++v)b[v]>c&&(c=b[v]);return c},Le=function(b,c,v){var U=c/8|0;return(b[U]|b[U+1]<<8)>>(c&7)&v},ae=function(b,c){var v=c/8|0;return(b[v]|b[v+1]<<8|b[v+2]<<16)>>(c&7)},pe=function(b){return(b+7)/8|0},T=function(b,c,v){return(c==null||c<0)&&(c=0),(v==null||v>b.length)&&(v=b.length),new Me(b.subarray(c,v))},Ee={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},oe=["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"],fe=function(b,c,v){var U=new Error(c||oe[b]);if(U.code=b,Error.captureStackTrace&&Error.captureStackTrace(U,fe),!v)throw U;return U},ye=function(b,c,v,U){var ne=b.length,W=U?U.length:0;if(!ne||c.f&&!c.l)return v||new Me(0);var ge=!v,De=ge||c.i!=2,ke=c.i;ge&&(v=new Me(ne*3));var rt=function(Zr){var sn=v.length;if(Zr>sn){var An=new Me(Math.max(sn*2,Zr));An.set(v),v=An}},vt=c.f||0,yt=c.p||0,Ot=c.b||0,Ve=c.l,cr=c.d,tr=c.m,hr=c.n,jt=ne*8;do{if(!Ve){vt=Le(b,yt,1);var Ar=Le(b,yt+1,3);if(yt+=3,Ar)if(Ar==1)Ve=le,cr=we,tr=9,hr=5;else if(Ar==2){var Ai=Le(b,yt,31)+257,hn=Le(b,yt+10,15)+4,Br=Ai+Le(b,yt+5,31)+1;yt+=14;for(var vn=new Me(Br),Gn=new Me(19),zt=0;zt<hn;++zt)Gn[n[zt]]=Le(b,yt+zt*3,7);yt+=hn*3;for(var nr=Ce(Gn),Nr=(1<<nr)-1,ve=V(Gn,nr,1),zt=0;zt<Br;){var Pe=ve[Le(b,yt,Nr)];yt+=Pe&15;var kr=Pe>>4;if(kr<16)vn[zt++]=kr;else{var Xe=0,lt=0;for(kr==16?(lt=3+Le(b,yt,3),yt+=2,Xe=vn[zt-1]):kr==17?(lt=3+Le(b,yt,7),yt+=3):kr==18&&(lt=11+Le(b,yt,127),yt+=7);lt--;)vn[zt++]=Xe}}var ut=vn.subarray(0,Ai),xt=vn.subarray(Ai);tr=Ce(ut),hr=Ce(xt),Ve=V(ut,tr,1),cr=V(xt,hr,1)}else fe(1);else{var kr=pe(yt)+4,ln=b[kr-4]|b[kr-3]<<8,Ln=kr+ln;if(Ln>ne){ke&&fe(0);break}De&&rt(Ot+ln),v.set(b.subarray(kr,Ln),Ot),c.b=Ot+=ln,c.p=yt=Ln*8,c.f=vt;continue}if(yt>jt){ke&&fe(0);break}}De&&rt(Ot+131072);for(var Qt=(1<<tr)-1,lr=(1<<hr)-1,He=yt;;He=yt){var Xe=Ve[ae(b,yt)&Qt],At=Xe>>4;if(yt+=Xe&15,yt>jt){ke&&fe(0);break}if(Xe||fe(2),At<256)v[Ot++]=At;else if(At==256){He=yt,Ve=null;break}else{var Te=At-254;if(At>264){var zt=At-257,Ft=O[zt];Te=Le(b,yt,(1<<Ft)-1)+p[zt],yt+=Ft}var er=cr[ae(b,yt)&lr],or=er>>4;er||fe(3),yt+=er&15;var xt=m[or];if(or>3){var Ft=I[or];xt+=ae(b,yt)&(1<<Ft)-1,yt+=Ft}if(yt>jt){ke&&fe(0);break}De&&rt(Ot+131072);var ur=Ot+Te;if(Ot<xt){var St=W-xt,Gr=Math.min(xt,ur);for(St+Ot<0&&fe(3);Ot<Gr;++Ot)v[Ot]=U[St+Ot]}for(;Ot<ur;++Ot)v[Ot]=v[Ot-xt]}}c.l=Ve,c.p=He,c.b=Ot,c.f=vt,Ve&&(vt=1,c.m=tr,c.d=cr,c.n=hr)}while(!vt);return Ot!=v.length&&ge?T(v,0,Ot):v.subarray(0,Ot)},_=function(b,c,v){v<<=c&7;var U=c/8|0;b[U]|=v,b[U+1]|=v>>8},N=function(b,c,v){v<<=c&7;var U=c/8|0;b[U]|=v,b[U+1]|=v>>8,b[U+2]|=v>>16},X=function(b,c){for(var v=[],U=0;U<b.length;++U)b[U]&&v.push({s:U,f:b[U]});var ne=v.length,W=v.slice();if(!ne)return{t:Jt,l:0};if(ne==1){var ge=new Me(v[0].s+1);return ge[v[0].s]=1,{t:ge,l:1}}v.sort(function(Ln,Ai){return Ln.f-Ai.f}),v.push({s:-1,f:25001});var De=v[0],ke=v[1],rt=0,vt=1,yt=2;for(v[0]={s:-1,f:De.f+ke.f,l:De,r:ke};vt!=ne-1;)De=v[v[rt].f<v[yt].f?rt++:yt++],ke=v[rt!=vt&&v[rt].f<v[yt].f?rt++:yt++],v[vt++]={s:-1,f:De.f+ke.f,l:De,r:ke};for(var Ot=W[0].s,U=1;U<ne;++U)W[U].s>Ot&&(Ot=W[U].s);var Ve=new ie(Ot+1),cr=he(v[vt-1],Ve,0);if(cr>c){var U=0,tr=0,hr=cr-c,jt=1<<hr;for(W.sort(function(Ai,hn){return Ve[hn.s]-Ve[Ai.s]||Ai.f-hn.f});U<ne;++U){var Ar=W[U].s;if(Ve[Ar]>c)tr+=jt-(1<<cr-Ve[Ar]),Ve[Ar]=c;else break}for(tr>>=hr;tr>0;){var kr=W[U].s;Ve[kr]<c?tr-=1<<c-Ve[kr]++-1:++U}for(;U>=0&&tr;--U){var ln=W[U].s;Ve[ln]==c&&(--Ve[ln],++tr)}cr=c}return{t:new Me(Ve),l:cr}},he=function(b,c,v){return b.s==-1?Math.max(he(b.l,c,v+1),he(b.r,c,v+1)):c[b.s]=v},qe=function(b){for(var c=b.length;c&&!b[--c];);for(var v=new ie(++c),U=0,ne=b[0],W=1,ge=function(ke){v[U++]=ke},De=1;De<=c;++De)if(b[De]==ne&&De!=c)++W;else{if(!ne&&W>2){for(;W>138;W-=138)ge(32754);W>2&&(ge(W>10?W-11<<5|28690:W-3<<5|12305),W=0)}else if(W>3){for(ge(ne),--W;W>6;W-=6)ge(8304);W>2&&(ge(W-3<<5|8208),W=0)}for(;W--;)ge(ne);W=1,ne=b[De]}return{c:v.subarray(0,U),n:c}},st=function(b,c){for(var v=0,U=0;U<c.length;++U)v+=b[U]*c[U];return v},nt=function(b,c,v){var U=v.length,ne=pe(c+2);b[ne]=U&255,b[ne+1]=U>>8,b[ne+2]=b[ne]^255,b[ne+3]=b[ne+1]^255;for(var W=0;W<U;++W)b[ne+W+4]=v[W];return(ne+4+U)*8},Rt=function(b,c,v,U,ne,W,ge,De,ke,rt,vt){_(c,vt++,v),++ne[256];for(var yt=X(ne,15),Ot=yt.t,Ve=yt.l,cr=X(W,15),tr=cr.t,hr=cr.l,jt=qe(Ot),Ar=jt.c,kr=jt.n,ln=qe(tr),Ln=ln.c,Ai=ln.n,hn=new ie(19),Br=0;Br<Ar.length;++Br)++hn[Ar[Br]&31];for(var Br=0;Br<Ln.length;++Br)++hn[Ln[Br]&31];for(var vn=X(hn,7),Gn=vn.t,zt=vn.l,nr=19;nr>4&&!Gn[n[nr-1]];--nr);var Nr=rt+5<<3,ve=st(ne,ee)+st(W,B)+ge,Pe=st(ne,Ot)+st(W,tr)+ge+14+3*nr+st(hn,Gn)+2*hn[16]+3*hn[17]+7*hn[18];if(ke>=0&&Nr<=ve&&Nr<=Pe)return nt(c,vt,b.subarray(ke,ke+rt));var Xe,lt,ut,xt;if(_(c,vt,1+(Pe<ve)),vt+=2,Pe<ve){Xe=V(Ot,Ve,0),lt=Ot,ut=V(tr,hr,0),xt=tr;var Qt=V(Gn,zt,0);_(c,vt,kr-257),_(c,vt+5,Ai-1),_(c,vt+10,nr-4),vt+=14;for(var Br=0;Br<nr;++Br)_(c,vt+3*Br,Gn[n[Br]]);vt+=3*nr;for(var lr=[Ar,Ln],He=0;He<2;++He)for(var At=lr[He],Br=0;Br<At.length;++Br){var Te=At[Br]&31;_(c,vt,Qt[Te]),vt+=Gn[Te],Te>15&&(_(c,vt,At[Br]>>5&127),vt+=At[Br]>>12)}}else Xe=G,lt=ee,ut=J,xt=B;for(var Br=0;Br<De;++Br){var Ft=U[Br];if(Ft>255){var Te=Ft>>18&31;N(c,vt,Xe[Te+257]),vt+=lt[Te+257],Te>7&&(_(c,vt,Ft>>23&31),vt+=O[Te]);var er=Ft&31;N(c,vt,ut[er]),vt+=xt[er],er>3&&(N(c,vt,Ft>>5&8191),vt+=I[er])}else N(c,vt,Xe[Ft]),vt+=lt[Ft]}return N(c,vt,Xe[256]),vt+lt[256]},sr=new Y([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Jt=new Me(0),We=function(b,c,v,U,ne,W){var ge=W.z||b.length,De=new Me(U+ge+5*(1+Math.ceil(ge/7e3))+ne),ke=De.subarray(U,De.length-ne),rt=W.l,vt=(W.r||0)&7;if(c){vt&&(ke[0]=W.r>>3);for(var yt=sr[c-1],Ot=yt>>13,Ve=yt&8191,cr=(1<<v)-1,tr=W.p||new ie(32768),hr=W.h||new ie(cr+1),jt=Math.ceil(v/3),Ar=2*jt,kr=function(ni){return(b[ni]^b[ni+1]<<jt^b[ni+2]<<Ar)&cr},ln=new Y(25e3),Ln=new ie(288),Ai=new ie(32),hn=0,Br=0,vn=W.i||0,Gn=0,zt=W.w||0,nr=0;vn+2<ge;++vn){var Nr=kr(vn),ve=vn&32767,Pe=hr[Nr];if(tr[ve]=Pe,hr[Nr]=ve,zt<=vn){var Xe=ge-vn;if((hn>7e3||Gn>24576)&&(Xe>423||!rt)){vt=Rt(b,ke,0,ln,Ln,Ai,Br,Gn,nr,vn-nr,vt),Gn=hn=Br=0,nr=vn;for(var lt=0;lt<286;++lt)Ln[lt]=0;for(var lt=0;lt<30;++lt)Ai[lt]=0}var ut=2,xt=0,Qt=Ve,lr=ve-Pe&32767;if(Xe>2&&Nr==kr(vn-lr))for(var He=Math.min(Ot,Xe)-1,At=Math.min(32767,vn),Te=Math.min(258,Xe);lr<=At&&--Qt&&ve!=Pe;){if(b[vn+ut]==b[vn+ut-lr]){for(var Ft=0;Ft<Te&&b[vn+Ft]==b[vn+Ft-lr];++Ft);if(Ft>ut){if(ut=Ft,xt=lr,Ft>He)break;for(var er=Math.min(lr,Ft-2),or=0,lt=0;lt<er;++lt){var ur=vn-lr+lt&32767,St=tr[ur],Gr=ur-St&32767;Gr>or&&(or=Gr,Pe=ur)}}}ve=Pe,Pe=tr[ve],lr+=ve-Pe&32767}if(xt){ln[Gn++]=268435456|a[ut]<<18|S[xt];var Zr=a[ut]&31,sn=S[xt]&31;Br+=O[Zr]+I[sn],++Ln[257+Zr],++Ai[sn],zt=vn+ut,++hn}else ln[Gn++]=b[vn],++Ln[b[vn]]}}for(vn=Math.max(vn,zt);vn<ge;++vn)ln[Gn++]=b[vn],++Ln[b[vn]];vt=Rt(b,ke,rt,ln,Ln,Ai,Br,Gn,nr,vn-nr,vt),rt||(W.r=vt&7|ke[vt/8|0]<<3,vt-=7,W.h=hr,W.p=tr,W.i=vn,W.w=zt)}else{for(var vn=W.w||0;vn<ge+rt;vn+=65535){var An=vn+65535;An>=ge&&(ke[vt/8|0]=rt,An=ge),vt=nt(ke,vt+1,b.subarray(vn,An))}W.i=ge}return T(De,0,U+pe(vt)+ne)},Er=null,xr=function(){var b=-1;return{p:function(c){for(var v=b,U=0;U<c.length;++U)v=Er[v&255^c[U]]^v>>>8;b=v},d:function(){return~b}}},Wr=function(){var b=1,c=0;return{p:function(v){for(var U=b,ne=c,W=v.length|0,ge=0;ge!=W;){for(var De=Math.min(ge+2655,W);ge<De;++ge)ne+=U+=v[ge];U=(U&65535)+15*(U>>16),ne=(ne&65535)+15*(ne>>16)}b=U,c=ne},d:function(){return b%=65521,c%=65521,(b&255)<<24|(b&65280)<<8|(c&255)<<8|c>>8}}},Cr=function(b,c,v,U,ne){if(!ne&&(ne={l:1},c.dictionary)){var W=c.dictionary.subarray(-32768),ge=new Me(W.length+b.length);ge.set(W),ge.set(b,W.length),b=ge,ne.w=W.length}return We(b,c.level==null?6:c.level,c.mem==null?ne.l?Math.ceil(Math.max(8,Math.min(13,Math.log(b.length)))*1.5):20:12+c.mem,v,U,ne)},_e=function(b,c){var v={};for(var U in b)v[U]=b[U];for(var U in c)v[U]=c[U];return v},kt=function(b,c,v){for(var U=b(),ne=b.toString(),W=ne.slice(ne.indexOf("[")+1,ne.lastIndexOf("]")).replace(/\s+/g,"").split(","),ge=0;ge<U.length;++ge){var De=U[ge],ke=W[ge];if(typeof De=="function"){c+=";"+ke+"=";var rt=De.toString();if(De.prototype)if(rt.indexOf("[native code]")!=-1){var vt=rt.indexOf(" ",8)+1;c+=rt.slice(vt,rt.indexOf("(",vt))}else{c+=rt;for(var yt in De.prototype)c+=";"+ke+".prototype."+yt+"="+De.prototype[yt].toString()}else c+=rt}else v[ke]=De}return c},K=null,y=function(b){var c=[];for(var v in b)b[v].buffer&&c.push((b[v]=new b[v].constructor(b[v])).buffer);return c},h=function(b,c,v,U){if(!K[v]){for(var ne="",W={},ge=b.length-1,De=0;De<ge;++De)ne=kt(b[De],ne,W);K[v]={c:kt(b[ge],ne,W),e:W}}var ke=_e({},K[v].e);return se(K[v].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+c.toString()+"}",v,ke,y(ke),U)},D=function(){return[Me,ie,Y,O,I,n,p,m,le,we,$,oe,V,Ce,Le,ae,pe,T,fe,ye,et,Be,Ie]},Ae=function(){return[Me,ie,Y,O,I,n,a,S,G,ee,J,B,$,sr,Jt,V,_,N,X,he,qe,st,nt,Rt,pe,T,We,Cr,Jr,Be]},Z=function(){return[Bt,mr,Ke,xr,Er]},k=function(){return[Vt,Ut]},te=function(){return[br,Ke,Wr]},Se=function(){return[re]},Be=function(b){return postMessage(b,[b.buffer])},Ie=function(b){return b&&{out:b.size&&new Me(b.size),dictionary:b.dictionary}},Ge=function(b,c,v,U,ne,W){var ge=h(v,U,ne,function(De,ke){ge.terminate(),W(De,ke)});return ge.postMessage([b,c],c.consume?[b.buffer]:[]),function(){ge.terminate()}},mt=function(b){return b.ondata=function(c,v){return postMessage([c,v],[c.buffer])},function(c){c.data.length?(b.push(c.data[0],c.data[1]),postMessage([c.data[0].length])):b.flush()}},$e=function(b,c,v,U,ne,W,ge){var De,ke=h(b,U,ne,function(rt,vt){rt?(ke.terminate(),c.ondata.call(c,rt)):Array.isArray(vt)?vt.length==1?(c.queuedSize-=vt[0],c.ondrain&&c.ondrain(vt[0])):(vt[1]&&ke.terminate(),c.ondata.call(c,rt,vt[0],vt[1])):ge(vt)});ke.postMessage(v),c.queuedSize=0,c.push=function(rt,vt){c.ondata||fe(5),De&&c.ondata(fe(4,0,1),null,!!vt),c.queuedSize+=rt.length,ke.postMessage([rt,De=vt],[rt.buffer])},c.terminate=function(){ke.terminate()},W&&(c.flush=function(){ke.postMessage([])})},tt=function(b,c){return b[c]|b[c+1]<<8},dt=function(b,c){return(b[c]|b[c+1]<<8|b[c+2]<<16|b[c+3]<<24)>>>0},Ze=function(b,c){return dt(b,c)+dt(b,c+4)*4294967296},Ke=function(b,c,v){for(;v;++c)b[c]=v,v>>>=8},Bt=function(b,c){var v=c.filename;if(b[0]=31,b[1]=139,b[2]=8,b[8]=c.level<2?4:c.level==9?2:0,b[9]=3,c.mtime!=0&&Ke(b,4,Math.floor(new Date(c.mtime||Date.now())/1e3)),v){b[3]=8;for(var U=0;U<=v.length;++U)b[U+10]=v.charCodeAt(U)}},Vt=function(b){(b[0]!=31||b[1]!=139||b[2]!=8)&&fe(6,"invalid gzip data");var c=b[3],v=10;c&4&&(v+=(b[10]|b[11]<<8)+2);for(var U=(c>>3&1)+(c>>4&1);U>0;U-=!b[v++]);return v+(c&2)},Ut=function(b){var c=b.length;return(b[c-4]|b[c-3]<<8|b[c-2]<<16|b[c-1]<<24)>>>0},mr=function(b){return 10+(b.filename?b.filename.length+1:0)},br=function(b,c){var v=c.level,U=v==0?0:v<6?1:v==9?3:2;if(b[0]=120,b[1]=U<<6|(c.dictionary&&32),b[1]|=31-(b[0]<<8|b[1])%31,c.dictionary){var ne=Wr();ne.p(c.dictionary),Ke(b,2,ne.d())}},re=function(b,c){return((b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31)&&fe(6,"invalid zlib data"),(b[1]>>5&1)==+!c&&fe(6,"invalid zlib data: "+(b[1]&32?"need":"unexpected")+" dictionary"),(b[1]>>3&4)+2};function ue(b,c){return typeof b=="function"&&(c=b,b={}),this.ondata=c,b}var rr=null,Qe=null;function ot(b,c,v){return v||(v=c,c={}),typeof v!="function"&&fe(7),Ge(b,c,[Ae],function(U){return Be(Jr(U.data[0],U.data[1]))},0,v)}function Jr(b,c){return Cr(b,c||{},0,0)}var Tt=null,Kt=null;function qt(b,c,v){return v||(v=c,c={}),typeof v!="function"&&fe(7),Ge(b,c,[D],function(U){return Be(et(U.data[0],Ie(U.data[1])))},1,v)}function et(b,c){return ye(b,{i:2},c&&c.out,c&&c.dictionary)}var ft=null,ht=null;function Gt(b,c,v){return v||(v=c,c={}),typeof v!="function"&&fe(7),Ge(b,c,[Ae,Z,function(){return[Oe]}],function(U){return Be(Oe(U.data[0],U.data[1]))},2,v)}function Oe(b,c){c||(c={});var v=xr(),U=b.length;v.p(b);var ne=Cr(b,c,mr(c),8),W=ne.length;return Bt(ne,c),Ke(ne,W-8,v.d()),Ke(ne,W-4,U),ne}var on=null,Mt=null;function On(b,c,v){return v||(v=c,c={}),typeof v!="function"&&fe(7),Ge(b,c,[D,k,function(){return[Xn]}],function(U){return Be(Xn(U.data[0],U.data[1]))},3,v)}function Xn(b,c){var v=Vt(b);return v+8>b.length&&fe(6,"invalid gzip data"),ye(b.subarray(v,-8),{i:2},c&&c.out||new Me(Ut(b)),c&&c.dictionary)}var yi=null,$i=null;function Dn(b,c,v){return v||(v=c,c={}),typeof v!="function"&&fe(7),Ge(b,c,[Ae,te,function(){return[zn]}],function(U){return Be(zn(U.data[0],U.data[1]))},4,v)}function zn(b,c){c||(c={});var v=Wr();v.p(b);var U=Cr(b,c,c.dictionary?6:2,4);return br(U,c),Ke(U,U.length-4,v.d()),U}var Xt=null,$r=null;function en(b,c,v){return v||(v=c,c={}),typeof v!="function"&&fe(7),Ge(b,c,[D,Se,function(){return[Pt]}],function(U){return Be(Pt(U.data[0],Ie(U.data[1])))},5,v)}function Pt(b,c){return ye(b.subarray(re(b,c&&c.dictionary),-4),{i:2},c&&c.out,c&&c.dictionary)}var Et=null,_r=null;function Fr(b,c,v){return v||(v=c,c={}),typeof v!="function"&&fe(7),b[0]==31&&b[1]==139&&b[2]==8?On(b,c,v):(b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31?qt(b,c,v):en(b,c,v)}function In(b,c){return b[0]==31&&b[1]==139&&b[2]==8?Xn(b,c):(b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31?et(b,c):Pt(b,c)}var an=function(b,c,v,U){for(var ne in b){var W=b[ne],ge=c+ne,De=U;Array.isArray(W)&&(De=_e(U,W[1]),W=W[0]),W instanceof Me?v[ge]=[W,De]:(v[ge+="/"]=[new Me(0),De],an(W,ge,v,U))}},_n=typeof TextEncoder!="undefined"&&new TextEncoder,mn=typeof TextDecoder!="undefined"&&new TextDecoder,Mn=0;try{mn.decode(Jt,{stream:!0}),Mn=1}catch(b){}var ei=function(b){for(var c="",v=0;;){var U=b[v++],ne=(U>127)+(U>223)+(U>239);if(v+ne>b.length)return{s:c,r:T(b,v-1)};ne?ne==3?(U=((U&15)<<18|(b[v++]&63)<<12|(b[v++]&63)<<6|b[v++]&63)-65536,c+=String.fromCharCode(55296|U>>10,56320|U&1023)):ne&1?c+=String.fromCharCode((U&31)<<6|b[v++]&63):c+=String.fromCharCode((U&15)<<12|(b[v++]&63)<<6|b[v++]&63):c+=String.fromCharCode(U)}},Kr=null,Vr=null;function Tn(b,c){if(c){for(var v=new Me(b.length),U=0;U<b.length;++U)v[U]=b.charCodeAt(U);return v}if(_n)return _n.encode(b);for(var ne=b.length,W=new Me(b.length+(b.length>>1)),ge=0,De=function(vt){W[ge++]=vt},U=0;U<ne;++U){if(ge+5>W.length){var ke=new Me(ge+8+(ne-U<<1));ke.set(W),W=ke}var rt=b.charCodeAt(U);rt<128||c?De(rt):rt<2048?(De(192|rt>>6),De(128|rt&63)):rt>55295&&rt<57344?(rt=65536+(rt&1047552)|b.charCodeAt(++U)&1023,De(240|rt>>18),De(128|rt>>12&63),De(128|rt>>6&63),De(128|rt&63)):(De(224|rt>>12),De(128|rt>>6&63),De(128|rt&63))}return T(W,0,ge)}function Sn(b,c){if(c){for(var v="",U=0;U<b.length;U+=16384)v+=String.fromCharCode.apply(null,b.subarray(U,U+16384));return v}else{if(mn)return mn.decode(b);var ne=ei(b),W=ne.s,v=ne.r;return v.length&&fe(8),W}}var Un=function(b){return b==1?3:b<6?2:b==9?1:0},Vn=function(b,c){return c+30+tt(b,c+26)+tt(b,c+28)},Ui=function(b,c,v){var U=tt(b,c+28),ne=Sn(b.subarray(c+46,c+46+U),!(tt(b,c+8)&2048)),W=c+46+U,ge=dt(b,c+20),De=v&&ge==4294967295?di(b,W):[ge,dt(b,c+24),dt(b,c+42)],ke=De[0],rt=De[1],vt=De[2];return[tt(b,c+10),ke,rt,ne,W+tt(b,c+30)+tt(b,c+32),vt]},di=function(b,c){for(;tt(b,c)!=1;c+=4+tt(b,c+2));return[Ze(b,c+12),Ze(b,c+4),Ze(b,c+20)]},bn=function(b){var c=0;if(b)for(var v in b){var U=b[v].length;U>65535&&fe(9),c+=U+4}return c},dr=function(b,c,v,U,ne,W,ge,De){var ke=U.length,rt=v.extra,vt=De&&De.length,yt=bn(rt);Ke(b,c,ge!=null?33639248:67324752),c+=4,ge!=null&&(b[c++]=20,b[c++]=v.os),b[c]=20,c+=2,b[c++]=v.flag<<1|(W<0&&8),b[c++]=ne&&8,b[c++]=v.compression&255,b[c++]=v.compression>>8;var Ot=new Date(v.mtime==null?Date.now():v.mtime),Ve=Ot.getFullYear()-1980;if((Ve<0||Ve>119)&&fe(10),Ke(b,c,Ve<<25|Ot.getMonth()+1<<21|Ot.getDate()<<16|Ot.getHours()<<11|Ot.getMinutes()<<5|Ot.getSeconds()>>1),c+=4,W!=-1&&(Ke(b,c,v.crc),Ke(b,c+4,W<0?-W-2:W),Ke(b,c+8,v.size)),Ke(b,c+12,ke),Ke(b,c+14,yt),c+=16,ge!=null&&(Ke(b,c,vt),Ke(b,c+6,v.attrs),Ke(b,c+10,ge),c+=14),b.set(U,c),c+=ke,yt)for(var cr in rt){var tr=rt[cr],hr=tr.length;Ke(b,c,+cr),Ke(b,c+2,hr),b.set(tr,c+4),c+=4+hr}return vt&&(b.set(De,c),c+=vt),c},vr=function(b,c,v,U,ne){Ke(b,c,101010256),Ke(b,c+8,v),Ke(b,c+10,v),Ke(b,c+12,U),Ke(b,c+16,ne)},Ir=null,Yr=null,Mr=null,cn=null;function nn(b,c,v){v||(v=c,c={}),typeof v!="function"&&fe(7);var U={};an(b,"",U,c);var ne=Object.keys(U),W=ne.length,ge=0,De=0,ke=W,rt=new Array(W),vt=[],yt=function(){for(var hr=0;hr<vt.length;++hr)vt[hr]()},Ot=function(hr,jt){Pi(function(){v(hr,jt)})};Pi(function(){Ot=v});var Ve=function(){var hr=new Me(De+22),jt=ge,Ar=De-ge;De=0;for(var kr=0;kr<ke;++kr){var ln=rt[kr];try{var Ln=ln.c.length;dr(hr,De,ln,ln.f,ln.u,Ln);var Ai=30+ln.f.length+bn(ln.extra),hn=De+Ai;hr.set(ln.c,hn),dr(hr,ge,ln,ln.f,ln.u,Ln,De,ln.m),ge+=16+Ai+(ln.m?ln.m.length:0),De=hn+Ln}catch(Br){return Ot(Br,null)}}vr(hr,ge,rt.length,Ar,jt),Ot(null,hr)};W||Ve();for(var cr=function(hr){var jt=ne[hr],Ar=U[jt],kr=Ar[0],ln=Ar[1],Ln=xr(),Ai=kr.length;Ln.p(kr);var hn=Tn(jt),Br=hn.length,vn=ln.comment,Gn=vn&&Tn(vn),zt=Gn&&Gn.length,nr=bn(ln.extra),Nr=ln.level==0?0:8,ve=function(Pe,Xe){if(Pe)yt(),Ot(Pe,null);else{var lt=Xe.length;rt[hr]=_e(ln,{size:Ai,crc:Ln.d(),c:Xe,f:hn,m:Gn,u:Br!=jt.length||Gn&&vn.length!=zt,compression:Nr}),ge+=30+Br+nr+lt,De+=76+2*(Br+nr)+(zt||0)+lt,--W||Ve()}};if(Br>65535&&ve(fe(11,0,1),null),!Nr)ve(null,kr);else if(Ai<16e4)try{ve(null,Jr(kr,ln))}catch(Pe){ve(Pe,null)}else vt.push(ot(kr,ln,ve))},tr=0;tr<ke;++tr)cr(tr);return yt}function jn(b,c){c||(c={});var v={},U=[];an(b,"",v,c);var ne=0,W=0;for(var ge in v){var De=v[ge],ke=De[0],rt=De[1],vt=rt.level==0?0:8,yt=Tn(ge),Ot=yt.length,Ve=rt.comment,cr=Ve&&Tn(Ve),tr=cr&&cr.length,hr=bn(rt.extra);Ot>65535&&fe(11);var jt=vt?Jr(ke,rt):ke,Ar=jt.length,kr=xr();kr.p(ke),U.push(_e(rt,{size:ke.length,crc:kr.d(),c:jt,f:yt,m:cr,u:Ot!=ge.length||cr&&Ve.length!=tr,o:ne,compression:vt})),ne+=30+Ot+hr+Ar,W+=76+2*(Ot+hr)+(tr||0)+Ar}for(var ln=new Me(W+22),Ln=ne,Ai=W-ne,hn=0;hn<U.length;++hn){var yt=U[hn];dr(ln,yt.o,yt,yt.f,yt.u,yt.c.length);var Br=30+yt.f.length+bn(yt.extra);ln.set(yt.c,yt.o+Br),dr(ln,ne,yt,yt.f,yt.u,yt.c.length,yt.o,yt.m),ne+=16+Br+(yt.m?yt.m.length:0)}return vr(ln,ne,U.length,Ai,Ln),ln}var ti=null,ui=null,Ri=null,Qi=null,Pi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(b){b()};function Sr(b,c,v){v||(v=c,c={}),typeof v!="function"&&fe(7);var U=[],ne=function(){for(var hr=0;hr<U.length;++hr)U[hr]()},W={},ge=function(hr,jt){Pi(function(){v(hr,jt)})};Pi(function(){ge=v});for(var De=b.length-22;dt(b,De)!=101010256;--De)if(!De||b.length-De>65558)return ge(fe(13,0,1),null),ne;var ke=tt(b,De+8);if(ke){var rt=ke,vt=dt(b,De+16),yt=vt==4294967295||rt==65535;if(yt){var Ot=dt(b,De-12);yt=dt(b,Ot)==101075792,yt&&(rt=ke=dt(b,Ot+32),vt=dt(b,Ot+48))}for(var Ve=c&&c.filter,cr=function(hr){var jt=Ui(b,vt,yt),Ar=jt[0],kr=jt[1],ln=jt[2],Ln=jt[3],Ai=jt[4],hn=jt[5],Br=Vn(b,hn);vt=Ai;var vn=function(zt,nr){zt?(ne(),ge(zt,null)):(nr&&(W[Ln]=nr),--ke||ge(null,W))};if(!Ve||Ve({name:Ln,size:kr,originalSize:ln,compression:Ar}))if(!Ar)vn(null,T(b,Br,Br+kr));else if(Ar==8){var Gn=b.subarray(Br,Br+kr);if(ln<524288||kr>.8*ln)try{vn(null,et(Gn,{out:new Me(ln)}))}catch(zt){vn(zt,null)}else U.push(qt(Gn,{size:ln},vn))}else vn(fe(14,"unknown compression type "+Ar,1),null);else vn(null,null)},tr=0;tr<rt;++tr)cr(tr)}else ge(null,{});return ne}function Cn(b,c){for(var v={},U=b.length-22;dt(b,U)!=101010256;--U)(!U||b.length-U>65558)&&fe(13);var ne=tt(b,U+8);if(!ne)return{};var W=dt(b,U+16),ge=W==4294967295||ne==65535;if(ge){var De=dt(b,U-12);ge=dt(b,De)==101075792,ge&&(ne=dt(b,De+32),W=dt(b,De+48))}for(var ke=c&&c.filter,rt=0;rt<ne;++rt){var vt=Ui(b,W,ge),yt=vt[0],Ot=vt[1],Ve=vt[2],cr=vt[3],tr=vt[4],hr=vt[5],jt=Vn(b,hr);W=tr,(!ke||ke({name:cr,size:Ot,originalSize:Ve,compression:yt}))&&(yt?yt==8?v[cr]=et(b.subarray(jt,jt+Ot),{out:new Me(Ve)}):fe(14,"unknown compression type "+yt):v[cr]=T(b,jt,jt+Ot))}return v}var fn=function(){return typeof window!="undefined"?window:typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:this}();function hi(){fn.console&&typeof fn.console.log=="function"&&fn.console.log.apply(fn.console,arguments)}var ii={log:hi,warn:function(b){fn.console&&(typeof fn.console.warn=="function"?fn.console.warn.apply(fn.console,arguments):hi.call(null,arguments))},error:function(b){fn.console&&(typeof fn.console.error=="function"?fn.console.error.apply(fn.console,arguments):hi(b))}};function ri(b,c,v){var U=new XMLHttpRequest;U.open("GET",b),U.responseType="blob",U.onload=function(){ua(U.response,c,v)},U.onerror=function(){ii.error("could not download file")},U.send()}function bi(b){var c=new XMLHttpRequest;c.open("HEAD",b,!1);try{c.send()}catch(v){}return c.status>=200&&c.status<=299}function Ti(b){try{b.dispatchEvent(new MouseEvent("click"))}catch(v){var c=document.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),b.dispatchEvent(c)}}var Bi,Zi,ua=fn.saveAs||((typeof window=="undefined"?"undefined":(0,xe.Z)(window))!=="object"||window!==fn?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(b,c,v){var U=fn.URL||fn.webkitURL,ne=document.createElement("a");c=c||b.name||"download",ne.download=c,ne.rel="noopener",typeof b=="string"?(ne.href=b,ne.origin!==location.origin?bi(ne.href)?ri(b,c,v):Ti(ne,ne.target="_blank"):Ti(ne)):(ne.href=U.createObjectURL(b),setTimeout(function(){U.revokeObjectURL(ne.href)},4e4),setTimeout(function(){Ti(ne)},0))}:"msSaveOrOpenBlob"in navigator?function(b,c,v){if(c=c||b.name||"download",typeof b=="string")if(bi(b))ri(b,c,v);else{var U=document.createElement("a");U.href=b,U.target="_blank",setTimeout(function(){Ti(U)})}else navigator.msSaveOrOpenBlob(function(ne,W){return W===void 0?W={autoBom:!1}:(0,xe.Z)(W)!=="object"&&(ii.warn("Deprecated: Expected third argument to be a object"),W={autoBom:!W}),W.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ne.type)?new Blob(["\uFEFF",ne],{type:ne.type}):ne}(b,v),c)}:function(b,c,v,U){if((U=U||open("","_blank"))&&(U.document.title=U.document.body.innerText="downloading..."),typeof b=="string")return ri(b,c,v);var ne=b.type==="application/octet-stream",W=/constructor/i.test(fn.HTMLElement)||fn.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ne&&W)&&(typeof FileReader=="undefined"?"undefined":(0,xe.Z)(FileReader))==="object"){var De=new FileReader;De.onloadend=function(){var vt=De.result;vt=ge?vt:vt.replace(/^data:[^;]*;/,"data:attachment/file;"),U?U.location.href=vt:location=vt,U=null},De.readAsDataURL(b)}else{var ke=fn.URL||fn.webkitURL,rt=ke.createObjectURL(b);U?U.location=rt:location.href=rt,U=null,setTimeout(function(){ke.revokeObjectURL(rt)},4e4)}});function xi(b){var c;b=b||"",this.ok=!1,b.charAt(0)=="#"&&(b=b.substr(1,6)),b={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"}[b=(b=b.replace(/ /g,"")).toLowerCase()]||b;for(var v=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(De){return[parseInt(De[1]),parseInt(De[2]),parseInt(De[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(De){return[parseInt(De[1],16),parseInt(De[2],16),parseInt(De[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(De){return[parseInt(De[1]+De[1],16),parseInt(De[2]+De[2],16),parseInt(De[3]+De[3],16)]}}],U=0;U<v.length;U++){var ne=v[U].re,W=v[U].process,ge=ne.exec(b);ge&&(c=W(ge),this.r=c[0],this.g=c[1],this.b=c[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 De=this.r.toString(16),ke=this.g.toString(16),rt=this.b.toString(16);return De.length==1&&(De="0"+De),ke.length==1&&(ke="0"+ke),rt.length==1&&(rt="0"+rt),"#"+De+ke+rt}}function gn(b,c){var v=b[0],U=b[1],ne=b[2],W=b[3];v=Fn(v,U,ne,W,c[0],7,-680876936),W=Fn(W,v,U,ne,c[1],12,-389564586),ne=Fn(ne,W,v,U,c[2],17,606105819),U=Fn(U,ne,W,v,c[3],22,-1044525330),v=Fn(v,U,ne,W,c[4],7,-176418897),W=Fn(W,v,U,ne,c[5],12,1200080426),ne=Fn(ne,W,v,U,c[6],17,-1473231341),U=Fn(U,ne,W,v,c[7],22,-45705983),v=Fn(v,U,ne,W,c[8],7,1770035416),W=Fn(W,v,U,ne,c[9],12,-1958414417),ne=Fn(ne,W,v,U,c[10],17,-42063),U=Fn(U,ne,W,v,c[11],22,-1990404162),v=Fn(v,U,ne,W,c[12],7,1804603682),W=Fn(W,v,U,ne,c[13],12,-40341101),ne=Fn(ne,W,v,U,c[14],17,-1502002290),v=Zn(v,U=Fn(U,ne,W,v,c[15],22,1236535329),ne,W,c[1],5,-165796510),W=Zn(W,v,U,ne,c[6],9,-1069501632),ne=Zn(ne,W,v,U,c[11],14,643717713),U=Zn(U,ne,W,v,c[0],20,-373897302),v=Zn(v,U,ne,W,c[5],5,-701558691),W=Zn(W,v,U,ne,c[10],9,38016083),ne=Zn(ne,W,v,U,c[15],14,-660478335),U=Zn(U,ne,W,v,c[4],20,-405537848),v=Zn(v,U,ne,W,c[9],5,568446438),W=Zn(W,v,U,ne,c[14],9,-1019803690),ne=Zn(ne,W,v,U,c[3],14,-187363961),U=Zn(U,ne,W,v,c[8],20,1163531501),v=Zn(v,U,ne,W,c[13],5,-1444681467),W=Zn(W,v,U,ne,c[2],9,-51403784),ne=Zn(ne,W,v,U,c[7],14,1735328473),v=Ei(v,U=Zn(U,ne,W,v,c[12],20,-1926607734),ne,W,c[5],4,-378558),W=Ei(W,v,U,ne,c[8],11,-2022574463),ne=Ei(ne,W,v,U,c[11],16,1839030562),U=Ei(U,ne,W,v,c[14],23,-35309556),v=Ei(v,U,ne,W,c[1],4,-1530992060),W=Ei(W,v,U,ne,c[4],11,1272893353),ne=Ei(ne,W,v,U,c[7],16,-155497632),U=Ei(U,ne,W,v,c[10],23,-1094730640),v=Ei(v,U,ne,W,c[13],4,681279174),W=Ei(W,v,U,ne,c[0],11,-358537222),ne=Ei(ne,W,v,U,c[3],16,-722521979),U=Ei(U,ne,W,v,c[6],23,76029189),v=Ei(v,U,ne,W,c[9],4,-640364487),W=Ei(W,v,U,ne,c[12],11,-421815835),ne=Ei(ne,W,v,U,c[15],16,530742520),v=ji(v,U=Ei(U,ne,W,v,c[2],23,-995338651),ne,W,c[0],6,-198630844),W=ji(W,v,U,ne,c[7],10,1126891415),ne=ji(ne,W,v,U,c[14],15,-1416354905),U=ji(U,ne,W,v,c[5],21,-57434055),v=ji(v,U,ne,W,c[12],6,1700485571),W=ji(W,v,U,ne,c[3],10,-1894986606),ne=ji(ne,W,v,U,c[10],15,-1051523),U=ji(U,ne,W,v,c[1],21,-2054922799),v=ji(v,U,ne,W,c[8],6,1873313359),W=ji(W,v,U,ne,c[15],10,-30611744),ne=ji(ne,W,v,U,c[6],15,-1560198380),U=ji(U,ne,W,v,c[13],21,1309151649),v=ji(v,U,ne,W,c[4],6,-145523070),W=ji(W,v,U,ne,c[11],10,-1120210379),ne=ji(ne,W,v,U,c[2],15,718787259),U=ji(U,ne,W,v,c[9],21,-343485551),b[0]=na(v,b[0]),b[1]=na(U,b[1]),b[2]=na(ne,b[2]),b[3]=na(W,b[3])}function Ht(b,c,v,U,ne,W){return c=na(na(c,b),na(U,W)),na(c<<ne|c>>>32-ne,v)}function Fn(b,c,v,U,ne,W,ge){return Ht(c&v|~c&U,b,c,ne,W,ge)}function Zn(b,c,v,U,ne,W,ge){return Ht(c&U|v&~U,b,c,ne,W,ge)}function Ei(b,c,v,U,ne,W,ge){return Ht(c^v^U,b,c,ne,W,ge)}function ji(b,c,v,U,ne,W,ge){return Ht(v^(c|~U),b,c,ne,W,ge)}function da(b){var c,v=b.length,U=[1732584193,-271733879,-1732584194,271733878];for(c=64;c<=b.length;c+=64)gn(U,Ea(b.substring(c-64,c)));b=b.substring(c-64);var ne=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(c=0;c<b.length;c++)ne[c>>2]|=b.charCodeAt(c)<<(c%4<<3);if(ne[c>>2]|=128<<(c%4<<3),c>55)for(gn(U,ne),c=0;c<16;c++)ne[c]=0;return ne[14]=8*v,gn(U,ne),U}function Ea(b){var c,v=[];for(c=0;c<64;c+=4)v[c>>2]=b.charCodeAt(c)+(b.charCodeAt(c+1)<<8)+(b.charCodeAt(c+2)<<16)+(b.charCodeAt(c+3)<<24);return v}Bi=fn.atob.bind(fn),Zi=fn.btoa.bind(fn);var qi="0123456789abcdef".split("");function Sa(b){for(var c="",v=0;v<4;v++)c+=qi[b>>8*v+4&15]+qi[b>>8*v&15];return c}function _i(b){return String.fromCharCode((255&b)>>0,(65280&b)>>8,(16711680&b)>>16,(4278190080&b)>>24)}function ai(b){return da(b).map(_i).join("")}var zi=function(b){for(var c=0;c<b.length;c++)b[c]=Sa(b[c]);return b.join("")}(da("hello"))!="5d41402abc4b2a76b9719d911017c592";function na(b,c){if(zi){var v=(65535&b)+(65535&c);return(b>>16)+(c>>16)+(v>>16)<<16|65535&v}return b+c&4294967295}function Ca(b,c){var v,U,ne,W;if(b!==v){for(var ge=(ne=b,W=1+(256/b.length>>0),new Array(W+1).join(ne)),De=[],ke=0;ke<256;ke++)De[ke]=ke;var rt=0;for(ke=0;ke<256;ke++){var vt=De[ke];rt=(rt+vt+ge.charCodeAt(ke))%256,De[ke]=De[rt],De[rt]=vt}v=b,U=De}else De=U;var yt=c.length,Ot=0,Ve=0,cr="";for(ke=0;ke<yt;ke++)Ve=(Ve+(vt=De[Ot=(Ot+1)%256]))%256,De[Ot]=De[Ve],De[Ve]=vt,ge=De[(De[Ot]+De[Ve])%256],cr+=String.fromCharCode(c.charCodeAt(ke)^ge);return cr}var ys={print:4,modify:8,copy:16,"annot-forms":32};function oi(b,c,v,U){this.v=1,this.r=2;var ne=192;b.forEach(function(De){if(ys.perm!==void 0)throw new Error("Invalid permission: "+De);ne+=ys[De]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var W=(c+this.padding).substr(0,32),ge=(v+this.padding).substr(0,32);this.O=this.processOwnerPassword(W,ge),this.P=-(1+(255^ne)),this.encryptionKey=ai(W+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(U)).substr(0,5),this.U=Ca(this.encryptionKey,this.padding)}function _a(b){if(/[^\u0000-\u00ff]/.test(b))throw new Error("Invalid PDF Name Object: "+b+", Only accept ASCII characters.");for(var c="",v=b.length,U=0;U<v;U++){var ne=b.charCodeAt(U);ne<33||ne===35||ne===37||ne===40||ne===41||ne===47||ne===60||ne===62||ne===91||ne===93||ne===123||ne===125||ne>126?c+="#"+("0"+ne.toString(16)).slice(-2):c+=b[U]}return c}function ga(b){if((0,xe.Z)(b)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var c={};this.subscribe=function(v,U,ne){if(ne=ne||!1,typeof v!="string"||typeof U!="function"||typeof ne!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");c.hasOwnProperty(v)||(c[v]={});var W=Math.random().toString(35);return c[v][W]=[U,!!ne],W},this.unsubscribe=function(v){for(var U in c)if(c[U][v])return delete c[U][v],Object.keys(c[U]).length===0&&delete c[U],!0;return!1},this.publish=function(v){if(c.hasOwnProperty(v)){var U=Array.prototype.slice.call(arguments,1),ne=[];for(var W in c[v]){var ge=c[v][W];try{ge[0].apply(b,U)}catch(De){fn.console&&ii.error("jsPDF PubSub Error",De.message,De)}ge[1]&&ne.push(W)}ne.length&&ne.forEach(this.unsubscribe)}},this.getTopics=function(){return c}}function Ua(b){if(!(this instanceof Ua))return new Ua(b);var c="opacity,stroke-opacity".split(",");for(var v in b)b.hasOwnProperty(v)&&c.indexOf(v)>=0&&(this[v]=b[v]);this.id="",this.objectNumber=-1}function Cs(b,c){this.gState=b,this.matrix=c,this.id="",this.objectNumber=-1}function ns(b,c,v,U,ne){if(!(this instanceof ns))return new ns(b,c,v,U,ne);this.type=b==="axial"?2:3,this.coords=c,this.colors=v,Cs.call(this,U,ne)}function Fa(b,c,v,U,ne){if(!(this instanceof Fa))return new Fa(b,c,v,U,ne);this.boundingBox=b,this.xStep=c,this.yStep=v,this.stream="",this.cloneIndex=0,Cs.call(this,U,ne)}function Ni(b){var c,v=typeof arguments[0]=="string"?arguments[0]:"p",U=arguments[1],ne=arguments[2],W=arguments[3],ge=[],De=1,ke=16,rt="S",vt=null;(0,xe.Z)(b=b||{})==="object"&&(v=b.orientation,U=b.unit||U,ne=b.format||ne,W=b.compress||b.compressPdf||W,(vt=b.encryption||null)!==null&&(vt.userPassword=vt.userPassword||"",vt.ownerPassword=vt.ownerPassword||"",vt.userPermissions=vt.userPermissions||[]),De=typeof b.userUnit=="number"?Math.abs(b.userUnit):1,b.precision!==void 0&&(c=b.precision),b.floatPrecision!==void 0&&(ke=b.floatPrecision),rt=b.defaultPathOperation||"S"),ge=b.filters||(W===!0?["FlateEncode"]:ge),U=U||"mm",v=(""+(v||"P")).toLowerCase();var yt=b.putOnlyUsedFonts||!1,Ot={},Ve={internal:{},__private__:{}};Ve.__private__.PubSub=ga;var cr="1.3",tr=Ve.__private__.getPdfVersion=function(){return cr};Ve.__private__.setPdfVersion=function(ce){cr=ce};var hr={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]};Ve.__private__.getPageFormats=function(){return hr};var jt=Ve.__private__.getPageFormat=function(ce){return hr[ce]};ne=ne||"a4";var Ar={COMPAT:"compat",ADVANCED:"advanced"},kr=Ar.COMPAT;function ln(){this.saveGraphicsState(),Yt(new Di(be,0,0,-be,0,Dl()*be).toString()+" cm"),this.setFontSize(this.getFontSize()/be),rt="n",kr=Ar.ADVANCED}function Ln(){this.restoreGraphicsState(),rt="S",kr=Ar.COMPAT}var Ai=Ve.__private__.combineFontStyleAndFontWeight=function(ce,wt){if(ce=="bold"&&wt=="normal"||ce=="bold"&&wt==400||ce=="normal"&&wt=="italic"||ce=="bold"&&wt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return wt&&(ce=wt==400||wt==="normal"?ce==="italic"?"italic":"normal":wt!=700&&wt!=="bold"||ce!=="normal"?(wt==700?"bold":wt)+""+ce:"bold"),ce};Ve.advancedAPI=function(ce){var wt=kr===Ar.COMPAT;return wt&&ln.call(this),typeof ce!="function"||(ce(this),wt&&Ln.call(this)),this},Ve.compatAPI=function(ce){var wt=kr===Ar.ADVANCED;return wt&&Ln.call(this),typeof ce!="function"||(ce(this),wt&&ln.call(this)),this},Ve.isAdvancedAPI=function(){return kr===Ar.ADVANCED};var hn,Br=function(ce){if(kr!==Ar.ADVANCED)throw new Error(ce+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},vn=Ve.roundToPrecision=Ve.__private__.roundToPrecision=function(ce,wt){var gr=c||wt;if(isNaN(ce)||isNaN(gr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return ce.toFixed(gr).replace(/0+$/,"")};hn=Ve.hpf=Ve.__private__.hpf=typeof ke=="number"?function(ce){if(isNaN(ce))throw new Error("Invalid argument passed to jsPDF.hpf");return vn(ce,ke)}:ke==="smart"?function(ce){if(isNaN(ce))throw new Error("Invalid argument passed to jsPDF.hpf");return vn(ce,ce>-1&&ce<1?16:5)}:function(ce){if(isNaN(ce))throw new Error("Invalid argument passed to jsPDF.hpf");return vn(ce,16)};var Gn=Ve.f2=Ve.__private__.f2=function(ce){if(isNaN(ce))throw new Error("Invalid argument passed to jsPDF.f2");return vn(ce,2)},zt=Ve.__private__.f3=function(ce){if(isNaN(ce))throw new Error("Invalid argument passed to jsPDF.f3");return vn(ce,3)},nr=Ve.scale=Ve.__private__.scale=function(ce){if(isNaN(ce))throw new Error("Invalid argument passed to jsPDF.scale");return kr===Ar.COMPAT?ce*be:kr===Ar.ADVANCED?ce:void 0},Nr=function(ce){return kr===Ar.COMPAT?Dl()-ce:kr===Ar.ADVANCED?ce:void 0},ve=function(ce){return nr(Nr(ce))};Ve.__private__.setPrecision=Ve.setPrecision=function(ce){typeof parseInt(ce,10)=="number"&&(c=parseInt(ce,10))};var Pe,Xe="00000000000000000000000000000000",lt=Ve.__private__.getFileId=function(){return Xe},ut=Ve.__private__.setFileId=function(ce){return Xe=ce!==void 0&&/^[a-fA-F0-9]{32}$/.test(ce)?ce.toUpperCase():Xe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),vt!==null&&(Do=new oi(vt.userPermissions,vt.userPassword,vt.ownerPassword,Xe)),Xe};Ve.setFileId=function(ce){return ut(ce),this},Ve.getFileId=function(){return lt()};var xt=Ve.__private__.convertDateToPDFDate=function(ce){var wt=ce.getTimezoneOffset(),gr=wt<0?"+":"-",Pr=Math.floor(Math.abs(wt/60)),un=Math.abs(wt%60),Wn=[gr,Te(Pr),"'",Te(un),"'"].join("");return["D:",ce.getFullYear(),Te(ce.getMonth()+1),Te(ce.getDate()),Te(ce.getHours()),Te(ce.getMinutes()),Te(ce.getSeconds()),Wn].join("")},Qt=Ve.__private__.convertPDFDateToDate=function(ce){var wt=parseInt(ce.substr(2,4),10),gr=parseInt(ce.substr(6,2),10)-1,Pr=parseInt(ce.substr(8,2),10),un=parseInt(ce.substr(10,2),10),Wn=parseInt(ce.substr(12,2),10),Ci=parseInt(ce.substr(14,2),10);return new Date(wt,gr,Pr,un,Wn,Ci,0)},lr=Ve.__private__.setCreationDate=function(ce){var wt;if(ce===void 0&&(ce=new Date),ce instanceof Date)wt=xt(ce);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(ce))throw new Error("Invalid argument passed to jsPDF.setCreationDate");wt=ce}return Pe=wt},He=Ve.__private__.getCreationDate=function(ce){var wt=Pe;return ce==="jsDate"&&(wt=Qt(Pe)),wt};Ve.setCreationDate=function(ce){return lr(ce),this},Ve.getCreationDate=function(ce){return He(ce)};var At,Te=Ve.__private__.padd2=function(ce){return("0"+parseInt(ce)).slice(-2)},Ft=Ve.__private__.padd2Hex=function(ce){return("00"+(ce=ce.toString())).substr(ce.length)},er=0,or=[],ur=[],St=0,Gr=[],Zr=[],sn=!1,An=ur,ni=function(){er=0,St=0,ur=[],or=[],Gr=[],Aa=Qa(),ma=Qa()};Ve.__private__.setCustomOutputDestination=function(ce){sn=!0,An=ce};var zr=function(ce){sn||(An=ce)};Ve.__private__.resetCustomOutputDestination=function(){sn=!1,An=ur};var Yt=Ve.__private__.out=function(ce){return ce=ce.toString(),St+=ce.length+1,An.push(ce),An},wi=Ve.__private__.write=function(ce){return Yt(arguments.length===1?ce.toString():Array.prototype.join.call(arguments," "))},fi=Ve.__private__.getArrayBuffer=function(ce){for(var wt=ce.length,gr=new ArrayBuffer(wt),Pr=new Uint8Array(gr);wt--;)Pr[wt]=ce.charCodeAt(wt);return gr},tn=[["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]];Ve.__private__.getStandardFonts=function(){return tn};var wn=b.fontSize||16;Ve.__private__.setFontSize=Ve.setFontSize=function(ce){return wn=kr===Ar.ADVANCED?ce/be:ce,this};var pn,rn=Ve.__private__.getFontSize=Ve.getFontSize=function(){return kr===Ar.COMPAT?wn:wn*be},Qn=b.R2L||!1;Ve.__private__.setR2L=Ve.setR2L=function(ce){return Qn=ce,this},Ve.__private__.getR2L=Ve.getR2L=function(){return Qn};var vi,Mi=Ve.__private__.setZoomMode=function(ce){var wt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(ce))pn=ce;else if(isNaN(ce)){if(wt.indexOf(ce)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+ce+'" is not recognized.');pn=ce}else pn=parseInt(ce,10)};Ve.__private__.getZoomMode=function(){return pn};var je,A=Ve.__private__.setPageMode=function(ce){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(ce)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+ce+'" is not recognized.');vi=ce};Ve.__private__.getPageMode=function(){return vi};var w=Ve.__private__.setLayoutMode=function(ce){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(ce)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+ce+'" is not recognized.');je=ce};Ve.__private__.getLayoutMode=function(){return je},Ve.__private__.setDisplayMode=Ve.setDisplayMode=function(ce,wt,gr){return Mi(ce),w(wt),A(gr),this};var E={title:"",subject:"",author:"",keywords:"",creator:""};Ve.__private__.getDocumentProperty=function(ce){if(Object.keys(E).indexOf(ce)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return E[ce]},Ve.__private__.getDocumentProperties=function(){return E},Ve.__private__.setDocumentProperties=Ve.setProperties=Ve.setDocumentProperties=function(ce){for(var wt in E)E.hasOwnProperty(wt)&&ce[wt]&&(E[wt]=ce[wt]);return this},Ve.__private__.setDocumentProperty=function(ce,wt){if(Object.keys(E).indexOf(ce)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return E[ce]=wt};var z,be,ze,pt,It,$t={},fr={},Dr=[],Hr={},Hn={},Ur={},xn={},Nn=null,kn=0,Jn=[],Rn=new ga(Ve),Oi=b.hotfixes||[],Gi={},Ji={},Ia=[],Di=function ce(wt,gr,Pr,un,Wn,Ci){if(!(this instanceof ce))return new ce(wt,gr,Pr,un,Wn,Ci);isNaN(wt)&&(wt=1),isNaN(gr)&&(gr=0),isNaN(Pr)&&(Pr=0),isNaN(un)&&(un=1),isNaN(Wn)&&(Wn=0),isNaN(Ci)&&(Ci=0),this._matrix=[wt,gr,Pr,un,Wn,Ci]};Object.defineProperty(Di.prototype,"sx",{get:function(){return this._matrix[0]},set:function(ce){this._matrix[0]=ce}}),Object.defineProperty(Di.prototype,"shy",{get:function(){return this._matrix[1]},set:function(ce){this._matrix[1]=ce}}),Object.defineProperty(Di.prototype,"shx",{get:function(){return this._matrix[2]},set:function(ce){this._matrix[2]=ce}}),Object.defineProperty(Di.prototype,"sy",{get:function(){return this._matrix[3]},set:function(ce){this._matrix[3]=ce}}),Object.defineProperty(Di.prototype,"tx",{get:function(){return this._matrix[4]},set:function(ce){this._matrix[4]=ce}}),Object.defineProperty(Di.prototype,"ty",{get:function(){return this._matrix[5]},set:function(ce){this._matrix[5]=ce}}),Object.defineProperty(Di.prototype,"a",{get:function(){return this._matrix[0]},set:function(ce){this._matrix[0]=ce}}),Object.defineProperty(Di.prototype,"b",{get:function(){return this._matrix[1]},set:function(ce){this._matrix[1]=ce}}),Object.defineProperty(Di.prototype,"c",{get:function(){return this._matrix[2]},set:function(ce){this._matrix[2]=ce}}),Object.defineProperty(Di.prototype,"d",{get:function(){return this._matrix[3]},set:function(ce){this._matrix[3]=ce}}),Object.defineProperty(Di.prototype,"e",{get:function(){return this._matrix[4]},set:function(ce){this._matrix[4]=ce}}),Object.defineProperty(Di.prototype,"f",{get:function(){return this._matrix[5]},set:function(ce){this._matrix[5]=ce}}),Object.defineProperty(Di.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Di.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Di.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Di.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Di.prototype.join=function(ce){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(hn).join(ce)},Di.prototype.multiply=function(ce){var wt=ce.sx*this.sx+ce.shy*this.shx,gr=ce.sx*this.shy+ce.shy*this.sy,Pr=ce.shx*this.sx+ce.sy*this.shx,un=ce.shx*this.shy+ce.sy*this.sy,Wn=ce.tx*this.sx+ce.ty*this.shx+this.tx,Ci=ce.tx*this.shy+ce.ty*this.sy+this.ty;return new Di(wt,gr,Pr,un,Wn,Ci)},Di.prototype.decompose=function(){var ce=this.sx,wt=this.shy,gr=this.shx,Pr=this.sy,un=this.tx,Wn=this.ty,Ci=Math.sqrt(ce*ce+wt*wt),ra=(ce/=Ci)*gr+(wt/=Ci)*Pr;gr-=ce*ra,Pr-=wt*ra;var xa=Math.sqrt(gr*gr+Pr*Pr);return ra/=xa,ce*(Pr/=xa)<wt*(gr/=xa)&&(ce=-ce,wt=-wt,ra=-ra,Ci=-Ci),{scale:new Di(Ci,0,0,xa,0,0),translate:new Di(1,0,0,1,un,Wn),rotate:new Di(ce,wt,-wt,ce,0,0),skew:new Di(1,0,ra,1,0,0)}},Di.prototype.toString=function(ce){return this.join(" ")},Di.prototype.inversed=function(){var ce=this.sx,wt=this.shy,gr=this.shx,Pr=this.sy,un=this.tx,Wn=this.ty,Ci=1/(ce*Pr-wt*gr),ra=Pr*Ci,xa=-wt*Ci,Ha=-gr*Ci,Wa=ce*Ci;return new Di(ra,xa,Ha,Wa,-ra*un-Ha*Wn,-xa*un-Wa*Wn)},Di.prototype.applyToPoint=function(ce){var wt=ce.x*this.sx+ce.y*this.shx+this.tx,gr=ce.x*this.shy+ce.y*this.sy+this.ty;return new au(wt,gr)},Di.prototype.applyToRectangle=function(ce){var wt=this.applyToPoint(ce),gr=this.applyToPoint(new au(ce.x+ce.w,ce.y+ce.h));return new xc(wt.x,wt.y,gr.x-wt.x,gr.y-wt.y)},Di.prototype.clone=function(){var ce=this.sx,wt=this.shy,gr=this.shx,Pr=this.sy,un=this.tx,Wn=this.ty;return new Di(ce,wt,gr,Pr,un,Wn)},Ve.Matrix=Di;var ss=Ve.matrixMult=function(ce,wt){return wt.multiply(ce)},La=new Di(1,0,0,1,0,0);Ve.unitMatrix=Ve.identityMatrix=La;var va=function(ce,wt){if(!Hn[ce]){var gr=(wt instanceof ns?"Sh":"P")+(Object.keys(Hr).length+1).toString(10);wt.id=gr,Hn[ce]=gr,Hr[gr]=wt,Rn.publish("addPattern",wt)}};Ve.ShadingPattern=ns,Ve.TilingPattern=Fa,Ve.addShadingPattern=function(ce,wt){return Br("addShadingPattern()"),va(ce,wt),this},Ve.beginTilingPattern=function(ce){Br("beginTilingPattern()"),Ac(ce.boundingBox[0],ce.boundingBox[1],ce.boundingBox[2]-ce.boundingBox[0],ce.boundingBox[3]-ce.boundingBox[1],ce.matrix)},Ve.endTilingPattern=function(ce,wt){Br("endTilingPattern()"),wt.stream=Zr[At].join(`
|
|
|
`),va(ce,wt),Rn.publish("endTilingPattern",wt),Ia.pop().restore()};var qn=Ve.__private__.newObject=function(){var ce=Qa();return Fs(ce,!0),ce},Qa=Ve.__private__.newObjectDeferred=function(){return er++,or[er]=function(){return St},er},Fs=function(ce,wt){return wt=typeof wt=="boolean"&&wt,or[ce]=St,wt&&Yt(ce+" 0 obj"),ce},fa=Ve.__private__.newAdditionalObject=function(){var ce={objId:Qa(),content:""};return Gr.push(ce),ce},Aa=Qa(),ma=Qa(),ja=Ve.__private__.decodeColorString=function(ce){var wt=ce.split(" ");if(wt.length!==2||wt[1]!=="g"&&wt[1]!=="G")wt.length===5&&(wt[4]==="k"||wt[4]==="K")&&(wt=[(1-wt[0])*(1-wt[3]),(1-wt[1])*(1-wt[3]),(1-wt[2])*(1-wt[3]),"r"]);else{var gr=parseFloat(wt[0]);wt=[gr,gr,gr,"r"]}for(var Pr="#",un=0;un<3;un++)Pr+=("0"+Math.floor(255*parseFloat(wt[un])).toString(16)).slice(-2);return Pr},os=Ve.__private__.encodeColorString=function(ce){var wt;typeof ce=="string"&&(ce={ch1:ce});var gr=ce.ch1,Pr=ce.ch2,un=ce.ch3,Wn=ce.ch4,Ci=ce.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof gr=="string"&&gr.charAt(0)!=="#"){var ra=new xi(gr);if(ra.ok)gr=ra.toHex();else if(!/^\d*\.?\d*$/.test(gr))throw new Error('Invalid color "'+gr+'" passed to jsPDF.encodeColorString.')}if(typeof gr=="string"&&/^#[0-9A-Fa-f]{3}$/.test(gr)&&(gr="#"+gr[1]+gr[1]+gr[2]+gr[2]+gr[3]+gr[3]),typeof gr=="string"&&/^#[0-9A-Fa-f]{6}$/.test(gr)){var xa=parseInt(gr.substr(1),16);gr=xa>>16&255,Pr=xa>>8&255,un=255&xa}if(Pr===void 0||Wn===void 0&&gr===Pr&&Pr===un)if(typeof gr=="string")wt=gr+" "+Ci[0];else switch(ce.precision){case 2:wt=Gn(gr/255)+" "+Ci[0];break;case 3:default:wt=zt(gr/255)+" "+Ci[0]}else if(Wn===void 0||(0,xe.Z)(Wn)==="object"){if(Wn&&!isNaN(Wn.a)&&Wn.a===0)return wt=["1.","1.","1.",Ci[1]].join(" ");if(typeof gr=="string")wt=[gr,Pr,un,Ci[1]].join(" ");else switch(ce.precision){case 2:wt=[Gn(gr/255),Gn(Pr/255),Gn(un/255),Ci[1]].join(" ");break;default:case 3:wt=[zt(gr/255),zt(Pr/255),zt(un/255),Ci[1]].join(" ")}}else if(typeof gr=="string")wt=[gr,Pr,un,Wn,Ci[2]].join(" ");else switch(ce.precision){case 2:wt=[Gn(gr),Gn(Pr),Gn(un),Gn(Wn),Ci[2]].join(" ");break;case 3:default:wt=[zt(gr),zt(Pr),zt(un),zt(Wn),Ci[2]].join(" ")}return wt},ca=Ve.__private__.getFilters=function(){return ge},xs=Ve.__private__.putStream=function(ce){var wt=(ce=ce||{}).data||"",gr=ce.filters||ca(),Pr=ce.alreadyAppliedFilters||[],un=ce.addLength1||!1,Wn=wt.length,Ci=ce.objectId,ra=function(zo){return zo};if(vt!==null&&Ci===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");vt!==null&&(ra=Do.encryptor(Ci,0));var xa={};gr===!0&&(gr=["FlateEncode"]);var Ha=ce.additionalKeyValues||[],Wa=(xa=Ni.API.processDataByFilters!==void 0?Ni.API.processDataByFilters(wt,gr):{data:wt,reverseChain:[]}).reverseChain+(Array.isArray(Pr)?Pr.join(" "):Pr.toString());if(xa.data.length!==0&&(Ha.push({key:"Length",value:xa.data.length}),un===!0&&Ha.push({key:"Length1",value:Wn})),Wa.length!=0)if(Wa.split("/").length-1==1)Ha.push({key:"Filter",value:Wa});else{Ha.push({key:"Filter",value:"["+Wa+"]"});for(var Ss=0;Ss<Ha.length;Ss+=1)if(Ha[Ss].key==="DecodeParms"){for(var ro=[],bo=0;bo<xa.reverseChain.split("/").length-1;bo+=1)ro.push("null");ro.push(Ha[Ss].value),Ha[Ss].value="["+ro.join(" ")+"]"}}Yt("<<");for(var Lo=0;Lo<Ha.length;Lo++)Yt("/"+Ha[Lo].key+" "+Ha[Lo].value);Yt(">>"),xa.data.length!==0&&(Yt("stream"),Yt(ra(xa.data)),Yt("endstream"))},_s=Ve.__private__.putPage=function(ce){var wt=ce.number,gr=ce.data,Pr=ce.objId,un=ce.contentsObjId;Fs(Pr,!0),Yt("<</Type /Page"),Yt("/Parent "+ce.rootDictionaryObjId+" 0 R"),Yt("/Resources "+ce.resourceDictionaryObjId+" 0 R"),Yt("/MediaBox ["+parseFloat(hn(ce.mediaBox.bottomLeftX))+" "+parseFloat(hn(ce.mediaBox.bottomLeftY))+" "+hn(ce.mediaBox.topRightX)+" "+hn(ce.mediaBox.topRightY)+"]"),ce.cropBox!==null&&Yt("/CropBox ["+hn(ce.cropBox.bottomLeftX)+" "+hn(ce.cropBox.bottomLeftY)+" "+hn(ce.cropBox.topRightX)+" "+hn(ce.cropBox.topRightY)+"]"),ce.bleedBox!==null&&Yt("/BleedBox ["+hn(ce.bleedBox.bottomLeftX)+" "+hn(ce.bleedBox.bottomLeftY)+" "+hn(ce.bleedBox.topRightX)+" "+hn(ce.bleedBox.topRightY)+"]"),ce.trimBox!==null&&Yt("/TrimBox ["+hn(ce.trimBox.bottomLeftX)+" "+hn(ce.trimBox.bottomLeftY)+" "+hn(ce.trimBox.topRightX)+" "+hn(ce.trimBox.topRightY)+"]"),ce.artBox!==null&&Yt("/ArtBox ["+hn(ce.artBox.bottomLeftX)+" "+hn(ce.artBox.bottomLeftY)+" "+hn(ce.artBox.topRightX)+" "+hn(ce.artBox.topRightY)+"]"),typeof ce.userUnit=="number"&&ce.userUnit!==1&&Yt("/UserUnit "+ce.userUnit),Rn.publish("putPage",{objId:Pr,pageContext:Jn[wt],pageNumber:wt,page:gr}),Yt("/Contents "+un+" 0 R"),Yt(">>"),Yt("endobj");var Wn=gr.join(`
|
|
|
`);return kr===Ar.ADVANCED&&(Wn+=`
|
|
|
Q`),Fs(un,!0),xs({data:Wn,filters:ca(),objectId:un}),Yt("endobj"),Pr},Js=Ve.__private__.putPages=function(){var ce,wt,gr=[];for(ce=1;ce<=kn;ce++)Jn[ce].objId=Qa(),Jn[ce].contentsObjId=Qa();for(ce=1;ce<=kn;ce++)gr.push(_s({number:ce,data:Zr[ce],objId:Jn[ce].objId,contentsObjId:Jn[ce].contentsObjId,mediaBox:Jn[ce].mediaBox,cropBox:Jn[ce].cropBox,bleedBox:Jn[ce].bleedBox,trimBox:Jn[ce].trimBox,artBox:Jn[ce].artBox,userUnit:Jn[ce].userUnit,rootDictionaryObjId:Aa,resourceDictionaryObjId:ma}));Fs(Aa,!0),Yt("<</Type /Pages");var Pr="/Kids [";for(wt=0;wt<kn;wt++)Pr+=gr[wt]+" 0 R ";Yt(Pr+"]"),Yt("/Count "+kn),Yt(">>"),Yt("endobj"),Rn.publish("postPutPages")},Ws=function(ce){Rn.publish("putFont",{font:ce,out:Yt,newObject:qn,putStream:xs}),ce.isAlreadyPutted!==!0&&(ce.objectNumber=qn(),Yt("<<"),Yt("/Type /Font"),Yt("/BaseFont /"+_a(ce.postScriptName)),Yt("/Subtype /Type1"),typeof ce.encoding=="string"&&Yt("/Encoding /"+ce.encoding),Yt("/FirstChar 32"),Yt("/LastChar 255"),Yt(">>"),Yt("endobj"))},Vs=function(){for(var ce in $t)$t.hasOwnProperty(ce)&&(yt===!1||yt===!0&&Ot.hasOwnProperty(ce))&&Ws($t[ce])},Vo=function(ce){ce.objectNumber=qn();var wt=[];wt.push({key:"Type",value:"/XObject"}),wt.push({key:"Subtype",value:"/Form"}),wt.push({key:"BBox",value:"["+[hn(ce.x),hn(ce.y),hn(ce.x+ce.width),hn(ce.y+ce.height)].join(" ")+"]"}),wt.push({key:"Matrix",value:"["+ce.matrix.toString()+"]"});var gr=ce.pages[1].join(`
|
|
|
`);xs({data:gr,additionalKeyValues:wt,objectId:ce.objectNumber}),Yt("endobj")},$o=function(){for(var ce in Gi)Gi.hasOwnProperty(ce)&&Vo(Gi[ce])},Co=function(ce,wt){var gr,Pr=[],un=1/(wt-1);for(gr=0;gr<1;gr+=un)Pr.push(gr);if(Pr.push(1),ce[0].offset!=0){var Wn={offset:0,color:ce[0].color};ce.unshift(Wn)}if(ce[ce.length-1].offset!=1){var Ci={offset:1,color:ce[ce.length-1].color};ce.push(Ci)}for(var ra="",xa=0,Ha=0;Ha<Pr.length;Ha++){for(gr=Pr[Ha];gr>ce[xa+1].offset;)xa++;var Wa=ce[xa].offset,Ss=(gr-Wa)/(ce[xa+1].offset-Wa),ro=ce[xa].color,bo=ce[xa+1].color;ra+=Ft(Math.round((1-Ss)*ro[0]+Ss*bo[0]).toString(16))+Ft(Math.round((1-Ss)*ro[1]+Ss*bo[1]).toString(16))+Ft(Math.round((1-Ss)*ro[2]+Ss*bo[2]).toString(16))}return ra.trim()},ho=function(ce,wt){wt||(wt=21);var gr=qn(),Pr=Co(ce.colors,wt),un=[];un.push({key:"FunctionType",value:"0"}),un.push({key:"Domain",value:"[0.0 1.0]"}),un.push({key:"Size",value:"["+wt+"]"}),un.push({key:"BitsPerSample",value:"8"}),un.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),un.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),xs({data:Pr,additionalKeyValues:un,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:gr}),Yt("endobj"),ce.objectNumber=qn(),Yt("<< /ShadingType "+ce.type),Yt("/ColorSpace /DeviceRGB");var Wn="/Coords ["+hn(parseFloat(ce.coords[0]))+" "+hn(parseFloat(ce.coords[1]))+" ";ce.type===2?Wn+=hn(parseFloat(ce.coords[2]))+" "+hn(parseFloat(ce.coords[3])):Wn+=hn(parseFloat(ce.coords[2]))+" "+hn(parseFloat(ce.coords[3]))+" "+hn(parseFloat(ce.coords[4]))+" "+hn(parseFloat(ce.coords[5])),Yt(Wn+="]"),ce.matrix&&Yt("/Matrix ["+ce.matrix.toString()+"]"),Yt("/Function "+gr+" 0 R"),Yt("/Extend [true true]"),Yt(">>"),Yt("endobj")},to=function(ce,wt){var gr=Qa(),Pr=qn();wt.push({resourcesOid:gr,objectOid:Pr}),ce.objectNumber=Pr;var un=[];un.push({key:"Type",value:"/Pattern"}),un.push({key:"PatternType",value:"1"}),un.push({key:"PaintType",value:"1"}),un.push({key:"TilingType",value:"1"}),un.push({key:"BBox",value:"["+ce.boundingBox.map(hn).join(" ")+"]"}),un.push({key:"XStep",value:hn(ce.xStep)}),un.push({key:"YStep",value:hn(ce.yStep)}),un.push({key:"Resources",value:gr+" 0 R"}),ce.matrix&&un.push({key:"Matrix",value:"["+ce.matrix.toString()+"]"}),xs({data:ce.stream,additionalKeyValues:un,objectId:ce.objectNumber}),Yt("endobj")},Ds=function(ce){var wt;for(wt in Hr)Hr.hasOwnProperty(wt)&&(Hr[wt]instanceof ns?ho(Hr[wt]):Hr[wt]instanceof Fa&&to(Hr[wt],ce))},ls=function(ce){for(var wt in ce.objectNumber=qn(),Yt("<<"),ce)switch(wt){case"opacity":Yt("/ca "+Gn(ce[wt]));break;case"stroke-opacity":Yt("/CA "+Gn(ce[wt]))}Yt(">>"),Yt("endobj")},Al=function(){var ce;for(ce in Ur)Ur.hasOwnProperty(ce)&&ls(Ur[ce])},Cl=function(){for(var ce in Yt("/XObject <<"),Gi)Gi.hasOwnProperty(ce)&&Gi[ce].objectNumber>=0&&Yt("/"+ce+" "+Gi[ce].objectNumber+" 0 R");Rn.publish("putXobjectDict"),Yt(">>")},sl=function(){Do.oid=qn(),Yt("<<"),Yt("/Filter /Standard"),Yt("/V "+Do.v),Yt("/R "+Do.r),Yt("/U <"+Do.toHexString(Do.U)+">"),Yt("/O <"+Do.toHexString(Do.O)+">"),Yt("/P "+Do.P),Yt(">>"),Yt("endobj")},Yo=function(){for(var ce in Yt("/Font <<"),$t)$t.hasOwnProperty(ce)&&(yt===!1||yt===!0&&Ot.hasOwnProperty(ce))&&Yt("/"+ce+" "+$t[ce].objectNumber+" 0 R");Yt(">>")},_u=function(){if(Object.keys(Hr).length>0){for(var ce in Yt("/Shading <<"),Hr)Hr.hasOwnProperty(ce)&&Hr[ce]instanceof ns&&Hr[ce].objectNumber>=0&&Yt("/"+ce+" "+Hr[ce].objectNumber+" 0 R");Rn.publish("putShadingPatternDict"),Yt(">>")}},Wl=function(ce){if(Object.keys(Hr).length>0){for(var wt in Yt("/Pattern <<"),Hr)Hr.hasOwnProperty(wt)&&Hr[wt]instanceof Ve.TilingPattern&&Hr[wt].objectNumber>=0&&Hr[wt].objectNumber<ce&&Yt("/"+wt+" "+Hr[wt].objectNumber+" 0 R");Rn.publish("putTilingPatternDict"),Yt(">>")}},za=function(){if(Object.keys(Ur).length>0){var ce;for(ce in Yt("/ExtGState <<"),Ur)Ur.hasOwnProperty(ce)&&Ur[ce].objectNumber>=0&&Yt("/"+ce+" "+Ur[ce].objectNumber+" 0 R");Rn.publish("putGStateDict"),Yt(">>")}},Ta=function(ce){Fs(ce.resourcesOid,!0),Yt("<<"),Yt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Yo(),_u(),Wl(ce.objectOid),za(),Cl(),Yt(">>"),Yt("endobj")},oo=function(){var ce=[];Vs(),Al(),$o(),Ds(ce),Rn.publish("putResources"),ce.forEach(Ta),Ta({resourcesOid:ma,objectOid:Number.MAX_SAFE_INTEGER}),Rn.publish("postPutResources")},Bs=function(){Rn.publish("putAdditionalObjects");for(var ce=0;ce<Gr.length;ce++){var wt=Gr[ce];Fs(wt.objId,!0),Yt(wt.content),Yt("endobj")}Rn.publish("postPutAdditionalObjects")},yo=function(ce){fr[ce.fontName]=fr[ce.fontName]||{},fr[ce.fontName][ce.fontStyle]=ce.id},_o=function(ce,wt,gr,Pr,un){var Wn={id:"F"+(Object.keys($t).length+1).toString(10),postScriptName:ce,fontName:wt,fontStyle:gr,encoding:Pr,isStandardFont:un||!1,metadata:{}};return Rn.publish("addFont",{font:Wn,instance:this}),$t[Wn.id]=Wn,yo(Wn),Wn.id},Bo=function(ce){for(var wt=0,gr=tn.length;wt<gr;wt++){var Pr=_o.call(this,ce[wt][0],ce[wt][1],ce[wt][2],tn[wt][3],!0);yt===!1&&(Ot[Pr]=!0);var un=ce[wt][0].split("-");yo({id:Pr,fontName:un[0],fontStyle:un[1]||""})}Rn.publish("addFonts",{fonts:$t,dictionary:fr})},Fo=function(ce){return ce.foo=function(){try{return ce.apply(this,arguments)}catch(Pr){var wt=Pr.stack||"";~wt.indexOf(" at ")&&(wt=wt.split(" at ")[1]);var gr="Error in function "+wt.split(`
|
|
|
`)[0].split("<")[0]+": "+Pr.message;if(!fn.console)throw new Error(gr);fn.console.error(gr,Pr),fn.alert&&alert(gr)}},ce.foo.bar=ce,ce.foo},_l=function(ce,wt){var gr,Pr,un,Wn,Ci,ra,xa,Ha,Wa;if(un=(wt=wt||{}).sourceEncoding||"Unicode",Ci=wt.outputEncoding,(wt.autoencode||Ci)&&$t[z].metadata&&$t[z].metadata[un]&&$t[z].metadata[un].encoding&&(Wn=$t[z].metadata[un].encoding,!Ci&&$t[z].encoding&&(Ci=$t[z].encoding),!Ci&&Wn.codePages&&(Ci=Wn.codePages[0]),typeof Ci=="string"&&(Ci=Wn[Ci]),Ci)){for(xa=!1,ra=[],gr=0,Pr=ce.length;gr<Pr;gr++)(Ha=Ci[ce.charCodeAt(gr)])?ra.push(String.fromCharCode(Ha)):ra.push(ce[gr]),ra[gr].charCodeAt(0)>>8&&(xa=!0);ce=ra.join("")}for(gr=ce.length;xa===void 0&&gr!==0;)ce.charCodeAt(gr-1)>>8&&(xa=!0),gr--;if(!xa)return ce;for(ra=wt.noBOM?[]:[254,255],gr=0,Pr=ce.length;gr<Pr;gr++){if((Wa=(Ha=ce.charCodeAt(gr))>>8)>>8)throw new Error("Character at position "+gr+" of string '"+ce+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ra.push(Wa),ra.push(Ha-(Wa<<8))}return String.fromCharCode.apply(void 0,ra)},Ko=Ve.__private__.pdfEscape=Ve.pdfEscape=function(ce,wt){return _l(ce,wt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Vl=Ve.__private__.beginPage=function(ce){Zr[++kn]=[],Jn[kn]={objId:0,contentsObjId:0,userUnit:Number(De),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(ce[0]),topRightY:Number(ce[1])}},nu(kn),zr(Zr[At])},hu=function(ce,wt){var gr,Pr,un;switch(v=wt||v,typeof ce=="string"&&(gr=jt(ce.toLowerCase()),Array.isArray(gr)&&(Pr=gr[0],un=gr[1])),Array.isArray(ce)&&(Pr=ce[0]*be,un=ce[1]*be),isNaN(Pr)&&(Pr=ne[0],un=ne[1]),(Pr>14400||un>14400)&&(ii.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Pr=Math.min(14400,Pr),un=Math.min(14400,un)),ne=[Pr,un],v.substr(0,1)){case"l":un>Pr&&(ne=[un,Pr]);break;case"p":Pr>un&&(ne=[un,Pr])}Vl(ne),Il(gs),Yt($l),wc!==0&&Yt(wc+" J"),uc!==0&&Yt(uc+" j"),Rn.publish("addPage",{pageNumber:kn})},ac=function(ce){ce>0&&ce<=kn&&(Zr.splice(ce,1),Jn.splice(ce,1),kn--,At>kn&&(At=kn),this.setPage(At))},nu=function(ce){ce>0&&ce<=kn&&(At=ce)},dl=Ve.__private__.getNumberOfPages=Ve.getNumberOfPages=function(){return Zr.length-1},iu=function(ce,wt,gr){var Pr,un=void 0;return gr=gr||{},ce=ce!==void 0?ce:$t[z].fontName,wt=wt!==void 0?wt:$t[z].fontStyle,Pr=ce.toLowerCase(),fr[Pr]!==void 0&&fr[Pr][wt]!==void 0?un=fr[Pr][wt]:fr[ce]!==void 0&&fr[ce][wt]!==void 0?un=fr[ce][wt]:gr.disableWarning===!1&&ii.warn("Unable to look up font label for font '"+ce+"', '"+wt+"'. Refer to getFontList() for available fonts."),un||gr.noFallback||(un=fr.times[wt])==null&&(un=fr.times.normal),un},Mu=Ve.__private__.putInfo=function(){var ce=qn(),wt=function(Pr){return Pr};for(var gr in vt!==null&&(wt=Do.encryptor(ce,0)),Yt("<<"),Yt("/Producer ("+Ko(wt("jsPDF "+Ni.version))+")"),E)E.hasOwnProperty(gr)&&E[gr]&&Yt("/"+gr.substr(0,1).toUpperCase()+gr.substr(1)+" ("+Ko(wt(E[gr]))+")");Yt("/CreationDate ("+Ko(wt(Pe))+")"),Yt(">>"),Yt("endobj")},pu=Ve.__private__.putCatalog=function(ce){var wt=(ce=ce||{}).rootDictionaryObjId||Aa;switch(qn(),Yt("<<"),Yt("/Type /Catalog"),Yt("/Pages "+wt+" 0 R"),pn||(pn="fullwidth"),pn){case"fullwidth":Yt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Yt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Yt("/OpenAction [3 0 R /Fit]");break;case"original":Yt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var gr=""+pn;gr.substr(gr.length-1)==="%"&&(pn=parseInt(pn)/100),typeof pn=="number"&&Yt("/OpenAction [3 0 R /XYZ null null "+Gn(pn)+"]")}switch(je||(je="continuous"),je){case"continuous":Yt("/PageLayout /OneColumn");break;case"single":Yt("/PageLayout /SinglePage");break;case"two":case"twoleft":Yt("/PageLayout /TwoColumnLeft");break;case"tworight":Yt("/PageLayout /TwoColumnRight")}vi&&Yt("/PageMode /"+vi),Rn.publish("putCatalog"),Yt(">>"),Yt("endobj")},Uu=Ve.__private__.putTrailer=function(){Yt("trailer"),Yt("<<"),Yt("/Size "+(er+1)),Yt("/Root "+er+" 0 R"),Yt("/Info "+(er-1)+" 0 R"),vt!==null&&Yt("/Encrypt "+Do.oid+" 0 R"),Yt("/ID [ <"+Xe+"> <"+Xe+"> ]"),Yt(">>")},Qu=Ve.__private__.putHeader=function(){Yt("%PDF-"+cr),Yt("%\xBA\xDF\xAC\xE0")},Hl=Ve.__private__.putXRef=function(){var ce="0000000000";Yt("xref"),Yt("0 "+(er+1)),Yt("0000000000 65535 f ");for(var wt=1;wt<=er;wt++)typeof or[wt]=="function"?Yt((ce+or[wt]()).slice(-10)+" 00000 n "):or[wt]!==void 0?Yt((ce+or[wt]).slice(-10)+" 00000 n "):Yt("0000000000 00000 n ")},Bl=Ve.__private__.buildDocument=function(){ni(),zr(ur),Rn.publish("buildDocument"),Qu(),Js(),Bs(),oo(),vt!==null&&sl(),Mu(),pu();var ce=St;return Hl(),Uu(),Yt("startxref"),Yt(""+ce),Yt("%%EOF"),zr(Zr[At]),ur.join(`
|
|
|
`)},mu=Ve.__private__.getBlob=function(ce){return new Blob([fi(ce)],{type:"application/pdf"})},gu=Ve.output=Ve.__private__.output=Fo(function(ce,wt){switch(typeof(wt=wt||{})=="string"?wt={filename:wt}:wt.filename=wt.filename||"generated.pdf",ce){case void 0:return Bl();case"save":Ve.save(wt.filename);break;case"arraybuffer":return fi(Bl());case"blob":return mu(Bl());case"bloburi":case"bloburl":if(fn.URL!==void 0&&typeof fn.URL.createObjectURL=="function")return fn.URL&&fn.URL.createObjectURL(mu(Bl()))||void 0;ii.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var gr="",Pr=Bl();try{gr=Zi(Pr)}catch(bo){gr=Zi(unescape(encodeURIComponent(Pr)))}return"data:application/pdf;filename="+wt.filename+";base64,"+gr;case"pdfobjectnewwindow":if(Object.prototype.toString.call(fn)==="[object Window]"){var un="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Wn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';wt.pdfObjectUrl&&(un=wt.pdfObjectUrl,Wn="");var Ci='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+un+'"'+Wn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(wt)+");<\/script></body></html>",ra=fn.open();return ra!==null&&ra.document.write(Ci),ra}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(fn)==="[object Window]"){var xa='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(wt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+wt.filename+'" width="500px" height="400px" /></body></html>',Ha=fn.open();if(Ha!==null){Ha.document.write(xa);var Wa=this;Ha.document.documentElement.querySelector("#pdfViewer").onload=function(){Ha.document.title=wt.filename,Ha.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Wa.output("bloburl"))}}return Ha}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(fn)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ss='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",wt)+'"></iframe></body></html>',ro=fn.open();if(ro!==null&&(ro.document.write(Ss),ro.document.title=wt.filename),ro||typeof safari=="undefined")return ro;break;case"datauri":case"dataurl":return fn.document.location.href=this.output("datauristring",wt);default:return null}}),Po=function(ce){return Array.isArray(Oi)===!0&&Oi.indexOf(ce)>-1};switch(U){case"pt":be=1;break;case"mm":be=72/25.4;break;case"cm":be=72/2.54;break;case"in":be=72;break;case"px":be=Po("px_scaling")==1?.75:96/72;break;case"pc":case"em":be=12;break;case"ex":be=6;break;default:if(typeof U!="number")throw new Error("Invalid unit: "+U);be=U}var Do=null;lr(),ut();var ju=function(ce){return vt!==null?Do.encryptor(ce,0):function(wt){return wt}},sc=Ve.__private__.getPageInfo=Ve.getPageInfo=function(ce){if(isNaN(ce)||ce%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Jn[ce].objId,pageNumber:ce,pageContext:Jn[ce]}},Ma=Ve.__private__.getPageInfoByObjId=function(ce){if(isNaN(ce)||ce%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var wt in Jn)if(Jn[wt].objId===ce)break;return sc(wt)},Bu=Ve.__private__.getCurrentPageInfo=Ve.getCurrentPageInfo=function(){return{objId:Jn[At].objId,pageNumber:At,pageContext:Jn[At]}};Ve.addPage=function(){return hu.apply(this,arguments),this},Ve.setPage=function(){return nu.apply(this,arguments),zr.call(this,Zr[At]),this},Ve.insertPage=function(ce){return this.addPage(),this.movePage(At,ce),this},Ve.movePage=function(ce,wt){var gr,Pr;if(ce>wt){gr=Zr[ce],Pr=Jn[ce];for(var un=ce;un>wt;un--)Zr[un]=Zr[un-1],Jn[un]=Jn[un-1];Zr[wt]=gr,Jn[wt]=Pr,this.setPage(wt)}else if(ce<wt){gr=Zr[ce],Pr=Jn[ce];for(var Wn=ce;Wn<wt;Wn++)Zr[Wn]=Zr[Wn+1],Jn[Wn]=Jn[Wn+1];Zr[wt]=gr,Jn[wt]=Pr,this.setPage(wt)}return this},Ve.deletePage=function(){return ac.apply(this,arguments),this},Ve.__private__.text=Ve.text=function(ce,wt,gr,Pr,un){var Wn,Ci,ra,xa,Ha,Wa,Ss,ro,bo,Lo=(Pr=Pr||{}).scope||this;if(typeof ce=="number"&&typeof wt=="number"&&(typeof gr=="string"||Array.isArray(gr))){var zo=gr;gr=wt,wt=ce,ce=zo}if(arguments[3]instanceof Di?(Br("The transform parameter of text() with a Matrix value"),bo=un):(ra=arguments[4],xa=arguments[5],(0,xe.Z)(Ss=arguments[3])==="object"&&Ss!==null||(typeof ra=="string"&&(xa=ra,ra=null),typeof Ss=="string"&&(xa=Ss,Ss=null),typeof Ss=="number"&&(ra=Ss,Ss=null),Pr={flags:Ss,angle:ra,align:xa})),isNaN(wt)||isNaN(gr)||ce==null)throw new Error("Invalid arguments passed to jsPDF.text");if(ce.length===0)return Lo;var jo="",Ll=!1,Rl=typeof Pr.lineHeightFactor=="number"?Pr.lineHeightFactor:ka,Ol=Lo.internal.scaleFactor;function Zu(j){return j=j.split(" ").join(Array(Pr.TabLen||9).join(" ")),Ko(j,Ss)}function dc(j){for(var q,de=j.concat(),Re=[],Ye=de.length;Ye--;)typeof(q=de.shift())=="string"?Re.push(q):Array.isArray(j)&&(q.length===1||q[1]===void 0&&q[2]===void 0)?Re.push(q[0]):Re.push([q[0],q[1],q[2]]);return Re}function Wu(j,q){var de;if(typeof j=="string")de=q(j)[0];else if(Array.isArray(j)){for(var Re,Ye,Je=j.concat(),ct=[],_t=Je.length;_t--;)typeof(Re=Je.shift())=="string"?ct.push(q(Re)[0]):Array.isArray(Re)&&typeof Re[0]=="string"&&(Ye=q(Re[0],Re[1],Re[2]),ct.push([Ye[0],Ye[1],Ye[2]]));de=ct}return de}var Vu=!1,fc=!0;if(typeof ce=="string")Vu=!0;else if(Array.isArray(ce)){var Yu=ce.concat();Ci=[];for(var hc,qo=Yu.length;qo--;)(typeof(hc=Yu.shift())!="string"||Array.isArray(hc)&&typeof hc[0]!="string")&&(fc=!1);Vu=fc}if(Vu===!1)throw new Error('Type of text must be string or Array. "'+ce+'" is not recognized.');typeof ce=="string"&&(ce=ce.match(/[\r?\n]/)?ce.split(/\r\n|\r|\n/g):[ce]);var Kl=wn/Lo.internal.scaleFactor,Xu=Kl*(Rl-1);switch(Pr.baseline){case"bottom":gr-=Xu;break;case"top":gr+=Kl-Xu;break;case"hanging":gr+=Kl-2*Xu;break;case"middle":gr+=Kl/2-Xu}if((Wa=Pr.maxWidth||0)>0&&(typeof ce=="string"?ce=Lo.splitTextToSize(ce,Wa):Object.prototype.toString.call(ce)==="[object Array]"&&(ce=ce.reduce(function(j,q){return j.concat(Lo.splitTextToSize(q,Wa))},[]))),Wn={text:ce,x:wt,y:gr,options:Pr,mutex:{pdfEscape:Ko,activeFontKey:z,fonts:$t,activeFontSize:wn}},Rn.publish("preProcessText",Wn),ce=Wn.text,ra=(Pr=Wn.options).angle,!(bo instanceof Di)&&ra&&typeof ra=="number"){ra*=Math.PI/180,Pr.rotationDirection===0&&(ra=-ra),kr===Ar.ADVANCED&&(ra=-ra);var no=Math.cos(ra),Xl=Math.sin(ra);bo=new Di(no,Xl,-Xl,no,0,0)}else ra&&ra instanceof Di&&(bo=ra);kr!==Ar.ADVANCED||bo||(bo=La),(Ha=Pr.charSpace||lc)!==void 0&&(jo+=hn(nr(Ha))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(ro=Pr.horizontalScale)!==void 0&&(jo+=hn(100*ro)+` Tz
|
|
|
`),Pr.lang;var Ho=-1,ou=Pr.renderingMode!==void 0?Pr.renderingMode:Pr.stroke,zl=Lo.internal.getCurrentPageInfo().pageContext;switch(ou){case 0:case!1:case"fill":Ho=0;break;case 1:case!0:case"stroke":Ho=1;break;case 2:case"fillThenStroke":Ho=2;break;case 3:case"invisible":Ho=3;break;case 4:case"fillAndAddForClipping":Ho=4;break;case 5:case"strokeAndAddPathForClipping":Ho=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ho=6;break;case 7:case"addToPathForClipping":Ho=7}var Ou=zl.usedRenderingMode!==void 0?zl.usedRenderingMode:-1;Ho!==-1?jo+=Ho+` Tr
|
|
|
`:Ou!==-1&&(jo+=`0 Tr
|
|
|
`),Ho!==-1&&(zl.usedRenderingMode=Ho),xa=Pr.align||"left";var No,Pu=wn*Rl,Ec=Lo.internal.pageSize.getWidth(),Cc=$t[z];Ha=Pr.charSpace||lc,Wa=Pr.maxWidth||0,Ss=Object.assign({autoencode:!0,noBOM:!0},Pr.flags);var Gl=[],Jl=function(j){return Lo.getStringUnitWidth(j,{font:Cc,charSpace:Ha,fontSize:wn,doKerning:!1})*wn/Ol};if(Object.prototype.toString.call(ce)==="[object Array]"){var el;Ci=dc(ce),xa!=="left"&&(No=Ci.map(Jl));var rl,Pl=0;if(xa==="right"){wt-=No[0],ce=[],qo=Ci.length;for(var bu=0;bu<qo;bu++)bu===0?(rl=fl(wt),el=Fl(gr)):(rl=nr(Pl-No[bu]),el=-Pu),ce.push([Ci[bu],rl,el]),Pl=No[bu]}else if(xa==="center"){wt-=No[0]/2,ce=[],qo=Ci.length;for(var lu=0;lu<qo;lu++)lu===0?(rl=fl(wt),el=Fl(gr)):(rl=nr((Pl-No[lu])/2),el=-Pu),ce.push([Ci[lu],rl,el]),Pl=No[lu]}else if(xa==="left"){ce=[],qo=Ci.length;for(var Ju=0;Ju<qo;Ju++)ce.push(Ci[Ju])}else if(xa==="justify"&&Cc.encoding==="Identity-H"){ce=[],qo=Ci.length,Wa=Wa!==0?Wa:Ec;for(var wu=0,Ro=0;Ro<qo;Ro++)if(el=Ro===0?Fl(gr):-Pu,rl=Ro===0?fl(wt):wu,Ro<qo-1){var qu=nr((Wa-No[Ro])/(Ci[Ro].split(" ").length-1)),Go=Ci[Ro].split(" ");ce.push([Go[0]+" ",rl,el]),wu=0;for(var Zl=1;Zl<Go.length;Zl++){var pc=(Jl(Go[Zl-1]+" "+Go[Zl])-Jl(Go[Zl]))*Ol+qu;Zl==Go.length-1?ce.push([Go[Zl],pc,0]):ce.push([Go[Zl]+" ",pc,0]),wu-=pc}}else ce.push([Ci[Ro],rl,el]);ce.push(["",wu,0])}else{if(xa!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(ce=[],qo=Ci.length,Wa=Wa!==0?Wa:Ec,Ro=0;Ro<qo;Ro++)el=Ro===0?Fl(gr):-Pu,rl=Ro===0?fl(wt):0,Ro<qo-1?Gl.push(hn(nr((Wa-No[Ro])/(Ci[Ro].split(" ").length-1)))):Gl.push(0),ce.push([Ci[Ro],rl,el])}}var Tc=typeof Pr.R2L=="boolean"?Pr.R2L:Qn;Tc===!0&&(ce=Wu(ce,function(j,q,de){return[j.split("").reverse().join(""),q,de]})),Wn={text:ce,x:wt,y:gr,options:Pr,mutex:{pdfEscape:Ko,activeFontKey:z,fonts:$t,activeFontSize:wn}},Rn.publish("postProcessText",Wn),ce=Wn.text,Ll=Wn.mutex.isHex||!1;var _c=$t[z].encoding;_c!=="WinAnsiEncoding"&&_c!=="StandardEncoding"||(ce=Wu(ce,function(j,q,de){return[Zu(j),q,de]})),Ci=dc(ce),ce=[];for(var xu,ll,f,e=0,t=1,r=Array.isArray(Ci[0])?t:e,i="",s=function(j,q,de){var Re="";return de instanceof Di?(de=typeof Pr.angle=="number"?ss(de,new Di(1,0,0,1,j,q)):ss(new Di(1,0,0,1,j,q),de),kr===Ar.ADVANCED&&(de=ss(new Di(1,0,0,-1,0,0),de)),Re=de.join(" ")+` Tm
|
|
|
`):Re=hn(j)+" "+hn(q)+` Td
|
|
|
`,Re},l=0;l<Ci.length;l++){switch(i="",r){case t:f=(Ll?"<":"(")+Ci[l][0]+(Ll?">":")"),xu=parseFloat(Ci[l][1]),ll=parseFloat(Ci[l][2]);break;case e:f=(Ll?"<":"(")+Ci[l]+(Ll?">":")"),xu=fl(wt),ll=Fl(gr)}Gl!==void 0&&Gl[l]!==void 0&&(i=Gl[l]+` Tw
|
|
|
`),l===0?ce.push(i+s(xu,ll,bo)+f):r===e?ce.push(i+f):r===t&&ce.push(i+s(xu,ll,bo)+f)}ce=r===e?ce.join(` Tj
|
|
|
T* `):ce.join(` Tj
|
|
|
`),ce+=` Tj
|
|
|
`;var x=`BT
|
|
|
/`;return x+=z+" "+wn+` Tf
|
|
|
`,x+=hn(wn*Rl)+` TL
|
|
|
`,x+=Lu+`
|
|
|
`,x+=jo,x+=ce,Yt(x+="ET"),Ot[z]=!0,Lo};var Su=Ve.__private__.clip=Ve.clip=function(ce){return Yt(ce==="evenodd"?"W*":"W"),this};Ve.clipEvenOdd=function(){return Su("evenodd")},Ve.__private__.discardPath=Ve.discardPath=function(){return Yt("n"),this};var ol=Ve.__private__.isValidStyle=function(ce){var wt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(ce)!==-1&&(wt=!0),wt};Ve.__private__.setDefaultPathOperation=Ve.setDefaultPathOperation=function(ce){return ol(ce)&&(rt=ce),this};var Hu=Ve.__private__.getStyle=Ve.getStyle=function(ce){var wt=rt;switch(ce){case"D":case"S":wt="S";break;case"F":wt="f";break;case"FD":case"DF":wt="B";break;case"f":case"f*":case"B":case"B*":wt=ce}return wt},Iu=Ve.close=function(){return Yt("h"),this};Ve.stroke=function(){return Yt("S"),this},Ve.fill=function(ce){return Yl("f",ce),this},Ve.fillEvenOdd=function(ce){return Yl("f*",ce),this},Ve.fillStroke=function(ce){return Yl("B",ce),this},Ve.fillStrokeEvenOdd=function(ce){return Yl("B*",ce),this};var Yl=function(ce,wt){(0,xe.Z)(wt)==="object"?Sl(wt,ce):Yt(ce)},vu=function(ce){ce===null||kr===Ar.ADVANCED&&ce===void 0||(ce=Hu(ce),Yt(ce))};function Tu(ce,wt,gr,Pr,un){var Wn=new Fa(wt||this.boundingBox,gr||this.xStep,Pr||this.yStep,this.gState,un||this.matrix);Wn.stream=this.stream;var Ci=ce+"$$"+this.cloneIndex+++"$$";return va(Ci,Wn),Wn}var Sl=function(ce,wt){var gr=Hn[ce.key],Pr=Hr[gr];if(Pr instanceof ns)Yt("q"),Yt(Uo(wt)),Pr.gState&&Ve.setGState(Pr.gState),Yt(ce.matrix.toString()+" cm"),Yt("/"+gr+" sh"),Yt("Q");else if(Pr instanceof Fa){var un=new Di(1,0,0,-1,0,Dl());ce.matrix&&(un=un.multiply(ce.matrix||La),gr=Tu.call(Pr,ce.key,ce.boundingBox,ce.xStep,ce.yStep,un).id),Yt("q"),Yt("/Pattern cs"),Yt("/"+gr+" scn"),Pr.gState&&Ve.setGState(Pr.gState),Yt(wt),Yt("Q")}},Uo=function(ce){switch(ce){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},cs=Ve.moveTo=function(ce,wt){return Yt(hn(nr(ce))+" "+hn(ve(wt))+" m"),this},Xo=Ve.lineTo=function(ce,wt){return Yt(hn(nr(ce))+" "+hn(ve(wt))+" l"),this},Jo=Ve.curveTo=function(ce,wt,gr,Pr,un,Wn){return Yt([hn(nr(ce)),hn(ve(wt)),hn(nr(gr)),hn(ve(Pr)),hn(nr(un)),hn(ve(Wn)),"c"].join(" ")),this};Ve.__private__.line=Ve.line=function(ce,wt,gr,Pr,un){if(isNaN(ce)||isNaN(wt)||isNaN(gr)||isNaN(Pr)||!ol(un))throw new Error("Invalid arguments passed to jsPDF.line");return kr===Ar.COMPAT?this.lines([[gr-ce,Pr-wt]],ce,wt,[1,1],un||"S"):this.lines([[gr-ce,Pr-wt]],ce,wt,[1,1]).stroke()},Ve.__private__.lines=Ve.lines=function(ce,wt,gr,Pr,un,Wn){var Ci,ra,xa,Ha,Wa,Ss,ro,bo,Lo,zo,jo,Ll;if(typeof ce=="number"&&(Ll=gr,gr=wt,wt=ce,ce=Ll),Pr=Pr||[1,1],Wn=Wn||!1,isNaN(wt)||isNaN(gr)||!Array.isArray(ce)||!Array.isArray(Pr)||!ol(un)||typeof Wn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(cs(wt,gr),Ci=Pr[0],ra=Pr[1],Ha=ce.length,zo=wt,jo=gr,xa=0;xa<Ha;xa++)(Wa=ce[xa]).length===2?(zo=Wa[0]*Ci+zo,jo=Wa[1]*ra+jo,Xo(zo,jo)):(Ss=Wa[0]*Ci+zo,ro=Wa[1]*ra+jo,bo=Wa[2]*Ci+zo,Lo=Wa[3]*ra+jo,zo=Wa[4]*Ci+zo,jo=Wa[5]*ra+jo,Jo(Ss,ro,bo,Lo,zo,jo));return Wn&&Iu(),vu(un),this},Ve.path=function(ce){for(var wt=0;wt<ce.length;wt++){var gr=ce[wt],Pr=gr.c;switch(gr.op){case"m":cs(Pr[0],Pr[1]);break;case"l":Xo(Pr[0],Pr[1]);break;case"c":Jo.apply(this,Pr);break;case"h":Iu()}}return this},Ve.__private__.rect=Ve.rect=function(ce,wt,gr,Pr,un){if(isNaN(ce)||isNaN(wt)||isNaN(gr)||isNaN(Pr)||!ol(un))throw new Error("Invalid arguments passed to jsPDF.rect");return kr===Ar.COMPAT&&(Pr=-Pr),Yt([hn(nr(ce)),hn(ve(wt)),hn(nr(gr)),hn(nr(Pr)),"re"].join(" ")),vu(un),this},Ve.__private__.triangle=Ve.triangle=function(ce,wt,gr,Pr,un,Wn,Ci){if(isNaN(ce)||isNaN(wt)||isNaN(gr)||isNaN(Pr)||isNaN(un)||isNaN(Wn)||!ol(Ci))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[gr-ce,Pr-wt],[un-gr,Wn-Pr],[ce-un,wt-Wn]],ce,wt,[1,1],Ci,!0),this},Ve.__private__.roundedRect=Ve.roundedRect=function(ce,wt,gr,Pr,un,Wn,Ci){if(isNaN(ce)||isNaN(wt)||isNaN(gr)||isNaN(Pr)||isNaN(un)||isNaN(Wn)||!ol(Ci))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ra=4/3*(Math.SQRT2-1);return un=Math.min(un,.5*gr),Wn=Math.min(Wn,.5*Pr),this.lines([[gr-2*un,0],[un*ra,0,un,Wn-Wn*ra,un,Wn],[0,Pr-2*Wn],[0,Wn*ra,-un*ra,Wn,-un,Wn],[2*un-gr,0],[-un*ra,0,-un,-Wn*ra,-un,-Wn],[0,2*Wn-Pr],[0,-Wn*ra,un*ra,-Wn,un,-Wn]],ce+un,wt,[1,1],Ci,!0),this},Ve.__private__.ellipse=Ve.ellipse=function(ce,wt,gr,Pr,un){if(isNaN(ce)||isNaN(wt)||isNaN(gr)||isNaN(Pr)||!ol(un))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Wn=4/3*(Math.SQRT2-1)*gr,Ci=4/3*(Math.SQRT2-1)*Pr;return cs(ce+gr,wt),Jo(ce+gr,wt-Ci,ce+Wn,wt-Pr,ce,wt-Pr),Jo(ce-Wn,wt-Pr,ce-gr,wt-Ci,ce-gr,wt),Jo(ce-gr,wt+Ci,ce-Wn,wt+Pr,ce,wt+Pr),Jo(ce+Wn,wt+Pr,ce+gr,wt+Ci,ce+gr,wt),vu(un),this},Ve.__private__.circle=Ve.circle=function(ce,wt,gr,Pr){if(isNaN(ce)||isNaN(wt)||isNaN(gr)||!ol(Pr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(ce,wt,gr,gr,Pr)},Ve.setFont=function(ce,wt,gr){return gr&&(wt=Ai(wt,gr)),z=iu(ce,wt,{disableWarning:!1}),this};var bc=Ve.__private__.getFont=Ve.getFont=function(){return $t[iu.apply(Ve,arguments)]};Ve.__private__.getFontList=Ve.getFontList=function(){var ce,wt,gr={};for(ce in fr)if(fr.hasOwnProperty(ce))for(wt in gr[ce]=[],fr[ce])fr[ce].hasOwnProperty(wt)&&gr[ce].push(wt);return gr},Ve.addFont=function(ce,wt,gr,Pr,un){var Wn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Wn.indexOf(arguments[3])!==-1?un=arguments[3]:arguments[3]&&Wn.indexOf(arguments[3])==-1&&(gr=Ai(gr,Pr)),un=un||"Identity-H",_o.call(this,ce,wt,gr,un)};var ka,gs=b.lineWidth||.200025,Qo=Ve.__private__.getLineWidth=Ve.getLineWidth=function(){return gs},Il=Ve.__private__.setLineWidth=Ve.setLineWidth=function(ce){return gs=ce,Yt(hn(nr(ce))+" w"),this};Ve.__private__.setLineDash=Ni.API.setLineDash=Ni.API.setLineDashPattern=function(ce,wt){if(ce=ce||[],wt=wt||0,isNaN(wt)||!Array.isArray(ce))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return ce=ce.map(function(gr){return hn(nr(gr))}).join(" "),wt=hn(nr(wt)),Yt("["+ce+"] "+wt+" d"),this};var Tl=Ve.__private__.getLineHeight=Ve.getLineHeight=function(){return wn*ka};Ve.__private__.getLineHeight=Ve.getLineHeight=function(){return wn*ka};var Fu=Ve.__private__.setLineHeightFactor=Ve.setLineHeightFactor=function(ce){return typeof(ce=ce||1.15)=="number"&&(ka=ce),this},Du=Ve.__private__.getLineHeightFactor=Ve.getLineHeightFactor=function(){return ka};Fu(b.lineHeight);var fl=Ve.__private__.getHorizontalCoordinate=function(ce){return nr(ce)},Fl=Ve.__private__.getVerticalCoordinate=function(ce){return kr===Ar.ADVANCED?ce:Jn[At].mediaBox.topRightY-Jn[At].mediaBox.bottomLeftY-nr(ce)},$u=Ve.__private__.getHorizontalCoordinateString=Ve.getHorizontalCoordinateString=function(ce){return hn(fl(ce))},yu=Ve.__private__.getVerticalCoordinateString=Ve.getVerticalCoordinateString=function(ce){return hn(Fl(ce))},$l=b.strokeColor||"0 G";Ve.__private__.getStrokeColor=Ve.getDrawColor=function(){return ja($l)},Ve.__private__.setStrokeColor=Ve.setDrawColor=function(ce,wt,gr,Pr){return $l=os({ch1:ce,ch2:wt,ch3:gr,ch4:Pr,pdfColorType:"draw",precision:2}),Yt($l),this};var oc=b.fillColor||"0 g";Ve.__private__.getFillColor=Ve.getFillColor=function(){return ja(oc)},Ve.__private__.setFillColor=Ve.setFillColor=function(ce,wt,gr,Pr){return oc=os({ch1:ce,ch2:wt,ch3:gr,ch4:Pr,pdfColorType:"fill",precision:2}),Yt(oc),this};var Lu=b.textColor||"0 g",hl=Ve.__private__.getTextColor=Ve.getTextColor=function(){return ja(Lu)};Ve.__private__.setTextColor=Ve.setTextColor=function(ce,wt,gr,Pr){return Lu=os({ch1:ce,ch2:wt,ch3:gr,ch4:Pr,pdfColorType:"text",precision:3}),this};var lc=b.charSpace,Nc=Ve.__private__.getCharSpace=Ve.getCharSpace=function(){return parseFloat(lc||0)};Ve.__private__.setCharSpace=Ve.setCharSpace=function(ce){if(isNaN(ce))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return lc=ce,this};var wc=0;Ve.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},Ve.__private__.setLineCap=Ve.setLineCap=function(ce){var wt=Ve.CapJoinStyles[ce];if(wt===void 0)throw new Error("Line cap style of '"+ce+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return wc=wt,Yt(wt+" J"),this};var uc=0;Ve.__private__.setLineJoin=Ve.setLineJoin=function(ce){var wt=Ve.CapJoinStyles[ce];if(wt===void 0)throw new Error("Line join style of '"+ce+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return uc=wt,Yt(wt+" j"),this},Ve.__private__.setLineMiterLimit=Ve.__private__.setMiterLimit=Ve.setLineMiterLimit=Ve.setMiterLimit=function(ce){if(ce=ce||0,isNaN(ce))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Yt(hn(nr(ce))+" M"),this},Ve.GState=Ua,Ve.setGState=function(ce){(ce=typeof ce=="string"?Ur[xn[ce]]:Ku(null,ce)).equals(Nn)||(Yt("/"+ce.id+" gs"),Nn=ce)};var Ku=function(ce,wt){if(!ce||!xn[ce]){var gr=!1;for(var Pr in Ur)if(Ur.hasOwnProperty(Pr)&&Ur[Pr].equals(wt)){gr=!0;break}if(gr)wt=Ur[Pr];else{var un="GS"+(Object.keys(Ur).length+1).toString(10);Ur[un]=wt,wt.id=un}return ce&&(xn[ce]=wt.id),Rn.publish("addGState",wt),wt}};Ve.addGState=function(ce,wt){return Ku(ce,wt),this},Ve.saveGraphicsState=function(){return Yt("q"),Dr.push({key:z,size:wn,color:Lu}),this},Ve.restoreGraphicsState=function(){Yt("Q");var ce=Dr.pop();return z=ce.key,wn=ce.size,Lu=ce.color,Nn=null,this},Ve.setCurrentTransformationMatrix=function(ce){return Yt(ce.toString()+" cm"),this},Ve.comment=function(ce){return Yt("#"+ce),this};var au=function(ce,wt){var gr=ce||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return gr},set:function(Wn){isNaN(Wn)||(gr=parseFloat(Wn))}});var Pr=wt||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Pr},set:function(Wn){isNaN(Wn)||(Pr=parseFloat(Wn))}});var un="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return un},set:function(Wn){un=Wn.toString()}}),this},xc=function(ce,wt,gr,Pr){au.call(this,ce,wt),this.type="rect";var un=gr||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return un},set:function(Ci){isNaN(Ci)||(un=parseFloat(Ci))}});var Wn=Pr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Wn},set:function(Ci){isNaN(Ci)||(Wn=parseFloat(Ci))}}),this},cc=function(){this.page=kn,this.currentPage=At,this.pages=Zr.slice(0),this.pagesContext=Jn.slice(0),this.x=ze,this.y=pt,this.matrix=It,this.width=su(At),this.height=Dl(At),this.outputDestination=An,this.id="",this.objectNumber=-1};cc.prototype.restore=function(){kn=this.page,At=this.currentPage,Jn=this.pagesContext,Zr=this.pages,ze=this.x,pt=this.y,It=this.matrix,zu(At,this.width),Gu(At,this.height),An=this.outputDestination};var Ac=function(ce,wt,gr,Pr,un){Ia.push(new cc),kn=At=0,Zr=[],ze=ce,pt=wt,It=un,Vl([gr,Pr])},Ic=function(ce){if(Ji[ce])Ia.pop().restore();else{var wt=new cc,gr="Xo"+(Object.keys(Gi).length+1).toString(10);wt.id=gr,Ji[ce]=gr,Gi[gr]=wt,Rn.publish("addFormObject",wt),Ia.pop().restore()}};for(var Ru in Ve.beginFormObject=function(ce,wt,gr,Pr,un){return Ac(ce,wt,gr,Pr,un),this},Ve.endFormObject=function(ce){return Ic(ce),this},Ve.doFormObject=function(ce,wt){var gr=Gi[Ji[ce]];return Yt("q"),Yt(wt.toString()+" cm"),Yt("/"+gr.id+" Do"),Yt("Q"),this},Ve.getFormObject=function(ce){var wt=Gi[Ji[ce]];return{x:wt.x,y:wt.y,width:wt.width,height:wt.height,matrix:wt.matrix}},Ve.save=function(ce,wt){return ce=ce||"generated.pdf",(wt=wt||{}).returnPromise=wt.returnPromise||!1,wt.returnPromise===!1?(ua(mu(Bl()),ce),typeof ua.unload=="function"&&fn.setTimeout&&setTimeout(ua.unload,911),this):new Promise(function(gr,Pr){try{var un=ua(mu(Bl()),ce);typeof ua.unload=="function"&&fn.setTimeout&&setTimeout(ua.unload,911),gr(un)}catch(Wn){Pr(Wn.message)}})},Ni.API)Ni.API.hasOwnProperty(Ru)&&(Ru==="events"&&Ni.API.events.length?function(ce,wt){var gr,Pr,un;for(un=wt.length-1;un!==-1;un--)gr=wt[un][0],Pr=wt[un][1],ce.subscribe.apply(ce,[gr].concat(typeof Pr=="function"?[Pr]:Pr))}(Rn,Ni.API.events):Ve[Ru]=Ni.API[Ru]);var su=Ve.getPageWidth=function(ce){return(Jn[ce=ce||At].mediaBox.topRightX-Jn[ce].mediaBox.bottomLeftX)/be},zu=Ve.setPageWidth=function(ce,wt){Jn[ce].mediaBox.topRightX=wt*be+Jn[ce].mediaBox.bottomLeftX},Dl=Ve.getPageHeight=function(ce){return(Jn[ce=ce||At].mediaBox.topRightY-Jn[ce].mediaBox.bottomLeftY)/be},Gu=Ve.setPageHeight=function(ce,wt){Jn[ce].mediaBox.topRightY=wt*be+Jn[ce].mediaBox.bottomLeftY};return Ve.internal={pdfEscape:Ko,getStyle:Hu,getFont:bc,getFontSize:rn,getCharSpace:Nc,getTextColor:hl,getLineHeight:Tl,getLineHeightFactor:Du,getLineWidth:Qo,write:wi,getHorizontalCoordinate:fl,getVerticalCoordinate:Fl,getCoordinateString:$u,getVerticalCoordinateString:yu,collections:{},newObject:qn,newAdditionalObject:fa,newObjectDeferred:Qa,newObjectDeferredBegin:Fs,getFilters:ca,putStream:xs,events:Rn,scaleFactor:be,pageSize:{getWidth:function(){return su(At)},setWidth:function(ce){zu(At,ce)},getHeight:function(){return Dl(At)},setHeight:function(ce){Gu(At,ce)}},encryptionOptions:vt,encryption:Do,getEncryptor:ju,output:gu,getNumberOfPages:dl,pages:Zr,out:Yt,f2:Gn,f3:zt,getPageInfo:sc,getPageInfoByObjId:Ma,getCurrentPageInfo:Bu,getPDFVersion:tr,Point:au,Rectangle:xc,Matrix:Di,hasHotfix:Po},Object.defineProperty(Ve.internal.pageSize,"width",{get:function(){return su(At)},set:function(ce){zu(At,ce)},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.internal.pageSize,"height",{get:function(){return Dl(At)},set:function(ce){Gu(At,ce)},enumerable:!0,configurable:!0}),Bo.call(Ve,tn),z="F1",hu(ne,v),Rn.publish("initialized"),Ve}oi.prototype.lsbFirstWord=function(b){return String.fromCharCode(b>>0&255,b>>8&255,b>>16&255,b>>24&255)},oi.prototype.toHexString=function(b){return b.split("").map(function(c){return("0"+(255&c.charCodeAt(0)).toString(16)).slice(-2)}).join("")},oi.prototype.hexToBytes=function(b){for(var c=[],v=0;v<b.length;v+=2)c.push(String.fromCharCode(parseInt(b.substr(v,2),16)));return c.join("")},oi.prototype.processOwnerPassword=function(b,c){return Ca(ai(c).substr(0,5),b)},oi.prototype.encryptor=function(b,c){var v=ai(this.encryptionKey+String.fromCharCode(255&b,b>>8&255,b>>16&255,255&c,c>>8&255)).substr(0,10);return function(U){return Ca(v,U)}},Ua.prototype.equals=function(b){var c,v="id,objectNumber,equals";if(!b||(0,xe.Z)(b)!==(0,xe.Z)(this))return!1;var U=0;for(c in this)if(!(v.indexOf(c)>=0)){if(this.hasOwnProperty(c)&&!b.hasOwnProperty(c)||this[c]!==b[c])return!1;U++}for(c in b)b.hasOwnProperty(c)&&v.indexOf(c)<0&&U--;return U===0},Ni.API={events:[]},Ni.version="3.0.1";var oa=Ni.API,fs=1,is=function(b){return b.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},es=function(b){return b.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Yi=function(b){return b.toFixed(2)},hs=function(b){return b.toFixed(5)};oa.__acroform__={};var aa=function(b,c){b.prototype=Object.create(c.prototype),b.prototype.constructor=b},co=function(b){return b*fs},js=function(b){var c=new Eo,v=Ii.internal.getHeight(b)||0,U=Ii.internal.getWidth(b)||0;return c.BBox=[0,0,Number(Yi(U)),Number(Yi(v))],c},wo=oa.__acroform__.setBit=function(b,c){if(b=b||0,c=c||0,isNaN(b)||isNaN(c))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return b|=1<<c},As=oa.__acroform__.clearBit=function(b,c){if(b=b||0,c=c||0,isNaN(b)||isNaN(c))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return b&=~(1<<c)},xo=oa.__acroform__.getBit=function(b,c){if(isNaN(b)||isNaN(c))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return b&1<<c?1:0},as=oa.__acroform__.getBitForPdf=function(b,c){if(isNaN(b)||isNaN(c))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return xo(b,c-1)},Yn=oa.__acroform__.setBitForPdf=function(b,c){if(isNaN(b)||isNaN(c))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return wo(b,c-1)},Da=oa.__acroform__.clearBitForPdf=function(b,c){if(isNaN(b)||isNaN(c))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return As(b,c-1)},io=oa.__acroform__.calculateCoordinates=function(b,c){var v=c.internal.getHorizontalCoordinate,U=c.internal.getVerticalCoordinate,ne=b[0],W=b[1],ge=b[2],De=b[3],ke={};return ke.lowerLeft_X=v(ne)||0,ke.lowerLeft_Y=U(W+De)||0,ke.upperRight_X=v(ne+ge)||0,ke.upperRight_Y=U(W)||0,[Number(Yi(ke.lowerLeft_X)),Number(Yi(ke.lowerLeft_Y)),Number(Yi(ke.upperRight_X)),Number(Yi(ke.upperRight_Y))]},Vi=function(b){if(b.appearanceStreamContent)return b.appearanceStreamContent;if(b.V||b.DV){var c=[],v=b._V||b.DV,U=ea(b,v),ne=b.scope.internal.getFont(b.fontName,b.fontStyle).id;c.push("/Tx BMC"),c.push("q"),c.push("BT"),c.push(b.scope.__private__.encodeColorString(b.color)),c.push("/"+ne+" "+Yi(U.fontSize)+" Tf"),c.push("1 0 0 1 0 0 Tm"),c.push(U.text),c.push("ET"),c.push("Q"),c.push("EMC");var W=js(b);return W.scope=b.scope,W.stream=c.join(`
|
|
|
`),W}},ea=function(b,c){var v=b.fontSize===0?b.maxFontSize:b.fontSize,U={text:"",fontSize:""},ne=(c=(c=c.substr(0,1)=="("?c.substr(1):c).substr(c.length-1)==")"?c.substr(0,c.length-1):c).split(" ");ne=b.multiline?ne.map(function(zt){return zt.split(`
|
|
|
`)}):ne.map(function(zt){return[zt]});var W=v,ge=Ii.internal.getHeight(b)||0;ge=ge<0?-ge:ge;var De=Ii.internal.getWidth(b)||0;De=De<0?-De:De;var ke=function(zt,nr,Nr){if(zt+1<ne.length){var ve=nr+" "+ne[zt+1][0];return Ki(ve,b,Nr).width<=De-4}return!1};W++;e:for(;W>0;){c="",W--;var rt,vt,yt=Ki("3",b,W).height,Ot=b.multiline?ge-W:(ge-yt)/2,Ve=Ot+=2,cr=0,tr=0,hr=0;if(W<=0){c=`(...) Tj
|
|
|
`,c+="% Width of Text: "+Ki(c,b,W=12).width+", FieldWidth:"+De+`
|
|
|
`;break}for(var jt="",Ar=0,kr=0;kr<ne.length;kr++)if(ne.hasOwnProperty(kr)){var ln=!1;if(ne[kr].length!==1&&hr!==ne[kr].length-1){if((yt+2)*(Ar+2)+2>ge)continue e;jt+=ne[kr][hr],ln=!0,tr=kr,kr--}else{jt=(jt+=ne[kr][hr]+" ").substr(jt.length-1)==" "?jt.substr(0,jt.length-1):jt;var Ln=parseInt(kr),Ai=ke(Ln,jt,W),hn=kr>=ne.length-1;if(Ai&&!hn){jt+=" ",hr=0;continue}if(Ai||hn){if(hn)tr=Ln;else if(b.multiline&&(yt+2)*(Ar+2)+2>ge)continue e}else{if(!b.multiline||(yt+2)*(Ar+2)+2>ge)continue e;tr=Ln}}for(var Br="",vn=cr;vn<=tr;vn++){var Gn=ne[vn];if(b.multiline){if(vn===tr){Br+=Gn[hr]+" ",hr=(hr+1)%Gn.length;continue}if(vn===cr){Br+=Gn[Gn.length-1]+" ";continue}}Br+=Gn[0]+" "}switch(Br=Br.substr(Br.length-1)==" "?Br.substr(0,Br.length-1):Br,vt=Ki(Br,b,W).width,b.textAlign){case"right":rt=De-vt-2;break;case"center":rt=(De-vt)/2;break;case"left":default:rt=2}c+=Yi(rt)+" "+Yi(Ve)+` Td
|
|
|
`,c+="("+is(Br)+`) Tj
|
|
|
`,c+=-Yi(rt)+` 0 Td
|
|
|
`,Ve=-(W+2),vt=0,cr=ln?tr:tr+1,Ar++,jt=""}break}return U.text=c,U.fontSize=W,U},Ki=function(b,c,v){var U=c.scope.internal.getFont(c.fontName,c.fontStyle),ne=c.scope.getStringUnitWidth(b,{font:U,fontSize:parseFloat(v),charSpace:0})*parseFloat(v);return{height:c.scope.getStringUnitWidth("3",{font:U,fontSize:parseFloat(v),charSpace:0})*parseFloat(v)*1.5,width:ne}},ki={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ya=function(b,c){var v={type:"reference",object:b};c.internal.getPageInfo(b.page).pageContext.annotations.find(function(U){return U.type===v.type&&U.object===v.object})===void 0&&c.internal.getPageInfo(b.page).pageContext.annotations.push(v)},Pa=function(b,c){for(var v in b)if(b.hasOwnProperty(v)){var U=v,ne=b[v];c.internal.newObjectDeferredBegin(ne.objId,!0),(0,xe.Z)(ne)==="object"&&typeof ne.putStream=="function"&&ne.putStream(),delete b[U]}},Os=function(b,c){if(c.scope=b,b.internal!==void 0&&(b.internal.acroformPlugin===void 0||b.internal.acroformPlugin.isInitialized===!1)){if(qs.FieldNum=0,b.internal.acroformPlugin=JSON.parse(JSON.stringify(ki)),b.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");fs=b.internal.scaleFactor,b.internal.acroformPlugin.acroFormDictionaryRoot=new po,b.internal.acroformPlugin.acroFormDictionaryRoot.scope=b,b.internal.acroformPlugin.acroFormDictionaryRoot._eventID=b.internal.events.subscribe("postPutResources",function(){(function(v){v.internal.events.unsubscribe(v.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete v.internal.acroformPlugin.acroFormDictionaryRoot._eventID,v.internal.acroformPlugin.printedOut=!0})(b)}),b.internal.events.subscribe("buildDocument",function(){(function(v){v.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var U=v.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ne in U)if(U.hasOwnProperty(ne)){var W=U[ne];W.objId=void 0,W.hasAnnotation&&ya(W,v)}})(b)}),b.internal.events.subscribe("putCatalog",function(){(function(v){if(v.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");v.internal.write("/AcroForm "+v.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(b)}),b.internal.events.subscribe("postPutPages",function(v){(function(U,ne){var W=!U;for(var ge in U||(ne.internal.newObjectDeferredBegin(ne.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ne.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),U=U||ne.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(U.hasOwnProperty(ge)){var De=U[ge],ke=[],rt=De.Rect;if(De.Rect&&(De.Rect=io(De.Rect,ne)),ne.internal.newObjectDeferredBegin(De.objId,!0),De.DA=Ii.createDefaultAppearanceStream(De),(0,xe.Z)(De)==="object"&&typeof De.getKeyValueListForStream=="function"&&(ke=De.getKeyValueListForStream()),De.Rect=rt,De.hasAppearanceStream&&!De.appearanceStreamContent){var vt=Vi(De);ke.push({key:"AP",value:"<</N "+vt+">>"}),ne.internal.acroformPlugin.xForms.push(vt)}if(De.appearanceStreamContent){var yt="";for(var Ot in De.appearanceStreamContent)if(De.appearanceStreamContent.hasOwnProperty(Ot)){var Ve=De.appearanceStreamContent[Ot];if(yt+="/"+Ot+" ",yt+="<<",Object.keys(Ve).length>=1||Array.isArray(Ve)){for(var ge in Ve)if(Ve.hasOwnProperty(ge)){var cr=Ve[ge];typeof cr=="function"&&(cr=cr.call(ne,De)),yt+="/"+ge+" "+cr+" ",ne.internal.acroformPlugin.xForms.indexOf(cr)>=0||ne.internal.acroformPlugin.xForms.push(cr)}}else typeof(cr=Ve)=="function"&&(cr=cr.call(ne,De)),yt+="/"+ge+" "+cr,ne.internal.acroformPlugin.xForms.indexOf(cr)>=0||ne.internal.acroformPlugin.xForms.push(cr);yt+=">>"}ke.push({key:"AP",value:`<<
|
|
|
`+yt+">>"})}ne.internal.putStream({additionalKeyValues:ke,objectId:De.objId}),ne.internal.out("endobj")}W&&Pa(ne.internal.acroformPlugin.xForms,ne)})(v,b)}),b.internal.acroformPlugin.isInitialized=!0}},us=oa.__acroform__.arrayToPdfArray=function(b,c,v){var U=function(ge){return ge};if(Array.isArray(b)){for(var ne="[",W=0;W<b.length;W++)switch(W!==0&&(ne+=" "),(0,xe.Z)(b[W])){case"boolean":case"number":case"object":ne+=b[W].toString();break;case"string":b[W].substr(0,1)!=="/"?(c!==void 0&&v&&(U=v.internal.getEncryptor(c)),ne+="("+is(U(b[W].toString()))+")"):ne+=b[W].toString()}return ne+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},bs=function(b,c,v){var U=function(ne){return ne};return c!==void 0&&v&&(U=v.internal.getEncryptor(c)),(b=b||"").toString(),b="("+is(U(b))+")"},ts=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(b){this._objId=b}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ts.prototype.toString=function(){return this.objId+" 0 R"},ts.prototype.putStream=function(){var b=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:b,objectId:this.objId}),this.scope.internal.out("endobj")},ts.prototype.getKeyValueListForStream=function(){var b=[],c=Object.getOwnPropertyNames(this).filter(function(W){return W!="content"&&W!="appearanceStreamContent"&&W!="scope"&&W!="objId"&&W.substring(0,1)!="_"});for(var v in c)if(Object.getOwnPropertyDescriptor(this,c[v]).configurable===!1){var U=c[v],ne=this[U];ne&&(Array.isArray(ne)?b.push({key:U,value:us(ne,this.objId,this.scope)}):ne instanceof ts?(ne.scope=this.scope,b.push({key:U,value:ne.objId+" 0 R"})):typeof ne!="function"&&b.push({key:U,value:ne}))}return b};var Eo=function(){ts.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 b,c=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return c},set:function(v){c=v}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(v){b=v.trim()},get:function(){return b||null}})};aa(Eo,ts);var po=function(){ts.call(this);var b,c=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return c.length>0?c:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return c}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(b){var v=function(U){return U};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+is(v(b))+")"}},set:function(v){b=v}})};aa(po,ts);var qs=function b(){ts.call(this);var c=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return c},set:function(jt){if(isNaN(jt))throw new Error('Invalid value "'+jt+'" for attribute F supplied.');c=jt}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!as(c,3)},set:function(jt){jt?this.F=Yn(c,3):this.F=Da(c,3)}});var v=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return v},set:function(jt){if(isNaN(jt))throw new Error('Invalid value "'+jt+'" for attribute Ff supplied.');v=jt}});var U=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(U.length!==0)return U},set:function(jt){U=jt!==void 0?jt:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!U||isNaN(U[0])?0:U[0]},set:function(jt){U[0]=jt}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!U||isNaN(U[1])?0:U[1]},set:function(jt){U[1]=jt}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!U||isNaN(U[2])?0:U[2]},set:function(jt){U[2]=jt}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!U||isNaN(U[3])?0:U[3]},set:function(jt){U[3]=jt}});var ne="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ne},set:function(jt){switch(jt){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ne=jt;break;default:throw new Error('Invalid value "'+jt+'" for attribute FT supplied.')}}});var W=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!W||W.length<1){if(this instanceof ks)return;W="FieldObject"+b.FieldNum++}var jt=function(Ar){return Ar};return this.scope&&(jt=this.scope.internal.getEncryptor(this.objId)),"("+is(jt(W))+")"},set:function(jt){W=jt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return W},set:function(jt){W=jt}});var ge="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ge},set:function(jt){ge=jt}});var De="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return De},set:function(jt){De=jt}});var ke=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ke},set:function(jt){ke=jt}});var rt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return rt===void 0?50/fs:rt},set:function(jt){rt=jt}});var vt="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return vt},set:function(jt){vt=jt}});var yt="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!yt||this instanceof ks||this instanceof mo))return bs(yt,this.objId,this.scope)},set:function(jt){jt=jt.toString(),yt=jt}});var Ot=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Ot)return this instanceof la?Ot:bs(Ot,this.objId,this.scope)},set:function(jt){jt=jt.toString(),Ot=this instanceof la?jt:jt.substr(0,1)==="("?es(jt.substr(1,jt.length-2)):es(jt)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof la?es(Ot.substr(1,Ot.length-1)):Ot},set:function(jt){jt=jt.toString(),Ot=this instanceof la?"/"+jt:jt}});var Ve=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ve)return Ve},set:function(jt){this.V=jt}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ve)return this instanceof la?Ve:bs(Ve,this.objId,this.scope)},set:function(jt){jt=jt.toString(),Ve=this instanceof la?jt:jt.substr(0,1)==="("?es(jt.substr(1,jt.length-2)):es(jt)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof la?es(Ve.substr(1,Ve.length-1)):Ve},set:function(jt){jt=jt.toString(),Ve=this instanceof la?"/"+jt:jt}}),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 cr,tr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return tr},set:function(jt){jt=!!jt,tr=jt}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(cr)return cr},set:function(jt){cr=jt}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,1)},set:function(jt){jt?this.Ff=Yn(this.Ff,1):this.Ff=Da(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,2)},set:function(jt){jt?this.Ff=Yn(this.Ff,2):this.Ff=Da(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,3)},set:function(jt){jt?this.Ff=Yn(this.Ff,3):this.Ff=Da(this.Ff,3)}});var hr=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(hr!==null)return hr},set:function(jt){if([0,1,2].indexOf(jt)===-1)throw new Error('Invalid value "'+jt+'" for attribute Q supplied.');hr=jt}}),Object.defineProperty(this,"textAlign",{get:function(){var jt;switch(hr){case 0:default:jt="left";break;case 1:jt="center";break;case 2:jt="right"}return jt},configurable:!0,enumerable:!0,set:function(jt){switch(jt){case"right":case 2:hr=2;break;case"center":case 1:hr=1;break;case"left":case 0:default:hr=0}}})};aa(qs,ts);var $s=function(){qs.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var b=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return b},set:function(v){b=v}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return b},set:function(v){b=v}});var c=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return us(c,this.objId,this.scope)},set:function(v){var U,ne;ne=[],typeof(U=v)=="string"&&(ne=function(W,ge,De){De||(De=1);for(var ke,rt=[];ke=ge.exec(W);)rt.push(ke[De]);return rt}(U,/\((.*?)\)/g)),c=ne}}),this.getOptions=function(){return c},this.setOptions=function(v){c=v,this.sort&&c.sort()},this.addOption=function(v){v=(v=v||"").toString(),c.push(v),this.sort&&c.sort()},this.removeOption=function(v,U){for(U=U||!1,v=(v=v||"").toString();c.indexOf(v)!==-1&&(c.splice(c.indexOf(v),1),U!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,18)},set:function(v){v?this.Ff=Yn(this.Ff,18):this.Ff=Da(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,19)},set:function(v){this.combo===!0&&(v?this.Ff=Yn(this.Ff,19):this.Ff=Da(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,20)},set:function(v){v?(this.Ff=Yn(this.Ff,20),c.sort()):this.Ff=Da(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,22)},set:function(v){v?this.Ff=Yn(this.Ff,22):this.Ff=Da(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,23)},set:function(v){v?this.Ff=Yn(this.Ff,23):this.Ff=Da(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,27)},set:function(v){v?this.Ff=Yn(this.Ff,27):this.Ff=Da(this.Ff,27)}}),this.hasAppearanceStream=!1};aa($s,qs);var Ps=function(){$s.call(this),this.fontName="helvetica",this.combo=!1};aa(Ps,$s);var Fi=function(){Ps.call(this),this.combo=!0};aa(Fi,Ps);var pi=function(){Fi.call(this),this.edit=!0};aa(pi,Fi);var la=function(){qs.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,15)},set:function(v){v?this.Ff=Yn(this.Ff,15):this.Ff=Da(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,16)},set:function(v){v?this.Ff=Yn(this.Ff,16):this.Ff=Da(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,17)},set:function(v){v?this.Ff=Yn(this.Ff,17):this.Ff=Da(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,26)},set:function(v){v?this.Ff=Yn(this.Ff,26):this.Ff=Da(this.Ff,26)}});var b,c={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var v=function(W){return W};if(this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),Object.keys(c).length!==0){var U,ne=[];for(U in ne.push("<<"),c)ne.push("/"+U+" ("+is(v(c[U]))+")");return ne.push(">>"),ne.join(`
|
|
|
`)}},set:function(v){(0,xe.Z)(v)==="object"&&(c=v)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return c.CA||""},set:function(v){typeof v=="string"&&(c.CA=v)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return b},set:function(v){b=v}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return b.substr(1,b.length-1)},set:function(v){b="/"+v}})};aa(la,qs);var ps=function(){la.call(this),this.pushButton=!0};aa(ps,la);var Oa=function(){la.call(this),this.radio=!0,this.pushButton=!1;var b=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return b},set:function(c){b=c!==void 0?c:[]}})};aa(Oa,la);var ks=function(){var b,c;qs.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return b},set:function(ne){b=ne}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return c},set:function(ne){c=ne}});var v,U={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ne=function(De){return De};this.scope&&(ne=this.scope.internal.getEncryptor(this.objId));var W,ge=[];for(W in ge.push("<<"),U)ge.push("/"+W+" ("+is(ne(U[W]))+")");return ge.push(">>"),ge.join(`
|
|
|
`)},set:function(ne){(0,xe.Z)(ne)==="object"&&(U=ne)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return U.CA||""},set:function(ne){typeof ne=="string"&&(U.CA=ne)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return v},set:function(ne){v=ne}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return v.substr(1,v.length-1)},set:function(ne){v="/"+ne}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ii.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};aa(ks,qs),Oa.prototype.setAppearance=function(b){if(!("createAppearanceStream"in b)||!("getCA"in b))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var c in this.Kids)if(this.Kids.hasOwnProperty(c)){var v=this.Kids[c];v.appearanceStreamContent=b.createAppearanceStream(v.optionName),v.caption=b.getCA()}},Oa.prototype.createOption=function(b){var c=new ks;return c.Parent=this,c.optionName=b,this.Kids.push(c),kl.call(this.scope,c),c};var Gs=function(){la.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ii.CheckBox.createAppearanceStream()};aa(Gs,la);var mo=function(){qs.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,13)},set:function(c){c?this.Ff=Yn(this.Ff,13):this.Ff=Da(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,21)},set:function(c){c?this.Ff=Yn(this.Ff,21):this.Ff=Da(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,23)},set:function(c){c?this.Ff=Yn(this.Ff,23):this.Ff=Da(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,24)},set:function(c){c?this.Ff=Yn(this.Ff,24):this.Ff=Da(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,25)},set:function(c){c?this.Ff=Yn(this.Ff,25):this.Ff=Da(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,26)},set:function(c){c?this.Ff=Yn(this.Ff,26):this.Ff=Da(this.Ff,26)}});var b=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return b},set:function(c){b=c}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return b},set:function(c){Number.isInteger(c)&&(b=c)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};aa(mo,qs);var Ns=function(){mo.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!as(this.Ff,14)},set:function(b){b?this.Ff=Yn(this.Ff,14):this.Ff=Da(this.Ff,14)}}),this.password=!0};aa(Ns,mo);var Ii={CheckBox:{createAppearanceStream:function(){return{N:{On:Ii.CheckBox.YesNormal},D:{On:Ii.CheckBox.YesPushDown,Off:Ii.CheckBox.OffPushDown}}},YesPushDown:function(b){var c=js(b);c.scope=b.scope;var v=[],U=b.scope.internal.getFont(b.fontName,b.fontStyle).id,ne=b.scope.__private__.encodeColorString(b.color),W=ea(b,b.caption);return v.push("0.749023 g"),v.push("0 0 "+Yi(Ii.internal.getWidth(b))+" "+Yi(Ii.internal.getHeight(b))+" re"),v.push("f"),v.push("BMC"),v.push("q"),v.push("0 0 1 rg"),v.push("/"+U+" "+Yi(W.fontSize)+" Tf "+ne),v.push("BT"),v.push(W.text),v.push("ET"),v.push("Q"),v.push("EMC"),c.stream=v.join(`
|
|
|
`),c},YesNormal:function(b){var c=js(b);c.scope=b.scope;var v=b.scope.internal.getFont(b.fontName,b.fontStyle).id,U=b.scope.__private__.encodeColorString(b.color),ne=[],W=Ii.internal.getHeight(b),ge=Ii.internal.getWidth(b),De=ea(b,b.caption);return ne.push("1 g"),ne.push("0 0 "+Yi(ge)+" "+Yi(W)+" re"),ne.push("f"),ne.push("q"),ne.push("0 0 1 rg"),ne.push("0 0 "+Yi(ge-1)+" "+Yi(W-1)+" re"),ne.push("W"),ne.push("n"),ne.push("0 g"),ne.push("BT"),ne.push("/"+v+" "+Yi(De.fontSize)+" Tf "+U),ne.push(De.text),ne.push("ET"),ne.push("Q"),c.stream=ne.join(`
|
|
|
`),c},OffPushDown:function(b){var c=js(b);c.scope=b.scope;var v=[];return v.push("0.749023 g"),v.push("0 0 "+Yi(Ii.internal.getWidth(b))+" "+Yi(Ii.internal.getHeight(b))+" re"),v.push("f"),c.stream=v.join(`
|
|
|
`),c}},RadioButton:{Circle:{createAppearanceStream:function(b){var c={D:{Off:Ii.RadioButton.Circle.OffPushDown},N:{}};return c.N[b]=Ii.RadioButton.Circle.YesNormal,c.D[b]=Ii.RadioButton.Circle.YesPushDown,c},getCA:function(){return"l"},YesNormal:function(b){var c=js(b);c.scope=b.scope;var v=[],U=Ii.internal.getWidth(b)<=Ii.internal.getHeight(b)?Ii.internal.getWidth(b)/4:Ii.internal.getHeight(b)/4;U=Number((.9*U).toFixed(5));var ne=Ii.internal.Bezier_C,W=Number((U*ne).toFixed(5));return v.push("q"),v.push("1 0 0 1 "+hs(Ii.internal.getWidth(b)/2)+" "+hs(Ii.internal.getHeight(b)/2)+" cm"),v.push(U+" 0 m"),v.push(U+" "+W+" "+W+" "+U+" 0 "+U+" c"),v.push("-"+W+" "+U+" -"+U+" "+W+" -"+U+" 0 c"),v.push("-"+U+" -"+W+" -"+W+" -"+U+" 0 -"+U+" c"),v.push(W+" -"+U+" "+U+" -"+W+" "+U+" 0 c"),v.push("f"),v.push("Q"),c.stream=v.join(`
|
|
|
`),c},YesPushDown:function(b){var c=js(b);c.scope=b.scope;var v=[],U=Ii.internal.getWidth(b)<=Ii.internal.getHeight(b)?Ii.internal.getWidth(b)/4:Ii.internal.getHeight(b)/4;U=Number((.9*U).toFixed(5));var ne=Number((2*U).toFixed(5)),W=Number((ne*Ii.internal.Bezier_C).toFixed(5)),ge=Number((U*Ii.internal.Bezier_C).toFixed(5));return v.push("0.749023 g"),v.push("q"),v.push("1 0 0 1 "+hs(Ii.internal.getWidth(b)/2)+" "+hs(Ii.internal.getHeight(b)/2)+" cm"),v.push(ne+" 0 m"),v.push(ne+" "+W+" "+W+" "+ne+" 0 "+ne+" c"),v.push("-"+W+" "+ne+" -"+ne+" "+W+" -"+ne+" 0 c"),v.push("-"+ne+" -"+W+" -"+W+" -"+ne+" 0 -"+ne+" c"),v.push(W+" -"+ne+" "+ne+" -"+W+" "+ne+" 0 c"),v.push("f"),v.push("Q"),v.push("0 g"),v.push("q"),v.push("1 0 0 1 "+hs(Ii.internal.getWidth(b)/2)+" "+hs(Ii.internal.getHeight(b)/2)+" cm"),v.push(U+" 0 m"),v.push(U+" "+ge+" "+ge+" "+U+" 0 "+U+" c"),v.push("-"+ge+" "+U+" -"+U+" "+ge+" -"+U+" 0 c"),v.push("-"+U+" -"+ge+" -"+ge+" -"+U+" 0 -"+U+" c"),v.push(ge+" -"+U+" "+U+" -"+ge+" "+U+" 0 c"),v.push("f"),v.push("Q"),c.stream=v.join(`
|
|
|
`),c},OffPushDown:function(b){var c=js(b);c.scope=b.scope;var v=[],U=Ii.internal.getWidth(b)<=Ii.internal.getHeight(b)?Ii.internal.getWidth(b)/4:Ii.internal.getHeight(b)/4;U=Number((.9*U).toFixed(5));var ne=Number((2*U).toFixed(5)),W=Number((ne*Ii.internal.Bezier_C).toFixed(5));return v.push("0.749023 g"),v.push("q"),v.push("1 0 0 1 "+hs(Ii.internal.getWidth(b)/2)+" "+hs(Ii.internal.getHeight(b)/2)+" cm"),v.push(ne+" 0 m"),v.push(ne+" "+W+" "+W+" "+ne+" 0 "+ne+" c"),v.push("-"+W+" "+ne+" -"+ne+" "+W+" -"+ne+" 0 c"),v.push("-"+ne+" -"+W+" -"+W+" -"+ne+" 0 -"+ne+" c"),v.push(W+" -"+ne+" "+ne+" -"+W+" "+ne+" 0 c"),v.push("f"),v.push("Q"),c.stream=v.join(`
|
|
|
`),c}},Cross:{createAppearanceStream:function(b){var c={D:{Off:Ii.RadioButton.Cross.OffPushDown},N:{}};return c.N[b]=Ii.RadioButton.Cross.YesNormal,c.D[b]=Ii.RadioButton.Cross.YesPushDown,c},getCA:function(){return"8"},YesNormal:function(b){var c=js(b);c.scope=b.scope;var v=[],U=Ii.internal.calculateCross(b);return v.push("q"),v.push("1 1 "+Yi(Ii.internal.getWidth(b)-2)+" "+Yi(Ii.internal.getHeight(b)-2)+" re"),v.push("W"),v.push("n"),v.push(Yi(U.x1.x)+" "+Yi(U.x1.y)+" m"),v.push(Yi(U.x2.x)+" "+Yi(U.x2.y)+" l"),v.push(Yi(U.x4.x)+" "+Yi(U.x4.y)+" m"),v.push(Yi(U.x3.x)+" "+Yi(U.x3.y)+" l"),v.push("s"),v.push("Q"),c.stream=v.join(`
|
|
|
`),c},YesPushDown:function(b){var c=js(b);c.scope=b.scope;var v=Ii.internal.calculateCross(b),U=[];return U.push("0.749023 g"),U.push("0 0 "+Yi(Ii.internal.getWidth(b))+" "+Yi(Ii.internal.getHeight(b))+" re"),U.push("f"),U.push("q"),U.push("1 1 "+Yi(Ii.internal.getWidth(b)-2)+" "+Yi(Ii.internal.getHeight(b)-2)+" re"),U.push("W"),U.push("n"),U.push(Yi(v.x1.x)+" "+Yi(v.x1.y)+" m"),U.push(Yi(v.x2.x)+" "+Yi(v.x2.y)+" l"),U.push(Yi(v.x4.x)+" "+Yi(v.x4.y)+" m"),U.push(Yi(v.x3.x)+" "+Yi(v.x3.y)+" l"),U.push("s"),U.push("Q"),c.stream=U.join(`
|
|
|
`),c},OffPushDown:function(b){var c=js(b);c.scope=b.scope;var v=[];return v.push("0.749023 g"),v.push("0 0 "+Yi(Ii.internal.getWidth(b))+" "+Yi(Ii.internal.getHeight(b))+" re"),v.push("f"),c.stream=v.join(`
|
|
|
`),c}}},createDefaultAppearanceStream:function(b){var c=b.scope.internal.getFont(b.fontName,b.fontStyle).id,v=b.scope.__private__.encodeColorString(b.color);return"/"+c+" "+b.fontSize+" Tf "+v}};Ii.internal={Bezier_C:.551915024494,calculateCross:function(b){var c=Ii.internal.getWidth(b),v=Ii.internal.getHeight(b),U=Math.min(c,v);return{x1:{x:(c-U)/2,y:(v-U)/2+U},x2:{x:(c-U)/2+U,y:(v-U)/2},x3:{x:(c-U)/2,y:(v-U)/2},x4:{x:(c-U)/2+U,y:(v-U)/2+U}}}},Ii.internal.getWidth=function(b){var c=0;return(0,xe.Z)(b)==="object"&&(c=co(b.Rect[2])),c},Ii.internal.getHeight=function(b){var c=0;return(0,xe.Z)(b)==="object"&&(c=co(b.Rect[3])),c};var kl=oa.addField=function(b){if(Os(this,b),!(b instanceof qs))throw new Error("Invalid argument passed to jsPDF.addField.");var c;return(c=b).scope.internal.acroformPlugin.printedOut&&(c.scope.internal.acroformPlugin.printedOut=!1,c.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),c.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(c),b.page=b.scope.internal.getCurrentPageInfo().pageNumber,this};oa.AcroFormChoiceField=$s,oa.AcroFormListBox=Ps,oa.AcroFormComboBox=Fi,oa.AcroFormEditBox=pi,oa.AcroFormButton=la,oa.AcroFormPushButton=ps,oa.AcroFormRadioButton=Oa,oa.AcroFormCheckBox=Gs,oa.AcroFormTextField=mo,oa.AcroFormPasswordField=Ns,oa.AcroFormAppearance=Ii,oa.AcroForm={ChoiceField:$s,ListBox:Ps,ComboBox:Fi,EditBox:pi,Button:la,PushButton:ps,RadioButton:Oa,CheckBox:Gs,TextField:mo,PasswordField:Ns,Appearance:Ii},Ni.AcroForm={ChoiceField:$s,ListBox:Ps,ComboBox:Fi,EditBox:pi,Button:la,PushButton:ps,RadioButton:Oa,CheckBox:Gs,TextField:mo,PasswordField:Ns,Appearance:Ii};var Ys=Ni.AcroForm;function il(b){return b.reduce(function(c,v,U){return c[v]=U,c},{})}(function(b){b.__addimage__={};var c="UNKNOWN",v={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]]},U=b.__addimage__.getImageFileTypeByImageData=function(zt,nr){var Nr,ve,Pe,Xe,lt,ut=c;if((nr=nr||c)==="RGBA"||zt.data!==void 0&&zt.data instanceof Uint8ClampedArray&&"height"in zt&&"width"in zt)return"RGBA";if(Ai(zt))for(lt in v)for(Pe=v[lt],Nr=0;Nr<Pe.length;Nr+=1){for(Xe=!0,ve=0;ve<Pe[Nr].length;ve+=1)if(Pe[Nr][ve]!==void 0&&Pe[Nr][ve]!==zt[ve]){Xe=!1;break}if(Xe===!0){ut=lt;break}}else for(lt in v)for(Pe=v[lt],Nr=0;Nr<Pe.length;Nr+=1){for(Xe=!0,ve=0;ve<Pe[Nr].length;ve+=1)if(Pe[Nr][ve]!==void 0&&Pe[Nr][ve]!==zt.charCodeAt(ve)){Xe=!1;break}if(Xe===!0){ut=lt;break}}return ut===c&&nr!==c&&(ut=nr),ut},ne=function zt(nr){for(var Nr=this.internal.write,ve=this.internal.putStream,Pe=(0,this.internal.getFilters)();Pe.indexOf("FlateEncode")!==-1;)Pe.splice(Pe.indexOf("FlateEncode"),1);nr.objectId=this.internal.newObject();var Xe=[];if(Xe.push({key:"Type",value:"/XObject"}),Xe.push({key:"Subtype",value:"/Image"}),Xe.push({key:"Width",value:nr.width}),Xe.push({key:"Height",value:nr.height}),nr.colorSpace===hr.INDEXED?Xe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(nr.palette.length/3-1)+" "+("sMask"in nr&&nr.sMask!==void 0?nr.objectId+2:nr.objectId+1)+" 0 R]"}):(Xe.push({key:"ColorSpace",value:"/"+nr.colorSpace}),nr.colorSpace===hr.DEVICE_CMYK&&Xe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Xe.push({key:"BitsPerComponent",value:nr.bitsPerComponent}),"decodeParameters"in nr&&nr.decodeParameters!==void 0&&Xe.push({key:"DecodeParms",value:"<<"+nr.decodeParameters+">>"}),"transparency"in nr&&Array.isArray(nr.transparency)){for(var lt="",ut=0,xt=nr.transparency.length;ut<xt;ut++)lt+=nr.transparency[ut]+" "+nr.transparency[ut]+" ";Xe.push({key:"Mask",value:"["+lt+"]"})}nr.sMask!==void 0&&Xe.push({key:"SMask",value:nr.objectId+1+" 0 R"});var Qt=nr.filter!==void 0?["/"+nr.filter]:void 0;if(ve({data:nr.data,additionalKeyValues:Xe,alreadyAppliedFilters:Qt,objectId:nr.objectId}),Nr("endobj"),"sMask"in nr&&nr.sMask!==void 0){var lr="/Predictor "+nr.predictor+" /Colors 1 /BitsPerComponent "+nr.bitsPerComponent+" /Columns "+nr.width,He={width:nr.width,height:nr.height,colorSpace:"DeviceGray",bitsPerComponent:nr.bitsPerComponent,decodeParameters:lr,data:nr.sMask};"filter"in nr&&(He.filter=nr.filter),zt.call(this,He)}if(nr.colorSpace===hr.INDEXED){var At=this.internal.newObject();ve({data:Br(new Uint8Array(nr.palette)),objectId:At}),Nr("endobj")}},W=function(){var zt=this.internal.collections.addImage_images;for(var nr in zt)ne.call(this,zt[nr])},ge=function(){var zt,nr=this.internal.collections.addImage_images,Nr=this.internal.write;for(var ve in nr)Nr("/I"+(zt=nr[ve]).index,zt.objectId,"0","R")},De=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",W),this.internal.events.subscribe("putXobjectDict",ge))},ke=function(){var zt=this.internal.collections.addImage_images;return De.call(this),zt},rt=function(){return Object.keys(this.internal.collections.addImage_images).length},vt=function(zt){return typeof b["process"+zt.toUpperCase()]=="function"},yt=function(zt){return(0,xe.Z)(zt)==="object"&&zt.nodeType===1},Ot=function(zt,nr){if(zt.nodeName==="IMG"&&zt.hasAttribute("src")){var Nr=""+zt.getAttribute("src");if(Nr.indexOf("data:image/")===0)return Bi(unescape(Nr).split("base64,").pop());var ve=b.loadFile(Nr,!0);if(ve!==void 0)return ve}if(zt.nodeName==="CANVAS"){if(zt.width===0||zt.height===0)throw new Error("Given canvas must have data. Canvas width: "+zt.width+", height: "+zt.height);var Pe;switch(nr){case"PNG":Pe="image/png";break;case"WEBP":Pe="image/webp";break;case"JPEG":case"JPG":default:Pe="image/jpeg"}return Bi(zt.toDataURL(Pe,1).split("base64,").pop())}},Ve=function(zt){var nr=this.internal.collections.addImage_images;if(nr){for(var Nr in nr)if(zt===nr[Nr].alias)return nr[Nr]}},cr=function(zt,nr,Nr){return zt||nr||(zt=-96,nr=-96),zt<0&&(zt=-1*Nr.width*72/zt/this.internal.scaleFactor),nr<0&&(nr=-1*Nr.height*72/nr/this.internal.scaleFactor),zt===0&&(zt=nr*Nr.width/Nr.height),nr===0&&(nr=zt*Nr.height/Nr.width),[zt,nr]},tr=function(zt,nr,Nr,ve,Pe,Xe){var lt=cr.call(this,Nr,ve,Pe),ut=this.internal.getCoordinateString,xt=this.internal.getVerticalCoordinateString,Qt=ke.call(this);if(Nr=lt[0],ve=lt[1],Qt[Pe.index]=Pe,Xe){Xe*=Math.PI/180;var lr=Math.cos(Xe),He=Math.sin(Xe),At=function(Ft){return Ft.toFixed(4)},Te=[At(lr),At(He),At(-1*He),At(lr),0,0,"cm"]}this.internal.write("q"),Xe?(this.internal.write([1,"0","0",1,ut(zt),xt(nr+ve),"cm"].join(" ")),this.internal.write(Te.join(" ")),this.internal.write([ut(Nr),"0","0",ut(ve),"0","0","cm"].join(" "))):this.internal.write([ut(Nr),"0","0",ut(ve),ut(zt),xt(nr+ve),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Pe.index+" Do"),this.internal.write("Q")},hr=b.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"};b.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 jt=b.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Ar=b.__addimage__.sHashCode=function(zt){var nr,Nr,ve=0;if(typeof zt=="string")for(Nr=zt.length,nr=0;nr<Nr;nr++)ve=(ve<<5)-ve+zt.charCodeAt(nr),ve|=0;else if(Ai(zt))for(Nr=zt.byteLength/2,nr=0;nr<Nr;nr++)ve=(ve<<5)-ve+zt[nr],ve|=0;return ve},kr=b.__addimage__.validateStringAsBase64=function(zt){(zt=zt||"").toString().trim();var nr=!0;return zt.length===0&&(nr=!1),zt.length%4!=0&&(nr=!1),/^[A-Za-z0-9+/]+$/.test(zt.substr(0,zt.length-2))===!1&&(nr=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(zt.substr(-2))===!1&&(nr=!1),nr},ln=b.__addimage__.extractImageFromDataUrl=function(zt){if(zt==null||!(zt=zt.trim()).startsWith("data:"))return null;var nr=zt.indexOf(",");return nr<0?null:zt.substring(0,nr).trim().endsWith("base64")?zt.substring(nr+1):null},Ln=b.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};b.__addimage__.isArrayBuffer=function(zt){return Ln()&&zt instanceof ArrayBuffer};var Ai=b.__addimage__.isArrayBufferView=function(zt){return Ln()&&typeof Uint32Array!="undefined"&&(zt instanceof Int8Array||zt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&zt instanceof Uint8ClampedArray||zt instanceof Int16Array||zt instanceof Uint16Array||zt instanceof Int32Array||zt instanceof Uint32Array||zt instanceof Float32Array||zt instanceof Float64Array)},hn=b.__addimage__.binaryStringToUint8Array=function(zt){for(var nr=zt.length,Nr=new Uint8Array(nr),ve=0;ve<nr;ve++)Nr[ve]=zt.charCodeAt(ve);return Nr},Br=b.__addimage__.arrayBufferToBinaryString=function(zt){for(var nr="",Nr=Ai(zt)?zt:new Uint8Array(zt),ve=0;ve<Nr.length;ve+=8192)nr+=String.fromCharCode.apply(null,Nr.subarray(ve,ve+8192));return nr};b.addImage=function(){var zt,nr,Nr,ve,Pe,Xe,lt,ut,xt;if(typeof arguments[1]=="number"?(nr=c,Nr=arguments[1],ve=arguments[2],Pe=arguments[3],Xe=arguments[4],lt=arguments[5],ut=arguments[6],xt=arguments[7]):(nr=arguments[1],Nr=arguments[2],ve=arguments[3],Pe=arguments[4],Xe=arguments[5],lt=arguments[6],ut=arguments[7],xt=arguments[8]),(0,xe.Z)(zt=arguments[0])==="object"&&!yt(zt)&&"imageData"in zt){var Qt=zt;zt=Qt.imageData,nr=Qt.format||nr||c,Nr=Qt.x||Nr||0,ve=Qt.y||ve||0,Pe=Qt.w||Qt.width||Pe,Xe=Qt.h||Qt.height||Xe,lt=Qt.alias||lt,ut=Qt.compression||ut,xt=Qt.rotation||Qt.angle||xt}var lr=this.internal.getFilters();if(ut===void 0&&lr.indexOf("FlateEncode")!==-1&&(ut="SLOW"),isNaN(Nr)||isNaN(ve))throw new Error("Invalid coordinates passed to jsPDF.addImage");De.call(this);var He=vn.call(this,zt,nr,lt,ut);return tr.call(this,Nr,ve,Pe,Xe,He,xt),this};var vn=function(zt,nr,Nr,ve){var Pe,Xe,lt;if(typeof zt=="string"&&U(zt)===c){zt=unescape(zt);var ut=Gn(zt,!1);(ut!==""||(ut=b.loadFile(zt,!0))!==void 0)&&(zt=ut)}if(yt(zt)&&(zt=Ot(zt,nr)),nr=U(zt,nr),!vt(nr))throw new Error("addImage does not support files of type '"+nr+"', please ensure that a plugin for '"+nr+"' support is added.");if(((lt=Nr)==null||lt.length===0)&&(Nr=function(xt){return typeof xt=="string"||Ai(xt)?Ar(xt):Ai(xt.data)?Ar(xt.data):null}(zt)),(Pe=Ve.call(this,Nr))||(Ln()&&(zt instanceof Uint8Array||nr==="RGBA"||(Xe=zt,zt=hn(zt))),Pe=this["process"+nr.toUpperCase()](zt,rt.call(this),Nr,function(xt){return xt&&typeof xt=="string"&&(xt=xt.toUpperCase()),xt in b.image_compression?xt:jt.NONE}(ve),Xe)),!Pe)throw new Error("An unknown error occurred whilst processing the image.");return Pe},Gn=b.__addimage__.convertBase64ToBinaryString=function(zt,nr){nr=typeof nr!="boolean"||nr;var Nr,ve="";if(typeof zt=="string"){var Pe;Nr=(Pe=ln(zt))!==null&&Pe!==void 0?Pe:zt;try{ve=Bi(Nr)}catch(Xe){if(nr)throw kr(Nr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Xe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ve};b.getImageProperties=function(zt){var nr,Nr,ve="";if(yt(zt)&&(zt=Ot(zt)),typeof zt=="string"&&U(zt)===c&&((ve=Gn(zt,!1))===""&&(ve=b.loadFile(zt)||""),zt=ve),Nr=U(zt),!vt(Nr))throw new Error("addImage does not support files of type '"+Nr+"', please ensure that a plugin for '"+Nr+"' support is added.");if(!Ln()||zt instanceof Uint8Array||(zt=hn(zt)),!(nr=this["process"+Nr.toUpperCase()](zt)))throw new Error("An unknown error occurred whilst processing the image");return nr.fileType=Nr,nr}})(Ni.API),function(b){var c=function(v){if(v!==void 0&&v!="")return!0};Ni.API.events.push(["addPage",function(v){this.internal.getPageInfo(v.pageNumber).pageContext.annotations=[]}]),b.events.push(["putPage",function(v){for(var U,ne,W,ge=this.internal.getCoordinateString,De=this.internal.getVerticalCoordinateString,ke=this.internal.getPageInfoByObjId(v.objId),rt=v.pageContext.annotations,vt=!1,yt=0;yt<rt.length&&!vt;yt++)switch((U=rt[yt]).type){case"link":(c(U.options.url)||c(U.options.pageNumber))&&(vt=!0);break;case"reference":case"text":case"freetext":vt=!0}if(vt!=0){this.internal.write("/Annots [");for(var Ot=0;Ot<rt.length;Ot++){U=rt[Ot];var Ve=this.internal.pdfEscape,cr=this.internal.getEncryptor(v.objId);switch(U.type){case"reference":this.internal.write(" "+U.object.objId+" 0 R ");break;case"text":var tr=this.internal.newAdditionalObject(),hr=this.internal.newAdditionalObject(),jt=this.internal.getEncryptor(tr.objId),Ar=U.title||"Note";W="<</Type /Annot /Subtype /Text "+(ne="/Rect ["+ge(U.bounds.x)+" "+De(U.bounds.y+U.bounds.h)+" "+ge(U.bounds.x+U.bounds.w)+" "+De(U.bounds.y)+"] ")+"/Contents ("+Ve(jt(U.contents))+")",W+=" /Popup "+hr.objId+" 0 R",W+=" /P "+ke.objId+" 0 R",W+=" /T ("+Ve(jt(Ar))+") >>",tr.content=W;var kr=tr.objId+" 0 R";W="<</Type /Annot /Subtype /Popup "+(ne="/Rect ["+ge(U.bounds.x+30)+" "+De(U.bounds.y+U.bounds.h)+" "+ge(U.bounds.x+U.bounds.w+30)+" "+De(U.bounds.y)+"] ")+" /Parent "+kr,U.open&&(W+=" /Open true"),W+=" >>",hr.content=W,this.internal.write(tr.objId,"0 R",hr.objId,"0 R");break;case"freetext":ne="/Rect ["+ge(U.bounds.x)+" "+De(U.bounds.y)+" "+ge(U.bounds.x+U.bounds.w)+" "+De(U.bounds.y+U.bounds.h)+"] ";var ln=U.color||"#000000";W="<</Type /Annot /Subtype /FreeText "+ne+"/Contents ("+Ve(cr(U.contents))+")",W+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ln+")",W+=" /Border [0 0 0]",W+=" >>",this.internal.write(W);break;case"link":if(U.options.name){var Ln=this.annotations._nameMap[U.options.name];U.options.pageNumber=Ln.page,U.options.top=Ln.y}else U.options.top||(U.options.top=0);if(ne="/Rect ["+U.finalBounds.x+" "+U.finalBounds.y+" "+U.finalBounds.w+" "+U.finalBounds.h+"] ",W="",U.options.url)W="<</Type /Annot /Subtype /Link "+ne+"/Border [0 0 0] /A <</S /URI /URI ("+Ve(cr(U.options.url))+") >>";else if(U.options.pageNumber)switch(W="<</Type /Annot /Subtype /Link "+ne+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(U.options.pageNumber).objId+" 0 R",U.options.magFactor=U.options.magFactor||"XYZ",U.options.magFactor){case"Fit":W+=" /Fit]";break;case"FitH":W+=" /FitH "+U.options.top+"]";break;case"FitV":U.options.left=U.options.left||0,W+=" /FitV "+U.options.left+"]";break;case"XYZ":default:var Ai=De(U.options.top);U.options.left=U.options.left||0,U.options.zoom===void 0&&(U.options.zoom=0),W+=" /XYZ "+U.options.left+" "+Ai+" "+U.options.zoom+"]"}W!=""&&(W+=" >>",this.internal.write(W))}}this.internal.write("]")}}]),b.createAnnotation=function(v){var U=this.internal.getCurrentPageInfo();switch(v.type){case"link":this.link(v.bounds.x,v.bounds.y,v.bounds.w,v.bounds.h,v);break;case"text":case"freetext":U.pageContext.annotations.push(v)}},b.link=function(v,U,ne,W,ge){var De=this.internal.getCurrentPageInfo(),ke=this.internal.getCoordinateString,rt=this.internal.getVerticalCoordinateString;De.pageContext.annotations.push({finalBounds:{x:ke(v),y:rt(U),w:ke(v+ne),h:rt(U+W)},options:ge,type:"link"})},b.textWithLink=function(v,U,ne,W){var ge,De,ke=this.getTextWidth(v),rt=this.internal.getLineHeight()/this.internal.scaleFactor;if(W.maxWidth!==void 0){De=W.maxWidth;var vt=this.splitTextToSize(v,De).length;ge=Math.ceil(rt*vt)}else De=ke,ge=rt;return this.text(v,U,ne,W),ne+=.2*rt,W.align==="center"&&(U-=ke/2),W.align==="right"&&(U-=ke),this.link(U,ne-rt,De,ge,W),ke},b.getTextWidth=function(v){var U=this.internal.getFontSize();return this.getStringUnitWidth(v)*U/this.internal.scaleFactor}}(Ni.API),function(b){var c={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]},v={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}},U={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ne=[1570,1571,1573,1575];b.__arabicParser__={};var W=b.__arabicParser__.isInArabicSubstitutionA=function(tr){return c[tr.charCodeAt(0)]!==void 0},ge=b.__arabicParser__.isArabicLetter=function(tr){return typeof tr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(tr)},De=b.__arabicParser__.isArabicEndLetter=function(tr){return ge(tr)&&W(tr)&&c[tr.charCodeAt(0)].length<=2},ke=b.__arabicParser__.isArabicAlfLetter=function(tr){return ge(tr)&&ne.indexOf(tr.charCodeAt(0))>=0};b.__arabicParser__.arabicLetterHasIsolatedForm=function(tr){return ge(tr)&&W(tr)&&c[tr.charCodeAt(0)].length>=1};var rt=b.__arabicParser__.arabicLetterHasFinalForm=function(tr){return ge(tr)&&W(tr)&&c[tr.charCodeAt(0)].length>=2};b.__arabicParser__.arabicLetterHasInitialForm=function(tr){return ge(tr)&&W(tr)&&c[tr.charCodeAt(0)].length>=3};var vt=b.__arabicParser__.arabicLetterHasMedialForm=function(tr){return ge(tr)&&W(tr)&&c[tr.charCodeAt(0)].length==4},yt=b.__arabicParser__.resolveLigatures=function(tr){var hr=0,jt=v,Ar="",kr=0;for(hr=0;hr<tr.length;hr+=1)jt[tr.charCodeAt(hr)]!==void 0?(kr++,typeof(jt=jt[tr.charCodeAt(hr)])=="number"&&(Ar+=String.fromCharCode(jt),jt=v,kr=0),hr===tr.length-1&&(jt=v,Ar+=tr.charAt(hr-(kr-1)),hr-=kr-1,kr=0)):(jt=v,Ar+=tr.charAt(hr-kr),hr-=kr,kr=0);return Ar};b.__arabicParser__.isArabicDiacritic=function(tr){return tr!==void 0&&U[tr.charCodeAt(0)]!==void 0};var Ot=b.__arabicParser__.getCorrectForm=function(tr,hr,jt){return ge(tr)?W(tr)===!1?-1:!rt(tr)||!ge(hr)&&!ge(jt)||!ge(jt)&&De(hr)||De(tr)&&!ge(hr)||De(tr)&&ke(hr)||De(tr)&&De(hr)?0:vt(tr)&&ge(hr)&&!De(hr)&&ge(jt)&&rt(jt)?3:De(tr)||!ge(jt)?1:2:-1},Ve=function(tr){var hr=0,jt=0,Ar=0,kr="",ln="",Ln="",Ai=(tr=tr||"").split("\\s+"),hn=[];for(hr=0;hr<Ai.length;hr+=1){for(hn.push(""),jt=0;jt<Ai[hr].length;jt+=1)kr=Ai[hr][jt],ln=Ai[hr][jt-1],Ln=Ai[hr][jt+1],ge(kr)?(Ar=Ot(kr,ln,Ln),hn[hr]+=Ar!==-1?String.fromCharCode(c[kr.charCodeAt(0)][Ar]):kr):hn[hr]+=kr;hn[hr]=yt(hn[hr])}return hn.join(" ")},cr=b.__arabicParser__.processArabic=b.processArabic=function(){var tr,hr=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,jt=[];if(Array.isArray(hr)){var Ar=0;for(jt=[],Ar=0;Ar<hr.length;Ar+=1)Array.isArray(hr[Ar])?jt.push([Ve(hr[Ar][0]),hr[Ar][1],hr[Ar][2]]):jt.push([Ve(hr[Ar])]);tr=jt}else tr=Ve(hr);return typeof arguments[0]=="string"?tr:(arguments[0].text=tr,arguments[0])};b.events.push(["preProcessText",cr])}(Ni.API),Ni.API.autoPrint=function(b){var c;switch((b=b||{}).variant=b.variant||"non-conform",b.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){c=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 "+c+" 0 R")})}return this},function(b){var c=function(){var v=void 0;Object.defineProperty(this,"pdf",{get:function(){return v},set:function(De){v=De}});var U=150;Object.defineProperty(this,"width",{get:function(){return U},set:function(De){U=isNaN(De)||Number.isInteger(De)===!1||De<0?150:De,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=U+1)}});var ne=300;Object.defineProperty(this,"height",{get:function(){return ne},set:function(De){ne=isNaN(De)||Number.isInteger(De)===!1||De<0?300:De,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ne+1)}});var W=[];Object.defineProperty(this,"childNodes",{get:function(){return W},set:function(De){W=De}});var ge={};Object.defineProperty(this,"style",{get:function(){return ge},set:function(De){ge=De}}),Object.defineProperty(this,"parentNode",{})};c.prototype.getContext=function(v,U){var ne;if((v=v||"2d")!=="2d")return null;for(ne in U)this.pdf.context2d.hasOwnProperty(ne)&&(this.pdf.context2d[ne]=U[ne]);return this.pdf.context2d._canvas=this,this.pdf.context2d},c.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},b.events.push(["initialized",function(){this.canvas=new c,this.canvas.pdf=this}])}(Ni.API),function(b){var c={left:0,top:0,bottom:0,right:0},v=!1,U=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({},c),this.internal.__cell__.margins.width=this.getPageWidth(),ne.call(this))},ne=function(){this.internal.__cell__.lastCell=new W,this.internal.__cell__.pages=1},W=function(){var ke=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ke},set:function(tr){ke=tr}});var rt=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return rt},set:function(tr){rt=tr}});var vt=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return vt},set:function(tr){vt=tr}});var yt=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return yt},set:function(tr){yt=tr}});var Ot=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Ot},set:function(tr){Ot=tr}});var Ve=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Ve},set:function(tr){Ve=tr}});var cr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return cr},set:function(tr){cr=tr}}),this};W.prototype.clone=function(){return new W(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},W.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},b.setHeaderFunction=function(ke){return U.call(this),this.internal.__cell__.headerFunction=typeof ke=="function"?ke:void 0,this},b.getTextDimensions=function(ke,rt){U.call(this);var vt=(rt=rt||{}).fontSize||this.getFontSize(),yt=rt.font||this.getFont(),Ot=rt.scaleFactor||this.internal.scaleFactor,Ve=0,cr=0,tr=0,hr=this;if(!Array.isArray(ke)&&typeof ke!="string"){if(typeof ke!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ke=String(ke)}var jt=rt.maxWidth;jt>0?typeof ke=="string"?ke=this.splitTextToSize(ke,jt):Object.prototype.toString.call(ke)==="[object Array]"&&(ke=ke.reduce(function(kr,ln){return kr.concat(hr.splitTextToSize(ln,jt))},[])):ke=Array.isArray(ke)?ke:[ke];for(var Ar=0;Ar<ke.length;Ar++)Ve<(tr=this.getStringUnitWidth(ke[Ar],{font:yt})*vt)&&(Ve=tr);return Ve!==0&&(cr=ke.length),{w:Ve/=Ot,h:Math.max((cr*vt*this.getLineHeightFactor()-vt*(this.getLineHeightFactor()-1))/Ot,0)}},b.cellAddPage=function(){U.call(this),this.addPage();var ke=this.internal.__cell__.margins||c;return this.internal.__cell__.lastCell=new W(ke.left,ke.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ge=b.cell=function(){var ke;ke=arguments[0]instanceof W?arguments[0]:new W(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),U.call(this);var rt=this.internal.__cell__.lastCell,vt=this.internal.__cell__.padding,yt=this.internal.__cell__.margins||c,Ot=this.internal.__cell__.tableHeaderRow,Ve=this.internal.__cell__.printHeaders;return rt.lineNumber!==void 0&&(rt.lineNumber===ke.lineNumber?(ke.x=(rt.x||0)+(rt.width||0),ke.y=rt.y||0):rt.y+rt.height+ke.height+yt.bottom>this.getPageHeight()?(this.cellAddPage(),ke.y=yt.top,Ve&&Ot&&(this.printHeaderRow(ke.lineNumber,!0),ke.y+=Ot[0].height)):ke.y=rt.y+rt.height||ke.y),ke.text[0]!==void 0&&(this.rect(ke.x,ke.y,ke.width,ke.height,v===!0?"FD":void 0),ke.align==="right"?this.text(ke.text,ke.x+ke.width-vt,ke.y+vt,{align:"right",baseline:"top"}):ke.align==="center"?this.text(ke.text,ke.x+ke.width/2,ke.y+vt,{align:"center",baseline:"top",maxWidth:ke.width-vt-vt}):this.text(ke.text,ke.x+vt,ke.y+vt,{align:"left",baseline:"top",maxWidth:ke.width-vt-vt})),this.internal.__cell__.lastCell=ke,this};b.table=function(ke,rt,vt,yt,Ot){if(U.call(this),!vt)throw new Error("No data for PDF table.");var Ve,cr,tr,hr,jt=[],Ar=[],kr=[],ln={},Ln={},Ai=[],hn=[],Br=(Ot=Ot||{}).autoSize||!1,vn=Ot.printHeaders!==!1,Gn=Ot.css&&Ot.css["font-size"]!==void 0?16*Ot.css["font-size"]:Ot.fontSize||12,zt=Ot.margins||Object.assign({width:this.getPageWidth()},c),nr=typeof Ot.padding=="number"?Ot.padding:3,Nr=Ot.headerBackgroundColor||"#c8c8c8",ve=Ot.headerTextColor||"#000";if(ne.call(this),this.internal.__cell__.printHeaders=vn,this.internal.__cell__.margins=zt,this.internal.__cell__.table_font_size=Gn,this.internal.__cell__.padding=nr,this.internal.__cell__.headerBackgroundColor=Nr,this.internal.__cell__.headerTextColor=ve,this.setFontSize(Gn),yt==null)Ar=jt=Object.keys(vt[0]),kr=jt.map(function(){return"left"});else if(Array.isArray(yt)&&(0,xe.Z)(yt[0])==="object")for(jt=yt.map(function(Qt){return Qt.name}),Ar=yt.map(function(Qt){return Qt.prompt||Qt.name||""}),kr=yt.map(function(Qt){return Qt.align||"left"}),Ve=0;Ve<yt.length;Ve+=1)Ln[yt[Ve].name]=yt[Ve].width*(19.049976/25.4);else Array.isArray(yt)&&typeof yt[0]=="string"&&(Ar=jt=yt,kr=jt.map(function(){return"left"}));if(Br||Array.isArray(yt)&&typeof yt[0]=="string")for(Ve=0;Ve<jt.length;Ve+=1){for(ln[hr=jt[Ve]]=vt.map(function(Qt){return Qt[hr]}),this.setFont(void 0,"bold"),Ai.push(this.getTextDimensions(Ar[Ve],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),cr=ln[hr],this.setFont(void 0,"normal"),tr=0;tr<cr.length;tr+=1)Ai.push(this.getTextDimensions(cr[tr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ln[hr]=Math.max.apply(null,Ai)+nr+nr,Ai=[]}if(vn){var Pe={};for(Ve=0;Ve<jt.length;Ve+=1)Pe[jt[Ve]]={},Pe[jt[Ve]].text=Ar[Ve],Pe[jt[Ve]].align=kr[Ve];var Xe=De.call(this,Pe,Ln);hn=jt.map(function(Qt){return new W(ke,rt,Ln[Qt],Xe,Pe[Qt].text,void 0,Pe[Qt].align)}),this.setTableHeaderRow(hn),this.printHeaderRow(1,!1)}var lt=yt.reduce(function(Qt,lr){return Qt[lr.name]=lr.align,Qt},{});for(Ve=0;Ve<vt.length;Ve+=1){"rowStart"in Ot&&Ot.rowStart instanceof Function&&Ot.rowStart({row:Ve,data:vt[Ve]},this);var ut=De.call(this,vt[Ve],Ln);for(tr=0;tr<jt.length;tr+=1){var xt=vt[Ve][jt[tr]];"cellStart"in Ot&&Ot.cellStart instanceof Function&&Ot.cellStart({row:Ve,col:tr,data:xt},this),ge.call(this,new W(ke,rt,Ln[jt[tr]],ut,xt,Ve+2,lt[jt[tr]]))}}return this.internal.__cell__.table_x=ke,this.internal.__cell__.table_y=rt,this};var De=function(ke,rt){var vt=this.internal.__cell__.padding,yt=this.internal.__cell__.table_font_size,Ot=this.internal.scaleFactor;return Object.keys(ke).map(function(Ve){var cr=ke[Ve];return this.splitTextToSize(cr.hasOwnProperty("text")?cr.text:cr,rt[Ve]-vt-vt)},this).map(function(Ve){return this.getLineHeightFactor()*Ve.length*yt/Ot+vt+vt},this).reduce(function(Ve,cr){return Math.max(Ve,cr)},0)};b.setTableHeaderRow=function(ke){U.call(this),this.internal.__cell__.tableHeaderRow=ke},b.printHeaderRow=function(ke,rt){if(U.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var vt;if(v=!0,typeof this.internal.__cell__.headerFunction=="function"){var yt=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new W(yt[0],yt[1],yt[2],yt[3],void 0,-1)}this.setFont(void 0,"bold");for(var Ot=[],Ve=0;Ve<this.internal.__cell__.tableHeaderRow.length;Ve+=1){vt=this.internal.__cell__.tableHeaderRow[Ve].clone(),rt&&(vt.y=this.internal.__cell__.margins.top||0,Ot.push(vt)),vt.lineNumber=ke;var cr=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ge.call(this,vt),this.setTextColor(cr)}Ot.length>0&&this.setTableHeaderRow(Ot),this.setFont(void 0,"normal"),v=!1}}(Ni.API);var ko={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ao=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ba=il(Ao),vl=[100,200,300,400,500,600,700,800,900],yl=il(vl);function fo(b){var c=b.family.replace(/"|'/g,"").toLowerCase(),v=function(W){return ko[W=W||"normal"]?W:"normal"}(b.style),U=function(W){if(!W)return 400;if(typeof W=="number")return W>=100&&W<=900&&W%100==0?W:400;if(/^\d00$/.test(W))return parseInt(W);switch(W){case"bold":return 700;case"normal":default:return 400}}(b.weight),ne=function(W){return typeof Ba[W=W||"normal"]=="number"?W:"normal"}(b.stretch);return{family:c,style:v,weight:U,stretch:ne,src:b.src||[],ref:b.ref||{name:c,style:[ne,v,U].join(" ")}}}function go(b,c,v,U){var ne;for(ne=v;ne>=0&&ne<c.length;ne+=U)if(b[c[ne]])return b[c[ne]];for(ne=v;ne>=0&&ne<c.length;ne-=U)if(b[c[ne]])return b[c[ne]]}var Na={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},pa={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function eo(b){return[b.stretch,b.style,b.weight,b.family].join(" ")}function Ya(b,c,v){for(var U=(v=v||{}).defaultFontFamily||"times",ne=Object.assign({},Na,v.genericFontFamilies||{}),W=null,ge=null,De=0;De<c.length;++De)if(ne[(W=fo(c[De])).family]&&(W.family=ne[W.family]),b.hasOwnProperty(W.family)){ge=b[W.family];break}if(!(ge=ge||b[U]))throw new Error("Could not find a font-family for the rule '"+eo(W)+"' and default family '"+U+"'.");if(ge=function(ke,rt){if(rt[ke])return rt[ke];var vt=Ba[ke],yt=vt<=Ba.normal?-1:1,Ot=go(rt,Ao,vt,yt);if(!Ot)throw new Error("Could not find a matching font-stretch value for "+ke);return Ot}(W.stretch,ge),ge=function(ke,rt){if(rt[ke])return rt[ke];for(var vt=ko[ke],yt=0;yt<vt.length;++yt)if(rt[vt[yt]])return rt[vt[yt]];throw new Error("Could not find a matching font-style for "+ke)}(W.style,ge),!(ge=function(ke,rt){if(rt[ke])return rt[ke];if(ke===400&&rt[500])return rt[500];if(ke===500&&rt[400])return rt[400];var vt=yl[ke],yt=go(rt,vl,vt,ke<400?-1:1);if(!yt)throw new Error("Could not find a matching font-weight for value "+ke);return yt}(W.weight,ge)))throw new Error("Failed to resolve a font for the rule '"+eo(W)+"'.");return ge}function rs(b){return b.trimLeft()}function Hs(b,c){for(var v=0;v<b.length;){if(b.charAt(v)===c)return[b.substring(0,v),b.substring(v+1)];v+=1}return null}function ba(b){var c=b.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return c===null?null:[c[0],b.substring(c[0].length)]}var Zs,ao,Oo,Io=["times"];(function(b){var c,v,U,ne,W,ge,De,ke,rt,vt=function(He){return He=He||{},this.isStrokeTransparent=He.isStrokeTransparent||!1,this.strokeOpacity=He.strokeOpacity||1,this.strokeStyle=He.strokeStyle||"#000000",this.fillStyle=He.fillStyle||"#000000",this.isFillTransparent=He.isFillTransparent||!1,this.fillOpacity=He.fillOpacity||1,this.font=He.font||"10px sans-serif",this.textBaseline=He.textBaseline||"alphabetic",this.textAlign=He.textAlign||"left",this.lineWidth=He.lineWidth||1,this.lineJoin=He.lineJoin||"miter",this.lineCap=He.lineCap||"butt",this.path=He.path||[],this.transform=He.transform!==void 0?He.transform.clone():new ke,this.globalCompositeOperation=He.globalCompositeOperation||"normal",this.globalAlpha=He.globalAlpha||1,this.clip_path=He.clip_path||[],this.currentPoint=He.currentPoint||new ge,this.miterLimit=He.miterLimit||10,this.lastPoint=He.lastPoint||new ge,this.lineDashOffset=He.lineDashOffset||0,this.lineDash=He.lineDash||[],this.margin=He.margin||[0,0,0,0],this.prevPageLastElemOffset=He.prevPageLastElemOffset||0,this.ignoreClearRect=typeof He.ignoreClearRect!="boolean"||He.ignoreClearRect,this};b.events.push(["initialized",function(){this.context2d=new yt(this),c=this.internal.f2,v=this.internal.getCoordinateString,U=this.internal.getVerticalCoordinateString,ne=this.internal.getHorizontalCoordinate,W=this.internal.getVerticalCoordinate,ge=this.internal.Point,De=this.internal.Rectangle,ke=this.internal.Matrix,rt=new vt}]);var yt=function(He){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var At=He;Object.defineProperty(this,"pdf",{get:function(){return At}});var Te=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Te},set:function(zr){Te=!!zr}});var Ft=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Ft},set:function(zr){Ft=!!zr}});var er=0;Object.defineProperty(this,"posX",{get:function(){return er},set:function(zr){isNaN(zr)||(er=zr)}});var or=0;Object.defineProperty(this,"posY",{get:function(){return or},set:function(zr){isNaN(zr)||(or=zr)}}),Object.defineProperty(this,"margin",{get:function(){return rt.margin},set:function(zr){var Yt;typeof zr=="number"?Yt=[zr,zr,zr,zr]:((Yt=new Array(4))[0]=zr[0],Yt[1]=zr.length>=2?zr[1]:Yt[0],Yt[2]=zr.length>=3?zr[2]:Yt[0],Yt[3]=zr.length>=4?zr[3]:Yt[1]),rt.margin=Yt}});var ur=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ur},set:function(zr){ur=zr}});var St=0;Object.defineProperty(this,"lastBreak",{get:function(){return St},set:function(zr){St=zr}});var Gr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Gr},set:function(zr){Gr=zr}}),Object.defineProperty(this,"ctx",{get:function(){return rt},set:function(zr){zr instanceof vt&&(rt=zr)}}),Object.defineProperty(this,"path",{get:function(){return rt.path},set:function(zr){rt.path=zr}});var Zr=[];Object.defineProperty(this,"ctxStack",{get:function(){return Zr},set:function(zr){Zr=zr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(zr){var Yt;Yt=Ot(zr),this.ctx.fillStyle=Yt.style,this.ctx.isFillTransparent=Yt.a===0,this.ctx.fillOpacity=Yt.a,this.pdf.setFillColor(Yt.r,Yt.g,Yt.b,{a:Yt.a}),this.pdf.setTextColor(Yt.r,Yt.g,Yt.b,{a:Yt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(zr){var Yt=Ot(zr);this.ctx.strokeStyle=Yt.style,this.ctx.isStrokeTransparent=Yt.a===0,this.ctx.strokeOpacity=Yt.a,Yt.a===0?this.pdf.setDrawColor(255,255,255):(Yt.a,this.pdf.setDrawColor(Yt.r,Yt.g,Yt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(zr){["butt","round","square"].indexOf(zr)!==-1&&(this.ctx.lineCap=zr,this.pdf.setLineCap(zr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(zr){isNaN(zr)||(this.ctx.lineWidth=zr,this.pdf.setLineWidth(zr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(zr){["bevel","round","miter"].indexOf(zr)!==-1&&(this.ctx.lineJoin=zr,this.pdf.setLineJoin(zr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(zr){isNaN(zr)||(this.ctx.miterLimit=zr,this.pdf.setMiterLimit(zr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(zr){this.ctx.textBaseline=zr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(zr){["right","end","center","left","start"].indexOf(zr)!==-1&&(this.ctx.textAlign=zr)}});var sn=null;function An(zr,Yt){if(sn===null){var wi=function(fi){var tn=[];return Object.keys(fi).forEach(function(wn){fi[wn].forEach(function(pn){var rn=null;switch(pn){case"bold":rn={family:wn,weight:"bold"};break;case"italic":rn={family:wn,style:"italic"};break;case"bolditalic":rn={family:wn,weight:"bold",style:"italic"};break;case"":case"normal":rn={family:wn}}rn!==null&&(rn.ref={name:wn,style:pn},tn.push(rn))})}),tn}(zr.getFontList());sn=function(fi){for(var tn={},wn=0;wn<fi.length;++wn){var pn=fo(fi[wn]),rn=pn.family,Qn=pn.stretch,vi=pn.style,Mi=pn.weight;tn[rn]=tn[rn]||{},tn[rn][Qn]=tn[rn][Qn]||{},tn[rn][Qn][vi]=tn[rn][Qn][vi]||{},tn[rn][Qn][vi][Mi]=pn}return tn}(wi.concat(Yt))}return sn}var ni=null;Object.defineProperty(this,"fontFaces",{get:function(){return ni},set:function(zr){sn=null,ni=zr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(zr){var Yt;if(this.ctx.font=zr,(Yt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(zr))!==null){var wi=Yt[1];Yt[2];var fi=Yt[3],tn=Yt[4];Yt[5];var wn=Yt[6],pn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(tn)[2];tn=Math.floor(pn==="px"?parseFloat(tn)*this.pdf.internal.scaleFactor:pn==="em"?parseFloat(tn)*this.pdf.getFontSize():parseFloat(tn)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(tn);var rn=function(E){var z,be,ze=[],pt=E.trim();if(pt==="")return Io;if(pt in pa)return[pa[pt]];for(;pt!=="";){switch(be=null,z=(pt=rs(pt)).charAt(0)){case'"':case"'":be=Hs(pt.substring(1),z);break;default:be=ba(pt)}if(be===null||(ze.push(be[0]),(pt=rs(be[1]))!==""&&pt.charAt(0)!==","))return Io;pt=pt.replace(/^,/,"")}return ze}(wn);if(this.fontFaces){var Qn=Ya(An(this.pdf,this.fontFaces),rn.map(function(E){return{family:E,stretch:"normal",weight:fi,style:wi}}));this.pdf.setFont(Qn.ref.name,Qn.ref.style)}else{var vi="";(fi==="bold"||parseInt(fi,10)>=700||wi==="bold")&&(vi="bold"),wi==="italic"&&(vi+="italic"),vi.length===0&&(vi="normal");for(var Mi="",je={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"},A=0;A<rn.length;A++){if(this.pdf.internal.getFont(rn[A],vi,{noFallback:!0,disableWarning:!0})!==void 0){Mi=rn[A];break}if(vi==="bolditalic"&&this.pdf.internal.getFont(rn[A],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Mi=rn[A],vi="bold";else if(this.pdf.internal.getFont(rn[A],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Mi=rn[A],vi="normal";break}}if(Mi===""){for(var w=0;w<rn.length;w++)if(je[rn[w]]){Mi=je[rn[w]];break}}Mi=Mi===""?"Times":Mi,this.pdf.setFont(Mi,vi)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(zr){this.ctx.globalCompositeOperation=zr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(zr){this.ctx.globalAlpha=zr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(zr){this.ctx.lineDashOffset=zr,lr.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(zr){this.ctx.lineDash=zr,lr.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(zr){this.ctx.ignoreClearRect=!!zr}})};yt.prototype.setLineDash=function(He){this.lineDash=He},yt.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},yt.prototype.fill=function(){ln.call(this,"fill",!1)},yt.prototype.stroke=function(){ln.call(this,"stroke",!1)},yt.prototype.beginPath=function(){this.path=[{type:"begin"}]},yt.prototype.moveTo=function(He,At){if(isNaN(He)||isNaN(At))throw ii.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Te=this.ctx.transform.applyToPoint(new ge(He,At));this.path.push({type:"mt",x:Te.x,y:Te.y}),this.ctx.lastPoint=new ge(He,At)},yt.prototype.closePath=function(){var He=new ge(0,0),At=0;for(At=this.path.length-1;At!==-1;At--)if(this.path[At].type==="begin"&&(0,xe.Z)(this.path[At+1])==="object"&&typeof this.path[At+1].x=="number"){He=new ge(this.path[At+1].x,this.path[At+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ge(He.x,He.y)},yt.prototype.lineTo=function(He,At){if(isNaN(He)||isNaN(At))throw ii.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Te=this.ctx.transform.applyToPoint(new ge(He,At));this.path.push({type:"lt",x:Te.x,y:Te.y}),this.ctx.lastPoint=new ge(Te.x,Te.y)},yt.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ln.call(this,null,!0)},yt.prototype.quadraticCurveTo=function(He,At,Te,Ft){if(isNaN(Te)||isNaN(Ft)||isNaN(He)||isNaN(At))throw ii.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var er=this.ctx.transform.applyToPoint(new ge(Te,Ft)),or=this.ctx.transform.applyToPoint(new ge(He,At));this.path.push({type:"qct",x1:or.x,y1:or.y,x:er.x,y:er.y}),this.ctx.lastPoint=new ge(er.x,er.y)},yt.prototype.bezierCurveTo=function(He,At,Te,Ft,er,or){if(isNaN(er)||isNaN(or)||isNaN(He)||isNaN(At)||isNaN(Te)||isNaN(Ft))throw ii.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ur=this.ctx.transform.applyToPoint(new ge(er,or)),St=this.ctx.transform.applyToPoint(new ge(He,At)),Gr=this.ctx.transform.applyToPoint(new ge(Te,Ft));this.path.push({type:"bct",x1:St.x,y1:St.y,x2:Gr.x,y2:Gr.y,x:ur.x,y:ur.y}),this.ctx.lastPoint=new ge(ur.x,ur.y)},yt.prototype.arc=function(He,At,Te,Ft,er,or){if(isNaN(He)||isNaN(At)||isNaN(Te)||isNaN(Ft)||isNaN(er))throw ii.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(or=!!or,!this.ctx.transform.isIdentity){var ur=this.ctx.transform.applyToPoint(new ge(He,At));He=ur.x,At=ur.y;var St=this.ctx.transform.applyToPoint(new ge(0,Te)),Gr=this.ctx.transform.applyToPoint(new ge(0,0));Te=Math.sqrt(Math.pow(St.x-Gr.x,2)+Math.pow(St.y-Gr.y,2))}Math.abs(er-Ft)>=2*Math.PI&&(Ft=0,er=2*Math.PI),this.path.push({type:"arc",x:He,y:At,radius:Te,startAngle:Ft,endAngle:er,counterclockwise:or})},yt.prototype.arcTo=function(He,At,Te,Ft,er){throw new Error("arcTo not implemented.")},yt.prototype.rect=function(He,At,Te,Ft){if(isNaN(He)||isNaN(At)||isNaN(Te)||isNaN(Ft))throw ii.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(He,At),this.lineTo(He+Te,At),this.lineTo(He+Te,At+Ft),this.lineTo(He,At+Ft),this.lineTo(He,At),this.lineTo(He+Te,At),this.lineTo(He,At)},yt.prototype.fillRect=function(He,At,Te,Ft){if(isNaN(He)||isNaN(At)||isNaN(Te)||isNaN(Ft))throw ii.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ve.call(this)){var er={};this.lineCap!=="butt"&&(er.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(er.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(He,At,Te,Ft),this.fill(),er.hasOwnProperty("lineCap")&&(this.lineCap=er.lineCap),er.hasOwnProperty("lineJoin")&&(this.lineJoin=er.lineJoin)}},yt.prototype.strokeRect=function(He,At,Te,Ft){if(isNaN(He)||isNaN(At)||isNaN(Te)||isNaN(Ft))throw ii.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");cr.call(this)||(this.beginPath(),this.rect(He,At,Te,Ft),this.stroke())},yt.prototype.clearRect=function(He,At,Te,Ft){if(isNaN(He)||isNaN(At)||isNaN(Te)||isNaN(Ft))throw ii.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(He,At,Te,Ft))},yt.prototype.save=function(He){He=typeof He!="boolean"||He;for(var At=this.pdf.internal.getCurrentPageInfo().pageNumber,Te=0;Te<this.pdf.internal.getNumberOfPages();Te++)this.pdf.setPage(Te+1),this.pdf.internal.out("q");if(this.pdf.setPage(At),He){this.ctx.fontSize=this.pdf.internal.getFontSize();var Ft=new vt(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Ft}},yt.prototype.restore=function(He){He=typeof He!="boolean"||He;for(var At=this.pdf.internal.getCurrentPageInfo().pageNumber,Te=0;Te<this.pdf.internal.getNumberOfPages();Te++)this.pdf.setPage(Te+1),this.pdf.internal.out("Q");this.pdf.setPage(At),He&&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)},yt.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Ot=function(He){var At,Te,Ft,er;if(He.isCanvasGradient===!0&&(He=He.getColor()),!He)return{r:0,g:0,b:0,a:0,style:He};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(He))At=0,Te=0,Ft=0,er=0;else{var or=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(He);if(or!==null)At=parseInt(or[1]),Te=parseInt(or[2]),Ft=parseInt(or[3]),er=1;else if((or=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(He))!==null)At=parseInt(or[1]),Te=parseInt(or[2]),Ft=parseInt(or[3]),er=parseFloat(or[4]);else{if(er=1,typeof He=="string"&&He.charAt(0)!=="#"){var ur=new xi(He);He=ur.ok?ur.toHex():"#000000"}He.length===4?(At=He.substring(1,2),At+=At,Te=He.substring(2,3),Te+=Te,Ft=He.substring(3,4),Ft+=Ft):(At=He.substring(1,3),Te=He.substring(3,5),Ft=He.substring(5,7)),At=parseInt(At,16),Te=parseInt(Te,16),Ft=parseInt(Ft,16)}}return{r:At,g:Te,b:Ft,a:er,style:He}},Ve=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},cr=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};yt.prototype.fillText=function(He,At,Te,Ft){if(isNaN(At)||isNaN(Te)||typeof He!="string")throw ii.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Ft=isNaN(Ft)?void 0:Ft,!Ve.call(this)){var er=ut(this.ctx.transform.rotation),or=this.ctx.transform.scaleX;nr.call(this,{text:He,x:At,y:Te,scale:or,angle:er,align:this.textAlign,maxWidth:Ft})}},yt.prototype.strokeText=function(He,At,Te,Ft){if(isNaN(At)||isNaN(Te)||typeof He!="string")throw ii.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!cr.call(this)){Ft=isNaN(Ft)?void 0:Ft;var er=ut(this.ctx.transform.rotation),or=this.ctx.transform.scaleX;nr.call(this,{text:He,x:At,y:Te,scale:or,renderingMode:"stroke",angle:er,align:this.textAlign,maxWidth:Ft})}},yt.prototype.measureText=function(He){if(typeof He!="string")throw ii.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var At=this.pdf,Te=this.pdf.internal.scaleFactor,Ft=At.internal.getFontSize(),er=At.getStringUnitWidth(He)*Ft/At.internal.scaleFactor,or=function(ur){var St=(ur=ur||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return St}}),this};return new or({width:er*=Math.round(96*Te/72*1e4)/1e4})},yt.prototype.scale=function(He,At){if(isNaN(He)||isNaN(At))throw ii.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Te=new ke(He,0,0,At,0,0);this.ctx.transform=this.ctx.transform.multiply(Te)},yt.prototype.rotate=function(He){if(isNaN(He))throw ii.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var At=new ke(Math.cos(He),Math.sin(He),-Math.sin(He),Math.cos(He),0,0);this.ctx.transform=this.ctx.transform.multiply(At)},yt.prototype.translate=function(He,At){if(isNaN(He)||isNaN(At))throw ii.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Te=new ke(1,0,0,1,He,At);this.ctx.transform=this.ctx.transform.multiply(Te)},yt.prototype.transform=function(He,At,Te,Ft,er,or){if(isNaN(He)||isNaN(At)||isNaN(Te)||isNaN(Ft)||isNaN(er)||isNaN(or))throw ii.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ur=new ke(He,At,Te,Ft,er,or);this.ctx.transform=this.ctx.transform.multiply(ur)},yt.prototype.setTransform=function(He,At,Te,Ft,er,or){He=isNaN(He)?1:He,At=isNaN(At)?0:At,Te=isNaN(Te)?0:Te,Ft=isNaN(Ft)?1:Ft,er=isNaN(er)?0:er,or=isNaN(or)?0:or,this.ctx.transform=new ke(He,At,Te,Ft,er,or)};var tr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};yt.prototype.drawImage=function(He,At,Te,Ft,er,or,ur,St,Gr){var Zr=this.pdf.getImageProperties(He),sn=1,An=1,ni=1,zr=1;Ft!==void 0&&St!==void 0&&(ni=St/Ft,zr=Gr/er,sn=Zr.width/Ft*St/Ft,An=Zr.height/er*Gr/er),or===void 0&&(or=At,ur=Te,At=0,Te=0),Ft!==void 0&&St===void 0&&(St=Ft,Gr=er),Ft===void 0&&St===void 0&&(St=Zr.width,Gr=Zr.height);for(var Yt,wi=this.ctx.transform.decompose(),fi=ut(wi.rotate.shx),tn=new ke,wn=(tn=(tn=(tn=tn.multiply(wi.translate)).multiply(wi.skew)).multiply(wi.scale)).applyToRectangle(new De(or-At*ni,ur-Te*zr,Ft*sn,er*An)),pn=hr.call(this,wn),rn=[],Qn=0;Qn<pn.length;Qn+=1)rn.indexOf(pn[Qn])===-1&&rn.push(pn[Qn]);if(kr(rn),this.autoPaging)for(var vi=rn[0],Mi=rn[rn.length-1],je=vi;je<Mi+1;je++){this.pdf.setPage(je);var A=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],w=je===1?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],z=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],be=je===1?0:E+(je-2)*z;if(this.ctx.clip_path.length!==0){var ze=this.path;Yt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ar(Yt,this.posX+this.margin[3],-be+w+this.ctx.prevPageLastElemOffset),Ln.call(this,"fill",!0),this.path=ze}var pt=JSON.parse(JSON.stringify(wn));pt=Ar([pt],this.posX+this.margin[3],-be+w+this.ctx.prevPageLastElemOffset)[0];var It=(je>vi||je<Mi)&&tr.call(this);It&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],A,z,null).clip().discardPath()),this.pdf.addImage(He,"JPEG",pt.x,pt.y,pt.w,pt.h,null,null,fi),It&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(He,"JPEG",wn.x,wn.y,wn.w,wn.h,null,null,fi)};var hr=function(He,At,Te){var Ft=[];At=At||this.pdf.internal.pageSize.width,Te=Te||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var er=this.posY+this.ctx.prevPageLastElemOffset;switch(He.type){default:case"mt":case"lt":Ft.push(Math.floor((He.y+er)/Te)+1);break;case"arc":Ft.push(Math.floor((He.y+er-He.radius)/Te)+1),Ft.push(Math.floor((He.y+er+He.radius)/Te)+1);break;case"qct":var or=xt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,He.x1,He.y1,He.x,He.y);Ft.push(Math.floor((or.y+er)/Te)+1),Ft.push(Math.floor((or.y+or.h+er)/Te)+1);break;case"bct":var ur=Qt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,He.x1,He.y1,He.x2,He.y2,He.x,He.y);Ft.push(Math.floor((ur.y+er)/Te)+1),Ft.push(Math.floor((ur.y+ur.h+er)/Te)+1);break;case"rect":Ft.push(Math.floor((He.y+er)/Te)+1),Ft.push(Math.floor((He.y+He.h+er)/Te)+1)}for(var St=0;St<Ft.length;St+=1)for(;this.pdf.internal.getNumberOfPages()<Ft[St];)jt.call(this);return Ft},jt=function(){var He=this.fillStyle,At=this.strokeStyle,Te=this.font,Ft=this.lineCap,er=this.lineWidth,or=this.lineJoin;this.pdf.addPage(),this.fillStyle=He,this.strokeStyle=At,this.font=Te,this.lineCap=Ft,this.lineWidth=er,this.lineJoin=or},Ar=function(He,At,Te){for(var Ft=0;Ft<He.length;Ft++)switch(He[Ft].type){case"bct":He[Ft].x2+=At,He[Ft].y2+=Te;case"qct":He[Ft].x1+=At,He[Ft].y1+=Te;case"mt":case"lt":case"arc":default:He[Ft].x+=At,He[Ft].y+=Te}return He},kr=function(He){return He.sort(function(At,Te){return At-Te})},ln=function(He,At){for(var Te,Ft,er=this.fillStyle,or=this.strokeStyle,ur=this.lineCap,St=this.lineWidth,Gr=Math.abs(St*this.ctx.transform.scaleX),Zr=this.lineJoin,sn=JSON.parse(JSON.stringify(this.path)),An=JSON.parse(JSON.stringify(this.path)),ni=[],zr=0;zr<An.length;zr++)if(An[zr].x!==void 0)for(var Yt=hr.call(this,An[zr]),wi=0;wi<Yt.length;wi+=1)ni.indexOf(Yt[wi])===-1&&ni.push(Yt[wi]);for(var fi=0;fi<ni.length;fi++)for(;this.pdf.internal.getNumberOfPages()<ni[fi];)jt.call(this);if(kr(ni),this.autoPaging)for(var tn=ni[0],wn=ni[ni.length-1],pn=tn;pn<wn+1;pn++){this.pdf.setPage(pn),this.fillStyle=er,this.strokeStyle=or,this.lineCap=ur,this.lineWidth=Gr,this.lineJoin=Zr;var rn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Qn=pn===1?this.posY+this.margin[0]:this.margin[0],vi=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Mi=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],je=pn===1?0:vi+(pn-2)*Mi;if(this.ctx.clip_path.length!==0){var A=this.path;Te=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ar(Te,this.posX+this.margin[3],-je+Qn+this.ctx.prevPageLastElemOffset),Ln.call(this,He,!0),this.path=A}if(Ft=JSON.parse(JSON.stringify(sn)),this.path=Ar(Ft,this.posX+this.margin[3],-je+Qn+this.ctx.prevPageLastElemOffset),At===!1||pn===0){var w=(pn>tn||pn<wn)&&tr.call(this);w&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],rn,Mi,null).clip().discardPath()),Ln.call(this,He,At),w&&this.pdf.restoreGraphicsState()}this.lineWidth=St}else this.lineWidth=Gr,Ln.call(this,He,At),this.lineWidth=St;this.path=sn},Ln=function(He,At){if((He!=="stroke"||At||!cr.call(this))&&(He==="stroke"||At||!Ve.call(this))){for(var Te,Ft,er=[],or=this.path,ur=0;ur<or.length;ur++){var St=or[ur];switch(St.type){case"begin":er.push({begin:!0});break;case"close":er.push({close:!0});break;case"mt":er.push({start:St,deltas:[],abs:[]});break;case"lt":var Gr=er.length;if(or[ur-1]&&!isNaN(or[ur-1].x)&&(Te=[St.x-or[ur-1].x,St.y-or[ur-1].y],Gr>0)){for(;Gr>=0;Gr--)if(er[Gr-1].close!==!0&&er[Gr-1].begin!==!0){er[Gr-1].deltas.push(Te),er[Gr-1].abs.push(St);break}}break;case"bct":Te=[St.x1-or[ur-1].x,St.y1-or[ur-1].y,St.x2-or[ur-1].x,St.y2-or[ur-1].y,St.x-or[ur-1].x,St.y-or[ur-1].y],er[er.length-1].deltas.push(Te);break;case"qct":var Zr=or[ur-1].x+2/3*(St.x1-or[ur-1].x),sn=or[ur-1].y+2/3*(St.y1-or[ur-1].y),An=St.x+2/3*(St.x1-St.x),ni=St.y+2/3*(St.y1-St.y),zr=St.x,Yt=St.y;Te=[Zr-or[ur-1].x,sn-or[ur-1].y,An-or[ur-1].x,ni-or[ur-1].y,zr-or[ur-1].x,Yt-or[ur-1].y],er[er.length-1].deltas.push(Te);break;case"arc":er.push({deltas:[],abs:[],arc:!0}),Array.isArray(er[er.length-1].abs)&&er[er.length-1].abs.push(St)}}Ft=At?null:He==="stroke"?"stroke":"fill";for(var wi=!1,fi=0;fi<er.length;fi++)if(er[fi].arc)for(var tn=er[fi].abs,wn=0;wn<tn.length;wn++){var pn=tn[wn];pn.type==="arc"?Br.call(this,pn.x,pn.y,pn.radius,pn.startAngle,pn.endAngle,pn.counterclockwise,void 0,At,!wi):Nr.call(this,pn.x,pn.y),wi=!0}else if(er[fi].close===!0)this.pdf.internal.out("h"),wi=!1;else if(er[fi].begin!==!0){var rn=er[fi].start.x,Qn=er[fi].start.y;ve.call(this,er[fi].deltas,rn,Qn),wi=!0}Ft&&vn.call(this,Ft),At&&Gn.call(this)}},Ai=function(He){var At=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Te=At*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return He-Te;case"top":return He+At-Te;case"hanging":return He+At-2*Te;case"middle":return He+At/2-Te;case"ideographic":return He;case"alphabetic":default:return He}},hn=function(He){return He+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};yt.prototype.createLinearGradient=function(){var He=function(){};return He.colorStops=[],He.addColorStop=function(At,Te){this.colorStops.push([At,Te])},He.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},He.isCanvasGradient=!0,He},yt.prototype.createPattern=function(){return this.createLinearGradient()},yt.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Br=function(He,At,Te,Ft,er,or,ur,St,Gr){for(var Zr=Xe.call(this,Te,Ft,er,or),sn=0;sn<Zr.length;sn++){var An=Zr[sn];sn===0&&(Gr?zt.call(this,An.x1+He,An.y1+At):Nr.call(this,An.x1+He,An.y1+At)),Pe.call(this,He,At,An.x2,An.y2,An.x3,An.y3,An.x4,An.y4)}St?Gn.call(this):vn.call(this,ur)},vn=function(He){switch(He){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Gn=function(){this.pdf.clip(),this.pdf.discardPath()},zt=function(He,At){this.pdf.internal.out(v(He)+" "+U(At)+" m")},nr=function(He){var At;switch(He.align){case"right":case"end":At="right";break;case"center":At="center";break;case"left":case"start":default:At="left"}var Te=this.pdf.getTextDimensions(He.text),Ft=Ai.call(this,He.y),er=hn.call(this,Ft)-Te.h,or=this.ctx.transform.applyToPoint(new ge(He.x,Ft)),ur=this.ctx.transform.decompose(),St=new ke;St=(St=(St=St.multiply(ur.translate)).multiply(ur.skew)).multiply(ur.scale);for(var Gr,Zr,sn,An=this.ctx.transform.applyToRectangle(new De(He.x,Ft,Te.w,Te.h)),ni=St.applyToRectangle(new De(He.x,er,Te.w,Te.h)),zr=hr.call(this,ni),Yt=[],wi=0;wi<zr.length;wi+=1)Yt.indexOf(zr[wi])===-1&&Yt.push(zr[wi]);if(kr(Yt),this.autoPaging)for(var fi=Yt[0],tn=Yt[Yt.length-1],wn=fi;wn<tn+1;wn++){this.pdf.setPage(wn);var pn=wn===1?this.posY+this.margin[0]:this.margin[0],rn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Qn=this.pdf.internal.pageSize.height-this.margin[2],vi=Qn-this.margin[0],Mi=this.pdf.internal.pageSize.width-this.margin[1],je=Mi-this.margin[3],A=wn===1?0:rn+(wn-2)*vi;if(this.ctx.clip_path.length!==0){var w=this.path;Gr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ar(Gr,this.posX+this.margin[3],-1*A+pn),Ln.call(this,"fill",!0),this.path=w}var E=Ar([JSON.parse(JSON.stringify(ni))],this.posX+this.margin[3],-A+pn+this.ctx.prevPageLastElemOffset)[0];He.scale>=.01&&(Zr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Zr*He.scale),sn=this.lineWidth,this.lineWidth=sn*He.scale);var z=this.autoPaging!=="text";if(z||E.y+E.h<=Qn){if(z||E.y>=pn&&E.x<=Mi){var be=z?He.text:this.pdf.splitTextToSize(He.text,He.maxWidth||Mi-E.x)[0],ze=Ar([JSON.parse(JSON.stringify(An))],this.posX+this.margin[3],-A+pn+this.ctx.prevPageLastElemOffset)[0],pt=z&&(wn>fi||wn<tn)&&tr.call(this);pt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],je,vi,null).clip().discardPath()),this.pdf.text(be,ze.x,ze.y,{angle:He.angle,align:At,renderingMode:He.renderingMode}),pt&&this.pdf.restoreGraphicsState()}}else E.y<Qn&&(this.ctx.prevPageLastElemOffset+=Qn-E.y);He.scale>=.01&&(this.pdf.setFontSize(Zr),this.lineWidth=sn)}else He.scale>=.01&&(Zr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Zr*He.scale),sn=this.lineWidth,this.lineWidth=sn*He.scale),this.pdf.text(He.text,or.x+this.posX,or.y+this.posY,{angle:He.angle,align:At,renderingMode:He.renderingMode,maxWidth:He.maxWidth}),He.scale>=.01&&(this.pdf.setFontSize(Zr),this.lineWidth=sn)},Nr=function(He,At,Te,Ft){Te=Te||0,Ft=Ft||0,this.pdf.internal.out(v(He+Te)+" "+U(At+Ft)+" l")},ve=function(He,At,Te){return this.pdf.lines(He,At,Te,null,null)},Pe=function(He,At,Te,Ft,er,or,ur,St){this.pdf.internal.out([c(ne(Te+He)),c(W(Ft+At)),c(ne(er+He)),c(W(or+At)),c(ne(ur+He)),c(W(St+At)),"c"].join(" "))},Xe=function(He,At,Te,Ft){for(var er=2*Math.PI,or=Math.PI/2;At>Te;)At-=er;var ur=Math.abs(Te-At);ur<er&&Ft&&(ur=er-ur);for(var St=[],Gr=Ft?-1:1,Zr=At;ur>1e-5;){var sn=Zr+Gr*Math.min(ur,or);St.push(lt.call(this,He,Zr,sn)),ur-=Math.abs(sn-Zr),Zr=sn}return St},lt=function(He,At,Te){var Ft=(Te-At)/2,er=He*Math.cos(Ft),or=He*Math.sin(Ft),ur=er,St=-or,Gr=ur*ur+St*St,Zr=Gr+ur*er+St*or,sn=4/3*(Math.sqrt(2*Gr*Zr)-Zr)/(ur*or-St*er),An=ur-sn*St,ni=St+sn*ur,zr=An,Yt=-ni,wi=Ft+At,fi=Math.cos(wi),tn=Math.sin(wi);return{x1:He*Math.cos(At),y1:He*Math.sin(At),x2:An*fi-ni*tn,y2:An*tn+ni*fi,x3:zr*fi-Yt*tn,y3:zr*tn+Yt*fi,x4:He*Math.cos(Te),y4:He*Math.sin(Te)}},ut=function(He){return 180*He/Math.PI},xt=function(He,At,Te,Ft,er,or){var ur=He+.5*(Te-He),St=At+.5*(Ft-At),Gr=er+.5*(Te-er),Zr=or+.5*(Ft-or),sn=Math.min(He,er,ur,Gr),An=Math.max(He,er,ur,Gr),ni=Math.min(At,or,St,Zr),zr=Math.max(At,or,St,Zr);return new De(sn,ni,An-sn,zr-ni)},Qt=function(He,At,Te,Ft,er,or,ur,St){var Gr,Zr,sn,An,ni,zr,Yt,wi,fi,tn,wn,pn,rn,Qn,vi=Te-He,Mi=Ft-At,je=er-Te,A=or-Ft,w=ur-er,E=St-or;for(Zr=0;Zr<41;Zr++)fi=(Yt=(sn=He+(Gr=Zr/40)*vi)+Gr*((ni=Te+Gr*je)-sn))+Gr*(ni+Gr*(er+Gr*w-ni)-Yt),tn=(wi=(An=At+Gr*Mi)+Gr*((zr=Ft+Gr*A)-An))+Gr*(zr+Gr*(or+Gr*E-zr)-wi),Zr==0?(wn=fi,pn=tn,rn=fi,Qn=tn):(wn=Math.min(wn,fi),pn=Math.min(pn,tn),rn=Math.max(rn,fi),Qn=Math.max(Qn,tn));return new De(Math.round(wn),Math.round(pn),Math.round(rn-wn),Math.round(Qn-pn))},lr=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var He,At,Te=(He=this.ctx.lineDash,At=this.ctx.lineDashOffset,JSON.stringify({lineDash:He,lineDashOffset:At}));this.prevLineDash!==Te&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Te)}}})(Ni.API),function(b){var c=function(W){var ge,De,ke,rt,vt,yt,Ot,Ve,cr,tr;for(/[^\x00-\xFF]/.test(W),De=[],ke=0,rt=(W+=ge="\0\0\0\0".slice(W.length%4||4)).length;rt>ke;ke+=4)(vt=(W.charCodeAt(ke)<<24)+(W.charCodeAt(ke+1)<<16)+(W.charCodeAt(ke+2)<<8)+W.charCodeAt(ke+3))!==0?(yt=(vt=((vt=((vt=((vt=(vt-(tr=vt%85))/85)-(cr=vt%85))/85)-(Ve=vt%85))/85)-(Ot=vt%85))/85)%85,De.push(yt+33,Ot+33,Ve+33,cr+33,tr+33)):De.push(122);return function(hr,jt){for(var Ar=jt;Ar>0;Ar--)hr.pop()}(De,ge.length),String.fromCharCode.apply(String,De)+"~>"},v=function(W){var ge,De,ke,rt,vt,yt=String,Ot="length",Ve=255,cr="charCodeAt",tr="slice",hr="replace";for(W[tr](-2),W=W[tr](0,-2)[hr](/\s/g,"")[hr]("z","!!!!!"),ke=[],rt=0,vt=(W+=ge="uuuuu"[tr](W[Ot]%5||5))[Ot];vt>rt;rt+=5)De=52200625*(W[cr](rt)-33)+614125*(W[cr](rt+1)-33)+7225*(W[cr](rt+2)-33)+85*(W[cr](rt+3)-33)+(W[cr](rt+4)-33),ke.push(Ve&De>>24,Ve&De>>16,Ve&De>>8,Ve&De);return function(jt,Ar){for(var kr=Ar;kr>0;kr--)jt.pop()}(ke,ge[Ot]),yt.fromCharCode.apply(yt,ke)},U=function(W){var ge=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((W=W.replace(/\s/g,"")).indexOf(">")!==-1&&(W=W.substr(0,W.indexOf(">"))),W.length%2&&(W+="0"),ge.test(W)===!1)return"";for(var De="",ke=0;ke<W.length;ke+=2)De+=String.fromCharCode("0x"+(W[ke]+W[ke+1]));return De},ne=function(W){for(var ge=new Uint8Array(W.length),De=W.length;De--;)ge[De]=W.charCodeAt(De);return W=(ge=zn(ge)).reduce(function(ke,rt){return ke+String.fromCharCode(rt)},"")};b.processDataByFilters=function(W,ge){var De=0,ke=W||"",rt=[];for(typeof(ge=ge||[])=="string"&&(ge=[ge]),De=0;De<ge.length;De+=1)switch(ge[De]){case"ASCII85Decode":case"/ASCII85Decode":ke=v(ke),rt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ke=c(ke),rt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ke=U(ke),rt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ke=ke.split("").map(function(vt){return("0"+vt.charCodeAt().toString(16)).slice(-2)}).join("")+">",rt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ke=ne(ke),rt.push("/FlateDecode");break;default:throw new Error('The filter: "'+ge[De]+'" is not implemented')}return{data:ke,reverseChain:rt.reverse().join(" ")}}}(Ni.API),function(b){b.loadFile=function(c,v,U){return function(ne,W,ge){W=W!==!1,ge=typeof ge=="function"?ge:function(){};var De=void 0;try{De=function(ke,rt,vt){var yt=new XMLHttpRequest,Ot=0,Ve=function(cr){var tr=cr.length,hr=[],jt=String.fromCharCode;for(Ot=0;Ot<tr;Ot+=1)hr.push(jt(255&cr.charCodeAt(Ot)));return hr.join("")};if(yt.open("GET",ke,!rt),yt.overrideMimeType("text/plain; charset=x-user-defined"),rt===!1&&(yt.onload=function(){yt.status===200?vt(Ve(this.responseText)):vt(void 0)}),yt.send(null),rt&&yt.status===200)return Ve(yt.responseText)}(ne,W,ge)}catch(ke){}return De}(c,v,U)},b.loadImageFile=b.loadFile}(Ni.API),function(b){function c(){return(fn.html2canvas?Promise.resolve(fn.html2canvas):Promise.resolve().then(g.t.bind(g,64270,23))).catch(function(ge){return Promise.reject(new Error("Could not load html2canvas: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}function v(){return(fn.DOMPurify?Promise.resolve(fn.DOMPurify):g.e(7631).then(g.bind(g,87631))).catch(function(ge){return Promise.reject(new Error("Could not load dompurify: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}var U=function(ge){var De=(0,xe.Z)(ge);return De==="undefined"?"undefined":De==="string"||ge instanceof String?"string":De==="number"||ge instanceof Number?"number":De==="function"||ge instanceof Function?"function":ge&&ge.constructor===Array?"array":ge&&ge.nodeType===1?"element":De==="object"?"object":"unknown"},ne=function(ge,De){var ke=document.createElement(ge);for(var rt in De.className&&(ke.className=De.className),De.innerHTML&&De.dompurify&&(ke.innerHTML=De.dompurify.sanitize(De.innerHTML)),De.style)ke.style[rt]=De.style[rt];return ke},W=function ge(De){var ke=Object.assign(ge.convert(Promise.resolve()),JSON.parse(JSON.stringify(ge.template))),rt=ge.convert(Promise.resolve(),ke);return rt=(rt=rt.setProgress(1,ge,1,[ge])).set(De)};(W.prototype=Object.create(Promise.prototype)).constructor=W,W.convert=function(ge,De){return ge.__proto__=De||W.prototype,ge},W.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"}},W.prototype.from=function(ge,De){return this.then(function(){switch(De=De||function(ke){switch(U(ke)){case"string":return"string";case"element":return ke.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ge)){case"string":return this.then(v).then(function(ke){return this.set({src:ne("div",{innerHTML:ge,dompurify:ke})})});case"element":return this.set({src:ge});case"canvas":return this.set({canvas:ge});case"img":return this.set({img:ge});default:return this.error("Unknown source type.")}})},W.prototype.to=function(ge){switch(ge){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.")}},W.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 ge={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},De=function ke(rt,vt){for(var yt=rt.nodeType===3?document.createTextNode(rt.nodeValue):rt.cloneNode(!1),Ot=rt.firstChild;Ot;Ot=Ot.nextSibling)vt!==!0&&Ot.nodeType===1&&Ot.nodeName==="SCRIPT"||yt.appendChild(ke(Ot,vt));return rt.nodeType===1&&(rt.nodeName==="CANVAS"?(yt.width=rt.width,yt.height=rt.height,yt.getContext("2d").drawImage(rt,0,0)):rt.nodeName!=="TEXTAREA"&&rt.nodeName!=="SELECT"||(yt.value=rt.value),yt.addEventListener("load",function(){yt.scrollTop=rt.scrollTop,yt.scrollLeft=rt.scrollLeft},!0)),yt}(this.prop.src,this.opt.html2canvas.javascriptEnabled);De.tagName==="BODY"&&(ge.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ne("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ne("div",{className:"html2pdf__container",style:ge}),this.prop.container.appendChild(De),this.prop.container.firstChild.appendChild(ne("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"})},W.prototype.toCanvas=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(c).then(function(De){var ke=Object.assign({},this.opt.html2canvas);return delete ke.onrendered,De(this.prop.container,ke)}).then(function(De){(this.opt.html2canvas.onrendered||function(){})(De),this.prop.canvas=De,document.body.removeChild(this.prop.overlay)})},W.prototype.toContext2d=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(c).then(function(De){var ke=this.opt.jsPDF,rt=this.opt.fontFaces,vt=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,yt=Object.assign({async:!0,allowTaint:!0,scale:vt,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 yt.onrendered,ke.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ke.context2d.posX=this.opt.x,ke.context2d.posY=this.opt.y,ke.context2d.margin=this.opt.margin,ke.context2d.fontFaces=rt,rt)for(var Ot=0;Ot<rt.length;++Ot){var Ve=rt[Ot],cr=Ve.src.find(function(tr){return tr.format==="truetype"});cr&&ke.addFont(cr.url,Ve.ref.name,Ve.ref.style)}return yt.windowHeight=yt.windowHeight||0,yt.windowHeight=yt.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):yt.windowHeight,ke.context2d.save(!0),De(this.prop.container,yt)}).then(function(De){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(De),this.prop.canvas=De,document.body.removeChild(this.prop.overlay)})},W.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ge=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ge})},W.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},W.prototype.output=function(ge,De,ke){return(ke=ke||"pdf").toLowerCase()==="img"||ke.toLowerCase()==="image"?this.outputImg(ge,De):this.outputPdf(ge,De)},W.prototype.outputPdf=function(ge,De){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ge,De)})},W.prototype.outputImg=function(ge){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ge){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 "'+ge+'" is not supported.'}})},W.prototype.save=function(ge){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ge?{filename:ge}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},W.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},W.prototype.set=function(ge){if(U(ge)!=="object")return this;var De=Object.keys(ge||{}).map(function(ke){if(ke in W.template.prop)return function(){this.prop[ke]=ge[ke]};switch(ke){case"margin":return this.setMargin.bind(this,ge.margin);case"jsPDF":return function(){return this.opt.jsPDF=ge.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ge.pageSize);default:return function(){this.opt[ke]=ge[ke]}}},this);return this.then(function(){return this.thenList(De)})},W.prototype.get=function(ge,De){return this.then(function(){var ke=ge in W.template.prop?this.prop[ge]:this.opt[ge];return De?De(ke):ke})},W.prototype.setMargin=function(ge){return this.then(function(){switch(U(ge)){case"number":ge=[ge,ge,ge,ge];case"array":if(ge.length===2&&(ge=[ge[0],ge[1],ge[0],ge[1]]),ge.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ge}).then(this.setPageSize)},W.prototype.setPageSize=function(ge){function De(ke,rt){return Math.floor(ke*rt/72*96)}return this.then(function(){(ge=ge||Ni.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ge.inner={width:ge.width-this.opt.margin[1]-this.opt.margin[3],height:ge.height-this.opt.margin[0]-this.opt.margin[2]},ge.inner.px={width:De(ge.inner.width,ge.k),height:De(ge.inner.height,ge.k)},ge.inner.ratio=ge.inner.height/ge.inner.width),this.prop.pageSize=ge})},W.prototype.setProgress=function(ge,De,ke,rt){return ge!=null&&(this.progress.val=ge),De!=null&&(this.progress.state=De),ke!=null&&(this.progress.n=ke),rt!=null&&(this.progress.stack=rt),this.progress.ratio=this.progress.val/this.progress.state,this},W.prototype.updateProgress=function(ge,De,ke,rt){return this.setProgress(ge?this.progress.val+ge:null,De||null,ke?this.progress.n+ke:null,rt?this.progress.stack.concat(rt):null)},W.prototype.then=function(ge,De){var ke=this;return this.thenCore(ge,De,function(rt,vt){return ke.updateProgress(null,null,1,[rt]),Promise.prototype.then.call(this,function(yt){return ke.updateProgress(null,rt),yt}).then(rt,vt).then(function(yt){return ke.updateProgress(1),yt})})},W.prototype.thenCore=function(ge,De,ke){ke=ke||Promise.prototype.then,ge&&(ge=ge.bind(this)),De&&(De=De.bind(this));var rt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:W.convert(Object.assign({},this),Promise.prototype),vt=ke.call(rt,ge,De);return W.convert(vt,this.__proto__)},W.prototype.thenExternal=function(ge,De){return Promise.prototype.then.call(this,ge,De)},W.prototype.thenList=function(ge){var De=this;return ge.forEach(function(ke){De=De.thenCore(ke)}),De},W.prototype.catch=function(ge){ge&&(ge=ge.bind(this));var De=Promise.prototype.catch.call(this,ge);return W.convert(De,this)},W.prototype.catchExternal=function(ge){return Promise.prototype.catch.call(this,ge)},W.prototype.error=function(ge){return this.then(function(){throw new Error(ge)})},W.prototype.using=W.prototype.set,W.prototype.saveAs=W.prototype.save,W.prototype.export=W.prototype.output,W.prototype.run=W.prototype.then,Ni.getPageSize=function(ge,De,ke){if((0,xe.Z)(ge)==="object"){var rt=ge;ge=rt.orientation,De=rt.unit||De,ke=rt.format||ke}De=De||"mm",ke=ke||"a4",ge=(""+(ge||"P")).toLowerCase();var vt,yt=(""+ke).toLowerCase(),Ot={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(De){case"pt":vt=1;break;case"mm":vt=72/25.4;break;case"cm":vt=72/2.54;break;case"in":vt=72;break;case"px":vt=.75;break;case"pc":case"em":vt=12;break;case"ex":vt=6;break;default:throw"Invalid unit: "+De}var Ve,cr=0,tr=0;if(Ot.hasOwnProperty(yt))cr=Ot[yt][1]/vt,tr=Ot[yt][0]/vt;else try{cr=ke[1],tr=ke[0]}catch(hr){throw new Error("Invalid format: "+ke)}if(ge==="p"||ge==="portrait")ge="p",tr>cr&&(Ve=tr,tr=cr,cr=Ve);else{if(ge!=="l"&&ge!=="landscape")throw"Invalid orientation: "+ge;ge="l",cr>tr&&(Ve=tr,tr=cr,cr=Ve)}return{width:tr,height:cr,unit:De,k:vt,orientation:ge}},b.html=function(ge,De){(De=De||{}).callback=De.callback||function(){},De.html2canvas=De.html2canvas||{},De.html2canvas.canvas=De.html2canvas.canvas||this.canvas,De.jsPDF=De.jsPDF||this,De.fontFaces=De.fontFaces?De.fontFaces.map(fo):null;var ke=new W(De);return De.worker?ke:ke.from(ge).doCallback()}}(Ni.API),Ni.API.addJS=function(b){return Oo=b,this.internal.events.subscribe("postPutResources",function(){Zs=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Zs+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ao=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Oo+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Zs!==void 0&&ao!==void 0&&this.internal.out("/Names <</JavaScript "+Zs+" 0 R>>")}),this},function(b){var c;b.events.push(["postPutResources",function(){var v=this,U=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ne=v.outline.render().split(/\r\n/),W=0;W<ne.length;W++){var ge=ne[W],De=U.exec(ge);if(De!=null){var ke=De[1];v.internal.newObjectDeferredBegin(ke,!1)}v.internal.write(ge)}if(this.outline.createNamedDestinations){var rt=this.internal.pages.length,vt=[];for(W=0;W<rt;W++){var yt=v.internal.newObject();vt.push(yt);var Ot=v.internal.getPageInfo(W+1);v.internal.write("<< /D["+Ot.objId+" 0 R /XYZ null null null]>> endobj")}var Ve=v.internal.newObject();for(v.internal.write("<< /Names [ "),W=0;W<vt.length;W++)v.internal.write("(page_"+(W+1)+")"+vt[W]+" 0 R");v.internal.write(" ] >>","endobj"),c=v.internal.newObject(),v.internal.write("<< /Dests "+Ve+" 0 R"),v.internal.write(">>","endobj")}}]),b.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+c+" 0 R"))}]),b.events.push(["initialized",function(){var v=this;v.outline={createNamedDestinations:!1,root:{children:[]}},v.outline.add=function(U,ne,W){var ge={title:ne,options:W,children:[]};return U==null&&(U=this.root),U.children.push(ge),ge},v.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=v,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},v.outline.genIds_r=function(U){U.id=v.internal.newObjectDeferred();for(var ne=0;ne<U.children.length;ne++)this.genIds_r(U.children[ne])},v.outline.renderRoot=function(U){this.objStart(U),this.line("/Type /Outlines"),U.children.length>0&&(this.line("/First "+this.makeRef(U.children[0])),this.line("/Last "+this.makeRef(U.children[U.children.length-1]))),this.line("/Count "+this.count_r({count:0},U)),this.objEnd()},v.outline.renderItems=function(U){for(var ne=this.ctx.pdf.internal.getVerticalCoordinateString,W=0;W<U.children.length;W++){var ge=U.children[W];this.objStart(ge),this.line("/Title "+this.makeString(ge.title)),this.line("/Parent "+this.makeRef(U)),W>0&&this.line("/Prev "+this.makeRef(U.children[W-1])),W<U.children.length-1&&this.line("/Next "+this.makeRef(U.children[W+1])),ge.children.length>0&&(this.line("/First "+this.makeRef(ge.children[0])),this.line("/Last "+this.makeRef(ge.children[ge.children.length-1])));var De=this.count=this.count_r({count:0},ge);if(De>0&&this.line("/Count "+De),ge.options&&ge.options.pageNumber){var ke=v.internal.getPageInfo(ge.options.pageNumber);this.line("/Dest ["+ke.objId+" 0 R /XYZ 0 "+ne(0)+" 0]")}this.objEnd()}for(var rt=0;rt<U.children.length;rt++)this.renderItems(U.children[rt])},v.outline.line=function(U){this.ctx.val+=U+`\r
|
|
|
`},v.outline.makeRef=function(U){return U.id+" 0 R"},v.outline.makeString=function(U){return"("+v.internal.pdfEscape(U)+")"},v.outline.objStart=function(U){this.ctx.val+=`\r
|
|
|
`+U.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},v.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},v.outline.count_r=function(U,ne){for(var W=0;W<ne.children.length;W++)U.count++,this.count_r(U,ne.children[W]);return U.count}}])}(Ni.API),function(b){var c=[192,193,194,195,196,197,198,199];b.processJPEG=function(v,U,ne,W,ge,De){var ke,rt=this.decode.DCT_DECODE,vt=null;if(typeof v=="string"||this.__addimage__.isArrayBuffer(v)||this.__addimage__.isArrayBufferView(v)){switch(v=ge||v,v=this.__addimage__.isArrayBuffer(v)?new Uint8Array(v):v,(ke=function(yt){for(var Ot,Ve=256*yt.charCodeAt(4)+yt.charCodeAt(5),cr=yt.length,tr={width:0,height:0,numcomponents:1},hr=4;hr<cr;hr+=2){if(hr+=Ve,c.indexOf(yt.charCodeAt(hr+1))!==-1){Ot=256*yt.charCodeAt(hr+5)+yt.charCodeAt(hr+6),tr={width:256*yt.charCodeAt(hr+7)+yt.charCodeAt(hr+8),height:Ot,numcomponents:yt.charCodeAt(hr+9)};break}Ve=256*yt.charCodeAt(hr+2)+yt.charCodeAt(hr+3)}return tr}(v=this.__addimage__.isArrayBufferView(v)?this.__addimage__.arrayBufferToBinaryString(v):v)).numcomponents){case 1:De=this.color_spaces.DEVICE_GRAY;break;case 4:De=this.color_spaces.DEVICE_CMYK;break;case 3:De=this.color_spaces.DEVICE_RGB}vt={data:v,width:ke.width,height:ke.height,colorSpace:De,bitsPerComponent:8,filter:rt,index:U,alias:ne}}return vt}}(Ni.API);var Xa,bl,so,vo,tu,wl=function(){var b,c,v;function U(W){var ge,De,ke,rt,vt,yt,Ot,Ve,cr,tr,hr,jt,Ar,kr;for(this.data=W,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},yt=null;;){switch(ge=this.readUInt32(),cr=function(){var ln,Ln;for(Ln=[],ln=0;ln<4;++ln)Ln.push(String.fromCharCode(this.data[this.pos++]));return Ln}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(ge);break;case"fcTL":yt&&this.animation.frames.push(yt),this.pos+=4,yt={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},vt=this.readUInt16(),rt=this.readUInt16()||100,yt.delay=1e3*vt/rt,yt.disposeOp=this.data[this.pos++],yt.blendOp=this.data[this.pos++],yt.data=[];break;case"IDAT":case"fdAT":for(cr==="fdAT"&&(this.pos+=4,ge-=4),W=(yt!=null?yt.data:void 0)||this.imgData,jt=0;0<=ge?jt<ge:jt>ge;0<=ge?++jt:--jt)W.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ke=this.palette.length/3,this.transparency.indexed=this.read(ge),this.transparency.indexed.length>ke)throw new Error("More transparent colors than palette size");if((tr=ke-this.transparency.indexed.length)>0)for(Ar=0;0<=tr?Ar<tr:Ar>tr;0<=tr?++Ar:--Ar)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ge)[0];break;case 2:this.transparency.rgb=this.read(ge)}break;case"tEXt":Ot=(hr=this.read(ge)).indexOf(0),Ve=String.fromCharCode.apply(String,hr.slice(0,Ot)),this.text[Ve]=String.fromCharCode.apply(String,hr.slice(Ot+1));break;case"IEND":return yt&&this.animation.frames.push(yt),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(kr=this.colorType)===4||kr===6,De=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*De,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=ge}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}U.prototype.read=function(W){var ge,De;for(De=[],ge=0;0<=W?ge<W:ge>W;0<=W?++ge:--ge)De.push(this.data[this.pos++]);return De},U.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},U.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},U.prototype.decodePixels=function(W){var ge=this.pixelBitlength/8,De=new Uint8Array(this.width*this.height*ge),ke=0,rt=this;if(W==null&&(W=this.imgData),W.length===0)return new Uint8Array(0);function vt(yt,Ot,Ve,cr){var tr,hr,jt,Ar,kr,ln,Ln,Ai,hn,Br,vn,Gn,zt,nr,Nr,ve,Pe,Xe,lt,ut,xt,Qt=Math.ceil((rt.width-yt)/Ve),lr=Math.ceil((rt.height-Ot)/cr),He=rt.width==Qt&&rt.height==lr;for(nr=ge*Qt,Gn=He?De:new Uint8Array(nr*lr),ln=W.length,zt=0,hr=0;zt<lr&&ke<ln;){switch(W[ke++]){case 0:for(Ar=Pe=0;Pe<nr;Ar=Pe+=1)Gn[hr++]=W[ke++];break;case 1:for(Ar=Xe=0;Xe<nr;Ar=Xe+=1)tr=W[ke++],kr=Ar<ge?0:Gn[hr-ge],Gn[hr++]=(tr+kr)%256;break;case 2:for(Ar=lt=0;lt<nr;Ar=lt+=1)tr=W[ke++],jt=(Ar-Ar%ge)/ge,Nr=zt&&Gn[(zt-1)*nr+jt*ge+Ar%ge],Gn[hr++]=(Nr+tr)%256;break;case 3:for(Ar=ut=0;ut<nr;Ar=ut+=1)tr=W[ke++],jt=(Ar-Ar%ge)/ge,kr=Ar<ge?0:Gn[hr-ge],Nr=zt&&Gn[(zt-1)*nr+jt*ge+Ar%ge],Gn[hr++]=(tr+Math.floor((kr+Nr)/2))%256;break;case 4:for(Ar=xt=0;xt<nr;Ar=xt+=1)tr=W[ke++],jt=(Ar-Ar%ge)/ge,kr=Ar<ge?0:Gn[hr-ge],zt===0?Nr=ve=0:(Nr=Gn[(zt-1)*nr+jt*ge+Ar%ge],ve=jt&&Gn[(zt-1)*nr+(jt-1)*ge+Ar%ge]),Ln=kr+Nr-ve,Ai=Math.abs(Ln-kr),Br=Math.abs(Ln-Nr),vn=Math.abs(Ln-ve),hn=Ai<=Br&&Ai<=vn?kr:Br<=vn?Nr:ve,Gn[hr++]=(tr+hn)%256;break;default:throw new Error("Invalid filter algorithm: "+W[ke-1])}if(!He){var At=((Ot+zt*cr)*rt.width+yt)*ge,Te=zt*nr;for(Ar=0;Ar<Qt;Ar+=1){for(var Ft=0;Ft<ge;Ft+=1)De[At++]=Gn[Te++];At+=(Ve-1)*ge}}zt++}}return W=Pt(W),rt.interlaceMethod==1?(vt(0,0,8,8),vt(4,0,8,8),vt(0,4,4,8),vt(2,0,4,4),vt(0,2,2,4),vt(1,0,2,2),vt(0,1,1,2)):vt(0,0,1,1),De},U.prototype.decodePalette=function(){var W,ge,De,ke,rt,vt,yt,Ot,Ve;for(De=this.palette,vt=this.transparency.indexed||[],rt=new Uint8Array((vt.length||0)+De.length),ke=0,W=0,ge=yt=0,Ot=De.length;yt<Ot;ge=yt+=3)rt[ke++]=De[ge],rt[ke++]=De[ge+1],rt[ke++]=De[ge+2],rt[ke++]=(Ve=vt[W++])!=null?Ve:255;return rt},U.prototype.copyToImageData=function(W,ge){var De,ke,rt,vt,yt,Ot,Ve,cr,tr,hr,jt;if(ke=this.colors,tr=null,De=this.hasAlphaChannel,this.palette.length&&(tr=(jt=this._decodedPalette)!=null?jt:this._decodedPalette=this.decodePalette(),ke=4,De=!0),cr=(rt=W.data||W).length,yt=tr||ge,vt=Ot=0,ke===1)for(;vt<cr;)Ve=tr?4*ge[vt/4]:Ot,hr=yt[Ve++],rt[vt++]=hr,rt[vt++]=hr,rt[vt++]=hr,rt[vt++]=De?yt[Ve++]:255,Ot=Ve;else for(;vt<cr;)Ve=tr?4*ge[vt/4]:Ot,rt[vt++]=yt[Ve++],rt[vt++]=yt[Ve++],rt[vt++]=yt[Ve++],rt[vt++]=De?yt[Ve++]:255,Ot=Ve},U.prototype.decode=function(){var W;return W=new Uint8Array(this.width*this.height*4),this.copyToImageData(W,this.decodePixels()),W};var ne=function(){if(Object.prototype.toString.call(fn)==="[object Window]"){try{c=fn.document.createElement("canvas"),v=c.getContext("2d")}catch(W){return!1}return!0}return!1};return ne(),b=function(W){var ge;if(ne()===!0)return v.width=W.width,v.height=W.height,v.clearRect(0,0,W.width,W.height),v.putImageData(W,0,0),(ge=new Image).src=c.toDataURL(),ge;throw new Error("This method requires a Browser with Canvas-capability.")},U.prototype.decodeFrames=function(W){var ge,De,ke,rt,vt,yt,Ot,Ve;if(this.animation){for(Ve=[],De=vt=0,yt=(Ot=this.animation.frames).length;vt<yt;De=++vt)ge=Ot[De],ke=W.createImageData(ge.width,ge.height),rt=this.decodePixels(new Uint8Array(ge.data)),this.copyToImageData(ke,rt),ge.imageData=ke,Ve.push(ge.image=b(ke));return Ve}},U.prototype.renderFrame=function(W,ge){var De,ke,rt;return De=(ke=this.animation.frames)[ge],rt=ke[ge-1],ge===0&&W.clearRect(0,0,this.width,this.height),(rt!=null?rt.disposeOp:void 0)===1?W.clearRect(rt.xOffset,rt.yOffset,rt.width,rt.height):(rt!=null?rt.disposeOp:void 0)===2&&W.putImageData(rt.imageData,rt.xOffset,rt.yOffset),De.blendOp===0&&W.clearRect(De.xOffset,De.yOffset,De.width,De.height),W.drawImage(De.image,De.xOffset,De.yOffset)},U.prototype.animate=function(W){var ge,De,ke,rt,vt,yt,Ot=this;return De=0,yt=this.animation,rt=yt.numFrames,ke=yt.frames,vt=yt.numPlays,(ge=function(){var Ve,cr;if(Ve=De++%rt,cr=ke[Ve],Ot.renderFrame(W,Ve),rt>1&&De/rt<vt)return Ot.animation._timeout=setTimeout(ge,cr.delay)})()},U.prototype.stopAnimation=function(){var W;return clearTimeout((W=this.animation)!=null?W._timeout:void 0)},U.prototype.render=function(W){var ge,De;return W._png&&W._png.stopAnimation(),W._png=this,W.width=this.width,W.height=this.height,ge=W.getContext("2d"),this.animation?(this.decodeFrames(ge),this.animate(ge)):(De=ge.createImageData(this.width,this.height),this.copyToImageData(De,this.decodePixels()),ge.putImageData(De,0,0))},U}();function cl(b){var c=0;if(b[c++]!==71||b[c++]!==73||b[c++]!==70||b[c++]!==56||(b[c++]+1&253)!=56||b[c++]!==97)throw new Error("Invalid GIF 87a/89a header.");var v=b[c++]|b[c++]<<8,U=b[c++]|b[c++]<<8,ne=b[c++],W=ne>>7,ge=1<<(7&ne)+1;b[c++],b[c++];var De=null,ke=null;W&&(De=c,ke=ge,c+=3*ge);var rt=!0,vt=[],yt=0,Ot=null,Ve=0,cr=null;for(this.width=v,this.height=U;rt&&c<b.length;)switch(b[c++]){case 33:switch(b[c++]){case 255:if(b[c]!==11||b[c+1]==78&&b[c+2]==69&&b[c+3]==84&&b[c+4]==83&&b[c+5]==67&&b[c+6]==65&&b[c+7]==80&&b[c+8]==69&&b[c+9]==50&&b[c+10]==46&&b[c+11]==48&&b[c+12]==3&&b[c+13]==1&&b[c+16]==0)c+=14,cr=b[c++]|b[c++]<<8,c++;else for(c+=12;;){if(!((zt=b[c++])>=0))throw Error("Invalid block size");if(zt===0)break;c+=zt}break;case 249:if(b[c++]!==4||b[c+4]!==0)throw new Error("Invalid graphics extension block.");var tr=b[c++];yt=b[c++]|b[c++]<<8,Ot=b[c++],!(1&tr)&&(Ot=null),Ve=tr>>2&7,c++;break;case 254:for(;;){if(!((zt=b[c++])>=0))throw Error("Invalid block size");if(zt===0)break;c+=zt}break;default:throw new Error("Unknown graphic control label: 0x"+b[c-1].toString(16))}break;case 44:var hr=b[c++]|b[c++]<<8,jt=b[c++]|b[c++]<<8,Ar=b[c++]|b[c++]<<8,kr=b[c++]|b[c++]<<8,ln=b[c++],Ln=ln>>6&1,Ai=1<<(7&ln)+1,hn=De,Br=ke,vn=!1;ln>>7&&(vn=!0,hn=c,Br=Ai,c+=3*Ai);var Gn=c;for(c++;;){var zt;if(!((zt=b[c++])>=0))throw Error("Invalid block size");if(zt===0)break;c+=zt}vt.push({x:hr,y:jt,width:Ar,height:kr,has_local_palette:vn,palette_offset:hn,palette_size:Br,data_offset:Gn,data_length:c-Gn,transparent_index:Ot,interlaced:!!Ln,delay:yt,disposal:Ve});break;case 59:rt=!1;break;default:throw new Error("Unknown gif block: 0x"+b[c-1].toString(16))}this.numFrames=function(){return vt.length},this.loopCount=function(){return cr},this.frameInfo=function(nr){if(nr<0||nr>=vt.length)throw new Error("Frame index out of range.");return vt[nr]},this.decodeAndBlitFrameBGRA=function(nr,Nr){var ve=this.frameInfo(nr),Pe=ve.width*ve.height,Xe=new Uint8Array(Pe);Ml(b,ve.data_offset,Xe,Pe);var lt=ve.palette_offset,ut=ve.transparent_index;ut===null&&(ut=256);var xt=ve.width,Qt=v-xt,lr=xt,He=4*(ve.y*v+ve.x),At=4*((ve.y+ve.height)*v+ve.x),Te=He,Ft=4*Qt;ve.interlaced===!0&&(Ft+=4*v*7);for(var er=8,or=0,ur=Xe.length;or<ur;++or){var St=Xe[or];if(lr===0&&(lr=xt,(Te+=Ft)>=At&&(Ft=4*Qt+4*v*(er-1),Te=He+(xt+Qt)*(er<<1),er>>=1)),St===ut)Te+=4;else{var Gr=b[lt+3*St],Zr=b[lt+3*St+1],sn=b[lt+3*St+2];Nr[Te++]=sn,Nr[Te++]=Zr,Nr[Te++]=Gr,Nr[Te++]=255}--lr}},this.decodeAndBlitFrameRGBA=function(nr,Nr){var ve=this.frameInfo(nr),Pe=ve.width*ve.height,Xe=new Uint8Array(Pe);Ml(b,ve.data_offset,Xe,Pe);var lt=ve.palette_offset,ut=ve.transparent_index;ut===null&&(ut=256);var xt=ve.width,Qt=v-xt,lr=xt,He=4*(ve.y*v+ve.x),At=4*((ve.y+ve.height)*v+ve.x),Te=He,Ft=4*Qt;ve.interlaced===!0&&(Ft+=4*v*7);for(var er=8,or=0,ur=Xe.length;or<ur;++or){var St=Xe[or];if(lr===0&&(lr=xt,(Te+=Ft)>=At&&(Ft=4*Qt+4*v*(er-1),Te=He+(xt+Qt)*(er<<1),er>>=1)),St===ut)Te+=4;else{var Gr=b[lt+3*St],Zr=b[lt+3*St+1],sn=b[lt+3*St+2];Nr[Te++]=Gr,Nr[Te++]=Zr,Nr[Te++]=sn,Nr[Te++]=255}--lr}}}function Ml(b,c,v,U){for(var ne=b[c++],W=1<<ne,ge=W+1,De=ge+1,ke=ne+1,rt=(1<<ke)-1,vt=0,yt=0,Ot=0,Ve=b[c++],cr=new Int32Array(4096),tr=null;;){for(;vt<16&&Ve!==0;)yt|=b[c++]<<vt,vt+=8,Ve===1?Ve=b[c++]:--Ve;if(vt<ke)break;var hr=yt&rt;if(yt>>=ke,vt-=ke,hr!==W){if(hr===ge)break;for(var jt=hr<De?hr:tr,Ar=0,kr=jt;kr>W;)kr=cr[kr]>>8,++Ar;var ln=kr;if(Ot+Ar+(jt!==hr?1:0)>U)return void ii.log("Warning, gif stream longer than expected.");v[Ot++]=ln;var Ln=Ot+=Ar;for(jt!==hr&&(v[Ot++]=ln),kr=jt;Ar--;)kr=cr[kr],v[--Ln]=255&kr,kr>>=8;tr!==null&&De<4096&&(cr[De++]=tr<<8|ln,De>=rt+1&&ke<12&&(++ke,rt=rt<<1|1)),tr=hr}else De=ge+1,rt=(1<<(ke=ne+1))-1,tr=null}return Ot!==U&&ii.log("Warning, gif stream shorter than expected."),v}function xl(b){var c,v,U,ne,W,ge=Math.floor,De=new Array(64),ke=new Array(64),rt=new Array(64),vt=new Array(64),yt=new Array(65535),Ot=new Array(65535),Ve=new Array(64),cr=new Array(64),tr=[],hr=0,jt=7,Ar=new Array(64),kr=new Array(64),ln=new Array(64),Ln=new Array(256),Ai=new Array(2048),hn=[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],Br=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],vn=[0,1,2,3,4,5,6,7,8,9,10,11],Gn=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],zt=[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],nr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Nr=[0,1,2,3,4,5,6,7,8,9,10,11],ve=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Pe=[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 Xe(He,At){for(var Te=0,Ft=0,er=new Array,or=1;or<=16;or++){for(var ur=1;ur<=He[or];ur++)er[At[Ft]]=[],er[At[Ft]][0]=Te,er[At[Ft]][1]=or,Ft++,Te++;Te*=2}return er}function lt(He){for(var At=He[0],Te=He[1]-1;Te>=0;)At&1<<Te&&(hr|=1<<jt),Te--,--jt<0&&(hr==255?(ut(255),ut(0)):ut(hr),jt=7,hr=0)}function ut(He){tr.push(He)}function xt(He){ut(He>>8&255),ut(255&He)}function Qt(He,At,Te,Ft,er){for(var or,ur=er[0],St=er[240],Gr=function(tn,wn){var pn,rn,Qn,vi,Mi,je,A,w,E,z,be=0;for(E=0;E<8;++E){pn=tn[be],rn=tn[be+1],Qn=tn[be+2],vi=tn[be+3],Mi=tn[be+4],je=tn[be+5],A=tn[be+6];var ze=pn+(w=tn[be+7]),pt=pn-w,It=rn+A,$t=rn-A,fr=Qn+je,Dr=Qn-je,Hr=vi+Mi,Hn=vi-Mi,Ur=ze+Hr,xn=ze-Hr,Nn=It+fr,kn=It-fr;tn[be]=Ur+Nn,tn[be+4]=Ur-Nn;var Jn=.707106781*(kn+xn);tn[be+2]=xn+Jn,tn[be+6]=xn-Jn;var Rn=.382683433*((Ur=Hn+Dr)-(kn=$t+pt)),Oi=.5411961*Ur+Rn,Gi=1.306562965*kn+Rn,Ji=.707106781*(Nn=Dr+$t),Ia=pt+Ji,Di=pt-Ji;tn[be+5]=Di+Oi,tn[be+3]=Di-Oi,tn[be+1]=Ia+Gi,tn[be+7]=Ia-Gi,be+=8}for(be=0,E=0;E<8;++E){pn=tn[be],rn=tn[be+8],Qn=tn[be+16],vi=tn[be+24],Mi=tn[be+32],je=tn[be+40],A=tn[be+48];var ss=pn+(w=tn[be+56]),La=pn-w,va=rn+A,qn=rn-A,Qa=Qn+je,Fs=Qn-je,fa=vi+Mi,Aa=vi-Mi,ma=ss+fa,ja=ss-fa,os=va+Qa,ca=va-Qa;tn[be]=ma+os,tn[be+32]=ma-os;var xs=.707106781*(ca+ja);tn[be+16]=ja+xs,tn[be+48]=ja-xs;var _s=.382683433*((ma=Aa+Fs)-(ca=qn+La)),Js=.5411961*ma+_s,Ws=1.306562965*ca+_s,Vs=.707106781*(os=Fs+qn),Vo=La+Vs,$o=La-Vs;tn[be+40]=$o+Js,tn[be+24]=$o-Js,tn[be+8]=Vo+Ws,tn[be+56]=Vo-Ws,be++}for(E=0;E<64;++E)z=tn[E]*wn[E],Ve[E]=z>0?z+.5|0:z-.5|0;return Ve}(He,At),Zr=0;Zr<64;++Zr)cr[hn[Zr]]=Gr[Zr];var sn=cr[0]-Te;Te=cr[0],sn==0?lt(Ft[0]):(lt(Ft[Ot[or=32767+sn]]),lt(yt[or]));for(var An=63;An>0&&cr[An]==0;)An--;if(An==0)return lt(ur),Te;for(var ni,zr=1;zr<=An;){for(var Yt=zr;cr[zr]==0&&zr<=An;)++zr;var wi=zr-Yt;if(wi>=16){ni=wi>>4;for(var fi=1;fi<=ni;++fi)lt(St);wi&=15}or=32767+cr[zr],lt(er[(wi<<4)+Ot[or]]),lt(yt[or]),zr++}return An!=63&<(ur),Te}function lr(He){He=Math.min(Math.max(He,1),100),W!=He&&(function(At){for(var Te=[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],Ft=0;Ft<64;Ft++){var er=ge((Te[Ft]*At+50)/100);er=Math.min(Math.max(er,1),255),De[hn[Ft]]=er}for(var or=[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],ur=0;ur<64;ur++){var St=ge((or[ur]*At+50)/100);St=Math.min(Math.max(St,1),255),ke[hn[ur]]=St}for(var Gr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Zr=0,sn=0;sn<8;sn++)for(var An=0;An<8;An++)rt[Zr]=1/(De[hn[Zr]]*Gr[sn]*Gr[An]*8),vt[Zr]=1/(ke[hn[Zr]]*Gr[sn]*Gr[An]*8),Zr++}(He<50?Math.floor(5e3/He):Math.floor(200-2*He)),W=He)}this.encode=function(He,At){At&&lr(At),tr=new Array,hr=0,jt=7,xt(65496),xt(65504),xt(16),ut(74),ut(70),ut(73),ut(70),ut(0),ut(1),ut(1),ut(0),xt(1),xt(1),ut(0),ut(0),function(){xt(65499),xt(132),ut(0);for(var rn=0;rn<64;rn++)ut(De[rn]);ut(1);for(var Qn=0;Qn<64;Qn++)ut(ke[Qn])}(),function(rn,Qn){xt(65472),xt(17),ut(8),xt(Qn),xt(rn),ut(3),ut(1),ut(17),ut(0),ut(2),ut(17),ut(1),ut(3),ut(17),ut(1)}(He.width,He.height),function(){xt(65476),xt(418),ut(0);for(var rn=0;rn<16;rn++)ut(Br[rn+1]);for(var Qn=0;Qn<=11;Qn++)ut(vn[Qn]);ut(16);for(var vi=0;vi<16;vi++)ut(Gn[vi+1]);for(var Mi=0;Mi<=161;Mi++)ut(zt[Mi]);ut(1);for(var je=0;je<16;je++)ut(nr[je+1]);for(var A=0;A<=11;A++)ut(Nr[A]);ut(17);for(var w=0;w<16;w++)ut(ve[w+1]);for(var E=0;E<=161;E++)ut(Pe[E])}(),xt(65498),xt(12),ut(3),ut(1),ut(0),ut(2),ut(17),ut(3),ut(17),ut(0),ut(63),ut(0);var Te=0,Ft=0,er=0;hr=0,jt=7,this.encode.displayName="_encode_";for(var or,ur,St,Gr,Zr,sn,An,ni,zr,Yt=He.data,wi=He.width,fi=He.height,tn=4*wi,wn=0;wn<fi;){for(or=0;or<tn;){for(Zr=tn*wn+or,An=-1,ni=0,zr=0;zr<64;zr++)sn=Zr+(ni=zr>>3)*tn+(An=4*(7&zr)),wn+ni>=fi&&(sn-=tn*(wn+1+ni-fi)),or+An>=tn&&(sn-=or+An-tn+4),ur=Yt[sn++],St=Yt[sn++],Gr=Yt[sn++],Ar[zr]=(Ai[ur]+Ai[St+256>>0]+Ai[Gr+512>>0]>>16)-128,kr[zr]=(Ai[ur+768>>0]+Ai[St+1024>>0]+Ai[Gr+1280>>0]>>16)-128,ln[zr]=(Ai[ur+1280>>0]+Ai[St+1536>>0]+Ai[Gr+1792>>0]>>16)-128;Te=Qt(Ar,rt,Te,c,U),Ft=Qt(kr,vt,Ft,v,ne),er=Qt(ln,vt,er,v,ne),or+=32}wn+=8}if(jt>=0){var pn=[];pn[1]=jt+1,pn[0]=(1<<jt+1)-1,lt(pn)}return xt(65497),new Uint8Array(tr)},b=b||50,function(){for(var He=String.fromCharCode,At=0;At<256;At++)Ln[At]=He(At)}(),c=Xe(Br,vn),v=Xe(nr,Nr),U=Xe(Gn,zt),ne=Xe(ve,Pe),function(){for(var He=1,At=2,Te=1;Te<=15;Te++){for(var Ft=He;Ft<At;Ft++)Ot[32767+Ft]=Te,yt[32767+Ft]=[],yt[32767+Ft][1]=Te,yt[32767+Ft][0]=Ft;for(var er=-(At-1);er<=-He;er++)Ot[32767+er]=Te,yt[32767+er]=[],yt[32767+er][1]=Te,yt[32767+er][0]=At-1+er;He<<=1,At<<=1}}(),function(){for(var He=0;He<256;He++)Ai[He]=19595*He,Ai[He+256>>0]=38470*He,Ai[He+512>>0]=7471*He+32768,Ai[He+768>>0]=-11059*He,Ai[He+1024>>0]=-21709*He,Ai[He+1280>>0]=32768*He+8421375,Ai[He+1536>>0]=-27439*He,Ai[He+1792>>0]=-5329*He}(),lr(b)}function Mo(b,c){if(this.pos=0,this.buffer=b,this.datav=new DataView(b.buffer),this.is_with_alpha=!!c,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 Ks(b){function c(Br){if(!Br)throw Error("assert :P")}function v(Br,vn,Gn){for(var zt=0;4>zt;zt++)if(Br[vn+zt]!=Gn.charCodeAt(zt))return!0;return!1}function U(Br,vn,Gn,zt,nr){for(var Nr=0;Nr<nr;Nr++)Br[vn+Nr]=Gn[zt+Nr]}function ne(Br,vn,Gn,zt){for(var nr=0;nr<zt;nr++)Br[vn+nr]=Gn}function W(Br){return new Int32Array(Br)}function ge(Br,vn){for(var Gn=[],zt=0;zt<Br;zt++)Gn.push(new vn);return Gn}function De(Br,vn){var Gn=[];return function zt(nr,Nr,ve){for(var Pe=ve[Nr],Xe=0;Xe<Pe&&(nr.push(ve.length>Nr+1?[]:new vn),!(ve.length<Nr+1));Xe++)zt(nr[Xe],Nr+1,ve)}(Gn,0,Br),Gn}var ke=function(){var Br=this;function vn(u,P){for(var me=1<<P-1>>>0;u&me;)me>>>=1;return me?(u&me-1)+me:u}function Gn(u,P,me,Ue,at){c(!(Ue%me));do u[P+(Ue-=me)]=at;while(0<Ue)}function zt(u,P,me,Ue,at){if(c(2328>=at),512>=at)var bt=W(512);else if((bt=W(at))==null)return 0;return function(gt,Ct,Nt,Zt,yr,wr){var Xr,Rr,En=Ct,Bn=1<<Nt,Or=W(16),jr=W(16);for(c(yr!=0),c(Zt!=null),c(gt!=null),c(0<Nt),Rr=0;Rr<yr;++Rr){if(15<Zt[Rr])return 0;++Or[Zt[Rr]]}if(Or[0]==yr)return 0;for(jr[1]=0,Xr=1;15>Xr;++Xr){if(Or[Xr]>1<<Xr)return 0;jr[Xr+1]=jr[Xr]+Or[Xr]}for(Rr=0;Rr<yr;++Rr)Xr=Zt[Rr],0<Zt[Rr]&&(wr[jr[Xr]++]=Rr);if(jr[15]==1)return(Zt=new nr).g=0,Zt.value=wr[0],Gn(gt,En,1,Bn,Zt),Bn;var Pn,si=-1,li=Bn-1,Xi=0,Hi=1,wa=1,Wi=1<<Nt;for(Rr=0,Xr=1,yr=2;Xr<=Nt;++Xr,yr<<=1){if(Hi+=wa<<=1,0>(wa-=Or[Xr]))return 0;for(;0<Or[Xr];--Or[Xr])(Zt=new nr).g=Xr,Zt.value=wr[Rr++],Gn(gt,En+Xi,yr,Wi,Zt),Xi=vn(Xi,Xr)}for(Xr=Nt+1,yr=2;15>=Xr;++Xr,yr<<=1){if(Hi+=wa<<=1,0>(wa-=Or[Xr]))return 0;for(;0<Or[Xr];--Or[Xr]){if(Zt=new nr,(Xi&li)!=si){for(En+=Wi,Pn=1<<(si=Xr)-Nt;15>si&&!(0>=(Pn-=Or[si]));)++si,Pn<<=1;Bn+=Wi=1<<(Pn=si-Nt),gt[Ct+(si=Xi&li)].g=Pn+Nt,gt[Ct+si].value=En-Ct-si}Zt.g=Xr-Nt,Zt.value=wr[Rr++],Gn(gt,En+(Xi>>Nt),yr,Wi,Zt),Xi=vn(Xi,Xr)}}return Hi!=2*jr[15]-1?0:Bn}(u,P,me,Ue,at,bt)}function nr(){this.value=this.g=0}function Nr(){this.value=this.g=0}function ve(){this.G=ge(5,nr),this.H=W(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ge(qo,Nr)}function Pe(u,P,me,Ue){c(u!=null),c(P!=null),c(2147483648>Ue),u.Ca=254,u.I=0,u.b=-8,u.Ka=0,u.oa=P,u.pa=me,u.Jd=P,u.Yc=me+Ue,u.Zc=4<=Ue?me+Ue-4+1:me,or(u)}function Xe(u,P){for(var me=0;0<P--;)me|=St(u,128)<<P;return me}function lt(u,P){var me=Xe(u,P);return ur(u)?-me:me}function ut(u,P,me,Ue){var at,bt=0;for(c(u!=null),c(P!=null),c(4294967288>Ue),u.Sb=Ue,u.Ra=0,u.u=0,u.h=0,4<Ue&&(Ue=4),at=0;at<Ue;++at)bt+=P[me+at]<<8*at;u.Ra=bt,u.bb=Ue,u.oa=P,u.pa=me}function xt(u){for(;8<=u.u&&u.bb<u.Sb;)u.Ra>>>=8,u.Ra+=u.oa[u.pa+u.bb]<<no-8>>>0,++u.bb,u.u-=8;Te(u)&&(u.h=1,u.u=0)}function Qt(u,P){if(c(0<=P),!u.h&&P<=Xu){var me=At(u)&Kl[P];return u.u+=P,xt(u),me}return u.h=1,u.u=0}function lr(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function He(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function At(u){return u.Ra>>>(u.u&no-1)>>>0}function Te(u){return c(u.bb<=u.Sb),u.h||u.bb==u.Sb&&u.u>no}function Ft(u,P){u.u=P,u.h=Te(u)}function er(u){u.u>=Xl&&(c(u.u>=Xl),xt(u))}function or(u){c(u!=null&&u.oa!=null),u.pa<u.Zc?(u.I=(u.oa[u.pa++]|u.I<<8)>>>0,u.b+=8):(c(u!=null&&u.oa!=null),u.pa<u.Yc?(u.b+=8,u.I=u.oa[u.pa++]|u.I<<8):u.Ka?u.b=0:(u.I<<=8,u.b+=8,u.Ka=1))}function ur(u){return Xe(u,1)}function St(u,P){var me=u.Ca;0>u.b&&or(u);var Ue=u.b,at=me*P>>>8,bt=(u.I>>>Ue>at)+0;for(bt?(me-=at,u.I-=at+1<<Ue>>>0):me=at+1,Ue=me,at=0;256<=Ue;)at+=8,Ue>>=8;return Ue=7^at+Ho[Ue],u.b-=Ue,u.Ca=(me<<Ue)-1,bt}function Gr(u,P,me){u[P+0]=me>>24&255,u[P+1]=me>>16&255,u[P+2]=me>>8&255,u[P+3]=me>>0&255}function Zr(u,P){return u[P+0]<<0|u[P+1]<<8}function sn(u,P){return Zr(u,P)|u[P+2]<<16}function An(u,P){return Zr(u,P)|Zr(u,P+2)<<16}function ni(u,P){var me=1<<P;return c(u!=null),c(0<P),u.X=W(me),u.X==null?0:(u.Mb=32-P,u.Xa=P,1)}function zr(u,P){c(u!=null),c(P!=null),c(u.Xa==P.Xa),U(P.X,0,u.X,0,1<<P.Xa)}function Yt(){this.X=[],this.Xa=this.Mb=0}function wi(u,P,me,Ue){c(me!=null),c(Ue!=null);var at=me[0],bt=Ue[0];return at==0&&(at=(u*bt+P/2)/P),bt==0&&(bt=(P*at+u/2)/u),0>=at||0>=bt?0:(me[0]=at,Ue[0]=bt,1)}function fi(u,P){return u+(1<<P)-1>>>P}function tn(u,P){return((4278255360&u)+(4278255360&P)>>>0&4278255360)+((16711935&u)+(16711935&P)>>>0&16711935)>>>0}function wn(u,P){Br[P]=function(me,Ue,at,bt,gt,Ct,Nt){var Zt;for(Zt=0;Zt<gt;++Zt){var yr=Br[u](Ct[Nt+Zt-1],at,bt+Zt);Ct[Nt+Zt]=tn(me[Ue+Zt],yr)}}}function pn(){this.ud=this.hd=this.jd=0}function rn(u,P){return((4278124286&(u^P))>>>1)+(u&P)>>>0}function Qn(u){return 0<=u&&256>u?u:0>u?0:255<u?255:void 0}function vi(u,P){return Qn(u+(u-P+.5>>1))}function Mi(u,P,me){return Math.abs(P-me)-Math.abs(u-me)}function je(u,P,me,Ue,at,bt,gt){for(Ue=bt[gt-1],me=0;me<at;++me)bt[gt+me]=Ue=tn(u[P+me],Ue)}function A(u,P,me,Ue,at){var bt;for(bt=0;bt<me;++bt){var gt=u[P+bt],Ct=gt>>8&255,Nt=16711935&(Nt=(Nt=16711935>)+((Ct<<16)+Ct));Ue[at+bt]=(4278255360>)+Nt>>>0}}function w(u,P){P.jd=u>>0&255,P.hd=u>>8&255,P.ud=u>>16&255}function E(u,P,me,Ue,at,bt){var gt;for(gt=0;gt<Ue;++gt){var Ct=P[me+gt],Nt=Ct>>>8,Zt=Ct,yr=255&(yr=(yr=Ct>>>16)+((u.jd<<24>>24)*(Nt<<24>>24)>>>5));Zt=255&(Zt=(Zt=Zt+((u.hd<<24>>24)*(Nt<<24>>24)>>>5))+((u.ud<<24>>24)*(yr<<24>>24)>>>5)),at[bt+gt]=(4278255360&Ct)+(yr<<16)+Zt}}function z(u,P,me,Ue,at){Br[P]=function(bt,gt,Ct,Nt,Zt,yr,wr,Xr,Rr){for(Nt=wr;Nt<Xr;++Nt)for(wr=0;wr<Rr;++wr)Zt[yr++]=at(Ct[Ue(bt[gt++])])},Br[u]=function(bt,gt,Ct,Nt,Zt,yr,wr){var Xr=8>>bt.b,Rr=bt.Ea,En=bt.K[0],Bn=bt.w;if(8>Xr)for(bt=(1<<bt.b)-1,Bn=(1<<Xr)-1;gt<Ct;++gt){var Or,jr=0;for(Or=0;Or<Rr;++Or)Or&bt||(jr=Ue(Nt[Zt++])),yr[wr++]=at(En[jr&Bn]),jr>>=Xr}else Br["VP8LMapColor"+me](Nt,Zt,En,Bn,yr,wr,gt,Ct,Rr)}}function be(u,P,me,Ue,at){for(me=P+me;P<me;){var bt=u[P++];Ue[at++]=bt>>16&255,Ue[at++]=bt>>8&255,Ue[at++]=bt>>0&255}}function ze(u,P,me,Ue,at){for(me=P+me;P<me;){var bt=u[P++];Ue[at++]=bt>>16&255,Ue[at++]=bt>>8&255,Ue[at++]=bt>>0&255,Ue[at++]=bt>>24&255}}function pt(u,P,me,Ue,at){for(me=P+me;P<me;){var bt=(gt=u[P++])>>16&240|gt>>12&15,gt=gt>>0&240|gt>>28&15;Ue[at++]=bt,Ue[at++]=gt}}function It(u,P,me,Ue,at){for(me=P+me;P<me;){var bt=(gt=u[P++])>>16&248|gt>>13&7,gt=gt>>5&224|gt>>3&31;Ue[at++]=bt,Ue[at++]=gt}}function $t(u,P,me,Ue,at){for(me=P+me;P<me;){var bt=u[P++];Ue[at++]=bt>>0&255,Ue[at++]=bt>>8&255,Ue[at++]=bt>>16&255}}function fr(u,P,me,Ue,at,bt){if(bt==0)for(me=P+me;P<me;)Gr(Ue,((bt=u[P++])[0]>>24|bt[1]>>8&65280|bt[2]<<8&16711680|bt[3]<<24)>>>0),at+=32;else U(Ue,at,u,P,me)}function Dr(u,P){Br[P][0]=Br[u+"0"],Br[P][1]=Br[u+"1"],Br[P][2]=Br[u+"2"],Br[P][3]=Br[u+"3"],Br[P][4]=Br[u+"4"],Br[P][5]=Br[u+"5"],Br[P][6]=Br[u+"6"],Br[P][7]=Br[u+"7"],Br[P][8]=Br[u+"8"],Br[P][9]=Br[u+"9"],Br[P][10]=Br[u+"10"],Br[P][11]=Br[u+"11"],Br[P][12]=Br[u+"12"],Br[P][13]=Br[u+"13"],Br[P][14]=Br[u+"0"],Br[P][15]=Br[u+"0"]}function Hr(u){return u==Li||u==Ga||u==ia||u==$a}function Hn(){this.eb=[],this.size=this.A=this.fb=0}function Ur(){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 xn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Hn,this.f.kb=new Ur,this.sd=null}function Nn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function kn(){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 Jn(u){return alert("todo:WebPSamplerProcessPlane"),u.T}function Rn(u,P){var me=u.T,Ue=P.ba.f.RGBA,at=Ue.eb,bt=Ue.fb+u.ka*Ue.A,gt=ql[P.ba.S],Ct=u.y,Nt=u.O,Zt=u.f,yr=u.N,wr=u.ea,Xr=u.W,Rr=P.cc,En=P.dc,Bn=P.Mc,Or=P.Nc,jr=u.ka,Pn=u.ka+u.T,si=u.U,li=si+1>>1;for(jr==0?gt(Ct,Nt,null,null,Zt,yr,wr,Xr,Zt,yr,wr,Xr,at,bt,null,null,si):(gt(P.ec,P.fc,Ct,Nt,Rr,En,Bn,Or,Zt,yr,wr,Xr,at,bt-Ue.A,at,bt,si),++me);jr+2<Pn;jr+=2)Rr=Zt,En=yr,Bn=wr,Or=Xr,yr+=u.Rc,Xr+=u.Rc,bt+=2*Ue.A,gt(Ct,(Nt+=2*u.fa)-u.fa,Ct,Nt,Rr,En,Bn,Or,Zt,yr,wr,Xr,at,bt-Ue.A,at,bt,si);return Nt+=u.fa,u.j+Pn<u.o?(U(P.ec,P.fc,Ct,Nt,si),U(P.cc,P.dc,Zt,yr,li),U(P.Mc,P.Nc,wr,Xr,li),me--):1&Pn||gt(Ct,Nt,null,null,Zt,yr,wr,Xr,Zt,yr,wr,Xr,at,bt+Ue.A,null,null,si),me}function Oi(u,P,me){var Ue=u.F,at=[u.J];if(Ue!=null){var bt=u.U,gt=P.ba.S,Ct=gt==Si||gt==ia;P=P.ba.f.RGBA;var Nt=[0],Zt=u.ka;Nt[0]=u.T,u.Kb&&(Zt==0?--Nt[0]:(--Zt,at[0]-=u.width),u.j+u.ka+u.T==u.o&&(Nt[0]=u.o-u.j-Zt));var yr=P.eb;Zt=P.fb+Zt*P.A,u=q(Ue,at[0],u.width,bt,Nt,yr,Zt+(Ct?0:3),P.A),c(me==Nt),u&&Hr(gt)&&x(yr,Zt,Ct,bt,Nt,P.A)}return 0}function Gi(u){var P=u.ma,me=P.ba.S,Ue=11>me,at=me==dn||me==Kn||me==Si||me==ta||me==12||Hr(me);if(P.memory=null,P.Ib=null,P.Jb=null,P.Nd=null,!fc(P.Oa,u,at?11:12))return 0;if(at&&Hr(me)&&Ci(),u.da)alert("todo:use_scaling");else{if(Ue){if(P.Ib=Jn,u.Kb){if(me=u.U+1>>1,P.memory=W(u.U+2*me),P.memory==null)return 0;P.ec=P.memory,P.fc=0,P.cc=P.ec,P.dc=P.fc+u.U,P.Mc=P.cc,P.Nc=P.dc+me,P.Ib=Rn,Ci()}}else alert("todo:EmitYUV");at&&(P.Jb=Oi,Ue&&un())}if(Ue&&!aA){for(u=0;256>u;++u)R[u]=89858*(u-128)+Hc>>jc,M[u]=-22014*(u-128)+Hc,Q[u]=-45773*(u-128),C[u]=113618*(u-128)+Hc>>jc;for(u=Mc;u<Vc;++u)P=76283*(u-16)+Hc>>jc,Ne[u-Mc]=Rl(P,255),it[u-Mc]=Rl(P+8>>4,15);aA=1}return 1}function Ji(u){var P=u.ma,me=u.U,Ue=u.T;return c(!(1&u.ka)),0>=me||0>=Ue?0:(me=P.Ib(u,P),P.Jb!=null&&P.Jb(u,P,me),P.Dc+=me,1)}function Ia(u){u.ma.memory=null}function Di(u,P,me,Ue){return Qt(u,8)!=47?0:(P[0]=Qt(u,14)+1,me[0]=Qt(u,14)+1,Ue[0]=Qt(u,1),Qt(u,3)!=0?0:!u.h)}function ss(u,P){if(4>u)return u+1;var me=u-2>>1;return(2+(1&u)<<me)+Qt(P,me)+1}function La(u,P){return 120<P?P-120:1<=(me=((me=sa[P-1])>>4)*u+(8-(15&me)))?me:1;var me}function va(u,P,me){var Ue=At(me),at=u[P+=255&Ue].g-8;return 0<at&&(Ft(me,me.u+8),Ue=At(me),P+=u[P].value,P+=Ue&(1<<at)-1),Ft(me,me.u+u[P].g),u[P].value}function qn(u,P,me){return me.g+=u.g,me.value+=u.value<<P>>>0,c(8>=me.g),u.g}function Qa(u,P,me){var Ue=u.xc;return c((P=Ue==0?0:u.vc[u.md*(me>>Ue)+(P>>Ue)])<u.Wb),u.Ya[P]}function Fs(u,P,me,Ue){var at=u.ab,bt=u.c*P,gt=u.C;P=gt+P;var Ct=me,Nt=Ue;for(Ue=u.Ta,me=u.Ua;0<at--;){var Zt=u.gc[at],yr=gt,wr=P,Xr=Ct,Rr=Nt,En=(Nt=Ue,Ct=me,Zt.Ea);switch(c(yr<wr),c(wr<=Zt.nc),Zt.hc){case 2:Ou(Xr,Rr,(wr-yr)*En,Nt,Ct);break;case 0:var Bn=yr,Or=wr,jr=Nt,Pn=Ct,si=(Wi=Zt).Ea;Bn==0&&(ou(Xr,Rr,null,null,1,jr,Pn),je(Xr,Rr+1,0,0,si-1,jr,Pn+1),Rr+=si,Pn+=si,++Bn);for(var li=1<<Wi.b,Xi=li-1,Hi=fi(si,Wi.b),wa=Wi.K,Wi=Wi.w+(Bn>>Wi.b)*Hi;Bn<Or;){var Es=wa,Rs=Wi,vs=1;for(zl(Xr,Rr,jr,Pn-si,1,jr,Pn);vs<si;){var qa=(vs&~Xi)+li;qa>si&&(qa=si),(0,Gl[Es[Rs++]>>8&15])(Xr,Rr+ +vs,jr,Pn+vs-si,qa-vs,jr,Pn+vs),vs=qa}Rr+=si,Pn+=si,++Bn&Xi||(Wi+=Hi)}wr!=Zt.nc&&U(Nt,Ct-En,Nt,Ct+(wr-yr-1)*En,En);break;case 1:for(En=Xr,Or=Rr,si=(Xr=Zt.Ea)-(Pn=Xr&~(jr=(Rr=1<<Zt.b)-1)),Bn=fi(Xr,Zt.b),li=Zt.K,Zt=Zt.w+(yr>>Zt.b)*Bn;yr<wr;){for(Xi=li,Hi=Zt,wa=new pn,Wi=Or+Pn,Es=Or+Xr;Or<Wi;)w(Xi[Hi++],wa),Jl(wa,En,Or,Rr,Nt,Ct),Or+=Rr,Ct+=Rr;Or<Es&&(w(Xi[Hi++],wa),Jl(wa,En,Or,si,Nt,Ct),Or+=si,Ct+=si),++yr&jr||(Zt+=Bn)}break;case 3:if(Xr==Nt&&Rr==Ct&&0<Zt.b){for(Or=Nt,Xr=En=Ct+(wr-yr)*En-(Pn=(wr-yr)*fi(Zt.Ea,Zt.b)),Rr=Nt,jr=Ct,Bn=[],Pn=(si=Pn)-1;0<=Pn;--Pn)Bn[Pn]=Rr[jr+Pn];for(Pn=si-1;0<=Pn;--Pn)Or[Xr+Pn]=Bn[Pn];No(Zt,yr,wr,Nt,En,Nt,Ct)}else No(Zt,yr,wr,Xr,Rr,Nt,Ct)}Ct=Ue,Nt=me}Nt!=me&&U(Ue,me,Ct,Nt,bt)}function fa(u,P){var me=u.V,Ue=u.Ba+u.c*u.C,at=P-u.C;if(c(P<=u.l.o),c(16>=at),0<at){var bt=u.l,gt=u.Ta,Ct=u.Ua,Nt=bt.width;if(Fs(u,at,me,Ue),at=Ct=[Ct],c((me=u.C)<(Ue=P)),c(bt.v<bt.va),Ue>bt.o&&(Ue=bt.o),me<bt.j){var Zt=bt.j-me;me=bt.j,at[0]+=Zt*Nt}if(me>=Ue?me=0:(at[0]+=4*bt.v,bt.ka=me-bt.j,bt.U=bt.va-bt.v,bt.T=Ue-me,me=1),me){if(Ct=Ct[0],11>(me=u.ca).S){var yr=me.f.RGBA,wr=(Ue=me.S,at=bt.U,bt=bt.T,Zt=yr.eb,yr.A),Xr=bt;for(yr=yr.fb+u.Ma*yr.A;0<Xr--;){var Rr=gt,En=Ct,Bn=at,Or=Zt,jr=yr;switch(Ue){case $n:el(Rr,En,Bn,Or,jr);break;case dn:rl(Rr,En,Bn,Or,jr);break;case Li:rl(Rr,En,Bn,Or,jr),x(Or,jr,0,Bn,1,0);break;case gi:lu(Rr,En,Bn,Or,jr);break;case Kn:fr(Rr,En,Bn,Or,jr,1);break;case Ga:fr(Rr,En,Bn,Or,jr,1),x(Or,jr,0,Bn,1,0);break;case Si:fr(Rr,En,Bn,Or,jr,0);break;case ia:fr(Rr,En,Bn,Or,jr,0),x(Or,jr,1,Bn,1,0);break;case ta:Pl(Rr,En,Bn,Or,jr);break;case $a:Pl(Rr,En,Bn,Or,jr),j(Or,jr,Bn,1,0);break;case mi:bu(Rr,En,Bn,Or,jr);break;default:c(0)}Ct+=Nt,yr+=wr}u.Ma+=bt}else alert("todo:EmitRescaledRowsYUVA");c(u.Ma<=me.height)}}u.C=P,c(u.C<=u.i)}function Aa(u){var P;if(0<u.ua)return 0;for(P=0;P<u.Wb;++P){var me=u.Ya[P].G,Ue=u.Ya[P].H;if(0<me[1][Ue[1]+0].g||0<me[2][Ue[2]+0].g||0<me[3][Ue[3]+0].g)return 0}return 1}function ma(u,P,me,Ue,at,bt){if(u.Z!=0){var gt=u.qd,Ct=u.rd;for(c(vc[u.Z]!=null);P<me;++P)vc[u.Z](gt,Ct,Ue,at,Ue,at,bt),gt=Ue,Ct=at,at+=bt;u.qd=gt,u.rd=Ct}}function ja(u,P){var me=u.l.ma,Ue=me.Z==0||me.Z==1?u.l.j:u.C;if(Ue=u.C<Ue?Ue:u.C,c(P<=u.l.o),P>Ue){var at=u.l.width,bt=me.ca,gt=me.tb+at*Ue,Ct=u.V,Nt=u.Ba+u.c*Ue,Zt=u.gc;c(u.ab==1),c(Zt[0].hc==3),Ec(Zt[0],Ue,P,Ct,Nt,bt,gt),ma(me,Ue,P,bt,gt,at)}u.C=u.Ma=P}function os(u,P,me,Ue,at,bt,gt){var Ct=u.$/Ue,Nt=u.$%Ue,Zt=u.m,yr=u.s,wr=me+u.$,Xr=wr;at=me+Ue*at;var Rr=me+Ue*bt,En=280+yr.ua,Bn=u.Pb?Ct:16777216,Or=0<yr.ua?yr.Wa:null,jr=yr.wc,Pn=wr<Rr?Qa(yr,Nt,Ct):null;c(u.C<bt),c(Rr<=at);var si=!1;e:for(;;){for(;si||wr<Rr;){var li=0;if(Ct>=Bn){var Xi=wr-me;c((Bn=u).Pb),Bn.wd=Bn.m,Bn.xd=Xi,0<Bn.s.ua&&zr(Bn.s.Wa,Bn.s.vb),Bn=Ct+ds}if(Nt&jr||(Pn=Qa(yr,Nt,Ct)),c(Pn!=null),Pn.Qb&&(P[wr]=Pn.qb,si=!0),!si)if(er(Zt),Pn.jc){li=Zt,Xi=P;var Hi=wr,wa=Pn.pd[At(li)&qo-1];c(Pn.jc),256>wa.g?(Ft(li,li.u+wa.g),Xi[Hi]=wa.value,li=0):(Ft(li,li.u+wa.g-256),c(256<=wa.value),li=wa.value),li==0&&(si=!0)}else li=va(Pn.G[0],Pn.H[0],Zt);if(Zt.h)break;if(si||256>li){if(!si)if(Pn.nd)P[wr]=(Pn.qb|li<<8)>>>0;else{if(er(Zt),si=va(Pn.G[1],Pn.H[1],Zt),er(Zt),Xi=va(Pn.G[2],Pn.H[2],Zt),Hi=va(Pn.G[3],Pn.H[3],Zt),Zt.h)break;P[wr]=(Hi<<24|si<<16|li<<8|Xi)>>>0}if(si=!1,++wr,++Nt>=Ue&&(Nt=0,++Ct,gt!=null&&Ct<=bt&&!(Ct%16)&>(u,Ct),Or!=null))for(;Xr<wr;)li=P[Xr++],Or.X[(506832829*li&4294967295)>>>Or.Mb]=li}else if(280>li){if(li=ss(li-256,Zt),Xi=va(Pn.G[4],Pn.H[4],Zt),er(Zt),Xi=La(Ue,Xi=ss(Xi,Zt)),Zt.h)break;if(wr-me<Xi||at-wr<li)break e;for(Hi=0;Hi<li;++Hi)P[wr+Hi]=P[wr+Hi-Xi];for(wr+=li,Nt+=li;Nt>=Ue;)Nt-=Ue,++Ct,gt!=null&&Ct<=bt&&!(Ct%16)&>(u,Ct);if(c(wr<=at),Nt&jr&&(Pn=Qa(yr,Nt,Ct)),Or!=null)for(;Xr<wr;)li=P[Xr++],Or.X[(506832829*li&4294967295)>>>Or.Mb]=li}else{if(!(li<En))break e;for(si=li-280,c(Or!=null);Xr<wr;)li=P[Xr++],Or.X[(506832829*li&4294967295)>>>Or.Mb]=li;li=wr,c(!(si>>>(Xi=Or).Xa)),P[li]=Xi.X[si],si=!0}si||c(Zt.h==Te(Zt))}if(u.Pb&&Zt.h&&wr<at)c(u.m.h),u.a=5,u.m=u.wd,u.$=u.xd,0<u.s.ua&&zr(u.s.vb,u.s.Wa);else{if(Zt.h)break e;gt!=null&>(u,Ct>bt?bt:Ct),u.a=0,u.$=wr-me}return 1}return u.a=3,0}function ca(u){c(u!=null),u.vc=null,u.yc=null,u.Ya=null;var P=u.Wa;P!=null&&(P.X=null),u.vb=null,c(u!=null)}function xs(){var u=new Ic;return u==null?null:(u.a=0,u.xb=Wc,Dr("Predictor","VP8LPredictors"),Dr("Predictor","VP8LPredictors_C"),Dr("PredictorAdd","VP8LPredictorsAdd"),Dr("PredictorAdd","VP8LPredictorsAdd_C"),Ou=A,Jl=E,el=be,rl=ze,Pl=pt,bu=It,lu=$t,Br.VP8LMapColor32b=Pu,Br.VP8LMapColor8b=Cc,u)}function _s(u,P,me,Ue,at){var bt=1,gt=[u],Ct=[P],Nt=Ue.m,Zt=Ue.s,yr=null,wr=0;e:for(;;){if(me)for(;bt&&Qt(Nt,1);){var Xr=gt,Rr=Ct,En=Ue,Bn=1,Or=En.m,jr=En.gc[En.ab],Pn=Qt(Or,2);if(En.Oc&1<<Pn)bt=0;else{switch(En.Oc|=1<<Pn,jr.hc=Pn,jr.Ea=Xr[0],jr.nc=Rr[0],jr.K=[null],++En.ab,c(4>=En.ab),Pn){case 0:case 1:jr.b=Qt(Or,3)+2,Bn=_s(fi(jr.Ea,jr.b),fi(jr.nc,jr.b),0,En,jr.K),jr.K=jr.K[0];break;case 3:var si,li=Qt(Or,8)+1,Xi=16<li?0:4<li?1:2<li?2:3;if(Xr[0]=fi(jr.Ea,Xi),jr.b=Xi,si=Bn=_s(li,1,0,En,jr.K)){var Hi,wa=li,Wi=jr,Es=1<<(8>>Wi.b),Rs=W(Es);if(Rs==null)si=0;else{var vs=Wi.K[0],qa=Wi.w;for(Rs[0]=Wi.K[0][0],Hi=1;Hi<1*wa;++Hi)Rs[Hi]=tn(vs[qa+Hi],Rs[Hi-1]);for(;Hi<4*Es;++Hi)Rs[Hi]=0;Wi.K[0]=null,Wi.K[0]=Rs,si=1}}Bn=si;break;case 2:break;default:c(0)}bt=Bn}}if(gt=gt[0],Ct=Ct[0],bt&&Qt(Nt,1)&&!(bt=1<=(wr=Qt(Nt,4))&&11>=wr)){Ue.a=3;break e}var Qs;if(Qs=bt)t:{var Ts,Za,So,uu=Ue,nl=gt,cu=Ct,uo=wr,Eu=me,Cu=uu.m,ml=uu.s,Nl=[null],eu=1,Nu=0,yc=Ms[uo];r:for(;;){if(Eu&&Qt(Cu,1)){var gl=Qt(Cu,3)+2,Bc=fi(nl,gl),Uc=fi(cu,gl),$c=Bc*Uc;if(!_s(Bc,Uc,0,uu,Nl))break r;for(Nl=Nl[0],ml.xc=gl,Ts=0;Ts<$c;++Ts){var Dc=Nl[Ts]>>8&65535;Nl[Ts]=Dc,Dc>=eu&&(eu=Dc+1)}}if(Cu.h)break r;for(Za=0;5>Za;++Za){var Wo=Is[Za];!Za&&0<uo&&(Wo+=1<<uo),Nu<Wo&&(Nu=Wo)}var wA=ge(eu*yc,nr),FA=eu,DA=ge(FA,ve);if(DA==null)var sA=null;else c(65536>=FA),sA=DA;var Yc=W(Nu);if(sA==null||Yc==null||wA==null){uu.a=1;break r}var oA=wA;for(Ts=So=0;Ts<eu;++Ts){var tc=sA[Ts],Kc=tc.G,zc=tc.H,LA=0,lA=1,RA=0;for(Za=0;5>Za;++Za){Wo=Is[Za],Kc[Za]=oA,zc[Za]=So,!Za&&0<uo&&(Wo+=1<<uo);i:{var uA,xA=Wo,cA=uu,Xc=Yc,WA=oA,VA=So,EA=0,Lc=cA.m,YA=Qt(Lc,1);if(ne(Xc,0,0,xA),YA){var XA=Qt(Lc,1)+1,JA=Qt(Lc,1),OA=Qt(Lc,JA==0?1:8);Xc[OA]=1,XA==2&&(Xc[OA=Qt(Lc,8)]=1);var AA=1}else{var PA=W(19),NA=Qt(Lc,4)+4;if(19<NA){cA.a=3;var dA=0;break i}for(uA=0;uA<NA;++uA)PA[ha[uA]]=Qt(Lc,3);var CA=void 0,Jc=void 0,kA=cA,qA=PA,fA=xA,MA=Xc,_A=0,Rc=kA.m,UA=8,QA=ge(128,nr);n:for(;zt(QA,0,7,qA,19);){if(Qt(Rc,1)){var e0=2+2*Qt(Rc,3);if((CA=2+Qt(Rc,e0))>fA)break n}else CA=fA;for(Jc=0;Jc<fA&&CA--;){er(Rc);var jA=QA[0+(127&At(Rc))];Ft(Rc,Rc.u+jA.g);var Gc=jA.value;if(16>Gc)MA[Jc++]=Gc,Gc!=0&&(UA=Gc);else{var t0=Gc==16,HA=Gc-16,r0=Ra[HA],$A=Qt(Rc,Ka[HA])+r0;if(Jc+$A>fA)break n;for(var n0=t0?UA:0;0<$A--;)MA[Jc++]=n0}}_A=1;break n}_A||(kA.a=3),AA=_A}(AA=AA&&!Lc.h)&&(EA=zt(WA,VA,8,Xc,xA)),AA&&EA!=0?dA=EA:(cA.a=3,dA=0)}if(dA==0)break r;if(lA&&zs[Za]==1&&(lA=oA[So].g==0),LA+=oA[So].g,So+=dA,3>=Za){var qc,BA=Yc[0];for(qc=1;qc<Wo;++qc)Yc[qc]>BA&&(BA=Yc[qc]);RA+=BA}}if(tc.nd=lA,tc.Qb=0,lA&&(tc.qb=(Kc[3][zc[3]+0].value<<24|Kc[1][zc[1]+0].value<<16|Kc[2][zc[2]+0].value)>>>0,LA==0&&256>Kc[0][zc[0]+0].value&&(tc.Qb=1,tc.qb+=Kc[0][zc[0]+0].value<<8)),tc.jc=!tc.Qb&&6>RA,tc.jc){var hA,Sc=tc;for(hA=0;hA<qo;++hA){var Oc=hA,Pc=Sc.pd[Oc],pA=Sc.G[0][Sc.H[0]+Oc];256<=pA.value?(Pc.g=pA.g+256,Pc.value=pA.value):(Pc.g=0,Pc.value=0,Oc>>=qn(pA,8,Pc),Oc>>=qn(Sc.G[1][Sc.H[1]+Oc],16,Pc),Oc>>=qn(Sc.G[2][Sc.H[2]+Oc],0,Pc),qn(Sc.G[3][Sc.H[3]+Oc],24,Pc))}}}ml.vc=Nl,ml.Wb=eu,ml.Ya=sA,ml.yc=wA,Qs=1;break t}Qs=0}if(!(bt=Qs)){Ue.a=3;break e}if(0<wr){if(Zt.ua=1<<wr,!ni(Zt.Wa,wr)){Ue.a=1,bt=0;break e}}else Zt.ua=0;var SA=Ue,KA=gt,i0=Ct,IA=SA.s,TA=IA.xc;if(SA.c=KA,SA.i=i0,IA.md=fi(KA,TA),IA.wc=TA==0?-1:(1<<TA)-1,me){Ue.xb=mA;break e}if((yr=W(gt*Ct))==null){Ue.a=1,bt=0;break e}bt=(bt=os(Ue,yr,0,gt,Ct,Ct,null))&&!Nt.h;break e}return bt?(at!=null?at[0]=yr:(c(yr==null),c(me)),Ue.$=0,me||ca(Zt)):ca(Zt),bt}function Js(u,P){var me=u.c*u.i,Ue=me+P+16*P;return c(u.c<=P),u.V=W(Ue),u.V==null?(u.Ta=null,u.Ua=0,u.a=1,0):(u.Ta=u.V,u.Ua=u.Ba+me+P,1)}function Ws(u,P){var me=u.C,Ue=P-me,at=u.V,bt=u.Ba+u.c*me;for(c(P<=u.l.o);0<Ue;){var gt=16<Ue?16:Ue,Ct=u.l.ma,Nt=u.l.width,Zt=Nt*gt,yr=Ct.ca,wr=Ct.tb+Nt*me,Xr=u.Ta,Rr=u.Ua;Fs(u,gt,at,bt),de(Xr,Rr,yr,wr,Zt),ma(Ct,me,me+gt,yr,wr,Nt),Ue-=gt,at+=gt*u.c,me+=gt}c(me==P),u.C=u.Ma=P}function Vs(){this.ub=this.yd=this.td=this.Rb=0}function Vo(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function $o(){this.Fb=this.Bb=this.Cb=0,this.Zb=W(4),this.Lb=W(4)}function Co(){this.Yb=function(){var u=[];return function P(me,Ue,at){for(var bt=at[Ue],gt=0;gt<bt&&(me.push(at.length>Ue+1?[]:0),!(at.length<Ue+1));gt++)P(me[gt],Ue+1,at)}(u,0,[3,11]),u}()}function ho(){this.jb=W(3),this.Wc=De([4,8],Co),this.Xc=De([4,17],Co)}function to(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new W(4),this.od=new W(4)}function Ds(){this.ld=this.La=this.dd=this.tc=0}function ls(){this.Na=this.la=0}function Al(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Cl(){this.ad=W(384),this.Za=0,this.Ob=W(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function sl(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ds),this.Y=0,this.ya=Array(new Cl),this.aa=0,this.l=new Wl}function Yo(){this.y=W(16),this.f=W(8),this.ea=W(8)}function _u(){this.cb=this.a=0,this.sc="",this.m=new lr,this.Od=new Vs,this.Kc=new Vo,this.ed=new to,this.Qa=new $o,this.Ic=this.$c=this.Aa=0,this.D=new sl,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ge(8,lr),this.ia=0,this.pb=ge(4,Al),this.Pa=new ho,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Yo),this.Hd=0,this.rb=Array(new ls),this.sb=0,this.wa=Array(new Ds),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 Cl),this.L=this.aa=0,this.gd=De([4,2],Ds),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 Wl(){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 za(){var u=new _u;return u!=null&&(u.a=0,u.sc="OK",u.cb=0,u.Xb=0,Ls||(Ls=yo)),u}function Ta(u,P,me){return u.a==0&&(u.a=P,u.sc=me,u.cb=0),0}function oo(u,P,me){return 3<=me&&u[P+0]==157&&u[P+1]==1&&u[P+2]==42}function Bs(u,P){if(u==null)return 0;if(u.a=0,u.sc="OK",P==null)return Ta(u,2,"null VP8Io passed to VP8GetHeaders()");var me=P.data,Ue=P.w,at=P.ha;if(4>at)return Ta(u,7,"Truncated header.");var bt=me[Ue+0]|me[Ue+1]<<8|me[Ue+2]<<16,gt=u.Od;if(gt.Rb=!(1&bt),gt.td=bt>>1&7,gt.yd=bt>>4&1,gt.ub=bt>>5,3<gt.td)return Ta(u,3,"Incorrect keyframe parameters.");if(!gt.yd)return Ta(u,4,"Frame not displayable.");Ue+=3,at-=3;var Ct=u.Kc;if(gt.Rb){if(7>at)return Ta(u,7,"cannot parse picture header");if(!oo(me,Ue,at))return Ta(u,3,"Bad code word");Ct.c=16383&(me[Ue+4]<<8|me[Ue+3]),Ct.Td=me[Ue+4]>>6,Ct.i=16383&(me[Ue+6]<<8|me[Ue+5]),Ct.Ud=me[Ue+6]>>6,Ue+=7,at-=7,u.za=Ct.c+15>>4,u.Ub=Ct.i+15>>4,P.width=Ct.c,P.height=Ct.i,P.Da=0,P.j=0,P.v=0,P.va=P.width,P.o=P.height,P.da=0,P.ib=P.width,P.hb=P.height,P.U=P.width,P.T=P.height,ne((bt=u.Pa).jb,0,255,bt.jb.length),c((bt=u.Qa)!=null),bt.Cb=0,bt.Bb=0,bt.Fb=1,ne(bt.Zb,0,0,bt.Zb.length),ne(bt.Lb,0,0,bt.Lb)}if(gt.ub>at)return Ta(u,7,"bad partition length");Pe(bt=u.m,me,Ue,gt.ub),Ue+=gt.ub,at-=gt.ub,gt.Rb&&(Ct.Ld=ur(bt),Ct.Kd=ur(bt)),Ct=u.Qa;var Nt,Zt=u.Pa;if(c(bt!=null),c(Ct!=null),Ct.Cb=ur(bt),Ct.Cb){if(Ct.Bb=ur(bt),ur(bt)){for(Ct.Fb=ur(bt),Nt=0;4>Nt;++Nt)Ct.Zb[Nt]=ur(bt)?lt(bt,7):0;for(Nt=0;4>Nt;++Nt)Ct.Lb[Nt]=ur(bt)?lt(bt,6):0}if(Ct.Bb)for(Nt=0;3>Nt;++Nt)Zt.jb[Nt]=ur(bt)?Xe(bt,8):255}else Ct.Bb=0;if(bt.Ka)return Ta(u,3,"cannot parse segment header");if((Ct=u.ed).zd=ur(bt),Ct.Tb=Xe(bt,6),Ct.wb=Xe(bt,3),Ct.Pc=ur(bt),Ct.Pc&&ur(bt)){for(Zt=0;4>Zt;++Zt)ur(bt)&&(Ct.vd[Zt]=lt(bt,6));for(Zt=0;4>Zt;++Zt)ur(bt)&&(Ct.od[Zt]=lt(bt,6))}if(u.L=Ct.Tb==0?0:Ct.zd?1:2,bt.Ka)return Ta(u,3,"cannot parse filter header");var yr=at;if(at=Nt=Ue,Ue=Nt+yr,Ct=yr,u.Xb=(1<<Xe(u.m,2))-1,yr<3*(Zt=u.Xb))me=7;else{for(Nt+=3*Zt,Ct-=3*Zt,yr=0;yr<Zt;++yr){var wr=me[at+0]|me[at+1]<<8|me[at+2]<<16;wr>Ct&&(wr=Ct),Pe(u.Jc[+yr],me,Nt,wr),Nt+=wr,Ct-=wr,at+=3}Pe(u.Jc[+Zt],me,Nt,Ct),me=Nt<Ue?0:5}if(me!=0)return Ta(u,me,"cannot parse partitions");for(me=Xe(Nt=u.m,7),at=ur(Nt)?lt(Nt,4):0,Ue=ur(Nt)?lt(Nt,4):0,Ct=ur(Nt)?lt(Nt,4):0,Zt=ur(Nt)?lt(Nt,4):0,Nt=ur(Nt)?lt(Nt,4):0,yr=u.Qa,wr=0;4>wr;++wr){if(yr.Cb){var Xr=yr.Zb[wr];yr.Fb||(Xr+=me)}else{if(0<wr){u.pb[wr]=u.pb[0];continue}Xr=me}var Rr=u.pb[wr];Rr.Sc[0]=Us[Rl(Xr+at,127)],Rr.Sc[1]=lo[Rl(Xr+0,127)],Rr.Eb[0]=2*Us[Rl(Xr+Ue,127)],Rr.Eb[1]=101581*lo[Rl(Xr+Ct,127)]>>16,8>Rr.Eb[1]&&(Rr.Eb[1]=8),Rr.Qc[0]=Us[Rl(Xr+Zt,117)],Rr.Qc[1]=lo[Rl(Xr+Nt,127)],Rr.lc=Xr+Nt}if(!gt.Rb)return Ta(u,4,"Not a key frame.");for(ur(bt),gt=u.Pa,me=0;4>me;++me){for(at=0;8>at;++at)for(Ue=0;3>Ue;++Ue)for(Ct=0;11>Ct;++Ct)Zt=St(bt,Fc[me][at][Ue][Ct])?Xe(bt,8):kc[me][at][Ue][Ct],gt.Wc[me][at].Yb[Ue][Ct]=Zt;for(at=0;17>at;++at)gt.Xc[me][at]=gt.Wc[me][Qc[at]]}return u.kc=ur(bt),u.kc&&(u.Bd=Xe(bt,8)),u.cb=1}function yo(u,P,me,Ue,at,bt,gt){var Ct=P[at].Yb[me];for(me=0;16>at;++at){if(!St(u,Ct[me+0]))return at;for(;!St(u,Ct[me+1]);)if(Ct=P[++at].Yb[0],me=0,at==16)return 16;var Nt=P[at+1].Yb;if(St(u,Ct[me+2])){var Zt=u,yr=0;if(St(Zt,(Xr=Ct)[(wr=me)+3]))if(St(Zt,Xr[wr+6])){for(Ct=0,wr=2*(yr=St(Zt,Xr[wr+8]))+(Xr=St(Zt,Xr[wr+9+yr])),yr=0,Xr=Zo[wr];Xr[Ct];++Ct)yr+=yr+St(Zt,Xr[Ct]);yr+=3+(8<<wr)}else St(Zt,Xr[wr+7])?(yr=7+2*St(Zt,165),yr+=St(Zt,145)):yr=5+St(Zt,159);else yr=St(Zt,Xr[wr+4])?3+St(Zt,Xr[wr+5]):2;Ct=Nt[2]}else yr=1,Ct=Nt[1];Nt=gt+ul[at],0>(Zt=u).b&&or(Zt);var wr,Xr=Zt.b,Rr=(wr=Zt.Ca>>1)-(Zt.I>>Xr)>>31;--Zt.b,Zt.Ca+=Rr,Zt.Ca|=1,Zt.I-=(wr+1&Rr)<<Xr,bt[Nt]=((yr^Rr)-Rr)*Ue[(0<at)+0]}return 16}function _o(u){var P=u.rb[u.sb-1];P.la=0,P.Na=0,ne(u.zc,0,0,u.zc.length),u.ja=0}function Bo(u,P){if(u==null)return 0;if(P==null)return Ta(u,2,"NULL VP8Io parameter in VP8Decode().");if(!u.cb&&!Bs(u,P))return 0;if(c(u.cb),P.ac==null||P.ac(P)){P.ob&&(u.L=0);var me=ir[u.L];if(u.L==2?(u.yb=0,u.zb=0):(u.yb=P.v-me>>4,u.zb=P.j-me>>4,0>u.yb&&(u.yb=0),0>u.zb&&(u.zb=0)),u.Va=P.o+15+me>>4,u.Hb=P.va+15+me>>4,u.Hb>u.za&&(u.Hb=u.za),u.Va>u.Ub&&(u.Va=u.Ub),0<u.L){var Ue=u.ed;for(me=0;4>me;++me){var at;if(u.Qa.Cb){var bt=u.Qa.Lb[me];u.Qa.Fb||(bt+=Ue.Tb)}else bt=Ue.Tb;for(at=0;1>=at;++at){var gt=u.gd[me][at],Ct=bt;if(Ue.Pc&&(Ct+=Ue.vd[0],at&&(Ct+=Ue.od[0])),0<(Ct=0>Ct?0:63<Ct?63:Ct)){var Nt=Ct;0<Ue.wb&&(Nt=4<Ue.wb?Nt>>2:Nt>>1)>9-Ue.wb&&(Nt=9-Ue.wb),1>Nt&&(Nt=1),gt.dd=Nt,gt.tc=2*Ct+Nt,gt.ld=40<=Ct?2:15<=Ct?1:0}else gt.tc=0;gt.La=at}}}me=0}else Ta(u,6,"Frame setup failed"),me=u.a;if(me=me==0){if(me){u.$c=0,0<u.Aa||(u.Ic=Qr);e:{me=u.Ic,Ue=4*(Nt=u.za);var Zt=32*Nt,yr=Nt+1,wr=0<u.L?Nt*(0<u.Aa?2:1):0,Xr=(u.Aa==2?2:1)*Nt;if((gt=Ue+832+(at=3*(16*me+ir[u.L])/2*Zt)+(bt=u.Fa!=null&&0<u.Fa.length?u.Kc.c*u.Kc.i:0))!=gt)me=0;else{if(gt>u.Vb){if(u.Vb=0,u.Ec=W(gt),u.Fc=0,u.Ec==null){me=Ta(u,1,"no memory during frame initialization.");break e}u.Vb=gt}gt=u.Ec,Ct=u.Fc,u.Ac=gt,u.Bc=Ct,Ct+=Ue,u.Gd=ge(Zt,Yo),u.Hd=0,u.rb=ge(yr+1,ls),u.sb=1,u.wa=wr?ge(wr,Ds):null,u.Y=0,u.D.Nb=0,u.D.wa=u.wa,u.D.Y=u.Y,0<u.Aa&&(u.D.Y+=Nt),c(!0),u.oc=gt,u.pc=Ct,Ct+=832,u.ya=ge(Xr,Cl),u.aa=0,u.D.ya=u.ya,u.D.aa=u.aa,u.Aa==2&&(u.D.aa+=Nt),u.R=16*Nt,u.B=8*Nt,Nt=(Zt=ir[u.L])*u.R,Zt=Zt/2*u.B,u.sa=gt,u.ta=Ct+Nt,u.qa=u.sa,u.ra=u.ta+16*me*u.R+Zt,u.Ha=u.qa,u.Ia=u.ra+8*me*u.B+Zt,u.$c=0,Ct+=at,u.mb=bt?gt:null,u.nb=bt?Ct:null,c(Ct+bt<=u.Fc+u.Vb),_o(u),ne(u.Ac,u.Bc,0,Ue),me=1}}if(me){if(P.ka=0,P.y=u.sa,P.O=u.ta,P.f=u.qa,P.N=u.ra,P.ea=u.Ha,P.Vd=u.Ia,P.fa=u.R,P.Rc=u.B,P.F=null,P.J=0,!_t){for(me=-255;255>=me;++me)Re[255+me]=0>me?-me:me;for(me=-1020;1020>=me;++me)Ye[1020+me]=-128>me?-128:127<me?127:me;for(me=-112;112>=me;++me)Je[112+me]=-16>me?-16:15<me?15:me;for(me=-255;510>=me;++me)ct[255+me]=0>me?0:255<me?255:me;_t=1}Ju=Mu,wu=ac,qu=nu,Go=dl,Zl=iu,Ro=hu,pc=oc,Tc=Lu,_c=Nc,xu=wc,ll=hl,f=lc,e=uc,t=Ku,r=Du,i=fl,s=Fl,l=$u,pl[0]=ol,pl[1]=Uu,pl[2]=Bu,pl[3]=Su,pl[4]=Hu,pl[5]=Yl,pl[6]=Iu,pl[7]=vu,pl[8]=Sl,pl[9]=Tu,gc[0]=Po,gc[1]=Hl,gc[2]=Bl,gc[3]=mu,gc[4]=Do,gc[5]=ju,gc[6]=sc,ec[0]=Jo,ec[1]=Qu,ec[2]=Uo,ec[3]=cs,ec[4]=ka,ec[5]=bc,ec[6]=gs,me=1}else me=0}me&&(me=function(Rr,En){for(Rr.M=0;Rr.M<Rr.Va;++Rr.M){var Bn,Or=Rr.Jc[Rr.M&Rr.Xb],jr=Rr.m,Pn=Rr;for(Bn=0;Bn<Pn.za;++Bn){var si=jr,li=Pn,Xi=li.Ac,Hi=li.Bc+4*Bn,wa=li.zc,Wi=li.ya[li.aa+Bn];if(li.Qa.Bb?Wi.$b=St(si,li.Pa.jb[0])?2+St(si,li.Pa.jb[2]):St(si,li.Pa.jb[1]):Wi.$b=0,li.kc&&(Wi.Ad=St(si,li.Bd)),Wi.Za=!St(si,145)+0,Wi.Za){var Es=Wi.Ob,Rs=0;for(li=0;4>li;++li){var vs,qa=wa[0+li];for(vs=0;4>vs;++vs){qa=Zc[Xi[Hi+vs]][qa];for(var Qs=mc[St(si,qa[0])];0<Qs;)Qs=mc[2*Qs+St(si,qa[Qs])];qa=-Qs,Xi[Hi+vs]=qa}U(Es,Rs,Xi,Hi,4),Rs+=4,wa[0+li]=qa}}else qa=St(si,156)?St(si,128)?1:3:St(si,163)?2:0,Wi.Ob[0]=qa,ne(Xi,Hi,qa,4),ne(wa,0,qa,4);Wi.Dd=St(si,142)?St(si,114)?St(si,183)?1:3:2:0}if(Pn.m.Ka)return Ta(Rr,7,"Premature end-of-partition0 encountered.");for(;Rr.ja<Rr.za;++Rr.ja){if(Pn=Or,si=(jr=Rr).rb[jr.sb-1],Xi=jr.rb[jr.sb+jr.ja],Bn=jr.ya[jr.aa+jr.ja],Hi=jr.kc?Bn.Ad:0)si.la=Xi.la=0,Bn.Za||(si.Na=Xi.Na=0),Bn.Hc=0,Bn.Gc=0,Bn.ia=0;else{var Ts,Za;if(si=Xi,Xi=Pn,Hi=jr.Pa.Xc,wa=jr.ya[jr.aa+jr.ja],Wi=jr.pb[wa.$b],li=wa.ad,Es=0,Rs=jr.rb[jr.sb-1],qa=vs=0,ne(li,Es,0,384),wa.Za)var So=0,uu=Hi[3];else{Qs=W(16);var nl=si.Na+Rs.Na;if(nl=Ls(Xi,Hi[1],nl,Wi.Eb,0,Qs,0),si.Na=Rs.Na=(0<nl)+0,1<nl)Ju(Qs,0,li,Es);else{var cu=Qs[0]+3>>3;for(Qs=0;256>Qs;Qs+=16)li[Es+Qs]=cu}So=1,uu=Hi[0]}var uo=15&si.la,Eu=15&Rs.la;for(Qs=0;4>Qs;++Qs){var Cu=1&Eu;for(cu=Za=0;4>cu;++cu)uo=uo>>1|(Cu=(nl=Ls(Xi,uu,nl=Cu+(1&uo),Wi.Sc,So,li,Es))>So)<<7,Za=Za<<2|(3<nl?3:1<nl?2:li[Es+0]!=0),Es+=16;uo>>=4,Eu=Eu>>1|Cu<<7,vs=(vs<<8|Za)>>>0}for(uu=uo,So=Eu>>4,Ts=0;4>Ts;Ts+=2){for(Za=0,uo=si.la>>4+Ts,Eu=Rs.la>>4+Ts,Qs=0;2>Qs;++Qs){for(Cu=1&Eu,cu=0;2>cu;++cu)nl=Cu+(1&uo),uo=uo>>1|(Cu=0<(nl=Ls(Xi,Hi[2],nl,Wi.Qc,0,li,Es)))<<3,Za=Za<<2|(3<nl?3:1<nl?2:li[Es+0]!=0),Es+=16;uo>>=2,Eu=Eu>>1|Cu<<5}qa|=Za<<4*Ts,uu|=uo<<4<<Ts,So|=(240&Eu)<<Ts}si.la=uu,Rs.la=So,wa.Hc=vs,wa.Gc=qa,wa.ia=43690&qa?0:Wi.ia,Hi=!(vs|qa)}if(0<jr.L&&(jr.wa[jr.Y+jr.ja]=jr.gd[Bn.$b][Bn.Za],jr.wa[jr.Y+jr.ja].La|=!Hi),Pn.Ka)return Ta(Rr,7,"Premature end-of-file encountered.")}if(_o(Rr),jr=En,Pn=1,Bn=(Or=Rr).D,si=0<Or.L&&Or.M>=Or.zb&&Or.M<=Or.Va,Or.Aa==0)e:{if(Bn.M=Or.M,Bn.uc=si,Wu(Or,Bn),Pn=1,Bn=(Za=Or.D).Nb,si=(qa=ir[Or.L])*Or.R,Xi=qa/2*Or.B,Qs=16*Bn*Or.R,cu=8*Bn*Or.B,Hi=Or.sa,wa=Or.ta-si+Qs,Wi=Or.qa,li=Or.ra-Xi+cu,Es=Or.Ha,Rs=Or.Ia-Xi+cu,Eu=(uo=Za.M)==0,vs=uo>=Or.Va-1,Or.Aa==2&&Wu(Or,Za),Za.uc)for(Cu=(nl=Or).D.M,c(nl.D.uc),Za=nl.yb;Za<nl.Hb;++Za){So=Za,uu=Cu;var ml=(Nl=(Wo=nl).D).Nb;Ts=Wo.R;var Nl=Nl.wa[Nl.Y+So],eu=Wo.sa,Nu=Wo.ta+16*ml*Ts+16*So,yc=Nl.dd,gl=Nl.tc;if(gl!=0)if(c(3<=gl),Wo.L==1)0<So&&i(eu,Nu,Ts,gl+4),Nl.La&&l(eu,Nu,Ts,gl),0<uu&&r(eu,Nu,Ts,gl+4),Nl.La&&s(eu,Nu,Ts,gl);else{var Bc=Wo.B,Uc=Wo.qa,$c=Wo.ra+8*ml*Bc+8*So,Dc=Wo.Ha,Wo=Wo.Ia+8*ml*Bc+8*So;ml=Nl.ld,0<So&&(Tc(eu,Nu,Ts,gl+4,yc,ml),xu(Uc,$c,Dc,Wo,Bc,gl+4,yc,ml)),Nl.La&&(f(eu,Nu,Ts,gl,yc,ml),t(Uc,$c,Dc,Wo,Bc,gl,yc,ml)),0<uu&&(pc(eu,Nu,Ts,gl+4,yc,ml),_c(Uc,$c,Dc,Wo,Bc,gl+4,yc,ml)),Nl.La&&(ll(eu,Nu,Ts,gl,yc,ml),e(Uc,$c,Dc,Wo,Bc,gl,yc,ml))}}if(Or.ia&&alert("todo:DitherRow"),jr.put!=null){if(Za=16*uo,uo=16*(uo+1),Eu?(jr.y=Or.sa,jr.O=Or.ta+Qs,jr.f=Or.qa,jr.N=Or.ra+cu,jr.ea=Or.Ha,jr.W=Or.Ia+cu):(Za-=qa,jr.y=Hi,jr.O=wa,jr.f=Wi,jr.N=li,jr.ea=Es,jr.W=Rs),vs||(uo-=qa),uo>jr.o&&(uo=jr.o),jr.F=null,jr.J=null,Or.Fa!=null&&0<Or.Fa.length&&Za<uo&&(jr.J=Gu(Or,jr,Za,uo-Za),jr.F=Or.mb,jr.F==null&&jr.F.length==0)){Pn=Ta(Or,3,"Could not decode alpha data.");break e}Za<jr.j&&(qa=jr.j-Za,Za=jr.j,c(!(1&qa)),jr.O+=Or.R*qa,jr.N+=Or.B*(qa>>1),jr.W+=Or.B*(qa>>1),jr.F!=null&&(jr.J+=jr.width*qa)),Za<uo&&(jr.O+=jr.v,jr.N+=jr.v>>1,jr.W+=jr.v>>1,jr.F!=null&&(jr.J+=jr.v),jr.ka=Za-jr.j,jr.U=jr.va-jr.v,jr.T=uo-Za,Pn=jr.put(jr))}Bn+1!=Or.Ic||vs||(U(Or.sa,Or.ta-si,Hi,wa+16*Or.R,si),U(Or.qa,Or.ra-Xi,Wi,li+8*Or.B,Xi),U(Or.Ha,Or.Ia-Xi,Es,Rs+8*Or.B,Xi))}if(!Pn)return Ta(Rr,6,"Output aborted.")}return 1}(u,P)),P.bc!=null&&P.bc(P),me&=1}return me?(u.cb=0,me):0}function Fo(u,P,me,Ue,at){at=u[P+me+32*Ue]+(at>>3),u[P+me+32*Ue]=-256&at?0>at?0:255:at}function _l(u,P,me,Ue,at,bt){Fo(u,P,0,me,Ue+at),Fo(u,P,1,me,Ue+bt),Fo(u,P,2,me,Ue-bt),Fo(u,P,3,me,Ue-at)}function Ko(u){return(20091*u>>16)+u}function Vl(u,P,me,Ue){var at,bt=0,gt=W(16);for(at=0;4>at;++at){var Ct=u[P+0]+u[P+8],Nt=u[P+0]-u[P+8],Zt=(35468*u[P+4]>>16)-Ko(u[P+12]),yr=Ko(u[P+4])+(35468*u[P+12]>>16);gt[bt+0]=Ct+yr,gt[bt+1]=Nt+Zt,gt[bt+2]=Nt-Zt,gt[bt+3]=Ct-yr,bt+=4,P++}for(at=bt=0;4>at;++at)Ct=(u=gt[bt+0]+4)+gt[bt+8],Nt=u-gt[bt+8],Zt=(35468*gt[bt+4]>>16)-Ko(gt[bt+12]),Fo(me,Ue,0,0,Ct+(yr=Ko(gt[bt+4])+(35468*gt[bt+12]>>16))),Fo(me,Ue,1,0,Nt+Zt),Fo(me,Ue,2,0,Nt-Zt),Fo(me,Ue,3,0,Ct-yr),bt++,Ue+=32}function hu(u,P,me,Ue){var at=u[P+0]+4,bt=35468*u[P+4]>>16,gt=Ko(u[P+4]),Ct=35468*u[P+1]>>16;_l(me,Ue,0,at+gt,u=Ko(u[P+1]),Ct),_l(me,Ue,1,at+bt,u,Ct),_l(me,Ue,2,at-bt,u,Ct),_l(me,Ue,3,at-gt,u,Ct)}function ac(u,P,me,Ue,at){Vl(u,P,me,Ue),at&&Vl(u,P+16,me,Ue+4)}function nu(u,P,me,Ue){wu(u,P+0,me,Ue,1),wu(u,P+32,me,Ue+128,1)}function dl(u,P,me,Ue){var at;for(u=u[P+0]+4,at=0;4>at;++at)for(P=0;4>P;++P)Fo(me,Ue,P,at,u)}function iu(u,P,me,Ue){u[P+0]&&Go(u,P+0,me,Ue),u[P+16]&&Go(u,P+16,me,Ue+4),u[P+32]&&Go(u,P+32,me,Ue+128),u[P+48]&&Go(u,P+48,me,Ue+128+4)}function Mu(u,P,me,Ue){var at,bt=W(16);for(at=0;4>at;++at){var gt=u[P+0+at]+u[P+12+at],Ct=u[P+4+at]+u[P+8+at],Nt=u[P+4+at]-u[P+8+at],Zt=u[P+0+at]-u[P+12+at];bt[0+at]=gt+Ct,bt[8+at]=gt-Ct,bt[4+at]=Zt+Nt,bt[12+at]=Zt-Nt}for(at=0;4>at;++at)gt=(u=bt[0+4*at]+3)+bt[3+4*at],Ct=bt[1+4*at]+bt[2+4*at],Nt=bt[1+4*at]-bt[2+4*at],Zt=u-bt[3+4*at],me[Ue+0]=gt+Ct>>3,me[Ue+16]=Zt+Nt>>3,me[Ue+32]=gt-Ct>>3,me[Ue+48]=Zt-Nt>>3,Ue+=64}function pu(u,P,me){var Ue,at=P-32,bt=Tr,gt=255-u[at-1];for(Ue=0;Ue<me;++Ue){var Ct,Nt=bt,Zt=gt+u[P-1];for(Ct=0;Ct<me;++Ct)u[P+Ct]=Nt[Zt+u[at+Ct]];P+=32}}function Uu(u,P){pu(u,P,4)}function Qu(u,P){pu(u,P,8)}function Hl(u,P){pu(u,P,16)}function Bl(u,P){var me;for(me=0;16>me;++me)U(u,P+32*me,u,P-32,16)}function mu(u,P){var me;for(me=16;0<me;--me)ne(u,P,u[P-1],16),P+=32}function gu(u,P,me){var Ue;for(Ue=0;16>Ue;++Ue)ne(P,me+32*Ue,u,16)}function Po(u,P){var me,Ue=16;for(me=0;16>me;++me)Ue+=u[P-1+32*me]+u[P+me-32];gu(Ue>>5,u,P)}function Do(u,P){var me,Ue=8;for(me=0;16>me;++me)Ue+=u[P-1+32*me];gu(Ue>>4,u,P)}function ju(u,P){var me,Ue=8;for(me=0;16>me;++me)Ue+=u[P+me-32];gu(Ue>>4,u,P)}function sc(u,P){gu(128,u,P)}function Ma(u,P,me){return u+2*P+me+2>>2}function Bu(u,P){var me,Ue=P-32;for(Ue=new Uint8Array([Ma(u[Ue-1],u[Ue+0],u[Ue+1]),Ma(u[Ue+0],u[Ue+1],u[Ue+2]),Ma(u[Ue+1],u[Ue+2],u[Ue+3]),Ma(u[Ue+2],u[Ue+3],u[Ue+4])]),me=0;4>me;++me)U(u,P+32*me,Ue,0,Ue.length)}function Su(u,P){var me=u[P-1],Ue=u[P-1+32],at=u[P-1+64],bt=u[P-1+96];Gr(u,P+0,16843009*Ma(u[P-1-32],me,Ue)),Gr(u,P+32,16843009*Ma(me,Ue,at)),Gr(u,P+64,16843009*Ma(Ue,at,bt)),Gr(u,P+96,16843009*Ma(at,bt,bt))}function ol(u,P){var me,Ue=4;for(me=0;4>me;++me)Ue+=u[P+me-32]+u[P-1+32*me];for(Ue>>=3,me=0;4>me;++me)ne(u,P+32*me,Ue,4)}function Hu(u,P){var me=u[P-1+0],Ue=u[P-1+32],at=u[P-1+64],bt=u[P-1-32],gt=u[P+0-32],Ct=u[P+1-32],Nt=u[P+2-32],Zt=u[P+3-32];u[P+0+96]=Ma(Ue,at,u[P-1+96]),u[P+1+96]=u[P+0+64]=Ma(me,Ue,at),u[P+2+96]=u[P+1+64]=u[P+0+32]=Ma(bt,me,Ue),u[P+3+96]=u[P+2+64]=u[P+1+32]=u[P+0+0]=Ma(gt,bt,me),u[P+3+64]=u[P+2+32]=u[P+1+0]=Ma(Ct,gt,bt),u[P+3+32]=u[P+2+0]=Ma(Nt,Ct,gt),u[P+3+0]=Ma(Zt,Nt,Ct)}function Iu(u,P){var me=u[P+1-32],Ue=u[P+2-32],at=u[P+3-32],bt=u[P+4-32],gt=u[P+5-32],Ct=u[P+6-32],Nt=u[P+7-32];u[P+0+0]=Ma(u[P+0-32],me,Ue),u[P+1+0]=u[P+0+32]=Ma(me,Ue,at),u[P+2+0]=u[P+1+32]=u[P+0+64]=Ma(Ue,at,bt),u[P+3+0]=u[P+2+32]=u[P+1+64]=u[P+0+96]=Ma(at,bt,gt),u[P+3+32]=u[P+2+64]=u[P+1+96]=Ma(bt,gt,Ct),u[P+3+64]=u[P+2+96]=Ma(gt,Ct,Nt),u[P+3+96]=Ma(Ct,Nt,Nt)}function Yl(u,P){var me=u[P-1+0],Ue=u[P-1+32],at=u[P-1+64],bt=u[P-1-32],gt=u[P+0-32],Ct=u[P+1-32],Nt=u[P+2-32],Zt=u[P+3-32];u[P+0+0]=u[P+1+64]=bt+gt+1>>1,u[P+1+0]=u[P+2+64]=gt+Ct+1>>1,u[P+2+0]=u[P+3+64]=Ct+Nt+1>>1,u[P+3+0]=Nt+Zt+1>>1,u[P+0+96]=Ma(at,Ue,me),u[P+0+64]=Ma(Ue,me,bt),u[P+0+32]=u[P+1+96]=Ma(me,bt,gt),u[P+1+32]=u[P+2+96]=Ma(bt,gt,Ct),u[P+2+32]=u[P+3+96]=Ma(gt,Ct,Nt),u[P+3+32]=Ma(Ct,Nt,Zt)}function vu(u,P){var me=u[P+0-32],Ue=u[P+1-32],at=u[P+2-32],bt=u[P+3-32],gt=u[P+4-32],Ct=u[P+5-32],Nt=u[P+6-32],Zt=u[P+7-32];u[P+0+0]=me+Ue+1>>1,u[P+1+0]=u[P+0+64]=Ue+at+1>>1,u[P+2+0]=u[P+1+64]=at+bt+1>>1,u[P+3+0]=u[P+2+64]=bt+gt+1>>1,u[P+0+32]=Ma(me,Ue,at),u[P+1+32]=u[P+0+96]=Ma(Ue,at,bt),u[P+2+32]=u[P+1+96]=Ma(at,bt,gt),u[P+3+32]=u[P+2+96]=Ma(bt,gt,Ct),u[P+3+64]=Ma(gt,Ct,Nt),u[P+3+96]=Ma(Ct,Nt,Zt)}function Tu(u,P){var me=u[P-1+0],Ue=u[P-1+32],at=u[P-1+64],bt=u[P-1+96];u[P+0+0]=me+Ue+1>>1,u[P+2+0]=u[P+0+32]=Ue+at+1>>1,u[P+2+32]=u[P+0+64]=at+bt+1>>1,u[P+1+0]=Ma(me,Ue,at),u[P+3+0]=u[P+1+32]=Ma(Ue,at,bt),u[P+3+32]=u[P+1+64]=Ma(at,bt,bt),u[P+3+64]=u[P+2+64]=u[P+0+96]=u[P+1+96]=u[P+2+96]=u[P+3+96]=bt}function Sl(u,P){var me=u[P-1+0],Ue=u[P-1+32],at=u[P-1+64],bt=u[P-1+96],gt=u[P-1-32],Ct=u[P+0-32],Nt=u[P+1-32],Zt=u[P+2-32];u[P+0+0]=u[P+2+32]=me+gt+1>>1,u[P+0+32]=u[P+2+64]=Ue+me+1>>1,u[P+0+64]=u[P+2+96]=at+Ue+1>>1,u[P+0+96]=bt+at+1>>1,u[P+3+0]=Ma(Ct,Nt,Zt),u[P+2+0]=Ma(gt,Ct,Nt),u[P+1+0]=u[P+3+32]=Ma(me,gt,Ct),u[P+1+32]=u[P+3+64]=Ma(Ue,me,gt),u[P+1+64]=u[P+3+96]=Ma(at,Ue,me),u[P+1+96]=Ma(bt,at,Ue)}function Uo(u,P){var me;for(me=0;8>me;++me)U(u,P+32*me,u,P-32,8)}function cs(u,P){var me;for(me=0;8>me;++me)ne(u,P,u[P-1],8),P+=32}function Xo(u,P,me){var Ue;for(Ue=0;8>Ue;++Ue)ne(P,me+32*Ue,u,8)}function Jo(u,P){var me,Ue=8;for(me=0;8>me;++me)Ue+=u[P+me-32]+u[P-1+32*me];Xo(Ue>>4,u,P)}function bc(u,P){var me,Ue=4;for(me=0;8>me;++me)Ue+=u[P+me-32];Xo(Ue>>3,u,P)}function ka(u,P){var me,Ue=4;for(me=0;8>me;++me)Ue+=u[P-1+32*me];Xo(Ue>>3,u,P)}function gs(u,P){Xo(128,u,P)}function Qo(u,P,me){var Ue=u[P-me],at=u[P+0],bt=3*(at-Ue)+Dt[1020+u[P-2*me]-u[P+me]],gt=pr[112+(bt+4>>3)];u[P-me]=Tr[255+Ue+pr[112+(bt+3>>3)]],u[P+0]=Tr[255+at-gt]}function Il(u,P,me,Ue){var at=u[P+0],bt=u[P+me];return Lr[255+u[P-2*me]-u[P-me]]>Ue||Lr[255+bt-at]>Ue}function Tl(u,P,me,Ue){return 4*Lr[255+u[P-me]-u[P+0]]+Lr[255+u[P-2*me]-u[P+me]]<=Ue}function Fu(u,P,me,Ue,at){var bt=u[P-3*me],gt=u[P-2*me],Ct=u[P-me],Nt=u[P+0],Zt=u[P+me],yr=u[P+2*me],wr=u[P+3*me];return 4*Lr[255+Ct-Nt]+Lr[255+gt-Zt]>Ue?0:Lr[255+u[P-4*me]-bt]<=at&&Lr[255+bt-gt]<=at&&Lr[255+gt-Ct]<=at&&Lr[255+wr-yr]<=at&&Lr[255+yr-Zt]<=at&&Lr[255+Zt-Nt]<=at}function Du(u,P,me,Ue){var at=2*Ue+1;for(Ue=0;16>Ue;++Ue)Tl(u,P+Ue,me,at)&&Qo(u,P+Ue,me)}function fl(u,P,me,Ue){var at=2*Ue+1;for(Ue=0;16>Ue;++Ue)Tl(u,P+Ue*me,1,at)&&Qo(u,P+Ue*me,1)}function Fl(u,P,me,Ue){var at;for(at=3;0<at;--at)Du(u,P+=4*me,me,Ue)}function $u(u,P,me,Ue){var at;for(at=3;0<at;--at)fl(u,P+=4,me,Ue)}function yu(u,P,me,Ue,at,bt,gt,Ct){for(bt=2*bt+1;0<at--;){if(Fu(u,P,me,bt,gt))if(Il(u,P,me,Ct))Qo(u,P,me);else{var Nt=u,Zt=P,yr=me,wr=Nt[Zt-2*yr],Xr=Nt[Zt-yr],Rr=Nt[Zt+0],En=Nt[Zt+yr],Bn=Nt[Zt+2*yr],Or=27*(Pn=Dt[1020+3*(Rr-Xr)+Dt[1020+wr-En]])+63>>7,jr=18*Pn+63>>7,Pn=9*Pn+63>>7;Nt[Zt-3*yr]=Tr[255+Nt[Zt-3*yr]+Pn],Nt[Zt-2*yr]=Tr[255+wr+jr],Nt[Zt-yr]=Tr[255+Xr+Or],Nt[Zt+0]=Tr[255+Rr-Or],Nt[Zt+yr]=Tr[255+En-jr],Nt[Zt+2*yr]=Tr[255+Bn-Pn]}P+=Ue}}function $l(u,P,me,Ue,at,bt,gt,Ct){for(bt=2*bt+1;0<at--;){if(Fu(u,P,me,bt,gt))if(Il(u,P,me,Ct))Qo(u,P,me);else{var Nt=u,Zt=P,yr=me,wr=Nt[Zt-yr],Xr=Nt[Zt+0],Rr=Nt[Zt+yr],En=pr[112+((Bn=3*(Xr-wr))+4>>3)],Bn=pr[112+(Bn+3>>3)],Or=En+1>>1;Nt[Zt-2*yr]=Tr[255+Nt[Zt-2*yr]+Or],Nt[Zt-yr]=Tr[255+wr+Bn],Nt[Zt+0]=Tr[255+Xr-En],Nt[Zt+yr]=Tr[255+Rr-Or]}P+=Ue}}function oc(u,P,me,Ue,at,bt){yu(u,P,me,1,16,Ue,at,bt)}function Lu(u,P,me,Ue,at,bt){yu(u,P,1,me,16,Ue,at,bt)}function hl(u,P,me,Ue,at,bt){var gt;for(gt=3;0<gt;--gt)$l(u,P+=4*me,me,1,16,Ue,at,bt)}function lc(u,P,me,Ue,at,bt){var gt;for(gt=3;0<gt;--gt)$l(u,P+=4,1,me,16,Ue,at,bt)}function Nc(u,P,me,Ue,at,bt,gt,Ct){yu(u,P,at,1,8,bt,gt,Ct),yu(me,Ue,at,1,8,bt,gt,Ct)}function wc(u,P,me,Ue,at,bt,gt,Ct){yu(u,P,1,at,8,bt,gt,Ct),yu(me,Ue,1,at,8,bt,gt,Ct)}function uc(u,P,me,Ue,at,bt,gt,Ct){$l(u,P+4*at,at,1,8,bt,gt,Ct),$l(me,Ue+4*at,at,1,8,bt,gt,Ct)}function Ku(u,P,me,Ue,at,bt,gt,Ct){$l(u,P+4,1,at,8,bt,gt,Ct),$l(me,Ue+4,1,at,8,bt,gt,Ct)}function au(){this.ba=new xn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new kn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function xc(){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 cc(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ac(){this.ua=0,this.Wa=new Yt,this.vb=new Yt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ve,this.yc=new nr}function Ic(){this.xb=this.a=0,this.l=new Wl,this.ca=new xn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new He,this.Pb=0,this.wd=new He,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ac,this.ab=0,this.gc=ge(4,cc),this.Oc=0}function Ru(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Wl,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function su(u,P,me,Ue,at,bt,gt){for(u=u==null?0:u[P+0],P=0;P<gt;++P)at[bt+P]=u+me[Ue+P]&255,u=at[bt+P]}function zu(u,P,me,Ue,at,bt,gt){var Ct;if(u==null)su(null,null,me,Ue,at,bt,gt);else for(Ct=0;Ct<gt;++Ct)at[bt+Ct]=u[P+Ct]+me[Ue+Ct]&255}function Dl(u,P,me,Ue,at,bt,gt){if(u==null)su(null,null,me,Ue,at,bt,gt);else{var Ct,Nt=u[P+0],Zt=Nt,yr=Nt;for(Ct=0;Ct<gt;++Ct)Zt=yr+(Nt=u[P+Ct])-Zt,yr=me[Ue+Ct]+(-256&Zt?0>Zt?0:255:Zt)&255,Zt=Nt,at[bt+Ct]=yr}}function Gu(u,P,me,Ue){var at=P.width,bt=P.o;if(c(u!=null&&P!=null),0>me||0>=Ue||me+Ue>bt)return null;if(!u.Cc){if(u.ga==null){var gt;if(u.ga=new Ru,(gt=u.ga==null)||(gt=P.width*P.o,c(u.Gb.length==0),u.Gb=W(gt),u.Uc=0,u.Gb==null?gt=0:(u.mb=u.Gb,u.nb=u.Uc,u.rc=null,gt=1),gt=!gt),!gt){gt=u.ga;var Ct=u.Fa,Nt=u.P,Zt=u.qc,yr=u.mb,wr=u.nb,Xr=Nt+1,Rr=Zt-1,En=gt.l;if(c(Ct!=null&&yr!=null&&P!=null),vc[0]=null,vc[1]=su,vc[2]=zu,vc[3]=Dl,gt.ca=yr,gt.tb=wr,gt.c=P.width,gt.i=P.height,c(0<gt.c&&0<gt.i),1>=Zt)P=0;else if(gt.$a=Ct[Nt+0]>>0&3,gt.Z=Ct[Nt+0]>>2&3,gt.Lc=Ct[Nt+0]>>4&3,Nt=Ct[Nt+0]>>6&3,0>gt.$a||1<gt.$a||4<=gt.Z||1<gt.Lc||Nt)P=0;else if(En.put=Ji,En.ac=Gi,En.bc=Ia,En.ma=gt,En.width=P.width,En.height=P.height,En.Da=P.Da,En.v=P.v,En.va=P.va,En.j=P.j,En.o=P.o,gt.$a)e:{c(gt.$a==1),P=xs();t:for(;;){if(P==null){P=0;break e}if(c(gt!=null),gt.mc=P,P.c=gt.c,P.i=gt.i,P.l=gt.l,P.l.ma=gt,P.l.width=gt.c,P.l.height=gt.i,P.a=0,ut(P.m,Ct,Xr,Rr),!_s(gt.c,gt.i,1,P,null)||(P.ab==1&&P.gc[0].hc==3&&Aa(P.s)?(gt.ic=1,Ct=P.c*P.i,P.Ta=null,P.Ua=0,P.V=W(Ct),P.Ba=0,P.V==null?(P.a=1,P=0):P=1):(gt.ic=0,P=Js(P,gt.c)),!P))break t;P=1;break e}gt.mc=null,P=0}else P=Rr>=gt.c*gt.i;gt=!P}if(gt)return null;u.ga.Lc!=1?u.Ga=0:Ue=bt-me}c(u.ga!=null),c(me+Ue<=bt);e:{if(P=(Ct=u.ga).c,bt=Ct.l.o,Ct.$a==0){if(Xr=u.rc,Rr=u.Vc,En=u.Fa,Nt=u.P+1+me*P,Zt=u.mb,yr=u.nb+me*P,c(Nt<=u.P+u.qc),Ct.Z!=0)for(c(vc[Ct.Z]!=null),gt=0;gt<Ue;++gt)vc[Ct.Z](Xr,Rr,En,Nt,Zt,yr,P),Xr=Zt,Rr=yr,yr+=P,Nt+=P;else for(gt=0;gt<Ue;++gt)U(Zt,yr,En,Nt,P),Xr=Zt,Rr=yr,yr+=P,Nt+=P;u.rc=Xr,u.Vc=Rr}else{if(c(Ct.mc!=null),P=me+Ue,c((gt=Ct.mc)!=null),c(P<=gt.i),gt.C>=P)P=1;else if(Ct.ic||un(),Ct.ic){Ct=gt.V,Xr=gt.Ba,Rr=gt.c;var Bn=gt.i,Or=(En=1,Nt=gt.$/Rr,Zt=gt.$%Rr,yr=gt.m,wr=gt.s,gt.$),jr=Rr*Bn,Pn=Rr*P,si=wr.wc,li=Or<Pn?Qa(wr,Zt,Nt):null;c(Or<=jr),c(P<=Bn),c(Aa(wr));t:for(;;){for(;!yr.h&&Or<Pn;){if(Zt&si||(li=Qa(wr,Zt,Nt)),c(li!=null),er(yr),256>(Bn=va(li.G[0],li.H[0],yr)))Ct[Xr+Or]=Bn,++Or,++Zt>=Rr&&(Zt=0,++Nt<=P&&!(Nt%16)&&ja(gt,Nt));else{if(!(280>Bn)){En=0;break t}Bn=ss(Bn-256,yr);var Xi,Hi=va(li.G[4],li.H[4],yr);if(er(yr),!(Or>=(Hi=La(Rr,Hi=ss(Hi,yr)))&&jr-Or>=Bn)){En=0;break t}for(Xi=0;Xi<Bn;++Xi)Ct[Xr+Or+Xi]=Ct[Xr+Or+Xi-Hi];for(Or+=Bn,Zt+=Bn;Zt>=Rr;)Zt-=Rr,++Nt<=P&&!(Nt%16)&&ja(gt,Nt);Or<Pn&&Zt&si&&(li=Qa(wr,Zt,Nt))}c(yr.h==Te(yr))}ja(gt,Nt>P?P:Nt);break t}!En||yr.h&&Or<jr?(En=0,gt.a=yr.h?5:3):gt.$=Or,P=En}else P=os(gt,gt.V,gt.Ba,gt.c,gt.i,P,Ws);if(!P){Ue=0;break e}}me+Ue>=bt&&(u.Cc=1),Ue=1}if(!Ue)return null;if(u.Cc&&((Ue=u.ga)!=null&&(Ue.mc=null),u.ga=null,0<u.Ga))return alert("todo:WebPDequantizeLevels"),null}return u.nb+me*at}function ce(u,P,me,Ue,at,bt){for(;0<at--;){var gt,Ct=u,Nt=P+(me?1:0),Zt=u,yr=P+(me?0:3);for(gt=0;gt<Ue;++gt){var wr=Zt[yr+4*gt];wr!=255&&(wr*=32897,Ct[Nt+4*gt+0]=Ct[Nt+4*gt+0]*wr>>23,Ct[Nt+4*gt+1]=Ct[Nt+4*gt+1]*wr>>23,Ct[Nt+4*gt+2]=Ct[Nt+4*gt+2]*wr>>23)}P+=bt}}function wt(u,P,me,Ue,at){for(;0<Ue--;){var bt;for(bt=0;bt<me;++bt){var gt=u[P+2*bt+0],Ct=15&(Zt=u[P+2*bt+1]),Nt=4369*Ct,Zt=(240&Zt|Zt>>4)*Nt>>16;u[P+2*bt+0]=(240>|gt>>4)*Nt>>16&240|(15>|gt<<4)*Nt>>16>>4&15,u[P+2*bt+1]=240&Zt|Ct}P+=at}}function gr(u,P,me,Ue,at,bt,gt,Ct){var Nt,Zt,yr=255;for(Zt=0;Zt<at;++Zt){for(Nt=0;Nt<Ue;++Nt){var wr=u[P+Nt];bt[gt+4*Nt]=wr,yr&=wr}P+=me,gt+=Ct}return yr!=255}function Pr(u,P,me,Ue,at){var bt;for(bt=0;bt<at;++bt)me[Ue+bt]=u[P+bt]>>8}function un(){x=ce,j=wt,q=gr,de=Pr}function Wn(u,P,me){Br[u]=function(Ue,at,bt,gt,Ct,Nt,Zt,yr,wr,Xr,Rr,En,Bn,Or,jr,Pn,si){var li,Xi=si-1>>1,Hi=Ct[Nt+0]|Zt[yr+0]<<16,wa=wr[Xr+0]|Rr[En+0]<<16;c(Ue!=null);var Wi=3*Hi+wa+131074>>2;for(P(Ue[at+0],255&Wi,Wi>>16,Bn,Or),bt!=null&&(Wi=3*wa+Hi+131074>>2,P(bt[gt+0],255&Wi,Wi>>16,jr,Pn)),li=1;li<=Xi;++li){var Es=Ct[Nt+li]|Zt[yr+li]<<16,Rs=wr[Xr+li]|Rr[En+li]<<16,vs=Hi+Es+wa+Rs+524296,qa=vs+2*(Es+wa)>>3;Wi=qa+Hi>>1,Hi=(vs=vs+2*(Hi+Rs)>>3)+Es>>1,P(Ue[at+2*li-1],255&Wi,Wi>>16,Bn,Or+(2*li-1)*me),P(Ue[at+2*li-0],255&Hi,Hi>>16,Bn,Or+(2*li-0)*me),bt!=null&&(Wi=vs+wa>>1,Hi=qa+Rs>>1,P(bt[gt+2*li-1],255&Wi,Wi>>16,jr,Pn+(2*li-1)*me),P(bt[gt+2*li+0],255&Hi,Hi>>16,jr,Pn+(2*li+0)*me)),Hi=Es,wa=Rs}1&si||(Wi=3*Hi+wa+131074>>2,P(Ue[at+si-1],255&Wi,Wi>>16,Bn,Or+(si-1)*me),bt!=null&&(Wi=3*wa+Hi+131074>>2,P(bt[gt+si-1],255&Wi,Wi>>16,jr,Pn+(si-1)*me)))}}function Ci(){ql[$n]=gA,ql[dn]=eA,ql[gi]=vA,ql[Kn]=tA,ql[Si]=rA,ql[ta]=nA,ql[mi]=yA,ql[Li]=eA,ql[Ga]=tA,ql[ia]=rA,ql[$a]=nA}function ra(u){return u&~bA?0>u?0:255:u>>iA}function xa(u,P){return ra((19077*u>>8)+(26149*P>>8)-14234)}function Ha(u,P,me){return ra((19077*u>>8)-(6419*P>>8)-(13320*me>>8)+8708)}function Wa(u,P){return ra((19077*u>>8)+(33050*P>>8)-17685)}function Ss(u,P,me,Ue,at){Ue[at+0]=xa(u,me),Ue[at+1]=Ha(u,P,me),Ue[at+2]=Wa(u,P)}function ro(u,P,me,Ue,at){Ue[at+0]=Wa(u,P),Ue[at+1]=Ha(u,P,me),Ue[at+2]=xa(u,me)}function bo(u,P,me,Ue,at){var bt=Ha(u,P,me);P=bt<<3&224|Wa(u,P)>>3,Ue[at+0]=248&xa(u,me)|bt>>5,Ue[at+1]=P}function Lo(u,P,me,Ue,at){var bt=240&Wa(u,P)|15;Ue[at+0]=240&xa(u,me)|Ha(u,P,me)>>4,Ue[at+1]=bt}function zo(u,P,me,Ue,at){Ue[at+0]=255,Ss(u,P,me,Ue,at+1)}function jo(u,P,me,Ue,at){ro(u,P,me,Ue,at),Ue[at+3]=255}function Ll(u,P,me,Ue,at){Ss(u,P,me,Ue,at),Ue[at+3]=255}function Rl(u,P){return 0>u?0:u>P?P:u}function Ol(u,P,me){Br[u]=function(Ue,at,bt,gt,Ct,Nt,Zt,yr,wr){for(var Xr=yr+(-2&wr)*me;yr!=Xr;)P(Ue[at+0],bt[gt+0],Ct[Nt+0],Zt,yr),P(Ue[at+1],bt[gt+0],Ct[Nt+0],Zt,yr+me),at+=2,++gt,++Nt,yr+=2*me;1&wr&&P(Ue[at+0],bt[gt+0],Ct[Nt+0],Zt,yr)}}function Zu(u,P,me){return me==0?u==0?P==0?6:5:P==0?4:0:me}function dc(u,P,me,Ue,at){switch(u>>>30){case 3:wu(P,me,Ue,at,0);break;case 2:Ro(P,me,Ue,at);break;case 1:Go(P,me,Ue,at)}}function Wu(u,P){var me,Ue,at=P.M,bt=P.Nb,gt=u.oc,Ct=u.pc+40,Nt=u.oc,Zt=u.pc+584,yr=u.oc,wr=u.pc+600;for(me=0;16>me;++me)gt[Ct+32*me-1]=129;for(me=0;8>me;++me)Nt[Zt+32*me-1]=129,yr[wr+32*me-1]=129;for(0<at?gt[Ct-1-32]=Nt[Zt-1-32]=yr[wr-1-32]=129:(ne(gt,Ct-32-1,127,21),ne(Nt,Zt-32-1,127,9),ne(yr,wr-32-1,127,9)),Ue=0;Ue<u.za;++Ue){var Xr=P.ya[P.aa+Ue];if(0<Ue){for(me=-1;16>me;++me)U(gt,Ct+32*me-4,gt,Ct+32*me+12,4);for(me=-1;8>me;++me)U(Nt,Zt+32*me-4,Nt,Zt+32*me+4,4),U(yr,wr+32*me-4,yr,wr+32*me+4,4)}var Rr=u.Gd,En=u.Hd+Ue,Bn=Xr.ad,Or=Xr.Hc;if(0<at&&(U(gt,Ct-32,Rr[En].y,0,16),U(Nt,Zt-32,Rr[En].f,0,8),U(yr,wr-32,Rr[En].ea,0,8)),Xr.Za){var jr=gt,Pn=Ct-32+16;for(0<at&&(Ue>=u.za-1?ne(jr,Pn,Rr[En].y[15],4):U(jr,Pn,Rr[En+1].y,0,4)),me=0;4>me;me++)jr[Pn+128+me]=jr[Pn+256+me]=jr[Pn+384+me]=jr[Pn+0+me];for(me=0;16>me;++me,Or<<=2)jr=gt,Pn=Ct+Lt[me],pl[Xr.Ob[me]](jr,Pn),dc(Or,Bn,16*+me,jr,Pn)}else if(jr=Zu(Ue,at,Xr.Ob[0]),gc[jr](gt,Ct),Or!=0)for(me=0;16>me;++me,Or<<=2)dc(Or,Bn,16*+me,gt,Ct+Lt[me]);for(me=Xr.Gc,jr=Zu(Ue,at,Xr.Dd),ec[jr](Nt,Zt),ec[jr](yr,wr),Or=Bn,jr=Nt,Pn=Zt,255&(Xr=me>>0)&&(170&Xr?qu(Or,256,jr,Pn):Zl(Or,256,jr,Pn)),Xr=yr,Or=wr,255&(me>>=8)&&(170&me?qu(Bn,320,Xr,Or):Zl(Bn,320,Xr,Or)),at<u.Ub-1&&(U(Rr[En].y,0,gt,Ct+480,16),U(Rr[En].f,0,Nt,Zt+224,8),U(Rr[En].ea,0,yr,wr+224,8)),me=8*bt*u.B,Rr=u.sa,En=u.ta+16*Ue+16*bt*u.R,Bn=u.qa,Xr=u.ra+8*Ue+me,Or=u.Ha,jr=u.Ia+8*Ue+me,me=0;16>me;++me)U(Rr,En+me*u.R,gt,Ct+32*me,16);for(me=0;8>me;++me)U(Bn,Xr+me*u.B,Nt,Zt+32*me,8),U(Or,jr+me*u.B,yr,wr+32*me,8)}}function Vu(u,P,me,Ue,at,bt,gt,Ct,Nt){var Zt=[0],yr=[0],wr=0,Xr=Nt!=null?Nt.kd:0,Rr=Nt!=null?Nt:new xc;if(u==null||12>me)return 7;Rr.data=u,Rr.w=P,Rr.ha=me,P=[P],me=[me],Rr.gb=[Rr.gb];e:{var En=P,Bn=me,Or=Rr.gb;if(c(u!=null),c(Bn!=null),c(Or!=null),Or[0]=0,12<=Bn[0]&&!v(u,En[0],"RIFF")){if(v(u,En[0]+8,"WEBP")){Or=3;break e}var jr=An(u,En[0]+4);if(12>jr||4294967286<jr){Or=3;break e}if(Xr&&jr>Bn[0]-8){Or=7;break e}Or[0]=jr,En[0]+=12,Bn[0]-=12}Or=0}if(Or!=0)return Or;for(jr=0<Rr.gb[0],me=me[0];;){e:{var Pn=u;Bn=P,Or=me;var si=Zt,li=yr,Xi=En=[0];if((Wi=wr=[wr])[0]=0,8>Or[0])Or=7;else{if(!v(Pn,Bn[0],"VP8X")){if(An(Pn,Bn[0]+4)!=10){Or=3;break e}if(18>Or[0]){Or=7;break e}var Hi=An(Pn,Bn[0]+8),wa=1+sn(Pn,Bn[0]+12);if(2147483648<=wa*(Pn=1+sn(Pn,Bn[0]+15))){Or=3;break e}Xi!=null&&(Xi[0]=Hi),si!=null&&(si[0]=wa),li!=null&&(li[0]=Pn),Bn[0]+=18,Or[0]-=18,Wi[0]=1}Or=0}}if(wr=wr[0],En=En[0],Or!=0)return Or;if(Bn=!!(2&En),!jr&&wr)return 3;if(bt!=null&&(bt[0]=!!(16&En)),gt!=null&&(gt[0]=Bn),Ct!=null&&(Ct[0]=0),gt=Zt[0],En=yr[0],wr&&Bn&&Nt==null){Or=0;break}if(4>me){Or=7;break}if(jr&&wr||!jr&&!wr&&!v(u,P[0],"ALPH")){me=[me],Rr.na=[Rr.na],Rr.P=[Rr.P],Rr.Sa=[Rr.Sa];e:{Hi=u,Or=P,jr=me;var Wi=Rr.gb;si=Rr.na,li=Rr.P,Xi=Rr.Sa,wa=22,c(Hi!=null),c(jr!=null),Pn=Or[0];var Es=jr[0];for(c(si!=null),c(Xi!=null),si[0]=null,li[0]=null,Xi[0]=0;;){if(Or[0]=Pn,jr[0]=Es,8>Es){Or=7;break e}var Rs=An(Hi,Pn+4);if(4294967286<Rs){Or=3;break e}var vs=8+Rs+1&-2;if(wa+=vs,0<Wi&&wa>Wi){Or=3;break e}if(!v(Hi,Pn,"VP8 ")||!v(Hi,Pn,"VP8L")){Or=0;break e}if(Es[0]<vs){Or=7;break e}v(Hi,Pn,"ALPH")||(si[0]=Hi,li[0]=Pn+8,Xi[0]=Rs),Pn+=vs,Es-=vs}}if(me=me[0],Rr.na=Rr.na[0],Rr.P=Rr.P[0],Rr.Sa=Rr.Sa[0],Or!=0)break}me=[me],Rr.Ja=[Rr.Ja],Rr.xa=[Rr.xa];e:if(Wi=u,Or=P,jr=me,si=Rr.gb[0],li=Rr.Ja,Xi=Rr.xa,Hi=Or[0],Pn=!v(Wi,Hi,"VP8 "),wa=!v(Wi,Hi,"VP8L"),c(Wi!=null),c(jr!=null),c(li!=null),c(Xi!=null),8>jr[0])Or=7;else{if(Pn||wa){if(Wi=An(Wi,Hi+4),12<=si&&Wi>si-12){Or=3;break e}if(Xr&&Wi>jr[0]-8){Or=7;break e}li[0]=Wi,Or[0]+=8,jr[0]-=8,Xi[0]=wa}else Xi[0]=5<=jr[0]&&Wi[Hi+0]==47&&!(Wi[Hi+4]>>5),li[0]=jr[0];Or=0}if(me=me[0],Rr.Ja=Rr.Ja[0],Rr.xa=Rr.xa[0],P=P[0],Or!=0)break;if(4294967286<Rr.Ja)return 3;if(Ct==null||Bn||(Ct[0]=Rr.xa?2:1),gt=[gt],En=[En],Rr.xa){if(5>me){Or=7;break}Ct=gt,Xr=En,Bn=bt,u==null||5>me?u=0:5<=me&&u[P+0]==47&&!(u[P+4]>>5)?(jr=[0],Wi=[0],si=[0],ut(li=new He,u,P,me),Di(li,jr,Wi,si)?(Ct!=null&&(Ct[0]=jr[0]),Xr!=null&&(Xr[0]=Wi[0]),Bn!=null&&(Bn[0]=si[0]),u=1):u=0):u=0}else{if(10>me){Or=7;break}Ct=En,u==null||10>me||!oo(u,P+3,me-3)?u=0:(Xr=u[P+0]|u[P+1]<<8|u[P+2]<<16,Bn=16383&(u[P+7]<<8|u[P+6]),u=16383&(u[P+9]<<8|u[P+8]),1&Xr||3<(Xr>>1&7)||!(Xr>>4&1)||Xr>>5>=Rr.Ja||!Bn||!u?u=0:(gt&&(gt[0]=Bn),Ct&&(Ct[0]=u),u=1))}if(!u||(gt=gt[0],En=En[0],wr&&(Zt[0]!=gt||yr[0]!=En)))return 3;Nt!=null&&(Nt[0]=Rr,Nt.offset=P-Nt.w,c(4294967286>P-Nt.w),c(Nt.offset==Nt.ha-me));break}return Or==0||Or==7&&wr&&Nt==null?(bt!=null&&(bt[0]|=Rr.na!=null&&0<Rr.na.length),Ue!=null&&(Ue[0]=gt),at!=null&&(at[0]=En),0):Or}function fc(u,P,me){var Ue=P.width,at=P.height,bt=0,gt=0,Ct=Ue,Nt=at;if(P.Da=u!=null&&0<u.Da,P.Da&&(Ct=u.cd,Nt=u.bd,bt=u.v,gt=u.j,11>me||(bt&=-2,gt&=-2),0>bt||0>gt||0>=Ct||0>=Nt||bt+Ct>Ue||gt+Nt>at))return 0;if(P.v=bt,P.j=gt,P.va=bt+Ct,P.o=gt+Nt,P.U=Ct,P.T=Nt,P.da=u!=null&&0<u.da,P.da){if(!wi(Ct,Nt,me=[u.ib],bt=[u.hb]))return 0;P.ib=me[0],P.hb=bt[0]}return P.ob=u!=null&&u.ob,P.Kb=u==null||!u.Sd,P.da&&(P.ob=P.ib<3*Ue/4&&P.hb<3*at/4,P.Kb=0),1}function Yu(u){if(u==null)return 2;if(11>u.S){var P=u.f.RGBA;P.fb+=(u.height-1)*P.A,P.A=-P.A}else P=u.f.kb,u=u.height,P.O+=(u-1)*P.fa,P.fa=-P.fa,P.N+=(u-1>>1)*P.Ab,P.Ab=-P.Ab,P.W+=(u-1>>1)*P.Db,P.Db=-P.Db,P.F!=null&&(P.J+=(u-1)*P.lb,P.lb=-P.lb);return 0}function hc(u,P,me,Ue){if(Ue==null||0>=u||0>=P)return 2;if(me!=null){if(me.Da){var at=me.cd,bt=me.bd,gt=-2&me.v,Ct=-2&me.j;if(0>gt||0>Ct||0>=at||0>=bt||gt+at>u||Ct+bt>P)return 2;u=at,P=bt}if(me.da){if(!wi(u,P,at=[me.ib],bt=[me.hb]))return 2;u=at[0],P=bt[0]}}Ue.width=u,Ue.height=P;e:{var Nt=Ue.width,Zt=Ue.height;if(u=Ue.S,0>=Nt||0>=Zt||!(u>=$n&&13>u))u=2;else{if(0>=Ue.Rd&&Ue.sd==null){gt=bt=at=P=0;var yr=(Ct=Nt*qr[u])*Zt;if(11>u||(bt=(Zt+1)/2*(P=(Nt+1)/2),u==12&&(gt=(at=Nt)*Zt)),(Zt=W(yr+2*bt+gt))==null){u=1;break e}Ue.sd=Zt,11>u?((Nt=Ue.f.RGBA).eb=Zt,Nt.fb=0,Nt.A=Ct,Nt.size=yr):((Nt=Ue.f.kb).y=Zt,Nt.O=0,Nt.fa=Ct,Nt.Fd=yr,Nt.f=Zt,Nt.N=0+yr,Nt.Ab=P,Nt.Cd=bt,Nt.ea=Zt,Nt.W=0+yr+bt,Nt.Db=P,Nt.Ed=bt,u==12&&(Nt.F=Zt,Nt.J=0+yr+2*bt),Nt.Tc=gt,Nt.lb=at)}if(P=1,at=Ue.S,bt=Ue.width,gt=Ue.height,at>=$n&&13>at)if(11>at)u=Ue.f.RGBA,P&=(Ct=Math.abs(u.A))*(gt-1)+bt<=u.size,P&=Ct>=bt*qr[at],P&=u.eb!=null;else{u=Ue.f.kb,Ct=(bt+1)/2,yr=(gt+1)/2,Nt=Math.abs(u.fa),Zt=Math.abs(u.Ab);var wr=Math.abs(u.Db),Xr=Math.abs(u.lb),Rr=Xr*(gt-1)+bt;P&=Nt*(gt-1)+bt<=u.Fd,P&=Zt*(yr-1)+Ct<=u.Cd,P=(P&=wr*(yr-1)+Ct<=u.Ed)&Nt>=bt&Zt>=Ct&wr>=Ct,P&=u.y!=null,P&=u.f!=null,P&=u.ea!=null,at==12&&(P&=Xr>=bt,P&=Rr<=u.Tc,P&=u.F!=null)}else P=0;u=P?0:2}}return u!=0||me!=null&&me.fd&&(u=Yu(Ue)),u}var qo=64,Kl=[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],Xu=24,no=32,Xl=8,Ho=[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];wn("Predictor0","PredictorAdd0"),Br.Predictor0=function(){return 4278190080},Br.Predictor1=function(u){return u},Br.Predictor2=function(u,P,me){return P[me+0]},Br.Predictor3=function(u,P,me){return P[me+1]},Br.Predictor4=function(u,P,me){return P[me-1]},Br.Predictor5=function(u,P,me){return rn(rn(u,P[me+1]),P[me+0])},Br.Predictor6=function(u,P,me){return rn(u,P[me-1])},Br.Predictor7=function(u,P,me){return rn(u,P[me+0])},Br.Predictor8=function(u,P,me){return rn(P[me-1],P[me+0])},Br.Predictor9=function(u,P,me){return rn(P[me+0],P[me+1])},Br.Predictor10=function(u,P,me){return rn(rn(u,P[me-1]),rn(P[me+0],P[me+1]))},Br.Predictor11=function(u,P,me){var Ue=P[me+0];return 0>=Mi(Ue>>24&255,u>>24&255,(P=P[me-1])>>24&255)+Mi(Ue>>16&255,u>>16&255,P>>16&255)+Mi(Ue>>8&255,u>>8&255,P>>8&255)+Mi(255&Ue,255&u,255&P)?Ue:u},Br.Predictor12=function(u,P,me){var Ue=P[me+0];return(Qn((u>>24&255)+(Ue>>24&255)-((P=P[me-1])>>24&255))<<24|Qn((u>>16&255)+(Ue>>16&255)-(P>>16&255))<<16|Qn((u>>8&255)+(Ue>>8&255)-(P>>8&255))<<8|Qn((255&u)+(255&Ue)-(255&P)))>>>0},Br.Predictor13=function(u,P,me){var Ue=P[me-1];return(vi((u=rn(u,P[me+0]))>>24&255,Ue>>24&255)<<24|vi(u>>16&255,Ue>>16&255)<<16|vi(u>>8&255,Ue>>8&255)<<8|vi(u>>0&255,Ue>>0&255))>>>0};var ou=Br.PredictorAdd0;Br.PredictorAdd1=je,wn("Predictor2","PredictorAdd2"),wn("Predictor3","PredictorAdd3"),wn("Predictor4","PredictorAdd4"),wn("Predictor5","PredictorAdd5"),wn("Predictor6","PredictorAdd6"),wn("Predictor7","PredictorAdd7"),wn("Predictor8","PredictorAdd8"),wn("Predictor9","PredictorAdd9"),wn("Predictor10","PredictorAdd10"),wn("Predictor11","PredictorAdd11"),wn("Predictor12","PredictorAdd12"),wn("Predictor13","PredictorAdd13");var zl=Br.PredictorAdd2;z("ColorIndexInverseTransform","MapARGB","32b",function(u){return u>>8&255},function(u){return u}),z("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(u){return u},function(u){return u>>8&255});var Ou,No=Br.ColorIndexInverseTransform,Pu=Br.MapARGB,Ec=Br.VP8LColorIndexInverseTransformAlpha,Cc=Br.MapAlpha,Gl=Br.VP8LPredictorsAdd=[];Gl.length=16,(Br.VP8LPredictors=[]).length=16,(Br.VP8LPredictorsAdd_C=[]).length=16,(Br.VP8LPredictors_C=[]).length=16;var Jl,el,rl,Pl,bu,lu,Ju,wu,Ro,qu,Go,Zl,pc,Tc,_c,xu,ll,f,e,t,r,i,s,l,x,j,q,de,Re=W(511),Ye=W(2041),Je=W(225),ct=W(767),_t=0,Dt=Ye,pr=Je,Tr=ct,Lr=Re,$n=0,dn=1,gi=2,Kn=3,Si=4,ta=5,mi=6,Li=7,Ga=8,ia=9,$a=10,Ka=[2,3,7],Ra=[3,3,11],Is=[280,256,256,256,40],zs=[0,1,1,1,0],ha=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],sa=[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],Ms=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ds=8,Us=[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],lo=[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],Ls=null,Zo=[[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]],ul=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],mc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],kc=[[[[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]]]],Zc=[[[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]]],Fc=[[[[255,255,255,255,255,255,255,255,255,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]]]],Qc=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],gc=[],pl=[],ec=[],mA=1,Wc=2,vc=[],ql=[];Wn("UpsampleRgbLinePair",Ss,3),Wn("UpsampleBgrLinePair",ro,3),Wn("UpsampleRgbaLinePair",Ll,4),Wn("UpsampleBgraLinePair",jo,4),Wn("UpsampleArgbLinePair",zo,4),Wn("UpsampleRgba4444LinePair",Lo,2),Wn("UpsampleRgb565LinePair",bo,2);var gA=Br.UpsampleRgbLinePair,vA=Br.UpsampleBgrLinePair,eA=Br.UpsampleRgbaLinePair,tA=Br.UpsampleBgraLinePair,rA=Br.UpsampleArgbLinePair,nA=Br.UpsampleRgba4444LinePair,yA=Br.UpsampleRgb565LinePair,jc=16,Hc=1<<jc-1,Mc=-227,Vc=482,iA=6,bA=(256<<iA)-1,aA=0,R=W(256),C=W(256),Q=W(256),M=W(256),Ne=W(Vc-Mc),it=W(Vc-Mc);Ol("YuvToRgbRow",Ss,3),Ol("YuvToBgrRow",ro,3),Ol("YuvToRgbaRow",Ll,4),Ol("YuvToBgraRow",jo,4),Ol("YuvToArgbRow",zo,4),Ol("YuvToRgba4444Row",Lo,2),Ol("YuvToRgb565Row",bo,2);var Lt=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ir=[0,2,8],ar=[8,7,6,4,4,2,2,2,1,1,1,1],Qr=1;this.WebPDecodeRGBA=function(u,P,me,Ue,at){var bt=dn,gt=new au,Ct=new xn;gt.ba=Ct,Ct.S=bt,Ct.width=[Ct.width],Ct.height=[Ct.height];var Nt=Ct.width,Zt=Ct.height,yr=new Nn;if(yr==null||u==null)var wr=2;else c(yr!=null),wr=Vu(u,P,me,yr.width,yr.height,yr.Pd,yr.Qd,yr.format,null);if(wr!=0?Nt=0:(Nt!=null&&(Nt[0]=yr.width[0]),Zt!=null&&(Zt[0]=yr.height[0]),Nt=1),Nt){Ct.width=Ct.width[0],Ct.height=Ct.height[0],Ue!=null&&(Ue[0]=Ct.width),at!=null&&(at[0]=Ct.height);e:{if(Ue=new Wl,(at=new xc).data=u,at.w=P,at.ha=me,at.kd=1,P=[0],c(at!=null),((u=Vu(at.data,at.w,at.ha,null,null,null,P,null,at))==0||u==7)&&P[0]&&(u=4),(P=u)==0){if(c(gt!=null),Ue.data=at.data,Ue.w=at.w+at.offset,Ue.ha=at.ha-at.offset,Ue.put=Ji,Ue.ac=Gi,Ue.bc=Ia,Ue.ma=gt,at.xa){if((u=xs())==null){gt=1;break e}if(function(Xr,Rr){var En=[0],Bn=[0],Or=[0];t:for(;;){if(Xr==null)return 0;if(Rr==null)return Xr.a=2,0;if(Xr.l=Rr,Xr.a=0,ut(Xr.m,Rr.data,Rr.w,Rr.ha),!Di(Xr.m,En,Bn,Or)){Xr.a=3;break t}if(Xr.xb=Wc,Rr.width=En[0],Rr.height=Bn[0],!_s(En[0],Bn[0],1,Xr,null))break t;return 1}return c(Xr.a!=0),0}(u,Ue)){if(Ue=(P=hc(Ue.width,Ue.height,gt.Oa,gt.ba))==0){t:{Ue=u;r:for(;;){if(Ue==null){Ue=0;break t}if(c(Ue.s.yc!=null),c(Ue.s.Ya!=null),c(0<Ue.s.Wb),c((me=Ue.l)!=null),c((at=me.ma)!=null),Ue.xb!=0){if(Ue.ca=at.ba,Ue.tb=at.tb,c(Ue.ca!=null),!fc(at.Oa,me,Kn)){Ue.a=2;break r}if(!Js(Ue,me.width)||me.da)break r;if((me.da||Hr(Ue.ca.S))&&un(),11>Ue.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Ue.ca.f.kb.F!=null&&un()),Ue.Pb&&0<Ue.s.ua&&Ue.s.vb.X==null&&!ni(Ue.s.vb,Ue.s.Wa.Xa)){Ue.a=1;break r}Ue.xb=0}if(!os(Ue,Ue.V,Ue.Ba,Ue.c,Ue.i,me.o,fa))break r;at.Dc=Ue.Ma,Ue=1;break t}c(Ue.a!=0),Ue=0}Ue=!Ue}Ue&&(P=u.a)}else P=u.a}else{if((u=new za)==null){gt=1;break e}if(u.Fa=at.na,u.P=at.P,u.qc=at.Sa,Bs(u,Ue)){if((P=hc(Ue.width,Ue.height,gt.Oa,gt.ba))==0){if(u.Aa=0,me=gt.Oa,c((at=u)!=null),me!=null){if(0<(Nt=0>(Nt=me.Md)?0:100<Nt?255:255*Nt/100)){for(Zt=yr=0;4>Zt;++Zt)12>(wr=at.pb[Zt]).lc&&(wr.ia=Nt*ar[0>wr.lc?0:wr.lc]>>3),yr|=wr.ia;yr&&(alert("todo:VP8InitRandom"),at.ia=1)}at.Ga=me.Id,100<at.Ga?at.Ga=100:0>at.Ga&&(at.Ga=0)}Bo(u,Ue)||(P=u.a)}}else P=u.a}P==0&>.Oa!=null&>.Oa.fd&&(P=Yu(gt.ba))}gt=P}bt=gt!=0?null:11>bt?Ct.f.RGBA.eb:Ct.f.kb.y}else bt=null;return bt};var qr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function rt(Br,vn){for(var Gn="",zt=0;zt<4;zt++)Gn+=String.fromCharCode(Br[vn++]);return Gn}function vt(Br,vn){return(Br[vn+0]<<0|Br[vn+1]<<8|Br[vn+2]<<16)>>>0}function yt(Br,vn){return(Br[vn+0]<<0|Br[vn+1]<<8|Br[vn+2]<<16|Br[vn+3]<<24)>>>0}new ke;var Ot=[0],Ve=[0],cr=[],tr=new ke,hr=b,jt=function(Br,vn){var Gn={},zt=0,nr=!1,Nr=0,ve=0;if(Gn.frames=[],!function(At,Te,Ft,er){for(var or=0;or<er;or++)if(At[Te+or]!=Ft.charCodeAt(or))return!0;return!1}(Br,vn,"RIFF",4)){for(yt(Br,vn+=4),vn+=8;vn<Br.length;){var Pe=rt(Br,vn),Xe=yt(Br,vn+=4);vn+=4;var lt=Xe+(1&Xe);switch(Pe){case"VP8 ":case"VP8L":Gn.frames[zt]===void 0&&(Gn.frames[zt]={}),(Qt=Gn.frames[zt]).src_off=nr?ve:vn-8,Qt.src_size=Nr+Xe+8,zt++,nr&&(nr=!1,Nr=0,ve=0);break;case"VP8X":(Qt=Gn.header={}).feature_flags=Br[vn];var ut=vn+4;Qt.canvas_width=1+vt(Br,ut),ut+=3,Qt.canvas_height=1+vt(Br,ut),ut+=3;break;case"ALPH":nr=!0,Nr=lt+8,ve=vn-8;break;case"ANIM":(Qt=Gn.header).bgcolor=yt(Br,vn),ut=vn+4,Qt.loop_count=(lr=Br)[(He=ut)+0]<<0|lr[He+1]<<8,ut+=2;break;case"ANMF":var xt,Qt;(Qt=Gn.frames[zt]={}).offset_x=2*vt(Br,vn),vn+=3,Qt.offset_y=2*vt(Br,vn),vn+=3,Qt.width=1+vt(Br,vn),vn+=3,Qt.height=1+vt(Br,vn),vn+=3,Qt.duration=vt(Br,vn),vn+=3,xt=Br[vn++],Qt.dispose=1&xt,Qt.blend=xt>>1&1}Pe!="ANMF"&&(vn+=lt)}var lr,He;return Gn}}(hr,0);jt.response=hr,jt.rgbaoutput=!0,jt.dataurl=!1;var Ar=jt.header?jt.header:null,kr=jt.frames?jt.frames:null;if(Ar){Ar.loop_counter=Ar.loop_count,Ot=[Ar.canvas_height],Ve=[Ar.canvas_width];for(var ln=0;ln<kr.length&&kr[ln].blend!=0;ln++);}var Ln=kr[0],Ai=tr.WebPDecodeRGBA(hr,Ln.src_off,Ln.src_size,Ve,Ot);Ln.rgba=Ai,Ln.imgwidth=Ve[0],Ln.imgheight=Ot[0];for(var hn=0;hn<Ve[0]*Ot[0]*4;hn++)cr[hn]=Ai[hn];return this.width=Ve,this.height=Ot,this.data=cr,this}(function(b){var c=function(){return typeof zn=="function"},v=function(Ot,Ve,cr,tr){var hr=4,jt=ge;switch(tr){case b.image_compression.FAST:hr=1,jt=W;break;case b.image_compression.MEDIUM:hr=6,jt=De;break;case b.image_compression.SLOW:hr=9,jt=ke}Ot=U(Ot,Ve,cr,jt);var Ar=zn(Ot,{level:hr});return b.__addimage__.arrayBufferToBinaryString(Ar)},U=function(Ot,Ve,cr,tr){for(var hr,jt,Ar,kr=Ot.length/Ve,ln=new Uint8Array(Ot.length+kr),Ln=vt(),Ai=0;Ai<kr;Ai+=1){if(Ar=Ai*Ve,hr=Ot.subarray(Ar,Ar+Ve),tr)ln.set(tr(hr,cr,jt),Ar+Ai);else{for(var hn,Br=Ln.length,vn=[];hn<Br;hn+=1)vn[hn]=Ln[hn](hr,cr,jt);var Gn=yt(vn.concat());ln.set(vn[Gn],Ar+Ai)}jt=hr}return ln},ne=function(Ot){var Ve=Array.apply([],Ot);return Ve.unshift(0),Ve},W=function(Ot,Ve){var cr,tr=[],hr=Ot.length;tr[0]=1;for(var jt=0;jt<hr;jt+=1)cr=Ot[jt-Ve]||0,tr[jt+1]=Ot[jt]-cr+256&255;return tr},ge=function(Ot,Ve,cr){var tr,hr=[],jt=Ot.length;hr[0]=2;for(var Ar=0;Ar<jt;Ar+=1)tr=cr&&cr[Ar]||0,hr[Ar+1]=Ot[Ar]-tr+256&255;return hr},De=function(Ot,Ve,cr){var tr,hr,jt=[],Ar=Ot.length;jt[0]=3;for(var kr=0;kr<Ar;kr+=1)tr=Ot[kr-Ve]||0,hr=cr&&cr[kr]||0,jt[kr+1]=Ot[kr]+256-(tr+hr>>>1)&255;return jt},ke=function(Ot,Ve,cr){var tr,hr,jt,Ar,kr=[],ln=Ot.length;kr[0]=4;for(var Ln=0;Ln<ln;Ln+=1)tr=Ot[Ln-Ve]||0,hr=cr&&cr[Ln]||0,jt=cr&&cr[Ln-Ve]||0,Ar=rt(tr,hr,jt),kr[Ln+1]=Ot[Ln]-Ar+256&255;return kr},rt=function(Ot,Ve,cr){if(Ot===Ve&&Ve===cr)return Ot;var tr=Math.abs(Ve-cr),hr=Math.abs(Ot-cr),jt=Math.abs(Ot+Ve-cr-cr);return tr<=hr&&tr<=jt?Ot:hr<=jt?Ve:cr},vt=function(){return[ne,W,ge,De,ke]},yt=function(Ot){var Ve=Ot.map(function(cr){return cr.reduce(function(tr,hr){return tr+Math.abs(hr)},0)});return Ve.indexOf(Math.min.apply(null,Ve))};b.processPNG=function(Ot,Ve,cr,tr){var hr,jt,Ar,kr,ln,Ln,Ai,hn,Br,vn,Gn,zt,nr,Nr,ve,Pe=this.decode.FLATE_DECODE,Xe="";if(this.__addimage__.isArrayBuffer(Ot)&&(Ot=new Uint8Array(Ot)),this.__addimage__.isArrayBufferView(Ot)){if(Ot=(Ar=new wl(Ot)).imgData,jt=Ar.bits,hr=Ar.colorSpace,ln=Ar.colors,[4,6].indexOf(Ar.colorType)!==-1){if(Ar.bits===8){Br=(hn=Ar.pixelBitlength==32?new Uint32Array(Ar.decodePixels().buffer):Ar.pixelBitlength==16?new Uint16Array(Ar.decodePixels().buffer):new Uint8Array(Ar.decodePixels().buffer)).length,Gn=new Uint8Array(Br*Ar.colors),vn=new Uint8Array(Br);var lt,ut=Ar.pixelBitlength-Ar.bits;for(Nr=0,ve=0;Nr<Br;Nr++){for(nr=hn[Nr],lt=0;lt<ut;)Gn[ve++]=nr>>>lt&255,lt+=Ar.bits;vn[Nr]=nr>>>lt&255}}if(Ar.bits===16){Br=(hn=new Uint32Array(Ar.decodePixels().buffer)).length,Gn=new Uint8Array(Br*(32/Ar.pixelBitlength)*Ar.colors),vn=new Uint8Array(Br*(32/Ar.pixelBitlength)),zt=Ar.colors>1,Nr=0,ve=0;for(var xt=0;Nr<Br;)nr=hn[Nr++],Gn[ve++]=nr>>>0&255,zt&&(Gn[ve++]=nr>>>16&255,nr=hn[Nr++],Gn[ve++]=nr>>>0&255),vn[xt++]=nr>>>16&255;jt=8}tr!==b.image_compression.NONE&&c()?(Ot=v(Gn,Ar.width*Ar.colors,Ar.colors,tr),Ai=v(vn,Ar.width,1,tr)):(Ot=Gn,Ai=vn,Pe=void 0)}if(Ar.colorType===3&&(hr=this.color_spaces.INDEXED,Ln=Ar.palette,Ar.transparency.indexed)){var Qt=Ar.transparency.indexed,lr=0;for(Nr=0,Br=Qt.length;Nr<Br;++Nr)lr+=Qt[Nr];if((lr/=255)===Br-1&&Qt.indexOf(0)!==-1)kr=[Qt.indexOf(0)];else if(lr!==Br){for(hn=Ar.decodePixels(),vn=new Uint8Array(hn.length),Nr=0,Br=hn.length;Nr<Br;Nr++)vn[Nr]=Qt[hn[Nr]];Ai=v(vn,Ar.width,1)}}var He=function(At){var Te;switch(At){case b.image_compression.FAST:Te=11;break;case b.image_compression.MEDIUM:Te=13;break;case b.image_compression.SLOW:Te=14;break;default:Te=12}return Te}(tr);return Pe===this.decode.FLATE_DECODE&&(Xe="/Predictor "+He+" "),Xe+="/Colors "+ln+" /BitsPerComponent "+jt+" /Columns "+Ar.width,(this.__addimage__.isArrayBuffer(Ot)||this.__addimage__.isArrayBufferView(Ot))&&(Ot=this.__addimage__.arrayBufferToBinaryString(Ot)),(Ai&&this.__addimage__.isArrayBuffer(Ai)||this.__addimage__.isArrayBufferView(Ai))&&(Ai=this.__addimage__.arrayBufferToBinaryString(Ai)),{alias:cr,data:Ot,index:Ve,filter:Pe,decodeParameters:Xe,transparency:kr,palette:Ln,sMask:Ai,predictor:He,width:Ar.width,height:Ar.height,bitsPerComponent:jt,colorSpace:hr}}}})(Ni.API),function(b){b.processGIF89A=function(c,v,U,ne){var W=new cl(c),ge=W.width,De=W.height,ke=[];W.decodeAndBlitFrameRGBA(0,ke);var rt={data:ke,width:ge,height:De},vt=new xl(100).encode(rt,100);return b.processJPEG.call(this,vt,v,U,ne)},b.processGIF87A=b.processGIF89A}(Ni.API),Mo.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 b=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(b);for(var c=0;c<b;c++){var v=this.datav.getUint8(this.pos++,!0),U=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),W=this.datav.getUint8(this.pos++,!0);this.palette[c]={red:ne,green:U,blue:v,quad:W}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mo.prototype.parseBGR=function(){this.pos=this.offset;try{var b="bit"+this.bitPP,c=this.width*this.height*4;this.data=new Uint8Array(c),this[b]()}catch(v){ii.log("bit decode error:"+v)}},Mo.prototype.bit1=function(){var b,c=Math.ceil(this.width/8),v=c%4;for(b=this.height-1;b>=0;b--){for(var U=this.bottom_up?b:this.height-1-b,ne=0;ne<c;ne++)for(var W=this.datav.getUint8(this.pos++,!0),ge=U*this.width*4+8*ne*4,De=0;De<8&&8*ne+De<this.width;De++){var ke=this.palette[W>>7-De&1];this.data[ge+4*De]=ke.blue,this.data[ge+4*De+1]=ke.green,this.data[ge+4*De+2]=ke.red,this.data[ge+4*De+3]=255}v!==0&&(this.pos+=4-v)}},Mo.prototype.bit4=function(){for(var b=Math.ceil(this.width/2),c=b%4,v=this.height-1;v>=0;v--){for(var U=this.bottom_up?v:this.height-1-v,ne=0;ne<b;ne++){var W=this.datav.getUint8(this.pos++,!0),ge=U*this.width*4+2*ne*4,De=W>>4,ke=15&W,rt=this.palette[De];if(this.data[ge]=rt.blue,this.data[ge+1]=rt.green,this.data[ge+2]=rt.red,this.data[ge+3]=255,2*ne+1>=this.width)break;rt=this.palette[ke],this.data[ge+4]=rt.blue,this.data[ge+4+1]=rt.green,this.data[ge+4+2]=rt.red,this.data[ge+4+3]=255}c!==0&&(this.pos+=4-c)}},Mo.prototype.bit8=function(){for(var b=this.width%4,c=this.height-1;c>=0;c--){for(var v=this.bottom_up?c:this.height-1-c,U=0;U<this.width;U++){var ne=this.datav.getUint8(this.pos++,!0),W=v*this.width*4+4*U;if(ne<this.palette.length){var ge=this.palette[ne];this.data[W]=ge.red,this.data[W+1]=ge.green,this.data[W+2]=ge.blue,this.data[W+3]=255}else this.data[W]=255,this.data[W+1]=255,this.data[W+2]=255,this.data[W+3]=255}b!==0&&(this.pos+=4-b)}},Mo.prototype.bit15=function(){for(var b=this.width%3,c=parseInt("11111",2),v=this.height-1;v>=0;v--){for(var U=this.bottom_up?v:this.height-1-v,ne=0;ne<this.width;ne++){var W=this.datav.getUint16(this.pos,!0);this.pos+=2;var ge=(W&c)/c*255|0,De=(W>>5&c)/c*255|0,ke=(W>>10&c)/c*255|0,rt=W>>15?255:0,vt=U*this.width*4+4*ne;this.data[vt]=ke,this.data[vt+1]=De,this.data[vt+2]=ge,this.data[vt+3]=rt}this.pos+=b}},Mo.prototype.bit16=function(){for(var b=this.width%3,c=parseInt("11111",2),v=parseInt("111111",2),U=this.height-1;U>=0;U--){for(var ne=this.bottom_up?U:this.height-1-U,W=0;W<this.width;W++){var ge=this.datav.getUint16(this.pos,!0);this.pos+=2;var De=(ge&c)/c*255|0,ke=(ge>>5&v)/v*255|0,rt=(ge>>11)/c*255|0,vt=ne*this.width*4+4*W;this.data[vt]=rt,this.data[vt+1]=ke,this.data[vt+2]=De,this.data[vt+3]=255}this.pos+=b}},Mo.prototype.bit24=function(){for(var b=this.height-1;b>=0;b--){for(var c=this.bottom_up?b:this.height-1-b,v=0;v<this.width;v++){var U=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),W=this.datav.getUint8(this.pos++,!0),ge=c*this.width*4+4*v;this.data[ge]=W,this.data[ge+1]=ne,this.data[ge+2]=U,this.data[ge+3]=255}this.pos+=this.width%4}},Mo.prototype.bit32=function(){for(var b=this.height-1;b>=0;b--)for(var c=this.bottom_up?b:this.height-1-b,v=0;v<this.width;v++){var U=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),W=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),De=c*this.width*4+4*v;this.data[De]=W,this.data[De+1]=ne,this.data[De+2]=U,this.data[De+3]=ge}},Mo.prototype.getData=function(){return this.data},function(b){b.processBMP=function(c,v,U,ne){var W=new Mo(c,!1),ge=W.width,De=W.height,ke={data:W.getData(),width:ge,height:De},rt=new xl(100).encode(ke,100);return b.processJPEG.call(this,rt,v,U,ne)}}(Ni.API),Ks.prototype.getData=function(){return this.data},function(b){b.processWEBP=function(c,v,U,ne){var W=new Ks(c),ge=W.width,De=W.height,ke={data:W.getData(),width:ge,height:De},rt=new xl(100).encode(ke,100);return b.processJPEG.call(this,rt,v,U,ne)}}(Ni.API),Ni.API.processRGBA=function(b,c,v){for(var U=b.data,ne=U.length,W=new Uint8Array(ne/4*3),ge=new Uint8Array(ne/4),De=0,ke=0,rt=0;rt<ne;rt+=4){var vt=U[rt],yt=U[rt+1],Ot=U[rt+2],Ve=U[rt+3];W[De++]=vt,W[De++]=yt,W[De++]=Ot,ge[ke++]=Ve}var cr=this.__addimage__.arrayBufferToBinaryString(W);return{alpha:this.__addimage__.arrayBufferToBinaryString(ge),data:cr,index:c,alias:v,colorSpace:"DeviceRGB",bitsPerComponent:8,width:b.width,height:b.height}},Ni.API.setLanguage=function(b){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"}[b]!==void 0&&(this.internal.languageSettings.languageCode=b,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},Xa=Ni.API,bl=Xa.getCharWidthsArray=function(b,c){var v,U,ne=(c=c||{}).font||this.internal.getFont(),W=c.fontSize||this.internal.getFontSize(),ge=c.charSpace||this.internal.getCharSpace(),De=c.widths?c.widths:ne.metadata.Unicode.widths,ke=De.fof?De.fof:1,rt=c.kerning?c.kerning:ne.metadata.Unicode.kerning,vt=rt.fof?rt.fof:1,yt=c.doKerning!==!1,Ot=0,Ve=b.length,cr=0,tr=De[0]||ke,hr=[];for(v=0;v<Ve;v++)U=b.charCodeAt(v),typeof ne.metadata.widthOfString=="function"?hr.push((ne.metadata.widthOfGlyph(ne.metadata.characterToGlyph(U))+ge*(1e3/W)||0)/1e3):(Ot=yt&&(0,xe.Z)(rt[U])==="object"&&!isNaN(parseInt(rt[U][cr],10))?rt[U][cr]/vt:0,hr.push((De[U]||tr)/ke+Ot)),cr=U;return hr},so=Xa.getStringUnitWidth=function(b,c){var v=(c=c||{}).fontSize||this.internal.getFontSize(),U=c.font||this.internal.getFont(),ne=c.charSpace||this.internal.getCharSpace();return Xa.processArabic&&(b=Xa.processArabic(b)),typeof U.metadata.widthOfString=="function"?U.metadata.widthOfString(b,v,ne)/v:bl.apply(this,arguments).reduce(function(W,ge){return W+ge},0)},vo=function(b,c,v,U){for(var ne=[],W=0,ge=b.length,De=0;W!==ge&&De+c[W]<v;)De+=c[W],W++;ne.push(b.slice(0,W));var ke=W;for(De=0;W!==ge;)De+c[W]>U&&(ne.push(b.slice(ke,W)),De=0,ke=W),De+=c[W],W++;return ke!==W&&ne.push(b.slice(ke,W)),ne},tu=function(b,c,v){v||(v={});var U,ne,W,ge,De,ke,rt,vt=[],yt=[vt],Ot=v.textIndent||0,Ve=0,cr=0,tr=b.split(" "),hr=bl.apply(this,[" ",v])[0];if(ke=v.lineIndent===-1?tr[0].length+2:v.lineIndent||0){var jt=Array(ke).join(" "),Ar=[];tr.map(function(ln){(ln=ln.split(/\s*\n/)).length>1?Ar=Ar.concat(ln.map(function(Ln,Ai){return(Ai&&Ln.length?`
|
|
|
`:"")+Ln})):Ar.push(ln[0])}),tr=Ar,ke=so.apply(this,[jt,v])}for(W=0,ge=tr.length;W<ge;W++){var kr=0;if(U=tr[W],ke&&U[0]==`
|
|
|
`&&(U=U.substr(1),kr=1),Ot+Ve+(cr=(ne=bl.apply(this,[U,v])).reduce(function(ln,Ln){return ln+Ln},0))>c||kr){if(cr>c){for(De=vo.apply(this,[U,ne,c-(Ot+Ve),c]),vt.push(De.shift()),vt=[De.pop()];De.length;)yt.push([De.shift()]);cr=ne.slice(U.length-(vt[0]?vt[0].length:0)).reduce(function(ln,Ln){return ln+Ln},0)}else vt=[U];yt.push(vt),Ot=cr+ke,Ve=hr}else vt.push(U),Ot+=Ve+cr,Ve=hr}return rt=ke?function(ln,Ln){return(Ln?jt:"")+ln.join(" ")}:function(ln){return ln.join(" ")},yt.map(rt)},Xa.splitTextToSize=function(b,c,v){var U,ne=(v=v||{}).fontSize||this.internal.getFontSize(),W=function(vt){if(vt.widths&&vt.kerning)return{widths:vt.widths,kerning:vt.kerning};var yt=this.internal.getFont(vt.fontName,vt.fontStyle);return yt.metadata.Unicode?{widths:yt.metadata.Unicode.widths||{0:1},kerning:yt.metadata.Unicode.kerning||{}}:{font:yt.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,v);U=Array.isArray(b)?b:String(b).split(/\r?\n/);var ge=1*this.internal.scaleFactor*c/ne;W.textIndent=v.textIndent?1*v.textIndent*this.internal.scaleFactor/ne:0,W.lineIndent=v.lineIndent;var De,ke,rt=[];for(De=0,ke=U.length;De<ke;De++)rt=rt.concat(tu.apply(this,[U[De],ge,W]));return rt},function(b){b.__fontmetrics__=b.__fontmetrics__||{};for(var c="klmnopqrstuvwxyz",v={},U={},ne=0;ne<c.length;ne++)v[c[ne]]="0123456789abcdef"[ne],U["0123456789abcdef"[ne]]=c[ne];var W=function(yt){return"0x"+parseInt(yt,10).toString(16)},ge=b.__fontmetrics__.compress=function(yt){var Ot,Ve,cr,tr,hr=["{"];for(var jt in yt){if(Ot=yt[jt],isNaN(parseInt(jt,10))?Ve="'"+jt+"'":(jt=parseInt(jt,10),Ve=(Ve=W(jt).slice(2)).slice(0,-1)+U[Ve.slice(-1)]),typeof Ot=="number")Ot<0?(cr=W(Ot).slice(3),tr="-"):(cr=W(Ot).slice(2),tr=""),cr=tr+cr.slice(0,-1)+U[cr.slice(-1)];else{if((0,xe.Z)(Ot)!=="object")throw new Error("Don't know what to do with value type "+(0,xe.Z)(Ot)+".");cr=ge(Ot)}hr.push(Ve+cr)}return hr.push("}"),hr.join("")},De=b.__fontmetrics__.uncompress=function(yt){if(typeof yt!="string")throw new Error("Invalid argument passed to uncompress.");for(var Ot,Ve,cr,tr,hr={},jt=1,Ar=hr,kr=[],ln="",Ln="",Ai=yt.length-1,hn=1;hn<Ai;hn+=1)(tr=yt[hn])=="'"?Ot?(cr=Ot.join(""),Ot=void 0):Ot=[]:Ot?Ot.push(tr):tr=="{"?(kr.push([Ar,cr]),Ar={},cr=void 0):tr=="}"?((Ve=kr.pop())[0][Ve[1]]=Ar,cr=void 0,Ar=Ve[0]):tr=="-"?jt=-1:cr===void 0?v.hasOwnProperty(tr)?(ln+=v[tr],cr=parseInt(ln,16)*jt,jt=1,ln=""):ln+=tr:v.hasOwnProperty(tr)?(Ln+=v[tr],Ar[cr]=parseInt(Ln,16)*jt,jt=1,cr=void 0,Ln=""):Ln+=tr;return hr},ke={codePages:["WinAnsiEncoding"],WinAnsiEncoding:De("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},rt={Unicode:{Courier:ke,"Courier-Bold":ke,"Courier-BoldOblique":ke,"Courier-Oblique":ke,Helvetica:ke,"Helvetica-Bold":ke,"Helvetica-BoldOblique":ke,"Helvetica-Oblique":ke,"Times-Roman":ke,"Times-Bold":ke,"Times-BoldItalic":ke,"Times-Italic":ke}},vt={Unicode:{"Courier-Oblique":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":De("{'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":De("{'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:De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":De("{'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:De("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:De("{'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":De("{'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:De("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":De("{'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":De("{'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":De("{'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}}}")}};b.events.push(["addFont",function(yt){var Ot=yt.font,Ve=vt.Unicode[Ot.postScriptName];Ve&&(Ot.metadata.Unicode={},Ot.metadata.Unicode.widths=Ve.widths,Ot.metadata.Unicode.kerning=Ve.kerning);var cr=rt.Unicode[Ot.postScriptName];cr&&(Ot.metadata.Unicode.encoding=cr,Ot.encoding=cr.codePages[0])}])}(Ni.API),function(b){var c=function(v){for(var U=v.length,ne=new Uint8Array(U),W=0;W<U;W++)ne[W]=v.charCodeAt(W);return ne};b.API.events.push(["addFont",function(v){var U=void 0,ne=v.font,W=v.instance;if(!ne.isStandardFont){if(W===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').");if(typeof(U=W.existsFileInVFS(ne.postScriptName)===!1?W.loadFile(ne.postScriptName):W.getFileFromVFS(ne.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').");(function(ge,De){De=/^\x00\x01\x00\x00/.test(De)?c(De):c(Bi(De)),ge.metadata=b.API.TTFFont.open(De),ge.metadata.Unicode=ge.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ge.metadata.glyIdsUsed=[0]})(ne,U)}}])}(Ni),function(b){function c(){return(fn.canvg?Promise.resolve(fn.canvg):g.e(3754).then(g.bind(g,63754))).catch(function(v){return Promise.reject(new Error("Could not load canvg: "+v))}).then(function(v){return v.default?v.default:v})}Ni.API.addSvgAsImage=function(v,U,ne,W,ge,De,ke,rt){if(isNaN(U)||isNaN(ne))throw ii.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(W)||isNaN(ge))throw ii.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var vt=document.createElement("canvas");vt.width=W,vt.height=ge;var yt=vt.getContext("2d");yt.fillStyle="#fff",yt.fillRect(0,0,vt.width,vt.height);var Ot={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ve=this;return c().then(function(cr){return cr.fromString(yt,v,Ot)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(cr){return cr.render(Ot)}).then(function(){Ve.addImage(vt.toDataURL("image/jpeg",1),U,ne,W,ge,ke,rt)})}}(),Ni.API.putTotalPages=function(b){var c,v=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(c=new RegExp(b,"g"),v=this.internal.getNumberOfPages()):(c=new RegExp(this.pdfEscape16(b,this.internal.getFont()),"g"),v=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var U=1;U<=this.internal.getNumberOfPages();U++)for(var ne=0;ne<this.internal.pages[U].length;ne++)this.internal.pages[U][ne]=this.internal.pages[U][ne].replace(c,v);return this},Ni.API.viewerPreferences=function(b,c){var v;b=b||{},c=c||!1;var U,ne,W,ge={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}},De=Object.keys(ge),ke=[],rt=0,vt=0,yt=0;function Ot(cr,tr){var hr,jt=!1;for(hr=0;hr<cr.length;hr+=1)cr[hr]===tr&&(jt=!0);return jt}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ge)),this.internal.viewerpreferences.isSubscribed=!1),v=this.internal.viewerpreferences.configuration,b==="reset"||c===!0){var Ve=De.length;for(yt=0;yt<Ve;yt+=1)v[De[yt]].value=v[De[yt]].defaultValue,v[De[yt]].explicitSet=!1}if((0,xe.Z)(b)==="object"){for(ne in b)if(W=b[ne],Ot(De,ne)&&W!==void 0){if(v[ne].type==="boolean"&&typeof W=="boolean")v[ne].value=W;else if(v[ne].type==="name"&&Ot(v[ne].valueSet,W))v[ne].value=W;else if(v[ne].type==="integer"&&Number.isInteger(W))v[ne].value=W;else if(v[ne].type==="array"){for(rt=0;rt<W.length;rt+=1)if(U=!0,W[rt].length===1&&typeof W[rt][0]=="number")ke.push(String(W[rt]-1));else if(W[rt].length>1){for(vt=0;vt<W[rt].length;vt+=1)typeof W[rt][vt]!="number"&&(U=!1);U===!0&&ke.push([W[rt][0]-1,W[rt][1]-1].join(" "))}v[ne].value="["+ke.join(" ")+"]"}else v[ne].value=v[ne].defaultValue;v[ne].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var cr,tr=[];for(cr in v)v[cr].explicitSet===!0&&(v[cr].type==="name"?tr.push("/"+cr+" /"+v[cr].value):tr.push("/"+cr+" "+v[cr].value));tr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+tr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=v,this},function(b){var c=function(){var U='<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>',ne=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),W=unescape(encodeURIComponent(U)),ge=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),De=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ke=unescape(encodeURIComponent("</x:xmpmeta>")),rt=W.length+ge.length+De.length+ne.length+ke.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+rt+" >>"),this.internal.write("stream"),this.internal.write(ne+W+ge+De+ke),this.internal.write("endstream"),this.internal.write("endobj")},v=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};b.addMetadata=function(U,ne){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:U,namespaceuri:ne||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",v),this.internal.events.subscribe("postPutResources",c)),this}}(Ni.API),function(b){var c=b.API,v=c.pdfEscape16=function(W,ge){for(var De,ke=ge.metadata.Unicode.widths,rt=["","0","00","000","0000"],vt=[""],yt=0,Ot=W.length;yt<Ot;++yt){if(De=ge.metadata.characterToGlyph(W.charCodeAt(yt)),ge.metadata.glyIdsUsed.push(De),ge.metadata.toUnicode[De]=W.charCodeAt(yt),ke.indexOf(De)==-1&&(ke.push(De),ke.push([parseInt(ge.metadata.widthOfGlyph(De),10)])),De=="0")return vt.join("");De=De.toString(16),vt.push(rt[4-De.length],De)}return vt.join("")},U=function(W){var ge,De,ke,rt,vt,yt,Ot;for(vt=`/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`,ke=[],yt=0,Ot=(De=Object.keys(W).sort(function(Ve,cr){return Ve-cr})).length;yt<Ot;yt++)ge=De[yt],ke.length>=100&&(vt+=`
|
|
|
`+ke.length+` beginbfchar
|
|
|
`+ke.join(`
|
|
|
`)+`
|
|
|
endbfchar`,ke=[]),W[ge]!==void 0&&W[ge]!==null&&typeof W[ge].toString=="function"&&(rt=("0000"+W[ge].toString(16)).slice(-4),ge=("0000"+(+ge).toString(16)).slice(-4),ke.push("<"+ge+"><"+rt+">"));return ke.length&&(vt+=`
|
|
|
`+ke.length+` beginbfchar
|
|
|
`+ke.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),vt+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};c.events.push(["putFont",function(W){(function(ge){var De=ge.font,ke=ge.out,rt=ge.newObject,vt=ge.putStream;if(De.metadata instanceof b.API.TTFFont&&De.encoding==="Identity-H"){for(var yt=De.metadata.Unicode.widths,Ot=De.metadata.subset.encode(De.metadata.glyIdsUsed,1),Ve="",cr=0;cr<Ot.length;cr++)Ve+=String.fromCharCode(Ot[cr]);var tr=rt();vt({data:Ve,addLength1:!0,objectId:tr}),ke("endobj");var hr=rt();vt({data:U(De.metadata.toUnicode),addLength1:!0,objectId:hr}),ke("endobj");var jt=rt();ke("<<"),ke("/Type /FontDescriptor"),ke("/FontName /"+_a(De.fontName)),ke("/FontFile2 "+tr+" 0 R"),ke("/FontBBox "+b.API.PDFObject.convert(De.metadata.bbox)),ke("/Flags "+De.metadata.flags),ke("/StemV "+De.metadata.stemV),ke("/ItalicAngle "+De.metadata.italicAngle),ke("/Ascent "+De.metadata.ascender),ke("/Descent "+De.metadata.decender),ke("/CapHeight "+De.metadata.capHeight),ke(">>"),ke("endobj");var Ar=rt();ke("<<"),ke("/Type /Font"),ke("/BaseFont /"+_a(De.fontName)),ke("/FontDescriptor "+jt+" 0 R"),ke("/W "+b.API.PDFObject.convert(yt)),ke("/CIDToGIDMap /Identity"),ke("/DW 1000"),ke("/Subtype /CIDFontType2"),ke("/CIDSystemInfo"),ke("<<"),ke("/Supplement 0"),ke("/Registry (Adobe)"),ke("/Ordering ("+De.encoding+")"),ke(">>"),ke(">>"),ke("endobj"),De.objectNumber=rt(),ke("<<"),ke("/Type /Font"),ke("/Subtype /Type0"),ke("/ToUnicode "+hr+" 0 R"),ke("/BaseFont /"+_a(De.fontName)),ke("/Encoding /"+De.encoding),ke("/DescendantFonts ["+Ar+" 0 R]"),ke(">>"),ke("endobj"),De.isAlreadyPutted=!0}})(W)}]),c.events.push(["putFont",function(W){(function(ge){var De=ge.font,ke=ge.out,rt=ge.newObject,vt=ge.putStream;if(De.metadata instanceof b.API.TTFFont&&De.encoding==="WinAnsiEncoding"){for(var yt=De.metadata.rawData,Ot="",Ve=0;Ve<yt.length;Ve++)Ot+=String.fromCharCode(yt[Ve]);var cr=rt();vt({data:Ot,addLength1:!0,objectId:cr}),ke("endobj");var tr=rt();vt({data:U(De.metadata.toUnicode),addLength1:!0,objectId:tr}),ke("endobj");var hr=rt();ke("<<"),ke("/Descent "+De.metadata.decender),ke("/CapHeight "+De.metadata.capHeight),ke("/StemV "+De.metadata.stemV),ke("/Type /FontDescriptor"),ke("/FontFile2 "+cr+" 0 R"),ke("/Flags 96"),ke("/FontBBox "+b.API.PDFObject.convert(De.metadata.bbox)),ke("/FontName /"+_a(De.fontName)),ke("/ItalicAngle "+De.metadata.italicAngle),ke("/Ascent "+De.metadata.ascender),ke(">>"),ke("endobj"),De.objectNumber=rt();for(var jt=0;jt<De.metadata.hmtx.widths.length;jt++)De.metadata.hmtx.widths[jt]=parseInt(De.metadata.hmtx.widths[jt]*(1e3/De.metadata.head.unitsPerEm));ke("<</Subtype/TrueType/Type/Font/ToUnicode "+tr+" 0 R/BaseFont/"+_a(De.fontName)+"/FontDescriptor "+hr+" 0 R/Encoding/"+De.encoding+" /FirstChar 29 /LastChar 255 /Widths "+b.API.PDFObject.convert(De.metadata.hmtx.widths)+">>"),ke("endobj"),De.isAlreadyPutted=!0}})(W)}]);var ne=function(W){var ge,De=W.text||"",ke=W.x,rt=W.y,vt=W.options||{},yt=W.mutex||{},Ot=yt.pdfEscape,Ve=yt.activeFontKey,cr=yt.fonts,tr=Ve,hr="",jt=0,Ar="",kr=cr[tr].encoding;if(cr[tr].encoding!=="Identity-H")return{text:De,x:ke,y:rt,options:vt,mutex:yt};for(Ar=De,tr=Ve,Array.isArray(De)&&(Ar=De[0]),jt=0;jt<Ar.length;jt+=1)cr[tr].metadata.hasOwnProperty("cmap")&&(ge=cr[tr].metadata.cmap.unicode.codeMap[Ar[jt].charCodeAt(0)]),ge||Ar[jt].charCodeAt(0)<256&&cr[tr].metadata.hasOwnProperty("Unicode")?hr+=Ar[jt]:hr+="";var ln="";return parseInt(tr.slice(1))<14||kr==="WinAnsiEncoding"?ln=Ot(hr,tr).split("").map(function(Ln){return Ln.charCodeAt(0).toString(16)}).join(""):kr==="Identity-H"&&(ln=v(hr,cr[tr])),yt.isHex=!0,{text:ln,x:ke,y:rt,options:vt,mutex:yt}};c.events.push(["postProcessText",function(W){var ge=W.text||"",De=[],ke={text:ge,x:W.x,y:W.y,options:W.options,mutex:W.mutex};if(Array.isArray(ge)){var rt=0;for(rt=0;rt<ge.length;rt+=1)Array.isArray(ge[rt])&&ge[rt].length===3?De.push([ne(Object.assign({},ke,{text:ge[rt][0]})).text,ge[rt][1],ge[rt][2]]):De.push(ne(Object.assign({},ke,{text:ge[rt]})).text);W.text=De}else W.text=ne(Object.assign({},ke,{text:ge})).text}])}(Ni),function(b){var c=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};b.existsFileInVFS=function(v){return c.call(this),this.internal.vFS[v]!==void 0},b.addFileToVFS=function(v,U){return c.call(this),this.internal.vFS[v]=U,this},b.getFileFromVFS=function(v){return c.call(this),this.internal.vFS[v]!==void 0?this.internal.vFS[v]:null}}(Ni.API),function(b){b.__bidiEngine__=b.prototype.__bidiEngine__=function(U){var ne,W,ge,De,ke,rt,vt,yt=c,Ot=[[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]],Ve=[[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]],cr={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},tr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},hr=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],jt=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)$/),Ar=!1,kr=0;this.__bidiEngine__={};var ln=function(zt){var nr=zt.charCodeAt(),Nr=nr>>8,ve=tr[Nr];return ve!==void 0?yt[256*ve+(255&nr)]:Nr===252||Nr===253?"AL":jt.test(Nr)?"L":Nr===8?"R":"N"},Ln=function(zt){for(var nr,Nr=0;Nr<zt.length;Nr++){if((nr=ln(zt.charAt(Nr)))==="L")return!1;if(nr==="R")return!0}return!1},Ai=function(zt,nr,Nr,ve){var Pe,Xe,lt,ut,xt=nr[ve];switch(xt){case"L":case"R":Ar=!1;break;case"N":case"AN":break;case"EN":Ar&&(xt="AN");break;case"AL":Ar=!0,xt="R";break;case"WS":xt="N";break;case"CS":ve<1||ve+1>=nr.length||(Pe=Nr[ve-1])!=="EN"&&Pe!=="AN"||(Xe=nr[ve+1])!=="EN"&&Xe!=="AN"?xt="N":Ar&&(Xe="AN"),xt=Xe===Pe?Xe:"N";break;case"ES":xt=(Pe=ve>0?Nr[ve-1]:"B")==="EN"&&ve+1<nr.length&&nr[ve+1]==="EN"?"EN":"N";break;case"ET":if(ve>0&&Nr[ve-1]==="EN"){xt="EN";break}if(Ar){xt="N";break}for(lt=ve+1,ut=nr.length;lt<ut&&nr[lt]==="ET";)lt++;xt=lt<ut&&nr[lt]==="EN"?"EN":"N";break;case"NSM":if(ge&&!De){for(ut=nr.length,lt=ve+1;lt<ut&&nr[lt]==="NSM";)lt++;if(lt<ut){var Qt=zt[ve],lr=Qt>=1425&&Qt<=2303||Qt===64286;if(Pe=nr[lt],lr&&(Pe==="R"||Pe==="AL")){xt="R";break}}}xt=ve<1||(Pe=nr[ve-1])==="B"?"N":Nr[ve-1];break;case"B":Ar=!1,ne=!0,xt=kr;break;case"S":W=!0,xt="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Ar=!1;break;case"BN":xt="N"}return xt},hn=function(zt,nr,Nr){var ve=zt.split("");return Nr&&Br(ve,Nr,{hiLevel:kr}),ve.reverse(),nr&&nr.reverse(),ve.join("")},Br=function(zt,nr,Nr){var ve,Pe,Xe,lt,ut,xt=-1,Qt=zt.length,lr=0,He=[],At=kr?Ve:Ot,Te=[];for(Ar=!1,ne=!1,W=!1,Pe=0;Pe<Qt;Pe++)Te[Pe]=ln(zt[Pe]);for(Xe=0;Xe<Qt;Xe++){if(ut=lr,He[Xe]=Ai(zt,Te,He,Xe),ve=240&(lr=At[ut][cr[He[Xe]]]),lr&=15,nr[Xe]=lt=At[lr][5],ve>0)if(ve===16){for(Pe=xt;Pe<Xe;Pe++)nr[Pe]=1;xt=-1}else xt=-1;if(At[lr][6])xt===-1&&(xt=Xe);else if(xt>-1){for(Pe=xt;Pe<Xe;Pe++)nr[Pe]=lt;xt=-1}Te[Xe]==="B"&&(nr[Xe]=0),Nr.hiLevel|=lt}W&&function(Ft,er,or){for(var ur=0;ur<or;ur++)if(Ft[ur]==="S"){er[ur]=kr;for(var St=ur-1;St>=0&&Ft[St]==="WS";St--)er[St]=kr}}(Te,nr,Qt)},vn=function(zt,nr,Nr,ve,Pe){if(!(Pe.hiLevel<zt)){if(zt===1&&kr===1&&!ne)return nr.reverse(),void(Nr&&Nr.reverse());for(var Xe,lt,ut,xt,Qt=nr.length,lr=0;lr<Qt;){if(ve[lr]>=zt){for(ut=lr+1;ut<Qt&&ve[ut]>=zt;)ut++;for(xt=lr,lt=ut-1;xt<lt;xt++,lt--)Xe=nr[xt],nr[xt]=nr[lt],nr[lt]=Xe,Nr&&(Xe=Nr[xt],Nr[xt]=Nr[lt],Nr[lt]=Xe);lr=ut}lr++}}},Gn=function(zt,nr,Nr){var ve=zt.split(""),Pe={hiLevel:kr};return Nr||(Nr=[]),Br(ve,Nr,Pe),function(Xe,lt,ut){if(ut.hiLevel!==0&&vt)for(var xt,Qt=0;Qt<Xe.length;Qt++)lt[Qt]===1&&(xt=hr.indexOf(Xe[Qt]))>=0&&(Xe[Qt]=hr[xt+1])}(ve,Nr,Pe),vn(2,ve,nr,Nr,Pe),vn(1,ve,nr,Nr,Pe),ve.join("")};return this.__bidiEngine__.doBidiReorder=function(zt,nr,Nr){if(function(Pe,Xe){if(Xe)for(var lt=0;lt<Pe.length;lt++)Xe[lt]=lt;De===void 0&&(De=Ln(Pe)),rt===void 0&&(rt=Ln(Pe))}(zt,nr),ge||!ke||rt)if(ge&&ke&&De^rt)kr=De?1:0,zt=hn(zt,nr,Nr);else if(!ge&&ke&&rt)kr=De?1:0,zt=Gn(zt,nr,Nr),zt=hn(zt,nr);else if(!ge||De||ke||rt){if(ge&&!ke&&De^rt)zt=hn(zt,nr),De?(kr=0,zt=Gn(zt,nr,Nr)):(kr=1,zt=Gn(zt,nr,Nr),zt=hn(zt,nr));else if(ge&&De&&!ke&&rt)kr=1,zt=Gn(zt,nr,Nr),zt=hn(zt,nr);else if(!ge&&!ke&&De^rt){var ve=vt;De?(kr=1,zt=Gn(zt,nr,Nr),kr=0,vt=!1,zt=Gn(zt,nr,Nr),vt=ve):(kr=0,zt=Gn(zt,nr,Nr),zt=hn(zt,nr),kr=1,vt=!1,zt=Gn(zt,nr,Nr),vt=ve,zt=hn(zt,nr))}}else kr=0,zt=Gn(zt,nr,Nr);else kr=De?1:0,zt=Gn(zt,nr,Nr);return zt},this.__bidiEngine__.setOptions=function(zt){zt&&(ge=zt.isInputVisual,ke=zt.isOutputVisual,De=zt.isInputRtl,rt=zt.isOutputRtl,vt=zt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(U),this.__bidiEngine__};var c=["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"],v=new b.__bidiEngine__({isInputVisual:!0});b.API.events.push(["postProcessText",function(U){var ne=U.text;U.x,U.y;var W=U.options||{};U.mutex,W.lang;var ge=[];if(W.isInputVisual=typeof W.isInputVisual!="boolean"||W.isInputVisual,v.setOptions(W),Object.prototype.toString.call(ne)==="[object Array]"){var De=0;for(ge=[],De=0;De<ne.length;De+=1)Object.prototype.toString.call(ne[De])==="[object Array]"?ge.push([v.doBidiReorder(ne[De][0]),ne[De][1],ne[De][2]]):ge.push([v.doBidiReorder(ne[De])]);U.text=ge}else U.text=v.doBidiReorder(ne);v.setOptions({isInputVisual:!0})}])}(Ni),Ni.API.TTFFont=function(){function b(c){var v;if(this.rawData=c,v=this.contents=new Va(c),this.contents.pos=4,v.readString(4)==="ttcf")throw new Error("TTCF not supported.");v.pos=0,this.parse(),this.subset=new ku(this),this.registerTTF()}return b.open=function(c){return new b(c)},b.prototype.parse=function(){return this.directory=new ms(this.contents),this.head=new Xs(this),this.name=new ci(this),this.cmap=new al(this),this.toUnicode={},this.hhea=new Ul(this),this.maxp=new du(this),this.hmtx=new ru(this),this.post=new Ql(this),this.os2=new Au(this),this.loca=new tl(this),this.glyf=new nc(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]},b.prototype.registerTTF=function(){var c,v,U,ne,W;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ge,De,ke,rt;for(rt=[],ge=0,De=(ke=this.bbox).length;ge<De;ge++)c=ke[ge],rt.push(Math.round(c*this.scaleFactor));return rt}.call(this),this.stemV=0,this.post.exists?(U=255&(ne=this.post.italic_angle),32768&(v=ne>>16)&&(v=-(1+(65535^v))),this.italicAngle=+(v+"."+U)):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=(W=this.familyClass)===1||W===2||W===3||W===4||W===5||W===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")},b.prototype.characterToGlyph=function(c){var v;return((v=this.cmap.unicode)!=null?v.codeMap[c]:void 0)||0},b.prototype.widthOfGlyph=function(c){var v;return v=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(c).advance*v},b.prototype.widthOfString=function(c,v,U){var ne,W,ge,De;for(ge=0,W=0,De=(c=""+c).length;0<=De?W<De:W>De;W=0<=De?++W:--W)ne=c.charCodeAt(W),ge+=this.widthOfGlyph(this.characterToGlyph(ne))+U*(1e3/v)||0;return ge*(v/1e3)},b.prototype.lineHeight=function(c,v){var U;return v==null&&(v=!1),U=v?this.lineGap:0,(this.ascender+U-this.decender)/1e3*c},b}();var To,Va=function(){function b(c){this.data=c!=null?c:[],this.pos=0,this.length=this.data.length}return b.prototype.readByte=function(){return this.data[this.pos++]},b.prototype.writeByte=function(c){return this.data[this.pos++]=c},b.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},b.prototype.writeUInt32=function(c){return this.writeByte(c>>>24&255),this.writeByte(c>>16&255),this.writeByte(c>>8&255),this.writeByte(255&c)},b.prototype.readInt32=function(){var c;return(c=this.readUInt32())>=2147483648?c-4294967296:c},b.prototype.writeInt32=function(c){return c<0&&(c+=4294967296),this.writeUInt32(c)},b.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},b.prototype.writeUInt16=function(c){return this.writeByte(c>>8&255),this.writeByte(255&c)},b.prototype.readInt16=function(){var c;return(c=this.readUInt16())>=32768?c-65536:c},b.prototype.writeInt16=function(c){return c<0&&(c+=65536),this.writeUInt16(c)},b.prototype.readString=function(c){var v,U;for(U=[],v=0;0<=c?v<c:v>c;v=0<=c?++v:--v)U[v]=String.fromCharCode(this.readByte());return U.join("")},b.prototype.writeString=function(c){var v,U,ne;for(ne=[],v=0,U=c.length;0<=U?v<U:v>U;v=0<=U?++v:--v)ne.push(this.writeByte(c.charCodeAt(v)));return ne},b.prototype.readShort=function(){return this.readInt16()},b.prototype.writeShort=function(c){return this.writeInt16(c)},b.prototype.readLongLong=function(){var c,v,U,ne,W,ge,De,ke;return c=this.readByte(),v=this.readByte(),U=this.readByte(),ne=this.readByte(),W=this.readByte(),ge=this.readByte(),De=this.readByte(),ke=this.readByte(),128&c?-1*(72057594037927940*(255^c)+281474976710656*(255^v)+1099511627776*(255^U)+4294967296*(255^ne)+16777216*(255^W)+65536*(255^ge)+256*(255^De)+(255^ke)+1):72057594037927940*c+281474976710656*v+1099511627776*U+4294967296*ne+16777216*W+65536*ge+256*De+ke},b.prototype.writeLongLong=function(c){var v,U;return v=Math.floor(c/4294967296),U=4294967295&c,this.writeByte(v>>24&255),this.writeByte(v>>16&255),this.writeByte(v>>8&255),this.writeByte(255&v),this.writeByte(U>>24&255),this.writeByte(U>>16&255),this.writeByte(U>>8&255),this.writeByte(255&U)},b.prototype.readInt=function(){return this.readInt32()},b.prototype.writeInt=function(c){return this.writeInt32(c)},b.prototype.read=function(c){var v,U;for(v=[],U=0;0<=c?U<c:U>c;U=0<=c?++U:--U)v.push(this.readByte());return v},b.prototype.write=function(c){var v,U,ne,W;for(W=[],U=0,ne=c.length;U<ne;U++)v=c[U],W.push(this.writeByte(v));return W},b}(),ms=function(){var b;function c(v){var U,ne,W;for(this.scalarType=v.readInt(),this.tableCount=v.readShort(),this.searchRange=v.readShort(),this.entrySelector=v.readShort(),this.rangeShift=v.readShort(),this.tables={},ne=0,W=this.tableCount;0<=W?ne<W:ne>W;ne=0<=W?++ne:--ne)U={tag:v.readString(4),checksum:v.readInt(),offset:v.readInt(),length:v.readInt()},this.tables[U.tag]=U}return c.prototype.encode=function(v){var U,ne,W,ge,De,ke,rt,vt,yt,Ot,Ve,cr,tr;for(tr in Ve=Object.keys(v).length,ke=Math.log(2),yt=16*Math.floor(Math.log(Ve)/ke),ge=Math.floor(yt/ke),vt=16*Ve-yt,(ne=new Va).writeInt(this.scalarType),ne.writeShort(Ve),ne.writeShort(yt),ne.writeShort(ge),ne.writeShort(vt),W=16*Ve,rt=ne.pos+W,De=null,cr=[],v)for(Ot=v[tr],ne.writeString(tr),ne.writeInt(b(Ot)),ne.writeInt(rt),ne.writeInt(Ot.length),cr=cr.concat(Ot),tr==="head"&&(De=rt),rt+=Ot.length;rt%4;)cr.push(0),rt++;return ne.write(cr),U=2981146554-b(ne.data),ne.pos=De+8,ne.writeUInt32(U),ne.data},b=function(v){var U,ne,W,ge;for(v=rc.call(v);v.length%4;)v.push(0);for(W=new Va(v),ne=0,U=0,ge=v.length;U<ge;U=U+=4)ne+=W.readUInt32();return 4294967295&ne},c}(),Ja={}.hasOwnProperty,ws=function(b,c){for(var v in c)Ja.call(c,v)&&(b[v]=c[v]);function U(){this.constructor=b}return U.prototype=c.prototype,b.prototype=new U,b.__super__=c.prototype,b};To=function(){function b(c){var v;this.file=c,v=this.file.directory.tables[this.tag],this.exists=!!v,v&&(this.offset=v.offset,this.length=v.length,this.parse(this.file.contents))}return b.prototype.parse=function(){},b.prototype.encode=function(){},b.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},b}();var Xs=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="head",c.prototype.parse=function(v){return v.pos=this.offset,this.version=v.readInt(),this.revision=v.readInt(),this.checkSumAdjustment=v.readInt(),this.magicNumber=v.readInt(),this.flags=v.readShort(),this.unitsPerEm=v.readShort(),this.created=v.readLongLong(),this.modified=v.readLongLong(),this.xMin=v.readShort(),this.yMin=v.readShort(),this.xMax=v.readShort(),this.yMax=v.readShort(),this.macStyle=v.readShort(),this.lowestRecPPEM=v.readShort(),this.fontDirectionHint=v.readShort(),this.indexToLocFormat=v.readShort(),this.glyphDataFormat=v.readShort()},c.prototype.encode=function(v){var U;return(U=new Va).writeInt(this.version),U.writeInt(this.revision),U.writeInt(this.checkSumAdjustment),U.writeInt(this.magicNumber),U.writeShort(this.flags),U.writeShort(this.unitsPerEm),U.writeLongLong(this.created),U.writeLongLong(this.modified),U.writeShort(this.xMin),U.writeShort(this.yMin),U.writeShort(this.xMax),U.writeShort(this.yMax),U.writeShort(this.macStyle),U.writeShort(this.lowestRecPPEM),U.writeShort(this.fontDirectionHint),U.writeShort(v),U.writeShort(this.glyphDataFormat),U.data},c}(),El=function(){function b(c,v){var U,ne,W,ge,De,ke,rt,vt,yt,Ot,Ve,cr,tr,hr,jt,Ar,kr;switch(this.platformID=c.readUInt16(),this.encodingID=c.readShort(),this.offset=v+c.readInt(),yt=c.pos,c.pos=this.offset,this.format=c.readUInt16(),this.length=c.readUInt16(),this.language=c.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(ke=0;ke<256;++ke)this.codeMap[ke]=c.readByte();break;case 4:for(Ve=c.readUInt16(),Ot=Ve/2,c.pos+=6,W=function(){var ln,Ln;for(Ln=[],ke=ln=0;0<=Ot?ln<Ot:ln>Ot;ke=0<=Ot?++ln:--ln)Ln.push(c.readUInt16());return Ln}(),c.pos+=2,tr=function(){var ln,Ln;for(Ln=[],ke=ln=0;0<=Ot?ln<Ot:ln>Ot;ke=0<=Ot?++ln:--ln)Ln.push(c.readUInt16());return Ln}(),rt=function(){var ln,Ln;for(Ln=[],ke=ln=0;0<=Ot?ln<Ot:ln>Ot;ke=0<=Ot?++ln:--ln)Ln.push(c.readUInt16());return Ln}(),vt=function(){var ln,Ln;for(Ln=[],ke=ln=0;0<=Ot?ln<Ot:ln>Ot;ke=0<=Ot?++ln:--ln)Ln.push(c.readUInt16());return Ln}(),ne=(this.length-c.pos+this.offset)/2,De=function(){var ln,Ln;for(Ln=[],ke=ln=0;0<=ne?ln<ne:ln>ne;ke=0<=ne?++ln:--ln)Ln.push(c.readUInt16());return Ln}(),ke=jt=0,kr=W.length;jt<kr;ke=++jt)for(hr=W[ke],U=Ar=cr=tr[ke];cr<=hr?Ar<=hr:Ar>=hr;U=cr<=hr?++Ar:--Ar)vt[ke]===0?ge=U+rt[ke]:(ge=De[vt[ke]/2+(U-cr)-(Ot-ke)]||0)!==0&&(ge+=rt[ke]),this.codeMap[U]=65535&ge}c.pos=yt}return b.encode=function(c,v){var U,ne,W,ge,De,ke,rt,vt,yt,Ot,Ve,cr,tr,hr,jt,Ar,kr,ln,Ln,Ai,hn,Br,vn,Gn,zt,nr,Nr,ve,Pe,Xe,lt,ut,xt,Qt,lr,He,At,Te,Ft,er,or,ur,St,Gr,Zr,sn;switch(ve=new Va,ge=Object.keys(c).sort(function(An,ni){return An-ni}),v){case"macroman":for(tr=0,hr=function(){var An=[];for(cr=0;cr<256;++cr)An.push(0);return An}(),Ar={0:0},W={},Pe=0,xt=ge.length;Pe<xt;Pe++)Ar[St=c[ne=ge[Pe]]]==null&&(Ar[St]=++tr),W[ne]={old:c[ne],new:Ar[c[ne]]},hr[ne]=Ar[c[ne]];return ve.writeUInt16(1),ve.writeUInt16(0),ve.writeUInt32(12),ve.writeUInt16(0),ve.writeUInt16(262),ve.writeUInt16(0),ve.write(hr),{charMap:W,subtable:ve.data,maxGlyphID:tr+1};case"unicode":for(nr=[],yt=[],kr=0,Ar={},U={},jt=rt=null,Xe=0,Qt=ge.length;Xe<Qt;Xe++)Ar[Ln=c[ne=ge[Xe]]]==null&&(Ar[Ln]=++kr),U[ne]={old:Ln,new:Ar[Ln]},De=Ar[Ln]-ne,jt!=null&&De===rt||(jt&&yt.push(jt),nr.push(ne),rt=De),jt=ne;for(jt&&yt.push(jt),yt.push(65535),nr.push(65535),Gn=2*(vn=nr.length),Br=2*Math.pow(Math.log(vn)/Math.LN2,2),Ot=Math.log(Br/2)/Math.LN2,hn=2*vn-Br,ke=[],Ai=[],Ve=[],cr=lt=0,lr=nr.length;lt<lr;cr=++lt){if(zt=nr[cr],vt=yt[cr],zt===65535){ke.push(0),Ai.push(0);break}if(zt-(Nr=U[zt].new)>=32768)for(ke.push(0),Ai.push(2*(Ve.length+vn-cr)),ne=ut=zt;zt<=vt?ut<=vt:ut>=vt;ne=zt<=vt?++ut:--ut)Ve.push(U[ne].new);else ke.push(Nr-zt),Ai.push(0)}for(ve.writeUInt16(3),ve.writeUInt16(1),ve.writeUInt32(12),ve.writeUInt16(4),ve.writeUInt16(16+8*vn+2*Ve.length),ve.writeUInt16(0),ve.writeUInt16(Gn),ve.writeUInt16(Br),ve.writeUInt16(Ot),ve.writeUInt16(hn),or=0,He=yt.length;or<He;or++)ne=yt[or],ve.writeUInt16(ne);for(ve.writeUInt16(0),ur=0,At=nr.length;ur<At;ur++)ne=nr[ur],ve.writeUInt16(ne);for(Gr=0,Te=ke.length;Gr<Te;Gr++)De=ke[Gr],ve.writeUInt16(De);for(Zr=0,Ft=Ai.length;Zr<Ft;Zr++)ln=Ai[Zr],ve.writeUInt16(ln);for(sn=0,er=Ve.length;sn<er;sn++)tr=Ve[sn],ve.writeUInt16(tr);return{charMap:U,subtable:ve.data,maxGlyphID:kr+1}}},b}(),al=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="cmap",c.prototype.parse=function(v){var U,ne,W;for(v.pos=this.offset,this.version=v.readUInt16(),W=v.readUInt16(),this.tables=[],this.unicode=null,ne=0;0<=W?ne<W:ne>W;ne=0<=W?++ne:--ne)U=new El(v,this.offset),this.tables.push(U),U.isUnicode&&this.unicode==null&&(this.unicode=U);return!0},c.encode=function(v,U){var ne,W;return U==null&&(U="macroman"),ne=El.encode(v,U),(W=new Va).writeUInt16(0),W.writeUInt16(1),ne.table=W.data.concat(ne.subtable),ne},c}(),Ul=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="hhea",c.prototype.parse=function(v){return v.pos=this.offset,this.version=v.readInt(),this.ascender=v.readShort(),this.decender=v.readShort(),this.lineGap=v.readShort(),this.advanceWidthMax=v.readShort(),this.minLeftSideBearing=v.readShort(),this.minRightSideBearing=v.readShort(),this.xMaxExtent=v.readShort(),this.caretSlopeRise=v.readShort(),this.caretSlopeRun=v.readShort(),this.caretOffset=v.readShort(),v.pos+=8,this.metricDataFormat=v.readShort(),this.numberOfMetrics=v.readUInt16()},c}(),Au=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="OS/2",c.prototype.parse=function(v){if(v.pos=this.offset,this.version=v.readUInt16(),this.averageCharWidth=v.readShort(),this.weightClass=v.readUInt16(),this.widthClass=v.readUInt16(),this.type=v.readShort(),this.ySubscriptXSize=v.readShort(),this.ySubscriptYSize=v.readShort(),this.ySubscriptXOffset=v.readShort(),this.ySubscriptYOffset=v.readShort(),this.ySuperscriptXSize=v.readShort(),this.ySuperscriptYSize=v.readShort(),this.ySuperscriptXOffset=v.readShort(),this.ySuperscriptYOffset=v.readShort(),this.yStrikeoutSize=v.readShort(),this.yStrikeoutPosition=v.readShort(),this.familyClass=v.readShort(),this.panose=function(){var U,ne;for(ne=[],U=0;U<10;++U)ne.push(v.readByte());return ne}(),this.charRange=function(){var U,ne;for(ne=[],U=0;U<4;++U)ne.push(v.readInt());return ne}(),this.vendorID=v.readString(4),this.selection=v.readShort(),this.firstCharIndex=v.readShort(),this.lastCharIndex=v.readShort(),this.version>0&&(this.ascent=v.readShort(),this.descent=v.readShort(),this.lineGap=v.readShort(),this.winAscent=v.readShort(),this.winDescent=v.readShort(),this.codePageRange=function(){var U,ne;for(ne=[],U=0;U<2;U=++U)ne.push(v.readInt());return ne}(),this.version>1))return this.xHeight=v.readShort(),this.capHeight=v.readShort(),this.defaultChar=v.readShort(),this.breakChar=v.readShort(),this.maxContext=v.readShort()},c}(),Ql=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="post",c.prototype.parse=function(v){var U,ne,W;switch(v.pos=this.offset,this.format=v.readInt(),this.italicAngle=v.readInt(),this.underlinePosition=v.readShort(),this.underlineThickness=v.readShort(),this.isFixedPitch=v.readInt(),this.minMemType42=v.readInt(),this.maxMemType42=v.readInt(),this.minMemType1=v.readInt(),this.maxMemType1=v.readInt(),this.format){case 65536:break;case 131072:var ge;for(ne=v.readUInt16(),this.glyphNameIndex=[],ge=0;0<=ne?ge<ne:ge>ne;ge=0<=ne?++ge:--ge)this.glyphNameIndex.push(v.readUInt16());for(this.names=[],W=[];v.pos<this.offset+this.length;)U=v.readByte(),W.push(this.names.push(v.readString(U)));return W;case 151552:return ne=v.readUInt16(),this.offsets=v.read(ne);case 196608:break;case 262144:return this.map=function(){var De,ke,rt;for(rt=[],ge=De=0,ke=this.file.maxp.numGlyphs;0<=ke?De<ke:De>ke;ge=0<=ke?++De:--De)rt.push(v.readUInt32());return rt}.call(this)}},c}(),jl=function(b,c){this.raw=b,this.length=b.length,this.platformID=c.platformID,this.encodingID=c.encodingID,this.languageID=c.languageID},ci=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="name",c.prototype.parse=function(v){var U,ne,W,ge,De,ke,rt,vt,yt,Ot,Ve;for(v.pos=this.offset,v.readShort(),U=v.readShort(),ke=v.readShort(),ne=[],ge=0;0<=U?ge<U:ge>U;ge=0<=U?++ge:--ge)ne.push({platformID:v.readShort(),encodingID:v.readShort(),languageID:v.readShort(),nameID:v.readShort(),length:v.readShort(),offset:this.offset+ke+v.readShort()});for(rt={},ge=yt=0,Ot=ne.length;yt<Ot;ge=++yt)W=ne[ge],v.pos=W.offset,vt=v.readString(W.length),De=new jl(vt,W),rt[Ve=W.nameID]==null&&(rt[Ve]=[]),rt[W.nameID].push(De);this.strings=rt,this.copyright=rt[0],this.fontFamily=rt[1],this.fontSubfamily=rt[2],this.uniqueSubfamily=rt[3],this.fontName=rt[4],this.version=rt[5];try{this.postscriptName=rt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(cr){this.postscriptName=rt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=rt[7],this.manufacturer=rt[8],this.designer=rt[9],this.description=rt[10],this.vendorUrl=rt[11],this.designerUrl=rt[12],this.license=rt[13],this.licenseUrl=rt[14],this.preferredFamily=rt[15],this.preferredSubfamily=rt[17],this.compatibleFull=rt[18],this.sampleText=rt[19]},c}(),du=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="maxp",c.prototype.parse=function(v){return v.pos=this.offset,this.version=v.readInt(),this.numGlyphs=v.readUInt16(),this.maxPoints=v.readUInt16(),this.maxContours=v.readUInt16(),this.maxCompositePoints=v.readUInt16(),this.maxComponentContours=v.readUInt16(),this.maxZones=v.readUInt16(),this.maxTwilightPoints=v.readUInt16(),this.maxStorage=v.readUInt16(),this.maxFunctionDefs=v.readUInt16(),this.maxInstructionDefs=v.readUInt16(),this.maxStackElements=v.readUInt16(),this.maxSizeOfInstructions=v.readUInt16(),this.maxComponentElements=v.readUInt16(),this.maxComponentDepth=v.readUInt16()},c}(),ru=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="hmtx",c.prototype.parse=function(v){var U,ne,W,ge,De,ke,rt;for(v.pos=this.offset,this.metrics=[],U=0,ke=this.file.hhea.numberOfMetrics;0<=ke?U<ke:U>ke;U=0<=ke?++U:--U)this.metrics.push({advance:v.readUInt16(),lsb:v.readInt16()});for(W=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var vt,yt;for(yt=[],U=vt=0;0<=W?vt<W:vt>W;U=0<=W?++vt:--vt)yt.push(v.readInt16());return yt}(),this.widths=function(){var vt,yt,Ot,Ve;for(Ve=[],vt=0,yt=(Ot=this.metrics).length;vt<yt;vt++)ge=Ot[vt],Ve.push(ge.advance);return Ve}.call(this),ne=this.widths[this.widths.length-1],rt=[],U=De=0;0<=W?De<W:De>W;U=0<=W?++De:--De)rt.push(this.widths.push(ne));return rt},c.prototype.forGlyph=function(v){return v in this.metrics?this.metrics[v]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[v-this.metrics.length]}},c}(),rc=[].slice,nc=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="glyf",c.prototype.parse=function(){return this.cache={}},c.prototype.glyphFor=function(v){var U,ne,W,ge,De,ke,rt,vt,yt,Ot;return v in this.cache?this.cache[v]:(ge=this.file.loca,U=this.file.contents,ne=ge.indexOf(v),(W=ge.lengthOf(v))===0?this.cache[v]=null:(U.pos=this.offset+ne,De=(ke=new Va(U.read(W))).readShort(),vt=ke.readShort(),Ot=ke.readShort(),rt=ke.readShort(),yt=ke.readShort(),this.cache[v]=De===-1?new ic(ke,vt,Ot,rt,yt):new fu(ke,De,vt,Ot,rt,yt),this.cache[v]))},c.prototype.encode=function(v,U,ne){var W,ge,De,ke,rt;for(De=[],ge=[],ke=0,rt=U.length;ke<rt;ke++)W=v[U[ke]],ge.push(De.length),W&&(De=De.concat(W.encode(ne)));return ge.push(De.length),{table:De,offsets:ge}},c}(),fu=function(){function b(c,v,U,ne,W,ge){this.raw=c,this.numberOfContours=v,this.xMin=U,this.yMin=ne,this.xMax=W,this.yMax=ge,this.compound=!1}return b.prototype.encode=function(){return this.raw.data},b}(),ic=function(){function b(c,v,U,ne,W){var ge,De;for(this.raw=c,this.xMin=v,this.yMin=U,this.xMax=ne,this.yMax=W,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ge=this.raw;De=ge.readShort(),this.glyphOffsets.push(ge.pos),this.glyphIDs.push(ge.readUInt16()),32&De;)ge.pos+=1&De?4:2,128&De?ge.pos+=8:64&De?ge.pos+=4:8&De&&(ge.pos+=2)}return b.prototype.encode=function(){var c,v,U;for(v=new Va(rc.call(this.raw.data)),c=0,U=this.glyphIDs.length;c<U;++c)v.pos=this.glyphOffsets[c];return v.data},b}(),tl=function(b){function c(){return c.__super__.constructor.apply(this,arguments)}return ws(c,To),c.prototype.tag="loca",c.prototype.parse=function(v){var U,ne;return v.pos=this.offset,U=this.file.head.indexToLocFormat,this.offsets=U===0?function(){var W,ge;for(ge=[],ne=0,W=this.length;ne<W;ne+=2)ge.push(2*v.readUInt16());return ge}.call(this):function(){var W,ge;for(ge=[],ne=0,W=this.length;ne<W;ne+=4)ge.push(v.readUInt32());return ge}.call(this)},c.prototype.indexOf=function(v){return this.offsets[v]},c.prototype.lengthOf=function(v){return this.offsets[v+1]-this.offsets[v]},c.prototype.encode=function(v,U){for(var ne=new Uint32Array(this.offsets.length),W=0,ge=0,De=0;De<ne.length;++De)if(ne[De]=W,ge<U.length&&U[ge]==De){++ge,ne[De]=W;var ke=this.offsets[De],rt=this.offsets[De+1]-ke;rt>0&&(W+=rt)}for(var vt=new Array(4*ne.length),yt=0;yt<ne.length;++yt)vt[4*yt+3]=255&ne[yt],vt[4*yt+2]=(65280&ne[yt])>>8,vt[4*yt+1]=(16711680&ne[yt])>>16,vt[4*yt]=(4278190080&ne[yt])>>24;return vt},c}(),ku=function(){function b(c){this.font=c,this.subset={},this.unicodes={},this.next=33}return b.prototype.generateCmap=function(){var c,v,U,ne,W;for(v in ne=this.font.cmap.tables[0].codeMap,c={},W=this.subset)U=W[v],c[v]=ne[U];return c},b.prototype.glyphsFor=function(c){var v,U,ne,W,ge,De,ke;for(ne={},ge=0,De=c.length;ge<De;ge++)ne[W=c[ge]]=this.font.glyf.glyphFor(W);for(W in v=[],ne)(U=ne[W])!=null&&U.compound&&v.push.apply(v,U.glyphIDs);if(v.length>0)for(W in ke=this.glyphsFor(v))U=ke[W],ne[W]=U;return ne},b.prototype.encode=function(c,v){var U,ne,W,ge,De,ke,rt,vt,yt,Ot,Ve,cr,tr,hr,jt;for(ne in U=al.encode(this.generateCmap(),"unicode"),ge=this.glyphsFor(c),Ve={0:0},jt=U.charMap)Ve[(ke=jt[ne]).old]=ke.new;for(cr in Ot=U.maxGlyphID,ge)cr in Ve||(Ve[cr]=Ot++);return vt=function(Ar){var kr,ln;for(kr in ln={},Ar)ln[Ar[kr]]=kr;return ln}(Ve),yt=Object.keys(vt).sort(function(Ar,kr){return Ar-kr}),tr=function(){var Ar,kr,ln;for(ln=[],Ar=0,kr=yt.length;Ar<kr;Ar++)De=yt[Ar],ln.push(vt[De]);return ln}(),W=this.font.glyf.encode(ge,tr,Ve),rt=this.font.loca.encode(W.offsets,tr),hr={cmap:this.font.cmap.raw(),glyf:W.table,loca:rt,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(v)},this.font.os2.exists&&(hr["OS/2"]=this.font.os2.raw()),this.font.directory.encode(hr)},b}();Ni.API.PDFObject=function(){var b;function c(){}return b=function(v,U){return(Array(U+1).join("0")+v).slice(-U)},c.convert=function(v){var U,ne,W,ge;if(Array.isArray(v))return"["+function(){var De,ke,rt;for(rt=[],De=0,ke=v.length;De<ke;De++)U=v[De],rt.push(c.convert(U));return rt}().join(" ")+"]";if(typeof v=="string")return"/"+v;if(v!=null&&v.isString)return"("+v+")";if(v instanceof Date)return"(D:"+b(v.getUTCFullYear(),4)+b(v.getUTCMonth(),2)+b(v.getUTCDate(),2)+b(v.getUTCHours(),2)+b(v.getUTCMinutes(),2)+b(v.getUTCSeconds(),2)+"Z)";if({}.toString.call(v)==="[object Object]"){for(ne in W=["<<"],v)ge=v[ne],W.push("/"+ne+" "+c.convert(ge));return W.push(">>"),W.join(`
|
|
|
`)}return""+v},c}()},86129:function(yn,Wt,g){var xe=g(19208).lW,Fe=g(97671);(function(se){yn.exports=se()})(function(){return function se(Me,ie,Y){function O(o,L){if(!ie[o]){if(!Me[o]){var p=void 0;if(!L&&p)return require(o,!0);if(I)return I(o,!0);var a=new Error("Cannot find module '"+o+"'");throw a.code="MODULE_NOT_FOUND",a}var d=ie[o]={exports:{}};Me[o][0].call(d.exports,function(m){var S=Me[o][1][m];return O(S||m)},d,d.exports,se,Me,ie,Y)}return ie[o].exports}for(var I=void 0,n=0;n<Y.length;n++)O(Y[n]);return O}({1:[function(se,Me,ie){"use strict";var Y=se("./utils"),O=se("./support"),I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ie.encode=function(n){for(var o,L,p,a,d,m,S,$=[],F=0,H=n.length,V=H,ee=Y.getTypeOf(n)!=="string";F<n.length;)V=H-F,p=ee?(o=n[F++],L=F<H?n[F++]:0,F<H?n[F++]:0):(o=n.charCodeAt(F++),L=F<H?n.charCodeAt(F++):0,F<H?n.charCodeAt(F++):0),a=o>>2,d=(3&o)<<4|L>>4,m=1<V?(15&L)<<2|p>>6:64,S=2<V?63&p:64,$.push(I.charAt(a)+I.charAt(d)+I.charAt(m)+I.charAt(S));return $.join("")},ie.decode=function(n){var o,L,p,a,d,m,S=0,$=0,F="data:";if(n.substr(0,F.length)===F)throw new Error("Invalid base64 input, it looks like a data url.");var H,V=3*(n=n.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(n.charAt(n.length-1)===I.charAt(64)&&V--,n.charAt(n.length-2)===I.charAt(64)&&V--,V%1!=0)throw new Error("Invalid base64 input, bad content length.");for(H=O.uint8array?new Uint8Array(0|V):new Array(0|V);S<n.length;)o=I.indexOf(n.charAt(S++))<<2|(a=I.indexOf(n.charAt(S++)))>>4,L=(15&a)<<4|(d=I.indexOf(n.charAt(S++)))>>2,p=(3&d)<<6|(m=I.indexOf(n.charAt(S++))),H[$++]=o,d!==64&&(H[$++]=L),m!==64&&(H[$++]=p);return H}},{"./support":30,"./utils":32}],2:[function(se,Me,ie){"use strict";var Y=se("./external"),O=se("./stream/DataWorker"),I=se("./stream/Crc32Probe"),n=se("./stream/DataLengthProbe");function o(L,p,a,d,m){this.compressedSize=L,this.uncompressedSize=p,this.crc32=a,this.compression=d,this.compressedContent=m}o.prototype={getContentWorker:function(){var L=new O(Y.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),p=this;return L.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),L},getCompressedWorker:function(){return new O(Y.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(L,p,a){return L.pipe(new I).pipe(new n("uncompressedSize")).pipe(p.compressWorker(a)).pipe(new n("compressedSize")).withStreamInfo("compression",p)},Me.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(se,Me,ie){"use strict";var Y=se("./stream/GenericWorker");ie.STORE={magic:"\0\0",compressWorker:function(){return new Y("STORE compression")},uncompressWorker:function(){return new Y("STORE decompression")}},ie.DEFLATE=se("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(se,Me,ie){"use strict";var Y=se("./utils"),O=function(){for(var I,n=[],o=0;o<256;o++){I=o;for(var L=0;L<8;L++)I=1&I?3988292384^I>>>1:I>>>1;n[o]=I}return n}();Me.exports=function(I,n){return I!==void 0&&I.length?Y.getTypeOf(I)!=="string"?function(o,L,p,a){var d=O,m=a+p;o^=-1;for(var S=a;S<m;S++)o=o>>>8^d[255&(o^L[S])];return-1^o}(0|n,I,I.length,0):function(o,L,p,a){var d=O,m=a+p;o^=-1;for(var S=a;S<m;S++)o=o>>>8^d[255&(o^L.charCodeAt(S))];return-1^o}(0|n,I,I.length,0):0}},{"./utils":32}],5:[function(se,Me,ie){"use strict";ie.base64=!1,ie.binary=!1,ie.dir=!1,ie.createFolders=!0,ie.date=null,ie.compression=null,ie.compressionOptions=null,ie.comment=null,ie.unixPermissions=null,ie.dosPermissions=null},{}],6:[function(se,Me,ie){"use strict";var Y=null;Y=typeof Promise!="undefined"?Promise:se("lie"),Me.exports={Promise:Y}},{lie:37}],7:[function(se,Me,ie){"use strict";var Y=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",O=se("pako"),I=se("./utils"),n=se("./stream/GenericWorker"),o=Y?"uint8array":"array";function L(p,a){n.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=a,this.meta={}}ie.magic="\b\0",I.inherits(L,n),L.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(I.transformTo(o,p.data),!1)},L.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},L.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},L.prototype._createPako=function(){this._pako=new O[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(a){p.push({data:a,meta:p.meta})}},ie.compressWorker=function(p){return new L("Deflate",p)},ie.uncompressWorker=function(){return new L("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(se,Me,ie){"use strict";function Y(d,m){var S,$="";for(S=0;S<m;S++)$+=String.fromCharCode(255&d),d>>>=8;return $}function O(d,m,S,$,F,H){var V,ee,B=d.file,G=d.compression,le=H!==o.utf8encode,J=I.transformTo("string",H(B.name)),we=I.transformTo("string",o.utf8encode(B.name)),Ce=B.comment,Le=I.transformTo("string",H(Ce)),ae=I.transformTo("string",o.utf8encode(Ce)),pe=we.length!==B.name.length,T=ae.length!==Ce.length,Ee="",oe="",fe="",ye=B.dir,_=B.date,N={crc32:0,compressedSize:0,uncompressedSize:0};m&&!S||(N.crc32=d.crc32,N.compressedSize=d.compressedSize,N.uncompressedSize=d.uncompressedSize);var X=0;m&&(X|=8),le||!pe&&!T||(X|=2048);var he=0,qe=0;ye&&(he|=16),F==="UNIX"?(qe=798,he|=function(nt,Rt){var sr=nt;return nt||(sr=Rt?16893:33204),(65535&sr)<<16}(B.unixPermissions,ye)):(qe=20,he|=function(nt){return 63&(nt||0)}(B.dosPermissions)),V=_.getUTCHours(),V<<=6,V|=_.getUTCMinutes(),V<<=5,V|=_.getUTCSeconds()/2,ee=_.getUTCFullYear()-1980,ee<<=4,ee|=_.getUTCMonth()+1,ee<<=5,ee|=_.getUTCDate(),pe&&(oe=Y(1,1)+Y(L(J),4)+we,Ee+="up"+Y(oe.length,2)+oe),T&&(fe=Y(1,1)+Y(L(Le),4)+ae,Ee+="uc"+Y(fe.length,2)+fe);var st="";return st+=`
|
|
|
\0`,st+=Y(X,2),st+=G.magic,st+=Y(V,2),st+=Y(ee,2),st+=Y(N.crc32,4),st+=Y(N.compressedSize,4),st+=Y(N.uncompressedSize,4),st+=Y(J.length,2),st+=Y(Ee.length,2),{fileRecord:p.LOCAL_FILE_HEADER+st+J+Ee,dirRecord:p.CENTRAL_FILE_HEADER+Y(qe,2)+st+Y(Le.length,2)+"\0\0\0\0"+Y(he,4)+Y($,4)+J+Ee+Le}}var I=se("../utils"),n=se("../stream/GenericWorker"),o=se("../utf8"),L=se("../crc32"),p=se("../signature");function a(d,m,S,$){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=S,this.encodeFileName=$,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}I.inherits(a,n),a.prototype.push=function(d){var m=d.meta.percent||0,S=this.entriesCount,$=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,n.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:S?(m+100*(S-$-1))/S:100}}))},a.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var m=this.streamFiles&&!d.file.dir;if(m){var S=O(d,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},a.prototype.closedSource=function(d){this.accumulate=!1;var m=this.streamFiles&&!d.file.dir,S=O(d,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(S.dirRecord),m)this.push({data:function($){return p.DATA_DESCRIPTOR+Y($.crc32,4)+Y($.compressedSize,4)+Y($.uncompressedSize,4)}(d),meta:{percent:100}});else for(this.push({data:S.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},a.prototype.flush=function(){for(var d=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var S=this.bytesWritten-d,$=function(F,H,V,ee,B){var G=I.transformTo("string",B(ee));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Y(F,2)+Y(F,2)+Y(H,4)+Y(V,4)+Y(G.length,2)+G}(this.dirRecords.length,S,d,this.zipComment,this.encodeFileName);this.push({data:$,meta:{percent:100}})},a.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},a.prototype.registerPrevious=function(d){this._sources.push(d);var m=this;return d.on("data",function(S){m.processChunk(S)}),d.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),d.on("error",function(S){m.error(S)}),this},a.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},a.prototype.error=function(d){var m=this._sources;if(!n.prototype.error.call(this,d))return!1;for(var S=0;S<m.length;S++)try{m[S].error(d)}catch($){}return!0},a.prototype.lock=function(){n.prototype.lock.call(this);for(var d=this._sources,m=0;m<d.length;m++)d[m].lock()},Me.exports=a},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(se,Me,ie){"use strict";var Y=se("../compressions"),O=se("./ZipFileWorker");ie.generateWorker=function(I,n,o){var L=new O(n.streamFiles,o,n.platform,n.encodeFileName),p=0;try{I.forEach(function(a,d){p++;var m=function(H,V){var ee=H||V,B=Y[ee];if(!B)throw new Error(ee+" is not a valid compression method !");return B}(d.options.compression,n.compression),S=d.options.compressionOptions||n.compressionOptions||{},$=d.dir,F=d.date;d._compressWorker(m,S).withStreamInfo("file",{name:a,dir:$,date:F,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(L)}),L.entriesCount=p}catch(a){L.error(a)}return L}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(se,Me,ie){"use strict";function Y(){if(!(this instanceof Y))return new Y;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 O=new Y;for(var I in this)typeof this[I]!="function"&&(O[I]=this[I]);return O}}(Y.prototype=se("./object")).loadAsync=se("./load"),Y.support=se("./support"),Y.defaults=se("./defaults"),Y.version="3.10.1",Y.loadAsync=function(O,I){return new Y().loadAsync(O,I)},Y.external=se("./external"),Me.exports=Y},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(se,Me,ie){"use strict";var Y=se("./utils"),O=se("./external"),I=se("./utf8"),n=se("./zipEntries"),o=se("./stream/Crc32Probe"),L=se("./nodejsUtils");function p(a){return new O.Promise(function(d,m){var S=a.decompressed.getContentWorker().pipe(new o);S.on("error",function($){m($)}).on("end",function(){S.streamInfo.crc32!==a.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}Me.exports=function(a,d){var m=this;return d=Y.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:I.utf8decode}),L.isNode&&L.isStream(a)?O.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Y.prepareContent("the loaded zip file",a,!0,d.optimizedBinaryString,d.base64).then(function(S){var $=new n(d);return $.load(S),$}).then(function(S){var $=[O.Promise.resolve(S)],F=S.files;if(d.checkCRC32)for(var H=0;H<F.length;H++)$.push(p(F[H]));return O.Promise.all($)}).then(function(S){for(var $=S.shift(),F=$.files,H=0;H<F.length;H++){var V=F[H],ee=V.fileNameStr,B=Y.resolve(V.fileNameStr);m.file(B,V.decompressed,{binary:!0,optimizedBinaryString:!0,date:V.date,dir:V.dir,comment:V.fileCommentStr.length?V.fileCommentStr:null,unixPermissions:V.unixPermissions,dosPermissions:V.dosPermissions,createFolders:d.createFolders}),V.dir||(m.file(B).unsafeOriginalName=ee)}return $.zipComment.length&&(m.comment=$.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("../stream/GenericWorker");function I(n,o){O.call(this,"Nodejs stream input adapter for "+n),this._upstreamEnded=!1,this._bindStream(o)}Y.inherits(I,O),I.prototype._bindStream=function(n){var o=this;(this._stream=n).pause(),n.on("data",function(L){o.push({data:L,meta:{percent:0}})}).on("error",function(L){o.isPaused?this.generatedError=L:o.error(L)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},I.prototype.pause=function(){return!!O.prototype.pause.call(this)&&(this._stream.pause(),!0)},I.prototype.resume=function(){return!!O.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Me.exports=I},{"../stream/GenericWorker":28,"../utils":32}],13:[function(se,Me,ie){"use strict";var Y=se("readable-stream").Readable;function O(I,n,o){Y.call(this,n),this._helper=I;var L=this;I.on("data",function(p,a){L.push(p)||L._helper.pause(),o&&o(a)}).on("error",function(p){L.emit("error",p)}).on("end",function(){L.push(null)})}se("../utils").inherits(O,Y),O.prototype._read=function(){this._helper.resume()},Me.exports=O},{"../utils":32,"readable-stream":16}],14:[function(se,Me,ie){"use strict";Me.exports={isNode:typeof xe!="undefined",newBufferFrom:function(Y,O){if(xe.from&&xe.from!==Uint8Array.from)return xe.from(Y,O);if(typeof Y=="number")throw new Error('The "data" argument must not be a number');return new xe(Y,O)},allocBuffer:function(Y){if(xe.alloc)return xe.alloc(Y);var O=new xe(Y);return O.fill(0),O},isBuffer:function(Y){return xe.isBuffer(Y)},isStream:function(Y){return Y&&typeof Y.on=="function"&&typeof Y.pause=="function"&&typeof Y.resume=="function"}}},{}],15:[function(se,Me,ie){"use strict";function Y(B,G,le){var J,we=I.getTypeOf(G),Ce=I.extend(le||{},L);Ce.date=Ce.date||new Date,Ce.compression!==null&&(Ce.compression=Ce.compression.toUpperCase()),typeof Ce.unixPermissions=="string"&&(Ce.unixPermissions=parseInt(Ce.unixPermissions,8)),Ce.unixPermissions&&16384&Ce.unixPermissions&&(Ce.dir=!0),Ce.dosPermissions&&16&Ce.dosPermissions&&(Ce.dir=!0),Ce.dir&&(B=F(B)),Ce.createFolders&&(J=$(B))&&H.call(this,J,!0);var Le=we==="string"&&Ce.binary===!1&&Ce.base64===!1;le&&le.binary!==void 0||(Ce.binary=!Le),(G instanceof p&&G.uncompressedSize===0||Ce.dir||!G||G.length===0)&&(Ce.base64=!1,Ce.binary=!0,G="",Ce.compression="STORE",we="string");var ae=null;ae=G instanceof p||G instanceof n?G:m.isNode&&m.isStream(G)?new S(B,G):I.prepareContent(B,G,Ce.binary,Ce.optimizedBinaryString,Ce.base64);var pe=new a(B,ae,Ce);this.files[B]=pe}var O=se("./utf8"),I=se("./utils"),n=se("./stream/GenericWorker"),o=se("./stream/StreamHelper"),L=se("./defaults"),p=se("./compressedObject"),a=se("./zipObject"),d=se("./generate"),m=se("./nodejsUtils"),S=se("./nodejs/NodejsStreamInputAdapter"),$=function(B){B.slice(-1)==="/"&&(B=B.substring(0,B.length-1));var G=B.lastIndexOf("/");return 0<G?B.substring(0,G):""},F=function(B){return B.slice(-1)!=="/"&&(B+="/"),B},H=function(B,G){return G=G!==void 0?G:L.createFolders,B=F(B),this.files[B]||Y.call(this,B,null,{dir:!0,createFolders:G}),this.files[B]};function V(B){return Object.prototype.toString.call(B)==="[object RegExp]"}var ee={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(B){var G,le,J;for(G in this.files)J=this.files[G],(le=G.slice(this.root.length,G.length))&&G.slice(0,this.root.length)===this.root&&B(le,J)},filter:function(B){var G=[];return this.forEach(function(le,J){B(le,J)&&G.push(J)}),G},file:function(B,G,le){if(arguments.length!==1)return B=this.root+B,Y.call(this,B,G,le),this;if(V(B)){var J=B;return this.filter(function(Ce,Le){return!Le.dir&&J.test(Ce)})}var we=this.files[this.root+B];return we&&!we.dir?we:null},folder:function(B){if(!B)return this;if(V(B))return this.filter(function(we,Ce){return Ce.dir&&B.test(we)});var G=this.root+B,le=H.call(this,G),J=this.clone();return J.root=le.name,J},remove:function(B){B=this.root+B;var G=this.files[B];if(G||(B.slice(-1)!=="/"&&(B+="/"),G=this.files[B]),G&&!G.dir)delete this.files[B];else for(var le=this.filter(function(we,Ce){return Ce.name.slice(0,B.length)===B}),J=0;J<le.length;J++)delete this.files[le[J].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(B){var G,le={};try{if((le=I.extend(B||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:O.utf8encode})).type=le.type.toLowerCase(),le.compression=le.compression.toUpperCase(),le.type==="binarystring"&&(le.type="string"),!le.type)throw new Error("No output type specified.");I.checkSupport(le.type),le.platform!=="darwin"&&le.platform!=="freebsd"&&le.platform!=="linux"&&le.platform!=="sunos"||(le.platform="UNIX"),le.platform==="win32"&&(le.platform="DOS");var J=le.comment||this.comment||"";G=d.generateWorker(this,le,J)}catch(we){(G=new n("error")).error(we)}return new o(G,le.type||"string",le.mimeType)},generateAsync:function(B,G){return this.generateInternalStream(B).accumulate(G)},generateNodeStream:function(B,G){return(B=B||{}).type||(B.type="nodebuffer"),this.generateInternalStream(B).toNodejsStream(G)}};Me.exports=ee},{"./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(se,Me,ie){"use strict";Me.exports=se("stream")},{stream:void 0}],17:[function(se,Me,ie){"use strict";var Y=se("./DataReader");function O(I){Y.call(this,I);for(var n=0;n<this.data.length;n++)I[n]=255&I[n]}se("../utils").inherits(O,Y),O.prototype.byteAt=function(I){return this.data[this.zero+I]},O.prototype.lastIndexOfSignature=function(I){for(var n=I.charCodeAt(0),o=I.charCodeAt(1),L=I.charCodeAt(2),p=I.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===n&&this.data[a+1]===o&&this.data[a+2]===L&&this.data[a+3]===p)return a-this.zero;return-1},O.prototype.readAndCheckSignature=function(I){var n=I.charCodeAt(0),o=I.charCodeAt(1),L=I.charCodeAt(2),p=I.charCodeAt(3),a=this.readData(4);return n===a[0]&&o===a[1]&&L===a[2]&&p===a[3]},O.prototype.readData=function(I){if(this.checkOffset(I),I===0)return[];var n=this.data.slice(this.zero+this.index,this.zero+this.index+I);return this.index+=I,n},Me.exports=O},{"../utils":32,"./DataReader":18}],18:[function(se,Me,ie){"use strict";var Y=se("../utils");function O(I){this.data=I,this.length=I.length,this.index=0,this.zero=0}O.prototype={checkOffset:function(I){this.checkIndex(this.index+I)},checkIndex:function(I){if(this.length<this.zero+I||I<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+I+"). Corrupted zip ?")},setIndex:function(I){this.checkIndex(I),this.index=I},skip:function(I){this.setIndex(this.index+I)},byteAt:function(){},readInt:function(I){var n,o=0;for(this.checkOffset(I),n=this.index+I-1;n>=this.index;n--)o=(o<<8)+this.byteAt(n);return this.index+=I,o},readString:function(I){return Y.transformTo("string",this.readData(I))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var I=this.readInt(4);return new Date(Date.UTC(1980+(I>>25&127),(I>>21&15)-1,I>>16&31,I>>11&31,I>>5&63,(31&I)<<1))}},Me.exports=O},{"../utils":32}],19:[function(se,Me,ie){"use strict";var Y=se("./Uint8ArrayReader");function O(I){Y.call(this,I)}se("../utils").inherits(O,Y),O.prototype.readData=function(I){this.checkOffset(I);var n=this.data.slice(this.zero+this.index,this.zero+this.index+I);return this.index+=I,n},Me.exports=O},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(se,Me,ie){"use strict";var Y=se("./DataReader");function O(I){Y.call(this,I)}se("../utils").inherits(O,Y),O.prototype.byteAt=function(I){return this.data.charCodeAt(this.zero+I)},O.prototype.lastIndexOfSignature=function(I){return this.data.lastIndexOf(I)-this.zero},O.prototype.readAndCheckSignature=function(I){return I===this.readData(4)},O.prototype.readData=function(I){this.checkOffset(I);var n=this.data.slice(this.zero+this.index,this.zero+this.index+I);return this.index+=I,n},Me.exports=O},{"../utils":32,"./DataReader":18}],21:[function(se,Me,ie){"use strict";var Y=se("./ArrayReader");function O(I){Y.call(this,I)}se("../utils").inherits(O,Y),O.prototype.readData=function(I){if(this.checkOffset(I),I===0)return new Uint8Array(0);var n=this.data.subarray(this.zero+this.index,this.zero+this.index+I);return this.index+=I,n},Me.exports=O},{"../utils":32,"./ArrayReader":17}],22:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("../support"),I=se("./ArrayReader"),n=se("./StringReader"),o=se("./NodeBufferReader"),L=se("./Uint8ArrayReader");Me.exports=function(p){var a=Y.getTypeOf(p);return Y.checkSupport(a),a!=="string"||O.uint8array?a==="nodebuffer"?new o(p):O.uint8array?new L(Y.transformTo("uint8array",p)):new I(Y.transformTo("array",p)):new n(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(se,Me,ie){"use strict";ie.LOCAL_FILE_HEADER="PK",ie.CENTRAL_FILE_HEADER="PK",ie.CENTRAL_DIRECTORY_END="PK",ie.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ie.ZIP64_CENTRAL_DIRECTORY_END="PK",ie.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(se,Me,ie){"use strict";var Y=se("./GenericWorker"),O=se("../utils");function I(n){Y.call(this,"ConvertWorker to "+n),this.destType=n}O.inherits(I,Y),I.prototype.processChunk=function(n){this.push({data:O.transformTo(this.destType,n.data),meta:n.meta})},Me.exports=I},{"../utils":32,"./GenericWorker":28}],25:[function(se,Me,ie){"use strict";var Y=se("./GenericWorker"),O=se("../crc32");function I(){Y.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}se("../utils").inherits(I,Y),I.prototype.processChunk=function(n){this.streamInfo.crc32=O(n.data,this.streamInfo.crc32||0),this.push(n)},Me.exports=I},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("./GenericWorker");function I(n){O.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}Y.inherits(I,O),I.prototype.processChunk=function(n){if(n){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+n.data.length}O.prototype.processChunk.call(this,n)},Me.exports=I},{"../utils":32,"./GenericWorker":28}],27:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("./GenericWorker");function I(n){O.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,n.then(function(L){o.dataIsReady=!0,o.data=L,o.max=L&&L.length||0,o.type=Y.getTypeOf(L),o.isPaused||o._tickAndRepeat()},function(L){o.error(L)})}Y.inherits(I,O),I.prototype.cleanUp=function(){O.prototype.cleanUp.call(this),this.data=null},I.prototype.resume=function(){return!!O.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Y.delay(this._tickAndRepeat,[],this)),!0)},I.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Y.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},I.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var n=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":n=this.data.substring(this.index,o);break;case"uint8array":n=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":n=this.data.slice(this.index,o)}return this.index=o,this.push({data:n,meta:{percent:this.max?this.index/this.max*100:0}})},Me.exports=I},{"../utils":32,"./GenericWorker":28}],28:[function(se,Me,ie){"use strict";function Y(O){this.name=O||"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}Y.prototype={push:function(O){this.emit("data",O)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(O){this.emit("error",O)}return!0},error:function(O){return!this.isFinished&&(this.isPaused?this.generatedError=O:(this.isFinished=!0,this.emit("error",O),this.previous&&this.previous.error(O),this.cleanUp()),!0)},on:function(O,I){return this._listeners[O].push(I),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(O,I){if(this._listeners[O])for(var n=0;n<this._listeners[O].length;n++)this._listeners[O][n].call(this,I)},pipe:function(O){return O.registerPrevious(this)},registerPrevious:function(O){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=O.streamInfo,this.mergeStreamInfo(),this.previous=O;var I=this;return O.on("data",function(n){I.processChunk(n)}),O.on("end",function(){I.end()}),O.on("error",function(n){I.error(n)}),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 O=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),O=!0),this.previous&&this.previous.resume(),!O},flush:function(){},processChunk:function(O){this.push(O)},withStreamInfo:function(O,I){return this.extraStreamInfo[O]=I,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var O in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,O)&&(this.streamInfo[O]=this.extraStreamInfo[O])},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 O="Worker "+this.name;return this.previous?this.previous+" -> "+O:O}},Me.exports=Y},{}],29:[function(se,Me,ie){"use strict";var Y=se("../utils"),O=se("./ConvertWorker"),I=se("./GenericWorker"),n=se("../base64"),o=se("../support"),L=se("../external"),p=null;if(o.nodestream)try{p=se("../nodejs/NodejsStreamOutputAdapter")}catch(m){}function a(m,S){return new L.Promise(function($,F){var H=[],V=m._internalType,ee=m._outputType,B=m._mimeType;m.on("data",function(G,le){H.push(G),S&&S(le)}).on("error",function(G){H=[],F(G)}).on("end",function(){try{var G=function(le,J,we){switch(le){case"blob":return Y.newBlob(Y.transformTo("arraybuffer",J),we);case"base64":return n.encode(J);default:return Y.transformTo(le,J)}}(ee,function(le,J){var we,Ce=0,Le=null,ae=0;for(we=0;we<J.length;we++)ae+=J[we].length;switch(le){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":for(Le=new Uint8Array(ae),we=0;we<J.length;we++)Le.set(J[we],Ce),Ce+=J[we].length;return Le;case"nodebuffer":return xe.concat(J);default:throw new Error("concat : unsupported type '"+le+"'")}}(V,H),B);$(G)}catch(le){F(le)}H=[]}).resume()})}function d(m,S,$){var F=S;switch(S){case"blob":case"arraybuffer":F="uint8array";break;case"base64":F="string"}try{this._internalType=F,this._outputType=S,this._mimeType=$,Y.checkSupport(F),this._worker=m.pipe(new O(F)),m.lock()}catch(H){this._worker=new I("error"),this._worker.error(H)}}d.prototype={accumulate:function(m){return a(this,m)},on:function(m,S){var $=this;return m==="data"?this._worker.on(m,function(F){S.call($,F.data,F.meta)}):this._worker.on(m,function(){Y.delay(S,arguments,$)}),this},resume:function(){return Y.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(Y.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},m)}},Me.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(se,Me,ie){"use strict";if(ie.base64=!0,ie.array=!0,ie.string=!0,ie.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ie.nodebuffer=typeof xe!="undefined",ie.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ie.blob=!1;else{var Y=new ArrayBuffer(0);try{ie.blob=new Blob([Y],{type:"application/zip"}).size===0}catch(I){try{var O=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);O.append(Y),ie.blob=O.getBlob("application/zip").size===0}catch(n){ie.blob=!1}}}try{ie.nodestream=!!se("readable-stream").Readable}catch(I){ie.nodestream=!1}},{"readable-stream":16}],31:[function(se,Me,ie){"use strict";for(var Y=se("./utils"),O=se("./support"),I=se("./nodejsUtils"),n=se("./stream/GenericWorker"),o=new Array(256),L=0;L<256;L++)o[L]=252<=L?6:248<=L?5:240<=L?4:224<=L?3:192<=L?2:1;o[254]=o[254]=1;function p(){n.call(this,"utf-8 decode"),this.leftOver=null}function a(){n.call(this,"utf-8 encode")}ie.utf8encode=function(d){return O.nodebuffer?I.newBufferFrom(d,"utf-8"):function(m){var S,$,F,H,V,ee=m.length,B=0;for(H=0;H<ee;H++)(64512&($=m.charCodeAt(H)))==55296&&H+1<ee&&(64512&(F=m.charCodeAt(H+1)))==56320&&($=65536+($-55296<<10)+(F-56320),H++),B+=$<128?1:$<2048?2:$<65536?3:4;for(S=O.uint8array?new Uint8Array(B):new Array(B),H=V=0;V<B;H++)(64512&($=m.charCodeAt(H)))==55296&&H+1<ee&&(64512&(F=m.charCodeAt(H+1)))==56320&&($=65536+($-55296<<10)+(F-56320),H++),$<128?S[V++]=$:($<2048?S[V++]=192|$>>>6:($<65536?S[V++]=224|$>>>12:(S[V++]=240|$>>>18,S[V++]=128|$>>>12&63),S[V++]=128|$>>>6&63),S[V++]=128|63&$);return S}(d)},ie.utf8decode=function(d){return O.nodebuffer?Y.transformTo("nodebuffer",d).toString("utf-8"):function(m){var S,$,F,H,V=m.length,ee=new Array(2*V);for(S=$=0;S<V;)if((F=m[S++])<128)ee[$++]=F;else if(4<(H=o[F]))ee[$++]=65533,S+=H-1;else{for(F&=H===2?31:H===3?15:7;1<H&&S<V;)F=F<<6|63&m[S++],H--;1<H?ee[$++]=65533:F<65536?ee[$++]=F:(F-=65536,ee[$++]=55296|F>>10&1023,ee[$++]=56320|1023&F)}return ee.length!==$&&(ee.subarray?ee=ee.subarray(0,$):ee.length=$),Y.applyFromCharCode(ee)}(d=Y.transformTo(O.uint8array?"uint8array":"array",d))},Y.inherits(p,n),p.prototype.processChunk=function(d){var m=Y.transformTo(O.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(O.uint8array){var S=m;(m=new Uint8Array(S.length+this.leftOver.length)).set(this.leftOver,0),m.set(S,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var $=function(H,V){var ee;for((V=V||H.length)>H.length&&(V=H.length),ee=V-1;0<=ee&&(192&H[ee])==128;)ee--;return ee<0||ee===0?V:ee+o[H[ee]]>V?ee:V}(m),F=m;$!==m.length&&(O.uint8array?(F=m.subarray(0,$),this.leftOver=m.subarray($,m.length)):(F=m.slice(0,$),this.leftOver=m.slice($,m.length))),this.push({data:ie.utf8decode(F),meta:d.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ie.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ie.Utf8DecodeWorker=p,Y.inherits(a,n),a.prototype.processChunk=function(d){this.push({data:ie.utf8encode(d.data),meta:d.meta})},ie.Utf8EncodeWorker=a},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(se,Me,ie){"use strict";var Y=se("./support"),O=se("./base64"),I=se("./nodejsUtils"),n=se("./external");function o(S){return S}function L(S,$){for(var F=0;F<S.length;++F)$[F]=255&S.charCodeAt(F);return $}se("setimmediate"),ie.newBlob=function(S,$){ie.checkSupport("blob");try{return new Blob([S],{type:$})}catch(H){try{var F=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return F.append(S),F.getBlob($)}catch(V){throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(S,$,F){var H=[],V=0,ee=S.length;if(ee<=F)return String.fromCharCode.apply(null,S);for(;V<ee;)$==="array"||$==="nodebuffer"?H.push(String.fromCharCode.apply(null,S.slice(V,Math.min(V+F,ee)))):H.push(String.fromCharCode.apply(null,S.subarray(V,Math.min(V+F,ee)))),V+=F;return H.join("")},stringifyByChar:function(S){for(var $="",F=0;F<S.length;F++)$+=String.fromCharCode(S[F]);return $},applyCanBeUsed:{uint8array:function(){try{return Y.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(S){return!1}}(),nodebuffer:function(){try{return Y.nodebuffer&&String.fromCharCode.apply(null,I.allocBuffer(1)).length===1}catch(S){return!1}}()}};function a(S){var $=65536,F=ie.getTypeOf(S),H=!0;if(F==="uint8array"?H=p.applyCanBeUsed.uint8array:F==="nodebuffer"&&(H=p.applyCanBeUsed.nodebuffer),H)for(;1<$;)try{return p.stringifyByChunk(S,F,$)}catch(V){$=Math.floor($/2)}return p.stringifyByChar(S)}function d(S,$){for(var F=0;F<S.length;F++)$[F]=S[F];return $}ie.applyFromCharCode=a;var m={};m.string={string:o,array:function(S){return L(S,new Array(S.length))},arraybuffer:function(S){return m.string.uint8array(S).buffer},uint8array:function(S){return L(S,new Uint8Array(S.length))},nodebuffer:function(S){return L(S,I.allocBuffer(S.length))}},m.array={string:a,array:o,arraybuffer:function(S){return new Uint8Array(S).buffer},uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return I.newBufferFrom(S)}},m.arraybuffer={string:function(S){return a(new Uint8Array(S))},array:function(S){return d(new Uint8Array(S),new Array(S.byteLength))},arraybuffer:o,uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return I.newBufferFrom(new Uint8Array(S))}},m.uint8array={string:a,array:function(S){return d(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:o,nodebuffer:function(S){return I.newBufferFrom(S)}},m.nodebuffer={string:a,array:function(S){return d(S,new Array(S.length))},arraybuffer:function(S){return m.nodebuffer.uint8array(S).buffer},uint8array:function(S){return d(S,new Uint8Array(S.length))},nodebuffer:o},ie.transformTo=function(S,$){if($=$||"",!S)return $;ie.checkSupport(S);var F=ie.getTypeOf($);return m[F][S]($)},ie.resolve=function(S){for(var $=S.split("/"),F=[],H=0;H<$.length;H++){var V=$[H];V==="."||V===""&&H!==0&&H!==$.length-1||(V===".."?F.pop():F.push(V))}return F.join("/")},ie.getTypeOf=function(S){return typeof S=="string"?"string":Object.prototype.toString.call(S)==="[object Array]"?"array":Y.nodebuffer&&I.isBuffer(S)?"nodebuffer":Y.uint8array&&S instanceof Uint8Array?"uint8array":Y.arraybuffer&&S instanceof ArrayBuffer?"arraybuffer":void 0},ie.checkSupport=function(S){if(!Y[S.toLowerCase()])throw new Error(S+" is not supported by this platform")},ie.MAX_VALUE_16BITS=65535,ie.MAX_VALUE_32BITS=-1,ie.pretty=function(S){var $,F,H="";for(F=0;F<(S||"").length;F++)H+="\\x"+(($=S.charCodeAt(F))<16?"0":"")+$.toString(16).toUpperCase();return H},ie.delay=function(S,$,F){setImmediate(function(){S.apply(F||null,$||[])})},ie.inherits=function(S,$){function F(){}F.prototype=$.prototype,S.prototype=new F},ie.extend=function(){var S,$,F={};for(S=0;S<arguments.length;S++)for($ in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],$)&&F[$]===void 0&&(F[$]=arguments[S][$]);return F},ie.prepareContent=function(S,$,F,H,V){return n.Promise.resolve($).then(function(ee){return Y.blob&&(ee instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(ee))!==-1)&&typeof FileReader!="undefined"?new n.Promise(function(B,G){var le=new FileReader;le.onload=function(J){B(J.target.result)},le.onerror=function(J){G(J.target.error)},le.readAsArrayBuffer(ee)}):ee}).then(function(ee){var B=ie.getTypeOf(ee);return B?(B==="arraybuffer"?ee=ie.transformTo("uint8array",ee):B==="string"&&(V?ee=O.decode(ee):F&&H!==!0&&(ee=function(G){return L(G,Y.uint8array?new Uint8Array(G.length):new Array(G.length))}(ee))),ee):n.Promise.reject(new Error("Can't read the data of '"+S+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(se,Me,ie){"use strict";var Y=se("./reader/readerFor"),O=se("./utils"),I=se("./signature"),n=se("./zipEntry"),o=se("./support");function L(p){this.files=[],this.loadOptions=p}L.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+O.pretty(a)+", expected "+O.pretty(p)+")")}},isSignature:function(p,a){var d=this.reader.index;this.reader.setIndex(p);var m=this.reader.readString(4)===a;return this.reader.setIndex(d),m},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 p=this.reader.readData(this.zipCommentLength),a=o.uint8array?"uint8array":"array",d=O.transformTo(a,p);this.zipComment=this.loadOptions.decodeFileName(d)},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 p,a,d,m=this.zip64EndOfCentralSize-44;0<m;)p=this.reader.readInt(2),a=this.reader.readInt(4),d=this.reader.readData(a),this.zip64ExtensibleData[p]={id:p,length:a,value:d}},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 p,a;for(p=0;p<this.files.length;p++)a=this.files[p],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(I.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(I.CENTRAL_FILE_HEADER);)(p=new n({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);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 p=this.reader.lastIndexOfSignature(I.CENTRAL_DIRECTORY_END);if(p<0)throw this.isSignature(0,I.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(p);var a=p;if(this.checkSignature(I.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===O.MAX_VALUE_16BITS||this.diskWithCentralDirStart===O.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===O.MAX_VALUE_16BITS||this.centralDirRecords===O.MAX_VALUE_16BITS||this.centralDirSize===O.MAX_VALUE_32BITS||this.centralDirOffset===O.MAX_VALUE_32BITS){if(this.zip64=!0,(p=this.reader.lastIndexOfSignature(I.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(p),this.checkSignature(I.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,I.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(I.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(I.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var m=a-d;if(0<m)this.isSignature(a,I.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(p){this.reader=Y(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Me.exports=L},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(se,Me,ie){"use strict";var Y=se("./reader/readerFor"),O=se("./utils"),I=se("./compressedObject"),n=se("./crc32"),o=se("./utf8"),L=se("./compressions"),p=se("./support");function a(d,m){this.options=d,this.loadOptions=m}a.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var m,S;if(d.skip(22),this.fileNameLength=d.readInt(2),S=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(S),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((m=function($){for(var F in L)if(Object.prototype.hasOwnProperty.call(L,F)&&L[F].magic===$)return L[F];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+O.pretty(this.compressionMethod)+" unknown (inner file : "+O.transformTo("string",this.fileName)+")");this.decompressed=new I(this.compressedSize,this.uncompressedSize,this.crc32,m,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var m=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(m),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=Y(this.extraFields[1].value);this.uncompressedSize===O.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===O.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===O.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===O.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var m,S,$,F=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<F;)m=d.readInt(2),S=d.readInt(2),$=d.readData(S),this.extraFields[m]={id:m,length:S,value:$};d.setIndex(F)},handleUTF8:function(){var d=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var S=O.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var $=this.findExtraFieldUnicodeComment();if($!==null)this.fileCommentStr=$;else{var F=O.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(F)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var m=Y(d.value);return m.readInt(1)!==1||n(this.fileName)!==m.readInt(4)?null:o.utf8decode(m.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var m=Y(d.value);return m.readInt(1)!==1||n(this.fileComment)!==m.readInt(4)?null:o.utf8decode(m.readData(d.length-5))}return null}},Me.exports=a},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(se,Me,ie){"use strict";function Y(m,S,$){this.name=m,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=S,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}}var O=se("./stream/StreamHelper"),I=se("./stream/DataWorker"),n=se("./utf8"),o=se("./compressedObject"),L=se("./stream/GenericWorker");Y.prototype={internalStream:function(m){var S=null,$="string";try{if(!m)throw new Error("No output type specified.");var F=($=m.toLowerCase())==="string"||$==="text";$!=="binarystring"&&$!=="text"||($="string"),S=this._decompressWorker();var H=!this._dataBinary;H&&!F&&(S=S.pipe(new n.Utf8EncodeWorker)),!H&&F&&(S=S.pipe(new n.Utf8DecodeWorker))}catch(V){(S=new L("error")).error(V)}return new O(S,$,"")},async:function(m,S){return this.internalStream(m).accumulate(S)},nodeStream:function(m,S){return this.internalStream(m||"nodebuffer").toNodejsStream(S)},_compressWorker:function(m,S){if(this._data instanceof o&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var $=this._decompressWorker();return this._dataBinary||($=$.pipe(new n.Utf8EncodeWorker)),o.createWorkerFrom($,m,S)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof L?this._data:new I(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],a=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<p.length;d++)Y.prototype[p[d]]=a;Me.exports=Y},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(se,Me,ie){(function(Y){"use strict";var O,I,n=Y.MutationObserver||Y.WebKitMutationObserver;if(n){var o=0,L=new n(m),p=Y.document.createTextNode("");L.observe(p,{characterData:!0}),O=function(){p.data=o=++o%2}}else if(Y.setImmediate||Y.MessageChannel===void 0)O="document"in Y&&"onreadystatechange"in Y.document.createElement("script")?function(){var S=Y.document.createElement("script");S.onreadystatechange=function(){m(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},Y.document.documentElement.appendChild(S)}:function(){setTimeout(m,0)};else{var a=new Y.MessageChannel;a.port1.onmessage=m,O=function(){a.port2.postMessage(0)}}var d=[];function m(){var S,$;I=!0;for(var F=d.length;F;){for($=d,d=[],S=-1;++S<F;)$[S]();F=d.length}I=!1}Me.exports=function(S){d.push(S)!==1||I||O()}}).call(this,typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(se,Me,ie){"use strict";var Y=se("immediate");function O(){}var I={},n=["REJECTED"],o=["FULFILLED"],L=["PENDING"];function p(F){if(typeof F!="function")throw new TypeError("resolver must be a function");this.state=L,this.queue=[],this.outcome=void 0,F!==O&&S(this,F)}function a(F,H,V){this.promise=F,typeof H=="function"&&(this.onFulfilled=H,this.callFulfilled=this.otherCallFulfilled),typeof V=="function"&&(this.onRejected=V,this.callRejected=this.otherCallRejected)}function d(F,H,V){Y(function(){var ee;try{ee=H(V)}catch(B){return I.reject(F,B)}ee===F?I.reject(F,new TypeError("Cannot resolve promise with itself")):I.resolve(F,ee)})}function m(F){var H=F&&F.then;if(F&&(typeof F=="object"||typeof F=="function")&&typeof H=="function")return function(){H.apply(F,arguments)}}function S(F,H){var V=!1;function ee(le){V||(V=!0,I.reject(F,le))}function B(le){V||(V=!0,I.resolve(F,le))}var G=$(function(){H(B,ee)});G.status==="error"&&ee(G.value)}function $(F,H){var V={};try{V.value=F(H),V.status="success"}catch(ee){V.status="error",V.value=ee}return V}(Me.exports=p).prototype.finally=function(F){if(typeof F!="function")return this;var H=this.constructor;return this.then(function(V){return H.resolve(F()).then(function(){return V})},function(V){return H.resolve(F()).then(function(){throw V})})},p.prototype.catch=function(F){return this.then(null,F)},p.prototype.then=function(F,H){if(typeof F!="function"&&this.state===o||typeof H!="function"&&this.state===n)return this;var V=new this.constructor(O);return this.state!==L?d(V,this.state===o?F:H,this.outcome):this.queue.push(new a(V,F,H)),V},a.prototype.callFulfilled=function(F){I.resolve(this.promise,F)},a.prototype.otherCallFulfilled=function(F){d(this.promise,this.onFulfilled,F)},a.prototype.callRejected=function(F){I.reject(this.promise,F)},a.prototype.otherCallRejected=function(F){d(this.promise,this.onRejected,F)},I.resolve=function(F,H){var V=$(m,H);if(V.status==="error")return I.reject(F,V.value);var ee=V.value;if(ee)S(F,ee);else{F.state=o,F.outcome=H;for(var B=-1,G=F.queue.length;++B<G;)F.queue[B].callFulfilled(H)}return F},I.reject=function(F,H){F.state=n,F.outcome=H;for(var V=-1,ee=F.queue.length;++V<ee;)F.queue[V].callRejected(H);return F},p.resolve=function(F){return F instanceof this?F:I.resolve(new this(O),F)},p.reject=function(F){var H=new this(O);return I.reject(H,F)},p.all=function(F){var H=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=F.length,ee=!1;if(!V)return this.resolve([]);for(var B=new Array(V),G=0,le=-1,J=new this(O);++le<V;)we(F[le],le);return J;function we(Ce,Le){H.resolve(Ce).then(function(ae){B[Le]=ae,++G!==V||ee||(ee=!0,I.resolve(J,B))},function(ae){ee||(ee=!0,I.reject(J,ae))})}},p.race=function(F){var H=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=F.length,ee=!1;if(!V)return this.resolve([]);for(var B=-1,G=new this(O);++B<V;)le=F[B],H.resolve(le).then(function(J){ee||(ee=!0,I.resolve(G,J))},function(J){ee||(ee=!0,I.reject(G,J))});var le;return G}},{immediate:36}],38:[function(se,Me,ie){"use strict";var Y={};(0,se("./lib/utils/common").assign)(Y,se("./lib/deflate"),se("./lib/inflate"),se("./lib/zlib/constants")),Me.exports=Y},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(se,Me,ie){"use strict";var Y=se("./zlib/deflate"),O=se("./utils/common"),I=se("./utils/strings"),n=se("./zlib/messages"),o=se("./zlib/zstream"),L=Object.prototype.toString,p=0,a=-1,d=0,m=8;function S(F){if(!(this instanceof S))return new S(F);this.options=O.assign({level:a,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},F||{});var H=this.options;H.raw&&0<H.windowBits?H.windowBits=-H.windowBits:H.gzip&&0<H.windowBits&&H.windowBits<16&&(H.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var V=Y.deflateInit2(this.strm,H.level,H.method,H.windowBits,H.memLevel,H.strategy);if(V!==p)throw new Error(n[V]);if(H.header&&Y.deflateSetHeader(this.strm,H.header),H.dictionary){var ee;if(ee=typeof H.dictionary=="string"?I.string2buf(H.dictionary):L.call(H.dictionary)==="[object ArrayBuffer]"?new Uint8Array(H.dictionary):H.dictionary,(V=Y.deflateSetDictionary(this.strm,ee))!==p)throw new Error(n[V]);this._dict_set=!0}}function $(F,H){var V=new S(H);if(V.push(F,!0),V.err)throw V.msg||n[V.err];return V.result}S.prototype.push=function(F,H){var V,ee,B=this.strm,G=this.options.chunkSize;if(this.ended)return!1;ee=H===~~H?H:H===!0?4:0,typeof F=="string"?B.input=I.string2buf(F):L.call(F)==="[object ArrayBuffer]"?B.input=new Uint8Array(F):B.input=F,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new O.Buf8(G),B.next_out=0,B.avail_out=G),(V=Y.deflate(B,ee))!==1&&V!==p)return this.onEnd(V),!(this.ended=!0);B.avail_out!==0&&(B.avail_in!==0||ee!==4&&ee!==2)||(this.options.to==="string"?this.onData(I.buf2binstring(O.shrinkBuf(B.output,B.next_out))):this.onData(O.shrinkBuf(B.output,B.next_out)))}while((0<B.avail_in||B.avail_out===0)&&V!==1);return ee===4?(V=Y.deflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===p):ee!==2||(this.onEnd(p),!(B.avail_out=0))},S.prototype.onData=function(F){this.chunks.push(F)},S.prototype.onEnd=function(F){F===p&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=F,this.msg=this.strm.msg},ie.Deflate=S,ie.deflate=$,ie.deflateRaw=function(F,H){return(H=H||{}).raw=!0,$(F,H)},ie.gzip=function(F,H){return(H=H||{}).gzip=!0,$(F,H)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(se,Me,ie){"use strict";var Y=se("./zlib/inflate"),O=se("./utils/common"),I=se("./utils/strings"),n=se("./zlib/constants"),o=se("./zlib/messages"),L=se("./zlib/zstream"),p=se("./zlib/gzheader"),a=Object.prototype.toString;function d(S){if(!(this instanceof d))return new d(S);this.options=O.assign({chunkSize:16384,windowBits:0,to:""},S||{});var $=this.options;$.raw&&0<=$.windowBits&&$.windowBits<16&&($.windowBits=-$.windowBits,$.windowBits===0&&($.windowBits=-15)),!(0<=$.windowBits&&$.windowBits<16)||S&&S.windowBits||($.windowBits+=32),15<$.windowBits&&$.windowBits<48&&!(15&$.windowBits)&&($.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new L,this.strm.avail_out=0;var F=Y.inflateInit2(this.strm,$.windowBits);if(F!==n.Z_OK)throw new Error(o[F]);this.header=new p,Y.inflateGetHeader(this.strm,this.header)}function m(S,$){var F=new d($);if(F.push(S,!0),F.err)throw F.msg||o[F.err];return F.result}d.prototype.push=function(S,$){var F,H,V,ee,B,G,le=this.strm,J=this.options.chunkSize,we=this.options.dictionary,Ce=!1;if(this.ended)return!1;H=$===~~$?$:$===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof S=="string"?le.input=I.binstring2buf(S):a.call(S)==="[object ArrayBuffer]"?le.input=new Uint8Array(S):le.input=S,le.next_in=0,le.avail_in=le.input.length;do{if(le.avail_out===0&&(le.output=new O.Buf8(J),le.next_out=0,le.avail_out=J),(F=Y.inflate(le,n.Z_NO_FLUSH))===n.Z_NEED_DICT&&we&&(G=typeof we=="string"?I.string2buf(we):a.call(we)==="[object ArrayBuffer]"?new Uint8Array(we):we,F=Y.inflateSetDictionary(this.strm,G)),F===n.Z_BUF_ERROR&&Ce===!0&&(F=n.Z_OK,Ce=!1),F!==n.Z_STREAM_END&&F!==n.Z_OK)return this.onEnd(F),!(this.ended=!0);le.next_out&&(le.avail_out!==0&&F!==n.Z_STREAM_END&&(le.avail_in!==0||H!==n.Z_FINISH&&H!==n.Z_SYNC_FLUSH)||(this.options.to==="string"?(V=I.utf8border(le.output,le.next_out),ee=le.next_out-V,B=I.buf2string(le.output,V),le.next_out=ee,le.avail_out=J-ee,ee&&O.arraySet(le.output,le.output,V,ee,0),this.onData(B)):this.onData(O.shrinkBuf(le.output,le.next_out)))),le.avail_in===0&&le.avail_out===0&&(Ce=!0)}while((0<le.avail_in||le.avail_out===0)&&F!==n.Z_STREAM_END);return F===n.Z_STREAM_END&&(H=n.Z_FINISH),H===n.Z_FINISH?(F=Y.inflateEnd(this.strm),this.onEnd(F),this.ended=!0,F===n.Z_OK):H!==n.Z_SYNC_FLUSH||(this.onEnd(n.Z_OK),!(le.avail_out=0))},d.prototype.onData=function(S){this.chunks.push(S)},d.prototype.onEnd=function(S){S===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},ie.Inflate=d,ie.inflate=m,ie.inflateRaw=function(S,$){return($=$||{}).raw=!0,m(S,$)},ie.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(se,Me,ie){"use strict";var Y=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ie.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var L=o.shift();if(L){if(typeof L!="object")throw new TypeError(L+"must be non-object");for(var p in L)L.hasOwnProperty(p)&&(n[p]=L[p])}}return n},ie.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var O={arraySet:function(n,o,L,p,a){if(o.subarray&&n.subarray)n.set(o.subarray(L,L+p),a);else for(var d=0;d<p;d++)n[a+d]=o[L+d]},flattenChunks:function(n){var o,L,p,a,d,m;for(o=p=0,L=n.length;o<L;o++)p+=n[o].length;for(m=new Uint8Array(p),o=a=0,L=n.length;o<L;o++)d=n[o],m.set(d,a),a+=d.length;return m}},I={arraySet:function(n,o,L,p,a){for(var d=0;d<p;d++)n[a+d]=o[L+d]},flattenChunks:function(n){return[].concat.apply([],n)}};ie.setTyped=function(n){n?(ie.Buf8=Uint8Array,ie.Buf16=Uint16Array,ie.Buf32=Int32Array,ie.assign(ie,O)):(ie.Buf8=Array,ie.Buf16=Array,ie.Buf32=Array,ie.assign(ie,I))},ie.setTyped(Y)},{}],42:[function(se,Me,ie){"use strict";var Y=se("./common"),O=!0,I=!0;try{String.fromCharCode.apply(null,[0])}catch(p){O=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(p){I=!1}for(var n=new Y.Buf8(256),o=0;o<256;o++)n[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function L(p,a){if(a<65537&&(p.subarray&&I||!p.subarray&&O))return String.fromCharCode.apply(null,Y.shrinkBuf(p,a));for(var d="",m=0;m<a;m++)d+=String.fromCharCode(p[m]);return d}n[254]=n[254]=1,ie.string2buf=function(p){var a,d,m,S,$,F=p.length,H=0;for(S=0;S<F;S++)(64512&(d=p.charCodeAt(S)))==55296&&S+1<F&&(64512&(m=p.charCodeAt(S+1)))==56320&&(d=65536+(d-55296<<10)+(m-56320),S++),H+=d<128?1:d<2048?2:d<65536?3:4;for(a=new Y.Buf8(H),S=$=0;$<H;S++)(64512&(d=p.charCodeAt(S)))==55296&&S+1<F&&(64512&(m=p.charCodeAt(S+1)))==56320&&(d=65536+(d-55296<<10)+(m-56320),S++),d<128?a[$++]=d:(d<2048?a[$++]=192|d>>>6:(d<65536?a[$++]=224|d>>>12:(a[$++]=240|d>>>18,a[$++]=128|d>>>12&63),a[$++]=128|d>>>6&63),a[$++]=128|63&d);return a},ie.buf2binstring=function(p){return L(p,p.length)},ie.binstring2buf=function(p){for(var a=new Y.Buf8(p.length),d=0,m=a.length;d<m;d++)a[d]=p.charCodeAt(d);return a},ie.buf2string=function(p,a){var d,m,S,$,F=a||p.length,H=new Array(2*F);for(d=m=0;d<F;)if((S=p[d++])<128)H[m++]=S;else if(4<($=n[S]))H[m++]=65533,d+=$-1;else{for(S&=$===2?31:$===3?15:7;1<$&&d<F;)S=S<<6|63&p[d++],$--;1<$?H[m++]=65533:S<65536?H[m++]=S:(S-=65536,H[m++]=55296|S>>10&1023,H[m++]=56320|1023&S)}return L(H,m)},ie.utf8border=function(p,a){var d;for((a=a||p.length)>p.length&&(a=p.length),d=a-1;0<=d&&(192&p[d])==128;)d--;return d<0||d===0?a:d+n[p[d]]>a?d:a}},{"./common":41}],43:[function(se,Me,ie){"use strict";Me.exports=function(Y,O,I,n){for(var o=65535&Y|0,L=Y>>>16&65535|0,p=0;I!==0;){for(I-=p=2e3<I?2e3:I;L=L+(o=o+O[n++]|0)|0,--p;);o%=65521,L%=65521}return o|L<<16|0}},{}],44:[function(se,Me,ie){"use strict";Me.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(se,Me,ie){"use strict";var Y=function(){for(var O,I=[],n=0;n<256;n++){O=n;for(var o=0;o<8;o++)O=1&O?3988292384^O>>>1:O>>>1;I[n]=O}return I}();Me.exports=function(O,I,n,o){var L=Y,p=o+n;O^=-1;for(var a=o;a<p;a++)O=O>>>8^L[255&(O^I[a])];return-1^O}},{}],46:[function(se,Me,ie){"use strict";var Y,O=se("../utils/common"),I=se("./trees"),n=se("./adler32"),o=se("./crc32"),L=se("./messages"),p=0,a=4,d=0,m=-2,S=-1,$=4,F=2,H=8,V=9,ee=286,B=30,G=19,le=2*ee+1,J=15,we=3,Ce=258,Le=Ce+we+1,ae=42,pe=113,T=1,Ee=2,oe=3,fe=4;function ye(_e,kt){return _e.msg=L[kt],kt}function _(_e){return(_e<<1)-(4<_e?9:0)}function N(_e){for(var kt=_e.length;0<=--kt;)_e[kt]=0}function X(_e){var kt=_e.state,K=kt.pending;K>_e.avail_out&&(K=_e.avail_out),K!==0&&(O.arraySet(_e.output,kt.pending_buf,kt.pending_out,K,_e.next_out),_e.next_out+=K,kt.pending_out+=K,_e.total_out+=K,_e.avail_out-=K,kt.pending-=K,kt.pending===0&&(kt.pending_out=0))}function he(_e,kt){I._tr_flush_block(_e,0<=_e.block_start?_e.block_start:-1,_e.strstart-_e.block_start,kt),_e.block_start=_e.strstart,X(_e.strm)}function qe(_e,kt){_e.pending_buf[_e.pending++]=kt}function st(_e,kt){_e.pending_buf[_e.pending++]=kt>>>8&255,_e.pending_buf[_e.pending++]=255&kt}function nt(_e,kt){var K,y,h=_e.max_chain_length,D=_e.strstart,Ae=_e.prev_length,Z=_e.nice_match,k=_e.strstart>_e.w_size-Le?_e.strstart-(_e.w_size-Le):0,te=_e.window,Se=_e.w_mask,Be=_e.prev,Ie=_e.strstart+Ce,Ge=te[D+Ae-1],mt=te[D+Ae];_e.prev_length>=_e.good_match&&(h>>=2),Z>_e.lookahead&&(Z=_e.lookahead);do if(te[(K=kt)+Ae]===mt&&te[K+Ae-1]===Ge&&te[K]===te[D]&&te[++K]===te[D+1]){D+=2,K++;do;while(te[++D]===te[++K]&&te[++D]===te[++K]&&te[++D]===te[++K]&&te[++D]===te[++K]&&te[++D]===te[++K]&&te[++D]===te[++K]&&te[++D]===te[++K]&&te[++D]===te[++K]&&D<Ie);if(y=Ce-(Ie-D),D=Ie-Ce,Ae<y){if(_e.match_start=kt,Z<=(Ae=y))break;Ge=te[D+Ae-1],mt=te[D+Ae]}}while((kt=Be[kt&Se])>k&&--h!=0);return Ae<=_e.lookahead?Ae:_e.lookahead}function Rt(_e){var kt,K,y,h,D,Ae,Z,k,te,Se,Be=_e.w_size;do{if(h=_e.window_size-_e.lookahead-_e.strstart,_e.strstart>=Be+(Be-Le)){for(O.arraySet(_e.window,_e.window,Be,Be,0),_e.match_start-=Be,_e.strstart-=Be,_e.block_start-=Be,kt=K=_e.hash_size;y=_e.head[--kt],_e.head[kt]=Be<=y?y-Be:0,--K;);for(kt=K=Be;y=_e.prev[--kt],_e.prev[kt]=Be<=y?y-Be:0,--K;);h+=Be}if(_e.strm.avail_in===0)break;if(Ae=_e.strm,Z=_e.window,k=_e.strstart+_e.lookahead,te=h,Se=void 0,Se=Ae.avail_in,te<Se&&(Se=te),K=Se===0?0:(Ae.avail_in-=Se,O.arraySet(Z,Ae.input,Ae.next_in,Se,k),Ae.state.wrap===1?Ae.adler=n(Ae.adler,Z,Se,k):Ae.state.wrap===2&&(Ae.adler=o(Ae.adler,Z,Se,k)),Ae.next_in+=Se,Ae.total_in+=Se,Se),_e.lookahead+=K,_e.lookahead+_e.insert>=we)for(D=_e.strstart-_e.insert,_e.ins_h=_e.window[D],_e.ins_h=(_e.ins_h<<_e.hash_shift^_e.window[D+1])&_e.hash_mask;_e.insert&&(_e.ins_h=(_e.ins_h<<_e.hash_shift^_e.window[D+we-1])&_e.hash_mask,_e.prev[D&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=D,D++,_e.insert--,!(_e.lookahead+_e.insert<we)););}while(_e.lookahead<Le&&_e.strm.avail_in!==0)}function sr(_e,kt){for(var K,y;;){if(_e.lookahead<Le){if(Rt(_e),_e.lookahead<Le&&kt===p)return T;if(_e.lookahead===0)break}if(K=0,_e.lookahead>=we&&(_e.ins_h=(_e.ins_h<<_e.hash_shift^_e.window[_e.strstart+we-1])&_e.hash_mask,K=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart),K!==0&&_e.strstart-K<=_e.w_size-Le&&(_e.match_length=nt(_e,K)),_e.match_length>=we)if(y=I._tr_tally(_e,_e.strstart-_e.match_start,_e.match_length-we),_e.lookahead-=_e.match_length,_e.match_length<=_e.max_lazy_match&&_e.lookahead>=we){for(_e.match_length--;_e.strstart++,_e.ins_h=(_e.ins_h<<_e.hash_shift^_e.window[_e.strstart+we-1])&_e.hash_mask,K=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart,--_e.match_length!=0;);_e.strstart++}else _e.strstart+=_e.match_length,_e.match_length=0,_e.ins_h=_e.window[_e.strstart],_e.ins_h=(_e.ins_h<<_e.hash_shift^_e.window[_e.strstart+1])&_e.hash_mask;else y=I._tr_tally(_e,0,_e.window[_e.strstart]),_e.lookahead--,_e.strstart++;if(y&&(he(_e,!1),_e.strm.avail_out===0))return T}return _e.insert=_e.strstart<we-1?_e.strstart:we-1,kt===a?(he(_e,!0),_e.strm.avail_out===0?oe:fe):_e.last_lit&&(he(_e,!1),_e.strm.avail_out===0)?T:Ee}function Jt(_e,kt){for(var K,y,h;;){if(_e.lookahead<Le){if(Rt(_e),_e.lookahead<Le&&kt===p)return T;if(_e.lookahead===0)break}if(K=0,_e.lookahead>=we&&(_e.ins_h=(_e.ins_h<<_e.hash_shift^_e.window[_e.strstart+we-1])&_e.hash_mask,K=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart),_e.prev_length=_e.match_length,_e.prev_match=_e.match_start,_e.match_length=we-1,K!==0&&_e.prev_length<_e.max_lazy_match&&_e.strstart-K<=_e.w_size-Le&&(_e.match_length=nt(_e,K),_e.match_length<=5&&(_e.strategy===1||_e.match_length===we&&4096<_e.strstart-_e.match_start)&&(_e.match_length=we-1)),_e.prev_length>=we&&_e.match_length<=_e.prev_length){for(h=_e.strstart+_e.lookahead-we,y=I._tr_tally(_e,_e.strstart-1-_e.prev_match,_e.prev_length-we),_e.lookahead-=_e.prev_length-1,_e.prev_length-=2;++_e.strstart<=h&&(_e.ins_h=(_e.ins_h<<_e.hash_shift^_e.window[_e.strstart+we-1])&_e.hash_mask,K=_e.prev[_e.strstart&_e.w_mask]=_e.head[_e.ins_h],_e.head[_e.ins_h]=_e.strstart),--_e.prev_length!=0;);if(_e.match_available=0,_e.match_length=we-1,_e.strstart++,y&&(he(_e,!1),_e.strm.avail_out===0))return T}else if(_e.match_available){if((y=I._tr_tally(_e,0,_e.window[_e.strstart-1]))&&he(_e,!1),_e.strstart++,_e.lookahead--,_e.strm.avail_out===0)return T}else _e.match_available=1,_e.strstart++,_e.lookahead--}return _e.match_available&&(y=I._tr_tally(_e,0,_e.window[_e.strstart-1]),_e.match_available=0),_e.insert=_e.strstart<we-1?_e.strstart:we-1,kt===a?(he(_e,!0),_e.strm.avail_out===0?oe:fe):_e.last_lit&&(he(_e,!1),_e.strm.avail_out===0)?T:Ee}function We(_e,kt,K,y,h){this.good_length=_e,this.max_lazy=kt,this.nice_length=K,this.max_chain=y,this.func=h}function Er(){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=H,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 O.Buf16(2*le),this.dyn_dtree=new O.Buf16(2*(2*B+1)),this.bl_tree=new O.Buf16(2*(2*G+1)),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new O.Buf16(J+1),this.heap=new O.Buf16(2*ee+1),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new O.Buf16(2*ee+1),N(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 xr(_e){var kt;return _e&&_e.state?(_e.total_in=_e.total_out=0,_e.data_type=F,(kt=_e.state).pending=0,kt.pending_out=0,kt.wrap<0&&(kt.wrap=-kt.wrap),kt.status=kt.wrap?ae:pe,_e.adler=kt.wrap===2?0:1,kt.last_flush=p,I._tr_init(kt),d):ye(_e,m)}function Wr(_e){var kt=xr(_e);return kt===d&&function(K){K.window_size=2*K.w_size,N(K.head),K.max_lazy_match=Y[K.level].max_lazy,K.good_match=Y[K.level].good_length,K.nice_match=Y[K.level].nice_length,K.max_chain_length=Y[K.level].max_chain,K.strstart=0,K.block_start=0,K.lookahead=0,K.insert=0,K.match_length=K.prev_length=we-1,K.match_available=0,K.ins_h=0}(_e.state),kt}function Cr(_e,kt,K,y,h,D){if(!_e)return m;var Ae=1;if(kt===S&&(kt=6),y<0?(Ae=0,y=-y):15<y&&(Ae=2,y-=16),h<1||V<h||K!==H||y<8||15<y||kt<0||9<kt||D<0||$<D)return ye(_e,m);y===8&&(y=9);var Z=new Er;return(_e.state=Z).strm=_e,Z.wrap=Ae,Z.gzhead=null,Z.w_bits=y,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=h+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+we-1)/we),Z.window=new O.Buf8(2*Z.w_size),Z.head=new O.Buf16(Z.hash_size),Z.prev=new O.Buf16(Z.w_size),Z.lit_bufsize=1<<h+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new O.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=kt,Z.strategy=D,Z.method=K,Wr(_e)}Y=[new We(0,0,0,0,function(_e,kt){var K=65535;for(K>_e.pending_buf_size-5&&(K=_e.pending_buf_size-5);;){if(_e.lookahead<=1){if(Rt(_e),_e.lookahead===0&&kt===p)return T;if(_e.lookahead===0)break}_e.strstart+=_e.lookahead,_e.lookahead=0;var y=_e.block_start+K;if((_e.strstart===0||_e.strstart>=y)&&(_e.lookahead=_e.strstart-y,_e.strstart=y,he(_e,!1),_e.strm.avail_out===0)||_e.strstart-_e.block_start>=_e.w_size-Le&&(he(_e,!1),_e.strm.avail_out===0))return T}return _e.insert=0,kt===a?(he(_e,!0),_e.strm.avail_out===0?oe:fe):(_e.strstart>_e.block_start&&(he(_e,!1),_e.strm.avail_out),T)}),new We(4,4,8,4,sr),new We(4,5,16,8,sr),new We(4,6,32,32,sr),new We(4,4,16,16,Jt),new We(8,16,32,32,Jt),new We(8,16,128,128,Jt),new We(8,32,128,256,Jt),new We(32,128,258,1024,Jt),new We(32,258,258,4096,Jt)],ie.deflateInit=function(_e,kt){return Cr(_e,kt,H,15,8,0)},ie.deflateInit2=Cr,ie.deflateReset=Wr,ie.deflateResetKeep=xr,ie.deflateSetHeader=function(_e,kt){return _e&&_e.state?_e.state.wrap!==2?m:(_e.state.gzhead=kt,d):m},ie.deflate=function(_e,kt){var K,y,h,D;if(!_e||!_e.state||5<kt||kt<0)return _e?ye(_e,m):m;if(y=_e.state,!_e.output||!_e.input&&_e.avail_in!==0||y.status===666&&kt!==a)return ye(_e,_e.avail_out===0?-5:m);if(y.strm=_e,K=y.last_flush,y.last_flush=kt,y.status===ae)if(y.wrap===2)_e.adler=0,qe(y,31),qe(y,139),qe(y,8),y.gzhead?(qe(y,(y.gzhead.text?1:0)+(y.gzhead.hcrc?2:0)+(y.gzhead.extra?4:0)+(y.gzhead.name?8:0)+(y.gzhead.comment?16:0)),qe(y,255&y.gzhead.time),qe(y,y.gzhead.time>>8&255),qe(y,y.gzhead.time>>16&255),qe(y,y.gzhead.time>>24&255),qe(y,y.level===9?2:2<=y.strategy||y.level<2?4:0),qe(y,255&y.gzhead.os),y.gzhead.extra&&y.gzhead.extra.length&&(qe(y,255&y.gzhead.extra.length),qe(y,y.gzhead.extra.length>>8&255)),y.gzhead.hcrc&&(_e.adler=o(_e.adler,y.pending_buf,y.pending,0)),y.gzindex=0,y.status=69):(qe(y,0),qe(y,0),qe(y,0),qe(y,0),qe(y,0),qe(y,y.level===9?2:2<=y.strategy||y.level<2?4:0),qe(y,3),y.status=pe);else{var Ae=H+(y.w_bits-8<<4)<<8;Ae|=(2<=y.strategy||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6,y.strstart!==0&&(Ae|=32),Ae+=31-Ae%31,y.status=pe,st(y,Ae),y.strstart!==0&&(st(y,_e.adler>>>16),st(y,65535&_e.adler)),_e.adler=1}if(y.status===69)if(y.gzhead.extra){for(h=y.pending;y.gzindex<(65535&y.gzhead.extra.length)&&(y.pending!==y.pending_buf_size||(y.gzhead.hcrc&&y.pending>h&&(_e.adler=o(_e.adler,y.pending_buf,y.pending-h,h)),X(_e),h=y.pending,y.pending!==y.pending_buf_size));)qe(y,255&y.gzhead.extra[y.gzindex]),y.gzindex++;y.gzhead.hcrc&&y.pending>h&&(_e.adler=o(_e.adler,y.pending_buf,y.pending-h,h)),y.gzindex===y.gzhead.extra.length&&(y.gzindex=0,y.status=73)}else y.status=73;if(y.status===73)if(y.gzhead.name){h=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>h&&(_e.adler=o(_e.adler,y.pending_buf,y.pending-h,h)),X(_e),h=y.pending,y.pending===y.pending_buf_size)){D=1;break}D=y.gzindex<y.gzhead.name.length?255&y.gzhead.name.charCodeAt(y.gzindex++):0,qe(y,D)}while(D!==0);y.gzhead.hcrc&&y.pending>h&&(_e.adler=o(_e.adler,y.pending_buf,y.pending-h,h)),D===0&&(y.gzindex=0,y.status=91)}else y.status=91;if(y.status===91)if(y.gzhead.comment){h=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>h&&(_e.adler=o(_e.adler,y.pending_buf,y.pending-h,h)),X(_e),h=y.pending,y.pending===y.pending_buf_size)){D=1;break}D=y.gzindex<y.gzhead.comment.length?255&y.gzhead.comment.charCodeAt(y.gzindex++):0,qe(y,D)}while(D!==0);y.gzhead.hcrc&&y.pending>h&&(_e.adler=o(_e.adler,y.pending_buf,y.pending-h,h)),D===0&&(y.status=103)}else y.status=103;if(y.status===103&&(y.gzhead.hcrc?(y.pending+2>y.pending_buf_size&&X(_e),y.pending+2<=y.pending_buf_size&&(qe(y,255&_e.adler),qe(y,_e.adler>>8&255),_e.adler=0,y.status=pe)):y.status=pe),y.pending!==0){if(X(_e),_e.avail_out===0)return y.last_flush=-1,d}else if(_e.avail_in===0&&_(kt)<=_(K)&&kt!==a)return ye(_e,-5);if(y.status===666&&_e.avail_in!==0)return ye(_e,-5);if(_e.avail_in!==0||y.lookahead!==0||kt!==p&&y.status!==666){var Z=y.strategy===2?function(k,te){for(var Se;;){if(k.lookahead===0&&(Rt(k),k.lookahead===0)){if(te===p)return T;break}if(k.match_length=0,Se=I._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++,Se&&(he(k,!1),k.strm.avail_out===0))return T}return k.insert=0,te===a?(he(k,!0),k.strm.avail_out===0?oe:fe):k.last_lit&&(he(k,!1),k.strm.avail_out===0)?T:Ee}(y,kt):y.strategy===3?function(k,te){for(var Se,Be,Ie,Ge,mt=k.window;;){if(k.lookahead<=Ce){if(Rt(k),k.lookahead<=Ce&&te===p)return T;if(k.lookahead===0)break}if(k.match_length=0,k.lookahead>=we&&0<k.strstart&&(Be=mt[Ie=k.strstart-1])===mt[++Ie]&&Be===mt[++Ie]&&Be===mt[++Ie]){Ge=k.strstart+Ce;do;while(Be===mt[++Ie]&&Be===mt[++Ie]&&Be===mt[++Ie]&&Be===mt[++Ie]&&Be===mt[++Ie]&&Be===mt[++Ie]&&Be===mt[++Ie]&&Be===mt[++Ie]&&Ie<Ge);k.match_length=Ce-(Ge-Ie),k.match_length>k.lookahead&&(k.match_length=k.lookahead)}if(k.match_length>=we?(Se=I._tr_tally(k,1,k.match_length-we),k.lookahead-=k.match_length,k.strstart+=k.match_length,k.match_length=0):(Se=I._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++),Se&&(he(k,!1),k.strm.avail_out===0))return T}return k.insert=0,te===a?(he(k,!0),k.strm.avail_out===0?oe:fe):k.last_lit&&(he(k,!1),k.strm.avail_out===0)?T:Ee}(y,kt):Y[y.level].func(y,kt);if(Z!==oe&&Z!==fe||(y.status=666),Z===T||Z===oe)return _e.avail_out===0&&(y.last_flush=-1),d;if(Z===Ee&&(kt===1?I._tr_align(y):kt!==5&&(I._tr_stored_block(y,0,0,!1),kt===3&&(N(y.head),y.lookahead===0&&(y.strstart=0,y.block_start=0,y.insert=0))),X(_e),_e.avail_out===0))return y.last_flush=-1,d}return kt!==a?d:y.wrap<=0?1:(y.wrap===2?(qe(y,255&_e.adler),qe(y,_e.adler>>8&255),qe(y,_e.adler>>16&255),qe(y,_e.adler>>24&255),qe(y,255&_e.total_in),qe(y,_e.total_in>>8&255),qe(y,_e.total_in>>16&255),qe(y,_e.total_in>>24&255)):(st(y,_e.adler>>>16),st(y,65535&_e.adler)),X(_e),0<y.wrap&&(y.wrap=-y.wrap),y.pending!==0?d:1)},ie.deflateEnd=function(_e){var kt;return _e&&_e.state?(kt=_e.state.status)!==ae&&kt!==69&&kt!==73&&kt!==91&&kt!==103&&kt!==pe&&kt!==666?ye(_e,m):(_e.state=null,kt===pe?ye(_e,-3):d):m},ie.deflateSetDictionary=function(_e,kt){var K,y,h,D,Ae,Z,k,te,Se=kt.length;if(!_e||!_e.state||(D=(K=_e.state).wrap)===2||D===1&&K.status!==ae||K.lookahead)return m;for(D===1&&(_e.adler=n(_e.adler,kt,Se,0)),K.wrap=0,Se>=K.w_size&&(D===0&&(N(K.head),K.strstart=0,K.block_start=0,K.insert=0),te=new O.Buf8(K.w_size),O.arraySet(te,kt,Se-K.w_size,K.w_size,0),kt=te,Se=K.w_size),Ae=_e.avail_in,Z=_e.next_in,k=_e.input,_e.avail_in=Se,_e.next_in=0,_e.input=kt,Rt(K);K.lookahead>=we;){for(y=K.strstart,h=K.lookahead-(we-1);K.ins_h=(K.ins_h<<K.hash_shift^K.window[y+we-1])&K.hash_mask,K.prev[y&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=y,y++,--h;);K.strstart=y,K.lookahead=we-1,Rt(K)}return K.strstart+=K.lookahead,K.block_start=K.strstart,K.insert=K.lookahead,K.lookahead=0,K.match_length=K.prev_length=we-1,K.match_available=0,_e.next_in=Z,_e.input=k,_e.avail_in=Ae,K.wrap=D,d},ie.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(se,Me,ie){"use strict";Me.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(se,Me,ie){"use strict";Me.exports=function(Y,O){var I,n,o,L,p,a,d,m,S,$,F,H,V,ee,B,G,le,J,we,Ce,Le,ae,pe,T,Ee;I=Y.state,n=Y.next_in,T=Y.input,o=n+(Y.avail_in-5),L=Y.next_out,Ee=Y.output,p=L-(O-Y.avail_out),a=L+(Y.avail_out-257),d=I.dmax,m=I.wsize,S=I.whave,$=I.wnext,F=I.window,H=I.hold,V=I.bits,ee=I.lencode,B=I.distcode,G=(1<<I.lenbits)-1,le=(1<<I.distbits)-1;e:do{V<15&&(H+=T[n++]<<V,V+=8,H+=T[n++]<<V,V+=8),J=ee[H&G];t:for(;;){if(H>>>=we=J>>>24,V-=we,(we=J>>>16&255)===0)Ee[L++]=65535&J;else{if(!(16&we)){if(!(64&we)){J=ee[(65535&J)+(H&(1<<we)-1)];continue t}if(32&we){I.mode=12;break e}Y.msg="invalid literal/length code",I.mode=30;break e}Ce=65535&J,(we&=15)&&(V<we&&(H+=T[n++]<<V,V+=8),Ce+=H&(1<<we)-1,H>>>=we,V-=we),V<15&&(H+=T[n++]<<V,V+=8,H+=T[n++]<<V,V+=8),J=B[H&le];r:for(;;){if(H>>>=we=J>>>24,V-=we,!(16&(we=J>>>16&255))){if(!(64&we)){J=B[(65535&J)+(H&(1<<we)-1)];continue r}Y.msg="invalid distance code",I.mode=30;break e}if(Le=65535&J,V<(we&=15)&&(H+=T[n++]<<V,(V+=8)<we&&(H+=T[n++]<<V,V+=8)),d<(Le+=H&(1<<we)-1)){Y.msg="invalid distance too far back",I.mode=30;break e}if(H>>>=we,V-=we,(we=L-p)<Le){if(S<(we=Le-we)&&I.sane){Y.msg="invalid distance too far back",I.mode=30;break e}if(pe=F,(ae=0)===$){if(ae+=m-we,we<Ce){for(Ce-=we;Ee[L++]=F[ae++],--we;);ae=L-Le,pe=Ee}}else if($<we){if(ae+=m+$-we,(we-=$)<Ce){for(Ce-=we;Ee[L++]=F[ae++],--we;);if(ae=0,$<Ce){for(Ce-=we=$;Ee[L++]=F[ae++],--we;);ae=L-Le,pe=Ee}}}else if(ae+=$-we,we<Ce){for(Ce-=we;Ee[L++]=F[ae++],--we;);ae=L-Le,pe=Ee}for(;2<Ce;)Ee[L++]=pe[ae++],Ee[L++]=pe[ae++],Ee[L++]=pe[ae++],Ce-=3;Ce&&(Ee[L++]=pe[ae++],1<Ce&&(Ee[L++]=pe[ae++]))}else{for(ae=L-Le;Ee[L++]=Ee[ae++],Ee[L++]=Ee[ae++],Ee[L++]=Ee[ae++],2<(Ce-=3););Ce&&(Ee[L++]=Ee[ae++],1<Ce&&(Ee[L++]=Ee[ae++]))}break}}break}}while(n<o&&L<a);n-=Ce=V>>3,H&=(1<<(V-=Ce<<3))-1,Y.next_in=n,Y.next_out=L,Y.avail_in=n<o?o-n+5:5-(n-o),Y.avail_out=L<a?a-L+257:257-(L-a),I.hold=H,I.bits=V}},{}],49:[function(se,Me,ie){"use strict";var Y=se("../utils/common"),O=se("./adler32"),I=se("./crc32"),n=se("./inffast"),o=se("./inftrees"),L=1,p=2,a=0,d=-2,m=1,S=852,$=592;function F(ae){return(ae>>>24&255)+(ae>>>8&65280)+((65280&ae)<<8)+((255&ae)<<24)}function H(){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 Y.Buf16(320),this.work=new Y.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function V(ae){var pe;return ae&&ae.state?(pe=ae.state,ae.total_in=ae.total_out=pe.total=0,ae.msg="",pe.wrap&&(ae.adler=1&pe.wrap),pe.mode=m,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new Y.Buf32(S),pe.distcode=pe.distdyn=new Y.Buf32($),pe.sane=1,pe.back=-1,a):d}function ee(ae){var pe;return ae&&ae.state?((pe=ae.state).wsize=0,pe.whave=0,pe.wnext=0,V(ae)):d}function B(ae,pe){var T,Ee;return ae&&ae.state?(Ee=ae.state,pe<0?(T=0,pe=-pe):(T=1+(pe>>4),pe<48&&(pe&=15)),pe&&(pe<8||15<pe)?d:(Ee.window!==null&&Ee.wbits!==pe&&(Ee.window=null),Ee.wrap=T,Ee.wbits=pe,ee(ae))):d}function G(ae,pe){var T,Ee;return ae?(Ee=new H,(ae.state=Ee).window=null,(T=B(ae,pe))!==a&&(ae.state=null),T):d}var le,J,we=!0;function Ce(ae){if(we){var pe;for(le=new Y.Buf32(512),J=new Y.Buf32(32),pe=0;pe<144;)ae.lens[pe++]=8;for(;pe<256;)ae.lens[pe++]=9;for(;pe<280;)ae.lens[pe++]=7;for(;pe<288;)ae.lens[pe++]=8;for(o(L,ae.lens,0,288,le,0,ae.work,{bits:9}),pe=0;pe<32;)ae.lens[pe++]=5;o(p,ae.lens,0,32,J,0,ae.work,{bits:5}),we=!1}ae.lencode=le,ae.lenbits=9,ae.distcode=J,ae.distbits=5}function Le(ae,pe,T,Ee){var oe,fe=ae.state;return fe.window===null&&(fe.wsize=1<<fe.wbits,fe.wnext=0,fe.whave=0,fe.window=new Y.Buf8(fe.wsize)),Ee>=fe.wsize?(Y.arraySet(fe.window,pe,T-fe.wsize,fe.wsize,0),fe.wnext=0,fe.whave=fe.wsize):(Ee<(oe=fe.wsize-fe.wnext)&&(oe=Ee),Y.arraySet(fe.window,pe,T-Ee,oe,fe.wnext),(Ee-=oe)?(Y.arraySet(fe.window,pe,T-Ee,Ee,0),fe.wnext=Ee,fe.whave=fe.wsize):(fe.wnext+=oe,fe.wnext===fe.wsize&&(fe.wnext=0),fe.whave<fe.wsize&&(fe.whave+=oe))),0}ie.inflateReset=ee,ie.inflateReset2=B,ie.inflateResetKeep=V,ie.inflateInit=function(ae){return G(ae,15)},ie.inflateInit2=G,ie.inflate=function(ae,pe){var T,Ee,oe,fe,ye,_,N,X,he,qe,st,nt,Rt,sr,Jt,We,Er,xr,Wr,Cr,_e,kt,K,y,h=0,D=new Y.Buf8(4),Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ae||!ae.state||!ae.output||!ae.input&&ae.avail_in!==0)return d;(T=ae.state).mode===12&&(T.mode=13),ye=ae.next_out,oe=ae.output,N=ae.avail_out,fe=ae.next_in,Ee=ae.input,_=ae.avail_in,X=T.hold,he=T.bits,qe=_,st=N,kt=a;e:for(;;)switch(T.mode){case m:if(T.wrap===0){T.mode=13;break}for(;he<16;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(2&T.wrap&&X===35615){D[T.check=0]=255&X,D[1]=X>>>8&255,T.check=I(T.check,D,2,0),he=X=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&X)<<8)+(X>>8))%31){ae.msg="incorrect header check",T.mode=30;break}if((15&X)!=8){ae.msg="unknown compression method",T.mode=30;break}if(he-=4,_e=8+(15&(X>>>=4)),T.wbits===0)T.wbits=_e;else if(_e>T.wbits){ae.msg="invalid window size",T.mode=30;break}T.dmax=1<<_e,ae.adler=T.check=1,T.mode=512&X?10:12,he=X=0;break;case 2:for(;he<16;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(T.flags=X,(255&T.flags)!=8){ae.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){ae.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=X>>8&1),512&T.flags&&(D[0]=255&X,D[1]=X>>>8&255,T.check=I(T.check,D,2,0)),he=X=0,T.mode=3;case 3:for(;he<32;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}T.head&&(T.head.time=X),512&T.flags&&(D[0]=255&X,D[1]=X>>>8&255,D[2]=X>>>16&255,D[3]=X>>>24&255,T.check=I(T.check,D,4,0)),he=X=0,T.mode=4;case 4:for(;he<16;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}T.head&&(T.head.xflags=255&X,T.head.os=X>>8),512&T.flags&&(D[0]=255&X,D[1]=X>>>8&255,T.check=I(T.check,D,2,0)),he=X=0,T.mode=5;case 5:if(1024&T.flags){for(;he<16;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}T.length=X,T.head&&(T.head.extra_len=X),512&T.flags&&(D[0]=255&X,D[1]=X>>>8&255,T.check=I(T.check,D,2,0)),he=X=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(_<(nt=T.length)&&(nt=_),nt&&(T.head&&(_e=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),Y.arraySet(T.head.extra,Ee,fe,nt,_e)),512&T.flags&&(T.check=I(T.check,Ee,nt,fe)),_-=nt,fe+=nt,T.length-=nt),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(_===0)break e;for(nt=0;_e=Ee[fe+nt++],T.head&&_e&&T.length<65536&&(T.head.name+=String.fromCharCode(_e)),_e&&nt<_;);if(512&T.flags&&(T.check=I(T.check,Ee,nt,fe)),_-=nt,fe+=nt,_e)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(_===0)break e;for(nt=0;_e=Ee[fe+nt++],T.head&&_e&&T.length<65536&&(T.head.comment+=String.fromCharCode(_e)),_e&&nt<_;);if(512&T.flags&&(T.check=I(T.check,Ee,nt,fe)),_-=nt,fe+=nt,_e)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;he<16;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(X!==(65535&T.check)){ae.msg="header crc mismatch",T.mode=30;break}he=X=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),ae.adler=T.check=0,T.mode=12;break;case 10:for(;he<32;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}ae.adler=T.check=F(X),he=X=0,T.mode=11;case 11:if(T.havedict===0)return ae.next_out=ye,ae.avail_out=N,ae.next_in=fe,ae.avail_in=_,T.hold=X,T.bits=he,2;ae.adler=T.check=1,T.mode=12;case 12:if(pe===5||pe===6)break e;case 13:if(T.last){X>>>=7&he,he-=7&he,T.mode=27;break}for(;he<3;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}switch(T.last=1&X,he-=1,3&(X>>>=1)){case 0:T.mode=14;break;case 1:if(Ce(T),T.mode=20,pe!==6)break;X>>>=2,he-=2;break e;case 2:T.mode=17;break;case 3:ae.msg="invalid block type",T.mode=30}X>>>=2,he-=2;break;case 14:for(X>>>=7&he,he-=7&he;he<32;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if((65535&X)!=(X>>>16^65535)){ae.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&X,he=X=0,T.mode=15,pe===6)break e;case 15:T.mode=16;case 16:if(nt=T.length){if(_<nt&&(nt=_),N<nt&&(nt=N),nt===0)break e;Y.arraySet(oe,Ee,fe,nt,ye),_-=nt,fe+=nt,N-=nt,ye+=nt,T.length-=nt;break}T.mode=12;break;case 17:for(;he<14;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(T.nlen=257+(31&X),X>>>=5,he-=5,T.ndist=1+(31&X),X>>>=5,he-=5,T.ncode=4+(15&X),X>>>=4,he-=4,286<T.nlen||30<T.ndist){ae.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;he<3;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}T.lens[Ae[T.have++]]=7&X,X>>>=3,he-=3}for(;T.have<19;)T.lens[Ae[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,K={bits:T.lenbits},kt=o(0,T.lens,0,19,T.lencode,0,T.work,K),T.lenbits=K.bits,kt){ae.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;We=(h=T.lencode[X&(1<<T.lenbits)-1])>>>16&255,Er=65535&h,!((Jt=h>>>24)<=he);){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(Er<16)X>>>=Jt,he-=Jt,T.lens[T.have++]=Er;else{if(Er===16){for(y=Jt+2;he<y;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(X>>>=Jt,he-=Jt,T.have===0){ae.msg="invalid bit length repeat",T.mode=30;break}_e=T.lens[T.have-1],nt=3+(3&X),X>>>=2,he-=2}else if(Er===17){for(y=Jt+3;he<y;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}he-=Jt,_e=0,nt=3+(7&(X>>>=Jt)),X>>>=3,he-=3}else{for(y=Jt+7;he<y;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}he-=Jt,_e=0,nt=11+(127&(X>>>=Jt)),X>>>=7,he-=7}if(T.have+nt>T.nlen+T.ndist){ae.msg="invalid bit length repeat",T.mode=30;break}for(;nt--;)T.lens[T.have++]=_e}}if(T.mode===30)break;if(T.lens[256]===0){ae.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,K={bits:T.lenbits},kt=o(L,T.lens,0,T.nlen,T.lencode,0,T.work,K),T.lenbits=K.bits,kt){ae.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,K={bits:T.distbits},kt=o(p,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,K),T.distbits=K.bits,kt){ae.msg="invalid distances set",T.mode=30;break}if(T.mode=20,pe===6)break e;case 20:T.mode=21;case 21:if(6<=_&&258<=N){ae.next_out=ye,ae.avail_out=N,ae.next_in=fe,ae.avail_in=_,T.hold=X,T.bits=he,n(ae,st),ye=ae.next_out,oe=ae.output,N=ae.avail_out,fe=ae.next_in,Ee=ae.input,_=ae.avail_in,X=T.hold,he=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;We=(h=T.lencode[X&(1<<T.lenbits)-1])>>>16&255,Er=65535&h,!((Jt=h>>>24)<=he);){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(We&&!(240&We)){for(xr=Jt,Wr=We,Cr=Er;We=(h=T.lencode[Cr+((X&(1<<xr+Wr)-1)>>xr)])>>>16&255,Er=65535&h,!(xr+(Jt=h>>>24)<=he);){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}X>>>=xr,he-=xr,T.back+=xr}if(X>>>=Jt,he-=Jt,T.back+=Jt,T.length=Er,We===0){T.mode=26;break}if(32&We){T.back=-1,T.mode=12;break}if(64&We){ae.msg="invalid literal/length code",T.mode=30;break}T.extra=15&We,T.mode=22;case 22:if(T.extra){for(y=T.extra;he<y;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}T.length+=X&(1<<T.extra)-1,X>>>=T.extra,he-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;We=(h=T.distcode[X&(1<<T.distbits)-1])>>>16&255,Er=65535&h,!((Jt=h>>>24)<=he);){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(!(240&We)){for(xr=Jt,Wr=We,Cr=Er;We=(h=T.distcode[Cr+((X&(1<<xr+Wr)-1)>>xr)])>>>16&255,Er=65535&h,!(xr+(Jt=h>>>24)<=he);){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}X>>>=xr,he-=xr,T.back+=xr}if(X>>>=Jt,he-=Jt,T.back+=Jt,64&We){ae.msg="invalid distance code",T.mode=30;break}T.offset=Er,T.extra=15&We,T.mode=24;case 24:if(T.extra){for(y=T.extra;he<y;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}T.offset+=X&(1<<T.extra)-1,X>>>=T.extra,he-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){ae.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(N===0)break e;if(nt=st-N,T.offset>nt){if((nt=T.offset-nt)>T.whave&&T.sane){ae.msg="invalid distance too far back",T.mode=30;break}Rt=nt>T.wnext?(nt-=T.wnext,T.wsize-nt):T.wnext-nt,nt>T.length&&(nt=T.length),sr=T.window}else sr=oe,Rt=ye-T.offset,nt=T.length;for(N<nt&&(nt=N),N-=nt,T.length-=nt;oe[ye++]=sr[Rt++],--nt;);T.length===0&&(T.mode=21);break;case 26:if(N===0)break e;oe[ye++]=T.length,N--,T.mode=21;break;case 27:if(T.wrap){for(;he<32;){if(_===0)break e;_--,X|=Ee[fe++]<<he,he+=8}if(st-=N,ae.total_out+=st,T.total+=st,st&&(ae.adler=T.check=T.flags?I(T.check,oe,st,ye-st):O(T.check,oe,st,ye-st)),st=N,(T.flags?X:F(X))!==T.check){ae.msg="incorrect data check",T.mode=30;break}he=X=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;he<32;){if(_===0)break e;_--,X+=Ee[fe++]<<he,he+=8}if(X!==(4294967295&T.total)){ae.msg="incorrect length check",T.mode=30;break}he=X=0}T.mode=29;case 29:kt=1;break e;case 30:kt=-3;break e;case 31:return-4;case 32:default:return d}return ae.next_out=ye,ae.avail_out=N,ae.next_in=fe,ae.avail_in=_,T.hold=X,T.bits=he,(T.wsize||st!==ae.avail_out&&T.mode<30&&(T.mode<27||pe!==4))&&Le(ae,ae.output,ae.next_out,st-ae.avail_out)?(T.mode=31,-4):(qe-=ae.avail_in,st-=ae.avail_out,ae.total_in+=qe,ae.total_out+=st,T.total+=st,T.wrap&&st&&(ae.adler=T.check=T.flags?I(T.check,oe,st,ae.next_out-st):O(T.check,oe,st,ae.next_out-st)),ae.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(qe==0&&st===0||pe===4)&&kt===a&&(kt=-5),kt)},ie.inflateEnd=function(ae){if(!ae||!ae.state)return d;var pe=ae.state;return pe.window&&(pe.window=null),ae.state=null,a},ie.inflateGetHeader=function(ae,pe){var T;return ae&&ae.state&&2&(T=ae.state).wrap?((T.head=pe).done=!1,a):d},ie.inflateSetDictionary=function(ae,pe){var T,Ee=pe.length;return ae&&ae.state?(T=ae.state).wrap!==0&&T.mode!==11?d:T.mode===11&&O(1,pe,Ee,0)!==T.check?-3:Le(ae,pe,Ee,Ee)?(T.mode=31,-4):(T.havedict=1,a):d},ie.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(se,Me,ie){"use strict";var Y=se("../utils/common"),O=[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],I=[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],n=[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],o=[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];Me.exports=function(L,p,a,d,m,S,$,F){var H,V,ee,B,G,le,J,we,Ce,Le=F.bits,ae=0,pe=0,T=0,Ee=0,oe=0,fe=0,ye=0,_=0,N=0,X=0,he=null,qe=0,st=new Y.Buf16(16),nt=new Y.Buf16(16),Rt=null,sr=0;for(ae=0;ae<=15;ae++)st[ae]=0;for(pe=0;pe<d;pe++)st[p[a+pe]]++;for(oe=Le,Ee=15;1<=Ee&&st[Ee]===0;Ee--);if(Ee<oe&&(oe=Ee),Ee===0)return m[S++]=20971520,m[S++]=20971520,F.bits=1,0;for(T=1;T<Ee&&st[T]===0;T++);for(oe<T&&(oe=T),ae=_=1;ae<=15;ae++)if(_<<=1,(_-=st[ae])<0)return-1;if(0<_&&(L===0||Ee!==1))return-1;for(nt[1]=0,ae=1;ae<15;ae++)nt[ae+1]=nt[ae]+st[ae];for(pe=0;pe<d;pe++)p[a+pe]!==0&&($[nt[p[a+pe]]++]=pe);if(le=L===0?(he=Rt=$,19):L===1?(he=O,qe-=257,Rt=I,sr-=257,256):(he=n,Rt=o,-1),ae=T,G=S,ye=pe=X=0,ee=-1,B=(N=1<<(fe=oe))-1,L===1&&852<N||L===2&&592<N)return 1;for(;;){for(J=ae-ye,Ce=$[pe]<le?(we=0,$[pe]):$[pe]>le?(we=Rt[sr+$[pe]],he[qe+$[pe]]):(we=96,0),H=1<<ae-ye,T=V=1<<fe;m[G+(X>>ye)+(V-=H)]=J<<24|we<<16|Ce|0,V!==0;);for(H=1<<ae-1;X&H;)H>>=1;if(H!==0?(X&=H-1,X+=H):X=0,pe++,--st[ae]==0){if(ae===Ee)break;ae=p[a+$[pe]]}if(oe<ae&&(X&B)!==ee){for(ye===0&&(ye=oe),G+=T,_=1<<(fe=ae-ye);fe+ye<Ee&&!((_-=st[fe+ye])<=0);)fe++,_<<=1;if(N+=1<<fe,L===1&&852<N||L===2&&592<N)return 1;m[ee=X&B]=oe<<24|fe<<16|G-S|0}}return X!==0&&(m[G+X]=ae-ye<<24|64<<16|0),F.bits=oe,0}},{"../utils/common":41}],51:[function(se,Me,ie){"use strict";Me.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(se,Me,ie){"use strict";var Y=se("../utils/common"),O=0,I=1;function n(h){for(var D=h.length;0<=--D;)h[D]=0}var o=0,L=29,p=256,a=p+1+L,d=30,m=19,S=2*a+1,$=15,F=16,H=7,V=256,ee=16,B=17,G=18,le=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],J=[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],we=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Le=new Array(2*(a+2));n(Le);var ae=new Array(2*d);n(ae);var pe=new Array(512);n(pe);var T=new Array(256);n(T);var Ee=new Array(L);n(Ee);var oe,fe,ye,_=new Array(d);function N(h,D,Ae,Z,k){this.static_tree=h,this.extra_bits=D,this.extra_base=Ae,this.elems=Z,this.max_length=k,this.has_stree=h&&h.length}function X(h,D){this.dyn_tree=h,this.max_code=0,this.stat_desc=D}function he(h){return h<256?pe[h]:pe[256+(h>>>7)]}function qe(h,D){h.pending_buf[h.pending++]=255&D,h.pending_buf[h.pending++]=D>>>8&255}function st(h,D,Ae){h.bi_valid>F-Ae?(h.bi_buf|=D<<h.bi_valid&65535,qe(h,h.bi_buf),h.bi_buf=D>>F-h.bi_valid,h.bi_valid+=Ae-F):(h.bi_buf|=D<<h.bi_valid&65535,h.bi_valid+=Ae)}function nt(h,D,Ae){st(h,Ae[2*D],Ae[2*D+1])}function Rt(h,D){for(var Ae=0;Ae|=1&h,h>>>=1,Ae<<=1,0<--D;);return Ae>>>1}function sr(h,D,Ae){var Z,k,te=new Array($+1),Se=0;for(Z=1;Z<=$;Z++)te[Z]=Se=Se+Ae[Z-1]<<1;for(k=0;k<=D;k++){var Be=h[2*k+1];Be!==0&&(h[2*k]=Rt(te[Be]++,Be))}}function Jt(h){var D;for(D=0;D<a;D++)h.dyn_ltree[2*D]=0;for(D=0;D<d;D++)h.dyn_dtree[2*D]=0;for(D=0;D<m;D++)h.bl_tree[2*D]=0;h.dyn_ltree[2*V]=1,h.opt_len=h.static_len=0,h.last_lit=h.matches=0}function We(h){8<h.bi_valid?qe(h,h.bi_buf):0<h.bi_valid&&(h.pending_buf[h.pending++]=h.bi_buf),h.bi_buf=0,h.bi_valid=0}function Er(h,D,Ae,Z){var k=2*D,te=2*Ae;return h[k]<h[te]||h[k]===h[te]&&Z[D]<=Z[Ae]}function xr(h,D,Ae){for(var Z=h.heap[Ae],k=Ae<<1;k<=h.heap_len&&(k<h.heap_len&&Er(D,h.heap[k+1],h.heap[k],h.depth)&&k++,!Er(D,Z,h.heap[k],h.depth));)h.heap[Ae]=h.heap[k],Ae=k,k<<=1;h.heap[Ae]=Z}function Wr(h,D,Ae){var Z,k,te,Se,Be=0;if(h.last_lit!==0)for(;Z=h.pending_buf[h.d_buf+2*Be]<<8|h.pending_buf[h.d_buf+2*Be+1],k=h.pending_buf[h.l_buf+Be],Be++,Z===0?nt(h,k,D):(nt(h,(te=T[k])+p+1,D),(Se=le[te])!==0&&st(h,k-=Ee[te],Se),nt(h,te=he(--Z),Ae),(Se=J[te])!==0&&st(h,Z-=_[te],Se)),Be<h.last_lit;);nt(h,V,D)}function Cr(h,D){var Ae,Z,k,te=D.dyn_tree,Se=D.stat_desc.static_tree,Be=D.stat_desc.has_stree,Ie=D.stat_desc.elems,Ge=-1;for(h.heap_len=0,h.heap_max=S,Ae=0;Ae<Ie;Ae++)te[2*Ae]!==0?(h.heap[++h.heap_len]=Ge=Ae,h.depth[Ae]=0):te[2*Ae+1]=0;for(;h.heap_len<2;)te[2*(k=h.heap[++h.heap_len]=Ge<2?++Ge:0)]=1,h.depth[k]=0,h.opt_len--,Be&&(h.static_len-=Se[2*k+1]);for(D.max_code=Ge,Ae=h.heap_len>>1;1<=Ae;Ae--)xr(h,te,Ae);for(k=Ie;Ae=h.heap[1],h.heap[1]=h.heap[h.heap_len--],xr(h,te,1),Z=h.heap[1],h.heap[--h.heap_max]=Ae,h.heap[--h.heap_max]=Z,te[2*k]=te[2*Ae]+te[2*Z],h.depth[k]=(h.depth[Ae]>=h.depth[Z]?h.depth[Ae]:h.depth[Z])+1,te[2*Ae+1]=te[2*Z+1]=k,h.heap[1]=k++,xr(h,te,1),2<=h.heap_len;);h.heap[--h.heap_max]=h.heap[1],function(mt,$e){var tt,dt,Ze,Ke,Bt,Vt,Ut=$e.dyn_tree,mr=$e.max_code,br=$e.stat_desc.static_tree,re=$e.stat_desc.has_stree,ue=$e.stat_desc.extra_bits,rr=$e.stat_desc.extra_base,Qe=$e.stat_desc.max_length,ot=0;for(Ke=0;Ke<=$;Ke++)mt.bl_count[Ke]=0;for(Ut[2*mt.heap[mt.heap_max]+1]=0,tt=mt.heap_max+1;tt<S;tt++)Qe<(Ke=Ut[2*Ut[2*(dt=mt.heap[tt])+1]+1]+1)&&(Ke=Qe,ot++),Ut[2*dt+1]=Ke,mr<dt||(mt.bl_count[Ke]++,Bt=0,rr<=dt&&(Bt=ue[dt-rr]),Vt=Ut[2*dt],mt.opt_len+=Vt*(Ke+Bt),re&&(mt.static_len+=Vt*(br[2*dt+1]+Bt)));if(ot!==0){do{for(Ke=Qe-1;mt.bl_count[Ke]===0;)Ke--;mt.bl_count[Ke]--,mt.bl_count[Ke+1]+=2,mt.bl_count[Qe]--,ot-=2}while(0<ot);for(Ke=Qe;Ke!==0;Ke--)for(dt=mt.bl_count[Ke];dt!==0;)mr<(Ze=mt.heap[--tt])||(Ut[2*Ze+1]!==Ke&&(mt.opt_len+=(Ke-Ut[2*Ze+1])*Ut[2*Ze],Ut[2*Ze+1]=Ke),dt--)}}(h,D),sr(te,Ge,h.bl_count)}function _e(h,D,Ae){var Z,k,te=-1,Se=D[1],Be=0,Ie=7,Ge=4;for(Se===0&&(Ie=138,Ge=3),D[2*(Ae+1)+1]=65535,Z=0;Z<=Ae;Z++)k=Se,Se=D[2*(Z+1)+1],++Be<Ie&&k===Se||(Be<Ge?h.bl_tree[2*k]+=Be:k!==0?(k!==te&&h.bl_tree[2*k]++,h.bl_tree[2*ee]++):Be<=10?h.bl_tree[2*B]++:h.bl_tree[2*G]++,te=k,Ge=(Be=0)===Se?(Ie=138,3):k===Se?(Ie=6,3):(Ie=7,4))}function kt(h,D,Ae){var Z,k,te=-1,Se=D[1],Be=0,Ie=7,Ge=4;for(Se===0&&(Ie=138,Ge=3),Z=0;Z<=Ae;Z++)if(k=Se,Se=D[2*(Z+1)+1],!(++Be<Ie&&k===Se)){if(Be<Ge)for(;nt(h,k,h.bl_tree),--Be!=0;);else k!==0?(k!==te&&(nt(h,k,h.bl_tree),Be--),nt(h,ee,h.bl_tree),st(h,Be-3,2)):Be<=10?(nt(h,B,h.bl_tree),st(h,Be-3,3)):(nt(h,G,h.bl_tree),st(h,Be-11,7));te=k,Ge=(Be=0)===Se?(Ie=138,3):k===Se?(Ie=6,3):(Ie=7,4)}}n(_);var K=!1;function y(h,D,Ae,Z){st(h,(o<<1)+(Z?1:0),3),function(k,te,Se,Be){We(k),Be&&(qe(k,Se),qe(k,~Se)),Y.arraySet(k.pending_buf,k.window,te,Se,k.pending),k.pending+=Se}(h,D,Ae,!0)}ie._tr_init=function(h){K||(function(){var D,Ae,Z,k,te,Se=new Array($+1);for(k=Z=0;k<L-1;k++)for(Ee[k]=Z,D=0;D<1<<le[k];D++)T[Z++]=k;for(T[Z-1]=k,k=te=0;k<16;k++)for(_[k]=te,D=0;D<1<<J[k];D++)pe[te++]=k;for(te>>=7;k<d;k++)for(_[k]=te<<7,D=0;D<1<<J[k]-7;D++)pe[256+te++]=k;for(Ae=0;Ae<=$;Ae++)Se[Ae]=0;for(D=0;D<=143;)Le[2*D+1]=8,D++,Se[8]++;for(;D<=255;)Le[2*D+1]=9,D++,Se[9]++;for(;D<=279;)Le[2*D+1]=7,D++,Se[7]++;for(;D<=287;)Le[2*D+1]=8,D++,Se[8]++;for(sr(Le,a+1,Se),D=0;D<d;D++)ae[2*D+1]=5,ae[2*D]=Rt(D,5);oe=new N(Le,le,p+1,a,$),fe=new N(ae,J,0,d,$),ye=new N(new Array(0),we,0,m,H)}(),K=!0),h.l_desc=new X(h.dyn_ltree,oe),h.d_desc=new X(h.dyn_dtree,fe),h.bl_desc=new X(h.bl_tree,ye),h.bi_buf=0,h.bi_valid=0,Jt(h)},ie._tr_stored_block=y,ie._tr_flush_block=function(h,D,Ae,Z){var k,te,Se=0;0<h.level?(h.strm.data_type===2&&(h.strm.data_type=function(Be){var Ie,Ge=4093624447;for(Ie=0;Ie<=31;Ie++,Ge>>>=1)if(1&Ge&&Be.dyn_ltree[2*Ie]!==0)return O;if(Be.dyn_ltree[18]!==0||Be.dyn_ltree[20]!==0||Be.dyn_ltree[26]!==0)return I;for(Ie=32;Ie<p;Ie++)if(Be.dyn_ltree[2*Ie]!==0)return I;return O}(h)),Cr(h,h.l_desc),Cr(h,h.d_desc),Se=function(Be){var Ie;for(_e(Be,Be.dyn_ltree,Be.l_desc.max_code),_e(Be,Be.dyn_dtree,Be.d_desc.max_code),Cr(Be,Be.bl_desc),Ie=m-1;3<=Ie&&Be.bl_tree[2*Ce[Ie]+1]===0;Ie--);return Be.opt_len+=3*(Ie+1)+5+5+4,Ie}(h),k=h.opt_len+3+7>>>3,(te=h.static_len+3+7>>>3)<=k&&(k=te)):k=te=Ae+5,Ae+4<=k&&D!==-1?y(h,D,Ae,Z):h.strategy===4||te===k?(st(h,2+(Z?1:0),3),Wr(h,Le,ae)):(st(h,4+(Z?1:0),3),function(Be,Ie,Ge,mt){var $e;for(st(Be,Ie-257,5),st(Be,Ge-1,5),st(Be,mt-4,4),$e=0;$e<mt;$e++)st(Be,Be.bl_tree[2*Ce[$e]+1],3);kt(Be,Be.dyn_ltree,Ie-1),kt(Be,Be.dyn_dtree,Ge-1)}(h,h.l_desc.max_code+1,h.d_desc.max_code+1,Se+1),Wr(h,h.dyn_ltree,h.dyn_dtree)),Jt(h),Z&&We(h)},ie._tr_tally=function(h,D,Ae){return h.pending_buf[h.d_buf+2*h.last_lit]=D>>>8&255,h.pending_buf[h.d_buf+2*h.last_lit+1]=255&D,h.pending_buf[h.l_buf+h.last_lit]=255&Ae,h.last_lit++,D===0?h.dyn_ltree[2*Ae]++:(h.matches++,D--,h.dyn_ltree[2*(T[Ae]+p+1)]++,h.dyn_dtree[2*he(D)]++),h.last_lit===h.lit_bufsize-1},ie._tr_align=function(h){st(h,2,3),nt(h,V,Le),function(D){D.bi_valid===16?(qe(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):8<=D.bi_valid&&(D.pending_buf[D.pending++]=255&D.bi_buf,D.bi_buf>>=8,D.bi_valid-=8)}(h)}},{"../utils/common":41}],53:[function(se,Me,ie){"use strict";Me.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(se,Me,ie){(function(Y){(function(O,I){"use strict";if(!O.setImmediate){var n,o,L,p,a=1,d={},m=!1,S=O.document,$=Object.getPrototypeOf&&Object.getPrototypeOf(O);$=$&&$.setTimeout?$:O,n={}.toString.call(O.process)==="[object process]"?function(ee){Fe.nextTick(function(){H(ee)})}:function(){if(O.postMessage&&!O.importScripts){var ee=!0,B=O.onmessage;return O.onmessage=function(){ee=!1},O.postMessage("","*"),O.onmessage=B,ee}}()?(p="setImmediate$"+Math.random()+"$",O.addEventListener?O.addEventListener("message",V,!1):O.attachEvent("onmessage",V),function(ee){O.postMessage(p+ee,"*")}):O.MessageChannel?((L=new MessageChannel).port1.onmessage=function(ee){H(ee.data)},function(ee){L.port2.postMessage(ee)}):S&&"onreadystatechange"in S.createElement("script")?(o=S.documentElement,function(ee){var B=S.createElement("script");B.onreadystatechange=function(){H(ee),B.onreadystatechange=null,o.removeChild(B),B=null},o.appendChild(B)}):function(ee){setTimeout(H,0,ee)},$.setImmediate=function(ee){typeof ee!="function"&&(ee=new Function(""+ee));for(var B=new Array(arguments.length-1),G=0;G<B.length;G++)B[G]=arguments[G+1];var le={callback:ee,args:B};return d[a]=le,n(a),a++},$.clearImmediate=F}function F(ee){delete d[ee]}function H(ee){if(m)setTimeout(H,0,ee);else{var B=d[ee];if(B){m=!0;try{(function(G){var le=G.callback,J=G.args;switch(J.length){case 0:le();break;case 1:le(J[0]);break;case 2:le(J[0],J[1]);break;case 3:le(J[0],J[1],J[2]);break;default:le.apply(I,J)}})(B)}finally{F(ee),m=!1}}}}function V(ee){ee.source===O&&typeof ee.data=="string"&&ee.data.indexOf(p)===0&&H(+ee.data.slice(p.length))}})(typeof self=="undefined"?Y===void 0?this:Y:self)}).call(this,typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},15342:function(yn){(function(g,xe){yn.exports=xe()})(typeof self!="undefined"?self:this,function(){return function(Wt){var g={};function xe(Fe){if(g[Fe])return g[Fe].exports;var se=g[Fe]={i:Fe,l:!1,exports:{}};return Wt[Fe].call(se.exports,se,se.exports,xe),se.l=!0,se.exports}return xe.m=Wt,xe.c=g,xe.d=function(Fe,se,Me){xe.o(Fe,se)||Object.defineProperty(Fe,se,{enumerable:!0,get:Me})},xe.r=function(Fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Fe,"__esModule",{value:!0})},xe.t=function(Fe,se){if(se&1&&(Fe=xe(Fe)),se&8||se&4&&typeof Fe=="object"&&Fe&&Fe.__esModule)return Fe;var Me=Object.create(null);if(xe.r(Me),Object.defineProperty(Me,"default",{enumerable:!0,value:Fe}),se&2&&typeof Fe!="string")for(var ie in Fe)xe.d(Me,ie,function(Y){return Fe[Y]}.bind(null,ie));return Me},xe.n=function(Fe){var se=Fe&&Fe.__esModule?function(){return Fe.default}:function(){return Fe};return xe.d(se,"a",se),se},xe.o=function(Fe,se){return Object.prototype.hasOwnProperty.call(Fe,se)},xe.p="",xe(xe.s=1)}([function(Wt,g,xe){},function(Wt,g,xe){"use strict";xe.r(g);var Fe=xe(0),se=function(){function je(A,w,E){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=A,this.start=w,this.end=E}return je.range=function(w,E){return E?!w||!w.loc||!E.loc||w.loc.lexer!==E.loc.lexer?null:new je(w.loc.lexer,w.loc.start,E.loc.end):w&&w.loc},je}(),Me=function(){function je(w,E){this.text=void 0,this.loc=void 0,this.text=w,this.loc=E}var A=je.prototype;return A.range=function(E,z){return new je(z,se.range(this,E))},je}(),ie=function je(A,w){this.position=void 0;var E="KaTeX parse error: "+A,z,be=w&&w.loc;if(be&&be.start<=be.end){var ze=be.lexer.input;z=be.start;var pt=be.end;z===ze.length?E+=" at end of input: ":E+=" at position "+(z+1)+": ";var It=ze.slice(z,pt).replace(/[^]/g,"$&\u0332"),$t;z>15?$t="\u2026"+ze.slice(z-15,z):$t=ze.slice(0,z);var fr;pt+15<ze.length?fr=ze.slice(pt,pt+15)+"\u2026":fr=ze.slice(pt),E+=$t+It+fr}var Dr=new Error(E);return Dr.name="ParseError",Dr.__proto__=je.prototype,Dr.position=z,Dr};ie.prototype.__proto__=Error.prototype;var Y=ie,O=function(A,w){return A.indexOf(w)!==-1},I=function(A,w){return A===void 0?w:A},n=/([A-Z])/g,o=function(A){return A.replace(n,"-$1").toLowerCase()},L={"&":"&",">":">","<":"<",'"':""","'":"'"},p=/[&><"']/g;function a(je){return String(je).replace(p,function(A){return L[A]})}var d=function je(A){return A.type==="ordgroup"||A.type==="color"?A.body.length===1?je(A.body[0]):A:A.type==="font"?je(A.body):A},m=function(A){var w=d(A);return w.type==="mathord"||w.type==="textord"||w.type==="atom"},S=function(A){if(!A)throw new Error("Expected non-null, but got "+String(A));return A},$=function(A){var w=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(A);return w!=null?w[1]:"_relative"},F={contains:O,deflt:I,escape:a,hyphenate:o,getBaseElem:d,isCharacterBox:m,protocolFromUrl:$},H=function(){function je(w){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,w=w||{},this.displayMode=F.deflt(w.displayMode,!1),this.output=F.deflt(w.output,"htmlAndMathml"),this.leqno=F.deflt(w.leqno,!1),this.fleqn=F.deflt(w.fleqn,!1),this.throwOnError=F.deflt(w.throwOnError,!0),this.errorColor=F.deflt(w.errorColor,"#cc0000"),this.macros=w.macros||{},this.minRuleThickness=Math.max(0,F.deflt(w.minRuleThickness,0)),this.colorIsTextColor=F.deflt(w.colorIsTextColor,!1),this.strict=F.deflt(w.strict,"warn"),this.trust=F.deflt(w.trust,!1),this.maxSize=Math.max(0,F.deflt(w.maxSize,1/0)),this.maxExpand=Math.max(0,F.deflt(w.maxExpand,1e3))}var A=je.prototype;return A.reportNonstrict=function(E,z,be){var ze=this.strict;if(typeof ze=="function"&&(ze=ze(E,z,be)),!(!ze||ze==="ignore")){if(ze===!0||ze==="error")throw new Y("LaTeX-incompatible input and strict mode is set to 'error': "+(z+" ["+E+"]"),be);ze==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(z+" ["+E+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ze+"': "+z+" ["+E+"]"))}},A.useStrictBehavior=function(E,z,be){var ze=this.strict;if(typeof ze=="function")try{ze=ze(E,z,be)}catch(pt){ze="error"}return!ze||ze==="ignore"?!1:ze===!0||ze==="error"?!0:ze==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(z+" ["+E+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+ze+"': "+z+" ["+E+"]")),!1)},A.isTrusted=function(E){E.url&&!E.protocol&&(E.protocol=F.protocolFromUrl(E.url));var z=typeof this.trust=="function"?this.trust(E):this.trust;return!!z},je}(),V=function(){function je(w,E,z){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=w,this.size=E,this.cramped=z}var A=je.prototype;return A.sup=function(){return ae[pe[this.id]]},A.sub=function(){return ae[T[this.id]]},A.fracNum=function(){return ae[Ee[this.id]]},A.fracDen=function(){return ae[oe[this.id]]},A.cramp=function(){return ae[fe[this.id]]},A.text=function(){return ae[ye[this.id]]},A.isTight=function(){return this.size>=2},je}(),ee=0,B=1,G=2,le=3,J=4,we=5,Ce=6,Le=7,ae=[new V(ee,0,!1),new V(B,0,!0),new V(G,1,!1),new V(le,1,!0),new V(J,2,!1),new V(we,2,!0),new V(Ce,3,!1),new V(Le,3,!0)],pe=[J,we,J,we,Ce,Le,Ce,Le],T=[we,we,we,we,Le,Le,Le,Le],Ee=[G,le,J,we,Ce,Le,Ce,Le],oe=[le,le,we,we,Le,Le,Le,Le],fe=[B,B,le,le,we,we,Le,Le],ye=[ee,B,G,le,G,le,G,le],_={DISPLAY:ae[ee],TEXT:ae[G],SCRIPT:ae[J],SCRIPTSCRIPT:ae[Ce]},N=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function X(je){for(var A=0;A<N.length;A++)for(var w=N[A],E=0;E<w.blocks.length;E++){var z=w.blocks[E];if(je>=z[0]&&je<=z[1])return w.name}return null}var he=[];N.forEach(function(je){return je.blocks.forEach(function(A){return he.push.apply(he,A)})});function qe(je){for(var A=0;A<he.length;A+=2)if(je>=he[A]&&je<=he[A+1])return!0;return!1}var st=80,nt=function(A,w){return"M95,"+(622+A+w)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+A/2.075+" -"+A+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+A)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+A)+" "+w+"h400000v"+(40+A)+"h-400000z"},Rt=function(A,w){return"M263,"+(601+A+w)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+A/2.084+" -"+A+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+A)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+A)+" "+w+"h400000v"+(40+A)+"h-400000z"},sr=function(A,w){return"M983 "+(10+A+w)+`
|
|
|
l`+A/3.13+" -"+A+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+A)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+A)+" "+w+"h400000v"+(40+A)+"h-400000z"},Jt=function(A,w){return"M424,"+(2398+A+w)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+A/4.223+" -"+A+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+A)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+A)+" "+w+`
|
|
|
h400000v`+(40+A)+"h-400000z"},We=function(A,w){return"M473,"+(2713+A+w)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+A/5.298+" -"+A+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+A)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+A)+" "+w+"h400000v"+(40+A)+"H1017.7z"},Er=function(A,w,E){var z=E-54-w-A;return"M702 "+(A+w)+"H400000"+(40+A)+`
|
|
|
H742v`+z+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+w+"H400000v"+(40+A)+"H742z"},xr=function(A,w,E){w=1e3*w;var z="";switch(A){case"sqrtMain":z=nt(w,st);break;case"sqrtSize1":z=Rt(w,st);break;case"sqrtSize2":z=sr(w,st);break;case"sqrtSize3":z=Jt(w,st);break;case"sqrtSize4":z=We(w,st);break;case"sqrtTall":z=Er(w,st,E)}return z},Wr={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Cr=function(){function je(w){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=w,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var A=je.prototype;return A.hasClass=function(E){return F.contains(this.classes,E)},A.toNode=function(){for(var E=document.createDocumentFragment(),z=0;z<this.children.length;z++)E.appendChild(this.children[z].toNode());return E},A.toMarkup=function(){for(var E="",z=0;z<this.children.length;z++)E+=this.children[z].toMarkup();return E},A.toText=function(){var E=function(be){return be.toText()};return this.children.map(E).join("")},je}(),_e=function(A){return A.filter(function(w){return w}).join(" ")},kt=function(A,w,E){if(this.classes=A||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=E||{},w){w.style.isTight()&&this.classes.push("mtight");var z=w.getColor();z&&(this.style.color=z)}},K=function(A){var w=document.createElement(A);w.className=_e(this.classes);for(var E in this.style)this.style.hasOwnProperty(E)&&(w.style[E]=this.style[E]);for(var z in this.attributes)this.attributes.hasOwnProperty(z)&&w.setAttribute(z,this.attributes[z]);for(var be=0;be<this.children.length;be++)w.appendChild(this.children[be].toNode());return w},y=function(A){var w="<"+A;this.classes.length&&(w+=' class="'+F.escape(_e(this.classes))+'"');var E="";for(var z in this.style)this.style.hasOwnProperty(z)&&(E+=F.hyphenate(z)+":"+this.style[z]+";");E&&(w+=' style="'+F.escape(E)+'"');for(var be in this.attributes)this.attributes.hasOwnProperty(be)&&(w+=" "+be+'="'+F.escape(this.attributes[be])+'"');w+=">";for(var ze=0;ze<this.children.length;ze++)w+=this.children[ze].toMarkup();return w+="</"+A+">",w},h=function(){function je(w,E,z,be){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,kt.call(this,w,z,be),this.children=E||[]}var A=je.prototype;return A.setAttribute=function(E,z){this.attributes[E]=z},A.hasClass=function(E){return F.contains(this.classes,E)},A.toNode=function(){return K.call(this,"span")},A.toMarkup=function(){return y.call(this,"span")},je}(),D=function(){function je(w,E,z,be){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,kt.call(this,E,be),this.children=z||[],this.setAttribute("href",w)}var A=je.prototype;return A.setAttribute=function(E,z){this.attributes[E]=z},A.hasClass=function(E){return F.contains(this.classes,E)},A.toNode=function(){return K.call(this,"a")},A.toMarkup=function(){return y.call(this,"a")},je}(),Ae=function(){function je(w,E,z){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=E,this.src=w,this.classes=["mord"],this.style=z}var A=je.prototype;return A.hasClass=function(E){return F.contains(this.classes,E)},A.toNode=function(){var E=document.createElement("img");E.src=this.src,E.alt=this.alt,E.className="mord";for(var z in this.style)this.style.hasOwnProperty(z)&&(E.style[z]=this.style[z]);return E},A.toMarkup=function(){var E="<img src='"+this.src+" 'alt='"+this.alt+"' ",z="";for(var be in this.style)this.style.hasOwnProperty(be)&&(z+=F.hyphenate(be)+":"+this.style[be]+";");return z&&(E+=' style="'+F.escape(z)+'"'),E+="'/>",E},je}(),Z={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},k=function(){function je(w,E,z,be,ze,pt,It,$t){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=w,this.height=E||0,this.depth=z||0,this.italic=be||0,this.skew=ze||0,this.width=pt||0,this.classes=It||[],this.style=$t||{},this.maxFontSize=0;var fr=X(this.text.charCodeAt(0));fr&&this.classes.push(fr+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Z[this.text])}var A=je.prototype;return A.hasClass=function(E){return F.contains(this.classes,E)},A.toNode=function(){var E=document.createTextNode(this.text),z=null;this.italic>0&&(z=document.createElement("span"),z.style.marginRight=this.italic+"em"),this.classes.length>0&&(z=z||document.createElement("span"),z.className=_e(this.classes));for(var be in this.style)this.style.hasOwnProperty(be)&&(z=z||document.createElement("span"),z.style[be]=this.style[be]);return z?(z.appendChild(E),z):E},A.toMarkup=function(){var E=!1,z="<span";this.classes.length&&(E=!0,z+=' class="',z+=F.escape(_e(this.classes)),z+='"');var be="";this.italic>0&&(be+="margin-right:"+this.italic+"em;");for(var ze in this.style)this.style.hasOwnProperty(ze)&&(be+=F.hyphenate(ze)+":"+this.style[ze]+";");be&&(E=!0,z+=' style="'+F.escape(be)+'"');var pt=F.escape(this.text);return E?(z+=">",z+=pt,z+="</span>",z):pt},je}(),te=function(){function je(w,E){this.children=void 0,this.attributes=void 0,this.children=w||[],this.attributes=E||{}}var A=je.prototype;return A.toNode=function(){var E="http://www.w3.org/2000/svg",z=document.createElementNS(E,"svg");for(var be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,be)&&z.setAttribute(be,this.attributes[be]);for(var ze=0;ze<this.children.length;ze++)z.appendChild(this.children[ze].toNode());return z},A.toMarkup=function(){var E="<svg";for(var z in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,z)&&(E+=" "+z+"='"+this.attributes[z]+"'");E+=">";for(var be=0;be<this.children.length;be++)E+=this.children[be].toMarkup();return E+="</svg>",E},je}(),Se=function(){function je(w,E){this.pathName=void 0,this.alternate=void 0,this.pathName=w,this.alternate=E}var A=je.prototype;return A.toNode=function(){var E="http://www.w3.org/2000/svg",z=document.createElementNS(E,"path");return this.alternate?z.setAttribute("d",this.alternate):z.setAttribute("d",Wr[this.pathName]),z},A.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Wr[this.pathName]+"'/>"},je}(),Be=function(){function je(w){this.attributes=void 0,this.attributes=w||{}}var A=je.prototype;return A.toNode=function(){var E="http://www.w3.org/2000/svg",z=document.createElementNS(E,"line");for(var be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,be)&&z.setAttribute(be,this.attributes[be]);return z},A.toMarkup=function(){var E="<line";for(var z in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,z)&&(E+=" "+z+"='"+this.attributes[z]+"'");return E+="/>",E},je}();function Ie(je){if(je instanceof k)return je;throw new Error("Expected symbolNode but got "+String(je)+".")}function Ge(je){if(je instanceof h)return je;throw new Error("Expected span<HtmlDomNode> but got "+String(je)+".")}var mt={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},$e={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},tt={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function dt(je,A){mt[je]=A}function Ze(je,A,w){if(!mt[A])throw new Error("Font metrics not found for font: "+A+".");var E=je.charCodeAt(0),z=mt[A][E];if(!z&&je[0]in tt&&(E=tt[je[0]].charCodeAt(0),z=mt[A][E]),!z&&w==="text"&&qe(E)&&(z=mt[A][77]),z)return{depth:z[0],height:z[1],italic:z[2],skew:z[3],width:z[4]}}var Ke={};function Bt(je){var A;if(je>=5?A=0:je>=3?A=1:A=2,!Ke[A]){var w=Ke[A]={cssEmPerMu:$e.quad[A]/18};for(var E in $e)$e.hasOwnProperty(E)&&(w[E]=$e[E][A])}return Ke[A]}var Vt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Ut={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},mr={math:{},text:{}},br=mr;function re(je,A,w,E,z,be){mr[je][z]={font:A,group:w,replace:E},be&&E&&(mr[je][E]=mr[je][z])}var ue="math",rr="text",Qe="main",ot="ams",Jr="accent-token",Tt="bin",Kt="close",qt="inner",et="mathord",ft="op-token",ht="open",Gt="punct",Oe="rel",on="spacing",Mt="textord";re(ue,Qe,Oe,"\u2261","\\equiv",!0),re(ue,Qe,Oe,"\u227A","\\prec",!0),re(ue,Qe,Oe,"\u227B","\\succ",!0),re(ue,Qe,Oe,"\u223C","\\sim",!0),re(ue,Qe,Oe,"\u22A5","\\perp"),re(ue,Qe,Oe,"\u2AAF","\\preceq",!0),re(ue,Qe,Oe,"\u2AB0","\\succeq",!0),re(ue,Qe,Oe,"\u2243","\\simeq",!0),re(ue,Qe,Oe,"\u2223","\\mid",!0),re(ue,Qe,Oe,"\u226A","\\ll",!0),re(ue,Qe,Oe,"\u226B","\\gg",!0),re(ue,Qe,Oe,"\u224D","\\asymp",!0),re(ue,Qe,Oe,"\u2225","\\parallel"),re(ue,Qe,Oe,"\u22C8","\\bowtie",!0),re(ue,Qe,Oe,"\u2323","\\smile",!0),re(ue,Qe,Oe,"\u2291","\\sqsubseteq",!0),re(ue,Qe,Oe,"\u2292","\\sqsupseteq",!0),re(ue,Qe,Oe,"\u2250","\\doteq",!0),re(ue,Qe,Oe,"\u2322","\\frown",!0),re(ue,Qe,Oe,"\u220B","\\ni",!0),re(ue,Qe,Oe,"\u221D","\\propto",!0),re(ue,Qe,Oe,"\u22A2","\\vdash",!0),re(ue,Qe,Oe,"\u22A3","\\dashv",!0),re(ue,Qe,Oe,"\u220B","\\owns"),re(ue,Qe,Gt,".","\\ldotp"),re(ue,Qe,Gt,"\u22C5","\\cdotp"),re(ue,Qe,Mt,"#","\\#"),re(rr,Qe,Mt,"#","\\#"),re(ue,Qe,Mt,"&","\\&"),re(rr,Qe,Mt,"&","\\&"),re(ue,Qe,Mt,"\u2135","\\aleph",!0),re(ue,Qe,Mt,"\u2200","\\forall",!0),re(ue,Qe,Mt,"\u210F","\\hbar",!0),re(ue,Qe,Mt,"\u2203","\\exists",!0),re(ue,Qe,Mt,"\u2207","\\nabla",!0),re(ue,Qe,Mt,"\u266D","\\flat",!0),re(ue,Qe,Mt,"\u2113","\\ell",!0),re(ue,Qe,Mt,"\u266E","\\natural",!0),re(ue,Qe,Mt,"\u2663","\\clubsuit",!0),re(ue,Qe,Mt,"\u2118","\\wp",!0),re(ue,Qe,Mt,"\u266F","\\sharp",!0),re(ue,Qe,Mt,"\u2662","\\diamondsuit",!0),re(ue,Qe,Mt,"\u211C","\\Re",!0),re(ue,Qe,Mt,"\u2661","\\heartsuit",!0),re(ue,Qe,Mt,"\u2111","\\Im",!0),re(ue,Qe,Mt,"\u2660","\\spadesuit",!0),re(rr,Qe,Mt,"\xA7","\\S",!0),re(rr,Qe,Mt,"\xB6","\\P",!0),re(ue,Qe,Mt,"\u2020","\\dag"),re(rr,Qe,Mt,"\u2020","\\dag"),re(rr,Qe,Mt,"\u2020","\\textdagger"),re(ue,Qe,Mt,"\u2021","\\ddag"),re(rr,Qe,Mt,"\u2021","\\ddag"),re(rr,Qe,Mt,"\u2021","\\textdaggerdbl"),re(ue,Qe,Kt,"\u23B1","\\rmoustache",!0),re(ue,Qe,ht,"\u23B0","\\lmoustache",!0),re(ue,Qe,Kt,"\u27EF","\\rgroup",!0),re(ue,Qe,ht,"\u27EE","\\lgroup",!0),re(ue,Qe,Tt,"\u2213","\\mp",!0),re(ue,Qe,Tt,"\u2296","\\ominus",!0),re(ue,Qe,Tt,"\u228E","\\uplus",!0),re(ue,Qe,Tt,"\u2293","\\sqcap",!0),re(ue,Qe,Tt,"\u2217","\\ast"),re(ue,Qe,Tt,"\u2294","\\sqcup",!0),re(ue,Qe,Tt,"\u25EF","\\bigcirc"),re(ue,Qe,Tt,"\u2219","\\bullet"),re(ue,Qe,Tt,"\u2021","\\ddagger"),re(ue,Qe,Tt,"\u2240","\\wr",!0),re(ue,Qe,Tt,"\u2A3F","\\amalg"),re(ue,Qe,Tt,"&","\\And"),re(ue,Qe,Oe,"\u27F5","\\longleftarrow",!0),re(ue,Qe,Oe,"\u21D0","\\Leftarrow",!0),re(ue,Qe,Oe,"\u27F8","\\Longleftarrow",!0),re(ue,Qe,Oe,"\u27F6","\\longrightarrow",!0),re(ue,Qe,Oe,"\u21D2","\\Rightarrow",!0),re(ue,Qe,Oe,"\u27F9","\\Longrightarrow",!0),re(ue,Qe,Oe,"\u2194","\\leftrightarrow",!0),re(ue,Qe,Oe,"\u27F7","\\longleftrightarrow",!0),re(ue,Qe,Oe,"\u21D4","\\Leftrightarrow",!0),re(ue,Qe,Oe,"\u27FA","\\Longleftrightarrow",!0),re(ue,Qe,Oe,"\u21A6","\\mapsto",!0),re(ue,Qe,Oe,"\u27FC","\\longmapsto",!0),re(ue,Qe,Oe,"\u2197","\\nearrow",!0),re(ue,Qe,Oe,"\u21A9","\\hookleftarrow",!0),re(ue,Qe,Oe,"\u21AA","\\hookrightarrow",!0),re(ue,Qe,Oe,"\u2198","\\searrow",!0),re(ue,Qe,Oe,"\u21BC","\\leftharpoonup",!0),re(ue,Qe,Oe,"\u21C0","\\rightharpoonup",!0),re(ue,Qe,Oe,"\u2199","\\swarrow",!0),re(ue,Qe,Oe,"\u21BD","\\leftharpoondown",!0),re(ue,Qe,Oe,"\u21C1","\\rightharpoondown",!0),re(ue,Qe,Oe,"\u2196","\\nwarrow",!0),re(ue,Qe,Oe,"\u21CC","\\rightleftharpoons",!0),re(ue,ot,Oe,"\u226E","\\nless",!0),re(ue,ot,Oe,"\uE010","\\@nleqslant"),re(ue,ot,Oe,"\uE011","\\@nleqq"),re(ue,ot,Oe,"\u2A87","\\lneq",!0),re(ue,ot,Oe,"\u2268","\\lneqq",!0),re(ue,ot,Oe,"\uE00C","\\@lvertneqq"),re(ue,ot,Oe,"\u22E6","\\lnsim",!0),re(ue,ot,Oe,"\u2A89","\\lnapprox",!0),re(ue,ot,Oe,"\u2280","\\nprec",!0),re(ue,ot,Oe,"\u22E0","\\npreceq",!0),re(ue,ot,Oe,"\u22E8","\\precnsim",!0),re(ue,ot,Oe,"\u2AB9","\\precnapprox",!0),re(ue,ot,Oe,"\u2241","\\nsim",!0),re(ue,ot,Oe,"\uE006","\\@nshortmid"),re(ue,ot,Oe,"\u2224","\\nmid",!0),re(ue,ot,Oe,"\u22AC","\\nvdash",!0),re(ue,ot,Oe,"\u22AD","\\nvDash",!0),re(ue,ot,Oe,"\u22EA","\\ntriangleleft"),re(ue,ot,Oe,"\u22EC","\\ntrianglelefteq",!0),re(ue,ot,Oe,"\u228A","\\subsetneq",!0),re(ue,ot,Oe,"\uE01A","\\@varsubsetneq"),re(ue,ot,Oe,"\u2ACB","\\subsetneqq",!0),re(ue,ot,Oe,"\uE017","\\@varsubsetneqq"),re(ue,ot,Oe,"\u226F","\\ngtr",!0),re(ue,ot,Oe,"\uE00F","\\@ngeqslant"),re(ue,ot,Oe,"\uE00E","\\@ngeqq"),re(ue,ot,Oe,"\u2A88","\\gneq",!0),re(ue,ot,Oe,"\u2269","\\gneqq",!0),re(ue,ot,Oe,"\uE00D","\\@gvertneqq"),re(ue,ot,Oe,"\u22E7","\\gnsim",!0),re(ue,ot,Oe,"\u2A8A","\\gnapprox",!0),re(ue,ot,Oe,"\u2281","\\nsucc",!0),re(ue,ot,Oe,"\u22E1","\\nsucceq",!0),re(ue,ot,Oe,"\u22E9","\\succnsim",!0),re(ue,ot,Oe,"\u2ABA","\\succnapprox",!0),re(ue,ot,Oe,"\u2246","\\ncong",!0),re(ue,ot,Oe,"\uE007","\\@nshortparallel"),re(ue,ot,Oe,"\u2226","\\nparallel",!0),re(ue,ot,Oe,"\u22AF","\\nVDash",!0),re(ue,ot,Oe,"\u22EB","\\ntriangleright"),re(ue,ot,Oe,"\u22ED","\\ntrianglerighteq",!0),re(ue,ot,Oe,"\uE018","\\@nsupseteqq"),re(ue,ot,Oe,"\u228B","\\supsetneq",!0),re(ue,ot,Oe,"\uE01B","\\@varsupsetneq"),re(ue,ot,Oe,"\u2ACC","\\supsetneqq",!0),re(ue,ot,Oe,"\uE019","\\@varsupsetneqq"),re(ue,ot,Oe,"\u22AE","\\nVdash",!0),re(ue,ot,Oe,"\u2AB5","\\precneqq",!0),re(ue,ot,Oe,"\u2AB6","\\succneqq",!0),re(ue,ot,Oe,"\uE016","\\@nsubseteqq"),re(ue,ot,Tt,"\u22B4","\\unlhd"),re(ue,ot,Tt,"\u22B5","\\unrhd"),re(ue,ot,Oe,"\u219A","\\nleftarrow",!0),re(ue,ot,Oe,"\u219B","\\nrightarrow",!0),re(ue,ot,Oe,"\u21CD","\\nLeftarrow",!0),re(ue,ot,Oe,"\u21CF","\\nRightarrow",!0),re(ue,ot,Oe,"\u21AE","\\nleftrightarrow",!0),re(ue,ot,Oe,"\u21CE","\\nLeftrightarrow",!0),re(ue,ot,Oe,"\u25B3","\\vartriangle"),re(ue,ot,Mt,"\u210F","\\hslash"),re(ue,ot,Mt,"\u25BD","\\triangledown"),re(ue,ot,Mt,"\u25CA","\\lozenge"),re(ue,ot,Mt,"\u24C8","\\circledS"),re(ue,ot,Mt,"\xAE","\\circledR"),re(rr,ot,Mt,"\xAE","\\circledR"),re(ue,ot,Mt,"\u2221","\\measuredangle",!0),re(ue,ot,Mt,"\u2204","\\nexists"),re(ue,ot,Mt,"\u2127","\\mho"),re(ue,ot,Mt,"\u2132","\\Finv",!0),re(ue,ot,Mt,"\u2141","\\Game",!0),re(ue,ot,Mt,"\u2035","\\backprime"),re(ue,ot,Mt,"\u25B2","\\blacktriangle"),re(ue,ot,Mt,"\u25BC","\\blacktriangledown"),re(ue,ot,Mt,"\u25A0","\\blacksquare"),re(ue,ot,Mt,"\u29EB","\\blacklozenge"),re(ue,ot,Mt,"\u2605","\\bigstar"),re(ue,ot,Mt,"\u2222","\\sphericalangle",!0),re(ue,ot,Mt,"\u2201","\\complement",!0),re(ue,ot,Mt,"\xF0","\\eth",!0),re(ue,ot,Mt,"\u2571","\\diagup"),re(ue,ot,Mt,"\u2572","\\diagdown"),re(ue,ot,Mt,"\u25A1","\\square"),re(ue,ot,Mt,"\u25A1","\\Box"),re(ue,ot,Mt,"\u25CA","\\Diamond"),re(ue,ot,Mt,"\xA5","\\yen",!0),re(rr,ot,Mt,"\xA5","\\yen",!0),re(ue,ot,Mt,"\u2713","\\checkmark",!0),re(rr,ot,Mt,"\u2713","\\checkmark"),re(ue,ot,Mt,"\u2136","\\beth",!0),re(ue,ot,Mt,"\u2138","\\daleth",!0),re(ue,ot,Mt,"\u2137","\\gimel",!0),re(ue,ot,Mt,"\u03DD","\\digamma",!0),re(ue,ot,Mt,"\u03F0","\\varkappa"),re(ue,ot,ht,"\u250C","\\ulcorner",!0),re(ue,ot,Kt,"\u2510","\\urcorner",!0),re(ue,ot,ht,"\u2514","\\llcorner",!0),re(ue,ot,Kt,"\u2518","\\lrcorner",!0),re(ue,ot,Oe,"\u2266","\\leqq",!0),re(ue,ot,Oe,"\u2A7D","\\leqslant",!0),re(ue,ot,Oe,"\u2A95","\\eqslantless",!0),re(ue,ot,Oe,"\u2272","\\lesssim",!0),re(ue,ot,Oe,"\u2A85","\\lessapprox",!0),re(ue,ot,Oe,"\u224A","\\approxeq",!0),re(ue,ot,Tt,"\u22D6","\\lessdot"),re(ue,ot,Oe,"\u22D8","\\lll",!0),re(ue,ot,Oe,"\u2276","\\lessgtr",!0),re(ue,ot,Oe,"\u22DA","\\lesseqgtr",!0),re(ue,ot,Oe,"\u2A8B","\\lesseqqgtr",!0),re(ue,ot,Oe,"\u2251","\\doteqdot"),re(ue,ot,Oe,"\u2253","\\risingdotseq",!0),re(ue,ot,Oe,"\u2252","\\fallingdotseq",!0),re(ue,ot,Oe,"\u223D","\\backsim",!0),re(ue,ot,Oe,"\u22CD","\\backsimeq",!0),re(ue,ot,Oe,"\u2AC5","\\subseteqq",!0),re(ue,ot,Oe,"\u22D0","\\Subset",!0),re(ue,ot,Oe,"\u228F","\\sqsubset",!0),re(ue,ot,Oe,"\u227C","\\preccurlyeq",!0),re(ue,ot,Oe,"\u22DE","\\curlyeqprec",!0),re(ue,ot,Oe,"\u227E","\\precsim",!0),re(ue,ot,Oe,"\u2AB7","\\precapprox",!0),re(ue,ot,Oe,"\u22B2","\\vartriangleleft"),re(ue,ot,Oe,"\u22B4","\\trianglelefteq"),re(ue,ot,Oe,"\u22A8","\\vDash",!0),re(ue,ot,Oe,"\u22AA","\\Vvdash",!0),re(ue,ot,Oe,"\u2323","\\smallsmile"),re(ue,ot,Oe,"\u2322","\\smallfrown"),re(ue,ot,Oe,"\u224F","\\bumpeq",!0),re(ue,ot,Oe,"\u224E","\\Bumpeq",!0),re(ue,ot,Oe,"\u2267","\\geqq",!0),re(ue,ot,Oe,"\u2A7E","\\geqslant",!0),re(ue,ot,Oe,"\u2A96","\\eqslantgtr",!0),re(ue,ot,Oe,"\u2273","\\gtrsim",!0),re(ue,ot,Oe,"\u2A86","\\gtrapprox",!0),re(ue,ot,Tt,"\u22D7","\\gtrdot"),re(ue,ot,Oe,"\u22D9","\\ggg",!0),re(ue,ot,Oe,"\u2277","\\gtrless",!0),re(ue,ot,Oe,"\u22DB","\\gtreqless",!0),re(ue,ot,Oe,"\u2A8C","\\gtreqqless",!0),re(ue,ot,Oe,"\u2256","\\eqcirc",!0),re(ue,ot,Oe,"\u2257","\\circeq",!0),re(ue,ot,Oe,"\u225C","\\triangleq",!0),re(ue,ot,Oe,"\u223C","\\thicksim"),re(ue,ot,Oe,"\u2248","\\thickapprox"),re(ue,ot,Oe,"\u2AC6","\\supseteqq",!0),re(ue,ot,Oe,"\u22D1","\\Supset",!0),re(ue,ot,Oe,"\u2290","\\sqsupset",!0),re(ue,ot,Oe,"\u227D","\\succcurlyeq",!0),re(ue,ot,Oe,"\u22DF","\\curlyeqsucc",!0),re(ue,ot,Oe,"\u227F","\\succsim",!0),re(ue,ot,Oe,"\u2AB8","\\succapprox",!0),re(ue,ot,Oe,"\u22B3","\\vartriangleright"),re(ue,ot,Oe,"\u22B5","\\trianglerighteq"),re(ue,ot,Oe,"\u22A9","\\Vdash",!0),re(ue,ot,Oe,"\u2223","\\shortmid"),re(ue,ot,Oe,"\u2225","\\shortparallel"),re(ue,ot,Oe,"\u226C","\\between",!0),re(ue,ot,Oe,"\u22D4","\\pitchfork",!0),re(ue,ot,Oe,"\u221D","\\varpropto"),re(ue,ot,Oe,"\u25C0","\\blacktriangleleft"),re(ue,ot,Oe,"\u2234","\\therefore",!0),re(ue,ot,Oe,"\u220D","\\backepsilon"),re(ue,ot,Oe,"\u25B6","\\blacktriangleright"),re(ue,ot,Oe,"\u2235","\\because",!0),re(ue,ot,Oe,"\u22D8","\\llless"),re(ue,ot,Oe,"\u22D9","\\gggtr"),re(ue,ot,Tt,"\u22B2","\\lhd"),re(ue,ot,Tt,"\u22B3","\\rhd"),re(ue,ot,Oe,"\u2242","\\eqsim",!0),re(ue,Qe,Oe,"\u22C8","\\Join"),re(ue,ot,Oe,"\u2251","\\Doteq",!0),re(ue,ot,Tt,"\u2214","\\dotplus",!0),re(ue,ot,Tt,"\u2216","\\smallsetminus"),re(ue,ot,Tt,"\u22D2","\\Cap",!0),re(ue,ot,Tt,"\u22D3","\\Cup",!0),re(ue,ot,Tt,"\u2A5E","\\doublebarwedge",!0),re(ue,ot,Tt,"\u229F","\\boxminus",!0),re(ue,ot,Tt,"\u229E","\\boxplus",!0),re(ue,ot,Tt,"\u22C7","\\divideontimes",!0),re(ue,ot,Tt,"\u22C9","\\ltimes",!0),re(ue,ot,Tt,"\u22CA","\\rtimes",!0),re(ue,ot,Tt,"\u22CB","\\leftthreetimes",!0),re(ue,ot,Tt,"\u22CC","\\rightthreetimes",!0),re(ue,ot,Tt,"\u22CF","\\curlywedge",!0),re(ue,ot,Tt,"\u22CE","\\curlyvee",!0),re(ue,ot,Tt,"\u229D","\\circleddash",!0),re(ue,ot,Tt,"\u229B","\\circledast",!0),re(ue,ot,Tt,"\u22C5","\\centerdot"),re(ue,ot,Tt,"\u22BA","\\intercal",!0),re(ue,ot,Tt,"\u22D2","\\doublecap"),re(ue,ot,Tt,"\u22D3","\\doublecup"),re(ue,ot,Tt,"\u22A0","\\boxtimes",!0),re(ue,ot,Oe,"\u21E2","\\dashrightarrow",!0),re(ue,ot,Oe,"\u21E0","\\dashleftarrow",!0),re(ue,ot,Oe,"\u21C7","\\leftleftarrows",!0),re(ue,ot,Oe,"\u21C6","\\leftrightarrows",!0),re(ue,ot,Oe,"\u21DA","\\Lleftarrow",!0),re(ue,ot,Oe,"\u219E","\\twoheadleftarrow",!0),re(ue,ot,Oe,"\u21A2","\\leftarrowtail",!0),re(ue,ot,Oe,"\u21AB","\\looparrowleft",!0),re(ue,ot,Oe,"\u21CB","\\leftrightharpoons",!0),re(ue,ot,Oe,"\u21B6","\\curvearrowleft",!0),re(ue,ot,Oe,"\u21BA","\\circlearrowleft",!0),re(ue,ot,Oe,"\u21B0","\\Lsh",!0),re(ue,ot,Oe,"\u21C8","\\upuparrows",!0),re(ue,ot,Oe,"\u21BF","\\upharpoonleft",!0),re(ue,ot,Oe,"\u21C3","\\downharpoonleft",!0),re(ue,ot,Oe,"\u22B8","\\multimap",!0),re(ue,ot,Oe,"\u21AD","\\leftrightsquigarrow",!0),re(ue,ot,Oe,"\u21C9","\\rightrightarrows",!0),re(ue,ot,Oe,"\u21C4","\\rightleftarrows",!0),re(ue,ot,Oe,"\u21A0","\\twoheadrightarrow",!0),re(ue,ot,Oe,"\u21A3","\\rightarrowtail",!0),re(ue,ot,Oe,"\u21AC","\\looparrowright",!0),re(ue,ot,Oe,"\u21B7","\\curvearrowright",!0),re(ue,ot,Oe,"\u21BB","\\circlearrowright",!0),re(ue,ot,Oe,"\u21B1","\\Rsh",!0),re(ue,ot,Oe,"\u21CA","\\downdownarrows",!0),re(ue,ot,Oe,"\u21BE","\\upharpoonright",!0),re(ue,ot,Oe,"\u21C2","\\downharpoonright",!0),re(ue,ot,Oe,"\u21DD","\\rightsquigarrow",!0),re(ue,ot,Oe,"\u21DD","\\leadsto"),re(ue,ot,Oe,"\u21DB","\\Rrightarrow",!0),re(ue,ot,Oe,"\u21BE","\\restriction"),re(ue,Qe,Mt,"\u2018","`"),re(ue,Qe,Mt,"$","\\$"),re(rr,Qe,Mt,"$","\\$"),re(rr,Qe,Mt,"$","\\textdollar"),re(ue,Qe,Mt,"%","\\%"),re(rr,Qe,Mt,"%","\\%"),re(ue,Qe,Mt,"_","\\_"),re(rr,Qe,Mt,"_","\\_"),re(rr,Qe,Mt,"_","\\textunderscore"),re(ue,Qe,Mt,"\u2220","\\angle",!0),re(ue,Qe,Mt,"\u221E","\\infty",!0),re(ue,Qe,Mt,"\u2032","\\prime"),re(ue,Qe,Mt,"\u25B3","\\triangle"),re(ue,Qe,Mt,"\u0393","\\Gamma",!0),re(ue,Qe,Mt,"\u0394","\\Delta",!0),re(ue,Qe,Mt,"\u0398","\\Theta",!0),re(ue,Qe,Mt,"\u039B","\\Lambda",!0),re(ue,Qe,Mt,"\u039E","\\Xi",!0),re(ue,Qe,Mt,"\u03A0","\\Pi",!0),re(ue,Qe,Mt,"\u03A3","\\Sigma",!0),re(ue,Qe,Mt,"\u03A5","\\Upsilon",!0),re(ue,Qe,Mt,"\u03A6","\\Phi",!0),re(ue,Qe,Mt,"\u03A8","\\Psi",!0),re(ue,Qe,Mt,"\u03A9","\\Omega",!0),re(ue,Qe,Mt,"A","\u0391"),re(ue,Qe,Mt,"B","\u0392"),re(ue,Qe,Mt,"E","\u0395"),re(ue,Qe,Mt,"Z","\u0396"),re(ue,Qe,Mt,"H","\u0397"),re(ue,Qe,Mt,"I","\u0399"),re(ue,Qe,Mt,"K","\u039A"),re(ue,Qe,Mt,"M","\u039C"),re(ue,Qe,Mt,"N","\u039D"),re(ue,Qe,Mt,"O","\u039F"),re(ue,Qe,Mt,"P","\u03A1"),re(ue,Qe,Mt,"T","\u03A4"),re(ue,Qe,Mt,"X","\u03A7"),re(ue,Qe,Mt,"\xAC","\\neg",!0),re(ue,Qe,Mt,"\xAC","\\lnot"),re(ue,Qe,Mt,"\u22A4","\\top"),re(ue,Qe,Mt,"\u22A5","\\bot"),re(ue,Qe,Mt,"\u2205","\\emptyset"),re(ue,ot,Mt,"\u2205","\\varnothing"),re(ue,Qe,et,"\u03B1","\\alpha",!0),re(ue,Qe,et,"\u03B2","\\beta",!0),re(ue,Qe,et,"\u03B3","\\gamma",!0),re(ue,Qe,et,"\u03B4","\\delta",!0),re(ue,Qe,et,"\u03F5","\\epsilon",!0),re(ue,Qe,et,"\u03B6","\\zeta",!0),re(ue,Qe,et,"\u03B7","\\eta",!0),re(ue,Qe,et,"\u03B8","\\theta",!0),re(ue,Qe,et,"\u03B9","\\iota",!0),re(ue,Qe,et,"\u03BA","\\kappa",!0),re(ue,Qe,et,"\u03BB","\\lambda",!0),re(ue,Qe,et,"\u03BC","\\mu",!0),re(ue,Qe,et,"\u03BD","\\nu",!0),re(ue,Qe,et,"\u03BE","\\xi",!0),re(ue,Qe,et,"\u03BF","\\omicron",!0),re(ue,Qe,et,"\u03C0","\\pi",!0),re(ue,Qe,et,"\u03C1","\\rho",!0),re(ue,Qe,et,"\u03C3","\\sigma",!0),re(ue,Qe,et,"\u03C4","\\tau",!0),re(ue,Qe,et,"\u03C5","\\upsilon",!0),re(ue,Qe,et,"\u03D5","\\phi",!0),re(ue,Qe,et,"\u03C7","\\chi",!0),re(ue,Qe,et,"\u03C8","\\psi",!0),re(ue,Qe,et,"\u03C9","\\omega",!0),re(ue,Qe,et,"\u03B5","\\varepsilon",!0),re(ue,Qe,et,"\u03D1","\\vartheta",!0),re(ue,Qe,et,"\u03D6","\\varpi",!0),re(ue,Qe,et,"\u03F1","\\varrho",!0),re(ue,Qe,et,"\u03C2","\\varsigma",!0),re(ue,Qe,et,"\u03C6","\\varphi",!0),re(ue,Qe,Tt,"\u2217","*"),re(ue,Qe,Tt,"+","+"),re(ue,Qe,Tt,"\u2212","-"),re(ue,Qe,Tt,"\u22C5","\\cdot",!0),re(ue,Qe,Tt,"\u2218","\\circ"),re(ue,Qe,Tt,"\xF7","\\div",!0),re(ue,Qe,Tt,"\xB1","\\pm",!0),re(ue,Qe,Tt,"\xD7","\\times",!0),re(ue,Qe,Tt,"\u2229","\\cap",!0),re(ue,Qe,Tt,"\u222A","\\cup",!0),re(ue,Qe,Tt,"\u2216","\\setminus"),re(ue,Qe,Tt,"\u2227","\\land"),re(ue,Qe,Tt,"\u2228","\\lor"),re(ue,Qe,Tt,"\u2227","\\wedge",!0),re(ue,Qe,Tt,"\u2228","\\vee",!0),re(ue,Qe,Mt,"\u221A","\\surd"),re(ue,Qe,ht,"(","("),re(ue,Qe,ht,"[","["),re(ue,Qe,ht,"\u27E8","\\langle",!0),re(ue,Qe,ht,"\u2223","\\lvert"),re(ue,Qe,ht,"\u2225","\\lVert"),re(ue,Qe,Kt,")",")"),re(ue,Qe,Kt,"]","]"),re(ue,Qe,Kt,"?","?"),re(ue,Qe,Kt,"!","!"),re(ue,Qe,Kt,"\u27E9","\\rangle",!0),re(ue,Qe,Kt,"\u2223","\\rvert"),re(ue,Qe,Kt,"\u2225","\\rVert"),re(ue,Qe,Oe,"=","="),re(ue,Qe,Oe,"<","<"),re(ue,Qe,Oe,">",">"),re(ue,Qe,Oe,":",":"),re(ue,Qe,Oe,"\u2248","\\approx",!0),re(ue,Qe,Oe,"\u2245","\\cong",!0),re(ue,Qe,Oe,"\u2265","\\ge"),re(ue,Qe,Oe,"\u2265","\\geq",!0),re(ue,Qe,Oe,"\u2190","\\gets"),re(ue,Qe,Oe,">","\\gt"),re(ue,Qe,Oe,"\u2208","\\in",!0),re(ue,Qe,Oe,"\uE020","\\@not"),re(ue,Qe,Oe,"\u2282","\\subset",!0),re(ue,Qe,Oe,"\u2283","\\supset",!0),re(ue,Qe,Oe,"\u2286","\\subseteq",!0),re(ue,Qe,Oe,"\u2287","\\supseteq",!0),re(ue,ot,Oe,"\u2288","\\nsubseteq",!0),re(ue,ot,Oe,"\u2289","\\nsupseteq",!0),re(ue,Qe,Oe,"\u22A8","\\models"),re(ue,Qe,Oe,"\u2190","\\leftarrow",!0),re(ue,Qe,Oe,"\u2264","\\le"),re(ue,Qe,Oe,"\u2264","\\leq",!0),re(ue,Qe,Oe,"<","\\lt"),re(ue,Qe,Oe,"\u2192","\\rightarrow",!0),re(ue,Qe,Oe,"\u2192","\\to"),re(ue,ot,Oe,"\u2271","\\ngeq",!0),re(ue,ot,Oe,"\u2270","\\nleq",!0),re(ue,Qe,on,"\xA0","\\ "),re(ue,Qe,on,"\xA0","~"),re(ue,Qe,on,"\xA0","\\space"),re(ue,Qe,on,"\xA0","\\nobreakspace"),re(rr,Qe,on,"\xA0","\\ "),re(rr,Qe,on,"\xA0","~"),re(rr,Qe,on,"\xA0","\\space"),re(rr,Qe,on,"\xA0","\\nobreakspace"),re(ue,Qe,on,null,"\\nobreak"),re(ue,Qe,on,null,"\\allowbreak"),re(ue,Qe,Gt,",",","),re(ue,Qe,Gt,";",";"),re(ue,ot,Tt,"\u22BC","\\barwedge",!0),re(ue,ot,Tt,"\u22BB","\\veebar",!0),re(ue,Qe,Tt,"\u2299","\\odot",!0),re(ue,Qe,Tt,"\u2295","\\oplus",!0),re(ue,Qe,Tt,"\u2297","\\otimes",!0),re(ue,Qe,Mt,"\u2202","\\partial",!0),re(ue,Qe,Tt,"\u2298","\\oslash",!0),re(ue,ot,Tt,"\u229A","\\circledcirc",!0),re(ue,ot,Tt,"\u22A1","\\boxdot",!0),re(ue,Qe,Tt,"\u25B3","\\bigtriangleup"),re(ue,Qe,Tt,"\u25BD","\\bigtriangledown"),re(ue,Qe,Tt,"\u2020","\\dagger"),re(ue,Qe,Tt,"\u22C4","\\diamond"),re(ue,Qe,Tt,"\u22C6","\\star"),re(ue,Qe,Tt,"\u25C3","\\triangleleft"),re(ue,Qe,Tt,"\u25B9","\\triangleright"),re(ue,Qe,ht,"{","\\{"),re(rr,Qe,Mt,"{","\\{"),re(rr,Qe,Mt,"{","\\textbraceleft"),re(ue,Qe,Kt,"}","\\}"),re(rr,Qe,Mt,"}","\\}"),re(rr,Qe,Mt,"}","\\textbraceright"),re(ue,Qe,ht,"{","\\lbrace"),re(ue,Qe,Kt,"}","\\rbrace"),re(ue,Qe,ht,"[","\\lbrack"),re(rr,Qe,Mt,"[","\\lbrack"),re(ue,Qe,Kt,"]","\\rbrack"),re(rr,Qe,Mt,"]","\\rbrack"),re(ue,Qe,ht,"(","\\lparen"),re(ue,Qe,Kt,")","\\rparen"),re(rr,Qe,Mt,"<","\\textless"),re(rr,Qe,Mt,">","\\textgreater"),re(ue,Qe,ht,"\u230A","\\lfloor",!0),re(ue,Qe,Kt,"\u230B","\\rfloor",!0),re(ue,Qe,ht,"\u2308","\\lceil",!0),re(ue,Qe,Kt,"\u2309","\\rceil",!0),re(ue,Qe,Mt,"\\","\\backslash"),re(ue,Qe,Mt,"\u2223","|"),re(ue,Qe,Mt,"\u2223","\\vert"),re(rr,Qe,Mt,"|","\\textbar"),re(ue,Qe,Mt,"\u2225","\\|"),re(ue,Qe,Mt,"\u2225","\\Vert"),re(rr,Qe,Mt,"\u2225","\\textbardbl"),re(rr,Qe,Mt,"~","\\textasciitilde"),re(rr,Qe,Mt,"\\","\\textbackslash"),re(rr,Qe,Mt,"^","\\textasciicircum"),re(ue,Qe,Oe,"\u2191","\\uparrow",!0),re(ue,Qe,Oe,"\u21D1","\\Uparrow",!0),re(ue,Qe,Oe,"\u2193","\\downarrow",!0),re(ue,Qe,Oe,"\u21D3","\\Downarrow",!0),re(ue,Qe,Oe,"\u2195","\\updownarrow",!0),re(ue,Qe,Oe,"\u21D5","\\Updownarrow",!0),re(ue,Qe,ft,"\u2210","\\coprod"),re(ue,Qe,ft,"\u22C1","\\bigvee"),re(ue,Qe,ft,"\u22C0","\\bigwedge"),re(ue,Qe,ft,"\u2A04","\\biguplus"),re(ue,Qe,ft,"\u22C2","\\bigcap"),re(ue,Qe,ft,"\u22C3","\\bigcup"),re(ue,Qe,ft,"\u222B","\\int"),re(ue,Qe,ft,"\u222B","\\intop"),re(ue,Qe,ft,"\u222C","\\iint"),re(ue,Qe,ft,"\u222D","\\iiint"),re(ue,Qe,ft,"\u220F","\\prod"),re(ue,Qe,ft,"\u2211","\\sum"),re(ue,Qe,ft,"\u2A02","\\bigotimes"),re(ue,Qe,ft,"\u2A01","\\bigoplus"),re(ue,Qe,ft,"\u2A00","\\bigodot"),re(ue,Qe,ft,"\u222E","\\oint"),re(ue,Qe,ft,"\u222F","\\oiint"),re(ue,Qe,ft,"\u2230","\\oiiint"),re(ue,Qe,ft,"\u2A06","\\bigsqcup"),re(ue,Qe,ft,"\u222B","\\smallint"),re(rr,Qe,qt,"\u2026","\\textellipsis"),re(ue,Qe,qt,"\u2026","\\mathellipsis"),re(rr,Qe,qt,"\u2026","\\ldots",!0),re(ue,Qe,qt,"\u2026","\\ldots",!0),re(ue,Qe,qt,"\u22EF","\\@cdots",!0),re(ue,Qe,qt,"\u22F1","\\ddots",!0),re(ue,Qe,Mt,"\u22EE","\\varvdots"),re(ue,Qe,Jr,"\u02CA","\\acute"),re(ue,Qe,Jr,"\u02CB","\\grave"),re(ue,Qe,Jr,"\xA8","\\ddot"),re(ue,Qe,Jr,"~","\\tilde"),re(ue,Qe,Jr,"\u02C9","\\bar"),re(ue,Qe,Jr,"\u02D8","\\breve"),re(ue,Qe,Jr,"\u02C7","\\check"),re(ue,Qe,Jr,"^","\\hat"),re(ue,Qe,Jr,"\u20D7","\\vec"),re(ue,Qe,Jr,"\u02D9","\\dot"),re(ue,Qe,Jr,"\u02DA","\\mathring"),re(ue,Qe,et,"\u0131","\\imath",!0),re(ue,Qe,et,"\u0237","\\jmath",!0),re(rr,Qe,Mt,"\u0131","\\i",!0),re(rr,Qe,Mt,"\u0237","\\j",!0),re(rr,Qe,Mt,"\xDF","\\ss",!0),re(rr,Qe,Mt,"\xE6","\\ae",!0),re(rr,Qe,Mt,"\xE6","\\ae",!0),re(rr,Qe,Mt,"\u0153","\\oe",!0),re(rr,Qe,Mt,"\xF8","\\o",!0),re(rr,Qe,Mt,"\xC6","\\AE",!0),re(rr,Qe,Mt,"\u0152","\\OE",!0),re(rr,Qe,Mt,"\xD8","\\O",!0),re(rr,Qe,Jr,"\u02CA","\\'"),re(rr,Qe,Jr,"\u02CB","\\`"),re(rr,Qe,Jr,"\u02C6","\\^"),re(rr,Qe,Jr,"\u02DC","\\~"),re(rr,Qe,Jr,"\u02C9","\\="),re(rr,Qe,Jr,"\u02D8","\\u"),re(rr,Qe,Jr,"\u02D9","\\."),re(rr,Qe,Jr,"\u02DA","\\r"),re(rr,Qe,Jr,"\u02C7","\\v"),re(rr,Qe,Jr,"\xA8",'\\"'),re(rr,Qe,Jr,"\u02DD","\\H"),re(rr,Qe,Jr,"\u25EF","\\textcircled");var On={"--":!0,"---":!0,"``":!0,"''":!0};re(rr,Qe,Mt,"\u2013","--"),re(rr,Qe,Mt,"\u2013","\\textendash"),re(rr,Qe,Mt,"\u2014","---"),re(rr,Qe,Mt,"\u2014","\\textemdash"),re(rr,Qe,Mt,"\u2018","`"),re(rr,Qe,Mt,"\u2018","\\textquoteleft"),re(rr,Qe,Mt,"\u2019","'"),re(rr,Qe,Mt,"\u2019","\\textquoteright"),re(rr,Qe,Mt,"\u201C","``"),re(rr,Qe,Mt,"\u201C","\\textquotedblleft"),re(rr,Qe,Mt,"\u201D","''"),re(rr,Qe,Mt,"\u201D","\\textquotedblright"),re(ue,Qe,Mt,"\xB0","\\degree",!0),re(rr,Qe,Mt,"\xB0","\\degree"),re(rr,Qe,Mt,"\xB0","\\textdegree",!0),re(ue,Qe,et,"\xA3","\\pounds"),re(ue,Qe,et,"\xA3","\\mathsterling",!0),re(rr,Qe,et,"\xA3","\\pounds"),re(rr,Qe,et,"\xA3","\\textsterling",!0),re(ue,ot,Mt,"\u2720","\\maltese"),re(rr,ot,Mt,"\u2720","\\maltese"),re(rr,Qe,on,"\xA0","\\ "),re(rr,Qe,on,"\xA0"," "),re(rr,Qe,on,"\xA0","~");for(var Xn='0123456789/@."',yi=0;yi<Xn.length;yi++){var $i=Xn.charAt(yi);re(ue,Qe,Mt,$i,$i)}for(var Dn='0123456789!@*()-=+[]<>|";:?/.,',zn=0;zn<Dn.length;zn++){var Xt=Dn.charAt(zn);re(rr,Qe,Mt,Xt,Xt)}for(var $r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",en=0;en<$r.length;en++){var Pt=$r.charAt(en);re(ue,Qe,et,Pt,Pt),re(rr,Qe,Mt,Pt,Pt)}re(ue,ot,Mt,"C","\u2102"),re(rr,ot,Mt,"C","\u2102"),re(ue,ot,Mt,"H","\u210D"),re(rr,ot,Mt,"H","\u210D"),re(ue,ot,Mt,"N","\u2115"),re(rr,ot,Mt,"N","\u2115"),re(ue,ot,Mt,"P","\u2119"),re(rr,ot,Mt,"P","\u2119"),re(ue,ot,Mt,"Q","\u211A"),re(rr,ot,Mt,"Q","\u211A"),re(ue,ot,Mt,"R","\u211D"),re(rr,ot,Mt,"R","\u211D"),re(ue,ot,Mt,"Z","\u2124"),re(rr,ot,Mt,"Z","\u2124"),re(ue,Qe,et,"h","\u210E"),re(rr,Qe,et,"h","\u210E");for(var Et="",_r=0;_r<$r.length;_r++){var Fr=$r.charAt(_r);Et=String.fromCharCode(55349,56320+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),Et=String.fromCharCode(55349,56372+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),Et=String.fromCharCode(55349,56424+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),Et=String.fromCharCode(55349,56580+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),Et=String.fromCharCode(55349,56736+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),Et=String.fromCharCode(55349,56788+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),Et=String.fromCharCode(55349,56840+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),Et=String.fromCharCode(55349,56944+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),_r<26&&(Et=String.fromCharCode(55349,56632+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et),Et=String.fromCharCode(55349,56476+_r),re(ue,Qe,et,Fr,Et),re(rr,Qe,Mt,Fr,Et))}Et="\u{1D55C}",re(ue,Qe,et,"k",Et),re(rr,Qe,Mt,"k",Et);for(var In=0;In<10;In++){var an=In.toString();Et=String.fromCharCode(55349,57294+In),re(ue,Qe,et,an,Et),re(rr,Qe,Mt,an,Et),Et=String.fromCharCode(55349,57314+In),re(ue,Qe,et,an,Et),re(rr,Qe,Mt,an,Et),Et=String.fromCharCode(55349,57324+In),re(ue,Qe,et,an,Et),re(rr,Qe,Mt,an,Et),Et=String.fromCharCode(55349,57334+In),re(ue,Qe,et,an,Et),re(rr,Qe,Mt,an,Et)}for(var _n="\xC7\xD0\xDE\xE7\xFE",mn=0;mn<_n.length;mn++){var Mn=_n.charAt(mn);re(ue,Qe,et,Mn,Mn),re(rr,Qe,Mt,Mn,Mn)}re(rr,Qe,Mt,"\xF0","\xF0"),re(rr,Qe,Mt,"\u2013","\u2013"),re(rr,Qe,Mt,"\u2014","\u2014"),re(rr,Qe,Mt,"\u2018","\u2018"),re(rr,Qe,Mt,"\u2019","\u2019"),re(rr,Qe,Mt,"\u201C","\u201C"),re(rr,Qe,Mt,"\u201D","\u201D");var ei=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Kr=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Vr=function(A,w){var E=A.charCodeAt(0),z=A.charCodeAt(1),be=(E-55296)*1024+(z-56320)+65536,ze=w==="math"?0:1;if(119808<=be&&be<120484){var pt=Math.floor((be-119808)/26);return[ei[pt][2],ei[pt][ze]]}else if(120782<=be&&be<=120831){var It=Math.floor((be-120782)/10);return[Kr[It][2],Kr[It][ze]]}else{if(be===120485||be===120486)return[ei[0][2],ei[0][ze]];if(120486<be&&be<120782)return["",""];throw new Y("Unsupported character: "+A)}},Tn=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Sn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Un=function(A,w){return w.size<2?A:Tn[A-1][w.size-1]},Vn=function(){function je(w){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=w.style,this.color=w.color,this.size=w.size||je.BASESIZE,this.textSize=w.textSize||this.size,this.phantom=!!w.phantom,this.font=w.font||"",this.fontFamily=w.fontFamily||"",this.fontWeight=w.fontWeight||"",this.fontShape=w.fontShape||"",this.sizeMultiplier=Sn[this.size-1],this.maxSize=w.maxSize,this.minRuleThickness=w.minRuleThickness,this._fontMetrics=void 0}var A=je.prototype;return A.extend=function(E){var z={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var be in E)E.hasOwnProperty(be)&&(z[be]=E[be]);return new je(z)},A.havingStyle=function(E){return this.style===E?this:this.extend({style:E,size:Un(this.textSize,E)})},A.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},A.havingSize=function(E){return this.size===E&&this.textSize===E?this:this.extend({style:this.style.text(),size:E,textSize:E,sizeMultiplier:Sn[E-1]})},A.havingBaseStyle=function(E){E=E||this.style.text();var z=Un(je.BASESIZE,E);return this.size===z&&this.textSize===je.BASESIZE&&this.style===E?this:this.extend({style:E,size:z})},A.havingBaseSizing=function(){var E;switch(this.style.id){case 4:case 5:E=3;break;case 6:case 7:E=1;break;default:E=6}return this.extend({style:this.style.text(),size:E})},A.withColor=function(E){return this.extend({color:E})},A.withPhantom=function(){return this.extend({phantom:!0})},A.withFont=function(E){return this.extend({font:E})},A.withTextFontFamily=function(E){return this.extend({fontFamily:E,font:""})},A.withTextFontWeight=function(E){return this.extend({fontWeight:E,font:""})},A.withTextFontShape=function(E){return this.extend({fontShape:E,font:""})},A.sizingClasses=function(E){return E.size!==this.size?["sizing","reset-size"+E.size,"size"+this.size]:[]},A.baseSizingClasses=function(){return this.size!==je.BASESIZE?["sizing","reset-size"+this.size,"size"+je.BASESIZE]:[]},A.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Bt(this.size)),this._fontMetrics},A.getColor=function(){return this.phantom?"transparent":this.color},je}();Vn.BASESIZE=6;var Ui=Vn,di={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},bn={ex:!0,em:!0,mu:!0},dr=function(A){return typeof A!="string"&&(A=A.unit),A in di||A in bn||A==="ex"},vr=function(A,w){var E;if(A.unit in di)E=di[A.unit]/w.fontMetrics().ptPerEm/w.sizeMultiplier;else if(A.unit==="mu")E=w.fontMetrics().cssEmPerMu;else{var z;if(w.style.isTight()?z=w.havingStyle(w.style.text()):z=w,A.unit==="ex")E=z.fontMetrics().xHeight;else if(A.unit==="em")E=z.fontMetrics().quad;else throw new Y("Invalid unit: '"+A.unit+"'");z!==w&&(E*=z.sizeMultiplier/w.sizeMultiplier)}return Math.min(A.number*E,w.maxSize)},Ir=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Yr=function(A,w,E){return br[E][A]&&br[E][A].replace&&(A=br[E][A].replace),{value:A,metrics:Ze(A,w,E)}},Mr=function(A,w,E,z,be){var ze=Yr(A,w,E),pt=ze.metrics;A=ze.value;var It;if(pt){var $t=pt.italic;(E==="text"||z&&z.font==="mathit")&&($t=0),It=new k(A,pt.height,pt.depth,$t,pt.skew,pt.width,be)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+A+"' in style '"+w+"' and mode '"+E+"'")),It=new k(A,0,0,0,0,0,be);if(z){It.maxFontSize=z.sizeMultiplier,z.style.isTight()&&It.classes.push("mtight");var fr=z.getColor();fr&&(It.style.color=fr)}return It},cn=function(A,w,E,z){return z===void 0&&(z=[]),E.font==="boldsymbol"&&Yr(A,"Main-Bold",w).metrics?Mr(A,"Main-Bold",w,E,z.concat(["mathbf"])):A==="\\"||br[w][A].font==="main"?Mr(A,"Main-Regular",w,E,z):Mr(A,"AMS-Regular",w,E,z.concat(["amsrm"]))},nn=function(A,w,E,z){return/[0-9]/.test(A.charAt(0))||F.contains(Ir,A)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},jn=function(A,w,E,z){return F.contains(Ir,A)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(A.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},ti=function(A,w,E,z){return Yr(A,"Math-BoldItalic",w).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},ui=function(A,w,E){var z=A.mode,be=A.text,ze=["mord"],pt=z==="math"||z==="text"&&w.font,It=pt?w.font:w.fontFamily;if(be.charCodeAt(0)===55349){var $t=Vr(be,z),fr=$t[0],Dr=$t[1];return Mr(be,fr,z,w,ze.concat(Dr))}else if(It){var Hr,Hn;if(It==="boldsymbol"||It==="mathnormal"){var Ur=It==="boldsymbol"?ti(be,z,w,ze):jn(be,z,w,ze);Hr=Ur.fontName,Hn=[Ur.fontClass]}else F.contains(Ir,be)?(Hr="Main-Italic",Hn=["mathit"]):pt?(Hr=ua[It].fontName,Hn=[It]):(Hr=Zi(It,w.fontWeight,w.fontShape),Hn=[It,w.fontWeight,w.fontShape]);if(Yr(be,Hr,z).metrics)return Mr(be,Hr,z,w,ze.concat(Hn));if(On.hasOwnProperty(be)&&Hr.substr(0,10)==="Typewriter"){for(var xn=[],Nn=0;Nn<be.length;Nn++)xn.push(Mr(be[Nn],Hr,z,w,ze.concat(Hn)));return ii(xn)}}if(E==="mathord"){var kn=nn(be,z,w,ze);return Mr(be,kn.fontName,z,w,ze.concat([kn.fontClass]))}else if(E==="textord"){var Jn=br[z][be]&&br[z][be].font;if(Jn==="ams"){var Rn=Zi("amsrm",w.fontWeight,w.fontShape);return Mr(be,Rn,z,w,ze.concat("amsrm",w.fontWeight,w.fontShape))}else if(Jn==="main"||!Jn){var Oi=Zi("textrm",w.fontWeight,w.fontShape);return Mr(be,Oi,z,w,ze.concat(w.fontWeight,w.fontShape))}else{var Gi=Zi(Jn,w.fontWeight,w.fontShape);return Mr(be,Gi,z,w,ze.concat(Gi,w.fontWeight,w.fontShape))}}else throw new Error("unexpected type: "+E+" in makeOrd")},Ri=function(A,w){if(_e(A.classes)!==_e(w.classes)||A.skew!==w.skew||A.maxFontSize!==w.maxFontSize)return!1;for(var E in A.style)if(A.style.hasOwnProperty(E)&&A.style[E]!==w.style[E])return!1;for(var z in w.style)if(w.style.hasOwnProperty(z)&&A.style[z]!==w.style[z])return!1;return!0},Qi=function(A){for(var w=0;w<A.length-1;w++){var E=A[w],z=A[w+1];E instanceof k&&z instanceof k&&Ri(E,z)&&(E.text+=z.text,E.height=Math.max(E.height,z.height),E.depth=Math.max(E.depth,z.depth),E.italic=z.italic,A.splice(w+1,1),w--)}return A},Pi=function(A){for(var w=0,E=0,z=0,be=0;be<A.children.length;be++){var ze=A.children[be];ze.height>w&&(w=ze.height),ze.depth>E&&(E=ze.depth),ze.maxFontSize>z&&(z=ze.maxFontSize)}A.height=w,A.depth=E,A.maxFontSize=z},Sr=function(A,w,E,z){var be=new h(A,w,E,z);return Pi(be),be},Cn=function(A,w,E,z){return new h(A,w,E,z)},fn=function(A,w,E){var z=Sr([A],[],w);return z.height=Math.max(E||w.fontMetrics().defaultRuleThickness,w.minRuleThickness),z.style.borderBottomWidth=z.height+"em",z.maxFontSize=1,z},hi=function(A,w,E,z){var be=new D(A,w,E,z);return Pi(be),be},ii=function(A){var w=new Cr(A);return Pi(w),w},ri=function(A,w){return A instanceof Cr?Sr([],[A],w):A},bi=function(A){if(A.positionType==="individualShift"){for(var w=A.children,E=[w[0]],z=-w[0].shift-w[0].elem.depth,be=z,ze=1;ze<w.length;ze++){var pt=-w[ze].shift-be-w[ze].elem.depth,It=pt-(w[ze-1].elem.height+w[ze-1].elem.depth);be=be+pt,E.push({type:"kern",size:It}),E.push(w[ze])}return{children:E,depth:z}}var $t;if(A.positionType==="top"){for(var fr=A.positionData,Dr=0;Dr<A.children.length;Dr++){var Hr=A.children[Dr];fr-=Hr.type==="kern"?Hr.size:Hr.elem.height+Hr.elem.depth}$t=fr}else if(A.positionType==="bottom")$t=-A.positionData;else{var Hn=A.children[0];if(Hn.type!=="elem")throw new Error('First child must have type "elem".');if(A.positionType==="shift")$t=-Hn.elem.depth-A.positionData;else if(A.positionType==="firstBaseline")$t=-Hn.elem.depth;else throw new Error("Invalid positionType "+A.positionType+".")}return{children:A.children,depth:$t}},Ti=function(A,w){for(var E=bi(A),z=E.children,be=E.depth,ze=0,pt=0;pt<z.length;pt++){var It=z[pt];if(It.type==="elem"){var $t=It.elem;ze=Math.max(ze,$t.maxFontSize,$t.height)}}ze+=2;var fr=Sr(["pstrut"],[]);fr.style.height=ze+"em";for(var Dr=[],Hr=be,Hn=be,Ur=be,xn=0;xn<z.length;xn++){var Nn=z[xn];if(Nn.type==="kern")Ur+=Nn.size;else{var kn=Nn.elem,Jn=Nn.wrapperClasses||[],Rn=Nn.wrapperStyle||{},Oi=Sr(Jn,[fr,kn],void 0,Rn);Oi.style.top=-ze-Ur-kn.depth+"em",Nn.marginLeft&&(Oi.style.marginLeft=Nn.marginLeft),Nn.marginRight&&(Oi.style.marginRight=Nn.marginRight),Dr.push(Oi),Ur+=kn.height+kn.depth}Hr=Math.min(Hr,Ur),Hn=Math.max(Hn,Ur)}var Gi=Sr(["vlist"],Dr);Gi.style.height=Hn+"em";var Ji;if(Hr<0){var Ia=Sr([],[]),Di=Sr(["vlist"],[Ia]);Di.style.height=-Hr+"em";var ss=Sr(["vlist-s"],[new k("\u200B")]);Ji=[Sr(["vlist-r"],[Gi,ss]),Sr(["vlist-r"],[Di])]}else Ji=[Sr(["vlist-r"],[Gi])];var La=Sr(["vlist-t"],Ji);return Ji.length===2&&La.classes.push("vlist-t2"),La.height=Hn,La.depth=-Hr,La},Bi=function(A,w){var E=Sr(["mspace"],[],w),z=vr(A,w);return E.style.marginRight=z+"em",E},Zi=function(A,w,E){var z="";switch(A){case"amsrm":z="AMS";break;case"textrm":z="Main";break;case"textsf":z="SansSerif";break;case"texttt":z="Typewriter";break;default:z=A}var be;return w==="textbf"&&E==="textit"?be="BoldItalic":w==="textbf"?be="Bold":w==="textit"?be="Italic":be="Regular",z+"-"+be},ua={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},xi={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},gn=function(A,w){var E=xi[A],z=E[0],be=E[1],ze=E[2],pt=new Se(z),It=new te([pt],{width:be+"em",height:ze+"em",style:"width:"+be+"em",viewBox:"0 0 "+1e3*be+" "+1e3*ze,preserveAspectRatio:"xMinYMin"}),$t=Cn(["overlay"],[It],w);return $t.height=ze,$t.style.height=ze+"em",$t.style.width=be+"em",$t},Ht={fontMap:ua,makeSymbol:Mr,mathsym:cn,makeSpan:Sr,makeSvgSpan:Cn,makeLineSpan:fn,makeAnchor:hi,makeFragment:ii,wrapFragment:ri,makeVList:Ti,makeOrd:ui,makeGlue:Bi,staticSvg:gn,svgData:xi,tryCombineChars:Qi};function Fn(je,A){var w=Zn(je,A);if(!w)throw new Error("Expected node of type "+A+", but got "+(je?"node of type "+je.type:String(je)));return w}function Zn(je,A){return je&&je.type===A?je:null}function Ei(je,A){var w=ji(je,A);if(!w)throw new Error('Expected node of type "atom" and family "'+A+'", but got '+(je?je.type==="atom"?"atom of family "+je.family:"node of type "+je.type:String(je)));return w}function ji(je,A){return je&&je.type==="atom"&&je.family===A?je:null}function da(je){var A=Ea(je);if(!A)throw new Error("Expected node of symbol group type, but got "+(je?"node of type "+je.type:String(je)));return A}function Ea(je){return je&&(je.type==="atom"||Ut.hasOwnProperty(je.type))?je:null}var qi={number:3,unit:"mu"},Sa={number:4,unit:"mu"},_i={number:5,unit:"mu"},ai={mord:{mop:qi,mbin:Sa,mrel:_i,minner:qi},mop:{mord:qi,mop:qi,mrel:_i,minner:qi},mbin:{mord:Sa,mop:Sa,mopen:Sa,minner:Sa},mrel:{mord:_i,mop:_i,mopen:_i,minner:_i},mopen:{},mclose:{mop:qi,mbin:Sa,mrel:_i,minner:qi},mpunct:{mord:qi,mop:qi,mrel:_i,mopen:qi,mclose:qi,mpunct:qi,minner:qi},minner:{mord:qi,mop:qi,mbin:Sa,mrel:_i,mopen:qi,mpunct:qi,minner:qi}},zi={mord:{mop:qi},mop:{mord:qi,mop:qi},mbin:{},mrel:{},mopen:{},mclose:{mop:qi},mpunct:{},minner:{mop:qi}},na={},Ca={},ys={};function oi(je){for(var A=je.type,w=je.names,E=je.props,z=je.handler,be=je.htmlBuilder,ze=je.mathmlBuilder,pt={type:A,numArgs:E.numArgs,argTypes:E.argTypes,greediness:E.greediness===void 0?1:E.greediness,allowedInText:!!E.allowedInText,allowedInMath:E.allowedInMath===void 0?!0:E.allowedInMath,numOptionalArgs:E.numOptionalArgs||0,infix:!!E.infix,handler:z},It=0;It<w.length;++It)na[w[It]]=pt;A&&(be&&(Ca[A]=be),ze&&(ys[A]=ze))}function _a(je){var A=je.type,w=je.htmlBuilder,E=je.mathmlBuilder;oi({type:A,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:w,mathmlBuilder:E})}var ga=function(A){var w=Zn(A,"ordgroup");return w?w.body:[A]},Ua=Ht.makeSpan,Cs=["leftmost","mbin","mopen","mrel","mop","mpunct"],ns=["rightmost","mrel","mclose","mpunct"],Fa={display:_.DISPLAY,text:_.TEXT,script:_.SCRIPT,scriptscript:_.SCRIPTSCRIPT},Ni={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},oa=function(A,w,E,z){z===void 0&&(z=[null,null]);for(var be=[],ze=0;ze<A.length;ze++){var pt=aa(A[ze],w);if(pt instanceof Cr){var It=pt.children;be.push.apply(be,It)}else be.push(pt)}if(!E)return be;var $t=w;if(A.length===1){var fr=Zn(A[0],"sizing")||Zn(A[0],"styling");fr&&(fr.type==="sizing"?$t=w.havingSize(fr.size):fr.type==="styling"&&($t=w.havingStyle(Fa[fr.style])))}var Dr=Ua([z[0]||"leftmost"],[],w),Hr=Ua([z[1]||"rightmost"],[],w);return fs(be,function(Hn,Ur){var xn=Ur.classes[0],Nn=Hn.classes[0];xn==="mbin"&&F.contains(ns,Nn)?Ur.classes[0]="mord":Nn==="mbin"&&F.contains(Cs,xn)&&(Hn.classes[0]="mord")},{node:Dr},Hr),fs(be,function(Hn,Ur){var xn=Yi(Ur),Nn=Yi(Hn),kn=xn&&Nn?Hn.hasClass("mtight")?zi[xn][Nn]:ai[xn][Nn]:null;if(kn)return Ht.makeGlue(kn,$t)},{node:Dr},Hr),be},fs=function je(A,w,E,z){z&&A.push(z);for(var be=0;be<A.length;be++){var ze=A[be],pt=is(ze);if(pt){je(pt.children,w,E);continue}if(ze.classes[0]!=="mspace"){var It=w(ze,E.node);It&&(E.insertAfter?E.insertAfter(It):(A.unshift(It),be++)),E.node=ze,E.insertAfter=function($t){return function(fr){A.splice($t+1,0,fr),be++}}(be)}}z&&A.pop()},is=function(A){return A instanceof Cr||A instanceof D?A:null},es=function je(A,w){var E=is(A);if(E){var z=E.children;if(z.length){if(w==="right")return je(z[z.length-1],"right");if(w==="left")return je(z[0],"left")}}return A},Yi=function(A,w){return A?(w&&(A=es(A,w)),Ni[A.classes[0]]||null):null},hs=function(A,w){var E=["nulldelimiter"].concat(A.baseSizingClasses());return Ua(w.concat(E))},aa=function(A,w,E){if(!A)return Ua();if(Ca[A.type]){var z=Ca[A.type](A,w);if(E&&w.size!==E.size){z=Ua(w.sizingClasses(E),[z],w);var be=w.sizeMultiplier/E.sizeMultiplier;z.height*=be,z.depth*=be}return z}else throw new Y("Got group of unknown type: '"+A.type+"'")};function co(je,A){var w=Ua(["base"],je,A),E=Ua(["strut"]);return E.style.height=w.height+w.depth+"em",E.style.verticalAlign=-w.depth+"em",w.children.unshift(E),w}function js(je,A){var w=null;je.length===1&&je[0].type==="tag"&&(w=je[0].tag,je=je[0].body);for(var E=oa(je,A,!0),z=[],be=[],ze=0;ze<E.length;ze++)if(be.push(E[ze]),E[ze].hasClass("mbin")||E[ze].hasClass("mrel")||E[ze].hasClass("allowbreak")){for(var pt=!1;ze<E.length-1&&E[ze+1].hasClass("mspace")&&!E[ze+1].hasClass("newline");)ze++,be.push(E[ze]),E[ze].hasClass("nobreak")&&(pt=!0);pt||(z.push(co(be,A)),be=[])}else E[ze].hasClass("newline")&&(be.pop(),be.length>0&&(z.push(co(be,A)),be=[]),z.push(E[ze]));be.length>0&&z.push(co(be,A));var It;w&&(It=co(oa(w,A,!0)),It.classes=["tag"],z.push(It));var $t=Ua(["katex-html"],z);if($t.setAttribute("aria-hidden","true"),It){var fr=It.children[0];fr.style.height=$t.height+$t.depth+"em",fr.style.verticalAlign=-$t.depth+"em"}return $t}function wo(je){return new Cr(je)}var As=function(){function je(w,E){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=w,this.attributes={},this.children=E||[]}var A=je.prototype;return A.setAttribute=function(E,z){this.attributes[E]=z},A.getAttribute=function(E){return this.attributes[E]},A.toNode=function(){var E=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var z in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,z)&&E.setAttribute(z,this.attributes[z]);for(var be=0;be<this.children.length;be++)E.appendChild(this.children[be].toNode());return E},A.toMarkup=function(){var E="<"+this.type;for(var z in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,z)&&(E+=" "+z+'="',E+=F.escape(this.attributes[z]),E+='"');E+=">";for(var be=0;be<this.children.length;be++)E+=this.children[be].toMarkup();return E+="</"+this.type+">",E},A.toText=function(){return this.children.map(function(E){return E.toText()}).join("")},je}(),xo=function(){function je(w){this.text=void 0,this.text=w}var A=je.prototype;return A.toNode=function(){return document.createTextNode(this.text)},A.toMarkup=function(){return F.escape(this.toText())},A.toText=function(){return this.text},je}(),as=function(){function je(w){this.width=void 0,this.character=void 0,this.width=w,w>=.05555&&w<=.05556?this.character="\u200A":w>=.1666&&w<=.1667?this.character="\u2009":w>=.2222&&w<=.2223?this.character="\u2005":w>=.2777&&w<=.2778?this.character="\u2005\u200A":w>=-.05556&&w<=-.05555?this.character="\u200A\u2063":w>=-.1667&&w<=-.1666?this.character="\u2009\u2063":w>=-.2223&&w<=-.2222?this.character="\u205F\u2063":w>=-.2778&&w<=-.2777?this.character="\u2005\u2063":this.character=null}var A=je.prototype;return A.toNode=function(){if(this.character)return document.createTextNode(this.character);var E=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return E.setAttribute("width",this.width+"em"),E},A.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},A.toText=function(){return this.character?this.character:" "},je}(),Yn={MathNode:As,TextNode:xo,SpaceNode:as,newDocumentFragment:wo},Da=function(A,w,E){return br[w][A]&&br[w][A].replace&&A.charCodeAt(0)!==55349&&!(On.hasOwnProperty(A)&&E&&(E.fontFamily&&E.fontFamily.substr(4,2)==="tt"||E.font&&E.font.substr(4,2)==="tt"))&&(A=br[w][A].replace),new Yn.TextNode(A)},io=function(A){return A.length===1?A[0]:new Yn.MathNode("mrow",A)},Vi=function(A,w){if(w.fontFamily==="texttt")return"monospace";if(w.fontFamily==="textsf")return w.fontShape==="textit"&&w.fontWeight==="textbf"?"sans-serif-bold-italic":w.fontShape==="textit"?"sans-serif-italic":w.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(w.fontShape==="textit"&&w.fontWeight==="textbf")return"bold-italic";if(w.fontShape==="textit")return"italic";if(w.fontWeight==="textbf")return"bold";var E=w.font;if(!E||E==="mathnormal")return null;var z=A.mode;if(E==="mathit")return"italic";if(E==="boldsymbol")return"bold-italic";if(E==="mathbf")return"bold";if(E==="mathbb")return"double-struck";if(E==="mathfrak")return"fraktur";if(E==="mathscr"||E==="mathcal")return"script";if(E==="mathsf")return"sans-serif";if(E==="mathtt")return"monospace";var be=A.text;if(F.contains(["\\imath","\\jmath"],be))return null;br[z][be]&&br[z][be].replace&&(be=br[z][be].replace);var ze=Ht.fontMap[E].fontName;return Ze(be,ze,z)?Ht.fontMap[E].variant:null},ea=function(A,w,E){if(A.length===1){var z=ki(A[0],w);return E&&z instanceof As&&z.type==="mo"&&(z.setAttribute("lspace","0em"),z.setAttribute("rspace","0em")),[z]}for(var be=[],ze,pt=0;pt<A.length;pt++){var It=ki(A[pt],w);if(It instanceof As&&ze instanceof As){if(It.type==="mtext"&&ze.type==="mtext"&&It.getAttribute("mathvariant")===ze.getAttribute("mathvariant")){var $t;($t=ze.children).push.apply($t,It.children);continue}else if(It.type==="mn"&&ze.type==="mn"){var fr;(fr=ze.children).push.apply(fr,It.children);continue}else if(It.type==="mi"&&It.children.length===1&&ze.type==="mn"){var Dr=It.children[0];if(Dr instanceof xo&&Dr.text==="."){var Hr;(Hr=ze.children).push.apply(Hr,It.children);continue}}else if(ze.type==="mi"&&ze.children.length===1){var Hn=ze.children[0];if(Hn instanceof xo&&Hn.text==="\u0338"&&(It.type==="mo"||It.type==="mi"||It.type==="mn")){var Ur=It.children[0];Ur instanceof xo&&Ur.text.length>0&&(Ur.text=Ur.text.slice(0,1)+"\u0338"+Ur.text.slice(1),be.pop())}}}be.push(It),ze=It}return be},Ki=function(A,w,E){return io(ea(A,w,E))},ki=function(A,w){if(!A)return new Yn.MathNode("mrow");if(ys[A.type]){var E=ys[A.type](A,w);return E}else throw new Y("Got group of unknown type: '"+A.type+"'")};function ya(je,A,w,E){var z=ea(je,w),be;z.length===1&&z[0]instanceof As&&F.contains(["mrow","mtable"],z[0].type)?be=z[0]:be=new Yn.MathNode("mrow",z);var ze=new Yn.MathNode("annotation",[new Yn.TextNode(A)]);ze.setAttribute("encoding","application/x-tex");var pt=new Yn.MathNode("semantics",[be,ze]),It=new Yn.MathNode("math",[pt]);It.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var $t=E?"katex":"katex-mathml";return Ht.makeSpan([$t],[It])}var Pa=function(A){return new Ui({style:A.displayMode?_.DISPLAY:_.TEXT,maxSize:A.maxSize,minRuleThickness:A.minRuleThickness})},Os=function(A,w){if(w.displayMode){var E=["katex-display"];w.leqno&&E.push("leqno"),w.fleqn&&E.push("fleqn"),A=Ht.makeSpan(E,[A])}return A},us=function(A,w,E){var z=Pa(E),be;if(E.output==="mathml")return ya(A,w,z,!0);if(E.output==="html"){var ze=js(A,z);be=Ht.makeSpan(["katex"],[ze])}else{var pt=ya(A,w,z,!1),It=js(A,z);be=Ht.makeSpan(["katex"],[pt,It])}return Os(be,E)},bs=function(A,w,E){var z=Pa(E),be=js(A,z),ze=Ht.makeSpan(["katex"],[be]);return Os(ze,E)},ts=us,Eo={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},po=function(A){var w=new Yn.MathNode("mo",[new Yn.TextNode(Eo[A.substr(1)])]);return w.setAttribute("stretchy","true"),w},qs={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},$s=function(A){return A.type==="ordgroup"?A.body.length:1},Ps=function(A,w){function E(){var It=4e5,$t=A.label.substr(1);if(F.contains(["widehat","widecheck","widetilde","utilde"],$t)){var fr=A,Dr=$s(fr.base),Hr,Hn,Ur;if(Dr>5)$t==="widehat"||$t==="widecheck"?(Hr=420,It=2364,Ur=.42,Hn=$t+"4"):(Hr=312,It=2340,Ur=.34,Hn="tilde4");else{var xn=[1,1,2,2,3,3][Dr];$t==="widehat"||$t==="widecheck"?(It=[0,1062,2364,2364,2364][xn],Hr=[0,239,300,360,420][xn],Ur=[0,.24,.3,.3,.36,.42][xn],Hn=$t+xn):(It=[0,600,1033,2339,2340][xn],Hr=[0,260,286,306,312][xn],Ur=[0,.26,.286,.3,.306,.34][xn],Hn="tilde"+xn)}var Nn=new Se(Hn),kn=new te([Nn],{width:"100%",height:Ur+"em",viewBox:"0 0 "+It+" "+Hr,preserveAspectRatio:"none"});return{span:Ht.makeSvgSpan([],[kn],w),minWidth:0,height:Ur}}else{var Jn=[],Rn=qs[$t],Oi=Rn[0],Gi=Rn[1],Ji=Rn[2],Ia=Ji/1e3,Di=Oi.length,ss,La;if(Di===1){var va=Rn[3];ss=["hide-tail"],La=[va]}else if(Di===2)ss=["halfarrow-left","halfarrow-right"],La=["xMinYMin","xMaxYMin"];else if(Di===3)ss=["brace-left","brace-center","brace-right"],La=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Di+" children.");for(var qn=0;qn<Di;qn++){var Qa=new Se(Oi[qn]),Fs=new te([Qa],{width:"400em",height:Ia+"em",viewBox:"0 0 "+It+" "+Ji,preserveAspectRatio:La[qn]+" slice"}),fa=Ht.makeSvgSpan([ss[qn]],[Fs],w);if(Di===1)return{span:fa,minWidth:Gi,height:Ia};fa.style.height=Ia+"em",Jn.push(fa)}return{span:Ht.makeSpan(["stretchy"],Jn,w),minWidth:Gi,height:Ia}}}var z=E(),be=z.span,ze=z.minWidth,pt=z.height;return be.height=pt,be.style.height=pt+"em",ze>0&&(be.style.minWidth=ze+"em"),be},Fi=function(A,w,E,z){var be,ze=A.height+A.depth+2*E;if(/fbox|color/.test(w)){if(be=Ht.makeSpan(["stretchy",w],[],z),w==="fbox"){var pt=z.color&&z.getColor();pt&&(be.style.borderColor=pt)}}else{var It=[];/^[bx]cancel$/.test(w)&&It.push(new Be({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(w)&&It.push(new Be({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var $t=new te(It,{width:"100%",height:ze+"em"});be=Ht.makeSvgSpan([],[$t],z)}return be.height=ze,be.style.height=ze+"em",be},pi={encloseSpan:Fi,mathMLnode:po,svgSpan:Ps},la=function(A,w){var E,z,be=Zn(A,"supsub"),ze;be?(z=Fn(be.base,"accent"),E=z.base,be.base=E,ze=Ge(aa(be,w)),be.base=z):(z=Fn(A,"accent"),E=z.base);var pt=aa(E,w.havingCrampedStyle()),It=z.isShifty&&F.isCharacterBox(E),$t=0;if(It){var fr=F.getBaseElem(E),Dr=aa(fr,w.havingCrampedStyle());$t=Ie(Dr).skew}var Hr=Math.min(pt.height,w.fontMetrics().xHeight),Hn;if(z.isStretchy)Hn=pi.svgSpan(z,w),Hn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pt},{type:"elem",elem:Hn,wrapperClasses:["svg-align"],wrapperStyle:$t>0?{width:"calc(100% - "+2*$t+"em)",marginLeft:2*$t+"em"}:void 0}]},w);else{var Ur,xn;z.label==="\\vec"?(Ur=Ht.staticSvg("vec",w),xn=Ht.svgData.vec[1]):(Ur=Ht.makeOrd({mode:z.mode,text:z.label},w,"textord"),Ur=Ie(Ur),Ur.italic=0,xn=Ur.width),Hn=Ht.makeSpan(["accent-body"],[Ur]);var Nn=z.label==="\\textcircled";Nn&&(Hn.classes.push("accent-full"),Hr=pt.height);var kn=$t;Nn||(kn-=xn/2),Hn.style.left=kn+"em",z.label==="\\textcircled"&&(Hn.style.top=".2em"),Hn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pt},{type:"kern",size:-Hr},{type:"elem",elem:Hn}]},w)}var Jn=Ht.makeSpan(["mord","accent"],[Hn],w);return ze?(ze.children[0]=Jn,ze.height=Math.max(Jn.height,ze.height),ze.classes[0]="mord",ze):Jn},ps=function(A,w){var E=A.isStretchy?pi.mathMLnode(A.label):new Yn.MathNode("mo",[Da(A.label,A.mode)]),z=new Yn.MathNode("mover",[ki(A.base,w),E]);return z.setAttribute("accent","true"),z},Oa=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(je){return"\\"+je}).join("|"));oi({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(A,w){var E=w[0],z=!Oa.test(A.funcName),be=!z||A.funcName==="\\widehat"||A.funcName==="\\widetilde"||A.funcName==="\\widecheck";return{type:"accent",mode:A.parser.mode,label:A.funcName,isStretchy:z,isShifty:be,base:E}},htmlBuilder:la,mathmlBuilder:ps}),oi({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(A,w){var E=w[0];return{type:"accent",mode:A.parser.mode,label:A.funcName,isStretchy:!1,isShifty:!0,base:E}},htmlBuilder:la,mathmlBuilder:ps}),oi({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0];return{type:"accentUnder",mode:E.mode,label:z,base:be}},htmlBuilder:function(A,w){var E=aa(A.base,w),z=pi.svgSpan(A,w),be=A.label==="\\utilde"?.12:0,ze=Ht.makeVList({positionType:"bottom",positionData:z.height+be,children:[{type:"elem",elem:z,wrapperClasses:["svg-align"]},{type:"kern",size:be},{type:"elem",elem:E}]},w);return Ht.makeSpan(["mord","accentunder"],[ze],w)},mathmlBuilder:function(A,w){var E=pi.mathMLnode(A.label),z=new Yn.MathNode("munder",[ki(A.base,w),E]);return z.setAttribute("accentunder","true"),z}});var ks=function(A){var w=new Yn.MathNode("mpadded",A?[A]:[]);return w.setAttribute("width","+0.6em"),w.setAttribute("lspace","0.3em"),w};oi({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(A,w,E){var z=A.parser,be=A.funcName;return{type:"xArrow",mode:z.mode,label:be,body:w[0],below:E[0]}},htmlBuilder:function(A,w){var E=w.style,z=w.havingStyle(E.sup()),be=Ht.wrapFragment(aa(A.body,z,w),w);be.classes.push("x-arrow-pad");var ze;A.below&&(z=w.havingStyle(E.sub()),ze=Ht.wrapFragment(aa(A.below,z,w),w),ze.classes.push("x-arrow-pad"));var pt=pi.svgSpan(A,w),It=-w.fontMetrics().axisHeight+.5*pt.height,$t=-w.fontMetrics().axisHeight-.5*pt.height-.111;(be.depth>.25||A.label==="\\xleftequilibrium")&&($t-=be.depth);var fr;if(ze){var Dr=-w.fontMetrics().axisHeight+ze.height+.5*pt.height+.111;fr=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:be,shift:$t},{type:"elem",elem:pt,shift:It},{type:"elem",elem:ze,shift:Dr}]},w)}else fr=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:be,shift:$t},{type:"elem",elem:pt,shift:It}]},w);return fr.children[0].children[0].children[1].classes.push("svg-align"),Ht.makeSpan(["mrel","x-arrow"],[fr],w)},mathmlBuilder:function(A,w){var E=pi.mathMLnode(A.label),z;if(A.body){var be=ks(ki(A.body,w));if(A.below){var ze=ks(ki(A.below,w));z=new Yn.MathNode("munderover",[E,ze,be])}else z=new Yn.MathNode("mover",[E,be])}else if(A.below){var pt=ks(ki(A.below,w));z=new Yn.MathNode("munder",[E,pt])}else z=ks(),z=new Yn.MathNode("mover",[E,z]);return z}}),oi({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(A,w){for(var E=A.parser,z=Fn(w[0],"ordgroup"),be=z.body,ze="",pt=0;pt<be.length;pt++){var It=Fn(be[pt],"textord");ze+=It.text}var $t=parseInt(ze);if(isNaN($t))throw new Y("\\@char has non-numeric argument "+ze);return{type:"textord",mode:E.mode,text:String.fromCharCode($t)}}});var Gs=function(A,w){var E=oa(A.body,w.withColor(A.color),!1);return Ht.makeFragment(E)},mo=function(A,w){var E=ea(A.body,w.withColor(A.color)),z=new Yn.MathNode("mstyle",E);return z.setAttribute("mathcolor",A.color),z};oi({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(A,w){var E=A.parser,z=Fn(w[0],"color-token").color,be=w[1];return{type:"color",mode:E.mode,color:z,body:ga(be)}},htmlBuilder:Gs,mathmlBuilder:mo}),oi({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(A,w){var E=A.parser,z=A.breakOnTokenText,be=Fn(w[0],"color-token").color;E.gullet.macros.set("\\current@color",be);var ze=E.parseExpression(!0,z);return{type:"color",mode:E.mode,color:be,body:ze}},htmlBuilder:Gs,mathmlBuilder:mo}),oi({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(A,w,E){var z=A.parser,be=A.funcName,ze=E[0],pt=be==="\\cr",It=!1;return pt||(z.settings.displayMode&&z.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?It=!1:It=!0),{type:"cr",mode:z.mode,newLine:It,newRow:pt,size:ze&&Fn(ze,"size").value}},htmlBuilder:function(A,w){if(A.newRow)throw new Y("\\cr valid only within a tabular/array environment");var E=Ht.makeSpan(["mspace"],[],w);return A.newLine&&(E.classes.push("newline"),A.size&&(E.style.marginTop=vr(A.size,w)+"em")),E},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mspace");return A.newLine&&(E.setAttribute("linebreak","newline"),A.size&&E.setAttribute("height",vr(A.size,w)+"em")),E}});var Ns=function(A,w,E){var z=br.math[A]&&br.math[A].replace,be=Ze(z||A,w,E);if(!be)throw new Error("Unsupported symbol "+A+" and font size "+w+".");return be},Ii=function(A,w,E,z){var be=E.havingBaseStyle(w),ze=Ht.makeSpan(z.concat(be.sizingClasses(E)),[A],E),pt=be.sizeMultiplier/E.sizeMultiplier;return ze.height*=pt,ze.depth*=pt,ze.maxFontSize=be.sizeMultiplier,ze},kl=function(A,w,E){var z=w.havingBaseStyle(E),be=(1-w.sizeMultiplier/z.sizeMultiplier)*w.fontMetrics().axisHeight;A.classes.push("delimcenter"),A.style.top=be+"em",A.height-=be,A.depth+=be},Ys=function(A,w,E,z,be,ze){var pt=Ht.makeSymbol(A,"Main-Regular",be,z),It=Ii(pt,w,z,ze);return E&&kl(It,z,w),It},il=function(A,w,E,z){return Ht.makeSymbol(A,"Size"+w+"-Regular",E,z)},ko=function(A,w,E,z,be,ze){var pt=il(A,w,be,z),It=Ii(Ht.makeSpan(["delimsizing","size"+w],[pt],z),_.TEXT,z,ze);return E&&kl(It,z,_.TEXT),It},Ao=function(A,w,E){var z;w==="Size1-Regular"?z="delim-size1":z="delim-size4";var be=Ht.makeSpan(["delimsizinginner",z],[Ht.makeSpan([],[Ht.makeSymbol(A,w,E)])]);return{type:"elem",elem:be}},Ba={type:"kern",size:-.005},vl=function(A,w,E,z,be,ze){var pt,It,$t,fr;pt=$t=fr=A,It=null;var Dr="Size1-Regular";A==="\\uparrow"?$t=fr="\u23D0":A==="\\Uparrow"?$t=fr="\u2016":A==="\\downarrow"?pt=$t="\u23D0":A==="\\Downarrow"?pt=$t="\u2016":A==="\\updownarrow"?(pt="\\uparrow",$t="\u23D0",fr="\\downarrow"):A==="\\Updownarrow"?(pt="\\Uparrow",$t="\u2016",fr="\\Downarrow"):A==="["||A==="\\lbrack"?(pt="\u23A1",$t="\u23A2",fr="\u23A3",Dr="Size4-Regular"):A==="]"||A==="\\rbrack"?(pt="\u23A4",$t="\u23A5",fr="\u23A6",Dr="Size4-Regular"):A==="\\lfloor"||A==="\u230A"?($t=pt="\u23A2",fr="\u23A3",Dr="Size4-Regular"):A==="\\lceil"||A==="\u2308"?(pt="\u23A1",$t=fr="\u23A2",Dr="Size4-Regular"):A==="\\rfloor"||A==="\u230B"?($t=pt="\u23A5",fr="\u23A6",Dr="Size4-Regular"):A==="\\rceil"||A==="\u2309"?(pt="\u23A4",$t=fr="\u23A5",Dr="Size4-Regular"):A==="("||A==="\\lparen"?(pt="\u239B",$t="\u239C",fr="\u239D",Dr="Size4-Regular"):A===")"||A==="\\rparen"?(pt="\u239E",$t="\u239F",fr="\u23A0",Dr="Size4-Regular"):A==="\\{"||A==="\\lbrace"?(pt="\u23A7",It="\u23A8",fr="\u23A9",$t="\u23AA",Dr="Size4-Regular"):A==="\\}"||A==="\\rbrace"?(pt="\u23AB",It="\u23AC",fr="\u23AD",$t="\u23AA",Dr="Size4-Regular"):A==="\\lgroup"||A==="\u27EE"?(pt="\u23A7",fr="\u23A9",$t="\u23AA",Dr="Size4-Regular"):A==="\\rgroup"||A==="\u27EF"?(pt="\u23AB",fr="\u23AD",$t="\u23AA",Dr="Size4-Regular"):A==="\\lmoustache"||A==="\u23B0"?(pt="\u23A7",fr="\u23AD",$t="\u23AA",Dr="Size4-Regular"):(A==="\\rmoustache"||A==="\u23B1")&&(pt="\u23AB",fr="\u23A9",$t="\u23AA",Dr="Size4-Regular");var Hr=Ns(pt,Dr,be),Hn=Hr.height+Hr.depth,Ur=Ns($t,Dr,be),xn=Ur.height+Ur.depth,Nn=Ns(fr,Dr,be),kn=Nn.height+Nn.depth,Jn=0,Rn=1;if(It!==null){var Oi=Ns(It,Dr,be);Jn=Oi.height+Oi.depth,Rn=2}var Gi=Hn+kn+Jn,Ji=Math.max(0,Math.ceil((w-Gi)/(Rn*xn))),Ia=Gi+Ji*Rn*xn,Di=z.fontMetrics().axisHeight;E&&(Di*=z.sizeMultiplier);var ss=Ia/2-Di,La=(Ji+1)*.005-xn,va=[];if(va.push(Ao(fr,Dr,be)),It===null)for(var qn=0;qn<Ji;qn++)va.push(Ba),va.push(Ao($t,Dr,be));else{for(var Qa=0;Qa<Ji;Qa++)va.push(Ba),va.push(Ao($t,Dr,be));va.push({type:"kern",size:La}),va.push(Ao($t,Dr,be)),va.push(Ba),va.push(Ao(It,Dr,be));for(var Fs=0;Fs<Ji;Fs++)va.push(Ba),va.push(Ao($t,Dr,be))}va.push({type:"kern",size:La}),va.push(Ao($t,Dr,be)),va.push(Ba),va.push(Ao(pt,Dr,be));var fa=z.havingBaseStyle(_.TEXT),Aa=Ht.makeVList({positionType:"bottom",positionData:ss,children:va},fa);return Ii(Ht.makeSpan(["delimsizing","mult"],[Aa],fa),_.TEXT,z,ze)},yl=80,fo=.08,go=function(A,w,E,z,be){var ze=xr(A,z,E),pt=new Se(A,ze),It=new te([pt],{width:"400em",height:w+"em",viewBox:"0 0 400000 "+E,preserveAspectRatio:"xMinYMin slice"});return Ht.makeSvgSpan(["hide-tail"],[It],be)},Na=function(A,w){var E=w.havingBaseSizing(),z=Io("\\surd",A*E.sizeMultiplier,ao,E),be=E.sizeMultiplier,ze=Math.max(0,w.minRuleThickness-w.fontMetrics().sqrtRuleThickness),pt,It=0,$t=0,fr=0,Dr;return z.type==="small"?(fr=1e3+1e3*ze+yl,A<1?be=1:A<1.4&&(be=.7),It=(1+ze+fo)/be,$t=(1+ze)/be,pt=go("sqrtMain",It,fr,ze,w),pt.style.minWidth="0.853em",Dr=.833/be):z.type==="large"?(fr=(1e3+yl)*rs[z.size],$t=(rs[z.size]+ze)/be,It=(rs[z.size]+ze+fo)/be,pt=go("sqrtSize"+z.size,It,fr,ze,w),pt.style.minWidth="1.02em",Dr=1/be):(It=A+ze+fo,$t=A+ze,fr=Math.floor(1e3*A+ze)+yl,pt=go("sqrtTall",It,fr,ze,w),pt.style.minWidth="0.742em",Dr=1.056),pt.height=$t,pt.style.height=It+"em",{span:pt,advanceWidth:Dr,ruleWidth:(w.fontMetrics().sqrtRuleThickness+ze)*be}},pa=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],eo=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Ya=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],rs=[0,1.2,1.8,2.4,3],Hs=function(A,w,E,z,be){if(A==="<"||A==="\\lt"||A==="\u27E8"?A="\\langle":(A===">"||A==="\\gt"||A==="\u27E9")&&(A="\\rangle"),F.contains(pa,A)||F.contains(Ya,A))return ko(A,w,!1,E,z,be);if(F.contains(eo,A))return vl(A,rs[w],!1,E,z,be);throw new Y("Illegal delimiter: '"+A+"'")},ba=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zs=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"stack"}],ao=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Oo=function(A){if(A.type==="small")return"Main-Regular";if(A.type==="large")return"Size"+A.size+"-Regular";if(A.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+A.type+"' here.")},Io=function(A,w,E,z){for(var be=Math.min(2,3-z.style.size),ze=be;ze<E.length&&E[ze].type!=="stack";ze++){var pt=Ns(A,Oo(E[ze]),"math"),It=pt.height+pt.depth;if(E[ze].type==="small"){var $t=z.havingBaseStyle(E[ze].style);It*=$t.sizeMultiplier}if(It>w)return E[ze]}return E[E.length-1]},Xa=function(A,w,E,z,be,ze){A==="<"||A==="\\lt"||A==="\u27E8"?A="\\langle":(A===">"||A==="\\gt"||A==="\u27E9")&&(A="\\rangle");var pt;F.contains(Ya,A)?pt=ba:F.contains(pa,A)?pt=ao:pt=Zs;var It=Io(A,w,pt,z);return It.type==="small"?Ys(A,It.style,E,z,be,ze):It.type==="large"?ko(A,It.size,E,z,be,ze):vl(A,w,E,z,be,ze)},bl=function(A,w,E,z,be,ze){var pt=z.fontMetrics().axisHeight*z.sizeMultiplier,It=901,$t=5/z.fontMetrics().ptPerEm,fr=Math.max(w-pt,E+pt),Dr=Math.max(fr/500*It,2*fr-$t);return Xa(A,Dr,!0,z,be,ze)},so={sqrtImage:Na,sizedDelim:Hs,customSizedDelim:Xa,leftRightDelim:bl},vo={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},tu=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function wl(je,A){var w=Ea(je);if(w&&F.contains(tu,w.text))return w;throw new Y("Invalid delimiter: '"+(w?w.text:JSON.stringify(je))+"' after '"+A.funcName+"'",je)}oi({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(A,w){var E=wl(w[0],A);return{type:"delimsizing",mode:A.parser.mode,size:vo[A.funcName].size,mclass:vo[A.funcName].mclass,delim:E.text}},htmlBuilder:function(A,w){return A.delim==="."?Ht.makeSpan([A.mclass]):so.sizedDelim(A.delim,A.size,w,A.mode,[A.mclass])},mathmlBuilder:function(A){var w=[];A.delim!=="."&&w.push(Da(A.delim,A.mode));var E=new Yn.MathNode("mo",w);return A.mclass==="mopen"||A.mclass==="mclose"?E.setAttribute("fence","true"):E.setAttribute("fence","false"),E}});function cl(je){if(!je.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}oi({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(A,w){var E=A.parser.gullet.macros.get("\\current@color");if(E&&typeof E!="string")throw new Y("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:A.parser.mode,delim:wl(w[0],A).text,color:E}}}),oi({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(A,w){var E=wl(w[0],A),z=A.parser;++z.leftrightDepth;var be=z.parseExpression(!1);--z.leftrightDepth,z.expect("\\right",!1);var ze=Fn(z.parseFunction(),"leftright-right");return{type:"leftright",mode:z.mode,body:be,left:E.text,right:ze.delim,rightColor:ze.color}},htmlBuilder:function(A,w){cl(A);for(var E=oa(A.body,w,!0,["mopen","mclose"]),z=0,be=0,ze=!1,pt=0;pt<E.length;pt++)E[pt].isMiddle?ze=!0:(z=Math.max(E[pt].height,z),be=Math.max(E[pt].depth,be));z*=w.sizeMultiplier,be*=w.sizeMultiplier;var It;if(A.left==="."?It=hs(w,["mopen"]):It=so.leftRightDelim(A.left,z,be,w,A.mode,["mopen"]),E.unshift(It),ze)for(var $t=1;$t<E.length;$t++){var fr=E[$t],Dr=fr.isMiddle;Dr&&(E[$t]=so.leftRightDelim(Dr.delim,z,be,Dr.options,A.mode,[]))}var Hr;if(A.right===".")Hr=hs(w,["mclose"]);else{var Hn=A.rightColor?w.withColor(A.rightColor):w;Hr=so.leftRightDelim(A.right,z,be,Hn,A.mode,["mclose"])}return E.push(Hr),Ht.makeSpan(["minner"],E,w)},mathmlBuilder:function(A,w){cl(A);var E=ea(A.body,w);if(A.left!=="."){var z=new Yn.MathNode("mo",[Da(A.left,A.mode)]);z.setAttribute("fence","true"),E.unshift(z)}if(A.right!=="."){var be=new Yn.MathNode("mo",[Da(A.right,A.mode)]);be.setAttribute("fence","true"),A.rightColor&&be.setAttribute("mathcolor",A.rightColor),E.push(be)}return io(E)}}),oi({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(A,w){var E=wl(w[0],A);if(!A.parser.leftrightDepth)throw new Y("\\middle without preceding \\left",E);return{type:"middle",mode:A.parser.mode,delim:E.text}},htmlBuilder:function(A,w){var E;if(A.delim===".")E=hs(w,[]);else{E=so.sizedDelim(A.delim,1,w,A.mode,[]);var z={delim:A.delim,options:w};E.isMiddle=z}return E},mathmlBuilder:function(A,w){var E=A.delim==="\\vert"||A.delim==="|"?Da("|","text"):Da(A.delim,A.mode),z=new Yn.MathNode("mo",[E]);return z.setAttribute("fence","true"),z.setAttribute("lspace","0.05em"),z.setAttribute("rspace","0.05em"),z}});var Ml=function(A,w){var E=Ht.wrapFragment(aa(A.body,w),w),z=A.label.substr(1),be=w.sizeMultiplier,ze,pt=0,It=F.isCharacterBox(A.body);if(z==="sout")ze=Ht.makeSpan(["stretchy","sout"]),ze.height=w.fontMetrics().defaultRuleThickness/be,pt=-.5*w.fontMetrics().xHeight;else{/cancel/.test(z)?It||E.classes.push("cancel-pad"):E.classes.push("boxpad");var $t=0,fr=0;/box/.test(z)?(fr=Math.max(w.fontMetrics().fboxrule,w.minRuleThickness),$t=w.fontMetrics().fboxsep+(z==="colorbox"?0:fr)):$t=It?.2:0,ze=pi.encloseSpan(E,z,$t,w),/fbox|boxed|fcolorbox/.test(z)&&(ze.style.borderStyle="solid",ze.style.borderWidth=fr+"em"),pt=E.depth+$t,A.backgroundColor&&(ze.style.backgroundColor=A.backgroundColor,A.borderColor&&(ze.style.borderColor=A.borderColor))}var Dr;return A.backgroundColor?Dr=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ze,shift:pt},{type:"elem",elem:E,shift:0}]},w):Dr=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:E,shift:0},{type:"elem",elem:ze,shift:pt,wrapperClasses:/cancel/.test(z)?["svg-align"]:[]}]},w),/cancel/.test(z)&&(Dr.height=E.height,Dr.depth=E.depth),/cancel/.test(z)&&!It?Ht.makeSpan(["mord","cancel-lap"],[Dr],w):Ht.makeSpan(["mord"],[Dr],w)},xl=function(A,w){var E=0,z=new Yn.MathNode(A.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ki(A.body,w)]);switch(A.label){case"\\cancel":z.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":z.setAttribute("notation","downdiagonalstrike");break;case"\\sout":z.setAttribute("notation","horizontalstrike");break;case"\\fbox":z.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(E=w.fontMetrics().fboxsep*w.fontMetrics().ptPerEm,z.setAttribute("width","+"+2*E+"pt"),z.setAttribute("height","+"+2*E+"pt"),z.setAttribute("lspace",E+"pt"),z.setAttribute("voffset",E+"pt"),A.label==="\\fcolorbox"){var be=Math.max(w.fontMetrics().fboxrule,w.minRuleThickness);z.setAttribute("style","border: "+be+"em solid "+String(A.borderColor))}break;case"\\xcancel":z.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return A.backgroundColor&&z.setAttribute("mathbackground",A.backgroundColor),z};oi({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(A,w,E){var z=A.parser,be=A.funcName,ze=Fn(w[0],"color-token").color,pt=w[1];return{type:"enclose",mode:z.mode,label:be,backgroundColor:ze,body:pt}},htmlBuilder:Ml,mathmlBuilder:xl}),oi({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(A,w,E){var z=A.parser,be=A.funcName,ze=Fn(w[0],"color-token").color,pt=Fn(w[1],"color-token").color,It=w[2];return{type:"enclose",mode:z.mode,label:be,backgroundColor:pt,borderColor:ze,body:It}},htmlBuilder:Ml,mathmlBuilder:xl}),oi({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(A,w){var E=A.parser;return{type:"enclose",mode:E.mode,label:"\\fbox",body:w[0]}}}),oi({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(A,w,E){var z=A.parser,be=A.funcName,ze=w[0];return{type:"enclose",mode:z.mode,label:be,body:ze}},htmlBuilder:Ml,mathmlBuilder:xl});var Mo={};function Ks(je){for(var A=je.type,w=je.names,E=je.props,z=je.handler,be=je.htmlBuilder,ze=je.mathmlBuilder,pt={type:A,numArgs:E.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:z},It=0;It<w.length;++It)Mo[w[It]]=pt;be&&(Ca[A]=be),ze&&(ys[A]=ze)}function To(je){var A=[];je.consumeSpaces();for(var w=je.fetch().text;w==="\\hline"||w==="\\hdashline";)je.consume(),A.push(w==="\\hdashline"),je.consumeSpaces(),w=je.fetch().text;return A}function Va(je,A,w){var E=A.hskipBeforeAndAfter,z=A.addJot,be=A.cols,ze=A.arraystretch,pt=A.colSeparationType;if(je.gullet.beginGroup(),je.gullet.macros.set("\\\\","\\cr"),!ze){var It=je.gullet.expandMacroAsText("\\arraystretch");if(It==null)ze=1;else if(ze=parseFloat(It),!ze||ze<0)throw new Y("Invalid \\arraystretch: "+It)}je.gullet.beginGroup();var $t=[],fr=[$t],Dr=[],Hr=[];for(Hr.push(To(je));;){var Hn=je.parseExpression(!1,"\\cr");je.gullet.endGroup(),je.gullet.beginGroup(),Hn={type:"ordgroup",mode:je.mode,body:Hn},w&&(Hn={type:"styling",mode:je.mode,style:w,body:[Hn]}),$t.push(Hn);var Ur=je.fetch().text;if(Ur==="&")je.consume();else if(Ur==="\\end"){$t.length===1&&Hn.type==="styling"&&Hn.body[0].body.length===0&&fr.pop(),Hr.length<fr.length+1&&Hr.push([]);break}else if(Ur==="\\cr"){var xn=Fn(je.parseFunction(),"cr");Dr.push(xn.size),Hr.push(To(je)),$t=[],fr.push($t)}else throw new Y("Expected & or \\\\ or \\cr or \\end",je.nextToken)}return je.gullet.endGroup(),je.gullet.endGroup(),{type:"array",mode:je.mode,addJot:z,arraystretch:ze,body:fr,cols:be,rowGaps:Dr,hskipBeforeAndAfter:E,hLinesBeforeRow:Hr,colSeparationType:pt}}function ms(je){return je.substr(0,1)==="d"?"display":"text"}var Ja=function(A,w){var E,z,be=A.body.length,ze=A.hLinesBeforeRow,pt=0,It=new Array(be),$t=[],fr=Math.max(w.fontMetrics().arrayRuleWidth,w.minRuleThickness),Dr=1/w.fontMetrics().ptPerEm,Hr=5*Dr;if(A.colSeparationType&&A.colSeparationType==="small"){var Hn=w.havingStyle(_.SCRIPT).sizeMultiplier;Hr=.2778*(Hn/w.sizeMultiplier)}var Ur=12*Dr,xn=3*Dr,Nn=A.arraystretch*Ur,kn=.7*Nn,Jn=.3*Nn,Rn=0;function Oi(Ds){for(var ls=0;ls<Ds.length;++ls)ls>0&&(Rn+=.25),$t.push({pos:Rn,isDashed:Ds[ls]})}for(Oi(ze[0]),E=0;E<A.body.length;++E){var Gi=A.body[E],Ji=kn,Ia=Jn;pt<Gi.length&&(pt=Gi.length);var Di=new Array(Gi.length);for(z=0;z<Gi.length;++z){var ss=aa(Gi[z],w);Ia<ss.depth&&(Ia=ss.depth),Ji<ss.height&&(Ji=ss.height),Di[z]=ss}var La=A.rowGaps[E],va=0;La&&(va=vr(La,w),va>0&&(va+=Jn,Ia<va&&(Ia=va),va=0)),A.addJot&&(Ia+=xn),Di.height=Ji,Di.depth=Ia,Rn+=Ji,Di.pos=Rn,Rn+=Ia+va,It[E]=Di,Oi(ze[E+1])}var qn=Rn/2+w.fontMetrics().axisHeight,Qa=A.cols||[],Fs=[],fa,Aa;for(z=0,Aa=0;z<pt||Aa<Qa.length;++z,++Aa){for(var ma=Qa[Aa]||{},ja=!0;ma.type==="separator";){if(ja||(fa=Ht.makeSpan(["arraycolsep"],[]),fa.style.width=w.fontMetrics().doubleRuleSep+"em",Fs.push(fa)),ma.separator==="|"||ma.separator===":"){var os=ma.separator==="|"?"solid":"dashed",ca=Ht.makeSpan(["vertical-separator"],[],w);ca.style.height=Rn+"em",ca.style.borderRightWidth=fr+"em",ca.style.borderRightStyle=os,ca.style.margin="0 -"+fr/2+"em",ca.style.verticalAlign=-(Rn-qn)+"em",Fs.push(ca)}else throw new Y("Invalid separator type: "+ma.separator);Aa++,ma=Qa[Aa]||{},ja=!1}if(!(z>=pt)){var xs=void 0;(z>0||A.hskipBeforeAndAfter)&&(xs=F.deflt(ma.pregap,Hr),xs!==0&&(fa=Ht.makeSpan(["arraycolsep"],[]),fa.style.width=xs+"em",Fs.push(fa)));var _s=[];for(E=0;E<be;++E){var Js=It[E],Ws=Js[z];if(Ws){var Vs=Js.pos-qn;Ws.depth=Js.depth,Ws.height=Js.height,_s.push({type:"elem",elem:Ws,shift:Vs})}}_s=Ht.makeVList({positionType:"individualShift",children:_s},w),_s=Ht.makeSpan(["col-align-"+(ma.align||"c")],[_s]),Fs.push(_s),(z<pt-1||A.hskipBeforeAndAfter)&&(xs=F.deflt(ma.postgap,Hr),xs!==0&&(fa=Ht.makeSpan(["arraycolsep"],[]),fa.style.width=xs+"em",Fs.push(fa)))}}if(It=Ht.makeSpan(["mtable"],Fs),$t.length>0){for(var Vo=Ht.makeLineSpan("hline",w,fr),$o=Ht.makeLineSpan("hdashline",w,fr),Co=[{type:"elem",elem:It,shift:0}];$t.length>0;){var ho=$t.pop(),to=ho.pos-qn;ho.isDashed?Co.push({type:"elem",elem:$o,shift:to}):Co.push({type:"elem",elem:Vo,shift:to})}It=Ht.makeVList({positionType:"individualShift",children:Co},w)}return Ht.makeSpan(["mord"],[It],w)},ws={c:"center ",l:"left ",r:"right "},Xs=function(A,w){var E=new Yn.MathNode("mtable",A.body.map(function(Rn){return new Yn.MathNode("mtr",Rn.map(function(Oi){return new Yn.MathNode("mtd",[ki(Oi,w)])}))})),z=A.arraystretch===.5?.1:.16+A.arraystretch-1+(A.addJot?.09:0);E.setAttribute("rowspacing",z+"em");var be="",ze="";if(A.cols){var pt=A.cols,It="",$t=!1,fr=0,Dr=pt.length;pt[0].type==="separator"&&(be+="top ",fr=1),pt[pt.length-1].type==="separator"&&(be+="bottom ",Dr-=1);for(var Hr=fr;Hr<Dr;Hr++)pt[Hr].type==="align"?(ze+=ws[pt[Hr].align],$t&&(It+="none "),$t=!0):pt[Hr].type==="separator"&&$t&&(It+=pt[Hr].separator==="|"?"solid ":"dashed ",$t=!1);E.setAttribute("columnalign",ze.trim()),/[sd]/.test(It)&&E.setAttribute("columnlines",It.trim())}if(A.colSeparationType==="align"){for(var Hn=A.cols||[],Ur="",xn=1;xn<Hn.length;xn++)Ur+=xn%2?"0em ":"1em ";E.setAttribute("columnspacing",Ur.trim())}else A.colSeparationType==="alignat"?E.setAttribute("columnspacing","0em"):A.colSeparationType==="small"?E.setAttribute("columnspacing","0.2778em"):E.setAttribute("columnspacing","1em");var Nn="",kn=A.hLinesBeforeRow;be+=kn[0].length>0?"left ":"",be+=kn[kn.length-1].length>0?"right ":"";for(var Jn=1;Jn<kn.length-1;Jn++)Nn+=kn[Jn].length===0?"none ":kn[Jn][0]?"dashed ":"solid ";return/[sd]/.test(Nn)&&E.setAttribute("rowlines",Nn.trim()),be!==""&&(E=new Yn.MathNode("menclose",[E]),E.setAttribute("notation",be.trim())),A.arraystretch&&A.arraystretch<1&&(E=new Yn.MathNode("mstyle",[E]),E.setAttribute("scriptlevel","1")),E},El=function(A,w){var E=[],z=Va(A.parser,{cols:E,addJot:!0},"display"),be,ze=0,pt={type:"ordgroup",mode:A.mode,body:[]},It=Zn(w[0],"ordgroup");if(It){for(var $t="",fr=0;fr<It.body.length;fr++){var Dr=Fn(It.body[fr],"textord");$t+=Dr.text}be=Number($t),ze=be*2}var Hr=!ze;z.body.forEach(function(Nn){for(var kn=1;kn<Nn.length;kn+=2){var Jn=Fn(Nn[kn],"styling"),Rn=Fn(Jn.body[0],"ordgroup");Rn.body.unshift(pt)}if(Hr)ze<Nn.length&&(ze=Nn.length);else{var Oi=Nn.length/2;if(be<Oi)throw new Y("Too many math in a row: "+("expected "+be+", but got "+Oi),Nn[0])}});for(var Hn=0;Hn<ze;++Hn){var Ur="r",xn=0;Hn%2===1?Ur="l":Hn>0&&Hr&&(xn=1),E[Hn]={type:"align",align:Ur,pregap:xn,postgap:0}}return z.colSeparationType=Hr?"align":"alignat",z};Ks({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(A,w){var E=Ea(w[0]),z=E?[w[0]]:Fn(w[0],"ordgroup").body,be=z.map(function(pt){var It=da(pt),$t=It.text;if("lcr".indexOf($t)!==-1)return{type:"align",align:$t};if($t==="|")return{type:"separator",separator:"|"};if($t===":")return{type:"separator",separator:":"};throw new Y("Unknown column alignment: "+$t,pt)}),ze={cols:be,hskipBeforeAndAfter:!0};return Va(A.parser,ze,ms(A.envName))},htmlBuilder:Ja,mathmlBuilder:Xs}),Ks({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(A){var w={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[A.envName],E={hskipBeforeAndAfter:!1},z=Va(A.parser,E,ms(A.envName));return w?{type:"leftright",mode:A.mode,body:[z],left:w[0],right:w[1],rightColor:void 0}:z},htmlBuilder:Ja,mathmlBuilder:Xs}),Ks({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(A){var w={arraystretch:.5},E=Va(A.parser,w,"script");return E.colSeparationType="small",E},htmlBuilder:Ja,mathmlBuilder:Xs}),Ks({type:"array",names:["subarray"],props:{numArgs:1},handler:function(A,w){var E=Ea(w[0]),z=E?[w[0]]:Fn(w[0],"ordgroup").body,be=z.map(function(pt){var It=da(pt),$t=It.text;if("lc".indexOf($t)!==-1)return{type:"align",align:$t};throw new Y("Unknown column alignment: "+$t,pt)});if(be.length>1)throw new Y("{subarray} can contain only one column");var ze={cols:be,hskipBeforeAndAfter:!1,arraystretch:.5};if(ze=Va(A.parser,ze,"script"),ze.body[0].length>1)throw new Y("{subarray} can contain only one column");return ze},htmlBuilder:Ja,mathmlBuilder:Xs}),Ks({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(A){var w={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},E=Va(A.parser,w,ms(A.envName));return{type:"leftright",mode:A.mode,body:[E],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Ja,mathmlBuilder:Xs}),Ks({type:"array",names:["aligned"],props:{numArgs:0},handler:El,htmlBuilder:Ja,mathmlBuilder:Xs}),Ks({type:"array",names:["gathered"],props:{numArgs:0},handler:function(A){var w={cols:[{type:"align",align:"c"}],addJot:!0};return Va(A.parser,w,"display")},htmlBuilder:Ja,mathmlBuilder:Xs}),Ks({type:"array",names:["alignedat"],props:{numArgs:1},handler:El,htmlBuilder:Ja,mathmlBuilder:Xs}),oi({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(A,w){throw new Y(A.funcName+" valid only within array environment")}});var al=Mo,Ul=al;oi({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0];if(be.type!=="ordgroup")throw new Y("Invalid environment name",be);for(var ze="",pt=0;pt<be.body.length;++pt)ze+=Fn(be.body[pt],"textord").text;if(z==="\\begin"){if(!Ul.hasOwnProperty(ze))throw new Y("No such environment: "+ze,be);var It=Ul[ze],$t=E.parseArguments("\\begin{"+ze+"}",It),fr=$t.args,Dr=$t.optArgs,Hr={mode:E.mode,envName:ze,parser:E},Hn=It.handler(Hr,fr,Dr);E.expect("\\end",!1);var Ur=E.nextToken,xn=Fn(E.parseFunction(),"environment");if(xn.name!==ze)throw new Y("Mismatch: \\begin{"+ze+"} matched by \\end{"+xn.name+"}",Ur);return Hn}return{type:"environment",mode:E.mode,name:ze,nameGroup:be}}});var Au=Ht.makeSpan;function Ql(je,A){var w=oa(je.body,A,!0);return Au([je.mclass],w,A)}function jl(je,A){var w,E=ea(je.body,A);return je.mclass==="minner"?Yn.newDocumentFragment(E):(je.mclass==="mord"?je.isCharacterBox?(w=E[0],w.type="mi"):w=new Yn.MathNode("mi",E):(je.isCharacterBox?(w=E[0],w.type="mo"):w=new Yn.MathNode("mo",E),je.mclass==="mbin"?(w.attributes.lspace="0.22em",w.attributes.rspace="0.22em"):je.mclass==="mpunct"?(w.attributes.lspace="0em",w.attributes.rspace="0.17em"):(je.mclass==="mopen"||je.mclass==="mclose")&&(w.attributes.lspace="0em",w.attributes.rspace="0em")),w)}oi({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0];return{type:"mclass",mode:E.mode,mclass:"m"+z.substr(5),body:ga(be),isCharacterBox:F.isCharacterBox(be)}},htmlBuilder:Ql,mathmlBuilder:jl});var ci=function(A){var w=A.type==="ordgroup"&&A.body.length?A.body[0]:A;return w.type==="atom"&&(w.family==="bin"||w.family==="rel")?"m"+w.family:"mord"};oi({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(A,w){var E=A.parser;return{type:"mclass",mode:E.mode,mclass:ci(w[0]),body:[w[1]],isCharacterBox:F.isCharacterBox(w[1])}}}),oi({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[1],ze=w[0],pt;z!=="\\stackrel"?pt=ci(be):pt="mrel";var It={type:"op",mode:be.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:z!=="\\stackrel",body:ga(be)},$t={type:"supsub",mode:ze.mode,base:It,sup:z==="\\underset"?null:ze,sub:z==="\\underset"?ze:null};return{type:"mclass",mode:E.mode,mclass:pt,body:[$t],isCharacterBox:F.isCharacterBox($t)}},htmlBuilder:Ql,mathmlBuilder:jl});var du=function(A,w){var E=A.font,z=w.withFont(E);return aa(A.body,z)},ru=function(A,w){var E=A.font,z=w.withFont(E);return ki(A.body,z)},rc={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};oi({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0],ze=z;return ze in rc&&(ze=rc[ze]),{type:"font",mode:E.mode,font:ze.slice(1),body:be}},htmlBuilder:du,mathmlBuilder:ru}),oi({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(A,w){var E=A.parser,z=w[0],be=F.isCharacterBox(z);return{type:"mclass",mode:E.mode,mclass:ci(z),body:[{type:"font",mode:E.mode,font:"boldsymbol",body:z}],isCharacterBox:be}}}),oi({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(A,w){var E=A.parser,z=A.funcName,be=A.breakOnTokenText,ze=E.mode,pt=E.parseExpression(!0,be),It="math"+z.slice(1);return{type:"font",mode:ze,font:It,body:{type:"ordgroup",mode:E.mode,body:pt}}},htmlBuilder:du,mathmlBuilder:ru});var nc=function(A,w){var E=w;return A==="display"?E=E.id>=_.SCRIPT.id?E.text():_.DISPLAY:A==="text"&&E.size===_.DISPLAY.size?E=_.TEXT:A==="script"?E=_.SCRIPT:A==="scriptscript"&&(E=_.SCRIPTSCRIPT),E},fu=function(A,w){var E=nc(A.size,w.style),z=E.fracNum(),be=E.fracDen(),ze;ze=w.havingStyle(z);var pt=aa(A.numer,ze,w);if(A.continued){var It=8.5/w.fontMetrics().ptPerEm,$t=3.5/w.fontMetrics().ptPerEm;pt.height=pt.height<It?It:pt.height,pt.depth=pt.depth<$t?$t:pt.depth}ze=w.havingStyle(be);var fr=aa(A.denom,ze,w),Dr,Hr,Hn;A.hasBarLine?(A.barSize?(Hr=vr(A.barSize,w),Dr=Ht.makeLineSpan("frac-line",w,Hr)):Dr=Ht.makeLineSpan("frac-line",w),Hr=Dr.height,Hn=Dr.height):(Dr=null,Hr=0,Hn=w.fontMetrics().defaultRuleThickness);var Ur,xn,Nn;E.size===_.DISPLAY.size||A.size==="display"?(Ur=w.fontMetrics().num1,Hr>0?xn=3*Hn:xn=7*Hn,Nn=w.fontMetrics().denom1):(Hr>0?(Ur=w.fontMetrics().num2,xn=Hn):(Ur=w.fontMetrics().num3,xn=3*Hn),Nn=w.fontMetrics().denom2);var kn;if(Dr){var Rn=w.fontMetrics().axisHeight;Ur-pt.depth-(Rn+.5*Hr)<xn&&(Ur+=xn-(Ur-pt.depth-(Rn+.5*Hr))),Rn-.5*Hr-(fr.height-Nn)<xn&&(Nn+=xn-(Rn-.5*Hr-(fr.height-Nn)));var Oi=-(Rn-.5*Hr);kn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:fr,shift:Nn},{type:"elem",elem:Dr,shift:Oi},{type:"elem",elem:pt,shift:-Ur}]},w)}else{var Jn=Ur-pt.depth-(fr.height-Nn);Jn<xn&&(Ur+=.5*(xn-Jn),Nn+=.5*(xn-Jn)),kn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:fr,shift:Nn},{type:"elem",elem:pt,shift:-Ur}]},w)}ze=w.havingStyle(E),kn.height*=ze.sizeMultiplier/w.sizeMultiplier,kn.depth*=ze.sizeMultiplier/w.sizeMultiplier;var Gi;E.size===_.DISPLAY.size?Gi=w.fontMetrics().delim1:Gi=w.fontMetrics().delim2;var Ji,Ia;return A.leftDelim==null?Ji=hs(w,["mopen"]):Ji=so.customSizedDelim(A.leftDelim,Gi,!0,w.havingStyle(E),A.mode,["mopen"]),A.continued?Ia=Ht.makeSpan([]):A.rightDelim==null?Ia=hs(w,["mclose"]):Ia=so.customSizedDelim(A.rightDelim,Gi,!0,w.havingStyle(E),A.mode,["mclose"]),Ht.makeSpan(["mord"].concat(ze.sizingClasses(w)),[Ji,Ht.makeSpan(["mfrac"],[kn]),Ia],w)},ic=function(A,w){var E=new Yn.MathNode("mfrac",[ki(A.numer,w),ki(A.denom,w)]);if(!A.hasBarLine)E.setAttribute("linethickness","0px");else if(A.barSize){var z=vr(A.barSize,w);E.setAttribute("linethickness",z+"em")}var be=nc(A.size,w.style);if(be.size!==w.style.size){E=new Yn.MathNode("mstyle",[E]);var ze=be.size===_.DISPLAY.size?"true":"false";E.setAttribute("displaystyle",ze),E.setAttribute("scriptlevel","0")}if(A.leftDelim!=null||A.rightDelim!=null){var pt=[];if(A.leftDelim!=null){var It=new Yn.MathNode("mo",[new Yn.TextNode(A.leftDelim.replace("\\",""))]);It.setAttribute("fence","true"),pt.push(It)}if(pt.push(E),A.rightDelim!=null){var $t=new Yn.MathNode("mo",[new Yn.TextNode(A.rightDelim.replace("\\",""))]);$t.setAttribute("fence","true"),pt.push($t)}return io(pt)}return E};oi({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0],ze=w[1],pt,It=null,$t=null,fr="auto";switch(z){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":pt=!0;break;case"\\\\atopfrac":pt=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":pt=!1,It="(",$t=")";break;case"\\\\bracefrac":pt=!1,It="\\{",$t="\\}";break;case"\\\\brackfrac":pt=!1,It="[",$t="]";break;default:throw new Error("Unrecognized genfrac command")}switch(z){case"\\cfrac":case"\\dfrac":case"\\dbinom":fr="display";break;case"\\tfrac":case"\\tbinom":fr="text";break}return{type:"genfrac",mode:E.mode,continued:z==="\\cfrac",numer:be,denom:ze,hasBarLine:pt,leftDelim:It,rightDelim:$t,size:fr,barSize:null}},htmlBuilder:fu,mathmlBuilder:ic}),oi({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(A){var w=A.parser,E=A.funcName,z=A.token,be;switch(E){case"\\over":be="\\frac";break;case"\\choose":be="\\binom";break;case"\\atop":be="\\\\atopfrac";break;case"\\brace":be="\\\\bracefrac";break;case"\\brack":be="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:w.mode,replaceWith:be,token:z}}});var tl=["display","text","script","scriptscript"],ku=function(A){var w=null;return A.length>0&&(w=A,w=w==="."?null:w),w};oi({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(A,w){var E=A.parser,z=w[4],be=w[5],ze=Zn(w[0],"atom");ze&&(ze=Ei(w[0],"open"));var pt=ze?ku(ze.text):null,It=Zn(w[1],"atom");It&&(It=Ei(w[1],"close"));var $t=It?ku(It.text):null,fr=Fn(w[2],"size"),Dr,Hr=null;fr.isBlank?Dr=!0:(Hr=fr.value,Dr=Hr.number>0);var Hn="auto",Ur=Zn(w[3],"ordgroup");if(Ur){if(Ur.body.length>0){var xn=Fn(Ur.body[0],"textord");Hn=tl[Number(xn.text)]}}else Ur=Fn(w[3],"textord"),Hn=tl[Number(Ur.text)];return{type:"genfrac",mode:E.mode,numer:z,denom:be,continued:!1,hasBarLine:Dr,barSize:Hr,leftDelim:pt,rightDelim:$t,size:Hn}},htmlBuilder:fu,mathmlBuilder:ic}),oi({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(A,w){var E=A.parser,z=A.funcName,be=A.token;return{type:"infix",mode:E.mode,replaceWith:"\\\\abovefrac",size:Fn(w[0],"size").value,token:be}}}),oi({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0],ze=S(Fn(w[1],"infix").size),pt=w[2],It=ze.number>0;return{type:"genfrac",mode:E.mode,numer:be,denom:pt,continued:!1,hasBarLine:It,barSize:ze,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:fu,mathmlBuilder:ic});var b=function(A,w){var E=w.style,z,be,ze=Zn(A,"supsub");ze?(z=ze.sup?aa(ze.sup,w.havingStyle(E.sup()),w):aa(ze.sub,w.havingStyle(E.sub()),w),be=Fn(ze.base,"horizBrace")):be=Fn(A,"horizBrace");var pt=aa(be.base,w.havingBaseStyle(_.DISPLAY)),It=pi.svgSpan(be,w),$t;if(be.isOver?($t=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pt},{type:"kern",size:.1},{type:"elem",elem:It}]},w),$t.children[0].children[0].children[1].classes.push("svg-align")):($t=Ht.makeVList({positionType:"bottom",positionData:pt.depth+.1+It.height,children:[{type:"elem",elem:It},{type:"kern",size:.1},{type:"elem",elem:pt}]},w),$t.children[0].children[0].children[0].classes.push("svg-align")),z){var fr=Ht.makeSpan(["mord",be.isOver?"mover":"munder"],[$t],w);be.isOver?$t=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:fr},{type:"kern",size:.2},{type:"elem",elem:z}]},w):$t=Ht.makeVList({positionType:"bottom",positionData:fr.depth+.2+z.height+z.depth,children:[{type:"elem",elem:z},{type:"kern",size:.2},{type:"elem",elem:fr}]},w)}return Ht.makeSpan(["mord",be.isOver?"mover":"munder"],[$t],w)},c=function(A,w){var E=pi.mathMLnode(A.label);return new Yn.MathNode(A.isOver?"mover":"munder",[ki(A.base,w),E])};oi({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(A,w){var E=A.parser,z=A.funcName;return{type:"horizBrace",mode:E.mode,label:z,isOver:/^\\over/.test(z),base:w[0]}},htmlBuilder:b,mathmlBuilder:c}),oi({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(A,w){var E=A.parser,z=w[1],be=Fn(w[0],"url").url;return E.settings.isTrusted({command:"\\href",url:be})?{type:"href",mode:E.mode,href:be,body:ga(z)}:E.formatUnsupportedCmd("\\href")},htmlBuilder:function(A,w){var E=oa(A.body,w,!1);return Ht.makeAnchor(A.href,[],E,w)},mathmlBuilder:function(A,w){var E=Ki(A.body,w);return E instanceof As||(E=new As("mrow",[E])),E.setAttribute("href",A.href),E}}),oi({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(A,w){var E=A.parser,z=Fn(w[0],"url").url;if(!E.settings.isTrusted({command:"\\url",url:z}))return E.formatUnsupportedCmd("\\url");for(var be=[],ze=0;ze<z.length;ze++){var pt=z[ze];pt==="~"&&(pt="\\textasciitilde"),be.push({type:"textord",mode:"text",text:pt})}var It={type:"text",mode:E.mode,font:"\\texttt",body:be};return{type:"href",mode:E.mode,href:z,body:ga(It)}}}),oi({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(A,w){var E=A.parser;return{type:"htmlmathml",mode:E.mode,html:ga(w[0]),mathml:ga(w[1])}},htmlBuilder:function(A,w){var E=oa(A.html,w,!1);return Ht.makeFragment(E)},mathmlBuilder:function(A,w){return Ki(A.mathml,w)}});var v=function(A){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(A))return{number:+A,unit:"bp"};var w=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(A);if(!w)throw new Y("Invalid size: '"+A+"' in \\includegraphics");var E={number:+(w[1]+w[2]),unit:w[3]};if(!dr(E))throw new Y("Invalid unit: '"+E.unit+"' in \\includegraphics.");return E};oi({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(A,w,E){var z=A.parser,be={number:0,unit:"em"},ze={number:.9,unit:"em"},pt={number:0,unit:"em"},It="";if(E[0])for(var $t=Fn(E[0],"raw").string,fr=$t.split(","),Dr=0;Dr<fr.length;Dr++){var Hr=fr[Dr].split("=");if(Hr.length===2){var Hn=Hr[1].trim();switch(Hr[0].trim()){case"alt":It=Hn;break;case"width":be=v(Hn);break;case"height":ze=v(Hn);break;case"totalheight":pt=v(Hn);break;default:throw new Y("Invalid key: '"+Hr[0]+"' in \\includegraphics.")}}}var Ur=Fn(w[0],"url").url;return It===""&&(It=Ur,It=It.replace(/^.*[\\/]/,""),It=It.substring(0,It.lastIndexOf("."))),z.settings.isTrusted({command:"\\includegraphics",url:Ur})?{type:"includegraphics",mode:z.mode,alt:It,width:be,height:ze,totalheight:pt,src:Ur}:z.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(A,w){var E=vr(A.height,w),z=0;A.totalheight.number>0&&(z=vr(A.totalheight,w)-E,z=Number(z.toFixed(2)));var be=0;A.width.number>0&&(be=vr(A.width,w));var ze={height:E+z+"em"};be>0&&(ze.width=be+"em"),z>0&&(ze.verticalAlign=-z+"em");var pt=new Ae(A.src,A.alt,ze);return pt.height=E,pt.depth=z,pt},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mglyph",[]);E.setAttribute("alt",A.alt);var z=vr(A.height,w),be=0;if(A.totalheight.number>0&&(be=vr(A.totalheight,w)-z,be=be.toFixed(2),E.setAttribute("valign","-"+be+"em")),E.setAttribute("height",z+be+"em"),A.width.number>0){var ze=vr(A.width,w);E.setAttribute("width",ze+"em")}return E.setAttribute("src",A.src),E}}),oi({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(A,w){var E=A.parser,z=A.funcName,be=Fn(w[0],"size");if(E.settings.strict){var ze=z[1]==="m",pt=be.value.unit==="mu";ze?(pt||E.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+z+" supports only mu units, "+("not "+be.value.unit+" units")),E.mode!=="math"&&E.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+z+" works only in math mode")):pt&&E.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+z+" doesn't support mu units")}return{type:"kern",mode:E.mode,dimension:be.value}},htmlBuilder:function(A,w){return Ht.makeGlue(A.dimension,w)},mathmlBuilder:function(A,w){var E=vr(A.dimension,w);return new Yn.SpaceNode(E)}}),oi({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0];return{type:"lap",mode:E.mode,alignment:z.slice(5),body:be}},htmlBuilder:function(A,w){var E;A.alignment==="clap"?(E=Ht.makeSpan([],[aa(A.body,w)]),E=Ht.makeSpan(["inner"],[E],w)):E=Ht.makeSpan(["inner"],[aa(A.body,w)]);var z=Ht.makeSpan(["fix"],[]),be=Ht.makeSpan([A.alignment],[E,z],w),ze=Ht.makeSpan(["strut"]);return ze.style.height=be.height+be.depth+"em",ze.style.verticalAlign=-be.depth+"em",be.children.unshift(ze),be=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be}]},w),Ht.makeSpan(["mord"],[be],w)},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mpadded",[ki(A.body,w)]);if(A.alignment!=="rlap"){var z=A.alignment==="llap"?"-1":"-0.5";E.setAttribute("lspace",z+"width")}return E.setAttribute("width","0px"),E}}),oi({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(A,w){var E=A.funcName,z=A.parser,be=z.mode;z.switchMode("math");var ze=E==="\\("?"\\)":"$",pt=z.parseExpression(!1,ze);return z.expect(ze),z.switchMode(be),{type:"styling",mode:z.mode,style:"text",body:pt}}}),oi({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(A,w){throw new Y("Mismatched "+A.funcName)}});var U=function(A,w){switch(w.style.size){case _.DISPLAY.size:return A.display;case _.TEXT.size:return A.text;case _.SCRIPT.size:return A.script;case _.SCRIPTSCRIPT.size:return A.scriptscript;default:return A.text}};oi({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(A,w){var E=A.parser;return{type:"mathchoice",mode:E.mode,display:ga(w[0]),text:ga(w[1]),script:ga(w[2]),scriptscript:ga(w[3])}},htmlBuilder:function(A,w){var E=U(A,w),z=oa(E,w,!1);return Ht.makeFragment(z)},mathmlBuilder:function(A,w){var E=U(A,w);return Ki(E,w)}});var ne=function(A,w,E,z,be,ze,pt){A=Ht.makeSpan([],[A]);var It,$t;if(w){var fr=aa(w,z.havingStyle(be.sup()),z);$t={elem:fr,kern:Math.max(z.fontMetrics().bigOpSpacing1,z.fontMetrics().bigOpSpacing3-fr.depth)}}if(E){var Dr=aa(E,z.havingStyle(be.sub()),z);It={elem:Dr,kern:Math.max(z.fontMetrics().bigOpSpacing2,z.fontMetrics().bigOpSpacing4-Dr.height)}}var Hr;if($t&&It){var Hn=z.fontMetrics().bigOpSpacing5+It.elem.height+It.elem.depth+It.kern+A.depth+pt;Hr=Ht.makeVList({positionType:"bottom",positionData:Hn,children:[{type:"kern",size:z.fontMetrics().bigOpSpacing5},{type:"elem",elem:It.elem,marginLeft:-ze+"em"},{type:"kern",size:It.kern},{type:"elem",elem:A},{type:"kern",size:$t.kern},{type:"elem",elem:$t.elem,marginLeft:ze+"em"},{type:"kern",size:z.fontMetrics().bigOpSpacing5}]},z)}else if(It){var Ur=A.height-pt;Hr=Ht.makeVList({positionType:"top",positionData:Ur,children:[{type:"kern",size:z.fontMetrics().bigOpSpacing5},{type:"elem",elem:It.elem,marginLeft:-ze+"em"},{type:"kern",size:It.kern},{type:"elem",elem:A}]},z)}else if($t){var xn=A.depth+pt;Hr=Ht.makeVList({positionType:"bottom",positionData:xn,children:[{type:"elem",elem:A},{type:"kern",size:$t.kern},{type:"elem",elem:$t.elem,marginLeft:ze+"em"},{type:"kern",size:z.fontMetrics().bigOpSpacing5}]},z)}else return A;return Ht.makeSpan(["mop","op-limits"],[Hr],z)},W=["\\smallint"],ge=function(A,w){var E,z,be=!1,ze,pt=Zn(A,"supsub");pt?(E=pt.sup,z=pt.sub,ze=Fn(pt.base,"op"),be=!0):ze=Fn(A,"op");var It=w.style,$t=!1;It.size===_.DISPLAY.size&&ze.symbol&&!F.contains(W,ze.name)&&($t=!0);var fr;if(ze.symbol){var Dr=$t?"Size2-Regular":"Size1-Regular",Hr="";if((ze.name==="\\oiint"||ze.name==="\\oiiint")&&(Hr=ze.name.substr(1),ze.name=Hr==="oiint"?"\\iint":"\\iiint"),fr=Ht.makeSymbol(ze.name,Dr,"math",w,["mop","op-symbol",$t?"large-op":"small-op"]),Hr.length>0){var Hn=fr.italic,Ur=Ht.staticSvg(Hr+"Size"+($t?"2":"1"),w);fr=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:fr,shift:0},{type:"elem",elem:Ur,shift:$t?.08:0}]},w),ze.name="\\"+Hr,fr.classes.unshift("mop"),fr.italic=Hn}}else if(ze.body){var xn=oa(ze.body,w,!0);xn.length===1&&xn[0]instanceof k?(fr=xn[0],fr.classes[0]="mop"):fr=Ht.makeSpan(["mop"],Ht.tryCombineChars(xn),w)}else{for(var Nn=[],kn=1;kn<ze.name.length;kn++)Nn.push(Ht.mathsym(ze.name[kn],ze.mode,w));fr=Ht.makeSpan(["mop"],Nn,w)}var Jn=0,Rn=0;return(fr instanceof k||ze.name==="\\oiint"||ze.name==="\\oiiint")&&!ze.suppressBaseShift&&(Jn=(fr.height-fr.depth)/2-w.fontMetrics().axisHeight,Rn=fr.italic),be?ne(fr,E,z,w,It,Rn,Jn):(Jn&&(fr.style.position="relative",fr.style.top=Jn+"em"),fr)},De=function(A,w){var E;if(A.symbol)E=new As("mo",[Da(A.name,A.mode)]),F.contains(W,A.name)&&E.setAttribute("largeop","false");else if(A.body)E=new As("mo",ea(A.body,w));else{E=new As("mi",[new xo(A.name.slice(1))]);var z=new As("mo",[Da("\u2061","text")]);A.parentIsSupSub?E=new As("mo",[E,z]):E=wo([E,z])}return E},ke={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};oi({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(A,w){var E=A.parser,z=A.funcName,be=z;return be.length===1&&(be=ke[be]),{type:"op",mode:E.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:be}},htmlBuilder:ge,mathmlBuilder:De}),oi({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(A,w){var E=A.parser,z=w[0];return{type:"op",mode:E.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ga(z)}},htmlBuilder:ge,mathmlBuilder:De});var rt={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};oi({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(A){var w=A.parser,E=A.funcName;return{type:"op",mode:w.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:E}},htmlBuilder:ge,mathmlBuilder:De}),oi({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(A){var w=A.parser,E=A.funcName;return{type:"op",mode:w.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:E}},htmlBuilder:ge,mathmlBuilder:De}),oi({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(A){var w=A.parser,E=A.funcName,z=E;return z.length===1&&(z=rt[z]),{type:"op",mode:w.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:z}},htmlBuilder:ge,mathmlBuilder:De});var vt=function(A,w){var E,z,be=!1,ze,pt=Zn(A,"supsub");pt?(E=pt.sup,z=pt.sub,ze=Fn(pt.base,"operatorname"),be=!0):ze=Fn(A,"operatorname");var It;if(ze.body.length>0){for(var $t=ze.body.map(function(Hn){var Ur=Hn.text;return typeof Ur=="string"?{type:"textord",mode:Hn.mode,text:Ur}:Hn}),fr=oa($t,w.withFont("mathrm"),!0),Dr=0;Dr<fr.length;Dr++){var Hr=fr[Dr];Hr instanceof k&&(Hr.text=Hr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}It=Ht.makeSpan(["mop"],fr,w)}else It=Ht.makeSpan(["mop"],[],w);return be?ne(It,E,z,w,w.style,0,0):It},yt=function(A,w){for(var E=ea(A.body,w.withFont("mathrm")),z=!0,be=0;be<E.length;be++){var ze=E[be];if(!(ze instanceof Yn.SpaceNode))if(ze instanceof Yn.MathNode)switch(ze.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var pt=ze.children[0];ze.children.length===1&&pt instanceof Yn.TextNode?pt.text=pt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):z=!1;break}default:z=!1}else z=!1}if(z){var It=E.map(function(Dr){return Dr.toText()}).join("");E=[new Yn.TextNode(It)]}var $t=new Yn.MathNode("mi",E);$t.setAttribute("mathvariant","normal");var fr=new Yn.MathNode("mo",[Da("\u2061","text")]);return A.parentIsSupSub?new Yn.MathNode("mo",[$t,fr]):Yn.newDocumentFragment([$t,fr])};oi({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0];return{type:"operatorname",mode:E.mode,body:ga(be),alwaysHandleSupSub:z==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:vt,mathmlBuilder:yt}),_a({type:"ordgroup",htmlBuilder:function(A,w){return A.semisimple?Ht.makeFragment(oa(A.body,w,!1)):Ht.makeSpan(["mord"],oa(A.body,w,!0),w)},mathmlBuilder:function(A,w){return Ki(A.body,w,!0)}}),oi({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(A,w){var E=A.parser,z=w[0];return{type:"overline",mode:E.mode,body:z}},htmlBuilder:function(A,w){var E=aa(A.body,w.havingCrampedStyle()),z=Ht.makeLineSpan("overline-line",w),be=w.fontMetrics().defaultRuleThickness,ze=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E},{type:"kern",size:3*be},{type:"elem",elem:z},{type:"kern",size:be}]},w);return Ht.makeSpan(["mord","overline"],[ze],w)},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mo",[new Yn.TextNode("\u203E")]);E.setAttribute("stretchy","true");var z=new Yn.MathNode("mover",[ki(A.body,w),E]);return z.setAttribute("accent","true"),z}}),oi({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(A,w){var E=A.parser,z=w[0];return{type:"phantom",mode:E.mode,body:ga(z)}},htmlBuilder:function(A,w){var E=oa(A.body,w.withPhantom(),!1);return Ht.makeFragment(E)},mathmlBuilder:function(A,w){var E=ea(A.body,w);return new Yn.MathNode("mphantom",E)}}),oi({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(A,w){var E=A.parser,z=w[0];return{type:"hphantom",mode:E.mode,body:z}},htmlBuilder:function(A,w){var E=Ht.makeSpan([],[aa(A.body,w.withPhantom())]);if(E.height=0,E.depth=0,E.children)for(var z=0;z<E.children.length;z++)E.children[z].height=0,E.children[z].depth=0;return E=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E}]},w),Ht.makeSpan(["mord"],[E],w)},mathmlBuilder:function(A,w){var E=ea(ga(A.body),w),z=new Yn.MathNode("mphantom",E),be=new Yn.MathNode("mpadded",[z]);return be.setAttribute("height","0px"),be.setAttribute("depth","0px"),be}}),oi({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(A,w){var E=A.parser,z=w[0];return{type:"vphantom",mode:E.mode,body:z}},htmlBuilder:function(A,w){var E=Ht.makeSpan(["inner"],[aa(A.body,w.withPhantom())]),z=Ht.makeSpan(["fix"],[]);return Ht.makeSpan(["mord","rlap"],[E,z],w)},mathmlBuilder:function(A,w){var E=ea(ga(A.body),w),z=new Yn.MathNode("mphantom",E),be=new Yn.MathNode("mpadded",[z]);return be.setAttribute("width","0px"),be}}),oi({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(A,w){var E=A.parser,z=Fn(w[0],"size").value,be=w[1];return{type:"raisebox",mode:E.mode,dy:z,body:be}},htmlBuilder:function(A,w){var E=aa(A.body,w),z=vr(A.dy,w);return Ht.makeVList({positionType:"shift",positionData:-z,children:[{type:"elem",elem:E}]},w)},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mpadded",[ki(A.body,w)]),z=A.dy.number+A.dy.unit;return E.setAttribute("voffset",z),E}}),oi({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(A,w,E){var z=A.parser,be=E[0],ze=Fn(w[0],"size"),pt=Fn(w[1],"size");return{type:"rule",mode:z.mode,shift:be&&Fn(be,"size").value,width:ze.value,height:pt.value}},htmlBuilder:function(A,w){var E=Ht.makeSpan(["mord","rule"],[],w),z=vr(A.width,w),be=vr(A.height,w),ze=A.shift?vr(A.shift,w):0;return E.style.borderRightWidth=z+"em",E.style.borderTopWidth=be+"em",E.style.bottom=ze+"em",E.width=z,E.height=be+ze,E.depth=-ze,E.maxFontSize=be*1.125*w.sizeMultiplier,E},mathmlBuilder:function(A,w){var E=vr(A.width,w),z=vr(A.height,w),be=A.shift?vr(A.shift,w):0,ze=w.color&&w.getColor()||"black",pt=new Yn.MathNode("mspace");pt.setAttribute("mathbackground",ze),pt.setAttribute("width",E+"em"),pt.setAttribute("height",z+"em");var It=new Yn.MathNode("mpadded",[pt]);return be>=0?It.setAttribute("height","+"+be+"em"):(It.setAttribute("height",be+"em"),It.setAttribute("depth","+"+-be+"em")),It.setAttribute("voffset",be+"em"),It}});function Ot(je,A,w){for(var E=oa(je,A,!1),z=A.sizeMultiplier/w.sizeMultiplier,be=0;be<E.length;be++){var ze=E[be].classes.indexOf("sizing");ze<0?Array.prototype.push.apply(E[be].classes,A.sizingClasses(w)):E[be].classes[ze+1]==="reset-size"+A.size&&(E[be].classes[ze+1]="reset-size"+w.size),E[be].height*=z,E[be].depth*=z}return Ht.makeFragment(E)}var Ve=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],cr=function(A,w){var E=w.havingSize(A.size);return Ot(A.body,E,w)};oi({type:"sizing",names:Ve,props:{numArgs:0,allowedInText:!0},handler:function(A,w){var E=A.breakOnTokenText,z=A.funcName,be=A.parser,ze=be.parseExpression(!1,E);return{type:"sizing",mode:be.mode,size:Ve.indexOf(z)+1,body:ze}},htmlBuilder:cr,mathmlBuilder:function(A,w){var E=w.havingSize(A.size),z=ea(A.body,E),be=new Yn.MathNode("mstyle",z);return be.setAttribute("mathsize",E.sizeMultiplier+"em"),be}}),oi({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(A,w,E){var z=A.parser,be=!1,ze=!1,pt=E[0]&&Fn(E[0],"ordgroup");if(pt)for(var It="",$t=0;$t<pt.body.length;++$t){var fr=pt.body[$t];if(It=fr.text,It==="t")be=!0;else if(It==="b")ze=!0;else{be=!1,ze=!1;break}}else be=!0,ze=!0;var Dr=w[0];return{type:"smash",mode:z.mode,body:Dr,smashHeight:be,smashDepth:ze}},htmlBuilder:function(A,w){var E=Ht.makeSpan([],[aa(A.body,w)]);if(!A.smashHeight&&!A.smashDepth)return E;if(A.smashHeight&&(E.height=0,E.children))for(var z=0;z<E.children.length;z++)E.children[z].height=0;if(A.smashDepth&&(E.depth=0,E.children))for(var be=0;be<E.children.length;be++)E.children[be].depth=0;var ze=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E}]},w);return Ht.makeSpan(["mord"],[ze],w)},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mpadded",[ki(A.body,w)]);return A.smashHeight&&E.setAttribute("height","0px"),A.smashDepth&&E.setAttribute("depth","0px"),E}}),oi({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(A,w,E){var z=A.parser,be=E[0],ze=w[0];return{type:"sqrt",mode:z.mode,body:ze,index:be}},htmlBuilder:function(A,w){var E=aa(A.body,w.havingCrampedStyle());E.height===0&&(E.height=w.fontMetrics().xHeight),E=Ht.wrapFragment(E,w);var z=w.fontMetrics(),be=z.defaultRuleThickness,ze=be;w.style.id<_.TEXT.id&&(ze=w.fontMetrics().xHeight);var pt=be+ze/4,It=E.height+E.depth+pt+be,$t=so.sqrtImage(It,w),fr=$t.span,Dr=$t.ruleWidth,Hr=$t.advanceWidth,Hn=fr.height-Dr;Hn>E.height+E.depth+pt&&(pt=(pt+Hn-E.height-E.depth)/2);var Ur=fr.height-E.height-pt-Dr;E.style.paddingLeft=Hr+"em";var xn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:E,wrapperClasses:["svg-align"]},{type:"kern",size:-(E.height+Ur)},{type:"elem",elem:fr},{type:"kern",size:Dr}]},w);if(A.index){var Nn=w.havingStyle(_.SCRIPTSCRIPT),kn=aa(A.index,Nn,w),Jn=.6*(xn.height-xn.depth),Rn=Ht.makeVList({positionType:"shift",positionData:-Jn,children:[{type:"elem",elem:kn}]},w),Oi=Ht.makeSpan(["root"],[Rn]);return Ht.makeSpan(["mord","sqrt"],[Oi,xn],w)}else return Ht.makeSpan(["mord","sqrt"],[xn],w)},mathmlBuilder:function(A,w){var E=A.body,z=A.index;return z?new Yn.MathNode("mroot",[ki(E,w),ki(z,w)]):new Yn.MathNode("msqrt",[ki(E,w)])}});var tr={display:_.DISPLAY,text:_.TEXT,script:_.SCRIPT,scriptscript:_.SCRIPTSCRIPT};oi({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(A,w){var E=A.breakOnTokenText,z=A.funcName,be=A.parser,ze=be.parseExpression(!0,E),pt=z.slice(1,z.length-5);return{type:"styling",mode:be.mode,style:pt,body:ze}},htmlBuilder:function(A,w){var E=tr[A.style],z=w.havingStyle(E).withFont("");return Ot(A.body,z,w)},mathmlBuilder:function(A,w){var E=tr[A.style],z=w.havingStyle(E),be=ea(A.body,z),ze=new Yn.MathNode("mstyle",be),pt={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},It=pt[A.style];return ze.setAttribute("scriptlevel",It[0]),ze.setAttribute("displaystyle",It[1]),ze}});var hr=function(A,w){var E=A.base;if(E)if(E.type==="op"){var z=E.limits&&(w.style.size===_.DISPLAY.size||E.alwaysHandleSupSub);return z?ge:null}else if(E.type==="operatorname"){var be=E.alwaysHandleSupSub&&(w.style.size===_.DISPLAY.size||E.limits);return be?vt:null}else{if(E.type==="accent")return F.isCharacterBox(E.base)?la:null;if(E.type==="horizBrace"){var ze=!A.sub;return ze===E.isOver?b:null}else return null}else return null};_a({type:"supsub",htmlBuilder:function(A,w){var E=hr(A,w);if(E)return E(A,w);var z=A.base,be=A.sup,ze=A.sub,pt=aa(z,w),It,$t,fr=w.fontMetrics(),Dr=0,Hr=0,Hn=z&&F.isCharacterBox(z);if(be){var Ur=w.havingStyle(w.style.sup());It=aa(be,Ur,w),Hn||(Dr=pt.height-Ur.fontMetrics().supDrop*Ur.sizeMultiplier/w.sizeMultiplier)}if(ze){var xn=w.havingStyle(w.style.sub());$t=aa(ze,xn,w),Hn||(Hr=pt.depth+xn.fontMetrics().subDrop*xn.sizeMultiplier/w.sizeMultiplier)}var Nn;w.style===_.DISPLAY?Nn=fr.sup1:w.style.cramped?Nn=fr.sup3:Nn=fr.sup2;var kn=w.sizeMultiplier,Jn=.5/fr.ptPerEm/kn+"em",Rn=null;if($t){var Oi=A.base&&A.base.type==="op"&&A.base.name&&(A.base.name==="\\oiint"||A.base.name==="\\oiiint");(pt instanceof k||Oi)&&(Rn=-pt.italic+"em")}var Gi;if(It&&$t){Dr=Math.max(Dr,Nn,It.depth+.25*fr.xHeight),Hr=Math.max(Hr,fr.sub2);var Ji=fr.defaultRuleThickness,Ia=4*Ji;if(Dr-It.depth-($t.height-Hr)<Ia){Hr=Ia-(Dr-It.depth)+$t.height;var Di=.8*fr.xHeight-(Dr-It.depth);Di>0&&(Dr+=Di,Hr-=Di)}var ss=[{type:"elem",elem:$t,shift:Hr,marginRight:Jn,marginLeft:Rn},{type:"elem",elem:It,shift:-Dr,marginRight:Jn}];Gi=Ht.makeVList({positionType:"individualShift",children:ss},w)}else if($t){Hr=Math.max(Hr,fr.sub1,$t.height-.8*fr.xHeight);var La=[{type:"elem",elem:$t,marginLeft:Rn,marginRight:Jn}];Gi=Ht.makeVList({positionType:"shift",positionData:Hr,children:La},w)}else if(It)Dr=Math.max(Dr,Nn,It.depth+.25*fr.xHeight),Gi=Ht.makeVList({positionType:"shift",positionData:-Dr,children:[{type:"elem",elem:It,marginRight:Jn}]},w);else throw new Error("supsub must have either sup or sub.");var va=Yi(pt,"right")||"mord";return Ht.makeSpan([va],[pt,Ht.makeSpan(["msupsub"],[Gi])],w)},mathmlBuilder:function(A,w){var E=!1,z,be,ze=Zn(A.base,"horizBrace");ze&&(be=!!A.sup,be===ze.isOver&&(E=!0,z=ze.isOver)),A.base&&(A.base.type==="op"||A.base.type==="operatorname")&&(A.base.parentIsSupSub=!0);var pt=[ki(A.base,w)];A.sub&&pt.push(ki(A.sub,w)),A.sup&&pt.push(ki(A.sup,w));var It;if(E)It=z?"mover":"munder";else if(A.sub)if(A.sup){var Dr=A.base;Dr&&Dr.type==="op"&&Dr.limits&&w.style===_.DISPLAY||Dr&&Dr.type==="operatorname"&&Dr.alwaysHandleSupSub&&(w.style===_.DISPLAY||Dr.limits)?It="munderover":It="msubsup"}else{var fr=A.base;fr&&fr.type==="op"&&fr.limits&&(w.style===_.DISPLAY||fr.alwaysHandleSupSub)||fr&&fr.type==="operatorname"&&fr.alwaysHandleSupSub&&(fr.limits||w.style===_.DISPLAY)?It="munder":It="msub"}else{var $t=A.base;$t&&$t.type==="op"&&$t.limits&&(w.style===_.DISPLAY||$t.alwaysHandleSupSub)||$t&&$t.type==="operatorname"&&$t.alwaysHandleSupSub&&($t.limits||w.style===_.DISPLAY)?It="mover":It="msup"}var Hr=new Yn.MathNode(It,pt);return Hr}}),_a({type:"atom",htmlBuilder:function(A,w){return Ht.mathsym(A.text,A.mode,w,["m"+A.family])},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mo",[Da(A.text,A.mode)]);if(A.family==="bin"){var z=Vi(A,w);z==="bold-italic"&&E.setAttribute("mathvariant",z)}else A.family==="punct"?E.setAttribute("separator","true"):(A.family==="open"||A.family==="close")&&E.setAttribute("stretchy","false");return E}});var jt={mi:"italic",mn:"normal",mtext:"normal"};_a({type:"mathord",htmlBuilder:function(A,w){return Ht.makeOrd(A,w,"mathord")},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mi",[Da(A.text,A.mode,w)]),z=Vi(A,w)||"italic";return z!==jt[E.type]&&E.setAttribute("mathvariant",z),E}}),_a({type:"textord",htmlBuilder:function(A,w){return Ht.makeOrd(A,w,"textord")},mathmlBuilder:function(A,w){var E=Da(A.text,A.mode,w),z=Vi(A,w)||"normal",be;return A.mode==="text"?be=new Yn.MathNode("mtext",[E]):/[0-9]/.test(A.text)?be=new Yn.MathNode("mn",[E]):A.text==="\\prime"?be=new Yn.MathNode("mo",[E]):be=new Yn.MathNode("mi",[E]),z!==jt[be.type]&&be.setAttribute("mathvariant",z),be}});var Ar={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},kr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};_a({type:"spacing",htmlBuilder:function(A,w){if(kr.hasOwnProperty(A.text)){var E=kr[A.text].className||"";if(A.mode==="text"){var z=Ht.makeOrd(A,w,"textord");return z.classes.push(E),z}else return Ht.makeSpan(["mspace",E],[Ht.mathsym(A.text,A.mode,w)],w)}else{if(Ar.hasOwnProperty(A.text))return Ht.makeSpan(["mspace",Ar[A.text]],[],w);throw new Y('Unknown type of space "'+A.text+'"')}},mathmlBuilder:function(A,w){var E;if(kr.hasOwnProperty(A.text))E=new Yn.MathNode("mtext",[new Yn.TextNode("\xA0")]);else{if(Ar.hasOwnProperty(A.text))return new Yn.MathNode("mspace");throw new Y('Unknown type of space "'+A.text+'"')}return E}});var ln=function(){var A=new Yn.MathNode("mtd",[]);return A.setAttribute("width","50%"),A};_a({type:"tag",mathmlBuilder:function(A,w){var E=new Yn.MathNode("mtable",[new Yn.MathNode("mtr",[ln(),new Yn.MathNode("mtd",[Ki(A.body,w)]),ln(),new Yn.MathNode("mtd",[Ki(A.tag,w)])])]);return E.setAttribute("width","100%"),E}});var Ln={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ai={"\\textbf":"textbf","\\textmd":"textmd"},hn={"\\textit":"textit","\\textup":"textup"},Br=function(A,w){var E=A.font;return E?Ln[E]?w.withTextFontFamily(Ln[E]):Ai[E]?w.withTextFontWeight(Ai[E]):w.withTextFontShape(hn[E]):w};oi({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(A,w){var E=A.parser,z=A.funcName,be=w[0];return{type:"text",mode:E.mode,body:ga(be),font:z}},htmlBuilder:function(A,w){var E=Br(A,w),z=oa(A.body,E,!0);return Ht.makeSpan(["mord","text"],Ht.tryCombineChars(z),E)},mathmlBuilder:function(A,w){var E=Br(A,w);return Ki(A.body,E)}}),oi({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(A,w){var E=A.parser;return{type:"underline",mode:E.mode,body:w[0]}},htmlBuilder:function(A,w){var E=aa(A.body,w),z=Ht.makeLineSpan("underline-line",w),be=w.fontMetrics().defaultRuleThickness,ze=Ht.makeVList({positionType:"top",positionData:E.height,children:[{type:"kern",size:be},{type:"elem",elem:z},{type:"kern",size:3*be},{type:"elem",elem:E}]},w);return Ht.makeSpan(["mord","underline"],[ze],w)},mathmlBuilder:function(A,w){var E=new Yn.MathNode("mo",[new Yn.TextNode("\u203E")]);E.setAttribute("stretchy","true");var z=new Yn.MathNode("munder",[ki(A.body,w),E]);return z.setAttribute("accentunder","true"),z}}),oi({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(A,w,E){throw new Y("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(A,w){for(var E=vn(A),z=[],be=w.havingStyle(w.style.text()),ze=0;ze<E.length;ze++){var pt=E[ze];pt==="~"&&(pt="\\textasciitilde"),z.push(Ht.makeSymbol(pt,"Typewriter-Regular",A.mode,be,["mord","texttt"]))}return Ht.makeSpan(["mord","text"].concat(be.sizingClasses(w)),Ht.tryCombineChars(z),be)},mathmlBuilder:function(A,w){var E=new Yn.TextNode(vn(A)),z=new Yn.MathNode("mtext",[E]);return z.setAttribute("mathvariant","monospace"),z}});var vn=function(A){return A.body.replace(/ /g,A.star?"\u2423":"\xA0")},Gn=na,zt=Gn,nr=`[ \r
|
|
|
]`,Nr="\\\\[a-zA-Z@]+",ve="\\\\[^\uD800-\uDFFF]",Pe=""+Nr+nr+"*",Xe=new RegExp("^("+Nr+")"+nr+"*$"),lt="[\u0300-\u036F]",ut=new RegExp(lt+"+$"),xt="("+nr+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(lt+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(lt+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Pe)+("|"+ve+")"),Qt=function(){function je(w,E){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=w,this.settings=E,this.tokenRegex=new RegExp(xt,"g"),this.catcodes={"%":14}}var A=je.prototype;return A.setCatcode=function(E,z){this.catcodes[E]=z},A.lex=function(){var E=this.input,z=this.tokenRegex.lastIndex;if(z===E.length)return new Me("EOF",new se(this,z,z));var be=this.tokenRegex.exec(E);if(be===null||be.index!==z)throw new Y("Unexpected character: '"+E[z]+"'",new Me(E[z],new se(this,z,z+1)));var ze=be[2]||" ";if(this.catcodes[ze]===14){var pt=E.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return pt===-1?(this.tokenRegex.lastIndex=E.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=pt+1,this.lex()}var It=ze.match(Xe);return It&&(ze=It[1]),new Me(ze,new se(this,z,this.tokenRegex.lastIndex))},je}(),lr=function(){function je(w,E){w===void 0&&(w={}),E===void 0&&(E={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=E,this.builtins=w,this.undefStack=[]}var A=je.prototype;return A.beginGroup=function(){this.undefStack.push({})},A.endGroup=function(){if(this.undefStack.length===0)throw new Y("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var E=this.undefStack.pop();for(var z in E)E.hasOwnProperty(z)&&(E[z]===void 0?delete this.current[z]:this.current[z]=E[z])},A.has=function(E){return this.current.hasOwnProperty(E)||this.builtins.hasOwnProperty(E)},A.get=function(E){return this.current.hasOwnProperty(E)?this.current[E]:this.builtins[E]},A.set=function(E,z,be){if(be===void 0&&(be=!1),be){for(var ze=0;ze<this.undefStack.length;ze++)delete this.undefStack[ze][E];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][E]=z)}else{var pt=this.undefStack[this.undefStack.length-1];pt&&!pt.hasOwnProperty(E)&&(pt[E]=this.current[E])}this.current[E]=z},je}(),He={},At=He;function Te(je,A){He[je]=A}Te("\\@firstoftwo",function(je){var A=je.consumeArgs(2);return{tokens:A[0],numArgs:0}}),Te("\\@secondoftwo",function(je){var A=je.consumeArgs(2);return{tokens:A[1],numArgs:0}}),Te("\\@ifnextchar",function(je){var A=je.consumeArgs(3),w=je.future();return A[0].length===1&&A[0][0].text===w.text?{tokens:A[1],numArgs:0}:{tokens:A[2],numArgs:0}}),Te("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Te("\\TextOrMath",function(je){var A=je.consumeArgs(2);return je.mode==="text"?{tokens:A[0],numArgs:0}:{tokens:A[1],numArgs:0}});var Ft={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Te("\\char",function(je){var A=je.popToken(),w,E="";if(A.text==="'")w=8,A=je.popToken();else if(A.text==='"')w=16,A=je.popToken();else if(A.text==="`")if(A=je.popToken(),A.text[0]==="\\")E=A.text.charCodeAt(1);else{if(A.text==="EOF")throw new Y("\\char` missing argument");E=A.text.charCodeAt(0)}else w=10;if(w){if(E=Ft[A.text],E==null||E>=w)throw new Y("Invalid base-"+w+" digit "+A.text);for(var z;(z=Ft[je.future().text])!=null&&z<w;)E*=w,E+=z,je.popToken()}return"\\@char{"+E+"}"});var er=function(A,w){var E=A.consumeArgs(1)[0];if(E.length!==1)throw new Y("\\gdef's first argument must be a macro name");var z=E[0].text,be=0;for(E=A.consumeArgs(1)[0];E.length===1&&E[0].text==="#";){if(E=A.consumeArgs(1)[0],E.length!==1)throw new Y('Invalid argument number length "'+E.length+'"');if(!/^[1-9]$/.test(E[0].text))throw new Y('Invalid argument number "'+E[0].text+'"');if(be++,parseInt(E[0].text)!==be)throw new Y('Argument number "'+E[0].text+'" out of order');E=A.consumeArgs(1)[0]}return A.macros.set(z,{tokens:E,numArgs:be},w),""};Te("\\gdef",function(je){return er(je,!0)}),Te("\\def",function(je){return er(je,!1)}),Te("\\global",function(je){var A=je.consumeArgs(1)[0];if(A.length!==1)throw new Y("Invalid command after \\global");var w=A[0].text;if(w==="\\def")return er(je,!0);throw new Y("Invalid command '"+w+"' after \\global")});var or=function(A,w,E){var z=A.consumeArgs(1)[0];if(z.length!==1)throw new Y("\\newcommand's first argument must be a macro name");var be=z[0].text,ze=A.isDefined(be);if(ze&&!w)throw new Y("\\newcommand{"+be+"} attempting to redefine "+(be+"; use \\renewcommand"));if(!ze&&!E)throw new Y("\\renewcommand{"+be+"} when command "+be+" does not yet exist; use \\newcommand");var pt=0;if(z=A.consumeArgs(1)[0],z.length===1&&z[0].text==="["){for(var It="",$t=A.expandNextToken();$t.text!=="]"&&$t.text!=="EOF";)It+=$t.text,$t=A.expandNextToken();if(!It.match(/^\s*[0-9]+\s*$/))throw new Y("Invalid number of arguments: "+It);pt=parseInt(It),z=A.consumeArgs(1)[0]}return A.macros.set(be,{tokens:z,numArgs:pt}),""};Te("\\newcommand",function(je){return or(je,!1,!0)}),Te("\\renewcommand",function(je){return or(je,!0,!1)}),Te("\\providecommand",function(je){return or(je,!0,!0)}),Te("\\bgroup","{"),Te("\\egroup","}"),Te("\\lq","`"),Te("\\rq","'"),Te("\\aa","\\r a"),Te("\\AA","\\r A"),Te("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Te("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Te("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Te("\u212C","\\mathscr{B}"),Te("\u2130","\\mathscr{E}"),Te("\u2131","\\mathscr{F}"),Te("\u210B","\\mathscr{H}"),Te("\u2110","\\mathscr{I}"),Te("\u2112","\\mathscr{L}"),Te("\u2133","\\mathscr{M}"),Te("\u211B","\\mathscr{R}"),Te("\u212D","\\mathfrak{C}"),Te("\u210C","\\mathfrak{H}"),Te("\u2128","\\mathfrak{Z}"),Te("\\Bbbk","\\Bbb{k}"),Te("\xB7","\\cdotp"),Te("\\llap","\\mathllap{\\textrm{#1}}"),Te("\\rlap","\\mathrlap{\\textrm{#1}}"),Te("\\clap","\\mathclap{\\textrm{#1}}"),Te("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Te("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Te("\\ne","\\neq"),Te("\u2260","\\neq"),Te("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Te("\u2209","\\notin"),Te("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Te("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Te("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Te("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Te("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Te("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Te("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Te("\u27C2","\\perp"),Te("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Te("\u220C","\\notni"),Te("\u231C","\\ulcorner"),Te("\u231D","\\urcorner"),Te("\u231E","\\llcorner"),Te("\u231F","\\lrcorner"),Te("\xA9","\\copyright"),Te("\xAE","\\textregistered"),Te("\uFE0F","\\textregistered"),Te("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Te("\u22EE","\\vdots"),Te("\\varGamma","\\mathit{\\Gamma}"),Te("\\varDelta","\\mathit{\\Delta}"),Te("\\varTheta","\\mathit{\\Theta}"),Te("\\varLambda","\\mathit{\\Lambda}"),Te("\\varXi","\\mathit{\\Xi}"),Te("\\varPi","\\mathit{\\Pi}"),Te("\\varSigma","\\mathit{\\Sigma}"),Te("\\varUpsilon","\\mathit{\\Upsilon}"),Te("\\varPhi","\\mathit{\\Phi}"),Te("\\varPsi","\\mathit{\\Psi}"),Te("\\varOmega","\\mathit{\\Omega}"),Te("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Te("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Te("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Te("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Te("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Te("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var ur={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Te("\\dots",function(je){var A="\\dotso",w=je.expandAfterFuture().text;return w in ur?A=ur[w]:(w.substr(0,4)==="\\not"||w in br.math&&F.contains(["bin","rel"],br.math[w].group))&&(A="\\dotsb"),A});var St={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Te("\\dotso",function(je){var A=je.future().text;return A in St?"\\ldots\\,":"\\ldots"}),Te("\\dotsc",function(je){var A=je.future().text;return A in St&&A!==","?"\\ldots\\,":"\\ldots"}),Te("\\cdots",function(je){var A=je.future().text;return A in St?"\\@cdots\\,":"\\@cdots"}),Te("\\dotsb","\\cdots"),Te("\\dotsm","\\cdots"),Te("\\dotsi","\\!\\cdots"),Te("\\dotsx","\\ldots\\,"),Te("\\DOTSI","\\relax"),Te("\\DOTSB","\\relax"),Te("\\DOTSX","\\relax"),Te("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Te("\\,","\\tmspace+{3mu}{.1667em}"),Te("\\thinspace","\\,"),Te("\\>","\\mskip{4mu}"),Te("\\:","\\tmspace+{4mu}{.2222em}"),Te("\\medspace","\\:"),Te("\\;","\\tmspace+{5mu}{.2777em}"),Te("\\thickspace","\\;"),Te("\\!","\\tmspace-{3mu}{.1667em}"),Te("\\negthinspace","\\!"),Te("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Te("\\negthickspace","\\tmspace-{5mu}{.277em}"),Te("\\enspace","\\kern.5em "),Te("\\enskip","\\hskip.5em\\relax"),Te("\\quad","\\hskip1em\\relax"),Te("\\qquad","\\hskip2em\\relax"),Te("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Te("\\tag@paren","\\tag@literal{({#1})}"),Te("\\tag@literal",function(je){if(je.macros.get("\\df@tag"))throw new Y("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Te("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Te("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Te("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Te("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Te("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Te("\\\\","\\newline"),Te("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Gr=mt["Main-Regular"][84][1]-.7*mt["Main-Regular"][65][1]+"em";Te("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Gr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Te("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Gr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Te("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Te("\\@hspace","\\hskip #1\\relax"),Te("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Te("\\ordinarycolon",":"),Te("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Te("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Te("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Te("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Te("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Te("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Te("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Te("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Te("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Te("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Te("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Te("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Te("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Te("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Te("\u2237","\\dblcolon"),Te("\u2239","\\eqcolon"),Te("\u2254","\\coloneqq"),Te("\u2255","\\eqqcolon"),Te("\u2A74","\\Coloneqq"),Te("\\ratio","\\vcentcolon"),Te("\\coloncolon","\\dblcolon"),Te("\\colonequals","\\coloneqq"),Te("\\coloncolonequals","\\Coloneqq"),Te("\\equalscolon","\\eqqcolon"),Te("\\equalscoloncolon","\\Eqqcolon"),Te("\\colonminus","\\coloneq"),Te("\\coloncolonminus","\\Coloneq"),Te("\\minuscolon","\\eqcolon"),Te("\\minuscoloncolon","\\Eqcolon"),Te("\\coloncolonapprox","\\Colonapprox"),Te("\\coloncolonsim","\\Colonsim"),Te("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Te("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Te("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Te("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Te("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Te("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Te("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Te("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Te("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Te("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Te("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Te("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Te("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Te("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Te("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Te("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Te("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Te("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Te("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Te("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Te("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Te("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Te("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Te("\u27E6","\\llbracket"),Te("\u27E7","\\rrbracket"),Te("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Te("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Te("\u2983","\\lBrace"),Te("\u2984","\\rBrace"),Te("\\darr","\\downarrow"),Te("\\dArr","\\Downarrow"),Te("\\Darr","\\Downarrow"),Te("\\lang","\\langle"),Te("\\rang","\\rangle"),Te("\\uarr","\\uparrow"),Te("\\uArr","\\Uparrow"),Te("\\Uarr","\\Uparrow"),Te("\\N","\\mathbb{N}"),Te("\\R","\\mathbb{R}"),Te("\\Z","\\mathbb{Z}"),Te("\\alef","\\aleph"),Te("\\alefsym","\\aleph"),Te("\\Alpha","\\mathrm{A}"),Te("\\Beta","\\mathrm{B}"),Te("\\bull","\\bullet"),Te("\\Chi","\\mathrm{X}"),Te("\\clubs","\\clubsuit"),Te("\\cnums","\\mathbb{C}"),Te("\\Complex","\\mathbb{C}"),Te("\\Dagger","\\ddagger"),Te("\\diamonds","\\diamondsuit"),Te("\\empty","\\emptyset"),Te("\\Epsilon","\\mathrm{E}"),Te("\\Eta","\\mathrm{H}"),Te("\\exist","\\exists"),Te("\\harr","\\leftrightarrow"),Te("\\hArr","\\Leftrightarrow"),Te("\\Harr","\\Leftrightarrow"),Te("\\hearts","\\heartsuit"),Te("\\image","\\Im"),Te("\\infin","\\infty"),Te("\\Iota","\\mathrm{I}"),Te("\\isin","\\in"),Te("\\Kappa","\\mathrm{K}"),Te("\\larr","\\leftarrow"),Te("\\lArr","\\Leftarrow"),Te("\\Larr","\\Leftarrow"),Te("\\lrarr","\\leftrightarrow"),Te("\\lrArr","\\Leftrightarrow"),Te("\\Lrarr","\\Leftrightarrow"),Te("\\Mu","\\mathrm{M}"),Te("\\natnums","\\mathbb{N}"),Te("\\Nu","\\mathrm{N}"),Te("\\Omicron","\\mathrm{O}"),Te("\\plusmn","\\pm"),Te("\\rarr","\\rightarrow"),Te("\\rArr","\\Rightarrow"),Te("\\Rarr","\\Rightarrow"),Te("\\real","\\Re"),Te("\\reals","\\mathbb{R}"),Te("\\Reals","\\mathbb{R}"),Te("\\Rho","\\mathrm{P}"),Te("\\sdot","\\cdot"),Te("\\sect","\\S"),Te("\\spades","\\spadesuit"),Te("\\sub","\\subset"),Te("\\sube","\\subseteq"),Te("\\supe","\\supseteq"),Te("\\Tau","\\mathrm{T}"),Te("\\thetasym","\\vartheta"),Te("\\weierp","\\wp"),Te("\\Zeta","\\mathrm{Z}"),Te("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Te("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Te("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Te("\\blue","\\textcolor{##6495ed}{#1}"),Te("\\orange","\\textcolor{##ffa500}{#1}"),Te("\\pink","\\textcolor{##ff00af}{#1}"),Te("\\red","\\textcolor{##df0030}{#1}"),Te("\\green","\\textcolor{##28ae7b}{#1}"),Te("\\gray","\\textcolor{gray}{#1}"),Te("\\purple","\\textcolor{##9d38bd}{#1}"),Te("\\blueA","\\textcolor{##ccfaff}{#1}"),Te("\\blueB","\\textcolor{##80f6ff}{#1}"),Te("\\blueC","\\textcolor{##63d9ea}{#1}"),Te("\\blueD","\\textcolor{##11accd}{#1}"),Te("\\blueE","\\textcolor{##0c7f99}{#1}"),Te("\\tealA","\\textcolor{##94fff5}{#1}"),Te("\\tealB","\\textcolor{##26edd5}{#1}"),Te("\\tealC","\\textcolor{##01d1c1}{#1}"),Te("\\tealD","\\textcolor{##01a995}{#1}"),Te("\\tealE","\\textcolor{##208170}{#1}"),Te("\\greenA","\\textcolor{##b6ffb0}{#1}"),Te("\\greenB","\\textcolor{##8af281}{#1}"),Te("\\greenC","\\textcolor{##74cf70}{#1}"),Te("\\greenD","\\textcolor{##1fab54}{#1}"),Te("\\greenE","\\textcolor{##0d923f}{#1}"),Te("\\goldA","\\textcolor{##ffd0a9}{#1}"),Te("\\goldB","\\textcolor{##ffbb71}{#1}"),Te("\\goldC","\\textcolor{##ff9c39}{#1}"),Te("\\goldD","\\textcolor{##e07d10}{#1}"),Te("\\goldE","\\textcolor{##a75a05}{#1}"),Te("\\redA","\\textcolor{##fca9a9}{#1}"),Te("\\redB","\\textcolor{##ff8482}{#1}"),Te("\\redC","\\textcolor{##f9685d}{#1}"),Te("\\redD","\\textcolor{##e84d39}{#1}"),Te("\\redE","\\textcolor{##bc2612}{#1}"),Te("\\maroonA","\\textcolor{##ffbde0}{#1}"),Te("\\maroonB","\\textcolor{##ff92c6}{#1}"),Te("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Te("\\maroonD","\\textcolor{##ca337c}{#1}"),Te("\\maroonE","\\textcolor{##9e034e}{#1}"),Te("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Te("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Te("\\purpleC","\\textcolor{##aa87ff}{#1}"),Te("\\purpleD","\\textcolor{##7854ab}{#1}"),Te("\\purpleE","\\textcolor{##543b78}{#1}"),Te("\\mintA","\\textcolor{##f5f9e8}{#1}"),Te("\\mintB","\\textcolor{##edf2df}{#1}"),Te("\\mintC","\\textcolor{##e0e5cc}{#1}"),Te("\\grayA","\\textcolor{##f6f7f7}{#1}"),Te("\\grayB","\\textcolor{##f0f1f2}{#1}"),Te("\\grayC","\\textcolor{##e3e5e6}{#1}"),Te("\\grayD","\\textcolor{##d6d8da}{#1}"),Te("\\grayE","\\textcolor{##babec2}{#1}"),Te("\\grayF","\\textcolor{##888d93}{#1}"),Te("\\grayG","\\textcolor{##626569}{#1}"),Te("\\grayH","\\textcolor{##3b3e40}{#1}"),Te("\\grayI","\\textcolor{##21242c}{#1}"),Te("\\kaBlue","\\textcolor{##314453}{#1}"),Te("\\kaGreen","\\textcolor{##71B307}{#1}");var Zr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},sn=function(){function je(w,E,z){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=E,this.expansionCount=0,this.feed(w),this.macros=new lr(At,E.macros),this.mode=z,this.stack=[]}var A=je.prototype;return A.feed=function(E){this.lexer=new Qt(E,this.settings)},A.switchMode=function(E){this.mode=E},A.beginGroup=function(){this.macros.beginGroup()},A.endGroup=function(){this.macros.endGroup()},A.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},A.popToken=function(){return this.future(),this.stack.pop()},A.pushToken=function(E){this.stack.push(E)},A.pushTokens=function(E){var z;(z=this.stack).push.apply(z,E)},A.consumeSpaces=function(){for(;;){var E=this.future();if(E.text===" ")this.stack.pop();else break}},A.consumeArgs=function(E){for(var z=[],be=0;be<E;++be){this.consumeSpaces();var ze=this.popToken();if(ze.text==="{"){for(var pt=[],It=1;It!==0;){var $t=this.popToken();if(pt.push($t),$t.text==="{")++It;else if($t.text==="}")--It;else if($t.text==="EOF")throw new Y("End of input in macro argument",ze)}pt.pop(),pt.reverse(),z[be]=pt}else{if(ze.text==="EOF")throw new Y("End of input expecting macro argument");z[be]=[ze]}}return z},A.expandOnce=function(){var E=this.popToken(),z=E.text,be=this._getExpansion(z);if(be==null)return this.pushToken(E),E;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new Y("Too many expansions: infinite loop or need to increase maxExpand setting");var ze=be.tokens;if(be.numArgs){var pt=this.consumeArgs(be.numArgs);ze=ze.slice();for(var It=ze.length-1;It>=0;--It){var $t=ze[It];if($t.text==="#"){if(It===0)throw new Y("Incomplete placeholder at end of macro body",$t);if($t=ze[--It],$t.text==="#")ze.splice(It+1,1);else if(/^[1-9]$/.test($t.text)){var fr;(fr=ze).splice.apply(fr,[It,2].concat(pt[+$t.text-1]))}else throw new Y("Not a valid argument number",$t)}}}return this.pushTokens(ze),ze},A.expandAfterFuture=function(){return this.expandOnce(),this.future()},A.expandNextToken=function(){for(;;){var E=this.expandOnce();if(E instanceof Me)if(E.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},A.expandMacro=function(E){if(this.macros.get(E)){var z=[],be=this.stack.length;for(this.pushToken(new Me(E));this.stack.length>be;){var ze=this.expandOnce();ze instanceof Me&&z.push(this.stack.pop())}return z}},A.expandMacroAsText=function(E){var z=this.expandMacro(E);return z&&z.map(function(be){return be.text}).join("")},A._getExpansion=function(E){var z=this.macros.get(E);if(z==null)return z;var be=typeof z=="function"?z(this):z;if(typeof be=="string"){var ze=0;if(be.indexOf("#")!==-1)for(var pt=be.replace(/##/g,"");pt.indexOf("#"+(ze+1))!==-1;)++ze;for(var It=new Qt(be,this.settings),$t=[],fr=It.lex();fr.text!=="EOF";)$t.push(fr),fr=It.lex();$t.reverse();var Dr={tokens:$t,numArgs:ze};return Dr}return be},A.isDefined=function(E){return this.macros.has(E)||zt.hasOwnProperty(E)||br.math.hasOwnProperty(E)||br.text.hasOwnProperty(E)||Zr.hasOwnProperty(E)},je}(),An={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},ni={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},zr=function(){function je(w,E){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new sn(w,E,this.mode),this.settings=E,this.leftrightDepth=0}var A=je.prototype;return A.expect=function(E,z){if(z===void 0&&(z=!0),this.fetch().text!==E)throw new Y("Expected '"+E+"', got '"+this.fetch().text+"'",this.fetch());z&&this.consume()},A.consume=function(){this.nextToken=null},A.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},A.switchMode=function(E){this.mode=E,this.gullet.switchMode(E)},A.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var E=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),E},A.parseExpression=function(E,z){for(var be=[];;){this.mode==="math"&&this.consumeSpaces();var ze=this.fetch();if(je.endOfExpression.indexOf(ze.text)!==-1||z&&ze.text===z||E&&zt[ze.text]&&zt[ze.text].infix)break;var pt=this.parseAtom(z);if(!pt)break;be.push(pt)}return this.mode==="text"&&this.formLigatures(be),this.handleInfixNodes(be)},A.handleInfixNodes=function(E){for(var z=-1,be,ze=0;ze<E.length;ze++){var pt=Zn(E[ze],"infix");if(pt){if(z!==-1)throw new Y("only one infix operator per group",pt.token);z=ze,be=pt.replaceWith}}if(z!==-1&&be){var It,$t,fr=E.slice(0,z),Dr=E.slice(z+1);fr.length===1&&fr[0].type==="ordgroup"?It=fr[0]:It={type:"ordgroup",mode:this.mode,body:fr},Dr.length===1&&Dr[0].type==="ordgroup"?$t=Dr[0]:$t={type:"ordgroup",mode:this.mode,body:Dr};var Hr;return be==="\\\\abovefrac"?Hr=this.callFunction(be,[It,E[z],$t],[]):Hr=this.callFunction(be,[It,$t],[]),[Hr]}else return E},A.handleSupSubscript=function(E){var z=this.fetch(),be=z.text;this.consume();var ze=this.parseGroup(E,!1,je.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!ze)throw new Y("Expected group after '"+be+"'",z);return ze},A.formatUnsupportedCmd=function(E){for(var z=[],be=0;be<E.length;be++)z.push({type:"textord",mode:"text",text:E[be]});var ze={type:"text",mode:this.mode,body:z},pt={type:"color",mode:this.mode,color:this.settings.errorColor,body:[ze]};return pt},A.parseAtom=function(E){var z=this.parseGroup("atom",!1,null,E);if(this.mode==="text")return z;for(var be,ze;;){this.consumeSpaces();var pt=this.fetch();if(pt.text==="\\limits"||pt.text==="\\nolimits"){var It=Zn(z,"op");if(It){var $t=pt.text==="\\limits";It.limits=$t,It.alwaysHandleSupSub=!0}else if(It=Zn(z,"operatorname"),It&&It.alwaysHandleSupSub){var fr=pt.text==="\\limits";It.limits=fr}else throw new Y("Limit controls must follow a math operator",pt);this.consume()}else if(pt.text==="^"){if(be)throw new Y("Double superscript",pt);be=this.handleSupSubscript("superscript")}else if(pt.text==="_"){if(ze)throw new Y("Double subscript",pt);ze=this.handleSupSubscript("subscript")}else if(pt.text==="'"){if(be)throw new Y("Double superscript",pt);var Dr={type:"textord",mode:this.mode,text:"\\prime"},Hr=[Dr];for(this.consume();this.fetch().text==="'";)Hr.push(Dr),this.consume();this.fetch().text==="^"&&Hr.push(this.handleSupSubscript("superscript")),be={type:"ordgroup",mode:this.mode,body:Hr}}else break}return be||ze?{type:"supsub",mode:this.mode,base:z,sup:be,sub:ze}:z},A.parseFunction=function(E,z,be){var ze=this.fetch(),pt=ze.text,It=zt[pt];if(!It)return null;if(this.consume(),be!=null&&It.greediness<=be)throw new Y("Got function '"+pt+"' with no arguments"+(z?" as "+z:""),ze);if(this.mode==="text"&&!It.allowedInText)throw new Y("Can't use function '"+pt+"' in text mode",ze);if(this.mode==="math"&&It.allowedInMath===!1)throw new Y("Can't use function '"+pt+"' in math mode",ze);var $t=this.parseArguments(pt,It),fr=$t.args,Dr=$t.optArgs;return this.callFunction(pt,fr,Dr,ze,E)},A.callFunction=function(E,z,be,ze,pt){var It={funcName:E,parser:this,token:ze,breakOnTokenText:pt},$t=zt[E];if($t&&$t.handler)return $t.handler(It,z,be);throw new Y("No function handler for "+E)},A.parseArguments=function(E,z){var be=z.numArgs+z.numOptionalArgs;if(be===0)return{args:[],optArgs:[]};for(var ze=z.greediness,pt=[],It=[],$t=0;$t<be;$t++){var fr=z.argTypes&&z.argTypes[$t],Dr=$t<z.numOptionalArgs,Hr=$t>0&&!Dr||$t===0&&!Dr&&this.mode==="math",Hn=this.parseGroupOfType("argument to '"+E+"'",fr,Dr,ze,Hr);if(!Hn){if(Dr){It.push(null);continue}throw new Y("Expected group after '"+E+"'",this.fetch())}(Dr?It:pt).push(Hn)}return{args:pt,optArgs:It}},A.parseGroupOfType=function(E,z,be,ze,pt){switch(z){case"color":return pt&&this.consumeSpaces(),this.parseColorGroup(be);case"size":return pt&&this.consumeSpaces(),this.parseSizeGroup(be);case"url":return this.parseUrlGroup(be,pt);case"math":case"text":return this.parseGroup(E,be,ze,void 0,z,pt);case"hbox":{var It=this.parseGroup(E,be,ze,void 0,"text",pt);if(!It)return It;var $t={type:"styling",mode:It.mode,body:[It],style:"text"};return $t}case"raw":{if(pt&&this.consumeSpaces(),be&&this.fetch().text==="{")return null;var fr=this.parseStringGroup("raw",be,!0);if(fr)return{type:"raw",mode:"text",string:fr.text};throw new Y("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(E,be,ze,void 0,void 0,pt);default:throw new Y("Unknown group type as "+E,this.fetch())}},A.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},A.parseStringGroup=function(E,z,be){var ze=z?"[":"{",pt=z?"]":"}",It=this.fetch();if(It.text!==ze){if(z)return null;if(be&&It.text!=="EOF"&&/[^{}[\]]/.test(It.text))return this.consume(),It}var $t=this.mode;this.mode="text",this.expect(ze);for(var fr="",Dr=this.fetch(),Hr=0,Hn=Dr,Ur;(Ur=this.fetch()).text!==pt||be&&Hr>0;){switch(Ur.text){case"EOF":throw new Y("Unexpected end of input in "+E,Dr.range(Hn,fr));case ze:Hr++;break;case pt:Hr--;break}Hn=Ur,fr+=Hn.text,this.consume()}return this.expect(pt),this.mode=$t,Dr.range(Hn,fr)},A.parseRegexGroup=function(E,z){var be=this.mode;this.mode="text";for(var ze=this.fetch(),pt=ze,It="",$t;($t=this.fetch()).text!=="EOF"&&E.test(It+$t.text);)pt=$t,It+=pt.text,this.consume();if(It==="")throw new Y("Invalid "+z+": '"+ze.text+"'",ze);return this.mode=be,ze.range(pt,It)},A.parseColorGroup=function(E){var z=this.parseStringGroup("color",E);if(!z)return null;var be=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(z.text);if(!be)throw new Y("Invalid color: '"+z.text+"'",z);var ze=be[0];return/^[0-9a-f]{6}$/i.test(ze)&&(ze="#"+ze),{type:"color-token",mode:this.mode,color:ze}},A.parseSizeGroup=function(E){var z,be=!1;if(!E&&this.fetch().text!=="{"?z=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):z=this.parseStringGroup("size",E),!z)return null;!E&&z.text.length===0&&(z.text="0pt",be=!0);var ze=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(z.text);if(!ze)throw new Y("Invalid size: '"+z.text+"'",z);var pt={number:+(ze[1]+ze[2]),unit:ze[3]};if(!dr(pt))throw new Y("Invalid unit: '"+pt.unit+"'",z);return{type:"size",mode:this.mode,value:pt,isBlank:be}},A.parseUrlGroup=function(E,z){this.gullet.lexer.setCatcode("%",13);var be=this.parseStringGroup("url",E,!0);if(this.gullet.lexer.setCatcode("%",14),!be)return null;var ze=be.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:ze}},A.parseGroup=function(E,z,be,ze,pt,It){var $t=this.mode;pt&&this.switchMode(pt),It&&this.consumeSpaces();var fr=this.fetch(),Dr=fr.text,Hr;if(z?Dr==="[":Dr==="{"||Dr==="\\begingroup"){this.consume();var Hn=je.endOfGroup[Dr];this.gullet.beginGroup();var Ur=this.parseExpression(!1,Hn),xn=this.fetch();this.expect(Hn),this.gullet.endGroup(),Hr={type:"ordgroup",mode:this.mode,loc:se.range(fr,xn),body:Ur,semisimple:Dr==="\\begingroup"||void 0}}else if(z)Hr=null;else if(Hr=this.parseFunction(ze,E,be)||this.parseSymbol(),Hr==null&&Dr[0]==="\\"&&!Zr.hasOwnProperty(Dr)){if(this.settings.throwOnError)throw new Y("Undefined control sequence: "+Dr,fr);Hr=this.formatUnsupportedCmd(Dr),this.consume()}return pt&&this.switchMode($t),Hr},A.formLigatures=function(E){for(var z=E.length-1,be=0;be<z;++be){var ze=E[be],pt=ze.text;pt==="-"&&E[be+1].text==="-"&&(be+1<z&&E[be+2].text==="-"?(E.splice(be,3,{type:"textord",mode:"text",loc:se.range(ze,E[be+2]),text:"---"}),z-=2):(E.splice(be,2,{type:"textord",mode:"text",loc:se.range(ze,E[be+1]),text:"--"}),z-=1)),(pt==="'"||pt==="`")&&E[be+1].text===pt&&(E.splice(be,2,{type:"textord",mode:"text",loc:se.range(ze,E[be+1]),text:pt+pt}),z-=1)}},A.parseSymbol=function(){var E=this.fetch(),z=E.text;if(/^\\verb[^a-zA-Z]/.test(z)){this.consume();var be=z.slice(5),ze=be.charAt(0)==="*";if(ze&&(be=be.slice(1)),be.length<2||be.charAt(0)!==be.slice(-1))throw new Y(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return be=be.slice(1,-1),{type:"verb",mode:"text",body:be,star:ze}}ni.hasOwnProperty(z[0])&&!br[this.mode][z[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+z[0]+'" used in math mode',E),z=ni[z[0]]+z.substr(1));var pt=ut.exec(z);pt&&(z=z.substring(0,pt.index),z==="i"?z="\u0131":z==="j"&&(z="\u0237"));var It;if(br[this.mode][z]){this.settings.strict&&this.mode==="math"&&_n.indexOf(z)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+z[0]+'" used in math mode',E);var $t=br[this.mode][z].group,fr=se.range(E),Dr;if(Vt.hasOwnProperty($t)){var Hr=$t;Dr={type:"atom",mode:this.mode,family:Hr,loc:fr,text:z}}else Dr={type:$t,mode:this.mode,loc:fr,text:z};It=Dr}else if(z.charCodeAt(0)>=128)this.settings.strict&&(qe(z.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+z[0]+'" used in math mode',E):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+z[0]+'"'+(" ("+z.charCodeAt(0)+")"),E)),It={type:"textord",mode:"text",loc:se.range(E),text:z};else return null;if(this.consume(),pt)for(var Hn=0;Hn<pt[0].length;Hn++){var Ur=pt[0][Hn];if(!An[Ur])throw new Y("Unknown accent ' "+Ur+"'",E);var xn=An[Ur][this.mode];if(!xn)throw new Y("Accent "+Ur+" unsupported in "+this.mode+" mode",E);It={type:"accent",mode:this.mode,loc:se.range(E),label:xn,isStretchy:!1,isShifty:!0,base:It}}return It},je}();zr.endOfExpression=["}","\\endgroup","\\end","\\right","&"],zr.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},zr.SUPSUB_GREEDINESS=1;var Yt=function(A,w){if(!(typeof A=="string"||A instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var E=new zr(A,w);delete E.gullet.macros.current["\\df@tag"];var z=E.parse();if(E.gullet.macros.get("\\df@tag")){if(!w.displayMode)throw new Y("\\tag works only in display equations");E.gullet.feed("\\df@tag"),z=[{type:"tag",mode:"text",body:z,tag:E.parse()}]}return z},wi=Yt,fi=function(A,w,E){w.textContent="";var z=rn(A,E).toNode();w.appendChild(z)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),fi=function(){throw new Y("KaTeX doesn't work in quirks mode.")});var tn=function(A,w){var E=rn(A,w).toMarkup();return E},wn=function(A,w){var E=new H(w);return wi(A,E)},pn=function(A,w,E){if(E.throwOnError||!(A instanceof Y))throw A;var z=Ht.makeSpan(["katex-error"],[new k(w)]);return z.setAttribute("title",A.toString()),z.setAttribute("style","color:"+E.errorColor),z},rn=function(A,w){var E=new H(w);try{var z=wi(A,E);return us(z,A,E)}catch(be){return pn(be,A,E)}},Qn=function(A,w){var E=new H(w);try{var z=wi(A,E);return bs(z,A,E)}catch(be){return pn(be,A,E)}},vi={version:"0.11.1",render:fi,renderToString:tn,ParseError:Y,__parse:wn,__renderToDomTree:rn,__renderToHTMLTree:Qn,__setFontMetrics:dt,__defineSymbol:re,__defineMacro:Te,__domTree:{Span:h,Anchor:D,SymbolNode:k,SvgNode:te,PathNode:Se,LineNode:Be}},Mi=g.default=vi}]).default})},32834:function(yn){(function(Wt,g){yn.exports=g()})(this,function(){"use strict";function Wt(Tt,Kt){for(var qt=0;qt<Kt.length;qt++){var et=Kt[qt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(Tt,et.key,et)}}function g(Tt,Kt,qt){return Kt&&Wt(Tt.prototype,Kt),qt&&Wt(Tt,qt),Tt}function xe(Tt,Kt){if(Tt){if(typeof Tt=="string")return Fe(Tt,Kt);var qt=Object.prototype.toString.call(Tt).slice(8,-1);if(qt==="Object"&&Tt.constructor&&(qt=Tt.constructor.name),qt==="Map"||qt==="Set")return Array.from(Tt);if(qt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(qt))return Fe(Tt,Kt)}}function Fe(Tt,Kt){(Kt==null||Kt>Tt.length)&&(Kt=Tt.length);for(var qt=0,et=new Array(Kt);qt<Kt;qt++)et[qt]=Tt[qt];return et}function se(Tt,Kt){var qt=typeof Symbol!="undefined"&&Tt[Symbol.iterator]||Tt["@@iterator"];if(qt)return(qt=qt.call(Tt)).next.bind(qt);if(Array.isArray(Tt)||(qt=xe(Tt))||Kt&&Tt&&typeof Tt.length=="number"){qt&&(Tt=qt);var et=0;return function(){return et>=Tt.length?{done:!0}:{done:!1,value:Tt[et++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Me={exports:{}};function ie(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Y(Tt){Me.exports.defaults=Tt}Me.exports={defaults:ie(),getDefaults:ie,changeDefaults:Y};var O=/[&<>"']/,I=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,L={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(Kt){return L[Kt]};function a(Tt,Kt){if(Kt){if(O.test(Tt))return Tt.replace(I,p)}else if(n.test(Tt))return Tt.replace(o,p);return Tt}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(Tt){return Tt.replace(d,function(Kt,qt){return qt=qt.toLowerCase(),qt==="colon"?":":qt.charAt(0)==="#"?qt.charAt(1)==="x"?String.fromCharCode(parseInt(qt.substring(2),16)):String.fromCharCode(+qt.substring(1)):""})}var S=/(^|[^\[])\^/g;function $(Tt,Kt){Tt=Tt.source||Tt,Kt=Kt||"";var qt={replace:function(ft,ht){return ht=ht.source||ht,ht=ht.replace(S,"$1"),Tt=Tt.replace(ft,ht),qt},getRegex:function(){return new RegExp(Tt,Kt)}};return qt}var F=/[^\w:]/g,H=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(Tt,Kt,qt){if(Tt){var et;try{et=decodeURIComponent(m(qt)).replace(F,"").toLowerCase()}catch(ft){return null}if(et.indexOf("javascript:")===0||et.indexOf("vbscript:")===0||et.indexOf("data:")===0)return null}Kt&&!H.test(qt)&&(qt=J(Kt,qt));try{qt=encodeURI(qt).replace(/%25/g,"%")}catch(ft){return null}return qt}var ee={},B=/^[^:]+:\/*[^/]*$/,G=/^([^:]+:)[\s\S]*$/,le=/^([^:]+:\/*[^/]*)[\s\S]*$/;function J(Tt,Kt){ee[" "+Tt]||(B.test(Tt)?ee[" "+Tt]=Tt+"/":ee[" "+Tt]=ae(Tt,"/",!0)),Tt=ee[" "+Tt];var qt=Tt.indexOf(":")===-1;return Kt.substring(0,2)==="//"?qt?Kt:Tt.replace(G,"$1")+Kt:Kt.charAt(0)==="/"?qt?Kt:Tt.replace(le,"$1")+Kt:Tt+Kt}var we={exec:function(){}};function Ce(Tt){for(var Kt=1,qt,et;Kt<arguments.length;Kt++){qt=arguments[Kt];for(et in qt)Object.prototype.hasOwnProperty.call(qt,et)&&(Tt[et]=qt[et])}return Tt}function Le(Tt,Kt){var qt=Tt.replace(/\|/g,function(ht,Gt,Oe){for(var on=!1,Mt=Gt;--Mt>=0&&Oe[Mt]==="\\";)on=!on;return on?"|":" |"}),et=qt.split(/ \|/),ft=0;if(et.length>Kt)et.splice(Kt);else for(;et.length<Kt;)et.push("");for(;ft<et.length;ft++)et[ft]=et[ft].trim().replace(/\\\|/g,"|");return et}function ae(Tt,Kt,qt){var et=Tt.length;if(et===0)return"";for(var ft=0;ft<et;){var ht=Tt.charAt(et-ft-1);if(ht===Kt&&!qt)ft++;else if(ht!==Kt&&qt)ft++;else break}return Tt.substr(0,et-ft)}function pe(Tt,Kt){if(Tt.indexOf(Kt[1])===-1)return-1;for(var qt=Tt.length,et=0,ft=0;ft<qt;ft++)if(Tt[ft]==="\\")ft++;else if(Tt[ft]===Kt[0])et++;else if(Tt[ft]===Kt[1]&&(et--,et<0))return ft;return-1}function T(Tt){Tt&&Tt.sanitize&&!Tt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ee(Tt,Kt){if(Kt<1)return"";for(var qt="";Kt>1;)Kt&1&&(qt+=Tt),Kt>>=1,Tt+=Tt;return qt+Tt}var oe={escape:a,unescape:m,edit:$,cleanUrl:V,resolveUrl:J,noopTest:we,merge:Ce,splitCells:Le,rtrim:ae,findClosingBracket:pe,checkSanitizeDeprecation:T,repeatString:Ee},fe=Me.exports.defaults,ye=oe.rtrim,_=oe.splitCells,N=oe.escape,X=oe.findClosingBracket;function he(Tt,Kt,qt){var et=Kt.href,ft=Kt.title?N(Kt.title):null,ht=Tt[1].replace(/\\([\[\]])/g,"$1");return Tt[0].charAt(0)!=="!"?{type:"link",raw:qt,href:et,title:ft,text:ht}:{type:"image",raw:qt,href:et,title:ft,text:N(ht)}}function qe(Tt,Kt){var qt=Tt.match(/^(\s+)(?:```)/);if(qt===null)return Kt;var et=qt[1];return Kt.split(`
|
|
|
`).map(function(ft){var ht=ft.match(/^\s+/);if(ht===null)return ft;var Gt=ht[0];return Gt.length>=et.length?ft.slice(et.length):ft}).join(`
|
|
|
`)}var st=function(){function Tt(qt){this.options=qt||fe}var Kt=Tt.prototype;return Kt.space=function(et){var ft=this.rules.block.newline.exec(et);if(ft)return ft[0].length>1?{type:"space",raw:ft[0]}:{raw:`
|
|
|
`}},Kt.code=function(et){var ft=this.rules.block.code.exec(et);if(ft){var ht=ft[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ft[0],codeBlockStyle:"indented",text:this.options.pedantic?ht:ye(ht,`
|
|
|
`)}}},Kt.fences=function(et){var ft=this.rules.block.fences.exec(et);if(ft){var ht=ft[0],Gt=qe(ht,ft[3]||"");return{type:"code",raw:ht,lang:ft[2]?ft[2].trim():ft[2],text:Gt}}},Kt.heading=function(et){var ft=this.rules.block.heading.exec(et);if(ft){var ht=ft[2].trim();if(/#$/.test(ht)){var Gt=ye(ht,"#");(this.options.pedantic||!Gt||/ $/.test(Gt))&&(ht=Gt.trim())}return{type:"heading",raw:ft[0],depth:ft[1].length,text:ht}}},Kt.nptable=function(et){var ft=this.rules.block.nptable.exec(et);if(ft){var ht={type:"table",header:_(ft[1].replace(/^ *| *\| *$/g,"")),align:ft[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ft[3]?ft[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:ft[0]};if(ht.header.length===ht.align.length){var Gt=ht.align.length,Oe;for(Oe=0;Oe<Gt;Oe++)/^ *-+: *$/.test(ht.align[Oe])?ht.align[Oe]="right":/^ *:-+: *$/.test(ht.align[Oe])?ht.align[Oe]="center":/^ *:-+ *$/.test(ht.align[Oe])?ht.align[Oe]="left":ht.align[Oe]=null;for(Gt=ht.cells.length,Oe=0;Oe<Gt;Oe++)ht.cells[Oe]=_(ht.cells[Oe],ht.header.length);return ht}}},Kt.hr=function(et){var ft=this.rules.block.hr.exec(et);if(ft)return{type:"hr",raw:ft[0]}},Kt.blockquote=function(et){var ft=this.rules.block.blockquote.exec(et);if(ft){var ht=ft[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ft[0],text:ht}}},Kt.list=function(et){var ft=this.rules.block.list.exec(et);if(ft){var ht=ft[0],Gt=ft[2],Oe=Gt.length>1,on={type:"list",raw:ht,ordered:Oe,start:Oe?+Gt.slice(0,-1):"",loose:!1,items:[]},Mt=ft[0].match(this.rules.block.item),On=!1,Xn,yi,$i,Dn,zn,Xt,$r,en,Pt,Et=Mt.length;$i=this.rules.block.listItemStart.exec(Mt[0]);for(var _r=0;_r<Et;_r++){if(Xn=Mt[_r],ht=Xn,this.options.pedantic||(Pt=Xn.match(new RegExp("\\n\\s*\\n {0,"+($i[0].length-1)+"}\\S")),Pt&&(zn=Xn.length-Pt.index+Mt.slice(_r+1).join(`
|
|
|
`).length,on.raw=on.raw.substring(0,on.raw.length-zn),Xn=Xn.substring(0,Pt.index),ht=Xn,Et=_r+1)),_r!==Et-1){if(Dn=this.rules.block.listItemStart.exec(Mt[_r+1]),this.options.pedantic?Dn[1].length>$i[1].length:Dn[1].length>=$i[0].length||Dn[1].length>3){Mt.splice(_r,2,Mt[_r]+(!this.options.pedantic&&Dn[1].length<$i[0].length&&!Mt[_r].match(/\n$/)?"":`
|
|
|
`)+Mt[_r+1]),_r--,Et--;continue}else(!this.options.pedantic||this.options.smartLists?Dn[2][Dn[2].length-1]!==Gt[Gt.length-1]:Oe===(Dn[2].length===1))&&(zn=Mt.slice(_r+1).join(`
|
|
|
`).length,on.raw=on.raw.substring(0,on.raw.length-zn),_r=Et-1);$i=Dn}yi=Xn.length,Xn=Xn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Xn.indexOf(`
|
|
|
`)&&(yi-=Xn.length,Xn=this.options.pedantic?Xn.replace(/^ {1,4}/gm,""):Xn.replace(new RegExp("^ {1,"+yi+"}","gm"),"")),Xn=ye(Xn,`
|
|
|
`),_r!==Et-1&&(ht=ht+`
|
|
|
`),Xt=On||/\n\n(?!\s*$)/.test(ht),_r!==Et-1&&(On=ht.slice(-2)===`
|
|
|
|
|
|
`,Xt||(Xt=On)),Xt&&(on.loose=!0),this.options.gfm&&($r=/^\[[ xX]\] /.test(Xn),en=void 0,$r&&(en=Xn[1]!==" ",Xn=Xn.replace(/^\[[ xX]\] +/,""))),on.items.push({type:"list_item",raw:ht,task:$r,checked:en,loose:Xt,text:Xn})}return on}},Kt.html=function(et){var ft=this.rules.block.html.exec(et);if(ft)return{type:this.options.sanitize?"paragraph":"html",raw:ft[0],pre:!this.options.sanitizer&&(ft[1]==="pre"||ft[1]==="script"||ft[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ft[0]):N(ft[0]):ft[0]}},Kt.def=function(et){var ft=this.rules.block.def.exec(et);if(ft){ft[3]&&(ft[3]=ft[3].substring(1,ft[3].length-1));var ht=ft[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:ht,raw:ft[0],href:ft[2],title:ft[3]}}},Kt.table=function(et){var ft=this.rules.block.table.exec(et);if(ft){var ht={type:"table",header:_(ft[1].replace(/^ *| *\| *$/g,"")),align:ft[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ft[3]?ft[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(ht.header.length===ht.align.length){ht.raw=ft[0];var Gt=ht.align.length,Oe;for(Oe=0;Oe<Gt;Oe++)/^ *-+: *$/.test(ht.align[Oe])?ht.align[Oe]="right":/^ *:-+: *$/.test(ht.align[Oe])?ht.align[Oe]="center":/^ *:-+ *$/.test(ht.align[Oe])?ht.align[Oe]="left":ht.align[Oe]=null;for(Gt=ht.cells.length,Oe=0;Oe<Gt;Oe++)ht.cells[Oe]=_(ht.cells[Oe].replace(/^ *\| *| *\| *$/g,""),ht.header.length);return ht}}},Kt.lheading=function(et){var ft=this.rules.block.lheading.exec(et);if(ft)return{type:"heading",raw:ft[0],depth:ft[2].charAt(0)==="="?1:2,text:ft[1]}},Kt.paragraph=function(et){var ft=this.rules.block.paragraph.exec(et);if(ft)return{type:"paragraph",raw:ft[0],text:ft[1].charAt(ft[1].length-1)===`
|
|
|
`?ft[1].slice(0,-1):ft[1]}},Kt.text=function(et){var ft=this.rules.block.text.exec(et);if(ft)return{type:"text",raw:ft[0],text:ft[0]}},Kt.escape=function(et){var ft=this.rules.inline.escape.exec(et);if(ft)return{type:"escape",raw:ft[0],text:N(ft[1])}},Kt.tag=function(et,ft,ht){var Gt=this.rules.inline.tag.exec(et);if(Gt)return!ft&&/^<a /i.test(Gt[0])?ft=!0:ft&&/^<\/a>/i.test(Gt[0])&&(ft=!1),!ht&&/^<(pre|code|kbd|script)(\s|>)/i.test(Gt[0])?ht=!0:ht&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Gt[0])&&(ht=!1),{type:this.options.sanitize?"text":"html",raw:Gt[0],inLink:ft,inRawBlock:ht,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Gt[0]):N(Gt[0]):Gt[0]}},Kt.link=function(et){var ft=this.rules.inline.link.exec(et);if(ft){var ht=ft[2].trim();if(!this.options.pedantic&&/^</.test(ht)){if(!/>$/.test(ht))return;var Gt=ye(ht.slice(0,-1),"\\");if((ht.length-Gt.length)%2===0)return}else{var Oe=X(ft[2],"()");if(Oe>-1){var on=ft[0].indexOf("!")===0?5:4,Mt=on+ft[1].length+Oe;ft[2]=ft[2].substring(0,Oe),ft[0]=ft[0].substring(0,Mt).trim(),ft[3]=""}}var On=ft[2],Xn="";if(this.options.pedantic){var yi=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(On);yi&&(On=yi[1],Xn=yi[3])}else Xn=ft[3]?ft[3].slice(1,-1):"";return On=On.trim(),/^</.test(On)&&(this.options.pedantic&&!/>$/.test(ht)?On=On.slice(1):On=On.slice(1,-1)),he(ft,{href:On&&On.replace(this.rules.inline._escapes,"$1"),title:Xn&&Xn.replace(this.rules.inline._escapes,"$1")},ft[0])}},Kt.reflink=function(et,ft){var ht;if((ht=this.rules.inline.reflink.exec(et))||(ht=this.rules.inline.nolink.exec(et))){var Gt=(ht[2]||ht[1]).replace(/\s+/g," ");if(Gt=ft[Gt.toLowerCase()],!Gt||!Gt.href){var Oe=ht[0].charAt(0);return{type:"text",raw:Oe,text:Oe}}return he(ht,Gt,ht[0])}},Kt.emStrong=function(et,ft,ht){ht===void 0&&(ht="");var Gt=this.rules.inline.emStrong.lDelim.exec(et);if(Gt&&!(Gt[3]&&ht.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var Oe=Gt[1]||Gt[2]||"";if(!Oe||Oe&&(ht===""||this.rules.inline.punctuation.exec(ht))){var on=Gt[0].length-1,Mt,On,Xn=on,yi=0,$i=Gt[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for($i.lastIndex=0,ft=ft.slice(-1*et.length+on);(Gt=$i.exec(ft))!=null;)if(Mt=Gt[1]||Gt[2]||Gt[3]||Gt[4]||Gt[5]||Gt[6],!!Mt){if(On=Mt.length,Gt[3]||Gt[4]){Xn+=On;continue}else if((Gt[5]||Gt[6])&&on%3&&!((on+On)%3)){yi+=On;continue}if(Xn-=On,!(Xn>0))return On=Math.min(On,On+Xn+yi),Math.min(on,On)%2?{type:"em",raw:et.slice(0,on+Gt.index+On+1),text:et.slice(1,on+Gt.index+On)}:{type:"strong",raw:et.slice(0,on+Gt.index+On+1),text:et.slice(2,on+Gt.index+On-1)}}}}},Kt.codespan=function(et){var ft=this.rules.inline.code.exec(et);if(ft){var ht=ft[2].replace(/\n/g," "),Gt=/[^ ]/.test(ht),Oe=/^ /.test(ht)&&/ $/.test(ht);return Gt&&Oe&&(ht=ht.substring(1,ht.length-1)),ht=N(ht,!0),{type:"codespan",raw:ft[0],text:ht}}},Kt.br=function(et){var ft=this.rules.inline.br.exec(et);if(ft)return{type:"br",raw:ft[0]}},Kt.del=function(et){var ft=this.rules.inline.del.exec(et);if(ft)return{type:"del",raw:ft[0],text:ft[2]}},Kt.autolink=function(et,ft){var ht=this.rules.inline.autolink.exec(et);if(ht){var Gt,Oe;return ht[2]==="@"?(Gt=N(this.options.mangle?ft(ht[1]):ht[1]),Oe="mailto:"+Gt):(Gt=N(ht[1]),Oe=Gt),{type:"link",raw:ht[0],text:Gt,href:Oe,tokens:[{type:"text",raw:Gt,text:Gt}]}}},Kt.url=function(et,ft){var ht;if(ht=this.rules.inline.url.exec(et)){var Gt,Oe;if(ht[2]==="@")Gt=N(this.options.mangle?ft(ht[0]):ht[0]),Oe="mailto:"+Gt;else{var on;do on=ht[0],ht[0]=this.rules.inline._backpedal.exec(ht[0])[0];while(on!==ht[0]);Gt=N(ht[0]),ht[1]==="www."?Oe="http://"+Gt:Oe=Gt}return{type:"link",raw:ht[0],text:Gt,href:Oe,tokens:[{type:"text",raw:Gt,text:Gt}]}}},Kt.inlineText=function(et,ft,ht){var Gt=this.rules.inline.text.exec(et);if(Gt){var Oe;return ft?Oe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Gt[0]):N(Gt[0]):Gt[0]:Oe=N(this.options.smartypants?ht(Gt[0]):Gt[0]),{type:"text",raw:Gt[0],text:Oe}}},Tt}(),nt=oe.noopTest,Rt=oe.edit,sr=oe.merge,Jt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:nt,table:nt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Jt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Jt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Jt.def=Rt(Jt.def).replace("label",Jt._label).replace("title",Jt._title).getRegex(),Jt.bullet=/(?:[*+-]|\d{1,9}[.)])/,Jt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Jt.item=Rt(Jt.item,"gm").replace(/bull/g,Jt.bullet).getRegex(),Jt.listItemStart=Rt(/^( *)(bull) */).replace("bull",Jt.bullet).getRegex(),Jt.list=Rt(Jt.list).replace(/bull/g,Jt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Jt.def.source+")").getRegex(),Jt._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Jt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Jt.html=Rt(Jt.html,"i").replace("comment",Jt._comment).replace("tag",Jt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jt.paragraph=Rt(Jt._paragraph).replace("hr",Jt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Jt._tag).getRegex(),Jt.blockquote=Rt(Jt.blockquote).replace("paragraph",Jt.paragraph).getRegex(),Jt.normal=sr({},Jt),Jt.gfm=sr({},Jt.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Jt.gfm.nptable=Rt(Jt.gfm.nptable).replace("hr",Jt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Jt._tag).getRegex(),Jt.gfm.table=Rt(Jt.gfm.table).replace("hr",Jt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Jt._tag).getRegex(),Jt.pedantic=sr({},Jt.normal,{html:Rt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Jt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nt,paragraph:Rt(Jt.normal._paragraph).replace("hr",Jt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",Jt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var We={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:nt,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:nt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};We._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",We.punctuation=Rt(We.punctuation).replace(/punctuation/g,We._punctuation).getRegex(),We.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,We.escapedEmSt=/\\\*|\\_/g,We._comment=Rt(Jt._comment).replace("(?:-->|$)","-->").getRegex(),We.emStrong.lDelim=Rt(We.emStrong.lDelim).replace(/punct/g,We._punctuation).getRegex(),We.emStrong.rDelimAst=Rt(We.emStrong.rDelimAst,"g").replace(/punct/g,We._punctuation).getRegex(),We.emStrong.rDelimUnd=Rt(We.emStrong.rDelimUnd,"g").replace(/punct/g,We._punctuation).getRegex(),We._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,We._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,We._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,We.autolink=Rt(We.autolink).replace("scheme",We._scheme).replace("email",We._email).getRegex(),We._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,We.tag=Rt(We.tag).replace("comment",We._comment).replace("attribute",We._attribute).getRegex(),We._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,We._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,We._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,We.link=Rt(We.link).replace("label",We._label).replace("href",We._href).replace("title",We._title).getRegex(),We.reflink=Rt(We.reflink).replace("label",We._label).getRegex(),We.reflinkSearch=Rt(We.reflinkSearch,"g").replace("reflink",We.reflink).replace("nolink",We.nolink).getRegex(),We.normal=sr({},We),We.pedantic=sr({},We.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Rt(/^!?\[(label)\]\((.*?)\)/).replace("label",We._label).getRegex(),reflink:Rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",We._label).getRegex()}),We.gfm=sr({},We.normal,{escape:Rt(We.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),We.gfm.url=Rt(We.gfm.url,"i").replace("email",We.gfm._extended_email).getRegex(),We.breaks=sr({},We.gfm,{br:Rt(We.br).replace("{2,}","*").getRegex(),text:Rt(We.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Er={block:Jt,inline:We},xr=st,Wr=Me.exports.defaults,Cr=Er.block,_e=Er.inline,kt=oe.repeatString;function K(Tt){return Tt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function y(Tt){var Kt="",qt,et,ft=Tt.length;for(qt=0;qt<ft;qt++)et=Tt.charCodeAt(qt),Math.random()>.5&&(et="x"+et.toString(16)),Kt+="&#"+et+";";return Kt}var h=function(){function Tt(qt){this.tokens=[],this.tokens.links=Object.create(null),this.options=qt||Wr,this.options.tokenizer=this.options.tokenizer||new xr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var et={block:Cr.normal,inline:_e.normal};this.options.pedantic?(et.block=Cr.pedantic,et.inline=_e.pedantic):this.options.gfm&&(et.block=Cr.gfm,this.options.breaks?et.inline=_e.breaks:et.inline=_e.gfm),this.tokenizer.rules=et}Tt.lex=function(et,ft){var ht=new Tt(ft);return ht.lex(et)},Tt.lexInline=function(et,ft){var ht=new Tt(ft);return ht.inlineTokens(et)};var Kt=Tt.prototype;return Kt.lex=function(et){return et=et.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(et,this.tokens,!0),this.inline(this.tokens),this.tokens},Kt.blockTokens=function(et,ft,ht){ft===void 0&&(ft=[]),ht===void 0&&(ht=!0),this.options.pedantic&&(et=et.replace(/^ +$/gm,""));for(var Gt,Oe,on,Mt;et;){if(Gt=this.tokenizer.space(et)){et=et.substring(Gt.raw.length),Gt.type&&ft.push(Gt);continue}if(Gt=this.tokenizer.code(et)){et=et.substring(Gt.raw.length),Mt=ft[ft.length-1],Mt&&Mt.type==="paragraph"?(Mt.raw+=`
|
|
|
`+Gt.raw,Mt.text+=`
|
|
|
`+Gt.text):ft.push(Gt);continue}if(Gt=this.tokenizer.fences(et)){et=et.substring(Gt.raw.length),ft.push(Gt);continue}if(Gt=this.tokenizer.heading(et)){et=et.substring(Gt.raw.length),ft.push(Gt);continue}if(Gt=this.tokenizer.nptable(et)){et=et.substring(Gt.raw.length),ft.push(Gt);continue}if(Gt=this.tokenizer.hr(et)){et=et.substring(Gt.raw.length),ft.push(Gt);continue}if(Gt=this.tokenizer.blockquote(et)){et=et.substring(Gt.raw.length),Gt.tokens=this.blockTokens(Gt.text,[],ht),ft.push(Gt);continue}if(Gt=this.tokenizer.list(et)){for(et=et.substring(Gt.raw.length),on=Gt.items.length,Oe=0;Oe<on;Oe++)Gt.items[Oe].tokens=this.blockTokens(Gt.items[Oe].text,[],!1);ft.push(Gt);continue}if(Gt=this.tokenizer.html(et)){et=et.substring(Gt.raw.length),ft.push(Gt);continue}if(ht&&(Gt=this.tokenizer.def(et))){et=et.substring(Gt.raw.length),this.tokens.links[Gt.tag]||(this.tokens.links[Gt.tag]={href:Gt.href,title:Gt.title});continue}if(Gt=this.tokenizer.table(et)){et=et.substring(Gt.raw.length),ft.push(Gt);continue}if(Gt=this.tokenizer.lheading(et)){et=et.substring(Gt.raw.length),ft.push(Gt);continue}if(ht&&(Gt=this.tokenizer.paragraph(et))){et=et.substring(Gt.raw.length),ft.push(Gt);continue}if(Gt=this.tokenizer.text(et)){et=et.substring(Gt.raw.length),Mt=ft[ft.length-1],Mt&&Mt.type==="text"?(Mt.raw+=`
|
|
|
`+Gt.raw,Mt.text+=`
|
|
|
`+Gt.text):ft.push(Gt);continue}if(et){var On="Infinite loop on byte: "+et.charCodeAt(0);if(this.options.silent){console.error(On);break}else throw new Error(On)}}return ft},Kt.inline=function(et){var ft,ht,Gt,Oe,on,Mt,On=et.length;for(ft=0;ft<On;ft++)switch(Mt=et[ft],Mt.type){case"paragraph":case"text":case"heading":{Mt.tokens=[],this.inlineTokens(Mt.text,Mt.tokens);break}case"table":{for(Mt.tokens={header:[],cells:[]},Oe=Mt.header.length,ht=0;ht<Oe;ht++)Mt.tokens.header[ht]=[],this.inlineTokens(Mt.header[ht],Mt.tokens.header[ht]);for(Oe=Mt.cells.length,ht=0;ht<Oe;ht++)for(on=Mt.cells[ht],Mt.tokens.cells[ht]=[],Gt=0;Gt<on.length;Gt++)Mt.tokens.cells[ht][Gt]=[],this.inlineTokens(on[Gt],Mt.tokens.cells[ht][Gt]);break}case"blockquote":{this.inline(Mt.tokens);break}case"list":{for(Oe=Mt.items.length,ht=0;ht<Oe;ht++)this.inline(Mt.items[ht].tokens);break}}return et},Kt.inlineTokens=function(et,ft,ht,Gt){ft===void 0&&(ft=[]),ht===void 0&&(ht=!1),Gt===void 0&&(Gt=!1);var Oe,on,Mt=et,On,Xn,yi;if(this.tokens.links){var $i=Object.keys(this.tokens.links);if($i.length>0)for(;(On=this.tokenizer.rules.inline.reflinkSearch.exec(Mt))!=null;)$i.includes(On[0].slice(On[0].lastIndexOf("[")+1,-1))&&(Mt=Mt.slice(0,On.index)+"["+kt("a",On[0].length-2)+"]"+Mt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(On=this.tokenizer.rules.inline.blockSkip.exec(Mt))!=null;)Mt=Mt.slice(0,On.index)+"["+kt("a",On[0].length-2)+"]"+Mt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(On=this.tokenizer.rules.inline.escapedEmSt.exec(Mt))!=null;)Mt=Mt.slice(0,On.index)+"++"+Mt.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;et;){if(Xn||(yi=""),Xn=!1,Oe=this.tokenizer.escape(et)){et=et.substring(Oe.raw.length),ft.push(Oe);continue}if(Oe=this.tokenizer.tag(et,ht,Gt)){et=et.substring(Oe.raw.length),ht=Oe.inLink,Gt=Oe.inRawBlock;var Dn=ft[ft.length-1];Dn&&Oe.type==="text"&&Dn.type==="text"?(Dn.raw+=Oe.raw,Dn.text+=Oe.text):ft.push(Oe);continue}if(Oe=this.tokenizer.link(et)){et=et.substring(Oe.raw.length),Oe.type==="link"&&(Oe.tokens=this.inlineTokens(Oe.text,[],!0,Gt)),ft.push(Oe);continue}if(Oe=this.tokenizer.reflink(et,this.tokens.links)){et=et.substring(Oe.raw.length);var zn=ft[ft.length-1];Oe.type==="link"?(Oe.tokens=this.inlineTokens(Oe.text,[],!0,Gt),ft.push(Oe)):zn&&Oe.type==="text"&&zn.type==="text"?(zn.raw+=Oe.raw,zn.text+=Oe.text):ft.push(Oe);continue}if(Oe=this.tokenizer.emStrong(et,Mt,yi)){et=et.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],ht,Gt),ft.push(Oe);continue}if(Oe=this.tokenizer.codespan(et)){et=et.substring(Oe.raw.length),ft.push(Oe);continue}if(Oe=this.tokenizer.br(et)){et=et.substring(Oe.raw.length),ft.push(Oe);continue}if(Oe=this.tokenizer.del(et)){et=et.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],ht,Gt),ft.push(Oe);continue}if(Oe=this.tokenizer.autolink(et,y)){et=et.substring(Oe.raw.length),ft.push(Oe);continue}if(!ht&&(Oe=this.tokenizer.url(et,y))){et=et.substring(Oe.raw.length),ft.push(Oe);continue}if(Oe=this.tokenizer.inlineText(et,Gt,K)){et=et.substring(Oe.raw.length),Oe.raw.slice(-1)!=="_"&&(yi=Oe.raw.slice(-1)),Xn=!0,on=ft[ft.length-1],on&&on.type==="text"?(on.raw+=Oe.raw,on.text+=Oe.text):ft.push(Oe);continue}if(et){var Xt="Infinite loop on byte: "+et.charCodeAt(0);if(this.options.silent){console.error(Xt);break}else throw new Error(Xt)}}return ft},g(Tt,null,[{key:"rules",get:function(){return{block:Cr,inline:_e}}}]),Tt}(),D=Me.exports.defaults,Ae=oe.cleanUrl,Z=oe.escape,k=function(){function Tt(qt){this.options=qt||D}var Kt=Tt.prototype;return Kt.code=function(et,ft,ht){var Gt=(ft||"").match(/\S*/)[0];if(this.options.highlight){var Oe=this.options.highlight(et,Gt);Oe!=null&&Oe!==et&&(ht=!0,et=Oe)}return et=et.replace(/\n$/,"")+`
|
|
|
`,Gt?'<pre><code class="'+this.options.langPrefix+Z(Gt,!0)+'">'+(ht?et:Z(et,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(ht?et:Z(et,!0))+`</code></pre>
|
|
|
`},Kt.blockquote=function(et){return`<blockquote>
|
|
|
`+et+`</blockquote>
|
|
|
`},Kt.html=function(et){return et},Kt.heading=function(et,ft,ht,Gt){return this.options.headerIds?"<h"+ft+' id="'+this.options.headerPrefix+Gt.slug(ht)+'">'+et+"</h"+ft+`>
|
|
|
`:"<h"+ft+">"+et+"</h"+ft+`>
|
|
|
`},Kt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Kt.list=function(et,ft,ht){var Gt=ft?"ol":"ul",Oe=ft&&ht!==1?' start="'+ht+'"':"";return"<"+Gt+Oe+`>
|
|
|
`+et+"</"+Gt+`>
|
|
|
`},Kt.listitem=function(et){return"<li>"+et+`</li>
|
|
|
`},Kt.checkbox=function(et){return"<input "+(et?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Kt.paragraph=function(et){return"<p>"+et+`</p>
|
|
|
`},Kt.table=function(et,ft){return ft&&(ft="<tbody>"+ft+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+et+`</thead>
|
|
|
`+ft+`</table>
|
|
|
`},Kt.tablerow=function(et){return`<tr>
|
|
|
`+et+`</tr>
|
|
|
`},Kt.tablecell=function(et,ft){var ht=ft.header?"th":"td",Gt=ft.align?"<"+ht+' align="'+ft.align+'">':"<"+ht+">";return Gt+et+"</"+ht+`>
|
|
|
`},Kt.strong=function(et){return"<strong>"+et+"</strong>"},Kt.em=function(et){return"<em>"+et+"</em>"},Kt.codespan=function(et){return"<code>"+et+"</code>"},Kt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Kt.del=function(et){return"<del>"+et+"</del>"},Kt.link=function(et,ft,ht){if(et=Ae(this.options.sanitize,this.options.baseUrl,et),et===null)return ht;var Gt='<a href="'+Z(et)+'"';return ft&&(Gt+=' title="'+ft+'"'),Gt+=">"+ht+"</a>",Gt},Kt.image=function(et,ft,ht){if(et=Ae(this.options.sanitize,this.options.baseUrl,et),et===null)return ht;var Gt='<img src="'+et+'" alt="'+ht+'"';return ft&&(Gt+=' title="'+ft+'"'),Gt+=this.options.xhtml?"/>":">",Gt},Kt.text=function(et){return et},Tt}(),te=function(){function Tt(){}var Kt=Tt.prototype;return Kt.strong=function(et){return et},Kt.em=function(et){return et},Kt.codespan=function(et){return et},Kt.del=function(et){return et},Kt.html=function(et){return et},Kt.text=function(et){return et},Kt.link=function(et,ft,ht){return""+ht},Kt.image=function(et,ft,ht){return""+ht},Kt.br=function(){return""},Tt}(),Se=function(){function Tt(){this.seen={}}var Kt=Tt.prototype;return Kt.serialize=function(et){return et.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Kt.getNextSafeSlug=function(et,ft){var ht=et,Gt=0;if(this.seen.hasOwnProperty(ht)){Gt=this.seen[et];do Gt++,ht=et+"-"+Gt;while(this.seen.hasOwnProperty(ht))}return ft||(this.seen[et]=Gt,this.seen[ht]=0),ht},Kt.slug=function(et,ft){ft===void 0&&(ft={});var ht=this.serialize(et);return this.getNextSafeSlug(ht,ft.dryrun)},Tt}(),Be=k,Ie=te,Ge=Se,mt=Me.exports.defaults,$e=oe.unescape,tt=function(){function Tt(qt){this.options=qt||mt,this.options.renderer=this.options.renderer||new Be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ie,this.slugger=new Ge}Tt.parse=function(et,ft){var ht=new Tt(ft);return ht.parse(et)},Tt.parseInline=function(et,ft){var ht=new Tt(ft);return ht.parseInline(et)};var Kt=Tt.prototype;return Kt.parse=function(et,ft){ft===void 0&&(ft=!0);var ht="",Gt,Oe,on,Mt,On,Xn,yi,$i,Dn,zn,Xt,$r,en,Pt,Et,_r,Fr,In,an=et.length;for(Gt=0;Gt<an;Gt++)switch(zn=et[Gt],zn.type){case"space":continue;case"hr":{ht+=this.renderer.hr();continue}case"heading":{ht+=this.renderer.heading(this.parseInline(zn.tokens),zn.depth,$e(this.parseInline(zn.tokens,this.textRenderer)),this.slugger);continue}case"code":{ht+=this.renderer.code(zn.text,zn.lang,zn.escaped);continue}case"table":{for($i="",yi="",Mt=zn.header.length,Oe=0;Oe<Mt;Oe++)yi+=this.renderer.tablecell(this.parseInline(zn.tokens.header[Oe]),{header:!0,align:zn.align[Oe]});for($i+=this.renderer.tablerow(yi),Dn="",Mt=zn.cells.length,Oe=0;Oe<Mt;Oe++){for(Xn=zn.tokens.cells[Oe],yi="",On=Xn.length,on=0;on<On;on++)yi+=this.renderer.tablecell(this.parseInline(Xn[on]),{header:!1,align:zn.align[on]});Dn+=this.renderer.tablerow(yi)}ht+=this.renderer.table($i,Dn);continue}case"blockquote":{Dn=this.parse(zn.tokens),ht+=this.renderer.blockquote(Dn);continue}case"list":{for(Xt=zn.ordered,$r=zn.start,en=zn.loose,Mt=zn.items.length,Dn="",Oe=0;Oe<Mt;Oe++)Et=zn.items[Oe],_r=Et.checked,Fr=Et.task,Pt="",Et.task&&(In=this.renderer.checkbox(_r),en?Et.tokens.length>0&&Et.tokens[0].type==="text"?(Et.tokens[0].text=In+" "+Et.tokens[0].text,Et.tokens[0].tokens&&Et.tokens[0].tokens.length>0&&Et.tokens[0].tokens[0].type==="text"&&(Et.tokens[0].tokens[0].text=In+" "+Et.tokens[0].tokens[0].text)):Et.tokens.unshift({type:"text",text:In}):Pt+=In),Pt+=this.parse(Et.tokens,en),Dn+=this.renderer.listitem(Pt,Fr,_r);ht+=this.renderer.list(Dn,Xt,$r);continue}case"html":{ht+=this.renderer.html(zn.text);continue}case"paragraph":{ht+=this.renderer.paragraph(this.parseInline(zn.tokens));continue}case"text":{for(Dn=zn.tokens?this.parseInline(zn.tokens):zn.text;Gt+1<an&&et[Gt+1].type==="text";)zn=et[++Gt],Dn+=`
|
|
|
`+(zn.tokens?this.parseInline(zn.tokens):zn.text);ht+=ft?this.renderer.paragraph(Dn):Dn;continue}default:{var _n='Token with "'+zn.type+'" type was not found.';if(this.options.silent){console.error(_n);return}else throw new Error(_n)}}return ht},Kt.parseInline=function(et,ft){ft=ft||this.renderer;var ht="",Gt,Oe,on=et.length;for(Gt=0;Gt<on;Gt++)switch(Oe=et[Gt],Oe.type){case"escape":{ht+=ft.text(Oe.text);break}case"html":{ht+=ft.html(Oe.text);break}case"link":{ht+=ft.link(Oe.href,Oe.title,this.parseInline(Oe.tokens,ft));break}case"image":{ht+=ft.image(Oe.href,Oe.title,Oe.text);break}case"strong":{ht+=ft.strong(this.parseInline(Oe.tokens,ft));break}case"em":{ht+=ft.em(this.parseInline(Oe.tokens,ft));break}case"codespan":{ht+=ft.codespan(Oe.text);break}case"br":{ht+=ft.br();break}case"del":{ht+=ft.del(this.parseInline(Oe.tokens,ft));break}case"text":{ht+=ft.text(Oe.text);break}default:{var Mt='Token with "'+Oe.type+'" type was not found.';if(this.options.silent){console.error(Mt);return}else throw new Error(Mt)}}return ht},Tt}(),dt=h,Ze=tt,Ke=st,Bt=k,Vt=te,Ut=Se,mr=oe.merge,br=oe.checkSanitizeDeprecation,re=oe.escape,ue=Me.exports.getDefaults,rr=Me.exports.changeDefaults,Qe=Me.exports.defaults;function ot(Tt,Kt,qt){if(typeof Tt=="undefined"||Tt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Tt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Tt)+", string expected");if(typeof Kt=="function"&&(qt=Kt,Kt=null),Kt=mr({},ot.defaults,Kt||{}),br(Kt),qt){var et=Kt.highlight,ft;try{ft=dt.lex(Tt,Kt)}catch(on){return qt(on)}var ht=function(Mt){var On;if(!Mt)try{Kt.walkTokens&&ot.walkTokens(ft,Kt.walkTokens),On=Ze.parse(ft,Kt)}catch(Xn){Mt=Xn}return Kt.highlight=et,Mt?qt(Mt):qt(null,On)};if(!et||et.length<3||(delete Kt.highlight,!ft.length))return ht();var Gt=0;ot.walkTokens(ft,function(on){on.type==="code"&&(Gt++,setTimeout(function(){et(on.text,on.lang,function(Mt,On){if(Mt)return ht(Mt);On!=null&&On!==on.text&&(on.text=On,on.escaped=!0),Gt--,Gt===0&&ht()})},0))}),Gt===0&&ht();return}try{var Oe=dt.lex(Tt,Kt);return Kt.walkTokens&&ot.walkTokens(Oe,Kt.walkTokens),Ze.parse(Oe,Kt)}catch(on){if(on.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Kt.silent)return"<p>An error occurred:</p><pre>"+re(on.message+"",!0)+"</pre>";throw on}}ot.options=ot.setOptions=function(Tt){return mr(ot.defaults,Tt),rr(ot.defaults),ot},ot.getDefaults=ue,ot.defaults=Qe,ot.use=function(Tt){var Kt=mr({},Tt);if(Tt.renderer&&function(){var et=ot.defaults.renderer||new Bt,ft=function(Oe){var on=et[Oe];et[Oe]=function(){for(var Mt=arguments.length,On=new Array(Mt),Xn=0;Xn<Mt;Xn++)On[Xn]=arguments[Xn];var yi=Tt.renderer[Oe].apply(et,On);return yi===!1&&(yi=on.apply(et,On)),yi}};for(var ht in Tt.renderer)ft(ht);Kt.renderer=et}(),Tt.tokenizer&&function(){var et=ot.defaults.tokenizer||new Ke,ft=function(Oe){var on=et[Oe];et[Oe]=function(){for(var Mt=arguments.length,On=new Array(Mt),Xn=0;Xn<Mt;Xn++)On[Xn]=arguments[Xn];var yi=Tt.tokenizer[Oe].apply(et,On);return yi===!1&&(yi=on.apply(et,On)),yi}};for(var ht in Tt.tokenizer)ft(ht);Kt.tokenizer=et}(),Tt.walkTokens){var qt=ot.defaults.walkTokens;Kt.walkTokens=function(et){Tt.walkTokens(et),qt&&qt(et)}}ot.setOptions(Kt)},ot.walkTokens=function(Tt,Kt){for(var qt=se(Tt),et;!(et=qt()).done;){var ft=et.value;switch(Kt(ft),ft.type){case"table":{for(var ht=se(ft.tokens.header),Gt;!(Gt=ht()).done;){var Oe=Gt.value;ot.walkTokens(Oe,Kt)}for(var on=se(ft.tokens.cells),Mt;!(Mt=on()).done;)for(var On=Mt.value,Xn=se(On),yi;!(yi=Xn()).done;){var $i=yi.value;ot.walkTokens($i,Kt)}break}case"list":{ot.walkTokens(ft.items,Kt);break}default:ft.tokens&&ot.walkTokens(ft.tokens,Kt)}}},ot.parseInline=function(Tt,Kt){if(typeof Tt=="undefined"||Tt===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Tt!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Tt)+", string expected");Kt=mr({},ot.defaults,Kt||{}),br(Kt);try{var qt=dt.lexInline(Tt,Kt);return Kt.walkTokens&&ot.walkTokens(qt,Kt.walkTokens),Ze.parseInline(qt,Kt)}catch(et){if(et.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Kt.silent)return"<p>An error occurred:</p><pre>"+re(et.message+"",!0)+"</pre>";throw et}},ot.Parser=Ze,ot.parser=Ze.parse,ot.Renderer=Bt,ot.TextRenderer=Vt,ot.Lexer=dt,ot.lexer=dt.lex,ot.Tokenizer=Ke,ot.Slugger=Ut,ot.parse=ot;var Jr=ot;return Jr})},11690:function(yn){const Wt=/[&<>"']/,g=/[&<>"']/g,xe=/[<>"']|&(?!#?\w+;)/,Fe=/[<>"']|&(?!#?\w+;)/g,se={"&":"&","<":"<",">":">",'"':""","'":"'"},Me=J=>se[J];function ie(J,we){if(we){if(Wt.test(J))return J.replace(g,Me)}else if(xe.test(J))return J.replace(Fe,Me);return J}const Y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function O(J){return J.replace(Y,(we,Ce)=>(Ce=Ce.toLowerCase(),Ce==="colon"?":":Ce.charAt(0)==="#"?Ce.charAt(1)==="x"?String.fromCharCode(parseInt(Ce.substring(2),16)):String.fromCharCode(+Ce.substring(1)):""))}const I=/(^|[^\[])\^/g;function n(J,we){J=J.source||J,we=we||"";const Ce={replace:(Le,ae)=>(ae=ae.source||ae,ae=ae.replace(I,"$1"),J=J.replace(Le,ae),Ce),getRegex:()=>new RegExp(J,we)};return Ce}const o=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(J,we,Ce){if(J){let Le;try{Le=decodeURIComponent(O(Ce)).replace(o,"").toLowerCase()}catch(ae){return null}if(Le.indexOf("javascript:")===0||Le.indexOf("vbscript:")===0||Le.indexOf("data:")===0)return null}we&&!L.test(Ce)&&(Ce=$(we,Ce));try{Ce=encodeURI(Ce).replace(/%25/g,"%")}catch(Le){return null}return Ce}const a={},d=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,S=/^([^:]+:\/*[^/]*)[\s\S]*$/;function $(J,we){a[" "+J]||(d.test(J)?a[" "+J]=J+"/":a[" "+J]=ee(J,"/",!0)),J=a[" "+J];const Ce=J.indexOf(":")===-1;return we.substring(0,2)==="//"?Ce?we:J.replace(m,"$1")+we:we.charAt(0)==="/"?Ce?we:J.replace(S,"$1")+we:J+we}const F={exec:function(){}};function H(J){let we=1,Ce,Le;for(;we<arguments.length;we++){Ce=arguments[we];for(Le in Ce)Object.prototype.hasOwnProperty.call(Ce,Le)&&(J[Le]=Ce[Le])}return J}function V(J,we){const Ce=J.replace(/\|/g,(pe,T,Ee)=>{let oe=!1,fe=T;for(;--fe>=0&&Ee[fe]==="\\";)oe=!oe;return oe?"|":" |"}),Le=Ce.split(/ \|/);let ae=0;if(Le.length>we)Le.splice(we);else for(;Le.length<we;)Le.push("");for(;ae<Le.length;ae++)Le[ae]=Le[ae].trim().replace(/\\\|/g,"|");return Le}function ee(J,we,Ce){const Le=J.length;if(Le===0)return"";let ae=0;for(;ae<Le;){const pe=J.charAt(Le-ae-1);if(pe===we&&!Ce)ae++;else if(pe!==we&&Ce)ae++;else break}return J.substr(0,Le-ae)}function B(J,we){if(J.indexOf(we[1])===-1)return-1;const Ce=J.length;let Le=0,ae=0;for(;ae<Ce;ae++)if(J[ae]==="\\")ae++;else if(J[ae]===we[0])Le++;else if(J[ae]===we[1]&&(Le--,Le<0))return ae;return-1}function G(J){J&&J.sanitize&&!J.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function le(J,we){if(we<1)return"";let Ce="";for(;we>1;)we&1&&(Ce+=J),we>>=1,J+=J;return Ce+J}yn.exports={escape:ie,unescape:O,edit:n,cleanUrl:p,resolveUrl:$,noopTest:F,merge:H,splitCells:V,rtrim:ee,findClosingBracket:B,checkSanitizeDeprecation:G,repeatString:le}},75918:function(yn,Wt,g){"use strict";g.d(Wt,{Wi:function(){return Y},Z0:function(){return O},aU:function(){return ie},eZ:function(){return n},wY:function(){return I}});var xe=g(4348),Fe=g(69323),se=g(13268),Me=function(o,L,p,a){function d(m){return m instanceof p?m:new p(function(S){S(m)})}return new(p||(p=Promise))(function(m,S){function $(V){try{H(a.next(V))}catch(ee){S(ee)}}function F(V){try{H(a.throw(V))}catch(ee){S(ee)}}function H(V){V.done?m(V.value):d(V.value).then($,F)}H((a=a.apply(o,L||[])).next())})};class ie extends Fe.JT{constructor(L,p="",a="",d=!0,m){super(),this._onDidChange=this._register(new xe.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=L,this._label=p,this._cssClass=a,this._enabled=d,this._actionCallback=m}get id(){return this._id}get label(){return this._label}set label(L){this._setLabel(L)}_setLabel(L){this._label!==L&&(this._label=L,this._onDidChange.fire({label:L}))}get tooltip(){return this._tooltip||""}set tooltip(L){this._setTooltip(L)}_setTooltip(L){this._tooltip!==L&&(this._tooltip=L,this._onDidChange.fire({tooltip:L}))}get class(){return this._cssClass}set class(L){this._setClass(L)}_setClass(L){this._cssClass!==L&&(this._cssClass=L,this._onDidChange.fire({class:L}))}get enabled(){return this._enabled}set enabled(L){this._setEnabled(L)}_setEnabled(L){this._enabled!==L&&(this._enabled=L,this._onDidChange.fire({enabled:L}))}get checked(){return this._checked}set checked(L){this._setChecked(L)}_setChecked(L){this._checked!==L&&(this._checked=L,this._onDidChange.fire({checked:L}))}run(L,p){return Me(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(L))})}}class Y extends Fe.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new xe.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new xe.Q5),this.onDidRun=this._onDidRun.event}run(L,p){return Me(this,void 0,void 0,function*(){if(!L.enabled)return;this._onBeforeRun.fire({action:L});let a;try{yield this.runAction(L,p)}catch(d){a=d}this._onDidRun.fire({action:L,error:a})})}runAction(L,p){return Me(this,void 0,void 0,function*(){yield L.run(p)})}}class O extends ie{constructor(L){super(O.ID,L,L?"separator text":"separator"),this.checked=!1,this.enabled=!1}}O.ID="vs.actions.separator";class I{constructor(L,p,a,d){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=L,this.label=p,this.class=d,this._actions=a}get actions(){return this._actions}dispose(){}run(){return Me(this,void 0,void 0,function*(){})}}class n extends ie{constructor(){super(n.ID,se.N("submenu.empty","(empty)"),void 0,!1)}}n.ID="vs.actions.empty"},76068:function(yn,Wt,g){"use strict";g.d(Wt,{ok:function(){return xe}});function xe(Fe,se){if(!Fe)throw new Error(se?`Assertion failed (${se})`:"Assertion Failed")}},52615:function(yn,Wt,g){"use strict";g.d(Wt,{CM:function(){return ie},JL:function(){return Y},dT:function(){return I},fK:function(){return Me},lA:function(){return O}});var xe=g(4348);class Fe{constructor(){this._icons=new Map,this._onDidRegister=new xe.Q5}add(o){const L=this._icons.get(o.id);L?o.description?L.description=o.description:console.error(`Duplicate registration of codicon ${o.id}`):(this._icons.set(o.id,o),this._onDidRegister.fire(o))}get(o){return this._icons.get(o)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const se=new Fe,Me=se;function ie(n,o){return new O(n,o)}function Y(n){return n?n.replace(/\$\((.*?)\)/g,(o,L)=>` ${L} `).trim():""}class O{constructor(o,L,p){this.id=o,this.definition=L,this.description=p,se.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var I;(function(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9\\-]+",n.iconModifierExpression="~[A-Za-z]+";const o=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function L(d){if(d instanceof O)return["codicon","codicon-"+d.id];const m=o.exec(d.id);if(!m)return L(O.error);let[,S,$]=m;const F=["codicon","codicon-"+S];return $&&F.push("codicon-modifier-"+$.substr(1)),F}n.asClassNameArray=L;function p(d){return L(d).join(" ")}n.asClassName=p;function a(d){return"."+L(d).join(".")}n.asCSSSelector=a})(I||(I={})),function(n){n.add=new n("add",{fontCharacter:"\\ea60"}),n.plus=new n("plus",n.add.definition),n.gistNew=new n("gist-new",n.add.definition),n.repoCreate=new n("repo-create",n.add.definition),n.lightbulb=new n("lightbulb",{fontCharacter:"\\ea61"}),n.lightBulb=new n("light-bulb",{fontCharacter:"\\ea61"}),n.repo=new n("repo",{fontCharacter:"\\ea62"}),n.repoDelete=new n("repo-delete",{fontCharacter:"\\ea62"}),n.gistFork=new n("gist-fork",{fontCharacter:"\\ea63"}),n.repoForked=new n("repo-forked",{fontCharacter:"\\ea63"}),n.gitPullRequest=new n("git-pull-request",{fontCharacter:"\\ea64"}),n.gitPullRequestAbandoned=new n("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),n.recordKeys=new n("record-keys",{fontCharacter:"\\ea65"}),n.keyboard=new n("keyboard",{fontCharacter:"\\ea65"}),n.tag=new n("tag",{fontCharacter:"\\ea66"}),n.tagAdd=new n("tag-add",{fontCharacter:"\\ea66"}),n.tagRemove=new n("tag-remove",{fontCharacter:"\\ea66"}),n.person=new n("person",{fontCharacter:"\\ea67"}),n.personFollow=new n("person-follow",{fontCharacter:"\\ea67"}),n.personOutline=new n("person-outline",{fontCharacter:"\\ea67"}),n.personFilled=new n("person-filled",{fontCharacter:"\\ea67"}),n.gitBranch=new n("git-branch",{fontCharacter:"\\ea68"}),n.gitBranchCreate=new n("git-branch-create",{fontCharacter:"\\ea68"}),n.gitBranchDelete=new n("git-branch-delete",{fontCharacter:"\\ea68"}),n.sourceControl=new n("source-control",{fontCharacter:"\\ea68"}),n.mirror=new n("mirror",{fontCharacter:"\\ea69"}),n.mirrorPublic=new n("mirror-public",{fontCharacter:"\\ea69"}),n.star=new n("star",{fontCharacter:"\\ea6a"}),n.starAdd=new n("star-add",{fontCharacter:"\\ea6a"}),n.starDelete=new n("star-delete",{fontCharacter:"\\ea6a"}),n.starEmpty=new n("star-empty",{fontCharacter:"\\ea6a"}),n.comment=new n("comment",{fontCharacter:"\\ea6b"}),n.commentAdd=new n("comment-add",{fontCharacter:"\\ea6b"}),n.alert=new n("alert",{fontCharacter:"\\ea6c"}),n.warning=new n("warning",{fontCharacter:"\\ea6c"}),n.search=new n("search",{fontCharacter:"\\ea6d"}),n.searchSave=new n("search-save",{fontCharacter:"\\ea6d"}),n.logOut=new n("log-out",{fontCharacter:"\\ea6e"}),n.signOut=new n("sign-out",{fontCharacter:"\\ea6e"}),n.logIn=new n("log-in",{fontCharacter:"\\ea6f"}),n.signIn=new n("sign-in",{fontCharacter:"\\ea6f"}),n.eye=new n("eye",{fontCharacter:"\\ea70"}),n.eyeUnwatch=new n("eye-unwatch",{fontCharacter:"\\ea70"}),n.eyeWatch=new n("eye-watch",{fontCharacter:"\\ea70"}),n.circleFilled=new n("circle-filled",{fontCharacter:"\\ea71"}),n.primitiveDot=new n("primitive-dot",{fontCharacter:"\\ea71"}),n.closeDirty=new n("close-dirty",{fontCharacter:"\\ea71"}),n.debugBreakpoint=new n("debug-breakpoint",{fontCharacter:"\\ea71"}),n.debugBreakpointDisabled=new n("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),n.debugHint=new n("debug-hint",{fontCharacter:"\\ea71"}),n.primitiveSquare=new n("primitive-square",{fontCharacter:"\\ea72"}),n.edit=new n("edit",{fontCharacter:"\\ea73"}),n.pencil=new n("pencil",{fontCharacter:"\\ea73"}),n.info=new n("info",{fontCharacter:"\\ea74"}),n.issueOpened=new n("issue-opened",{fontCharacter:"\\ea74"}),n.gistPrivate=new n("gist-private",{fontCharacter:"\\ea75"}),n.gitForkPrivate=new n("git-fork-private",{fontCharacter:"\\ea75"}),n.lock=new n("lock",{fontCharacter:"\\ea75"}),n.mirrorPrivate=new n("mirror-private",{fontCharacter:"\\ea75"}),n.close=new n("close",{fontCharacter:"\\ea76"}),n.removeClose=new n("remove-close",{fontCharacter:"\\ea76"}),n.x=new n("x",{fontCharacter:"\\ea76"}),n.repoSync=new n("repo-sync",{fontCharacter:"\\ea77"}),n.sync=new n("sync",{fontCharacter:"\\ea77"}),n.clone=new n("clone",{fontCharacter:"\\ea78"}),n.desktopDownload=new n("desktop-download",{fontCharacter:"\\ea78"}),n.beaker=new n("beaker",{fontCharacter:"\\ea79"}),n.microscope=new n("microscope",{fontCharacter:"\\ea79"}),n.vm=new n("vm",{fontCharacter:"\\ea7a"}),n.deviceDesktop=new n("device-desktop",{fontCharacter:"\\ea7a"}),n.file=new n("file",{fontCharacter:"\\ea7b"}),n.fileText=new n("file-text",{fontCharacter:"\\ea7b"}),n.more=new n("more",{fontCharacter:"\\ea7c"}),n.ellipsis=new n("ellipsis",{fontCharacter:"\\ea7c"}),n.kebabHorizontal=new n("kebab-horizontal",{fontCharacter:"\\ea7c"}),n.mailReply=new n("mail-reply",{fontCharacter:"\\ea7d"}),n.reply=new n("reply",{fontCharacter:"\\ea7d"}),n.organization=new n("organization",{fontCharacter:"\\ea7e"}),n.organizationFilled=new n("organization-filled",{fontCharacter:"\\ea7e"}),n.organizationOutline=new n("organization-outline",{fontCharacter:"\\ea7e"}),n.newFile=new n("new-file",{fontCharacter:"\\ea7f"}),n.fileAdd=new n("file-add",{fontCharacter:"\\ea7f"}),n.newFolder=new n("new-folder",{fontCharacter:"\\ea80"}),n.fileDirectoryCreate=new n("file-directory-create",{fontCharacter:"\\ea80"}),n.trash=new n("trash",{fontCharacter:"\\ea81"}),n.trashcan=new n("trashcan",{fontCharacter:"\\ea81"}),n.history=new n("history",{fontCharacter:"\\ea82"}),n.clock=new n("clock",{fontCharacter:"\\ea82"}),n.folder=new n("folder",{fontCharacter:"\\ea83"}),n.fileDirectory=new n("file-directory",{fontCharacter:"\\ea83"}),n.symbolFolder=new n("symbol-folder",{fontCharacter:"\\ea83"}),n.logoGithub=new n("logo-github",{fontCharacter:"\\ea84"}),n.markGithub=new n("mark-github",{fontCharacter:"\\ea84"}),n.github=new n("github",{fontCharacter:"\\ea84"}),n.terminal=new n("terminal",{fontCharacter:"\\ea85"}),n.console=new n("console",{fontCharacter:"\\ea85"}),n.repl=new n("repl",{fontCharacter:"\\ea85"}),n.zap=new n("zap",{fontCharacter:"\\ea86"}),n.symbolEvent=new n("symbol-event",{fontCharacter:"\\ea86"}),n.error=new n("error",{fontCharacter:"\\ea87"}),n.stop=new n("stop",{fontCharacter:"\\ea87"}),n.variable=new n("variable",{fontCharacter:"\\ea88"}),n.symbolVariable=new n("symbol-variable",{fontCharacter:"\\ea88"}),n.array=new n("array",{fontCharacter:"\\ea8a"}),n.symbolArray=new n("symbol-array",{fontCharacter:"\\ea8a"}),n.symbolModule=new n("symbol-module",{fontCharacter:"\\ea8b"}),n.symbolPackage=new n("symbol-package",{fontCharacter:"\\ea8b"}),n.symbolNamespace=new n("symbol-namespace",{fontCharacter:"\\ea8b"}),n.symbolObject=new n("symbol-object",{fontCharacter:"\\ea8b"}),n.symbolMethod=new n("symbol-method",{fontCharacter:"\\ea8c"}),n.symbolFunction=new n("symbol-function",{fontCharacter:"\\ea8c"}),n.symbolConstructor=new n("symbol-constructor",{fontCharacter:"\\ea8c"}),n.symbolBoolean=new n("symbol-boolean",{fontCharacter:"\\ea8f"}),n.symbolNull=new n("symbol-null",{fontCharacter:"\\ea8f"}),n.symbolNumeric=new n("symbol-numeric",{fontCharacter:"\\ea90"}),n.symbolNumber=new n("symbol-number",{fontCharacter:"\\ea90"}),n.symbolStructure=new n("symbol-structure",{fontCharacter:"\\ea91"}),n.symbolStruct=new n("symbol-struct",{fontCharacter:"\\ea91"}),n.symbolParameter=new n("symbol-parameter",{fontCharacter:"\\ea92"}),n.symbolTypeParameter=new n("symbol-type-parameter",{fontCharacter:"\\ea92"}),n.symbolKey=new n("symbol-key",{fontCharacter:"\\ea93"}),n.symbolText=new n("symbol-text",{fontCharacter:"\\ea93"}),n.symbolReference=new n("symbol-reference",{fontCharacter:"\\ea94"}),n.goToFile=new n("go-to-file",{fontCharacter:"\\ea94"}),n.symbolEnum=new n("symbol-enum",{fontCharacter:"\\ea95"}),n.symbolValue=new n("symbol-value",{fontCharacter:"\\ea95"}),n.symbolRuler=new n("symbol-ruler",{fontCharacter:"\\ea96"}),n.symbolUnit=new n("symbol-unit",{fontCharacter:"\\ea96"}),n.activateBreakpoints=new n("activate-breakpoints",{fontCharacter:"\\ea97"}),n.archive=new n("archive",{fontCharacter:"\\ea98"}),n.arrowBoth=new n("arrow-both",{fontCharacter:"\\ea99"}),n.arrowDown=new n("arrow-down",{fontCharacter:"\\ea9a"}),n.arrowLeft=new n("arrow-left",{fontCharacter:"\\ea9b"}),n.arrowRight=new n("arrow-right",{fontCharacter:"\\ea9c"}),n.arrowSmallDown=new n("arrow-small-down",{fontCharacter:"\\ea9d"}),n.arrowSmallLeft=new n("arrow-small-left",{fontCharacter:"\\ea9e"}),n.arrowSmallRight=new n("arrow-small-right",{fontCharacter:"\\ea9f"}),n.arrowSmallUp=new n("arrow-small-up",{fontCharacter:"\\eaa0"}),n.arrowUp=new n("arrow-up",{fontCharacter:"\\eaa1"}),n.bell=new n("bell",{fontCharacter:"\\eaa2"}),n.bold=new n("bold",{fontCharacter:"\\eaa3"}),n.book=new n("book",{fontCharacter:"\\eaa4"}),n.bookmark=new n("bookmark",{fontCharacter:"\\eaa5"}),n.debugBreakpointConditionalUnverified=new n("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),n.debugBreakpointConditional=new n("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),n.debugBreakpointConditionalDisabled=new n("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),n.debugBreakpointDataUnverified=new n("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),n.debugBreakpointData=new n("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),n.debugBreakpointDataDisabled=new n("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),n.debugBreakpointLogUnverified=new n("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),n.debugBreakpointLog=new n("debug-breakpoint-log",{fontCharacter:"\\eaab"}),n.debugBreakpointLogDisabled=new n("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),n.briefcase=new n("briefcase",{fontCharacter:"\\eaac"}),n.broadcast=new n("broadcast",{fontCharacter:"\\eaad"}),n.browser=new n("browser",{fontCharacter:"\\eaae"}),n.bug=new n("bug",{fontCharacter:"\\eaaf"}),n.calendar=new n("calendar",{fontCharacter:"\\eab0"}),n.caseSensitive=new n("case-sensitive",{fontCharacter:"\\eab1"}),n.check=new n("check",{fontCharacter:"\\eab2"}),n.checklist=new n("checklist",{fontCharacter:"\\eab3"}),n.chevronDown=new n("chevron-down",{fontCharacter:"\\eab4"}),n.dropDownButton=new n("drop-down-button",n.chevronDown.definition),n.chevronLeft=new n("chevron-left",{fontCharacter:"\\eab5"}),n.chevronRight=new n("chevron-right",{fontCharacter:"\\eab6"}),n.chevronUp=new n("chevron-up",{fontCharacter:"\\eab7"}),n.chromeClose=new n("chrome-close",{fontCharacter:"\\eab8"}),n.chromeMaximize=new n("chrome-maximize",{fontCharacter:"\\eab9"}),n.chromeMinimize=new n("chrome-minimize",{fontCharacter:"\\eaba"}),n.chromeRestore=new n("chrome-restore",{fontCharacter:"\\eabb"}),n.circleOutline=new n("circle-outline",{fontCharacter:"\\eabc"}),n.debugBreakpointUnverified=new n("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),n.circleSlash=new n("circle-slash",{fontCharacter:"\\eabd"}),n.circuitBoard=new n("circuit-board",{fontCharacter:"\\eabe"}),n.clearAll=new n("clear-all",{fontCharacter:"\\eabf"}),n.clippy=new n("clippy",{fontCharacter:"\\eac0"}),n.closeAll=new n("close-all",{fontCharacter:"\\eac1"}),n.cloudDownload=new n("cloud-download",{fontCharacter:"\\eac2"}),n.cloudUpload=new n("cloud-upload",{fontCharacter:"\\eac3"}),n.code=new n("code",{fontCharacter:"\\eac4"}),n.collapseAll=new n("collapse-all",{fontCharacter:"\\eac5"}),n.colorMode=new n("color-mode",{fontCharacter:"\\eac6"}),n.commentDiscussion=new n("comment-discussion",{fontCharacter:"\\eac7"}),n.compareChanges=new n("compare-changes",{fontCharacter:"\\eafd"}),n.creditCard=new n("credit-card",{fontCharacter:"\\eac9"}),n.dash=new n("dash",{fontCharacter:"\\eacc"}),n.dashboard=new n("dashboard",{fontCharacter:"\\eacd"}),n.database=new n("database",{fontCharacter:"\\eace"}),n.debugContinue=new n("debug-continue",{fontCharacter:"\\eacf"}),n.debugDisconnect=new n("debug-disconnect",{fontCharacter:"\\ead0"}),n.debugPause=new n("debug-pause",{fontCharacter:"\\ead1"}),n.debugRestart=new n("debug-restart",{fontCharacter:"\\ead2"}),n.debugStart=new n("debug-start",{fontCharacter:"\\ead3"}),n.debugStepInto=new n("debug-step-into",{fontCharacter:"\\ead4"}),n.debugStepOut=new n("debug-step-out",{fontCharacter:"\\ead5"}),n.debugStepOver=new n("debug-step-over",{fontCharacter:"\\ead6"}),n.debugStop=new n("debug-stop",{fontCharacter:"\\ead7"}),n.debug=new n("debug",{fontCharacter:"\\ead8"}),n.deviceCameraVideo=new n("device-camera-video",{fontCharacter:"\\ead9"}),n.deviceCamera=new n("device-camera",{fontCharacter:"\\eada"}),n.deviceMobile=new n("device-mobile",{fontCharacter:"\\eadb"}),n.diffAdded=new n("diff-added",{fontCharacter:"\\eadc"}),n.diffIgnored=new n("diff-ignored",{fontCharacter:"\\eadd"}),n.diffModified=new n("diff-modified",{fontCharacter:"\\eade"}),n.diffRemoved=new n("diff-removed",{fontCharacter:"\\eadf"}),n.diffRenamed=new n("diff-renamed",{fontCharacter:"\\eae0"}),n.diff=new n("diff",{fontCharacter:"\\eae1"}),n.discard=new n("discard",{fontCharacter:"\\eae2"}),n.editorLayout=new n("editor-layout",{fontCharacter:"\\eae3"}),n.emptyWindow=new n("empty-window",{fontCharacter:"\\eae4"}),n.exclude=new n("exclude",{fontCharacter:"\\eae5"}),n.extensions=new n("extensions",{fontCharacter:"\\eae6"}),n.eyeClosed=new n("eye-closed",{fontCharacter:"\\eae7"}),n.fileBinary=new n("file-binary",{fontCharacter:"\\eae8"}),n.fileCode=new n("file-code",{fontCharacter:"\\eae9"}),n.fileMedia=new n("file-media",{fontCharacter:"\\eaea"}),n.filePdf=new n("file-pdf",{fontCharacter:"\\eaeb"}),n.fileSubmodule=new n("file-submodule",{fontCharacter:"\\eaec"}),n.fileSymlinkDirectory=new n("file-symlink-directory",{fontCharacter:"\\eaed"}),n.fileSymlinkFile=new n("file-symlink-file",{fontCharacter:"\\eaee"}),n.fileZip=new n("file-zip",{fontCharacter:"\\eaef"}),n.files=new n("files",{fontCharacter:"\\eaf0"}),n.filter=new n("filter",{fontCharacter:"\\eaf1"}),n.flame=new n("flame",{fontCharacter:"\\eaf2"}),n.foldDown=new n("fold-down",{fontCharacter:"\\eaf3"}),n.foldUp=new n("fold-up",{fontCharacter:"\\eaf4"}),n.fold=new n("fold",{fontCharacter:"\\eaf5"}),n.folderActive=new n("folder-active",{fontCharacter:"\\eaf6"}),n.folderOpened=new n("folder-opened",{fontCharacter:"\\eaf7"}),n.gear=new n("gear",{fontCharacter:"\\eaf8"}),n.gift=new n("gift",{fontCharacter:"\\eaf9"}),n.gistSecret=new n("gist-secret",{fontCharacter:"\\eafa"}),n.gist=new n("gist",{fontCharacter:"\\eafb"}),n.gitCommit=new n("git-commit",{fontCharacter:"\\eafc"}),n.gitCompare=new n("git-compare",{fontCharacter:"\\eafd"}),n.gitMerge=new n("git-merge",{fontCharacter:"\\eafe"}),n.githubAction=new n("github-action",{fontCharacter:"\\eaff"}),n.githubAlt=new n("github-alt",{fontCharacter:"\\eb00"}),n.globe=new n("globe",{fontCharacter:"\\eb01"}),n.grabber=new n("grabber",{fontCharacter:"\\eb02"}),n.graph=new n("graph",{fontCharacter:"\\eb03"}),n.gripper=new n("gripper",{fontCharacter:"\\eb04"}),n.heart=new n("heart",{fontCharacter:"\\eb05"}),n.home=new n("home",{fontCharacter:"\\eb06"}),n.horizontalRule=new n("horizontal-rule",{fontCharacter:"\\eb07"}),n.hubot=new n("hubot",{fontCharacter:"\\eb08"}),n.inbox=new n("inbox",{fontCharacter:"\\eb09"}),n.issueClosed=new n("issue-closed",{fontCharacter:"\\eba4"}),n.issueReopened=new n("issue-reopened",{fontCharacter:"\\eb0b"}),n.issues=new n("issues",{fontCharacter:"\\eb0c"}),n.italic=new n("italic",{fontCharacter:"\\eb0d"}),n.jersey=new n("jersey",{fontCharacter:"\\eb0e"}),n.json=new n("json",{fontCharacter:"\\eb0f"}),n.kebabVertical=new n("kebab-vertical",{fontCharacter:"\\eb10"}),n.key=new n("key",{fontCharacter:"\\eb11"}),n.law=new n("law",{fontCharacter:"\\eb12"}),n.lightbulbAutofix=new n("lightbulb-autofix",{fontCharacter:"\\eb13"}),n.linkExternal=new n("link-external",{fontCharacter:"\\eb14"}),n.link=new n("link",{fontCharacter:"\\eb15"}),n.listOrdered=new n("list-ordered",{fontCharacter:"\\eb16"}),n.listUnordered=new n("list-unordered",{fontCharacter:"\\eb17"}),n.liveShare=new n("live-share",{fontCharacter:"\\eb18"}),n.loading=new n("loading",{fontCharacter:"\\eb19"}),n.location=new n("location",{fontCharacter:"\\eb1a"}),n.mailRead=new n("mail-read",{fontCharacter:"\\eb1b"}),n.mail=new n("mail",{fontCharacter:"\\eb1c"}),n.markdown=new n("markdown",{fontCharacter:"\\eb1d"}),n.megaphone=new n("megaphone",{fontCharacter:"\\eb1e"}),n.mention=new n("mention",{fontCharacter:"\\eb1f"}),n.milestone=new n("milestone",{fontCharacter:"\\eb20"}),n.mortarBoard=new n("mortar-board",{fontCharacter:"\\eb21"}),n.move=new n("move",{fontCharacter:"\\eb22"}),n.multipleWindows=new n("multiple-windows",{fontCharacter:"\\eb23"}),n.mute=new n("mute",{fontCharacter:"\\eb24"}),n.noNewline=new n("no-newline",{fontCharacter:"\\eb25"}),n.note=new n("note",{fontCharacter:"\\eb26"}),n.octoface=new n("octoface",{fontCharacter:"\\eb27"}),n.openPreview=new n("open-preview",{fontCharacter:"\\eb28"}),n.package_=new n("package",{fontCharacter:"\\eb29"}),n.paintcan=new n("paintcan",{fontCharacter:"\\eb2a"}),n.pin=new n("pin",{fontCharacter:"\\eb2b"}),n.play=new n("play",{fontCharacter:"\\eb2c"}),n.run=new n("run",{fontCharacter:"\\eb2c"}),n.plug=new n("plug",{fontCharacter:"\\eb2d"}),n.preserveCase=new n("preserve-case",{fontCharacter:"\\eb2e"}),n.preview=new n("preview",{fontCharacter:"\\eb2f"}),n.project=new n("project",{fontCharacter:"\\eb30"}),n.pulse=new n("pulse",{fontCharacter:"\\eb31"}),n.question=new n("question",{fontCharacter:"\\eb32"}),n.quote=new n("quote",{fontCharacter:"\\eb33"}),n.radioTower=new n("radio-tower",{fontCharacter:"\\eb34"}),n.reactions=new n("reactions",{fontCharacter:"\\eb35"}),n.references=new n("references",{fontCharacter:"\\eb36"}),n.refresh=new n("refresh",{fontCharacter:"\\eb37"}),n.regex=new n("regex",{fontCharacter:"\\eb38"}),n.remoteExplorer=new n("remote-explorer",{fontCharacter:"\\eb39"}),n.remote=new n("remote",{fontCharacter:"\\eb3a"}),n.remove=new n("remove",{fontCharacter:"\\eb3b"}),n.replaceAll=new n("replace-all",{fontCharacter:"\\eb3c"}),n.replace=new n("replace",{fontCharacter:"\\eb3d"}),n.repoClone=new n("repo-clone",{fontCharacter:"\\eb3e"}),n.repoForcePush=new n("repo-force-push",{fontCharacter:"\\eb3f"}),n.repoPull=new n("repo-pull",{fontCharacter:"\\eb40"}),n.repoPush=new n("repo-push",{fontCharacter:"\\eb41"}),n.report=new n("report",{fontCharacter:"\\eb42"}),n.requestChanges=new n("request-changes",{fontCharacter:"\\eb43"}),n.rocket=new n("rocket",{fontCharacter:"\\eb44"}),n.rootFolderOpened=new n("root-folder-opened",{fontCharacter:"\\eb45"}),n.rootFolder=new n("root-folder",{fontCharacter:"\\eb46"}),n.rss=new n("rss",{fontCharacter:"\\eb47"}),n.ruby=new n("ruby",{fontCharacter:"\\eb48"}),n.saveAll=new n("save-all",{fontCharacter:"\\eb49"}),n.saveAs=new n("save-as",{fontCharacter:"\\eb4a"}),n.save=new n("save",{fontCharacter:"\\eb4b"}),n.screenFull=new n("screen-full",{fontCharacter:"\\eb4c"}),n.screenNormal=new n("screen-normal",{fontCharacter:"\\eb4d"}),n.searchStop=new n("search-stop",{fontCharacter:"\\eb4e"}),n.server=new n("server",{fontCharacter:"\\eb50"}),n.settingsGear=new n("settings-gear",{fontCharacter:"\\eb51"}),n.settings=new n("settings",{fontCharacter:"\\eb52"}),n.shield=new n("shield",{fontCharacter:"\\eb53"}),n.smiley=new n("smiley",{fontCharacter:"\\eb54"}),n.sortPrecedence=new n("sort-precedence",{fontCharacter:"\\eb55"}),n.splitHorizontal=new n("split-horizontal",{fontCharacter:"\\eb56"}),n.splitVertical=new n("split-vertical",{fontCharacter:"\\eb57"}),n.squirrel=new n("squirrel",{fontCharacter:"\\eb58"}),n.starFull=new n("star-full",{fontCharacter:"\\eb59"}),n.starHalf=new n("star-half",{fontCharacter:"\\eb5a"}),n.symbolClass=new n("symbol-class",{fontCharacter:"\\eb5b"}),n.symbolColor=new n("symbol-color",{fontCharacter:"\\eb5c"}),n.symbolConstant=new n("symbol-constant",{fontCharacter:"\\eb5d"}),n.symbolEnumMember=new n("symbol-enum-member",{fontCharacter:"\\eb5e"}),n.symbolField=new n("symbol-field",{fontCharacter:"\\eb5f"}),n.symbolFile=new n("symbol-file",{fontCharacter:"\\eb60"}),n.symbolInterface=new n("symbol-interface",{fontCharacter:"\\eb61"}),n.symbolKeyword=new n("symbol-keyword",{fontCharacter:"\\eb62"}),n.symbolMisc=new n("symbol-misc",{fontCharacter:"\\eb63"}),n.symbolOperator=new n("symbol-operator",{fontCharacter:"\\eb64"}),n.symbolProperty=new n("symbol-property",{fontCharacter:"\\eb65"}),n.wrench=new n("wrench",{fontCharacter:"\\eb65"}),n.wrenchSubaction=new n("wrench-subaction",{fontCharacter:"\\eb65"}),n.symbolSnippet=new n("symbol-snippet",{fontCharacter:"\\eb66"}),n.tasklist=new n("tasklist",{fontCharacter:"\\eb67"}),n.telescope=new n("telescope",{fontCharacter:"\\eb68"}),n.textSize=new n("text-size",{fontCharacter:"\\eb69"}),n.threeBars=new n("three-bars",{fontCharacter:"\\eb6a"}),n.thumbsdown=new n("thumbsdown",{fontCharacter:"\\eb6b"}),n.thumbsup=new n("thumbsup",{fontCharacter:"\\eb6c"}),n.tools=new n("tools",{fontCharacter:"\\eb6d"}),n.triangleDown=new n("triangle-down",{fontCharacter:"\\eb6e"}),n.triangleLeft=new n("triangle-left",{fontCharacter:"\\eb6f"}),n.triangleRight=new n("triangle-right",{fontCharacter:"\\eb70"}),n.triangleUp=new n("triangle-up",{fontCharacter:"\\eb71"}),n.twitter=new n("twitter",{fontCharacter:"\\eb72"}),n.unfold=new n("unfold",{fontCharacter:"\\eb73"}),n.unlock=new n("unlock",{fontCharacter:"\\eb74"}),n.unmute=new n("unmute",{fontCharacter:"\\eb75"}),n.unverified=new n("unverified",{fontCharacter:"\\eb76"}),n.verified=new n("verified",{fontCharacter:"\\eb77"}),n.versions=new n("versions",{fontCharacter:"\\eb78"}),n.vmActive=new n("vm-active",{fontCharacter:"\\eb79"}),n.vmOutline=new n("vm-outline",{fontCharacter:"\\eb7a"}),n.vmRunning=new n("vm-running",{fontCharacter:"\\eb7b"}),n.watch=new n("watch",{fontCharacter:"\\eb7c"}),n.whitespace=new n("whitespace",{fontCharacter:"\\eb7d"}),n.wholeWord=new n("whole-word",{fontCharacter:"\\eb7e"}),n.window=new n("window",{fontCharacter:"\\eb7f"}),n.wordWrap=new n("word-wrap",{fontCharacter:"\\eb80"}),n.zoomIn=new n("zoom-in",{fontCharacter:"\\eb81"}),n.zoomOut=new n("zoom-out",{fontCharacter:"\\eb82"}),n.listFilter=new n("list-filter",{fontCharacter:"\\eb83"}),n.listFlat=new n("list-flat",{fontCharacter:"\\eb84"}),n.listSelection=new n("list-selection",{fontCharacter:"\\eb85"}),n.selection=new n("selection",{fontCharacter:"\\eb85"}),n.listTree=new n("list-tree",{fontCharacter:"\\eb86"}),n.debugBreakpointFunctionUnverified=new n("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),n.debugBreakpointFunction=new n("debug-breakpoint-function",{fontCharacter:"\\eb88"}),n.debugBreakpointFunctionDisabled=new n("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),n.debugStackframeActive=new n("debug-stackframe-active",{fontCharacter:"\\eb89"}),n.debugStackframeDot=new n("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),n.debugStackframe=new n("debug-stackframe",{fontCharacter:"\\eb8b"}),n.debugStackframeFocused=new n("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),n.debugBreakpointUnsupported=new n("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),n.symbolString=new n("symbol-string",{fontCharacter:"\\eb8d"}),n.debugReverseContinue=new n("debug-reverse-continue",{fontCharacter:"\\eb8e"}),n.debugStepBack=new n("debug-step-back",{fontCharacter:"\\eb8f"}),n.debugRestartFrame=new n("debug-restart-frame",{fontCharacter:"\\eb90"}),n.callIncoming=new n("call-incoming",{fontCharacter:"\\eb92"}),n.callOutgoing=new n("call-outgoing",{fontCharacter:"\\eb93"}),n.menu=new n("menu",{fontCharacter:"\\eb94"}),n.expandAll=new n("expand-all",{fontCharacter:"\\eb95"}),n.feedback=new n("feedback",{fontCharacter:"\\eb96"}),n.groupByRefType=new n("group-by-ref-type",{fontCharacter:"\\eb97"}),n.ungroupByRefType=new n("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),n.account=new n("account",{fontCharacter:"\\eb99"}),n.bellDot=new n("bell-dot",{fontCharacter:"\\eb9a"}),n.debugConsole=new n("debug-console",{fontCharacter:"\\eb9b"}),n.library=new n("library",{fontCharacter:"\\eb9c"}),n.output=new n("output",{fontCharacter:"\\eb9d"}),n.runAll=new n("run-all",{fontCharacter:"\\eb9e"}),n.syncIgnored=new n("sync-ignored",{fontCharacter:"\\eb9f"}),n.pinned=new n("pinned",{fontCharacter:"\\eba0"}),n.githubInverted=new n("github-inverted",{fontCharacter:"\\eba1"}),n.debugAlt=new n("debug-alt",{fontCharacter:"\\eb91"}),n.serverProcess=new n("server-process",{fontCharacter:"\\eba2"}),n.serverEnvironment=new n("server-environment",{fontCharacter:"\\eba3"}),n.pass=new n("pass",{fontCharacter:"\\eba4"}),n.stopCircle=new n("stop-circle",{fontCharacter:"\\eba5"}),n.playCircle=new n("play-circle",{fontCharacter:"\\eba6"}),n.record=new n("record",{fontCharacter:"\\eba7"}),n.debugAltSmall=new n("debug-alt-small",{fontCharacter:"\\eba8"}),n.vmConnect=new n("vm-connect",{fontCharacter:"\\eba9"}),n.cloud=new n("cloud",{fontCharacter:"\\ebaa"}),n.merge=new n("merge",{fontCharacter:"\\ebab"}),n.exportIcon=new n("export",{fontCharacter:"\\ebac"}),n.graphLeft=new n("graph-left",{fontCharacter:"\\ebad"}),n.magnet=new n("magnet",{fontCharacter:"\\ebae"}),n.notebook=new n("notebook",{fontCharacter:"\\ebaf"}),n.redo=new n("redo",{fontCharacter:"\\ebb0"}),n.checkAll=new n("check-all",{fontCharacter:"\\ebb1"}),n.pinnedDirty=new n("pinned-dirty",{fontCharacter:"\\ebb2"}),n.passFilled=new n("pass-filled",{fontCharacter:"\\ebb3"}),n.circleLargeFilled=new n("circle-large-filled",{fontCharacter:"\\ebb4"}),n.circleLargeOutline=new n("circle-large-outline",{fontCharacter:"\\ebb5"}),n.combine=new n("combine",{fontCharacter:"\\ebb6"}),n.gather=new n("gather",{fontCharacter:"\\ebb6"}),n.table=new n("table",{fontCharacter:"\\ebb7"}),n.variableGroup=new n("variable-group",{fontCharacter:"\\ebb8"}),n.typeHierarchy=new n("type-hierarchy",{fontCharacter:"\\ebb9"}),n.typeHierarchySub=new n("type-hierarchy-sub",{fontCharacter:"\\ebba"}),n.typeHierarchySuper=new n("type-hierarchy-super",{fontCharacter:"\\ebbb"}),n.gitPullRequestCreate=new n("git-pull-request-create",{fontCharacter:"\\ebbc"}),n.runAbove=new n("run-above",{fontCharacter:"\\ebbd"}),n.runBelow=new n("run-below",{fontCharacter:"\\ebbe"}),n.notebookTemplate=new n("notebook-template",{fontCharacter:"\\ebbf"}),n.debugRerun=new n("debug-rerun",{fontCharacter:"\\ebc0"}),n.workspaceTrusted=new n("workspace-trusted",{fontCharacter:"\\ebc1"}),n.workspaceUntrusted=new n("workspace-untrusted",{fontCharacter:"\\ebc2"}),n.workspaceUnspecified=new n("workspace-unspecified",{fontCharacter:"\\ebc3"}),n.terminalCmd=new n("terminal-cmd",{fontCharacter:"\\ebc4"}),n.terminalDebian=new n("terminal-debian",{fontCharacter:"\\ebc5"}),n.terminalLinux=new n("terminal-linux",{fontCharacter:"\\ebc6"}),n.terminalPowershell=new n("terminal-powershell",{fontCharacter:"\\ebc7"}),n.terminalTmux=new n("terminal-tmux",{fontCharacter:"\\ebc8"}),n.terminalUbuntu=new n("terminal-ubuntu",{fontCharacter:"\\ebc9"}),n.terminalBash=new n("terminal-bash",{fontCharacter:"\\ebca"}),n.arrowSwap=new n("arrow-swap",{fontCharacter:"\\ebcb"}),n.copy=new n("copy",{fontCharacter:"\\ebcc"}),n.personAdd=new n("person-add",{fontCharacter:"\\ebcd"}),n.filterFilled=new n("filter-filled",{fontCharacter:"\\ebce"}),n.wand=new n("wand",{fontCharacter:"\\ebcf"}),n.debugLineByLine=new n("debug-line-by-line",{fontCharacter:"\\ebd0"}),n.inspect=new n("inspect",{fontCharacter:"\\ebd1"}),n.layers=new n("layers",{fontCharacter:"\\ebd2"}),n.layersDot=new n("layers-dot",{fontCharacter:"\\ebd3"}),n.layersActive=new n("layers-active",{fontCharacter:"\\ebd4"}),n.compass=new n("compass",{fontCharacter:"\\ebd5"}),n.compassDot=new n("compass-dot",{fontCharacter:"\\ebd6"}),n.compassActive=new n("compass-active",{fontCharacter:"\\ebd7"}),n.azure=new n("azure",{fontCharacter:"\\ebd8"}),n.issueDraft=new n("issue-draft",{fontCharacter:"\\ebd9"}),n.gitPullRequestClosed=new n("git-pull-request-closed",{fontCharacter:"\\ebda"}),n.gitPullRequestDraft=new n("git-pull-request-draft",{fontCharacter:"\\ebdb"}),n.debugAll=new n("debug-all",{fontCharacter:"\\ebdc"}),n.debugCoverage=new n("debug-coverage",{fontCharacter:"\\ebdd"}),n.runErrors=new n("run-errors",{fontCharacter:"\\ebde"}),n.folderLibrary=new n("folder-library",{fontCharacter:"\\ebdf"}),n.debugContinueSmall=new n("debug-continue-small",{fontCharacter:"\\ebe0"}),n.beakerStop=new n("beaker-stop",{fontCharacter:"\\ebe1"}),n.graphLine=new n("graph-line",{fontCharacter:"\\ebe2"}),n.graphScatter=new n("graph-scatter",{fontCharacter:"\\ebe3"}),n.pieChart=new n("pie-chart",{fontCharacter:"\\ebe4"}),n.bracket=new n("bracket",n.json.definition),n.bracketDot=new n("bracket-dot",{fontCharacter:"\\ebe5"}),n.bracketError=new n("bracket-error",{fontCharacter:"\\ebe6"}),n.lockSmall=new n("lock-small",{fontCharacter:"\\ebe7"}),n.azureDevops=new n("azure-devops",{fontCharacter:"\\ebe8"}),n.verifiedFilled=new n("verified-filled",{fontCharacter:"\\ebe9"})}(O||(O={}))},79881:function(yn,Wt,g){"use strict";g.d(Wt,{B8:function(){return L},Cp:function(){return Me},F0:function(){return I},L6:function(){return o},VV:function(){return O},b1:function(){return n},dL:function(){return se},ri:function(){return ie}});class xe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(a){setTimeout(()=>{throw a.stack?new Error(a.message+`
|
|
|
|
|
|
`+a.stack):a},0)}}emit(a){this.listeners.forEach(d=>{d(a)})}onUnexpectedError(a){this.unexpectedErrorHandler(a),this.emit(a)}onUnexpectedExternalError(a){this.unexpectedErrorHandler(a)}}const Fe=new xe;function se(p){O(p)||Fe.onUnexpectedError(p)}function Me(p){O(p)||Fe.onUnexpectedExternalError(p)}function ie(p){if(p instanceof Error){let{name:a,message:d}=p;const m=p.stacktrace||p.stack;return{$isError:!0,name:a,message:d,stack:m}}return p}const Y="Canceled";function O(p){return p instanceof Error&&p.name===Y&&p.message===Y}function I(){const p=new Error(Y);return p.name=p.message,p}function n(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function o(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class L extends Error{constructor(a){super("NotSupported"),a&&(this.message=a)}}},4348:function(yn,Wt,g){"use strict";g.d(Wt,{D0:function(){return L},E7:function(){return p},K3:function(){return o},Q5:function(){return n},ZD:function(){return a},ju:function(){return ie}});var xe=g(79881),Fe=g(69323),se=g(34502),Me=g(95830),ie;(function(d){d.None=()=>Fe.JT.None;function m(Ee){return(oe,fe=null,ye)=>{let _=!1,N;return N=Ee(X=>{if(!_)return N?N.dispose():_=!0,oe.call(fe,X)},null,ye),_&&N.dispose(),N}}d.once=m;function S(Ee,oe){return B((fe,ye=null,_)=>Ee(N=>fe.call(ye,oe(N)),null,_))}d.map=S;function $(Ee,oe){return B((fe,ye=null,_)=>Ee(N=>{oe(N),fe.call(ye,N)},null,_))}d.forEach=$;function F(Ee,oe){return B((fe,ye=null,_)=>Ee(N=>oe(N)&&fe.call(ye,N),null,_))}d.filter=F;function H(Ee){return Ee}d.signal=H;function V(...Ee){return(oe,fe=null,ye)=>(0,Fe.F8)(...Ee.map(_=>_(N=>oe.call(fe,N),null,ye)))}d.any=V;function ee(Ee,oe,fe){let ye=fe;return S(Ee,_=>(ye=oe(ye,_),ye))}d.reduce=ee;function B(Ee){let oe;const fe=new n({onFirstListenerAdd(){oe=Ee(fe.fire,fe)},onLastListenerRemove(){oe.dispose()}});return fe.event}function G(Ee,oe,fe=100,ye=!1,_){let N,X,he,qe=0;const st=new n({leakWarningThreshold:_,onFirstListenerAdd(){N=Ee(nt=>{qe++,X=oe(X,nt),ye&&!he&&(st.fire(X),X=void 0),clearTimeout(he),he=setTimeout(()=>{const Rt=X;X=void 0,he=void 0,(!ye||qe>1)&&st.fire(Rt),qe=0},fe)})},onLastListenerRemove(){N.dispose()}});return st.event}d.debounce=G;function le(Ee,oe=(fe,ye)=>fe===ye){let fe=!0,ye;return F(Ee,_=>{const N=fe||!oe(_,ye);return fe=!1,ye=_,N})}d.latch=le;function J(Ee,oe){return[d.filter(Ee,oe),d.filter(Ee,fe=>!oe(fe))]}d.split=J;function we(Ee,oe=!1,fe=[]){let ye=fe.slice(),_=Ee(he=>{ye?ye.push(he):X.fire(he)});const N=()=>{ye&&ye.forEach(he=>X.fire(he)),ye=null},X=new n({onFirstListenerAdd(){_||(_=Ee(he=>X.fire(he)))},onFirstListenerDidAdd(){ye&&(oe?setTimeout(N):N())},onLastListenerRemove(){_&&_.dispose(),_=null}});return X.event}d.buffer=we;class Ce{constructor(oe){this.event=oe}map(oe){return new Ce(S(this.event,oe))}forEach(oe){return new Ce($(this.event,oe))}filter(oe){return new Ce(F(this.event,oe))}reduce(oe,fe){return new Ce(ee(this.event,oe,fe))}latch(){return new Ce(le(this.event))}debounce(oe,fe=100,ye=!1,_){return new Ce(G(this.event,oe,fe,ye,_))}on(oe,fe,ye){return this.event(oe,fe,ye)}once(oe,fe,ye){return m(this.event)(oe,fe,ye)}}function Le(Ee){return new Ce(Ee)}d.chain=Le;function ae(Ee,oe,fe=ye=>ye){const ye=(...he)=>X.fire(fe(...he)),_=()=>Ee.on(oe,ye),N=()=>Ee.removeListener(oe,ye),X=new n({onFirstListenerAdd:_,onLastListenerRemove:N});return X.event}d.fromNodeEventEmitter=ae;function pe(Ee,oe,fe=ye=>ye){const ye=(...he)=>X.fire(fe(...he)),_=()=>Ee.addEventListener(oe,ye),N=()=>Ee.removeEventListener(oe,ye),X=new n({onFirstListenerAdd:_,onLastListenerRemove:N});return X.event}d.fromDOMEventEmitter=pe;function T(Ee){return new Promise(oe=>m(Ee)(oe))}d.toPromise=T})(ie||(ie={}));class Y{constructor(m){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${m}_${Y._idPool++}`}start(m){this._stopWatch=new Me.G(!0),this._listenerCount=m}stop(){if(this._stopWatch){const m=this._stopWatch.elapsed();this._elapsedOverall+=m,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${m.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Y._idPool=0;let O=-1;class I{constructor(m,S=Math.random().toString(18).slice(2,5)){this.customThreshold=m,this.name=S,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(m){let S=O;if(typeof this.customThreshold=="number"&&(S=this.customThreshold),S<=0||m<S)return;this._stacks||(this._stacks=new Map);const $=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),F=this._stacks.get($)||0;if(this._stacks.set($,F+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=S*.5;let H,V=0;for(const[ee,B]of this._stacks)(!H||V<B)&&(H=ee,V=B);console.warn(`[${this.name}] potential listener LEAK detected, having ${m} listeners already. MOST frequent listener (${V}):`),console.warn(H)}return()=>{const H=this._stacks.get($)||0;this._stacks.set($,H-1)}}}class n{constructor(m){var S;this._disposed=!1,this._options=m,this._leakageMon=O>0?new I(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((S=this._options)===null||S===void 0)&&S._profName?new Y(this._options._profName):void 0}get event(){return this._event||(this._event=(m,S,$)=>{var F;this._listeners||(this._listeners=new se.S);const H=this._listeners.isEmpty();H&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const V=this._listeners.push(S?[m,S]:m);H&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,m,S);const ee=(F=this._leakageMon)===null||F===void 0?void 0:F.check(this._listeners.size),B=(0,Fe.OF)(()=>{ee&&ee(),this._disposed||(V(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return $ instanceof Fe.SL?$.add(B):Array.isArray($)&&$.push(B),B}),this._event}fire(m){var S,$;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new se.S);for(let F of this._listeners)this._deliveryQueue.push([F,m]);for((S=this._perfMon)===null||S===void 0||S.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[F,H]=this._deliveryQueue.shift();try{typeof F=="function"?F.call(void 0,H):F[0].call(F[1],H)}catch(V){(0,xe.dL)(V)}}($=this._perfMon)===null||$===void 0||$.stop()}}dispose(){var m,S,$,F,H;this._disposed||(this._disposed=!0,(m=this._listeners)===null||m===void 0||m.clear(),(S=this._deliveryQueue)===null||S===void 0||S.clear(),(F=($=this._options)===null||$===void 0?void 0:$.onLastListenerRemove)===null||F===void 0||F.call($),(H=this._leakageMon)===null||H===void 0||H.dispose())}}class o extends n{constructor(m){super(m),this._isPaused=0,this._eventQueue=new se.S,this._mergeFn=m==null?void 0:m.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const m=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):super.fire(m))}}class L extends o{constructor(m){var S;super(m),this._delay=(S=m.delay)!==null&&S!==void 0?S:100}fire(m){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(m)}}class p{constructor(){this.buffers=[]}wrapEvent(m){return(S,$,F)=>m(H=>{const V=this.buffers[this.buffers.length-1];V?V.push(()=>S.call($,H)):S.call($,H)},void 0,F)}bufferEvents(m){const S=[];this.buffers.push(S);const $=m();return this.buffers.pop(),S.forEach(F=>F()),$}}class a{constructor(){this.listening=!1,this.inputEvent=ie.None,this.inputEventListener=Fe.JT.None,this.emitter=new n({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(m){this.inputEvent=m,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=m(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(yn,Wt,g){"use strict";g.d(Wt,{I:function(){return xe}});function xe(Fe){const se=this;let Me=!1,ie;return function(){return Me||(Me=!0,ie=Fe.apply(se,arguments)),ie}}},88226:function(yn,Wt,g){"use strict";g.d(Wt,{$:function(){return xe}});var xe;(function(Fe){function se(V){return V&&typeof V=="object"&&typeof V[Symbol.iterator]=="function"}Fe.is=se;const Me=Object.freeze([]);function ie(){return Me}Fe.empty=ie;function*Y(V){yield V}Fe.single=Y;function O(V){return V||Me}Fe.from=O;function I(V){return!V||V[Symbol.iterator]().next().done===!0}Fe.isEmpty=I;function n(V){return V[Symbol.iterator]().next().value}Fe.first=n;function o(V,ee){for(const B of V)if(ee(B))return!0;return!1}Fe.some=o;function L(V,ee){for(const B of V)if(ee(B))return B}Fe.find=L;function*p(V,ee){for(const B of V)ee(B)&&(yield B)}Fe.filter=p;function*a(V,ee){let B=0;for(const G of V)yield ee(G,B++)}Fe.map=a;function*d(...V){for(const ee of V)for(const B of ee)yield B}Fe.concat=d;function*m(V){for(const ee of V)for(const B of ee)yield B}Fe.concatNested=m;function S(V,ee,B){let G=B;for(const le of V)G=ee(G,le);return G}Fe.reduce=S;function*$(V,ee,B=V.length){for(ee<0&&(ee+=V.length),B<0?B+=V.length:B>V.length&&(B=V.length);ee<B;ee++)yield V[ee]}Fe.slice=$;function F(V,ee=Number.POSITIVE_INFINITY){const B=[];if(ee===0)return[B,V];const G=V[Symbol.iterator]();for(let le=0;le<ee;le++){const J=G.next();if(J.done)return[B,Fe.empty()];B.push(J.value)}return[B,{[Symbol.iterator](){return G}}]}Fe.consume=F;function H(V,ee,B=(G,le)=>G===le){const G=V[Symbol.iterator](),le=ee[Symbol.iterator]();for(;;){const J=G.next(),we=le.next();if(J.done!==we.done)return!1;if(J.done)return!0;if(!B(J.value,we.value))return!1}}Fe.equals=H})(xe||(xe={}))},69323:function(yn,Wt,g){"use strict";g.d(Wt,{B9:function(){return a},F8:function(){return d},JT:function(){return $},Jz:function(){return H},OF:function(){return m},SL:function(){return S},Wf:function(){return p},XK:function(){return F},dk:function(){return o}});var xe=g(17845),Fe=g(88226);const se=!1;let Me=null;function ie(V){Me=V}if(se){const V="__is_disposable_tracked__";ie(new class{trackDisposable(ee){const B=new Error("Potentially leaked disposable").stack;setTimeout(()=>{ee[V]||console.log(B)},3e3)}setParent(ee,B){if(ee&&ee!==$.None)try{ee[V]=!0}catch(G){}}markAsDisposed(ee){if(ee&&ee!==$.None)try{ee[V]=!0}catch(B){}}markAsSingleton(ee){}})}function Y(V){return Me==null||Me.trackDisposable(V),V}function O(V){Me==null||Me.markAsDisposed(V)}function I(V,ee){Me==null||Me.setParent(V,ee)}function n(V,ee){if(Me)for(const B of V)Me.setParent(B,ee)}function o(V){return Me==null||Me.markAsSingleton(V),V}class L extends Error{constructor(ee){super(`Encountered errors while disposing of store. Errors: [${ee.join(", ")}]`),this.errors=ee}}function p(V){return typeof V.dispose=="function"&&V.dispose.length===0}function a(V){if(Fe.$.is(V)){let ee=[];for(const B of V)if(B)try{B.dispose()}catch(G){ee.push(G)}if(ee.length===1)throw ee[0];if(ee.length>1)throw new L(ee);return Array.isArray(V)?[]:V}else if(V)return V.dispose(),V}function d(...V){const ee=m(()=>a(V));return n(V,ee),ee}function m(V){const ee=Y({dispose:(0,xe.I)(()=>{O(ee),V()})});return ee}class S{constructor(){this._toDispose=new Set,this._isDisposed=!1,Y(this)}dispose(){this._isDisposed||(O(this),this._isDisposed=!0,this.clear())}clear(){try{a(this._toDispose.values())}finally{this._toDispose.clear()}}add(ee){if(!ee)return ee;if(ee===this)throw new Error("Cannot register a disposable on itself!");return I(ee,this),this._isDisposed?S.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(ee),ee}}S.DISABLE_DISPOSED_WARNING=!1;class ${constructor(){this._store=new S,Y(this),I(this._store,this)}dispose(){O(this),this._store.dispose()}_register(ee){if(ee===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(ee)}}$.None=Object.freeze({dispose(){}});class F{constructor(){this._isDisposed=!1,Y(this)}get value(){return this._isDisposed?void 0:this._value}set value(ee){var B;this._isDisposed||ee===this._value||((B=this._value)===null||B===void 0||B.dispose(),ee&&I(ee,this),this._value=ee)}clear(){this.value=void 0}dispose(){var ee;this._isDisposed=!0,O(this),(ee=this._value)===null||ee===void 0||ee.dispose(),this._value=void 0}clearAndLeak(){const ee=this._value;return this._value=void 0,ee&&I(ee,null),ee}}class H{constructor(ee){this.object=ee}dispose(){}}},34502:function(yn,Wt,g){"use strict";g.d(Wt,{S:function(){return Fe}});class xe{constructor(Me){this.element=Me,this.next=xe.Undefined,this.prev=xe.Undefined}}xe.Undefined=new xe(void 0);class Fe{constructor(){this._first=xe.Undefined,this._last=xe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===xe.Undefined}clear(){let Me=this._first;for(;Me!==xe.Undefined;){const ie=Me.next;Me.prev=xe.Undefined,Me.next=xe.Undefined,Me=ie}this._first=xe.Undefined,this._last=xe.Undefined,this._size=0}unshift(Me){return this._insert(Me,!1)}push(Me){return this._insert(Me,!0)}_insert(Me,ie){const Y=new xe(Me);if(this._first===xe.Undefined)this._first=Y,this._last=Y;else if(ie){const I=this._last;this._last=Y,Y.prev=I,I.next=Y}else{const I=this._first;this._first=Y,Y.next=I,I.prev=Y}this._size+=1;let O=!1;return()=>{O||(O=!0,this._remove(Y))}}shift(){if(this._first!==xe.Undefined){const Me=this._first.element;return this._remove(this._first),Me}}pop(){if(this._last!==xe.Undefined){const Me=this._last.element;return this._remove(this._last),Me}}_remove(Me){if(Me.prev!==xe.Undefined&&Me.next!==xe.Undefined){const ie=Me.prev;ie.next=Me.next,Me.next.prev=ie}else Me.prev===xe.Undefined&&Me.next===xe.Undefined?(this._first=xe.Undefined,this._last=xe.Undefined):Me.next===xe.Undefined?(this._last=this._last.prev,this._last.next=xe.Undefined):Me.prev===xe.Undefined&&(this._first=this._first.next,this._first.prev=xe.Undefined);this._size-=1}*[Symbol.iterator](){let Me=this._first;for(;Me!==xe.Undefined;)yield Me.element,Me=Me.next}}},23345:function(yn,Wt,g){"use strict";g.d(Wt,{$L:function(){return G},ED:function(){return H},IJ:function(){return ee},OS:function(){return Ce},WE:function(){return J},dz:function(){return V},gn:function(){return le},li:function(){return m},r:function(){return pe},tY:function(){return B},xS:function(){return we}});var xe=g(97671),Fe;const se="en";let Me=!1,ie=!1,Y=!1,O=!1,I=!1,n=!1,o=!1,L,p=null,a=null,d;const m=typeof self=="object"?self:typeof g.g=="object"?g.g:{};let S;typeof m.vscode!="undefined"&&typeof m.vscode.process!="undefined"?S=m.vscode.process:typeof xe!="undefined"&&(S=xe);const $=typeof((Fe=S==null?void 0:S.versions)===null||Fe===void 0?void 0:Fe.electron)=="string"&&S.type==="renderer";if(typeof navigator=="object"&&!$)d=navigator.userAgent,Me=d.indexOf("Windows")>=0,ie=d.indexOf("Macintosh")>=0,o=(d.indexOf("Macintosh")>=0||d.indexOf("iPad")>=0||d.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Y=d.indexOf("Linux")>=0,n=!0,L=navigator.language,p=L;else if(typeof S=="object"){Me=S.platform==="win32",ie=S.platform==="darwin",Y=S.platform==="linux",O=Y&&!!S.env.SNAP&&!!S.env.SNAP_REVISION,L=se,p=se;const T=S.env.VSCODE_NLS_CONFIG;if(T)try{const Ee=JSON.parse(T),oe=Ee.availableLanguages["*"];L=Ee.locale,p=oe||se,a=Ee._translationsConfigFile}catch(Ee){}I=!0}else console.error("Unable to resolve platform.");let F=0;ie?F=1:Me?F=3:Y&&(F=2);const H=Me,V=ie,ee=Y,B=I,G=n,le=o,J=d,we=function(){if(m.setImmediate)return m.setImmediate.bind(m);if(typeof m.postMessage=="function"&&!m.importScripts){let oe=[];m.addEventListener("message",ye=>{if(ye.data&&ye.data.vscodeSetImmediateId)for(let _=0,N=oe.length;_<N;_++){const X=oe[_];if(X.id===ye.data.vscodeSetImmediateId){oe.splice(_,1),X.callback();return}}});let fe=0;return ye=>{const _=++fe;oe.push({id:_,callback:ye}),m.postMessage({vscodeSetImmediateId:_},"*")}}if(typeof(S==null?void 0:S.nextTick)=="function")return S.nextTick.bind(S);const Ee=Promise.resolve();return oe=>Ee.then(oe)}(),Ce=ie||o?2:Me?1:3;let Le=!0,ae=!1;function pe(){if(!ae){ae=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2,Le=new Uint16Array(T.buffer)[0]===513}return Le}},95830:function(yn,Wt,g){"use strict";g.d(Wt,{G:function(){return se}});var xe=g(23345);const Fe=xe.li.performance&&typeof xe.li.performance.now=="function";class se{constructor(ie){this._highResolution=Fe&&ie,this._startTime=this._now(),this._stopTime=-1}static create(ie=!0){return new se(ie)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?xe.li.performance.now():Date.now()}}},82983:function(yn,Wt,g){"use strict";g.d(Wt,{$i:function(){return qe},C8:function(){return Jt},GF:function(){return L},HO:function(){return fe},IO:function(){return p},K7:function(){return sr},Kw:function(){return xr},LC:function(){return m},Mh:function(){return we},P1:function(){return Ce},PJ:function(){return Wr},Qe:function(){return st},R1:function(){return o},RP:function(){return X},S6:function(){return Cr},TT:function(){return H},Ut:function(){return _},V8:function(){return S},WU:function(){return se},YK:function(){return ae},YU:function(){return Me},ZG:function(){return Le},ZH:function(){return T},ab:function(){return nt},c1:function(){return We},df:function(){return G},ec:function(){return ie},fi:function(){return _e},fy:function(){return Y},j3:function(){return O},j_:function(){return ee},m5:function(){return xe},mK:function(){return B},mr:function(){return a},oH:function(){return y},oL:function(){return I},ok:function(){return J},ow:function(){return $},qq:function(){return le},qu:function(){return F},rL:function(){return pe},uS:function(){return Er},un:function(){return n},uq:function(){return d},vH:function(){return oe},xe:function(){return Rt},zY:function(){return V}});function xe(Z){return!Z||typeof Z!="string"?!0:Z.trim().length===0}const Fe=/{(\d+)}/g;function se(Z,...k){return k.length===0?Z:Z.replace(Fe,function(te,Se){const Be=parseInt(Se,10);return isNaN(Be)||Be<0||Be>=k.length?te:k[Be]})}function Me(Z){return Z.replace(/[<>&]/g,function(k){switch(k){case"<":return"<";case">":return">";case"&":return"&";default:return k}})}function ie(Z){return Z.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Y(Z,k=" "){const te=O(Z,k);return I(te,k)}function O(Z,k){if(!Z||!k)return Z;const te=k.length;if(te===0||Z.length===0)return Z;let Se=0;for(;Z.indexOf(k,Se)===Se;)Se=Se+te;return Z.substring(Se)}function I(Z,k){if(!Z||!k)return Z;const te=k.length,Se=Z.length;if(te===0||Se===0)return Z;let Be=Se,Ie=-1;for(;Ie=Z.lastIndexOf(k,Be-1),!(Ie===-1||Ie+te!==Be);){if(Ie===0)return"";Be=Ie}return Z.substring(0,Be)}function n(Z){return Z.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function o(Z){return Z.replace(/\*/g,"")}function L(Z,k,te={}){if(!Z)throw new Error("Cannot create regex from empty string");k||(Z=ie(Z)),te.wholeWord&&(/\B/.test(Z.charAt(0))||(Z="\\b"+Z),/\B/.test(Z.charAt(Z.length-1))||(Z=Z+"\\b"));let Se="";return te.global&&(Se+="g"),te.matchCase||(Se+="i"),te.multiline&&(Se+="m"),te.unicode&&(Se+="u"),new RegExp(Z,Se)}function p(Z){return Z.source==="^"||Z.source==="^$"||Z.source==="$"||Z.source==="^\\s*$"?!1:!!(Z.exec("")&&Z.lastIndex===0)}function a(Z){return(Z.global?"g":"")+(Z.ignoreCase?"i":"")+(Z.multiline?"m":"")+(Z.unicode?"u":"")}function d(Z){return Z.split(/\r\n|\r|\n/)}function m(Z){for(let k=0,te=Z.length;k<te;k++){const Se=Z.charCodeAt(k);if(Se!==32&&Se!==9)return k}return-1}function S(Z,k=0,te=Z.length){for(let Se=k;Se<te;Se++){const Be=Z.charCodeAt(Se);if(Be!==32&&Be!==9)return Z.substring(k,Se)}return Z.substring(k,te)}function $(Z,k=Z.length-1){for(let te=k;te>=0;te--){const Se=Z.charCodeAt(te);if(Se!==32&&Se!==9)return te}return-1}function F(Z,k){return Z<k?-1:Z>k?1:0}function H(Z,k,te=0,Se=Z.length,Be=0,Ie=k.length){for(;te<Se&&Be<Ie;te++,Be++){let $e=Z.charCodeAt(te),tt=k.charCodeAt(Be);if($e<tt)return-1;if($e>tt)return 1}const Ge=Se-te,mt=Ie-Be;return Ge<mt?-1:Ge>mt?1:0}function V(Z,k){return ee(Z,k,0,Z.length,0,k.length)}function ee(Z,k,te=0,Se=Z.length,Be=0,Ie=k.length){for(;te<Se&&Be<Ie;te++,Be++){let $e=Z.charCodeAt(te),tt=k.charCodeAt(Be);if($e===tt)continue;if($e>=128||tt>=128)return H(Z.toLowerCase(),k.toLowerCase(),te,Se,Be,Ie);B($e)&&($e-=32),B(tt)&&(tt-=32);const dt=$e-tt;if(dt!==0)return dt}const Ge=Se-te,mt=Ie-Be;return Ge<mt?-1:Ge>mt?1:0}function B(Z){return Z>=97&&Z<=122}function G(Z){return Z>=65&&Z<=90}function le(Z,k){return Z.length===k.length&&ee(Z,k)===0}function J(Z,k){const te=k.length;return k.length>Z.length?!1:ee(Z,k,0,te)===0}function we(Z,k){let te,Se=Math.min(Z.length,k.length);for(te=0;te<Se;te++)if(Z.charCodeAt(te)!==k.charCodeAt(te))return te;return Se}function Ce(Z,k){let te,Se=Math.min(Z.length,k.length);const Be=Z.length-1,Ie=k.length-1;for(te=0;te<Se;te++)if(Z.charCodeAt(Be-te)!==k.charCodeAt(Ie-te))return te;return Se}function Le(Z){return 55296<=Z&&Z<=56319}function ae(Z){return 56320<=Z&&Z<=57343}function pe(Z,k){return(Z-55296<<10)+(k-56320)+65536}function T(Z,k,te){const Se=Z.charCodeAt(te);if(Le(Se)&&te+1<k){const Be=Z.charCodeAt(te+1);if(ae(Be))return pe(Se,Be)}return Se}function Ee(Z,k){const te=Z.charCodeAt(k-1);if(ae(te)&&k>1){const Se=Z.charCodeAt(k-2);if(Le(Se))return pe(Se,te)}return te}function oe(Z,k){const te=kt.getInstance(),Se=k,Be=Z.length,Ie=T(Z,Be,k);k+=Ie>=65536?2:1;let Ge=te.getGraphemeBreakType(Ie);for(;k<Be;){const mt=T(Z,Be,k),$e=te.getGraphemeBreakType(mt);if(_e(Ge,$e))break;k+=mt>=65536?2:1,Ge=$e}return k-Se}function fe(Z,k){const te=kt.getInstance(),Se=k,Be=Ee(Z,k);k-=Be>=65536?2:1;let Ie=te.getGraphemeBreakType(Be);for(;k>0;){const Ge=Ee(Z,k),mt=te.getGraphemeBreakType(Ge);if(_e(mt,Ie))break;k-=Ge>=65536?2:1,Ie=mt}return Se-k}const ye=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function _(Z){return ye.test(Z)}const N=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function X(Z){return N.test(Z)}const he=/^[\t\n\r\x20-\x7E]*$/;function qe(Z){return he.test(Z)}const st=/[\u2028\u2029]/;function nt(Z){return st.test(Z)}function Rt(Z){for(let k=0,te=Z.length;k<te;k++)if(sr(Z.charCodeAt(k)))return!0;return!1}function sr(Z){return Z=+Z,Z>=11904&&Z<=55215||Z>=63744&&Z<=64255||Z>=65281&&Z<=65374}function Jt(Z){return Z>=127462&&Z<=127487||Z===8986||Z===8987||Z===9200||Z===9203||Z>=9728&&Z<=10175||Z===11088||Z===11093||Z>=127744&&Z<=128591||Z>=128640&&Z<=128764||Z>=128992&&Z<=129003||Z>=129280&&Z<=129535||Z>=129648&&Z<=129750}const We="\uFEFF";function Er(Z){return!!(Z&&Z.length>0&&Z.charCodeAt(0)===65279)}function xr(Z,k=!1){return Z?(k&&(Z=Z.replace(/\\./g,"")),Z.toLowerCase()!==Z):!1}function Wr(Z){return Z=Z%(2*26),Z<26?String.fromCharCode(97+Z):String.fromCharCode(65+Z-26)}function Cr(Z){return kt.getInstance().getGraphemeBreakType(Z)}function _e(Z,k){return Z===0?k!==5&&k!==7:Z===2&&k===3?!1:Z===4||Z===2||Z===3||k===4||k===2||k===3?!0:!(Z===8&&(k===8||k===9||k===11||k===12)||(Z===11||Z===9)&&(k===9||k===10)||(Z===12||Z===10)&&k===10||k===5||k===13||k===7||Z===1||Z===13&&k===14||Z===6&&k===6)}class kt{constructor(){this._data=K()}static getInstance(){return kt._INSTANCE||(kt._INSTANCE=new kt),kt._INSTANCE}getGraphemeBreakType(k){if(k<32)return k===10?3:k===13?2:4;if(k<127)return 0;const te=this._data,Se=te.length/3;let Be=1;for(;Be<=Se;)if(k<te[3*Be])Be=2*Be;else if(k>te[3*Be+1])Be=2*Be+1;else return te[3*Be+2];return 0}}kt._INSTANCE=null;function K(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function y(Z,k){if(Z===0)return 0;const te=h(Z,k);if(te!==void 0)return te;const Se=Ee(k,Z);return Z-=D(Se),Z}function h(Z,k){let te=Ee(k,Z);for(Z-=D(te);Ae(te)||te===65039||te===8419;){if(Z===0)return;te=Ee(k,Z),Z-=D(te)}if(Jt(te)){if(Z>=0){const Se=Ee(k,Z);Se===8205&&(Z-=D(Se))}return Z}}function D(Z){return Z>=65536?2:1}function Ae(Z){return 127995<=Z&&Z<=127999}},72999:function(yn,Wt,g){"use strict";g.d(Wt,{$E:function(){return m},$K:function(){return O},D8:function(){return p},HD:function(){return Fe},IU:function(){return S},Jp:function(){return I},Kn:function(){return se},cW:function(){return o},f6:function(){return $},hj:function(){return Me},jn:function(){return ie},kJ:function(){return xe},mf:function(){return L},o8:function(){return Y},p_:function(){return n},vE:function(){return F}});function xe(H){return Array.isArray(H)}function Fe(H){return typeof H=="string"}function se(H){return typeof H=="object"&&H!==null&&!Array.isArray(H)&&!(H instanceof RegExp)&&!(H instanceof Date)}function Me(H){return typeof H=="number"&&!isNaN(H)}function ie(H){return H===!0||H===!1}function Y(H){return typeof H=="undefined"}function O(H){return!I(H)}function I(H){return Y(H)||H===null}function n(H,V){if(!H)throw new Error(V?`Unexpected type, expected '${V}'`:"Unexpected type")}function o(H){if(I(H))throw new Error("Assertion Failed: argument is undefined or null");return H}function L(H){return typeof H=="function"}function p(H,V){const ee=Math.min(H.length,V.length);for(let B=0;B<ee;B++)a(H[B],V[B])}function a(H,V){if(Fe(V)){if(typeof H!==V)throw new Error(`argument does not match constraint: typeof ${V}`)}else if(L(V)){try{if(H instanceof V)return}catch(ee){}if(!I(H)&&H.constructor===V||V.length===1&&V.call(void 0,H)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function d(H){let V=[],ee=Object.getPrototypeOf(H);for(;Object.prototype!==ee;)V=V.concat(Object.getOwnPropertyNames(ee)),ee=Object.getPrototypeOf(ee);return V}function m(H){const V=[];for(const ee of d(H))typeof H[ee]=="function"&&V.push(ee);return V}function S(H,V){const ee=G=>function(){const le=Array.prototype.slice.call(arguments,0);return V(G,le)};let B={};for(const G of H)B[G]=ee(G);return B}function $(H){return H===null?void 0:H}function F(H,V="Unreachable"){throw new Error(V)}},13268:function(yn,Wt,g){"use strict";g.d(Wt,{N:function(){return Fe}});function xe(se,Me){let ie;return Me.length===0?ie=se:ie=se.replace(/\{(\d+)\}/g,function(Y,O){const I=O[0];return typeof Me[I]!="undefined"?Me[I]:Y}),ie}function Fe(se,Me,...ie){return xe(Me,ie)}},96236:function(yn,Wt,g){"use strict";g.d(Wt,{BH:function(){return S},NZ:function(){return $},U8:function(){return F},co:function(){return m},eH:function(){return d},vr:function(){return a}});var xe=g(75918),Fe=g(52615),se=g(4348),Me=g(88226),ie=g(69323),Y=g(34502),O=g(35884),I=g(90689),n=g(16925),o=g(49055),L=function(H,V,ee,B){var G=arguments.length,le=G<3?V:B===null?B=Object.getOwnPropertyDescriptor(V,ee):B,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(H,V,ee,B);else for(var we=H.length-1;we>=0;we--)(J=H[we])&&(le=(G<3?J(le):G>3?J(V,ee,le):J(V,ee))||le);return G>3&&le&&Object.defineProperty(V,ee,le),le},p=function(H,V){return function(ee,B){V(ee,B,H)}};function a(H){return H.command!==void 0}class d{constructor(V){this.id=d._idPool++,this._debugName=V}}d._idPool=0,d.CommandPalette=new d("CommandPalette"),d.EditorContext=new d("EditorContext"),d.SimpleEditorContext=new d("SimpleEditorContext"),d.EditorContextCopy=new d("EditorContextCopy"),d.EditorContextPeek=new d("EditorContextPeek"),d.MenubarEditMenu=new d("MenubarEditMenu"),d.MenubarCopy=new d("MenubarCopy"),d.MenubarGoMenu=new d("MenubarGoMenu"),d.MenubarSelectionMenu=new d("MenubarSelectionMenu"),d.InlineCompletionsActions=new d("InlineCompletionsActions");const m=(0,n.yh)("menuService"),S=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new se.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:H=>H===d.CommandPalette}}addCommand(H){return this.addCommands(Me.$.single(H))}addCommands(H){for(const V of H)this._commands.set(V.id,V);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,ie.OF)(()=>{let V=!1;for(const ee of H)V=this._commands.delete(ee.id)||V;V&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(H){return this._commands.get(H)}getCommands(){const H=new Map;return this._commands.forEach((V,ee)=>H.set(ee,V)),H}appendMenuItem(H,V){return this.appendMenuItems(Me.$.single({id:H,item:V}))}appendMenuItems(H){const V=new Set,ee=new Y.S;for(const{id:B,item:G}of H){let le=this._menuItems.get(B);le||(le=new Y.S,this._menuItems.set(B,le)),ee.push(le.push(G)),V.add(B)}return this._onDidChangeMenu.fire(V),(0,ie.OF)(()=>{if(ee.size>0){for(let B of ee)B();this._onDidChangeMenu.fire(V),ee.clear()}})}getMenuItems(H){let V;return this._menuItems.has(H)?V=[...this._menuItems.get(H)]:V=[],H===d.CommandPalette&&this._appendImplicitItems(V),V}_appendImplicitItems(H){const V=new Set;for(const ee of H)a(ee)&&(V.add(ee.command.id),ee.alt&&V.add(ee.alt.id));this._commands.forEach((ee,B)=>{V.has(B)||H.push({command:ee})})}};class $ extends xe.wY{constructor(V,ee,B,G){super(`submenuitem.${V.submenu.id}`,typeof V.title=="string"?V.title:V.title.value,[],"submenu"),this.item=V,this._menuService=ee,this._contextKeyService=B,this._options=G}get actions(){const V=[],ee=this._menuService.createMenu(this.item.submenu,this._contextKeyService),B=ee.getActions(this._options);ee.dispose();for(const[,G]of B)G.length>0&&(V.push(...G),V.push(new xe.Z0));return V.length&&V.pop(),V}}let F=class ZA{constructor(V,ee,B,G,le){var J,we;if(this._commandService=le,this.id=V.id,this.label=B!=null&&B.renderShortTitle&&V.shortTitle?typeof V.shortTitle=="string"?V.shortTitle:V.shortTitle.value:typeof V.title=="string"?V.title:V.title.value,this.tooltip=(we=typeof V.tooltip=="string"?V.tooltip:(J=V.tooltip)===null||J===void 0?void 0:J.value)!==null&&we!==void 0?we:"",this.enabled=!V.precondition||G.contextMatchesRules(V.precondition),this.checked=void 0,V.toggled){const Ce=V.toggled.condition?V.toggled:{condition:V.toggled};this.checked=G.contextMatchesRules(Ce.condition),this.checked&&Ce.tooltip&&(this.tooltip=typeof Ce.tooltip=="string"?Ce.tooltip:Ce.tooltip.value),Ce.title&&(this.label=typeof Ce.title=="string"?Ce.title:Ce.title.value)}this.item=V,this.alt=ee?new ZA(ee,void 0,B,G,le):void 0,this._options=B,o.kS.isThemeIcon(V.icon)&&(this.class=Fe.dT.asClassName(V.icon))}dispose(){}run(...V){var ee,B;let G=[];return!((ee=this._options)===null||ee===void 0)&&ee.arg&&(G=[...G,this._options.arg]),!((B=this._options)===null||B===void 0)&&B.shouldForwardArgs&&(G=[...G,...V]),this._commandService.executeCommand(this.id,...G)}};F=L([p(3,I.i6),p(4,O.H)],F)},35884:function(yn,Wt,g){"use strict";g.d(Wt,{H:function(){return O},P:function(){return I}});var xe=g(4348),Fe=g(88226),se=g(69323),Me=g(34502),ie=g(72999),Y=g(16925);const O=(0,Y.yh)("commandService"),I=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new xe.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(n,o){if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!o)throw new Error("invalid command");return this.registerCommand({id:n,handler:o})}if(n.description){const m=[];for(let $ of n.description.args)m.push($.constraint);const S=n.handler;n.handler=function($,...F){return(0,ie.D8)(F,m),S($,...F)}}const{id:L}=n;let p=this._commands.get(L);p||(p=new Me.S,this._commands.set(L,p));let a=p.unshift(n),d=(0,se.OF)(()=>{a();const m=this._commands.get(L);m!=null&&m.isEmpty()&&this._commands.delete(L)});return this._onDidRegisterCommand.fire(L),d}registerCommandAlias(n,o){return I.registerCommand(n,(L,...p)=>L.get(O).executeCommand(o,...p))}getCommand(n){const o=this._commands.get(n);if(!(!o||o.isEmpty()))return Fe.$.first(o)}getCommands(){const n=new Map;for(const o of this._commands.keys()){const L=this.getCommand(o);L&&n.set(o,L)}return n}};I.registerCommand("noop",()=>{})},90689:function(yn,Wt,g){"use strict";g.d(Wt,{Ao:function(){return O},Eq:function(){return pe},Fb:function(){return I},K8:function(){return oe},i6:function(){return ae},uy:function(){return Le}});var xe=g(23345),Fe=g(82983),se=g(16925);let Me=xe.WE||"";const ie=new Map;ie.set("false",!1),ie.set("true",!0),ie.set("isMac",xe.dz),ie.set("isLinux",xe.IJ),ie.set("isWindows",xe.ED),ie.set("isWeb",xe.$L),ie.set("isMacNative",xe.dz&&!xe.$L),ie.set("isEdge",Me.indexOf("Edg/")>=0),ie.set("isFirefox",Me.indexOf("Firefox")>=0),ie.set("isChrome",Me.indexOf("Chrome")>=0),ie.set("isSafari",Me.indexOf("Safari")>=0);const Y=Object.prototype.hasOwnProperty;class O{static has(_){return p.create(_)}static equals(_,N){return a.create(_,N)}static regex(_,N){return G.create(_,N)}static not(_){return $.create(_)}static and(..._){return we.create(_,null)}static or(..._){return Ce.create(_,null,!0)}static deserialize(_,N=!1){if(_)return this._deserializeOrExpression(_,N)}static _deserializeOrExpression(_,N){let X=_.split("||");return Ce.create(X.map(he=>this._deserializeAndExpression(he,N)),null,!0)}static _deserializeAndExpression(_,N){let X=_.split("&&");return we.create(X.map(he=>this._deserializeOne(he,N)),null)}static _deserializeOne(_,N){if(_=_.trim(),_.indexOf("!=")>=0){let X=_.split("!=");return S.create(X[0].trim(),this._deserializeValue(X[1],N))}if(_.indexOf("==")>=0){let X=_.split("==");return a.create(X[0].trim(),this._deserializeValue(X[1],N))}if(_.indexOf("=~")>=0){let X=_.split("=~");return G.create(X[0].trim(),this._deserializeRegexValue(X[1],N))}if(_.indexOf(" in ")>=0){let X=_.split(" in ");return d.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(_)){const X=_.split(">=");return V.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(_)){const X=_.split(">");return H.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(_)){const X=_.split("<=");return B.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(_)){const X=_.split("<");return ee.create(X[0].trim(),X[1].trim())}return/^\!\s*/.test(_)?$.create(_.substr(1).trim()):p.create(_)}static _deserializeValue(_,N){if(_=_.trim(),_==="true")return!0;if(_==="false")return!1;let X=/^'([^']*)'$/.exec(_);return X?X[1].trim():_}static _deserializeRegexValue(_,N){if((0,Fe.m5)(_)){if(N)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let X=_.indexOf("/"),he=_.lastIndexOf("/");if(X===he||X<0){if(N)throw new Error(`bad regexp-value '${_}', missing /-enclosure`);return console.warn(`bad regexp-value '${_}', missing /-enclosure`),null}let qe=_.slice(X+1,he),st=_[he+1]==="i"?"i":"";try{return new RegExp(qe,st)}catch(nt){if(N)throw new Error(`bad regexp-value '${_}', parse error: ${nt}`);return console.warn(`bad regexp-value '${_}', parse error: ${nt}`),null}}}function I(ye,_){const N=ye?ye.substituteConstants():void 0,X=_?_.substituteConstants():void 0;return!N&&!X?!0:!N||!X?!1:N.equals(X)}function n(ye,_){return ye.cmp(_)}class o{constructor(){this.type=0}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!1}serialize(){return"false"}keys(){return[]}negate(){return L.INSTANCE}}o.INSTANCE=new o;class L{constructor(){this.type=1}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!0}serialize(){return"true"}keys(){return[]}negate(){return o.INSTANCE}}L.INSTANCE=new L;class p{constructor(_,N){this.key=_,this.negated=N,this.type=2}static create(_,N=null){const X=ie.get(_);return typeof X=="boolean"?X?L.INSTANCE:o.INSTANCE:new p(_,N)}cmp(_){return _.type!==this.type?this.type-_.type:T(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=ie.get(this.key);return typeof _=="boolean"?_?L.INSTANCE:o.INSTANCE:this}evaluate(_){return!!_.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this)),this.negated}}class a{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=4}static create(_,N,X=null){if(typeof N=="boolean")return N?p.create(_,X):$.create(_,X);const he=ie.get(_);return typeof he=="boolean"?N===(he?"true":"false")?L.INSTANCE:o.INSTANCE:new a(_,N,X)}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=ie.get(this.key);if(typeof _=="boolean"){const N=_?"true":"false";return this.value===N?L.INSTANCE:o.INSTANCE}return this}evaluate(_){return _.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this.value,this)),this.negated}}class d{constructor(_,N){this.key=_,this.valueKey=N,this.type=10,this.negated=null}static create(_,N){return new d(_,N)}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.valueKey,_.key,_.valueKey)}equals(_){return _.type===this.type?this.key===_.key&&this.valueKey===_.valueKey:!1}substituteConstants(){return this}evaluate(_){const N=_.getValue(this.valueKey),X=_.getValue(this.key);return Array.isArray(N)?N.indexOf(X)>=0:typeof X=="string"&&typeof N=="object"&&N!==null?Y.call(N,X):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=m.create(this)),this.negated}}class m{constructor(_){this._actual=_,this.type=11}static create(_){return new m(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class S{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=5}static create(_,N,X=null){if(typeof N=="boolean")return N?$.create(_,X):p.create(_,X);const he=ie.get(_);return typeof he=="boolean"?N===(he?"true":"false")?o.INSTANCE:L.INSTANCE:new S(_,N,X)}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=ie.get(this.key);if(typeof _=="boolean"){const N=_?"true":"false";return this.value===N?o.INSTANCE:L.INSTANCE}return this}evaluate(_){return _.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=a.create(this.key,this.value,this)),this.negated}}class ${constructor(_,N){this.key=_,this.negated=N,this.type=3}static create(_,N=null){const X=ie.get(_);return typeof X=="boolean"?X?o.INSTANCE:L.INSTANCE:new $(_,N)}cmp(_){return _.type!==this.type?this.type-_.type:T(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=ie.get(this.key);return typeof _=="boolean"?_?o.INSTANCE:L.INSTANCE:this}evaluate(_){return!_.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function F(ye,_){if(typeof ye=="string"){const N=parseFloat(ye);isNaN(N)||(ye=N)}return typeof ye=="string"||typeof ye=="number"?_(ye):o.INSTANCE}class H{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=12}static create(_,N,X=null){return F(N,he=>new H(_,he,X))}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class V{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=13}static create(_,N,X=null){return F(N,he=>new V(_,he,X))}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ee.create(this.key,this.value,this)),this.negated}}class ee{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=14}static create(_,N,X=null){return F(N,he=>new ee(_,he,X))}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class B{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=15}static create(_,N,X=null){return F(N,he=>new B(_,he,X))}cmp(_){return _.type!==this.type?this.type-_.type:Ee(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class G{constructor(_,N){this.key=_,this.regexp=N,this.type=7,this.negated=null}static create(_,N){return new G(_,N)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.key<_.key)return-1;if(this.key>_.key)return 1;const N=this.regexp?this.regexp.source:"",X=_.regexp?_.regexp.source:"";return N<X?-1:N>X?1:0}equals(_){if(_.type===this.type){const N=this.regexp?this.regexp.source:"",X=_.regexp?_.regexp.source:"";return this.key===_.key&&N===X}return!1}substituteConstants(){return this}evaluate(_){let N=_.getValue(this.key);return this.regexp?this.regexp.test(N):!1}serialize(){const _=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${_}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=le.create(this)),this.negated}}class le{constructor(_){this._actual=_,this.type=8}static create(_){return new le(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function J(ye){let _=null;for(let N=0,X=ye.length;N<X;N++){const he=ye[N].substituteConstants();if(ye[N]!==he&&_===null){_=[];for(let qe=0;qe<N;qe++)_[qe]=ye[qe]}_!==null&&(_[N]=he)}return _===null?ye:_}class we{constructor(_,N){this.expr=_,this.negated=N,this.type=6}static create(_,N){return we._normalizeArr(_,N)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let N=0,X=this.expr.length;N<X;N++){const he=n(this.expr[N],_.expr[N]);if(he!==0)return he}return 0}equals(_){if(_.type===this.type){if(this.expr.length!==_.expr.length)return!1;for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].equals(_.expr[N]))return!1;return!0}return!1}substituteConstants(){const _=J(this.expr);return _===this.expr?this:we.create(_,this.negated)}evaluate(_){for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].evaluate(_))return!1;return!0}static _normalizeArr(_,N){const X=[];let he=!1;for(const qe of _)if(qe){if(qe.type===1){he=!0;continue}if(qe.type===0)return o.INSTANCE;if(qe.type===6){X.push(...qe.expr);continue}X.push(qe)}if(X.length===0&&he)return L.INSTANCE;if(X.length!==0){if(X.length===1)return X[0];X.sort(n);for(let qe=1;qe<X.length;qe++)X[qe-1].equals(X[qe])&&(X.splice(qe,1),qe--);if(X.length===1)return X[0];for(;X.length>1;){const qe=X[X.length-1];if(qe.type!==9)break;X.pop();const st=X.pop(),nt=X.length===0,Rt=Ce.create(qe.expr.map(sr=>we.create([sr,st],null)),null,nt);Rt&&(X.push(Rt),X.sort(n))}return X.length===1?X[0]:new we(X,N)}}serialize(){return this.expr.map(_=>_.serialize()).join(" && ")}keys(){const _=[];for(let N of this.expr)_.push(...N.keys());return _}negate(){if(!this.negated){const _=[];for(let N of this.expr)_.push(N.negate());this.negated=Ce.create(_,this,!0)}return this.negated}}class Ce{constructor(_,N){this.expr=_,this.negated=N,this.type=9}static create(_,N,X){return Ce._normalizeArr(_,N,X)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let N=0,X=this.expr.length;N<X;N++){const he=n(this.expr[N],_.expr[N]);if(he!==0)return he}return 0}equals(_){if(_.type===this.type){if(this.expr.length!==_.expr.length)return!1;for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].equals(_.expr[N]))return!1;return!0}return!1}substituteConstants(){const _=J(this.expr);return _===this.expr?this:Ce.create(_,this.negated,!1)}evaluate(_){for(let N=0,X=this.expr.length;N<X;N++)if(this.expr[N].evaluate(_))return!0;return!1}static _normalizeArr(_,N,X){let he=[],qe=!1;if(_){for(let st=0,nt=_.length;st<nt;st++){const Rt=_[st];if(Rt){if(Rt.type===0){qe=!0;continue}if(Rt.type===1)return L.INSTANCE;if(Rt.type===9){he=he.concat(Rt.expr);continue}he.push(Rt)}}if(he.length===0&&qe)return o.INSTANCE;he.sort(n)}if(he.length!==0){if(he.length===1)return he[0];for(let st=1;st<he.length;st++)he[st-1].equals(he[st])&&(he.splice(st,1),st--);if(he.length===1)return he[0];if(X){for(let st=0;st<he.length;st++)for(let nt=st+1;nt<he.length;nt++)oe(he[st],he[nt])&&(he.splice(nt,1),nt--);if(he.length===1)return he[0]}return new Ce(he,N)}}serialize(){return this.expr.map(_=>_.serialize()).join(" || ")}keys(){const _=[];for(let N of this.expr)_.push(...N.keys());return _}negate(){if(!this.negated){let _=[];for(let N of this.expr)_.push(N.negate());for(;_.length>1;){const N=_.shift(),X=_.shift(),he=[];for(const st of fe(N))for(const nt of fe(X))he.push(we.create([st,nt],null));const qe=_.length===0;_.unshift(Ce.create(he,null,qe))}this.negated=_[0]}return this.negated}}class Le extends p{constructor(_,N,X){super(_,null),this._defaultValue=N,typeof X=="object"?Le._info.push(Object.assign(Object.assign({},X),{key:_})):X!==!0&&Le._info.push({key:_,description:X,type:N!=null?typeof N:void 0})}static all(){return Le._info.values()}bindTo(_){return _.createKey(this.key,this._defaultValue)}getValue(_){return _.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(_){return a.create(this.key,_)}}Le._info=[];const ae=(0,se.yh)("contextKeyService"),pe="setContext";function T(ye,_){return ye<_?-1:ye>_?1:0}function Ee(ye,_,N,X){return ye<N?-1:ye>N?1:_<X?-1:_>X?1:0}function oe(ye,_){if(_.type===6&&ye.type!==9&&ye.type!==6){for(const he of _.expr)if(ye.equals(he))return!0}const N=ye.negate(),X=fe(N).concat(fe(_));X.sort(n);for(let he=0;he<X.length;he++){const st=X[he].negate();for(let nt=he+1;nt<X.length;nt++){const Rt=X[nt];if(st.equals(Rt))return!0}}return!1}function fe(ye){return ye.type===9?ye.expr:[ye]}},16925:function(yn,Wt,g){"use strict";g.d(Wt,{I8:function(){return xe},TG:function(){return Fe},jt:function(){return ie},yh:function(){return Me}});var xe;(function(Y){Y.serviceIds=new Map,Y.DI_TARGET="$di$target",Y.DI_DEPENDENCIES="$di$dependencies";function O(I){return I[Y.DI_DEPENDENCIES]||[]}Y.getServiceDependencies=O})(xe||(xe={}));const Fe=Me("instantiationService");function se(Y,O,I,n){O[xe.DI_TARGET]===O?O[xe.DI_DEPENDENCIES].push({id:Y,index:I,optional:n}):(O[xe.DI_DEPENDENCIES]=[{id:Y,index:I,optional:n}],O[xe.DI_TARGET]=O)}function Me(Y){if(xe.serviceIds.has(Y))return xe.serviceIds.get(Y);const O=function(I,n,o){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");se(O,I,o,!1)};return O.toString=()=>Y,xe.serviceIds.set(Y,O),O}function ie(Y){return function(O,I,n){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");se(Y,O,n,!0)}}},44650:function(yn,Wt,g){"use strict";g.d(Wt,{B:function(){return Me}});var xe=g(76068),Fe=g(72999);class se{constructor(){this.data=new Map}add(Y,O){xe.ok(Fe.HD(Y)),xe.ok(Fe.Kn(O)),xe.ok(!this.data.has(Y),"There is already an extension with this id"),this.data.set(Y,O)}as(Y){return this.data.get(Y)||null}}const Me=new se},66213:function(yn,Wt,g){"use strict";g.d(Wt,{e:function(){return xe}});var xe;(function(Fe){Fe.DARK="dark",Fe.LIGHT="light",Fe.HIGH_CONTRAST="hc"})(xe||(xe={}))},49055:function(yn,Wt,g){"use strict";g.d(Wt,{EN:function(){return n},IP:function(){return p},Ic:function(){return m},XE:function(){return O},bB:function(){return S},kS:function(){return o},m6:function(){return L}});var xe=g(52615),Fe=g(4348),se=g(69323),Me=g(16925),ie=g(44650),Y=g(66213);const O=(0,Me.yh)("themeService");var I;(function($){function F(H){return H&&typeof H=="object"&&typeof H.id=="string"}$.isThemeColor=F})(I||(I={}));function n($){return{id:$}}var o;(function($){function F(le){return le&&typeof le=="object"&&typeof le.id=="string"&&(typeof le.color=="undefined"||I.isThemeColor(le.color))}$.isThemeIcon=F;const H=new RegExp(`^\\$\\((${xe.dT.iconNameExpression}(?:${xe.dT.iconModifierExpression})?)\\)$`);function V(le){const J=H.exec(le);if(!J)return;let[,we]=J;return{id:we}}$.fromString=V;function ee(le,J){let we=le.id;const Ce=we.lastIndexOf("~");return Ce!==-1&&(we=we.substring(0,Ce)),J&&(we=`${we}~${J}`),{id:we}}$.modify=ee;function B(le,J){var we,Ce;return le.id===J.id&&((we=le.color)===null||we===void 0?void 0:we.id)===((Ce=J.color)===null||Ce===void 0?void 0:Ce.id)}$.isEqual=B;function G(le,J){return{id:le.id,color:J?n(J):void 0}}$.asThemeIcon=G,$.asClassNameArray=xe.dT.asClassNameArray,$.asClassName=xe.dT.asClassName,$.asCSSSelector=xe.dT.asCSSSelector})(o||(o={}));function L($){switch($){case Y.e.DARK:return"vs-dark";case Y.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class a{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Fe.Q5}onColorThemeChange(F){return this.themingParticipants.push(F),this.onThemingParticipantAddedEmitter.fire(F),(0,se.OF)(()=>{const H=this.themingParticipants.indexOf(F);this.themingParticipants.splice(H,1)})}getThemingParticipants(){return this.themingParticipants}}let d=new a;ie.B.add(p.ThemingContribution,d);function m($){return d.onColorThemeChange($)}class S extends se.JT{constructor(F){super(),this.themeService=F,this.theme=F.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(H=>this.onThemeChange(H)))}onThemeChange(F){this.theme=F,this.updateStyles()}updateStyles(){}}},5630:function(yn,Wt,g){"use strict";var xe=g(96663),Fe=g(44127),se=g(90493),Me=g(72071),ie=g(6620),Y=g(92310),O=g.n(Y),I=g(18929),n=g(59301),o=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],L=(0,n.forwardRef)(function(p,a){var d,m=p.prefixCls,S=m===void 0?"rc-checkbox":m,$=p.className,F=p.style,H=p.checked,V=p.disabled,ee=p.defaultChecked,B=ee===void 0?!1:ee,G=p.type,le=G===void 0?"checkbox":G,J=p.title,we=p.onChange,Ce=(0,ie.Z)(p,o),Le=(0,n.useRef)(null),ae=(0,I.Z)(B,{value:H}),pe=(0,Me.Z)(ae,2),T=pe[0],Ee=pe[1];(0,n.useImperativeHandle)(a,function(){return{focus:function(){var _;(_=Le.current)===null||_===void 0||_.focus()},blur:function(){var _;(_=Le.current)===null||_===void 0||_.blur()},input:Le.current}});var oe=O()(S,$,(d={},(0,se.Z)(d,"".concat(S,"-checked"),T),(0,se.Z)(d,"".concat(S,"-disabled"),V),d)),fe=function(_){V||("checked"in p||Ee(_.target.checked),we==null||we({target:(0,Fe.Z)((0,Fe.Z)({},p),{},{type:le,checked:_.target.checked}),stopPropagation:function(){_.stopPropagation()},preventDefault:function(){_.preventDefault()},nativeEvent:_.nativeEvent}))};return n.createElement("span",{className:oe,title:J,style:F},n.createElement("input",(0,xe.Z)({},Ce,{className:"".concat(S,"-input"),ref:Le,onChange:fe,disabled:V,checked:!!T,type:le})),n.createElement("span",{className:"".concat(S,"-inner")}))});Wt.Z=L},31561:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return le}});var xe=g(96663),Fe=g(90493),se=g(72071),Me=g(6620),ie=g(35593),Y=g(92310),O=g.n(Y),I=g(8654),n=g(59301),o=g(10228),L=g(16089),p=o.Z.ESC,a=o.Z.TAB;function d(J){var we=J.visible,Ce=J.triggerRef,Le=J.onVisibleChange,ae=J.autoFocus,pe=J.overlayRef,T=n.useRef(!1),Ee=function(){if(we){var _,N;(_=Ce.current)===null||_===void 0||(N=_.focus)===null||N===void 0||N.call(_),Le==null||Le(!1)}},oe=function(){var _;return(_=pe.current)!==null&&_!==void 0&&_.focus?(pe.current.focus(),T.current=!0,!0):!1},fe=function(_){switch(_.keyCode){case p:Ee();break;case a:{var N=!1;T.current||(N=oe()),N?_.preventDefault():Ee();break}}};n.useEffect(function(){return we?(window.addEventListener("keydown",fe),ae&&(0,L.Z)(oe,3),function(){window.removeEventListener("keydown",fe),T.current=!1}):function(){T.current=!1}},[we])}var m=(0,n.forwardRef)(function(J,we){var Ce=J.overlay,Le=J.arrow,ae=J.prefixCls,pe=(0,n.useMemo)(function(){var Ee;return typeof Ce=="function"?Ee=Ce():Ee=Ce,Ee},[Ce]),T=(0,I.sQ)(we,pe==null?void 0:pe.ref);return n.createElement(n.Fragment,null,Le&&n.createElement("div",{className:"".concat(ae,"-arrow")}),n.cloneElement(pe,{ref:(0,I.Yr)(pe)?T:void 0}))}),S=m,$={adjustX:1,adjustY:1},F=[0,0],H={topLeft:{points:["bl","tl"],overflow:$,offset:[0,-4],targetOffset:F},top:{points:["bc","tc"],overflow:$,offset:[0,-4],targetOffset:F},topRight:{points:["br","tr"],overflow:$,offset:[0,-4],targetOffset:F},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,4],targetOffset:F},bottom:{points:["tc","bc"],overflow:$,offset:[0,4],targetOffset:F},bottomRight:{points:["tr","br"],overflow:$,offset:[0,4],targetOffset:F}},V=H,ee=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function B(J,we){var Ce,Le=J.arrow,ae=Le===void 0?!1:Le,pe=J.prefixCls,T=pe===void 0?"rc-dropdown":pe,Ee=J.transitionName,oe=J.animation,fe=J.align,ye=J.placement,_=ye===void 0?"bottomLeft":ye,N=J.placements,X=N===void 0?V:N,he=J.getPopupContainer,qe=J.showAction,st=J.hideAction,nt=J.overlayClassName,Rt=J.overlayStyle,sr=J.visible,Jt=J.trigger,We=Jt===void 0?["hover"]:Jt,Er=J.autoFocus,xr=J.overlay,Wr=J.children,Cr=J.onVisibleChange,_e=(0,Me.Z)(J,ee),kt=n.useState(),K=(0,se.Z)(kt,2),y=K[0],h=K[1],D="visible"in J?sr:y,Ae=n.useRef(null),Z=n.useRef(null),k=n.useRef(null);n.useImperativeHandle(we,function(){return Ae.current});var te=function(Ze){h(Ze),Cr==null||Cr(Ze)};d({visible:D,triggerRef:k,onVisibleChange:te,autoFocus:Er,overlayRef:Z});var Se=function(Ze){var Ke=J.onOverlayClick;h(!1),Ke&&Ke(Ze)},Be=function(){return n.createElement(S,{ref:Z,overlay:xr,prefixCls:T,arrow:ae})},Ie=function(){return typeof xr=="function"?Be:Be()},Ge=function(){var Ze=J.minOverlayWidthMatchTrigger,Ke=J.alignPoint;return"minOverlayWidthMatchTrigger"in J?Ze:!Ke},mt=function(){var Ze=J.openClassName;return Ze!==void 0?Ze:"".concat(T,"-open")},$e=n.cloneElement(Wr,{className:O()((Ce=Wr.props)===null||Ce===void 0?void 0:Ce.className,D&&mt()),ref:(0,I.Yr)(Wr)?(0,I.sQ)(k,Wr.ref):void 0}),tt=st;return!tt&&We.indexOf("contextMenu")!==-1&&(tt=["click"]),n.createElement(ie.Z,(0,xe.Z)({builtinPlacements:X},_e,{prefixCls:T,ref:Ae,popupClassName:O()(nt,(0,Fe.Z)({},"".concat(T,"-show-arrow"),ae)),popupStyle:Rt,action:We,showAction:qe,hideAction:tt,popupPlacement:_,popupAlign:fe,popupTransitionName:Ee,popupAnimation:oe,popupVisible:D,stretch:Ge()?"minWidth":"",popup:Ie(),onPopupVisibleChange:te,onPopupClick:Se,getPopupContainer:he}),$e)}var G=n.forwardRef(B),le=G},93681:function(yn,Wt,g){"use strict";g.r(Wt),g.d(Wt,{BaseInput:function(){return o},default:function(){return H}});var xe=g(96663),Fe=g(44127),se=g(90493),Me=g(20135),ie=g(92310),Y=g.n(ie),O=g(59301),I=g(5643),n=function(ee){var B,G,le=ee.inputElement,J=ee.prefixCls,we=ee.prefix,Ce=ee.suffix,Le=ee.addonBefore,ae=ee.addonAfter,pe=ee.className,T=ee.style,Ee=ee.disabled,oe=ee.readOnly,fe=ee.focused,ye=ee.triggerFocus,_=ee.allowClear,N=ee.value,X=ee.handleReset,he=ee.hidden,qe=ee.classes,st=ee.classNames,nt=ee.dataAttrs,Rt=ee.styles,sr=ee.components,Jt=(sr==null?void 0:sr.affixWrapper)||"span",We=(sr==null?void 0:sr.groupWrapper)||"span",Er=(sr==null?void 0:sr.wrapper)||"span",xr=(sr==null?void 0:sr.groupAddon)||"span",Wr=(0,O.useRef)(null),Cr=function(Be){var Ie;(Ie=Wr.current)!==null&&Ie!==void 0&&Ie.contains(Be.target)&&(ye==null||ye())},_e=function(){var Be;if(!_)return null;var Ie=!Ee&&!oe&&N,Ge="".concat(J,"-clear-icon"),mt=(0,Me.Z)(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"\u2716";return O.createElement("span",{onClick:X,onMouseDown:function(tt){return tt.preventDefault()},className:Y()(Ge,(Be={},(0,se.Z)(Be,"".concat(Ge,"-hidden"),!Ie),(0,se.Z)(Be,"".concat(Ge,"-has-suffix"),!!Ce),Be)),role:"button",tabIndex:-1},mt)},kt=(0,O.cloneElement)(le,{value:N,hidden:he,className:Y()((B=le.props)===null||B===void 0?void 0:B.className,!(0,I.X3)(ee)&&!(0,I.He)(ee)&&pe)||null,style:(0,Fe.Z)((0,Fe.Z)({},(G=le.props)===null||G===void 0?void 0:G.style),!(0,I.X3)(ee)&&!(0,I.He)(ee)?T:{})});if((0,I.X3)(ee)){var K,y="".concat(J,"-affix-wrapper"),h=Y()(y,(K={},(0,se.Z)(K,"".concat(y,"-disabled"),Ee),(0,se.Z)(K,"".concat(y,"-focused"),fe),(0,se.Z)(K,"".concat(y,"-readonly"),oe),(0,se.Z)(K,"".concat(y,"-input-with-clear-btn"),Ce&&_&&N),K),!(0,I.He)(ee)&&pe,qe==null?void 0:qe.affixWrapper,st==null?void 0:st.affixWrapper),D=(Ce||_)&&O.createElement("span",{className:Y()("".concat(J,"-suffix"),st==null?void 0:st.suffix),style:Rt==null?void 0:Rt.suffix},_e(),Ce);kt=O.createElement(Jt,(0,xe.Z)({className:h,style:(0,Fe.Z)((0,Fe.Z)({},(0,I.He)(ee)?void 0:T),Rt==null?void 0:Rt.affixWrapper),hidden:!(0,I.He)(ee)&&he,onClick:Cr},nt==null?void 0:nt.affixWrapper,{ref:Wr}),we&&O.createElement("span",{className:Y()("".concat(J,"-prefix"),st==null?void 0:st.prefix),style:Rt==null?void 0:Rt.prefix},we),(0,O.cloneElement)(le,{value:N,hidden:null}),D)}if((0,I.He)(ee)){var Ae="".concat(J,"-group"),Z="".concat(Ae,"-addon"),k=Y()("".concat(J,"-wrapper"),Ae,qe==null?void 0:qe.wrapper),te=Y()("".concat(J,"-group-wrapper"),pe,qe==null?void 0:qe.group);return O.createElement(We,{className:te,style:T,hidden:he},O.createElement(Er,{className:k},Le&&O.createElement(xr,{className:Z},Le),(0,O.cloneElement)(kt,{hidden:null}),ae&&O.createElement(xr,{className:Z},ae)))}return kt},o=n,L=g(19127),p=g(72071),a=g(6620),d=g(18929),m=g(2738),S=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],$=(0,O.forwardRef)(function(V,ee){var B=V.autoComplete,G=V.onChange,le=V.onFocus,J=V.onBlur,we=V.onPressEnter,Ce=V.onKeyDown,Le=V.prefixCls,ae=Le===void 0?"rc-input":Le,pe=V.disabled,T=V.htmlSize,Ee=V.className,oe=V.maxLength,fe=V.suffix,ye=V.showCount,_=V.type,N=_===void 0?"text":_,X=V.classes,he=V.classNames,qe=V.styles,st=(0,a.Z)(V,S),nt=(0,d.Z)(V.defaultValue,{value:V.value}),Rt=(0,p.Z)(nt,2),sr=Rt[0],Jt=Rt[1],We=(0,O.useState)(!1),Er=(0,p.Z)(We,2),xr=Er[0],Wr=Er[1],Cr=(0,O.useRef)(null),_e=function(te){Cr.current&&(0,I.nH)(Cr.current,te)};(0,O.useImperativeHandle)(ee,function(){return{focus:_e,blur:function(){var te;(te=Cr.current)===null||te===void 0||te.blur()},setSelectionRange:function(te,Se,Be){var Ie;(Ie=Cr.current)===null||Ie===void 0||Ie.setSelectionRange(te,Se,Be)},select:function(){var te;(te=Cr.current)===null||te===void 0||te.select()},input:Cr.current}}),(0,O.useEffect)(function(){Wr(function(k){return k&&pe?!1:k})},[pe]);var kt=function(te){V.value===void 0&&Jt(te.target.value),Cr.current&&(0,I.rJ)(Cr.current,te,G)},K=function(te){we&&te.key==="Enter"&&we(te),Ce==null||Ce(te)},y=function(te){Wr(!0),le==null||le(te)},h=function(te){Wr(!1),J==null||J(te)},D=function(te){Jt(""),_e(),Cr.current&&(0,I.rJ)(Cr.current,te,G)},Ae=function(){var te=(0,m.Z)(V,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return O.createElement("input",(0,xe.Z)({autoComplete:B},te,{onChange:kt,onFocus:y,onBlur:h,onKeyDown:K,className:Y()(ae,(0,se.Z)({},"".concat(ae,"-disabled"),pe),he==null?void 0:he.input),style:qe==null?void 0:qe.input,ref:Cr,size:T,type:N}))},Z=function(){var te=Number(oe)>0;if(fe||ye){var Se=(0,I.D7)(sr),Be=(0,L.Z)(Se).length,Ie=(0,Me.Z)(ye)==="object"?ye.formatter({value:Se,count:Be,maxLength:oe}):"".concat(Be).concat(te?" / ".concat(oe):"");return O.createElement(O.Fragment,null,!!ye&&O.createElement("span",{className:Y()("".concat(ae,"-show-count-suffix"),(0,se.Z)({},"".concat(ae,"-show-count-has-suffix"),!!fe),he==null?void 0:he.count),style:(0,Fe.Z)({},qe==null?void 0:qe.count)},Ie),fe)}return null};return O.createElement(o,(0,xe.Z)({},st,{prefixCls:ae,className:Ee,inputElement:Ae(),handleReset:D,value:(0,I.D7)(sr),focused:xr,triggerFocus:_e,suffix:Z(),disabled:pe,classes:X,classNames:he,styles:qe}))}),F=$,H=F},5643:function(yn,Wt,g){"use strict";g.d(Wt,{D7:function(){return ie},He:function(){return xe},X3:function(){return Fe},nH:function(){return Me},rJ:function(){return se}});function xe(Y){return!!(Y.addonBefore||Y.addonAfter)}function Fe(Y){return!!(Y.prefix||Y.suffix||Y.allowClear)}function se(Y,O,I,n){if(I){var o=O;if(O.type==="click"){var L=Y.cloneNode(!0);o=Object.create(O,{target:{value:L},currentTarget:{value:L}}),L.value="",I(o);return}if(n!==void 0){o=Object.create(O,{target:{value:Y},currentTarget:{value:Y}}),Y.value=n,I(o);return}I(o)}}function Me(Y,O){if(Y){Y.focus(O);var I=O||{},n=I.cursor;if(n){var o=Y.value.length;switch(n){case"start":Y.setSelectionRange(0,0);break;case"end":Y.setSelectionRange(o,o);break;default:Y.setSelectionRange(0,o)}}}}function ie(Y){return typeof Y=="undefined"||Y===null?"":String(Y)}},15285:function(yn,Wt,g){"use strict";g.d(Wt,{iz:function(){return ei},ck:function(){return qt},BW:function(){return Mn},sN:function(){return qt},Wd:function(){return Fr},ZP:function(){return bn},Xl:function(){return Ce}});var xe=g(96663),Fe=g(90493),se=g(44127),Me=g(19127),ie=g(72071),Y=g(6620),O=g(92310),I=g.n(O),n=g(11780),o=g(18929),L=g(13697),p=g(48736),a=g(59301),d=g(4676),m=a.createContext(null);function S(dr,vr){return dr===void 0?null:"".concat(dr,"-").concat(vr)}function $(dr){var vr=a.useContext(m);return S(vr,dr)}var F=g(80547),H=["children","locked"],V=a.createContext(null);function ee(dr,vr){var Ir=(0,se.Z)({},dr);return Object.keys(vr).forEach(function(Yr){var Mr=vr[Yr];Mr!==void 0&&(Ir[Yr]=Mr)}),Ir}function B(dr){var vr=dr.children,Ir=dr.locked,Yr=(0,Y.Z)(dr,H),Mr=a.useContext(V),cn=(0,F.Z)(function(){return ee(Mr,Yr)},[Mr,Yr],function(nn,jn){return!Ir&&(nn[0]!==jn[0]||!(0,L.Z)(nn[1],jn[1],!0))});return a.createElement(V.Provider,{value:cn},vr)}var G=[],le=a.createContext(null);function J(){return a.useContext(le)}var we=a.createContext(G);function Ce(dr){var vr=a.useContext(we);return a.useMemo(function(){return dr!==void 0?[].concat((0,Me.Z)(vr),[dr]):vr},[vr,dr])}var Le=a.createContext(null),ae=a.createContext({}),pe=ae,T=g(29194);function Ee(dr){var vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,T.Z)(dr)){var Ir=dr.nodeName.toLowerCase(),Yr=["input","select","textarea","button"].includes(Ir)||dr.isContentEditable||Ir==="a"&&!!dr.getAttribute("href"),Mr=dr.getAttribute("tabindex"),cn=Number(Mr),nn=null;return Mr&&!Number.isNaN(cn)?nn=cn:Yr&&nn===null&&(nn=0),Yr&&dr.disabled&&(nn=null),nn!==null&&(nn>=0||vr&&nn<0)}return!1}function oe(dr){var vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ir=(0,Me.Z)(dr.querySelectorAll("*")).filter(function(Yr){return Ee(Yr,vr)});return Ee(dr,vr)&&Ir.unshift(dr),Ir}var fe=null;function ye(){fe=document.activeElement}function _(){fe=null}function N(){if(fe)try{fe.focus()}catch(dr){}}function X(dr,vr){if(vr.keyCode===9){var Ir=oe(dr),Yr=Ir[vr.shiftKey?0:Ir.length-1],Mr=Yr===document.activeElement||dr===document.activeElement;if(Mr){var cn=Ir[vr.shiftKey?Ir.length-1:0];cn.focus(),vr.preventDefault()}}}var he=g(10228),qe=g(16089),st=he.Z.LEFT,nt=he.Z.RIGHT,Rt=he.Z.UP,sr=he.Z.DOWN,Jt=he.Z.ENTER,We=he.Z.ESC,Er=he.Z.HOME,xr=he.Z.END,Wr=[Rt,sr,st,nt];function Cr(dr,vr,Ir,Yr){var Mr,cn,nn,jn,ti="prev",ui="next",Ri="children",Qi="parent";if(dr==="inline"&&Yr===Jt)return{inlineTrigger:!0};var Pi=(Mr={},(0,Fe.Z)(Mr,Rt,ti),(0,Fe.Z)(Mr,sr,ui),Mr),Sr=(cn={},(0,Fe.Z)(cn,st,Ir?ui:ti),(0,Fe.Z)(cn,nt,Ir?ti:ui),(0,Fe.Z)(cn,sr,Ri),(0,Fe.Z)(cn,Jt,Ri),cn),Cn=(nn={},(0,Fe.Z)(nn,Rt,ti),(0,Fe.Z)(nn,sr,ui),(0,Fe.Z)(nn,Jt,Ri),(0,Fe.Z)(nn,We,Qi),(0,Fe.Z)(nn,st,Ir?Ri:Qi),(0,Fe.Z)(nn,nt,Ir?Qi:Ri),nn),fn={inline:Pi,horizontal:Sr,vertical:Cn,inlineSub:Pi,horizontalSub:Cn,verticalSub:Cn},hi=(jn=fn["".concat(dr).concat(vr?"":"Sub")])===null||jn===void 0?void 0:jn[Yr];switch(hi){case ti:return{offset:-1,sibling:!0};case ui:return{offset:1,sibling:!0};case Qi:return{offset:-1,sibling:!1};case Ri:return{offset:1,sibling:!1};default:return null}}function _e(dr){for(var vr=dr;vr;){if(vr.getAttribute("data-menu-list"))return vr;vr=vr.parentElement}return null}function kt(dr,vr){for(var Ir=dr||document.activeElement;Ir;){if(vr.has(Ir))return Ir;Ir=Ir.parentElement}return null}function K(dr,vr){var Ir=oe(dr,!0);return Ir.filter(function(Yr){return vr.has(Yr)})}function y(dr,vr,Ir){var Yr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!dr)return null;var Mr=K(dr,vr),cn=Mr.length,nn=Mr.findIndex(function(jn){return Ir===jn});return Yr<0?nn===-1?nn=cn-1:nn-=1:Yr>0&&(nn+=1),nn=(nn+cn)%cn,Mr[nn]}var h=function(vr,Ir){var Yr=new Set,Mr=new Map,cn=new Map;return vr.forEach(function(nn){var jn=document.querySelector("[data-menu-id='".concat(S(Ir,nn),"']"));jn&&(Yr.add(jn),cn.set(jn,nn),Mr.set(nn,jn))}),{elements:Yr,key2element:Mr,element2key:cn}};function D(dr,vr,Ir,Yr,Mr,cn,nn,jn,ti,ui){var Ri=a.useRef(),Qi=a.useRef();Qi.current=vr;var Pi=function(){qe.Z.cancel(Ri.current)};return a.useEffect(function(){return function(){Pi()}},[]),function(Sr){var Cn=Sr.which;if([].concat(Wr,[Jt,We,Er,xr]).includes(Cn)){var fn=cn(),hi=h(fn,Yr),ii=hi,ri=ii.elements,bi=ii.key2element,Ti=ii.element2key,Bi=bi.get(vr),Zi=kt(Bi,ri),ua=Ti.get(Zi),xi=Cr(dr,nn(ua,!0).length===1,Ir,Cn);if(!xi&&Cn!==Er&&Cn!==xr)return;(Wr.includes(Cn)||[Er,xr].includes(Cn))&&Sr.preventDefault();var gn=function(qi){if(qi){var Sa=qi,_i=qi.querySelector("a");_i!=null&&_i.getAttribute("href")&&(Sa=_i);var ai=Ti.get(qi);jn(ai),Pi(),Ri.current=(0,qe.Z)(function(){Qi.current===ai&&Sa.focus()})}};if([Er,xr].includes(Cn)||xi.sibling||!Zi){var Ht;!Zi||dr==="inline"?Ht=Mr.current:Ht=_e(Zi);var Fn,Zn=K(Ht,ri);Cn===Er?Fn=Zn[0]:Cn===xr?Fn=Zn[Zn.length-1]:Fn=y(Ht,ri,Zi,xi.offset),gn(Fn)}else if(xi.inlineTrigger)ti(ua);else if(xi.offset>0)ti(ua,!0),Pi(),Ri.current=(0,qe.Z)(function(){hi=h(fn,Yr);var Ea=Zi.getAttribute("aria-controls"),qi=document.getElementById(Ea),Sa=y(qi,hi.elements);gn(Sa)},5);else if(xi.offset<0){var Ei=nn(ua,!0),ji=Ei[Ei.length-2],da=bi.get(ji);ti(ji,!1),gn(da)}}ui==null||ui(Sr)}}function Ae(dr){Promise.resolve().then(dr)}var Z="__RC_UTIL_PATH_SPLIT__",k=function(vr){return vr.join(Z)},te=function(vr){return vr.split(Z)},Se="rc-menu-more";function Be(){var dr=a.useState({}),vr=(0,ie.Z)(dr,2),Ir=vr[1],Yr=(0,a.useRef)(new Map),Mr=(0,a.useRef)(new Map),cn=a.useState([]),nn=(0,ie.Z)(cn,2),jn=nn[0],ti=nn[1],ui=(0,a.useRef)(0),Ri=(0,a.useRef)(!1),Qi=function(){Ri.current||Ir({})},Pi=(0,a.useCallback)(function(bi,Ti){var Bi=k(Ti);Mr.current.set(Bi,bi),Yr.current.set(bi,Bi),ui.current+=1;var Zi=ui.current;Ae(function(){Zi===ui.current&&Qi()})},[]),Sr=(0,a.useCallback)(function(bi,Ti){var Bi=k(Ti);Mr.current.delete(Bi),Yr.current.delete(bi)},[]),Cn=(0,a.useCallback)(function(bi){ti(bi)},[]),fn=(0,a.useCallback)(function(bi,Ti){var Bi=Yr.current.get(bi)||"",Zi=te(Bi);return Ti&&jn.includes(Zi[0])&&Zi.unshift(Se),Zi},[jn]),hi=(0,a.useCallback)(function(bi,Ti){return bi.some(function(Bi){var Zi=fn(Bi,!0);return Zi.includes(Ti)})},[fn]),ii=function(){var Ti=(0,Me.Z)(Yr.current.keys());return jn.length&&Ti.push(Se),Ti},ri=(0,a.useCallback)(function(bi){var Ti="".concat(Yr.current.get(bi)).concat(Z),Bi=new Set;return(0,Me.Z)(Mr.current.keys()).forEach(function(Zi){Zi.startsWith(Ti)&&Bi.add(Mr.current.get(Zi))}),Bi},[]);return a.useEffect(function(){return function(){Ri.current=!0}},[]),{registerPath:Pi,unregisterPath:Sr,refreshOverflowKeys:Cn,isSubPathKey:hi,getKeyPath:fn,getKeys:ii,getSubPathKeys:ri}}function Ie(dr){var vr=a.useRef(dr);vr.current=dr;var Ir=a.useCallback(function(){for(var Yr,Mr=arguments.length,cn=new Array(Mr),nn=0;nn<Mr;nn++)cn[nn]=arguments[nn];return(Yr=vr.current)===null||Yr===void 0?void 0:Yr.call.apply(Yr,[vr].concat(cn))},[]);return dr?Ir:void 0}var Ge=Math.random().toFixed(5).toString().slice(2),mt=0;function $e(dr){var vr=(0,o.Z)(dr,{value:dr}),Ir=(0,ie.Z)(vr,2),Yr=Ir[0],Mr=Ir[1];return a.useEffect(function(){mt+=1;var cn="".concat(Ge,"-").concat(mt);Mr("rc-menu-uuid-".concat(cn))},[]),Yr}var tt=g(52884),dt=g(95727),Ze=g(65711),Ke=g(85745),Bt=g(2738),Vt=g(8654);function Ut(dr,vr,Ir,Yr){var Mr=a.useContext(V),cn=Mr.activeKey,nn=Mr.onActive,jn=Mr.onInactive,ti={active:cn===dr};return vr||(ti.onMouseEnter=function(ui){Ir==null||Ir({key:dr,domEvent:ui}),nn(dr)},ti.onMouseLeave=function(ui){Yr==null||Yr({key:dr,domEvent:ui}),jn(dr)}),ti}function mr(dr){var vr=a.useContext(V),Ir=vr.mode,Yr=vr.rtl,Mr=vr.inlineIndent;if(Ir!=="inline")return null;var cn=dr;return Yr?{paddingRight:cn*Mr}:{paddingLeft:cn*Mr}}function br(dr){var vr=dr.icon,Ir=dr.props,Yr=dr.children,Mr;return vr===null||vr===!1?null:(typeof vr=="function"?Mr=a.createElement(vr,(0,se.Z)({},Ir)):typeof vr!="boolean"&&(Mr=vr),Mr||Yr||null)}var re=["item"];function ue(dr){var vr=dr.item,Ir=(0,Y.Z)(dr,re);return Object.defineProperty(Ir,"item",{get:function(){return(0,p.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),vr}}),Ir}var rr=["title","attribute","elementRef"],Qe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ot=["active"],Jr=function(dr){(0,Ze.Z)(Ir,dr);var vr=(0,Ke.Z)(Ir);function Ir(){return(0,tt.Z)(this,Ir),vr.apply(this,arguments)}return(0,dt.Z)(Ir,[{key:"render",value:function(){var Mr=this.props,cn=Mr.title,nn=Mr.attribute,jn=Mr.elementRef,ti=(0,Y.Z)(Mr,rr),ui=(0,Bt.Z)(ti,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!nn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(n.Z.Item,(0,xe.Z)({},nn,{title:typeof cn=="string"?cn:void 0},ui,{ref:jn}))}}]),Ir}(a.Component),Tt=a.forwardRef(function(dr,vr){var Ir,Yr=dr.style,Mr=dr.className,cn=dr.eventKey,nn=dr.warnKey,jn=dr.disabled,ti=dr.itemIcon,ui=dr.children,Ri=dr.role,Qi=dr.onMouseEnter,Pi=dr.onMouseLeave,Sr=dr.onClick,Cn=dr.onKeyDown,fn=dr.onFocus,hi=(0,Y.Z)(dr,Qe),ii=$(cn),ri=a.useContext(V),bi=ri.prefixCls,Ti=ri.onItemClick,Bi=ri.disabled,Zi=ri.overflowDisabled,ua=ri.itemIcon,xi=ri.selectedKeys,gn=ri.onActive,Ht=a.useContext(pe),Fn=Ht._internalRenderMenuItem,Zn="".concat(bi,"-item"),Ei=a.useRef(),ji=a.useRef(),da=Bi||jn,Ea=(0,Vt.x1)(vr,ji),qi=Ce(cn),Sa=function(Fa){return{key:cn,keyPath:(0,Me.Z)(qi).reverse(),item:Ei.current,domEvent:Fa}},_i=ti||ua,ai=Ut(cn,da,Qi,Pi),zi=ai.active,na=(0,Y.Z)(ai,ot),Ca=xi.includes(cn),ys=mr(qi.length),oi=function(Fa){if(!da){var Ni=Sa(Fa);Sr==null||Sr(ue(Ni)),Ti(Ni)}},_a=function(Fa){if(Cn==null||Cn(Fa),Fa.which===he.Z.ENTER){var Ni=Sa(Fa);Sr==null||Sr(ue(Ni)),Ti(Ni)}},ga=function(Fa){gn(cn),fn==null||fn(Fa)},Ua={};dr.role==="option"&&(Ua["aria-selected"]=Ca);var Cs=a.createElement(Jr,(0,xe.Z)({ref:Ei,elementRef:Ea,role:Ri===null?"none":Ri||"menuitem",tabIndex:jn?null:-1,"data-menu-id":Zi&&ii?null:ii},hi,na,Ua,{component:"li","aria-disabled":jn,style:(0,se.Z)((0,se.Z)({},ys),Yr),className:I()(Zn,(Ir={},(0,Fe.Z)(Ir,"".concat(Zn,"-active"),zi),(0,Fe.Z)(Ir,"".concat(Zn,"-selected"),Ca),(0,Fe.Z)(Ir,"".concat(Zn,"-disabled"),da),Ir),Mr),onClick:oi,onKeyDown:_a,onFocus:ga}),ui,a.createElement(br,{props:(0,se.Z)((0,se.Z)({},dr),{},{isSelected:Ca}),icon:_i}));return Fn&&(Cs=Fn(Cs,dr,{selected:Ca})),Cs});function Kt(dr,vr){var Ir=dr.eventKey,Yr=J(),Mr=Ce(Ir);return a.useEffect(function(){if(Yr)return Yr.registerPath(Ir,Mr),function(){Yr.unregisterPath(Ir,Mr)}},[Mr]),Yr?null:a.createElement(Tt,(0,xe.Z)({},dr,{ref:vr}))}var qt=a.forwardRef(Kt),et=["className","children"],ft=function(vr,Ir){var Yr=vr.className,Mr=vr.children,cn=(0,Y.Z)(vr,et),nn=a.useContext(V),jn=nn.prefixCls,ti=nn.mode,ui=nn.rtl;return a.createElement("ul",(0,xe.Z)({className:I()(jn,ui&&"".concat(jn,"-rtl"),"".concat(jn,"-sub"),"".concat(jn,"-").concat(ti==="inline"?"inline":"vertical"),Yr),role:"menu"},cn,{"data-menu-list":!0,ref:Ir}),Mr)},ht=a.forwardRef(ft);ht.displayName="SubMenuList";var Gt=ht,Oe=g(11592);function on(dr,vr){return(0,Oe.Z)(dr).map(function(Ir,Yr){if(a.isValidElement(Ir)){var Mr,cn,nn=Ir.key,jn=(Mr=(cn=Ir.props)===null||cn===void 0?void 0:cn.eventKey)!==null&&Mr!==void 0?Mr:nn,ti=jn==null;ti&&(jn="tmp_key-".concat([].concat((0,Me.Z)(vr),[Yr]).join("-")));var ui={key:jn,eventKey:jn};return a.cloneElement(Ir,ui)}return Ir})}var Mt=g(35593),On={adjustX:1,adjustY:1},Xn={topLeft:{points:["bl","tl"],overflow:On},topRight:{points:["br","tr"],overflow:On},bottomLeft:{points:["tl","bl"],overflow:On},bottomRight:{points:["tr","br"],overflow:On},leftTop:{points:["tr","tl"],overflow:On},leftBottom:{points:["br","bl"],overflow:On},rightTop:{points:["tl","tr"],overflow:On},rightBottom:{points:["bl","br"],overflow:On}},yi={topLeft:{points:["bl","tl"],overflow:On},topRight:{points:["br","tr"],overflow:On},bottomLeft:{points:["tl","bl"],overflow:On},bottomRight:{points:["tr","br"],overflow:On},rightTop:{points:["tr","tl"],overflow:On},rightBottom:{points:["br","bl"],overflow:On},leftTop:{points:["tl","tr"],overflow:On},leftBottom:{points:["bl","br"],overflow:On}},$i=null;function Dn(dr,vr,Ir){if(vr)return vr;if(Ir)return Ir[dr]||Ir.other}var zn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Xt(dr){var vr=dr.prefixCls,Ir=dr.visible,Yr=dr.children,Mr=dr.popup,cn=dr.popupStyle,nn=dr.popupClassName,jn=dr.popupOffset,ti=dr.disabled,ui=dr.mode,Ri=dr.onVisibleChange,Qi=a.useContext(V),Pi=Qi.getPopupContainer,Sr=Qi.rtl,Cn=Qi.subMenuOpenDelay,fn=Qi.subMenuCloseDelay,hi=Qi.builtinPlacements,ii=Qi.triggerSubMenuAction,ri=Qi.forceSubMenuRender,bi=Qi.rootClassName,Ti=Qi.motion,Bi=Qi.defaultMotions,Zi=a.useState(!1),ua=(0,ie.Z)(Zi,2),xi=ua[0],gn=ua[1],Ht=Sr?(0,se.Z)((0,se.Z)({},yi),hi):(0,se.Z)((0,se.Z)({},Xn),hi),Fn=zn[ui],Zn=Dn(ui,Ti,Bi),Ei=a.useRef(Zn);ui!=="inline"&&(Ei.current=Zn);var ji=(0,se.Z)((0,se.Z)({},Ei.current),{},{leavedClassName:"".concat(vr,"-hidden"),removeOnLeave:!1,motionAppear:!0}),da=a.useRef();return a.useEffect(function(){return da.current=(0,qe.Z)(function(){gn(Ir)}),function(){qe.Z.cancel(da.current)}},[Ir]),a.createElement(Mt.Z,{prefixCls:vr,popupClassName:I()("".concat(vr,"-popup"),(0,Fe.Z)({},"".concat(vr,"-rtl"),Sr),nn,bi),stretch:ui==="horizontal"?"minWidth":null,getPopupContainer:Pi,builtinPlacements:Ht,popupPlacement:Fn,popupVisible:xi,popup:Mr,popupStyle:cn,popupAlign:jn&&{offset:jn},action:ti?[]:[ii],mouseEnterDelay:Cn,mouseLeaveDelay:fn,onPopupVisibleChange:Ri,forceRender:ri,popupMotion:ji,fresh:!0},Yr)}var $r=g(77900);function en(dr){var vr=dr.id,Ir=dr.open,Yr=dr.keyPath,Mr=dr.children,cn="inline",nn=a.useContext(V),jn=nn.prefixCls,ti=nn.forceSubMenuRender,ui=nn.motion,Ri=nn.defaultMotions,Qi=nn.mode,Pi=a.useRef(!1);Pi.current=Qi===cn;var Sr=a.useState(!Pi.current),Cn=(0,ie.Z)(Sr,2),fn=Cn[0],hi=Cn[1],ii=Pi.current?Ir:!1;a.useEffect(function(){Pi.current&&hi(!1)},[Qi]);var ri=(0,se.Z)({},Dn(cn,ui,Ri));Yr.length>1&&(ri.motionAppear=!1);var bi=ri.onVisibleChanged;return ri.onVisibleChanged=function(Ti){return!Pi.current&&!Ti&&hi(!0),bi==null?void 0:bi(Ti)},fn?null:a.createElement(B,{mode:cn,locked:!Pi.current},a.createElement($r.default,(0,xe.Z)({visible:ii},ri,{forceRender:ti,removeOnLeave:!1,leavedClassName:"".concat(jn,"-hidden")}),function(Ti){var Bi=Ti.className,Zi=Ti.style;return a.createElement(Gt,{id:vr,className:Bi,style:Zi},Mr)}))}var Pt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Et=["active"],_r=function(vr){var Ir,Yr=vr.style,Mr=vr.className,cn=vr.title,nn=vr.eventKey,jn=vr.warnKey,ti=vr.disabled,ui=vr.internalPopupClose,Ri=vr.children,Qi=vr.itemIcon,Pi=vr.expandIcon,Sr=vr.popupClassName,Cn=vr.popupOffset,fn=vr.popupStyle,hi=vr.onClick,ii=vr.onMouseEnter,ri=vr.onMouseLeave,bi=vr.onTitleClick,Ti=vr.onTitleMouseEnter,Bi=vr.onTitleMouseLeave,Zi=(0,Y.Z)(vr,Pt),ua=$(nn),xi=a.useContext(V),gn=xi.prefixCls,Ht=xi.mode,Fn=xi.openKeys,Zn=xi.disabled,Ei=xi.overflowDisabled,ji=xi.activeKey,da=xi.selectedKeys,Ea=xi.itemIcon,qi=xi.expandIcon,Sa=xi.onItemClick,_i=xi.onOpenChange,ai=xi.onActive,zi=a.useContext(pe),na=zi._internalRenderSubMenuItem,Ca=a.useContext(Le),ys=Ca.isSubPathKey,oi=Ce(),_a="".concat(gn,"-submenu"),ga=Zn||ti,Ua=a.useRef(),Cs=a.useRef(),ns=Qi!=null?Qi:Ea,Fa=Pi!=null?Pi:qi,Ni=Fn.includes(nn),oa=!Ei&&Ni,fs=ys(da,nn),is=Ut(nn,ga,Ti,Bi),es=is.active,Yi=(0,Y.Z)(is,Et),hs=a.useState(!1),aa=(0,ie.Z)(hs,2),co=aa[0],js=aa[1],wo=function(bs){ga||js(bs)},As=function(bs){wo(!0),ii==null||ii({key:nn,domEvent:bs})},xo=function(bs){wo(!1),ri==null||ri({key:nn,domEvent:bs})},as=a.useMemo(function(){return es||(Ht!=="inline"?co||ys([ji],nn):!1)},[Ht,es,ji,co,nn,ys]),Yn=mr(oi.length),Da=function(bs){ga||(bi==null||bi({key:nn,domEvent:bs}),Ht==="inline"&&_i(nn,!Ni))},io=Ie(function(us){hi==null||hi(ue(us)),Sa(us)}),Vi=function(bs){Ht!=="inline"&&_i(nn,bs)},ea=function(){ai(nn)},Ki=ua&&"".concat(ua,"-popup"),ki=a.createElement("div",(0,xe.Z)({role:"menuitem",style:Yn,className:"".concat(_a,"-title"),tabIndex:ga?null:-1,ref:Ua,title:typeof cn=="string"?cn:null,"data-menu-id":Ei&&ua?null:ua,"aria-expanded":oa,"aria-haspopup":!0,"aria-controls":Ki,"aria-disabled":ga,onClick:Da,onFocus:ea},Yi),cn,a.createElement(br,{icon:Ht!=="horizontal"?Fa:void 0,props:(0,se.Z)((0,se.Z)({},vr),{},{isOpen:oa,isSubMenu:!0})},a.createElement("i",{className:"".concat(_a,"-arrow")}))),ya=a.useRef(Ht);if(Ht!=="inline"&&oi.length>1?ya.current="vertical":ya.current=Ht,!Ei){var Pa=ya.current;ki=a.createElement(Xt,{mode:Pa,prefixCls:_a,visible:!ui&&oa&&Ht!=="inline",popupClassName:Sr,popupOffset:Cn,popupStyle:fn,popup:a.createElement(B,{mode:Pa==="horizontal"?"vertical":Pa},a.createElement(Gt,{id:Ki,ref:Cs},Ri)),disabled:ga,onVisibleChange:Vi},ki)}var Os=a.createElement(n.Z.Item,(0,xe.Z)({role:"none"},Zi,{component:"li",style:Yr,className:I()(_a,"".concat(_a,"-").concat(Ht),Mr,(Ir={},(0,Fe.Z)(Ir,"".concat(_a,"-open"),oa),(0,Fe.Z)(Ir,"".concat(_a,"-active"),as),(0,Fe.Z)(Ir,"".concat(_a,"-selected"),fs),(0,Fe.Z)(Ir,"".concat(_a,"-disabled"),ga),Ir)),onMouseEnter:As,onMouseLeave:xo}),ki,!Ei&&a.createElement(en,{id:Ki,open:oa,keyPath:oi},Ri));return na&&(Os=na(Os,vr,{selected:fs,active:as,open:oa,disabled:ga})),a.createElement(B,{onItemClick:io,mode:Ht==="horizontal"?"vertical":Ht,itemIcon:ns,expandIcon:Fa},Os)};function Fr(dr){var vr=dr.eventKey,Ir=dr.children,Yr=Ce(vr),Mr=on(Ir,Yr),cn=J();a.useEffect(function(){if(cn)return cn.registerPath(vr,Yr),function(){cn.unregisterPath(vr,Yr)}},[Yr]);var nn;return cn?nn=Mr:nn=a.createElement(_r,dr,Mr),a.createElement(we.Provider,{value:Yr},nn)}var In=g(20135),an=["className","title","eventKey","children"],_n=["children"],mn=function(vr){var Ir=vr.className,Yr=vr.title,Mr=vr.eventKey,cn=vr.children,nn=(0,Y.Z)(vr,an),jn=a.useContext(V),ti=jn.prefixCls,ui="".concat(ti,"-item-group");return a.createElement("li",(0,xe.Z)({role:"presentation"},nn,{onClick:function(Qi){return Qi.stopPropagation()},className:I()(ui,Ir)}),a.createElement("div",{role:"presentation",className:"".concat(ui,"-title"),title:typeof Yr=="string"?Yr:void 0},Yr),a.createElement("ul",{role:"group",className:"".concat(ui,"-list")},cn))};function Mn(dr){var vr=dr.children,Ir=(0,Y.Z)(dr,_n),Yr=Ce(Ir.eventKey),Mr=on(vr,Yr),cn=J();return cn?Mr:a.createElement(mn,(0,Bt.Z)(Ir,["warnKey"]),Mr)}function ei(dr){var vr=dr.className,Ir=dr.style,Yr=a.useContext(V),Mr=Yr.prefixCls,cn=J();return cn?null:a.createElement("li",{role:"separator",className:I()("".concat(Mr,"-item-divider"),vr),style:Ir})}var Kr=["label","children","key","type"];function Vr(dr){return(dr||[]).map(function(vr,Ir){if(vr&&(0,In.Z)(vr)==="object"){var Yr=vr,Mr=Yr.label,cn=Yr.children,nn=Yr.key,jn=Yr.type,ti=(0,Y.Z)(Yr,Kr),ui=nn!=null?nn:"tmp-".concat(Ir);return cn||jn==="group"?jn==="group"?a.createElement(Mn,(0,xe.Z)({key:ui},ti,{title:Mr}),Vr(cn)):a.createElement(Fr,(0,xe.Z)({key:ui},ti,{title:Mr}),Vr(cn)):jn==="divider"?a.createElement(ei,(0,xe.Z)({key:ui},ti)):a.createElement(qt,(0,xe.Z)({key:ui},ti),Mr)}return null}).filter(function(vr){return vr})}function Tn(dr,vr,Ir){var Yr=dr;return vr&&(Yr=Vr(vr)),on(Yr,Ir)}var Sn=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Un=[],Vn=a.forwardRef(function(dr,vr){var Ir,Yr,Mr=dr,cn=Mr.prefixCls,nn=cn===void 0?"rc-menu":cn,jn=Mr.rootClassName,ti=Mr.style,ui=Mr.className,Ri=Mr.tabIndex,Qi=Ri===void 0?0:Ri,Pi=Mr.items,Sr=Mr.children,Cn=Mr.direction,fn=Mr.id,hi=Mr.mode,ii=hi===void 0?"vertical":hi,ri=Mr.inlineCollapsed,bi=Mr.disabled,Ti=Mr.disabledOverflow,Bi=Mr.subMenuOpenDelay,Zi=Bi===void 0?.1:Bi,ua=Mr.subMenuCloseDelay,xi=ua===void 0?.1:ua,gn=Mr.forceSubMenuRender,Ht=Mr.defaultOpenKeys,Fn=Mr.openKeys,Zn=Mr.activeKey,Ei=Mr.defaultActiveFirst,ji=Mr.selectable,da=ji===void 0?!0:ji,Ea=Mr.multiple,qi=Ea===void 0?!1:Ea,Sa=Mr.defaultSelectedKeys,_i=Mr.selectedKeys,ai=Mr.onSelect,zi=Mr.onDeselect,na=Mr.inlineIndent,Ca=na===void 0?24:na,ys=Mr.motion,oi=Mr.defaultMotions,_a=Mr.triggerSubMenuAction,ga=_a===void 0?"hover":_a,Ua=Mr.builtinPlacements,Cs=Mr.itemIcon,ns=Mr.expandIcon,Fa=Mr.overflowedIndicator,Ni=Fa===void 0?"...":Fa,oa=Mr.overflowedIndicatorPopupClassName,fs=Mr.getPopupContainer,is=Mr.onClick,es=Mr.onOpenChange,Yi=Mr.onKeyDown,hs=Mr.openAnimation,aa=Mr.openTransitionName,co=Mr._internalRenderMenuItem,js=Mr._internalRenderSubMenuItem,wo=(0,Y.Z)(Mr,Sn),As=a.useMemo(function(){return Tn(Sr,Pi,Un)},[Sr,Pi]),xo=a.useState(!1),as=(0,ie.Z)(xo,2),Yn=as[0],Da=as[1],io=a.useRef(),Vi=$e(fn),ea=Cn==="rtl",Ki=(0,o.Z)(Ht,{value:Fn,postState:function(ms){return ms||Un}}),ki=(0,ie.Z)(Ki,2),ya=ki[0],Pa=ki[1],Os=function(ms){var Ja=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ws(){Pa(ms),es==null||es(ms)}Ja?(0,d.flushSync)(ws):ws()},us=a.useState(ya),bs=(0,ie.Z)(us,2),ts=bs[0],Eo=bs[1],po=a.useRef(!1),qs=a.useMemo(function(){return(ii==="inline"||ii==="vertical")&&ri?["vertical",ri]:[ii,!1]},[ii,ri]),$s=(0,ie.Z)(qs,2),Ps=$s[0],Fi=$s[1],pi=Ps==="inline",la=a.useState(Ps),ps=(0,ie.Z)(la,2),Oa=ps[0],ks=ps[1],Gs=a.useState(Fi),mo=(0,ie.Z)(Gs,2),Ns=mo[0],Ii=mo[1];a.useEffect(function(){ks(Ps),Ii(Fi),po.current&&(pi?Pa(ts):Os(Un))},[Ps,Fi]);var kl=a.useState(0),Ys=(0,ie.Z)(kl,2),il=Ys[0],ko=Ys[1],Ao=il>=As.length-1||Oa!=="horizontal"||Ti;a.useEffect(function(){pi&&Eo(ya)},[ya]),a.useEffect(function(){return po.current=!0,function(){po.current=!1}},[]);var Ba=Be(),vl=Ba.registerPath,yl=Ba.unregisterPath,fo=Ba.refreshOverflowKeys,go=Ba.isSubPathKey,Na=Ba.getKeyPath,pa=Ba.getKeys,eo=Ba.getSubPathKeys,Ya=a.useMemo(function(){return{registerPath:vl,unregisterPath:yl}},[vl,yl]),rs=a.useMemo(function(){return{isSubPathKey:go}},[go]);a.useEffect(function(){fo(Ao?Un:As.slice(il+1).map(function(Va){return Va.key}))},[il,Ao]);var Hs=(0,o.Z)(Zn||Ei&&((Ir=As[0])===null||Ir===void 0?void 0:Ir.key),{value:Zn}),ba=(0,ie.Z)(Hs,2),Zs=ba[0],ao=ba[1],Oo=Ie(function(Va){ao(Va)}),Io=Ie(function(){ao(void 0)});(0,a.useImperativeHandle)(vr,function(){return{list:io.current,focus:function(ms){var Ja,ws=pa(),Xs=h(ws,Vi),El=Xs.elements,al=Xs.key2element,Ul=Xs.element2key,Au=K(io.current,El),Ql=Zs!=null?Zs:Au[0]?Ul.get(Au[0]):(Ja=As.find(function(du){return!du.props.disabled}))===null||Ja===void 0?void 0:Ja.key,jl=al.get(Ql);if(Ql&&jl){var ci;jl==null||(ci=jl.focus)===null||ci===void 0||ci.call(jl,ms)}}}});var Xa=(0,o.Z)(Sa||[],{value:_i,postState:function(ms){return Array.isArray(ms)?ms:ms==null?Un:[ms]}}),bl=(0,ie.Z)(Xa,2),so=bl[0],vo=bl[1],tu=function(ms){if(da){var Ja=ms.key,ws=so.includes(Ja),Xs;qi?ws?Xs=so.filter(function(al){return al!==Ja}):Xs=[].concat((0,Me.Z)(so),[Ja]):Xs=[Ja],vo(Xs);var El=(0,se.Z)((0,se.Z)({},ms),{},{selectedKeys:Xs});ws?zi==null||zi(El):ai==null||ai(El)}!qi&&ya.length&&Oa!=="inline"&&Os(Un)},wl=Ie(function(Va){is==null||is(ue(Va)),tu(Va)}),cl=Ie(function(Va,ms){var Ja=ya.filter(function(Xs){return Xs!==Va});if(ms)Ja.push(Va);else if(Oa!=="inline"){var ws=eo(Va);Ja=Ja.filter(function(Xs){return!ws.has(Xs)})}(0,L.Z)(ya,Ja,!0)||Os(Ja,!0)}),Ml=function(ms,Ja){var ws=Ja!=null?Ja:!ya.includes(ms);cl(ms,ws)},xl=D(Oa,Zs,ea,Vi,io,pa,Na,ao,Ml,Yi);a.useEffect(function(){Da(!0)},[]);var Mo=a.useMemo(function(){return{_internalRenderMenuItem:co,_internalRenderSubMenuItem:js}},[co,js]),Ks=Oa!=="horizontal"||Ti?As:As.map(function(Va,ms){return a.createElement(B,{key:Va.key,overflowDisabled:ms>il},Va)}),To=a.createElement(n.Z,(0,xe.Z)({id:fn,ref:io,prefixCls:"".concat(nn,"-overflow"),component:"ul",itemComponent:qt,className:I()(nn,"".concat(nn,"-root"),"".concat(nn,"-").concat(Oa),ui,(Yr={},(0,Fe.Z)(Yr,"".concat(nn,"-inline-collapsed"),Ns),(0,Fe.Z)(Yr,"".concat(nn,"-rtl"),ea),Yr),jn),dir:Cn,style:ti,role:"menu",tabIndex:Qi,data:Ks,renderRawItem:function(ms){return ms},renderRawRest:function(ms){var Ja=ms.length,ws=Ja?As.slice(-Ja):null;return a.createElement(Fr,{eventKey:Se,title:Ni,disabled:Ao,internalPopupClose:Ja===0,popupClassName:oa},ws)},maxCount:Oa!=="horizontal"||Ti?n.Z.INVALIDATE:n.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ms){ko(ms)},onKeyDown:xl},wo));return a.createElement(pe.Provider,{value:Mo},a.createElement(m.Provider,{value:Vi},a.createElement(B,{prefixCls:nn,rootClassName:jn,mode:Oa,openKeys:ya,rtl:ea,disabled:bi,motion:Yn?ys:null,defaultMotions:Yn?oi:null,activeKey:Zs,onActive:Oo,onInactive:Io,selectedKeys:so,inlineIndent:Ca,subMenuOpenDelay:Zi,subMenuCloseDelay:xi,forceSubMenuRender:gn,builtinPlacements:Ua,triggerSubMenuAction:ga,getPopupContainer:fs,itemIcon:Cs,expandIcon:ns,onItemClick:wl,onOpenChange:cl},a.createElement(Le.Provider,{value:rs},To),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(le.Provider,{value:Ya},As)))))}),Ui=Vn,di=Ui;di.Item=qt,di.SubMenu=Fr,di.ItemGroup=Mn,di.Divider=ei;var bn=di},11780:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return ye}});var xe=g(96663),Fe=g(44127),se=g(72071),Me=g(6620),ie=g(59301),Y=g(92310),O=g.n(Y),I=g(29301),n=g(34280),o=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],L=void 0;function p(_,N){var X=_.prefixCls,he=_.invalidate,qe=_.item,st=_.renderItem,nt=_.responsive,Rt=_.responsiveDisabled,sr=_.registerSize,Jt=_.itemKey,We=_.className,Er=_.style,xr=_.children,Wr=_.display,Cr=_.order,_e=_.component,kt=_e===void 0?"div":_e,K=(0,Me.Z)(_,o),y=nt&&!Wr;function h(te){sr(Jt,te)}ie.useEffect(function(){return function(){h(null)}},[]);var D=st&&qe!==L?st(qe,{index:Cr}):xr,Ae;he||(Ae={opacity:y?0:1,height:y?0:L,overflowY:y?"hidden":L,order:nt?Cr:L,pointerEvents:y?"none":L,position:y?"absolute":L});var Z={};y&&(Z["aria-hidden"]=!0);var k=ie.createElement(kt,(0,xe.Z)({className:O()(!he&&X,We),style:(0,Fe.Z)((0,Fe.Z)({},Ae),Er)},Z,K,{ref:N}),D);return nt&&(k=ie.createElement(I.Z,{onResize:function(Se){var Be=Se.offsetWidth;h(Be)},disabled:Rt},k)),k}var a=ie.forwardRef(p);a.displayName="Item";var d=a,m=g(6089),S=g(4676),$=g(16089);function F(_){if(typeof MessageChannel=="undefined")(0,$.Z)(_);else{var N=new MessageChannel;N.port1.onmessage=function(){return _()},N.port2.postMessage(void 0)}}function H(){var _=ie.useRef(null),N=function(he){_.current||(_.current=[],F(function(){(0,S.unstable_batchedUpdates)(function(){_.current.forEach(function(qe){qe()}),_.current=null})})),_.current.push(he)};return N}function V(_,N){var X=ie.useState(N),he=(0,se.Z)(X,2),qe=he[0],st=he[1],nt=(0,m.Z)(function(Rt){_(function(){st(Rt)})});return[qe,nt]}var ee=ie.createContext(null),B=["component"],G=["className"],le=["className"],J=function(N,X){var he=ie.useContext(ee);if(!he){var qe=N.component,st=qe===void 0?"div":qe,nt=(0,Me.Z)(N,B);return ie.createElement(st,(0,xe.Z)({},nt,{ref:X}))}var Rt=he.className,sr=(0,Me.Z)(he,G),Jt=N.className,We=(0,Me.Z)(N,le);return ie.createElement(ee.Provider,{value:null},ie.createElement(d,(0,xe.Z)({ref:X,className:O()(Rt,Jt)},sr,We)))},we=ie.forwardRef(J);we.displayName="RawItem";var Ce=we,Le=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ae="responsive",pe="invalidate";function T(_){return"+ ".concat(_.length," ...")}function Ee(_,N){var X=_.prefixCls,he=X===void 0?"rc-overflow":X,qe=_.data,st=qe===void 0?[]:qe,nt=_.renderItem,Rt=_.renderRawItem,sr=_.itemKey,Jt=_.itemWidth,We=Jt===void 0?10:Jt,Er=_.ssr,xr=_.style,Wr=_.className,Cr=_.maxCount,_e=_.renderRest,kt=_.renderRawRest,K=_.suffix,y=_.component,h=y===void 0?"div":y,D=_.itemComponent,Ae=_.onVisibleChange,Z=(0,Me.Z)(_,Le),k=Er==="full",te=H(),Se=V(te,null),Be=(0,se.Z)(Se,2),Ie=Be[0],Ge=Be[1],mt=Ie||0,$e=V(te,new Map),tt=(0,se.Z)($e,2),dt=tt[0],Ze=tt[1],Ke=V(te,0),Bt=(0,se.Z)(Ke,2),Vt=Bt[0],Ut=Bt[1],mr=V(te,0),br=(0,se.Z)(mr,2),re=br[0],ue=br[1],rr=V(te,0),Qe=(0,se.Z)(rr,2),ot=Qe[0],Jr=Qe[1],Tt=(0,ie.useState)(null),Kt=(0,se.Z)(Tt,2),qt=Kt[0],et=Kt[1],ft=(0,ie.useState)(null),ht=(0,se.Z)(ft,2),Gt=ht[0],Oe=ht[1],on=ie.useMemo(function(){return Gt===null&&k?Number.MAX_SAFE_INTEGER:Gt||0},[Gt,Ie]),Mt=(0,ie.useState)(!1),On=(0,se.Z)(Mt,2),Xn=On[0],yi=On[1],$i="".concat(he,"-item"),Dn=Math.max(Vt,re),zn=Cr===ae,Xt=st.length&&zn,$r=Cr===pe,en=Xt||typeof Cr=="number"&&st.length>Cr,Pt=(0,ie.useMemo)(function(){var bn=st;return Xt?Ie===null&&k?bn=st:bn=st.slice(0,Math.min(st.length,mt/We)):typeof Cr=="number"&&(bn=st.slice(0,Cr)),bn},[st,We,Ie,Cr,Xt]),Et=(0,ie.useMemo)(function(){return Xt?st.slice(on+1):st.slice(Pt.length)},[st,Pt,Xt,on]),_r=(0,ie.useCallback)(function(bn,dr){var vr;return typeof sr=="function"?sr(bn):(vr=sr&&(bn==null?void 0:bn[sr]))!==null&&vr!==void 0?vr:dr},[sr]),Fr=(0,ie.useCallback)(nt||function(bn){return bn},[nt]);function In(bn,dr,vr){Gt===bn&&(dr===void 0||dr===qt)||(Oe(bn),vr||(yi(bn<st.length-1),Ae==null||Ae(bn)),dr!==void 0&&et(dr))}function an(bn,dr){Ge(dr.clientWidth)}function _n(bn,dr){Ze(function(vr){var Ir=new Map(vr);return dr===null?Ir.delete(bn):Ir.set(bn,dr),Ir})}function mn(bn,dr){ue(dr),Ut(re)}function Mn(bn,dr){Jr(dr)}function ei(bn){return dt.get(_r(Pt[bn],bn))}(0,n.Z)(function(){if(mt&&typeof Dn=="number"&&Pt){var bn=ot,dr=Pt.length,vr=dr-1;if(!dr){In(0,null);return}for(var Ir=0;Ir<dr;Ir+=1){var Yr=ei(Ir);if(k&&(Yr=Yr||0),Yr===void 0){In(Ir-1,void 0,!0);break}if(bn+=Yr,vr===0&&bn<=mt||Ir===vr-1&&bn+ei(vr)<=mt){In(vr,null);break}else if(bn+Dn>mt){In(Ir-1,bn-Yr-ot+re);break}}K&&ei(0)+ot>mt&&et(null)}},[mt,dt,re,ot,_r,Pt]);var Kr=Xn&&!!Et.length,Vr={};qt!==null&&Xt&&(Vr={position:"absolute",left:qt,top:0});var Tn={prefixCls:$i,responsive:Xt,component:D,invalidate:$r},Sn=Rt?function(bn,dr){var vr=_r(bn,dr);return ie.createElement(ee.Provider,{key:vr,value:(0,Fe.Z)((0,Fe.Z)({},Tn),{},{order:dr,item:bn,itemKey:vr,registerSize:_n,display:dr<=on})},Rt(bn,dr))}:function(bn,dr){var vr=_r(bn,dr);return ie.createElement(d,(0,xe.Z)({},Tn,{order:dr,key:vr,item:bn,renderItem:Fr,itemKey:vr,registerSize:_n,display:dr<=on}))},Un={order:Kr?on:Number.MAX_SAFE_INTEGER,className:"".concat($i,"-rest"),registerSize:mn,display:Kr},Vn=_e||T,Ui=kt?ie.createElement(ee.Provider,{value:(0,Fe.Z)((0,Fe.Z)({},Tn),Un)},kt(Et)):ie.createElement(d,(0,xe.Z)({},Tn,Un),typeof Vn=="function"?Vn(Et):Vn),di=ie.createElement(h,(0,xe.Z)({className:O()(!$r&&he,Wr),style:xr,ref:N},Z),Pt.map(Sn),en?Ui:null,K&&ie.createElement(d,(0,xe.Z)({},Tn,{responsive:zn,responsiveDisabled:!Xt,order:on,className:"".concat($i,"-suffix"),registerSize:Mn,display:!0,style:Vr}),K));return zn?ie.createElement(I.Z,{onResize:an,disabled:!Xt},di):di}var oe=ie.forwardRef(Ee);oe.displayName="Overflow",oe.Item=Ce,oe.RESPONSIVE=ae,oe.INVALIDATE=pe;var fe=oe,ye=fe},29301:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return pe}});var xe=g(96663),Fe=g(59301),se=g(11592),Me=g(48736),ie=g(44127),Y=g(20135),O=g(76846),I=g(8654),n=Fe.createContext(null);function o(T){var Ee=T.children,oe=T.onBatchResize,fe=Fe.useRef(0),ye=Fe.useRef([]),_=Fe.useContext(n),N=Fe.useCallback(function(X,he,qe){fe.current+=1;var st=fe.current;ye.current.push({size:X,element:he,data:qe}),Promise.resolve().then(function(){st===fe.current&&(oe==null||oe(ye.current),ye.current=[])}),_==null||_(X,he,qe)},[oe,_]);return Fe.createElement(n.Provider,{value:N},Ee)}var L=g(76374),p=new Map;function a(T){T.forEach(function(Ee){var oe,fe=Ee.target;(oe=p.get(fe))===null||oe===void 0||oe.forEach(function(ye){return ye(fe)})})}var d=new L.Z(a),m=null,S=null;function $(T,Ee){p.has(T)||(p.set(T,new Set),d.observe(T)),p.get(T).add(Ee)}function F(T,Ee){p.has(T)&&(p.get(T).delete(Ee),p.get(T).size||(d.unobserve(T),p.delete(T)))}var H=g(52884),V=g(95727),ee=g(65711),B=g(85745),G=function(T){(0,ee.Z)(oe,T);var Ee=(0,B.Z)(oe);function oe(){return(0,H.Z)(this,oe),Ee.apply(this,arguments)}return(0,V.Z)(oe,[{key:"render",value:function(){return this.props.children}}]),oe}(Fe.Component);function le(T,Ee){var oe=T.children,fe=T.disabled,ye=Fe.useRef(null),_=Fe.useRef(null),N=Fe.useContext(n),X=typeof oe=="function",he=X?oe(ye):oe,qe=Fe.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),st=!X&&Fe.isValidElement(he)&&(0,I.Yr)(he),nt=st?(0,I.C4)(he):null,Rt=(0,I.x1)(nt,ye),sr=function(){var xr;return(0,O.ZP)(ye.current)||(ye.current&&(0,Y.Z)(ye.current)==="object"?(0,O.ZP)((xr=ye.current)===null||xr===void 0?void 0:xr.nativeElement):null)||(0,O.ZP)(_.current)};Fe.useImperativeHandle(Ee,function(){return sr()});var Jt=Fe.useRef(T);Jt.current=T;var We=Fe.useCallback(function(Er){var xr=Jt.current,Wr=xr.onResize,Cr=xr.data,_e=Er.getBoundingClientRect(),kt=_e.width,K=_e.height,y=Er.offsetWidth,h=Er.offsetHeight,D=Math.floor(kt),Ae=Math.floor(K);if(qe.current.width!==D||qe.current.height!==Ae||qe.current.offsetWidth!==y||qe.current.offsetHeight!==h){var Z={width:D,height:Ae,offsetWidth:y,offsetHeight:h};qe.current=Z;var k=y===Math.round(kt)?kt:y,te=h===Math.round(K)?K:h,Se=(0,ie.Z)((0,ie.Z)({},Z),{},{offsetWidth:k,offsetHeight:te});N==null||N(Se,Er,Cr),Wr&&Promise.resolve().then(function(){Wr(Se,Er)})}},[]);return Fe.useEffect(function(){var Er=sr();return Er&&!fe&&$(Er,We),function(){return F(Er,We)}},[ye.current,fe]),Fe.createElement(G,{ref:_},st?Fe.cloneElement(he,{ref:Rt}):he)}var J=Fe.forwardRef(le),we=J,Ce="rc-observer-key";function Le(T,Ee){var oe=T.children,fe=typeof oe=="function"?[oe]:(0,se.Z)(oe);return fe.map(function(ye,_){var N=(ye==null?void 0:ye.key)||"".concat(Ce,"-").concat(_);return Fe.createElement(we,(0,xe.Z)({},T,{key:N,ref:_===0?Ee:void 0}),ye)})}var ae=Fe.forwardRef(Le);ae.Collection=o;var pe=ae},17115:function(yn,Wt,g){"use strict";g.d(Wt,{ZP:function(){return O}});var xe=g(72071),Fe=g(59301),se=g(47273),Me=0,ie=(0,se.Z)();function Y(){var I;return ie?(I=Me,Me+=1):I="TEST_OR_SSR",I}function O(I){var n=Fe.useState(),o=(0,xe.Z)(n,2),L=o[0],p=o[1];return Fe.useEffect(function(){p("rc_select_".concat(Y()))},[]),I||L}},77861:function(yn,Wt,g){"use strict";g.d(Wt,{Ac:function(){return Ge},Xo:function(){return ue},Wx:function(){return Qe},ZP:function(){return en},lk:function(){return ee}});var xe=g(96663),Fe=g(19127),se=g(90493),Me=g(44127),ie=g(72071),Y=g(6620),O=g(20135),I=g(18929),n=g(48736),o=g(59301),L=g(92310),p=g.n(L),a=g(34280),d=g(49658),m=g(10228),S=g(8654),$=function(Et){var _r=Et.className,Fr=Et.customizeIcon,In=Et.customizeIconProps,an=Et.onMouseDown,_n=Et.onClick,mn=Et.children,Mn;return typeof Fr=="function"?Mn=Fr(In):Mn=Fr,o.createElement("span",{className:_r,onMouseDown:function(Kr){Kr.preventDefault(),an&&an(Kr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:_n,"aria-hidden":!0},Mn!==void 0?Mn:o.createElement("span",{className:p()(_r.split(/\s+/).map(function(ei){return"".concat(ei,"-icon")}))},mn))},F=$;function H(Pt,Et,_r,Fr,In){var an=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,_n=arguments.length>6?arguments[6]:void 0,mn=arguments.length>7?arguments[7]:void 0,Mn=o.useMemo(function(){if((0,O.Z)(Fr)==="object")return Fr.clearIcon;if(In)return In},[Fr,In]),ei=o.useMemo(function(){return!!(!an&&Fr&&(_r.length||_n)&&!(mn==="combobox"&&_n===""))},[Fr,an,_r.length,_n,mn]);return{allowClear:ei,clearIcon:o.createElement(F,{className:"".concat(Pt,"-clear"),onMouseDown:Et,customizeIcon:Mn},"\xD7")}}var V=o.createContext(null);function ee(){return o.useContext(V)}function B(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Et=o.useState(!1),_r=(0,ie.Z)(Et,2),Fr=_r[0],In=_r[1],an=o.useRef(null),_n=function(){window.clearTimeout(an.current)};o.useEffect(function(){return _n},[]);var mn=function(ei,Kr){_n(),an.current=window.setTimeout(function(){In(ei),Kr&&Kr()},Pt)};return[Fr,mn,_n]}function G(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Et=o.useRef(null),_r=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(_r.current)}},[]);function Fr(In){(In||Et.current===null)&&(Et.current=In),window.clearTimeout(_r.current),_r.current=window.setTimeout(function(){Et.current=null},Pt)}return[function(){return Et.current},Fr]}function le(Pt,Et,_r,Fr){var In=o.useRef(null);In.current={open:Et,triggerOpen:_r,customizedTrigger:Fr},o.useEffect(function(){function an(_n){var mn;if(!((mn=In.current)!==null&&mn!==void 0&&mn.customizedTrigger)){var Mn=_n.target;Mn.shadowRoot&&_n.composed&&(Mn=_n.composedPath()[0]||Mn),In.current.open&&Pt().filter(function(ei){return ei}).every(function(ei){return!ei.contains(Mn)&&ei!==Mn})&&In.current.triggerOpen(!1)}}return window.addEventListener("mousedown",an),function(){return window.removeEventListener("mousedown",an)}},[])}var J=g(26112),we=g(11780),Ce=function(Et,_r){var Fr,In,an=Et.prefixCls,_n=Et.id,mn=Et.inputElement,Mn=Et.disabled,ei=Et.tabIndex,Kr=Et.autoFocus,Vr=Et.autoComplete,Tn=Et.editable,Sn=Et.activeDescendantId,Un=Et.value,Vn=Et.maxLength,Ui=Et.onKeyDown,di=Et.onMouseDown,bn=Et.onChange,dr=Et.onPaste,vr=Et.onCompositionStart,Ir=Et.onCompositionEnd,Yr=Et.open,Mr=Et.attrs,cn=mn||o.createElement("input",null),nn=cn,jn=nn.ref,ti=nn.props,ui=ti.onKeyDown,Ri=ti.onChange,Qi=ti.onMouseDown,Pi=ti.onCompositionStart,Sr=ti.onCompositionEnd,Cn=ti.style;return(0,n.Kp)(!("maxLength"in cn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),cn=o.cloneElement(cn,(0,Me.Z)((0,Me.Z)((0,Me.Z)({type:"search"},ti),{},{id:_n,ref:(0,S.sQ)(_r,jn),disabled:Mn,tabIndex:ei,autoComplete:Vr||"off",autoFocus:Kr,className:p()("".concat(an,"-selection-search-input"),(Fr=cn)===null||Fr===void 0||(In=Fr.props)===null||In===void 0?void 0:In.className),role:"combobox","aria-label":"Search","aria-expanded":Yr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(_n,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(_n,"_list"),"aria-activedescendant":Yr?Sn:void 0},Mr),{},{value:Tn?Un:"",maxLength:Vn,readOnly:!Tn,unselectable:Tn?null:"on",style:(0,Me.Z)((0,Me.Z)({},Cn),{},{opacity:Tn?null:0}),onKeyDown:function(hi){Ui(hi),ui&&ui(hi)},onMouseDown:function(hi){di(hi),Qi&&Qi(hi)},onChange:function(hi){bn(hi),Ri&&Ri(hi)},onCompositionStart:function(hi){vr(hi),Pi&&Pi(hi)},onCompositionEnd:function(hi){Ir(hi),Sr&&Sr(hi)},onPaste:dr})),cn},Le=o.forwardRef(Ce);Le.displayName="Input";var ae=Le;function pe(Pt){return Array.isArray(Pt)?Pt:Pt!==void 0?[Pt]:[]}var T=typeof window!="undefined"&&window.document&&window.document.documentElement,Ee=T;function oe(Pt){return Pt!=null}function fe(Pt){return!Pt&&Pt!==0}function ye(Pt){return["string","number"].includes((0,O.Z)(Pt))}function _(Pt){var Et=void 0;return Pt&&(ye(Pt.title)?Et=Pt.title.toString():ye(Pt.label)&&(Et=Pt.label.toString())),Et}function N(Pt,Et){Ee?o.useLayoutEffect(Pt,Et):o.useEffect(Pt,Et)}function X(Pt){var Et;return(Et=Pt.key)!==null&&Et!==void 0?Et:Pt.value}var he=function(Et){Et.preventDefault(),Et.stopPropagation()},qe=function(Et){var _r=Et.id,Fr=Et.prefixCls,In=Et.values,an=Et.open,_n=Et.searchValue,mn=Et.autoClearSearchValue,Mn=Et.inputRef,ei=Et.placeholder,Kr=Et.disabled,Vr=Et.mode,Tn=Et.showSearch,Sn=Et.autoFocus,Un=Et.autoComplete,Vn=Et.activeDescendantId,Ui=Et.tabIndex,di=Et.removeIcon,bn=Et.maxTagCount,dr=Et.maxTagTextLength,vr=Et.maxTagPlaceholder,Ir=vr===void 0?function(ji){return"+ ".concat(ji.length," ...")}:vr,Yr=Et.tagRender,Mr=Et.onToggleOpen,cn=Et.onRemove,nn=Et.onInputChange,jn=Et.onInputPaste,ti=Et.onInputKeyDown,ui=Et.onInputMouseDown,Ri=Et.onInputCompositionStart,Qi=Et.onInputCompositionEnd,Pi=o.useRef(null),Sr=(0,o.useState)(0),Cn=(0,ie.Z)(Sr,2),fn=Cn[0],hi=Cn[1],ii=(0,o.useState)(!1),ri=(0,ie.Z)(ii,2),bi=ri[0],Ti=ri[1],Bi="".concat(Fr,"-selection"),Zi=an||Vr==="multiple"&&mn===!1||Vr==="tags"?_n:"",ua=Vr==="tags"||Vr==="multiple"&&mn===!1||Tn&&(an||bi);N(function(){hi(Pi.current.scrollWidth)},[Zi]);function xi(ji,da,Ea,qi,Sa){return o.createElement("span",{className:p()("".concat(Bi,"-item"),(0,se.Z)({},"".concat(Bi,"-item-disabled"),Ea)),title:_(ji)},o.createElement("span",{className:"".concat(Bi,"-item-content")},da),qi&&o.createElement(F,{className:"".concat(Bi,"-item-remove"),onMouseDown:he,onClick:Sa,customizeIcon:di},"\xD7"))}function gn(ji,da,Ea,qi,Sa){var _i=function(zi){he(zi),Mr(!an)};return o.createElement("span",{onMouseDown:_i},Yr({label:da,value:ji,disabled:Ea,closable:qi,onClose:Sa}))}function Ht(ji){var da=ji.disabled,Ea=ji.label,qi=ji.value,Sa=!Kr&&!da,_i=Ea;if(typeof dr=="number"&&(typeof Ea=="string"||typeof Ea=="number")){var ai=String(_i);ai.length>dr&&(_i="".concat(ai.slice(0,dr),"..."))}var zi=function(Ca){Ca&&Ca.stopPropagation(),cn(ji)};return typeof Yr=="function"?gn(qi,_i,da,Sa,zi):xi(ji,_i,da,Sa,zi)}function Fn(ji){var da=typeof Ir=="function"?Ir(ji):Ir;return xi({title:da},da,!1)}var Zn=o.createElement("div",{className:"".concat(Bi,"-search"),style:{width:fn},onFocus:function(){Ti(!0)},onBlur:function(){Ti(!1)}},o.createElement(ae,{ref:Mn,open:an,prefixCls:Fr,id:_r,inputElement:null,disabled:Kr,autoFocus:Sn,autoComplete:Un,editable:ua,activeDescendantId:Vn,value:Zi,onKeyDown:ti,onMouseDown:ui,onChange:nn,onPaste:jn,onCompositionStart:Ri,onCompositionEnd:Qi,tabIndex:Ui,attrs:(0,J.Z)(Et,!0)}),o.createElement("span",{ref:Pi,className:"".concat(Bi,"-search-mirror"),"aria-hidden":!0},Zi,"\xA0")),Ei=o.createElement(we.Z,{prefixCls:"".concat(Bi,"-overflow"),data:In,renderItem:Ht,renderRest:Fn,suffix:Zn,itemKey:X,maxCount:bn});return o.createElement(o.Fragment,null,Ei,!In.length&&!Zi&&o.createElement("span",{className:"".concat(Bi,"-placeholder")},ei))},st=qe,nt=function(Et){var _r=Et.inputElement,Fr=Et.prefixCls,In=Et.id,an=Et.inputRef,_n=Et.disabled,mn=Et.autoFocus,Mn=Et.autoComplete,ei=Et.activeDescendantId,Kr=Et.mode,Vr=Et.open,Tn=Et.values,Sn=Et.placeholder,Un=Et.tabIndex,Vn=Et.showSearch,Ui=Et.searchValue,di=Et.activeValue,bn=Et.maxLength,dr=Et.onInputKeyDown,vr=Et.onInputMouseDown,Ir=Et.onInputChange,Yr=Et.onInputPaste,Mr=Et.onInputCompositionStart,cn=Et.onInputCompositionEnd,nn=Et.title,jn=o.useState(!1),ti=(0,ie.Z)(jn,2),ui=ti[0],Ri=ti[1],Qi=Kr==="combobox",Pi=Qi||Vn,Sr=Tn[0],Cn=Ui||"";Qi&&di&&!ui&&(Cn=di),o.useEffect(function(){Qi&&Ri(!1)},[Qi,di]);var fn=Kr!=="combobox"&&!Vr&&!Vn?!1:!!Cn,hi=nn===void 0?_(Sr):nn,ii=function(){if(Sr)return null;var bi=fn?{visibility:"hidden"}:void 0;return o.createElement("span",{className:"".concat(Fr,"-selection-placeholder"),style:bi},Sn)};return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(Fr,"-selection-search")},o.createElement(ae,{ref:an,prefixCls:Fr,id:In,open:Vr,inputElement:_r,disabled:_n,autoFocus:mn,autoComplete:Mn,editable:Pi,activeDescendantId:ei,value:Cn,onKeyDown:dr,onMouseDown:vr,onChange:function(bi){Ri(!0),Ir(bi)},onPaste:Yr,onCompositionStart:Mr,onCompositionEnd:cn,tabIndex:Un,attrs:(0,J.Z)(Et,!0),maxLength:Qi?bn:void 0})),!Qi&&Sr?o.createElement("span",{className:"".concat(Fr,"-selection-item"),title:hi,style:fn?{visibility:"hidden"}:void 0},Sr.label):null,ii())},Rt=nt;function sr(Pt){return![m.Z.ESC,m.Z.SHIFT,m.Z.BACKSPACE,m.Z.TAB,m.Z.WIN_KEY,m.Z.ALT,m.Z.META,m.Z.WIN_KEY_RIGHT,m.Z.CTRL,m.Z.SEMICOLON,m.Z.EQUALS,m.Z.CAPS_LOCK,m.Z.CONTEXT_MENU,m.Z.F1,m.Z.F2,m.Z.F3,m.Z.F4,m.Z.F5,m.Z.F6,m.Z.F7,m.Z.F8,m.Z.F9,m.Z.F10,m.Z.F11,m.Z.F12].includes(Pt)}var Jt=function(Et,_r){var Fr=(0,o.useRef)(null),In=(0,o.useRef)(!1),an=Et.prefixCls,_n=Et.open,mn=Et.mode,Mn=Et.showSearch,ei=Et.tokenWithEnter,Kr=Et.autoClearSearchValue,Vr=Et.onSearch,Tn=Et.onSearchSubmit,Sn=Et.onToggleOpen,Un=Et.onInputKeyDown,Vn=Et.domRef;o.useImperativeHandle(_r,function(){return{focus:function(){Fr.current.focus()},blur:function(){Fr.current.blur()}}});var Ui=G(0),di=(0,ie.Z)(Ui,2),bn=di[0],dr=di[1],vr=function(Cn){var fn=Cn.which;(fn===m.Z.UP||fn===m.Z.DOWN)&&Cn.preventDefault(),Un&&Un(Cn),fn===m.Z.ENTER&&mn==="tags"&&!In.current&&!_n&&(Tn==null||Tn(Cn.target.value)),sr(fn)&&Sn(!0)},Ir=function(){dr(!0)},Yr=(0,o.useRef)(null),Mr=function(Cn){Vr(Cn,!0,In.current)!==!1&&Sn(!0)},cn=function(){In.current=!0},nn=function(Cn){In.current=!1,mn!=="combobox"&&Mr(Cn.target.value)},jn=function(Cn){var fn=Cn.target.value;if(ei&&Yr.current&&/[\r\n]/.test(Yr.current)){var hi=Yr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");fn=fn.replace(hi,Yr.current)}Yr.current=null,Mr(fn)},ti=function(Cn){var fn=Cn.clipboardData,hi=fn.getData("text");Yr.current=hi},ui=function(Cn){var fn=Cn.target;if(fn!==Fr.current){var hi=document.body.style.msTouchAction!==void 0;hi?setTimeout(function(){Fr.current.focus()}):Fr.current.focus()}},Ri=function(Cn){var fn=bn();Cn.target!==Fr.current&&!fn&&mn!=="combobox"&&Cn.preventDefault(),(mn!=="combobox"&&(!Mn||!fn)||!_n)&&(_n&&Kr!==!1&&Vr("",!0,!1),Sn())},Qi={inputRef:Fr,onInputKeyDown:vr,onInputMouseDown:Ir,onInputChange:jn,onInputPaste:ti,onInputCompositionStart:cn,onInputCompositionEnd:nn},Pi=mn==="multiple"||mn==="tags"?o.createElement(st,(0,xe.Z)({},Et,Qi)):o.createElement(Rt,(0,xe.Z)({},Et,Qi));return o.createElement("div",{ref:Vn,className:"".concat(an,"-selector"),onClick:ui,onMouseDown:Ri},Pi)},We=o.forwardRef(Jt);We.displayName="Selector";var Er=We,xr=g(35593),Wr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Cr=function(Et){var _r=Et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:_r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:_r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:_r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:_r,adjustY:1},htmlRegion:"scroll"}}},_e=function(Et,_r){var Fr=Et.prefixCls,In=Et.disabled,an=Et.visible,_n=Et.children,mn=Et.popupElement,Mn=Et.animation,ei=Et.transitionName,Kr=Et.dropdownStyle,Vr=Et.dropdownClassName,Tn=Et.direction,Sn=Tn===void 0?"ltr":Tn,Un=Et.placement,Vn=Et.builtinPlacements,Ui=Et.dropdownMatchSelectWidth,di=Et.dropdownRender,bn=Et.dropdownAlign,dr=Et.getPopupContainer,vr=Et.empty,Ir=Et.getTriggerDOMNode,Yr=Et.onPopupVisibleChange,Mr=Et.onPopupMouseEnter,cn=(0,Y.Z)(Et,Wr),nn="".concat(Fr,"-dropdown"),jn=mn;di&&(jn=di(mn));var ti=o.useMemo(function(){return Vn||Cr(Ui)},[Vn,Ui]),ui=Mn?"".concat(nn,"-").concat(Mn):ei,Ri=typeof Ui=="number",Qi=o.useMemo(function(){return Ri?null:Ui===!1?"minWidth":"width"},[Ui,Ri]),Pi=Kr;Ri&&(Pi=(0,Me.Z)((0,Me.Z)({},Pi),{},{width:Ui}));var Sr=o.useRef(null);return o.useImperativeHandle(_r,function(){return{getPopupElement:function(){return Sr.current}}}),o.createElement(xr.Z,(0,xe.Z)({},cn,{showAction:Yr?["click"]:[],hideAction:Yr?["click"]:[],popupPlacement:Un||(Sn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ti,prefixCls:nn,popupTransitionName:ui,popup:o.createElement("div",{ref:Sr,onMouseEnter:Mr},jn),stretch:Qi,popupAlign:bn,popupVisible:an,getPopupContainer:dr,popupClassName:p()(Vr,(0,se.Z)({},"".concat(nn,"-empty"),vr)),popupStyle:Pi,getTriggerDOMNode:Ir,onPopupVisibleChange:Yr}),_n)},kt=o.forwardRef(_e);kt.displayName="SelectTrigger";var K=kt,y=g(4537);function h(Pt,Et){var _r=Pt.key,Fr;return"value"in Pt&&(Fr=Pt.value),_r!=null?_r:Fr!==void 0?Fr:"rc-index-key-".concat(Et)}function D(Pt,Et){var _r=Pt||{},Fr=_r.label,In=_r.value,an=_r.options,_n=_r.groupLabel,mn=Fr||(Et?"children":"label");return{label:mn,value:In||"value",options:an||"options",groupLabel:_n||mn}}function Ae(Pt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_r=Et.fieldNames,Fr=Et.childrenAsData,In=[],an=D(_r,!1),_n=an.label,mn=an.value,Mn=an.options,ei=an.groupLabel;function Kr(Vr,Tn){Vr.forEach(function(Sn){if(Tn||!(Mn in Sn)){var Un=Sn[mn];In.push({key:h(Sn,In.length),groupOption:Tn,data:Sn,label:Sn[_n],value:Un})}else{var Vn=Sn[ei];Vn===void 0&&Fr&&(Vn=Sn.label),In.push({key:h(Sn,In.length),group:!0,data:Sn,label:Vn}),Kr(Sn[Mn],!0)}})}return Kr(Pt,!1),In}function Z(Pt){var Et=(0,Me.Z)({},Pt);return"props"in Et||Object.defineProperty(Et,"props",{get:function(){return(0,n.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Et}}),Et}function k(Pt,Et){if(!Et||!Et.length)return null;var _r=!1;function Fr(an,_n){var mn=(0,y.Z)(_n),Mn=mn[0],ei=mn.slice(1);if(!Mn)return[an];var Kr=an.split(Mn);return _r=_r||Kr.length>1,Kr.reduce(function(Vr,Tn){return[].concat((0,Fe.Z)(Vr),(0,Fe.Z)(Fr(Tn,ei)))},[]).filter(function(Vr){return Vr})}var In=Fr(Pt,Et);return _r?In:null}var te=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Se=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Be(Pt){return Pt==="tags"||Pt==="multiple"}var Ie=o.forwardRef(function(Pt,Et){var _r,Fr,In=Pt.id,an=Pt.prefixCls,_n=Pt.className,mn=Pt.showSearch,Mn=Pt.tagRender,ei=Pt.direction,Kr=Pt.omitDomProps,Vr=Pt.displayValues,Tn=Pt.onDisplayValuesChange,Sn=Pt.emptyOptions,Un=Pt.notFoundContent,Vn=Un===void 0?"Not Found":Un,Ui=Pt.onClear,di=Pt.mode,bn=Pt.disabled,dr=Pt.loading,vr=Pt.getInputElement,Ir=Pt.getRawInputElement,Yr=Pt.open,Mr=Pt.defaultOpen,cn=Pt.onDropdownVisibleChange,nn=Pt.activeValue,jn=Pt.onActiveValueChange,ti=Pt.activeDescendantId,ui=Pt.searchValue,Ri=Pt.autoClearSearchValue,Qi=Pt.onSearch,Pi=Pt.onSearchSplit,Sr=Pt.tokenSeparators,Cn=Pt.allowClear,fn=Pt.suffixIcon,hi=Pt.clearIcon,ii=Pt.OptionList,ri=Pt.animation,bi=Pt.transitionName,Ti=Pt.dropdownStyle,Bi=Pt.dropdownClassName,Zi=Pt.dropdownMatchSelectWidth,ua=Pt.dropdownRender,xi=Pt.dropdownAlign,gn=Pt.placement,Ht=Pt.builtinPlacements,Fn=Pt.getPopupContainer,Zn=Pt.showAction,Ei=Zn===void 0?[]:Zn,ji=Pt.onFocus,da=Pt.onBlur,Ea=Pt.onKeyUp,qi=Pt.onKeyDown,Sa=Pt.onMouseDown,_i=(0,Y.Z)(Pt,te),ai=Be(di),zi=(mn!==void 0?mn:ai)||di==="combobox",na=(0,Me.Z)({},_i);Se.forEach(function(Na){delete na[Na]}),Kr==null||Kr.forEach(function(Na){delete na[Na]});var Ca=o.useState(!1),ys=(0,ie.Z)(Ca,2),oi=ys[0],_a=ys[1];o.useEffect(function(){_a((0,d.Z)())},[]);var ga=o.useRef(null),Ua=o.useRef(null),Cs=o.useRef(null),ns=o.useRef(null),Fa=o.useRef(null),Ni=B(),oa=(0,ie.Z)(Ni,3),fs=oa[0],is=oa[1],es=oa[2];o.useImperativeHandle(Et,function(){var Na,pa;return{focus:(Na=ns.current)===null||Na===void 0?void 0:Na.focus,blur:(pa=ns.current)===null||pa===void 0?void 0:pa.blur,scrollTo:function(Ya){var rs;return(rs=Fa.current)===null||rs===void 0?void 0:rs.scrollTo(Ya)}}});var Yi=o.useMemo(function(){var Na;if(di!=="combobox")return ui;var pa=(Na=Vr[0])===null||Na===void 0?void 0:Na.value;return typeof pa=="string"||typeof pa=="number"?String(pa):""},[ui,di,Vr]),hs=di==="combobox"&&typeof vr=="function"&&vr()||null,aa=typeof Ir=="function"&&Ir(),co=(0,S.x1)(Ua,aa==null||(_r=aa.props)===null||_r===void 0?void 0:_r.ref),js=o.useState(!1),wo=(0,ie.Z)(js,2),As=wo[0],xo=wo[1];(0,a.Z)(function(){xo(!0)},[]);var as=(0,I.Z)(!1,{defaultValue:Mr,value:Yr}),Yn=(0,ie.Z)(as,2),Da=Yn[0],io=Yn[1],Vi=As?Da:!1,ea=!Vn&&Sn;(bn||ea&&Vi&&di==="combobox")&&(Vi=!1);var Ki=ea?!1:Vi,ki=o.useCallback(function(Na){var pa=Na!==void 0?Na:!Vi;bn||(io(pa),Vi!==pa&&(cn==null||cn(pa)))},[bn,Vi,io,cn]),ya=o.useMemo(function(){return(Sr||[]).some(function(Na){return[`
|
|
|
`,`\r
|
|
|
`].includes(Na)})},[Sr]),Pa=function(pa,eo,Ya){var rs=!0,Hs=pa;jn==null||jn(null);var ba=Ya?null:k(pa,Sr);return di!=="combobox"&&ba&&(Hs="",Pi==null||Pi(ba),ki(!1),rs=!1),Qi&&Yi!==Hs&&Qi(Hs,{source:eo?"typing":"effect"}),rs},Os=function(pa){!pa||!pa.trim()||Qi(pa,{source:"submit"})};o.useEffect(function(){!Vi&&!ai&&di!=="combobox"&&Pa("",!1,!1)},[Vi]),o.useEffect(function(){Da&&bn&&io(!1),bn&&is(!1)},[bn]);var us=G(),bs=(0,ie.Z)(us,2),ts=bs[0],Eo=bs[1],po=function(pa){var eo=ts(),Ya=pa.which;if(Ya===m.Z.ENTER&&(di!=="combobox"&&pa.preventDefault(),Vi||ki(!0)),Eo(!!Yi),Ya===m.Z.BACKSPACE&&!eo&&ai&&!Yi&&Vr.length){for(var rs=(0,Fe.Z)(Vr),Hs=null,ba=rs.length-1;ba>=0;ba-=1){var Zs=rs[ba];if(!Zs.disabled){rs.splice(ba,1),Hs=Zs;break}}Hs&&Tn(rs,{type:"remove",values:[Hs]})}for(var ao=arguments.length,Oo=new Array(ao>1?ao-1:0),Io=1;Io<ao;Io++)Oo[Io-1]=arguments[Io];if(Vi&&Fa.current){var Xa;(Xa=Fa.current).onKeyDown.apply(Xa,[pa].concat(Oo))}qi==null||qi.apply(void 0,[pa].concat(Oo))},qs=function(pa){for(var eo=arguments.length,Ya=new Array(eo>1?eo-1:0),rs=1;rs<eo;rs++)Ya[rs-1]=arguments[rs];if(Vi&&Fa.current){var Hs;(Hs=Fa.current).onKeyUp.apply(Hs,[pa].concat(Ya))}Ea==null||Ea.apply(void 0,[pa].concat(Ya))},$s=function(pa){var eo=Vr.filter(function(Ya){return Ya!==pa});Tn(eo,{type:"remove",values:[pa]})},Ps=o.useRef(!1),Fi=function(){is(!0),bn||(ji&&!Ps.current&&ji.apply(void 0,arguments),Ei.includes("focus")&&ki(!0)),Ps.current=!0},pi=function(){is(!1,function(){Ps.current=!1,ki(!1)}),!bn&&(Yi&&(di==="tags"?Qi(Yi,{source:"submit"}):di==="multiple"&&Qi("",{source:"blur"})),da&&da.apply(void 0,arguments))},la=[];o.useEffect(function(){return function(){la.forEach(function(Na){return clearTimeout(Na)}),la.splice(0,la.length)}},[]);var ps=function(pa){var eo,Ya=pa.target,rs=(eo=Cs.current)===null||eo===void 0?void 0:eo.getPopupElement();if(rs&&rs.contains(Ya)){var Hs=setTimeout(function(){var Oo=la.indexOf(Hs);if(Oo!==-1&&la.splice(Oo,1),es(),!oi&&!rs.contains(document.activeElement)){var Io;(Io=ns.current)===null||Io===void 0||Io.focus()}});la.push(Hs)}for(var ba=arguments.length,Zs=new Array(ba>1?ba-1:0),ao=1;ao<ba;ao++)Zs[ao-1]=arguments[ao];Sa==null||Sa.apply(void 0,[pa].concat(Zs))},Oa=o.useState({}),ks=(0,ie.Z)(Oa,2),Gs=ks[1];function mo(){Gs({})}var Ns;aa&&(Ns=function(pa){ki(pa)}),le(function(){var Na;return[ga.current,(Na=Cs.current)===null||Na===void 0?void 0:Na.getPopupElement()]},Ki,ki,!!aa);var Ii=o.useMemo(function(){return(0,Me.Z)((0,Me.Z)({},Pt),{},{notFoundContent:Vn,open:Vi,triggerOpen:Ki,id:In,showSearch:zi,multiple:ai,toggleOpen:ki})},[Pt,Vn,Ki,Vi,In,zi,ai,ki]),kl=!!fn||dr,Ys;kl&&(Ys=o.createElement(F,{className:p()("".concat(an,"-arrow"),(0,se.Z)({},"".concat(an,"-arrow-loading"),dr)),customizeIcon:fn,customizeIconProps:{loading:dr,searchValue:Yi,open:Vi,focused:fs,showSearch:zi}}));var il=function(){var pa;Ui==null||Ui(),(pa=ns.current)===null||pa===void 0||pa.focus(),Tn([],{type:"clear",values:Vr}),Pa("",!1,!1)},ko=H(an,il,Vr,Cn,hi,bn,Yi,di),Ao=ko.allowClear,Ba=ko.clearIcon,vl=o.createElement(ii,{ref:Fa}),yl=p()(an,_n,(Fr={},(0,se.Z)(Fr,"".concat(an,"-focused"),fs),(0,se.Z)(Fr,"".concat(an,"-multiple"),ai),(0,se.Z)(Fr,"".concat(an,"-single"),!ai),(0,se.Z)(Fr,"".concat(an,"-allow-clear"),Cn),(0,se.Z)(Fr,"".concat(an,"-show-arrow"),kl),(0,se.Z)(Fr,"".concat(an,"-disabled"),bn),(0,se.Z)(Fr,"".concat(an,"-loading"),dr),(0,se.Z)(Fr,"".concat(an,"-open"),Vi),(0,se.Z)(Fr,"".concat(an,"-customize-input"),hs),(0,se.Z)(Fr,"".concat(an,"-show-search"),zi),Fr)),fo=o.createElement(K,{ref:Cs,disabled:bn,prefixCls:an,visible:Ki,popupElement:vl,animation:ri,transitionName:bi,dropdownStyle:Ti,dropdownClassName:Bi,direction:ei,dropdownMatchSelectWidth:Zi,dropdownRender:ua,dropdownAlign:xi,placement:gn,builtinPlacements:Ht,getPopupContainer:Fn,empty:Sn,getTriggerDOMNode:function(){return Ua.current},onPopupVisibleChange:Ns,onPopupMouseEnter:mo},aa?o.cloneElement(aa,{ref:co}):o.createElement(Er,(0,xe.Z)({},Pt,{domRef:Ua,prefixCls:an,inputElement:hs,ref:ns,id:In,showSearch:zi,autoClearSearchValue:Ri,mode:di,activeDescendantId:ti,tagRender:Mn,values:Vr,open:Vi,onToggleOpen:ki,activeValue:nn,searchValue:Yi,onSearch:Pa,onSearchSubmit:Os,onRemove:$s,tokenWithEnter:ya}))),go;return aa?go=fo:go=o.createElement("div",(0,xe.Z)({className:yl},na,{ref:ga,onMouseDown:ps,onKeyDown:po,onKeyUp:qs,onFocus:Fi,onBlur:pi}),fs&&!Vi&&o.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Vr.map(function(Na){var pa=Na.label,eo=Na.value;return["number","string"].includes((0,O.Z)(pa))?pa:eo}).join(", "))),fo,Ys,Ao&&Ba),o.createElement(V.Provider,{value:Ii},go)}),Ge=Ie,mt=function(Pt,Et){var _r=o.useRef({values:new Map,options:new Map}),Fr=o.useMemo(function(){var an=_r.current,_n=an.values,mn=an.options,Mn=Pt.map(function(Vr){if(Vr.label===void 0){var Tn;return(0,Me.Z)((0,Me.Z)({},Vr),{},{label:(Tn=_n.get(Vr.value))===null||Tn===void 0?void 0:Tn.label})}return Vr}),ei=new Map,Kr=new Map;return Mn.forEach(function(Vr){ei.set(Vr.value,Vr),Kr.set(Vr.value,Et.get(Vr.value)||mn.get(Vr.value))}),_r.current.values=ei,_r.current.options=Kr,Mn},[Pt,Et]),In=o.useCallback(function(an){return Et.get(an)||_r.current.options.get(an)},[Et]);return[Fr,In]};function $e(Pt,Et){return pe(Pt).join("").toUpperCase().includes(Et)}var tt=function(Pt,Et,_r,Fr,In){return o.useMemo(function(){if(!_r||Fr===!1)return Pt;var an=Et.options,_n=Et.label,mn=Et.value,Mn=[],ei=typeof Fr=="function",Kr=_r.toUpperCase(),Vr=ei?Fr:function(Sn,Un){return In?$e(Un[In],Kr):Un[an]?$e(Un[_n!=="children"?_n:"label"],Kr):$e(Un[mn],Kr)},Tn=ei?function(Sn){return Z(Sn)}:function(Sn){return Sn};return Pt.forEach(function(Sn){if(Sn[an]){var Un=Vr(_r,Tn(Sn));if(Un)Mn.push(Sn);else{var Vn=Sn[an].filter(function(Ui){return Vr(_r,Tn(Ui))});Vn.length&&Mn.push((0,Me.Z)((0,Me.Z)({},Sn),{},(0,se.Z)({},an,Vn)))}return}Vr(_r,Tn(Sn))&&Mn.push(Sn)}),Mn},[Pt,Fr,In,_r,Et])},dt=g(17115),Ze=g(11592),Ke=["children","value"],Bt=["children"];function Vt(Pt){var Et=Pt,_r=Et.key,Fr=Et.props,In=Fr.children,an=Fr.value,_n=(0,Y.Z)(Fr,Ke);return(0,Me.Z)({key:_r,value:an!==void 0?an:_r,children:In},_n)}function Ut(Pt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ze.Z)(Pt).map(function(_r,Fr){if(!o.isValidElement(_r)||!_r.type)return null;var In=_r,an=In.type.isSelectOptGroup,_n=In.key,mn=In.props,Mn=mn.children,ei=(0,Y.Z)(mn,Bt);return Et||!an?Vt(_r):(0,Me.Z)((0,Me.Z)({key:"__RC_SELECT_GRP__".concat(_n===null?Fr:_n,"__"),label:_n},ei),{},{options:Ut(Mn)})}).filter(function(_r){return _r})}function mr(Pt,Et,_r,Fr,In){return o.useMemo(function(){var an=Pt,_n=!Pt;_n&&(an=Ut(Et));var mn=new Map,Mn=new Map,ei=function(Tn,Sn,Un){Un&&typeof Un=="string"&&Tn.set(Sn[Un],Sn)};function Kr(Vr){for(var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sn=0;Sn<Vr.length;Sn+=1){var Un=Vr[Sn];!Un[_r.options]||Tn?(mn.set(Un[_r.value],Un),ei(Mn,Un,_r.label),ei(Mn,Un,Fr),ei(Mn,Un,In)):Kr(Un[_r.options],!0)}}return Kr(an),{options:an,valueOptions:mn,labelOptions:Mn}},[Pt,Et,_r,Fr,In])}function br(Pt){var Et=o.useRef();Et.current=Pt;var _r=o.useCallback(function(){return Et.current.apply(Et,arguments)},[]);return _r}var re=function(){return null};re.isSelectOptGroup=!0;var ue=re,rr=function(){return null};rr.isSelectOption=!0;var Qe=rr,ot=g(80547),Jr=g(2738),Tt=g(45680),Kt=o.createContext(null),qt=Kt;function et(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ft=["disabled","title","children","style","className"];function ht(Pt){return typeof Pt=="string"||typeof Pt=="number"}var Gt=function(Et,_r){var Fr=ee(),In=Fr.prefixCls,an=Fr.id,_n=Fr.open,mn=Fr.multiple,Mn=Fr.mode,ei=Fr.searchValue,Kr=Fr.toggleOpen,Vr=Fr.notFoundContent,Tn=Fr.onPopupScroll,Sn=o.useContext(qt),Un=Sn.flattenOptions,Vn=Sn.onActiveValue,Ui=Sn.defaultActiveFirstOption,di=Sn.onSelect,bn=Sn.menuItemSelectedIcon,dr=Sn.rawValues,vr=Sn.fieldNames,Ir=Sn.virtual,Yr=Sn.direction,Mr=Sn.listHeight,cn=Sn.listItemHeight,nn="".concat(In,"-item"),jn=(0,ot.Z)(function(){return Un},[_n,Un],function(xi,gn){return gn[0]&&xi[1]!==gn[1]}),ti=o.useRef(null),ui=function(gn){gn.preventDefault()},Ri=function(gn){ti.current&&ti.current.scrollTo(typeof gn=="number"?{index:gn}:gn)},Qi=function(gn){for(var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Fn=jn.length,Zn=0;Zn<Fn;Zn+=1){var Ei=(gn+Zn*Ht+Fn)%Fn,ji=jn[Ei],da=ji.group,Ea=ji.data;if(!da&&!Ea.disabled)return Ei}return-1},Pi=o.useState(function(){return Qi(0)}),Sr=(0,ie.Z)(Pi,2),Cn=Sr[0],fn=Sr[1],hi=function(gn){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;fn(gn);var Fn={source:Ht?"keyboard":"mouse"},Zn=jn[gn];if(!Zn){Vn(null,-1,Fn);return}Vn(Zn.value,gn,Fn)};(0,o.useEffect)(function(){hi(Ui!==!1?Qi(0):-1)},[jn.length,ei]);var ii=o.useCallback(function(xi){return dr.has(xi)&&Mn!=="combobox"},[Mn,(0,Fe.Z)(dr).toString(),dr.size]);(0,o.useEffect)(function(){var xi=setTimeout(function(){if(!mn&&_n&&dr.size===1){var Ht=Array.from(dr)[0],Fn=jn.findIndex(function(Zn){var Ei=Zn.data;return Ei.value===Ht});Fn!==-1&&(hi(Fn),Ri(Fn))}});if(_n){var gn;(gn=ti.current)===null||gn===void 0||gn.scrollTo(void 0)}return function(){return clearTimeout(xi)}},[_n,ei,Un.length]);var ri=function(gn){gn!==void 0&&di(gn,{selected:!dr.has(gn)}),mn||Kr(!1)};if(o.useImperativeHandle(_r,function(){return{onKeyDown:function(gn){var Ht=gn.which,Fn=gn.ctrlKey;switch(Ht){case m.Z.N:case m.Z.P:case m.Z.UP:case m.Z.DOWN:{var Zn=0;if(Ht===m.Z.UP?Zn=-1:Ht===m.Z.DOWN?Zn=1:et()&&Fn&&(Ht===m.Z.N?Zn=1:Ht===m.Z.P&&(Zn=-1)),Zn!==0){var Ei=Qi(Cn+Zn,Zn);Ri(Ei),hi(Ei,!0)}break}case m.Z.ENTER:{var ji=jn[Cn];ji&&!ji.data.disabled?ri(ji.value):ri(void 0),_n&&gn.preventDefault();break}case m.Z.ESC:Kr(!1),_n&&gn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(gn){Ri(gn)}}}),jn.length===0)return o.createElement("div",{role:"listbox",id:"".concat(an,"_list"),className:"".concat(nn,"-empty"),onMouseDown:ui},Vr);var bi=Object.keys(vr).map(function(xi){return vr[xi]}),Ti=function(gn){return gn.label};function Bi(xi,gn){var Ht=xi.group;return{role:Ht?"presentation":"option",id:"".concat(an,"_list_").concat(gn)}}var Zi=function(gn){var Ht=jn[gn];if(!Ht)return null;var Fn=Ht.data||{},Zn=Fn.value,Ei=Ht.group,ji=(0,J.Z)(Fn,!0),da=Ti(Ht);return Ht?o.createElement("div",(0,xe.Z)({"aria-label":typeof da=="string"&&!Ei?da:null},ji,{key:gn},Bi(Ht,gn),{"aria-selected":ii(Zn)}),Zn):null},ua={role:"listbox",id:"".concat(an,"_list")};return o.createElement(o.Fragment,null,Ir&&o.createElement("div",(0,xe.Z)({},ua,{style:{height:0,width:0,overflow:"hidden"}}),Zi(Cn-1),Zi(Cn),Zi(Cn+1)),o.createElement(Tt.Z,{itemKey:"key",ref:ti,data:jn,height:Mr,itemHeight:cn,fullHeight:!1,onMouseDown:ui,onScroll:Tn,virtual:Ir,direction:Yr,innerProps:Ir?null:ua},function(xi,gn){var Ht,Fn=xi.group,Zn=xi.groupOption,Ei=xi.data,ji=xi.label,da=xi.value,Ea=Ei.key;if(Fn){var qi,Sa=(qi=Ei.title)!==null&&qi!==void 0?qi:ht(ji)?ji.toString():void 0;return o.createElement("div",{className:p()(nn,"".concat(nn,"-group")),title:Sa},ji!==void 0?ji:Ea)}var _i=Ei.disabled,ai=Ei.title,zi=Ei.children,na=Ei.style,Ca=Ei.className,ys=(0,Y.Z)(Ei,ft),oi=(0,Jr.Z)(ys,bi),_a=ii(da),ga="".concat(nn,"-option"),Ua=p()(nn,ga,Ca,(Ht={},(0,se.Z)(Ht,"".concat(ga,"-grouped"),Zn),(0,se.Z)(Ht,"".concat(ga,"-active"),Cn===gn&&!_i),(0,se.Z)(Ht,"".concat(ga,"-disabled"),_i),(0,se.Z)(Ht,"".concat(ga,"-selected"),_a),Ht)),Cs=Ti(xi),ns=!bn||typeof bn=="function"||_a,Fa=typeof Cs=="number"?Cs:Cs||da,Ni=ht(Fa)?Fa.toString():void 0;return ai!==void 0&&(Ni=ai),o.createElement("div",(0,xe.Z)({},(0,J.Z)(oi),Ir?{}:Bi(xi,gn),{"aria-selected":_a,className:Ua,title:Ni,onMouseMove:function(){Cn===gn||_i||hi(gn)},onClick:function(){_i||ri(da)},style:na}),o.createElement("div",{className:"".concat(ga,"-content")},Fa),o.isValidElement(bn)||_a,ns&&o.createElement(F,{className:"".concat(nn,"-option-state"),customizeIcon:bn,customizeIconProps:{isSelected:_a}},_a?"\u2713":null))}))},Oe=o.forwardRef(Gt);Oe.displayName="OptionList";var on=Oe;function Mt(Pt){var Et=Pt.mode,_r=Pt.options,Fr=Pt.children,In=Pt.backfill,an=Pt.allowClear,_n=Pt.placeholder,mn=Pt.getInputElement,Mn=Pt.showSearch,ei=Pt.onSearch,Kr=Pt.defaultOpen,Vr=Pt.autoFocus,Tn=Pt.labelInValue,Sn=Pt.value,Un=Pt.inputValue,Vn=Pt.optionLabelProp,Ui=isMultiple(Et),di=Mn!==void 0?Mn:Ui||Et==="combobox",bn=_r||convertChildrenToData(Fr);if(warning(Et!=="tags"||bn.every(function(Yr){return!Yr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Et==="tags"||Et==="combobox"){var dr=bn.some(function(Yr){return Yr.options?Yr.options.some(function(Mr){return typeof("value"in Mr?Mr.value:Mr.key)=="number"}):typeof("value"in Yr?Yr.value:Yr.key)=="number"});warning(!dr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Et!=="combobox"||!Vn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Et==="combobox"||!In,"`backfill` only works with `combobox` mode."),warning(Et==="combobox"||!mn,"`getInputElement` only work with `combobox` mode."),noteOnce(Et!=="combobox"||!mn||!an||!_n,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ei&&!di&&Et!=="combobox"&&Et!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Kr||Vr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Sn!=null){var vr=toArray(Sn);warning(!Tn||vr.every(function(Yr){return _typeof(Yr)==="object"&&("key"in Yr||"value"in Yr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ui||Array.isArray(Sn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Fr){var Ir=null;toNodeArray(Fr).some(function(Yr){if(!React.isValidElement(Yr)||!Yr.type)return!1;var Mr=Yr,cn=Mr.type;if(cn.isSelectOption)return!1;if(cn.isSelectOptGroup){var nn=toNodeArray(Yr.props.children).every(function(jn){return!React.isValidElement(jn)||!Yr.type||jn.type.isSelectOption?!0:(Ir=jn.type,!1)});return!nn}return Ir=cn,!0}),Ir&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ir.displayName||Ir.name||Ir,"`.")),warning(Un===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function On(Pt,Et){if(Pt){var _r=function Fr(In){for(var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_n=0;_n<In.length;_n++){var mn=In[_n];if(mn[Et==null?void 0:Et.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!an&&Array.isArray(mn[Et==null?void 0:Et.options])&&Fr(mn[Et==null?void 0:Et.options],!0))break}};_r(Pt)}}var Xn=null,yi=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],$i=["inputValue"];function Dn(Pt){return!Pt||(0,O.Z)(Pt)!=="object"}var zn=o.forwardRef(function(Pt,Et){var _r=Pt.id,Fr=Pt.mode,In=Pt.prefixCls,an=In===void 0?"rc-select":In,_n=Pt.backfill,mn=Pt.fieldNames,Mn=Pt.inputValue,ei=Pt.searchValue,Kr=Pt.onSearch,Vr=Pt.autoClearSearchValue,Tn=Vr===void 0?!0:Vr,Sn=Pt.onSelect,Un=Pt.onDeselect,Vn=Pt.dropdownMatchSelectWidth,Ui=Vn===void 0?!0:Vn,di=Pt.filterOption,bn=Pt.filterSort,dr=Pt.optionFilterProp,vr=Pt.optionLabelProp,Ir=Pt.options,Yr=Pt.children,Mr=Pt.defaultActiveFirstOption,cn=Pt.menuItemSelectedIcon,nn=Pt.virtual,jn=Pt.direction,ti=Pt.listHeight,ui=ti===void 0?200:ti,Ri=Pt.listItemHeight,Qi=Ri===void 0?20:Ri,Pi=Pt.value,Sr=Pt.defaultValue,Cn=Pt.labelInValue,fn=Pt.onChange,hi=(0,Y.Z)(Pt,yi),ii=(0,dt.ZP)(_r),ri=Be(Fr),bi=!!(!Ir&&Yr),Ti=o.useMemo(function(){return di===void 0&&Fr==="combobox"?!1:di},[di,Fr]),Bi=o.useMemo(function(){return D(mn,bi)},[JSON.stringify(mn),bi]),Zi=(0,I.Z)("",{value:ei!==void 0?ei:Mn,postState:function(ea){return ea||""}}),ua=(0,ie.Z)(Zi,2),xi=ua[0],gn=ua[1],Ht=mr(Ir,Yr,Bi,dr,vr),Fn=Ht.valueOptions,Zn=Ht.labelOptions,Ei=Ht.options,ji=o.useCallback(function(Vi){var ea=pe(Vi);return ea.map(function(Ki){var ki,ya,Pa,Os,us;if(Dn(Ki))ki=Ki;else{var bs;Pa=Ki.key,ya=Ki.label,ki=(bs=Ki.value)!==null&&bs!==void 0?bs:Pa}var ts=Fn.get(ki);if(ts){var Eo;if(ya===void 0&&(ya=ts==null?void 0:ts[vr||Bi.label]),Pa===void 0&&(Pa=(Eo=ts==null?void 0:ts.key)!==null&&Eo!==void 0?Eo:ki),Os=ts==null?void 0:ts.disabled,us=ts==null?void 0:ts.title,0)var po}return{label:ya,value:ki,key:Pa,disabled:Os,title:us}})},[Bi,vr,Fn]),da=(0,I.Z)(Sr,{value:Pi}),Ea=(0,ie.Z)(da,2),qi=Ea[0],Sa=Ea[1],_i=o.useMemo(function(){var Vi,ea=ji(qi);return Fr==="combobox"&&fe((Vi=ea[0])===null||Vi===void 0?void 0:Vi.value)?[]:ea},[qi,ji,Fr]),ai=mt(_i,Fn),zi=(0,ie.Z)(ai,2),na=zi[0],Ca=zi[1],ys=o.useMemo(function(){if(!Fr&&na.length===1){var Vi=na[0];if(Vi.value===null&&(Vi.label===null||Vi.label===void 0))return[]}return na.map(function(ea){var Ki;return(0,Me.Z)((0,Me.Z)({},ea),{},{label:(Ki=ea.label)!==null&&Ki!==void 0?Ki:ea.value})})},[Fr,na]),oi=o.useMemo(function(){return new Set(na.map(function(Vi){return Vi.value}))},[na]);o.useEffect(function(){if(Fr==="combobox"){var Vi,ea=(Vi=na[0])===null||Vi===void 0?void 0:Vi.value;gn(oe(ea)?String(ea):"")}},[na]);var _a=br(function(Vi,ea){var Ki,ki=ea!=null?ea:Vi;return Ki={},(0,se.Z)(Ki,Bi.value,Vi),(0,se.Z)(Ki,Bi.label,ki),Ki}),ga=o.useMemo(function(){if(Fr!=="tags")return Ei;var Vi=(0,Fe.Z)(Ei),ea=function(ki){return Fn.has(ki)};return(0,Fe.Z)(na).sort(function(Ki,ki){return Ki.value<ki.value?-1:1}).forEach(function(Ki){var ki=Ki.value;ea(ki)||Vi.push(_a(ki,Ki.label))}),Vi},[_a,Ei,Fn,na,Fr]),Ua=tt(ga,Bi,xi,Ti,dr),Cs=o.useMemo(function(){return Fr!=="tags"||!xi||Ua.some(function(Vi){return Vi[dr||"value"]===xi})||Ua.some(function(Vi){return Vi[Bi.value]===xi})?Ua:[_a(xi)].concat((0,Fe.Z)(Ua))},[_a,dr,Fr,Ua,xi,Bi]),ns=o.useMemo(function(){return bn?(0,Fe.Z)(Cs).sort(function(Vi,ea){return bn(Vi,ea)}):Cs},[Cs,bn]),Fa=o.useMemo(function(){return Ae(ns,{fieldNames:Bi,childrenAsData:bi})},[ns,Bi,bi]),Ni=function(ea){var Ki=ji(ea);if(Sa(Ki),fn&&(Ki.length!==na.length||Ki.some(function(Pa,Os){var us;return((us=na[Os])===null||us===void 0?void 0:us.value)!==(Pa==null?void 0:Pa.value)}))){var ki=Cn?Ki:Ki.map(function(Pa){return Pa.value}),ya=Ki.map(function(Pa){return Z(Ca(Pa.value))});fn(ri?ki:ki[0],ri?ya:ya[0])}},oa=o.useState(null),fs=(0,ie.Z)(oa,2),is=fs[0],es=fs[1],Yi=o.useState(0),hs=(0,ie.Z)(Yi,2),aa=hs[0],co=hs[1],js=Mr!==void 0?Mr:Fr!=="combobox",wo=o.useCallback(function(Vi,ea){var Ki=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ki=Ki.source,ya=ki===void 0?"keyboard":ki;co(ea),_n&&Fr==="combobox"&&Vi!==null&&ya==="keyboard"&&es(String(Vi))},[_n,Fr]),As=function(ea,Ki,ki){var ya=function(){var Ps,Fi=Ca(ea);return[Cn?{label:Fi==null?void 0:Fi[Bi.label],value:ea,key:(Ps=Fi==null?void 0:Fi.key)!==null&&Ps!==void 0?Ps:ea}:ea,Z(Fi)]};if(Ki&&Sn){var Pa=ya(),Os=(0,ie.Z)(Pa,2),us=Os[0],bs=Os[1];Sn(us,bs)}else if(!Ki&&Un&&ki!=="clear"){var ts=ya(),Eo=(0,ie.Z)(ts,2),po=Eo[0],qs=Eo[1];Un(po,qs)}},xo=br(function(Vi,ea){var Ki,ki=ri?ea.selected:!0;ki?Ki=ri?[].concat((0,Fe.Z)(na),[Vi]):[Vi]:Ki=na.filter(function(ya){return ya.value!==Vi}),Ni(Ki),As(Vi,ki),Fr==="combobox"?es(""):(!Be||Tn)&&(gn(""),es(""))}),as=function(ea,Ki){Ni(ea);var ki=Ki.type,ya=Ki.values;(ki==="remove"||ki==="clear")&&ya.forEach(function(Pa){As(Pa.value,!1,ki)})},Yn=function(ea,Ki){if(gn(ea),es(null),Ki.source==="submit"){var ki=(ea||"").trim();if(ki){var ya=Array.from(new Set([].concat((0,Fe.Z)(oi),[ki])));Ni(ya),As(ki,!0),gn("")}return}Ki.source!=="blur"&&(Fr==="combobox"&&Ni(ea),Kr==null||Kr(ea))},Da=function(ea){var Ki=ea;Fr!=="tags"&&(Ki=ea.map(function(ya){var Pa=Zn.get(ya);return Pa==null?void 0:Pa.value}).filter(function(ya){return ya!==void 0}));var ki=Array.from(new Set([].concat((0,Fe.Z)(oi),(0,Fe.Z)(Ki))));Ni(ki),ki.forEach(function(ya){As(ya,!0)})},io=o.useMemo(function(){var Vi=nn!==!1&&Ui!==!1;return(0,Me.Z)((0,Me.Z)({},Ht),{},{flattenOptions:Fa,onActiveValue:wo,defaultActiveFirstOption:js,onSelect:xo,menuItemSelectedIcon:cn,rawValues:oi,fieldNames:Bi,virtual:Vi,direction:jn,listHeight:ui,listItemHeight:Qi,childrenAsData:bi})},[Ht,Fa,wo,js,xo,cn,oi,Bi,nn,Ui,ui,Qi,bi]);return o.createElement(qt.Provider,{value:io},o.createElement(Ge,(0,xe.Z)({},hi,{id:ii,prefixCls:an,ref:Et,omitDomProps:$i,mode:Fr,displayValues:ys,onDisplayValuesChange:as,direction:jn,searchValue:xi,onSearch:Yn,autoClearSearchValue:Tn,onSearchSplit:Da,dropdownMatchSelectWidth:Ui,OptionList:on,emptyOptions:!Fa.length,activeValue:is,activeDescendantId:"".concat(ii,"_list_").concat(aa)})))}),Xt=zn;Xt.Option=Qe,Xt.OptGroup=ue;var $r=Xt,en=$r},9296:function(yn,Wt,g){"use strict";g.r(Wt),g.d(Wt,{ResizableTextArea:function(){return Le},default:function(){return fe}});var xe=g(96663),Fe=g(44127),se=g(90493),Me=g(20135),ie=g(72071),Y=g(6620),O=g(19127),I=g(92310),n=g.n(I),o=g(93681),L=g(5643),p=g(18929),a=g(59301),d=g(29301),m=g(34280),S=g(16089),$=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,F=["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"],H={},V;function ee(ye){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=ye.getAttribute("id")||ye.getAttribute("data-reactid")||ye.getAttribute("name");if(_&&H[N])return H[N];var X=window.getComputedStyle(ye),he=X.getPropertyValue("box-sizing")||X.getPropertyValue("-moz-box-sizing")||X.getPropertyValue("-webkit-box-sizing"),qe=parseFloat(X.getPropertyValue("padding-bottom"))+parseFloat(X.getPropertyValue("padding-top")),st=parseFloat(X.getPropertyValue("border-bottom-width"))+parseFloat(X.getPropertyValue("border-top-width")),nt=F.map(function(sr){return"".concat(sr,":").concat(X.getPropertyValue(sr))}).join(";"),Rt={sizingStyle:nt,paddingSize:qe,borderSize:st,boxSizing:he};return _&&N&&(H[N]=Rt),Rt}function B(ye){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;V||(V=document.createElement("textarea"),V.setAttribute("tab-index","-1"),V.setAttribute("aria-hidden","true"),document.body.appendChild(V)),ye.getAttribute("wrap")?V.setAttribute("wrap",ye.getAttribute("wrap")):V.removeAttribute("wrap");var he=ee(ye,_),qe=he.paddingSize,st=he.borderSize,nt=he.boxSizing,Rt=he.sizingStyle;V.setAttribute("style","".concat(Rt,";").concat($)),V.value=ye.value||ye.placeholder||"";var sr=void 0,Jt=void 0,We,Er=V.scrollHeight;if(nt==="border-box"?Er+=st:nt==="content-box"&&(Er-=qe),N!==null||X!==null){V.value=" ";var xr=V.scrollHeight-qe;N!==null&&(sr=xr*N,nt==="border-box"&&(sr=sr+qe+st),Er=Math.max(sr,Er)),X!==null&&(Jt=xr*X,nt==="border-box"&&(Jt=Jt+qe+st),We=Er>Jt?"":"hidden",Er=Math.min(Jt,Er))}var Wr={height:Er,overflowY:We,resize:"none"};return sr&&(Wr.minHeight=sr),Jt&&(Wr.maxHeight=Jt),Wr}var G=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,J=1,we=2,Ce=a.forwardRef(function(ye,_){var N=ye,X=N.prefixCls,he=N.onPressEnter,qe=N.defaultValue,st=N.value,nt=N.autoSize,Rt=N.onResize,sr=N.className,Jt=N.style,We=N.disabled,Er=N.onChange,xr=N.onInternalAutoSize,Wr=(0,Y.Z)(N,G),Cr=(0,p.Z)(qe,{value:st,postState:function(ue){return ue!=null?ue:""}}),_e=(0,ie.Z)(Cr,2),kt=_e[0],K=_e[1],y=function(ue){K(ue.target.value),Er==null||Er(ue)},h=a.useRef();a.useImperativeHandle(_,function(){return{textArea:h.current}});var D=a.useMemo(function(){return nt&&(0,Me.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),Ae=(0,ie.Z)(D,2),Z=Ae[0],k=Ae[1],te=!!nt,Se=function(){try{if(document.activeElement===h.current){var ue=h.current,rr=ue.selectionStart,Qe=ue.selectionEnd,ot=ue.scrollTop;h.current.setSelectionRange(rr,Qe),h.current.scrollTop=ot}}catch(Jr){}},Be=a.useState(we),Ie=(0,ie.Z)(Be,2),Ge=Ie[0],mt=Ie[1],$e=a.useState(),tt=(0,ie.Z)($e,2),dt=tt[0],Ze=tt[1],Ke=function(){mt(le)};(0,m.Z)(function(){te&&Ke()},[st,Z,k,te]),(0,m.Z)(function(){if(Ge===le)mt(J);else if(Ge===J){var re=B(h.current,!1,Z,k);mt(we),Ze(re)}else Se()},[Ge]);var Bt=a.useRef(),Vt=function(){S.Z.cancel(Bt.current)},Ut=function(ue){Ge===we&&(Rt==null||Rt(ue),nt&&(Vt(),Bt.current=(0,S.Z)(function(){Ke()})))};a.useEffect(function(){return Vt},[]);var mr=te?dt:null,br=(0,Fe.Z)((0,Fe.Z)({},Jt),mr);return(Ge===le||Ge===J)&&(br.overflowY="hidden",br.overflowX="hidden"),a.createElement(d.Z,{onResize:Ut,disabled:!(nt||Rt)},a.createElement("textarea",(0,xe.Z)({},Wr,{ref:h,style:br,className:n()(X,sr,(0,se.Z)({},"".concat(X,"-disabled"),We)),disabled:We,value:kt,onChange:y})))}),Le=Ce,ae=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function pe(ye,_){return(0,O.Z)(ye||"").slice(0,_).join("")}function T(ye,_,N,X){var he=N;return ye?he=pe(N,X):(0,O.Z)(_||"").length<N.length&&(0,O.Z)(N||"").length>X&&(he=_),he}var Ee=a.forwardRef(function(ye,_){var N,X=ye.defaultValue,he=ye.value,qe=ye.onFocus,st=ye.onBlur,nt=ye.onChange,Rt=ye.allowClear,sr=ye.maxLength,Jt=ye.onCompositionStart,We=ye.onCompositionEnd,Er=ye.suffix,xr=ye.prefixCls,Wr=xr===void 0?"rc-textarea":xr,Cr=ye.classes,_e=ye.showCount,kt=ye.className,K=ye.style,y=ye.disabled,h=ye.hidden,D=ye.classNames,Ae=ye.styles,Z=ye.onResize,k=(0,Y.Z)(ye,ae),te=(0,p.Z)(X,{value:he,defaultValue:X}),Se=(0,ie.Z)(te,2),Be=Se[0],Ie=Se[1],Ge=(0,a.useRef)(null),mt=a.useState(!1),$e=(0,ie.Z)(mt,2),tt=$e[0],dt=$e[1],Ze=a.useState(!1),Ke=(0,ie.Z)(Ze,2),Bt=Ke[0],Vt=Ke[1],Ut=a.useRef(),mr=a.useRef(0),br=a.useState(null),re=(0,ie.Z)(br,2),ue=re[0],rr=re[1],Qe=function(){var Dn;(Dn=Ge.current)===null||Dn===void 0||Dn.textArea.focus()};(0,a.useImperativeHandle)(_,function(){return{resizableTextArea:Ge.current,focus:Qe,blur:function(){var Dn;(Dn=Ge.current)===null||Dn===void 0||Dn.textArea.blur()}}}),(0,a.useEffect)(function(){dt(function($i){return!y&&$i})},[y]);var ot=Number(sr)>0,Jr=function(Dn){Vt(!0),Ut.current=Be,mr.current=Dn.currentTarget.selectionStart,Jt==null||Jt(Dn)},Tt=function(Dn){Vt(!1);var zn=Dn.currentTarget.value;if(ot){var Xt,$r=mr.current>=sr+1||mr.current===((Xt=Ut.current)===null||Xt===void 0?void 0:Xt.length);zn=T($r,Ut.current,zn,sr)}zn!==Be&&(Ie(zn),(0,L.rJ)(Dn.currentTarget,Dn,nt,zn)),We==null||We(Dn)},Kt=function(Dn){var zn=Dn.target.value;if(!Bt&&ot){var Xt=Dn.target.selectionStart>=sr+1||Dn.target.selectionStart===zn.length||!Dn.target.selectionStart;zn=T(Xt,Be,zn,sr)}Ie(zn),(0,L.rJ)(Dn.currentTarget,Dn,nt,zn)},qt=function(Dn){var zn=k.onPressEnter,Xt=k.onKeyDown;Dn.key==="Enter"&&zn&&zn(Dn),Xt==null||Xt(Dn)},et=function(Dn){dt(!0),qe==null||qe(Dn)},ft=function(Dn){dt(!1),st==null||st(Dn)},ht=function(Dn){var zn;Ie(""),Qe(),(0,L.rJ)((zn=Ge.current)===null||zn===void 0?void 0:zn.textArea,Dn,nt)},Gt=(0,L.D7)(Be);!Bt&&ot&&he==null&&(Gt=pe(Gt,sr));var Oe=Er,on;if(_e){var Mt=(0,O.Z)(Gt).length;(0,Me.Z)(_e)==="object"?on=_e.formatter({value:Gt,count:Mt,maxLength:sr}):on="".concat(Mt).concat(ot?" / ".concat(sr):""),Oe=a.createElement(a.Fragment,null,Oe,a.createElement("span",{className:n()("".concat(Wr,"-data-count"),D==null?void 0:D.count),style:Ae==null?void 0:Ae.count},on))}var On=function(Dn){var zn;Z==null||Z(Dn),(zn=Ge.current)!==null&&zn!==void 0&&zn.textArea.style.height&&rr(!0)},Xn=!k.autoSize&&!_e&&!Rt,yi=a.createElement(o.BaseInput,{value:Gt,allowClear:Rt,handleReset:ht,suffix:Oe,prefixCls:Wr,classes:{affixWrapper:n()(Cr==null?void 0:Cr.affixWrapper,(N={},(0,se.Z)(N,"".concat(Wr,"-show-count"),_e),(0,se.Z)(N,"".concat(Wr,"-textarea-allow-clear"),Rt),N))},disabled:y,focused:tt,className:kt,style:(0,Fe.Z)((0,Fe.Z)({},K),ue&&!Xn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof on=="string"?on:void 0}},hidden:h,inputElement:a.createElement(Le,(0,xe.Z)({},k,{onKeyDown:qt,onChange:Kt,onFocus:et,onBlur:ft,onCompositionStart:Jr,onCompositionEnd:Tt,className:D==null?void 0:D.textarea,style:(0,Fe.Z)((0,Fe.Z)({},Ae==null?void 0:Ae.textarea),{},{resize:K==null?void 0:K.resize}),disabled:y,prefixCls:Wr,onResize:On,ref:Ge}))});return yi}),oe=Ee,fe=oe},55477:function(yn,Wt,g){"use strict";g.d(Wt,{G:function(){return a},Z:function(){return $}});var xe=g(96663),Fe=g(44127),se=g(6620),Me=g(35593),ie=g(59301),Y={shiftX:64,adjustY:1},O={adjustX:1,shiftY:!0},I=[0,0],n={left:{points:["cr","cl"],overflow:O,offset:[-4,0],targetOffset:I},right:{points:["cl","cr"],overflow:O,offset:[4,0],targetOffset:I},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:I},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:I},topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:I},leftTop:{points:["tr","tl"],overflow:O,offset:[-4,0],targetOffset:I},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:I},rightTop:{points:["tl","tr"],overflow:O,offset:[4,0],targetOffset:I},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:I},rightBottom:{points:["bl","br"],overflow:O,offset:[4,0],targetOffset:I},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:I},leftBottom:{points:["br","bl"],overflow:O,offset:[-4,0],targetOffset:I}},o=null,L=g(92310),p=g.n(L);function a(F){var H=F.children,V=F.prefixCls,ee=F.id,B=F.overlayInnerStyle,G=F.className,le=F.style;return ie.createElement("div",{className:p()("".concat(V,"-content"),G),style:le},ie.createElement("div",{className:"".concat(V,"-inner"),id:ee,role:"tooltip",style:B},typeof H=="function"?H():H))}var d=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],m=function(H,V){var ee=H.overlayClassName,B=H.trigger,G=B===void 0?["hover"]:B,le=H.mouseEnterDelay,J=le===void 0?0:le,we=H.mouseLeaveDelay,Ce=we===void 0?.1:we,Le=H.overlayStyle,ae=H.prefixCls,pe=ae===void 0?"rc-tooltip":ae,T=H.children,Ee=H.onVisibleChange,oe=H.afterVisibleChange,fe=H.transitionName,ye=H.animation,_=H.motion,N=H.placement,X=N===void 0?"right":N,he=H.align,qe=he===void 0?{}:he,st=H.destroyTooltipOnHide,nt=st===void 0?!1:st,Rt=H.defaultVisible,sr=H.getTooltipContainer,Jt=H.overlayInnerStyle,We=H.arrowContent,Er=H.overlay,xr=H.id,Wr=H.showArrow,Cr=Wr===void 0?!0:Wr,_e=(0,se.Z)(H,d),kt=(0,ie.useRef)(null);(0,ie.useImperativeHandle)(V,function(){return kt.current});var K=(0,Fe.Z)({},_e);"visible"in H&&(K.popupVisible=H.visible);var y=function(){return ie.createElement(a,{key:"content",prefixCls:pe,id:xr,overlayInnerStyle:Jt},Er)};return ie.createElement(Me.Z,(0,xe.Z)({popupClassName:ee,prefixCls:pe,popup:y,action:G,builtinPlacements:n,popupPlacement:X,ref:kt,popupAlign:qe,getPopupContainer:sr,onPopupVisibleChange:Ee,afterPopupVisibleChange:oe,popupTransitionName:fe,popupAnimation:ye,popupMotion:_,defaultPopupVisible:Rt,autoDestroy:nt,mouseLeaveDelay:Ce,popupStyle:Le,mouseEnterDelay:J,arrow:Cr},K),T)},S=(0,ie.forwardRef)(m),$=S},39417:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return J}});var xe=g(96663),Fe=g(90493),se=g(6620),Me=g(44127),ie=g(52884),Y=g(95727),O=g(89866),I=g(65711),n=g(85745),o=g(92310),L=g.n(o),p=g(26112),a=g(59301),d=g(39378),m=function(Ce){for(var Le=Ce.prefixCls,ae=Ce.level,pe=Ce.isStart,T=Ce.isEnd,Ee="".concat(Le,"-indent-unit"),oe=[],fe=0;fe<ae;fe+=1){var ye;oe.push(a.createElement("span",{key:fe,className:L()(Ee,(ye={},(0,Fe.Z)(ye,"".concat(Ee,"-start"),pe[fe]),(0,Fe.Z)(ye,"".concat(Ee,"-end"),T[fe]),ye))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-indent")},oe)},S=a.memo(m),$=g(67841),F=g(71430),H=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],V="open",ee="close",B="---",G=function(we){(0,I.Z)(Le,we);var Ce=(0,n.Z)(Le);function Le(){var ae;(0,ie.Z)(this,Le);for(var pe=arguments.length,T=new Array(pe),Ee=0;Ee<pe;Ee++)T[Ee]=arguments[Ee];return ae=Ce.call.apply(Ce,[this].concat(T)),ae.state={dragNodeHighlight:!1},ae.selectHandle=void 0,ae.cacheIndent=void 0,ae.onSelectorClick=function(oe){var fe=ae.props.context.onNodeClick;fe(oe,(0,F.F)(ae.props)),ae.isSelectable()?ae.onSelect(oe):ae.onCheck(oe)},ae.onSelectorDoubleClick=function(oe){var fe=ae.props.context.onNodeDoubleClick;fe(oe,(0,F.F)(ae.props))},ae.onSelect=function(oe){if(!ae.isDisabled()){var fe=ae.props.context.onNodeSelect;fe(oe,(0,F.F)(ae.props))}},ae.onCheck=function(oe){if(!ae.isDisabled()){var fe=ae.props,ye=fe.disableCheckbox,_=fe.checked,N=ae.props.context.onNodeCheck;if(!(!ae.isCheckable()||ye)){var X=!_;N(oe,(0,F.F)(ae.props),X)}}},ae.onMouseEnter=function(oe){var fe=ae.props.context.onNodeMouseEnter;fe(oe,(0,F.F)(ae.props))},ae.onMouseLeave=function(oe){var fe=ae.props.context.onNodeMouseLeave;fe(oe,(0,F.F)(ae.props))},ae.onContextMenu=function(oe){var fe=ae.props.context.onNodeContextMenu;fe(oe,(0,F.F)(ae.props))},ae.onDragStart=function(oe){var fe=ae.props.context.onNodeDragStart;oe.stopPropagation(),ae.setState({dragNodeHighlight:!0}),fe(oe,(0,O.Z)(ae));try{oe.dataTransfer.setData("text/plain","")}catch(ye){}},ae.onDragEnter=function(oe){var fe=ae.props.context.onNodeDragEnter;oe.preventDefault(),oe.stopPropagation(),fe(oe,(0,O.Z)(ae))},ae.onDragOver=function(oe){var fe=ae.props.context.onNodeDragOver;oe.preventDefault(),oe.stopPropagation(),fe(oe,(0,O.Z)(ae))},ae.onDragLeave=function(oe){var fe=ae.props.context.onNodeDragLeave;oe.stopPropagation(),fe(oe,(0,O.Z)(ae))},ae.onDragEnd=function(oe){var fe=ae.props.context.onNodeDragEnd;oe.stopPropagation(),ae.setState({dragNodeHighlight:!1}),fe(oe,(0,O.Z)(ae))},ae.onDrop=function(oe){var fe=ae.props.context.onNodeDrop;oe.preventDefault(),oe.stopPropagation(),ae.setState({dragNodeHighlight:!1}),fe(oe,(0,O.Z)(ae))},ae.onExpand=function(oe){var fe=ae.props,ye=fe.loading,_=fe.context.onNodeExpand;ye||_(oe,(0,F.F)(ae.props))},ae.setSelectHandle=function(oe){ae.selectHandle=oe},ae.getNodeState=function(){var oe=ae.props.expanded;return ae.isLeaf()?null:oe?V:ee},ae.hasChildren=function(){var oe=ae.props.eventKey,fe=ae.props.context.keyEntities,ye=(0,$.Z)(fe,oe)||{},_=ye.children;return!!(_||[]).length},ae.isLeaf=function(){var oe=ae.props,fe=oe.isLeaf,ye=oe.loaded,_=ae.props.context.loadData,N=ae.hasChildren();return fe===!1?!1:fe||!_&&!N||_&&ye&&!N},ae.isDisabled=function(){var oe=ae.props.disabled,fe=ae.props.context.disabled;return!!(fe||oe)},ae.isCheckable=function(){var oe=ae.props.checkable,fe=ae.props.context.checkable;return!fe||oe===!1?!1:fe},ae.syncLoadData=function(oe){var fe=oe.expanded,ye=oe.loading,_=oe.loaded,N=ae.props.context,X=N.loadData,he=N.onNodeLoad;ye||X&&fe&&!ae.isLeaf()&&!ae.hasChildren()&&!_&&he((0,F.F)(ae.props))},ae.isDraggable=function(){var oe=ae.props,fe=oe.data,ye=oe.context.draggable;return!!(ye&&(!ye.nodeDraggable||ye.nodeDraggable(fe)))},ae.renderDragHandler=function(){var oe=ae.props.context,fe=oe.draggable,ye=oe.prefixCls;return fe!=null&&fe.icon?a.createElement("span",{className:"".concat(ye,"-draggable-icon")},fe.icon):null},ae.renderSwitcherIconDom=function(oe){var fe=ae.props.switcherIcon,ye=ae.props.context.switcherIcon,_=fe||ye;return typeof _=="function"?_((0,Me.Z)((0,Me.Z)({},ae.props),{},{isLeaf:oe})):_},ae.renderSwitcher=function(){var oe=ae.props.expanded,fe=ae.props.context.prefixCls;if(ae.isLeaf()){var ye=ae.renderSwitcherIconDom(!0);return ye!==!1?a.createElement("span",{className:L()("".concat(fe,"-switcher"),"".concat(fe,"-switcher-noop"))},ye):null}var _=L()("".concat(fe,"-switcher"),"".concat(fe,"-switcher_").concat(oe?V:ee)),N=ae.renderSwitcherIconDom(!1);return N!==!1?a.createElement("span",{onClick:ae.onExpand,className:_},N):null},ae.renderCheckbox=function(){var oe=ae.props,fe=oe.checked,ye=oe.halfChecked,_=oe.disableCheckbox,N=ae.props.context.prefixCls,X=ae.isDisabled(),he=ae.isCheckable();if(!he)return null;var qe=typeof he!="boolean"?he:null;return a.createElement("span",{className:L()("".concat(N,"-checkbox"),fe&&"".concat(N,"-checkbox-checked"),!fe&&ye&&"".concat(N,"-checkbox-indeterminate"),(X||_)&&"".concat(N,"-checkbox-disabled")),onClick:ae.onCheck},qe)},ae.renderIcon=function(){var oe=ae.props.loading,fe=ae.props.context.prefixCls;return a.createElement("span",{className:L()("".concat(fe,"-iconEle"),"".concat(fe,"-icon__").concat(ae.getNodeState()||"docu"),oe&&"".concat(fe,"-icon_loading"))})},ae.renderSelector=function(){var oe=ae.state.dragNodeHighlight,fe=ae.props,ye=fe.title,_=ye===void 0?B:ye,N=fe.selected,X=fe.icon,he=fe.loading,qe=fe.data,st=ae.props.context,nt=st.prefixCls,Rt=st.showIcon,sr=st.icon,Jt=st.loadData,We=st.titleRender,Er=ae.isDisabled(),xr="".concat(nt,"-node-content-wrapper"),Wr;if(Rt){var Cr=X||sr;Wr=Cr?a.createElement("span",{className:L()("".concat(nt,"-iconEle"),"".concat(nt,"-icon__customize"))},typeof Cr=="function"?Cr(ae.props):Cr):ae.renderIcon()}else Jt&&he&&(Wr=ae.renderIcon());var _e;typeof _=="function"?_e=_(qe):We?_e=We(qe):_e=_;var kt=a.createElement("span",{className:"".concat(nt,"-title")},_e);return a.createElement("span",{ref:ae.setSelectHandle,title:typeof _=="string"?_:"",className:L()("".concat(xr),"".concat(xr,"-").concat(ae.getNodeState()||"normal"),!Er&&(N||oe)&&"".concat(nt,"-node-selected")),onMouseEnter:ae.onMouseEnter,onMouseLeave:ae.onMouseLeave,onContextMenu:ae.onContextMenu,onClick:ae.onSelectorClick,onDoubleClick:ae.onSelectorDoubleClick},Wr,kt,ae.renderDropIndicator())},ae.renderDropIndicator=function(){var oe=ae.props,fe=oe.disabled,ye=oe.eventKey,_=ae.props.context,N=_.draggable,X=_.dropLevelOffset,he=_.dropPosition,qe=_.prefixCls,st=_.indent,nt=_.dropIndicatorRender,Rt=_.dragOverNodeKey,sr=_.direction,Jt=!!N,We=!fe&&Jt&&Rt===ye,Er=st!=null?st:ae.cacheIndent;return ae.cacheIndent=st,We?nt({dropPosition:he,dropLevelOffset:X,indent:Er,prefixCls:qe,direction:sr}):null},ae}return(0,Y.Z)(Le,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var pe=this.props.selectable,T=this.props.context.selectable;return typeof pe=="boolean"?pe:T}},{key:"render",value:function(){var pe,T=this.props,Ee=T.eventKey,oe=T.className,fe=T.style,ye=T.dragOver,_=T.dragOverGapTop,N=T.dragOverGapBottom,X=T.isLeaf,he=T.isStart,qe=T.isEnd,st=T.expanded,nt=T.selected,Rt=T.checked,sr=T.halfChecked,Jt=T.loading,We=T.domRef,Er=T.active,xr=T.data,Wr=T.onMouseMove,Cr=T.selectable,_e=(0,se.Z)(T,H),kt=this.props.context,K=kt.prefixCls,y=kt.filterTreeNode,h=kt.keyEntities,D=kt.dropContainerKey,Ae=kt.dropTargetKey,Z=kt.draggingNodeKey,k=this.isDisabled(),te=(0,p.Z)(_e,{aria:!0,data:!0}),Se=(0,$.Z)(h,Ee)||{},Be=Se.level,Ie=qe[qe.length-1],Ge=this.isDraggable(),mt=!k&&Ge,$e=Z===Ee,tt=Cr!==void 0?{"aria-selected":!!Cr}:void 0;return a.createElement("div",(0,xe.Z)({ref:We,className:L()(oe,"".concat(K,"-treenode"),(pe={},(0,Fe.Z)(pe,"".concat(K,"-treenode-disabled"),k),(0,Fe.Z)(pe,"".concat(K,"-treenode-switcher-").concat(st?"open":"close"),!X),(0,Fe.Z)(pe,"".concat(K,"-treenode-checkbox-checked"),Rt),(0,Fe.Z)(pe,"".concat(K,"-treenode-checkbox-indeterminate"),sr),(0,Fe.Z)(pe,"".concat(K,"-treenode-selected"),nt),(0,Fe.Z)(pe,"".concat(K,"-treenode-loading"),Jt),(0,Fe.Z)(pe,"".concat(K,"-treenode-active"),Er),(0,Fe.Z)(pe,"".concat(K,"-treenode-leaf-last"),Ie),(0,Fe.Z)(pe,"".concat(K,"-treenode-draggable"),Ge),(0,Fe.Z)(pe,"dragging",$e),(0,Fe.Z)(pe,"drop-target",Ae===Ee),(0,Fe.Z)(pe,"drop-container",D===Ee),(0,Fe.Z)(pe,"drag-over",!k&&ye),(0,Fe.Z)(pe,"drag-over-gap-top",!k&&_),(0,Fe.Z)(pe,"drag-over-gap-bottom",!k&&N),(0,Fe.Z)(pe,"filter-node",y&&y((0,F.F)(this.props))),pe)),style:fe,draggable:mt,"aria-grabbed":$e,onDragStart:mt?this.onDragStart:void 0,onDragEnter:Ge?this.onDragEnter:void 0,onDragOver:Ge?this.onDragOver:void 0,onDragLeave:Ge?this.onDragLeave:void 0,onDrop:Ge?this.onDrop:void 0,onDragEnd:Ge?this.onDragEnd:void 0,onMouseMove:Wr},tt,te),a.createElement(S,{prefixCls:K,level:Be,isStart:he,isEnd:qe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Le}(a.Component),le=function(Ce){return a.createElement(d.k.Consumer,null,function(Le){return a.createElement(G,(0,xe.Z)({},Ce,{context:Le}))})};le.displayName="TreeNode",le.isTreeNode=1;var J=le},39378:function(yn,Wt,g){"use strict";g.d(Wt,{k:function(){return Fe}});var xe=g(59301),Fe=xe.createContext(null)},43858:function(yn,Wt,g){"use strict";g.d(Wt,{O:function(){return J.Z},Z:function(){return kt}});var xe=g(96663),Fe=g(90493),se=g(20135),Me=g(44127),ie=g(19127),Y=g(52884),O=g(95727),I=g(89866),n=g(65711),o=g(85745),L=g(92310),p=g.n(L),a=g(10228),d=g(26112),m=g(48736),S=g(59301),$=g(39378);function F(K){var y=K.dropPosition,h=K.dropLevelOffset,D=K.indent,Ae={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(y){case-1:Ae.top=0,Ae.left=-h*D;break;case 1:Ae.bottom=0,Ae.left=-h*D;break;case 0:Ae.bottom=0,Ae.left=D;break}return S.createElement("div",{style:Ae})}function H(K){if(K==null)throw new TypeError("Cannot destructure "+K)}var V=g(72071),ee=g(6620),B=g(34280),G=g(45680),le=g(77900),J=g(39417);function we(K,y){var h=S.useState(!1),D=(0,V.Z)(h,2),Ae=D[0],Z=D[1];S.useLayoutEffect(function(){if(Ae)return K(),function(){y()}},[Ae]),S.useLayoutEffect(function(){return Z(!0),function(){Z(!1)}},[])}var Ce=g(71430),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ae=function(y,h){var D=y.className,Ae=y.style,Z=y.motion,k=y.motionNodes,te=y.motionType,Se=y.onMotionStart,Be=y.onMotionEnd,Ie=y.active,Ge=y.treeNodeRequiredProps,mt=(0,ee.Z)(y,Le),$e=S.useState(!0),tt=(0,V.Z)($e,2),dt=tt[0],Ze=tt[1],Ke=S.useContext($.k),Bt=Ke.prefixCls,Vt=k&&te!=="hide";(0,B.Z)(function(){k&&Vt!==dt&&Ze(Vt)},[k]);var Ut=function(){k&&Se()},mr=S.useRef(!1),br=function(){k&&!mr.current&&(mr.current=!0,Be())};we(Ut,br);var re=function(rr){Vt===rr&&br()};return k?S.createElement(le.default,(0,xe.Z)({ref:h,visible:dt},Z,{motionAppear:te==="show",onVisibleChanged:re}),function(ue,rr){var Qe=ue.className,ot=ue.style;return S.createElement("div",{ref:rr,className:p()("".concat(Bt,"-treenode-motion"),Qe),style:ot},k.map(function(Jr){var Tt=(0,xe.Z)({},(H(Jr.data),Jr.data)),Kt=Jr.title,qt=Jr.key,et=Jr.isStart,ft=Jr.isEnd;delete Tt.children;var ht=(0,Ce.H8)(qt,Ge);return S.createElement(J.Z,(0,xe.Z)({},Tt,ht,{title:Kt,active:Ie,data:Jr.data,key:qt,isStart:et,isEnd:ft}))}))}):S.createElement(J.Z,(0,xe.Z)({domRef:h,className:D,style:Ae},mt,{active:Ie}))};ae.displayName="MotionTreeNode";var pe=S.forwardRef(ae),T=pe;function Ee(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=K.length,D=y.length;if(Math.abs(h-D)!==1)return{add:!1,key:null};function Ae(Z,k){var te=new Map;Z.forEach(function(Be){te.set(Be,!0)});var Se=k.filter(function(Be){return!te.has(Be)});return Se.length===1?Se[0]:null}return h<D?{add:!0,key:Ae(K,y)}:{add:!1,key:Ae(y,K)}}function oe(K,y,h){var D=K.findIndex(function(te){return te.key===h}),Ae=K[D+1],Z=y.findIndex(function(te){return te.key===h});if(Ae){var k=y.findIndex(function(te){return te.key===Ae.key});return y.slice(Z+1,k)}return y.slice(Z+1)}var fe=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ye={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_=function(){},N="RC_TREE_MOTION_".concat(Math.random()),X={key:N},he={key:N,level:0,index:0,pos:"0",node:X,nodes:[X]},qe={parent:null,children:[],pos:he.pos,data:X,title:null,key:N,isStart:[],isEnd:[]};function st(K,y,h,D){return y===!1||!h?K:K.slice(0,Math.ceil(h/D)+1)}function nt(K){var y=K.key,h=K.pos;return(0,Ce.km)(y,h)}function Rt(K){for(var y=String(K.data.key),h=K;h.parent;)h=h.parent,y="".concat(h.data.key," > ").concat(y);return y}var sr=S.forwardRef(function(K,y){var h=K.prefixCls,D=K.data,Ae=K.selectable,Z=K.checkable,k=K.expandedKeys,te=K.selectedKeys,Se=K.checkedKeys,Be=K.loadedKeys,Ie=K.loadingKeys,Ge=K.halfCheckedKeys,mt=K.keyEntities,$e=K.disabled,tt=K.dragging,dt=K.dragOverNodeKey,Ze=K.dropPosition,Ke=K.motion,Bt=K.height,Vt=K.itemHeight,Ut=K.virtual,mr=K.focusable,br=K.activeItem,re=K.focused,ue=K.tabIndex,rr=K.onKeyDown,Qe=K.onFocus,ot=K.onBlur,Jr=K.onActiveChange,Tt=K.onListChangeStart,Kt=K.onListChangeEnd,qt=(0,ee.Z)(K,fe),et=S.useRef(null),ft=S.useRef(null);S.useImperativeHandle(y,function(){return{scrollTo:function(Vr){et.current.scrollTo(Vr)},getIndentWidth:function(){return ft.current.offsetWidth}}});var ht=S.useState(k),Gt=(0,V.Z)(ht,2),Oe=Gt[0],on=Gt[1],Mt=S.useState(D),On=(0,V.Z)(Mt,2),Xn=On[0],yi=On[1],$i=S.useState(D),Dn=(0,V.Z)($i,2),zn=Dn[0],Xt=Dn[1],$r=S.useState([]),en=(0,V.Z)($r,2),Pt=en[0],Et=en[1],_r=S.useState(null),Fr=(0,V.Z)(_r,2),In=Fr[0],an=Fr[1],_n=S.useRef(D);_n.current=D;function mn(){var Kr=_n.current;yi(Kr),Xt(Kr),Et([]),an(null),Kt()}(0,B.Z)(function(){on(k);var Kr=Ee(Oe,k);if(Kr.key!==null)if(Kr.add){var Vr=Xn.findIndex(function(di){var bn=di.key;return bn===Kr.key}),Tn=st(oe(Xn,D,Kr.key),Ut,Bt,Vt),Sn=Xn.slice();Sn.splice(Vr+1,0,qe),Xt(Sn),Et(Tn),an("show")}else{var Un=D.findIndex(function(di){var bn=di.key;return bn===Kr.key}),Vn=st(oe(D,Xn,Kr.key),Ut,Bt,Vt),Ui=D.slice();Ui.splice(Un+1,0,qe),Xt(Ui),Et(Vn),an("hide")}else Xn!==D&&(yi(D),Xt(D))},[k,D]),S.useEffect(function(){tt||mn()},[tt]);var Mn=Ke?zn:D,ei={expandedKeys:k,selectedKeys:te,loadedKeys:Be,loadingKeys:Ie,checkedKeys:Se,halfCheckedKeys:Ge,dragOverNodeKey:dt,dropPosition:Ze,keyEntities:mt};return S.createElement(S.Fragment,null,re&&br&&S.createElement("span",{style:ye,"aria-live":"assertive"},Rt(br)),S.createElement("div",null,S.createElement("input",{style:ye,disabled:mr===!1||$e,tabIndex:mr!==!1?ue:null,onKeyDown:rr,onFocus:Qe,onBlur:ot,value:"",onChange:_,"aria-label":"for screen reader"})),S.createElement("div",{className:"".concat(h,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},S.createElement("div",{className:"".concat(h,"-indent")},S.createElement("div",{ref:ft,className:"".concat(h,"-indent-unit")}))),S.createElement(G.Z,(0,xe.Z)({},qt,{data:Mn,itemKey:nt,height:Bt,fullHeight:!1,virtual:Ut,itemHeight:Vt,prefixCls:"".concat(h,"-list"),ref:et,onVisibleChange:function(Vr,Tn){var Sn=new Set(Vr),Un=Tn.filter(function(Vn){return!Sn.has(Vn)});Un.some(function(Vn){return nt(Vn)===N})&&mn()}}),function(Kr){var Vr=Kr.pos,Tn=(0,xe.Z)({},(H(Kr.data),Kr.data)),Sn=Kr.title,Un=Kr.key,Vn=Kr.isStart,Ui=Kr.isEnd,di=(0,Ce.km)(Un,Vr);delete Tn.key,delete Tn.children;var bn=(0,Ce.H8)(di,ei);return S.createElement(T,(0,xe.Z)({},Tn,bn,{title:Sn,active:!!br&&Un===br.key,pos:Vr,data:Kr.data,isStart:Vn,isEnd:Ui,motion:Ke,motionNodes:Un===N?Pt:null,motionType:In,onMotionStart:Tt,onMotionEnd:mn,treeNodeRequiredProps:ei,onMouseMove:function(){Jr(null)}}))}))});sr.displayName="NodeList";var Jt=sr,We=g(35654),Er=g(90782),xr=g(67841),Wr=10,Cr=function(K){(0,n.Z)(h,K);var y=(0,o.Z)(h);function h(){var D;(0,Y.Z)(this,h);for(var Ae=arguments.length,Z=new Array(Ae),k=0;k<Ae;k++)Z[k]=arguments[k];return D=y.call.apply(y,[this].concat(Z)),D.destroyed=!1,D.delayedDragEnterLogic=void 0,D.loadingRetryTimes={},D.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ce.w$)()},D.dragStartMousePosition=null,D.dragNode=void 0,D.currentMouseOverDroppableNodeKey=null,D.listRef=S.createRef(),D.onNodeDragStart=function(te,Se){var Be=D.state,Ie=Be.expandedKeys,Ge=Be.keyEntities,mt=D.props.onDragStart,$e=Se.props.eventKey;D.dragNode=Se,D.dragStartMousePosition={x:te.clientX,y:te.clientY};var tt=(0,We._5)(Ie,$e);D.setState({draggingNodeKey:$e,dragChildrenKeys:(0,We.wA)($e,Ge),indent:D.listRef.current.getIndentWidth()}),D.setExpandedKeys(tt),window.addEventListener("dragend",D.onWindowDragEnd),mt==null||mt({event:te,node:(0,Ce.F)(Se.props)})},D.onNodeDragEnter=function(te,Se){var Be=D.state,Ie=Be.expandedKeys,Ge=Be.keyEntities,mt=Be.dragChildrenKeys,$e=Be.flattenNodes,tt=Be.indent,dt=D.props,Ze=dt.onDragEnter,Ke=dt.onExpand,Bt=dt.allowDrop,Vt=dt.direction,Ut=Se.props,mr=Ut.pos,br=Ut.eventKey,re=(0,I.Z)(D),ue=re.dragNode;if(D.currentMouseOverDroppableNodeKey!==br&&(D.currentMouseOverDroppableNodeKey=br),!ue){D.resetDragState();return}var rr=(0,We.OM)(te,ue,Se,tt,D.dragStartMousePosition,Bt,$e,Ge,Ie,Vt),Qe=rr.dropPosition,ot=rr.dropLevelOffset,Jr=rr.dropTargetKey,Tt=rr.dropContainerKey,Kt=rr.dropTargetPos,qt=rr.dropAllowed,et=rr.dragOverNodeKey;if(mt.indexOf(Jr)!==-1||!qt){D.resetDragState();return}if(D.delayedDragEnterLogic||(D.delayedDragEnterLogic={}),Object.keys(D.delayedDragEnterLogic).forEach(function(ft){clearTimeout(D.delayedDragEnterLogic[ft])}),ue.props.eventKey!==Se.props.eventKey&&(te.persist(),D.delayedDragEnterLogic[mr]=window.setTimeout(function(){if(D.state.draggingNodeKey!==null){var ft=(0,ie.Z)(Ie),ht=(0,xr.Z)(Ge,Se.props.eventKey);ht&&(ht.children||[]).length&&(ft=(0,We.L0)(Ie,Se.props.eventKey)),"expandedKeys"in D.props||D.setExpandedKeys(ft),Ke==null||Ke(ft,{node:(0,Ce.F)(Se.props),expanded:!0,nativeEvent:te.nativeEvent})}},800)),ue.props.eventKey===Jr&&ot===0){D.resetDragState();return}D.setState({dragOverNodeKey:et,dropPosition:Qe,dropLevelOffset:ot,dropTargetKey:Jr,dropContainerKey:Tt,dropTargetPos:Kt,dropAllowed:qt}),Ze==null||Ze({event:te,node:(0,Ce.F)(Se.props),expandedKeys:Ie})},D.onNodeDragOver=function(te,Se){var Be=D.state,Ie=Be.dragChildrenKeys,Ge=Be.flattenNodes,mt=Be.keyEntities,$e=Be.expandedKeys,tt=Be.indent,dt=D.props,Ze=dt.onDragOver,Ke=dt.allowDrop,Bt=dt.direction,Vt=(0,I.Z)(D),Ut=Vt.dragNode;if(Ut){var mr=(0,We.OM)(te,Ut,Se,tt,D.dragStartMousePosition,Ke,Ge,mt,$e,Bt),br=mr.dropPosition,re=mr.dropLevelOffset,ue=mr.dropTargetKey,rr=mr.dropContainerKey,Qe=mr.dropAllowed,ot=mr.dropTargetPos,Jr=mr.dragOverNodeKey;Ie.indexOf(ue)!==-1||!Qe||(Ut.props.eventKey===ue&&re===0?D.state.dropPosition===null&&D.state.dropLevelOffset===null&&D.state.dropTargetKey===null&&D.state.dropContainerKey===null&&D.state.dropTargetPos===null&&D.state.dropAllowed===!1&&D.state.dragOverNodeKey===null||D.resetDragState():br===D.state.dropPosition&&re===D.state.dropLevelOffset&&ue===D.state.dropTargetKey&&rr===D.state.dropContainerKey&&ot===D.state.dropTargetPos&&Qe===D.state.dropAllowed&&Jr===D.state.dragOverNodeKey||D.setState({dropPosition:br,dropLevelOffset:re,dropTargetKey:ue,dropContainerKey:rr,dropTargetPos:ot,dropAllowed:Qe,dragOverNodeKey:Jr}),Ze==null||Ze({event:te,node:(0,Ce.F)(Se.props)}))}},D.onNodeDragLeave=function(te,Se){D.currentMouseOverDroppableNodeKey===Se.props.eventKey&&!te.currentTarget.contains(te.relatedTarget)&&(D.resetDragState(),D.currentMouseOverDroppableNodeKey=null);var Be=D.props.onDragLeave;Be==null||Be({event:te,node:(0,Ce.F)(Se.props)})},D.onWindowDragEnd=function(te){D.onNodeDragEnd(te,null,!0),window.removeEventListener("dragend",D.onWindowDragEnd)},D.onNodeDragEnd=function(te,Se){var Be=D.props.onDragEnd;D.setState({dragOverNodeKey:null}),D.cleanDragState(),Be==null||Be({event:te,node:(0,Ce.F)(Se.props)}),D.dragNode=null,window.removeEventListener("dragend",D.onWindowDragEnd)},D.onNodeDrop=function(te,Se){var Be,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ge=D.state,mt=Ge.dragChildrenKeys,$e=Ge.dropPosition,tt=Ge.dropTargetKey,dt=Ge.dropTargetPos,Ze=Ge.dropAllowed;if(Ze){var Ke=D.props.onDrop;if(D.setState({dragOverNodeKey:null}),D.cleanDragState(),tt!==null){var Bt=(0,Me.Z)((0,Me.Z)({},(0,Ce.H8)(tt,D.getTreeNodeRequiredProps())),{},{active:((Be=D.getActiveItem())===null||Be===void 0?void 0:Be.key)===tt,data:(0,xr.Z)(D.state.keyEntities,tt).node}),Vt=mt.indexOf(tt)!==-1;(0,m.ZP)(!Vt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ut=(0,We.yx)(dt),mr={event:te,node:(0,Ce.F)(Bt),dragNode:D.dragNode?(0,Ce.F)(D.dragNode.props):null,dragNodesKeys:[D.dragNode.props.eventKey].concat(mt),dropToGap:$e!==0,dropPosition:$e+Number(Ut[Ut.length-1])};Ie||Ke==null||Ke(mr),D.dragNode=null}}},D.cleanDragState=function(){var te=D.state.draggingNodeKey;te!==null&&D.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),D.dragStartMousePosition=null,D.currentMouseOverDroppableNodeKey=null},D.triggerExpandActionExpand=function(te,Se){var Be=D.state,Ie=Be.expandedKeys,Ge=Be.flattenNodes,mt=Se.expanded,$e=Se.key,tt=Se.isLeaf;if(!(tt||te.shiftKey||te.metaKey||te.ctrlKey)){var dt=Ge.filter(function(Ke){return Ke.key===$e})[0],Ze=(0,Ce.F)((0,Me.Z)((0,Me.Z)({},(0,Ce.H8)($e,D.getTreeNodeRequiredProps())),{},{data:dt.data}));D.setExpandedKeys(mt?(0,We._5)(Ie,$e):(0,We.L0)(Ie,$e)),D.onNodeExpand(te,Ze)}},D.onNodeClick=function(te,Se){var Be=D.props,Ie=Be.onClick,Ge=Be.expandAction;Ge==="click"&&D.triggerExpandActionExpand(te,Se),Ie==null||Ie(te,Se)},D.onNodeDoubleClick=function(te,Se){var Be=D.props,Ie=Be.onDoubleClick,Ge=Be.expandAction;Ge==="doubleClick"&&D.triggerExpandActionExpand(te,Se),Ie==null||Ie(te,Se)},D.onNodeSelect=function(te,Se){var Be=D.state.selectedKeys,Ie=D.state,Ge=Ie.keyEntities,mt=Ie.fieldNames,$e=D.props,tt=$e.onSelect,dt=$e.multiple,Ze=Se.selected,Ke=Se[mt.key],Bt=!Ze;Bt?dt?Be=(0,We.L0)(Be,Ke):Be=[Ke]:Be=(0,We._5)(Be,Ke);var Vt=Be.map(function(Ut){var mr=(0,xr.Z)(Ge,Ut);return mr?mr.node:null}).filter(function(Ut){return Ut});D.setUncontrolledState({selectedKeys:Be}),tt==null||tt(Be,{event:"select",selected:Bt,node:Se,selectedNodes:Vt,nativeEvent:te.nativeEvent})},D.onNodeCheck=function(te,Se,Be){var Ie=D.state,Ge=Ie.keyEntities,mt=Ie.checkedKeys,$e=Ie.halfCheckedKeys,tt=D.props,dt=tt.checkStrictly,Ze=tt.onCheck,Ke=Se.key,Bt,Vt={event:"check",node:Se,checked:Be,nativeEvent:te.nativeEvent};if(dt){var Ut=Be?(0,We.L0)(mt,Ke):(0,We._5)(mt,Ke),mr=(0,We._5)($e,Ke);Bt={checked:Ut,halfChecked:mr},Vt.checkedNodes=Ut.map(function(ot){return(0,xr.Z)(Ge,ot)}).filter(function(ot){return ot}).map(function(ot){return ot.node}),D.setUncontrolledState({checkedKeys:Ut})}else{var br=(0,Er.S)([].concat((0,ie.Z)(mt),[Ke]),!0,Ge),re=br.checkedKeys,ue=br.halfCheckedKeys;if(!Be){var rr=new Set(re);rr.delete(Ke);var Qe=(0,Er.S)(Array.from(rr),{checked:!1,halfCheckedKeys:ue},Ge);re=Qe.checkedKeys,ue=Qe.halfCheckedKeys}Bt=re,Vt.checkedNodes=[],Vt.checkedNodesPositions=[],Vt.halfCheckedKeys=ue,re.forEach(function(ot){var Jr=(0,xr.Z)(Ge,ot);if(Jr){var Tt=Jr.node,Kt=Jr.pos;Vt.checkedNodes.push(Tt),Vt.checkedNodesPositions.push({node:Tt,pos:Kt})}}),D.setUncontrolledState({checkedKeys:re},!1,{halfCheckedKeys:ue})}Ze==null||Ze(Bt,Vt)},D.onNodeLoad=function(te){var Se=te.key,Be=new Promise(function(Ie,Ge){D.setState(function(mt){var $e=mt.loadedKeys,tt=$e===void 0?[]:$e,dt=mt.loadingKeys,Ze=dt===void 0?[]:dt,Ke=D.props,Bt=Ke.loadData,Vt=Ke.onLoad;if(!Bt||tt.indexOf(Se)!==-1||Ze.indexOf(Se)!==-1)return null;var Ut=Bt(te);return Ut.then(function(){var mr=D.state.loadedKeys,br=(0,We.L0)(mr,Se);Vt==null||Vt(br,{event:"load",node:te}),D.setUncontrolledState({loadedKeys:br}),D.setState(function(re){return{loadingKeys:(0,We._5)(re.loadingKeys,Se)}}),Ie()}).catch(function(mr){if(D.setState(function(re){return{loadingKeys:(0,We._5)(re.loadingKeys,Se)}}),D.loadingRetryTimes[Se]=(D.loadingRetryTimes[Se]||0)+1,D.loadingRetryTimes[Se]>=Wr){var br=D.state.loadedKeys;(0,m.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),D.setUncontrolledState({loadedKeys:(0,We.L0)(br,Se)}),Ie()}Ge(mr)}),{loadingKeys:(0,We.L0)(Ze,Se)}})});return Be.catch(function(){}),Be},D.onNodeMouseEnter=function(te,Se){var Be=D.props.onMouseEnter;Be==null||Be({event:te,node:Se})},D.onNodeMouseLeave=function(te,Se){var Be=D.props.onMouseLeave;Be==null||Be({event:te,node:Se})},D.onNodeContextMenu=function(te,Se){var Be=D.props.onRightClick;Be&&(te.preventDefault(),Be({event:te,node:Se}))},D.onFocus=function(){var te=D.props.onFocus;D.setState({focused:!0});for(var Se=arguments.length,Be=new Array(Se),Ie=0;Ie<Se;Ie++)Be[Ie]=arguments[Ie];te==null||te.apply(void 0,Be)},D.onBlur=function(){var te=D.props.onBlur;D.setState({focused:!1}),D.onActiveChange(null);for(var Se=arguments.length,Be=new Array(Se),Ie=0;Ie<Se;Ie++)Be[Ie]=arguments[Ie];te==null||te.apply(void 0,Be)},D.getTreeNodeRequiredProps=function(){var te=D.state,Se=te.expandedKeys,Be=te.selectedKeys,Ie=te.loadedKeys,Ge=te.loadingKeys,mt=te.checkedKeys,$e=te.halfCheckedKeys,tt=te.dragOverNodeKey,dt=te.dropPosition,Ze=te.keyEntities;return{expandedKeys:Se||[],selectedKeys:Be||[],loadedKeys:Ie||[],loadingKeys:Ge||[],checkedKeys:mt||[],halfCheckedKeys:$e||[],dragOverNodeKey:tt,dropPosition:dt,keyEntities:Ze}},D.setExpandedKeys=function(te){var Se=D.state,Be=Se.treeData,Ie=Se.fieldNames,Ge=(0,Ce.oH)(Be,te,Ie);D.setUncontrolledState({expandedKeys:te,flattenNodes:Ge},!0)},D.onNodeExpand=function(te,Se){var Be=D.state.expandedKeys,Ie=D.state,Ge=Ie.listChanging,mt=Ie.fieldNames,$e=D.props,tt=$e.onExpand,dt=$e.loadData,Ze=Se.expanded,Ke=Se[mt.key];if(!Ge){var Bt=Be.indexOf(Ke),Vt=!Ze;if((0,m.ZP)(Ze&&Bt!==-1||!Ze&&Bt===-1,"Expand state not sync with index check"),Vt?Be=(0,We.L0)(Be,Ke):Be=(0,We._5)(Be,Ke),D.setExpandedKeys(Be),tt==null||tt(Be,{node:Se,expanded:Vt,nativeEvent:te.nativeEvent}),Vt&&dt){var Ut=D.onNodeLoad(Se);Ut&&Ut.then(function(){var mr=(0,Ce.oH)(D.state.treeData,Be,mt);D.setUncontrolledState({flattenNodes:mr})}).catch(function(){var mr=D.state.expandedKeys,br=(0,We._5)(mr,Ke);D.setExpandedKeys(br)})}}},D.onListChangeStart=function(){D.setUncontrolledState({listChanging:!0})},D.onListChangeEnd=function(){setTimeout(function(){D.setUncontrolledState({listChanging:!1})})},D.onActiveChange=function(te){var Se=D.state.activeKey,Be=D.props.onActiveChange;Se!==te&&(D.setState({activeKey:te}),te!==null&&D.scrollTo({key:te}),Be==null||Be(te))},D.getActiveItem=function(){var te=D.state,Se=te.activeKey,Be=te.flattenNodes;return Se===null?null:Be.find(function(Ie){var Ge=Ie.key;return Ge===Se})||null},D.offsetActiveKey=function(te){var Se=D.state,Be=Se.flattenNodes,Ie=Se.activeKey,Ge=Be.findIndex(function(tt){var dt=tt.key;return dt===Ie});Ge===-1&&te<0&&(Ge=Be.length),Ge=(Ge+te+Be.length)%Be.length;var mt=Be[Ge];if(mt){var $e=mt.key;D.onActiveChange($e)}else D.onActiveChange(null)},D.onKeyDown=function(te){var Se=D.state,Be=Se.activeKey,Ie=Se.expandedKeys,Ge=Se.checkedKeys,mt=Se.fieldNames,$e=D.props,tt=$e.onKeyDown,dt=$e.checkable,Ze=$e.selectable;switch(te.which){case a.Z.UP:{D.offsetActiveKey(-1),te.preventDefault();break}case a.Z.DOWN:{D.offsetActiveKey(1),te.preventDefault();break}}var Ke=D.getActiveItem();if(Ke&&Ke.data){var Bt=D.getTreeNodeRequiredProps(),Vt=Ke.data.isLeaf===!1||!!(Ke.data[mt.children]||[]).length,Ut=(0,Ce.F)((0,Me.Z)((0,Me.Z)({},(0,Ce.H8)(Be,Bt)),{},{data:Ke.data,active:!0}));switch(te.which){case a.Z.LEFT:{Vt&&Ie.includes(Be)?D.onNodeExpand({},Ut):Ke.parent&&D.onActiveChange(Ke.parent.key),te.preventDefault();break}case a.Z.RIGHT:{Vt&&!Ie.includes(Be)?D.onNodeExpand({},Ut):Ke.children&&Ke.children.length&&D.onActiveChange(Ke.children[0].key),te.preventDefault();break}case a.Z.ENTER:case a.Z.SPACE:{dt&&!Ut.disabled&&Ut.checkable!==!1&&!Ut.disableCheckbox?D.onNodeCheck({},Ut,!Ge.includes(Be)):!dt&&Ze&&!Ut.disabled&&Ut.selectable!==!1&&D.onNodeSelect({},Ut);break}}}tt==null||tt(te)},D.setUncontrolledState=function(te){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!D.destroyed){var Ie=!1,Ge=!0,mt={};Object.keys(te).forEach(function($e){if($e in D.props){Ge=!1;return}Ie=!0,mt[$e]=te[$e]}),Ie&&(!Se||Ge)&&D.setState((0,Me.Z)((0,Me.Z)({},mt),Be))}},D.scrollTo=function(te){D.listRef.current.scrollTo(te)},D}return(0,O.Z)(h,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ae=this.props.activeKey;Ae!==void 0&&Ae!==this.state.activeKey&&(this.setState({activeKey:Ae}),Ae!==null&&this.scrollTo({key:Ae}))}},{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 Ae,Z=this.state,k=Z.focused,te=Z.flattenNodes,Se=Z.keyEntities,Be=Z.draggingNodeKey,Ie=Z.activeKey,Ge=Z.dropLevelOffset,mt=Z.dropContainerKey,$e=Z.dropTargetKey,tt=Z.dropPosition,dt=Z.dragOverNodeKey,Ze=Z.indent,Ke=this.props,Bt=Ke.prefixCls,Vt=Ke.className,Ut=Ke.style,mr=Ke.showLine,br=Ke.focusable,re=Ke.tabIndex,ue=re===void 0?0:re,rr=Ke.selectable,Qe=Ke.showIcon,ot=Ke.icon,Jr=Ke.switcherIcon,Tt=Ke.draggable,Kt=Ke.checkable,qt=Ke.checkStrictly,et=Ke.disabled,ft=Ke.motion,ht=Ke.loadData,Gt=Ke.filterTreeNode,Oe=Ke.height,on=Ke.itemHeight,Mt=Ke.virtual,On=Ke.titleRender,Xn=Ke.dropIndicatorRender,yi=Ke.onContextMenu,$i=Ke.onScroll,Dn=Ke.direction,zn=Ke.rootClassName,Xt=Ke.rootStyle,$r=(0,d.Z)(this.props,{aria:!0,data:!0}),en;return Tt&&((0,se.Z)(Tt)==="object"?en=Tt:typeof Tt=="function"?en={nodeDraggable:Tt}:en={}),S.createElement($.k.Provider,{value:{prefixCls:Bt,selectable:rr,showIcon:Qe,icon:ot,switcherIcon:Jr,draggable:en,draggingNodeKey:Be,checkable:Kt,checkStrictly:qt,disabled:et,keyEntities:Se,dropLevelOffset:Ge,dropContainerKey:mt,dropTargetKey:$e,dropPosition:tt,dragOverNodeKey:dt,indent:Ze,direction:Dn,dropIndicatorRender:Xn,loadData:ht,filterTreeNode:Gt,titleRender:On,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}},S.createElement("div",{role:"tree",className:p()(Bt,Vt,zn,(Ae={},(0,Fe.Z)(Ae,"".concat(Bt,"-show-line"),mr),(0,Fe.Z)(Ae,"".concat(Bt,"-focused"),k),(0,Fe.Z)(Ae,"".concat(Bt,"-active-focused"),Ie!==null),Ae)),style:Xt},S.createElement(Jt,(0,xe.Z)({ref:this.listRef,prefixCls:Bt,style:Ut,data:te,disabled:et,selectable:rr,checkable:!!Kt,motion:ft,dragging:Be!==null,height:Oe,itemHeight:on,virtual:Mt,focusable:br,focused:k,tabIndex:ue,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:yi,onScroll:$i},this.getTreeNodeRequiredProps(),$r))))}}],[{key:"getDerivedStateFromProps",value:function(Ae,Z){var k=Z.prevProps,te={prevProps:Ae};function Se(br){return!k&&br in Ae||k&&k[br]!==Ae[br]}var Be,Ie=Z.fieldNames;if(Se("fieldNames")&&(Ie=(0,Ce.w$)(Ae.fieldNames),te.fieldNames=Ie),Se("treeData")?Be=Ae.treeData:Se("children")&&((0,m.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Be=(0,Ce.zn)(Ae.children)),Be){te.treeData=Be;var Ge=(0,Ce.I8)(Be,{fieldNames:Ie});te.keyEntities=(0,Me.Z)((0,Fe.Z)({},N,he),Ge.keyEntities)}var mt=te.keyEntities||Z.keyEntities;if(Se("expandedKeys")||k&&Se("autoExpandParent"))te.expandedKeys=Ae.autoExpandParent||!k&&Ae.defaultExpandParent?(0,We.r7)(Ae.expandedKeys,mt):Ae.expandedKeys;else if(!k&&Ae.defaultExpandAll){var $e=(0,Me.Z)({},mt);delete $e[N],te.expandedKeys=Object.keys($e).map(function(br){return $e[br].key})}else!k&&Ae.defaultExpandedKeys&&(te.expandedKeys=Ae.autoExpandParent||Ae.defaultExpandParent?(0,We.r7)(Ae.defaultExpandedKeys,mt):Ae.defaultExpandedKeys);if(te.expandedKeys||delete te.expandedKeys,Be||te.expandedKeys){var tt=(0,Ce.oH)(Be||Z.treeData,te.expandedKeys||Z.expandedKeys,Ie);te.flattenNodes=tt}if(Ae.selectable&&(Se("selectedKeys")?te.selectedKeys=(0,We.BT)(Ae.selectedKeys,Ae):!k&&Ae.defaultSelectedKeys&&(te.selectedKeys=(0,We.BT)(Ae.defaultSelectedKeys,Ae))),Ae.checkable){var dt;if(Se("checkedKeys")?dt=(0,We.E6)(Ae.checkedKeys)||{}:!k&&Ae.defaultCheckedKeys?dt=(0,We.E6)(Ae.defaultCheckedKeys)||{}:Be&&(dt=(0,We.E6)(Ae.checkedKeys)||{checkedKeys:Z.checkedKeys,halfCheckedKeys:Z.halfCheckedKeys}),dt){var Ze=dt,Ke=Ze.checkedKeys,Bt=Ke===void 0?[]:Ke,Vt=Ze.halfCheckedKeys,Ut=Vt===void 0?[]:Vt;if(!Ae.checkStrictly){var mr=(0,Er.S)(Bt,!0,mt);Bt=mr.checkedKeys,Ut=mr.halfCheckedKeys}te.checkedKeys=Bt,te.halfCheckedKeys=Ut}}return Se("loadedKeys")&&(te.loadedKeys=Ae.loadedKeys),te}}]),h}(S.Component);Cr.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:F,allowDrop:function(){return!0},expandAction:!1},Cr.TreeNode=J.Z;var _e=Cr,kt=_e},35654:function(yn,Wt,g){"use strict";g.d(Wt,{BT:function(){return S},E6:function(){return H},L0:function(){return o},OM:function(){return m},_5:function(){return n},r7:function(){return V},wA:function(){return p},yx:function(){return L}});var xe=g(19127),Fe=g(20135),se=g(48736),Me=g(59301),ie=g(39417),Y=g(67841),O=g(71430),I=null;function n(ee,B){if(!ee)return[];var G=ee.slice(),le=G.indexOf(B);return le>=0&&G.splice(le,1),G}function o(ee,B){var G=(ee||[]).slice();return G.indexOf(B)===-1&&G.push(B),G}function L(ee){return ee.split("-")}function p(ee,B){var G=[],le=(0,Y.Z)(B,ee);function J(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];we.forEach(function(Ce){var Le=Ce.key,ae=Ce.children;G.push(Le),J(ae)})}return J(le.children),G}function a(ee){if(ee.parent){var B=L(ee.pos);return Number(B[B.length-1])===ee.parent.children.length-1}return!1}function d(ee){var B=L(ee.pos);return Number(B[B.length-1])===0}function m(ee,B,G,le,J,we,Ce,Le,ae,pe){var T,Ee=ee.clientX,oe=ee.clientY,fe=ee.target.getBoundingClientRect(),ye=fe.top,_=fe.height,N=(pe==="rtl"?-1:1)*(((J==null?void 0:J.x)||0)-Ee),X=(N-12)/le,he=(0,Y.Z)(Le,G.props.eventKey);if(oe<ye+_/2){var qe=Ce.findIndex(function(kt){return kt.key===he.key}),st=qe<=0?0:qe-1,nt=Ce[st].key;he=(0,Y.Z)(Le,nt)}var Rt=he.key,sr=he,Jt=he.key,We=0,Er=0;if(!ae.includes(Rt))for(var xr=0;xr<X&&a(he);xr+=1)he=he.parent,Er+=1;var Wr=B.props.data,Cr=he.node,_e=!0;return d(he)&&he.level===0&&oe<ye+_/2&&we({dragNode:Wr,dropNode:Cr,dropPosition:-1})&&he.key===G.props.eventKey?We=-1:(sr.children||[]).length&&ae.includes(Jt)?we({dragNode:Wr,dropNode:Cr,dropPosition:0})?We=0:_e=!1:Er===0?X>-1.5?we({dragNode:Wr,dropNode:Cr,dropPosition:1})?We=1:_e=!1:we({dragNode:Wr,dropNode:Cr,dropPosition:0})?We=0:we({dragNode:Wr,dropNode:Cr,dropPosition:1})?We=1:_e=!1:we({dragNode:Wr,dropNode:Cr,dropPosition:1})?We=1:_e=!1,{dropPosition:We,dropLevelOffset:Er,dropTargetKey:he.key,dropTargetPos:he.pos,dragOverNodeKey:Jt,dropContainerKey:We===0?null:((T=he.parent)===null||T===void 0?void 0:T.key)||null,dropAllowed:_e}}function S(ee,B){if(ee){var G=B.multiple;return G?ee.slice():ee.length?[ee[0]]:ee}}var $=function(B){return B};function F(ee,B){if(!ee)return[];var G=B||{},le=G.processProps,J=le===void 0?$:le,we=Array.isArray(ee)?ee:[ee];return we.map(function(Ce){var Le=Ce.children,ae=_objectWithoutProperties(Ce,I),pe=F(Le,B);return React.createElement(TreeNode,_extends({key:ae.key},J(ae)),pe)})}function H(ee){if(!ee)return null;var B;if(Array.isArray(ee))B={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,Fe.Z)(ee)==="object")B={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return B}function V(ee,B){var G=new Set;function le(J){if(!G.has(J)){var we=(0,Y.Z)(B,J);if(we){G.add(J);var Ce=we.parent,Le=we.node;Le.disabled||Ce&&le(Ce.key)}}}return(ee||[]).forEach(function(J){le(J)}),(0,xe.Z)(G)}},90782:function(yn,Wt,g){"use strict";g.d(Wt,{S:function(){return O}});var xe=g(48736),Fe=g(67841);function se(I,n){var o=new Set;return I.forEach(function(L){n.has(L)||o.add(L)}),o}function Me(I){var n=I||{},o=n.disabled,L=n.disableCheckbox,p=n.checkable;return!!(o||L)||p===!1}function ie(I,n,o,L){for(var p=new Set(I),a=new Set,d=0;d<=o;d+=1){var m=n.get(d)||new Set;m.forEach(function(H){var V=H.key,ee=H.node,B=H.children,G=B===void 0?[]:B;p.has(V)&&!L(ee)&&G.filter(function(le){return!L(le.node)}).forEach(function(le){p.add(le.key)})})}for(var S=new Set,$=o;$>=0;$-=1){var F=n.get($)||new Set;F.forEach(function(H){var V=H.parent,ee=H.node;if(!(L(ee)||!H.parent||S.has(H.parent.key))){if(L(H.parent.node)){S.add(V.key);return}var B=!0,G=!1;(V.children||[]).filter(function(le){return!L(le.node)}).forEach(function(le){var J=le.key,we=p.has(J);B&&!we&&(B=!1),!G&&(we||a.has(J))&&(G=!0)}),B&&p.add(V.key),G&&a.add(V.key),S.add(V.key)}})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(se(a,p))}}function Y(I,n,o,L,p){for(var a=new Set(I),d=new Set(n),m=0;m<=L;m+=1){var S=o.get(m)||new Set;S.forEach(function(V){var ee=V.key,B=V.node,G=V.children,le=G===void 0?[]:G;!a.has(ee)&&!d.has(ee)&&!p(B)&&le.filter(function(J){return!p(J.node)}).forEach(function(J){a.delete(J.key)})})}d=new Set;for(var $=new Set,F=L;F>=0;F-=1){var H=o.get(F)||new Set;H.forEach(function(V){var ee=V.parent,B=V.node;if(!(p(B)||!V.parent||$.has(V.parent.key))){if(p(V.parent.node)){$.add(ee.key);return}var G=!0,le=!1;(ee.children||[]).filter(function(J){return!p(J.node)}).forEach(function(J){var we=J.key,Ce=a.has(we);G&&!Ce&&(G=!1),!le&&(Ce||d.has(we))&&(le=!0)}),G||a.delete(ee.key),le&&d.add(ee.key),$.add(ee.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(se(d,a))}}function O(I,n,o,L){var p=[],a;L?a=L:a=Me;var d=new Set(I.filter(function(F){var H=!!(0,Fe.Z)(o,F);return H||p.push(F),H})),m=new Map,S=0;Object.keys(o).forEach(function(F){var H=o[F],V=H.level,ee=m.get(V);ee||(ee=new Set,m.set(V,ee)),ee.add(H),S=Math.max(S,V)}),(0,xe.ZP)(!p.length,"Tree missing follow keys: ".concat(p.slice(0,100).map(function(F){return"'".concat(F,"'")}).join(", ")));var $;return n===!0?$=ie(d,m,S,a):$=Y(d,n.halfCheckedKeys,m,S,a),$}},67841:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return xe}});function xe(Fe,se){return Fe[se]}},71430:function(yn,Wt,g){"use strict";g.d(Wt,{F:function(){return V},H8:function(){return H},I8:function(){return F},km:function(){return p},oH:function(){return S},w$:function(){return a},zn:function(){return m}});var xe=g(20135),Fe=g(19127),se=g(44127),Me=g(6620),ie=g(11592),Y=g(2738),O=g(48736),I=g(67841),n=["children"];function o(ee,B){return"".concat(ee,"-").concat(B)}function L(ee){return ee&&ee.type&&ee.type.isTreeNode}function p(ee,B){return ee!=null?ee:B}function a(ee){var B=ee||{},G=B.title,le=B._title,J=B.key,we=B.children,Ce=G||"title";return{title:Ce,_title:le||[Ce],key:J||"key",children:we||"children"}}function d(ee,B){var G=new Map;function le(J){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(J||[]).forEach(function(Ce){var Le=Ce[B.key],ae=Ce[B.children];warning(Le!=null,"Tree node must have a certain key: [".concat(we).concat(Le,"]"));var pe=String(Le);warning(!G.has(pe)||Le===null||Le===void 0,"Same 'key' exist in the Tree: ".concat(pe)),G.set(pe,!0),le(ae,"".concat(we).concat(pe," > "))})}le(ee)}function m(ee){function B(G){var le=(0,ie.Z)(G);return le.map(function(J){if(!L(J))return(0,O.ZP)(!J,"Tree/TreeNode can only accept TreeNode as children."),null;var we=J.key,Ce=J.props,Le=Ce.children,ae=(0,Me.Z)(Ce,n),pe=(0,se.Z)({key:we},ae),T=B(Le);return T.length&&(pe.children=T),pe}).filter(function(J){return J})}return B(ee)}function S(ee,B,G){var le=a(G),J=le._title,we=le.key,Ce=le.children,Le=new Set(B===!0?[]:B),ae=[];function pe(T){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(oe,fe){for(var ye=o(Ee?Ee.pos:"0",fe),_=p(oe[we],ye),N,X=0;X<J.length;X+=1){var he=J[X];if(oe[he]!==void 0){N=oe[he];break}}var qe=(0,se.Z)((0,se.Z)({},(0,Y.Z)(oe,[].concat((0,Fe.Z)(J),[we,Ce]))),{},{title:N,key:_,parent:Ee,pos:ye,children:null,data:oe,isStart:[].concat((0,Fe.Z)(Ee?Ee.isStart:[]),[fe===0]),isEnd:[].concat((0,Fe.Z)(Ee?Ee.isEnd:[]),[fe===T.length-1])});return ae.push(qe),B===!0||Le.has(_)?qe.children=pe(oe[Ce]||[],qe):qe.children=[],qe})}return pe(ee),ae}function $(ee,B,G){var le={};(0,xe.Z)(G)==="object"?le=G:le={externalGetKey:G},le=le||{};var J=le,we=J.childrenPropName,Ce=J.externalGetKey,Le=J.fieldNames,ae=a(Le),pe=ae.key,T=ae.children,Ee=we||T,oe;Ce?typeof Ce=="string"?oe=function(_){return _[Ce]}:typeof Ce=="function"&&(oe=function(_){return Ce(_)}):oe=function(_,N){return p(_[pe],N)};function fe(ye,_,N,X){var he=ye?ye[Ee]:ee,qe=ye?o(N.pos,_):"0",st=ye?[].concat((0,Fe.Z)(X),[ye]):[];if(ye){var nt=oe(ye,qe),Rt={node:ye,index:_,pos:qe,key:nt,parentPos:N.node?N.pos:null,level:N.level+1,nodes:st};B(Rt)}he&&he.forEach(function(sr,Jt){fe(sr,Jt,{node:ye,pos:qe,level:N?N.level+1:-1},st)})}fe(null)}function F(ee){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=B.initWrapper,le=B.processEntity,J=B.onProcessFinished,we=B.externalGetKey,Ce=B.childrenPropName,Le=B.fieldNames,ae=arguments.length>2?arguments[2]:void 0,pe=we||ae,T={},Ee={},oe={posEntities:T,keyEntities:Ee};return G&&(oe=G(oe)||oe),$(ee,function(fe){var ye=fe.node,_=fe.index,N=fe.pos,X=fe.key,he=fe.parentPos,qe=fe.level,st=fe.nodes,nt={node:ye,nodes:st,index:_,key:X,pos:N,level:qe},Rt=p(X,N);T[N]=nt,Ee[Rt]=nt,nt.parent=T[he],nt.parent&&(nt.parent.children=nt.parent.children||[],nt.parent.children.push(nt)),le&&le(nt,oe)},{externalGetKey:pe,childrenPropName:Ce,fieldNames:Le}),J&&J(oe),oe}function H(ee,B){var G=B.expandedKeys,le=B.selectedKeys,J=B.loadedKeys,we=B.loadingKeys,Ce=B.checkedKeys,Le=B.halfCheckedKeys,ae=B.dragOverNodeKey,pe=B.dropPosition,T=B.keyEntities,Ee=(0,I.Z)(T,ee),oe={eventKey:ee,expanded:G.indexOf(ee)!==-1,selected:le.indexOf(ee)!==-1,loaded:J.indexOf(ee)!==-1,loading:we.indexOf(ee)!==-1,checked:Ce.indexOf(ee)!==-1,halfChecked:Le.indexOf(ee)!==-1,pos:String(Ee?Ee.pos:""),dragOver:ae===ee&&pe===0,dragOverGapTop:ae===ee&&pe===-1,dragOverGapBottom:ae===ee&&pe===1};return oe}function V(ee){var B=ee.data,G=ee.expanded,le=ee.selected,J=ee.checked,we=ee.loaded,Ce=ee.loading,Le=ee.halfChecked,ae=ee.dragOver,pe=ee.dragOverGapTop,T=ee.dragOverGapBottom,Ee=ee.pos,oe=ee.active,fe=ee.eventKey,ye=(0,se.Z)((0,se.Z)({},B),{},{expanded:G,selected:le,checked:J,loaded:we,loading:Ce,halfChecked:Le,dragOver:ae,dragOverGapTop:pe,dragOverGapBottom:T,pos:Ee,active:oe,key:fe});return"props"in ye||Object.defineProperty(ye,"props",{get:function(){return(0,O.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),ye}},8224:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Fe}});var xe=g(4676);function Fe(se,Me,ie,Y){var O=xe.unstable_batchedUpdates?function(n){xe.unstable_batchedUpdates(ie,n)}:ie;return se!=null&&se.addEventListener&&se.addEventListener(Me,O,Y),{remove:function(){se!=null&&se.removeEventListener&&se.removeEventListener(Me,O,Y)}}}},55468:function(yn,Wt,g){"use strict";g.d(Wt,{g1:function(){return L},os:function(){return a}});var xe=/margin|padding|width|height|max|min|offset/,Fe={left:!0,top:!0},se={cssFloat:1,styleFloat:1,float:1};function Me(d){return d.nodeType===1?d.ownerDocument.defaultView.getComputedStyle(d,null):{}}function ie(d,m,S){if(m=m.toLowerCase(),S==="auto"){if(m==="height")return d.offsetHeight;if(m==="width")return d.offsetWidth}return m in Fe||(Fe[m]=xe.test(m)),Fe[m]?parseFloat(S)||0:S}function Y(d,m){var S=arguments.length,$=Me(d);return m=se[m]?"cssFloat"in d.style?"cssFloat":"styleFloat":m,S===1?$:ie(d,m,$[m]||d.style[m])}function O(d,m,S){var $=arguments.length;if(m=se[m]?"cssFloat"in d.style?"cssFloat":"styleFloat":m,$===3)return typeof S=="number"&&xe.test(m)&&(S="".concat(S,"px")),d.style[m]=S,S;for(var F in m)m.hasOwnProperty(F)&&O(d,F,m[F]);return Me(d)}function I(d){return d===document.body?document.documentElement.clientWidth:d.offsetWidth}function n(d){return d===document.body?window.innerHeight||document.documentElement.clientHeight:d.offsetHeight}function o(){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:d,height:m}}function L(){var d=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:d,height:m}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function a(d){var m=d.getBoundingClientRect(),S=document.documentElement;return{left:m.left+(window.pageXOffset||S.scrollLeft)-(S.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||S.scrollTop)-(S.clientTop||document.body.clientTop||0)}}},24514:function(yn,Wt,g){"use strict";g.d(Wt,{G:function(){return Me}});var xe=g(47273),Fe=function(Y){if((0,xe.Z)()&&window.document.documentElement){var O=Array.isArray(Y)?Y:[Y],I=window.document.documentElement;return O.some(function(n){return n in I.style})}return!1},se=function(Y,O){if(!Fe(Y))return!1;var I=document.createElement("div"),n=I.style[Y];return I.style[Y]=O,I.style[Y]!==n};function Me(ie,Y){return!Array.isArray(ie)&&Y!==void 0?se(ie,Y):Fe(ie)}},49658:function(yn,Wt){"use strict";Wt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var g=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(g)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(g==null?void 0:g.substr(0,4))}},45680:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return Cr}});var xe=g(96663),Fe=g(20135),se=g(44127),Me=g(90493),ie=g(72071),Y=g(6620),O=g(92310),I=g.n(O),n=g(29301),o=g(70425),L=g(34280),p=g(59301),a=g(4676),d=p.forwardRef(function(_e,kt){var K=_e.height,y=_e.offsetY,h=_e.offsetX,D=_e.children,Ae=_e.prefixCls,Z=_e.onInnerResize,k=_e.innerProps,te=_e.rtl,Se=_e.extra,Be={},Ie={display:"flex",flexDirection:"column"};return y!==void 0&&(Be={height:K,position:"relative",overflow:"hidden"},Ie=(0,se.Z)((0,se.Z)({},Ie),{},(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({transform:"translateY(".concat(y,"px)")},te?"marginRight":"marginLeft",-h),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:Be},p.createElement(n.Z,{onResize:function(mt){var $e=mt.offsetHeight;$e&&Z&&Z()}},p.createElement("div",(0,xe.Z)({style:Ie,className:I()((0,Me.Z)({},"".concat(Ae,"-holder-inner"),Ae)),ref:kt},k),D,Se)))});d.displayName="Filler";var m=d;function S(_e){var kt=_e.children,K=_e.setRef,y=p.useCallback(function(h){K(h)},[]);return p.cloneElement(kt,{ref:y})}function $(_e,kt,K,y,h,D,Ae,Z){var k=Z.getKey;return _e.slice(kt,K+1).map(function(te,Se){var Be=kt+Se,Ie=Ae(te,Be,{style:{width:y},offsetX:h}),Ge=k(te);return p.createElement(S,{key:Ge,setRef:function($e){return D(te,$e)}},Ie)})}function F(_e,kt,K,y){var h=K-_e,D=kt-K,Ae=Math.min(h,D)*2;if(y<=Ae){var Z=Math.floor(y/2);return y%2?K+Z+1:K-Z}return h>D?K-(y-D):K+(y-h)}function H(_e,kt,K){var y=_e.length,h=kt.length,D,Ae;if(y===0&&h===0)return null;y<h?(D=_e,Ae=kt):(D=kt,Ae=_e);var Z={__EMPTY_ITEM__:!0};function k(mt){return mt!==void 0?K(mt):Z}for(var te=null,Se=Math.abs(y-h)!==1,Be=0;Be<Ae.length;Be+=1){var Ie=k(D[Be]),Ge=k(Ae[Be]);if(Ie!==Ge){te=Be,Se=Se||Ie!==k(Ae[Be+1]);break}}return te===null?null:{index:te,multiple:Se}}function V(_e,kt,K){var y=p.useState(_e),h=(0,ie.Z)(y,2),D=h[0],Ae=h[1],Z=p.useState(null),k=(0,ie.Z)(Z,2),te=k[0],Se=k[1];return p.useEffect(function(){var Be=H(D||[],_e||[],kt);(Be==null?void 0:Be.index)!==void 0&&(K==null||K(Be.index),Se(_e[Be.index])),Ae(_e)},[_e]),[te]}var ee=g(16089),B=(typeof navigator=="undefined"?"undefined":(0,Fe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),G=B,le=function(_e,kt,K,y){var h=(0,p.useRef)(!1),D=(0,p.useRef)(null);function Ae(){clearTimeout(D.current),h.current=!0,D.current=setTimeout(function(){h.current=!1},50)}var Z=(0,p.useRef)({top:_e,bottom:kt,left:K,right:y});return Z.current.top=_e,Z.current.bottom=kt,Z.current.left=K,Z.current.right=y,function(k,te){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Be=k?te<0&&Z.current.left||te>0&&Z.current.right:te<0&&Z.current.top||te>0&&Z.current.bottom;return Se&&Be?(clearTimeout(D.current),h.current=!1):(!Be||h.current)&&Ae(),!h.current&&Be}};function J(_e,kt,K,y,h,D,Ae){var Z=(0,p.useRef)(0),k=(0,p.useRef)(null),te=(0,p.useRef)(null),Se=(0,p.useRef)(!1),Be=le(kt,K,y,h);function Ie(Ze,Ke){if(ee.Z.cancel(k.current),!Be(!1,Ke)){var Bt=Ze;if(!Bt._virtualHandled)Bt._virtualHandled=!0;else return;Z.current+=Ke,te.current=Ke,G||Bt.preventDefault(),k.current=(0,ee.Z)(function(){var Vt=Se.current?10:1;Ae(Z.current*Vt,!1),Z.current=0})}}function Ge(Ze,Ke){Ae(Ke,!0),G||Ze.preventDefault()}var mt=(0,p.useRef)(null),$e=(0,p.useRef)(null);function tt(Ze){if(_e){ee.Z.cancel($e.current),$e.current=(0,ee.Z)(function(){mt.current=null},2);var Ke=Ze.deltaX,Bt=Ze.deltaY,Vt=Ze.shiftKey,Ut=Ke,mr=Bt;(mt.current==="sx"||!mt.current&&Vt&&Bt&&!Ke)&&(Ut=Bt,mr=0,mt.current="sx");var br=Math.abs(Ut),re=Math.abs(mr);mt.current===null&&(mt.current=D&&br>re?"x":"y"),mt.current==="y"?Ie(Ze,mr):Ge(Ze,Ut)}}function dt(Ze){_e&&(Se.current=Ze.detail===te.current)}return[tt,dt]}function we(_e,kt,K,y){var h=p.useMemo(function(){return[new Map,[]]},[_e,K.id,y]),D=(0,ie.Z)(h,2),Ae=D[0],Z=D[1],k=function(Se){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se,Ie=Ae.get(Se),Ge=Ae.get(Be);if(Ie===void 0||Ge===void 0)for(var mt=_e.length,$e=Z.length;$e<mt;$e+=1){var tt,dt=_e[$e],Ze=kt(dt);Ae.set(Ze,$e);var Ke=(tt=K.get(Ze))!==null&&tt!==void 0?tt:y;if(Z[$e]=(Z[$e-1]||0)+Ke,Ze===Se&&(Ie=$e),Ze===Be&&(Ge=$e),Ie!==void 0&&Ge!==void 0)break}return{top:Z[Ie-1]||0,bottom:Z[Ge]}};return k}var Ce=g(52884),Le=g(95727),ae=function(){function _e(){(0,Ce.Z)(this,_e),(0,Me.Z)(this,"maps",void 0),(0,Me.Z)(this,"id",0),(0,Me.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Le.Z)(_e,[{key:"set",value:function(K,y){this.maps[K]=y,this.id+=1,this.diffKeys.add(K)}},{key:"get",value:function(K){return this.maps[K]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),_e}(),pe=ae;function T(_e){var kt=parseFloat(_e);return isNaN(kt)?0:kt}function Ee(_e,kt,K){var y=p.useState(0),h=(0,ie.Z)(y,2),D=h[0],Ae=h[1],Z=(0,p.useRef)(new Map),k=(0,p.useRef)(new pe),te=(0,p.useRef)(0);function Se(){te.current+=1}function Be(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Se();var mt=function(){var dt=!1;Z.current.forEach(function(Ze,Ke){if(Ze&&Ze.offsetParent){var Bt=Ze.offsetHeight,Vt=getComputedStyle(Ze),Ut=Vt.marginTop,mr=Vt.marginBottom,br=T(Ut),re=T(mr),ue=Bt+br+re;k.current.get(Ke)!==ue&&(k.current.set(Ke,ue),dt=!0)}}),dt&&Ae(function(Ze){return Ze+1})};if(Ge)mt();else{te.current+=1;var $e=te.current;Promise.resolve().then(function(){$e===te.current&&mt()})}}function Ie(Ge,mt){var $e=_e(Ge),tt=Z.current.get($e);mt?(Z.current.set($e,mt),Be()):Z.current.delete($e),!tt!=!mt&&(mt?kt==null||kt(Ge):K==null||K(Ge))}return(0,p.useEffect)(function(){return Se},[]),[Ie,Be,k.current,D]}var oe=14/15;function fe(_e,kt,K){var y=(0,p.useRef)(!1),h=(0,p.useRef)(0),D=(0,p.useRef)(0),Ae=(0,p.useRef)(null),Z=(0,p.useRef)(null),k,te=function(Ge){if(y.current){var mt=Math.ceil(Ge.touches[0].pageX),$e=Math.ceil(Ge.touches[0].pageY),tt=h.current-mt,dt=D.current-$e,Ze=Math.abs(tt)>Math.abs(dt);Ze?h.current=mt:D.current=$e;var Ke=K(Ze,Ze?tt:dt,!1,Ge);Ke&&Ge.preventDefault(),clearInterval(Z.current),Ke&&(Z.current=setInterval(function(){Ze?tt*=oe:dt*=oe;var Bt=Math.floor(Ze?tt:dt);(!K(Ze,Bt,!0)||Math.abs(Bt)<=.1)&&clearInterval(Z.current)},16))}},Se=function(){y.current=!1,k()},Be=function(Ge){k(),Ge.touches.length===1&&!y.current&&(y.current=!0,h.current=Math.ceil(Ge.touches[0].pageX),D.current=Math.ceil(Ge.touches[0].pageY),Ae.current=Ge.target,Ae.current.addEventListener("touchmove",te,{passive:!1}),Ae.current.addEventListener("touchend",Se,{passive:!0}))};k=function(){Ae.current&&(Ae.current.removeEventListener("touchmove",te),Ae.current.removeEventListener("touchend",Se))},(0,L.Z)(function(){return _e&&kt.current.addEventListener("touchstart",Be,{passive:!0}),function(){var Ie;(Ie=kt.current)===null||Ie===void 0||Ie.removeEventListener("touchstart",Be),k(),clearInterval(Z.current)}},[_e])}function ye(_e){return Math.floor(Math.pow(_e,.5))}function _(_e,kt){var K="touches"in _e?_e.touches[0]:_e;return K[kt?"pageX":"pageY"]-window[kt?"scrollX":"scrollY"]}function N(_e,kt,K){p.useEffect(function(){var y=kt.current;if(_e&&y){var h=!1,D,Ae,Z=function(){ee.Z.cancel(D)},k=function Ie(){Z(),D=(0,ee.Z)(function(){K(Ae),Ie()})},te=function(Ge){if(!(Ge.target.draggable||Ge.button!==0)){var mt=Ge;mt._virtualHandled||(mt._virtualHandled=!0,h=!0)}},Se=function(){h=!1,Z()},Be=function(Ge){if(h){var mt=_(Ge,!1),$e=y.getBoundingClientRect(),tt=$e.top,dt=$e.bottom;if(mt<=tt){var Ze=tt-mt;Ae=-ye(Ze),k()}else if(mt>=dt){var Ke=mt-dt;Ae=ye(Ke),k()}else Z()}};return y.addEventListener("mousedown",te),y.ownerDocument.addEventListener("mouseup",Se),y.ownerDocument.addEventListener("mousemove",Be),function(){y.removeEventListener("mousedown",te),y.ownerDocument.removeEventListener("mouseup",Se),y.ownerDocument.removeEventListener("mousemove",Be),Z()}}},[_e])}var X=10;function he(_e,kt,K,y,h,D,Ae,Z){var k=p.useRef(),te=p.useState(null),Se=(0,ie.Z)(te,2),Be=Se[0],Ie=Se[1];return(0,L.Z)(function(){if(Be&&Be.times<X){if(!_e.current){Ie(function(ft){return(0,se.Z)({},ft)});return}D();var Ge=Be.targetAlign,mt=Be.originAlign,$e=Be.index,tt=Be.offset,dt=_e.current.clientHeight,Ze=!1,Ke=Ge,Bt=null;if(dt){for(var Vt=Ge||mt,Ut=0,mr=0,br=0,re=Math.min(kt.length-1,$e),ue=0;ue<=re;ue+=1){var rr=h(kt[ue]);mr=Ut;var Qe=K.get(rr);br=mr+(Qe===void 0?y:Qe),Ut=br}for(var ot=Vt==="top"?tt:dt-tt,Jr=re;Jr>=0;Jr-=1){var Tt=h(kt[Jr]),Kt=K.get(Tt);if(Kt===void 0){Ze=!0;break}if(ot-=Kt,ot<=0)break}switch(Vt){case"top":Bt=mr-tt;break;case"bottom":Bt=br-dt+tt;break;default:{var qt=_e.current.scrollTop,et=qt+dt;mr<qt?Ke="top":br>et&&(Ke="bottom")}}Bt!==null&&Ae(Bt),Bt!==Be.lastTop&&(Ze=!0)}Ze&&Ie((0,se.Z)((0,se.Z)({},Be),{},{times:Be.times+1,targetAlign:Ke,lastTop:Bt}))}},[Be,_e.current]),function(Ge){if(Ge==null){Z();return}if(ee.Z.cancel(k.current),typeof Ge=="number")Ae(Ge);else if(Ge&&(0,Fe.Z)(Ge)==="object"){var mt,$e=Ge.align;"index"in Ge?mt=Ge.index:mt=kt.findIndex(function(Ze){return h(Ze)===Ge.key});var tt=Ge.offset,dt=tt===void 0?0:tt;Ie({times:0,index:mt,offset:dt,originAlign:$e})}}}var qe=p.forwardRef(function(_e,kt){var K=_e.prefixCls,y=_e.rtl,h=_e.scrollOffset,D=_e.scrollRange,Ae=_e.onStartMove,Z=_e.onStopMove,k=_e.onScroll,te=_e.horizontal,Se=_e.spinSize,Be=_e.containerSize,Ie=_e.style,Ge=_e.thumbStyle,mt=_e.showScrollBar,$e=p.useState(!1),tt=(0,ie.Z)($e,2),dt=tt[0],Ze=tt[1],Ke=p.useState(null),Bt=(0,ie.Z)(Ke,2),Vt=Bt[0],Ut=Bt[1],mr=p.useState(null),br=(0,ie.Z)(mr,2),re=br[0],ue=br[1],rr=!y,Qe=p.useRef(),ot=p.useRef(),Jr=p.useState(mt),Tt=(0,ie.Z)(Jr,2),Kt=Tt[0],qt=Tt[1],et=p.useRef(),ft=function(){mt===!0||mt===!1||(clearTimeout(et.current),qt(!0),et.current=setTimeout(function(){qt(!1)},3e3))},ht=D-Be||0,Gt=Be-Se||0,Oe=p.useMemo(function(){if(h===0||ht===0)return 0;var Xt=h/ht;return Xt*Gt},[h,ht,Gt]),on=function($r){$r.stopPropagation(),$r.preventDefault()},Mt=p.useRef({top:Oe,dragging:dt,pageY:Vt,startTop:re});Mt.current={top:Oe,dragging:dt,pageY:Vt,startTop:re};var On=function($r){Ze(!0),Ut(_($r,te)),ue(Mt.current.top),Ae(),$r.stopPropagation(),$r.preventDefault()};p.useEffect(function(){var Xt=function(Et){Et.preventDefault()},$r=Qe.current,en=ot.current;return $r.addEventListener("touchstart",Xt,{passive:!1}),en.addEventListener("touchstart",On,{passive:!1}),function(){$r.removeEventListener("touchstart",Xt),en.removeEventListener("touchstart",On)}},[]);var Xn=p.useRef();Xn.current=ht;var yi=p.useRef();yi.current=Gt,p.useEffect(function(){if(dt){var Xt,$r=function(Et){var _r=Mt.current,Fr=_r.dragging,In=_r.pageY,an=_r.startTop;ee.Z.cancel(Xt);var _n=Qe.current.getBoundingClientRect(),mn=Be/(te?_n.width:_n.height);if(Fr){var Mn=(_(Et,te)-In)*mn,ei=an;!rr&&te?ei-=Mn:ei+=Mn;var Kr=Xn.current,Vr=yi.current,Tn=Vr?ei/Vr:0,Sn=Math.ceil(Tn*Kr);Sn=Math.max(Sn,0),Sn=Math.min(Sn,Kr),Xt=(0,ee.Z)(function(){k(Sn,te)})}},en=function(){Ze(!1),Z()};return window.addEventListener("mousemove",$r,{passive:!0}),window.addEventListener("touchmove",$r,{passive:!0}),window.addEventListener("mouseup",en,{passive:!0}),window.addEventListener("touchend",en,{passive:!0}),function(){window.removeEventListener("mousemove",$r),window.removeEventListener("touchmove",$r),window.removeEventListener("mouseup",en),window.removeEventListener("touchend",en),ee.Z.cancel(Xt)}}},[dt]),p.useEffect(function(){return ft(),function(){clearTimeout(et.current)}},[h]),p.useImperativeHandle(kt,function(){return{delayHidden:ft}});var $i="".concat(K,"-scrollbar"),Dn={position:"absolute",visibility:Kt?null:"hidden"},zn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return te?(Dn.height=8,Dn.left=0,Dn.right=0,Dn.bottom=0,zn.height="100%",zn.width=Se,rr?zn.left=Oe:zn.right=Oe):(Dn.width=8,Dn.top=0,Dn.bottom=0,rr?Dn.right=0:Dn.left=0,zn.width="100%",zn.height=Se,zn.top=Oe),p.createElement("div",{ref:Qe,className:I()($i,(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat($i,"-horizontal"),te),"".concat($i,"-vertical"),!te),"".concat($i,"-visible"),Kt)),style:(0,se.Z)((0,se.Z)({},Dn),Ie),onMouseDown:on,onMouseMove:ft},p.createElement("div",{ref:ot,className:I()("".concat($i,"-thumb"),(0,Me.Z)({},"".concat($i,"-thumb-moving"),dt)),style:(0,se.Z)((0,se.Z)({},zn),Ge),onMouseDown:On}))}),st=qe,nt=20;function Rt(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,K=_e/kt*_e;return isNaN(K)&&(K=0),K=Math.max(K,nt),Math.floor(K)}var sr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Jt=[],We={overflowY:"auto",overflowAnchor:"none"};function Er(_e,kt){var K=_e.prefixCls,y=K===void 0?"rc-virtual-list":K,h=_e.className,D=_e.height,Ae=_e.itemHeight,Z=_e.fullHeight,k=Z===void 0?!0:Z,te=_e.style,Se=_e.data,Be=_e.children,Ie=_e.itemKey,Ge=_e.virtual,mt=_e.direction,$e=_e.scrollWidth,tt=_e.component,dt=tt===void 0?"div":tt,Ze=_e.onScroll,Ke=_e.onVirtualScroll,Bt=_e.onVisibleChange,Vt=_e.innerProps,Ut=_e.extraRender,mr=_e.styles,br=_e.showScrollBar,re=br===void 0?"optional":br,ue=(0,Y.Z)(_e,sr),rr=p.useCallback(function(_i){return typeof Ie=="function"?Ie(_i):_i==null?void 0:_i[Ie]},[Ie]),Qe=Ee(rr,null,null),ot=(0,ie.Z)(Qe,4),Jr=ot[0],Tt=ot[1],Kt=ot[2],qt=ot[3],et=!!(Ge!==!1&&D&&Ae),ft=p.useMemo(function(){return Object.values(Kt.maps).reduce(function(_i,ai){return _i+ai},0)},[Kt.id,Kt.maps]),ht=et&&Se&&(Math.max(Ae*Se.length,ft)>D||!!$e),Gt=mt==="rtl",Oe=I()(y,(0,Me.Z)({},"".concat(y,"-rtl"),Gt),h),on=Se||Jt,Mt=(0,p.useRef)(),On=(0,p.useRef)(),Xn=(0,p.useRef)(),yi=(0,p.useState)(0),$i=(0,ie.Z)(yi,2),Dn=$i[0],zn=$i[1],Xt=(0,p.useState)(0),$r=(0,ie.Z)(Xt,2),en=$r[0],Pt=$r[1],Et=(0,p.useState)(!1),_r=(0,ie.Z)(Et,2),Fr=_r[0],In=_r[1],an=function(){In(!0)},_n=function(){In(!1)},mn={getKey:rr};function Mn(_i){zn(function(ai){var zi;typeof _i=="function"?zi=_i(ai):zi=_i;var na=Qi(zi);return Mt.current.scrollTop=na,na})}var ei=(0,p.useRef)({start:0,end:on.length}),Kr=(0,p.useRef)(),Vr=V(on,rr),Tn=(0,ie.Z)(Vr,1),Sn=Tn[0];Kr.current=Sn;var Un=p.useMemo(function(){if(!et)return{scrollHeight:void 0,start:0,end:on.length-1,offset:void 0};if(!ht){var _i;return{scrollHeight:((_i=On.current)===null||_i===void 0?void 0:_i.offsetHeight)||0,start:0,end:on.length-1,offset:void 0}}for(var ai=0,zi,na,Ca,ys=on.length,oi=0;oi<ys;oi+=1){var _a=on[oi],ga=rr(_a),Ua=Kt.get(ga),Cs=ai+(Ua===void 0?Ae:Ua);Cs>=Dn&&zi===void 0&&(zi=oi,na=ai),Cs>Dn+D&&Ca===void 0&&(Ca=oi),ai=Cs}return zi===void 0&&(zi=0,na=0,Ca=Math.ceil(D/Ae)),Ca===void 0&&(Ca=on.length-1),Ca=Math.min(Ca+1,on.length-1),{scrollHeight:ai,start:zi,end:Ca,offset:na}},[ht,et,Dn,on,qt,D]),Vn=Un.scrollHeight,Ui=Un.start,di=Un.end,bn=Un.offset;ei.current.start=Ui,ei.current.end=di,p.useLayoutEffect(function(){var _i=Kt.getRecord();if(_i.size===1){var ai=Array.from(_i)[0],zi=on[Ui];if(zi){var na=rr(zi);if(na===ai){var Ca=Kt.get(ai),ys=Ca-Ae;Mn(function(oi){return oi+ys})}}}Kt.resetRecord()},[Vn]);var dr=p.useState({width:0,height:D}),vr=(0,ie.Z)(dr,2),Ir=vr[0],Yr=vr[1],Mr=function(ai){Yr({width:ai.offsetWidth,height:ai.offsetHeight})},cn=(0,p.useRef)(),nn=(0,p.useRef)(),jn=p.useMemo(function(){return Rt(Ir.width,$e)},[Ir.width,$e]),ti=p.useMemo(function(){return Rt(Ir.height,Vn)},[Ir.height,Vn]),ui=Vn-D,Ri=(0,p.useRef)(ui);Ri.current=ui;function Qi(_i){var ai=_i;return Number.isNaN(Ri.current)||(ai=Math.min(ai,Ri.current)),ai=Math.max(ai,0),ai}var Pi=Dn<=0,Sr=Dn>=ui,Cn=en<=0,fn=en>=$e,hi=le(Pi,Sr,Cn,fn),ii=function(){return{x:Gt?-en:en,y:Dn}},ri=(0,p.useRef)(ii()),bi=(0,o.useEvent)(function(_i){if(Ke){var ai=(0,se.Z)((0,se.Z)({},ii()),_i);(ri.current.x!==ai.x||ri.current.y!==ai.y)&&(Ke(ai),ri.current=ai)}});function Ti(_i,ai){var zi=_i;ai?((0,a.flushSync)(function(){Pt(zi)}),bi()):Mn(zi)}function Bi(_i){var ai=_i.currentTarget.scrollTop;ai!==Dn&&Mn(ai),Ze==null||Ze(_i),bi()}var Zi=function(ai){var zi=ai,na=$e?$e-Ir.width:0;return zi=Math.max(zi,0),zi=Math.min(zi,na),zi},ua=(0,o.useEvent)(function(_i,ai){ai?((0,a.flushSync)(function(){Pt(function(zi){var na=zi+(Gt?-_i:_i);return Zi(na)})}),bi()):Mn(function(zi){var na=zi+_i;return na})}),xi=J(et,Pi,Sr,Cn,fn,!!$e,ua),gn=(0,ie.Z)(xi,2),Ht=gn[0],Fn=gn[1];fe(et,Mt,function(_i,ai,zi,na){var Ca=na;return hi(_i,ai,zi)?!1:!Ca||!Ca._virtualHandled?(Ca&&(Ca._virtualHandled=!0),Ht({preventDefault:function(){},deltaX:_i?ai:0,deltaY:_i?0:ai}),!0):!1}),N(ht,Mt,function(_i){Mn(function(ai){return ai+_i})}),(0,L.Z)(function(){function _i(zi){var na=Pi&&zi.detail<0,Ca=Sr&&zi.detail>0;et&&!na&&!Ca&&zi.preventDefault()}var ai=Mt.current;return ai.addEventListener("wheel",Ht,{passive:!1}),ai.addEventListener("DOMMouseScroll",Fn,{passive:!0}),ai.addEventListener("MozMousePixelScroll",_i,{passive:!1}),function(){ai.removeEventListener("wheel",Ht),ai.removeEventListener("DOMMouseScroll",Fn),ai.removeEventListener("MozMousePixelScroll",_i)}},[et,Pi,Sr]),(0,L.Z)(function(){if($e){var _i=Zi(en);Pt(_i),bi({x:_i})}},[Ir.width,$e]);var Zn=function(){var ai,zi;(ai=cn.current)===null||ai===void 0||ai.delayHidden(),(zi=nn.current)===null||zi===void 0||zi.delayHidden()},Ei=he(Mt,on,Kt,Ae,rr,function(){return Tt(!0)},Mn,Zn);p.useImperativeHandle(kt,function(){return{nativeElement:Xn.current,getScrollInfo:ii,scrollTo:function(ai){function zi(na){return na&&(0,Fe.Z)(na)==="object"&&("left"in na||"top"in na)}zi(ai)?(ai.left!==void 0&&Pt(Zi(ai.left)),Ei(ai.top)):Ei(ai)}}}),(0,L.Z)(function(){if(Bt){var _i=on.slice(Ui,di+1);Bt(_i,on)}},[Ui,di,on]);var ji=we(on,rr,Kt,Ae),da=Ut==null?void 0:Ut({start:Ui,end:di,virtual:ht,offsetX:en,offsetY:bn,rtl:Gt,getSize:ji}),Ea=$(on,Ui,di,$e,en,Jr,Be,mn),qi=null;D&&(qi=(0,se.Z)((0,Me.Z)({},k?"height":"maxHeight",D),We),et&&(qi.overflowY="hidden",$e&&(qi.overflowX="hidden"),Fr&&(qi.pointerEvents="none")));var Sa={};return Gt&&(Sa.dir="rtl"),p.createElement("div",(0,xe.Z)({ref:Xn,style:(0,se.Z)((0,se.Z)({},te),{},{position:"relative"}),className:Oe},Sa,ue),p.createElement(n.Z,{onResize:Mr},p.createElement(dt,{className:"".concat(y,"-holder"),style:qi,ref:Mt,onScroll:Bi,onMouseEnter:Zn},p.createElement(m,{prefixCls:y,height:Vn,offsetX:en,offsetY:bn,scrollWidth:$e,onInnerResize:Tt,ref:On,innerProps:Vt,rtl:Gt,extra:da},Ea))),ht&&Vn>D&&p.createElement(st,{ref:cn,prefixCls:y,scrollOffset:Dn,scrollRange:Vn,rtl:Gt,onScroll:Ti,onStartMove:an,onStopMove:_n,spinSize:ti,containerSize:Ir.height,style:mr==null?void 0:mr.verticalScrollBar,thumbStyle:mr==null?void 0:mr.verticalScrollBarThumb,showScrollBar:re}),ht&&$e>Ir.width&&p.createElement(st,{ref:nn,prefixCls:y,scrollOffset:en,scrollRange:$e,rtl:Gt,onScroll:Ti,onStartMove:an,onStopMove:_n,spinSize:jn,containerSize:Ir.width,horizontal:!0,style:mr==null?void 0:mr.horizontalScrollBar,thumbStyle:mr==null?void 0:mr.horizontalScrollBarThumb,showScrollBar:re}))}var xr=p.forwardRef(Er);xr.displayName="List";var Wr=xr,Cr=Wr},83145:function(yn,Wt,g){"use strict";Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.CopyToClipboard=void 0;var xe=se(g(59301)),Fe=se(g(25769));function se(H){return H&&H.__esModule?H:{default:H}}function Me(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Me=function(ee){return typeof ee}:Me=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},Me(H)}function ie(H,V){var ee=Object.keys(H);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(H);V&&(B=B.filter(function(G){return Object.getOwnPropertyDescriptor(H,G).enumerable})),ee.push.apply(ee,B)}return ee}function Y(H){for(var V=1;V<arguments.length;V++){var ee=arguments[V]!=null?arguments[V]:{};V%2?ie(ee,!0).forEach(function(B){$(H,B,ee[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(ee)):ie(ee).forEach(function(B){Object.defineProperty(H,B,Object.getOwnPropertyDescriptor(ee,B))})}return H}function O(H,V){if(H==null)return{};var ee=I(H,V),B,G;if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(H);for(G=0;G<le.length;G++)B=le[G],!(V.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(H,B)&&(ee[B]=H[B])}return ee}function I(H,V){if(H==null)return{};var ee={},B=Object.keys(H),G,le;for(le=0;le<B.length;le++)G=B[le],!(V.indexOf(G)>=0)&&(ee[G]=H[G]);return ee}function n(H,V){if(!(H instanceof V))throw new TypeError("Cannot call a class as a function")}function o(H,V){for(var ee=0;ee<V.length;ee++){var B=V[ee];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(H,B.key,B)}}function L(H,V,ee){return V&&o(H.prototype,V),ee&&o(H,ee),H}function p(H,V){return V&&(Me(V)==="object"||typeof V=="function")?V:d(H)}function a(H){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},a(H)}function d(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function m(H,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(V&&V.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),V&&S(H,V)}function S(H,V){return S=Object.setPrototypeOf||function(B,G){return B.__proto__=G,B},S(H,V)}function $(H,V,ee){return V in H?Object.defineProperty(H,V,{value:ee,enumerable:!0,configurable:!0,writable:!0}):H[V]=ee,H}var F=function(H){m(V,H);function V(){var ee,B;n(this,V);for(var G=arguments.length,le=new Array(G),J=0;J<G;J++)le[J]=arguments[J];return B=p(this,(ee=a(V)).call.apply(ee,[this].concat(le))),$(d(B),"onClick",function(we){var Ce=B.props,Le=Ce.text,ae=Ce.onCopy,pe=Ce.children,T=Ce.options,Ee=xe.default.Children.only(pe),oe=(0,Fe.default)(Le,T);ae&&ae(Le,oe),Ee&&Ee.props&&typeof Ee.props.onClick=="function"&&Ee.props.onClick(we)}),B}return L(V,[{key:"render",value:function(){var B=this.props,G=B.text,le=B.onCopy,J=B.options,we=B.children,Ce=O(B,["text","onCopy","options","children"]),Le=xe.default.Children.only(we);return xe.default.cloneElement(Le,Y({},Ce,{onClick:this.onClick}))}}]),V}(xe.default.PureComponent);Wt.CopyToClipboard=F,$(F,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(yn,Wt,g){"use strict";var xe=g(83145),Fe=xe.CopyToClipboard;Fe.CopyToClipboard=Fe,yn.exports=Fe},76374:function(yn,Wt,g){"use strict";var xe=function(){if(typeof Map!="undefined")return Map;function pe(T,Ee){var oe=-1;return T.some(function(fe,ye){return fe[0]===Ee?(oe=ye,!0):!1}),oe}return function(){function T(){this.__entries__=[]}return Object.defineProperty(T.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),T.prototype.get=function(Ee){var oe=pe(this.__entries__,Ee),fe=this.__entries__[oe];return fe&&fe[1]},T.prototype.set=function(Ee,oe){var fe=pe(this.__entries__,Ee);~fe?this.__entries__[fe][1]=oe:this.__entries__.push([Ee,oe])},T.prototype.delete=function(Ee){var oe=this.__entries__,fe=pe(oe,Ee);~fe&&oe.splice(fe,1)},T.prototype.has=function(Ee){return!!~pe(this.__entries__,Ee)},T.prototype.clear=function(){this.__entries__.splice(0)},T.prototype.forEach=function(Ee,oe){oe===void 0&&(oe=null);for(var fe=0,ye=this.__entries__;fe<ye.length;fe++){var _=ye[fe];Ee.call(oe,_[1],_[0])}},T}()}(),Fe=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,se=function(){return typeof g.g!="undefined"&&g.g.Math===Math?g.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Me=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(se):function(pe){return setTimeout(function(){return pe(Date.now())},1e3/60)}}(),ie=2;function Y(pe,T){var Ee=!1,oe=!1,fe=0;function ye(){Ee&&(Ee=!1,pe()),oe&&N()}function _(){Me(ye)}function N(){var X=Date.now();if(Ee){if(X-fe<ie)return;oe=!0}else Ee=!0,oe=!1,setTimeout(_,T);fe=X}return N}var O=20,I=["top","right","bottom","left","width","height","size","weight"],n=typeof MutationObserver!="undefined",o=function(){function pe(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Y(this.refresh.bind(this),O)}return pe.prototype.addObserver=function(T){~this.observers_.indexOf(T)||this.observers_.push(T),this.connected_||this.connect_()},pe.prototype.removeObserver=function(T){var Ee=this.observers_,oe=Ee.indexOf(T);~oe&&Ee.splice(oe,1),!Ee.length&&this.connected_&&this.disconnect_()},pe.prototype.refresh=function(){var T=this.updateObservers_();T&&this.refresh()},pe.prototype.updateObservers_=function(){var T=this.observers_.filter(function(Ee){return Ee.gatherActive(),Ee.hasActive()});return T.forEach(function(Ee){return Ee.broadcastActive()}),T.length>0},pe.prototype.connect_=function(){!Fe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),n?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},pe.prototype.disconnect_=function(){!Fe||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},pe.prototype.onTransitionEnd_=function(T){var Ee=T.propertyName,oe=Ee===void 0?"":Ee,fe=I.some(function(ye){return!!~oe.indexOf(ye)});fe&&this.refresh()},pe.getInstance=function(){return this.instance_||(this.instance_=new pe),this.instance_},pe.instance_=null,pe}(),L=function(pe,T){for(var Ee=0,oe=Object.keys(T);Ee<oe.length;Ee++){var fe=oe[Ee];Object.defineProperty(pe,fe,{value:T[fe],enumerable:!1,writable:!1,configurable:!0})}return pe},p=function(pe){var T=pe&&pe.ownerDocument&&pe.ownerDocument.defaultView;return T||se},a=G(0,0,0,0);function d(pe){return parseFloat(pe)||0}function m(pe){for(var T=[],Ee=1;Ee<arguments.length;Ee++)T[Ee-1]=arguments[Ee];return T.reduce(function(oe,fe){var ye=pe["border-"+fe+"-width"];return oe+d(ye)},0)}function S(pe){for(var T=["top","right","bottom","left"],Ee={},oe=0,fe=T;oe<fe.length;oe++){var ye=fe[oe],_=pe["padding-"+ye];Ee[ye]=d(_)}return Ee}function $(pe){var T=pe.getBBox();return G(0,0,T.width,T.height)}function F(pe){var T=pe.clientWidth,Ee=pe.clientHeight;if(!T&&!Ee)return a;var oe=p(pe).getComputedStyle(pe),fe=S(oe),ye=fe.left+fe.right,_=fe.top+fe.bottom,N=d(oe.width),X=d(oe.height);if(oe.boxSizing==="border-box"&&(Math.round(N+ye)!==T&&(N-=m(oe,"left","right")+ye),Math.round(X+_)!==Ee&&(X-=m(oe,"top","bottom")+_)),!V(pe)){var he=Math.round(N+ye)-T,qe=Math.round(X+_)-Ee;Math.abs(he)!==1&&(N-=he),Math.abs(qe)!==1&&(X-=qe)}return G(fe.left,fe.top,N,X)}var H=function(){return typeof SVGGraphicsElement!="undefined"?function(pe){return pe instanceof p(pe).SVGGraphicsElement}:function(pe){return pe instanceof p(pe).SVGElement&&typeof pe.getBBox=="function"}}();function V(pe){return pe===p(pe).document.documentElement}function ee(pe){return Fe?H(pe)?$(pe):F(pe):a}function B(pe){var T=pe.x,Ee=pe.y,oe=pe.width,fe=pe.height,ye=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,_=Object.create(ye.prototype);return L(_,{x:T,y:Ee,width:oe,height:fe,top:Ee,right:T+oe,bottom:fe+Ee,left:T}),_}function G(pe,T,Ee,oe){return{x:pe,y:T,width:Ee,height:oe}}var le=function(){function pe(T){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=G(0,0,0,0),this.target=T}return pe.prototype.isActive=function(){var T=ee(this.target);return this.contentRect_=T,T.width!==this.broadcastWidth||T.height!==this.broadcastHeight},pe.prototype.broadcastRect=function(){var T=this.contentRect_;return this.broadcastWidth=T.width,this.broadcastHeight=T.height,T},pe}(),J=function(){function pe(T,Ee){var oe=B(Ee);L(this,{target:T,contentRect:oe})}return pe}(),we=function(){function pe(T,Ee,oe){if(this.activeObservations_=[],this.observations_=new xe,typeof T!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=T,this.controller_=Ee,this.callbackCtx_=oe}return pe.prototype.observe=function(T){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(T instanceof p(T).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ee=this.observations_;Ee.has(T)||(Ee.set(T,new le(T)),this.controller_.addObserver(this),this.controller_.refresh())}},pe.prototype.unobserve=function(T){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(T instanceof p(T).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ee=this.observations_;Ee.has(T)&&(Ee.delete(T),Ee.size||this.controller_.removeObserver(this))}},pe.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},pe.prototype.gatherActive=function(){var T=this;this.clearActive(),this.observations_.forEach(function(Ee){Ee.isActive()&&T.activeObservations_.push(Ee)})},pe.prototype.broadcastActive=function(){if(this.hasActive()){var T=this.callbackCtx_,Ee=this.activeObservations_.map(function(oe){return new J(oe.target,oe.broadcastRect())});this.callback_.call(T,Ee,T),this.clearActive()}},pe.prototype.clearActive=function(){this.activeObservations_.splice(0)},pe.prototype.hasActive=function(){return this.activeObservations_.length>0},pe}(),Ce=typeof WeakMap!="undefined"?new WeakMap:new xe,Le=function(){function pe(T){if(!(this instanceof pe))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Ee=o.getInstance(),oe=new we(T,Ee,this);Ce.set(this,oe)}return pe}();["observe","unobserve","disconnect"].forEach(function(pe){Le.prototype[pe]=function(){var T;return(T=Ce.get(this))[pe].apply(T,arguments)}});var ae=function(){return typeof se.ResizeObserver!="undefined"?se.ResizeObserver:Le}();Wt.Z=ae},98040:function(yn){yn.exports=function(){var Wt=document.getSelection();if(!Wt.rangeCount)return function(){};for(var g=document.activeElement,xe=[],Fe=0;Fe<Wt.rangeCount;Fe++)xe.push(Wt.getRangeAt(Fe));switch(g.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":g.blur();break;default:g=null;break}return Wt.removeAllRanges(),function(){Wt.type==="Caret"&&Wt.removeAllRanges(),Wt.rangeCount||xe.forEach(function(se){Wt.addRange(se)}),g&&g.focus()}}},1012:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return p}});var xe=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Fe=new Uint8Array(16);function se(){if(!xe)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return xe(Fe)}var Me=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ie(a){return typeof a=="string"&&Me.test(a)}for(var Y=ie,O=[],I=0;I<256;++I)O.push((I+256).toString(16).substr(1));function n(a){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=(O[a[d+0]]+O[a[d+1]]+O[a[d+2]]+O[a[d+3]]+"-"+O[a[d+4]]+O[a[d+5]]+"-"+O[a[d+6]]+O[a[d+7]]+"-"+O[a[d+8]]+O[a[d+9]]+"-"+O[a[d+10]]+O[a[d+11]]+O[a[d+12]]+O[a[d+13]]+O[a[d+14]]+O[a[d+15]]).toLowerCase();if(!Y(m))throw TypeError("Stringified UUID is invalid");return m}var o=n;function L(a,d,m){a=a||{};var S=a.random||(a.rng||se)();if(S[6]=S[6]&15|64,S[8]=S[8]&63|128,d){m=m||0;for(var $=0;$<16;++$)d[m+$]=S[$];return d}return o(S)}var p=L},93314:function(yn){"use strict";yn.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=="},40846:function(yn,Wt,g){"use strict";g.d(Wt,{ZP:function(){return ll}});function xe(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var Fe={exports:{}};(function(f,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,l=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,x={buildAbsoluteURL:function(j,q,de){if(de=de||{},j=j.trim(),q=q.trim(),!q){if(!de.alwaysNormalize)return j;var Re=x.parseURL(j);if(!Re)throw new Error("Error trying to parse base URL.");return Re.path=x.normalizePath(Re.path),x.buildURLFromParts(Re)}var Ye=x.parseURL(q);if(!Ye)throw new Error("Error trying to parse relative URL.");if(Ye.scheme)return de.alwaysNormalize?(Ye.path=x.normalizePath(Ye.path),x.buildURLFromParts(Ye)):q;var Je=x.parseURL(j);if(!Je)throw new Error("Error trying to parse base URL.");if(!Je.netLoc&&Je.path&&Je.path[0]!=="/"){var ct=i.exec(Je.path);Je.netLoc=ct[1],Je.path=ct[2]}Je.netLoc&&!Je.path&&(Je.path="/");var _t={scheme:Je.scheme,netLoc:Ye.netLoc,path:null,params:Ye.params,query:Ye.query,fragment:Ye.fragment};if(!Ye.netLoc&&(_t.netLoc=Je.netLoc,Ye.path[0]!=="/"))if(!Ye.path)_t.path=Je.path,Ye.params||(_t.params=Je.params,Ye.query||(_t.query=Je.query));else{var Dt=Je.path,pr=Dt.substring(0,Dt.lastIndexOf("/")+1)+Ye.path;_t.path=x.normalizePath(pr)}return _t.path===null&&(_t.path=de.alwaysNormalize?x.normalizePath(Ye.path):Ye.path),x.buildURLFromParts(_t)},parseURL:function(j){var q=r.exec(j);return q?{scheme:q[1]||"",netLoc:q[2]||"",path:q[3]||"",params:q[4]||"",query:q[5]||"",fragment:q[6]||""}:null},normalizePath:function(j){for(j=j.split("").reverse().join("").replace(s,"");j.length!==(j=j.replace(l,"")).length;);return j.split("").reverse().join("")},buildURLFromParts:function(j){return j.scheme+j.netLoc+j.path+j.params+j.query+j.fragment}};f.exports=x})()})(Fe);var se=Fe.exports;function Me(f,e){var t=Object.keys(f);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(f);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(f,i).enumerable})),t.push.apply(t,r)}return t}function ie(f){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Me(Object(t),!0).forEach(function(r){I(f,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach(function(r){Object.defineProperty(f,r,Object.getOwnPropertyDescriptor(t,r))})}return f}function Y(f,e){if(typeof f!="object"||!f)return f;var t=f[Symbol.toPrimitive];if(t!==void 0){var r=t.call(f,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(f)}function O(f){var e=Y(f,"string");return typeof e=="symbol"?e:String(e)}function I(f,e,t){return e=O(e),e in f?Object.defineProperty(f,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):f[e]=t,f}function n(){return n=Object.assign?Object.assign.bind():function(f){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(f[r]=t[r])}return f},n.apply(this,arguments)}const o=Number.isFinite||function(f){return typeof f=="number"&&isFinite(f)},L=Number.isSafeInteger||function(f){return typeof f=="number"&&Math.abs(f)<=p},p=Number.MAX_SAFE_INTEGER||9007199254740991;let a=function(f){return f.MEDIA_ATTACHING="hlsMediaAttaching",f.MEDIA_ATTACHED="hlsMediaAttached",f.MEDIA_DETACHING="hlsMediaDetaching",f.MEDIA_DETACHED="hlsMediaDetached",f.BUFFER_RESET="hlsBufferReset",f.BUFFER_CODECS="hlsBufferCodecs",f.BUFFER_CREATED="hlsBufferCreated",f.BUFFER_APPENDING="hlsBufferAppending",f.BUFFER_APPENDED="hlsBufferAppended",f.BUFFER_EOS="hlsBufferEos",f.BUFFER_FLUSHING="hlsBufferFlushing",f.BUFFER_FLUSHED="hlsBufferFlushed",f.MANIFEST_LOADING="hlsManifestLoading",f.MANIFEST_LOADED="hlsManifestLoaded",f.MANIFEST_PARSED="hlsManifestParsed",f.LEVEL_SWITCHING="hlsLevelSwitching",f.LEVEL_SWITCHED="hlsLevelSwitched",f.LEVEL_LOADING="hlsLevelLoading",f.LEVEL_LOADED="hlsLevelLoaded",f.LEVEL_UPDATED="hlsLevelUpdated",f.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",f.LEVELS_UPDATED="hlsLevelsUpdated",f.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",f.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",f.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",f.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",f.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",f.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",f.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",f.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",f.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",f.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",f.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",f.CUES_PARSED="hlsCuesParsed",f.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",f.INIT_PTS_FOUND="hlsInitPtsFound",f.FRAG_LOADING="hlsFragLoading",f.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",f.FRAG_LOADED="hlsFragLoaded",f.FRAG_DECRYPTED="hlsFragDecrypted",f.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",f.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",f.FRAG_PARSING_METADATA="hlsFragParsingMetadata",f.FRAG_PARSED="hlsFragParsed",f.FRAG_BUFFERED="hlsFragBuffered",f.FRAG_CHANGED="hlsFragChanged",f.FPS_DROP="hlsFpsDrop",f.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",f.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",f.ERROR="hlsError",f.DESTROYING="hlsDestroying",f.KEY_LOADING="hlsKeyLoading",f.KEY_LOADED="hlsKeyLoaded",f.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",f.BACK_BUFFER_REACHED="hlsBackBufferReached",f.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",f}({}),d=function(f){return f.NETWORK_ERROR="networkError",f.MEDIA_ERROR="mediaError",f.KEY_SYSTEM_ERROR="keySystemError",f.MUX_ERROR="muxError",f.OTHER_ERROR="otherError",f}({}),m=function(f){return f.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",f.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",f.KEY_SYSTEM_NO_SESSION="keySystemNoSession",f.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",f.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",f.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",f.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",f.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",f.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",f.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",f.MANIFEST_LOAD_ERROR="manifestLoadError",f.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",f.MANIFEST_PARSING_ERROR="manifestParsingError",f.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",f.LEVEL_EMPTY_ERROR="levelEmptyError",f.LEVEL_LOAD_ERROR="levelLoadError",f.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",f.LEVEL_PARSING_ERROR="levelParsingError",f.LEVEL_SWITCH_ERROR="levelSwitchError",f.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",f.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",f.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",f.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",f.FRAG_LOAD_ERROR="fragLoadError",f.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",f.FRAG_DECRYPT_ERROR="fragDecryptError",f.FRAG_PARSING_ERROR="fragParsingError",f.FRAG_GAP="fragGap",f.REMUX_ALLOC_ERROR="remuxAllocError",f.KEY_LOAD_ERROR="keyLoadError",f.KEY_LOAD_TIMEOUT="keyLoadTimeOut",f.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",f.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",f.BUFFER_APPEND_ERROR="bufferAppendError",f.BUFFER_APPENDING_ERROR="bufferAppendingError",f.BUFFER_STALLED_ERROR="bufferStalledError",f.BUFFER_FULL_ERROR="bufferFullError",f.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",f.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",f.INTERNAL_EXCEPTION="internalException",f.INTERNAL_ABORTED="aborted",f.UNKNOWN="unknown",f}({});const S=function(){},$={trace:S,debug:S,log:S,warn:S,info:S,error:S};let F=$;function H(f){const e=self.console[f];return e?e.bind(self.console,`[${f}] >`):S}function V(f,...e){e.forEach(function(t){F[t]=f[t]?f[t].bind(f):H(t)})}function ee(f,e){if(typeof console=="object"&&f===!0||typeof f=="object"){V(f,"debug","log","info","warn","error");try{F.log(`Debug logs enabled for "${e}" in hls.js version 1.5.20`)}catch(t){F=$}}else F=$}const B=F,G=/^(\d+)x(\d+)$/,le=/(.+?)=(".*?"|.*?)(?:,|$)/g;class J{constructor(e){typeof e=="string"&&(e=J.parseAttrList(e)),n(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const r=new Uint8Array(t.length/2);for(let i=0;i<t.length/2;i++)r[i]=parseInt(t.slice(i*2,i*2+2),16);return r}else return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const r=this[e];return r?parseFloat(r):t}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=G.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const r={},i='"';for(le.lastIndex=0;(t=le.exec(e))!==null;){let s=t[2];s.indexOf(i)===0&&s.lastIndexOf(i)===s.length-1&&(s=s.slice(1,-1));const l=t[1].trim();r[l]=s}return r}}function we(f){return f!=="ID"&&f!=="CLASS"&&f!=="START-DATE"&&f!=="DURATION"&&f!=="END-DATE"&&f!=="END-ON-NEXT"}function Ce(f){return f==="SCTE35-OUT"||f==="SCTE35-IN"}class Le{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const r=t.attr;for(const i in r)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==r[i]){B.warn(`DATERANGE tag attribute: "${i}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=i;break}e=n(new J({}),r,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const r=new Date(this.attr["END-DATE"]);o(r.getTime())&&(this._endDate=r)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(o(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isValid(){return!!this.id&&!this._badValueForSameId&&o(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class ae{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var pe={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class T{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[pe.AUDIO]:null,[pe.VIDEO]:null,[pe.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const r=e.split("@",2);let i;r.length===1?i=(t==null?void 0:t.byteRangeEndOffset)||0:i=parseInt(r[1]),this._byteRange=[i,parseInt(r[0])+i]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=se.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class Ee extends T{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new ae,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const r=Object.keys(this.levelkeys);if(r.length===1)return this._decryptdata=this.levelkeys[r[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!o(this.programDateTime))return null;const e=o(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),r=t.length;if(r>1||r===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,r,i,s,l=!1){const{elementaryStreams:x}=this,j=x[e];if(!j){x[e]={startPTS:t,endPTS:r,startDTS:i,endDTS:s,partial:l};return}j.startPTS=Math.min(j.startPTS,t),j.endPTS=Math.max(j.endPTS,r),j.startDTS=Math.min(j.startDTS,i),j.endDTS=Math.max(j.endDTS,s)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[pe.AUDIO]=null,e[pe.VIDEO]=null,e[pe.AUDIOVIDEO]=null}}class oe extends T{constructor(e,t,r,i,s){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.stats=new ae,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=i;const l=e.enumeratedString("BYTERANGE");l&&this.setByteRange(l,s),s&&(this.fragOffset=s.fragOffset+s.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}const fe=10;class ye{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?o(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||fe}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function _(f){return Uint8Array.from(atob(f),e=>e.charCodeAt(0))}function N(f){const e=qe(f).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function X(f){const e=function(r,i,s){const l=r[i];r[i]=r[s],r[s]=l};e(f,0,3),e(f,1,2),e(f,4,5),e(f,6,7)}function he(f){const e=f.split(":");let t=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),i=r[r.length-1].split(",");if(i.length===2){const s=i[0]==="base64",l=i[1];s?(r.splice(-1,1),t=_(l)):t=N(l)}}return t}function qe(f){return Uint8Array.from(unescape(encodeURIComponent(f)),e=>e.charCodeAt(0))}const st=typeof self!="undefined"?self:void 0;var nt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Rt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function sr(f){switch(f){case Rt.FAIRPLAY:return nt.FAIRPLAY;case Rt.PLAYREADY:return nt.PLAYREADY;case Rt.WIDEVINE:return nt.WIDEVINE;case Rt.CLEARKEY:return nt.CLEARKEY}}var Jt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function We(f){if(f===Jt.WIDEVINE)return nt.WIDEVINE;if(f===Jt.PLAYREADY)return nt.PLAYREADY;if(f===Jt.CENC||f===Jt.CLEARKEY)return nt.CLEARKEY}function Er(f){switch(f){case nt.FAIRPLAY:return Rt.FAIRPLAY;case nt.PLAYREADY:return Rt.PLAYREADY;case nt.WIDEVINE:return Rt.WIDEVINE;case nt.CLEARKEY:return Rt.CLEARKEY}}function xr(f){const{drmSystems:e,widevineLicenseUrl:t}=f,r=e?[nt.FAIRPLAY,nt.WIDEVINE,nt.PLAYREADY,nt.CLEARKEY].filter(i=>!!e[i]):[];return!r[nt.WIDEVINE]&&t&&r.push(nt.WIDEVINE),r}const Wr=function(f){return st!=null&&(f=st.navigator)!=null&&f.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Cr(f,e,t,r){let i;switch(f){case nt.FAIRPLAY:i=["cenc","sinf"];break;case nt.WIDEVINE:case nt.PLAYREADY:i=["cenc"];break;case nt.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${f}`)}return _e(i,e,t,r)}function _e(f,e,t,r){return[{initDataTypes:f,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:e.map(s=>({contentType:`audio/mp4; codecs="${s}"`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:t.map(s=>({contentType:`video/mp4; codecs="${s}"`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function kt(f){const e=new Uint16Array(f.buffer,f.byteOffset,f.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),r=t.substring(t.indexOf("<"),t.length),l=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(l){const x=l.childNodes[0]?l.childNodes[0].nodeValue:l.getAttribute("VALUE");if(x){const j=_(x).subarray(0,16);return X(j),j}}return null}function K(f,e,t){return Uint8Array.prototype.slice?f.slice(e,t):new Uint8Array(Array.prototype.slice.call(f,e,t))}const y=(f,e)=>e+10<=f.length&&f[e]===73&&f[e+1]===68&&f[e+2]===51&&f[e+3]<255&&f[e+4]<255&&f[e+6]<128&&f[e+7]<128&&f[e+8]<128&&f[e+9]<128,h=(f,e)=>e+10<=f.length&&f[e]===51&&f[e+1]===68&&f[e+2]===73&&f[e+3]<255&&f[e+4]<255&&f[e+6]<128&&f[e+7]<128&&f[e+8]<128&&f[e+9]<128,D=(f,e)=>{const t=e;let r=0;for(;y(f,e);){r+=10;const i=Ae(f,e+6);r+=i,h(f,e+10)&&(r+=10),e+=r}if(r>0)return f.subarray(t,t+r)},Ae=(f,e)=>{let t=0;return t=(f[e]&127)<<21,t|=(f[e+1]&127)<<14,t|=(f[e+2]&127)<<7,t|=f[e+3]&127,t},Z=(f,e)=>y(f,e)&&Ae(f,e+6)+10<=f.length-e,k=f=>{const e=Be(f);for(let t=0;t<e.length;t++){const r=e[t];if(te(r))return tt(r)}},te=f=>f&&f.key==="PRIV"&&f.info==="com.apple.streaming.transportStreamTimestamp",Se=f=>{const e=String.fromCharCode(f[0],f[1],f[2],f[3]),t=Ae(f,4),r=10;return{type:e,size:t,data:f.subarray(r,r+t)}},Be=f=>{let e=0;const t=[];for(;y(f,e);){const r=Ae(f,e+6);e+=10;const i=e+r;for(;e+8<i;){const s=Se(f.subarray(e)),l=Ie(s);l&&t.push(l),e+=s.size+10}h(f,e)&&(e+=10)}return t},Ie=f=>f.type==="PRIV"?Ge(f):f.type[0]==="W"?$e(f):mt(f),Ge=f=>{if(f.size<2)return;const e=dt(f.data,!0),t=new Uint8Array(f.data.subarray(e.length+1));return{key:f.type,info:e,data:t.buffer}},mt=f=>{if(f.size<2)return;if(f.type==="TXXX"){let t=1;const r=dt(f.data.subarray(t),!0);t+=r.length+1;const i=dt(f.data.subarray(t));return{key:f.type,info:r,data:i}}const e=dt(f.data.subarray(1));return{key:f.type,data:e}},$e=f=>{if(f.type==="WXXX"){if(f.size<2)return;let t=1;const r=dt(f.data.subarray(t),!0);t+=r.length+1;const i=dt(f.data.subarray(t));return{key:f.type,info:r,data:i}}const e=dt(f.data);return{key:f.type,data:e}},tt=f=>{if(f.data.byteLength===8){const e=new Uint8Array(f.data),t=e[3]&1;let r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,t&&(r+=4772185884e-2),Math.round(r)}},dt=(f,e=!1)=>{const t=Ke();if(t){const q=t.decode(f);if(e){const de=q.indexOf("\0");return de!==-1?q.substring(0,de):q}return q.replace(/\0/g,"")}const r=f.length;let i,s,l,x="",j=0;for(;j<r;){if(i=f[j++],i===0&&e)return x;if(i===0||i===3)continue;switch(i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:x+=String.fromCharCode(i);break;case 12:case 13:s=f[j++],x+=String.fromCharCode((i&31)<<6|s&63);break;case 14:s=f[j++],l=f[j++],x+=String.fromCharCode((i&15)<<12|(s&63)<<6|(l&63)<<0);break}}return x};let Ze;function Ke(){if(!navigator.userAgent.includes("PlayStation 4"))return!Ze&&typeof self.TextDecoder!="undefined"&&(Ze=new self.TextDecoder("utf-8")),Ze}const Bt={hexDump:function(f){let e="";for(let t=0;t<f.length;t++){let r=f[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}},Vt=Math.pow(2,32)-1,Ut=[].push,mr={video:1,audio:2,id3:3,text:4};function br(f){return String.fromCharCode.apply(null,f)}function re(f,e){const t=f[e]<<8|f[e+1];return t<0?65536+t:t}function ue(f,e){const t=Qe(f,e);return t<0?4294967296+t:t}function rr(f,e){let t=ue(f,e);return t*=Math.pow(2,32),t+=ue(f,e+4),t}function Qe(f,e){return f[e]<<24|f[e+1]<<16|f[e+2]<<8|f[e+3]}function ot(f,e,t){f[e]=t>>24,f[e+1]=t>>16&255,f[e+2]=t>>8&255,f[e+3]=t&255}function Jr(f){const e=f.byteLength;for(let t=0;t<e;){const r=ue(f,t);if(r>8&&f[t+4]===109&&f[t+5]===111&&f[t+6]===111&&f[t+7]===102)return!0;t=r>1?t+r:e}return!1}function Tt(f,e){const t=[];if(!e.length)return t;const r=f.byteLength;for(let i=0;i<r;){const s=ue(f,i),l=br(f.subarray(i+4,i+8)),x=s>1?i+s:r;if(l===e[0])if(e.length===1)t.push(f.subarray(i+8,x));else{const j=Tt(f.subarray(i+8,x),e.slice(1));j.length&&Ut.apply(t,j)}i=x}return t}function Kt(f){const e=[],t=f[0];let r=8;const i=ue(f,r);r+=4;let s=0,l=0;t===0?(s=ue(f,r),l=ue(f,r+4),r+=8):(s=rr(f,r),l=rr(f,r+8),r+=16),r+=2;let x=f.length+l;const j=re(f,r);r+=2;for(let q=0;q<j;q++){let de=r;const Re=ue(f,de);de+=4;const Ye=Re&2147483647;if((Re&2147483648)>>>31===1)return B.warn("SIDX has hierarchical references (not supported)"),null;const ct=ue(f,de);de+=4,e.push({referenceSize:Ye,subsegmentDuration:ct,info:{duration:ct/i,start:x,end:x+Ye-1}}),x+=Ye,de+=4,r=de}return{earliestPresentationTime:s,timescale:i,version:t,referencesCount:j,references:e}}function qt(f){const e=[],t=Tt(f,["moov","trak"]);for(let i=0;i<t.length;i++){const s=t[i],l=Tt(s,["tkhd"])[0];if(l){let x=l[0];const j=ue(l,x===0?12:20),q=Tt(s,["mdia","mdhd"])[0];if(q){x=q[0];const de=ue(q,x===0?12:20),Re=Tt(s,["mdia","hdlr"])[0];if(Re){const Ye=br(Re.subarray(8,12)),Je={soun:pe.AUDIO,vide:pe.VIDEO}[Ye];if(Je){const ct=Tt(s,["mdia","minf","stbl","stsd"])[0],_t=et(ct);e[j]={timescale:de,type:Je},e[Je]=ie({timescale:de,id:j},_t)}}}}}return Tt(f,["moov","mvex","trex"]).forEach(i=>{const s=ue(i,4),l=e[s];l&&(l.default={duration:ue(i,12),flags:ue(i,20)})}),e}function et(f){const e=f.subarray(8),t=e.subarray(86),r=br(e.subarray(4,8));let i=r;const s=r==="enca"||r==="encv";if(s){const x=Tt(e,[r])[0].subarray(r==="enca"?28:78);Tt(x,["sinf"]).forEach(q=>{const de=Tt(q,["schm"])[0];if(de){const Re=br(de.subarray(4,8));if(Re==="cbcs"||Re==="cenc"){const Ye=Tt(q,["frma"])[0];Ye&&(i=br(Ye))}}})}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const l=Tt(t,["avcC"])[0];i+="."+ht(l[1])+ht(l[2])+ht(l[3]);break}case"mp4a":{const l=Tt(e,[r])[0],x=Tt(l.subarray(28),["esds"])[0];if(x&&x.length>12){let j=4;if(x[j++]!==3)break;j=ft(x,j),j+=2;const q=x[j++];if(q&128&&(j+=2),q&64&&(j+=x[j++]),x[j++]!==4)break;j=ft(x,j);const de=x[j++];if(de===64)i+="."+ht(de);else break;if(j+=12,x[j++]!==5)break;j=ft(x,j);const Re=x[j++];let Ye=(Re&248)>>3;Ye===31&&(Ye+=1+((Re&7)<<3)+((x[j]&224)>>5)),i+="."+Ye}break}case"hvc1":case"hev1":{const l=Tt(t,["hvcC"])[0],x=l[1],j=["","A","B","C"][x>>6],q=x&31,de=ue(l,2),Re=(x&32)>>5?"H":"L",Ye=l[12],Je=l.subarray(6,12);i+="."+j+q,i+="."+de.toString(16).toUpperCase(),i+="."+Re+Ye;let ct="";for(let _t=Je.length;_t--;){const Dt=Je[_t];(Dt||ct)&&(ct="."+Dt.toString(16).toUpperCase()+ct)}i+=ct;break}case"dvh1":case"dvhe":{const l=Tt(t,["dvcC"])[0],x=l[2]>>1&127,j=l[2]<<5&32|l[3]>>3&31;i+="."+Gt(x)+"."+Gt(j);break}case"vp09":{const l=Tt(t,["vpcC"])[0],x=l[4],j=l[5],q=l[6]>>4&15;i+="."+Gt(x)+"."+Gt(j)+"."+Gt(q);break}case"av01":{const l=Tt(t,["av1C"])[0],x=l[1]>>>5,j=l[1]&31,q=l[2]>>>7?"H":"M",de=(l[2]&64)>>6,Re=(l[2]&32)>>5,Ye=x===2&&de?Re?12:10:de?10:8,Je=(l[2]&16)>>4,ct=(l[2]&8)>>3,_t=(l[2]&4)>>2,Dt=l[2]&3;i+="."+x+"."+Gt(j)+q+"."+Gt(Ye)+"."+Je+"."+ct+_t+Dt+"."+Gt(1)+"."+Gt(1)+"."+Gt(1)+"."+0;break}}return{codec:i,encrypted:s}}function ft(f,e){const t=e+5;for(;f[e++]&128&&e<t;);return e}function ht(f){return("0"+f.toString(16).toUpperCase()).slice(-2)}function Gt(f){return(f<10?"0":"")+f}function Oe(f,e){if(!f||!e)return f;const t=e.keyId;return t&&e.isCommonEncryption&&Tt(f,["moov","trak"]).forEach(i=>{const l=Tt(i,["mdia","minf","stbl","stsd"])[0].subarray(8);let x=Tt(l,["enca"]);const j=x.length>0;j||(x=Tt(l,["encv"])),x.forEach(q=>{const de=j?q.subarray(28):q.subarray(78);Tt(de,["sinf"]).forEach(Ye=>{const Je=on(Ye);if(Je){const ct=Je.subarray(8,24);ct.some(_t=>_t!==0)||(B.log(`[eme] Patching keyId in 'enc${j?"a":"v"}>sinf>>tenc' box: ${Bt.hexDump(ct)} -> ${Bt.hexDump(t)}`),Je.set(t,8))}})})}),f}function on(f){const e=Tt(f,["schm"])[0];if(e){const t=br(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return Tt(f,["schi","tenc"])[0]}return null}function Mt(f,e){return Tt(e,["moof","traf"]).reduce((t,r)=>{const i=Tt(r,["tfdt"])[0],s=i[0],l=Tt(r,["tfhd"]).reduce((x,j)=>{const q=ue(j,4),de=f[q];if(de){let Re=ue(i,4);if(s===1){if(Re===Vt)return B.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),x;Re*=Vt+1,Re+=ue(i,8)}const Ye=de.timescale||9e4,Je=Re/Ye;if(o(Je)&&(x===null||Je<x))return Je}return x},null);return l!==null&&o(l)&&(t===null||l<t)?l:t},null)}function On(f,e){let t=0,r=0,i=0;const s=Tt(f,["moof","traf"]);for(let l=0;l<s.length;l++){const x=s[l],j=Tt(x,["tfhd"])[0],q=ue(j,4),de=e[q];if(!de)continue;const Re=de.default,Ye=ue(j,0)|(Re==null?void 0:Re.flags);let Je=Re==null?void 0:Re.duration;Ye&8&&(Ye&2?Je=ue(j,12):Je=ue(j,8));const ct=de.timescale||9e4,_t=Tt(x,["trun"]);for(let Dt=0;Dt<_t.length;Dt++){if(t=Xn(_t[Dt]),!t&&Je){const pr=ue(_t[Dt],4);t=Je*pr}de.type===pe.VIDEO?r+=t/ct:de.type===pe.AUDIO&&(i+=t/ct)}}if(r===0&&i===0){let l=1/0,x=0,j=0;const q=Tt(f,["sidx"]);for(let de=0;de<q.length;de++){const Re=Kt(q[de]);if(Re!=null&&Re.references){l=Math.min(l,Re.earliestPresentationTime/Re.timescale);const Ye=Re.references.reduce((Je,ct)=>Je+ct.info.duration||0,0);x=Math.max(x,Ye+Re.earliestPresentationTime/Re.timescale),j=x-l}}if(j&&o(j))return j}return r||i}function Xn(f){const e=ue(f,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const i=ue(f,4);for(let s=0;s<i;s++){if(e&256){const l=ue(f,t);r+=l,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function yi(f,e,t){Tt(e,["moof","traf"]).forEach(r=>{Tt(r,["tfhd"]).forEach(i=>{const s=ue(i,4),l=f[s];if(!l)return;const x=l.timescale||9e4;Tt(r,["tfdt"]).forEach(j=>{const q=j[0],de=t*x;if(de){let Re=ue(j,4);if(q===0)Re-=de,Re=Math.max(Re,0),ot(j,4,Re);else{Re*=Math.pow(2,32),Re+=ue(j,8),Re-=de,Re=Math.max(Re,0);const Ye=Math.floor(Re/(Vt+1)),Je=Math.floor(Re%(Vt+1));ot(j,4,Ye),ot(j,8,Je)}}})})})}function $i(f){const e={valid:null,remainder:null},t=Tt(f,["moof"]);if(t.length<2)return e.remainder=f,e;const r=t[t.length-1];return e.valid=K(f,0,r.byteOffset-8),e.remainder=K(f,r.byteOffset-8),e}function Dn(f,e){const t=new Uint8Array(f.length+e.length);return t.set(f),t.set(e,f.length),t}function zn(f,e){const t=[],r=e.samples,i=e.timescale,s=e.id;let l=!1;return Tt(r,["moof"]).map(j=>{const q=j.byteOffset-8;Tt(j,["traf"]).map(Re=>{const Ye=Tt(Re,["tfdt"]).map(Je=>{const ct=Je[0];let _t=ue(Je,4);return ct===1&&(_t*=Math.pow(2,32),_t+=ue(Je,8)),_t/i})[0];return Ye!==void 0&&(f=Ye),Tt(Re,["tfhd"]).map(Je=>{const ct=ue(Je,4),_t=ue(Je,0)&16777215,Dt=(_t&1)!==0,pr=(_t&2)!==0,Tr=(_t&8)!==0;let Lr=0;const $n=(_t&16)!==0;let dn=0;const gi=(_t&32)!==0;let Kn=8;ct===s&&(Dt&&(Kn+=8),pr&&(Kn+=4),Tr&&(Lr=ue(Je,Kn),Kn+=4),$n&&(dn=ue(Je,Kn),Kn+=4),gi&&(Kn+=4),e.type==="video"&&(l=Xt(e.codec)),Tt(Re,["trun"]).map(Si=>{const ta=Si[0],mi=ue(Si,0)&16777215,Li=(mi&1)!==0;let Ga=0;const ia=(mi&4)!==0,$a=(mi&256)!==0;let Ka=0;const Ra=(mi&512)!==0;let Is=0;const zs=(mi&1024)!==0,ha=(mi&2048)!==0;let sa=0;const Ms=ue(Si,4);let ds=8;Li&&(Ga=ue(Si,ds),ds+=4),ia&&(ds+=4);let Us=Ga+q;for(let lo=0;lo<Ms;lo++){if($a?(Ka=ue(Si,ds),ds+=4):Ka=Lr,Ra?(Is=ue(Si,ds),ds+=4):Is=dn,zs&&(ds+=4),ha&&(ta===0?sa=ue(Si,ds):sa=Qe(Si,ds),ds+=4),e.type===pe.VIDEO){let Ls=0;for(;Ls<Is;){const Zo=ue(r,Us);if(Us+=4,$r(l,r[Us])){const ul=r.subarray(Us,Us+Zo);en(ul,l?2:1,f+sa/i,t)}Us+=Zo,Ls+=Zo+4}}f+=Ka/i}}))})})}),t}function Xt(f){if(!f)return!1;const e=f.indexOf("."),t=e<0?f:f.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function $r(f,e){if(f){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function en(f,e,t,r){const i=Pt(f);let s=0;s+=e;let l=0,x=0,j=0;for(;s<i.length;){l=0;do{if(s>=i.length)break;j=i[s++],l+=j}while(j===255);x=0;do{if(s>=i.length)break;j=i[s++],x+=j}while(j===255);const q=i.length-s;let de=s;if(x<q)s+=x;else if(x>q){B.error(`Malformed SEI payload. ${x} is too small, only ${q} bytes left to parse.`);break}if(l===4){if(i[de++]===181){const Ye=re(i,de);if(de+=2,Ye===49){const Je=ue(i,de);if(de+=4,Je===1195456820){const ct=i[de++];if(ct===3){const _t=i[de++],Dt=31&_t,pr=64&_t,Tr=pr?2+Dt*3:0,Lr=new Uint8Array(Tr);if(pr){Lr[0]=_t;for(let $n=1;$n<Tr;$n++)Lr[$n]=i[de++]}r.push({type:ct,payloadType:l,pts:t,bytes:Lr})}}}}}else if(l===5&&x>16){const Re=[];for(let ct=0;ct<16;ct++){const _t=i[de++].toString(16);Re.push(_t.length==1?"0"+_t:_t),(ct===3||ct===5||ct===7||ct===9)&&Re.push("-")}const Ye=x-16,Je=new Uint8Array(Ye);for(let ct=0;ct<Ye;ct++)Je[ct]=i[de++];r.push({payloadType:l,pts:t,uuid:Re.join(""),userData:dt(Je),userDataBytes:Je})}}}function Pt(f){const e=f.byteLength,t=[];let r=1;for(;r<e-2;)f[r]===0&&f[r+1]===0&&f[r+2]===3?(t.push(r+2),r+=2):r++;if(t.length===0)return f;const i=e-t.length,s=new Uint8Array(i);let l=0;for(r=0;r<i;l++,r++)l===t[0]&&(l++,t.shift()),s[r]=f[l];return s}function Et(f){const e=f[0];let t="",r="",i=0,s=0,l=0,x=0,j=0,q=0;if(e===0){for(;br(f.subarray(q,q+1))!=="\0";)t+=br(f.subarray(q,q+1)),q+=1;for(t+=br(f.subarray(q,q+1)),q+=1;br(f.subarray(q,q+1))!=="\0";)r+=br(f.subarray(q,q+1)),q+=1;r+=br(f.subarray(q,q+1)),q+=1,i=ue(f,12),s=ue(f,16),x=ue(f,20),j=ue(f,24),q=28}else if(e===1){q+=4,i=ue(f,q),q+=4;const Re=ue(f,q);q+=4;const Ye=ue(f,q);for(q+=4,l=zA(2,32)*Re+Ye,L(l)||(l=Number.MAX_SAFE_INTEGER,B.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),x=ue(f,q),q+=4,j=ue(f,q),q+=4;br(f.subarray(q,q+1))!=="\0";)t+=br(f.subarray(q,q+1)),q+=1;for(t+=br(f.subarray(q,q+1)),q+=1;br(f.subarray(q,q+1))!=="\0";)r+=br(f.subarray(q,q+1)),q+=1;r+=br(f.subarray(q,q+1)),q+=1}const de=f.subarray(q,f.byteLength);return{schemeIdUri:t,value:r,timeScale:i,presentationTime:l,presentationTimeDelta:s,eventDuration:x,id:j,payload:de}}function _r(f,...e){const t=e.length;let r=8,i=t;for(;i--;)r+=e[i].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(f,4),i=0,r=8;i<t;i++)s.set(e[i],r),r+=e[i].byteLength;return s}function Fr(f,e,t){if(f.byteLength!==16)throw new RangeError("Invalid system id");let r,i;if(e){r=1,i=new Uint8Array(e.length*16);for(let x=0;x<e.length;x++){const j=e[x];if(j.byteLength!==16)throw new RangeError("Invalid key");i.set(j,x*16)}}else r=0,i=new Uint8Array;let s;r>0?(s=new Uint8Array(4),e.length>0&&new DataView(s.buffer).setUint32(0,e.length,!1)):s=new Uint8Array;const l=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(l.buffer).setUint32(0,t.byteLength,!1),_r([112,115,115,104],new Uint8Array([r,0,0,0]),f,s,i,l,t||new Uint8Array)}function In(f){const e=[];if(f instanceof ArrayBuffer){const t=f.byteLength;let r=0;for(;r+32<t;){const i=new DataView(f,r),s=an(i);e.push(s),r+=s.size}}return e}function an(f){const e=f.getUint32(0),t=f.byteOffset,r=f.byteLength;if(r<e)return{offset:t,size:r};if(f.getUint32(4)!==1886614376)return{offset:t,size:e};const s=f.getUint32(8)>>>24;if(s!==0&&s!==1)return{offset:t,size:e};const l=f.buffer,x=Bt.hexDump(new Uint8Array(l,t+12,16)),j=f.getUint32(28);let q=null,de=null;if(s===0){if(e-32<j||j<22)return{offset:t,size:e};de=new Uint8Array(l,t+32,j)}else if(s===1){if(!j||r<t+32+j*16+16)return{offset:t,size:e};q=[];for(let Re=0;Re<j;Re++)q.push(new Uint8Array(l,t+32+Re*16,16))}return{version:s,systemId:x,kids:q,data:de,offset:t,size:e}}let _n={};class mn{static clearKeyUriToKeyIdMap(){_n={}}constructor(e,t,r,i=[1],s=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=r,this.keyFormatVersions=i,this.iv=s,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Rt.FAIRPLAY:case Rt.WIDEVINE:case Rt.PLAYREADY:case Rt.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&B.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=Mn(e);return new mn(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=he(this.uri);if(t)switch(this.keyFormat){case Rt.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Rt.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Fr(r,null,t),this.keyId=kt(t);break}default:{let r=t.subarray(0,16);if(r.length!==16){const i=new Uint8Array(16);i.set(r,16-r.length),r=i}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r=_n[this.uri];if(!r){const i=Object.keys(_n).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,i),_n[this.uri]=r}this.keyId=r}return this}}function Mn(f){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=f>>8*(15-t)&255;return e}const ei=/\{\$([a-zA-Z0-9-_]+)\}/g;function Kr(f){return ei.test(f)}function Vr(f,e,t){if(f.variableList!==null||f.hasVariableRefs)for(let r=t.length;r--;){const i=t[r],s=e[i];s&&(e[i]=Tn(f,s))}}function Tn(f,e){if(f.variableList!==null||f.hasVariableRefs){const t=f.variableList;return e.replace(ei,r=>{const i=r.substring(2,r.length-1),s=t==null?void 0:t[i];return s===void 0?(f.playlistParsingError||(f.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),r):s})}return e}function Sn(f,e,t){let r=f.variableList;r||(f.variableList=r={});let i,s;if("QUERYPARAM"in e){i=e.QUERYPARAM;try{const l=new self.URL(t).searchParams;if(l.has(i))s=l.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${t}"`)}catch(l){f.playlistParsingError||(f.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${l.message}`))}}else i=e.NAME,s=e.VALUE;i in r?f.playlistParsingError||(f.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):r[i]=s||""}function Un(f,e,t){const r=e.IMPORT;if(t&&r in t){let i=f.variableList;i||(f.variableList=i={}),i[r]=t[r]}else f.playlistParsingError||(f.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}function Vn(f=!0){return typeof self=="undefined"?void 0:(f||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Ui(f){return typeof self!="undefined"&&f===self.ManagedMediaSource}const di={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function bn(f,e){const t=di[e];return!!t&&!!t[f.slice(0,4)]}function dr(f,e,t=!0){return!f.split(",").some(r=>!vr(r,e,t))}function vr(f,e,t=!0){var r;const i=Vn(t);return(r=i==null?void 0:i.isTypeSupported(Ir(f,e)))!=null?r:!1}function Ir(f,e){return`${e}/mp4;codecs="${f}"`}function Yr(f){if(f){const e=f.substring(0,4);return di.video[e]}return 2}function Mr(f){return f.split(",").reduce((e,t)=>{const r=di.video[t];return r?(r*2+e)/(e?3:2):(di.audio[t]+e)/(e?2:1)},0)}const cn={};function nn(f,e=!0){if(cn[f])return cn[f];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[f];for(let r=0;r<t.length;r++)if(vr(t[r],"audio",e))return cn[f]=t[r],t[r];return f}const jn=/flac|opus/i;function ti(f,e=!0){return f.replace(jn,t=>nn(t.toLowerCase(),e))}function ui(f,e){return f&&f!=="mp4a"?f:e&&e.split(",")[0]}function Ri(f){const e=f.split(",");for(let t=0;t<e.length;t++){const r=e[t].split(".");if(r.length>2){let i=r.shift()+".";i+=parseInt(r.shift()).toString(16),i+=("000"+parseInt(r.shift()).toString(16)).slice(-4),e[t]=i}}return e.join(",")}const Qi=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Pi=/#EXT-X-MEDIA:(.*)/g,Sr=/^#EXT(?:INF|-X-TARGETDURATION):/m,Cn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),fn=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class hi{static findGroup(e,t){for(let r=0;r<e.length;r++){const i=e[r];if(i.id===t)return i}}static resolve(e,t){return se.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Sr.test(e)}static parseMasterPlaylist(e,t){const r=Kr(e),i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},s=[];Qi.lastIndex=0;let l;for(;(l=Qi.exec(e))!=null;)if(l[1]){var x;const q=new J(l[1]);Vr(i,q,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const de=Tn(i,l[2]),Re={attrs:q,bitrate:q.decimalInteger("BANDWIDTH")||q.decimalInteger("AVERAGE-BANDWIDTH"),name:q.NAME,url:hi.resolve(de,t)},Ye=q.decimalResolution("RESOLUTION");Ye&&(Re.width=Ye.width,Re.height=Ye.height),bi(q.CODECS,Re),(x=Re.unknownCodecs)!=null&&x.length||s.push(Re),i.levels.push(Re)}else if(l[3]){const q=l[3],de=l[4];switch(q){case"SESSION-DATA":{const Re=new J(de);Vr(i,Re,["DATA-ID","LANGUAGE","VALUE","URI"]);const Ye=Re["DATA-ID"];Ye&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[Ye]=Re);break}case"SESSION-KEY":{const Re=ii(de,t,i);Re.encrypted&&Re.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(Re)):B.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${de}"`);break}case"DEFINE":{{const Re=new J(de);Vr(i,Re,["NAME","VALUE","QUERYPARAM"]),Sn(i,Re,t)}break}case"CONTENT-STEERING":{const Re=new J(de);Vr(i,Re,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:hi.resolve(Re["SERVER-URI"],t),pathwayId:Re["PATHWAY-ID"]||"."};break}case"START":{i.startTimeOffset=ri(de);break}}}const j=s.length>0&&s.length<i.levels.length;return i.levels=j?s:i.levels,i.levels.length===0&&(i.playlistParsingError=new Error("no levels found in manifest")),i}static parseMasterPlaylistMedia(e,t,r){let i;const s={},l=r.levels,x={AUDIO:l.map(q=>({id:q.attrs.AUDIO,audioCodec:q.audioCodec})),SUBTITLES:l.map(q=>({id:q.attrs.SUBTITLES,textCodec:q.textCodec})),"CLOSED-CAPTIONS":[]};let j=0;for(Pi.lastIndex=0;(i=Pi.exec(e))!==null;){const q=new J(i[1]),de=q.TYPE;if(de){const Re=x[de],Ye=s[de]||[];s[de]=Ye,Vr(r,q,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const Je=q.LANGUAGE,ct=q["ASSOC-LANGUAGE"],_t=q.CHANNELS,Dt=q.CHARACTERISTICS,pr=q["INSTREAM-ID"],Tr={attrs:q,bitrate:0,id:j++,groupId:q["GROUP-ID"]||"",name:q.NAME||Je||"",type:de,default:q.bool("DEFAULT"),autoselect:q.bool("AUTOSELECT"),forced:q.bool("FORCED"),lang:Je,url:q.URI?hi.resolve(q.URI,t):""};if(ct&&(Tr.assocLang=ct),_t&&(Tr.channels=_t),Dt&&(Tr.characteristics=Dt),pr&&(Tr.instreamId=pr),Re!=null&&Re.length){const Lr=hi.findGroup(Re,Tr.groupId)||Re[0];Ti(Tr,Lr,"audioCodec"),Ti(Tr,Lr,"textCodec")}Ye.push(Tr)}}return s}static parseLevelPlaylist(e,t,r,i,s,l){const x=new ye(t),j=x.fragments;let q=null,de=0,Re=0,Ye=0,Je=0,ct=null,_t=new Ee(i,t),Dt,pr,Tr,Lr=-1,$n=!1,dn=null;for(Cn.lastIndex=0,x.m3u8=e,x.hasVariableRefs=Kr(e);(Dt=Cn.exec(e))!==null;){$n&&($n=!1,_t=new Ee(i,t),_t.start=Ye,_t.sn=de,_t.cc=Je,_t.level=r,q&&(_t.initSegment=q,_t.rawProgramDateTime=q.rawProgramDateTime,q.rawProgramDateTime=null,dn&&(_t.setByteRange(dn),dn=null)));const ta=Dt[1];if(ta){_t.duration=parseFloat(ta);const mi=(" "+Dt[2]).slice(1);_t.title=mi||null,_t.tagList.push(mi?["INF",ta,mi]:["INF",ta])}else if(Dt[3]){if(o(_t.duration)){_t.start=Ye,Tr&&xi(_t,Tr,x),_t.sn=de,_t.level=r,_t.cc=Je,j.push(_t);const mi=(" "+Dt[3]).slice(1);_t.relurl=Tn(x,mi),Zi(_t,ct),ct=_t,Ye+=_t.duration,de++,Re=0,$n=!0}}else if(Dt[4]){const mi=(" "+Dt[4]).slice(1);ct?_t.setByteRange(mi,ct):_t.setByteRange(mi)}else if(Dt[5])_t.rawProgramDateTime=(" "+Dt[5]).slice(1),_t.tagList.push(["PROGRAM-DATE-TIME",_t.rawProgramDateTime]),Lr===-1&&(Lr=j.length);else{if(Dt=Dt[0].match(fn),!Dt){B.warn("No matches on slow regex match for level playlist!");continue}for(pr=1;pr<Dt.length&&typeof Dt[pr]=="undefined";pr++);const mi=(" "+Dt[pr]).slice(1),Li=(" "+Dt[pr+1]).slice(1),Ga=Dt[pr+2]?(" "+Dt[pr+2]).slice(1):"";switch(mi){case"PLAYLIST-TYPE":x.type=Li.toUpperCase();break;case"MEDIA-SEQUENCE":de=x.startSN=parseInt(Li);break;case"SKIP":{const ia=new J(Li);Vr(x,ia,["RECENTLY-REMOVED-DATERANGES"]);const $a=ia.decimalInteger("SKIPPED-SEGMENTS");if(o($a)){x.skippedSegments=$a;for(let Ra=$a;Ra--;)j.unshift(null);de+=$a}const Ka=ia.enumeratedString("RECENTLY-REMOVED-DATERANGES");Ka&&(x.recentlyRemovedDateranges=Ka.split(" "));break}case"TARGETDURATION":x.targetduration=Math.max(parseInt(Li),1);break;case"VERSION":x.version=parseInt(Li);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":x.live=!1;break;case"#":(Li||Ga)&&_t.tagList.push(Ga?[Li,Ga]:[Li]);break;case"DISCONTINUITY":Je++,_t.tagList.push(["DIS"]);break;case"GAP":_t.gap=!0,_t.tagList.push([mi]);break;case"BITRATE":_t.tagList.push([mi,Li]);break;case"DATERANGE":{const ia=new J(Li);Vr(x,ia,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Vr(x,ia,ia.clientAttrs);const $a=new Le(ia,x.dateRanges[ia.ID]);$a.isValid||x.skippedSegments?x.dateRanges[$a.id]=$a:B.warn(`Ignoring invalid DATERANGE tag: "${Li}"`),_t.tagList.push(["EXT-X-DATERANGE",Li]);break}case"DEFINE":{{const ia=new J(Li);Vr(x,ia,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in ia?Un(x,ia,l):Sn(x,ia,t)}break}case"DISCONTINUITY-SEQUENCE":Je=parseInt(Li);break;case"KEY":{const ia=ii(Li,t,x);if(ia.isSupported()){if(ia.method==="NONE"){Tr=void 0;break}Tr||(Tr={}),Tr[ia.keyFormat]&&(Tr=n({},Tr)),Tr[ia.keyFormat]=ia}else B.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Li}"`);break}case"START":x.startTimeOffset=ri(Li);break;case"MAP":{const ia=new J(Li);if(Vr(x,ia,["BYTERANGE","URI"]),_t.duration){const $a=new Ee(i,t);ua($a,ia,r,Tr),q=$a,_t.initSegment=q,q.rawProgramDateTime&&!_t.rawProgramDateTime&&(_t.rawProgramDateTime=q.rawProgramDateTime)}else{const $a=_t.byteRangeEndOffset;if($a){const Ka=_t.byteRangeStartOffset;dn=`${$a-Ka}@${Ka}`}else dn=null;ua(_t,ia,r,Tr),q=_t,$n=!0}break}case"SERVER-CONTROL":{const ia=new J(Li);x.canBlockReload=ia.bool("CAN-BLOCK-RELOAD"),x.canSkipUntil=ia.optionalFloat("CAN-SKIP-UNTIL",0),x.canSkipDateRanges=x.canSkipUntil>0&&ia.bool("CAN-SKIP-DATERANGES"),x.partHoldBack=ia.optionalFloat("PART-HOLD-BACK",0),x.holdBack=ia.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const ia=new J(Li);x.partTarget=ia.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ia=x.partList;ia||(ia=x.partList=[]);const $a=Re>0?ia[ia.length-1]:void 0,Ka=Re++,Ra=new J(Li);Vr(x,Ra,["BYTERANGE","URI"]);const Is=new oe(Ra,_t,t,Ka,$a);ia.push(Is),_t.duration+=Is.duration;break}case"PRELOAD-HINT":{const ia=new J(Li);Vr(x,ia,["URI"]),x.preloadHint=ia;break}case"RENDITION-REPORT":{const ia=new J(Li);Vr(x,ia,["URI"]),x.renditionReports=x.renditionReports||[],x.renditionReports.push(ia);break}default:B.warn(`line parsed but not handled: ${Dt}`);break}}}ct&&!ct.relurl?(j.pop(),Ye-=ct.duration,x.partList&&(x.fragmentHint=ct)):x.partList&&(Zi(_t,ct),_t.cc=Je,x.fragmentHint=_t,Tr&&xi(_t,Tr,x));const gi=j.length,Kn=j[0],Si=j[gi-1];if(Ye+=x.skippedSegments*x.targetduration,Ye>0&&gi&&Si){x.averagetargetduration=Ye/gi;const ta=Si.sn;x.endSN=ta!=="initSegment"?ta:0,x.live||(Si.endList=!0),Kn&&(x.startCC=Kn.cc)}else x.endSN=0,x.startCC=0;return x.fragmentHint&&(Ye+=x.fragmentHint.duration),x.totalduration=Ye,x.endCC=Je,Lr>0&&Bi(j,Lr),x}}function ii(f,e,t){var r,i;const s=new J(f);Vr(t,s,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const l=(r=s.METHOD)!=null?r:"",x=s.URI,j=s.hexadecimalInteger("IV"),q=s.KEYFORMATVERSIONS,de=(i=s.KEYFORMAT)!=null?i:"identity";x&&s.IV&&!j&&B.error(`Invalid IV: ${s.IV}`);const Re=x?hi.resolve(x,e):"",Ye=(q||"1").split("/").map(Number).filter(Number.isFinite);return new mn(l,Re,de,Ye,j)}function ri(f){const t=new J(f).decimalFloatingPoint("TIME-OFFSET");return o(t)?t:null}function bi(f,e){let t=(f||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const i=t.filter(s=>bn(s,r));i.length&&(e[`${r}Codec`]=i.join(","),t=t.filter(s=>i.indexOf(s)===-1))}),e.unknownCodecs=t}function Ti(f,e,t){const r=e[t];r&&(f[t]=r)}function Bi(f,e){let t=f[e];for(let r=e;r--;){const i=f[r];if(!i)return;i.programDateTime=t.programDateTime-i.duration*1e3,t=i}}function Zi(f,e){f.rawProgramDateTime?f.programDateTime=Date.parse(f.rawProgramDateTime):e!=null&&e.programDateTime&&(f.programDateTime=e.endProgramDateTime),o(f.programDateTime)||(f.programDateTime=null,f.rawProgramDateTime=null)}function ua(f,e,t,r){f.relurl=e.URI,e.BYTERANGE&&f.setByteRange(e.BYTERANGE),f.level=t,f.sn="initSegment",r&&(f.levelkeys=r),f.initSegment=null}function xi(f,e,t){f.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(i=>e[i].isCommonEncryption)&&r.push(f)}var gn={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Ht={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Fn(f){const{type:e}=f;switch(e){case gn.AUDIO_TRACK:return Ht.AUDIO;case gn.SUBTITLE_TRACK:return Ht.SUBTITLE;default:return Ht.MAIN}}function Zn(f,e){let t=f.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Ei{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(a.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(a.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,r=t.pLoader,i=t.loader,s=r||i,l=new s(t);return this.loaders[e.type]=l,l}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:r}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:gn.MANIFEST,url:r,deliveryDirectives:null})}onLevelLoading(e,t){const{id:r,level:i,pathwayId:s,url:l,deliveryDirectives:x}=t;this.load({id:r,level:i,pathwayId:s,responseType:"text",type:gn.LEVEL,url:l,deliveryDirectives:x})}onAudioTrackLoading(e,t){const{id:r,groupId:i,url:s,deliveryDirectives:l}=t;this.load({id:r,groupId:i,level:null,responseType:"text",type:gn.AUDIO_TRACK,url:s,deliveryDirectives:l})}onSubtitleTrackLoading(e,t){const{id:r,groupId:i,url:s,deliveryDirectives:l}=t;this.load({id:r,groupId:i,level:null,responseType:"text",type:gn.SUBTITLE_TRACK,url:s,deliveryDirectives:l})}load(e){var t;const r=this.hls.config;let i=this.getInternalLoader(e);if(i){const q=i.context;if(q&&q.url===e.url&&q.level===e.level){B.trace("[playlist-loader]: playlist request ongoing");return}B.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),i.abort()}let s;if(e.type===gn.MANIFEST?s=r.manifestLoadPolicy.default:s=n({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),o((t=e.deliveryDirectives)==null?void 0:t.part)){let q;if(e.type===gn.LEVEL&&e.level!==null?q=this.hls.levels[e.level].details:e.type===gn.AUDIO_TRACK&&e.id!==null?q=this.hls.audioTracks[e.id].details:e.type===gn.SUBTITLE_TRACK&&e.id!==null&&(q=this.hls.subtitleTracks[e.id].details),q){const de=q.partTarget,Re=q.targetduration;if(de&&Re){const Ye=Math.max(de*3,Re*.8)*1e3;s=n({},s,{maxTimeToFirstByteMs:Math.min(Ye,s.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Ye,s.maxTimeToFirstByteMs)})}}}const l=s.errorRetry||s.timeoutRetry||{},x={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},j={onSuccess:(q,de,Re,Ye)=>{const Je=this.getInternalLoader(Re);this.resetInternalLoader(Re.type);const ct=q.data;if(ct.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(q,Re,new Error("no EXTM3U delimiter"),Ye||null,de);return}de.parsing.start=performance.now(),hi.isMediaPlaylist(ct)?this.handleTrackOrLevelPlaylist(q,de,Re,Ye||null,Je):this.handleMasterPlaylist(q,de,Re,Ye)},onError:(q,de,Re,Ye)=>{this.handleNetworkError(de,Re,!1,q,Ye)},onTimeout:(q,de,Re)=>{this.handleNetworkError(de,Re,!0,void 0,q)}};i.load(e,x,j)}handleMasterPlaylist(e,t,r,i){const s=this.hls,l=e.data,x=Zn(e,r),j=hi.parseMasterPlaylist(l,x);if(j.playlistParsingError){this.handleManifestParsingError(e,r,j.playlistParsingError,i,t);return}const{contentSteering:q,levels:de,sessionData:Re,sessionKeys:Ye,startTimeOffset:Je,variableList:ct}=j;this.variableList=ct;const{AUDIO:_t=[],SUBTITLES:Dt,"CLOSED-CAPTIONS":pr}=hi.parseMasterPlaylistMedia(l,x,j);_t.length&&!_t.some(Lr=>!Lr.url)&&de[0].audioCodec&&!de[0].attrs.AUDIO&&(B.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),_t.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new J({}),bitrate:0,url:""})),s.trigger(a.MANIFEST_LOADED,{levels:de,audioTracks:_t,subtitles:Dt,captions:pr,contentSteering:q,url:x,stats:t,networkDetails:i,sessionData:Re,sessionKeys:Ye,startTimeOffset:Je,variableList:ct})}handleTrackOrLevelPlaylist(e,t,r,i,s){const l=this.hls,{id:x,level:j,type:q}=r,de=Zn(e,r),Re=0,Ye=o(j)?j:o(x)?x:0,Je=Fn(r),ct=hi.parseLevelPlaylist(e.data,de,Ye,Je,Re,this.variableList);if(q===gn.MANIFEST){const _t={attrs:new J({}),bitrate:0,details:ct,name:"",url:de};l.trigger(a.MANIFEST_LOADED,{levels:[_t],audioTracks:[],url:de,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=ct,this.handlePlaylistLoaded(ct,e,t,r,i,s)}handleManifestParsingError(e,t,r,i,s){this.hls.trigger(a.ERROR,{type:d.NETWORK_ERROR,details:m.MANIFEST_PARSING_ERROR,fatal:t.type===gn.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:i,stats:s})}handleNetworkError(e,t,r=!1,i,s){let l=`A network ${r?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===gn.LEVEL?l+=`: ${e.level} id: ${e.id}`:(e.type===gn.AUDIO_TRACK||e.type===gn.SUBTITLE_TRACK)&&(l+=` id: ${e.id} group-id: "${e.groupId}"`);const x=new Error(l);B.warn(`[playlist-loader]: ${l}`);let j=m.UNKNOWN,q=!1;const de=this.getInternalLoader(e);switch(e.type){case gn.MANIFEST:j=r?m.MANIFEST_LOAD_TIMEOUT:m.MANIFEST_LOAD_ERROR,q=!0;break;case gn.LEVEL:j=r?m.LEVEL_LOAD_TIMEOUT:m.LEVEL_LOAD_ERROR,q=!1;break;case gn.AUDIO_TRACK:j=r?m.AUDIO_TRACK_LOAD_TIMEOUT:m.AUDIO_TRACK_LOAD_ERROR,q=!1;break;case gn.SUBTITLE_TRACK:j=r?m.SUBTITLE_TRACK_LOAD_TIMEOUT:m.SUBTITLE_LOAD_ERROR,q=!1;break}de&&this.resetInternalLoader(e.type);const Re={type:d.NETWORK_ERROR,details:j,fatal:q,url:e.url,loader:de,context:e,error:x,networkDetails:t,stats:s};if(i){const Ye=(t==null?void 0:t.url)||e.url;Re.response=ie({url:Ye,data:void 0},i)}this.hls.trigger(a.ERROR,Re)}handlePlaylistLoaded(e,t,r,i,s,l){const x=this.hls,{type:j,level:q,id:de,groupId:Re,deliveryDirectives:Ye}=i,Je=Zn(t,i),ct=Fn(i),_t=typeof i.level=="number"&&ct===Ht.MAIN?q:void 0;if(!e.fragments.length){const pr=new Error("No Segments found in Playlist");x.trigger(a.ERROR,{type:d.NETWORK_ERROR,details:m.LEVEL_EMPTY_ERROR,fatal:!1,url:Je,error:pr,reason:pr.message,response:t,context:i,level:_t,parent:ct,networkDetails:s,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Dt=e.playlistParsingError;if(Dt){x.trigger(a.ERROR,{type:d.NETWORK_ERROR,details:m.LEVEL_PARSING_ERROR,fatal:!1,url:Je,error:Dt,reason:Dt.message,response:t,context:i,level:_t,parent:ct,networkDetails:s,stats:r});return}switch(e.live&&l&&(l.getCacheAge&&(e.ageHeader=l.getCacheAge()||0),(!l.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),j){case gn.MANIFEST:case gn.LEVEL:x.trigger(a.LEVEL_LOADED,{details:e,level:_t||0,id:de||0,stats:r,networkDetails:s,deliveryDirectives:Ye});break;case gn.AUDIO_TRACK:x.trigger(a.AUDIO_TRACK_LOADED,{details:e,id:de||0,groupId:Re||"",stats:r,networkDetails:s,deliveryDirectives:Ye});break;case gn.SUBTITLE_TRACK:x.trigger(a.SUBTITLE_TRACK_LOADED,{details:e,id:de||0,groupId:Re||"",stats:r,networkDetails:s,deliveryDirectives:Ye});break}}}function ji(f,e){let t;try{t=new Event("addtrack")}catch(r){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=f,e.dispatchEvent(t)}function da(f,e){const t=f.mode;if(t==="disabled"&&(f.mode="hidden"),f.cues&&!f.cues.getCueById(e.id))try{if(f.addCue(e),!f.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(r){B.debug(`[texttrack-utils]: ${r}`);try{const i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,f.addCue(i)}catch(i){B.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}t==="disabled"&&(f.mode=t)}function Ea(f){const e=f.mode;if(e==="disabled"&&(f.mode="hidden"),f.cues)for(let t=f.cues.length;t--;)f.removeCue(f.cues[t]);e==="disabled"&&(f.mode=e)}function qi(f,e,t,r){const i=f.mode;if(i==="disabled"&&(f.mode="hidden"),f.cues&&f.cues.length>0){const s=_i(f.cues,e,t);for(let l=0;l<s.length;l++)(!r||r(s[l]))&&f.removeCue(s[l])}i==="disabled"&&(f.mode=i)}function Sa(f,e){if(e<f[0].startTime)return 0;const t=f.length-1;if(e>f[t].endTime)return-1;let r=0,i=t;for(;r<=i;){const s=Math.floor((i+r)/2);if(e<f[s].startTime)i=s-1;else if(e>f[s].startTime&&r<t)r=s+1;else return s}return f[r].startTime-e<e-f[i].startTime?r:i}function _i(f,e,t){const r=[],i=Sa(f,e);if(i>-1)for(let s=i,l=f.length;s<l;s++){const x=f[s];if(x.startTime>=e&&x.endTime<=t)r.push(x);else if(x.startTime>t)return r}return r}function ai(f){const e=[];for(let t=0;t<f.length;t++){const r=f[t];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(f[t])}return e}var zi={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const na=.25;function Ca(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function ys(f,e,t,r,i){let s=new f(e,t,"");try{s.value=r,i&&(s.type=i)}catch(l){s=new f(e,t,JSON.stringify(i?ie({type:i},r):r))}return s}const oi=(()=>{const f=Ca();try{f&&new f(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function _a(f,e){return f.getTime()/1e3-e}function ga(f){return Uint8Array.from(f.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Ua{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(Ea(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const r=e[t];if(r.kind==="metadata"&&r.label==="id3")return ji(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:r,enableID3MetadataCues:i}}}=this;if(!r&&!i)return;const{samples:s}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=Ca();if(l)for(let x=0;x<s.length;x++){const j=s[x].type;if(j===zi.emsg&&!r||!i)continue;const q=Be(s[x].data);if(q){const de=s[x].pts;let Re=de+s[x].duration;Re>oi&&(Re=oi),Re-de<=0&&(Re=de+na);for(let Je=0;Je<q.length;Je++){const ct=q[Je];if(!te(ct)){this.updateId3CueEnds(de,j);const _t=ys(l,de,Re,ct,j);_t&&this.id3Track.addCue(_t)}}}}}updateId3CueEnds(e,t){var r;const i=(r=this.id3Track)==null?void 0:r.cues;if(i)for(let s=i.length;s--;){const l=i[s];l.type===t&&l.startTime<e&&l.endTime===oi&&(l.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:i}){const{id3Track:s,hls:l}=this;if(!l)return;const{config:{enableEmsgMetadataCues:x,enableID3MetadataCues:j}}=l;if(s&&(x||j)){let q;i==="audio"?q=de=>de.type===zi.audioId3&&j:i==="video"?q=de=>de.type===zi.emsg&&x:q=de=>de.type===zi.audioId3&&j||de.type===zi.emsg&&x,qi(s,t,r,q)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:r,id3Track:i}=this,{dateRanges:s}=t,l=Object.keys(s);if(i){const de=Object.keys(r).filter(Re=>!l.includes(Re));for(let Re=de.length;Re--;){const Ye=de[Re];Object.keys(r[Ye].cues).forEach(Je=>{i.removeCue(r[Ye].cues[Je])}),delete r[Ye]}}const x=t.fragments[t.fragments.length-1];if(l.length===0||!o(x==null?void 0:x.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const j=x.programDateTime/1e3-x.start,q=Ca();for(let de=0;de<l.length;de++){const Re=l[de],Ye=s[Re],Je=_a(Ye.startDate,j),ct=r[Re],_t=(ct==null?void 0:ct.cues)||{};let Dt=(ct==null?void 0:ct.durationKnown)||!1,pr=oi;const Tr=Ye.endDate;if(Tr)pr=_a(Tr,j),Dt=!0;else if(Ye.endOnNext&&!Dt){const $n=l.reduce((dn,gi)=>{if(gi!==Ye.id){const Kn=s[gi];if(Kn.class===Ye.class&&Kn.startDate>Ye.startDate&&(!dn||Ye.startDate<dn.startDate))return Kn}return dn},null);$n&&(pr=_a($n.startDate,j),Dt=!0)}const Lr=Object.keys(Ye.attr);for(let $n=0;$n<Lr.length;$n++){const dn=Lr[$n];if(!we(dn))continue;const gi=_t[dn];if(gi)Dt&&!ct.durationKnown&&(gi.endTime=pr);else if(q){let Kn=Ye.attr[dn];Ce(dn)&&(Kn=ga(Kn));const Si=ys(q,Je,pr,{key:dn,data:Kn},zi.dateRange);Si&&(Si.id=Re,this.id3Track.addCue(Si),_t[dn]=Si)}}r[Re]={cues:_t,dateRange:Ye,durationKnown:Dt}}}}class Cs{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:r,targetduration:i}=e,{liveSyncDuration:s,liveSyncDurationCount:l,lowLatencyMode:x}=this.config,j=this.hls.userConfig;let q=x&&r||t;(j.liveSyncDuration||j.liveSyncDurationCount||q===0)&&(q=s!==void 0?s:l*i);const de=i;return q+Math.min(this.stallCount*1,de)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,r=this.levelDetails;if(e===null||t===null||r===null)return null;const i=r.edge,s=e-t-this.edgeStalled,l=i-r.totalduration,x=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(l,s),x)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e,levelDetails:t}=this;if(!e||!t)return 0;const r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(a.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(a.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(a.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(a.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var r;t.details===m.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&B.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!t.live)return;const l=this.targetLatency;if(l===null)return;const x=r-l,j=Math.min(this.maxLatency,l+t.targetduration);if(x<j&&x>.05&&this.forwardBufferLength>1){const de=Math.min(2,Math.max(1,s)),Re=Math.round(2/(1+Math.exp(-.75*x-this.edgeStalled))*20)/20;e.playbackRate=Math.min(de,Math.max(1,Re))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const ns=["NONE","TYPE-0","TYPE-1",null];function Fa(f){return ns.indexOf(f)>-1}const Ni=["SDR","PQ","HLG"];function oa(f){return!!f&&Ni.indexOf(f)>-1}var fs={No:"",Yes:"YES",v2:"v2"};function is(f){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=f,i=r<e/2;return e&&i?t?fs.v2:fs.Yes:fs.No}class es{constructor(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class Yi{constructor(e){this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(t=>!!t).map(t=>t.substring(0,4)).join(","),this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return hs(this._audioGroups,e)}hasSubtitleGroup(e){return hs(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(t)===-1&&r.push(t)}else if(e==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(t)===-1&&r.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function hs(f,e){return!e||!f?!1:f.indexOf(e)!==-1}function aa(f,e){const t=e.startPTS;if(o(t)){let r=0,i;e.sn>f.sn?(r=t-f.start,i=f):(r=f.start-t,i=e),i.duration!==r&&(i.duration=r)}else e.sn>f.sn?f.cc===e.cc&&f.minEndPTS?e.start=f.start+(f.minEndPTS-f.start):e.start=f.start+f.duration:e.start=Math.max(f.start-e.duration,0)}function co(f,e,t,r,i,s){r-t<=0&&(B.warn("Fragment should have a positive duration",e),r=t+e.duration,s=i+e.duration);let x=t,j=r;const q=e.startPTS,de=e.endPTS;if(o(q)){const Dt=Math.abs(q-t);o(e.deltaPTS)?e.deltaPTS=Math.max(Dt,e.deltaPTS):e.deltaPTS=Dt,x=Math.max(t,q),t=Math.min(t,q),i=Math.min(i,e.startDTS),j=Math.min(r,de),r=Math.max(r,de),s=Math.max(s,e.endDTS)}const Re=t-e.start;e.start!==0&&(e.start=t),e.duration=r-e.start,e.startPTS=t,e.maxStartPTS=x,e.startDTS=i,e.endPTS=r,e.minEndPTS=j,e.endDTS=s;const Ye=e.sn;if(!f||Ye<f.startSN||Ye>f.endSN)return 0;let Je;const ct=Ye-f.startSN,_t=f.fragments;for(_t[ct]=e,Je=ct;Je>0;Je--)aa(_t[Je],_t[Je-1]);for(Je=ct;Je<_t.length-1;Je++)aa(_t[Je],_t[Je+1]);return f.fragmentHint&&aa(_t[_t.length-1],f.fragmentHint),f.PTSKnown=f.alignedSliding=!0,Re}function js(f,e){let t=null;const r=f.fragments;for(let x=r.length-1;x>=0;x--){const j=r[x].initSegment;if(j){t=j;break}}f.fragmentHint&&delete f.fragmentHint.endPTS;let i;xo(f,e,(x,j,q,de)=>{if(e.skippedSegments&&j.cc!==x.cc){const Re=x.cc-j.cc;for(let Ye=q;Ye<de.length;Ye++)de[Ye].cc+=Re}o(x.startPTS)&&o(x.endPTS)&&(j.start=j.startPTS=x.startPTS,j.startDTS=x.startDTS,j.maxStartPTS=x.maxStartPTS,j.endPTS=x.endPTS,j.endDTS=x.endDTS,j.minEndPTS=x.minEndPTS,j.duration=x.endPTS-x.startPTS,j.duration&&(i=j),e.PTSKnown=e.alignedSliding=!0),j.elementaryStreams=x.elementaryStreams,j.loader=x.loader,j.stats=x.stats,x.initSegment&&(j.initSegment=x.initSegment,t=x.initSegment)});const s=e.fragments;if(t&&(e.fragmentHint?s.concat(e.fragmentHint):s).forEach(j=>{var q;j&&(!j.initSegment||j.initSegment.relurl===((q=t)==null?void 0:q.relurl))&&(j.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(x=>!x),e.deltaUpdateFailed){B.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let x=e.skippedSegments;x--;)s.shift();e.startSN=s[0].sn}else e.canSkipDateRanges&&(e.dateRanges=wo(f.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=s[s.length-1].cc}As(f.partList,e.partList,(x,j)=>{j.elementaryStreams=x.elementaryStreams,j.stats=x.stats}),i?co(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS):as(f,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=f.driftStartTime,e.driftStart=f.driftStart;const l=e.advancedDateTime;if(e.advanced&&l){const x=e.edge;e.driftStart||(e.driftStartTime=l,e.driftStart=x),e.driftEndTime=l,e.driftEnd=x}else e.driftEndTime=f.driftEndTime,e.driftEnd=f.driftEnd,e.advancedDateTime=f.advancedDateTime}function wo(f,e,t){const r=n({},f);return t&&t.forEach(i=>{delete r[i]}),Object.keys(e).forEach(i=>{const s=new Le(e[i].attr,r[i]);s.isValid?r[i]=s:B.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[i].attr)}"`)}),r}function As(f,e,t){if(f&&e){let r=0;for(let i=0,s=f.length;i<=s;i++){const l=f[i],x=e[i+r];l&&x&&l.index===x.index&&l.fragment.sn===x.fragment.sn?t(l,x):r--}}}function xo(f,e,t){const r=e.skippedSegments,i=Math.max(f.startSN,e.startSN)-e.startSN,s=(f.fragmentHint?1:0)+(r?e.endSN:Math.min(f.endSN,e.endSN))-e.startSN,l=e.startSN-f.startSN,x=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,j=f.fragmentHint?f.fragments.concat(f.fragmentHint):f.fragments;for(let q=i;q<=s;q++){const de=j[l+q];let Re=x[q];r&&!Re&&q<r&&(Re=e.fragments[q]=de),de&&Re&&t(de,Re,q,x)}}function as(f,e){const t=e.startSN+e.skippedSegments-f.startSN,r=f.fragments;t<0||t>=r.length||Yn(e,r[t].start)}function Yn(f,e){if(e){const t=f.fragments;for(let r=f.skippedSegments;r<t.length;r++)t[r].start+=e;f.fragmentHint&&(f.fragmentHint.start+=e)}}function Da(f,e=1/0){let t=1e3*f.targetduration;if(f.updated){const r=f.fragments;if(r.length&&t*4>e){const s=r[r.length-1].duration*1e3;s<t&&(t=s)}}else t/=2;return Math.round(t)}function io(f,e,t){if(!(f!=null&&f.details))return null;const r=f.details;let i=r.fragments[e-r.startSN];return i||(i=r.fragmentHint,i&&i.sn===e)?i:e<r.startSN&&t&&t.sn===e?t:null}function Vi(f,e,t){var r;return f!=null&&f.details?ea((r=f.details)==null?void 0:r.partList,e,t):null}function ea(f,e,t){if(f)for(let r=f.length;r--;){const i=f[r];if(i.index===t&&i.fragment.sn===e)return i}return null}function Ki(f){f.forEach((e,t)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(i=>{i.level=t})})}function ki(f){switch(f.details){case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_TIMEOUT:case m.LEVEL_LOAD_TIMEOUT:case m.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function ya(f,e){const t=ki(e);return f.default[`${t?"timeout":"error"}Retry`]}function Pa(f,e){const t=f.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*f.retryDelayMs,f.maxRetryDelayMs)}function Os(f){return ie(ie({},f),{errorRetry:null,timeoutRetry:null})}function us(f,e,t,r){if(!f)return!1;const i=r==null?void 0:r.code,s=e<f.maxNumRetry&&(bs(i)||!!t);return f.shouldRetry?f.shouldRetry(f,e,t,r,s):s}function bs(f){return f===0&&navigator.onLine===!1||!!f&&(f<400||f>499)}const ts={search:function(f,e){let t=0,r=f.length-1,i=null,s=null;for(;t<=r;){i=(t+r)/2|0,s=f[i];const l=e(s);if(l>0)t=i+1;else if(l<0)r=i-1;else return s}return null}};function Eo(f,e,t){if(e===null||!Array.isArray(f)||!f.length||!o(e))return null;const r=f[0].programDateTime;if(e<(r||0))return null;const i=f[f.length-1].endProgramDateTime;if(e>=(i||0))return null;t=t||0;for(let s=0;s<f.length;++s){const l=f[s];if(Ps(e,t,l))return l}return null}function po(f,e,t=0,r=0,i=.005){let s=null;if(f){s=e[f.sn-e[0].sn+1]||null;const x=f.endDTS-t;x>0&&x<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(s=e[0]);if(s&&((!f||f.level===s.level)&&$s(t,r,s)===0||qs(s,f,Math.min(i,r))))return s;const l=ts.search(e,$s.bind(null,t,r));return l&&(l!==f||!s)?l:s}function qs(f,e,t){if(e&&e.start===0&&e.level<f.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((i,s)=>(s[0]==="INF"&&(i+=parseFloat(s[1])),i),t);return f.start<=r}return!1}function $s(f=0,e=0,t){if(t.start<=f&&t.start+t.duration>f)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=f?1:t.start-r>f&&t.start?-1:0}function Ps(f,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>f}function Fi(f,e){return ts.search(f,t=>t.cc<e?1:t.cc>e?-1:0)}var pi={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},la={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class ps{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=B.log.bind(B,"[info]:"),this.warn=B.warn.bind(B,"[warning]:"),this.error=B.error.bind(B,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(a.ERROR,this.onError,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(a.ERROR,this.onError,this),e.off(a.ERROR,this.onErrorOut,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===Ht.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var r,i;if(t.fatal)return;const s=this.hls,l=t.context;switch(t.details){case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case m.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction={action:pi.DoNothing,flags:la.None};return}case m.FRAG_GAP:case m.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=pi.SendAlternateToPenaltyBox;return}case m.LEVEL_EMPTY_ERROR:case m.LEVEL_PARSING_ERROR:{var x,j;const q=t.parent===Ht.MAIN?t.level:s.loadLevel;t.details===m.LEVEL_EMPTY_ERROR&&((x=t.context)!=null&&(j=x.levelDetails)!=null&&j.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,q):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,q))}return;case m.LEVEL_LOAD_ERROR:case m.LEVEL_LOAD_TIMEOUT:typeof(l==null?void 0:l.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,l.level));return;case m.AUDIO_TRACK_LOAD_ERROR:case m.AUDIO_TRACK_LOAD_TIMEOUT:case m.SUBTITLE_LOAD_ERROR:case m.SUBTITLE_TRACK_LOAD_TIMEOUT:if(l){const q=s.levels[s.loadLevel];if(q&&(l.type===gn.AUDIO_TRACK&&q.hasAudioGroup(l.groupId)||l.type===gn.SUBTITLE_TRACK&&q.hasSubtitleGroup(l.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.loadLevel),t.errorAction.action=pi.SendAlternateToPenaltyBox,t.errorAction.flags=la.MoveAllAlternatesMatchingHost;return}}return;case m.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const q=s.levels[s.loadLevel],de=q==null?void 0:q.attrs["HDCP-LEVEL"];de?t.errorAction={action:pi.SendAlternateToPenaltyBox,flags:la.MoveAllAlternatesMatchingHDCP,hdcpLevel:de}:this.keySystemError(t)}return;case m.BUFFER_ADD_CODEC_ERROR:case m.REMUX_ALLOC_ERROR:case m.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(i=t.level)!=null?i:s.loadLevel);return;case m.INTERNAL_EXCEPTION:case m.BUFFER_APPENDING_ERROR:case m.BUFFER_FULL_ERROR:case m.LEVEL_SWITCH_ERROR:case m.BUFFER_STALLED_ERROR:case m.BUFFER_SEEK_OVER_HOLE:case m.BUFFER_NUDGE_ON_STALL:t.errorAction={action:pi.DoNothing,flags:la.None};return}t.type===d.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const r=this.hls,i=ya(r.config.playlistLoadPolicy,e),s=this.playlistError++;if(us(i,s,ki(e),e.response))return{action:pi.RetryRequest,flags:la.None,retryConfig:i,retryCount:s};const x=this.getLevelSwitchAction(e,t);return i&&(x.retryConfig=i,x.retryCount=s),x}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),i=t.levels[r],{fragLoadPolicy:s,keyLoadPolicy:l}=t.config,x=ya(e.details.startsWith("key")?l:s,e),j=t.levels.reduce((de,Re)=>de+Re.fragmentError,0);if(i&&(e.details!==m.FRAG_GAP&&i.fragmentError++,us(x,j,ki(e),e.response)))return{action:pi.RetryRequest,flags:la.None,retryConfig:x,retryCount:j};const q=this.getLevelSwitchAction(e,r);return x&&(q.retryConfig=x,q.retryCount=j),q}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const i=this.hls.levels[t];if(i){var s,l;const q=e.details;i.loadError++,q===m.BUFFER_APPEND_ERROR&&i.fragmentError++;let de=-1;const{levels:Re,loadLevel:Ye,minAutoLevel:Je,maxAutoLevel:ct}=r;r.autoLevelEnabled||(r.loadLevel=-1);const _t=(s=e.frag)==null?void 0:s.type,pr=(_t===Ht.AUDIO&&q===m.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(q===m.BUFFER_ADD_CODEC_ERROR||q===m.BUFFER_APPEND_ERROR))&&Re.some(({audioCodec:gi})=>i.audioCodec!==gi),Lr=e.sourceBufferName==="video"&&(q===m.BUFFER_ADD_CODEC_ERROR||q===m.BUFFER_APPEND_ERROR)&&Re.some(({codecSet:gi,audioCodec:Kn})=>i.codecSet!==gi&&i.audioCodec===Kn),{type:$n,groupId:dn}=(l=e.context)!=null?l:{};for(let gi=Re.length;gi--;){const Kn=(gi+Ye)%Re.length;if(Kn!==Ye&&Kn>=Je&&Kn<=ct&&Re[Kn].loadError===0){var x,j;const Si=Re[Kn];if(q===m.FRAG_GAP&&_t===Ht.MAIN&&e.frag){const ta=Re[Kn].details;if(ta){const mi=po(e.frag,ta.fragments,e.frag.start);if(mi!=null&&mi.gap)continue}}else{if($n===gn.AUDIO_TRACK&&Si.hasAudioGroup(dn)||$n===gn.SUBTITLE_TRACK&&Si.hasSubtitleGroup(dn))continue;if(_t===Ht.AUDIO&&(x=i.audioGroups)!=null&&x.some(ta=>Si.hasAudioGroup(ta))||_t===Ht.SUBTITLE&&(j=i.subtitleGroups)!=null&&j.some(ta=>Si.hasSubtitleGroup(ta))||pr&&i.audioCodec===Si.audioCodec||!pr&&i.audioCodec!==Si.audioCodec||Lr&&i.codecSet===Si.codecSet)continue}de=Kn;break}}if(de>-1&&r.loadLevel!==de)return e.levelRetry=!0,this.playlistError=0,{action:pi.SendAlternateToPenaltyBox,flags:la.None,nextAutoLevel:de}}return{action:pi.SendAlternateToPenaltyBox,flags:la.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case pi.DoNothing:break;case pi.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==m.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case pi.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,r=e.errorAction;if(!r)return;const{flags:i,hdcpLevel:s,nextAutoLevel:l}=r;switch(i){case la.None:this.switchLevel(e,l);break;case la.MoveAllAlternatesMatchingHDCP:s&&(t.maxHdcpLevel=ns[ns.indexOf(s)-1],r.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}r.resolved||this.switchLevel(e,l)}switchLevel(e,t){t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}class Oa{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=B.log.bind(B,`${t}:`),this.warn=B.warn.bind(B,`${t}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,r){const i=t==null?void 0:t.renditionReports;if(i){let s=-1;for(let l=0;l<i.length;l++){const x=i[l];let j;try{j=new self.URL(x.URI,t.url).href}catch(q){B.warn(`Could not construct new URL for Rendition Report: ${q}`),j=x.URI||""}if(j===e){s=l;break}else j===e.substring(0,j.length)&&(s=l)}if(s!==-1){const l=i[s],x=parseInt(l["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let j=parseInt(l["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const de=Math.min(t.age-t.partTarget,t.targetduration);j>=0&&de>t.partTarget&&(j+=1)}const q=r&&is(r);return new es(x,j>=0?j:void 0,q)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,r){const{details:i,stats:s}=t,l=self.performance.now(),x=s.loading.first?Math.max(0,l-s.loading.first):0;if(i.advancedDateTime=Date.now()-x,i.live||r!=null&&r.live){if(i.reloaded(r),r&&this.log(`live playlist ${e} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),r&&i.fragments.length>0&&js(r,i),!this.canLoad||!i.live)return;let j,q,de;if(i.canBlockReload&&i.endSN&&i.advanced){const Dt=this.hls.config.lowLatencyMode,pr=i.lastPartSn,Tr=i.endSN,Lr=i.lastPartIndex,$n=Lr!==-1,dn=pr===Tr,gi=Dt?0:Lr;$n?(q=dn?Tr+1:pr,de=dn?gi:Lr+1):q=Tr+1;const Kn=i.age,Si=Kn+i.ageHeader;let ta=Math.min(Si-i.partTarget,i.targetduration*1.5);if(ta>0){if(r&&ta>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${ta} with playlist age: ${i.age}`),ta=0;else{const mi=Math.floor(ta/i.targetduration);if(q+=mi,de!==void 0){const Li=Math.round(ta%i.targetduration/i.partTarget);de+=Li}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${Kn.toFixed(2)}s goal: ${ta} skip sn ${mi} to part ${de}`)}i.tuneInGoal=ta}if(j=this.getDeliveryDirectives(i,t.deliveryDirectives,q,de),Dt||!dn){this.loadPlaylist(j);return}}else(i.canBlockReload||i.canSkipUntil)&&(j=this.getDeliveryDirectives(i,t.deliveryDirectives,q,de));const Re=this.hls.mainForwardBufferInfo,Ye=Re?Re.end-Re.len:0,Je=(i.edge-Ye)*1e3,ct=Da(i,Je);i.updated&&l>this.requestScheduled+ct&&(this.requestScheduled=s.loading.start),q!==void 0&&i.canBlockReload?this.requestScheduled=s.loading.first+ct-(i.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+ct<l?this.requestScheduled=l:this.requestScheduled-l<=0&&(this.requestScheduled+=ct);let _t=this.requestScheduled-l;_t=Math.max(0,_t),this.log(`reload live playlist ${e} in ${Math.round(_t)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(j),_t)}else this.clearTimer()}getDeliveryDirectives(e,t,r,i){let s=is(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,i=t.part,s=fs.No),new es(r,i,s)}checkRetry(e){const t=e.details,r=ki(e),i=e.errorAction,{action:s,retryCount:l=0,retryConfig:x}=i||{},j=!!i&&!!x&&(s===pi.RetryRequest||!i.resolved&&s===pi.SendAlternateToPenaltyBox);if(j){var q;if(this.requestScheduled=-1,l>=x.maxNumRetry)return!1;if(r&&(q=e.context)!=null&&q.deliveryDirectives)this.warn(`Retrying playlist loading ${l+1}/${x.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const de=Pa(x,l);this.timer=self.setTimeout(()=>this.loadPlaylist(),de),this.warn(`Retrying playlist loading ${l+1}/${x.maxNumRetry} after "${t}" in ${de}ms`)}e.levelRetry=!0,i.resolved=!0}return j}}class ks{constructor(e,t=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=r}sample(e,t){const r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class Gs{constructor(e,t,r,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new ks(e),this.fast_=new ks(t),this.defaultTTFB_=i,this.ttfb_=new ks(e)}update(e,t){const{slow_:r,fast_:i,ttfb_:s}=this;r.halfLife!==e&&(this.slow_=new ks(e,r.getEstimate(),r.getTotalWeight())),i.halfLife!==t&&(this.fast_=new ks(t,i.getEstimate(),i.getTotalWeight())),s.halfLife!==e&&(this.ttfb_=new ks(e,s.getEstimate(),s.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const r=8*t,i=e/1e3,s=r/i;this.fast_.sample(i,s),this.slow_.sample(i,s)}sampleTTFB(e){const t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}const mo={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Ns={};function Ii(f,e,t,r,i,s){const l=f.audioCodec?f.audioGroups:null,x=s==null?void 0:s.audioCodec,j=s==null?void 0:s.channels,q=j?parseInt(j):x?1/0:2;let de=null;if(l!=null&&l.length)try{l.length===1&&l[0]?de=e.groups[l[0]].channels:de=l.reduce((Re,Ye)=>{if(Ye){const Je=e.groups[Ye];if(!Je)throw new Error(`Audio track group ${Ye} not found`);Object.keys(Je.channels).forEach(ct=>{Re[ct]=(Re[ct]||0)+Je.channels[ct]})}return Re},{2:0})}catch(Re){return!0}return f.videoCodec!==void 0&&(f.width>1920&&f.height>1088||f.height>1920&&f.width>1088||f.frameRate>Math.max(r,30)||f.videoRange!=="SDR"&&f.videoRange!==t||f.bitrate>Math.max(i,8e6))||!!de&&o(q)&&Object.keys(de).some(Re=>parseInt(Re)>q)}function kl(f,e,t){const r=f.videoCodec,i=f.audioCodec;if(!r||!i||!t)return Promise.resolve(mo);const s={width:f.width,height:f.height,bitrate:Math.ceil(Math.max(f.bitrate*.9,f.averageBitrate)),framerate:f.frameRate||30},l=f.videoRange;l!=="SDR"&&(s.transferFunction=l.toLowerCase());const x=r.split(",").map(j=>({type:"media-source",video:ie(ie({},s),{},{contentType:Ir(j,"video")})}));return i&&f.audioGroups&&f.audioGroups.forEach(j=>{var q;j&&((q=e.groups[j])==null||q.tracks.forEach(de=>{if(de.groupId===j){const Re=de.channels||"",Ye=parseFloat(Re);o(Ye)&&Ye>2&&x.push.apply(x,i.split(",").map(Je=>({type:"media-source",audio:{contentType:Ir(Je,"audio"),channels:""+Ye}})))}}))}),Promise.all(x.map(j=>{const q=Ys(j);return Ns[q]||(Ns[q]=t.decodingInfo(j))})).then(j=>({supported:!j.some(q=>!q.supported),configurations:x,decodingInfoResults:j})).catch(j=>({supported:!1,configurations:x,decodingInfoResults:[],error:j}))}function Ys(f){const{audio:e,video:t}=f,r=t||e;if(r){const i=r.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${i}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${i}`}return""}function il(){if(typeof matchMedia=="function"){const f=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(f.media!==e.media)return f.matches===!0}return!1}function ko(f,e){let t=!1,r=[];return f&&(t=f!=="SDR",r=[f]),e&&(r=e.allowedVideoRanges||Ni.slice(0),t=e.preferHDR!==void 0?e.preferHDR:il(),t?r=r.filter(i=>i!=="SDR"):r=["SDR"]),{preferHDR:t,allowedVideoRanges:r}}function Ao(f,e,t,r,i){const s=Object.keys(f),l=r==null?void 0:r.channels,x=r==null?void 0:r.audioCodec,j=l&&parseInt(l)===2;let q=!0,de=!1,Re=1/0,Ye=1/0,Je=1/0,ct=0,_t=[];const{preferHDR:Dt,allowedVideoRanges:pr}=ko(e,i);for(let dn=s.length;dn--;){const gi=f[s[dn]];q=gi.channels[2]>0,Re=Math.min(Re,gi.minHeight),Ye=Math.min(Ye,gi.minFramerate),Je=Math.min(Je,gi.minBitrate);const Kn=pr.filter(Si=>gi.videoRanges[Si]>0);Kn.length>0&&(de=!0,_t=Kn)}Re=o(Re)?Re:0,Ye=o(Ye)?Ye:0;const Tr=Math.max(1080,Re),Lr=Math.max(30,Ye);return Je=o(Je)?Je:t,t=Math.max(Je,t),de||(e=void 0,_t=[]),{codecSet:s.reduce((dn,gi)=>{const Kn=f[gi];if(gi===dn)return dn;if(Kn.minBitrate>t)return Ba(gi,`min bitrate of ${Kn.minBitrate} > current estimate of ${t}`),dn;if(!Kn.hasDefaultAudio)return Ba(gi,"no renditions with default or auto-select sound found"),dn;if(x&&gi.indexOf(x.substring(0,4))%5!==0)return Ba(gi,`audio codec preference "${x}" not found`),dn;if(l&&!j){if(!Kn.channels[l])return Ba(gi,`no renditions with ${l} channel sound found (channels options: ${Object.keys(Kn.channels)})`),dn}else if((!x||j)&&q&&Kn.channels[2]===0)return Ba(gi,"no renditions with stereo sound found"),dn;return Kn.minHeight>Tr?(Ba(gi,`min resolution of ${Kn.minHeight} > maximum of ${Tr}`),dn):Kn.minFramerate>Lr?(Ba(gi,`min framerate of ${Kn.minFramerate} > maximum of ${Lr}`),dn):_t.some(Si=>Kn.videoRanges[Si]>0)?Kn.maxScore<ct?(Ba(gi,`max score of ${Kn.maxScore} < selected max of ${ct}`),dn):dn&&(Mr(gi)>=Mr(dn)||Kn.fragmentError>f[dn].fragmentError)?dn:(ct=Kn.maxScore,gi):(Ba(gi,`no variants with VIDEO-RANGE of ${JSON.stringify(_t)} found`),dn)},void 0),videoRanges:_t,preferHDR:Dt,minFramerate:Ye,minBitrate:Je}}function Ba(f,e){B.log(`[abr] start candidates with "${f}" ignored because ${e}`)}function vl(f){return f.reduce((e,t)=>{let r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);const i=t.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function yl(f,e,t,r){return f.slice(t,r+1).reduce((i,s)=>{if(!s.codecSet)return i;const l=s.audioGroups;let x=i[s.codecSet];x||(i[s.codecSet]=x={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),x.minBitrate=Math.min(x.minBitrate,s.bitrate);const j=Math.min(s.height,s.width);return x.minHeight=Math.min(x.minHeight,j),x.minFramerate=Math.min(x.minFramerate,s.frameRate),x.maxScore=Math.max(x.maxScore,s.score),x.fragmentError+=s.fragmentError,x.videoRanges[s.videoRange]=(x.videoRanges[s.videoRange]||0)+1,l&&l.forEach(q=>{if(!q)return;const de=e.groups[q];de&&(x.hasDefaultAudio=x.hasDefaultAudio||e.hasDefaultAudio?de.hasDefault:de.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(de.channels).forEach(Re=>{x.channels[Re]=(x.channels[Re]||0)+de.channels[Re]}))}),i},{})}function fo(f,e,t){if("attrs"in f){const r=e.indexOf(f);if(r!==-1)return r}for(let r=0;r<e.length;r++){const i=e[r];if(go(f,i,t))return r}return-1}function go(f,e,t){const{groupId:r,name:i,lang:s,assocLang:l,default:x}=f,j=f.forced;return(r===void 0||e.groupId===r)&&(i===void 0||e.name===i)&&(s===void 0||e.lang===s)&&(s===void 0||e.assocLang===l)&&(x===void 0||e.default===x)&&(j===void 0||e.forced===j)&&(!("characteristics"in f)||Na(f.characteristics||"",e.characteristics))&&(t===void 0||t(f,e))}function Na(f,e=""){const t=f.split(","),r=e.split(",");return t.length===r.length&&!t.some(i=>r.indexOf(i)===-1)}function pa(f,e){const{audioCodec:t,channels:r}=f;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function eo(f,e,t,r,i){const s=e[r],x=e.reduce((Ye,Je,ct)=>{const _t=Je.uri;return(Ye[_t]||(Ye[_t]=[])).push(ct),Ye},{})[s.uri];x.length>1&&(r=Math.max.apply(Math,x));const j=s.videoRange,q=s.frameRate,de=s.codecSet.substring(0,4),Re=Ya(e,r,Ye=>{if(Ye.videoRange!==j||Ye.frameRate!==q||Ye.codecSet.substring(0,4)!==de)return!1;const Je=Ye.audioGroups,ct=t.filter(_t=>!Je||Je.indexOf(_t.groupId)!==-1);return fo(f,ct,i)>-1});return Re>-1?Re:Ya(e,r,Ye=>{const Je=Ye.audioGroups,ct=t.filter(_t=>!Je||Je.indexOf(_t.groupId)!==-1);return fo(f,ct,i)>-1})}function Ya(f,e,t){for(let r=e;r>-1;r--)if(t(f[r]))return r;for(let r=e+1;r<f.length;r++)if(t(f[r]))return r;return-1}class rs{constructor(e){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:r,hls:i}=this,{autoLevelEnabled:s,media:l}=i;if(!t||!l)return;const x=performance.now(),j=r?r.stats:t.stats,q=r?r.duration:t.duration,de=x-j.loading.start,Re=i.minAutoLevel;if(j.aborted||j.loaded&&j.loaded===j.total||t.level<=Re){this.clearTimer(),this._nextAutoLevel=-1;return}if(!s||l.paused||!l.playbackRate||!l.readyState)return;const Ye=i.mainForwardBufferInfo;if(Ye===null)return;const Je=this.bwEstimator.getEstimateTTFB(),ct=Math.abs(l.playbackRate);if(de<=Math.max(Je,1e3*(q/(ct*2))))return;const _t=Ye.len/ct,Dt=j.loading.first?j.loading.first-j.loading.start:-1,pr=j.loaded&&Dt>-1,Tr=this.getBwEstimate(),Lr=i.levels,$n=Lr[t.level],dn=j.total||Math.max(j.loaded,Math.round(q*$n.averageBitrate/8));let gi=pr?de-Dt:de;gi<1&&pr&&(gi=Math.min(de,j.loaded*8/Tr));const Kn=pr?j.loaded*1e3/gi:0,Si=Kn?(dn-j.loaded)/Kn:dn*8/Tr+Je/1e3;if(Si<=_t)return;const ta=Kn?Kn*8:Tr;let mi=Number.POSITIVE_INFINITY,Li;for(Li=t.level-1;Li>Re;Li--){const ia=Lr[Li].maxBitrate;if(mi=this.getTimeToLoadFrag(Je/1e3,ta,q*ia,!Lr[Li].details),mi<_t)break}if(mi>=Si||mi>q*10)return;i.nextLoadLevel=i.nextAutoLevel=Li,pr?this.bwEstimator.sample(de-Math.min(Je,Dt),j.loaded):this.bwEstimator.sampleTTFB(de);const Ga=Lr[Li].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>Ga&&this.resetEstimator(Ga),this.clearTimer(),B.warn(`[abr] Fragment ${t.sn}${r?" part "+r.index:""} of level ${t.level} is loading too slowly;
|
|
|
Time to underbuffer: ${_t.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${Si.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${mi.toFixed(3)} s
|
|
|
TTFB estimate: ${Dt|0} ms
|
|
|
Current BW estimate: ${o(Tr)?Tr|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${Li} @ ${Ga|0} bps`),i.trigger(a.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:r,stats:j})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(B.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new Gs(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.FRAG_LOADING,this.onFragLoading,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.FRAG_LOADING,this.onFragLoading,this),e.off(a.FRAG_LOADED,this.onFragLoaded,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(a.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const r=t.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var i;this.fragCurrent=r,this.partCurrent=(i=t.part)!=null?i:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case m.BUFFER_ADD_CODEC_ERROR:case m.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case m.FRAG_LOAD_TIMEOUT:{const r=t.frag,{fragCurrent:i,partCurrent:s}=this;if(r&&i&&r.sn===i.sn&&r.level===i.level){const l=performance.now(),x=s?s.stats:r.stats,j=l-x.loading.start,q=x.loading.first?x.loading.first-x.loading.start:-1;if(x.loaded&&q>-1){const Re=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(j-Math.min(Re,q),x.loaded)}else this.bwEstimator.sampleTTFB(j)}break}}}getTimeToLoadFrag(e,t,r,i){const s=e+r/t,l=i?this.lastLevelLoadSec:0;return s+l}onLevelLoaded(e,t){const r=this.hls.config,{loading:i}=t.stats,s=i.end-i.start;o(s)&&(this.lastLevelLoadSec=s/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:r}){const i=r?r.stats:t.stats;if(t.type===Ht.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const s=r?r.duration:t.duration,l=this.hls.levels[t.level],x=(l.loaded?l.loaded.bytes:0)+i.loaded,j=(l.loaded?l.loaded.duration:0)+s;l.loaded={bytes:x,duration:j},l.realBitrate=Math.round(8*x/j)}if(t.bitrateTest){const s={stats:i,frag:t,part:r,id:t.type};this.onFragBuffered(a.FRAG_BUFFERED,s),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:r,part:i}=t,s=i!=null&&i.stats.loaded?i.stats:r.stats;if(s.aborted||this.ignoreFragment(r))return;const l=s.parsing.end-s.loading.start-Math.min(s.loading.first-s.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(l,s.loaded),s.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=l/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==Ht.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,r=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,s=this.findBestLevel(r,t,e,0,i,1,1);if(s>-1)return s;const l=this.hls.firstLevel,x=Math.min(Math.max(l,t),e);return B.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${l} clamped to ${x}`),x}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const s=r&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const l=this.hls.levels;if(l.length>Math.max(e,s)&&l[e].loadError<=l[s].loadError)return e}return this._nextAutoLevel=s,this.nextAutoLevelKey=this.getAutoLevelKey(),s}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:r}=this,{maxAutoLevel:i,config:s,minAutoLevel:l}=r,x=t?t.duration:e?e.duration:0,j=this.getBwEstimate(),q=this.getStarvationDelay();let de=s.abrBandWidthFactor,Re=s.abrBandWidthUpFactor;if(q){const Dt=this.findBestLevel(j,l,i,q,0,de,Re);if(Dt>=0)return Dt}let Ye=x?Math.min(x,s.maxStarvationDelay):s.maxStarvationDelay;if(!q){const Dt=this.bitrateTestDelay;Dt&&(Ye=(x?Math.min(x,s.maxLoadingDelay):s.maxLoadingDelay)-Dt,B.info(`[abr] bitrate test took ${Math.round(1e3*Dt)}ms, set first fragment max fetchDuration to ${Math.round(1e3*Ye)} ms`),de=Re=1)}const Je=this.findBestLevel(j,l,i,q,Ye,de,Re);if(B.info(`[abr] ${q?"rebuffering expected":"buffer is empty"}, optimal quality level ${Je}`),Je>-1)return Je;const ct=r.levels[l],_t=r.levels[r.loadLevel];return(ct==null?void 0:ct.bitrate)<(_t==null?void 0:_t.bitrate)?l:r.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const r=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,i=e.mainForwardBufferInfo;return(i?i.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,r,i,s,l,x){var j;const q=i+s,de=this.lastLoadedFragLevel,Re=de===-1?this.hls.firstLevel:de,{fragCurrent:Ye,partCurrent:Je}=this,{levels:ct,allAudioTracks:_t,loadLevel:Dt,config:pr}=this.hls;if(ct.length===1)return 0;const Tr=ct[Re],Lr=!!(Tr!=null&&(j=Tr.details)!=null&&j.live),$n=Dt===-1||de===-1;let dn,gi="SDR",Kn=(Tr==null?void 0:Tr.frameRate)||0;const{audioPreference:Si,videoPreference:ta}=pr,mi=this.audioTracksByGroup||(this.audioTracksByGroup=vl(_t));if($n){if(this.firstSelection!==-1)return this.firstSelection;const Ka=this.codecTiers||(this.codecTiers=yl(ct,mi,t,r)),Ra=Ao(Ka,gi,e,Si,ta),{codecSet:Is,videoRanges:zs,minFramerate:ha,minBitrate:sa,preferHDR:Ms}=Ra;dn=Is,gi=Ms?zs[zs.length-1]:zs[0],Kn=ha,e=Math.max(e,sa),B.log(`[abr] picked start tier ${JSON.stringify(Ra)}`)}else dn=Tr==null?void 0:Tr.codecSet,gi=Tr==null?void 0:Tr.videoRange;const Li=Je?Je.duration:Ye?Ye.duration:0,Ga=this.bwEstimator.getEstimateTTFB()/1e3,ia=[];for(let Ka=r;Ka>=t;Ka--){var $a;const Ra=ct[Ka],Is=Ka>Re;if(!Ra)continue;if(pr.useMediaCapabilities&&!Ra.supportedResult&&!Ra.supportedPromise){const lo=navigator.mediaCapabilities;typeof(lo==null?void 0:lo.decodingInfo)=="function"&&Ii(Ra,mi,gi,Kn,e,Si)?(Ra.supportedPromise=kl(Ra,mi,lo),Ra.supportedPromise.then(Ls=>{if(!this.hls)return;Ra.supportedResult=Ls;const Zo=this.hls.levels,ul=Zo.indexOf(Ra);Ls.error?B.warn(`[abr] MediaCapabilities decodingInfo error: "${Ls.error}" for level ${ul} ${JSON.stringify(Ls)}`):Ls.supported||(B.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${ul} ${JSON.stringify(Ls)}`),ul>-1&&Zo.length>1&&(B.log(`[abr] Removing unsupported level ${ul}`),this.hls.removeLevel(ul)))})):Ra.supportedResult=mo}if(dn&&Ra.codecSet!==dn||gi&&Ra.videoRange!==gi||Is&&Kn>Ra.frameRate||!Is&&Kn>0&&Kn<Ra.frameRate||Ra.supportedResult&&!(($a=Ra.supportedResult.decodingInfoResults)!=null&&$a[0].smooth)){ia.push(Ka);continue}const zs=Ra.details,ha=(Je?zs==null?void 0:zs.partTarget:zs==null?void 0:zs.averagetargetduration)||Li;let sa;Is?sa=x*e:sa=l*e;const Ms=Li&&i>=Li*2&&s===0?ct[Ka].averageBitrate:ct[Ka].maxBitrate,ds=this.getTimeToLoadFrag(Ga,sa,Ms*ha,zs===void 0);if(sa>=Ms&&(Ka===de||Ra.loadError===0&&Ra.fragmentError===0)&&(ds<=Ga||!o(ds)||Lr&&!this.bitrateTestDelay||ds<q)){const lo=this.forcedAutoLevel;return Ka!==Dt&&(lo===-1||lo!==Dt)&&(ia.length&&B.trace(`[abr] Skipped level(s) ${ia.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${ct[ia[0]].codecs}" ${ct[ia[0]].videoRange}; not compatible with "${Tr.codecs}" ${gi}`),B.info(`[abr] switch candidate:${Re}->${Ka} adjustedbw(${Math.round(sa)})-bitrate=${Math.round(sa-Ms)} ttfb:${Ga.toFixed(1)} avgDuration:${ha.toFixed(1)} maxFetchDuration:${q.toFixed(1)} fetchDuration:${ds.toFixed(1)} firstSelection:${$n} codecSet:${dn} videoRange:${gi} hls.loadLevel:${Dt}`)),$n&&(this.firstSelection=Ka),Ka}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls,i=Math.min(Math.max(e,r),t);this._nextAutoLevel!==i&&(this.nextAutoLevelKey="",this._nextAutoLevel=i)}}class Hs{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var ba={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Zs{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(a.BUFFER_APPENDED,this.onBufferAppended,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.BUFFER_APPENDED,this.onBufferAppended,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const r=this.activePartLists[t];if(r)for(let i=r.length;i--;){const s=r[i];if(!s)break;const l=s.end;if(s.start<=e&&l!==null&&e<=l)return s}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const l=r[i[s]];if((l==null?void 0:l.body.type)===t&&l.buffered){const x=l.body;if(x.start<=e&&e<=x.end)return x}}return null}detectEvictedFragments(e,t,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(i==null?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const x=this.fragments[l];if(!x||s>=x.body.sn)return;if(!x.buffered&&!x.loaded){x.body.type===r&&this.removeFragment(x.body);return}const j=x.range[e];j&&j.time.some(q=>{const de=!this.isTimeBuffered(q.startPTS,q.endPTS,t);return de&&this.removeFragment(x.body),de})})}detectPartialFragments(e){const t=this.timeRanges,{frag:r,part:i}=e;if(!t||r.sn==="initSegment")return;const s=Oo(r),l=this.fragments[s];if(!l||l.buffered&&r.gap)return;const x=!r.relurl;Object.keys(t).forEach(j=>{const q=r.elementaryStreams[j];if(!q)return;const de=t[j],Re=x||q.partial===!0;l.range[j]=this.getBufferedTimes(r,i,Re,de)}),l.loaded=null,Object.keys(l.range).length?(l.buffered=!0,(l.body.endList=r.endList||l.body.endList)&&(this.endListFragments[l.body.type]=l),ao(l)||this.removeParts(r.sn-1,r.type)):this.removeFragment(l.body)}removeParts(e,t){const r=this.activePartLists[t];r&&(this.activePartLists[t]=r.filter(i=>i.fragment.sn>=e))}fragBuffered(e,t){const r=Oo(e);let i=this.fragments[r];!i&&t&&(i=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,t,r,i){const s={time:[],partial:r},l=e.start,x=e.end,j=e.minEndPTS||x,q=e.maxStartPTS||l;for(let de=0;de<i.length;de++){const Re=i.start(de)-this.bufferPadding,Ye=i.end(de)+this.bufferPadding;if(q>=Re&&j<=Ye){s.time.push({startPTS:Math.max(l,i.start(de)),endPTS:Math.min(x,i.end(de))});break}else if(l<Ye&&x>Re){const Je=Math.max(l,i.start(de)),ct=Math.min(x,i.end(de));ct>Je&&(s.partial=!0,s.time.push({startPTS:Je,endPTS:ct}))}else if(x<=Re)break}return s}getPartialFragment(e){let t=null,r,i,s,l=0;const{bufferPadding:x,fragments:j}=this;return Object.keys(j).forEach(q=>{const de=j[q];de&&ao(de)&&(i=de.body.start-x,s=de.body.end+x,e>=i&&e<=s&&(r=Math.min(e-i,s-e),l<=r&&(t=de.body,l=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||ao(t))}getState(e){const t=Oo(e),r=this.fragments[t];return r?r.buffered?ao(r)?ba.PARTIAL:ba.OK:ba.APPENDING:ba.NOT_LOADED}isTimeBuffered(e,t,r){let i,s;for(let l=0;l<r.length;l++){if(i=r.start(l)-this.bufferPadding,s=r.end(l)+this.bufferPadding,e>=i&&t<=s)return!0;if(t<=i)return!1}return!1}onFragLoaded(e,t){const{frag:r,part:i}=t;if(r.sn==="initSegment"||r.bitrateTest)return;const s=i?null:t,l=Oo(r);this.fragments[l]={body:r,appendedPTS:null,loaded:s,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:i,timeRanges:s}=t;if(r.sn==="initSegment")return;const l=r.type;if(i){let x=this.activePartLists[l];x||(this.activePartLists[l]=x=[]),x.push(i)}this.timeRanges=s,Object.keys(s).forEach(x=>{const j=s[x];this.detectEvictedFragments(x,j,l,i)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Oo(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,r,i,s){i&&!this.hasGaps||Object.keys(this.fragments).forEach(l=>{const x=this.fragments[l];if(!x)return;const j=x.body;j.type!==r||i&&!j.gap||j.start<t&&j.end>e&&(x.buffered||s)&&this.removeFragment(j)})}removeFragment(e){const t=Oo(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const i=e.sn;this.activePartLists[e.type]=r.filter(s=>s.fragment.sn!==i)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function ao(f){var e,t,r;return f.buffered&&(f.body.gap||((e=f.range.video)==null?void 0:e.partial)||((t=f.range.audio)==null?void 0:t.partial)||((r=f.range.audiovideo)==null?void 0:r.partial))}function Oo(f){return`${f.type}_${f.level}_${f.sn}`}const Io={length:0,start:()=>0,end:()=>0};class Xa{static isBuffered(e,t){try{if(e){const r=Xa.getBuffered(e);for(let i=0;i<r.length;i++)if(t>=r.start(i)&&t<=r.end(i))return!0}}catch(r){}return!1}static bufferInfo(e,t,r){try{if(e){const i=Xa.getBuffered(e),s=[];let l;for(l=0;l<i.length;l++)s.push({start:i.start(l),end:i.end(l)});return this.bufferedInfo(s,t,r)}}catch(i){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.sort(function(q,de){const Re=q.start-de.start;return Re||de.end-q.end});let i=[];if(r)for(let q=0;q<e.length;q++){const de=i.length;if(de){const Re=i[de-1].end;e[q].start-Re<r?e[q].end>Re&&(i[de-1].end=e[q].end):i.push(e[q])}else i.push(e[q])}else i=e;let s=0,l,x=t,j=t;for(let q=0;q<i.length;q++){const de=i[q].start,Re=i[q].end;if(t+r>=de&&t<Re)x=de,j=Re,s=j-t;else if(t+r<de){l=de;break}}return{len:s,start:x||0,end:j||0,nextStart:l}}static getBuffered(e){try{return e.buffered}catch(t){return B.log("failed to get media.buffered",t),Io}}}class bl{constructor(e,t,r,i=0,s=-1,l=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=so(),this.buffering={audio:so(),video:so(),audiovideo:so()},this.level=e,this.sn=t,this.id=r,this.size=i,this.part=s,this.partial=l}}function so(){return{start:0,executeStart:0,executeEnd:0,end:0}}function vo(f,e){for(let r=0,i=f.length;r<i;r++){var t;if(((t=f[r])==null?void 0:t.cc)===e)return f[r]}return null}function tu(f,e,t){return!!(e&&(t.endCC>t.startCC||f&&f.cc<t.startCC))}function wl(f,e){const t=f.fragments,r=e.fragments;if(!r.length||!t.length){B.log("No fragments to align");return}const i=vo(t,r[0].cc);if(!i||i&&!i.startPTS){B.log("No frag in previous level to align on");return}return i}function cl(f,e){if(f){const t=f.start+e;f.start=f.startPTS=t,f.endPTS=t+f.duration}}function Ml(f,e){const t=e.fragments;for(let r=0,i=t.length;r<i;r++)cl(t[r],f);e.fragmentHint&&cl(e.fragmentHint,f),e.alignedSliding=!0}function xl(f,e,t){e&&(Mo(f,t,e),!t.alignedSliding&&e&&Ks(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&as(e,t))}function Mo(f,e,t){if(tu(f,t,e)){const r=wl(t,e);r&&o(r.start)&&(B.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),Ml(r.start,e))}}function Ks(f,e){if(!f.hasProgramDateTime||!e.hasProgramDateTime)return;const t=f.fragments,r=e.fragments;if(!t.length||!r.length)return;let i,s;const l=Math.min(e.endCC,f.endCC);e.startCC<l&&f.startCC<l&&(i=vo(r,l),s=vo(t,l)),(!i||!s)&&(i=r[Math.floor(r.length/2)],s=vo(t,i.cc)||t[Math.floor(t.length/2)]);const x=i.programDateTime,j=s.programDateTime;if(!x||!j)return;const q=(j-x)/1e3-(s.start-i.start);Ml(q,f)}const To=Math.pow(2,17);class Va{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const r=e.url;if(!r)return Promise.reject(new ws({type:d.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,s=i.fLoader,l=i.loader;return new Promise((x,j)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(Je=>Je[0]==="GAP")){j(Ja(e));return}else e.gap=!1;const q=this.loader=e.loader=s?new s(i):new l(i),de=ms(e),Re=Os(i.fragLoadPolicy.default),Ye={loadPolicy:Re,timeout:Re.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:To};e.stats=q.stats,q.load(de,Ye,{onSuccess:(Je,ct,_t,Dt)=>{this.resetLoader(e,q);let pr=Je.data;_t.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(pr.slice(0,16)),pr=pr.slice(16)),x({frag:e,part:null,payload:pr,networkDetails:Dt})},onError:(Je,ct,_t,Dt)=>{this.resetLoader(e,q),j(new ws({type:d.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ie({url:r,data:void 0},Je),error:new Error(`HTTP Error ${Je.code} ${Je.text}`),networkDetails:_t,stats:Dt}))},onAbort:(Je,ct,_t)=>{this.resetLoader(e,q),j(new ws({type:d.NETWORK_ERROR,details:m.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:_t,stats:Je}))},onTimeout:(Je,ct,_t)=>{this.resetLoader(e,q),j(new ws({type:d.NETWORK_ERROR,details:m.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${Ye.timeout}ms`),networkDetails:_t,stats:Je}))},onProgress:(Je,ct,_t,Dt)=>{t&&t({frag:e,part:null,payload:_t,networkDetails:Dt})}})})}loadPart(e,t,r){this.abort();const i=this.config,s=i.fLoader,l=i.loader;return new Promise((x,j)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){j(Ja(e,t));return}const q=this.loader=e.loader=s?new s(i):new l(i),de=ms(e,t),Re=Os(i.fragLoadPolicy.default),Ye={loadPolicy:Re,timeout:Re.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:To};t.stats=q.stats,q.load(de,Ye,{onSuccess:(Je,ct,_t,Dt)=>{this.resetLoader(e,q),this.updateStatsFromPart(e,t);const pr={frag:e,part:t,payload:Je.data,networkDetails:Dt};r(pr),x(pr)},onError:(Je,ct,_t,Dt)=>{this.resetLoader(e,q),j(new ws({type:d.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ie({url:de.url,data:void 0},Je),error:new Error(`HTTP Error ${Je.code} ${Je.text}`),networkDetails:_t,stats:Dt}))},onAbort:(Je,ct,_t)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,q),j(new ws({type:d.NETWORK_ERROR,details:m.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:_t,stats:Je}))},onTimeout:(Je,ct,_t)=>{this.resetLoader(e,q),j(new ws({type:d.NETWORK_ERROR,details:m.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${Ye.timeout}ms`),networkDetails:_t,stats:Je}))}})})}updateStatsFromPart(e,t){const r=e.stats,i=t.stats,s=i.total;if(r.loaded+=i.loaded,s){const j=Math.round(e.duration/t.duration),q=Math.min(Math.round(r.loaded/s),j),Re=(j-q)*Math.round(r.loaded/q);r.total=r.loaded+Re}else r.total=Math.max(r.loaded,r.total);const l=r.loading,x=i.loading;l.start?l.first+=x.first-x.start:(l.start=x.start,l.first=x.first),l.end=x.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function ms(f,e=null){const t=e||f,r={frag:f,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},i=t.byteRangeStartOffset,s=t.byteRangeEndOffset;if(o(i)&&o(s)){var l;let x=i,j=s;if(f.sn==="initSegment"&&((l=f.decryptdata)==null?void 0:l.method)==="AES-128"){const q=s-i;q%16&&(j=s+(16-q%16)),i!==0&&(r.resetIV=!0,x=i-16)}r.rangeStart=x,r.rangeEnd=j}return r}function Ja(f,e){const t=new Error(`GAP ${f.gap?"tag":"attribute"} found`),r={type:d.MEDIA_ERROR,details:m.FRAG_GAP,fatal:!1,frag:f,error:t,networkDetails:null};return e&&(r.part=e),(e||f).stats.aborted=!0,new ws(r)}class ws extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Xs{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class El{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function al(f){const e=f.byteLength,t=e&&new DataView(f.buffer).getUint8(e-1);return t?K(f,0,e-t):f}class Ul{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),r=new Uint32Array(4);for(let i=0;i<4;i++)r[i]=t.getUint32(i*4);return r}initTable(){const e=this.sBox,t=this.invSBox,r=this.subMix,i=r[0],s=r[1],l=r[2],x=r[3],j=this.invSubMix,q=j[0],de=j[1],Re=j[2],Ye=j[3],Je=new Uint32Array(256);let ct=0,_t=0,Dt=0;for(Dt=0;Dt<256;Dt++)Dt<128?Je[Dt]=Dt<<1:Je[Dt]=Dt<<1^283;for(Dt=0;Dt<256;Dt++){let pr=_t^_t<<1^_t<<2^_t<<3^_t<<4;pr=pr>>>8^pr&255^99,e[ct]=pr,t[pr]=ct;const Tr=Je[ct],Lr=Je[Tr],$n=Je[Lr];let dn=Je[pr]*257^pr*16843008;i[ct]=dn<<24|dn>>>8,s[ct]=dn<<16|dn>>>16,l[ct]=dn<<8|dn>>>24,x[ct]=dn,dn=$n*16843009^Lr*65537^Tr*257^ct*16843008,q[pr]=dn<<24|dn>>>8,de[pr]=dn<<16|dn>>>16,Re[pr]=dn<<8|dn>>>24,Ye[pr]=dn,ct?(ct=Tr^Je[Je[Je[$n^Tr]]],_t^=Je[Je[_t]]):ct=_t=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let r=!0,i=0;for(;i<t.length&&r;)r=t[i]===this.key[i],i++;if(r)return;this.key=t;const s=this.keySize=t.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);const l=this.ksRows=(s+6+1)*4;let x,j;const q=this.keySchedule=new Uint32Array(l),de=this.invKeySchedule=new Uint32Array(l),Re=this.sBox,Ye=this.rcon,Je=this.invSubMix,ct=Je[0],_t=Je[1],Dt=Je[2],pr=Je[3];let Tr,Lr;for(x=0;x<l;x++){if(x<s){Tr=q[x]=t[x];continue}Lr=Tr,x%s===0?(Lr=Lr<<8|Lr>>>24,Lr=Re[Lr>>>24]<<24|Re[Lr>>>16&255]<<16|Re[Lr>>>8&255]<<8|Re[Lr&255],Lr^=Ye[x/s|0]<<24):s>6&&x%s===4&&(Lr=Re[Lr>>>24]<<24|Re[Lr>>>16&255]<<16|Re[Lr>>>8&255]<<8|Re[Lr&255]),q[x]=Tr=(q[x-s]^Lr)>>>0}for(j=0;j<l;j++)x=l-j,j&3?Lr=q[x]:Lr=q[x-4],j<4||x<=4?de[j]=Lr:de[j]=ct[Re[Lr>>>24]]^_t[Re[Lr>>>16&255]]^Dt[Re[Lr>>>8&255]]^pr[Re[Lr&255]],de[j]=de[j]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,r){const i=this.keySize+6,s=this.invKeySchedule,l=this.invSBox,x=this.invSubMix,j=x[0],q=x[1],de=x[2],Re=x[3],Ye=this.uint8ArrayToUint32Array_(r);let Je=Ye[0],ct=Ye[1],_t=Ye[2],Dt=Ye[3];const pr=new Int32Array(e),Tr=new Int32Array(pr.length);let Lr,$n,dn,gi,Kn,Si,ta,mi,Li,Ga,ia,$a,Ka,Ra;const Is=this.networkToHostOrderSwap;for(;t<pr.length;){for(Li=Is(pr[t]),Ga=Is(pr[t+1]),ia=Is(pr[t+2]),$a=Is(pr[t+3]),Kn=Li^s[0],Si=$a^s[1],ta=ia^s[2],mi=Ga^s[3],Ka=4,Ra=1;Ra<i;Ra++)Lr=j[Kn>>>24]^q[Si>>16&255]^de[ta>>8&255]^Re[mi&255]^s[Ka],$n=j[Si>>>24]^q[ta>>16&255]^de[mi>>8&255]^Re[Kn&255]^s[Ka+1],dn=j[ta>>>24]^q[mi>>16&255]^de[Kn>>8&255]^Re[Si&255]^s[Ka+2],gi=j[mi>>>24]^q[Kn>>16&255]^de[Si>>8&255]^Re[ta&255]^s[Ka+3],Kn=Lr,Si=$n,ta=dn,mi=gi,Ka=Ka+4;Lr=l[Kn>>>24]<<24^l[Si>>16&255]<<16^l[ta>>8&255]<<8^l[mi&255]^s[Ka],$n=l[Si>>>24]<<24^l[ta>>16&255]<<16^l[mi>>8&255]<<8^l[Kn&255]^s[Ka+1],dn=l[ta>>>24]<<24^l[mi>>16&255]<<16^l[Kn>>8&255]<<8^l[Si&255]^s[Ka+2],gi=l[mi>>>24]<<24^l[Kn>>16&255]<<16^l[Si>>8&255]<<8^l[ta&255]^s[Ka+3],Tr[t]=Is(Lr^Je),Tr[t+1]=Is(gi^ct),Tr[t+2]=Is(dn^_t),Tr[t+3]=Is($n^Dt),Je=Li,ct=Ga,_t=ia,Dt=$a,t=t+4}return Tr.buffer}}const Au=16;class Ql{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch(r){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?al(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r){return this.useSoftware?new Promise((i,s)=>{this.softwareDecrypt(new Uint8Array(e),t,r);const l=this.flush();l?i(l.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r)}softwareDecrypt(e,t,r){const{currentIV:i,currentResult:s,remainderData:l}=this;this.logOnce("JS AES decrypt"),l&&(e=Dn(l,e),this.remainderData=null);const x=this.getValidChunk(e);if(!x.length)return null;i&&(r=i);let j=this.softwareDecrypter;j||(j=this.softwareDecrypter=new Ul),j.expandKey(t);const q=s;return this.currentResult=j.decrypt(x.buffer,0,r),this.currentIV=K(x,-16).buffer,q||null}webCryptoDecrypt(e,t,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r));this.key=t,this.fastAesKey=new El(this.subtle,t)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Xs(this.subtle,new Uint8Array(r)).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(B.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,r)))}onWebCryptoError(e,t,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r);const i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const r=e.length-e.length%Au;return r!==e.length&&(t=K(e,0,r),this.remainderData=K(e,r)),t}logOnce(e){this.logEnabled&&(B.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const jl={toString:function(f){let e="";const t=f.length;for(let r=0;r<t;r++)e+=`[${f.start(r).toFixed(3)}-${f.end(r).toFixed(3)}]`;return e}},ci={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class du extends Hs{constructor(e,t,r,i,s){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=ci.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=s,this.logPrefix=i,this.log=B.log.bind(B,`${i}:`),this.warn=B.warn.bind(B,`${i}:`),this.hls=e,this.fragmentLoader=new Va(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Ql(e.config),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=ci.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const r=t.partList;if(r!=null&&r.length){const s=r[r.length-1];return Xa.isBuffered(this.media,s.start+s.duration/2)}const i=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const r=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);const i=this.config;this.levels&&i.autoStartLoad&&this.state===ci.STOPPED&&this.startLoad(i.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:r,mediaBuffer:i,state:s}=this,l=r?r.currentTime:0,x=Xa.bufferInfo(i||r,l,e.maxBufferHole);if(this.log(`media seeking to ${o(l)?l.toFixed(3):l}, state: ${s}`),this.state===ci.ENDED)this.resetLoadingState();else if(t){const j=e.maxFragLookUpTolerance,q=t.start-j,de=t.start+t.duration+j;if(!x.len||de<x.start||q>x.end){const Re=l>de;(l<q||Re)&&(Re&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(l,1/0,this.playlistType,!0),this.lastCurrentTime=l),!this.loadedmetadata&&!x.len&&(this.nextLoadPosition=this.startPosition=l),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=ci.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,r){this._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const i=s=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${s.part?" p: "+s.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(s)};this._doFragLoad(e,t,r,i).then(s=>{if(!s)return;const l=this.state;if(this.fragContextChanged(e)){(l===ci.FRAG_LOADING||!this.fragCurrent&&l===ci.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=ci.IDLE);return}"payload"in s&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(a.FRAG_LOADED,s)),this._handleFragmentLoadComplete(s)}).catch(s=>{this.state===ci.STOPPED||this.state===ci.ERROR||(this.warn(`Frag error: ${(s==null?void 0:s.message)||s}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:r}=this;if(r.getState(e)===ba.APPENDING){const s=e.type,l=this.getFwdBufferInfo(this.mediaBuffer,s),x=Math.max(e.duration,l?l.len:this.config.maxBufferLength),j=this.backtrackFragment;((j?e.sn-j.sn:0)===1||this.reduceMaxBufferLength(x,e.duration))&&r.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===ba.PARTIAL&&r.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,t,r=null){if(!(e-t))return;const i={startOffset:e,endOffset:t,type:r};this.hls.trigger(a.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{if(!r||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:i}=this,{payload:s}=r,l=e.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&l.method==="AES-128"){const x=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer).catch(j=>{throw i.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.FRAG_DECRYPT_ERROR,fatal:!1,error:j,reason:j.message,frag:e}),j}).then(j=>{const q=self.performance.now();return i.trigger(a.FRAG_DECRYPTED,{frag:e,payload:j,stats:{tstart:x,tdecrypt:q}}),r.payload=j,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===ci.STOPPED||this.state===ci.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const r=e.frag.stats;this.state=ci.IDLE,e.frag.data=new Uint8Array(e.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){var r,i,s,l;const x=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===Ht.MAIN?"level":"track"} ${e.level} (frag:[${((r=e.startPTS)!=null?r:NaN).toFixed(3)}-${((i=e.endPTS)!=null?i:NaN).toFixed(3)}] > buffer:${x?jl.toString(Xa.getBuffered(x)):"(detached)"})`),e.sn!=="initSegment"){var j;if(e.type!==Ht.SUBTITLE){const de=e.elementaryStreams;if(!Object.keys(de).some(Re=>!!de[Re])){this.state=ci.IDLE;return}}const q=(j=this.levels)==null?void 0:j[e.level];q!=null&&q.fragmentError&&(this.log(`Resetting level fragment error count of ${q.fragmentError} on frag buffered`),q.fragmentError=0)}this.state=ci.IDLE,x&&(!this.loadedmetadata&&e.type==Ht.MAIN&&x.buffered.length&&((s=this.fragCurrent)==null?void 0:s.sn)===((l=this.fragPrevious)==null?void 0:l.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:r,part:i,partsLoaded:s}=e,l=!s||s.length===0||s.some(j=>!j),x=new bl(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!l);t.flush(x)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,r=null,i){var s;const l=t==null?void 0:t.details;if(!this.levels||!l)throw new Error(`frag load aborted, missing level${l?"":" detail"}s`);let x=null;if(e.encrypted&&!((s=e.decryptdata)!=null&&s.key)?(this.log(`Loading key for ${e.sn} of [${l.startSN}-${l.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=ci.KEY_LOADING,this.fragCurrent=e,x=this.keyLoader.load(e).then(de=>{if(!this.fragContextChanged(de.frag))return this.hls.trigger(a.KEY_LOADED,de),this.state===ci.KEY_LOADING&&(this.state=ci.IDLE),de}),this.hls.trigger(a.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(x=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&l.encryptedFragments.length&&this.keyLoader.loadClear(e,l.encryptedFragments),r=Math.max(e.start,r||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const de=l.partList;if(de&&i){r>e.end&&l.fragmentHint&&(e=l.fragmentHint);const Re=this.getNextPart(de,e,r);if(Re>-1){const Ye=de[Re];this.log(`Loading part sn: ${e.sn} p: ${Ye.index} cc: ${e.cc} of playlist [${l.startSN}-${l.endSN}] parts [0-${Re}-${de.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=Ye.start+Ye.duration,this.state=ci.FRAG_LOADING;let Je;return x?Je=x.then(ct=>!ct||this.fragContextChanged(ct.frag)?null:this.doFragPartsLoad(e,Ye,t,i)).catch(ct=>this.handleFragLoadError(ct)):Je=this.doFragPartsLoad(e,Ye,t,i).catch(ct=>this.handleFragLoadError(ct)),this.hls.trigger(a.FRAG_LOADING,{frag:e,part:Ye,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Je}else if(!e.url||this.loadedEndOfParts(de,r))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${l?"of ["+l.startSN+"-"+l.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),o(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=ci.FRAG_LOADING;const j=this.config.progressive;let q;return j&&x?q=x.then(de=>!de||this.fragContextChanged(de==null?void 0:de.frag)?null:this.fragmentLoader.load(e,i)).catch(de=>this.handleFragLoadError(de)):q=Promise.all([this.fragmentLoader.load(e,j?i:void 0),x]).then(([de])=>(!j&&de&&i&&i(de),de)).catch(de=>this.handleFragLoadError(de)),this.hls.trigger(a.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):q}doFragPartsLoad(e,t,r,i){return new Promise((s,l)=>{var x;const j=[],q=(x=r.details)==null?void 0:x.partList,de=Re=>{this.fragmentLoader.loadPart(e,Re,i).then(Ye=>{j[Re.index]=Ye;const Je=Ye.part;this.hls.trigger(a.FRAG_LOADED,Ye);const ct=Vi(r,e.sn,Re.index+1)||ea(q,e.sn,Re.index+1);if(ct)de(ct);else return s({frag:e,part:Je,partsLoaded:j})}).catch(l)};de(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===m.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(a.ERROR,t)}else this.hls.trigger(a.ERROR,{type:d.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==ci.PARSING){!this.fragCurrent&&this.state!==ci.STOPPED&&this.state!==ci.ERROR&&(this.state=ci.IDLE);return}const{frag:r,part:i,level:s}=t,l=self.performance.now();r.stats.parsing.end=l,i&&(i.stats.parsing.end=l),this.updateLevelTiming(r,i,s,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:r}=this,{level:i,sn:s,part:l}=e;if(!(t!=null&&t[i]))return this.warn(`Levels object was unset while buffering fragment ${s} of level ${i}. The current chunk will not be buffered.`),null;const x=t[i],j=l>-1?Vi(x,s,l):null,q=j?j.fragment:io(x,s,r);return q?(r&&r!==q&&(q.stats=r.stats),{frag:q,part:j,level:x}):null}bufferFragmentData(e,t,r,i,s){var l;if(!e||this.state!==ci.PARSING)return;const{data1:x,data2:j}=e;let q=x;if(x&&j&&(q=Dn(x,j)),!((l=q)!=null&&l.length))return;const de={type:e.type,frag:t,part:r,chunkMeta:i,parent:t.type,data:q};if(this.hls.trigger(a.BUFFER_APPENDING,de),e.dropped&&e.independent&&!r){if(s)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Xa.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,i=Xa.bufferInfo(t,r,0),s=e.duration,l=Math.min(this.config.maxFragLookUpTolerance*2,s*.25),x=Math.max(Math.min(e.start-l,i.end-l),r+l);e.start-x>l&&this.flushMainBuffer(x,e.start)}getFwdBufferInfo(e,t){const r=this.getLoadPosition();return o(r)?this.getFwdBufferInfoAtPos(e,r,t):null}getFwdBufferInfoAtPos(e,t,r){const{config:{maxBufferHole:i}}=this,s=Xa.bufferInfo(e,t,i);if(s.len===0&&s.nextStart!==void 0){const l=this.fragmentTracker.getBufferedFrag(t,r);if(l&&s.nextStart<l.end)return Xa.bufferInfo(e,t,Math.max(s.nextStart,i))}return s}getMaxBufferLength(e){const{config:t}=this;let r;return e?r=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):r=t.maxBufferLength,Math.min(r,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const r=this.config,i=Math.max(Math.min(e-t,r.maxBufferLength),t),s=Math.max(e-t*3,r.maxMaxBufferLength/2,i);return s>=i?(r.maxMaxBufferLength=s,this.warn(`Reduce max buffer length to ${s}s`),!0):!1}getAppendedFrag(e,t=Ht.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,Ht.MAIN);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const r=t.fragments,i=r.length;if(!i)return null;const{config:s}=this,l=r[0].start;let x;if(t.live){const j=s.initialLiveManifestSize;if(i<j)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${j})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<l)&&(x=this.getInitialLiveFragment(t,r),this.startPosition=this.nextLoadPosition=x?this.hls.liveSyncPosition||x.start:e)}else e<=l&&(x=r[0]);if(!x){const j=s.lowLatencyMode?t.partEnd:t.fragmentEnd;x=this.getFragmentAtPosition(e,j,t)}return this.mapToInitFragWhenRequired(x)}isLoopLoading(e,t){const r=this.fragmentTracker.getState(e);return(r===ba.OK||r===ba.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,r,i,s){const l=e.gap,x=this.getNextFragment(this.nextLoadPosition,t);if(x===null)return x;if(e=x,l&&e&&!e.gap&&r.nextStart){const j=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(j!==null&&r.len+j.len>=s)return this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,r){let i=-1,s=!1,l=!0;for(let x=0,j=e.length;x<j;x++){const q=e[x];if(l=l&&!q.independent,i>-1&&r<q.start)break;const de=q.loaded;de?i=-1:(s||q.independent||l)&&q.fragment===t&&(i=x),s=de}return i}loadedEndOfParts(e,t){const r=e[e.length-1];return r&&t>r.start&&r.loaded}getInitialLiveFragment(e,t){const r=this.fragPrevious;let i=null;if(r){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),i=Eo(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const s=r.sn+1;if(s>=e.startSN&&s<=e.endSN){const l=t[s-e.startSN];r.cc===l.cc&&(i=l,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=Fi(t,r.cc),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const s=this.hls.liveSyncPosition;s!==null&&(i=this.getFragmentAtPosition(s,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,r){const{config:i}=this;let{fragPrevious:s}=this,{fragments:l,endSN:x}=r;const{fragmentHint:j}=r,{maxFragLookUpTolerance:q}=i,de=r.partList,Re=!!(i.lowLatencyMode&&de!=null&&de.length&&j);Re&&j&&!this.bitrateTest&&(l=l.concat(j),x=j.sn);let Ye;if(e<t){const Je=e>t-q?0:q;Ye=po(s,l,e,Je)}else Ye=l[l.length-1];if(Ye){const Je=Ye.sn-r.startSN,ct=this.fragmentTracker.getState(Ye);if((ct===ba.OK||ct===ba.PARTIAL&&Ye.gap)&&(s=Ye),s&&Ye.sn===s.sn&&(!Re||de[0].fragment.sn>Ye.sn)&&s&&Ye.level===s.level){const Dt=l[Je+1];Ye.sn<x&&this.fragmentTracker.getState(Dt)!==ba.OK?Ye=Dt:Ye=null}}return Ye}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const i=this.hls.liveSyncPosition,s=r.currentTime,l=e.fragments[0].start,x=e.edge,j=s>=l-t.maxFragLookUpTolerance&&s<=x;if(i!==null&&r.duration>i&&(s<i||!j)){const q=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!j&&r.readyState<4||s<x-q)&&(this.loadedmetadata||(this.nextLoadPosition=i),r.readyState&&(this.warn(`Playback: ${s.toFixed(3)} is located too far from the end of live sliding playlist: ${x}, reset currentTime to : ${i.toFixed(3)}`),r.currentTime=i))}}alignPlaylists(e,t,r){const i=e.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const s=e.fragments[0].start,l=!t,x=e.alignedSliding&&o(s);if(l||!x&&!s){const{fragPrevious:j}=this;xl(j,r,e);const q=e.fragments[0].start;return this.log(`Live playlist sliding: ${q.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${j?j.sn:"na"} fragments: ${i}`),q}return s}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let r=this.startPosition;if(r<t&&(r=-1),r===-1||this.lastCurrentTime===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&o(s)?(r=t+s,s<0&&(r+=e.totalduration),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Start time offset ${s} found in ${i?"multivariant":"media"} playlist, adjust startPosition to ${r}`),this.startPosition=r):e.live?r=this.hls.liveSyncPosition||t:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==ci.FRAG_LOADING_WAITING_RETRY)&&(this.state=ci.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const de=this.getCurrentContext(t.chunkMeta);de&&(t.frag=de.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const s=t.details===m.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const l=t.errorAction,{action:x,retryCount:j=0,retryConfig:q}=l||{};if(l&&x===pi.RetryRequest&&q){this.resetStartWhenNotLoaded(this.levelLastLoaded);const de=Pa(q,j);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${j+1}/${q.maxNumRetry} in ${de}ms`),l.resolved=!0,this.retryDate=self.performance.now()+de,this.state=ci.FRAG_LOADING_WAITING_RETRY}else if(q&&l)if(this.resetFragmentErrors(e),j<q.maxNumRetry)!s&&x!==pi.RemoveAlternatePermanently&&(l.resolved=!0);else{B.warn(`${t.details} reached or exceeded max retry (${j})`);return}else(l==null?void 0:l.action)===pi.SendAlternateToPenaltyBox?this.state=ci.WAITING_LEVEL:this.state=ci.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===ci.PARSING||this.state===ci.PARSED){const t=e.frag,r=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,r),s=i&&i.len>.5;s&&this.reduceMaxBufferLength(i.len,(t==null?void 0:t.duration)||10);const l=!s;return l&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${r} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),l}return!1}resetFragmentErrors(e){e===Ht.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==ci.STOPPED&&(this.state=ci.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const i=Xa.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,r),this.state===ci.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=ci.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,r,i){var s;const l=r.details;if(!l){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((j,q)=>{const de=e.elementaryStreams[q];if(de){const Re=de.endPTS-de.startPTS;if(Re<=0)return this.warn(`Could not parse fragment ${e.sn} ${q} duration reliably (${Re})`),j||!1;const Ye=i?0:co(l,e,de.startPTS,de.endPTS,de.startDTS,de.endDTS);return this.hls.trigger(a.LEVEL_PTS_UPDATED,{details:l,level:r,drift:Ye,type:q,frag:e,start:de.startPTS,end:de.endPTS}),!0}return j},!1)&&((s=this.transmuxer)==null?void 0:s.error)===null){const j=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(r.fragmentError===0&&(r.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(j.message),this.hls.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,error:j,frag:e,reason:`Found no media in msn ${e.sn} of level "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=ci.PARSED,this.hls.trigger(a.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}class ru{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let r;if(e.length)e.length===1?r=e[0]:r=rc(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function rc(f,e){const t=new Uint8Array(e);let r=0;for(let i=0;i<f.length;i++){const s=f[i];t.set(s,r),r+=s.length}return t}function nc(){return typeof __HLS_WORKER_BUNDLE__=="function"}function fu(){const f=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(f);return{worker:new self.Worker(e),objectURL:e}}function ic(f){const e=new self.URL(f,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function tl(f="",e=9e4){return{type:f,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class ku{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,r,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,r){}demux(e,t){this.cachedData&&(e=Dn(this.cachedData,e),this.cachedData=null);let r=D(e,0),i=r?r.length:0,s;const l=this._audioTrack,x=this._id3Track,j=r?k(r):void 0,q=e.length;for((this.basePTS===null||this.frameIndex===0&&o(j))&&(this.basePTS=b(j,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&x.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:zi.audioId3,duration:Number.POSITIVE_INFINITY});i<q;){if(this.canParse(e,i)){const de=this.appendFrame(l,e,i);de?(this.frameIndex++,this.lastPTS=de.sample.pts,i+=de.length,s=i):i=q}else Z(e,i)?(r=D(e,i),x.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:zi.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,s=i):i++;if(i===q&&s!==q){const de=K(e,s);this.cachedData?this.cachedData=Dn(this.cachedData,de):this.cachedData=de}}return{audioTrack:l,videoTrack:tl(),id3Track:x,textTrack:tl()}}demuxSampleAes(e,t,r){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:tl(),id3Track:this._id3Track,textTrack:tl()}}destroy(){}}const b=(f,e,t)=>{if(o(f))return f*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};function c(f,e,t,r){let i,s,l,x;const j=navigator.userAgent.toLowerCase(),q=r,de=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=((e[t+2]&192)>>>6)+1;const Re=(e[t+2]&60)>>>2;if(Re>de.length-1){const Ye=new Error(`invalid ADTS sampling index:${Re}`);f.emit(a.ERROR,a.ERROR,{type:d.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!0,error:Ye,reason:Ye.message});return}return l=(e[t+2]&1)<<2,l|=(e[t+3]&192)>>>6,B.log(`manifest codec:${r}, ADTS type:${i}, samplingIndex:${Re}`),/firefox/i.test(j)?Re>=6?(i=5,x=new Array(4),s=Re-3):(i=2,x=new Array(2),s=Re):j.indexOf("android")!==-1?(i=2,x=new Array(2),s=Re):(i=5,x=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&Re>=6?s=Re-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(Re>=6&&l===1||/vivaldi/i.test(j))||!r&&l===1)&&(i=2,x=new Array(2)),s=Re)),x[0]=i<<3,x[0]|=(Re&14)>>1,x[1]|=(Re&1)<<7,x[1]|=l<<3,i===5&&(x[1]|=(s&14)>>1,x[2]=(s&1)<<7,x[2]|=8,x[3]=0),{config:x,samplerate:de[Re],channelCount:l,codec:"mp4a.40."+i,manifestCodec:q}}function v(f,e){return f[e]===255&&(f[e+1]&246)===240}function U(f,e){return f[e+1]&1?7:9}function ne(f,e){return(f[e+3]&3)<<11|f[e+4]<<3|(f[e+5]&224)>>>5}function W(f,e){return e+5<f.length}function ge(f,e){return e+1<f.length&&v(f,e)}function De(f,e){return W(f,e)&&v(f,e)&&ne(f,e)<=f.length-e}function ke(f,e){if(ge(f,e)){const t=U(f,e);if(e+t>=f.length)return!1;const r=ne(f,e);if(r<=t)return!1;const i=e+r;return i===f.length||ge(f,i)}return!1}function rt(f,e,t,r,i){if(!f.samplerate){const s=c(e,t,r,i);if(!s)return;f.config=s.config,f.samplerate=s.samplerate,f.channelCount=s.channelCount,f.codec=s.codec,f.manifestCodec=s.manifestCodec,B.log(`parsed codec:${f.codec}, rate:${s.samplerate}, channels:${s.channelCount}`)}}function vt(f){return 1024*9e4/f}function yt(f,e){const t=U(f,e);if(e+t<=f.length){const r=ne(f,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function Ot(f,e,t,r,i){const s=vt(f.samplerate),l=r+i*s,x=yt(e,t);let j;if(x){const{frameLength:Re,headerLength:Ye}=x,Je=Ye+Re,ct=Math.max(0,t+Je-e.length);ct?(j=new Uint8Array(Je-Ye),j.set(e.subarray(t+Ye,e.length),0)):j=e.subarray(t+Ye,t+Je);const _t={unit:j,pts:l};return ct||f.samples.push(_t),{sample:_t,length:Je,missing:ct}}const q=e.length-t;return j=new Uint8Array(q),j.set(e.subarray(t,e.length),0),{sample:{unit:j,pts:l},length:q,missing:-1}}let Ve=null;const cr=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],tr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],hr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],jt=[0,1,1,4];function Ar(f,e,t,r,i){if(t+24>e.length)return;const s=kr(e,t);if(s&&t+s.frameLength<=e.length){const l=s.samplesPerFrame*9e4/s.sampleRate,x=r+i*l,j={unit:e.subarray(t,t+s.frameLength),pts:x,dts:x};return f.config=[],f.channelCount=s.channelCount,f.samplerate=s.sampleRate,f.samples.push(j),{sample:j,length:s.frameLength,missing:0}}}function kr(f,e){const t=f[e+1]>>3&3,r=f[e+1]>>1&3,i=f[e+2]>>4&15,s=f[e+2]>>2&3;if(t!==1&&i!==0&&i!==15&&s!==3){const l=f[e+2]>>1&1,x=f[e+3]>>6,j=t===3?3-r:r===3?3:4,q=cr[j*14+i-1]*1e3,Re=tr[(t===3?0:t===2?1:2)*3+s],Ye=x===3?1:2,Je=hr[t][r],ct=jt[r],_t=Je*8*ct,Dt=Math.floor(Je*q/Re+l)*ct;if(Ve===null){const Lr=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ve=Lr?parseInt(Lr[1]):0}return!!Ve&&Ve<=87&&r===2&&q>=224e3&&x===0&&(f[e+3]=f[e+3]|128),{sampleRate:Re,channelCount:Ye,frameLength:Dt,samplesPerFrame:_t}}}function ln(f,e){return f[e]===255&&(f[e+1]&224)===224&&(f[e+1]&6)!==0}function Ln(f,e){return e+1<f.length&&ln(f,e)}function Ai(f,e){return ln(f,e)&&4<=f.length-e}function hn(f,e){if(e+1<f.length&&ln(f,e)){const r=kr(f,e);let i=4;r!=null&&r.frameLength&&(i=r.frameLength);const s=e+i;return s===f.length||Ln(f,s)}return!1}class Br extends ku{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=D(e,0);let r=(t==null?void 0:t.length)||0;if(hn(e,r))return!1;for(let i=e.length;r<i;r++)if(ke(e,r))return B.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return De(e,t)}appendFrame(e,t,r){rt(e,this.observer,t,r,e.manifestCodec);const i=Ot(e,t,r,this.basePTS,this.frameIndex);if(i&&i.missing===0)return i}}const vn=/\/emsg[-/]ID3/i;class Gn{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,r,i){const s=this.videoTrack=tl("video",1),l=this.audioTrack=tl("audio",1),x=this.txtTrack=tl("text",1);if(this.id3Track=tl("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const j=qt(e);if(j.video){const{id:q,timescale:de,codec:Re}=j.video;s.id=q,s.timescale=x.timescale=de,s.codec=Re}if(j.audio){const{id:q,timescale:de,codec:Re}=j.audio;l.id=q,l.timescale=de,l.codec=Re}x.id=mr.text,s.sampleDuration=0,s.duration=l.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return Jr(e)}demux(e,t){this.timeOffset=t;let r=e;const i=this.videoTrack,s=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Dn(this.remainderData,e));const x=$i(r);this.remainderData=x.remainder,i.samples=x.valid||new Uint8Array}else i.samples=r;const l=this.extractID3Track(i,t);return s.samples=zn(t,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:l,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(t,this.timeOffset);return r.samples=zn(e,t),{videoTrack:t,audioTrack:tl(),id3Track:i,textTrack:tl()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const i=Tt(e.samples,["emsg"]);i&&i.forEach(s=>{const l=Et(s);if(vn.test(l.schemeIdUri)){const x=o(l.presentationTime)?l.presentationTime/l.timeScale:t+l.presentationTimeDelta/l.timeScale;let j=l.eventDuration===4294967295?Number.POSITIVE_INFINITY:l.eventDuration/l.timeScale;j<=.001&&(j=Number.POSITIVE_INFINITY);const q=l.payload;r.samples.push({data:q,len:q.byteLength,dts:x,pts:x,type:zi.emsg,duration:j})}})}return r}demuxSampleAes(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const zt=(f,e)=>{let t=0,r=5;e+=r;const i=new Uint32Array(1),s=new Uint32Array(1),l=new Uint8Array(1);for(;r>0;){l[0]=f[e];const x=Math.min(r,8),j=8-x;s[0]=4278190080>>>24+j<<j,i[0]=(l[0]&s[0])>>j,t=t?t<<x|i[0]:i[0],e+=1,r-=x}return t};class nr extends ku{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,r){const i=Nr(e,t,r,this.basePTS,this.frameIndex);if(i!==-1)return{sample:e.samples[e.samples.length-1],length:i,missing:0}}static probe(e){if(!e)return!1;const t=D(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&k(t)!==void 0&&zt(e,r)<16}}function Nr(f,e,t,r,i){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const s=e[t+4]>>6;if(s>=3)return-1;const x=[48e3,44100,32e3][s],j=e[t+4]&63,de=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][j*3+s]*2;if(t+de>e.length)return-1;const Re=e[t+6]>>5;let Ye=0;Re===2?Ye+=2:(Re&1&&Re!==1&&(Ye+=2),Re&4&&(Ye+=2));const Je=(e[t+6]<<8|e[t+7])>>12-Ye&1,_t=[2,1,2,3,3,4,4,5][Re]+Je,Dt=e[t+5]>>3,pr=e[t+5]&7,Tr=new Uint8Array([s<<6|Dt<<1|pr>>2,(pr&3)<<6|Re<<3|Je<<2|j>>4,j<<4&224]),Lr=1536/x*9e4,$n=r+i*Lr,dn=e.subarray(t,t+de);return f.config=Tr,f.channelCount=_t,f.samplerate=x,f.samples.push({unit:dn,pts:$n}),de}class ve{constructor(){this.VideoSample=null}createVideoSample(e,t,r,i){return{key:e,frame:!1,pts:t,dts:r,units:[],debug:i,length:0}}getLastNalUnit(e){var t;let r=this.VideoSample,i;if((!r||r.units.length===0)&&(r=e[e.length-1]),(t=r)!=null&&t.units){const s=r.units;i=s[s.length-1]}return i}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const r=t.samples,i=r.length;if(i){const s=r[i-1];e.pts=s.pts,e.dts=s.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&B.log(e.pts+"/"+e.dts+":"+e.debug)}}class Pe{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,r=e.byteLength-t,i=new Uint8Array(4),s=Math.min(4,t);if(s===0)throw new Error("no bytes available");i.set(e.subarray(r,r+s)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const r=this.word>>>32-t;if(e>32&&B.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?r<<t|this.readBits(t):r}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(e){let t=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=this.readEG(),r=(t+i+256)%256),t=r===0?t:r}readSPS(){let e=0,t=0,r=0,i=0,s,l,x;const j=this.readUByte.bind(this),q=this.readBits.bind(this),de=this.readUEG.bind(this),Re=this.readBoolean.bind(this),Ye=this.skipBits.bind(this),Je=this.skipEG.bind(this),ct=this.skipUEG.bind(this),_t=this.skipScalingList.bind(this);j();const Dt=j();if(q(5),Ye(3),j(),ct(),Dt===100||Dt===110||Dt===122||Dt===244||Dt===44||Dt===83||Dt===86||Dt===118||Dt===128){const gi=de();if(gi===3&&Ye(1),ct(),ct(),Ye(1),Re())for(l=gi!==3?8:12,x=0;x<l;x++)Re()&&(x<6?_t(16):_t(64))}ct();const pr=de();if(pr===0)de();else if(pr===1)for(Ye(1),Je(),Je(),s=de(),x=0;x<s;x++)Je();ct(),Ye(1);const Tr=de(),Lr=de(),$n=q(1);$n===0&&Ye(1),Ye(1),Re()&&(e=de(),t=de(),r=de(),i=de());let dn=[1,1];if(Re()&&Re())switch(j()){case 1:dn=[1,1];break;case 2:dn=[12,11];break;case 3:dn=[10,11];break;case 4:dn=[16,11];break;case 5:dn=[40,33];break;case 6:dn=[24,11];break;case 7:dn=[20,11];break;case 8:dn=[32,11];break;case 9:dn=[80,33];break;case 10:dn=[18,11];break;case 11:dn=[15,11];break;case 12:dn=[64,33];break;case 13:dn=[160,99];break;case 14:dn=[4,3];break;case 15:dn=[3,2];break;case 16:dn=[2,1];break;case 255:{dn=[j()<<8|j(),j()<<8|j()];break}}return{width:Math.ceil((Tr+1)*16-e*2-t*2),height:(2-$n)*(Lr+1)*16-($n?2:4)*(r+i),pixelRatio:dn}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class Xe extends ve{parseAVCPES(e,t,r,i,s){const l=this.parseAVCNALu(e,r.data);let x=this.VideoSample,j,q=!1;r.data=null,x&&l.length&&!e.audFound&&(this.pushAccessUnit(x,e),x=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"")),l.forEach(de=>{var Re;switch(de.type){case 1:{let _t=!1;j=!0;const Dt=de.data;if(q&&Dt.length>4){const pr=new Pe(Dt).readSliceType();(pr===2||pr===4||pr===7||pr===9)&&(_t=!0)}if(_t){var Ye;(Ye=x)!=null&&Ye.frame&&!x.key&&(this.pushAccessUnit(x,e),x=this.VideoSample=null)}x||(x=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),x.frame=!0,x.key=_t;break}case 5:j=!0,(Re=x)!=null&&Re.frame&&!x.key&&(this.pushAccessUnit(x,e),x=this.VideoSample=null),x||(x=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),x.key=!0,x.frame=!0;break;case 6:{j=!0,en(de.data,1,r.pts,t.samples);break}case 7:{var Je,ct;j=!0,q=!0;const _t=de.data,pr=new Pe(_t).readSPS();if(!e.sps||e.width!==pr.width||e.height!==pr.height||((Je=e.pixelRatio)==null?void 0:Je[0])!==pr.pixelRatio[0]||((ct=e.pixelRatio)==null?void 0:ct[1])!==pr.pixelRatio[1]){e.width=pr.width,e.height=pr.height,e.pixelRatio=pr.pixelRatio,e.sps=[_t],e.duration=s;const Tr=_t.subarray(1,4);let Lr="avc1.";for(let $n=0;$n<3;$n++){let dn=Tr[$n].toString(16);dn.length<2&&(dn="0"+dn),Lr+=dn}e.codec=Lr}break}case 8:j=!0,e.pps=[de.data];break;case 9:j=!0,e.audFound=!0,x&&this.pushAccessUnit(x,e),x=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"");break;case 12:j=!0;break;default:j=!1,x&&(x.debug+="unknown NAL "+de.type+" ");break}x&&j&&x.units.push(de)}),i&&x&&(this.pushAccessUnit(x,e),this.VideoSample=null)}parseAVCNALu(e,t){const r=t.byteLength;let i=e.naluState||0;const s=i,l=[];let x=0,j,q,de,Re=-1,Ye=0;for(i===-1&&(Re=0,Ye=t[0]&31,i=0,x=1);x<r;){if(j=t[x++],!i){i=j?0:1;continue}if(i===1){i=j?0:2;continue}if(!j)i=3;else if(j===1){if(q=x-i-1,Re>=0){const Je={data:t.subarray(Re,q),type:Ye};l.push(Je)}else{const Je=this.getLastNalUnit(e.samples);Je&&(s&&x<=4-s&&Je.state&&(Je.data=Je.data.subarray(0,Je.data.byteLength-s)),q>0&&(Je.data=Dn(Je.data,t.subarray(0,q)),Je.state=0))}x<r?(de=t[x]&31,Re=x,Ye=de,i=0):i=-1}else i=0}if(Re>=0&&i>=0){const Je={data:t.subarray(Re,r),type:Ye,state:i};l.push(Je)}if(l.length===0){const Je=this.getLastNalUnit(e.samples);Je&&(Je.data=Dn(Je.data,t))}return e.naluState=i,l}}class lt{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Ql(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,r){const i=e[t].unit;if(i.length<=16)return;const s=i.subarray(16,i.length-i.length%16),l=s.buffer.slice(s.byteOffset,s.byteOffset+s.length);this.decryptBuffer(l).then(x=>{const j=new Uint8Array(x);i.set(j,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,r)})}decryptAacSamples(e,t,r){for(;;t++){if(t>=e.length){r();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(t);let i=0;for(let s=32;s<e.length-16;s+=160,i+=16)r.set(e.subarray(s,s+16),i);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let i=0;for(let s=32;s<e.length-16;s+=160,i+=16)e.set(r.subarray(i,i+16),s);return e}decryptAvcSample(e,t,r,i,s){const l=Pt(s.data),x=this.getAvcEncryptedData(l);this.decryptBuffer(x.buffer).then(j=>{s.data=this.getAvcDecryptedUnit(l,j),this.decrypter.isSync()||this.decryptAvcSamples(e,t,r+1,i)})}decryptAvcSamples(e,t,r,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length){i();return}const s=e[t].units;for(;!(r>=s.length);r++){const l=s[r];if(!(l.data.length<=48||l.type!==1&&l.type!==5)&&(this.decryptAvcSample(e,t,r,i,l),!this.decrypter.isSync()))return}}}}const ut=188;class xt{constructor(e,t,r){this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.videoParser=new Xe}static probe(e){const t=xt.syncOffset(e);return t>0&&B.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let r=Math.min(ut*5,t-ut)+1,i=0;for(;i<r;){let s=!1,l=-1,x=0;for(let j=i;j<t;j+=ut)if(e[j]===71&&(t-j===ut||e[j+ut]===71)){if(x++,l===-1&&(l=j,l!==0&&(r=Math.min(l+ut*99,e.length-ut)+1)),s||(s=Qt(e,j)===0),s&&x>1&&(l===0&&x>2||j+ut>r))return l}else{if(x)return-1;break}i++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:mr[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=xt.createTrack("video"),this._audioTrack=xt.createTrack("audio",i),this._id3Track=xt.createTrack("id3"),this._txtTrack=xt.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r,this._duration=i}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:r}=this;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,r=!1,i=!1){r||(this.sampleAes=null);let s;const l=this._videoTrack,x=this._audioTrack,j=this._id3Track,q=this._txtTrack;let de=l.pid,Re=l.pesData,Ye=x.pid,Je=j.pid,ct=x.pesData,_t=j.pesData,Dt=null,pr=this.pmtParsed,Tr=this._pmtId,Lr=e.length;if(this.remainderData&&(e=Dn(this.remainderData,e),Lr=e.length,this.remainderData=null),Lr<ut&&!i)return this.remainderData=e,{audioTrack:x,videoTrack:l,id3Track:j,textTrack:q};const $n=Math.max(0,xt.syncOffset(e));Lr-=(Lr-$n)%ut,Lr<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,Lr,e.buffer.byteLength-Lr));let dn=0;for(let Kn=$n;Kn<Lr;Kn+=ut)if(e[Kn]===71){const Si=!!(e[Kn+1]&64),ta=Qt(e,Kn),mi=(e[Kn+3]&48)>>4;let Li;if(mi>1){if(Li=Kn+5+e[Kn+4],Li===Kn+ut)continue}else Li=Kn+4;switch(ta){case de:Si&&(Re&&(s=Ft(Re))&&this.videoParser.parseAVCPES(l,q,s,!1,this._duration),Re={data:[],size:0}),Re&&(Re.data.push(e.subarray(Li,Kn+ut)),Re.size+=Kn+ut-Li);break;case Ye:if(Si){if(ct&&(s=Ft(ct)))switch(x.segmentCodec){case"aac":this.parseAACPES(x,s);break;case"mp3":this.parseMPEGPES(x,s);break;case"ac3":this.parseAC3PES(x,s);break}ct={data:[],size:0}}ct&&(ct.data.push(e.subarray(Li,Kn+ut)),ct.size+=Kn+ut-Li);break;case Je:Si&&(_t&&(s=Ft(_t))&&this.parseID3PES(j,s),_t={data:[],size:0}),_t&&(_t.data.push(e.subarray(Li,Kn+ut)),_t.size+=Kn+ut-Li);break;case 0:Si&&(Li+=e[Li]+1),Tr=this._pmtId=lr(e,Li);break;case Tr:{Si&&(Li+=e[Li]+1);const Ga=He(e,Li,this.typeSupported,r,this.observer);de=Ga.videoPid,de>0&&(l.pid=de,l.segmentCodec=Ga.segmentVideoCodec),Ye=Ga.audioPid,Ye>0&&(x.pid=Ye,x.segmentCodec=Ga.segmentAudioCodec),Je=Ga.id3Pid,Je>0&&(j.pid=Je),Dt!==null&&!pr&&(B.warn(`MPEG-TS PMT found at ${Kn} after unknown PID '${Dt}'. Backtracking to sync byte @${$n} to parse all TS packets.`),Dt=null,Kn=$n-188),pr=this.pmtParsed=!0;break}case 17:case 8191:break;default:Dt=ta;break}}else dn++;dn>0&&At(this.observer,new Error(`Found ${dn} TS packet/s that do not start with 0x47`)),l.pesData=Re,x.pesData=ct,j.pesData=_t;const gi={audioTrack:x,videoTrack:l,id3Track:j,textTrack:q};return i&&this.extractRemainingSamples(gi),gi}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:r,id3Track:i,textTrack:s}=e,l=r.pesData,x=t.pesData,j=i.pesData;let q;if(l&&(q=Ft(l))?(this.videoParser.parseAVCPES(r,s,q,!0,this._duration),r.pesData=null):r.pesData=l,x&&(q=Ft(x))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,q);break;case"mp3":this.parseMPEGPES(t,q);break;case"ac3":this.parseAC3PES(t,q);break}t.pesData=null}else x!=null&&x.size&&B.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=x;j&&(q=Ft(j))?(this.parseID3PES(i,q),i.pesData=null):i.pesData=j}demuxSampleAes(e,t,r){const i=this.demux(e,r,!0,!this.config.progressive),s=this.sampleAes=new lt(this.observer,this.config,t);return this.decrypt(i,s)}decrypt(e,t){return new Promise(r=>{const{audioTrack:i,videoTrack:s}=e;i.samples&&i.segmentCodec==="aac"?t.decryptAacSamples(i.samples,0,()=>{s.samples?t.decryptAvcSamples(s.samples,0,0,()=>{r(e)}):r(e)}):s.samples&&t.decryptAvcSamples(s.samples,0,0,()=>{r(e)})})}destroy(){this._duration=0}parseAACPES(e,t){let r=0;const i=this.aacOverFlow;let s=t.data;if(i){this.aacOverFlow=null;const Re=i.missing,Ye=i.sample.unit.byteLength;if(Re===-1)s=Dn(i.sample.unit,s);else{const Je=Ye-Re;i.sample.unit.set(s.subarray(0,Re),Je),e.samples.push(i.sample),r=i.missing}}let l,x;for(l=r,x=s.length;l<x-1&&!ge(s,l);l++);if(l!==r){let Re;const Ye=l<x-1;if(Ye?Re=`AAC PES did not start with ADTS header,offset:${l}`:Re="No ADTS header found in AAC PES",At(this.observer,new Error(Re),Ye),!Ye)return}rt(e,this.observer,s,l,this.audioCodec);let j;if(t.pts!==void 0)j=t.pts;else if(i){const Re=vt(e.samplerate);j=i.sample.pts+Re}else{B.warn("[tsdemuxer]: AAC PES unknown PTS");return}let q=0,de;for(;l<x;)if(de=Ot(e,s,l,j,q),l+=de.length,de.missing){this.aacOverFlow=de;break}else for(q++;l<x-1&&!ge(s,l);l++);}parseMPEGPES(e,t){const r=t.data,i=r.length;let s=0,l=0;const x=t.pts;if(x===void 0){B.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;l<i;)if(Ln(r,l)){const j=Ar(e,r,l,x,s);if(j)l+=j.length,s++;else break}else l++}parseAC3PES(e,t){{const r=t.data,i=t.pts;if(i===void 0){B.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const s=r.length;let l=0,x=0,j;for(;x<s&&(j=Nr(e,r,x,i,l++))>0;)x+=j}}parseID3PES(e,t){if(t.pts===void 0){B.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=n({},t,{type:this._videoTrack?zi.emsg:zi.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function Qt(f,e){return((f[e+1]&31)<<8)+f[e+2]}function lr(f,e){return(f[e+10]&31)<<8|f[e+11]}function He(f,e,t,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(f[e+1]&15)<<8|f[e+2],x=e+3+l-4,j=(f[e+10]&15)<<8|f[e+11];for(e+=12+j;e<x;){const q=Qt(f,e),de=(f[e+3]&15)<<8|f[e+4];switch(f[e]){case 207:if(!r){Te("ADTS AAC");break}case 15:s.audioPid===-1&&(s.audioPid=q);break;case 21:s.id3Pid===-1&&(s.id3Pid=q);break;case 219:if(!r){Te("H.264");break}case 27:s.videoPid===-1&&(s.videoPid=q,s.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?B.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=q,s.segmentAudioCodec="mp3");break;case 193:if(!r){Te("AC-3");break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=q,s.segmentAudioCodec="ac3"):B.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&de>0){let Re=e+5,Ye=de;for(;Ye>2;){switch(f[Re]){case 106:t.ac3!==!0?B.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=q,s.segmentAudioCodec="ac3");break}const ct=f[Re+1]+2;Re+=ct,Ye-=ct}}break;case 194:case 135:return At(i,new Error("Unsupported EC-3 in M2TS found")),s;case 36:return At(i,new Error("Unsupported HEVC in M2TS found")),s}e+=de+5}return s}function At(f,e,t){B.warn(`parsing error: ${e.message}`),f.emit(a.ERROR,a.ERROR,{type:d.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Te(f){B.log(`${f} with AES-128-CBC encryption found in unencrypted stream`)}function Ft(f){let e=0,t,r,i,s,l;const x=f.data;if(!f||f.size===0)return null;for(;x[0].length<19&&x.length>1;)x[0]=Dn(x[0],x[1]),x.splice(1,1);if(t=x[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(r=(t[4]<<8)+t[5],r&&r>f.size-6)return null;const q=t[7];q&192&&(s=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,q&64?(l=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,s-l>60*9e4&&(B.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),i=t[8];let de=i+9;if(f.size<=de)return null;f.size-=de;const Re=new Uint8Array(f.size);for(let Ye=0,Je=x.length;Ye<Je;Ye++){t=x[Ye];let ct=t.byteLength;if(de)if(de>ct){de-=ct;continue}else t=t.subarray(de),ct-=de,de=0;Re.set(t,e),e+=ct}return r&&(r-=i+3),{data:Re,pts:s,dts:l,len:r}}return null}class er extends ku{resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=D(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&k(t)!==void 0&&zt(e,r)<=16)return!1;for(let i=e.length;r<i;r++)if(hn(e,r))return B.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Ai(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Ar(e,t,r,this.basePTS,this.frameIndex)}}class or{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const ur=Math.pow(2,32)-1;class St{static init(){St.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in St.types)St.types.hasOwnProperty(e)&&(St.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);St.HDLR_TYPES={video:t,audio:r};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),s=new Uint8Array([0,0,0,0,0,0,0,0]);St.STTS=St.STSC=St.STCO=s,St.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),St.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),St.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),St.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const l=new Uint8Array([105,115,111,109]),x=new Uint8Array([97,118,99,49]),j=new Uint8Array([0,0,0,1]);St.FTYP=St.box(St.types.ftyp,l,j,l,x),St.DINF=St.box(St.types.dinf,St.box(St.types.dref,i))}static box(e,...t){let r=8,i=t.length;const s=i;for(;i--;)r+=t[i].byteLength;const l=new Uint8Array(r);for(l[0]=r>>24&255,l[1]=r>>16&255,l[2]=r>>8&255,l[3]=r&255,l.set(e,4),i=0,r=8;i<s;i++)l.set(t[i],r),r+=t[i].byteLength;return l}static hdlr(e){return St.box(St.types.hdlr,St.HDLR_TYPES[e])}static mdat(e){return St.box(St.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(ur+1)),i=Math.floor(t%(ur+1));return St.box(St.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(e){return St.box(St.types.mdia,St.mdhd(e.timescale,e.duration),St.hdlr(e.type),St.minf(e))}static mfhd(e){return St.box(St.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?St.box(St.types.minf,St.box(St.types.smhd,St.SMHD),St.DINF,St.stbl(e)):St.box(St.types.minf,St.box(St.types.vmhd,St.VMHD),St.DINF,St.stbl(e))}static moof(e,t,r){return St.box(St.types.moof,St.mfhd(e),St.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=St.trak(e[t]);return St.box.apply(null,[St.types.moov,St.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(St.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=St.trex(e[t]);return St.box.apply(null,[St.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(ur+1)),i=Math.floor(t%(ur+1)),s=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return St.box(St.types.mvhd,s)}static sdtp(e){const t=e.samples||[],r=new Uint8Array(4+t.length);let i,s;for(i=0;i<t.length;i++)s=t[i].flags,r[i+4]=s.dependsOn<<4|s.isDependedOn<<2|s.hasRedundancy;return St.box(St.types.sdtp,r)}static stbl(e){return St.box(St.types.stbl,St.stsd(e),St.box(St.types.stts,St.STTS),St.box(St.types.stsc,St.STSC),St.box(St.types.stsz,St.STSZ),St.box(St.types.stco,St.STCO))}static avc1(e){let t=[],r=[],i,s,l;for(i=0;i<e.sps.length;i++)s=e.sps[i],l=s.byteLength,t.push(l>>>8&255),t.push(l&255),t=t.concat(Array.prototype.slice.call(s));for(i=0;i<e.pps.length;i++)s=e.pps[i],l=s.byteLength,r.push(l>>>8&255),r.push(l&255),r=r.concat(Array.prototype.slice.call(s));const x=St.box(St.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),j=e.width,q=e.height,de=e.pixelRatio[0],Re=e.pixelRatio[1];return St.box(St.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,j>>8&255,j&255,q>>8&255,q&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),x,St.box(St.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),St.box(St.types.pasp,new Uint8Array([de>>24,de>>16&255,de>>8&255,de&255,Re>>24,Re>>16&255,Re>>8&255,Re&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return St.box(St.types.mp4a,St.audioStsd(e),St.box(St.types.esds,St.esds(e)))}static mp3(e){return St.box(St.types[".mp3"],St.audioStsd(e))}static ac3(e){return St.box(St.types["ac-3"],St.audioStsd(e),St.box(St.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?St.box(St.types.stsd,St.STSD,St.mp3(e)):e.segmentCodec==="ac3"?St.box(St.types.stsd,St.STSD,St.ac3(e)):St.box(St.types.stsd,St.STSD,St.mp4a(e)):St.box(St.types.stsd,St.STSD,St.avc1(e))}static tkhd(e){const t=e.id,r=e.duration*e.timescale,i=e.width,s=e.height,l=Math.floor(r/(ur+1)),x=Math.floor(r%(ur+1));return St.box(St.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,x>>24,x>>16&255,x>>8&255,x&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,i&255,0,0,s>>8&255,s&255,0,0]))}static traf(e,t){const r=St.sdtp(e),i=e.id,s=Math.floor(t/(ur+1)),l=Math.floor(t%(ur+1));return St.box(St.types.traf,St.box(St.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),St.box(St.types.tfdt,new Uint8Array([1,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255])),St.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,St.box(St.types.trak,St.tkhd(e),St.mdia(e))}static trex(e){const t=e.id;return St.box(St.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const r=e.samples||[],i=r.length,s=12+16*i,l=new Uint8Array(s);let x,j,q,de,Re,Ye;for(t+=8+s,l.set([e.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),x=0;x<i;x++)j=r[x],q=j.duration,de=j.size,Re=j.flags,Ye=j.cts,l.set([q>>>24&255,q>>>16&255,q>>>8&255,q&255,de>>>24&255,de>>>16&255,de>>>8&255,de&255,Re.isLeading<<2|Re.dependsOn,Re.isDependedOn<<6|Re.hasRedundancy<<4|Re.paddingValue<<1|Re.isNonSync,Re.degradPrio&61440,Re.degradPrio&15,Ye>>>24&255,Ye>>>16&255,Ye>>>8&255,Ye&255],12+16*x);return St.box(St.types.trun,l)}static initSegment(e){St.types||St.init();const t=St.moov(e);return Dn(St.FTYP,t)}}St.types=void 0,St.HDLR_TYPES=void 0,St.STTS=void 0,St.STSC=void 0,St.STCO=void 0,St.STSZ=void 0,St.VMHD=void 0,St.SMHD=void 0,St.STSD=void 0,St.FTYP=void 0,St.DINF=void 0;const Gr=9e4;function Zr(f,e,t=1,r=!1){const i=f*e*t;return r?Math.round(i):i}function sn(f,e,t=1,r=!1){return Zr(f,e,1/t,r)}function An(f,e=!1){return Zr(f,1e3,1/Gr,e)}function ni(f,e=1){return Zr(f,Gr,1/e)}const zr=10*1e3,Yt=1024,wi=1152,fi=1536;let tn=null,wn=null;class pn{constructor(e,t,r,i=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.ISGenerated=!1,tn===null){const l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);tn=l?parseInt(l[1]):0}if(wn===null){const s=navigator.userAgent.match(/Safari\/(\d+)/i);wn=s?parseInt(s[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){B.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){B.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){B.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const r=e[0].pts,i=e.reduce((s,l)=>{let x=l.pts,j=x-s;return j<-4294967296&&(t=!0,x=rn(x,r),j=x-s),j>0?s:x},r);return t&&B.debug("PTS rollover detected"),i}remux(e,t,r,i,s,l,x,j){let q,de,Re,Ye,Je,ct,_t=s,Dt=s;const pr=e.pid>-1,Tr=t.pid>-1,Lr=t.samples.length,$n=e.samples.length>0,dn=x&&Lr>0||Lr>1;if((!pr||$n)&&(!Tr||dn)||this.ISGenerated||x){if(this.ISGenerated){var Kn,Si,ta,mi;const $a=this.videoTrackConfig;$a&&(t.width!==$a.width||t.height!==$a.height||((Kn=t.pixelRatio)==null?void 0:Kn[0])!==((Si=$a.pixelRatio)==null?void 0:Si[0])||((ta=t.pixelRatio)==null?void 0:ta[1])!==((mi=$a.pixelRatio)==null?void 0:mi[1]))&&this.resetInitSegment()}else Re=this.generateIS(e,t,s,l);const Li=this.isVideoContiguous;let Ga=-1,ia;if(dn&&(Ga=Qn(t.samples),!Li&&this.config.forceKeyFrameOnDiscontinuity))if(ct=!0,Ga>0){B.warn(`[mp4-remuxer]: Dropped ${Ga} out of ${Lr} video samples due to a missing keyframe`);const $a=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Ga),t.dropped+=Ga,Dt+=(t.samples[0].pts-$a)/t.inputTimeScale,ia=Dt}else Ga===-1&&(B.warn(`[mp4-remuxer]: No keyframe found out of ${Lr} video samples`),ct=!1);if(this.ISGenerated){if($n&&dn){const $a=this.getVideoStartPts(t.samples),Ra=(rn(e.samples[0].pts,$a)-$a)/t.inputTimeScale;_t+=Math.max(0,Ra),Dt+=Math.max(0,-Ra)}if($n){if(e.samplerate||(B.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Re=this.generateIS(e,t,s,l)),de=this.remuxAudio(e,_t,this.isAudioContiguous,l,Tr||dn||j===Ht.AUDIO?Dt:void 0),dn){const $a=de?de.endPTS-de.startPTS:0;t.inputTimeScale||(B.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Re=this.generateIS(e,t,s,l)),q=this.remuxVideo(t,Dt,Li,$a)}}else dn&&(q=this.remuxVideo(t,Dt,Li,0));q&&(q.firstKeyFrame=Ga,q.independent=Ga!==-1,q.firstKeyFramePTS=ia)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(Je=vi(r,s,this._initPTS,this._initDTS)),i.samples.length&&(Ye=Mi(i,s,this._initPTS))),{audio:de,video:q,initSegment:Re,independent:ct,text:Ye,id3:Je}}generateIS(e,t,r,i){const s=e.samples,l=t.samples,x=this.typeSupported,j={},q=this._initPTS;let de=!q||i,Re="audio/mp4",Ye,Je,ct;if(de&&(Ye=Je=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":x.mpeg?(Re="audio/mpeg",e.codec=""):x.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}j.audio={id:"audio",container:Re,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&x.mpeg?new Uint8Array(0):St.initSegment([e]),metadata:{channelCount:e.channelCount}},de&&(ct=e.inputTimeScale,!q||ct!==q.timescale?Ye=Je=s[0].pts-Math.round(ct*r):de=!1)}if(t.sps&&t.pps&&l.length){if(t.timescale=t.inputTimeScale,j.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:St.initSegment([t]),metadata:{width:t.width,height:t.height}},de)if(ct=t.inputTimeScale,!q||ct!==q.timescale){const _t=this.getVideoStartPts(l),Dt=Math.round(ct*r);Je=Math.min(Je,rn(l[0].dts,_t)-Dt),Ye=Math.min(Ye,_t-Dt)}else de=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(j).length)return this.ISGenerated=!0,de?(this._initPTS={baseTime:Ye,timescale:ct},this._initDTS={baseTime:Je,timescale:ct}):Ye=ct=void 0,{tracks:j,initPTS:Ye,timescale:ct}}remuxVideo(e,t,r,i){const s=e.inputTimeScale,l=e.samples,x=[],j=l.length,q=this._initPTS;let de=this.nextAvcDts,Re=8,Ye=this.videoSampleDuration,Je,ct,_t=Number.POSITIVE_INFINITY,Dt=Number.NEGATIVE_INFINITY,pr=!1;if(!r||de===null){const ha=t*s,sa=l[0].pts-rn(l[0].dts,l[0].pts);tn&&de!==null&&Math.abs(ha-sa-de)<15e3?r=!0:de=ha-sa}const Tr=q.baseTime*s/q.timescale;for(let ha=0;ha<j;ha++){const sa=l[ha];sa.pts=rn(sa.pts-Tr,de),sa.dts=rn(sa.dts-Tr,de),sa.dts<l[ha>0?ha-1:ha].dts&&(pr=!0)}pr&&l.sort(function(ha,sa){const Ms=ha.dts-sa.dts,ds=ha.pts-sa.pts;return Ms||ds}),Je=l[0].dts,ct=l[l.length-1].dts;const Lr=ct-Je,$n=Lr?Math.round(Lr/(j-1)):Ye||e.inputTimeScale/30;if(r){const ha=Je-de,sa=ha>$n,Ms=ha<-1;if((sa||Ms)&&(sa?B.warn(`AVC: ${An(ha,!0)} ms (${ha}dts) hole between fragments detected at ${t.toFixed(3)}`):B.warn(`AVC: ${An(-ha,!0)} ms (${ha}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Ms||de>=l[0].pts||tn)){Je=de;const ds=l[0].pts-ha;if(sa)l[0].dts=Je,l[0].pts=ds;else for(let Us=0;Us<l.length&&!(l[Us].dts>ds);Us++)l[Us].dts-=ha,l[Us].pts-=ha;B.log(`Video: Initial PTS/DTS adjusted: ${An(ds,!0)}/${An(Je,!0)}, delta: ${An(ha,!0)} ms`)}}Je=Math.max(0,Je);let dn=0,gi=0,Kn=Je;for(let ha=0;ha<j;ha++){const sa=l[ha],Ms=sa.units,ds=Ms.length;let Us=0;for(let lo=0;lo<ds;lo++)Us+=Ms[lo].data.length;gi+=Us,dn+=ds,sa.length=Us,sa.dts<Kn?(sa.dts=Kn,Kn+=$n/4|0||1):Kn=sa.dts,_t=Math.min(sa.pts,_t),Dt=Math.max(sa.pts,Dt)}ct=l[j-1].dts;const Si=gi+4*dn+8;let ta;try{ta=new Uint8Array(Si)}catch(ha){this.observer.emit(a.ERROR,a.ERROR,{type:d.MUX_ERROR,details:m.REMUX_ALLOC_ERROR,fatal:!1,error:ha,bytes:Si,reason:`fail allocating video mdat ${Si}`});return}const mi=new DataView(ta.buffer);mi.setUint32(0,Si),ta.set(St.types.mdat,4);let Li=!1,Ga=Number.POSITIVE_INFINITY,ia=Number.POSITIVE_INFINITY,$a=Number.NEGATIVE_INFINITY,Ka=Number.NEGATIVE_INFINITY;for(let ha=0;ha<j;ha++){const sa=l[ha],Ms=sa.units;let ds=0;for(let Ls=0,Zo=Ms.length;Ls<Zo;Ls++){const ul=Ms[Ls],mc=ul.data,kc=ul.data.byteLength;mi.setUint32(Re,kc),Re+=4,ta.set(mc,Re),Re+=kc,ds+=4+kc}let Us;if(ha<j-1)Ye=l[ha+1].dts-sa.dts,Us=l[ha+1].pts-sa.pts;else{const Ls=this.config,Zo=ha>0?sa.dts-l[ha-1].dts:$n;if(Us=ha>0?sa.pts-l[ha-1].pts:$n,Ls.stretchShortVideoTrack&&this.nextAudioPts!==null){const ul=Math.floor(Ls.maxBufferHole*s),mc=(i?_t+i*s:this.nextAudioPts)-sa.pts;mc>ul?(Ye=mc-Zo,Ye<0?Ye=Zo:Li=!0,B.log(`[mp4-remuxer]: It is approximately ${mc/90} ms to the next segment; using duration ${Ye/90} ms for the last video frame.`)):Ye=Zo}else Ye=Zo}const lo=Math.round(sa.pts-sa.dts);Ga=Math.min(Ga,Ye),$a=Math.max($a,Ye),ia=Math.min(ia,Us),Ka=Math.max(Ka,Us),x.push(new je(sa.key,Ye,ds,lo))}if(x.length){if(tn){if(tn<70){const ha=x[0].flags;ha.dependsOn=2,ha.isNonSync=0}}else if(wn&&Ka-ia<$a-Ga&&$n/$a<.025&&x[0].cts===0){B.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let ha=Je;for(let sa=0,Ms=x.length;sa<Ms;sa++){const ds=ha+x[sa].duration,Us=ha+x[sa].cts;if(sa<Ms-1){const lo=ds+x[sa+1].cts;x[sa].duration=lo-Us}else x[sa].duration=sa?x[sa-1].duration:$n;x[sa].cts=0,ha=ds}}}Ye=Li||!Ye?$n:Ye,this.nextAvcDts=de=ct+Ye,this.videoSampleDuration=Ye,this.isVideoContiguous=!0;const zs={data1:St.moof(e.sequenceNumber++,Je,n({},e,{samples:x})),data2:ta,startPTS:_t/s,endPTS:(Dt+Ye)/s,startDTS:Je/s,endDTS:de/s,type:"video",hasAudio:!1,hasVideo:!0,nb:x.length,dropped:e.dropped};return e.samples=[],e.dropped=0,zs}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return wi;case"ac3":return fi;default:return Yt}}remuxAudio(e,t,r,i,s){const l=e.inputTimeScale,x=e.samplerate?e.samplerate:l,j=l/x,q=this.getSamplesPerFrame(e),de=q*j,Re=this._initPTS,Ye=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Je=[],ct=s!==void 0;let _t=e.samples,Dt=Ye?0:8,pr=this.nextAudioPts||-1;const Tr=t*l,Lr=Re.baseTime*l/Re.timescale;if(this.isAudioContiguous=r=r||_t.length&&pr>0&&(i&&Math.abs(Tr-pr)<9e3||Math.abs(rn(_t[0].pts-Lr,Tr)-pr)<20*de),_t.forEach(function(Ra){Ra.pts=rn(Ra.pts-Lr,Tr)}),!r||pr<0){if(_t=_t.filter(Ra=>Ra.pts>=0),!_t.length)return;s===0?pr=0:i&&!ct?pr=Math.max(0,Tr):pr=_t[0].pts}if(e.segmentCodec==="aac"){const Ra=this.config.maxAudioFramesDrift;for(let Is=0,zs=pr;Is<_t.length;Is++){const ha=_t[Is],sa=ha.pts,Ms=sa-zs,ds=Math.abs(1e3*Ms/l);if(Ms<=-Ra*de&&ct)Is===0&&(B.warn(`Audio frame @ ${(sa/l).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Ms/l)} ms.`),this.nextAudioPts=pr=zs=sa);else if(Ms>=Ra*de&&ds<zr&&ct){let Us=Math.round(Ms/de);zs=sa-Us*de,zs<0&&(Us--,zs+=de),Is===0&&(this.nextAudioPts=pr=zs),B.warn(`[mp4-remuxer]: Injecting ${Us} audio frame @ ${(zs/l).toFixed(3)}s due to ${Math.round(1e3*Ms/l)} ms gap.`);for(let lo=0;lo<Us;lo++){const Ls=Math.max(zs,0);let Zo=or.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Zo||(B.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Zo=ha.unit.subarray()),_t.splice(Is,0,{unit:Zo,pts:Ls}),zs+=de,Is++}}ha.pts=zs,zs+=de}}let $n=null,dn=null,gi,Kn=0,Si=_t.length;for(;Si--;)Kn+=_t[Si].unit.byteLength;for(let Ra=0,Is=_t.length;Ra<Is;Ra++){const zs=_t[Ra],ha=zs.unit;let sa=zs.pts;if(dn!==null){const ds=Je[Ra-1];ds.duration=Math.round((sa-dn)/j)}else if(r&&e.segmentCodec==="aac"&&(sa=pr),$n=sa,Kn>0){Kn+=Dt;try{gi=new Uint8Array(Kn)}catch(ds){this.observer.emit(a.ERROR,a.ERROR,{type:d.MUX_ERROR,details:m.REMUX_ALLOC_ERROR,fatal:!1,error:ds,bytes:Kn,reason:`fail allocating audio mdat ${Kn}`});return}Ye||(new DataView(gi.buffer).setUint32(0,Kn),gi.set(St.types.mdat,4))}else return;gi.set(ha,Dt);const Ms=ha.byteLength;Dt+=Ms,Je.push(new je(!0,q,Ms,0)),dn=sa}const ta=Je.length;if(!ta)return;const mi=Je[Je.length-1];this.nextAudioPts=pr=dn+j*mi.duration;const Li=Ye?new Uint8Array(0):St.moof(e.sequenceNumber++,$n/j,n({},e,{samples:Je}));e.samples=[];const Ga=$n/l,ia=pr/l,Ka={data1:Li,data2:gi,startPTS:Ga,endPTS:ia,startDTS:Ga,endDTS:ia,type:"audio",hasAudio:!0,hasVideo:!1,nb:ta};return this.isAudioContiguous=!0,Ka}remuxEmptyAudio(e,t,r,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,x=s/l,j=this.nextAudioPts,q=this._initDTS,de=q.baseTime*9e4/q.timescale,Re=(j!==null?j:i.startDTS*s)+de,Ye=i.endDTS*s+de,Je=x*Yt,ct=Math.ceil((Ye-Re)/Je),_t=or.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(B.warn("[mp4-remuxer]: remux empty Audio"),!_t){B.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const Dt=[];for(let pr=0;pr<ct;pr++){const Tr=Re+pr*Je;Dt.push({unit:_t,pts:Tr,dts:Tr})}return e.samples=Dt,this.remuxAudio(e,t,r,!1)}}function rn(f,e){let t;if(e===null)return f;for(e<f?t=-8589934592:t=8589934592;Math.abs(f-e)>4294967296;)f+=t;return f}function Qn(f){for(let e=0;e<f.length;e++)if(f[e].key)return e;return-1}function vi(f,e,t,r){const i=f.samples.length;if(!i)return;const s=f.inputTimeScale;for(let x=0;x<i;x++){const j=f.samples[x];j.pts=rn(j.pts-t.baseTime*s/t.timescale,e*s)/s,j.dts=rn(j.dts-r.baseTime*s/r.timescale,e*s)/s}const l=f.samples;return f.samples=[],{samples:l}}function Mi(f,e,t){const r=f.samples.length;if(!r)return;const i=f.inputTimeScale;for(let l=0;l<r;l++){const x=f.samples[l];x.pts=rn(x.pts-t.baseTime*i/t.timescale,e*i)/i}f.samples.sort((l,x)=>l.pts-x.pts);const s=f.samples;return f.samples=[],{samples:s}}class je{constructor(e,t,r,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=r,this.cts=i,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class A{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,r,i){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment(Oe(e,i)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const i=this.initData=qt(e);i.audio&&(t=E(i.audio,pe.AUDIO)),i.video&&(r=E(i.video,pe.VIDEO));const s={};i.audio&&i.video?s.audiovideo={container:"video/mp4",codec:t+","+r,initSegment:e,id:"main"}:i.audio?s.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:i.video?s.video={container:"video/mp4",codec:r,initSegment:e,id:"main"}:B.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=s}remux(e,t,r,i,s,l){var x,j;let{initPTS:q,lastEndTime:de}=this;const Re={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};o(de)||(de=this.lastEndTime=s||0);const Ye=t.samples;if(!(Ye!=null&&Ye.length))return Re;const Je={initPTS:void 0,timescale:1};let ct=this.initData;if((x=ct)!=null&&x.length||(this.generateInitSegment(Ye),ct=this.initData),!((j=ct)!=null&&j.length))return B.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Re;this.emitInitSegment&&(Je.tracks=this.initTracks,this.emitInitSegment=!1);const _t=On(Ye,ct),Dt=Mt(ct,Ye),pr=Dt===null?s:Dt;(w(q,pr,s,_t)||Je.timescale!==q.timescale&&l)&&(Je.initPTS=pr-s,q&&q.timescale===1&&B.warn(`Adjusting initPTS by ${Je.initPTS-q.baseTime}`),this.initPTS=q={baseTime:Je.initPTS,timescale:1});const Tr=e?pr-q.baseTime/q.timescale:de,Lr=Tr+_t;yi(ct,Ye,q.baseTime/q.timescale),_t>0?this.lastEndTime=Lr:(B.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const $n=!!ct.audio,dn=!!ct.video;let gi="";$n&&(gi+="audio"),dn&&(gi+="video");const Kn={data1:Ye,startPTS:Tr,startDTS:Tr,endPTS:Lr,endDTS:Lr,type:gi,hasAudio:$n,hasVideo:dn,nb:1,dropped:0};return Re.audio=Kn.type==="audio"?Kn:void 0,Re.video=Kn.type!=="audio"?Kn:void 0,Re.initSegment=Je,Re.id3=vi(r,s,q,q),i.samples.length&&(Re.text=Mi(i,s,q)),Re}}function w(f,e,t,r){if(f===null)return!0;const i=Math.max(r,1),s=e-f.baseTime/f.timescale;return Math.abs(s-t)>i}function E(f,e){const t=f==null?void 0:f.codec;if(t&&t.length>4)return t;if(e===pe.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return ti(t,!1);const r="mp4a.40.5";return B.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${r}"`),r}return B.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let z;try{z=self.performance.now.bind(self.performance)}catch(f){B.debug("Unable to use Performance API on this environment"),z=st==null?void 0:st.Date.now}const be=[{demux:Gn,remux:A},{demux:xt,remux:pn},{demux:Br,remux:pn},{demux:er,remux:pn}];be.splice(2,0,{demux:nr,remux:pn});class ze{constructor(e,t,r,i,s){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=r,this.vendor=i,this.id=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,i){const s=r.transmuxing;s.executeStart=z();let l=new Uint8Array(e);const{currentTransmuxState:x,transmuxConfig:j}=this;i&&(this.currentTransmuxState=i);const{contiguous:q,discontinuity:de,trackSwitch:Re,accurateTimeOffset:Ye,timeOffset:Je,initSegmentChange:ct}=i||x,{audioCodec:_t,videoCodec:Dt,defaultInitPts:pr,duration:Tr,initSegmentData:Lr}=j,$n=pt(l,t);if($n&&$n.method==="AES-128"){const Si=this.getDecrypter();if(Si.isSync()){let ta=Si.softwareDecrypt(l,$n.key.buffer,$n.iv.buffer);if(r.part>-1&&(ta=Si.flush()),!ta)return s.executeEnd=z(),It(r);l=new Uint8Array(ta)}else return this.decryptionPromise=Si.webCryptoDecrypt(l,$n.key.buffer,$n.iv.buffer).then(ta=>{const mi=this.push(ta,null,r);return this.decryptionPromise=null,mi}),this.decryptionPromise}const dn=this.needsProbing(de,Re);if(dn){const Si=this.configureTransmuxer(l);if(Si)return B.warn(`[transmuxer] ${Si.message}`),this.observer.emit(a.ERROR,a.ERROR,{type:d.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,error:Si,reason:Si.message}),s.executeEnd=z(),It(r)}(de||Re||ct||dn)&&this.resetInitSegment(Lr,_t,Dt,Tr,t),(de||ct||dn)&&this.resetInitialTimestamp(pr),q||this.resetContiguity();const gi=this.transmux(l,$n,Je,Ye,r),Kn=this.currentTransmuxState;return Kn.contiguous=!0,Kn.discontinuity=!1,Kn.trackSwitch=!1,s.executeEnd=z(),gi}flush(e){const t=e.transmuxing;t.executeStart=z();const{decrypter:r,currentTransmuxState:i,decryptionPromise:s}=this;if(s)return s.then(()=>this.flush(e));const l=[],{timeOffset:x}=i;if(r){const Re=r.flush();Re&&l.push(this.push(Re,null,e))}const{demuxer:j,remuxer:q}=this;if(!j||!q)return t.executeEnd=z(),[It(e)];const de=j.flush(x);return $t(de)?de.then(Re=>(this.flushRemux(l,Re,e),l)):(this.flushRemux(l,de,e),l)}flushRemux(e,t,r){const{audioTrack:i,videoTrack:s,id3Track:l,textTrack:x}=t,{accurateTimeOffset:j,timeOffset:q}=this.currentTransmuxState;B.log(`[transmuxer.ts]: Flushed fragment ${r.sn}${r.part>-1?" p: "+r.part:""} of level ${r.level}`);const de=this.remuxer.remux(i,s,l,x,q,j,!0,this.id);e.push({remuxResult:de,chunkMeta:r}),r.transmuxing.executeEnd=z()}resetInitialTimestamp(e){const{demuxer:t,remuxer:r}=this;!t||!r||(t.resetTimeStamp(e),r.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,r,i,s){const{demuxer:l,remuxer:x}=this;!l||!x||(l.resetInitSegment(e,t,r,i),x.resetInitSegment(e,t,r,s))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,r,i,s){let l;return t&&t.method==="SAMPLE-AES"?l=this.transmuxSampleAes(e,t,r,i,s):l=this.transmuxUnencrypted(e,r,i,s),l}transmuxUnencrypted(e,t,r,i){const{audioTrack:s,videoTrack:l,id3Track:x,textTrack:j}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(s,l,x,j,t,r,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,r,i,s){return this.demuxer.demuxSampleAes(e,t,r).then(l=>({remuxResult:this.remuxer.remux(l.audioTrack,l.videoTrack,l.id3Track,l.textTrack,r,i,!1,this.id),chunkMeta:s}))}configureTransmuxer(e){const{config:t,observer:r,typeSupported:i,vendor:s}=this;let l;for(let Ye=0,Je=be.length;Ye<Je;Ye++){var x;if((x=be[Ye].demux)!=null&&x.probe(e)){l=be[Ye];break}}if(!l)return new Error("Failed to find demuxer by probing fragment data");const j=this.demuxer,q=this.remuxer,de=l.remux,Re=l.demux;(!q||!(q instanceof de))&&(this.remuxer=new de(r,t,i,s)),(!j||!(j instanceof Re))&&(this.demuxer=new Re(r,t,i),this.probe=Re.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Ql(this.config)),e}}function pt(f,e){let t=null;return f.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const It=f=>({remuxResult:{},chunkMeta:f});function $t(f){return"then"in f&&f.then instanceof Function}class fr{constructor(e,t,r,i,s){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=r,this.duration=i,this.defaultInitPts=s||null}}class Dr{constructor(e,t,r,i,s,l){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=s,this.initSegmentChange=l}}var Hr={exports:{}};(function(f){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function i(j,q,de){this.fn=j,this.context=q,this.once=de||!1}function s(j,q,de,Re,Ye){if(typeof de!="function")throw new TypeError("The listener must be a function");var Je=new i(de,Re||j,Ye),ct=t?t+q:q;return j._events[ct]?j._events[ct].fn?j._events[ct]=[j._events[ct],Je]:j._events[ct].push(Je):(j._events[ct]=Je,j._eventsCount++),j}function l(j,q){--j._eventsCount===0?j._events=new r:delete j._events[q]}function x(){this._events=new r,this._eventsCount=0}x.prototype.eventNames=function(){var q=[],de,Re;if(this._eventsCount===0)return q;for(Re in de=this._events)e.call(de,Re)&&q.push(t?Re.slice(1):Re);return Object.getOwnPropertySymbols?q.concat(Object.getOwnPropertySymbols(de)):q},x.prototype.listeners=function(q){var de=t?t+q:q,Re=this._events[de];if(!Re)return[];if(Re.fn)return[Re.fn];for(var Ye=0,Je=Re.length,ct=new Array(Je);Ye<Je;Ye++)ct[Ye]=Re[Ye].fn;return ct},x.prototype.listenerCount=function(q){var de=t?t+q:q,Re=this._events[de];return Re?Re.fn?1:Re.length:0},x.prototype.emit=function(q,de,Re,Ye,Je,ct){var _t=t?t+q:q;if(!this._events[_t])return!1;var Dt=this._events[_t],pr=arguments.length,Tr,Lr;if(Dt.fn){switch(Dt.once&&this.removeListener(q,Dt.fn,void 0,!0),pr){case 1:return Dt.fn.call(Dt.context),!0;case 2:return Dt.fn.call(Dt.context,de),!0;case 3:return Dt.fn.call(Dt.context,de,Re),!0;case 4:return Dt.fn.call(Dt.context,de,Re,Ye),!0;case 5:return Dt.fn.call(Dt.context,de,Re,Ye,Je),!0;case 6:return Dt.fn.call(Dt.context,de,Re,Ye,Je,ct),!0}for(Lr=1,Tr=new Array(pr-1);Lr<pr;Lr++)Tr[Lr-1]=arguments[Lr];Dt.fn.apply(Dt.context,Tr)}else{var $n=Dt.length,dn;for(Lr=0;Lr<$n;Lr++)switch(Dt[Lr].once&&this.removeListener(q,Dt[Lr].fn,void 0,!0),pr){case 1:Dt[Lr].fn.call(Dt[Lr].context);break;case 2:Dt[Lr].fn.call(Dt[Lr].context,de);break;case 3:Dt[Lr].fn.call(Dt[Lr].context,de,Re);break;case 4:Dt[Lr].fn.call(Dt[Lr].context,de,Re,Ye);break;default:if(!Tr)for(dn=1,Tr=new Array(pr-1);dn<pr;dn++)Tr[dn-1]=arguments[dn];Dt[Lr].fn.apply(Dt[Lr].context,Tr)}}return!0},x.prototype.on=function(q,de,Re){return s(this,q,de,Re,!1)},x.prototype.once=function(q,de,Re){return s(this,q,de,Re,!0)},x.prototype.removeListener=function(q,de,Re,Ye){var Je=t?t+q:q;if(!this._events[Je])return this;if(!de)return l(this,Je),this;var ct=this._events[Je];if(ct.fn)ct.fn===de&&(!Ye||ct.once)&&(!Re||ct.context===Re)&&l(this,Je);else{for(var _t=0,Dt=[],pr=ct.length;_t<pr;_t++)(ct[_t].fn!==de||Ye&&!ct[_t].once||Re&&ct[_t].context!==Re)&&Dt.push(ct[_t]);Dt.length?this._events[Je]=Dt.length===1?Dt[0]:Dt:l(this,Je)}return this},x.prototype.removeAllListeners=function(q){var de;return q?(de=t?t+q:q,this._events[de]&&l(this,de)):(this._events=new r,this._eventsCount=0),this},x.prototype.off=x.prototype.removeListener,x.prototype.addListener=x.prototype.on,x.prefixed=t,x.EventEmitter=x,f.exports=x})(Hr);var Hn=Hr.exports,Ur=xe(Hn);class xn{constructor(e,t,r,i){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const s=e.config;this.hls=e,this.id=t,this.useWorker=!!s.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;const l=(q,de)=>{de=de||{},de.frag=this.frag,de.id=this.id,q===a.ERROR&&(this.error=de.error),this.hls.trigger(q,de)};this.observer=new Ur,this.observer.on(a.FRAG_DECRYPTED,l),this.observer.on(a.ERROR,l);const x=Vn(s.preferManagedMediaSource)||{isTypeSupported:()=>!1},j={mpeg:x.isTypeSupported("audio/mpeg"),mp3:x.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:x.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(s.workerPath||nc())){try{s.workerPath?(B.log(`loading Web Worker ${s.workerPath} for "${t}"`),this.workerContext=ic(s.workerPath)):(B.log(`injecting Web Worker for "${t}"`),this.workerContext=fu()),this.onwmsg=Re=>this.onWorkerMessage(Re);const{worker:de}=this.workerContext;de.addEventListener("message",this.onwmsg),de.onerror=Re=>{const Ye=new Error(`${Re.message} (${Re.filename}:${Re.lineno})`);s.enableWorker=!1,B.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(a.ERROR,{type:d.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Ye})},de.postMessage({cmd:"init",typeSupported:j,vendor:"",id:t,config:JSON.stringify(s)})}catch(de){B.warn(`Error setting up "${t}" Web Worker, fallback to inline`,de),this.resetWorker(),this.error=null,this.transmuxer=new ze(this.observer,j,s,"",t)}return}this.transmuxer=new ze(this.observer,j,s,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,r,i,s,l,x,j,q,de){var Re,Ye;q.transmuxing.start=self.performance.now();const{transmuxer:Je}=this,ct=l?l.start:s.start,_t=s.decryptdata,Dt=this.frag,pr=!(Dt&&s.cc===Dt.cc),Tr=!(Dt&&q.level===Dt.level),Lr=Dt?q.sn-Dt.sn:-1,$n=this.part?q.part-this.part.index:-1,dn=Lr===0&&q.id>1&&q.id===(Dt==null?void 0:Dt.stats.chunkCount),gi=!Tr&&(Lr===1||Lr===0&&($n===1||dn&&$n<=0)),Kn=self.performance.now();(Tr||Lr||s.stats.parsing.start===0)&&(s.stats.parsing.start=Kn),l&&($n||!gi)&&(l.stats.parsing.start=Kn);const Si=!(Dt&&((Re=s.initSegment)==null?void 0:Re.url)===((Ye=Dt.initSegment)==null?void 0:Ye.url)),ta=new Dr(pr,gi,j,Tr,ct,Si);if(!gi||pr||Si){B.log(`[transmuxer-interface, ${s.type}]: Starting new transmux session for sn: ${q.sn} p: ${q.part} level: ${q.level} id: ${q.id}
|
|
|
discontinuity: ${pr}
|
|
|
trackSwitch: ${Tr}
|
|
|
contiguous: ${gi}
|
|
|
accurateTimeOffset: ${j}
|
|
|
timeOffset: ${ct}
|
|
|
initSegmentChange: ${Si}`);const mi=new fr(r,i,t,x,de);this.configureTransmuxer(mi)}if(this.frag=s,this.part=l,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:_t,chunkMeta:q,state:ta},e instanceof ArrayBuffer?[e]:[]);else if(Je){const mi=Je.push(e,_t,q,ta);$t(mi)?(Je.async=!0,mi.then(Li=>{this.handleTransmuxComplete(Li)}).catch(Li=>{this.transmuxerError(Li,q,"transmuxer-interface push error")})):(Je.async=!1,this.handleTransmuxComplete(mi))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let r=t.flush(e);$t(r)||t.async?($t(r)||(r=Promise.resolve(r)),r.then(s=>{this.handleFlushResult(s,e)}).catch(s=>{this.transmuxerError(s,e,"transmuxer-interface flush error")})):this.handleFlushResult(r,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){B.warn(`worker message received with no ${t?"event name":"data"}`);return}const r=this.hls;if(this.hls)switch(t.event){case"init":{var i;const s=(i=this.workerContext)==null?void 0:i.objectURL;s&&self.URL.revokeObjectURL(s);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":B[t.data.logType]&&B[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const Nn=100;class kn extends du{constructor(e,t,r){super(e,t,r,"[audio-stream-controller]",Ht.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(a.ERROR,this.onError,this),e.on(a.BUFFER_RESET,this.onBufferReset,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(a.ERROR,this.onError,this),e.off(a.BUFFER_RESET,this.onBufferReset,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:r,initPTS:i,timescale:s}){if(r==="main"){const l=t.cc;this.initPTS[t.cc]={baseTime:i,timescale:s},this.log(`InitPTS for cc: ${l} found from main: ${i}`),this.videoTrackCC=l,this.state===ci.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=ci.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(Nn),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=ci.IDLE):(this.loadedmetadata=!1,this.state=ci.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case ci.IDLE:this.doTickIdle();break;case ci.WAITING_TRACK:{var e;const{levels:r,trackId:i}=this,s=r==null||(e=r[i])==null?void 0:e.details;if(s){if(this.waitForCdnTuneIn(s))break;this.state=ci.WAITING_INIT_PTS}break}case ci.FRAG_LOADING_WAITING_RETRY:{var t;const r=performance.now(),i=this.retryDate;if(!i||r>=i||(t=this.media)!=null&&t.seeking){const{levels:s,trackId:l}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((s==null?void 0:s[l])||null),this.state=ci.IDLE}break}case ci.WAITING_INIT_PTS:{const r=this.waitingData;if(r){const{frag:i,part:s,cache:l,complete:x}=r;if(this.initPTS[i.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=ci.FRAG_LOADING;const j=l.flush(),q={frag:i,part:s,payload:j,networkDetails:null};this._handleFragmentLoadProgress(q),x&&super._handleFragmentLoadComplete(q)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${i.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const j=this.getLoadPosition(),q=Xa.bufferInfo(this.mediaBuffer,j,this.config.maxBufferHole);$s(q.end,this.config.maxFragLookUpTolerance,i)<0&&(this.log(`Waiting fragment cc (${i.cc}) @ ${i.start} cancelled because another fragment at ${q.end} is needed`),this.clearWaitingFragment())}}else this.state=ci.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=ci.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:r,trackId:i}=this,s=e.config;if(!this.buffering||!r&&(this.startFragRequested||!s.startFragPrefetch)||!(t!=null&&t[i]))return;const l=t[i],x=l.details;if(!x||x.live&&this.levelLastLoaded!==l||this.waitForCdnTuneIn(x)){this.state=ci.WAITING_TRACK;return}const j=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&j&&(this.bufferFlushed=!1,this.afterBufferFlushed(j,pe.AUDIO,Ht.AUDIO));const q=this.getFwdBufferInfo(j,Ht.AUDIO);if(q===null)return;if(!this.switchingTrack&&this._streamEnded(q,x)){e.trigger(a.BUFFER_EOS,{type:"audio"}),this.state=ci.ENDED;return}const de=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ht.MAIN),Re=q.len,Ye=this.getMaxBufferLength(de==null?void 0:de.len),Je=x.fragments,ct=Je[0].start,_t=this.getLoadPosition(),Dt=this.flushing?_t:q.end;if(this.switchingTrack&&r){const $n=_t;x.PTSKnown&&$n<ct&&(q.end>ct||q.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=ct+.05)}if(Re>=Ye&&!this.switchingTrack&&Dt<Je[Je.length-1].start)return;let pr=this.getNextFragment(Dt,x),Tr=!1;if(pr&&this.isLoopLoading(pr,Dt)&&(Tr=!!pr.gap,pr=this.getNextFragmentLoopLoading(pr,x,q,Ht.MAIN,Ye)),!pr){this.bufferFlushed=!0;return}const Lr=de&&pr.start>de.end+x.targetduration;if(Lr||!(de!=null&&de.len)&&q.len){const $n=this.getAppendedFrag(pr.start,Ht.MAIN);if($n===null||(Tr||(Tr=!!$n.gap||!!Lr&&de.len===0),Lr&&!Tr||Tr&&q.nextStart&&q.nextStart<$n.end))return}this.loadFragment(pr,l,Dt)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new Yi(r))}onAudioTrackSwitching(e,t){const r=!!t.url;this.trackId=t.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?this.setInterval(Nn):this.resetTransmuxer(),r?(this.switchingTrack=t,this.state=ci.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=ci.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(a.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var r;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:i}=this,{details:s,id:l}=t;if(!i){this.warn(`Audio tracks were reset while loading level ${l}`);return}this.log(`Audio track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`);const x=i[l];let j=0;if(s.live||(r=x.details)!=null&&r.live){this.checkLiveUpdate(s);const de=this.mainDetails;if(s.deltaUpdateFailed||!de)return;if(!x.details&&s.hasProgramDateTime&&de.hasProgramDateTime)Ks(s,de),j=s.fragments[0].start;else{var q;j=this.alignPlaylists(s,x.details,(q=this.levelLastLoaded)==null?void 0:q.details)}}x.details=s,this.levelLastLoaded=x,!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,j),this.state===ci.WAITING_TRACK&&!this.waitForCdnTuneIn(s)&&(this.state=ci.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:i,payload:s}=e,{config:l,trackId:x,levels:j}=this;if(!j){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const q=j[x];if(!q){this.warn("Audio track is undefined on fragment load progress");return}const de=q.details;if(!de){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const Re=l.defaultAudioCodec||q.audioCodec||"mp4a.40.2";let Ye=this.transmuxer;Ye||(Ye=this.transmuxer=new xn(this.hls,Ht.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Je=this.initPTS[r.cc],ct=(t=r.initSegment)==null?void 0:t.data;if(Je!==void 0){const Dt=i?i.index:-1,pr=Dt!==-1,Tr=new bl(r.level,r.sn,r.stats.chunkCount,s.byteLength,Dt,pr);Ye.push(s,ct,Re,"",r,i,de.totalduration,!1,Tr,Je)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${de.startSN} ,${de.endSN}],track ${x}`);const{cache:_t}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new ru,complete:!1};_t.push(new Uint8Array(s)),this.waitingVideoCC=this.videoTrackCC,this.state=ci.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:r,part:i}=t;if(r.type!==Ht.AUDIO){if(!this.loadedmetadata&&r.type===Ht.MAIN){const s=this.videoBuffer||this.media;s&&Xa.getBuffered(s).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(r.sn!=="initSegment"){this.fragPrevious=r;const s=this.switchingTrack;s&&(this.bufferedTrack=s,this.switchingTrack=null,this.hls.trigger(a.AUDIO_TRACK_SWITCHED,ie({},s)))}this.fragBufferedComplete(r,i)}onError(e,t){var r;if(t.fatal){this.state=ci.ERROR;return}switch(t.details){case m.FRAG_GAP:case m.FRAG_PARSING_ERROR:case m.FRAG_DECRYPT_ERROR:case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ht.AUDIO,t);break;case m.AUDIO_TRACK_LOAD_ERROR:case m.AUDIO_TRACK_LOAD_TIMEOUT:case m.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===ci.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===gn.AUDIO_TRACK&&(this.state=ci.IDLE);break;case m.BUFFER_APPEND_ERROR:case m.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===m.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case m.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==pe.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==pe.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===ci.ENDED&&(this.state=ci.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,Ht.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:i}=this,{remuxResult:s,chunkMeta:l}=e,x=this.getCurrentContext(l);if(!x){this.resetWhenMissingContext(l);return}const{frag:j,part:q,level:de}=x,{details:Re}=de,{audio:Ye,text:Je,id3:ct,initSegment:_t}=s;if(this.fragContextChanged(j)||!Re){this.fragmentTracker.removeFragment(j);return}if(this.state=ci.PARSING,this.switchingTrack&&Ye&&this.completeAudioSwitch(this.switchingTrack),_t!=null&&_t.tracks){const Dt=j.initSegment||j;this._bufferInitSegment(de,_t.tracks,Dt,l),i.trigger(a.FRAG_PARSING_INIT_SEGMENT,{frag:Dt,id:r,tracks:_t.tracks})}if(Ye){const{startPTS:Dt,endPTS:pr,startDTS:Tr,endDTS:Lr}=Ye;q&&(q.elementaryStreams[pe.AUDIO]={startPTS:Dt,endPTS:pr,startDTS:Tr,endDTS:Lr}),j.setElementaryStreamInfo(pe.AUDIO,Dt,pr,Tr,Lr),this.bufferFragmentData(Ye,j,q,l)}if(ct!=null&&(t=ct.samples)!=null&&t.length){const Dt=n({id:r,frag:j,details:Re},ct);i.trigger(a.FRAG_PARSING_METADATA,Dt)}if(Je){const Dt=n({id:r,frag:j,details:Re},Je);i.trigger(a.FRAG_PARSING_USERDATA,Dt)}}_bufferInitSegment(e,t,r,i){if(this.state!==ci.PARSING)return;t.video&&delete t.video;const s=t.audio;if(!s)return;s.id="audio";const l=e.audioCodec;this.log(`Init audio buffer, container:${s.container}, codecs[level/parsed]=[${l}/${s.codec}]`),l&&l.split(",").length===1&&(s.levelCodec=l),this.hls.trigger(a.BUFFER_CODECS,t);const x=s.initSegment;if(x!=null&&x.byteLength){const j={type:"audio",frag:r,part:null,chunkMeta:i,parent:r.type,data:x};this.hls.trigger(a.BUFFER_APPENDING,j)}this.tickImmediate()}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||i===ba.NOT_LOADED||i===ba.PARTIAL){var s;if(e.sn==="initSegment")this._loadInitSegment(e,t);else if((s=t.details)!=null&&s.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=ci.WAITING_INIT_PTS;const l=this.mainDetails;l&&l.fragments[0].start!==t.details.fragments[0].start&&Ks(t.details,l)}else this.startFragRequested=!0,super.loadFragment(e,t,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:x}=this.bufferedTrack;go({name:t,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:x},e,pa)||(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(a.AUDIO_TRACK_SWITCHED,ie({},e))}}function Jn(f,e){if(f.length!==e.length)return!1;for(let t=0;t<f.length;t++)if(!Rn(f[t].attrs,e[t].attrs))return!1;return!0}function Rn(f,e,t){const r=f["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(i=>f[i]!==e[i])}function Oi(f,e){return e.label.toLowerCase()===f.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(f.lang||"").toLowerCase())}class Gi extends Oa{constructor(e){super(e,"[audio-track-controller]"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(a.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:r,groupId:i,details:s}=t,l=this.tracksInGroup[r];if(!l||l.groupId!==i){this.warn(`Audio track with id:${r} and group:${i} not found in active group ${l==null?void 0:l.groupId}`);return}const x=l.details;l.details=t.details,this.log(`Audio track ${r} "${l.name}" lang:${l.lang} group:${i} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,x)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const r=t.audioGroups||null,i=this.groupIds;let s=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(x=>(i==null?void 0:i.indexOf(x))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const x=this.tracks.filter(Ye=>!r||r.indexOf(Ye.groupId)!==-1);if(x.length)this.selectDefaultTrack&&!x.some(Ye=>Ye.default)&&(this.selectDefaultTrack=!1),x.forEach((Ye,Je)=>{Ye.id=Je});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=x;const j=this.hls.config.audioPreference;if(!s&&j){const Ye=fo(j,x,pa);if(Ye>-1)s=x[Ye];else{const Je=fo(j,this.tracks);s=this.tracks[Je]}}let q=this.findTrackId(s);q===-1&&s&&(q=this.findTrackId(null));const de={audioTracks:x};this.log(`Updating audio tracks, ${x.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(a.AUDIO_TRACKS_UPDATED,de);const Re=this.trackId;if(q!==-1&&Re===-1)this.setAudioTrack(q);else if(x.length&&Re===-1){var l;const Ye=new Error(`No audio track selected for current audio group-ID(s): ${(l=this.groupIds)==null?void 0:l.join(",")} track count: ${x.length}`);this.warn(Ye.message),this.hls.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:Ye})}}else this.shouldReloadPlaylist(s)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===gn.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const i=this.currentTrack;if(i&&go(e,i,pa))return i;const s=fo(e,this.tracksInGroup,pa);if(s>-1){const l=this.tracksInGroup[s];return this.setAudioTrack(s),l}else if(i){let l=t.loadLevel;l===-1&&(l=t.firstAutoLevel);const x=eo(e,t.levels,r,l,pa);if(x===-1)return null;t.nextLoadLevel=x}if(e.channels||e.audioCodec){const l=fo(e,r);if(l>-1)return r[l]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=t[e],s=i.details&&!i.details.live;if(e===this.trackId&&i===r&&s||(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(a.AUDIO_TRACK_SWITCHING,ie({},i)),s))return;const l=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(l)}findTrackId(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const i=t[r];if(!(this.selectDefaultTrack&&!i.default)&&(!e||go(e,i,pa)))return r}if(e){const{name:r,lang:i,assocLang:s,characteristics:l,audioCodec:x,channels:j}=e;for(let q=0;q<t.length;q++){const de=t[q];if(go({name:r,lang:i,assocLang:s,characteristics:l,audioCodec:x,channels:j},de,pa))return q}for(let q=0;q<t.length;q++){const de=t[q];if(Rn(e.attrs,de.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return q}for(let q=0;q<t.length;q++){const de=t[q];if(Rn(e.attrs,de.attrs,["LANGUAGE"]))return q}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const r=t.id,i=t.groupId;let s=t.url;if(e)try{s=e.addDirectives(s)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}this.log(`loading audio-track playlist ${r} "${t.name}" lang:${t.lang} group:${i}`),this.clearTimer(),this.hls.trigger(a.AUDIO_TRACK_LOADING,{url:s,id:r,groupId:i,deliveryDirectives:e||null})}}}const Ji=500;class Ia extends du{constructor(e,t,r){super(e,t,r,"[subtitle-stream-controller]",Ht.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.ERROR,this.onError,this),e.on(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(a.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(a.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.ERROR,this.onError,this),e.off(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(a.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(a.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=ci.IDLE,this.setInterval(Ji),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:r,success:i}=t;if(this.fragPrevious=r,this.state=ci.IDLE,!i)return;const s=this.tracksBuffered[this.currentTrackId];if(!s)return;let l;const x=r.start;for(let q=0;q<s.length;q++)if(x>=s[q].start&&x<=s[q].end){l=s[q];break}const j=r.start+r.duration;l?l.end=j:(l={start:x,end:j},s.push(l)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}onBufferFlushing(e,t){const{startOffset:r,endOffset:i}=t;if(r===0&&i!==Number.POSITIVE_INFINITY){const s=i-1;if(s<=0)return;t.endOffsetSubtitles=Math.max(0,s),this.tracksBuffered.forEach(l=>{for(let x=0;x<l.length;){if(l[x].end<=s){l.shift();continue}else if(l[x].start<s)l[x].start=s;else break;x++}}),this.fragmentTracker.removeFragmentsInRange(r,s,Ht.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Ht.MAIN){var r;(r=this.media)!=null&&r.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===Ht.SUBTITLE&&(t.details===m.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==ci.STOPPED&&(this.state=ci.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Jn(this.levels,t)){this.levels=t.map(r=>new Yi(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const i=new Yi(r);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Ht.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var r;if(this.currentTrackId=t.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.setInterval(Ji)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:i,levels:s}=this,{details:l,id:x}=t;if(!s){this.warn(`Subtitle tracks were reset while loading level ${x}`);return}const j=s[x];if(x>=s.length||!j)return;this.log(`Subtitle track ${x} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""},duration:${l.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let q=0;if(l.live||(r=j.details)!=null&&r.live){const Re=this.mainDetails;if(l.deltaUpdateFailed||!Re)return;const Ye=Re.fragments[0];if(!j.details)l.hasProgramDateTime&&Re.hasProgramDateTime?(Ks(l,Re),q=l.fragments[0].start):Ye&&(q=Ye.start,Yn(l,q));else{var de;q=this.alignPlaylists(l,j.details,(de=this.levelLastLoaded)==null?void 0:de.details),q===0&&Ye&&(q=Ye.start,Yn(l,q))}}j.details=l,this.levelLastLoaded=j,x===i&&(!this.startFragRequested&&(this.mainDetails||!l.live)&&this.setStartPosition(this.mainDetails||l,q),this.tick(),l.live&&!this.fragCurrent&&this.media&&this.state===ci.IDLE&&(po(null,l.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),j.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:r}=e,i=t.decryptdata,s=this.hls;if(!this.fragContextChanged(t)&&r&&r.byteLength>0&&i!=null&&i.key&&i.iv&&i.method==="AES-128"){const l=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer).catch(x=>{throw s.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.FRAG_DECRYPT_ERROR,fatal:!1,error:x,reason:x.message,frag:t}),x}).then(x=>{const j=performance.now();s.trigger(a.FRAG_DECRYPTED,{frag:t,payload:x,stats:{tstart:l,tdecrypt:j}})}).catch(x=>{this.warn(`${x.name}: ${x.message}`),this.state=ci.IDLE})}}doTick(){if(!this.media){this.state=ci.IDLE;return}if(this.state===ci.IDLE){const{currentTrackId:e,levels:t}=this,r=t==null?void 0:t[e];if(!r||!t.length||!r.details)return;const{config:i}=this,s=this.getLoadPosition(),l=Xa.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],s,i.maxBufferHole),{end:x,len:j}=l,q=this.getFwdBufferInfo(this.media,Ht.MAIN),de=r.details,Re=this.getMaxBufferLength(q==null?void 0:q.len)+de.levelTargetDuration;if(j>Re)return;const Ye=de.fragments,Je=Ye.length,ct=de.edge;let _t=null;const Dt=this.fragPrevious;if(x<ct){const pr=i.maxFragLookUpTolerance,Tr=x>ct-pr?0:pr;_t=po(Dt,Ye,Math.max(Ye[0].start,x),Tr),!_t&&Dt&&Dt.start<Ye[0].start&&(_t=Ye[0])}else _t=Ye[Je-1];if(!_t)return;if(_t=this.mapToInitFragWhenRequired(_t),_t.sn!=="initSegment"){const pr=_t.sn-de.startSN,Tr=Ye[pr-1];Tr&&Tr.cc===_t.cc&&this.fragmentTracker.getState(Tr)===ba.NOT_LOADED&&(_t=Tr)}this.fragmentTracker.getState(_t)===ba.NOT_LOADED&&this.loadFragment(_t,r,x)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,r){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,r))}get mediaBufferTimeRanges(){return new Di(this.tracksBuffered[this.currentTrackId]||[])}}class Di{constructor(e){this.buffered=void 0;const t=(r,i,s)=>{if(i=i>>>0,i>s-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${s})`);return e[i][r]};this.buffered={get length(){return e.length},end(r){return t("end",r,e.length)},start(r){return t("start",r,e.length)}}}}class ss extends Oa{constructor(e){super(e,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const r=ai(this.media.textTracks);for(let s=0;s<r.length;s++)if(r[s].mode==="hidden")t=r[s];else if(r[s].mode==="showing"){t=r[s];break}const i=this.findTrackForTextTrack(t);this.subtitleTrack!==i&&this.setSubtitleTrack(i)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(a.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),ai(this.media.textTracks).forEach(t=>{Ea(t)}),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:r,groupId:i,details:s}=t,l=this.tracksInGroup[r];if(!l||l.groupId!==i){this.warn(`Subtitle track with id:${r} and group:${i} not found in active group ${l==null?void 0:l.groupId}`);return}const x=l.details;l.details=t.details,this.log(`Subtitle track ${r} "${l.name}" lang:${l.lang} group:${i} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,x)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const r=t.subtitleGroups||null,i=this.groupIds;let s=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(l=>(i==null?void 0:i.indexOf(l))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(de=>!r||r.indexOf(de.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(de=>de.default)&&(this.selectDefaultTrack=!1),l.forEach((de,Re)=>{de.id=Re});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const x=this.hls.config.subtitlePreference;if(!s&&x){this.selectDefaultTrack=!1;const de=fo(x,l);if(de>-1)s=l[de];else{const Re=fo(x,this.tracks);s=this.tracks[Re]}}let j=this.findTrackId(s);j===-1&&s&&(j=this.findTrackId(null));const q={subtitleTracks:l};this.log(`Updating subtitle tracks, ${l.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(a.SUBTITLE_TRACKS_UPDATED,q),j!==-1&&this.trackId===-1&&this.setSubtitleTrack(j)}else this.shouldReloadPlaylist(s)&&this.setSubtitleTrack(this.trackId)}findTrackId(e){const t=this.tracksInGroup,r=this.selectDefaultTrack;for(let i=0;i<t.length;i++){const s=t[i];if(!(r&&!s.default||!r&&!e)&&(!e||go(s,e)))return i}if(e){for(let i=0;i<t.length;i++){const s=t[i];if(Rn(e.attrs,s.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<t.length;i++){const s=t[i];if(Rn(e.attrs,s.attrs,["LANGUAGE"]))return i}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const i=t[r];if(Oi(i,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===gn.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const r=this.currentTrack;if(r&&go(e,r))return r;const i=fo(e,this.tracksInGroup);if(i>-1){const s=this.tracksInGroup[i];return this.setSubtitleTrack(i),s}else{if(r)return null;{const s=fo(e,t);if(s>-1)return t[s]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const r=t.id,i=t.groupId;let s=t.url;if(e)try{s=e.addDirectives(s)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}this.log(`Loading subtitle playlist for id ${r}`),this.hls.trigger(a.SUBTITLE_TRACK_LOADING,{url:s,id:r,groupId:i,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=ai(e.textTracks),r=this.currentTrack;let i;if(r&&(i=t.filter(s=>Oi(r,s))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(t).forEach(s=>{s.mode!=="disabled"&&s!==i&&(s.mode="disabled")}),i){const s=this.subtitleDisplay?"showing":"hidden";i.mode!==s&&(i.mode=s)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!o(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(a.SUBTITLE_TRACK_SWITCH,{id:e});return}const s=!!i.details&&!i.details.live;if(e===this.trackId&&i===r&&s)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:l,groupId:x="",name:j,type:q,url:de}=i;this.hls.trigger(a.SUBTITLE_TRACK_SWITCH,{id:l,groupId:x,name:j,type:q,url:de});const Re=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(Re)}}class La{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,r){const i=this.queues[t];i.push(e),i.length===1&&!r&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const r=new Promise(s=>{t=s}),i={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(i,e),r}executeNext(e){const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){B.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${i}`),r.onError(i);const s=this.buffers[e];s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const va=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class qn{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=r=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:r,mediaSource:i}=this;this.log("Media source opened"),r&&(r.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(a.MEDIA_ATTACHED,{media:r,mediaSource:i})),i&&i.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:i}=this;r!==i&&B.error(`Media element src was set while attaching MediaSource (${i} > ${r})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=Ui(Vn(e.config.preferManagedMediaSource)),this.log=B.log.bind(B,t),this.warn=B.warn.bind(B,t),this.error=B.error.bind(B,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.BUFFER_RESET,this.onBufferReset,this),e.on(a.BUFFER_APPENDING,this.onBufferAppending,this),e.on(a.BUFFER_CODECS,this.onBufferCodecs,this),e.on(a.BUFFER_EOS,this.onBufferEos,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(a.FRAG_PARSED,this.onFragParsed,this),e.on(a.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.BUFFER_RESET,this.onBufferReset,this),e.off(a.BUFFER_APPENDING,this.onBufferAppending,this),e.off(a.BUFFER_CODECS,this.onBufferCodecs,this),e.off(a.BUFFER_EOS,this.onBufferEos,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(a.FRAG_PARSED,this.onFragParsed,this),e.off(a.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new La(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const r=this.media=t.media,i=Vn(this.appendSource);if(r&&i){var s;const l=this.mediaSource=new i;this.log(`created media source: ${(s=l.constructor)==null?void 0:s.name}`),l.addEventListener("sourceopen",this._onMediaSourceOpen),l.addEventListener("sourceended",this._onMediaSourceEnded),l.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(l.addEventListener("startstreaming",this._onStartStreaming),l.addEventListener("endstreaming",this._onEndStreaming));const x=this._objectUrl=self.URL.createObjectURL(l);if(this.appendSource)try{r.removeAttribute("src");const j=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||j&&l instanceof j,Qa(r),Fs(r,x),r.load()}catch(j){r.src=x}else r.src=x;r.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:r}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(i){this.warn(`onMediaDetaching: ${i.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(e.removeAttribute("src"),this.appendSource&&Qa(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(a.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var r;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(i){this.warn(`onBufferReset ${e}`,i)}}onBufferCodecs(e,t){const r=this.getSourceBufferTypes().length,i=Object.keys(t);if(i.forEach(l=>{if(r){const j=this.tracks[l];if(j&&typeof j.buffer.changeType=="function"){var x;const{id:q,codec:de,levelCodec:Re,container:Ye,metadata:Je}=t[l],ct=ui(j.codec,j.levelCodec),_t=ct==null?void 0:ct.replace(va,"$1");let Dt=ui(de,Re);const pr=(x=Dt)==null?void 0:x.replace(va,"$1");if(Dt&&_t!==pr){l.slice(0,5)==="audio"&&(Dt=ti(Dt,this.appendSource));const Tr=`${Ye};codecs=${Dt}`;this.appendChangeType(l,Tr),this.log(`switching codec ${ct} to ${Dt}`),this.tracks[l]={buffer:j.buffer,codec:de,container:Ye,levelCodec:Re,metadata:Je,id:q}}}}else this.pendingTracks[l]=t[l]}),r)return;const s=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==s&&(this.log(`${s} bufferCodec event(s) expected ${i.join(",")}`),this.bufferCodecEventsExpected=s),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:r}=this,i={execute:()=>{const s=this.sourceBuffer[e];s&&(this.log(`changing ${e} sourceBuffer type to ${t}`),s.changeType(t)),r.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};r.append(i,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:r,operationQueue:i,tracks:s}=this,{data:l,type:x,frag:j,part:q,chunkMeta:de}=t,Re=de.buffering[x],Ye=self.performance.now();Re.start=Ye;const Je=j.stats.buffering,ct=q?q.stats.buffering:null;Je.start===0&&(Je.start=Ye),ct&&ct.start===0&&(ct.start=Ye);const _t=s.audio;let Dt=!1;x==="audio"&&(_t==null?void 0:_t.container)==="audio/mpeg"&&(Dt=!this.lastMpegAudioChunk||de.id===1||this.lastMpegAudioChunk.sn!==de.sn,this.lastMpegAudioChunk=de);const pr=j.start,Tr={execute:()=>{if(Re.executeStart=self.performance.now(),Dt){const Lr=this.sourceBuffer[x];if(Lr){const $n=pr-Lr.timestampOffset;Math.abs($n)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${pr} (delta: ${$n}) sn: ${j.sn})`),Lr.timestampOffset=pr)}}this.appendExecutor(l,x)},onStart:()=>{},onComplete:()=>{const Lr=self.performance.now();Re.executeEnd=Re.end=Lr,Je.first===0&&(Je.first=Lr),ct&&ct.first===0&&(ct.first=Lr);const{sourceBuffer:$n}=this,dn={};for(const gi in $n)dn[gi]=Xa.getBuffered($n[gi]);this.appendErrors[x]=0,x==="audio"||x==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(a.BUFFER_APPENDED,{type:x,frag:j,part:q,chunkMeta:de,parent:j.type,timeRanges:dn})},onError:Lr=>{const $n={type:d.MEDIA_ERROR,parent:j.type,details:m.BUFFER_APPEND_ERROR,sourceBufferName:x,frag:j,part:q,chunkMeta:de,error:Lr,err:Lr,fatal:!1};if(Lr.code===DOMException.QUOTA_EXCEEDED_ERR)$n.details=m.BUFFER_FULL_ERROR;else{const dn=++this.appendErrors[x];$n.details=m.BUFFER_APPEND_ERROR,this.warn(`Failed ${dn}/${r.config.appendErrorMaxRetry} times to append segment in "${x}" sourceBuffer`),dn>=r.config.appendErrorMaxRetry&&($n.fatal=!0)}r.trigger(a.ERROR,$n)}};i.append(Tr,x,!!this.pendingTracks[x])}onBufferFlushing(e,t){const{operationQueue:r}=this,i=s=>({execute:this.removeExecutor.bind(this,s,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(a.BUFFER_FLUSHED,{type:s})},onError:l=>{this.warn(`Failed to remove from ${s} SourceBuffer`,l)}});t.type?r.append(i(t.type),t.type):this.getSourceBufferTypes().forEach(s=>{r.append(i(s),s)})}onFragParsed(e,t){const{frag:r,part:i}=t,s=[],l=i?i.elementaryStreams:r.elementaryStreams;l[pe.AUDIOVIDEO]?s.push("audiovideo"):(l[pe.AUDIO]&&s.push("audio"),l[pe.VIDEO]&&s.push("video"));const x=()=>{const j=self.performance.now();r.stats.buffering.end=j,i&&(i.stats.buffering.end=j);const q=i?i.stats:r.stats;this.hls.trigger(a.FRAG_BUFFERED,{frag:r,part:i,stats:q,id:r.type})};s.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(x,s)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((i,s)=>{const l=this.sourceBuffer[s];return l&&(!t.type||t.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} sourceBuffer now EOS`))),i&&!!(!l||l.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(s=>{const l=this.sourceBuffer[s];l&&(l.ending=!1)});const{mediaSource:i}=this;if(!i||i.readyState!=="open"){i&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${i.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),i.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:r}=this;if(!r||t===null||!this.getSourceBufferTypes().length)return;const s=e.config,l=r.currentTime,x=t.levelTargetDuration,j=t.live&&s.liveBackBufferLength!==null?s.liveBackBufferLength:s.backBufferLength;if(o(j)&&j>0){const q=Math.max(j,x),de=Math.floor(l/x)*x-q;this.flushBackBuffer(l,x,de)}if(o(s.frontBufferFlushThreshold)&&s.frontBufferFlushThreshold>0){const q=Math.max(s.maxBufferLength,s.frontBufferFlushThreshold),de=Math.max(q,x),Re=Math.floor(l/x)*x+de;this.flushFrontBuffer(l,x,Re)}}flushBackBuffer(e,t,r){const{details:i,sourceBuffer:s}=this;this.getSourceBufferTypes().forEach(x=>{const j=s[x];if(j){const q=Xa.getBuffered(j);if(q.length>0&&r>q.start(0)){if(this.hls.trigger(a.BACK_BUFFER_REACHED,{bufferEnd:r}),i!=null&&i.live)this.hls.trigger(a.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(j.ended&&q.end(q.length-1)-e<t*2){this.log(`Cannot flush ${x} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(a.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:x})}}})}flushFrontBuffer(e,t,r){const{sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(l=>{const x=i[l];if(x){const j=Xa.getBuffered(x),q=j.length;if(q<2)return;const de=j.start(q-1),Re=j.end(q-1);if(r>de||e>=de&&e<=Re)return;if(x.ended&&e-Re<2*t){this.log(`Cannot flush ${l} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(a.BUFFER_FLUSHING,{startOffset:de,endOffset:1/0,type:l})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:r,mediaSource:i}=this,s=e.fragments[0].start+e.totalduration,l=r.duration,x=o(i.duration)?i.duration:0;e.live&&t.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(e)):(s>x&&s>l||!o(l))&&(this.log(`Updating Media Source duration to ${s.toFixed(3)}`),i.duration=s)}updateSeekableRange(e){const t=this.mediaSource,r=e.fragments;if(r.length&&e.live&&t!=null&&t.setLiveSeekableRange){const s=Math.max(0,r[0].start),l=Math.max(s,s+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${s}-${l}.`),t.setLiveSeekableRange(s,l)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:r}=this,i=Object.keys(r).length;if(i&&(!e||i===2||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};const s=this.getSourceBufferTypes();if(s.length)this.hls.trigger(a.BUFFER_CREATED,{tracks:this.tracks}),s.forEach(l=>{t.executeNext(l)});else{const l=new Error("could not create source buffer for media codec(s)");this.hls.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:l,reason:l.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:r}=this;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(const s in e)if(!t[s]){var i;const l=e[s];if(!l)throw Error(`source buffer exists for track ${s}, however track does not`);let x=((i=l.levelCodec)==null?void 0:i.indexOf(","))===-1?l.levelCodec:l.codec;x&&s.slice(0,5)==="audio"&&(x=ti(x,this.appendSource));const j=`${l.container};codecs=${x}`;this.log(`creating sourceBuffer(${j})`);try{const q=t[s]=r.addSourceBuffer(j),de=s;this.addBufferListener(de,"updatestart",this._onSBUpdateStart),this.addBufferListener(de,"updateend",this._onSBUpdateEnd),this.addBufferListener(de,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(de,"bufferedchange",(Re,Ye)=>{const Je=Ye.removedRanges;Je!=null&&Je.length&&this.hls.trigger(a.BUFFER_FLUSHED,{type:s})}),this.tracks[s]={buffer:q,codec:x,container:l.container,levelCodec:l.levelCodec,metadata:l.metadata,id:l.id}}catch(q){this.error(`error while trying to add sourceBuffer: ${q.message}`),this.hls.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:q,sourceBufferName:s,mimeType:j})}}}get mediaSrc(){var e,t;const r=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return r==null?void 0:r.src}_onSBUpdateStart(e){const{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:r}=this;r.current(e).onComplete(),r.shiftAndExecuteNext(e)}_onSBUpdateError(e,t){var r;const i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${i}`,t),this.hls.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const s=this.operationQueue.current(e);s&&s.onError(i)}removeExecutor(e,t,r){const{media:i,mediaSource:s,operationQueue:l,sourceBuffer:x}=this,j=x[e];if(!i||!s||!j){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),l.shiftAndExecuteNext(e);return}const q=o(i.duration)?i.duration:1/0,de=o(s.duration)?s.duration:1/0,Re=Math.max(0,t),Ye=Math.min(r,q,de);Ye>Re&&(!j.ending||j.ended)?(j.ended=!1,this.log(`Removing [${Re},${Ye}] from the ${e} SourceBuffer`),j.remove(Re,Ye)):l.shiftAndExecuteNext(e)}appendExecutor(e,t){const r=this.sourceBuffer[t];if(!r){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}r.ended=!1,r.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:r}=this,i=t.map(s=>r.appendBlocker(s));Promise.all(i).then(()=>{e(),t.forEach(s=>{const l=this.sourceBuffer[s];l!=null&&l.updating||r.shiftAndExecuteNext(s)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,r){const i=this.sourceBuffer[e];if(!i)return;const s=r.bind(this,e);this.listeners[e].push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(r=>{t.removeEventListener(r.event,r.listener)})}}function Qa(f){const e=f.querySelectorAll("source");[].slice.call(e).forEach(t=>{f.removeChild(t)})}function Fs(f,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,f.appendChild(t)}const fa={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Aa=f=>String.fromCharCode(fa[f]||f),ma=15,ja=100,os={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ca={17:2,18:4,21:6,22:8,23:10,19:13,20:15},xs={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},_s={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Js=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Ws{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;B.log(`${this.time} [${e}] ${r}`)}}}const Vs=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t};class Vo{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let r=0;r<t.length;r++){const i=t[r];e.hasOwnProperty(i)&&(this[i]=e[i])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class $o{constructor(){this.uchar=" ",this.penState=new Vo}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class Co{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Vo,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<ja;t++)this.chars.push(new $o);this.logger=e}equals(e){for(let t=0;t<ja;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<ja;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<ja;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>ja&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=ja)}moveCursor(e){const t=this.pos+e;if(e>1)for(let r=this.pos+1;r<t+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=Aa(e);if(this.pos>=ja){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<ja;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let r=0;r<ja;r++){const i=this.chars[r].uchar;i!==" "&&(t=!1),e.push(i)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class ho{constructor(e){this.rows=[],this.currRow=ma-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<ma;t++)this.rows.push(new Co(e));this.logger=e}reset(){for(let e=0;e<ma;e++)this.rows[e].clear();this.currRow=ma-1}equals(e){let t=!0;for(let r=0;r<ma;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<ma;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<ma;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let x=0;x<ma;x++)this.rows[x].clear();const s=this.currRow+1-this.nrRollUpRows,l=this.lastOutputScreen;if(l){const x=l.rows[s].cueStartTime,j=this.logger.time;if(x!==null&&j!==null&&x<j)for(let q=0;q<this.nrRollUpRows;q++)this.rows[t-this.nrRollUpRows+q+1].copy(l.rows[s+q])}}this.currRow=t;const r=this.rows[this.currRow];if(e.indent!==null){const s=e.indent,l=Math.max(s-1,0);r.setCursor(e.indent),e.color=r.chars[l].penState.foreground}const i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let r="",i=-1;for(let s=0;s<ma;s++){const l=this.rows[s].getTextString();l&&(i=s+1,e?t.push("Row "+i+": '"+l+"'"):t.push(l.trim()))}return t.length>0&&(e?r="["+t.join(" | ")+"]":r=t.join(`
|
|
|
`)),r}getTextAndFormat(){return this.rows}}class to{constructor(e,t,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new ho(r),this.nonDisplayedMemory=new ho(r),this.lastOutputScreen=new ho(r),this.currRollUpRow=this.displayedMemory.rows[ma-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[ma-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const r=Math.floor(e/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[r]}this.logger.log(2,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class Ds{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Cl(),this.logger=void 0;const i=this.logger=new Ws;this.channels=[null,new to(e,t,i),new to(e+1,r,i)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let r=0;r<t.length;r+=2){const i=t[r]&127,s=t[r+1]&127;let l=!1,x=null;if(i===0&&s===0)continue;this.logger.log(3,()=>"["+Vs([t[r],t[r+1]])+"] -> ("+Vs([i,s])+")");const j=this.cmdHistory;if(i>=16&&i<=31){if(Al(i,s,j)){ls(null,null,j),this.logger.log(3,()=>"Repeated command ("+Vs([i,s])+") is dropped");continue}ls(i,s,this.cmdHistory),l=this.parseCmd(i,s),l||(l=this.parseMidrow(i,s)),l||(l=this.parsePAC(i,s)),l||(l=this.parseBackgroundAttributes(i,s))}else ls(null,null,j);if(!l&&(x=this.parseChars(i,s),x)){const de=this.currentChannel;de&&de>0?this.channels[de].insertChars(x):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!l&&!x&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Vs([i,s])+" orig: "+Vs([t[r],t[r+1]]))}}parseCmd(e,t){const r=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=33&&t<=35;if(!(r||i))return!1;const s=e===20||e===21||e===23?1:2,l=this.channels[s];return e===20||e===21||e===28||e===29?t===32?l.ccRCL():t===33?l.ccBS():t===34?l.ccAOF():t===35?l.ccAON():t===36?l.ccDER():t===37?l.ccRU(2):t===38?l.ccRU(3):t===39?l.ccRU(4):t===40?l.ccFON():t===41?l.ccRDC():t===42?l.ccTR():t===43?l.ccRTD():t===44?l.ccEDM():t===45?l.ccCR():t===46?l.ccENM():t===47&&l.ccEOC():l.ccTO(t-32),this.currentChannel=s,!0}parseMidrow(e,t){let r=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[r];return i?(i.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+Vs([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let r;const i=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,s=(e===16||e===24)&&t>=64&&t<=95;if(!(i||s))return!1;const l=e<=23?1:2;t>=64&&t<=95?r=l===1?os[e]:xs[e]:r=l===1?ca[e]:_s[e];const x=this.channels[l];return x?(x.setPAC(this.interpretPAC(r,t)),this.currentChannel=l,!0):!1}interpretPAC(e,t){let r;const i={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,i.underline=(r&1)===1,r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((r-16)/2)*4,i}parseChars(e,t){let r,i=null,s=null;if(e>=25?(r=2,s=e-8):(r=1,s=e),s>=17&&s<=19){let l;s===17?l=t+80:s===18?l=t+112:l=t+144,this.logger.log(2,()=>"Special char '"+Aa(l)+"' in channel "+r),i=[l]}else e>=32&&e<=127&&(i=t===0?[e]:[e,t]);return i&&this.logger.log(3,()=>"Char codes = "+Vs(i).join(",")),i}parseBackgroundAttributes(e,t){const r=(e===16||e===24)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=45&&t<=47;if(!(r||i))return!1;let s;const l={};e===16||e===24?(s=Math.floor((t-32)/2),l.background=Js[s],t%2===1&&(l.background=l.background+"_semi")):t===45?l.background="transparent":(l.foreground="black",t===47&&(l.underline=!0));const x=e<=23?1:2;return this.channels[x].setBkgData(l),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}ls(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const r=this.channels[t];r&&r.cueSplitAtTime(e)}}}function ls(f,e,t){t.a=f,t.b=e}function Al(f,e,t){return t.a===f&&t.b===e}function Cl(){return{a:null,b:null}}class sl{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,r){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var Yo=function(){if(st!=null&&st.VTTCue)return self.VTTCue;const f=["","lr","rl"],e=["start","middle","end","left","right"];function t(x,j){if(typeof j!="string"||!Array.isArray(x))return!1;const q=j.toLowerCase();return~x.indexOf(q)?q:!1}function r(x){return t(f,x)}function i(x){return t(e,x)}function s(x,...j){let q=1;for(;q<arguments.length;q++){const de=arguments[q];for(const Re in de)x[Re]=de[Re]}return x}function l(x,j,q){const de=this,Re={enumerable:!0};de.hasBeenReset=!1;let Ye="",Je=!1,ct=x,_t=j,Dt=q,pr=null,Tr="",Lr=!0,$n="auto",dn="start",gi=50,Kn="middle",Si=50,ta="middle";Object.defineProperty(de,"id",s({},Re,{get:function(){return Ye},set:function(mi){Ye=""+mi}})),Object.defineProperty(de,"pauseOnExit",s({},Re,{get:function(){return Je},set:function(mi){Je=!!mi}})),Object.defineProperty(de,"startTime",s({},Re,{get:function(){return ct},set:function(mi){if(typeof mi!="number")throw new TypeError("Start time must be set to a number.");ct=mi,this.hasBeenReset=!0}})),Object.defineProperty(de,"endTime",s({},Re,{get:function(){return _t},set:function(mi){if(typeof mi!="number")throw new TypeError("End time must be set to a number.");_t=mi,this.hasBeenReset=!0}})),Object.defineProperty(de,"text",s({},Re,{get:function(){return Dt},set:function(mi){Dt=""+mi,this.hasBeenReset=!0}})),Object.defineProperty(de,"region",s({},Re,{get:function(){return pr},set:function(mi){pr=mi,this.hasBeenReset=!0}})),Object.defineProperty(de,"vertical",s({},Re,{get:function(){return Tr},set:function(mi){const Li=r(mi);if(Li===!1)throw new SyntaxError("An invalid or illegal string was specified.");Tr=Li,this.hasBeenReset=!0}})),Object.defineProperty(de,"snapToLines",s({},Re,{get:function(){return Lr},set:function(mi){Lr=!!mi,this.hasBeenReset=!0}})),Object.defineProperty(de,"line",s({},Re,{get:function(){return $n},set:function(mi){if(typeof mi!="number"&&mi!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");$n=mi,this.hasBeenReset=!0}})),Object.defineProperty(de,"lineAlign",s({},Re,{get:function(){return dn},set:function(mi){const Li=i(mi);if(!Li)throw new SyntaxError("An invalid or illegal string was specified.");dn=Li,this.hasBeenReset=!0}})),Object.defineProperty(de,"position",s({},Re,{get:function(){return gi},set:function(mi){if(mi<0||mi>100)throw new Error("Position must be between 0 and 100.");gi=mi,this.hasBeenReset=!0}})),Object.defineProperty(de,"positionAlign",s({},Re,{get:function(){return Kn},set:function(mi){const Li=i(mi);if(!Li)throw new SyntaxError("An invalid or illegal string was specified.");Kn=Li,this.hasBeenReset=!0}})),Object.defineProperty(de,"size",s({},Re,{get:function(){return Si},set:function(mi){if(mi<0||mi>100)throw new Error("Size must be between 0 and 100.");Si=mi,this.hasBeenReset=!0}})),Object.defineProperty(de,"align",s({},Re,{get:function(){return ta},set:function(mi){const Li=i(mi);if(!Li)throw new SyntaxError("An invalid or illegal string was specified.");ta=Li,this.hasBeenReset=!0}})),de.displayState=void 0}return l.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},l}();class _u{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Wl(f){function e(r,i,s,l){return(r|0)*3600+(i|0)*60+(s|0)+parseFloat(l||0)}const t=f.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class za{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,r){for(let i=0;i<r.length;++i)if(t===r[i]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1}}function Ta(f,e,t,r){const i=r?f.split(r):[f];for(const s in i){if(typeof i[s]!="string")continue;const l=i[s].split(t);if(l.length!==2)continue;const x=l[0],j=l[1];e(x,j)}}const oo=new Yo(0,0,""),Bs=oo.align==="middle"?"middle":"center";function yo(f,e,t){const r=f;function i(){const x=Wl(f);if(x===null)throw new Error("Malformed timestamp: "+r);return f=f.replace(/^[^\sa-zA-Z-]+/,""),x}function s(x,j){const q=new za;Ta(x,function(Ye,Je){let ct;switch(Ye){case"region":for(let _t=t.length-1;_t>=0;_t--)if(t[_t].id===Je){q.set(Ye,t[_t].region);break}break;case"vertical":q.alt(Ye,Je,["rl","lr"]);break;case"line":ct=Je.split(","),q.integer(Ye,ct[0]),q.percent(Ye,ct[0])&&q.set("snapToLines",!1),q.alt(Ye,ct[0],["auto"]),ct.length===2&&q.alt("lineAlign",ct[1],["start",Bs,"end"]);break;case"position":ct=Je.split(","),q.percent(Ye,ct[0]),ct.length===2&&q.alt("positionAlign",ct[1],["start",Bs,"end","line-left","line-right","auto"]);break;case"size":q.percent(Ye,Je);break;case"align":q.alt(Ye,Je,["start",Bs,"end","left","right"]);break}},/:/,/\s/),j.region=q.get("region",null),j.vertical=q.get("vertical","");let de=q.get("line","auto");de==="auto"&&oo.line===-1&&(de=-1),j.line=de,j.lineAlign=q.get("lineAlign","start"),j.snapToLines=q.get("snapToLines",!0),j.size=q.get("size",100),j.align=q.get("align",Bs);let Re=q.get("position","auto");Re==="auto"&&oo.position===50&&(Re=j.align==="start"||j.align==="left"?0:j.align==="end"||j.align==="right"?100:50),j.position=Re}function l(){f=f.replace(/^\s+/,"")}if(l(),e.startTime=i(),l(),f.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);f=f.slice(3),l(),e.endTime=i(),l(),s(f,e)}function _o(f){return f.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class Bo{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new _u,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function r(){let s=t.buffer,l=0;for(s=_o(s);l<s.length&&s[l]!=="\r"&&s[l]!==`
|
|
|
`;)++l;const x=s.slice(0,l);return s[l]==="\r"&&++l,s[l]===`
|
|
|
`&&++l,t.buffer=s.slice(l),x}function i(s){Ta(s,function(l,x){},/:/)}try{let s="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;s=r();const x=s.match(/^()?WEBVTT([ \t].*)?$/);if(!(x!=null&&x[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let l=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:s=r(),t.state){case"HEADER":/:/.test(s)?i(s):s||(t.state="ID");continue;case"NOTE":s||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){t.state="NOTE";break}if(!s)continue;if(t.cue=new Yo(0,0,""),t.state="CUE",s.indexOf("-->")===-1){t.cue.id=s;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{yo(s,t.cue,t.regionList)}catch(x){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const x=s.indexOf("-->")!==-1;if(!s||x&&(l=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
|
|
|
`),t.cue.text+=s}continue;case"BADCUE":s||(t.state="ID")}}}catch(s){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
|
|
|
|
|
|
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const Fo=/\r\n|\n\r|\n|\r/g,_l=function(e,t,r=0){return e.slice(r,r+t.length)===t},Ko=function(e){let t=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),s=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!o(t)||!o(r)||!o(i)||!o(s))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*i,t+=60*60*1e3*s,t},Vl=function(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0).toString()};function hu(f,e,t){return Vl(f.toString())+Vl(e.toString())+Vl(t)}const ac=function(e,t,r){let i=e[t],s=e[i.prevCC];if(!s||!s.new&&i.new){e.ccOffset=e.presentationOffset=i.start,i.new=!1;return}for(;(l=s)!=null&&l.new;){var l;e.ccOffset+=i.start-s.start,i.new=!1,i=s,s=e[i.prevCC]}e.presentationOffset=r};function nu(f,e,t,r,i,s,l){const x=new Bo,j=dt(new Uint8Array(f)).trim().replace(Fo,`
|
|
|
`).split(`
|
|
|
`),q=[],de=e?ni(e.baseTime,e.timescale):0;let Re="00:00.000",Ye=0,Je=0,ct,_t=!0;x.oncue=function(Dt){const pr=t[r];let Tr=t.ccOffset;const Lr=(Ye-de)/9e4;if(pr!=null&&pr.new&&(Je!==void 0?Tr=t.ccOffset=pr.start:ac(t,r,Lr)),Lr){if(!e){ct=new Error("Missing initPTS for VTT MPEGTS");return}Tr=Lr-t.presentationOffset}const $n=Dt.endTime-Dt.startTime,dn=rn((Dt.startTime+Tr-Je)*9e4,i*9e4)/9e4;Dt.startTime=Math.max(dn,0),Dt.endTime=Math.max(dn+$n,0);const gi=Dt.text.trim();Dt.text=decodeURIComponent(encodeURIComponent(gi)),Dt.id||(Dt.id=hu(Dt.startTime,Dt.endTime,gi)),Dt.endTime>0&&q.push(Dt)},x.onparsingerror=function(Dt){ct=Dt},x.onflush=function(){if(ct){l(ct);return}s(q)},j.forEach(Dt=>{if(_t)if(_l(Dt,"X-TIMESTAMP-MAP=")){_t=!1,Dt.slice(16).split(",").forEach(pr=>{_l(pr,"LOCAL:")?Re=pr.slice(6):_l(pr,"MPEGTS:")&&(Ye=parseInt(pr.slice(7)))});try{Je=Ko(Re)/1e3}catch(pr){ct=pr}return}else Dt===""&&(_t=!1);x.parse(Dt+`
|
|
|
`)}),x.flush()}const dl="stpp.ttml.im1t",iu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Mu=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,pu={left:"start",center:"center",right:"end",start:"start",end:"end"};function Uu(f,e,t,r){const i=Tt(new Uint8Array(f),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const s=i.map(x=>dt(x)),l=sn(e.baseTime,1,e.timescale);try{s.forEach(x=>t(Qu(x,l)))}catch(x){r(x)}}function Qu(f,e){const i=new DOMParser().parseFromString(f,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const s={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},l=Object.keys(s).reduce((Re,Ye)=>(Re[Ye]=i.getAttribute(`ttp:${Ye}`)||s[Ye],Re),{}),x=i.getAttribute("xml:space")!=="preserve",j=Bl(Hl(i,"styling","style")),q=Bl(Hl(i,"layout","region")),de=Hl(i,"body","[begin]");return[].map.call(de,Re=>{const Ye=mu(Re,x);if(!Ye||!Re.hasAttribute("begin"))return null;const Je=ju(Re.getAttribute("begin"),l),ct=ju(Re.getAttribute("dur"),l);let _t=ju(Re.getAttribute("end"),l);if(Je===null)throw Do(Re);if(_t===null){if(ct===null)throw Do(Re);_t=Je+ct}const Dt=new Yo(Je-e,_t-e,Ye);Dt.id=hu(Dt.startTime,Dt.endTime,Dt.text);const pr=q[Re.getAttribute("region")],Tr=j[Re.getAttribute("style")],Lr=gu(pr,Tr,j),{textAlign:$n}=Lr;if($n){const dn=pu[$n];dn&&(Dt.lineAlign=dn),Dt.align=$n}return n(Dt,Lr),Dt}).filter(Re=>Re!==null)}function Hl(f,e,t){const r=f.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function Bl(f){return f.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function mu(f,e){return[].slice.call(f.childNodes).reduce((t,r,i)=>{var s;return r.nodeName==="br"&&i?t+`
|
|
|
`:(s=r.childNodes)!=null&&s.length?mu(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function gu(f,e,t){const r="http://www.w3.org/ns/ttml#styling";let i=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],l=f!=null&&f.hasAttribute("style")?f.getAttribute("style"):null;return l&&t.hasOwnProperty(l)&&(i=t[l]),s.reduce((x,j)=>{const q=Po(e,r,j)||Po(f,r,j)||Po(i,r,j);return q&&(x[j]=q),x},{})}function Po(f,e,t){return f&&f.hasAttributeNS(e,t)?f.getAttributeNS(e,t):null}function Do(f){return new Error(`Could not parse ttml timestamp ${f}`)}function ju(f,e){if(!f)return null;let t=Wl(f);return t===null&&(iu.test(f)?t=sc(f,e):Mu.test(f)&&(t=Ma(f,e))),t}function sc(f,e){const t=iu.exec(f),r=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+r/e.frameRate}function Ma(f,e){const t=Mu.exec(f),r=Number(t[1]);switch(t[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/e.frameRate;case"t":return r/e.tickRate}return r}class Bu{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Iu(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(a.FRAG_LOADING,this.onFragLoading,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this),e.on(a.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(a.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(a.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(a.FRAG_LOADING,this.onFragLoading,this),e.off(a.FRAG_LOADED,this.onFragLoaded,this),e.off(a.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(a.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(a.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new sl(this,"textTrack1"),t=new sl(this,"textTrack2"),r=new sl(this,"textTrack3"),i=new sl(this,"textTrack4");this.cea608Parser1=new Ds(1,e,t),this.cea608Parser2=new Ds(3,r,i)}}addCues(e,t,r,i,s){let l=!1;for(let x=s.length;x--;){const j=s[x],q=Hu(j[0],j[1],t,r);if(q>=0&&(j[0]=Math.min(j[0],t),j[1]=Math.max(j[1],r),l=!0,q/(r-t)>.5))return}if(l||s.push([t,r]),this.config.renderTextTracksNatively){const x=this.captionsTracks[e];this.Cues.newCue(x,t,r,i)}else{const x=this.Cues.newCue(null,t,r,i);this.hls.trigger(a.CUES_PARSED,{type:"captions",cues:x,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:i,timescale:s}){const{unparsedVttFrags:l}=this;r==="main"&&(this.initPTS[t.cc]={baseTime:i,timescale:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(x=>{this.onFragLoaded(a.FRAG_LOADED,x)}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let i=0;i<r.textTracks.length;i++){const s=r.textTracks[i];if(ol(s,{name:e,lang:t,attrs:{}}))return s}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:r,media:i}=this,{label:s,languageCode:l}=t[e],x=this.getExistingTrack(s,l);if(x)r[e]=x,Ea(r[e]),ji(r[e],i);else{const j=this.createTextTrack("captions",s,l);j&&(j[e]=!0,r[e]=j)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const r=t.label,i={_id:e,label:r,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=i,this.hls.trigger(a.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}createTextTrack(e,t,r){const i=this.media;if(i)return i.addTextTrack(e,t,r)}onMediaAttaching(e,t){this.media=t.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{Ea(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Iu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let r=0;r<t.length;r++)Ea(t[r])}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[],i=r.some(s=>s.textCodec===dl);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(Jn(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const l=this.media,x=l?ai(l.textTracks):null;if(this.tracks.forEach((j,q)=>{let de;if(x){let Re=null;for(let Ye=0;Ye<x.length;Ye++)if(x[Ye]&&ol(x[Ye],j)){Re=x[Ye],x[Ye]=null;break}Re&&(de=Re)}if(de)Ea(de);else{const Re=Su(j);de=this.createTextTrack(Re,j.name,j.lang),de&&(de.mode="disabled")}de&&this.textTracks.push(de)}),x!=null&&x.length){const j=x.filter(q=>q!==null).map(q=>q.label);j.length&&B.warn(`Media element contains unused subtitle tracks: ${j.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const l=this.tracks.map(x=>({label:x.name,kind:x.type.toLowerCase(),default:x.default,subtitleTrack:x}));this.hls.trigger(a.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:l})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(r=>{const i=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!i)return;const s=`textTrack${i[1]}`,l=this.captionsProperties[s];l&&(l.label=r.name,r.lang&&(l.languageCode=r.lang),l.media=r)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===Ht.MAIN){var r,i;const{cea608Parser1:s,cea608Parser2:l,lastSn:x}=this,{cc:j,sn:q}=t.frag,de=(r=(i=t.part)==null?void 0:i.index)!=null?r:-1;s&&l&&(q!==x+1||q===x&&de!==this.lastPartIndex+1||j!==this.lastCc)&&(s.reset(),l.reset()),this.lastCc=j,this.lastSn=q,this.lastPartIndex=de}}onFragLoaded(e,t){const{frag:r,payload:i}=t;if(r.type===Ht.SUBTITLE)if(i.byteLength){const s=r.decryptdata,l="stats"in t;if(s==null||!s.encrypted||l){const x=this.tracks[r.level],j=this.vttCCs;j[r.cc]||(j[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),x&&x.textCodec===dl?this._parseIMSC1(r,i):this._parseVTTs(t)}}else this.hls.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;Uu(t,this.initPTS[e.cc],i=>{this._appendCues(i,e.level),r.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},i=>{B.log(`Failed to parse IMSC1: ${i}`),r.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:i})})}_parseVTTs(e){var t;const{frag:r,payload:i}=e,{initPTS:s,unparsedVttFrags:l}=this,x=s.length-1;if(!s[r.cc]&&x===-1){l.push(e);return}const j=this.hls,q=(t=r.initSegment)!=null&&t.data?Dn(r.initSegment.data,new Uint8Array(i)):i;nu(q,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,de=>{this._appendCues(de,r.level),j.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},de=>{const Re=de.message==="Missing initPTS for VTT MPEGTS";Re?l.push(e):this._fallbackToIMSC1(r,i),B.log(`Failed to parse VTT cue: ${de}`),!(Re&&x>r.cc)&&j.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:de})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||Uu(t,this.initPTS[e.cc],()=>{r.textCodec=dl,this._parseIMSC1(e,t)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[t];if(!i||i.mode==="disabled")return;e.forEach(s=>da(i,s))}else{const i=this.tracks[t];if(!i)return;const s=i.default?"default":"subtitles"+t;r.trigger(a.CUES_PARSED,{type:"subtitles",cues:e,track:s})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===Ht.SUBTITLE&&this.onFragLoaded(a.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:r,cea608Parser2:i}=this;if(!this.enabled||!r||!i)return;const{frag:s,samples:l}=t;if(!(s.type===Ht.MAIN&&this.closedCaptionsForLevel(s)==="NONE"))for(let x=0;x<l.length;x++){const j=l[x].bytes;if(j){const q=this.extractCea608Data(j);r.addData(l[x].pts,q[0]),i.addData(l[x].pts,q[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:r,endOffsetSubtitles:i,type:s}){const{media:l}=this;if(!(!l||l.currentTime<r)){if(!s||s==="video"){const{captionsTracks:x}=this;Object.keys(x).forEach(j=>qi(x[j],t,r))}if(this.config.renderTextTracksNatively&&t===0&&i!==void 0){const{textTracks:x}=this;Object.keys(x).forEach(j=>qi(x[j],t,i))}}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let i=2;for(let s=0;s<r;s++){const l=e[i++],x=127&e[i++],j=127&e[i++];if(x===0&&j===0)continue;if((4&l)!==0){const de=3&l;(de===0||de===1)&&(t[de].push(x),t[de].push(j))}}return t}}function Su(f){return f.characteristics&&/transcribes-spoken-dialog/gi.test(f.characteristics)&&/describes-music-and-sound/gi.test(f.characteristics)?"captions":"subtitles"}function ol(f,e){return!!f&&f.kind===Su(e)&&Oi(e,f)}function Hu(f,e,t,r){return Math.min(e,r)-Math.max(f,t)}function Iu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class Yl{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(a.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.BUFFER_CODECS,this.onBufferCodecs,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(a.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.BUFFER_CODECS,this.onBufferCodecs,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&o(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&B.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const r=t.filter((i,s)=>this.isLevelAllowed(i)&&s<=e);return this.clientRect=null,Yl.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,!t.width&&!t.height&&(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return e}isLevelAllowed(e){return!this.restrictedLevels.some(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,t,r){if(!(e!=null&&e.length))return-1;const i=(x,j)=>j?x.width!==j.width||x.height!==j.height:!0;let s=e.length-1;const l=Math.max(t,r);for(let x=0;x<e.length;x+=1){const j=e[x];if((j.width>=l||j.height>=l)&&i(j,e[x+1])){s=x;break}}return s}}class vu{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const r=this.hls.config;if(r.capLevelOnFPSDrop){const i=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}checkFPS(e,t,r){const i=performance.now();if(t){if(this.lastTime){const s=i-this.lastTime,l=r-this.lastDroppedFrames,x=t-this.lastDecodedFrames,j=1e3*l/s,q=this.hls;if(q.trigger(a.FPS_DROP,{currentDropped:l,currentDecoded:x,totalDroppedFrames:r}),j>0&&l>q.config.fpsDroppedMonitoringThreshold*x){let de=q.currentLevel;B.warn("drop FPS ratio greater than max allowed value for currentLevel: "+de),de>0&&(q.autoLevelCapping===-1||q.autoLevelCapping>=de)&&(de=de-1,q.trigger(a.FPS_DROP_LEVEL_CAPPING,{level:de,droppedLevel:q.currentLevel}),q.autoLevelCapping=de,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}const Tu="[eme]";class Sl{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Sl.CDMCleanupPromise?[Sl.CDMCleanupPromise]:[],this.debug=B.debug.bind(B,Tu),this.log=B.log.bind(B,Tu),this.warn=B.warn.bind(B,Tu),this.error=B.error.bind(B,Tu),this.onMediaEncrypted=t=>{const{initDataType:r,initData:i}=t,s=`"${t.type}" event: init data type: "${r}"`;if(this.debug(s),i!==null){if(!this.keyFormatPromise){let l=Object.keys(this.keySystemAccessPromises);l.length||(l=xr(this.config));const x=l.map(Er).filter(j=>!!j);this.keyFormatPromise=this.getKeyFormatPromise(x)}this.keyFormatPromise.then(l=>{const x=sr(l);let j,q;if(r==="sinf"){if(x!==nt.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${x}`);return}const ct=br(new Uint8Array(i));try{const _t=_(JSON.parse(ct).sinf),Dt=on(_t);if(!Dt)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");j=Dt.subarray(8,24),q=nt.FAIRPLAY}catch(_t){this.warn(`${s} Failed to parse sinf: ${_t}`);return}}else{if(x!==nt.WIDEVINE&&x!==nt.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${x}`);return}const ct=In(i),_t=ct.filter(pr=>!!pr.systemId&&We(pr.systemId)===x);_t.length>1&&this.warn(`${s} Using first of ${_t.length} pssh found for selected key-system ${x}`);const Dt=_t[0];if(!Dt){ct.length===0||ct.some(pr=>!pr.systemId)?this.warn(`${s} contains incomplete or invalid pssh data`):this.log(`ignoring ${s} for ${ct.map(pr=>We(pr.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(q=We(Dt.systemId),Dt.version===0&&Dt.data)if(q===nt.WIDEVINE){const pr=Dt.data.length-22;j=Dt.data.subarray(pr,pr+16)}else q===nt.PLAYREADY&&(j=kt(Dt.data))}if(!q||!j){this.log(`Unable to handle ${s} with key-system ${x}`);return}const de=Bt.hexDump(j),{keyIdToKeySessionPromise:Re,mediaKeySessions:Ye}=this;let Je=Re[de];for(let ct=0;ct<Ye.length;ct++){const _t=Ye[ct],Dt=_t.decryptdata;if(!Dt.keyId)continue;const pr=Bt.hexDump(Dt.keyId);if(de===pr||Dt.uri.replace(/-/g,"").indexOf(de)!==-1){if(Je=Re[pr],Dt.pssh)break;delete Re[pr],Dt.pssh=new Uint8Array(i),Dt.keyId=j,Je=Re[de]=Je.then(()=>this.generateRequestWithPreferredKeySession(_t,r,i,"encrypted-event-key-match")),Je.catch(Tr=>this.handleError(Tr));break}}if(!Je){if(q!==x){this.log(`Ignoring "${s}" with ${q} init data for selected key-system ${x}`);return}Je=Re[de]=this.getKeySystemSelectionPromise([q]).then(({keySystem:ct,mediaKeys:_t})=>{var Dt;this.throwIfDestroyed();const pr=new mn("ISO-23001-7",de,(Dt=Er(ct))!=null?Dt:"");return pr.pssh=new Uint8Array(i),pr.keyId=j,this.attemptSetMediaKeys(ct,_t).then(()=>{this.throwIfDestroyed();const Tr=this.createMediaKeySessionContext({decryptdata:pr,keySystem:ct,mediaKeys:_t});return this.generateRequestWithPreferredKeySession(Tr,r,i,"encrypted-event-no-match")})}),Je.catch(ct=>this.handleError(ct))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(a.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(a.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(a.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(a.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:r}=this.config,i=t[e];if(i)return i.licenseUrl;if(e===nt.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,r=t[e];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,r=(l,x,j)=>!!l&&j.indexOf(l)===x,i=t.map(l=>l.audioCodec).filter(r),s=t.map(l=>l.videoCodec).filter(r);return i.length+s.length===0&&s.push("avc1.42e01e"),new Promise((l,x)=>{const j=q=>{const de=q.shift();this.getMediaKeysPromise(de,i,s).then(Re=>l({keySystem:de,mediaKeys:Re})).catch(Re=>{q.length?j(q):Re instanceof Uo?x(Re):x(new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_ACCESS,error:Re,fatal:!0},Re.message))})};j(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${r}`;return Wr===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return r(e,t)}getMediaKeysPromise(e,t,r){const i=Cr(e,t,r,this.config.drmSystemOptions),s=this.keySystemAccessPromises[e];let l=s==null?void 0:s.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${e}" key-system access with config: ${JSON.stringify(i)}`),l=this.requestMediaKeySystemAccess(e,i);const x=this.keySystemAccessPromises[e]={keySystemAccess:l};return l.catch(j=>{this.log(`Failed to obtain access to key-system "${e}": ${j}`)}),l.then(j=>{this.log(`Access for key-system "${j.keySystem}" obtained`);const q=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),x.mediaKeys=j.createMediaKeys().then(de=>(this.log(`Media-keys created for "${e}"`),q.then(Re=>Re?this.setMediaKeysServerCertificate(de,e,Re):de))),x.mediaKeys.catch(de=>{this.error(`Failed to create media-keys for "${e}"}: ${de}`)}),x.mediaKeys})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${Bt.hexDump(e.keyId||[])}`);const i=r.createSession(),s={decryptdata:e,keySystem:t,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(s),s}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const r=this.createMediaKeySessionContext(e),i=this.getKeyIdString(t),s="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,s,t.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return Bt.hexDump(e.keyId)}updateKeySession(e,t){var r;const i=e.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${Bt.hexDump(((r=e.decryptdata)==null?void 0:r.keyId)||[])}
|
|
|
} (data length: ${t&&t.byteLength})`),i.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,r)=>{const i=xr(this.config),s=e.map(sr).filter(l=>!!l&&i.indexOf(l)!==-1);return this.getKeySystemSelectionPromise(s).then(({keySystem:l})=>{const x=Er(l);x?t(x):r(new Error(`Unable to find format for key-system "${l}"`))}).catch(r)})}loadKey(e){const t=e.keyInfo.decryptdata,r=this.getKeyIdString(t),i=`(keyId: ${r} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);let s=this.keyIdToKeySessionPromise[r];return s||(s=this.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(t).then(({keySystem:l,mediaKeys:x})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(l,x).then(()=>{this.throwIfDestroyed();const j=this.createMediaKeySessionContext({keySystem:l,mediaKeys:x,decryptdata:t});return this.generateRequestWithPreferredKeySession(j,"cenc",t.pssh,"playlist-key")}))),s.catch(l=>this.handleError(l))),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Uo?this.hls.trigger(a.ERROR,e.data):this.hls.trigger(a.ERROR,{type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const i=sr(e.keyFormat),s=i?[i]:xr(this.config);return this.attemptKeySystemAccess(s)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=xr(this.config)),e.length===0)throw new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const i=Promise.all(r).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(s=>r.indexOf(s)===-1)})}generateRequestWithPreferredKeySession(e,t,r,i){var s,l;const x=(s=this.config.drmSystems)==null||(l=s[e.keySystem])==null?void 0:l.generateRequest;if(x)try{const ct=x.call(this.hls,t,r,e);if(!ct)throw new Error("Invalid response from configured generateRequest filter");t=ct.initDataType,r=e.decryptdata.pssh=ct.initData?new Uint8Array(ct.initData):null}catch(ct){var j;if(this.warn(ct.message),(j=this.hls)!=null&&j.config.debug)throw ct}if(r===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const q=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${i}": ${q} (init data type: ${t} length: ${r?r.byteLength:null})`);const de=new Ur,Re=e._onmessage=ct=>{const _t=e.mediaKeysSession;if(!_t){de.emit("error",new Error("invalid state"));return}const{messageType:Dt,message:pr}=ct;this.log(`"${Dt}" message event for session "${_t.sessionId}" message size: ${pr.byteLength}`),Dt==="license-request"||Dt==="license-renewal"?this.renewLicense(e,pr).catch(Tr=>{this.handleError(Tr),de.emit("error",Tr)}):Dt==="license-release"?e.keySystem===nt.FAIRPLAY&&(this.updateKeySession(e,qe("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Dt}"`)},Ye=e._onkeystatuseschange=ct=>{if(!e.mediaKeysSession){de.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Dt=e.keyStatus;de.emit("keyStatus",Dt),Dt==="expired"&&(this.warn(`${e.keySystem} expired for key ${q}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",Re),e.mediaKeysSession.addEventListener("keystatuseschange",Ye);const Je=new Promise((ct,_t)=>{de.on("error",_t),de.on("keyStatus",Dt=>{Dt.startsWith("usable")?ct():Dt==="output-restricted"?_t(new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Dt==="internal-error"?_t(new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Dt}"`)):Dt==="expired"?_t(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Dt}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var ct;this.log(`Request generated for key-session "${(ct=e.mediaKeysSession)==null?void 0:ct.sessionId}" keyId: ${q}`)}).catch(ct=>{throw new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_SESSION,error:ct,fatal:!1},`Error generating key-session request: ${ct}`)}).then(()=>Je).catch(ct=>{throw de.removeAllListeners(),this.removeSession(e),ct}).then(()=>(de.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,r)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${Bt.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${Bt.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,r=t.loader,i=new r(t),s=this.getServerCertificateUrl(e);return s?(this.log(`Fetching server certificate for "${e}"`),new Promise((l,x)=>{const j={responseType:"arraybuffer",url:s},q=t.certLoadPolicy.default,de={loadPolicy:q,timeout:q.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Re={onSuccess:(Ye,Je,ct,_t)=>{l(Ye.data)},onError:(Ye,Je,ct,_t)=>{x(new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ct,response:ie({url:j.url,data:void 0},Ye)},`"${e}" certificate request failed (${s}). Status: ${Ye.code} (${Ye.text})`))},onTimeout:(Ye,Je,ct)=>{x(new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ct,response:{url:j.url,data:void 0}},`"${e}" certificate request timed out (${s})`))},onAbort:(Ye,Je,ct)=>{x(new Error("aborted"))}};i.load(j,de,Re)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,r){return new Promise((i,s)=>{e.setServerCertificate(r).then(l=>{this.log(`setServerCertificate ${l?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${t}"`),i(e)}).catch(l=>{s(new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:l,fatal:!0},l.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(i=>{throw new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:i,fatal:!0},i.message)}))}unpackPlayReadyKeyMessage(e,t){const r=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const i=new DOMParser().parseFromString(r,"application/xml"),s=i.querySelectorAll("HttpHeader");if(s.length>0){let de;for(let Re=0,Ye=s.length;Re<Ye;Re++){var l,x;de=s[Re];const Je=(l=de.querySelector("name"))==null?void 0:l.textContent,ct=(x=de.querySelector("value"))==null?void 0:x.textContent;Je&&ct&&e.setRequestHeader(Je,ct)}}const j=i.querySelector("Challenge"),q=j==null?void 0:j.textContent;if(!q)throw new Error("Cannot find <Challenge> in key message");return qe(atob(q))}setupLicenseXHR(e,t,r,i){const s=this.config.licenseXhrSetup;return s?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return s.call(this.hls,e,t,r,i)}).catch(l=>{if(!r.decryptdata)throw l;return e.open("POST",t,!0),s.call(this.hls,e,t,r,i)}).then(l=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:l||i})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){const r=this.config.keyLoadPolicy.default;return new Promise((i,s)=>{const l=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${l}`);const x=new XMLHttpRequest;x.responseType="arraybuffer",x.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return s(new Error("invalid state"));if(x.readyState===4)if(x.status===200){this._requestLicenseFailureCount=0;let j=x.response;this.log(`License received ${j instanceof ArrayBuffer?j.byteLength:j}`);const q=this.config.licenseResponseCallback;if(q)try{j=q.call(this.hls,x,l,e)}catch(de){this.error(de)}i(j)}else{const j=r.errorRetry,q=j?j.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>q||x.status>=400&&x.status<500)s(new Uo({type:d.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:x,response:{url:l,data:void 0,code:x.status,text:x.statusText}},`License Request XHR failed (${l}). Status: ${x.status} (${x.statusText})`));else{const de=q-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${de} attempts left`),this.requestLicense(e,t).then(i,s)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=x,this.setupLicenseXHR(x,l,e,t).then(({xhr:j,licenseChallenge:q})=>{e.keySystem==nt.PLAYREADY&&(q=this.unpackPlayReadyKeyMessage(j,q)),j.send(q)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const r=t.media;this.media=r,r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},mn.clearKeyUriToKeyIdMap();const r=t.length;Sl.CDMCleanupPromise=Promise.all(t.map(i=>this.removeSession(i)).concat(e==null?void 0:e.setMediaKeys(null).catch(i=>{this.log(`Could not clear media keys: ${i}`)}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(i=>{this.log(`Could not close sessions and clear media keys: ${i}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=t.reduce((i,s)=>(i.indexOf(s.keyFormat)===-1&&i.push(s.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:r}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(e);return i>-1&&this.mediaKeySessions.splice(i,1),t.remove().catch(s=>{this.log(`Could not remove session: ${s}`)}).then(()=>t.close()).catch(s=>{this.log(`Could not close session: ${s}`)})}}}Sl.CDMCleanupPromise=void 0;class Uo extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}var cs;(function(f){f.MANIFEST="m",f.AUDIO="a",f.VIDEO="v",f.MUXED="av",f.INIT="i",f.CAPTION="c",f.TIMED_TEXT="tt",f.KEY="k",f.OTHER="o"})(cs||(cs={}));var Xo;(function(f){f.DASH="d",f.HLS="h",f.SMOOTH="s",f.OTHER="o"})(Xo||(Xo={}));var Jo;(function(f){f.OBJECT="CMCD-Object",f.REQUEST="CMCD-Request",f.SESSION="CMCD-Session",f.STATUS="CMCD-Status"})(Jo||(Jo={}));const bc={[Jo.OBJECT]:["br","d","ot","tb"],[Jo.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Jo.SESSION]:["cid","pr","sf","sid","st","v"],[Jo.STATUS]:["bs","rtp"]};class ka{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(r=>r instanceof ka?r:new ka(r))),this.value=e,this.params=t}}class gs{constructor(e){this.description=void 0,this.description=e}}const Qo="Dict";function Il(f){return Array.isArray(f)?JSON.stringify(f):f instanceof Map?"Map{}":f instanceof Set?"Set{}":typeof f=="object"?JSON.stringify(f):String(f)}function Tl(f,e,t,r){return new Error(`failed to ${f} "${Il(e)}" as ${t}`,{cause:r})}const Fu="Bare Item",Du="Boolean",fl="Byte Sequence",Fl="Decimal",$u="Integer";function yu(f){return f<-999999999999999||999999999999999<f}const $l=/[\x00-\x1f\x7f]+/,oc="Token",Lu="Key";function hl(f,e,t){return Tl("serialize",f,e,t)}function lc(f){if(typeof f!="boolean")throw hl(f,Du);return f?"?1":"?0"}function Nc(f){return btoa(String.fromCharCode(...f))}function wc(f){if(ArrayBuffer.isView(f)===!1)throw hl(f,fl);return`:${Nc(f)}:`}function uc(f){if(yu(f))throw hl(f,$u);return f.toString()}function Ku(f){return`@${uc(f.getTime()/1e3)}`}function au(f,e){if(f<0)return-au(-f,e);const t=Math.pow(10,e);if(Math.abs(f*t%1-.5)<Number.EPSILON){const i=Math.floor(f*t);return(i%2===0?i:i+1)/t}else return Math.round(f*t)/t}function xc(f){const e=au(f,3);if(Math.floor(Math.abs(e)).toString().length>12)throw hl(f,Fl);const t=e.toString();return t.includes(".")?t:`${t}.0`}const cc="String";function Ac(f){if($l.test(f))throw hl(f,cc);return`"${f.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Ic(f){return f.description||f.toString().slice(7,-1)}function Ru(f){const e=Ic(f);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw hl(e,oc);return e}function su(f){switch(typeof f){case"number":if(!o(f))throw hl(f,Fu);return Number.isInteger(f)?uc(f):xc(f);case"string":return Ac(f);case"symbol":return Ru(f);case"boolean":return lc(f);case"object":if(f instanceof Date)return Ku(f);if(f instanceof Uint8Array)return wc(f);if(f instanceof gs)return Ru(f);default:throw hl(f,Fu)}}function zu(f){if(/^[a-z*][a-z0-9\-_.*]*$/.test(f)===!1)throw hl(f,Lu);return f}function Dl(f){return f==null?"":Object.entries(f).map(([e,t])=>t===!0?`;${zu(e)}`:`;${zu(e)}=${su(t)}`).join("")}function Gu(f){return f instanceof ka?`${su(f.value)}${Dl(f.params)}`:su(f)}function ce(f){return`(${f.value.map(Gu).join(" ")})${Dl(f.params)}`}function wt(f,e={whitespace:!0}){if(typeof f!="object")throw hl(f,Qo);const t=f instanceof Map?f.entries():Object.entries(f),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([i,s])=>{s instanceof ka||(s=new ka(s));let l=zu(i);return s.value===!0?l+=Dl(s.params):(l+="=",Array.isArray(s.value)?l+=ce(s):l+=Gu(s)),l}).join(`,${r}`)}function gr(f,e){return wt(f,e)}const Pr=f=>f==="ot"||f==="sf"||f==="st",un=f=>typeof f=="number"?o(f):f!=null&&f!==""&&f!==!1;function Wn(f,e){const t=new URL(f),r=new URL(e);if(t.origin!==r.origin)return f;const i=t.pathname.split("/").slice(1),s=r.pathname.split("/").slice(1,-1);for(;i[0]===s[0];)i.shift(),s.shift();for(;s.length;)s.shift(),i.unshift("..");return i.join("/")}function Ci(){try{return crypto.randomUUID()}catch(f){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(i=="x"?s:s&3|8).toString(16)})}}}const ra=f=>Math.round(f),xa=(f,e)=>(e!=null&&e.baseUrl&&(f=Wn(f,e.baseUrl)),encodeURIComponent(f)),Ha=f=>ra(f/100)*100,Wa={br:ra,d:ra,bl:Ha,dl:Ha,mtp:Ha,nor:xa,rtp:Ha,tb:ra};function Ss(f,e){const t={};if(f==null||typeof f!="object")return t;const r=Object.keys(f).sort(),i=n({},Wa,e==null?void 0:e.formatters),s=e==null?void 0:e.filter;return r.forEach(l=>{if(s!=null&&s(l))return;let x=f[l];const j=i[l];j&&(x=j(x,e)),!(l==="v"&&x===1)&&(l=="pr"&&x===1||un(x)&&(Pr(l)&&typeof x=="string"&&(x=new gs(x)),t[l]=x))}),t}function ro(f,e={}){return f?gr(Ss(f,e),n({whitespace:!1},e)):""}function bo(f,e={}){if(!f)return{};const t=Object.entries(f),r=Object.entries(bc).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=t.reduce((s,l)=>{var x,j;const[q,de]=l,Re=((x=r.find(Ye=>Ye[1].includes(q)))==null?void 0:x[0])||Jo.REQUEST;return(j=s[Re])!=null||(s[Re]={}),s[Re][q]=de,s},{});return Object.entries(i).reduce((s,[l,x])=>(s[l]=ro(x,e),s),{})}function Lo(f,e,t){return n(f,bo(e,t))}const zo="CMCD";function jo(f,e={}){if(!f)return"";const t=ro(f,e);return`${zo}=${encodeURIComponent(t)}`}const Ll=/CMCD=[^&#]+/;function Rl(f,e,t){const r=jo(e,t);if(!r)return f;if(Ll.test(f))return f.replace(Ll,r);const i=f.includes("?")?"&":"?";return`${f}${i}${r}`}class Ol{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=i=>{try{this.apply(i,{ot:cs.MANIFEST,su:!this.initialized})}catch(s){B.warn("Could not generate manifest CMCD data.",s)}},this.applyFragmentData=i=>{try{const s=i.frag,l=this.hls.levels[s.level],x=this.getObjectType(s),j={d:s.duration*1e3,ot:x};(x===cs.VIDEO||x===cs.AUDIO||x==cs.MUXED)&&(j.br=l.bitrate/1e3,j.tb=this.getTopBandwidth(x)/1e3,j.bl=this.getBufferLength(x)),this.apply(i,j)}catch(s){B.warn("Could not generate segment CMCD data.",s)}},this.hls=e;const t=this.config=e.config,{cmcd:r}=t;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||Ci(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHED,this.onMediaDetached,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHED,this.onMediaDetached,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var r,i;this.audioBuffer=(r=t.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(i=t.tracks.video)==null?void 0:i.buffer}createData(){var e;return{v:1,sf:Xo.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){n(t,this.createData());const r=t.ot===cs.INIT||t.ot===cs.VIDEO||t.ot===cs.MUXED;this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:i}=this;i&&(t=Object.keys(t).reduce((s,l)=>(i.includes(l)&&(s[l]=t[l]),s),{})),this.useHeaders?(e.headers||(e.headers={}),Lo(e.headers,t)):e.url=Rl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return cs.TIMED_TEXT;if(e.sn==="initSegment")return cs.INIT;if(t==="audio")return cs.AUDIO;if(t==="main")return this.hls.audioTracks.length?cs.VIDEO:cs.MUXED}getTopBandwidth(e){let t=0,r;const i=this.hls;if(e===cs.AUDIO)r=i.audioTracks;else{const s=i.maxAutoLevel,l=s>-1?s+1:i.levels.length;r=i.levels.slice(0,l)}for(const s of r)s.bitrate>t&&(t=s.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.hls.media,r=e===cs.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:Xa.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(s){this.loader=void 0,this.loader=new r(s)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(s,l,x){t(s),this.loader.load(s,l,x)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,r=e||this.config.loader;return class{constructor(s){this.loader=void 0,this.loader=new r(s)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(s,l,x){t(s),this.loader.load(s,l,x)}}}}const Zu=3e5;class dc{constructor(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=B.log.bind(B,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(r=>r!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:r}=t;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:r}=t;if((r==null?void 0:r.action)===pi.SendAlternateToPenaltyBox&&r.flags===la.MoveAllAlternatesMatchingHost){const i=this.levels;let s=this.pathwayPriority,l=this.pathwayId;if(t.context){const{groupId:x,pathwayId:j,type:q}=t.context;x&&i?l=this.getPathwayForGroupId(x,q,l):j&&(l=j)}l in this.penalizedPathways||(this.penalizedPathways[l]=performance.now()),!s&&i&&(s=i.reduce((x,j)=>(x.indexOf(j.pathwayId)===-1&&x.push(j.pathwayId),x),[])),s&&s.length>1&&(this.updatePathwayPriority(s),r.resolved=this.pathwayId!==l),r.resolved||B.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${l} levels: ${i&&i.length} priorities: ${JSON.stringify(s)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),t=this.getLevelsForPathway(r),this.pathwayId=r}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this.pathwayPriority=e;let t;const r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach(s=>{i-r[s]>Zu&&delete r[s]});for(let s=0;s<e.length;s++){const l=e[s];if(l in r)continue;if(l===this.pathwayId)return;const x=this.hls.nextLoadLevel,j=this.hls.levels[x];if(t=this.getLevelsForPathway(l),t.length>0){this.log(`Setting Pathway to "${l}"`),this.pathwayId=l,Ki(t),this.hls.trigger(a.LEVELS_UPDATED,{levels:t});const q=this.hls.levels[x];j&&q&&this.levels&&(q.attrs["STABLE-VARIANT-ID"]!==j.attrs["STABLE-VARIANT-ID"]&&q.bitrate!==j.bitrate&&this.log(`Unstable Pathways change from bitrate ${j.bitrate} to ${q.bitrate}`),this.hls.nextLoadLevel=x);break}}}getPathwayForGroupId(e,t,r){const i=this.getLevelsForPathway(r).concat(this.levels||[]);for(let s=0;s<i.length;s++)if(t===gn.AUDIO_TRACK&&i[s].hasAudioGroup(e)||t===gn.SUBTITLE_TRACK&&i[s].hasSubtitleGroup(e))return i[s].pathwayId;return r}clonePathways(e){const t=this.levels;if(!t)return;const r={},i={};e.forEach(s=>{const{ID:l,"BASE-ID":x,"URI-REPLACEMENT":j}=s;if(t.some(de=>de.pathwayId===l))return;const q=this.getLevelsForPathway(x).map(de=>{const Re=new J(de.attrs);Re["PATHWAY-ID"]=l;const Ye=Re.AUDIO&&`${Re.AUDIO}_clone_${l}`,Je=Re.SUBTITLES&&`${Re.SUBTITLES}_clone_${l}`;Ye&&(r[Re.AUDIO]=Ye,Re.AUDIO=Ye),Je&&(i[Re.SUBTITLES]=Je,Re.SUBTITLES=Je);const ct=Vu(de.uri,Re["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",j),_t=new Yi({attrs:Re,audioCodec:de.audioCodec,bitrate:de.bitrate,height:de.height,name:de.name,url:ct,videoCodec:de.videoCodec,width:de.width});if(de.audioGroups)for(let Dt=1;Dt<de.audioGroups.length;Dt++)_t.addGroupId("audio",`${de.audioGroups[Dt]}_clone_${l}`);if(de.subtitleGroups)for(let Dt=1;Dt<de.subtitleGroups.length;Dt++)_t.addGroupId("text",`${de.subtitleGroups[Dt]}_clone_${l}`);return _t});t.push(...q),Wu(this.audioTracks,r,j,l),Wu(this.subtitleTracks,i,j,l)})}loadSteeringManifest(e){const t=this.hls.config,r=t.loader;this.loader&&this.loader.destroy(),this.loader=new r(t);let i;try{i=new self.URL(e)}catch(de){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(i.protocol!=="data:"){const de=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+de)}const s={responseType:"json",url:i.href},l=t.steeringManifestLoadPolicy.default,x=l.errorRetry||l.timeoutRetry||{},j={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:x.maxNumRetry||0,retryDelay:x.retryDelayMs||0,maxRetryDelay:x.maxRetryDelayMs||0},q={onSuccess:(de,Re,Ye,Je)=>{this.log(`Loaded steering manifest: "${i}"`);const ct=de.data;if(ct.VERSION!==1){this.log(`Steering VERSION ${ct.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=ct.TTL;const{"RELOAD-URI":_t,"PATHWAY-CLONES":Dt,"PATHWAY-PRIORITY":pr}=ct;if(_t)try{this.uri=new self.URL(_t,i).href}catch(Lr){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${_t}`);return}this.scheduleRefresh(this.uri||Ye.url),Dt&&this.clonePathways(Dt);const Tr={steeringManifest:ct,url:i.toString()};this.hls.trigger(a.STEERING_MANIFEST_LOADED,Tr),pr&&this.updatePathwayPriority(pr)},onError:(de,Re,Ye,Je)=>{if(this.log(`Error loading steering manifest: ${de.code} ${de.text} (${Re.url})`),this.stopLoad(),de.code===410){this.enabled=!1,this.log(`Steering manifest ${Re.url} no longer available`);return}let ct=this.timeToLoad*1e3;if(de.code===429){const _t=this.loader;if(typeof(_t==null?void 0:_t.getResponseHeader)=="function"){const Dt=_t.getResponseHeader("Retry-After");Dt&&(ct=parseFloat(Dt)*1e3)}this.log(`Steering manifest ${Re.url} rate limited`);return}this.scheduleRefresh(this.uri||Re.url,ct)},onTimeout:(de,Re,Ye)=>{this.log(`Timeout loading steering manifest (${Re.url})`),this.scheduleRefresh(this.uri||Re.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(s,j,q)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const i=(r=this.hls)==null?void 0:r.media;if(i&&!i.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Wu(f,e,t,r){f&&Object.keys(e).forEach(i=>{const s=f.filter(l=>l.groupId===i).map(l=>{const x=n({},l);return x.details=void 0,x.attrs=new J(x.attrs),x.url=x.attrs.URI=Vu(l.url,l.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),x.groupId=x.attrs["GROUP-ID"]=e[i],x.attrs["PATHWAY-ID"]=r,x});f.push(...s)})}function Vu(f,e,t,r){const{HOST:i,PARAMS:s,[t]:l}=r;let x;e&&(x=l==null?void 0:l[e],x&&(f=x));const j=new self.URL(f);return i&&!x&&(j.host=i),s&&Object.keys(s).sort().forEach(q=>{q&&j.searchParams.set(q,s[q])}),j.href}const fc=/^age:\s*[\d.]+\s*$/im;class Yu{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new ae,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const s=this.xhrSetup;s?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return s(r,t.url)}).catch(l=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",t.url,!0),s(r,t.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,t,e)}).catch(l=>{this.callbacks.onError({code:r.status,text:l.message},t,r,i)}):this.openAndSendXhr(r,t,e)}openAndSendXhr(e,t,r){e.readyState||e.open("GET",t.url,!0);const i=t.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:l}=r.loadPolicy;if(i)for(const x in i)e.setRequestHeader(x,i[x]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),r.timeout=s&&o(s)?s:l,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:r}=this;if(!e||!t)return;const i=t.readyState,s=this.config;if(!r.aborted&&i>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),s.timeout!==s.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),s.timeout=s.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const l=t.status,x=t.responseType==="text"?t.responseText:null;if(l>=200&&l<300){const Re=x!=null?x:t.response;if(Re!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const Ye=t.responseType==="arraybuffer"?Re.byteLength:Re.length;if(r.loaded=r.total=Ye,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const Je=this.callbacks.onProgress;if(Je&&Je(r,e,Re,t),!this.callbacks)return;const ct={url:t.responseURL,data:Re,code:l};this.callbacks.onSuccess(ct,r,e,t);return}}const j=s.loadPolicy.errorRetry,q=r.retry,de={url:e.url,data:void 0,code:l};us(j,q,!1,de)?this.retry(j):(B.error(`${l} while loading ${e.url}`),this.callbacks.onError({code:l,text:t.statusText},e,t,r))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(us(e,t,!0))this.retry(e);else{var r;B.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:r}=this;this.retryDelay=Pa(e,r.retry),r.retry++,B.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${r.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&fc.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}function hc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(f){}return!1}const qo=/(\d+)-(\d+)\/(\d+)/;class Kl{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||Ho,this.controller=new self.AbortController,this.stats=new ae}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,r){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const s=Xu(e,this.controller.signal),l=r.onProgress,x=e.responseType==="arraybuffer",j=x?"byteLength":"length",{maxTimeToFirstByteMs:q,maxLoadTimeMs:de}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,s),self.clearTimeout(this.requestTimeout),t.timeout=q&&o(q)?q:de,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,e,this.response)},t.timeout),self.fetch(this.request).then(Re=>{this.response=this.loader=Re;const Ye=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=de,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,e,this.response)},de-(Ye-i.loading.start)),!Re.ok){const{status:Je,statusText:ct}=Re;throw new ou(ct||"fetch, bad network response",Je,Re)}return i.loading.first=Ye,i.total=Xl(Re.headers)||i.total,l&&o(t.highWaterMark)?this.loadProgressively(Re,i,e,t.highWaterMark,l):x?Re.arrayBuffer():e.responseType==="json"?Re.json():Re.text()}).then(Re=>{const Ye=this.response;if(!Ye)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const Je=Re[j];Je&&(i.loaded=i.total=Je);const ct={url:Ye.url,data:Re,code:Ye.status};l&&!o(t.highWaterMark)&&l(i,e,Re,Ye),r.onSuccess(ct,i,e,Ye)}).catch(Re=>{if(self.clearTimeout(this.requestTimeout),i.aborted)return;const Ye=Re&&Re.code||0,Je=Re?Re.message:null;r.onError({code:Ye,text:Je},e,Re?Re.details:null,i)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,r,i=0,s){const l=new ru,x=e.body.getReader(),j=()=>x.read().then(q=>{if(q.done)return l.dataLength&&s(t,r,l.flush(),e),Promise.resolve(new ArrayBuffer(0));const de=q.value,Re=de.length;return t.loaded+=Re,Re<i||l.dataLength?(l.push(de),l.dataLength>=i&&s(t,r,l.flush(),e)):s(t,r,de,e),j()}).catch(()=>Promise.reject());return j()}}function Xu(f,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(n({},f.headers))};return f.rangeEnd&&t.headers.set("Range","bytes="+f.rangeStart+"-"+String(f.rangeEnd-1)),t}function no(f){const e=qo.exec(f);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Xl(f){const e=f.get("Content-Range");if(e){const r=no(e);if(o(r))return r}const t=f.get("Content-Length");if(t)return parseInt(t)}function Ho(f,e){return new self.Request(f.url,e)}class ou extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const zl=/\s/,Ou={newCue(f,e,t,r){const i=[];let s,l,x,j,q;const de=self.VTTCue||self.TextTrackCue;for(let Ye=0;Ye<r.rows.length;Ye++)if(s=r.rows[Ye],x=!0,j=0,q="",!s.isEmpty()){var Re;for(let _t=0;_t<s.chars.length;_t++)zl.test(s.chars[_t].uchar)&&x?j++:(q+=s.chars[_t].uchar,x=!1);s.cueStartTime=e,e===t&&(t+=1e-4),j>=16?j--:j++;const Je=_o(q.trim()),ct=hu(e,t,Je);f!=null&&(Re=f.cues)!=null&&Re.getCueById(ct)||(l=new de(e,t,Je),l.id=ct,l.line=Ye+1,l.align="left",l.position=10+Math.min(80,Math.floor(j*8/32)*10),i.push(l))}return f&&i.length&&(i.sort((Ye,Je)=>Ye.line==="auto"||Je.line==="auto"?0:Ye.line>8&&Je.line>8?Je.line-Ye.line:Ye.line-Je.line),i.forEach(Ye=>da(f,Ye))),i}},No={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Pu=ie(ie({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Yu,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:rs,bufferController:qn,capLevelController:Yl,errorController:ps,fpsController:vu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Wr,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:No},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Ec()),{},{subtitleStreamController:Ia,subtitleTrackController:ss,timelineController:Bu,audioStreamController:kn,audioTrackController:Gi,emeController:Sl,cmcdController:Ol,contentSteeringController:dc});function Ec(){return{cueHandler:Ou,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function Cc(f,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const t=Gl(f),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,x=e[l]===void 0,j=[];i.forEach(q=>{const de=`${s}Loading${q}`,Re=e[de];if(Re!==void 0&&x){j.push(de);const Ye=t[l].default;switch(e[l]={default:Ye},q){case"TimeOut":Ye.maxLoadTimeMs=Re,Ye.maxTimeToFirstByteMs=Re;break;case"MaxRetry":Ye.errorRetry.maxNumRetry=Re,Ye.timeoutRetry.maxNumRetry=Re;break;case"RetryDelay":Ye.errorRetry.retryDelayMs=Re,Ye.timeoutRetry.retryDelayMs=Re;break;case"MaxRetryTimeout":Ye.errorRetry.maxRetryDelayMs=Re,Ye.timeoutRetry.maxRetryDelayMs=Re;break}}}),j.length&&B.warn(`hls.js config: "${j.join('", "')}" setting(s) are deprecated, use "${l}": ${JSON.stringify(e[l])}`)}),ie(ie({},t),e)}function Gl(f){return f&&typeof f=="object"?Array.isArray(f)?f.map(Gl):Object.keys(f).reduce((e,t)=>(e[t]=Gl(f[t]),e),{}):f}function Jl(f){const e=f.loader;e!==Kl&&e!==Yu?(B.log("[config]: Custom loader detected, cannot enable progressive streaming"),f.progressive=!1):hc()&&(f.loader=Kl,f.progressive=!0,f.enableSoftwareAES=!0,B.log("[config]: Progressive streaming enabled, using FetchLoader"))}let el;class rl extends Oa{constructor(e,t){super(e,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const r=this.hls.config.preferManagedMediaSource,i=[],s={},l={};let x=!1,j=!1,q=!1;t.levels.forEach(de=>{var Re,Ye;const Je=de.attrs;let{audioCodec:ct,videoCodec:_t}=de;((Re=ct)==null?void 0:Re.indexOf("mp4a.40.34"))!==-1&&(el||(el=/chrome|firefox/i.test(navigator.userAgent)),el&&(de.audioCodec=ct=void 0)),ct&&(de.audioCodec=ct=ti(ct,r)),((Ye=_t)==null?void 0:Ye.indexOf("avc1"))===0&&(_t=de.videoCodec=Ri(_t));const{width:Dt,height:pr,unknownCodecs:Tr}=de;if(x||(x=!!(Dt&&pr)),j||(j=!!_t),q||(q=!!ct),Tr!=null&&Tr.length||ct&&!dr(ct,"audio",r)||_t&&!dr(_t,"video",r))return;const{CODECS:Lr,"FRAME-RATE":$n,"HDCP-LEVEL":dn,"PATHWAY-ID":gi,RESOLUTION:Kn,"VIDEO-RANGE":Si}=Je,mi=`${`${gi||"."}-`}${de.bitrate}-${Kn}-${$n}-${Lr}-${Si}-${dn}`;if(s[mi])if(s[mi].uri!==de.url&&!de.attrs["PATHWAY-ID"]){const Li=l[mi]+=1;de.attrs["PATHWAY-ID"]=new Array(Li+1).join(".");const Ga=new Yi(de);s[mi]=Ga,i.push(Ga)}else s[mi].addGroupId("audio",Je.AUDIO),s[mi].addGroupId("text",Je.SUBTITLES);else{const Li=new Yi(de);s[mi]=Li,l[mi]=1,i.push(Li)}}),this.filterAndSortMediaOptions(i,t,x,j,q)}filterAndSortMediaOptions(e,t,r,i,s){let l=[],x=[],j=e;if((r||i)&&s&&(j=j.filter(({videoCodec:ct,videoRange:_t,width:Dt,height:pr})=>(!!ct||!!(Dt&&pr))&&oa(_t))),j.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const ct=new Error("no level with compatible codecs found in manifest");this.hls.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:ct,reason:ct.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:ct}=this.hls.config;l=t.audioTracks.filter(_t=>!_t.audioCodec||dr(_t.audioCodec,"audio",ct)),Pl(l)}t.subtitles&&(x=t.subtitles,Pl(x));const q=j.slice(0);j.sort((ct,_t)=>{if(ct.attrs["HDCP-LEVEL"]!==_t.attrs["HDCP-LEVEL"])return(ct.attrs["HDCP-LEVEL"]||"")>(_t.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&ct.height!==_t.height)return ct.height-_t.height;if(ct.frameRate!==_t.frameRate)return ct.frameRate-_t.frameRate;if(ct.videoRange!==_t.videoRange)return Ni.indexOf(ct.videoRange)-Ni.indexOf(_t.videoRange);if(ct.videoCodec!==_t.videoCodec){const Dt=Yr(ct.videoCodec),pr=Yr(_t.videoCodec);if(Dt!==pr)return pr-Dt}if(ct.uri===_t.uri&&ct.codecSet!==_t.codecSet){const Dt=Mr(ct.codecSet),pr=Mr(_t.codecSet);if(Dt!==pr)return pr-Dt}return ct.averageBitrate!==_t.averageBitrate?ct.averageBitrate-_t.averageBitrate:0});let de=q[0];if(this.steering&&(j=this.steering.filterParsedLevels(j),j.length!==q.length)){for(let ct=0;ct<q.length;ct++)if(q[ct].pathwayId===j[0].pathwayId){de=q[ct];break}}this._levels=j;for(let ct=0;ct<j.length;ct++)if(j[ct]===de){var Re;this._firstLevel=ct;const _t=de.bitrate,Dt=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${j.length} level(s) found, first bitrate: ${_t}`),((Re=this.hls.userConfig)==null?void 0:Re.abrEwmaDefaultEstimate)===void 0){const pr=Math.min(_t,this.hls.config.abrEwmaDefaultEstimateMax);pr>Dt&&Dt===Pu.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=pr)}break}const Ye=s&&!i,Je={levels:j,audioTracks:l,subtitleTracks:x,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:s,video:i,altAudio:!Ye&&l.some(ct=>!!ct.url)};this.hls.trigger(a.MANIFEST_PARSED,Je),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const de=new Error("invalid level idx"),Re=e<0;if(this.hls.trigger(a.ERROR,{type:d.OTHER_ERROR,details:m.LEVEL_SWITCH_ERROR,level:e,fatal:Re,error:de,reason:de.message}),Re)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,i=this.currentLevel,s=i?i.attrs["PATHWAY-ID"]:void 0,l=t[e],x=l.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=l,r===e&&l.details&&i&&s===x)return;this.log(`Switching to level ${e} (${l.height?l.height+"p ":""}${l.videoRange?l.videoRange+" ":""}${l.codecSet?l.codecSet+" ":""}@${l.bitrate})${x?" with Pathway "+x:""} from level ${r}${s?" with Pathway "+s:""}`);const j={level:e,attrs:l.attrs,details:l.details,bitrate:l.bitrate,averageBitrate:l.averageBitrate,maxBitrate:l.maxBitrate,realBitrate:l.realBitrate,width:l.width,height:l.height,codecSet:l.codecSet,audioCodec:l.audioCodec,videoCodec:l.videoCodec,audioGroups:l.audioGroups,subtitleGroups:l.subtitleGroups,loaded:l.loaded,loadError:l.loadError,fragmentError:l.fragmentError,name:l.name,id:l.id,uri:l.uri,url:l.url,urlId:0,audioGroupIds:l.audioGroupIds,textGroupIds:l.textGroupIds};this.hls.trigger(a.LEVEL_SWITCHING,j);const q=l.details;if(!q||q.live){const de=this.switchParams(l.uri,i==null?void 0:i.details,q);this.loadPlaylist(de)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}onError(e,t){t.fatal||!t.context||t.context.type===gn.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Ht.MAIN){const r=t.elementaryStreams;if(!Object.keys(r).some(s=>!!r[s]))return;const i=this._levels[t.level];i!=null&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(e,t){var r;const{level:i,details:s}=t,l=this._levels[i];if(!l){var x;this.warn(`Invalid level index ${i}`),(x=t.deliveryDirectives)!=null&&x.skip&&(s.deltaUpdateFailed=!0);return}i===this.currentLevelIndex?(l.fragmentError===0&&(l.loadError=0),this.playlistLoaded(i,t,l.details)):(r=t.deliveryDirectives)!=null&&r.skip&&(s.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){let i=r.uri;if(e)try{i=e.addDirectives(i)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}const s=r.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${s?" Pathway "+s:""} ${i}`),this.clearTimer(),this.hls.trigger(a.LEVEL_LOADING,{url:i,level:t,pathwayId:r.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;const r=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(l=>l.level=-1)),!1));Ki(r),this._levels=r,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(a.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(a.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function Pl(f){const e={};f.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}class bu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[r].loader;if(i){var t;if(e&&e!==((t=i.context)==null?void 0:t.frag.type))return;i.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=m.KEY_LOAD_ERROR,r,i,s){return new ws({type:d.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:s,error:r,networkDetails:i})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:i}=e;for(let s=0;s<t.length;s++){const l=t[s];if(i<=l.cc&&(r==="initSegment"||l.sn==="initSegment"||r<l.sn)){this.emeController.selectKeySystemFormat(l).then(x=>{l.setKeyFormat(x)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var r,i;t&&e.setKeyFormat(t);const s=e.decryptdata;if(!s){const q=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,m.KEY_LOAD_ERROR,q))}const l=s.uri;if(!l)return Promise.reject(this.createKeyLoadError(e,m.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${l}"`)));let x=this.keyUriToKeyInfo[l];if((r=x)!=null&&r.decryptdata.key)return s.key=x.decryptdata.key,Promise.resolve({frag:e,keyInfo:x});if((i=x)!=null&&i.keyLoadPromise){var j;switch((j=x.mediaKeySessionContext)==null?void 0:j.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return x.keyLoadPromise.then(q=>(s.key=q.keyInfo.decryptdata.key,{frag:e,keyInfo:x}))}}switch(x=this.keyUriToKeyInfo[l]={decryptdata:s,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},s.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return s.keyFormat==="identity"?this.loadKeyHTTP(x,e):this.loadKeyEME(x,e);case"AES-128":return this.loadKeyHTTP(x,e);default:return Promise.reject(this.createKeyLoadError(e,m.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${s.method}"`)))}}loadKeyEME(e,t){const r={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const i=this.emeController.loadKey(r);if(i)return(e.keyLoadPromise=i.then(s=>(e.mediaKeySessionContext=s,r))).catch(s=>{throw e.keyLoadPromise=null,s})}return Promise.resolve(r)}loadKeyHTTP(e,t){const r=this.config,i=r.loader,s=new i(r);return t.keyLoader=e.loader=s,e.keyLoadPromise=new Promise((l,x)=>{const j={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},q=r.keyLoadPolicy.default,de={loadPolicy:q,timeout:q.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Re={onSuccess:(Ye,Je,ct,_t)=>{const{frag:Dt,keyInfo:pr,url:Tr}=ct;if(!Dt.decryptdata||pr!==this.keyUriToKeyInfo[Tr])return x(this.createKeyLoadError(Dt,m.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),_t));pr.decryptdata.key=Dt.decryptdata.key=new Uint8Array(Ye.data),Dt.keyLoader=null,pr.loader=null,l({frag:Dt,keyInfo:pr})},onError:(Ye,Je,ct,_t)=>{this.resetLoader(Je),x(this.createKeyLoadError(t,m.KEY_LOAD_ERROR,new Error(`HTTP Error ${Ye.code} loading key ${Ye.text}`),ct,ie({url:j.url,data:void 0},Ye)))},onTimeout:(Ye,Je,ct)=>{this.resetLoader(Je),x(this.createKeyLoadError(t,m.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),ct))},onAbort:(Ye,Je,ct)=>{this.resetLoader(Je),x(this.createKeyLoadError(t,m.INTERNAL_ABORTED,new Error("key loading aborted"),ct))}};s.load(j,de,Re)})}resetLoader(e){const{frag:t,keyInfo:r,url:i}=e,s=r.loader;t.keyLoader===s&&(t.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[i],s&&s.destroy()}}function lu(){return self.SourceBuffer||self.WebKitSourceBuffer}function Ju(){if(!Vn())return!1;const e=lu();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function wu(){if(!Ju())return!1;const f=Vn();return typeof(f==null?void 0:f.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>f.isTypeSupported(Ir(e,"video")))||["mp4a.40.2","fLaC"].some(e=>f.isTypeSupported(Ir(e,"audio"))))}function Ro(){var f;const e=lu();return typeof(e==null||(f=e.prototype)==null?void 0:f.changeType)=="function"}const qu=250,Go=2,Zl=.1,pc=.05;class Tc{constructor(e,t,r,i){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=r,this.hls=i}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:r,media:i,stalled:s}=this;if(i===null)return;const{currentTime:l,seeking:x}=i,j=this.seeking&&!x,q=!this.seeking&&x;if(this.seeking=x,l!==e){if(this.moved=!0,x||(this.nudgeRetry=0),s!==null){if(this.stallReported){const Dt=self.performance.now()-s;B.warn(`playback not stuck anymore @${l}, after ${Math.round(Dt)}ms`),this.stallReported=!1}this.stalled=null}return}if(q||j){this.stalled=null;return}if(i.paused&&!x||i.ended||i.playbackRate===0||!Xa.getBuffered(i).length){this.nudgeRetry=0;return}const de=Xa.bufferInfo(i,l,0),Re=de.nextStart||0;if(x){const Dt=de.len>Go,pr=!Re||t&&t.start<=l||Re-l>Go&&!this.fragmentTracker.getPartialFragment(l);if(Dt||pr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Ye;if(!(de.len>0)&&!Re)return;const pr=Math.max(Re,de.start||0)-l,Tr=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,$n=(Tr==null||(Ye=Tr.details)==null?void 0:Ye.live)?Tr.details.targetduration*2:Go,dn=this.fragmentTracker.getPartialFragment(l);if(pr>0&&(pr<=$n||dn)){i.paused||this._trySkipBufferHole(dn);return}}const Je=self.performance.now();if(s===null){this.stalled=Je;return}const ct=Je-s;if(!x&&ct>=qu&&(this._reportStall(de),!this.media))return;const _t=Xa.bufferInfo(i,l,r.maxBufferHole);this._tryFixBufferStall(_t,ct)}_tryFixBufferStall(e,t){const{config:r,fragmentTracker:i,media:s}=this;if(s===null)return;const l=s.currentTime,x=i.getPartialFragment(l);x&&(this._trySkipBufferHole(x)||!this.media)||(e.len>r.maxBufferHole||e.nextStart&&e.nextStart-l<r.maxBufferHole)&&t>r.highBufferWatchdogPeriod*1e3&&(B.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:r,stallReported:i}=this;if(!i&&r){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${JSON.stringify(e)})`);B.warn(s.message),t.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:r,media:i}=this;if(i===null)return 0;const s=i.currentTime,l=Xa.bufferInfo(i,s,0),x=s<l.start?l.start:l.nextStart;if(x){const j=l.len<=t.maxBufferHole,q=l.len>0&&l.len<1&&i.readyState<3,de=x-s;if(de>0&&(j||q)){if(de>t.maxBufferHole){const{fragmentTracker:Ye}=this;let Je=!1;if(s===0){const ct=Ye.getAppendedFrag(0,Ht.MAIN);ct&&x<ct.end&&(Je=!0)}if(!Je){const ct=e||Ye.getAppendedFrag(s,Ht.MAIN);if(ct){let _t=!1,Dt=ct.end;for(;Dt<x;){const pr=Ye.getPartialFragment(Dt);if(pr)Dt+=pr.duration;else{_t=!0;break}}if(_t)return 0}}}const Re=Math.max(x+pc,s+Zl);if(B.warn(`skipping hole, adjusting currentTime from ${s} to ${Re}`),this.moved=!0,this.stalled=null,i.currentTime=Re,e&&!e.gap){const Ye=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${Re}`);r.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:Ye,reason:Ye.message,frag:e})}return Re}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:r,nudgeRetry:i}=this;if(r===null)return;const s=r.currentTime;if(this.nudgeRetry++,i<e.nudgeMaxRetry){const l=s+(i+1)*e.nudgeOffset,x=new Error(`Nudging 'currentTime' from ${s} to ${l}`);B.warn(x.message),r.currentTime=l,t.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.BUFFER_NUDGE_ON_STALL,error:x,fatal:!1})}else{const l=new Error(`Playhead still not moving while enough data buffered @${s} after ${e.nudgeMaxRetry} nudges`);B.error(l.message),t.trigger(a.ERROR,{type:d.MEDIA_ERROR,details:m.BUFFER_STALLED_ERROR,error:l,fatal:!0})}}}const _c=100;class xu extends du{constructor(e,t,r){super(e,t,r,"[stream-controller]",Ht.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(a.ERROR,this.onError,this),e.on(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(a.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this),e.on(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(a.ERROR,this.onError,this),e.off(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(a.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this),e.off(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:r}=this;if(this.stopLoad(),this.setInterval(_c),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=ci.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=ci.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case ci.WAITING_LEVEL:{const{levels:t,level:r}=this,i=t==null?void 0:t[r],s=i==null?void 0:i.details;if(s&&(!s.live||this.levelLastLoaded===i)){if(this.waitForCdnTuneIn(s))break;this.state=ci.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=ci.IDLE;break}break}case ci.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),r=this.retryDate;if(!r||t>=r||(e=this.media)!=null&&e.seeking){const{levels:i,level:s}=this,l=i==null?void 0:i[s];this.resetStartWhenNotLoaded(l||null),this.state=ci.IDLE}}break}this.state===ci.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:r,media:i}=this;if(t===null||!i&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const s=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(r!=null&&r[s]))return;const l=r[s],x=this.getMainFwdBufferInfo();if(x===null)return;const j=this.getLevelDetails();if(j&&this._streamEnded(x,j)){const _t={};this.altAudio&&(_t.type="video"),this.hls.trigger(a.BUFFER_EOS,_t),this.state=ci.ENDED;return}if(!this.buffering)return;e.loadLevel!==s&&e.manualLevel===-1&&this.log(`Adapting to level ${s} from level ${this.level}`),this.level=e.nextLoadLevel=s;const q=l.details;if(!q||this.state===ci.WAITING_LEVEL||q.live&&this.levelLastLoaded!==l){this.level=s,this.state=ci.WAITING_LEVEL;return}const de=x.len,Re=this.getMaxBufferLength(l.maxBitrate);if(de>=Re)return;this.backtrackFragment&&this.backtrackFragment.start>x.end&&(this.backtrackFragment=null);const Ye=this.backtrackFragment?this.backtrackFragment.start:x.end;let Je=this.getNextFragment(Ye,q);if(this.couldBacktrack&&!this.fragPrevious&&Je&&Je.sn!=="initSegment"&&this.fragmentTracker.getState(Je)!==ba.OK){var ct;const Dt=((ct=this.backtrackFragment)!=null?ct:Je).sn-q.startSN,pr=q.fragments[Dt-1];pr&&Je.cc===pr.cc&&(Je=pr,this.fragmentTracker.removeFragment(pr))}else this.backtrackFragment&&x.len&&(this.backtrackFragment=null);if(Je&&this.isLoopLoading(Je,Ye)){if(!Je.gap){const Dt=this.audioOnly&&!this.altAudio?pe.AUDIO:pe.VIDEO,pr=(Dt===pe.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;pr&&this.afterBufferFlushed(pr,Dt,Ht.MAIN)}Je=this.getNextFragmentLoopLoading(Je,q,x,Ht.MAIN,Re)}Je&&(Je.initSegment&&!Je.initSegment.data&&!this.bitrateTest&&(Je=Je.initSegment),this.loadFragment(Je,l,Ye))}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);this.fragCurrent=e,i===ba.NOT_LOADED||i===ba.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):(this.startFragRequested=!0,super.loadFragment(e,t,r)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,Ht.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let r;const i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const s=this.getLevelDetails();if(s!=null&&s.live){const x=this.getMainFwdBufferInfo();if(!x||x.len<s.targetduration*2)return}if(!t.paused&&e){const x=this.hls.nextLoadLevel,j=e[x],q=this.fragLastKbps;q&&this.fragCurrent?r=this.fragCurrent.duration*j.maxBitrate/(1e3*q)+1:r=0}else r=0;const l=this.getBufferedFrag(t.currentTime+r);if(l){const x=this.followingBufferedFrag(l);if(x){this.abortCurrentFrag();const j=x.maxStartPTS?x.maxStartPTS:x.start,q=x.duration,de=Math.max(l.end,j+Math.min(Math.max(q-this.config.maxFragLookUpTolerance,q*(this.couldBacktrack?.5:.125)),q*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(de,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case ci.KEY_LOADING:case ci.FRAG_LOADING:case ci.FRAG_LOADING_WAITING_RETRY:case ci.PARSING:case ci.PARSED:this.state=ci.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const r=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new Tc(this.config,r,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;o(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const r=this.getMainFwdBufferInfo();if(r===null||r.len===0){this.warn(`Main forward buffer length on "seeked" event ${r?r.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(a.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,t){let r=!1,i=!1;t.levels.forEach(s=>{const l=s.audioCodec;l&&(r=r||l.indexOf("mp4a.40.2")!==-1,i=i||l.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=r&&i&&!Ro(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:r}=this;if(!r||this.state!==ci.IDLE)return;const i=r[t.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=ci.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:i}=this,s=t.level,l=t.details,x=l.totalduration;if(!i){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${x}`);const j=i[s],q=this.fragCurrent;q&&(this.state===ci.FRAG_LOADING||this.state===ci.FRAG_LOADING_WAITING_RETRY)&&q.level!==t.level&&q.loader&&this.abortCurrentFrag();let de=0;if(l.live||(r=j.details)!=null&&r.live){var Re;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;de=this.alignPlaylists(l,j.details,(Re=this.levelLastLoaded)==null?void 0:Re.details)}if(j.details=l,this.levelLastLoaded=j,this.hls.trigger(a.LEVEL_UPDATED,{details:l,level:s}),this.state===ci.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=ci.IDLE}this.startFragRequested?l.live&&this.synchronizeToLiveEdge(l):this.setStartPosition(l,de),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:i,payload:s}=e,{levels:l}=this;if(!l){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const x=l[r.level],j=x.details;if(!j){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const q=x.videoCodec,de=j.PTSKnown||!j.live,Re=(t=r.initSegment)==null?void 0:t.data,Ye=this._getAudioCodec(x),Je=this.transmuxer=this.transmuxer||new xn(this.hls,Ht.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ct=i?i.index:-1,_t=ct!==-1,Dt=new bl(r.level,r.sn,r.stats.chunkCount,s.byteLength,ct,_t),pr=this.initPTS[r.cc];Je.push(s,Re,Ye,q,r,i,j.totalduration,de,Dt,pr)}onAudioTrackSwitching(e,t){const r=this.altAudio;if(!!!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const l=this.fragCurrent;l&&(this.log("Switching to main audio track, cancel main fragment load"),l.abortRequests(),this.fragmentTracker.removeFragment(l)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const s=this.hls;r&&(s.trigger(a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),s.trigger(a.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=t.id,i=!!this.hls.audioTracks[r].url;if(i){const s=this.videoBuffer;s&&this.mediaBuffer!==s&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=s)}this.altAudio=i,this.tick()}onBufferCreated(e,t){const r=t.tracks;let i,s,l=!1;for(const x in r){const j=r[x];if(j.id==="main"){if(s=x,i=j,x==="video"){const q=r[x];q&&(this.videoBuffer=q.buffer)}}else l=!0}l&&i?(this.log(`Alternate track found, use ${s}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:r,part:i}=t;if(r&&r.type!==Ht.MAIN)return;if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===ci.PARSED&&(this.state=ci.IDLE);return}const s=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*s.total/(s.buffering.end-s.loading.first)),r.sn!=="initSegment"&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}onError(e,t){var r;if(t.fatal){this.state=ci.ERROR;return}switch(t.details){case m.FRAG_GAP:case m.FRAG_PARSING_ERROR:case m.FRAG_DECRYPT_ERROR:case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ht.MAIN,t);break;case m.LEVEL_LOAD_ERROR:case m.LEVEL_LOAD_TIMEOUT:case m.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===ci.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===gn.LEVEL&&(this.state=ci.IDLE);break;case m.BUFFER_APPEND_ERROR:case m.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===m.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case m.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Xa.getBuffered(e).length){const r=this.state!==ci.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=ci.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==pe.AUDIO||this.audioOnly&&!this.altAudio){const r=(t===pe.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,t,Ht.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let r=this.startPosition;if(r>=0&&t<r){if(e.seeking){this.log(`could not seek to ${r}, already seeking at ${t}`);return}const i=Xa.getBuffered(e),l=(i.length?i.start(0):0)-r;l>0&&(l<this.config.maxBufferHole||l<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${l} to match buffer start`),r+=l,this.startPosition=r),this.log(`seek to target start position ${r} from current time ${t}`),e.currentTime=r}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(r=>{const{hls:i}=this;if(!r||this.fragContextChanged(e))return;t.fragmentError=0,this.state=ci.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=e.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),i.trigger(a.FRAG_LOADED,r),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const r="main",{hls:i}=this,{remuxResult:s,chunkMeta:l}=e,x=this.getCurrentContext(l);if(!x){this.resetWhenMissingContext(l);return}const{frag:j,part:q,level:de}=x,{video:Re,text:Ye,id3:Je,initSegment:ct}=s,{details:_t}=de,Dt=this.altAudio?void 0:s.audio;if(this.fragContextChanged(j)){this.fragmentTracker.removeFragment(j);return}if(this.state=ci.PARSING,ct){if(ct!=null&&ct.tracks){const Lr=j.initSegment||j;this._bufferInitSegment(de,ct.tracks,Lr,l),i.trigger(a.FRAG_PARSING_INIT_SEGMENT,{frag:Lr,id:r,tracks:ct.tracks})}const pr=ct.initPTS,Tr=ct.timescale;o(pr)&&(this.initPTS[j.cc]={baseTime:pr,timescale:Tr},i.trigger(a.INIT_PTS_FOUND,{frag:j,id:r,initPTS:pr,timescale:Tr}))}if(Re&&_t&&j.sn!=="initSegment"){const pr=_t.fragments[j.sn-1-_t.startSN],Tr=j.sn===_t.startSN,Lr=!pr||j.cc>pr.cc;if(s.independent!==!1){const{startPTS:$n,endPTS:dn,startDTS:gi,endDTS:Kn}=Re;if(q)q.elementaryStreams[Re.type]={startPTS:$n,endPTS:dn,startDTS:gi,endDTS:Kn};else if(Re.firstKeyFrame&&Re.independent&&l.id===1&&!Lr&&(this.couldBacktrack=!0),Re.dropped&&Re.independent){const Si=this.getMainFwdBufferInfo(),ta=(Si?Si.end:this.getLoadPosition())+this.config.maxBufferHole,mi=Re.firstKeyFramePTS?Re.firstKeyFramePTS:$n;if(!Tr&&ta<mi-this.config.maxBufferHole&&!Lr){this.backtrack(j);return}else Lr&&(j.gap=!0);j.setElementaryStreamInfo(Re.type,j.start,dn,j.start,Kn,!0)}else Tr&&$n>Go&&(j.gap=!0);j.setElementaryStreamInfo(Re.type,$n,dn,gi,Kn),this.backtrackFragment&&(this.backtrackFragment=j),this.bufferFragmentData(Re,j,q,l,Tr||Lr)}else if(Tr||Lr)j.gap=!0;else{this.backtrack(j);return}}if(Dt){const{startPTS:pr,endPTS:Tr,startDTS:Lr,endDTS:$n}=Dt;q&&(q.elementaryStreams[pe.AUDIO]={startPTS:pr,endPTS:Tr,startDTS:Lr,endDTS:$n}),j.setElementaryStreamInfo(pe.AUDIO,pr,Tr,Lr,$n),this.bufferFragmentData(Dt,j,q,l)}if(_t&&Je!=null&&(t=Je.samples)!=null&&t.length){const pr={id:r,frag:j,details:_t,samples:Je.samples};i.trigger(a.FRAG_PARSING_METADATA,pr)}if(_t&&Ye){const pr={id:r,frag:j,details:_t,samples:Ye.samples};i.trigger(a.FRAG_PARSING_USERDATA,pr)}}_bufferInitSegment(e,t,r,i){if(this.state!==ci.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:s,video:l,audiovideo:x}=t;if(s){let j=e.audioCodec;const q=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){j&&(j.indexOf("mp4a.40.5")!==-1?j="mp4a.40.2":j="mp4a.40.5");const de=s.metadata;de&&"channelCount"in de&&(de.channelCount||1)!==1&&q.indexOf("firefox")===-1&&(j="mp4a.40.5")}j&&j.indexOf("mp4a.40.5")!==-1&&q.indexOf("android")!==-1&&s.container!=="audio/mpeg"&&(j="mp4a.40.2",this.log(`Android: force audio codec to ${j}`)),e.audioCodec&&e.audioCodec!==j&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${j}"`),s.levelCodec=j,s.id="main",this.log(`Init audio buffer, container:${s.container}, codecs[selected/level/parsed]=[${j||""}/${e.audioCodec||""}/${s.codec}]`)}l&&(l.levelCodec=e.videoCodec,l.id="main",this.log(`Init video buffer, container:${l.container}, codecs[level/parsed]=[${e.videoCodec||""}/${l.codec}]`)),x&&this.log(`Init audiovideo buffer, container:${x.container}, codecs[level/parsed]=[${e.codecs}/${x.codec}]`),this.hls.trigger(a.BUFFER_CODECS,t),Object.keys(t).forEach(j=>{const de=t[j].initSegment;de!=null&&de.byteLength&&this.hls.trigger(a.BUFFER_APPENDING,{type:j,data:de,frag:r,part:null,chunkMeta:i,parent:r.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ht.MAIN)}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=ci.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(Xa.isBuffered(e,r)?t=this.getAppendedFrag(r):Xa.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;const i=this.fragPlaying,s=t.level;(!i||t.sn!==i.sn||i.level!==s)&&(this.fragPlaying=t,this.hls.trigger(a.FRAG_CHANGED,{frag:t}),(!i||i.level!==s)&&this.hls.trigger(a.LEVEL_SWITCHED,{level:s}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,r=this.currentFrag;if(r&&o(t)&&o(r.programDateTime)){const i=r.programDateTime+(t-r.start)*1e3;return new Date(i)}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class ll{static get version(){return"1.5.20"}static isMSESupported(){return Ju()}static isSupported(){return wu()}static getMediaSource(){return Vn()}static get Events(){return a}static get ErrorTypes(){return d}static get ErrorDetails(){return m}static get DefaultConfig(){return ll.defaultConfig?ll.defaultConfig:Pu}static set DefaultConfig(e){ll.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Ur,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,ee(e.debug||!1,"Hls instance");const t=this.config=Cc(ll.DefaultConfig,e);this.userConfig=e,t.progressive&&Jl(t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:x}=t,j=new l(this),q=this.abrController=new r(this),de=this.bufferController=new i(this),Re=this.capLevelController=new s(this),Ye=new x(this),Je=new Ei(this),ct=new Ua(this),_t=t.contentSteeringController,Dt=_t?new _t(this):null,pr=this.levelController=new rl(this,Dt),Tr=new Zs(this),Lr=new bu(this.config),$n=this.streamController=new xu(this,Tr,Lr);Re.setStreamController($n),Ye.setStreamController($n);const dn=[Je,pr,$n];Dt&&dn.splice(1,0,Dt),this.networkControllers=dn;const gi=[q,de,Re,Ye,ct,Tr];this.audioTrackController=this.createController(t.audioTrackController,dn);const Kn=t.audioStreamController;Kn&&dn.push(new Kn(this,Tr,Lr)),this.subtitleTrackController=this.createController(t.subtitleTrackController,dn);const Si=t.subtitleStreamController;Si&&dn.push(new Si(this,Tr,Lr)),this.createController(t.timelineController,gi),Lr.emeController=this.emeController=this.createController(t.emeController,gi),this.cmcdController=this.createController(t.cmcdController,gi),this.latencyController=this.createController(Cs,gi),this.coreComponents=gi,dn.push(j);const ta=j.onErrorOut;typeof ta=="function"&&this.on(a.ERROR,ta,j)}createController(e,t){if(e){const r=new e(this);return t&&t.push(r),r}return null}on(e,t,r=this){this._emitter.on(e,t,r)}once(e,t,r=this){this._emitter.once(e,t,r)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,r=this,i){this._emitter.off(e,t,r,i)}listeners(e){return this._emitter.listeners(e)}emit(e,t,r){return this._emitter.emit(e,t,r)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(r){if(B.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const i=e===a.ERROR;this.trigger(a.ERROR,{type:d.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,fatal:i,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){B.log("destroy"),this.trigger(a.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){B.log("attachMedia"),this._media=e,this.trigger(a.MEDIA_ATTACHING,{media:e})}detachMedia(){B.log("detachMedia"),this.trigger(a.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,r=this.url,i=this.url=se.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,B.log(`loadSource:${i}`),t&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(a.MANIFEST_LOADING,{url:e})}startLoad(e=-1){B.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){B.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){B.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){B.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){B.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){B.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){B.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){B.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){B.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){B.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){B.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(B.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){Fa(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const r=e.length;for(let i=0;i<r;i++)if(e[i].maxBitrate>=t)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let i;if(t===-1&&e!=null&&e.length?i=e.length-1:i=t,r)for(let s=i;s--;){const l=e[s].attrs["HDCP-LEVEL"];if(l&&l<=r)return s}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||t.setSubtitleOption(e),null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}ll.defaultConfig=void 0},16722:function(yn,Wt,g){"use strict";g.d(Wt,{Z:function(){return I}});const xe=n=>typeof n=="object"&&n!=null&&n.nodeType===1,Fe=(n,o)=>(!o||n!=="hidden")&&n!=="visible"&&n!=="clip",se=(n,o)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const L=getComputedStyle(n,null);return Fe(L.overflowY,o)||Fe(L.overflowX,o)||(p=>{const a=(d=>{if(!d.ownerDocument||!d.ownerDocument.defaultView)return null;try{return d.ownerDocument.defaultView.frameElement}catch(m){return null}})(p);return!!a&&(a.clientHeight<p.scrollHeight||a.clientWidth<p.scrollWidth)})(n)}return!1},Me=(n,o,L,p,a,d,m,S)=>d<n&&m>o||d>n&&m<o?0:d<=n&&S<=L||m>=o&&S>=L?d-n-p:m>o&&S<L||d<n&&S>L?m-o+a:0,ie=n=>{const o=n.parentElement;return o==null?n.getRootNode().host||null:o},Y=(n,o)=>{var L,p,a,d;if(typeof document=="undefined")return[];const{scrollMode:m,block:S,inline:$,boundary:F,skipOverflowHiddenElements:H}=o,V=typeof F=="function"?F:st=>st!==F;if(!xe(n))throw new TypeError("Invalid target");const ee=document.scrollingElement||document.documentElement,B=[];let G=n;for(;xe(G)&&V(G);){if(G=ie(G),G===ee){B.push(G);break}G!=null&&G===document.body&&se(G)&&!se(document.documentElement)||G!=null&&se(G,H)&&B.push(G)}const le=(p=(L=window.visualViewport)==null?void 0:L.width)!=null?p:innerWidth,J=(d=(a=window.visualViewport)==null?void 0:a.height)!=null?d:innerHeight,{scrollX:we,scrollY:Ce}=window,{height:Le,width:ae,top:pe,right:T,bottom:Ee,left:oe}=n.getBoundingClientRect(),{top:fe,right:ye,bottom:_,left:N}=(st=>{const nt=window.getComputedStyle(st);return{top:parseFloat(nt.scrollMarginTop)||0,right:parseFloat(nt.scrollMarginRight)||0,bottom:parseFloat(nt.scrollMarginBottom)||0,left:parseFloat(nt.scrollMarginLeft)||0}})(n);let X=S==="start"||S==="nearest"?pe-fe:S==="end"?Ee+_:pe+Le/2-fe+_,he=$==="center"?oe+ae/2-N+ye:$==="end"?T+ye:oe-N;const qe=[];for(let st=0;st<B.length;st++){const nt=B[st],{height:Rt,width:sr,top:Jt,right:We,bottom:Er,left:xr}=nt.getBoundingClientRect();if(m==="if-needed"&&pe>=0&&oe>=0&&Ee<=J&&T<=le&&(nt===ee&&!se(nt)||pe>=Jt&&Ee<=Er&&oe>=xr&&T<=We))return qe;const Wr=getComputedStyle(nt),Cr=parseInt(Wr.borderLeftWidth,10),_e=parseInt(Wr.borderTopWidth,10),kt=parseInt(Wr.borderRightWidth,10),K=parseInt(Wr.borderBottomWidth,10);let y=0,h=0;const D="offsetWidth"in nt?nt.offsetWidth-nt.clientWidth-Cr-kt:0,Ae="offsetHeight"in nt?nt.offsetHeight-nt.clientHeight-_e-K:0,Z="offsetWidth"in nt?nt.offsetWidth===0?0:sr/nt.offsetWidth:0,k="offsetHeight"in nt?nt.offsetHeight===0?0:Rt/nt.offsetHeight:0;if(ee===nt)y=S==="start"?X:S==="end"?X-J:S==="nearest"?Me(Ce,Ce+J,J,_e,K,Ce+X,Ce+X+Le,Le):X-J/2,h=$==="start"?he:$==="center"?he-le/2:$==="end"?he-le:Me(we,we+le,le,Cr,kt,we+he,we+he+ae,ae),y=Math.max(0,y+Ce),h=Math.max(0,h+we);else{y=S==="start"?X-Jt-_e:S==="end"?X-Er+K+Ae:S==="nearest"?Me(Jt,Er,Rt,_e,K+Ae,X,X+Le,Le):X-(Jt+Rt/2)+Ae/2,h=$==="start"?he-xr-Cr:$==="center"?he-(xr+sr/2)+D/2:$==="end"?he-We+kt+D:Me(xr,We,sr,Cr,kt+D,he,he+ae,ae);const{scrollLeft:te,scrollTop:Se}=nt;y=k===0?0:Math.max(0,Math.min(Se+y/k,nt.scrollHeight-Rt/k+Ae)),h=Z===0?0:Math.max(0,Math.min(te+h/Z,nt.scrollWidth-sr/Z+D)),X+=Se-y,he+=te-h}qe.push({el:nt,top:y,left:h})}return qe},O=n=>n===!1?{block:"end",inline:"nearest"}:(o=>o===Object(o)&&Object.keys(o).length!==0)(n)?n:{block:"start",inline:"nearest"};function I(n,o){if(!n.isConnected||!(a=>{let d=a;for(;d&&d.parentNode;){if(d.parentNode===document)return!0;d=d.parentNode instanceof ShadowRoot?d.parentNode.host:d.parentNode}return!1})(n))return;const L=(a=>{const d=window.getComputedStyle(a);return{top:parseFloat(d.scrollMarginTop)||0,right:parseFloat(d.scrollMarginRight)||0,bottom:parseFloat(d.scrollMarginBottom)||0,left:parseFloat(d.scrollMarginLeft)||0}})(n);if((a=>typeof a=="object"&&typeof a.behavior=="function")(o))return o.behavior(Y(n,o));const p=typeof o=="boolean"||o==null?void 0:o.behavior;for(const{el:a,top:d,left:m}of Y(n,O(o))){const S=d-L.top+L.bottom,$=m-L.left+L.right;a.scroll({top:S,left:$,behavior:p})}}}}]);
|
|
|
}()); |