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

1402 lines
3.0 MiB

This file contains invisible Unicode characters!

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

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

!(function(){var sx=Object.defineProperty,ax=Object.defineProperties;var lx=Object.getOwnPropertyDescriptors;var vv=Object.getOwnPropertySymbols;var Cw=Object.prototype.hasOwnProperty,Bw=Object.prototype.propertyIsEnumerable;var Sw=(di,Pn,bt)=>Pn in di?sx(di,Pn,{enumerable:!0,configurable:!0,writable:!0,value:bt}):di[Pn]=bt,xg=(di,Pn)=>{for(var bt in Pn||(Pn={}))Cw.call(Pn,bt)&&Sw(di,bt,Pn[bt]);if(vv)for(var bt of vv(Pn))Bw.call(Pn,bt)&&Sw(di,bt,Pn[bt]);return di},Iy=(di,Pn)=>ax(di,lx(Pn));var Pw=(di,Pn)=>{var bt={};for(var Lt in di)Cw.call(di,Lt)&&Pn.indexOf(Lt)<0&&(bt[Lt]=di[Lt]);if(di!=null&&vv)for(var Lt of vv(di))Pn.indexOf(Lt)<0&&Bw.call(di,Lt)&&(bt[Lt]=di[Lt]);return bt};(self.webpackChunk=self.webpackChunk||[]).push([[342],{66720:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},35323:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},19155:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},10402:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},72295:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},93343:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},80205:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},61441:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},30631:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},43971:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},58358:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},44757:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},16537:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},77042:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},5527:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},86902:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},53878:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},21970:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},83281:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Ct,Wt){return ge.createElement(re.Z,(0,Lt.Z)({},Ct,{ref:Wt,icon:De}))},Et=ge.forwardRef(le),Tt=Et},79906:function(){"use strict"},93938:function(di,Pn){"use strict";Pn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function di(wt,et,tt,lt){tt===void 0&&(tt=0),lt===void 0&&(lt=1/0),this._name=wt,this._defaultValue=et,this._minimum=tt,this._maximum=lt}Object.defineProperty(di.prototype,"name",{get:function(){return this._name},set:function(wt){if(typeof wt!="string"||wt==="")throw new Error("Shape name must be a valid string.");this._name=wt}}),Object.defineProperty(di.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(wt){if(typeof wt!="number"||isNaN(wt))throw new Error("The default value must be a real number, not: "+wt);this._defaultValue=wt}}),Object.defineProperty(di.prototype,"minimum",{get:function(){return this._minimum},set:function(wt){if(typeof wt!="number"||isNaN(wt))throw new Error("Minimum must be a real number, not: "+wt);this._minimum=wt}}),Object.defineProperty(di.prototype,"maximum",{get:function(){return this._maximum},set:function(wt){if(typeof wt!="number"||isNaN(wt))throw new Error("Maximum must be a real number, not: "+wt);this._maximum=wt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(wt,et){var tt=go.Shape._FigureParameters[wt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(wt,et,tt){if(!(tt instanceof di))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValue<tt.minimum||tt.defaultValue>tt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var lt=go.Shape._FigureParameters[wt];lt||(lt=[],go.Shape._FigureParameters[wt]=lt),lt[et]=tt};var Pn=[];function bt(wt,et){var tt=Pn.pop();return tt===void 0?new go.Point(wt,et):(tt.x=wt,tt.y=et,tt)}function Lt(){var wt=Pn.pop();return wt===void 0?new go.Point:wt}function ge(wt){Pn.push(wt)}function se(wt,et,tt,lt,rt,ht,dt,yt,Mt){Mt||(Mt=new go.Point);var jt=wt-tt,Rt=rt-dt,ae=NaN,he=NaN;if(jt===0)if(Rt===0)wt===tt&&(ae=wt,he=et);else{var pe=(ht-yt)/Rt,Te=ht-pe*rt;ae=wt,he=pe*ae+Te}else if(Rt===0){var ne=(et-lt)/jt,Ke=et-ne*wt;ae=rt,he=ne*ae+Ke}else{var ne=(et-lt)/jt,pe=(ht-yt)/Rt,Ke=et-ne*wt,Te=ht-pe*rt;ae=(Te-Ke)/(ne-pe),he=ne*ae+Ke}return Mt.x=ae,Mt.y=he,Mt}function De(wt,et,tt,lt,rt,ht,dt,yt,Mt,jt,Rt,ae,he,pe){var Te=1-Mt,ne=Mt,Ke=wt*Te+tt*ne,Vt=et*Te+lt*ne,$e=tt*Te+rt*ne,Ge=lt*Te+ht*ne,Oe=rt*Te+dt*ne,Ve=ht*Te+yt*ne,_e=Ke*Te+$e*ne,xe=Vt*Te+Ge*ne,ie=$e*Te+Oe*ne,be=Ge*Te+Ve*ne,Fn=_e*Te+ie*ne,Mn=xe*Te+be*ne;jt.x=Ke,jt.y=Vt,Rt.x=_e,Rt.y=xe,ae.x=Fn,ae.y=Mn,he.x=ie,he.y=be,pe.x=Oe,pe.y=Ve}var re=new go.Spot(.156,.156),le=new go.Spot(.844,.844),Et=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new di("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=5),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*Et,ht=new go.Geometry().add(new go.PathFigure(lt,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-lt,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)).add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)).add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,tt-rt,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,lt,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,rt,tt,0,tt-rt)).add(new go.PathSegment(go.PathSegment.Line,0,lt)).add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()));return rt>1&&(ht.spot1=new go.Spot(0,0,rt,rt),ht.spot2=new go.Spot(1,1,-rt,-rt)),ht}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(wt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=tt/2,lt.endX=et,lt.endY=tt/2,lt}),go.Shape.defineFigureGenerator("LineV",function(wt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et/2,lt.startY=0,lt.endX=et/2,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(wt,et,tt){var lt=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(lt*et,(1-lt)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(wt,et,tt){var lt=et/2,rt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,lt,lt,lt,lt).close()));return rt.spot1=re,rt.spot2=le,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(wt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=0,lt.startY=0,lt.endX=et,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Line2",function(wt,et,tt){var lt=new go.Geometry(go.Geometry.Line);return lt.startX=et,lt.startY=0,lt.endX=0,lt.endY=tt,lt}),go.Shape.defineFigureGenerator("Curve1",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Et*et,0,et,(1-Et)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,Et*tt,(1-Et)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,Et*tt,Et*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-Et)*et,0,0,(1-Et)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new di("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=.1:lt<-1?lt=-1:lt>1&&(lt=1);var rt=Math.abs(lt)*et;if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new di("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et:lt>et&&(lt=et);var rt=Math.abs(lt);if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.setFigureParameter("Trapezoid1",0,new di("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=.2:lt<.5?lt=-.5:lt>.5&&(lt=.5);var rt=Math.abs(lt)*et;if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new di("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=20:lt<-et?lt=-et/2:lt>et&&(lt=et/2);var rt=Math.abs(lt);if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}}),go.Shape.setFigureParameter("ManualOperation",0,new di("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et/2:lt>et&&(lt=et/2);var rt=Math.abs(lt);if(lt===0){var ht=new go.Geometry(go.Geometry.Rectangle);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=tt,ht}else{var ht=new go.Geometry;return lt>0?ht.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())):ht.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),rt<et/2&&ht.setSpots(rt/et,0,(et-rt)/et,1),ht}});var Tt=[];function ee(){var wt=Tt.pop();return wt===void 0?[]:wt}function Ct(wt){wt.length=0,Tt.push(wt)}function Wt(wt){for(var et=ee(),tt=.5,lt=.5,rt=Math.PI*1.5,ht=0,dt=0;dt<wt;dt++)ht=2*Math.PI/wt*dt+rt,et[dt]=new go.Point(lt+tt*Math.cos(ht),lt+tt*Math.sin(ht));return et.push(et[0]),et}function Gt(wt){var et=Jt(wt),tt=ee();tt[0]=et[0];for(var lt=1,rt=1;lt<et.length;lt+=2,rt+=3)tt[rt]=et[lt],tt[rt+1]=et[lt],tt[rt+2]=et[lt+1];return Ct(et),tt}function Jt(wt){for(var et=Wt(wt),tt=ee(),lt=Math.floor(et.length/2),rt=et.length-1,ht=wt%2===0?2:1,dt=0;dt<rt;dt++){var yt=et[dt],Mt=et[dt+1],jt=et[(lt+dt-1)%rt],Rt=et[(lt+dt+ht)%rt];tt[dt*2]=yt,tt[dt*2+1]=se(yt.x,yt.y,jt.x,jt.y,Mt.x,Mt.y,Rt.x,Rt.y,new go.Point)}return tt[tt.length]=tt[0],Ct(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(wt,et,tt){var lt=Wt(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<5;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.2,.22),rt.spot2=new go.Spot(.8,.9),rt}),go.Shape.defineFigureGenerator("Hexagon",function(wt,et,tt){var lt=Wt(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<6;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.07,.25),rt.spot2=new go.Spot(.93,.75),rt}),go.Shape.defineFigureGenerator("Heptagon",function(wt,et,tt){var lt=Wt(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<7;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.2,.15),rt.spot2=new go.Spot(.8,.85),rt}),go.Shape.defineFigureGenerator("Octagon",function(wt,et,tt){var lt=Wt(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<8;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.15,.15),rt.spot2=new go.Spot(.85,.85),rt}),go.Shape.defineFigureGenerator("Nonagon",function(wt,et,tt){var lt=Wt(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<9;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.17,.13),rt.spot2=new go.Spot(.82,.82),rt}),go.Shape.defineFigureGenerator("Decagon",function(wt,et,tt){var lt=Wt(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<10;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("Dodecagon",function(wt,et,tt){var lt=Wt(12),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<12;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("FivePointedStar",function(wt,et,tt){var lt=Jt(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<10;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.266,.333),rt.spot2=new go.Spot(.733,.733),rt}),go.Shape.defineFigureGenerator("SixPointedStar",function(wt,et,tt){var lt=Jt(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<12;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.17,.25),rt.spot2=new go.Spot(.83,.75),rt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(wt,et,tt){var lt=Jt(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<14;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("EightPointedStar",function(wt,et,tt){var lt=Jt(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<16;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.25,.25),rt.spot2=new go.Spot(.75,.75),rt}),go.Shape.defineFigureGenerator("NinePointedStar",function(wt,et,tt){var lt=Jt(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<18;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("TenPointedStar",function(wt,et,tt){var lt=Jt(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<20;dt++)ht.add(new go.PathSegment(go.PathSegment.Line,lt[dt].x*et,lt[dt].y*tt));return ht.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Ct(lt),rt.spot1=new go.Spot(.281,.261),rt.spot2=new go.Spot(.723,.748),rt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(wt,et,tt){var lt=Gt(5),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),Ct(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(wt,et,tt){var lt=Gt(6),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),Ct(lt),rt.spot1=new go.Spot(.17,.222),rt.spot2=new go.Spot(.833,.777),rt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(wt,et,tt){var lt=Gt(7),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),Ct(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(wt,et,tt){var lt=Gt(8),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),Ct(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(wt,et,tt){var lt=Gt(9),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),Ct(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(wt,et,tt){var lt=Gt(10),rt=new go.Geometry,ht=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ht);for(var dt=1;dt<lt.length;dt+=3)ht.add(new go.PathSegment(go.PathSegment.Bezier,lt[dt+2].x*et,lt[dt+2].y*tt,lt[dt].x*et,lt[dt].y*tt,lt[dt+1].x*et,lt[dt+1].y*tt));return ht.segments.last().close(),Ct(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new di("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new di("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(wt,et,tt){var lt=wt?wt.parameter1:NaN,rt=wt?wt.parameter2:NaN;isNaN(lt)&&(lt=8),isNaN(rt)&&(rt=8);var ht=new go.Geometry,dt=new go.PathFigure(0,0,!0);return ht.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt<et/2&&rt<tt/2&&(dt.add(new go.PathSegment(go.PathSegment.Move,lt,rt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,rt).close())),ht.setSpots(0,0,1,1,lt,rt,-lt,-rt),ht}),go.Shape.setFigureParameter("Ring",0,new di("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=8);var rt=et/2,ht=new go.Geometry,dt=new go.PathFigure(et,et/2,!0);ht.add(dt),dt.add(new go.PathSegment(go.PathSegment.Arc,0,360,rt,rt,rt,rt).close());var yt=Math.max(rt-lt,0);return yt>0&&(dt.add(new go.PathSegment(go.PathSegment.Move,et/2+yt,et/2)),dt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,yt,yt).close())),ht.spot1=re,ht.spot2=le,ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Cloud",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*tt,-.09239631*et,.07836421*tt,.1406031*et,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*tt,.2450511*et,-.00697547*tt,.3776197*et,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*tt,.4539471*et,0,.6066018*et,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*tt,.6914277*et,-.01904177*tt,.8921095*et,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*tt,1.036446*et,.04105738*tt,1.020377*et,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*tt,1.04448*et,.360238*tt,.992256*et,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*tt,1.032337*et,.5771781*tt,1.018411*et,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*tt,1.028411*et,.9571472*tt,.8556702*et,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*tt,.7431877*et,1.009325*tt,.5624123*et,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*tt,.4820677*et,1.031761*tt,.3030112*et,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*tt,.2329994*et,1.01518*tt,.03213784*et,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*tt,-.02812061*et,.9032597*tt,-.01205169*et,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*tt,-.01812061*et,.6089503*tt,-.00606892*et,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*tt,-.01606892*et,.3892545*tt,-.01205169*et,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(wt,et,tt){var lt=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(lt*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close())).setSpots(lt/2,lt/2,1-lt/2,1-lt/2)}),go.Shape.setFigureParameter("Pie",0,new di("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new di("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(wt,et,tt){var lt=wt?wt.parameter1:NaN,rt=wt?wt.parameter2:NaN;isNaN(lt)&&(lt=0),isNaN(rt)&&(rt=315);var ht=lt%360;ht<0&&(ht+=360);var dt=rt%360,yt=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(yt,yt).add(new go.PathSegment(go.PathSegment.Arc,ht,dt,yt,yt,yt,yt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(wt,et,tt){var lt=Et/Math.SQRT2*.5,rt=Math.SQRT2/2,ht=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ht*tt,et,(1-lt)*tt,(rt+lt)*et,(ht+lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new di("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30);var rt=Math.min(lt,et)/2,ht=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ht-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ht+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new di("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=Math.min(lt,et)/2,ht=et/2,dt=tt/2;return new go.Geometry().add(new go.PathFigure(ht-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ht+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,et,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,ht+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt+rt)).add(new go.PathSegment(go.PathSegment.Line,0,dt-rt)).add(new go.PathSegment(go.PathSegment.Line,ht-rt,dt-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new di("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;if((isNaN(lt)||lt<0)&&(lt=30),et===0||tt===0){var rt=new go.Geometry(go.Geometry.Rectangle);return rt.startX=0,rt.startY=0,rt.endX=et,rt.endY=tt,rt}else{var ht=et/2,dt=tt/2,yt=Math.atan2(tt,et),Mt=lt-Math.min(Math.cos(yt)*lt/2,ht),jt=lt-Math.min(Math.sin(yt)*lt/2,dt),rt=new go.Geometry,Rt=new go.PathFigure(Mt,0,!0);return rt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,ht,.2*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,et-Mt,0)),Rt.add(new go.PathSegment(go.PathSegment.Line,et,jt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,dt)),Rt.add(new go.PathSegment(go.PathSegment.Line,et,tt-jt)),Rt.add(new go.PathSegment(go.PathSegment.Line,et-Mt,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,ht,.8*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,Mt,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,tt-jt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,jt).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new di("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=new go.Geometry,ht=new go.PathFigure(.1*et,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new di("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ht=new go.PathFigure(0,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,(1-lt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new di("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.5);var rt=new go.Geometry,ht=new go.PathFigure(0,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-lt)*et,.25*tt,Math.abs(1-lt)*et,.75*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,Et*et,0,et,(.5-Et/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+Et/2)*tt,Et*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,0,et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*tt,.5*et,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*et,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.5*tt,.9*et,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.6*et,.2*tt,et,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*tt,et,.8*tt,.6*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,.5*et,.75*tt,.55*et,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*tt,.45*et,.95*tt,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*et,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*tt,0,.25*tt,.4*et,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.4*et,.6*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,tt,.5*et,.75*tt,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*tt,.55*et,.95*tt,.5*et,.75*tt));var ht=.2,dt=.3,yt=0,Mt=ht*Et;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ht+yt)*tt,(.5-ht+dt)*et,(.5+Mt+yt)*tt,(.5-Mt+dt)*et,(.5+ht+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ht+dt)*et,(.5+yt)*tt,(.5+Mt+dt)*et,(.5+ht+yt)*tt,(.5+ht+dt)*et,(.5+Mt+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+yt)*tt,(1-.5+ht+dt)*et,(.5-Mt+yt)*tt,(.5+Mt+dt)*et,(.5-ht+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-Mt+dt)*et,(.5-ht+yt)*tt,(.5-ht+dt+.05)*et,(.5-Mt+yt-.02)*tt)),ht=.2,dt=0,yt=-.3,Mt=ht*Et,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ht+dt)*et,(.5+yt)*tt,(.5+Mt+dt)*et,(.5+ht+yt)*tt,(.5+ht+dt)*et,(.5+Mt+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+yt)*tt,(1-.5+ht+dt)*et,(.5-Mt+yt)*tt,(.5+Mt+dt)*et,(.5-ht+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ht+dt)*et,(.5+yt)*tt,(.5-Mt+dt)*et,(.5-ht+yt)*tt,(.5-ht+dt)*et,(.5-Mt+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Mt+dt)*et,(.5+ht+yt)*tt,(.5-ht+dt)*et,(.5+Mt+yt)*tt,(.5-Mt+dt)*et,(.5+ht+yt)*tt)),ht=.2,dt=-.3,yt=0,Mt=ht*Et,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5-ht+yt)*tt,(1-.5+ht+dt-.05)*et,(.5-Mt+yt-.02)*tt,(.5+Mt+dt)*et,(.5-ht+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ht+dt)*et,(.5+yt)*tt,(.5-Mt+dt)*et,(.5-ht+yt)*tt,(.5-ht+dt)*et,(.5-Mt+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+dt)*et,(.5+ht+yt)*tt,(.5-ht+dt)*et,(.5+Mt+yt)*tt,(.5-Mt+dt)*et,(.5+ht+yt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+Mt+dt)*et,(.5+ht+yt)*tt,(.5+ht+dt)*et,(.5+Mt+yt)*tt).close()),lt.setSpots(.06,.33,.93,.68),lt}),go.Shape.defineFigureGenerator("YinYang",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.5,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ht=.1,dt=.5,yt=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(dt+ht)*et,yt*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*dt,tt*yt,ht*et,ht*et).close()),rt=new go.PathFigure(et*.5,0,!1),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),yt=.75,rt=new go.PathFigure((dt+ht)*et,yt*tt,!0),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*dt,tt*yt,ht*et,ht*et).close()),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Peace",function(wt,et,tt){var lt=.8535533905932737,rt=.5*et,ht=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ht,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ht)).add(new go.PathSegment(go.PathSegment.Line,lt*et,lt*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=.5,dt=.5,yt=.5,Mt=new go.PathFigure(dt*et,(yt-ht)*tt);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,yt*tt,(dt-rt)*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+ht)*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,yt*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-ht)*tt,(dt+ht)*et,(yt-rt)*tt,(dt+rt)*et,(yt-ht)*tt)),ht=.4,rt=Et*.4;var jt=Lt(),Rt=Lt(),ae=Lt(),he=Lt();De(dt,yt-ht,dt+rt,yt-ht,dt+ht,yt-rt,dt+ht,yt,.42,jt,Rt,ae,he,he);var pe=Lt(),Te=Lt(),ne=Lt();De(dt,yt-ht,dt+rt,yt-ht,dt+ht,yt-rt,dt+ht,yt,.58,he,he,ne,pe,Te);var Ke=Lt(),Vt=Lt(),$e=Lt();De(dt,yt+ht,dt-rt,yt+ht,dt-ht,yt+rt,dt-ht,yt,.42,Ke,Vt,$e,he,he);var Ge=Lt(),Oe=Lt(),Ve=Lt();return De(dt,yt+ht,dt-rt,yt+ht,dt-ht,yt+rt,dt-ht,yt,.58,he,he,Ve,Ge,Oe),Mt.add(new go.PathSegment(go.PathSegment.Move,Ve.x*et,Ve.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,yt*tt,Ge.x*et,Ge.y*tt,Oe.x*et,Oe.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*et,ae.y*tt,jt.x*et,jt.y*tt,Rt.x*et,Rt.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,Ve.x*et,Ve.y*tt).close()),Mt.add(new go.PathSegment(go.PathSegment.Move,$e.x*et,$e.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,ne.x*et,ne.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,yt*tt,pe.x*et,pe.y*tt,Te.x*et,Te.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*et,$e.y*tt,Ke.x*et,Ke.y*tt,Vt.x*et,Vt.y*tt).close()),ge(jt),ge(Rt),ge(ae),ge(he),ge(pe),ge(Te),ge(ne),ge(Ke),ge(Vt),ge($e),ge(Ge),ge(Oe),ge(Ve),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Fragile",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*tt,et,.25*tt,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new di("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30),lt>et&&(lt=et);var rt=(et-lt)/2,ht=rt+lt;return new go.Geometry().add(new go.PathFigure(ht,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.4,ht=.4,dt=.5,yt=.5,Mt=Lt(),jt=Lt(),Rt=Lt(),ae=Lt(),he=new go.PathFigure((dt-ht)*et,yt*tt,!1);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt)),De(dt,yt-ht,dt+rt,yt-ht,dt+ht,yt-rt,dt+ht,yt,.44,Rt,ae,jt,Mt,Mt),he.add(new go.PathSegment(go.PathSegment.Bezier,jt.x*et,jt.y*tt,Rt.x*et,Rt.y*tt,ae.x*et,ae.y*tt));var pe=bt(jt.x,jt.y);De(dt,yt-ht,dt+rt,yt-ht,dt+ht,yt-rt,dt+ht,yt,.56,Mt,Mt,jt,Rt,ae);var Te=bt(jt.x,jt.y);he.add(new go.PathSegment(go.PathSegment.Line,(pe.x*.1+.95*.9)*et,pe.y*.1*tt)),he.add(new go.PathSegment(go.PathSegment.Line,.85*et,pe.y*.1*tt)),he.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),he.add(new go.PathSegment(go.PathSegment.Line,et,0)),he.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),he.add(new go.PathSegment(go.PathSegment.Line,(Te.x*.1+.9)*et,.15*tt)),he.add(new go.PathSegment(go.PathSegment.Line,(Te.x*.1+.9)*et,(Te.y*.1+.05*.9)*tt)),he.add(new go.PathSegment(go.PathSegment.Line,Te.x*et,Te.y*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,yt*tt,Rt.x*et,Rt.y*tt,ae.x*et,ae.y*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,yt*tt,(dt-rt)*et,(yt+ht)*tt,(dt-ht)*et,(yt+rt)*tt)),ht=.35,rt=Et*.35;var ne=new go.PathFigure(dt*et,(yt-ht)*tt,!1);lt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,yt*tt,(dt-rt)*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+ht)*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,yt*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-ht)*tt,(dt+ht)*et,(yt-rt)*tt,(dt+rt)*et,(yt-ht)*tt));var Ke=new go.PathFigure((dt-ht)*et,yt*tt,!1);return lt.add(Ke),ge(Mt),ge(jt),ge(Rt),ge(ae),ge(pe),ge(Te),lt.spot1=new go.Spot(.202,.257),lt.spot2=new go.Spot(.792,.739),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("GenderFemale",function(wt,et,tt){var lt=new go.Geometry,rt=.375,ht=0,dt=-.125,yt=rt*Et,Mt=new go.PathFigure((.525+ht)*et,(.5+rt+dt)*tt,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ht)*et,(.5+dt)*tt,(.5+yt+ht)*et,(.5+rt+dt)*tt,(.5+rt+ht)*et,(.5+yt+dt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5-rt+dt)*tt,(1-.5+rt+ht)*et,(.5-yt+dt)*tt,(.5+yt+ht)*et,(.5-rt+dt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-yt+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-yt+dt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ht)*et,(.5+rt+dt)*tt,(.5-rt+ht)*et,(.5+yt+dt)*tt,(.5-yt+ht)*et,(.5+rt+dt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ht=0,dt=-.125,yt=rt*Et;var Mt=new go.PathFigure((1-.5+rt+ht)*et,(.5+dt)*tt,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5+rt+dt)*tt,(.5+rt+ht)*et,(.5+yt+dt)*tt,(.5+yt+ht)*et,(.5+rt+dt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-yt+ht)*et,(.5+rt+dt)*tt,(.5-rt+ht)*et,(.5+yt+dt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-yt+dt)*tt,(.5-yt+ht)*et,(.5-rt+dt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ht)*et,(.5+dt)*tt,(.5+yt+ht)*et,(.5-rt+dt)*tt,(1-.5+rt+ht)*et,(.5-yt+dt)*tt));var Mt=new go.PathFigure((.525+ht)*et,(.5+rt+dt)*tt,!1);return lt.add(Mt),lt.spot1=new go.Spot(.232,.136),lt.spot2=new go.Spot(.682,.611),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicImplies",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;return isNaN(lt)&&(lt=.2),new go.Geometry().add(new go.PathFigure((1-lt)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,lt*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,lt*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(wt,et,tt){var lt=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*tt,.5*et,.5*tt)));return lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("LogicTruth",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(wt,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(wt,et,tt){var lt=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,lt*et,lt*tt,lt*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new di("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new di("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=.3);var ht=(1-lt)*et,dt=(.5-rt/2)*tt,yt=(.5+rt/2)*tt,Mt=new go.Geometry,jt=new go.PathFigure(0,dt,!0);Mt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,ht,dt)),jt.add(new go.PathSegment(go.PathSegment.Line,ht,0)),jt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,ht,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,ht,yt)),jt.add(new go.PathSegment(go.PathSegment.Line,0,yt).close()),Mt.spot1=new go.Spot(0,dt/tt);var Rt=se(0,yt/tt,1,yt/tt,ht/et,1,1,.5,Lt());return Mt.spot2=new go.Spot(Rt.x,Rt.y),ge(Rt),Mt}),go.Shape.setFigureParameter("Arrow2",0,new di("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new di("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=30),lt>et&&(lt=et);var rt=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ht=et-lt,dt=(tt-rt)/2,yt=dt+rt,Mt=new go.Geometry,jt=new go.PathFigure(0,dt,!0);Mt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,ht,dt)),jt.add(new go.PathSegment(go.PathSegment.Line,ht,0)),jt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,ht,tt)),jt.add(new go.PathSegment(go.PathSegment.Line,ht,yt)),jt.add(new go.PathSegment(go.PathSegment.Line,0,yt).close()),Mt.spot1=new go.Spot(0,dt/tt);var Rt=se(0,yt/tt,1,yt/tt,ht/et,1,1,.5,Lt());return Mt.spot2=new go.Spot(Rt.x,Rt.y),ge(Rt),Mt}),go.Shape.defineFigureGenerator("Chevron",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("DoubleArrow",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),lt}),go.Shape.setFigureParameter("DoubleEndArrow",0,new di("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,yt=new go.PathFigure(et,.5*tt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Mt=se(0,.5,.3,0,0,rt/tt,.1,rt/tt,Lt());return dt.spot1=new go.Spot(Mt.x,Mt.y),Mt=se(.7,1,1,.5,0,ht/tt,1,ht/tt,Mt),dt.spot2=new go.Spot(Mt.x,Mt.y),ge(Mt),dt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new di("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new di("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=100);var ht=(tt-lt)/2,dt=ht+lt,yt=(tt-rt)/2,Mt=yt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ht=(tt-lt)/2,dt=ht+lt,yt=0,Mt=tt):(ht=0,dt=tt,yt=0,Mt=tt));var jt=new go.Geometry,Rt=new go.PathFigure(et,.5*tt,!0);jt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Mt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,dt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,Mt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,yt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ht)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,yt).close());var ae=se(0,.5,.3,yt/tt,0,ht/tt,1,ht/tt,Lt());return jt.spot1=new go.Spot(ae.x,ae.y),ae=se(.7,Mt/tt,1,.5,0,dt/tt,1,dt/tt,ae),jt.spot2=new go.Spot(ae.x,ae.y),ge(ae),jt}),go.Shape.setFigureParameter("IBeamArrow",0,new di("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,yt=new go.PathFigure(et,.5*tt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(0,rt/tt);var Mt=se(.7,1,1,.5,0,ht/tt,1,ht/tt,Lt());return dt.spot2=new go.Spot(Mt.x,Mt.y),ge(Mt),dt}),go.Shape.setFigureParameter("IBeamArrow2",0,new di("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new di("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=100);var ht=(tt-lt)/2,dt=ht+lt,yt=(tt-rt)/2,Mt=yt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ht=(tt-lt)/2,dt=ht+lt,yt=0,Mt=tt):(ht=0,dt=tt,yt=0,Mt=tt));var jt=new go.Geometry,Rt=new go.PathFigure(et,.5*tt,!0);jt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,Mt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,dt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,dt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,Mt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,Mt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,yt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,yt)),Rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ht)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),Rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,yt).close()),jt.spot1=new go.Spot(0,ht/tt);var ae=se(.7,Mt/tt,1,.5,0,dt/tt,1,dt/tt,Lt());return jt.spot2=new go.Spot(ae.x,ae.y),ge(ae),jt}),go.Shape.setFigureParameter("Pointer",0,new di("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.1);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(lt,.35);var dt=se(.2,.65,1,.65,0,1,1,.5,Lt());return rt.spot2=new go.Spot(dt.x,dt.y),ge(dt),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new di("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt.spot1=new go.Spot(lt,.35);var dt=se(0,.65,1,.65,0,1,1,.5,Lt());return rt.spot2=new go.Spot(dt.x,dt.y),ge(dt),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new di("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.4);var rt=(.5-lt/2)*tt,ht=(.5+lt/2)*tt,dt=new go.Geometry,yt=new go.PathFigure(et,.5*tt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,.3);var Mt=se(.7,1,1,.5,0,ht/tt,1,ht/tt,Lt());return dt.spot2=new go.Spot(Mt.x,Mt.y),ge(Mt),dt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new di("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=50);var rt=(tt-lt)/2,ht=rt+lt;lt>tt&&(rt=0,ht=tt);var dt=new go.Geometry,yt=new go.PathFigure(et,.5*tt,!0);dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),dt.spot1=new go.Spot(.2,rt/tt);var Mt=se(.7,1,1,.5,0,ht/tt,1,ht/tt,Lt());return dt.spot2=new go.Spot(Mt.x,Mt.y),ge(Mt),dt}),go.Shape.setFigureParameter("SquareArrow",0,new di("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.7);var rt=new go.Geometry,ht=new go.PathFigure(et,.5*tt,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),rt.spot1=go.Spot.TopLeft,rt.spot2=new go.Spot(lt,1),rt}),go.Shape.defineFigureGenerator("Cone1",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=Et*.1,dt=new go.PathFigure(0,.9*tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt).close()),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.97),lt}),go.Shape.defineFigureGenerator("Cone2",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.9*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,tt,.85/.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var ht=new go.PathFigure(0,.9*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.82),lt}),go.Shape.defineFigureGenerator("Cube1",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ht=new go.PathFigure(.5*et,tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.5,.85),lt}),go.Shape.defineFigureGenerator("Cube2",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.3*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ht=new go.PathFigure(0,.3*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(.7,1),lt}),go.Shape.defineFigureGenerator("Cylinder1",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ht=Et*.5,dt=new go.PathFigure(0,lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Et*lt,(.5-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,lt,(.5+ht)*et,0,1*et,Et*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-Et*lt,(.5+ht)*et,1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ht)*et,1*tt,0,tt-Et*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt));var yt=new go.PathFigure(et,lt,!1);return rt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*lt,1*et,2*lt-Et*lt,(.5+ht)*et,2*lt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt,(.5-ht)*et,2*lt,0,2*lt-Et*lt)),rt.spot1=new go.Spot(0,0,0,2*lt),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ht=Et*.5,dt=new go.PathFigure(0,tt-lt,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Et*lt,(.5-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,(.5+ht)*et,0,et,Et*lt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-Et*lt,(.5+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ht)*et,tt,0,tt-Et*lt));var yt=new go.PathFigure(0,tt-lt,!1);return rt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*lt,0,tt-lt-Et*lt,(.5-ht)*et,tt-2*lt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-lt,(.5+ht)*et,tt-2*lt,et,tt-lt-Et*lt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*lt),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ht=Et*.5,dt=new go.PathFigure(lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Et*lt,0,et,(.5-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ht)*tt,et-Et*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Et*lt,tt,0,(.5+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ht)*tt,Et*lt,0));var yt=new go.PathFigure(lt,0,!1);return rt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,2*lt,.5*tt,lt+Et*lt,0,2*lt,(.5-ht)*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,lt,tt,2*lt,(.5+ht)*tt,lt+Et*lt,tt)),rt.spot1=new go.Spot(0,0,2*lt,0),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder4",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ht=Et*.5,dt=new go.PathFigure(et-lt,0,!0);rt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-Et*lt,0,et,(.5-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ht)*tt,et-Et*lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,Et*lt,tt,0,(.5+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ht)*tt,Et*lt,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0));var yt=new go.PathFigure(et-lt,0,!1);return rt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*lt,.5*tt,et-lt-Et*lt,0,et-2*lt,(.5-ht)*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et-2*lt,(.5+ht)*tt,et-lt-Et*lt,tt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,-2*lt,0),rt}),go.Shape.defineFigureGenerator("Prism1",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,.25*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ht=new go.PathFigure(.25*et,.25*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.408,.172),lt.spot2=new go.Spot(.833,.662),lt}),go.Shape.defineFigureGenerator("Prism2",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ht=new go.PathFigure(0,tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("Pyramid1",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var ht=new go.PathFigure(.5*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Pyramid2",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ht=new go.PathFigure(.5*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),lt.spot1=new go.Spot(.25,.367),lt.spot2=new go.Spot(.75,.875),lt}),go.Shape.defineFigureGenerator("Actor",function(wt,et,tt){var lt=new go.Geometry,rt=.2,ht=.1,dt=Et*rt,yt=Et*ht,Mt=.5,jt=.1,Rt=new go.PathFigure(Mt*et,(jt+ht)*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-rt)*et,jt*tt,(Mt-dt)*et,(jt+ht)*tt,(Mt-rt)*et,(jt+yt)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt-ht)*tt,(Mt-rt)*et,(jt-yt)*tt,(Mt-dt)*et,(jt-ht)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+rt)*et,jt*tt,(Mt+dt)*et,(jt-ht)*tt,(Mt+rt)*et,(jt-yt)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt+ht)*tt,(Mt+rt)*et,(jt+yt)*tt,(Mt+dt)*et,(jt+ht)*tt));var ae=.05,he=Et*ae;Mt=.05,jt=.25;var pe=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),Mt=.95,jt=.25,pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+ae)*et,jt*tt,(Mt+he)*et,(jt-ae)*tt,(Mt+ae)*et,(jt-he)*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),ae=.025,he=Et*ae,Mt=.825,jt=.35,pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt-ae)*tt,(Mt+ae)*et,(jt-he)*tt,(Mt+he)*et,(jt-ae)*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ae)*et,jt*tt,(Mt-he)*et,(jt-ae)*tt,(Mt-ae)*et,(jt-he)*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),ae=.05,he=Et*ae,Mt=.5,jt=.7,pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt-ae)*tt,(Mt+ae)*et,(jt-he)*tt,(Mt+he)*et,(jt-ae)*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ae)*et,jt*tt,(Mt-he)*et,(jt-ae)*tt,(Mt-ae)*et,(jt-he)*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),ae=.025,he=Et*ae,Mt=.175,jt=.35,pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt-ae)*tt,(Mt+ae)*et,(jt-he)*tt,(Mt+he)*et,(jt-ae)*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ae)*et,jt*tt,(Mt-he)*et,(jt-ae)*tt,(Mt-ae)*et,(jt-he)*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),ae=.05,he=Et*ae,Mt=.05,jt=.25,pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt-ae)*tt,(Mt-ae)*et,(jt-he)*tt,(Mt-he)*et,(jt-ae)*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),lt.spot1=new go.Spot(.2,.2),lt.spot2=new go.Spot(.8,.65),lt}),go.Shape.setFigureParameter("Card",0,new di("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ht=new go.PathFigure(et,0,!0);return rt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,lt*et,0).close()),rt.spot1=new go.Spot(0,lt),rt.spot2=go.Spot.BottomRight,rt}),go.Shape.defineFigureGenerator("Collate",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,.5*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt));var ht=new go.PathFigure(.5*et,.5*tt,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,.25),lt}),go.Shape.defineFigureGenerator("CreateRequest",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(0,rt*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("Database",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=Et*.1,dt=new go.PathFigure(et,.1*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ht)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ht)*tt));var yt=new go.PathFigure(et,.1*tt,!1);return lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ht)*tt,(.5+rt)*et,.2*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ht)*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ht)*tt,(.5+rt)*et,.3*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ht)*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ht)*tt,(.5+rt)*et,.4*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ht)*tt)),lt.spot1=new go.Spot(0,.4),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("DataStorage",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*tt,.25*et,.1*tt).close()),lt.spot1=new go.Spot(.226,0),lt.spot2=new go.Spot(.81,1),lt}),go.Shape.defineFigureGenerator("DiskStorage",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=Et*.1,dt=new go.PathFigure(et,.1*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ht)*tt,(.5+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ht)*tt,(.5-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ht)*tt));var yt=new go.PathFigure(et,.1*tt,!1);return lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ht)*tt,(.5+rt)*et,.2*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ht)*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ht)*tt,(.5+rt)*et,.3*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ht)*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("Display",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),lt.spot1=new go.Spot(.25,0),lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("DividedEvent",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ht=Et*.2,dt=new go.PathFigure(0,.2*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ht)*tt,(.2-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ht)*et,0,et,(.2-ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ht)*tt,(.8+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ht)*et,tt,0,(.8+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var yt=new go.PathFigure(0,rt*tt,!1);return lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("DividedProcess",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(0,rt*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("Document",function(wt,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("ExternalOrganization",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("ExternalProcess",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ht=new go.PathFigure(.1*et,.4*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("File",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ht=new go.PathFigure(.75*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Interrupt",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,.5*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt));var ht=new go.PathFigure(et,.5*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt));var dt=new go.PathFigure(et,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("InternalStorage",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN,ht=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.1);var dt=new go.PathFigure(0,0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var yt=new go.PathFigure(rt*et,0,!1);return lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Move,0,ht*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,ht*tt)),lt}),go.Shape.defineFigureGenerator("Junction",function(wt,et,tt){var lt=new go.Geometry,rt=1/Math.SQRT2,ht=(1-1/Math.SQRT2)/2,dt=Et*.5,yt=.5,Mt=new go.PathFigure(et,yt*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,tt,et,(yt+dt)*tt,(yt+dt)*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,yt*tt,(yt-dt)*et,tt,0,(yt+dt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,0,0,(yt-dt)*tt,(yt-dt)*et,0)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et,yt*tt,(yt+dt)*et,0,et,(yt-dt)*tt));var jt=new go.PathFigure((ht+rt)*et,(ht+rt)*tt,!1);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*tt)),jt.add(new go.PathSegment(go.PathSegment.Move,ht*et,(ht+rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,(ht+rt)*et,ht*tt)),lt}),go.Shape.defineFigureGenerator("LinedDocument",function(wt,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close());var ht=new go.PathFigure(.1*et,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),lt.spot1=new go.Spot(.1,0),lt.spot2=new go.Spot(1,.6),lt}),go.Shape.defineFigureGenerator("LoopLimit",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MagneticTape",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=.5,dt=new go.PathFigure(.5*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(ht+.1)*et,.9*tt,et,(ht+rt)*tt,(ht+rt)*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),lt.spot1=new go.Spot(.15,.15),lt.spot2=new go.Spot(.85,.8),lt}),go.Shape.defineFigureGenerator("ManualInput",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("MessageFromUser",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.7);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("MicroformRecording",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("MultiDocument",function(wt,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*tt,.96*et,.47*tt,.93*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*tt,.86*et,.57*tt,.83*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*et,.4*tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ht=new go.PathFigure(.1*et,.2*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.8,.77),lt}),go.Shape.defineFigureGenerator("MultiProcess",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,.1*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close());var ht=new go.PathFigure(.2*et,.1*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),lt.spot1=new go.Spot(0,.2),lt.spot2=new go.Spot(.8,1),lt}),go.Shape.defineFigureGenerator("OfflineStorage",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=1-rt,dt=new go.PathFigure(0,0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var yt=new go.PathFigure(.5*rt*et,rt*tt,!1);return lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),lt}),go.Shape.defineFigureGenerator("OffPageConnector",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.75,1),lt}),go.Shape.defineFigureGenerator("Or",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=.5,dt=new go.PathFigure(et,ht*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,tt,et,(ht+rt)*tt,(ht+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt));var yt=new go.PathFigure(et,.5*tt,!1);return lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt}),go.Shape.defineFigureGenerator("PaperTape",function(wt,et,tt){var lt=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.5*et,.6*tt,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),lt.spot1=new go.Spot(0,.49),lt.spot2=new go.Spot(1,.75),lt}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN,ht=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN,ht=wt?wt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ht)&&(ht=.3);var dt=new go.PathFigure(0,0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Procedure",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure((1-rt)*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt}),go.Shape.defineFigureGenerator("Process",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Sort",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ht=new go.PathFigure(0,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),lt.spot1=new go.Spot(.25,.25),lt.spot2=new go.Spot(.75,.5),lt}),go.Shape.defineFigureGenerator("Start",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ht=new go.PathFigure(rt*et,0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var dt=new go.PathFigure(rt*et,0,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),lt.spot1=new go.Spot(rt,0),lt.spot2=new go.Spot(1-rt,1),lt}),go.Shape.defineFigureGenerator("Terminator",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt)),lt.spot1=new go.Spot(.23,0),lt.spot2=new go.Spot(.77,1),lt}),go.Shape.defineFigureGenerator("TransmittalTape",function(wt,et,tt){var lt=new go.Geometry,rt=wt?wt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("AndGate",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=new go.PathFigure(0,0,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt.spot2=new go.Spot(.55,1),lt}),go.Shape.defineFigureGenerator("Buffer",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Clock",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=.5,dt=new go.PathFigure(et,ht*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,tt,et,(ht+rt)*tt,(ht+rt)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht*tt,(ht-rt)*et,tt,0,(ht+rt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,ht*et,0,0,(ht-rt)*tt,(ht-rt)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht*tt,(ht+rt)*et,0,et,(ht-rt)*tt));var yt=new go.PathFigure(et,ht*tt,!1);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,ht*tt));var Mt=new go.PathFigure(.8*et,.75*tt,!1);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),lt}),go.Shape.defineFigureGenerator("Ground",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),lt}),go.Shape.defineFigureGenerator("Inverter",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.1,ht=.1,dt=.9,yt=.5,Mt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var jt=new go.PathFigure((dt+ht)*et,yt*tt,!0);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,yt*tt,(dt-rt)*et,(yt+ht)*tt,(dt-ht)*et,(yt+rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,yt*tt,(dt+rt)*et,(yt-ht)*tt,(dt+ht)*et,(yt-rt)*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.4,.75),lt}),go.Shape.defineFigureGenerator("NandGate",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=Et*.4,dt=Et*.1,yt=.1,Mt=.9,jt=.5,Rt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ht)*tt,(.4+rt)*et,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ht)*tt));var ae=new go.PathFigure((Mt+yt)*et,jt*tt,!0);return lt.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt+yt)*tt,(Mt+yt)*et,(jt+dt)*tt,(Mt+dt)*et,(jt+yt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-yt)*et,jt*tt,(Mt-dt)*et,(jt+yt)*tt,(Mt-yt)*et,(jt+dt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt-yt)*tt,(Mt-yt)*et,(jt-dt)*tt,(Mt-dt)*et,(jt-yt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+yt)*et,jt*tt,(Mt+dt)*et,(jt-yt)*tt,(Mt+yt)*et,(jt-dt)*tt)),lt.spot1=new go.Spot(0,.05),lt.spot2=new go.Spot(.55,.95),lt}),go.Shape.defineFigureGenerator("NorGate",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ht=Et*rt,dt=0,yt=.5,Mt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ht)*et,(yt-rt)*tt,.7*et,(yt-ht)*tt)),rt=.1,ht=Et*.1,dt=.9,yt=.5;var jt=new go.PathFigure((dt-rt)*et,yt*tt,!0);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,yt*tt,(dt+ht)*et,(yt-rt)*tt,(dt+rt)*et,(yt-ht)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,yt*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt)),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.6,.75),lt}),go.Shape.defineFigureGenerator("OrGate",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ht=Et*rt,dt=0,yt=.5,Mt=new go.PathFigure(0,0,!0);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ht+ht)*et,(yt-rt)*tt,.8*et,(yt-ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(yt+ht)*tt,(dt+ht+ht)*et,(yt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.75,.75),lt}),go.Shape.defineFigureGenerator("XnorGate",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ht=Et*rt,dt=.2,yt=.5,Mt=new go.PathFigure(.1*et,0,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var jt=new go.PathFigure(.8*et,.5*tt,!0);lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(dt+ht)*et,(yt-rt)*tt,.7*et,(yt-ht)*tt)),rt=.1,ht=Et*.1,dt=.9,yt=.5;var Rt=new go.PathFigure((dt-rt)*et,yt*tt,!0);return lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,yt*tt,(dt+ht)*et,(yt-rt)*tt,(dt+rt)*et,(yt-ht)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,yt*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt)),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.65,.75),lt}),go.Shape.defineFigureGenerator("XorGate",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ht=Et*rt,dt=.2,yt=.5,Mt=new go.PathFigure(.1*et,0,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var jt=new go.PathFigure(.2*et,0,!0);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(dt+ht)*et,(yt-rt)*tt,.9*et,(yt-ht)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.8,.75),lt}),go.Shape.defineFigureGenerator("Capacitor",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("Resistor",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Inductor",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.1,ht=.1,dt=.1,yt=.5,Mt=new go.PathFigure((dt-rt*.5)*et,tt,!1);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.3,Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.5,Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.7,Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,0,(dt-rt)*et,tt,(dt-ht)*et,0)),dt=.9,Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt*.5)*et,tt,(dt+ht)*et,0,(dt+rt)*et,tt)),lt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.5,ht=.5,dt=.5,yt=.5,Mt=new go.PathFigure((dt-ht)*et,yt*tt,!1);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,yt*tt,(dt+rt)*et,(yt-ht)*tt,(dt+ht)*et,(yt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,yt*tt,(dt-rt)*et,(yt+ht)*tt,(dt-ht)*et,(yt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Move,(dt-ht+.1)*et,yt*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht-.1)*et,yt*tt,dt*et,(yt-ht)*tt,dt*et,(yt+ht)*tt)),lt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("Diode",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.5,.75),lt}),go.Shape.defineFigureGenerator("Wifi",function(wt,et,tt){var lt=new go.Geometry,rt=et,ht=tt;et=et*.38,tt=tt*.6;var dt=Et*.8,yt=.8,Mt=0,jt=.5,Rt=(rt-et)/2,ae=(ht-tt)/2,he=new go.PathFigure(Mt*et+Rt,(jt+yt)*tt+ae,!0);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-yt)*et+Rt,jt*tt+ae,(Mt-dt)*et+Rt,(jt+yt)*tt+ae,(Mt-yt)*et+Rt,(jt+dt)*tt+ae)),he.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt-yt)*tt+ae,(Mt-yt)*et+Rt,(jt-dt)*tt+ae,(Mt-dt)*et+Rt,(jt-yt)*tt+ae)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-yt+dt*.5)*et+Rt,jt*tt+ae,Mt*et+Rt,(jt-yt)*tt+ae,(Mt-yt+dt*.5)*et+Rt,(jt-dt)*tt+ae)),he.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt+yt)*tt+ae,(Mt-yt+dt*.5)*et+Rt,(jt+dt)*tt+ae,Mt*et+Rt,(jt+yt)*tt+ae).close()),dt=Et*.4,yt=.4,Mt=.2,jt=.5;var pe=new go.PathFigure(Mt*et+Rt,(jt+yt)*tt+ae,!0);lt.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-yt)*et+Rt,jt*tt+ae,(Mt-dt)*et+Rt,(jt+yt)*tt+ae,(Mt-yt)*et+Rt,(jt+dt)*tt+ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt-yt)*tt+ae,(Mt-yt)*et+Rt,(jt-dt)*tt+ae,(Mt-dt)*et+Rt,(jt-yt)*tt+ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-yt+dt*.5)*et+Rt,jt*tt+ae,Mt*et+Rt,(jt-yt)*tt+ae,(Mt-yt+dt*.5)*et+Rt,(jt-dt)*tt+ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt+yt)*tt+ae,(Mt-yt+dt*.5)*et+Rt,(jt+dt)*tt+ae,Mt*et+Rt,(jt+yt)*tt+ae).close()),dt=Et*.2,yt=.2,Mt=.5,jt=.5;var Te=new go.PathFigure((Mt-yt)*et+Rt,jt*tt+ae,!0);lt.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt-yt)*tt+ae,(Mt-yt)*et+Rt,(jt-dt)*tt+ae,(Mt-dt)*et+Rt,(jt-yt)*tt+ae)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+yt)*et+Rt,jt*tt+ae,(Mt+dt)*et+Rt,(jt-yt)*tt+ae,(Mt+yt)*et+Rt,(jt-dt)*tt+ae)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt+yt)*tt+ae,(Mt+yt)*et+Rt,(jt+dt)*tt+ae,(Mt+dt)*et+Rt,(jt+yt)*tt+ae)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-yt)*et+Rt,jt*tt+ae,(Mt-dt)*et+Rt,(jt+yt)*tt+ae,(Mt-yt)*et+Rt,(jt+dt)*tt+ae)),dt=Et*.4,yt=.4,Mt=.8,jt=.5;var ne=new go.PathFigure(Mt*et+Rt,(jt-yt)*tt+ae,!0);lt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+yt)*et+Rt,jt*tt+ae,(Mt+dt)*et+Rt,(jt-yt)*tt+ae,(Mt+yt)*et+Rt,(jt-dt)*tt+ae)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt+yt)*tt+ae,(Mt+yt)*et+Rt,(jt+dt)*tt+ae,(Mt+dt)*et+Rt,(jt+yt)*tt+ae)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+yt-dt*.5)*et+Rt,jt*tt+ae,Mt*et+Rt,(jt+yt)*tt+ae,(Mt+yt-dt*.5)*et+Rt,(jt+dt)*tt+ae)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt-yt)*tt+ae,(Mt+yt-dt*.5)*et+Rt,(jt-dt)*tt+ae,Mt*et+Rt,(jt-yt)*tt+ae).close()),dt=Et*.8,yt=.8,Mt=1,jt=.5;var Ke=new go.PathFigure(Mt*et+Rt,(jt-yt)*tt+ae,!0);return lt.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+yt)*et+Rt,jt*tt+ae,(Mt+dt)*et+Rt,(jt-yt)*tt+ae,(Mt+yt)*et+Rt,(jt-dt)*tt+ae)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt+yt)*tt+ae,(Mt+yt)*et+Rt,(jt+dt)*tt+ae,(Mt+dt)*et+Rt,(jt+yt)*tt+ae)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+yt-dt*.5)*et+Rt,jt*tt+ae,Mt*et+Rt,(jt+yt)*tt+ae,(Mt+yt-dt*.5)*et+Rt,(jt+dt)*tt+ae)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Rt,(jt-yt)*tt+ae,(Mt+yt-dt*.5)*et+Rt,(jt-dt)*tt+ae,Mt*et+Rt,(jt-yt)*tt+ae).close()),lt}),go.Shape.defineFigureGenerator("Email",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ht=new go.PathFigure(0,0,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Ethernet",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.35*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ht=new go.PathFigure(.1*et,tt,!0,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var dt=new go.PathFigure(.6*et,tt,!0,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var yt=new go.PathFigure(0,.5*tt,!1);return lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Power",function(wt,et,tt){var lt=new go.Geometry,rt=Et*.4,ht=.4,dt=.5,yt=.5,Mt=Lt(),jt=Lt(),Rt=Lt(),ae=Lt();De(dt,yt-ht,dt+rt,yt-ht,dt+ht,yt-rt,dt+ht,yt,.5,Mt,Mt,jt,Rt,ae);var he=bt(jt.x,jt.y),pe=new go.PathFigure(jt.x*et,jt.y*tt,!0);lt.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,yt*tt,Rt.x*et,Rt.y*tt,ae.x*et,ae.y*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,yt*tt,(dt-rt)*et,(yt+ht)*tt,(dt-ht)*et,(yt+rt)*tt)),De(dt-ht,yt,dt-ht,yt-rt,dt-rt,yt-ht,dt,yt-ht,.5,Rt,ae,jt,Mt,Mt),pe.add(new go.PathSegment(go.PathSegment.Bezier,jt.x*et,jt.y*tt,Rt.x*et,Rt.y*tt,ae.x*et,ae.y*tt)),rt=Et*.3,ht=.3,De(dt-ht,yt,dt-ht,yt-rt,dt-rt,yt-ht,dt,yt-ht,.5,Rt,ae,jt,Mt,Mt),pe.add(new go.PathSegment(go.PathSegment.Line,jt.x*et,jt.y*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(dt-ht)*et,yt*tt,ae.x*et,ae.y*tt,Rt.x*et,Rt.y*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+ht)*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(dt+ht)*et,yt*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),De(dt,yt-ht,dt+rt,yt-ht,dt+ht,yt-rt,dt+ht,yt,.5,Mt,Mt,jt,Rt,ae),pe.add(new go.PathSegment(go.PathSegment.Bezier,jt.x*et,jt.y*tt,ae.x*et,ae.y*tt,Rt.x*et,Rt.y*tt).close());var pe=new go.PathFigure(.45*et,0,!0);return lt.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),pe.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ge(Mt),ge(jt),ge(Rt),ge(ae),ge(he),lt.spot1=new go.Spot(.25,.45),lt.spot2=new go.Spot(.75,.8),lt}),go.Shape.defineFigureGenerator("Fallout",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt/2,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ht(dt,yt,Mt){dt.add(new go.PathSegment(go.PathSegment.Move,(.3+yt)*et,(.8+Mt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.5+yt)*et,(.5+Mt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.1+yt)*et,(.5+Mt)*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,(.3+yt)*et,(.8+Mt)*tt).close())}return ht(rt,0,0),ht(rt,.4,0),ht(rt,.2,-.3),lt}),go.Shape.defineFigureGenerator("IrritationHazard",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.2*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),lt.spot1=new go.Spot(.3,.3),lt.spot2=new go.Spot(.7,.7),lt}),go.Shape.defineFigureGenerator("ElectricalHazard",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.37*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.37*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),lt}),go.Shape.defineFigureGenerator("FireHazard",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*tt,.45*et,.44*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*tt,.48*et,.17*tt,.54*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*tt,.59*et,.29*tt,.58*et,.28*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*tt,.8*et,.34*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*tt,.87*et,.48*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,1.17*et,.76*tt,.82*et,.8*tt).close()),lt.spot1=new go.Spot(.07,.445),lt.spot2=new go.Spot(.884,.958),lt}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ht=0,dt=0,yt=rt*Et,Mt=.4*Math.SQRT2/2+.5,jt=.5-.5*Math.SQRT2/2,Rt=1,ae=.5,he=.5,pe=0,Te=new go.PathFigure(Mt*et,(1-jt)*tt,!1);return lt.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,ae*tt,Rt*et,.7*tt,Rt*et,ae*tt)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(he+ht)*et,(pe+ht)*tt,(.5+rt+ht)*et,(.5-yt+ht)*tt,(.5+yt+ht)*et,(.5-rt+ht)*tt)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ht)*et,(.5+dt)*tt,(.5-yt+ht)*et,(.5-rt+dt)*tt,(.5-rt+ht)*et,(.5-yt+dt)*tt)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ht)*et,.9*tt,(.5-rt+ht)*et,(.5+yt+dt)*tt,(.5-yt+ht)*et,.9*tt)),Te.add(new go.PathSegment(go.PathSegment.Move,(.25+ht)*et,.8*tt)),Te.add(new go.PathSegment(go.PathSegment.Line,(.35+ht)*et,.9*tt)),Te.add(new go.PathSegment(go.PathSegment.Line,(.2+ht)*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(et,tt,!1);lt.add(ht);var dt=new go.PathFigure(0,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close()),lt}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var rt=new go.PathFigure(0,.2*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.7*et,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,tt,.4*et,.5*tt,et,.5*tt).close());var ht=new go.PathFigure(.45*et,.73*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(.335*et,(1-.555)*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var dt=.5-.285,yt=.5,Mt=dt,jt=Math.PI/4,Rt=4*(1-Math.cos(jt))/(3*Math.sin(jt)),ae=Rt*.5,he=dt,pe=dt,Te=Rt*he,ne=Rt*pe;ht.add(new go.PathSegment(go.PathSegment.Bezier,(yt-he)*et,Mt*tt,(yt-(Te+he)/2)*et,(Mt+(pe+ne)/2)*tt,(yt-he)*et,(Mt+ne)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,yt*et,(Mt-pe)*tt,(yt-he)*et,(Mt-ne)*tt,(yt-Te)*et,(Mt-pe)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(yt+he)*et,Mt*tt,(yt+Te)*et,(Mt-pe)*tt,(yt+he)*et,(Mt-ne)*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(yt+he)*et,(Mt+ne)*tt,(yt+(Te+he)/2)*et,(Mt+(pe+ne)/2)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var Ke=new go.PathFigure(.2*et,tt,!1);lt.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var Vt=new go.PathFigure(.8*et,tt,!1);return lt.add(Vt),Vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ht=new go.PathFigure(.2*et,.2*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventError",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ht=new go.PathFigure(et,tt,!1);lt.add(ht);var dt=new go.PathFigure(.1*et,tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Caution",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.05*et,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*tt,0,tt,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*tt,.5*et,0,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,et,tt,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,tt));var ht=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ht)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ht*et,ht*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),lt}),go.Shape.defineFigureGenerator("Recycle",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.45*et,.95*tt,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*tt,.17*et,.95*tt,.15*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*tt,0,.675*tt,0,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*tt));var ht=new go.PathFigure(.475*et,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var dt=new go.PathFigure(.675*et,.575*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),dt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ht=Et*.5,dt=new go.PathFigure(et,rt*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ht)*tt,(rt+ht)*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ht)*et,tt,0,(rt+ht)*tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ht)*tt,(rt-ht)*et,0)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ht)*et,0,et,(rt-ht)*tt));var yt=new go.PathFigure(rt*et,0,!1);return lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),yt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Package",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.15*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ht=new go.PathFigure(0,.15*tt,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),lt.spot1=new go.Spot(0,.1),lt.spot2=new go.Spot(1,1),lt}),go.Shape.defineFigureGenerator("Class",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ht=new go.PathFigure(0,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var dt=new go.PathFigure(0,.5*tt,!1);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Component",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close());var ht=new go.PathFigure(0,.2*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var dt=new go.PathFigure(0,.6*tt,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),lt}),go.Shape.defineFigureGenerator("Boat Shipment",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.15*et,.6*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt));var ht=new go.PathFigure(.15*et,.6*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Workcell",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Supermarket",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),lt}),go.Shape.defineFigureGenerator("TruckShipment",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ht=new go.PathFigure(et,.8*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var dt=.1,yt=Et*.1,Mt=.2,jt=.9,Rt=new go.PathFigure((Mt-dt)*et,jt*tt,!0);lt.add(Rt),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt-dt)*tt,(Mt-dt)*et,(jt-yt)*tt,(Mt-yt)*et,(jt-dt)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+dt)*et,jt*tt,(Mt+yt)*et,(jt-dt)*tt,(Mt+dt)*et,(jt-yt)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt+dt)*tt,(Mt+dt)*et,(jt+yt)*tt,(Mt+yt)*et,(jt+dt)*tt)),Rt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-dt)*et,jt*tt,(Mt-yt)*et,(jt+dt)*tt,(Mt-dt)*et,(jt+yt)*tt).close()),dt=.1,yt=Et*.1,Mt=.8,jt=.9;var ae=new go.PathFigure((Mt-dt)*et,jt*tt,!0);return lt.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt-dt)*tt,(Mt-dt)*et,(jt-yt)*tt,(Mt-yt)*et,(jt-dt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+dt)*et,jt*tt,(Mt+yt)*et,(jt-dt)*tt,(Mt+dt)*et,(jt-yt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(jt+dt)*tt,(Mt+dt)*et,(jt+yt)*tt,(Mt+yt)*et,(jt+dt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-dt)*et,jt*tt,(Mt-yt)*et,(jt+dt)*tt,(Mt-dt)*et,(jt+yt)*tt).close()),lt}),go.Shape.defineFigureGenerator("KanbanPost",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.2*et,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),lt}),go.Shape.defineFigureGenerator("Forklift",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0));var ht=new go.PathFigure(0,.5*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var dt=new go.PathFigure(.5*et,.8*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var yt=new go.PathFigure(.5*et,.7*tt,!1);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var Mt=.1,jt=Et*.1,Rt=.1,ae=.9,he=new go.PathFigure((Rt-Mt)*et,ae*tt,!0);lt.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(ae-Mt)*tt,(Rt-Mt)*et,(ae-jt)*tt,(Rt-jt)*et,(ae-Mt)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Mt)*et,ae*tt,(Rt+jt)*et,(ae-Mt)*tt,(Rt+Mt)*et,(ae-jt)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(ae+Mt)*tt,(Rt+Mt)*et,(ae+jt)*tt,(Rt+jt)*et,(ae+Mt)*tt)),he.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Mt)*et,ae*tt,(Rt-jt)*et,(ae+Mt)*tt,(Rt-Mt)*et,(ae+jt)*tt)),Mt=.1,jt=Et*.1,Rt=.4,ae=.9;var pe=new go.PathFigure((Rt-Mt)*et,ae*tt,!0);return lt.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(ae-Mt)*tt,(Rt-Mt)*et,(ae-jt)*tt,(Rt-jt)*et,(ae-Mt)*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt+Mt)*et,ae*tt,(Rt+jt)*et,(ae-Mt)*tt,(Rt+Mt)*et,(ae-jt)*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,Rt*et,(ae+Mt)*tt,(Rt+Mt)*et,(ae+jt)*tt,(Rt+jt)*et,(ae+Mt)*tt)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(Rt-Mt)*et,ae*tt,(Rt-jt)*et,(ae+Mt)*tt,(Rt-Mt)*et,(ae+jt)*tt)),lt}),go.Shape.defineFigureGenerator("RailShipment",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.1*et,.4*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*tt).close());var ht=new go.PathFigure(.45*et,.7*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var dt=new go.PathFigure(.55*et,.4*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var Rt=.05,ae=Et*.05,he=.175,pe=.95,yt=new go.PathFigure((he-Rt)*et,pe*tt,!0);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(pe-Rt)*tt,(he-Rt)*et,(pe-ae)*tt,(he-ae)*et,(pe-Rt)*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(he+Rt)*et,pe*tt,(he+ae)*et,(pe-Rt)*tt,(he+Rt)*et,(pe-ae)*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(pe+Rt)*tt,(he+Rt)*et,(pe+ae)*tt,(he+ae)*et,(pe+Rt)*tt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,(he-Rt)*et,pe*tt,(he-ae)*et,(pe+Rt)*tt,(he-Rt)*et,(pe+ae)*tt));var Rt=.05,ae=Et*.05,he=.375,pe=.95,Mt=new go.PathFigure((he-Rt)*et,pe*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(pe-Rt)*tt,(he-Rt)*et,(pe-ae)*tt,(he-ae)*et,(pe-Rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(he+Rt)*et,pe*tt,(he+ae)*et,(pe-Rt)*tt,(he+Rt)*et,(pe-ae)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(pe+Rt)*tt,(he+Rt)*et,(pe+ae)*tt,(he+ae)*et,(pe+Rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(he-Rt)*et,pe*tt,(he-ae)*et,(pe+Rt)*tt,(he-Rt)*et,(pe+ae)*tt));var Rt=.05,ae=Et*.05,he=.625,pe=.95,jt=new go.PathFigure((he-Rt)*et,pe*tt,!0);lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(pe-Rt)*tt,(he-Rt)*et,(pe-ae)*tt,(he-ae)*et,(pe-Rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(he+Rt)*et,pe*tt,(he+ae)*et,(pe-Rt)*tt,(he+Rt)*et,(pe-ae)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(pe+Rt)*tt,(he+Rt)*et,(pe+ae)*tt,(he+ae)*et,(pe+Rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(he-Rt)*et,pe*tt,(he-ae)*et,(pe+Rt)*tt,(he-Rt)*et,(pe+ae)*tt));var Rt=.05,ae=Et*.05,he=.825,pe=.95,Te=new go.PathFigure((he-Rt)*et,pe*tt,!0);lt.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(pe-Rt)*tt,(he-Rt)*et,(pe-ae)*tt,(he-ae)*et,(pe-Rt)*tt)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(he+Rt)*et,pe*tt,(he+ae)*et,(pe-Rt)*tt,(he+Rt)*et,(pe-ae)*tt)),Te.add(new go.PathSegment(go.PathSegment.Bezier,he*et,(pe+Rt)*tt,(he+Rt)*et,(pe+ae)*tt,(he+ae)*et,(pe+Rt)*tt)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(he-Rt)*et,pe*tt,(he-ae)*et,(pe+Rt)*tt,(he-Rt)*et,(pe+ae)*tt).close());var ne=new go.PathFigure(0,tt,!1);return lt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Warehouse",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ht=new go.PathFigure(0,.2*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var dt=new go.PathFigure(.15*et,tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var yt=.05,Mt=Et*.05,jt=.35,Rt=.775,ae=new go.PathFigure((jt-yt)*et,Rt*tt,!0);return lt.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,jt*et,(Rt-yt)*tt,(jt-yt)*et,(Rt-Mt)*tt,(jt-Mt)*et,(Rt-yt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(jt+yt)*et,Rt*tt,(jt+Mt)*et,(Rt-yt)*tt,(jt+yt)*et,(Rt-Mt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,jt*et,(Rt+yt)*tt,(jt+yt)*et,(Rt+Mt)*tt,(jt+Mt)*et,(Rt+yt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(jt-yt)*et,Rt*tt,(jt-Mt)*et,(Rt+yt)*tt,(jt-yt)*et,(Rt+Mt)*tt).close()),lt}),go.Shape.defineFigureGenerator("ControlCenter",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt).close()),lt}),go.Shape.defineFigureGenerator("Bluetooth",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Bookmark",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Globe",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.75*et,0,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.75*tt,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*et,tt,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*tt,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,.15*et,.25*tt,.15*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*tt,.85*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*tt,.35*et,.3*tt,.65*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*tt,.35*et,.7*tt,.65*et,.7*tt)),lt}),go.Shape.defineFigureGenerator("Wave",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*tt,.1*et,0,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*tt,.425*et,.5*tt,.575*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*tt,.8*et,0,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*tt,.1*et,.5*tt,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*tt,.425*et,tt,.575*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*tt,.8*et,.5*tt,.9*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Operator",function(wt,et,tt){var lt=new go.Geometry,rt=.3,ht=Et*.3,dt=.5,yt=.7,Mt=new go.PathFigure((dt-rt)*et,yt*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,yt*tt,(dt+ht)*et,(yt-rt)*tt,(dt+rt)*et,(yt-ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,yt*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt));var jt=new go.PathFigure(0,.7*tt,!1);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),lt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.65*et,.3*tt,.65*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*tt,.35*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*et,.6*tt,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.2*et,tt,.35*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,.7*et,.6*tt,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.8*et,tt,.65*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("CentrifugalPump",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et,0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,0,tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*tt,.8*et,tt,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),lt}),go.Shape.defineFigureGenerator("Battery",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*tt));var ht=new go.PathFigure(0,.6*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Delete",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ht=Et*.5,dt=.5,yt=.5,Mt=new go.PathFigure((dt-rt)*et,yt*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,yt*tt,(dt+ht)*et,(yt-rt)*tt,(dt+rt)*et,(yt-ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,yt*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt));var jt=new go.PathFigure(.15*et,.5*tt,!1);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Flag",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.1*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*tt,.15*et,0,.35*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,.65*et,.2*tt,.85*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.85*et,.6*tt,.65*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*et,.4*tt,.15*et,.4*tt).close()),lt}),go.Shape.defineFigureGenerator("Help",function(wt,et,tt){var lt=new go.Geometry,rt=.5,ht=Et*.5,dt=.5,yt=.5,Mt=new go.PathFigure((dt-rt)*et,yt*tt,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,yt*tt,(dt+ht)*et,(yt-rt)*tt,(dt+rt)*et,(yt-ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,yt*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt).close()),rt=.05,ht=Et*.05,dt=.5,yt=.8;var jt=new go.PathFigure((dt-rt)*et,yt*tt,!1);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt-rt)*tt,(dt-rt)*et,(yt-ht)*tt,(dt-ht)*et,(yt-rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(dt+rt)*et,yt*tt,(dt+ht)*et,(yt-rt)*tt,(dt+rt)*et,(yt-ht)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,dt*et,(yt+rt)*tt,(dt+rt)*et,(yt+ht)*tt,(dt+ht)*et,(yt+rt)*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(dt-rt)*et,yt*tt,(dt-ht)*et,(yt+rt)*tt,(dt-rt)*et,(yt+ht)*tt).close()),jt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),jt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),lt}),go.Shape.defineFigureGenerator("Location",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*tt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*tt,.5*et,0,.025*et,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ht=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),lt}),go.Shape.defineFigureGenerator("Unlocked",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ht=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),lt}),go.Shape.defineFigureGenerator("Gear",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*tt,.79840625*et,.39915625*tt,.7834375*et,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*tt,.64228125*et,.2188125*tt,.603875*et,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*tt,.39759375*et,.20190625*tt,.36053125*et,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*tt,.21765625*et,.36059375*tt,.201875*et,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*tt,.20221875*et,.603875*tt,.21884375*et,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*tt,.36353125*et,.78340625*tt,.3991875*et,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*tt,.602375*et,.79809375*tt,.63946875*et,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*tt,.78234375*et,.63940625*tt,.798125*et,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*tt,0,.375*tt,.05*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*tt,.3*et,.225*tt,.4*et,.175*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*tt,.46*et,.05*tt,.525*et,.05*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*tt,.525*et,.275*tt,.475*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*tt,et,.4*tt,et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*tt,.675*et,.55*tt,.675*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*tt,.65*et,.7*tt,.65*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,tt,.61*et,.85*tt,.61*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*et,tt,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Map",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("Eject",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.7)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var ht=new go.PathFigure(0,tt*.6,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),lt}),go.Shape.defineFigureGenerator("Pencil",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*1,tt*1,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.85).close());var ht=new go.PathFigure(.126*et,.85*tt,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ht.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var dt=new go.PathFigure(.402*et,.85*tt,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),dt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var yt=new go.PathFigure(.678*et,.85*tt,!1);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),yt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var Mt=new go.PathFigure(.5*et,.1*tt,!1);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),lt}),go.Shape.defineFigureGenerator("Staircase",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),lt}),go.Shape.defineFigureGenerator("5Bars",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*(1-.184)).close());var ht=new go.PathFigure(et*.204,tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ht.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ht.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var dt=new go.PathFigure(et*.408,tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),dt.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),dt.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var yt=new go.PathFigure(et*.612,tt,!0);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),yt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),yt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var Mt=new go.PathFigure(et*.816,tt,!0);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),Mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),Mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),lt}),go.Shape.defineFigureGenerator("PC",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ht=new go.PathFigure(et*.055,.07*tt,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var dt=new go.PathFigure(et*.055,.13*tt,!0);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var yt=new go.PathFigure(et*.055,.18*tt,!0);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var Mt=new go.PathFigure(et*1,0,!0);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),lt}),go.Shape.defineFigureGenerator("Plane",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(.55*et,tt,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*tt,0,.4*tt,.225*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*tt,.975*et,0,et,.08*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt).close()),lt}),go.Shape.defineFigureGenerator("Key",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*1,tt*.5,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*tt,.075*et,.075*tt).close()),lt}),go.Shape.defineFigureGenerator("FilmTape",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ht=new go.PathFigure(0,0,!1);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ht.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var dt=new go.PathFigure(et*.11,tt*.1,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),dt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var yt=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),yt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),yt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var Mt=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),lt}),go.Shape.defineFigureGenerator("FloppyDisk",function(wt,et,tt){var lt=new go.Geometry,rt=8,ht=rt*Et,dt=new go.PathFigure(rt,0,!1);lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ht,et-ht,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ht,tt,0,tt-ht)),dt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ht,ht,0).close());var yt=new go.PathFigure(et*.83,0,!1);lt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var Mt=new go.PathFigure(et*.83,tt*1,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),Mt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var jt=new go.PathFigure(et*.78,tt*.05,!1);return lt.add(jt),jt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),jt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),jt.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("SpeechBubble",function(wt,et,tt){var lt=wt?wt.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=15),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*Et,ht=tt*.8,dt=new go.Geometry,yt=new go.PathFigure(lt,0,!0);return dt.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)),yt.add(new go.PathSegment(go.PathSegment.Line,et,ht-lt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,ht,et,ht-rt,et-rt,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),yt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ht)),yt.add(new go.PathSegment(go.PathSegment.Line,lt,ht)),yt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht-lt,rt,ht,0,ht-rt)),yt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),yt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()),rt>1?(dt.spot1=new go.Spot(0,0,rt,rt),dt.spot2=new go.Spot(1,.8,-rt,-rt)):(dt.spot1=go.Spot.TopLeft,dt.spot2=new go.Spot(1,.8)),dt}),go.Shape.defineFigureGenerator("Repeat",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*.45,!0);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.45).close());var ht=new go.PathFigure(et*1,tt*.55,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),lt}),go.Shape.defineFigureGenerator("Windows",function(wt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*.1,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.9).close());var ht=new go.PathFigure(et*.1,tt*.2,!0);lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var dt=new go.PathFigure(et*.28,tt*.37,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),lt}),go.Shape.defineFigureGenerator("Beaker",function(wt,et,tt){var lt=new go.Geometry,rt=15,ht=rt*Et,dt=new go.PathFigure(et*.62,tt*.475,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ht,et-ht,tt)),dt.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),dt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ht,tt,0,tt-ht)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ht>1?(lt.spot1=new go.Spot(0,0,ht,ht),lt.spot2=new go.Spot(1,1,-ht,-ht)):(lt.spot1=go.Spot.TopLeft,lt.spot2=go.Spot.BottomRight),lt}),go.Shape.defineFigureGenerator("Download",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ht)).close());var dt=new go.PathFigure(et*.4,tt*0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),dt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),lt}),go.Shape.defineFigureGenerator("Bin",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.1/.3;return rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ht)).close()),lt}),go.Shape.defineFigureGenerator("Upload",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ht=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ht))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ht)).close());var dt=new go.PathFigure(et*.5,tt*0,!0);return lt.add(dt),dt.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),dt.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("EmptyDrink",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close()),lt}),go.Shape.defineFigureGenerator("Drink",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close());var ht=new go.PathFigure(et*.235,tt*.28,!0);return lt.add(ht),ht.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ht.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),lt}),go.Shape.defineFigureGenerator("4Arrows",function(wt,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*.5,tt*0,!0);return lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var di={},Pn="5.0",bt={},Lt=null,ge=!1,se=!1,De=null,re=!1,le=null,Et=null,Tt=0;Tt<arguments.length;Tt++){var ee=arguments[Tt];if(ee!==null)switch(typeof ee){case"number":Pn=ee.toFixed(1);break;case"string":ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?Pn=ee:De=ee;break;case"object":typeof ee.is3D!="undefined"?Lt=ee:bt=ee;break;case"boolean":ge=ee,se=!0;break}}Lt===null&&(Lt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},bt.material_id!==void 0&&!se&&(ge=!0)),De!==null&&bt.id===void 0&&(bt.id=De);var Ct="",Wt="",Gt=!1,Jt=null,wt=null,et=null,tt=!1,lt=null,rt=null,ht=null,dt=null,yt=null;bt.height!==void 0&&(bt.height=Math.round(bt.height)),bt.width!==void 0&&(bt.width=Math.round(bt.width));var Mt=function(Xe){return parseFloat(Xe)>4?parseFloat(Xe):5};di.setHTML5Codebase=function(Xe,In){Et=Xe,be(Xe,In)},di.setJavaCodebase=di.setJavaCodebaseVersion=di.isCompiledInstalled=di.setPreCompiledScriptPath=di.setPreCompiledResourcePath=function(){},di.setHTML5CodebaseVersion=function(Xe,In){var Xn=parseFloat(Xe);if(Xn!==NaN&&Xn<5){console.log("The GeoGebra HTML5 codebase version "+Xn+" is deprecated. Using version latest instead.");return}le=Xe,ie(Xe,In)},di.getHTML5CodebaseVersion=function(){return wt},di.getParameters=function(){return bt},di.setFontsCSSURL=function(Xe){dt=Xe},di.setGiacJSURL=function(Xe){},di.setJNLPFile=function(Xe){Ct=Xe},di.setJNLPBaseDir=function(Xe){},di.inject=function(){function Xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var In="auto",Xn=bt.id,pi,$n=!1,bi=0;bi<arguments.length;bi++){var sn=arguments[bi];typeof sn=="string"?(sn=sn.toLowerCase(),sn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?In=sn:Xn=arguments[bi]):typeof sn=="boolean"?$n=sn:sn instanceof HTMLElement&&(pi=sn)}Li();function Li(){if(!re){setTimeout(Li,200);return}In=_e(In);var ji=pi||document.getElementById(Xn);if(!ji){console.log("possibly bug on ajax loading? ");return}if(di.removeExistingApplet(ji,!1),bt.width===void 0&&ji.clientWidth&&(bt.width=ji.clientWidth),bt.height===void 0&&ji.clientHeight&&(bt.height=ji.clientHeight),!(bt.width&&bt.height)&&In==="html5"&&(delete bt.width,delete bt.height),Jt=In,In==="screenshot")Vt(ji,bt);else{var ve=!1;bt.hasOwnProperty("playButton")&&bt.playButton||bt.hasOwnProperty("clickToLoad")&&bt.clickToLoad?ve=!0:bt.hasOwnProperty("playButtonAutoDecide")&&bt.playButtonAutoDecide&&(ve=(!jt()||Xe())&&Rt()),ve?(Jt="screenshot",Ge(ji,bt,$n,In)):Ke(ji,bt,$n)}}};function jt(){try{return window.self!==window.top}catch(Xe){return!0}}function Rt(){return bt.hasOwnProperty("screenshotGenerator")&&bt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}di.getViews=function(){return Lt},di.isJavaInstalled=function(){return!1};var ae=function(Xe){var In=function(bi){var sn=JSON.parse(bi),Li=function(hn){return hn.type=="G"||hn.type=="E"},ji=sn.elements?sn.elements.filter(Li)[0]:sn;if(!ji||!ji.url){Xn();return}bt.fileName=ji.url,he(ji.settings||{}),Lt.is3D=!0;var ve="https://www.geogebra.org/images/";di.setPreviewImage(lt||ji.previewUrl,ve+"GeoGebra_loading.png",ve+"applet_play.png"),Xe()},Xn=function(){bt.onError&&bt.onError(),Fn("Error: Fetching material (id "+bt.material_id+") failed.",bt)},pi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",$n="/materials/"+bt.material_id+"?scope=basic";pe("https://"+pi+"/api/proxy.php?path="+encodeURIComponent($n),In,Xn)};function he(Xe){var In=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xn){Xe[Xn]=!!Xe[Xn]}),In.forEach(function(Xn){bt[Xn]===void 0&&Xe[Xn]!==void 0&&(bt[Xn]=Xe[Xn])}),bt.showToolBarHelp===void 0&&(bt.showToolBarHelp=bt.showToolBar)}function pe(Xe,In,Xn){var pi=new XMLHttpRequest;pi.open("GET",Xe),pi.onload=function(){In(pi.responseText)},pi.onerror=Xn,pi.send()}di.isHTML5Installed=function(){return!0},di.getLoadedAppletType=function(){return Jt},di.setPreviewImage=function(Xe,In,Xn){lt=Xe,rt=In,ht=Xn},di.removeExistingApplet=function(Xe,In){var Xn;typeof Xe=="string"&&(Xe=document.getElementById(Xe)),Jt=null;var pi=null;for(Xn=0;Xn<Xe.childNodes.length;Xn++){var $n=Xe.childNodes[Xn],bi=$n.className;bi==="applet_screenshot"?In?($n.style.display="block",Jt="screenshot"):$n.style.display="none":bi!=="applet_scaler prerender"&&(Xe.removeChild($n),pi=bi&&bi.indexOf("appletParameters")!=-1?$n.id:null,Xn--)}var sn=bt.id!==void 0?bt.id:pi,Li=window[sn];Li&&typeof Li.getBase64=="function"&&(Li.remove(),window[sn]=null)},di.refreshHitPoints=function(){if(Mt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Xe=di.getAppletObject();return Xe&&typeof Xe.recalculateEnvironments=="function"?(Xe.recalculateEnvironments(),!0):!1},di.startAnimation=function(){var Xe=di.getAppletObject();return Xe&&typeof Xe.startAnimation=="function"?(Xe.startAnimation(),!0):!1},di.stopAnimation=function(){var Xe=di.getAppletObject();return Xe&&typeof Xe.stopAnimation=="function"?(Xe.stopAnimation(),!0):!1},di.getAppletObject=function(){var Xe=bt.id!==void 0?bt.id:"ggbApplet";return window[Xe]},di.resize=function(){};var Te=function(Xe,In,Xn){var pi=document.createElement("param");pi.setAttribute("name",In),pi.setAttribute("value",Xn),Xe.appendChild(pi)},ne=function(Xe){return Xe&&Xe!=="false"},Ke=function(Xe,In,Xn){Mt(wt)<=4.2&&(Xn=!0);var pi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==wt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(pi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var $n=document.createElement("div");$n.classList.add("appletParameters","notranslate");var bi=In.width,sn=In.height;if(In.disableAutoScale=In.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():In.disableAutoScale,In.width!==void 0)if(Mt(wt)<=4.4)ne(In.showToolBar)&&(In.height-=7),ne(In.showAlgebraInput)&&(In.height-=37),In.width<605&&ne(In.showToolBar)&&(In.width=605,bi=605);else{var Li=100;(ne(In.showToolBar)||ne(In.showMenuBar))&&(In.hasOwnProperty("customToolBar")&&(In.customToolbar=In.customToolBar),Li=ne(In.showMenuBar)?245:155),bi<Li&&(In.width=Li,bi=Li)}$n.style.border="none",$n.style.display="inline-block";for(var ji in In)In.hasOwnProperty(ji)&&ji!=="appletOnLoad"&&$n.setAttribute("data-param-"+ji,In[ji]);dt&&$n.setAttribute("data-param-fontscssurl",dt),di.resize=function(){GGBAppletUtils.responsiveResize(Xe,In)},window.addEventListener("resize",function(mt){di.resize()});var ve=typeof In.appletOnLoad=="function"?In.appletOnLoad:function(){};if(!Xn&&In.width!==void 0){In.hasOwnProperty("showSplash")||$n.setAttribute("data-param-showSplash","false");var hn=Xe.querySelector(".applet_scaler.prerender"),Ae=hn!==null;if(Ae)var Ot=hn.querySelector(".ggb_preview");else{var Ot=Ve(bi,sn,In.borderColor,!1);hn=document.createElement("div"),hn.className="applet_scaler",hn.style.position="relative",hn.style.display="block",hn.style.width=bi+"px",hn.style.height=sn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(hn,"66%"),Mt(wt)>=5?(In.appletOnLoad=function(mt){var Zt=Xe.querySelector(".ggb_preview");Zt&&Zt.parentNode.removeChild(Zt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(hn),window.GGBT_wsf_view&&$(window).trigger("resize"),ve(mt)},Ae||hn.appendChild(Ot)):$n.appendChild(Ot),hn.appendChild($n),Ae||Xe.appendChild(hn),setTimeout(function(){di.resize()},1)}else{var Ft=document.createElement("div");Ft.className="applet_scaler",Ft.style.position="relative",Ft.style.display="block",Ft.appendChild($n),Xe.appendChild(Ft),In.appletOnLoad=function(mt){di.resize(),ve(mt)}}function Kt(mt,Zt){Zt&&typeof Zt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mt,Zt.appletOnLoad):renderGGBElement(mt),Fn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Zt)}function Ee(mt,Zt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mt,params:Zt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Se){Kt(Se.article,Se.params)}),html5AppletsToProcess=null)},Mt(wt)<5&&(mt.className+=" geogebraweb")):Kt(mt,Zt)}if(pi){scriptLoadStarted=!0;for(var je=0;je<$n.childNodes.length;je++){var ce=$n.childNodes[je].tagName;ce==="TABLE"&&($n.removeChild($n.childNodes[je]),je--)}if(ggbHTML5LoadedScript!==null){var Be=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Be!=null&&Be.parentNode.removeChild(Be)}var $t=document.createElement("script"),Pt=function(){Ee($n,In)};$t.src=Wt+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=wt,ggbHTML5LoadedScript=$t.src,Fn("GeoGebra HTML5 codebase loaded: '"+Wt+"'.",In),!Et&&(!le||le=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Pt()):Wt.requirejs?__webpack_require__.e(7374).then(function(){var mt=[__webpack_require__(97374)];Pt.apply(null,mt)}.bind(this)).catch(__webpack_require__.oe):($t.onload=Pt,Xe.appendChild($t))}else Ee($n,In);In.height=sn,In.width=bi},Vt=function(Xe,In,Xn){var pi=Ve(In.width,In.height,In.borderColor,Xn),$n=document.createElement("div");$n.style.position="relative",$n.style.display="block",$n.style.width=In.width+"px",$n.style.height=In.height+"px",$n.className="applet_screenshot applet_scaler"+(Xn?" applet_screenshot_play":""),$n.appendChild(pi);var bi=GGBAppletUtils.getScale(In,Xe,Xn);Xn?(Xe.appendChild(Oe()),window.GGBT_wsf_view||(Xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($n,"66%"),Xe.appendChild($n),bi!==1&&!isNaN(bi)&&(GGBAppletUtils.scaleElement($n,bi),$n.style.width=In.width+"px",$n.style.height=In.height+"px",$n.parentNode.style.width=In.width*bi+"px",$n.parentNode.style.height=In.height*bi+"px"),di.resize=function(){$e(Xe,pi,$n,Xn)},window.addEventListener("resize",function(sn){di.resize()}),di.resize()};function $e(Xe,In,Xn,pi){if(Xe.contains(In)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Xe)}var $n=GGBAppletUtils.getScale(bt,Xe,pi);Xn.parentNode!==null&&(!isNaN($n)&&$n!==1?(GGBAppletUtils.scaleElement(Xn,$n),Xn.parentNode.style.width=bt.width*$n+"px",Xn.parentNode.style.height=bt.height*$n+"px"):(GGBAppletUtils.scaleElement(Xn,1),Xn.parentNode.style.width=bt.width+"px",Xn.parentNode.style.height=bt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}di.onExitFullscreen=function(Xe,In){In.appendChild(Xe)};var Ge=function(Xe,In,Xn,pi){Vt(Xe,In,!0);for(var $n=function(){var Li=[];for(sn=0;sn<Xe.childNodes.length;sn++)Li.push(Xe.childNodes[sn]);if(window.GGBT_wsf_view){var ji=window.GGBT_wsf_view.renderFullScreen(Xe,In.id),ve=document.getElementById("fullscreencontainer"),hn=jQuery(Xe).find(".fullscreencontent");hn.length>0?(ji.remove(),hn.attr("id","fullscreencontent").show(),jQuery(ve).append(hn),window.dispatchEvent(new Event("resize"))):Ke(ji,In,!1),window.GGBT_wsf_view.launchFullScreen(ve)}else Jt=pi,Ke(Xe,In,!1);if(!window.GGBT_wsf_view)for(sn=0;sn<Li.length;sn++)Xe.removeChild(Li[sn])},bi=Xe.getElementsByClassName("ggb_preview_play"),sn=0;sn<bi.length;sn++)bi[sn].addEventListener("click",$n,!1),bi[sn].addEventListener("ontouchstart",$n,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Xe),Rt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Oe=function(){var Xe=document.createElement("div");if(Xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var In='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Xn=document.createElement("style");Xn.styleSheet?Xn.styleSheet.cssText=In:Xn.appendChild(document.createTextNode(In)),document.getElementsByTagName("head")[0].appendChild(Xn)}return Xe},Ve=function(Xe,In,Xn,pi){var $n=document.createElement("div");$n.className="ggb_preview",$n.style.position="absolute",$n.style.zIndex="90",$n.style.width=Xe-2+"px",$n.style.height=In-2+"px",$n.style.top="0px",$n.style.left="0px",$n.style.overflow="hidden",$n.style.backgroundColor="white";var bi="lightgrey";Xn!==void 0&&(Xn==="none"?bi="transparent":bi=Xn),$n.style.border="1px solid "+bi;var sn=document.createElement("img");if(sn.style.position="relative",sn.style.zIndex="1000",sn.style.top="-1px",sn.style.left="-1px",lt!==null&&sn.setAttribute("src",lt),sn.style.opacity=.7,rt!==null){var Li,ji,ve;if(!pi){Li=document.createElement("img"),Li.style.position="absolute",Li.style.zIndex="1001",Li.style.opacity=1,sn.style.opacity=.3,ji=360,ji>Xe/4*3&&(ji=Xe/4*3),ve=ji/5.8,Li.setAttribute("src",rt),Li.setAttribute("width",ji),Li.setAttribute("height",ve);var hn=(Xe-ji)/2,Ae=(In-ve)/2;Li.style.left=hn+"px",Li.style.top=Ae+"px",$n.appendChild(Li)}}return $n.appendChild(sn),$n},_e=function(Xe){return Xe=Xe.toLowerCase(),Xe==="html5"||Xe==="screenshot"?Xe:"html5"},xe=["web","webSimple","web3d","tablet","tablet3d","phone"],ie=function(Xe,In){if(wt=Xe,In){be(wt,!0);return}var Xn=!ge;if(Xn){var pi=Mt(wt);!isNaN(pi)&&pi<4.4&&(Xn=!1)}var $n,bi;window.location.protocol.substr(0,4)==="http"?$n=window.location.protocol:$n="http:";var sn=wt.indexOf("//");sn>0?bi=wt:sn===0?bi=$n+wt:bi="https://www.geogebra.org/apps/5.2.814.0/";for(var Li in xe)if(wt.slice(xe[Li].length*-1)===xe[Li]||wt.slice((xe[Li].length+1)*-1)===xe[Li]+"/"){be(bi,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xn&&!Lt.is3D&&!Lt.AV&&!Lt.SV&&!Lt.CV&&!Lt.EV2&&!Lt.CP&&!Lt.PC&&!Lt.DA&&!Lt.FI&&!Lt.PV&&!ne(bt.showToolBar)&&!ne(bt.showMenuBar)&&!ne(bt.showAlgebraInput)&&!ne(bt.enableRightClick)&&(!bt.appName||bt.appName=="classic")?bi+="webSimple/":bi+="web3d/",be(bi,!1)},be=function(Xe,In){if(Xe.requirejs){Wt=Xe;return}Xe.slice(-1)!=="/"&&(Xe+="/"),Wt=Xe,In===null&&(In=Xe.indexOf("http")===-1),Gt=In,et="web.nocache.js",tt=!1;var Xn=Wt.split("/");Xn.length>1&&(!In&&Xn[Xn.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):xe.indexOf(Xn[Xn.length-2])>=0&&(et=Xn[Xn.length-2]+".nocache.js")),Xn=Xe.split("/"),wt=Xn[Xn.length-3],wt.substr(0,4)==="test"?wt=wt.substr(4,1)+"."+wt.substr(5,1):(wt.substr(0,3)==="war"||wt.substr(0,4)==="beta")&&(wt="5.0");var pi=parseFloat(wt);pi!==NaN&&pi<5&&Xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+pi+" is deprecated. Using version latest instead."),ie("5.0",In))},Fn=function(Xe,In){window.console&&window.console.log&&(!In||typeof In.showLogging=="undefined"||In.showLogging&&In.showLogging!=="false")&&console.log(Xe)};bt.material_id!==void 0?ae(Mn):Mn();function Mn(){var Xe=Pn;le!==null?Xe=le:parseFloat(Xe)<5&&(Xe="5.0"),ie(Xe,!1),Et!==null&&be(Et,Gt),re=!0}return di},GGBAppletUtils=function(){"use strict";function di(){return window.GGBT_wsf_edit!==void 0}function Pn(re,le){le!=1?(re.style.transformOrigin="0% 0% 0px",re.style.webkitTransformOrigin="0% 0% 0px",re.style.transform="scale("+le+","+le+")",re.style.webkitTransform="scale("+le+","+le+")",re.style.maxWidth="initial",re.querySelector(".ggb_preview")!==null&&(re.querySelector(".ggb_preview").style.maxWidth="initial"),re.querySelectorAll(".ggb_preview img")[0]!==void 0&&(re.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),re.querySelectorAll(".ggb_preview img")[1]!==void 0&&(re.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(re.style.transform="none",re.style.webkitTransform="none")}function bt(re,le,Et,Tt,ee,Ct){var Wt=null;if(Ct!=null&&Ct!="")for(var Gt=re.parentNode;Gt!=null;)if((" "+Gt.className+" ").indexOf(" "+Ct+" ")>-1){Wt=Gt;break}else Gt=Gt.parentNode;var Jt=0,wt=0,et=0,tt=0,lt=0,rt=0,ht=0;if(Wt)Jt=Wt.offsetWidth,wt=Math.max(Tt?Wt.offsetWidth:0,Wt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Jt=Math.min(window.innerWidth,document.documentElement.clientWidth),wt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Jt):(Jt=window.innerWidth,wt=window.innerHeight,et=window.innerWidth),re){var dt=re.getBoundingClientRect();dt.left>0&&dt.left<=Jt&&(ee===void 0||!ee)&&(document.dir==="rtl"?(lt=Jt-dt.width-dt.left,rt=et<=480?10:30):(rt=dt.left,lt=et<=480?10:30),tt=rt+lt)}if(re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var yt=re.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ht=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ht=40)}}return re&&((Et===void 0||!Et)&&le>0&&le+tt<Jt?Jt=le:Jt-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Et===void 0||!Et)&&(wt-=ht)),{width:Jt,height:wt}}function Lt(re,le,Et,Tt,ee){if(re.isScreenshoGenerator)return 1;var Ct=Tt!==void 0&&Tt,Wt=re.noScaleMargin!=null&&re.noScaleMargin,Gt=function(yt){return yt&&yt!=="false"},Jt=Gt(re.autoHeight),wt=bt(le,re.width,Et,Jt,Ct&&window.GGBT_wsf_view||Wt,ee),et=parseInt(wt.width),tt=re.width,lt=re.height;if(tt===void 0){var rt=le.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,lt=rt.offsetHeight)}var ht=et/tt,dt=Ct?1:wt.height/lt;return Et!==void 0&&!Et&&(ht=Math.min(1,ht),dt=Math.min(1,dt)),Math.min(ht,dt)}function ge(re,le,Et){var Tt=1,ee,Ct=!1;if(re.hasOwnProperty("allowUpscale")&&(Ct=re.allowUpscale),re.hasOwnProperty("scale")&&(Tt=parseFloat(re.scale),(isNaN(Tt)||Tt===null||Tt===0)&&(Tt=1),Tt>1&&(Ct=!0)),le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ct=!0),!(re.hasOwnProperty("disableAutoScale")&&re.disableAutoScale))ee=Lt(re,le,Ct,Et,re.scaleContainerClass);else return Tt;return Ct&&(!re.hasOwnProperty("scale")||Tt===1)?ee:Math.min(Tt,ee)}function se(re){var le=Math.min(window.innerWidth,document.documentElement.clientWidth),Et=Math.min(window.innerHeight,document.documentElement.clientHeight),Tt=re.getBoundingClientRect(),ee=(le-Tt.width)/2,Ct=(Et-Tt.height)/2;Ct<0&&(Ct=0),re.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee<40?re.style.left="40px":re.style.left=ee+"px",re.style.top=Ct+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ct<40?re.style.top="40px":re.style.top=Ct+"px",re.style.left=ee+"px")}function De(re,le){var Et=re.querySelector(".appletParameters");if(Et){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(le.id!==Et.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(re)}if(Et.parentElement&&/fullscreen/.test(Et.parentElement.className))return;var Tt=ge(le,re);di()&&Et.setAttribute("data-param-scale",Tt);for(var ee=null,Ct=0;Ct<re.childNodes.length;Ct++)if(re.childNodes[Ct].className!==void 0&&re.childNodes[Ct].className.match(/^applet_scaler/)){ee=re.childNodes[Ct];break}if(ee!==null&&ee.querySelector(".noscale")!==null)return;var Wt=le.id!==void 0?le.id:"ggbApplet",Gt=window[Wt];(Gt==null||!Gt.recalculateEnvironments)&&ee!==null&&!ee.className.match(/fullscreen/)&&(ee.parentNode.style.transform="",!isNaN(Tt)&&Tt!==1?(ee.parentNode.style.width=le.width*Tt+"px",ee.parentNode.style.height=le.height*Tt+"px",Pn(ee,Tt)):(Pn(ee,1),ee.parentNode.style.width=le.width+"px",ee.parentNode.style.height=le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&se(re),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Et).parents(".content-added-content"))}}return{responsiveResize:De,isFlexibleWorksheetEditor:di,positionCenter:se,getScale:ge,scaleElement:Pn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var di=n.location.search;return di.indexOf(J)!=-1||di.indexOf(K)!=-1}function q(di,Pn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(di){var Pn=s[L].bindings;s[L].bindings=function(){for(var bt=Pn?Pn():{},Lt=di[webModule.__softPermutationId],ge=O;ge<Lt.length;ge++){var se=Lt[ge];bt[se[O]]=se[P]}return bt}};var t;function u(){return v(),t}function v(){if(!t){var di=o.createElement(Q);if(di.id=L,di.style.cssText=R+S,di.tabIndex=-1,o.body.appendChild(di),t=di.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Pn=document.compatMode==U?V:W;t.write(Pn+X),t.close()}}}function w(di){function Pn(Lt){function ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var se=ge();if(se){Lt();return}function De(){if(!se){if(!ge())return;se=!0,Lt(),o.removeEventListener&&o.removeEventListener(Z,De,!1),re&&clearInterval(re)}}o.addEventListener&&o.addEventListener(Z,De,!1);var re=setInterval(function(){De()},$)}function bt(Lt){var ge=u(),se=ge.body,De=ge.createElement(_);De.language=ab,De.crossOrigin=W,De.src=Lt,webModule.__errFn&&(De.onerror=function(){webModule.__errFn(L,new Error(bb+Lt))}),se.appendChild(De)}Pn(function(){bt(di)})}webModule.__startLoadingFragment=function(di){return C(di)},webModule.__installRunAsyncCode=function(di){var Pn=u(),bt=Pn.body,Lt=Pn.createElement(_);Lt.language=ab,Lt.text=di,bt.appendChild(Lt),bt.removeChild(Lt)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(di){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(di){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(di){var Pn=c[di];return Pn==null?null:Pn},r=d,webModule.__errFn=e}function B(){function di(re){var le=re.lastIndexOf(rb);le==-1&&(le=re.length);var Et=re.indexOf(sb);Et==-1&&(Et=re.length);var Tt=re.lastIndexOf(tb,Math.min(Et,le));return Tt>=O?re.substring(O,Tt+P):W}function Pn(re){if(!re.match(/^\w+:\/\//)){var le=o.createElement(ub);le.src=re+vb,re=di(le.src)}return re}function bt(){var re=__gwt_getMetaProperty(wb);return re!=null?re:W}function Lt(){for(var re=o.getElementsByTagName(_),le=O;le<re.length;++le)if(re[le].src.indexOf(xb)!=-1)return di(re[le].src);return W}function ge(){var re=o.getElementsByTagName(yb);return re.length>O?re[re.length-P].href:W}function se(){var re=o.location;return re.href==re.protocol+zb+re.host+re.pathname+re.search+re.hash}var De=bt();return De==W&&(De=Lt()),De==W&&(De=ge()),De==W&&se()&&(De=di(o.location.href)),De=Pn(De),De}function C(di){return di.match(/^\//)||di.match(/^[a-zA-Z]+:\/\//)?di:webModule.__moduleBase+di}function D(){var di=[],Pn=O,bt=[],Lt=[];function ge(re){var le=Lt[re](),Et=bt[re];if(le in Et)return le;var Tt=[];for(var ee in Et)Tt[Et[ee]]=ee;throw r&&r(re,Tt,le),null}if(__gwt_isKnownPropertyValue=function(re,le){return le in bt[re]},webModule.__getPropMap=function(){var re={};for(var le in bt)bt.hasOwnProperty(le)&&(re[le]=ge(le));return re},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var se;try{se=Cb;var De=se.indexOf(Db);De!=-1&&(Pn=parseInt(se.substring(De+P),$),se=se.substring(O,De))}catch(re){}return webModule.__softPermutationId=Pn,C(se+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(di,Pn,bt){"use strict";bt.d(Pn,{Ax:function(){return De},Ds:function(){return re},KI:function(){return Et},SI:function(){return se},f1:function(){return ge}});var Lt=bt(10148);function ge(Tt){let ee=!0;if(Tt.length>0){for(let Ct=0;Ct<Tt.length;Ct++)if(Tt[Ct].compile_success==0||!Tt[Ct].compile_success){ee=!1;break}}else ee=!1;return ee}function se(Tt,ee=""){let Ct=[];for(let Wt=0;Wt<Tt.length;Wt++){let Gt=Tt[Wt],Jt=ee?`${ee}/${Gt.name}`:`${Gt.name}`;Ct.push({title:Gt.name,type:Gt.type,isLeaf:Gt.type!=="tree",key:Jt})}return Ct}function De(Tt,ee,Ct){for(let Wt=0;Wt<Tt.length;Wt++){let Gt=Tt[Wt];if(Gt.key===ee){Gt.children=Ct;break}Gt.children&&De(Gt.children,ee,Ct)}return Tt}function re(Tt,ee,Ct){let Wt;return function(){let Gt=this,Jt=arguments,wt=function(){Wt=null,Ct||Tt.apply(Gt,Jt)},et=Ct&&!Wt;clearTimeout(Wt),Wt=setTimeout(wt,ee),et&&Tt.apply(Gt,Jt)}}const le=!0,Et=Lt.Z.API_SERVER},24802:function(di,Pn,bt){"use strict";bt.d(Pn,{ij:function(){return ht},_s:function(){return rt},Uf:function(){return lt},ZP:function(){return yt}});var Lt=bt(59301),ge={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},se=bt(92310),De=bt.n(se),re=bt(42441),le=bt(6848),Et=bt(78485),Tt=bt(71418),ee=bt(97267),Ct=bt(10148),Wt=Object.defineProperty,Gt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,et=(Mt,jt,Rt)=>jt in Mt?Wt(Mt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Mt[jt]=Rt,tt=(Mt,jt)=>{for(var Rt in jt||(jt={}))Jt.call(jt,Rt)&&et(Mt,Rt,jt[Rt]);if(Gt)for(var Rt of Gt(jt))wt.call(jt,Rt)&&et(Mt,Rt,jt[Rt]);return Mt};const lt=(Mt={})=>{var jt,Rt,ae,he;let pe=(jt=Mt==null?void 0:Mt.emotion)==null?void 0:jt.map(Vt=>tt({value:Vt==null?void 0:Vt.rate},Vt)),Te=(Rt=Mt==null?void 0:Mt.focus)==null?void 0:Rt.map(Vt=>tt({value:Vt==null?void 0:Vt.rate},Vt)),ne=(ae=Mt==null?void 0:Mt.action)==null?void 0:ae.map(Vt=>tt({value:Vt==null?void 0:Vt.rate},Vt)),Ke=(he=Mt==null?void 0:Mt.intention)==null?void 0:he.map(Vt=>tt({value:Vt==null?void 0:Vt.rate},Vt));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:pe||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:Te||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:ne||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:Ke||[]}]},rt=({className:Mt,dataSource:jt=[],col:Rt=4,right:ae,bottom:he=23,precision:pe=0,wrapWidth:Te=1200})=>{const ne=(Vt="",$e,Ge="--")=>Vt?(Vt==null?void 0:Vt.length)>$e?(Vt==null?void 0:Vt.slice(0,$e-1))+"...":Vt:Ge,Ke=Math.floor((Te-(Rt-1)*ae)/Rt);return Lt.createElement("div",{className:De()(ge.list,Mt)},!!(jt!=null&&jt.length)&&(jt==null?void 0:jt.map((Vt,$e)=>{const{cover_pic:Ge,created_at:Oe,emotion:Ve,action:_e,intention:xe,focus:ie}=Vt;return Lt.createElement("div",{key:$e,className:ge.wrap,style:{width:Ke,marginRight:(1+$e)%Rt===0?0:ae+pe,marginBottom:he}},Lt.createElement("div",{className:ge.img},Lt.createElement("img",{src:`${Ct.Z.API_SERVER}${Ge}`}),Lt.createElement("div",{className:ge.tips},Lt.createElement("div",null,Lt.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),Lt.createElement("span",null,Oe))),Lt.createElement("div",{className:ge.footer},Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-biaoqing"}),Lt.createElement("span",null,"\u8868\u60C5\uFF1A",Lt.createElement(le.Z,{title:Ve},Lt.createElement("span",{className:"c-grey-333"},ne(Ve,4))))),Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-hangwei"}),Lt.createElement("span",null,"\u884C\u4E3A\uFF1A",Lt.createElement(le.Z,{title:_e},Lt.createElement("span",{className:"c-grey-333"},ne(_e,4)))))),Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-yitu"}),Lt.createElement("span",null,"\u610F\u56FE\uFF1A",Lt.createElement(le.Z,{title:xe},Lt.createElement("span",{className:"c-grey-333"},ne(xe,4))))),Lt.createElement("li",null,Lt.createElement("i",{className:"iconfont icon-zhuangtai"}),Lt.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",Lt.createElement(le.Z,{title:ie},Lt.createElement("span",{className:"c-grey-333"},ne(ie,3))))))))})))},ht=({className:Mt,style:jt,title:Rt,hideBar:ae=!1,children:he,customText:pe="",noDataText:Te="",emptyData:ne=[],loading:Ke,actionAnalysis:Vt})=>{var $e,Ge;const Oe=(($e=ne==null?void 0:ne[0])==null?void 0:$e.every(_e=>{var xe;return!((xe=_e==null?void 0:_e.data)!=null&&xe.length)}))&&!((Ge=ne==null?void 0:ne[1])!=null&&Ge.length)||!Vt,Ve=Vt?Te:pe;return Lt.createElement(Et.Z,{loading:Ke,active:!0},Oe&&Lt.createElement("div",{className:De()(ge.noData,Mt),style:jt},!!Rt&&Lt.createElement("div",{className:ge.title},!ae&&Lt.createElement("b",null),Lt.createElement("span",null,Rt)),Lt.createElement("div",{className:ge.itemWrap},Lt.createElement(ee.Z,{customText:Ve}))),!Oe&&he)};var yt=({className:Mt,style:jt,data:Rt=[],title:ae,hideBar:he=!1,loading:pe=!1})=>Lt.createElement("div",{className:De()(ge.analysis,Mt),style:jt},!!ae&&Lt.createElement("div",{className:ge.title},!he&&Lt.createElement("b",null),Lt.createElement("span",null,ae)),Lt.createElement(Tt.Z,{spinning:pe},Lt.createElement("div",{className:ge.itemWrap},Rt==null?void 0:Rt.map((Te,ne)=>Lt.createElement("div",{className:ge.item,key:ne},Lt.createElement(re.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:Te==null?void 0:Te.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(Ke){for(let Vt in Te==null?void 0:Te.data)if(Ke==(Te==null?void 0:Te.data[Vt].name))return Ke+" "+(Te==null?void 0:Te.data[Vt].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:Te==null?void 0:Te.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:Te==null?void 0:Te.data}]},style:{height:145}}))))))},65983:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Be}});var Lt=bt(59301),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},se=bt(92310),De=bt.n(se),re=bt(71418);var le=function($t,Pt){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,Zt){mt.__proto__=Zt}||function(mt,Zt){for(var Se in Zt)Object.prototype.hasOwnProperty.call(Zt,Se)&&(mt[Se]=Zt[Se])})($t,Pt)};function Et($t,Pt){function mt(){this.constructor=$t}le($t,Pt),$t.prototype=Pt===null?Object.create(Pt):(mt.prototype=Pt.prototype,new mt)}function Tt($t,Pt,mt,Zt){return new(mt||(mt=Promise))(function(Se,Dt){function Ie(xn){try{zn(Zt.next(xn))}catch(li){Dt(li)}}function nn(xn){try{zn(Zt.throw(xn))}catch(li){Dt(li)}}function zn(xn){var li;xn.done?Se(xn.value):(li=xn.value,li instanceof mt?li:new mt(function(Qi){Qi(li)})).then(Ie,nn)}zn((Zt=Zt.apply($t,Pt||[])).next())})}function ee($t,Pt){var mt,Zt,Se,Dt,Ie={label:0,sent:function(){if(1&Se[0])throw Se[1];return Se[1]},trys:[],ops:[]};return Dt={next:nn(0),throw:nn(1),return:nn(2)},typeof Symbol=="function"&&(Dt[Symbol.iterator]=function(){return this}),Dt;function nn(zn){return function(xn){return function(li){if(mt)throw new TypeError("Generator is already executing.");for(;Ie;)try{if(mt=1,Zt&&(Se=2&li[0]?Zt.return:li[0]?Zt.throw||((Se=Zt.return)&&Se.call(Zt),0):Zt.next)&&!(Se=Se.call(Zt,li[1])).done)return Se;switch(Zt=0,Se&&(li=[2&li[0],Se.value]),li[0]){case 0:case 1:Se=li;break;case 4:return Ie.label++,{value:li[1],done:!1};case 5:Ie.label++,Zt=li[1],li=[0];continue;case 7:li=Ie.ops.pop(),Ie.trys.pop();continue;default:if(Se=Ie.trys,!((Se=Se.length>0&&Se[Se.length-1])||li[0]!==6&&li[0]!==2)){Ie=0;continue}if(li[0]===3&&(!Se||li[1]>Se[0]&&li[1]<Se[3])){Ie.label=li[1];break}if(li[0]===6&&Ie.label<Se[1]){Ie.label=Se[1],Se=li;break}if(Se&&Ie.label<Se[2]){Ie.label=Se[2],Ie.ops.push(li);break}Se[2]&&Ie.ops.pop(),Ie.trys.pop();continue}li=Pt.call($t,Ie)}catch(Qi){li=[6,Qi],Zt=0}finally{mt=Se=0}if(5&li[0])throw li[1];return{value:li[0]?li[1]:void 0,done:!0}}([zn,xn])}}}function Ct(){for(var $t=0,Pt=0,mt=arguments.length;Pt<mt;Pt++)$t+=arguments[Pt].length;var Zt=Array($t),Se=0;for(Pt=0;Pt<mt;Pt++)for(var Dt=arguments[Pt],Ie=0,nn=Dt.length;Ie<nn;Ie++,Se++)Zt[Se]=Dt[Ie];return Zt}var Wt=function(){function $t(){}return $t.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},$t.setAttributes=function(Pt,mt){for(var Zt=0,Se=mt;Zt<Se.length;Zt++){var Dt=Se[Zt],Ie=Dt[0],nn=Dt[1];Pt.setAttribute(Ie,nn)}},$t.createRect=function(Pt,mt,Zt){var Se=document.createElementNS("http://www.w3.org/2000/svg","rect");return Se.setAttribute("width",Pt.toString()),Se.setAttribute("height",mt.toString()),Zt&&$t.setAttributes(Se,Zt),Se},$t.createLine=function(Pt,mt,Zt,Se,Dt){var Ie=document.createElementNS("http://www.w3.org/2000/svg","line");return Ie.setAttribute("x1",Pt.toString()),Ie.setAttribute("y1",mt.toString()),Ie.setAttribute("x2",Zt.toString()),Ie.setAttribute("y2",Se.toString()),Dt&&$t.setAttributes(Ie,Dt),Ie},$t.createPolygon=function(Pt,mt){var Zt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Zt.setAttribute("points",Pt),mt&&$t.setAttributes(Zt,mt),Zt},$t.createCircle=function(Pt,mt){var Zt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Zt.setAttribute("cx",(Pt/2).toString()),Zt.setAttribute("cy",(Pt/2).toString()),Zt.setAttribute("r",Pt.toString()),mt&&$t.setAttributes(Zt,mt),Zt},$t.createEllipse=function(Pt,mt,Zt){var Se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Se.setAttribute("cx",(Pt/2).toString()),Se.setAttribute("cy",(mt/2).toString()),Se.setAttribute("rx",(Pt/2).toString()),Se.setAttribute("ry",(mt/2).toString()),Zt&&$t.setAttributes(Se,Zt),Se},$t.createGroup=function(Pt){var mt=document.createElementNS("http://www.w3.org/2000/svg","g");return Pt&&$t.setAttributes(mt,Pt),mt},$t.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},$t.createMarker=function(Pt,mt,Zt,Se,Dt,Ie,nn){var zn=document.createElementNS("http://www.w3.org/2000/svg","marker");return $t.setAttributes(zn,[["id",Pt],["orient",mt],["markerWidth",Zt.toString()],["markerHeight",Se.toString()],["refX",Dt.toString()],["refY",Ie.toString()]]),zn.appendChild(nn),zn},$t.createText=function(Pt){var mt=document.createElementNS("http://www.w3.org/2000/svg","text");return mt.setAttribute("x","0"),mt.setAttribute("y","0"),Pt&&$t.setAttributes(mt,Pt),mt},$t.createTSpan=function(Pt,mt){var Zt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Zt.textContent=Pt,mt&&$t.setAttributes(Zt,mt),Zt},$t.createImage=function(Pt){var mt=document.createElementNS("http://www.w3.org/2000/svg","image");return Pt&&$t.setAttributes(mt,Pt),mt},$t.createPoint=function(Pt,mt){var Zt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Zt.x=Pt,Zt.y=mt,Zt},$t.createPath=function(Pt,mt){var Zt=document.createElementNS("http://www.w3.org/2000/svg","path");return Zt.setAttribute("d",Pt),mt&&$t.setAttributes(Zt,mt),Zt},$t}(),Gt=function(){function $t(){}return $t.addKey=function(Pt){$t.key=Pt},Object.defineProperty($t,"isLicensed",{get:function(){return!!$t.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test($t.key)},enumerable:!1,configurable:!0}),$t}(),Jt=function(){function $t(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return $t.prototype.rasterize=function(Pt,mt,Zt){var Se=this;return new Promise(function(Dt){var Ie=Zt!==void 0?Zt:document.createElement("canvas");Pt===null&&(Se.markersOnly=!0,Se.naturalSize=!1);var nn=document.createElementNS("http://www.w3.org/2000/svg","svg");nn.setAttribute("xmlns","http://www.w3.org/2000/svg"),nn.setAttribute("width",mt.width.baseVal.valueAsString),nn.setAttribute("height",mt.height.baseVal.valueAsString),nn.setAttribute("viewBox","0 0 "+mt.viewBox.baseVal.width.toString()+" "+mt.viewBox.baseVal.height.toString()),nn.innerHTML=mt.innerHTML,Se.naturalSize===!0?(nn.width.baseVal.value=Pt.naturalWidth,nn.height.baseVal.value=Pt.naturalHeight):Se.width!==void 0&&Se.height!==void 0&&(nn.width.baseVal.value=Se.width,nn.height.baseVal.value=Se.height),Ie.width=nn.width.baseVal.value,Ie.height=nn.height.baseVal.value;var zn=nn.outerHTML,xn=Ie.getContext("2d");Se.markersOnly!==!0&&xn.drawImage(Pt,0,0,Ie.width,Ie.height);var li=window.URL,Qi=new Image(Ie.width,Ie.height);Qi.setAttribute("crossOrigin","anonymous");var Wi=new Blob([zn],{type:"image/svg+xml"}),pr=li.createObjectURL(Wi);Qi.onload=function(){xn.drawImage(Qi,0,0),li.revokeObjectURL(pr);var xr=Ie.toDataURL(Se.imageType,Se.imageQuality);Dt(xr)},Qi.src=pr})},$t}(),wt=function(){},et=function(){function $t(Pt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Pt+"_"}return Object.defineProperty($t.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),$t.prototype.addClass=function(Pt){return this.styleSheet===void 0&&this.addStyleSheet(),Pt.name=""+this.classNamePrefix+Pt.localName,this.classes.push(Pt),this.styleSheet.sheet.insertRule("."+Pt.name+" {"+Pt.style+"}",this.styleSheet.sheet.cssRules.length),Pt},$t.prototype.addRule=function(Pt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Pt),this.styleSheet.sheet.insertRule(Pt.selector+" {"+Pt.style+"}",this.styleSheet.sheet.cssRules.length)},$t.prototype.addStyleSheet=function(){var Pt;this.styleSheet=document.createElement("style"),((Pt=this.styleSheetRoot)!==null&&Pt!==void 0?Pt:document.head).appendChild(this.styleSheet),this.addRule(new tt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new lt("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new lt("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},$t.prototype.removeStyleSheet=function(){var Pt;this.styleSheet&&(((Pt=this.styleSheetRoot)!==null&&Pt!==void 0?Pt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},$t}(),tt=function($t,Pt){this.selector=$t,this.style=Pt},lt=function($t,Pt){this.localName=$t,this.style=Pt},rt=function(){function $t(Pt,mt,Zt,Se,Dt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Pt,this.displayMode=mt,this.markerItems=Zt,this.uiStyleSettings=Se,this.styles=Dt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return $t.prototype.show=function(Pt){var mt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Zt=document.createElement("div");Zt.className=this.toolbarBlockStyleClass.name,Zt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Zt),this.addActionButton(Zt,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Zt,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Zt,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Zt,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Zt,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Zt,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Zt,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Zt,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Dt){var Ie=document.createElement("div");Ie.className=""+mt.toolbarButtonStyleClass.name,Ie.setAttribute("data-type-name",Dt.typeName),Ie.innerHTML=Dt.icon,Ie.addEventListener("click",function(){mt.markerToolbarButtonClicked(Ie,Dt)}),mt.buttons.push(Ie),mt.markerButtons.push(Ie)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Se=document.createElement("div");Se.className=this.toolbarBlockStyleClass.name,Se.style.whiteSpace="nowrap",Se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Se),this.addActionButton(Se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},$t.prototype.addButtonClickListener=function(Pt){this.buttonClickListeners.push(Pt)},$t.prototype.removeButtonClickListener=function(Pt){this.buttonClickListeners.indexOf(Pt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Pt),1)},$t.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},$t.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Pt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var mt=0;mt<this.markerButtons.length;mt++)mt<Pt||mt===Pt&&this.markerButtons.length-1===Pt?this.markerButtonBlock.appendChild(this.markerButtons[mt]):(mt===Pt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[mt]))}},$t.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},$t.prototype.resetButtonStyles=function(){var Pt=this;this.buttons.forEach(function(mt){mt.className=mt.className.replace(Pt.uiStyleSettings.toolbarButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarButtonStyleColorsClassName:Pt.toolbarButtonStyleColorsClass.name,"").trim(),mt.className=mt.className.replace(Pt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Pt.toolbarActiveButtonStyleColorsClass.name,"").trim(),mt.className+=" "+(Pt.uiStyleSettings.toolbarButtonStyleColorsClassName?Pt.uiStyleSettings.toolbarButtonStyleColorsClassName:Pt.toolbarButtonStyleColorsClass.name)})},$t.prototype.addActionButton=function(Pt,mt,Zt){var Se=this,Dt=document.createElement("div");switch(Dt.className=""+this.toolbarButtonStyleClass.name,Dt.innerHTML=mt,Dt.setAttribute("data-action",Zt),Dt.addEventListener("click",function(){Se.actionToolbarButtonClicked(Dt,Zt)}),Zt){case"select":Dt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Dt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Dt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Dt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Dt.style.fill=this.uiStyleSettings.closeButtonColor}Pt.appendChild(Dt),this.buttons.push(Dt)},$t.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new lt("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new lt("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new lt("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new lt("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new lt("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Pt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new lt("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Pt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Pt)+`px;
padding: `+Pt+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new lt("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new lt("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},$t.prototype.markerToolbarButtonClicked=function(Pt,mt){this.setActiveButton(Pt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Zt){return Zt("marker",mt)}),this.markerButtonOverflowBlock.style.display="none"},$t.prototype.actionToolbarButtonClicked=function(Pt,mt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Zt){return Zt("action",mt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},$t.prototype.setActiveButton=function(Pt){this.resetButtonStyles(),Pt.className=Pt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Pt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},$t.prototype.setActiveMarkerButton=function(Pt){var mt=this.markerButtons.find(function(Zt){return Zt.getAttribute("data-type-name")===Pt});mt&&this.setActiveButton(mt)},$t.prototype.setCurrentMarker=function(Pt){var mt=this;this.currentMarker=Pt,this.buttons.filter(function(Zt){return/delete|notes/.test(Zt.getAttribute("data-action"))}).forEach(function(Zt){mt.currentMarker===void 0?(Zt.style.fillOpacity="0.4",Zt.style.pointerEvents="none"):(Zt.style.fillOpacity="1",Zt.style.pointerEvents="all")})},$t}(),ht=function(){function $t(Pt,mt,Zt,Se){this.panels=[],this.panelButtons=[],this.markerjsContainer=Pt,this.displayMode=mt,this.uiStyleSettings=Zt,this.styles=Se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return $t.prototype.addStyles=function(){var Pt;this.toolboxStyleClass=this.styles.addClass(new lt("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new lt("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var mt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new lt("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new lt("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new lt("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new lt("toolbox-panel-row_colors",`
background-color: `+((Pt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Pt!==void 0?Pt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new lt("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px;
padding: `+mt+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new lt("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new lt("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},$t.prototype.show=function(Pt){var mt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Pt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},$t.prototype.setPanelButtons=function(Pt){var mt,Zt,Se=this;this.panels=Pt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Zt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Zt!==void 0?Zt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Dt){var Ie;Dt.uiStyleSettings=Se.uiStyleSettings;var nn=document.createElement("div");nn.className=Se.toolboxButtonStyleClass.name+" "+((Ie=Se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:Se.toolboxButtonStyleColorsClass.name),nn.innerHTML=Dt.icon,nn.title=Dt.title,nn.addEventListener("click",function(){Se.panelButtonClick(Dt)}),Se.panelButtons.push(nn),Se.buttonRow.appendChild(nn)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},$t.prototype.panelButtonClick=function(Pt){var mt=this,Zt=-1;if(Pt!==this.activePanel){Zt=this.panels.indexOf(Pt),this.panelRow.innerHTML="";var Se=Pt.getUi();Se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Pt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){mt.displayMode==="inline"?mt.panelRow.style.display="none":mt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Dt,Ie){var nn,zn;Dt.className=mt.toolboxButtonStyleClass.name+" "+(Ie===Zt?""+((nn=mt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&nn!==void 0?nn:mt.toolboxActiveButtonStyleColorsClass.name):""+((zn=mt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&zn!==void 0?zn:mt.toolboxButtonStyleColorsClass.name))})},$t}(),dt=function($t,Pt){this.title=$t,this.icon=Pt},yt=function($t){function Pt(mt,Zt,Se,Dt){var Ie=$t.call(this,mt,Dt||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Ie.colors=[],Ie.addTransparent=!1,Ie.colorBoxes=[],Ie.colors=Zt,Ie.currentColor=Se,Ie.setCurrentColor=Ie.setCurrentColor.bind(Ie),Ie.getColorBox=Ie.getColorBox.bind(Ie),Ie}return Et(Pt,$t),Pt.prototype.getUi=function(){var mt=this,Zt=document.createElement("div");return Zt.style.overflow="hidden",Zt.style.whiteSpace="nowrap",this.colors.forEach(function(Se){var Dt=mt.getColorBox(Se);Zt.appendChild(Dt),mt.colorBoxes.push(Dt)}),Zt},Pt.prototype.getColorBox=function(mt){var Zt=this,Se=this.uiStyleSettings.toolbarHeight/4,Dt=this.uiStyleSettings.toolbarHeight-Se,Ie=document.createElement("div");Ie.style.display="inline-block",Ie.style.boxSizing="content-box",Ie.style.width=Dt-2+"px",Ie.style.height=Dt-2+"px",Ie.style.padding="1px",Ie.style.marginRight="2px",Ie.style.marginBottom="2px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderRadius=(Dt+2)/2+"px",Ie.style.borderColor=mt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){Zt.setCurrentColor(mt,Ie)});var nn=document.createElement("div");return nn.style.display="inline-block",nn.style.width=Dt-2+"px",nn.style.height=Dt-2+"px",nn.style.backgroundColor=mt,nn.style.borderRadius=Dt/2+"px",mt==="transparent"&&(nn.style.fill=this.uiStyleSettings.toolboxAccentColor,nn.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),Ie.appendChild(nn),Ie},Pt.prototype.setCurrentColor=function(mt,Zt){var Se=this;this.currentColor=mt,this.colorBoxes.forEach(function(Dt){Dt.style.borderColor=Dt===Zt?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(mt)},Pt}(dt),Mt=function(){function $t(Pt,mt,Zt){this._state="new",this._isSelected=!1,this._container=Pt,this._overlayContainer=mt,this.globalSettings=Zt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty($t.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),$t.prototype.ownsTarget=function(Pt){return!1},Object.defineProperty($t.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),$t.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},$t.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},$t.prototype.pointerDown=function(Pt,mt){},$t.prototype.dblClick=function(Pt,mt){},$t.prototype.manipulate=function(Pt){},$t.prototype.pointerUp=function(Pt){this.stateChanged()},$t.prototype.dispose=function(){},$t.prototype.addMarkerVisualToContainer=function(Pt){this.container.childNodes.length>0?this.container.insertBefore(Pt,this.container.childNodes[0]):this.container.appendChild(Pt)},$t.prototype.getState=function(){return{typeName:$t.typeName,state:this.state,notes:this.notes}},$t.prototype.restoreState=function(Pt){this._state=Pt.state,this.notes=Pt.notes},$t.prototype.scale=function(Pt,mt){},$t.prototype.colorChanged=function(Pt){this.onColorChanged&&this.onColorChanged(Pt),this.stateChanged()},$t.prototype.fillColorChanged=function(Pt){this.onFillColorChanged&&this.onFillColorChanged(Pt),this.stateChanged()},$t.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Pt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Pt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Pt)&&this.onStateChanged(this)}},$t.typeName="MarkerBase",$t}(),jt=function(){function $t(){this.findGripByVisual=this.findGripByVisual.bind(this)}return $t.prototype.findGripByVisual=function(Pt){return this.topLeft.ownsTarget(Pt)?this.topLeft:this.topCenter.ownsTarget(Pt)?this.topCenter:this.topRight.ownsTarget(Pt)?this.topRight:this.centerLeft.ownsTarget(Pt)?this.centerLeft:this.centerRight.ownsTarget(Pt)?this.centerRight:this.bottomLeft.ownsTarget(Pt)?this.bottomLeft:this.bottomCenter.ownsTarget(Pt)?this.bottomCenter:this.bottomRight.ownsTarget(Pt)?this.bottomRight:void 0},$t}(),Rt=function(){function $t(){this.GRIP_SIZE=10,this.visual=Wt.createGroup(),this.visual.appendChild(Wt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Wt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return $t.prototype.ownsTarget=function(Pt){return Pt===this.visual||Pt===this.visual.childNodes[0]||Pt===this.visual.childNodes[1]},$t}(),ae=function(){function $t(){}return $t.toITransformMatrix=function(Pt){return{a:Pt.a,b:Pt.b,c:Pt.c,d:Pt.d,e:Pt.e,f:Pt.f}},$t.toSVGMatrix=function(Pt,mt){return Pt.a=mt.a,Pt.b=mt.b,Pt.c=mt.c,Pt.d=mt.d,Pt.e=mt.e,Pt.f=mt.f,Pt},$t}(),he=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.left=0,Dt.top=0,Dt.width=0,Dt.height=0,Dt.defaultSize={x:50,y:20},Dt.offsetX=0,Dt.offsetY=0,Dt.rotationAngle=0,Dt.CB_DISTANCE=10,Dt._suppressMarkerCreateEvent=!1,Dt.container.transform.baseVal.appendItem(Wt.createTransform()),Dt.setupControlBox(),Dt}return Et(Pt,$t),Object.defineProperty(Pt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"visual",{get:function(){return this._visual},set:function(mt){this._visual=mt;var Zt=Wt.createTransform();this._visual.transform.baseVal.appendItem(Zt)},enumerable:!1,configurable:!0}),Pt.prototype.ownsTarget=function(mt){return!!$t.prototype.ownsTarget.call(this,mt)||!!(this.controlGrips.findGripByVisual(mt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(mt))},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.state==="new"&&(this.left=mt.x,this.top=mt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Se=this.unrotatePoint(mt);if(this.manipulationStartX=Se.x,this.manipulationStartY=Se.y,this.offsetX=Se.x-this.left,this.offsetY=Se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Zt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Zt)){this.activeGrip=this.rotatorGrip;var Dt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Dt.x-this.width/2,this.top=Dt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ie=this.container.transform.baseVal.getItem(0);Ie.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ie,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Pt.prototype.pointerUp=function(mt){var Zt=this.state;$t.prototype.pointerUp.call(this,mt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(mt),this._state="select",Zt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Pt.prototype.moveVisual=function(mt){this.visual.style.transform="translate("+mt.x+"px, "+mt.y+"px)"},Pt.prototype.manipulate=function(mt){var Zt=this.unrotatePoint(mt);this.state==="creating"?this.resize(mt):this.state==="move"?(this.left=this.manipulationStartLeft+(Zt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Zt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Zt):this.state==="rotate"&&this.rotate(mt)},Pt.prototype.resize=function(mt){var Zt=this.manipulationStartLeft,Se=this.manipulationStartWidth,Dt=this.manipulationStartTop,Ie=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Zt=this.manipulationStartLeft+mt.x-this.manipulationStartX,Se=this.manipulationStartWidth+this.manipulationStartLeft-Zt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Se=this.manipulationStartWidth+mt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Dt=this.manipulationStartTop+mt.y-this.manipulationStartY,Ie=this.manipulationStartHeight+this.manipulationStartTop-Dt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ie=this.manipulationStartHeight+mt.y-this.manipulationStartY}Se>=0?(this.left=Zt,this.width=Se):(this.left=Zt+Se,this.width=-Se),Ie>=0?(this.top=Dt,this.height=Ie):(this.top=Dt+Ie,this.height=-Ie),this.setSize()},Pt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Pt.prototype.rotate=function(mt){if(Math.abs(mt.x-this.centerX)>.1){var Zt=Math.sign(mt.x-this.centerX);this.rotationAngle=180*Math.atan((mt.y-this.centerY)/(mt.x-this.centerX))/Math.PI+90*Zt,this.applyRotation()}},Pt.prototype.applyRotation=function(){var mt=this.container.transform.baseVal.getItem(0);mt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(mt,0)},Pt.prototype.rotatePoint=function(mt){if(this.rotationAngle===0)return mt;var Zt=this.container.getCTM(),Se=Wt.createPoint(mt.x,mt.y);return{x:(Se=Se.matrixTransform(Zt)).x,y:Se.y}},Pt.prototype.unrotatePoint=function(mt){if(this.rotationAngle===0)return mt;var Zt=this.container.getCTM();Zt=Zt.inverse();var Se=Wt.createPoint(mt.x,mt.y);return{x:(Se=Se.matrixTransform(Zt)).x,y:Se.y}},Pt.prototype.select=function(){$t.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pt.prototype.deselect=function(){$t.prototype.deselect.call(this),this.controlBox.style.display="none"},Pt.prototype.setupControlBox=function(){this.controlBox=Wt.createGroup();var mt=Wt.createTransform();mt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(mt),this.container.appendChild(this.controlBox),this.controlRect=Wt.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Wt.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new jt,this.addControlGrips(),this.controlBox.style.display="none"},Pt.prototype.adjustControlBox=function(){var mt=this.controlBox.transform.baseVal.getItem(0);mt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(mt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Pt.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Pt.prototype.createGrip=function(){var mt=new Rt;return mt.visual.transform.baseVal.appendItem(Wt.createTransform()),this.controlBox.appendChild(mt.visual),mt},Pt.prototype.positionGrips=function(){var mt=this.controlGrips.topLeft.GRIP_SIZE,Zt=-mt/2,Se=Zt,Dt=(this.width+this.CB_DISTANCE)/2-mt/2,Ie=(this.height+this.CB_DISTANCE)/2-mt/2,nn=this.height+this.CB_DISTANCE-mt/2,zn=this.width+this.CB_DISTANCE-mt/2;this.positionGrip(this.controlGrips.topLeft.visual,Zt,Se),this.positionGrip(this.controlGrips.topCenter.visual,Dt,Se),this.positionGrip(this.controlGrips.topRight.visual,zn,Se),this.positionGrip(this.controlGrips.centerLeft.visual,Zt,Ie),this.positionGrip(this.controlGrips.centerRight.visual,zn,Ie),this.positionGrip(this.controlGrips.bottomLeft.visual,Zt,nn),this.positionGrip(this.controlGrips.bottomCenter.visual,Dt,nn),this.positionGrip(this.controlGrips.bottomRight.visual,zn,nn),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Dt,Se-3*this.CB_DISTANCE)},Pt.prototype.positionGrip=function(mt,Zt,Se){var Dt=mt.transform.baseVal.getItem(0);Dt.setTranslate(Zt,Se),mt.transform.baseVal.replaceItem(Dt,0)},Pt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Pt.prototype.showControlBox=function(){this.controlBox.style.display=""},Pt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ae.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ae.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},$t.prototype.getState.call(this))},Pt.prototype.restoreState=function(mt){$t.prototype.restoreState.call(this,mt);var Zt=mt;this.left=Zt.left,this.top=Zt.top,this.width=Zt.width,this.height=Zt.height,this.rotationAngle=Zt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ae.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Zt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ae.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Zt.containerTransformMatrix))},Pt.prototype.scale=function(mt,Zt){$t.prototype.scale.call(this,mt,Zt);var Se=this.rotatePoint({x:this.left,y:this.top}),Dt=this.unrotatePoint({x:Se.x*mt,y:Se.y*Zt});this.left=Dt.x,this.top=Dt.y,this.width=this.width*mt,this.height=this.height*Zt,this.adjustControlBox()},Pt}(Mt),pe=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.fillColor="transparent",Dt.strokeColor="transparent",Dt.strokeWidth=0,Dt.strokeDasharray="",Dt.opacity=1,Dt.setStrokeColor=Dt.setStrokeColor.bind(Dt),Dt.setFillColor=Dt.setFillColor.bind(Dt),Dt.setStrokeWidth=Dt.setStrokeWidth.bind(Dt),Dt.setStrokeDasharray=Dt.setStrokeDasharray.bind(Dt),Dt.createVisual=Dt.createVisual.bind(Dt),Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return!(!$t.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},Pt.prototype.createVisual=function(){this.visual=Wt.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Pt.prototype.manipulate=function(mt){$t.prototype.manipulate.call(this,mt)},Pt.prototype.resize=function(mt){$t.prototype.resize.call(this,mt),this.setSize()},Pt.prototype.setSize=function(){$t.prototype.setSize.call(this),Wt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Pt.prototype.pointerUp=function(mt){$t.prototype.pointerUp.call(this,mt),this.setSize()},Pt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&Wt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Pt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&Wt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Pt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&Wt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&Wt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$t.prototype.getState.call(this))},Pt.prototype.restoreState=function(mt){var Zt=mt;this.fillColor=Zt.fillColor,this.strokeColor=Zt.strokeColor,this.strokeWidth=Zt.strokeWidth,this.strokeDasharray=Zt.strokeDasharray,this.opacity=Zt.opacity,this.createVisual(),$t.prototype.restoreState.call(this,mt),this.setSize()},Pt.prototype.scale=function(mt,Zt){$t.prototype.scale.call(this,mt,Zt),this.setSize()},Pt.title="Rectangle marker",Pt}(he),Te=function($t){function Pt(mt,Zt,Se,Dt){var Ie=$t.call(this,mt,Dt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ie.widths=[],Ie.widthBoxes=[],Ie.widths=Zt,Ie.currentWidth=Se,Ie.setCurrentWidth=Ie.setCurrentWidth.bind(Ie),Ie}return Et(Pt,$t),Pt.prototype.getUi=function(){var mt=this,Zt=document.createElement("div");return Zt.style.display="flex",Zt.style.overflow="hidden",Zt.style.flexGrow="2",this.widths.forEach(function(Se){var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.flexGrow="2",Dt.style.alignItems="center",Dt.style.justifyContent="space-between",Dt.style.padding="5px",Dt.style.borderWidth="2px",Dt.style.borderStyle="solid",Dt.style.borderColor=Se===mt.currentWidth?mt.uiStyleSettings.toolboxAccentColor:"transparent",Dt.addEventListener("click",function(){mt.setCurrentWidth(Se,Dt)}),Zt.appendChild(Dt);var Ie=document.createElement("div");Ie.innerText=Se.toString(),Ie.style.marginRight="5px",Dt.appendChild(Ie);var nn=document.createElement("div");nn.style.minHeight="20px",nn.style.flexGrow="2",nn.style.display="flex",nn.style.alignItems="center";var zn=document.createElement("hr");zn.style.minWidth="20px",zn.style.border="0px",zn.style.borderTop=Se+"px solid "+mt.uiStyleSettings.toolboxColor,zn.style.flexGrow="2",nn.appendChild(zn),Dt.appendChild(nn),mt.widthBoxes.push(Dt)}),Zt},Pt.prototype.setCurrentWidth=function(mt,Zt){var Se=this;this.currentWidth=mt,this.widthBoxes.forEach(function(Dt){Dt.style.borderColor=Dt===Zt?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Pt}(dt),ne=function($t){function Pt(mt,Zt,Se,Dt){var Ie=$t.call(this,mt,Dt||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Ie.styles=[],Ie.styleBoxes=[],Ie.styles=Zt,Ie.currentStyle=Se,Ie.setCurrentStyle=Ie.setCurrentStyle.bind(Ie),Ie}return Et(Pt,$t),Pt.prototype.getUi=function(){var mt=this,Zt=document.createElement("div");return Zt.style.display="flex",Zt.style.overflow="hidden",Zt.style.flexGrow="2",this.styles.forEach(function(Se){var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.alignItems="center",Dt.style.justifyContent="space-between",Dt.style.padding="5px",Dt.style.borderWidth="2px",Dt.style.borderStyle="solid",Dt.style.overflow="hidden",Dt.style.maxWidth=100/mt.styles.length-5+"%",Dt.style.borderColor=Se===mt.currentStyle?mt.uiStyleSettings.toolboxAccentColor:"transparent",Dt.addEventListener("click",function(){mt.setCurrentStyle(Se,Dt)}),Zt.appendChild(Dt);var Ie=document.createElement("div");Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.overflow="hidden";var nn=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+mt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Se!==""?'stroke-dasharray="'+Se+'"':"")+` />
</svg>`;Ie.innerHTML=nn,Dt.appendChild(Ie),mt.styleBoxes.push(Dt)}),Zt},Pt.prototype.setCurrentStyle=function(mt,Zt){var Se=this;this.currentStyle=mt,this.styleBoxes.forEach(function(Dt){Dt.style.borderColor=Dt===Zt?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Pt}(dt),Ke=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.strokeColor=Se.defaultColor,Dt.strokeWidth=Se.defaultStrokeWidth,Dt.strokeDasharray=Se.defaultStrokeDasharray,Dt.strokePanel=new yt("Line color",Se.defaultColorSet,Se.defaultColor),Dt.strokePanel.onColorChanged=Dt.setStrokeColor,Dt.strokeWidthPanel=new Te("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Dt.strokeWidthPanel.onWidthChanged=Dt.setStrokeWidth,Dt.strokeStylePanel=new ne("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Dt.strokeStylePanel.onStyleChanged=Dt.setStrokeDasharray,Dt}return Et(Pt,$t),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=$t.prototype.getState.call(this);return mt.typeName=Pt.typeName,mt},Pt.typeName="FrameMarker",Pt.title="Frame marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Pt}(pe),Vt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},$e=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.x1=0,Dt.y1=0,Dt.x2=0,Dt.y2=0,Dt.defaultLength=50,Dt.manipulationStartX=0,Dt.manipulationStartY=0,Dt.manipulationStartX1=0,Dt.manipulationStartY1=0,Dt.manipulationStartX2=0,Dt.manipulationStartY2=0,Dt.setupControlBox(),Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return!!$t.prototype.ownsTarget.call(this,mt)||!(!this.grip1.ownsTarget(mt)&&!this.grip2.ownsTarget(mt))},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.manipulationStartX=mt.x,this.manipulationStartY=mt.y,this.state==="new"&&(this.x1=mt.x,this.y1=mt.y,this.x2=mt.x,this.y2=mt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Zt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Zt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Pt.prototype.pointerUp=function(mt){var Zt=this.state;$t.prototype.pointerUp.call(this,mt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(mt),this._state="select",Zt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Pt.prototype.adjustVisual=function(){},Pt.prototype.manipulate=function(mt){this.state==="creating"?this.resize(mt):this.state==="move"?(this.x1=this.manipulationStartX1+mt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+mt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+mt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+mt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(mt)},Pt.prototype.resize=function(mt){switch(this.activeGrip){case this.grip1:this.x1=mt.x,this.y1=mt.y;break;case this.grip2:case void 0:this.x2=mt.x,this.y2=mt.y}this.adjustVisual(),this.adjustControlBox()},Pt.prototype.select=function(){$t.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Pt.prototype.deselect=function(){$t.prototype.deselect.call(this),this.controlBox.style.display="none"},Pt.prototype.setupControlBox=function(){this.controlBox=Wt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Pt.prototype.adjustControlBox=function(){this.positionGrips()},Pt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Pt.prototype.createGrip=function(){var mt=new Rt;return mt.visual.transform.baseVal.appendItem(Wt.createTransform()),this.controlBox.appendChild(mt.visual),mt},Pt.prototype.positionGrips=function(){var mt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-mt/2,this.y1-mt/2),this.positionGrip(this.grip2.visual,this.x2-mt/2,this.y2-mt/2)},Pt.prototype.positionGrip=function(mt,Zt,Se){var Dt=mt.transform.baseVal.getItem(0);Dt.setTranslate(Zt,Se),mt.transform.baseVal.replaceItem(Dt,0)},Pt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},$t.prototype.getState.call(this))},Pt.prototype.restoreState=function(mt){$t.prototype.restoreState.call(this,mt);var Zt=mt;this.x1=Zt.x1,this.y1=Zt.y1,this.x2=Zt.x2,this.y2=Zt.y2},Pt.prototype.scale=function(mt,Zt){$t.prototype.scale.call(this,mt,Zt),this.x1=this.x1*mt,this.y1=this.y1*Zt,this.x2=this.x2*mt,this.y2=this.y2*Zt,this.adjustVisual(),this.adjustControlBox()},Pt}(Mt),Ge=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.strokeColor="transparent",Dt.strokeWidth=0,Dt.strokeDasharray="",Dt.setStrokeColor=Dt.setStrokeColor.bind(Dt),Dt.setStrokeWidth=Dt.setStrokeWidth.bind(Dt),Dt.setStrokeDasharray=Dt.setStrokeDasharray.bind(Dt),Dt.strokeColor=Se.defaultColor,Dt.strokeWidth=Se.defaultStrokeWidth,Dt.strokeDasharray=Se.defaultStrokeDasharray,Dt.strokePanel=new yt("Line color",Se.defaultColorSet,Se.defaultColor),Dt.strokePanel.onColorChanged=Dt.setStrokeColor,Dt.strokeWidthPanel=new Te("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Dt.strokeWidthPanel.onWidthChanged=Dt.setStrokeWidth,Dt.strokeStylePanel=new ne("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Dt.strokeStylePanel.onStyleChanged=Dt.setStrokeDasharray,Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return!(!$t.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorLine&&mt!==this.visibleLine)},Pt.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.selectorLine=Wt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Wt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Pt.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Wt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Wt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Wt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},Pt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},Pt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},$t.prototype.getState.call(this));return mt.typeName=Pt.typeName,mt},Pt.prototype.restoreState=function(mt){$t.prototype.restoreState.call(this,mt);var Zt=mt;this.strokeColor=Zt.strokeColor,this.strokeWidth=Zt.strokeWidth,this.strokeDasharray=Zt.strokeDasharray,this.createVisual(),this.adjustVisual()},Pt.typeName="LineMarker",Pt.title="Line marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Pt}($e),Oe=function($t){function Pt(mt,Zt,Se,Dt){var Ie=$t.call(this,mt,Dt||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Ie.fonts=[],Ie.fontBoxes=[],Ie.fonts=Zt,Ie.currentFont=Se,Ie.setCurrentFont=Ie.setCurrentFont.bind(Ie),Ie}return Et(Pt,$t),Pt.prototype.getUi=function(){var mt=this,Zt=document.createElement("div");return Zt.style.overflow="hidden",Zt.style.flexGrow="2",this.fonts.forEach(function(Se){var Dt=document.createElement("div");Dt.style.display="inline-block",Dt.style.alignItems="center",Dt.style.justifyContent="space-between",Dt.style.padding="5px",Dt.style.borderWidth="2px",Dt.style.borderStyle="solid",Dt.style.overflow="hidden",Dt.style.maxWidth=100/mt.fonts.length-5+"%",Dt.style.borderColor=Se===mt.currentFont?mt.uiStyleSettings.toolboxAccentColor:"transparent",Dt.addEventListener("click",function(){mt.setCurrentFont(Se,Dt)}),Zt.appendChild(Dt);var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.fontFamily=Se,Ie.style.overflow="hidden";var nn=document.createElement("div");nn.style.whiteSpace="nowrap",nn.style.overflow="hidden",nn.style.textOverflow="ellipsis",nn.innerHTML="The quick brown fox jumps over the lazy dog",Ie.appendChild(nn),Dt.appendChild(Ie),mt.fontBoxes.push(Dt)}),Zt},Pt.prototype.setCurrentFont=function(mt,Zt){var Se=this;this.currentFont=mt,this.fontBoxes.forEach(function(Dt){Dt.style.borderColor=Dt===Zt?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Pt}(dt),Ve=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.color="transparent",Dt.padding=5,Dt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Dt.text=Dt.DEFAULT_TEXT,Dt.isMoved=!1,Dt.color=Se.defaultColor,Dt.fontFamily=Se.defaultFontFamily,Dt.defaultSize={x:100,y:30},Dt.setColor=Dt.setColor.bind(Dt),Dt.setFont=Dt.setFont.bind(Dt),Dt.renderText=Dt.renderText.bind(Dt),Dt.sizeText=Dt.sizeText.bind(Dt),Dt.textEditDivClicked=Dt.textEditDivClicked.bind(Dt),Dt.showTextEditor=Dt.showTextEditor.bind(Dt),Dt.setSize=Dt.setSize.bind(Dt),Dt.positionTextEditor=Dt.positionTextEditor.bind(Dt),Dt.colorPanel=new yt("Color",Se.defaultColorSet,Se.defaultColor),Dt.colorPanel.onColorChanged=Dt.setColor,Dt.fontFamilyPanel=new Oe("Font",Se.defaultFontFamilies,Se.defaultFontFamily),Dt.fontFamilyPanel.onFontChanged=Dt.setFont,Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){if($t.prototype.ownsTarget.call(this,mt)||mt===this.visual||mt===this.textElement||mt===this.bgRectangle)return!0;var Zt=!1;return this.textElement.childNodes.forEach(function(Se){Se===mt&&(Zt=!0)}),Zt},Pt.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.bgRectangle=Wt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Wt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Wt.createTransform()),this.textElement.transform.baseVal.appendItem(Wt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Pt.prototype.renderText=function(){var mt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Zt){mt.textElement.appendChild(Wt.createTSpan(Zt.trim()===""?" ":Zt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Pt.prototype.getTextScale=function(){var mt=this.textElement.getBBox(),Zt=1;if(mt.width>0&&mt.height>0){var Se=(1*this.width-this.width*this.padding*2/100)/mt.width,Dt=(1*this.height-this.height*this.padding*2/100)/mt.height;Zt=Math.min(Se,Dt)}return Zt},Pt.prototype.getTextPosition=function(mt){var Zt=this.textElement.getBBox(),Se=0,Dt=0;return Zt.width>0&&Zt.height>0&&(Se=(this.width-Zt.width*mt)/2,Dt=this.height/2-Zt.height*mt/2),{x:Se,y:Dt}},Pt.prototype.sizeText=function(){var mt=this.textElement.getBBox(),Zt=this.getTextScale(),Se=this.getTextPosition(Zt);Se.y-=mt.y*Zt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Se.x+"px, "+Se.y+"px) scale("+Zt+", "+Zt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Se.x,Se.y),this.textElement.transform.baseVal.getItem(1).setScale(Zt,Zt))},Pt.prototype.manipulate=function(mt){$t.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},Pt.prototype.resize=function(mt){$t.prototype.resize.call(this,mt),this.isMoved=!0,this.setSize(),this.sizeText()},Pt.prototype.setSize=function(){$t.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Wt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Wt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Pt.prototype.pointerUp=function(mt){var Zt=this.state;Zt==="creating"&&(this._suppressMarkerCreateEvent=!0),$t.prototype.pointerUp.call(this,mt),this.setSize(),(Zt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Pt.prototype.showTextEditor=function(){var mt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Zt){Zt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Zt=Number.parseFloat(mt.textEditor.style.fontSize);mt.textEditor.clientWidth>=Number.parseInt(mt.textEditor.style.maxWidth)&&Zt>.9;)Zt-=.1,mt.textEditor.style.fontSize=Math.max(Zt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Zt){Zt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Zt){if(Zt.clipboardData){var Se=Zt.clipboardData.getData("text"),Dt=window.getSelection();if(!Dt.rangeCount)return!1;Dt.deleteFromDocument(),Dt.getRangeAt(0).insertNode(document.createTextNode(Se)),Zt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){mt.textEditDivClicked(mt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Pt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var mt=this.getTextScale(),Zt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Se=this.textElement.getBBox(),Dt={x:Se.width*mt,y:Se.height*mt};Zt.x-=Dt.x/2,Zt.y-=Dt.y/2,this.textEditor.style.top=Zt.y+"px",this.textEditor.style.left=Zt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Zt.x+"px",this.textEditor.style.fontSize=Math.max(16*mt,12)+"px",this.textElement.style.display="none"}},Pt.prototype.textEditDivClicked=function(mt){this.text=mt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Pt.prototype.select=function(){$t.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Pt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),$t.prototype.deselect.call(this)},Pt.prototype.dblClick=function(mt,Zt){$t.prototype.dblClick.call(this,mt,Zt),this.showTextEditor()},Pt.prototype.setColor=function(mt){this.textElement&&Wt.setAttributes(this.textElement,[["fill",mt]]),this.color=mt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(mt)},Pt.prototype.setFont=function(mt){this.textElement&&Wt.setAttributes(this.textElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Pt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Pt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},$t.prototype.getState.call(this));return mt.typeName=Pt.typeName,mt},Pt.prototype.restoreState=function(mt){var Zt=mt;this.color=Zt.color,this.fontFamily=Zt.fontFamily,this.padding=Zt.padding,this.text=Zt.text,this.createVisual(),$t.prototype.restoreState.call(this,mt),this.setSize()},Pt.prototype.scale=function(mt,Zt){$t.prototype.scale.call(this,mt,Zt),this.setSize(),this.sizeText(),this.positionTextEditor()},Pt.typeName="TextMarker",Pt.title="Text marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Pt}(he),_e=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.color="transparent",Dt.lineWidth=3,Dt.drawing=!1,Dt.pixelRatio=1,Dt.color=Se.defaultColor,Dt.lineWidth=Se.defaultStrokeWidth,Dt.pixelRatio=Se.freehandPixelRatio,Dt.setColor=Dt.setColor.bind(Dt),Dt.addCanvas=Dt.addCanvas.bind(Dt),Dt.finishCreation=Dt.finishCreation.bind(Dt),Dt.setLineWidth=Dt.setLineWidth.bind(Dt),Dt.colorPanel=new yt("Color",Se.defaultColorSet,Se.defaultColor),Dt.colorPanel.onColorChanged=Dt.setColor,Dt.lineWidthPanel=new Te("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Dt.lineWidthPanel.onWidthChanged=Dt.setLineWidth,Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return!(!$t.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.drawingImage)},Pt.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.drawingImage=Wt.createImage(),this.visual.appendChild(this.drawingImage);var mt=Wt.createTransform();this.visual.transform.baseVal.appendItem(mt),this.addMarkerVisualToContainer(this.visual)},Pt.prototype.pointerDown=function(mt,Zt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(mt.x,mt.y),this.drawing=!0):$t.prototype.pointerDown.call(this,mt,Zt)},Pt.prototype.manipulate=function(mt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(mt.x,mt.y),this.canvasContext.stroke()):$t.prototype.manipulate.call(this,mt)},Pt.prototype.resize=function(mt){$t.prototype.resize.call(this,mt),Wt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Wt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Pt.prototype.pointerUp=function(mt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):$t.prototype.pointerUp.call(this,mt)},Pt.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Pt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),$t.prototype.select.call(this)},Pt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),$t.prototype.deselect.call(this)},Pt.prototype.finishCreation=function(){for(var mt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Zt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Se=Zt[0],Dt=Zt[1],Ie=Zt[2],nn=Zt[3],zn=!1,xn=0;xn<this.canvasElement.height;xn++)for(var li=0;li<this.canvasElement.width;li++)mt.data[xn*this.canvasElement.width*4+4*li+3]>0&&(zn=!0,xn<Dt&&(Dt=xn),li<Se&&(Se=li),xn>nn&&(nn=xn),li>Ie&&(Ie=li));if(zn){this.left=Se/this.pixelRatio,this.top=Dt/this.pixelRatio,this.width=(Ie-Se)/this.pixelRatio,this.height=(nn-Dt)/this.pixelRatio;var Qi=document.createElement("canvas");Qi.width=Ie-Se,Qi.height=nn-Dt,Qi.getContext("2d").putImageData(this.canvasContext.getImageData(Se,Dt,Ie-Se,nn-Dt),0,0),this.drawingImgUrl=Qi.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Pt.prototype.setDrawingImage=function(){Wt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Wt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Pt.prototype.setColor=function(mt){this.color=mt,this.colorChanged(mt)},Pt.prototype.setLineWidth=function(mt){this.lineWidth=mt},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=Object.assign({drawingImgUrl:this.drawingImgUrl},$t.prototype.getState.call(this));return mt.typeName=Pt.typeName,mt},Pt.prototype.restoreState=function(mt){this.createVisual(),$t.prototype.restoreState.call(this,mt),this.drawingImgUrl=mt.drawingImgUrl,this.setDrawingImage()},Pt.prototype.scale=function(mt,Zt){$t.prototype.scale.call(this,mt,Zt),this.setDrawingImage()},Pt.typeName="FreehandMarker",Pt.title="Freehand marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Pt}(he),xe=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Dt.typeBoxes=[],Dt.currentType=Zt,Dt.setCurrentType=Dt.setCurrentType.bind(Dt),Dt}return Et(Pt,$t),Pt.prototype.getUi=function(){var mt=this,Zt=document.createElement("div");Zt.style.display="flex",Zt.style.overflow="hidden",Zt.style.flexGrow="2";for(var Se=function(nn){var zn="both";switch(nn){case 0:zn="both";break;case 1:zn="start";break;case 2:zn="end";break;case 3:zn="none"}var xn=document.createElement("div");if(xn.style.display="flex",xn.style.flexGrow="2",xn.style.alignItems="center",xn.style.justifyContent="space-between",xn.style.padding="5px",xn.style.borderWidth="2px",xn.style.borderStyle="solid",xn.style.borderColor=zn===Dt.currentType?Dt.uiStyleSettings.toolboxAccentColor:"transparent",xn.addEventListener("click",function(){mt.setCurrentType(zn,xn)}),Zt.appendChild(xn),zn==="both"||zn==="start"){var li=document.createElement("div");li.style.display="flex",li.style.alignItems="center",li.style.minHeight="20px",li.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(Dt.uiStyleSettings!==void 0?Dt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,li.style.marginLeft="5px",xn.appendChild(li)}var Qi=document.createElement("div");Qi.style.display="flex",Qi.style.alignItems="center",Qi.style.minHeight="20px",Qi.style.flexGrow="2";var Wi=document.createElement("hr");if(Wi.style.minWidth="20px",Wi.style.border="0px",Wi.style.borderTop="3px solid "+(Dt.uiStyleSettings!==void 0?Dt.uiStyleSettings.toolboxColor:"#eeeeee"),Wi.style.flexGrow="2",Qi.appendChild(Wi),xn.appendChild(Qi),zn==="both"||zn==="end"){var pr=document.createElement("div");pr.style.display="flex",pr.style.alignItems="center",pr.style.minHeight="20px",pr.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Dt.uiStyleSettings!==void 0?Dt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,pr.style.marginRight="5px",xn.appendChild(pr)}Dt.typeBoxes.push(xn)},Dt=this,Ie=0;Ie<4;Ie++)Se(Ie);return Zt},Pt.prototype.setCurrentType=function(mt,Zt){var Se=this;this.currentType=mt,this.typeBoxes.forEach(function(Dt){Dt.style.borderColor=Dt===Zt?Se.uiStyleSettings!==void 0?Se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Pt}(dt),ie=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.arrowType="end",Dt.arrowBaseHeight=10,Dt.arrowBaseWidth=10,Dt.getArrowPoints=Dt.getArrowPoints.bind(Dt),Dt.setArrowType=Dt.setArrowType.bind(Dt),Dt.arrowTypePanel=new xe("Arrow type","end"),Dt.arrowTypePanel.onArrowTypeChanged=Dt.setArrowType,Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return!(!$t.prototype.ownsTarget.call(this,mt)&&mt!==this.arrow1&&mt!==this.arrow2)},Pt.prototype.getArrowPoints=function(mt,Zt){var Se=this.arrowBaseWidth+2*this.strokeWidth,Dt=this.arrowBaseHeight+2*this.strokeWidth;return mt-Se/2+","+(Zt+Dt/2)+" "+mt+","+(Zt-Dt/2)+" "+(mt+Se/2)+","+(Zt+Dt/2)},Pt.prototype.createTips=function(){this.arrow1=Wt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Wt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Wt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Wt.createTransform()),this.visual.appendChild(this.arrow2)},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.state==="creating"&&this.createTips()},Pt.prototype.adjustVisual=function(){if($t.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Wt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Wt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var mt=0;Math.abs(this.x1-this.x2)>.1&&(mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Zt=this.arrow1.transform.baseVal.getItem(0);Zt.setRotate(mt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Zt,0);var Se=this.arrow2.transform.baseVal.getItem(0);Se.setRotate(mt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Se,0)}},Pt.prototype.setArrowType=function(mt){this.arrowType=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=Object.assign({arrowType:this.arrowType},$t.prototype.getState.call(this));return mt.typeName=Pt.typeName,mt},Pt.prototype.restoreState=function(mt){$t.prototype.restoreState.call(this,mt);var Zt=mt;this.arrowType=Zt.arrowType,this.createTips(),this.adjustVisual()},Pt.typeName="ArrowMarker",Pt.title="Arrow marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Pt}(Ge),be=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.fillColor=Se.defaultFillColor,Dt.strokeWidth=0,Dt.fillPanel=new yt("Color",Se.defaultColorSet,Se.defaultFillColor),Dt.fillPanel.onColorChanged=Dt.setFillColor,Dt}return Et(Pt,$t),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=$t.prototype.getState.call(this);return mt.typeName=Pt.typeName,mt},Pt.typeName="CoverMarker",Pt.title="Cover marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Pt}(pe),Fn=function($t){function Pt(mt,Zt,Se,Dt){var Ie=$t.call(this,mt,Dt||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Ie.opacities=[],Ie.opacityBoxes=[],Ie.opacities=Zt,Ie.currentOpacity=Se,Ie.setCurrentOpacity=Ie.setCurrentOpacity.bind(Ie),Ie}return Et(Pt,$t),Pt.prototype.getUi=function(){var mt=this,Zt=document.createElement("div");return Zt.style.display="flex",Zt.style.overflow="hidden",Zt.style.flexGrow="2",Zt.style.justifyContent="space-between",this.opacities.forEach(function(Se){var Dt=document.createElement("div");Dt.style.display="flex",Dt.style.alignItems="center",Dt.style.justifyContent="center",Dt.style.padding="5px",Dt.style.borderWidth="2px",Dt.style.borderStyle="solid",Dt.style.borderColor=Se===mt.currentOpacity?mt.uiStyleSettings.toolboxAccentColor:"transparent",Dt.addEventListener("click",function(){mt.setCurrentOpacity(Se,Dt)}),Zt.appendChild(Dt);var Ie=document.createElement("div");Ie.innerText=100*Se+"%",Dt.appendChild(Ie),mt.opacityBoxes.push(Dt)}),Zt},Pt.prototype.setCurrentOpacity=function(mt,Zt){var Se=this;this.currentOpacity=mt,this.opacityBoxes.forEach(function(Dt){Dt.style.borderColor=Dt===Zt?Se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Pt}(dt),Mn=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.setOpacity=Dt.setOpacity.bind(Dt),Dt.fillColor=Se.defaultHighlightColor,Dt.strokeWidth=0,Dt.opacity=Se.defaultHighlightOpacity,Dt.fillPanel=new yt("Color",Se.defaultColorSet,Dt.fillColor),Dt.fillPanel.onColorChanged=Dt.setFillColor,Dt.opacityPanel=new Fn("Opacity",Se.defaultOpacitySteps,Dt.opacity),Dt.opacityPanel.onOpacityChanged=Dt.setOpacity,Dt}return Et(Pt,$t),Pt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&Wt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=$t.prototype.getState.call(this);return mt.typeName=Pt.typeName,mt},Pt.typeName="HighlightMarker",Pt.title="Highlight marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Pt}(be),Xe='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',In='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Xn=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.bgColor="transparent",Dt.tipPosition={x:0,y:0},Dt.tipBase1Position={x:0,y:0},Dt.tipBase2Position={x:0,y:0},Dt.tipMoving=!1,Dt.color=Se.defaultStrokeColor,Dt.bgColor=Se.defaultFillColor,Dt.fontFamily=Se.defaultFontFamily,Dt.defaultSize={x:100,y:30},Dt.setBgColor=Dt.setBgColor.bind(Dt),Dt.getTipPoints=Dt.getTipPoints.bind(Dt),Dt.positionTip=Dt.positionTip.bind(Dt),Dt.setTipPoints=Dt.setTipPoints.bind(Dt),Dt.colorPanel=new yt("Text color",Se.defaultColorSet,Dt.color,Xe),Dt.colorPanel.onColorChanged=Dt.setColor,Dt.bgColorPanel=new yt("Fill color",Se.defaultColorSet,Dt.bgColor,In),Dt.bgColorPanel.onColorChanged=Dt.setBgColor,Dt.fontFamilyPanel=new Oe("Font",Se.defaultFontFamilies,Se.defaultFontFamily),Dt.fontFamilyPanel.onFontChanged=Dt.setFont,Dt.tipGrip=new Rt,Dt.tipGrip.visual.transform.baseVal.appendItem(Wt.createTransform()),Dt.controlBox.appendChild(Dt.tipGrip.visual),Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return $t.prototype.ownsTarget.call(this,mt)||this.tipGrip.ownsTarget(mt)||this.tip===mt},Pt.prototype.createTip=function(){Wt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Wt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Pt.prototype.pointerDown=function(mt,Zt){this.state==="new"&&$t.prototype.pointerDown.call(this,mt,Zt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Zt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):$t.prototype.pointerDown.call(this,mt,Zt)},Pt.prototype.pointerUp=function(mt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,$t.prototype.pointerUp.call(this,mt);else{var Zt=this.state==="creating";$t.prototype.pointerUp.call(this,mt),this.setTipPoints(Zt),this.positionTip()}},Pt.prototype.manipulate=function(mt){if(this.tipMoving){var Zt=this.unrotatePoint(mt);this.tipPosition={x:Zt.x-this.manipulationStartLeft,y:Zt.y-this.manipulationStartTop},this.positionTip()}else $t.prototype.manipulate.call(this,mt)},Pt.prototype.setBgColor=function(mt){this.bgRectangle&&this.tip&&(Wt.setAttributes(this.bgRectangle,[["fill",mt]]),Wt.setAttributes(this.tip,[["fill",mt]])),this.bgColor=mt,this.fillColorChanged(mt)},Pt.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Pt.prototype.setTipPoints=function(mt){mt===void 0&&(mt=!1);var Zt=Math.min(this.height/2,15),Se=this.height/5;mt&&(this.tipPosition={x:Zt+Se/2,y:this.height+20});var Dt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Dt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Se=this.width/5,Zt=Math.min(this.width/2,15),this.tipBase1Position={x:Zt,y:0},this.tipBase2Position={x:Zt+Se,y:0}):(this.tipBase1Position={x:0,y:Zt},this.tipBase2Position={x:0,y:Zt+Se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Dt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Se=this.width/5,Zt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Zt-Se,y:0},this.tipBase2Position={x:this.width-Zt,y:0}):(this.tipBase1Position={x:this.width,y:Zt},this.tipBase2Position={x:this.width,y:Zt+Se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Dt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Se=this.width/5,Zt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Zt-Se,y:this.height},this.tipBase2Position={x:this.width-Zt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Zt-Se},this.tipBase2Position={x:this.width,y:this.height-Zt}):Dt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Se=this.width/5,Zt=Math.min(this.width/2,15),this.tipBase1Position={x:Zt,y:this.height},this.tipBase2Position={x:Zt+Se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Zt},this.tipBase2Position={x:0,y:this.height-Zt-Se})},Pt.prototype.resize=function(mt){$t.prototype.resize.call(this,mt),this.positionTip()},Pt.prototype.positionTip=function(){Wt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var mt=this.tipGrip.visual.transform.baseVal.getItem(0);mt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(mt,0)},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Pt.prototype.select=function(){this.positionTip(),$t.prototype.select.call(this)},Pt.prototype.getState=function(){var mt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},$t.prototype.getState.call(this));return mt.typeName=Pt.typeName,mt},Pt.prototype.restoreState=function(mt){var Zt=mt;this.bgColor=Zt.bgColor,this.tipPosition=Zt.tipPosition,$t.prototype.restoreState.call(this,mt),this.createTip(),this.setTipPoints()},Pt.prototype.scale=function(mt,Zt){$t.prototype.scale.call(this,mt,Zt),this.tipPosition={x:this.tipPosition.x*mt,y:this.tipPosition.y*Zt},this.positionTip()},Pt.typeName="CalloutMarker",Pt.title="Callout marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Pt}(Ve),pi=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.fillColor="transparent",Dt.strokeColor="transparent",Dt.strokeWidth=0,Dt.strokeDasharray="",Dt.opacity=1,Dt.strokeColor=Se.defaultColor,Dt.strokeWidth=Se.defaultStrokeWidth,Dt.strokeDasharray=Se.defaultStrokeDasharray,Dt.fillColor=Se.defaultFillColor,Dt.setStrokeColor=Dt.setStrokeColor.bind(Dt),Dt.setFillColor=Dt.setFillColor.bind(Dt),Dt.setStrokeWidth=Dt.setStrokeWidth.bind(Dt),Dt.setStrokeDasharray=Dt.setStrokeDasharray.bind(Dt),Dt.setOpacity=Dt.setOpacity.bind(Dt),Dt.createVisual=Dt.createVisual.bind(Dt),Dt.strokePanel=new yt("Line color",Ct(Se.defaultColorSet,["transparent"]),Se.defaultColor),Dt.strokePanel.onColorChanged=Dt.setStrokeColor,Dt.fillPanel=new yt("Fill color",Ct(Se.defaultColorSet,["transparent"]),Dt.fillColor,In),Dt.fillPanel.onColorChanged=Dt.setFillColor,Dt.strokeWidthPanel=new Te("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Dt.strokeWidthPanel.onWidthChanged=Dt.setStrokeWidth,Dt.strokeStylePanel=new ne("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Dt.strokeStylePanel.onStyleChanged=Dt.setStrokeDasharray,Dt.opacityPanel=new Fn("Opacity",Se.defaultOpacitySteps,Dt.opacity),Dt.opacityPanel.onOpacityChanged=Dt.setOpacity,Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return!(!$t.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},Pt.prototype.createVisual=function(){this.visual=Wt.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Pt.prototype.manipulate=function(mt){$t.prototype.manipulate.call(this,mt)},Pt.prototype.resize=function(mt){$t.prototype.resize.call(this,mt),this.setSize()},Pt.prototype.setSize=function(){$t.prototype.setSize.call(this),Wt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Pt.prototype.pointerUp=function(mt){$t.prototype.pointerUp.call(this,mt),this.setSize()},Pt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&Wt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Pt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&Wt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},Pt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&Wt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&Wt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Pt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&Wt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},$t.prototype.getState.call(this));return mt.typeName=Pt.typeName,mt},Pt.prototype.restoreState=function(mt){var Zt=mt;this.fillColor=Zt.fillColor,this.strokeColor=Zt.strokeColor,this.strokeWidth=Zt.strokeWidth,this.strokeDasharray=Zt.strokeDasharray,this.opacity=Zt.opacity,this.createVisual(),$t.prototype.restoreState.call(this,mt),this.setSize()},Pt.prototype.scale=function(mt,Zt){$t.prototype.scale.call(this,mt,Zt),this.setSize()},Pt.typeName="EllipseMarker",Pt.title="Ellipse marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Pt}(he),$n=function($t){function Pt(mt,Zt,Se){return $t.call(this,mt,Zt,Se)||this}return Et(Pt,$t),Object.defineProperty(Pt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Pt.prototype.ownsTarget=function(mt){return!(!$t.prototype.ownsTarget.call(this,mt)&&mt!==this.tip1&&mt!==this.tip2)},Pt.prototype.createTips=function(){this.tip1=Wt.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Wt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Wt.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Wt.createTransform()),this.visual.appendChild(this.tip2)},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.state==="creating"&&this.createTips()},Pt.prototype.adjustVisual=function(){if($t.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Wt.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Wt.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Zt=this.tip1.transform.baseVal.getItem(0);Zt.setRotate(mt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Zt,0);var Se=this.tip2.transform.baseVal.getItem(0);Se.setRotate(mt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Se,0)}},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=$t.prototype.getState.call(this);return mt.typeName=Pt.typeName,mt},Pt.prototype.restoreState=function(mt){$t.prototype.restoreState.call(this,mt),this.createTips(),this.adjustVisual()},Pt.typeName="MeasurementMarker",Pt.title="Measurement marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Pt}(Ge),bi=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.strokePanel.colors=Se.defaultColorSet,Dt.fillColor="transparent",Dt}return Et(Pt,$t),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=$t.prototype.getState.call(this);return mt.typeName=Pt.typeName,mt},Pt.typeName="EllipseFrameMarker",Pt.title="Ellipse frame marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Pt}(pi),sn=function(){function $t(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty($t.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),$t.prototype.addUndoStep=function(Pt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Pt)||(this.undoStack.push(Pt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Pt)&&this.redoStack.splice(0,this.redoStack.length))},$t.prototype.replaceLastUndoStep=function(Pt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Pt)},$t.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},$t.prototype.undo=function(){if(this.undoStack.length>1){var Pt=this.undoStack.pop();return Pt!==void 0&&this.redoStack.push(Pt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},$t.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},$t}(),Li=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.strokeColor="transparent",Dt.strokeWidth=0,Dt.strokeDasharray="",Dt.curveX=0,Dt.curveY=0,Dt.manipulationStartCurveX=0,Dt.manipulationStartCurveY=0,Dt.setStrokeColor=Dt.setStrokeColor.bind(Dt),Dt.setStrokeWidth=Dt.setStrokeWidth.bind(Dt),Dt.setStrokeDasharray=Dt.setStrokeDasharray.bind(Dt),Dt.positionGrips=Dt.positionGrips.bind(Dt),Dt.addControlGrips=Dt.addControlGrips.bind(Dt),Dt.adjustVisual=Dt.adjustVisual.bind(Dt),Dt.setupControlBox=Dt.setupControlBox.bind(Dt),Dt.resize=Dt.resize.bind(Dt),Dt.strokeColor=Se.defaultColor,Dt.strokeWidth=Se.defaultStrokeWidth,Dt.strokeDasharray=Se.defaultStrokeDasharray,Dt.strokePanel=new yt("Line color",Se.defaultColorSet,Se.defaultColor),Dt.strokePanel.onColorChanged=Dt.setStrokeColor,Dt.strokeWidthPanel=new Te("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Dt.strokeWidthPanel.onWidthChanged=Dt.setStrokeWidth,Dt.strokeStylePanel=new ne("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Dt.strokeStylePanel.onStyleChanged=Dt.setStrokeDasharray,Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return!(!$t.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorCurve&&mt!==this.visibleCurve&&!this.curveGrip.ownsTarget(mt))},Pt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Pt.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.selectorCurve=Wt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Wt.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=mt.x,this.curveY=mt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Zt)&&(this.activeGrip=this.curveGrip,this._state="resize")},Pt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Wt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Wt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Wt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Pt.prototype.setupControlBox=function(){$t.prototype.setupControlBox.call(this),this.curveControlLine1=Wt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Wt.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Pt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,$t.prototype.addControlGrips.call(this)},Pt.prototype.positionGrips=function(){$t.prototype.positionGrips.call(this);var mt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-mt/2,this.curveY-mt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Pt.prototype.manipulate=function(mt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+mt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+mt.y-this.manipulationStartY),$t.prototype.manipulate.call(this,mt)},Pt.prototype.resize=function(mt){this.activeGrip===this.curveGrip&&(this.curveX=mt.x,this.curveY=mt.y),$t.prototype.resize.call(this,mt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Pt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},Pt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},Pt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual()},Pt.prototype.scale=function(mt,Zt){this.curveX=this.curveX*mt,this.curveY=this.curveY*Zt,$t.prototype.scale.call(this,mt,Zt)},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},$t.prototype.getState.call(this));return mt.typeName=Pt.typeName,mt},Pt.prototype.restoreState=function(mt){$t.prototype.restoreState.call(this,mt);var Zt=mt;this.strokeColor=Zt.strokeColor,this.strokeWidth=Zt.strokeWidth,this.strokeDasharray=Zt.strokeDasharray,this.curveX=Zt.curveX,this.curveY=Zt.curveY,this.createVisual(),this.adjustVisual()},Pt.typeName="CurveMarker",Pt.title="Curve marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Pt}($e),ji=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,Zt,Se)||this;return Dt.fillColor="transparent",Dt.strokeColor="transparent",Dt.strokeWidth=0,Dt.strokeDasharray="",Dt.textColor="transparent",Dt.fontSize="1rem",Dt.isMoved=!1,Dt.captionText="Caption",Dt.PADDING=5,Dt.captionBoxWidth=0,Dt.captionBoxHeight=0,Dt.strokeColor=Se.defaultColor,Dt.strokeWidth=Se.defaultStrokeWidth,Dt.strokeDasharray=Se.defaultStrokeDasharray,Dt.fillColor=Se.defaultFillColor,Dt.textColor=Se.defaultStrokeColor,Dt.fontFamily=Se.defaultFontFamily,Dt.fontSize=Se.defaultCaptionFontSize,Dt.captionText=Se.defaultCaptionText,Dt.setStrokeColor=Dt.setStrokeColor.bind(Dt),Dt.setFillColor=Dt.setFillColor.bind(Dt),Dt.setStrokeWidth=Dt.setStrokeWidth.bind(Dt),Dt.setStrokeDasharray=Dt.setStrokeDasharray.bind(Dt),Dt.createVisual=Dt.createVisual.bind(Dt),Dt.sizeCaption=Dt.sizeCaption.bind(Dt),Dt.setCaptionText=Dt.setCaptionText.bind(Dt),Dt.showTextEditor=Dt.showTextEditor.bind(Dt),Dt.positionTextEditor=Dt.positionTextEditor.bind(Dt),Dt.finishTextEditing=Dt.finishTextEditing.bind(Dt),Dt.setFont=Dt.setFont.bind(Dt),Dt.setTextColor=Dt.setTextColor.bind(Dt),Dt.strokePanel=new yt("Line color",Ct(Se.defaultColorSet,["transparent"]),Dt.strokeColor),Dt.strokePanel.onColorChanged=Dt.setStrokeColor,Dt.fillPanel=new yt("Fill color",Ct(Se.defaultColorSet,["transparent"]),Dt.fillColor,In),Dt.fillPanel.onColorChanged=Dt.setFillColor,Dt.strokeWidthPanel=new Te("Line width",Se.defaultStrokeWidths,Se.defaultStrokeWidth),Dt.strokeWidthPanel.onWidthChanged=Dt.setStrokeWidth,Dt.strokeStylePanel=new ne("Line style",Se.defaultStrokeDasharrays,Se.defaultStrokeDasharray),Dt.strokeStylePanel.onStyleChanged=Dt.setStrokeDasharray,Dt.fontFamilyPanel=new Oe("Font",Se.defaultFontFamilies,Se.defaultFontFamily),Dt.fontFamilyPanel.onFontChanged=Dt.setFont,Dt.textColorPanel=new yt("Text color",Se.defaultColorSet,Dt.textColor,Xe),Dt.textColorPanel.onColorChanged=Dt.setTextColor,Dt}return Et(Pt,$t),Pt.prototype.ownsTarget=function(mt){return!(!$t.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.frame&&mt!==this.captionBg&&mt!==this.captionElement)},Pt.prototype.createVisual=function(){this.visual=Wt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Wt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Wt.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Wt.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Pt.prototype.setCaptionText=function(mt){this.captionText=mt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Pt.prototype.pointerDown=function(mt,Zt){$t.prototype.pointerDown.call(this,mt,Zt),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Pt.prototype.manipulate=function(mt){$t.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},Pt.prototype.resize=function(mt){$t.prototype.resize.call(this,mt),this.setSize()},Pt.prototype.sizeCaption=function(){var mt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=mt.width+2*this.PADDING,this.captionBoxHeight=mt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Wt.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Wt.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Pt.prototype.showTextEditor=function(){var mt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Zt){Zt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Zt){Zt.key==="Enter"&&mt.finishTextEditing(mt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Zt){Zt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Pt.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Pt.prototype.finishTextEditing=function(mt){this.setCaptionText(mt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Pt.prototype.setFont=function(mt){this.captionElement&&Wt.setAttributes(this.captionElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Pt.prototype.setTextColor=function(mt){this.captionElement&&Wt.setAttributes(this.captionElement,[["fill",mt]]),this.textColor=mt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Pt.prototype.setSize=function(){$t.prototype.setSize.call(this),Wt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Pt.prototype.pointerUp=function(mt){$t.prototype.pointerUp.call(this,mt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Pt.prototype.dblClick=function(mt,Zt){$t.prototype.dblClick.call(this,mt,Zt),this.showTextEditor()},Pt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.frame&&Wt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Pt.prototype.setFillColor=function(mt){this.fillColor=mt,this.captionBg&&Wt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},Pt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.frame&&Wt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Pt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.frame&&Wt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Pt.prototype.getState=function(){var mt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},$t.prototype.getState.call(this));return mt.typeName=this.typeName,mt},Pt.prototype.restoreState=function(mt){var Zt=mt;this.fillColor=Zt.fillColor,this.strokeColor=Zt.strokeColor,this.strokeWidth=Zt.strokeWidth,this.strokeDasharray=Zt.strokeDasharray,this.textColor=Zt.textColor,this.fontFamily=Zt.fontFamily,this.captionText=Zt.captionText,this.fontSize=Zt.fontSize,this.createVisual(),$t.prototype.restoreState.call(this,mt),this.setSize()},Pt.prototype.scale=function(mt,Zt){$t.prototype.scale.call(this,mt,Zt),this.setSize()},Pt.typeName="CaptionFrameMarker",Pt.title="Caption frame marker",Pt.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Pt}(he),ve=function(){function $t(Pt,mt){mt===void 0&&(mt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Pt,this.cancelable=mt}return Object.defineProperty($t.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),$t.prototype.preventDefault=function(){this._defaultPrevented=!0},$t}(),hn=function($t){function Pt(mt,Zt,Se){var Dt=$t.call(this,mt,!1)||this;return Dt.dataUrl=Zt,Dt.state=Se,Dt}return Et(Pt,$t),Pt}(ve),Ae=function($t){function Pt(mt,Zt,Se){Se===void 0&&(Se=!1);var Dt=$t.call(this,mt,Se)||this;return Dt.marker=Zt,Dt}return Et(Pt,$t),Pt}(ve),Ot=function(){function $t(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return $t.prototype.addEventListener=function(Pt,mt){this[Pt].push(mt)},$t.prototype.removeEventListener=function(Pt,mt){var Zt=this[Pt].indexOf(mt);Zt>-1&&this[Pt].splice(Zt,1)},$t}(),Ft=function(){function $t(Pt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Vt,this._isOpen=!1,this.undoRedoManager=new sn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=$t.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Pt,this.targetRoot=document.body,this.width=Pt.clientWidth,this.height=Pt.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty($t.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ke,_e,ie,Ve,bi,pi,Mn,Xn,$n,be,Ge,Li,ji]},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ke,_e,ie,Ve,pi,Mn,Xn]},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ke,_e,ie,Ve,Mn]},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Pt){var mt=this;this._availableMarkerTypes.splice(0),Pt.forEach(function(Zt){if(typeof Zt=="string"){var Se=mt.ALL_MARKER_TYPES.find(function(Dt){return Dt.typeName===Zt});Se!==void 0&&mt._availableMarkerTypes.push(Se)}else mt._availableMarkerTypes.push(Zt)})},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Pt){this._zoomLevel=Pt,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty($t.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),$t.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Gt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},$t.prototype.show=function(){var Pt=this;this.styles.styleSheetRoot===void 0&&wt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=wt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(mt){return mt(new ve(Pt))})},$t.prototype.render=function(){return Tt(this,void 0,void 0,function(){var Pt;return ee(this,function(mt){switch(mt.label){case 0:return this.setCurrentMarker(),(Pt=new Jt).naturalSize=this.renderAtNaturalSize,Pt.imageType=this.renderImageType,Pt.imageQuality=this.renderImageQuality,Pt.markersOnly=this.renderMarkersOnly,Pt.width=this.renderWidth,Pt.height=this.renderHeight,[4,Pt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return mt.sent(),[4,Pt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,mt.sent()]}})})},$t.prototype.close=function(Pt){var mt=this;if(Pt===void 0&&(Pt=!1),this.isOpen){var Zt=!1;Pt||this.eventListeners.beforeclose.forEach(function(Se){var Dt=new ve(mt,!0);Se(Dt),Dt.defaultPrevented&&(Zt=!0)}),Zt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Se){return Se(new ve(mt))}),this.detachEvents(),this._isOpen=!1)}},$t.prototype.addMarkersToToolbar=function(){for(var Pt,mt=[],Zt=0;Zt<arguments.length;Zt++)mt[Zt]=arguments[Zt];(Pt=this._availableMarkerTypes).push.apply(Pt,mt)},$t.prototype.addRenderEventListener=function(Pt){this.addEventListener("render",function(mt){Pt(mt.dataUrl,mt.state)})},$t.prototype.removeRenderEventListener=function(Pt){},$t.prototype.addCloseEventListener=function(Pt){this.addEventListener("close",function(){Pt()})},$t.prototype.removeCloseEventListener=function(Pt){},$t.prototype.setupResizeObserver=function(){var Pt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Pt.resize(Pt.target.clientWidth,Pt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Pt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},$t.prototype.onPopupTargetResize=function(){var Pt=1*this.target.clientWidth/this.target.clientHeight,mt=this.editorCanvas.clientWidth/Pt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Pt:this.editorCanvas.clientWidth,Zt=mt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Pt;this.resize(mt,Zt)},$t.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},$t.prototype.resize=function(Pt,mt){this._isResizing=!0;var Zt=Pt/this.imageWidth,Se=mt/this.imageHeight;this.imageWidth=Math.round(Pt),this.imageHeight=Math.round(mt),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Zt,Se),this._isResizing=!1},$t.prototype.scaleMarkers=function(Pt,mt){var Zt,Se=this;this._currentMarker&&this._currentMarker instanceof Ve?this._currentMarker.scale(Pt,mt):(Zt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Dt){Dt!==Se._currentMarker&&Dt.scale(Pt,mt)}),Zt!==void 0&&this.setCurrentMarker(Zt)},$t.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},$t.prototype.setTopLeft=function(){var Pt=this.editingTarget.getBoundingClientRect(),mt=this.editorCanvas.getBoundingClientRect();this.left=Pt.left-mt.left,this.top=Pt.top-mt.top},$t.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},$t.prototype.addDefs=function(){for(var Pt,mt=[],Zt=0;Zt<arguments.length;Zt++)mt[Zt]=arguments[Zt];this.defs=Wt.createDefs(),this.addDefsToImage(),(Pt=this.defs).append.apply(Pt,mt)},$t.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},$t.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},$t.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},$t.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},$t.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},$t.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},$t.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},$t.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Pt=document.createElement("a");Pt.href="https://markerjs.com/",Pt.target="_blank",Pt.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Pt.title="Powered by marker.js",Pt.style.display="grid",Pt.style.alignItems="center",Pt.style.justifyItems="center",Pt.style.padding="3px",Pt.style.width="20px",Pt.style.height="20px",this.logoUI.appendChild(Pt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},$t.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},$t.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},$t.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},$t.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Pt=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Pt+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new rt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ht(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},$t.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},$t.prototype.removeMarker=function(Pt){this.markerImage.removeChild(Pt.container),this.markers.indexOf(Pt)>-1&&this.markers.splice(this.markers.indexOf(Pt),1),Pt.dispose()},$t.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},$t.prototype.toolbarButtonClicked=function(Pt,mt){if(Pt==="marker"&&mt!==void 0)this.createNewMarker(mt);else if(Pt==="action")switch(mt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},$t.prototype.deleteSelectedMarker=function(){var Pt=this;if(this._currentMarker!==void 0){var mt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Se){var Dt=new Ae(Pt,Pt._currentMarker,!0);Se(Dt),Dt.defaultPrevented&&(mt=!0)}),!mt){var Zt=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Se){return Se(new Ae(Pt,Zt))})}}},$t.prototype.clear=function(){var Pt=this,mt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ie){var nn=new Ae(Pt,void 0,!0);Ie(nn),nn.defaultPrevented&&(mt=!0)}),!mt)){this.setCurrentMarker();for(var Zt=function(Ie){var nn=Se.markers[Ie];Se.setCurrentMarker(Se.markers[Ie]),Se._currentMarker.dispose(),Se.markerImage.removeChild(Se._currentMarker.container),Se.markers.splice(Se.markers.indexOf(Se._currentMarker),1),Se.eventListeners.markerdelete.forEach(function(zn){return zn(new Ae(Pt,nn))})},Se=this,Dt=this.markers.length-1;Dt>=0;Dt--)Zt(Dt);this.addUndoStep()}},Object.defineProperty($t.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),$t.prototype.showNotesEditor=function(){var Pt;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Pt=this._currentMarker.notes)!==null&&Pt!==void 0?Pt:"",this.overlayContainer.appendChild(this.notesArea))},$t.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},$t.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},$t.prototype.addUndoStep=function(){var Pt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var mt=this.getState(),Zt=this.undoRedoManager.getLastUndoStep();if(!Zt||Zt.width===mt.width&&Zt.height===mt.height){var Se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(mt),Se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Dt){return Dt(new ve(Pt))})}else this.undoRedoManager.replaceLastUndoStep(mt),this.eventListeners.statechange.forEach(function(Dt){return Dt(new ve(Pt))})}},$t.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},$t.prototype.undoStep=function(){var Pt=this,mt=this.undoRedoManager.undo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Zt){return Zt(new ve(Pt))}))},$t.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},$t.prototype.redoStep=function(){var Pt=this,mt=this.undoRedoManager.redo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Zt){return Zt(new ve(Pt))}))},$t.prototype.stepZoom=function(){var Pt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Pt<this.zoomSteps.length-1?this.zoomSteps[Pt+1]:this.zoomSteps[0]},$t.prototype.panTo=function(Pt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Pt.x,top:this.prevPanPoint.y-Pt.y}),this.prevPanPoint=Pt},$t.prototype.startRenderAndClose=function(){return Tt(this,void 0,void 0,function(){var Pt,mt,Zt=this;return ee(this,function(Se){switch(Se.label){case 0:return[4,this.render()];case 1:return Pt=Se.sent(),mt=this.getState(),this.eventListeners.render.forEach(function(Dt){return Dt(new hn(Zt,Pt,mt))}),this.close(!0),[2]}})})},$t.prototype.getState=function(Pt){Pt===!0&&this.setCurrentMarker();var mt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Zt){return mt.markers.push(Zt.getState())}),mt},$t.prototype.restoreState=function(Pt){var mt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Pt.markers.forEach(function(Zt){var Se=mt._availableMarkerTypes.find(function(Ie){return Ie.typeName===Zt.typeName});if(Se!==void 0){var Dt=mt.addNewMarker(Se);Dt.restoreState(Zt),mt.markers.push(Dt)}}),Pt.width&&Pt.height&&(Pt.width!==this.imageWidth||Pt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Pt.width,this.imageHeight/Pt.height),this.eventListeners.restorestate.forEach(function(Zt){return Zt(new ve(mt))})},$t.prototype.addNewMarker=function(Pt){var mt=Wt.createGroup();return this.markerImage.appendChild(mt),new Pt(mt,this.overlayContainer,this.settings)},$t.prototype.createNewMarker=function(Pt){var mt,Zt=this;(mt=typeof Pt=="string"?this._availableMarkerTypes.find(function(Se){return Se.typeName===Pt}):Pt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(mt),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(mt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Se){return Se(new Ae(Zt,Zt._currentMarker))}))},$t.prototype.markerCreated=function(Pt){var mt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Pt),this.setCurrentMarker(Pt),Pt instanceof _e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(_e):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Zt){return Zt(new Ae(mt,mt._currentMarker))})},$t.prototype.colorChanged=function(Pt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Pt,this.settings.defaultStrokeColor=Pt)},$t.prototype.fillColorChanged=function(Pt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Pt)},$t.prototype.markerStateChanged=function(Pt){var mt=this;this.eventListeners.markerchange.forEach(function(Zt){return Zt(new Ae(mt,Pt))})},$t.prototype.setCurrentMarker=function(Pt){var mt=this;this._currentMarker!==Pt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Zt){return Zt(new Ae(mt,mt._currentMarker))})),this._currentMarker=Pt,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Zt){return Zt(new Ae(mt,mt._currentMarker))}))},$t.prototype.onPointerDown=function(Pt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Pt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var mt=this.markers.find(function(Zt){return Zt.ownsTarget(Pt.target)});mt!==void 0?(this.setCurrentMarker(mt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY),Pt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Pt.clientX,y:Pt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY))},$t.prototype.onDblClick=function(Pt){if(this._isFocused||this.focus(),this.mode==="select"){var mt=this.markers.find(function(Zt){return Zt.ownsTarget(Pt.target)});mt!==void 0&&mt!==this._currentMarker&&this.setCurrentMarker(mt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY),Pt.target):this.setCurrentMarker()}},$t.prototype.onPointerMove=function(Pt){this.touchPoints!==1&&Pt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Pt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY)):this.zoomLevel>1&&this.panTo({x:Pt.clientX,y:Pt.clientY}))},$t.prototype.onPointerUp=function(Pt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Pt.clientX,Pt.clientY)),this.isDragging=!1,this.addUndoStep()},$t.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},$t.prototype.onKeyUp=function(Pt){this._currentMarker===void 0||this.notesArea!==void 0||Pt.key!=="Delete"&&Pt.key!=="Backspace"||this.deleteSelectedMarker()},$t.prototype.clientToLocalCoordinates=function(Pt,mt){var Zt=this.markerImage.getBoundingClientRect();return{x:(Pt-Zt.left)/this.zoomLevel,y:(mt-Zt.top)/this.zoomLevel}},$t.prototype.onWindowResize=function(){this.positionUI()},$t.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Pt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Pt+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},$t.prototype.addLicenseKey=function(Pt){Gt.addKey(Pt)},$t.prototype.addEventListener=function(Pt,mt){this.eventListeners.addEventListener(Pt,mt)},$t.prototype.removeEventListener=function(Pt,mt){this.eventListeners.removeEventListener(Pt,mt)},$t.prototype.renderState=function(Pt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Pt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty($t.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),$t.prototype.focus=function(){var Pt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(mt){return mt(new ve(Pt))}))},$t.prototype.blur=function(){var Pt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(mt){return mt(new ve(Pt))}))},$t.instanceCounter=0,$t}(),Kt=bt(70635),Ee=bt(58130),je=($t,Pt,mt)=>new Promise((Zt,Se)=>{var Dt=zn=>{try{nn(mt.next(zn))}catch(xn){Se(xn)}},Ie=zn=>{try{nn(mt.throw(zn))}catch(xn){Se(xn)}},nn=zn=>zn.done?Zt(zn.value):Promise.resolve(zn.value).then(Dt,Ie);nn((mt=mt.apply($t,Pt)).next())}),Be=({data:$t,className:Pt,fullWidth:mt,style:Zt={},onClose:Se,onOk:Dt,showFullTools:Ie,noAssociationId:nn})=>{const zn=(0,Lt.useRef)(null),xn=(0,Lt.useRef)(null),li=(0,Lt.useRef)(null),Qi=(0,Lt.useRef)(null),[Wi,pr]=(0,Lt.useState)(!1),[xr,qr]=(0,Lt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Lt.useEffect)(()=>{li.current||(li.current=document.createElement("style"),document.head.appendChild(li.current)),$t!=null&&$t.visible?(document.body.setAttribute("data-custom","y-hidden"),li.current.innerHTML=" html { overflow-y: hidden; }",$t!=null&&$t.src&&Vr()):(document.body.removeAttribute("data-custom"),li.current&&(document.head.removeChild(li.current),li.current=null))},[$t==null?void 0:$t.visible]);const Vr=()=>je(void 0,null,function*(){pr(!0),qr("\u6B63\u5728\u52A0\u8F7D\u4E2D");const to=yield(0,Ee.ZJ)($t==null?void 0:$t.src);zn.current.src="",zn.current.src=to,zn.current.onload=function(){Xr()},pr(!1),qr("")}),Jr=to=>je(void 0,null,function*(){pr(!0),qr("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ho=yield(0,Kt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:$t.title,file:to.dataUrl}});ho!=null&&ho.id&&!nn?(yield(0,Kt.ZP)(`/api/attachments/${$t.id}/add_subitem.json`,{method:"post",body:{subitem_id:ho==null?void 0:ho.id,settings:JSON.stringify(to.state)}})).status===0&&Dt():ho!=null&&ho.id&&Dt(ho),pr(!1),qr("")}),Ir=()=>{const to=document.querySelector('a[href="https://markerjs.com/"]');to&&to.parentNode&&(to.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(cs=>{const no=document.querySelector(cs.name);no&&no.setAttribute("title",cs.title)})},Xr=()=>{xn.current=new Ft(zn.current),xn.current.targetRoot=Qi.current,xn.current.addEventListener("render",Jr),xn.current.addEventListener("beforeclose",Se),Ie&&(xn.current.availableMarkerTypes=xn.current.ALL_MARKER_TYPES,xn.current.uiStyleSettings.redoButtonVisible=!0,xn.current.uiStyleSettings.notesButtonVisible=!0,xn.current.uiStyleSettings.zoomButtonVisible=!0,xn.current.uiStyleSettings.zoomOutButtonVisible=!0,xn.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=xn.current.uiStyleSettings,xn.current.show(),$t!=null&&$t.snapshotData&&xn.current.restoreState($t.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ir()},300)};return Lt.createElement(Lt.Fragment,null,($t==null?void 0:$t.visible)&&Lt.createElement(re.Z,{spinning:Wi,tip:xr,style:{position:"absolute"}},Lt.createElement("div",{ref:Qi,className:De()(ge.imageDimensions,Pt,mt?ge.fullWidth:""),style:Zt},Lt.createElement("img",{className:ge.img,ref:zn}))))}},75890:function(di,Pn,bt){"use strict";var Lt=bt(59301),ge=bt(95237),se=bt(43604),De=bt(99313),re=bt(3113),le=bt(25711),Et=bt(93938),Tt=bt(48136),ee=bt(59301);const Ct=(0,Lt.forwardRef)(({callback:Wt,showSaveButton:Gt,value:Jt=""},wt)=>{const et=(0,Lt.useRef)(),tt=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],lt=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],rt=yt=>{et.current.setValue(et.current.getValue()+" "+yt.value+" ")},ht=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ee.createElement(ge.Z,{className:Et.Z.lists,gutter:[10,10]},tt.map((yt,Mt)=>ee.createElement(se.Z,{flex:"110px",className:Et.Z.item},ee.createElement("div",null,ee.createElement(le.Z,{value:`$$${yt.value}$$`}),yt.name),ee.createElement("div",{className:Et.Z.children},yt.children.map((jt,Rt)=>ee.createElement("div",{key:Rt},ee.createElement("h1",null,jt.name),ee.createElement(ge.Z,{gutter:[10,10]},jt.data.map((ae,he)=>ee.createElement(se.Z,{key:he,onClick:()=>rt(ae),className:Et.Z.diamond},ee.createElement(le.Z,{value:"`$$"+ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ee.createElement(ge.Z,{className:Et.Z.lists,gutter:[10,10]},lt.map((yt,Mt)=>ee.createElement(se.Z,{flex:"110px",className:Et.Z.item},ee.createElement("div",null,ee.createElement(le.Z,{value:"`$$"+yt.value+"$$`"}),yt.name),ee.createElement("div",{className:Et.Z.children},yt.children.map((jt,Rt)=>ee.createElement("div",{key:Rt},jt.name&&ee.createElement("h1",null,jt.name),ee.createElement(ge.Z,{gutter:[10,10]},jt.data.map((ae,he)=>ee.createElement(se.Z,{key:he,onClick:()=>rt(ae),className:Et.Z.diamond},ee.createElement(le.Z,{value:"`$$"+ae.value+"$$`"}))))))))))}],dt=()=>{var yt=document.createElement("div");yt.innerHTML=et.current.getValue();var Mt=yt.innerText;return Wt&&Wt(Mt),Mt};return(0,Lt.useImperativeHandle)(wt,()=>({getData:dt})),ee.createElement("div",{className:Et.Z.mathWrap},ee.createElement(De.default,{defaultActiveKey:"1",items:ht}),ee.createElement("math-field",{locale:"zh_cn",className:Et.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Jt||""),Gt&&ee.createElement("div",{className:Et.Z.button},ee.createElement(re.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Pn.Z=Ct},97267:function(di,Pn,bt){"use strict";var Lt=bt(59301),ge=bt(93314),se=bt(3113),De=Object.defineProperty,re=Object.defineProperties,le=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Ct=(wt,et,tt)=>et in wt?De(wt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):wt[et]=tt,Wt=(wt,et)=>{for(var tt in et||(et={}))Tt.call(et,tt)&&Ct(wt,tt,et[tt]);if(Et)for(var tt of Et(et))ee.call(et,tt)&&Ct(wt,tt,et[tt]);return wt},Gt=(wt,et)=>re(wt,le(et));const Jt=({img:wt,buttonProps:et={},styles:tt={},customText:lt,ButtonText:rt,ButtonClick:ht,Buttonclass:dt,ButtonTwo:yt,imgStyles:Mt,loading:jt=!1})=>Lt.createElement("section",{className:"tc animated fadeIn",style:Wt(Wt({},{color:"#999",margin:"100px auto",visibility:jt?"hidden":"visible"}),tt)},Lt.createElement("img",{src:wt||ge,style:Gt(Wt({},Mt),{pointerEvents:"none",userSelect:"none"})}),Lt.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&Lt.createElement(se.ZP,Wt({className:dt,onClick:ht},et),rt),yt&&yt);Pn.Z=Jt},79646:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return dt}});var Lt=bt(59301),ge={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},se=bt(3113),De=bt(63093),re=bt(48551),le=bt(6848),Et=bt(58130),Tt=bt(79124),ee=bt(97267),Ct=bt(10148),Wt=bt(63486),Gt=bt(59301),Jt=Object.defineProperty,wt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(yt,Mt,jt)=>Mt in yt?Jt(yt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):yt[Mt]=jt,rt=(yt,Mt)=>{for(var jt in Mt||(Mt={}))et.call(Mt,jt)&&lt(yt,jt,Mt[jt]);if(wt)for(var jt of wt(Mt))tt.call(Mt,jt)&&lt(yt,jt,Mt[jt]);return yt},ht=(yt,Mt,jt)=>new Promise((Rt,ae)=>{var he=ne=>{try{Te(jt.next(ne))}catch(Ke){ae(Ke)}},pe=ne=>{try{Te(jt.throw(ne))}catch(Ke){ae(Ke)}},Te=ne=>ne.done?Rt(ne.value):Promise.resolve(ne.value).then(he,pe);Te((jt=jt.apply(yt,Mt)).next())}),dt=({editOffice:yt="view",data:Mt,theme:jt,type:Rt,filename:ae,monacoEditor:he,className:pe,style:Te,close:ne,onClose:Ke,hasMask:Vt,disabledDownload:$e,onImgDimensions:Ge,showNodata:Oe,recordInfo:Ve})=>{const[_e,xe]=(0,Lt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ie,be]=(0,Lt.useState)(""),[Fn,Mn]=(0,Lt.useState)(),Xe=window.ENV==="build"?"/react/build":"",In=location.host.startsWith("localhost")?Ct.Z.PROXY_SERVER:Ct.Z.API_SERVER,pi=10*(1024*1024),$n=(0,Lt.useRef)();Mt!=null&&Mt.startsWith("/api")&&Rt!=="txt"&&(Mt=Ct.Z.API_SERVER+Mt);const bi=ve=>ve.substring(ve.lastIndexOf("/")+1).split(".").pop();ae&&he&&(he.filename=ae),(0,Lt.useEffect)(()=>{var ve,hn;const Ae=(hn=(ve=document.cookie)==null?void 0:ve.replace(/\s/g,""))==null?void 0:hn.split(";");Ae==null||Ae.map(Ot=>{let Ft=Ot.split("=");Ft[0]==="_educoder_session"&&be(Ft[1])})},[]),(0,Lt.useEffect)(()=>{Rt==="office"&&(Mt.indexOf("bigfilescdn.")>-1||Mt.indexOf("bigfiles1")>-1?Mn({url:Mt,fileType:bi(Mt),model:Mt.indexOf("model=edit")?"edit":"view"}):sn())},[Rt,Mt]);const sn=()=>ht(void 0,null,function*(){console.log("data:",Mt);let ve=Mt;Mt.startsWith("http")||(ve=location.origin+ve);let hn=new URL(ve).pathname.split("/").pop();const Ae=yield(0,Tt.gJ)({attachment_id:hn});Ae.url=In+Ae.url,Mn(Ae)}),Li=()=>{if(Mt.startsWith("http")||Mt.startsWith("blob:")){ji();return}(0,Et.Sv)(ae||"educoder",Mt,ae)},ji=()=>{Ve&&(0,Wt.fc)({id:Ve==null?void 0:Ve.id,watch_type:1,course_id:Ve==null?void 0:Ve.course_id}),(0,Et.Nd)(ae||"educoder",decodeURIComponent(Mt))};return Gt.createElement("div",{style:rt({},Te||{}),className:`${Vt&&ge.bgBlack} ${Rt?ge.wrp:"hide"}`},ne&&Gt.createElement("div",{className:ge.close,ref:$n},!!Ge&&Gt.createElement(le.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>$n.current},Gt.createElement("span",{onClick:()=>{Ke(),Ge()}},Gt.createElement("i",{className:"icon-yulanpizhu"}))),!$e&&Gt.createElement(le.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>$n.current},Gt.createElement("span",{onClick:ji},Gt.createElement("i",{className:"icon-quxiaozhiding"}))),Gt.createElement(le.Z,{title:"\u5173\u95ED",getPopupContainer:()=>$n.current},Gt.createElement("span",{className:"",onClick:Ke},Gt.createElement("i",{className:"icon-guanbi1"})))),Gt.createElement("div",{className:`${ge[pe]} ${pe} ${ge.monaco} ${Rt==="txt"?"show":"hide"}`},Rt==="txt"&&Gt.createElement(Gt.Fragment,null,Gt.createElement(re.ZP,rt({},he)))),Rt==="audio"&&Gt.createElement("audio",{src:`${(Mt==null?void 0:Mt.indexOf("http://"))>-1||(Mt==null?void 0:Mt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Mt}`,autoPlay:!0}),Rt==="video"&&Gt.createElement(Gt.Fragment,null,(Mt==null?void 0:Mt.indexOf("http"))>-1?Gt.createElement("video",{controls:!0,src:`${Mt}`,autoPlay:!0}):Gt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Mt}`,autoPlay:!0})),Rt==="office"&&Fn&&Gt.createElement("iframe",{src:`${Xe}/office.html?key=${Fn.key}&url=${btoa(Fn.url)}&callbackUrl=${In+(Fn.callbackUrl||"")}&fileType=${Fn.fileType}&title=${Fn.title||""}&model=${yt}&officeServer=${Ct.Z.ONLYOFFICE}&disabledDownload=${!!$e}`}),Rt==="html"&&Gt.createElement("iframe",{src:Mt+"&disposition=inline"}),Rt==="pdf"&&Gt.createElement("iframe",{src:`${Xe}/js/pdfview/index.html?filename=${ae||"educoder.pdf"}&url=${encodeURIComponent(Mt)}&disabledDownload=${!!$e}`}),Rt==="image"&&Gt.createElement("img",{src:`${(Mt==null?void 0:Mt.indexOf("http://"))>-1||(Mt==null?void 0:Mt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Mt}`}),(Rt==="other"||Rt==="download")&&Gt.createElement(Gt.Fragment,null,Oe?Gt.createElement(ee.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Gt.createElement(se.ZP,{icon:Gt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Li,disabled:$e},"\u4E0B\u8F7D")}):Gt.createElement(se.ZP,{type:"primary",size:"middle",onClick:Li,disabled:$e},Gt.createElement(De.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(di,Pn,bt){"use strict";bt.d(Pn,{z:function(){return Rt},Z:function(){return ae}});var Lt=bt(59301),ge=bt(1751),se=bt(31087),De=bt(64018),re=bt(37312),le=bt(10148),Et=bt(58130),Tt=bt(15342),ee=bt(1012),Ct=bt(79646),Wt=bt(59301),Jt=({html:he})=>{const pe=(0,Lt.useRef)(null),Te=(0,Lt.useRef)(null),ne=`.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,Lt.useEffect)(()=>{const Ke=pe.current.attachShadow({mode:"open"});Te.current=document.createElement("div"),Te.current.className="markdown-body",Te.current.innerHTML=he,Ke.appendChild(Te.current);const Vt=document.createElement("style");return Vt.textContent=ne,Ke.appendChild(Vt),()=>{Ke.innerHTML=""}},[]),(0,Lt.useEffect)(()=>{Te.current&&(Te.current.innerHTML=he)},[he]),Wt.createElement("div",{ref:pe})},wt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,rt=(he,pe,Te)=>pe in he?wt(he,pe,{enumerable:!0,configurable:!0,writable:!0,value:Te}):he[pe]=Te,ht=(he,pe)=>{for(var Te in pe||(pe={}))tt.call(pe,Te)&&rt(he,Te,pe[Te]);if(et)for(var Te of et(pe))lt.call(pe,Te)&&rt(he,Te,pe[Te]);return he};const dt="@\u2581\u2581@",yt="@\u2581@",Mt=/<pre[^>]*>/g;function jt(he){let pe=document.createElement("div");return pe.innerHTML=he,pe.childNodes.length===0?"":pe.childNodes[0].nodeValue}const Rt=(he,pe)=>{he=he||"";const Te=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ne=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Vt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return pe?he.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Te,($e,Ge,Oe,Ve,_e,xe,ie)=>{const be=Ge||Ve||xe,Fn=Oe||_e||ie||"?";return le.Z.API_SERVER+"/api/attachments/"+be+Fn+"&t="+(0,Et.Jn)(be,Date.now())+($e.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(he=he.replace(Vt,($e,Ge,Oe,Ve,_e,xe,ie)=>{const be=Ge||Ve||xe,Fn=Oe||_e||ie||"?";return le.Z.API_SERVER+"/attachments/download/"+be+Fn+"&t="+(0,Et.Jn)(be,Date.now())+($e.indexOf(")")>-1?")":"&")}).replace(Te,($e,Ge,Oe,Ve,_e,xe,ie)=>{const be=Ge||Ve||xe,Fn=Oe||_e||ie||"?";return le.Z.API_SERVER+"/api/attachments/"+be+Fn+"&t="+(0,Et.Jn)(be,Date.now())+($e.indexOf(")")>-1?")":"&")}).replace(ne,($e,Ge,Oe,Ve,_e)=>{const xe=Ge||Ve,ie=Oe||_e||"";return'"'+le.Z.API_SERVER+"/api/attachments/"+xe+ie+xe+ie+"&t="+(0,Et.Jn)(xe,Date.now())}).replace(Ke,($e,Ge,Oe,Ve,_e)=>{const xe=Ge||Ve,ie=Oe||_e||"";return"("+le.Z.API_SERVER+"/files/uploads/"+xe+ie+xe+ie+"&t="+(0,Et.Jn)(xe,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,`
`),he)};var ae=({value:he="",className:pe,showTextOnly:Te,showLines:ne,style:Ke={},stylesPrev:Vt={},highlightKeywords:$e,showProgramFill:Ge,isProgramFill:Oe,disabledFill:Ve=!1,programFillValue:_e,onFillChange:xe=Fn=>{},onFillBlur:ie=()=>{},onFillFocus:be=()=>{}})=>{let Fn=String(he);const[Mn,Xe]=(0,Lt.useState)(""),[In,Xn]=(0,Lt.useState)("office"),[pi,$n]=(0,Lt.useState)([]),bi=(0,Lt.useRef)("a"+(0,ee.Z)()),sn={},Li=($t,Pt,mt)=>{const Zt=document.createElement($t===yt?"input":"textarea");Zt.style.width="100%",Zt.style.height=$t===yt?"40px":"151px",Zt.rows=5,Zt.spellcheck=!1,Zt.name="edu-program-fill",Zt.placeholder="\u8BF7\u8F93\u5165",Zt.dataset.id=Pt;const Se=Object.keys(sn).length;return sn[Se]=Zt,`<span class="edu-program-fill-wrap ${$t===yt?"":"show"}" style="width:${$t===yt?"400px":"100%"}" title=${mt||""}><span>${Zt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ji($t){return $t=$t.replace(/!\[.*?\]\(.*?\)/g,""),$t=$t.replace(/\[.*?\]\(.*?\)/g,""),$t=$t.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),$t=$t.replace(/<embed.*?>/g,""),$t=$t.replace(/<img.*?>/g,""),$t=$t.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),$t=$t.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),$t=$t.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),$t=$t.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),$t}const ve=$t=>$t.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Pt,mt){let Zt=mt.replace(/(\n|\r)/g,"").split("}"),Se=[];return Zt.map(Dt=>{Dt!=""&&Se.push(`.${bi.current} ${Dt}`)}),`<style>${Se.join("}")}</style>`}),hn=(0,Lt.useMemo)(()=>{try{const Zt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Se=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Dt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ie=/\(\/attachments\/download\//g;Fn=Fn.replace(Ie,"("+le.Z.API_SERVER+"/attachments/download/").replace(Zt,"("+le.Z.API_SERVER+"/api/attachments/").replace(Se,'"'+le.Z.API_SERVER+"/api/attachments/").replace(Dt,'"'+le.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Zt){}if(Ge){let Zt=-1;return Fn=Fn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Se,Dt,Ie){var nn;return++Zt,Li(Se,Zt,(nn=_e==null?void 0:_e[Zt])==null?void 0:nn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${ve(Fn||"")}</pre>`}let $t=ve(Fn);$t=(0,se.ZP)($t);const Pt=(0,se.ez)();Fn.match(/\[TOC\]/)&&($t=$t.replace("<p>[TOC]</p>",(0,se.Qv)()),(0,se.Iy)()),$t=$t.replace(/(__special_katext_id_\d+__)/g,(Zt,Se)=>{const{type:Dt,expression:Ie}=Pt[Se];return(0,Tt.renderToString)(jt(Ie)||"",{displayMode:Dt==="block",throwOnError:!1,output:"html"})}),$t=$t.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,se.AL)();const mt=document.createElement("div");if(mt.innerHTML=$t,Te)return mt.innerText;if($e){const Zt=$e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Kt(mt,Zt),mt.innerHTML}return setTimeout(()=>ce(),500),mt.innerHTML},[Fn,$e]);(0,Lt.useEffect)(()=>{Ee.current&&Ee.current.querySelectorAll(["input","textarea"]).forEach(Pt=>{Pt.oninput=Ae,Pt.onblur=Ot,Pt.onfocus=Ft})},[pi]),(0,Lt.useEffect)(()=>{var $t,Pt,mt,Zt,Se;if(_e!=null&&_e.length)try{const Dt=Ee.current.querySelectorAll(".edu-program-fill-score"),Ie=Ee.current.querySelectorAll('[name="edu-program-fill"]');for(const[nn,zn]of Ie.entries())zn.value=(($t=_e==null?void 0:_e[nn])==null?void 0:$t.value)||"",((Pt=_e==null?void 0:_e[nn])==null?void 0:Pt.type)==="warning"?zn.className="program-fill-warning":((mt=_e==null?void 0:_e[nn])==null?void 0:mt.type)==="success"?zn.className="program-fill-success":zn.className="";for(const[nn,zn]of Dt.entries())zn.innerHTML=(Zt=_e==null?void 0:_e[nn])!=null&&Zt.score?`${(Se=_e==null?void 0:_e[nn])==null?void 0:Se.score}\u5206`:"";$n(_e)}catch(Dt){console.log(Dt,"error")}},[_e]);const Ae=$t=>{pi[$t.target.dataset.id]=pi[$t.target.dataset.id]||{},pi[$t.target.dataset.id].value=$t.target.value,$n([...pi]),xe(pi,$t.target.dataset.id)},Ot=$t=>{pi[$t.target.dataset.id]=pi[$t.target.dataset.id]||{},pi[$t.target.dataset.id].value=$t.target.value,$n([...pi]),ie(pi,$t.target.dataset.id)},Ft=$t=>{pi[$t.target.dataset.id]=pi[$t.target.dataset.id]||{},pi[$t.target.dataset.id].value=$t.target.value,$n([...pi]),be(pi,$t.target.dataset.id)};function Kt($t,Pt){return $t.childNodes.forEach(mt=>{var Zt;if(mt.childNodes.length>0)Kt(mt,Pt);else if(mt.nodeName!=="IMG")if(mt.innerHTML)mt.innerHTML=(Zt=mt.innerHTML)==null?void 0:Zt.replace(new RegExp(Pt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Se=document.createElement("span");Se.innerHTML=mt.textContent.replace(new RegExp(Pt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),mt.replaceWith(Se)}})}const Ee=(0,Lt.useRef)();se.jb.WebkitLineClamp=ne,ne&&(Ke=ht(ht({},Ke),se.jb));function je($t){let Pt=$t.target;if(Pt.tagName.toUpperCase()==="A"){let mt=Pt.getAttribute("href");if(mt.indexOf("office")>-1)$t.preventDefault(),Xe(mt),Xn("office");else if(mt.indexOf("application/pdf")>-1)$t.preventDefault(),Xe(mt),Xn("pdf");else if(mt.indexOf("text/html")>-1)$t.preventDefault(),Xe(mt),Xn("html");else if(mt.startsWith("#")){$t.preventDefault();let Zt=document.getElementById(mt.replace("#",""));Zt&&Zt.scrollIntoView(!0)}}}const ce=()=>{var $t;const Pt=($t=Ee.current)==null?void 0:$t.querySelectorAll("video");Pt==null||Pt.forEach(mt=>{if(mt.oncontextmenu=()=>!1,mt.src.indexOf(".m3u8")>-1&&!mt.canPlayType("application/vnd.apple.mpegurl")){if(re.ZP.isSupported()){var Zt=new re.ZP;Zt.loadSource(mt.src),Zt.attachMedia(mt)}}})};(0,Lt.useEffect)(()=>{if(Ee.current&&hn&&hn.match(Mt)&&window.PR.prettyPrint(),Ee.current)return Ee.current.addEventListener("click",je),()=>{var $t;($t=Ee.current)==null||$t.removeEventListener("click",je),(0,se.AL)(),(0,se.Iy)()}},[hn,Ee.current,je]),(0,Lt.useEffect)(()=>{var $t;const Pt=mt=>{mt.preventDefault(),mt.clipboardData.setData("text",window.getSelection().toString())};return($t=Ee.current)==null||$t.addEventListener("copy",Pt),()=>{var mt;(mt=Ee.current)==null||mt.removeEventListener("copy",Pt)}},[Ee.current]);const Be=$t=>/<style[\s\S]*?>/i.test($t||"");return Lt.createElement(Lt.Fragment,null,Te&&Lt.createElement("div",{ref:Ee},hn),!Te&&!Be(hn)&&Lt.createElement("div",{ref:Ee,style:ht({},Ke),className:`${pe||""} ${Ve?"disabled-fill":""} markdown-body ${bi.current}`,dangerouslySetInnerHTML:{__html:hn}}),!Te&&Be(hn)&&Lt.createElement(Jt,{html:hn}),Lt.createElement(Ct.Z,{close:!0,data:Mn,type:Mn!=null&&Mn.length?In:"",style:ht({},Vt),onClose:()=>Xe("")}))}},93461:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Ke}});var Lt=bt(59301),ge=bt(42203),se=bt(43418),De=bt(78241),re=bt(8591),le=bt(71418),Et=bt(86914),Tt=bt(95237),ee=bt(43604),Ct=bt(6848),Wt=bt(92832),Gt={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},Jt=bt(35427),wt=bt(3129),et=bt(97267),tt=bt(94606),lt=Object.defineProperty,rt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,jt=(Vt,$e,Ge)=>$e in Vt?lt(Vt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Vt[$e]=Ge,Rt=(Vt,$e)=>{for(var Ge in $e||($e={}))yt.call($e,Ge)&&jt(Vt,Ge,$e[Ge]);if(dt)for(var Ge of dt($e))Mt.call($e,Ge)&&jt(Vt,Ge,$e[Ge]);return Vt},ae=(Vt,$e)=>rt(Vt,ht($e)),he=(Vt,$e)=>{var Ge={};for(var Oe in Vt)yt.call(Vt,Oe)&&$e.indexOf(Oe)<0&&(Ge[Oe]=Vt[Oe]);if(Vt!=null&&dt)for(var Oe of dt(Vt))$e.indexOf(Oe)<0&&Mt.call(Vt,Oe)&&(Ge[Oe]=Vt[Oe]);return Ge},pe=(Vt,$e,Ge)=>new Promise((Oe,Ve)=>{var _e=be=>{try{ie(Ge.next(be))}catch(Fn){Ve(Fn)}},xe=be=>{try{ie(Ge.throw(be))}catch(Fn){Ve(Fn)}},ie=be=>be.done?Oe(be.value):Promise.resolve(be.value).then(_e,xe);ie((Ge=Ge.apply(Vt,$e)).next())});const Te=(Vt=[])=>Vt==null?void 0:Vt.map($e=>ae(Rt({},$e),{title:($e==null?void 0:$e.value)||"",key:$e==null?void 0:$e.id,isLeaf:!0})),ne=Vt=>{var $e=Vt,{user:Ge,children:Oe,isShowComponent:Ve=!0,ModalProps:_e={},onDataSelect:xe}=$e,ie=he($e,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[be,Fn]=se.default.useModal(),[Mn]=De.default.useForm(),[Xe,In]=(0,Lt.useState)([]),[Xn,pi]=(0,Lt.useState)(!1),[$n,bi]=(0,Lt.useState)(!1),[,sn,Li,ji]=(0,Jt.U)(wt.qE,{page:1,limit:9999}),[,,ve]=(0,Jt.U)(wt.V8,{}),[,,hn]=(0,Jt.U)(wt.B$,{}),[,,Ae]=(0,Jt.U)(wt.DH,{}),[,,Ot]=(0,Jt.U)(wt.bJ,{}),Ft=()=>{pi(!1),Mn.resetFields(),bi(!1)},Kt=je=>pe(void 0,null,function*(){const{node:ce,dragNode:Be,event:$t}=je,Pt=je.node.pos.split("-"),mt=je.dropPosition-Number(Pt[Pt.length-1]);if(mt==0){re.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(mt==1&&(Be==null?void 0:Be.item_index)==(ce==null?void 0:ce.item_index)+1){re.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const Zt=yield Ot({id:Be==null?void 0:Be.key,position:mt==-1?1:(Be==null?void 0:Be.item_index)>(ce==null?void 0:ce.item_index)?(ce==null?void 0:ce.item_index)+1:ce==null?void 0:ce.item_index});(Zt==null?void 0:Zt.status)===0&&(re.ZP.success("\u79FB\u52A8\u6210\u529F"),Li({},!0))}),Ee=je=>pe(void 0,null,function*(){let ce={};$n?ce=yield hn(Rt({},je)):ce=yield Ae(Rt({},je)),(ce==null?void 0:ce.status)==0&&(re.ZP.success((ce==null?void 0:ce.message)||($n?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Li({},!0),Ft())});return(0,Lt.useEffect)(()=>{_e!=null&&_e.open&&Li({},!0)},[_e==null?void 0:_e.open]),(0,Lt.useEffect)(()=>{var je;In(Te((je=ji==null?void 0:ji.data)==null?void 0:je.list))},[ji]),Ve?Lt.createElement(Lt.Fragment,null,Fn,Oe,Lt.createElement(se.default,Rt({},Rt({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},_e)),Lt.createElement(le.Z,{spinning:sn},(Xe==null?void 0:Xe.length)>0?Lt.createElement(Lt.Fragment,null,Lt.createElement(Et.default.DirectoryTree,{height:500,className:Gt.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:xe,treeData:Xe,onDrop:Kt,titleRender:je=>Lt.createElement(Lt.Fragment,null,Lt.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},je==null?void 0:je.title),Lt.createElement("div",{className:`${Gt.EditDom}`},Lt.createElement(Tt.Z,{wrap:!1,align:"middle",gutter:16},Lt.createElement(ee.Z,null,Lt.createElement(Ct.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},Lt.createElement("i",{className:`iconfont icon-tuodong1 font12 ${Gt.currentPrimary}`}))),Lt.createElement(ee.Z,null,Lt.createElement(Ct.Z,{title:"\u7F16\u8F91"},Lt.createElement("i",{className:`iconfont icon-bianji11 font12 ${Gt.currentPrimary}`,onClick:ce=>{ce.stopPropagation(),Mn.setFieldsValue(Rt({},je)),pi(!0)}}))),Lt.createElement(ee.Z,null,Lt.createElement(Ct.Z,{title:"\u5220\u9664"},Lt.createElement("i",{className:`iconfont icon-shanchu14 font12 ${Gt.currentDelete}`,onClick:ce=>{ce.stopPropagation(),be.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>pe(void 0,null,function*(){const Be=yield ve({id:je==null?void 0:je.key});(Be==null?void 0:Be.status)==0&&(re.ZP.success((Be==null?void 0:Be.message)||"\u5220\u9664\u6210\u529F"),Li({},!0))})})}}))))))}),Lt.createElement(tt.op,{className:"ml20 mt20",icon:Lt.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{bi(!0),pi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):Lt.createElement(et.Z,{styles:{margin:"30px auto"},customText:Lt.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",Lt.createElement("a",{onClick:()=>{bi(!0),pi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),Lt.createElement(se.default,{title:$n?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Xn,okText:$n?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{Ft()},onOk:()=>{Mn.submit()}},Lt.createElement(De.default,{form:Mn,onFinish:Ee},$n&&Lt.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),Lt.createElement(De.default.Item,{hidden:!0,name:"id"}),Lt.createElement(De.default.Item,{className:"mt10",name:"value"},Lt.createElement(Wt.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var Ke=(0,ge.connect)(({loading:Vt,user:$e})=>({user:$e,loading:Vt.effects}))(ne)},36866:function(di,Pn,bt){"use strict";bt.d(Pn,{h:function(){return yt},Z:function(){return dt}});var Lt=bt(59301),ge=bt(57809),se=bt(78241),De=bt(3113),re=bt(89780),le=bt.n(re),Et=bt(79906),Tt=Object.defineProperty,ee=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,wt=(Mt,jt,Rt)=>jt in Mt?Tt(Mt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Mt[jt]=Rt,et=(Mt,jt)=>{for(var Rt in jt||(jt={}))Gt.call(jt,Rt)&&wt(Mt,Rt,jt[Rt]);if(Wt)for(var Rt of Wt(jt))Jt.call(jt,Rt)&&wt(Mt,Rt,jt[Rt]);return Mt},tt=(Mt,jt)=>ee(Mt,Ct(jt));const lt=ge.default.Option,rt={labelCol:{span:4},wrapperCol:{span:20}},ht={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var dt=({callback:Mt,onCancel:jt})=>{const[Rt,ae]=(0,Lt.useState)("python");function he(Te){ae(ht[Te][1])}function pe(Te){Mt(Te)}return Lt.createElement(se.default,tt(et({},rt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:pe,style:{width:500}}),Lt.createElement(se.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Lt.createElement(ge.default,{getPopupContainer:Te=>Te.parentNode,onChange:he},Object.keys(ht).map(Te=>Lt.createElement(lt,{key:Te,value:Te},ht[Te][0])))),Lt.createElement(se.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Lt.createElement(yt,{mode:Rt})),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(De.ZP,{type:"ghost",onClick:jt},"\u53D6\u6D88")))};function yt({value:Mt,onChange:jt,mode:Rt,options:ae={}}){const he=(0,Lt.useRef)(),[pe,Te]=(0,Lt.useState)();return(0,Lt.useEffect)(()=>{if(pe){let ne=function(Ke){const Vt=Ke.getValue();jt&&jt(Vt)};return pe.on("change",ne),()=>{pe.off("change",ne)}}},[pe,jt]),(0,Lt.useEffect)(()=>{pe&&pe.setOption("mode",Rt)},[pe,Rt]),(0,Lt.useEffect)(()=>{pe&&(Mt!==pe.getValue()||Mt==="")&&setTimeout(()=>{pe.setValue(Mt||"")},300)},[pe,Mt]),(0,Lt.useEffect)(()=>{if(he.current&&!pe){const ne=le().fromTextArea(he.current,et({mode:Rt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ae));Te(ne)}},[he.current,pe]),Lt.createElement("div",{className:"my-codemirror-container"},Lt.createElement("textarea",{ref:he}))}},23469:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Qr}});var Lt=bt(59301),ge=bt(89780),se=bt.n(ge),De=bt(76374),re=bt(79906),le=bt(6313),Et=bt(25717),Tt=bt(99498),ee=bt(25419),Ct=bt(67549),Wt=bt(25711),Gt=({value:Vn="",className:Qn,showTextOnly:kn,showLines:rn,style:hi={}})=>{const Ci=(0,Lt.useMemo)(()=>"",[Vn]);return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{dangerouslySetInnerHTML:{__html:Ci}}))},Jt=bt(59301),wt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,dt=(Vn,Qn,kn)=>Qn in Vn?wt(Vn,Qn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Vn[Qn]=kn,yt=(Vn,Qn)=>{for(var kn in Qn||(Qn={}))rt.call(Qn,kn)&&dt(Vn,kn,Qn[kn]);if(lt)for(var kn of lt(Qn))ht.call(Qn,kn)&&dt(Vn,kn,Qn[kn]);return Vn},Mt=(Vn,Qn)=>et(Vn,tt(Qn));let jt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Rt({onActionCallback:Vn,title:Qn,icon:kn,actionName:rn,className:hi="",children:Ci}){function bn(){Vn(rn)}return Jt.createElement("a",{title:Qn,className:hi,onClick:bn},Jt.createElement("i",{className:`${kn}`}),Ci)}var ae=({watch:Vn,showNullButton:Qn,showNullProgramButton:kn,onActionCallback:rn,fullScreen:hi,insertTemp:Ci,hidetoolBar:bn,extraUse:Ne})=>{const Bn=[...jt,{title:`${Vn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Vn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Jt.createElement("ul",{className:"markdown-toolbar-container"},!bn&&Bn.map((_n,Ii)=>Jt.createElement("li",{key:Ii},_n.actionName?Jt.createElement(Rt,Mt(yt({},_n),{onActionCallback:rn})):Jt.createElement("span",{className:"v-line"}))),Qn?Jt.createElement("li",null,Jt.createElement(Rt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rn},Jt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,kn?Jt.createElement(Jt.Fragment,null,Jt.createElement("li",null,Jt.createElement(Rt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rn},Jt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Jt.createElement("li",null,Jt.createElement(Rt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rn},Jt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ci&&Jt.createElement("li",null,Jt.createElement(Rt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ci}`,onActionCallback:rn},Jt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ne&&Jt.createElement("li",null,Ne),Jt.createElement("li",{className:"btn-full-screen"},Jt.createElement(Rt,{icon:`${hi?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:hi?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rn})))},he=bt(50474),pe=bt(78241),Te=bt(92832),ne=bt(3113),Ke=Object.defineProperty,Vt=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,_e=(Vn,Qn,kn)=>Qn in Vn?Ke(Vn,Qn,{enumerable:!0,configurable:!0,writable:!0,value:kn}):Vn[Qn]=kn,xe=(Vn,Qn)=>{for(var kn in Qn||(Qn={}))Oe.call(Qn,kn)&&_e(Vn,kn,Qn[kn]);if(Ge)for(var kn of Ge(Qn))Ve.call(Qn,kn)&&_e(Vn,kn,Qn[kn]);return Vn},ie=(Vn,Qn)=>Vt(Vn,$e(Qn));const be={labelCol:{span:4},wrapperCol:{span:20}};var Fn=({callback:Vn,onCancel:Qn})=>{function kn(rn){Vn(rn)}return Lt.createElement(pe.default,ie(xe({},be),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:kn,style:{width:500}}),Lt.createElement(pe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Lt.createElement(Te.default,null)),Lt.createElement(pe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Lt.createElement(Te.default,null)),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(ne.ZP,{type:"ghost",onClick:Qn},"\u53D6\u6D88")))},Mn=bt(36866),Xe=bt(56701),In=bt(43418),Xn=bt(95237),pi=bt(65983),$n=bt(59301),bi=({callback:Vn,onCancel:Qn})=>{const kn=document.createElement("canvas"),rn=kn.getContext("2d");kn.width=1e3,kn.height=800,rn.fillStyle="#ffffff",rn.fillRect(0,0,kn.width,kn.height);const hi=kn.toDataURL("image/png");return $n.createElement(In.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},$n.createElement(Xn.Z,{style:{height:"100vh"}},$n.createElement(pi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:hi,visible:!0,title:String(Date.now())},onOk:Ci=>{Vn({src:Ci.url})},onClose:Qn})))},sn=bt(12378);function Li(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Li,go.CommandHandler),Li.prototype.canAlignSelection=function(){var Vn=this.diagram;return!(Vn===null||Vn.isReadOnly||Vn.isModelReadOnly||Vn.selection.count<2)},Li.prototype.alignLeft=function(){var Vn=this.diagram;Vn.startTransaction("aligning left");var Qn=1/0;Vn.selection.each(function(kn){kn instanceof go.Link||(Qn=Math.min(kn.position.x,Qn))}),Vn.selection.each(function(kn){kn instanceof go.Link||kn.move(new go.Point(Qn,kn.position.y))}),Vn.commitTransaction("aligning left")},Li.prototype.alignRight=function(){var Vn=this.diagram;Vn.startTransaction("aligning right");var Qn=-1/0;Vn.selection.each(function(kn){if(!(kn instanceof go.Link)){var rn=kn.actualBounds.x+kn.actualBounds.width;Qn=Math.max(rn,Qn)}}),Vn.selection.each(function(kn){kn instanceof go.Link||kn.move(new go.Point(Qn-kn.actualBounds.width,kn.position.y))}),Vn.commitTransaction("aligning right")},Li.prototype.alignTop=function(){var Vn=this.diagram;Vn.startTransaction("alignTop");var Qn=1/0;Vn.selection.each(function(kn){kn instanceof go.Link||(Qn=Math.min(kn.position.y,Qn))}),Vn.selection.each(function(kn){kn instanceof go.Link||kn.move(new go.Point(kn.position.x,Qn))}),Vn.commitTransaction("alignTop")},Li.prototype.alignBottom=function(){var Vn=this.diagram;Vn.startTransaction("aligning bottom");var Qn=-1/0;Vn.selection.each(function(kn){if(!(kn instanceof go.Link)){var rn=kn.actualBounds.y+kn.actualBounds.height;Qn=Math.max(rn,Qn)}}),Vn.selection.each(function(kn){kn instanceof go.Link||kn.move(new go.Point(kn.actualBounds.x,Qn-kn.actualBounds.height))}),Vn.commitTransaction("aligning bottom")},Li.prototype.alignCenterX=function(){var Vn=this.diagram,Qn=Vn.selection.first();if(Qn){Vn.startTransaction("aligning Center X");var kn=Qn.actualBounds.x+Qn.actualBounds.width/2;Vn.selection.each(function(rn){rn instanceof go.Link||rn.move(new go.Point(kn-rn.actualBounds.width/2,rn.actualBounds.y))}),Vn.commitTransaction("aligning Center X")}},Li.prototype.alignCenterY=function(){var Vn=this.diagram,Qn=Vn.selection.first();if(Qn){Vn.startTransaction("aligning Center Y");var kn=Qn.actualBounds.y+Qn.actualBounds.height/2;Vn.selection.each(function(rn){rn instanceof go.Link||rn.move(new go.Point(rn.actualBounds.x,kn-rn.actualBounds.height/2))}),Vn.commitTransaction("aligning Center Y")}},Li.prototype.alignColumn=function(Vn){var Qn=this.diagram;Qn.startTransaction("align Column"),Vn===void 0&&(Vn=0),Vn=parseFloat(Vn);var kn=new Array;Qn.selection.each(function(Ne){Ne instanceof go.Link||kn.push(Ne)});for(var rn=0;rn<kn.length-1;rn++){var hi=kn[rn],Ci=hi.actualBounds.y+hi.actualBounds.height+Vn,bn=kn[rn+1];bn.move(new go.Point(hi.actualBounds.x,Ci))}Qn.commitTransaction("align Column")},Li.prototype.alignRow=function(Vn){Vn===void 0&&(Vn=0),Vn=parseFloat(Vn);var Qn=this.diagram;Qn.startTransaction("align Row");var kn=new Array;Qn.selection.each(function(Ne){Ne instanceof go.Link||kn.push(Ne)});for(var rn=0;rn<kn.length-1;rn++){var hi=kn[rn],Ci=hi.actualBounds.x+hi.actualBounds.width+Vn,bn=kn[rn+1];bn.move(new go.Point(Ci,hi.actualBounds.y))}Qn.commitTransaction("align Row")},Li.prototype.canRotate=function(Vn){var Qn=this.diagram;return!(Qn===null||Qn.isReadOnly||Qn.isModelReadOnly||Qn.selection.count<1)},Li.prototype.rotate=function(Vn){Vn===void 0&&(Vn=90);var Qn=this.diagram;Qn.startTransaction("rotate "+Vn.toString());var Qn=this.diagram;Qn.selection.each(function(kn){kn instanceof go.Link||kn instanceof go.Group||(kn.angle+=Vn)}),Qn.commitTransaction("rotate "+Vn.toString())},Li.prototype.pullToFront=function(){var Vn=this.diagram;Vn.startTransaction("pullToFront");var Qn=new go.Map;Vn.selection.each(function(kn){Qn.set(kn.layer,0)}),Qn.iteratorKeys.each(function(kn){var rn=0;kn.parts.each(function(hi){if(!hi.isSelected){var Ci=hi.zOrder;isNaN(Ci)?hi.zOrder=0:rn=Math.max(rn,Ci)}}),Qn.set(kn,rn)}),Vn.selection.each(function(kn){Li._assignZOrder(kn,Qn.get(kn.layer)+1)}),Vn.commitTransaction("pullToFront")},Li.prototype.pushToBack=function(){var Vn=this.diagram;Vn.startTransaction("pushToBack");var Qn=new go.Map;Vn.selection.each(function(kn){Qn.set(kn.layer,0)}),Qn.iteratorKeys.each(function(kn){var rn=0;kn.parts.each(function(hi){if(!hi.isSelected){var Ci=hi.zOrder;isNaN(Ci)?hi.zOrder=0:rn=Math.min(rn,Ci)}}),Qn.set(kn,rn)}),Vn.selection.each(function(kn){Li._assignZOrder(kn,Qn.get(kn.layer)-1-Li._findGroupDepth(kn))}),Vn.commitTransaction("pushToBack")},Li._assignZOrder=function(Vn,Qn,kn){kn===void 0&&(kn=Vn),Vn.layer===kn.layer&&(Vn.zOrder=Qn),Vn instanceof go.Group&&Vn.memberParts.each(function(rn){Li._assignZOrder(rn,Qn+1,kn)})},Li._findGroupDepth=function(Vn){if(Vn instanceof go.Group){var Qn=0;return Vn.memberParts.each(function(kn){Qn=Math.max(Qn,Li._findGroupDepth(kn))}),Qn+1}else return 0},Li.prototype.doKeyDown=function(){var Vn=this.diagram;if(Vn!==null){var Qn=Vn.lastInput;if(Qn.key==="Up"||Qn.key==="Down"||Qn.key==="Left"||Qn.key==="Right"){var kn=this.arrowKeyBehavior;if(kn==="none")return;if(kn==="select"){this._arrowKeySelect();return}else if(kn==="move"){this._arrowKeyMove();return}else if(kn==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Li.prototype._getAllParts=function(){var Vn=new Array;return this.diagram.nodes.each(function(Qn){Vn.push(Qn)}),this.diagram.parts.each(function(Qn){Vn.push(Qn)}),Vn},Li.prototype._arrowKeyMove=function(){var Vn=this.diagram,Qn=Vn.lastInput,kn=0,rn=0;if(Qn.control||Qn.meta)kn=1,rn=1;else if(Vn.grid!==null){var hi=Vn.grid.gridCellSize;rn=hi.width,kn=hi.height}Vn.startTransaction("arrowKeyMove"),Vn.selection.each(function(Ci){Qn.key==="Up"?Ci.move(new go.Point(Ci.actualBounds.x,Ci.actualBounds.y-kn)):Qn.key==="Down"?Ci.move(new go.Point(Ci.actualBounds.x,Ci.actualBounds.y+kn)):Qn.key==="Left"?Ci.move(new go.Point(Ci.actualBounds.x-rn,Ci.actualBounds.y)):Qn.key==="Right"&&Ci.move(new go.Point(Ci.actualBounds.x+rn,Ci.actualBounds.y))}),Vn.commitTransaction("arrowKeyMove")},Li.prototype._arrowKeySelect=function(){var Vn=this.diagram,Qn=Vn.lastInput,kn=null;Qn.key==="Up"?kn=this._findNearestPartTowards(270):Qn.key==="Down"?kn=this._findNearestPartTowards(90):Qn.key==="Left"?kn=this._findNearestPartTowards(180):Qn.key==="Right"&&(kn=this._findNearestPartTowards(0)),kn!==null&&(Qn.shift?kn.isSelected=!0:Qn.control||Qn.meta?kn.isSelected=!kn.isSelected:Vn.select(kn))},Li.prototype._findNearestPartTowards=function(Vn){var Qn=this.diagram.selection.first();if(Qn===null)return null;for(var kn=Qn.actualBounds.center,rn=this._getAllParts(),hi=1/0,Ci=Qn,bn=0;bn<rn.length;bn++){var Ne=rn[bn];if(Ne!==Qn&&Ne.canSelect()){var Bn=Ne.actualBounds.center,_n=kn.directionPoint(Bn),Ii=this._angleCloseness(_n,Vn);if(Ii<=45){var ni=kn.distanceSquaredPoint(Bn);ni*=1+Math.sin(Ii*Math.PI/180),ni<hi&&(hi=ni,Ci=Ne)}}}return Ci},Li.prototype._angleCloseness=function(Vn,Qn){return Math.min(Math.abs(Qn-Vn),Math.min(Math.abs(Qn+360-Vn),Math.abs(Qn-360-Vn)))},Li.prototype._arrowKeyTree=function(){var Vn=this.diagram,Qn=Vn.selection.first();if(Qn instanceof go.Node){var kn=Vn.lastInput;if(kn.key==="Right"){if(!Qn.isTreeLeaf)if(!Qn.isTreeExpanded)Vn.commandHandler.canExpandTree(Qn)&&Vn.commandHandler.expandTree(Qn);else{var rn=this._sortTreeChildrenByY(Qn).first();rn!==null&&Vn.select(rn)}}else if(kn.key==="Left")if(!Qn.isTreeLeaf&&Qn.isTreeExpanded)Vn.commandHandler.canCollapseTree(Qn)&&Vn.commandHandler.collapseTree(Qn);else{var hi=Qn.findTreeParentNode();hi!==null&&Vn.select(hi)}else if(kn.key==="Up"){var hi=Qn.findTreeParentNode();if(hi!==null){var Ci=this._sortTreeChildrenByY(hi),bn=Ci.indexOf(Qn);if(bn>0){for(var Ne=Ci.elt(bn-1);Ne!==null&&Ne.isTreeExpanded&&!Ne.isTreeLeaf;){var Bn=this._sortTreeChildrenByY(Ne);Ne=Bn.last()}Ne!==null&&Vn.select(Ne)}else Vn.select(hi)}}else if(kn.key==="Down")if(Qn.isTreeExpanded&&!Qn.isTreeLeaf){var rn=this._sortTreeChildrenByY(Qn).first();rn!==null&&Vn.select(rn)}else for(;Qn!==null;){var hi=Qn.findTreeParentNode();if(hi===null)break;var Ci=this._sortTreeChildrenByY(hi),bn=Ci.indexOf(Qn);if(bn<Ci.length-1){Vn.select(Ci.elt(bn+1));break}else Qn=hi}var _n=Vn.selection.first();_n!==null&&Vn.scrollToRect(_n.actualBounds)}},Li.prototype._sortTreeChildrenByY=function(Vn){var Qn=new go.List().addAll(Vn.findTreeChildrenNodes());return Qn.sort(function(kn,rn){var hi=kn.location,Ci=rn.location;return hi.y<Ci.y?-1:hi.y>Ci.y?1:hi.x<Ci.x?-1:hi.x>Ci.x?1:0}),Qn},Li.prototype.copyToClipboard=function(Vn){go.CommandHandler.prototype.copyToClipboard.call(this,Vn),this._lastPasteOffset.set(this.pasteOffset)},Li.prototype.pasteFromClipboard=function(){var Vn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Vn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Vn},Object.defineProperty(Li.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Vn){if(Vn!=="move"&&Vn!=="select"&&Vn!=="scroll"&&Vn!=="tree"&&Vn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Vn);this._arrowKeyBehavior=Vn}}),Object.defineProperty(Li.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Vn){if(!(Vn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Vn);this._pasteOffset.set(Vn)}});var ji=Li,ve=bt(37404),hn=bt(43604),Ae=bt(70635),Ot={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ft=bt(59301),Kt=(Vn,Qn,kn)=>new Promise((rn,hi)=>{var Ci=Bn=>{try{Ne(kn.next(Bn))}catch(_n){hi(_n)}},bn=Bn=>{try{Ne(kn.throw(Bn))}catch(_n){hi(_n)}},Ne=Bn=>Bn.done?rn(Bn.value):Promise.resolve(Bn.value).then(Ci,bn);Ne((kn=kn.apply(Vn,Qn)).next())});function Ee({onCancel:Vn,callback:Qn}){let kn=(0,Lt.useRef)(),rn=(0,Lt.useRef)(),hi=(0,Lt.useRef)(),Ci=(0,Lt.useRef)(!1);const bn=(0,Lt.useRef)(!1),[Ne,Bn]=(0,Lt.useState)(0);function _n(){const ni=sn.bx.make,mn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};kn.current=new sn.S0(rn.current,{padding:20,grid:ni(sn.s_,"Grid",ni(sn.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ni(sn.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:jn=>{var Tr=jn.diagram.commandHandler.addTopLevelParts(jn.diagram.selection,!0);Tr||jn.diagram.currentTool.doCancel()},commandHandler:ni(ji),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:jn=>{var Tr=jn.subject;Tr.location=Tr.location.copy().snapToGridPoint(jn.diagram.grid.gridOrigin,jn.diagram.grid.gridCellSize),setTimeout(()=>{jn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:jn=>{var Tr=jn.subject;setTimeout(()=>{jn.diagram.commandHandler.editTextBlock()})},LinkRelinked:jn=>{var Tr=jn.parameter.part;Tr.invalidateConnectedLinks();var so=jn.subject;jn.diagram.toolManager.linkingTool.isForwards?so.toNode.invalidateConnectedLinks():so.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),kn.current.nodeTemplate=ni(sn.NB,"Auto",{locationSpot:sn.z6.Center,locationObjectName:"SHAPE",desiredSize:new sn.$u(120,60),minSize:new sn.$u(40,40),resizable:!0,resizeCellSize:new sn.$u(10,10),rotatable:!0},new sn.KX("location","loc",sn.E9.parse).makeTwoWay(sn.E9.stringify),new sn.KX("desiredSize","size",sn.$u.parse).makeTwoWay(sn.$u.stringify),ni(sn.bn,{name:"SHAPE",fill:mn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:sn.z6.AllSides,toSpot:sn.z6.AllSides},new sn.KX("figure"),new sn.KX("fill"),new sn.KX("stroke","borderColor"),new sn.KX("strokeWidth","thickness"),new sn.KX("strokeDashArray","dash")),ni(sn.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ni(sn.al,{margin:1,textAlign:"center",overflow:sn.al.OverflowEllipsis,editable:!0},new sn.KX("text").makeTwoWay(),new sn.KX("stroke","color"))),kn.current.nodeTemplate.toolTip=ni("ToolTip",ni(sn.s_,"Vertical",{maxSize:new sn.$u(200,NaN)},ni(sn.al,{font:"bold 10pt sans-serif",textAlign:"center"},new sn.KX("text")),ni(sn.al,{font:"10pt sans-serif",textAlign:"center"},new sn.KX("text","details"))));function Ai(jn,Tr){var so=(_r,ns)=>{_r.handled=!0,_r.diagram.model.commit(Oo=>{var yi=ns.part.adornedPart,Bo=new sn.E9().setRectSpot(yi.actualBounds,jn);Bo.subtract(yi.location),Bo.scale(2,2),Bo.x+=Math.sign(Bo.x)*130,Bo.y+=Math.sign(Bo.y)*130,Bo.add(yi.location),Bo.snapToGridPoint(_r.diagram.grid.gridOrigin,_r.diagram.grid.gridCellSize);var Hr=Oo.copyNodeData(yi.data);Oo.setGroupKeyForNodeData(Hr,Oo.getGroupKeyForNodeData(yi.data)),Oo.addNodeData(Hr);var kr={from:yi.key,to:Oo.getKeyForNodeData(Hr)};Oo.addLinkData(kr);var Bi=_r.diagram.findNodeForData(Hr);Bi.location=Bo,_r.diagram.select(Bi),setTimeout(()=>{_r.diagram.commandHandler.editTextBlock()},20)})};return ni(sn.bn,{figure:Tr,alignment:jn,alignmentFocus:jn.opposite(),width:jn.equals(sn.z6.Top)||jn.equals(sn.z6.Bottom)?25:18,height:jn.equals(sn.z6.Top)||jn.equals(sn.z6.Bottom)?18:25,fill:"orange",stroke:mn.white,strokeWidth:4,mouseEnter:(_r,ns)=>ns.fill="dodgerblue",mouseLeave:(_r,ns)=>ns.fill="orange",isActionable:!0,click:so,contextClick:so})}function Mi(jn){return ni(sn.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Tr,so)=>so.fill="dodgerblue",mouseLeave:(Tr,so)=>so.fill="orange",click:(Tr,so)=>{Tr.diagram.commandHandler.showContextMenu(so.part.adornedPart)}},jn||{})}kn.current.nodeTemplate.selectionAdornmentTemplate=ni(sn.uz,"Spot",ni(sn.Vm,{padding:10}),Ai(sn.z6.Top,"TriangleUp"),Ai(sn.z6.Left,"TriangleLeft"),Ai(sn.z6.Right,"TriangleRight"),Ai(sn.z6.Bottom,"TriangleDown"),Mi({alignment:new sn.z6(.75,0)}));function er(jn,Tr){return(so,_r)=>{so.handled=!0,so.diagram.model.commit(ns=>{ns.set(_r.part.adornedPart.data,jn,Tr)})}}function On(jn,Tr){return Tr||(Tr="color"),ni(sn.bn,{width:16,height:16,stroke:"lightgray",fill:jn,margin:1,background:"transparent",mouseEnter:(so,_r)=>_r.stroke="dodgerblue",mouseLeave:(so,_r)=>_r.stroke="lightgray",click:er(Tr,jn),contextClick:er(Tr,jn)})}function Si(){return[ni("ContextMenuButton",ni(sn.s_,"Horizontal",On(mn.white,"fill"),On(mn.beige,"fill"),On(mn.extralightblue,"fill"),On(mn.extralightred,"fill"))),ni("ContextMenuButton",ni(sn.s_,"Horizontal",On(mn.lightgray,"fill"),On(mn.lightgreen,"fill"),On(mn.lightblue,"fill"),On(mn.lightred,"fill")))]}function Pr(){return[ni("ContextMenuButton",ni(sn.s_,"Horizontal",On(mn.black),On(mn.green),On(mn.blue),On(mn.red))),ni("ContextMenuButton",ni(sn.s_,"Horizontal",On(mn.white),On(mn.magenta),On(mn.purple),On(mn.orange)))]}function rr(jn,Tr){return Tr||(Tr="thickness"),ni(sn.bn,"LineH",{width:16,height:16,strokeWidth:jn,margin:1,background:"transparent",mouseEnter:(so,_r)=>_r.background="dodgerblue",mouseLeave:(so,_r)=>_r.background="transparent",click:er(Tr,jn),contextClick:er(Tr,jn)})}function Kr(jn,Tr){return Tr||(Tr="dash"),ni(sn.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:jn,margin:1,background:"transparent",mouseEnter:(so,_r)=>_r.background="dodgerblue",mouseLeave:(so,_r)=>_r.background="transparent",click:er(Tr,jn),contextClick:er(Tr,jn)})}function sr(){return[ni("ContextMenuButton",ni(sn.s_,"Horizontal",rr(1),rr(2),rr(3),rr(4))),ni("ContextMenuButton",ni(sn.s_,"Horizontal",Kr(null),Kr([2,4]),Kr([4,4])))]}function Br(jn,Tr){return Tr||(Tr="figure"),ni(sn.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:jn,margin:1,background:"transparent",mouseEnter:(so,_r)=>_r.fill="dodgerblue",mouseLeave:(so,_r)=>_r.fill="lightgray",click:er(Tr,jn),contextClick:er(Tr,jn)})}kn.current.nodeTemplate.contextMenu=ni("ContextMenu",ni("ContextMenuButton",ni(sn.s_,"Horizontal",Br("Rectangle"),Br("RoundedRectangle"),Br("Ellipse"),Br("Diamond"))),ni("ContextMenuButton",ni(sn.s_,"Horizontal",Br("Parallelogram2"),Br("ManualOperation"),Br("Procedure"),Br("Cylinder1"))),ni("ContextMenuButton",ni(sn.s_,"Horizontal",Br("Terminator"),Br("CreateRequest"),Br("Document"),Br("TriangleDown"))),Si(),Pr(),sr()),kn.current.groupTemplate=ni(sn.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:sn.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(jn,Tr)=>{var so=Tr.addMembers(Tr.diagram.selection,!0);so||Tr.diagram.currentTool.doCancel()},avoidable:!1},new sn.KX("location","loc",sn.E9.parse).makeTwoWay(sn.E9.stringify),ni(sn.s_,"Auto",{name:"BODY"},ni(sn.bn,{parameter1:10,fill:mn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:sn.z6.AllSides,toSpot:sn.z6.AllSides},new sn.KX("fill"),new sn.KX("stroke","color"),new sn.KX("strokeWidth","thickness"),new sn.KX("strokeDashArray","dash")),ni(sn.Vm,{background:"transparent",margin:20})),ni(sn.al,{alignment:sn.z6.Top,alignmentFocus:sn.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new sn.KX("text"),new sn.KX("stroke","color"))),kn.current.groupTemplate.selectionAdornmentTemplate=ni(sn.uz,"Spot",ni(sn.s_,"Auto",ni(sn.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ni(sn.Vm,{margin:1.5})),Mi({alignment:sn.z6.TopRight,alignmentFocus:sn.z6.BottomRight})),kn.current.groupTemplate.contextMenu=ni("ContextMenu",Si(),Pr(),sr()),kn.current.linkTemplate=ni(sn.rU,{layerName:"Foreground",routing:sn.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new sn.KX("fromSpot","fromSpot",sn.z6.parse),new sn.KX("toSpot","toSpot",sn.z6.parse),new sn.KX("fromShortLength","dir",jn=>jn>=1?10:0),new sn.KX("toShortLength","dir",jn=>jn>=1?10:0),new sn.KX("points").makeTwoWay(),ni(sn.bn,{strokeWidth:2},new sn.KX("stroke","color"),new sn.KX("strokeWidth","thickness"),new sn.KX("strokeDashArray","dash")),ni(sn.bn,{segmentIndex:0,segmentOffset:new sn.E9(15,0),segmentOrientation:sn.rU.OrientAlong,alignmentFocus:sn.z6.Right,figure:"circle",width:10,strokeWidth:0},new sn.KX("fill","color"),new sn.KX("visible","dir",jn=>jn===1)),ni(sn.bn,{segmentIndex:-1,segmentOffset:new sn.E9(-10,6),segmentOrientation:sn.rU.OrientPlus90,alignmentFocus:sn.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new sn.KX("fill","color"),new sn.KX("visible","dir",jn=>jn>=1),new sn.KX("width","thickness",jn=>7+3*jn),new sn.KX("height","thickness",jn=>7+3*jn),new sn.KX("segmentOffset","thickness",jn=>new sn.E9(-15,4+1.5*jn))),ni(sn.bn,{segmentIndex:0,segmentOffset:new sn.E9(15,-6),segmentOrientation:sn.rU.OrientMinus90,alignmentFocus:sn.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new sn.KX("fill","color"),new sn.KX("visible","dir",jn=>jn===2),new sn.KX("width","thickness",jn=>7+3*jn),new sn.KX("height","thickness",jn=>7+3*jn),new sn.KX("segmentOffset","thickness",jn=>new sn.E9(-15,4+1.5*jn))),ni(sn.al,{alignmentFocus:new sn.z6(0,1,-4,0),editable:!0},new sn.KX("text").makeTwoWay(),new sn.KX("stroke","color"))),kn.current.linkTemplate.selectionAdornmentTemplate=ni(sn.uz,ni(sn.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:dr(2)},new sn.KX("pathPattern","thickness",dr)),Mi({alignmentFocus:new sn.z6(0,0,-6,-4)}));function dr(jn){return ni(sn.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(jn+4).toString()+" H3"})}function Er(jn){var Tr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return jn===0?Tr="M0 0 M16 16 M0 8 L16 8":jn===2&&(Tr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ni(sn.bn,{geometryString:Tr,margin:2,background:"transparent",mouseEnter:(so,_r)=>_r.background="dodgerblue",mouseLeave:(so,_r)=>_r.background="transparent",click:er("dir",jn),contextClick:er("dir",jn)})}function ao(jn){var Tr=(so,_r)=>{so.handled=!0,so.diagram.model.commit(ns=>{var Oo=_r.part.adornedPart;ns.set(Oo.data,jn?"toSpot":"fromSpot",sn.z6.stringify(sn.z6.AllSides)),(jn?Oo.toNode:Oo.fromNode).invalidateConnectedLinks()})};return ni(sn.bn,{width:12,height:12,fill:"transparent",mouseEnter:(so,_r)=>_r.background="dodgerblue",mouseLeave:(so,_r)=>_r.background="transparent",click:Tr,contextClick:Tr})}function Xi(jn,Tr){var so=0,_r=sn.z6.RightSide;jn.equals(sn.z6.Top)?(so=270,_r=sn.z6.TopSide):jn.equals(sn.z6.Left)?(so=180,_r=sn.z6.LeftSide):jn.equals(sn.z6.Bottom)&&(so=90,_r=sn.z6.BottomSide),Tr||(so-=180);var ns=(Oo,yi)=>{Oo.handled=!0,Oo.diagram.model.commit(Bo=>{var Hr=yi.part.adornedPart;Bo.set(Hr.data,Tr?"toSpot":"fromSpot",sn.z6.stringify(_r)),(Tr?Hr.toNode:Hr.fromNode).invalidateConnectedLinks()})};return ni(sn.bn,{alignment:jn,alignmentFocus:jn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:so,background:"transparent",mouseEnter:(Oo,yi)=>yi.background="dodgerblue",mouseLeave:(Oo,yi)=>yi.background="transparent",click:ns,contextClick:ns})}kn.current.linkTemplate.contextMenu=ni("ContextMenu",Pr(),sr(),ni("ContextMenuButton",ni(sn.s_,"Horizontal",Er(0),Er(1),Er(2))),ni("ContextMenuButton",ni(sn.s_,"Horizontal",ni(sn.s_,"Spot",ao(!1),Xi(sn.z6.Top,!1),Xi(sn.z6.Left,!1),Xi(sn.z6.Right,!1),Xi(sn.z6.Bottom,!1)),ni(sn.s_,"Spot",{margin:new sn.Zt(0,0,0,2)},ao(!0),Xi(sn.z6.Top,!0),Xi(sn.z6.Left,!0),Xi(sn.z6.Right,!0),Xi(sn.z6.Bottom,!0)))));const yr=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var Lo=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function xs(jn){return console.log("shapeName:",jn),Lo.indexOf(jn)>=0}var Uo=new sn.YI(hi.current,{maxSelectionCount:1,linkTemplate:ni(sn.rU,{locationSpot:sn.z6.Center,selectionAdornmentTemplate:ni(sn.uz,"Link",{locationSpot:sn.z6.Center},ni(sn.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ni(sn.bn,{toArrow:"Standard",stroke:null}))},{routing:sn.rU.AvoidsNodes,curve:sn.rU.JumpOver,corner:5,toShortLength:4},new sn.KX("points"),ni(sn.bn,{isPanelMain:!0,strokeWidth:2}),ni(sn.bn,{toArrow:"Standard",stroke:null})),model:new sn.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...sn.bn.getFigureGenerators().toArray().map(jn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:jn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return kn.current.addDiagramListener("TextEdited",function(jn){var Tr;const so=jn.subject.part;var _r=(Tr=document.activeElement)==null?void 0:Tr.value;typeof _r=="string"&&_r.trim()===""&&kn.current.model.commit(function(ns){ns.set(so.data,"text","\u672A\u547D\u540D"),kn.current.commandHandler.stopCommand()},"increment")}),Uo.nodeTemplate=ni(sn.NB,"Auto",{locationSpot:sn.z6.Center},new sn.KX("location","location",sn.E9.parse).makeTwoWay(sn.E9.stringify),ni(sn.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new sn.KX("stroke").makeTwoWay(),new sn.KX("fill").makeTwoWay(),new sn.KX("figure")),ni(sn.al,{margin:new sn.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new sn.$u(16,16),maxSize:new sn.$u(10,NaN),textAlign:"center",editable:!0},new sn.KX("key").makeTwoWay())),setTimeout(()=>{kn.current.grid=ni(sn.s_,"Grid",ni(sn.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ni(sn.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),kn.current.grid.visible=!0,kn.current.grid.gridCellStroke="darkgray",kn.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=kn.current,kn.current}const Ii=()=>Kt(this,null,function*(){var ni=kn.current.makeImage();const mn=yield(0,Ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ni.src}});Qn({src:mn.url})});return(0,Lt.useEffect)(()=>(setTimeout(()=>{_n()},500),Bn(Ne+1),()=>{kn.current=null}),[]),Ft.createElement("div",{ref:bn,className:Ci.current?`${Ot.maxH60} body-overflow-initial`:"body-overflow-initial"},Ft.createElement(In.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ne,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ft.createElement(Xn.Z,null,Ft.createElement(hn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ft.createElement(hn.Z,{onClick:()=>{var ni,mn,Ai=kn.current.selection.first();if(Ci.current=!Ci.current,document.activeElement&&Ai){let Mi=(mn=(ni=document.activeElement)==null?void 0:ni.value)==null?void 0:mn.trim();typeof Mi=="string"&&kn.current.model.commit(function(er){er.set(Ai.data,"text",Mi||"\u672A\u547D\u540D"),kn.current.commandHandler.stopCommand()},"increment")}Bn(Ne+1)}},Ft.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Vn},Ft.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ot.flowChartWrp},Ft.createElement("div",{style:{display:"flex",height:"100%"}},Ft.createElement("div",{style:{width:"300px",height:"100%"}},Ft.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ft.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ot.myPaletteDiv,ref:hi})),Ft.createElement("div",{style:{flex:1,position:"relative"}},Ft.createElement("div",{ref:rn,style:{height:"80vh"}}))),Ft.createElement("div",{className:"tr"},Ft.createElement(ne.ZP,{size:"large",onClick:Ii,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var je=Ee,ce=bt(5112),Be=bt(88897);const $t=ce.ZP.Group,Pt={margin:"0 8px"};var mt=({callback:Vn,onCancel:Qn})=>{function kn(rn){Vn(rn)}return Lt.createElement(pe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:kn},Lt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Lt.createElement("span",{style:Pt},"\u5355\u5143\u683C\u6570\uFF1A"),Lt.createElement("span",{style:Pt},"\u884C\u6570"),Lt.createElement(pe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Lt.createElement(Be.Z,null)),Lt.createElement("span",{style:Pt},"\u5217\u6570"),Lt.createElement(pe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Lt.createElement(Be.Z,null))),Lt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Lt.createElement("span",{style:Pt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Lt.createElement(pe.default.Item,{name:"align"},Lt.createElement($t,null,Lt.createElement(ce.ZP,{value:"default"},Lt.createElement("i",{className:"fa fa-align-justify"})),Lt.createElement(ce.ZP,{value:"left"},Lt.createElement("i",{className:"fa fa-align-left"})),Lt.createElement(ce.ZP,{value:"center"},Lt.createElement("i",{className:"fa fa-align-center"})),Lt.createElement(ce.ZP,{value:"right"},Lt.createElement("i",{className:"fa fa-align-right"}))))),Lt.createElement("div",{className:"flex-container flex-end"},Lt.createElement(ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Lt.createElement(ne.ZP,{type:"ghost",onClick:Qn},"\u53D6\u6D88")))},Zt=bt(78673),Se=bt(98598),Dt=bt.n(Se),nn=(0,Lt.forwardRef)(({use3d:Vn,width:Qn,height:kn,callback:rn,showSaveButton:hi},Ci)=>{const bn=(0,Lt.useRef)(),Ne=(0,Lt.useRef)(),[Bn,_n]=(0,Lt.useState)(!1),Ii=(0,Lt.useRef)({id:bn,appName:"graphing",width:Qn||1e3,height:kn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Lt.useEffect)(()=>{Ne.current=new(Dt())(Ii.current,!0),window.onload=function(){Ne.current.inject("applet_container")}},[]);const ni=()=>{var mn=window.ggbApplet.getPNGBase64(1,!0,72);return rn&&rn(mn),mn};return(0,Lt.useEffect)(()=>{Ii.current.appName=Bn?"3D":"graphing",Ne.current.inject("applet_container")},[Bn]),(0,Lt.useEffect)(()=>{_n(Vn)},[Vn]),(0,Lt.useImperativeHandle)(Ci,()=>({getImgData:ni})),Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:bn}),Lt.createElement(Xn.Z,{align:"middle"},Lt.createElement(hn.Z,{flex:1},Lt.createElement(Zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bn,onChange:mn=>_n(mn)})),Lt.createElement(hn.Z,null,Lt.createElement(ne.ZP,{size:"large",onClick:ni,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),zn=bt(75890),xn=bt(8591);const li="link",Qi="upload-image",Wi="add-flowchart",pr="draw-image",xr="add-flowchart",qr="code-block",Vr="add-table",Jr="------------",Ir={default:Jr,left:`:${Jr}`,center:`:${Jr}:`,right:`${Jr}:`};var Xr=bt(91300);function to(){}let ho=0;const cs=1e4,no="\u2581",Is="@\u2581\u2581@",So="@\u2581@",Yt=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,ai=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Jo(Vn){return/^\d+$/.test(Vn)?`${Vn}px`:Vn}const xa=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",va={[xa+"-B"]:"bold",[xa+"-I"]:"italic"},Zs={[li]:"\u6DFB\u52A0\u94FE\u63A5",[qr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Qi]:"\u6DFB\u52A0\u56FE\u7247",[pr]:"\u6DFB\u52A0\u753B\u56FE",[Wi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Vr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qr=({defaultValue:Vn="",onChange:Qn,width:kn="100%",height:rn=400,miniToolbar:hi=!1,isFocus:Ci=!1,watch:bn,insertTemp:Ne,mode:Bn="markdown",id:_n="markdown-editor-id",showResizeBar:Ii=!1,noStorage:ni=!1,showNullButton:mn=!1,showNullProgramButton:Ai=!1,hidetoolBar:Mi=!1,fullScreen:er=!1,onBlur:On,onCMBeforeChange:Si,onFullScreen:Pr,className:rr="",disablePaste:Kr=!1,disabled:sr=!1,disabledFill:Br=!1,placeholder:dr="",values:Er="",extraUse:ao})=>{const[Xi,yr]=(0,Lt.useState)(null),[Lo,xs]=(0,Lt.useState)(Vn),[Uo,jn]=(0,Lt.useState)(bn),[Tr,so]=(0,Lt.useState)(er),[_r,ns]=(0,Lt.useState)(""),[Oo,yi]=(0,Lt.useState)(0),[Bo,Hr]=(0,Lt.useState)(rn),[kr,Bi]=(0,Lt.useState)(!1),[Po,Pi]=(0,Lt.useState)(0),[Xo,ha]=(0,Lt.useState)(0),fs=(0,Lt.useRef)(),ba=(0,Lt.useRef)(),Xs=(0,Lt.useRef)(),bo=(0,Lt.useRef)();(0,Lt.useEffect)(()=>{const Mo=window.scrollY||window.pageYOffset;xs(Er),Xi==null||Xi.setValue(Er),window.scrollTo(0,Mo)},[Er]),(0,Lt.useEffect)(()=>{Pr==null||Pr(Tr)},[Tr]),(0,Lt.useEffect)(()=>{if(fs.current){let Mo=function(Ko,Gi){var Ms;if(Kr){Gi.preventDefault();return}const Gs=Gi.clipboardData;if(Gs){const Fa=Gs.types.toString(),Js=Gs.items;if(Fa==="Files"||Gs.types.indexOf("Files")>-1){if(Gi.preventDefault(),Bn=="stex")return;try{let Ho=Js[1];((Ms=Js[0])==null?void 0:Ms.kind)==="file"&&(Ho=Js[0]);const Ks=Ho.getAsFile(),yl=Ks.name.split(".").pop();(0,Xe.I)(Ks,wl=>{var Dl,Bs,ui;wl.id?((Dl=Ks==null?void 0:Ks.type)==null?void 0:Dl.indexOf("image"))>-1?io.replaceSelection(`![,](/api/attachments/${wl.id}?type=${wl.content_type})`):((Bs=Ks==null?void 0:Ks.type)==null?void 0:Bs.indexOf("video"))>-1?io.replaceSelection(`<video width="100%" controls src="/api/attachments/${wl.id}"></video>`):((ui=Ks==null?void 0:Ks.type)==null?void 0:ui.indexOf("pdf"))>-1?io.replaceSelection(`<a href="/api/attachments/${wl.id}?type=${Ks.type}&disposition=inline" target="_blank">${Ks.name}</a>`):ai.includes(yl)?io.replaceSelection(`<a href="/api/attachments/${wl.id}?type=office&disposition=inline" target="_blank">${Ks.name}</a>`):io.replaceSelection(`[${Ks.name}](/api/attachments/${wl.id}?type=${wl.content_type})`):(wl==null?void 0:wl.status)===401&&(document.location.href="/user/login")})}catch(Ho){xn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const io=se().fromTextArea(fs.current,{mode:Bn,lineNumbers:!hi,lineWrapping:!0,value:Vn,autoCloseTags:!0,autoCloseBrackets:!0});return io.on("keyup",function(Ko,Gi){Gi.keyCode===8&&(Ko.getValue()==""?io.setOption("placeholder",dr):io.setOption("placeholder",null))}),io.on("keydown",function(Ko,Gi){if(Gi.keyCode===8){var Ms=ps(Ko);Ms&&Gi.preventDefault()}}),Ci&&io.focus(),io.on("paste",Mo),sr&&io.on("beforeChange",function(Ko,Gi){(Gi.origin==="paste"||Gi.origin==="+input")&&Gi.cancel()}),yr(io),()=>{io.off("paste",Mo)}}},[]);const jo=(0,Lt.useCallback)(()=>{if(ba.current)try{}catch(Mo){console.log(Mo,"---- to set md editor body height")}},[Bo,ba,Tr]);(0,Lt.useEffect)(()=>{function Mo(){let io=new De.Z(Ko=>{for(let Gi of Ko)(Gi.target.offsetHeight>0||Gi.target.offsetWidth>0)&&(jo(),Xi.setSize("100%","100%"),Xi.refresh())});return io.observe(fs.current.parentElement),io}if(Xi){const io=Mo();return()=>{var Ko,Gi;(Ko=fs.current)!=null&&Ko.parentElement&&io.unobserve((Gi=fs.current)==null?void 0:Gi.parentElement)}}},[Xi,jo]),(0,Lt.useEffect)(()=>{if(Xi){let Mo=[];for(const[io,Ko]of Object.entries(va)){let Gi={[io]:()=>{us(Ko)}};Mo.push(Gi),Xi.addKeyMap(Gi)}return()=>{for(let io of Mo)Xi.removeKeyMap(io)}}},[Xi]),(0,Lt.useEffect)(()=>{er!==Tr&&so(er)},[er]),(0,Xr.Z)(()=>{if(!ni&&Oo>0){let Mo=new Date().getTime(),io=window.sessionStorage.getItem(_n);Mo>=Oo+cs&&(!io||io!==Lo)&&(window.sessionStorage.setItem(_n,Lo),Bi(!0))}},cs),(0,Lt.useEffect)(()=>{jn(bn)},[Xi,bn]),(0,Lt.useEffect)(()=>{Xi&&Ci&&Xi.focus()},[Xi,Ci]),(0,Lt.useEffect)(()=>{if(Uo&&Xi){let Mo=function(Ko){let Gi=Ko.target;if(bo.current){let Ms=Gi.scrollTop/Gi.scrollHeight;bo.current.scrollTop=bo.current.scrollHeight*Ms}};const io=Xi.getScrollerElement();return io.addEventListener("scroll",Mo),()=>{io.removeEventListener("scroll",Mo)}}},[Xi,Uo]),(0,Lt.useEffect)(()=>{if(Xi&&Si){let Mo=function(io,Ko){Si(io,Ko)};return Xi.on("beforeChange",Mo),()=>{Xi.off("beforeChange",Mo)}}},[Xi,Si]),(0,Lt.useEffect)(()=>{if(Xi&&On){let Mo=function(){On(Xi.getValue())};return Xi.on("blur",Mo),()=>{Xi.off("blur",Mo)}}},[Xi,On]);function ps(Mo,io){var Ko=Mo.getDoc(),Gi=Ko.getCursor(),Ms=Ko.getLine(Gi.line),Gs=Ms.charAt(Gi.ch-1),Fa=Ms.lastIndexOf("@\u2581@",Gi.ch),Js=Ms.lastIndexOf("@\u2581\u2581@",Gi.ch),Ho=Fa>Js?Fa:Js,Ks=Fa>Js?3:4;if(Is.indexOf(Gs)===-1)return null;if(console.log("change1:",io,Mo,Ms,Gi,Ho,Fa,Js,Gs),Ho>=0&&Gi.ch-Ho<5){var yl=Ho+Ks;return Ko.replaceRange("",{line:Gi.line,ch:Ho},{line:Gi.line,ch:yl}),{line:Gi.line,ch:yl}}return null}(0,Lt.useEffect)(()=>{if(Xi){let Mo=function(io,Ko){const Gi=io.getValue();xs(Gi),yi(new Date().getTime()),io.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Qn&&(Ai?Qn(Gi,Vo(Gi)):Qn(Gi))};return Xi.on("change",Mo),()=>{Xi.off("change",Mo)}}},[Xi,Qn]),(0,Lt.useEffect)(()=>{if(Xi)if(Vn==null)Xi.setValue(""),xs("");else{const Mo=window.scrollY||window.pageYOffset;Vn!==Xi.getValue()&&(Xi.setValue(Vn),xs(Vn),Xi.setCursor(sr?1:Xi.lineCount(),0),window.scrollTo(0,Mo))}},[Xi,Vn]);const us=(0,Lt.useCallback)(Mo=>{const io=Xi.getCursor(),Ko=Xi.getSelection();let Gi=Ko.split(`
`);switch(Mo){case"bold":return Xi.replaceSelection("**"+Ko+"**"),Ko===""&&Xi.setCursor(io.line,io.ch+2),Xi.focus();case"italic":return Xi.replaceSelection("*"+Ko+"*"),Ko===""&&Xi.setCursor(io.line,io.ch+1),Xi.focus();case"code":return Xi.replaceSelection("`"+Ko+"`"),Ko===""&&Xi.setCursor(io.line,io.ch+1),Xi.focus();case"inline-latex":return ns("inline-latex"),Xi.focus();case"latex":return Xi.replaceSelection("```latex\n"+Ko+"\n```"),Xi.setCursor(io.line+1,Ko.length+1),Xi.focus();case"line-break":return Xi.replaceSelection(`<br/>
`),Xi.focus();case"list-ul":return Ko===""?Xi.replaceSelection("- "+Ko):Xi.replaceSelection(Gi.map(Ms=>Ms===""?"":`- ${Ms}`).join(`
`)),Xi.focus();case"list-ol":return Ko===""?Xi.replaceSelection("1. "+Ko):Xi.replaceSelection(Gi.map((Ms,Gs)=>Ms===""?"":`${Gs+1}. ${Ms}`).join(`
`)),Xi.focus();case"add-null-ch":return Ko===""&&Xi.setCursor(io.line,io.ch),Xi.replaceSelection(no),Xi.focus();case"add-signal":return Ko===""&&Xi.setCursor(io.line,io.ch),Xi.replaceSelection(So),Xi.focus();case"add-multiple":return Ko===""&&Xi.setCursor(io.line,io.ch),Xi.replaceSelection(Is),Xi.focus();case"inster-template-1":return Ko===""&&Xi.setCursor(io.line,io.ch),Xi.replaceSelection(Yt),Xi.focus();case"eraser":return Xi.setValue(""),Xi.focus();case"trigger-watch":return jn(!Uo),Xi.focus();case"trigger-full-screen":return so(!Tr),Xi.focus();case li:ns(li);return;case qr:ns(qr);return;case Qi:ns(Qi);return;case pr:ns(pr);return;case"maths-latex":ns("maths-latex");return;case Wi:ns(Wi);return;case Vr:ns(Vr);return;default:throw new Error}},[Xi,Uo,Tr]),gr=(0,Lt.useCallback)((Mo,io)=>{var Ko,Gi,Ms,Gs,Fa,Js;switch(ns(""),_r){case li:const{title:Dl,link:Bs}=Mo;return Xi.replaceSelection(`[${Dl}](${Bs})`),Xi.focus();case qr:const{language:ui,content:Za}=Mo;return Xi.replaceSelection(["```"+ui,Za,"```"].join(`
`)),Xi.focus();case"maths-latex":for(var Ho=atob(Mo),Ks=new Uint8Array(Ho.length),yl=0;yl<Ho.length;yl++)Ks[yl]=Ho.charCodeAt(yl);var wl=new Blob([Ks],{type:"image/png"});(0,Xe.I)(wl,Nl=>{Nl.id?Xi.replaceSelection(`![,](/api/attachments/${Nl.id}?type=${Nl.content_type})`):(Nl==null?void 0:Nl.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Xi.replaceSelection("`$$"+Mo+"$$`");break;case Qi:case pr:case xr:const{src:mh,alt:ju}=Mo,su=io,Ao=(Ms=(Gi=(Ko=su==null?void 0:su.name)==null?void 0:Ko.split("."))==null?void 0:Gi.pop)==null?void 0:Ms.call(Gi);return((Gs=su==null?void 0:su.type)==null?void 0:Gs.indexOf("image"))>-1||!(su!=null&&su.type)?ju?Xi.replaceSelection(`![ ${ju} ]( ${mh} "${ju}" )`):Xi.replaceSelection(`![,](${mh})`):((Fa=su==null?void 0:su.type)==null?void 0:Fa.indexOf("video"))>-1?Xi.replaceSelection(`<video width="100%" controls src="${mh}"></video>`):((Js=su==null?void 0:su.type)==null?void 0:Js.indexOf("pdf"))>-1?Xi.replaceSelection(`<a href="${mh}?type=${su.type}&disposition=inline" target="_blank">${su.name}</a>`):ai.includes(Ao)?Xi.replaceSelection(`<a href="${mh}?type=office&disposition=inline" target="_blank">${su.name}</a>`):Xi.replaceSelection(`[${su.name}](${mh})`),Xi.focus();case Vr:const{row:zs,col:Ns,align:Es}=Mo;let _s=`
`;for(let Nl=0;Nl<zs;Nl++){let As=[],Qs=[];for(let Ss=0;Ss<Ns;Ss++)Nl===1&&Qs.push(Ir[Es]),As.push(" ");Nl===1&&(_s+=`| ${Qs.join(" | ")} |
`),_s+=`| ${As.join(Ns===1?"":" | ")} |
`}return Xi.replaceSelection(_s+`
`),Xi.focus();default:throw new Error}},[Xi,_r]),Ue=(0,Lt.useMemo)(()=>{switch(_r){case li:return Lt.createElement(Fn,{callback:gr,onCancel:qo});case qr:return Lt.createElement(Mn.Z,{callback:gr,onCancel:qo});case Qi:return Lt.createElement(Xe.Z,{callback:gr,onCancel:qo});case Wi:return Lt.createElement(je,{callback:gr,onCancel:qo});case Vr:return Lt.createElement(mt,{callback:gr,onCancel:qo});case"maths-latex":return Lt.createElement(nn,{showSaveButton:!0,callback:gr});case"inline-latex":return Lt.createElement(zn.Z,{showSaveButton:!0,callback:gr});default:return null}},[_r]);function qo(){ns("")}(0,Lt.useEffect)(()=>{if(Xs.current){let Mo=function(Fa){Ms=!0,Gs=Fa.pageY},io=function(){Ms=!1},Ko=function(Fa){if(Ms){let Js=Fa.pageY-Gs;Js<0&&(Js=0),Js>300&&(Js=300);let Ho=rn+Js+"px";Hr(Ho)}},Gi=Xs.current,Ms=!1,Gs=0;return Gi.addEventListener("mousedown",Mo),document.addEventListener("mousemove",Ko),document.addEventListener("mouseup",io),()=>{Gi.removeEventListener("mousedown",Mo),document.removeEventListener("mousemove",Ko),document.removeEventListener("mouseup",io)}}},[Xi,Xs]),(0,Lt.useEffect)(()=>{Hr(rn)},[rn]);const Sa=Jo(kn),za=Jo(Bo),El={width:Sa,height:za},ss=(0,Lt.useMemo)(()=>{if(Oo){let Mo=new Date(Oo),io=Mo.getHours(),Ko=Mo.getMinutes(),Gi=Mo.getSeconds();return io=io<10?"0"+io:io,Ko=Ko<10?"0"+Ko:Ko,Gi=Gi<10?"0"+Gi:Gi,`${io}:${Ko}:${Gi}`}return 0},[Oo]),Vo=Mo=>{const io=[];if(Ai){let Ko=-1;Mo=Mo.replace(/(@▁▁@|@▁@)/g,function(Gi,Ms,Gs){io.push({multiLine:Gi!==So})})}return io};function bs(){window.sessionStorage.removeItem(_n),Bi(!1),yi(0)}function ia(){Bi(!1),yi(0),Xi.setValue(window.sessionStorage.getItem(_n))}(0,Lt.useEffect)(()=>{Zs[_r]&&_r!==pr&&_r!==Wi&&setTimeout(()=>{const Mo=document.getElementsByClassName("markdown-popup-form")[0],io=window.innerWidth/2-Mo.offsetWidth/2,Ko=window.innerHeight/2-Mo.offsetHeight/2;Pi(io),ha(Ko)},0)},[_r]);const ts=Mo=>{Mo.preventDefault();const io=Mo.clientX-Po,Ko=Mo.clientY-Xo;document.body.onmousemove=Gi=>{let Ms=Gi.clientX-io,Gs=Gi.clientY-Ko;const Fa=document.getElementsByClassName("markdown-popup-form")[0],Js=window.innerWidth-Fa.offsetWidth,Ho=window.innerHeight-Fa.offsetHeight;Ms=Math.max(0,Math.min(Ms,Js)),Gs=Math.max(0,Math.min(Gs,Ho)),Ea(Gi.clientX,Gi.clientY,io,Ko)&&(Pi(Ms),ha(Gs))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ea=(Mo,io,Ko,Gi)=>{const Ms=document.body.clientHeight,Gs=document.body.clientWidth;return Mo<20&&Ko>Mo||Mo>Gs-20&&Ko<Mo||io<20&&Gi>io||io>Ms-20&&Gi<io?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:"markdown-editor-wrapper",ref:ba},Lt.createElement("div",{className:`markdown-editor-container ${rr} ${Uo?"on-preview":""} ${hi?"mini":""} ${Tr?"full-screen":""}`,style:El},Lt.createElement(ae,{insertTemp:Ne,watch:Uo,fullScreen:Tr,showNullButton:mn,showNullProgramButton:Ai,onActionCallback:us,hidetoolBar:Mi,extraUse:ao}),Lt.createElement("div",{className:"markdown-editor-body"},Lt.createElement("div",{className:"codemirror-container"},Lt.createElement("textarea",{ref:fs,placeholder:dr})),Uo?Lt.createElement("div",{ref:bo,className:"preview-container"},Bn==="stex"&&Lt.createElement(Gt,{value:Lo}),Bn!=="stex"&&Lt.createElement(Wt.Z,{disabledFill:Br,showProgramFill:Ai,value:Lo})):null))),Ii?Lt.createElement("a",{ref:Xs,className:"editor-resize"}):null,_r===pr&&Lt.createElement(bi,{callback:gr,onCancel:qo}),_r===Wi&&Lt.createElement(je,{callback:gr,onCancel:qo}),Lt.createElement(he.Z,null,Zs[_r]&&_r!==pr&&_r!==Wi?Lt.createElement(In.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Po,top:Xo},title:Lt.createElement("div",{style:{cursor:"move"},onMouseDown:ts},Zs[_r]),open:!0,onCancel:qo,footer:null,destroyOnClose:!0,width:_r===Wi?"1200px":null,height:_r===Wi?"80vh":null,className:"markdown-popup-form"},Ue):null))}},56701:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return dt},I:function(){return Mt}});var Lt=bt(78241),ge=bt(8591),se=bt(92832),De=bt(3113),re=bt(58788),le=bt(59301),Et=bt(59301),Tt=Object.defineProperty,ee=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,wt=(jt,Rt,ae)=>Rt in jt?Tt(jt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:ae}):jt[Rt]=ae,et=(jt,Rt)=>{for(var ae in Rt||(Rt={}))Gt.call(Rt,ae)&&wt(jt,ae,Rt[ae]);if(Wt)for(var ae of Wt(Rt))Jt.call(Rt,ae)&&wt(jt,ae,Rt[ae]);return jt},tt=(jt,Rt)=>ee(jt,Ct(Rt));const{useForm:lt}=Lt.default,rt={width:280,marginRight:10},ht={labelCol:{span:5},wrapperCol:{span:19}};var dt=({callback:jt,onCancel:Rt})=>{const[ae]=lt();let he=(0,le.useRef)();function pe(Ke){jt(Ke,he.current)}function Te(Ke,Vt){if(Ke.status===-1){ge.ZP.error(Ke.message);return}ae.setFieldsValue({src:`/api/attachments/${Ke.id}`,type:Vt.type})}function ne(Ke){let Vt=Ke.target.files[0];he.current=Vt,Mt(Vt,Te)}return Et.createElement(Lt.default,tt(et({form:ae},ht),{className:"upload-image-panel",onFinish:pe,style:{width:470,overflow:"hidden"}}),Et.createElement(Lt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Et.createElement("div",{className:"flex-container"},Et.createElement(Lt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Et.createElement(se.default,{style:rt})),Et.createElement(yt,{onFileChange:ne}))),Et.createElement(Lt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Et.createElement(se.default,{style:{width:264}})),Et.createElement(Lt.default.Item,{style:{textAlign:"right"}},Et.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Et.createElement(De.ZP,{type:"default",onClick:Rt},"\u53D6\u6D88")))};function yt({onFileChange:jt}){return Et.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Et.createElement("input",{type:"file",onChange:jt}))}function Mt(jt,Rt){if(!jt)throw new String("\u6CA1\u6709\u6587\u4EF6");let ae=new FormData;ae.append("editormd-image-file",jt),ae.append("file_param_name","editormd-image-file"),ae.append("byxhr","true");var he=new window.XMLHttpRequest;he.withCredentials=!0,he.addEventListener("load",function(pe){Rt(JSON.parse(pe.target.responseText),jt)},!1),he.addEventListener("error",function(pe){console.error(pe)},!1),he.open("POST",`${re.KI}/api/attachments.json`),he.send(ae)}},50474:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return se}});var Lt=bt(59301),ge=bt(4676);class se extends Lt.Component{constructor(re){super(re);const le=window.document;this.node=le.createElement("div"),le.body.appendChild(this.node)}render(){const{children:re}=this.props;return(0,ge.createPortal)(re,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(di,Pn,bt){"use strict";bt.d(Pn,{SV:function(){return Ee},ZP:function(){return Kt}});var Lt=bt(59301),ge=bt(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"]},De={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"]},re={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},le={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},Et={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 Tt=bt(86061),ee=bt.n(Tt),Ct=Object.defineProperty,Wt=Object.defineProperties,Gt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(je,ce,Be)=>ce in je?Ct(je,ce,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[ce]=Be,lt=(je,ce)=>{for(var Be in ce||(ce={}))wt.call(ce,Be)&&tt(je,Be,ce[Be]);if(Jt)for(var Be of Jt(ce))et.call(ce,Be)&&tt(je,Be,ce[Be]);return je},rt=(je,ce)=>Wt(je,Gt(ce)),ht=(je,ce,Be)=>new Promise(($t,Pt)=>{var mt=Dt=>{try{Se(Be.next(Dt))}catch(Ie){Pt(Ie)}},Zt=Dt=>{try{Se(Be.throw(Dt))}catch(Ie){Pt(Ie)}},Se=Dt=>Dt.done?$t(Dt.value):Promise.resolve(Dt.value).then(mt,Zt);Se((Be=Be.apply(je,ce)).next())});const dt={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"]}},yt=(je,ce)=>ce.map(Be=>({label:Be,kind:je.languages.CompletionItemKind.Keyword,insertText:Be})),Mt=je=>Object.keys(dt.tables).map(ce=>({label:ce,kind:je.languages.CompletionItemKind.Variable,insertText:ce})),jt=(je,ce)=>{const Be=dt.tables[je];return Be?Be.map($t=>({label:$t,kind:ce.languages.CompletionItemKind.Field,insertText:$t})):[]};function Rt(je,ce,Be,$t,Pt){let mt=ce.getWordUntilPosition(Be),Zt={startLineNumber:Be.lineNumber,endLineNumber:Be.lineNumber,startColumn:mt.startColumn,endColumn:mt.endColumn},Se=$t.map(Dt=>({label:Dt,kind:je.languages.CompletionItemKind.Keyword,insertText:Dt,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Zt}));return Pt.map(Dt=>{Se.push(rt(lt({},Dt),{range:Zt}))}),Se}var ae=je=>{dt.languages.map(Pt=>(je.languages.registerDocumentFormattingEditProvider(Pt,{provideDocumentFormattingEdits(mt,Zt,Se){return ht(this,null,function*(){const Dt=ee()(mt.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:mt.getFullModelRange(),text:Dt}]})}}),Pt));const ce=re.quickKey.map(Pt=>({label:Pt.label,kind:je.languages.CompletionItemKind.Method,insertText:Pt.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Be=le.quickKey.map(Pt=>({label:Pt.label,kind:je.languages.CompletionItemKind.Method,insertText:Pt.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet})),$t=De.quickKey.map(Pt=>({label:Pt.label,kind:je.languages.CompletionItemKind.Method,insertText:Pt.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet}));je.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Pt,mt){var Zt=Pt.getWordUntilPosition(mt),Se={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Zt.startColumn,endColumn:Zt.endColumn},Dt=Pt.getLineContent(mt.lineNumber).substring(Zt.startColumn-2,Zt.endColumn);return{suggestions:[...re.keywords.map(Ie=>({label:Ie,kind:je.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se})),...re.quickKey.map(Ie=>({label:Ie.label,kind:je.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Dt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}))]}}}),je.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Pt,mt){var Zt=Pt.getWordUntilPosition(mt),Se={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Zt.startColumn,endColumn:Zt.endColumn};return{suggestions:[...se.keywords.map(Dt=>({label:Dt,kind:je.languages.CompletionItemKind.Function,documentation:Dt,insertText:Dt,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}))]}}}),je.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Pt,mt){var Zt=Pt.getWordUntilPosition(mt),Se={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Zt.startColumn,endColumn:Zt.endColumn},Dt=Pt.getLineContent(mt.lineNumber).substring(Zt.startColumn-2,Zt.endColumn);return{suggestions:[...De.keywords.map(Ie=>({label:Ie,kind:je.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se})),...De.quickKey.map(Ie=>({label:Ie.label,kind:je.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Dt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}))]}}}),je.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Pt,mt){var Zt=Pt.getWordUntilPosition(mt),Se={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Zt.startColumn,endColumn:Zt.endColumn},Dt=Pt.getLineContent(mt.lineNumber).substring(Zt.startColumn-2,Zt.endColumn);return{suggestions:[...Et.keywords.map(Ie=>({label:Ie,kind:je.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se})),...Et.quickKey.map(Ie=>({label:Ie.label,kind:je.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Dt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}))]}}}),je.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Pt,mt){var Zt=Pt.getWordUntilPosition(mt),Se={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Zt.startColumn,endColumn:Zt.endColumn},Dt=Pt.getLineContent(mt.lineNumber).substring(Zt.startColumn-2,Zt.endColumn);return{suggestions:[...le.keywords.map(Ie=>({label:Ie,kind:je.languages.CompletionItemKind.Function,documentation:Ie,insertText:Ie,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se})),...le.quickKey.map(Ie=>({label:Ie.label,kind:je.languages.CompletionItemKind.Function,documentation:Ie.content,insertText:Dt.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Se}))]}}})};const he="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var pe=Object.defineProperty,Te=(je,ce,Be)=>ce in je?pe(je,ce,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[ce]=Be,ne=(je,ce,Be)=>Te(je,typeof ce!="symbol"?ce+"":ce,Be);const Ke=class bw{constructor(ce,Be,$t){this.placeholder=ce,this.editor=Be,this.monaco=$t,Be.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return bw.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)}};ne(Ke,"ID","editor.widget.placeholderHint");var $e=Ke,Ge=bt(96236),Oe=bt(8591),Ve=bt(6848),_e=bt(89392),xe=bt(86766),ie=bt(56102),be=Object.defineProperty,Fn=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,pi=(je,ce,Be)=>ce in je?be(je,ce,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[ce]=Be,$n=(je,ce)=>{for(var Be in ce||(ce={}))In.call(ce,Be)&&pi(je,Be,ce[Be]);if(Xe)for(var Be of Xe(ce))Xn.call(ce,Be)&&pi(je,Be,ce[Be]);return je},bi=(je,ce)=>Fn(je,Mn(ce)),sn=(je,ce)=>{var Be={};for(var $t in je)In.call(je,$t)&&ce.indexOf($t)<0&&(Be[$t]=je[$t]);if(je!=null&&Xe)for(var $t of Xe(je))ce.indexOf($t)<0&&Xn.call(je,$t)&&(Be[$t]=je[$t]);return Be},Li=(je,ce,Be)=>new Promise(($t,Pt)=>{var mt=Dt=>{try{Se(Be.next(Dt))}catch(Ie){Pt(Ie)}},Zt=Dt=>{try{Se(Be.throw(Dt))}catch(Ie){Pt(Ie)}},Se=Dt=>Dt.done?$t(Dt.value):Promise.resolve(Dt.value).then(mt,Zt);Se((Be=Be.apply(je,ce)).next())});function ji(je){return/^\d+$/.test(je)?`${je}px`:je}function ve(){}let hn=!1;const Ae={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ot(je=[]){let ce=je;if(Array.isArray(je)){for(let Be=0;Be<je.length;Be++){let $t=Ae[je[Be]];if($t)return $t}return ce[0]}return Ae[ce]||ce}let Ft=null;var Kt=je=>{var ce=je,{width:Be="100%",height:$t="100%",value:Pt,language:mt="javascript",style:Zt={},options:Se={},overrideServices:Dt={},theme:Ie="vs-dark",onEditBlur:nn,isCopy:zn=!1,onSave:xn,autoHeight:li=!1,forbidCopy:Qi=!1,onChange:Wi=ve,editorDidMount:pr=ve,onFocus:xr=ve,onBreakPoint:qr=ve,breakPointValue:Vr=[],filename:Jr="educoder.txt",errorLine:Ir,errorContent:Xr="",highlightLine:to,openBreakPoint:ho=!1,placeholder:cs=""}=ce,no=sn(ce,["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 Is=(0,Lt.useRef)(),So=(0,Lt.useRef)({}),Yt=(0,Lt.useRef)(),ai=(0,Lt.useRef)(),Jo=(0,Lt.useRef)([]),sa=(0,Lt.useRef)(!1),xa=(0,Lt.useRef)(),va=(0,Lt.useRef)(),Zs=(0,Lt.useRef)(!1),[Qr,Vn]=(0,Lt.useState)(!1);function Qn(){let On;return Is.current&&(On=new ge.Z(Si=>{for(let Pr of Si)(Pr.target.offsetHeight>0||Pr.target.offsetWidth>0)&&So.current.instance.layout()}),On.observe(Is.current)),On}function kn(){Oe.ZP.warning({content:decodeURIComponent(he),key:"monaco-editor-tip"})}const rn=()=>{let On=So.current.instance;if(Pt!=null&&On&&Qr){const Si=On.getModel();Si&&Pt!==Si.getValue()&&(hn=!0,Si.setValue(Pt),On.layout(),hn=!1)}};(0,Lt.useEffect)(()=>{const On=xe.Z.subscribe("formatDocument",Si=>{var Pr;let rr=So.current.instance;(Pr=rr==null?void 0:rr.getAction)==null||Pr.call(rr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Si=>{Wi(Si)},On},[]),(0,Lt.useEffect)(()=>{var On;let Si=So.current.instance;ai.current&&clearTimeout(ai.current),ai.current=setTimeout(()=>{rn()},500),Pt&&(Pt!=null&&Pt.length)&&((On=Si==null?void 0:Si.updateOptions)==null||On.call(Si,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Pt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Pt,Qr,So.current]),(0,Lt.useEffect)(()=>{if(Ir&&So.current&&So.current.instance){let Si=So.current.instance;Si.changeViewZones(function(Pr){var rr=document.createElement("div");rr.style.padding="10px 20px",rr.style.width="calc(100% - 20px)",rr.className="my-error-line-wrp",rr.innerHTML=Xr,Pr.addZone({afterLineNumber:Ir||11,heightInLines:3,domNode:rr})});var On={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}};Si.addOverlayWidget(On),Si.revealPositionInCenter({lineNumber:20,column:1})}},[Ir,So.current,Qr]);const hi=(On="",Si)=>{if(!On||On.trim()==="")return!0;const rr=So.current.instance.getModel().getLineTokens(Si);let Kr=!1;for(let sr=0;sr<2;sr++)rr.getStandardTokenType(sr)===1&&(Kr=!0);return Kr};(0,Lt.useEffect)(()=>{var On;const Si=(On=So.current)==null?void 0:On.instance;if(Si&&Qr&&Qi){const Pr=Si.onDidBlurEditorWidget(()=>{Zs.current=!1}),rr=Si.onDidFocusEditorText(()=>{Zs.current=!0});return()=>{Pr.dispose(),rr.dispose()}}},[So.current,Qr,Qi]),(0,Lt.useEffect)(()=>{var On;if((On=So.current)!=null&&On.instance&&Qr&&ho){let Si=So.current.instance,Pr=Si.getModel();if(!Pr)return;(()=>{var Uo;let jn=[],Tr=[];const so=Pr.getAllDecorations();for(let ns of so)ns.options.className==="highlighted-line"&&(jn.push((Uo=ns==null?void 0:ns.range)==null?void 0:Uo.startLineNumber),Tr.push(ns==null?void 0:ns.id));if(to===jn[0])return;Pr.deltaDecorations(Tr,[]);const _r=Pr.getLineCount();to&&to<=_r&&(Si.deltaDecorations([],[{range:new Ft.Range(to,1,to,Pr.getLineMaxColumn(to)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Si.revealLineInCenter(to))})();const Kr=(Uo=!1)=>{var jn;let Tr=[],so=[];const _r=Pr.getAllDecorations();for(let ns of _r)ns.options.linesDecorationsClassName==="breakpoints-select"&&(Tr.push((jn=ns==null?void 0:ns.range)==null?void 0:jn.startLineNumber),so.push(ns==null?void 0:ns.id));if(Uo)return{lines:Tr,ids:so};qr(Tr)},sr=Uo=>Li(void 0,null,function*(){let jn={range:new Ft.Range(Uo,1,Uo,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Pr.deltaDecorations([],[jn]),Kr()}),Br=Uo=>Li(void 0,null,function*(){let jn=[];const Tr=Si.getLineDecorations(Uo);for(let so of Tr)so.options.linesDecorationsClassName==="breakpoints-select"&&jn.push(so.id);yield Pr.deltaDecorations(jn,[]),Kr()}),dr=Uo=>{let jn=Si.getLineDecorations(Uo);for(let Tr of jn)if(Tr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_e.isEqual)(Vr,Kr(!0).lines)){Pr.deltaDecorations(Kr(!0).ids,[]);const Uo=Vr.map(jn=>({range:new Ft.Range(jn,1,jn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Pr.deltaDecorations([],Uo)}const Er=Si.onDidChangeModelContent(Uo=>{let jn=Si.getPosition();if(jn){let Tr=jn.lineNumber;clearTimeout(va.current),va.current=setTimeout(()=>{hi(Pr.getLineContent(Tr),Tr)?Br(Tr):dr(Tr)?(Br(Tr),sr(Tr)):Kr()},100)}}),ao=Si.onMouseDown(Uo=>{var jn,Tr,so;if(Uo.target.detail&&((so=(Tr=(jn=Uo.target)==null?void 0:jn.element)==null?void 0:Tr.className)!=null&&so.includes("line-numbers"))){let _r=Uo.target.position.lineNumber;if(hi(Pr.getLineContent(_r),_r))return;dr(_r)?Br(_r):sr(_r)}}),Xi=Uo=>{let jn={range:new Ft.Range(Uo,1,Uo,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Jo.current=Si.deltaDecorations(Jo.current,[jn])},yr=()=>{Jo.current=Si.deltaDecorations(Jo.current,[])},Lo=Si.onMouseMove(Uo=>{var jn,Tr,so;if(yr(),Uo.target.detail&&((so=(Tr=(jn=Uo.target)==null?void 0:jn.element)==null?void 0:Tr.className)!=null&&so.includes("line-numbers"))){let _r=Uo.target.position.lineNumber;if(hi(Pr.getLineContent(_r),_r))return;Xi(_r)}}),xs=Si.onMouseLeave(()=>{yr()});return()=>{Er.dispose(),ao.dispose(),Lo.dispose(),xs.dispose()}}},[So.current,Qr,Vr,to,ho,mt]),(0,Lt.useEffect)(()=>{var On;(On=So.current)!=null&&On.instance&&ho&&So.current.instance.setPosition({lineNumber:0,column:0})},[to]);function Ci(){let On=So.current.instance;if(On){const Si=On.getSelection(),Pr=So.current.pastePos||{},rr=new Ft.Range(Pr.startLineNumber||Si.endLineNumber,Pr.startColumn||Si.endColumn,Pr.endLineNumber||Si.endLineNumber,Pr.endColumn||Si.endColumn);setTimeout(()=>{On.executeEdits("",[{range:rr,text:""}])},300)}}function bn(On){(window.navigator.platform.match("Mac")?On.metaKey:On.ctrlKey)&&On.keyCode==83&&(On.preventDefault(),xn())}const Ne=()=>{if(li&&So.current.instance){const On=So.current.instance.getContentHeight();Mi(On<$t?$t:On)}else Mi($t)};function Bn(On){var Si=document.createEvent("MouseEvents");Si.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),On.dispatchEvent(Si)}const _n=On=>{if(!Zs.current)return;const{keyCode:Si,ctrlKey:Pr,metaKey:rr,target:Kr,type:sr}=On;return(sr==="paste"||(Si===67||Si===86)&&(rr||Pr))&&Kr.nodeName==="TEXTAREA"&&(kn(),On.preventDefault()),!1};function Ii(On,Si){var Pr=window.URL||window.webkitURL||window,rr=new Blob([Si]),Kr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Kr.href=Pr.createObjectURL(rr),Kr.download=On,Bn(Kr)}(0,Lt.useEffect)(()=>{Ne()},[Ne]),(0,Lt.useEffect)(()=>{Is.current&&!Qr&&Promise.all([bt.e(8909),bt.e(1810)]).then(bt.bind(bt,71448)).then(On=>{try{Ft=On,So.current.instance=Ft.editor.create(Is.current,{value:Pt,language:Ot(mt),theme:Ie,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Dt);const Si=So.current.instance;let Kr=[...Ge.BH._menuItems].find(Er=>Er[0]._debugName=="EditorContext")[1],sr=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Br=(Er,ao)=>{var Xi,yr;let Lo=Er._first;do ao.includes((yr=(Xi=Lo.element)==null?void 0:Xi.command)==null?void 0:yr.id)&&Er._remove(Lo);while(Lo=Lo.next)};if(pr(Si,Ft),setTimeout(()=>{Ne(),So.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ii(Jr||"educoder.txt",Si.getValue())}})},500),So.current.subscription=Si.onDidChangeModelContent(Er=>{sa.current?clearTimeout(xa.current):(Ne(),Wi(Si.getValue(),Er)),xa.current=setTimeout(()=>{sa.current=!1},500)}),window.Monaco||ae(Ft,Ot(mt)),Qi&&(Br(Kr,sr),Is.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_n),window.removeEventListener("paste",_n),window.addEventListener("keydown",_n),window.addEventListener("paste",_n)),window.Monaco=Ft,nn&&Si.onDidBlurEditorWidget(()=>{nn(Si.getValue())}),xr&&Si.onDidFocusEditorText(()=>{xr(Si.getValue())}),Qi)try{Si.onDidPaste(Er=>{const ao=Si.getSelection(),Xi=So.current.pastePos||{},yr=new Ft.Range(Xi.startLineNumber||ao.endLineNumber,Xi.startColumn||ao.endColumn,Xi.endLineNumber||ao.endLineNumber,Xi.endColumn||ao.endColumn);Si.executeEdits("",[{range:Er.range,text:""}])})}catch(Er){}let dr=Qn();return cs&&typeof cs=="string"&&new $e(cs,Si,Ft),Vn(!0),()=>{const Er=So.current.instance;Er.dispose();const ao=Er.getModel();ao&&ao.dispose(),So.current.subscription&&So.current.subscription.dispose(),dr.unobserve(Is.current)}}catch(Si){}})},[]),(0,Lt.useEffect)(()=>{if(So.current.instance&&Qr)return document.addEventListener("keydown",bn,!1),()=>{document.removeEventListener("keydown",bn)}},[xn,Qr]),(0,Lt.useEffect)(()=>{let On=So.current.instance;if(On&&Qr){let Si=Ot(mt);Ft.editor.setModelLanguage(On.getModel(),Si)}},[mt,Qr]),(0,Lt.useEffect)(()=>{So.current.instance&&Qr&&Ft.editor.setTheme(Ie)},[Ie,Qr]),(0,Lt.useEffect)(()=>{let On=So.current.instance;Yt.current=Se,On&&Qr&&(On.updateOptions($n({},Se)),setTimeout(()=>{On.getModel().updateOptions($n({},Se))},200))},[JSON.stringify(Se),Qr]),(0,Lt.useEffect)(()=>{let On=So.current.instance;On&&Qr&&On.layout()},[Be,$t,Qr]);const[ni,mn]=(0,Lt.useState)(ji(Be)),[Ai,Mi]=(0,Lt.useState)(ji($t)),er=bi($n({},Zt),{width:ni,height:Ai,position:"relative"});return Lt.createElement("div",{className:"my-monaco-editor",ref:Is,style:er},zn&&Lt.createElement(ie.CopyToClipboard,{text:Pt,onCopy:()=>Oe.ZP.success("\u590D\u5236\u6210\u529F")},Lt.createElement(Ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},Lt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Lt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ee({width:je="100%",height:ce="100%",original:Be,modified:$t,language:Pt,options:mt={}}){const Zt=(0,Lt.useRef)(),[Se,Dt]=(0,Lt.useState)(null);function Ie(li){let Qi;return Zt.current&&(Qi=new ge.Z(Wi=>{for(let pr of Wi)(pr.target.offsetHeight>0||pr.target.offsetWidth>0)&&li.layout()}),Qi.observe(Zt.current)),Qi}(0,Lt.useEffect)(()=>(Zt.current&&Promise.all([bt.e(8909),bt.e(9404)]).then(bt.bind(bt,2550)).then(li=>{Ft=li;const Qi=Ft.editor.createDiffEditor(Zt.current,bi($n({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},mt),{wordWrap:!0}));Dt(Qi);let Wi=Ie(Qi);return()=>{Qi.dispose();const pr=Qi.getModel();pr&&pr.dispose(),Wi.unobserve(Zt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Lt.useEffect)(()=>{Se&&Se.setModel({original:Ft.editor.createModel(Be,Pt),modified:Ft.editor.createModel($t,Pt)})},[Be,$t,Pt,Se]);const nn=ji(je),zn=ji(ce),xn={width:nn,height:zn};return Lt.createElement("div",{className:"my-diff-editor",ref:Zt,style:xn})}},94606:function(di,Pn,bt){"use strict";bt.d(Pn,{jL:function(){return re},w9:function(){return In},QD:function(){return Wi},cQ:function(){return ie},op:function(){return Ie},O5:function(){return Zs},_b:function(){return Ir},t7:function(){return rt},Gi:function(){return Li},YG:function(){return bi},qp:function(){return Wt},vr:function(){return qr},qE:function(){return xn},Je:function(){return yt},wb:function(){return Ge},cq:function(){return Ft},tp:function(){return wt}});var Lt=bt(59301),ge={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",re=({dataSource:Qr=[],img:Vn,imgWidth:Qn=346,title:kn,sunTitle:rn,bannerExtraContent:hi})=>Lt.createElement("div",{className:ge.banner},Lt.createElement("div",{className:ge.content},Lt.createElement("aside",null,Lt.createElement("p",null,Lt.createElement("b",null,kn),Lt.createElement("span",null,rn)),Qr.length>0&&Lt.createElement("div",{className:ge.btns},Qr.map((Ci,bn)=>Lt.createElement("div",{key:bn,onClick:Ci.click},Ci.name,Ci.sign?Lt.createElement("img",{src:se,width:39}):null))),hi),Vn&&Lt.createElement("img",{style:{marginTop:33,marginRight:38},src:Vn,width:Qn}))),le={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Et=bt(92310),Tt=bt.n(Et),ee=bt(89392),Wt=({dataSource:Qr=[],value:Vn,onChange:Qn,onTitleChange:kn,className:rn,title:hi,titleWidth:Ci=41,style:bn={},fontColor:Ne="#6A7283",showCount:Bn})=>{const[_n,Ii]=(0,Lt.useState)(0),[ni,mn]=(0,Lt.useState)(!1),Ai=(0,Lt.useRef)(null),Mi=(0,Lt.useRef)(null);return(0,Lt.useEffect)(()=>{var er;Qr.length!==0&&(((er=Ai==null?void 0:Ai.current)==null?void 0:er.clientHeight)>97?Ii(1):Ii(0)),Qr.length===0&&Ii(0),mn(!1)},[Qr]),Lt.createElement("div",{className:Tt()(le.row,rn),style:bn},Lt.createElement("div",{onClick:(0,ee.throttle)(()=>kn==null?void 0:kn(),2e3),style:{width:Ci,marginTop:ni?12:4},className:`${le.title} ${kn?"current":""}`},hi),Lt.createElement("div",{className:ni?`${le.tagsWrap} ${le.tagsBorderWrap}`:le.tagsWrap},Lt.createElement("div",{className:le.bar,ref:Mi,style:_n>0?{height:_n===1?97:"auto",overflow:_n===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Lt.createElement("div",{className:le.tag,ref:Ai},Qr==null?void 0:Qr.map(er=>Lt.createElement("span",{onClick:()=>Qn(er.id),key:er.id,style:{color:Ne},className:Vn===er.id?le.active:""},Lt.createElement("span",{title:er.name,className:le.name},er.name),!!Bn&&Lt.createElement("span",{className:le.num},er.count))))),!!_n&&Lt.createElement(Lt.Fragment,null,_n===1?Lt.createElement("div",{onClick:()=>{var er;Ii(2),((er=Ai==null?void 0:Ai.current)==null?void 0:er.clientHeight)>245?mn(!0):mn(!1)},className:le.action},"\u5C55\u5F00",Lt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Lt.createElement("div",{onClick:()=>{Mi.current.scrollTop=0,Ii(1),mn(!1)},className:le.action},"\u6536\u8D77",Lt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Gt={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},wt=({dataSource:Qr=[],value:Vn,onChange:Qn,className:kn,style:rn={}})=>Lt.createElement("div",{style:rn,className:Tt()(Gt.tabs,kn)},Qr.map(hi=>Lt.createElement("span",{onClick:()=>Qn(hi.id),className:Vn===hi.id?Gt.active:"",key:hi.id},hi.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},tt=bt(92832),rt=({dataSource:Qr=[],value:Vn="",onChange:Qn,onInputChange:kn=()=>{},className:rn,style:hi={},placeholder:Ci,allowClear:bn=!1})=>{var Ne;const[Bn,_n]=(0,Lt.useState)(""),[Ii,ni]=(0,Lt.useState)("");(0,Lt.useEffect)(()=>{var Mi;let er=Vn;(Mi=JSON.stringify(Vn))!=null&&Mi.includes("{")&&(_n(Vn.id),er=Vn.value||"");try{ni(decodeURIComponent(er||""))}catch(On){ni(decodeURIComponent(er||""))}},[Vn]);const mn=()=>{Qn(encodeURIComponent(Ii),Bn||null)},Ai=Mi=>{Mi!==Bn&&(_n(Mi),Qn(encodeURIComponent(Ii),Mi))};return Lt.createElement("div",{className:Tt()(et.input,rn),style:hi},!!Qr.length&&Lt.createElement("div",{className:et.dropdown},Lt.createElement("div",{className:et.text},(Ne=Qr.find(Mi=>Mi.id===Bn))==null?void 0:Ne.name,Lt.createElement("i",{className:"iconfont icon-zhankai4"}),Lt.createElement("b",{className:et.b1}),Lt.createElement("b",{className:et.b2})),Lt.createElement("div",{className:et.menu},Qr.map((Mi,er)=>Lt.createElement("div",{key:er,onClick:()=>Ai(Mi.id)},Mi.name)))),Lt.createElement(tt.default,{onPressEnter:mn,value:Ii,onChange:Mi=>{ni(Mi.target.value),kn(encodeURIComponent(Mi.target.value),Bn||null)},bordered:!1,placeholder:Ci}),Lt.createElement("i",{onClick:mn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ht={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},yt=({value:Qr,onChange:Vn,className:Qn,total:kn,pageSize:rn,style:hi={}})=>{const Ci=Qr<2,bn=Qr>=Math.ceil(kn/rn);return kn<=rn?Lt.createElement(Lt.Fragment,null):Lt.createElement("div",{className:Tt()(ht.quickPager,Qn),style:hi},Lt.createElement("div",{onClick:()=>{Ci||Vn(Qr-1,"prev")},className:Ci?ht.disabled:""},"\u4E0A\u4E00\u9875"),Lt.createElement("div",{onClick:()=>{bn||Vn(Qr+1,"next")},className:bn?ht.disabled:""},"\u4E0B\u4E00\u9875"))},Mt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},jt=bt(71418),Rt=bt(6848),ae=bt(39978),he=bt(10148),pe=bt(58130),Te=bt(96908),ne=bt(57177),Ke=bt(81378),Vt=bt(97267),Ge=({className:Qr,dataSource:Vn=[],col:Qn=4,right:kn,bottom:rn=23,precision:hi=0,wrapWidth:Ci=1200,trackEventItems:bn,loading:Ne})=>{const Bn=Math.floor((Ci-(Qn-1)*kn)/Qn);return Lt.createElement(jt.Z,{spinning:Ne},Lt.createElement("div",{className:Tt()(Mt.list,Qr)},!!Vn.length&&Vn.map((_n,Ii)=>{const{name:ni,id:mn,identifier:Ai,power:Mi,cover_image_id:er,pic:On}=_n;return Lt.createElement("div",{className:Mt.wrap,key:mn,style:{width:Bn,marginRight:(1+Ii)%Qn===0?0:kn+hi,marginBottom:rn}},Lt.createElement("a",{target:"_blank",href:`/shixuns/${Ai}/challenges`,className:Mt.li,onClick:Si=>{Si.preventDefault(),bn&&(0,pe.L9)([bn]),Mi&&(0,pe.xg)(`/shixuns/${Ai}/challenges`)}},Lt.createElement("div",{className:Mt.img},Lt.createElement("img",{className:Mt.cover,src:`${On}`}),_n.is_jupyter&&Lt.createElement("img",{className:Mt.sign,src:Te}),_n.is_jupyter_lab&&Lt.createElement("img",{className:Mt.sign,src:ne}),_n.is_unity_3d&&Lt.createElement("img",{className:Mt.sign,src:Ke})),Lt.createElement("div",{className:Mt.name},Lt.createElement(Rt.Z,{title:ni||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Lt.createElement("span",{className:Mt.e},ni||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Lt.createElement("div",{className:Mt.tags},Lt.createElement(Rt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Lt.createElement("span",null,_n.challenges_count))),!!_n.myshixuns_count&&Lt.createElement(Rt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Lt.createElement("span",null,Lt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Lt.createElement("span",null,_n.myshixuns_count))),Lt.createElement(Rt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Lt.createElement("span",null,Lt.createElement("span",null,_n.level))),Lt.createElement("div",{className:Mt.rate},Lt.createElement(ae.Z,{allowHalf:!0,disabled:!0,defaultValue:_n.score_info}),Lt.createElement("span",null,"\xA0",_n.score_info?`${_n.score_info}\u5206`:"5\u5206")))),!Mi&&Lt.createElement("div",{className:Mt.lockWrap},Lt.createElement("img",{src:`${he.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Lt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Vn.length&&Lt.createElement(Vt.Z,null)))},Oe={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},Ve=bt(2119),_e=bt(59301),ie=({className:Qr,dataSource:Vn=[],col:Qn=4,right:kn,bottom:rn=23,precision:hi=0,wrapWidth:Ci=1200,trackEventItems:bn,loading:Ne,onRemove:Bn=()=>{},isCurrent:_n=!0,showAlias:Ii=!1})=>{const ni=Math.floor((Ci-(Qn-1)*kn)/Qn),mn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return _e.createElement(jt.Z,{spinning:Ne},_e.createElement("div",{className:Tt()(Oe.list,Qr)},!!(Vn!=null&&Vn.length)&&(Vn==null?void 0:Vn.map((Ai,Mi)=>{var er;const{name:On,id:Si,identifier:Pr,featured:rr,school_name:Kr,image_url:sr,excellent:Br,is_plan:dr}=Ai;return _e.createElement("div",{key:Si,className:Oe.wrap,style:{width:ni,marginRight:(1+Mi)%Qn===0?0:kn+hi,marginBottom:rn}},_e.createElement("a",{className:Oe.li,onClick:Er=>{Er.preventDefault(),Er.stopPropagation(),bn&&(0,pe.L9)([bn]),(0,pe.xg)(`/paths/${Pr}`)}},_e.createElement("div",{className:Oe.img},_e.createElement("img",{className:Oe.cover,src:`${sr}`}),_n&&(0,Ve.bg)()&&(Ai==null?void 0:Ai.studying)&&_e.createElement("div",{className:`${Oe.movebq} user-path-items`,onClick:Er=>{Er.stopPropagation(),Bn(Ai)}},_e.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),_e.createElement("span",{className:"c-red"},"\u79FB\u9664")),(er=Ai==null?void 0:Ai.subject_tags)==null?void 0:er.map((Er,ao)=>{var Xi,yr;if(ao===0){const xs=(Xi=mn.find(Uo=>Uo.name==Er))==null?void 0:Xi.swimg;return _e.createElement("img",{className:Oe.sign,src:xs,style:{left:"-4px"}})}const Lo=(yr=mn.find(xs=>xs.name==Er))==null?void 0:yr.ptimg;return _e.createElement("img",{className:Oe.sign,src:Lo,style:{left:`${48+52*(ao-1)+2*ao}px`}})}),_e.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ai==null?void 0:Ai.excellent)&&_e.createElement("div",{className:Oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),_e.createElement("div",{className:Oe.name},_e.createElement(Rt.Z,{title:Ii&&(Ai!=null&&Ai.excellent_alias_name)?_e.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${On}`,_e.createElement("br",null),_e.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ai==null?void 0:Ai.excellent_alias_name}`)):On},_e.createElement("span",{className:Oe.e},Ii&&(Ai==null?void 0:Ai.excellent_alias_name)||On))),_e.createElement(Rt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Kr}`},_e.createElement("div",{className:Oe.unit},_e.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Kr)),_e.createElement("div",{className:Oe.tags},_e.createElement("div",null,_e.createElement(Rt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},_e.createElement("span",null,_e.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),_e.createElement("span",null,Ai.stages_count))),_e.createElement(Rt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},_e.createElement("span",null,_e.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),_e.createElement("span",null,Ai.members_count)))))))})),!Vn.length&&_e.createElement(Vt.Z,null)))},be={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Fn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Mn=bt(59301),In=({className:Qr,dataSource:Vn=[],col:Qn=4,right:kn,bottom:rn=23,precision:hi=0,wrapWidth:Ci=1200,trackEventItems:bn,loading:Ne})=>{const Bn=Math.floor((Ci-(Qn-1)*kn)/Qn);return Mn.createElement(jt.Z,{spinning:Ne},Mn.createElement("div",{className:Tt()(be.list,Qr)},!!Vn.length&&Vn.map((_n,Ii)=>{const{subject_identifier:ni,id:mn,identifier:Ai,power:Mi}=_n,er=_n.is_public!=0&&_n.is_public;return Mn.createElement("div",{className:be.wrap,key:mn,style:{width:Bn,marginRight:(1+Ii)%Qn===0?0:kn+hi,marginBottom:rn}},Mn.createElement("a",{className:be.li,onClick:On=>{On.preventDefault(),bn&&(0,pe.L9)([bn]),(0,pe.xg)(_n.first_category_url)}},Mn.createElement("div",{className:be.top},Mn.createElement(Rt.Z,{title:_n.name},Mn.createElement("div",{className:be.name},_n.name)),Mn.createElement("img",{className:be.img,src:he.Z.IMG_SERVER+"/images/"+_n.avatar_url}),Mn.createElement("div",{className:be.text,title:_n.creator},_n.creator),ni&&Mn.createElement("div",{className:be.btns},Mn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Mn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),er&&Mn.createElement("div",{className:be.sign},"\u516C\u5F00")),Mn.createElement("div",{className:be.bottom},_n.visits>0&&Mn.createElement(Rt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Mn.createElement("span",null,Mn.createElement("i",{className:"iconfont icon-liulanyan"}),Mn.createElement("span",null,_n.visits))),_n.course_members_count>0&&Mn.createElement(Rt.Z,{title:"\u6210\u5458",placement:"bottom"},Mn.createElement("span",null,Mn.createElement("i",{className:"iconfont icon-chengyuan"}),_n.course_members_count)),_n.tasks_count>0&&Mn.createElement(Rt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Mn.createElement("span",null,Mn.createElement("i",{className:"iconfont icon-zuoye"}),_n.tasks_count)),_n.is_end?Mn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Mn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!_n.is_accessible&&Mn.createElement("div",{className:be.lockWrap},Mn.createElement("img",{src:`${he.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Mn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Vn.length&&Mn.createElement(Vt.Z,null)))},Xn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},pi=bt(42203),bi=({dataSource:Qr=[],value:Vn,onChange:Qn,className:kn,style:rn={},tabBarExtraContent:hi})=>Lt.createElement("div",{className:Tt()(Xn.tabs,kn),style:rn},Lt.createElement("div",{className:Xn.tabsWrap},Qr.map((Ci,bn)=>Lt.createElement("aside",{className:Xn.tab,onClick:()=>{Qn(Ci.id),Ci.link&&pi.history.push(Ci.link)},key:bn},Lt.createElement("div",{className:Vn===Ci.id?Xn.active:""},Ci.name),(Ci==null?void 0:Ci.resetCount)==null&&(Ci==null?void 0:Ci.total)!==void 0&&Lt.createElement("span",null,"\uFF08",Ci==null?void 0:Ci.total,"\uFF09"),(Ci==null?void 0:Ci.resetCount)!==void 0&&(Ci==null?void 0:Ci.total)!==void 0&&Lt.createElement(Rt.Z,{title:(Ci==null?void 0:Ci.tip)!=null?Ci==null?void 0:Ci.tip:""},Lt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Lt.createElement("span",{style:{color:"#000"}},Ci==null?void 0:Ci.resetCount),"/",Lt.createElement("span",null,Ci==null?void 0:Ci.total),"\uFF09"))))),Lt.createElement("div",{className:Xn.tabBar},hi)),Li=({className:Qr,style:Vn={},children:Qn})=>Lt.createElement("div",{className:Tt()(Qr),style:Vn},Qn),ji={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ve=bt(38854),hn=bt(20834);const Ae=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ft=({sortValue:Qr,dropValue:Vn,className:Qn,onSort:kn,onDrop:rn,dataSource:hi=Ae})=>{var Ci;return Lt.createElement("div",{className:Tt()(ji.orderWrap,Qn)},Lt.createElement(ve.Z,{dropdownRender:()=>Lt.createElement(hn.default,null,hi.map((bn,Ne)=>Lt.createElement(hn.default.Item,{key:Ne,onClick:()=>rn(bn.id)},bn.name)))},Lt.createElement("span",{className:ji.orderTextWrap},(Ci=hi.find(bn=>Vn===bn.id))==null?void 0:Ci.name)),Lt.createElement("span",{className:ji.orderIconWrap},Lt.createElement("span",{className:ji.orderAsc},Lt.createElement("i",{className:Qr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ji.cursorPointer} ${ji.active}`:`iconfont icon-sanjiaoxing-up font12 ${ji.cursorPointer}`,onClick:()=>kn(Qr==="asc"?"desc":"asc")})),Lt.createElement("span",{className:ji.orderDesc},Lt.createElement("i",{className:Qr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ji.cursorPointer} ${ji.active}`:`iconfont icon-sanjiaoxing-down font12 ${ji.cursorPointer}`,onClick:()=>kn(Qr==="asc"?"desc":"asc")}))))},Kt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ee=bt(3113),je=Object.defineProperty,ce=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,Pt=(Qr,Vn,Qn)=>Vn in Qr?je(Qr,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Qr[Vn]=Qn,mt=(Qr,Vn)=>{for(var Qn in Vn||(Vn={}))Be.call(Vn,Qn)&&Pt(Qr,Qn,Vn[Qn]);if(ce)for(var Qn of ce(Vn))$t.call(Vn,Qn)&&Pt(Qr,Qn,Vn[Qn]);return Qr},Zt=(Qr,Vn)=>{var Qn={};for(var kn in Qr)Be.call(Qr,kn)&&Vn.indexOf(kn)<0&&(Qn[kn]=Qr[kn]);if(Qr!=null&&ce)for(var kn of ce(Qr))Vn.indexOf(kn)<0&&$t.call(Qr,kn)&&(Qn[kn]=Qr[kn]);return Qn},Se=(Qr,Vn,Qn)=>new Promise((kn,rn)=>{var hi=Ne=>{try{bn(Qn.next(Ne))}catch(Bn){rn(Bn)}},Ci=Ne=>{try{bn(Qn.throw(Ne))}catch(Bn){rn(Bn)}},bn=Ne=>Ne.done?kn(Ne.value):Promise.resolve(Ne.value).then(hi,Ci);bn((Qn=Qn.apply(Qr,Vn)).next())}),Ie=Qr=>{var Vn=Qr,{className:Qn,style:kn,children:rn,loading:hi=!1,openLoading:Ci,onClick:bn=()=>{},size:Ne="middle",shape:Bn="round"}=Vn,_n=Zt(Vn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ii,ni]=(0,Lt.useState)(!1);return Lt.createElement(Ee.ZP,mt({onClick:(0,ee.throttle)(mn=>Se(void 0,null,function*(){Ci&&ni(!0);try{yield bn(mn)}catch(Ai){console.log("error",Ai)}Ci&&ni(!1)}),2e3,{leading:!0,trailing:!1}),className:Tt()(Kt.btn,Kt[`${Ne}-${Bn}`],Qn),style:kn,size:Ne,shape:Bn,loading:Ii||hi},_n),rn)},nn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},xn=({className:Qr,style:Vn,children:Qn=null,onClick:kn,title:rn})=>Lt.createElement("div",{className:Tt()(nn.head,Qr),style:Vn},Lt.createElement("span",{className:"primary-hover",onClick:kn},Lt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Lt.createElement("b",{title:rn},rn),Lt.createElement("div",{className:nn.node},Qn)),li={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Wi=({confirmShow:Qr=!0,confirmTitle:Vn,confirmClick:Qn,cancelShow:kn=!0,cancelTitle:rn,cancelClick:hi,className:Ci,style:bn,confirmLoading:Ne=!1})=>Lt.createElement("div",{className:Tt()(li.btns,Ci),style:bn},Qr&&Lt.createElement(Ee.ZP,{loading:Ne,onClick:Qn,type:"primary",className:li.confirm},Vn),kn&&Lt.createElement(Ee.ZP,{onClick:hi,className:li.cancel},rn)),pr={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},qr=({className:Qr,style:Vn={},LeftContent:Qn,children:kn,RightContent:rn})=>Lt.createElement("div",{className:Tt()(pr.fixedBottom,Qr),style:Vn},Lt.createElement("div",{className:pr.wrap},Lt.createElement("div",{className:pr.left},Qn),Lt.createElement("div",{className:pr.center},kn),Lt.createElement("div",{className:pr.right},rn))),Vr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Ir=({className:Qr,style:Vn={},dataSource:Qn=[]})=>Lt.createElement("div",{className:Tt()(Vr.crumbs,Qr),style:Vn},Qn.map((kn,rn)=>rn<Qn.length-1?Lt.createElement(Lt.Fragment,{key:rn},kn.path||kn.onClick?Lt.createElement("span",{className:Vr.hover,onClick:kn!=null&&kn.onClick?kn.onClick:()=>pi.history.push(kn.path)},kn.name):Lt.createElement("span",null,kn.name),Lt.createElement("span",null,"\xA0",">","\xA0")):Lt.createElement("span",{key:rn,style:{color:"#5F6368"}},kn.name))),Xr=bt(31797),to=Object.defineProperty,ho=Object.defineProperties,cs=Object.getOwnPropertyDescriptors,no=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,Yt=(Qr,Vn,Qn)=>Vn in Qr?to(Qr,Vn,{enumerable:!0,configurable:!0,writable:!0,value:Qn}):Qr[Vn]=Qn,ai=(Qr,Vn)=>{for(var Qn in Vn||(Vn={}))Is.call(Vn,Qn)&&Yt(Qr,Qn,Vn[Qn]);if(no)for(var Qn of no(Vn))So.call(Vn,Qn)&&Yt(Qr,Qn,Vn[Qn]);return Qr},Jo=(Qr,Vn)=>ho(Qr,cs(Vn)),sa=(Qr,Vn)=>{var Qn={};for(var kn in Qr)Is.call(Qr,kn)&&Vn.indexOf(kn)<0&&(Qn[kn]=Qr[kn]);if(Qr!=null&&no)for(var kn of no(Qr))Vn.indexOf(kn)<0&&So.call(Qr,kn)&&(Qn[kn]=Qr[kn]);return Qn};const{Countdown:xa}=Xr.default;var Zs=Qr=>{var Vn=Qr,{onChange:Qn}=Vn,kn=sa(Vn,["onChange"]);const[rn,hi]=(0,Lt.useState)(null);(0,Lt.useEffect)(()=>{typeof rn=="number"&&rn>=0&&Qn(rn)},[rn]);const Ci=bn=>{const Ne=Math.floor(bn/1e3);hi(Ne)};return Lt.createElement(xa,Jo(ai({},kn),{onChange:Ci}))}},91300:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ge}});var Lt=bt(59301);function ge(se,De){const re=(0,Lt.useRef)();(0,Lt.useEffect)(()=>{re.current=se}),(0,Lt.useEffect)(()=>{function le(){re.current()}if(De!==null){let Et=setInterval(le,De);return()=>clearInterval(Et)}},[De])}},76518:function(di,Pn,bt){"use strict";bt.r(Pn),bt.d(Pn,{default:function(){return bn}});var Lt=bt(59301),ge=bt(61186),se=bt.n(ge),De=bt(86129),re=bt.n(De),le=bt(70635),Et=bt(42203),Tt=bt(43418),ee=bt(8591),Ct=bt(78485),Wt=bt(66104),Gt=bt(95237),Jt=bt(43604),wt=bt(3113),et=bt(6848),tt=bt(28103),lt=bt(92832),rt=bt(2595),ht=bt(57809),dt=bt(25700),yt=bt(66720),Mt=bt(83281),jt=bt(80205),Rt=bt(72295),ae=bt(10148),he=bt(2119),pe=bt(58130),Te=bt(42441),ne={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt"},Ke={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const Vt=({shixunHomeworks:Ne,data:Bn,globalSetting:_n,loading:Ii,dispatch:ni})=>{var mn;const{shixunWorkReport:Ai}=Ne;let Mi=((mn=Bn==null?void 0:Bn.efficiency_list)==null?void 0:mn.length)-parseInt(Bn==null?void 0:Bn.myself_eff[0]);const er=()=>({title:{text:"\u5B66\u4E60\u6548\u7387",subtext:"\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(Si){return Si.name===Ai.username?"\u59D3\u540D\uFF1A"+Ai.username+"<br/>\u5B66\u53F7\uFF1A "+Ai.user_id+"<br/>\u6548\u7387\uFF1A"+(Bn==null?void 0:Bn.myself_eff[1]):Si.name+":"+Si.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5B66\u751F\u4F4D\u7F6E",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:""},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:Bn==null?void 0:Bn.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:Ai.username,xAxis:Mi,yAxis:Bn==null?void 0:Bn.myself_eff[1],value:Bn==null?void 0:Bn.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),On=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(Si){var Pr=Si.value;if(Si.name===Ai.username)return"\u59D3\u540D\uFF1A"+Ai.username+"<br/>\u5B66\u53F7\uFF1A "+Ai.user_id+"<br/>\u5F97\u5206\uFF1A"+(Bn==null?void 0:Bn.myself_object[1])}},xAxis:{type:"value",name:"log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80FD\u529B",type:"scatter",itemStyle:Ke,data:Bn==null?void 0:Bn.consume_list,symbolSize:function(Si){return Math.round(Si[2])},markPoint:{data:[{name:Ai.username,xAxis:Bn==null?void 0:Bn.myself_object[0],yAxis:Bn==null?void 0:Bn.myself_object[1],value:Bn==null?void 0:Bn.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return Lt.createElement(Lt.Fragment,null,Lt.createElement("aside",{className:"ml60 pr30"},Lt.createElement(Gt.Z,null,Lt.createElement(Jt.Z,{flex:"800px"},Lt.createElement(Te.Z,{style:{width:750,height:580},option:er()})),Lt.createElement(Jt.Z,{flex:"1"},Lt.createElement("aside",{className:ne.rightInfo},Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("span",null,"\u59D3\u540D")," ",Lt.createElement("span",{className:"ml30"},Ai.username)),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u53F7")," ",Lt.createElement("span",{className:"ml30"},Ai.student_id||"--")),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",Lt.createElement("span",{className:"ml30 c-orange"},Bn==null?void 0:Bn.myself_eff[1])),Lt.createElement("li",null,Lt.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",Lt.createElement("span",{className:"ml30 c-orange"},Bn==null?void 0:Bn.myself_eff[0]))),Lt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",Lt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",Lt.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",Lt.createElement("br",null),"\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))),Lt.createElement("aside",{className:"ml60 pr30"},Lt.createElement(Gt.Z,null,Lt.createElement(Jt.Z,{flex:"800px"},Lt.createElement(Te.Z,{style:{width:750,height:580},option:On()})),Lt.createElement(Jt.Z,{flex:"1"},Lt.createElement("aside",{className:ne.rightInfo},Lt.createElement("ul",null,Lt.createElement("li",null,Lt.createElement("span",null,"\u59D3\u540D")," ",Lt.createElement("span",{className:"ml30"},Ai.username)),Lt.createElement("li",null,Lt.createElement("span",null,"\u5B66\u53F7")," ",Lt.createElement("span",{className:"ml30"},Ai.student_id||"--")),Lt.createElement("li",null,Lt.createElement("span",null,"\u80FD\u529B")," ",Lt.createElement("span",{className:"ml30 c-orange"},Bn==null?void 0:Bn.myself_object[1]))),Lt.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",Lt.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",Lt.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",Lt.createElement("br",null)))))))};var $e=(0,Et.connect)(({shixunHomeworks:Ne,loading:Bn,globalSetting:_n})=>({shixunHomeworks:Ne,globalSetting:_n,loading:Bn.effects}))(Vt),Ge=bt(48551),Oe=bt(88897),Ve=({defaultValue:Ne,onBlur:Bn,max:_n,className:Ii="game-score"})=>{const[ni,mn]=(0,Lt.useState)(Ne);(0,Lt.useEffect)(()=>{mn(Ne)},[Ne]);function Ai(er){mn(er)}function Mi(){ni!==Ne&&Bn(ni>_n?_n:ni)}return Lt.createElement(Oe.Z,{max:_n,min:0,className:Ii,value:ni,onChange:Ai,onBlur:Mi})},_e=bt(23469),xe={md:"md___TEmcT"},ie=bt(59301),be=Object.defineProperty,Fn=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,pi=(Ne,Bn,_n)=>Bn in Ne?be(Ne,Bn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):Ne[Bn]=_n,$n=(Ne,Bn)=>{for(var _n in Bn||(Bn={}))In.call(Bn,_n)&&pi(Ne,_n,Bn[_n]);if(Xe)for(var _n of Xe(Bn))Xn.call(Bn,_n)&&pi(Ne,_n,Bn[_n]);return Ne},bi=(Ne,Bn)=>Fn(Ne,Mn(Bn));const sn=ht.default.Option,Li={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var ji=(Ne=>(Ne[Ne.SET_PATH=0]="SET_PATH",Ne[Ne.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",Ne))(ji||{});function ve(Ne,Bn){switch(Bn.type){case 0:return bi($n({},Ne),{selectedPath:Bn.payload});case 1:return bi($n({},Ne),{passedContent:Bn.payload});default:throw new Error}}var hn=({path:Ne,game_id:Bn,onPathChange:_n,autoHeight:Ii,diff_code_count:ni,data:mn,game_codes_cn:Ai})=>{var Mi,er,On,Si;const Pr=Ne.split("\uFF1B").filter(ao=>!!ao),[rr,Kr]=(0,Lt.useReducer)(ve,{selectedPath:Pr[0],passedContent:{language:"python",content:""}}),{selectedPath:sr,passedContent:Br}=rr;function dr(ao){Kr({type:0,payload:ao})}const Er={\u6700\u540E\u901A\u5173\u4EE3\u7801:"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",\u6700\u65B0\u4EE3\u7801:"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801:"\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"};return ie.createElement(ie.Fragment,null,ie.createElement("h2",null," ",ie.createElement("span",null,Ai,ie.createElement(et.Z,{title:ie.createElement("div",null,ie.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),ie.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),ie.createElement("div",null," 2.\u82E5\u6709\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u5C55\u793A\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u3002"),ie.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},ie.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),ni&&ie.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",ni),ie.createElement("span",null,ie.createElement(ht.default,{style:{width:200},value:sr,onChange:dr}," ",Pr.map(ao=>ie.createElement(sn,{key:ao,value:ao},ao))," "))," "),(sr==null?void 0:sr.split(".")[1])==="md"&&ie.createElement(_e.Z,{height:300,autoHeight:Ii,defaultValue:((er=(Mi=mn==null?void 0:mn.filter(ao=>ao.path===sr))==null?void 0:Mi[0])==null?void 0:er.content)||"",className:xe.md}),(sr==null?void 0:sr.split(".")[1])!=="md"&&ie.createElement(Ge.ZP,{height:300,language:Br.language,value:((Si=(On=mn==null?void 0:mn.filter(ao=>ao.path===sr))==null?void 0:On[0])==null?void 0:Si.content)||"",autoHeight:Ii,theme:"default",isCopy:!0,options:Li}))},Ae=bt(16597),Ot=bt(12911),Ft=bt.n(Ot),Kt=Object.defineProperty,Ee=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,Be=(Ne,Bn,_n)=>Bn in Ne?Kt(Ne,Bn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):Ne[Bn]=_n,$t=(Ne,Bn)=>{for(var _n in Bn||(Bn={}))je.call(Bn,_n)&&Be(Ne,_n,Bn[_n]);if(Ee)for(var _n of Ee(Bn))ce.call(Bn,_n)&&Be(Ne,_n,Bn[_n]);return Ne},Pt=(Ne,Bn,_n)=>new Promise((Ii,ni)=>{var mn=er=>{try{Mi(_n.next(er))}catch(On){ni(On)}},Ai=er=>{try{Mi(_n.throw(er))}catch(On){ni(On)}},Mi=er=>er.done?Ii(er.value):Promise.resolve(er.value).then(mn,Ai);Mi((_n=_n.apply(Ne,Bn)).next())});const mt=({shixunHomeworks:Ne,autoHeight:Bn,classroomList:_n,dispatch:Ii})=>{var ni,mn,Ai,Mi,er,On,Si;const{shixunWorkReport:Pr}=Ne,{stage_list:rr,work_id:Kr}=Pr,[sr,Br]=(0,Lt.useState)(!1),[dr,Er]=(0,Lt.useState)(!0),[ao,Xi]=(0,Lt.useState)({left:0,top:0,bottom:0,right:0}),yr=(0,Lt.useRef)(null),[Lo,xs]=(0,Lt.useState)(!1),Uo=(Hr,kr)=>{var Bi;const{clientWidth:Po,clientHeight:Pi}=window.document.documentElement,Xo=(Bi=yr.current)==null?void 0:Bi.getBoundingClientRect();Xo&&Xi({left:-Xo.left+kr.x,right:Po-(Xo.right-kr.x),top:-Xo.top+kr.y,bottom:Pi-(Xo.bottom-kr.y)})},jn=(0,Et.useParams)(),Tr=(0,he.GJ)(),so={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,Lt.useEffect)(()=>{console.log(jn)},[]);const _r=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(Hr,kr,Bi)=>Lt.createElement("div",null,Hr,kr.is_work_end_evaluate&&Lt.createElement(pe.vA,{status:5}))},{title:"\u8BC4\u6D4B\u8017\u65F6(S)",dataIndex:"ts_time",width:"130px"},{title:"\u5185\u5B58\u6D88\u8017(MB)",width:"150px",dataIndex:"ts_mem"},{title:"\u8BC4\u6D4B\u65F6\u95F4",width:"170px",dataIndex:"created_at",render:Hr=>se()(Hr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(Hr,kr)=>Lt.createElement("span",{className:"c-blue current",onClick:()=>Pt(void 0,null,function*(){var Bi,Po;const Pi=yield(0,Ae.Lk)(kr.game_identifier,{path:(Po=(Bi=kr.path)==null?void 0:Bi.replace(/\/g,";"))==null?void 0:Po.split(";")[0],query_index:kr.query_index,homework_common_id:jn.categoryId});(Pi==null?void 0:Pi.status)===0&&(xs(Pi),Br(!0))})},kr.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],ns=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(Hr,kr)=>{var Bi;return Lt.createElement("span",null,Lt.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:ae.Z.IMG_SERVER+"/images/"+((Bi=kr==null?void 0:kr.user)==null?void 0:Bi.image_url)}),Hr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:Hr=>Lt.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",Hr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:Hr=>Lt.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",Hr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:Hr=>Lt.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",Hr?se()(Hr).format("YYYY-MM-DD HH:mm"):"--")}];function Oo(Hr,kr){return Pt(this,null,function*(){const{challenge_id:Bi}=rr[Hr],Po=yield Ii({type:"shixunHomeworks/changeScore",payload:{categoryId:jn.homeworkId,type:"report",score:kr,challenge_id:Bi}});yield Ii({type:"shixunHomeworks/getShixunWorkReport",payload:$t({},jn)}),Po.status===0&&ee.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function yi(Hr,kr){return(0,le.U2)(`student_works/${Kr}/rep_passed_content.json`,{path:kr,game_id:Hr})}const Bo=Pr.shixun_detail;return Lt.createElement(Lt.Fragment,null,Bo==null?void 0:Bo.map(function(Hr,kr){var Bi,Po;return Lt.createElement("div",{key:kr},Lt.createElement("aside",{className:"pl30 pr30",key:kr},Lt.createElement("div",{className:`${ne.shixunTitle} mt10`},Lt.createElement("div",null,Lt.createElement("span",{className:"fa fa-code "}),Lt.createElement("strong",{className:"c-black"},"\u7B2C",kr+1,"\u5173 ",Lt.createElement(Et.Link,{className:"c-black",target:"_blank",to:`/tasks/${jn.coursesId}/${jn.categoryId}/${Hr.game_identifier}`},Hr.subject))),Tr?Lt.createElement("span",null,"\u8C03\u5206\uFF1A",Lt.createElement(Ve,{className:"game-score",max:rr[kr].game_score_full,defaultValue:rr[kr].game_score,onBlur:Pi=>{var Xo;if((0,he.Rm)()&&!((Xo=_n.AssistantObject.practice)!=null&&Xo.can_appraise)){ee.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}Oo(kr,Pi)}})):null),Lt.createElement("div",{className:"font16 mt10"},Hr.st===0&&(Hr.path?typeof(Hr==null?void 0:Hr.game_codes_cn)=="string"?Lt.createElement("aside",{className:ne.shixunWrp},Lt.createElement(hn,{game_codes_cn:Hr==null?void 0:Hr.game_codes_cn,autoHeight:Bn,path:Hr.path,game_id:Hr.id,data:Hr.game_codes,diff_code_count:Hr.diff_code_count,onPathChange:yi})):Lt.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),Hr.st===1&&(Hr.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),Lt.createElement("aside",{className:"mt10 font16"},(Bi=Hr.outputs)!=null&&Bi.length?Lt.createElement(rt.default,{columns:_r,pagination:{hideOnSinglePage:!0},dataSource:Hr.outputs.map(Pi=>$t($t({},Hr),Pi))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),Lt.createElement("aside",{className:"mt10 font16"},((Po=Hr==null?void 0:Hr.adjust_review_score_list)==null?void 0:Po.length)>0&&(0,he.GJ)()&&Lt.createElement("div",null,Lt.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),Lt.createElement(rt.default,{columns:ns,pagination:{hideOnSinglePage:!0},dataSource:Hr.adjust_review_score_list,showHeader:!1})))))}),Lt.createElement(Tt.default,{open:sr,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{xs({}),Br(!1)},onCancel:()=>{xs({}),Br(!1)},title:Lt.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{dr&&Er(!1)},onMouseOut:()=>{Er(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:Hr=>Lt.createElement(Ft(),{disabled:dr,bounds:ao,nodeRef:yr,onStart:(kr,Bi)=>Uo(kr,Bi)},Lt.createElement("div",{ref:yr},Hr))},Lt.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},Lt.createElement("div",{style:{display:"flex",alignItems:"center"}},((ni=Lo==null?void 0:Lo.data)==null?void 0:ni.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?Lt.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):Lt.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),Lt.createElement("div",{style:{color:((mn=Lo==null?void 0:Lo.data)==null?void 0:mn.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(Ai=Lo==null?void 0:Lo.data)==null?void 0:Ai.output_detail)),Lt.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},se()((Mi=Lo==null?void 0:Lo.data)==null?void 0:Mi.created_at).format("YYYY-MM-DD HH:mm:ss"))),Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(er=Lo==null?void 0:Lo.data)==null?void 0:er.ts_time,"s")),Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(On=Lo==null?void 0:Lo.data)==null?void 0:On.ts_mem,"mb")),Lt.createElement("div",null,Lt.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),Lt.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((Si=Lo==null?void 0:Lo.data)==null?void 0:Si.test_set_passed_rate)*100,"%")))),Lt.createElement(Ge.ZP,{height:500,autoHeight:Bn,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((Lo==null?void 0:Lo.content)||""))),options:so})))};var Zt=(0,Et.connect)(({shixunHomeworks:Ne,loading:Bn,globalSetting:_n,classroomList:Ii})=>({shixunHomeworks:Ne,globalSetting:_n,loading:Bn.effects,classroomList:Ii}))(mt),Se=bt(78241),Dt={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},Ie=bt(93461),nn=bt(59301),zn=Object.defineProperty,xn=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,Wi=(Ne,Bn,_n)=>Bn in Ne?zn(Ne,Bn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):Ne[Bn]=_n,pr=(Ne,Bn)=>{for(var _n in Bn||(Bn={}))li.call(Bn,_n)&&Wi(Ne,_n,Bn[_n]);if(xn)for(var _n of xn(Bn))Qi.call(Bn,_n)&&Wi(Ne,_n,Bn[_n]);return Ne},xr=(Ne,Bn,_n)=>new Promise((Ii,ni)=>{var mn=er=>{try{Mi(_n.next(er))}catch(On){ni(On)}},Ai=er=>{try{Mi(_n.throw(er))}catch(On){ni(On)}},Mi=er=>er.done?Ii(er.value):Promise.resolve(er.value).then(mn,Ai);Mi((_n=_n.apply(Ne,Bn)).next())});const qr=({shixunHomeworks:Ne,dispatch:Bn,classroomList:_n})=>{const{shixunWorkReport:Ii}=Ne,ni=(0,Et.useParams)(),[mn,Ai]=(0,Lt.useState)(!1),[Mi]=Se.default.useForm(),[er,On]=Tt.default.useModal(),[Si,Pr]=(0,Lt.useState)(!1),[rr,Kr]=(0,Lt.useState)(!1);(0,Lt.useEffect)(()=>{var dr,Er,ao,Xi;Ne.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&Mi.setFieldsValue({comment:(Er=(dr=Ne.actionTabs.selectArrs)==null?void 0:dr.data)==null?void 0:Er.work_comment,hidden_comment:(Xi=(ao=Ne.actionTabs.selectArrs)==null?void 0:ao.data)==null?void 0:Xi.work_comment_hidden})},[Ne.actionTabs.key]);const sr=()=>xr(void 0,null,function*(){const dr=Mi.getFieldsValue();(yield(0,le.ZP)(`/api/student_works/${ni.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:dr.hidden_comment,comment:dr.comment}})).status===0&&(ee.ZP.success("\u8BC4\u9605\u6210\u529F"),Mi.resetFields(),Bn({type:"shixunHomeworks/setActionTabs",payload:{}}),Bn({type:"shixunHomeworks/getShixunWorkReport",payload:pr({},ni)}))}),Br=[{title:"\u5173\u5361",dataIndex:"name",render:(dr,Er,ao)=>ao+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(dr,Er,ao)=>nn.createElement("div",null,dr,Er.complete_status===4&&nn.createElement(pe.vA,{status:Er.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:dr=>dr?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(dr,Er)=>nn.createElement("div",null,nn.createElement("span",{style:{color:parseFloat(Er.game_score_full)!==parseFloat(dr)?"#E30000":"#53C41B"}},dr),"/",Er.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(dr,Er)=>(0,he.GJ)()?nn.createElement(Ve,{max:Er.game_score_full,defaultValue:parseFloat(dr),onBlur:ao=>xr(void 0,null,function*(){var Xi,yr;if((0,he.Rm)()&&!((Xi=_n.AssistantObject.practice)!=null&&Xi.can_appraise)){ee.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 Lo=yield Bn({type:"shixunHomeworks/changeScore",payload:{categoryId:ni.homeworkId,type:"report",score:ao,challenge_id:Er.challenge_id}});(yr=Ne==null?void 0:Ne.actionTabs)==null||yr.fn(),yield Bn({type:"shixunHomeworks/getShixunWorkReport",payload:pr({},ni)}),Lo.status===0&&ee.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):dr}];return nn.createElement(nn.Fragment,null,On,nn.createElement(Tt.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:Ne.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>xr(void 0,null,function*(){var dr;if((0,he.Rm)()&&!((dr=_n.AssistantObject.practice)!=null&&dr.can_appraise)){ee.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 Er=Mi.getFieldsValue();JSON.stringify(Er)==="{}"||Er.hidden_comment===""&&Er.comment===""?Ai(!0):sr()}),onCancel:()=>{Bn({type:"shixunHomeworks/setActionTabs",payload:{}})}},nn.createElement(Gt.Z,{justify:"space-between",className:Dt.info},nn.createElement(Jt.Z,null,nn.createElement("span",{className:`${Dt.label} ${Dt.greyText}`},"\u59D3\u540D"),nn.createElement("span",{className:Dt.blackContent},Ii==null?void 0:Ii.username)),nn.createElement(Jt.Z,null,nn.createElement("span",{className:`${Dt.label} ${Dt.greyText}`},"\u5B66\u53F7"),nn.createElement("span",{className:Dt.blackContent},(Ii==null?void 0:Ii.student_id)||"--")),nn.createElement(Jt.Z,null,nn.createElement("span",{className:`${Dt.label} ${Dt.greyText}`},"\u73ED\u7EA7"),nn.createElement("span",{className:Dt.blackContent},(Ii==null?void 0:Ii.group_name)||"--")),nn.createElement(Jt.Z,null,nn.createElement("span",{className:`${Dt.label} ${Dt.greyText}`},"\u5173\u5361\u5F97\u5206"),nn.createElement("span",{className:Dt.orangeContent},(Ii==null?void 0:Ii.challenge_score)||"--")),nn.createElement(Jt.Z,null,nn.createElement("span",{className:`${Dt.label} ${Dt.greyText}`},"\u6548\u7387\u5206"),nn.createElement("span",{className:Dt.orangeContent},(Ii==null?void 0:Ii.eff_score)||"--")),nn.createElement(Jt.Z,null,nn.createElement("span",{className:`${Dt.label} ${Dt.greyText}`},"\u8865\u4EA4\u6263\u5206"),nn.createElement("span",{className:Dt.orangeContent},(Ii==null?void 0:Ii.late_penalty)||"--")),nn.createElement(Jt.Z,null,nn.createElement("span",{className:`${Dt.label} ${Dt.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),nn.createElement("span",{className:Dt.orangeContent},(Ii==null?void 0:Ii.work_score)||"--"))),nn.createElement(Se.default,{form:Mi,onChange:()=>{mn&&Ai(!1)}},nn.createElement(Gt.Z,{wrap:!1,align:"middle",justify:"space-between"},nn.createElement(Jt.Z,null,nn.createElement("div",{className:`${Dt.inputLabel} ${Dt.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),nn.createElement(Jt.Z,null,nn.createElement(Ie.Z,{isShowComponent:(0,he.G5)(),ModalProps:{open:Si,onCancel:()=>{Pr(!1)}},onDataSelect:(dr,Er)=>xr(void 0,[dr,Er],function*(ao,{node:Xi}){const yr=()=>{Mi.setFieldsValue({comment:Xi==null?void 0:Xi.value}),Pr(!1)};if(Mi.getFieldValue("comment")){er.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:yr});return}yr()})},nn.createElement(wt.ZP,{style:{padding:0,height:"auto"},icon:nn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:dr=>{Pr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),nn.createElement(Se.default.Item,{name:"comment"},nn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),nn.createElement(Gt.Z,{wrap:!1,align:"middle",justify:"space-between"},nn.createElement(Jt.Z,null,nn.createElement("div",{className:`${Dt.inputLabel} ${Dt.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),nn.createElement(Jt.Z,null,nn.createElement(Ie.Z,{isShowComponent:(0,he.G5)(),ModalProps:{open:rr,onCancel:()=>{Kr(!1)}},onDataSelect:(dr,Er)=>xr(void 0,[dr,Er],function*(ao,{node:Xi}){const yr=()=>{Mi.setFieldsValue({hidden_comment:Xi==null?void 0:Xi.value}),Kr(!1)};if(Mi.getFieldValue("hidden_comment")){er.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:yr});return}yr()})},nn.createElement(wt.ZP,{style:{padding:0,height:"auto"},icon:nn.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:dr=>{Kr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),nn.createElement(Se.default.Item,{name:"hidden_comment"},nn.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),mn&&nn.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),nn.createElement("div",{className:Dt.tableTitle},"\u5173\u5361\u6210\u7EE9"),nn.createElement(rt.default,{className:Dt.scoreTable,dataSource:Ii.stage_list,rowKey:"challenge_id",pagination:!1,columns:Br,scroll:{x:"max-content"}})))};var Vr=(0,Et.connect)(({shixunHomeworks:Ne,classroomList:Bn})=>({shixunHomeworks:Ne,classroomList:Bn}))(qr),Jr=bt(51139),Ir=bt(25711),Xr=bt(32583),to=bt(65022),ho=bt.n(to),cs={wrap:"wrap___LZOi9",line:"line___oju0L"},no=bt(24802),So=({detailData:Ne})=>{var Bn;return Lt.createElement("div",{className:cs.wrap},Lt.createElement(no.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,no.Uf)(Ne),(Ne==null?void 0:Ne.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},Lt.createElement(no.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,no.Uf)(Ne)}),!!((Bn=Ne==null?void 0:Ne.photos)!=null&&Bn.length)&&Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:cs.line}),Lt.createElement(no._s,{dataSource:Ne==null?void 0:Ne.photos,right:21,col:4,wrapWidth:1140}))))},Yt=bt(54839),ai=bt(59301),Jo=Object.defineProperty,sa=Object.defineProperties,xa=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,Zs=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Vn=(Ne,Bn,_n)=>Bn in Ne?Jo(Ne,Bn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):Ne[Bn]=_n,Qn=(Ne,Bn)=>{for(var _n in Bn||(Bn={}))Zs.call(Bn,_n)&&Vn(Ne,_n,Bn[_n]);if(va)for(var _n of va(Bn))Qr.call(Bn,_n)&&Vn(Ne,_n,Bn[_n]);return Ne},kn=(Ne,Bn)=>sa(Ne,xa(Bn)),rn=(Ne,Bn)=>{var _n={};for(var Ii in Ne)Zs.call(Ne,Ii)&&Bn.indexOf(Ii)<0&&(_n[Ii]=Ne[Ii]);if(Ne!=null&&va)for(var Ii of va(Ne))Bn.indexOf(Ii)<0&&Qr.call(Ne,Ii)&&(_n[Ii]=Ne[Ii]);return _n},hi=(Ne,Bn,_n)=>new Promise((Ii,ni)=>{var mn=er=>{try{Mi(_n.next(er))}catch(On){ni(On)}},Ai=er=>{try{Mi(_n.throw(er))}catch(On){ni(On)}},Mi=er=>er.done?Ii(er.value):Promise.resolve(er.value).then(mn,Ai);Mi((_n=_n.apply(Ne,Bn)).next())});const Ci=Ne=>{var Bn=Ne,{shixunHomeworks:_n,classroomList:Ii,globalSetting:ni,loading:mn,user:Ai,dispatch:Mi}=Bn,er=rn(Bn,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),On,Si,Pr;const[rr,Kr]=(0,Lt.useState)(Qn({},(0,Et.useParams)())),sr=(0,Et.useParams)(),[Br,dr]=(0,Lt.useState)({page:1,page_size:10}),Er=(0,Et.useLocation)(),[]=(0,Lt.useState)([]),[ao,Xi]=(0,Lt.useState)(),yr=(0,Lt.useRef)(),Lo=(0,Lt.useRef)(),[xs,Uo]=(0,Lt.useState)(!1),[jn,Tr]=(0,Lt.useState)(!0),[so,_r]=(0,Lt.useState)(!1),[ns,Oo]=(0,Lt.useState)(!1),{shixunWorkReport:yi}=_n,[Bo,Hr]=(0,Lt.useState)(),[kr,Bi]=(0,Lt.useState)([]),[Po,Pi]=(0,Lt.useState)(),[Xo,ha]=(0,Lt.useState)("all"),fs=(0,he.GJ)(),[ba,Xs]=(0,Lt.useState)(new(re())),[bo,jo]=(0,Lt.useState)(0),[ps,us]=(0,Lt.useState)(!1),[gr,Ue]=(0,Lt.useState)(!1),[qo,Sa]=(0,Lt.useState)(!1),[za,El]=(0,Lt.useState)(""),[ss,Vo]=(0,Lt.useState)(!1),[bs,ia]=(0,Lt.useState)(!0),[ts,Ea]=(0,Lt.useState)(0),Mo=(0,Lt.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),io=(0,Lt.useRef)(),Ko=()=>hi(void 0,null,function*(){(Ai.userInfo.is_teacher||Ai.userInfo.admin)&&(Vo(!0),ia(!1))});(0,Lt.useEffect)(()=>{var Ao;(0,he.Rm)()&&Ii.AssistantObject.practice&&!((Ao=Ii.AssistantObject.practice)!=null&&Ao.can_view)&&Et.history.replace("/403")},[(On=Ii.AssistantObject.practice)==null?void 0:On.can_view]),(0,Lt.useEffect)(()=>{Ko(),console.log("\u6253\u5370\u7684------",yi),io.current=yi==null?void 0:yi.next_student_work_id,El(yi.repeat_minus_score)},[yi,Ai]),(0,Lt.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",yi.work_score),Ea(yi.work_score)},[yi.work_score,za]),(0,Lt.useEffect)(()=>(Mi({type:"globalSetting/footerToggle",payload:!1}),()=>{Mi({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,Lt.useEffect)(()=>{var Ao;if(yi){let zs=[];(Ao=yi==null?void 0:yi.target_test_sets)==null||Ao.map((Ns,Es)=>{var _s;(_s=Ns==null?void 0:Ns.targets)==null||_s.map((Nl,As)=>{var Qs;Nl.name=Ns==null?void 0:Ns.name,Nl.total_target_score=Ns==null?void 0:Ns.total_target_score,Nl.actual_target_score=Ns==null?void 0:Ns.actual_target_score,Nl.rowSpan=As===0?(Qs=Ns==null?void 0:Ns.targets)==null?void 0:Qs.length:0,Nl.order=Es+1,zs.push(Nl)})}),Hr(zs),(0,he.Rm)()&&Mi({type:"classroomList/getAssistantPermissions",payload:{course_id:rr.coursesId}})}},[yi]),(0,Lt.useEffect)(()=>{_n.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(yi==null?void 0:yi.students_count)>0&&!jn&&setTimeout(()=>{yl("all")},800)},[yi==null?void 0:yi.homework_common_id,jn]),(0,Lt.useEffect)(()=>{Kr(Qn({},sr))},[Er.pathname]);const Gi=()=>{document.body.scrollIntoView()},Ms=Ao=>{Br.page=Ao,dr(Qn({},Br)),Gs(Br,Xo)},Gs=(Ao,zs)=>hi(void 0,null,function*(){_r(!0);const Ns=yield(0,le.ZP)(`/api/student_works/${rr==null?void 0:rr.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:kn(Qn({},Ao),{challenge_id:zs=="all"?null:zs})});(Ns==null?void 0:Ns.status)===0&&(Bi(Ns==null?void 0:Ns.list),Pi(Ns==null?void 0:Ns.count)),_r(!1)});function Fa(){return hi(this,null,function*(){Mo.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const Js=()=>{document.querySelectorAll("canvas").forEach(Ao=>{(!Ao.clientWidth||!Ao.clientHeight)&&Ao.remove()})},Ho=()=>{yr.current.offsetHeight>62e3?Oo(!1):Oo(!0)},Ks=Ao=>hi(void 0,null,function*(){const zs=yield(0,Xr.t1)({homeworkId:Ao||rr.homeworkId});Xi(zs==null?void 0:zs.data)}),yl=Ao=>hi(void 0,null,function*(){var zs,Ns,Es,_s;let Nl=0,As;As=Tt.default.info({width:460,title:ai.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",ai.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:ai.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ai.createElement("span",{className:"c-blue"},Nl+1),"/",Ao!=="all"?1:yi==null?void 0:yi.students_count,ai.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:ne.modal,onOk:()=>{}});const Qs={margin:[0,0],filename:`${yi!=null&&yi.student_id&&(yi==null?void 0:yi.student_id)!="--"?yi==null?void 0:yi.student_id:""}${yi.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},Ss=ba.folder(yi==null?void 0:yi.shixun_name);function Gr(ul){return hi(this,null,function*(){yield Ks(ul||io.current);const Ds=yield Mi({type:"shixunHomeworks/getShixunWorkReport",payload:Qn({homeworkId:ul||io.current},Mo.current||{})});io.current=Ds==null?void 0:Ds.next_student_work_id,Gi(),Nl++,setTimeout(()=>hi(this,null,function*(){var Su,Ku,$l,fr;Js();const ol=Ss.folder(`${Ds==null?void 0:Ds.group_name}`).folder(`${Ds!=null&&Ds.student_id&&(Ds==null?void 0:Ds.student_id)!="--"?Ds.student_id+"+":""}${Ds==null?void 0:Ds.username}`),Fl=document.querySelector("#export-all").children;let au=ho()();for(let Ja=0;Ja<Fl.length;Ja++)yield au.set(Qs).from(Fl[Ja]).toContainer().toCanvas().toPdf().get("pdf").then(Eo=>hi(this,null,function*(){Ja<Fl.length-1&&(yield Eo.addPage())}));if(ol.file(`${Ds!=null&&Ds.student_id&&(Ds==null?void 0:Ds.student_id)!="--"?Ds.student_id+"+":""}${Ds==null?void 0:Ds.username}.pdf`,au.output("blob")),((Su=Ds==null?void 0:Ds.shixun_detail)==null?void 0:Su.length)>0&&(($l=(Ku=Ds==null?void 0:Ds.shixun_detail)==null?void 0:Ku.filter(Ja=>{var Eo;return((Eo=Ja==null?void 0:Ja.game_codes)==null?void 0:Eo.length)>0}))==null?void 0:$l.length)>0){const Ja=ol.folder("\u4EE3\u7801\u6587\u4EF6");(fr=Ds==null?void 0:Ds.shixun_detail)==null||fr.map((Eo,ja)=>{var qa,lu;if(((qa=Eo==null?void 0:Eo.game_codes)==null?void 0:qa.length)>0){const Yl=Ja.folder(`\u7B2C${ja+1}\u5173-${Eo.subject}-${Eo.id}`);(lu=Eo==null?void 0:Eo.game_codes)==null||lu.map(Pu=>{Yl.file(`${Pu.filename}.txt`,Pu==null?void 0:Pu.content)})}})}As.update({content:ai.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",ai.createElement("span",{className:"c-blue"},Nl),"/",Ds==null?void 0:Ds.students_count,ai.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Nl==(Ds==null?void 0:Ds.students_count)?(As.destroy(),wl()):Gr()}),2200)})}if(Ao!=="all"||(yi==null?void 0:yi.students_count)<2){Js(),Gi();const ul=Lo.current.children;let Ds=ho()();const Ku=Ss.folder(`${yi==null?void 0:yi.group_name}`).folder(`${yi!=null&&yi.student_id&&(yi==null?void 0:yi.student_id)!="--"?(yi==null?void 0:yi.student_id)+"+":""}${yi==null?void 0:yi.username}`);for(let $l=0;$l<ul.length;$l++)yield Ds.set(Qs).from(ul[$l]).toContainer().toCanvas().toPdf().get("pdf").then(fr=>hi(void 0,null,function*(){$l<ul.length-1&&(yield fr.addPage())}));if(Uo(!1),Ku.file(`${yi!=null&&yi.student_id&&(yi==null?void 0:yi.student_id)!="--"?(yi==null?void 0:yi.student_id)+"+":""}${yi.username}.pdf`,Ds.output("blob"),{base64:!1}),((zs=yi==null?void 0:yi.shixun_detail)==null?void 0:zs.length)>0&&((Es=(Ns=yi==null?void 0:yi.shixun_detail)==null?void 0:Ns.filter($l=>{var fr;return((fr=$l==null?void 0:$l.game_codes)==null?void 0:fr.length)>0}))==null?void 0:Es.length)>0){const $l=Ku.folder("\u4EE3\u7801\u6587\u4EF6");(_s=yi==null?void 0:yi.shixun_detail)==null||_s.map((fr,Xa)=>{var ol,Fl;if(((ol=fr==null?void 0:fr.game_codes)==null?void 0:ol.length)>0){const au=$l.folder(`\u7B2C${Xa+1}\u5173-${fr.subject}-${fr.id}`);(Fl=fr==null?void 0:fr.game_codes)==null||Fl.map(Ja=>{au.file(`${Ja.filename}.txt`,Ja==null?void 0:Ja.content)})}})}As.destroy(),wl();return}else Gr(yi==null?void 0:yi.first_student_work_id)}),wl=()=>{ba.generateAsync({type:"blob"}).then(function(Ao){console.log(yi,"shixunWorkReport");const zs=document.createElement("a");zs.href=window.URL.createObjectURL(Ao),zs.download=(yi==null?void 0:yi.shixun_name)+".zip",document.body.appendChild(zs);const Ns=document.createEvent("MouseEvents");Ns.initEvent("click",!1,!1),zs.dispatchEvent(Ns),document.body.removeChild(zs),Xs(new(re()))}),Oo(!1)};(0,Lt.useEffect)(()=>{Dl()},[rr.homeworkId]);const Dl=()=>hi(void 0,null,function*(){Tr(!0),yield Mi({type:"shixunHomeworks/getShixunWorkReport",payload:Qn(Qn({},rr),Mo.current||{})}),Ks(),(0,he.GJ)()&&Fa(),Tr(!1)}),Bs=[{title:"\u5173\u5361",dataIndex:"name",render:(Ao,zs,Ns)=>Ns+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Ao,zs,Ns)=>ai.createElement("div",null,Ao,zs.complete_status===4&&ai.createElement(pe.vA,{status:zs.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Ao,zs,Ns)=>Ao||"- -"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",render:Ao=>Ao?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(Ao,zs)=>ai.createElement("div",null,ai.createElement("span",{style:{color:parseFloat(zs.myself_experience)!==parseFloat(Ao)?"red":"green"}},zs.myself_experience),"/",Ao)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Ao,zs)=>ai.createElement("div",null,ai.createElement("span",{style:{color:parseFloat(zs.game_score_full)!==parseFloat(Ao)?"red":"green"}},Ao),"/",zs.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Ao,zs)=>fs?ai.createElement(Ve,{max:zs.game_score_full,defaultValue:parseFloat(Ao),onBlur:Ns=>hi(void 0,null,function*(){var Es;if((0,he.Rm)()&&!((Es=Ii.AssistantObject.practice)!=null&&Es.can_appraise)){ee.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 _s=yield Mi({type:"shixunHomeworks/changeScore",payload:{categoryId:rr.homeworkId,type:"report",score:Ns,challenge_id:zs.challenge_id}});Gs({page:1,page_size:10},"all"),yield Mi({type:"shixunHomeworks/getShixunWorkReport",payload:Qn(Qn({},rr),Mo.current||{})}),_s.status===0&&ee.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ao}];let ui=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Ao,zs,Ns)=>({children:Ao,props:{rowSpan:zs.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Ao,zs,Ns)=>({children:Ao,props:{rowSpan:zs.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(Ao,zs,Ns)=>ai.createElement("div",null,ai.createElement("span",{style:{color:parseFloat(zs.actual_test_score)!==parseFloat(Ao)?"red":"green"}},zs.actual_test_score),"/",Ao)},{title:"\u6307\u6807\u603B\u5206",render:(Ao,zs,Ns)=>({children:ai.createElement("div",null,ai.createElement("span",{style:{color:parseFloat(zs.actual_target_score)!==parseFloat(Ao)?"red":"green"}},zs.actual_target_score),"/",Ao),props:{rowSpan:zs.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Za=[{title:"\u5173\u5361",dataIndex:"challenge_num",width:220},{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"]},{title:"\u8C03\u5206\u524D",dataIndex:"old_score"},{title:"\u8C03\u5206\u540E",dataIndex:"score"},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",render:Ao=>ai.createElement("span",null,Ao?se()(Ao).format("YYYY-MM-DD HH:mm"):"--")}],mh=Ao=>{Mi({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Ao==="next"?Et.history.push(`/classrooms/${rr.coursesId}/shixun_homework/${rr.categoryId}/${yi==null?void 0:yi.next_student_work_id}/comment`):Et.history.push(`/classrooms/${rr.coursesId}/shixun_homework/${rr.categoryId}/${yi==null?void 0:yi.pre_student_work_id}/comment`)},200)},ju=Ao=>{El(""),Ao.target.value&&(console.log("\u8FDB\u6765",yi),Ao.target.value=Ao.target.value>yi.repeat_setting_score?yi.repeat_setting_score:Ao.target.value,El(Ao.target.value))},su=()=>hi(void 0,null,function*(){const Ao=yield(0,le.ZP)(`/api/student_works/${yi==null?void 0:yi.work_id}/update_repeat_score`,{method:"put",body:{score:za}});yield Mi({type:"shixunHomeworks/getShixunWorkReport",payload:Qn(Qn({},rr),Mo.current||{})}),Ao.status===0&&ee.ZP.info("\u64CD\u4F5C\u6210\u529F")});return ai.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},ai.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},ai.createElement(Ct.Z,{loading:mn["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},ai.createElement("div",{className:"edu-container"},yi.course_id&&ai.createElement("section",{className:"animated fadeIn"},ai.createElement("aside",{className:""},yi.category&&ai.createElement(Wt.Z,{separator:">"},ai.createElement(Wt.Z.Item,null,ai.createElement(Et.Link,{to:`/classrooms/${yi.course_id}/shixun_homework`},yi.course_name)),ai.createElement(Wt.Z.Item,null,ai.createElement(Et.Link,{to:`/classrooms/${yi.course_id}/shixun_homework/${yi.category.main?"":yi.category.category_id}`},yi.category.category_name)),ai.createElement(Wt.Z.Item,null,ai.createElement(Et.Link,{to:`/classrooms/${yi.course_id}/shixun_homework/${yi.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),ai.createElement(Wt.Z.Item,null,yi.username))),ai.createElement("aside",{className:[ne.title1,"mt20"].join(" ")},ai.createElement(Gt.Z,{align:"middle"},ai.createElement(Jt.Z,{flex:1},ai.createElement(Et.Link,{to:`/classrooms/${yi.course_id}/shixun_homework/${yi.homework_common_id}/detail`},ai.createElement(yt.Z,{className:"font16 c-black"})),ai.createElement("strong",{className:"font20 ml5"},yi==null?void 0:yi.homework_name),ai.createElement(pe.VV,{temporary:!0,status:yi.homework_status})),ai.createElement(Jt.Z,{className:ne.title1_right},yi.view_tpi&&ai.createElement(wt.ZP,{onClick:()=>{var Ao,zs;(0,pe.xg)(`/tasks/${yi==null?void 0:yi.course_id}/${yi==null?void 0:yi.homework_common_id}/${(zs=(Ao=yi==null?void 0:yi.shixun_detail)==null?void 0:Ao[0])==null?void 0:zs.game_identifier}`)}},ai.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,he.GJ)()&&yi.homework_end===!1&&!!yi.myshixun_id&&ai.createElement(wt.ZP,{className:"ml10",onClick:()=>hi(void 0,null,function*(){yield Mi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:yi.myshixun_identifier},homework_common_id:sr.categoryId}})})},ai.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),ai.createElement(wt.ZP,{className:"ml10",onClick:()=>{var Ao;if((0,he.Rm)()&&!((Ao=Ii.AssistantObject.practice)!=null&&Ao.can_download)){ee.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}yl("")},loading:xs},ai.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,he.GJ)()&&(yi==null?void 0:yi.students_count)>1&&ai.createElement(wt.ZP,{className:"ml10",onClick:()=>{var Ao;if((0,he.Rm)()&&!((Ao=Ii.AssistantObject.practice)!=null&&Ao.can_download)){ee.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}Tt.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:ai.createElement(et.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:ai.createElement(et.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{yl("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,Yt.jj)({categoryId:rr.categoryId,coursesId:rr.coursesId},"shixun_report")}}})}},ai.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),ai.createElement("aside",{className:"mt30 relative"})),ai.createElement("aside",{className:"edu-container bg-white",ref:yr},ai.createElement("div",{id:"export-all",ref:Lo},ai.createElement("div",{id:"export-all-1"},ai.createElement("div",{className:ne.title},ai.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),ai.createElement("div",null,(0,he.GJ)()&&ai.createElement(wt.ZP,{className:"mr20",type:"primary",onClick:()=>{Mi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:yi.user_id,data:Qn({},yi)},fn:()=>Gs({page:1,page_size:10},"all")}})}},ai.createElement(Mt.Z,null),yi.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),ai.createElement(tt.Z,{style:{marginTop:0}}),ai.createElement(Gt.Z,{className:"pl30 pr30"},ai.createElement(Jt.Z,null,ai.createElement("img",{className:ne.userPic,src:`${ae.Z.IMG_SERVER}/images/${yi.image_url}`,alt:yi.username})),ai.createElement(Jt.Z,null,ai.createElement("span",{className:"font16 ml40"},yi.username),ai.createElement(pe.vA,{status:yi.compelete_status}),ai.createElement("ul",{className:ne.userInfo},ai.createElement("li",null,"\u5B66\u53F7\uFF1A",yi.student_id||"--"),ai.createElement("li",null,"\u5206\u73ED\uFF1A",yi.group_name||"--"),ai.createElement("br",null),ai.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",ai.createElement("span",{className:"c-red"},yi.complete_count),"/",ai.createElement("span",{className:"c-red"},yi.challenges_count)),ai.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",ai.createElement("span",{className:"c-red"},yi.current_complete_count||"-"),"/",ai.createElement("span",{className:"c-red"},yi.challenges_count)),ai.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",yi&&yi.efficiency===null?"--":yi&&yi.efficiency),ai.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",yi&&yi.max_efficiency===null?"--":yi&&yi.max_efficiency))),ai.createElement("ul",{className:[ne.listItem,"mt10"].join(" ")},ai.createElement("li",null,ai.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),ai.createElement("div",{className:"c-light-black mt20"},yi&&yi.passed_time===null||yi&&yi.passed_time==="--"?"--":se()(yi&&yi.passed_time).format("YYYY-MM-DD HH:mm"))),ai.createElement("li",null,ai.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",ai.createElement("i",{onClick:Ao=>{Ao.stopPropagation(),Ao.preventDefault(),us(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ai.createElement("div",{className:"c-light-black mt20"},yi==null?void 0:yi.human_training_time_rules)),ai.createElement("li",null,ai.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",ai.createElement("i",{onClick:Ao=>{Ao.stopPropagation(),Ao.preventDefault(),Ue(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),ai.createElement("div",{className:"c-light-black mt20"},yi.time_consuming)),ai.createElement("li",null,ai.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),ai.createElement("div",{className:"mt20"},yi.evaluate_count)),(yi==null?void 0:yi.eff_score_full)&&ai.createElement(ai.Fragment,null,ai.createElement("li",null,ai.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),ai.createElement("div",{className:"mt20"},ai.createElement("span",{className:"c-orange"},yi.challenge_score),"/",ai.createElement("span",{className:"c-light-black"},yi.challenge_score_full))),ai.createElement("li",null,ai.createElement("strong",null,"\u6548\u7387\u5206"),ai.createElement("div",{className:"mt20"},ai.createElement("span",{className:"c-orange"},yi.eff_score),"/",ai.createElement("span",{className:"c-light-black"},yi.eff_score_full)))),(yi==null?void 0:yi.have_repeat)&&(yi==null?void 0:yi.repeat_minus_score)!==0&&ai.createElement("li",{style:{position:"relative"}},ai.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},ai.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ai.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},yi!=null&&yi.review_rate?ai.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(yi!=null&&yi.review_id&&ss)localStorage.setItem("studentDetial",window.location.pathname),Et.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${rr.categoryId}/review_detail/${yi==null?void 0:yi.review_id}`});else return}},yi.review_rate.toFixed(1),"%"):ai.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),ss?ai.createElement("div",{className:"mt20"},ai.createElement(lt.default,{style:{width:"45px",height:"22px"},value:za,onChange:Ao=>{ju(Ao)},onBlur:su,disabled:bs})," / ",yi==null?void 0:yi.repeat_setting_score):ai.createElement("div",{className:"mt20"},yi==null?void 0:yi.repeat_minus_score," / ",yi==null?void 0:yi.repeat_setting_score)),console.log("sssssssssssssssssssssss",yi==null?void 0:yi.have_repeat,yi==null?void 0:yi.repeat_minus_score),(yi==null?void 0:yi.have_repeat)&&(yi==null?void 0:yi.repeat_minus_score)===0&&ai.createElement("li",null,ai.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ai.createElement("div",{className:"mt20"}," - -")),!(yi!=null&&yi.have_repeat)&&ai.createElement("li",null,ai.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),ai.createElement("div",{className:"mt20"}," - -")),ai.createElement("li",null,ai.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),ai.createElement("div",{className:"mt20"},ai.createElement("span",null,yi.late_penalty||"- -"))),ai.createElement("li",null,ai.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),ai.createElement("div",{className:"mt20"},ai.createElement("span",{className:"c-orange"},ts),"/",ai.createElement("span",{className:"c-light-black"},yi.all_work_score))),ai.createElement("li",null,ai.createElement("strong",null,"\u603B\u8BC4"),ai.createElement("div",{className:"mt20"},ai.createElement("span",{className:"c-orange"},yi.overall_appraisal))))),ai.createElement(tt.Z,{style:{margin:0}}),(yi.work_comment_hidden||yi.work_comment)&&ai.createElement("div",null,ai.createElement(Gt.Z,{align:"middle"},ai.createElement(Jt.Z,{flex:1},ai.createElement("h1",{className:ne.title},"\u70B9\u8BC4\u5185\u5BB9")),ai.createElement(Jt.Z,{className:"pr30"},(0,he.GJ)()&&ai.createElement(wt.ZP,{onClick:()=>hi(void 0,null,function*(){Tt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:ai.createElement(jt.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return hi(this,null,function*(){(yield(0,Xr.gZ)({comment_id:yi.comment_id,homeworkId:rr.homeworkId})).status===0&&(ee.ZP.success("\u5220\u9664\u6210\u529F"),Mi({type:"shixunHomeworks/getShixunWorkReport",payload:Qn(Qn({},rr),Mo.current||{})}))})}})})},ai.createElement(Rt.Z,null),"\u5220\u9664"))),ai.createElement(tt.Z,{style:{margin:0}}),yi.work_comment&&ai.createElement("aside",{className:"pl30 pr30 mt20"},ai.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ai.createElement("br",null),ai.createElement(Ir.Z,{value:yi.work_comment})),yi.work_comment_hidden&&ai.createElement("aside",{className:"pl30 pr30 mt20"},ai.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),ai.createElement("br",null),ai.createElement(Ir.Z,{value:yi.work_comment_hidden}))),(yi==null?void 0:yi.action_analysis)&&ai.createElement(So,{detailData:yi}),ai.createElement("div",{className:ne.score},ai.createElement("h1",{className:ne.title},"\u9636\u6BB5\u6210\u7EE9"),(yi==null?void 0:yi.adjust_review_score_count)>0&&(0,he.GJ)()&&ai.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Sa(!0),Gs({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",yi==null?void 0:yi.adjust_review_score_count,"\u6B21\uFF09")),ai.createElement("aside",{className:"pl30 pr30"},ai.createElement(rt.default,{dataSource:yi.stage_list,rowKey:Ao=>Ao==null?void 0:Ao.challenge_id,pagination:!1,columns:Bs})),((Si=yi==null?void 0:yi.target_test_sets)==null?void 0:Si.length)>0&&ai.createElement("div",null,ai.createElement("h1",{className:ne.title},"\u6307\u6807\u6210\u7EE9"),ai.createElement("aside",{className:"pl30 pr30"},ai.createElement(rt.default,{dataSource:Bo,rowKey:Ao=>Ao==null?void 0:Ao.challenge_id,pagination:!1,bordered:!0,columns:ui}))),(yi==null?void 0:yi.work_description)&&ai.createElement(ai.Fragment,null,ai.createElement("h1",{className:ne.title},"\u4E2A\u4EBA\u603B\u7ED3"),ai.createElement("aside",{className:"pl30 pr30"},ai.createElement(Ir.Z,{value:yi==null?void 0:yi.work_description}))),ai.createElement("h1",{className:ne.title},"\u56FE\u5F62\u7EDF\u8BA1"),ai.createElement($e,{data:ao}),ai.createElement("h1",{className:ne.title},"\u5B9E\u8BAD\u8BE6\u60C5")),ai.createElement(Zt,{autoHeight:ns}))),(0,he.GJ)()&&ai.createElement("aside",{className:`${ne.footerBar} ${xs?ne.footerBarStatic:""}`},ai.createElement("aside",{className:"edu-container"},ai.createElement(Gt.Z,{align:"middle"},ai.createElement(Jt.Z,{flex:"1"},ai.createElement(Et.Link,{className:ne.exitComment,to:`/classrooms/${rr.coursesId}/shixun_homework/${rr.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),ai.createElement(Jt.Z,{flex:"1",className:"tr"},ai.createElement(wt.ZP,{type:"default",disabled:!(yi!=null&&yi.pre_student_work_id),onClick:()=>mh()},"\u4E0A\u4E00\u4E2A"),ai.createElement(wt.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(yi!=null&&yi.next_student_work_id),onClick:()=>mh("next")},"\u4E0B\u4E00\u4E2A"),(0,he.GJ)()&&ai.createElement(wt.ZP,{type:"primary",onClick:()=>hi(void 0,null,function*(){Mi({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:yi.user_id,data:Qn({},yi)},fn:()=>Gs({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),ai.createElement(Vr,null),ai.createElement(Jr.Z,null),ai.createElement(Tt.default,{open:ps,width:860,centered:!0,onCancel:()=>{us(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},ai.createElement("div",{style:{color:"#333333",fontWeight:400}},ai.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),ai.createElement("br",null),ai.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"),ai.createElement("br",null),ai.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"),ai.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 "),ai.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")),ai.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ai.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),ai.createElement("br",null),ai.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 "),ai.createElement("br",null),ai.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"),ai.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 "),ai.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"),ai.createElement("br",null),ai.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")),ai.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ai.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),ai.createElement("br",null),ai.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")),ai.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},ai.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),ai.createElement("br",null),ai.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"))),ai.createElement(Tt.default,{open:gr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{Ue(!1)},width:600},ai.createElement("div",{style:{fontWeight:400,color:"#333333"}},ai.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ai.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"),ai.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ai.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"),ai.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",ai.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"))),ai.createElement(Tt.default,{open:qo,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{ha("all"),Sa(!1)},destroyOnClose:!0,width:900},ai.createElement("div",{style:{fontWeight:400,color:"#333333"}},ai.createElement("div",null,ai.createElement("span",null,"\u5173\u5361\uFF1A"),ai.createElement(ht.default,{style:{width:300},value:Xo,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Ao=>hi(void 0,null,function*(){ha(Ao),Gs({page:1,page_size:10},Ao)})},ai.createElement(ht.default.Option,{value:"all"}," \u5168\u90E8 "),(Pr=yi==null?void 0:yi.stage_list)==null?void 0:Pr.map((Ao,zs)=>ai.createElement(ht.default.Option,{key:zs,value:Ao==null?void 0:Ao.challenge_id},"\u7B2C",(0,pe.EM)(zs+1),"\u5173")))),ai.createElement("div",{className:"mt20"},ai.createElement(rt.default,{dataSource:kr,rowKey:Ao=>Ao==null?void 0:Ao.id,pagination:!1,columns:Za,loading:so})),ai.createElement("div",{className:ne.footer},ai.createElement("div",null,ai.createElement("span",{style:{color:"#656F87"}},"\u5171",ai.createElement("span",{className:"c-light-primary"},Po),"\u6761\u6570\u636E")),ai.createElement(dt.Z,{defaultCurrent:1,defaultPageSize:10,current:(Br==null?void 0:Br.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:Po,onChange:Ms})))))};var bn=(0,Et.connect)(({shixunHomeworks:Ne,classroomList:Bn,loading:_n,globalSetting:Ii,user:ni})=>({shixunHomeworks:Ne,classroomList:Bn,globalSetting:Ii,loading:_n.effects,user:ni}))(Ci)},51139:function(di,Pn,bt){"use strict";var Lt=bt(43418),ge=bt(8591),se=bt(70635),De=bt(42203),re=bt(2119),le=bt(59301),Et=(ee,Ct,Wt)=>new Promise((Gt,Jt)=>{var wt=lt=>{try{tt(Wt.next(lt))}catch(rt){Jt(rt)}},et=lt=>{try{tt(Wt.throw(lt))}catch(rt){Jt(rt)}},tt=lt=>lt.done?Gt(lt.value):Promise.resolve(lt.value).then(wt,et);tt((Wt=Wt.apply(ee,Ct)).next())});const Tt=({shixunHomeworks:ee,classroomList:Ct,dispatch:Wt})=>{const Gt=(0,De.useParams)();return le.createElement(Lt.default,{centered:!0,title:"\u63D0\u793A",open:ee.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Et(void 0,null,function*(){var Jt,wt,et,tt;if((0,re.Rm)()&&!((Jt=Ct.AssistantObject.practice)!=null&&Jt.can_redo)){ge.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 lt=yield(0,se.ZP)(`/api/myshixuns/${ee.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:Gt.coursesId,homework_common_id:ee.actionTabs.homework_common_id}});if(lt.shixun_identifier){ge.ZP.success("\u64CD\u4F5C\u6210\u529F"),Wt({type:"shixunHomeworks/setActionTabs",payload:{}});const rt=(et=(wt=lt==null?void 0:lt.new_works)==null?void 0:wt.find(ht=>`${ht.homework_common_id}`===Gt.categoryId))==null?void 0:et.id;if((0,re.Rm)()&&!((tt=Ct.AssistantObject.practice)!=null&&tt.can_view))return;De.history.replace(`/classrooms/${Gt.coursesId}/shixun_homework/${Gt.categoryId}/${rt}/comment`)}}),onCancel:()=>{Wt({type:"shixunHomeworks/setActionTabs",payload:{}})}},le.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),le.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};Pn.Z=(0,De.connect)(({shixunHomeworks:ee,classroomList:Ct})=>({shixunHomeworks:ee,classroomList:Ct}))(Tt)},54839:function(di,Pn,bt){"use strict";bt.d(Pn,{AD:function(){return $e},D9:function(){return ie},Hp:function(){return jt},IM:function(){return Fn},Iy:function(){return ae},KM:function(){return ji},MJ:function(){return Rt},Ne:function(){return be},ON:function(){return pi},Uj:function(){return sn},VY:function(){return In},YO:function(){return bi},YX:function(){return $n},Zn:function(){return et},_g:function(){return dt},_k:function(){return _e},c6:function(){return Ke},cr:function(){return tt},eV:function(){return Vt},fi:function(){return lt},gh:function(){return Te},hS:function(){return Mn},iA:function(){return rt},j6:function(){return yt},je:function(){return Ve},jj:function(){return Mt},kS:function(){return Xn},o6:function(){return ne},pO:function(){return Li},rQ:function(){return Ge},sA:function(){return pe},xm:function(){return xe},xo:function(){return Xe},y8:function(){return Oe},yd:function(){return ht}});var Lt=bt(16597),ge=bt(42203),se=bt(58130),De=bt(8591),re=bt(10148),le=Object.defineProperty,Et=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Ct=(ve,hn,Ae)=>hn in ve?le(ve,hn,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):ve[hn]=Ae,Wt=(ve,hn)=>{for(var Ae in hn||(hn={}))Tt.call(hn,Ae)&&Ct(ve,Ae,hn[Ae]);if(Et)for(var Ae of Et(hn))ee.call(hn,Ae)&&Ct(ve,Ae,hn[Ae]);return ve},Gt=(ve,hn,Ae)=>new Promise((Ot,Ft)=>{var Kt=ce=>{try{je(Ae.next(ce))}catch(Be){Ft(Be)}},Ee=ce=>{try{je(Ae.throw(ce))}catch(Be){Ft(Be)}},je=ce=>ce.done?Ot(ce.value):Promise.resolve(ce.value).then(Kt,Ee);je((Ae=Ae.apply(ve,hn)).next())});const Jt=()=>{(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},wt=()=>{(0,ge.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},et=ve=>Gt(void 0,null,function*(){Jt(),(yield(0,Lt.YR)(Wt({},ve))).status===0&&(yield(0,se.QH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/courses/${ve.coursesId}/export_couser_info.json`,query:ve}))),wt()}),tt=ve=>Gt(void 0,null,function*(){const hn=yield(0,Lt.yS)(Wt({},ve));if(hn.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_member_act_score`);else{if(hn.status===-2)return hn;hn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_member_act_score`))}}),lt=ve=>Gt(void 0,null,function*(){const hn=yield(0,Lt.W0)(Wt({},ve));if(hn.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_total_score`);else{if(hn.status===-4)return hn;hn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_total_score`))}}),rt=ve=>Gt(void 0,null,function*(){const hn=yield(0,Lt.Nl)(Wt({},ve));if(hn.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_total_exercise_and_other`);else{if(hn.status===-4)return hn;hn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_total_exercise_and_other`))}}),ht=ve=>Gt(void 0,null,function*(){const hn=yield(0,Lt.IU)(Wt({},ve));if(hn.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/export_star_user`);else{if(hn.status===-4)return hn;hn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/export_star_user`))}}),dt=ve=>Gt(void 0,null,function*(){const hn=yield(0,Lt.td)(Wt({},ve));if(hn.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_total_exercise_and_other`);else{if(hn.status===-2)return hn;if(hn.status===-3)(0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_total_exercise_and_other`);else if(hn.status===-4)return hn}}),yt=ve=>Gt(void 0,null,function*(){const hn=yield(0,Lt.QX)(Wt({},ve));if(hn.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_total_homework`);else{if(hn.status===-4)return hn;hn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/course_total_homework`))}}),Mt=(ve,hn)=>Gt(void 0,null,function*(){const Ae=yield(0,Lt.o_)(Wt({},ve));Ae.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/${hn}`)):Ae.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/${hn}`))}),jt=(ve,hn)=>Gt(void 0,null,function*(){const Ae=yield(0,Lt.ZL)(Wt({},ve));Ae.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/${hn}`)):Ae.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/${hn}`))}),Rt=(ve,hn)=>Gt(void 0,null,function*(){const Ae=yield(0,Lt.vV)(Wt({},ve));Ae.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/${hn}`)):Ae.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/${hn}`))}),ae=(ve,hn)=>Gt(void 0,null,function*(){const Ae=yield(0,Lt.aP)(Wt({},ve));Ae.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/${hn}`)):Ae.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/${hn}`))}),he=ve=>Gt(void 0,null,function*(){Jt(),(yield exportCourseWorkListAppendix(Wt({},ve))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${ve.categoryId}/works_list.zip`,query:ve}))),wt()}),pe=ve=>Gt(void 0,null,function*(){Jt(),yield(0,se.QH)("",re.Z.API_SERVER+`/api/polls/${ve.categoryId}/commit_result.xlsx`),wt()}),Te=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/courses/${ve.coursesId}/attendances/export_xlsx_data.xlsx`,query:ve}))}),ne=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/courses/${ve.coursesId}/video_study_statics.xlsx`,query:ve}))}),Ke=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/courses/${ve.coursesId}/export_video_study.xlsx`,query:ve}))}),Vt=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/courses/${ve.coursesId}/export_course_students_info.xlsx`,query:ve}))}),$e=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+"/api/school_manages/students.xlsx",query:ve}))}),Ge=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+"/api/item_banks/export.xlsx",query:ve}))}),Oe=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:ve}))}),Ve=ve=>Gt(void 0,null,function*(){const hn=yield(0,Lt.Uy)(Wt({},ve));hn.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/exercise_score,export_exercise_users`)):hn.status===-3&&((0,ge.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ge.history.push(`/classrooms/${ve.coursesId}/exportlist/exercise_score,export_exercise_users`))}),_e=ve=>Gt(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/export_records/${ve.id}.xlsx`,query:ve}))}),xe=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:ve}))}),ie=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/courses/${ve==null?void 0:ve.coursesId}/${ve.menuKey}_statistic.xlsx?${ve.checkedList.map(hn=>`course_group_id[]=${hn}`).join("&")}`,query:ve}))}),be=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/ec_years/${ve==null?void 0:ve.ec_year_id}/ec_training_objectives.xlsx`,query:ve}))}),Fn=ve=>Gt(void 0,null,function*(){yield(0,se.FH)(ve==null?void 0:ve.name,(0,se.NY)({url:re.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:ve}))}),Mn=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/ec_years/${ve==null?void 0:ve.ec_year_id}/ec_courses.xlsx`,query:ve}))}),Xe=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/ec_years/${ve==null?void 0:ve.ec_year_id}/ec_graduation_requirements.xlsx`,query:ve}))}),In=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:ve}))}),Xn=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:ve}))}),pi=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/examination_banks/${ve.id}.json`,query:ve}))}),$n=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/exercises/${ve.categoryId}.json`,query:ve}))}),bi=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/polls/${ve==null?void 0:ve.id}/commit_result.json`,query:ve}))}),sn=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+"/api/paths/get_task_pass.json",query:ve}))}),Li=(ve,hn)=>Gt(void 0,null,function*(){yield(0,se.FH)(hn||"",(0,se.NY)({url:re.Z.API_SERVER+`/api/exercises/${ve==null?void 0:ve.exercise_id}/consult_exercise.json`,query:ve}))}),ji=ve=>Gt(void 0,null,function*(){yield(0,se.FH)("",(0,se.NY)({url:re.Z.API_SERVER+`/api/competitions/${ve==null?void 0:ve.identifier}/competition_commit_records/member_works.xlsx`,query:ve}))})},35427:function(di,Pn,bt){"use strict";bt.d(Pn,{U:function(){return ee}});var Lt=bt(59301),ge=Object.defineProperty,se=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,le=(Ct,Wt,Gt)=>Wt in Ct?ge(Ct,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Ct[Wt]=Gt,Et=(Ct,Wt)=>{for(var Gt in Wt||(Wt={}))De.call(Wt,Gt)&&le(Ct,Gt,Wt[Gt]);if(se)for(var Gt of se(Wt))re.call(Wt,Gt)&&le(Ct,Gt,Wt[Gt]);return Ct},Tt=(Ct,Wt,Gt)=>new Promise((Jt,wt)=>{var et=rt=>{try{lt(Gt.next(rt))}catch(ht){wt(ht)}},tt=rt=>{try{lt(Gt.throw(rt))}catch(ht){wt(ht)}},lt=rt=>rt.done?Jt(rt.value):Promise.resolve(rt.value).then(et,tt);lt((Gt=Gt.apply(Ct,Wt)).next())});function ee(Ct,Wt){const[Gt,Jt]=(0,Lt.useState)(Wt),[wt,et]=(0,Lt.useState)(!1),[tt,lt]=(0,Lt.useState)();return[Gt,wt,(ht,dt=!1)=>Tt(this,null,function*(){const yt=dt?Wt:Et(Et({},Gt),ht);et(!0),Jt(yt);const Mt=yield Ct(yt);return et(!1),lt(Mt),Mt}),tt]}},31087:function(di,Pn,bt){"use strict";bt.d(Pn,{AL:function(){return yt},Iy:function(){return Wt},Qv:function(){return wt},ez:function(){return dt},jb:function(){return Gt}});var Lt=bt(32834),ge=bt.n(Lt),se=bt(11690),De=bt.n(se);let re=1;function le(he,pe){const Te=he.match(/^(\s+)(?:```)/);if(Te===null)return pe;const ne=Te[1];return pe.split(`
`).map(Ke=>{const Vt=Ke.match(/^\s+/);if(Vt===null)return Ke;const[$e]=Vt;return $e.length>=ne.length?Ke.slice(ne.length):Ke}).join(`
`)}let Et=[],Tt=["<ul>"];const ee=new(ge()).Renderer,Ct=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Wt(){Et.length=0,Tt=["<ul>"]}const Gt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Jt(he,pe,Te,ne){if(pe>=he.length||he[pe].level<=Te)return pe;var Ke=he[pe];ne.push("<li><a href='#"+re+Ke.anchor+"'>"+Ke.text+"</a>"),pe++;var Vt=[];return pe=Jt(he,pe,Ke.level,Vt),Vt.length>0&&(ne.push("<ul>"),Vt.forEach(function($e){ne.push($e)}),ne.push("</ul>")),ne.push("</li>"),pe=Jt(he,pe,Te,ne),pe}function wt(){return Jt(Et,0,0,Tt),Tt.push("</ul>"),Tt.join("")}const et={heading(he){const pe=Ct.exec(he);if(re+=1,pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},fences(he){const pe=this.rules.block.fences.exec(he);if(pe){const Te=pe[0];let ne=le(Te,pe[3]||"");const Ke=pe[2]?pe[2].trim():pe[2];if(["latex","katex","math"].indexOf(Ke)>=0){const Vt=rt(),$e=ne;ne=Vt,ht[Vt]={type:"block",expression:$e}}return{type:"code",raw:Te,lang:Ke,text:ne}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let lt=0;const rt=()=>`__special_katext_id_${lt++}__`;let ht={};function dt(){return ht}function yt(){lt=0,ht={}}function Mt(he){return he=he.replace(tt,(pe,Te)=>{const ne=rt();return ht[ne]={type:"inline",expression:Te},ne}),he}const jt=ee.listitem;ee.listitem=function(he){return jt(Mt(he))};const Rt=ee.paragraph;ee.paragraph=function(he){return Rt(Mt(he))};const ae=ee.tablecell;ee.tablecell=function(he,pe){return ae(Mt(he),pe)},ee.code=function(he,pe,Te){const ne=(pe||"").match(/\S*/)[0];return ne?["latex","katex","math"].indexOf(ne)>=0?`<p class='editormd-tex'>${he}</p>`:`<pre class="prettyprint linenums"><code class="language-${pe}">${Te?he:(0,se.escape)(he,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Te?he:(0,se.escape)(he,!0))+"</code></pre>"},ee.heading=function(he,pe,Te){let ne=this.options.headerPrefix+Te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Et.push({anchor:ne,level:pe,text:he}),"<h"+pe+' id="'+re+ne+'">'+he+"</h"+pe+">"},ge().setOptions({silent:!0,gfm:!0,pedantic:!1}),ge().use({tokenizer:et,renderer:ee}),Pn.ZP=ge()},50371:function(di,Pn){"use strict";function bt(){const Lt=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ge=1;ge<arguments.length;ge++){const se=ge<0||arguments.length<=ge?void 0:arguments[ge];se&&Object.keys(se).forEach(De=>{const re=se[De];re!==void 0&&(Lt[De]=re)})}return Lt}Pn.Z=bt},13845:function(di,Pn,bt){"use strict";bt.d(Pn,{F:function(){return Lt},Z:function(){return ge}});function Lt(se){return se!=null&&se===se.window}function ge(se,De){var re,le;if(typeof window=="undefined")return 0;const Et=De?"scrollTop":"scrollLeft";let Tt=0;return Lt(se)?Tt=se[De?"pageYOffset":"pageXOffset"]:se instanceof Document?Tt=se.documentElement[Et]:(se instanceof HTMLElement||se)&&(Tt=se[Et]),se&&!Lt(se)&&typeof Tt!="number"&&(Tt=(le=((re=se.ownerDocument)!==null&&re!==void 0?re:se).documentElement)===null||le===void 0?void 0:le[Et]),Tt}},56762:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ge}});var Lt=bt(59301);function ge(){const[,se]=Lt.useReducer(De=>De+1,0);return se}},68031:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return De}});var Lt=bt(23073);function ge(re,le,Et,Tt){const ee=Et-le;return re/=Tt/2,re<1?ee/2*re*re*re+le:ee/2*((re-=2)*re*re+2)+le}var se=bt(13845);function De(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Et=()=>window,callback:Tt,duration:ee=450}=le,Ct=Et(),Wt=(0,se.Z)(Ct,!0),Gt=Date.now(),Jt=()=>{const et=Date.now()-Gt,tt=ge(et>ee?ee:et,Wt,re,ee);(0,se.F)(Ct)?Ct.scrollTo(window.pageXOffset,tt):Ct instanceof Document||Ct.constructor.name==="HTMLDocument"?Ct.documentElement.scrollTop=tt:Ct.scrollTop=tt,et<ee?(0,Lt.Z)(Jt):typeof Tt=="function"&&Tt()};(0,Lt.Z)(Jt)}},66104:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return $e}});var Lt=bt(92310),ge=bt.n(Lt),se=bt(38298),De=bt(36994),re=bt(59301),le=bt(92343),Et=bt(36355),Tt=bt(18290),ee=bt(91857);const Ct=Ge=>{let{children:Oe}=Ge;const{getPrefixCls:Ve}=re.useContext(Et.E_),_e=Ve("breadcrumb");return re.createElement("li",{className:`${_e}-separator`,"aria-hidden":"true"},Oe===""?Oe:Oe||"/")};Ct.__ANT_BREADCRUMB_SEPARATOR=!0;var Wt=Ct,Gt=function(Ge,Oe){var Ve={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&Oe.indexOf(_e)<0&&(Ve[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(Ge);xe<_e.length;xe++)Oe.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[xe])&&(Ve[_e[xe]]=Ge[_e[xe]]);return Ve};function Jt(Ge,Oe){if(Ge.title===void 0||Ge.title===null)return null;const Ve=Object.keys(Oe).join("|");return typeof Ge.title=="object"?Ge.title:String(Ge.title).replace(new RegExp(`:(${Ve})`,"g"),(_e,xe)=>Oe[xe]||_e)}function wt(Ge,Oe,Ve,_e){if(Ve==null)return null;const{className:xe,onClick:ie}=Oe,be=Gt(Oe,["className","onClick"]),Fn=Object.assign(Object.assign({},(0,De.Z)(be,{data:!0,aria:!0})),{onClick:ie});return _e!==void 0?re.createElement("a",Object.assign({},Fn,{className:ge()(`${Ge}-link`,xe),href:_e}),Ve):re.createElement("span",Object.assign({},Fn,{className:ge()(`${Ge}-link`,xe)}),Ve)}function et(Ge,Oe){return(_e,xe,ie,be,Fn)=>{if(Oe)return Oe(_e,xe,ie,be);const Mn=Jt(_e,xe);return wt(Ge,_e,Mn,Fn)}}var tt=function(Ge,Oe){var Ve={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&Oe.indexOf(_e)<0&&(Ve[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(Ge);xe<_e.length;xe++)Oe.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[xe])&&(Ve[_e[xe]]=Ge[_e[xe]]);return Ve};const lt=Ge=>{const{prefixCls:Oe,separator:Ve="/",children:_e,menu:xe,overlay:ie,dropdownProps:be,href:Fn}=Ge,Xe=(In=>{if(xe||ie){const Xn=Object.assign({},be);if(xe){const pi=xe||{},{items:$n}=pi,bi=tt(pi,["items"]);Xn.menu=Object.assign(Object.assign({},bi),{items:$n==null?void 0:$n.map((sn,Li)=>{var{key:ji,title:ve,label:hn,path:Ae}=sn,Ot=tt(sn,["key","title","label","path"]);let Ft=hn!=null?hn:ve;return Ae&&(Ft=re.createElement("a",{href:`${Fn}${Ae}`},Ft)),Object.assign(Object.assign({},Ot),{key:ji!=null?ji:Li,label:Ft})})})}else ie&&(Xn.overlay=ie);return re.createElement(ee.Z,Object.assign({placement:"bottom"},Xn),re.createElement("span",{className:`${Oe}-overlay-link`},In,re.createElement(Tt.Z,null)))}return In})(_e);return Xe!=null?re.createElement(re.Fragment,null,re.createElement("li",null,Xe),Ve&&re.createElement(Wt,null,Ve)):null},rt=Ge=>{const{prefixCls:Oe,children:Ve,href:_e}=Ge,xe=tt(Ge,["prefixCls","children","href"]),{getPrefixCls:ie}=re.useContext(Et.E_),be=ie("breadcrumb",Oe);return re.createElement(lt,Object.assign({},xe,{prefixCls:be}),wt(be,xe,Ve,_e))};rt.__ANT_BREADCRUMB_ITEM=!0;var ht=rt,dt=bt(17313),yt=bt(83116),Mt=bt(37613);const jt=Ge=>{const{componentCls:Oe,iconCls:Ve}=Ge;return{[Oe]:Object.assign(Object.assign({},(0,dt.Wf)(Ge)),{color:Ge.itemColor,fontSize:Ge.fontSize,[Ve]:{fontSize:Ge.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ge.linkColor,transition:`color ${Ge.motionDurationMid}`,padding:`0 ${Ge.paddingXXS}px`,borderRadius:Ge.borderRadiusSM,height:Ge.lineHeight*Ge.fontSize,display:"inline-block",marginInline:-Ge.marginXXS,"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover}},(0,dt.Qy)(Ge)),"li:last-child":{color:Ge.lastItemColor},[`${Oe}-separator`]:{marginInline:Ge.separatorMargin,color:Ge.separatorColor},[`${Oe}-link`]:{[`
> ${Ve} + span,
> ${Ve} + a
`]:{marginInlineStart:Ge.marginXXS}},[`${Oe}-overlay-link`]:{borderRadius:Ge.borderRadiusSM,height:Ge.lineHeight*Ge.fontSize,display:"inline-block",padding:`0 ${Ge.paddingXXS}px`,marginInline:-Ge.marginXXS,[`> ${Ve}`]:{marginInlineStart:Ge.marginXXS,fontSize:Ge.fontSizeIcon},"&:hover":{color:Ge.linkHoverColor,backgroundColor:Ge.colorBgTextHover,a:{color:Ge.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}})}};var Rt=(0,yt.Z)("Breadcrumb",Ge=>{const Oe=(0,Mt.TS)(Ge,{});return[jt(Oe)]},Ge=>({itemColor:Ge.colorTextDescription,lastItemColor:Ge.colorText,iconFontSize:Ge.fontSize,linkColor:Ge.colorTextDescription,linkHoverColor:Ge.colorText,separatorColor:Ge.colorTextDescription,separatorMargin:Ge.marginXS})),ae=function(Ge,Oe){var Ve={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&Oe.indexOf(_e)<0&&(Ve[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(Ge);xe<_e.length;xe++)Oe.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[xe])&&(Ve[_e[xe]]=Ge[_e[xe]]);return Ve};function he(Ge){const{breadcrumbName:Oe,children:Ve}=Ge,_e=ae(Ge,["breadcrumbName","children"]),xe=Object.assign({title:Oe},_e);return Ve&&(xe.menu={items:Ve.map(ie=>{var{breadcrumbName:be}=ie,Fn=ae(ie,["breadcrumbName"]);return Object.assign(Object.assign({},Fn),{title:be})})}),xe}function pe(Ge,Oe){return(0,re.useMemo)(()=>Ge||(Oe?Oe.map(he):null),[Ge,Oe])}var Te=function(Ge,Oe){var Ve={};for(var _e in Ge)Object.prototype.hasOwnProperty.call(Ge,_e)&&Oe.indexOf(_e)<0&&(Ve[_e]=Ge[_e]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(Ge);xe<_e.length;xe++)Oe.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(Ge,_e[xe])&&(Ve[_e[xe]]=Ge[_e[xe]]);return Ve};const ne=(Ge,Oe)=>{if(Oe===void 0)return Oe;let Ve=(Oe||"").replace(/^\//,"");return Object.keys(Ge).forEach(_e=>{Ve=Ve.replace(`:${_e}`,Ge[_e])}),Ve},Ke=Ge=>{const{prefixCls:Oe,separator:Ve="/",style:_e,className:xe,rootClassName:ie,routes:be,items:Fn,children:Mn,itemRender:Xe,params:In={}}=Ge,Xn=Te(Ge,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:pi,direction:$n,breadcrumb:bi}=re.useContext(Et.E_);let sn;const Li=pi("breadcrumb",Oe),[ji,ve]=Rt(Li),hn=pe(Fn,be),Ae=et(Li,Xe);if(hn&&hn.length>0){const Kt=[],Ee=Fn||be;sn=hn.map((je,ce)=>{const{path:Be,key:$t,type:Pt,menu:mt,overlay:Zt,onClick:Se,className:Dt,separator:Ie,dropdownProps:nn}=je,zn=ne(In,Be);zn!==void 0&&Kt.push(zn);const xn=$t!=null?$t:ce;if(Pt==="separator")return re.createElement(Wt,{key:xn},Ie);const li={},Qi=ce===hn.length-1;mt?li.menu=mt:Zt&&(li.overlay=Zt);let{href:Wi}=je;return Kt.length&&zn!==void 0&&(Wi=`#/${Kt.join("/")}`),re.createElement(lt,Object.assign({key:xn},li,(0,De.Z)(je,{data:!0,aria:!0}),{className:Dt,dropdownProps:nn,href:Wi,separator:Qi?"":Ve,onClick:Se,prefixCls:Li}),Ae(je,In,Ee,Kt,Wi))})}else if(Mn){const Kt=(0,se.Z)(Mn).length;sn=(0,se.Z)(Mn).map((Ee,je)=>{if(!Ee)return Ee;const ce=je===Kt-1;return(0,le.Tm)(Ee,{separator:ce?"":Ve,key:je})})}const Ot=ge()(Li,bi==null?void 0:bi.className,{[`${Li}-rtl`]:$n==="rtl"},xe,ie,ve),Ft=Object.assign(Object.assign({},bi==null?void 0:bi.style),_e);return ji(re.createElement("nav",Object.assign({className:Ot,style:Ft},Xn),re.createElement("ol",null,sn)))};Ke.Item=ht,Ke.Separator=Wt;var Vt=Ke,$e=Vt},24905:function(di,Pn,bt){"use strict";bt.d(Pn,{default:function(){return Rt}});var Lt=bt(92310),ge=bt.n(Lt),se=bt(5630),De=bt(59301),re=bt(36355),le=bt(1684),Et=bt(32441),ee=De.createContext(null),Ct=bt(98447),Wt=bt(14088),Gt=bt(4572),Jt=function(ae,he){var pe={};for(var Te in ae)Object.prototype.hasOwnProperty.call(ae,Te)&&he.indexOf(Te)<0&&(pe[Te]=ae[Te]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,Te=Object.getOwnPropertySymbols(ae);ne<Te.length;ne++)he.indexOf(Te[ne])<0&&Object.prototype.propertyIsEnumerable.call(ae,Te[ne])&&(pe[Te[ne]]=ae[Te[ne]]);return pe};const wt=(ae,he)=>{var pe;const{prefixCls:Te,className:ne,rootClassName:Ke,children:Vt,indeterminate:$e=!1,style:Ge,onMouseEnter:Oe,onMouseLeave:Ve,skipGroup:_e=!1,disabled:xe}=ae,ie=Jt(ae,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:be,direction:Fn,checkbox:Mn}=De.useContext(re.E_),Xe=De.useContext(ee),{isFormItemInput:In}=De.useContext(Et.aM),Xn=De.useContext(le.Z),pi=(pe=(Xe==null?void 0:Xe.disabled)||xe)!==null&&pe!==void 0?pe:Xn,$n=De.useRef(ie.value);De.useEffect(()=>{Xe==null||Xe.registerValue(ie.value)},[]),De.useEffect(()=>{if(!_e)return ie.value!==$n.current&&(Xe==null||Xe.cancelValue($n.current),Xe==null||Xe.registerValue(ie.value),$n.current=ie.value),()=>Xe==null?void 0:Xe.cancelValue(ie.value)},[ie.value]);const bi=be("checkbox",Te),[sn,Li]=(0,Ct.ZP)(bi),ji=Object.assign({},ie);Xe&&!_e&&(ji.onChange=function(){ie.onChange&&ie.onChange.apply(ie,arguments),Xe.toggleOption&&Xe.toggleOption({label:Vt,value:ie.value})},ji.name=Xe.name,ji.checked=Xe.value.includes(ie.value));const ve=ge()(`${bi}-wrapper`,{[`${bi}-rtl`]:Fn==="rtl",[`${bi}-wrapper-checked`]:ji.checked,[`${bi}-wrapper-disabled`]:pi,[`${bi}-wrapper-in-form-item`]:In},Mn==null?void 0:Mn.className,ne,Ke,Li),hn=ge()({[`${bi}-indeterminate`]:$e},Gt.A,Li),Ae=$e?"mixed":void 0;return sn(De.createElement(Wt.Z,{component:"Checkbox",disabled:pi},De.createElement("label",{className:ve,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Ge),onMouseEnter:Oe,onMouseLeave:Ve},De.createElement(se.Z,Object.assign({"aria-checked":Ae},ji,{prefixCls:bi,className:hn,disabled:pi,ref:he})),Vt!==void 0&&De.createElement("span",null,Vt))))};var tt=De.forwardRef(wt),lt=bt(26390),rt=bt(64002),ht=function(ae,he){var pe={};for(var Te in ae)Object.prototype.hasOwnProperty.call(ae,Te)&&he.indexOf(Te)<0&&(pe[Te]=ae[Te]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,Te=Object.getOwnPropertySymbols(ae);ne<Te.length;ne++)he.indexOf(Te[ne])<0&&Object.prototype.propertyIsEnumerable.call(ae,Te[ne])&&(pe[Te[ne]]=ae[Te[ne]]);return pe};const dt=(ae,he)=>{const{defaultValue:pe,children:Te,options:ne=[],prefixCls:Ke,className:Vt,rootClassName:$e,style:Ge,onChange:Oe}=ae,Ve=ht(ae,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:_e,direction:xe}=De.useContext(re.E_),[ie,be]=De.useState(Ve.value||pe||[]),[Fn,Mn]=De.useState([]);De.useEffect(()=>{"value"in Ve&&be(Ve.value||[])},[Ve.value]);const Xe=De.useMemo(()=>ne.map(Ot=>typeof Ot=="string"||typeof Ot=="number"?{label:Ot,value:Ot}:Ot),[ne]),In=Ot=>{Mn(Ft=>Ft.filter(Kt=>Kt!==Ot))},Xn=Ot=>{Mn(Ft=>[].concat((0,lt.Z)(Ft),[Ot]))},pi=Ot=>{const Ft=ie.indexOf(Ot.value),Kt=(0,lt.Z)(ie);Ft===-1?Kt.push(Ot.value):Kt.splice(Ft,1),"value"in Ve||be(Kt),Oe==null||Oe(Kt.filter(Ee=>Fn.includes(Ee)).sort((Ee,je)=>{const ce=Xe.findIndex($t=>$t.value===Ee),Be=Xe.findIndex($t=>$t.value===je);return ce-Be}))},$n=_e("checkbox",Ke),bi=`${$n}-group`,[sn,Li]=(0,Ct.ZP)($n),ji=(0,rt.Z)(Ve,["value","disabled"]),ve=ne.length?Xe.map(Ot=>De.createElement(tt,{prefixCls:$n,key:Ot.value.toString(),disabled:"disabled"in Ot?Ot.disabled:Ve.disabled,value:Ot.value,checked:ie.includes(Ot.value),onChange:Ot.onChange,className:`${bi}-item`,style:Ot.style,title:Ot.title},Ot.label)):Te,hn={toggleOption:pi,value:ie,disabled:Ve.disabled,name:Ve.name,registerValue:Xn,cancelValue:In},Ae=ge()(bi,{[`${bi}-rtl`]:xe==="rtl"},Vt,$e,Li);return sn(De.createElement("div",Object.assign({className:Ae,style:Ge},ji,{ref:he}),De.createElement(ee.Provider,{value:hn},ve)))},yt=De.forwardRef(dt);var Mt=De.memo(yt);const jt=tt;jt.Group=Mt,jt.__ANT_CHECKBOX=!0;var Rt=jt},98447:function(di,Pn,bt){"use strict";bt.d(Pn,{C2:function(){return re}});var Lt=bt(17313),ge=bt(37613),se=bt(83116);const De=le=>{const{checkboxCls:Et}=le,Tt=`${Et}-wrapper`;return[{[`${Et}-group`]:Object.assign(Object.assign({},(0,Lt.Wf)(le)),{display:"inline-flex",flexWrap:"wrap",columnGap:le.marginXS,[`> ${le.antCls}-row`]:{flex:1}}),[Tt]:Object.assign(Object.assign({},(0,Lt.Wf)(le)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Tt}`]:{marginInlineStart:0},[`&${Tt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Et]:Object.assign(Object.assign({},(0,Lt.Wf)(le)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:le.borderRadiusSM,alignSelf:"center",[`${Et}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Et}-inner`]:Object.assign({},(0,Lt.oN)(le))},[`${Et}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:le.checkboxSize,height:le.checkboxSize,direction:"ltr",backgroundColor:le.colorBgContainer,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusSM,borderCollapse:"separate",transition:`all ${le.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:le.checkboxSize/14*5,height:le.checkboxSize/14*8,border:`${le.lineWidthBold}px solid ${le.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${le.motionDurationFast} ${le.motionEaseInBack}, opacity ${le.motionDurationFast}`}},"& + span":{paddingInlineStart:le.paddingXS,paddingInlineEnd:le.paddingXS}})},{[`
${Tt}:not(${Tt}-disabled),
${Et}:not(${Et}-disabled)
`]:{[`&:hover ${Et}-inner`]:{borderColor:le.colorPrimary}},[`${Tt}:not(${Tt}-disabled)`]:{[`&:hover ${Et}-checked:not(${Et}-disabled) ${Et}-inner`]:{backgroundColor:le.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Et}-checked:not(${Et}-disabled):after`]:{borderColor:le.colorPrimaryHover}}},{[`${Et}-checked`]:{[`${Et}-inner`]:{backgroundColor:le.colorPrimary,borderColor:le.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${le.motionDurationMid} ${le.motionEaseOutBack} ${le.motionDurationFast}`}}},[`
${Tt}-checked:not(${Tt}-disabled),
${Et}-checked:not(${Et}-disabled)
`]:{[`&:hover ${Et}-inner`]:{backgroundColor:le.colorPrimaryHover,borderColor:"transparent"}}},{[Et]:{"&-indeterminate":{[`${Et}-inner`]:{backgroundColor:le.colorBgContainer,borderColor:le.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:le.fontSizeLG/2,height:le.fontSizeLG/2,backgroundColor:le.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Tt}-disabled`]:{cursor:"not-allowed"},[`${Et}-disabled`]:{[`&, ${Et}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Et}-inner`]:{background:le.colorBgContainerDisabled,borderColor:le.colorBorder,"&:after":{borderColor:le.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:le.colorTextDisabled},[`&${Et}-indeterminate ${Et}-inner::after`]:{background:le.colorTextDisabled}}}]};function re(le,Et){const Tt=(0,ge.TS)(Et,{checkboxCls:`.${le}`,checkboxSize:Et.controlInteractiveSize});return[De(Tt)]}Pn.ZP=(0,se.Z)("Checkbox",(le,Et)=>{let{prefixCls:Tt}=Et;return[re(Tt,le)]})},93891:function(di,Pn,bt){"use strict";var Lt=bt(59301),ge=bt(36355),se=bt(64165);const De=re=>{const{componentName:le}=re,{getPrefixCls:Et}=(0,Lt.useContext)(ge.E_),Tt=Et("empty");switch(le){case"Table":case"List":return Lt.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Lt.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE,className:`${Tt}-small`});default:return Lt.createElement(se.Z,null)}};Pn.Z=De},28103:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Gt}});var Lt=bt(92310),ge=bt.n(Lt),se=bt(59301),De=bt(36355),re=bt(17313),le=bt(83116),Et=bt(37613);const Tt=Jt=>{const{componentCls:wt,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:lt,textPaddingInline:rt,orientationMargin:ht,verticalMarginInline:dt}=Jt;return{[wt]:Object.assign(Object.assign({},(0,re.Wf)(Jt)),{borderBlockStart:`${lt}px solid ${tt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:dt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${lt}px solid ${tt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Jt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${wt}-with-text`]:{display:"flex",alignItems:"center",margin:`${Jt.dividerHorizontalWithTextGutterMargin}px 0`,color:Jt.colorTextHeading,fontWeight:500,fontSize:Jt.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${tt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${lt}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${wt}-with-text-left`]:{"&::before":{width:`${ht*100}%`},"&::after":{width:`${100-ht*100}%`}},[`&-horizontal${wt}-with-text-right`]:{"&::before":{width:`${100-ht*100}%`},"&::after":{width:`${ht*100}%`}},[`${wt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:rt},"&-dashed":{background:"none",borderColor:tt,borderStyle:"dashed",borderWidth:`${lt}px 0 0`},[`&-horizontal${wt}-with-text${wt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${wt}-dashed`]:{borderInlineStartWidth:lt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${wt}-with-text`]:{color:Jt.colorText,fontWeight:"normal",fontSize:Jt.fontSize},[`&-horizontal${wt}-with-text-left${wt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${wt}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${wt}-with-text-right${wt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${wt}-inner-text`]:{paddingInlineEnd:et}}})}};var ee=(0,le.Z)("Divider",Jt=>{const wt=(0,Et.TS)(Jt,{dividerHorizontalWithTextGutterMargin:Jt.margin,dividerHorizontalGutterMargin:Jt.marginLG,sizePaddingEdgeHorizontal:0});return[Tt(wt)]},Jt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Jt.marginXS})),Ct=function(Jt,wt){var et={};for(var tt in Jt)Object.prototype.hasOwnProperty.call(Jt,tt)&&wt.indexOf(tt)<0&&(et[tt]=Jt[tt]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Jt);lt<tt.length;lt++)wt.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Jt,tt[lt])&&(et[tt[lt]]=Jt[tt[lt]]);return et},Gt=Jt=>{const{getPrefixCls:wt,direction:et,divider:tt}=se.useContext(De.E_),{prefixCls:lt,type:rt="horizontal",orientation:ht="center",orientationMargin:dt,className:yt,rootClassName:Mt,children:jt,dashed:Rt,plain:ae,style:he}=Jt,pe=Ct(Jt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Te=wt("divider",lt),[ne,Ke]=ee(Te),Vt=ht.length>0?`-${ht}`:ht,$e=!!jt,Ge=ht==="left"&&dt!=null,Oe=ht==="right"&&dt!=null,Ve=ge()(Te,tt==null?void 0:tt.className,Ke,`${Te}-${rt}`,{[`${Te}-with-text`]:$e,[`${Te}-with-text${Vt}`]:$e,[`${Te}-dashed`]:!!Rt,[`${Te}-plain`]:!!ae,[`${Te}-rtl`]:et==="rtl",[`${Te}-no-default-orientation-margin-left`]:Ge,[`${Te}-no-default-orientation-margin-right`]:Oe},yt,Mt),_e=se.useMemo(()=>typeof dt=="number"?dt:/^\d+$/.test(dt)?Number(dt):dt,[dt]),xe=Object.assign(Object.assign({},Ge&&{marginLeft:_e}),Oe&&{marginRight:_e});return ne(se.createElement("div",Object.assign({className:Ve,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),he)},pe,{role:"separator"}),jt&&rt!=="vertical"&&se.createElement("span",{className:`${Te}-inner-text`,style:xe},jt)))}},91857:function(di,Pn,bt){"use strict";var Lt=bt(59301),ge=bt(53878),se=bt(92310),De=bt.n(se),re=bt(31561),le=bt(80764),Et=bt(35788),Tt=bt(64002),ee=bt(79676),Ct=bt(53487),Wt=bt(92343),Gt=bt(36355),Jt=bt(20834),wt=bt(40875),et=bt(88088),tt=bt(47211);const lt=null,rt=Mt=>{const{menu:jt,arrow:Rt,prefixCls:ae,children:he,trigger:pe,disabled:Te,dropdownRender:ne,getPopupContainer:Ke,overlayClassName:Vt,rootClassName:$e,open:Ge,onOpenChange:Oe,visible:Ve,onVisibleChange:_e,mouseEnterDelay:xe=.15,mouseLeaveDelay:ie=.1,autoAdjustOverflow:be=!0,placement:Fn="",overlay:Mn,transitionName:Xe}=Mt,{getPopupContainer:In,getPrefixCls:Xn,direction:pi}=Lt.useContext(Gt.E_),$n=Lt.useMemo(()=>{const mt=Xn();return Xe!==void 0?Xe:Fn.includes("top")?`${mt}-slide-down`:`${mt}-slide-up`},[Xn,Fn,Xe]),bi=Lt.useMemo(()=>Fn?Fn.includes("Center")?Fn.slice(0,Fn.indexOf("Center")):Fn:pi==="rtl"?"bottomRight":"bottomLeft",[Fn,pi]),sn=Xn("dropdown",ae),[Li,ji]=(0,tt.Z)(sn),[,ve]=(0,et.Z)(),hn=Lt.Children.only(he),Ae=(0,Wt.Tm)(hn,{className:De()(`${sn}-trigger`,{[`${sn}-rtl`]:pi==="rtl"},hn.props.className),disabled:Te}),Ot=Te?[]:pe;let Ft;Ot&&Ot.includes("contextMenu")&&(Ft=!0);const[Kt,Ee]=(0,Et.Z)(!1,{value:Ge!=null?Ge:Ve}),je=(0,le.useEvent)(mt=>{Oe==null||Oe(mt),_e==null||_e(mt),Ee(mt)}),ce=De()(Vt,$e,ji,{[`${sn}-rtl`]:pi==="rtl"}),Be=(0,ee.Z)({arrowPointAtCenter:typeof Rt=="object"&&Rt.pointAtCenter,autoAdjustOverflow:be,offset:ve.marginXXS,arrowWidth:Rt?ve.sizePopupArrow:0,borderRadius:ve.borderRadius}),$t=Lt.useCallback(()=>{Ee(!1)},[]),Pt=()=>{let mt;return jt!=null&&jt.items?mt=Lt.createElement(Jt.default,Object.assign({},jt)):typeof Mn=="function"?mt=Mn():mt=Mn,ne&&(mt=ne(mt)),mt=Lt.Children.only(typeof mt=="string"?Lt.createElement("span",null,mt):mt),Lt.createElement(wt.J,{prefixCls:`${sn}-menu`,expandIcon:Lt.createElement("span",{className:`${sn}-menu-submenu-arrow`},Lt.createElement(ge.Z,{className:`${sn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:$t,validator:Zt=>{let{mode:Se}=Zt}},mt)};return Li(Lt.createElement(re.Z,Object.assign({alignPoint:Ft},(0,Tt.Z)(Mt,["rootClassName"]),{mouseEnterDelay:xe,mouseLeaveDelay:ie,visible:Kt,builtinPlacements:Be,arrow:!!Rt,overlayClassName:ce,prefixCls:sn,getPopupContainer:Ke||In,transitionName:$n,trigger:Ot,overlay:Pt,placement:bi,onVisibleChange:je}),Ae))};function ht(Mt){return Object.assign(Object.assign({},Mt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dt=(0,Ct.Z)(rt,"dropdown",Mt=>Mt,ht),yt=Mt=>Lt.createElement(dt,Object.assign({},Mt),Lt.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=yt,Pn.Z=rt},38854:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return et}});var Lt=bt(91857),ge=bt(92310),se=bt.n(ge),De=bt(59301),re=bt(19362),le=bt(3113),Et=bt(36355),Tt=bt(81327),ee=bt(33234),Ct=bt(47211),Wt=function(tt,lt){var rt={};for(var ht in tt)Object.prototype.hasOwnProperty.call(tt,ht)&&lt.indexOf(ht)<0&&(rt[ht]=tt[ht]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,ht=Object.getOwnPropertySymbols(tt);dt<ht.length;dt++)lt.indexOf(ht[dt])<0&&Object.prototype.propertyIsEnumerable.call(tt,ht[dt])&&(rt[ht[dt]]=tt[ht[dt]]);return rt};const Gt=tt=>{const{getPopupContainer:lt,getPrefixCls:rt,direction:ht}=De.useContext(Et.E_),{prefixCls:dt,type:yt="default",danger:Mt,disabled:jt,loading:Rt,onClick:ae,htmlType:he,children:pe,className:Te,menu:ne,arrow:Ke,autoFocus:Vt,overlay:$e,trigger:Ge,align:Oe,open:Ve,onOpenChange:_e,placement:xe,getPopupContainer:ie,href:be,icon:Fn=De.createElement(re.Z,null),title:Mn,buttonsRender:Xe=Pt=>Pt,mouseEnterDelay:In,mouseLeaveDelay:Xn,overlayClassName:pi,overlayStyle:$n,destroyPopupOnHide:bi,dropdownRender:sn}=tt,Li=Wt(tt,["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"]),ji=rt("dropdown",dt),ve=`${ji}-button`,[hn,Ae]=(0,Ct.Z)(ji),Ot={menu:ne,arrow:Ke,autoFocus:Vt,align:Oe,disabled:jt,trigger:jt?[]:Ge,onOpenChange:_e,getPopupContainer:ie||lt,mouseEnterDelay:In,mouseLeaveDelay:Xn,overlayClassName:pi,overlayStyle:$n,destroyPopupOnHide:bi,dropdownRender:sn},{compactSize:Ft,compactItemClassnames:Kt}=(0,ee.ri)(ji,ht),Ee=se()(ve,Kt,Te,Ae);"overlay"in tt&&(Ot.overlay=$e),"open"in tt&&(Ot.open=Ve),"placement"in tt?Ot.placement=xe:Ot.placement=ht==="rtl"?"bottomLeft":"bottomRight";const je=De.createElement(le.ZP,{type:yt,danger:Mt,disabled:jt,loading:Rt,onClick:ae,htmlType:he,href:be,title:Mn},pe),ce=De.createElement(le.ZP,{type:yt,danger:Mt,icon:Fn}),[Be,$t]=Xe([je,ce]);return hn(De.createElement(Tt.Z.Compact,Object.assign({className:Ee,size:Ft,block:!0},Li),Be,De.createElement(Lt.Z,Object.assign({},Ot),$t)))};Gt.__ANT_BUTTON=!0;var Jt=Gt;const wt=Lt.Z;wt.Button=Jt;var et=wt},47211:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Wt}});var Lt=bt(17313),ge=bt(13826),se=bt(92899),De=bt(29878),re=bt(19447),le=bt(83116),Et=bt(37613),ee=Gt=>{const{componentCls:Jt,menuCls:wt,colorError:et,colorTextLightSolid:tt}=Gt,lt=`${wt}-item`;return{[`${Jt}, ${Jt}-menu-submenu`]:{[`${wt} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const Ct=Gt=>{const{componentCls:Jt,menuCls:wt,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:lt,antCls:rt,iconCls:ht,motionDurationMid:dt,dropdownPaddingVertical:yt,fontSize:Mt,dropdownEdgeChildPadding:jt,colorTextDisabled:Rt,fontSizeIcon:ae,controlPaddingHorizontal:he,colorBgElevated:pe}=Gt;return[{[Jt]:Object.assign(Object.assign({},(0,Lt.Wf)(Gt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-tt+lt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${rt}-btn`]:{[`& > ${ht}-down, & > ${rt}-btn-icon > ${ht}-down`]:{fontSize:ae}},[`${Jt}-wrap`]:{position:"relative",[`${rt}-btn > ${ht}-down`]:{fontSize:ae},[`${ht}-down::before`]:{transition:`transform ${dt}`}},[`${Jt}-wrap-open`]:{[`${ht}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${rt}-slide-down-enter${rt}-slide-down-enter-active${Jt}-placement-bottomLeft,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Jt}-placement-bottomLeft,
&${rt}-slide-down-enter${rt}-slide-down-enter-active${Jt}-placement-bottom,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Jt}-placement-bottom,
&${rt}-slide-down-enter${rt}-slide-down-enter-active${Jt}-placement-bottomRight,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${Jt}-placement-bottomRight`]:{animationName:ge.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${Jt}-placement-topLeft,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Jt}-placement-topLeft,
&${rt}-slide-up-enter${rt}-slide-up-enter-active${Jt}-placement-top,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Jt}-placement-top,
&${rt}-slide-up-enter${rt}-slide-up-enter-active${Jt}-placement-topRight,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${Jt}-placement-topRight`]:{animationName:ge.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${Jt}-placement-bottomLeft,
&${rt}-slide-down-leave${rt}-slide-down-leave-active${Jt}-placement-bottom,
&${rt}-slide-down-leave${rt}-slide-down-leave-active${Jt}-placement-bottomRight`]:{animationName:ge.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${Jt}-placement-topLeft,
&${rt}-slide-up-leave${rt}-slide-up-leave-active${Jt}-placement-top,
&${rt}-slide-up-leave${rt}-slide-up-leave-active${Jt}-placement-topRight`]:{animationName:ge.ly}})},(0,re.ZP)(Gt,{colorBg:pe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Jt} ${wt}`]:{position:"relative",margin:0},[`${wt}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Jt}, ${Jt}-menu-submenu`]:{[wt]:Object.assign(Object.assign({padding:jt,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:Gt.borderRadiusLG,outline:"none",boxShadow:Gt.boxShadowSecondary},(0,Lt.Qy)(Gt)),{[`${wt}-item-group-title`]:{padding:`${yt}px ${he}px`,color:Gt.colorTextDescription,transition:`all ${dt}`},[`${wt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${wt}-item-icon`]:{minWidth:Mt,marginInlineEnd:Gt.marginXS,fontSize:Gt.fontSizeSM},[`${wt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${wt}-item, ${wt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${yt}px ${he}px`,color:Gt.colorText,fontWeight:"normal",fontSize:Mt,lineHeight:Gt.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Gt.borderRadiusSM,"&:hover, &-active":{backgroundColor:Gt.controlItemBgHover}},(0,Lt.Qy)(Gt)),{"&-selected":{color:Gt.colorPrimary,backgroundColor:Gt.controlItemBgActive,"&:hover, &-active":{backgroundColor:Gt.controlItemBgActiveHover}},"&-disabled":{color:Rt,cursor:"not-allowed","&:hover":{color:Rt,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Gt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Gt.colorSplit},[`${Jt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Gt.paddingXS,[`${Jt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Gt.colorTextDescription,fontSize:ae,fontStyle:"normal"}}}),[`${wt}-item-group-list`]:{margin:`0 ${Gt.marginXS}px`,padding:0,listStyle:"none"},[`${wt}-submenu-title`]:{paddingInlineEnd:he+Gt.fontSizeSM},[`${wt}-submenu-vertical`]:{position:"relative"},[`${wt}-submenu${wt}-submenu-disabled ${Jt}-menu-submenu-title`]:{[`&, ${Jt}-menu-submenu-arrow-icon`]:{color:Rt,backgroundColor:pe,cursor:"not-allowed"}},[`${wt}-submenu-selected ${Jt}-menu-submenu-title`]:{color:Gt.colorPrimary}})}},[(0,ge.oN)(Gt,"slide-up"),(0,ge.oN)(Gt,"slide-down"),(0,se.Fm)(Gt,"move-up"),(0,se.Fm)(Gt,"move-down"),(0,De._y)(Gt,"zoom-big")]]};var Wt=(0,le.Z)("Dropdown",(Gt,Jt)=>{let{rootPrefixCls:wt}=Jt;const{marginXXS:et,sizePopupArrow:tt,controlHeight:lt,fontSize:rt,lineHeight:ht,paddingXXS:dt,componentCls:yt,borderRadiusLG:Mt}=Gt,jt=(lt-rt*ht)/2,{dropdownArrowOffset:Rt}=(0,re.fS)({contentRadius:Mt}),ae=(0,Et.TS)(Gt,{menuCls:`${yt}-menu`,rootPrefixCls:wt,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:Rt,dropdownPaddingVertical:jt,dropdownEdgeChildPadding:dt});return[Ct(ae),ee(ae)]},Gt=>({zIndexPopup:Gt.zIndexPopupBase+50}))},64165:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return dt}});var Lt=bt(92310),ge=bt.n(Lt),se=bt(59301),De=bt(36355),re=bt(9763),le=bt(64993),Et=bt(88088),ee=()=>{const[,yt]=(0,Et.Z)(),jt=new le.C(yt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return se.createElement("svg",{style:jt,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"}))))},Wt=()=>{const[,yt]=(0,Et.Z)(),{colorFill:Mt,colorFillTertiary:jt,colorFillQuaternary:Rt,colorBgContainer:ae}=yt,{borderColor:he,shadowColor:pe,contentColor:Te}=(0,se.useMemo)(()=>({borderColor:new le.C(Mt).onBackground(ae).toHexShortString(),shadowColor:new le.C(jt).onBackground(ae).toHexShortString(),contentColor:new le.C(Rt).onBackground(ae).toHexShortString()}),[Mt,jt,Rt,ae]);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:pe,cx:"32",cy:"33",rx:"32",ry:"7"}),se.createElement("g",{fillRule:"nonzero",stroke:he},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:Te}))))},Gt=bt(83116),Jt=bt(37613);const wt=yt=>{const{componentCls:Mt,margin:jt,marginXS:Rt,marginXL:ae,fontSize:he,lineHeight:pe}=yt;return{[Mt]:{marginInline:Rt,fontSize:he,lineHeight:pe,textAlign:"center",[`${Mt}-image`]:{height:yt.emptyImgHeight,marginBottom:Rt,opacity:yt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Mt}-description`]:{color:yt.colorText},[`${Mt}-footer`]:{marginTop:jt},"&-normal":{marginBlock:ae,color:yt.colorTextDisabled,[`${Mt}-description`]:{color:yt.colorTextDisabled},[`${Mt}-image`]:{height:yt.emptyImgHeightMD}},"&-small":{marginBlock:Rt,color:yt.colorTextDisabled,[`${Mt}-image`]:{height:yt.emptyImgHeightSM}}}}};var et=(0,Gt.Z)("Empty",yt=>{const{componentCls:Mt,controlHeightLG:jt}=yt,Rt=(0,Jt.TS)(yt,{emptyImgCls:`${Mt}-img`,emptyImgHeight:jt*2.5,emptyImgHeightMD:jt,emptyImgHeightSM:jt*.875});return[wt(Rt)]}),tt=function(yt,Mt){var jt={};for(var Rt in yt)Object.prototype.hasOwnProperty.call(yt,Rt)&&Mt.indexOf(Rt)<0&&(jt[Rt]=yt[Rt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Rt=Object.getOwnPropertySymbols(yt);ae<Rt.length;ae++)Mt.indexOf(Rt[ae])<0&&Object.prototype.propertyIsEnumerable.call(yt,Rt[ae])&&(jt[Rt[ae]]=yt[Rt[ae]]);return jt};const lt=se.createElement(ee,null),rt=se.createElement(Wt,null),ht=yt=>{var{className:Mt,rootClassName:jt,prefixCls:Rt,image:ae=lt,description:he,children:pe,imageStyle:Te,style:ne}=yt,Ke=tt(yt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Vt,direction:$e,empty:Ge}=se.useContext(De.E_),Oe=Vt("empty",Rt),[Ve,_e]=et(Oe),[xe]=(0,re.Z)("Empty"),ie=typeof he!="undefined"?he:xe==null?void 0:xe.description,be=typeof ie=="string"?ie:"empty";let Fn=null;return typeof ae=="string"?Fn=se.createElement("img",{alt:be,src:ae}):Fn=ae,Ve(se.createElement("div",Object.assign({className:ge()(_e,Oe,Ge==null?void 0:Ge.className,{[`${Oe}-normal`]:ae===rt,[`${Oe}-rtl`]:$e==="rtl"},Mt,jt),style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),ne)},Ke),se.createElement("div",{className:`${Oe}-image`,style:Te},Fn),ie&&se.createElement("div",{className:`${Oe}-description`},ie),pe&&se.createElement("div",{className:`${Oe}-footer`},pe)))};ht.PRESENTED_IMAGE_DEFAULT=lt,ht.PRESENTED_IMAGE_SIMPLE=rt;var dt=ht},78241:function(di,Pn,bt){"use strict";bt.d(Pn,{default:function(){return kn}});var Lt=bt(26390),ge=bt(92310),se=bt.n(ge),De=bt(43469),re=bt(59301),le=bt(62892),Et=bt(32441);function Tt(rn){const[hi,Ci]=re.useState(rn);return re.useEffect(()=>{const bn=setTimeout(()=>{Ci(rn)},rn.length?0:10);return()=>{clearTimeout(bn)}},[rn]),hi}var ee=bt(17313),Ct=bt(29878),Wt=bt(8378),Gt=bt(37613),Jt=bt(83116),et=rn=>{const{componentCls:hi}=rn,Ci=`${hi}-show-help`,bn=`${hi}-show-help-item`;return{[Ci]:{transition:`opacity ${rn.motionDurationSlow} ${rn.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[bn]:{overflow:"hidden",transition:`height ${rn.motionDurationSlow} ${rn.motionEaseInOut},
opacity ${rn.motionDurationSlow} ${rn.motionEaseInOut},
transform ${rn.motionDurationSlow} ${rn.motionEaseInOut} !important`,[`&${bn}-appear, &${bn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${bn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=rn=>({legend:{display:"block",width:"100%",marginBottom:rn.marginLG,padding:0,color:rn.colorTextDescription,fontSize:rn.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${rn.lineWidth}px ${rn.lineType} ${rn.colorBorder}`},label:{fontSize:rn.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 ${rn.controlOutlineWidth}px ${rn.controlOutline}`},output:{display:"block",paddingTop:15,color:rn.colorText,fontSize:rn.fontSize,lineHeight:rn.lineHeight}}),lt=(rn,hi)=>{const{formItemCls:Ci}=rn;return{[Ci]:{[`${Ci}-label > label`]:{height:hi},[`${Ci}-control-input`]:{minHeight:hi}}}},rt=rn=>{const{componentCls:hi}=rn;return{[rn.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ee.Wf)(rn)),tt(rn)),{[`${hi}-text`]:{display:"inline-block",paddingInlineEnd:rn.paddingSM},"&-small":Object.assign({},lt(rn,rn.controlHeightSM)),"&-large":Object.assign({},lt(rn,rn.controlHeightLG))})}},ht=rn=>{const{formItemCls:hi,iconCls:Ci,componentCls:bn,rootPrefixCls:Ne,labelRequiredMarkColor:Bn,labelColor:_n,labelFontSize:Ii,labelHeight:ni,labelColonMarginInlineStart:mn,labelColonMarginInlineEnd:Ai,itemMarginBottom:Mi}=rn;return{[hi]:Object.assign(Object.assign({},(0,ee.Wf)(rn)),{marginBottom:Mi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Ne}-row`]:{display:"none"},"&-has-warning":{[`${hi}-split`]:{color:rn.colorError}},"&-has-error":{[`${hi}-split`]:{color:rn.colorWarning}},[`${hi}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${rn.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ni,color:_n,fontSize:Ii,[`> ${Ci}`]:{fontSize:rn.fontSize,verticalAlign:"top"},[`&${hi}-required:not(${hi}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:rn.marginXXS,color:Bn,fontSize:rn.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${bn}-hide-required-mark &`]:{display:"none"}},[`${hi}-optional`]:{display:"inline-block",marginInlineStart:rn.marginXXS,color:rn.colorTextDescription,[`${bn}-hide-required-mark &`]:{display:"none"}},[`${hi}-tooltip`]:{color:rn.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:rn.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:mn,marginInlineEnd:Ai},[`&${hi}-no-colon::after`]:{content:'"\\a0"'}}},[`${hi}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ne}-col-'"]):not([class*="' ${Ne}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:rn.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[hi]:{"&-explain, &-extra":{clear:"both",color:rn.colorTextDescription,fontSize:rn.fontSize,lineHeight:rn.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:rn.controlHeightSM,transition:`color ${rn.motionDurationMid} ${rn.motionEaseOut}`},"&-explain":{"&-error":{color:rn.colorError},"&-warning":{color:rn.colorWarning}}},[`&-with-help ${hi}-explain`]:{height:"auto",opacity:1},[`${hi}-feedback-icon`]:{fontSize:rn.fontSize,textAlign:"center",visibility:"visible",animationName:Ct.kr,animationDuration:rn.motionDurationMid,animationTimingFunction:rn.motionEaseOutBack,pointerEvents:"none","&-success":{color:rn.colorSuccess},"&-error":{color:rn.colorError},"&-warning":{color:rn.colorWarning},"&-validating":{color:rn.colorPrimary}}})}},dt=rn=>{const{componentCls:hi,formItemCls:Ci}=rn;return{[`${hi}-horizontal`]:{[`${Ci}-label`]:{flexGrow:0},[`${Ci}-control`]:{flex:"1 1 0",minWidth:0},[`${Ci}-label[class$='-24'], ${Ci}-label[class*='-24 ']`]:{[`& + ${Ci}-control`]:{minWidth:"unset"}}}}},yt=rn=>{const{componentCls:hi,formItemCls:Ci}=rn;return{[`${hi}-inline`]:{display:"flex",flexWrap:"wrap",[Ci]:{flex:"none",marginInlineEnd:rn.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Ci}-label,
> ${Ci}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ci}-label`]:{flex:"none"},[`${hi}-text`]:{display:"inline-block"},[`${Ci}-has-feedback`]:{display:"inline-block"}}}}},Mt=rn=>({padding:rn.verticalLabelPadding,margin:rn.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),jt=rn=>{const{componentCls:hi,formItemCls:Ci,rootPrefixCls:bn}=rn;return{[`${Ci} ${Ci}-label`]:Mt(rn),[hi]:{[Ci]:{flexWrap:"wrap",[`${Ci}-label, ${Ci}-control`]:{[`&:not([class*=" ${bn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Rt=rn=>{const{componentCls:hi,formItemCls:Ci,rootPrefixCls:bn}=rn;return{[`${hi}-vertical`]:{[Ci]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${hi}-item-control`]:{width:"100%"}}},[`${hi}-vertical ${Ci}-label,
.${bn}-col-24${Ci}-label,
.${bn}-col-xl-24${Ci}-label`]:Mt(rn),[`@media (max-width: ${rn.screenXSMax}px)`]:[jt(rn),{[hi]:{[`.${bn}-col-xs-24${Ci}-label`]:Mt(rn)}}],[`@media (max-width: ${rn.screenSMMax}px)`]:{[hi]:{[`.${bn}-col-sm-24${Ci}-label`]:Mt(rn)}},[`@media (max-width: ${rn.screenMDMax}px)`]:{[hi]:{[`.${bn}-col-md-24${Ci}-label`]:Mt(rn)}},[`@media (max-width: ${rn.screenLGMax}px)`]:{[hi]:{[`.${bn}-col-lg-24${Ci}-label`]:Mt(rn)}}}},ae=(rn,hi)=>(0,Gt.TS)(rn,{formItemCls:`${rn.componentCls}-item`,rootPrefixCls:hi});var he=(0,Jt.Z)("Form",(rn,hi)=>{let{rootPrefixCls:Ci}=hi;const bn=ae(rn,Ci);return[rt(bn),ht(bn),et(bn),dt(bn),yt(bn),Rt(bn),(0,Wt.Z)(bn),Ct.kr]},rn=>({labelRequiredMarkColor:rn.colorError,labelColor:rn.colorTextHeading,labelFontSize:rn.fontSize,labelHeight:rn.controlHeight,labelColonMarginInlineStart:rn.marginXXS/2,labelColonMarginInlineEnd:rn.marginXS,itemMarginBottom:rn.marginLG,verticalLabelPadding:`0 0 ${rn.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const pe=[];function Te(rn,hi,Ci){let bn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof rn=="string"?rn:`${hi}-${bn}`,error:rn,errorStatus:Ci}}var Ke=rn=>{let{help:hi,helpStatus:Ci,errors:bn=pe,warnings:Ne=pe,className:Bn,fieldId:_n,onVisibleChanged:Ii}=rn;const{prefixCls:ni}=re.useContext(Et.Rk),mn=`${ni}-item-explain`,[,Ai]=he(ni),Mi=(0,re.useMemo)(()=>(0,le.Z)(ni),[ni]),er=Tt(bn),On=Tt(Ne),Si=re.useMemo(()=>hi!=null?[Te(hi,"help",Ci)]:[].concat((0,Lt.Z)(er.map((rr,Kr)=>Te(rr,"error","error",Kr))),(0,Lt.Z)(On.map((rr,Kr)=>Te(rr,"warning","warning",Kr)))),[hi,Ci,er,On]),Pr={};return _n&&(Pr.id=`${_n}_help`),re.createElement(De.default,{motionDeadline:Mi.motionDeadline,motionName:`${ni}-show-help`,visible:!!Si.length,onVisibleChanged:Ii},rr=>{const{className:Kr,style:sr}=rr;return re.createElement("div",Object.assign({},Pr,{className:se()(mn,Kr,Bn,Ai),style:sr,role:"alert"}),re.createElement(De.CSSMotionList,Object.assign({keys:Si},(0,le.Z)(ni),{motionName:`${ni}-show-help-item`,component:!1}),Br=>{const{key:dr,error:Er,errorStatus:ao,className:Xi,style:yr}=Br;return re.createElement("div",{key:dr,className:se()(Xi,{[`${mn}-${ao}`]:ao}),style:yr},Er)}))})},Vt=bt(95013),$e=bt(36355),Ge=bt(1684),Oe=bt(52946),Ve=bt(19716),_e=bt(16722);const xe=["parentNode"],ie="form_item";function be(rn){return rn===void 0||rn===!1?[]:Array.isArray(rn)?rn:[rn]}function Fn(rn,hi){if(!rn.length)return;const Ci=rn.join("_");return hi?`${hi}_${Ci}`:xe.includes(Ci)?`${ie}_${Ci}`:Ci}function Mn(rn,hi,Ci,bn,Ne,Bn){let _n=bn;return Bn!==void 0?_n=Bn:Ci.validating?_n="validating":rn.length?_n="error":hi.length?_n="warning":(Ci.touched||Ne&&Ci.validated)&&(_n="success"),_n}function Xe(rn){return be(rn).join("_")}function In(rn){const[hi]=(0,Vt.useForm)(),Ci=re.useRef({}),bn=re.useMemo(()=>rn!=null?rn:Object.assign(Object.assign({},hi),{__INTERNAL__:{itemRef:Ne=>Bn=>{const _n=Xe(Ne);Bn?Ci.current[_n]=Bn:delete Ci.current[_n]}},scrollToField:function(Ne){let Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _n=be(Ne),Ii=Fn(_n,bn.__INTERNAL__.name),ni=Ii?document.getElementById(Ii):null;ni&&(0,_e.Z)(ni,Object.assign({scrollMode:"if-needed",block:"nearest"},Bn))},getFieldInstance:Ne=>{const Bn=Xe(Ne);return Ci.current[Bn]}}),[rn,hi]);return[bn]}var Xn=bt(28726),pi=function(rn,hi){var Ci={};for(var bn in rn)Object.prototype.hasOwnProperty.call(rn,bn)&&hi.indexOf(bn)<0&&(Ci[bn]=rn[bn]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,bn=Object.getOwnPropertySymbols(rn);Ne<bn.length;Ne++)hi.indexOf(bn[Ne])<0&&Object.prototype.propertyIsEnumerable.call(rn,bn[Ne])&&(Ci[bn[Ne]]=rn[bn[Ne]]);return Ci};const $n=(rn,hi)=>{const Ci=re.useContext(Ge.Z),{getPrefixCls:bn,direction:Ne,form:Bn}=re.useContext($e.E_),{prefixCls:_n,className:Ii,rootClassName:ni,size:mn,disabled:Ai=Ci,form:Mi,colon:er,labelAlign:On,labelWrap:Si,labelCol:Pr,wrapperCol:rr,hideRequiredMark:Kr,layout:sr="horizontal",scrollToFirstError:Br,requiredMark:dr,onFinishFailed:Er,name:ao,style:Xi,feedbackIcons:yr}=rn,Lo=pi(rn,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),xs=(0,Ve.Z)(mn),Uo=re.useContext(Xn.Z),jn=(0,re.useMemo)(()=>dr!==void 0?dr:Bn&&Bn.requiredMark!==void 0?Bn.requiredMark:!Kr,[Kr,dr,Bn]),Tr=er!=null?er:Bn==null?void 0:Bn.colon,so=bn("form",_n),[_r,ns]=he(so),Oo=se()(so,`${so}-${sr}`,{[`${so}-hide-required-mark`]:jn===!1,[`${so}-rtl`]:Ne==="rtl",[`${so}-${xs}`]:xs},ns,Bn==null?void 0:Bn.className,Ii,ni),[yi]=In(Mi),{__INTERNAL__:Bo}=yi;Bo.name=ao;const Hr=(0,re.useMemo)(()=>({name:ao,labelAlign:On,labelCol:Pr,labelWrap:Si,wrapperCol:rr,vertical:sr==="vertical",colon:Tr,requiredMark:jn,itemRef:Bo.itemRef,form:yi,feedbackIcons:yr}),[ao,On,Pr,rr,sr,Tr,jn,yi,yr]);re.useImperativeHandle(hi,()=>yi);const kr=(Po,Pi)=>{if(Po){let Xo={block:"nearest"};typeof Po=="object"&&(Xo=Po),yi.scrollToField(Pi,Xo)}},Bi=Po=>{if(Er==null||Er(Po),Po.errorFields.length){const Pi=Po.errorFields[0].name;if(Br!==void 0){kr(Br,Pi);return}Bn&&Bn.scrollToFirstError!==void 0&&kr(Bn.scrollToFirstError,Pi)}};return _r(re.createElement(Ge.n,{disabled:Ai},re.createElement(Oe.q,{size:xs},re.createElement(Et.RV,Object.assign({},{validateMessages:Uo}),re.createElement(Et.q3.Provider,{value:Hr},re.createElement(Vt.default,Object.assign({id:ao},Lo,{name:ao,onFinishFailed:Bi,form:yi,style:Object.assign(Object.assign({},Bn==null?void 0:Bn.style),Xi),className:Oo})))))))};var sn=re.forwardRef($n),Li=bt(12383),ji=bt(20475),ve=bt(92343),hn=bt(38298);function Ae(rn){if(typeof rn=="function")return rn;const hi=(0,hn.Z)(rn);return hi.length<=1?hi[0]:hi}const Ot=()=>{const{status:rn,errors:hi=[],warnings:Ci=[]}=(0,re.useContext)(Et.aM);return{status:rn,errors:hi,warnings:Ci}};Ot.Context=Et.aM;var Ft=Ot,Kt=bt(23073);function Ee(rn){const[hi,Ci]=re.useState(rn),bn=(0,re.useRef)(null),Ne=(0,re.useRef)([]),Bn=(0,re.useRef)(!1);re.useEffect(()=>(Bn.current=!1,()=>{Bn.current=!0,Kt.Z.cancel(bn.current),bn.current=null}),[]);function _n(Ii){Bn.current||(bn.current===null&&(Ne.current=[],bn.current=(0,Kt.Z)(()=>{bn.current=null,Ci(ni=>{let mn=ni;return Ne.current.forEach(Ai=>{mn=Ai(mn)}),mn})})),Ne.current.push(Ii))}return[hi,_n]}function je(){const{itemRef:rn}=re.useContext(Et.q3),hi=re.useRef({});function Ci(bn,Ne){const Bn=Ne&&typeof Ne=="object"&&Ne.ref,_n=bn.join("_");return(hi.current.name!==_n||hi.current.originRef!==Bn)&&(hi.current.name=_n,hi.current.originRef=Bn,hi.current.ref=(0,ji.sQ)(rn(bn),Bn)),hi.current.ref}return Ci}var ce=bt(48886),Be=bt(28800),$t=bt(64002),Pt=bt(27382),mt=bt(37028);const Zt=rn=>{const{formItemCls:hi}=rn;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${hi}-control`]:{display:"flex"}}}};var Se=(0,Jt.b)(["Form","item-item"],(rn,hi)=>{let{rootPrefixCls:Ci}=hi;const bn=ae(rn,Ci);return[Zt(bn)]}),Ie=rn=>{const{prefixCls:hi,status:Ci,wrapperCol:bn,children:Ne,errors:Bn,warnings:_n,_internalItemRender:Ii,extra:ni,help:mn,fieldId:Ai,marginBottom:Mi,onErrorVisibleChanged:er}=rn,On=`${hi}-item`,Si=re.useContext(Et.q3),Pr=bn||Si.wrapperCol||{},rr=se()(`${On}-control`,Pr.className),Kr=re.useMemo(()=>Object.assign({},Si),[Si]);delete Kr.labelCol,delete Kr.wrapperCol;const sr=re.createElement("div",{className:`${On}-control-input`},re.createElement("div",{className:`${On}-control-input-content`},Ne)),Br=re.useMemo(()=>({prefixCls:hi,status:Ci}),[hi,Ci]),dr=Mi!==null||Bn.length||_n.length?re.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},re.createElement(Et.Rk.Provider,{value:Br},re.createElement(Ke,{fieldId:Ai,errors:Bn,warnings:_n,help:mn,helpStatus:Ci,className:`${On}-explain-connected`,onVisibleChanged:er})),!!Mi&&re.createElement("div",{style:{width:0,height:Mi}})):null,Er={};Ai&&(Er.id=`${Ai}_extra`);const ao=ni?re.createElement("div",Object.assign({},Er,{className:`${On}-extra`}),ni):null,Xi=Ii&&Ii.mark==="pro_table_render"&&Ii.render?Ii.render(rn,{input:sr,errorList:dr,extra:ao}):re.createElement(re.Fragment,null,sr,dr,ao);return re.createElement(Et.q3.Provider,{value:Kr},re.createElement(mt.Z,Object.assign({},Pr,{className:rr}),Xi),re.createElement(Se,{prefixCls:hi}))},nn=bt(86902),zn=bt(31724),xn=bt(9763),li=bt(6848),Qi=function(rn,hi){var Ci={};for(var bn in rn)Object.prototype.hasOwnProperty.call(rn,bn)&&hi.indexOf(bn)<0&&(Ci[bn]=rn[bn]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,bn=Object.getOwnPropertySymbols(rn);Ne<bn.length;Ne++)hi.indexOf(bn[Ne])<0&&Object.prototype.propertyIsEnumerable.call(rn,bn[Ne])&&(Ci[bn[Ne]]=rn[bn[Ne]]);return Ci};function Wi(rn){return rn?typeof rn=="object"&&!re.isValidElement(rn)?rn:{title:rn}:null}var xr=rn=>{let{prefixCls:hi,label:Ci,htmlFor:bn,labelCol:Ne,labelAlign:Bn,colon:_n,required:Ii,requiredMark:ni,tooltip:mn}=rn;var Ai;const[Mi]=(0,xn.Z)("Form"),{vertical:er,labelAlign:On,labelCol:Si,labelWrap:Pr,colon:rr}=re.useContext(Et.q3);if(!Ci)return null;const Kr=Ne||Si||{},sr=Bn||On,Br=`${hi}-item-label`,dr=se()(Br,sr==="left"&&`${Br}-left`,Kr.className,{[`${Br}-wrap`]:!!Pr});let Er=Ci;const ao=_n===!0||rr!==!1&&_n!==!1;ao&&!er&&typeof Ci=="string"&&Ci.trim()!==""&&(Er=Ci.replace(/[:|]\s*$/,""));const yr=Wi(mn);if(yr){const{icon:jn=re.createElement(nn.Z,null)}=yr,Tr=Qi(yr,["icon"]),so=re.createElement(li.Z,Object.assign({},Tr),re.cloneElement(jn,{className:`${hi}-item-tooltip`,title:""}));Er=re.createElement(re.Fragment,null,Er,so)}const Lo=ni==="optional",xs=typeof ni=="function";xs?Er=ni(Er,{required:!!Ii}):Lo&&!Ii&&(Er=re.createElement(re.Fragment,null,Er,re.createElement("span",{className:`${hi}-item-optional`,title:""},(Mi==null?void 0:Mi.optional)||((Ai=zn.Z.Form)===null||Ai===void 0?void 0:Ai.optional))));const Uo=se()({[`${hi}-item-required`]:Ii,[`${hi}-item-required-mark-optional`]:Lo||xs,[`${hi}-item-no-colon`]:!ao});return re.createElement(mt.Z,Object.assign({},Kr,{className:dr}),re.createElement("label",{htmlFor:bn,className:Uo,title:typeof Ci=="string"?Ci:""},Er))},qr=bt(79999),Vr=bt(33130),Jr=bt(85404),Ir=bt(50023);const Xr={success:qr.Z,warning:Jr.Z,error:Vr.Z,validating:Ir.Z};function to(rn){let{children:hi,errors:Ci,warnings:bn,hasFeedback:Ne,validateStatus:Bn,prefixCls:_n,meta:Ii,noStyle:ni}=rn;const mn=`${_n}-item`,{feedbackIcons:Ai}=re.useContext(Et.q3),Mi=Mn(Ci,bn,Ii,null,!!Ne,Bn),{isFormItemInput:er,status:On}=re.useContext(Et.aM),Si=re.useMemo(()=>{var Pr;let rr;if(Ne){const Br=Ne!==!0&&Ne.icons||Ai,dr=Mi&&((Pr=Br==null?void 0:Br({status:Mi,errors:Ci,warnings:bn}))===null||Pr===void 0?void 0:Pr[Mi]),Er=Mi&&Xr[Mi];rr=dr!==!1&&Er?re.createElement("span",{className:se()(`${mn}-feedback-icon`,`${mn}-feedback-icon-${Mi}`)},dr||re.createElement(Er,null)):null}let Kr=!0,sr=Mi||"";return ni&&(Kr=er,sr=(Mi!=null?Mi:On)||""),{status:sr,errors:Ci,warnings:bn,hasFeedback:!!Ne,feedbackIcon:rr,isFormItemInput:Kr}},[Mi,Ne,ni,er,On]);return re.createElement(Et.aM.Provider,{value:Si},hi)}var ho=function(rn,hi){var Ci={};for(var bn in rn)Object.prototype.hasOwnProperty.call(rn,bn)&&hi.indexOf(bn)<0&&(Ci[bn]=rn[bn]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,bn=Object.getOwnPropertySymbols(rn);Ne<bn.length;Ne++)hi.indexOf(bn[Ne])<0&&Object.prototype.propertyIsEnumerable.call(rn,bn[Ne])&&(Ci[bn[Ne]]=rn[bn[Ne]]);return Ci};function cs(rn){const{prefixCls:hi,className:Ci,rootClassName:bn,style:Ne,help:Bn,errors:_n,warnings:Ii,validateStatus:ni,meta:mn,hasFeedback:Ai,hidden:Mi,children:er,fieldId:On,required:Si,isRequired:Pr,onSubItemMetaChange:rr}=rn,Kr=ho(rn,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),sr=`${hi}-item`,{requiredMark:Br}=re.useContext(Et.q3),dr=re.useRef(null),Er=Tt(_n),ao=Tt(Ii),Xi=Bn!=null,yr=!!(Xi||_n.length||Ii.length),Lo=!!dr.current&&(0,ce.Z)(dr.current),[xs,Uo]=re.useState(null);(0,Be.Z)(()=>{if(yr&&dr.current){const ns=getComputedStyle(dr.current);Uo(parseInt(ns.marginBottom,10))}},[yr,Lo]);const jn=ns=>{ns||Uo(null)},so=function(){let ns=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Oo=ns?Er:mn.errors,yi=ns?ao:mn.warnings;return Mn(Oo,yi,mn,"",!!Ai,ni)}(),_r=se()(sr,Ci,bn,{[`${sr}-with-help`]:Xi||Er.length||ao.length,[`${sr}-has-feedback`]:so&&Ai,[`${sr}-has-success`]:so==="success",[`${sr}-has-warning`]:so==="warning",[`${sr}-has-error`]:so==="error",[`${sr}-is-validating`]:so==="validating",[`${sr}-hidden`]:Mi});return re.createElement("div",{className:_r,style:Ne,ref:dr},re.createElement(Pt.Z,Object.assign({className:`${sr}-row`},(0,$t.Z)(Kr,["_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"])),re.createElement(xr,Object.assign({htmlFor:On},rn,{requiredMark:Br,required:Si!=null?Si:Pr,prefixCls:hi})),re.createElement(Ie,Object.assign({},rn,mn,{errors:Er,warnings:ao,prefixCls:hi,status:so,help:Bn,marginBottom:xs,onErrorVisibleChanged:jn}),re.createElement(Et.qI.Provider,{value:rr},re.createElement(to,{prefixCls:hi,meta:mn,errors:mn.errors,warnings:mn.warnings,hasFeedback:Ai,validateStatus:so},er)))),!!xs&&re.createElement("div",{className:`${sr}-margin-offset`,style:{marginBottom:-xs}}))}const no="__SPLIT__",Is=null,So=re.memo(rn=>{let{children:hi}=rn;return hi},(rn,hi)=>rn.value===hi.value&&rn.update===hi.update&&rn.childProps.length===hi.childProps.length&&rn.childProps.every((Ci,bn)=>Ci===hi.childProps[bn]));function Yt(rn){return rn!=null}function ai(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Jo(rn){const{name:hi,noStyle:Ci,className:bn,dependencies:Ne,prefixCls:Bn,shouldUpdate:_n,rules:Ii,children:ni,required:mn,label:Ai,messageVariables:Mi,trigger:er="onChange",validateTrigger:On,hidden:Si,help:Pr}=rn,{getPrefixCls:rr}=re.useContext($e.E_),{name:Kr}=re.useContext(Et.q3),sr=Ae(ni),Br=typeof sr=="function",dr=re.useContext(Et.qI),{validateTrigger:Er}=re.useContext(Vt.FieldContext),ao=On!==void 0?On:Er,Xi=Yt(hi),yr=rr("form",Bn),[Lo,xs]=he(yr),Uo=re.useContext(Vt.ListContext),jn=re.useRef(),[Tr,so]=Ee({}),[_r,ns]=(0,Li.Z)(()=>ai()),Oo=Pi=>{const Xo=Uo==null?void 0:Uo.getKey(Pi.name);if(ns(Pi.destroy?ai():Pi,!0),Ci&&Pr!==!1&&dr){let ha=Pi.name;if(Pi.destroy)ha=jn.current||ha;else if(Xo!==void 0){const[fs,ba]=Xo;ha=[fs].concat((0,Lt.Z)(ba)),jn.current=ha}dr(Pi,ha)}},yi=(Pi,Xo)=>{so(ha=>{const fs=Object.assign({},ha),Xs=[].concat((0,Lt.Z)(Pi.name.slice(0,-1)),(0,Lt.Z)(Xo)).join(no);return Pi.destroy?delete fs[Xs]:fs[Xs]=Pi,fs})},[Bo,Hr]=re.useMemo(()=>{const Pi=(0,Lt.Z)(_r.errors),Xo=(0,Lt.Z)(_r.warnings);return Object.values(Tr).forEach(ha=>{Pi.push.apply(Pi,(0,Lt.Z)(ha.errors||[])),Xo.push.apply(Xo,(0,Lt.Z)(ha.warnings||[]))}),[Pi,Xo]},[Tr,_r.errors,_r.warnings]),kr=je();function Bi(Pi,Xo,ha){return Ci&&!Si?re.createElement(to,{prefixCls:yr,hasFeedback:rn.hasFeedback,validateStatus:rn.validateStatus,meta:_r,errors:Bo,warnings:Hr,noStyle:!0},Pi):re.createElement(cs,Object.assign({key:"row"},rn,{className:se()(bn,xs),prefixCls:yr,fieldId:Xo,isRequired:ha,errors:Bo,warnings:Hr,meta:_r,onSubItemMetaChange:yi}),Pi)}if(!Xi&&!Br&&!Ne)return Lo(Bi(sr));let Po={};return typeof Ai=="string"?Po.label=Ai:hi&&(Po.label=String(hi)),Mi&&(Po=Object.assign(Object.assign({},Po),Mi)),Lo(re.createElement(Vt.Field,Object.assign({},rn,{messageVariables:Po,trigger:er,validateTrigger:ao,onMetaChange:Oo}),(Pi,Xo,ha)=>{const fs=be(hi).length&&Xo?Xo.name:[],ba=Fn(fs,Kr),Xs=mn!==void 0?mn:!!(Ii&&Ii.some(ps=>{if(ps&&typeof ps=="object"&&ps.required&&!ps.warningOnly)return!0;if(typeof ps=="function"){const us=ps(ha);return us&&us.required&&!us.warningOnly}return!1})),bo=Object.assign({},Pi);let jo=null;if(Array.isArray(sr)&&Xi)jo=sr;else if(!(Br&&(!(_n||Ne)||Xi))){if(!(Ne&&!Br&&!Xi))if((0,ve.l$)(sr)){const ps=Object.assign(Object.assign({},sr.props),bo);if(ps.id||(ps.id=ba),Pr||Bo.length>0||Hr.length>0||rn.extra){const Ue=[];(Pr||Bo.length>0)&&Ue.push(`${ba}_help`),rn.extra&&Ue.push(`${ba}_extra`),ps["aria-describedby"]=Ue.join(" ")}Bo.length>0&&(ps["aria-invalid"]="true"),Xs&&(ps["aria-required"]="true"),(0,ji.Yr)(sr)&&(ps.ref=kr(fs,sr)),new Set([].concat((0,Lt.Z)(be(er)),(0,Lt.Z)(be(ao)))).forEach(Ue=>{ps[Ue]=function(){for(var qo,Sa,za,El,ss,Vo=arguments.length,bs=new Array(Vo),ia=0;ia<Vo;ia++)bs[ia]=arguments[ia];(za=bo[Ue])===null||za===void 0||(qo=za).call.apply(qo,[bo].concat(bs)),(ss=(El=sr.props)[Ue])===null||ss===void 0||(Sa=ss).call.apply(Sa,[El].concat(bs))}});const gr=[ps["aria-required"],ps["aria-invalid"],ps["aria-describedby"]];jo=re.createElement(So,{value:bo[rn.valuePropName||"value"],update:sr,childProps:gr},(0,ve.Tm)(sr,ps))}else Br&&(_n||Ne)&&!Xi?jo=sr(ha):jo=sr}return Bi(jo,ba,Xs)}))}const sa=Jo;sa.useStatus=Ft;var xa=sa,va=function(rn,hi){var Ci={};for(var bn in rn)Object.prototype.hasOwnProperty.call(rn,bn)&&hi.indexOf(bn)<0&&(Ci[bn]=rn[bn]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,bn=Object.getOwnPropertySymbols(rn);Ne<bn.length;Ne++)hi.indexOf(bn[Ne])<0&&Object.prototype.propertyIsEnumerable.call(rn,bn[Ne])&&(Ci[bn[Ne]]=rn[bn[Ne]]);return Ci},Qr=rn=>{var{prefixCls:hi,children:Ci}=rn,bn=va(rn,["prefixCls","children"]);const{getPrefixCls:Ne}=re.useContext($e.E_),Bn=Ne("form",hi),_n=re.useMemo(()=>({prefixCls:Bn,status:"error"}),[Bn]);return re.createElement(Vt.List,Object.assign({},bn),(Ii,ni,mn)=>re.createElement(Et.Rk.Provider,{value:_n},Ci(Ii.map(Ai=>Object.assign(Object.assign({},Ai),{fieldKey:Ai.key})),ni,{errors:mn.errors,warnings:mn.warnings})))};function Vn(){const{form:rn}=(0,re.useContext)(Et.q3);return rn}const Qn=sn;Qn.Item=xa,Qn.List=Qr,Qn.ErrorList=Ke,Qn.useForm=In,Qn.useFormInstance=Vn,Qn.useWatch=Vt.useWatch,Qn.Provider=Et.RV,Qn.create=()=>{};var kn=Qn},8628:function(di,Pn,bt){"use strict";var Lt=bt(59301),ge=bt(28800),se=bt(56762),De=bt(69507);function re(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Et=(0,Lt.useRef)({}),Tt=(0,se.Z)(),ee=(0,De.ZP)();return(0,ge.Z)(()=>{const Ct=ee.subscribe(Wt=>{Et.current=Wt,le&&Tt()});return()=>ee.unsubscribe(Ct)},[]),Et.current}Pn.Z=re},9432:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ht},n:function(){return lt}});var Lt=bt(33130),ge=bt(92310),se=bt.n(ge),De=bt(93681),re=bt(20475),le=bt(59301),Et=bt(19080),Tt=bt(36355),ee=bt(1684),Ct=bt(19716),Wt=bt(32441),Gt=bt(33234),Jt=bt(59412),wt=bt(9937);function et(dt){return!!(dt.prefix||dt.suffix||dt.allowClear)}var tt=function(dt,yt){var Mt={};for(var jt in dt)Object.prototype.hasOwnProperty.call(dt,jt)&&yt.indexOf(jt)<0&&(Mt[jt]=dt[jt]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,jt=Object.getOwnPropertySymbols(dt);Rt<jt.length;Rt++)yt.indexOf(jt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(dt,jt[Rt])&&(Mt[jt[Rt]]=dt[jt[Rt]]);return Mt};function lt(dt,yt){if(!dt)return;dt.focus(yt);const{cursor:Mt}=yt||{};if(Mt){const jt=dt.value.length;switch(Mt){case"start":dt.setSelectionRange(0,0);break;case"end":dt.setSelectionRange(jt,jt);break;default:dt.setSelectionRange(0,jt);break}}}var ht=(0,le.forwardRef)((dt,yt)=>{var Mt;const{prefixCls:jt,bordered:Rt=!0,status:ae,size:he,disabled:pe,onBlur:Te,onFocus:ne,suffix:Ke,allowClear:Vt,addonAfter:$e,addonBefore:Ge,className:Oe,style:Ve,styles:_e,rootClassName:xe,onChange:ie,classNames:be}=dt,Fn=tt(dt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Mn,direction:Xe,input:In}=le.useContext(Tt.E_),Xn=Mn("input",jt),pi=(0,le.useRef)(null),[$n,bi]=(0,wt.ZP)(Xn),{compactSize:sn,compactItemClassnames:Li}=(0,Gt.ri)(Xn,Xe),ji=(0,Ct.Z)(Se=>{var Dt;return(Dt=he!=null?he:sn)!==null&&Dt!==void 0?Dt:Se}),ve=le.useContext(ee.Z),hn=pe!=null?pe:ve,{status:Ae,hasFeedback:Ot,feedbackIcon:Ft}=(0,le.useContext)(Wt.aM),Kt=(0,Et.F)(Ae,ae),Ee=et(dt)||!!Ot,je=(0,le.useRef)(Ee);(0,le.useEffect)(()=>{var Se;Ee&&je.current,je.current=Ee},[Ee]);const ce=(0,Jt.Z)(pi,!0),Be=Se=>{ce(),Te==null||Te(Se)},$t=Se=>{ce(),ne==null||ne(Se)},Pt=Se=>{ce(),ie==null||ie(Se)},mt=(Ot||Ke)&&le.createElement(le.Fragment,null,Ke,Ot&&Ft);let Zt;return typeof Vt=="object"&&(Vt!=null&&Vt.clearIcon)?Zt=Vt:Vt&&(Zt={clearIcon:le.createElement(Lt.Z,null)}),$n(le.createElement(De.default,Object.assign({ref:(0,re.sQ)(yt,pi),prefixCls:Xn,autoComplete:In==null?void 0:In.autoComplete},Fn,{disabled:hn,onBlur:Be,onFocus:$t,style:Object.assign(Object.assign({},In==null?void 0:In.style),Ve),styles:Object.assign(Object.assign({},In==null?void 0:In.styles),_e),suffix:mt,allowClear:Zt,className:se()(Oe,xe,Li,In==null?void 0:In.className),onChange:Pt,addonAfter:$e&&le.createElement(Gt.BR,null,le.createElement(Wt.Ux,{override:!0,status:!0},$e)),addonBefore:Ge&&le.createElement(Gt.BR,null,le.createElement(Wt.Ux,{override:!0,status:!0},Ge)),classNames:Object.assign(Object.assign(Object.assign({},be),In==null?void 0:In.classNames),{input:se()({[`${Xn}-sm`]:ji==="small",[`${Xn}-lg`]:ji==="large",[`${Xn}-rtl`]:Xe==="rtl",[`${Xn}-borderless`]:!Rt},!Ee&&(0,Et.Z)(Xn,Kt),be==null?void 0:be.input,(Mt=In==null?void 0:In.classNames)===null||Mt===void 0?void 0:Mt.input,bi)}),classes:{affixWrapper:se()({[`${Xn}-affix-wrapper-sm`]:ji==="small",[`${Xn}-affix-wrapper-lg`]:ji==="large",[`${Xn}-affix-wrapper-rtl`]:Xe==="rtl",[`${Xn}-affix-wrapper-borderless`]:!Rt},(0,Et.Z)(`${Xn}-affix-wrapper`,Kt,Ot),bi),wrapper:se()({[`${Xn}-group-rtl`]:Xe==="rtl"},bi),group:se()({[`${Xn}-group-wrapper-sm`]:ji==="small",[`${Xn}-group-wrapper-lg`]:ji==="large",[`${Xn}-group-wrapper-rtl`]:Xe==="rtl",[`${Xn}-group-wrapper-disabled`]:hn},(0,Et.Z)(`${Xn}-group-wrapper`,Kt,Ot),bi)}})))})},1643:function(di,Pn,bt){"use strict";var Lt=bt(33130),ge=bt(92310),se=bt.n(ge),De=bt(9296),re=bt(59301),le=bt(19080),Et=bt(36355),Tt=bt(1684),ee=bt(19716),Ct=bt(32441),Wt=bt(9432),Gt=bt(9937),Jt=function(et,tt){var lt={};for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&tt.indexOf(rt)<0&&(lt[rt]=et[rt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,rt=Object.getOwnPropertySymbols(et);ht<rt.length;ht++)tt.indexOf(rt[ht])<0&&Object.prototype.propertyIsEnumerable.call(et,rt[ht])&&(lt[rt[ht]]=et[rt[ht]]);return lt};const wt=(0,re.forwardRef)((et,tt)=>{const{prefixCls:lt,bordered:rt=!0,size:ht,disabled:dt,status:yt,allowClear:Mt,showCount:jt,classNames:Rt,rootClassName:ae,className:he}=et,pe=Jt(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Te,direction:ne}=re.useContext(Et.E_),Ke=(0,ee.Z)(ht),Vt=re.useContext(Tt.Z),$e=dt!=null?dt:Vt,{status:Ge,hasFeedback:Oe,feedbackIcon:Ve}=re.useContext(Ct.aM),_e=(0,le.F)(Ge,yt),xe=re.useRef(null);re.useImperativeHandle(tt,()=>{var Xe;return{resizableTextArea:(Xe=xe.current)===null||Xe===void 0?void 0:Xe.resizableTextArea,focus:In=>{var Xn,pi;(0,Wt.n)((pi=(Xn=xe.current)===null||Xn===void 0?void 0:Xn.resizableTextArea)===null||pi===void 0?void 0:pi.textArea,In)},blur:()=>{var In;return(In=xe.current)===null||In===void 0?void 0:In.blur()}}});const ie=Te("input",lt);let be;typeof Mt=="object"&&(Mt!=null&&Mt.clearIcon)?be=Mt:Mt&&(be={clearIcon:re.createElement(Lt.Z,null)});const[Fn,Mn]=(0,Gt.ZP)(ie);return Fn(re.createElement(De.default,Object.assign({},pe,{disabled:$e,allowClear:be,className:se()(he,ae),classes:{affixWrapper:se()(`${ie}-textarea-affix-wrapper`,{[`${ie}-affix-wrapper-rtl`]:ne==="rtl",[`${ie}-affix-wrapper-borderless`]:!rt,[`${ie}-affix-wrapper-sm`]:Ke==="small",[`${ie}-affix-wrapper-lg`]:Ke==="large",[`${ie}-textarea-show-count`]:jt},(0,le.Z)(`${ie}-affix-wrapper`,_e),Mn)},classNames:Object.assign(Object.assign({},Rt),{textarea:se()({[`${ie}-borderless`]:!rt,[`${ie}-sm`]:Ke==="small",[`${ie}-lg`]:Ke==="large"},(0,le.Z)(ie,_e),Mn,Rt==null?void 0:Rt.textarea)}),prefixCls:ie,suffix:Oe&&re.createElement("span",{className:`${ie}-textarea-suffix`},Ve),showCount:jt,ref:xe})))});Pn.Z=wt},59412:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ge}});var Lt=bt(59301);function ge(se,De){const re=(0,Lt.useRef)([]),le=()=>{re.current.push(setTimeout(()=>{var Et,Tt,ee,Ct;!((Et=se.current)===null||Et===void 0)&&Et.input&&((Tt=se.current)===null||Tt===void 0?void 0:Tt.input.getAttribute("type"))==="password"&&(!((ee=se.current)===null||ee===void 0)&&ee.input.hasAttribute("value"))&&((Ct=se.current)===null||Ct===void 0||Ct.input.removeAttribute("value"))}))};return(0,Lt.useEffect)(()=>(De&&le(),()=>re.current.forEach(Et=>{Et&&clearTimeout(Et)})),[]),le}},92832:function(di,Pn,bt){"use strict";bt.d(Pn,{default:function(){return Ke}});var Lt=bt(92310),ge=bt.n(Lt),se=bt(59301),De=bt(36355),re=bt(32441),le=bt(9937),Tt=Vt=>{const{getPrefixCls:$e,direction:Ge}=(0,se.useContext)(De.E_),{prefixCls:Oe,className:Ve}=Vt,_e=$e("input-group",Oe),xe=$e("input"),[ie,be]=(0,le.ZP)(xe),Fn=ge()(_e,{[`${_e}-lg`]:Vt.size==="large",[`${_e}-sm`]:Vt.size==="small",[`${_e}-compact`]:Vt.compact,[`${_e}-rtl`]:Ge==="rtl"},be,Ve),Mn=(0,se.useContext)(re.aM),Xe=(0,se.useMemo)(()=>Object.assign(Object.assign({},Mn),{isFormItemInput:!1}),[Mn]);return ie(se.createElement("span",{className:Fn,style:Vt.style,onMouseEnter:Vt.onMouseEnter,onMouseLeave:Vt.onMouseLeave,onFocus:Vt.onFocus,onBlur:Vt.onBlur},se.createElement(re.aM.Provider,{value:Xe},Vt.children)))},ee=bt(9432),Ct=bt(61441),Wt=bt(30631),Gt=bt(64002),Jt=bt(20475),wt=bt(59412),et=function(Vt,$e){var Ge={};for(var Oe in Vt)Object.prototype.hasOwnProperty.call(Vt,Oe)&&$e.indexOf(Oe)<0&&(Ge[Oe]=Vt[Oe]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Oe=Object.getOwnPropertySymbols(Vt);Ve<Oe.length;Ve++)$e.indexOf(Oe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Vt,Oe[Ve])&&(Ge[Oe[Ve]]=Vt[Oe[Ve]]);return Ge};const tt=Vt=>Vt?se.createElement(Wt.Z,null):se.createElement(Ct.Z,null),lt={click:"onClick",hover:"onMouseOver"};var ht=se.forwardRef((Vt,$e)=>{const{visibilityToggle:Ge=!0}=Vt,Oe=typeof Ge=="object"&&Ge.visible!==void 0,[Ve,_e]=(0,se.useState)(()=>Oe?Ge.visible:!1),xe=(0,se.useRef)(null);se.useEffect(()=>{Oe&&_e(Ge.visible)},[Oe,Ge]);const ie=(0,wt.Z)(xe),be=()=>{const{disabled:hn}=Vt;hn||(Ve&&ie(),_e(Ae=>{var Ot;const Ft=!Ae;return typeof Ge=="object"&&((Ot=Ge.onVisibleChange)===null||Ot===void 0||Ot.call(Ge,Ft)),Ft}))},Fn=hn=>{const{action:Ae="click",iconRender:Ot=tt}=Vt,Ft=lt[Ae]||"",Kt=Ot(Ve),Ee={[Ft]:be,className:`${hn}-icon`,key:"passwordIcon",onMouseDown:je=>{je.preventDefault()},onMouseUp:je=>{je.preventDefault()}};return se.cloneElement(se.isValidElement(Kt)?Kt:se.createElement("span",null,Kt),Ee)},{className:Mn,prefixCls:Xe,inputPrefixCls:In,size:Xn}=Vt,pi=et(Vt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$n}=se.useContext(De.E_),bi=$n("input",In),sn=$n("input-password",Xe),Li=Ge&&Fn(sn),ji=ge()(sn,Mn,{[`${sn}-${Xn}`]:!!Xn}),ve=Object.assign(Object.assign({},(0,Gt.Z)(pi,["suffix","iconRender","visibilityToggle"])),{type:Ve?"text":"password",className:ji,prefixCls:bi,suffix:Li});return Xn&&(ve.size=Xn),se.createElement(ee.Z,Object.assign({ref:(0,Jt.sQ)($e,xe)},ve))}),dt=bt(21970),yt=bt(92343),Mt=bt(3113),jt=bt(19716),Rt=bt(33234),ae=function(Vt,$e){var Ge={};for(var Oe in Vt)Object.prototype.hasOwnProperty.call(Vt,Oe)&&$e.indexOf(Oe)<0&&(Ge[Oe]=Vt[Oe]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Oe=Object.getOwnPropertySymbols(Vt);Ve<Oe.length;Ve++)$e.indexOf(Oe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Vt,Oe[Ve])&&(Ge[Oe[Ve]]=Vt[Oe[Ve]]);return Ge},pe=se.forwardRef((Vt,$e)=>{const{prefixCls:Ge,inputPrefixCls:Oe,className:Ve,size:_e,suffix:xe,enterButton:ie=!1,addonAfter:be,loading:Fn,disabled:Mn,onSearch:Xe,onChange:In,onCompositionStart:Xn,onCompositionEnd:pi}=Vt,$n=ae(Vt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:bi,direction:sn}=se.useContext(De.E_),Li=se.useRef(!1),ji=bi("input-search",Ge),ve=bi("input",Oe),{compactSize:hn}=(0,Rt.ri)(ji,sn),Ae=(0,jt.Z)(Ie=>{var nn;return(nn=_e!=null?_e:hn)!==null&&nn!==void 0?nn:Ie}),Ot=se.useRef(null),Ft=Ie=>{Ie&&Ie.target&&Ie.type==="click"&&Xe&&Xe(Ie.target.value,Ie,{source:"clear"}),In&&In(Ie)},Kt=Ie=>{var nn;document.activeElement===((nn=Ot.current)===null||nn===void 0?void 0:nn.input)&&Ie.preventDefault()},Ee=Ie=>{var nn,zn;Xe&&Xe((zn=(nn=Ot.current)===null||nn===void 0?void 0:nn.input)===null||zn===void 0?void 0:zn.value,Ie,{source:"input"})},je=Ie=>{Li.current||Fn||Ee(Ie)},ce=typeof ie=="boolean"?se.createElement(dt.Z,null):null,Be=`${ji}-button`;let $t;const Pt=ie||{},mt=Pt.type&&Pt.type.__ANT_BUTTON===!0;mt||Pt.type==="button"?$t=(0,yt.Tm)(Pt,Object.assign({onMouseDown:Kt,onClick:Ie=>{var nn,zn;(zn=(nn=Pt==null?void 0:Pt.props)===null||nn===void 0?void 0:nn.onClick)===null||zn===void 0||zn.call(nn,Ie),Ee(Ie)},key:"enterButton"},mt?{className:Be,size:Ae}:{})):$t=se.createElement(Mt.ZP,{className:Be,type:ie?"primary":void 0,size:Ae,disabled:Mn,key:"enterButton",onMouseDown:Kt,onClick:Ee,loading:Fn,icon:ce},ie),be&&($t=[$t,(0,yt.Tm)(be,{key:"addonAfter"})]);const Zt=ge()(ji,{[`${ji}-rtl`]:sn==="rtl",[`${ji}-${Ae}`]:!!Ae,[`${ji}-with-button`]:!!ie},Ve),Se=Ie=>{Li.current=!0,Xn==null||Xn(Ie)},Dt=Ie=>{Li.current=!1,pi==null||pi(Ie)};return se.createElement(ee.Z,Object.assign({ref:(0,Jt.sQ)(Ot,$e),onPressEnter:je},$n,{size:Ae,onCompositionStart:Se,onCompositionEnd:Dt,prefixCls:ve,addonAfter:$t,suffix:xe,onChange:Ft,className:Zt,disabled:Mn}))}),Te=bt(1643);const ne=ee.Z;ne.Group=Tt,ne.Search=pe,ne.TextArea=Te.Z,ne.Password=ht;var Ke=ne},99580:function(di,Pn,bt){"use strict";bt.d(Pn,{D:function(){return dt},Z:function(){return jt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(ae,he){return ge.createElement(re.Z,(0,Lt.Z)({},ae,{ref:he,icon:De}))},Et=ge.forwardRef(le),Tt=Et,ee=bt(16537),Ct=bt(53878),Wt=bt(92310),Gt=bt.n(Wt),Jt=bt(64002),et=Rt=>!isNaN(parseFloat(Rt))&&isFinite(Rt),tt=bt(36355),lt=bt(84966),rt=function(Rt,ae){var he={};for(var pe in Rt)Object.prototype.hasOwnProperty.call(Rt,pe)&&ae.indexOf(pe)<0&&(he[pe]=Rt[pe]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,pe=Object.getOwnPropertySymbols(Rt);Te<pe.length;Te++)ae.indexOf(pe[Te])<0&&Object.prototype.propertyIsEnumerable.call(Rt,pe[Te])&&(he[pe[Te]]=Rt[pe[Te]]);return he};const ht={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dt=ge.createContext({}),yt=(()=>{let Rt=0;return function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Rt+=1,`${ae}${Rt}`}})();var jt=ge.forwardRef((Rt,ae)=>{const{prefixCls:he,className:pe,trigger:Te,children:ne,defaultCollapsed:Ke=!1,theme:Vt="dark",style:$e={},collapsible:Ge=!1,reverseArrow:Oe=!1,width:Ve=200,collapsedWidth:_e=80,zeroWidthTriggerStyle:xe,breakpoint:ie,onCollapse:be,onBreakpoint:Fn}=Rt,Mn=rt(Rt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Xe}=(0,ge.useContext)(lt.Gs),[In,Xn]=(0,ge.useState)("collapsed"in Rt?Rt.collapsed:Ke),[pi,$n]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in Rt&&Xn(Rt.collapsed)},[Rt.collapsed]);const bi=(Ae,Ot)=>{"collapsed"in Rt||Xn(Ae),be==null||be(Ae,Ot)},sn=(0,ge.useRef)();sn.current=Ae=>{$n(Ae.matches),Fn==null||Fn(Ae.matches),In!==Ae.matches&&bi(Ae.matches,"responsive")},(0,ge.useEffect)(()=>{function Ae(Ft){return sn.current(Ft)}let Ot;if(typeof window!="undefined"){const{matchMedia:Ft}=window;if(Ft&&ie&&ie in ht){Ot=Ft(`(max-width: ${ht[ie]})`);try{Ot.addEventListener("change",Ae)}catch(Kt){Ot.addListener(Ae)}Ae(Ot)}}return()=>{try{Ot==null||Ot.removeEventListener("change",Ae)}catch(Ft){Ot==null||Ot.removeListener(Ae)}}},[ie]),(0,ge.useEffect)(()=>{const Ae=yt("ant-sider-");return Xe.addSider(Ae),()=>Xe.removeSider(Ae)},[]);const Li=()=>{bi(!In,"clickTrigger")},{getPrefixCls:ji}=(0,ge.useContext)(tt.E_),ve=()=>{const Ae=ji("layout-sider",he),Ot=(0,Jt.Z)(Mn,["collapsed"]),Ft=In?_e:Ve,Kt=et(Ft)?`${Ft}px`:String(Ft),Ee=parseFloat(String(_e||0))===0?ge.createElement("span",{onClick:Li,className:Gt()(`${Ae}-zero-width-trigger`,`${Ae}-zero-width-trigger-${Oe?"right":"left"}`),style:xe},Te||ge.createElement(Tt,null)):null,Be={expanded:Oe?ge.createElement(Ct.Z,null):ge.createElement(ee.Z,null),collapsed:Oe?ge.createElement(ee.Z,null):ge.createElement(Ct.Z,null)}[In?"collapsed":"expanded"],$t=Te!==null?Ee||ge.createElement("div",{className:`${Ae}-trigger`,onClick:Li,style:{width:Kt}},Te||Be):null,Pt=Object.assign(Object.assign({},$e),{flex:`0 0 ${Kt}`,maxWidth:Kt,minWidth:Kt,width:Kt}),mt=Gt()(Ae,`${Ae}-${Vt}`,{[`${Ae}-collapsed`]:!!In,[`${Ae}-has-trigger`]:Ge&&Te!==null&&!Ee,[`${Ae}-below`]:!!pi,[`${Ae}-zero-width`]:parseFloat(Kt)===0},pe);return ge.createElement("aside",Object.assign({className:mt},Ot,{style:Pt,ref:ae}),ge.createElement("div",{className:`${Ae}-children`},ne),Ge||pi&&Ee?$t:null)},hn=ge.useMemo(()=>({siderCollapsed:In}),[In]);return ge.createElement(dt.Provider,{value:hn},ve())})},84966:function(di,Pn,bt){"use strict";bt.d(Pn,{VY:function(){return dt},$_:function(){return ht},h4:function(){return rt},Gs:function(){return Jt},ZP:function(){return yt}});var Lt=bt(26390),ge=bt(92310),se=bt.n(ge),De=bt(64002),re=bt(59301),le=bt(36355),Et=bt(83116),ee=Mt=>{const{componentCls:jt,bodyBg:Rt,lightSiderBg:ae,lightTriggerBg:he,lightTriggerColor:pe}=Mt;return{[`${jt}-sider-light`]:{background:ae,[`${jt}-sider-trigger`]:{color:pe,background:he},[`${jt}-sider-zero-width-trigger`]:{color:pe,background:he,border:`1px solid ${Rt}`,borderInlineStart:0}}}};const Ct=Mt=>{const{antCls:jt,componentCls:Rt,colorText:ae,triggerColor:he,footerBg:pe,triggerBg:Te,headerHeight:ne,headerPadding:Ke,headerColor:Vt,footerPadding:$e,triggerHeight:Ge,zeroTriggerHeight:Oe,zeroTriggerWidth:Ve,motionDurationMid:_e,motionDurationSlow:xe,fontSize:ie,borderRadius:be,bodyBg:Fn,headerBg:Mn,siderBg:Xe}=Mt;return{[Rt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Fn,"&, *":{boxSizing:"border-box"},[`&${Rt}-has-sider`]:{flexDirection:"row",[`> ${Rt}, > ${Rt}-content`]:{width:0}},[`${Rt}-header, &${Rt}-footer`]:{flex:"0 0 auto"},[`${Rt}-sider`]:{position:"relative",minWidth:0,background:Xe,transition:`all ${_e}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${jt}-menu${jt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ge},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ge,color:he,lineHeight:`${Ge}px`,textAlign:"center",background:Te,cursor:"pointer",transition:`all ${_e}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ne,insetInlineEnd:-Ve,zIndex:1,width:Ve,height:Oe,color:he,fontSize:Mt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Xe,borderStartStartRadius:0,borderStartEndRadius:be,borderEndEndRadius:be,borderEndStartRadius:0,cursor:"pointer",transition:`background ${xe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${xe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ve,borderStartStartRadius:be,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:be}}}}},ee(Mt)),{"&-rtl":{direction:"rtl"}}),[`${Rt}-header`]:{height:ne,padding:Ke,color:Vt,lineHeight:`${ne}px`,background:Mn,[`${jt}-menu`]:{lineHeight:"inherit"}},[`${Rt}-footer`]:{padding:$e,color:ae,fontSize:ie,background:pe},[`${Rt}-content`]:{flex:"auto",minHeight:0}}};var Wt=(0,Et.Z)("Layout",Mt=>[Ct(Mt)],Mt=>{const{colorBgLayout:jt,controlHeight:Rt,controlHeightLG:ae,colorText:he,controlHeightSM:pe,marginXXS:Te,colorTextLightSolid:ne,colorBgContainer:Ke}=Mt,Vt=ae*1.25;return{colorBgHeader:"#001529",colorBgBody:jt,colorBgTrigger:"#002140",bodyBg:jt,headerBg:"#001529",headerHeight:Rt*2,headerPadding:`0 ${Vt}px`,headerColor:he,footerPadding:`${pe}px ${Vt}px`,footerBg:jt,siderBg:"#001529",triggerHeight:ae+Te*2,triggerBg:"#002140",triggerColor:ne,zeroTriggerWidth:ae,zeroTriggerHeight:ae,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:he}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Gt=function(Mt,jt){var Rt={};for(var ae in Mt)Object.prototype.hasOwnProperty.call(Mt,ae)&&jt.indexOf(ae)<0&&(Rt[ae]=Mt[ae]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ae=Object.getOwnPropertySymbols(Mt);he<ae.length;he++)jt.indexOf(ae[he])<0&&Object.prototype.propertyIsEnumerable.call(Mt,ae[he])&&(Rt[ae[he]]=Mt[ae[he]]);return Rt};const Jt=re.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function wt(Mt){let{suffixCls:jt,tagName:Rt,displayName:ae}=Mt;return he=>re.forwardRef((Te,ne)=>re.createElement(he,Object.assign({ref:ne,suffixCls:jt,tagName:Rt},Te)))}const et=re.forwardRef((Mt,jt)=>{const{prefixCls:Rt,suffixCls:ae,className:he,tagName:pe}=Mt,Te=Gt(Mt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ne}=re.useContext(le.E_),Ke=ne("layout",Rt),[Vt,$e]=Wt(Ke),Ge=ae?`${Ke}-${ae}`:Ke;return Vt(re.createElement(pe,Object.assign({className:se()(Rt||Ge,he,$e),ref:jt},Te)))}),tt=re.forwardRef((Mt,jt)=>{const{direction:Rt}=re.useContext(le.E_),[ae,he]=re.useState([]),{prefixCls:pe,className:Te,rootClassName:ne,children:Ke,hasSider:Vt,tagName:$e,style:Ge}=Mt,Oe=Gt(Mt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ve=(0,De.Z)(Oe,["suffixCls"]),{getPrefixCls:_e,layout:xe}=re.useContext(le.E_),ie=_e("layout",pe),[be,Fn]=Wt(ie),Mn=se()(ie,{[`${ie}-has-sider`]:typeof Vt=="boolean"?Vt:ae.length>0,[`${ie}-rtl`]:Rt==="rtl"},xe==null?void 0:xe.className,Te,ne,Fn),Xe=re.useMemo(()=>({siderHook:{addSider:In=>{he(Xn=>[].concat((0,Lt.Z)(Xn),[In]))},removeSider:In=>{he(Xn=>Xn.filter(pi=>pi!==In))}}}),[]);return be(re.createElement(Jt.Provider,{value:Xe},re.createElement($e,Object.assign({ref:jt,className:Mn,style:Object.assign(Object.assign({},xe==null?void 0:xe.style),Ge)},Ve),Ke)))}),lt=wt({tagName:"div",displayName:"Layout"})(tt),rt=wt({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ht=wt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),dt=wt({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var yt=lt},40875:function(di,Pn,bt){"use strict";bt.d(Pn,{J:function(){return le}});var Lt=bt(59301),ge=bt(33234),se=bt(80764),De=function(Et,Tt){var ee={};for(var Ct in Et)Object.prototype.hasOwnProperty.call(Et,Ct)&&Tt.indexOf(Ct)<0&&(ee[Ct]=Et[Ct]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Ct=Object.getOwnPropertySymbols(Et);Wt<Ct.length;Wt++)Tt.indexOf(Ct[Wt])<0&&Object.prototype.propertyIsEnumerable.call(Et,Ct[Wt])&&(ee[Ct[Wt]]=Et[Ct[Wt]]);return ee};const re=Lt.createContext(null),le=Lt.forwardRef((Et,Tt)=>{const{children:ee}=Et,Ct=De(Et,["children"]),Wt=Lt.useContext(re),Gt=Lt.useMemo(()=>Object.assign(Object.assign({},Wt),Ct),[Wt,Ct.prefixCls,Ct.mode,Ct.selectable]);return Lt.createElement(re.Provider,{value:Gt},Lt.createElement(ge.BR,null,(0,se.supportNodeRef)(ee)?Lt.cloneElement(ee,{ref:Tt}):ee))});Pn.Z=re},20834:function(di,Pn,bt){"use strict";bt.d(Pn,{default:function(){return hn}});var Lt=bt(22798),ge=bt(59301),se=bt(99580),De=bt(92310),re=bt.n(De),le=bt(36355),Et=function(Ae,Ot){var Ft={};for(var Kt in Ae)Object.prototype.hasOwnProperty.call(Ae,Kt)&&Ot.indexOf(Kt)<0&&(Ft[Kt]=Ae[Kt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Kt=Object.getOwnPropertySymbols(Ae);Ee<Kt.length;Ee++)Ot.indexOf(Kt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Kt[Ee])&&(Ft[Kt[Ee]]=Ae[Kt[Ee]]);return Ft},ee=Ae=>{const{prefixCls:Ot,className:Ft,dashed:Kt}=Ae,Ee=Et(Ae,["prefixCls","className","dashed"]),{getPrefixCls:je}=ge.useContext(le.E_),ce=je("menu",Ot),Be=re()({[`${ce}-item-divider-dashed`]:!!Kt},Ft);return ge.createElement(Lt.iz,Object.assign({className:Be},Ee))},Ct=bt(38298),Wt=bt(64002),Gt=bt(6848),Jt=bt(92343),et=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=Ae=>{var Ot;const{className:Ft,children:Kt,icon:Ee,title:je,danger:ce}=Ae,{prefixCls:Be,firstLevel:$t,direction:Pt,disableMenuItemTitleTooltip:mt,inlineCollapsed:Zt}=ge.useContext(et),Se=li=>{const Qi=ge.createElement("span",{className:`${Be}-title-content`},Kt);return(!Ee||(0,Jt.l$)(Kt)&&Kt.type==="span")&&Kt&&li&&$t&&typeof Kt=="string"?ge.createElement("div",{className:`${Be}-inline-collapsed-noicon`},Kt.charAt(0)):Qi},{siderCollapsed:Dt}=ge.useContext(se.D);let Ie=je;typeof je=="undefined"?Ie=$t?Kt:"":je===!1&&(Ie="");const nn={title:Ie};!Dt&&!Zt&&(nn.title=null,nn.open=!1);const zn=(0,Ct.Z)(Kt).length;let xn=ge.createElement(Lt.ck,Object.assign({},(0,Wt.Z)(Ae,["title","icon","danger"]),{className:re()({[`${Be}-item-danger`]:ce,[`${Be}-item-only-child`]:(Ee?zn+1:zn)===1},Ft),title:typeof je=="string"?je:void 0}),(0,Jt.Tm)(Ee,{className:re()((0,Jt.l$)(Ee)?(Ot=Ee.props)===null||Ot===void 0?void 0:Ot.className:"",`${Be}-item-icon`)}),Se(Zt));return mt||(xn=ge.createElement(Gt.Z,Object.assign({},nn,{placement:Pt==="rtl"?"left":"right",overlayClassName:`${Be}-inline-collapsed-tooltip`}),xn)),xn},ht=Ae=>{var Ot;const{popupClassName:Ft,icon:Kt,title:Ee,theme:je}=Ae,ce=ge.useContext(et),{prefixCls:Be,inlineCollapsed:$t,theme:Pt}=ce,mt=(0,Lt.Xl)();let Zt;if(!Kt)Zt=$t&&!mt.length&&Ee&&typeof Ee=="string"?ge.createElement("div",{className:`${Be}-inline-collapsed-noicon`},Ee.charAt(0)):ge.createElement("span",{className:`${Be}-title-content`},Ee);else{const Dt=(0,Jt.l$)(Ee)&&Ee.type==="span";Zt=ge.createElement(ge.Fragment,null,(0,Jt.Tm)(Kt,{className:re()((0,Jt.l$)(Kt)?(Ot=Kt.props)===null||Ot===void 0?void 0:Ot.className:"",`${Be}-item-icon`)}),Dt?Ee:ge.createElement("span",{className:`${Be}-title-content`},Ee))}const Se=ge.useMemo(()=>Object.assign(Object.assign({},ce),{firstLevel:!1}),[ce]);return ge.createElement(et.Provider,{value:Se},ge.createElement(Lt.Wd,Object.assign({},(0,Wt.Z)(Ae,["icon"]),{title:Zt,popupClassName:re()(Be,Ft,`${Be}-${je||Pt}`)})))},dt=bt(19362),yt=bt(80764),Mt=bt(62892),jt=bt(40875),Rt=function(Ae,Ot){var Ft={};for(var Kt in Ae)Object.prototype.hasOwnProperty.call(Ae,Kt)&&Ot.indexOf(Kt)<0&&(Ft[Kt]=Ae[Kt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Kt=Object.getOwnPropertySymbols(Ae);Ee<Kt.length;Ee++)Ot.indexOf(Kt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Kt[Ee])&&(Ft[Kt[Ee]]=Ae[Kt[Ee]]);return Ft};function ae(Ae){return(Ae||[]).map((Ot,Ft)=>{if(Ot&&typeof Ot=="object"){const Kt=Ot,{label:Ee,children:je,key:ce,type:Be}=Kt,$t=Rt(Kt,["label","children","key","type"]),Pt=ce!=null?ce:`tmp-${Ft}`;return je||Be==="group"?Be==="group"?ge.createElement(Lt.BW,Object.assign({key:Pt},$t,{title:Ee}),ae(je)):ge.createElement(ht,Object.assign({key:Pt},$t,{title:Ee}),ae(je)):Be==="divider"?ge.createElement(ee,Object.assign({key:Pt},$t)):ge.createElement(lt,Object.assign({key:Pt},$t),Ee)}return null}).filter(Ot=>Ot)}function he(Ae){return ge.useMemo(()=>Ae&&ae(Ae),[Ae])}var pe=bt(64993),Te=bt(17313),ne=bt(8378),Ke=bt(13826),Vt=bt(29878),$e=bt(83116),Ge=bt(37613),Ve=Ae=>{const{componentCls:Ot,motionDurationSlow:Ft,horizontalLineHeight:Kt,colorSplit:Ee,lineWidth:je,lineType:ce,itemPaddingInline:Be}=Ae;return{[`${Ot}-horizontal`]:{lineHeight:Kt,border:0,borderBottom:`${je}px ${ce} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ot}-item, ${Ot}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Be},[`> ${Ot}-item:hover,
> ${Ot}-item-active,
> ${Ot}-submenu ${Ot}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ot}-item, ${Ot}-submenu-title`]:{transition:[`border-color ${Ft}`,`background ${Ft}`].join(",")},[`${Ot}-submenu-arrow`]:{display:"none"}}}},xe=Ae=>{let{componentCls:Ot,menuArrowOffset:Ft}=Ae;return{[`${Ot}-rtl`]:{direction:"rtl"},[`${Ot}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ot}-rtl${Ot}-vertical,
${Ot}-submenu-rtl ${Ot}-vertical`]:{[`${Ot}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ft})`},"&::after":{transform:`rotate(45deg) translateY(${Ft})`}}}}};const ie=Ae=>Object.assign({},(0,Te.oN)(Ae));var Fn=(Ae,Ot)=>{const{componentCls:Ft,itemColor:Kt,itemSelectedColor:Ee,groupTitleColor:je,itemBg:ce,subMenuItemBg:Be,itemSelectedBg:$t,activeBarHeight:Pt,activeBarWidth:mt,activeBarBorderWidth:Zt,motionDurationSlow:Se,motionEaseInOut:Dt,motionEaseOut:Ie,itemPaddingInline:nn,motionDurationMid:zn,itemHoverColor:xn,lineType:li,colorSplit:Qi,itemDisabledColor:Wi,dangerItemColor:pr,dangerItemHoverColor:xr,dangerItemSelectedColor:qr,dangerItemActiveBg:Vr,dangerItemSelectedBg:Jr,itemHoverBg:Ir,itemActiveBg:Xr,menuSubMenuBg:to,horizontalItemSelectedColor:ho,horizontalItemSelectedBg:cs,horizontalItemBorderRadius:no,horizontalItemHoverBg:Is,popupBg:So}=Ae;return{[`${Ft}-${Ot}, ${Ft}-${Ot} > ${Ft}`]:{color:Kt,background:ce,[`&${Ft}-root:focus-visible`]:Object.assign({},ie(Ae)),[`${Ft}-item-group-title`]:{color:je},[`${Ft}-submenu-selected`]:{[`> ${Ft}-submenu-title`]:{color:Ee}},[`${Ft}-item-disabled, ${Ft}-submenu-disabled`]:{color:`${Wi} !important`},[`${Ft}-item:not(${Ft}-item-selected):not(${Ft}-submenu-selected)`]:{[`&:hover, > ${Ft}-submenu-title:hover`]:{color:xn}},[`&:not(${Ft}-horizontal)`]:{[`${Ft}-item:not(${Ft}-item-selected)`]:{"&:hover":{backgroundColor:Ir},"&:active":{backgroundColor:Xr}},[`${Ft}-submenu-title`]:{"&:hover":{backgroundColor:Ir},"&:active":{backgroundColor:Xr}}},[`${Ft}-item-danger`]:{color:pr,[`&${Ft}-item:hover`]:{[`&:not(${Ft}-item-selected):not(${Ft}-submenu-selected)`]:{color:xr}},[`&${Ft}-item:active`]:{background:Vr}},[`${Ft}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ft}-item-selected`]:{color:Ee,[`&${Ft}-item-danger`]:{color:qr},"a, a:hover":{color:"inherit"}},[`& ${Ft}-item-selected`]:{backgroundColor:$t,[`&${Ft}-item-danger`]:{backgroundColor:Jr}},[`${Ft}-item, ${Ft}-submenu-title`]:{[`&:not(${Ft}-item-disabled):focus-visible`]:Object.assign({},ie(Ae))},[`&${Ft}-submenu > ${Ft}`]:{backgroundColor:to},[`&${Ft}-popup > ${Ft}`]:{backgroundColor:So},[`&${Ft}-horizontal`]:Object.assign(Object.assign({},Ot==="dark"?{borderBottom:0}:{}),{[`> ${Ft}-item, > ${Ft}-submenu`]:{top:Zt,marginTop:-Zt,marginBottom:0,borderRadius:no,"&::after":{position:"absolute",insetInline:nn,bottom:0,borderBottom:`${Pt}px solid transparent`,transition:`border-color ${Se} ${Dt}`,content:'""'},"&:hover, &-active, &-open":{background:Is,"&::after":{borderBottomWidth:Pt,borderBottomColor:ho}},"&-selected":{color:ho,backgroundColor:cs,"&:hover":{backgroundColor:cs},"&::after":{borderBottomWidth:Pt,borderBottomColor:ho}}}}),[`&${Ft}-root`]:{[`&${Ft}-inline, &${Ft}-vertical`]:{borderInlineEnd:`${Zt}px ${li} ${Qi}`}},[`&${Ft}-inline`]:{[`${Ft}-sub${Ft}-inline`]:{background:Be},[`${Ft}-item, ${Ft}-submenu-title`]:Zt&&mt?{width:`calc(100% + ${Zt}px)`}:{},[`${Ft}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${mt}px solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${zn} ${Ie}`,`opacity ${zn} ${Ie}`].join(","),content:'""'},[`&${Ft}-item-danger`]:{"&::after":{borderInlineEndColor:qr}}},[`${Ft}-selected, ${Ft}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${zn} ${Dt}`,`opacity ${zn} ${Dt}`].join(",")}}}}}};const Mn=Ae=>{const{componentCls:Ot,itemHeight:Ft,itemMarginInline:Kt,padding:Ee,menuArrowSize:je,marginXS:ce,itemMarginBlock:Be}=Ae,$t=Ee+je+ce;return{[`${Ot}-item`]:{position:"relative",overflow:"hidden"},[`${Ot}-item, ${Ot}-submenu-title`]:{height:Ft,lineHeight:`${Ft}px`,paddingInline:Ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:Kt,marginBlock:Be,width:`calc(100% - ${Kt*2}px)`},[`> ${Ot}-item,
> ${Ot}-submenu > ${Ot}-submenu-title`]:{height:Ft,lineHeight:`${Ft}px`},[`${Ot}-item-group-list ${Ot}-submenu-title,
${Ot}-submenu-title`]:{paddingInlineEnd:$t}}};var In=Ae=>{const{componentCls:Ot,iconCls:Ft,itemHeight:Kt,colorTextLightSolid:Ee,dropdownWidth:je,controlHeightLG:ce,motionDurationMid:Be,motionEaseOut:$t,paddingXL:Pt,itemMarginInline:mt,fontSizeLG:Zt,motionDurationSlow:Se,paddingXS:Dt,boxShadowSecondary:Ie,collapsedWidth:nn,collapsedIconSize:zn}=Ae,xn={height:Kt,lineHeight:`${Kt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ot]:{"&-inline, &-vertical":Object.assign({[`&${Ot}-root`]:{boxShadow:"none"}},Mn(Ae))},[`${Ot}-submenu-popup`]:{[`${Ot}-vertical`]:Object.assign(Object.assign({},Mn(Ae)),{boxShadow:Ie})}},{[`${Ot}-submenu-popup ${Ot}-vertical${Ot}-sub`]:{minWidth:je,maxHeight:`calc(100vh - ${ce*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ot}-inline`]:{width:"100%",[`&${Ot}-root`]:{[`${Ot}-item, ${Ot}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Se}`,`background ${Se}`,`padding ${Be} ${$t}`].join(","),[`> ${Ot}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ot}-sub${Ot}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ot}-submenu > ${Ot}-submenu-title`]:xn,[`& ${Ot}-item-group-title`]:{paddingInlineStart:Pt}},[`${Ot}-item`]:xn}},{[`${Ot}-inline-collapsed`]:{width:nn,[`&${Ot}-root`]:{[`${Ot}-item, ${Ot}-submenu ${Ot}-submenu-title`]:{[`> ${Ot}-inline-collapsed-noicon`]:{fontSize:Zt,textAlign:"center"}}},[`> ${Ot}-item,
> ${Ot}-item-group > ${Ot}-item-group-list > ${Ot}-item,
> ${Ot}-item-group > ${Ot}-item-group-list > ${Ot}-submenu > ${Ot}-submenu-title,
> ${Ot}-submenu > ${Ot}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Zt/2}px - ${mt}px)`,textOverflow:"clip",[`
${Ot}-submenu-arrow,
${Ot}-submenu-expand-icon
`]:{opacity:0},[`${Ot}-item-icon, ${Ft}`]:{margin:0,fontSize:zn,lineHeight:`${Kt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ot}-item-icon, ${Ft}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ot}-item-icon, ${Ft}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${Ot}-item-group-title`]:Object.assign(Object.assign({},Te.vS),{paddingInline:Dt})}}]};const Xn=Ae=>{const{componentCls:Ot,motionDurationSlow:Ft,motionDurationMid:Kt,motionEaseInOut:Ee,motionEaseOut:je,iconCls:ce,iconSize:Be,iconMarginInlineEnd:$t}=Ae;return{[`${Ot}-item, ${Ot}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ft}`,`background ${Ft}`,`padding ${Ft} ${Ee}`].join(","),[`${Ot}-item-icon, ${ce}`]:{minWidth:Be,fontSize:Be,transition:[`font-size ${Kt} ${je}`,`margin ${Ft} ${Ee}`,`color ${Ft}`].join(","),"+ span":{marginInlineStart:$t,opacity:1,transition:[`opacity ${Ft} ${Ee}`,`margin ${Ft}`,`color ${Ft}`].join(",")}},[`${Ot}-item-icon`]:Object.assign({},(0,Te.Ro)()),[`&${Ot}-item-only-child`]:{[`> ${ce}, > ${Ot}-item-icon`]:{marginInlineEnd:0}}},[`${Ot}-item-disabled, ${Ot}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ot}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},pi=Ae=>{const{componentCls:Ot,motionDurationSlow:Ft,motionEaseInOut:Kt,borderRadius:Ee,menuArrowSize:je,menuArrowOffset:ce}=Ae;return{[`${Ot}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ae.margin,width:je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ft} ${Kt}, opacity ${Ft}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:je*.6,height:je*.15,backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${Ft} ${Kt}`,`transform ${Ft} ${Kt}`,`top ${Ft} ${Kt}`,`color ${Ft} ${Kt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ce})`},"&::after":{transform:`rotate(-45deg) translateY(${ce})`}}}}},$n=Ae=>{const{antCls:Ot,componentCls:Ft,fontSize:Kt,motionDurationSlow:Ee,motionDurationMid:je,motionEaseInOut:ce,paddingXS:Be,padding:$t,colorSplit:Pt,lineWidth:mt,zIndexPopup:Zt,borderRadiusLG:Se,subMenuItemBorderRadius:Dt,menuArrowSize:Ie,menuArrowOffset:nn,lineType:zn,menuPanelMaskInset:xn,groupTitleLineHeight:li,groupTitleFontSize:Qi}=Ae;return[{"":{[`${Ft}`]:Object.assign(Object.assign({},(0,Te.dF)()),{"&-hidden":{display:"none"}})},[`${Ft}-submenu-hidden`]:{display:"none"}},{[Ft]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Te.Wf)(Ae)),(0,Te.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Kt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ft}-item`]:{flex:"none"}},[`${Ft}-item, ${Ft}-submenu, ${Ft}-submenu-title`]:{borderRadius:Ae.itemBorderRadius},[`${Ft}-item-group-title`]:{padding:`${Be}px ${$t}px`,fontSize:Qi,lineHeight:li,transition:`all ${Ee}`},[`&-horizontal ${Ft}-submenu`]:{transition:[`border-color ${Ee} ${ce}`,`background ${Ee} ${ce}`].join(",")},[`${Ft}-submenu, ${Ft}-submenu-inline`]:{transition:[`border-color ${Ee} ${ce}`,`background ${Ee} ${ce}`,`padding ${je} ${ce}`].join(",")},[`${Ft}-submenu ${Ft}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${ce}`,`padding ${Ee} ${ce}`].join(",")},[`${Ft}-title-content`]:{transition:`color ${Ee}`},[`${Ft}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ft}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Pt,borderStyle:zn,borderWidth:0,borderTopWidth:mt,marginBlock:mt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xn(Ae)),{[`${Ft}-item-group`]:{[`${Ft}-item-group-list`]:{margin:0,padding:0,[`${Ft}-item, ${Ft}-submenu-title`]:{paddingInline:`${Kt*2}px ${$t}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Zt,borderRadius:Se,boxShadow:"none",transformOrigin:"0 0",[`&${Ft}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${xn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:xn},"\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:Ae.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ae.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ae.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ae.paddingXS},[`> ${Ft}`]:Object.assign(Object.assign(Object.assign({borderRadius:Se},Xn(Ae)),pi(Ae)),{[`${Ft}-item, ${Ft}-submenu > ${Ft}-submenu-title`]:{borderRadius:Dt},[`${Ft}-submenu-title::after`]:{transition:`transform ${Ee} ${ce}`}})}}),pi(Ae)),{[`&-inline-collapsed ${Ft}-submenu-arrow,
&-inline ${Ft}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${nn})`},"&::after":{transform:`rotate(45deg) translateX(-${nn})`}},[`${Ft}-submenu-open${Ft}-submenu-inline > ${Ft}-submenu-title > ${Ft}-submenu-arrow`]:{transform:`translateY(-${Ie*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${nn})`},"&::before":{transform:`rotate(45deg) translateX(${nn})`}}})},{[`${Ot}-layout-header`]:{[Ft]:{lineHeight:"inherit"}}}]};var bi=(Ae,Ot)=>(0,$e.Z)("Menu",Kt=>{if(Ot===!1)return[];const{colorBgElevated:Ee,colorPrimary:je,colorTextLightSolid:ce,controlHeightLG:Be,fontSize:$t,darkItemColor:Pt,darkDangerItemColor:mt,darkItemBg:Zt,darkSubMenuItemBg:Se,darkItemSelectedColor:Dt,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:nn,darkItemHoverBg:zn,darkGroupTitleColor:xn,darkItemHoverColor:li,darkItemDisabledColor:Qi,darkDangerItemHoverColor:Wi,darkDangerItemSelectedColor:pr,darkDangerItemActiveBg:xr}=Kt,qr=$t/7*5,Vr=(0,Ge.TS)(Kt,{menuArrowSize:qr,menuHorizontalHeight:Be*1.15,menuArrowOffset:`${qr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ee}),Jr=(0,Ge.TS)(Vr,{itemColor:Pt,itemHoverColor:li,groupTitleColor:xn,itemSelectedColor:Dt,itemBg:Zt,popupBg:Zt,subMenuItemBg:Se,itemActiveBg:"transparent",itemSelectedBg:Ie,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:zn,itemDisabledColor:Qi,dangerItemColor:mt,dangerItemHoverColor:Wi,dangerItemSelectedColor:pr,dangerItemActiveBg:xr,dangerItemSelectedBg:nn,menuSubMenuBg:Se,horizontalItemSelectedColor:ce,horizontalItemSelectedBg:je});return[$n(Vr),Ve(Vr),In(Vr),Fn(Vr,"light"),Fn(Jr,"dark"),xe(Vr),(0,ne.Z)(Vr),(0,Ke.oN)(Vr,"slide-up"),(0,Ke.oN)(Vr,"slide-down"),(0,Vt._y)(Vr,"zoom-big")]},Kt=>{const{colorPrimary:Ee,colorError:je,colorTextDisabled:ce,colorErrorBg:Be,colorText:$t,colorTextDescription:Pt,colorBgContainer:mt,colorFillAlter:Zt,colorFillContent:Se,lineWidth:Dt,lineWidthBold:Ie,controlItemBgActive:nn,colorBgTextHover:zn,controlHeightLG:xn,lineHeight:li,colorBgElevated:Qi,marginXXS:Wi,padding:pr,fontSize:xr,controlHeightSM:qr,fontSizeLG:Vr,colorTextLightSolid:Jr,colorErrorHover:Ir}=Kt,Xr=new pe.C(Jr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Kt.zIndexPopupBase+50,radiusItem:Kt.borderRadiusLG,itemBorderRadius:Kt.borderRadiusLG,radiusSubMenuItem:Kt.borderRadiusSM,subMenuItemBorderRadius:Kt.borderRadiusSM,colorItemText:$t,itemColor:$t,colorItemTextHover:$t,itemHoverColor:$t,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:Pt,groupTitleColor:Pt,colorItemTextSelected:Ee,itemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:mt,itemBg:mt,colorItemBgHover:zn,itemHoverBg:zn,colorItemBgActive:Se,itemActiveBg:nn,colorSubItemBg:Zt,subMenuItemBg:Zt,colorItemBgSelected:nn,itemSelectedBg:nn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ie,activeBarHeight:Ie,colorActiveBarBorderSize:Dt,activeBarBorderWidth:Dt,colorItemTextDisabled:ce,itemDisabledColor:ce,colorDangerItemText:je,dangerItemColor:je,colorDangerItemTextHover:je,dangerItemHoverColor:je,colorDangerItemTextSelected:je,dangerItemSelectedColor:je,colorDangerItemBgActive:Be,dangerItemActiveBg:Be,colorDangerItemBgSelected:Be,dangerItemSelectedBg:Be,itemMarginInline:Kt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:xn,groupTitleLineHeight:li,collapsedWidth:xn*2,popupBg:Qi,itemMarginBlock:Wi,itemPaddingInline:pr,horizontalLineHeight:`${xn*1.15}px`,iconSize:xr,iconMarginInlineEnd:qr-xr,collapsedIconSize:Vr,groupTitleFontSize:xr,darkItemDisabledColor:new pe.C(Jr).setAlpha(.25).toRgbString(),darkItemColor:Xr,darkDangerItemColor:je,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Jr,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:je,darkItemHoverBg:"transparent",darkGroupTitleColor:Xr,darkItemHoverColor:Jr,darkDangerItemHoverColor:Ir,darkDangerItemSelectedColor:Jr,darkDangerItemActiveBg:je}},{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"]]})(Ae),sn=function(Ae,Ot){var Ft={};for(var Kt in Ae)Object.prototype.hasOwnProperty.call(Ae,Kt)&&Ot.indexOf(Kt)<0&&(Ft[Kt]=Ae[Kt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Kt=Object.getOwnPropertySymbols(Ae);Ee<Kt.length;Ee++)Ot.indexOf(Kt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Kt[Ee])&&(Ft[Kt[Ee]]=Ae[Kt[Ee]]);return Ft},ji=(0,ge.forwardRef)((Ae,Ot)=>{var Ft,Kt;const Ee=ge.useContext(jt.Z),je=Ee||{},{getPrefixCls:ce,getPopupContainer:Be,direction:$t,menu:Pt}=ge.useContext(le.E_),mt=ce(),{prefixCls:Zt,className:Se,style:Dt,theme:Ie="light",expandIcon:nn,_internalDisableMenuItemTitleTooltip:zn,inlineCollapsed:xn,siderCollapsed:li,items:Qi,children:Wi,rootClassName:pr,mode:xr,selectable:qr,onClick:Vr,overflowedIndicatorPopupClassName:Jr}=Ae,Ir=sn(Ae,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xr=(0,Wt.Z)(Ir,["collapsedWidth"]),to=he(Qi)||Wi;(Ft=je.validator)===null||Ft===void 0||Ft.call(je,{mode:xr});const ho=(0,yt.useEvent)(function(){var Zs;Vr==null||Vr.apply(void 0,arguments),(Zs=je.onClick)===null||Zs===void 0||Zs.call(je)}),cs=je.mode||xr,no=qr!=null?qr:je.selectable,Is=ge.useMemo(()=>li!==void 0?li:xn,[xn,li]),So={horizontal:{motionName:`${mt}-slide-up`},inline:(0,Mt.Z)(mt),other:{motionName:`${mt}-zoom-big`}},Yt=ce("menu",Zt||je.prefixCls),[ai,Jo]=bi(Yt,!Ee),sa=re()(`${Yt}-${Ie}`,Pt==null?void 0:Pt.className,Se);let xa;if(typeof nn=="function")xa=nn;else if(nn===null||nn===!1)xa=null;else if(je.expandIcon===null||je.expandIcon===!1)xa=null;else{const Zs=nn!=null?nn:je.expandIcon;xa=(0,Jt.Tm)(Zs,{className:re()(`${Yt}-submenu-expand-icon`,(0,Jt.l$)(Zs)?(Kt=Zs.props)===null||Kt===void 0?void 0:Kt.className:"")})}const va=ge.useMemo(()=>({prefixCls:Yt,inlineCollapsed:Is||!1,direction:$t,firstLevel:!0,theme:Ie,mode:cs,disableMenuItemTitleTooltip:zn}),[Yt,Is,$t,zn,Ie]);return ai(ge.createElement(jt.Z.Provider,{value:null},ge.createElement(et.Provider,{value:va},ge.createElement(Lt.ZP,Object.assign({getPopupContainer:Be,overflowedIndicator:ge.createElement(dt.Z,null),overflowedIndicatorPopupClassName:re()(Yt,`${Yt}-${Ie}`,Jr),mode:cs,selectable:no,onClick:ho},Xr,{inlineCollapsed:Is,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Dt),className:sa,prefixCls:Yt,direction:$t,defaultMotions:So,expandIcon:xa,ref:Ot,rootClassName:re()(pr,Jo)}),to))))});const ve=(0,ge.forwardRef)((Ae,Ot)=>{const Ft=(0,ge.useRef)(null),Kt=ge.useContext(se.D);return(0,ge.useImperativeHandle)(Ot,()=>({menu:Ft.current,focus:Ee=>{var je;(je=Ft.current)===null||je===void 0||je.focus(Ee)}})),ge.createElement(ji,Object.assign({ref:Ft},Ae,Kt))});ve.Item=lt,ve.SubMenu=ht,ve.Divider=ee,ve.ItemGroup=Lt.BW;var hn=ve},25700:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return je}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(Be,$t){return ge.createElement(re.Z,(0,Lt.Z)({},Be,{ref:$t,icon:De}))},Et=ge.forwardRef(le),Tt=Et,ee=bt(93343),Ct=bt(16537),Wt=bt(53878),Gt=bt(92310),Jt=bt.n(Gt),wt=bt(80962),et=bt(57259),tt=bt(79545),lt=bt(68550),rt=bt(17928),ht=bt(7711),dt=bt(36994),yt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Mt=yt,jt=bt(91735),Rt=function(ce){(0,rt.Z)($t,ce);var Be=(0,ht.Z)($t);function $t(){var Pt;(0,tt.Z)(this,$t);for(var mt=arguments.length,Zt=new Array(mt),Se=0;Se<mt;Se++)Zt[Se]=arguments[Se];return Pt=Be.call.apply(Be,[this].concat(Zt)),Pt.state={goInputText:""},Pt.getValidValue=function(){var Dt=Pt.state.goInputText;return!Dt||Number.isNaN(Dt)?void 0:Number(Dt)},Pt.buildOptionText=function(Dt){return"".concat(Dt," ").concat(Pt.props.locale.items_per_page)},Pt.changeSize=function(Dt){Pt.props.changeSize(Number(Dt))},Pt.handleChange=function(Dt){Pt.setState({goInputText:Dt.target.value})},Pt.handleBlur=function(Dt){var Ie=Pt.props,nn=Ie.goButton,zn=Ie.quickGo,xn=Ie.rootPrefixCls,li=Pt.state.goInputText;nn||li===""||(Pt.setState({goInputText:""}),!(Dt.relatedTarget&&(Dt.relatedTarget.className.indexOf("".concat(xn,"-item-link"))>=0||Dt.relatedTarget.className.indexOf("".concat(xn,"-item"))>=0))&&zn(Pt.getValidValue()))},Pt.go=function(Dt){var Ie=Pt.state.goInputText;Ie!==""&&(Dt.keyCode===Mt.ENTER||Dt.type==="click")&&(Pt.setState({goInputText:""}),Pt.props.quickGo(Pt.getValidValue()))},Pt}return(0,lt.Z)($t,[{key:"getPageSizeOptions",value:function(){var mt=this.props,Zt=mt.pageSize,Se=mt.pageSizeOptions;return Se.some(function(Dt){return Dt.toString()===Zt.toString()})?Se:Se.concat([Zt.toString()]).sort(function(Dt,Ie){var nn=Number.isNaN(Number(Dt))?0:Number(Dt),zn=Number.isNaN(Number(Ie))?0:Number(Ie);return nn-zn})}},{key:"render",value:function(){var mt=this,Zt=this.props,Se=Zt.pageSize,Dt=Zt.locale,Ie=Zt.rootPrefixCls,nn=Zt.changeSize,zn=Zt.quickGo,xn=Zt.goButton,li=Zt.selectComponentClass,Qi=Zt.buildOptionText,Wi=Zt.selectPrefixCls,pr=Zt.disabled,xr=this.state.goInputText,qr="".concat(Ie,"-options"),Vr=li,Jr=null,Ir=null,Xr=null;if(!nn&&!zn)return null;var to=this.getPageSizeOptions();if(nn&&Vr){var ho=to.map(function(cs,no){return ge.createElement(Vr.Option,{key:no,value:cs.toString()},(Qi||mt.buildOptionText)(cs))});Jr=ge.createElement(Vr,{disabled:pr,prefixCls:Wi,showSearch:!1,className:"".concat(qr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Se||to[0]).toString(),onChange:this.changeSize,getPopupContainer:function(no){return no.parentNode},"aria-label":Dt.page_size,defaultOpen:!1},ho)}return zn&&(xn&&(Xr=typeof xn=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:pr,className:"".concat(qr,"-quick-jumper-button")},Dt.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},xn)),Ir=ge.createElement("div",{className:"".concat(qr,"-quick-jumper")},Dt.jump_to,ge.createElement("input",{disabled:pr,type:"text",value:xr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Dt.page}),Dt.page,Xr)),ge.createElement("li",{className:"".concat(qr)},Jr,Ir)}}]),$t}(ge.Component);Rt.defaultProps={pageSizeOptions:["10","20","50","100"]};var ae=Rt,he=function(Be){var $t,Pt=Be.rootPrefixCls,mt=Be.page,Zt=Be.active,Se=Be.className,Dt=Be.showTitle,Ie=Be.onClick,nn=Be.onKeyPress,zn=Be.itemRender,xn="".concat(Pt,"-item"),li=Jt()(xn,"".concat(xn,"-").concat(mt),($t={},(0,wt.Z)($t,"".concat(xn,"-active"),Zt),(0,wt.Z)($t,"".concat(xn,"-disabled"),!mt),(0,wt.Z)($t,Be.className,Se),$t)),Qi=function(){Ie(mt)},Wi=function(qr){nn(qr,Ie,mt)},pr=zn(mt,"page",ge.createElement("a",{rel:"nofollow"},mt));return pr?ge.createElement("li",{title:Dt?mt.toString():null,className:li,onClick:Qi,onKeyPress:Wi,tabIndex:0},pr):null},pe=he;function Te(){}function ne(ce){var Be=Number(ce);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}var Ke=function(Be,$t,Pt){return Pt};function Vt(ce,Be,$t){var Pt=typeof ce=="undefined"?Be.pageSize:ce;return Math.floor(($t.total-1)/Pt)+1}var $e=function(ce){(0,rt.Z)($t,ce);var Be=(0,ht.Z)($t);function $t(Pt){var mt;(0,tt.Z)(this,$t),mt=Be.call(this,Pt),mt.paginationNode=ge.createRef(),mt.getJumpPrevPage=function(){return Math.max(1,mt.state.current-(mt.props.showLessItems?3:5))},mt.getJumpNextPage=function(){return Math.min(Vt(void 0,mt.state,mt.props),mt.state.current+(mt.props.showLessItems?3:5))},mt.getItemIcon=function(nn,zn){var xn=mt.props.prefixCls,li=nn||ge.createElement("button",{type:"button","aria-label":zn,className:"".concat(xn,"-item-link")});return typeof nn=="function"&&(li=ge.createElement(nn,(0,et.Z)({},mt.props))),li},mt.isValid=function(nn){var zn=mt.props.total;return ne(nn)&&nn!==mt.state.current&&ne(zn)&&zn>0},mt.shouldDisplayQuickJumper=function(){var nn=mt.props,zn=nn.showQuickJumper,xn=nn.total,li=mt.state.pageSize;return xn<=li?!1:zn},mt.handleKeyDown=function(nn){(nn.keyCode===Mt.ARROW_UP||nn.keyCode===Mt.ARROW_DOWN)&&nn.preventDefault()},mt.handleKeyUp=function(nn){var zn=mt.getValidValue(nn),xn=mt.state.currentInputValue;zn!==xn&&mt.setState({currentInputValue:zn}),nn.keyCode===Mt.ENTER?mt.handleChange(zn):nn.keyCode===Mt.ARROW_UP?mt.handleChange(zn-1):nn.keyCode===Mt.ARROW_DOWN&&mt.handleChange(zn+1)},mt.handleBlur=function(nn){var zn=mt.getValidValue(nn);mt.handleChange(zn)},mt.changePageSize=function(nn){var zn=mt.state.current,xn=Vt(nn,mt.state,mt.props);zn=zn>xn?xn:zn,xn===0&&(zn=mt.state.current),typeof nn=="number"&&("pageSize"in mt.props||mt.setState({pageSize:nn}),"current"in mt.props||mt.setState({current:zn,currentInputValue:zn})),mt.props.onShowSizeChange(zn,nn),"onChange"in mt.props&&mt.props.onChange&&mt.props.onChange(zn,nn)},mt.handleChange=function(nn){var zn=mt.props,xn=zn.disabled,li=zn.onChange,Qi=mt.state,Wi=Qi.pageSize,pr=Qi.current,xr=Qi.currentInputValue;if(mt.isValid(nn)&&!xn){var qr=Vt(void 0,mt.state,mt.props),Vr=nn;return nn>qr?Vr=qr:nn<1&&(Vr=1),"current"in mt.props||mt.setState({current:Vr}),Vr!==xr&&mt.setState({currentInputValue:Vr}),li(Vr,Wi),Vr}return pr},mt.prev=function(){mt.hasPrev()&&mt.handleChange(mt.state.current-1)},mt.next=function(){mt.hasNext()&&mt.handleChange(mt.state.current+1)},mt.jumpPrev=function(){mt.handleChange(mt.getJumpPrevPage())},mt.jumpNext=function(){mt.handleChange(mt.getJumpNextPage())},mt.hasPrev=function(){return mt.state.current>1},mt.hasNext=function(){return mt.state.current<Vt(void 0,mt.state,mt.props)},mt.runIfEnter=function(nn,zn){if(nn.key==="Enter"||nn.charCode===13){for(var xn=arguments.length,li=new Array(xn>2?xn-2:0),Qi=2;Qi<xn;Qi++)li[Qi-2]=arguments[Qi];zn.apply(void 0,li)}},mt.runIfEnterPrev=function(nn){mt.runIfEnter(nn,mt.prev)},mt.runIfEnterNext=function(nn){mt.runIfEnter(nn,mt.next)},mt.runIfEnterJumpPrev=function(nn){mt.runIfEnter(nn,mt.jumpPrev)},mt.runIfEnterJumpNext=function(nn){mt.runIfEnter(nn,mt.jumpNext)},mt.handleGoTO=function(nn){(nn.keyCode===Mt.ENTER||nn.type==="click")&&mt.handleChange(mt.state.currentInputValue)},mt.renderPrev=function(nn){var zn=mt.props,xn=zn.prevIcon,li=zn.itemRender,Qi=li(nn,"prev",mt.getItemIcon(xn,"prev page")),Wi=!mt.hasPrev();return(0,ge.isValidElement)(Qi)?(0,ge.cloneElement)(Qi,{disabled:Wi}):Qi},mt.renderNext=function(nn){var zn=mt.props,xn=zn.nextIcon,li=zn.itemRender,Qi=li(nn,"next",mt.getItemIcon(xn,"next page")),Wi=!mt.hasNext();return(0,ge.isValidElement)(Qi)?(0,ge.cloneElement)(Qi,{disabled:Wi}):Qi};var Zt=Pt.onChange!==Te,Se="current"in Pt;Se&&!Zt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Dt=Pt.defaultCurrent;"current"in Pt&&(Dt=Pt.current);var Ie=Pt.defaultPageSize;return"pageSize"in Pt&&(Ie=Pt.pageSize),Dt=Math.min(Dt,Vt(Ie,void 0,Pt)),mt.state={current:Dt,currentInputValue:Dt,pageSize:Ie},mt}return(0,lt.Z)($t,[{key:"componentDidUpdate",value:function(mt,Zt){var Se=this.props.prefixCls;if(Zt.current!==this.state.current&&this.paginationNode.current){var Dt=this.paginationNode.current.querySelector(".".concat(Se,"-item-").concat(Zt.current));if(Dt&&document.activeElement===Dt){var Ie;Dt==null||(Ie=Dt.blur)===null||Ie===void 0||Ie.call(Dt)}}}},{key:"getValidValue",value:function(mt){var Zt=mt.target.value,Se=Vt(void 0,this.state,this.props),Dt=this.state.currentInputValue,Ie;return Zt===""?Ie=Zt:Number.isNaN(Number(Zt))?Ie=Dt:Zt>=Se?Ie=Se:Ie=Number(Zt),Ie}},{key:"getShowSizeChanger",value:function(){var mt=this.props,Zt=mt.showSizeChanger,Se=mt.total,Dt=mt.totalBoundaryShowSizeChanger;return typeof Zt!="undefined"?Zt:Se>Dt}},{key:"render",value:function(){var mt=this.props,Zt=mt.prefixCls,Se=mt.className,Dt=mt.style,Ie=mt.disabled,nn=mt.hideOnSinglePage,zn=mt.total,xn=mt.locale,li=mt.showQuickJumper,Qi=mt.showLessItems,Wi=mt.showTitle,pr=mt.showTotal,xr=mt.simple,qr=mt.itemRender,Vr=mt.showPrevNextJumpers,Jr=mt.jumpPrevIcon,Ir=mt.jumpNextIcon,Xr=mt.selectComponentClass,to=mt.selectPrefixCls,ho=mt.pageSizeOptions,cs=this.state,no=cs.current,Is=cs.pageSize,So=cs.currentInputValue;if(nn===!0&&zn<=Is)return null;var Yt=Vt(void 0,this.state,this.props),ai=[],Jo=null,sa=null,xa=null,va=null,Zs=null,Qr=li&&li.goButton,Vn=Qi?1:2,Qn=no-1>0?no-1:0,kn=no+1<Yt?no+1:Yt,rn=(0,dt.Z)(this.props,{aria:!0,data:!0}),hi=pr&&ge.createElement("li",{className:"".concat(Zt,"-total-text")},pr(zn,[zn===0?0:(no-1)*Is+1,no*Is>zn?zn:no*Is]));if(xr){Qr&&(typeof Qr=="boolean"?Zs=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},xn.jump_to_confirm):Zs=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Qr),Zs=ge.createElement("li",{title:Wi?"".concat(xn.jump_to).concat(no,"/").concat(Yt):null,className:"".concat(Zt,"-simple-pager")},Zs));var Ci=this.renderPrev(Qn);return ge.createElement("ul",(0,Lt.Z)({className:Jt()(Zt,"".concat(Zt,"-simple"),(0,wt.Z)({},"".concat(Zt,"-disabled"),Ie),Se),style:Dt,ref:this.paginationNode},rn),hi,Ci?ge.createElement("li",{title:Wi?xn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Jt()("".concat(Zt,"-prev"),(0,wt.Z)({},"".concat(Zt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ci):null,ge.createElement("li",{title:Wi?"".concat(no,"/").concat(Yt):null,className:"".concat(Zt,"-simple-pager")},ge.createElement("input",{type:"text",value:So,disabled:Ie,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat(Zt,"-slash")},"/"),Yt),ge.createElement("li",{title:Wi?xn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Jt()("".concat(Zt,"-next"),(0,wt.Z)({},"".concat(Zt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(kn)),Zs)}if(Yt<=3+Vn*2){var bn={locale:xn,rootPrefixCls:Zt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Wi,itemRender:qr};Yt||ai.push(ge.createElement(pe,(0,Lt.Z)({},bn,{key:"noPager",page:1,className:"".concat(Zt,"-item-disabled")})));for(var Ne=1;Ne<=Yt;Ne+=1){var Bn=no===Ne;ai.push(ge.createElement(pe,(0,Lt.Z)({},bn,{key:Ne,page:Ne,active:Bn})))}}else{var _n=Qi?xn.prev_3:xn.prev_5,Ii=Qi?xn.next_3:xn.next_5,ni=qr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Jr,"prev page")),mn=qr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ir,"next page"));Vr&&(Jo=ni?ge.createElement("li",{title:Wi?_n:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Jt()("".concat(Zt,"-jump-prev"),(0,wt.Z)({},"".concat(Zt,"-jump-prev-custom-icon"),!!Jr))},ni):null,sa=mn?ge.createElement("li",{title:Wi?Ii:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Jt()("".concat(Zt,"-jump-next"),(0,wt.Z)({},"".concat(Zt,"-jump-next-custom-icon"),!!Ir))},mn):null),va=ge.createElement(pe,{locale:xn,last:!0,rootPrefixCls:Zt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Yt,page:Yt,active:!1,showTitle:Wi,itemRender:qr}),xa=ge.createElement(pe,{locale:xn,rootPrefixCls:Zt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Wi,itemRender:qr});var Ai=Math.max(1,no-Vn),Mi=Math.min(no+Vn,Yt);no-1<=Vn&&(Mi=1+Vn*2),Yt-no<=Vn&&(Ai=Yt-Vn*2);for(var er=Ai;er<=Mi;er+=1){var On=no===er;ai.push(ge.createElement(pe,{locale:xn,rootPrefixCls:Zt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:er,page:er,active:On,showTitle:Wi,itemRender:qr}))}no-1>=Vn*2&&no!==3&&(ai[0]=(0,ge.cloneElement)(ai[0],{className:"".concat(Zt,"-item-after-jump-prev")}),ai.unshift(Jo)),Yt-no>=Vn*2&&no!==Yt-2&&(ai[ai.length-1]=(0,ge.cloneElement)(ai[ai.length-1],{className:"".concat(Zt,"-item-before-jump-next")}),ai.push(sa)),Ai!==1&&ai.unshift(xa),Mi!==Yt&&ai.push(va)}var Si=!this.hasPrev()||!Yt,Pr=!this.hasNext()||!Yt,rr=this.renderPrev(Qn),Kr=this.renderNext(kn);return ge.createElement("ul",(0,Lt.Z)({className:Jt()(Zt,Se,(0,wt.Z)({},"".concat(Zt,"-disabled"),Ie)),style:Dt,ref:this.paginationNode},rn),hi,rr?ge.createElement("li",{title:Wi?xn.prev_page:null,onClick:this.prev,tabIndex:Si?null:0,onKeyPress:this.runIfEnterPrev,className:Jt()("".concat(Zt,"-prev"),(0,wt.Z)({},"".concat(Zt,"-disabled"),Si)),"aria-disabled":Si},rr):null,ai,Kr?ge.createElement("li",{title:Wi?xn.next_page:null,onClick:this.next,tabIndex:Pr?null:0,onKeyPress:this.runIfEnterNext,className:Jt()("".concat(Zt,"-next"),(0,wt.Z)({},"".concat(Zt,"-disabled"),Pr)),"aria-disabled":Pr},Kr):null,ge.createElement(ae,{disabled:Ie,locale:xn,rootPrefixCls:Zt,selectComponentClass:Xr,selectPrefixCls:to,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:no,pageSize:Is,pageSizeOptions:ho,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Qr}))}}],[{key:"getDerivedStateFromProps",value:function(mt,Zt){var Se={};if("current"in mt&&(Se.current=mt.current,mt.current!==Zt.current&&(Se.currentInputValue=Se.current)),"pageSize"in mt&&mt.pageSize!==Zt.pageSize){var Dt=Zt.current,Ie=Vt(mt.pageSize,Zt,mt);Dt=Dt>Ie?Ie:Dt,"current"in mt||(Se.current=Dt,Se.currentInputValue=Dt),Se.pageSize=mt.pageSize}return Se}}]),$t}(ge.Component);$e.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Te,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Te,locale:jt.Z,style:{},itemRender:Ke,totalBoundaryShowSizeChanger:50};var Ge=$e,Oe=bt(22075),Ve=bt(36355),_e=bt(19716),xe=bt(8628),ie=bt(9763),be=bt(57809);const Fn=ce=>ge.createElement(be.default,Object.assign({},ce,{showSearch:!0,size:"small"})),Mn=ce=>ge.createElement(be.default,Object.assign({},ce,{showSearch:!0,size:"middle"}));Fn.Option=be.default.Option,Mn.Option=be.default.Option;var Xe=bt(9937),In=bt(17313),Xn=bt(83116),pi=bt(37613);const $n=ce=>{const{componentCls:Be}=ce;return{[`${Be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Be}-item-link`]:{color:ce.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Be}-item-link`]:{color:ce.colorTextDisabled,cursor:"not-allowed"}}},[`&${Be}-disabled`]:{cursor:"not-allowed",[`${Be}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ce.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ce.colorBorder,backgroundColor:ce.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ce.itemActiveBgDisabled},a:{color:ce.itemActiveColorDisabled}}},[`${Be}-item-link`]:{color:ce.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Be}-simple-pager`]:{color:ce.colorTextDisabled},[`${Be}-jump-prev, ${Be}-jump-next`]:{[`${Be}-item-link-icon`]:{opacity:0},[`${Be}-item-ellipsis`]:{opacity:1}}},[`&${Be}-simple`]:{[`${Be}-prev, ${Be}-next`]:{[`&${Be}-disabled ${Be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},bi=ce=>{const{componentCls:Be}=ce;return{[`&${Be}-mini ${Be}-total-text, &${Be}-mini ${Be}-simple-pager`]:{height:ce.itemSizeSM,lineHeight:`${ce.itemSizeSM}px`},[`&${Be}-mini ${Be}-item`]:{minWidth:ce.itemSizeSM,height:ce.itemSizeSM,margin:0,lineHeight:`${ce.itemSizeSM-2}px`},[`&${Be}-mini:not(${Be}-disabled) ${Be}-item:not(${Be}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ce.colorBgTextHover},"&:active":{backgroundColor:ce.colorBgTextActive}},[`&${Be}-mini ${Be}-prev, &${Be}-mini ${Be}-next`]:{minWidth:ce.itemSizeSM,height:ce.itemSizeSM,margin:0,lineHeight:`${ce.itemSizeSM}px`},[`&${Be}-mini:not(${Be}-disabled)`]:{[`${Be}-prev, ${Be}-next`]:{[`&:hover ${Be}-item-link`]:{backgroundColor:ce.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:ce.colorBgTextActive},[`&${Be}-disabled:hover ${Be}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Be}-mini ${Be}-prev ${Be}-item-link,
&${Be}-mini ${Be}-next ${Be}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ce.itemSizeSM,lineHeight:`${ce.itemSizeSM}px`}},[`&${Be}-mini ${Be}-jump-prev, &${Be}-mini ${Be}-jump-next`]:{height:ce.itemSizeSM,marginInlineEnd:0,lineHeight:`${ce.itemSizeSM}px`},[`&${Be}-mini ${Be}-options`]:{marginInlineStart:ce.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ce.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ce.itemSizeSM,lineHeight:`${ce.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Xe.x0)(ce)),{width:ce.paginationMiniQuickJumperInputWidth,height:ce.controlHeightSM})}}}},sn=ce=>{const{componentCls:Be}=ce;return{[`
&${Be}-simple ${Be}-prev,
&${Be}-simple ${Be}-next
`]:{height:ce.itemSizeSM,lineHeight:`${ce.itemSizeSM}px`,verticalAlign:"top",[`${Be}-item-link`]:{height:ce.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ce.colorBgTextHover},"&:active":{backgroundColor:ce.colorBgTextActive},"&::after":{height:ce.itemSizeSM,lineHeight:`${ce.itemSizeSM}px`}}},[`&${Be}-simple ${Be}-simple-pager`]:{display:"inline-block",height:ce.itemSizeSM,marginInlineEnd:ce.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ce.marginXS,padding:`0 ${ce.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ce.itemInputBg,border:`${ce.lineWidth}px ${ce.lineType} ${ce.colorBorder}`,borderRadius:ce.borderRadius,outline:"none",transition:`border-color ${ce.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ce.colorPrimary},"&:focus":{borderColor:ce.colorPrimaryHover,boxShadow:`${ce.inputOutlineOffset}px 0 ${ce.controlOutlineWidth}px ${ce.controlOutline}`},"&[disabled]":{color:ce.colorTextDisabled,backgroundColor:ce.colorBgContainerDisabled,borderColor:ce.colorBorder,cursor:"not-allowed"}}}}},Li=ce=>{const{componentCls:Be}=ce;return{[`${Be}-jump-prev, ${Be}-jump-next`]:{outline:0,[`${Be}-item-container`]:{position:"relative",[`${Be}-item-link-icon`]:{color:ce.colorPrimary,fontSize:ce.fontSizeSM,opacity:0,transition:`all ${ce.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Be}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ce.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ce.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ce.paginationEllipsisTextIndent,opacity:1,transition:`all ${ce.motionDurationMid}`}},"&:hover":{[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}}},[`
${Be}-prev,
${Be}-jump-prev,
${Be}-jump-next
`]:{marginInlineEnd:ce.marginXS},[`
${Be}-prev,
${Be}-next,
${Be}-jump-prev,
${Be}-jump-next
`]:{display:"inline-block",minWidth:ce.itemSize,height:ce.itemSize,color:ce.colorText,fontFamily:ce.fontFamily,lineHeight:`${ce.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ce.borderRadius,cursor:"pointer",transition:`all ${ce.motionDurationMid}`},[`${Be}-prev, ${Be}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ce.colorText,cursor:"pointer",userSelect:"none"},[`${Be}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ce.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ce.lineWidth}px ${ce.lineType} transparent`,borderRadius:ce.borderRadius,outline:"none",transition:`all ${ce.motionDurationMid}`},[`&:hover ${Be}-item-link`]:{backgroundColor:ce.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:ce.colorBgTextActive},[`&${Be}-disabled:hover`]:{[`${Be}-item-link`]:{backgroundColor:"transparent"}}},[`${Be}-slash`]:{marginInlineEnd:ce.paginationSlashMarginInlineEnd,marginInlineStart:ce.paginationSlashMarginInlineStart},[`${Be}-options`]:{display:"inline-block",marginInlineStart:ce.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ce.controlHeight,marginInlineStart:ce.marginXS,lineHeight:`${ce.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Xe.ik)(ce)),{width:ce.controlHeightLG*1.25,height:ce.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ce.marginXS,marginInlineEnd:ce.marginXS})}}}},ji=ce=>{const{componentCls:Be}=ce;return{[`${Be}-item`]:{display:"inline-block",minWidth:ce.itemSize,height:ce.itemSize,marginInlineEnd:ce.marginXS,fontFamily:ce.fontFamily,lineHeight:`${ce.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ce.lineWidth}px ${ce.lineType} transparent`,borderRadius:ce.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ce.paginationItemPaddingInline}px`,color:ce.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Be}-item-active)`]:{"&:hover":{transition:`all ${ce.motionDurationMid}`,backgroundColor:ce.colorBgTextHover},"&:active":{backgroundColor:ce.colorBgTextActive}},"&-active":{fontWeight:ce.fontWeightStrong,backgroundColor:ce.itemActiveBg,borderColor:ce.colorPrimary,a:{color:ce.colorPrimary},"&:hover":{borderColor:ce.colorPrimaryHover},"&:hover a":{color:ce.colorPrimaryHover}}}}},ve=ce=>{const{componentCls:Be}=ce;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,In.Wf)(ce)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Be}-total-text`]:{display:"inline-block",height:ce.itemSize,marginInlineEnd:ce.marginXS,lineHeight:`${ce.itemSize-2}px`,verticalAlign:"middle"}}),ji(ce)),Li(ce)),sn(ce)),bi(ce)),$n(ce)),{[`@media only screen and (max-width: ${ce.screenLG}px)`]:{[`${Be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ce.screenSM}px)`]:{[`${Be}-options`]:{display:"none"}}}),[`&${ce.componentCls}-rtl`]:{direction:"rtl"}}},hn=ce=>{const{componentCls:Be}=ce;return{[`${Be}${Be}-disabled:not(${Be}-mini)`]:{"&, &:hover":{[`${Be}-item-link`]:{borderColor:ce.colorBorder}},"&:focus-visible":{[`${Be}-item-link`]:{borderColor:ce.colorBorder}},[`${Be}-item, ${Be}-item-link`]:{backgroundColor:ce.colorBgContainerDisabled,borderColor:ce.colorBorder,[`&:hover:not(${Be}-item-active)`]:{backgroundColor:ce.colorBgContainerDisabled,borderColor:ce.colorBorder,a:{color:ce.colorTextDisabled}},[`&${Be}-item-active`]:{backgroundColor:ce.itemActiveBgDisabled}},[`${Be}-prev, ${Be}-next`]:{"&:hover button":{backgroundColor:ce.colorBgContainerDisabled,borderColor:ce.colorBorder,color:ce.colorTextDisabled},[`${Be}-item-link`]:{backgroundColor:ce.colorBgContainerDisabled,borderColor:ce.colorBorder}}},[`${Be}:not(${Be}-mini)`]:{[`${Be}-prev, ${Be}-next`]:{"&:hover button":{borderColor:ce.colorPrimaryHover,backgroundColor:ce.itemBg},[`${Be}-item-link`]:{backgroundColor:ce.itemLinkBg,borderColor:ce.colorBorder},[`&:hover ${Be}-item-link`]:{borderColor:ce.colorPrimary,backgroundColor:ce.itemBg,color:ce.colorPrimary},[`&${Be}-disabled`]:{[`${Be}-item-link`]:{borderColor:ce.colorBorder,color:ce.colorTextDisabled}}},[`${Be}-item`]:{backgroundColor:ce.itemBg,border:`${ce.lineWidth}px ${ce.lineType} ${ce.colorBorder}`,[`&:hover:not(${Be}-item-active)`]:{borderColor:ce.colorPrimary,backgroundColor:ce.itemBg,a:{color:ce.colorPrimary}},"&-active":{borderColor:ce.colorPrimary}}}}},Ae=ce=>{const{componentCls:Be}=ce;return{[`${Be}:not(${Be}-disabled)`]:{[`${Be}-item`]:Object.assign({},(0,In.Qy)(ce)),[`${Be}-jump-prev, ${Be}-jump-next`]:{"&:focus-visible":Object.assign({[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}},(0,In.oN)(ce))},[`${Be}-prev, ${Be}-next`]:{[`&:focus-visible ${Be}-item-link`]:Object.assign({},(0,In.oN)(ce))}}}};var Ot=(0,Xn.Z)("Pagination",ce=>{const Be=(0,pi.TS)(ce,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ce.marginXXS/2,paginationMiniQuickJumperInputWidth:ce.controlHeightLG*1.1,paginationItemPaddingInline:ce.marginXXS*1.5,paginationEllipsisLetterSpacing:ce.marginXXS/2,paginationSlashMarginInlineStart:ce.marginXXS,paginationSlashMarginInlineEnd:ce.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Xe.e5)(ce),(0,Xe.TM)(ce));return[ve(Be),Ae(Be),ce.wireframe&&hn(Be)]},ce=>({itemBg:ce.colorBgContainer,itemSize:ce.controlHeight,itemSizeSM:ce.controlHeightSM,itemActiveBg:ce.colorBgContainer,itemLinkBg:ce.colorBgContainer,itemActiveColorDisabled:ce.colorTextDisabled,itemActiveBgDisabled:ce.controlItemBgActiveDisabled,itemInputBg:ce.colorBgContainer,miniOptionsSizeChangerTop:0})),Ft=function(ce,Be){var $t={};for(var Pt in ce)Object.prototype.hasOwnProperty.call(ce,Pt)&&Be.indexOf(Pt)<0&&($t[Pt]=ce[Pt]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Pt=Object.getOwnPropertySymbols(ce);mt<Pt.length;mt++)Be.indexOf(Pt[mt])<0&&Object.prototype.propertyIsEnumerable.call(ce,Pt[mt])&&($t[Pt[mt]]=ce[Pt[mt]]);return $t},Ee=ce=>{const{prefixCls:Be,selectPrefixCls:$t,className:Pt,rootClassName:mt,style:Zt,size:Se,locale:Dt,selectComponentClass:Ie,responsive:nn,showSizeChanger:zn}=ce,xn=Ft(ce,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:li}=(0,xe.Z)(nn),{getPrefixCls:Qi,direction:Wi,pagination:pr={}}=ge.useContext(Ve.E_),xr=Qi("pagination",Be),[qr,Vr]=Ot(xr),Jr=zn!=null?zn:pr.showSizeChanger,Ir=ge.useMemo(()=>{const Yt=ge.createElement("span",{className:`${xr}-item-ellipsis`},"\u2022\u2022\u2022"),ai=ge.createElement("button",{className:`${xr}-item-link`,type:"button",tabIndex:-1},Wi==="rtl"?ge.createElement(Wt.Z,null):ge.createElement(Ct.Z,null)),Jo=ge.createElement("button",{className:`${xr}-item-link`,type:"button",tabIndex:-1},Wi==="rtl"?ge.createElement(Ct.Z,null):ge.createElement(Wt.Z,null)),sa=ge.createElement("a",{className:`${xr}-item-link`},ge.createElement("div",{className:`${xr}-item-container`},Wi==="rtl"?ge.createElement(ee.Z,{className:`${xr}-item-link-icon`}):ge.createElement(Tt,{className:`${xr}-item-link-icon`}),Yt)),xa=ge.createElement("a",{className:`${xr}-item-link`},ge.createElement("div",{className:`${xr}-item-container`},Wi==="rtl"?ge.createElement(Tt,{className:`${xr}-item-link-icon`}):ge.createElement(ee.Z,{className:`${xr}-item-link-icon`}),Yt));return{prevIcon:ai,nextIcon:Jo,jumpPrevIcon:sa,jumpNextIcon:xa}},[Wi,xr]),[Xr]=(0,ie.Z)("Pagination",Oe.Z),to=Object.assign(Object.assign({},Xr),Dt),ho=(0,_e.Z)(Se),cs=ho==="small"||!!(li&&!ho&&nn),no=Qi("select",$t),Is=Jt()({[`${xr}-mini`]:cs,[`${xr}-rtl`]:Wi==="rtl"},pr==null?void 0:pr.className,Pt,mt,Vr),So=Object.assign(Object.assign({},pr==null?void 0:pr.style),Zt);return qr(ge.createElement(Ge,Object.assign({},Ir,xn,{style:So,prefixCls:xr,selectPrefixCls:no,className:Is,selectComponentClass:Ie||(cs?Fn:Mn),locale:to,showSizeChanger:Jr})))},je=Ee},39978:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ie}});var Lt=bt(5891),ge=bt(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},De=se,re=bt(88853),le=function(Fn,Mn){return ge.createElement(re.Z,(0,Lt.Z)({},Fn,{ref:Mn,icon:De}))},Et=ge.forwardRef(le),Tt=Et,ee=bt(92310),Ct=bt.n(ee),Wt=bt(80962),Gt=bt(29043),Jt=bt(19149),wt=bt(35788),et=bt(85108),tt=bt(36994);function lt(be,Fn){var Mn=be.disabled,Xe=be.prefixCls,In=be.character,Xn=be.characterRender,pi=be.index,$n=be.count,bi=be.value,sn=be.allowHalf,Li=be.focused,ji=be.onHover,ve=be.onClick,hn=function(Be){ji(Be,pi)},Ae=function(Be){ve(Be,pi)},Ot=function(Be){Be.keyCode===et.Z.ENTER&&ve(Be,pi)},Ft=pi+1,Kt=new Set([Xe]);bi===0&&pi===0&&Li?Kt.add("".concat(Xe,"-focused")):sn&&bi+.5>=Ft&&bi<Ft?(Kt.add("".concat(Xe,"-half")),Kt.add("".concat(Xe,"-active")),Li&&Kt.add("".concat(Xe,"-focused"))):(Ft<=bi?Kt.add("".concat(Xe,"-full")):Kt.add("".concat(Xe,"-zero")),Ft===bi&&Li&&Kt.add("".concat(Xe,"-focused")));var Ee=typeof In=="function"?In(be):In,je=ge.createElement("li",{className:Ct()(Array.from(Kt)),ref:Fn},ge.createElement("div",{onClick:Mn?null:Ae,onKeyDown:Mn?null:Ot,onMouseMove:Mn?null:hn,role:"radio","aria-checked":bi>pi?"true":"false","aria-posinset":pi+1,"aria-setsize":$n,tabIndex:Mn?-1:0},ge.createElement("div",{className:"".concat(Xe,"-first")},Ee),ge.createElement("div",{className:"".concat(Xe,"-second")},Ee)));return Xn&&(je=Xn(je,be)),je}var rt=ge.forwardRef(lt);function ht(){var be=ge.useRef({});function Fn(Xe){return be.current[Xe]}function Mn(Xe){return function(In){be.current[Xe]=In}}return[Fn,Mn]}function dt(be){var Fn=be.pageXOffset,Mn="scrollLeft";if(typeof Fn!="number"){var Xe=be.document;Fn=Xe.documentElement[Mn],typeof Fn!="number"&&(Fn=Xe.body[Mn])}return Fn}function yt(be){var Fn,Mn,Xe=be.ownerDocument,In=Xe.body,Xn=Xe&&Xe.documentElement,pi=be.getBoundingClientRect();return Fn=pi.left,Mn=pi.top,Fn-=Xn.clientLeft||In.clientLeft||0,Mn-=Xn.clientTop||In.clientTop||0,{left:Fn,top:Mn}}function Mt(be){var Fn=yt(be),Mn=be.ownerDocument,Xe=Mn.defaultView||Mn.parentWindow;return Fn.left+=dt(Xe),Fn.left}var jt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Rt(be,Fn){var Mn,Xe=be.prefixCls,In=Xe===void 0?"rc-rate":Xe,Xn=be.className,pi=be.defaultValue,$n=be.value,bi=be.count,sn=bi===void 0?5:bi,Li=be.allowHalf,ji=Li===void 0?!1:Li,ve=be.allowClear,hn=ve===void 0?!0:ve,Ae=be.character,Ot=Ae===void 0?"\u2605":Ae,Ft=be.characterRender,Kt=be.disabled,Ee=be.direction,je=Ee===void 0?"ltr":Ee,ce=be.tabIndex,Be=ce===void 0?0:ce,$t=be.autoFocus,Pt=be.onHoverChange,mt=be.onChange,Zt=be.onFocus,Se=be.onBlur,Dt=be.onKeyDown,Ie=be.onMouseLeave,nn=(0,Jt.Z)(be,jt),zn=ht(),xn=(0,Gt.Z)(zn,2),li=xn[0],Qi=xn[1],Wi=ge.useRef(null),pr=function(){if(!Kt){var Ne;(Ne=Wi.current)===null||Ne===void 0||Ne.focus()}};ge.useImperativeHandle(Fn,function(){return{focus:pr,blur:function(){if(!Kt){var Ne;(Ne=Wi.current)===null||Ne===void 0||Ne.blur()}}}});var xr=(0,wt.Z)(pi||0,{value:$n}),qr=(0,Gt.Z)(xr,2),Vr=qr[0],Jr=qr[1],Ir=(0,wt.Z)(null),Xr=(0,Gt.Z)(Ir,2),to=Xr[0],ho=Xr[1],cs=function(Ne,Bn){var _n=je==="rtl",Ii=Ne+1;if(ji){var ni=li(Ne),mn=Mt(ni),Ai=ni.clientWidth;(_n&&Bn-mn>Ai/2||!_n&&Bn-mn<Ai/2)&&(Ii-=.5)}return Ii},no=function(Ne){Jr(Ne),mt==null||mt(Ne)},Is=ge.useState(!1),So=(0,Gt.Z)(Is,2),Yt=So[0],ai=So[1],Jo=function(){ai(!0),Zt==null||Zt()},sa=function(){ai(!1),Se==null||Se()},xa=ge.useState(null),va=(0,Gt.Z)(xa,2),Zs=va[0],Qr=va[1],Vn=function(Ne,Bn){var _n=cs(Bn,Ne.pageX);_n!==to&&(Qr(_n),ho(null)),Pt==null||Pt(_n)},Qn=function(Ne){Kt||(Qr(null),ho(null),Pt==null||Pt(void 0)),Ne&&(Ie==null||Ie(Ne))},kn=function(Ne,Bn){var _n=cs(Bn,Ne.pageX),Ii=!1;hn&&(Ii=_n===Vr),Qn(),no(Ii?0:_n),ho(Ii?_n:null)},rn=function(Ne){var Bn=Ne.keyCode,_n=je==="rtl",Ii=Vr;Bn===et.Z.RIGHT&&Ii<sn&&!_n?(ji?Ii+=.5:Ii+=1,no(Ii),Ne.preventDefault()):Bn===et.Z.LEFT&&Ii>0&&!_n||Bn===et.Z.RIGHT&&Ii>0&&_n?(ji?Ii-=.5:Ii-=1,no(Ii),Ne.preventDefault()):Bn===et.Z.LEFT&&Ii<sn&&_n&&(ji?Ii+=.5:Ii+=1,no(Ii),Ne.preventDefault()),Dt==null||Dt(Ne)};ge.useEffect(function(){$t&&!Kt&&pr()},[]);var hi=new Array(sn).fill(0).map(function(bn,Ne){return ge.createElement(rt,{ref:Qi(Ne),index:Ne,count:sn,disabled:Kt,prefixCls:"".concat(In,"-star"),allowHalf:ji,value:Zs===null?Vr:Zs,onClick:kn,onHover:Vn,key:bn||Ne,character:Ot,characterRender:Ft,focused:Yt})}),Ci=Ct()(In,Xn,(Mn={},(0,Wt.Z)(Mn,"".concat(In,"-disabled"),Kt),(0,Wt.Z)(Mn,"".concat(In,"-rtl"),je==="rtl"),Mn));return ge.createElement("ul",(0,Lt.Z)({className:Ci,onMouseLeave:Qn,tabIndex:Kt?-1:Be,onFocus:Kt?null:Jo,onBlur:Kt?null:sa,onKeyDown:Kt?null:rn,ref:Wi,role:"radiogroup"},(0,tt.Z)(nn,{aria:!0,data:!0,attr:!0})),hi)}var ae=ge.forwardRef(Rt),he=ae,pe=bt(36355),Te=bt(6848),ne=bt(17313),Ke=bt(83116),Vt=bt(37613);const $e=be=>{const{componentCls:Fn}=be;return{[`${Fn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:be.marginXS},"> div":{transition:`all ${be.motionDurationMid}, outline 0s`,"&:hover":{transform:be.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${be.lineWidth}px dashed ${be.starColor}`,transform:be.starHoverScale}},"&-first, &-second":{color:be.starBg,transition:`all ${be.motionDurationMid}`,userSelect:"none",[be.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Fn}-star-first, &-half ${Fn}-star-second`]:{opacity:1},[`&-half ${Fn}-star-first, &-full ${Fn}-star-second`]:{color:"inherit"}}}},Ge=be=>({[`&-rtl${be.componentCls}`]:{direction:"rtl"}}),Oe=be=>{const{componentCls:Fn}=be;return{[Fn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ne.Wf)(be)),{display:"inline-block",margin:0,padding:0,color:be.starColor,fontSize:be.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Fn} ${Fn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),$e(be)),{[`+ ${Fn}-text`]:{display:"inline-block",marginInlineStart:be.marginXS,fontSize:be.fontSize}}),Ge(be))}};var Ve=(0,Ke.Z)("Rate",be=>{const Fn=(0,Vt.TS)(be,{});return[Oe(Fn)]},be=>({starColor:be.yellow6,starSize:be.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:be.colorFillContent})),_e=function(be,Fn){var Mn={};for(var Xe in be)Object.prototype.hasOwnProperty.call(be,Xe)&&Fn.indexOf(Xe)<0&&(Mn[Xe]=be[Xe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,Xe=Object.getOwnPropertySymbols(be);In<Xe.length;In++)Fn.indexOf(Xe[In])<0&&Object.prototype.propertyIsEnumerable.call(be,Xe[In])&&(Mn[Xe[In]]=be[Xe[In]]);return Mn},ie=ge.forwardRef((be,Fn)=>{const{prefixCls:Mn,className:Xe,rootClassName:In,style:Xn,tooltips:pi,character:$n=ge.createElement(Tt,null)}=be,bi=_e(be,["prefixCls","className","rootClassName","style","tooltips","character"]),sn=(Kt,Ee)=>{let{index:je}=Ee;return pi?ge.createElement(Te.Z,{title:pi[je]},Kt):Kt},{getPrefixCls:Li,direction:ji,rate:ve}=ge.useContext(pe.E_),hn=Li("rate",Mn),[Ae,Ot]=Ve(hn),Ft=Object.assign(Object.assign({},ve==null?void 0:ve.style),Xn);return Ae(ge.createElement(he,Object.assign({ref:Fn,character:$n,characterRender:sn},bi,{className:Ct()(Xe,In,Ot,ve==null?void 0:ve.className),style:Ft,prefixCls:hn,direction:ji})))})},57809:function(di,Pn,bt){"use strict";var Lt=bt(92310),ge=bt.n(Lt),se=bt(77861),De=bt(64002),re=bt(59301),le=bt(53487),Et=bt(62892),Tt=bt(19080),ee=bt(36355),Ct=bt(1684),Wt=bt(93891),Gt=bt(19716),Jt=bt(32441),wt=bt(33234),et=bt(14154),tt=bt(58582),lt=bt(84443),rt=bt(66339),ht=function(Rt,ae){var he={};for(var pe in Rt)Object.prototype.hasOwnProperty.call(Rt,pe)&&ae.indexOf(pe)<0&&(he[pe]=Rt[pe]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,pe=Object.getOwnPropertySymbols(Rt);Te<pe.length;Te++)ae.indexOf(pe[Te])<0&&Object.prototype.propertyIsEnumerable.call(Rt,pe[Te])&&(he[pe[Te]]=Rt[pe[Te]]);return he};const dt="SECRET_COMBOBOX_MODE_DO_NOT_USE",yt=(Rt,ae)=>{var he,{prefixCls:pe,bordered:Te=!0,className:ne,rootClassName:Ke,getPopupContainer:Vt,popupClassName:$e,dropdownClassName:Ge,listHeight:Oe=256,placement:Ve,listItemHeight:_e=24,size:xe,disabled:ie,notFoundContent:be,status:Fn,builtinPlacements:Mn,dropdownMatchSelectWidth:Xe,popupMatchSelectWidth:In,direction:Xn,style:pi,allowClear:$n}=Rt,bi=ht(Rt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:sn,getPrefixCls:Li,renderEmpty:ji,direction:ve,virtual:hn,popupMatchSelectWidth:Ae,popupOverflow:Ot,select:Ft}=re.useContext(ee.E_),Kt=Li("select",pe),Ee=Li(),je=Xn!=null?Xn:ve,{compactSize:ce,compactItemClassnames:Be}=(0,wt.ri)(Kt,je),[$t,Pt]=(0,et.Z)(Kt),mt=re.useMemo(()=>{const{mode:So}=bi;if(So!=="combobox")return So===dt?"combobox":So},[bi.mode]),Zt=mt==="multiple"||mt==="tags",Se=(0,lt.Z)(bi.suffixIcon,bi.showArrow),Dt=(he=In!=null?In:Xe)!==null&&he!==void 0?he:Ae,{status:Ie,hasFeedback:nn,isFormItemInput:zn,feedbackIcon:xn}=re.useContext(Jt.aM),li=(0,Tt.F)(Ie,Fn);let Qi;be!==void 0?Qi=be:mt==="combobox"?Qi=null:Qi=(ji==null?void 0:ji("Select"))||re.createElement(Wt.Z,{componentName:"Select"});const{suffixIcon:Wi,itemIcon:pr,removeIcon:xr,clearIcon:qr}=(0,rt.Z)(Object.assign(Object.assign({},bi),{multiple:Zt,hasFeedback:nn,feedbackIcon:xn,showSuffixIcon:Se,prefixCls:Kt,showArrow:bi.showArrow,componentName:"Select"})),Vr=$n===!0?{clearIcon:qr}:$n,Jr=(0,De.Z)(bi,["suffixIcon","itemIcon"]),Ir=ge()($e||Ge,{[`${Kt}-dropdown-${je}`]:je==="rtl"},Ke,Pt),Xr=(0,Gt.Z)(So=>{var Yt;return(Yt=xe!=null?xe:ce)!==null&&Yt!==void 0?Yt:So}),to=re.useContext(Ct.Z),ho=ie!=null?ie:to,cs=ge()({[`${Kt}-lg`]:Xr==="large",[`${Kt}-sm`]:Xr==="small",[`${Kt}-rtl`]:je==="rtl",[`${Kt}-borderless`]:!Te,[`${Kt}-in-form-item`]:zn},(0,Tt.Z)(Kt,li,nn),Be,Ft==null?void 0:Ft.className,ne,Ke,Pt),no=re.useMemo(()=>Ve!==void 0?Ve:je==="rtl"?"bottomRight":"bottomLeft",[Ve,je]),Is=(0,tt.Z)(Mn,Ot);return $t(re.createElement(se.ZP,Object.assign({ref:ae,virtual:hn,showSearch:Ft==null?void 0:Ft.showSearch},Jr,{style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),pi),dropdownMatchSelectWidth:Dt,builtinPlacements:Is,transitionName:(0,Et.m)(Ee,"slide-up",bi.transitionName),listHeight:Oe,listItemHeight:_e,mode:mt,prefixCls:Kt,placement:no,direction:je,suffixIcon:Wi,menuItemSelectedIcon:pr,removeIcon:xr,allowClear:Vr,notFoundContent:Qi,className:cs,getPopupContainer:Vt||sn,dropdownClassName:Ir,disabled:ho})))},Mt=re.forwardRef(yt),jt=(0,le.Z)(Mt);Mt.SECRET_COMBOBOX_MODE_DO_NOT_USE=dt,Mt.Option=se.Wx,Mt.OptGroup=se.Xo,Mt._InternalPanelDoNotUseOrYouWillBeFired=jt,Pn.default=Mt},14154:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Mt}});var Lt=bt(17313),ge=bt(74207),se=bt(37613),De=bt(83116),re=bt(13826),le=bt(92899);const Et=jt=>{const{optionHeight:Rt,optionFontSize:ae,optionLineHeight:he,optionPadding:pe}=jt;return{position:"relative",display:"block",minHeight:Rt,padding:pe,color:jt.colorText,fontWeight:"normal",fontSize:ae,lineHeight:he,boxSizing:"border-box"}};var ee=jt=>{const{antCls:Rt,componentCls:ae}=jt,he=`${ae}-item`,pe=`&${Rt}-slide-up-enter${Rt}-slide-up-enter-active`,Te=`&${Rt}-slide-up-appear${Rt}-slide-up-appear-active`,ne=`&${Rt}-slide-up-leave${Rt}-slide-up-leave-active`,Ke=`${ae}-dropdown-placement-`;return[{[`${ae}-dropdown`]:Object.assign(Object.assign({},(0,Lt.Wf)(jt)),{position:"absolute",top:-9999,zIndex:jt.zIndexPopup,boxSizing:"border-box",padding:jt.paddingXXS,overflow:"hidden",fontSize:jt.fontSize,fontVariant:"initial",backgroundColor:jt.colorBgElevated,borderRadius:jt.borderRadiusLG,outline:"none",boxShadow:jt.boxShadowSecondary,[`
${pe}${Ke}bottomLeft,
${Te}${Ke}bottomLeft
`]:{animationName:re.fJ},[`
${pe}${Ke}topLeft,
${Te}${Ke}topLeft,
${pe}${Ke}topRight,
${Te}${Ke}topRight
`]:{animationName:re.Qt},[`${ne}${Ke}bottomLeft`]:{animationName:re.Uw},[`
${ne}${Ke}topLeft,
${ne}${Ke}topRight
`]:{animationName:re.ly},"&-hidden":{display:"none"},[`${he}`]:Object.assign(Object.assign({},Et(jt)),{cursor:"pointer",transition:`background ${jt.motionDurationSlow} ease`,borderRadius:jt.borderRadiusSM,"&-group":{color:jt.colorTextDescription,fontSize:jt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Lt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${he}-option-disabled)`]:{backgroundColor:jt.optionActiveBg},[`&-selected:not(${he}-option-disabled)`]:{color:jt.optionSelectedColor,fontWeight:jt.optionSelectedFontWeight,backgroundColor:jt.optionSelectedBg,[`${he}-option-state`]:{color:jt.colorPrimary}},"&-disabled":{[`&${he}-option-selected`]:{backgroundColor:jt.colorBgContainerDisabled},color:jt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:jt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,re.oN)(jt,"slide-up"),(0,re.oN)(jt,"slide-down"),(0,le.Fm)(jt,"move-up"),(0,le.Fm)(jt,"move-down")]};const Ct=2,Wt=jt=>{let{controlHeightSM:Rt,controlHeight:ae,lineWidth:he}=jt;const pe=(ae-Rt)/2-he,Te=Math.ceil(pe/2);return[pe,Te]};function Gt(jt,Rt){const{componentCls:ae,iconCls:he}=jt,pe=`${ae}-selection-overflow`,Te=jt.multipleSelectItemHeight,[ne]=Wt(jt),Ke=Rt?`${ae}-${Rt}`:"";return{[`${ae}-multiple${Ke}`]:{fontSize:jt.fontSize,[pe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ae}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ne-Ct}px ${Ct*2}px`,borderRadius:jt.borderRadius,[`${ae}-show-search&`]:{cursor:"text"},[`${ae}-disabled&`]:{background:jt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ct}px 0`,lineHeight:`${Te}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${ae}-show-arrow ${ae}-selector,
&${ae}-allow-clear ${ae}-selector
`]:{paddingInlineEnd:jt.fontSizeIcon+jt.controlPaddingHorizontal},[`${ae}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Te,marginTop:Ct,marginBottom:Ct,lineHeight:`${Te-jt.lineWidth*2}px`,background:jt.multipleItemBg,border:`${jt.lineWidth}px ${jt.lineType} ${jt.multipleItemBorderColor}`,borderRadius:jt.borderRadiusSM,cursor:"default",transition:`font-size ${jt.motionDurationSlow}, line-height ${jt.motionDurationSlow}, height ${jt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ct*2,paddingInlineStart:jt.paddingXS,paddingInlineEnd:jt.paddingXS/2,[`${ae}-disabled&`]:{color:jt.multipleItemColorDisabled,borderColor:jt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:jt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Lt.Ro)()),{display:"inline-flex",alignItems:"center",color:jt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${he}`]:{verticalAlign:"-0.2em"},"&:hover":{color:jt.colorIconHover}})},[`${pe}-item + ${pe}-item`]:{[`${ae}-selection-search`]:{marginInlineStart:0}},[`${ae}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:jt.inputPaddingHorizontalBase-ne,"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:jt.fontFamily,lineHeight:`${Te}px`,transition:`all ${jt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ae}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:jt.inputPaddingHorizontalBase,insetInlineEnd:jt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${jt.motionDurationSlow}`}}}}var wt=jt=>{const{componentCls:Rt}=jt,ae=(0,se.TS)(jt,{controlHeight:jt.controlHeightSM,multipleSelectItemHeight:jt.controlHeightXS,borderRadius:jt.borderRadiusSM,borderRadiusSM:jt.borderRadiusXS}),he=(0,se.TS)(jt,{fontSize:jt.fontSizeLG,controlHeight:jt.controlHeightLG,multipleSelectItemHeight:jt.multipleItemHeightLG,borderRadius:jt.borderRadiusLG,borderRadiusSM:jt.borderRadius}),[,pe]=Wt(jt);return[Gt(jt),Gt(ae,"sm"),{[`${Rt}-multiple${Rt}-sm`]:{[`${Rt}-selection-placeholder`]:{insetInline:jt.controlPaddingHorizontalSM-jt.lineWidth},[`${Rt}-selection-search`]:{marginInlineStart:pe}}},Gt(he,"lg")]};function et(jt,Rt){const{componentCls:ae,inputPaddingHorizontalBase:he,borderRadius:pe}=jt,Te=jt.controlHeight-jt.lineWidth*2,ne=Math.ceil(jt.fontSize*1.25),Ke=Rt?`${ae}-${Rt}`:"";return{[`${ae}-single${Ke}`]:{fontSize:jt.fontSize,[`${ae}-selector`]:Object.assign(Object.assign({},(0,Lt.Wf)(jt)),{display:"flex",borderRadius:pe,[`${ae}-selection-search`]:{position:"absolute",top:0,insetInlineStart:he,insetInlineEnd:he,bottom:0,"&-input":{width:"100%"}},[`
${ae}-selection-item,
${ae}-selection-placeholder
`]:{padding:0,lineHeight:`${Te}px`,transition:`all ${jt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Te}px`}},[`${ae}-selection-item`]:{position:"relative",userSelect:"none"},[`${ae}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ae}-selection-item:after`,`${ae}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${ae}-show-arrow ${ae}-selection-item,
&${ae}-show-arrow ${ae}-selection-placeholder
`]:{paddingInlineEnd:ne},[`&${ae}-open ${ae}-selection-item`]:{color:jt.colorTextPlaceholder},[`&:not(${ae}-customize-input)`]:{[`${ae}-selector`]:{width:"100%",height:jt.controlHeight,padding:`0 ${he}px`,[`${ae}-selection-search-input`]:{height:Te},"&:after":{lineHeight:`${Te}px`}}},[`&${ae}-customize-input`]:{[`${ae}-selector`]:{"&:after":{display:"none"},[`${ae}-selection-search`]:{position:"static",width:"100%"},[`${ae}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${he}px`,"&:after":{display:"none"}}}}}}}function tt(jt){const{componentCls:Rt}=jt,ae=jt.controlPaddingHorizontalSM-jt.lineWidth;return[et(jt),et((0,se.TS)(jt,{controlHeight:jt.controlHeightSM,borderRadius:jt.borderRadiusSM}),"sm"),{[`${Rt}-single${Rt}-sm`]:{[`&:not(${Rt}-customize-input)`]:{[`${Rt}-selection-search`]:{insetInlineStart:ae,insetInlineEnd:ae},[`${Rt}-selector`]:{padding:`0 ${ae}px`},[`&${Rt}-show-arrow ${Rt}-selection-search`]:{insetInlineEnd:ae+jt.fontSize*1.5},[`
&${Rt}-show-arrow ${Rt}-selection-item,
&${Rt}-show-arrow ${Rt}-selection-placeholder
`]:{paddingInlineEnd:jt.fontSize*1.5}}}},et((0,se.TS)(jt,{controlHeight:jt.singleItemHeightLG,fontSize:jt.fontSizeLG,borderRadius:jt.borderRadiusLG}),"lg")]}const lt=jt=>{const{componentCls:Rt,selectorBg:ae}=jt;return{position:"relative",backgroundColor:ae,border:`${jt.lineWidth}px ${jt.lineType} ${jt.colorBorder}`,transition:`all ${jt.motionDurationMid} ${jt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Rt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Rt}-disabled&`]:{color:jt.colorTextDisabled,background:jt.colorBgContainerDisabled,cursor:"not-allowed",[`${Rt}-multiple&`]:{background:jt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(jt,Rt){let ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:he,borderHoverColor:pe,outlineColor:Te,antCls:ne}=Rt,Ke=ae?{[`${he}-selector`]:{borderColor:pe}}:{};return{[jt]:{[`&:not(${he}-disabled):not(${he}-customize-input):not(${ne}-pagination-size-changer)`]:Object.assign(Object.assign({},Ke),{[`${he}-focused& ${he}-selector`]:{borderColor:pe,boxShadow:`0 0 0 ${Rt.controlOutlineWidth}px ${Te}`,outline:0},[`&:hover ${he}-selector`]:{borderColor:pe}})}}},ht=jt=>{const{componentCls:Rt}=jt;return{[`${Rt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},dt=jt=>{const{componentCls:Rt,inputPaddingHorizontalBase:ae,iconCls:he}=jt;return{[Rt]:Object.assign(Object.assign({},(0,Lt.Wf)(jt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Rt}-customize-input) ${Rt}-selector`]:Object.assign(Object.assign({},lt(jt)),ht(jt)),[`${Rt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Lt.vS),[`${Rt}-selection-placeholder`]:Object.assign(Object.assign({},Lt.vS),{flex:1,color:jt.colorTextPlaceholder,pointerEvents:"none"}),[`${Rt}-arrow`]:Object.assign(Object.assign({},(0,Lt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ae,height:jt.fontSizeIcon,marginTop:-jt.fontSizeIcon/2,color:jt.colorTextQuaternary,fontSize:jt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[he]:{verticalAlign:"top",transition:`transform ${jt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Rt}-suffix)`]:{pointerEvents:"auto"}},[`${Rt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Rt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ae,zIndex:1,display:"inline-block",width:jt.fontSizeIcon,height:jt.fontSizeIcon,marginTop:-jt.fontSizeIcon/2,color:jt.colorTextQuaternary,fontSize:jt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:jt.clearBg,cursor:"pointer",opacity:0,transition:`color ${jt.motionDurationMid} ease, opacity ${jt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:jt.colorTextTertiary}},"&:hover":{[`${Rt}-clear`]:{opacity:1}}}),[`${Rt}-has-feedback`]:{[`${Rt}-clear`]:{insetInlineEnd:ae+jt.fontSize+jt.paddingXS}}}},yt=jt=>{const{componentCls:Rt}=jt;return[{[Rt]:{[`&-borderless ${Rt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Rt}-in-form-item`]:{width:"100%"}}},dt(jt),tt(jt),wt(jt),ee(jt),{[`${Rt}-rtl`]:{direction:"rtl"}},rt(Rt,(0,se.TS)(jt,{borderHoverColor:jt.colorPrimaryHover,outlineColor:jt.controlOutline})),rt(`${Rt}-status-error`,(0,se.TS)(jt,{borderHoverColor:jt.colorErrorHover,outlineColor:jt.colorErrorOutline}),!0),rt(`${Rt}-status-warning`,(0,se.TS)(jt,{borderHoverColor:jt.colorWarningHover,outlineColor:jt.colorWarningOutline}),!0),(0,ge.c)(jt,{borderElCls:`${Rt}-selector`,focusElCls:`${Rt}-focused`})]};var Mt=(0,De.Z)("Select",(jt,Rt)=>{let{rootPrefixCls:ae}=Rt;const he=(0,se.TS)(jt,{rootPrefixCls:ae,inputPaddingHorizontalBase:jt.paddingSM-1,multipleSelectItemHeight:jt.multipleItemHeight});return[yt(he)]},jt=>{const{fontSize:Rt,lineHeight:ae,controlHeight:he,controlPaddingHorizontal:pe,zIndexPopupBase:Te,colorText:ne,fontWeightStrong:Ke,controlItemBgActive:Vt,controlItemBgHover:$e,colorBgContainer:Ge,colorFillSecondary:Oe,controlHeightLG:Ve,controlHeightSM:_e,colorBgContainerDisabled:xe,colorTextDisabled:ie}=jt;return{zIndexPopup:Te+50,optionSelectedColor:ne,optionSelectedFontWeight:Ke,optionSelectedBg:Vt,optionActiveBg:$e,optionPadding:`${(he-Rt*ae)/2}px ${pe}px`,optionFontSize:Rt,optionLineHeight:ae,optionHeight:he,selectorBg:Ge,clearBg:Ge,singleItemHeightLG:Ve,multipleItemBg:Oe,multipleItemBorderColor:"transparent",multipleItemHeight:_e,multipleItemHeightLG:he,multipleSelectorBgDisabled:xe,multipleItemColorDisabled:ie,multipleItemBorderColorDisabled:"transparent"}})},58582:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ge}});const Lt=se=>{const re={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:se==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},re),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},re),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},re),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},re),{points:["br","tr"],offset:[0,-4]})}};function ge(se,De){return se||Lt(De)}},84443:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Lt}});function Lt(ge,se){return se!==void 0?se:ge!==null}},66339:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});var Lt=bt(10402),ge=bt(33130),se=bt(72119),De=bt(18290),re=bt(50023),le=bt(21970),Et=bt(59301);function Tt(ee){let{suffixIcon:Ct,clearIcon:Wt,menuItemSelectedIcon:Gt,removeIcon:Jt,loading:wt,multiple:et,hasFeedback:tt,prefixCls:lt,showSuffixIcon:rt,feedbackIcon:ht,showArrow:dt,componentName:yt}=ee;const Mt=Wt!=null?Wt:Et.createElement(ge.Z,null),jt=pe=>Ct===null&&!tt&&!dt?null:Et.createElement(Et.Fragment,null,rt!==!1&&pe,tt&&ht);let Rt=null;if(Ct!==void 0)Rt=jt(Ct);else if(wt)Rt=jt(Et.createElement(re.Z,{spin:!0}));else{const pe=`${lt}-suffix`;Rt=Te=>{let{open:ne,showSearch:Ke}=Te;return jt(ne&&Ke?Et.createElement(le.Z,{className:pe}):Et.createElement(De.Z,{className:pe}))}}let ae=null;Gt!==void 0?ae=Gt:et?ae=Et.createElement(Lt.Z,null):ae=null;let he=null;return Jt!==void 0?he=Jt:he=Et.createElement(se.Z,null),{clearIcon:Mt,suffixIcon:Rt,itemIcon:ae,removeIcon:he}}},78485:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Ot}});var Lt=bt(92310),ge=bt.n(Lt),se=bt(59301),De=bt(36355),re=bt(64002),Et=Ft=>{const{prefixCls:Kt,className:Ee,style:je,size:ce,shape:Be}=Ft,$t=ge()({[`${Kt}-lg`]:ce==="large",[`${Kt}-sm`]:ce==="small"}),Pt=ge()({[`${Kt}-circle`]:Be==="circle",[`${Kt}-square`]:Be==="square",[`${Kt}-round`]:Be==="round"}),mt=se.useMemo(()=>typeof ce=="number"?{width:ce,height:ce,lineHeight:`${ce}px`}:{},[ce]);return se.createElement("span",{className:ge()(Kt,$t,Pt,Ee),style:Object.assign(Object.assign({},mt),je)})},Tt=bt(9792),ee=bt(83116),Ct=bt(37613);const Wt=new Tt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Gt=Ft=>({height:Ft,lineHeight:`${Ft}px`}),Jt=Ft=>Object.assign({width:Ft},Gt(Ft)),wt=Ft=>({background:Ft.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Wt,animationDuration:Ft.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=Ft=>Object.assign({width:Ft*5,minWidth:Ft*5},Gt(Ft)),tt=Ft=>{const{skeletonAvatarCls:Kt,gradientFromColor:Ee,controlHeight:je,controlHeightLG:ce,controlHeightSM:Be}=Ft;return{[`${Kt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ee},Jt(je)),[`${Kt}${Kt}-circle`]:{borderRadius:"50%"},[`${Kt}${Kt}-lg`]:Object.assign({},Jt(ce)),[`${Kt}${Kt}-sm`]:Object.assign({},Jt(Be))}},lt=Ft=>{const{controlHeight:Kt,borderRadiusSM:Ee,skeletonInputCls:je,controlHeightLG:ce,controlHeightSM:Be,gradientFromColor:$t}=Ft;return{[`${je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$t,borderRadius:Ee},et(Kt)),[`${je}-lg`]:Object.assign({},et(ce)),[`${je}-sm`]:Object.assign({},et(Be))}},rt=Ft=>Object.assign({width:Ft},Gt(Ft)),ht=Ft=>{const{skeletonImageCls:Kt,imageSizeBase:Ee,gradientFromColor:je,borderRadiusSM:ce}=Ft;return{[`${Kt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:je,borderRadius:ce},rt(Ee*2)),{[`${Kt}-path`]:{fill:"#bfbfbf"},[`${Kt}-svg`]:Object.assign(Object.assign({},rt(Ee)),{maxWidth:Ee*4,maxHeight:Ee*4}),[`${Kt}-svg${Kt}-svg-circle`]:{borderRadius:"50%"}}),[`${Kt}${Kt}-circle`]:{borderRadius:"50%"}}},dt=(Ft,Kt,Ee)=>{const{skeletonButtonCls:je}=Ft;return{[`${Ee}${je}-circle`]:{width:Kt,minWidth:Kt,borderRadius:"50%"},[`${Ee}${je}-round`]:{borderRadius:Kt}}},yt=Ft=>Object.assign({width:Ft*2,minWidth:Ft*2},Gt(Ft)),Mt=Ft=>{const{borderRadiusSM:Kt,skeletonButtonCls:Ee,controlHeight:je,controlHeightLG:ce,controlHeightSM:Be,gradientFromColor:$t}=Ft;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$t,borderRadius:Kt,width:je*2,minWidth:je*2},yt(je))},dt(Ft,je,Ee)),{[`${Ee}-lg`]:Object.assign({},yt(ce))}),dt(Ft,ce,`${Ee}-lg`)),{[`${Ee}-sm`]:Object.assign({},yt(Be))}),dt(Ft,Be,`${Ee}-sm`))},jt=Ft=>{const{componentCls:Kt,skeletonAvatarCls:Ee,skeletonTitleCls:je,skeletonParagraphCls:ce,skeletonButtonCls:Be,skeletonInputCls:$t,skeletonImageCls:Pt,controlHeight:mt,controlHeightLG:Zt,controlHeightSM:Se,gradientFromColor:Dt,padding:Ie,marginSM:nn,borderRadius:zn,titleHeight:xn,blockRadius:li,paragraphLiHeight:Qi,controlHeightXS:Wi,paragraphMarginTop:pr}=Ft;return{[`${Kt}`]:{display:"table",width:"100%",[`${Kt}-header`]:{display:"table-cell",paddingInlineEnd:Ie,verticalAlign:"top",[`${Ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Dt},Jt(mt)),[`${Ee}-circle`]:{borderRadius:"50%"},[`${Ee}-lg`]:Object.assign({},Jt(Zt)),[`${Ee}-sm`]:Object.assign({},Jt(Se))},[`${Kt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${je}`]:{width:"100%",height:xn,background:Dt,borderRadius:li,[`+ ${ce}`]:{marginBlockStart:Se}},[`${ce}`]:{padding:0,"> li":{width:"100%",height:Qi,listStyle:"none",background:Dt,borderRadius:li,"+ li":{marginBlockStart:Wi}}},[`${ce}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Kt}-content`]:{[`${je}, ${ce} > li`]:{borderRadius:zn}}},[`${Kt}-with-avatar ${Kt}-content`]:{[`${je}`]:{marginBlockStart:nn,[`+ ${ce}`]:{marginBlockStart:pr}}},[`${Kt}${Kt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Mt(Ft)),tt(Ft)),lt(Ft)),ht(Ft)),[`${Kt}${Kt}-block`]:{width:"100%",[`${Be}`]:{width:"100%"},[`${$t}`]:{width:"100%"}},[`${Kt}${Kt}-active`]:{[`
${je},
${ce} > li,
${Ee},
${Be},
${$t},
${Pt}
`]:Object.assign({},wt(Ft))}}};var Rt=(0,ee.Z)("Skeleton",Ft=>{const{componentCls:Kt}=Ft,Ee=(0,Ct.TS)(Ft,{skeletonAvatarCls:`${Kt}-avatar`,skeletonTitleCls:`${Kt}-title`,skeletonParagraphCls:`${Kt}-paragraph`,skeletonButtonCls:`${Kt}-button`,skeletonInputCls:`${Kt}-input`,skeletonImageCls:`${Kt}-image`,imageSizeBase:Ft.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ft.gradientFromColor} 25%, ${Ft.gradientToColor} 37%, ${Ft.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[jt(Ee)]},Ft=>{const{colorFillContent:Kt,colorFill:Ee}=Ft,je=Kt,ce=Ee;return{color:je,colorGradientEnd:ce,gradientFromColor:je,gradientToColor:ce,titleHeight:Ft.controlHeight/2,blockRadius:Ft.borderRadiusSM,paragraphMarginTop:Ft.marginLG+Ft.marginXXS,paragraphLiHeight:Ft.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),he=Ft=>{const{prefixCls:Kt,className:Ee,rootClassName:je,active:ce,shape:Be="circle",size:$t="default"}=Ft,{getPrefixCls:Pt}=se.useContext(De.E_),mt=Pt("skeleton",Kt),[Zt,Se]=Rt(mt),Dt=(0,re.Z)(Ft,["prefixCls","className"]),Ie=ge()(mt,`${mt}-element`,{[`${mt}-active`]:ce},Ee,je,Se);return Zt(se.createElement("div",{className:Ie},se.createElement(Et,Object.assign({prefixCls:`${mt}-avatar`,shape:Be,size:$t},Dt))))},Te=Ft=>{const{prefixCls:Kt,className:Ee,rootClassName:je,active:ce,block:Be=!1,size:$t="default"}=Ft,{getPrefixCls:Pt}=se.useContext(De.E_),mt=Pt("skeleton",Kt),[Zt,Se]=Rt(mt),Dt=(0,re.Z)(Ft,["prefixCls"]),Ie=ge()(mt,`${mt}-element`,{[`${mt}-active`]:ce,[`${mt}-block`]:Be},Ee,je,Se);return Zt(se.createElement("div",{className:Ie},se.createElement(Et,Object.assign({prefixCls:`${mt}-button`,size:$t},Dt))))};const ne="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 Vt=Ft=>{const{prefixCls:Kt,className:Ee,rootClassName:je,style:ce,active:Be}=Ft,{getPrefixCls:$t}=se.useContext(De.E_),Pt=$t("skeleton",Kt),[mt,Zt]=Rt(Pt),Se=ge()(Pt,`${Pt}-element`,{[`${Pt}-active`]:Be},Ee,je,Zt);return mt(se.createElement("div",{className:Se},se.createElement("div",{className:ge()(`${Pt}-image`,Ee),style:ce},se.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Pt}-image-svg`},se.createElement("path",{d:ne,className:`${Pt}-image-path`})))))},Ge=Ft=>{const{prefixCls:Kt,className:Ee,rootClassName:je,active:ce,block:Be,size:$t="default"}=Ft,{getPrefixCls:Pt}=se.useContext(De.E_),mt=Pt("skeleton",Kt),[Zt,Se]=Rt(mt),Dt=(0,re.Z)(Ft,["prefixCls"]),Ie=ge()(mt,`${mt}-element`,{[`${mt}-active`]:ce,[`${mt}-block`]:Be},Ee,je,Se);return Zt(se.createElement("div",{className:Ie},se.createElement(Et,Object.assign({prefixCls:`${mt}-input`,size:$t},Dt))))},Oe=bt(5891),Ve={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"},_e=Ve,xe=bt(88853),ie=function(Kt,Ee){return se.createElement(xe.Z,(0,Oe.Z)({},Kt,{ref:Ee,icon:_e}))},be=se.forwardRef(ie),Fn=be,Xe=Ft=>{const{prefixCls:Kt,className:Ee,rootClassName:je,style:ce,active:Be,children:$t}=Ft,{getPrefixCls:Pt}=se.useContext(De.E_),mt=Pt("skeleton",Kt),[Zt,Se]=Rt(mt),Dt=ge()(mt,`${mt}-element`,{[`${mt}-active`]:Be},Se,Ee,je),Ie=$t!=null?$t:se.createElement(Fn,null);return Zt(se.createElement("div",{className:Dt},se.createElement("div",{className:ge()(`${mt}-image`,Ee),style:ce},Ie)))},In=bt(26390),pi=Ft=>{const Kt=Pt=>{const{width:mt,rows:Zt=2}=Ft;if(Array.isArray(mt))return mt[Pt];if(Zt-1===Pt)return mt},{prefixCls:Ee,className:je,style:ce,rows:Be}=Ft,$t=(0,In.Z)(Array(Be)).map((Pt,mt)=>se.createElement("li",{key:mt,style:{width:Kt(mt)}}));return se.createElement("ul",{className:ge()(Ee,je),style:ce},$t)},bi=Ft=>{let{prefixCls:Kt,className:Ee,width:je,style:ce}=Ft;return se.createElement("h3",{className:ge()(Kt,Ee),style:Object.assign({width:je},ce)})};function sn(Ft){return Ft&&typeof Ft=="object"?Ft:{}}function Li(Ft,Kt){return Ft&&!Kt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ji(Ft,Kt){return!Ft&&Kt?{width:"38%"}:Ft&&Kt?{width:"50%"}:{}}function ve(Ft,Kt){const Ee={};return(!Ft||!Kt)&&(Ee.width="61%"),!Ft&&Kt?Ee.rows=3:Ee.rows=2,Ee}const hn=Ft=>{const{prefixCls:Kt,loading:Ee,className:je,rootClassName:ce,style:Be,children:$t,avatar:Pt=!1,title:mt=!0,paragraph:Zt=!0,active:Se,round:Dt}=Ft,{getPrefixCls:Ie,direction:nn,skeleton:zn}=se.useContext(De.E_),xn=Ie("skeleton",Kt),[li,Qi]=Rt(xn);if(Ee||!("loading"in Ft)){const Wi=!!Pt,pr=!!mt,xr=!!Zt;let qr;if(Wi){const Ir=Object.assign(Object.assign({prefixCls:`${xn}-avatar`},Li(pr,xr)),sn(Pt));qr=se.createElement("div",{className:`${xn}-header`},se.createElement(Et,Object.assign({},Ir)))}let Vr;if(pr||xr){let Ir;if(pr){const to=Object.assign(Object.assign({prefixCls:`${xn}-title`},ji(Wi,xr)),sn(mt));Ir=se.createElement(bi,Object.assign({},to))}let Xr;if(xr){const to=Object.assign(Object.assign({prefixCls:`${xn}-paragraph`},ve(Wi,pr)),sn(Zt));Xr=se.createElement(pi,Object.assign({},to))}Vr=se.createElement("div",{className:`${xn}-content`},Ir,Xr)}const Jr=ge()(xn,{[`${xn}-with-avatar`]:Wi,[`${xn}-active`]:Se,[`${xn}-rtl`]:nn==="rtl",[`${xn}-round`]:Dt},zn==null?void 0:zn.className,je,ce,Qi);return li(se.createElement("div",{className:Jr,style:Object.assign(Object.assign({},zn==null?void 0:zn.style),Be)},qr,Vr))}return typeof $t!="undefined"?$t:null};hn.Button=Te,hn.Avatar=he,hn.Input=Ge,hn.Image=Vt,hn.Node=Xe;var Ae=hn,Ot=Ae},81327:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return lt}});var Lt=bt(59301),ge=bt(92310),se=bt.n(ge),De=bt(38298),re=bt(36355),le=bt(33234);const Et=Lt.createContext({latestIndex:0}),Tt=Et.Provider;var Ct=rt=>{let{className:ht,index:dt,children:yt,split:Mt,style:jt}=rt;const{latestIndex:Rt}=Lt.useContext(Et);return yt==null?null:Lt.createElement(Lt.Fragment,null,Lt.createElement("div",{className:ht,style:jt},yt),dt<Rt&&Mt&&Lt.createElement("span",{className:`${ht}-split`},Mt))},Wt=bt(2856);function Gt(rt){return["small","middle","large"].includes(rt)}function Jt(rt){return rt?typeof rt=="number"&&!Number.isNaN(rt):!1}var wt=function(rt,ht){var dt={};for(var yt in rt)Object.prototype.hasOwnProperty.call(rt,yt)&&ht.indexOf(yt)<0&&(dt[yt]=rt[yt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,yt=Object.getOwnPropertySymbols(rt);Mt<yt.length;Mt++)ht.indexOf(yt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(rt,yt[Mt])&&(dt[yt[Mt]]=rt[yt[Mt]]);return dt};const tt=Lt.forwardRef((rt,ht)=>{var dt,yt;const{getPrefixCls:Mt,space:jt,direction:Rt}=Lt.useContext(re.E_),{size:ae=(jt==null?void 0:jt.size)||"small",align:he,className:pe,rootClassName:Te,children:ne,direction:Ke="horizontal",prefixCls:Vt,split:$e,style:Ge,wrap:Oe=!1,classNames:Ve,styles:_e}=rt,xe=wt(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ie,be]=Array.isArray(ae)?ae:[ae,ae],Fn=Gt(be),Mn=Gt(ie),Xe=Jt(be),In=Jt(ie),Xn=(0,De.Z)(ne,{keepEmpty:!0}),pi=he===void 0&&Ke==="horizontal"?"center":he,$n=Mt("space",Vt),[bi,sn]=(0,Wt.Z)($n),Li=se()($n,jt==null?void 0:jt.className,sn,`${$n}-${Ke}`,{[`${$n}-rtl`]:Rt==="rtl",[`${$n}-align-${pi}`]:pi,[`${$n}-gap-row-${be}`]:Fn,[`${$n}-gap-col-${ie}`]:Mn},pe,Te),ji=se()(`${$n}-item`,(dt=Ve==null?void 0:Ve.item)!==null&&dt!==void 0?dt:(yt=jt==null?void 0:jt.classNames)===null||yt===void 0?void 0:yt.item);let ve=0;const hn=Xn.map((Ft,Kt)=>{var Ee,je;Ft!=null&&(ve=Kt);const ce=Ft&&Ft.key||`${ji}-${Kt}`;return Lt.createElement(Ct,{className:ji,key:ce,index:Kt,split:$e,style:(Ee=_e==null?void 0:_e.item)!==null&&Ee!==void 0?Ee:(je=jt==null?void 0:jt.styles)===null||je===void 0?void 0:je.item},Ft)}),Ae=Lt.useMemo(()=>({latestIndex:ve}),[ve]);if(Xn.length===0)return null;const Ot={};return Oe&&(Ot.flexWrap="wrap"),!Mn&&In&&(Ot.columnGap=ie),!Fn&&Xe&&(Ot.rowGap=be),bi(Lt.createElement("div",Object.assign({ref:ht,className:Li,style:Object.assign(Object.assign(Object.assign({},Ot),jt==null?void 0:jt.style),Ge)},xe),Lt.createElement(Tt,{value:Ae},hn)))});tt.Compact=le.ZP;var lt=tt},31797:function(di,Pn,bt){"use strict";bt.d(Pn,{default:function(){return Rt}});var Lt=bt(59301),ge=bt(56762),se=bt(92343),De=bt(92310),re=bt.n(De),le=bt(36355),Et=bt(78485),ee=ae=>{const{value:he,formatter:pe,precision:Te,decimalSeparator:ne,groupSeparator:Ke="",prefixCls:Vt}=ae;let $e;if(typeof pe=="function")$e=pe(he);else{const Ge=String(he),Oe=Ge.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Oe||Ge==="-")$e=Ge;else{const Ve=Oe[1];let _e=Oe[2]||"0",xe=Oe[4]||"";_e=_e.replace(/\B(?=(\d{3})+(?!\d))/g,Ke),typeof Te=="number"&&(xe=xe.padEnd(Te,"0").slice(0,Te>0?Te:0)),xe&&(xe=`${ne}${xe}`),$e=[Lt.createElement("span",{key:"int",className:`${Vt}-content-value-int`},Ve,_e),xe&&Lt.createElement("span",{key:"decimal",className:`${Vt}-content-value-decimal`},xe)]}}return Lt.createElement("span",{className:`${Vt}-content-value`},$e)},Ct=bt(17313),Wt=bt(83116),Gt=bt(37613);const Jt=ae=>{const{componentCls:he,marginXXS:pe,padding:Te,colorTextDescription:ne,titleFontSize:Ke,colorTextHeading:Vt,contentFontSize:$e,fontFamily:Ge}=ae;return{[`${he}`]:Object.assign(Object.assign({},(0,Ct.Wf)(ae)),{[`${he}-title`]:{marginBottom:pe,color:ne,fontSize:Ke},[`${he}-skeleton`]:{paddingTop:Te},[`${he}-content`]:{color:Vt,fontSize:$e,fontFamily:Ge,[`${he}-content-value`]:{display:"inline-block",direction:"ltr"},[`${he}-content-prefix, ${he}-content-suffix`]:{display:"inline-block"},[`${he}-content-prefix`]:{marginInlineEnd:pe},[`${he}-content-suffix`]:{marginInlineStart:pe}}})}};var wt=(0,Wt.Z)("Statistic",ae=>{const he=(0,Gt.TS)(ae,{});return[Jt(he)]},ae=>{const{fontSizeHeading3:he,fontSize:pe}=ae;return{titleFontSize:pe,contentFontSize:he}}),tt=ae=>{const{prefixCls:he,className:pe,rootClassName:Te,style:ne,valueStyle:Ke,value:Vt=0,title:$e,valueRender:Ge,prefix:Oe,suffix:Ve,loading:_e=!1,onMouseEnter:xe,onMouseLeave:ie,decimalSeparator:be=".",groupSeparator:Fn=","}=ae,{getPrefixCls:Mn,direction:Xe,statistic:In}=Lt.useContext(le.E_),Xn=Mn("statistic",he),[pi,$n]=wt(Xn),bi=Lt.createElement(ee,Object.assign({decimalSeparator:be,groupSeparator:Fn,prefixCls:Xn},ae,{value:Vt})),sn=re()(Xn,{[`${Xn}-rtl`]:Xe==="rtl"},In==null?void 0:In.className,pe,Te,$n);return pi(Lt.createElement("div",{className:sn,style:Object.assign(Object.assign({},In==null?void 0:In.style),ne),onMouseEnter:xe,onMouseLeave:ie},$e&&Lt.createElement("div",{className:`${Xn}-title`},$e),Lt.createElement(Et.Z,{paragraph:!1,loading:_e,className:`${Xn}-skeleton`},Lt.createElement("div",{style:Ke,className:`${Xn}-content`},Oe&&Lt.createElement("span",{className:`${Xn}-content-prefix`},Oe),Ge?Ge(bi):bi,Ve&&Lt.createElement("span",{className:`${Xn}-content-suffix`},Ve)))))};const lt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function rt(ae,he){let pe=ae;const Te=/\[[^\]]*]/g,ne=(he.match(Te)||[]).map(Ge=>Ge.slice(1,-1)),Ke=he.replace(Te,"[]"),Vt=lt.reduce((Ge,Oe)=>{let[Ve,_e]=Oe;if(Ge.includes(Ve)){const xe=Math.floor(pe/_e);return pe-=xe*_e,Ge.replace(new RegExp(`${Ve}+`,"g"),ie=>{const be=ie.length;return xe.toString().padStart(be,"0")})}return Ge},Ke);let $e=0;return Vt.replace(Te,()=>{const Ge=ne[$e];return $e+=1,Ge})}function ht(ae,he){const{format:pe=""}=he,Te=new Date(ae).getTime(),ne=Date.now(),Ke=Math.max(Te-ne,0);return rt(Ke,pe)}const dt=1e3/30;function yt(ae){return new Date(ae).getTime()}const Mt=ae=>{const{value:he,format:pe="HH:mm:ss",onChange:Te,onFinish:ne}=ae,Ke=(0,ge.Z)(),Vt=Lt.useRef(null),$e=()=>{ne==null||ne(),Vt.current&&(clearInterval(Vt.current),Vt.current=null)},Ge=()=>{const _e=yt(he);_e>=Date.now()&&(Vt.current=setInterval(()=>{Ke(),Te==null||Te(_e-Date.now()),_e<Date.now()&&$e()},dt))};Lt.useEffect(()=>(Ge(),()=>{Vt.current&&(clearInterval(Vt.current),Vt.current=null)}),[he]);const Oe=(_e,xe)=>ht(_e,Object.assign(Object.assign({},xe),{format:pe})),Ve=_e=>(0,se.Tm)(_e,{title:void 0});return Lt.createElement(tt,Object.assign({},ae,{valueRender:Ve,formatter:Oe}))};var jt=Lt.memo(Mt);tt.Countdown=jt;var Rt=tt},15969:function(di,Pn,bt){"use strict";bt.d(Pn,{N:function(){return Lt}});const Lt=ge=>({color:ge.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ge.motionDurationSlow}`,"&:focus, &:hover":{color:ge.colorLinkHover},"&:active":{color:ge.colorLinkActive}})},78673:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Ke}});var Lt=bt(50023),ge=bt(92310),se=bt.n(ge),De=bt(5891),re=bt(80962),le=bt(29043),Et=bt(19149),Tt=bt(59301),ee=bt(35788),Ct=bt(85108),Wt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Gt=Tt.forwardRef(function(Vt,$e){var Ge,Oe=Vt.prefixCls,Ve=Oe===void 0?"rc-switch":Oe,_e=Vt.className,xe=Vt.checked,ie=Vt.defaultChecked,be=Vt.disabled,Fn=Vt.loadingIcon,Mn=Vt.checkedChildren,Xe=Vt.unCheckedChildren,In=Vt.onClick,Xn=Vt.onChange,pi=Vt.onKeyDown,$n=(0,Et.Z)(Vt,Wt),bi=(0,ee.Z)(!1,{value:xe,defaultValue:ie}),sn=(0,le.Z)(bi,2),Li=sn[0],ji=sn[1];function ve(Ft,Kt){var Ee=Li;return be||(Ee=Ft,ji(Ee),Xn==null||Xn(Ee,Kt)),Ee}function hn(Ft){Ft.which===Ct.Z.LEFT?ve(!1,Ft):Ft.which===Ct.Z.RIGHT&&ve(!0,Ft),pi==null||pi(Ft)}function Ae(Ft){var Kt=ve(!Li,Ft);In==null||In(Kt,Ft)}var Ot=se()(Ve,_e,(Ge={},(0,re.Z)(Ge,"".concat(Ve,"-checked"),Li),(0,re.Z)(Ge,"".concat(Ve,"-disabled"),be),Ge));return Tt.createElement("button",(0,De.Z)({},$n,{type:"button",role:"switch","aria-checked":Li,disabled:be,className:Ot,ref:$e,onKeyDown:hn,onClick:Ae}),Fn,Tt.createElement("span",{className:"".concat(Ve,"-inner")},Tt.createElement("span",{className:"".concat(Ve,"-inner-checked")},Mn),Tt.createElement("span",{className:"".concat(Ve,"-inner-unchecked")},Xe)))});Gt.displayName="Switch";var Jt=Gt,wt=bt(14088),et=bt(36355),tt=bt(1684),lt=bt(19716),rt=bt(64993),ht=bt(17313),dt=bt(83116),yt=bt(37613);const Mt=Vt=>{const{componentCls:$e,trackHeightSM:Ge,trackPadding:Oe,trackMinWidthSM:Ve,innerMinMarginSM:_e,innerMaxMarginSM:xe,handleSizeSM:ie}=Vt,be=`${$e}-inner`;return{[$e]:{[`&${$e}-small`]:{minWidth:Ve,height:Ge,lineHeight:`${Ge}px`,[`${$e}-inner`]:{paddingInlineStart:xe,paddingInlineEnd:_e,[`${be}-checked`]:{marginInlineStart:`calc(-100% + ${ie+Oe*2}px - ${xe*2}px)`,marginInlineEnd:`calc(100% - ${ie+Oe*2}px + ${xe*2}px)`},[`${be}-unchecked`]:{marginTop:-Ge,marginInlineStart:0,marginInlineEnd:0}},[`${$e}-handle`]:{width:ie,height:ie},[`${$e}-loading-icon`]:{top:(ie-Vt.switchLoadingIconSize)/2,fontSize:Vt.switchLoadingIconSize},[`&${$e}-checked`]:{[`${$e}-inner`]:{paddingInlineStart:_e,paddingInlineEnd:xe,[`${be}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${be}-unchecked`]:{marginInlineStart:`calc(100% - ${ie+Oe*2}px + ${xe*2}px)`,marginInlineEnd:`calc(-100% + ${ie+Oe*2}px - ${xe*2}px)`}},[`${$e}-handle`]:{insetInlineStart:`calc(100% - ${ie+Oe}px)`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${be}`]:{[`${be}-unchecked`]:{marginInlineStart:Vt.marginXXS/2,marginInlineEnd:-Vt.marginXXS/2}},[`&${$e}-checked ${be}`]:{[`${be}-checked`]:{marginInlineStart:-Vt.marginXXS/2,marginInlineEnd:Vt.marginXXS/2}}}}}}},jt=Vt=>{const{componentCls:$e,handleSize:Ge}=Vt;return{[$e]:{[`${$e}-loading-icon${Vt.iconCls}`]:{position:"relative",top:(Ge-Vt.fontSize)/2,color:Vt.switchLoadingIconColor,verticalAlign:"top"},[`&${$e}-checked ${$e}-loading-icon`]:{color:Vt.switchColor}}}},Rt=Vt=>{const{componentCls:$e,motion:Ge,trackPadding:Oe,handleBg:Ve,handleShadow:_e,handleSize:xe}=Vt,ie=`${$e}-handle`;return{[$e]:{[ie]:{position:"absolute",top:Oe,insetInlineStart:Oe,width:xe,height:xe,transition:`all ${Vt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ve,borderRadius:xe/2,boxShadow:_e,transition:`all ${Vt.switchDuration} ease-in-out`,content:'""'}},[`&${$e}-checked ${ie}`]:{insetInlineStart:`calc(100% - ${xe+Oe}px)`},[`&:not(${$e}-disabled):active`]:Ge?{[`${ie}::before`]:{insetInlineEnd:Vt.switchHandleActiveInset,insetInlineStart:0},[`&${$e}-checked ${ie}::before`]:{insetInlineEnd:0,insetInlineStart:Vt.switchHandleActiveInset}}:{}}}},ae=Vt=>{const{componentCls:$e,trackHeight:Ge,trackPadding:Oe,innerMinMargin:Ve,innerMaxMargin:_e,handleSize:xe}=Vt,ie=`${$e}-inner`;return{[$e]:{[ie]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:_e,paddingInlineEnd:Ve,transition:`padding-inline-start ${Vt.switchDuration} ease-in-out, padding-inline-end ${Vt.switchDuration} ease-in-out`,[`${ie}-checked, ${ie}-unchecked`]:{display:"block",color:Vt.colorTextLightSolid,fontSize:Vt.fontSizeSM,transition:`margin-inline-start ${Vt.switchDuration} ease-in-out, margin-inline-end ${Vt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${ie}-checked`]:{marginInlineStart:`calc(-100% + ${xe+Oe*2}px - ${_e*2}px)`,marginInlineEnd:`calc(100% - ${xe+Oe*2}px + ${_e*2}px)`},[`${ie}-unchecked`]:{marginTop:-Ge,marginInlineStart:0,marginInlineEnd:0}},[`&${$e}-checked ${ie}`]:{paddingInlineStart:Ve,paddingInlineEnd:_e,[`${ie}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ie}-unchecked`]:{marginInlineStart:`calc(100% - ${xe+Oe*2}px + ${_e*2}px)`,marginInlineEnd:`calc(-100% + ${xe+Oe*2}px - ${_e*2}px)`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${ie}`]:{[`${ie}-unchecked`]:{marginInlineStart:Oe*2,marginInlineEnd:-Oe*2}},[`&${$e}-checked ${ie}`]:{[`${ie}-checked`]:{marginInlineStart:-Oe*2,marginInlineEnd:Oe*2}}}}}},he=Vt=>{const{componentCls:$e,trackHeight:Ge,trackMinWidth:Oe}=Vt;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Vt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Oe,height:Ge,lineHeight:`${Ge}px`,verticalAlign:"middle",background:Vt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Vt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$e}-disabled)`]:{background:Vt.colorTextTertiary}}),(0,ht.Qy)(Vt)),{[`&${$e}-checked`]:{background:Vt.switchColor,[`&:hover:not(${$e}-disabled)`]:{background:Vt.colorPrimaryHover}},[`&${$e}-loading, &${$e}-disabled`]:{cursor:"not-allowed",opacity:Vt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$e}-rtl`]:{direction:"rtl"}})}};var pe=(0,dt.Z)("Switch",Vt=>{const $e=(0,yt.TS)(Vt,{switchDuration:Vt.motionDurationMid,switchColor:Vt.colorPrimary,switchDisabledOpacity:Vt.opacityLoading,switchLoadingIconSize:Vt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Vt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[he($e),ae($e),Rt($e),jt($e),Mt($e)]},Vt=>{const{fontSize:$e,lineHeight:Ge,controlHeight:Oe,colorWhite:Ve}=Vt,_e=$e*Ge,xe=Oe/2,ie=2,be=_e-ie*2,Fn=xe-ie*2;return{trackHeight:_e,trackHeightSM:xe,trackMinWidth:be*2+ie*4,trackMinWidthSM:Fn*2+ie*2,trackPadding:ie,handleBg:Ve,handleSize:be,handleSizeSM:Fn,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:be/2,innerMaxMargin:be+ie+ie*2,innerMinMarginSM:Fn/2,innerMaxMarginSM:Fn+ie+ie*2}}),Te=function(Vt,$e){var Ge={};for(var Oe in Vt)Object.prototype.hasOwnProperty.call(Vt,Oe)&&$e.indexOf(Oe)<0&&(Ge[Oe]=Vt[Oe]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Oe=Object.getOwnPropertySymbols(Vt);Ve<Oe.length;Ve++)$e.indexOf(Oe[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Vt,Oe[Ve])&&(Ge[Oe[Ve]]=Vt[Oe[Ve]]);return Ge};const ne=Tt.forwardRef((Vt,$e)=>{const{prefixCls:Ge,size:Oe,disabled:Ve,loading:_e,className:xe,rootClassName:ie,style:be}=Vt,Fn=Te(Vt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Mn,direction:Xe,switch:In}=Tt.useContext(et.E_),Xn=Tt.useContext(tt.Z),pi=(Ve!=null?Ve:Xn)||_e,$n=Mn("switch",Ge),bi=Tt.createElement("div",{className:`${$n}-handle`},_e&&Tt.createElement(Lt.Z,{className:`${$n}-loading-icon`})),[sn,Li]=pe($n),ji=(0,lt.Z)(Oe),ve=se()(In==null?void 0:In.className,{[`${$n}-small`]:ji==="small",[`${$n}-loading`]:_e,[`${$n}-rtl`]:Xe==="rtl"},xe,ie,Li),hn=Object.assign(Object.assign({},In==null?void 0:In.style),be);return sn(Tt.createElement(wt.Z,{component:"Switch"},Tt.createElement(Jt,Object.assign({},Fn,{prefixCls:$n,className:ve,style:hn,disabled:pi,ref:$e,loadingIcon:bi}))))});ne.__ANT_SWITCH=!0;var Ke=ne},2595:function(di,Pn,bt){"use strict";bt.d(Pn,{default:function(){return oi}});var Lt={},ge="rc-table-internal-hook",se=bt(29043),De=bt(8107),re=bt(28800),le=bt(51346),Et=bt(59301),Tt=bt(4676);function ee(ye){var we=Et.createContext(void 0),Ye=function(yn){var on=yn.value,Dn=yn.children,Rn=Et.useRef(on);Rn.current=on;var ti=Et.useState(function(){return{getValue:function(){return Rn.current},listeners:new Set}}),ze=(0,se.Z)(ti,1),cn=ze[0];return(0,re.Z)(function(){(0,Tt.unstable_batchedUpdates)(function(){cn.listeners.forEach(function(vn){vn(on)})})},[on]),Et.createElement(we.Provider,{value:cn},Dn)};return{Context:we,Provider:Ye,defaultValue:ye}}function Ct(ye,we){var Ye=(0,De.Z)(typeof we=="function"?we:function(vn){if(we===void 0)return vn;if(!Array.isArray(we))return vn[we];var Gn={};return we.forEach(function(Yn){Gn[Yn]=vn[Yn]}),Gn}),tn=Et.useContext(ye==null?void 0:ye.Context),yn=tn||{},on=yn.listeners,Dn=yn.getValue,Rn=Et.useRef();Rn.current=Ye(tn?Dn():ye==null?void 0:ye.defaultValue);var ti=Et.useState({}),ze=(0,se.Z)(ti,2),cn=ze[1];return(0,re.Z)(function(){if(!tn)return;function vn(Gn){var Yn=Ye(Gn);(0,le.Z)(Rn.current,Yn,!0)||cn({})}return on.add(vn),function(){on.delete(vn)}},[tn]),Rn.current}var Wt=bt(5891),Gt=bt(20475);function Jt(){var ye=Et.createContext(null);function we(){return Et.useContext(ye)}function Ye(yn,on){var Dn=(0,Gt.Yr)(yn),Rn=function(ze,cn){var vn=Dn?{ref:cn}:{},Gn=Et.useRef(0),Yn=Et.useRef(ze),ri=we();return ri!==null?Et.createElement(yn,(0,Wt.Z)({},ze,vn)):((!on||on(Yn.current,ze))&&(Gn.current+=1),Yn.current=ze,Et.createElement(ye.Provider,{value:Gn.current},Et.createElement(yn,(0,Wt.Z)({},ze,vn))))};return Dn?Et.forwardRef(Rn):Rn}function tn(yn,on){var Dn=(0,Gt.Yr)(yn),Rn=function(ze,cn){var vn=Dn?{ref:cn}:{};return we(),Et.createElement(yn,(0,Wt.Z)({},ze,vn))};return Dn?Et.memo(Et.forwardRef(Rn),on):Et.memo(Rn,on)}return{makeImmutable:Ye,responseImmutable:tn,useImmutableMark:we}}var wt=Jt(),et=wt.makeImmutable,tt=wt.responseImmutable,lt=wt.useImmutableMark,rt=Jt(),ht=rt.makeImmutable,dt=rt.responseImmutable,yt=rt.useImmutableMark,Mt=ee(),jt=Mt;function Rt(ye,we){var Ye=Et.useRef(0);Ye.current+=1;var tn=Et.useRef(ye),yn=[];Object.keys(ye||{}).map(function(Dn){var Rn;(ye==null?void 0:ye[Dn])!==((Rn=tn.current)===null||Rn===void 0?void 0:Rn[Dn])&&yn.push(Dn)}),tn.current=ye;var on=Et.useRef([]);return yn.length&&(on.current=yn),Et.useDebugValue(Ye.current),Et.useDebugValue(on.current.join(", ")),we&&console.log("".concat(we,":"),Ye.current,on.current),Ye.current}var ae=null,he=Et.memo(function(){var ye=Rt();return Et.createElement("h1",null,"Render Times: ",ye)});he.displayName="RenderBlock";var pe=bt(80665),Te=bt(57259),ne=bt(80962),Ke=bt(92310),Vt=bt.n(Ke),$e=bt(79722),Ge=bt(69004),Oe=bt(51395),Ve=Et.createContext({renderWithProps:!1}),_e=Ve,xe="RC_TABLE_KEY";function ie(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function be(ye){var we=[],Ye={};return ye.forEach(function(tn){for(var yn=tn||{},on=yn.key,Dn=yn.dataIndex,Rn=on||ie(Dn).join("-")||xe;Ye[Rn];)Rn="".concat(Rn,"_next");Ye[Rn]=!0,we.push(Rn)}),we}function Fn(ye){return ye!=null}function Mn(ye){return ye&&(0,pe.Z)(ye)==="object"&&!Array.isArray(ye)&&!Et.isValidElement(ye)}function Xe(ye,we,Ye,tn,yn,on){var Dn=Et.useContext(_e),Rn=yt(),ti=(0,$e.Z)(function(){if(Fn(tn))return[tn];var ze=we==null||we===""?[]:Array.isArray(we)?we:[we],cn=(0,Ge.Z)(ye,ze),vn=cn,Gn=void 0;if(yn){var Yn=yn(cn,ye,Ye);Mn(Yn)?(vn=Yn.children,Gn=Yn.props,Dn.renderWithProps=!0):vn=Yn}return[vn,Gn]},[Rn,ye,tn,we,yn,Ye],function(ze,cn){if(on){var vn=(0,se.Z)(ze,2),Gn=vn[1],Yn=(0,se.Z)(cn,2),ri=Yn[1];return on(ri,Gn)}return Dn.renderWithProps?!0:!(0,le.Z)(ze,cn,!0)});return ti}function In(ye,we,Ye,tn){var yn=ye+we-1;return ye<=tn&&yn>=Ye}function Xn(ye,we){return Ct(jt,function(Ye){var tn=In(ye,we||1,Ye.hoverStartRow,Ye.hoverEndRow);return[tn,Ye.onHover]})}var pi=function(we){var Ye=we.ellipsis,tn=we.rowType,yn=we.children,on,Dn=Ye===!0?{showTitle:!0}:Ye;return Dn&&(Dn.showTitle||tn==="header")&&(typeof yn=="string"||typeof yn=="number"?on=yn.toString():Et.isValidElement(yn)&&typeof yn.props.children=="string"&&(on=yn.props.children)),on};function $n(ye){var we,Ye,tn,yn,on,Dn,Rn,ti,ze=ye.component,cn=ye.children,vn=ye.ellipsis,Gn=ye.scope,Yn=ye.prefixCls,ri=ye.className,Fi=ye.align,ci=ye.record,Ji=ye.render,Yi=ye.dataIndex,Ar=ye.renderIndex,Fr=ye.shouldCellUpdate,ro=ye.index,Ti=ye.rowType,Jn=ye.colSpan,xo=ye.rowSpan,br=ye.fixLeft,ar=ye.fixRight,lr=ye.firstFixLeft,nr=ye.lastFixLeft,vr=ye.firstFixRight,Zr=ye.lastFixRight,co=ye.appendNode,po=ye.additionalProps,Rr=po===void 0?{}:po,Do=ye.isSticky,hs="".concat(Yn,"-cell"),$o=Ct(jt,["supportSticky","allColumnsFixedLeft"]),is=$o.supportSticky,yo=$o.allColumnsFixedLeft,pa=Xe(ci,Yi,Ar,cn,Ji,Fr),Wo=(0,se.Z)(pa,2),rs=Wo[0],Cs=Wo[1],qs={},Ua=typeof br=="number"&&is,$s=typeof ar=="number"&&is;Ua&&(qs.position="sticky",qs.left=br),$s&&(qs.position="sticky",qs.right=ar);var Qo=(we=(Ye=(tn=Cs==null?void 0:Cs.colSpan)!==null&&tn!==void 0?tn:Rr.colSpan)!==null&&Ye!==void 0?Ye:Jn)!==null&&we!==void 0?we:1,zo=(yn=(on=(Dn=Cs==null?void 0:Cs.rowSpan)!==null&&Dn!==void 0?Dn:Rr.rowSpan)!==null&&on!==void 0?on:xo)!==null&&yn!==void 0?yn:1,gs=Xn(ro,zo),es=(0,se.Z)(gs,2),Os=es[0],oo=es[1],Go=function(fo){var Ra;ci&&oo(ro,ro+zo-1),Rr==null||(Ra=Rr.onMouseEnter)===null||Ra===void 0||Ra.call(Rr,fo)},aa=function(fo){var Ra;ci&&oo(-1,-1),Rr==null||(Ra=Rr.onMouseLeave)===null||Ra===void 0||Ra.call(Rr,fo)};if(Qo===0||zo===0)return null;var Us=(Rn=Rr.title)!==null&&Rn!==void 0?Rn:pi({rowType:Ti,ellipsis:vn,children:rs}),zl=Vt()(hs,ri,(ti={},(0,ne.Z)(ti,"".concat(hs,"-fix-left"),Ua&&is),(0,ne.Z)(ti,"".concat(hs,"-fix-left-first"),lr&&is),(0,ne.Z)(ti,"".concat(hs,"-fix-left-last"),nr&&is),(0,ne.Z)(ti,"".concat(hs,"-fix-left-all"),nr&&yo&&is),(0,ne.Z)(ti,"".concat(hs,"-fix-right"),$s&&is),(0,ne.Z)(ti,"".concat(hs,"-fix-right-first"),vr&&is),(0,ne.Z)(ti,"".concat(hs,"-fix-right-last"),Zr&&is),(0,ne.Z)(ti,"".concat(hs,"-ellipsis"),vn),(0,ne.Z)(ti,"".concat(hs,"-with-append"),co),(0,ne.Z)(ti,"".concat(hs,"-fix-sticky"),(Ua||$s)&&Do&&is),(0,ne.Z)(ti,"".concat(hs,"-row-hover"),!Cs&&Os),ti),Rr.className,Cs==null?void 0:Cs.className),Ml={};Fi&&(Ml.textAlign=Fi);var Ps=(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({},qs),Rr.style),Ml),Cs==null?void 0:Cs.style),ua=rs;return(0,pe.Z)(ua)==="object"&&!Array.isArray(ua)&&!Et.isValidElement(ua)&&(ua=null),vn&&(nr||vr)&&(ua=Et.createElement("span",{className:"".concat(hs,"-content")},ua)),Et.createElement(ze,(0,Wt.Z)({},Cs,Rr,{className:zl,style:Ps,title:Us,scope:Gn,onMouseEnter:Go,onMouseLeave:aa,colSpan:Qo!==1?Qo:null,rowSpan:zo!==1?zo:null}),co,ua)}var bi=Et.memo($n);function sn(ye,we,Ye,tn,yn,on){var Dn=Ye[ye]||{},Rn=Ye[we]||{},ti,ze;Dn.fixed==="left"?ti=tn.left[yn==="rtl"?we:ye]:Rn.fixed==="right"&&(ze=tn.right[yn==="rtl"?ye:we]);var cn=!1,vn=!1,Gn=!1,Yn=!1,ri=Ye[we+1],Fi=Ye[ye-1],ci=!(on!=null&&on.children);if(yn==="rtl"){if(ti!==void 0){var Ji=Fi&&Fi.fixed==="left";Yn=!Ji&&ci}else if(ze!==void 0){var Yi=ri&&ri.fixed==="right";Gn=!Yi&&ci}}else if(ti!==void 0){var Ar=ri&&ri.fixed==="left";cn=!Ar&&ci}else if(ze!==void 0){var Fr=Fi&&Fi.fixed==="right";vn=!Fr&&ci}return{fixLeft:ti,fixRight:ze,lastFixLeft:cn,firstFixRight:vn,lastFixRight:Gn,firstFixLeft:Yn,isSticky:tn.isSticky}}var Li=Et.createContext({}),ji=Li;function ve(ye){var we=ye.className,Ye=ye.index,tn=ye.children,yn=ye.colSpan,on=yn===void 0?1:yn,Dn=ye.rowSpan,Rn=ye.align,ti=Ct(jt,["prefixCls","direction"]),ze=ti.prefixCls,cn=ti.direction,vn=Et.useContext(ji),Gn=vn.scrollColumnIndex,Yn=vn.stickyOffsets,ri=vn.flattenColumns,Fi=vn.columns,ci=Ye+on-1,Ji=ci+1===Gn?on+1:on,Yi=sn(Ye,Ye+Ji-1,ri,Yn,cn,Fi==null?void 0:Fi[Ye]);return Et.createElement(bi,(0,Wt.Z)({className:we,index:Ye,component:"td",prefixCls:ze,record:null,dataIndex:null,align:Rn,colSpan:Ji,rowSpan:Dn,render:function(){return tn}},Yi))}var hn=bt(19149),Ae=["children"];function Ot(ye){var we=ye.children,Ye=(0,hn.Z)(ye,Ae);return Et.createElement("tr",Ye,we)}function Ft(ye){var we=ye.children;return we}Ft.Row=Ot,Ft.Cell=ve;var Kt=Ft;function Ee(ye){var we=ye.children,Ye=ye.stickyOffsets,tn=ye.flattenColumns,yn=ye.columns,on=Ct(jt,"prefixCls"),Dn=tn.length-1,Rn=tn[Dn],ti=Et.useMemo(function(){return{stickyOffsets:Ye,flattenColumns:tn,scrollColumnIndex:Rn!=null&&Rn.scrollbar?Dn:null,columns:yn}},[Rn,tn,Dn,Ye,yn]);return Et.createElement(ji.Provider,{value:ti},Et.createElement("tfoot",{className:"".concat(on,"-summary")},we))}var je=dt(Ee),ce=Kt,Be=bt(80764),$t=bt(29301),Pt=bt(48886),mt=bt(24387),Zt=bt(59055),Se=bt(36994);function Dt(ye,we,Ye,tn,yn,on,Dn){ye.push({record:we,indent:Ye,index:Dn});var Rn=on(we),ti=yn==null?void 0:yn.has(Rn);if(we&&Array.isArray(we[tn])&&ti)for(var ze=0;ze<we[tn].length;ze+=1)Dt(ye,we[tn][ze],Ye+1,tn,yn,on,ze)}function Ie(ye,we,Ye,tn){var yn=Et.useMemo(function(){if(Ye!=null&&Ye.size){for(var on=[],Dn=0;Dn<(ye==null?void 0:ye.length);Dn+=1){var Rn=ye[Dn];Dt(on,Rn,0,we,Ye,tn,Dn)}return on}return ye==null?void 0:ye.map(function(ti,ze){return{record:ti,indent:0,index:ze}})},[ye,we,Ye,tn]);return yn}function nn(ye){var we=ye.prefixCls,Ye=ye.children,tn=ye.component,yn=ye.cellComponent,on=ye.className,Dn=ye.expanded,Rn=ye.colSpan,ti=ye.isEmpty,ze=Ct(jt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),cn=ze.scrollbarSize,vn=ze.fixHeader,Gn=ze.fixColumn,Yn=ze.componentWidth,ri=ze.horizonScroll,Fi=Ye;return(ti?ri&&Yn:Gn)&&(Fi=Et.createElement("div",{style:{width:Yn-(vn?cn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(we,"-expanded-row-fixed")},Fi)),Et.createElement(tn,{className:on,style:{display:Dn?null:"none"}},Et.createElement(bi,{component:yn,prefixCls:we,colSpan:Rn},Fi))}var zn=nn;function xn(ye,we,Ye,tn){var yn=Ct(jt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),on=yn.flattenColumns,Dn=yn.expandableType,Rn=yn.expandedKeys,ti=yn.childrenColumnName,ze=yn.onTriggerExpand,cn=yn.rowExpandable,vn=yn.onRow,Gn=yn.expandRowByClick,Yn=yn.rowClassName,ri=Dn==="nest",Fi=Dn==="row"&&(!cn||cn(ye)),ci=Fi||ri,Ji=Rn&&Rn.has(we),Yi=ti&&ye&&ye[ti],Ar=(0,Be.useEvent)(ze),Fr=vn==null?void 0:vn(ye,Ye),ro=Fr==null?void 0:Fr.onClick,Ti=function(ar){Gn&&ci&&ze(ye,ar);for(var lr=arguments.length,nr=new Array(lr>1?lr-1:0),vr=1;vr<lr;vr++)nr[vr-1]=arguments[vr];ro==null||ro.apply(void 0,[ar].concat(nr))},Jn;typeof Yn=="string"?Jn=Yn:typeof Yn=="function"&&(Jn=Yn(ye,Ye,tn));var xo=be(on);return(0,Te.Z)((0,Te.Z)({},yn),{},{columnsKey:xo,nestExpandable:ri,expanded:Ji,hasNestChildren:Yi,record:ye,onTriggerExpand:Ar,rowSupportExpand:Fi,expandable:ci,rowProps:(0,Te.Z)((0,Te.Z)({},Fr),{},{className:Vt()(Jn,Fr==null?void 0:Fr.className),onClick:Ti})})}function li(ye,we,Ye,tn,yn){var on=ye.record,Dn=ye.prefixCls,Rn=ye.columnsKey,ti=ye.fixedInfoList,ze=ye.expandIconColumnIndex,cn=ye.nestExpandable,vn=ye.indentSize,Gn=ye.expandIcon,Yn=ye.expanded,ri=ye.hasNestChildren,Fi=ye.onTriggerExpand,ci=Rn[Ye],Ji=ti[Ye],Yi;Ye===(ze||0)&&cn&&(Yi=Et.createElement(Et.Fragment,null,Et.createElement("span",{style:{paddingLeft:"".concat(vn*tn,"px")},className:"".concat(Dn,"-row-indent indent-level-").concat(tn)}),Gn({prefixCls:Dn,expanded:Yn,expandable:ri,record:on,onExpand:Fi})));var Ar;return we.onCell&&(Ar=we.onCell(on,yn)),{key:ci,fixedInfo:Ji,appendCellNode:Yi,additionalCellProps:Ar||{}}}function Qi(ye){var we=ye.className,Ye=ye.style,tn=ye.record,yn=ye.index,on=ye.renderIndex,Dn=ye.rowKey,Rn=ye.indent,ti=Rn===void 0?0:Rn,ze=ye.rowComponent,cn=ye.cellComponent,vn=ye.scopeCellComponent,Gn=xn(tn,Dn,yn,ti),Yn=Gn.prefixCls,ri=Gn.flattenColumns,Fi=Gn.expandedRowClassName,ci=Gn.expandedRowRender,Ji=Gn.rowProps,Yi=Gn.expanded,Ar=Gn.rowSupportExpand,Fr=Et.useState(!1),ro=(0,se.Z)(Fr,2),Ti=ro[0],Jn=ro[1];Et.useEffect(function(){Yi&&Jn(!0)},[Yi]);var xo=Et.createElement(ze,(0,Wt.Z)({},Ji,{"data-row-key":Dn,className:Vt()(we,"".concat(Yn,"-row"),"".concat(Yn,"-row-level-").concat(ti),Ji==null?void 0:Ji.className),style:(0,Te.Z)((0,Te.Z)({},Ye),Ji==null?void 0:Ji.style)}),ri.map(function(nr,vr){var Zr=nr.render,co=nr.dataIndex,po=nr.className,Rr=li(Gn,nr,vr,ti,yn),Do=Rr.key,hs=Rr.fixedInfo,$o=Rr.appendCellNode,is=Rr.additionalCellProps;return Et.createElement(bi,(0,Wt.Z)({className:po,ellipsis:nr.ellipsis,align:nr.align,scope:nr.rowScope,component:nr.rowScope?vn:cn,prefixCls:Yn,key:Do,record:tn,index:yn,renderIndex:on,dataIndex:co,render:Zr,shouldCellUpdate:nr.shouldCellUpdate},hs,{appendNode:$o,additionalProps:is}))})),br;if(Ar&&(Ti||Yi)){var ar=ci(tn,yn,ti+1,Yi),lr=Fi&&Fi(tn,yn,ti);br=Et.createElement(zn,{expanded:Yi,className:Vt()("".concat(Yn,"-expanded-row"),"".concat(Yn,"-expanded-row-level-").concat(ti+1),lr),prefixCls:Yn,component:ze,cellComponent:cn,colSpan:ri.length,isEmpty:!1},ar)}return Et.createElement(Et.Fragment,null,xo,br)}Qi.displayName="BodyRow";var Wi=dt(Qi);function pr(ye){var we=ye.columnKey,Ye=ye.onColumnResize,tn=Et.useRef();return Et.useEffect(function(){tn.current&&Ye(we,tn.current.offsetWidth)},[]),Et.createElement($t.Z,{data:we},Et.createElement("td",{ref:tn,style:{padding:0,border:0,height:0}},Et.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function xr(ye){var we=ye.prefixCls,Ye=ye.columnsKey,tn=ye.onColumnResize;return Et.createElement("tr",{"aria-hidden":"true",className:"".concat(we,"-measure-row"),style:{height:0,fontSize:0}},Et.createElement($t.Z.Collection,{onBatchResize:function(on){on.forEach(function(Dn){var Rn=Dn.data,ti=Dn.size;tn(Rn,ti.offsetWidth)})}},Ye.map(function(yn){return Et.createElement(pr,{key:yn,columnKey:yn,onColumnResize:tn})})))}function qr(ye){var we=ye.data,Ye=ye.measureColumnWidth,tn=Ct(jt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),yn=tn.prefixCls,on=tn.getComponent,Dn=tn.onColumnResize,Rn=tn.flattenColumns,ti=tn.getRowKey,ze=tn.expandedKeys,cn=tn.childrenColumnName,vn=tn.emptyNode,Gn=Ie(we,cn,ze,ti),Yn=Et.useRef({renderWithProps:!1}),ri=on(["body","wrapper"],"tbody"),Fi=on(["body","row"],"tr"),ci=on(["body","cell"],"td"),Ji=on(["body","cell"],"th"),Yi;we.length?Yi=Gn.map(function(Fr,ro){var Ti=Fr.record,Jn=Fr.indent,xo=Fr.index,br=ti(Ti,ro);return Et.createElement(Wi,{key:br,rowKey:br,record:Ti,index:ro,renderIndex:xo,rowComponent:Fi,cellComponent:ci,scopeCellComponent:Ji,getRowKey:ti,indent:Jn})}):Yi=Et.createElement(zn,{expanded:!0,className:"".concat(yn,"-placeholder"),prefixCls:yn,component:Fi,cellComponent:ci,colSpan:Rn.length,isEmpty:!0},vn);var Ar=be(Rn);return Et.createElement(_e.Provider,{value:Yn.current},Et.createElement(ri,{className:"".concat(yn,"-tbody")},Ye&&Et.createElement(xr,{prefixCls:yn,columnsKey:Ar,onColumnResize:Dn}),Yi))}qr.displayName="Body";var Vr=dt(qr),Jr=["expandable"],Ir="RC_TABLE_INTERNAL_COL_DEFINE";function Xr(ye){var we=ye.expandable,Ye=(0,hn.Z)(ye,Jr),tn;return"expandable"in ye?tn=(0,Te.Z)((0,Te.Z)({},Ye),we):tn=Ye,tn.showExpandColumn===!1&&(tn.expandIconColumnIndex=-1),tn}var to=["columnType"];function ho(ye){for(var we=ye.colWidths,Ye=ye.columns,tn=ye.columCount,yn=[],on=tn||Ye.length,Dn=!1,Rn=on-1;Rn>=0;Rn-=1){var ti=we[Rn],ze=Ye&&Ye[Rn],cn=ze&&ze[Ir];if(ti||cn||Dn){var vn=cn||{},Gn=vn.columnType,Yn=(0,hn.Z)(vn,to);yn.unshift(Et.createElement("col",(0,Wt.Z)({key:Rn,style:{width:ti}},Yn))),Dn=!0}}return Et.createElement("colgroup",null,yn)}var cs=ho,no=bt(26390),Is=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function So(ye,we){return(0,Et.useMemo)(function(){for(var Ye=[],tn=0;tn<we;tn+=1){var yn=ye[tn];if(yn!==void 0)Ye[tn]=yn;else return null}return Ye},[ye.join("_"),we])}var Yt=Et.forwardRef(function(ye,we){var Ye=ye.className,tn=ye.noData,yn=ye.columns,on=ye.flattenColumns,Dn=ye.colWidths,Rn=ye.columCount,ti=ye.stickyOffsets,ze=ye.direction,cn=ye.fixHeader,vn=ye.stickyTopOffset,Gn=ye.stickyBottomOffset,Yn=ye.stickyClassName,ri=ye.onScroll,Fi=ye.maxContentScroll,ci=ye.children,Ji=(0,hn.Z)(ye,Is),Yi=Ct(jt,["prefixCls","scrollbarSize","isSticky"]),Ar=Yi.prefixCls,Fr=Yi.scrollbarSize,ro=Yi.isSticky,Ti=ro&&!cn?0:Fr,Jn=Et.useRef(null),xo=Et.useCallback(function(po){(0,Gt.mH)(we,po),(0,Gt.mH)(Jn,po)},[]);Et.useEffect(function(){var po;function Rr(Do){var hs=Do,$o=hs.currentTarget,is=hs.deltaX;is&&(ri({currentTarget:$o,scrollLeft:$o.scrollLeft+is}),Do.preventDefault())}return(po=Jn.current)===null||po===void 0||po.addEventListener("wheel",Rr),function(){var Do;(Do=Jn.current)===null||Do===void 0||Do.removeEventListener("wheel",Rr)}},[]);var br=Et.useMemo(function(){return on.every(function(po){return po.width})},[on]),ar=on[on.length-1],lr={fixed:ar?ar.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ar,"-cell-scrollbar")}}},nr=(0,Et.useMemo)(function(){return Ti?[].concat((0,no.Z)(yn),[lr]):yn},[Ti,yn]),vr=(0,Et.useMemo)(function(){return Ti?[].concat((0,no.Z)(on),[lr]):on},[Ti,on]),Zr=(0,Et.useMemo)(function(){var po=ti.right,Rr=ti.left;return(0,Te.Z)((0,Te.Z)({},ti),{},{left:ze==="rtl"?[].concat((0,no.Z)(Rr.map(function(Do){return Do+Ti})),[0]):Rr,right:ze==="rtl"?po:[].concat((0,no.Z)(po.map(function(Do){return Do+Ti})),[0]),isSticky:ro})},[Ti,ti,ro]),co=So(Dn,Rn);return Et.createElement("div",{style:(0,Te.Z)({overflow:"hidden"},ro?{top:vn,bottom:Gn}:{}),ref:xo,className:Vt()(Ye,(0,ne.Z)({},Yn,!!Yn))},Et.createElement("table",{style:{tableLayout:"fixed",visibility:tn||co?null:"hidden"}},(!tn||!Fi||br)&&Et.createElement(cs,{colWidths:co?[].concat((0,no.Z)(co),[Ti]):[],columCount:Rn+1,columns:vr}),ci((0,Te.Z)((0,Te.Z)({},Ji),{},{stickyOffsets:Zr,columns:nr,flattenColumns:vr}))))});Yt.displayName="FixedHolder";var ai=Et.memo(Yt);function Jo(ye){var we=ye.cells,Ye=ye.stickyOffsets,tn=ye.flattenColumns,yn=ye.rowComponent,on=ye.cellComponent,Dn=ye.tdCellComponent,Rn=ye.onHeaderRow,ti=ye.index,ze=Ct(jt,["prefixCls","direction"]),cn=ze.prefixCls,vn=ze.direction,Gn;Rn&&(Gn=Rn(we.map(function(ri){return ri.column}),ti));var Yn=be(we.map(function(ri){return ri.column}));return Et.createElement(yn,Gn,we.map(function(ri,Fi){var ci=ri.column,Ji=sn(ri.colStart,ri.colEnd,tn,Ye,vn,ci),Yi;return ci&&ci.onHeaderCell&&(Yi=ri.column.onHeaderCell(ci)),Et.createElement(bi,(0,Wt.Z)({},ri,{scope:ci.title?ri.colSpan>1?"colgroup":"col":null,ellipsis:ci.ellipsis,align:ci.align,component:ci.title?on:Dn,prefixCls:cn,key:Yn[Fi]},Ji,{additionalProps:Yi,rowType:"header"}))}))}Jo.displayName="HeaderRow";var sa=Jo;function xa(ye){var we=[];function Ye(Dn,Rn){var ti=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[ti]=we[ti]||[];var ze=Rn,cn=Dn.filter(Boolean).map(function(vn){var Gn={key:vn.key,className:vn.className||"",children:vn.title,column:vn,colStart:ze},Yn=1,ri=vn.children;return ri&&ri.length>0&&(Yn=Ye(ri,ze,ti+1).reduce(function(Fi,ci){return Fi+ci},0),Gn.hasSubColumns=!0),"colSpan"in vn&&(Yn=vn.colSpan),"rowSpan"in vn&&(Gn.rowSpan=vn.rowSpan),Gn.colSpan=Yn,Gn.colEnd=Gn.colStart+Yn-1,we[ti].push(Gn),ze+=Yn,Yn});return cn}Ye(ye,0);for(var tn=we.length,yn=function(Rn){we[Rn].forEach(function(ti){!("rowSpan"in ti)&&!ti.hasSubColumns&&(ti.rowSpan=tn-Rn)})},on=0;on<tn;on+=1)yn(on);return we}function va(ye){var we=ye.stickyOffsets,Ye=ye.columns,tn=ye.flattenColumns,yn=ye.onHeaderRow,on=Ct(jt,["prefixCls","getComponent"]),Dn=on.prefixCls,Rn=on.getComponent,ti=Et.useMemo(function(){return xa(Ye)},[Ye]),ze=Rn(["header","wrapper"],"thead"),cn=Rn(["header","row"],"tr"),vn=Rn(["header","cell"],"th"),Gn=Rn(["header","cell"],"td");return Et.createElement(ze,{className:"".concat(Dn,"-thead")},ti.map(function(Yn,ri){var Fi=Et.createElement(sa,{key:ri,flattenColumns:tn,cells:Yn,stickyOffsets:we,rowComponent:cn,cellComponent:vn,tdCellComponent:Gn,onHeaderRow:yn,index:ri});return Fi}))}var Zs=dt(va),Qr=bt(38298);function Vn(ye){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof we=="number"?we:we.endsWith("%")?ye*parseFloat(we)/100:null}function Qn(ye,we){return Et.useMemo(function(){if(we&&we>0){var Ye=0,tn=0;ye.forEach(function(ze){var cn=Vn(we,ze.width);cn?Ye+=cn:tn+=1});var yn=we-Ye,on=tn,Dn=yn/tn,Rn=0,ti=ye.map(function(ze){var cn=(0,Te.Z)({},ze),vn=Vn(we,cn.width);if(vn)cn.width=vn;else{var Gn=Math.floor(Dn);cn.width=on===1?yn:Gn,yn-=Gn,on-=1}return Rn+=cn.width,cn});return[ti,Rn]}return[ye,we]},[ye,we])}var kn=["children"],rn=["fixed"];function hi(ye){return(0,Qr.Z)(ye).filter(function(we){return Et.isValidElement(we)}).map(function(we){var Ye=we.key,tn=we.props,yn=tn.children,on=(0,hn.Z)(tn,kn),Dn=(0,Te.Z)({key:Ye},on);return yn&&(Dn.children=hi(yn)),Dn})}function Ci(ye){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ye.filter(function(Ye){return Ye&&(0,pe.Z)(Ye)==="object"}).reduce(function(Ye,tn,yn){var on=tn.fixed,Dn=on===!0?"left":on,Rn="".concat(we,"-").concat(yn),ti=tn.children;return ti&&ti.length>0?[].concat((0,no.Z)(Ye),(0,no.Z)(Ci(ti,Rn).map(function(ze){return(0,Te.Z)({fixed:Dn},ze)}))):[].concat((0,no.Z)(Ye),[(0,Te.Z)((0,Te.Z)({key:Rn},tn),{},{fixed:Dn})])},[])}function bn(ye){for(var we=!0,Ye=0;Ye<ye.length;Ye+=1){var tn=ye[Ye];if(we&&tn.fixed!=="left")we=!1;else if(!we&&tn.fixed==="left"){warning(!1,"Index ".concat(Ye-1," of `columns` missing `fixed='left'` prop."));break}}for(var yn=!0,on=ye.length-1;on>=0;on-=1){var Dn=ye[on];if(yn&&Dn.fixed!=="right")yn=!1;else if(!yn&&Dn.fixed==="right"){warning(!1,"Index ".concat(on+1," of `columns` missing `fixed='right'` prop."));break}}}function Ne(ye){return ye.map(function(we){var Ye=we.fixed,tn=(0,hn.Z)(we,rn),yn=Ye;return Ye==="left"?yn="right":Ye==="right"&&(yn="left"),(0,Te.Z)({fixed:yn},tn)})}function Bn(ye,we){var Ye=ye.prefixCls,tn=ye.columns,yn=ye.children,on=ye.expandable,Dn=ye.expandedKeys,Rn=ye.columnTitle,ti=ye.getRowKey,ze=ye.onTriggerExpand,cn=ye.expandIcon,vn=ye.rowExpandable,Gn=ye.expandIconColumnIndex,Yn=ye.direction,ri=ye.expandRowByClick,Fi=ye.columnWidth,ci=ye.fixed,Ji=ye.scrollWidth,Yi=Et.useMemo(function(){return tn||hi(yn)},[tn,yn]),Ar=Et.useMemo(function(){if(on){var ar,lr=Yi.slice();if(!lr.includes(Lt)){var nr=Gn||0;nr>=0&&lr.splice(nr,0,Lt)}var vr=lr.indexOf(Lt);lr=lr.filter(function(Rr,Do){return Rr!==Lt||Do===vr});var Zr=Yi[vr],co;(ci==="left"||ci)&&!Gn?co="left":(ci==="right"||ci)&&Gn===Yi.length?co="right":co=Zr?Zr.fixed:null;var po=(ar={},(0,ne.Z)(ar,Ir,{className:"".concat(Ye,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ne.Z)(ar,"title",Rn),(0,ne.Z)(ar,"fixed",co),(0,ne.Z)(ar,"className","".concat(Ye,"-row-expand-icon-cell")),(0,ne.Z)(ar,"width",Fi),(0,ne.Z)(ar,"render",function(Do,hs,$o){var is=ti(hs,$o),yo=Dn.has(is),pa=vn?vn(hs):!0,Wo=cn({prefixCls:Ye,expanded:yo,expandable:pa,record:hs,onExpand:ze});return ri?Et.createElement("span",{onClick:function(Cs){return Cs.stopPropagation()}},Wo):Wo}),ar);return lr.map(function(Rr){return Rr===Lt?po:Rr})}return Yi.filter(function(Rr){return Rr!==Lt})},[on,Yi,ti,Dn,cn,Yn]),Fr=Et.useMemo(function(){var ar=Ar;return we&&(ar=we(ar)),ar.length||(ar=[{render:function(){return null}}]),ar},[we,Ar,Yn]),ro=Et.useMemo(function(){return Yn==="rtl"?Ne(Ci(Fr)):Ci(Fr)},[Fr,Yn,Ji]),Ti=Qn(ro,Ji),Jn=(0,se.Z)(Ti,2),xo=Jn[0],br=Jn[1];return[Fr,xo,br]}var _n=Bn;function Ii(ye){var we,Ye=ye.prefixCls,tn=ye.record,yn=ye.onExpand,on=ye.expanded,Dn=ye.expandable,Rn="".concat(Ye,"-row-expand-icon");if(!Dn)return Et.createElement("span",{className:Vt()(Rn,"".concat(Ye,"-row-spaced"))});var ti=function(cn){yn(tn,cn),cn.stopPropagation()};return Et.createElement("span",{className:Vt()(Rn,(we={},(0,ne.Z)(we,"".concat(Ye,"-row-expanded"),on),(0,ne.Z)(we,"".concat(Ye,"-row-collapsed"),!on),we)),onClick:ti})}function ni(ye,we,Ye){var tn=[];function yn(on){(on||[]).forEach(function(Dn,Rn){tn.push(we(Dn,Rn)),yn(Dn[Ye])})}return yn(ye),tn}function mn(ye,we,Ye){var tn=Xr(ye),yn=tn.expandIcon,on=tn.expandedRowKeys,Dn=tn.defaultExpandedRowKeys,Rn=tn.defaultExpandAllRows,ti=tn.expandedRowRender,ze=tn.onExpand,cn=tn.onExpandedRowsChange,vn=tn.childrenColumnName,Gn=yn||Ii,Yn=vn||"children",ri=Et.useMemo(function(){return ti?"row":ye.expandable&&ye.internalHooks===ge&&ye.expandable.__PARENT_RENDER_ICON__||we.some(function(ro){return ro&&(0,pe.Z)(ro)==="object"&&ro[Yn]})?"nest":!1},[!!ti,we]),Fi=Et.useState(function(){return Dn||(Rn?ni(we,Ye,Yn):[])}),ci=(0,se.Z)(Fi,2),Ji=ci[0],Yi=ci[1],Ar=Et.useMemo(function(){return new Set(on||Ji||[])},[on,Ji]),Fr=Et.useCallback(function(ro){var Ti=Ye(ro,we.indexOf(ro)),Jn,xo=Ar.has(Ti);xo?(Ar.delete(Ti),Jn=(0,no.Z)(Ar)):Jn=[].concat((0,no.Z)(Ar),[Ti]),Yi(Jn),ze&&ze(!xo,ro),cn&&cn(Jn)},[Ye,Ar,we,ze,cn]);return[tn,ri,Ar,Gn,Yn,Fr]}function Ai(ye,we,Ye,tn){var yn=ye.map(function(on,Dn){return sn(Dn,Dn,ye,we,Ye,tn==null?void 0:tn[Dn])});return(0,$e.Z)(function(){return yn},[yn],function(on,Dn){return!(0,le.Z)(on,Dn)})}function Mi(ye){var we=(0,Et.useRef)(ye),Ye=(0,Et.useState)({}),tn=(0,se.Z)(Ye,2),yn=tn[1],on=(0,Et.useRef)(null),Dn=(0,Et.useRef)([]);function Rn(ti){Dn.current.push(ti);var ze=Promise.resolve();on.current=ze,ze.then(function(){if(on.current===ze){var cn=Dn.current,vn=we.current;Dn.current=[],cn.forEach(function(Gn){we.current=Gn(we.current)}),on.current=null,vn!==we.current&&yn({})}})}return(0,Et.useEffect)(function(){return function(){on.current=null}},[]),[we.current,Rn]}function er(ye){var we=(0,Et.useRef)(ye||null),Ye=(0,Et.useRef)();function tn(){window.clearTimeout(Ye.current)}function yn(Dn){we.current=Dn,tn(),Ye.current=window.setTimeout(function(){we.current=null,Ye.current=void 0},100)}function on(){return we.current}return(0,Et.useEffect)(function(){return tn},[]),[yn,on]}function On(){var ye=Et.useState(-1),we=(0,se.Z)(ye,2),Ye=we[0],tn=we[1],yn=Et.useState(-1),on=(0,se.Z)(yn,2),Dn=on[0],Rn=on[1],ti=Et.useCallback(function(ze,cn){tn(ze),Rn(cn)},[]);return[Ye,Dn,ti]}var Si=bt(87746),Pr=(0,Si.Z)()?window:null;function rr(ye,we){var Ye=(0,pe.Z)(ye)==="object"?ye:{},tn=Ye.offsetHeader,yn=tn===void 0?0:tn,on=Ye.offsetSummary,Dn=on===void 0?0:on,Rn=Ye.offsetScroll,ti=Rn===void 0?0:Rn,ze=Ye.getContainer,cn=ze===void 0?function(){return Pr}:ze,vn=cn()||Pr;return Et.useMemo(function(){var Gn=!!ye;return{isSticky:Gn,stickyClassName:Gn?"".concat(we,"-sticky-holder"):"",offsetHeader:yn,offsetSummary:Dn,offsetScroll:ti,container:vn}},[ti,yn,Dn,we,vn])}function Kr(ye,we,Ye){var tn=(0,Et.useMemo)(function(){for(var yn=[],on=[],Dn=0,Rn=0,ti=0;ti<we;ti+=1)if(Ye==="rtl"){on[ti]=Rn,Rn+=ye[ti]||0;var ze=we-ti-1;yn[ze]=Dn,Dn+=ye[ze]||0}else{yn[ti]=Dn,Dn+=ye[ti]||0;var cn=we-ti-1;on[cn]=Rn,Rn+=ye[cn]||0}return{left:yn,right:on}},[ye,we,Ye]);return tn}var sr=Kr;function Br(ye){var we=ye.className,Ye=ye.children;return Et.createElement("div",{className:we},Ye)}var dr=Br,Er=bt(8178),ao=bt(21783),Xi=function(we,Ye){var tn,yn,on=we.scrollBodyRef,Dn=we.onScroll,Rn=we.offsetScroll,ti=we.container,ze=Ct(jt,"prefixCls"),cn=((tn=on.current)===null||tn===void 0?void 0:tn.scrollWidth)||0,vn=((yn=on.current)===null||yn===void 0?void 0:yn.clientWidth)||0,Gn=cn&&vn*(vn/cn),Yn=Et.useRef(),ri=Mi({scrollLeft:0,isHiddenScrollBar:!1}),Fi=(0,se.Z)(ri,2),ci=Fi[0],Ji=Fi[1],Yi=Et.useRef({delta:0,x:0}),Ar=Et.useState(!1),Fr=(0,se.Z)(Ar,2),ro=Fr[0],Ti=Fr[1],Jn=function(){Ti(!1)},xo=function(vr){vr.persist(),Yi.current.delta=vr.pageX-ci.scrollLeft,Yi.current.x=0,Ti(!0),vr.preventDefault()},br=function(vr){var Zr,co=vr||((Zr=window)===null||Zr===void 0?void 0:Zr.event),po=co.buttons;if(!ro||po===0){ro&&Ti(!1);return}var Rr=Yi.current.x+vr.pageX-Yi.current.x-Yi.current.delta;Rr<=0&&(Rr=0),Rr+Gn>=vn&&(Rr=vn-Gn),Dn({scrollLeft:Rr/vn*(cn+2)}),Yi.current.x=vr.pageX},ar=function(){if(on.current){var vr=(0,ao.os)(on.current).top,Zr=vr+on.current.offsetHeight,co=ti===window?document.documentElement.scrollTop+window.innerHeight:(0,ao.os)(ti).top+ti.clientHeight;Zr-(0,Zt.Z)()<=co||vr>=co-Rn?Ji(function(po){return(0,Te.Z)((0,Te.Z)({},po),{},{isHiddenScrollBar:!0})}):Ji(function(po){return(0,Te.Z)((0,Te.Z)({},po),{},{isHiddenScrollBar:!1})})}},lr=function(vr){Ji(function(Zr){return(0,Te.Z)((0,Te.Z)({},Zr),{},{scrollLeft:vr/cn*vn||0})})};return Et.useImperativeHandle(Ye,function(){return{setScrollLeft:lr}}),Et.useEffect(function(){var nr=(0,Er.Z)(document.body,"mouseup",Jn,!1),vr=(0,Er.Z)(document.body,"mousemove",br,!1);return ar(),function(){nr.remove(),vr.remove()}},[Gn,ro]),Et.useEffect(function(){var nr=(0,Er.Z)(ti,"scroll",ar,!1),vr=(0,Er.Z)(window,"resize",ar,!1);return function(){nr.remove(),vr.remove()}},[ti]),Et.useEffect(function(){ci.isHiddenScrollBar||Ji(function(nr){var vr=on.current;return vr?(0,Te.Z)((0,Te.Z)({},nr),{},{scrollLeft:vr.scrollLeft/vr.scrollWidth*vr.clientWidth}):nr})},[ci.isHiddenScrollBar]),cn<=vn||!Gn||ci.isHiddenScrollBar?null:Et.createElement("div",{style:{height:(0,Zt.Z)(),width:vn,bottom:Rn},className:"".concat(ze,"-sticky-scroll")},Et.createElement("div",{onMouseDown:xo,ref:Yn,className:Vt()("".concat(ze,"-sticky-scroll-bar"),(0,ne.Z)({},"".concat(ze,"-sticky-scroll-bar-active"),ro)),style:{width:"".concat(Gn,"px"),transform:"translate3d(".concat(ci.scrollLeft,"px, 0, 0)")}}))},yr=Et.forwardRef(Xi);function Lo(ye){return null}var xs=Lo;function Uo(ye){return null}var jn=Uo,Tr="rc-table",so=[],_r={};function ns(){return"No Data"}function Oo(ye){var we,Ye=(0,Te.Z)({rowKey:"key",prefixCls:Tr,emptyText:ns},ye),tn=Ye.prefixCls,yn=Ye.className,on=Ye.rowClassName,Dn=Ye.style,Rn=Ye.data,ti=Ye.rowKey,ze=Ye.scroll,cn=Ye.tableLayout,vn=Ye.direction,Gn=Ye.title,Yn=Ye.footer,ri=Ye.summary,Fi=Ye.caption,ci=Ye.id,Ji=Ye.showHeader,Yi=Ye.components,Ar=Ye.emptyText,Fr=Ye.onRow,ro=Ye.onHeaderRow,Ti=Ye.internalHooks,Jn=Ye.transformColumns,xo=Ye.internalRefs,br=Ye.tailor,ar=Ye.sticky,lr=Rn||so,nr=!!lr.length,vr=Ti===ge,Zr=Et.useCallback(function(Oa,Ya){return(0,Ge.Z)(Yi,Oa)||Ya},[Yi]),co=Et.useMemo(function(){return typeof ti=="function"?ti:function(Oa){var Ya=Oa&&Oa[ti];return Ya}},[ti]),po=Zr(["body"]),Rr=On(),Do=(0,se.Z)(Rr,3),hs=Do[0],$o=Do[1],is=Do[2],yo=mn(Ye,lr,co),pa=(0,se.Z)(yo,6),Wo=pa[0],rs=pa[1],Cs=pa[2],qs=pa[3],Ua=pa[4],$s=pa[5],Qo=ze==null?void 0:ze.x,zo=Et.useState(0),gs=(0,se.Z)(zo,2),es=gs[0],Os=gs[1],oo=_n((0,Te.Z)((0,Te.Z)((0,Te.Z)({},Ye),Wo),{},{expandable:!!Wo.expandedRowRender,columnTitle:Wo.columnTitle,expandedKeys:Cs,getRowKey:co,onTriggerExpand:$s,expandIcon:qs,expandIconColumnIndex:Wo.expandIconColumnIndex,direction:vn,scrollWidth:vr&&br&&typeof Qo=="number"?Qo:null}),vr?Jn:null),Go=(0,se.Z)(oo,3),aa=Go[0],Us=Go[1],zl=Go[2],Ml=zl!=null?zl:Qo,Ps=Et.useMemo(function(){return{columns:aa,flattenColumns:Us}},[aa,Us]),ua=Et.useRef(),Ul=Et.useRef(),fo=Et.useRef(),Ra=Et.useRef(),Gl=Et.useRef(),ta=Et.useState(!1),la=(0,se.Z)(ta,2),ka=la[0],$a=la[1],ll=Et.useState(!1),Rs=(0,se.Z)(ll,2),Ta=Rs[0],Sl=Rs[1],pu=Mi(new Map),uu=(0,se.Z)(pu,2),Ru=uu[0],$u=uu[1],Ah=be(Us),Yu=Ah.map(function(Oa){return Ru.get(Oa)}),Ha=Et.useMemo(function(){return Yu},[Yu.join("_")]),Bu=sr(Ha,Us.length,vn),Rl=ze&&Fn(ze.y),il=ze&&Fn(Ml)||!!Wo.fixed,vh=il&&Us.some(function(Oa){var Ya=Oa.fixed;return Ya}),Cc=Et.useRef(),yh=rr(ar,tn),rc=yh.isSticky,oc=yh.offsetHeader,wh=yh.offsetSummary,da=yh.offsetScroll,Cl=yh.stickyClassName,Ca=yh.container,gl=Et.useMemo(function(){return ri==null?void 0:ri(lr)},[ri,lr]),Aa=(Rl||rc)&&Et.isValidElement(gl)&&gl.type===Kt&&gl.props.fixed,hu,Fu,Kh;Rl&&(Fu={overflowY:"scroll",maxHeight:ze.y}),il&&(hu={overflowX:"auto"},Rl||(Fu={overflowY:"hidden"}),Kh={width:Ml===!0?"auto":Ml,minWidth:"100%"});var Th=Et.useCallback(function(Oa,Ya){(0,Pt.Z)(ua.current)&&$u(function(Mu){if(Mu.get(Oa)!==Ya){var fh=new Map(Mu);return fh.set(Oa,Ya),fh}return Mu})},[]),Kn=er(null),Hu=(0,se.Z)(Kn,2),Oh=Hu[0],lA=Hu[1];function nd(Oa,Ya){Ya&&(typeof Ya=="function"?Ya(Oa):Ya.scrollLeft!==Oa&&(Ya.scrollLeft=Oa,Ya.scrollLeft!==Oa&&setTimeout(function(){Ya.scrollLeft=Oa},0)))}var gc=(0,De.Z)(function(Oa){var Ya=Oa.currentTarget,Mu=Oa.scrollLeft,fh=vn==="rtl",Eh=typeof Mu=="number"?Mu:Ya.scrollLeft,Zd=Ya||_r;if(!lA()||lA()===Zd){var Bc;Oh(Zd),nd(Eh,Ul.current),nd(Eh,fo.current),nd(Eh,Gl.current),nd(Eh,(Bc=Cc.current)===null||Bc===void 0?void 0:Bc.setScrollLeft)}var Pd=Ya||Ul.current;if(Pd){var Zu=Pd.scrollWidth,xh=Pd.clientWidth;if(Zu===xh){$a(!1),Sl(!1);return}fh?($a(-Eh<Zu-xh),Sl(-Eh>0)):($a(Eh>0),Sl(Eh<Zu-xh))}}),xd=function(){il&&fo.current?gc({currentTarget:fo.current}):($a(!1),Sl(!1))},SA=function(Ya){var Mu=Ya.width;Mu!==es&&(xd(),Os(ua.current?ua.current.offsetWidth:Mu))},Lu=Et.useRef(!1);Et.useEffect(function(){Lu.current&&xd()},[il,Rn,aa.length]),Et.useEffect(function(){Lu.current=!0},[]);var jc=Et.useState(0),Kd=(0,se.Z)(jc,2),id=Kd[0],CA=Kd[1],Uc=Et.useState(!0),Sd=(0,se.Z)(Uc,2),Ju=Sd[0],ah=Sd[1];Et.useEffect(function(){(!br||!vr)&&(fo.current instanceof Element?CA((0,Zt.o)(fo.current).width):CA((0,Zt.o)(Ra.current).width)),ah((0,mt.G)("position","sticky"))},[]),Et.useEffect(function(){vr&&xo&&(xo.body.current=fo.current)});var Vu=Et.useCallback(function(Oa){return Et.createElement(Et.Fragment,null,Et.createElement(Zs,Oa),Aa==="top"&&Et.createElement(je,Oa,gl))},[Aa,gl]),BA=Et.useCallback(function(Oa){return Et.createElement(je,Oa,gl)},[gl]),Gh=Zr(["table"],"table"),na=Et.useMemo(function(){return cn||(vh?Ml==="max-content"?"auto":"fixed":Rl||rc||Us.some(function(Oa){var Ya=Oa.ellipsis;return Ya})?"fixed":"auto")},[Rl,vh,Us,cn,rc]),Cd,rd={colWidths:Ha,columCount:Us.length,stickyOffsets:Bu,onHeaderRow:ro,fixHeader:Rl,scroll:ze},mu=Et.useMemo(function(){return nr?null:typeof Ar=="function"?Ar():Ar},[nr,Ar]),Gd=Et.createElement(Vr,{data:lr,measureColumnWidth:Rl||il||rc}),Wd=Et.createElement(cs,{colWidths:Us.map(function(Oa){var Ya=Oa.width;return Ya}),columns:Us}),qu=Fi!=null?Et.createElement("caption",{className:"".concat(tn,"-caption")},Fi):void 0,Rc=(0,Se.Z)(Ye,{data:!0}),Bd=(0,Se.Z)(Ye,{aria:!0});if(Rl||rc){var Vd;typeof po=="function"?(Vd=po(lr,{scrollbarSize:id,ref:fo,onScroll:gc}),rd.colWidths=Us.map(function(Oa,Ya){var Mu=Oa.width,fh=Ya===Us.length-1?Mu-id:Mu;return typeof fh=="number"&&!Number.isNaN(fh)?fh:0})):Vd=Et.createElement("div",{style:(0,Te.Z)((0,Te.Z)({},hu),Fu),onScroll:gc,ref:fo,className:Vt()("".concat(tn,"-body"))},Et.createElement(Gh,(0,Wt.Z)({style:(0,Te.Z)((0,Te.Z)({},Kh),{},{tableLayout:na})},Bd),qu,Wd,Gd,!Aa&&gl&&Et.createElement(je,{stickyOffsets:Bu,flattenColumns:Us,columns:aa},gl)));var cu=(0,Te.Z)((0,Te.Z)((0,Te.Z)({noData:!lr.length,maxContentScroll:il&&Ml==="max-content"},rd),Ps),{},{direction:vn,stickyClassName:Cl,onScroll:gc});Cd=Et.createElement(Et.Fragment,null,Ji!==!1&&Et.createElement(ai,(0,Wt.Z)({},cu,{stickyTopOffset:oc,className:"".concat(tn,"-header"),ref:Ul}),Vu),Vd,Aa&&Aa!=="top"&&Et.createElement(ai,(0,Wt.Z)({},cu,{stickyBottomOffset:wh,className:"".concat(tn,"-summary"),ref:Gl}),BA),rc&&Et.createElement(yr,{ref:Cc,offsetScroll:da,scrollBodyRef:fo,onScroll:gc,container:Ca}))}else Cd=Et.createElement("div",{style:(0,Te.Z)((0,Te.Z)({},hu),Fu),className:Vt()("".concat(tn,"-content")),onScroll:gc,ref:fo},Et.createElement(Gh,(0,Wt.Z)({style:(0,Te.Z)((0,Te.Z)({},Kh),{},{tableLayout:na})},Bd),qu,Wd,Ji!==!1&&Et.createElement(Zs,(0,Wt.Z)({},rd,Ps)),Gd,gl&&Et.createElement(je,{stickyOffsets:Bu,flattenColumns:Us,columns:aa},gl)));var vu=Et.createElement("div",(0,Wt.Z)({className:Vt()(tn,yn,(we={},(0,ne.Z)(we,"".concat(tn,"-rtl"),vn==="rtl"),(0,ne.Z)(we,"".concat(tn,"-ping-left"),ka),(0,ne.Z)(we,"".concat(tn,"-ping-right"),Ta),(0,ne.Z)(we,"".concat(tn,"-layout-fixed"),cn==="fixed"),(0,ne.Z)(we,"".concat(tn,"-fixed-header"),Rl),(0,ne.Z)(we,"".concat(tn,"-fixed-column"),vh),(0,ne.Z)(we,"".concat(tn,"-scroll-horizontal"),il),(0,ne.Z)(we,"".concat(tn,"-has-fix-left"),Us[0]&&Us[0].fixed),(0,ne.Z)(we,"".concat(tn,"-has-fix-right"),Us[Us.length-1]&&Us[Us.length-1].fixed==="right"),we)),style:Dn,id:ci,ref:ua},Rc),Gn&&Et.createElement(dr,{className:"".concat(tn,"-title")},Gn(lr)),Et.createElement("div",{ref:Ra,className:"".concat(tn,"-container")},Cd),Yn&&Et.createElement(dr,{className:"".concat(tn,"-footer")},Yn(lr)));il&&(vu=Et.createElement($t.Z,{onResize:SA},vu));var Hc=Ai(Us,Bu,vn,aa),Hl=Et.useMemo(function(){return{scrollX:Ml,prefixCls:tn,getComponent:Zr,scrollbarSize:id,direction:vn,fixedInfoList:Hc,isSticky:rc,supportSticky:Ju,componentWidth:es,fixHeader:Rl,fixColumn:vh,horizonScroll:il,tableLayout:na,rowClassName:on,expandedRowClassName:Wo.expandedRowClassName,expandIcon:qs,expandableType:rs,expandRowByClick:Wo.expandRowByClick,expandedRowRender:Wo.expandedRowRender,onTriggerExpand:$s,expandIconColumnIndex:Wo.expandIconColumnIndex,indentSize:Wo.indentSize,allColumnsFixedLeft:Us.every(function(Oa){return Oa.fixed==="left"}),emptyNode:mu,columns:aa,flattenColumns:Us,onColumnResize:Th,hoverStartRow:hs,hoverEndRow:$o,onHover:is,rowExpandable:Wo.rowExpandable,onRow:Fr,getRowKey:co,expandedKeys:Cs,childrenColumnName:Ua}},[Ml,tn,Zr,id,vn,Hc,rc,Ju,es,Rl,vh,il,na,on,Wo.expandedRowClassName,qs,rs,Wo.expandRowByClick,Wo.expandedRowRender,$s,Wo.expandIconColumnIndex,Wo.indentSize,mu,aa,Us,Th,hs,$o,is,Wo.rowExpandable,Fr,co,Cs,Ua]);return Et.createElement(jt.Provider,{value:Hl},vu)}function yi(ye){return ht(Oo,ye)}var Bo=yi();Bo.EXPAND_COLUMN=Lt,Bo.INTERNAL_HOOKS=ge,Bo.Column=xs,Bo.ColumnGroup=jn,Bo.Summary=ce;var Hr=Bo,kr=bt(21881),Bi=ee(null),Po=ee(null);function Pi(ye,we,Ye){var tn=we||1;return Ye[ye+tn]-(Ye[ye]||0)}function Xo(ye){var we=ye.rowInfo,Ye=ye.column,tn=ye.colIndex,yn=ye.indent,on=ye.index,Dn=ye.renderIndex,Rn=ye.record,ti=ye.style,ze=ye.className,cn=ye.inverse,vn=ye.getHeight,Gn=Ye.render,Yn=Ye.dataIndex,ri=Ye.className,Fi=Ye.width,ci=Ct(Po,["columnsOffset"]),Ji=ci.columnsOffset,Yi=li(we,Ye,tn,yn,on),Ar=Yi.key,Fr=Yi.fixedInfo,ro=Yi.appendCellNode,Ti=Yi.additionalCellProps,Jn=Ti.style,xo=Ti.colSpan,br=xo===void 0?1:xo,ar=Ti.rowSpan,lr=ar===void 0?1:ar,nr=tn-1,vr=Pi(nr,br,Ji),Zr=br>1?Fi-vr:0,co=(0,Te.Z)((0,Te.Z)((0,Te.Z)({},Jn),ti),{},{flex:"0 0 ".concat(vr,"px"),width:"".concat(vr,"px"),marginRight:Zr,pointerEvents:"auto"}),po=Et.useMemo(function(){return cn?lr<=1:br===0||lr===0||lr>1},[lr,br,cn]);po?co.visibility="hidden":cn&&(co.height=vn==null?void 0:vn(lr));var Rr=po?function(){return null}:Gn,Do={};return(lr===0||br===0)&&(Do.rowSpan=1,Do.colSpan=1),Et.createElement(bi,(0,Wt.Z)({className:Vt()(ri,ze),ellipsis:Ye.ellipsis,align:Ye.align,scope:Ye.rowScope,component:"div",prefixCls:we.prefixCls,key:Ar,record:Rn,index:on,renderIndex:Dn,dataIndex:Yn,render:Rr,shouldCellUpdate:Ye.shouldCellUpdate},Fr,{appendNode:ro,additionalProps:(0,Te.Z)((0,Te.Z)({},Ti),{},{style:co},Do)}))}var ha=Xo,fs=["data","index","className","rowKey","style","extra","getHeight"],ba=Et.forwardRef(function(ye,we){var Ye=ye.data,tn=ye.index,yn=ye.className,on=ye.rowKey,Dn=ye.style,Rn=ye.extra,ti=ye.getHeight,ze=(0,hn.Z)(ye,fs),cn=Ye.record,vn=Ye.indent,Gn=Ye.index,Yn=Ct(jt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ri=Yn.scrollX,Fi=Yn.flattenColumns,ci=Yn.prefixCls,Ji=Yn.fixColumn,Yi=Yn.componentWidth,Ar=xn(cn,on,tn,vn),Fr=Ar.rowSupportExpand,ro=Ar.expanded,Ti=Ar.rowProps,Jn=Ar.expandedRowRender,xo=Ar.expandedRowClassName,br;if(Fr&&ro){var ar=Jn(cn,tn,vn+1,ro),lr=xo==null?void 0:xo(cn,tn,vn),nr={};Ji&&(nr={style:(0,ne.Z)({},"--virtual-width","".concat(Yi,"px"))});var vr="".concat(ci,"-expanded-row-cell");br=Et.createElement("div",{className:Vt()("".concat(ci,"-expanded-row"),"".concat(ci,"-expanded-row-level-").concat(vn+1),lr)},Et.createElement(bi,{component:"div",prefixCls:ci,className:Vt()(vr,(0,ne.Z)({},"".concat(vr,"-fixed"),Ji)),additionalProps:nr},ar))}var Zr=(0,Te.Z)((0,Te.Z)({},Dn),{},{width:ri});Rn&&(Zr.position="absolute",Zr.pointerEvents="none");var co=Et.createElement("div",(0,Wt.Z)({},Ti,ze,{ref:Fr?null:we,className:Vt()(yn,"".concat(ci,"-row"),Ti==null?void 0:Ti.className,(0,ne.Z)({},"".concat(ci,"-row-extra"),Rn)),style:(0,Te.Z)((0,Te.Z)({},Zr),Ti==null?void 0:Ti.style)}),Fi.map(function(po,Rr){return Et.createElement(ha,{key:Rr,rowInfo:Ar,column:po,colIndex:Rr,indent:vn,index:tn,renderIndex:Gn,record:cn,inverse:Rn,getHeight:ti})}));return Fr?Et.createElement("div",{ref:we},co,br):co}),Xs=dt(ba),bo=Xs,jo=Et.forwardRef(function(ye,we){var Ye=ye.data,tn=ye.onScroll,yn=Ct(jt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),on=yn.flattenColumns,Dn=yn.onColumnResize,Rn=yn.getRowKey,ti=yn.expandedKeys,ze=yn.prefixCls,cn=yn.childrenColumnName,vn=yn.emptyNode,Gn=yn.scrollX,Yn=Ct(Bi),ri=Yn.scrollY,Fi=Yn.listItemHeight,ci=Et.useRef(),Ji=Ie(Ye,cn,ti,Rn),Yi=Et.useMemo(function(){var br=0;return on.map(function(ar){var lr=ar.width,nr=ar.key;return br+=lr,[nr,lr,br]})},[on]),Ar=Et.useMemo(function(){return Yi.map(function(br){return br[2]})},[Yi]);Et.useEffect(function(){Yi.forEach(function(br){var ar=(0,se.Z)(br,2),lr=ar[0],nr=ar[1];Dn(lr,nr)})},[Yi]),Et.useImperativeHandle(we,function(){var br={};return Object.defineProperty(br,"scrollLeft",{get:function(){var lr;return((lr=ci.current)===null||lr===void 0?void 0:lr.getScrollInfo().x)||0},set:function(lr){var nr;(nr=ci.current)===null||nr===void 0||nr.scrollTo({left:lr})}}),br});var Fr=function(ar,lr){var nr,vr=(nr=Ji[lr])===null||nr===void 0?void 0:nr.record,Zr=ar.onCell;if(Zr){var co,po=Zr(vr,lr);return(co=po==null?void 0:po.rowSpan)!==null&&co!==void 0?co:1}return 1},ro=function(ar){var lr=ar.start,nr=ar.end,vr=ar.getSize,Zr=ar.offsetY;if(nr<0)return null;for(var co=on.filter(function(Qo){return Fr(Qo,lr)===0}),po=lr,Rr=function(zo){if(co=co.filter(function(gs){return Fr(gs,zo)===0}),!co.length)return po=zo,"break"},Do=lr;Do>=0;Do-=1){var hs=Rr(Do);if(hs==="break")break}for(var $o=on.filter(function(Qo){return Fr(Qo,nr)!==1}),is=nr,yo=function(zo){if($o=$o.filter(function(gs){return Fr(gs,zo)!==1}),!$o.length)return is=Math.max(zo-1,nr),"break"},pa=nr;pa<Ji.length;pa+=1){var Wo=yo(pa);if(Wo==="break")break}for(var rs=[],Cs=function(zo){var gs=Ji[zo];if(!gs)return"continue";on.some(function(es){return Fr(es,zo)>1})&&rs.push(zo)},qs=po;qs<=is;qs+=1)var Ua=Cs(qs);var $s=rs.map(function(Qo){var zo=Ji[Qo],gs=Rn(zo.record,Qo),es=function(Go){var aa=Qo+Go-1,Us=Rn(Ji[aa].record,aa),zl=vr(gs,Us);return zl.bottom-zl.top},Os=vr(gs);return Et.createElement(bo,{key:Qo,data:zo,rowKey:gs,index:Qo,style:{top:-Zr+Os.top},extra:!0,getHeight:es})});return $s},Ti=Et.useMemo(function(){return{columnsOffset:Ar}},[Ar]),Jn="".concat(ze,"-tbody"),xo;return Ji.length?xo=Et.createElement(kr.Z,{fullHeight:!1,ref:ci,className:Vt()(Jn,"".concat(Jn,"-virtual")),height:ri,itemHeight:Fi||24,data:Ji,itemKey:function(ar){return Rn(ar.record)},scrollWidth:Gn,onVirtualScroll:function(ar){var lr=ar.x;tn({scrollLeft:lr})},extraRender:ro},function(br,ar,lr){var nr=Rn(br.record,ar);return Et.createElement(bo,(0,Wt.Z)({data:br,rowKey:nr,index:ar},lr))}):xo=Et.createElement("div",{className:Vt()("".concat(ze,"-placeholder"))},Et.createElement(bi,{component:"div",prefixCls:ze},vn)),Et.createElement(Po.Provider,{value:Ti},xo)}),ps=dt(jo),us=ps,gr=function(we,Ye){var tn=Ye.ref,yn=Ye.onScroll;return Et.createElement(us,{ref:tn,data:we,onScroll:yn})},Ue=100;function qo(ye){var we=ye.columns,Ye=ye.scroll,tn=ye.prefixCls,yn=tn===void 0?Tr:tn,on=ye.className,Dn=ye.listItemHeight,Rn=Ye||{},ti=Rn.x,ze=Rn.y;typeof ti!="number"&&(ti=((we||[]).length+1)*Ue),typeof ze!="number"&&(ze=500);var cn=Et.useMemo(function(){return{scrollY:ze,listItemHeight:Dn}},[ze,Dn]);return Et.createElement(Bi.Provider,{value:cn},Et.createElement(Hr,(0,Wt.Z)({},ye,{className:Vt()(on,"".concat(yn,"-virtual")),scroll:(0,Te.Z)((0,Te.Z)({},Ye),{},{x:ti}),components:{body:gr},columns:we,internalHooks:ge,tailor:!0})))}function Sa(ye){return ht(qo,ye)}var za=Sa(),El=null;function ss(ye){return null}var Vo=ss;function bs(ye){return null}var ia=bs,ts=bt(64002),Ea=bt(68031),Mo=bt(36355),io=bt(93891),Ko=bt(19716),Gi=bt(8628),Ms=bt(31724),Gs=bt(25700),Fa=bt(71418),Js=bt(88088);function Ho(ye){return function(Ye){let{prefixCls:tn,onExpand:yn,record:on,expanded:Dn,expandable:Rn}=Ye;const ti=`${tn}-row-expand-icon`;return Et.createElement("button",{type:"button",onClick:ze=>{yn(on,ze),ze.stopPropagation()},className:Vt()(ti,{[`${ti}-spaced`]:!Rn,[`${ti}-expanded`]:Rn&&Dn,[`${ti}-collapsed`]:Rn&&!Dn}),"aria-label":Dn?ye.collapse:ye.expand,"aria-expanded":Dn})}}var Ks=Ho;function yl(ye,we){return"key"in ye&&ye.key!==void 0&&ye.key!==null?ye.key:ye.dataIndex?Array.isArray(ye.dataIndex)?ye.dataIndex.join("."):ye.dataIndex:we}function wl(ye,we){return we?`${we}-${ye}`:`${ye}`}function Dl(ye,we){return typeof ye=="function"?ye(we):ye}function Bs(ye,we){const Ye=Dl(ye,we);return Object.prototype.toString.call(Ye)==="[object Object]"?"":Ye}var ui={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"},Za=ui,mh=bt(88853),ju=function(we,Ye){return Et.createElement(mh.Z,(0,Wt.Z)({},we,{ref:Ye,icon:Za}))},su=Et.forwardRef(ju),Ao=su,zs=bt(56762);function Ns(ye){const we=Et.useRef(ye),Ye=(0,zs.Z)();return[()=>we.current,tn=>{we.current=tn,Ye()}]}var Es=bt(3113),_s=bt(24905),Nl=bt(38854),As=bt(64165),Qs=bt(20834),Ss=bt(40875),Gr=bt(5112),ul=bt(86914),Ds=bt(21970),Su=bt(92832);function Ku(ye){let{value:we,onChange:Ye,filterSearch:tn,tablePrefixCls:yn,locale:on}=ye;return tn?Et.createElement("div",{className:`${yn}-filter-dropdown-search`},Et.createElement(Su.default,{prefix:Et.createElement(Ds.Z,null),placeholder:on.filterSearchPlaceholder,onChange:Ye,value:we,htmlSize:1,className:`${yn}-filter-dropdown-search-input`})):null}var $l=Ku,fr=bt(85108);const Xa=ye=>{const{keyCode:we}=ye;we===fr.Z.ENTER&&ye.stopPropagation()};var Fl=Et.forwardRef((ye,we)=>Et.createElement("div",{className:ye.className,onClick:Ye=>Ye.stopPropagation(),onKeyDown:Xa,ref:we},ye.children));function au(ye){let we=[];return(ye||[]).forEach(Ye=>{let{value:tn,children:yn}=Ye;we.push(tn),yn&&(we=[].concat((0,no.Z)(we),(0,no.Z)(au(yn))))}),we}function Ja(ye){return ye.some(we=>{let{children:Ye}=we;return Ye})}function Eo(ye,we){return typeof we=="string"||typeof we=="number"?we==null?void 0:we.toString().toLowerCase().includes(ye.trim().toLowerCase()):!1}function ja(ye){let{filters:we,prefixCls:Ye,filteredKeys:tn,filterMultiple:yn,searchValue:on,filterSearch:Dn}=ye;return we.map((Rn,ti)=>{const ze=String(Rn.value);if(Rn.children)return{key:ze||ti,label:Rn.text,popupClassName:`${Ye}-dropdown-submenu`,children:ja({filters:Rn.children,prefixCls:Ye,filteredKeys:tn,filterMultiple:yn,searchValue:on,filterSearch:Dn})};const cn=yn?_s.default:Gr.ZP,vn={key:Rn.value!==void 0?ze:ti,label:Et.createElement(Et.Fragment,null,Et.createElement(cn,{checked:tn.includes(ze)}),Et.createElement("span",null,Rn.text))};return on.trim()?typeof Dn=="function"?Dn(on,Rn)?vn:null:Eo(on,Rn.text)?vn:null:vn})}function qa(ye){var we,Ye;const{tablePrefixCls:tn,prefixCls:yn,column:on,dropdownPrefixCls:Dn,columnKey:Rn,filterMultiple:ti,filterMode:ze="menu",filterSearch:cn=!1,filterState:vn,triggerFilter:Gn,locale:Yn,children:ri,getPopupContainer:Fi}=ye,{filterDropdownOpen:ci,onFilterDropdownOpenChange:Ji,filterResetToDefaultFilteredValue:Yi,defaultFilteredValue:Ar,filterDropdownVisible:Fr,onFilterDropdownVisibleChange:ro}=on,[Ti,Jn]=Et.useState(!1),xo=!!(vn&&(!((we=vn.filteredKeys)===null||we===void 0)&&we.length||vn.forceFiltered)),br=oo=>{Jn(oo),Ji==null||Ji(oo),ro==null||ro(oo)},ar=(Ye=ci!=null?ci:Fr)!==null&&Ye!==void 0?Ye:Ti,lr=vn==null?void 0:vn.filteredKeys,[nr,vr]=Ns(lr||[]),Zr=oo=>{let{selectedKeys:Go}=oo;vr(Go)},co=(oo,Go)=>{let{node:aa,checked:Us}=Go;Zr(ti?{selectedKeys:oo}:{selectedKeys:Us&&aa.key?[aa.key]:[]})};Et.useEffect(()=>{Ti&&Zr({selectedKeys:lr||[]})},[lr]);const[po,Rr]=Et.useState([]),Do=oo=>{Rr(oo)},[hs,$o]=Et.useState(""),is=oo=>{const{value:Go}=oo.target;$o(Go)};Et.useEffect(()=>{Ti||$o("")},[Ti]);const yo=oo=>{const Go=oo&&oo.length?oo:null;if(Go===null&&(!vn||!vn.filteredKeys)||(0,le.Z)(Go,vn==null?void 0:vn.filteredKeys,!0))return null;Gn({column:on,key:Rn,filteredKeys:Go})},pa=()=>{br(!1),yo(nr())},Wo=function(){let{confirm:oo,closeDropdown:Go}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};oo&&yo([]),Go&&br(!1),$o(""),vr(Yi?(Ar||[]).map(aa=>String(aa)):[])},rs=function(){let{closeDropdown:oo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};oo&&br(!1),yo(nr())},Cs=oo=>{oo&&lr!==void 0&&vr(lr||[]),br(oo),!oo&&!on.filterDropdown&&pa()},qs=Vt()({[`${Dn}-menu-without-submenu`]:!Ja(on.filters||[])}),Ua=oo=>{if(oo.target.checked){const Go=au(on==null?void 0:on.filters).map(aa=>String(aa));vr(Go)}else vr([])},$s=oo=>{let{filters:Go}=oo;return(Go||[]).map((aa,Us)=>{const zl=String(aa.value),Ml={title:aa.text,key:aa.value!==void 0?zl:Us};return aa.children&&(Ml.children=$s({filters:aa.children})),Ml})},Qo=oo=>{var Go;return Object.assign(Object.assign({},oo),{text:oo.title,value:oo.key,children:((Go=oo.children)===null||Go===void 0?void 0:Go.map(aa=>Qo(aa)))||[]})};let zo;if(typeof on.filterDropdown=="function")zo=on.filterDropdown({prefixCls:`${Dn}-custom`,setSelectedKeys:oo=>Zr({selectedKeys:oo}),selectedKeys:nr(),confirm:rs,clearFilters:Wo,filters:on.filters,visible:ar,close:()=>{br(!1)}});else if(on.filterDropdown)zo=on.filterDropdown;else{const oo=nr()||[],Go=()=>(on.filters||[]).length===0?Et.createElement(As.Z,{image:As.Z.PRESENTED_IMAGE_SIMPLE,description:Yn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ze==="tree"?Et.createElement(Et.Fragment,null,Et.createElement($l,{filterSearch:cn,value:hs,onChange:is,tablePrefixCls:tn,locale:Yn}),Et.createElement("div",{className:`${tn}-filter-dropdown-tree`},ti?Et.createElement(_s.default,{checked:oo.length===au(on.filters).length,indeterminate:oo.length>0&&oo.length<au(on.filters).length,className:`${tn}-filter-dropdown-checkall`,onChange:Ua},Yn.filterCheckall):null,Et.createElement(ul.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:ti,checkStrictly:!ti,className:`${Dn}-menu`,onCheck:co,checkedKeys:oo,selectedKeys:oo,showIcon:!1,treeData:$s({filters:on.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:hs.trim()?Us=>typeof cn=="function"?cn(hs,Qo(Us)):Eo(hs,Us.title):void 0}))):Et.createElement(Et.Fragment,null,Et.createElement($l,{filterSearch:cn,value:hs,onChange:is,tablePrefixCls:tn,locale:Yn}),Et.createElement(Qs.default,{selectable:!0,multiple:ti,prefixCls:`${Dn}-menu`,className:qs,onSelect:Zr,onDeselect:Zr,selectedKeys:oo,getPopupContainer:Fi,openKeys:po,onOpenChange:Do,items:ja({filters:on.filters||[],filterSearch:cn,prefixCls:yn,filteredKeys:nr(),filterMultiple:ti,searchValue:hs})})),aa=()=>Yi?(0,le.Z)((Ar||[]).map(Us=>String(Us)),oo,!0):oo.length===0;zo=Et.createElement(Et.Fragment,null,Go(),Et.createElement("div",{className:`${yn}-dropdown-btns`},Et.createElement(Es.ZP,{type:"link",size:"small",disabled:aa(),onClick:()=>Wo()},Yn.filterReset),Et.createElement(Es.ZP,{type:"primary",size:"small",onClick:pa},Yn.filterConfirm)))}on.filterDropdown&&(zo=Et.createElement(Ss.J,{selectable:void 0},zo));const gs=()=>Et.createElement(Fl,{className:`${yn}-dropdown`},zo);let es;typeof on.filterIcon=="function"?es=on.filterIcon(xo):on.filterIcon?es=on.filterIcon:es=Et.createElement(Ao,null);const{direction:Os}=Et.useContext(Mo.E_);return Et.createElement("div",{className:`${yn}-column`},Et.createElement("span",{className:`${tn}-column-title`},ri),Et.createElement(Nl.Z,{dropdownRender:gs,trigger:["click"],open:ar,onOpenChange:Cs,getPopupContainer:Fi,placement:Os==="rtl"?"bottomLeft":"bottomRight"},Et.createElement("span",{role:"button",tabIndex:-1,className:Vt()(`${yn}-trigger`,{active:xo}),onClick:oo=>{oo.stopPropagation()}},es)))}var lu=qa;function Yl(ye,we,Ye){let tn=[];return(ye||[]).forEach((yn,on)=>{var Dn;const Rn=wl(on,Ye);if(yn.filters||"filterDropdown"in yn||"onFilter"in yn)if("filteredValue"in yn){let ti=yn.filteredValue;"filterDropdown"in yn||(ti=(Dn=ti==null?void 0:ti.map(String))!==null&&Dn!==void 0?Dn:ti),tn.push({column:yn,key:yl(yn,Rn),filteredKeys:ti,forceFiltered:yn.filtered})}else tn.push({column:yn,key:yl(yn,Rn),filteredKeys:we&&yn.defaultFilteredValue?yn.defaultFilteredValue:void 0,forceFiltered:yn.filtered});"children"in yn&&(tn=[].concat((0,no.Z)(tn),(0,no.Z)(Yl(yn.children,we,Rn))))}),tn}function Pu(ye,we,Ye,tn,yn,on,Dn,Rn){return Ye.map((ti,ze)=>{const cn=wl(ze,Rn),{filterMultiple:vn=!0,filterMode:Gn,filterSearch:Yn}=ti;let ri=ti;if(ri.filters||ri.filterDropdown){const Fi=yl(ri,cn),ci=tn.find(Ji=>{let{key:Yi}=Ji;return Fi===Yi});ri=Object.assign(Object.assign({},ri),{title:Ji=>Et.createElement(lu,{tablePrefixCls:ye,prefixCls:`${ye}-filter`,dropdownPrefixCls:we,column:ri,columnKey:Fi,filterState:ci,filterMultiple:vn,filterMode:Gn,filterSearch:Yn,triggerFilter:on,locale:yn,getPopupContainer:Dn},Dl(ti.title,Ji))})}return"children"in ri&&(ri=Object.assign(Object.assign({},ri),{children:Pu(ye,we,ri.children,tn,yn,on,Dn,cn)})),ri})}function bu(ye){const we={};return ye.forEach(Ye=>{let{key:tn,filteredKeys:yn,column:on}=Ye;const{filters:Dn,filterDropdown:Rn}=on;if(Rn)we[tn]=yn||null;else if(Array.isArray(yn)){const ti=au(Dn);we[tn]=ti.filter(ze=>yn.includes(String(ze)))}else we[tn]=null}),we}function fu(ye,we){return we.reduce((Ye,tn)=>{const{column:{onFilter:yn,filters:on},filteredKeys:Dn}=tn;return yn&&Dn&&Dn.length?Ye.filter(Rn=>Dn.some(ti=>{const ze=au(on),cn=ze.findIndex(Gn=>String(Gn)===String(ti)),vn=cn!==-1?ze[cn]:ti;return yn(vn,Rn)})):Ye},ye)}const nu=ye=>ye.flatMap(we=>"children"in we?[we].concat((0,no.Z)(nu(we.children||[]))):[we]);function _o(ye){let{prefixCls:we,dropdownPrefixCls:Ye,mergedColumns:tn,onFilterChange:yn,getPopupContainer:on,locale:Dn}=ye;const Rn=Et.useMemo(()=>nu(tn||[]),[tn]),[ti,ze]=Et.useState(()=>Yl(Rn,!0)),cn=Et.useMemo(()=>{const ri=Yl(Rn,!1);if(ri.length===0)return ri;let Fi=!0,ci=!0;if(ri.forEach(Ji=>{let{filteredKeys:Yi}=Ji;Yi!==void 0?Fi=!1:ci=!1}),Fi){const Ji=(Rn||[]).map((Yi,Ar)=>yl(Yi,wl(Ar)));return ti.filter(Yi=>{let{key:Ar}=Yi;return Ji.includes(Ar)}).map(Yi=>{const Ar=Rn[Ji.findIndex(Fr=>Fr===Yi.key)];return Object.assign(Object.assign({},Yi),{column:Object.assign(Object.assign({},Yi.column),Ar),forceFiltered:Ar.filtered})})}return ri},[Rn,ti]),vn=Et.useMemo(()=>bu(cn),[cn]),Gn=ri=>{const Fi=cn.filter(ci=>{let{key:Ji}=ci;return Ji!==ri.key});Fi.push(ri),ze(Fi),yn(bu(Fi),Fi)};return[ri=>Pu(we,Ye,ri,cn,Dn,Gn,on),cn,vn]}var _d=_o;function Eu(ye,we,Ye){const tn=Et.useRef({});function yn(on){if(!tn.current||tn.current.data!==ye||tn.current.childrenColumnName!==we||tn.current.getRowKey!==Ye){let Rn=function(ti){ti.forEach((ze,cn)=>{const vn=Ye(ze,cn);Dn.set(vn,ze),ze&&typeof ze=="object"&&we in ze&&Rn(ze[we]||[])})};const Dn=new Map;Rn(ye),tn.current={data:ye,childrenColumnName:we,kvMap:Dn,getRowKey:Ye}}return tn.current.kvMap.get(on)}return[yn]}var yd=bt(50371),kh=function(ye,we){var Ye={};for(var tn in ye)Object.prototype.hasOwnProperty.call(ye,tn)&&we.indexOf(tn)<0&&(Ye[tn]=ye[tn]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,tn=Object.getOwnPropertySymbols(ye);yn<tn.length;yn++)we.indexOf(tn[yn])<0&&Object.prototype.propertyIsEnumerable.call(ye,tn[yn])&&(Ye[tn[yn]]=ye[tn[yn]]);return Ye};const nc=10;function sl(ye,we){const Ye={current:ye.current,pageSize:ye.pageSize};return Object.keys(we&&typeof we=="object"?we:{}).forEach(yn=>{const on=ye[yn];typeof on!="function"&&(Ye[yn]=on)}),Ye}function Ch(ye,we,Ye){const tn=Ye&&typeof Ye=="object"?Ye:{},{total:yn=0}=tn,on=kh(tn,["total"]),[Dn,Rn]=(0,Et.useState)(()=>({current:"defaultCurrent"in on?on.defaultCurrent:1,pageSize:"defaultPageSize"in on?on.defaultPageSize:nc})),ti=(0,yd.Z)(Dn,on,{total:yn>0?yn:ye}),ze=Math.ceil((yn||ye)/ti.pageSize);ti.current>ze&&(ti.current=ze||1);const cn=(Gn,Yn)=>{Rn({current:Gn!=null?Gn:1,pageSize:Yn||ti.pageSize})},vn=(Gn,Yn)=>{var ri;Ye&&((ri=Ye.onChange)===null||ri===void 0||ri.call(Ye,Gn,Yn)),cn(Gn,Yn),we(Gn,Yn||(ti==null?void 0:ti.pageSize))};return Ye===!1?[{},()=>{}]:[Object.assign(Object.assign({},ti),{onChange:vn}),cn]}var Qd=Ch,Oc=bt(18290),Dc=bt(35654),Fs=bt(90782),ga=bt(71430),Uu=bt(35788);const tl={},al="SELECT_ALL",Ka="SELECT_INVERT",ca="SELECT_NONE",el=[],jl=(ye,we)=>{let Ye=[];return(we||[]).forEach(tn=>{Ye.push(tn),tn&&typeof tn=="object"&&ye in tn&&(Ye=[].concat((0,no.Z)(Ye),(0,no.Z)(jl(ye,tn[ye]))))}),Ye};var dh=(ye,we)=>{const{preserveSelectedRowKeys:Ye,selectedRowKeys:tn,defaultSelectedRowKeys:yn,getCheckboxProps:on,onChange:Dn,onSelect:Rn,onSelectAll:ti,onSelectInvert:ze,onSelectNone:cn,onSelectMultiple:vn,columnWidth:Gn,type:Yn,selections:ri,fixed:Fi,renderCell:ci,hideSelectAll:Ji,checkStrictly:Yi=!0}=we||{},{prefixCls:Ar,data:Fr,pageData:ro,getRecordByKey:Ti,getRowKey:Jn,expandType:xo,childrenColumnName:br,locale:ar,getPopupContainer:lr}=ye,[nr,vr]=(0,Uu.Z)(tn||yn||el,{value:tn}),Zr=Et.useRef(new Map),co=(0,Et.useCallback)(Qo=>{if(Ye){const zo=new Map;Qo.forEach(gs=>{let es=Ti(gs);!es&&Zr.current.has(gs)&&(es=Zr.current.get(gs)),zo.set(gs,es)}),Zr.current=zo}},[Ti,Ye]);Et.useEffect(()=>{co(nr)},[nr]);const{keyEntities:po}=(0,Et.useMemo)(()=>{if(Yi)return{keyEntities:null};let Qo=Fr;if(Ye){const zo=new Set(Fr.map((es,Os)=>Jn(es,Os))),gs=Array.from(Zr.current).reduce((es,Os)=>{let[oo,Go]=Os;return zo.has(oo)?es:es.concat(Go)},[]);Qo=[].concat((0,no.Z)(Qo),(0,no.Z)(gs))}return(0,ga.I8)(Qo,{externalGetKey:Jn,childrenPropName:br})},[Fr,Jn,Yi,br,Ye]),Rr=(0,Et.useMemo)(()=>jl(br,ro),[br,ro]),Do=(0,Et.useMemo)(()=>{const Qo=new Map;return Rr.forEach((zo,gs)=>{const es=Jn(zo,gs),Os=(on?on(zo):null)||{};Qo.set(es,Os)}),Qo},[Rr,Jn,on]),hs=(0,Et.useCallback)(Qo=>{var zo;return!!(!((zo=Do.get(Jn(Qo)))===null||zo===void 0)&&zo.disabled)},[Do,Jn]),[$o,is]=(0,Et.useMemo)(()=>{if(Yi)return[nr||[],[]];const{checkedKeys:Qo,halfCheckedKeys:zo}=(0,Fs.S)(nr,!0,po,hs);return[Qo||[],zo]},[nr,Yi,po,hs]),yo=(0,Et.useMemo)(()=>{const Qo=Yn==="radio"?$o.slice(0,1):$o;return new Set(Qo)},[$o,Yn]),pa=(0,Et.useMemo)(()=>Yn==="radio"?new Set:new Set(is),[is,Yn]),[Wo,rs]=(0,Et.useState)(null);Et.useEffect(()=>{we||vr(el)},[!!we]);const Cs=(0,Et.useCallback)((Qo,zo)=>{let gs,es;co(Qo),Ye?(gs=Qo,es=Qo.map(Os=>Zr.current.get(Os))):(gs=[],es=[],Qo.forEach(Os=>{const oo=Ti(Os);oo!==void 0&&(gs.push(Os),es.push(oo))})),vr(gs),Dn==null||Dn(gs,es,{type:zo})},[vr,Ti,Dn,Ye]),qs=(0,Et.useCallback)((Qo,zo,gs,es)=>{if(Rn){const Os=gs.map(oo=>Ti(oo));Rn(Ti(Qo),zo,Os,es)}Cs(gs,"single")},[Rn,Ti,Cs]),Ua=(0,Et.useMemo)(()=>!ri||Ji?null:(ri===!0?[al,Ka,ca]:ri).map(zo=>zo===al?{key:"all",text:ar.selectionAll,onSelect(){Cs(Fr.map((gs,es)=>Jn(gs,es)).filter(gs=>{const es=Do.get(gs);return!(es!=null&&es.disabled)||yo.has(gs)}),"all")}}:zo===Ka?{key:"invert",text:ar.selectInvert,onSelect(){const gs=new Set(yo);ro.forEach((Os,oo)=>{const Go=Jn(Os,oo),aa=Do.get(Go);aa!=null&&aa.disabled||(gs.has(Go)?gs.delete(Go):gs.add(Go))});const es=Array.from(gs);ze&&ze(es),Cs(es,"invert")}}:zo===ca?{key:"none",text:ar.selectNone,onSelect(){cn==null||cn(),Cs(Array.from(yo).filter(gs=>{const es=Do.get(gs);return es==null?void 0:es.disabled}),"none")}}:zo).map(zo=>Object.assign(Object.assign({},zo),{onSelect:function(){for(var gs,es,Os=arguments.length,oo=new Array(Os),Go=0;Go<Os;Go++)oo[Go]=arguments[Go];(es=zo.onSelect)===null||es===void 0||(gs=es).call.apply(gs,[zo].concat(oo)),rs(null)}})),[ri,yo,ro,Jn,ze,Cs]);return[(0,Et.useCallback)(Qo=>{var zo;if(!we)return Qo.filter(ta=>ta!==tl);let gs=(0,no.Z)(Qo);const es=new Set(yo),Os=Rr.map(Jn).filter(ta=>!Do.get(ta).disabled),oo=Os.every(ta=>es.has(ta)),Go=Os.some(ta=>es.has(ta)),aa=()=>{const ta=[];oo?Os.forEach(ka=>{es.delete(ka),ta.push(ka)}):Os.forEach(ka=>{es.has(ka)||(es.add(ka),ta.push(ka))});const la=Array.from(es);ti==null||ti(!oo,la.map(ka=>Ti(ka)),ta.map(ka=>Ti(ka))),Cs(la,"all"),rs(null)};let Us;if(Yn!=="radio"){let ta;if(Ua){const Rs={getPopupContainer:lr,items:Ua.map((Ta,Sl)=>{const{key:pu,text:uu,onSelect:Ru}=Ta;return{key:pu!=null?pu:Sl,onClick:()=>{Ru==null||Ru(Os)},label:uu}})};ta=Et.createElement("div",{className:`${Ar}-selection-extra`},Et.createElement(Nl.Z,{menu:Rs,getPopupContainer:lr},Et.createElement("span",null,Et.createElement(Oc.Z,null))))}const la=Rr.map((Rs,Ta)=>{const Sl=Jn(Rs,Ta),pu=Do.get(Sl)||{};return Object.assign({checked:es.has(Sl)},pu)}).filter(Rs=>{let{disabled:Ta}=Rs;return Ta}),ka=!!la.length&&la.length===Rr.length,$a=ka&&la.every(Rs=>{let{checked:Ta}=Rs;return Ta}),ll=ka&&la.some(Rs=>{let{checked:Ta}=Rs;return Ta});Us=!Ji&&Et.createElement("div",{className:`${Ar}-selection`},Et.createElement(_s.default,{checked:ka?$a:!!Rr.length&&oo,indeterminate:ka?!$a&&ll:!oo&&Go,onChange:aa,disabled:Rr.length===0||ka,"aria-label":ta?"Custom selection":"Select all",skipGroup:!0}),ta)}let zl;Yn==="radio"?zl=(ta,la,ka)=>{const $a=Jn(la,ka),ll=es.has($a);return{node:Et.createElement(Gr.ZP,Object.assign({},Do.get($a),{checked:ll,onClick:Rs=>Rs.stopPropagation(),onChange:Rs=>{es.has($a)||qs($a,!0,[$a],Rs.nativeEvent)}})),checked:ll}}:zl=(ta,la,ka)=>{var $a;const ll=Jn(la,ka),Rs=es.has(ll),Ta=pa.has(ll),Sl=Do.get(ll);let pu;return xo==="nest"?pu=Ta:pu=($a=Sl==null?void 0:Sl.indeterminate)!==null&&$a!==void 0?$a:Ta,{node:Et.createElement(_s.default,Object.assign({},Sl,{indeterminate:pu,checked:Rs,skipGroup:!0,onClick:uu=>uu.stopPropagation(),onChange:uu=>{let{nativeEvent:Ru}=uu;const{shiftKey:$u}=Ru;let Ah=-1,Yu=-1;if($u&&Yi){const Ha=new Set([Wo,ll]);Os.some((Bu,Rl)=>{if(Ha.has(Bu))if(Ah===-1)Ah=Rl;else return Yu=Rl,!0;return!1})}if(Yu!==-1&&Ah!==Yu&&Yi){const Ha=Os.slice(Ah,Yu+1),Bu=[];Rs?Ha.forEach(il=>{es.has(il)&&(Bu.push(il),es.delete(il))}):Ha.forEach(il=>{es.has(il)||(Bu.push(il),es.add(il))});const Rl=Array.from(es);vn==null||vn(!Rs,Rl.map(il=>Ti(il)),Bu.map(il=>Ti(il))),Cs(Rl,"multiple")}else{const Ha=$o;if(Yi){const Bu=Rs?(0,Dc._5)(Ha,ll):(0,Dc.L0)(Ha,ll);qs(ll,!Rs,Bu,Ru)}else{const Bu=(0,Fs.S)([].concat((0,no.Z)(Ha),[ll]),!0,po,hs),{checkedKeys:Rl,halfCheckedKeys:il}=Bu;let vh=Rl;if(Rs){const Cc=new Set(Rl);Cc.delete(ll),vh=(0,Fs.S)(Array.from(Cc),{checked:!1,halfCheckedKeys:il},po,hs).checkedKeys}qs(ll,!Rs,vh,Ru)}}rs(Rs?null:ll)}})),checked:Rs}};const Ml=(ta,la,ka)=>{const{node:$a,checked:ll}=zl(ta,la,ka);return ci?ci(ll,la,ka,$a):$a};if(!gs.includes(tl))if(gs.findIndex(ta=>{var la;return((la=ta[Ir])===null||la===void 0?void 0:la.columnType)==="EXPAND_COLUMN"})===0){const[ta,...la]=gs;gs=[ta,tl].concat((0,no.Z)(la))}else gs=[tl].concat((0,no.Z)(gs));const Ps=gs.indexOf(tl);gs=gs.filter((ta,la)=>ta!==tl||la===Ps);const ua=gs[Ps-1],Ul=gs[Ps+1];let fo=Fi;fo===void 0&&((Ul==null?void 0:Ul.fixed)!==void 0?fo=Ul.fixed:(ua==null?void 0:ua.fixed)!==void 0&&(fo=ua.fixed)),fo&&ua&&((zo=ua[Ir])===null||zo===void 0?void 0:zo.columnType)==="EXPAND_COLUMN"&&ua.fixed===void 0&&(ua.fixed=fo);const Ra=Vt()(`${Ar}-selection-col`,{[`${Ar}-selection-col-with-dropdown`]:ri&&Yn==="checkbox"}),Gl={fixed:fo,width:Gn,className:`${Ar}-selection-column`,title:we.columnTitle||Us,render:Ml,onCell:we.onCell,[Ir]:{className:Ra}};return gs.map(ta=>ta===tl?Gl:ta)},[Jn,Rr,we,$o,yo,pa,Gn,Ua,xo,Wo,Do,vn,qs,hs]),yo]},hl=bt(35323),zd=bt(19155),td=bt(6848);const Bh="ascend",Ro="descend";function sA(ye){return typeof ye.sorter=="object"&&typeof ye.sorter.multiple=="number"?ye.sorter.multiple:!1}function Ln(ye){return typeof ye=="function"?ye:ye&&typeof ye=="object"&&ye.compare?ye.compare:!1}function $i(ye,we){return we?ye[ye.indexOf(we)+1]:ye[0]}function aA(ye,we,Ye){let tn=[];function yn(on,Dn){tn.push({column:on,key:yl(on,Dn),multiplePriority:sA(on),sortOrder:on.sortOrder})}return(ye||[]).forEach((on,Dn)=>{const Rn=wl(Dn,Ye);on.children?("sortOrder"in on&&yn(on,Rn),tn=[].concat((0,no.Z)(tn),(0,no.Z)(aA(on.children,we,Rn)))):on.sorter&&("sortOrder"in on?yn(on,Rn):we&&on.defaultSortOrder&&tn.push({column:on,key:yl(on,Rn),multiplePriority:sA(on),sortOrder:on.defaultSortOrder}))}),tn}function ic(ye,we,Ye,tn,yn,on,Dn,Rn){return(we||[]).map((ti,ze)=>{const cn=wl(ze,Rn);let vn=ti;if(vn.sorter){const Gn=vn.sortDirections||yn,Yn=vn.showSorterTooltip===void 0?Dn:vn.showSorterTooltip,ri=yl(vn,cn),Fi=Ye.find(xo=>{let{key:br}=xo;return br===ri}),ci=Fi?Fi.sortOrder:null,Ji=$i(Gn,ci);let Yi;if(ti.sortIcon)Yi=ti.sortIcon({sortOrder:ci});else{const xo=Gn.includes(Bh)&&Et.createElement(zd.Z,{className:Vt()(`${ye}-column-sorter-up`,{active:ci===Bh})}),br=Gn.includes(Ro)&&Et.createElement(hl.Z,{className:Vt()(`${ye}-column-sorter-down`,{active:ci===Ro})});Yi=Et.createElement("span",{className:Vt()(`${ye}-column-sorter`,{[`${ye}-column-sorter-full`]:!!(xo&&br)})},Et.createElement("span",{className:`${ye}-column-sorter-inner`,"aria-hidden":"true"},xo,br))}const{cancelSort:Ar,triggerAsc:Fr,triggerDesc:ro}=on||{};let Ti=Ar;Ji===Ro?Ti=ro:Ji===Bh&&(Ti=Fr);const Jn=typeof Yn=="object"?Yn:{title:Ti};vn=Object.assign(Object.assign({},vn),{className:Vt()(vn.className,{[`${ye}-column-sort`]:ci}),title:xo=>{const br=Et.createElement("div",{className:`${ye}-column-sorters`},Et.createElement("span",{className:`${ye}-column-title`},Dl(ti.title,xo)),Yi);return Yn?Et.createElement(td.Z,Object.assign({},Jn),br):br},onHeaderCell:xo=>{const br=ti.onHeaderCell&&ti.onHeaderCell(xo)||{},ar=br.onClick,lr=br.onKeyDown;br.onClick=Zr=>{tn({column:ti,key:ri,sortOrder:Ji,multiplePriority:sA(ti)}),ar==null||ar(Zr)},br.onKeyDown=Zr=>{Zr.keyCode===fr.Z.ENTER&&(tn({column:ti,key:ri,sortOrder:Ji,multiplePriority:sA(ti)}),lr==null||lr(Zr))};const nr=Bs(ti.title,{}),vr=nr==null?void 0:nr.toString();return ci?br["aria-sort"]=ci==="ascend"?"ascending":"descending":br["aria-label"]=vr||"",br.className=Vt()(br.className,`${ye}-column-has-sorters`),br.tabIndex=0,ti.ellipsis&&(br.title=(nr!=null?nr:"").toString()),br}})}return"children"in vn&&(vn=Object.assign(Object.assign({},vn),{children:ic(ye,vn.children,Ye,tn,yn,on,Dn,cn)})),vn})}function Gu(ye){const{column:we,sortOrder:Ye}=ye;return{column:we,order:Ye,field:we.dataIndex,columnKey:we.key}}function Wu(ye){const we=ye.filter(Ye=>{let{sortOrder:tn}=Ye;return tn}).map(Gu);return we.length===0&&ye.length?Object.assign(Object.assign({},Gu(ye[ye.length-1])),{column:void 0}):we.length<=1?we[0]||{}:we}function Ph(ye,we,Ye){const tn=we.slice().sort((Dn,Rn)=>Rn.multiplePriority-Dn.multiplePriority),yn=ye.slice(),on=tn.filter(Dn=>{let{column:{sorter:Rn},sortOrder:ti}=Dn;return Ln(Rn)&&ti});return on.length?yn.sort((Dn,Rn)=>{for(let ti=0;ti<on.length;ti+=1){const ze=on[ti],{column:{sorter:cn},sortOrder:vn}=ze,Gn=Ln(cn);if(Gn&&vn){const Yn=Gn(Dn,Rn,vn);if(Yn!==0)return vn===Bh?Yn:-Yn}}return 0}).map(Dn=>{const Rn=Dn[Ye];return Rn?Object.assign(Object.assign({},Dn),{[Ye]:Ph(Rn,we,Ye)}):Dn}):yn}function zA(ye){let{prefixCls:we,mergedColumns:Ye,onSorterChange:tn,sortDirections:yn,tableLocale:on,showSorterTooltip:Dn}=ye;const[Rn,ti]=Et.useState(aA(Ye,!0)),ze=Et.useMemo(()=>{let ri=!0;const Fi=aA(Ye,!1);if(!Fi.length)return Rn;const ci=[];function Ji(Ar){ri?ci.push(Ar):ci.push(Object.assign(Object.assign({},Ar),{sortOrder:null}))}let Yi=null;return Fi.forEach(Ar=>{Yi===null?(Ji(Ar),Ar.sortOrder&&(Ar.multiplePriority===!1?ri=!1:Yi=!0)):(Yi&&Ar.multiplePriority!==!1||(ri=!1),Ji(Ar))}),ci},[Ye,Rn]),cn=Et.useMemo(()=>{const ri=ze.map(Fi=>{let{column:ci,sortOrder:Ji}=Fi;return{column:ci,order:Ji}});return{sortColumns:ri,sortColumn:ri[0]&&ri[0].column,sortOrder:ri[0]&&ri[0].order}},[ze]);function vn(ri){let Fi;ri.multiplePriority===!1||!ze.length||ze[0].multiplePriority===!1?Fi=[ri]:Fi=[].concat((0,no.Z)(ze.filter(ci=>{let{key:Ji}=ci;return Ji!==ri.key})),[ri]),ti(Fi),tn(Wu(Fi),Fi)}return[ri=>ic(we,ri,ze,vn,yn,on,Dn),ze,cn,()=>Wu(ze)]}function ed(ye,we){return ye.map(Ye=>{const tn=Object.assign({},Ye);return tn.title=Dl(Ye.title,we),"children"in tn&&(tn.children=ed(tn.children,we)),tn})}function nl(ye){return[Et.useCallback(Ye=>ed(Ye,ye),[ye])]}var ys=yi((ye,we)=>{const{_renderTimes:Ye}=ye,{_renderTimes:tn}=we;return Ye!==tn}),oh=Sa((ye,we)=>{const{_renderTimes:Ye}=ye,{_renderTimes:tn}=we;return Ye!==tn}),Xu=bt(64993),Ll=bt(17313),ra=bt(83116),gu=bt(37613),xl=ye=>{const{componentCls:we}=ye,Ye=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`,tn=(yn,on,Dn)=>({[`&${we}-${yn}`]:{[`> ${we}-container`]:{[`> ${we}-content, > ${we}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`-${on}px -${Dn+ye.lineWidth}px`}}}}}});return{[`${we}-wrapper`]:{[`${we}${we}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${we}-title`]:{border:Ye,borderBottom:0},[`> ${we}-container`]:{borderInlineStart:Ye,borderTop:Ye,[`
> ${we}-content,
> ${we}-header,
> ${we}-body,
> ${we}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Ye},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ye},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${we}-cell-fix-right-first::after`]:{borderInlineEnd:Ye}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`-${ye.tablePaddingVertical}px -${ye.tablePaddingHorizontal+ye.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ye.lineWidth,bottom:0,borderInlineEnd:Ye,content:'""'}}}}}},[`&${we}-scroll-horizontal`]:{[`> ${we}-container > ${we}-body`]:{"> table > tbody":{[`
> tr${we}-expanded-row,
> tr${we}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},tn("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle)),tn("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall)),{[`> ${we}-footer`]:{border:Ye,borderTop:0}}),[`${we}-cell`]:{[`${we}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ye.lineWidth}px 0 ${ye.lineWidth}px ${ye.tableHeaderBg}`}},[`${we}-bordered ${we}-cell-scrollbar`]:{borderInlineEnd:Ye}}}},Cu=ye=>{const{componentCls:we}=ye;return{[`${we}-wrapper`]:{[`${we}-cell-ellipsis`]:Object.assign(Object.assign({},Ll.vS),{wordBreak:"keep-all",[`
&${we}-cell-fix-left-last,
&${we}-cell-fix-right-first
`]:{overflow:"visible",[`${we}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${we}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},La=ye=>{const{componentCls:we}=ye;return{[`${we}-wrapper`]:{[`${we}-tbody > tr${we}-placeholder`]:{textAlign:"center",color:ye.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ye.colorBgContainer}}}}},sh=bt(15969),fl=ye=>{const{componentCls:we,antCls:Ye,controlInteractiveSize:tn,motionDurationSlow:yn,lineWidth:on,paddingXS:Dn,lineType:Rn,tableBorderColor:ti,tableExpandIconBg:ze,tableExpandColumnWidth:cn,borderRadius:vn,fontSize:Gn,fontSizeSM:Yn,lineHeight:ri,tablePaddingVertical:Fi,tablePaddingHorizontal:ci,tableExpandedRowBg:Ji,paddingXXS:Yi}=ye,Ar=tn/2-on,Fr=Ar*2+on*3,ro=`${on}px ${Rn} ${ti}`,Ti=Yi-on;return{[`${we}-wrapper`]:{[`${we}-expand-icon-col`]:{width:cn},[`${we}-row-expand-icon-cell`]:{textAlign:"center",[`${we}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${we}-row-indent`]:{height:1,float:"left"},[`${we}-row-expand-icon`]:Object.assign(Object.assign({},(0,sh.N)(ye)),{position:"relative",float:"left",boxSizing:"border-box",width:Fr,height:Fr,padding:0,color:"inherit",lineHeight:`${Fr}px`,background:ze,border:ro,borderRadius:vn,transform:`scale(${tn/Fr})`,transition:`all ${yn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${yn} ease-out`,content:'""'},"&::before":{top:Ar,insetInlineEnd:Ti,insetInlineStart:Ti,height:on},"&::after":{top:Ti,bottom:Ti,insetInlineStart:Ar,width:on,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${we}-row-indent + ${we}-row-expand-icon`]:{marginTop:(Gn*ri-on*3)/2-Math.ceil((Yn*1.4-on*3)/2),marginInlineEnd:Dn},[`tr${we}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ji}},[`${Ye}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${we}-expanded-row-fixed`]:{position:"relative",margin:`-${Fi}px -${ci}px`,padding:`${Fi}px ${ci}px`}}}},Jl=ye=>{const{componentCls:we,antCls:Ye,iconCls:tn,tableFilterDropdownWidth:yn,tableFilterDropdownSearchWidth:on,paddingXXS:Dn,paddingXS:Rn,colorText:ti,lineWidth:ze,lineType:cn,tableBorderColor:vn,tableHeaderIconColor:Gn,fontSizeSM:Yn,tablePaddingHorizontal:ri,borderRadius:Fi,motionDurationSlow:ci,colorTextDescription:Ji,colorPrimary:Yi,tableHeaderFilterActiveBg:Ar,colorTextDisabled:Fr,tableFilterDropdownBg:ro,tableFilterDropdownHeight:Ti,controlItemBgHover:Jn,controlItemBgActive:xo,boxShadowSecondary:br,filterDropdownMenuBg:ar}=ye,lr=`${Ye}-dropdown`,nr=`${we}-filter-dropdown`,vr=`${Ye}-tree`,Zr=`${ze}px ${cn} ${vn}`;return[{[`${we}-wrapper`]:{[`${we}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${we}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Dn,marginInline:`${Dn}px ${-ri/2}px`,padding:`0 ${Dn}px`,color:Gn,fontSize:Yn,borderRadius:Fi,cursor:"pointer",transition:`all ${ci}`,"&:hover":{color:Ji,background:Ar},"&.active":{color:Yi}}}},{[`${Ye}-dropdown`]:{[nr]:Object.assign(Object.assign({},(0,Ll.Wf)(ye)),{minWidth:yn,backgroundColor:ro,borderRadius:Fi,boxShadow:br,overflow:"hidden",[`${lr}-menu`]:{maxHeight:Ti,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ar,"&:empty::after":{display:"block",padding:`${Rn}px 0`,color:Fr,fontSize:Yn,textAlign:"center",content:'"Not Found"'}},[`${nr}-tree`]:{paddingBlock:`${Rn}px 0`,paddingInline:Rn,[vr]:{padding:0},[`${vr}-treenode ${vr}-node-content-wrapper:hover`]:{backgroundColor:Jn},[`${vr}-treenode-checkbox-checked ${vr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:xo}}},[`${nr}-search`]:{padding:Rn,borderBottom:Zr,"&-input":{input:{minWidth:on},[tn]:{color:Fr}}},[`${nr}-checkall`]:{width:"100%",marginBottom:Dn,marginInlineStart:Dn},[`${nr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Rn-ze}px ${Rn}px`,overflow:"hidden",borderTop:Zr}})}},{[`${Ye}-dropdown ${nr}, ${nr}-submenu`]:{[`${Ye}-checkbox-wrapper + span`]:{paddingInlineStart:Rn,color:ti},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},pt=ye=>{const{componentCls:we,lineWidth:Ye,colorSplit:tn,motionDurationSlow:yn,zIndexTableFixed:on,tableBg:Dn,zIndexTableSticky:Rn}=ye,ti=tn;return{[`${we}-wrapper`]:{[`
${we}-cell-fix-left,
${we}-cell-fix-right
`]:{position:"sticky !important",zIndex:on,background:Dn},[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ye,width:30,transform:"translateX(100%)",transition:`box-shadow ${yn}`,content:'""',pointerEvents:"none"},[`${we}-cell-fix-left-all::after`]:{display:"none"},[`
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Ye,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${yn}`,content:'""',pointerEvents:"none"},[`${we}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Rn+1,width:30,transition:`box-shadow ${yn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${we}-ping-left`]:{[`&:not(${we}-has-fix-left) ${we}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${ti}`}},[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${ti}`},[`${we}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${we}-ping-right`]:{[`&:not(${we}-has-fix-right) ${we}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${ti}`}},[`
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${ti}`}}}}},_t=ye=>{const{componentCls:we,antCls:Ye}=ye;return{[`${we}-wrapper`]:{[`${we}-pagination${Ye}-pagination`]:{margin:`${ye.margin}px 0`},[`${we}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},qt=ye=>{const{componentCls:we,tableRadius:Ye}=ye;return{[`${we}-wrapper`]:{[we]:{[`${we}-title, ${we}-header`]:{borderRadius:`${Ye}px ${Ye}px 0 0`},[`${we}-title + ${we}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${we}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ye,borderStartEndRadius:Ye,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ye},"> *:last-child":{borderStartEndRadius:Ye}}},"&-footer":{borderRadius:`0 0 ${Ye}px ${Ye}px`}}}}},Ce=ye=>{const{componentCls:we}=ye;return{[`${we}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${we}-pagination-left`]:{justifyContent:"flex-end"},[`${we}-pagination-right`]:{justifyContent:"flex-start"},[`${we}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${we}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${we}-row-indent`]:{float:"right"}}}}},Je=ye=>{const{componentCls:we,antCls:Ye,iconCls:tn,fontSizeIcon:yn,padding:on,paddingXS:Dn,tableHeaderIconColor:Rn,tableHeaderIconColorHover:ti,tableSelectionColumnWidth:ze}=ye;return{[`${we}-wrapper`]:{[`${we}-selection-col`]:{width:ze,[`&${we}-selection-col-with-dropdown`]:{width:ze+yn+on/4}},[`${we}-bordered ${we}-selection-col`]:{width:ze+Dn*2,[`&${we}-selection-col-with-dropdown`]:{width:ze+yn+on/4+Dn*2}},[`
table tr th${we}-selection-column,
table tr td${we}-selection-column
`]:{paddingInlineEnd:ye.paddingXS,paddingInlineStart:ye.paddingXS,textAlign:"center",[`${Ye}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${we}-selection-column${we}-cell-fix-left`]:{zIndex:ye.zIndexTableFixed+1},[`table tr th${we}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${we}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${we}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ye.tablePaddingHorizontal/4}px`,[tn]:{color:Rn,fontSize:yn,verticalAlign:"baseline","&:hover":{color:ti}}}}}},gn=ye=>{const{componentCls:we}=ye,Ye=(tn,yn,on,Dn)=>({[`${we}${we}-${tn}`]:{fontSize:Dn,[`
${we}-title,
${we}-footer,
${we}-cell,
${we}-thead > tr > th,
${we}-tbody > tr > th,
${we}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${yn}px ${on}px`},[`${we}-filter-trigger`]:{marginInlineEnd:`-${on/2}px`},[`${we}-expanded-row-fixed`]:{margin:`-${yn}px -${on}px`},[`${we}-tbody`]:{[`${we}-wrapper:only-child ${we}`]:{marginBlock:`-${yn}px`,marginInline:`${ye.tableExpandColumnWidth-on}px -${on}px`}},[`${we}-selection-column`]:{paddingInlineStart:`${on/4}px`}}});return{[`${we}-wrapper`]:Object.assign(Object.assign({},Ye("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle,ye.tableFontSizeMiddle)),Ye("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall,ye.tableFontSizeSmall))}},We=ye=>{const{componentCls:we,marginXXS:Ye,fontSizeIcon:tn,tableHeaderIconColor:yn,tableHeaderIconColorHover:on}=ye;return{[`${we}-wrapper`]:{[`${we}-thead th${we}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,"&:hover":{background:ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ye.colorPrimary},[`
&${we}-cell-fix-left:hover,
&${we}-cell-fix-right:hover
`]:{background:ye.tableFixedHeaderSortActiveBg}},[`${we}-thead th${we}-column-sort`]:{background:ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${we}-column-sort`]:{background:ye.tableBodySortBg},[`${we}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${we}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${we}-column-sorter`]:{marginInlineStart:Ye,color:yn,fontSize:0,transition:`color ${ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:tn,"&.active":{color:ye.colorPrimary}},[`${we}-column-sorter-up + ${we}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${we}-column-sorters:hover ${we}-column-sorter`]:{color:on}}}},ei=ye=>{const{componentCls:we,opacityLoading:Ye,tableScrollThumbBg:tn,tableScrollThumbBgHover:yn,tableScrollThumbSize:on,tableScrollBg:Dn,zIndexTableSticky:Rn,stickyScrollBarBorderRadius:ti}=ye,ze=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`;return{[`${we}-wrapper`]:{[`${we}-sticky`]:{"&-holder":{position:"sticky",zIndex:Rn,background:ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${on}px !important`,zIndex:Rn,display:"flex",alignItems:"center",background:Dn,borderTop:ze,opacity:Ye,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:on,backgroundColor:tn,borderRadius:ti,transition:`all ${ye.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:yn}}}}}}},Hn=ye=>{const{componentCls:we,lineWidth:Ye,tableBorderColor:tn}=ye,yn=`${Ye}px ${ye.lineType} ${tn}`;return{[`${we}-wrapper`]:{[`${we}-summary`]:{position:"relative",zIndex:ye.zIndexTableFixed,background:ye.tableBg,"> tr":{"> th, > td":{borderBottom:yn}}},[`div${we}-summary`]:{boxShadow:`0 -${Ye}px 0 ${tn}`}}}},zi=ye=>{const{componentCls:we}=ye,Ye=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`,tn=`${we}-expanded-row-cell`;return{[`${we}-wrapper`]:{[`${we}-tbody-virtual`]:{[`${we}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${we}-cell`]:{borderBottom:Ye},[`${we}-expanded-row`]:{[`${tn}${tn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ye.lineWidth}px)`,borderInlineEnd:"none"}}},[`${we}-bordered`]:{[`${we}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ye,position:"absolute"},[`${we}-cell`]:{borderInlineEnd:Ye,[`&${we}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ye.lineWidth,borderInlineStart:Ye}}}}}}};const or=ye=>{const{componentCls:we,fontWeightStrong:Ye,tablePaddingVertical:tn,tablePaddingHorizontal:yn,lineWidth:on,lineType:Dn,tableBorderColor:Rn,tableFontSize:ti,tableBg:ze,tableRadius:cn,tableHeaderTextColor:vn,motionDurationMid:Gn,tableHeaderBg:Yn,tableHeaderCellSplitColor:ri,tableRowHoverBg:Fi,tableSelectedRowBg:ci,tableSelectedRowHoverBg:Ji,tableFooterTextColor:Yi,tableFooterBg:Ar,paddingContentVerticalLG:Fr}=ye,ro=`${on}px ${Dn} ${Rn}`;return{[`${we}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Ll.dF)()),{[we]:Object.assign(Object.assign({},(0,Ll.Wf)(ye)),{fontSize:ti,background:ze,borderRadius:`${cn}px ${cn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${cn}px ${cn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${we}-cell,
${we}-thead > tr > th,
${we}-tbody > tr > th,
${we}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Fr}px ${yn}px`,overflowWrap:"break-word"},[`${we}-title`]:{padding:`${tn}px ${yn}px`},[`${we}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:vn,fontWeight:Ye,textAlign:"start",background:Yn,borderBottom:ro,transition:`background ${Gn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${we}-selection-column):not(${we}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ri,transform:"translateY(-50%)",transition:`background-color ${Gn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${we}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Gn}, border-color ${Gn}`,borderBottom:ro,[`
> ${we}-wrapper:only-child,
> ${we}-expanded-row-fixed > ${we}-wrapper:only-child
`]:{[we]:{marginBlock:`-${tn}px`,marginInline:`${ye.tableExpandColumnWidth-yn}px -${yn}px`,[`${we}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:vn,fontWeight:Ye,textAlign:"start",background:Yn,borderBottom:ro,transition:`background ${Gn} ease`},[`
&${we}-row:hover > th,
&${we}-row:hover > td,
> th${we}-cell-row-hover,
> td${we}-cell-row-hover
`]:{background:Fi},[`&${we}-row-selected`]:{"> th, > td":{background:ci},"&:hover > th, &:hover > td":{background:Ji}}}},[`${we}-footer`]:{padding:`${tn}px ${yn}px`,color:Yi,background:Ar}})}};var Lr=(0,ra.Z)("Table",ye=>{const{colorTextHeading:we,colorSplit:Ye,colorIcon:tn,colorIconHover:yn,opacityLoading:on,colorBgContainer:Dn,controlInteractiveSize:Rn,headerBg:ti,headerColor:ze,headerSortActiveBg:cn,headerSortHoverBg:vn,bodySortBg:Gn,rowHoverBg:Yn,rowSelectedBg:ri,rowSelectedHoverBg:Fi,rowExpandedBg:ci,cellPaddingBlock:Ji,cellPaddingInline:Yi,cellPaddingBlockMD:Ar,cellPaddingInlineMD:Fr,cellPaddingBlockSM:ro,cellPaddingInlineSM:Ti,borderColor:Jn,footerBg:xo,footerColor:br,headerBorderRadius:ar,cellFontSize:lr,cellFontSizeMD:nr,cellFontSizeSM:vr,headerSplitColor:Zr,fixedHeaderSortActiveBg:co,headerFilterHoverBg:po,filterDropdownBg:Rr,expandIconBg:Do,selectionColumnWidth:hs,stickyScrollBarBg:$o}=ye,is=new Xu.C(tn),yo=new Xu.C(yn),pa=2,Wo=(0,gu.TS)(ye,{tableFontSize:lr,tableBg:Dn,tableRadius:ar,tablePaddingVertical:Ji,tablePaddingHorizontal:Yi,tablePaddingVerticalMiddle:Ar,tablePaddingHorizontalMiddle:Fr,tablePaddingVerticalSmall:ro,tablePaddingHorizontalSmall:Ti,tableBorderColor:Jn,tableHeaderTextColor:ze,tableHeaderBg:ti,tableFooterTextColor:br,tableFooterBg:xo,tableHeaderCellSplitColor:Zr,tableHeaderSortBg:cn,tableHeaderSortHoverBg:vn,tableHeaderIconColor:is.clone().setAlpha(is.getAlpha()*on).toRgbString(),tableHeaderIconColorHover:yo.clone().setAlpha(yo.getAlpha()*on).toRgbString(),tableBodySortBg:Gn,tableFixedHeaderSortActiveBg:co,tableHeaderFilterActiveBg:po,tableFilterDropdownBg:Rr,tableRowHoverBg:Yn,tableSelectedRowBg:ri,tableSelectedRowHoverBg:Fi,zIndexTableFixed:pa,zIndexTableSticky:pa+1,tableFontSizeMiddle:nr,tableFontSizeSmall:vr,tableSelectionColumnWidth:hs,tableExpandIconBg:Do,tableExpandColumnWidth:Rn+2*ye.padding,tableExpandedRowBg:ci,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:$o,tableScrollThumbBgHover:we,tableScrollBg:Ye});return[or(Wo),_t(Wo),Hn(Wo),We(Wo),Jl(Wo),xl(Wo),qt(Wo),fl(Wo),Hn(Wo),La(Wo),Je(Wo),pt(Wo),ei(Wo),Cu(Wo),gn(Wo),Ce(Wo),zi(Wo)]},ye=>{const{colorFillAlter:we,colorBgContainer:Ye,colorTextHeading:tn,colorFillSecondary:yn,colorFillContent:on,controlItemBgActive:Dn,controlItemBgActiveHover:Rn,padding:ti,paddingSM:ze,paddingXS:cn,colorBorderSecondary:vn,borderRadiusLG:Gn,fontSize:Yn,controlHeight:ri,colorTextPlaceholder:Fi}=ye,ci=new Xu.C(yn).onBackground(Ye).toHexShortString(),Ji=new Xu.C(on).onBackground(Ye).toHexShortString(),Yi=new Xu.C(we).onBackground(Ye).toHexShortString();return{headerBg:Yi,headerColor:tn,headerSortActiveBg:ci,headerSortHoverBg:Ji,bodySortBg:Yi,rowHoverBg:Yi,rowSelectedBg:Dn,rowSelectedHoverBg:Rn,rowExpandedBg:we,cellPaddingBlock:ti,cellPaddingInline:ti,cellPaddingBlockMD:ze,cellPaddingInlineMD:cn,cellPaddingBlockSM:cn,cellPaddingInlineSM:cn,borderColor:vn,headerBorderRadius:Gn,footerBg:Yi,footerColor:tn,cellFontSize:Yn,cellFontSizeMD:Yn,cellFontSizeSM:Yn,headerSplitColor:vn,fixedHeaderSortActiveBg:ci,headerFilterHoverBg:on,filterDropdownMenuBg:Ye,filterDropdownBg:Ye,expandIconBg:Ye,selectionColumnWidth:ri,stickyScrollBarBg:Fi,stickyScrollBarBorderRadius:100}});const lo=[],mr=(ye,we)=>{const{prefixCls:Ye,className:tn,rootClassName:yn,style:on,size:Dn,bordered:Rn,dropdownPrefixCls:ti,dataSource:ze,pagination:cn,rowSelection:vn,rowKey:Gn="key",rowClassName:Yn,columns:ri,children:Fi,childrenColumnName:ci,onChange:Ji,getPopupContainer:Yi,loading:Ar,expandIcon:Fr,expandable:ro,expandedRowRender:Ti,expandIconColumnIndex:Jn,indentSize:xo,scroll:br,sortDirections:ar,locale:lr,showSorterTooltip:nr=!0,virtual:vr}=ye,Zr=Et.useMemo(()=>ri||hi(Fi),[ri,Fi]),co=Et.useMemo(()=>Zr.some(da=>da.responsive),[Zr]),po=(0,Gi.Z)(co),Rr=Et.useMemo(()=>{const da=new Set(Object.keys(po).filter(Cl=>po[Cl]));return Zr.filter(Cl=>!Cl.responsive||Cl.responsive.some(Ca=>da.has(Ca)))},[Zr,po]),Do=(0,ts.Z)(ye,["className","style","columns"]),{locale:hs=Ms.Z,direction:$o,table:is,renderEmpty:yo,getPrefixCls:pa,getPopupContainer:Wo}=Et.useContext(Mo.E_),rs=(0,Ko.Z)(Dn),Cs=Object.assign(Object.assign({},hs.Table),lr),qs=ze||lo,Ua=pa("table",Ye),$s=pa("dropdown",ti),Qo=Object.assign({childrenColumnName:ci,expandIconColumnIndex:Jn},ro),{childrenColumnName:zo="children"}=Qo,gs=Et.useMemo(()=>qs.some(da=>da==null?void 0:da[zo])?"nest":Ti||ro&&ro.expandedRowRender?"row":null,[qs]),es={body:Et.useRef()},Os=Et.useMemo(()=>typeof Gn=="function"?Gn:da=>da==null?void 0:da[Gn],[Gn]),[oo]=Eu(qs,zo,Os),Go={},aa=function(da,Cl){let Ca=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var gl,Aa,hu;const Fu=Object.assign(Object.assign({},Go),da);Ca&&((gl=Go.resetPagination)===null||gl===void 0||gl.call(Go),!((Aa=Fu.pagination)===null||Aa===void 0)&&Aa.current&&(Fu.pagination.current=1),cn&&cn.onChange&&cn.onChange(1,(hu=Fu.pagination)===null||hu===void 0?void 0:hu.pageSize)),br&&br.scrollToFirstRowOnChange!==!1&&es.body.current&&(0,Ea.Z)(0,{getContainer:()=>es.body.current}),Ji==null||Ji(Fu.pagination,Fu.filters,Fu.sorter,{currentDataSource:fu(Ph(qs,Fu.sorterStates,zo),Fu.filterStates),action:Cl})},Us=(da,Cl)=>{aa({sorter:da,sorterStates:Cl},"sort",!1)},[zl,Ml,Ps,ua]=zA({prefixCls:Ua,mergedColumns:Rr,onSorterChange:Us,sortDirections:ar||["ascend","descend"],tableLocale:Cs,showSorterTooltip:nr}),Ul=Et.useMemo(()=>Ph(qs,Ml,zo),[qs,Ml]);Go.sorter=ua(),Go.sorterStates=Ml;const fo=(da,Cl)=>{aa({filters:da,filterStates:Cl},"filter",!0)},[Ra,Gl,ta]=_d({prefixCls:Ua,locale:Cs,dropdownPrefixCls:$s,mergedColumns:Rr,onFilterChange:fo,getPopupContainer:Yi||Wo}),la=fu(Ul,Gl);Go.filters=ta,Go.filterStates=Gl;const ka=Et.useMemo(()=>{const da={};return Object.keys(ta).forEach(Cl=>{ta[Cl]!==null&&(da[Cl]=ta[Cl])}),Object.assign(Object.assign({},Ps),{filters:da})},[Ps,ta]),[$a]=nl(ka),ll=(da,Cl)=>{aa({pagination:Object.assign(Object.assign({},Go.pagination),{current:da,pageSize:Cl})},"paginate")},[Rs,Ta]=Qd(la.length,ll,cn);Go.pagination=cn===!1?{}:sl(Rs,cn),Go.resetPagination=Ta;const Sl=Et.useMemo(()=>{if(cn===!1||!Rs.pageSize)return la;const{current:da=1,total:Cl,pageSize:Ca=nc}=Rs;return la.length<Cl?la.length>Ca?la.slice((da-1)*Ca,da*Ca):la:la.slice((da-1)*Ca,da*Ca)},[!!cn,la,Rs&&Rs.current,Rs&&Rs.pageSize,Rs&&Rs.total]),[pu,uu]=dh({prefixCls:Ua,data:la,pageData:Sl,getRowKey:Os,getRecordByKey:oo,expandType:gs,childrenColumnName:zo,locale:Cs,getPopupContainer:Yi||Wo},vn),Ru=(da,Cl,Ca)=>{let gl;return typeof Yn=="function"?gl=Vt()(Yn(da,Cl,Ca)):gl=Vt()(Yn),Vt()({[`${Ua}-row-selected`]:uu.has(Os(da,Cl))},gl)};Qo.__PARENT_RENDER_ICON__=Qo.expandIcon,Qo.expandIcon=Qo.expandIcon||Fr||Ks(Cs),gs==="nest"&&Qo.expandIconColumnIndex===void 0?Qo.expandIconColumnIndex=vn?1:0:Qo.expandIconColumnIndex>0&&vn&&(Qo.expandIconColumnIndex-=1),typeof Qo.indentSize!="number"&&(Qo.indentSize=typeof xo=="number"?xo:15);const $u=Et.useCallback(da=>$a(pu(Ra(zl(da)))),[zl,Ra,pu]);let Ah,Yu;if(cn!==!1&&(Rs!=null&&Rs.total)){let da;Rs.size?da=Rs.size:da=rs==="small"||rs==="middle"?"small":void 0;const Cl=Aa=>Et.createElement(Gs.Z,Object.assign({},Rs,{className:Vt()(`${Ua}-pagination ${Ua}-pagination-${Aa}`,Rs.className),size:da})),Ca=$o==="rtl"?"left":"right",{position:gl}=Rs;if(gl!==null&&Array.isArray(gl)){const Aa=gl.find(Kh=>Kh.includes("top")),hu=gl.find(Kh=>Kh.includes("bottom")),Fu=gl.every(Kh=>`${Kh}`=="none");!Aa&&!hu&&!Fu&&(Yu=Cl(Ca)),Aa&&(Ah=Cl(Aa.toLowerCase().replace("top",""))),hu&&(Yu=Cl(hu.toLowerCase().replace("bottom","")))}else Yu=Cl(Ca)}let Ha;typeof Ar=="boolean"?Ha={spinning:Ar}:typeof Ar=="object"&&(Ha=Object.assign({spinning:!0},Ar));const[Bu,Rl]=Lr(Ua),[,il]=(0,Js.Z)(),vh=Vt()(`${Ua}-wrapper`,is==null?void 0:is.className,{[`${Ua}-wrapper-rtl`]:$o==="rtl"},tn,yn,Rl),Cc=Object.assign(Object.assign({},is==null?void 0:is.style),on),yh=lr&&lr.emptyText||(yo==null?void 0:yo("Table"))||Et.createElement(io.Z,{componentName:"Table"}),rc=vr?oh:ys,oc={},wh=Et.useMemo(()=>{const{fontSize:da,lineHeight:Cl,padding:Ca,paddingXS:gl,paddingSM:Aa}=il,hu=Math.floor(da*Cl);switch(rs){case"large":return Ca*2+hu;case"small":return gl*2+hu;default:return Aa*2+hu}},[il,rs]);return vr&&(oc.listItemHeight=wh),Bu(Et.createElement("div",{ref:we,className:vh,style:Cc},Et.createElement(Fa.Z,Object.assign({spinning:!1},Ha),Ah,Et.createElement(rc,Object.assign({},oc,Do,{columns:Rr,direction:$o,expandable:Qo,prefixCls:Ua,className:Vt()({[`${Ua}-middle`]:rs==="middle",[`${Ua}-small`]:rs==="small",[`${Ua}-bordered`]:Rn,[`${Ua}-empty`]:qs.length===0}),data:Sl,rowKey:Os,rowClassName:Ru,emptyText:yh,internalHooks:ge,internalRefs:es,transformColumns:$u})),Yu)))};var Di=Et.forwardRef(mr);const Cr=(ye,we)=>{const Ye=Et.useRef(0);return Ye.current+=1,Et.createElement(Di,Object.assign({},ye,{ref:we,_renderTimes:Ye.current}))},Or=Et.forwardRef(Cr);Or.SELECTION_COLUMN=tl,Or.EXPAND_COLUMN=Lt,Or.SELECTION_ALL=al,Or.SELECTION_INVERT=Ka,Or.SELECTION_NONE=ca,Or.Column=Vo,Or.ColumnGroup=ia,Or.Summary=ce;var qn=Or,oi=qn},86914:function(di,Pn,bt){"use strict";bt.d(Pn,{default:function(){return xe}});var Lt=bt(99581),ge=bt(26390),se=bt(43971),De=bt(58358),re=bt(5891),le=bt(59301),Et={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"},Tt=Et,ee=bt(88853),Ct=function(be,Fn){return le.createElement(ee.Z,(0,re.Z)({},be,{ref:Fn,icon:Tt}))},Wt=le.forwardRef(Ct),Gt=Wt,Jt=bt(92310),wt=bt.n(Jt),et=bt(35654),tt=bt(71430),lt=bt(36355),rt=bt(44757),ht=bt(62892),dt=bt(20648);const yt=4;function Mt(ie){const{dropPosition:be,dropLevelOffset:Fn,prefixCls:Mn,indent:Xe,direction:In="ltr"}=ie,Xn=In==="ltr"?"left":"right",pi=In==="ltr"?"right":"left",$n={[Xn]:-Fn*Xe+yt,[pi]:0};switch(be){case-1:$n.top=-3;break;case 1:$n.bottom=-3;break;default:$n.bottom=-3,$n[Xn]=Xe+yt;break}return le.createElement("div",{style:$n,className:`${Mn}-drop-indicator`})}var jt=bt(48610),ae=le.forwardRef((ie,be)=>{const{getPrefixCls:Fn,direction:Mn,virtual:Xe,tree:In}=le.useContext(lt.E_),{prefixCls:Xn,className:pi,showIcon:$n=!1,showLine:bi,switcherIcon:sn,blockNode:Li=!1,children:ji,checkable:ve=!1,selectable:hn=!0,draggable:Ae,motion:Ot,style:Ft}=ie,Kt=Fn("tree",Xn),Ee=Fn(),je=Ot!=null?Ot:Object.assign(Object.assign({},(0,ht.Z)(Ee)),{motionAppear:!1}),ce=Object.assign(Object.assign({},ie),{checkable:ve,selectable:hn,showIcon:$n,motion:je,blockNode:Li,showLine:!!bi,dropIndicatorRender:Mt}),[Be,$t]=(0,dt.ZP)(Kt),Pt=le.useMemo(()=>{if(!Ae)return!1;let Zt={};switch(typeof Ae){case"function":Zt.nodeDraggable=Ae;break;case"object":Zt=Object.assign({},Ae);break;default:break}return Zt.icon!==!1&&(Zt.icon=Zt.icon||le.createElement(rt.Z,null)),Zt},[Ae]),mt=Zt=>le.createElement(jt.Z,{prefixCls:Kt,switcherIcon:sn,treeNodeProps:Zt,showLine:bi});return Be(le.createElement(Lt.Z,Object.assign({itemHeight:20,ref:be,virtual:Xe},ce,{style:Object.assign(Object.assign({},In==null?void 0:In.style),Ft),prefixCls:Kt,className:wt()({[`${Kt}-icon-hide`]:!$n,[`${Kt}-block-node`]:Li,[`${Kt}-unselectable`]:!hn,[`${Kt}-rtl`]:Mn==="rtl"},In==null?void 0:In.className,pi,$t),direction:Mn,checkable:ve&&le.createElement("span",{className:`${Kt}-checkbox-inner`}),selectable:hn,switcherIcon:mt,draggable:Pt}),ji))}),he;(function(ie){ie[ie.None=0]="None",ie[ie.Start=1]="Start",ie[ie.End=2]="End"})(he||(he={}));function pe(ie,be){function Fn(Mn){const{key:Xe,children:In}=Mn;be(Xe,Mn)!==!1&&pe(In||[],be)}ie.forEach(Fn)}function Te(ie){let{treeData:be,expandedKeys:Fn,startKey:Mn,endKey:Xe}=ie;const In=[];let Xn=he.None;if(Mn&&Mn===Xe)return[Mn];if(!Mn||!Xe)return[];function pi($n){return $n===Mn||$n===Xe}return pe(be,$n=>{if(Xn===he.End)return!1;if(pi($n)){if(In.push($n),Xn===he.None)Xn=he.Start;else if(Xn===he.Start)return Xn=he.End,!1}else Xn===he.Start&&In.push($n);return Fn.includes($n)}),In}function ne(ie,be){const Fn=(0,ge.Z)(be),Mn=[];return pe(ie,(Xe,In)=>{const Xn=Fn.indexOf(Xe);return Xn!==-1&&(Mn.push(In),Fn.splice(Xn,1)),!!Fn.length}),Mn}var Ke=function(ie,be){var Fn={};for(var Mn in ie)Object.prototype.hasOwnProperty.call(ie,Mn)&&be.indexOf(Mn)<0&&(Fn[Mn]=ie[Mn]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Mn=Object.getOwnPropertySymbols(ie);Xe<Mn.length;Xe++)be.indexOf(Mn[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ie,Mn[Xe])&&(Fn[Mn[Xe]]=ie[Mn[Xe]]);return Fn};function Vt(ie){const{isLeaf:be,expanded:Fn}=ie;return be?le.createElement(se.Z,null):Fn?le.createElement(De.Z,null):le.createElement(Gt,null)}function $e(ie){let{treeData:be,children:Fn}=ie;return be||(0,tt.zn)(Fn)}const Ge=(ie,be)=>{var{defaultExpandAll:Fn,defaultExpandParent:Mn,defaultExpandedKeys:Xe}=ie,In=Ke(ie,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Xn=le.useRef(),pi=le.useRef(),$n=()=>{const{keyEntities:Pt}=(0,tt.I8)($e(In));let mt;return Fn?mt=Object.keys(Pt):Mn?mt=(0,et.r7)(In.expandedKeys||Xe||[],Pt):mt=In.expandedKeys||Xe,mt},[bi,sn]=le.useState(In.selectedKeys||In.defaultSelectedKeys||[]),[Li,ji]=le.useState(()=>$n());le.useEffect(()=>{"selectedKeys"in In&&sn(In.selectedKeys)},[In.selectedKeys]),le.useEffect(()=>{"expandedKeys"in In&&ji(In.expandedKeys)},[In.expandedKeys]);const ve=(Pt,mt)=>{var Zt;return"expandedKeys"in In||ji(Pt),(Zt=In.onExpand)===null||Zt===void 0?void 0:Zt.call(In,Pt,mt)},hn=(Pt,mt)=>{var Zt;const{multiple:Se}=In,{node:Dt,nativeEvent:Ie}=mt,{key:nn=""}=Dt,zn=$e(In),xn=Object.assign(Object.assign({},mt),{selected:!0}),li=(Ie==null?void 0:Ie.ctrlKey)||(Ie==null?void 0:Ie.metaKey),Qi=Ie==null?void 0:Ie.shiftKey;let Wi;Se&&li?(Wi=Pt,Xn.current=nn,pi.current=Wi,xn.selectedNodes=ne(zn,Wi)):Se&&Qi?(Wi=Array.from(new Set([].concat((0,ge.Z)(pi.current||[]),(0,ge.Z)(Te({treeData:zn,expandedKeys:Li,startKey:nn,endKey:Xn.current}))))),xn.selectedNodes=ne(zn,Wi)):(Wi=[nn],Xn.current=nn,pi.current=Wi,xn.selectedNodes=ne(zn,Wi)),(Zt=In.onSelect)===null||Zt===void 0||Zt.call(In,Wi,xn),"selectedKeys"in In||sn(Wi)},{getPrefixCls:Ae,direction:Ot}=le.useContext(lt.E_),{prefixCls:Ft,className:Kt,showIcon:Ee=!0,expandAction:je="click"}=In,ce=Ke(In,["prefixCls","className","showIcon","expandAction"]),Be=Ae("tree",Ft),$t=wt()(`${Be}-directory`,{[`${Be}-directory-rtl`]:Ot==="rtl"},Kt);return le.createElement(ae,Object.assign({icon:Vt,ref:be,blockNode:!0},ce,{showIcon:Ee,expandAction:je,prefixCls:Be,className:$t,expandedKeys:Li,selectedKeys:bi,onSelect:hn,onExpand:ve}))};var Ve=le.forwardRef(Ge);const _e=ae;_e.DirectoryTree=Ve,_e.TreeNode=Lt.O;var xe=_e},20648:function(di,Pn,bt){"use strict";bt.d(Pn,{TM:function(){return Jt},Yk:function(){return Gt}});var Lt=bt(9792),ge=bt(98447),se=bt(17313),De=bt(8378),re=bt(37613),le=bt(83116);const Et=new Lt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Tt=(wt,et)=>({[`.${wt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),ee=(wt,et)=>({[`.${wt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${et.lineWidthBold}px solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Ct=(wt,et)=>{const{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt,titleHeight:ht,nodeSelectedBg:dt,nodeHoverBg:yt}=et,Mt=et.paddingXS;return{[tt]:Object.assign(Object.assign({},(0,se.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${tt}-rtl`]:{[`${tt}-switcher`]:{"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${tt}-active-focused)`]:Object.assign({},(0,se.oN)(et)),[`${tt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${tt}-block-node`]:{[`${tt}-list-holder-inner`]:{alignItems:"stretch",[`${tt}-node-content-wrapper`]:{flex:"auto"},[`${lt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:rt,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:Et,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${lt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${rt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${tt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${tt}-node-content-wrapper`]:Object.assign({},(0,se.oN)(et)),[`&:not(${lt}-disabled).filter-node ${tt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${tt}-draggable-icon`]:{flexShrink:0,width:ht,lineHeight:`${ht}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${lt}:hover &`]:{opacity:.45}},[`&${lt}-disabled`]:{[`${tt}-draggable-icon`]:{visibility:"hidden"}}}},[`${tt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ht}},[`${tt}-draggable-icon`]:{visibility:"hidden"},[`${tt}-switcher`]:Object.assign(Object.assign({},Tt(wt,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ht,margin:0,lineHeight:`${ht}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ht/2,bottom:-rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ht/2*.8,height:ht/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${tt}-checkbox`]:{top:"initial",marginInlineEnd:Mt},[`${tt}-node-content-wrapper, ${tt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ht,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${ht}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:yt},[`&${tt}-node-selected`]:{backgroundColor:dt},[`${tt}-iconEle`]:{display:"inline-block",width:ht,height:ht,lineHeight:`${ht}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${tt}-unselectable ${tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}-node-content-wrapper`]:Object.assign({lineHeight:`${ht}px`,userSelect:"none"},ee(wt,et)),[`${lt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${tt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ht/2,bottom:-rt,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${tt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${lt}-leaf-last`]:{[`${tt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ht/2}px !important`}}}}})}},Wt=wt=>{const{treeCls:et,treeNodeCls:tt,treeNodePadding:lt,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:ht}=wt;return{[`${et}${et}-directory`]:{[tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:lt,insetInlineStart:0,transition:`background-color ${wt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:wt.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${wt.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ht,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:rt},[`${et}-switcher`]:{color:ht},[`${et}-node-content-wrapper`]:{color:ht,background:"transparent"}}}}}},Gt=(wt,et)=>{const tt=`.${wt}`,lt=`${tt}-treenode`,rt=et.paddingXS/2,ht=(0,re.TS)(et,{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt});return[Ct(wt,ht),Wt(ht)]},Jt=wt=>{const{controlHeightSM:et}=wt;return{titleHeight:et,nodeHoverBg:wt.controlItemBgHover,nodeSelectedBg:wt.controlItemBgActive}};Pn.ZP=(0,le.Z)("Tree",(wt,et)=>{let{prefixCls:tt}=et;return[{[wt.componentCls]:(0,ge.C2)(`${tt}-checkbox`,wt)},Gt(tt,wt),(0,De.Z)(wt)]},wt=>{const{colorTextLightSolid:et,colorPrimary:tt}=wt;return Object.assign(Object.assign({},Jt(wt)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},48610:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return lt}});var Lt=bt(5891),ge=bt(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"},De=se,re=bt(88853),le=function(ht,dt){return ge.createElement(re.Z,(0,Lt.Z)({},ht,{ref:dt,icon:De}))},Et=ge.forwardRef(le),Tt=Et,ee=bt(43971),Ct=bt(50023),Wt=bt(77042),Gt=bt(5527),Jt=bt(92310),wt=bt.n(Jt),et=bt(92343),lt=rt=>{const{prefixCls:ht,switcherIcon:dt,treeNodeProps:yt,showLine:Mt}=rt,{isLeaf:jt,expanded:Rt,loading:ae}=yt;if(ae)return ge.createElement(Ct.Z,{className:`${ht}-switcher-loading-icon`});let he;if(Mt&&typeof Mt=="object"&&(he=Mt.showLeafIcon),jt){if(!Mt)return null;if(typeof he!="boolean"&&he){const ne=typeof he=="function"?he(yt):he,Ke=`${ht}-switcher-line-custom-icon`;return(0,et.l$)(ne)?(0,et.Tm)(ne,{className:wt()(ne.props.className||"",Ke)}):ne}return he?ge.createElement(ee.Z,{className:`${ht}-switcher-line-icon`}):ge.createElement("span",{className:`${ht}-switcher-leaf-line`})}const pe=`${ht}-switcher-icon`,Te=typeof dt=="function"?dt(yt):dt;return(0,et.l$)(Te)?(0,et.Tm)(Te,{className:wt()(Te.props.className||"",pe)}):Te!==void 0?Te:Mt?Rt?ge.createElement(Wt.Z,{className:`${ht}-switcher-line-icon`}):ge.createElement(Gt.Z,{className:`${ht}-switcher-line-icon`}):ge.createElement(Tt,{className:pe})}},86251:function(di,Pn){"use strict";Pn.byteLength=Et,Pn.toByteArray=ee,Pn.fromByteArray=Gt;for(var bt=[],Lt=[],ge=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",De=0,re=se.length;De<re;++De)bt[De]=se[De],Lt[se.charCodeAt(De)]=De;Lt[45]=62,Lt[95]=63;function le(Jt){var wt=Jt.length;if(wt%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var et=Jt.indexOf("=");et===-1&&(et=wt);var tt=et===wt?0:4-et%4;return[et,tt]}function Et(Jt){var wt=le(Jt),et=wt[0],tt=wt[1];return(et+tt)*3/4-tt}function Tt(Jt,wt,et){return(wt+et)*3/4-et}function ee(Jt){var wt,et=le(Jt),tt=et[0],lt=et[1],rt=new ge(Tt(Jt,tt,lt)),ht=0,dt=lt>0?tt-4:tt,yt;for(yt=0;yt<dt;yt+=4)wt=Lt[Jt.charCodeAt(yt)]<<18|Lt[Jt.charCodeAt(yt+1)]<<12|Lt[Jt.charCodeAt(yt+2)]<<6|Lt[Jt.charCodeAt(yt+3)],rt[ht++]=wt>>16&255,rt[ht++]=wt>>8&255,rt[ht++]=wt&255;return lt===2&&(wt=Lt[Jt.charCodeAt(yt)]<<2|Lt[Jt.charCodeAt(yt+1)]>>4,rt[ht++]=wt&255),lt===1&&(wt=Lt[Jt.charCodeAt(yt)]<<10|Lt[Jt.charCodeAt(yt+1)]<<4|Lt[Jt.charCodeAt(yt+2)]>>2,rt[ht++]=wt>>8&255,rt[ht++]=wt&255),rt}function Ct(Jt){return bt[Jt>>18&63]+bt[Jt>>12&63]+bt[Jt>>6&63]+bt[Jt&63]}function Wt(Jt,wt,et){for(var tt,lt=[],rt=wt;rt<et;rt+=3)tt=(Jt[rt]<<16&16711680)+(Jt[rt+1]<<8&65280)+(Jt[rt+2]&255),lt.push(Ct(tt));return lt.join("")}function Gt(Jt){for(var wt,et=Jt.length,tt=et%3,lt=[],rt=16383,ht=0,dt=et-tt;ht<dt;ht+=rt)lt.push(Wt(Jt,ht,ht+rt>dt?dt:ht+rt));return tt===1?(wt=Jt[et-1],lt.push(bt[wt>>2]+bt[wt<<4&63]+"==")):tt===2&&(wt=(Jt[et-2]<<8)+Jt[et-1],lt.push(bt[wt>>10]+bt[wt>>4&63]+bt[wt<<2&63]+"=")),lt.join("")}},19208:function(di,Pn,bt){"use strict";var Lt;var ge=bt(86251),se=bt(67467),De=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Pn.lW=Tt,Lt=ht,Pn.h2=50;var re=2147483647;Lt=re,Tt.TYPED_ARRAY_SUPPORT=le(),!Tt.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function le(){try{var Ae=new Uint8Array(1),Ot={foo:function(){return 42}};return Object.setPrototypeOf(Ot,Uint8Array.prototype),Object.setPrototypeOf(Ae,Ot),Ae.foo()===42}catch(Ft){return!1}}Object.defineProperty(Tt.prototype,"parent",{enumerable:!0,get:function(){if(Tt.isBuffer(this))return this.buffer}}),Object.defineProperty(Tt.prototype,"offset",{enumerable:!0,get:function(){if(Tt.isBuffer(this))return this.byteOffset}});function Et(Ae){if(Ae>re)throw new RangeError('The value "'+Ae+'" is invalid for option "size"');var Ot=new Uint8Array(Ae);return Object.setPrototypeOf(Ot,Tt.prototype),Ot}function Tt(Ae,Ot,Ft){if(typeof Ae=="number"){if(typeof Ot=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Gt(Ae)}return ee(Ae,Ot,Ft)}Tt.poolSize=8192;function ee(Ae,Ot,Ft){if(typeof Ae=="string")return Jt(Ae,Ot);if(ArrayBuffer.isView(Ae))return et(Ae);if(Ae==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ae);if(ji(Ae,ArrayBuffer)||Ae&&ji(Ae.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ji(Ae,SharedArrayBuffer)||Ae&&ji(Ae.buffer,SharedArrayBuffer)))return tt(Ae,Ot,Ft);if(typeof Ae=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Kt=Ae.valueOf&&Ae.valueOf();if(Kt!=null&&Kt!==Ae)return Tt.from(Kt,Ot,Ft);var Ee=lt(Ae);if(Ee)return Ee;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ae[Symbol.toPrimitive]=="function")return Tt.from(Ae[Symbol.toPrimitive]("string"),Ot,Ft);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ae)}Tt.from=function(Ae,Ot,Ft){return ee(Ae,Ot,Ft)},Object.setPrototypeOf(Tt.prototype,Uint8Array.prototype),Object.setPrototypeOf(Tt,Uint8Array);function Ct(Ae){if(typeof Ae!="number")throw new TypeError('"size" argument must be of type number');if(Ae<0)throw new RangeError('The value "'+Ae+'" is invalid for option "size"')}function Wt(Ae,Ot,Ft){return Ct(Ae),Ae<=0?Et(Ae):Ot!==void 0?typeof Ft=="string"?Et(Ae).fill(Ot,Ft):Et(Ae).fill(Ot):Et(Ae)}Tt.alloc=function(Ae,Ot,Ft){return Wt(Ae,Ot,Ft)};function Gt(Ae){return Ct(Ae),Et(Ae<0?0:rt(Ae)|0)}Tt.allocUnsafe=function(Ae){return Gt(Ae)},Tt.allocUnsafeSlow=function(Ae){return Gt(Ae)};function Jt(Ae,Ot){if((typeof Ot!="string"||Ot==="")&&(Ot="utf8"),!Tt.isEncoding(Ot))throw new TypeError("Unknown encoding: "+Ot);var Ft=dt(Ae,Ot)|0,Kt=Et(Ft),Ee=Kt.write(Ae,Ot);return Ee!==Ft&&(Kt=Kt.slice(0,Ee)),Kt}function wt(Ae){for(var Ot=Ae.length<0?0:rt(Ae.length)|0,Ft=Et(Ot),Kt=0;Kt<Ot;Kt+=1)Ft[Kt]=Ae[Kt]&255;return Ft}function et(Ae){if(ji(Ae,Uint8Array)){var Ot=new Uint8Array(Ae);return tt(Ot.buffer,Ot.byteOffset,Ot.byteLength)}return wt(Ae)}function tt(Ae,Ot,Ft){if(Ot<0||Ae.byteLength<Ot)throw new RangeError('"offset" is outside of buffer bounds');if(Ae.byteLength<Ot+(Ft||0))throw new RangeError('"length" is outside of buffer bounds');var Kt;return Ot===void 0&&Ft===void 0?Kt=new Uint8Array(Ae):Ft===void 0?Kt=new Uint8Array(Ae,Ot):Kt=new Uint8Array(Ae,Ot,Ft),Object.setPrototypeOf(Kt,Tt.prototype),Kt}function lt(Ae){if(Tt.isBuffer(Ae)){var Ot=rt(Ae.length)|0,Ft=Et(Ot);return Ft.length===0||Ae.copy(Ft,0,0,Ot),Ft}if(Ae.length!==void 0)return typeof Ae.length!="number"||ve(Ae.length)?Et(0):wt(Ae);if(Ae.type==="Buffer"&&Array.isArray(Ae.data))return wt(Ae.data)}function rt(Ae){if(Ae>=re)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+re.toString(16)+" bytes");return Ae|0}function ht(Ae){return+Ae!=Ae&&(Ae=0),Tt.alloc(+Ae)}Tt.isBuffer=function(Ot){return Ot!=null&&Ot._isBuffer===!0&&Ot!==Tt.prototype},Tt.compare=function(Ot,Ft){if(ji(Ot,Uint8Array)&&(Ot=Tt.from(Ot,Ot.offset,Ot.byteLength)),ji(Ft,Uint8Array)&&(Ft=Tt.from(Ft,Ft.offset,Ft.byteLength)),!Tt.isBuffer(Ot)||!Tt.isBuffer(Ft))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ot===Ft)return 0;for(var Kt=Ot.length,Ee=Ft.length,je=0,ce=Math.min(Kt,Ee);je<ce;++je)if(Ot[je]!==Ft[je]){Kt=Ot[je],Ee=Ft[je];break}return Kt<Ee?-1:Ee<Kt?1:0},Tt.isEncoding=function(Ot){switch(String(Ot).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}},Tt.concat=function(Ot,Ft){if(!Array.isArray(Ot))throw new TypeError('"list" argument must be an Array of Buffers');if(Ot.length===0)return Tt.alloc(0);var Kt;if(Ft===void 0)for(Ft=0,Kt=0;Kt<Ot.length;++Kt)Ft+=Ot[Kt].length;var Ee=Tt.allocUnsafe(Ft),je=0;for(Kt=0;Kt<Ot.length;++Kt){var ce=Ot[Kt];if(ji(ce,Uint8Array))je+ce.length>Ee.length?Tt.from(ce).copy(Ee,je):Uint8Array.prototype.set.call(Ee,ce,je);else if(Tt.isBuffer(ce))ce.copy(Ee,je);else throw new TypeError('"list" argument must be an Array of Buffers');je+=ce.length}return Ee};function dt(Ae,Ot){if(Tt.isBuffer(Ae))return Ae.length;if(ArrayBuffer.isView(Ae)||ji(Ae,ArrayBuffer))return Ae.byteLength;if(typeof Ae!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ae);var Ft=Ae.length,Kt=arguments.length>2&&arguments[2]===!0;if(!Kt&&Ft===0)return 0;for(var Ee=!1;;)switch(Ot){case"ascii":case"latin1":case"binary":return Ft;case"utf8":case"utf-8":return pi(Ae).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft*2;case"hex":return Ft>>>1;case"base64":return sn(Ae).length;default:if(Ee)return Kt?-1:pi(Ae).length;Ot=(""+Ot).toLowerCase(),Ee=!0}}Tt.byteLength=dt;function yt(Ae,Ot,Ft){var Kt=!1;if((Ot===void 0||Ot<0)&&(Ot=0),Ot>this.length||((Ft===void 0||Ft>this.length)&&(Ft=this.length),Ft<=0)||(Ft>>>=0,Ot>>>=0,Ft<=Ot))return"";for(Ae||(Ae="utf8");;)switch(Ae){case"hex":return _e(this,Ot,Ft);case"utf8":case"utf-8":return Vt(this,Ot,Ft);case"ascii":return Oe(this,Ot,Ft);case"latin1":case"binary":return Ve(this,Ot,Ft);case"base64":return Ke(this,Ot,Ft);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xe(this,Ot,Ft);default:if(Kt)throw new TypeError("Unknown encoding: "+Ae);Ae=(Ae+"").toLowerCase(),Kt=!0}}Tt.prototype._isBuffer=!0;function Mt(Ae,Ot,Ft){var Kt=Ae[Ot];Ae[Ot]=Ae[Ft],Ae[Ft]=Kt}Tt.prototype.swap16=function(){var Ot=this.length;if(Ot%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ft=0;Ft<Ot;Ft+=2)Mt(this,Ft,Ft+1);return this},Tt.prototype.swap32=function(){var Ot=this.length;if(Ot%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ft=0;Ft<Ot;Ft+=4)Mt(this,Ft,Ft+3),Mt(this,Ft+1,Ft+2);return this},Tt.prototype.swap64=function(){var Ot=this.length;if(Ot%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ft=0;Ft<Ot;Ft+=8)Mt(this,Ft,Ft+7),Mt(this,Ft+1,Ft+6),Mt(this,Ft+2,Ft+5),Mt(this,Ft+3,Ft+4);return this},Tt.prototype.toString=function(){var Ot=this.length;return Ot===0?"":arguments.length===0?Vt(this,0,Ot):yt.apply(this,arguments)},Tt.prototype.toLocaleString=Tt.prototype.toString,Tt.prototype.equals=function(Ot){if(!Tt.isBuffer(Ot))throw new TypeError("Argument must be a Buffer");return this===Ot?!0:Tt.compare(this,Ot)===0},Tt.prototype.inspect=function(){var Ot="",Ft=Pn.h2;return Ot=this.toString("hex",0,Ft).replace(/(.{2})/g,"$1 ").trim(),this.length>Ft&&(Ot+=" ... "),"<Buffer "+Ot+">"},De&&(Tt.prototype[De]=Tt.prototype.inspect),Tt.prototype.compare=function(Ot,Ft,Kt,Ee,je){if(ji(Ot,Uint8Array)&&(Ot=Tt.from(Ot,Ot.offset,Ot.byteLength)),!Tt.isBuffer(Ot))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ot);if(Ft===void 0&&(Ft=0),Kt===void 0&&(Kt=Ot?Ot.length:0),Ee===void 0&&(Ee=0),je===void 0&&(je=this.length),Ft<0||Kt>Ot.length||Ee<0||je>this.length)throw new RangeError("out of range index");if(Ee>=je&&Ft>=Kt)return 0;if(Ee>=je)return-1;if(Ft>=Kt)return 1;if(Ft>>>=0,Kt>>>=0,Ee>>>=0,je>>>=0,this===Ot)return 0;for(var ce=je-Ee,Be=Kt-Ft,$t=Math.min(ce,Be),Pt=this.slice(Ee,je),mt=Ot.slice(Ft,Kt),Zt=0;Zt<$t;++Zt)if(Pt[Zt]!==mt[Zt]){ce=Pt[Zt],Be=mt[Zt];break}return ce<Be?-1:Be<ce?1:0};function jt(Ae,Ot,Ft,Kt,Ee){if(Ae.length===0)return-1;if(typeof Ft=="string"?(Kt=Ft,Ft=0):Ft>2147483647?Ft=2147483647:Ft<-2147483648&&(Ft=-2147483648),Ft=+Ft,ve(Ft)&&(Ft=Ee?0:Ae.length-1),Ft<0&&(Ft=Ae.length+Ft),Ft>=Ae.length){if(Ee)return-1;Ft=Ae.length-1}else if(Ft<0)if(Ee)Ft=0;else return-1;if(typeof Ot=="string"&&(Ot=Tt.from(Ot,Kt)),Tt.isBuffer(Ot))return Ot.length===0?-1:Rt(Ae,Ot,Ft,Kt,Ee);if(typeof Ot=="number")return Ot=Ot&255,typeof Uint8Array.prototype.indexOf=="function"?Ee?Uint8Array.prototype.indexOf.call(Ae,Ot,Ft):Uint8Array.prototype.lastIndexOf.call(Ae,Ot,Ft):Rt(Ae,[Ot],Ft,Kt,Ee);throw new TypeError("val must be string, number or Buffer")}function Rt(Ae,Ot,Ft,Kt,Ee){var je=1,ce=Ae.length,Be=Ot.length;if(Kt!==void 0&&(Kt=String(Kt).toLowerCase(),Kt==="ucs2"||Kt==="ucs-2"||Kt==="utf16le"||Kt==="utf-16le")){if(Ae.length<2||Ot.length<2)return-1;je=2,ce/=2,Be/=2,Ft/=2}function $t(Dt,Ie){return je===1?Dt[Ie]:Dt.readUInt16BE(Ie*je)}var Pt;if(Ee){var mt=-1;for(Pt=Ft;Pt<ce;Pt++)if($t(Ae,Pt)===$t(Ot,mt===-1?0:Pt-mt)){if(mt===-1&&(mt=Pt),Pt-mt+1===Be)return mt*je}else mt!==-1&&(Pt-=Pt-mt),mt=-1}else for(Ft+Be>ce&&(Ft=ce-Be),Pt=Ft;Pt>=0;Pt--){for(var Zt=!0,Se=0;Se<Be;Se++)if($t(Ae,Pt+Se)!==$t(Ot,Se)){Zt=!1;break}if(Zt)return Pt}return-1}Tt.prototype.includes=function(Ot,Ft,Kt){return this.indexOf(Ot,Ft,Kt)!==-1},Tt.prototype.indexOf=function(Ot,Ft,Kt){return jt(this,Ot,Ft,Kt,!0)},Tt.prototype.lastIndexOf=function(Ot,Ft,Kt){return jt(this,Ot,Ft,Kt,!1)};function ae(Ae,Ot,Ft,Kt){Ft=Number(Ft)||0;var Ee=Ae.length-Ft;Kt?(Kt=Number(Kt),Kt>Ee&&(Kt=Ee)):Kt=Ee;var je=Ot.length;Kt>je/2&&(Kt=je/2);for(var ce=0;ce<Kt;++ce){var Be=parseInt(Ot.substr(ce*2,2),16);if(ve(Be))return ce;Ae[Ft+ce]=Be}return ce}function he(Ae,Ot,Ft,Kt){return Li(pi(Ot,Ae.length-Ft),Ae,Ft,Kt)}function pe(Ae,Ot,Ft,Kt){return Li($n(Ot),Ae,Ft,Kt)}function Te(Ae,Ot,Ft,Kt){return Li(sn(Ot),Ae,Ft,Kt)}function ne(Ae,Ot,Ft,Kt){return Li(bi(Ot,Ae.length-Ft),Ae,Ft,Kt)}Tt.prototype.write=function(Ot,Ft,Kt,Ee){if(Ft===void 0)Ee="utf8",Kt=this.length,Ft=0;else if(Kt===void 0&&typeof Ft=="string")Ee=Ft,Kt=this.length,Ft=0;else if(isFinite(Ft))Ft=Ft>>>0,isFinite(Kt)?(Kt=Kt>>>0,Ee===void 0&&(Ee="utf8")):(Ee=Kt,Kt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var je=this.length-Ft;if((Kt===void 0||Kt>je)&&(Kt=je),Ot.length>0&&(Kt<0||Ft<0)||Ft>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ee||(Ee="utf8");for(var ce=!1;;)switch(Ee){case"hex":return ae(this,Ot,Ft,Kt);case"utf8":case"utf-8":return he(this,Ot,Ft,Kt);case"ascii":case"latin1":case"binary":return pe(this,Ot,Ft,Kt);case"base64":return Te(this,Ot,Ft,Kt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,Ot,Ft,Kt);default:if(ce)throw new TypeError("Unknown encoding: "+Ee);Ee=(""+Ee).toLowerCase(),ce=!0}},Tt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ke(Ae,Ot,Ft){return Ot===0&&Ft===Ae.length?ge.fromByteArray(Ae):ge.fromByteArray(Ae.slice(Ot,Ft))}function Vt(Ae,Ot,Ft){Ft=Math.min(Ae.length,Ft);for(var Kt=[],Ee=Ot;Ee<Ft;){var je=Ae[Ee],ce=null,Be=je>239?4:je>223?3:je>191?2:1;if(Ee+Be<=Ft){var $t,Pt,mt,Zt;switch(Be){case 1:je<128&&(ce=je);break;case 2:$t=Ae[Ee+1],($t&192)===128&&(Zt=(je&31)<<6|$t&63,Zt>127&&(ce=Zt));break;case 3:$t=Ae[Ee+1],Pt=Ae[Ee+2],($t&192)===128&&(Pt&192)===128&&(Zt=(je&15)<<12|($t&63)<<6|Pt&63,Zt>2047&&(Zt<55296||Zt>57343)&&(ce=Zt));break;case 4:$t=Ae[Ee+1],Pt=Ae[Ee+2],mt=Ae[Ee+3],($t&192)===128&&(Pt&192)===128&&(mt&192)===128&&(Zt=(je&15)<<18|($t&63)<<12|(Pt&63)<<6|mt&63,Zt>65535&&Zt<1114112&&(ce=Zt))}}ce===null?(ce=65533,Be=1):ce>65535&&(ce-=65536,Kt.push(ce>>>10&1023|55296),ce=56320|ce&1023),Kt.push(ce),Ee+=Be}return Ge(Kt)}var $e=4096;function Ge(Ae){var Ot=Ae.length;if(Ot<=$e)return String.fromCharCode.apply(String,Ae);for(var Ft="",Kt=0;Kt<Ot;)Ft+=String.fromCharCode.apply(String,Ae.slice(Kt,Kt+=$e));return Ft}function Oe(Ae,Ot,Ft){var Kt="";Ft=Math.min(Ae.length,Ft);for(var Ee=Ot;Ee<Ft;++Ee)Kt+=String.fromCharCode(Ae[Ee]&127);return Kt}function Ve(Ae,Ot,Ft){var Kt="";Ft=Math.min(Ae.length,Ft);for(var Ee=Ot;Ee<Ft;++Ee)Kt+=String.fromCharCode(Ae[Ee]);return Kt}function _e(Ae,Ot,Ft){var Kt=Ae.length;(!Ot||Ot<0)&&(Ot=0),(!Ft||Ft<0||Ft>Kt)&&(Ft=Kt);for(var Ee="",je=Ot;je<Ft;++je)Ee+=hn[Ae[je]];return Ee}function xe(Ae,Ot,Ft){for(var Kt=Ae.slice(Ot,Ft),Ee="",je=0;je<Kt.length-1;je+=2)Ee+=String.fromCharCode(Kt[je]+Kt[je+1]*256);return Ee}Tt.prototype.slice=function(Ot,Ft){var Kt=this.length;Ot=~~Ot,Ft=Ft===void 0?Kt:~~Ft,Ot<0?(Ot+=Kt,Ot<0&&(Ot=0)):Ot>Kt&&(Ot=Kt),Ft<0?(Ft+=Kt,Ft<0&&(Ft=0)):Ft>Kt&&(Ft=Kt),Ft<Ot&&(Ft=Ot);var Ee=this.subarray(Ot,Ft);return Object.setPrototypeOf(Ee,Tt.prototype),Ee};function ie(Ae,Ot,Ft){if(Ae%1!==0||Ae<0)throw new RangeError("offset is not uint");if(Ae+Ot>Ft)throw new RangeError("Trying to access beyond buffer length")}Tt.prototype.readUintLE=Tt.prototype.readUIntLE=function(Ot,Ft,Kt){Ot=Ot>>>0,Ft=Ft>>>0,Kt||ie(Ot,Ft,this.length);for(var Ee=this[Ot],je=1,ce=0;++ce<Ft&&(je*=256);)Ee+=this[Ot+ce]*je;return Ee},Tt.prototype.readUintBE=Tt.prototype.readUIntBE=function(Ot,Ft,Kt){Ot=Ot>>>0,Ft=Ft>>>0,Kt||ie(Ot,Ft,this.length);for(var Ee=this[Ot+--Ft],je=1;Ft>0&&(je*=256);)Ee+=this[Ot+--Ft]*je;return Ee},Tt.prototype.readUint8=Tt.prototype.readUInt8=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,1,this.length),this[Ot]},Tt.prototype.readUint16LE=Tt.prototype.readUInt16LE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,2,this.length),this[Ot]|this[Ot+1]<<8},Tt.prototype.readUint16BE=Tt.prototype.readUInt16BE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,2,this.length),this[Ot]<<8|this[Ot+1]},Tt.prototype.readUint32LE=Tt.prototype.readUInt32LE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,4,this.length),(this[Ot]|this[Ot+1]<<8|this[Ot+2]<<16)+this[Ot+3]*16777216},Tt.prototype.readUint32BE=Tt.prototype.readUInt32BE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,4,this.length),this[Ot]*16777216+(this[Ot+1]<<16|this[Ot+2]<<8|this[Ot+3])},Tt.prototype.readIntLE=function(Ot,Ft,Kt){Ot=Ot>>>0,Ft=Ft>>>0,Kt||ie(Ot,Ft,this.length);for(var Ee=this[Ot],je=1,ce=0;++ce<Ft&&(je*=256);)Ee+=this[Ot+ce]*je;return je*=128,Ee>=je&&(Ee-=Math.pow(2,8*Ft)),Ee},Tt.prototype.readIntBE=function(Ot,Ft,Kt){Ot=Ot>>>0,Ft=Ft>>>0,Kt||ie(Ot,Ft,this.length);for(var Ee=Ft,je=1,ce=this[Ot+--Ee];Ee>0&&(je*=256);)ce+=this[Ot+--Ee]*je;return je*=128,ce>=je&&(ce-=Math.pow(2,8*Ft)),ce},Tt.prototype.readInt8=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,1,this.length),this[Ot]&128?(255-this[Ot]+1)*-1:this[Ot]},Tt.prototype.readInt16LE=function(Ot,Ft){Ot=Ot>>>0,Ft||ie(Ot,2,this.length);var Kt=this[Ot]|this[Ot+1]<<8;return Kt&32768?Kt|4294901760:Kt},Tt.prototype.readInt16BE=function(Ot,Ft){Ot=Ot>>>0,Ft||ie(Ot,2,this.length);var Kt=this[Ot+1]|this[Ot]<<8;return Kt&32768?Kt|4294901760:Kt},Tt.prototype.readInt32LE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,4,this.length),this[Ot]|this[Ot+1]<<8|this[Ot+2]<<16|this[Ot+3]<<24},Tt.prototype.readInt32BE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,4,this.length),this[Ot]<<24|this[Ot+1]<<16|this[Ot+2]<<8|this[Ot+3]},Tt.prototype.readFloatLE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,4,this.length),se.read(this,Ot,!0,23,4)},Tt.prototype.readFloatBE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,4,this.length),se.read(this,Ot,!1,23,4)},Tt.prototype.readDoubleLE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,8,this.length),se.read(this,Ot,!0,52,8)},Tt.prototype.readDoubleBE=function(Ot,Ft){return Ot=Ot>>>0,Ft||ie(Ot,8,this.length),se.read(this,Ot,!1,52,8)};function be(Ae,Ot,Ft,Kt,Ee,je){if(!Tt.isBuffer(Ae))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ot>Ee||Ot<je)throw new RangeError('"value" argument is out of bounds');if(Ft+Kt>Ae.length)throw new RangeError("Index out of range")}Tt.prototype.writeUintLE=Tt.prototype.writeUIntLE=function(Ot,Ft,Kt,Ee){if(Ot=+Ot,Ft=Ft>>>0,Kt=Kt>>>0,!Ee){var je=Math.pow(2,8*Kt)-1;be(this,Ot,Ft,Kt,je,0)}var ce=1,Be=0;for(this[Ft]=Ot&255;++Be<Kt&&(ce*=256);)this[Ft+Be]=Ot/ce&255;return Ft+Kt},Tt.prototype.writeUintBE=Tt.prototype.writeUIntBE=function(Ot,Ft,Kt,Ee){if(Ot=+Ot,Ft=Ft>>>0,Kt=Kt>>>0,!Ee){var je=Math.pow(2,8*Kt)-1;be(this,Ot,Ft,Kt,je,0)}var ce=Kt-1,Be=1;for(this[Ft+ce]=Ot&255;--ce>=0&&(Be*=256);)this[Ft+ce]=Ot/Be&255;return Ft+Kt},Tt.prototype.writeUint8=Tt.prototype.writeUInt8=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,1,255,0),this[Ft]=Ot&255,Ft+1},Tt.prototype.writeUint16LE=Tt.prototype.writeUInt16LE=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,2,65535,0),this[Ft]=Ot&255,this[Ft+1]=Ot>>>8,Ft+2},Tt.prototype.writeUint16BE=Tt.prototype.writeUInt16BE=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,2,65535,0),this[Ft]=Ot>>>8,this[Ft+1]=Ot&255,Ft+2},Tt.prototype.writeUint32LE=Tt.prototype.writeUInt32LE=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,4,4294967295,0),this[Ft+3]=Ot>>>24,this[Ft+2]=Ot>>>16,this[Ft+1]=Ot>>>8,this[Ft]=Ot&255,Ft+4},Tt.prototype.writeUint32BE=Tt.prototype.writeUInt32BE=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,4,4294967295,0),this[Ft]=Ot>>>24,this[Ft+1]=Ot>>>16,this[Ft+2]=Ot>>>8,this[Ft+3]=Ot&255,Ft+4},Tt.prototype.writeIntLE=function(Ot,Ft,Kt,Ee){if(Ot=+Ot,Ft=Ft>>>0,!Ee){var je=Math.pow(2,8*Kt-1);be(this,Ot,Ft,Kt,je-1,-je)}var ce=0,Be=1,$t=0;for(this[Ft]=Ot&255;++ce<Kt&&(Be*=256);)Ot<0&&$t===0&&this[Ft+ce-1]!==0&&($t=1),this[Ft+ce]=(Ot/Be>>0)-$t&255;return Ft+Kt},Tt.prototype.writeIntBE=function(Ot,Ft,Kt,Ee){if(Ot=+Ot,Ft=Ft>>>0,!Ee){var je=Math.pow(2,8*Kt-1);be(this,Ot,Ft,Kt,je-1,-je)}var ce=Kt-1,Be=1,$t=0;for(this[Ft+ce]=Ot&255;--ce>=0&&(Be*=256);)Ot<0&&$t===0&&this[Ft+ce+1]!==0&&($t=1),this[Ft+ce]=(Ot/Be>>0)-$t&255;return Ft+Kt},Tt.prototype.writeInt8=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,1,127,-128),Ot<0&&(Ot=255+Ot+1),this[Ft]=Ot&255,Ft+1},Tt.prototype.writeInt16LE=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,2,32767,-32768),this[Ft]=Ot&255,this[Ft+1]=Ot>>>8,Ft+2},Tt.prototype.writeInt16BE=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,2,32767,-32768),this[Ft]=Ot>>>8,this[Ft+1]=Ot&255,Ft+2},Tt.prototype.writeInt32LE=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,4,2147483647,-2147483648),this[Ft]=Ot&255,this[Ft+1]=Ot>>>8,this[Ft+2]=Ot>>>16,this[Ft+3]=Ot>>>24,Ft+4},Tt.prototype.writeInt32BE=function(Ot,Ft,Kt){return Ot=+Ot,Ft=Ft>>>0,Kt||be(this,Ot,Ft,4,2147483647,-2147483648),Ot<0&&(Ot=4294967295+Ot+1),this[Ft]=Ot>>>24,this[Ft+1]=Ot>>>16,this[Ft+2]=Ot>>>8,this[Ft+3]=Ot&255,Ft+4};function Fn(Ae,Ot,Ft,Kt,Ee,je){if(Ft+Kt>Ae.length)throw new RangeError("Index out of range");if(Ft<0)throw new RangeError("Index out of range")}function Mn(Ae,Ot,Ft,Kt,Ee){return Ot=+Ot,Ft=Ft>>>0,Ee||Fn(Ae,Ot,Ft,4,34028234663852886e22,-34028234663852886e22),se.write(Ae,Ot,Ft,Kt,23,4),Ft+4}Tt.prototype.writeFloatLE=function(Ot,Ft,Kt){return Mn(this,Ot,Ft,!0,Kt)},Tt.prototype.writeFloatBE=function(Ot,Ft,Kt){return Mn(this,Ot,Ft,!1,Kt)};function Xe(Ae,Ot,Ft,Kt,Ee){return Ot=+Ot,Ft=Ft>>>0,Ee||Fn(Ae,Ot,Ft,8,17976931348623157e292,-17976931348623157e292),se.write(Ae,Ot,Ft,Kt,52,8),Ft+8}Tt.prototype.writeDoubleLE=function(Ot,Ft,Kt){return Xe(this,Ot,Ft,!0,Kt)},Tt.prototype.writeDoubleBE=function(Ot,Ft,Kt){return Xe(this,Ot,Ft,!1,Kt)},Tt.prototype.copy=function(Ot,Ft,Kt,Ee){if(!Tt.isBuffer(Ot))throw new TypeError("argument should be a Buffer");if(Kt||(Kt=0),!Ee&&Ee!==0&&(Ee=this.length),Ft>=Ot.length&&(Ft=Ot.length),Ft||(Ft=0),Ee>0&&Ee<Kt&&(Ee=Kt),Ee===Kt||Ot.length===0||this.length===0)return 0;if(Ft<0)throw new RangeError("targetStart out of bounds");if(Kt<0||Kt>=this.length)throw new RangeError("Index out of range");if(Ee<0)throw new RangeError("sourceEnd out of bounds");Ee>this.length&&(Ee=this.length),Ot.length-Ft<Ee-Kt&&(Ee=Ot.length-Ft+Kt);var je=Ee-Kt;return this===Ot&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Ft,Kt,Ee):Uint8Array.prototype.set.call(Ot,this.subarray(Kt,Ee),Ft),je},Tt.prototype.fill=function(Ot,Ft,Kt,Ee){if(typeof Ot=="string"){if(typeof Ft=="string"?(Ee=Ft,Ft=0,Kt=this.length):typeof Kt=="string"&&(Ee=Kt,Kt=this.length),Ee!==void 0&&typeof Ee!="string")throw new TypeError("encoding must be a string");if(typeof Ee=="string"&&!Tt.isEncoding(Ee))throw new TypeError("Unknown encoding: "+Ee);if(Ot.length===1){var je=Ot.charCodeAt(0);(Ee==="utf8"&&je<128||Ee==="latin1")&&(Ot=je)}}else typeof Ot=="number"?Ot=Ot&255:typeof Ot=="boolean"&&(Ot=Number(Ot));if(Ft<0||this.length<Ft||this.length<Kt)throw new RangeError("Out of range index");if(Kt<=Ft)return this;Ft=Ft>>>0,Kt=Kt===void 0?this.length:Kt>>>0,Ot||(Ot=0);var ce;if(typeof Ot=="number")for(ce=Ft;ce<Kt;++ce)this[ce]=Ot;else{var Be=Tt.isBuffer(Ot)?Ot:Tt.from(Ot,Ee),$t=Be.length;if($t===0)throw new TypeError('The value "'+Ot+'" is invalid for argument "value"');for(ce=0;ce<Kt-Ft;++ce)this[ce+Ft]=Be[ce%$t]}return this};var In=/[^+/0-9A-Za-z-_]/g;function Xn(Ae){if(Ae=Ae.split("=")[0],Ae=Ae.trim().replace(In,""),Ae.length<2)return"";for(;Ae.length%4!==0;)Ae=Ae+"=";return Ae}function pi(Ae,Ot){Ot=Ot||1/0;for(var Ft,Kt=Ae.length,Ee=null,je=[],ce=0;ce<Kt;++ce){if(Ft=Ae.charCodeAt(ce),Ft>55295&&Ft<57344){if(!Ee){if(Ft>56319){(Ot-=3)>-1&&je.push(239,191,189);continue}else if(ce+1===Kt){(Ot-=3)>-1&&je.push(239,191,189);continue}Ee=Ft;continue}if(Ft<56320){(Ot-=3)>-1&&je.push(239,191,189),Ee=Ft;continue}Ft=(Ee-55296<<10|Ft-56320)+65536}else Ee&&(Ot-=3)>-1&&je.push(239,191,189);if(Ee=null,Ft<128){if((Ot-=1)<0)break;je.push(Ft)}else if(Ft<2048){if((Ot-=2)<0)break;je.push(Ft>>6|192,Ft&63|128)}else if(Ft<65536){if((Ot-=3)<0)break;je.push(Ft>>12|224,Ft>>6&63|128,Ft&63|128)}else if(Ft<1114112){if((Ot-=4)<0)break;je.push(Ft>>18|240,Ft>>12&63|128,Ft>>6&63|128,Ft&63|128)}else throw new Error("Invalid code point")}return je}function $n(Ae){for(var Ot=[],Ft=0;Ft<Ae.length;++Ft)Ot.push(Ae.charCodeAt(Ft)&255);return Ot}function bi(Ae,Ot){for(var Ft,Kt,Ee,je=[],ce=0;ce<Ae.length&&!((Ot-=2)<0);++ce)Ft=Ae.charCodeAt(ce),Kt=Ft>>8,Ee=Ft%256,je.push(Ee),je.push(Kt);return je}function sn(Ae){return ge.toByteArray(Xn(Ae))}function Li(Ae,Ot,Ft,Kt){for(var Ee=0;Ee<Kt&&!(Ee+Ft>=Ot.length||Ee>=Ae.length);++Ee)Ot[Ee+Ft]=Ae[Ee];return Ee}function ji(Ae,Ot){return Ae instanceof Ot||Ae!=null&&Ae.constructor!=null&&Ae.constructor.name!=null&&Ae.constructor.name===Ot.name}function ve(Ae){return Ae!==Ae}var hn=function(){for(var Ae="0123456789abcdef",Ot=new Array(256),Ft=0;Ft<16;++Ft)for(var Kt=Ft*16,Ee=0;Ee<16;++Ee)Ot[Kt+Ee]=Ae[Ft]+Ae[Ee];return Ot}()},57780:function(di,Pn,bt){"use strict";bt.r(Pn),bt.d(Pn,{clsx:function(){return ge}});function Lt(se){var De,re,le="";if(typeof se=="string"||typeof se=="number")le+=se;else if(typeof se=="object")if(Array.isArray(se))for(De=0;De<se.length;De++)se[De]&&(re=Lt(se[De]))&&(le&&(le+=" "),le+=re);else for(De in se)se[De]&&(le&&(le+=" "),le+=De);return le}function ge(){for(var se,De,re=0,le="";re<arguments.length;)(se=arguments[re++])&&(De=Lt(se))&&(le&&(le+=" "),le+=De);return le}Pn.default=ge},99498:function(di,Pn,bt){(function(Lt){Lt(bt(89780))})(function(Lt){Lt.defineOption("placeholder","",function(Tt,ee,Ct){var Wt=Ct&&Ct!=Lt.Init;if(ee&&!Wt)Tt.on("blur",re),Tt.on("change",le),Tt.on("swapDoc",le),Lt.on(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose=function(){De(Tt)}),le(Tt);else if(!ee&&Wt){Tt.off("blur",re),Tt.off("change",le),Tt.off("swapDoc",le),Lt.off(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose),ge(Tt);var Gt=Tt.getWrapperElement();Gt.className=Gt.className.replace(" CodeMirror-empty","")}ee&&!Tt.hasFocus()&&re(Tt)});function ge(Tt){Tt.state.placeholder&&(Tt.state.placeholder.parentNode.removeChild(Tt.state.placeholder),Tt.state.placeholder=null)}function se(Tt){ge(Tt);var ee=Tt.state.placeholder=document.createElement("pre");ee.style.cssText="height: 0; overflow: visible",ee.style.direction=Tt.getOption("direction"),ee.className="CodeMirror-placeholder CodeMirror-line-like";var Ct=Tt.getOption("placeholder");typeof Ct=="string"&&(Ct=document.createTextNode(Ct)),ee.appendChild(Ct),Tt.display.lineSpace.insertBefore(ee,Tt.display.lineSpace.firstChild)}function De(Tt){setTimeout(function(){var ee=!1,Ct=Tt.getInputField();Ct.nodeName=="TEXTAREA"?ee=!Ct.value:Tt.lineCount()==1&&(ee=!/[^\u200b]/.test(Ct.querySelector(".CodeMirror-line").textContent)),ee?se(Tt):ge(Tt)},20)}function re(Tt){Et(Tt)&&se(Tt)}function le(Tt){var ee=Tt.getWrapperElement(),Ct=Et(Tt);ee.className=ee.className.replace(" CodeMirror-empty","")+(Ct?" CodeMirror-empty":""),Ct?se(Tt):ge(Tt)}function Et(Tt){return Tt.lineCount()===1&&Tt.getLine(0)===""}})},25717:function(di,Pn,bt){(function(Lt){Lt(bt(89780))})(function(Lt){var ge={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},se=Lt.Pos;Lt.defineOption("autoCloseBrackets",!1,function(et,tt,lt){lt&&lt!=Lt.Init&&(et.removeKeyMap(re),et.state.closeBrackets=null),tt&&(le(De(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(re))});function De(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:ge[tt]}var re={Backspace:ee,Enter:Ct};function le(et){for(var tt=0;tt<et.length;tt++){var lt=et.charAt(tt),rt="'"+lt+"'";re[rt]||(re[rt]=Et(lt))}}le(ge.pairs+"`");function Et(et){return function(tt){return Gt(tt,et)}}function Tt(et){var tt=et.state.closeBrackets;if(!tt||tt.override)return tt;var lt=et.getModeAt(et.getCursor());return lt.closeBrackets||tt}function ee(et){var tt=Tt(et);if(!tt||et.getOption("disableInput"))return Lt.Pass;for(var lt=De(tt,"pairs"),rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Lt.Pass;var dt=Jt(et,rt[ht].head);if(!dt||lt.indexOf(dt)%2!=0)return Lt.Pass}for(var ht=rt.length-1;ht>=0;ht--){var yt=rt[ht].head;et.replaceRange("",se(yt.line,yt.ch-1),se(yt.line,yt.ch+1),"+delete")}}function Ct(et){var tt=Tt(et),lt=tt&&De(tt,"explode");if(!lt||et.getOption("disableInput"))return Lt.Pass;for(var rt=et.listSelections(),ht=0;ht<rt.length;ht++){if(!rt[ht].empty())return Lt.Pass;var dt=Jt(et,rt[ht].head);if(!dt||lt.indexOf(dt)%2!=0)return Lt.Pass}et.operation(function(){var yt=et.lineSeparator()||`
`;et.replaceSelection(yt+yt,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var Mt=0;Mt<rt.length;Mt++){var jt=rt[Mt].head.line;et.indentLine(jt,null,!0),et.indentLine(jt+1,null,!0)}})}function Wt(et){var tt=Lt.cmpPos(et.anchor,et.head)>0;return{anchor:new se(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new se(et.head.line,et.head.ch+(tt?1:-1))}}function Gt(et,tt){var lt=Tt(et);if(!lt||et.getOption("disableInput"))return Lt.Pass;var rt=De(lt,"pairs"),ht=rt.indexOf(tt);if(ht==-1)return Lt.Pass;for(var dt=De(lt,"closeBefore"),yt=De(lt,"triples"),Mt=rt.charAt(ht+1)==tt,jt=et.listSelections(),Rt=ht%2==0,ae,he=0;he<jt.length;he++){var pe=jt[he],Te=pe.head,ne,Ke=et.getRange(Te,se(Te.line,Te.ch+1));if(Rt&&!pe.empty())ne="surround";else if((Mt||!Rt)&&Ke==tt)Mt&&wt(et,Te)?ne="both":yt.indexOf(tt)>=0&&et.getRange(Te,se(Te.line,Te.ch+3))==tt+tt+tt?ne="skipThree":ne="skip";else if(Mt&&Te.ch>1&&yt.indexOf(tt)>=0&&et.getRange(se(Te.line,Te.ch-2),Te)==tt+tt){if(Te.ch>2&&/\bstring/.test(et.getTokenTypeAt(se(Te.line,Te.ch-2))))return Lt.Pass;ne="addFour"}else if(Mt){var Vt=Te.ch==0?" ":et.getRange(se(Te.line,Te.ch-1),Te);if(!Lt.isWordChar(Ke)&&Vt!=tt&&!Lt.isWordChar(Vt))ne="both";else return Lt.Pass}else if(Rt&&(Ke.length===0||/\s/.test(Ke)||dt.indexOf(Ke)>-1))ne="both";else return Lt.Pass;if(!ae)ae=ne;else if(ae!=ne)return Lt.Pass}var $e=ht%2?rt.charAt(ht-1):tt,Ge=ht%2?tt:rt.charAt(ht+1);et.operation(function(){if(ae=="skip")et.execCommand("goCharRight");else if(ae=="skipThree")for(var Oe=0;Oe<3;Oe++)et.execCommand("goCharRight");else if(ae=="surround"){for(var Ve=et.getSelections(),Oe=0;Oe<Ve.length;Oe++)Ve[Oe]=$e+Ve[Oe]+Ge;et.replaceSelections(Ve,"around"),Ve=et.listSelections().slice();for(var Oe=0;Oe<Ve.length;Oe++)Ve[Oe]=Wt(Ve[Oe]);et.setSelections(Ve)}else ae=="both"?(et.replaceSelection($e+Ge,null),et.triggerElectric($e+Ge),et.execCommand("goCharLeft")):ae=="addFour"&&(et.replaceSelection($e+$e+$e+$e,"before"),et.execCommand("goCharRight"))})}function Jt(et,tt){var lt=et.getRange(se(tt.line,tt.ch-1),se(tt.line,tt.ch+1));return lt.length==2?lt:null}function wt(et,tt){var lt=et.getTokenAt(se(tt.line,tt.ch+1));return/\bstring/.test(lt.type)&&lt.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(di,Pn,bt){(function(Lt){Lt(bt(89780),bt(32855))})(function(Lt){Lt.defineOption("autoCloseTags",!1,function(ee,Ct,Wt){if(Wt!=Lt.Init&&Wt&&ee.removeKeyMap("autoCloseTags"),!!Ct){var Gt={name:"autoCloseTags"};(typeof Ct!="object"||Ct.whenClosing!==!1)&&(Gt["'/'"]=function(Jt){return le(Jt)}),(typeof Ct!="object"||Ct.whenOpening!==!1)&&(Gt["'>'"]=function(Jt){return De(Jt)}),ee.addKeyMap(Gt)}});var ge=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],se=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function De(ee){if(ee.getOption("disableInput"))return Lt.Pass;for(var Ct=ee.listSelections(),Wt=[],Gt=ee.getOption("autoCloseTags"),Jt=0;Jt<Ct.length;Jt++){if(!Ct[Jt].empty())return Lt.Pass;var wt=Ct[Jt].head,et=ee.getTokenAt(wt),tt=Lt.innerMode(ee.getMode(),et.state),lt=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(lt),ht=rt&&rt.name;if(!ht)return Lt.Pass;var dt=tt.mode.configuration=="html",yt=typeof Gt=="object"&&Gt.dontCloseTags||dt&&ge,Mt=typeof Gt=="object"&&Gt.indentTags||dt&&se;et.end>wt.ch&&(ht=ht.slice(0,ht.length-et.end+wt.ch));var jt=ht.toLowerCase();if(!ht||et.type=="string"&&(et.end!=wt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&rt.close||et.string.indexOf("/")==wt.ch-et.start-1||yt&&Et(yt,jt)>-1||Tt(ee,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(lt)||[],ht,wt,!0))return Lt.Pass;var Rt=typeof Gt=="object"&&Gt.emptyTags;if(Rt&&Et(Rt,ht)>-1){Wt[Jt]={text:"/>",newPos:Lt.Pos(wt.line,wt.ch+2)};continue}var ae=Mt&&Et(Mt,jt)>-1;Wt[Jt]={indent:ae,text:">"+(ae?`
`:"")+"</"+ht+">",newPos:ae?Lt.Pos(wt.line+1,0):Lt.Pos(wt.line,wt.ch+1)}}for(var he=typeof Gt=="object"&&Gt.dontIndentOnAutoClose,Jt=Ct.length-1;Jt>=0;Jt--){var pe=Wt[Jt];ee.replaceRange(pe.text,Ct[Jt].head,Ct[Jt].anchor,"+insert");var Te=ee.listSelections().slice(0);Te[Jt]={head:pe.newPos,anchor:pe.newPos},ee.setSelections(Te),!he&&pe.indent&&(ee.indentLine(pe.newPos.line,null,!0),ee.indentLine(pe.newPos.line+1,null,!0))}}function re(ee,Ct){for(var Wt=ee.listSelections(),Gt=[],Jt=Ct?"/":"</",wt=ee.getOption("autoCloseTags"),et=typeof wt=="object"&&wt.dontIndentOnSlash,tt=0;tt<Wt.length;tt++){if(!Wt[tt].empty())return Lt.Pass;var lt=Wt[tt].head,rt=ee.getTokenAt(lt),ht=Lt.innerMode(ee.getMode(),rt.state),dt=ht.state;if(Ct&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=lt.ch-1))return Lt.Pass;var yt,Mt=ht.mode.name!="xml"&&ee.getMode().name=="htmlmixed";if(Mt&&ht.mode.name=="javascript")yt=Jt+"script";else if(Mt&&ht.mode.name=="css")yt=Jt+"style";else{var jt=ht.mode.xmlCurrentContext&&ht.mode.xmlCurrentContext(dt);if(!jt||jt.length&&Tt(ee,jt,jt[jt.length-1],lt))return Lt.Pass;yt=Jt+jt[jt.length-1]}ee.getLine(lt.line).charAt(rt.end)!=">"&&(yt+=">"),Gt[tt]=yt}if(ee.replaceSelections(Gt),Wt=ee.listSelections(),!et)for(var tt=0;tt<Wt.length;tt++)(tt==Wt.length-1||Wt[tt].head.line<Wt[tt+1].head.line)&&ee.indentLine(Wt[tt].head.line)}function le(ee){return ee.getOption("disableInput")?Lt.Pass:re(ee,!0)}Lt.commands.closeTag=function(ee){return re(ee)};function Et(ee,Ct){if(ee.indexOf)return ee.indexOf(Ct);for(var Wt=0,Gt=ee.length;Wt<Gt;++Wt)if(ee[Wt]==Ct)return Wt;return-1}function Tt(ee,Ct,Wt,Gt,Jt){if(!Lt.scanForClosingTag)return!1;var wt=Math.min(ee.lastLine()+1,Gt.line+500),et=Lt.scanForClosingTag(ee,Gt,null,wt);if(!et||et.tag!=Wt)return!1;for(var tt=Jt?1:0,lt=Ct.length-1;lt>=0&&Ct[lt]==Wt;lt--)++tt;Gt=et.to;for(var lt=1;lt<tt;lt++){var rt=Lt.scanForClosingTag(ee,Gt,null,wt);if(!rt||rt.tag!=Wt)return!1;Gt=rt.to}return!0}})},32855:function(di,Pn,bt){(function(Lt){Lt(bt(89780))})(function(Lt){"use strict";var ge=Lt.Pos;function se(lt,rt){return lt.line-rt.line||lt.ch-rt.ch}var De="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",re=De+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",le=new RegExp("<(/?)(["+De+"]["+re+"]*)","g");function Et(lt,rt,ht,dt){this.line=rt,this.ch=ht,this.cm=lt,this.text=lt.getLine(rt),this.min=dt?Math.max(dt.from,lt.firstLine()):lt.firstLine(),this.max=dt?Math.min(dt.to-1,lt.lastLine()):lt.lastLine()}function Tt(lt,rt){var ht=lt.cm.getTokenTypeAt(ge(lt.line,rt));return ht&&/\btag\b/.test(ht)}function ee(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function Ct(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function Wt(lt){for(;;){var rt=lt.text.indexOf(">",lt.ch);if(rt==-1){if(ee(lt))continue;return}if(!Tt(lt,rt+1)){lt.ch=rt+1;continue}var ht=lt.text.lastIndexOf("/",rt),dt=ht>-1&&!/\S/.test(lt.text.slice(ht+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function Gt(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(rt==-1){if(Ct(lt))continue;return}if(!Tt(lt,rt+1)){lt.ch=rt;continue}le.lastIndex=rt,lt.ch=rt;var ht=le.exec(lt.text);if(ht&&ht.index==rt)return ht}}function Jt(lt){for(;;){le.lastIndex=lt.ch;var rt=le.exec(lt.text);if(!rt){if(ee(lt))continue;return}if(!Tt(lt,rt.index+1)){lt.ch=rt.index+1;continue}return lt.ch=rt.index+rt[0].length,rt}}function wt(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf(">",lt.ch-1):-1;if(rt==-1){if(Ct(lt))continue;return}if(!Tt(lt,rt+1)){lt.ch=rt;continue}var ht=lt.text.lastIndexOf("/",rt),dt=ht>-1&&!/\S/.test(lt.text.slice(ht+1,rt));return lt.ch=rt+1,dt?"selfClose":"regular"}}function et(lt,rt){for(var ht=[];;){var dt=Jt(lt),yt,Mt=lt.line,jt=lt.ch-(dt?dt[0].length:0);if(!dt||!(yt=Wt(lt)))return;if(yt!="selfClose")if(dt[1]){for(var Rt=ht.length-1;Rt>=0;--Rt)if(ht[Rt]==dt[2]){ht.length=Rt;break}if(Rt<0&&(!rt||rt==dt[2]))return{tag:dt[2],from:ge(Mt,jt),to:ge(lt.line,lt.ch)}}else ht.push(dt[2])}}function tt(lt,rt){for(var ht=[];;){var dt=wt(lt);if(!dt)return;if(dt=="selfClose"){Gt(lt);continue}var yt=lt.line,Mt=lt.ch,jt=Gt(lt);if(!jt)return;if(jt[1])ht.push(jt[2]);else{for(var Rt=ht.length-1;Rt>=0;--Rt)if(ht[Rt]==jt[2]){ht.length=Rt;break}if(Rt<0&&(!rt||rt==jt[2]))return{tag:jt[2],from:ge(lt.line,lt.ch),to:ge(yt,Mt)}}}}Lt.registerHelper("fold","xml",function(lt,rt){for(var ht=new Et(lt,rt.line,0);;){var dt=Jt(ht);if(!dt||ht.line!=rt.line)return;var yt=Wt(ht);if(!yt)return;if(!dt[1]&&yt!="selfClose"){var Mt=ge(ht.line,ht.ch),jt=et(ht,dt[2]);return jt&&se(jt.from,Mt)>0?{from:Mt,to:jt.from}:null}}}),Lt.findMatchingTag=function(lt,rt,ht){var dt=new Et(lt,rt.line,rt.ch,ht);if(!(dt.text.indexOf(">")==-1&&dt.text.indexOf("<")==-1)){var yt=Wt(dt),Mt=yt&&ge(dt.line,dt.ch),jt=yt&&Gt(dt);if(!(!yt||!jt||se(dt,rt)>0)){var Rt={from:ge(dt.line,dt.ch),to:Mt,tag:jt[2]};return yt=="selfClose"?{open:Rt,close:null,at:"open"}:jt[1]?{open:tt(dt,jt[2]),close:Rt,at:"close"}:(dt=new Et(lt,Mt.line,Mt.ch,ht),{open:Rt,close:et(dt,jt[2]),at:"open"})}}},Lt.findEnclosingTag=function(lt,rt,ht,dt){for(var yt=new Et(lt,rt.line,rt.ch,ht);;){var Mt=tt(yt,dt);if(!Mt)break;var jt=new Et(lt,rt.line,rt.ch,ht),Rt=et(jt,Mt.tag);if(Rt)return{open:Mt,close:Rt}}},Lt.scanForClosingTag=function(lt,rt,ht,dt){var yt=new Et(lt,rt.line,rt.ch,dt?{from:0,to:dt}:null);return et(yt,ht)}})},89780:function(di){(function(Pn,bt){di.exports=bt()})(this,function(){"use strict";var Pn=navigator.userAgent,bt=navigator.platform,Lt=/gecko\/\d/i.test(Pn),ge=/MSIE \d/.test(Pn),se=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pn),De=/Edge\/(\d+)/.exec(Pn),re=ge||se||De,le=re&&(ge?document.documentMode||6:+(De||se)[1]),Et=!De&&/WebKit\//.test(Pn),Tt=Et&&/Qt\/\d+\.\d+/.test(Pn),ee=!De&&/Chrome\//.test(Pn),Ct=/Opera\//.test(Pn),Wt=/Apple Computer/.test(navigator.vendor),Gt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Pn),Jt=/PhantomJS/.test(Pn),wt=!De&&/AppleWebKit/.test(Pn)&&/Mobile\/\w+/.test(Pn),et=/Android/.test(Pn),tt=wt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Pn),lt=wt||/Mac/.test(bt),rt=/\bCrOS\b/.test(Pn),ht=/win/i.test(bt),dt=Ct&&Pn.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Ct=!1,Et=!0);var yt=lt&&(Tt||Ct&&(dt==null||dt<12.11)),Mt=Lt||re&&le>=9;function jt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Rt=function(it,st){var ft=it.className,At=jt(st).exec(ft);if(At){var xt=ft.slice(At.index+At[0].length);it.className=ft.slice(0,At.index)+(xt?At[1]+xt:"")}};function ae(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function he(it,st){return ae(it).appendChild(st)}function pe(it,st,ft,At){var xt=document.createElement(it);if(ft&&(xt.className=ft),At&&(xt.style.cssText=At),typeof st=="string")xt.appendChild(document.createTextNode(st));else if(st)for(var te=0;te<st.length;++te)xt.appendChild(st[te]);return xt}function Te(it,st,ft,At){var xt=pe(it,st,ft,At);return xt.setAttribute("role","presentation"),xt}var ne;document.createRange?ne=function(it,st,ft,At){var xt=document.createRange();return xt.setEnd(At||it,ft),xt.setStart(it,st),xt}:ne=function(it,st,ft){var At=document.body.createTextRange();try{At.moveToElementText(it.parentNode)}catch(xt){return At}return At.collapse(!0),At.moveEnd("character",ft),At.moveStart("character",st),At};function Ke(it,st){if(st.nodeType==3&&(st=st.parentNode),it.contains)return it.contains(st);do if(st.nodeType==11&&(st=st.host),st==it)return!0;while(st=st.parentNode)}function Vt(){var it;try{it=document.activeElement}catch(st){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function $e(it,st){var ft=it.className;jt(st).test(ft)||(it.className+=(ft?" ":"")+st)}function Ge(it,st){for(var ft=it.split(" "),At=0;At<ft.length;At++)ft[At]&&!jt(ft[At]).test(st)&&(st+=" "+ft[At]);return st}var Oe=function(it){it.select()};wt?Oe=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:re&&(Oe=function(it){try{it.select()}catch(st){}});function Ve(it){var st=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,st)}}function _e(it,st,ft){st||(st={});for(var At in it)it.hasOwnProperty(At)&&(ft!==!1||!st.hasOwnProperty(At))&&(st[At]=it[At]);return st}function xe(it,st,ft,At,xt){st==null&&(st=it.search(/[^\s\u00a0]/),st==-1&&(st=it.length));for(var te=At||0,Pe=xt||0;;){var He=it.indexOf(" ",te);if(He<0||He>=st)return Pe+(st-te);Pe+=He-te,Pe+=ft-Pe%ft,te=He+1}}var ie=function(){this.id=null,this.f=null,this.time=0,this.handler=Ve(this.onTimeout,this)};ie.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},ie.prototype.set=function(it,st){this.f=st;var ft=+new Date+it;(!this.id||ft<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ft)};function be(it,st){for(var ft=0;ft<it.length;++ft)if(it[ft]==st)return ft;return-1}var Fn=50,Mn={toString:function(){return"CodeMirror.Pass"}},Xe={scroll:!1},In={origin:"*mouse"},Xn={origin:"+move"};function pi(it,st,ft){for(var At=0,xt=0;;){var te=it.indexOf(" ",At);te==-1&&(te=it.length);var Pe=te-At;if(te==it.length||xt+Pe>=st)return At+Math.min(Pe,st-xt);if(xt+=te-At,xt+=ft-xt%ft,At=te+1,xt>=st)return At}}var $n=[""];function bi(it){for(;$n.length<=it;)$n.push(sn($n)+" ");return $n[it]}function sn(it){return it[it.length-1]}function Li(it,st){for(var ft=[],At=0;At<it.length;At++)ft[At]=st(it[At],At);return ft}function ji(it,st,ft){for(var At=0,xt=ft(st);At<it.length&&ft(it[At])<=xt;)At++;it.splice(At,0,st)}function ve(){}function hn(it,st){var ft;return Object.create?ft=Object.create(it):(ve.prototype=it,ft=new ve),st&&_e(st,ft),ft}var Ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ot(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Ae.test(it))}function Ft(it,st){return st?st.source.indexOf("\\w")>-1&&Ot(it)?!0:st.test(it):Ot(it)}function Kt(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var Ee=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function je(it){return it.charCodeAt(0)>=768&&Ee.test(it)}function ce(it,st,ft){for(;(ft<0?st>0:st<it.length)&&je(it.charAt(st));)st+=ft;return st}function Be(it,st,ft){for(var At=st>ft?-1:1;;){if(st==ft)return st;var xt=(st+ft)/2,te=At<0?Math.ceil(xt):Math.floor(xt);if(te==st)return it(te)?st:ft;it(te)?ft=te:st=te+At}}function $t(it,st,ft,At){if(!it)return At(st,ft,"ltr",0);for(var xt=!1,te=0;te<it.length;++te){var Pe=it[te];(Pe.from<ft&&Pe.to>st||st==ft&&Pe.to==st)&&(At(Math.max(Pe.from,st),Math.min(Pe.to,ft),Pe.level==1?"rtl":"ltr",te),xt=!0)}xt||At(st,ft,"ltr")}var Pt=null;function mt(it,st,ft){var At;Pt=null;for(var xt=0;xt<it.length;++xt){var te=it[xt];if(te.from<st&&te.to>st)return xt;te.to==st&&(te.from!=te.to&&ft=="before"?At=xt:Pt=xt),te.from==st&&(te.from!=te.to&&ft!="before"?At=xt:Pt=xt)}return At!=null?At:Pt}var Zt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ft(un){return un<=247?it.charAt(un):1424<=un&&un<=1524?"R":1536<=un&&un<=1785?st.charAt(un-1536):1774<=un&&un<=2220?"r":8192<=un&&un<=8203?"w":un==8204?"b":"L"}var At=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xt=/[stwN]/,te=/[LRr]/,Pe=/[Lb1n]/,He=/[1n]/;function Re(un,si,pn){this.level=un,this.from=si,this.to=pn}return function(un,si){var pn=si=="ltr"?"L":"R";if(un.length==0||si=="ltr"&&!At.test(un))return!1;for(var Oi=un.length,Ei=[],Sr=0;Sr<Oi;++Sr)Ei.push(ft(un.charCodeAt(Sr)));for(var Dr=0,eo=pn;Dr<Oi;++Dr){var vo=Ei[Dr];vo=="m"?Ei[Dr]=eo:eo=vo}for(var Zo=0,No=pn;Zo<Oi;++Zo){var as=Ei[Zo];as=="1"&&No=="r"?Ei[Zo]="n":te.test(as)&&(No=as,as=="r"&&(Ei[Zo]="R"))}for(var ks=1,Io=Ei[0];ks<Oi-1;++ks){var ea=Ei[ks];ea=="+"&&Io=="1"&&Ei[ks+1]=="1"?Ei[ks]="1":ea==","&&Io==Ei[ks+1]&&(Io=="1"||Io=="n")&&(Ei[ks]=Io),Io=ea}for(var Bl=0;Bl<Oi;++Bl){var ku=Ei[Bl];if(ku==",")Ei[Bl]="N";else if(ku=="%"){var cl=void 0;for(cl=Bl+1;cl<Oi&&Ei[cl]=="%";++cl);for(var yu=Bl&&Ei[Bl-1]=="!"||cl<Oi&&Ei[cl]=="1"?"1":"N",Na=Bl;Na<cl;++Na)Ei[Na]=yu;Bl=cl-1}}for(var ya=0,ml=pn;ya<Oi;++ya){var vl=Ei[ya];ml=="L"&&vl=="1"?Ei[ya]="L":te.test(vl)&&(ml=vl)}for(var Co=0;Co<Oi;++Co)if(xt.test(Ei[Co])){var wa=void 0;for(wa=Co+1;wa<Oi&&xt.test(Ei[wa]);++wa);for(var Il=(Co?Ei[Co-1]:pn)=="L",kl=(wa<Oi?Ei[wa]:pn)=="L",uh=Il==kl?Il?"L":"R":pn,Da=Co;Da<wa;++Da)Ei[Da]=uh;Co=wa-1}for(var Hs=[],wu,du=0;du<Oi;)if(Pe.test(Ei[du])){var ad=du;for(++du;du<Oi&&Pe.test(Ei[du]);++du);Hs.push(new Re(0,ad,du))}else{var uc=du,hh=Hs.length,Sh=si=="rtl"?1:0;for(++du;du<Oi&&Ei[du]!="L";++du);for(var Tl=uc;Tl<du;)if(He.test(Ei[Tl])){uc<Tl&&(Hs.splice(hh,0,new Re(1,uc,Tl)),hh+=Sh);var eh=Tl;for(++Tl;Tl<du&&He.test(Ei[Tl]);++Tl);Hs.splice(hh,0,new Re(2,eh,Tl)),hh+=Sh,uc=Tl}else++Tl;uc<du&&Hs.splice(hh,0,new Re(1,uc,du))}return si=="ltr"&&(Hs[0].level==1&&(wu=un.match(/^\s+/))&&(Hs[0].from=wu[0].length,Hs.unshift(new Re(0,0,wu[0].length))),sn(Hs).level==1&&(wu=un.match(/\s+$/))&&(sn(Hs).to-=wu[0].length,Hs.push(new Re(0,Oi-wu[0].length,Oi)))),si=="rtl"?Hs.reverse():Hs}}();function Se(it,st){var ft=it.order;return ft==null&&(ft=it.order=Zt(it.text,st)),ft}var Dt=[],Ie=function(it,st,ft){if(it.addEventListener)it.addEventListener(st,ft,!1);else if(it.attachEvent)it.attachEvent("on"+st,ft);else{var At=it._handlers||(it._handlers={});At[st]=(At[st]||Dt).concat(ft)}};function nn(it,st){return it._handlers&&it._handlers[st]||Dt}function zn(it,st,ft){if(it.removeEventListener)it.removeEventListener(st,ft,!1);else if(it.detachEvent)it.detachEvent("on"+st,ft);else{var At=it._handlers,xt=At&&At[st];if(xt){var te=be(xt,ft);te>-1&&(At[st]=xt.slice(0,te).concat(xt.slice(te+1)))}}}function xn(it,st){var ft=nn(it,st);if(ft.length)for(var At=Array.prototype.slice.call(arguments,2),xt=0;xt<ft.length;++xt)ft[xt].apply(null,At)}function li(it,st,ft){return typeof st=="string"&&(st={type:st,preventDefault:function(){this.defaultPrevented=!0}}),xn(it,ft||st.type,it,st),Vr(st)||st.codemirrorIgnore}function Qi(it){var st=it._handlers&&it._handlers.cursorActivity;if(st)for(var ft=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),At=0;At<st.length;++At)be(ft,st[At])==-1&&ft.push(st[At])}function Wi(it,st){return nn(it,st).length>0}function pr(it){it.prototype.on=function(st,ft){Ie(this,st,ft)},it.prototype.off=function(st,ft){zn(this,st,ft)}}function xr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function qr(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Vr(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Jr(it){xr(it),qr(it)}function Ir(it){return it.target||it.srcElement}function Xr(it){var st=it.which;return st==null&&(it.button&1?st=1:it.button&2?st=3:it.button&4&&(st=2)),lt&&it.ctrlKey&&st==1&&(st=3),st}var to=function(){if(re&&le<9)return!1;var it=pe("div");return"draggable"in it||"dragDrop"in it}(),ho;function cs(it){if(ho==null){var st=pe("span","\u200B");he(it,pe("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(ho=st.offsetWidth<=1&&st.offsetHeight>2&&!(re&&le<8))}var ft=ho?pe("span","\u200B"):pe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ft.setAttribute("cm-text",""),ft}var no;function Is(it){if(no!=null)return no;var st=he(it,document.createTextNode("A\u062EA")),ft=ne(st,0,1).getBoundingClientRect(),At=ne(st,1,2).getBoundingClientRect();return ae(it),!ft||ft.left==ft.right?!1:no=At.right-ft.right<3}var So=`
b`.split(/\n/).length!=3?function(it){for(var st=0,ft=[],At=it.length;st<=At;){var xt=it.indexOf(`
`,st);xt==-1&&(xt=it.length);var te=it.slice(st,it.charAt(xt-1)=="\r"?xt-1:xt),Pe=te.indexOf("\r");Pe!=-1?(ft.push(te.slice(0,Pe)),st+=Pe+1):(ft.push(te),st=xt+1)}return ft}:function(it){return it.split(/\r\n?|\n/)},Yt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(st){return!1}}:function(it){var st;try{st=it.ownerDocument.selection.createRange()}catch(ft){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},ai=function(){var it=pe("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Jo=null;function sa(it){if(Jo!=null)return Jo;var st=he(it,pe("span","x")),ft=st.getBoundingClientRect(),At=ne(st,0,1).getBoundingClientRect();return Jo=Math.abs(ft.left-At.left)>1}var xa={},va={};function Zs(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),xa[it]=st}function Qr(it,st){va[it]=st}function Vn(it){if(typeof it=="string"&&va.hasOwnProperty(it))it=va[it];else if(it&&typeof it.name=="string"&&va.hasOwnProperty(it.name)){var st=va[it.name];typeof st=="string"&&(st={name:st}),it=hn(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Vn("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Vn("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Qn(it,st){st=Vn(st);var ft=xa[st.name];if(!ft)return Qn(it,"text/plain");var At=ft(it,st);if(kn.hasOwnProperty(st.name)){var xt=kn[st.name];for(var te in xt)xt.hasOwnProperty(te)&&(At.hasOwnProperty(te)&&(At["_"+te]=At[te]),At[te]=xt[te])}if(At.name=st.name,st.helperType&&(At.helperType=st.helperType),st.modeProps)for(var Pe in st.modeProps)At[Pe]=st.modeProps[Pe];return At}var kn={};function rn(it,st){var ft=kn.hasOwnProperty(it)?kn[it]:kn[it]={};_e(st,ft)}function hi(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var ft={};for(var At in st){var xt=st[At];xt instanceof Array&&(xt=xt.concat([])),ft[At]=xt}return ft}function Ci(it,st){for(var ft;it.innerMode&&(ft=it.innerMode(st),!(!ft||ft.mode==it));)st=ft.state,it=ft.mode;return ft||{mode:it,state:st}}function bn(it,st,ft){return it.startState?it.startState(st,ft):!0}var Ne=function(it,st,ft){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ft};Ne.prototype.eol=function(){return this.pos>=this.string.length},Ne.prototype.sol=function(){return this.pos==this.lineStart},Ne.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ne.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ne.prototype.eat=function(it){var st=this.string.charAt(this.pos),ft;if(typeof it=="string"?ft=st==it:ft=st&&(it.test?it.test(st):it(st)),ft)return++this.pos,st},Ne.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Ne.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ne.prototype.skipToEnd=function(){this.pos=this.string.length},Ne.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ne.prototype.backUp=function(it){this.pos-=it},Ne.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},Ne.prototype.indentation=function(){return xe(this.string,null,this.tabSize)-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},Ne.prototype.match=function(it,st,ft){if(typeof it=="string"){var At=function(Pe){return ft?Pe.toLowerCase():Pe},xt=this.string.substr(this.pos,it.length);if(At(xt)==At(it))return st!==!1&&(this.pos+=it.length),!0}else{var te=this.string.slice(this.pos).match(it);return te&&te.index>0?null:(te&&st!==!1&&(this.pos+=te[0].length),te)}},Ne.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ne.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ne.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ne.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function Bn(it,st){if(st-=it.first,st<0||st>=it.size)throw new Error("There is no line "+(st+it.first)+" in the document.");for(var ft=it;!ft.lines;)for(var At=0;;++At){var xt=ft.children[At],te=xt.chunkSize();if(st<te){ft=xt;break}st-=te}return ft.lines[st]}function _n(it,st,ft){var At=[],xt=st.line;return it.iter(st.line,ft.line+1,function(te){var Pe=te.text;xt==ft.line&&(Pe=Pe.slice(0,ft.ch)),xt==st.line&&(Pe=Pe.slice(st.ch)),At.push(Pe),++xt}),At}function Ii(it,st,ft){var At=[];return it.iter(st,ft,function(xt){At.push(xt.text)}),At}function ni(it,st){var ft=st-it.height;if(ft)for(var At=it;At;At=At.parent)At.height+=ft}function mn(it){if(it.parent==null)return null;for(var st=it.parent,ft=be(st.lines,it),At=st.parent;At;st=At,At=At.parent)for(var xt=0;At.children[xt]!=st;++xt)ft+=At.children[xt].chunkSize();return ft+st.first}function Ai(it,st){var ft=it.first;t:do{for(var At=0;At<it.children.length;++At){var xt=it.children[At],te=xt.height;if(st<te){it=xt;continue t}st-=te,ft+=xt.chunkSize()}return ft}while(!it.lines);for(var Pe=0;Pe<it.lines.length;++Pe){var He=it.lines[Pe],Re=He.height;if(st<Re)break;st-=Re}return ft+Pe}function Mi(it,st){return st>=it.first&&st<it.first+it.size}function er(it,st){return String(it.lineNumberFormatter(st+it.firstLineNumber))}function On(it,st,ft){if(ft===void 0&&(ft=null),!(this instanceof On))return new On(it,st,ft);this.line=it,this.ch=st,this.sticky=ft}function Si(it,st){return it.line-st.line||it.ch-st.ch}function Pr(it,st){return it.sticky==st.sticky&&Si(it,st)==0}function rr(it){return On(it.line,it.ch)}function Kr(it,st){return Si(it,st)<0?st:it}function sr(it,st){return Si(it,st)<0?it:st}function Br(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function dr(it,st){if(st.line<it.first)return On(it.first,0);var ft=it.first+it.size-1;return st.line>ft?On(ft,Bn(it,ft).text.length):Er(st,Bn(it,st.line).text.length)}function Er(it,st){var ft=it.ch;return ft==null||ft>st?On(it.line,st):ft<0?On(it.line,0):it}function ao(it,st){for(var ft=[],At=0;At<st.length;At++)ft[At]=dr(it,st[At]);return ft}var Xi=function(it,st){this.state=it,this.lookAhead=st},yr=function(it,st,ft,At){this.state=st,this.doc=it,this.line=ft,this.maxLookAhead=At||0,this.baseTokens=null,this.baseTokenPos=1};yr.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},yr.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var st=this.baseTokens[this.baseTokenPos+1];return{type:st&&st.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},yr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yr.fromSaved=function(it,st,ft){return st instanceof Xi?new yr(it,hi(it.mode,st.state),ft,st.lookAhead):new yr(it,hi(it.mode,st),ft)},yr.prototype.save=function(it){var st=it!==!1?hi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xi(st,this.maxLookAhead):st};function Lo(it,st,ft,At){var xt=[it.state.modeGen],te={};yi(it,st.text,it.doc.mode,ft,function(un,si){return xt.push(un,si)},te,At);for(var Pe=ft.state,He=function(un){ft.baseTokens=xt;var si=it.state.overlays[un],pn=1,Oi=0;ft.state=!0,yi(it,st.text,si.mode,ft,function(Ei,Sr){for(var Dr=pn;Oi<Ei;){var eo=xt[pn];eo>Ei&&xt.splice(pn,1,Ei,xt[pn+1],eo),pn+=2,Oi=Math.min(Ei,eo)}if(Sr)if(si.opaque)xt.splice(Dr,pn-Dr,Ei,"overlay "+Sr),pn=Dr+2;else for(;Dr<pn;Dr+=2){var vo=xt[Dr+1];xt[Dr+1]=(vo?vo+" ":"")+"overlay "+Sr}},te),ft.state=Pe,ft.baseTokens=null,ft.baseTokenPos=1},Re=0;Re<it.state.overlays.length;++Re)He(Re);return{styles:xt,classes:te.bgClass||te.textClass?te:null}}function xs(it,st,ft){if(!st.styles||st.styles[0]!=it.state.modeGen){var At=Uo(it,mn(st)),xt=st.text.length>it.options.maxHighlightLength&&hi(it.doc.mode,At.state),te=Lo(it,st,At);xt&&(At.state=xt),st.stateAfter=At.save(!xt),st.styles=te.styles,te.classes?st.styleClasses=te.classes:st.styleClasses&&(st.styleClasses=null),ft===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function Uo(it,st,ft){var At=it.doc,xt=it.display;if(!At.mode.startState)return new yr(At,!0,st);var te=Bo(it,st,ft),Pe=te>At.first&&Bn(At,te-1).stateAfter,He=Pe?yr.fromSaved(At,Pe,te):new yr(At,bn(At.mode),te);return At.iter(te,st,function(Re){jn(it,Re.text,He);var un=He.line;Re.stateAfter=un==st-1||un%5==0||un>=xt.viewFrom&&un<xt.viewTo?He.save():null,He.nextLine()}),ft&&(At.modeFrontier=He.line),He}function jn(it,st,ft,At){var xt=it.doc.mode,te=new Ne(st,it.options.tabSize,ft);for(te.start=te.pos=At||0,st==""&&Tr(xt,ft.state);!te.eol();)so(xt,te,ft.state),te.start=te.pos}function Tr(it,st){if(it.blankLine)return it.blankLine(st);if(it.innerMode){var ft=Ci(it,st);if(ft.mode.blankLine)return ft.mode.blankLine(ft.state)}}function so(it,st,ft,At){for(var xt=0;xt<10;xt++){At&&(At[0]=Ci(it,ft).mode);var te=it.token(st,ft);if(st.pos>st.start)return te}throw new Error("Mode "+it.name+" failed to advance stream.")}var _r=function(it,st,ft){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=ft};function ns(it,st,ft,At){var xt=it.doc,te=xt.mode,Pe;st=dr(xt,st);var He=Bn(xt,st.line),Re=Uo(it,st.line,ft),un=new Ne(He.text,it.options.tabSize,Re),si;for(At&&(si=[]);(At||un.pos<st.ch)&&!un.eol();)un.start=un.pos,Pe=so(te,un,Re.state),At&&si.push(new _r(un,Pe,hi(xt.mode,Re.state)));return At?si:new _r(un,Pe,Re.state)}function Oo(it,st){if(it)for(;;){var ft=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ft)break;it=it.slice(0,ft.index)+it.slice(ft.index+ft[0].length);var At=ft[1]?"bgClass":"textClass";st[At]==null?st[At]=ft[2]:new RegExp("(?:^|\\s)"+ft[2]+"(?:$|\\s)").test(st[At])||(st[At]+=" "+ft[2])}return it}function yi(it,st,ft,At,xt,te,Pe){var He=ft.flattenSpans;He==null&&(He=it.options.flattenSpans);var Re=0,un=null,si=new Ne(st,it.options.tabSize,At),pn,Oi=it.options.addModeClass&&[null];for(st==""&&Oo(Tr(ft,At.state),te);!si.eol();){if(si.pos>it.options.maxHighlightLength?(He=!1,Pe&&jn(it,st,At,si.pos),si.pos=st.length,pn=null):pn=Oo(so(ft,si,At.state,Oi),te),Oi){var Ei=Oi[0].name;Ei&&(pn="m-"+(pn?Ei+" "+pn:Ei))}if(!He||un!=pn){for(;Re<si.start;)Re=Math.min(si.start,Re+5e3),xt(Re,un);un=pn}si.start=si.pos}for(;Re<si.pos;){var Sr=Math.min(si.pos,Re+5e3);xt(Sr,un),Re=Sr}}function Bo(it,st,ft){for(var At,xt,te=it.doc,Pe=ft?-1:st-(it.doc.mode.innerMode?1e3:100),He=st;He>Pe;--He){if(He<=te.first)return te.first;var Re=Bn(te,He-1),un=Re.stateAfter;if(un&&(!ft||He+(un instanceof Xi?un.lookAhead:0)<=te.modeFrontier))return He;var si=xe(Re.text,null,it.options.tabSize);(xt==null||At>si)&&(xt=He-1,At=si)}return xt}function Hr(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontier<st-10)){for(var ft=it.first,At=st-1;At>ft;At--){var xt=Bn(it,At).stateAfter;if(xt&&(!(xt instanceof Xi)||At+xt.lookAhead<st)){ft=At+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ft)}}var kr=!1,Bi=!1;function Po(){kr=!0}function Pi(){Bi=!0}function Xo(it,st,ft){this.marker=it,this.from=st,this.to=ft}function ha(it,st){if(it)for(var ft=0;ft<it.length;++ft){var At=it[ft];if(At.marker==st)return At}}function fs(it,st){for(var ft,At=0;At<it.length;++At)it[At]!=st&&(ft||(ft=[])).push(it[At]);return ft}function ba(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function Xs(it,st,ft){var At;if(it)for(var xt=0;xt<it.length;++xt){var te=it[xt],Pe=te.marker,He=te.from==null||(Pe.inclusiveLeft?te.from<=st:te.from<st);if(He||te.from==st&&Pe.type=="bookmark"&&(!ft||!te.marker.insertLeft)){var Re=te.to==null||(Pe.inclusiveRight?te.to>=st:te.to>st);(At||(At=[])).push(new Xo(Pe,te.from,Re?null:te.to))}}return At}function bo(it,st,ft){var At;if(it)for(var xt=0;xt<it.length;++xt){var te=it[xt],Pe=te.marker,He=te.to==null||(Pe.inclusiveRight?te.to>=st:te.to>st);if(He||te.from==st&&Pe.type=="bookmark"&&(!ft||te.marker.insertLeft)){var Re=te.from==null||(Pe.inclusiveLeft?te.from<=st:te.from<st);(At||(At=[])).push(new Xo(Pe,Re?null:te.from-st,te.to==null?null:te.to-st))}}return At}function jo(it,st){if(st.full)return null;var ft=Mi(it,st.from.line)&&Bn(it,st.from.line).markedSpans,At=Mi(it,st.to.line)&&Bn(it,st.to.line).markedSpans;if(!ft&&!At)return null;var xt=st.from.ch,te=st.to.ch,Pe=Si(st.from,st.to)==0,He=Xs(ft,xt,Pe),Re=bo(At,te,Pe),un=st.text.length==1,si=sn(st.text).length+(un?xt:0);if(He)for(var pn=0;pn<He.length;++pn){var Oi=He[pn];if(Oi.to==null){var Ei=ha(Re,Oi.marker);Ei?un&&(Oi.to=Ei.to==null?null:Ei.to+si):Oi.to=xt}}if(Re)for(var Sr=0;Sr<Re.length;++Sr){var Dr=Re[Sr];if(Dr.to!=null&&(Dr.to+=si),Dr.from==null){var eo=ha(He,Dr.marker);eo||(Dr.from=si,un&&(He||(He=[])).push(Dr))}else Dr.from+=si,un&&(He||(He=[])).push(Dr)}He&&(He=ps(He)),Re&&Re!=He&&(Re=ps(Re));var vo=[He];if(!un){var Zo=st.text.length-2,No;if(Zo>0&&He)for(var as=0;as<He.length;++as)He[as].to==null&&(No||(No=[])).push(new Xo(He[as].marker,null,null));for(var ks=0;ks<Zo;++ks)vo.push(No);vo.push(Re)}return vo}function ps(it){for(var st=0;st<it.length;++st){var ft=it[st];ft.from!=null&&ft.from==ft.to&&ft.marker.clearWhenEmpty!==!1&&it.splice(st--,1)}return it.length?it:null}function us(it,st,ft){var At=null;if(it.iter(st.line,ft.line+1,function(Ei){if(Ei.markedSpans)for(var Sr=0;Sr<Ei.markedSpans.length;++Sr){var Dr=Ei.markedSpans[Sr].marker;Dr.readOnly&&(!At||be(At,Dr)==-1)&&(At||(At=[])).push(Dr)}}),!At)return null;for(var xt=[{from:st,to:ft}],te=0;te<At.length;++te)for(var Pe=At[te],He=Pe.find(0),Re=0;Re<xt.length;++Re){var un=xt[Re];if(!(Si(un.to,He.from)<0||Si(un.from,He.to)>0)){var si=[Re,1],pn=Si(un.from,He.from),Oi=Si(un.to,He.to);(pn<0||!Pe.inclusiveLeft&&!pn)&&si.push({from:un.from,to:He.from}),(Oi>0||!Pe.inclusiveRight&&!Oi)&&si.push({from:He.to,to:un.to}),xt.splice.apply(xt,si),Re+=si.length-3}}return xt}function gr(it){var st=it.markedSpans;if(st){for(var ft=0;ft<st.length;++ft)st[ft].marker.detachLine(it);it.markedSpans=null}}function Ue(it,st){if(st){for(var ft=0;ft<st.length;++ft)st[ft].marker.attachLine(it);it.markedSpans=st}}function qo(it){return it.inclusiveLeft?-1:0}function Sa(it){return it.inclusiveRight?1:0}function za(it,st){var ft=it.lines.length-st.lines.length;if(ft!=0)return ft;var At=it.find(),xt=st.find(),te=Si(At.from,xt.from)||qo(it)-qo(st);if(te)return-te;var Pe=Si(At.to,xt.to)||Sa(it)-Sa(st);return Pe||st.id-it.id}function El(it,st){var ft=Bi&&it.markedSpans,At;if(ft)for(var xt=void 0,te=0;te<ft.length;++te)xt=ft[te],xt.marker.collapsed&&(st?xt.from:xt.to)==null&&(!At||za(At,xt.marker)<0)&&(At=xt.marker);return At}function ss(it){return El(it,!0)}function Vo(it){return El(it,!1)}function bs(it,st){var ft=Bi&&it.markedSpans,At;if(ft)for(var xt=0;xt<ft.length;++xt){var te=ft[xt];te.marker.collapsed&&(te.from==null||te.from<st)&&(te.to==null||te.to>st)&&(!At||za(At,te.marker)<0)&&(At=te.marker)}return At}function ia(it,st,ft,At,xt){var te=Bn(it,st),Pe=Bi&&te.markedSpans;if(Pe)for(var He=0;He<Pe.length;++He){var Re=Pe[He];if(Re.marker.collapsed){var un=Re.marker.find(0),si=Si(un.from,ft)||qo(Re.marker)-qo(xt),pn=Si(un.to,At)||Sa(Re.marker)-Sa(xt);if(!(si>=0&&pn<=0||si<=0&&pn>=0)&&(si<=0&&(Re.marker.inclusiveRight&&xt.inclusiveLeft?Si(un.to,ft)>=0:Si(un.to,ft)>0)||si>=0&&(Re.marker.inclusiveRight&&xt.inclusiveLeft?Si(un.from,At)<=0:Si(un.from,At)<0)))return!0}}}function ts(it){for(var st;st=ss(it);)it=st.find(-1,!0).line;return it}function Ea(it){for(var st;st=Vo(it);)it=st.find(1,!0).line;return it}function Mo(it){for(var st,ft;st=Vo(it);)it=st.find(1,!0).line,(ft||(ft=[])).push(it);return ft}function io(it,st){var ft=Bn(it,st),At=ts(ft);return ft==At?st:mn(At)}function Ko(it,st){if(st>it.lastLine())return st;var ft=Bn(it,st),At;if(!Gi(it,ft))return st;for(;At=Vo(ft);)ft=At.find(1,!0).line;return mn(ft)+1}function Gi(it,st){var ft=Bi&&st.markedSpans;if(ft){for(var At=void 0,xt=0;xt<ft.length;++xt)if(At=ft[xt],!!At.marker.collapsed){if(At.from==null)return!0;if(!At.marker.widgetNode&&At.from==0&&At.marker.inclusiveLeft&&Ms(it,st,At))return!0}}}function Ms(it,st,ft){if(ft.to==null){var At=ft.marker.find(1,!0);return Ms(it,At.line,ha(At.line.markedSpans,ft.marker))}if(ft.marker.inclusiveRight&&ft.to==st.text.length)return!0;for(var xt=void 0,te=0;te<st.markedSpans.length;++te)if(xt=st.markedSpans[te],xt.marker.collapsed&&!xt.marker.widgetNode&&xt.from==ft.to&&(xt.to==null||xt.to!=ft.from)&&(xt.marker.inclusiveLeft||ft.marker.inclusiveRight)&&Ms(it,st,xt))return!0}function Gs(it){it=ts(it);for(var st=0,ft=it.parent,At=0;At<ft.lines.length;++At){var xt=ft.lines[At];if(xt==it)break;st+=xt.height}for(var te=ft.parent;te;ft=te,te=ft.parent)for(var Pe=0;Pe<te.children.length;++Pe){var He=te.children[Pe];if(He==ft)break;st+=He.height}return st}function Fa(it){if(it.height==0)return 0;for(var st=it.text.length,ft,At=it;ft=ss(At);){var xt=ft.find(0,!0);At=xt.from.line,st+=xt.from.ch-xt.to.ch}for(At=it;ft=Vo(At);){var te=ft.find(0,!0);st-=At.text.length-te.from.ch,At=te.to.line,st+=At.text.length-te.to.ch}return st}function Js(it){var st=it.display,ft=it.doc;st.maxLine=Bn(ft,ft.first),st.maxLineLength=Fa(st.maxLine),st.maxLineChanged=!0,ft.iter(function(At){var xt=Fa(At);xt>st.maxLineLength&&(st.maxLineLength=xt,st.maxLine=At)})}var Ho=function(it,st,ft){this.text=it,Ue(this,st),this.height=ft?ft(this):1};Ho.prototype.lineNo=function(){return mn(this)},pr(Ho);function Ks(it,st,ft,At){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),gr(it),Ue(it,ft);var xt=At?At(it):1;xt!=it.height&&ni(it,xt)}function yl(it){it.parent=null,gr(it)}var wl={},Dl={};function Bs(it,st){if(!it||/^\s*$/.test(it))return null;var ft=st.addModeClass?Dl:wl;return ft[it]||(ft[it]=it.replace(/\S+/g,"cm-$&"))}function ui(it,st){var ft=Te("span",null,null,Et?"padding-right: .1px":null),At={pre:Te("pre",[ft],"CodeMirror-line"),content:ft,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var xt=0;xt<=(st.rest?st.rest.length:0);xt++){var te=xt?st.rest[xt-1]:st.line,Pe=void 0;At.pos=0,At.addToken=mh,Is(it.display.measure)&&(Pe=Se(te,it.doc.direction))&&(At.addToken=su(At.addToken,Pe)),At.map=[];var He=st!=it.display.externalMeasured&&mn(te);zs(te,At,xs(it,te,He)),te.styleClasses&&(te.styleClasses.bgClass&&(At.bgClass=Ge(te.styleClasses.bgClass,At.bgClass||"")),te.styleClasses.textClass&&(At.textClass=Ge(te.styleClasses.textClass,At.textClass||""))),At.map.length==0&&At.map.push(0,0,At.content.appendChild(cs(it.display.measure))),xt==0?(st.measure.map=At.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(At.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(Et){var Re=At.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(At.content.className="cm-tab-wrap-hack")}return xn(it,"renderLine",it,st.line,At.pre),At.pre.className&&(At.textClass=Ge(At.pre.className,At.textClass||"")),At}function Za(it){var st=pe("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function mh(it,st,ft,At,xt,te,Pe){if(st){var He=it.splitSpaces?ju(st,it.trailingSpace):st,Re=it.cm.state.specialChars,un=!1,si;if(!Re.test(st))it.col+=st.length,si=document.createTextNode(He),it.map.push(it.pos,it.pos+st.length,si),re&&le<9&&(un=!0),it.pos+=st.length;else{si=document.createDocumentFragment();for(var pn=0;;){Re.lastIndex=pn;var Oi=Re.exec(st),Ei=Oi?Oi.index-pn:st.length-pn;if(Ei){var Sr=document.createTextNode(He.slice(pn,pn+Ei));re&&le<9?si.appendChild(pe("span",[Sr])):si.appendChild(Sr),it.map.push(it.pos,it.pos+Ei,Sr),it.col+=Ei,it.pos+=Ei}if(!Oi)break;pn+=Ei+1;var Dr=void 0;if(Oi[0]==" "){var eo=it.cm.options.tabSize,vo=eo-it.col%eo;Dr=si.appendChild(pe("span",bi(vo),"cm-tab")),Dr.setAttribute("role","presentation"),Dr.setAttribute("cm-text"," "),it.col+=vo}else Oi[0]=="\r"||Oi[0]==`
`?(Dr=si.appendChild(pe("span",Oi[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Dr.setAttribute("cm-text",Oi[0]),it.col+=1):(Dr=it.cm.options.specialCharPlaceholder(Oi[0]),Dr.setAttribute("cm-text",Oi[0]),re&&le<9?si.appendChild(pe("span",[Dr])):si.appendChild(Dr),it.col+=1);it.map.push(it.pos,it.pos+1,Dr),it.pos++}}if(it.trailingSpace=He.charCodeAt(st.length-1)==32,ft||At||xt||un||te||Pe){var Zo=ft||"";At&&(Zo+=At),xt&&(Zo+=xt);var No=pe("span",[si],Zo,te);if(Pe)for(var as in Pe)Pe.hasOwnProperty(as)&&as!="style"&&as!="class"&&No.setAttribute(as,Pe[as]);return it.content.appendChild(No)}it.content.appendChild(si)}}function ju(it,st){if(it.length>1&&!/ /.test(it))return it;for(var ft=st,At="",xt=0;xt<it.length;xt++){var te=it.charAt(xt);te==" "&&ft&&(xt==it.length-1||it.charCodeAt(xt+1)==32)&&(te="\xA0"),At+=te,ft=te==" "}return At}function su(it,st){return function(ft,At,xt,te,Pe,He,Re){xt=xt?xt+" cm-force-border":"cm-force-border";for(var un=ft.pos,si=un+At.length;;){for(var pn=void 0,Oi=0;Oi<st.length&&(pn=st[Oi],!(pn.to>un&&pn.from<=un));Oi++);if(pn.to>=si)return it(ft,At,xt,te,Pe,He,Re);it(ft,At.slice(0,pn.to-un),xt,te,null,He,Re),te=null,At=At.slice(pn.to-un),un=pn.to}}}function Ao(it,st,ft,At){var xt=!At&&ft.widgetNode;xt&&it.map.push(it.pos,it.pos+st,xt),!At&&it.cm.display.input.needsContentAttribute&&(xt||(xt=it.content.appendChild(document.createElement("span"))),xt.setAttribute("cm-marker",ft.id)),xt&&(it.cm.display.input.setUneditable(xt),it.content.appendChild(xt)),it.pos+=st,it.trailingSpace=!1}function zs(it,st,ft){var At=it.markedSpans,xt=it.text,te=0;if(!At){for(var Pe=1;Pe<ft.length;Pe+=2)st.addToken(st,xt.slice(te,te=ft[Pe]),Bs(ft[Pe+1],st.cm.options));return}for(var He=xt.length,Re=0,un=1,si="",pn,Oi,Ei=0,Sr,Dr,eo,vo,Zo;;){if(Ei==Re){Sr=Dr=eo=Oi="",Zo=null,vo=null,Ei=1/0;for(var No=[],as=void 0,ks=0;ks<At.length;++ks){var Io=At[ks],ea=Io.marker;if(ea.type=="bookmark"&&Io.from==Re&&ea.widgetNode)No.push(ea);else if(Io.from<=Re&&(Io.to==null||Io.to>Re||ea.collapsed&&Io.to==Re&&Io.from==Re)){if(Io.to!=null&&Io.to!=Re&&Ei>Io.to&&(Ei=Io.to,Dr=""),ea.className&&(Sr+=" "+ea.className),ea.css&&(Oi=(Oi?Oi+";":"")+ea.css),ea.startStyle&&Io.from==Re&&(eo+=" "+ea.startStyle),ea.endStyle&&Io.to==Ei&&(as||(as=[])).push(ea.endStyle,Io.to),ea.title&&((Zo||(Zo={})).title=ea.title),ea.attributes)for(var Bl in ea.attributes)(Zo||(Zo={}))[Bl]=ea.attributes[Bl];ea.collapsed&&(!vo||za(vo.marker,ea)<0)&&(vo=Io)}else Io.from>Re&&Ei>Io.from&&(Ei=Io.from)}if(as)for(var ku=0;ku<as.length;ku+=2)as[ku+1]==Ei&&(Dr+=" "+as[ku]);if(!vo||vo.from==Re)for(var cl=0;cl<No.length;++cl)Ao(st,0,No[cl]);if(vo&&(vo.from||0)==Re){if(Ao(st,(vo.to==null?He+1:vo.to)-Re,vo.marker,vo.from==null),vo.to==null)return;vo.to==Re&&(vo=!1)}}if(Re>=He)break;for(var yu=Math.min(He,Ei);;){if(si){var Na=Re+si.length;if(!vo){var ya=Na>yu?si.slice(0,yu-Re):si;st.addToken(st,ya,pn?pn+Sr:Sr,eo,Re+ya.length==Ei?Dr:"",Oi,Zo)}if(Na>=yu){si=si.slice(yu-Re),Re=yu;break}Re=Na,eo=""}si=xt.slice(te,te=ft[un++]),pn=Bs(ft[un++],st.cm.options)}}}function Ns(it,st,ft){this.line=st,this.rest=Mo(st),this.size=this.rest?mn(sn(this.rest))-ft+1:1,this.node=this.text=null,this.hidden=Gi(it,st)}function Es(it,st,ft){for(var At=[],xt,te=st;te<ft;te=xt){var Pe=new Ns(it.doc,Bn(it.doc,te),te);xt=te+Pe.size,At.push(Pe)}return At}var _s=null;function Nl(it){_s?_s.ops.push(it):it.ownsGroup=_s={ops:[it],delayedCallbacks:[]}}function As(it){var st=it.delayedCallbacks,ft=0;do{for(;ft<st.length;ft++)st[ft].call(null);for(var At=0;At<it.ops.length;At++){var xt=it.ops[At];if(xt.cursorActivityHandlers)for(;xt.cursorActivityCalled<xt.cursorActivityHandlers.length;)xt.cursorActivityHandlers[xt.cursorActivityCalled++].call(null,xt.cm)}}while(ft<st.length)}function Qs(it,st){var ft=it.ownsGroup;if(ft)try{As(ft)}finally{_s=null,st(ft)}}var Ss=null;function Gr(it,st){var ft=nn(it,st);if(ft.length){var At=Array.prototype.slice.call(arguments,2),xt;_s?xt=_s.delayedCallbacks:Ss?xt=Ss:(xt=Ss=[],setTimeout(ul,0));for(var te=function(He){xt.push(function(){return ft[He].apply(null,At)})},Pe=0;Pe<ft.length;++Pe)te(Pe)}}function ul(){var it=Ss;Ss=null;for(var st=0;st<it.length;++st)it[st]()}function Ds(it,st,ft,At){for(var xt=0;xt<st.changes.length;xt++){var te=st.changes[xt];te=="text"?fr(it,st):te=="gutter"?ol(it,st,ft,At):te=="class"?Xa(it,st):te=="widget"&&Fl(it,st,At)}st.changes=null}function Su(it){return it.node==it.text&&(it.node=pe("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),re&&le<8&&(it.node.style.zIndex=2)),it.node}function Ku(it,st){var ft=st.bgClass?st.bgClass+" "+(st.line.bgClass||""):st.line.bgClass;if(ft&&(ft+=" CodeMirror-linebackground"),st.background)ft?st.background.className=ft:(st.background.parentNode.removeChild(st.background),st.background=null);else if(ft){var At=Su(st);st.background=At.insertBefore(pe("div",null,ft),At.firstChild),it.display.input.setUneditable(st.background)}}function $l(it,st){var ft=it.display.externalMeasured;return ft&&ft.line==st.line?(it.display.externalMeasured=null,st.measure=ft.measure,ft.built):ui(it,st)}function fr(it,st){var ft=st.text.className,At=$l(it,st);st.text==st.node&&(st.node=At.pre),st.text.parentNode.replaceChild(At.pre,st.text),st.text=At.pre,At.bgClass!=st.bgClass||At.textClass!=st.textClass?(st.bgClass=At.bgClass,st.textClass=At.textClass,Xa(it,st)):ft&&(st.text.className=ft)}function Xa(it,st){Ku(it,st),st.line.wrapClass?Su(st).className=st.line.wrapClass:st.node!=st.text&&(st.node.className="");var ft=st.textClass?st.textClass+" "+(st.line.textClass||""):st.line.textClass;st.text.className=ft||""}function ol(it,st,ft,At){if(st.gutter&&(st.node.removeChild(st.gutter),st.gutter=null),st.gutterBackground&&(st.node.removeChild(st.gutterBackground),st.gutterBackground=null),st.line.gutterClass){var xt=Su(st);st.gutterBackground=pe("div",null,"CodeMirror-gutter-background "+st.line.gutterClass,"left: "+(it.options.fixedGutter?At.fixedPos:-At.gutterTotalWidth)+"px; width: "+At.gutterTotalWidth+"px"),it.display.input.setUneditable(st.gutterBackground),xt.insertBefore(st.gutterBackground,st.text)}var te=st.line.gutterMarkers;if(it.options.lineNumbers||te){var Pe=Su(st),He=st.gutter=pe("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?At.fixedPos:-At.gutterTotalWidth)+"px");if(it.display.input.setUneditable(He),Pe.insertBefore(He,st.text),st.line.gutterClass&&(He.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!te||!te["CodeMirror-linenumbers"])&&(st.lineNumber=He.appendChild(pe("div",er(it.options,ft),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+At.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),te)for(var Re=0;Re<it.display.gutterSpecs.length;++Re){var un=it.display.gutterSpecs[Re].className,si=te.hasOwnProperty(un)&&te[un];si&&He.appendChild(pe("div",[si],"CodeMirror-gutter-elt","left: "+At.gutterLeft[un]+"px; width: "+At.gutterWidth[un]+"px"))}}}function Fl(it,st,ft){st.alignable&&(st.alignable=null);for(var At=jt("CodeMirror-linewidget"),xt=st.node.firstChild,te=void 0;xt;xt=te)te=xt.nextSibling,At.test(xt.className)&&st.node.removeChild(xt);Ja(it,st,ft)}function au(it,st,ft,At){var xt=$l(it,st);return st.text=st.node=xt.pre,xt.bgClass&&(st.bgClass=xt.bgClass),xt.textClass&&(st.textClass=xt.textClass),Xa(it,st),ol(it,st,ft,At),Ja(it,st,At),st.node}function Ja(it,st,ft){if(Eo(it,st.line,st,ft,!0),st.rest)for(var At=0;At<st.rest.length;At++)Eo(it,st.rest[At],st,ft,!1)}function Eo(it,st,ft,At,xt){if(st.widgets)for(var te=Su(ft),Pe=0,He=st.widgets;Pe<He.length;++Pe){var Re=He[Pe],un=pe("div",[Re.node],"CodeMirror-linewidget"+(Re.className?" "+Re.className:""));Re.handleMouseEvents||un.setAttribute("cm-ignore-events","true"),ja(Re,un,ft,At),it.display.input.setUneditable(un),xt&&Re.above?te.insertBefore(un,ft.gutter||ft.text):te.appendChild(un),Gr(Re,"redraw")}}function ja(it,st,ft,At){if(it.noHScroll){(ft.alignable||(ft.alignable=[])).push(st);var xt=At.wrapperWidth;st.style.left=At.fixedPos+"px",it.coverGutter||(xt-=At.gutterTotalWidth,st.style.paddingLeft=At.gutterTotalWidth+"px"),st.style.width=xt+"px"}it.coverGutter&&(st.style.zIndex=5,st.style.position="relative",it.noHScroll||(st.style.marginLeft=-At.gutterTotalWidth+"px"))}function qa(it){if(it.height!=null)return it.height;var st=it.doc.cm;if(!st)return 0;if(!Ke(document.body,it.node)){var ft="position: relative;";it.coverGutter&&(ft+="margin-left: -"+st.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ft+="width: "+st.display.wrapper.clientWidth+"px;"),he(st.display.measure,pe("div",[it.node],null,ft))}return it.height=it.node.parentNode.offsetHeight}function lu(it,st){for(var ft=Ir(st);ft!=it.wrapper;ft=ft.parentNode)if(!ft||ft.nodeType==1&&ft.getAttribute("cm-ignore-events")=="true"||ft.parentNode==it.sizer&&ft!=it.mover)return!0}function Yl(it){return it.lineSpace.offsetTop}function Pu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function bu(it){if(it.cachedPaddingH)return it.cachedPaddingH;var st=he(it.measure,pe("pre","x","CodeMirror-line-like")),ft=window.getComputedStyle?window.getComputedStyle(st):st.currentStyle,At={left:parseInt(ft.paddingLeft),right:parseInt(ft.paddingRight)};return!isNaN(At.left)&&!isNaN(At.right)&&(it.cachedPaddingH=At),At}function fu(it){return Fn-it.display.nativeBarWidth}function nu(it){return it.display.scroller.clientWidth-fu(it)-it.display.barWidth}function _o(it){return it.display.scroller.clientHeight-fu(it)-it.display.barHeight}function _d(it,st,ft){var At=it.options.lineWrapping,xt=At&&nu(it);if(!st.measure.heights||At&&st.measure.width!=xt){var te=st.measure.heights=[];if(At){st.measure.width=xt;for(var Pe=st.text.firstChild.getClientRects(),He=0;He<Pe.length-1;He++){var Re=Pe[He],un=Pe[He+1];Math.abs(Re.bottom-un.bottom)>2&&te.push((Re.bottom+un.top)/2-ft.top)}}te.push(ft.bottom-ft.top)}}function Eu(it,st,ft){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var At=0;At<it.rest.length;At++)if(it.rest[At]==st)return{map:it.measure.maps[At],cache:it.measure.caches[At]};for(var xt=0;xt<it.rest.length;xt++)if(mn(it.rest[xt])>ft)return{map:it.measure.maps[xt],cache:it.measure.caches[xt],before:!0}}function yd(it,st){st=ts(st);var ft=mn(st),At=it.display.externalMeasured=new Ns(it.doc,st,ft);At.lineN=ft;var xt=At.built=ui(it,At);return At.text=xt.pre,he(it.display.lineMeasure,xt.pre),At}function kh(it,st,ft,At){return Ch(it,sl(it,st),ft,At)}function nc(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[Xu(it,st)];var ft=it.display.externalMeasured;if(ft&&st>=ft.lineN&&st<ft.lineN+ft.size)return ft}function sl(it,st){var ft=mn(st),At=nc(it,ft);At&&!At.text?At=null:At&&At.changes&&(Ds(it,At,ft,zA(it)),it.curOp.forceUpdate=!0),At||(At=yd(it,st));var xt=Eu(At,st,ft);return{line:st,view:At,rect:null,map:xt.map,cache:xt.cache,before:xt.before,hasHeights:!1}}function Ch(it,st,ft,At,xt){st.before&&(ft=-1);var te=ft+(At||""),Pe;return st.cache.hasOwnProperty(te)?Pe=st.cache[te]:(st.rect||(st.rect=st.view.text.getBoundingClientRect()),st.hasHeights||(_d(it,st.view,st.rect),st.hasHeights=!0),Pe=Fs(it,st,ft,At),Pe.bogus||(st.cache[te]=Pe)),{left:Pe.left,right:Pe.right,top:xt?Pe.rtop:Pe.top,bottom:xt?Pe.rbottom:Pe.bottom}}var Qd={left:0,right:0,top:0,bottom:0};function Oc(it,st,ft){for(var At,xt,te,Pe,He,Re,un=0;un<it.length;un+=3)if(He=it[un],Re=it[un+1],st<He?(xt=0,te=1,Pe="left"):st<Re?(xt=st-He,te=xt+1):(un==it.length-3||st==Re&&it[un+3]>st)&&(te=Re-He,xt=te-1,st>=Re&&(Pe="right")),xt!=null){if(At=it[un+2],He==Re&&ft==(At.insertLeft?"left":"right")&&(Pe=ft),ft=="left"&&xt==0)for(;un&&it[un-2]==it[un-3]&&it[un-1].insertLeft;)At=it[(un-=3)+2],Pe="left";if(ft=="right"&&xt==Re-He)for(;un<it.length-3&&it[un+3]==it[un+4]&&!it[un+5].insertLeft;)At=it[(un+=3)+2],Pe="right";break}return{node:At,start:xt,end:te,collapse:Pe,coverStart:He,coverEnd:Re}}function Dc(it,st){var ft=Qd;if(st=="left")for(var At=0;At<it.length&&(ft=it[At]).left==ft.right;At++);else for(var xt=it.length-1;xt>=0&&(ft=it[xt]).left==ft.right;xt--);return ft}function Fs(it,st,ft,At){var xt=Oc(st.map,ft,At),te=xt.node,Pe=xt.start,He=xt.end,Re=xt.collapse,un;if(te.nodeType==3){for(var si=0;si<4;si++){for(;Pe&&je(st.line.text.charAt(xt.coverStart+Pe));)--Pe;for(;xt.coverStart+He<xt.coverEnd&&je(st.line.text.charAt(xt.coverStart+He));)++He;if(re&&le<9&&Pe==0&&He==xt.coverEnd-xt.coverStart?un=te.parentNode.getBoundingClientRect():un=Dc(ne(te,Pe,He).getClientRects(),At),un.left||un.right||Pe==0)break;He=Pe,Pe=Pe-1,Re="right"}re&&le<11&&(un=ga(it.display.measure,un))}else{Pe>0&&(Re=At="right");var pn;it.options.lineWrapping&&(pn=te.getClientRects()).length>1?un=pn[At=="right"?pn.length-1:0]:un=te.getBoundingClientRect()}if(re&&le<9&&!Pe&&(!un||!un.left&&!un.right)){var Oi=te.parentNode.getClientRects()[0];Oi?un={left:Oi.left,right:Oi.left+Ph(it.display),top:Oi.top,bottom:Oi.bottom}:un=Qd}for(var Ei=un.top-st.rect.top,Sr=un.bottom-st.rect.top,Dr=(Ei+Sr)/2,eo=st.view.measure.heights,vo=0;vo<eo.length-1&&!(Dr<eo[vo]);vo++);var Zo=vo?eo[vo-1]:0,No=eo[vo],as={left:(Re=="right"?un.right:un.left)-st.rect.left,right:(Re=="left"?un.left:un.right)-st.rect.left,top:Zo,bottom:No};return!un.left&&!un.right&&(as.bogus=!0),it.options.singleCursorHeightPerLine||(as.rtop=Ei,as.rbottom=Sr),as}function ga(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!sa(it))return st;var ft=screen.logicalXDPI/screen.deviceXDPI,At=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*ft,right:st.right*ft,top:st.top*At,bottom:st.bottom*At}}function Uu(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var st=0;st<it.rest.length;st++)it.measure.caches[st]={}}function tl(it){it.display.externalMeasure=null,ae(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)Uu(it.display.view[st])}function al(it){tl(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Ka(){return ee&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ca(){return ee&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function el(it){var st=0;if(it.widgets)for(var ft=0;ft<it.widgets.length;++ft)it.widgets[ft].above&&(st+=qa(it.widgets[ft]));return st}function jl(it,st,ft,At,xt){if(!xt){var te=el(st);ft.top+=te,ft.bottom+=te}if(At=="line")return ft;At||(At="local");var Pe=Gs(st);if(At=="local"?Pe+=Yl(it.display):Pe-=it.display.viewOffset,At=="page"||At=="window"){var He=it.display.lineSpace.getBoundingClientRect();Pe+=He.top+(At=="window"?0:ca());var Re=He.left+(At=="window"?0:Ka());ft.left+=Re,ft.right+=Re}return ft.top+=Pe,ft.bottom+=Pe,ft}function fc(it,st,ft){if(ft=="div")return st;var At=st.left,xt=st.top;if(ft=="page")At-=Ka(),xt-=ca();else if(ft=="local"||!ft){var te=it.display.sizer.getBoundingClientRect();At+=te.left,xt+=te.top}var Pe=it.display.lineSpace.getBoundingClientRect();return{left:At-Pe.left,top:xt-Pe.top}}function dh(it,st,ft,At,xt){return At||(At=Bn(it.doc,st.line)),jl(it,At,kh(it,At,st.ch,xt),ft)}function hl(it,st,ft,At,xt,te){At=At||Bn(it.doc,st.line),xt||(xt=sl(it,At));function Pe(Sr,Dr){var eo=Ch(it,xt,Sr,Dr?"right":"left",te);return Dr?eo.left=eo.right:eo.right=eo.left,jl(it,At,eo,ft)}var He=Se(At,it.doc.direction),Re=st.ch,un=st.sticky;if(Re>=At.text.length?(Re=At.text.length,un="before"):Re<=0&&(Re=0,un="after"),!He)return Pe(un=="before"?Re-1:Re,un=="before");function si(Sr,Dr,eo){var vo=He[Dr],Zo=vo.level==1;return Pe(eo?Sr-1:Sr,Zo!=eo)}var pn=mt(He,Re,un),Oi=Pt,Ei=si(Re,pn,un=="before");return Oi!=null&&(Ei.other=si(Re,Oi,un!="before")),Ei}function zd(it,st){var ft=0;st=dr(it.doc,st),it.options.lineWrapping||(ft=Ph(it.display)*st.ch);var At=Bn(it.doc,st.line),xt=Gs(At)+Yl(it.display);return{left:ft,right:ft,top:xt,bottom:xt+At.height}}function td(it,st,ft,At,xt){var te=On(it,st,ft);return te.xRel=xt,At&&(te.outside=At),te}function Bh(it,st,ft){var At=it.doc;if(ft+=it.display.viewOffset,ft<0)return td(At.first,0,null,-1,-1);var xt=Ai(At,ft),te=At.first+At.size-1;if(xt>te)return td(At.first+At.size-1,Bn(At,te).text.length,null,1,1);st<0&&(st=0);for(var Pe=Bn(At,xt);;){var He=$i(it,Pe,xt,st,ft),Re=bs(Pe,He.ch+(He.xRel>0||He.outside>0?1:0));if(!Re)return He;var un=Re.find(1);if(un.line==xt)return un;Pe=Bn(At,xt=un.line)}}function Ro(it,st,ft,At){At-=el(st);var xt=st.text.length,te=Be(function(Pe){return Ch(it,ft,Pe-1).bottom<=At},xt,0);return xt=Be(function(Pe){return Ch(it,ft,Pe).top>At},te,xt),{begin:te,end:xt}}function sA(it,st,ft,At){ft||(ft=sl(it,st));var xt=jl(it,st,Ch(it,ft,At),"line").top;return Ro(it,st,ft,xt)}function Ln(it,st,ft,At){return it.bottom<=ft?!1:it.top>ft?!0:(At?it.left:it.right)>st}function $i(it,st,ft,At,xt){xt-=Gs(st);var te=sl(it,st),Pe=el(st),He=0,Re=st.text.length,un=!0,si=Se(st,it.doc.direction);if(si){var pn=(it.options.lineWrapping?ic:aA)(it,st,ft,te,si,At,xt);un=pn.level!=1,He=un?pn.from:pn.to-1,Re=un?pn.to:pn.from-1}var Oi=null,Ei=null,Sr=Be(function(ks){var Io=Ch(it,te,ks);return Io.top+=Pe,Io.bottom+=Pe,Ln(Io,At,xt,!1)?(Io.top<=xt&&Io.left<=At&&(Oi=ks,Ei=Io),!0):!1},He,Re),Dr,eo,vo=!1;if(Ei){var Zo=At-Ei.left<Ei.right-At,No=Zo==un;Sr=Oi+(No?0:1),eo=No?"after":"before",Dr=Zo?Ei.left:Ei.right}else{!un&&(Sr==Re||Sr==He)&&Sr++,eo=Sr==0?"after":Sr==st.text.length?"before":Ch(it,te,Sr-(un?1:0)).bottom+Pe<=xt==un?"after":"before";var as=hl(it,On(ft,Sr,eo),"line",st,te);Dr=as.left,vo=xt<as.top?-1:xt>=as.bottom?1:0}return Sr=ce(st.text,Sr,1),td(ft,Sr,eo,vo,At-Dr)}function aA(it,st,ft,At,xt,te,Pe){var He=Be(function(pn){var Oi=xt[pn],Ei=Oi.level!=1;return Ln(hl(it,On(ft,Ei?Oi.to:Oi.from,Ei?"before":"after"),"line",st,At),te,Pe,!0)},0,xt.length-1),Re=xt[He];if(He>0){var un=Re.level!=1,si=hl(it,On(ft,un?Re.from:Re.to,un?"after":"before"),"line",st,At);Ln(si,te,Pe,!0)&&si.top>Pe&&(Re=xt[He-1])}return Re}function ic(it,st,ft,At,xt,te,Pe){var He=Ro(it,st,At,Pe),Re=He.begin,un=He.end;/\s/.test(st.text.charAt(un-1))&&un--;for(var si=null,pn=null,Oi=0;Oi<xt.length;Oi++){var Ei=xt[Oi];if(!(Ei.from>=un||Ei.to<=Re)){var Sr=Ei.level!=1,Dr=Ch(it,At,Sr?Math.min(un,Ei.to)-1:Math.max(Re,Ei.from)).right,eo=Dr<te?te-Dr+1e9:Dr-te;(!si||pn>eo)&&(si=Ei,pn=eo)}}return si||(si=xt[xt.length-1]),si.from<Re&&(si={from:Re,to:si.to,level:si.level}),si.to>un&&(si={from:si.from,to:un,level:si.level}),si}var Gu;function Wu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Gu==null){Gu=pe("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)Gu.appendChild(document.createTextNode("x")),Gu.appendChild(pe("br"));Gu.appendChild(document.createTextNode("x"))}he(it.measure,Gu);var ft=Gu.offsetHeight/50;return ft>3&&(it.cachedTextHeight=ft),ae(it.measure),ft||1}function Ph(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=pe("span","xxxxxxxxxx"),ft=pe("pre",[st],"CodeMirror-line-like");he(it.measure,ft);var At=st.getBoundingClientRect(),xt=(At.right-At.left)/10;return xt>2&&(it.cachedCharWidth=xt),xt||10}function zA(it){for(var st=it.display,ft={},At={},xt=st.gutters.clientLeft,te=st.gutters.firstChild,Pe=0;te;te=te.nextSibling,++Pe){var He=it.display.gutterSpecs[Pe].className;ft[He]=te.offsetLeft+te.clientLeft+xt,At[He]=te.clientWidth}return{fixedPos:ed(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:ft,gutterWidth:At,wrapperWidth:st.wrapper.clientWidth}}function ed(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function nl(it){var st=Wu(it.display),ft=it.options.lineWrapping,At=ft&&Math.max(5,it.display.scroller.clientWidth/Ph(it.display)-3);return function(xt){if(Gi(it.doc,xt))return 0;var te=0;if(xt.widgets)for(var Pe=0;Pe<xt.widgets.length;Pe++)xt.widgets[Pe].height&&(te+=xt.widgets[Pe].height);return ft?te+(Math.ceil(xt.text.length/At)||1)*st:te+st}}function ys(it){var st=it.doc,ft=nl(it);st.iter(function(At){var xt=ft(At);xt!=At.height&&ni(At,xt)})}function oh(it,st,ft,At){var xt=it.display;if(!ft&&Ir(st).getAttribute("cm-not-content")=="true")return null;var te,Pe,He=xt.lineSpace.getBoundingClientRect();try{te=st.clientX-He.left,Pe=st.clientY-He.top}catch(pn){return null}var Re=Bh(it,te,Pe),un;if(At&&Re.xRel>0&&(un=Bn(it.doc,Re.line).text).length==Re.ch){var si=xe(un,un.length,it.options.tabSize)-un.length;Re=On(Re.line,Math.max(0,Math.round((te-bu(it.display).left)/Ph(it.display))-si))}return Re}function Xu(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var ft=it.display.view,At=0;At<ft.length;At++)if(st-=ft[At].size,st<0)return At}function Ll(it,st,ft,At){st==null&&(st=it.doc.first),ft==null&&(ft=it.doc.first+it.doc.size),At||(At=0);var xt=it.display;if(At&&ft<xt.viewTo&&(xt.updateLineNumbers==null||xt.updateLineNumbers>st)&&(xt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=xt.viewTo)Bi&&io(it.doc,st)<xt.viewTo&&gu(it);else if(ft<=xt.viewFrom)Bi&&Ko(it.doc,ft+At)>xt.viewFrom?gu(it):(xt.viewFrom+=At,xt.viewTo+=At);else if(st<=xt.viewFrom&&ft>=xt.viewTo)gu(it);else if(st<=xt.viewFrom){var te=bh(it,ft,ft+At,1);te?(xt.view=xt.view.slice(te.index),xt.viewFrom=te.lineN,xt.viewTo+=At):gu(it)}else if(ft>=xt.viewTo){var Pe=bh(it,st,st,-1);Pe?(xt.view=xt.view.slice(0,Pe.index),xt.viewTo=Pe.lineN):gu(it)}else{var He=bh(it,st,st,-1),Re=bh(it,ft,ft+At,1);He&&Re?(xt.view=xt.view.slice(0,He.index).concat(Es(it,He.lineN,Re.lineN)).concat(xt.view.slice(Re.index)),xt.viewTo+=At):gu(it)}var un=xt.externalMeasured;un&&(ft<un.lineN?un.lineN+=At:st<un.lineN+un.size&&(xt.externalMeasured=null))}function ra(it,st,ft){it.curOp.viewChanged=!0;var At=it.display,xt=it.display.externalMeasured;if(xt&&st>=xt.lineN&&st<xt.lineN+xt.size&&(At.externalMeasured=null),!(st<At.viewFrom||st>=At.viewTo)){var te=At.view[Xu(it,st)];if(te.node!=null){var Pe=te.changes||(te.changes=[]);be(Pe,ft)==-1&&Pe.push(ft)}}}function gu(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function bh(it,st,ft,At){var xt=Xu(it,st),te,Pe=it.display.view;if(!Bi||ft==it.doc.first+it.doc.size)return{index:xt,lineN:ft};for(var He=it.display.viewFrom,Re=0;Re<xt;Re++)He+=Pe[Re].size;if(He!=st){if(At>0){if(xt==Pe.length-1)return null;te=He+Pe[xt].size-st,xt++}else te=He-st;st+=te,ft+=te}for(;io(it.doc,ft)!=ft;){if(xt==(At<0?0:Pe.length-1))return null;ft+=At*Pe[xt-(At<0?1:0)].size,xt+=At}return{index:xt,lineN:ft}}function xl(it,st,ft){var At=it.display,xt=At.view;xt.length==0||st>=At.viewTo||ft<=At.viewFrom?(At.view=Es(it,st,ft),At.viewFrom=st):(At.viewFrom>st?At.view=Es(it,st,At.viewFrom).concat(At.view):At.viewFrom<st&&(At.view=At.view.slice(Xu(it,st))),At.viewFrom=st,At.viewTo<ft?At.view=At.view.concat(Es(it,At.viewTo,ft)):At.viewTo>ft&&(At.view=At.view.slice(0,Xu(it,ft)))),At.viewTo=ft}function zh(it){for(var st=it.display.view,ft=0,At=0;At<st.length;At++){var xt=st[At];!xt.hidden&&(!xt.node||xt.changes)&&++ft}return ft}function Cu(it){it.display.input.showSelection(it.display.input.prepareSelection())}function wd(it,st){st===void 0&&(st=!0);for(var ft=it.doc,At={},xt=At.cursors=document.createDocumentFragment(),te=At.selection=document.createDocumentFragment(),Pe=0;Pe<ft.sel.ranges.length;Pe++)if(!(!st&&Pe==ft.sel.primIndex)){var He=ft.sel.ranges[Pe];if(!(He.from().line>=it.display.viewTo||He.to().line<it.display.viewFrom)){var Re=He.empty();(Re||it.options.showCursorWhenSelecting)&&La(it,He.head,xt),Re||Ma(it,He,te)}}return At}function La(it,st,ft){var At=hl(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),xt=ft.appendChild(pe("div","\xA0","CodeMirror-cursor"));if(xt.style.left=At.left+"px",xt.style.top=At.top+"px",xt.style.height=Math.max(0,At.bottom-At.top)*it.options.cursorHeight+"px",At.other){var te=ft.appendChild(pe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));te.style.display="",te.style.left=At.other.left+"px",te.style.top=At.other.top+"px",te.style.height=(At.other.bottom-At.other.top)*.85+"px"}}function sh(it,st){return it.top-st.top||it.left-st.left}function Ma(it,st,ft){var At=it.display,xt=it.doc,te=document.createDocumentFragment(),Pe=bu(it.display),He=Pe.left,Re=Math.max(At.sizerWidth,nu(it)-At.sizer.offsetLeft)-Pe.right,un=xt.direction=="ltr";function si(No,as,ks,Io){as<0&&(as=0),as=Math.round(as),Io=Math.round(Io),te.appendChild(pe("div",null,"CodeMirror-selected","position: absolute; left: "+No+`px;
top: `+as+"px; width: "+(ks==null?Re-No:ks)+`px;
height: `+(Io-as)+"px"))}function pn(No,as,ks){var Io=Bn(xt,No),ea=Io.text.length,Bl,ku;function cl(ya,ml){return dh(it,On(No,ya),"div",Io,ml)}function yu(ya,ml,vl){var Co=sA(it,Io,null,ya),wa=ml=="ltr"==(vl=="after")?"left":"right",Il=vl=="after"?Co.begin:Co.end-(/\s/.test(Io.text.charAt(Co.end-1))?2:1);return cl(Il,wa)[wa]}var Na=Se(Io,xt.direction);return $t(Na,as||0,ks==null?ea:ks,function(ya,ml,vl,Co){var wa=vl=="ltr",Il=cl(ya,wa?"left":"right"),kl=cl(ml-1,wa?"right":"left"),uh=as==null&&ya==0,Da=ks==null&&ml==ea,Hs=Co==0,wu=!Na||Co==Na.length-1;if(kl.top-Il.top<=3){var du=(un?uh:Da)&&Hs,ad=(un?Da:uh)&&wu,uc=du?He:(wa?Il:kl).left,hh=ad?Re:(wa?kl:Il).right;si(uc,Il.top,hh-uc,Il.bottom)}else{var Sh,Tl,eh,Wc;wa?(Sh=un&&uh&&Hs?He:Il.left,Tl=un?Re:yu(ya,vl,"before"),eh=un?He:yu(ml,vl,"after"),Wc=un&&Da&&wu?Re:kl.right):(Sh=un?yu(ya,vl,"before"):He,Tl=!un&&uh&&Hs?Re:Il.right,eh=!un&&Da&&wu?He:kl.left,Wc=un?yu(ml,vl,"after"):Re),si(Sh,Il.top,Tl-Sh,Il.bottom),Il.bottom<kl.top&&si(He,Il.bottom,null,kl.top),si(eh,kl.top,Wc-eh,kl.bottom)}(!Bl||sh(Il,Bl)<0)&&(Bl=Il),sh(kl,Bl)<0&&(Bl=kl),(!ku||sh(Il,ku)<0)&&(ku=Il),sh(kl,ku)<0&&(ku=kl)}),{start:Bl,end:ku}}var Oi=st.from(),Ei=st.to();if(Oi.line==Ei.line)pn(Oi.line,Oi.ch,Ei.ch);else{var Sr=Bn(xt,Oi.line),Dr=Bn(xt,Ei.line),eo=ts(Sr)==ts(Dr),vo=pn(Oi.line,Oi.ch,eo?Sr.text.length+1:null).end,Zo=pn(Ei.line,eo?0:null,Ei.ch).start;eo&&(vo.top<Zo.top-2?(si(vo.right,vo.top,null,vo.bottom),si(He,Zo.top,Zo.left,Zo.bottom)):si(vo.right,vo.top,Zo.left-vo.right,vo.bottom)),vo.bottom<Zo.top&&si(He,vo.bottom,null,Zo.top)}ft.appendChild(te)}function fl(it){if(it.state.focused){var st=it.display;clearInterval(st.blinker);var ft=!0;st.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?st.blinker=setInterval(function(){it.hasFocus()||pt(it),st.cursorDiv.style.visibility=(ft=!ft)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Ql(it){it.state.focused||(it.display.input.focus(),Bt(it))}function Jl(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,pt(it))},100)}function Bt(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(xn(it,"focus",it,st),it.state.focused=!0,$e(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Et&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),fl(it))}function pt(it,st){it.state.delayingBlurEvent||(it.state.focused&&(xn(it,"blur",it,st),it.state.focused=!1,Rt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function St(it){for(var st=it.display,ft=st.lineDiv.offsetTop,At=0;At<st.view.length;At++){var xt=st.view[At],te=it.options.lineWrapping,Pe=void 0,He=0;if(!xt.hidden){if(re&&le<8){var Re=xt.node.offsetTop+xt.node.offsetHeight;Pe=Re-ft,ft=Re}else{var un=xt.node.getBoundingClientRect();Pe=un.bottom-un.top,!te&&xt.text.firstChild&&(He=xt.text.firstChild.getBoundingClientRect().right-un.left-1)}var si=xt.line.height-Pe;if((si>.005||si<-.005)&&(ni(xt.line,Pe),_t(xt.line),xt.rest))for(var pn=0;pn<xt.rest.length;pn++)_t(xt.rest[pn]);if(He>it.display.sizerWidth){var Oi=Math.ceil(He/Ph(it.display));Oi>it.display.maxLineLength&&(it.display.maxLineLength=Oi,it.display.maxLine=xt.line,it.display.maxLineChanged=!0)}}}}function _t(it){if(it.widgets)for(var st=0;st<it.widgets.length;++st){var ft=it.widgets[st],At=ft.node.parentNode;At&&(ft.height=At.offsetHeight)}}function oe(it,st,ft){var At=ft&&ft.top!=null?Math.max(0,ft.top):it.scroller.scrollTop;At=Math.floor(At-Yl(it));var xt=ft&&ft.bottom!=null?ft.bottom:At+it.wrapper.clientHeight,te=Ai(st,At),Pe=Ai(st,xt);if(ft&&ft.ensure){var He=ft.ensure.from.line,Re=ft.ensure.to.line;He<te?(te=He,Pe=Ai(st,Gs(Bn(st,He))+it.wrapper.clientHeight)):Math.min(Re,st.lastLine())>=Pe&&(te=Ai(st,Gs(Bn(st,Re))-it.wrapper.clientHeight),Pe=Re)}return{from:te,to:Math.max(Pe,te+1)}}function qt(it,st){if(!li(it,"scrollCursorIntoView")){var ft=it.display,At=ft.sizer.getBoundingClientRect(),xt=null;if(st.top+At.top<0?xt=!0:st.bottom+At.top>(window.innerHeight||document.documentElement.clientHeight)&&(xt=!1),xt!=null&&!Jt){var te=pe("div","\u200B",null,`position: absolute;
top: `+(st.top-ft.viewOffset-Yl(it.display))+`px;
height: `+(st.bottom-st.top+fu(it)+ft.barHeight)+`px;
left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(te),te.scrollIntoView(xt),it.display.lineSpace.removeChild(te)}}}function me(it,st,ft,At){At==null&&(At=0);var xt;!it.options.lineWrapping&&st==ft&&(st=st.ch?On(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,ft=st.sticky=="before"?On(st.line,st.ch+1,"before"):st);for(var te=0;te<5;te++){var Pe=!1,He=hl(it,st),Re=!ft||ft==st?He:hl(it,ft);xt={left:Math.min(He.left,Re.left),top:Math.min(He.top,Re.top)-At,right:Math.max(He.left,Re.left),bottom:Math.max(He.bottom,Re.bottom)+At};var un=Le(it,xt),si=it.doc.scrollTop,pn=it.doc.scrollLeft;if(un.scrollTop!=null&&(ei(it,un.scrollTop),Math.abs(it.doc.scrollTop-si)>1&&(Pe=!0)),un.scrollLeft!=null&&(Hn(it,un.scrollLeft),Math.abs(it.doc.scrollLeft-pn)>1&&(Pe=!0)),!Pe)break}return xt}function Ce(it,st){var ft=Le(it,st);ft.scrollTop!=null&&ei(it,ft.scrollTop),ft.scrollLeft!=null&&Hn(it,ft.scrollLeft)}function Le(it,st){var ft=it.display,At=Wu(it.display);st.top<0&&(st.top=0);var xt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ft.scroller.scrollTop,te=_o(it),Pe={};st.bottom-st.top>te&&(st.bottom=st.top+te);var He=it.doc.height+Pu(ft),Re=st.top<At,un=st.bottom>He-At;if(st.top<xt)Pe.scrollTop=Re?0:st.top;else if(st.bottom>xt+te){var si=Math.min(st.top,(un?He:st.bottom)-te);si!=xt&&(Pe.scrollTop=si)}var pn=it.options.fixedGutter?0:ft.gutters.offsetWidth,Oi=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ft.scroller.scrollLeft-pn,Ei=nu(it)-ft.gutters.offsetWidth,Sr=st.right-st.left>Ei;return Sr&&(st.right=st.left+Ei),st.left<10?Pe.scrollLeft=0:st.left<Oi?Pe.scrollLeft=Math.max(0,st.left+pn-(Sr?0:10)):st.right>Ei+Oi-3&&(Pe.scrollLeft=st.right+(Sr?0:10)-Ei),Pe}function Je(it,st){st!=null&&(We(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function fn(it){We(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function gn(it,st,ft){(st!=null||ft!=null)&&We(it),st!=null&&(it.curOp.scrollLeft=st),ft!=null&&(it.curOp.scrollTop=ft)}function En(it,st){We(it),it.curOp.scrollToPos=st}function We(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var ft=zd(it,st.from),At=zd(it,st.to);vi(it,ft,At,st.margin)}}function vi(it,st,ft,At){var xt=Le(it,{left:Math.min(st.left,ft.left),top:Math.min(st.top,ft.top)-At,right:Math.max(st.right,ft.right),bottom:Math.max(st.bottom,ft.bottom)+At});gn(it,xt.scrollLeft,xt.scrollTop)}function ei(it,st){Math.abs(it.doc.scrollTop-st)<2||(Lt||Ji(it,{top:st}),wi(it,st,!0),Lt&&Ji(it),ze(it,100))}function wi(it,st,ft){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!ft)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function Hn(it,st,ft,At){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ft?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!At)&&(it.doc.scrollLeft=st,ro(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function gi(it){var st=it.display,ft=st.gutters.offsetWidth,At=Math.round(it.doc.height+Pu(it.display));return{clientHeight:st.scroller.clientHeight,viewHeight:st.wrapper.clientHeight,scrollWidth:st.scroller.scrollWidth,clientWidth:st.scroller.clientWidth,viewWidth:st.wrapper.clientWidth,barLeft:it.options.fixedGutter?ft:0,docHeight:At,scrollHeight:At+fu(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:ft}}var zi=function(it,st,ft){this.cm=ft;var At=this.vert=pe("div",[pe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),xt=this.horiz=pe("div",[pe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");At.tabIndex=xt.tabIndex=-1,it(At),it(xt),Ie(At,"scroll",function(){At.clientHeight&&st(At.scrollTop,"vertical")}),Ie(xt,"scroll",function(){xt.clientWidth&&st(xt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,re&&le<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};zi.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,ft=it.scrollHeight>it.clientHeight+1,At=it.nativeBarWidth;if(ft){this.vert.style.display="block",this.vert.style.bottom=st?At+"px":"0";var xt=it.viewHeight-(st?At:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+xt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=ft?At+"px":"0",this.horiz.style.left=it.barLeft+"px";var te=it.viewWidth-it.barLeft-(ft?At:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+te)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(At==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ft?At:0,bottom:st?At:0}},zi.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},zi.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},zi.prototype.zeroWidthHack=function(){var it=lt&&!Gt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ie,this.disableVert=new ie},zi.prototype.enableZeroWidthBar=function(it,st,ft){it.style.pointerEvents="auto";function At(){var xt=it.getBoundingClientRect(),te=ft=="vert"?document.elementFromPoint(xt.right-1,(xt.top+xt.bottom)/2):document.elementFromPoint((xt.right+xt.left)/2,xt.bottom-1);te!=it?it.style.pointerEvents="none":st.set(1e3,At)}st.set(1e3,At)},zi.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var or=function(){};or.prototype.update=function(){return{bottom:0,right:0}},or.prototype.setScrollLeft=function(){},or.prototype.setScrollTop=function(){},or.prototype.clear=function(){};function Lr(it,st){st||(st=gi(it));var ft=it.display.barWidth,At=it.display.barHeight;lo(it,st);for(var xt=0;xt<4&&ft!=it.display.barWidth||At!=it.display.barHeight;xt++)ft!=it.display.barWidth&&it.options.lineWrapping&&St(it),lo(it,gi(it)),ft=it.display.barWidth,At=it.display.barHeight}function lo(it,st){var ft=it.display,At=ft.scrollbars.update(st);ft.sizer.style.paddingRight=(ft.barWidth=At.right)+"px",ft.sizer.style.paddingBottom=(ft.barHeight=At.bottom)+"px",ft.heightForcer.style.borderBottom=At.bottom+"px solid transparent",At.right&&At.bottom?(ft.scrollbarFiller.style.display="block",ft.scrollbarFiller.style.height=At.bottom+"px",ft.scrollbarFiller.style.width=At.right+"px"):ft.scrollbarFiller.style.display="",At.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ft.gutterFiller.style.display="block",ft.gutterFiller.style.height=At.bottom+"px",ft.gutterFiller.style.width=st.gutterWidth+"px"):ft.gutterFiller.style.display=""}var mr={native:zi,null:or};function Di(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Rt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new mr[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),Ie(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,ft){ft=="horizontal"?Hn(it,st):ei(it,st)},it),it.display.scrollbars.addClass&&$e(it.display.wrapper,it.display.scrollbars.addClass)}var Cr=0;function Or(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cr},Nl(it.curOp)}function qn(it){var st=it.curOp;st&&Qs(st,function(ft){for(var At=0;At<ft.ops.length;At++)ft.ops[At].cm.curOp=null;oi(ft)})}function oi(it){for(var st=it.ops,ft=0;ft<st.length;ft++)ye(st[ft]);for(var At=0;At<st.length;At++)we(st[At]);for(var xt=0;xt<st.length;xt++)Ye(st[xt]);for(var te=0;te<st.length;te++)tn(st[te]);for(var Pe=0;Pe<st.length;Pe++)yn(st[Pe])}function ye(it){var st=it.cm,ft=st.display;Gn(st),it.updateMaxLine&&Js(st),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ft.viewFrom||it.scrollToPos.to.line>=ft.viewTo)||ft.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new vn(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function we(it){it.updatedDisplay=it.mustUpdate&&Fi(it.cm,it.update)}function Ye(it){var st=it.cm,ft=st.display;it.updatedDisplay&&St(st),it.barMeasure=gi(st),ft.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=kh(st,ft.maxLine,ft.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ft.scroller.clientWidth,ft.sizer.offsetLeft+it.adjustWidthTo+fu(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,ft.sizer.offsetLeft+it.adjustWidthTo-nu(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ft.input.prepareSelection())}function tn(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<st.doc.scrollLeft&&Hn(st,Math.min(st.display.scroller.scrollLeft,it.maxScrollLeft),!0),st.display.maxLineChanged=!1);var ft=it.focus&&it.focus==Vt();it.preparedSelection&&st.display.input.showSelection(it.preparedSelection,ft),(it.updatedDisplay||it.startHeight!=st.doc.height)&&Lr(st,it.barMeasure),it.updatedDisplay&&Fr(st,it.barMeasure),it.selectionChanged&&fl(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),ft&&Ql(it.cm)}function yn(it){var st=it.cm,ft=st.display,At=st.doc;if(it.updatedDisplay&&ci(st,it.update),ft.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ft.wheelStartX=ft.wheelStartY=null),it.scrollTop!=null&&wi(st,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Hn(st,it.scrollLeft,!0,!0),it.scrollToPos){var xt=me(st,dr(At,it.scrollToPos.from),dr(At,it.scrollToPos.to),it.scrollToPos.margin);qt(st,xt)}var te=it.maybeHiddenMarkers,Pe=it.maybeUnhiddenMarkers;if(te)for(var He=0;He<te.length;++He)te[He].lines.length||xn(te[He],"hide");if(Pe)for(var Re=0;Re<Pe.length;++Re)Pe[Re].lines.length&&xn(Pe[Re],"unhide");ft.wrapper.offsetHeight&&(At.scrollTop=st.display.scroller.scrollTop),it.changeObjs&&xn(st,"changes",st,it.changeObjs),it.update&&it.update.finish()}function on(it,st){if(it.curOp)return st();Or(it);try{return st()}finally{qn(it)}}function Dn(it,st){return function(){if(it.curOp)return st.apply(it,arguments);Or(it);try{return st.apply(it,arguments)}finally{qn(it)}}}function Rn(it){return function(){if(this.curOp)return it.apply(this,arguments);Or(this);try{return it.apply(this,arguments)}finally{qn(this)}}}function ti(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);Or(st);try{return it.apply(this,arguments)}finally{qn(st)}}}function ze(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,Ve(cn,it))}function cn(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var ft=+new Date+it.options.workTime,At=Uo(it,st.highlightFrontier),xt=[];st.iter(At.line,Math.min(st.first+st.size,it.display.viewTo+500),function(te){if(At.line>=it.display.viewFrom){var Pe=te.styles,He=te.text.length>it.options.maxHighlightLength?hi(st.mode,At.state):null,Re=Lo(it,te,At,!0);He&&(At.state=He),te.styles=Re.styles;var un=te.styleClasses,si=Re.classes;si?te.styleClasses=si:un&&(te.styleClasses=null);for(var pn=!Pe||Pe.length!=te.styles.length||un!=si&&(!un||!si||un.bgClass!=si.bgClass||un.textClass!=si.textClass),Oi=0;!pn&&Oi<Pe.length;++Oi)pn=Pe[Oi]!=te.styles[Oi];pn&&xt.push(At.line),te.stateAfter=At.save(),At.nextLine()}else te.text.length<=it.options.maxHighlightLength&&jn(it,te.text,At),te.stateAfter=At.line%5==0?At.save():null,At.nextLine();if(+new Date>ft)return ze(it,it.options.workDelay),!0}),st.highlightFrontier=At.line,st.modeFrontier=Math.max(st.modeFrontier,At.line),xt.length&&on(it,function(){for(var te=0;te<xt.length;te++)ra(it,xt[te],"text")})}}var vn=function(it,st,ft){var At=it.display;this.viewport=st,this.visible=oe(At,it.doc,st),this.editorIsHidden=!At.wrapper.offsetWidth,this.wrapperHeight=At.wrapper.clientHeight,this.wrapperWidth=At.wrapper.clientWidth,this.oldDisplayWidth=nu(it),this.force=ft,this.dims=zA(it),this.events=[]};vn.prototype.signal=function(it,st){Wi(it,st)&&this.events.push(arguments)},vn.prototype.finish=function(){for(var it=0;it<this.events.length;it++)xn.apply(null,this.events[it])};function Gn(it){var st=it.display;!st.scrollbarsClipped&&st.scroller.offsetWidth&&(st.nativeBarWidth=st.scroller.offsetWidth-st.scroller.clientWidth,st.heightForcer.style.height=fu(it)+"px",st.sizer.style.marginBottom=-st.nativeBarWidth+"px",st.sizer.style.borderRightWidth=fu(it)+"px",st.scrollbarsClipped=!0)}function Yn(it){if(it.hasFocus())return null;var st=Vt();if(!st||!Ke(it.display.lineDiv,st))return null;var ft={activeElt:st};if(window.getSelection){var At=window.getSelection();At.anchorNode&&At.extend&&Ke(it.display.lineDiv,At.anchorNode)&&(ft.anchorNode=At.anchorNode,ft.anchorOffset=At.anchorOffset,ft.focusNode=At.focusNode,ft.focusOffset=At.focusOffset)}return ft}function ri(it){if(!(!it||!it.activeElt||it.activeElt==Vt())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Ke(document.body,it.anchorNode)&&Ke(document.body,it.focusNode))){var st=window.getSelection(),ft=document.createRange();ft.setEnd(it.anchorNode,it.anchorOffset),ft.collapse(!1),st.removeAllRanges(),st.addRange(ft),st.extend(it.focusNode,it.focusOffset)}}function Fi(it,st){var ft=it.display,At=it.doc;if(st.editorIsHidden)return gu(it),!1;if(!st.force&&st.visible.from>=ft.viewFrom&&st.visible.to<=ft.viewTo&&(ft.updateLineNumbers==null||ft.updateLineNumbers>=ft.viewTo)&&ft.renderedView==ft.view&&zh(it)==0)return!1;Ti(it)&&(gu(it),st.dims=zA(it));var xt=At.first+At.size,te=Math.max(st.visible.from-it.options.viewportMargin,At.first),Pe=Math.min(xt,st.visible.to+it.options.viewportMargin);ft.viewFrom<te&&te-ft.viewFrom<20&&(te=Math.max(At.first,ft.viewFrom)),ft.viewTo>Pe&&ft.viewTo-Pe<20&&(Pe=Math.min(xt,ft.viewTo)),Bi&&(te=io(it.doc,te),Pe=Ko(it.doc,Pe));var He=te!=ft.viewFrom||Pe!=ft.viewTo||ft.lastWrapHeight!=st.wrapperHeight||ft.lastWrapWidth!=st.wrapperWidth;xl(it,te,Pe),ft.viewOffset=Gs(Bn(it.doc,ft.viewFrom)),it.display.mover.style.top=ft.viewOffset+"px";var Re=zh(it);if(!He&&Re==0&&!st.force&&ft.renderedView==ft.view&&(ft.updateLineNumbers==null||ft.updateLineNumbers>=ft.viewTo))return!1;var un=Yn(it);return Re>4&&(ft.lineDiv.style.display="none"),Yi(it,ft.updateLineNumbers,st.dims),Re>4&&(ft.lineDiv.style.display=""),ft.renderedView=ft.view,ri(un),ae(ft.cursorDiv),ae(ft.selectionDiv),ft.gutters.style.height=ft.sizer.style.minHeight=0,He&&(ft.lastWrapHeight=st.wrapperHeight,ft.lastWrapWidth=st.wrapperWidth,ze(it,400)),ft.updateLineNumbers=null,!0}function ci(it,st){for(var ft=st.viewport,At=!0;;At=!1){if(!At||!it.options.lineWrapping||st.oldDisplayWidth==nu(it)){if(ft&&ft.top!=null&&(ft={top:Math.min(it.doc.height+Pu(it.display)-_o(it),ft.top)}),st.visible=oe(it.display,it.doc,ft),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else At&&(st.visible=oe(it.display,it.doc,ft));if(!Fi(it,st))break;St(it);var xt=gi(it);Cu(it),Lr(it,xt),Fr(it,xt),st.force=!1}st.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(st.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Ji(it,st){var ft=new vn(it,st);if(Fi(it,ft)){St(it),ci(it,ft);var At=gi(it);Cu(it),Lr(it,At),Fr(it,At),ft.finish()}}function Yi(it,st,ft){var At=it.display,xt=it.options.lineNumbers,te=At.lineDiv,Pe=te.firstChild;function He(Sr){var Dr=Sr.nextSibling;return Et&&lt&&it.display.currentWheelTarget==Sr?Sr.style.display="none":Sr.parentNode.removeChild(Sr),Dr}for(var Re=At.view,un=At.viewFrom,si=0;si<Re.length;si++){var pn=Re[si];if(!pn.hidden)if(!pn.node||pn.node.parentNode!=te){var Oi=au(it,pn,un,ft);te.insertBefore(Oi,Pe)}else{for(;Pe!=pn.node;)Pe=He(Pe);var Ei=xt&&st!=null&&st<=un&&pn.lineNumber;pn.changes&&(be(pn.changes,"gutter")>-1&&(Ei=!1),Ds(it,pn,un,ft)),Ei&&(ae(pn.lineNumber),pn.lineNumber.appendChild(document.createTextNode(er(it.options,un)))),Pe=pn.node.nextSibling}un+=pn.size}for(;Pe;)Pe=He(Pe)}function Ar(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Fr(it,st){it.display.sizer.style.minHeight=st.docHeight+"px",it.display.heightForcer.style.top=st.docHeight+"px",it.display.gutters.style.height=st.docHeight+it.display.barHeight+fu(it)+"px"}function ro(it){var st=it.display,ft=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var At=ed(st)-st.scroller.scrollLeft+it.doc.scrollLeft,xt=st.gutters.offsetWidth,te=At+"px",Pe=0;Pe<ft.length;Pe++)if(!ft[Pe].hidden){it.options.fixedGutter&&(ft[Pe].gutter&&(ft[Pe].gutter.style.left=te),ft[Pe].gutterBackground&&(ft[Pe].gutterBackground.style.left=te));var He=ft[Pe].alignable;if(He)for(var Re=0;Re<He.length;Re++)He[Re].style.left=te}it.options.fixedGutter&&(st.gutters.style.left=At+xt+"px")}}function Ti(it){if(!it.options.lineNumbers)return!1;var st=it.doc,ft=er(it.options,st.first+st.size-1),At=it.display;if(ft.length!=At.lineNumChars){var xt=At.measure.appendChild(pe("div",[pe("div",ft)],"CodeMirror-linenumber CodeMirror-gutter-elt")),te=xt.firstChild.offsetWidth,Pe=xt.offsetWidth-te;return At.lineGutter.style.width="",At.lineNumInnerWidth=Math.max(te,At.lineGutter.offsetWidth-Pe)+1,At.lineNumWidth=At.lineNumInnerWidth+Pe,At.lineNumChars=At.lineNumInnerWidth?ft.length:-1,At.lineGutter.style.width=At.lineNumWidth+"px",Ar(it.display),!0}return!1}function Jn(it,st){for(var ft=[],At=!1,xt=0;xt<it.length;xt++){var te=it[xt],Pe=null;if(typeof te!="string"&&(Pe=te.style,te=te.className),te=="CodeMirror-linenumbers")if(st)At=!0;else continue;ft.push({className:te,style:Pe})}return st&&!At&&ft.push({className:"CodeMirror-linenumbers",style:null}),ft}function xo(it){var st=it.gutters,ft=it.gutterSpecs;ae(st),it.lineGutter=null;for(var At=0;At<ft.length;++At){var xt=ft[At],te=xt.className,Pe=xt.style,He=st.appendChild(pe("div",null,"CodeMirror-gutter "+te));Pe&&(He.style.cssText=Pe),te=="CodeMirror-linenumbers"&&(it.lineGutter=He,He.style.width=(it.lineNumWidth||1)+"px")}st.style.display=ft.length?"":"none",Ar(it)}function br(it){xo(it.display),Ll(it),ro(it)}function ar(it,st,ft,At){var xt=this;this.input=ft,xt.scrollbarFiller=pe("div",null,"CodeMirror-scrollbar-filler"),xt.scrollbarFiller.setAttribute("cm-not-content","true"),xt.gutterFiller=pe("div",null,"CodeMirror-gutter-filler"),xt.gutterFiller.setAttribute("cm-not-content","true"),xt.lineDiv=Te("div",null,"CodeMirror-code"),xt.selectionDiv=pe("div",null,null,"position: relative; z-index: 1"),xt.cursorDiv=pe("div",null,"CodeMirror-cursors"),xt.measure=pe("div",null,"CodeMirror-measure"),xt.lineMeasure=pe("div",null,"CodeMirror-measure"),xt.lineSpace=Te("div",[xt.measure,xt.lineMeasure,xt.selectionDiv,xt.cursorDiv,xt.lineDiv],null,"position: relative; outline: none");var te=Te("div",[xt.lineSpace],"CodeMirror-lines");xt.mover=pe("div",[te],null,"position: relative"),xt.sizer=pe("div",[xt.mover],"CodeMirror-sizer"),xt.sizerWidth=null,xt.heightForcer=pe("div",null,null,"position: absolute; height: "+Fn+"px; width: 1px;"),xt.gutters=pe("div",null,"CodeMirror-gutters"),xt.lineGutter=null,xt.scroller=pe("div",[xt.sizer,xt.heightForcer,xt.gutters],"CodeMirror-scroll"),xt.scroller.setAttribute("tabIndex","-1"),xt.wrapper=pe("div",[xt.scrollbarFiller,xt.gutterFiller,xt.scroller],"CodeMirror"),re&&le<8&&(xt.gutters.style.zIndex=-1,xt.scroller.style.paddingRight=0),!Et&&!(Lt&&tt)&&(xt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(xt.wrapper):it(xt.wrapper)),xt.viewFrom=xt.viewTo=st.first,xt.reportedViewFrom=xt.reportedViewTo=st.first,xt.view=[],xt.renderedView=null,xt.externalMeasured=null,xt.viewOffset=0,xt.lastWrapHeight=xt.lastWrapWidth=0,xt.updateLineNumbers=null,xt.nativeBarWidth=xt.barHeight=xt.barWidth=0,xt.scrollbarsClipped=!1,xt.lineNumWidth=xt.lineNumInnerWidth=xt.lineNumChars=null,xt.alignWidgets=!1,xt.cachedCharWidth=xt.cachedTextHeight=xt.cachedPaddingH=null,xt.maxLine=null,xt.maxLineLength=0,xt.maxLineChanged=!1,xt.wheelDX=xt.wheelDY=xt.wheelStartX=xt.wheelStartY=null,xt.shift=!1,xt.selForContextMenu=null,xt.activeTouch=null,xt.gutterSpecs=Jn(At.gutters,At.lineNumbers),xo(xt),ft.init(xt)}var lr=0,nr=null;re?nr=-.53:Lt?nr=15:ee?nr=-.7:Wt&&(nr=-1/3);function vr(it){var st=it.wheelDeltaX,ft=it.wheelDeltaY;return st==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(st=it.detail),ft==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ft=it.detail:ft==null&&(ft=it.wheelDelta),{x:st,y:ft}}function Zr(it){var st=vr(it);return st.x*=nr,st.y*=nr,st}function co(it,st){var ft=vr(st),At=ft.x,xt=ft.y,te=it.display,Pe=te.scroller,He=Pe.scrollWidth>Pe.clientWidth,Re=Pe.scrollHeight>Pe.clientHeight;if(At&&He||xt&&Re){if(xt&&lt&&Et){t:for(var un=st.target,si=te.view;un!=Pe;un=un.parentNode)for(var pn=0;pn<si.length;pn++)if(si[pn].node==un){it.display.currentWheelTarget=un;break t}}if(At&&!Lt&&!Ct&&nr!=null){xt&&Re&&ei(it,Math.max(0,Pe.scrollTop+xt*nr)),Hn(it,Math.max(0,Pe.scrollLeft+At*nr)),(!xt||xt&&Re)&&xr(st),te.wheelStartX=null;return}if(xt&&nr!=null){var Oi=xt*nr,Ei=it.doc.scrollTop,Sr=Ei+te.wrapper.clientHeight;Oi<0?Ei=Math.max(0,Ei+Oi-50):Sr=Math.min(it.doc.height,Sr+Oi+50),Ji(it,{top:Ei,bottom:Sr})}lr<20&&(te.wheelStartX==null?(te.wheelStartX=Pe.scrollLeft,te.wheelStartY=Pe.scrollTop,te.wheelDX=At,te.wheelDY=xt,setTimeout(function(){if(te.wheelStartX!=null){var Dr=Pe.scrollLeft-te.wheelStartX,eo=Pe.scrollTop-te.wheelStartY,vo=eo&&te.wheelDY&&eo/te.wheelDY||Dr&&te.wheelDX&&Dr/te.wheelDX;te.wheelStartX=te.wheelStartY=null,vo&&(nr=(nr*lr+vo)/(lr+1),++lr)}},200)):(te.wheelDX+=At,te.wheelDY+=xt))}}var po=function(it,st){this.ranges=it,this.primIndex=st};po.prototype.primary=function(){return this.ranges[this.primIndex]},po.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var st=0;st<this.ranges.length;st++){var ft=this.ranges[st],At=it.ranges[st];if(!Pr(ft.anchor,At.anchor)||!Pr(ft.head,At.head))return!1}return!0},po.prototype.deepCopy=function(){for(var it=[],st=0;st<this.ranges.length;st++)it[st]=new Rr(rr(this.ranges[st].anchor),rr(this.ranges[st].head));return new po(it,this.primIndex)},po.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},po.prototype.contains=function(it,st){st||(st=it);for(var ft=0;ft<this.ranges.length;ft++){var At=this.ranges[ft];if(Si(st,At.from())>=0&&Si(it,At.to())<=0)return ft}return-1};var Rr=function(it,st){this.anchor=it,this.head=st};Rr.prototype.from=function(){return sr(this.anchor,this.head)},Rr.prototype.to=function(){return Kr(this.anchor,this.head)},Rr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Do(it,st,ft){var At=it&&it.options.selectionsMayTouch,xt=st[ft];st.sort(function(Oi,Ei){return Si(Oi.from(),Ei.from())}),ft=be(st,xt);for(var te=1;te<st.length;te++){var Pe=st[te],He=st[te-1],Re=Si(He.to(),Pe.from());if(At&&!Pe.empty()?Re>0:Re>=0){var un=sr(He.from(),Pe.from()),si=Kr(He.to(),Pe.to()),pn=He.empty()?Pe.from()==Pe.head:He.from()==He.head;te<=ft&&--ft,st.splice(--te,2,new Rr(pn?si:un,pn?un:si))}}return new po(st,ft)}function hs(it,st){return new po([new Rr(it,st||it)],0)}function $o(it){return it.text?On(it.from.line+it.text.length-1,sn(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function is(it,st){if(Si(it,st.from)<0)return it;if(Si(it,st.to)<=0)return $o(st);var ft=it.line+st.text.length-(st.to.line-st.from.line)-1,At=it.ch;return it.line==st.to.line&&(At+=$o(st).ch-st.to.ch),On(ft,At)}function yo(it,st){for(var ft=[],At=0;At<it.sel.ranges.length;At++){var xt=it.sel.ranges[At];ft.push(new Rr(is(xt.anchor,st),is(xt.head,st)))}return Do(it.cm,ft,it.sel.primIndex)}function pa(it,st,ft){return it.line==st.line?On(ft.line,it.ch-st.ch+ft.ch):On(ft.line+(it.line-st.line),it.ch)}function Wo(it,st,ft){for(var At=[],xt=On(it.first,0),te=xt,Pe=0;Pe<st.length;Pe++){var He=st[Pe],Re=pa(He.from,xt,te),un=pa($o(He),xt,te);if(xt=He.to,te=un,ft=="around"){var si=it.sel.ranges[Pe],pn=Si(si.head,si.anchor)<0;At[Pe]=new Rr(pn?un:Re,pn?Re:un)}else At[Pe]=new Rr(Re,Re)}return new po(At,it.sel.primIndex)}function rs(it){it.doc.mode=Qn(it.options,it.doc.modeOption),Cs(it)}function Cs(it){it.doc.iter(function(st){st.stateAfter&&(st.stateAfter=null),st.styles&&(st.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,ze(it,100),it.state.modeGen++,it.curOp&&Ll(it)}function qs(it,st){return st.from.ch==0&&st.to.ch==0&&sn(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Ua(it,st,ft,At){function xt(Zo){return ft?ft[Zo]:null}function te(Zo,No,as){Ks(Zo,No,as,At),Gr(Zo,"change",Zo,st)}function Pe(Zo,No){for(var as=[],ks=Zo;ks<No;++ks)as.push(new Ho(un[ks],xt(ks),At));return as}var He=st.from,Re=st.to,un=st.text,si=Bn(it,He.line),pn=Bn(it,Re.line),Oi=sn(un),Ei=xt(un.length-1),Sr=Re.line-He.line;if(st.full)it.insert(0,Pe(0,un.length)),it.remove(un.length,it.size-un.length);else if(qs(it,st)){var Dr=Pe(0,un.length-1);te(pn,pn.text,Ei),Sr&&it.remove(He.line,Sr),Dr.length&&it.insert(He.line,Dr)}else if(si==pn)if(un.length==1)te(si,si.text.slice(0,He.ch)+Oi+si.text.slice(Re.ch),Ei);else{var eo=Pe(1,un.length-1);eo.push(new Ho(Oi+si.text.slice(Re.ch),Ei,At)),te(si,si.text.slice(0,He.ch)+un[0],xt(0)),it.insert(He.line+1,eo)}else if(un.length==1)te(si,si.text.slice(0,He.ch)+un[0]+pn.text.slice(Re.ch),xt(0)),it.remove(He.line+1,Sr);else{te(si,si.text.slice(0,He.ch)+un[0],xt(0)),te(pn,Oi+pn.text.slice(Re.ch),Ei);var vo=Pe(1,un.length-1);Sr>1&&it.remove(He.line+1,Sr-1),it.insert(He.line+1,vo)}Gr(it,"change",it,st)}function $s(it,st,ft){function At(xt,te,Pe){if(xt.linked)for(var He=0;He<xt.linked.length;++He){var Re=xt.linked[He];if(Re.doc!=te){var un=Pe&&Re.sharedHist;ft&&!un||(st(Re.doc,un),At(Re.doc,xt,un))}}}At(it,null,!0)}function Qo(it,st){if(st.cm)throw new Error("This document is already in use.");it.doc=st,st.cm=it,ys(it),rs(it),zo(it),it.options.lineWrapping||Js(it),it.options.mode=st.modeOption,Ll(it)}function zo(it){(it.doc.direction=="rtl"?$e:Rt)(it.display.lineDiv,"CodeMirror-rtl")}function gs(it){on(it,function(){zo(it),Ll(it)})}function es(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function Os(it,st){var ft={from:rr(st.from),to:$o(st),text:_n(it,st.from,st.to)};return Ps(it,ft,st.from.line,st.to.line+1),$s(it,function(At){return Ps(At,ft,st.from.line,st.to.line+1)},!0),ft}function oo(it){for(;it.length;){var st=sn(it);if(st.ranges)it.pop();else break}}function Go(it,st){if(st)return oo(it.done),sn(it.done);if(it.done.length&&!sn(it.done).ranges)return sn(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),sn(it.done)}function aa(it,st,ft,At){var xt=it.history;xt.undone.length=0;var te=+new Date,Pe,He;if((xt.lastOp==At||xt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&xt.lastModTime>te-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(Pe=Go(xt,xt.lastOp==At)))He=sn(Pe.changes),Si(st.from,st.to)==0&&Si(st.from,He.to)==0?He.to=$o(st):Pe.changes.push(Os(it,st));else{var Re=sn(xt.done);for((!Re||!Re.ranges)&&Ml(it.sel,xt.done),Pe={changes:[Os(it,st)],generation:xt.generation},xt.done.push(Pe);xt.done.length>xt.undoDepth;)xt.done.shift(),xt.done[0].ranges||xt.done.shift()}xt.done.push(ft),xt.generation=++xt.maxGeneration,xt.lastModTime=xt.lastSelTime=te,xt.lastOp=xt.lastSelOp=At,xt.lastOrigin=xt.lastSelOrigin=st.origin,He||xn(it,"historyAdded")}function Us(it,st,ft,At){var xt=st.charAt(0);return xt=="*"||xt=="+"&&ft.ranges.length==At.ranges.length&&ft.somethingSelected()==At.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function zl(it,st,ft,At){var xt=it.history,te=At&&At.origin;ft==xt.lastSelOp||te&&xt.lastSelOrigin==te&&(xt.lastModTime==xt.lastSelTime&&xt.lastOrigin==te||Us(it,te,sn(xt.done),st))?xt.done[xt.done.length-1]=st:Ml(st,xt.done),xt.lastSelTime=+new Date,xt.lastSelOrigin=te,xt.lastSelOp=ft,At&&At.clearRedo!==!1&&oo(xt.undone)}function Ml(it,st){var ft=sn(st);ft&&ft.ranges&&ft.equals(it)||st.push(it)}function Ps(it,st,ft,At){var xt=st["spans_"+it.id],te=0;it.iter(Math.max(it.first,ft),Math.min(it.first+it.size,At),function(Pe){Pe.markedSpans&&((xt||(xt=st["spans_"+it.id]={}))[te]=Pe.markedSpans),++te})}function ua(it){if(!it)return null;for(var st,ft=0;ft<it.length;++ft)it[ft].marker.explicitlyCleared?st||(st=it.slice(0,ft)):st&&st.push(it[ft]);return st?st.length?st:null:it}function Ul(it,st){var ft=st["spans_"+it.id];if(!ft)return null;for(var At=[],xt=0;xt<st.text.length;++xt)At.push(ua(ft[xt]));return At}function fo(it,st){var ft=Ul(it,st),At=jo(it,st);if(!ft)return At;if(!At)return ft;for(var xt=0;xt<ft.length;++xt){var te=ft[xt],Pe=At[xt];if(te&&Pe)t:for(var He=0;He<Pe.length;++He){for(var Re=Pe[He],un=0;un<te.length;++un)if(te[un].marker==Re.marker)continue t;te.push(Re)}else Pe&&(ft[xt]=Pe)}return ft}function Ra(it,st,ft){for(var At=[],xt=0;xt<it.length;++xt){var te=it[xt];if(te.ranges){At.push(ft?po.prototype.deepCopy.call(te):te);continue}var Pe=te.changes,He=[];At.push({changes:He});for(var Re=0;Re<Pe.length;++Re){var un=Pe[Re],si=void 0;if(He.push({from:un.from,to:un.to,text:un.text}),st)for(var pn in un)(si=pn.match(/^spans_(\d+)$/))&&be(st,Number(si[1]))>-1&&(sn(He)[pn]=un[pn],delete un[pn])}}return At}function Gl(it,st,ft,At){if(At){var xt=it.anchor;if(ft){var te=Si(st,xt)<0;te!=Si(ft,xt)<0?(xt=st,st=ft):te!=Si(st,ft)<0&&(st=ft)}return new Rr(xt,st)}else return new Rr(ft||st,st)}function ta(it,st,ft,At,xt){xt==null&&(xt=it.cm&&(it.cm.display.shift||it.extend)),Ta(it,new po([Gl(it.sel.primary(),st,ft,xt)],0),At)}function la(it,st,ft){for(var At=[],xt=it.cm&&(it.cm.display.shift||it.extend),te=0;te<it.sel.ranges.length;te++)At[te]=Gl(it.sel.ranges[te],st[te],null,xt);var Pe=Do(it.cm,At,it.sel.primIndex);Ta(it,Pe,ft)}function ka(it,st,ft,At){var xt=it.sel.ranges.slice(0);xt[st]=ft,Ta(it,Do(it.cm,xt,it.sel.primIndex),At)}function $a(it,st,ft,At){Ta(it,hs(st,ft),At)}function ll(it,st,ft){var At={ranges:st.ranges,update:function(xt){this.ranges=[];for(var te=0;te<xt.length;te++)this.ranges[te]=new Rr(dr(it,xt[te].anchor),dr(it,xt[te].head))},origin:ft&&ft.origin};return xn(it,"beforeSelectionChange",it,At),it.cm&&xn(it.cm,"beforeSelectionChange",it.cm,At),At.ranges!=st.ranges?Do(it.cm,At.ranges,At.ranges.length-1):st}function Rs(it,st,ft){var At=it.history.done,xt=sn(At);xt&&xt.ranges?(At[At.length-1]=st,Sl(it,st,ft)):Ta(it,st,ft)}function Ta(it,st,ft){Sl(it,st,ft),zl(it,it.sel,it.cm?it.cm.curOp.id:NaN,ft)}function Sl(it,st,ft){(Wi(it,"beforeSelectionChange")||it.cm&&Wi(it.cm,"beforeSelectionChange"))&&(st=ll(it,st,ft));var At=ft&&ft.bias||(Si(st.primary().head,it.sel.primary().head)<0?-1:1);pu(it,Ru(it,st,At,!0)),!(ft&&ft.scroll===!1)&&it.cm&&fn(it.cm)}function pu(it,st){st.equals(it.sel)||(it.sel=st,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,Qi(it.cm)),Gr(it,"cursorActivity",it))}function uu(it){pu(it,Ru(it,it.sel,null,!1))}function Ru(it,st,ft,At){for(var xt,te=0;te<st.ranges.length;te++){var Pe=st.ranges[te],He=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[te],Re=Ah(it,Pe.anchor,He&&He.anchor,ft,At),un=Ah(it,Pe.head,He&&He.head,ft,At);(xt||Re!=Pe.anchor||un!=Pe.head)&&(xt||(xt=st.ranges.slice(0,te)),xt[te]=new Rr(Re,un))}return xt?Do(it.cm,xt,st.primIndex):st}function $u(it,st,ft,At,xt){var te=Bn(it,st.line);if(te.markedSpans)for(var Pe=0;Pe<te.markedSpans.length;++Pe){var He=te.markedSpans[Pe],Re=He.marker,un="selectLeft"in Re?!Re.selectLeft:Re.inclusiveLeft,si="selectRight"in Re?!Re.selectRight:Re.inclusiveRight;if((He.from==null||(un?He.from<=st.ch:He.from<st.ch))&&(He.to==null||(si?He.to>=st.ch:He.to>st.ch))){if(xt&&(xn(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(te.markedSpans){--Pe;continue}else break;if(!Re.atomic)continue;if(ft){var pn=Re.find(At<0?1:-1),Oi=void 0;if((At<0?si:un)&&(pn=Yu(it,pn,-At,pn&&pn.line==st.line?te:null)),pn&&pn.line==st.line&&(Oi=Si(pn,ft))&&(At<0?Oi<0:Oi>0))return $u(it,pn,st,At,xt)}var Ei=Re.find(At<0?-1:1);return(At<0?un:si)&&(Ei=Yu(it,Ei,At,Ei.line==st.line?te:null)),Ei?$u(it,Ei,st,At,xt):null}}return st}function Ah(it,st,ft,At,xt){var te=At||1,Pe=$u(it,st,ft,te,xt)||!xt&&$u(it,st,ft,te,!0)||$u(it,st,ft,-te,xt)||!xt&&$u(it,st,ft,-te,!0);return Pe||(it.cantEdit=!0,On(it.first,0))}function Yu(it,st,ft,At){return ft<0&&st.ch==0?st.line>it.first?dr(it,On(st.line-1)):null:ft>0&&st.ch==(At||Bn(it,st.line)).text.length?st.line<it.first+it.size-1?On(st.line+1,0):null:new On(st.line,st.ch+ft)}function Ha(it){it.setSelection(On(it.firstLine(),0),On(it.lastLine()),Xe)}function Bu(it,st,ft){var At={canceled:!1,from:st.from,to:st.to,text:st.text,origin:st.origin,cancel:function(){return At.canceled=!0}};return ft&&(At.update=function(xt,te,Pe,He){xt&&(At.from=dr(it,xt)),te&&(At.to=dr(it,te)),Pe&&(At.text=Pe),He!==void 0&&(At.origin=He)}),xn(it,"beforeChange",it,At),it.cm&&xn(it.cm,"beforeChange",it.cm,At),At.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:At.from,to:At.to,text:At.text,origin:At.origin}}function Rl(it,st,ft){if(it.cm){if(!it.cm.curOp)return Dn(it.cm,Rl)(it,st,ft);if(it.cm.state.suppressEdits)return}if(!((Wi(it,"beforeChange")||it.cm&&Wi(it.cm,"beforeChange"))&&(st=Bu(it,st,!0),!st))){var At=kr&&!ft&&us(it,st.from,st.to);if(At)for(var xt=At.length-1;xt>=0;--xt)il(it,{from:At[xt].from,to:At[xt].to,text:xt?[""]:st.text,origin:st.origin});else il(it,st)}}function il(it,st){if(!(st.text.length==1&&st.text[0]==""&&Si(st.from,st.to)==0)){var ft=yo(it,st);aa(it,st,ft,it.cm?it.cm.curOp.id:NaN),yh(it,st,ft,jo(it,st));var At=[];$s(it,function(xt,te){!te&&be(At,xt.history)==-1&&(Cl(xt.history,st),At.push(xt.history)),yh(xt,st,null,jo(xt,st))})}}function vh(it,st,ft){var At=it.cm&&it.cm.state.suppressEdits;if(!(At&&!ft)){for(var xt=it.history,te,Pe=it.sel,He=st=="undo"?xt.done:xt.undone,Re=st=="undo"?xt.undone:xt.done,un=0;un<He.length&&(te=He[un],!(ft?te.ranges&&!te.equals(it.sel):!te.ranges));un++);if(un!=He.length){for(xt.lastOrigin=xt.lastSelOrigin=null;;)if(te=He.pop(),te.ranges){if(Ml(te,Re),ft&&!te.equals(it.sel)){Ta(it,te,{clearRedo:!1});return}Pe=te}else if(At){He.push(te);return}else break;var si=[];Ml(Pe,Re),Re.push({changes:si,generation:xt.generation}),xt.generation=te.generation||++xt.maxGeneration;for(var pn=Wi(it,"beforeChange")||it.cm&&Wi(it.cm,"beforeChange"),Oi=function(Dr){var eo=te.changes[Dr];if(eo.origin=st,pn&&!Bu(it,eo,!1))return He.length=0,{};si.push(Os(it,eo));var vo=Dr?yo(it,eo):sn(He);yh(it,eo,vo,fo(it,eo)),!Dr&&it.cm&&it.cm.scrollIntoView({from:eo.from,to:$o(eo)});var Zo=[];$s(it,function(No,as){!as&&be(Zo,No.history)==-1&&(Cl(No.history,eo),Zo.push(No.history)),yh(No,eo,null,fo(No,eo))})},Ei=te.changes.length-1;Ei>=0;--Ei){var Sr=Oi(Ei);if(Sr)return Sr.v}}}}function Cc(it,st){if(st!=0&&(it.first+=st,it.sel=new po(Li(it.sel.ranges,function(xt){return new Rr(On(xt.anchor.line+st,xt.anchor.ch),On(xt.head.line+st,xt.head.ch))}),it.sel.primIndex),it.cm)){Ll(it.cm,it.first,it.first-st,st);for(var ft=it.cm.display,At=ft.viewFrom;At<ft.viewTo;At++)ra(it.cm,At,"gutter")}}function yh(it,st,ft,At){if(it.cm&&!it.cm.curOp)return Dn(it.cm,yh)(it,st,ft,At);if(st.to.line<it.first){Cc(it,st.text.length-1-(st.to.line-st.from.line));return}if(!(st.from.line>it.lastLine())){if(st.from.line<it.first){var xt=st.text.length-1-(it.first-st.from.line);Cc(it,xt),st={from:On(it.first,0),to:On(st.to.line+xt,st.to.ch),text:[sn(st.text)],origin:st.origin}}var te=it.lastLine();st.to.line>te&&(st={from:st.from,to:On(te,Bn(it,te).text.length),text:[st.text[0]],origin:st.origin}),st.removed=_n(it,st.from,st.to),ft||(ft=yo(it,st)),it.cm?rc(it.cm,st,At):Ua(it,st,At),Sl(it,ft,Xe),it.cantEdit&&Ah(it,On(it.firstLine(),0))&&(it.cantEdit=!1)}}function rc(it,st,ft){var At=it.doc,xt=it.display,te=st.from,Pe=st.to,He=!1,Re=te.line;it.options.lineWrapping||(Re=mn(ts(Bn(At,te.line))),At.iter(Re,Pe.line+1,function(Ei){if(Ei==xt.maxLine)return He=!0,!0})),At.sel.contains(st.from,st.to)>-1&&Qi(it),Ua(At,st,ft,nl(it)),it.options.lineWrapping||(At.iter(Re,te.line+st.text.length,function(Ei){var Sr=Fa(Ei);Sr>xt.maxLineLength&&(xt.maxLine=Ei,xt.maxLineLength=Sr,xt.maxLineChanged=!0,He=!1)}),He&&(it.curOp.updateMaxLine=!0)),Hr(At,te.line),ze(it,400);var un=st.text.length-(Pe.line-te.line)-1;st.full?Ll(it):te.line==Pe.line&&st.text.length==1&&!qs(it.doc,st)?ra(it,te.line,"text"):Ll(it,te.line,Pe.line+1,un);var si=Wi(it,"changes"),pn=Wi(it,"change");if(pn||si){var Oi={from:te,to:Pe,text:st.text,removed:st.removed,origin:st.origin};pn&&Gr(it,"change",it,Oi),si&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Oi)}it.display.selForContextMenu=null}function oc(it,st,ft,At,xt){var te;At||(At=ft),Si(At,ft)<0&&(te=[At,ft],ft=te[0],At=te[1]),typeof st=="string"&&(st=it.splitLines(st)),Rl(it,{from:ft,to:At,text:st,origin:xt})}function wh(it,st,ft,At){ft<it.line?it.line+=At:st<it.line&&(it.line=st,it.ch=0)}function da(it,st,ft,At){for(var xt=0;xt<it.length;++xt){var te=it[xt],Pe=!0;if(te.ranges){te.copied||(te=it[xt]=te.deepCopy(),te.copied=!0);for(var He=0;He<te.ranges.length;He++)wh(te.ranges[He].anchor,st,ft,At),wh(te.ranges[He].head,st,ft,At);continue}for(var Re=0;Re<te.changes.length;++Re){var un=te.changes[Re];if(ft<un.from.line)un.from=On(un.from.line+At,un.from.ch),un.to=On(un.to.line+At,un.to.ch);else if(st<=un.to.line){Pe=!1;break}}Pe||(it.splice(0,xt+1),xt=0)}}function Cl(it,st){var ft=st.from.line,At=st.to.line,xt=st.text.length-(At-ft)-1;da(it.done,ft,At,xt),da(it.undone,ft,At,xt)}function Ca(it,st,ft,At){var xt=st,te=st;return typeof st=="number"?te=Bn(it,Br(it,st)):xt=mn(st),xt==null?null:(At(te,xt)&&it.cm&&ra(it.cm,xt,ft),te)}function gl(it){this.lines=it,this.parent=null;for(var st=0,ft=0;ft<it.length;++ft)it[ft].parent=this,st+=it[ft].height;this.height=st}gl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,st){for(var ft=it,At=it+st;ft<At;++ft){var xt=this.lines[ft];this.height-=xt.height,yl(xt),Gr(xt,"delete")}this.lines.splice(it,st)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,st,ft){this.height+=ft,this.lines=this.lines.slice(0,it).concat(st).concat(this.lines.slice(it));for(var At=0;At<st.length;++At)st[At].parent=this},iterN:function(it,st,ft){for(var At=it+st;it<At;++it)if(ft(this.lines[it]))return!0}};function Aa(it){this.children=it;for(var st=0,ft=0,At=0;At<it.length;++At){var xt=it[At];st+=xt.chunkSize(),ft+=xt.height,xt.parent=this}this.size=st,this.height=ft,this.parent=null}Aa.prototype={chunkSize:function(){return this.size},removeInner:function(it,st){this.size-=st;for(var ft=0;ft<this.children.length;++ft){var At=this.children[ft],xt=At.chunkSize();if(it<xt){var te=Math.min(st,xt-it),Pe=At.height;if(At.removeInner(it,te),this.height-=Pe-At.height,xt==te&&(this.children.splice(ft--,1),At.parent=null),(st-=te)==0)break;it=0}else it-=xt}if(this.size-st<25&&(this.children.length>1||!(this.children[0]instanceof gl))){var He=[];this.collapse(He),this.children=[new gl(He)],this.children[0].parent=this}},collapse:function(it){for(var st=0;st<this.children.length;++st)this.children[st].collapse(it)},insertInner:function(it,st,ft){this.size+=st.length,this.height+=ft;for(var At=0;At<this.children.length;++At){var xt=this.children[At],te=xt.chunkSize();if(it<=te){if(xt.insertInner(it,st,ft),xt.lines&&xt.lines.length>50){for(var Pe=xt.lines.length%25+25,He=Pe;He<xt.lines.length;){var Re=new gl(xt.lines.slice(He,He+=25));xt.height-=Re.height,this.children.splice(++At,0,Re),Re.parent=this}xt.lines=xt.lines.slice(0,Pe),this.maybeSpill()}break}it-=te}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var st=it.children.splice(it.children.length-5,5),ft=new Aa(st);if(it.parent){it.size-=ft.size,it.height-=ft.height;var xt=be(it.parent.children,it);it.parent.children.splice(xt+1,0,ft)}else{var At=new Aa(it.children);At.parent=it,it.children=[At,ft],it=At}ft.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,st,ft){for(var At=0;At<this.children.length;++At){var xt=this.children[At],te=xt.chunkSize();if(it<te){var Pe=Math.min(st,te-it);if(xt.iterN(it,Pe,ft))return!0;if((st-=Pe)==0)break;it=0}else it-=te}}};var hu=function(it,st,ft){if(ft)for(var At in ft)ft.hasOwnProperty(At)&&(this[At]=ft[At]);this.doc=it,this.node=st};hu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,ft=this.line,At=mn(ft);if(!(At==null||!st)){for(var xt=0;xt<st.length;++xt)st[xt]==this&&st.splice(xt--,1);st.length||(ft.widgets=null);var te=qa(this);ni(ft,Math.max(0,ft.height-te)),it&&(on(it,function(){Fu(it,ft,-te),ra(it,At,"widget")}),Gr(it,"lineWidgetCleared",it,this,At))}},hu.prototype.changed=function(){var it=this,st=this.height,ft=this.doc.cm,At=this.line;this.height=null;var xt=qa(this)-st;xt&&(Gi(this.doc,At)||ni(At,At.height+xt),ft&&on(ft,function(){ft.curOp.forceUpdate=!0,Fu(ft,At,xt),Gr(ft,"lineWidgetChanged",ft,it,mn(At))}))},pr(hu);function Fu(it,st,ft){Gs(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Je(it,ft)}function Kh(it,st,ft,At){var xt=new hu(it,ft,At),te=it.cm;return te&&xt.noHScroll&&(te.display.alignWidgets=!0),Ca(it,st,"widget",function(Pe){var He=Pe.widgets||(Pe.widgets=[]);if(xt.insertAt==null?He.push(xt):He.splice(Math.min(He.length-1,Math.max(0,xt.insertAt)),0,xt),xt.line=Pe,te&&!Gi(it,Pe)){var Re=Gs(Pe)<it.scrollTop;ni(Pe,Pe.height+qa(xt)),Re&&Je(te,xt.height),te.curOp.forceUpdate=!0}return!0}),te&&Gr(te,"lineWidgetAdded",te,xt,typeof st=="number"?st:mn(st)),xt}var Th=0,Kn=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Th};Kn.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&Or(it),Wi(this,"clear")){var ft=this.find();ft&&Gr(this,"clear",ft.from,ft.to)}for(var At=null,xt=null,te=0;te<this.lines.length;++te){var Pe=this.lines[te],He=ha(Pe.markedSpans,this);it&&!this.collapsed?ra(it,mn(Pe),"text"):it&&(He.to!=null&&(xt=mn(Pe)),He.from!=null&&(At=mn(Pe))),Pe.markedSpans=fs(Pe.markedSpans,He),He.from==null&&this.collapsed&&!Gi(this.doc,Pe)&&it&&ni(Pe,Wu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Re=0;Re<this.lines.length;++Re){var un=ts(this.lines[Re]),si=Fa(un);si>it.display.maxLineLength&&(it.display.maxLine=un,it.display.maxLineLength=si,it.display.maxLineChanged=!0)}At!=null&&it&&this.collapsed&&Ll(it,At,xt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&uu(it.doc)),it&&Gr(it,"markerCleared",it,this,At,xt),st&&qn(it),this.parent&&this.parent.clear()}},Kn.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var ft,At,xt=0;xt<this.lines.length;++xt){var te=this.lines[xt],Pe=ha(te.markedSpans,this);if(Pe.from!=null&&(ft=On(st?te:mn(te),Pe.from),it==-1))return ft;if(Pe.to!=null&&(At=On(st?te:mn(te),Pe.to),it==1))return At}return ft&&{from:ft,to:At}},Kn.prototype.changed=function(){var it=this,st=this.find(-1,!0),ft=this,At=this.doc.cm;!st||!At||on(At,function(){var xt=st.line,te=mn(st.line),Pe=nc(At,te);if(Pe&&(Uu(Pe),At.curOp.selectionChanged=At.curOp.forceUpdate=!0),At.curOp.updateMaxLine=!0,!Gi(ft.doc,xt)&&ft.height!=null){var He=ft.height;ft.height=null;var Re=qa(ft)-He;Re&&ni(xt,xt.height+Re)}Gr(At,"markerChanged",At,it)})},Kn.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(!st.maybeHiddenMarkers||be(st.maybeHiddenMarkers,this)==-1)&&(st.maybeUnhiddenMarkers||(st.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Kn.prototype.detachLine=function(it){if(this.lines.splice(be(this.lines,it),1),!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(st.maybeHiddenMarkers||(st.maybeHiddenMarkers=[])).push(this)}},pr(Kn);function Hu(it,st,ft,At,xt){if(At&&At.shared)return lA(it,st,ft,At,xt);if(it.cm&&!it.cm.curOp)return Dn(it.cm,Hu)(it,st,ft,At,xt);var te=new Kn(it,xt),Pe=Si(st,ft);if(At&&_e(At,te,!1),Pe>0||Pe==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=Te("span",[te.replacedWith],"CodeMirror-widget"),At.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),At.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if(ia(it,st.line,st,ft,te)||st.line!=ft.line&&ia(it,ft.line,st,ft,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pi()}te.addToHistory&&aa(it,{from:st,to:ft,origin:"markText"},it.sel,NaN);var He=st.line,Re=it.cm,un;if(it.iter(He,ft.line+1,function(pn){Re&&te.collapsed&&!Re.options.lineWrapping&&ts(pn)==Re.display.maxLine&&(un=!0),te.collapsed&&He!=st.line&&ni(pn,0),ba(pn,new Xo(te,He==st.line?st.ch:null,He==ft.line?ft.ch:null)),++He}),te.collapsed&&it.iter(st.line,ft.line+1,function(pn){Gi(it,pn)&&ni(pn,0)}),te.clearOnEnter&&Ie(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&(Po(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),te.collapsed&&(te.id=++Th,te.atomic=!0),Re){if(un&&(Re.curOp.updateMaxLine=!0),te.collapsed)Ll(Re,st.line,ft.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var si=st.line;si<=ft.line;si++)ra(Re,si,"text");te.atomic&&uu(Re.doc),Gr(Re,"markerAdded",Re,te)}return te}var Oh=function(it,st){this.markers=it,this.primary=st;for(var ft=0;ft<it.length;++ft)it[ft].parent=this};Oh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Gr(this,"clear")}},Oh.prototype.find=function(it,st){return this.primary.find(it,st)},pr(Oh);function lA(it,st,ft,At,xt){At=_e(At),At.shared=!1;var te=[Hu(it,st,ft,At,xt)],Pe=te[0],He=At.widgetNode;return $s(it,function(Re){He&&(At.widgetNode=He.cloneNode(!0)),te.push(Hu(Re,dr(Re,st),dr(Re,ft),At,xt));for(var un=0;un<Re.linked.length;++un)if(Re.linked[un].isParent)return;Pe=sn(te)}),new Oh(te,Pe)}function nd(it){return it.findMarks(On(it.first,0),it.clipPos(On(it.lastLine())),function(st){return st.parent})}function gc(it,st){for(var ft=0;ft<st.length;ft++){var At=st[ft],xt=At.find(),te=it.clipPos(xt.from),Pe=it.clipPos(xt.to);if(Si(te,Pe)){var He=Hu(it,te,Pe,At.primary,At.primary.type);At.markers.push(He),He.parent=At}}}function xd(it){for(var st=function(At){var xt=it[At],te=[xt.primary.doc];$s(xt.primary.doc,function(Re){return te.push(Re)});for(var Pe=0;Pe<xt.markers.length;Pe++){var He=xt.markers[Pe];be(te,He.doc)==-1&&(He.parent=null,xt.markers.splice(Pe--,1))}},ft=0;ft<it.length;ft++)st(ft)}var SA=0,Lu=function(it,st,ft,At,xt){if(!(this instanceof Lu))return new Lu(it,st,ft,At,xt);ft==null&&(ft=0),Aa.call(this,[new gl([new Ho("",null)])]),this.first=ft,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ft;var te=On(ft,0);this.sel=hs(te),this.history=new es(null),this.id=++SA,this.modeOption=st,this.lineSep=At,this.direction=xt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Ua(this,{from:te,to:te,text:it}),Ta(this,hs(te),Xe)};Lu.prototype=hn(Aa.prototype,{constructor:Lu,iter:function(it,st,ft){ft?this.iterN(it-this.first,st-it,ft):this.iterN(this.first,this.first+this.size,it)},insert:function(it,st){for(var ft=0,At=0;At<st.length;++At)ft+=st[At].height;this.insertInner(it-this.first,st,ft)},remove:function(it,st){this.removeInner(it-this.first,st)},getValue:function(it){var st=Ii(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:ti(function(it){var st=On(this.first,0),ft=this.first+this.size-1;Rl(this,{from:st,to:On(ft,Bn(this,ft).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&gn(this.cm,0,0),Ta(this,hs(st),Xe)}),replaceRange:function(it,st,ft,At){st=dr(this,st),ft=ft?dr(this,ft):st,oc(this,it,st,ft,At)},getRange:function(it,st,ft){var At=_n(this,dr(this,it),dr(this,st));return ft===!1?At:At.join(ft||this.lineSeparator())},getLine:function(it){var st=this.getLineHandle(it);return st&&st.text},getLineHandle:function(it){if(Mi(this,it))return Bn(this,it)},getLineNumber:function(it){return mn(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=Bn(this,it)),ts(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return dr(this,it)},getCursor:function(it){var st=this.sel.primary(),ft;return it==null||it=="head"?ft=st.head:it=="anchor"?ft=st.anchor:it=="end"||it=="to"||it===!1?ft=st.to():ft=st.from(),ft},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ti(function(it,st,ft){$a(this,dr(this,typeof it=="number"?On(it,st||0):it),null,ft)}),setSelection:ti(function(it,st,ft){$a(this,dr(this,it),dr(this,st||it),ft)}),extendSelection:ti(function(it,st,ft){ta(this,dr(this,it),st&&dr(this,st),ft)}),extendSelections:ti(function(it,st){la(this,ao(this,it),st)}),extendSelectionsBy:ti(function(it,st){var ft=Li(this.sel.ranges,it);la(this,ao(this,ft),st)}),setSelections:ti(function(it,st,ft){if(it.length){for(var At=[],xt=0;xt<it.length;xt++)At[xt]=new Rr(dr(this,it[xt].anchor),dr(this,it[xt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Ta(this,Do(this.cm,At,st),ft)}}),addSelection:ti(function(it,st,ft){var At=this.sel.ranges.slice(0);At.push(new Rr(dr(this,it),dr(this,st||it))),Ta(this,Do(this.cm,At,At.length-1),ft)}),getSelection:function(it){for(var st=this.sel.ranges,ft,At=0;At<st.length;At++){var xt=_n(this,st[At].from(),st[At].to());ft=ft?ft.concat(xt):xt}return it===!1?ft:ft.join(it||this.lineSeparator())},getSelections:function(it){for(var st=[],ft=this.sel.ranges,At=0;At<ft.length;At++){var xt=_n(this,ft[At].from(),ft[At].to());it!==!1&&(xt=xt.join(it||this.lineSeparator())),st[At]=xt}return st},replaceSelection:function(it,st,ft){for(var At=[],xt=0;xt<this.sel.ranges.length;xt++)At[xt]=it;this.replaceSelections(At,st,ft||"+input")},replaceSelections:ti(function(it,st,ft){for(var At=[],xt=this.sel,te=0;te<xt.ranges.length;te++){var Pe=xt.ranges[te];At[te]={from:Pe.from(),to:Pe.to(),text:this.splitLines(it[te]),origin:ft}}for(var He=st&&st!="end"&&Wo(this,At,st),Re=At.length-1;Re>=0;Re--)Rl(this,At[Re]);He?Rs(this,He):this.cm&&fn(this.cm)}),undo:ti(function(){vh(this,"undo")}),redo:ti(function(){vh(this,"redo")}),undoSelection:ti(function(){vh(this,"undo",!0)}),redoSelection:ti(function(){vh(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,ft=0,At=0;At<it.done.length;At++)it.done[At].ranges||++st;for(var xt=0;xt<it.undone.length;xt++)it.undone[xt].ranges||++ft;return{undo:st,redo:ft}},clearHistory:function(){var it=this;this.history=new es(this.history.maxGeneration),$s(this,function(st){return st.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:Ra(this.history.done),undone:Ra(this.history.undone)}},setHistory:function(it){var st=this.history=new es(this.history.maxGeneration);st.done=Ra(it.done.slice(0),null,!0),st.undone=Ra(it.undone.slice(0),null,!0)},setGutterMarker:ti(function(it,st,ft){return Ca(this,it,"gutter",function(At){var xt=At.gutterMarkers||(At.gutterMarkers={});return xt[st]=ft,!ft&&Kt(xt)&&(At.gutterMarkers=null),!0})}),clearGutter:ti(function(it){var st=this;this.iter(function(ft){ft.gutterMarkers&&ft.gutterMarkers[it]&&Ca(st,ft,"gutter",function(){return ft.gutterMarkers[it]=null,Kt(ft.gutterMarkers)&&(ft.gutterMarkers=null),!0})})}),lineInfo:function(it){var st;if(typeof it=="number"){if(!Mi(this,it)||(st=it,it=Bn(this,it),!it))return null}else if(st=mn(it),st==null)return null;return{line:st,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:ti(function(it,st,ft){return Ca(this,it,st=="gutter"?"gutter":"class",function(At){var xt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass";if(!At[xt])At[xt]=ft;else{if(jt(ft).test(At[xt]))return!1;At[xt]+=" "+ft}return!0})}),removeLineClass:ti(function(it,st,ft){return Ca(this,it,st=="gutter"?"gutter":"class",function(At){var xt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass",te=At[xt];if(te)if(ft==null)At[xt]=null;else{var Pe=te.match(jt(ft));if(!Pe)return!1;var He=Pe.index+Pe[0].length;At[xt]=te.slice(0,Pe.index)+(!Pe.index||He==te.length?"":" ")+te.slice(He)||null}else return!1;return!0})}),addLineWidget:ti(function(it,st,ft){return Kh(this,it,st,ft)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,ft){return Hu(this,dr(this,it),dr(this,st),ft,ft&&ft.type||"range")},setBookmark:function(it,st){var ft={replacedWith:st&&(st.nodeType==null?st.widget:st),insertLeft:st&&st.insertLeft,clearWhenEmpty:!1,shared:st&&st.shared,handleMouseEvents:st&&st.handleMouseEvents};return it=dr(this,it),Hu(this,it,it,ft,"bookmark")},findMarksAt:function(it){it=dr(this,it);var st=[],ft=Bn(this,it.line).markedSpans;if(ft)for(var At=0;At<ft.length;++At){var xt=ft[At];(xt.from==null||xt.from<=it.ch)&&(xt.to==null||xt.to>=it.ch)&&st.push(xt.marker.parent||xt.marker)}return st},findMarks:function(it,st,ft){it=dr(this,it),st=dr(this,st);var At=[],xt=it.line;return this.iter(it.line,st.line+1,function(te){var Pe=te.markedSpans;if(Pe)for(var He=0;He<Pe.length;He++){var Re=Pe[He];!(Re.to!=null&&xt==it.line&&it.ch>=Re.to||Re.from==null&&xt!=it.line||Re.from!=null&&xt==st.line&&Re.from>=st.ch)&&(!ft||ft(Re.marker))&&At.push(Re.marker.parent||Re.marker)}++xt}),At},getAllMarks:function(){var it=[];return this.iter(function(st){var ft=st.markedSpans;if(ft)for(var At=0;At<ft.length;++At)ft[At].from!=null&&it.push(ft[At].marker)}),it},posFromIndex:function(it){var st,ft=this.first,At=this.lineSeparator().length;return this.iter(function(xt){var te=xt.text.length+At;if(te>it)return st=it,!0;it-=te,++ft}),dr(this,On(ft,st))},indexFromPos:function(it){it=dr(this,it);var st=it.ch;if(it.line<this.first||it.ch<0)return 0;var ft=this.lineSeparator().length;return this.iter(this.first,it.line,function(At){st+=At.text.length+ft}),st},copy:function(it){var st=new Lu(Ii(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return st.scrollTop=this.scrollTop,st.scrollLeft=this.scrollLeft,st.sel=this.sel,st.extend=!1,it&&(st.history.undoDepth=this.history.undoDepth,st.setHistory(this.getHistory())),st},linkedDoc:function(it){it||(it={});var st=this.first,ft=this.first+this.size;it.from!=null&&it.from>st&&(st=it.from),it.to!=null&&it.to<ft&&(ft=it.to);var At=new Lu(Ii(this,st,ft),it.mode||this.modeOption,st,this.lineSep,this.direction);return it.sharedHist&&(At.history=this.history),(this.linked||(this.linked=[])).push({doc:At,sharedHist:it.sharedHist}),At.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],gc(At,nd(this)),At},unlinkDoc:function(it){if(it instanceof vs&&(it=it.doc),this.linked)for(var st=0;st<this.linked.length;++st){var ft=this.linked[st];if(ft.doc==it){this.linked.splice(st,1),it.unlinkDoc(this),xd(nd(this));break}}if(it.history==this.history){var At=[it.id];$s(it,function(xt){return At.push(xt.id)},!0),it.history=new es(null),it.history.done=Ra(this.history.done,At),it.history.undone=Ra(this.history.undone,At)}},iterLinkedDocs:function(it){$s(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):So(it)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ti(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&gs(this.cm))})}),Lu.prototype.eachLine=Lu.prototype.iter;var jc=0;function Kd(it){var st=this;if(Uc(st),!(li(st,it)||lu(st.display,it))){xr(it),re&&(jc=+new Date);var ft=oh(st,it,!0),At=it.dataTransfer.files;if(!(!ft||st.isReadOnly()))if(At&&At.length&&window.FileReader&&window.File)for(var xt=At.length,te=Array(xt),Pe=0,He=function(){++Pe==xt&&Dn(st,function(){ft=dr(st.doc,ft);var Ei={from:ft,to:ft,text:st.doc.splitLines(te.filter(function(Sr){return Sr!=null}).join(st.doc.lineSeparator())),origin:"paste"};Rl(st.doc,Ei),Rs(st.doc,hs(dr(st.doc,ft),dr(st.doc,$o(Ei))))})()},Re=function(Ei,Sr){if(st.options.allowDropFileTypes&&be(st.options.allowDropFileTypes,Ei.type)==-1){He();return}var Dr=new FileReader;Dr.onerror=function(){return He()},Dr.onload=function(){var eo=Dr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(eo)){He();return}te[Sr]=eo,He()},Dr.readAsText(Ei)},un=0;un<At.length;un++)Re(At[un],un);else{if(st.state.draggingText&&st.doc.sel.contains(ft)>-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var si=it.dataTransfer.getData("Text");if(si){var pn;if(st.state.draggingText&&!st.state.draggingText.copy&&(pn=st.listSelections()),Sl(st.doc,hs(ft,ft)),pn)for(var Oi=0;Oi<pn.length;++Oi)oc(st.doc,"",pn[Oi].anchor,pn[Oi].head,"drag");st.replaceSelection(si,"around","paste"),st.display.input.focus()}}catch(Ei){}}}}function id(it,st){if(re&&(!it.state.draggingText||+new Date-jc<100)){Jr(st);return}if(!(li(it,st)||lu(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!Wt)){var ft=pe("img",null,null,"position: fixed; left: 0; top: 0;");ft.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ct&&(ft.width=ft.height=1,it.display.wrapper.appendChild(ft),ft._top=ft.offsetTop),st.dataTransfer.setDragImage(ft,0,0),Ct&&ft.parentNode.removeChild(ft)}}function CA(it,st){var ft=oh(it,st);if(ft){var At=document.createDocumentFragment();La(it,ft,At),it.display.dragCursor||(it.display.dragCursor=pe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),he(it.display.dragCursor,At)}}function Uc(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function Sd(it){if(document.getElementsByClassName){for(var st=document.getElementsByClassName("CodeMirror"),ft=[],At=0;At<st.length;At++){var xt=st[At].CodeMirror;xt&&ft.push(xt)}ft.length&&ft[0].operation(function(){for(var te=0;te<ft.length;te++)it(ft[te])})}}var Ju=!1;function ah(){Ju||(Vu(),Ju=!0)}function Vu(){var it;Ie(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,Sd(BA)},100))}),Ie(window,"blur",function(){return Sd(pt)})}function BA(it){var st=it.display;st.cachedCharWidth=st.cachedTextHeight=st.cachedPaddingH=null,st.scrollbarsClipped=!1,it.setSize()}for(var Gh={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},na=0;na<10;na++)Gh[na+48]=Gh[na+96]=String(na);for(var Cd=65;Cd<=90;Cd++)Gh[Cd]=String.fromCharCode(Cd);for(var rd=1;rd<=12;rd++)Gh[rd+111]=Gh[rd+63235]="F"+rd;var mu={};mu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},mu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},mu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},mu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},mu.default=lt?mu.macDefault:mu.pcDefault;function Gd(it){var st=it.split(/-(?!$)/);it=st[st.length-1];for(var ft,At,xt,te,Pe=0;Pe<st.length-1;Pe++){var He=st[Pe];if(/^(cmd|meta|m)$/i.test(He))te=!0;else if(/^a(lt)?$/i.test(He))ft=!0;else if(/^(c|ctrl|control)$/i.test(He))At=!0;else if(/^s(hift)?$/i.test(He))xt=!0;else throw new Error("Unrecognized modifier name: "+He)}return ft&&(it="Alt-"+it),At&&(it="Ctrl-"+it),te&&(it="Cmd-"+it),xt&&(it="Shift-"+it),it}function Wd(it){var st={};for(var ft in it)if(it.hasOwnProperty(ft)){var At=it[ft];if(/^(name|fallthrough|(de|at)tach)$/.test(ft))continue;if(At=="..."){delete it[ft];continue}for(var xt=Li(ft.split(" "),Gd),te=0;te<xt.length;te++){var Pe=void 0,He=void 0;te==xt.length-1?(He=xt.join(" "),Pe=At):(He=xt.slice(0,te+1).join(" "),Pe="...");var Re=st[He];if(!Re)st[He]=Pe;else if(Re!=Pe)throw new Error("Inconsistent bindings for "+He)}delete it[ft]}for(var un in st)it[un]=st[un];return it}function qu(it,st,ft,At){st=cu(st);var xt=st.call?st.call(it,At):st[it];if(xt===!1)return"nothing";if(xt==="...")return"multi";if(xt!=null&&ft(xt))return"handled";if(st.fallthrough){if(Object.prototype.toString.call(st.fallthrough)!="[object Array]")return qu(it,st.fallthrough,ft,At);for(var te=0;te<st.fallthrough.length;te++){var Pe=qu(it,st.fallthrough[te],ft,At);if(Pe)return Pe}}}function Rc(it){var st=typeof it=="string"?it:Gh[it.keyCode];return st=="Ctrl"||st=="Alt"||st=="Shift"||st=="Mod"}function Bd(it,st,ft){var At=it;return st.altKey&&At!="Alt"&&(it="Alt-"+it),(yt?st.metaKey:st.ctrlKey)&&At!="Ctrl"&&(it="Ctrl-"+it),(yt?st.ctrlKey:st.metaKey)&&At!="Mod"&&(it="Cmd-"+it),!ft&&st.shiftKey&&At!="Shift"&&(it="Shift-"+it),it}function Vd(it,st){if(Ct&&it.keyCode==34&&it.char)return!1;var ft=Gh[it.keyCode];return ft==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ft=it.code),Bd(ft,it,st))}function cu(it){return typeof it=="string"?mu[it]:it}function vu(it,st){for(var ft=it.doc.sel.ranges,At=[],xt=0;xt<ft.length;xt++){for(var te=st(ft[xt]);At.length&&Si(te.from,sn(At).to)<=0;){var Pe=At.pop();if(Si(Pe.from,te.from)<0){te.from=Pe.from;break}}At.push(te)}on(it,function(){for(var He=At.length-1;He>=0;He--)oc(it.doc,"",At[He].from,At[He].to,"+delete");fn(it)})}function Hc(it,st,ft){var At=ce(it.text,st+ft,ft);return At<0||At>it.text.length?null:At}function Hl(it,st,ft){var At=Hc(it,st.ch,ft);return At==null?null:new On(st.line,At,ft<0?"after":"before")}function Oa(it,st,ft,At,xt){if(it){st.doc.direction=="rtl"&&(xt=-xt);var te=Se(ft,st.doc.direction);if(te){var Pe=xt<0?sn(te):te[0],He=xt<0==(Pe.level==1),Re=He?"after":"before",un;if(Pe.level>0||st.doc.direction=="rtl"){var si=sl(st,ft);un=xt<0?ft.text.length-1:0;var pn=Ch(st,si,un).top;un=Be(function(Oi){return Ch(st,si,Oi).top==pn},xt<0==(Pe.level==1)?Pe.from:Pe.to-1,un),Re=="before"&&(un=Hc(ft,un,1))}else un=xt<0?Pe.to:Pe.from;return new On(At,un,Re)}}return new On(At,xt<0?ft.text.length:0,xt<0?"before":"after")}function Ya(it,st,ft,At){var xt=Se(st,it.doc.direction);if(!xt)return Hl(st,ft,At);ft.ch>=st.text.length?(ft.ch=st.text.length,ft.sticky="before"):ft.ch<=0&&(ft.ch=0,ft.sticky="after");var te=mt(xt,ft.ch,ft.sticky),Pe=xt[te];if(it.doc.direction=="ltr"&&Pe.level%2==0&&(At>0?Pe.to>ft.ch:Pe.from<ft.ch))return Hl(st,ft,At);var He=function(vo,Zo){return Hc(st,vo instanceof On?vo.ch:vo,Zo)},Re,un=function(vo){return it.options.lineWrapping?(Re=Re||sl(it,st),sA(it,st,Re,vo)):{begin:0,end:st.text.length}},si=un(ft.sticky=="before"?He(ft,-1):ft.ch);if(it.doc.direction=="rtl"||Pe.level==1){var pn=Pe.level==1==At<0,Oi=He(ft,pn?1:-1);if(Oi!=null&&(pn?Oi<=Pe.to&&Oi<=si.end:Oi>=Pe.from&&Oi>=si.begin)){var Ei=pn?"before":"after";return new On(ft.line,Oi,Ei)}}var Sr=function(vo,Zo,No){for(var as=function(Bl,ku){return ku?new On(ft.line,He(Bl,1),"before"):new On(ft.line,Bl,"after")};vo>=0&&vo<xt.length;vo+=Zo){var ks=xt[vo],Io=Zo>0==(ks.level!=1),ea=Io?No.begin:He(No.end,-1);if(ks.from<=ea&&ea<ks.to||(ea=Io?ks.from:He(ks.to,-1),No.begin<=ea&&ea<No.end))return as(ea,Io)}},Dr=Sr(te+At,At,si);if(Dr)return Dr;var eo=At>0?si.end:He(si.begin,-1);return eo!=null&&!(At>0&&eo==st.text.length)&&(Dr=Sr(At>0?0:xt.length-1,At,un(eo)),Dr)?Dr:null}var Mu={selectAll:Ha,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Xe)},killLine:function(it){return vu(it,function(st){if(st.empty()){var ft=Bn(it.doc,st.head.line).text.length;return st.head.ch==ft&&st.head.line<it.lastLine()?{from:st.head,to:On(st.head.line+1,0)}:{from:st.head,to:On(st.head.line,ft)}}else return{from:st.from(),to:st.to()}})},deleteLine:function(it){return vu(it,function(st){return{from:On(st.from().line,0),to:dr(it.doc,On(st.to().line+1,0))}})},delLineLeft:function(it){return vu(it,function(st){return{from:On(st.from().line,0),to:st.from()}})},delWrappedLineLeft:function(it){return vu(it,function(st){var ft=it.charCoords(st.head,"div").top+5,At=it.coordsChar({left:0,top:ft},"div");return{from:At,to:st.from()}})},delWrappedLineRight:function(it){return vu(it,function(st){var ft=it.charCoords(st.head,"div").top+5,At=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ft},"div");return{from:st.from(),to:At}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(On(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(On(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(st){return fh(it,st.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(st){return Zd(it,st.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(st){return Eh(it,st.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(st){var ft=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ft},"div")},Xn)},goLineLeft:function(it){return it.extendSelectionsBy(function(st){var ft=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:0,top:ft},"div")},Xn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(st){var ft=it.cursorCoords(st.head,"div").top+5,At=it.coordsChar({left:0,top:ft},"div");return At.ch<it.getLine(At.line).search(/\S/)?Zd(it,st.head):At},Xn)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var st=[],ft=it.listSelections(),At=it.options.tabSize,xt=0;xt<ft.length;xt++){var te=ft[xt].from(),Pe=xe(it.getLine(te.line),te.ch,At);st.push(bi(At-Pe%At))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return on(it,function(){for(var st=it.listSelections(),ft=[],At=0;At<st.length;At++)if(st[At].empty()){var xt=st[At].head,te=Bn(it.doc,xt.line).text;if(te){if(xt.ch==te.length&&(xt=new On(xt.line,xt.ch-1)),xt.ch>0)xt=new On(xt.line,xt.ch+1),it.replaceRange(te.charAt(xt.ch-1)+te.charAt(xt.ch-2),On(xt.line,xt.ch-2),xt,"+transpose");else if(xt.line>it.doc.first){var Pe=Bn(it.doc,xt.line-1).text;Pe&&(xt=new On(xt.line,1),it.replaceRange(te.charAt(0)+it.doc.lineSeparator()+Pe.charAt(Pe.length-1),On(xt.line-1,Pe.length-1),xt,"+transpose"))}}ft.push(new Rr(xt,xt))}it.setSelections(ft)})},newlineAndIndent:function(it){return on(it,function(){for(var st=it.listSelections(),ft=st.length-1;ft>=0;ft--)it.replaceRange(it.doc.lineSeparator(),st[ft].anchor,st[ft].head,"+input");st=it.listSelections();for(var At=0;At<st.length;At++)it.indentLine(st[At].from().line,null,!0);fn(it)})},openLine:function(it){return it.replaceSelection(`
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function fh(it,st){var ft=Bn(it.doc,st),At=ts(ft);return At!=ft&&(st=mn(At)),Oa(!0,it,At,st,1)}function Eh(it,st){var ft=Bn(it.doc,st),At=Ea(ft);return At!=ft&&(st=mn(At)),Oa(!0,it,ft,st,-1)}function Zd(it,st){var ft=fh(it,st.line),At=Bn(it.doc,ft.line),xt=Se(At,it.doc.direction);if(!xt||xt[0].level==0){var te=Math.max(ft.ch,At.text.search(/\S/)),Pe=st.line==ft.line&&st.ch<=te&&st.ch;return On(ft.line,Pe?0:te,ft.sticky)}return ft}function Bc(it,st,ft){if(typeof st=="string"&&(st=Mu[st],!st))return!1;it.display.input.ensurePolled();var At=it.display.shift,xt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ft&&(it.display.shift=!1),xt=st(it)!=Mn}finally{it.display.shift=At,it.state.suppressEdits=!1}return xt}function Pd(it,st,ft){for(var At=0;At<it.state.keyMaps.length;At++){var xt=qu(st,it.state.keyMaps[At],ft,it);if(xt)return xt}return it.options.extraKeys&&qu(st,it.options.extraKeys,ft,it)||qu(st,it.options.keyMap,ft,it)}var Zu=new ie;function xh(it,st,ft,At){var xt=it.state.keySeq;if(xt){if(Rc(st))return"handled";if(/\'$/.test(st)?it.state.keySeq=null:Zu.set(50,function(){it.state.keySeq==xt&&(it.state.keySeq=null,it.display.input.reset())}),PA(it,xt+" "+st,ft,At))return!0}return PA(it,st,ft,At)}function PA(it,st,ft,At){var xt=Pd(it,st,At);return xt=="multi"&&(it.state.keySeq=st),xt=="handled"&&Gr(it,"keyHandled",it,st,ft),(xt=="handled"||xt=="multi")&&(xr(ft),fl(it)),!!xt}function _c(it,st){var ft=Vd(st,!0);return ft?st.shiftKey&&!it.state.keySeq?xh(it,"Shift-"+ft,st,function(At){return Bc(it,At,!0)})||xh(it,ft,st,function(At){if(typeof At=="string"?/^go[A-Z]/.test(At):At.motion)return Bc(it,At)}):xh(it,ft,st,function(At){return Bc(it,At)}):!1}function sc(it,st,ft){return xh(it,"'"+ft+"'",st,function(At){return Bc(it,At,!0)})}var Qc=null;function od(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&(st.curOp.focus=Vt(),!li(st,it))){re&&le<11&&it.keyCode==27&&(it.returnValue=!1);var ft=it.keyCode;st.display.shift=ft==16||it.shiftKey;var At=_c(st,it);Ct&&(Qc=At?ft:null,!At&&ft==88&&!ai&&(lt?it.metaKey:it.ctrlKey)&&st.replaceSelection("",null,"cut")),Lt&&!lt&&!At&&ft==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ft==18&&!/\bCodeMirror-crosshair\b/.test(st.display.lineDiv.className)&&lf(st)}}function lf(it){var st=it.display.lineDiv;$e(st,"CodeMirror-crosshair");function ft(At){(At.keyCode==18||!At.altKey)&&(Rt(st,"CodeMirror-crosshair"),zn(document,"keyup",ft),zn(document,"mouseover",ft))}Ie(document,"keyup",ft),Ie(document,"mouseover",ft)}function uA(it){it.keyCode==16&&(this.doc.sel.shift=!1),li(this,it)}function Pc(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(lu(st.display,it)||li(st,it)||it.ctrlKey&&!it.altKey||lt&&it.metaKey)){var ft=it.keyCode,At=it.charCode;if(Ct&&ft==Qc){Qc=null,xr(it);return}if(!(Ct&&(!it.which||it.which<10)&&_c(st,it))){var xt=String.fromCharCode(At==null?ft:At);xt!="\b"&&(sc(st,it,xt)||st.display.input.onKeyPress(it))}}}var KA=400,bd=function(it,st,ft){this.time=it,this.pos=st,this.button=ft};bd.prototype.compare=function(it,st,ft){return this.time+KA>it&&Si(st,this.pos)==0&&ft==this.button};var zc,Kc;function hA(it,st){var ft=+new Date;return Kc&&Kc.compare(ft,it,st)?(zc=Kc=null,"triple"):zc&&zc.compare(ft,it,st)?(Kc=new bd(ft,it,st),zc=null,"double"):(zc=new bd(ft,it,st),Kc=null,"single")}function Dh(it){var st=this,ft=st.display;if(!(li(st,it)||ft.activeTouch&&ft.input.supportsTouch())){if(ft.input.ensurePolled(),ft.shift=it.shiftKey,lu(ft,it)){Et||(ft.scroller.draggable=!1,setTimeout(function(){return ft.scroller.draggable=!0},100));return}if(!wn(st,it)){var At=oh(st,it),xt=Xr(it),te=At?hA(At,xt):"single";window.focus(),xt==1&&st.state.selectingText&&st.state.selectingText(it),!(At&&bA(st,xt,At,te,it))&&(xt==1?At?cA(st,At,te,it):Ir(it)==ft.scroller&&xr(it):xt==2?(At&&ta(st.doc,At),setTimeout(function(){return ft.input.focus()},20)):xt==3&&(Mt?st.display.input.onContextMenu(it):Jl(st)))}}}function bA(it,st,ft,At,xt){var te="Click";return At=="double"?te="Double"+te:At=="triple"&&(te="Triple"+te),te=(st==1?"Left":st==2?"Middle":"Right")+te,xh(it,Bd(te,xt),xt,function(Pe){if(typeof Pe=="string"&&(Pe=Mu[Pe]),!Pe)return!1;var He=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),He=Pe(it,ft)!=Mn}finally{it.state.suppressEdits=!1}return He})}function EA(it,st,ft){var At=it.getOption("configureMouse"),xt=At?At(it,st,ft):{};if(xt.unit==null){var te=rt?ft.shiftKey&&ft.metaKey:ft.altKey;xt.unit=te?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(xt.extend==null||it.doc.extend)&&(xt.extend=it.doc.extend||ft.shiftKey),xt.addNew==null&&(xt.addNew=lt?ft.metaKey:ft.ctrlKey),xt.moveOnDrag==null&&(xt.moveOnDrag=!(lt?ft.altKey:ft.ctrlKey)),xt}function cA(it,st,ft,At){re?setTimeout(Ve(Ql,it),0):it.curOp.focus=Vt();var xt=EA(it,ft,At),te=it.doc.sel,Pe;it.options.dragDrop&&to&&!it.isReadOnly()&&ft=="single"&&(Pe=te.contains(st))>-1&&(Si((Pe=te.ranges[Pe]).from(),st)<0||st.xRel>0)&&(Si(Pe.to(),st)>0||st.xRel<0)?Xd(it,At,st,xt):$d(it,At,st,xt)}function Xd(it,st,ft,At){var xt=it.display,te=!1,Pe=Dn(it,function(un){Et&&(xt.scroller.draggable=!1),it.state.draggingText=!1,zn(xt.wrapper.ownerDocument,"mouseup",Pe),zn(xt.wrapper.ownerDocument,"mousemove",He),zn(xt.scroller,"dragstart",Re),zn(xt.scroller,"drop",Pe),te||(xr(un),At.addNew||ta(it.doc,ft,null,null,At.extend),Et&&!Wt||re&&le==9?setTimeout(function(){xt.wrapper.ownerDocument.body.focus({preventScroll:!0}),xt.input.focus()},20):xt.input.focus())}),He=function(un){te=te||Math.abs(st.clientX-un.clientX)+Math.abs(st.clientY-un.clientY)>=10},Re=function(){return te=!0};Et&&(xt.scroller.draggable=!0),it.state.draggingText=Pe,Pe.copy=!At.moveOnDrag,xt.scroller.dragDrop&&xt.scroller.dragDrop(),Ie(xt.wrapper.ownerDocument,"mouseup",Pe),Ie(xt.wrapper.ownerDocument,"mousemove",He),Ie(xt.scroller,"dragstart",Re),Ie(xt.scroller,"drop",Pe),Jl(it),setTimeout(function(){return xt.input.focus()},20)}function Ed(it,st,ft){if(ft=="char")return new Rr(st,st);if(ft=="word")return it.findWordAt(st);if(ft=="line")return new Rr(On(st.line,0),dr(it.doc,On(st.line+1,0)));var At=ft(it,st);return new Rr(At.from,At.to)}function $d(it,st,ft,At){var xt=it.display,te=it.doc;xr(st);var Pe,He,Re=te.sel,un=Re.ranges;if(At.addNew&&!At.extend?(He=te.sel.contains(ft),He>-1?Pe=un[He]:Pe=new Rr(ft,ft)):(Pe=te.sel.primary(),He=te.sel.primIndex),At.unit=="rectangle")At.addNew||(Pe=new Rr(ft,ft)),ft=oh(it,st,!0,!0),He=-1;else{var si=Ed(it,ft,At.unit);At.extend?Pe=Gl(Pe,si.anchor,si.head,At.extend):Pe=si}At.addNew?He==-1?(He=un.length,Ta(te,Do(it,un.concat([Pe]),He),{scroll:!1,origin:"*mouse"})):un.length>1&&un[He].empty()&&At.unit=="char"&&!At.extend?(Ta(te,Do(it,un.slice(0,He).concat(un.slice(He+1)),0),{scroll:!1,origin:"*mouse"}),Re=te.sel):ka(te,He,Pe,In):(He=0,Ta(te,new po([Pe],0),In),Re=te.sel);var pn=ft;function Oi(No){if(Si(pn,No)!=0)if(pn=No,At.unit=="rectangle"){for(var as=[],ks=it.options.tabSize,Io=xe(Bn(te,ft.line).text,ft.ch,ks),ea=xe(Bn(te,No.line).text,No.ch,ks),Bl=Math.min(Io,ea),ku=Math.max(Io,ea),cl=Math.min(ft.line,No.line),yu=Math.min(it.lastLine(),Math.max(ft.line,No.line));cl<=yu;cl++){var Na=Bn(te,cl).text,ya=pi(Na,Bl,ks);Bl==ku?as.push(new Rr(On(cl,ya),On(cl,ya))):Na.length>ya&&as.push(new Rr(On(cl,ya),On(cl,pi(Na,ku,ks))))}as.length||as.push(new Rr(ft,ft)),Ta(te,Do(it,Re.ranges.slice(0,He).concat(as),He),{origin:"*mouse",scroll:!1}),it.scrollIntoView(No)}else{var ml=Pe,vl=Ed(it,No,At.unit),Co=ml.anchor,wa;Si(vl.anchor,Co)>0?(wa=vl.head,Co=sr(ml.from(),vl.anchor)):(wa=vl.anchor,Co=Kr(ml.to(),vl.head));var Il=Re.ranges.slice(0);Il[He]=FA(it,new Rr(dr(te,Co),wa)),Ta(te,Do(it,Il,He),In)}}var Ei=xt.wrapper.getBoundingClientRect(),Sr=0;function Dr(No){var as=++Sr,ks=oh(it,No,!0,At.unit=="rectangle");if(ks)if(Si(ks,pn)!=0){it.curOp.focus=Vt(),Oi(ks);var Io=oe(xt,te);(ks.line>=Io.to||ks.line<Io.from)&&setTimeout(Dn(it,function(){Sr==as&&Dr(No)}),150)}else{var ea=No.clientY<Ei.top?-20:No.clientY>Ei.bottom?20:0;ea&&setTimeout(Dn(it,function(){Sr==as&&(xt.scroller.scrollTop+=ea,Dr(No))}),50)}}function eo(No){it.state.selectingText=!1,Sr=1/0,No&&(xr(No),xt.input.focus()),zn(xt.wrapper.ownerDocument,"mousemove",vo),zn(xt.wrapper.ownerDocument,"mouseup",Zo),te.history.lastSelOrigin=null}var vo=Dn(it,function(No){No.buttons===0||!Xr(No)?eo(No):Dr(No)}),Zo=Dn(it,eo);it.state.selectingText=Zo,Ie(xt.wrapper.ownerDocument,"mousemove",vo),Ie(xt.wrapper.ownerDocument,"mouseup",Zo)}function FA(it,st){var ft=st.anchor,At=st.head,xt=Bn(it.doc,ft.line);if(Si(ft,At)==0&&ft.sticky==At.sticky)return st;var te=Se(xt);if(!te)return st;var Pe=mt(te,ft.ch,ft.sticky),He=te[Pe];if(He.from!=ft.ch&&He.to!=ft.ch)return st;var Re=Pe+(He.from==ft.ch==(He.level!=1)?0:1);if(Re==0||Re==te.length)return st;var un;if(At.line!=ft.line)un=(At.line-ft.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var si=mt(te,At.ch,At.sticky),pn=si-Pe||(At.ch-ft.ch)*(He.level==1?-1:1);si==Re-1||si==Re?un=pn<0:un=pn>0}var Oi=te[Re+(un?-1:0)],Ei=un==(Oi.level==1),Sr=Ei?Oi.from:Oi.to,Dr=Ei?"after":"before";return ft.ch==Sr&&ft.sticky==Dr?st:new Rr(new On(ft.line,Sr,Dr),At)}function fe(it,st,ft,At){var xt,te;if(st.touches)xt=st.touches[0].clientX,te=st.touches[0].clientY;else try{xt=st.clientX,te=st.clientY}catch(Oi){return!1}if(xt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;At&&xr(st);var Pe=it.display,He=Pe.lineDiv.getBoundingClientRect();if(te>He.bottom||!Wi(it,ft))return Vr(st);te-=He.top-Pe.viewOffset;for(var Re=0;Re<it.display.gutterSpecs.length;++Re){var un=Pe.gutters.childNodes[Re];if(un&&un.getBoundingClientRect().right>=xt){var si=Ai(it.doc,te),pn=it.display.gutterSpecs[Re];return xn(it,ft,it,si,pn.className,st),Vr(st)}}}function wn(it,st){return fe(it,st,"gutterClick",!0)}function xi(it,st){lu(it.display,st)||Hi(it,st)||li(it,st,"contextmenu")||Mt||it.display.input.onContextMenu(st)}function Hi(it,st){return Wi(it,"gutterContextMenu")?fe(it,st,"gutterContextMenu",!1):!1}function hr(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),al(it)}var Ur={toString:function(){return"CodeMirror.Init"}},wo={},ms={};function Ys(it){var st=it.optionHandlers;function ft(At,xt,te,Pe){it.defaults[At]=xt,te&&(st[At]=Pe?function(He,Re,un){un!=Ur&&te(He,Re,un)}:te)}it.defineOption=ft,it.Init=Ur,ft("value","",function(At,xt){return At.setValue(xt)},!0),ft("mode",null,function(At,xt){At.doc.modeOption=xt,rs(At)},!0),ft("indentUnit",2,rs,!0),ft("indentWithTabs",!1),ft("smartIndent",!0),ft("tabSize",4,function(At){Cs(At),al(At),Ll(At)},!0),ft("lineSeparator",null,function(At,xt){if(At.doc.lineSep=xt,!!xt){var te=[],Pe=At.doc.first;At.doc.iter(function(Re){for(var un=0;;){var si=Re.text.indexOf(xt,un);if(si==-1)break;un=si+xt.length,te.push(On(Pe,si))}Pe++});for(var He=te.length-1;He>=0;He--)oc(At.doc,xt,te[He],On(te[He].line,te[He].ch+xt.length))}}),ft("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(At,xt,te){At.state.specialChars=new RegExp(xt.source+(xt.test(" ")?"":"| "),"g"),te!=Ur&&At.refresh()}),ft("specialCharPlaceholder",Za,function(At){return At.refresh()},!0),ft("electricChars",!0),ft("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ft("spellcheck",!1,function(At,xt){return At.getInputField().spellcheck=xt},!0),ft("autocorrect",!1,function(At,xt){return At.getInputField().autocorrect=xt},!0),ft("autocapitalize",!1,function(At,xt){return At.getInputField().autocapitalize=xt},!0),ft("rtlMoveVisually",!ht),ft("wholeLineUpdateBefore",!0),ft("theme","default",function(At){hr(At),br(At)},!0),ft("keyMap","default",function(At,xt,te){var Pe=cu(xt),He=te!=Ur&&cu(te);He&&He.detach&&He.detach(At,Pe),Pe.attach&&Pe.attach(At,He||null)}),ft("extraKeys",null),ft("configureMouse",null),ft("lineWrapping",!1,Pa,!0),ft("gutters",[],function(At,xt){At.display.gutterSpecs=Jn(xt,At.options.lineNumbers),br(At)},!0),ft("fixedGutter",!0,function(At,xt){At.display.gutters.style.left=xt?ed(At.display)+"px":"0",At.refresh()},!0),ft("coverGutterNextToScrollbar",!1,function(At){return Lr(At)},!0),ft("scrollbarStyle","native",function(At){Di(At),Lr(At),At.display.scrollbars.setScrollTop(At.doc.scrollTop),At.display.scrollbars.setScrollLeft(At.doc.scrollLeft)},!0),ft("lineNumbers",!1,function(At,xt){At.display.gutterSpecs=Jn(At.options.gutters,xt),br(At)},!0),ft("firstLineNumber",1,br,!0),ft("lineNumberFormatter",function(At){return At},br,!0),ft("showCursorWhenSelecting",!1,Cu,!0),ft("resetSelectionOnContextMenu",!0),ft("lineWiseCopyCut",!0),ft("pasteLinesPerSelection",!0),ft("selectionsMayTouch",!1),ft("readOnly",!1,function(At,xt){xt=="nocursor"&&(pt(At),At.display.input.blur()),At.display.input.readOnlyChanged(xt)}),ft("screenReaderLabel",null,function(At,xt){xt=xt===""?null:xt,At.display.input.screenReaderLabelChanged(xt)}),ft("disableInput",!1,function(At,xt){xt||At.display.input.reset()},!0),ft("dragDrop",!0,Ba),ft("allowDropFileTypes",null),ft("cursorBlinkRate",530),ft("cursorScrollMargin",0),ft("cursorHeight",1,Cu,!0),ft("singleCursorHeightPerLine",!0,Cu,!0),ft("workTime",100),ft("workDelay",100),ft("flattenSpans",!0,Cs,!0),ft("addModeClass",!1,Cs,!0),ft("pollInterval",100),ft("undoDepth",200,function(At,xt){return At.doc.history.undoDepth=xt}),ft("historyEventDelay",1250),ft("viewportMargin",10,function(At){return At.refresh()},!0),ft("maxHighlightLength",1e4,Cs,!0),ft("moveInputWithCursor",!0,function(At,xt){xt||At.display.input.resetPosition()}),ft("tabindex",null,function(At,xt){return At.display.input.getField().tabIndex=xt||""}),ft("autofocus",null),ft("direction","ltr",function(At,xt){return At.doc.setDirection(xt)},!0),ft("phrases",null)}function Ba(it,st,ft){var At=ft&&ft!=Ur;if(!st!=!At){var xt=it.display.dragFunctions,te=st?Ie:zn;te(it.display.scroller,"dragstart",xt.start),te(it.display.scroller,"dragenter",xt.enter),te(it.display.scroller,"dragover",xt.over),te(it.display.scroller,"dragleave",xt.leave),te(it.display.scroller,"drop",xt.drop)}}function Pa(it){it.options.lineWrapping?($e(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Rt(it.display.wrapper,"CodeMirror-wrap"),Js(it)),ys(it),Ll(it),al(it),setTimeout(function(){return Lr(it)},100)}function vs(it,st){var ft=this;if(!(this instanceof vs))return new vs(it,st);this.options=st=st?_e(st):{},_e(wo,st,!1);var At=st.value;typeof At=="string"?At=new Lu(At,st.mode,null,st.lineSeparator,st.direction):st.mode&&(At.modeOption=st.mode),this.doc=At;var xt=new vs.inputStyles[st.inputStyle](this),te=this.display=new ar(it,At,xt,st);te.wrapper.CodeMirror=this,hr(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Di(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ie,keySeq:null,specialChars:null},st.autofocus&&!tt&&te.input.focus(),re&&le<11&&setTimeout(function(){return ft.display.input.reset(!0)},20),iu(this),ah(),Or(this),this.curOp.forceUpdate=!0,Qo(this,At),st.autofocus&&!tt||this.hasFocus()?setTimeout(function(){ft.hasFocus()&&!ft.state.focused&&Bt(ft)},20):pt(this);for(var Pe in ms)ms.hasOwnProperty(Pe)&&ms[Pe](this,st[Pe],Ur);Ti(this),st.finishInit&&st.finishInit(this);for(var He=0;He<ru.length;++He)ru[He](this);qn(this),Et&&st.lineWrapping&&getComputedStyle(te.lineDiv).textRendering=="optimizelegibility"&&(te.lineDiv.style.textRendering="auto")}vs.defaults=wo,vs.optionHandlers=ms;function iu(it){var st=it.display;Ie(st.scroller,"mousedown",Dn(it,Dh)),re&&le<11?Ie(st.scroller,"dblclick",Dn(it,function(Re){if(!li(it,Re)){var un=oh(it,Re);if(!(!un||wn(it,Re)||lu(it.display,Re))){xr(Re);var si=it.findWordAt(un);ta(it.doc,si.anchor,si.head)}}})):Ie(st.scroller,"dblclick",function(Re){return li(it,Re)||xr(Re)}),Ie(st.scroller,"contextmenu",function(Re){return xi(it,Re)}),Ie(st.input.getField(),"contextmenu",function(Re){st.scroller.contains(Re.target)||xi(it,Re)});var ft,At={end:0};function xt(){st.activeTouch&&(ft=setTimeout(function(){return st.activeTouch=null},1e3),At=st.activeTouch,At.end=+new Date)}function te(Re){if(Re.touches.length!=1)return!1;var un=Re.touches[0];return un.radiusX<=1&&un.radiusY<=1}function Pe(Re,un){if(un.left==null)return!0;var si=un.left-Re.left,pn=un.top-Re.top;return si*si+pn*pn>20*20}Ie(st.scroller,"touchstart",function(Re){if(!li(it,Re)&&!te(Re)&&!wn(it,Re)){st.input.ensurePolled(),clearTimeout(ft);var un=+new Date;st.activeTouch={start:un,moved:!1,prev:un-At.end<=300?At:null},Re.touches.length==1&&(st.activeTouch.left=Re.touches[0].pageX,st.activeTouch.top=Re.touches[0].pageY)}}),Ie(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),Ie(st.scroller,"touchend",function(Re){var un=st.activeTouch;if(un&&!lu(st,Re)&&un.left!=null&&!un.moved&&new Date-un.start<300){var si=it.coordsChar(st.activeTouch,"page"),pn;!un.prev||Pe(un,un.prev)?pn=new Rr(si,si):!un.prev.prev||Pe(un,un.prev.prev)?pn=it.findWordAt(si):pn=new Rr(On(si.line,0),dr(it.doc,On(si.line+1,0))),it.setSelection(pn.anchor,pn.head),it.focus(),xr(Re)}xt()}),Ie(st.scroller,"touchcancel",xt),Ie(st.scroller,"scroll",function(){st.scroller.clientHeight&&(ei(it,st.scroller.scrollTop),Hn(it,st.scroller.scrollLeft,!0),xn(it,"scroll",it))}),Ie(st.scroller,"mousewheel",function(Re){return co(it,Re)}),Ie(st.scroller,"DOMMouseScroll",function(Re){return co(it,Re)}),Ie(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(Re){li(it,Re)||Jr(Re)},over:function(Re){li(it,Re)||(CA(it,Re),Jr(Re))},start:function(Re){return id(it,Re)},drop:Dn(it,Kd),leave:function(Re){li(it,Re)||Uc(it)}};var He=st.input.getField();Ie(He,"keyup",function(Re){return uA.call(it,Re)}),Ie(He,"keydown",Dn(it,od)),Ie(He,"keypress",Dn(it,Pc)),Ie(He,"focus",function(Re){return Bt(it,Re)}),Ie(He,"blur",function(Re){return pt(it,Re)})}var ru=[];vs.defineInitHook=function(it){return ru.push(it)};function Ga(it,st,ft,At){var xt=it.doc,te;ft==null&&(ft="add"),ft=="smart"&&(xt.mode.indent?te=Uo(it,st).state:ft="prev");var Pe=it.options.tabSize,He=Bn(xt,st),Re=xe(He.text,null,Pe);He.stateAfter&&(He.stateAfter=null);var un=He.text.match(/^\s*/)[0],si;if(!At&&!/\S/.test(He.text))si=0,ft="not";else if(ft=="smart"&&(si=xt.mode.indent(te,He.text.slice(un.length),He.text),si==Mn||si>150)){if(!At)return;ft="prev"}ft=="prev"?st>xt.first?si=xe(Bn(xt,st-1).text,null,Pe):si=0:ft=="add"?si=Re+it.options.indentUnit:ft=="subtract"?si=Re-it.options.indentUnit:typeof ft=="number"&&(si=Re+ft),si=Math.max(0,si);var pn="",Oi=0;if(it.options.indentWithTabs)for(var Ei=Math.floor(si/Pe);Ei;--Ei)Oi+=Pe,pn+=" ";if(Oi<si&&(pn+=bi(si-Oi)),pn!=un)return oc(xt,pn,On(st,0),On(st,un.length),"+input"),He.stateAfter=null,!0;for(var Sr=0;Sr<xt.sel.ranges.length;Sr++){var Dr=xt.sel.ranges[Sr];if(Dr.head.line==st&&Dr.head.ch<un.length){var eo=On(st,un.length);ka(xt,Sr,new Rr(eo,eo));break}}}var Kl=null;function Nu(it){Kl=it}function ac(it,st,ft,At,xt){var te=it.doc;it.display.shift=!1,At||(At=te.sel);var Pe=+new Date-200,He=xt=="paste"||it.state.pasteIncoming>Pe,Re=So(st),un=null;if(He&&At.ranges.length>1)if(Kl&&Kl.text.join(`
`)==st){if(At.ranges.length%Kl.text.length==0){un=[];for(var si=0;si<Kl.text.length;si++)un.push(te.splitLines(Kl.text[si]))}}else Re.length==At.ranges.length&&it.options.pasteLinesPerSelection&&(un=Li(Re,function(vo){return[vo]}));for(var pn=it.curOp.updateInput,Oi=At.ranges.length-1;Oi>=0;Oi--){var Ei=At.ranges[Oi],Sr=Ei.from(),Dr=Ei.to();Ei.empty()&&(ft&&ft>0?Sr=On(Sr.line,Sr.ch-ft):it.state.overwrite&&!He?Dr=On(Dr.line,Math.min(Bn(te,Dr.line).text.length,Dr.ch+sn(Re).length)):He&&Kl&&Kl.lineWise&&Kl.text.join(`
`)==Re.join(`
`)&&(Sr=Dr=On(Sr.line,0)));var eo={from:Sr,to:Dr,text:un?un[Oi%un.length]:Re,origin:xt||(He?"paste":it.state.cutIncoming>Pe?"cut":"+input")};Rl(it.doc,eo),Gr(it,"inputRead",it,eo)}st&&!He&&lc(it,st),fn(it),it.curOp.updateInput<2&&(it.curOp.updateInput=pn),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function Fh(it,st){var ft=it.clipboardData&&it.clipboardData.getData("Text");if(ft)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&on(st,function(){return ac(st,ft,0,null,"paste")}),!0}function lc(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ft=it.doc.sel,At=ft.ranges.length-1;At>=0;At--){var xt=ft.ranges[At];if(!(xt.head.ch>100||At&&ft.ranges[At-1].head.line==xt.head.line)){var te=it.getModeAt(xt.head),Pe=!1;if(te.electricChars){for(var He=0;He<te.electricChars.length;He++)if(st.indexOf(te.electricChars.charAt(He))>-1){Pe=Ga(it,xt.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(Bn(it.doc,xt.head.line).text.slice(0,xt.head.ch))&&(Pe=Ga(it,xt.head.line,"smart"));Pe&&Gr(it,"electricInput",it,xt.head.line)}}}function LA(it){for(var st=[],ft=[],At=0;At<it.doc.sel.ranges.length;At++){var xt=it.doc.sel.ranges[At].head.line,te={anchor:On(xt,0),head:On(xt+1,0)};ft.push(te),st.push(it.getRange(te.anchor,te.head))}return{text:st,ranges:ft}}function dA(it,st,ft,At){it.setAttribute("autocorrect",ft?"":"off"),it.setAttribute("autocapitalize",At?"":"off"),it.setAttribute("spellcheck",!!st)}function MA(){var it=pe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=pe("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Et?it.style.width="1000px":it.setAttribute("wrap","off"),wt&&(it.style.border="1px solid black"),dA(it),st}function pc(it){var st=it.optionHandlers,ft=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(At,xt){var te=this.options,Pe=te[At];te[At]==xt&&At!="mode"||(te[At]=xt,st.hasOwnProperty(At)&&Dn(this,st[At])(this,xt,Pe),xn(this,"optionChange",this,At))},getOption:function(At){return this.options[At]},getDoc:function(){return this.doc},addKeyMap:function(At,xt){this.state.keyMaps[xt?"push":"unshift"](cu(At))},removeKeyMap:function(At){for(var xt=this.state.keyMaps,te=0;te<xt.length;++te)if(xt[te]==At||xt[te].name==At)return xt.splice(te,1),!0},addOverlay:Rn(function(At,xt){var te=At.token?At:it.getMode(this.options,At);if(te.startState)throw new Error("Overlays may not be stateful.");ji(this.state.overlays,{mode:te,modeSpec:At,opaque:xt&&xt.opaque,priority:xt&&xt.priority||0},function(Pe){return Pe.priority}),this.state.modeGen++,Ll(this)}),removeOverlay:Rn(function(At){for(var xt=this.state.overlays,te=0;te<xt.length;++te){var Pe=xt[te].modeSpec;if(Pe==At||typeof At=="string"&&Pe.name==At){xt.splice(te,1),this.state.modeGen++,Ll(this);return}}}),indentLine:Rn(function(At,xt,te){typeof xt!="string"&&typeof xt!="number"&&(xt==null?xt=this.options.smartIndent?"smart":"prev":xt=xt?"add":"subtract"),Mi(this.doc,At)&&Ga(this,At,xt,te)}),indentSelection:Rn(function(At){for(var xt=this.doc.sel.ranges,te=-1,Pe=0;Pe<xt.length;Pe++){var He=xt[Pe];if(He.empty())He.head.line>te&&(Ga(this,He.head.line,At,!0),te=He.head.line,Pe==this.doc.sel.primIndex&&fn(this));else{var Re=He.from(),un=He.to(),si=Math.max(te,Re.line);te=Math.min(this.lastLine(),un.line-(un.ch?0:1))+1;for(var pn=si;pn<te;++pn)Ga(this,pn,At);var Oi=this.doc.sel.ranges;Re.ch==0&&xt.length==Oi.length&&Oi[Pe].from().ch>0&&ka(this.doc,Pe,new Rr(Re,Oi[Pe].to()),Xe)}}}),getTokenAt:function(At,xt){return ns(this,At,xt)},getLineTokens:function(At,xt){return ns(this,On(At),xt,!0)},getTokenTypeAt:function(At){At=dr(this.doc,At);var xt=xs(this,Bn(this.doc,At.line)),te=0,Pe=(xt.length-1)/2,He=At.ch,Re;if(He==0)Re=xt[2];else for(;;){var un=te+Pe>>1;if((un?xt[un*2-1]:0)>=He)Pe=un;else if(xt[un*2+1]<He)te=un+1;else{Re=xt[un*2+2];break}}var si=Re?Re.indexOf("overlay "):-1;return si<0?Re:si==0?null:Re.slice(0,si-1)},getModeAt:function(At){var xt=this.doc.mode;return xt.innerMode?it.innerMode(xt,this.getTokenAt(At).state).mode:xt},getHelper:function(At,xt){return this.getHelpers(At,xt)[0]},getHelpers:function(At,xt){var te=[];if(!ft.hasOwnProperty(xt))return te;var Pe=ft[xt],He=this.getModeAt(At);if(typeof He[xt]=="string")Pe[He[xt]]&&te.push(Pe[He[xt]]);else if(He[xt])for(var Re=0;Re<He[xt].length;Re++){var un=Pe[He[xt][Re]];un&&te.push(un)}else He.helperType&&Pe[He.helperType]?te.push(Pe[He.helperType]):Pe[He.name]&&te.push(Pe[He.name]);for(var si=0;si<Pe._global.length;si++){var pn=Pe._global[si];pn.pred(He,this)&&be(te,pn.val)==-1&&te.push(pn.val)}return te},getStateAfter:function(At,xt){var te=this.doc;return At=Br(te,At==null?te.first+te.size-1:At),Uo(this,At+1,xt).state},cursorCoords:function(At,xt){var te,Pe=this.doc.sel.primary();return At==null?te=Pe.head:typeof At=="object"?te=dr(this.doc,At):te=At?Pe.from():Pe.to(),hl(this,te,xt||"page")},charCoords:function(At,xt){return dh(this,dr(this.doc,At),xt||"page")},coordsChar:function(At,xt){return At=fc(this,At,xt||"page"),Bh(this,At.left,At.top)},lineAtHeight:function(At,xt){return At=fc(this,{top:At,left:0},xt||"page").top,Ai(this.doc,At+this.display.viewOffset)},heightAtLine:function(At,xt,te){var Pe=!1,He;if(typeof At=="number"){var Re=this.doc.first+this.doc.size-1;At<this.doc.first?At=this.doc.first:At>Re&&(At=Re,Pe=!0),He=Bn(this.doc,At)}else He=At;return jl(this,He,{top:0,left:0},xt||"page",te||Pe).top+(Pe?this.doc.height-Gs(He):0)},defaultTextHeight:function(){return Wu(this.display)},defaultCharWidth:function(){return Ph(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(At,xt,te,Pe,He){var Re=this.display;At=hl(this,dr(this.doc,At));var un=At.bottom,si=At.left;if(xt.style.position="absolute",xt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(xt),Re.sizer.appendChild(xt),Pe=="over")un=At.top;else if(Pe=="above"||Pe=="near"){var pn=Math.max(Re.wrapper.clientHeight,this.doc.height),Oi=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(Pe=="above"||At.bottom+xt.offsetHeight>pn)&&At.top>xt.offsetHeight?un=At.top-xt.offsetHeight:At.bottom+xt.offsetHeight<=pn&&(un=At.bottom),si+xt.offsetWidth>Oi&&(si=Oi-xt.offsetWidth)}xt.style.top=un+"px",xt.style.left=xt.style.right="",He=="right"?(si=Re.sizer.clientWidth-xt.offsetWidth,xt.style.right="0px"):(He=="left"?si=0:He=="middle"&&(si=(Re.sizer.clientWidth-xt.offsetWidth)/2),xt.style.left=si+"px"),te&&Ce(this,{left:si,top:un,right:si+xt.offsetWidth,bottom:un+xt.offsetHeight})},triggerOnKeyDown:Rn(od),triggerOnKeyPress:Rn(Pc),triggerOnKeyUp:uA,triggerOnMouseDown:Rn(Dh),execCommand:function(At){if(Mu.hasOwnProperty(At))return Mu[At].call(null,this)},triggerElectric:Rn(function(At){lc(this,At)}),findPosH:function(At,xt,te,Pe){var He=1;xt<0&&(He=-1,xt=-xt);for(var Re=dr(this.doc,At),un=0;un<xt&&(Re=Fd(this.doc,Re,He,te,Pe),!Re.hitSide);++un);return Re},moveH:Rn(function(At,xt){var te=this;this.extendSelectionsBy(function(Pe){return te.display.shift||te.doc.extend||Pe.empty()?Fd(te.doc,Pe.head,At,xt,te.options.rtlMoveVisually):At<0?Pe.from():Pe.to()},Xn)}),deleteH:Rn(function(At,xt){var te=this.doc.sel,Pe=this.doc;te.somethingSelected()?Pe.replaceSelection("",null,"+delete"):vu(this,function(He){var Re=Fd(Pe,He.head,At,xt,!1);return At<0?{from:Re,to:He.head}:{from:He.head,to:Re}})}),findPosV:function(At,xt,te,Pe){var He=1,Re=Pe;xt<0&&(He=-1,xt=-xt);for(var un=dr(this.doc,At),si=0;si<xt;++si){var pn=hl(this,un,"div");if(Re==null?Re=pn.left:pn.left=Re,un=Gc(this,pn,He,te),un.hitSide)break}return un},moveV:Rn(function(At,xt){var te=this,Pe=this.doc,He=[],Re=!this.display.shift&&!Pe.extend&&Pe.sel.somethingSelected();if(Pe.extendSelectionsBy(function(si){if(Re)return At<0?si.from():si.to();var pn=hl(te,si.head,"div");si.goalColumn!=null&&(pn.left=si.goalColumn),He.push(pn.left);var Oi=Gc(te,pn,At,xt);return xt=="page"&&si==Pe.sel.primary()&&Je(te,dh(te,Oi,"div").top-pn.top),Oi},Xn),He.length)for(var un=0;un<Pe.sel.ranges.length;un++)Pe.sel.ranges[un].goalColumn=He[un]}),findWordAt:function(At){var xt=this.doc,te=Bn(xt,At.line).text,Pe=At.ch,He=At.ch;if(te){var Re=this.getHelper(At,"wordChars");(At.sticky=="before"||He==te.length)&&Pe?--Pe:++He;for(var un=te.charAt(Pe),si=Ft(un,Re)?function(pn){return Ft(pn,Re)}:/\s/.test(un)?function(pn){return/\s/.test(pn)}:function(pn){return!/\s/.test(pn)&&!Ft(pn)};Pe>0&&si(te.charAt(Pe-1));)--Pe;for(;He<te.length&&si(te.charAt(He));)++He}return new Rr(On(At.line,Pe),On(At.line,He))},toggleOverwrite:function(At){At!=null&&At==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$e(this.display.cursorDiv,"CodeMirror-overwrite"):Rt(this.display.cursorDiv,"CodeMirror-overwrite"),xn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Vt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Rn(function(At,xt){gn(this,At,xt)}),getScrollInfo:function(){var At=this.display.scroller;return{left:At.scrollLeft,top:At.scrollTop,height:At.scrollHeight-fu(this)-this.display.barHeight,width:At.scrollWidth-fu(this)-this.display.barWidth,clientHeight:_o(this),clientWidth:nu(this)}},scrollIntoView:Rn(function(At,xt){At==null?(At={from:this.doc.sel.primary().head,to:null},xt==null&&(xt=this.options.cursorScrollMargin)):typeof At=="number"?At={from:On(At,0),to:null}:At.from==null&&(At={from:At,to:null}),At.to||(At.to=At.from),At.margin=xt||0,At.from.line!=null?En(this,At):vi(this,At.from,At.to,At.margin)}),setSize:Rn(function(At,xt){var te=this,Pe=function(Re){return typeof Re=="number"||/^\d+$/.test(String(Re))?Re+"px":Re};At!=null&&(this.display.wrapper.style.width=Pe(At)),xt!=null&&(this.display.wrapper.style.height=Pe(xt)),this.options.lineWrapping&&tl(this);var He=this.display.viewFrom;this.doc.iter(He,this.display.viewTo,function(Re){if(Re.widgets){for(var un=0;un<Re.widgets.length;un++)if(Re.widgets[un].noHScroll){ra(te,He,"widget");break}}++He}),this.curOp.forceUpdate=!0,xn(this,"refresh",this)}),operation:function(At){return on(this,At)},startOperation:function(){return Or(this)},endOperation:function(){return qn(this)},refresh:Rn(function(){var At=this.display.cachedTextHeight;Ll(this),this.curOp.forceUpdate=!0,al(this),gn(this,this.doc.scrollLeft,this.doc.scrollTop),Ar(this.display),(At==null||Math.abs(At-Wu(this.display))>.5||this.options.lineWrapping)&&ys(this),xn(this,"refresh",this)}),swapDoc:Rn(function(At){var xt=this.doc;return xt.cm=null,this.state.selectingText&&this.state.selectingText(),Qo(this,At),al(this),this.display.input.reset(),gn(this,At.scrollLeft,At.scrollTop),this.curOp.forceScroll=!0,Gr(this,"swapDoc",this,xt),xt}),phrase:function(At){var xt=this.options.phrases;return xt&&Object.prototype.hasOwnProperty.call(xt,At)?xt[At]:At},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},pr(it),it.registerHelper=function(At,xt,te){ft.hasOwnProperty(At)||(ft[At]=it[At]={_global:[]}),ft[At][xt]=te},it.registerGlobalHelper=function(At,xt,te,Pe){it.registerHelper(At,xt,Pe),ft[At]._global.push({pred:te,val:Pe})}}function Fd(it,st,ft,At,xt){var te=st,Pe=ft,He=Bn(it,st.line),Re=xt&&it.direction=="rtl"?-ft:ft;function un(){var Zo=st.line+Re;return Zo<it.first||Zo>=it.first+it.size?!1:(st=new On(Zo,st.ch,st.sticky),He=Bn(it,Zo))}function si(Zo){var No;if(At=="codepoint"){var as=He.text.charCodeAt(st.ch+(At>0?0:-1));isNaN(as)?No=null:No=new On(st.line,Math.max(0,Math.min(He.text.length,st.ch+ft*(as>=55296&&as<56320?2:1))),-ft)}else xt?No=Ya(it.cm,He,st,ft):No=Hl(He,st,ft);if(No==null)if(!Zo&&un())st=Oa(xt,it.cm,He,st.line,Re);else return!1;else st=No;return!0}if(At=="char"||At=="codepoint")si();else if(At=="column")si(!0);else if(At=="word"||At=="group")for(var pn=null,Oi=At=="group",Ei=it.cm&&it.cm.getHelper(st,"wordChars"),Sr=!0;!(ft<0&&!si(!Sr));Sr=!1){var Dr=He.text.charAt(st.ch)||`
`,eo=Ft(Dr,Ei)?"w":Oi&&Dr==`
`?"n":!Oi||/\s/.test(Dr)?null:"p";if(Oi&&!Sr&&!eo&&(eo="s"),pn&&pn!=eo){ft<0&&(ft=1,si(),st.sticky="after");break}if(eo&&(pn=eo),ft>0&&!si(!Sr))break}var vo=Ah(it,st,te,Pe,!0);return Pr(te,vo)&&(vo.hitSide=!0),vo}function Gc(it,st,ft,At){var xt=it.doc,te=st.left,Pe;if(At=="page"){var He=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(He-.5*Wu(it.display),3);Pe=(ft>0?st.bottom:st.top)+ft*Re}else At=="line"&&(Pe=ft>0?st.bottom+3:st.top-3);for(var un;un=Bh(it,te,Pe),!!un.outside;){if(ft<0?Pe<=0:Pe>=xt.height){un.hitSide=!0;break}Pe+=ft*5}return un}var pl=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ie,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};pl.prototype.init=function(it){var st=this,ft=this,At=ft.cm,xt=ft.div=it.lineDiv;dA(xt,At.options.spellcheck,At.options.autocorrect,At.options.autocapitalize);function te(He){for(var Re=He.target;Re;Re=Re.parentNode){if(Re==xt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}Ie(xt,"paste",function(He){!te(He)||li(At,He)||Fh(He,At)||le<=11&&setTimeout(Dn(At,function(){return st.updateFromDOM()}),20)}),Ie(xt,"compositionstart",function(He){st.composing={data:He.data,done:!1}}),Ie(xt,"compositionupdate",function(He){st.composing||(st.composing={data:He.data,done:!1})}),Ie(xt,"compositionend",function(He){st.composing&&(He.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),Ie(xt,"touchstart",function(){return ft.forceCompositionEnd()}),Ie(xt,"input",function(){st.composing||st.readFromDOMSoon()});function Pe(He){if(!(!te(He)||li(At,He))){if(At.somethingSelected())Nu({lineWise:!1,text:At.getSelections()}),He.type=="cut"&&At.replaceSelection("",null,"cut");else if(At.options.lineWiseCopyCut){var Re=LA(At);Nu({lineWise:!0,text:Re.text}),He.type=="cut"&&At.operation(function(){At.setSelections(Re.ranges,0,Xe),At.replaceSelection("",null,"cut")})}else return;if(He.clipboardData){He.clipboardData.clearData();var un=Kl.text.join(`
`);if(He.clipboardData.setData("Text",un),He.clipboardData.getData("Text")==un){He.preventDefault();return}}var si=MA(),pn=si.firstChild;At.display.lineSpace.insertBefore(si,At.display.lineSpace.firstChild),pn.value=Kl.text.join(`
`);var Oi=document.activeElement;Oe(pn),setTimeout(function(){At.display.lineSpace.removeChild(si),Oi.focus(),Oi==xt&&ft.showPrimarySelection()},50)}}Ie(xt,"copy",Pe),Ie(xt,"cut",Pe)},pl.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},pl.prototype.prepareSelection=function(){var it=wd(this.cm,!1);return it.focus=document.activeElement==this.div,it},pl.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},pl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},pl.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,ft=st.doc.sel.primary(),At=ft.from(),xt=ft.to();if(st.display.viewTo==st.display.viewFrom||At.line>=st.display.viewTo||xt.line<st.display.viewFrom){it.removeAllRanges();return}var te=mc(st,it.anchorNode,it.anchorOffset),Pe=mc(st,it.focusNode,it.focusOffset);if(!(te&&!te.bad&&Pe&&!Pe.bad&&Si(sr(te,Pe),At)==0&&Si(Kr(te,Pe),xt)==0)){var He=st.display.view,Re=At.line>=st.display.viewFrom&&Iu(st,At)||{node:He[0].measure.map[2],offset:0},un=xt.line<st.display.viewTo&&Iu(st,xt);if(!un){var si=He[He.length-1].measure,pn=si.maps?si.maps[si.maps.length-1]:si.map;un={node:pn[pn.length-1],offset:pn[pn.length-2]-pn[pn.length-3]}}if(!Re||!un){it.removeAllRanges();return}var Oi=it.rangeCount&&it.getRangeAt(0),Ei;try{Ei=ne(Re.node,Re.offset,un.offset,un.node)}catch(Sr){}Ei&&(!Lt&&st.state.focused?(it.collapse(Re.node,Re.offset),Ei.collapsed||(it.removeAllRanges(),it.addRange(Ei))):(it.removeAllRanges(),it.addRange(Ei)),Oi&&it.anchorNode==null?it.addRange(Oi):Lt&&this.startGracePeriod()),this.rememberSelection()}},pl.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},pl.prototype.showMultipleSelections=function(it){he(this.cm.display.cursorDiv,it.cursors),he(this.cm.display.selectionDiv,it.selection)},pl.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},pl.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var st=it.getRangeAt(0).commonAncestorContainer;return Ke(this.div,st)},pl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},pl.prototype.blur=function(){this.div.blur()},pl.prototype.getField=function(){return this.div},pl.prototype.supportsTouch=function(){return!0},pl.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():on(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function st(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,st))}this.polling.set(this.cm.options.pollInterval,st)},pl.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},pl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),st=this.cm;if(et&&ee&&this.cm.display.gutterSpecs.length&&Yd(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ft=mc(st,it.anchorNode,it.anchorOffset),At=mc(st,it.focusNode,it.focusOffset);ft&&At&&on(st,function(){Ta(st.doc,hs(ft,At),Xe),(ft.bad||At.bad)&&(st.curOp.selectionChanged=!0)})}}},pl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,st=it.display,ft=it.doc.sel.primary(),At=ft.from(),xt=ft.to();if(At.ch==0&&At.line>it.firstLine()&&(At=On(At.line-1,Bn(it.doc,At.line-1).length)),xt.ch==Bn(it.doc,xt.line).text.length&&xt.line<it.lastLine()&&(xt=On(xt.line+1,0)),At.line<st.viewFrom||xt.line>st.viewTo-1)return!1;var te,Pe,He;At.line==st.viewFrom||(te=Xu(it,At.line))==0?(Pe=mn(st.view[0].line),He=st.view[0].node):(Pe=mn(st.view[te].line),He=st.view[te-1].node.nextSibling);var Re=Xu(it,xt.line),un,si;if(Re==st.view.length-1?(un=st.viewTo-1,si=st.lineDiv.lastChild):(un=mn(st.view[Re+1].line)-1,si=st.view[Re+1].node.previousSibling),!He)return!1;for(var pn=it.doc.splitLines(jh(it,He,si,Pe,un)),Oi=_n(it.doc,On(Pe,0),On(un,Bn(it.doc,un).text.length));pn.length>1&&Oi.length>1;)if(sn(pn)==sn(Oi))pn.pop(),Oi.pop(),un--;else if(pn[0]==Oi[0])pn.shift(),Oi.shift(),Pe++;else break;for(var Ei=0,Sr=0,Dr=pn[0],eo=Oi[0],vo=Math.min(Dr.length,eo.length);Ei<vo&&Dr.charCodeAt(Ei)==eo.charCodeAt(Ei);)++Ei;for(var Zo=sn(pn),No=sn(Oi),as=Math.min(Zo.length-(pn.length==1?Ei:0),No.length-(Oi.length==1?Ei:0));Sr<as&&Zo.charCodeAt(Zo.length-Sr-1)==No.charCodeAt(No.length-Sr-1);)++Sr;if(pn.length==1&&Oi.length==1&&Pe==At.line)for(;Ei&&Ei>At.ch&&Zo.charCodeAt(Zo.length-Sr-1)==No.charCodeAt(No.length-Sr-1);)Ei--,Sr++;pn[pn.length-1]=Zo.slice(0,Zo.length-Sr).replace(/^\u200b+/,""),pn[0]=pn[0].slice(Ei).replace(/\u200b+$/,"");var ks=On(Pe,Ei),Io=On(un,Oi.length?sn(Oi).length-Sr:0);if(pn.length>1||pn[0]||Si(ks,Io))return oc(it.doc,pn,ks,Io,"+input"),!0},pl.prototype.ensurePolled=function(){this.forceCompositionEnd()},pl.prototype.reset=function(){this.forceCompositionEnd()},pl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},pl.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},pl.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&on(this.cm,function(){return Ll(it.cm)})},pl.prototype.setUneditable=function(it){it.contentEditable="false"},pl.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Dn(this.cm,ac)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},pl.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},pl.prototype.onContextMenu=function(){},pl.prototype.resetPosition=function(){},pl.prototype.needsContentAttribute=!0;function Iu(it,st){var ft=nc(it,st.line);if(!ft||ft.hidden)return null;var At=Bn(it.doc,st.line),xt=Eu(ft,At,st.line),te=Se(At,it.doc.direction),Pe="left";if(te){var He=mt(te,st.ch);Pe=He%2?"right":"left"}var Re=Oc(xt.map,st.ch,Pe);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function Yd(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Wl(it,st){return st&&(it.bad=!0),it}function jh(it,st,ft,At,xt){var te="",Pe=!1,He=it.doc.lineSeparator(),Re=!1;function un(Ei){return function(Sr){return Sr.id==Ei}}function si(){Pe&&(te+=He,Re&&(te+=He),Pe=Re=!1)}function pn(Ei){Ei&&(si(),te+=Ei)}function Oi(Ei){if(Ei.nodeType==1){var Sr=Ei.getAttribute("cm-text");if(Sr){pn(Sr);return}var Dr=Ei.getAttribute("cm-marker"),eo;if(Dr){var vo=it.findMarks(On(At,0),On(xt+1,0),un(+Dr));vo.length&&(eo=vo[0].find(0))&&pn(_n(it.doc,eo.from,eo.to).join(He));return}if(Ei.getAttribute("contenteditable")=="false")return;var Zo=/^(pre|div|p|li|table|br)$/i.test(Ei.nodeName);if(!/^br$/i.test(Ei.nodeName)&&Ei.textContent.length==0)return;Zo&&si();for(var No=0;No<Ei.childNodes.length;No++)Oi(Ei.childNodes[No]);/^(pre|p)$/i.test(Ei.nodeName)&&(Re=!0),Zo&&(Pe=!0)}else Ei.nodeType==3&&pn(Ei.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Oi(st),st!=ft;)st=st.nextSibling,Re=!1;return te}function mc(it,st,ft){var At;if(st==it.display.lineDiv){if(At=it.display.lineDiv.childNodes[ft],!At)return Wl(it.clipPos(On(it.display.viewTo-1)),!0);st=null,ft=0}else for(At=st;;At=At.parentNode){if(!At||At==it.display.lineDiv)return null;if(At.parentNode&&At.parentNode==it.display.lineDiv)break}for(var xt=0;xt<it.display.view.length;xt++){var te=it.display.view[xt];if(te.node==At)return th(te,st,ft)}}function th(it,st,ft){var At=it.text.firstChild,xt=!1;if(!st||!Ke(At,st))return Wl(On(mn(it.line),0),!0);if(st==At&&(xt=!0,st=At.childNodes[ft],ft=0,!st)){var te=it.rest?sn(it.rest):it.line;return Wl(On(mn(te),te.text.length),xt)}var Pe=st.nodeType==3?st:null,He=st;for(!Pe&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(Pe=st.firstChild,ft&&(ft=Pe.nodeValue.length));He.parentNode!=At;)He=He.parentNode;var Re=it.measure,un=Re.maps;function si(eo,vo,Zo){for(var No=-1;No<(un?un.length:0);No++)for(var as=No<0?Re.map:un[No],ks=0;ks<as.length;ks+=3){var Io=as[ks+2];if(Io==eo||Io==vo){var ea=mn(No<0?it.line:it.rest[No]),Bl=as[ks]+Zo;return(Zo<0||Io!=eo)&&(Bl=as[ks+(Zo?1:0)]),On(ea,Bl)}}}var pn=si(Pe,He,ft);if(pn)return Wl(pn,xt);for(var Oi=He.nextSibling,Ei=Pe?Pe.nodeValue.length-ft:0;Oi;Oi=Oi.nextSibling){if(pn=si(Oi,Oi.firstChild,0),pn)return Wl(On(pn.line,pn.ch-Ei),xt);Ei+=Oi.textContent.length}for(var Sr=He.previousSibling,Dr=ft;Sr;Sr=Sr.previousSibling){if(pn=si(Sr,Sr.firstChild,-1),pn)return Wl(On(pn.line,pn.ch+Dr),xt);Dr+=Sr.textContent.length}}var Vl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new ie,this.hasSelection=!1,this.composing=null};Vl.prototype.init=function(it){var st=this,ft=this,At=this.cm;this.createField(it);var xt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),wt&&(xt.style.width="0px"),Ie(xt,"input",function(){re&&le>=9&&st.hasSelection&&(st.hasSelection=null),ft.poll()}),Ie(xt,"paste",function(Pe){li(At,Pe)||Fh(Pe,At)||(At.state.pasteIncoming=+new Date,ft.fastPoll())});function te(Pe){if(!li(At,Pe)){if(At.somethingSelected())Nu({lineWise:!1,text:At.getSelections()});else if(At.options.lineWiseCopyCut){var He=LA(At);Nu({lineWise:!0,text:He.text}),Pe.type=="cut"?At.setSelections(He.ranges,null,Xe):(ft.prevInput="",xt.value=He.text.join(`
`),Oe(xt))}else return;Pe.type=="cut"&&(At.state.cutIncoming=+new Date)}}Ie(xt,"cut",te),Ie(xt,"copy",te),Ie(it.scroller,"paste",function(Pe){if(!(lu(it,Pe)||li(At,Pe))){if(!xt.dispatchEvent){At.state.pasteIncoming=+new Date,ft.focus();return}var He=new Event("paste");He.clipboardData=Pe.clipboardData,xt.dispatchEvent(He)}}),Ie(it.lineSpace,"selectstart",function(Pe){lu(it,Pe)||xr(Pe)}),Ie(xt,"compositionstart",function(){var Pe=At.getCursor("from");ft.composing&&ft.composing.range.clear(),ft.composing={start:Pe,range:At.markText(Pe,At.getCursor("to"),{className:"CodeMirror-composing"})}}),Ie(xt,"compositionend",function(){ft.composing&&(ft.poll(),ft.composing.range.clear(),ft.composing=null)})},Vl.prototype.createField=function(it){this.wrapper=MA(),this.textarea=this.wrapper.firstChild},Vl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Vl.prototype.prepareSelection=function(){var it=this.cm,st=it.display,ft=it.doc,At=wd(it);if(it.options.moveInputWithCursor){var xt=hl(it,ft.sel.primary().head,"div"),te=st.wrapper.getBoundingClientRect(),Pe=st.lineDiv.getBoundingClientRect();At.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,xt.top+Pe.top-te.top)),At.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,xt.left+Pe.left-te.left))}return At},Vl.prototype.showSelection=function(it){var st=this.cm,ft=st.display;he(ft.cursorDiv,it.cursors),he(ft.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Vl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var ft=st.getSelection();this.textarea.value=ft,st.state.focused&&Oe(this.textarea),re&&le>=9&&(this.hasSelection=ft)}else it||(this.prevInput=this.textarea.value="",re&&le>=9&&(this.hasSelection=null))}},Vl.prototype.getField=function(){return this.textarea},Vl.prototype.supportsTouch=function(){return!1},Vl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||Vt()!=this.textarea))try{this.textarea.focus()}catch(it){}},Vl.prototype.blur=function(){this.textarea.blur()},Vl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Vl.prototype.receivedFocus=function(){this.slowPoll()},Vl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Vl.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function ft(){var At=st.poll();!At&&!it?(it=!0,st.polling.set(60,ft)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,ft)},Vl.prototype.poll=function(){var it=this,st=this.cm,ft=this.textarea,At=this.prevInput;if(this.contextMenuPending||!st.state.focused||Yt(ft)&&!At&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var xt=ft.value;if(xt==At&&!st.somethingSelected())return!1;if(re&&le>=9&&this.hasSelection===xt||lt&&/[\uf700-\uf7ff]/.test(xt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var te=xt.charCodeAt(0);if(te==8203&&!At&&(At="\u200B"),te==8666)return this.reset(),this.cm.execCommand("undo")}for(var Pe=0,He=Math.min(At.length,xt.length);Pe<He&&At.charCodeAt(Pe)==xt.charCodeAt(Pe);)++Pe;return on(st,function(){ac(st,xt.slice(Pe),At.length-Pe,null,it.composing?"*compose":null),xt.length>1e3||xt.indexOf(`
`)>-1?ft.value=it.prevInput="":it.prevInput=xt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Vl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Vl.prototype.onKeyPress=function(){re&&le>=9&&(this.hasSelection=null),this.fastPoll()},Vl.prototype.onContextMenu=function(it){var st=this,ft=st.cm,At=ft.display,xt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var te=oh(ft,it),Pe=At.scroller.scrollTop;if(!te||Ct)return;var He=ft.options.resetSelectionOnContextMenu;He&&ft.doc.sel.contains(te)==-1&&Dn(ft,Ta)(ft.doc,hs(te),Xe);var Re=xt.style.cssText,un=st.wrapper.style.cssText,si=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",xt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(it.clientY-si.top-5)+"px; left: "+(it.clientX-si.left-5)+`px;
z-index: 1000; background: `+(re?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var pn;Et&&(pn=window.scrollY),At.input.focus(),Et&&window.scrollTo(null,pn),At.input.reset(),ft.somethingSelected()||(xt.value=st.prevInput=" "),st.contextMenuPending=Ei,At.selForContextMenu=ft.doc.sel,clearTimeout(At.detectingSelectAll);function Oi(){if(xt.selectionStart!=null){var Dr=ft.somethingSelected(),eo="\u200B"+(Dr?xt.value:"");xt.value="\u21DA",xt.value=eo,st.prevInput=Dr?"":"\u200B",xt.selectionStart=1,xt.selectionEnd=eo.length,At.selForContextMenu=ft.doc.sel}}function Ei(){if(st.contextMenuPending==Ei&&(st.contextMenuPending=!1,st.wrapper.style.cssText=un,xt.style.cssText=Re,re&&le<9&&At.scrollbars.setScrollTop(At.scroller.scrollTop=Pe),xt.selectionStart!=null)){(!re||re&&le<9)&&Oi();var Dr=0,eo=function(){At.selForContextMenu==ft.doc.sel&&xt.selectionStart==0&&xt.selectionEnd>0&&st.prevInput=="\u200B"?Dn(ft,Ha)(ft):Dr++<10?At.detectingSelectAll=setTimeout(eo,500):(At.selForContextMenu=null,At.input.reset())};At.detectingSelectAll=setTimeout(eo,200)}}if(re&&le>=9&&Oi(),Mt){Jr(it);var Sr=function(){zn(window,"mouseup",Sr),setTimeout(Ei,20)};Ie(window,"mouseup",Sr)}else setTimeout(Ei,50)},Vl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Vl.prototype.setUneditable=function(){},Vl.prototype.needsContentAttribute=!1;function Ld(it,st){if(st=st?_e(st):{},st.value=it.value,!st.tabindex&&it.tabIndex&&(st.tabindex=it.tabIndex),!st.placeholder&&it.placeholder&&(st.placeholder=it.placeholder),st.autofocus==null){var ft=Vt();st.autofocus=ft==it||it.getAttribute("autofocus")!=null&&ft==document.body}function At(){it.value=He.getValue()}var xt;if(it.form&&(Ie(it.form,"submit",At),!st.leaveSubmitMethodAlone)){var te=it.form;xt=te.submit;try{var Pe=te.submit=function(){At(),te.submit=xt,te.submit(),te.submit=Pe}}catch(Re){}}st.finishInit=function(Re){Re.save=At,Re.getTextArea=function(){return it},Re.toTextArea=function(){Re.toTextArea=isNaN,At(),it.parentNode.removeChild(Re.getWrapperElement()),it.style.display="",it.form&&(zn(it.form,"submit",At),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=xt))}},it.style.display="none";var He=vs(function(Re){return it.parentNode.insertBefore(Re,it.nextSibling)},st);return He}function Uh(it){it.off=zn,it.on=Ie,it.wheelEventPixels=Zr,it.Doc=Lu,it.splitLines=So,it.countColumn=xe,it.findColumn=pi,it.isWordChar=Ot,it.Pass=Mn,it.signal=xn,it.Line=Ho,it.changeEnd=$o,it.scrollbarModel=mr,it.Pos=On,it.cmpPos=Si,it.modes=xa,it.mimeModes=va,it.resolveMode=Vn,it.getMode=Qn,it.modeExtensions=kn,it.extendMode=rn,it.copyState=hi,it.startState=bn,it.innerMode=Ci,it.commands=Mu,it.keyMap=mu,it.keyName=Vd,it.isModifierKey=Rc,it.lookupKey=qu,it.normalizeKeyMap=Wd,it.StringStream=Ne,it.SharedTextMarker=Oh,it.TextMarker=Kn,it.LineWidget=hu,it.e_preventDefault=xr,it.e_stopPropagation=qr,it.e_stop=Jr,it.addClass=$e,it.contains=Ke,it.rmClass=Rt,it.keyNames=Gh}Ys(vs),pc(vs);var lh="iter insert remove copy getEditor constructor".split(" ");for(var sd in Lu.prototype)Lu.prototype.hasOwnProperty(sd)&&be(lh,sd)<0&&(vs.prototype[sd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Lu.prototype[sd]));return pr(Lu),vs.inputStyles={textarea:Vl,contenteditable:pl},vs.defineMode=function(it){!vs.defaults.mode&&it!="null"&&(vs.defaults.mode=it),Zs.apply(this,arguments)},vs.defineMIME=Qr,vs.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),vs.defineMIME("text/plain","null"),vs.defineExtension=function(it,st){vs.prototype[it]=st},vs.defineDocExtension=function(it,st){Lu.prototype[it]=st},vs.fromTextArea=Ld,Uh(vs),vs.version="5.58.2",vs})},25419:function(di,Pn,bt){(function(Lt){Lt(bt(89780),bt(15525),bt(98101))})(function(Lt){"use strict";Lt.defineMode("markdown",function(ge,se){var De=Lt.getMode(ge,"text/html"),re=De.name=="null";function le(xe){if(Lt.findModeByName){var ie=Lt.findModeByName(xe);ie&&(xe=ie.mime||ie.mimes[0])}var be=Lt.getMode(ge,xe);return be.name=="null"?null:be}se.highlightFormatting===void 0&&(se.highlightFormatting=!1),se.maxBlockquoteDepth===void 0&&(se.maxBlockquoteDepth=0),se.taskLists===void 0&&(se.taskLists=!1),se.strikethrough===void 0&&(se.strikethrough=!1),se.emoji===void 0&&(se.emoji=!1),se.fencedCodeBlockHighlighting===void 0&&(se.fencedCodeBlockHighlighting=!0),se.fencedCodeBlockDefaultMode===void 0&&(se.fencedCodeBlockDefaultMode="text/plain"),se.xml===void 0&&(se.xml=!0),se.tokenTypeOverrides===void 0&&(se.tokenTypeOverrides={});var Et={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Tt in Et)Et.hasOwnProperty(Tt)&&se.tokenTypeOverrides[Tt]&&(Et[Tt]=se.tokenTypeOverrides[Tt]);var ee=/^([*\-_])(?:\s*\1){2,}\s*$/,Ct=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Wt=/^\[(x| )\](?=\s)/i,Gt=se.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Jt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,wt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,tt=/^\s*\[[^\]]+?\]:.*$/,lt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,rt=" ";function ht(xe,ie,be){return ie.f=ie.inline=be,be(xe,ie)}function dt(xe,ie,be){return ie.f=ie.block=be,be(xe,ie)}function yt(xe){return!xe||!/\S/.test(xe.string)}function Mt(xe){if(xe.linkTitle=!1,xe.linkHref=!1,xe.linkText=!1,xe.em=!1,xe.strong=!1,xe.strikethrough=!1,xe.quote=0,xe.indentedCode=!1,xe.f==Rt){var ie=re;if(!ie){var be=Lt.innerMode(De,xe.htmlState);ie=be.mode.name=="xml"&&be.state.tagStart===null&&!be.state.context&&be.state.tokenize.isInText}ie&&(xe.f=Te,xe.block=jt,xe.htmlState=null)}return xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,xe.prevLine=xe.thisLine,xe.thisLine={stream:null},null}function jt(xe,ie){var be=xe.column()===ie.indentation,Fn=yt(ie.prevLine.stream),Mn=ie.indentedCode,Xe=ie.prevLine.hr,In=ie.list!==!1,Xn=(ie.listStack[ie.listStack.length-1]||0)+3;ie.indentedCode=!1;var pi=ie.indentation;if(ie.indentationDiff===null&&(ie.indentationDiff=ie.indentation,In)){for(ie.list=null;pi<ie.listStack[ie.listStack.length-1];)ie.listStack.pop(),ie.listStack.length?ie.indentation=ie.listStack[ie.listStack.length-1]:ie.list=!1;ie.list!==!1&&(ie.indentationDiff=pi-ie.listStack[ie.listStack.length-1])}var $n=!Fn&&!Xe&&!ie.prevLine.header&&(!In||!Mn)&&!ie.prevLine.fencedCodeEnd,bi=(ie.list===!1||Xe||Fn)&&ie.indentation<=Xn&&xe.match(ee),sn=null;if(ie.indentationDiff>=4&&(Mn||ie.prevLine.fencedCodeEnd||ie.prevLine.header||Fn))return xe.skipToEnd(),ie.indentedCode=!0,Et.code;if(xe.eatSpace())return null;if(be&&ie.indentation<=Xn&&(sn=xe.match(Gt))&&sn[1].length<=6)return ie.quote=0,ie.header=sn[1].length,ie.thisLine.header=!0,se.highlightFormatting&&(ie.formatting="header"),ie.f=ie.inline,he(ie);if(ie.indentation<=Xn&&xe.eat(">"))return ie.quote=be?1:ie.quote+1,se.highlightFormatting&&(ie.formatting="quote"),xe.eatSpace(),he(ie);if(!bi&&!ie.setext&&be&&ie.indentation<=Xn&&(sn=xe.match(Ct))){var Li=sn[1]?"ol":"ul";return ie.indentation=pi+xe.current().length,ie.list=!0,ie.quote=0,ie.listStack.push(ie.indentation),ie.em=!1,ie.strong=!1,ie.code=!1,ie.strikethrough=!1,se.taskLists&&xe.match(Wt,!1)&&(ie.taskList=!0),ie.f=ie.inline,se.highlightFormatting&&(ie.formatting=["list","list-"+Li]),he(ie)}else{if(be&&ie.indentation<=Xn&&(sn=xe.match(et,!0)))return ie.quote=0,ie.fencedEndRE=new RegExp(sn[1]+"+ *$"),ie.localMode=se.fencedCodeBlockHighlighting&&le(sn[2]||se.fencedCodeBlockDefaultMode),ie.localMode&&(ie.localState=Lt.startState(ie.localMode)),ie.f=ie.block=ae,se.highlightFormatting&&(ie.formatting="code-block"),ie.code=-1,he(ie);if(ie.setext||(!$n||!In)&&!ie.quote&&ie.list===!1&&!ie.code&&!bi&&!tt.test(xe.string)&&(sn=xe.lookAhead(1))&&(sn=sn.match(Jt)))return ie.setext?(ie.header=ie.setext,ie.setext=0,xe.skipToEnd(),se.highlightFormatting&&(ie.formatting="header")):(ie.header=sn[0].charAt(0)=="="?1:2,ie.setext=ie.header),ie.thisLine.header=!0,ie.f=ie.inline,he(ie);if(bi)return xe.skipToEnd(),ie.hr=!0,ie.thisLine.hr=!0,Et.hr;if(xe.peek()==="[")return ht(xe,ie,Ge)}return ht(xe,ie,ie.inline)}function Rt(xe,ie){var be=De.token(xe,ie.htmlState);if(!re){var Fn=Lt.innerMode(De,ie.htmlState);(Fn.mode.name=="xml"&&Fn.state.tagStart===null&&!Fn.state.context&&Fn.state.tokenize.isInText||ie.md_inside&&xe.current().indexOf(">")>-1)&&(ie.f=Te,ie.block=jt,ie.htmlState=null)}return be}function ae(xe,ie){var be=ie.listStack[ie.listStack.length-1]||0,Fn=ie.indentation<be,Mn=be+3;if(ie.fencedEndRE&&ie.indentation<=Mn&&(Fn||xe.match(ie.fencedEndRE))){se.highlightFormatting&&(ie.formatting="code-block");var Xe;return Fn||(Xe=he(ie)),ie.localMode=ie.localState=null,ie.block=jt,ie.f=Te,ie.fencedEndRE=null,ie.code=0,ie.thisLine.fencedCodeEnd=!0,Fn?dt(xe,ie,ie.block):Xe}else return ie.localMode?ie.localMode.token(xe,ie.localState):(xe.skipToEnd(),Et.code)}function he(xe){var ie=[];if(xe.formatting){ie.push(Et.formatting),typeof xe.formatting=="string"&&(xe.formatting=[xe.formatting]);for(var be=0;be<xe.formatting.length;be++)ie.push(Et.formatting+"-"+xe.formatting[be]),xe.formatting[be]==="header"&&ie.push(Et.formatting+"-"+xe.formatting[be]+"-"+xe.header),xe.formatting[be]==="quote"&&(!se.maxBlockquoteDepth||se.maxBlockquoteDepth>=xe.quote?ie.push(Et.formatting+"-"+xe.formatting[be]+"-"+xe.quote):ie.push("error"))}if(xe.taskOpen)return ie.push("meta"),ie.length?ie.join(" "):null;if(xe.taskClosed)return ie.push("property"),ie.length?ie.join(" "):null;if(xe.linkHref?ie.push(Et.linkHref,"url"):(xe.strong&&ie.push(Et.strong),xe.em&&ie.push(Et.em),xe.strikethrough&&ie.push(Et.strikethrough),xe.emoji&&ie.push(Et.emoji),xe.linkText&&ie.push(Et.linkText),xe.code&&ie.push(Et.code),xe.image&&ie.push(Et.image),xe.imageAltText&&ie.push(Et.imageAltText,"link"),xe.imageMarker&&ie.push(Et.imageMarker)),xe.header&&ie.push(Et.header,Et.header+"-"+xe.header),xe.quote&&(ie.push(Et.quote),!se.maxBlockquoteDepth||se.maxBlockquoteDepth>=xe.quote?ie.push(Et.quote+"-"+xe.quote):ie.push(Et.quote+"-"+se.maxBlockquoteDepth)),xe.list!==!1){var Fn=(xe.listStack.length-1)%3;Fn?Fn===1?ie.push(Et.list2):ie.push(Et.list3):ie.push(Et.list1)}return xe.trailingSpaceNewLine?ie.push("trailing-space-new-line"):xe.trailingSpace&&ie.push("trailing-space-"+(xe.trailingSpace%2?"a":"b")),ie.length?ie.join(" "):null}function pe(xe,ie){if(xe.match(wt,!0))return he(ie)}function Te(xe,ie){var be=ie.text(xe,ie);if(typeof be!="undefined")return be;if(ie.list)return ie.list=null,he(ie);if(ie.taskList){var Fn=xe.match(Wt,!0)[1]===" ";return Fn?ie.taskOpen=!0:ie.taskClosed=!0,se.highlightFormatting&&(ie.formatting="task"),ie.taskList=!1,he(ie)}if(ie.taskOpen=!1,ie.taskClosed=!1,ie.header&&xe.match(/^#+$/,!0))return se.highlightFormatting&&(ie.formatting="header"),he(ie);var Mn=xe.next();if(ie.linkTitle){ie.linkTitle=!1;var Xe=Mn;Mn==="("&&(Xe=")"),Xe=(Xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var In="^\\s*(?:[^"+Xe+"\\\\]+|\\\\\\\\|\\\\.)"+Xe;if(xe.match(new RegExp(In),!0))return Et.linkHref}if(Mn==="`"){var Xn=ie.formatting;se.highlightFormatting&&(ie.formatting="code"),xe.eatWhile("`");var pi=xe.current().length;if(ie.code==0&&(!ie.quote||pi==1))return ie.code=pi,he(ie);if(pi==ie.code){var $n=he(ie);return ie.code=0,$n}else return ie.formatting=Xn,he(ie)}else if(ie.code)return he(ie);if(Mn==="\\"&&(xe.next(),se.highlightFormatting)){var bi=he(ie),sn=Et.formatting+"-escape";return bi?bi+" "+sn:sn}if(Mn==="!"&&xe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ie.imageMarker=!0,ie.image=!0,se.highlightFormatting&&(ie.formatting="image"),he(ie);if(Mn==="["&&ie.imageMarker&&xe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ie.imageMarker=!1,ie.imageAltText=!0,se.highlightFormatting&&(ie.formatting="image"),he(ie);if(Mn==="]"&&ie.imageAltText){se.highlightFormatting&&(ie.formatting="image");var bi=he(ie);return ie.imageAltText=!1,ie.image=!1,ie.inline=ie.f=Ke,bi}if(Mn==="["&&!ie.image)return ie.linkText&&xe.match(/^.*?\]/)||(ie.linkText=!0,se.highlightFormatting&&(ie.formatting="link")),he(ie);if(Mn==="]"&&ie.linkText){se.highlightFormatting&&(ie.formatting="link");var bi=he(ie);return ie.linkText=!1,ie.inline=ie.f=xe.match(/\(.*?\)| ?\[.*?\]/,!1)?Ke:Te,bi}if(Mn==="<"&&xe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ie.f=ie.inline=ne,se.highlightFormatting&&(ie.formatting="link");var bi=he(ie);return bi?bi+=" ":bi="",bi+Et.linkInline}if(Mn==="<"&&xe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ie.f=ie.inline=ne,se.highlightFormatting&&(ie.formatting="link");var bi=he(ie);return bi?bi+=" ":bi="",bi+Et.linkEmail}if(se.xml&&Mn==="<"&&xe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Li=xe.string.indexOf(">",xe.pos);if(Li!=-1){var ji=xe.string.substring(xe.start,Li);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ji)&&(ie.md_inside=!0)}return xe.backUp(1),ie.htmlState=Lt.startState(De),dt(xe,ie,Rt)}if(se.xml&&Mn==="<"&&xe.match(/^\/\w*?>/))return ie.md_inside=!1,"tag";if(Mn==="*"||Mn==="_"){for(var ve=1,hn=xe.pos==1?" ":xe.string.charAt(xe.pos-2);ve<3&&xe.eat(Mn);)ve++;var Ae=xe.peek()||" ",Ot=!/\s/.test(Ae)&&(!lt.test(Ae)||/\s/.test(hn)||lt.test(hn)),Ft=!/\s/.test(hn)&&(!lt.test(hn)||/\s/.test(Ae)||lt.test(Ae)),Kt=null,Ee=null;if(ve%2&&(!ie.em&&Ot&&(Mn==="*"||!Ft||lt.test(hn))?Kt=!0:ie.em==Mn&&Ft&&(Mn==="*"||!Ot||lt.test(Ae))&&(Kt=!1)),ve>1&&(!ie.strong&&Ot&&(Mn==="*"||!Ft||lt.test(hn))?Ee=!0:ie.strong==Mn&&Ft&&(Mn==="*"||!Ot||lt.test(Ae))&&(Ee=!1)),Ee!=null||Kt!=null){se.highlightFormatting&&(ie.formatting=Kt==null?"strong":Ee==null?"em":"strong em"),Kt===!0&&(ie.em=Mn),Ee===!0&&(ie.strong=Mn);var $n=he(ie);return Kt===!1&&(ie.em=!1),Ee===!1&&(ie.strong=!1),$n}}else if(Mn===" "&&(xe.eat("*")||xe.eat("_"))){if(xe.peek()===" ")return he(ie);xe.backUp(1)}if(se.strikethrough){if(Mn==="~"&&xe.eatWhile(Mn)){if(ie.strikethrough){se.highlightFormatting&&(ie.formatting="strikethrough");var $n=he(ie);return ie.strikethrough=!1,$n}else if(xe.match(/^[^\s]/,!1))return ie.strikethrough=!0,se.highlightFormatting&&(ie.formatting="strikethrough"),he(ie)}else if(Mn===" "&&xe.match(/^~~/,!0)){if(xe.peek()===" ")return he(ie);xe.backUp(2)}}if(se.emoji&&Mn===":"&&xe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ie.emoji=!0,se.highlightFormatting&&(ie.formatting="emoji");var je=he(ie);return ie.emoji=!1,je}return Mn===" "&&(xe.match(/^ +$/,!1)?ie.trailingSpace++:ie.trailingSpace&&(ie.trailingSpaceNewLine=!0)),he(ie)}function ne(xe,ie){var be=xe.next();if(be===">"){ie.f=ie.inline=Te,se.highlightFormatting&&(ie.formatting="link");var Fn=he(ie);return Fn?Fn+=" ":Fn="",Fn+Et.linkInline}return xe.match(/^[^>]+/,!0),Et.linkInline}function Ke(xe,ie){if(xe.eatSpace())return null;var be=xe.next();return be==="("||be==="["?(ie.f=ie.inline=$e(be==="("?")":"]"),se.highlightFormatting&&(ie.formatting="link-string"),ie.linkHref=!0,he(ie)):"error"}var Vt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $e(xe){return function(ie,be){var Fn=ie.next();if(Fn===xe){be.f=be.inline=Te,se.highlightFormatting&&(be.formatting="link-string");var Mn=he(be);return be.linkHref=!1,Mn}return ie.match(Vt[xe]),be.linkHref=!0,he(be)}}function Ge(xe,ie){return xe.match(/^([^\]\\]|\\.)*\]:/,!1)?(ie.f=Oe,xe.next(),se.highlightFormatting&&(ie.formatting="link"),ie.linkText=!0,he(ie)):ht(xe,ie,Te)}function Oe(xe,ie){if(xe.match(/^\]:/,!0)){ie.f=ie.inline=Ve,se.highlightFormatting&&(ie.formatting="link");var be=he(ie);return ie.linkText=!1,be}return xe.match(/^([^\]\\]|\\.)+/,!0),Et.linkText}function Ve(xe,ie){return xe.eatSpace()?null:(xe.match(/^[^\s]+/,!0),xe.peek()===void 0?ie.linkTitle=!0:xe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ie.f=ie.inline=Te,Et.linkHref+" url")}var _e={startState:function(){return{f:jt,prevLine:{stream:null},thisLine:{stream:null},block:jt,htmlState:null,indentation:0,inline:Te,text:pe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(xe){return{f:xe.f,prevLine:xe.prevLine,thisLine:xe.thisLine,block:xe.block,htmlState:xe.htmlState&&Lt.copyState(De,xe.htmlState),indentation:xe.indentation,localMode:xe.localMode,localState:xe.localMode?Lt.copyState(xe.localMode,xe.localState):null,inline:xe.inline,text:xe.text,formatting:!1,linkText:xe.linkText,linkTitle:xe.linkTitle,linkHref:xe.linkHref,code:xe.code,em:xe.em,strong:xe.strong,strikethrough:xe.strikethrough,emoji:xe.emoji,header:xe.header,setext:xe.setext,hr:xe.hr,taskList:xe.taskList,list:xe.list,listStack:xe.listStack.slice(0),quote:xe.quote,indentedCode:xe.indentedCode,trailingSpace:xe.trailingSpace,trailingSpaceNewLine:xe.trailingSpaceNewLine,md_inside:xe.md_inside,fencedEndRE:xe.fencedEndRE}},token:function(xe,ie){if(ie.formatting=!1,xe!=ie.thisLine.stream){if(ie.header=0,ie.hr=!1,xe.match(/^\s*$/,!0))return Mt(ie),null;if(ie.prevLine=ie.thisLine,ie.thisLine={stream:xe},ie.taskList=!1,ie.trailingSpace=0,ie.trailingSpaceNewLine=!1,!ie.localState&&(ie.f=ie.block,ie.f!=Rt)){var be=xe.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(ie.indentation=be,ie.indentationDiff=null,be>0)return null}}return ie.f(xe,ie)},innerMode:function(xe){return xe.block==Rt?{state:xe.htmlState,mode:De}:xe.localState?{state:xe.localState,mode:xe.localMode}:{state:xe,mode:_e}},indent:function(xe,ie,be){return xe.block==Rt&&De.indent?De.indent(xe.htmlState,ie,be):xe.localState&&xe.localMode.indent?xe.localMode.indent(xe.localState,ie,be):Lt.Pass},blankLine:Mt,getType:he,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return _e},"xml"),Lt.defineMIME("text/markdown","markdown"),Lt.defineMIME("text/x-markdown","markdown")})},98101:function(di,Pn,bt){(function(Lt){Lt(bt(89780))})(function(Lt){"use strict";Lt.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ge=0;ge<Lt.modeInfo.length;ge++){var se=Lt.modeInfo[ge];se.mimes&&(se.mime=se.mimes[0])}Lt.findModeByMIME=function(De){De=De.toLowerCase();for(var re=0;re<Lt.modeInfo.length;re++){var le=Lt.modeInfo[re];if(le.mime==De)return le;if(le.mimes){for(var Et=0;Et<le.mimes.length;Et++)if(le.mimes[Et]==De)return le}}if(/\+xml$/.test(De))return Lt.findModeByMIME("application/xml");if(/\+json$/.test(De))return Lt.findModeByMIME("application/json")},Lt.findModeByExtension=function(De){De=De.toLowerCase();for(var re=0;re<Lt.modeInfo.length;re++){var le=Lt.modeInfo[re];if(le.ext){for(var Et=0;Et<le.ext.length;Et++)if(le.ext[Et]==De)return le}}},Lt.findModeByFileName=function(De){for(var re=0;re<Lt.modeInfo.length;re++){var le=Lt.modeInfo[re];if(le.file&&le.file.test(De))return le}var Et=De.lastIndexOf("."),Tt=Et>-1&&De.substring(Et+1,De.length);if(Tt)return Lt.findModeByExtension(Tt)},Lt.findModeByName=function(De){De=De.toLowerCase();for(var re=0;re<Lt.modeInfo.length;re++){var le=Lt.modeInfo[re];if(le.name.toLowerCase()==De)return le;if(le.alias){for(var Et=0;Et<le.alias.length;Et++)if(le.alias[Et].toLowerCase()==De)return le}}}})},67549:function(di,Pn,bt){(function(Lt){Lt(bt(89780))})(function(Lt){"use strict";Lt.defineMode("stex",function(ge,se){"use strict";function De(wt,et){wt.cmdState.push(et)}function re(wt){return wt.cmdState.length>0?wt.cmdState[wt.cmdState.length-1]:null}function le(wt){var et=wt.cmdState.pop();et&&et.closeBracket()}function Et(wt){for(var et=wt.cmdState,tt=et.length-1;tt>=0;tt--){var lt=et[tt];if(lt.name!="DEFAULT")return lt}return{styleIdentifier:function(){return null}}}function Tt(wt,et,tt){return function(){this.name=wt,this.bracketNo=0,this.style=et,this.styles=tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ee={};ee.importmodule=Tt("importmodule","tag",["string","builtin"]),ee.documentclass=Tt("documentclass","tag",["","atom"]),ee.usepackage=Tt("usepackage","tag",["atom"]),ee.begin=Tt("begin","tag",["atom"]),ee.end=Tt("end","tag",["atom"]),ee.label=Tt("label","tag",["atom"]),ee.ref=Tt("ref","tag",["atom"]),ee.eqref=Tt("eqref","tag",["atom"]),ee.cite=Tt("cite","tag",["atom"]),ee.bibitem=Tt("bibitem","tag",["atom"]),ee.Bibitem=Tt("Bibitem","tag",["atom"]),ee.RBibitem=Tt("RBibitem","tag",["atom"]),ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ct(wt,et){wt.f=et}function Wt(wt,et){var tt;if(wt.match(/^\\[a-zA-Z@]+/)){var lt=wt.current().slice(1);return tt=ee.hasOwnProperty(lt)?ee[lt]:ee.DEFAULT,tt=new tt,De(et,tt),Ct(et,Jt),tt.style}if(wt.match(/^\\[$&%#{}_]/)||wt.match(/^\\[,;!\/\\]/))return"tag";if(wt.match("\\["))return Ct(et,function(ht,dt){return Gt(ht,dt,"\\]")}),"keyword";if(wt.match("\\("))return Ct(et,function(ht,dt){return Gt(ht,dt,"\\)")}),"keyword";if(wt.match("$$"))return Ct(et,function(ht,dt){return Gt(ht,dt,"$$")}),"keyword";if(wt.match("$"))return Ct(et,function(ht,dt){return Gt(ht,dt,"$")}),"keyword";var rt=wt.next();if(rt=="%")return wt.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=re(et),tt)tt.closeBracket(rt),Ct(et,Jt);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=ee.DEFAULT,tt=new tt,De(et,tt),"bracket"):/\d/.test(rt)?(wt.eatWhile(/[\w.%]/),"atom"):(wt.eatWhile(/[\w\-_]/),tt=Et(et),tt.name=="begin"&&(tt.argument=wt.current()),tt.styleIdentifier())}function Gt(wt,et,tt){if(wt.eatSpace())return null;if(tt&&wt.match(tt))return Ct(et,Wt),"keyword";if(wt.match(/^\\[a-zA-Z@]+/))return"tag";if(wt.match(/^[a-zA-Z]+/))return"variable-2";if(wt.match(/^\\[$&%#{}_]/)||wt.match(/^\\[,;!\/]/)||wt.match(/^[\^_&]/))return"tag";if(wt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(wt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var lt=wt.next();return lt=="{"||lt=="}"||lt=="["||lt=="]"||lt=="("||lt==")"?"bracket":lt=="%"?(wt.skipToEnd(),"comment"):"error"}function Jt(wt,et){var tt=wt.peek(),lt;return tt=="{"||tt=="["?(lt=re(et),lt.openBracket(tt),wt.eat(tt),Ct(et,Wt),"bracket"):/[ \t\r]/.test(tt)?(wt.eat(tt),null):(Ct(et,Wt),le(et),Wt(wt,et))}return{startState:function(){var wt=se.inMathMode?function(et,tt){return Gt(et,tt)}:Wt;return{cmdState:[],f:wt}},copyState:function(wt){return{cmdState:wt.cmdState.slice(),f:wt.f}},token:function(wt,et){return et.f(wt,et)},blankLine:function(wt){wt.f=Wt,wt.cmdState.length=0},lineComment:"%"}}),Lt.defineMIME("text/x-stex","stex"),Lt.defineMIME("text/x-latex","stex")})},15525:function(di,Pn,bt){(function(Lt){Lt(bt(89780))})(function(Lt){"use strict";var ge={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},se={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Lt.defineMode("xml",function(De,re){var le=De.indentUnit,Et={},Tt=re.htmlMode?ge:se;for(var ee in Tt)Et[ee]=Tt[ee];for(var ee in re)Et[ee]=re[ee];var Ct,Wt;function Gt(ne,Ke){function Vt(Oe){return Ke.tokenize=Oe,Oe(ne,Ke)}var $e=ne.next();if($e=="<")return ne.eat("!")?ne.eat("[")?ne.match("CDATA[")?Vt(et("atom","]]>")):null:ne.match("--")?Vt(et("comment","-->")):ne.match("DOCTYPE",!0,!0)?(ne.eatWhile(/[\w\._\-]/),Vt(tt(1))):null:ne.eat("?")?(ne.eatWhile(/[\w\._\-]/),Ke.tokenize=et("meta","?>"),"meta"):(Ct=ne.eat("/")?"closeTag":"openTag",Ke.tokenize=Jt,"tag bracket");if($e=="&"){var Ge;return ne.eat("#")?ne.eat("x")?Ge=ne.eatWhile(/[a-fA-F\d]/)&&ne.eat(";"):Ge=ne.eatWhile(/[\d]/)&&ne.eat(";"):Ge=ne.eatWhile(/[\w\.\-:]/)&&ne.eat(";"),Ge?"atom":"error"}else return ne.eatWhile(/[^&<]/),null}Gt.isInText=!0;function Jt(ne,Ke){var Vt=ne.next();if(Vt==">"||Vt=="/"&&ne.eat(">"))return Ke.tokenize=Gt,Ct=Vt==">"?"endTag":"selfcloseTag","tag bracket";if(Vt=="=")return Ct="equals",null;if(Vt=="<"){Ke.tokenize=Gt,Ke.state=dt,Ke.tagName=Ke.tagStart=null;var $e=Ke.tokenize(ne,Ke);return $e?$e+" tag error":"tag error"}else return/[\'\"]/.test(Vt)?(Ke.tokenize=wt(Vt),Ke.stringStartCol=ne.column(),Ke.tokenize(ne,Ke)):(ne.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function wt(ne){var Ke=function(Vt,$e){for(;!Vt.eol();)if(Vt.next()==ne){$e.tokenize=Jt;break}return"string"};return Ke.isInAttribute=!0,Ke}function et(ne,Ke){return function(Vt,$e){for(;!Vt.eol();){if(Vt.match(Ke)){$e.tokenize=Gt;break}Vt.next()}return ne}}function tt(ne){return function(Ke,Vt){for(var $e;($e=Ke.next())!=null;){if($e=="<")return Vt.tokenize=tt(ne+1),Vt.tokenize(Ke,Vt);if($e==">")if(ne==1){Vt.tokenize=Gt;break}else return Vt.tokenize=tt(ne-1),Vt.tokenize(Ke,Vt)}return"meta"}}function lt(ne,Ke,Vt){this.prev=ne.context,this.tagName=Ke,this.indent=ne.indented,this.startOfLine=Vt,(Et.doNotIndent.hasOwnProperty(Ke)||ne.context&&ne.context.noIndent)&&(this.noIndent=!0)}function rt(ne){ne.context&&(ne.context=ne.context.prev)}function ht(ne,Ke){for(var Vt;;){if(!ne.context||(Vt=ne.context.tagName,!Et.contextGrabbers.hasOwnProperty(Vt)||!Et.contextGrabbers[Vt].hasOwnProperty(Ke)))return;rt(ne)}}function dt(ne,Ke,Vt){return ne=="openTag"?(Vt.tagStart=Ke.column(),yt):ne=="closeTag"?Mt:dt}function yt(ne,Ke,Vt){return ne=="word"?(Vt.tagName=Ke.current(),Wt="tag",ae):Et.allowMissingTagName&&ne=="endTag"?(Wt="tag bracket",ae(ne,Ke,Vt)):(Wt="error",yt)}function Mt(ne,Ke,Vt){if(ne=="word"){var $e=Ke.current();return Vt.context&&Vt.context.tagName!=$e&&Et.implicitlyClosed.hasOwnProperty(Vt.context.tagName)&&rt(Vt),Vt.context&&Vt.context.tagName==$e||Et.matchClosing===!1?(Wt="tag",jt):(Wt="tag error",Rt)}else return Et.allowMissingTagName&&ne=="endTag"?(Wt="tag bracket",jt(ne,Ke,Vt)):(Wt="error",Rt)}function jt(ne,Ke,Vt){return ne!="endTag"?(Wt="error",jt):(rt(Vt),dt)}function Rt(ne,Ke,Vt){return Wt="error",jt(ne,Ke,Vt)}function ae(ne,Ke,Vt){if(ne=="word")return Wt="attribute",he;if(ne=="endTag"||ne=="selfcloseTag"){var $e=Vt.tagName,Ge=Vt.tagStart;return Vt.tagName=Vt.tagStart=null,ne=="selfcloseTag"||Et.autoSelfClosers.hasOwnProperty($e)?ht(Vt,$e):(ht(Vt,$e),Vt.context=new lt(Vt,$e,Ge==Vt.indented)),dt}return Wt="error",ae}function he(ne,Ke,Vt){return ne=="equals"?pe:(Et.allowMissing||(Wt="error"),ae(ne,Ke,Vt))}function pe(ne,Ke,Vt){return ne=="string"?Te:ne=="word"&&Et.allowUnquoted?(Wt="string",ae):(Wt="error",ae(ne,Ke,Vt))}function Te(ne,Ke,Vt){return ne=="string"?Te:ae(ne,Ke,Vt)}return{startState:function(ne){var Ke={tokenize:Gt,state:dt,indented:ne||0,tagName:null,tagStart:null,context:null};return ne!=null&&(Ke.baseIndent=ne),Ke},token:function(ne,Ke){if(!Ke.tagName&&ne.sol()&&(Ke.indented=ne.indentation()),ne.eatSpace())return null;Ct=null;var Vt=Ke.tokenize(ne,Ke);return(Vt||Ct)&&Vt!="comment"&&(Wt=null,Ke.state=Ke.state(Ct||Vt,ne,Ke),Wt&&(Vt=Wt=="error"?Vt+" error":Wt)),Vt},indent:function(ne,Ke,Vt){var $e=ne.context;if(ne.tokenize.isInAttribute)return ne.tagStart==ne.indented?ne.stringStartCol+1:ne.indented+le;if($e&&$e.noIndent)return Lt.Pass;if(ne.tokenize!=Jt&&ne.tokenize!=Gt)return Vt?Vt.match(/^(\s*)/)[0].length:0;if(ne.tagName)return Et.multilineTagIndentPastTag!==!1?ne.tagStart+ne.tagName.length+2:ne.tagStart+le*(Et.multilineTagIndentFactor||1);if(Et.alignCDATA&&/<!\[CDATA\[/.test(Ke))return 0;var Ge=Ke&&/^<(\/)?([\w_:\.-]*)/.exec(Ke);if(Ge&&Ge[1])for(;$e;)if($e.tagName==Ge[2]){$e=$e.prev;break}else if(Et.implicitlyClosed.hasOwnProperty($e.tagName))$e=$e.prev;else break;else if(Ge)for(;$e;){var Oe=Et.contextGrabbers[$e.tagName];if(Oe&&Oe.hasOwnProperty(Ge[2]))$e=$e.prev;else break}for(;$e&&$e.prev&&!$e.startOfLine;)$e=$e.prev;return $e?$e.indent+le:ne.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Et.htmlMode?"html":"xml",helperType:Et.htmlMode?"html":"xml",skipAttribute:function(ne){ne.state==pe&&(ne.state=ae)},xmlCurrentTag:function(ne){return ne.tagName?{name:ne.tagName,close:ne.type=="closeTag"}:null},xmlCurrentContext:function(ne){for(var Ke=[],Vt=ne.context;Vt;Vt=Vt.prev)Vt.tagName&&Ke.push(Vt.tagName);return Ke.reverse()}}}),Lt.defineMIME("text/xml","xml"),Lt.defineMIME("application/xml","xml"),Lt.mimeModes.hasOwnProperty("text/html")||Lt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=void 0;var Lt=Object.assign||function(tt){for(var lt=1;lt<arguments.length;lt++){var rt=arguments[lt];for(var ht in rt)Object.prototype.hasOwnProperty.call(rt,ht)&&(tt[ht]=rt[ht])}return tt},ge=function(){function tt(lt,rt){for(var ht=0;ht<rt.length;ht++){var dt=rt[ht];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(lt,dt.key,dt)}}return function(lt,rt,ht){return rt&&tt(lt.prototype,rt),ht&&tt(lt,ht),lt}}(),se=bt(59301),De=Wt(se),re=bt(12708),le=Wt(re),Et=bt(53291),Tt=Wt(Et),ee=bt(47242),Ct=bt(65429);function Wt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Gt(tt,lt){if(!(tt instanceof lt))throw new TypeError("Cannot call a class as a function")}function Jt(tt,lt){if(!tt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt&&(typeof lt=="object"||typeof lt=="function")?lt:tt}function wt(tt,lt){if(typeof lt!="function"&&lt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);tt.prototype=Object.create(lt&&lt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}),lt&&(Object.setPrototypeOf?Object.setPrototypeOf(tt,lt):tt.__proto__=lt)}var et=function(tt){wt(lt,tt);function lt(rt){Gt(this,lt);var ht=Jt(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,rt));return ht.getEchartsInstance=function(){return ht.echartsLib.getInstanceByDom(ht.echartsElement)||ht.echartsLib.init(ht.echartsElement,ht.props.theme,ht.props.opts)},ht.dispose=function(){if(ht.echartsElement){try{(0,ee.clear)(ht.echartsElement)}catch(dt){console.warn(dt)}ht.echartsLib.dispose(ht.echartsElement)}},ht.rerender=function(){var dt=ht.props,yt=dt.onEvents,Mt=dt.onChartReady,jt=ht.renderEchartDom();ht.bindEvents(jt,yt||{}),typeof Mt=="function"&&ht.props.onChartReady(jt),ht.echartsElement&&(0,ee.bind)(ht.echartsElement,function(){try{jt.resize()}catch(Rt){console.warn(Rt)}})},ht.bindEvents=function(dt,yt){var Mt=function(ae,he){typeof ae=="string"&&typeof he=="function"&&dt.on(ae,function(pe){he(pe,dt)})};for(var jt in yt)Object.prototype.hasOwnProperty.call(yt,jt)&&Mt(jt,yt[jt])},ht.renderEchartDom=function(){var dt=ht.getEchartsInstance();return dt.setOption(ht.props.option,ht.props.notMerge||!1,ht.props.lazyUpdate||!1),ht.props.showLoading?dt.showLoading(ht.props.loadingOption||null):dt.hideLoading(),dt},ht.echartsLib=rt.echarts,ht.echartsElement=null,ht}return ge(lt,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ht){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ht,this.props))){if(!(0,Tt.default)(ht.theme,this.props.theme)||!(0,Tt.default)(ht.opts,this.props.opts)||!(0,Tt.default)(ht.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var dt=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,Tt.default)((0,Ct.pick)(this.props,dt),(0,Ct.pick)(ht,dt))){var yt=this.renderEchartDom();if(!(0,Tt.default)(ht.style,this.props.style)||!(0,Tt.default)(ht.className,this.props.className))try{yt.resize()}catch(Mt){console.warn(Mt)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ht=this,dt=this.props,yt=dt.style,Mt=dt.className,jt=Lt({height:300},yt);return De.default.createElement("div",{ref:function(ae){ht.echartsElement=ae},style:jt,className:"echarts-for-react "+Mt})}}]),lt}(se.Component);Pn.default=et,et.propTypes={option:le.default.object.isRequired,echarts:le.default.object,notMerge:le.default.bool,lazyUpdate:le.default.bool,style:le.default.object,className:le.default.string,theme:le.default.oneOfType([le.default.string,le.default.object]),onChartReady:le.default.func,showLoading:le.default.bool,loadingOption:le.default.object,onEvents:le.default.object,opts:le.default.shape({devicePixelRatio:le.default.number,renderer:le.default.oneOf(["canvas","svg"]),width:le.default.oneOfType([le.default.number,le.default.oneOf([null,void 0,"auto"])]),height:le.default.oneOfType([le.default.number,le.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:le.default.func},et.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(di,Pn,bt){"use strict";var Lt;Lt={value:!0},Pn.Z=void 0;var ge=bt(76411),se=le(ge),De=bt(97774),re=le(De);function le(Wt){return Wt&&Wt.__esModule?Wt:{default:Wt}}function Et(Wt,Gt){if(!(Wt instanceof Gt))throw new TypeError("Cannot call a class as a function")}function Tt(Wt,Gt){if(!Wt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Gt&&(typeof Gt=="object"||typeof Gt=="function")?Gt:Wt}function ee(Wt,Gt){if(typeof Gt!="function"&&Gt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Gt);Wt.prototype=Object.create(Gt&&Gt.prototype,{constructor:{value:Wt,enumerable:!1,writable:!0,configurable:!0}}),Gt&&(Object.setPrototypeOf?Object.setPrototypeOf(Wt,Gt):Wt.__proto__=Gt)}var Ct=function(Wt){ee(Gt,Wt);function Gt(Jt){Et(this,Gt);var wt=Tt(this,(Gt.__proto__||Object.getPrototypeOf(Gt)).call(this,Jt));return wt.echartsLib=se.default,wt}return Gt}(re.default);Pn.Z=Ct},65429:function(di,Pn){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});var bt=Pn.pick=function(ge,se){var De={};return se.forEach(function(re){De[re]=ge[re]}),De}},53291:function(di){"use strict";var Pn=Array.isArray,bt=Object.keys,Lt=Object.prototype.hasOwnProperty;di.exports=function ge(se,De){if(se===De)return!0;if(se&&De&&typeof se=="object"&&typeof De=="object"){var re=Pn(se),le=Pn(De),Et,Tt,ee;if(re&&le){if(Tt=se.length,Tt!=De.length)return!1;for(Et=Tt;Et--!==0;)if(!ge(se[Et],De[Et]))return!1;return!0}if(re!=le)return!1;var Ct=se instanceof Date,Wt=De instanceof Date;if(Ct!=Wt)return!1;if(Ct&&Wt)return se.getTime()==De.getTime();var Gt=se instanceof RegExp,Jt=De instanceof RegExp;if(Gt!=Jt)return!1;if(Gt&&Jt)return se.toString()==De.toString();var wt=bt(se);if(Tt=wt.length,Tt!==bt(De).length)return!1;for(Et=Tt;Et--!==0;)if(!Lt.call(De,wt[Et]))return!1;for(Et=Tt;Et--!==0;)if(ee=wt[Et],!ge(se[ee],De[ee]))return!1;return!0}return se!==se&&De!==De}},12378:function(di,Pn,bt){"use strict";bt.d(Pn,{$u:function(){return ee},BD:function(){return ve},E9:function(){return Tt},FF:function(){return ho},FJ:function(){return dt},Hn:function(){return ht},KX:function(){return Mt},NB:function(){return $t},S0:function(){return sn},UL:function(){return Ct},Vk:function(){return rt},Vm:function(){return mt},YI:function(){return Li},ZA:function(){return se},Zt:function(){return Wt},al:function(){return Kt},bn:function(){return Ft},bx:function(){return hn},g2:function(){return ji},h1:function(){return pe},hD:function(){return pr},l4:function(){return le},rU:function(){return Pt},s_:function(){return Ae},uz:function(){return Be},z6:function(){return Gt}}),di=bt.hmd(di),function(){var Yt;function ai(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Jo(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:ai(a)}}function sa(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var xa=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},va;if(typeof Object.setPrototypeOf=="function")va=Object.setPrototypeOf;else{var Zs;t:{var Qr={a:!0},Vn={};try{Vn.__proto__=Qr,Zs=Vn.a;break t}catch(a){}Zs=!1}va=Zs?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Qn=va;function kn(a,y){if(a.prototype=xa(y.prototype),a.prototype.constructor=a,Qn)Qn(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var rn=typeof bt.g!="undefined"&&bt.g!=null?bt.g:self,hi=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var b=arguments[x];if(b)for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(a[E]=b[E])}return a},Ci=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function bn(a,y){if(y){var x=rn;a=a.split(".");for(var b=0;b<a.length-1;b++){var E=a[b];E in x||(x[E]={}),x=x[E]}a=a[a.length-1],b=x[a],y=y(b),y!=b&&y!=null&&Ci(x,a,{writable:!0,value:y})}}bn("Object.assign",function(a){return a||hi}),bn("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var Ne=typeof globalThis=="object"&&globalThis||typeof bt.g=="object"&&bt.g.global===bt.g&&bt.g||typeof self=="object"&&self.self===self&&self||{};Ne.requestAnimationFrame===void 0&&(Ne.setImmediate===void 0?Ne.requestAnimationFrame=function(a){Ne.setTimeout(a,0)}:Ne.requestAnimationFrame=Ne.setImmediate);function Bn(){}function _n(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ne.clearTimeout(x),x=Ii(function(){x=-1,a.apply(b,E)},y)}}function Ii(a,y){return Ne.setTimeout(a,y)}function ni(a){return Ne.document.createElement(a)}function mn(a){throw Error(a)}function Ai(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),mn(a)}function Mi(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),mn(x+" is not in the range "+y+": "+a)}function er(a){Ne.console&&Ne.console.log(a)}function On(a){return typeof a=="object"&&a!==null}function Si(a){return Array.isArray(a)||Ne.NodeList&&a instanceof Ne.NodeList||Ne.HTMLCollection&&a instanceof Ne.HTMLCollection}function Pr(a){return Array.prototype.slice.call(a)}function rr(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):mn("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Kr(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):mn("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function sr(){var a=Uo.pop();return a===void 0?[]:a}function Br(a){a.length=0,Uo.push(a)}function dr(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(On(a)&&a.constructor)return dr(a.constructor);return typeof a}function Er(a){var y=a;return On(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function ao(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Xi(a,y,x){Object.defineProperty(oe.prototype,a,{get:y,set:x})}function yr(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",nt=0;nt<a.length;nt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(nt)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Lo=Ne.navigator!==void 0&&0<Ne.navigator.userAgent.indexOf("Trident/7"),xs=Ne.navigator!==void 0&&Ne.navigator.platform!==void 0&&Ne.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Uo=[];Object.freeze([]),Bn.className="Util",Bn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Bn.adym="gojs.net",Bn.vfo="28e645fdb266",Bn.className="Util";function jn(a,y,x){Xo(this),this.j=a,this.xa=y,this.o=x}jn.prototype.toString=function(){return"EnumValue."+this.xa};function Tr(a,y){return y==null||y===""?null:a[y]}rn.Object.defineProperties(jn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),jn.className="EnumValue";function so(){this.ew=[]}so.prototype.toString=function(){return this.ew.join("")},so.prototype.add=function(a){a!==""&&this.ew.push(a)},so.className="StringBuilder";function _r(){}_r.className="PropertyCollection";var ns={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Ne.console&&Ne.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(nt,ot){return function(){throw Error("Property "+nt.Zl[ot.Tj]+" of "+nt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Oo(){}Oo.prototype.reset=function(){},Oo.prototype.next=function(){return!1},Oo.prototype.Ad=function(){return!1},Oo.prototype.first=function(){return null},Oo.prototype.any=function(){return!1},Oo.prototype.all=function(){return!0},Oo.prototype.each=function(){return this},Oo.prototype.map=function(){return this},Oo.prototype.filter=function(){return this},Oo.prototype.de=function(){},Oo.prototype.toString=function(){return"EmptyIterator"},rn.Object.defineProperties(Oo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Oo.prototype.first=Oo.prototype.first,Oo.prototype.hasNext=Oo.prototype.Ad,Oo.prototype.next=Oo.prototype.next,Oo.prototype.reset=Oo.prototype.reset;var yi=null;Oo.className="EmptyIterator",yi=new Oo;function Bo(a){this.key=-1,this.value=a}Bo.prototype.reset=function(){this.key=-1},Bo.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Bo.prototype.Ad=function(){return this.next()},Bo.prototype.first=function(){return this.key=0,this.value},Bo.prototype.any=function(a){return this.key=-1,a(this.value)},Bo.prototype.all=function(a){return this.key=-1,a(this.value)},Bo.prototype.each=function(a){return this.key=-1,a(this.value),this},Bo.prototype.map=function(a){return new Bo(a(this.value))},Bo.prototype.filter=function(a){return a(this.value)?new Bo(this.value):yi},Bo.prototype.de=function(){this.value=null},Bo.prototype.toString=function(){return"SingletonIterator("+this.value+")"},rn.Object.defineProperties(Bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Bo.prototype.first=Bo.prototype.first,Bo.prototype.hasNext=Bo.prototype.Ad,Bo.prototype.next=Bo.prototype.next,Bo.prototype.reset=Bo.prototype.reset,Bo.className="SingletonIterator";function Hr(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Hr.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Hr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,b=this.qf;if(b!==null)for(;x<y;){var E=a[x];if(b(E))return this.key=this.Za=x,this.value=E,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},Hr.prototype.Ad=function(){return this.next()},Hr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var b=0;b<y;){var E=a[b];if(x(E))return this.key=this.Za=b,this.value=E;b++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},Hr.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&a(z))return!0}return!1},Hr.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];if((b===null||b(z))&&!a(z))return!1}return!0},Hr.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,b=this.qf,E=0;E<x;E++){var z=y[E];(b===null||b(z))&&a(z)}return this},Hr.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&x.push(a(nt))}return a=new Bi,a.s=x,a.xb(),a.iterator},Hr.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var nt=y[z];(E===null||E(nt))&&a(nt)&&x.push(nt)}return a=new Bi,a.s=x,a.xb(),a.iterator},Hr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Hr.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},rn.Object.defineProperties(Hr.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,b=x.length,E=0;E<b;E++)a(x[E])&&y++;return y}return this.Bb.s.length}}}),Hr.prototype.first=Hr.prototype.first,Hr.prototype.hasNext=Hr.prototype.Ad,Hr.prototype.next=Hr.prototype.next,Hr.prototype.reset=Hr.prototype.reset,Hr.className="ListIterator";function kr(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}kr.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},kr.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},kr.prototype.Ad=function(){return this.next()},kr.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},kr.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},kr.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},kr.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},kr.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--)x.push(a(y[b]));return a=new Bi,a.s=x,a.xb(),a.iterator},kr.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var b=y.length;for(this.Za=b,--b;0<=b;b--){var E=y[b];a(E)&&x.push(E)}return a=new Bi,a.s=x,a.xb(),a.iterator},kr.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},kr.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},rn.Object.defineProperties(kr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),kr.prototype.first=kr.prototype.first,kr.prototype.hasNext=kr.prototype.Ad,kr.prototype.next=kr.prototype.next,kr.prototype.reset=kr.prototype.reset,kr.className="ListIteratorBackwards";function Bi(a){Xo(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&mn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Yt=Bi.prototype,Yt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return this._isFrozen=!1,this},Yt.toString=function(){return"List()#"+fs(this)},Yt.add=function(a){return a===null?this:(this._isFrozen&&Ai(this,a),this.s.push(a),this.xb(),this)},Yt.push=function(a){this.add(a)},Yt.addAll=function(a){if(a===null)return this;this._isFrozen&&Ai(this);var y=this.s;if(Si(a))for(var x=a.length,b=0;b<x;b++)y.push(a[b]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Yt.clear=function(){this._isFrozen&&Ai(this),this.s.length=0,this.xb()},Yt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Yt.has=function(a){return this.contains(a)},Yt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Yt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Mi(a,"0 <= i < length",Bi,"elt:i"),y[a]},Yt.get=function(a){return this.M(a)},Yt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Mi(a,"0 <= i < length",Bi,"setElt:i"),this._isFrozen&&Ai(this,a),x[a]=y},Yt.set=function(a,y){this.cd(a,y)},Yt.first=function(){var a=this.s;return a.length===0?null:a[0]},Yt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Yt.pop=function(){this._isFrozen&&Ai(this);var a=this.s;return 0<a.length?a.pop():null},Bi.prototype.any=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(a(y[b]))return!0;return!1},Bi.prototype.all=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)if(!a(y[b]))return!1;return!0},Bi.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Bi.prototype.map=function(a){for(var y=new Bi,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Bi.prototype.filter=function(a){for(var y=new Bi,x=[],b=this.s,E=b.length,z=0;z<E;z++){var nt=b[z];a(nt)&&x.push(nt)}return y.s=x,y.xb(),y},Yt=Bi.prototype,Yt.Gb=function(a,y){0>a&&Mi(a,">= 0",Bi,"insertAt:i"),this._isFrozen&&Ai(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Yt.remove=function(a){if(a===null)return!1;this._isFrozen&&Ai(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Yt.delete=function(a){return this.remove(a)},Yt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Mi(a,"0 <= i < length",Bi,"removeAt:i"),this._isFrozen&&Ai(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Yt.removeRange=function(a,y){var x=this.s,b=x.length;if(0>a)a=0;else if(a>=b)return this;if(0>y)return this;if(y>=b&&(y=b-1),a>y)return this;this._isFrozen&&Ai(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Bi.prototype.copy=function(){var a=new Bi,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Yt=Bi.prototype,Yt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Yt.Iv=function(){for(var a=new Pi,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Yt.sort=function(a){return this._isFrozen&&Ai(this),this.s.sort(a),this.xb(),this},Yt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Ai(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Mi(y,"0 <= from < length",Bi,"sortRange:from"),z===2)return x=b[y],E=b[y+1],0<a(x,E)&&(b[y]=E,b[y+1]=x,this.xb()),this;if(y===0)if(x>=E)b.sort(a);else for(y=b.slice(0,x),y.sort(a),a=0;a<x;a++)b[a]=y[a];else if(x>=E)for(x=b.slice(y),x.sort(a),a=y;a<E;a++)b[a]=x[a-y];else for(E=b.slice(y,x),E.sort(a),a=y;a<x;a++)b[a]=E[a-y];return this.xb(),this},Yt.reverse=function(){return this._isFrozen&&Ai(this),this.s.reverse(),this.xb(),this},rn.Object.defineProperties(Bi.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return yi;var a=this.Sa;return a!==null?(a.reset(),a):new Hr(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return yi;var a=this.Hg;return a!==null?(a.reset(),a):new kr(this)}}}),Bi.prototype.reverse=Bi.prototype.reverse,Bi.prototype.sortRange=Bi.prototype.zi,Bi.prototype.sort=Bi.prototype.sort,Bi.prototype.toSet=Bi.prototype.Iv,Bi.prototype.toArray=Bi.prototype.Fa,Bi.prototype.removeRange=Bi.prototype.removeRange,Bi.prototype.removeAt=Bi.prototype.mb,Bi.prototype.delete=Bi.prototype.delete,Bi.prototype.remove=Bi.prototype.remove,Bi.prototype.insertAt=Bi.prototype.Gb,Bi.prototype.pop=Bi.prototype.pop,Bi.prototype.last=Bi.prototype.jc,Bi.prototype.first=Bi.prototype.first,Bi.prototype.set=Bi.prototype.set,Bi.prototype.setElt=Bi.prototype.cd,Bi.prototype.get=Bi.prototype.get,Bi.prototype.elt=Bi.prototype.M,Bi.prototype.indexOf=Bi.prototype.indexOf,Bi.prototype.has=Bi.prototype.has,Bi.prototype.contains=Bi.prototype.contains,Bi.prototype.clear=Bi.prototype.clear,Bi.prototype.addAll=Bi.prototype.addAll,Bi.prototype.push=Bi.prototype.push,Bi.prototype.add=Bi.prototype.add,Bi.prototype.thaw=Bi.prototype.ka,Bi.prototype.freeze=Bi.prototype.freeze,Bi.className="List";function Po(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Po.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Po.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},Po.prototype.Ad=function(){return this.next()},Po.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},Po.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Po.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Po.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},Po.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Bi;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Po.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Bi;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Po.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Po.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},rn.Object.defineProperties(Po.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Po.prototype.first=Po.prototype.first,Po.prototype.hasNext=Po.prototype.Ad,Po.prototype.next=Po.prototype.next,Po.prototype.reset=Po.prototype.reset,Po.className="SetIterator";function Pi(a){Xo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&mn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Yt=Pi.prototype,Yt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return this._isFrozen=!1,this},Yt.toString=function(){return"Set()#"+fs(this)},Yt.add=function(a){if(a===null)return this;this._isFrozen&&Ai(this,a);var y=a;return On(a)&&(y=ha(a)),this.Tb[y]===void 0&&(this.Sb++,a=new ps(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},Yt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Ai(this),Si(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Yt.contains=function(a){if(a===null)return!1;var y=a;return On(a)&&(y=fs(a),y===void 0)?!1:this.Tb[y]!==void 0},Yt.has=function(a){return this.contains(a)},Yt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Yt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Yt.first=function(){var a=this.ea;return a===null?null:a.value},Pi.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Pi.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Pi.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Pi.prototype.map=function(a){for(var y=new Pi,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Pi.prototype.filter=function(a){for(var y=new Pi,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Yt=Pi.prototype,Yt.remove=function(a){if(a===null)return!1;this._isFrozen&&Ai(this,a);var y=a;if(On(a)&&(y=fs(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Yt.delete=function(a){return this.remove(a)},Yt.hp=function(a){if(a===null)return this;if(this._isFrozen&&Ai(this),Si(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Yt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Ai(this);var y=new Pi;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},Yt.clear=function(){this._isFrozen&&Ai(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Pi.prototype.copy=function(){var a=new Pi,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Pi.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Pi.prototype.Hv=function(){var a=new Bi,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Xo(a){a.__gohashid=ba++}function ha(a){var y=a.__gohashid;return y===void 0&&(y=ba++,a.__gohashid=y),y}function fs(a){return a.__gohashid}rn.Object.defineProperties(Pi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return yi;var a=this.Sa;return a!==null?(a.reset(),a):new Po(this)}}}),Pi.prototype.toList=Pi.prototype.Hv,Pi.prototype.toArray=Pi.prototype.Fa,Pi.prototype.clear=Pi.prototype.clear,Pi.prototype.retainAll=Pi.prototype.pA,Pi.prototype.removeAll=Pi.prototype.hp,Pi.prototype.delete=Pi.prototype.delete,Pi.prototype.remove=Pi.prototype.remove,Pi.prototype.first=Pi.prototype.first,Pi.prototype.containsAny=Pi.prototype.Ty,Pi.prototype.containsAll=Pi.prototype.Sy,Pi.prototype.has=Pi.prototype.has,Pi.prototype.contains=Pi.prototype.contains,Pi.prototype.addAll=Pi.prototype.addAll,Pi.prototype.add=Pi.prototype.add,Pi.prototype.thaw=Pi.prototype.ka,Pi.prototype.freeze=Pi.prototype.freeze;var ba=1;Pi.className="Set",Pi.uniqueHash=Xo,Pi.hashIdUnique=ha,Pi.hashId=fs;function Xs(a){this.ma=a,this.qa=a.Ja,this.sa=null}Xs.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Xs.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Xs.prototype.Ad=function(){return this.next()},Xs.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Xs.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Xs.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Xs.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Xs.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Bi;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Xs.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Bi;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Xs.prototype.de=function(){this.value=this.key=null,this.qa=-1},Xs.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},rn.Object.defineProperties(Xs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xs.prototype.first=Xs.prototype.first,Xs.prototype.hasNext=Xs.prototype.Ad,Xs.prototype.next=Xs.prototype.next,Xs.prototype.reset=Xs.prototype.reset,Xs.className="MapKeySetIterator";function bo(a){Pi.call(this),Xo(this),this._isFrozen=!0,this.ma=a}kn(bo,Pi),Yt=bo.prototype,Yt.freeze=function(){return this},Yt.ka=function(){return this},Yt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Yt.add=function(){mn("This Set is read-only: "+this.toString())},Yt.contains=function(a){return this.ma.contains(a)},Yt.has=function(a){return this.contains(a)},Yt.remove=function(){mn("This Set is read-only: "+this.toString())},Yt.delete=function(a){return this.remove(a)},Yt.clear=function(){mn("This Set is read-only: "+this.toString())},Yt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},bo.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},bo.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},bo.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},bo.prototype.map=function(a){for(var y=new Pi,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},bo.prototype.filter=function(a){for(var y=new Pi,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},bo.prototype.copy=function(){return new bo(this.ma)},bo.prototype.Iv=function(){var a=new Pi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},bo.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,b;for(b in a)y[x]=a[b].key,x++;return y},bo.prototype.Hv=function(){var a=new Bi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},rn.Object.defineProperties(bo.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?yi:new Xs(this.ma)}}}),bo.prototype.toList=bo.prototype.Hv,bo.prototype.toArray=bo.prototype.Fa,bo.prototype.toSet=bo.prototype.Iv,bo.prototype.first=bo.prototype.first,bo.prototype.clear=bo.prototype.clear,bo.prototype.delete=bo.prototype.delete,bo.prototype.remove=bo.prototype.remove,bo.prototype.has=bo.prototype.has,bo.prototype.contains=bo.prototype.contains,bo.prototype.add=bo.prototype.add,bo.prototype.thaw=bo.prototype.ka,bo.prototype.freeze=bo.prototype.freeze,bo.className="MapKeySet";function jo(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}jo.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},jo.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},jo.prototype.Ad=function(){return this.next()},jo.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},jo.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},jo.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},jo.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},jo.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Bi;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},jo.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Bi;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},jo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},jo.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},rn.Object.defineProperties(jo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),jo.prototype.first=jo.prototype.first,jo.prototype.hasNext=jo.prototype.Ad,jo.prototype.next=jo.prototype.next,jo.prototype.reset=jo.prototype.reset,jo.className="MapValueSetIterator";function ps(a,y){this.key=a,this.value=y,this.ll=this.va=null}ps.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},ps.className="KeyValuePair";function us(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}us.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},us.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},us.prototype.Ad=function(){return this.next()},us.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},us.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},us.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},us.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},us.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Bi;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},us.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Bi;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},us.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},us.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},rn.Object.defineProperties(us.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),us.prototype.first=us.prototype.first,us.prototype.hasNext=us.prototype.Ad,us.prototype.next=us.prototype.next,us.prototype.reset=us.prototype.reset,us.className="MapIterator";function gr(a){Xo(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&mn("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Yt=gr.prototype,Yt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return this._isFrozen=!1,this},Yt.toString=function(){return"Map()#"+fs(this)},Yt.add=function(a,y){this._isFrozen&&Ai(this,a);var x=a;On(a)&&(x=ha(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new ps(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):b.value=y,this},Yt.set=function(a,y){return this.add(a,y)},Yt.addAll=function(a){if(a===null)return this;if(Si(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof gr)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Yt.first=function(){return this.ea},gr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},gr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},gr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},gr.prototype.map=function(a){for(var y=new gr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},gr.prototype.filter=function(a){for(var y=new gr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Yt=gr.prototype,Yt.contains=function(a){var y=a;return On(a)&&(y=fs(a),y===void 0)?!1:this.Tb[y]!==void 0},Yt.has=function(a){return this.contains(a)},Yt.I=function(a){var y=a;return On(a)&&(y=fs(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Yt.get=function(a){return this.I(a)},Yt.remove=function(a){if(a===null)return!1;this._isFrozen&&Ai(this,a);var y=a;if(On(a)&&(y=fs(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,b=a.ll;return x!==null&&(x.ll=b),b!==null&&(b.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=b),delete this.Tb[y],this.Sb--,this.xb(),!0},Yt.delete=function(a){return this.remove(a)},Yt.clear=function(){this._isFrozen&&Ai(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},gr.prototype.copy=function(){var a=new gr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},gr.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new ps(E.key,E.value),x++}return y},gr.prototype.Lf=function(){return new bo(this)},rn.Object.defineProperties(gr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return yi;var a=this.Sa;return a!==null?(a.reset(),a):new us(this)}},iteratorKeys:{get:function(){return 0>=this.count?yi:new Xs(this)}},iteratorValues:{get:function(){if(0>=this.count)return yi;var a=this.jf;return a!==null?(a.reset(),a):new jo(this)}}}),gr.prototype.toKeySet=gr.prototype.Lf,gr.prototype.toArray=gr.prototype.Fa,gr.prototype.clear=gr.prototype.clear,gr.prototype.delete=gr.prototype.delete,gr.prototype.remove=gr.prototype.remove,gr.prototype.get=gr.prototype.get,gr.prototype.getValue=gr.prototype.I,gr.prototype.has=gr.prototype.has,gr.prototype.contains=gr.prototype.contains,gr.prototype.first=gr.prototype.first,gr.prototype.addAll=gr.prototype.addAll,gr.prototype.set=gr.prototype.set,gr.prototype.add=gr.prototype.add,gr.prototype.thaw=gr.prototype.ka,gr.prototype.freeze=gr.prototype.freeze,gr.className="Map";function Ue(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):mn("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var qo,Sa,za,El,ss;Ue.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ue.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ue.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ue.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ue.prototype.copy=function(){var a=new Ue;return a.x=this.x,a.y=this.y,a},Yt=Ue.prototype,Yt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Yt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return Object.isFrozen(this)&&mn("cannot thaw constant: "+this),this._isFrozen=!1,this};function Vo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Ue(x,E)}return new Ue}function bs(a){return a.x.toString()+" "+a.y.toString()}Yt.toString=function(){return"Point("+this.x+","+this.y+")"},Yt.D=function(a){return a instanceof Ue?this.x===a.x&&this.y===a.y:!1},Yt.hi=function(a,y){return this.x===a&&this.y===y},Yt.Xa=function(a){return Ln.B(this.x,a.x)&&Ln.B(this.y,a.y)},Yt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Yt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Yt.offset=function(a,y){return this.x+=a,this.y+=y,this},Ue.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));return this.x=a*y-b*x,this.y=b*y+a*x,this},Yt=Ue.prototype,Yt.scale=function(a,y){return this.x*=a,this.y*=y,this},Yt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Yt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Yt.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},Yt.ab=function(a){return ia(a.x-this.x,a.y-this.y)},Yt.direction=function(a,y){return ia(a-this.x,y-this.y)};function ia(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Yt.Ry=function(a,y){return Ln.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Yt.fA=function(a,y,x,b){return Ln.qh(a,y,x,b,this.x,this.y,this),this},Yt.gA=function(a,y){return Ln.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Yt.uA=function(a,y,x,b){return Ln.No(this.x,this.y,a,y,x,b,this),this},Yt.vA=function(a,y){return Ln.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Yt.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Yt.yi=function(a,y,x,b,E){return this.x=a+E.x*x+E.offsetX,this.y=y+E.y*b+E.offsetY,this},Yt.transform=function(a){return a.Ga(this),this};function ts(a,y){return y.Cd(a),a}function Ea(a,y,x,b,E,z){var nt=E-x,ot=z-b,at=nt*nt+ot*ot;x-=a,b-=y;var ut=-x*nt-b*ot;return 0>=ut||ut>=at?(nt=E-a,ot=z-y,Math.min(x*x+b*b,nt*nt+ot*ot)):(a=nt*b-ot*x,a*a/at)}function Mo(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function io(a,y,x,b){return a=x-a,y=b-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(b=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?b=0>y?b+180:180-b:0>y&&(b=360-b),b)}Yt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ue.alloc=function(){var a=Ko.pop();return a===void 0?new Ue:a},Ue.allocAt=function(a,y){var x=Ko.pop();return x===void 0?new Ue(a,y):(x.x=a,x.y=y,x)},Ue.free=function(a){Ko.push(a)},Ue.prototype.isReal=Ue.prototype.w,Ue.prototype.setSpot=Ue.prototype.yi,Ue.prototype.setRectSpot=Ue.prototype.xi,Ue.prototype.snapToGridPoint=Ue.prototype.vA,Ue.prototype.snapToGrid=Ue.prototype.uA,Ue.prototype.projectOntoLineSegmentPoint=Ue.prototype.gA,Ue.prototype.projectOntoLineSegment=Ue.prototype.fA,Ue.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return Ln.Rl(a,y,x,b,E,z,nt,ot)},Ue.prototype.compareWithLineSegmentPoint=Ue.prototype.Ry,Ue.compareWithLineSegment=function(a,y,x,b,E,z){return Ln.Fl(a,y,x,b,E,z)},Ue.prototype.direction=Ue.prototype.direction,Ue.prototype.directionPoint=Ue.prototype.ab,Ue.prototype.normalize=Ue.prototype.normalize,Ue.prototype.distanceSquared=Ue.prototype.zd,Ue.prototype.distanceSquaredPoint=Ue.prototype.Bf,Ue.prototype.scale=Ue.prototype.scale,Ue.prototype.rotate=Ue.prototype.rotate,Ue.prototype.offset=Ue.prototype.offset,Ue.prototype.subtract=Ue.prototype.re,Ue.prototype.add=Ue.prototype.add,Ue.prototype.equalsApprox=Ue.prototype.Xa,Ue.prototype.equalTo=Ue.prototype.hi,Ue.prototype.equals=Ue.prototype.D,Ue.prototype.set=Ue.prototype.set,Ue.prototype.setTo=Ue.prototype.sg;var Ko=[];Ue.className="Point",Ue.parse=Vo,Ue.stringify=bs,Ue.distanceLineSegmentSquared=Ea,Ue.distanceSquared=Mo,Ue.direction=io,Ue.Origin=qo=new Ue(0,0).ja(),Ue.InfiniteTopLeft=Sa=new Ue(-1/0,-1/0).ja(),Ue.InfiniteBottomRight=za=new Ue(1/0,1/0).ja(),Ue.SixPoint=El=new Ue(6,6).ja(),Ue.NoPoint=ss=new Ue(NaN,NaN).ja(),Ue.parse=Vo,Ue.stringify=bs,Ue.distanceLineSegmentSquared=Ea,Ue.distanceSquared=Mo,Ue.direction=io;function Gi(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):mn("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ms,Gs,Fa,Js,Ho,Ks,yl;Gi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Gi.prototype.h=function(a,y){return this.width=a,this.height=y,this},Gi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Gi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Gi.prototype.copy=function(){var a=new Gi;return a.width=this.width,a.height=this.height,a},Yt=Gi.prototype,Yt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Yt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return Object.isFrozen(this)&&mn("cannot thaw constant: "+this),this._isFrozen=!1,this};function wl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Gi(x,E)}return new Gi}function Dl(a){return a.width.toString()+" "+a.height.toString()}Yt.toString=function(){return"Size("+this.width+","+this.height+")"},Yt.D=function(a){return a instanceof Gi?this.width===a.width&&this.height===a.height:!1},Yt.hi=function(a,y){return this.width===a&&this.height===y},Yt.Xa=function(a){return Ln.B(this.width,a.width)&&Ln.B(this.height,a.height)},Yt.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Yt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Gi.alloc=function(){var a=Bs.pop();return a===void 0?new Gi:a},Gi.free=function(a){Bs.push(a)},Gi.prototype.isReal=Gi.prototype.w,Gi.prototype.inflate=Gi.prototype.Bc,Gi.prototype.equalsApprox=Gi.prototype.Xa,Gi.prototype.equalTo=Gi.prototype.hi,Gi.prototype.equals=Gi.prototype.D,Gi.prototype.set=Gi.prototype.set,Gi.prototype.setTo=Gi.prototype.sg;var Bs=[];Gi.className="Size",Gi.parse=wl,Gi.stringify=Dl,Gi.ZeroSize=Ms=new Gi(0,0).ja(),Gi.OneSize=Gs=new Gi(1,1).ja(),Gi.SixSize=Fa=new Gi(6,6).ja(),Gi.EightSize=Js=new Gi(8,8).ja(),Gi.TenSize=Ho=new Gi(10,10).ja(),Gi.InfiniteSize=Ks=new Gi(1/0,1/0).ja(),Gi.NoSize=yl=new Gi(NaN,NaN).ja(),Gi.parse=wl,Gi.stringify=Dl;function ui(a,y,x,b){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof b=="number"&&(0<=b||isNaN(b))?(this.x=a,this.y=y,this.width=x,this.height=b):a instanceof Ue?(x=a.x,a=a.y,y instanceof Ue?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof Gi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):mn("Incorrect second argument supplied to Rect constructor "+y)):mn("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Yt=ui.prototype,Yt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Yt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function Za(a,y,x){a.width=y,a.height=x}Yt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Yt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Yt.dd=function(a){return this.x=a.x,this.y=a.y,this},Yt.tA=function(a){return this.width=a.width,this.height=a.height,this},ui.prototype.copy=function(){var a=new ui;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Yt=ui.prototype,Yt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Yt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return Object.isFrozen(this)&&mn("cannot thaw constant: "+this),this._isFrozen=!1,this};function mh(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new ui(x,E,z,nt)}return new ui}function ju(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Yt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Yt.D=function(a){return a instanceof ui?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Yt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Yt.Xa=function(a){return Ln.B(this.x,a.x)&&Ln.B(this.y,a.y)&&Ln.B(this.width,a.width)&&Ln.B(this.height,a.height)};function su(a,y){return Ln.$(a.x,y.x)&&Ln.$(a.y,y.y)&&Ln.$(a.width,y.width)&&Ln.$(a.height,y.height)}Yt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Yt.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Yt.contains=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+b<=this.y+this.height},Yt.offset=function(a,y){return this.x+=a,this.y+=y,this},Yt.Bc=function(a,y){return Ao(this,y,a,y,a)},Yt.Co=function(a){return Ao(this,a.top,a.right,a.bottom,a.left)},Yt.Fv=function(a){return Ao(this,-a.top,-a.right,-a.bottom,-a.left)},Yt.Hz=function(a,y,x,b){return Ao(this,a,y,x,b)};function Ao(a,y,x,b,E){var z=a.width;return x+E<=-z?(a.x+=z/2,a.width=0):(a.x-=E,a.width+=x+E),x=a.height,y+b<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+b),a}Yt.Ex=function(a){return zs(this,a.x,a.y,a.width,a.height)},Yt.Uu=function(a,y,x,b){return zs(this,a,y,x,b)};function zs(a,y,x,b,E){var z=Math.max(a.x,y),nt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-nt),a}Yt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Yt.Vu=function(a,y,x,b){var E=this.width,z=this.x;return E!==1/0&&x!==1/0&&(E+=z,x+=a,isNaN(x)||isNaN(E)||z>x||a>E)?!1:(a=this.height,x=this.y,!(a!==1/0&&b!==1/0&&(a+=x,b+=y,isNaN(b)||isNaN(a)||x>b||y>a)))};function Ns(a,y){var x=a.width,b=a.x,E=y.x-10;return b>y.width+10+10+E||E>x+b?!1:(x=a.height,a=a.y,b=y.y-10,!(a>y.height+10+10+b||b>x+a))}Yt.Ye=function(a){return Es(this,a.x,a.y,0,0)},Yt.ed=function(a){return Es(this,a.x,a.y,a.width,a.height)},Yt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Es(this,a,y,x,b)};function Es(a,y,x,b,E){var z=Math.min(a.x,y),nt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=nt,a.width=y-z,a.height=x-nt,a}Yt.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function _s(a,y,x,b,E,z,nt,ot){return nt===void 0&&(nt=0),ot===void 0&&(ot=0),a<=E&&E+nt<=a+x&&y<=z&&z+ot<=y+b}function Nl(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}Yt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Yt.Mz=function(){return this.width===0&&this.height===0},ui.alloc=function(){var a=Ss.pop();return a===void 0?new ui:a},ui.allocAt=function(a,y,x,b){var E=Ss.pop();return E===void 0?new ui(a,y,x,b):E.h(a,y,x,b)},ui.free=function(a){Ss.push(a)},rn.Object.defineProperties(ui.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Ue(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Gi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ue(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ui.prototype.isEmpty=ui.prototype.Mz,ui.prototype.isReal=ui.prototype.w,ui.intersectsLineSegment=function(a,y,x,b,E,z,nt,ot){return Ln.Fx(a,y,x,b,E,z,nt,ot)},ui.prototype.setSpot=ui.prototype.yi,ui.prototype.union=ui.prototype.Kv,ui.prototype.unionRect=ui.prototype.ed,ui.prototype.unionPoint=ui.prototype.Ye,ui.prototype.intersects=ui.prototype.Vu,ui.prototype.intersectsRect=ui.prototype.Yc,ui.prototype.intersect=ui.prototype.Uu,ui.prototype.intersectRect=ui.prototype.Ex,ui.prototype.grow=ui.prototype.Hz,ui.prototype.subtractMargin=ui.prototype.Fv,ui.prototype.addMargin=ui.prototype.Co,ui.prototype.inflate=ui.prototype.Bc,ui.prototype.offset=ui.prototype.offset,ui.prototype.contains=ui.prototype.contains,ui.prototype.containsRect=ui.prototype.Re,ui.prototype.containsPoint=ui.prototype.ca,ui.prototype.equalsApprox=ui.prototype.Xa,ui.prototype.equalTo=ui.prototype.hi,ui.prototype.equals=ui.prototype.D,ui.prototype.setSize=ui.prototype.tA,ui.prototype.setPoint=ui.prototype.dd,ui.prototype.set=ui.prototype.set,ui.prototype.setTo=ui.prototype.sg;var As=null,Qs=null,Ss=[];ui.className="Rect",ui.parse=mh,ui.stringify=ju,ui.contains=_s,ui.intersects=Nl,ui.ZeroRect=As=new ui(0,0,0,0).ja(),ui.NoRect=Qs=new ui(NaN,NaN,NaN,NaN).ja(),ui.parse=mh,ui.stringify=ju,ui.contains=_s,ui.intersects=Nl;function Gr(a,y,x,b){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):b!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=b):mn("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Gr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Gr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Gr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Gr.prototype.copy=function(){var a=new Gr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Yt=Gr.prototype,Yt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Yt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return Object.isFrozen(this)&&mn("cannot thaw constant: "+this),this._isFrozen=!1,this};function ul(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var b=a[y++];if(b&&(x=parseFloat(b)),isNaN(x))return new Gr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Gr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Gr(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Gr(x,E):new Gr(x,E,z,nt)}return new Gr}function Ds(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Yt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Yt.D=function(a){return a instanceof Gr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Yt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Yt.Xa=function(a){return Ln.B(this.top,a.top)&&Ln.B(this.right,a.right)&&Ln.B(this.bottom,a.bottom)&&Ln.B(this.left,a.left)},Yt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Gr.alloc=function(){var a=$l.pop();return a===void 0?new Gr:a},Gr.free=function(a){$l.push(a)},Gr.prototype.isReal=Gr.prototype.w,Gr.prototype.equalsApprox=Gr.prototype.Xa,Gr.prototype.equalTo=Gr.prototype.hi,Gr.prototype.equals=Gr.prototype.D,Gr.prototype.set=Gr.prototype.set,Gr.prototype.setTo=Gr.prototype.sg;var Su=null,Ku=null,$l=[];Gr.className="Margin",Gr.parse=ul,Gr.stringify=Ds,Gr.ZeroMargin=Su=new Gr(0,0,0,0).ja(),Gr.TwoMargin=Ku=new Gr(2,2,2,2).ja(),Gr.parse=ul,Gr.stringify=Ds;function fr(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var Xa,ol,Fl,au,Ja,Eo,ja,qa,lu,Yl,Pu,bu,fu,nu,_o,_d,Eu,yd,kh,nc,sl,Ch,Qd,Oc,Dc,Fs,ga,Uu,tl,al,Ka,ca,el,jl,fc,dh;fr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},fr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},fr.prototype.copy=function(){var a=new fr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Yt=fr.prototype,Yt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Yt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return Object.isFrozen(this)&&mn("cannot thaw constant: "+this),this._isFrozen=!1,this};function hl(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function zd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Xa;if(a==="TopLeft")return ol;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Fl;if(a==="TopRight")return au;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ja;if(a==="Center")return Eo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ja;if(a==="BottomLeft")return qa;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return lu;if(a==="BottomRight")return Yl;if(a==="TopSide")return Pu;if(a==="LeftSide")return bu;if(a==="RightSide")return fu;if(a==="BottomSide")return nu;if(a==="TopBottomSides")return _o;if(a==="LeftRightSides")return _d;if(a==="TopLeftSides")return Eu;if(a==="TopRightSides")return yd;if(a==="BottomLeftSides")return kh;if(a==="BottomRightSides")return nc;if(a==="NotTopSide")return sl;if(a==="NotLeftSide")return Ch;if(a==="NotRightSide")return Qd;if(a==="NotBottomSide")return Oc;if(a==="AllSides")return Dc;if(a==="Default")return Fs;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new fr(x,E,z,nt)}return new fr}function td(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Yt.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Xa)?"None":this.D(ol)?"TopLeft":this.D(Fl)?"Top":this.D(au)?"TopRight":this.D(Ja)?"Left":this.D(Eo)?"Center":this.D(ja)?"Right":this.D(qa)?"BottomLeft":this.D(lu)?"Bottom":this.D(Yl)?"BottomRight":this.D(Pu)?"TopSide":this.D(bu)?"LeftSide":this.D(fu)?"RightSide":this.D(nu)?"BottomSide":this.D(_o)?"TopBottomSides":this.D(_d)?"LeftRightSides":this.D(Eu)?"TopLeftSides":this.D(yd)?"TopRightSides":this.D(kh)?"BottomLeftSides":this.D(nc)?"BottomRightSides":this.D(sl)?"NotTopSide":this.D(Ch)?"NotLeftSide":this.D(Qd)?"NotRightSide":this.D(Oc)?"NotBottomSide":this.D(Dc)?"AllSides":this.D(Fs)?"Default":"None"},Yt.D=function(a){return a instanceof fr?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Yt.gv=function(){return new fr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Yt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ga))a=bu;else if(a.D(Uu))a=fu;else if(a.D(tl))a=Pu;else if(a.D(al))a=nu;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Yt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Yt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Yt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Yt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Yt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},fr.alloc=function(){var a=Bh.pop();return a===void 0?new fr:a},fr.free=function(a){Bh.push(a)},fr.prototype.isDefault=fr.prototype.Xb,fr.prototype.isNone=fr.prototype.ys,fr.prototype.isSide=fr.prototype.$c,fr.prototype.isNoSpot=fr.prototype.Mc,fr.prototype.isSpot=fr.prototype.sb,fr.prototype.includesSide=fr.prototype.Hf,fr.prototype.opposite=fr.prototype.gv,fr.prototype.equals=fr.prototype.D,fr.prototype.set=fr.prototype.set,fr.prototype.setTo=fr.prototype.sg;var Bh=[];fr.className="Spot",fr.parse=zd,fr.stringify=td,fr.None=Xa=hl(new fr(0,0,0,0),0).ja(),fr.Default=Fs=hl(new fr(0,0,-1,0),-1).ja(),fr.TopLeft=ol=new fr(0,0,0,0).ja(),fr.TopCenter=Fl=new fr(.5,0,0,0).ja(),fr.TopRight=au=new fr(1,0,0,0).ja(),fr.LeftCenter=Ja=new fr(0,.5,0,0).ja(),fr.Center=Eo=new fr(.5,.5,0,0).ja(),fr.RightCenter=ja=new fr(1,.5,0,0).ja(),fr.BottomLeft=qa=new fr(0,1,0,0).ja(),fr.BottomCenter=lu=new fr(.5,1,0,0).ja(),fr.BottomRight=Yl=new fr(1,1,0,0).ja(),fr.MiddleTop=Ka=Fl,fr.MiddleLeft=ca=Ja,fr.MiddleRight=el=ja,fr.MiddleBottom=jl=lu,fr.Top=tl=Fl,fr.Left=ga=Ja,fr.Right=Uu=ja,fr.Bottom=al=lu,fr.TopSide=Pu=hl(new fr(0,0,1,1),1).ja(),fr.LeftSide=bu=hl(new fr(0,0,1,2),1).ja(),fr.RightSide=fu=hl(new fr(0,0,1,4),1).ja(),fr.BottomSide=nu=hl(new fr(0,0,1,8),1).ja(),fr.TopBottomSides=_o=hl(new fr(0,0,1,9),1).ja(),fr.LeftRightSides=_d=hl(new fr(0,0,1,6),1).ja(),fr.TopLeftSides=Eu=hl(new fr(0,0,1,3),1).ja(),fr.TopRightSides=yd=hl(new fr(0,0,1,5),1).ja(),fr.BottomLeftSides=kh=hl(new fr(0,0,1,10),1).ja(),fr.BottomRightSides=nc=hl(new fr(0,0,1,12),1).ja(),fr.NotTopSide=sl=hl(new fr(0,0,1,14),1).ja(),fr.NotLeftSide=Ch=hl(new fr(0,0,1,13),1).ja(),fr.NotRightSide=Qd=hl(new fr(0,0,1,11),1).ja(),fr.NotBottomSide=Oc=hl(new fr(0,0,1,7),1).ja(),fr.AllSides=Dc=hl(new fr(0,0,1,15),1).ja(),fc=new fr(.156,.156).ja(),dh=new fr(.844,.844).ja(),fr.parse=zd,fr.stringify=td;function Ro(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ro.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},Ro.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Ro.prototype.copy=function(){var a=new Ro;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},Ro.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ro.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},Ro.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ro.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ro.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Ro.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,nt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*nt+this.m21*a+this.dx,this.dy=this.m12*nt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Ro.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Ro.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=nt,this.translate(-y,-x),this},Yt=Ro.prototype,Yt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Yt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Yt.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Yt.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,b=a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Yt.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,b=1.2*a.y;return a.h(x*this.m22*y+b*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+b*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Yt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,nt=this.m12,ot=this.m21,at=this.m22,ut=this.dx,ct=this.dy,gt=y*z+x*ot+ut,Nt=y*nt+x*at+ct,zt=b*z+x*ot+ut,Xt=b*nt+x*at+ct;return x=y*z+E*ot+ut,y=y*nt+E*at+ct,z=b*z+E*ot+ut,b=b*nt+E*at+ct,E=Math.min(gt,zt),gt=Math.max(gt,zt),zt=Math.min(Nt,Xt),Nt=Math.max(Nt,Xt),E=Math.min(E,x),gt=Math.max(gt,x),zt=Math.min(zt,y),Nt=Math.max(Nt,y),E=Math.min(E,z),gt=Math.max(gt,z),zt=Math.min(zt,b),Nt=Math.max(Nt,b),a.h(E,zt,gt-E,Nt-zt),a},Ro.alloc=function(){var a=sA.pop();return a===void 0?new Ro:a},Ro.free=function(a){sA.push(a)},Ro.prototype.transformRect=Ro.prototype.pp,Ro.prototype.transformPoint=Ro.prototype.Ga,Ro.prototype.scale=Ro.prototype.scale,Ro.prototype.translate=Ro.prototype.translate,Ro.prototype.rotate=Ro.prototype.rotate,Ro.prototype.invert=Ro.prototype.Vj,Ro.prototype.multiplyInverted=Ro.prototype.bv,Ro.prototype.multiply=Ro.prototype.multiply,Ro.prototype.reset=Ro.prototype.reset,Ro.prototype.isIdentity=Ro.prototype.ws,Ro.prototype.equals=Ro.prototype.D,Ro.prototype.setTransform=Ro.prototype.setTransform,Ro.prototype.set=Ro.prototype.set;var sA=[];Ro.className="Transform",Ro.xF="54a702f3e53909c447824c6706603faf4c";var Ln={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Ln.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Ln.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,nt){if(0>=E&&(E=1e-6),a<x)var ot=a,at=x;else ot=x,at=a;if(y<b)var ut=y,ct=b;else ut=b,ct=y;if(a===x)return ut<=nt&&nt<=ct&&a-E<=z&&z<=a+E;if(y===b)return ot<=z&&z<=at&&y-E<=nt&&nt<=y+E;if(at+=E,ot-=E,ot<=z&&z<=at&&(ct+=E,ut-=E,ut<=nt&&nt<=ct))if(at-ot>ct-ut)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=nt&&nt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-E<=z&&z<=nt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,nt,ot,at,ut,ct,gt){if(Ln.Yb(a,y,nt,ot,gt,x,b)&&Ln.Yb(a,y,nt,ot,gt,E,z))return Ln.Yb(a,y,nt,ot,gt,ut,ct);var Nt=(a+x)/2,zt=(y+b)/2,Xt=(x+E)/2,ue=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Nt+Xt)/2,x=(zt+ue)/2,Xt=(Xt+E)/2,ue=(ue+z)/2;var Qe=(b+Xt)/2,ke=(x+ue)/2;return Ln.cs(a,y,Nt,zt,b,x,Qe,ke,at,ut,ct,gt)||Ln.cs(Qe,ke,Xt,ue,E,z,nt,ot,at,ut,ct,gt)},ax:function(a,y,x,b,E,z,nt,ot,at){var ut=(x+E)/2,ct=(b+z)/2;return at.h((((a+x)/2+ut)/2+(ut+(E+nt)/2)/2)/2,(((y+b)/2+ct)/2+(ct+(z+ot)/2)/2)/2),at},My:function(a,y,x,b,E,z,nt,ot){var at=(x+E)/2,ut=(b+z)/2;return io(((a+x)/2+at)/2,((y+b)/2+ut)/2,(at+(E+nt)/2)/2,(ut+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,nt,ot,at,ut){if(Ln.Yb(a,y,nt,ot,at,x,b)&&Ln.Yb(a,y,nt,ot,at,E,z))Es(ut,a,y,0,0),Es(ut,nt,ot,0,0);else{var ct=(a+x)/2,gt=(y+b)/2,Nt=(x+E)/2,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+Nt)/2,x=(gt+zt)/2,Nt=(Nt+E)/2,zt=(zt+z)/2;var Xt=(b+Nt)/2,ue=(x+zt)/2;Ln.Dl(a,y,ct,gt,b,x,Xt,ue,at,ut),Ln.Dl(Xt,ue,Nt,zt,E,z,nt,ot,at,ut)}return ut},Qe:function(a,y,x,b,E,z,nt,ot,at,ut){if(Ln.Yb(a,y,nt,ot,at,x,b)&&Ln.Yb(a,y,nt,ot,at,E,z))ut.length===0&&(ut.push(a),ut.push(y)),ut.push(nt),ut.push(ot);else{var ct=(a+x)/2,gt=(y+b)/2,Nt=(x+E)/2,zt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ct+Nt)/2,x=(gt+zt)/2,Nt=(Nt+E)/2,zt=(zt+z)/2;var Xt=(b+Nt)/2,ue=(x+zt)/2;Ln.Qe(a,y,ct,gt,b,x,Xt,ue,at,ut),Ln.Qe(Xt,ue,Nt,zt,E,z,nt,ot,at,ut)}return ut},jv:function(a,y,x,b,E,z,nt,ot,at,ut){if(Ln.Yb(a,y,E,z,ut,x,b))return Ln.Yb(a,y,E,z,ut,ot,at);var ct=(a+x)/2,gt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Nt=(ct+x)/2,zt=(gt+b)/2;return Ln.jv(a,y,ct,gt,Nt,zt,nt,ot,at,ut)||Ln.jv(Nt,zt,x,b,E,z,nt,ot,at,ut)},OA:function(a,y,x,b,E,z,nt){return nt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),nt},iv:function(a,y,x,b,E,z,nt,ot){if(Ln.Yb(a,y,E,z,nt,x,b))Es(ot,a,y,0,0),Es(ot,E,z,0,0);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,gt=(ut+b)/2;Ln.iv(a,y,at,ut,ct,gt,nt,ot),Ln.iv(ct,gt,x,b,E,z,nt,ot)}return ot},ep:function(a,y,x,b,E,z,nt,ot){if(Ln.Yb(a,y,E,z,nt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(E),ot.push(z);else{var at=(a+x)/2,ut=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ct=(at+x)/2,gt=(ut+b)/2;Ln.ep(a,y,at,ut,ct,gt,nt,ot),Ln.ep(ct,gt,x,b,E,z,nt,ot)}return ot},Eo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,gt,Nt,zt){if(Ln.Yb(a,y,nt,ot,Nt,x,b)&&Ln.Yb(a,y,nt,ot,Nt,E,z))return!Ln.Rl(a,y,nt,ot,at,ut,ct,gt)||(Nt=(a-nt)*(ut-gt)-(y-ot)*(at-ct),Nt===0)?!1:(zt.h(((a*ot-y*nt)*(at-ct)-(a-nt)*(at*gt-ut*ct))/Nt,((a*ot-y*nt)*(ut-gt)-(y-ot)*(at*gt-ut*ct))/Nt),!0);var Xt=(a+x)/2,ue=(y+b)/2,Qe=(x+E)/2,ke=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Xt+Qe)/2,x=(ue+ke)/2,Qe=(Qe+E)/2,ke=(ke+z)/2;var Ze=(b+Qe)/2,en=(x+ke)/2,an=1/0,Cn=!1,Zn=0,ir=0;return Ln.Eo(a,y,Xt,ue,b,x,Ze,en,at,ut,ct,gt,Nt,zt)&&(a=(zt.x-at)*(zt.x-at)+(zt.y-ut)*(zt.y-ut),a<an&&(an=a,Cn=!0,Zn=zt.x,ir=zt.y)),Ln.Eo(Ze,en,Qe,ke,E,z,nt,ot,at,ut,ct,gt,Nt,zt)&&(zt.x-at)*(zt.x-at)+(zt.y-ut)*(zt.y-ut)<an&&(Cn=!0,Zn=zt.x,ir=zt.y),Cn&&(zt.x=Zn,zt.y=ir),Cn},Fo:function(a,y,x,b,E,z,nt,ot,at,ut,ct,gt,Nt){var zt=0;if(Ln.Yb(a,y,nt,ot,Nt,x,b)&&Ln.Yb(a,y,nt,ot,Nt,E,z)){if(Nt=(a-nt)*(ut-gt)-(y-ot)*(at-ct),Nt===0)return zt;var Xt=((a*ot-y*nt)*(at-ct)-(a-nt)*(at*gt-ut*ct))/Nt,ue=((a*ot-y*nt)*(ut-gt)-(y-ot)*(at*gt-ut*ct))/Nt;if(Xt>=ct)return zt;if((at>ct?at-ct:ct-at)<(ut>gt?ut-gt:gt-ut)){if(y<ot?(at=y,a=ot):(at=ot,a=y),ue<at||ue>a)return zt}else if(a<nt?(at=a,a=nt):at=nt,Xt<at||Xt>a)return zt;0<Nt?zt++:0>Nt&&zt--}else{Xt=(a+x)/2,ue=(y+b)/2;var Qe=(x+E)/2,ke=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Xt+Qe)/2,x=(ue+ke)/2,Qe=(Qe+E)/2,ke=(ke+z)/2;var Ze=(b+Qe)/2,en=(x+ke)/2;zt+=Ln.Fo(a,y,Xt,ue,b,x,Ze,en,at,ut,ct,gt,Nt),zt+=Ln.Fo(Ze,en,Qe,ke,E,z,nt,ot,at,ut,ct,gt,Nt)}return zt},qh:function(a,y,x,b,E,z,nt){return Ln.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(nt.h(a,x),!1):z>y?(nt.h(a,y),!1):(nt.h(a,z),!0)):Ln.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(nt.h(b,y),!1):E>a?(nt.h(a,y),!1):(nt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(nt.h(a,y),!1):1.000005<E?(nt.h(x,b),!1):(nt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,nt,ot,at){return Ln.B(a,x)&&Ln.B(y,b)?(at.h(a,y),!1):Ln.$(E,nt)?Ln.$(a,x)?(Ln.qh(a,y,x,b,E,z,at),!1):Ln.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(ot=(ot-z)/(nt-E),Ln.$(a,x)?(x=ot*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(at.h(a,E),!1):x>y?(at.h(a,y),!1):(at.h(a,x),!0)):(nt=(b-y)/(x-a),Ln.$(ot,nt)?(Ln.qh(a,y,x,b,E,z,at),!1):(E=(nt*a-ot*E+z-y)/(nt-ot),Ln.$(nt,0)?(a<x?(b=a,a=x):b=x,E<b?(at.h(b,y),!1):E>a?(at.h(a,y),!1):(at.h(E,y),!0)):Ln.qh(a,y,x,b,E,nt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return Ln.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,nt,ot,at,ut){function ct(Qe,ke){var Ze=(Qe-a)*(Qe-a)+(ke-y)*(ke-y);Ze<gt&&(gt=Ze,at.h(Qe,ke))}var gt=1/0;ct(at.x,at.y);var Nt=0,zt=0,Xt=0,ue=0;if(E<nt?(Nt=E,zt=nt):(Nt=nt,zt=E),z<ot?(Xt=E,ue=nt):(Xt=nt,ue=E),Nt=(zt-Nt)/2+ut,ut=(ue-Xt)/2+ut,E=(E+nt)/2,z=(z+ot)/2,Nt===0||ut===0)return at;if(.5>(x>a?x-a:a-x)){if(Nt=1-(x-E)*(x-E)/(Nt*Nt),0>Nt)return at;Nt=Math.sqrt(Nt),b=-ut*Nt+z,ct(x,ut*Nt+z),ct(x,b)}else{if(x=(b-y)/(x-a),b=1/(Nt*Nt)+x*x/(ut*ut),ot=2*x*(y-x*a)/(ut*ut)-2*x*z/(ut*ut)-2*E/(Nt*Nt),Nt=ot*ot-4*b*(2*x*a*z/(ut*ut)-2*y*z/(ut*ut)+z*z/(ut*ut)+E*E/(Nt*Nt)-1+(y-x*a)*(y-x*a)/(ut*ut)),0>Nt)return at;Nt=Math.sqrt(Nt),ut=(-ot+Nt)/(2*b),ct(ut,x*ut-x*a+y),Nt=(-ot-Nt)/(2*b),ct(Nt,x*Nt-x*a+y)}return at},Ff:function(a,y,x,b,E,z,nt,ot,at){var ut=1e21,ct=a,gt=y;if(Ln.Ve(a,y,a,b,E,z,nt,ot,at)){var Nt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);Nt<ut&&(ut=Nt,ct=at.x,gt=at.y)}return Ln.Ve(x,y,x,b,E,z,nt,ot,at)&&(Nt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),Nt<ut&&(ut=Nt,ct=at.x,gt=at.y)),Ln.Ve(a,y,x,y,E,z,nt,ot,at)&&(y=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),y<ut&&(ut=y,ct=at.x,gt=at.y)),Ln.Ve(a,b,x,b,E,z,nt,ot,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<ut&&(ut=a,ct=at.x,gt=at.y)),at.h(ct,gt),1e21>ut},us:function(a,y,x){return Ln.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,nt,ot){var at=a+x,ut=y+b;return E===nt?(z<ot?(nt=z,z=ot):nt=ot,a<=E&&E<=at&&nt<=ut&&z>=y):z===ot?(E<nt?(ot=E,E=nt):ot=nt,y<=z&&z<=ut&&ot<=at&&E>=a):!!(_s(a,y,x,b,E,z)||_s(a,y,x,b,nt,ot)||Ln.Rl(a,y,at,y,E,z,nt,ot)||Ln.Rl(at,y,at,ut,E,z,nt,ot)||Ln.Rl(at,ut,a,ut,E,z,nt,ot)||Ln.Rl(a,ut,a,y,E,z,nt,ot))},Rl:function(a,y,x,b,E,z,nt,ot){return a===x&&y===b&&E===nt&&z===ot?a===E&&y===z:0>=Ln.Fl(a,y,x,b,E,z)*Ln.Fl(a,y,x,b,nt,ot)&&0>=Ln.Fl(E,z,nt,ot,a,y)*Ln.Fl(E,z,nt,ot,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var nt=Math.PI;z||(b*=nt/180,E*=nt/180);var ot=b>E?-1:1;z=[];var at=nt/2,ut=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return at=ut+ot*Math.min(b,at),ot=a+x*Math.cos(ut),ut=y+x*Math.sin(ut),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(ot+a)/2,at=(ut+y)/2,z.push([ot,ut,x,at,x,at,a,y]),z;for(;1e-5<b;)E=ut+ot*Math.min(b,at),z.push(Ln.Vy(x,ut,E,a,y)),b-=Math.abs(E-ut),ut=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,nt=a*Math.cos(z),ot=a*Math.sin(z),at=-ot,ut=nt*nt+at*at,ct=ut+nt*nt+at*ot;return ut=4/3*(Math.sqrt(2*ut*ct)-ct)/(nt*ot-at*nt),ot=nt-ut*at,nt=at+ut*nt,at=-nt,ut=z+y,z=Math.cos(ut),ut=Math.sin(ut),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-nt*ut,E+ot*ut+nt*z,b+ot*z-at*ut,E+ot*ut+at*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,nt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var ot=x;return x+E-a<E/2&&(ot=x+E),a=b,b+z-y<z/2&&(a=b+z),nt.h(ot,a),nt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var nt=1,ot=0;else nt=0,ot=1;var at=nt===0?a:y,ut=nt===0?x:b;return(nt===0?E:z)&&(ut=-ut),nt=ot,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),Ln.az(at,nt===0?a:y,ut,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var nt=y*b,ot=-z+nt,at=-z+Math.sqrt(a*a+nt*nt);y=ot;for(var ut=0;9999999999>ut&&(y=.5*(ot+at),!(y===ot||y===at));++ut){var ct=a/(y+E),gt=nt/(y+z);if(ct=ct*ct+gt*gt-1,0<ct)ot=y;else if(0>ct)at=y;else break}x=E*x/(y+E)-x,b=z*b/(y+z)-b,x=Math.sqrt(x*x+b*b)}else x=Math.abs(b-y);else b=a*a-y*y,z=a*x,z<b?(b=z/b,z=y*Math.sqrt(Math.abs(1-b*b)),x=a*b-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new _r,um:new _r,Mf:new _r,Nf:0,vm:100};Ln.za=Ln.AA;function $i(a){Xo(this),this.l=2,a===void 0&&(a=$i.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===$i.o?this.ee=new Bi:($i.V===null&&($i.V=new Bi().freeze()),this.ee=$i.V),this.aq=this.ee.Ja,this.Ip=new ui().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ol,this.gg=Yl,this.Rk=this.Sk=NaN,this.Uf=Oi}$i.prototype.copy=function(){var a=new $i;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===$i.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},$i.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},$i.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==$i.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},$i.prototype.ka=function(){if(Object.isFrozen(this)&&mn("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==$i.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},$i.prototype.Xa=function(a){if(!(a instanceof $i))return!1;if(this.type!==a.type)return this.type===$i.j&&a.type===$i.o?aA(this,a):a.type===$i.j&&this.type===$i.o?aA(a,this):!1;if(this.type===$i.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Ln.B(this.startX,a.startX)&&Ln.B(this.startY,a.startY)&&Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY)};function aA(a,y){return a.type!==$i.j||y.type!==$i.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Ln.B(a.startX,y.startX)&&Ln.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===ra&&Ln.B(a.endX,y.endX)&&Ln.B(a.endY,y.endY))))}$i.ia=function(a){return a.toString()},$i.prototype.qb=function(a){a.classType===$i&&(this.type=a)},$i.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case $i.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case $i.u:var y=new ui(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case $i.F:if(y=new ui(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case $i.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},$i.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},$i.parse=function(a,y){function x(){return ue>=an-1?!0:ut[ue+1].match(Cn)!==null}function b(){return ue++,ut[ue]}function E(Fo){var mo=parseFloat(b()),Ts=parseFloat(b());Qe===Qe.toLowerCase()&&(mo=en.x+mo,Ts=en.y+Ts),Fo.h(mo,Ts)}function z(){return E(en),en}function nt(){return E(Ze),Ze}function ot(){var Fo=ke.toLowerCase();return Fo!=="c"&&Fo!=="s"&&Fo!=="q"&&Fo!=="t"?en:new Ue(2*en.x-Ze.x,2*en.y-Ze.y)}y===void 0&&(y=!1);var at=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(at,"$1 $2"),a=a.replace(at,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var ut=a.split(" ");for(a=0;a<ut.length;a++){var ct=ut[a];if(ct.match(/(\.[0-9]*)(\.)/gm)!==null){at=sr();for(var gt="",Nt=!1,zt=0;zt<ct.length;zt++){var Xt=ct[zt];Xt!=="."||Nt?Xt==="."?(at.push(gt),gt="."):gt+=Xt:(Nt=!0,gt+=Xt)}for(at.push(gt),ut.splice(a,1),ct=0;ct<at.length;ct++)ut.splice(a+ct,0,at[ct]);a+=at.length-1,Br(at)}}var ue=-1,Qe="",ke="";at=new Ue(0,0);var Ze=new Ue(0,0),en=new Ue(0,0),an=ut.length;a=jy(null),Nt=gt=ct=!1,zt=!0,Xt=null;for(var Cn=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ue>=an-1);)if(ke=Qe,Qe=b(),Qe!=="")switch(Qe.toUpperCase()){case"X":zt=!0,gt=ct=!1;break;case"M":for(Xt=z(),a.mc===null||zt===!0?(Op(a,Xt.x,Xt.y,ct,!gt,Nt),zt=!1):a.moveTo(Xt.x,Xt.y),at.assign(en);!x();)Xt=z(),a.lineTo(Xt.x,Xt.y);break;case"L":for(;!x();)Xt=z(),a.lineTo(Xt.x,Xt.y);break;case"H":for(;!x();)en=new Ue((Qe===Qe.toLowerCase()?en.x:0)+parseFloat(b()),en.y),a.lineTo(en.x,en.y);break;case"V":for(;!x();)en=new Ue(en.x,(Qe===Qe.toLowerCase()?en.y:0)+parseFloat(b())),a.lineTo(en.x,en.y);break;case"C":for(;!x();){Xt=new Ue,E(Xt);var Zn=nt(),ir=z();Pf(a,Xt.x,Xt.y,Zn.x,Zn.y,ir.x,ir.y)}break;case"S":for(;!x();)Xt=ot(),Zn=nt(),ir=z(),Pf(a,Xt.x,Xt.y,Zn.x,Zn.y,ir.x,ir.y);break;case"Q":for(;!x();)Xt=nt(),Zn=z(),r0(a,Xt.x,Xt.y,Zn.x,Zn.y);break;case"T":for(;!x();)Ze=Xt=ot(),Zn=z(),r0(a,Xt.x,Xt.y,Zn.x,Zn.y);break;case"B":for(;!x();){Xt=parseFloat(b()),Zn=parseFloat(b()),ir=parseFloat(b());var Mr=parseFloat(b()),wr=parseFloat(b()),Vi=wr,Ni=!1;x()||(Vi=parseFloat(b()),x()||(Ni=parseFloat(b())!==0)),Qe===Qe.toLowerCase()&&(ir+=en.x,Mr+=en.y),a.arcTo(Xt,Zn,ir,Mr,wr,Vi,Ni)}break;case"A":for(;!x();)Xt=Math.abs(parseFloat(b())),Zn=Math.abs(parseFloat(b())),ir=parseFloat(b()),wr=Mr=!1,Ni=Vi=0,Vi=b(),Vi.length===1?(Mr=!!parseFloat(Vi),wr=!!parseFloat(b()),Vi=parseFloat(b())):Vi.length===2?(Mr=!!parseFloat(Vi[0]),wr=!!parseFloat(Vi[1]),Vi=parseFloat(b())):(Mr=!!parseFloat(Vi[0]),wr=!!parseFloat(Vi[1]),Vi=parseFloat(Vi.slice(2))),Ni=parseFloat(b()),Qe===Qe.toLowerCase()&&(Vi=en.x+Vi,Ni=en.y+Ni),en.h(Vi,Ni),Lw(a,Xt,Zn,ir,Mr,wr,Vi,Ni);break;case"Z":Fw(a),en.assign(at);break;case"F":for(Xt="",Zn=1;ut[ue+Zn];)if(ut[ue+Zn]==="0")Nt=!0,Zn++;else if(ut[ue+Zn].match(/[Uu]/)!==null)Zn++;else if(ut[ue+Zn].match(Cn)===null)Zn++;else{Xt=ut[ue+Zn];break}Xt.match(/[Mm]/)?ct=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Xt="",Zn=1;ut[ue+Zn];)if(ut[ue+Zn].match(/[Ff]/)!==null)Zn++;else if(ut[ue+Zn].match(Cn)===null)Zn++;else{Xt=ut[ue+Zn];break}Xt.match(/[Mm]/)?gt=!0:a.mc.isShadowed=!1}if(at=a.os,o0=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},$i.Ha=function(a,y){for(var x=a.length,b=Ue.alloc(),E=0;E<x;E++){var z=a[E];b.x=z[0],b.y=z[1],y.Ga(b),z[0]=b.x,z[1]=b.y,b.x=z[2],b.y=z[3],y.Ga(b),z[2]=b.x,z[3]=b.y,b.x=z[4],b.y=z[5],y.Ga(b),z[4]=b.x,z[5]=b.y,b.x=z[6],b.y=z[7],y.Ga(b),z[6]=b.x,z[7]=b.y}Ue.free(b)},$i.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===$i.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},$i.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===$i.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var nt=b[z];nt._isInvalidBounds=!1,nt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),ic(this,a,!1),Es(a,0,0,0,0),a.freeze()},$i.prototype.ix=function(){var a=new ui;return ic(this,a,!0),a};function ic(a,y,x){switch(a.type){case $i.j:case $i.u:case $i.F:x?y.h(a.od,a.pd,0,0):Es(y,a.od,a.pd,0,0),Es(y,a.Dc,a.Ec,0,0);break;case $i.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):Es(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ut=z.startY,ct=0;ct<ot;ct++){var gt=nt[ct];switch(gt.type){case ra:case Ll:at=gt.endX,ut=gt.endY,Es(y,at,ut,0,0);break;case gu:Ln.Dl(at,ut,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.5,y),at=gt.endX,ut=gt.endY;break;case bh:Ln.iv(at,ut,gt.point1X,gt.point1Y,gt.endX,gt.endY,.5,y),at=gt.endX,ut=gt.endY;break;case xl:case zh:var Nt=gt.type===xl?oh(gt,z):Xu(gt,z,at,ut),zt=Nt.length;if(zt===0){at=gt.type===xl?gt.centerX:gt.endX,ut=gt.type===xl?gt.centerY:gt.endY,Es(y,at,ut,0,0);break}gt=null;for(var Xt=0;Xt<zt;Xt++)gt=Nt[Xt],Ln.Dl(gt[0],gt[1],gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.5,y);gt!==null&&(at=gt[6],ut=gt[7]);break;default:mn("Unknown Segment type: "+gt.type)}}}break;default:mn("Unknown Geometry type: "+a.type)}}$i.prototype.normalize=function(){this._isFrozen&&Ai(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ue(-a.x,-a.y)},$i.prototype.offset=function(a,y){return this._isFrozen&&Ai(this),this.transform(1,0,0,1,a,y),this},$i.prototype.scale=function(a,y){return this._isFrozen&&Ai(this),this.transform(a,0,0,y,0,0),this},$i.prototype.rotate=function(a,y,x){this._isFrozen&&Ai(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Ro.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Ro.free(b),this},Yt=$i.prototype,Yt.transform=function(a,y,x,b,E,z){switch(this.type){case $i.j:case $i.u:case $i.F:var nt=this.od,ot=this.pd;this.od=nt*a+ot*x+E,this.pd=nt*y+ot*b+z,nt=this.Dc,ot=this.Ec,this.Dc=nt*a+ot*x+E,this.Ec=nt*y+ot*b+z;break;case $i.o:for(var at=this.figures.s,ut=at.length,ct=0;ct<ut;ct++){var gt=at[ct];nt=gt.startX,ot=gt.startY,gt.startX=nt*a+ot*x+E,gt.startY=nt*y+ot*b+z,gt=gt.segments.s;for(var Nt=gt.length,zt=0;zt<Nt;zt++){var Xt=gt[zt];switch(Xt.type){case ra:case Ll:nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z;break;case gu:nt=Xt.point1X,ot=Xt.point1Y,Xt.point1X=nt*a+ot*x+E,Xt.point1Y=nt*y+ot*b+z,nt=Xt.point2X,ot=Xt.point2Y,Xt.point2X=nt*a+ot*x+E,Xt.point2Y=nt*y+ot*b+z,nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z;break;case bh:nt=Xt.point1X,ot=Xt.point1Y,Xt.point1X=nt*a+ot*x+E,Xt.point1Y=nt*y+ot*b+z,nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z;break;case xl:nt=Xt.centerX,ot=Xt.centerY,Xt.centerX=nt*a+ot*x+E,Xt.centerY=nt*y+ot*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Xt.startAngle+=nt),0>a&&(Xt.startAngle=180-Xt.startAngle,Xt.sweepAngle=-Xt.sweepAngle),0>b&&(Xt.startAngle=-Xt.startAngle,Xt.sweepAngle=-Xt.sweepAngle),Xt.radiusX*=Math.sqrt(a*a+x*x),Xt.radiusY!==void 0&&(Xt.radiusY*=Math.sqrt(y*y+b*b));break;case zh:if(nt=Xt.endX,ot=Xt.endY,Xt.endX=nt*a+ot*x+E,Xt.endY=nt*y+ot*b+z,Xt.radiusX===0||Xt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),Xt.xAxisRotation+=nt),0>a&&(Xt.xAxisRotation=180-Xt.xAxisRotation,Xt.isClockwiseArc=!Xt.isClockwiseArc),0>b&&(Xt.xAxisRotation=-Xt.xAxisRotation,Xt.isClockwiseArc=!Xt.isClockwiseArc),Xt.radiusX*=Math.sqrt(a*a+x*x),Xt.radiusY*=Math.sqrt(y*y+b*b);break;default:mn("Unknown Segment type: "+Xt.type)}}}}return this._isInvalidBounds=!0,this},Yt.ca=function(a,y){y===void 0&&(y=0);var x=this.od,b=this.pd,E=this.Dc,z=this.Ec;switch(this.type){case $i.j:return Ln.Yb(x,b,E,z,y,a.x,a.y);case $i.u:var nt=ui.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=nt.ca(a),ui.free(nt),a;case $i.F:nt=Math.min(x,E)-y;var ot=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(nt=a.x-(nt+x),ot=a.y-(ot+y),1>=nt*nt/(x*x)+ot*ot/(y*y));case $i.o:return Gu(this,a,y,!0,!1);default:return!1}};function Gu(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ut,ct,gt,Nt=a.figures.s,zt=Nt.length,Xt=0;Xt<zt;Xt++){var ue=Nt[Xt],Qe=!ue.isEvenOdd;if(ue.isFilled){if(b&&ue.ca(z,y,x))return!0;var ke=ue.segments;at=ue.startX,ut=ue.startY;for(var Ze=at,en=ut,an=ke.s,Cn=0;Cn<=ke.length;Cn++){var Zn=void 0;if(Cn!==ke.length){Zn=an[Cn];var ir=Zn.type;a=Zn.endX,gt=Zn.endY}else ir=ra,a=Ze,gt=en;switch(ir){case Ll:if(Ze=Wu(z,y,nt,y,at,ut,Ze,en),isNaN(Ze))return!0;ot+=Ze,Ze=a,en=gt;break;case ra:if(at=Wu(z,y,nt,y,at,ut,a,gt),isNaN(at))return!0;ot+=at;break;case gu:ct=Ln.Fo(at,ut,Zn.point1X,Zn.point1Y,Zn.point2X,Zn.point2Y,a,gt,nt,y,z,y,.5),ot+=ct;break;case bh:ct=Ln.Fo(at,ut,(at+2*Zn.point1X)/3,(ut+2*Zn.point1Y)/3,(2*Zn.point1X+a)/3,(2*Zn.point1Y+gt)/3,a,gt,nt,y,z,y,.5),ot+=ct;break;case xl:case zh:ir=Zn.type===xl?oh(Zn,ue):Xu(Zn,ue,at,ut);var Mr=ir.length;if(Mr===0){if(at=Wu(z,y,nt,y,at,ut,Zn.type===xl?Zn.centerX:Zn.endX,Zn.type===xl?Zn.centerY:Zn.endY),isNaN(at))return!0;ot+=at;break}Zn=null;for(var wr=0;wr<Mr;wr++){if(Zn=ir[wr],wr===0){if(ct=Wu(z,y,nt,y,at,ut,Zn[0],Zn[1]),isNaN(ct))return!0;ot+=ct}ct=Ln.Fo(Zn[0],Zn[1],Zn[2],Zn[3],Zn[4],Zn[5],Zn[6],Zn[7],nt,y,z,y,.5),ot+=ct}Zn!==null&&(a=Zn[6],gt=Zn[7]);break;default:mn("Unknown Segment type: "+Zn.type)}at=a,ut=gt}if(Qe){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(ue.ca(z,y,E?x:x+2))return!0}return!1}function Wu(a,y,x,b,E,z,nt,ot){if(Ln.Yb(E,z,nt,ot,.05,a,y))return NaN;var at=(a-x)*(z-ot);if(at===0)return 0;var ut=((a*b-y*x)*(E-nt)-(a-x)*(E*ot-z*nt))/at;if(y=(a*b-y*x)*(z-ot)/at,ut>=a)return 0;if((E>nt?E-nt:nt-E)<(z>ot?z-ot:ot-z)){if(z<ot){if(y<z||y>ot)return 0}else if(y<ot||y>z)return 0}else if(E<nt){if(ut<E||ut>nt)return 0}else if(ut<nt||ut>E)return 0;return 0<at?1:-1}function Ph(a,y,x,b){a=a.figures.s;for(var E=a.length,z=0;z<E;z++)if(a[z].ca(y,x,b))return!0;return!1}Yt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ue),this.type===$i.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ut=at.length;for(a=0;a<ut;a++){var ct=at[a];if(nt+ct>=z)return b=z-nt,b=ct===0?0:b/ct,x=x[ot],ot=x[2*a],E=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,E+(x[2*a+3]-E)*b),y;nt+=ct}}return y},Yt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===$i.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,nt=0;nt<b;nt++){var ot=x[nt],at=ot.length;for(a=0;a<at;a++){var ut=ot[a];if(z+ut>=E)return E=y[nt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=ut}}return NaN},Yt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===$i.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ut=at.length;for(a=0;a<ut;a++){var ct=at[a];if(nt+ct>=z)return b=z-nt,b=ct===0?0:b/ct,ct=x[ot],x=ct[2*a],ot=ct[2*a+1],E=ct[2*a+2],a=ct[2*a+3],y[0]=x+(E-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-ot)?0:1>Math.abs(E-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=E-x?0:180:180*Math.atan2(a-ot,E-x)/Math.PI,y;nt+=ct}}return y},Yt.xx=function(a){if(this.type===$i.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var nt=x;b=E}else nt=E,b=x;return a<=nt?nt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===E)return y<b?nt=y:(nt=b,b=y),z<=nt?nt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-nt);nt=(b-y)*(b-y)+(E-x)*(E-x);var ot=Ue.alloc();return Ln.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,Ue.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===$i.u){nt=this.startX,ot=this.startY;var at=this.endX;if(E=this.endY,nt!==at||ot!==E){y=at-nt,x=E-ot,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),at),a=Math.min(Math.max(a,ot),E),nt=Math.abs(b-nt),at=Math.abs(b-at),ot=Math.abs(a-ot),E=Math.abs(a-E);var ut=Math.min(nt,at,ot,E);if(ut===ot)return b/z;if(ut===at)return(y+a)/z;if(ut===E)return(2*y+x-b)/z;if(ut===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Ue.alloc(),E=1/0,ot=nt=0,at=y.length;for(var ct=ut=0,gt=0;gt<at;gt++)for(var Nt=y[gt],zt=x[gt],Xt=Nt.length,ue=0;ue<Xt;ue+=2){var Qe=Nt[ue],ke=Nt[ue+1];if(ue!==0){Ln.qh(ut,ct,Qe,ke,a.x,a.y,b);var Ze=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ze<E&&(E=Ze,nt=ot,nt+=Math.sqrt((b.x-ut)*(b.x-ut)+(b.y-ct)*(b.y-ct))),ot+=zt[(ue-2)/2]}ut=Qe,ct=ke}return Ue.free(b),a=nt/z,0>a?0:1<a?1:a}return 0};function zA(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===$i.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===$i.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===$i.F){var z=new nl;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new ys(xl);if(nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(a.startX+a.endX)/2,nt.centerY=(a.startY+a.endY)/2,nt.radiusX=Math.abs(a.startX-a.endX)/2,nt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(nt),a=oh(nt,z),E=a.length,E===0)b.push(nt.centerX),b.push(nt.centerY);else{nt=z.startX,z=z.startY;for(var ot=0;ot<E;ot++){var at=a[ot];Ln.Qe(nt,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),nt=at[6],z=at[7]}}y.push(b),x.push(ed(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),nt=E.startX,z=E.startY,ot=nt,at=z;for(var ut=E.segments.s,ct=ut.length,gt=0;gt<ct;gt++){var Nt=ut[gt];switch(Nt.type){case Ll:4<=b.length&&(y.push(b),x.push(ed(b))),b=[],b.push(Nt.endX),b.push(Nt.endY),nt=Nt.endX,z=Nt.endY,ot=nt,at=z;break;case ra:b.push(Nt.endX),b.push(Nt.endY),nt=Nt.endX,z=Nt.endY;break;case gu:Ln.Qe(nt,z,Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,Nt.endX,Nt.endY,.5,b),nt=Nt.endX,z=Nt.endY;break;case bh:Ln.ep(nt,z,Nt.point1X,Nt.point1Y,Nt.endX,Nt.endY,.5,b),nt=Nt.endX,z=Nt.endY;break;case xl:var zt=oh(Nt,E),Xt=zt.length;if(Xt===0){b.push(Nt.centerX),b.push(Nt.centerY),nt=Nt.centerX,z=Nt.centerY;break}for(var ue=0;ue<Xt;ue++){var Qe=zt[ue];Ln.Qe(nt,z,Qe[2],Qe[3],Qe[4],Qe[5],Qe[6],Qe[7],.5,b),nt=Qe[6],z=Qe[7]}break;case zh:if(zt=Xu(Nt,E,nt,z),Xt=zt.length,ue=Nt.endX,Qe=Nt.endY,Xt===0){b.push(ue),b.push(Qe),nt=ue,z=Qe;break}for(ue=0;ue<Xt;ue++)Qe=zt[ue],Ln.Qe(nt,z,Qe[2],Qe[3],Qe[4],Qe[5],Qe[6],Qe[7],.5,b),nt=Qe[6],z=Qe[7];break;default:mn("Segment not of valid type: "+Nt.type)}Nt.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(ed(b)))}}}function ed(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var nt=a[z],ot=a[z+1];z!==0&&y.push(Math.sqrt(Mo(x,b,nt,ot))),x=nt,b=ot}return y}Yt.add=function(a){return this.ee.add(a),this},Yt.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&Ai(this),this.fg=new fr(a,y,E,z).freeze(),this.gg=new fr(x,b,nt,ot).freeze(),this},rn.Object.defineProperties($i.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return zA(this),this.tk}},flattenedLengths:{get:function(){return zA(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===$i.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===$i.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,nt=0;nt<z;nt++)a+=E[nt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&Ai(this,a),this.na=a,a===$i.o?this.ee=new Bi:($i.V===null&&($i.V=new Bi().freeze()),this.ee=$i.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Ai(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Ai(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Ai(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Ai(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Ai(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Ai(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Ai(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Ai(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),$i.prototype.setSpots=$i.prototype.pm,$i.prototype.add=$i.prototype.add,$i.prototype.getFractionForPoint=$i.prototype.xx,$i.prototype.getPointAndAngleAlongPath=$i.prototype.Qu,$i.prototype.getAngleAlongPath=$i.prototype.wx,$i.prototype.getPointAlongPath=$i.prototype.Pu,$i.prototype.containsPoint=$i.prototype.ca,$i.prototype.transform=$i.prototype.transform,$i.prototype.rotate=$i.prototype.rotate,$i.prototype.scale=$i.prototype.scale,$i.prototype.offset=$i.prototype.offset,$i.prototype.normalize=$i.prototype.normalize,$i.prototype.computeBoundsWithoutOrigin=$i.prototype.ix,$i.prototype.equalsApprox=$i.prototype.Xa,$i.className="Geometry",$i.j=new jn($i,"Line",0),$i.u=new jn($i,"Rectangle",1),$i.F=new jn($i,"Ellipse",2),$i.o=new jn($i,"Path",3),$i.V=null,$i.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",$i.className="Geometry",$i.stringify=$i.ia,$i.fillPath=$i.nb,$i.parse=$i.parse,$i.Line=$i.j,$i.Rectangle=$i.u,$i.Ellipse=$i.F,$i.Path=$i.o;function nl(a,y,x,b,E){Xo(this),x===void 0&&(x=!0),b===void 0&&(b=!0),E===void 0&&(E=!1),this.l=2|(x?4:0)|(b?8:0)|(E?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new Bi,this.sr=this.pl.Ja,this.fw=null}nl.prototype.copy=function(){var a=new nl;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,b=a.pl,E=0;E<x;E++){var z=y[E].copy();b.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Yt=nl.prototype,Yt.Xa=function(a){if(!(a instanceof nl&&Ln.B(this.startX,a.startX)&&Ln.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0},Yt.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,b=x.length,E=0;E<b;E++)y+=" "+x[E].toString(a);return y},Yt.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},Yt.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Yt.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},Yt.add=function(a){return this.pl.add(a),this},Yt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,ot=this.segments.s,at=ot.length,ut=0;ut<at;ut++){var ct=ot[ut];switch(ct.type){case Ll:z=ct.endX,nt=ct.endY,b=ct.endX,E=ct.endY;break;case ra:if(Ln.Yb(b,E,ct.endX,ct.endY,x,a,y))return!0;b=ct.endX,E=ct.endY;break;case gu:if(Ln.cs(b,E,ct.point1X,ct.point1Y,ct.point2X,ct.point2Y,ct.endX,ct.endY,.5,a,y,x))return!0;b=ct.endX,E=ct.endY;break;case bh:if(Ln.jv(b,E,ct.point1X,ct.point1Y,ct.endX,ct.endY,.5,a,y,x))return!0;b=ct.endX,E=ct.endY;break;case xl:case zh:var gt=ct.type===xl?oh(ct,this):Xu(ct,this,b,E),Nt=gt.length,zt=ct.type===xl?ct.centerX:ct.endX,Xt=ct.type===xl?ct.centerY:ct.endY;if(Nt===0){if(Ln.Yb(b,E,zt,Xt,x,a,y))return!0;b=zt,E=Xt;break}for(zt=null,Xt=0;Xt<Nt;Xt++)if(zt=gt[Xt],Xt===0&&Ln.Yb(b,E,zt[0],zt[1],x,a,y)||Ln.cs(zt[0],zt[1],zt[2],zt[3],zt[4],zt[5],zt[6],zt[7],.5,a,y,x))return!0;zt!==null&&(b=zt[6],E=zt[7]);break;default:mn("Unknown Segment type: "+ct.type)}if(ct.isClosed&&(b!==z||E!==nt)&&Ln.Yb(b,E,z,nt,x,a,y))return!0}return!1},rn.Object.defineProperties(nl.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Ai(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Ai(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Ai(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Ai(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Ai(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Ai(this,a),this.pl=a,this._isInvalidBounds=!0}}}),nl.prototype.add=nl.prototype.add,nl.prototype.equalsApprox=nl.prototype.Xa,nl.className="PathFigure";function ys(a,y,x,b,E,z,nt,ot){Xo(this),a===void 0&&(a=ra),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),nt===void 0&&(nt=0),a===zh?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===xl&&(z=Math.max(z,0)),this.Wh=z,typeof nt=="number"?(a===xl&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}ys.prototype.copy=function(){var a=new ys;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Yt=ys.prototype,Yt.Xa=function(a){if(!(a instanceof ys)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Ll:case ra:return Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY);case gu:return Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY)&&Ln.B(this.point1X,a.point1X)&&Ln.B(this.point1Y,a.point1Y)&&Ln.B(this.point2X,a.point2X)&&Ln.B(this.point2Y,a.point2Y);case bh:return Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY)&&Ln.B(this.point1X,a.point1X)&&Ln.B(this.point1Y,a.point1Y);case xl:return Ln.B(this.startAngle,a.startAngle)&&Ln.B(this.sweepAngle,a.sweepAngle)&&Ln.B(this.centerX,a.centerX)&&Ln.B(this.centerY,a.centerY)&&Ln.B(this.radiusX,a.radiusX)&&Ln.B(this.radiusY,a.radiusY);case zh:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Ln.B(this.xAxisRotation,a.xAxisRotation)&&Ln.B(this.endX,a.endX)&&Ln.B(this.endY,a.endY)&&Ln.B(this.radiusX,a.radiusX)&&Ln.B(this.radiusY,a.radiusY);default:return!1}},Yt.qb=function(a){a.classType===ys&&(this.type=a)},Yt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Ll:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ra:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case gu:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case bh:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case xl:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case zh:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return this._isFrozen=!1,this},Yt.close=function(){return this.isClosed=!0,this};function oh(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,b=a.radiusY;if(b===void 0&&(b=x),x===0||b===0)return a.ae=[],a.ae;y=a.Ne;var E=a.Vh,z=Ln.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=Ro.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),$i.Ha(z,nt),Ro.free(nt)}for(x=z.length,b=0;b<x;b++)nt=z[b],nt[0]+=y,nt[1]+=E,nt[2]+=y,nt[3]+=E,nt[4]+=y,nt[5]+=E,nt[6]+=y,nt[7]+=E;return a.ae=z,a.ae}function Xu(a,y,x,b){function E(ue,Qe,ke,Ze){return(ue*Ze<Qe*ke?-1:1)*Math.acos((ue*ke+Qe*Ze)/(Math.sqrt(ue*ue+Qe*Qe)*Math.sqrt(ke*ke+Ze*Ze)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var nt=Math.PI/180*a.Ne,ot=a.isLargeArc,at=a.isClockwiseArc,ut=a.Dc,ct=a.Ec,gt=Math.cos(nt),Nt=Math.sin(nt),zt=gt*(x-ut)/2+Nt*(b-ct)/2;nt=-Nt*(x-ut)/2+gt*(b-ct)/2;var Xt=zt*zt/(y*y)+nt*nt/(z*z);return 1<Xt&&(y*=Math.sqrt(Xt),z*=Math.sqrt(Xt)),Xt=(ot===at?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*zt*zt)/(y*y*nt*nt+z*z*zt*zt)),isNaN(Xt)&&(Xt=0),ot=Xt*y*nt/z,Xt=Xt*-z*zt/y,isNaN(ot)&&(ot=0),isNaN(Xt)&&(Xt=0),x=(x+ut)/2+gt*ot-Nt*Xt,b=(b+ct)/2+Nt*ot+gt*Xt,ct=E(1,0,(zt-ot)/y,(nt-Xt)/z),gt=(zt-ot)/y,ut=(nt-Xt)/z,zt=(-zt-ot)/y,ot=(-nt-Xt)/z,nt=E(gt,ut,zt,ot),zt=(gt*zt+ut*ot)/(Math.sqrt(gt*gt+ut*ut)*Math.sqrt(zt*zt+ot*ot)),-1>=zt?nt=Math.PI:1<=zt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,zt=y>z?z/y:1,y=Ln.jx(0,0,y>z?y:z,ct,ct+nt,!0),z=Ro.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,zt),$i.Ha(y,z),Ro.free(z),a.ae=y,a.ae}rn.Object.defineProperties(ys.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ai(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ai(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ai(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ai(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ai(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Ai(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Ai(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ai(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ai(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Mi(a,">= zero",ys,"radiusX"),this._isFrozen&&Ai(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Mi(a,">= zero",ys,"radiusY"),this._isFrozen&&Ai(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ai(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ai(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&Ai(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Ai(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ai(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),ys.prototype.equalsApprox=ys.prototype.Xa;var Ll=new jn(ys,"Move",0),ra=new jn(ys,"Line",1),gu=new jn(ys,"Bezier",2),bh=new jn(ys,"QuadraticBezier",3),xl=new jn(ys,"Arc",4),zh=new jn(ys,"SvgArc",4);ys.className="PathSegment",ys.Move=Ll,ys.Line=ra,ys.Bezier=gu,ys.QuadraticBezier=bh,ys.Arc=xl,ys.SvgArc=zh;function Cu(){this.H=null,this.xu=new Ue(0,0).freeze(),this.mt=new Ue(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}Cu.prototype.copy=function(){var a=new Cu;return this.clone(a)},Cu.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},Cu.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},Cu.prototype.So=function(a,y){var x=this.diagram;return x===null||Bd(x,a,y),y},Cu.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Bd(x,a,y),y.assign(x.Ps(y))),y},rn.Object.defineProperties(Cu.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),Cu.prototype.getMultiTouchDocumentPoint=Cu.prototype.Bz,Cu.prototype.getMultiTouchViewPoint=Cu.prototype.So,Cu.className="InputEvent";function wd(){this.H=null,this.xa="",this.ar=this.Lr=null}wd.prototype.copy=function(){var a=new wd;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},wd.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},rn.Object.defineProperties(wd.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),wd.className="DiagramEvent";function La(){this.Fm=Ma,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}La.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},La.prototype.copy=function(){var a=new La;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=On(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=On(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=On(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=On(y)&&typeof y.J=="function"?y.J():y,a},La.prototype.qb=function(a){a.classType===La&&(this.change=a)},La.prototype.toString=function(){var a="";return a=this.change===sh?a+"* ":this.change===Ma?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===sh?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Er(this.object)),this.oldValue!==null&&(a+=" old: "+Er(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Er(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},La.prototype.I=function(a){return a?this.oldValue:this.newValue},La.prototype.Dz=function(a){return a?this.oldParam:this.newParam},La.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},La.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},La.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},La.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},rn.Object.defineProperties(La.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===sh&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),La.prototype.redo=La.prototype.redo,La.prototype.canRedo=La.prototype.canRedo,La.prototype.undo=La.prototype.undo,La.prototype.canUndo=La.prototype.canUndo,La.prototype.getParam=La.prototype.Dz,La.prototype.getValue=La.prototype.I,La.prototype.clear=La.prototype.clear;var sh=new jn(La,"Transaction",-1),Ma=new jn(La,"Property",0),fl=new jn(La,"Insert",1),Ql=new jn(La,"Remove",2);La.className="ChangedEvent",La.Transaction=sh,La.Property=Ma,La.Insert=fl,La.Remove=Ql;function Jl(){this.o=new Bi().freeze(),this.xa="",this.j=!1}Jl.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var b=this.changes.M(x);b!==null&&(y+=`
`+b.toString())}}return y},Jl.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},Jl.prototype.canUndo=function(){return this.isComplete},Jl.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},Jl.prototype.canRedo=function(){return this.isComplete},Jl.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},Jl.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new gr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Ma&&b.object){var E=y.get(b.object);E||(E=new gr,y.set(b.object,E));var z=E.get(b.propertyName);z===null?E.set(b.propertyName,-1):(0<z&&a.cd(z,null),E.set(b.propertyName,x))}}for(x=y=0;x<a.count;x++)b=a.M(x),b!==null&&(x>y&&a.cd(y,b),y++);for(;a.length>y;)a.pop();a.freeze()}},rn.Object.defineProperties(Jl.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),Jl.prototype.optimize=Jl.prototype.ak,Jl.prototype.redo=Jl.prototype.redo,Jl.prototype.canRedo=Jl.prototype.canRedo,Jl.prototype.undo=Jl.prototype.undo,Jl.prototype.canUndo=Jl.prototype.canUndo,Jl.prototype.clear=Jl.prototype.clear,Jl.className="Transaction";function Bt(){this.Pt=new Pi,this.Jd=!1,this.u=new Bi().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Bi().freeze(),this.hl=new Bi,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Bt.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,b=0;b<x;b++)0<b&&(y+=" "),y+=this.nestedTransactionNames.M(b);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,b=0;b<x;b++)y+=`
`+this.history.M(b).toString(a-1);return y},Bt.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},Bt.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Yt=Bt.prototype,Yt.Xw=function(a){this.Pt.add(a)},Yt.Rx=function(a){this.Pt.remove(a)},Yt.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},Yt.eb=function(a){return a===void 0&&(a=""),pt(this,!0,a)},Yt.Kf=function(){return pt(this,!1,"")};function pt(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&er("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var nt=a.Ie.count;0<nt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(nt-1),a.Ie.freeze()),nt=a.hl.count,0<nt&&(z=a.hl.M(nt-1),a.hl.mb(nt-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Yt.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},Bt.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Bt.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){er("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Bt.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Bt.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){er("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Bt.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new La;for(b.change=sh,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Bt.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Jl);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||er("Change not within a transaction: "+x.toString()))}},Bt.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},rn.Object.defineProperties(Bt.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),Bt.prototype.handleChanged=Bt.prototype.Tu,Bt.prototype.redo=Bt.prototype.redo,Bt.prototype.undo=Bt.prototype.undo,Bt.prototype.canUndo=Bt.prototype.canUndo,Bt.prototype.discardHistoryAfterIndex=Bt.prototype.lx,Bt.prototype.rollbackTransaction=Bt.prototype.Kf,Bt.prototype.commitTransaction=Bt.prototype.eb,Bt.prototype.startTransaction=Bt.prototype.Ea,Bt.prototype.removeModel=Bt.prototype.Rx,Bt.prototype.addModel=Bt.prototype.Xw,Bt.prototype.clear=Bt.prototype.clear,Bt.className="UndoManager";function St(){Xo(this),this.H=Oh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Cu,this.Zr=-1}St.prototype.toString=function(){return this.name!==""?this.name+" Tool":dr(this.constructor)},St.prototype.updateAdornments=function(){},St.prototype.canStart=function(){return this.isEnabled},St.prototype.doStart=function(){},St.prototype.doActivate=function(){this.isActive=!0},St.prototype.doDeactivate=function(){this.isActive=!1},St.prototype.doStop=function(){},St.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},St.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},St.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},St.prototype.doMouseMove=function(){},St.prototype.doMouseUp=function(){this.stopTool()},St.prototype.doMouseWheel=function(){},St.prototype.canStartMultiTouch=function(){return!0},St.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ue.allocAt(NaN,NaN)),b=y.So(1,Ue.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var E=b.x-x.x,z=b.y-x.y;a.Jw=Math.sqrt(E*E+z*z),y.bubbles=!1}Ue.free(x),Ue.free(b)},St.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ue.allocAt(NaN,NaN)),b=y.So(1,Ue.allocAt(NaN,NaN));if(x.w()&&b.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var E=b.x-x.x,z=b.y-x.y;z=Math.sqrt(E*E+z*z)/a.Jw,E=new Ue((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var nt=a.commandHandler;if(z!==a.scale&&nt.canResetZoom(z)){var ot=a.zoomPoint;a.zoomPoint=E,nt.resetZoom(z),a.zoomPoint=ot}y.bubbles=!1}Ue.free(x),Ue.free(b)},St.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},St.prototype.doKeyUp=function(){},St.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},St.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},St.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(xs?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(xs?y.meta:y.control)||y.shift||a.clearSelection()}},St.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(E){return!E.layer.isTemporary});var x=this.diagram,b=x.lastInput;return a=x.ic(b.documentPoint,a,y),b.targetObject=a,_t(a,b,x),b.handled};function _t(a,y,x){if(y.handled=!1,a===null||a.If()){var b=0;y.left?b=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(b=3);var E="ObjectSingleClicked";if(a!==null){switch(b){case 1:E="ObjectSingleClicked";break;case 2:E="ObjectDoubleClicked";break;case 3:E="ObjectContextClicked"}b!==0&&x.R(E,a)}else{switch(b){case 1:E="BackgroundSingleClicked";break;case 2:E="BackgroundDoubleClicked";break;case 3:E="BackgroundContextClicked"}b!==0&&x.R(E)}if(a!==null)for(;a!==null;){switch(x=null,b){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,b){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}St.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,nt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var ot=z.mouseLeave;if(ot!==null&&(b===z||b!==null&&b.rg(z)||(ot(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=nt,y.handled=!1;b!==null&&(nt=b.mouseEnter,!(nt!==null&&(z===b||z!==null&&z.rg(b)||(nt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,nt="";z!==null&&(nt=z.cursor,nt==="");)z=z.panel;for(a.currentCursor=nt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},St.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},St.prototype.doCurrentObjectChanged=function(){},St.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var b=a.commandHandler,E=a.toolManager.mouseWheelBehavior;if(b!==null&&(E===Ce&&!y.shift||E===me&&y.control))(0<x?b.canIncreaseZoom():b.canDecreaseZoom())&&(E=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?b.increaseZoom():b.decreaseZoom(),a.zoomPoint=E),y.bubbles=!1;else if(E===Ce&&y.shift||E===me&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var nt=z.deltaX;z=z.deltaY;var ot="pixel";if(nt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(ot,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(ot,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:ot="pixel";break;case 1:ot="line";break;case 2:ot="page"}nt!==0&&a.allowHorizontalScroll&&(nt*=a.scrollHorizontalLineChange/16,a.scroll(ot,0<nt?"right":"left",Math.abs(nt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ot,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},St.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},St.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Ii(function(){x.doWaitAfter(b)},a)},St.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ne.clearTimeout(this.Zr),this.Zr=-1},St.prototype.doWaitAfter=function(){},St.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Ls);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},St.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var b=x.toolManager.dragSize,E=b.width;return b=b.height,x.firstInput.isTouchEvent&&(E+=6,b+=6),Math.abs(y.x-a.x)>E||Math.abs(y.y-a.y)>b},rn.Object.defineProperties(St.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Kn&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),St.prototype.startTransaction=St.prototype.Ea,St.className="Tool";function oe(){St.call(this),this.name="ToolManager",this.hb=new Bi,this.ob=new Bi,this.Hb=new Bi,this.F=this.V=850,this.o=new Gi(2,2).ja(),this.Ha=5e3,this.ia=me,this.u=Je,this.Mp=this.j=null,this.zj=-1}kn(oe,St),oe.prototype.initializeStandardTools=function(){},oe.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Ls&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},oe.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===fn&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===gn){y.bubbles=!0;return}if(this.gestureBehavior===fn)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===me?this.mouseWheelBehavior=Ce:this.mouseWheelBehavior===Ce&&(this.mouseWheelBehavior=me)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},oe.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===gn){y.bubbles=!0;return}if(this.gestureBehavior===fn)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,b=0;b<x;b++){var E=this.mouseMoveTools.M(b);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseMove());return}}qt(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function qt(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}oe.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Ls&&(y===a||y.rg(a))||this.hideToolTip()},oe.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},oe.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},oe.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Ls)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},oe.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Ls){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof vr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Ne.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Ii(function(){E.hideToolTip()},a)}},oe.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y=x.y+20/y.scale+b.height>E.bottom?x.y-(b.height+5/y.scale):x.y+20/y.scale,x.y<E.y&&(x.y=E.y),a.position=x}},oe.prototype.hideToolTip=function(){this.zj!==-1&&(Ne.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Ls?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof vr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},oe.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var b=this.mouseUpTools.M(x);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseUp());return}}a.doFocus(),this.doDeactivate()},oe.prototype.doMouseWheel=function(){this.standardMouseWheel()},oe.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},oe.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},oe.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var b=this.mouseDownTools.M(x);if(b.name===a)return b}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(b=this.mouseMoveTools.M(x),b.name===a)return b;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(b=this.mouseUpTools.M(x),b.name===a)return b;return null},oe.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,b=0;b<x;b++){var E=this.mouseDownTools.M(b);if(E.name===a)return y!==null?this.mouseDownTools.cd(b,y):this.mouseDownTools.mb(b),E}for(x=this.mouseMoveTools.length,b=0;b<x;b++)if(E=this.mouseMoveTools.M(b),E.name===a)return y!==null?this.mouseMoveTools.cd(b,y):this.mouseMoveTools.mb(b),E;for(x=this.mouseUpTools.length,b=0;b<x;b++)if(E=this.mouseUpTools.M(b),E.name===a)return y!==null?this.mouseUpTools.cd(b,y):this.mouseUpTools.mb(b),E;return null},oe.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},rn.Object.defineProperties(oe.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Ls?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),oe.prototype.replaceStandardTool=oe.prototype.gb;var me=new jn(oe,"WheelScroll",0),Ce=new jn(oe,"WheelZoom",1),Le=new jn(oe,"WheelNone",2),Je=new jn(oe,"GestureZoom",3),fn=new jn(oe,"GestureCancel",4),gn=new jn(oe,"GestureNone",5);oe.className="ToolManager",oe.WheelScroll=me,oe.WheelZoom=Ce,oe.WheelNone=Le,oe.GestureZoom=Je,oe.GestureCancel=fn,oe.GestureNone=gn;function En(){St.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Ue(NaN,NaN),this.Fr=new Ue,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Pi().freeze(),this.ia=new st,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var We;kn(En,St),En.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},En.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},En.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(xs?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},En.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),tn=null,this.isActive=!0,this.tl.set(a.position),vi(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Lu(a),sc(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,tn=this,yn=this.diagram,this.doSimulatedDragOut()))};function vi(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Zi?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new ri,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}En.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},En.prototype.Pd=function(a){return a===void 0?new lh(qo):this.isGridSnapEnabled?new lh(new Ue(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new lh(a.copy())},En.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ei(this),Qc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<We.count){for(var y=We,x=y.length,b=0;b<x;b++){var E=y.M(b);zi(E),gi(E),ei(E),E.diagram.ug()}y.clear()}zi(this),this.tl.h(NaN,NaN),yn!==null&&(yn.currentCursor=""),tn=yn=null,gi(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),jc(a,!0)},En.prototype.stopTransaction=function(){var a=this.diagram,y=St.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ei(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,mr(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function wi(){var a=tn;gi(a),Lr(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}En.prototype.doCancel=function(){gi(this),Lr(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},En.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},En.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Hn(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Lr(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new gr,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var z=y.I(E);z!==null&&(z.location=E.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)b=y.value,b instanceof Zi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,vi(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ff(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function gi(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof Zi&&(x.value.point=new Ue(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function zi(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function or(a,y,x){var b=a.diagram,E=a.startPoint,z=Ue.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Ue.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Lu(b),b.hk())}En.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&xh(b,a,y,this.dragOptions,x)};function Lr(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var b=x.key;b.Zc()&&(b.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(b=x.key,b instanceof Zi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Ff(b,-E.x,-E.y)}y.bd()}}function lo(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Or(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,nt=!1;try{if(x.skipsUndoManager=!0,nt=mr(a,E,b),!a.isActive&&tn===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof To)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&tn===null||(a.doDragOver(y,b),!a.isActive&&tn===null))return}finally{x.skipsUndoManager=z,nt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}En.prototype.findDragOverObject=function(a){var y=this;return Gh(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Ls||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},En.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function mr(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var nt=0;nt<E;nt++){var ot=a.Cg[nt],at=ot.mouseDragLeave;if(at!==null&&(at(y,ot,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&tn===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Di(E);for(E=a.Cg.length,x=0;x<E&&(nt=a.Cg[x],ot=nt.mouseDragEnter,ot===null||(ot(y,nt,z),b=!0,!y.handled));x++);return b}function Di(a){var y=a.panel;return y!==null?y:a instanceof $r&&!(a instanceof To)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Cr(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ut){return b.findValidLinkablePort(ut,x)});a=Ue.alloc();var z=1/0,nt=null;for(E=E.iterator;E.next();){var ot=E.value;if(ot.part!==null){var at=ot.ga(Eo,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return Ue.free(a),nt}function Or(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,nt=null;x.fromNode===null&&(z=Cr(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=Cr(a,x.i(x.pointsCount-1),!0),ot!==null&&(at=ot.part)),E.isValidLink(nt,z,at,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,z!==null&&(x.fromPortId=z.portId),x.toNode=at,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Fi(E,nt,z,at,ot):Fi(E,null,null,null,null)}}}}En.prototype.doDragOver=function(){};function qn(a,y){var x=a.diagram;a.dragsLink&&Or(a,!0),ei(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var nt=z.mouseDrop;if(nt!==null&&(nt(E,z),E.handled))break;oi(a,E,z),z=Di(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||tn!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof cr&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||tn!==null){for(a=ui.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof cr&&ye(x,b,a);ui.free(a)}}}function oi(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof To||(x=a.mouseDrop,x!==null&&x(y))}function ye(a,y,x){var b=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(b=!0),a=a.Nu(x,function(E){return E.part},function(E){return E instanceof Zi},!0,function(E){return E instanceof Zi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}En.prototype.doDropOnto=function(){},En.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(Hn(this,!1),sc(a,this.copiedParts),or(this,this.copiedParts,!1),Qc(a,this.copiedParts)):this.mayMove()?(gi(this),or(this,this.draggedParts,!0)):this.mayDragOut()?(Hn(this,!1),or(this,this.copiedParts,!1)):gi(this),lo(this,a.lastInput.documentPoint))}},En.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(gi(this),Hn(this,!0),sc(a,this.copiedParts),or(this,this.copiedParts,!1),Qc(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0}))):(y=!0,gi(this),this.mayMove()&&(or(this,this.draggedParts,!0),lo(this,a.lastInput.documentPoint))),this.Ym=!0,qn(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&we(this),a.Ya(),Qc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},En.prototype.simulatedMouseMove=function(a,y,x){if(tn===null)return!1;var b=tn.diagram;x instanceof Kn||(x=null);var E=yn;return x!==E&&(E!==null&&E!==b&&(E.ug(),tn.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),yn=x,x!==null&&x!==b&&(wi(),E=x.toolManager.findTool("Dragging"),E!==null&&(We.contains(E)||We.add(E),E.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===b||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(b=x.toolManager.findTool("Dragging"),b!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,b.doSimulatedDragOver()),!0)},En.prototype.simulatedMouseUp=function(a,y,x){if(tn===null)return!1;var b=yn,E=tn.diagram;if(x===null)return tn.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),tn.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;yn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(wi(),We.contains(b)||We.add(b),b.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Ue),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=tn,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function we(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof cr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}En.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(xs?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},En.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},En.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},En.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},En.prototype.Az=function(){return tn},En.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=tn;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},En.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),vu(a),a.animationManager.Cc(),a=tn,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},En.prototype.doSimulatedDragLeave=function(){var a=tn;a!==null&&a.doSimulatedDragOut(),this.doCancel()},En.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=tn;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Ye(this,y.draggedParts.Lf(),!1,a.firstInput),or(this,this.copiedParts,!1),lo(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},En.prototype.doSimulatedDrop=function(){var a=this.diagram,y=tn;if(y!==null){var x=y.diagram;if(y.Ym=!0,gi(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Ye(this,y.draggedParts.Lf(),!0,a.lastInput),or(this,this.copiedParts,!1);var b=new Pi;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),qn(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",b,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function Ye(a,y,x,b){if(a.copiedParts===null){var E=a.diagram;if(!E.isReadOnly&&!E.isModelReadOnly){E.skipsUndoManager=!x,E.partManager.addsToTemporaryLayer=!x,a.startPoint=b.documentPoint,x=E.Kj(y,E,!0);var z=ui.alloc();E=b=1/0;for(var nt=-1/0,ot=-1/0,at=y.iterator;at.next();){var ut=at.value;if(ut.isVisible()){var ct=ut.location;ut=ct.x,ct=ct.y,isNaN(ut)||isNaN(ct)||(ut<b&&(b=ut),ct<E&&(E=ct),ut>nt&&(nt=ut),ct>ot&&(ot=ct))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,nt-b,ot-E),b=z.x+z.width/2,E=z.y+z.height/2,ui.free(z),z=a.Fr,nt=new gr,ot=Ue.alloc(),at=y.iterator;at.next();)ut=at.value,ut instanceof Zi&&ut.canCopy()&&(ct=x.I(ut),ct!==null&&(ct.points=ut.points,Ff(ct,z.x-b,z.y-E),ct.suspendsRouting=!0,nt.add(ct,a.Pd())));for(y=y.iterator;y.next();)ut=y.value,ut.Zc()&&ut.canCopy()&&(at=x.I(ut),at!==null&&(ut=ut.location,ot.h(z.x-(b-ut.x),z.y-(E-ut.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));Ue.free(ot),a.copiedParts=nt,vi(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ff(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}En.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},En.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ue},rn.Object.defineProperties(En.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),En.prototype.getDraggingSource=En.prototype.Az;var tn=null,yn=null;En.className="DraggingTool",We=new Bi,Xi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),oe.prototype.doCancel=function(){tn!==null&&tn.doCancel(),St.prototype.doCancel.call(this)};function on(){St.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Zi,y=new ko;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new ko,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new cr,y=new ko,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Gs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new cr,y=new ko,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Gs,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new gr,this.Of=this.gj=this.Pf=null}kn(on,St),on.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},on.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=Gi.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,Gi.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Eo,z=Ue.alloc(),x.location=y.ga(Eo,z),Ue.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},on.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Gs,y.fromSpot=Xa,y.toSpot=Xa),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},on.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},on.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof cr){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},on.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof cr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof cr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},on.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,b=this.portGravity;0>=b&&(b=.1);var E=this,z=y.og(x,b,function(gt){return E.findValidLinkablePort(gt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,ot=nt.part;if(ot instanceof cr){var at=nt.ga(Eo,Ue.alloc()),ut=x.x-at.x,ct=x.y-at.y;Ue.free(at),at=ut*ut+ct*ct,at<b&&(ut=this.validPortsCache.I(nt),ut!==null?ut&&(y=nt,b=at):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ot,nt)||!a&&this.isValidLink(ot,nt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(nt,!0),y=nt,b=at):this.validPortsCache.add(nt,!1))}}return y!==null&&(x=y.part,x instanceof cr&&(x.layer===null||x.layer.allowLink))?y:null},on.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},on.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},on.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},on.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof cr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof cr))return!1;for(y=y.portId,y===null&&(y=""),y=b.Sd(y);y.next();)if(b=y.value,b.fromNode===x&&b.fromPortId===a)return!0;return!1},on.prototype.isValidLink=function(a,y,x,b){if(!this.isValidFrom(a,y)||!this.isValidTo(x,b)||!(y===null||b===null||(y.fromLinkableSelfNode&&b.toLinkableSelfNode||!this.isInSameNode(y,b))&&(y.fromLinkableDuplicates&&b.toLinkableDuplicates||!this.isLinked(y,b)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var E=a.linkValidation;if(E!==null&&!E(a,y,x,b,this.originalLink))return!1}return x!==null&&(E=x.linkValidation,E!==null&&!E(a,y,x,b,this.originalLink))?!1:(E=this.linkValidation,E!==null?E(a,y,x,b,this.originalLink):!0)},on.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new Pi;return b.add(a),Dn(this,x,y,b)};function Dn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Dn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Dn(a,y.labeledLink,x,b))))}on.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==ac){if(b===dA){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=y.linksConnected;b.next();){var E=b.value;if(E!==x&&E.isTreeLink&&E.toNode===y)return!1}return!Rn(this,a,y,x,!0)}if(b===MA){if(b=x||this.temporaryLink,b!==null&&!b.isTreeLink)return!0;for(b=a.linksConnected;b.next();)if(E=b.value,E!==x&&E.isTreeLink&&E.fromNode===a)return!1;return!Rn(this,a,y,x,!0)}if(b===Fh)return a===y?a=!0:(b=new Pi,b.add(y),a=ti(this,b,a,y,x)),!a;if(b===lc)return!Rn(this,a,y,x,!1);if(b===LA)return a===y?a=!0:(b=new Pi,b.add(y),a=ze(this,b,a,y,x)),!a}return!0};function Rn(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var nt=z.value;if(nt!==b&&(!E||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&Rn(a,nt,x,b,E)))return!0}return!1}function ti(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&ti(a,y,nt,b,E)))return!0}return!1}function ze(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var nt=z.value;if(nt!==E){var ot=nt.fromNode;if(nt=nt.toNode,ot=ot===x?nt:ot,ot!==x&&ze(a,y,ot,b,E))return!0}}return!1}rn.Object.defineProperties(on.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),on.className="LinkingBaseTool";function cn(){on.call(this),this.name="Linking",this.V={},this.F=null,this.K=vn,this.Xd=null}kn(cn,on),cn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},cn.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof cr)))return null;var x=this.direction;if(x===vn||x===Gn){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===vn||x===Yn)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},cn.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof cr&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof cr&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},cn.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},cn.prototype.doStop=function(){on.prototype.doStop.call(this),this.startObject=null},cn.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ot=nt.part;ot instanceof cr&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,E=nt):(y=ot,x=nt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(nt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},cn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Zi)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},cn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},cn.prototype.doNoLink=function(){},rn.Object.defineProperties(cn.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var vn=new jn(cn,"Either",0),Gn=new jn(cn,"ForwardsOnly",0),Yn=new jn(cn,"BackwardsOnly",0);cn.className="LinkingTool",cn.Either=vn,cn.ForwardsOnly=Gn,cn.BackwardsOnly=Yn;function ri(){on.call(this),this.name="Relinking";var a=new ko;a.figure="Diamond",a.desiredSize=Js,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new ko,a.figure="Diamond",a.desiredSize=Js,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ui}kn(ri,on),ri.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Zi){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var b=a.selectionObject;b!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(b,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(b=a.selectionObject,b!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&b.actualBounds.w()&&b.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(b,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},ri.prototype.makeAdornment=function(a,y){var x=new Ls;return x.type=fi.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ri.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},ri.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Ls&&x.adornedPart instanceof Zi))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=Ms),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ms),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},ri.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Up||x===Lf)&&(x=Xh),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},ri.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},ri.prototype.doStop=function(){on.prototype.doStop.call(this),this.handle=null},ri.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var nt=this.targetPort.part;nt instanceof cr&&(this.isForwards?(b=nt,E=this.targetPort):(y=nt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},ri.prototype.reconnectLink=function(a,y,x,b){return x=x!==null&&x.portId!==null?x.portId:"",b?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},ri.prototype.doNoRelink=function(){};function Fi(a,y,x,b,E){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),b!==null?(a.copyPortProperties(b,E,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}rn.Object.defineProperties(ri.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Ls))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ri.className="RelinkingTool",Xi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Xi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function ci(){St.call(this),this.name="LinkReshaping";var a=new ko;a.figure="Rectangle",a.desiredSize=Fa,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new ko,a.figure="Diamond",a.desiredSize=Js,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ue,this.Yq=new Bi}kn(ci,St),ci.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Yi},ci.prototype.om=function(a,y){a.reshapingBehavior=y},ci.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Zi){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},ci.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Ls,E.type=fi.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==Yc)for(var ot=x+nt;ot<z-nt;ot++){var at=this.makeResegmentHandle(a,ot);at!==null&&(at.segmentIndex=ot,at.segmentFraction=.5,at.fromMaxLinks=999,E.add(at))}for(nt=x+1;nt<z;nt++)if(ot=this.makeHandle(a,nt),ot!==null){if(ot.segmentIndex=nt,nt!==x)if(nt===x+1&&b){at=y.i(x);var ut=y.i(x+1);Ln.B(at.x,ut.x)&&Ln.B(at.y,ut.y)&&(ut=y.i(x-1)),Ln.B(at.x,ut.x)?(this.om(ot,Fr),ot.cursor="n-resize"):Ln.B(at.y,ut.y)&&(this.om(ot,Ar),ot.cursor="w-resize")}else nt===z-1&&b?(at=y.i(z-1),ut=y.i(z),Ln.B(at.x,ut.x)&&Ln.B(at.y,ut.y)&&(at=y.i(z+1)),Ln.B(at.x,ut.x)?(this.om(ot,Fr),ot.cursor="n-resize"):Ln.B(at.y,ut.y)&&(this.om(ot,Ar),ot.cursor="w-resize")):nt!==z&&(this.om(ot,ro),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},ci.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},ci.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},ci.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},ci.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Zi){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},ci.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},ci.prototype.stopTransaction=function(){var a=this.diagram,y=St.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ci.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},ci.prototype.getResegmentingPoint=function(){return this.handle.ga(Eo)},ci.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},ci.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var nt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Ji(this,nt,b,E,z,!0)||Ji(this,nt,b,E,z,!1))){var ot=y.points.copy();Ji(this,nt,b,E,z,!0)?(ot.cd(x-2,new Ue(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new Ue(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new Ue((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new Ue((z.x+nt.x)/2,z.y))),ot.mb(x),ot.mb(x-1),y.points=ot,y.Wb()}else nt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Ji(this,b,E,z,nt,!0)||Ji(this,b,E,z,nt,!1))&&(ot=y.points.copy(),Ji(this,b,E,z,nt,!0)?(ot.cd(x-1,new Ue(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new Ue(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new Ue((b.x+nt.x)/2,b.y)),ot.cd(x+2,new Ue((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=Ue.alloc(),Ln.qh(b.x,b.y,z.x,z.y,E.x,E.y,nt)&&nt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Ue.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ji(a,y,x,b,E,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-b.y)<a.resegmentingDistance&&Math.abs(b.y-E.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-b.x)<a.resegmentingDistance&&Math.abs(b.x-E.x)<a.resegmentingDistance}ci.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===Fr?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Ar&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,b===Fr?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===Ar&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),nt=y.i(b+1);Ln.B(z.x,E.x)&&Ln.B(E.y,nt.y)?(Ln.B(z.x,y.i(b-2).x)&&!Ln.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ln.B(nt.y,y.i(b+2).y)&&!Ln.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):Ln.B(z.y,E.y)&&Ln.B(E.x,nt.x)?(Ln.B(z.y,y.i(b-2).y)&&!Ln.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ln.B(nt.x,y.i(b+2).x)&&!Ln.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ln.B(z.x,E.x)&&Ln.B(E.x,nt.x)?(Ln.B(z.x,y.i(b-2).x)&&!Ln.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Ln.B(nt.x,y.i(b+2).x)&&!Ln.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Ln.B(z.y,E.y)&&Ln.B(E.y,nt.y)&&(Ln.B(z.y,y.i(b-2).y)&&!Ln.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Ln.B(nt.y,y.i(b+2).y)&&!Ln.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(Eo,Ue.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Ue.alloc()),y.L(0,b.x,b.y),Ue.free(z),Ue.free(b)),b=y.toNode,E=y.toPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===y.pointsCount-2&&y.computeSpot(!1,E).Mc()&&(x=E.ga(Eo,Ue.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Ue.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ue.free(x),Ue.free(a));y.zf()},ci.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case ro:return a;case Fr:return new Ue(y.i(x).x,a.y);case Ar:return new Ue(a.x,y.i(x).y);default:case Yi:return y.i(x)}},rn.Object.defineProperties(ci.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ls))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),ci.prototype.setReshapingBehavior=ci.prototype.om,ci.prototype.getReshapingBehavior=ci.prototype.Ru;var Yi=new jn(ci,"None",0),Ar=new jn(ci,"Horizontal",1),Fr=new jn(ci,"Vertical",2),ro=new jn(ci,"All",3);ci.className="LinkReshapingTool",ci.None=Yi,ci.Horizontal=Ar,ci.Vertical=Fr,ci.All=ro,Xi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function Ti(){St.call(this),this.name="Resizing",this.o=new Gi(1,1).freeze(),this.j=new Gi(9999,9999).freeze(),this.yg=new Gi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new ko;a.alignmentFocus=Eo,a.figure="Rectangle",a.desiredSize=Fa,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ue,this.Dw=new Gi,this.Tn=new Ue,this.rt=new Gi(0,0),this.qt=new Gi(1/0,1/0),this.pt=new Gi(1,1)}kn(Ti,St),Ti.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Zi)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),eg(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},Ti.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Ls,y.type=fi.Spot,y.locationSpot=Eo;var x=new Zh;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ol)),y.add(this.makeHandle(a,au)),y.add(this.makeHandle(a,Yl)),y.add(this.makeHandle(a,qa)),y.add(this.makeHandle(a,Ka)),y.add(this.makeHandle(a,el)),y.add(this.makeHandle(a,jl)),y.add(this.makeHandle(a,ca))}else if(ou(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ti.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},Ti.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=Eo),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof fi)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},Ti.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Ti.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},Ti.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},Ti.prototype.stopTransaction=function(){var a=this.diagram,y=St.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ti.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},Ti.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Ue.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Ue.free(E)}},Ti.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,b=this.pt,E=this.adornedObject.qs(a.lastInput.documentPoint,Ue.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Ue.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},Ti.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof To){var b=new Bi;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new st;E.dragsMembers=!1}y.moveParts(b,this.oppositePoint.copy().re(x),!0,E)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},Ti.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Eo);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ut=nt.x+nt.width,ct=nt.y+nt.height,gt=1;if(!z){gt=nt.width;var Nt=nt.height;0>=gt&&(gt=1),0>=Nt&&(Nt=1),gt=Nt/gt}return Nt=Ue.alloc(),Ln.No(a.x,a.y,ot,at,E.width,E.height,Nt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Nt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=Math.max(ut-a.x,x.width),a.y=Math.max(Nt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=Math.max(ct-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.x=ut-a.width,a.y=ct-a.height)):1<=y.y?(a.x=Math.max(Nt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=Math.max(ut-a.x,x.width),a.height=Math.max(Math.min(Nt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.x=ut-a.width)):(a.x=Math.max(Nt.x,ut-b.width),a.x=Math.min(a.x,ut-x.width),a.width=ut-a.x,z||(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt,a.y=at+.5*(ct-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Nt.x-ot,b.width),x.width),a.y=Math.max(Nt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=Math.max(ct-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width),a.y=ct-a.height)):1<=y.y?(a.width=Math.max(Math.min(Nt.x-ot,b.width),x.width),a.height=Math.max(Math.min(Nt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt):(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width))):(a.width=Math.max(Math.min(Nt.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(gt*a.width,b.height),x.height),a.width=a.height/gt,a.y=at+.5*(ct-at-a.height))):0>=y.y?(a.y=Math.max(Nt.y,ct-b.height),a.y=Math.min(a.y,ct-x.height),a.height=ct-a.y,z||(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width,a.x=ot+.5*(ut-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Nt.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/gt,b.width),x.width),a.height=gt*a.width,a.x=ot+.5*(ut-ot-a.width))),Ue.free(Nt),a},Ti.prototype.computeReshape=function(){var a=Ei;return this.adornedObject instanceof ko&&(a=Jg(this.adornedObject)),!(a===Sr||this.diagram.lastInput.shift)},Ti.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},Ti.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},Ti.prototype.computeCellSize=function(){var a=new Gi(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},rn.Object.defineProperties(Ti.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Ls))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ls)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),Ti.className="ResizingTool",Xi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Jn(){St.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ue,this.ue=null;var a=new ko;a.figure="Ellipse",a.desiredSize=Js,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ue(NaN,NaN),this.u=0,this.F=50}kn(Jn,St),Jn.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},Jn.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Ls,y.type=fi.Position,y.locationSpot=Eo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(ou(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Jn.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Jn.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},Jn.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(Eo)},Jn.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var b=this.handleDistance;return x===0?y.x=a.naturalBounds.width+b:x===45?(y.x=a.naturalBounds.width+b,y.y=a.naturalBounds.height+b):x===90?y.y=a.naturalBounds.height+b:x===135?(y.x=-b,y.y=a.naturalBounds.height+b):x===180?y.x=-b:x===225?(y.x=-b,y.y=-b):x===270?y.y=-b:x===315&&(y.x=a.naturalBounds.width+b,y.y=-b),a.ga(y)},Jn.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ue(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Jn.prototype.stopTransaction=function(){var a=this.diagram,y=St.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Jn.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Jn.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Jn.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Jn.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,b=y.rotateObject;(x===b||x.rg(b))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Jn.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},rn.Object.defineProperties(Jn.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Ls))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Ls)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Jn.className="RotatingTool",Xi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function xo(){St.call(this),this.name="ClickSelecting"}kn(xo,St),xo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},xo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},xo.className="ClickSelectingTool";function br(){St.call(this),this.name="Action",this.pk=null}kn(br,St),br.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},br.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},br.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},br.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},br.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},br.prototype.doStop=function(){this.pk=null},br.className="ActionTool";function ar(){St.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ue(0,0)}kn(ar,St),ar.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},ar.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},ar.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof $r)x.Zc()&&(ou(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);On(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Ue.allocAt(a.x,a.y);this.isGridSnapEnabled&&_c(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ue.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},rn.Object.defineProperties(ar.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),ar.className="ClickCreatingTool";function lr(){St.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new $r;a.layerName="Tool",a.selectable=!1;var y=new ko;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}kn(lr,St),lr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},lr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},lr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},lr.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=Gi.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Gi.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},lr.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},lr.prototype.computeBoxBounds=function(){var a=this.diagram;return new ui(a.firstInput.documentPoint,a.lastInput.documentPoint)},lr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),xs?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new Bi,y=y.selection.iterator;y.next();){var b=y.value;a.contains(b)||x.add(b)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},rn.Object.defineProperties(lr.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),lr.className="DragSelectingTool";function nr(){St.call(this),this.name="Panning",this.Xt=new Ue,this.xy=new Ue,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ne.document,"scroll",a.Kw,!1),a.stopTool()}}kn(nr,St),nr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},nr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Ne.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},nr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},nr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},nr.prototype.doMouseMove=function(){this.move()},nr.prototype.doMouseUp=function(){this.move(),this.stopTool()},nr.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,b=a.lastInput.documentPoint,E=y.x+x.x-b.x;x=y.y+x.y-b.y,a.allowHorizontalScroll||(E=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(E,x)}},rn.Object.defineProperties(nr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),nr.className="PanningTool",Xi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Xi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Xi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Xi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Xi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function vr(){this.F=this.u=this.j=this.o=null}rn.Object.defineProperties(vr.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),vr.className="HTMLInfo";function Zr(a,y,x){this.text=a,this.hx=y,this.visible=x}Zr.className="ContextMenuButtonInfo";function co(){St.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ue,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}kn(co,St);function po(a){var y=new vr;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},is=y,a.tu=function(){a.stopTool()},y=ni("div");var x=ni("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var b=ni("style");Ne.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",Rr,!1),b.addEventListener(y,"selectstart",Rr,!1),b.addEventListener(x,"contextmenu",Rr,!1)),y.className="goCXforeground",x.className="goCXbackground",Ne.document.body&&(Ne.document.body.appendChild(y),Ne.document.body.appendChild(x)),Wo=y,pa=x,yo=!0}function Rr(a){return a.preventDefault(),!1}co.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},co.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},co.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},co.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Kn||(a instanceof pn?b=a:b=y.ic(x.documentPoint,null,function(E){return!E.layer.isTemporary})),b!==null){for(a=b;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return b.part}else if(y.contextMenu!==null)return y;return null},co.prototype.doActivate=function(){},co.prototype.doMouseDown=function(){if(St.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Ls){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Do(this)},co.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Ls){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Do(this)};function Do(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof vr||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(hs(a,!0),a.isActive||a.stopTool())}co.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function hs(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=is,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof pn?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Ls&&!a.currentContextMenu.visible&&a.stopTool()}}co.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},co.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Ls){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof vr&&a.show(y,x,this);this.currentContextMenu=a},co.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),b=a.measuredBounds,E=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=b.width),x.x+b.width>E.right&&(x.x-=b.width+5/y.scale),x.x<E.x&&(x.x=E.x),x.y+b.height>E.bottom&&(x.y-=b.height+5/y.scale),x.y<E.y&&(x.y=E.y),a.position=x}},co.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Ls?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof vr&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function $o(a){var y=new Bi;return y.add(new Zr("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Zr("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Zr("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Zr("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Zr("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Zr("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Zr("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Zr("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Zr("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Zr("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Zr("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Zr("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Zr("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}co.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=$o(this)),Wo.innerHTML="",pa.addEventListener("pointerdown",this.tu,!1);var y=this,x=ni("ul");x.className="goCXul",Wo.appendChild(x),x.innerHTML="";for(var b=this.jt.iterator;b.next();){var E=b.value,z=E.visible;if(typeof E.hx=="function"&&(typeof z!="function"||z(a))){z=ni("li"),z.className="goCXli";var nt=ni("a");nt.className="goCXa",nt.href="#",nt.ky=E.hx,nt.addEventListener("pointerdown",function(ot){return this.ky(a),y.stopTool(),ot.preventDefault(),!1},!1),nt.textContent=E.text,z.appendChild(nt),x.appendChild(z)}}Wo.style.display="block",pa.style.display="block"},co.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===is){Wo.style.display="none",pa.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(pa,"pointerdown",this.tu,!1),this.currentContextMenu=null}},rn.Object.defineProperties(co.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Ls?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return yo===!1&&is===null&&vs&&po(this),is},set:function(a){a===null&&(yo=!0),is=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var is=null,yo=!1,pa=null,Wo=null;co.className="ContextMenuTool",Xi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function rs(){St.call(this),this.name="TextEditing",this.Zh=new oa,this.ia=null,this.V=es,this.vj=null,this.qa=oo,this.u=1,this.F=!0,this.o=null,this.j=new vr,this.kt=null,Cs(this,this.j)}kn(rs,St);function Cs(a,y){if(vs){var x=ni("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var b=a.Lx(this.value);this.style.width=20+b.measuredBounds.width*this.wA+"px",this.rows=b.lineCount}},!1),x.addEventListener("keydown",function(b){if(!b.isComposing&&a.textBlock!==null){var E=b.key;E==="Enter"?(a.textBlock.isMultiline===!1&&b.preventDefault(),a.acceptText(zo)):E==="Tab"?(a.acceptText(Qo),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==oo){var b=a.kt;a.qa===Go&&(a.qa=aa),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==oo){var b=a.kt;typeof b.focus=="function"&&b.focus(),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(b,E,z){if(b instanceof oa&&z instanceof rs)if(z.state===zl)x.style.border="3px solid red",x.focus();else{var nt=b.ga(Eo),ot=E.position,at=E.scale,ut=b.Df()*at;ut<z.minimumEditorScale&&(ut=z.minimumEditorScale);var ct=b.naturalBounds.width*ut+6,gt=b.naturalBounds.height*ut+2,Nt=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ut,gt=ot.y*gt-ot.y*at+ot.offsetY-(.5*gt-.5*at)-at/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*ut+"%",x.style.lineHeight="normal",x.style.width=ct+"px",x.style.left=(Nt-ct/2|0)-1+"px",x.style.top=(nt+gt|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=ut,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}rs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Ps&&Ps!==this&&(Ps.acceptText($s),Ps&&Ps!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof oa&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===es&&!y.isSelected||this.starting===Os&&2>a.lastInput.clickCount)):!1},rs.prototype.doStart=function(){Ps=this,this.textBlock!==null&&this.doActivate()},rs.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof oa&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Go;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new ui(this.textBlock.ga(ol),this.textBlock.ga(Yl));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},rs.prototype.doCancel=function(){this.stopTool()},rs.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},rs.prototype.doMouseDown=function(){this.isActive&&this.acceptText($s)},rs.prototype.acceptText=function(a){switch(a){case $s:this.qa===Ml?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Go||this.qa===zl||this.qa===aa)&&(this.qa=Us,qs(this));break;case Ua:case zo:case Qo:(zo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Go||this.qa===zl||this.qa===aa)&&(this.qa=Us,qs(this))}};function qs(a){var y=a.textBlock,x=a.diagram,b=a.currentTextEditor;if(y!==null&&b!==null){var E=y.text,z="";b.valueFunction!==null&&(z=b.valueFunction()),a.isValidText(y,E,z)?(a.Ea(a.name),a.qa=Ml,a.transactionResult=a.name,y.text=z,a.doSuccess(E,z),x!==null&&x.R("TextEdited",y,E),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=zl,a.doError(E,z))}}rs.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},rs.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},rs.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=oo,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},rs.prototype.doStop=function(){Ps=null},rs.prototype.isValidText=function(a,y,x){var b=this.textValidation;return b!==null&&!b(a,y,x)?!1:(b=a.textValidation,!!(b===null||b(a,y,x)))},rs.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},rn.Object.defineProperties(rs.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),rs.prototype.measureTemporaryTextBlock=rs.prototype.Lx;var Ua=new jn(rs,"LostFocus",0),$s=new jn(rs,"MouseDown",1),Qo=new jn(rs,"Tab",2),zo=new jn(rs,"Enter",3),gs=new jn(rs,"SingleClick",0),es=new jn(rs,"SingleClickSelected",1),Os=new jn(rs,"DoubleClick",2),oo=new jn(rs,"StateNone",0),Go=new jn(rs,"StateActive",1),aa=new jn(rs,"StateEditing",2),Us=new jn(rs,"StateValidating",3),zl=new jn(rs,"StateInvalid",4),Ml=new jn(rs,"StateValidated",5),Ps=null;rs.className="TextEditingTool",rs.LostFocus=Ua,rs.MouseDown=$s,rs.Tab=Qo,rs.Enter=zo,rs.SingleClick=gs,rs.SingleClickSelected=es,rs.DoubleClick=Os,rs.StateNone=oo,rs.StateActive=Go,rs.StateEditing=aa,rs.StateValidating=Us,rs.StateInvalid=zl,rs.StateValidated=Ml,Xi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ua(a){Ru||(pu(),Ru=!0),this.H=Oh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=$u,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Pi,this.ce=new Ha,this.ce.Yd=this,this.Ei=new Pi,this.pu=new Pi,this.Sr=new Pi,this.pr=new Pi,a&&Object.assign(this,a)}ua.prototype.Xe=function(a){this.H=a},ua.prototype.canStart=function(){return!0};function Ul(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),Hl(a.H),a.zb=!0)}function fo(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===$u?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===Yu&&y.vc.clear(),a.Qw=!!(a.Pk===Ah&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Bu(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Ga&&b!==null&&(delete b.start.scale,delete b.end.scale),Ne.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Lu(x),Kd(x),a.zb=!1,y.start(),y.bc&&(ka(a),x.Ya(),Cc(y,0),vu(x,!0),$a(a),x.R("AnimationStarting",a)))}))}}function Ra(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Gl(a,y,x,b){a.isTicking||Ra(a)||y instanceof Zi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Yt=ua.prototype,Yt.fv=function(a){return this.ce.fv(a)},Yt.Xu=function(a){return this.ce.Xu(a)};function ta(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var nt=z.value;if(nt.bc!==!1){t:if(0<nt.yl.count)var ot=!0;else{for(ot=nt.vc.iterator;ot.next();){var at=ot.key;if(at instanceof pn&&at.diagram!==null||at instanceof Kn){ot=!0;break t}}ot=!1}ot?vh(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ka(E),vu(E.H),$a(E)),Ne.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ne.requestAnimationFrame(function(){x()}))}function la(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ka(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function $a(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Yt.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),Bu(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Bu(y,this.H)},Yt.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},Yt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ta(this,a))},Yt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Rl(this.ce,y,"position",y.position,y.position),Ta(this,a))};function ll(a,y,x){!a.zb||y.D(x)||Ra(a)||(a.H.pi||(y=x.copy()),Rl(a.ce,a.H,"position",y,x))}function Rs(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ta(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Sl(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],nt=a[1],ot=a[2];a=a[3];var at=y[0],ut=y[1],ct=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ut):(ct===0||ct===100)&&(at=z,ut=nt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,nt=E(x,nt,ut-nt,b),ot=E(x,ot,ct-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+ot+"%, "+x+")"}function pu(){function a(x,b,E,z,nt,ot){x.position=new Ue(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new gr;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new Ue(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("location",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!0):x.location=new Ue(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:placeholder",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new Ue(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:nodeCollapse",function(x,b,E,z,nt,ot){var at=x.actualBounds,ut=E.actualBounds;E=ut.x+ut.width/2-at.width/2,at=ut.y+ut.height/2-at.height/2,nt<ot?x.mm(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot),!1):x.position=new Ue(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot))}),y.add("desiredSize",function(x,b,E,z,nt,ot){x.desiredSize=new ui(z(nt,b.width,E.width-b.width,ot),z(nt,b.height,E.height-b.height,ot))}),y.add("width",function(x,b,E,z,nt,ot){x.width=z(nt,b,E-b,ot)}),y.add("height",function(x,b,E,z,nt,ot){x.height=z(nt,b,E-b,ot)}),y.add("fill",function(x,b,E,z,nt,ot){x.fill=Sl(b,E,nt,ot,z)}),y.add("stroke",function(x,b,E,z,nt,ot){x.stroke=Sl(b,E,nt,ot,z)}),y.add("strokeWidth",function(x,b,E,z,nt,ot){x.strokeWidth=z(nt,b,E-b,ot)}),y.add("strokeDashOffset",function(x,b,E,z,nt,ot){x.strokeDashOffset=z(nt,b,E-b,ot)}),y.add("background",function(x,b,E,z,nt,ot){x.background=Sl(b,E,nt,ot,z)}),y.add("areaBackground",function(x,b,E,z,nt,ot){x.areaBackground=Sl(b,E,nt,ot,z)}),y.add("opacity",function(x,b,E,z,nt,ot){x.opacity=z(nt,b,E-b,ot)}),y.add("scale",function(x,b,E,z,nt,ot){x.scale=z(nt,b,E-b,ot)}),y.add("angle",function(x,b,E,z,nt,ot){x.angle=z(nt,b,E-b,ot)}),uu=y}rn.Object.defineProperties(ua.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Mi(a,">= 1",ua,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),ua.prototype.stopAnimation=ua.prototype.Cc;var uu=null,Ru=!1,$u=new jn(ua,"Default",1),Ah=new jn(ua,"AnimateLocations",2),Yu=new jn(ua,"None",3);ua.className="AnimationManager",ua.defineAnimationEffect=function(a,y){Ru||(pu(),Ru=!0),uu.add(a,y)},ua.Default=$u,ua.AnimateLocations=Ah,ua.None=Yu;function Ha(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=yh,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=qo,this.vc=new gr,this.Tt=new gr,this.yl=new Pi,this.Ut=new Pi,this.dw=pc,a&&Object.assign(this,a)}Ha.prototype.suspend=function(){this.Xk=!0},Ha.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,vh(this,!0),ka(this.Yd),vu(this.H),$a(this.Yd),this.H.redraw()};function Bu(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Yt=Ha.prototype,Yt.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof Kn?a=x:x instanceof pn&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===$u&&this===y.defaultAnimation&&(this.Lp=rc,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Fd),ka(y),this.yl.each(function(b){b.data=null,a.add(b)}),$a(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ta(y,this),this)},Yt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Yt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Kn?this.H=a:a instanceof pn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof $r){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Rl(this,a,y,x,b,E),this};function Rl(a,y,x,b,E,z){var nt=a.vc;if(y instanceof Kn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(Fc(b),Vf(),b=[Ri.j,Ri.u,Ri.o,Ri.F],Fc(E),Vf(),E=[Ri.j,Ri.u,Ri.o,Ri.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ut=ot.end;at[x]===void 0&&(at[x]=il(b)),ut[x]=il(E)}else at={},ut={},at[x]=il(b),ut[x]=il(E),ot=at.position,y instanceof pn&&ot instanceof Ue&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ut.position),ot=new oc(at,ut,z),nt.add(y,ot);nt=at[x],nt instanceof Ue&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof $r?ot.Ku.location=il(y.location):z&&(ot.Ku[x]=il(b))}function il(a){return a instanceof Ue||a instanceof Gi?a.copy():a}Yt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Yt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function vh(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var b=+new Date,E=b>a.cn?a.Gd:b-a.Qd;y&&(E=a.gw,E<a.Gd?(a.Qd=+new Date-E,a.cn=a.Qd+a.Gd):E=a.Gd),ka(x),Cc(a,E),vu(a.H,!0),$a(x),b>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function Cc(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof pn&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=uu,ut;for(ut in nt)ut==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ut)===null||at.get(ut)(z,ot[ut],nt[ut],a.Lp,y,x,a)}}}Yt.stop=function(){return this.bc?(this.Ml(!0),this):this},Yt.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,ka(x);for(var b=this.vc,E=this.yl.iterator;E.next();)y.remove(E.value);for(E=this.Ut.iterator;E.next();)E.value.v();E=this.ho,b=b.iterator;for(var z=uu;b.next();){var nt=b.key,ot=b.value,at=E?ot.end:ot.start,ut=E?ot.start:ot.end,ct=ot.Ku,gt;for(gt in ut)if(z.get(gt)!==null){var Nt=gt;!ot.Hu||Nt!=="position:nodeCollapse"&&Nt!=="position:placeholder"||(Nt="position"),z.get(Nt)(nt,at[gt],ct[gt]!==void 0?ct[gt]:ot.Hu?at[gt]:ut[gt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ct.location!==void 0&&nt instanceof $r&&(nt.location=ct.location),ot.nv&&nt instanceof $r&&nt.Zb(!1)}if(y.As.clear(),jc(y,!1),y.Ya(),y.N(),vu(y,!0),x.defaultAnimation===this){for(gt=x.pr.iterator;gt.next();)E=gt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}vu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),$a(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Bu(this,null),x.Ml(this),y.$b())}},Yt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof To&&(b=y.placeholder),b!==null?(x=b.ga(ol),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ue(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof To)for(a=a.memberParts;a.next();)b=a.value,b instanceof cr&&this.Cj(b,y)},Yt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof To&&(x=y.placeholder),x!==null){var b=x.ga(ol);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof To)for(a=a.memberParts;a.next();)b=a.value,b instanceof cr&&this.Aj(b,y)}},Yt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},rn.Object.defineProperties(Ha.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Mi(a,">= 1",Ha,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:mn("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),Ha.prototype.getTemporaryState=Ha.prototype.Ez,Ha.prototype.stop=Ha.prototype.stop,Ha.prototype.add=Ha.prototype.add,Ha.prototype.addTemporaryPart=Ha.prototype.Iy;function yh(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function rc(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Ha.className="Animation",Ha.EaseLinear=function(a,y,x,b){return x*a/b+y},Ha.EaseInOutQuad=yh,Ha.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Ha.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Ha.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Ha.EaseOutExpo=rc;function oc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}oc.className="AnimationState";function wh(a,y,x){this.xd=null,this.rf=a,this.so=x||Cl,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ca))}wh.prototype.copy=function(){var a=new wh(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function da(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}rn.Object.defineProperties(wh.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Cl=new jn(wh,"Default",1),Ca=new jn(wh,"Immediate",2),gl=new jn(wh,"Bundled",3);wh.className="AnimationTrigger",wh.Default=Cl,wh.Immediate=Ca,wh.Bundled=gl;function Aa(a){Xo(this),this.H=null,this.Pa=new Bi,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Yt=Aa.prototype,Yt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Co(x)}a.clear(),this.Zq.length=0},Yt.Xe=function(a){this.H=a},Yt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,nt=0,ot=this.Pa.iterator;ot.next();){var at=ot.value;at instanceof To?E++:at instanceof cr?b++:at instanceof Zi?z++:at instanceof Ls?nt++:x++}if(ot="",0<x&&(ot+=x+" Parts "),0<b&&(ot+=b+" Nodes "),0<E&&(ot+=E+" Groups "),0<z&&(ot+=z+" Links "),0<nt&&(ot+=nt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,ot+=`
`+x.toString(),b=x.data,b!==null&&fs(b)&&(ot+=" #"+fs(b)),x instanceof cr?ot+=" "+Er(b):x instanceof Zi&&(ot+=" "+Er(x.fromNode)+" "+Er(x.toNode));return y+" "+this.Pa.count+": "+ot},Yt.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var E=Ue.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||eg(ot)!==!1)&&ot.isVisible()&&(E.assign(a),ts(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return Ue.free(E),ot}return Ue.free(E),null},Yt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Bi||b instanceof Pi||(b=new Pi),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Ue.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||eg(at)!==!1)&&at.isVisible()){z.assign(a),ts(z,at.oe);var ut=at;at.ji(z,y,x,b)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||b.add(ut))}}return Ue.free(z),b},Yt.Cf=function(a,y,x,b,E){if(y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Bi||E instanceof Pi||(E=new Pi),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((z!==!0||eg(at)!==!1)&&at.isVisible()){var ut=at;at.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},Yt.Nu=function(a,y,x,b,E,z,nt){if(this.Uh===!1)return E;for(var ot=this.Pa.s,at=ot.length;at--;){var ut=ot[at];if((nt!==!0||eg(ut)!==!1)&&z(ut)&&ut.isVisible()){var ct=ut;ut.Cf(a,y,x,b,E)&&(y!==null&&(ct=y(ct)),ct===null||x!==null&&!x(ct)||E.add(ct))}}return E},Yt.og=function(a,y,x,b,E,z){if(x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Bi||E instanceof Pi)&&(z=E),E=!0),z instanceof Bi||z instanceof Pi||(z=new Pi),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=Ue.alloc(),at=Ue.alloc(),ut=this.Pa.s,ct=ut.length;ct--;){var gt=ut[ct];if((nt!==!0||eg(gt)!==!1)&&gt.isVisible()){ot.assign(a),ts(ot,gt.oe),at.h(a.x+y,a.y),ts(at,gt.oe);var Nt=gt;gt.og(ot,at,x,b,E,z)&&(x!==null&&(Nt=x(Nt)),Nt===null||b!==null&&!b(Nt)||z.add(Nt))}}return Ue.free(ot),Ue.free(at),z},Yt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=sr();for(var E=sr(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof Zi){if(nt.fd===!1)continue}else if(nt instanceof Ls&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&Ns(ot,y)?(nt.Fd(!0),a.push(nt)):(nt.Fd(!1),nt.adornments!==null&&0<nt.adornments.count&&E.push(nt))}for(y=0;y<a.length;y++)for(x=a[y],wv(x),x=x.adornments;x.next();)b=x.value,b.measure(1/0,1/0),b.arrange(),b.Fd(!0);for(y=0;y<E.length;y++)wv(E[y]);Br(a),Br(E)}}};function hu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Yt.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=hu(this,a);var z=this.Zq;z.length=0;for(var nt=y.scale,ot=ui.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,nt,ot,!0);if(ui.free(ot),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Fu(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var nt=hu(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ut=ui.alloc(),ct=0;ct<z;ct++){var gt=E[ct];b.contains(gt)&&a.Oj(y,gt,x,ot,at,ut,!1)}ui.free(ut),y.globalAlpha=nt}}}Yt.Oj=function(a,y,x,b,E,z,nt){if(nt&&!eg(y))a.Hs(y);else{if(b!==null&&y instanceof Zi&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(nt=!1,b=y.containingGroup;b!==null;)nt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(nt=!0,z.assign(b.tb)),b=b.containingGroup;var ot=y.actualBounds;if(b=!1,nt&&y.isVisible()){if(!z.Yc(ot)){a.Hs(y);return}b=!z.Re(ot)}b&&(a.save(),a instanceof nh?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ot.width*E>x.Oq||ot.height*E>x.Oq?y.gc(a,x):(E=y.actualBounds,z=y.naturalBounds,E.width===0||E.height===0||isNaN(E.x)||isNaN(E.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(wa(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(wa(y,a,"rgba(0,0,0,0.3)",!0,!1,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),wa(y,a,y.background,!0,!1,z,E),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),b&&(a.restore(),a.Vc(!0))}},Yt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Ma,a,this,y,x,b,E)},Yt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Co(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),Kh(this,a,y),a},Yt.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var b=this.Pa;if(0>a||a>=b.length){if(a=b.indexOf(y),0>a)return-1}else if(b.M(a)!==y&&(a=b.indexOf(y),0>a))return-1;return y.Wo(x),b.mb(a),b=this.diagram,b!==null&&(x?b.N():b.pc(y)),y.Ig=null,Co(y),a};function Kh(a,y,x){if(y=Th(a,y,x),x instanceof To&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];if(ot===x&&(y=nt,0<=b)||0>b&&ot.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&Kh(a,-1,y)}x.svg!==null&&x.svg.remove()}function Th(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,nt=NaN;0<=z&&(nt=a.M(z).zOrder,!!isNaN(nt));)z--;for(var ot=y+1,at=NaN;ot<E&&(at=a.M(ot).zOrder,!!isNaN(at));)ot++;if(!isNaN(nt)&&nt>b)for(;;){if(z===-1||nt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(nt=NaN;0<=--z&&(nt=a.M(z).zOrder,isNaN(nt)););}else if(!isNaN(at)&&at<b)for(;;){if(ot===E||at>=b){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(at=NaN;++ot<E&&(at=a.M(ot).zOrder,isNaN(at)););}return y}rn.Object.defineProperties(Aa.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&mn("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&mn("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Mi(a,"0 <= value <= 1",Aa,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Aa.prototype.findObjectsNear=Aa.prototype.og,Aa.prototype.findObjectsIn=Aa.prototype.Cf,Aa.prototype.findObjectsAt=Aa.prototype.ji,Aa.prototype.findObjectAt=Aa.prototype.ic,Aa.className="Layer";function Kn(a,y){if(th||(Vl(),th=!0),Xo(this),Oh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,vs){var x=this,b=function(){x.removeEventListener(Ne.document,"DOMContentLoaded",b,!1),x.setRTL()};Ne.document.body!==null?this.setRTL():x.addEventListener(Ne.document,"DOMContentLoaded",b,!1)}this.ol=null,Ba.add("Model",Ws);var E=this;return this.Hb=function(z){var nt=E.partManager;if(z.model===nt.diagram.model&&nt.diagram.aa){nt.diagram.aa=!1;try{var ot=z.change;z.modelChange===""&&ot===Ma&&nt.updateDataBindings(z.object,z.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,lA(this),this.model=Xv(),this.Wg=!0,id(this),this.layout=new Va,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new Ld,a!==void 0&&(typeof a=="string"||Ne.Element&&a instanceof Element?xd(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Hu,Oh;function lA(a){a.Yd=new ua,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Bi,a.pj=new gr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ue(NaN,NaN).freeze(),a.du=new Ue(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ue(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ro,a.zu=new Ue(NaN,NaN).freeze(),a.ut=new ui(NaN,NaN,NaN,NaN).freeze(),a.rj=new Gr(0,0,0,0).freeze(),a.sj=pc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ga,a.zk=Fs,a.Fg=Ga,a.pq=Fs,a.yt=ol,a.Bt=ol,a.Fc=!0,a.pn=!1,a.De=new Pi,a.Eh=new gr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Gr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Cu,a.bq.diagram=a,a.Qg=new Cu,a.Qg.diagram=a,a.cj=new Cu,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,$d(a),a.ai=new Pi,a.Ht=!0,a.uu=Gc,a.pw=!1,a.wu=ac,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new gr,a.Xn=new Bi,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new Gr(5).freeze(),a.Hw=new Pi().freeze(),a.Nt=999999999,a.nw=new Pi().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Pi,a.ow=new Pi,a.Xh=null,a.aw=new Gi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ue,bounds:new ui,Py:new Gi,bA:new Gi,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new ui(NaN,NaN,NaN,NaN).freeze(),a.wo=new Gi(NaN,NaN).freeze(),a.Sp=new ui(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new gr;var y=new cr,x=new oa;x.bind(new ql("text","",Er)),y.add(x),a.ny=y,a.Lg.add("",y),y=new cr,x=new oa,x.stroke="brown",x.bind(new ql("text","",Er)),y.add(x),a.Lg.add("Comment",y),y=new cr,y.selectable=!1,y.avoidable=!1,x=new ko,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Gi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new gr,y=new To,y.selectionObjectName="GROUPPANEL",y.type=fi.Vertical,x=new oa,x.font="bold 12pt sans-serif",x.bind(new ql("text","",Er)),y.add(x),x=new fi(fi.Auto),x.name="GROUPPANEL";var b=new ko;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Zh,b.padding=new Gr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new gr,y=new Zi,x=new ko,x.isPanelMain=!0,y.add(x),x=new ko,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Zi,x=new ko,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Ls,y.type=fi.Auto,x=new ko,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Zh,x.margin=new Gr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Ls,y.type=fi.Link,x=new ko,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Ws,a.toolManager=new oe,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new st,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=gc(),a.eq=null,a.fq=ss,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Ue,a.zy=500,a.wp=new Ue,a.wq=!1}Kn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),iu=null,ru="",nd(this,!1),this.Xn.clear(),kp(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function nd(a,y){a.animationManager.Cc(!0),a.Hw=new Pi().freeze(),a.nw=new Pi().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],nt=a.Wa.length;if(y){for(y=0;y<nt;y++)for(var ot=a.Wa.s[y].parts;ot.next();){var at=ot.value;at!==E&&at.data===null&&z.push(at)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<nt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),kp(),a.Og.clear(),Uo=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function gc(){return null}Kn.prototype.reset=function(){this.clear(),this.vb=!0,lA(this),Dh(this),this.Wg=!0,id(this),this.layout=new Va,this.Wg=!1,this.model=Xv(),this.model.undoManager=new Bt,this.vb=this.rn=!1,this.N()},Kn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ne.document.body);var y=ni("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},Kn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ne.document.body);var y=0;if(vs){var x=Pa;y=Hu,x===null&&(x=Pa=ni("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Hu=ni("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var b=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,b===x&&(x=y.clientWidth),a.removeChild(y),y=b-x,y!==0||xs||(y=11)}this.Db=y,this.Gw=!0},Kn.prototype.qb=function(a){a.classType===Kn&&(this.autoScale=a)},Kn.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
`+x.value.toString(a-1);return y};function xd(a,y){if(vs){if(y!=null||mn("Diagram setup requires an argument DIV."),a.Ka!==null&&mn("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ne.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:mn("No DIV or DIV id supplied: "+y),a.Ka===null&&mn("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&mn("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ne.ResizeObserver){var x=_n(function(){a.$b()},250);a.ol=new Ne.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ne.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ne.go;var E=new Tu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ne.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),Zd(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Tu(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,vs){E=ni("div");var z=ni("div");E.style.position="absolute",E.style.overflow="auto",E.style.width=a.Aa+"px",E.style.height=a.ya+"px",E.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(E),E.appendChild(z),E.onscroll=Uc,E.addEventListener("pointerdown",Sd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=_n(function(){a.Yh=null,a.N()},300),a.Ov=_n(function(){Kd(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=mu(a,nt,!0);ot.bubbles=!0;var at=0,ut=0;ot.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(at=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ut=0<nt.deltaY?1:-1),ot.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-at:-ut):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(at=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ut=0<nt.wheelDeltaY?-1:1),ot.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-at:-ut):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ot.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),qu(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,mu(a,nt,!0),nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())},a.ui=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.Yt;ot[nt.pointerId]===void 0&&(ot[nt.pointerId]=nt),ot=a.oj;var at=!1;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType)if(ot[1]!==null&&ot[1].pointerId===nt.pointerId)ot[1]=nt,at=!0;else if(ot[0]===null)ot[0]=nt;else if(ot[1]===null)ot[1]=nt,at=!0;else{nt.preventDefault();return}else ot[0]=nt;(ot=nt.pointerType==="touch"||nt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ut=at;at=Wd(a,nt,!0,!1,!0,ut),Rc(a,nt,at),at.targetDiagram=Gd(nt,nt.target),at.targetObject=null,ut||at.clone(a.bq),ut=a.uw,ot=ot?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ut.x-nt.screenX)>ot||Math.abs(ut.y-nt.screenY)>ot)?a.yq++:a.yq=1,at.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():qu(at,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType){if(ot[1]!==null&&ot[1].pointerId===nt.pointerId){ot[1]=nt;return}if(ot[0]===null)ot[0]=nt;else return}else ot[0]=nt;if(ot[0].pointerId===nt.pointerId){ot=Wd(a,nt,!1,!1,!1,ot[1]!==null);var at=Ne.document.elementFromPoint(nt.clientX,nt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var ut=a,ct=nt;at&&at.H&&(ct=nt,ut=at.H),ot.targetDiagram=ut,Rc(a,ct,ot),ot.targetObject=null,a.doMouseMove(),qu(ot,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=nt.pointerType==="touch"||nt.pointerType==="pen",at=a.Yt;if(ot&&a.qu)delete at[nt.pointerId],nt.preventDefault();else if(at=a.oj,at[0]===null||at[0].pointerId!==nt.pointerId&&at[0].pointerType===nt.pointerType)at[1]!==null&&at[1].pointerId===nt.pointerId&&(at[1]=null);else{at[0]=null,at=Wd(a,nt,!1,!0,!0,!1);var ut=Ne.document.elementFromPoint(nt.clientX,nt.clientY)||null;ut!==null&&ut.shadowRoot!==void 0&&ut.shadowRoot!==null&&(ut=ut.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ut!==null&&ut.H instanceof Kn&&ut.H!==a&&Rc(ut.H,nt,at),ut===null&&(ut=nt.target),Rc(a,nt,at),at.clickCount=a.yq,at.targetDiagram=Gd(nt,ut),at.targetObject=null,a.doMouseUp(),qu(at,nt),ot&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[nt.pointerId]&&delete ot[nt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===nt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===nt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null)},a.Vp=b.Z["d"+sd[1]+sd[2]+"wI"+jh.slice(1,5)]["b"+Rw.slice(1,y)](b.Z,mc,y,y),b.Vc(!0),SA(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Kn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Kn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function SA(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(Ne,"resize",a.Ov,!1)}function Lu(a){30<a.Sq&&(a.Yh=1)}function jc(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),ns&&ns.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Kn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ne.devicePixelRatio||1},Kn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Kn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Kn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Kn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Kn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Kn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Kn.prototype.doFocus=function(){this.focus()},Kn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ne.scrollX||Ne.pageXOffset,y=Ne.scrollY||Ne.pageYOffset;this.ta.focus(),Ne.scrollTo(a,y)}},Kn.prototype.Oy=function(){this.H.R("GainedFocus")},Kn.prototype.Ny=function(){this.H.R("LostFocus")};function Kd(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,b=a.Be?a.Db:0,E=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==E&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+b)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===Ga&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function id(a){var y=new Aa;y.name="Background",a.Al(y),y=new Aa,y.name="",a.Al(y),y=new Aa,y.name="Foreground",a.Al(y),y=new Aa,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Aa,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Aa,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function CA(a){var y=new fi(fi.Grid);y.name="GRID";var x=new ko;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new ko,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new ko,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ko,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new ko,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new ko,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new $r,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function Uc(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Bc(this.H)}function Sd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Bc(this.H)}Kn.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,nt=b.x-z.left,ot=b.y-z.top,at=b.width+z.left+z.right,ut=b.height+z.top+z.bottom,ct=b.right+z.right;z=b.bottom+z.bottom;var gt=E.x;b=E.y;var Nt=E.width,zt=E.height,Xt=E.right,ue=E.bottom;E=this.scale;var Qe=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Qe=Qe+a.scrollWidth-a.clientWidth;break;case"reverse":Qe=a.scrollWidth-Qe-a.clientWidth}var ke=Qe;Nt<at||zt<ut?(Qe=Ue.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ke&&(Qe.x=ke/E+nt,this.ju=ke),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Qe.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=Qe,Ue.free(Qe),this.Ee=this.qr=!1):(Qe=Ue.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<gt&&(this.position=Qe.h(ke+nt,this.position.y)),ct>Xt&&(this.position=Qe.h(-(y.scrollWidth-this.Aa)+ke-this.Aa/E+ct,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=Qe.h(this.position.x,a.scrollTop+ot)),z>ue&&(this.position=Qe.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Ue.free(Qe),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ct=b.right,Xt=E.right,z=b.bottom,ue=E.bottom,nt=b.x,gt=E.x,ot=b.y,b=E.y,Nt>=at&&nt>=gt&&ct<=Xt&&(x.style.width="1px"),zt>=ut&&ot>=b&&z<=ue&&(x.style.height="1px"))}},Kn.prototype.computeBounds=function(a){return a===void 0&&(a=new ui),Hl(this),Ju(this,a)};function Ju(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var nt=b[z];if(nt.visible&&nt.isInDocumentBounds){nt=nt.Pa.s;for(var ot=nt.length,at=0;at<ot;at++){var ut=nt[at];ut.isInDocumentBounds&&ut.isVisible()&&(ut=ut.actualBounds,ut.w()&&(x?(x=!1,y.assign(ut)):y.ed(ut)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Kn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Si(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Zi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds))}else for(a=a.iterator;a.next();)b=a.value,!y&&b instanceof Zi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new ui(NaN,NaN,0,0):x};function ah(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Ue.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=ui.allocAt(0,0,b.width,b.height);var E=Ue.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,ui.free(b),Ue.free(E),Ue.free(x)}x=a.yh,y&&a.Fg!==Ga&&(x=a.Fg);var z=x!==Ga?Vu(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var nt=a.ya/z,ot=a.zk,at=a.pq;y&&!ot.sb()&&(at.sb()||at.Xb())&&(ot=at.Xb()?Eo:at),BA(a,a.documentBounds,E,nt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Ln.B(z.x,x)&&Ln.B(z.y,b)&&Ln.B(z.width,E)&&Ln.B(z.height,nt)||a.onViewportBoundsChanged(new ui(x,b,E,nt),z,y,!1)}}function Vu(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),nt=a.ya+(a.Be?a.Db:0),ot=z/E,at=nt/b;return y===Kl?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Nu?(y=at>ot?(nt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Kn.prototype.zoomToFit=function(){var a=this.sj;this.sj=pc,this.scale=Vu(this,Kl),a!==pc&&(ah(this,!1),BA(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Yt=Kn.prototype,Yt.BA=function(a,y){y===void 0&&(y=Kl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Kl||y===Nu)if(isNaN(x))E=this.viewportBounds.height*this.scale/b;else if(isNaN(b))E=this.viewportBounds.width*this.scale/x;else{E=this.Aa;var z=this.ya;E=y===Nu?z/b>E/x?(z-(this.Be?this.Db:0))/b:(E-(this.gf?this.Db:0))/x:Math.min(z/b,E/x)}this.scale=E,this.position=new Ue(a.x,a.y)}},Yt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ue(x.x+(a.x*x.width+a.offsetX)-(y.x*b.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*b.height-y.offsetY))},Yt.zz=function(a){if(a instanceof pn){this.eq=a;var y=Ue.alloc();this.fq=this.op(a.ga(ol,y)),Ue.free(y)}else this.eq=null,this.fq=ss};function BA(a,y,x,b,E,z){var nt=Ue.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ut=Ue.alloc();ut=a.eq.ga(ol,ut),ot=ut.x-a.fq.x/a.scale,at=ut.y-a.fq.y/a.scale,E=Xa,Ue.free(ut)}(z||a.scrollMode===pc)&&(E.sb()&&(x>y.width&&(ot=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(at=y.y+(E.y*y.height+E.offsetY)-(E.y*b-E.offsetY))),E=a.rj,z=x-y.width,x<y.width+E.left+E.right?(ot=Math.min(ot+x/2,y.right+Math.max(z,E.right)-x/2),ot=Math.max(ot,y.left-Math.max(z,E.left)+x/2),ot-=x/2):ot>y.left?ot=y.left:ot<y.right-x&&(ot=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(at=Math.min(at+b/2,y.bottom+Math.max(x,E.bottom)-b/2),at=Math.max(at,y.top-Math.max(x,E.top)+b/2),at-=b/2):at>y.top?at=y.top:at<y.bottom-b&&(at=y.bottom-b)),nt.x=isFinite(ot)?ot:-a.yb.left,nt.y=isFinite(at)?at:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,nt),nt.x=y.x,nt.y=y.y),ll(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Dh(a),Ue.free(nt)}Yt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Gh(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof $r)return a}else if(a=Gh(this,a,function(x){return x.part}),a instanceof $r)return a;return null},Yt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),Hl(this);for(var b=this.Wa.iteratorBackwards;b.next();){var E=b.value;if(E.visible&&(E=E.ic(a,y,x),E!==null))return E}return null};function Gh(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),Hl(a),a=a.Wa.iteratorBackwards;a.next();){var E=a.value;if(E.visible&&!E.isTemporary&&(E=E.ic(y,x,b),E!==null))return E}return null}Yt.lz=function(a,y,x){return y===void 0&&(y=!0),na(this,a,function(b){return b.part},y?function(b){return b instanceof $r&&b.canSelect()}:null,x)};function na(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Bi||E instanceof Pi||(E=new Pi),Hl(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Yt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Bi||b instanceof Pi||(b=new Pi),Hl(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Yt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Cd(this,a,function(E){return E instanceof $r&&(!x||E.canSelect())},y,b)},Yt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Bi||E instanceof Pi||(E=new Pi),Hl(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},Yt.Nu=function(a,y,x,b,E,z){var nt=new Pi;Hl(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var at=ot.value;at.visible&&at.Nu(a,y,x,b,nt,E,z)}return nt};function Cd(a,y,x,b,E){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Bi||E instanceof Pi||(E=new Pi),Hl(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}Yt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),rd(this,a,y,function(z){return z instanceof $r&&(!b||z.canSelect())},x,E)},Yt.og=function(a,y,x,b,E,z){x===void 0&&(x=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Bi||E instanceof Pi)&&(z=E),E=!0),z instanceof Bi||z instanceof Pi||(z=new Pi),Hl(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var ot=nt.value;ot.visible&&ot.og(a,y,x,b,E,z)}return z};function rd(a,y,x,b,E,z){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof Bi||E instanceof Pi)&&(z=E),E=!0),z instanceof Bi||z instanceof Pi||(z=new Pi),Hl(a),a=a.Wa.iteratorBackwards;a.next();){var ot=a.value;ot.visible&&!ot.isTemporary&&ot.og(y,x,nt,b,E,z)}return z}Kn.prototype.acceptEvent=function(a){return mu(this,a,a instanceof MouseEvent)};function mu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?Rc(a,y,b):(b.viewPoint=a.Qg.viewPoint,b.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),b.modifiers=a,b.button=y.button,y.buttons!==void 0&&(b.buttons=y.buttons),xs&&y.button===0&&y.ctrlKey&&(b.button=2),b.down=!1,b.up=!1,b.clickCount=1,b.delta=0,b.handled=!1,b.bubbles=!1,b.timestamp=y.timeStamp,b.isMultiTouch=!1,b.targetDiagram=Gd(y,y.target),b.targetObject=null,b}function Gd(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Wd(a,y,x,b,E,z){var nt=a.Qg;return a.Qg=a.cj,a.cj=nt,nt.diagram=a,nt.clickCount=1,a=nt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),nt.modifiers=a,nt.event=y,nt.timestamp=y.timeStamp,nt.button=y.button,nt.buttons=y.buttons,xs&&y.button===0&&y.ctrlKey&&(nt.button=2),nt.down=x,nt.up=b,nt.handled=!1,nt.bubbles=E,nt.isMultiTouch=z,nt}function qu(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Kn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=mu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),qu(x,a)},Kn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),qu(x,a)},Kn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),qu(x,a)},Kn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=mu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),qu(x,a)},Kn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ue(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?ts(new Ue(y,a),this.Ab):new Ue(y,a)};function Rc(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,nt=0,ot=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-E/b.width*b.left,ot=y.clientY-z/b.height*b.top),x.viewPoint.h(nt,ot),a.Ab!==null?(y=Ue.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),Ue.free(y)):x.documentPoint.h(nt,ot)}function Bd(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var b=a.ta;b!==null&&(b=b.getBoundingClientRect(),x.h(y.clientX-a.Aa/b.width*b.left,y.clientY-a.ya/b.height*b.top))}}Kn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Vd(a){a.ld||Hl(a),a.Va()}Kn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Yt=Kn.prototype,Yt.Pz=function(){return this.kg},Yt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,vu(this),this.hf=!1,this.du=new Ue(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Ii(function(){b.ld=!1,Ul(y,"Model"),a(b)},1)},Yt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Ne.requestAnimationFrame(function(){y.kg&&y.bd()})}},Yt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),vu(this))};function cu(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Bc(a)||(y&&Hl(a),x&&ah(a,!1))}function vu(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];Tl(ot,!1),ot.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(at){at.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Kd(a),cu(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Pc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),Hl(a),z=!1,(!a.hf||a.xh)&&(a.hf?Xd(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Xd(a,!1)),z=!0),a.Jk=!1,Hl(a),a.ou||Vd(a),cu(a,!0,!1),nt=!1,z?(x=ui.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Hc(a)),a.R("LayoutCompleted"),cu(a,!0,!1),ui.free(x)):x.Ok&&x.Qw&&(a.Fg!==Ga?a.scale=Vu(a,a.Fg):a.yh!==Ga?a.scale=Vu(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),ah(a,!0)),z&&nt&&a.eb("Initial Layout"),Hl(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Hc(a){if(a.Fg!==Ga)a.scale=Vu(a,a.Fg);else if(a.yh!==Ga)a.scale=Vu(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}ah(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Pc(a)}function Hl(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Pi,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof To&&b.U&65536&&(b.U=b.U^65536)})}}Yt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof To||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof To&&x.isVisible()&&Oa(this,x);for(a.reset();a.next();)x=a.value,x instanceof Zi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Ls&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Oa(a,y){for(var x=sr(),b=sr(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof To?(Sh(z)||eh(z)||tg(z))&&Oa(a,z):z instanceof Zi?z.fromNode===y||z.toNode===y?b.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,E=0;E<a;E++)z=x[E],z.measure(1/0,1/0),z.arrange();for(Br(x),y.measure(1/0,1/0),y.arrange(),a=b.length,y=0;y<a;y++)x=b[y],x.measure(1/0,1/0),x.arrange();Br(b)}Yt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Yt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&mn("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Eh(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,nt=Math.round(y.y*E)/E,ot=this.Ab;for(ot.reset(),E!==1&&ot.scale(E),y.x===0&&y.y===0||ot.translate(-z,-nt),a.ti=null,Gf(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Mu(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<b;y++)x[y].gc(a,this);a=!1,this.Yf?Uh(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ro.prototype.Cd=Ro.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Eh(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),nt=this.Mb,ot=this.pa;var at=this.Ca,ut=Math.round(ot.x*at)/at,ct=Math.round(ot.y*at)/at;for(at!==1&&z.scale(at),ot.x===0&&ot.y===0||z.translate(-ut,-ct),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Mu(this,a),ot=0;ot<E;ot++)a.setTransform(nt,0,0,nt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?Uh(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ro.prototype.Cd=Ro.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=ns&&ns.nx,x=this.zw,b||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,E=y=0;E<x.length;E++)y+=x[E];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),b)for(a.setTransform(1,0,0,1,0,0),b=0;b<x.length;b++)a.fillText(x[b].toString(),20,150+ +(20*b))}}};function Ya(a,y,x,b,E,z,nt,ot,at,ut){if(a.Ka!==null){a.ta===null&&mn("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ut===void 0&&(ut=!1),Eh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ct=a.Ca;a.Ca=E;var gt=a.Wa.s,Nt=gt.length;try{var zt=new ui(z.x,z.y,b.width/E,b.height/E),Xt=zt.copy();Xt.Co(x),Pc(a,Xt),Hl(a),a.Fd(gt,Nt,a,zt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),ot!==null&&ot!==""&&(y.fillStyle=ot,y.ox(0,0,b.width,b.height));var ue=a.Mb;y.scale(ue,ue);var Qe=Ro.alloc();Qe.reset(),Qe.translate(x.left,x.top),Qe.scale(E),z.x===0&&z.y===0||Qe.translate(-z.x,-z.y),y.setTransform(Qe.m11,Qe.m12,Qe.m21,Qe.m22,Qe.dx,Qe.dy),y.yc(),y instanceof nh&&Gf(y,Qe.m11,Qe.m12,Qe.m21,Qe.m22,Qe.dx,Qe.dy),Ro.free(Qe),Mu(a,y),y.globalAlpha=a.pb;var ke=a.Qj("Grid");if(nt){var Ze=new Pi,en=nt.iterator;for(en.reset();en.next();){var an=en.value;an instanceof $r&&(ut||an.layer!==ke)&&(an.Gj(),Ze.add(an))}for(ut=0;ut<Nt;ut++)Fu(gt[ut],y,a,Ze,at);Ze.each(function(Zn){return Zn.Gj()})}else for(Ze=0;Ze<Nt;Ze++){var Cn=gt[Ze];Cn===ke?ut&&Cn.gc(y,a,!0):Cn.gc(y,a,at)}a.$i=!1,a.Yf&&Uh(a.Yf,a)&&a.Vp()}finally{a.Ca=ct,a.ib.Vc(!0),a.vd=!0,a.Fd(gt,Nt,a,a.viewportBounds),Pc(a),a.ib instanceof nh&&(a.ib.Nj.PA(),a.redraw())}}}Yt.Gf=function(a){return this.Rg[a]},Yt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Yt.Tx=function(){this.Rg=new _r,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(xs||Lo),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Mu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Yt.Ql=function(a){return this.on[a]},Yt.sA=function(a,y){this.on[a]=y},Yt.Sx=function(){this.on=new _r,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Yt.set=function(a){return Object.assign(this,a),this},Yt.Du=function(a){return this.nm(a)},Yt.nm=function(a){return fh(this,a),this};function fh(a,y){var x=a instanceof fi,b=a instanceof Kn,E;for(E in y){E===""&&mn("Setting properties requires non-empty property names");var z=a,nt=E;if(x||b){var ot=E.indexOf(".");if(0<ot){var at=E.substring(0,ot);x?z=a.fb(at):(z=a[at],z==null&&(z=a.toolManager[at])),On(z)?nt=E.substr(ot+1):mn("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!ao(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&ao(a.toolManager,nt))z=a.toolManager;else if(b&&FA(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof jr&&nt==="Changed"){a.Pe(y[nt]);continue}else mn('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof pn&&z.Vw(nt)}}Yt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new gr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Yt.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Kn.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Fd&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var b=this.scale,E=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*b&&0<Math.max(0,z-E)*b){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(b=ui.alloc(),bA(this,this.computeBounds(b)),ui.free(b)),b=this.ta,b===null||b instanceof _u)))){var nt=this.Mb;E=this.Aa*nt;var ot=this.ya*nt,at=this.scale*nt;z=Math.round(Math.round(y.x*at)-Math.round(a.x*at)),y=Math.round(Math.round(y.y*at)-Math.round(a.y*at)),at=this.jw,a=this.oy,at.width!==E&&(at.width=E),at.height!==ot&&(at.height=ot),a.clearRect(0,0,E,ot),at=190*nt;var ut=70*nt,ct=Math.max(z,0),gt=Math.max(y,0),Nt=Math.floor(E-ct),zt=Math.floor(ot-gt);a.drawImage(b.Oa,ct,gt,Nt,zt,0,0,Nt,zt),Uh(this.Yf,this)&&a.clearRect(0,0,at,ut),b=sr(),a=sr(),zt=Math.abs(z),Nt=Math.abs(y);var Xt=ct===0?0:E-zt;ct=Ue.allocAt(Xt,0),zt=Ue.allocAt(zt+Xt,ot),a.push(new ui(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y)));var ue=this.Ab;if(ue.reset(),ue.scale(nt,nt),this.Ca!==1&&ue.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&ue.translate(-nt.x,-nt.y),ts(ct,ue),ts(zt,ue),b.push(new ui(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Xt=gt===0?0:ot-Nt,ct.h(0,Xt),zt.h(E,Nt+Xt),a.push(new ui(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),ts(ct,ue),ts(zt,ue),b.push(new ui(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),Uh(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,ct.h(E,ot),zt.h(at+E,ut+ot),a.push(new ui(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y))),ts(ct,ue),ts(zt,ue),b.push(new ui(Math.min(ct.x,zt.x),Math.min(ct.y,zt.y),Math.abs(ct.x-zt.x),Math.abs(ct.y-zt.y)))),Ue.free(ct),Ue.free(zt),cu(this,!1,!0),this.Ka===null&&mn("No div specified"),this.ta===null&&mn("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(Eh(this),ot=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*ot,this.ya*ot),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,nt=this.Ca,at=Math.round(z.x*nt)/nt,ut=Math.round(z.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),z.x===0&&z.y===0||y.translate(-at,-ut),E.save(),E.beginPath(),z=a.length,nt=0;nt<z;nt++)at=a[nt],at.width!==0&&at.height!==0&&E.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(E.clip(),E.setTransform(ot,0,0,ot,0,0),E.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),E.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Mu(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ut=hu(nt,E),gt=nt.Zq,gt.length=0,ct=this.scale,Nt=ui.alloc(),zt=nt.Pa.s,ue=zt.length,Xt=at.length;for(var Qe=0;Qe<ue;Qe++){var ke=zt[Qe],Ze=Ng(ke,ke.actualBounds);t:{for(var en=2/ct,an=4/ct,Cn=0;Cn<Xt;Cn++){var Zn=at[Cn];if(Zn.width!==0&&Zn.height!==0&&Ze.Vu(Zn.x-en,Zn.y-en,Zn.width+an,Zn.height+an)){Ze=!0;break t}}Ze=!1}Ze&&nt.Oj(E,ke,this,gt,ct,Nt,!0)}ui.free(Nt),E.globalAlpha=ut}E.restore(),E.Vc(!0),this.Yf&&Uh(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Br(b),Br(a),this.ld=!1}}else this.bd();x&&(Lu(this),this.bd(),jc(this,!0))}else x?(Lu(this),this.bd(),jc(this,!0)):this.bd()}};function Eh(a){a.pn!==!1&&(a.pn=!1,Zd(a,a.Aa,a.ya))}function Zd(a,y,x){Dh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Bc(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,nt=a.gf?a.Db:0,ot=a.Be?a.Db:0,at=E.clientWidth||x+nt,ut=E.clientHeight||b+ot,ct=a.viewportBounds;E=ct.x;var gt=ct.y,Nt=ct.width,zt=ct.height;if((at!==x+nt||ut!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ut,z=a.pn=!0,Dh(a)),!a.hf||!a.viewportBounds.w())return!0;var Xt=a.ku,ue=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Qe=a.documentBounds,ke=0,Ze=0,en=0,an=0,Cn=ct.width,Zn=ct.height,ir=a.rj;a.contentAlignment.sb()?(Qe.width>Cn&&(ke=ir.left,Ze=ir.right),Qe.height>Zn&&(en=ir.top,an=ir.bottom)):(ke=ir.left,Ze=ir.right,en=ir.top,an=ir.bottom);var Mr=Qe.width+ke+Ze,wr=Qe.height+en+an;ir=a.scale;var Vi=Mr>at/ir,Ni=wr>ut/ir;if(!(z||a.gf||a.Be||Vi||Ni))return!0;ke=Qe.x-ke,at=ct.x,Ze=Qe.right+Ze,ut=ct.right+nt,en=Qe.y-en;var Fo=ct.y;Qe=Qe.bottom+an,ct=ct.bottom+ot;var mo="1px";if(an="1px",a.scrollMode===pc&&(Vi||Ni)&&(Vi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Vi=1,ke+1<at&&(Vi=Math.max((at-ke)*ir+a.Aa,Vi)),Ze>ut+1&&(Vi=Math.max((Ze-ut)*ir+a.Aa,Vi)),Cn+nt+1<Mr&&(Vi=Math.max((Mr-Cn)*ir+a.Aa,Vi)),mo=Vi.toString()+"px"),Ni&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Vi=1,en+1<Fo&&(Vi=Math.max((Fo-en)*ir+a.ya,Vi)),Qe>ct+1&&(Vi=Math.max((Qe-ct)*ir+a.ya,Vi)),Zn+ot+1<wr&&(Vi=Math.max((wr-Zn)*ir+a.ya,Vi)),an=Vi.toString()+"px")),Vi=mo!=="1px",Ni=an!=="1px",Vi&&Ni||!Vi&&!Ni||(Ni&&(ut-=a.Db),Vi&&(ct-=a.Db),Mr<Cn+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,ke+1<at&&(nt=Math.max((at-ke)*ir+a.Aa,nt)),Ze>ut+1&&(nt=Math.max((Ze-ut)*ir+a.Aa,nt)),Cn+1<Mr&&(nt=Math.max((Mr-Cn)*ir+a.Aa,nt)),mo=nt.toString()+"px"),Vi=mo!=="1px",nt=a.ya,Vi!==a.Be&&(nt=Vi?a.ya-a.Db:a.ya+a.Db),wr<Zn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,en+1<Fo&&(ot=Math.max((Fo-en)*ir+nt,ot)),Qe>ct+1&&(ot=Math.max((Qe-ct)*ir+nt,ot)),Zn+1<wr&&(ot=Math.max((wr-Zn)*ir+nt,ot)),an=ot.toString()+"px"),Ni=an!=="1px"),a.qr&&Vi===a.Be&&Ni===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Vi!==a.Be&&(mo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Vi,ue.style.width=mo,Ni!==a.gf&&(an==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=Ue.alloc(),Ni?(y.style.left=a.Db+"px",a.position=ot.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ot.h(a.pa.x-a.Db/a.scale,a.pa.y)),Ue.free(ot))),z&&Dh(a),a.gf=Ni,ue.style.height=an,a.gu=!0,z&&(a.pn=!0),y=Xt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Cn+1<Mr?y=(a.position.x-ke)*ir:ke+1<at?y=Xt.scrollWidth-Xt.clientWidth:Ze>ut+1&&(y=a.position.x*ir)),a.tn)switch(a.bu){case"negative":y=-(Xt.scrollWidth-y-Xt.clientWidth);break;case"reverse":y=Xt.scrollWidth-y-Xt.clientWidth}return Xt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Zn+1<wr?Xt.scrollTop=(a.position.y-en)*ir:en+1<Fo?Xt.scrollTop=Xt.scrollHeight-Xt.clientHeight:Qe>ct+1&&(Xt.scrollTop=a.position.y*ir)),at=a.Aa,ut=a.ya,Xt.style.width=at+(a.gf?a.Db:0)+"px",Xt.style.height=ut+(a.Be?a.Db:0)+"px",x!==at||b!==ut||a.animationManager.zb?(x=ui.allocAt(E,gt,Nt,zt),a.onViewportBoundsChanged(x,a.viewportBounds,ir,z),ui.free(x),!1):!0}Yt=Kn.prototype,Yt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&mn("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&mn('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(fl,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Yt.oi=function(a){this.partManager.oi(a);var y=this;dl(a,function(x){zc(y,x)}),(a instanceof Ls||a instanceof To&&a.placeholder!==null)&&a.v(),a.data!==null&&dl(a,function(x){Wv(y.partManager,x)}),eh(a)!==!0&&tg(a)!==!0||this.De.add(a),Ky(a,!0,this),Wy(a)?(a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.$b()},Yt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&dl(a,function(x){Vv(y.partManager,x,y)}),this.De.remove(a),Wy(a)?(a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ng(a,a.actualBounds)),this.$b()},Yt.remove=function(a){Pd(this,a,!0)};function Pd(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Ql,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Yt.Is=function(a,y){if(y===void 0&&(y=!1),Si(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Pi,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Yt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Kn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=PA(this)),this.toolManager!==null){var E=new gr;if(a!==null)if(Si(a))for(var z=0;z<a.length;z++)Zu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Zu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Zu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Zu(this,E,a.value,x,b);for(a=this.links;a.next();)Zu(this,E,a.value,x,b)}xh(this,E,y,b,x)}};function Zu(a,y,x,b,E,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!b||z||x.canMove()||x.canCopy()))if(E===void 0&&(E=PA(a)),x instanceof cr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof To&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Zu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var nt=z.value;if(!y.contains(nt)){var ot=nt.fromNode,at=nt.toNode;ot!==null&&y.contains(ot)&&at!==null&&y.contains(at)&&Zu(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Zu(a,y,x.value,b,E)}else if(x instanceof Zi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Zu(a,y,x.value,b,E);else x instanceof Ls||y.add(x,a.Pd(E,x,x.location))}function xh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Ue.alloc(),nt=Ue.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||sc(a,y);for(var ot=sr(),at=sr(),ut=y.iterator,ct=Ue.alloc();ut.next();){var gt=ut.key,Nt=ut.value;if(gt.Zc()){var zt=od(a,gt,y);zt!==null?ot.push(new it(gt,Nt,zt)):(!E||gt.canMove())&&(zt=Nt.point,z.assign(zt),a.computeMove(gt,z.add(nt),b,ct),gt.location=ct,Nt.shifted===void 0&&(Nt.shifted=new Ue),Nt.shifted.assign(ct.re(zt)))}else ut.key instanceof Zi&&at.push(ut.sa)}for(Ue.free(ct),E=ot.length,ut=0;ut<E;ut++)gt=ot[ut],z.assign(gt.info.point),gt.Su.shifted===void 0&&(gt.Su.shifted=new Ue),gt.node.location=z.add(gt.Su.shifted);for(E=Ue.alloc(),ut=Ue.alloc(),gt=at.length,Nt=0;Nt<gt;Nt++){var Xt=at[Nt];if(zt=Xt.key,zt instanceof Zi)if(zt.suspendsRouting){zt.Tg=null,ct=zt.fromNode;var ue=zt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ue=Xt.value.point,zt.dragComputation===null)y.add(zt,a.Pd(b,zt,nt)),Ff(zt,nt.x-ue.x,nt.y-ue.y);else{Xt=Ue.allocAt(0,0),(ct=zt.i(0))&&ct.w()&&Xt.assign(ct);var Qe=ct=Ue.alloc().assign(Xt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Qe=Ue.alloc(),_c(a,zt,ct,Qe,b)),ct.assign(zt.dragComputation(zt,ct,Qe)).re(Xt),y.add(zt,a.Pd(b,zt,ct)),Ff(zt,ct.x-ue.x,ct.y-ue.y),Ue.free(Xt),Ue.free(ct),Qe!==ct&&Ue.free(Qe)}else ct!==null&&(E.assign(ct.location),Qe=y.I(ct),Qe!==null&&E.re(Qe.point)),ue!==null&&(ut.assign(ue.location),Qe=y.I(ue),Qe!==null&&ut.re(Qe.point)),ct!==null&&ue!==null?E.Xa(ut)?(ct=Xt.value.point,ue=z,ue.assign(E),ue.re(ct),y.add(zt,a.Pd(b,zt,E)),Ff(zt,ue.x,ue.y)):(zt.suspendsRouting=!1,zt.bb()):(Xt=Xt.value.point,ct=ct!==null?E:ue!==null?ut:nt,y.add(zt,a.Pd(b,zt,ct)),Ff(zt,ct.x-Xt.x,ct.y-Xt.y))}else(zt.fromNode===null||zt.toNode===null)&&(ct=Xt.value.point,y.add(zt,a.Pd(b,zt,nt)),Ff(zt,nt.x-ct.x,nt.y-ct.y))}Ue.free(z),Ue.free(nt),Ue.free(E),Ue.free(ut),Br(ot),Br(at),x||(Hl(a),Qc(a,y))}}Kn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Ue),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Ue.alloc(),_c(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var nt=a.minLocation,ot=nt.x;isNaN(ot)&&(ot=z?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var at=a.maxLocation,ut=at.x;return isNaN(ut)&&(ut=z?Math.round(1e3*a.location.x)/1e3:a.location.x),at=at.y,isNaN(at)&&(at=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(ot,Math.min(x.x,ut)),Math.max(nt,Math.min(x.y,at))),E!==y&&Ue.free(E),b};function PA(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function _c(a,y,x,b,E){if(E===void 0&&(E=PA(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var nt=E.gridSnapOrigin,ot=nt.x;if(nt=nt.y,E=E.gridSnapCellSpot,z!==null){var at=z.gridCellSize;isNaN(a)&&(a=at.width),isNaN(y)&&(y=at.height),z=z.gridOrigin,isNaN(ot)&&(ot=z.x),isNaN(nt)&&(nt=z.y)}z=Ue.allocAt(0,0),z.yi(0,0,a,y,E),Ln.No(x.x,x.y,ot+z.x,nt+z.y,a,y,b),Ue.free(z)}}function sc(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Zi&&(y.suspendsRouting=!0)}function Qc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Zi&&(x.suspendsRouting=!1,Iv(x)&&x.bb())}a.Mr=!1}}function od(a,y,x){return y=y.containingGroup,y!==null&&(a=od(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Yt=Kn.prototype,Yt.Pd=function(a,y,x){if(x===void 0)return new lh(qo);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new lh(new Ue(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new lh(x.copy())};function lf(a,y,x){if(y.diagram!==null&&y.diagram!==a&&mn("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&mn("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&mn("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&mn("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var b=0;b<x;b++)a.M(b).name===y&&mn("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Yt.Al=function(a){lf(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb(fl,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Yt.Ww=function(a,y){lf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ql,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(fl,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Yt.Cy=function(a,y){lf(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ql,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(fl,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Yt.kA=function(a){if(a.diagram!==this&&mn("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(Ql,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Yt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Yt.Yw=function(a){return this.pf===null&&(this.pf=new Bi),this.pf.add(a),this.model.Pe(a),this},Yt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Yt.Pe=function(a){return this.zg===null&&(this.zg=new Bi),this.zg.add(a),this},Yt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Yt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==sh&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Yt.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new La;ot.diagram=this,ot.change=a,ot.propertyName=y,ot.object=x,ot.oldValue=b,ot.oldParam=z,ot.newValue=E,ot.newParam=nt,this.ds(ot)},Yt.g=function(a,y,x,b,E){this.cb(Ma,a,this,y,x,b,E)},Kn.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var b=a.change;if(b===Ma){var E=a.object;if(Qa(E,a.propertyName,a.I(y)),E instanceof pn){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===fl){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof fi)if(typeof ot=="number"&&at instanceof pn){y?nt.pc(ot):nt.Gb(ot,at);var ut=nt.part;ut!==null&&ut.Wb()}else typeof ot=="number"&&at instanceof Zl&&(at.isRow?Vc(nt,ot,y?void 0:at):qd(nt,ot,y?void 0:at));else if(nt instanceof Aa){var ct=a.oldParam===!0;typeof ot=="number"&&at instanceof $r&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(ct?ot:-1,at,ct)):nt.oi(ot,at,ct))}else nt instanceof Kn?typeof ot=="number"&&at instanceof Aa&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):mn("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Ql){var gt=a.object,Nt=a.oldParam,zt=a.oldValue;if(gt instanceof fi)typeof Nt=="number"&&zt instanceof pn?y?gt.Gb(Nt,zt):gt.pc(Nt):typeof Nt=="number"&&zt instanceof Zl&&(zt.isRow?Vc(gt,Nt,y?zt:void 0):qd(gt,Nt,y?zt:void 0));else if(gt instanceof Aa){var Xt=a.newParam===!0;typeof Nt=="number"&&zt instanceof $r&&(y?0>gt.Pa.indexOf(zt)&&gt.oi(Nt,zt,Xt):(zt.isSelected=!1,zt.isHighlighted=!1,zt.Wb(),gt.pc(Xt?Nt:-1,zt,Xt)))}else gt instanceof Kn?typeof Nt=="number"&&zt instanceof Aa&&(y?(zt.Xe(this),this.Wa.Gb(Nt,zt)):this.Wa.mb(Nt)):mn("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==sh&&mn("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Kn.prototype.Ea=function(a){return this.undoManager.Ea(a)},Kn.prototype.eb=function(a){return this.undoManager.eb(a)},Kn.prototype.Kf=function(){return this.undoManager.Kf()},Kn.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Kn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Kn.prototype.rp=function(){this.partManager.rp()};function uA(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Dh(a),a.N(),a.Ee=!0,b.zb&&(Ra(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Dh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ut=a.contentAlignment;isNaN(ot)&&(ut.$c()?ut.Hf(bu)?ot=0:ut.Hf(fu)&&(ot=z-1):ot=ut.sb()?ut.x*(z-1):z/2),isNaN(at)&&(ut.$c()?ut.Hf(Pu)?at=0:ut.Hf(nu)&&(at=nt-1):at=ut.sb()?ut.y*(nt-1):nt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Ue.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,Ue.free(z),a.Ca=x,Dh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),ah(a,!1),b.zb&&(Ra(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Kn.prototype.onViewportBoundsChanged=function(a,y,x,b){if(!a.D(y)){b===void 0&&(b=!1),b||(this.Ee=!0),this.vd=!0;var E=this.layout;E===null||!E.isViewportSized||this.autoScale!==Ga||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof oe&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),qt(E,this)),this.vb||this.invalidateViewport(a,y),Pc(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=b,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Pc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Gi.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ut=nt[at],ct=Math.abs(ut.interval);2>ct||(Wa(ut.figure)?z=z*ct/Ln.vx(z,ct):E=E*ct/Ln.vx(E,ct))}if(nt=x.gridCellSize,b.h(z*nt.width,E*nt.height),y!==void 0)E=y.width,z=y.height,a=y.x,nt=y.y;else{if(y=ui.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ui.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,ui.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Ue.alloc(),Ln.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Gi.free(b),x.part.location=y,Ue.free(y)}}Kn.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),b=x.length,E=0;E<b;E++)x[E].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},Kn.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},Kn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Si(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof $r||mn("Diagram.selectCollection given something that is not a Part: "+b),b.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof $r||mn("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Kn.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,b=0;b<x;b++)y[b].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Yt=Kn.prototype,Yt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Yt.Jz=function(a){a=new Pi().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof $r||mn("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Yt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Ue.alloc();if(a==="pixel")E=x;else if(a==="line")E=x*(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=b?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(E=x*Math.max(a-(b?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){E=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,E.y):y==="left"?this.position=z.h(E.x,x.y):y==="down"?this.position=z.h(x.x,E.bottom-x.height):y==="right"&&(this.position=z.h(E.right-x.width,x.y)),Ue.free(z);return}mn("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}E/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-E):y==="down"?this.position=z.h(x.x,x.y+E):y==="left"?this.position=z.h(x.x-E,x.y):y==="right"?this.position=z.h(x.x+E,x.y):mn("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ue.free(z)},Yt.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},Yt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Yt.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},Yt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,nt=y.m11,ot=y.m12,at=y.m21,ut=y.m22,ct=y.dx,gt=y.dy,Nt=x*nt+b*at+ct;y=x*ot+b*ut+gt;var zt=E*nt+b*at+ct;return a=E*ot+b*ut+gt,b=x*nt+z*at+ct,x=x*ot+z*ut+gt,nt=E*nt+z*at+ct,E=E*ot+z*ut+gt,z=Math.min(Nt,zt),Nt=Math.max(Nt,zt),zt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Nt=Math.max(Nt,b),zt=Math.min(zt,x),y=Math.max(y,x),z=Math.min(z,nt),Nt=Math.max(Nt,nt),zt=Math.min(zt,E),y=Math.max(y,E),new ui(z,zt,Nt-z,y-zt)},Yt.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),ts(a.copy(),this.Ab)};function KA(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function bd(a){return a=Ba.get(a),a!==null?new a:new Ws}Kn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===sh&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(at){return at.diagram=E}),a.mouseMoveTools.each(function(at){return at.diagram=E}),a.mouseUpTools.each(function(at){return at.diagram=E}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else b==="StartingUndo"||b==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):b==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===sh){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Hl(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||fo(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var nt=a.isTransactionFinished;if(nt&&(KA(this),this.As.clear(),la(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;Ii(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function zc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Kc(a,y[b])}function Kc(a,y){if(y instanceof cc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Pi&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function hA(a,y){if(y instanceof cc){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Pi&&x.Bg.remove(a),kp(b));break}}}}}Kn.prototype.Wd=function(){this.partManager.Wd()},Kn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Kn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Kn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Kn.prototype.Vb=function(a){return this.partManager.Vb(a)},Kn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Yt=Kn.prototype,Yt.Lc=function(a){return this.partManager.Lc(a)},Yt.ii=function(a){return this.partManager.ii(a)},Yt.Kc=function(a){return this.partManager.Kc(a)},Yt.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:sa(Jo(y)))},Yt.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:sa(Jo(y)))};function Dh(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function bA(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),ah(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Yt.Va=function(){if(this.Zi){var a=ui.alloc();bA(this,this.computeBounds(a)),ui.free(a)}},Yt.rz=function(){for(var a=new Pi,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Yt.qz=function(){return this.ai.iterator},Yt.Uz=function(a){Hl(this),a&&EA(this,!0),this.ld?Xd(this,!1):(this.Jk=!0,vu(this))};function EA(a,y){for(var x=a.ai.iterator;x.next();)cA(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function cA(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)cA(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Xd(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var b=a.undoManager.transactionLevel,E=a.layout,z=a.animationManager;try{b===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=b&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Ul(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)Ed(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),Hl(a),E.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,b===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||b!==0&&b!==1||fo(z),a.aa=x}}}function Ed(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Ed(a,E.value,x,b);E=y.layout,E===null||E.isValidLayout||(!x||E.isRealtime||b===0?(y.rh=!y.location.w(),E.doLayout(y),y.C(32),Oa(a,y),E.isValidLayout=!0):a.xh=!0)}}Yt.yz=function(){for(var a=new Bi,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function $d(a){function y(E){var z=E.toLowerCase(),nt=new Bi;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new gr,b=new gr;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function FA(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function fe(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;mn("Unknown DiagramEvent name: "+y)}Yt.Bj=function(a,y){return a=fe(this,a),a!==null&&a.add(y),this},Yt.am=function(a,y){a=fe(this,a),a!==null&&a.remove(y)},Yt.R=function(a,y,x){var b=fe(this,a),E=new wd;if(E.diagram=this,a=FA(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function wn(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Yt.Yj=function(a,y){return xi(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Kn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Ju(this,a):a.assign(this.documentBounds)};function xi(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new bm(a.avoidanceCellSize)),E.vs||E.group!==x||E.Yx!==b){if(E.Hx=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),E.Ix=Math.max(E.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=Hi(a,x)),x===null){y=ui.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var nt=z.value,ot=nt.layer;ot!==null&&ot.visible&&!ot.isTemporary&&hr(a,nt,b,y)}ui.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=ui.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof cr&&hr(a,nt,b,y);ui.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&c1(E);return E}function Hi(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?Hi(a,y.containingGroup):null}function hr(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Rp(a,E,z))for(x=(z-a.Od)/a.sc|0,b=Math.min((E+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),E=(E-a.Nd)/a.rc|0;E<=b;E++)if(z=a.ac[E],z.fill)z.fill(Mf,x,y+1);else for(var nt=x;nt<=y;nt++)z[nt]=Mf}else if(y instanceof To)for(y=y.memberParts;y.next();)E=y.value,E instanceof cr&&hr(a,E,x,b)}}function Ur(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Kn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():wo(this)};function wo(a){a.vk===-1&&(a.vk=Ii(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=ui.alloc(),a.computeBounds(y),y.ed(a.documentBounds),bA(a,y),ui.free(y),a.Fc=!0,a.bd(),wo(a))}},a.vp))}Kn.prototype.ug=function(){this.vk!==-1&&(Ne.clearTimeout(this.vk),this.vk=-1)},Kn.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var b=this.viewportBounds,E=this.scale;b=ui.allocAt(0,0,b.width*E,b.height*E);var z=Ue.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var nt=Math.max(this.scrollHorizontalLineChange,1);nt|=0,z.x-=nt,a.x<b.x+x.left/2&&(z.x-=nt),a.x<b.x+x.left/4&&(z.x-=4*nt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(nt=Math.max(this.scrollHorizontalLineChange,1),nt|=0,z.x+=nt,a.x>b.x+b.width-x.right/2&&(z.x+=nt),a.x>b.x+b.width-x.right/4&&(z.x+=4*nt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y-=nt,a.y<b.y+x.top/2&&(z.y-=nt),a.y<b.y+x.top/4&&(z.y-=4*nt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y+=nt,a.y>b.y+b.height-x.bottom/2&&(z.y+=nt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*nt)),z.Xa(qo)||(y=new Ue(y.x+z.x/E,y.y+z.y/E)),ui.free(b),Ue.free(z),y},Yt=Kn.prototype,Yt.Cs=function(){return null},Yt.av=function(){return null},Yt.bs=function(a,y){this.pj.add(a,y)},Yt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof To&&(y.$p=null)})};function ms(a,y,x){function b(){var ct=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||ct-ut>at?y(x,E,ot):Ne.requestAnimationFrame(b)}for(var E=x.callback,z=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var ot=a,at=x.callbackTimeout||300,ut=+new Date;return Ne.requestAnimationFrame(function(){b()}),null}Yt.Wz=function(a){return vs?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Yt.Jx=function(a){return a===void 0&&(a={}),ms(this,this.Xz,a)},Yt.Xz=function(a,y,x){var b=Ys(x,a,"canvas",null);if(b===null)return null;x=b.Z.canvas;var E=null;if(x!==null)switch(E=a.returnType,E===void 0?E="string":E=E.toLowerCase(),E){case jh+"data":E=b.getImageData(0,0,x.width,x.height);break;case jh:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&mn('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:E=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(E),null):E};function Ys(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&mn("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new Gi(1/0,1/0):new Gi(2e3,2e3));var ot=y.position||null,at=y.parts||null,ut=y.padding===void 0?1:y.padding,ct=y.background||null,gt=y.omitTemporary;gt===void 0&&(gt=!0);var Nt=y.document||document,zt=y.elementFinished||null,Xt=y.showTemporary;Xt===void 0&&(Xt=!gt),y=y.showGrid,y===void 0&&(y=Xt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ut=="number"?ut=new Gr(ut):ut instanceof Gr||mn("MakeImage padding must be a Margin or a number."),ut.left=Math.max(ut.left,0),ut.right=Math.max(ut.right,0),ut.top=Math.max(ut.top,0),ut.bottom=Math.max(ut.bottom,0),a.ib.Vc(!0),gt=new Tu(null,Nt,void 0,!0);var ue=gt.context;if(!(E||z||at||ot))return gt.width=a.Aa+Math.ceil(ut.left+ut.right),gt.height=a.ya+Math.ceil(ut.top+ut.bottom),x==="SVG"?b===null?null:(b.resize(gt.width,gt.height,gt.width,gt.height),b.ownerDocument=Nt,b.hs=zt,Ya(a,b.context,ut,new Gi(gt.width,gt.height),a.Ca,a.pa,at,ct,Xt,y),b.context):(a.Xm=!1,Ya(a,ue,ut,new Gi(gt.width,gt.height),a.Ca,a.pa,at,ct,Xt,y),a.Xm=!0,gt.context);var Qe=a.Pp,ke=a.documentBounds.copy();if(ke.Fv(a.yb),Xt)for(var Ze=a.Wa.s,en=Ze.length,an=0;an<en;an++){var Cn=Ze[an];if(Cn.visible&&Cn.isTemporary){Cn=Cn.Pa.s;for(var Zn=Cn.length,ir=0;ir<Zn;ir++){var Mr=Cn[ir];Mr.isInDocumentBounds&&Mr.isVisible()&&(Mr=Mr.actualBounds,Mr.w()&&ke.ed(Mr))}}}if(Ze=new Ue(ke.x,ke.y),at!==null){for(en=new ui(0,0,0,0),an=!0,Cn=at.iterator,Cn.reset();Cn.next();)Zn=Cn.value,Zn instanceof $r&&(ir=Zn.layer,ir!==null&&!ir.visible||ir!==null&&!Xt&&ir.isTemporary||!Zn.isVisible()||(Zn=Zn.actualBounds,Zn.w()&&(an?(an=!1,en.assign(Zn)):en.ed(Zn))));ke.width=en.width,ke.height=en.height,Ze.x=en.x,Ze.y=en.y}return ot!==null&&ot.w()&&(Ze=ot,z||(z=Qe)),en=ot=0,ut!==null&&(ot=ut.left+ut.right,en=ut.top+ut.bottom),an=Cn=0,E!==null&&(Cn=E.width,an=E.height,isFinite(Cn)&&(Cn=Math.max(0,Cn-ot)),isFinite(an)&&(an=Math.max(0,an-en))),E!==null&&z!==null?(z==="NaN"&&(z=Qe),E.w()?(E=Cn,ke=an):isNaN(an)?(E=Cn,ke=ke.height*z):(E=ke.width*z,ke=an)):E!==null?E.w()?(z=Math.min(Cn/ke.width,an/ke.height),E=Cn,ke=an):isNaN(an)?(z=Cn/ke.width,E=Cn,ke=ke.height*z):(z=an/ke.height,E=ke.width*z,ke=an):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/ke.width,(nt.height-en)/ke.height),z>Qe?(z=Qe,E=ke.width,ke=ke.height):(E=nt.width,ke=nt.height)):(E=ke.width*z,ke=ke.height*z):(z=Qe,E=ke.width,ke=ke.height),ut!==null?(E+=ot,ke+=en):ut=new Gr(0),nt!==null&&(Qe=nt.width,nt=nt.height,isNaN(Qe)&&(Qe=2e3),isNaN(nt)&&(nt=2e3),isFinite(Qe)&&(E=Math.min(E,Qe)),isFinite(nt)&&(ke=Math.min(ke,nt))),gt.width=Math.ceil(E),gt.height=Math.ceil(ke),x==="SVG"?b===null?null:(b.resize(gt.width,gt.height,gt.width,gt.height),b.ownerDocument=Nt,b.hs=zt,Ya(a,b.context,ut,new Gi(Math.ceil(E),Math.ceil(ke)),z,Ze,at,ct,Xt,y),b.context):(a.Xm=!1,Ya(a,ue,ut,new Gi(Math.ceil(E),Math.ceil(ke)),z,Ze,at,ct,Xt,y),a.Xm=!0,gt.context)}rn.Object.defineProperties(Kn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof xt||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new _u(this,Ne.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new _u(this,Ne.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ne,"resize",this.Ov,!1),this.removeEventListener(Ne,"wheel",this.$j,!0),Oh===this&&(Oh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),xd(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Mi(a,"0 <= value <= 1",Kn,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),ah(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),ah(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),ah(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),ah(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Mi(a,">= 0",Kn,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Mi(a,">= 0",Kn,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Mi(a,">= 0",Kn,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||KA(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&mn("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=nd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Ul(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=bd(this.cc.type);for(var E=0;E<x.length;E++)this.add(x[E]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=b,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(Ne,"pointermove",this.dk,!0),this.addEventListener(Ne,"pointerdown",this.ui,!0),this.addEventListener(Ne,"pointerup",this.fk,!0),this.addEventListener(Ne,"pointerout",this.ek,!0),this.addEventListener(Ne,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ne,"wheel",this.$j,!0),this.addEventListener(Ne,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ne,"pointermove",this.dk,!0),this.removeEventListener(Ne,"pointerdown",this.ui,!0),this.removeEventListener(Ne,"pointerup",this.fk,!0),this.removeEventListener(Ne,"pointerout",this.ek,!0),this.removeEventListener(Ne,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Ne,"wheel",this.$j,!0),this.removeEventListener(Ne,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Ue.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),ll(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Dh(this):(this.vb=!0,a=this.scale,BA(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Ue.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=CA(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=CA(this)),a.type!==fi.Grid&&mn("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Pc(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Dh(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||mn("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===pc&&ah(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,ah(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,uA(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&uA(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==Ga&&ah(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||mn("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||mn("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Mi(a,"> 0",Kn,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Mi(a,"> 0",Kn,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),ah(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&mn("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)pm(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Gc&&a!==pl&&a!==Iu&&mn("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Gi(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),rn.Object.defineProperties(Kn,{licenseKey:{get:function(){return Yd.jc()},set:function(a){Yd.add(a.replace(/\s/g,""))}},version:{get:function(){return Wl}}}),Kn.prototype.makeImageData=Kn.prototype.Jx,Kn.prototype.makeImage=Kn.prototype.Wz,Kn.prototype.cacheGroupExternalLinks=Kn.prototype.Fu,Kn.prototype.addRenderer=Kn.prototype.bs,Kn.prototype.makeSVG=Kn.prototype.av,Kn.prototype.makeSvg=Kn.prototype.Cs,Kn.prototype.stopAutoScroll=Kn.prototype.ug,Kn.prototype.doAutoScroll=Kn.prototype.gs,Kn.prototype.isUnoccupied=Kn.prototype.Yj,Kn.prototype.raiseDiagramEvent=Kn.prototype.R,Kn.prototype.removeDiagramListener=Kn.prototype.am,Kn.prototype.addDiagramListener=Kn.prototype.Bj,Kn.prototype.findTreeRoots=Kn.prototype.yz,Kn.prototype.layoutDiagram=Kn.prototype.Uz,Kn.prototype.findTopLevelGroups=Kn.prototype.qz,Kn.prototype.findTopLevelNodesAndLinks=Kn.prototype.rz,Kn.prototype.ensureBounds=Kn.prototype.Va,Kn.prototype.findLinksByExample=Kn.prototype.ls,Kn.prototype.findNodesByExample=Kn.prototype.ms,Kn.prototype.findLinkForData=Kn.prototype.Kc,Kn.prototype.findNodeForData=Kn.prototype.ii,Kn.prototype.findPartForData=Kn.prototype.Lc,Kn.prototype.findLinkForKey=Kn.prototype.findLinkForKey,Kn.prototype.findNodeForKey=Kn.prototype.Vb,Kn.prototype.findPartForKey=Kn.prototype.findPartForKey,Kn.prototype.rebuildParts=Kn.prototype.Wd,Kn.prototype.transformViewToDoc=Kn.prototype.Ps,Kn.prototype.transformRectDocToView=Kn.prototype.zA,Kn.prototype.transformDocToView=Kn.prototype.op,Kn.prototype.centerRect=Kn.prototype.es,Kn.prototype.scrollToRect=Kn.prototype.tv,Kn.prototype.scroll=Kn.prototype.scroll,Kn.prototype.highlightCollection=Kn.prototype.Jz,Kn.prototype.highlight=Kn.prototype.Iz,Kn.prototype.selectCollection=Kn.prototype.rA,Kn.prototype.select=Kn.prototype.select,Kn.prototype.updateAllRelationshipsFromData=Kn.prototype.rp,Kn.prototype.updateAllTargetBindings=Kn.prototype.updateAllTargetBindings,Kn.prototype.commit=Kn.prototype.commit,Kn.prototype.rollbackTransaction=Kn.prototype.Kf,Kn.prototype.commitTransaction=Kn.prototype.eb,Kn.prototype.startTransaction=Kn.prototype.Ea,Kn.prototype.raiseChanged=Kn.prototype.g,Kn.prototype.raiseChangedEvent=Kn.prototype.cb,Kn.prototype.removeChangedListener=Kn.prototype.ik,Kn.prototype.addChangedListener=Kn.prototype.Pe,Kn.prototype.removeModelChangedListener=Kn.prototype.mA,Kn.prototype.addModelChangedListener=Kn.prototype.Yw,Kn.prototype.findLayer=Kn.prototype.Qj,Kn.prototype.removeLayer=Kn.prototype.kA,Kn.prototype.addLayerAfter=Kn.prototype.Cy,Kn.prototype.addLayerBefore=Kn.prototype.Ww,Kn.prototype.addLayer=Kn.prototype.Al,Kn.prototype.moveParts=Kn.prototype.moveParts,Kn.prototype.copyParts=Kn.prototype.Kj,Kn.prototype.removeParts=Kn.prototype.Is,Kn.prototype.remove=Kn.prototype.remove,Kn.prototype.add=Kn.prototype.add,Kn.prototype.clearDelayedGeometries=Kn.prototype.bx,Kn.prototype.setProperties=Kn.prototype.nm,Kn.prototype.attach=Kn.prototype.Du,Kn.prototype.set=Kn.prototype.set,Kn.prototype.resetInputOptions=Kn.prototype.Sx,Kn.prototype.setInputOption=Kn.prototype.sA,Kn.prototype.getInputOption=Kn.prototype.Ql,Kn.prototype.resetRenderingHints=Kn.prototype.Tx,Kn.prototype.setRenderingHint=Kn.prototype.Xx,Kn.prototype.getRenderingHint=Kn.prototype.Gf,Kn.prototype.maybeUpdate=Kn.prototype.bd,Kn.prototype.requestUpdate=Kn.prototype.$b,Kn.prototype.delayInitialization=Kn.prototype.Xy,Kn.prototype.isUpdateRequested=Kn.prototype.Pz,Kn.prototype.invalidateDocumentBounds=Kn.prototype.Ya,Kn.prototype.findObjectsNear=Kn.prototype.og,Kn.prototype.findPartsNear=Kn.prototype.mz,Kn.prototype.findObjectsIn=Kn.prototype.Cf,Kn.prototype.findPartsIn=Kn.prototype.ux,Kn.prototype.findObjectsAt=Kn.prototype.ji,Kn.prototype.findPartsAt=Kn.prototype.lz,Kn.prototype.findObjectAt=Kn.prototype.ic,Kn.prototype.findPartAt=Kn.prototype.Ol,Kn.prototype.focusObject=Kn.prototype.zz,Kn.prototype.alignDocument=Kn.prototype.Jy,Kn.prototype.zoomToRect=Kn.prototype.BA,Kn.prototype.zoomToFit=Kn.prototype.zoomToFit,Kn.prototype.diagramScroll=Kn.prototype.kx,Kn.prototype.focus=Kn.prototype.focus;var Ba=new gr,Pa=null,vs=Ne.document!==void 0,iu=null,ru="",Ga=new jn(Kn,"None",0),Kl=new jn(Kn,"Uniform",1),Nu=new jn(Kn,"UniformToFill",2),ac=new jn(Kn,"CycleAll",10),Fh=new jn(Kn,"CycleNotDirected",11),lc=new jn(Kn,"CycleNotDirectedFast",12),LA=new jn(Kn,"CycleNotUndirected",13),dA=new jn(Kn,"CycleDestinationTree",14),MA=new jn(Kn,"CycleSourceTree",15),pc=new jn(Kn,"DocumentScroll",1),Fd=new jn(Kn,"InfiniteScroll",2),Gc=new jn(Kn,"TreeParentCollapsed",21),pl=new jn(Kn,"AllParentsCollapsed",22),Iu=new jn(Kn,"AnyParentsCollapsed",23),Yd=new Bi,Wl="2.3.10",jh="image",mc=null,th=!1;function Vl(){if(vs){var a=Ne.document.createElement("canvas"),y=a.getContext("2d"),x=yr("7ca11abfd022028846");y[x]=yr("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Bn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ro.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ln.za],E=1;5>E;E++)y[yr("7ca11abfd7330390")](yr(b[E-1]),10,15*E);for(y[x]=yr("39f046ebb36e4b"),x=1;5>x;x++)y[yr("7ca11abfd7330390")](yr(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Ro.prototype.Cd=Ro.prototype.Eu),mc=a}}Kn.className="Diagram",Kn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ne.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Kn?y.H:null},Kn.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},Kn.useDOM=function(a){vs=a?Ne.document!==void 0:!1},Kn.isUsingDOM=function(){return vs},Kn.None=Ga,Kn.Uniform=Kl,Kn.UniformToFill=Nu,Kn.CycleAll=ac,Kn.CycleNotDirected=Fh,Kn.CycleNotDirectedFast=lc,Kn.CycleNotUndirected=LA,Kn.CycleDestinationTree=dA,Kn.CycleSourceTree=MA,Kn.DocumentScroll=pc,Kn.InfiniteScroll=Fd,Kn.TreeParentCollapsed=Gc,Kn.AllParentsCollapsed=pl,Kn.AnyParentsCollapsed=Iu;function Ld(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Uh(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Ne[yr("76a715b2f73f148a")][yr("72ba13b5")]||"";if(a.Rc=!0,vs){var b=Kn[yr("76a115b6ed251eaf4692")];if(b)for(var E=Yd.iterator;E.next()&&(b=E.value,b=yr(b).split(yr("39e9")),!(6>b.length));){var z=yr(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=yr(Bn[yr("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Ne[yr("74a900bae4370f8b51")][yr("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[yr("73a612b6fb191d")](yr("3aad1ab6e022098b4dc4")),z=yr(b[2]),-1<nt&&(ot=ot[yr("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[yr("76ad18b4f73e")],ot=x[yr("73a612b6fb191d")](yr("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[yr("73a612b6fb191d")](z),0>nt&&z!==yr("7da71ca0ad381e90")&&(nt=y[yr("73a612b6fb191d")](yr("76a715b2ef3e149757"))),0>nt&&(nt=y[yr("73a612b6fb191d")](yr("76a715b2ef3e149757"))),0>nt&&(nt=y[yr("73a612b6fb191d")](yr("2bfa41fdb3784bca12"))),0>nt&&(nt=x[yr("73a612b6fb191d")](yr("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[yr("73a612b6fb191d")](yr("35"))||y[yr("73a612b6fb191d")](yr("35"))===-1),!a.Rc||x[yr("73a612b6fb191d")](yr("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[yr("73a612b6fb191d")](z)),!a.Rc)||(nt=Ne[yr("76a715b2f73f148a")][yr("69ad17a1e03e")],ot=nt[yr("73a612b6fb191d")](yr("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[yr("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Ne.document.createElement("div");for(var at=b[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(ot=at,at=at.substr(at.length-4),b="",b+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],nt[yr("79a417a0f0181a8946")]=b,Ne.document[yr("78a712aa")]){Ne.document[yr("78a712aa")][yr("7bb806b6ed32388c4a875b")](nt),at=Ne.getComputedStyle(nt).getPropertyValue(yr("78a704b7e62456904c9b12701b6532a8"));var ut=Ne.getComputedStyle(nt).getPropertyValue(yr("75b817b0ea2202"));if(Ne.document[yr("78a712aa")][yr("68ad1bbcf533388c4a875b")](nt),at){if(nt=Ne[yr("77a902b0eb1b1e804a8a")],ut==="0."+parseInt(ot,10)%100||at.indexOf(parseInt(z[1]+z[2],16))!==-1&&at.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(yr("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ct in nt)if(b===nt[ct].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ct=x[yr("76ad18b4f73e")],E=x[yr("73a612b6fb191d")](yr("35e7"))+2;E<ct;E++)y+=x[E];x=y[yr("73a612b6fb191d")](yr("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[yr("73a612b6fb191d")](yr("35")))}}}return 0<a.Rc&&a!==a.wy}Ld.className="DiagramHelper";function lh(a){this.j=a===void 0?new Ue:a,this.o=new Ue}rn.Object.defineProperties(lh.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var sd="DraggingInfo";lh.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function st(){this.reset()}st.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Gi(NaN,NaN).freeze(),this.gridSnapCellSpot=ol,this.gridSnapOrigin=new Ue(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},st.className="DraggingOptions";function ft(a,y){if(typeof a=="string"||Ne.Element&&a instanceof Element)var x=Kn.call(this,a)||this;else x=Kn.call(this)||this,y=a;return At(x),y&&x.nm(y),x}kn(ft,Kn);function At(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Fl,a.layout=new ih}ft.prototype.reset=function(){Kn.prototype.reset.call(this),At(this)},ft.className="Palette";function xt(a,y){if(typeof a=="string"||Ne.Element&&a instanceof Element)var x=Kn.call(this,a)||this;else x=Kn.call(this)||this,y=a;var b=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new $r;var E=new ko;return E.stroke="magenta",E.strokeWidth=2,E.fill="transparent",E.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(E),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Gr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new He,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new Ue(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),Pe(b)},x.Xd=function(){b.observed!==null&&(b.Ya(),b.N())},x.Ha=function(){1>b.updateDelay?b.N():b.o||(b.o=!0,setTimeout(function(){return b.redraw()},b.updateDelay))},x.Of=function(){b.observed!==null&&Pe(b)},x.autoScale=Kl,x.vb=!1,y&&Object.assign(x,y),x}kn(xt,Kn),xt.prototype.computePixelRatio=function(){return 1},xt.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(Eh(this),this.ql===null){var x=new Tu(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),te(this)}finally{this.ta=a,this.ib=y}}}Kn.prototype.redraw.call(this)},xt.prototype.gc=function(){if(this.Ka===null&&mn("No div specified"),this.ta===null&&mn("No canvas specified"),!(this.ta instanceof _u)&&(wv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Eh(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?te(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,b=0;b<x;b++)y[b].gc(a,this);this.Fc=this.vd=!1}}};function te(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,b=a.drawsGrid&&x,E=y.grid;b&&E!==null&&E.visible&&!isNaN(E.width)&&!isNaN(E.height)&&(E=ui.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Pc(y,E),ui.free(E),Hl(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var nt=0;nt<z;nt++){var ot=y[nt],at=a;if(ot.visible&&ot.opacity!==0){var ut=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&&ut.layer===ot&&(ot=hu(ot,E),ut.gc(E,at),E.globalAlpha=ot);else{for(var ct=hu(ot,E),gt=at.scale,Nt=ui.alloc(),zt=ot.Pa.s,Xt=zt.length,ue=0;ue<Xt;ue++){var Qe=zt[ue];(b||Qe!==ut)&&ot.Oj(E,Qe,at,null,gt,Nt,!1)}ui.free(Nt),E.globalAlpha=ct}}}}}function Pe(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Gi.alloc();E.h(x.width,x.height),b.desiredSize=E,Gi.free(E),a=2/a.scale,b instanceof ko&&(b.strokeWidth=a),y.location=new Ue(x.x-a/2,x.y-a/2),y.isSelected=!0}}}xt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return As;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},xt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},xt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Pe(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},rn.Object.defineProperties(xt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof xt&&mn("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),Pe(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Pe(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),xt.className="Overview";function He(){En.call(this),this.j=null}kn(He,En),He.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Ue(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ue(a.x-this.j.x,a.y-this.j.y)),!0)},He.prototype.doActivate=function(){this.j=null,En.prototype.doActivate.call(this)},He.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},He.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var b=a.firstInput.documentPoint;x=x.location,this.j=new Ue(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ue(a.x-this.j.x,a.y-this.j.y)}}},He.className="OverviewDraggingTool";function Re(){Xo(this),this.H=Oh,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=As,this.hb=!0,this.cg=null,this.ob=200}Re.prototype.toString=function(){return"CommandHandler"},Re.prototype.Xe=function(a){this.H=a},Re.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=xs?y.meta:y.control,b=y.shift,E=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||b&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||b&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||E&&b&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||E&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?b&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?b&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():b&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!b&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&b&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},Re.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Re.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof oe&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Re.prototype.canStopCommand=function(){return!0},Re.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var b=a.links;b.next();)b.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},Re.prototype.canSelectAll=function(){return this.diagram.allowSelect},Re.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Pi,x=a.selection.iterator;x.next();)ng(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(b){return b.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},Re.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Re.prototype.copySelection=function(){var a=this.diagram,y=new Pi;for(a=a.selection.iterator;a.next();)ng(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Re.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Re.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Re.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Re.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)iu=null,ru="";else{x=y.model;var b=!1,E=!1,z=null;try{x.Tl()&&(b=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(E=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=b),x.Wj()&&(x.Ij=E),x=new Bi,x.addAll(z),iu=x,ru=y.model.dataFormat}}y.R("ClipboardChanged",x)},Re.prototype.pasteFromClipboard=function(){var a=new Pi,y=iu;if(y===null)return a;var x=this.diagram;if(ru!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,nt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),nt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=nt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},Re.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);xh(y,z,new Ue(a.x-E.centerX,a.y-E.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Re.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||iu===null||iu.count===0||ru!==a.model.dataFormat)},Re.prototype.undo=function(){this.diagram.undoManager.undo()},Re.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Re.prototype.redo=function(){this.diagram.undoManager.redo()},Re.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Re.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Ga&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Re.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ga?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Re.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ga&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Re.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ga?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Re.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Re.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Re.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ul(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&b===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=As):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),fo(y)},Re.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Re.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(at){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Ul(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=un(this,a,[a]);if(E.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var at=E.pop();0<E.length&&at instanceof cr&&at.isTreeExpanded&&(!(at instanceof To)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof $r&&y.tv(at.actualBounds),at instanceof cr&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof To&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof $r&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){Ii(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",nt),z()}}else{var ot=y.position.copy();y.es(a.actualBounds),ot.Xa(y.position)&&x.Cc()}}};function un(a,y,x){if(y.isVisible())return x;if(y instanceof Ls)un(a,y.adornedPart,x);else if(y instanceof Zi){var b=y.fromNode;b!==null&&un(a,b,x),y=y.toNode,y!==null&&un(a,y,x)}else y instanceof cr&&(b=y.labeledLink,b!==null&&un(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),un(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),un(a,y,x));return x}Re.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof $r)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Re.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ul(y.animationManager,"Collapse Tree");var x=new Bi;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof cr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Re.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof cr&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof cr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Re.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ul(y.animationManager,"Expand Tree");var x=new Bi;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof cr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Re.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof cr)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof cr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Re.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var b=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var E=new Bi,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new Bi,at=E.iterator;at.next();){var ut=at.value;z=!1;for(var ct=E.iterator;ct.next();)if(ut.Td(ct.value)){z=!0;break}z||ot.add(ut)}if(0<ot.count){var gt=ot.first().containingGroup;if(gt!==null)for(;gt!==null;){E=!1;for(var Nt=ot.iterator;Nt.next();)if(!Nt.value.Td(gt)){E=!0;break}if(E)gt=gt.containingGroup;else break}if(x instanceof To)ou(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var zt=y.copyNodeData(x);On(zt)&&(y.xf(zt),b=a.ii(zt))}if(b!==null){gt!==null&&this.isValidMember(gt,b)&&(b.containingGroup=gt);for(var Xt=ot.iterator;Xt.next();){var ue=Xt.value;this.isValidMember(b,ue)&&(ue.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Re.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function si(a){var y=sr();for(a=a.iterator;a.next();){var x=a.value;x instanceof Zi||y.push(x)}a=new Pi,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,nt=0;nt<x;nt++)if(E.Td(y[nt])){z=!1;break}z&&a.add(E)}return Br(y),a}Re.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Zi)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},Re.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var b=new Bi;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof To&&z.canUngroup()&&b.add(z)}var nt=new Bi;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ut=at.containingGroup,ct=ut!==null&&ut.data!==null?x.wa(ut.data):void 0;nt.addAll(at.memberParts);for(var gt=nt.iterator;gt.next();){var Nt=gt.value;if(Nt.isSelected=!0,!(Nt instanceof Zi)){var zt=Nt.data;zt!==null?x.mp(zt,ct):Nt.containingGroup=ut}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Re.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof To))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof To&&y.canUngroup())return!0;return!1},Re.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=si(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Re.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ul(y.animationManager,"Collapse SubGraph");var x=new Bi;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof To&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Re.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof To&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof To&&y.isSubGraphExpanded)return!0;return!1},Re.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ul(y.animationManager,"Expand SubGraph");var x=new Bi;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof To&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Re.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof To&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof To&&!y.isSubGraphExpanded)return!0;return!1},Re.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var b=y.selection.iterator;b.next();){var E=b.value;if(E.canEdit()){a=E;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof oa&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Re.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof oa))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof oa&&x.editable}),a!==null))return!0;return!1},Re.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var b=y.lastInput,E=null;a instanceof pn?E=a.ga(Eo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Ue(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,hs(x,!1,a)}},Re.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},Re.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new gr,a===null)return b;for(var z=a.iterator;z.next();)Zu(x,b,z.value,E,y);if(x.draggedLink!==null&&y.dragsLink)return b;for(z=a.iterator;z.next();)a=z.value,a instanceof Zi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},rn.Object.defineProperties(Re.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||mn("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),Re.className="CommandHandler",gc=function(){return new Re};function pn(){Xo(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ue(NaN,NaN).freeze(),this.jd=yl,this.Ab=new Ro,this.wh=new Ro,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Su,this.uc=new ui(NaN,NaN,NaN,NaN).freeze(),this.Ib=new ui(NaN,NaN,NaN,NaN).freeze(),this.dc=new ui(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Fs,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var Oi,Ei,Sr,Dr,eo,vo,Zo,No,as,ks;pn.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Pr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},pn.prototype.Vw=function(a){var y=this.Dh;if(Si(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},pn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},pn.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},pn.prototype.copy=function(){return this.clone()},Yt=pn.prototype,Yt.qb=function(a){a.classType===Zi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:mn("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===pn&&(this.stretch=a)},Yt.toString=function(){return dr(this.constructor)+"#"+fs(this)},Yt.th=function(){this.A!==null&&(this.A.nc=!0)};function Io(a){a.A===null?a.A=new GA:a.A.nc&&(a.A=a.A.copy())}Yt.Xc=function(){if(this.ba===null){var a=new Kf;a.Xi=Xa,a.yj=Xa,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Yt.cb=function(a,y,x,b,E,z,nt){var ot=this.part;if(ot!==null&&(ot.gk(a,y,x,b,E,z,nt),x===this&&a===Ma&&du(this)&&ea(this,ot,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new gr),nt=z.undoManager.transactionLevel===0,a.startCondition===Ca?nt=!0:a.startCondition===gl&&(nt=!1),nt?(z=new Ha,da(a,z),nt=this.jo.get(a),nt!==null&&nt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Ul(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof fi&&x===ot&&(ot.l&16777216)!==0&&ot.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)ot=x[E],ot instanceof fi&&dl(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function ea(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,nt=null;if(z.sourceName!==null){if(nt=k1(z,b,a),nt===null)continue;z.sp(a,nt,x,null)}else if(z.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,ot.model.modelData,x,b)}else{if(ot=b.data,ot===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||z.sp(a,ot,x,b)}nt===a&&(ot=b.ks(z.Ai),ot!==null&&z.Mv(ot,nt,x))}}Yt.ks=function(a){return this.bindingId===a?this:null},Yt.g=function(a,y,x){this.cb(Ma,a,this,y,x)},Yt.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Ro);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Bl(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Yt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Ea(a.x,a.y,0,0,0,b.height)<=y||Ea(a.x,a.y,0,b.height,b.width,b.height)<=y||Ea(a.x,a.y,b.width,b.height,b.width,0)<=y||Ea(a.x,a.y,b.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,b.height)<=y&&a.zd(b.width,0)<=y&&a.zd(b.width,b.height)<=y},Yt.se=function(){return!0},Yt.ca=function(a){var y=Ue.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ue.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),nt=z/2,ot=this.naturalBounds;b=this.Df()*b.scale;var at=1/b;if(ot.width*b<E&&ot.height*b<E)return a=_s(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),Ue.free(y),a}return E=!1,(this instanceof Ls||this instanceof ko?_s(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Ue.free(y),E},Yt.gh=function(a){var y=this.naturalBounds;return _s(0,0,y.width,y.height,a.x,a.y)},Yt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=ui.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Ue.allocAt(a.x,a.y);return y.ca(x.Cd(E))&&(E.h(a.x,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.bottom),y.ca(x.Cd(E))&&(E.h(a.right,a.y),y.ca(x.Cd(E))&&(b=!0)))),Ue.free(E),ui.free(y),b},Yt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Ue.allocAt(0,0);return a.ca(y.Ga(E))&&(E.h(0,x.height),a.ca(y.Ga(E))&&(E.h(x.width,x.height),a.ca(y.Ga(E))&&(E.h(x.width,0),a.ca(y.Ga(E))&&(b=!0)))),Ue.free(E),b},Yt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Ue.allocAt(0,0),E=Ue.allocAt(0,x.height),z=Ue.allocAt(x.width,x.height),nt=Ue.allocAt(x.width,0),ot=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(nt)))ot=!0;else{x=ui.allocAt(0,0,x.width,x.height);var at=Ue.allocAt(a.x,a.y);x.ca(y.Cd(at))?ot=!0:(at.h(a.x,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.y),x.ca(y.Cd(at))&&(ot=!0)))),Ue.free(at),ui.free(x),!ot&&(Ln.us(a,b,E)||Ln.us(a,E,z)||Ln.us(a,z,nt)||Ln.us(a,nt,b))&&(ot=!0)}return Ue.free(b),Ue.free(E),Ue.free(z),Ue.free(nt),ot},Yt.ga=function(a,y){if(y===void 0&&(y=new Ue),a instanceof fr){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Yt.mi=function(a){a===void 0&&(a=new ui);var y=this.naturalBounds,x=this.oe,b=Ue.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Es(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Es(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Es(a,b.x,b.y,0,0),Ue.free(b),a},Yt.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},Yt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Yt.qs=function(a,y){return y===void 0&&(y=new Ue),y.assign(a),this.oe.Cd(y),y},Yt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Yt.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ut=-z.m21*nt,ct=z.m11*nt,gt=nt*(z.m21*z.dy-z.m22*z.dx),Nt=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Ln.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*ot+y*ut+gt,a=a*at+y*ct+Nt,y=x*ot+b*ut+gt,x=x*at+b*ct+Nt,E.h(0,0),b=this.naturalBounds,x=Ln.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},pn.prototype.measure=function(a,y,x,b){if(Sh(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var nt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+nt:a,y=isFinite(E.width)?E.width+nt:y):(a=isFinite(E.width)?E.width+nt:a,y=isFinite(E.height)?E.height+nt:y),E=x||0,nt=b||0;var ot=this instanceof fi;switch(uh(this,!0)){case Ei:nt=E=0,ot&&(y=a=1/0);break;case Oi:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case Dr:isFinite(a)&&a>x&&(E=a),nt=0,ot&&(y=1/0);break;case eo:isFinite(y)&&y>b&&(nt=y),E=0,ot&&(a=1/0)}ot=this.maxSize;var at=this.minSize;E>ot.width&&at.width<ot.width&&(E=ot.width),nt>ot.height&&at.height<ot.height&&(nt=ot.height),x=Math.max(E,at.width),b=Math.max(nt,at.height),ot.width<x&&(x=Math.min(at.width,x)),ot.height<b&&(b=Math.min(at.height,b)),a=Math.min(ot.width,a),y=Math.min(ot.height,y),a=Math.max(x,a),y=Math.max(b,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=b,b=z),this.uc.ka(),this.Wl(a,y,x,b),this.uc.freeze(),this.uc.w()||mn("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Tl(this,!1)}},pn.prototype.Wl=function(){},pn.prototype.Dd=function(){return!1},pn.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=ui.alloc();z.assign(this.Ib),this.Ib.ka(),eh(this)===!1?this.Ib.h(a,y,x,b):this.eh(a,y,x,b),this.Ib.freeze(),E===void 0?this.tb=null:this.tb=E,x=!1,E!==void 0?x=!0:(E=this.panel,E!==null&&Ol(E)&&(E=E.panel),E!==null&&(E=E.dc,b=this.measuredBounds,this.areaBackground!==null&&(b=this.Ib),x=y+b.height,b=a+b.width,x=!(0<=a+.05&&b<=E.width+.05&&0<=y+.05&&x<=E.height+.05),this instanceof oa&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||mn("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Wc(this,!1),ui.free(z)},Yt=pn.prototype,Yt.eh=function(){};function ku(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var nt=x.top+x.bottom;switch(x=z.width+y,z=z.height+nt,b+=y,E+=nt,y=uh(a,!0),x===b&&z===E&&(y=Ei),y){case Ei:(x>b||z>E)&&(Tl(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Oi:Tl(a,!0),a.measure(b,E,0,0);break;case Dr:Tl(a,!0),a.measure(b,z,0,0);break;case eo:Tl(a,!0),a.measure(x,E,0,0)}}}Yt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Cv(x,!0),this.N(),su(a,y)||(x.oh(),this.Pn(x)))},Yt.Pn=function(a){this.portId!==null&&(Cv(a,!0),a instanceof cr&&$y(a,this))},Yt.gc=function(a,y){if(!ml(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var b=1;x!==1&&(b=a.globalAlpha,a.globalAlpha=b*x);var E="";this.filter!==""&&(E=a.filter,a.filter=this.filter);var z=this instanceof fi&&Ol(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ut=this.areaBackground,ct=this.Ma;ut===null&&ct===null||a.yc(),ut!==null&&(wa(this,a,ut,!0,!0,at,ot),ut instanceof js&&ut.type===Me?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ct!==null&&(wa(this,a,ct,!0,!1,at,ot),ct instanceof js&&ct.type===Me?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ct)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){z=this.transform,ot=this.panel,this.l&4096&&Il(this),ut=this.part,at=!1;var gt=0;ut&&y.Gf("drawShadows")&&(at=ut.isShadowed)&&(ct=ut.shadowOffset,gt=Math.max(ct.y,ct.x)*y.scale*y.Mb),ct=this.Dd();var Nt;if(!(Nt=y.$i||!ct)){var zt=this.naturalBounds;Nt=this.wh;var Xt=Nt.m11,ue=Nt.m21,Qe=Nt.dx,ke=Nt.m12,Ze=Nt.m22,en=Nt.dy,an,Cn=an=0;Nt=an*Xt+Cn*ue+Qe;var Zn=an*ke+Cn*Ze+en;an=zt.width+gt,Cn=0;var ir=an*Xt+Cn*ue+Qe;an=an*ke+Cn*Ze+en,Cn=Math.min(Nt,ir);var Mr=Math.min(Zn,an),wr=Math.max(Nt+0,ir)-Cn,Vi=Math.max(Zn+0,an)-Mr;Nt=Cn,Zn=Mr,an=zt.width+gt,Cn=zt.height+gt,ir=an*Xt+Cn*ue+Qe,an=an*ke+Cn*Ze+en,Cn=Math.min(Nt,ir),Mr=Math.min(Zn,an),wr=Math.max(Nt+wr,ir)-Cn,Vi=Math.max(Zn+Vi,an)-Mr,Nt=Cn,Zn=Mr,an=0,Cn=zt.height+gt,ir=an*Xt+Cn*ue+Qe,an=an*ke+Cn*Ze+en,Cn=Math.min(Nt,ir),Mr=Math.min(Zn,an),wr=Math.max(Nt+wr,ir)-Cn,Vi=Math.max(Zn+Vi,an)-Mr,Nt=Cn,Zn=Mr,gt=y.viewportBounds,zt=gt.x,Xt=gt.y,Nt=!(Nt>gt.width+zt||zt>wr+Nt||Zn>gt.height+Xt||Xt>Vi+Zn)}if(Nt){if(Nt=(this.l&256)!==0,a.clipInsteadOfFill&&(Nt=!1),this instanceof oa&&(a.font=this.font),Nt){if(Zn=ot.se()?ot.naturalBounds:ot.actualBounds,wr=Math.max(nt.x,Zn.x),Vi=Math.max(nt.y,Zn.y),gt=Math.min(nt.right,Zn.right)-wr,zt=Math.min(nt.bottom,Zn.bottom)-Vi,Xt=this.tb,Xt!==null&&(wr=Xt.x,Vi=Xt.y,gt=Xt.width,zt=Xt.height),wr>nt.width+nt.x||nt.x>Zn.width+Zn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(wr,Vi,gt,zt),a.clip()}if(ct){if(!ut.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(Zn=ut.shadowOffset,a.Ev(Zn.x*y.scale*this.scale*y.Mb,Zn.y*y.scale*this.scale*y.Mb,ut.shadowBlur),kd(a),a.shadowColor=ut.shadowColor)}at&&this.shadowVisible===!0?kd(a):at&&this.shadowVisible===!1&&ld(a),ut=this.naturalBounds,this.areaBackground!==null&&(a.yc(),yu(this,a,ut,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&cl(this,ot)&&this.shadowVisible===null&&ld(a),this.Ma!==null&&(a.yc(),Na(this,a,ut,nt)),at&&(this.Ma!==null||this.areaBackground!==null||cl(this,ot))?(wu(this,!0),this.shadowVisible===null&&ld(a)):wu(this,!1),this.hh(a,y),at&&this.l&512&&kd(a),ct&&at&&ld(a),Nt&&(a.restore(),a.Vc(this instanceof fi)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E)}}};function cl(a,y){return y===null?!1:(Ol(y)&&(y=y.panel),(y.l&512)!==0||(y.type===fi.Auto||y.type===fi.Spot)&&y.Pb()!==a)}Yt.Dv=function(){};function yu(a,y,x,b){wa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof js&&a.areaBackground.type===Me?(y.beginPath(),y.rect(b.x,b.y,b.width,b.height),y.ng(a.areaBackground)):y.fillRect(b.x,b.y,b.width,b.height)}function Na(a,y,x,b){var E=a.kq(),z=x.x,nt=x.y,ot=x.width+E,at=x.height+E;wa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof js&&a.Ma.type===Me?(y.beginPath(),y.rect(z-E/2,nt-E/2,ot,at),y.ng(a.Ma)):y.fillRect(z-E/2,nt-E/2,ot,at)}function ya(a,y,x){for(var b=y.O.s,E=b.length,z=-1,nt=0;nt<E;nt++)if(b[nt]===a){z=nt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===fi.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function ml(a,y,x){if(!(y instanceof nh))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var b=a.panel,E=a.nk(y);if(a.kk(y,x,E))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):b&&ya(a,b,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),kd(y),y.shadowColor=a.shadowColor}a instanceof oa&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof fi;var ot=a instanceof fi?Ol(a):!1;a.l&4096&&Il(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(Ec(y,1,0,0,1,0,0),a.svg=y.ad):z?(Ec(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):Ec(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ut=nt.copy().Vj();y.rb.ha=[ut.m11,ut.m12,ut.m21,ut.m22,ut.dx,ut.dy],yu(a,y,E,at),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(z?(ot&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),Na(a,y,E,at),ot&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],Na(a,y,E,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,E=a.part,ot=!1,E&&x.Gf("drawShadows")&&(ot=E.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&kd(y),ot&&a.shadowVisible===!0?kd(y):ot&&a.shadowVisible===!1&&ld(y),E=a.panel,ot&&cl(a,E)&&a.shadowVisible===null&&ld(y),y.Il&&(ut=x.computePixelRatio(),ut="drop-shadow("+y.shadowOffsetX/ut+"px "+y.shadowOffsetY/ut+"px "+y.shadowBlur/ut/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ut),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ut)),ot&&(a.Ma!==null||a.areaBackground!==null||cl(a,E))?(wu(a,!0),a.shadowVisible===null&&ld(y)):wu(a,!1),E=ot,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,ot=z?a.svg:y.yd,ut=a.svg,!z&&ut!==null&&ot!==ut&&ut.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),vl(y,ut),!0):(a.svg=ot,nt!==null&&ot===null&&(Id(y),y.nh.pop()),ot===null||(a.$o(y,b,at,ot),y.Il&&(x=x.computePixelRatio(),a.Dv(ot,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&kd(y),a.Dd()&&ld(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ot.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ot.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ot):y.Nj.prepend(ot),y.ti=ot):b!==null&&ya(a,b,ot),nt!==null&&nt(a,ot)),!0)}Yt.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var nt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,nt=z.width,x=z.height),z=b.getAttribute("clip-path");var ot=null;z!==null&&(ot=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ot===null?(z="CLIP"+ba++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof fi&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),ot.appendChild(y),a.svg.appendChild(ot),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ot.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",nt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),vl(a,b)};function vl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Co(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Jo(y);for(var b=y.next();!b.done;b=y.next())b=x.getElementById(b.value.split("#")[1].slice(0,-1)),b!==null&&b.remove()}a.svg.remove()}}Yt.hh=function(){},Yt.lv=function(){this.Uc=!0},Yt.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var b=this.transform,E=this instanceof fi?Ol(this):!1;if(!(this instanceof fi&&E))if(this instanceof cc){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Sp(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",zg(a)):y.setAttributeNS(null,"transform",zg(a))}else if(!x||this instanceof fi)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof ko){z=y.getElementsByTagName("path");for(var nt=0;nt<z.length;nt++)z[nt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(nt=b.copy().Vj(),a.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],yu(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(nt=y.gd.getAttribute("filter"),nt!==null&&a.ad.setAttribute("filter",nt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&Td(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(Td(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof fi))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Na(this,a,this.naturalBounds,this.actualBounds),y.Ma?(Td(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&Td(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Yt.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function wa(a,y,x,b,E,z,nt){if(x!==null){var ot=1,at=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Qt)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ut=a.kq();if(ot=z.width,at=z.height,E?(ot=nt.width,at=nt.height):b||(ot+=ut,at+=ut),(z=y instanceof XA)&&x.xe&&(x.type===ln||x.yk===ot&&x.ft===at))var ct=x.xe;else{var gt=0,Nt=0,zt=0,Xt=0,ue=0,Qe=0;if(Qe=ue=0,E?(ue=nt.x,Qe=nt.y):b||(ue-=ut/2,Qe-=ut/2),gt=x.start.x*ot+x.start.offsetX,Nt=x.start.y*at+x.start.offsetY,zt=x.end.x*ot+x.end.offsetX,Xt=x.end.y*at+x.end.offsetY,gt+=ue,zt+=ue,Nt+=Qe,Xt+=Qe,x.type===de)ct=y.createLinearGradient(gt,Nt,zt,Xt);else if(x.type===Me)Qe=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(ue=0,Qe=Math.max(ot,at)/2):ue=x.startRadius,ct=y.createRadialGradient(gt,Nt,ue,zt,Xt,Qe);else if(x.type===ln)try{ct=y.createPattern(x.pattern,"repeat")}catch(Ze){ct=null}if(x.type!==ln&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ct.addColorStop(E.key,E.value);if(z&&(x.xe=ct,ct!==null&&(x.yk=ot,x.ft=at),ct===null&&x.type===ln&&x.yk!==-1)){x.yk=-1;var ke=a.diagram;ke!==null&&x.yk===-1&&Ii(function(){ke.redraw()},600)}}b?y.fillStyle=ct:y.strokeStyle=ct}}}Yt.rg=function(a){if(a instanceof fi)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},Yt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Yt.If=function(){for(var a=this instanceof fi?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Il(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){uc(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}uc(a,!1),hh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,hh(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,hh(a,!1)))}Yt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ue.alloc();z.yi(y,x,b,E,Eo),a.rotate(this.Kb,z.x,z.y),Ue.free(z)}},Yt.v=function(a){if(!Sh(this)){a===void 0&&(a=!1),Tl(this,!0),Wc(this,!0);var y=this.panel;y===null||a||y.v()}},Yt.Uj=function(){Sh(this)||(Tl(this,!0),Wc(this,!0))};function kl(a){if(!eh(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof cr&&a.Bd(),y.$b())),Wc(a,!0)}}Yt.Uk=function(){!(this.l&2048)&&(uc(this,!0),hh(this,!0))},Yt.Wu=function(){hh(this,!0)},Yt.N=function(){var a=this.part;a!==null&&a.N()};function uh(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===fi.Table?Da(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===fi.Auto&&b.Pb()===a?Hs(a,Oi,y):x===vo?b!==null?b.type===fi.Spot&&b.Pb()===a?Hs(a,Oi,y):(x=b.defaultStretch,x===vo?Hs(a,Ei,y):Hs(a,x,y)):Hs(a,Ei,y):Hs(a,x,y)}function Da(a,y,x,b){var E=a.stretch;if(E!==vo)return Hs(a,E,b);var z=E=null;switch(y.stretch){case eo:z=!0;break;case Oi:z=!0}switch(x.stretch){case Dr:E=!0;break;case Oi:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Dr||y===Oi),z===null&&(z=y===eo||y===Oi),E===!0&&z===!0?Hs(a,Oi,b):E===!0?Hs(a,Dr,b):z===!0?Hs(a,eo,b):Hs(a,Ei,b)}function Hs(a,y,x){if(x)return y;if(y===Ei||(x=a.desiredSize,x.w()))return Ei;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Dr)return Ei;if(y===Oi)return eo}else{if(y===eo)return Ei;if(y===Oi)return Dr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===eo)return Ei;if(y===Oi)return Dr}else{if(y===Dr)return Ei;if(y===Oi)return eo}return y}function wu(a,y){a.l=y?a.l|512:a.l&-513}function du(a){return(a.l&1024)!==0}function ad(a,y){a.l=y?a.l|1024:a.l&-1025}function uc(a,y){a.l=y?a.l|2048:a.l&-2049}function hh(a,y){a.l=y?a.l|4096:a.l&-4097}function Sh(a){return(a.l&8192)!==0}function Tl(a,y){a.l=y?a.l|8192:a.l&-8193}function eh(a){return(a.l&16384)!==0}function Wc(a,y){a.l=y?a.l|16384:a.l&-16385}Yt.Gj=function(){this.svg=null},Yt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Yt.Av=function(){},Yt.zv=function(a){return this.pa=a,kl(this),!0},Yt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Yt.kq=function(){return 0};function Jd(a){var y=a.part;if(y instanceof cr&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||$y(y,a)}}function zf(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof fi?a instanceof cr?a.Bd():a.qm(a,function(x){Jd(x)}):Jd(a))}Yt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ql(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&TA(a)&&mn("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Bi),this.localBindings.add(E),this},Yt.set=function(a){return Object.assign(this,a),this},Yt.Du=function(a){return Sg(this,a),this},Yt.apply=function(a){return a(this),this},Yt.nm=function(a){return fh(this,a),this},Yt.pz=function(){return this.ih()},Yt.ih=function(){for(var a=this instanceof fi?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Yt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new gr),this.animationTriggers.add(a.propertyName,a),this};function Lh(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var b=null,E=null;if(typeof a=="function")E=a;else if(typeof a=="string"){var z=wf.I(a);typeof z=="function"?(x=Pr(arguments),b=z(x),On(b)||mn('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ne.go[a]}if(b===null&&(E!=null&&E.constructor||mn("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),b=new E),E=1,b instanceof Kn&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(xd(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?mn("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):Sg(b,z);return b}function Sg(a,y){if(typeof y=="string")if(a instanceof oa)a.text=y;else if(a instanceof ko)a.figure=y;else if(a instanceof cc)a.source=y;else if(a instanceof fi)y=ch.I(y),y!==null&&(a.type=y);else if(a instanceof js){var x=Tr(js,y);x!==null?a.type=x:mn("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof $i?(y=Tr($i,y),y!==null&&(a.type=y)):a instanceof ys&&(y=Tr(ys,y),y!==null&&(a.type=y));else if(y instanceof pn)a instanceof fi||mn("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Zl){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof Zl?Xf(b,y):mn("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof jn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Sn)a.type=y;else if(y instanceof ql)a instanceof pn||a instanceof Zl?a.bind(y):mn("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof wh)a instanceof pn?a.Jv(y):mn("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof nl)a instanceof $i&&a.type===$i.o?a.figures.add(y):mn("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof ys)a instanceof nl?a.segments.add(y):mn("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Va)a instanceof Kn||a instanceof To?a.layout=y:mn("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)Sg(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof js){x=new _r;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);fh(a,x)}else if(a instanceof Zl){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&mn("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+E),a.isRow=!0,a.index=E):y.column!==void 0&&(E=y.column,(E==null||E===1/0||isNaN(E)||0>E)&&mn("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new _r;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);fh(a,E)}else fh(a,y);else mn('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Md(a,y){wf.add(a,y)}function yf(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}rn.Object.defineProperties(pn.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new GA),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new GA),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new GA),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Io(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Io(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Xh},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Xh&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new NA),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:qo},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new NA),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:vo},set:function(a){var y=this.stretch;y!==a&&(Io(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Io(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Mi(a,"0 <= value <= 1",pn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ng(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ng(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),zf(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Ht(a,"GraphObject.areaBackground"),a instanceof js&&a.freeze(),Io(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ht(a,"GraphObject.background"),a instanceof js&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof $r)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,b=this.pa,E=b.x;b=b.y,(E===y||isNaN(E)&&isNaN(y))&&(b===x||isNaN(b)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,E,b)&&this.g("position",new Ue(E,b),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&mn("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,zf(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,b=this.jd,E=b.width,z=b.height;(E===y||isNaN(E)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof ko&&this.qc(),this.g("desiredSize",b,a),du(this)&&(a=this.part,a!==null&&(ea(this,a,"width"),ea(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Gi(a,this.jd.height).freeze(),this.v(),this instanceof ko&&this.qc(),this.g("desiredSize",y,a),du(this)&&(a=this.part,a!==null&&ea(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Gi(this.jd.width,a).freeze(),this.v(),this instanceof ko&&this.qc(),this.g("desiredSize",y,a),du(this)&&(a=this.part,a!==null&&ea(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ms},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Io(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ks},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Io(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&Il(this),this.Ab}},oe:{get:function(){return this.l&4096&&Il(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Io(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Ei},set:function(a){this.reshapingBehavior!==a&&(Io(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&mn("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),kl(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Mi(a,">= 0",pn,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Mi(a,">= 1",pn,"columnSpan"),Io(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Mi(a,">= 0",pn,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Mi(a,">= 1",pn,"rowSpan"),Io(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Io(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof cr||mn("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Ev(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,qy(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Xa},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Jd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Mi(a,">= 0",pn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Jd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Jd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Mi(a,">= 0",pn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Xa},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Jd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Mi(a,">= 0",pn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Jd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Jd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Mi(a,">= 0",pn,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Io(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Io(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Io(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Io(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Io(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Io(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Io(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Io(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Io(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Io(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Io(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Io(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Io(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Io(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Io(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Io(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Io(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Io(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),pn.prototype.trigger=pn.prototype.Jv,pn.prototype.findBindingPanel=pn.prototype.ih,pn.prototype.findTemplateBinder=pn.prototype.pz,pn.prototype.setProperties=pn.prototype.nm,pn.prototype.apply=pn.prototype.apply,pn.prototype.attach=pn.prototype.Du,pn.prototype.set=pn.prototype.set,pn.prototype.isEnabledObject=pn.prototype.If,pn.prototype.isVisibleObject=pn.prototype.Ed,pn.prototype.isContainedBy=pn.prototype.rg,pn.prototype.getNearestIntersectionPoint=pn.prototype.rs,pn.prototype.getLocalPoint=pn.prototype.qs,pn.prototype.getDocumentScale=pn.prototype.Df,pn.prototype.getDocumentAngle=pn.prototype.li,pn.prototype.getDocumentBounds=pn.prototype.mi,pn.prototype.getDocumentPoint=pn.prototype.ga,pn.prototype.intersectsRect=pn.prototype.Yc,pn.prototype.containedInRect=pn.prototype.fh,pn.prototype.containsRect=pn.prototype.Re,pn.prototype.containsPoint=pn.prototype.ca,pn.prototype.raiseChanged=pn.prototype.g,pn.prototype.raiseChangedEvent=pn.prototype.cb,pn.prototype.addCopyProperty=pn.prototype.Vw;var wf=null;pn.className="GraphObject",wf=new gr,Md("Button",function(){function a(x,b){return x.diagram.ic(x.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E},function(E){return E===b})!==null}var y=Lh(fi,fi.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof fi){var E=x.fb("ButtonBorder");E!==null&&(E.fill=b?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Lh(ko,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new fr(0,0,2.76142374915397,2.761423749153969),spot2:new fr(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof fi&&(x=b.fb("ButtonBorder"),x instanceof ko)){var E=b._buttonFillOver;b._buttonFillNormal=x.fill,x.fill=E,E=b._buttonStrokeOver,b._buttonStrokeNormal=x.stroke,x.stroke=E}},y.mouseLeave=function(x,b){b.If()&&b instanceof fi&&(x=b.fb("ButtonBorder"),x instanceof ko&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof fi&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof ko){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=nt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof fi&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof ko){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof fi&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof ko){var z=x.diagram,nt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof fi&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof ko))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),E.skipsUndoManager=z}}},y}),Md("TreeExpanderButton",function(){var a=Lh("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Lh(ko,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Js},new ql("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new ql("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Ls&&(x=x.adornedPart),x instanceof cr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isTreeExpanded){if(!b.canCollapseTree(x))return}else if(!b.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?b.collapseTree(x):b.expandTree(x)}}},a}),Md("SubGraphExpanderButton",function(){var a=Lh("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Lh(ko,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Js},new ql("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof Ls&&(x=x.adornedPart),x instanceof To){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Md("ToolTip",function(){return Lh(Ls,fi.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ue(0,3),shadowBlur:5},Lh(ko,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new fr(0,0,4,6),spot2:new fr(1,1,-4,-4)}))}),Md("ContextMenu",function(){return Lh(Ls,fi.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ue(0,3),shadowBlur:5},new ql("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Md("ContextMenuButton",function(){var a=Lh("Button");a.stretch=Dr;var y=a.fb("ButtonBorder");return y instanceof ko&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new fr(0,0,2,3),y.spot2=new fr(1,1,-2,-2)),a}),Md("PanelExpanderButton",function(a){var y=yf(a,"COLLAPSIBLE"),x=Lh("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},Lh(ko,{name:"ButtonIcon",strokeWidth:2},new ql("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof ko&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var nt=E.ih();nt===null&&(nt=E.part),nt!==null&&(E=nt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),Md("CheckBoxButton",function(a){var y=yf(a);return a=Lh("Button",{desiredSize:new Gi(14,14)},Lh(ko,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Oi,geometryStretch:Sr,visible:!1},y!==""?new ql("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof fi){var E=x.diagram;if(!(E===null||E.isReadOnly||y!==""&&E.model.isReadOnly)){x.handled=!0;var z=b.fb("ButtonIcon");E.Ea("checkbox"),z.visible=!z.visible,typeof b._doClick=="function"&&b._doClick(x,b),E.eb("checkbox")}}},a}),Md("CheckBox",function(a){a=yf(a),a=Lh("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Gr(0,1,0,0)});var y=Lh(fi,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Gr(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),pn.None=Ei=new jn(pn,"None",0),pn.Default=vo=new jn(pn,"Default",0),pn.Vertical=eo=new jn(pn,"Vertical",4),pn.Horizontal=Dr=new jn(pn,"Horizontal",5),pn.Fill=Oi=new jn(pn,"Fill",3),pn.Uniform=Sr=new jn(pn,"Uniform",1),pn.UniformToFill=Zo=new jn(pn,"UniformToFill",2),pn.FlipVertical=No=new jn(pn,"FlipVertical",1),pn.FlipHorizontal=as=new jn(pn,"FlipHorizontal",2),pn.FlipBoth=ks=new jn(pn,"FlipBoth",3),pn.make=Lh,pn.getBuilders=function(){var a=new gr,y;for(y in wf)if(y!==y.toLowerCase()){var x=wf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},pn.defineBuilder=Md,pn.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=wf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof pn))return y&&b.set(y),b;mn('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},pn.takeBuilderArgument=yf;function GA(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=Ms,this.o=Ks,this.hg=vo,this.ob=this.Bi=1,this.Pf=Ei,this.Pc=this.Ci=this.gd=null,this.Oc="category"}GA.prototype.copy=function(){var a=new GA;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function NA(){this.u=-1/0,this.o=0,this.F=qo,this.rr=Xh,this.j=this.V="None"}NA.prototype.copy=function(){var a=new NA;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},NA.className="LinkElementSettings";function Kf(){this.yj=this.Xi=Fs,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Kf.prototype.copy=function(){var a=new Kf;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},Kf.className="LinkSettings";function WA(){this.ha=[1,0,0,1,0,0]}WA.prototype.copy=function(){var a=new WA;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},WA.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},WA.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},WA.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,nt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=nt,this.translate(-y,-x)}},WA.className="STransform";function Nd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Nd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Nd.className="SGradient";function _u(a,y,x){this.ownerDocument=a=y===void 0?Ne.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new nh(this,x)}_u.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",b+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+b),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",b+"px"),!0):!1},_u.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),On(y))for(var b in y)a.setAttributeNS(b==="href"?"http://www.w3.org/1999/xlink":"",b,y[b]);return x!==void 0&&(a.textContent=x),a},_u.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},_u.prototype.focus=function(){this.Oa.focus()},_u.prototype.mx=function(){this.ownerDocument=null},rn.Object.defineProperties(_u.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),_u.className="SVGSurface";function nh(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new WA,this.j=Id(this),this.Nj=Id(this,"gojs-diagram"),this.Hl=this.ti=null;var x=ba++,b=this.Ud("clipPath",{id:"mainClip"+x});b.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=b,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(b),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function Gf(a,y,x,b,E,z,nt){a.Nj===void 0?Ec(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}Yt=nh.prototype,Yt.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ut=at-1e-6,ct=x*Math.cos(b),gt=x*Math.sin(b),Nt=a+ct,zt=y+gt,Xt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-Nt)||1e-6<Math.abs(ot-zt))&&this.path.push(["L",Nt,+zt]),0>b&&(b=b%at+at),b>ut?(this.path.push(["A",x,x,0,1,Xt,a-ct,y-gt]),this.path.push(["A",x,x,0,1,Xt,Nt,zt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Xt,a+x*Math.cos(E),y+x*Math.sin(E)])},Yt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Yt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Yt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Yt.clearRect=function(){},Yt.clip=function(){this.Yl.clipPath=!0},Yt.closePath=function(){this.path.push(["z"])},Yt.createLinearGradient=function(a,y,x,b){var E=new Nd("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Yt.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var b="PATTERN"+ba++,E={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:b,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(jh,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Yt.createRadialGradient=function(a,y,x,b,E,z){var nt=new Nd("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=E,nt.r2=z,nt};function Sp(a,y,x,b,E,z,nt,ot,at){b=ot/b,E=at/E,z===0&&nt===0||a.rb.translate(z,nt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Yt.drawImage=function(a,y,x,b,E,z,nt,ot,at){var ut="";a instanceof HTMLCanvasElement&&(ut=a.toDataURL()),a instanceof HTMLImageElement&&(ut=a.getAttribute("src"));var ct=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,ot=b=ct,at=E=a),b=b||0,E=E||0,ot=ot||0,at=at||0,Sp(this,y,x,b,E,z||0,nt||0,ot,at),z={x:0,y:0,width:ct||b,height:a||E,href:ut},Ln.$(b,ot)&&Ln.$(E,at)?ut.toLowerCase().indexOf(".svg")===-1&&ut.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ct||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),VA(this,jh,z,this.rb),this.addElement(jh,z)},Yt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),ZA(this,this.Yl)},Yt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Yt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},VA(this,"fill",a,this.rb),this.addElement("rect",a)},Yt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},VA(this,"fill",a,this.rb),ZA(this,a),this.svg.prepend(this.Ud("rect",a))},Yt.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},VA(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Yt.lineTo=function(a,y){this.path.push(["L",a,y])},Yt.moveTo=function(a,y){this.path.push(["M",a,y])},Yt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Yt.rect=function(a,y,x,b){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+b],["L",a,y+b],["z"])},Yt.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Yt.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},Yt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||Ec(this,a,y,x,b,E,z)};function zg(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Yt.scale=function(a,y){this.rb.scale(a,y)},Yt.translate=function(a,y){this.rb.translate(a,y)},Yt.transform=function(){},Yt.yc=function(){},Yt.stroke=function(){Cp(this,this.Yl)},Yt.jk=function(){this.clipInsteadOfFill||this.stroke()},Yt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Yt.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function VA(a,y,x,b){y==="fill"?ZA(a,x):y==="stroke"&&Cp(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function ZA(a,y){a.fillStyle instanceof Nd?y.fill=bc(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function Wf(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Nd?y.setAttributeNS(null,"fill",bc(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function Cp(a,y){if(a.strokeStyle instanceof Nd)y.stroke=bc(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function bc(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+ba++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],nt=0;nt<y;nt++){var ot=E[nt],at=ot.color;ot={offset:ot.offset,"stop-color":at},/^rgba\(/.test(at)&&(at=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(at),ot["stop-color"]="rgb("+at[1]+","+at[2]+","+at[3]+")",ot["stop-opacity"]=at[4]),z.push(ot)}for(z.sort(function(ut,ct){return ut.offset>ct.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Yt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Pr(a[E]),nt=[z.shift()];if(nt[0]==="A")nt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)nt.push(z.shift()+","+z.shift());b.push(nt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,VA(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ot in a)ot!=="transform"&&y.setAttributeNS(null,ot,a[ot]);else{ot=y.getElementsByTagName("path");for(var at in a)at!=="transform"&&ot[x].setAttributeNS(null,at,a[at])}else this.addElement("path",a)};function Ec(a,y,x,b,E,z,nt){var ot=new WA;ot.ha=[y,x,b,E,z,nt],y={},VA(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function Id(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Yt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function ld(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function kd(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Yt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Yt.fs=function(){this.Ct=!1},Yt.Vc=function(){},Yt.Wx=function(){},nh.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},nh.prototype.getImageData=function(){return null},nh.prototype.measureText=function(){return null};function Td(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}nh.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},nh.className="SVGContext",Kn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new _u(this,Ne.document));var y=new _u(this,Ne.document,!0);a===void 0&&(a=new _r);var x=this;return ms(this,function(b,E){return b=Ys(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},Kn.prototype.makeSvg=Kn.prototype.Cs,Kn.prototype.av=function(a){return this.Cs(a)},Kn.prototype.makeSVG=Kn.prototype.av;function Tu(a,y,x,b){this.ownerDocument=y=y===void 0?Ne.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new XA(y,x,b),y.H=a}Tu.prototype.resize=function(a,y,x,b){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=b+"px",!0):!1},Tu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Tu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Tu.prototype.focus=function(){this.Oa.focus()},Tu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},rn.Object.defineProperties(Tu.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),Tu.className="CanvasSurface";function XA(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&mn("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new Ro,this.isTemporary=!!x}Yt=XA.prototype,Yt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Yt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Yt.beginPath=function(){this.Z.beginPath()},Yt.Se=function(){},Yt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Yt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Yt.clip=function(){this.Z.clip()},Yt.closePath=function(){this.Z.closePath()},Yt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Yt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Yt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Yt.drawImage=function(a,y,x,b,E,z,nt,ot,at){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,nt,ot,at)},Yt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Yt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Yt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Yt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Yt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Yt.lineTo=function(a,y){this.Z.lineTo(a,y)},Yt.measureText=function(a){return this.Z.measureText(a)},Yt.moveTo=function(a,y){this.Z.moveTo(a,y)},Yt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Yt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Yt.restore=function(){this.Z.restore()},Yt.save=function(){this.yc(),this.Z.save()},XA.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Yt=XA.prototype,Yt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Yt.scale=function(a,y){this.El.scale(a,y)},Yt.translate=function(a,y){this.El.translate(a,y)},Yt.stroke=function(){this.Z.stroke()},Yt.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var nt=this.El,ot=nt.m11*a+nt.m21*y;a=nt.m12*a+nt.m22*y,y=nt.m11*x+nt.m21*b,x=nt.m12*x+nt.m22*b,nt.dx=nt.m11*E+nt.m21*z+nt.dx,nt.dy=nt.m12*E+nt.m22*z+nt.dy,nt.m11=ot,nt.m12=a,nt.m21=y,nt.m22=x}},Yt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Yt.ng=function(a,y){if(a instanceof js&&a.type===Me){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Yt.jk=function(){this.Hm||this.stroke()},Yt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Yt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Yt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(lm),a.lineDashOffset=0)},Yt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Yt.Hs=function(){},rn.Object.defineProperties(XA.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var lm=Object.freeze([]);XA.className="CanvasSurfaceContext";function xf(){this.F=this.o=this.u=this.j=0}xf.className="ColorNumbers";function js(a,y){vt||(Ut(),vt=!0),Xo(this),this._isFrozen=!1,a===void 0?(this.na=Qt,this.xk="black"):typeof a=="string"?(this.na=Qt,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===de?(this.Qd=Fl,this.Lk=lu):this.Lk=a===Me?this.Qd=Eo:this.Qd=Xa,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}js.prototype.copy=function(){var a=new js;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Yt=js.prototype,Yt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Yt.ka=function(){return Object.isFrozen(this)&&mn("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Yt.qb=function(a){a.classType===js&&(this.type=a)},Yt.toString=function(){var a="Brush(";if(this.type===Qt)a+=this.color;else if(a=this.type===de?a+"Linear ":this.type===Me?a+"Radial ":this.type===ln?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Yt.addColorStop=function(a,y){return this._isFrozen&&Ai(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Mi(a,"0 <= loc <= 1",js,"addColorStop:loc"),this.we===null&&(this.we=new gr),this.we.add(a,y),this.na===Qt&&(this.type=de),this.xe=null,this},Yt.Vz=function(a,y){if(this._isFrozen&&Ai(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dn:y,this.type===Qt)Fc(this.color),this.color=kA(a,y);else if((this.type===de||this.type===Me)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Fc(x.value),this.addColorStop(x.key,kA(a,y));return this};function Kg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dn:x,Fc(a),kA(y,x)}Yt.Wy=function(a,y){if(this._isFrozen&&Ai(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dn:y,this.type===Qt)Fc(this.color),this.color=kA(-a,y);else if((this.type===de||this.type===Me)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)Fc(x.value),this.addColorStop(x.key,kA(-a,y));return this};function Gg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dn:x,Fc(a),kA(-y,x)}function Wg(a,y,x){Fc(a),a=Un.j;var b=Un.u,E=Un.o,z=Un.F;return Fc(y),x===void 0&&(x=.5),"rgba("+Math.round((Un.j-a)*x+a)+", "+Math.round((Un.u-b)*x+b)+", "+Math.round((Un.o-E)*x+E)+", "+Math.round((Un.F-z)*x+z)+")"}Yt.Gx=function(){if(this.type===Qt)return IA(this.color);if((this.type===de||this.type===Me)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Me)return IA(a.first().value);if(a.get(.5)!==null)return IA(a.get(.5));if(a.count===2)return a=a.Fa(),IA(Wg(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var nt=y.key,ot=Math.abs(.5-y.key);E>z&&ot<E?(x=nt,E=ot):z>=E&&ot<z&&(b=nt,z=ot)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,IA(Wg(a.get(x),a.get(b),1-z/E))}return!1};function IA(a){return a?a instanceof js?a.Gx():(Fc(a),128>(299*Un.j+587*Un.u+114*Un.o)/1e3):!1}function kA(a,y){switch(y){case dn:y=100*Cg(Un.j);var x=100*Cg(Un.u),b=100*Cg(Un.o);return Ki.j=.4124564*y+.3575761*x+.1804375*b,Ki.u=.2126729*y+.7151522*x+.072175*b,Ki.o=.0193339*y+.119192*x+.9503041*b,Ki.F=Un.F,y=kt(Ki.j/Nn[0]),x=kt(Ki.u/Nn[1]),b=kt(Ki.o/Nn[2]),ur.j=116*x-16,ur.u=500*(y-x),ur.o=200*(x-b),ur.F=Ki.F,ur.j=Math.min(100,Math.max(0,ur.j+100*a)),a=(ur.j+16)/116,y=a-ur.o/200,Ki.j=Nn[0]*It(ur.u/500+a),Ki.u=Nn[1]*(ur.j>qe*Fe?Math.pow(a,3):ur.j/qe),Ki.o=Nn[2]*It(y),Ki.F=ur.F,a=-.969266*Ki.j+1.8760108*Ki.u+.041556*Ki.o,y=.0556434*Ki.j+-.2040259*Ki.u+1.0572252*Ki.o,Un.j=255*Vg((3.2404542*Ki.j+-1.5371385*Ki.u+-.4985314*Ki.o)/100),Un.u=255*Vg(a/100),Un.o=255*Vg(y/100),Un.F=Ki.F,Un.j=Math.round(Un.j),255<Un.j?Un.j=255:0>Un.j&&(Un.j=0),Un.u=Math.round(Un.u),255<Un.u?Un.u=255:0>Un.u&&(Un.u=0),Un.o=Math.round(Un.o),255<Un.o?Un.o=255:0>Un.o&&(Un.o=0),"rgba("+Un.j+", "+Un.u+", "+Un.o+", "+Un.F+")";case An:return Vf(),Ri.o=Math.min(100,Math.max(0,Ri.o+100*a)),"hsla("+Ri.j+", "+Ri.u+"%, "+Ri.o+"%, "+Ri.F+")";default:mn("Unknown color space: "+y)}}function Fc(a){vt||(Ut(),vt=!0);var y=ii;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Un.j=a[0],Un.u=a[1],Un.o=a[2],Un.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Un.j=0,Un.u=0,Un.o=0,Un.F=1)}}function Vf(){var a=Un.j/255,y=Un.u/255,x=Un.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var nt=a=0;else{switch(b){case a:nt=(y-x)/z%6;break;case y:nt=(x-a)/z+2;break;case x:nt=(a-y)/z+4}nt*=60,0>nt&&(nt+=360),a=z/(1-Math.abs(2*E-1))}Ri.j=Math.round(nt),Ri.u=Math.round(100*a),Ri.o=Math.round(100*E),Ri.F=Un.F}function Cg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Vg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function kt(a){return a>Fe?Math.pow(a,1/3):(qe*a+16)/116}function It(a){var y=a*a*a;return y>Fe?y:(116*a-16)/qe}function Ht(a,y){typeof a!="string"&&(a instanceof js||mn("Value for "+y+" must be a color string or a Brush, not "+a))}function Ut(){ii=vs?new Tu(null,void 0,{willReadFrequently:!0}).context:null}rn.Object.defineProperties(js.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ai(this,a),this.na=a,this.start.Mc()&&(a===de?this.start=Fl:a===Me&&(this.start=Eo)),this.end.Mc()&&(a===de?this.end=lu:a===Me&&(this.end=Eo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Ai(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Ai(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Ai(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Ai(this,a),0>a&&Mi(a,">= zero",js,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Ai(this,a),0>a&&Mi(a,">= zero",js,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Ai(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Ai(this,a),this.cr=a,this.xe=null}}}),js.prototype.isDark=js.prototype.Gx,js.prototype.darkenBy=js.prototype.Wy,js.prototype.lightenBy=js.prototype.Vz,js.prototype.addColorStop=js.prototype.addColorStop;var Fe=216/24389,qe=24389/27,Nn=[95.047,100,108.883],ii=null,Un=new xf,Ri=new xf,Ki=new xf,ur=new xf,vt=!1;js.className="Brush";var Qt;js.Solid=Qt=new jn(js,"Solid",0);var de;js.Linear=de=new jn(js,"Linear",1);var Me;js.Radial=Me=new jn(js,"Radial",2);var ln;js.Pattern=ln=new jn(js,"Pattern",4);var dn;js.Lab=dn=new jn(js,"Lab",5);var An;js.HSL=An=new jn(js,"HSL",6),js.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var b=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>b.length&&(b="0"+b),2>a.length&&(a="0"+a),"#"+y+b+a},js.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;vt||(Ut(),vt=!0);var y=ii;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},js.lighten=function(a){return Kg(a)},js.lightenBy=Kg,js.darken=function(a){return Gg(a)},js.darkenBy=Gg,js.mix=Wg,js.isDark=IA;function Sn(){this.xa="Base"}Sn.prototype.measure=function(){},Sn.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Sn.prototype.arrange=function(){},Sn.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Sn.prototype.iA=function(a){a.Uj()},Sn.prototype.gc=function(){},rn.Object.defineProperties(Sn.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return fi}}}),Sn.prototype.remeasureObject=Sn.prototype.iA,Sn.prototype.arrangeElement=Sn.prototype.Ly,Sn.prototype.measureElement=Sn.prototype.Yz,Sn.className="PanelLayout";function Tn(){this.xa="Base"}kn(Tn,Sn),Tn.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;a=_a(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===a){var ct=ut.margin,gt=ct.right+ct.left;ct=ct.top+ct.bottom,ut.measure(y,x,z,nt);var Nt=ut.measuredBounds;gt=Math.max(Nt.width+gt,0),ct=Math.max(Nt.height+ct,0),Nt=ut.position.x;var zt=ut.position.y;isFinite(Nt)||(Nt=0),isFinite(zt)||(zt=0),ut instanceof ko&&ut.isGeometryPositioned&&(ut=ut.strokeWidth/2,Nt-=ut,zt-=ut),Es(E,Nt,zt,gt,ct)}}},Tn.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],nt=z.measuredBounds,ot=z.margin,at=z.position.x,ut=z.position.y;if(at=isNaN(at)?-a:at-a,ut=isNaN(ut)?-x:ut-x,z instanceof ko&&z.isGeometryPositioned){var ct=z.strokeWidth/2;at-=ct,ut-=ct}z.visible&&z.arrange(at+ot.left,ut+ot.top,nt.width,nt.height)}};function Wn(){this.xa="Base"}kn(Wn,Sn),Wn.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=sr(),z=_a(a);for(var at=0;at<ot;at++){var ut=b[at];if(ut.visible||ut===z){var ct=uh(ut,!1);if(ct!==Ei&&ct!==Dr)y.push(ut);else{ut.measure(1/0,x,0,nt),ct=ut.margin,ut=ut.measuredBounds;var gt=Math.max(ut.height+ct.top+ct.bottom,0);E.width+=Math.max(ut.width+ct.right+ct.left,0),E.height=Math.max(E.height,gt)}}}for(b=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):E.height!==0&&(x=Math.min(E.height,a.maxSize.height)),a=0;a<b;a++)at=y[a],(at.visible||at===z)&&(ct=at.margin,ot=ct.right+ct.left,ct=ct.top+ct.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,ct=Math.max(at.height+ct,0),E.width+=Math.max(at.width+ot,0),E.height=Math.max(E.height,ct));Br(y)},Wn.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,nt=a.isOpposite,ot=nt?x.width:E.left,at=0;at<b;at++){var ut=z,ct=y[at];if(ct.visible){var gt=ct.measuredBounds,Nt=ct.margin,zt=Nt.top+Nt.bottom,Xt=z+E.bottom,ue=gt.height,Qe=uh(ct,!1);(isNaN(ct.desiredSize.height)&&Qe===Oi||Qe===eo)&&(ue=Math.max(x.height-zt-Xt,0)),zt=ue+zt+Xt,Xt=ct.alignment,Xt.Xb()&&(Xt=a.defaultAlignment),Xt.sb()||(Xt=Eo),nt&&(ot-=gt.width+Nt.left+Nt.right),ct.arrange(ot+Xt.offsetX+Nt.left,ut+Xt.offsetY+Nt.top+(x.height*Xt.y-zt*Xt.y),gt.width,ue),nt||(ot+=gt.width+Nt.left+Nt.right)}}};function mi(){this.xa="Base"}kn(mi,Sn),mi.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=sr();for(var ot=_a(a),at=0;at<nt;at++){var ut=b[at];if(ut.visible||ut===ot){var ct=uh(ut,!1);if(ct!==Ei&&ct!==eo)x.push(ut);else{var gt=ut.margin;ct=gt.right+gt.left,gt=gt.top+gt.bottom,ut.measure(y,1/0,z,0),ut=ut.measuredBounds,Za(E,Math.max(E.width,Math.max(ut.width+ct,0)),E.height+Math.max(ut.height+gt,0))}}}if(b=x.length,b!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):E.width!==0&&(y=Math.min(E.width,a.maxSize.width)),a=0;a<b;a++)at=x[a],(at.visible||at===ot)&&(ut=at.margin,nt=ut.right+ut.left,ut=ut.top+ut.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,ut=Math.max(at.height+ut,0),E.width=Math.max(E.width,Math.max(at.width+nt,0)),E.height+=ut);Br(x)}},mi.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,nt=a.isOpposite,ot=nt?x.height:E.top,at=0;at<b;at++){var ut=z,ct=y[at];if(ct.visible){var gt=ct.measuredBounds,Nt=ct.margin,zt=Nt.left+Nt.right,Xt=z+E.right,ue=gt.width,Qe=uh(ct,!1);(isNaN(ct.desiredSize.width)&&Qe===Oi||Qe===Dr)&&(ue=Math.max(x.width-zt-Xt,0)),zt=ue+zt+Xt,Xt=ct.alignment,Xt.Xb()&&(Xt=a.defaultAlignment),Xt.sb()||(Xt=Eo),nt&&(ot-=gt.height+Nt.bottom+Nt.top),ct.arrange(ut+Xt.offsetX+Nt.left+(x.width*Xt.x-zt*Xt.x),ot+Xt.offsetY+Nt.top,ue,gt.height),nt||(ot+=gt.height+Nt.bottom+Nt.top)}}};function qi(){this.xa="Base"}kn(qi,Sn),qi.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ct=ut.right+ut.left,gt=ut.top+ut.bottom;at.measure(y,x,z,nt);var Nt=at.measuredBounds;z=Nt.width,nt=Nt.height;var zt=Math.max(z+ct,0),Xt=Math.max(nt+gt,0),ue=a.isClipping,Qe=ui.allocAt(-ut.left,-ut.top,zt,Xt),ke=ui.allocAt(0,0,z,nt);tr(at,ke,!0),z=ke.width,nt=ke.height;for(var Ze=!0,en=_a(a),an=0;an<ot;an++){var Cn=b[an];Nt=y;var Zn=x;if(Cn!==at&&(Cn.visible||Cn===en)){ut=Cn.margin;var ir=ut.left,Mr=ut.top;switch(zt=ut.right+ut.left,Xt=ut.top+ut.bottom,ut=uh(Cn,!1),ut){case Oi:Nt=z,Zn=nt,Mr=ir=Xt=zt=0;break;case Dr:Nt=z,ir=zt=0;break;case eo:Zn=nt,Mr=Xt=0}Cn.measure(Nt,Zn,0,0),Nt=Cn.measuredBounds,zt=Math.max(Nt.width+zt,0),Xt=Math.max(Nt.height+Xt,0),ut=Cn.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=Eo);var wr=Cn.alignmentFocus;if(wr.Xb()&&(wr=Eo),Zn=null,Cn instanceof fi&&Cn.$e!==""&&(Zn=Cn.fb(Cn.$e),Zn===Cn&&(Zn=null)),ir=ke.x-ir,Mr=ke.y-Mr,Zn!==null){for(Cn.arrange(0,0,Nt.width,Nt.height),Nt=Zn.actualBounds,Nt=Ue.allocAt(Nt.x+(wr.x*Nt.width-wr.offsetX),Nt.y+(wr.y*Nt.height-wr.offsetY)),Zn=Zn.panel;Zn!==Cn;)Zn.transform.Ga(Nt),Zn=Zn.panel;ir+=ut.x*z+ut.offsetX-Nt.x,Mr+=ut.y*nt+ut.offsetY-Nt.y,Ue.free(Nt)}else ir+=ut.x*z+ut.offsetX-(wr.x*Nt.width+wr.offsetX),Mr+=ut.y*nt+ut.offsetY-(wr.y*Nt.height+wr.offsetY);Ze?(Ze=!1,E.h(ir,Mr,zt,Xt)):Es(E,ir,Mr,zt,Xt)}}switch(Ze?E.assign(Qe):ue?E.Uu(ke.x,ke.y,ke.width,ke.height):Es(E,Qe.x,Qe.y,Qe.width,Qe.height),ui.free(Qe),ui.free(ke),ut=at.stretch,ut===vo&&(ut=uh(at,!1)),ut){case Ei:return;case Oi:if(!isFinite(y)&&!isFinite(x))return;break;case Dr:if(!isFinite(y))return;break;case eo:if(!isFinite(x))return}for(Nt=at.measuredBounds,z=Nt.width,nt=Nt.height,zt=Math.max(z+ct,0),Xt=Math.max(nt+gt,0),ut=at.margin,ke=ui.allocAt(-ut.left,-ut.top,zt,Xt),tr(at,ke,!0),z=ke.width,nt=ke.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==en||(ut=x.margin,zt=ut.right+ut.left,Xt=ut.top+ut.bottom,Nt=x.measuredBounds,zt=Math.max(Nt.width+zt,0),Xt=Math.max(Nt.height+Xt,0),ct=x.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Eo),x=x.alignmentFocus,x.Xb()&&(x=Eo),Ze?(Ze=!1,E.h(ct.x*z+ct.offsetX-(x.x*Nt.width+x.offsetX)-ut.left,ct.y*nt+ct.offsetY-(x.y*Nt.height+x.offsetY)-ut.top,zt,Xt)):Es(E,ct.x*z+ct.offsetX-(x.x*Nt.width+x.offsetX)-ut.left,ct.y*nt+ct.offsetY-(x.y*Nt.height+x.offsetY)-ut.top,zt,Xt));Ze?E.assign(Qe):ue?E.Uu(ke.x,ke.y,ke.width,ke.height):Es(E,Qe.x,Qe.y,Qe.width,Qe.height),ui.free(ke)},qi.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,nt=z.width,ot=z.height,at=a.padding;z=at.left,at=at.top;var ut=z-x.x,ct=at-x.y;for(E.arrange(ut,ct,nt,ot),nt=ui.allocAt(0,0,nt,ot),tr(E,nt,!1),ot=0;ot<b;ot++){var gt=y[ot];if(gt!==E){ut=gt.measuredBounds;var Nt=ut.width,zt=ut.height;ct=gt.alignment,ct.Xb()&&(ct=a.defaultAlignment),ct.sb()||(ct=Eo);var Xt=gt.alignmentFocus;if(Xt.Xb()&&(Xt=Eo),ut=null,gt instanceof fi&&gt.$e!==""&&(ut=gt.fb(gt.$e),ut===gt&&(ut=null)),ut!==null){var ue=ut.actualBounds;for(Xt=Ue.allocAt(ue.x+(Xt.x*ue.width-Xt.offsetX),ue.y+(Xt.y*ue.height-Xt.offsetY)),ut=ut.panel;ut!==gt;)ut.transform.Ga(Xt),ut=ut.panel;ut=ct.x*nt.width+ct.offsetX-Xt.x,ct=ct.y*nt.height+ct.offsetY-Xt.y,Ue.free(Xt)}else ut=ct.x*nt.width+ct.offsetX-(Xt.x*Nt+Xt.offsetX),ct=ct.y*nt.height+ct.offsetY-(Xt.y*zt+Xt.offsetY);ut+=nt.x-x.x,ct+=nt.y-x.y,gt.visible&&gt.arrange(z+ut,at+ct,Nt,zt)}}ui.free(nt)};function tr(a,y,x){var b=null;if(a instanceof fi&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function ki(){this.xa="Base"}kn(ki,Sn),ki.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ut=at.margin,ct=y,gt=x,Nt=ut.right+ut.left,zt=ut.top+ut.bottom;at.measure(y,x,z,nt),ut=at.measuredBounds;var Xt=0,ue=null;at instanceof ko&&(ue=at,Xt=ue.strokeWidth*ue.scale);var Qe=Math.max(ut.width+Nt,0);ut=Math.max(ut.height+zt,0);var ke=dd(at),Ze=ke.x*Qe+ke.offsetX;ke=ke.y*ut+ke.offsetY;var en=Vh(at),an=en.x*Qe+en.offsetX;for(en=en.y*ut+en.offsetY,isFinite(y)&&(ct=Math.max(Math.abs(Ze-an)-Xt,0)),isFinite(x)&&(gt=Math.max(Math.abs(ke-en)-Xt,0)),Xt=Gi.alloc(),Xt.h(0,0),a=_a(a),en=0;en<ot;en++)ke=b[en],ke===at||!ke.visible&&ke!==a||(ut=ke.margin,Qe=ut.right+ut.left,Ze=ut.top+ut.bottom,ke.measure(ct,gt,0,0),ut=ke.measuredBounds,Qe=Math.max(ut.width+Qe,0),ut=Math.max(ut.height+Ze,0),Xt.h(Math.max(Qe,Xt.width),Math.max(ut,Xt.height)));if(ot===1)E.width=Qe,E.height=ut,Gi.free(Xt);else{switch(ke=dd(at),en=Vh(at),ot=b=0,en.x!==ke.x&&en.y!==ke.y&&(b=Xt.width/Math.abs(en.x-ke.x),ot=Xt.height/Math.abs(en.y-ke.y)),Gi.free(Xt),Xt=0,ue!==null&&(Xt=ue.strokeWidth*ue.scale,Jg(ue)===Sr&&(b=ot=Math.max(b,ot))),b+=Math.abs(ke.offsetX)+Math.abs(en.offsetX)+Xt,ot+=Math.abs(ke.offsetY)+Math.abs(en.offsetY)+Xt,ue=at.stretch,ue===vo&&(ue=uh(at,!1)),ue){case Ei:nt=z=0;break;case Oi:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case Dr:isFinite(y)&&(b=y),nt=0;break;case eo:z=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,z,nt),E.width=at.measuredBounds.width+Nt,E.height=at.measuredBounds.height+zt}},ki.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=ui.alloc();z.h(0,0,1,1);var nt=b.margin,ot=nt.left;nt=nt.top;var at=a.padding,ut=at.left;at=at.top,b.arrange(ut+ot,at+nt,E.width,E.height);var ct=dd(b),gt=Vh(b),Nt=ct.y*E.height+ct.offsetY,zt=gt.x*E.width+gt.offsetX;for(gt=gt.y*E.height+gt.offsetY,z.x=ct.x*E.width+ct.offsetX,z.y=Nt,Es(z,zt,gt,0,0),z.x+=ot+ut,z.y+=nt+at,E=0;E<x;E++)ot=y[E],ot!==b&&(ut=ot.measuredBounds,nt=ot.margin,at=Math.max(ut.width+nt.right+nt.left,0),ct=Math.max(ut.height+nt.top+nt.bottom,0),Nt=ot.alignment,Nt.Xb()&&(Nt=a.defaultAlignment),Nt.sb()||(Nt=Eo),at=z.width*Nt.x+Nt.offsetX-at*Nt.x+nt.left+z.x,nt=z.height*Nt.y+Nt.offsetY-ct*Nt.y+nt.top+z.y,ot.visible&&(_s(z.x,z.y,z.width,z.height,at,nt,ut.width,ut.height)?ot.arrange(at,nt,ut.width,ut.height):ot.arrange(at,nt,ut.width,ut.height,new ui(z.x,z.y,z.width,z.height))));ui.free(z)};function Wr(){this.xa="Base",this.name="Table"}kn(Wr,Sn),Wr.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=sr(),ot=sr(),at=0;at<z;at++){var ut=b[at],ct=ut instanceof fi?ut:null;if(ct!==null&&Ol(ct)&&ut.visible){ot.push(ct);for(var gt=ct.O.s,Nt=gt.length,zt=0;zt<Nt;zt++){var Xt=gt[zt];ct.type===fi.TableRow?Xt.row=ut.row:ct.type===fi.TableColumn&&(Xt.column=ut.column),nt.push(Xt)}}else nt.push(ut)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var ue=[],Qe=0;Qe<z;Qe++){var ke=nt[Qe];ke.visible&&(Tl(ke,!0),Wc(ke,!0),ue[ke.row]||(ue[ke.row]=[]),ue[ke.row][ke.column]||(ue[ke.row][ke.column]=[]),ue[ke.row][ke.column].push(ke))}Br(nt);var Ze=sr(),en=sr(),an=sr(),Cn={count:0},Zn={count:0},ir=y,Mr=x,wr=a.rowDefs,Vi=a.colDefs,Ni=null;z=wr.length;for(var Fo=0;Fo<z;Fo++)Ni=wr[Fo],Ni!==void 0&&(Ni.actual=0);z=Vi.length;for(var mo=0;mo<z;mo++)Ni=Vi[mo],Ni!==void 0&&(Ni.actual=0);for(var Ts=ue.length,fa=0,Ou=0;Ou<Ts;Ou++)ue[Ou]&&(fa=Math.max(fa,ue[Ou].length));var zu=Math.min(a.topIndex,Ts-1),Hh=Math.min(a.leftIndex,fa-1),Du=0;Ts=ue.length;for(var Tf=_a(a),tu=0;tu<Ts;tu++)if(ue[tu]){fa=ue[tu].length;var mA=a.Fb(tu);mA.actual=0;for(var _h=mA.oc=0;_h<fa;_h++)if(ue[tu][_h]){var Of=a.Eb(_h);Ze[_h]===void 0&&(Of.actual=0,Of.oc=0,Ze[_h]=!0);for(var qc=ue[tu][_h],Ud=qc.length,Nc=0;Nc<Ud;Nc++){var yc=qc[Nc];if(yc.visible||yc===Tf){var Ag=1<yc.rowSpan||1<yc.columnSpan;Ag&&(tu<zu||_h<Hh||en.push(yc));var vA=yc.margin,Jp=vA.right+vA.left,Ic=vA.top+vA.bottom,Qh=Da(yc,mA,Of,!1),Zm=yc.desiredSize,fp=!isNaN(Zm.height),RA=!isNaN(Zm.width)&&fp;if(Ag||Qh===Ei||RA||tu<zu||_h<Hh||(Cn[_h]!==void 0||Qh!==Oi&&Qh!==Dr||(Cn[_h]=-1,Cn.count++),Zn[tu]!==void 0||Qh!==Oi&&Qh!==eo||(Zn[tu]=-1,Zn.count++),an.push(yc)),yc.measure(1/0,1/0,0,0),!(tu<zu||_h<Hh)){var wc=yc.measuredBounds,Dg=Math.max(wc.width+Jp,0),kc=Math.max(wc.height+Ic,0);if(yc.rowSpan===1&&(Qh===Ei||Qh===Dr)){Ni=a.Fb(tu);var fg=Ni.Wc();Du=Math.max(kc-Ni.actual,0),Du+fg>Mr&&(Du=Math.max(Mr-fg,0));var av=Ni.oa===0;Ni.oc=Ni.oc+Du,Ni.actual=Ni.oa+Du,Mr=Math.max(Mr-(Du+(av?fg:0)),0)}if(yc.columnSpan===1&&(Qh===Ei||Qh===eo)){Ni=a.Eb(_h);var Xm=Ni.Wc();Du=Math.max(Dg-Ni.actual,0),Du+Xm>ir&&(Du=Math.max(ir-Xm,0));var Py=Ni.oa===0;Ni.oc=Ni.oc+Du,Ni.actual=Ni.oa+Du,ir=Math.max(ir-(Du+(Py?Xm:0)),0)}Ag&&yc.Uj()}}}}}Br(Ze);var of=0,Af=0;z=a.columnCount;for(var gp=0;gp<z;gp++){var gg=Vi[gp];gg!==void 0&&(of+=isNaN(gg.Hc)?gg.oc:gg.Hc,gg.oc!==0&&(of+=gg.Wc()))}z=a.rowCount;for(var qp=0;qp<z;qp++){var pg=wr[qp];pg!==void 0&&(Af+=isNaN(pg.Hc)?pg.oc:pg.Hc,pg.oc!==0&&(Af+=pg.Wc()))}ir=Math.max(y-of,0);var sf=Mr=Math.max(x-Af,0),Df=ir;z=an.length;for(var xc=0;xc<z;xc++){var HA=an[xc],lv=a.Fb(HA.row),ff=a.Eb(HA.column),tm=HA.measuredBounds,yA=HA.margin,jg=yA.right+yA.left,_A=yA.top+yA.bottom;Cn[HA.column]=ff.oc===0&&Cn[HA.column]!==void 0?Math.max(tm.width+jg,Cn[HA.column]):null,Zn[HA.row]=lv.oc===0&&Zn[HA.row]!==void 0?Math.max(tm.height+_A,Zn[HA.row]):null}var pp=0,em=0,rA;for(rA in Zn)rA!=="count"&&(pp+=Zn[rA]);for(rA in Cn)rA!=="count"&&(em+=Cn[rA]);for(var rh=Gi.alloc(),$m=0;$m<z;$m++){var tc=an[$m];if(tc.visible||tc===Tf){var eu=a.Fb(tc.row),ec=a.Eb(tc.column),gf=0;isFinite(ec.width)?gf=ec.width:(isFinite(ir)&&Cn[tc.column]!==null?em===0?gf=ec.actual+ir:gf=Cn[tc.column]/em*Df:Cn[tc.column]!==null?gf=ir:gf=ec.actual||ir,gf=Math.max(0,gf-ec.Wc()));var jf=0;switch(isFinite(eu.height)?jf=eu.height:(isFinite(Mr)&&Zn[tc.row]!==null?pp===0?jf=eu.actual+Mr:jf=Zn[tc.row]/pp*sf:Zn[tc.row]!==null?jf=Mr:jf=eu.actual||Mr,jf=Math.max(0,jf-eu.Wc())),rh.h(Math.max(ec.minimum,Math.min(gf,ec.maximum)),Math.max(eu.minimum,Math.min(jf,eu.maximum))),Qh=Da(tc,eu,ec,!1),Qh){case Dr:rh.height=Math.max(rh.height,eu.actual+Mr);break;case eo:rh.width=Math.max(rh.width,ec.actual+ir)}var Ug=tc.margin,by=Ug.right+Ug.left,uv=Ug.top+Ug.bottom;tc.Uj(),tc.measure(rh.width,rh.height,ec.minimum,eu.minimum);var nm=tc.measuredBounds,Rg=Math.max(nm.width+by,0),mp=Math.max(nm.height+uv,0);isFinite(ir)&&(Rg=Math.min(Rg,rh.width)),isFinite(Mr)&&(mp=Math.min(mp,rh.height));var Sc=0;Sc=eu.actual,eu.actual=Math.max(eu.actual,mp),eu.oc=Math.max(eu.oc,mp),Du=eu.actual-Sc,Mr=Math.max(Mr-Du,0),Zn[tc.row]===null&&(sf=Math.max(sf-Du,0)),Sc=ec.actual,ec.actual=Math.max(ec.actual,Rg),ec.oc=Math.max(ec.oc,Rg),Du=ec.actual-Sc,ir=Math.max(ir-Du,0),Cn[tc.column]===null&&(Df=Math.max(Df-Du,0))}}Br(an);var pf=Gi.alloc(),wA=sr(),vd=sr();if(z=en.length,z!==0){for(var mg=0;mg<Ts;mg++)if(ue[mg]){fa=ue[mg].length;var im=a.Fb(mg);wA[mg]=im.actual;for(var vg=0;vg<fa;vg++)if(ue[mg][vg]){var hv=a.Eb(vg);vd[vg]=hv.actual}}}for(var rm=0;rm<z;rm++){var _l=en[rm];if(_l.visible||_l===Tf){var oA=a.Fb(_l.row),Rd=a.Eb(_l.column);switch(rh.h(Math.max(Rd.minimum,Math.min(y,Rd.maximum)),Math.max(oA.minimum,Math.min(x,oA.maximum))),Qh=Da(_l,oA,Rd,!1),Qh){case Oi:vd[Rd.index]!==0&&(rh.width=Math.min(rh.width,vd[Rd.index])),wA[oA.index]!==0&&(rh.height=Math.min(rh.height,wA[oA.index]));break;case Dr:vd[Rd.index]!==0&&(rh.width=Math.min(rh.width,vd[Rd.index]));break;case eo:wA[oA.index]!==0&&(rh.height=Math.min(rh.height,wA[oA.index]))}isFinite(Rd.width)&&(rh.width=Rd.width),isFinite(oA.height)&&(rh.height=oA.height),pf.h(0,0);for(var cv=Rd.minimum,Tc=oA.minimum,Uf=1;Uf<_l.rowSpan&&!(_l.row+Uf>=a.rowCount);Uf++)Ni=a.Fb(_l.row+Uf),Du=0,Du=Qh===Oi||Qh===eo?Math.max(Ni.minimum,wA[_l.row+Uf]===0?Ni.maximum:Math.min(wA[_l.row+Uf],Ni.maximum)):Math.max(Ni.minimum,isNaN(Ni.Hc)?Ni.maximum:Math.min(Ni.Hc,Ni.maximum)),pf.height+=Du,Tc+=Ni.minimum;for(var Hd=1;Hd<_l.columnSpan&&!(_l.column+Hd>=a.columnCount);Hd++)Ni=a.Eb(_l.column+Hd),Du=0,Du=Qh===Oi||Qh===Dr?Math.max(Ni.minimum,vd[_l.column+Hd]===0?Ni.maximum:Math.min(vd[_l.column+Hd],Ni.maximum)):Math.max(Ni.minimum,isNaN(Ni.Hc)?Ni.maximum:Math.min(Ni.Hc,Ni.maximum)),pf.width+=Du,cv+=Ni.minimum;rh.width+=pf.width,rh.height+=pf.height;var om=_l.margin,yg=om.right+om.left,Ym=om.top+om.bottom;_l.measure(rh.width,rh.height,cv,Tc);for(var sm=_l.measuredBounds,QA=Math.max(sm.width+yg,0),Hg=Math.max(sm.height+Ym,0),wg=0,am=0;am<_l.rowSpan&&!(_l.row+am>=a.rowCount);am++)Ni=a.Fb(_l.row+am),wg+=Ni.total||0;if(wg<Hg){var Rf=Hg-wg,af=Hg-wg;if(_l.spanAllocation!==null)for(var Hf=_l.spanAllocation,mf=0;mf<_l.rowSpan&&!(0>=Rf)&&!(_l.row+mf>=a.rowCount);mf++){Ni=a.Fb(_l.row+mf);var _f=Ni.oa||0,_g=Hf(_l,Ni,af);Ni.actual=Math.min(Ni.maximum,_f+_g),Ni.oa!==_f&&(Rf-=Ni.oa-_f)}for(;0<Rf;){var xA=Ni.oa||0;if(isNaN(Ni.height)&&Ni.maximum>xA&&(Ni.actual=Math.min(Ni.maximum,xA+Rf),Ni.oa!==xA&&(Rf-=Ni.oa-xA)),Ni.index===0)break;Ni=a.Fb(Ni.index-1)}}for(var vp=0,Qf=0;Qf<_l.columnSpan&&!(_l.column+Qf>=a.columnCount);Qf++)Ni=a.Eb(_l.column+Qf),vp+=Ni.total||0;if(vp<QA){var yp=QA-vp,Ey=QA-vp;if(_l.spanAllocation!==null)for(var vf=_l.spanAllocation,Qg=0;Qg<_l.columnSpan&&!(0>=yp)&&!(_l.column+Qg>=a.columnCount);Qg++){Ni=a.Eb(_l.column+Qg);var Jm=Ni.oa||0,Fy=vf(_l,Ni,Ey);Ni.actual=Math.min(Ni.maximum,Jm+Fy),Ni.oa!==Jm&&(yp-=Ni.oa-Jm)}for(;0<yp;){var dv=Ni.oa||0;if(isNaN(Ni.width)&&Ni.maximum>dv&&(Ni.actual=Math.min(Ni.maximum,dv+yp),Ni.oa!==dv&&(yp-=Ni.oa-dv)),Ni.index===0)break;Ni=a.Eb(Ni.index-1)}}}}Br(en),Gi.free(pf),Gi.free(rh),wA!==void 0&&Br(wA),vd!==void 0&&Br(vd);var wp=0,xp=0,Av=a.desiredSize,xw=a.maxSize;Qh=uh(a,!0);var qm=Af=of=0,t0=0;z=a.columnCount;for(var fv=0;fv<z;fv++)Vi[fv]!==void 0&&(Ni=a.Eb(fv),isFinite(Ni.width)?(qm+=Ni.width,qm+=Ni.Wc()):Yg(Ni)===$f?(qm+=Ni.oa,qm+=Ni.Wc()):Ni.oa!==0&&(of+=Ni.oa,of+=Ni.Wc()));isFinite(Av.width)?wp=Math.min(Av.width,xw.width):wp=Qh!==Ei&&isFinite(y)?y:of,wp=Math.max(wp,a.minSize.width),wp=Math.max(wp-qm,0);for(var rx=of===0?1:Math.max(wp/of,1),gv=0;gv<z;gv++)Vi[gv]!==void 0&&(Ni=a.Eb(gv),isFinite(Ni.width)||Yg(Ni)===$f||(Ni.actual=Ni.oa*rx),Ni.position=E.width,Ni.oa!==0&&(E.width+=Ni.oa,E.width+=Ni.Wc()));z=a.rowCount;for(var pv=0;pv<z;pv++)wr[pv]!==void 0&&(Ni=a.Fb(pv),isFinite(Ni.height)?(t0+=Ni.height,t0+=Ni.Wc()):Yg(Ni)===$f?(t0+=Ni.oa,t0+=Ni.Wc()):Ni.oa!==0&&(Af+=Ni.oa,Af+=Ni.Wc()));isFinite(Av.height)?xp=Math.min(Av.height,xw.height):xp=Qh!==Ei&&isFinite(x)?x:Af,xp=Math.max(xp,a.minSize.height),xp=Math.max(xp-t0,0);for(var ox=Af===0?1:Math.max(xp/Af,1),mv=0;mv<z;mv++)wr[mv]!==void 0&&(Ni=a.Fb(mv),isFinite(Ni.height)||Yg(Ni)===$f||(Ni.actual=Ni.oa*ox),Ni.position=E.height,Ni.oa!==0&&(E.height+=Ni.oa,E.height+=Ni.Wc()));z=ot.length;for(var Ly=0;Ly<z;Ly++){var e0=ot[Ly],My=0,Ny=0;e0.type===fi.TableRow?(My=E.width,Ni=a.Fb(e0.row),Ny=Ni.actual):(Ni=a.Eb(e0.column),My=Ni.actual,Ny=E.height),e0.measuredBounds.h(0,0,My,Ny),Tl(e0,!1)}Br(ot),a.inRowsCols=ue},Wr.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var nt=a.inRowsCols;if(nt!==null){for(var ot,at,ut=nt.length,ct=0,gt=0;gt<ut;gt++)nt[gt]&&(ct=Math.max(ct,nt[gt].length));at=a.rowDefs,ot=a.colDefs;var Nt=gt=0,zt=Math.min(a.topIndex,ut-1);if(0<at.length){for(;zt!==ut&&(at[zt]===void 0||at[zt].oa===0);)zt++;zt=Math.max(Math.min(zt,ut-1),0),gt=-at[zt].position}var Xt=Math.min(a.leftIndex,ct-1);if(0<ot.length){for(;Xt!==ct&&(ot[Xt]===void 0||ot[Xt].oa===0);)Xt++;Xt=Math.max(Math.min(Xt,ct-1),0),Nt=-ot[Xt].position}for(var ue=0,Qe=0;ue!==ut&&at[ue]===void 0;)ue++;for(;Qe!==ut&&ot[Qe]===void 0;)Qe++;ct=a.part,a.Fb(ue),a.Eb(Qe);for(var ke=0;ke<y.length;ke++){var Ze=y[ke];if(Ze instanceof fi&&Ze.visible&&Ol(Ze)){if(Ze.type===fi.TableRow){ot=a.Fb(Ze.row);var en=a.Eb(Qe)}else ot=a.Fb(ue),en=a.Eb(Ze.column);at=ot.position+gt+E,ot.oa!==0&&(at+=ot.Io(Math.max(ue,zt))),ot=en.position+Nt+z,en.oa!==0&&(ot+=en.Io(Math.max(Qe,Xt))),en=Ze.measuredBounds,Ze.Uk(),Ze.actualBounds.ka();var an=Ze.actualBounds,Cn=ui.allocAt(an.x,an.y,an.width,an.height);an.x=Ze.type===fi.TableRow?z:ot,an.y=Ze.type===fi.TableColumn?E:at,an.width=en.width,an.height=en.height,Ze.actualBounds.freeze(),Wc(Ze,!1),su(Cn,an)||ct===null||(ct.oh(),Ze.Pn(ct)),ui.free(Cn)}}for(ke=Gi.alloc(),Ze=0;Ze<ut;Ze++)if(nt[Ze]){for(ct=nt[Ze].length,en=a.Fb(Ze),at=en.position+gt+E,en.oa!==0&&(at+=en.Io(Math.max(ue,zt))),an=0;an<ct;an++)if(nt[Ze][an]){Cn=a.Eb(an),ot=Cn.position+Nt+z,Cn.oa!==0&&(ot+=Cn.Io(Math.max(Qe,Xt)));for(var Zn=nt[Ze][an],ir=Zn.length,Mr=0;Mr<ir;Mr++){var wr=Zn[Mr],Vi=wr.measuredBounds;ke.h(0,0);for(var Ni=1;Ni<wr.rowSpan&&!(Ze+Ni>=a.rowCount);Ni++){var Fo=a.Fb(Ze+Ni);Fo.oa!==0&&(ke.height+=Fo.total)}for(Ni=1;Ni<wr.columnSpan&&!(an+Ni>=a.columnCount);Ni++)Fo=a.Eb(an+Ni),Fo.oa!==0&&(ke.width+=Fo.total);var mo=Cn.oa+ke.width,Ts=en.oa+ke.height;Ni=ot,Fo=at;var fa=mo,Ou=Ts,zu=ot,Hh=at,Du=mo,Tf=Ts;ot+mo>x.width&&(Du=Math.max(x.width-ot,0)),at+Ts>x.height&&(Tf=Math.max(x.height-at,0));var tu=wr.alignment;if(tu.Xb()){tu=a.defaultAlignment,tu.sb()||(tu=Eo);var mA=tu.x,_h=tu.y,Of=tu.offsetX;tu=tu.offsetY;var qc=Cn.alignment,Ud=en.alignment;qc.sb()&&(mA=qc.x,Of=qc.offsetX),Ud.sb()&&(_h=Ud.y,tu=Ud.offsetY)}else mA=tu.x,_h=tu.y,Of=tu.offsetX,tu=tu.offsetY;(isNaN(mA)||isNaN(_h))&&(_h=mA=.5,tu=Of=0),qc=Vi.width,Ud=Vi.height;var Nc=wr.margin,yc=Nc.left+Nc.right,Ag=Nc.top+Nc.bottom,vA=Da(wr,en,Cn,!1);!isNaN(wr.desiredSize.width)||vA!==Oi&&vA!==Dr||(qc=Math.max(mo-yc,0)),!isNaN(wr.desiredSize.height)||vA!==Oi&&vA!==eo||(Ud=Math.max(Ts-Ag,0)),mo=wr.maxSize,Ts=wr.minSize,qc=Math.min(mo.width,qc),Ud=Math.min(mo.height,Ud),qc=Math.max(Ts.width,qc),Ud=Math.max(Ts.height,Ud),mo=Ud+Ag,Ni+=fa*mA-(qc+yc)*mA+Of+Nc.left,Fo+=Ou*_h-mo*_h+tu+Nc.top,wr.visible&&(_s(zu,Hh,Du,Tf,Ni,Fo,Vi.width,Vi.height)?wr.arrange(Ni,Fo,qc,Ud):wr.arrange(Ni,Fo,qc,Ud,new ui(zu,Hh,Du,Tf)))}}}for(Gi.free(ke),a=0;a<b;a++)x=y[a],z=x instanceof fi?x:null,z!==null&&Ol(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Nr(){this.xa="Base"}kn(Nr,Sn),Nr.prototype.measure=function(){},Nr.prototype.arrange=function(){};function _i(){this.xa="Base"}kn(_i,Sn),_i.prototype.measure=function(){},_i.prototype.arrange=function(){};function Ui(){this.xa="Base"}kn(Ui,Sn),Ui.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&mn("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,nt);var ot=b.measuredBounds,at=b.margin,ut=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var ct=b.scale,gt=ot.width;ot=ot.height;var Nt=Math.max(y-ut,0),zt=Math.max(x-at,0),Xt=1;a.viewboxStretch===Sr?gt!==0&&ot!==0&&(Xt=Math.min(Nt/gt,zt/ot)):gt!==0&&ot!==0&&(Xt=Math.max(Nt/gt,zt/ot)),Xt===0&&(Xt=1e-4),b.Ca*=Xt,ct!==b.scale&&(Tl(b,!0),b.measure(1/0,1/0,z,nt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+ut,0),E.height=isFinite(x)?x:Math.max(ot.height+at,0)},Ui.prototype.arrange=function(a,y,x){y=y[0];var b=y.measuredBounds,E=y.margin,z=Math.max(b.width+(E.right+E.left),0);E=Math.max(b.height+(E.top+E.bottom),0);var nt=y.alignment;nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=Eo),y.arrange(x.width*nt.x-z*nt.x+nt.offsetX,x.height*nt.y-E*nt.y+nt.offsetY,b.width,b.height)};function zr(){this.xa="Base"}kn(zr,Sn),zr.prototype.measure=function(){},zr.prototype.arrange=function(){},zr.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var b=a.gridCellSize,E=b.width;b=b.height;var z=a.naturalBounds,nt=a.actualBounds,ot=z.width,at=z.height,ut=Math.ceil(ot/E),ct=Math.ceil(at/b),gt=a.gridOrigin,Nt=gt.x;gt=gt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var zt=[],Xt=a.O.s,ue=Xt.length,Qe=0;Qe<ue;Qe++){var ke=Xt[Qe],Ze=[];if(zt.push(Ze),ke.visible){var en=ke.interval;if(!(0>en)){ke=Wa(ke.figure);for(var an=0;an<ue;an++)if(an!==Qe){var Cn=Xt[an];Cn.visible&&Wa(Cn.figure)===ke&&(Cn=Cn.interval,Cn>en&&Ze.push(Cn))}}}}for(Xt=a.O.s,ue=Xt.length,Qe=0;Qe<ue;Qe++){var Zn=Xt[Qe];if(Zn.visible&&(Ze=Zn.interval||1,ke=Math.abs(Ze),!(2>E*ke*x))){if(en=Zn.segmentIndex,(!isFinite(en)||isNaN(en))&&(en=0),0>en&&(en=ke-Math.min(-en,ke)),en=Math.round(en%ke),ke=Zn.opacity,an=1,ke!==1){if(ke===0)continue;an=y.globalAlpha,y.globalAlpha=an*ke}Cn=zt[Qe];var ir=!1,Mr=Zn.strokeDashArray;if(Mr!==null&&(ir=!0,y.js(Mr,Zn.strokeDashOffset)),Zn.figure==="LineV"&&Zn.stroke!==null&&0<Zn.strokeWidth){for(y.lineWidth=Zn.strokeWidth,wa(a,y,Zn.stroke,!1,!1,z,nt),y.beginPath(),Mr=Zn=Math.floor((Nt-E)/E);Mr<=Zn+ut;Mr++){var wr=Mr*E+Nt;0<=wr&&wr<=ot&&uo(Mr,Ze,en,Cn)&&(y.moveTo(wr,0),y.lineTo(wr,at))}y.stroke(),y.Se()}else if(Zn.figure==="LineH"&&Zn.stroke!==null&&0<Zn.strokeWidth){for(y.lineWidth=Zn.strokeWidth,wa(a,y,Zn.stroke,!1,!1,z,nt),y.beginPath(),Mr=Zn=Math.floor((gt-b)/b);Mr<=Zn+ct;Mr++)wr=Mr*b+gt,0<=wr&&wr<=at&&uo(Mr,Ze,en,Cn)&&(y.moveTo(0,wr),y.lineTo(ot,wr));y.stroke(),y.Se()}else if(Zn.figure==="BarV"&&Zn.fill!==null)for(wa(a,y,Zn.fill,!0,!1,z,nt),Zn=Zn.width,isNaN(Zn)&&(Zn=E),wr=Mr=Math.floor((Nt-E)/E);wr<=Mr+ut;wr++){var Vi=wr*E+Nt;0<=Vi+Zn&&Vi<=ot&&uo(wr,Ze,en,Cn)&&y.fillRect(Vi,0,Zn,at)}else if(Zn.figure==="BarH"&&Zn.fill!==null)for(wa(a,y,Zn.fill,!0,!1,z,nt),Zn=Zn.height,isNaN(Zn)&&(Zn=b),wr=Mr=Math.floor((gt-b)/b);wr<=Mr+ct;wr++)Vi=wr*b+gt,0<=Vi+Zn&&Vi<=at&&uo(wr,Ze,en,Cn)&&y.fillRect(0,Vi,ot,Zn);ir&&y.fs(),ke!==1&&(y.globalAlpha=an)}}y.restore(),y.Vc(!1)};function uo(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Yr(){this.xa="Base"}kn(Yr,Sn),Yr.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Ls||a instanceof Zi){var nt=null,ot=null;if(a instanceof Zi&&(nt=a),a instanceof Ls&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof Zi){var at=nt;if(z===0)Za(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ut=a instanceof Ls?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ct=at.points,gt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var Nt=y.height,zt=a.j;if(zt.length=0,ut!==null){ls(a,ot,Nt,ut);var Xt=ut.measuredBounds;x.ed(Xt),zt.push(Xt)}Xt=Ro.alloc();for(var ue=Ue.alloc(),Qe=Ue.alloc(),ke=0;ke<z;ke++){var Ze=b[ke];if(Ze!==ut)if(Ze.isPanelMain&&Ze instanceof ko){ls(a,ot,Nt,Ze);var en=Ze.measuredBounds;x.ed(en),zt.push(en)}else if(2>gt)Ze.measure(1/0,1/0,0,0),en=Ze.measuredBounds,x.ed(en),zt.push(en);else{var an=Ze.segmentIndex,Cn=Ze.segmentFraction,Zn=Ze.alignmentFocus;Zn.Mc()&&(Zn=Eo);var ir=Ze.segmentOrientation,Mr=Ze.segmentOffset;if(isNaN(an)){var wr=at.ua;en=sr(),wr.Qu(Cn,en);var Vi=Ue.allocAt(en[0],en[1]);if(Vi.add(at.i(0)),wr.type===$i.j?Vi.offset(-wr.startX,-wr.startY):(wr=wr.figures.first(),wr!==null&&Vi.offset(-wr.startX,-wr.startY)),wr=en[2],ir!==Xh){var Ni=at.computeAngle(Ze,ir,wr);Ze.Kb=Ni}Ni=Vi.x-y.x;var Fo=Vi.y-y.y;Ue.free(Vi),Br(en)}else if(an<-gt||an>=gt)en=Ue.alloc(),at.vg(),at.computeMidPoint(en),wr=at.midAngle,ir!==Xh&&(Ni=at.computeAngle(Ze,ir,wr),Ze.Kb=Ni),Ni=en.x-y.x,Fo=en.y-y.y,Ue.free(en);else{if(Ni=0,0<=an?(Fo=ct.M(an),en=an<gt-1?ct.M(an+1):Fo):(Ni=gt+an,Fo=ct.M(Ni),en=0<Ni?ct.M(Ni-1):Fo),Fo.Xa(en)){0<=an?(wr=0<an?ct.M(an-1):Fo,Ni=an<gt-2?ct.M(an+2):en):(wr=Ni<gt-1?ct.M(Ni+1):Fo,Ni=1<Ni?ct.M(Ni-2):en),Vi=wr.Bf(Fo);var mo=en.Bf(Ni);wr=Vi>mo+10?0<=an?wr.ab(Fo):Fo.ab(wr):mo>Vi+10?0<=an?en.ab(Ni):Ni.ab(en):0<=an?wr.ab(Ni):Ni.ab(wr)}else wr=0<=an?Fo.ab(en):en.ab(Fo);ir!==Xh&&(Ni=at.computeAngle(Ze,ir,wr),Ze.Kb=Ni),Ni=Fo.x+(en.x-Fo.x)*Cn-y.x,Fo=Fo.y+(en.y-Fo.y)*Cn-y.y}Ze.measure(1/0,1/0,0,0),en=Ze.measuredBounds,Vi=Ze.naturalBounds;var Ts=0;Ze instanceof ko&&(Ts=Ze.strokeWidth),mo=Vi.width+Ts;var fa=Vi.height+Ts;Xt.reset(),Xt.translate(-en.x,-en.y),Xt.scale(Ze.scale,Ze.scale),Xt.rotate(ir===Xh?Ze.angle:wr,mo/2,fa/2),ir!==xm&&ir!==Cm||Xt.rotate(90,mo/2,fa/2),ir!==Sm&&ir!==Bm||Xt.rotate(-90,mo/2,fa/2),ir===y0&&(45<wr&&135>wr||225<wr&&315>wr)&&Xt.rotate(-wr,mo/2,fa/2),Vi=new ui(0,0,mo,fa),ue.xi(Vi,Zn),Xt.Ga(ue),Zn=-ue.x+Ts/2*Ze.scale,Ze=-ue.y+Ts/2*Ze.scale,Qe.assign(Mr),Ts=isNaN(Mr.x);var Ou=isNaN(Mr.y);if(Ts||Ou){mo=mo/2+3,fa=fa/2+3;var zu=45<=wr&&135>=wr,Hh=225<=wr&&315>=wr;ir===Xh&&(zu||Hh)?(Qe.x=Ou?mo:Mr.y,Qe.y=Ts?fa:Mr.x,zu?0<=an||isNaN(an)&&.5>Cn||!Ts||(Qe.y=-fa):Hh&&((0<=an||isNaN(an)&&.5>Cn)&&Ts&&(Qe.y=-fa),Ou&&(Qe.x=-mo))):(Ts&&(Qe.x=0<=an||isNaN(an)&&.5>Cn?mo:-mo),Ou&&(Qe.y=-fa),Qe.rotate(wr))}else Qe.rotate(wr);Ni+=Qe.x,Fo+=Qe.y,Vi.set(en),Vi.h(Ni+Zn,Fo+Ze,en.width,en.height),zt.push(Vi),x.ed(Vi)}}if(nt!==null)for(b=nt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Za(E,x.width||0,x.height||0),Ro.free(Xt),Ue.free(ue),Ue.free(Qe)}}}},Yr.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Ls||a instanceof Zi){var b=a,E=null;a instanceof Ls&&(E=a,b=E.adornedPart);var z=a instanceof Ls?null:b.path,nt=a.j;if(nt.length!==0){var ot=0;if(z!==null&&ot<nt.length){var at=nt[ot];ot++,z.arrange(at.x-a.jg.x,at.y-a.jg.y,at.width,at.height)}for(at=0;at<x;at++){var ut=y[at];if(ut!==z&&ot<nt.length){var ct=nt[ot];ot++,ut.arrange(ct.x-a.jg.x,ct.y-a.jg.y,ct.width,ct.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Zi)for(z=a.labelNodes;z.next();){var gt=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var Nt=nt.alignmentFocus;if(ut=nt.segmentOrientation,ct=nt.segmentOffset,isNaN(ot)){var zt=gt.ua,Xt=sr();zt.Qu(at,Xt);var ue=Ue.allocAt(Xt[0],Xt[1]);ue.add(gt.i(0)),zt.type===$i.j||(zt=zt.figures.first()),ue.offset(-zt.startX,-zt.startY),zt=Xt[2],ut!==Xh&&(gt=gt.computeAngle(nt,ut,zt),nt.angle=gt),gt=ue.x;var Qe=ue.y;Ue.free(ue),Br(Xt)}else if(ot<-x||ot>=x)Xt=Ue.alloc(),zt=gt,Qe=Xt,zt.vg(),zt.computeMidPoint(Qe),zt=gt.midAngle,ut!==Xh&&(gt=gt.computeAngle(nt,ut,zt),nt.angle=gt),gt=Xt.x,Qe=Xt.y,Ue.free(Xt);else{if(ue=0,0<=ot?(Xt=y.s[ot],Qe=ot<x-1?y.s[ot+1]:Xt):(ue=x+ot,Xt=y.s[ue],Qe=0<ue?y.s[ue-1]:Xt),Xt.Xa(Qe)){0<=ot?(zt=0<ot?y.s[ot-1]:Xt,ue=ot<x-2?y.s[ot+2]:Qe):(zt=ue<x-1?y.s[ue+1]:Xt,ue=1<ue?y.s[ue-2]:Qe);var ke=zt.Bf(Xt),Ze=Qe.Bf(ue);zt=ke>Ze+10?0<=ot?zt.ab(Xt):Xt.ab(zt):Ze>ke+10?0<=ot?Qe.ab(ue):ue.ab(Qe):0<=ot?zt.ab(ue):ue.ab(zt)}else zt=0<=ot?Xt.ab(Qe):Qe.ab(Xt);ut!==Xh&&(gt=gt.computeAngle(nt,ut,zt),nt.angle=gt),gt=Xt.x+(Qe.x-Xt.x)*at,Qe=Xt.y+(Qe.y-Xt.y)*at}if(Nt.ys())nt.location=new Ue(gt,Qe);else{Nt.Mc()&&(Nt=Eo),Xt=Ro.alloc(),Xt.reset(),Xt.scale(nt.scale,nt.scale),Xt.rotate(nt.angle,0,0);var en=nt.naturalBounds;ue=ui.allocAt(0,0,en.width,en.height),ke=Ue.alloc(),ke.xi(ue,Nt),Xt.Ga(ke),Nt=-ke.x,Ze=-ke.y;var an=en.width,Cn=en.height;en=Ue.alloc(),en.assign(ct);var Zn=isNaN(ct.x),ir=isNaN(ct.y);if(Zn||ir){an=an/2+3,Cn=Cn/2+3;var Mr=45<=zt&&135>=zt,wr=225<=zt&&315>=zt;ut===Xh&&(Mr||wr)?(en.x=ir?an:ct.y,en.y=Zn?Cn:ct.x,Mr?0<=ot||isNaN(ot)&&.5>at||!Zn||(en.y=-Cn):wr&&((0<=ot||isNaN(ot)&&.5>at)&&Zn&&(en.y=-Cn),ir&&(en.x=-an))):(Zn&&(en.x=0<=ot||isNaN(ot)&&.5>at?an:-an),ir&&(en.y=-Cn),en.rotate(zt))}else en.rotate(zt);gt+=en.x,Qe+=en.y,Xt.pp(ue),Nt+=ue.x,Ze+=ue.y,ot=Ue.allocAt(gt+Nt,Qe+Ze),nt.move(ot),Ue.free(ot),Ue.free(en),Ue.free(ke),ui.free(ue),Ro.free(Xt)}}E!==null?E.Ul(!1):b.Ul(!1),b=Ry(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Ue.free(b)}};function ls(a,y,x,b){if(Sh(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Ls&&a.type===fi.Link&&a.adornedObject instanceof ko&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Zi&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Ls&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Tl(b,!1)}}function Yo(){this.xa="Base"}kn(Yo,Sn),Yo.prototype.measure=function(a,y,x,b,E,z,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ut=at.right+at.left,ct=at.top+at.bottom;ot.measure(y,x,z,nt);var gt=ot.measuredBounds,Nt=new ui(-at.left,-at.top,Math.max(gt.width+ut,0),Math.max(gt.height+ct,0));a.graduatedBounds.push(Nt),E.assign(Nt);for(var zt=ot.geometry,Xt=ot.strokeWidth,ue=zt.flattenedSegments,Qe=zt.flattenedLengths,ke=zt.flattenedTotalLength,Ze=ue.length,en=0,an=0,Cn=sr(),Zn=0;Zn<Ze;Zn++){var ir=ue[Zn],Mr=[];an=en=0;for(var wr=ir.length,Vi=0;Vi<wr;Vi+=2){var Ni=ir[Vi],Fo=ir[Vi+1];if(Vi!==0){var mo=180*Math.atan2(Fo-an,Ni-en)/Math.PI;0>mo&&(mo+=360),Mr.push(mo)}en=Ni,an=Fo}Cn.push(Mr)}if(a.graduatedIntervals===null){for(var Ts=[],fa=a.O.s,Ou=fa.length,zu=0;zu<Ou;zu++){var Hh=fa[zu],Du=[];if(Ts.push(Du),Hh.visible){var Tf=Hh.interval;if(!(0>Tf)){for(var tu=0;tu<Ou;tu++)if(tu!==zu){var mA=fa[tu];if(mA.visible&&Hh.constructor===mA.constructor){var _h=mA.interval;_h>Tf&&Du.push(_h)}}}}}a.graduatedIntervals=Ts}var Of=a.graduatedIntervals,qc=a.O.s,Ud=qc.length,Nc=0,yc=0,Ag=ke;a.graduatedMarks=[];for(var vA,Jp=0;Jp<Ud;Jp++){var Ic=qc[Jp];if(vA=[],Ic.visible&&Ic!==ot){var Qh=Math.abs(Ic.interval),Zm=a.graduatedTickUnit;if(!(2>Zm*Qh*ke/a.graduatedRange&&Ic.graduatedSkip===null)){var fp=Qe[0][0],RA=0,wc=0;yc=ke*Ic.graduatedStart-1e-4,Ag=ke*Ic.graduatedEnd+1e-4;var Dg=Zm*Qh,kc=a.graduatedTickBase;if(kc<a.graduatedMin){var fg=(a.graduatedMin-kc)/Dg;fg=fg%1===0?fg:Math.floor(fg+1),kc+=fg*Dg}else kc>a.graduatedMin+Dg&&(kc-=Math.floor((kc-a.graduatedMin)/Dg)*Dg);for(var av=Of[Jp],Xm=kc,Py=1e-6*a.graduatedMax,of=1;kc<=a.graduatedMax+Py;of++){t:{for(var Af=av.length,gp=0;gp<Af;gp++){var gg=(kc-a.graduatedTickBase)%(av[gp]*a.graduatedTickUnit),qp=1e-6*a.graduatedTickUnit;if(gg<qp&&gg>-qp){var pg=!1;break t}}pg=!0}if(pg&&(kc>a.graduatedMax&&(kc=a.graduatedMax),Ic.graduatedSkip===null||Ic instanceof oa&&!Ic.graduatedSkip(kc,Ic)||Ic instanceof ko&&!Ic.graduatedSkip(kc,Ic))&&(Nc=(kc-a.graduatedMin)*ke/a.graduatedRange,Nc>ke&&(Nc=ke),yc<=Nc&&Nc<=Ag)){for(var sf=Cn[RA][wc],Df=Qe[RA][wc];RA<Qe.length;){for(;Nc>fp&&wc<Qe[RA].length-1;)wc++,sf=Cn[RA][wc],Df=Qe[RA][wc],fp+=Df;if(Nc<=fp)break;RA++,wc=0,sf=Cn[RA][wc],Df=Qe[RA][wc],fp+=Df}var xc=ue[RA],HA=xc[2*wc],lv=xc[2*wc+1],ff=(Nc-(fp-Df))/Df,tm=new Ue(HA+(xc[2*wc+2]-HA)*ff+Xt/2-zt.bounds.x,lv+(xc[2*wc+3]-lv)*ff+Xt/2-zt.bounds.y);tm.scale(ot.scale,ot.scale);t:{var yA=sf,jg=Cn[RA];if(!(.5005>ff&&.4995<ff)){var _A=yA;if(.5>ff?0<wc?_A=jg[wc-1]:Ln.$(xc[0],xc[xc.length-2])&&Ln.$(xc[1],xc[xc.length-1])&&(_A=jg[jg.length-1]):.5<ff&&(wc+1<jg.length?_A=jg[wc+1]:Ln.$(xc[0],xc[xc.length-2])&&Ln.$(xc[1],xc[xc.length-1])&&(_A=jg[0])),yA!==_A){var pp=Math.abs(yA-_A);if(180<pp&&(yA<_A?yA+=360:_A+=360,pp=Math.abs(yA-_A)),5e-4>ff||.9995<ff){sf=(yA+_A)/2%360;break t}if(10>pp){var em=1-Math.abs(.5-ff);sf=(yA*em+_A*(1-em))%360;break t}}}sf=yA}if(Ic instanceof oa){var rA="";Ic.graduatedFunction!==null?(rA=Ic.graduatedFunction(kc,Ic),rA=rA!=null?rA.toString():""):rA=(+kc.toFixed(2)).toString(),rA!==""&&vA.push({$l:tm,angle:sf,text:rA})}else vA.push({$l:tm,angle:sf})}kc=Xm+of*Dg}}}a.graduatedMarks.push(vA)}Br(Cn);var rh=a.graduatedMarks;if(rh!==null)for(var $m=b.length,tc=0;tc<$m;tc++){var eu=b[tc],ec=rh[tc];if(eu.visible&&eu!==ot&&ec.length!==0){if(eu instanceof ko){var gf=a,jf=E,Ug=eu.alignmentFocus;Ug.Mc()&&(Ug=Fl);var by=eu.angle;eu.Kb=0,eu.measure(1/0,1/0,0,0),eu.Kb=by;var uv=eu.measuredBounds,nm=uv.width,Rg=uv.height,mp=ui.allocAt(0,0,nm,Rg),Sc=Ue.alloc();Sc.xi(mp,Ug),ui.free(mp);for(var pf=-Sc.x,wA=-Sc.y,vd=new ui,mg=ec.length,im=0;im<mg;im++)for(var vg=ec[im],hv=vg.$l.x,rm=vg.$l.y,_l=vg.angle,oA=0;4>oA;oA++){switch(oA){case 0:Sc.h(pf,wA);break;case 1:Sc.h(pf+nm,wA);break;case 2:Sc.h(pf,wA+Rg);break;case 3:Sc.h(pf+nm,wA+Rg)}Sc.rotate(_l+eu.angle),Sc.offset(hv,rm),im===0&&oA===0?vd.h(Sc.x,Sc.y,0,0):vd.Ye(Sc),Sc.offset(-hv,-rm),Sc.rotate(-_l-eu.angle)}Ue.free(Sc),gf.graduatedBounds!==null&&gf.graduatedBounds.push(vd),Es(jf,vd.x,vd.y,vd.width,vd.height)}else if(eu instanceof oa){var Rd=a,cv=E;Rd.temporaryTextBlock===null&&(Rd.temporaryTextBlock=new oa);var Tc=Rd.temporaryTextBlock;Eg(Tc,eu);var Uf=eu.alignmentFocus;Uf.Mc()&&(Uf=Fl);for(var Hd=eu.segmentOrientation,om=eu.segmentOffset,yg=new ui,Ym=0,sm=0,QA=0,Hg=0,wg=0,am=ec.length,Rf=0;Rf<am;Rf++){var af=ec[Rf];Ym=af.$l.x,sm=af.$l.y,QA=af.angle,wg=Hg=eu.angle,Hd!==Xh&&(wg=Hd===wm||Hd===v0?QA+eu.angle:QA,Hg=Zi.computeAngle(Hd,wg)),Tc.Kb=Hg,Tc.text=af.text||"",Tc.measure(1/0,1/0,0,0);var Hf=Tc.measuredBounds,mf=Tc.naturalBounds,_f=mf.width,_g=mf.height,xA=Ro.alloc();xA.reset(),xA.translate(-Hf.x,-Hf.y),xA.scale(Tc.scale,Tc.scale),xA.rotate(wg,_f/2,_g/2),Hd!==xm&&Hd!==Cm||xA.rotate(90,_f/2,_g/2),Hd!==Sm&&Hd!==Bm||xA.rotate(-90,_f/2,_g/2),Hd===y0&&(45<QA&&135>QA||225<QA&&315>QA)&&xA.rotate(-QA,_f/2,_g/2);var vp=ui.allocAt(0,0,_f,_g),Qf=Ue.alloc();Qf.xi(vp,Uf),xA.Ga(Qf);var yp=-Qf.x,Ey=-Qf.y,vf=Ue.alloc();vf.assign(om),isNaN(vf.x)&&(vf.x=_f/2+3),isNaN(vf.y)&&(vf.y=-(_g/2+3)),vf.rotate(QA),Ym+=vf.x+yp,sm+=vf.y+Ey;var Qg=new ui(Ym,sm,Hf.width,Hf.height),Jm=new ui(Hf.x,Hf.y,Hf.width,Hf.height),Fy=new ui(mf.x,mf.y,mf.width,mf.height);af.Sz=Hg,af.lineCount=Tc.lineCount,af.lines=[Tc.Cb,Tc.Ih,Tc.df,Tc.Le,Tc.Qc,Tc.Qb,Tc.ze],af.actualBounds=Qg,af.measuredBounds=Jm,af.naturalBounds=Fy,Rf===0?yg.assign(Qg):yg.ed(Qg),Ue.free(vf),Ue.free(Qf),ui.free(vp),Ro.free(xA)}Rd.graduatedBounds!==null&&Rd.graduatedBounds.push(yg),Es(cv,yg.x,yg.y,yg.width,yg.height)}Tl(eu,!1)}}},Yo.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,nt=0,ot=z[nt];nt++,b!==null&&b.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var at=y.length,ut=0;ut<at;ut++){var ct=y[ut];ot=E[ut],ct.visible&&ct!==b&&ot.length!==0&&(ot=z[nt],nt++,ct.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},Yo.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,nt=E.height;E=y instanceof nh,y.save(),y.beginPath(),y.rect(-1,-1,z+1,nt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var ot=z.actualBounds,at=a.O.s,ut=a.graduatedMarks,ct=at.length,gt=0;gt<ct;gt++){var Nt=at[gt],zt=ut[gt],Xt=zt.length;if(Nt.visible&&Nt!==z&&zt.length!==0){if(Nt instanceof ko){if(!(2>a.graduatedTickUnit*Nt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&Nt.graduatedSkip===null)){var ue=Nt.measuredBounds,Qe=Nt.strokeWidth*Nt.scale,ke=Nt.alignmentFocus;ke.Mc()&&(ke=Fl);for(var Ze=0;Ze<Xt;Ze++){var en=zt[Ze].$l,an=zt[Ze].angle,Cn=ke,Zn=Nt.Ab;Zn.reset(),Zn.translate(en.x+ot.x,en.y+ot.y),Zn.rotate(an+Nt.angle,0,0),Zn.translate(-ue.width*Cn.x+Cn.offsetX+Qe/2,-ue.height*Cn.y+Cn.offsetY+Qe/2),Zn.scale(Nt.scale,Nt.scale),uc(Nt,!1),Nt.wh.set(Nt.Ab),Nt.Kk=Nt.scale,hh(Nt,!1),Nt.gc(y,x),E&&(a.svg.appendChild(Nt.svg),Nt.svg=null),Nt.Ab.reset()}}}else if(Nt instanceof oa)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new oa),ue=a.temporaryTextBlock,Eg(ue,Nt),Qe=0;Qe<Xt;Qe++)ke=zt[Qe],ke.actualBounds&&ke.measuredBounds&&ke.naturalBounds&&(ue.ec=ke.text||"",ue.Kb=ke.Sz||0,ue.Gc=ke.lineCount||0,Ze=ke.lines,Ze!==void 0&&(ue.Cb=Ze[0],ue.Ih=Ze[1],ue.df=Ze[2],ue.Le=Ze[3],ue.Qc=Ze[4],ue.Qb=Ze[5],ue.ze=Ze[6]),ke.naturalBounds&&(ue.dc=ke.naturalBounds),ke.actualBounds&&(Ze=ke.actualBounds,ue.arrange(Ze.x,Ze.y,Ze.width,Ze.height)),Ze=ke.actualBounds,ue.arrange(Ze.x,Ze.y,Ze.width,Ze.height),en=ke.measuredBounds,ke=ke.naturalBounds,an=ue.Ab,an.reset(),an.translate(Ze.x+ot.x,Ze.y+ot.y),an.translate(-en.x,-en.y),ue.no(an,ke.x,ke.y,ke.width,ke.height),uc(ue,!1),ue.wh.set(ue.Ab),ue.Kk=ue.scale,hh(ue,!1),ue.Ng=Nt.part,ue.Me=Nt.panel,ue.gc(y,x),ue.Me=null,ue.Ng=null,E&&(a.svg.appendChild(ue.svg),ue.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function fi(a,y){if(pn.call(this),this.na=null,a===void 0)this.na=fi.Position;else if(typeof a=="string"){var x=ch.I(a);x!==null&&(this.na=x)}else a instanceof Sn?this.na=a:a&&(this.na=fi.Position,y=a);this.na===null&&mn("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===fi.Grid?1048576:0),this.O=new Bi,this.yb=Su,this.Tm=Fs,this.Uf=vo,this.$g=null,this.$e="",this.jg=new ui(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Sr,this.jn=Ho,this.kn=qo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}kn(fi,pn),fi.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},fi.prototype.Af=function(a){pn.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,b=0;b<x;b++)y[b].Me=a;a.$g=null},fi.prototype.copy=function(){var a=pn.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,nt=z.count;if(z.Gb(nt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof cr&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(fl,"elements",a,null,E,null,nt)}}return a}return null},Yt=fi.prototype,Yt.toString=function(){return"Panel("+this.type.name+")#"+fs(this)},Yt.Pn=function(a){pn.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Yt.hh=function(a,y){if(this.na===fi.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===fi.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===fi.Table)if(a.yc(),a instanceof nh){var x=a.yd;a.yd=Id(a,"gojs-ts"),os(this,a),a.nh.pop(),a.yd=x}else os(this,a);(x=this.isClipping&&this.na===fi.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x&&ot===b&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function os(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&bl(a,y,!0,x,!0),b!==null&&bl(a,y,!1,b,!0),x!==null&&Pl(a,y,!0,x),b!==null&&Pl(a,y,!1,b),x!==null&&bl(a,y,!0,x,!1),b!==null&&bl(a,y,!1,b,!1)}function Pl(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<E;at++){var ut=b[at];if(ut!==void 0&&ut.actual!==0)if(ot)ot=!1;else{if(x){if(ut.position>nt.height)continue}else if(ut.position>nt.width)continue;var ct=ut.separatorStrokeWidth;isNaN(ct)&&(ct=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var gt=ut.separatorStroke;if(gt===null&&(gt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ct!==0&&gt!==null){wa(a,y,gt,!1,!1,nt,z),gt=!1;var Nt=ut.separatorDashArray;Nt===null&&(Nt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Nt!==null&&(gt=!0,y.js(Nt,0)),y.beginPath(),Nt=ut.position+ct,x?Nt>nt.height&&(ct-=Nt-nt.height):Nt>nt.width&&(ct-=Nt-nt.width),ut=ut.position+ct/2,y.lineWidth=ct,ct=a.yb,x?(ut+=ct.top,Nt=nt.width-ct.right,y.moveTo(ct.left,ut),y.lineTo(Nt,ut)):(ut+=ct.left,Nt=nt.height-ct.bottom,y.moveTo(ut,ct.top),y.lineTo(ut,Nt)),y.stroke(),y.Se(),gt&&y.fs()}}}}function bl(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=rl(a,!0),ut=rl(a,!1),ct=0;ct<z;ct++){var gt=b[ct];if(gt!==void 0&&gt.background!==null&&gt.coversSeparators!==E&&gt.actual!==0){var Nt=x?nt.height:nt.width;if(!(gt.position>Nt)){var zt=gt.Wc(),Xt=gt.separatorStrokeWidth;isNaN(Xt)&&(Xt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ue=gt.separatorStroke;ue===null&&(ue=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ue===null||gt.index===(x?at:ut))&&(Xt=0),zt-=Xt,Xt=gt.position+Xt,zt+=gt.actual,Xt+zt>Nt&&(zt=Nt-Xt),0>=zt||(Nt=a.yb,wa(a,y,gt.background,!0,!1,ot,nt),x?y.fillRect(Nt.left,Xt+Nt.top,nt.width-(Nt.left+Nt.right),zt):y.fillRect(Xt+Nt.left,Nt.top,zt,nt.height-(Nt.top+Nt.bottom)))}}}}function rl(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function Wa(a){return a==="LineV"||a==="BarV"}Yt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Yt.kk=function(a,y,x){if(!pn.prototype.kk.call(this,a,y,x))return!1;if(this.type===fi.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,os(this,a),a.yd=null;else if(this.na===fi.Grid||this.na===fi.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var b=x.length,E=0;E<b;E++)x[E].gc(a,y);return!0},Yt.nk=function(){return!0},Yt.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var ot=y[nt].actualBounds;E=nt===0?ot.x:Math.min(ot.x,E),z=nt===0?ot.y:Math.min(ot.y,z)}b.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-E)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else pn.prototype.$o.call(this,a,y,x,b)},Yt.Sj=function(a,y,x,b,E){var z=this.se(),nt=this.transform,ot=1/(nt.m11*nt.m22-nt.m12*nt.m21),at=nt.m22*ot,ut=-nt.m12*ot,ct=-nt.m21*ot,gt=nt.m11*ot,Nt=ot*(nt.m21*nt.dy-nt.m22*nt.dx),zt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,Ln.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*ct+Nt,ot=a*ut+y*gt+zt,a=x*at+b*ct+Nt,at=x*ut+b*gt+zt,E.h(0,0),x=this.naturalBounds,z=Ln.Ff(0,0,x.width,x.height,z,ot,a,at,E),E.transform(nt),z;z||(at=1,ct=ut=0,gt=1,zt=Nt=0),ot=a*at+y*ct+Nt,a=a*ut+y*gt+zt,at=x*at+b*ct+Nt,x=x*ut+b*gt+zt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ut=!1,gt=this.O.s,zt=gt.length,ct=Ue.alloc(),Nt=null,y=1/0;var Xt=null,ue=this.isClipping&&this.na===fi.Spot;ue&&(Xt=Ue.alloc(),Nt=this.Pb(),(ut=Nt.Sj(ot,a,at,x,Xt))&&(y=(ot-Xt.x)*(ot-Xt.x)+(a-Xt.y)*(a-Xt.y)));for(var Qe=0;Qe<zt;Qe++){var ke=gt[Qe];ke.visible&&ke!==Nt&&ke.Sj(ot,a,at,x,ct)&&(ut=!0,ke=(ot-ct.x)*(ot-ct.x)+(a-ct.y)*(a-ct.y),ke<b&&(b=ke,E.set(ct)))}return ue&&(y>b&&E.set(Xt),Ue.free(Xt)),Ue.free(ct),z&&E.transform(nt),ut},Yt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();pn.prototype.Gj.call(this)},Yt.v=function(a){if(!Sh(this)){pn.prototype.v.call(this,a),a=null,(this.na===fi.Auto||this.na===fi.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if((E===a||E.isPanelMain)&&E.v(!0),!E.desiredSize.w()){var z=uh(E,!1);(E instanceof Zh||E instanceof fi||E instanceof oa||z!==Ei)&&E.v(!0)}}}},Yt.Uj=function(){if(!Sh(this)){Tl(this,!0),Wc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Yt.Uk=function(){if(!(this.l&2048)){uc(this,!0),hh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Yt.Wu=function(){hh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Yt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,nt=this.minSize;x===void 0&&(x=nt.width,b=nt.height),x=Math.max(x,nt.width),b=Math.max(b,nt.height);var ot=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ot.width)),isNaN(z.height)||(y=Math.min(z.height,ot.height)),a=Math.max(x,a),y=Math.max(b,y);var at=this.yb;a=Math.max(a-at.left-at.right,0),y=Math.max(y-at.top-at.bottom,0);var ut=this.O.s;ut.length!==0&&this.na.measure(this,a,y,ut,E,x,b),a=E.width+at.left+at.right,at=E.height+at.top+at.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(at=z.height),a=Math.min(ot.width,a),at=Math.min(ot.height,at),a=Math.max(nt.width,a),at=Math.max(nt.height,at),a=Math.max(x,a),at=Math.max(b,at),Za(E,a,at),Za(this.naturalBounds,a,at),this.Ge(0,0,a,at)},Yt.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function _a(a){return a.part!==null?a.part.locationObject:null}Yt.eh=function(a,y,x,b){var E=this.O.s;if(this.actualBounds.h(a,y,x,b),E.length!==0){if(!this.desiredSize.w()){a=uh(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var nt=this.Kg,ot=nt.left+nt.right;switch(nt=nt.top+nt.bottom,y===x&&z===b&&(a=Ei),a){case Ei:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Oi:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case Dr:this.v(!0),this.measure(x+ot,z+nt,0,0);break;case eo:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},Yt.gh=function(a){var y=this.naturalBounds,x=_a(this);if(_s(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Ue.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(ts(E.set(a),z.transform),z.ca(E)))return Ue.free(E),!0}return Ue.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Yt.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].ks(a);if(E!==null)return E}return null},Yt.qm=function(a,y){if(y(this,a),a instanceof fi){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function dl(a,y){Ia(a,a,y)}function Ia(a,y,x){x(y),y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=y[E];z instanceof fi&&Ia(a,z,x)}}function Wh(a,y){ud(a,a,y)}function ud(a,y,x){if(x(y),y instanceof fi){y=y.O.s;for(var b=y.length,E=0;E<b;E++)ud(a,y[E],x)}}Yt.Nl=function(a){return Rh(this,this,a)};function Rh(a,y,x){if(x(y))return y;if(y instanceof fi){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=Rh(a,y[E],x);if(z!==null)return z}}return null}Yt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=OA(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof fi){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function hd(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof fi?x=Math.max(x,hd(E)):E instanceof ko&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Yt.se=function(){return!(this.type===fi.TableRow||this.type===fi.TableColumn)};function Ol(a){return a.type===fi.TableRow||a.type===fi.TableColumn}Yt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),eh(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:ts(Ue.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ut=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ut=at/2),_s(-(ut*E),-(ut*E),b.width+at*E,b.height+at*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var ct=E.length;if(ot=Ue.alloc(),ut=(at=this.isClipping&&this.na===fi.Spot)?this.Pb():null,at&&(ut.se()?ts(ot.set(a),ut.transform):ot.set(a),!ut.ca(ot)))return Ue.free(ot),z||Ue.free(nt),null;for(var gt=_a(this);ct--;){var Nt=E[ct];if((Nt.visible||Nt===gt)&&(Nt.se()?ts(ot.set(a),Nt.transform):ot.set(a),!at||Nt!==ut)){var zt=null;if(Nt instanceof fi?zt=Nt.ic(ot,y,x):Nt.pickable===!0&&Nt.ca(ot)&&(zt=Nt),zt!==null&&(y!==null&&(zt=y(zt)),zt!==null&&(x===null||x(zt))))return Ue.free(ot),z||Ue.free(nt),zt}}Ue.free(ot)}return this.background===null&&this.areaBackground===null?(z||Ue.free(nt),null):(a=_s(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||Ue.free(nt),a)}return z||Ue.free(nt),null},Yt.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),nt=z?a:ts(Ue.allocAt(a.x,a.y),this.transform);if(E=_s(0,0,E.width,E.height,nt.x,nt.y),Ol(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ut=Ue.alloc(),ct=_a(this);at--;){var gt=ot[at];if(gt.visible||gt===ct){gt.se()?ts(ut.set(a),gt.transform):ut.set(a);var Nt=gt;gt=gt instanceof fi?gt:null,(gt!==null?gt.ji(ut,y,x,b):Nt.ca(ut))&&Nt.pickable!==!1&&(y!==null&&(Nt=y(Nt)),Nt===null||x!==null&&!x(Nt)||b.add(Nt))}}Ue.free(ut)}return z||Ue.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||Ue.free(nt),!1},Yt.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=Ro.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return cd(this,y,x,E),z===void 0&&Ro.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=_a(this),at=this.O.s,ut=at.length;ut--;){var ct=at[ut];if(ct.visible||ct===ot){var gt=ct.actualBounds,Nt=this.naturalBounds;gt.x>Nt.width||gt.y>Nt.height||0>gt.x+gt.width||0>gt.y+gt.height||(gt=ct,ct=ct instanceof fi?ct:null,Nt=Ro.alloc(),Nt.set(nt),(ct!==null?ct.Cf(a,y,x,b,E,Nt):Bl(gt,a,b,Nt))&&(y!==null&&(gt=y(gt)),gt===null||x!==null&&!x(gt)||E.add(gt)),Ro.free(Nt))}}return z===void 0&&Ro.free(nt),b}return z===void 0&&Ro.free(nt),!1};function cd(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var nt=E[z];if(nt.visible){var ot=nt.actualBounds,at=a.naturalBounds;ot.x>at.width||ot.y>at.height||0>ot.x+ot.width||0>ot.y+ot.height||(nt instanceof fi&&cd(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}Yt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var nt=this.naturalBounds,ot=this.se(),at=ot?a:ts(Ue.allocAt(a.x,a.y),this.transform),ut=ot?y:ts(Ue.allocAt(y.x,y.y),this.transform),ct=at.Bf(ut),gt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||Ea(at.x,at.y,0,0,0,nt.height)<=ct||Ea(at.x,at.y,0,nt.height,nt.width,nt.height)<=ct||Ea(at.x,at.y,nt.width,nt.height,nt.width,0)<=ct||Ea(at.x,at.y,nt.width,0,0,0)<=ct;if(nt=at.zd(0,0)<=ct&&at.zd(0,nt.height)<=ct&&at.zd(nt.width,0)<=ct&&at.zd(nt.width,nt.height)<=ct,ot||(Ue.free(at),Ue.free(ut)),gt){if(!this.isAtomic){at=Ue.alloc(),ut=Ue.alloc(),ct=_a(this);for(var Nt=this.O.s,zt=Nt.length;zt--;){var Xt=Nt[zt];if(Xt.visible||Xt===ct){var ue=Xt.actualBounds,Qe=this.naturalBounds;(!ot||!(ue.x>Qe.width||ue.y>Qe.height||0>ue.x+ue.width||0>ue.y+ue.height))&&(Xt.se()?(ue=Xt.transform,ts(at.set(a),ue),ts(ut.set(y),ue)):(at.set(a),ut.set(y)),ue=Xt,Xt=Xt instanceof fi?Xt:null,(Xt!==null?Xt.og(at,ut,x,b,E,z):ue.tx(at,ut,E))&&(x!==null&&(ue=x(ue)),ue===null||b!==null&&!b(ue)||z.add(ue)))}}Ue.free(at),Ue.free(ut)}return E?gt:nt}return!1};function dd(a){var y=null;return a instanceof ko&&(y=a.spot1,y===Fs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ol),y}function Vh(a){var y=null;return a instanceof ko&&(y=a.spot2,y===Fs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Yl),y}Yt.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},Yt.M=function(a){return this.O.M(a)},Yt.Gb=function(a,y){y instanceof $r&&mn("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&mn("Cannot make a Panel contain itself: "+this.toString()),mn("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&mn("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==fi.Grid||y instanceof ko||mn("Can only add Shapes to a Grid Panel, not: "+y),this.na!==fi.Graduated||y instanceof ko||y instanceof oa||mn("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new gr),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,nt=this.O.s,ot=nt.length,at=0;at<ot;at++)if(nt[at]===y){z=at;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else mn("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>E.count)&&(a=E.count),E.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),Sh(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof fi&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Xg(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof cr&&(x.Te=!0),x.Te&&x instanceof cr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Ql,"elements",this,y,null,b,null),x.cb(fl,"elements",this,null,y,null,a)))};function hc(a,y){a.l=y?a.l|16777216:a.l&-16777217}Yt.remove=function(a){for(var y=this.O.s,x=y.length,b=-1,E=0;E<x;E++)if(y[E]===a){b=E;break}b!==-1&&this.pc(b,!0)},Yt.mb=function(a){0<=a&&this.pc(a,!0)},Yt.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),Tl(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof cr&&(b instanceof fi?b.qm(b,function(nt,ot){Ev(z,ot,y)}):Ev(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ql,"elements",this,b,null,a,null))},Yt.Fb=function(a){0>a&&Mi(a,">= 0",fi,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Zl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(fl,"rowdefs",this,null,x,null,a)}return y[a]},Yt.oA=function(a){if(0>a&&Mi(a,">= 0",fi,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Ql,"rowdefs",this,x,null,a,null),this.v()}}};function Vc(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Zl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Yt.Eb=function(a){0>a&&Mi(a,">= 0",fi,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Zl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(fl,"coldefs",this,null,x,null,a)}return y[a]},Yt.jA=function(a){if(0>a&&Mi(a,">= 0",fi,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Ql,"coldefs",this,x,null,a,null),this.v()}}};function qd(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Zl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Yt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Xf(y,a),this},Yt.Hy=function(a,y){return(a=this.Fb(a))&&Xf(a,new Zl(y)),this},Yt.By=function(a,y){return(a=this.Eb(a))&&Xf(a,new Zl(y)),this},Yt.nz=function(a){if(0>a||this.type!==fi.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,b=x.length,E=this.topIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Yt.fz=function(a){if(0>a||this.type!==fi.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,b=x.length,E=this.leftIndex;E<b;E++){var z=x[E];if(z!==void 0&&(y+=z.total,a<y))break}return E},Yt.Fz=function(a,y){if(y===void 0&&(y=new Ue(NaN,NaN)),this.type!==fi.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},Yt.Gz=function(a){if(this.type!==fi.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function TA(a){return a=a.allBindings,a!==null&&a._isFrozen}function ou(a){var y=a.allBindings;if(y===null)a.data!==null&&mn("Template cannot have .data be non-null: "+a),a.allBindings=y=new Bi;else if(y._isFrozen)return;var x=new Bi;hc(a,!1),a.qm(a,function(ut,ct){ct.th();var gt=ct.localBindings;if(gt!==null)for(ad(ct,!1),gt=gt.iterator;gt.next();){var Nt=gt.value;Nt.mode===Im&&ad(ct,!0);var zt=Nt.sourceName;zt!==null&&(zt==="/"&&hc(ut,!0),zt=k1(Nt,ut,ct),zt!==null&&(x.add(zt),zt.srcBindings===null&&(zt.srcBindings=new Bi),zt.srcBindings.add(Nt))),y.add(Nt)}if(ct instanceof fi&&ct.type===fi.Table){if(0<ct.rowCount){for(ut=ct.rowDefs,gt=ut.length,Nt=0;Nt<gt;Nt++)if(zt=ut[Nt],zt!==void 0&&zt.be!==null)for(var Xt=zt.be.iterator;Xt.next();){var ue=Xt.value;ue.xd=zt,ue.to=2,ue.wl=zt.index,y.add(ue)}}if(0<ct.columnCount){for(ct=ct.colDefs,ut=ct.length,gt=0;gt<ut;gt++)if(Nt=ct[gt],Nt!==void 0&&Nt.be!==null)for(zt=Nt.be.iterator;zt.next();)Xt=zt.value,Xt.xd=Nt,Xt.to=1,Xt.wl=Nt.index,y.add(Xt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){ad(E,!0);for(var z=E.srcBindings.iterator;z.next();){var nt=z.value;E.localBindings===null&&(E.localBindings=new Bi),E.localBindings.add(nt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var ot=E.targetProperty,at=ot.indexOf(".");0<at&&z instanceof fi&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):er('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof Zl?(nt=fs(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof pn?(nt=fs(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):mn("Unknown type of binding target: "+z)}y.freeze(),a instanceof $r&&a.Zc()&&a.Va()}Yt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Wh(y,function(x){x instanceof fi&&(x.allBindings=null,x.ub=null);var b=x.localBindings;b!==null&&(x.localBindings=null,b.each(function(E){x.bind(E.copy())})),b=x.animationTriggers,b!==null&&(x.animationTriggers=null,b.each(function(E){x.Jv(E.value.copy())}))}),a&&ou(y),y},Yt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,nt=x.Ai;if(nt!==-1){if(z=this.ks(nt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof fi))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Yt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function uf(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof fi&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var nt=0;E<x&&nt<b;){if(z=a[E],!(z instanceof fi)||z.data!==y[nt])return!0;E++,nt++}return!1}function OA(a){if(a.type===fi.Spot||a.type===fi.Auto)return Math.min(a.O.length,1);if(a.type===fi.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof ko&&b.isPanelMain))break}return x}return a.type===fi.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof fi&&Ol(a))?1:0}Yt.mv=function(){for(var a=OA(this);this.O.length>a;)this.pc(this.O.length-1,!1);Zf(this,this.itemArray)};function Zf(a,y){var x=OA(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)DA(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof fi){if(nt.data!==z){var ot=Zg(a,nt.data),at=Zg(a,z),ut=at!==ot;ut||(ot=Bp(a,ot),ut=Bp(a,at)!==ot),ut?(a.pc(b,!1),DA(a,z,E,!1)):nt.data=z}}else DA(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,gh(a,x,0),Sh(a)||a.v(),a.graduatedIntervals=null,a.If()||Xg(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof cr&&(y.Te=!0),y.Te&&y instanceof cr&&(y.wc=null))}}function DA(a,y,x,b){if(!(y==null||0>x)){var E=Zg(a,y);if(E=Bp(a,E),E!==null){if(ou(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&hc(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new gr),a.ge.add(y,E)),z=x+OA(a),a.Gb(z,E),b&&(E.ub=y,gh(a,z,x),E.ub=null),E.data=y}}}function gh(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof fi){var E=y,z=x;b.type===fi.TableRow?b.row=E:b.type===fi.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Zg(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=Xl(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;mn("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Bp(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(Bg||(Bg=!0,er('No item template Panel found for category "'+y+'" on '+a),er(" Using default item template."),a=new fi,y=new oa,y.bind(new ql("text","",Er)),a.add(y),$g=a),b=$g)),b}function Xg(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof fi){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof fi&&!z.isEnabled||Xg(a,z,x)}}}function Zc(a,y){y.name=a,ch.add(a,y)}rn.Object.defineProperties(fi.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===fi.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Mi(a,">= 0",fi,"padding"),a=new Gr(a)):(0>a.left&&Mi(a.left,">= 0",fi,"padding:value.left"),0>a.right&&Mi(a.right,">= 0",fi,"padding:value.right"),0>a.top&&Mi(a.top,">= 0",fi,"padding:value.top"),0>a.bottom&&Mi(a.bottom,">= 0",fi,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Su},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Mh),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof js)&&(a instanceof js&&a.freeze(),this.T===null&&(this.T=new Mh),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Mh),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||mn("defaultRowSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Mh),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof js)&&(a instanceof js&&a.freeze(),this.T===null&&(this.T=new Mh),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Mh),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||mn("defaultColumnSeparatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Mh),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new Mh),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||mn("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pc(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||mn("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Pc(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),du(this)&&(a=this.part,a!==null&&ea(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),du(this)&&(a=this.part,a!==null&&ea(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new Xc),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new Xc),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new Xc,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new Xc,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new Xc,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new Xc,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Mh),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Mh),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Yf},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Mh),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Yf},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Mh),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&mn("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Mh),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&mn("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Mh),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof $r&&!(this instanceof Ls);ou(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Zi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof $r&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),b!==null&&b.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new GA),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&uf(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&Vv(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&Wv(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||Zf(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new gr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof $r||a.isPanelMain)&&mn("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Io(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Io(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof To&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Xg(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),rn.Object.defineProperties(fi,{Position:{get:function(){return ch.I("Position")}},Horizontal:{get:function(){return ch.I("Horizontal")}},Vertical:{get:function(){return ch.I("Vertical")}},Spot:{get:function(){return ch.I("Spot")}},Auto:{get:function(){return ch.I("Auto")}},Table:{get:function(){return ch.I("Table")}},Viewbox:{get:function(){return ch.I("Viewbox")}},TableRow:{get:function(){return ch.I("TableRow")}},TableColumn:{get:function(){return ch.I("TableColumn")}},Link:{get:function(){return ch.I("Link")}},Grid:{get:function(){return ch.I("Grid")}},Graduated:{get:function(){return ch.I("Graduated")}}}),fi.prototype.rebuildItemElements=fi.prototype.mv,fi.prototype.findItemPanelForData=fi.prototype.sx,fi.prototype.updateTargetBindings=fi.prototype.La,fi.prototype.copyTemplate=fi.prototype.Uy,fi.prototype.graduatedValueForPoint=fi.prototype.Gz,fi.prototype.graduatedPointForValue=fi.prototype.Fz,fi.prototype.findColumnForLocalX=fi.prototype.fz,fi.prototype.findRowForLocalY=fi.prototype.nz,fi.prototype.addColumnDefinition=fi.prototype.By,fi.prototype.addRowDefinition=fi.prototype.Hy,fi.prototype.addRowColumnDefinition=fi.prototype.Gy,fi.prototype.removeColumnDefinition=fi.prototype.jA,fi.prototype.getColumnDefinition=fi.prototype.Eb,fi.prototype.removeRowDefinition=fi.prototype.oA,fi.prototype.getRowDefinition=fi.prototype.Fb,fi.prototype.removeAt=fi.prototype.mb,fi.prototype.remove=fi.prototype.remove,fi.prototype.insertAt=fi.prototype.Gb,fi.prototype.elt=fi.prototype.M,fi.prototype.add=fi.prototype.add,fi.prototype.findObject=fi.prototype.fb,fi.prototype.findInVisualTree=fi.prototype.Nl,fi.prototype.walkVisualTreeFrom=fi.prototype.qm,fi.prototype.findMainElement=fi.prototype.Pb;var Bg=!1,$g=null,ch=new gr;fi.className="Panel",fi.definePanelLayout=Zc,Zc("Position",new Tn),Zc("Vertical",new mi),Zc("Auto",new ki),Zc("Link",new Yr);function Xc(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}Xc.prototype.copy=function(){var a=new Xc;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},Xc.className="GradPanelSettings";function Mh(){this.Pc=[],this.Oc=[],this.j=this.ob=Yf,this.hb=this.Hb=0,this.Qp=Su,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Mh.prototype.copy=function(a){for(var y=new Mh,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var nt=x[z].copy();nt.wi(a),E[z]=nt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(nt=x[z].copy(),nt.wi(a),E[z]=nt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Mh.className="TablePanelSettings";function Zl(a){Xo(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Fs,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Pg,this.hg=vo,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Zl.prototype.copy=function(){var a=new Zl;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Pr(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Xf(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Pr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Yt=Zl.prototype,Yt.qb=function(a){a.classType===Zl&&(this.sizing=a)},Yt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+fs(this)},Yt.wi=function(a){this.Me=a},Yt.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Yt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===fi.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var nt=b?y.rowDefs[z]:y.colDefs[z];if(nt!==void 0&&nt.oa!==0){x=nt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Yt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Ma,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Yg(a){if(a.sizing===Pg){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Yt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new ql(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&TA(y)&&mn("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Bi),this.be.add(E),this},rn.Object.defineProperties(Zl.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Mi(a,">= 0",Zl,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Mi(a,">= 0",Zl,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Mi(a,">= 0",Zl,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Mi(a,">= 0",Zl,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Ht(a,"RowColumnDefinition.separatorStroke"),a instanceof js&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];typeof z=="number"&&0<=z&&isFinite(z)||mn("separatorDashArray value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ht(a,"RowColumnDefinition.background"),a instanceof js&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Zl.prototype.computeEffectiveSpacing=Zl.prototype.Wc,Zl.prototype.computeEffectiveSpacingTop=Zl.prototype.Io;var Pg=new jn(Zl,"Default",0),$f=new jn(Zl,"None",1),Yf=new jn(Zl,"ProportionalExtra",2);Zl.className="RowColumnDefinition",Zl.Default=Pg,Zl.None=$f,Zl.ProportionalExtra=Yf;function ko(a,y){pn.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}kn(ko,pn),ko.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Pr(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function Sf(a){a.Na===null?a.Na=new Ep:a.Na.nc&&(a.Na=a.Na.copy())}Yt=ko.prototype,Yt.th=function(){pn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Yt.qb=function(a){a===Ei||a===Sr||a===Zo||a===vo?this.geometryStretch=a:pn.prototype.qb.call(this,a)},Yt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+fs(this)};function bg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,nt=Math.max(1,z.width);z=z.height;for(var ot=x[0],at=x[1],ut,ct,gt,Nt,zt,Xt,ue=0,Qe=sr(),ke=2;ke<E;ke+=2)ut=x[ke],ct=x[ke+1],gt=ut-ot,ot=ct-at,gt===0&&(gt=.001),Nt=ot/gt,zt=Math.atan2(ot,gt),Xt=Math.sqrt(gt*gt+ot*ot),Qe.push([gt,zt,Nt,Xt]),ue+=Xt,ot=ut,at=ct;ot=x[0],at=x[1],gt=b.measuredBounds.width,b instanceof ko&&(gt-=b.strokeWidth),1>gt&&(gt=1),E=x=gt,ut=nt/2,ct=ut!==0,ke=0,Xt=Qe[ke],gt=Xt[0],zt=Xt[1],Nt=Xt[2],Xt=Xt[3];for(var Ze=0;.1<=ue;){if(Ze===0&&(ct?(E=x,E-=ut,ue-=ut,ct=!1):E=x,E===0&&(E=1)),E>ue){Br(Qe);return}E>Xt?(Ze=E-Xt,E=Xt):Ze=0;var en=Math.sqrt(E*E/(1+Nt*Nt));if(0>gt&&(en=-en),ot+=en,at+=Nt*en,a.translate(ot,at),a.rotate(zt),a.translate(-(nt/2),-(z/2)),Ze===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-zt),a.translate(-ot,-at),ue-=E,Xt-=E,Ze!==0){if(ke++,ke===Qe.length){Br(Qe);return}Xt=Qe[ke],gt=Xt[0],zt=Xt[1],Nt=Xt[2],Xt=Xt[3],E=Ze}}Br(Qe)}}Yt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,nt=this.naturalBounds;b!==null&&wa(this,a,b,!0,!1,nt,z);var ot=this.part,at=this.ig;if(x===null||at!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(at=ot.type===fi.Link&&ot instanceof Ls&&ot.category==="Selection"&&ot.adornedObject instanceof ko&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(wa(this,a,x,!1,!1,nt,z),a.lineWidth=at,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||b!==null&&b!=="transparent"||(ot=!1),nt=!1,at=this.strokeDashArray,at!==null&&(nt=!0,a.js(at,this.strokeDashOffset)),E.type===$i.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===$i.u){var ut=E.startX;at=E.startY;var ct=E.endX,gt=E.endY;E=Math.min(ut,ct);var Nt=Math.min(at,gt);ut=Math.abs(ct-ut),at=Math.abs(gt-at),a.beginPath(),a.rect(E,Nt,ut,at),b!==null&&a.ng(b),x!==null&&(ot&&z&&ld(a),a.jk(),ot&&z&&kd(a)),a.Se()}else if(E.type===$i.F)ut=E.startX,at=E.startY,ct=E.endX,gt=E.endY,E=Math.abs(ct-ut)/2,Nt=Math.abs(gt-at)/2,ut=Math.min(ut,ct)+E,at=Math.min(at,gt)+Nt,a.beginPath(),a.moveTo(ut,at-Nt),a.bezierCurveTo(ut+Ln.wg*E,at-Nt,ut+E,at-Ln.wg*Nt,ut+E,at),a.bezierCurveTo(ut+E,at+Ln.wg*Nt,ut+Ln.wg*E,at+Nt,ut,at+Nt),a.bezierCurveTo(ut-Ln.wg*E,at+Nt,ut-E,at+Ln.wg*Nt,ut-E,at),a.bezierCurveTo(ut-E,at-Ln.wg*Nt,ut-Ln.wg*E,at-Nt,ut,at-Nt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&ld(a),a.jk(),ot&&z&&kd(a)),a.Se();else if(E.type===$i.o)for(E=E.figures,at=E.length,Nt=0;Nt<at;Nt++){ut=E.s[Nt],a.beginPath(),a.moveTo(ut.startX,ut.startY),ct=ut.segments.s,gt=ct.length;for(var zt=null,Xt=0;Xt<gt;Xt++){var ue=ct[Xt];switch(ue.type){case Ll:a.moveTo(ue.endX,ue.endY);break;case ra:a.lineTo(ue.endX,ue.endY);break;case gu:a.bezierCurveTo(ue.point1X,ue.point1Y,ue.point2X,ue.point2Y,ue.endX,ue.endY);break;case bh:a.quadraticCurveTo(ue.point1X,ue.point1Y,ue.endX,ue.endY);break;case xl:if(ue.radiusX===ue.radiusY){var Qe=Math.PI/180;a.arc(ue.point1X,ue.point1Y,ue.radiusX,ue.startAngle*Qe,(ue.startAngle+ue.sweepAngle)*Qe,0>ue.sweepAngle,zt!==null?zt.endX:ut.startX,zt!==null?zt.endY:ut.startY)}else if(zt=oh(ue,ut),Qe=zt.length,Qe===0)a.lineTo(ue.centerX,ue.centerY);else for(var ke=0;ke<Qe;ke++){var Ze=zt[ke];ke===0&&a.lineTo(Ze[0],Ze[1]),a.bezierCurveTo(Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7])}break;case zh:if(ke=Qe=0,zt!==null&&zt.type===xl){if(zt=oh(zt,ut),Ze=zt.length,Ze===0){a.lineTo(ue.endX,ue.endY);break}zt=zt[Ze-1]||null,zt!==null&&(Qe=zt[6],ke=zt[7])}else Qe=zt!==null?zt.endX:ut.startX,ke=zt!==null?zt.endY:ut.startY;if(zt=Xu(ue,ut,Qe,ke),Qe=zt.length,Qe===0){a.lineTo(ue.endX,ue.endY);break}for(ke=0;ke<Qe;ke++)Ze=zt[ke],a.bezierCurveTo(Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7]);break;default:mn("Segment not of valid type: "+ue.type)}ue.isClosed&&a.closePath(),zt=ue}ct=ut.isFilled,z?ut.isShadowed?(ct===!0&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&(ct&&ot&&ld(a),a.jk(),ct&&ot&&kd(a))):(ld(a),ct&&b!=="transparent"&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk(),kd(a)):(ct&&b!==null&&a.ng(b,ut.isEvenOdd),x!==null&&a.jk()),a.Se(Nt)}if(nt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=sr(),z.type===$i.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),bg(a,y,b,x);else if(z.type===$i.o)for(z=z.figures.iterator;z.next();){for(ot=z.value,b.length=0,b.push(ot.startX),b.push(ot.startY),nt=ot.startX,E=ot.startY,at=nt,Nt=E,ut=ot.segments.s,ct=ut.length,gt=0;gt<ct;gt++){switch(Xt=ut[gt],Xt.type){case Ll:bg(a,y,b,x),b.length=0,b.push(Xt.endX),b.push(Xt.endY),nt=Xt.endX,E=Xt.endY,at=nt,Nt=E;break;case ra:b.push(Xt.endX),b.push(Xt.endY),nt=Xt.endX,E=Xt.endY;break;case gu:Ln.Qe(nt,E,Xt.point1X,Xt.point1Y,Xt.point2X,Xt.point2Y,Xt.endX,Xt.endY,.5,b),nt=Xt.endX,E=Xt.endY;break;case bh:Ln.ep(nt,E,Xt.point1X,Xt.point1Y,Xt.endX,Xt.endY,.5,b),nt=Xt.endX,E=Xt.endY;break;case xl:if(ue=oh(Xt,ot),zt=ue.length,zt===0){b.push(Xt.centerX),b.push(Xt.centerY),nt=Xt.centerX,E=Xt.centerY;break}for(Qe=0;Qe<zt;Qe++)ke=ue[Qe],Ln.Qe(nt,E,ke[2],ke[3],ke[4],ke[5],ke[6],ke[7],.5,b),nt=ke[6],E=ke[7];break;case zh:if(ue=Xu(Xt,ot,nt,E),zt=ue.length,zt===0){b.push(Xt.endX),b.push(Xt.endY),nt=Xt.endX,E=Xt.endY;break}for(Qe=0;Qe<zt;Qe++)ke=ue[Qe],Ln.Qe(nt,E,ke[2],ke[3],ke[4],ke[5],ke[6],ke[7],.5,b),nt=ke[6],E=ke[7];break;default:mn("Segment not of valid type: "+Xt.type)}Xt.isClosed&&(b.push(at),b.push(Nt),bg(a,y,b,x))}bg(a,y,b,x)}else if(z.type===$i.u)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.startY),b.push(z.endX),b.push(z.endY),b.push(z.startX),b.push(z.endY),b.push(z.startX),b.push(z.startY),bg(a,y,b,x);else if(z.type===$i.F){if(E=new nl,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new ys(xl),nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(z.startX+z.endX)/2,nt.centerY=(z.startY+z.endY)/2,nt.radiusX=Math.abs(z.startX-z.endX)/2,nt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(nt),z=oh(nt,E),ot=z.length,ot===0)b.push(nt.centerX),b.push(nt.centerY);else for(nt=E.startX,E=E.startY,at=0;at<ot;at++)Nt=z[at],Ln.Qe(nt,E,Nt[2],Nt[3],Nt[4],Nt[5],Nt[6],Nt[7],.5,b),nt=Nt[6],E=Nt[7];bg(a,y,b,x)}Br(b),a.restore(),a.Vc(!1)}}}},Yt.kk=function(a,y,x){return!pn.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Yt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:pn.prototype.nk.call(this,a)},Yt.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Yt.ga=function(a,y){if(y===void 0&&(y=new Ue),a instanceof fr){a.Mc()&&mn("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,b=this.strokeWidth;y.h(a.x*(x.width+b)-b/2+x.x+a.offsetX,a.y*(x.height+b)-b/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Yt.mi=function(a){a===void 0&&(a=new ui);var y=this.naturalBounds,x=this.oe;y=ui.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Ue.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Es(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Es(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Es(a,b.x,b.y,0,0),ui.free(y),Ue.free(b),a},Yt.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==$i.j||y||(E+=2);var z=ui.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return ui.free(z),!1;if(b=E+1e-4,x.type===$i.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(ui.free(z),Ln.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===$i.u){y=x.startX;var nt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(nt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-nt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return ui.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),ui.free(z),a}if(x.type===$i.F){nt=x.startX,E=x.startY,ot=x.endX;var at=x.endY;if(x=Math.min(nt,ot),y=Math.min(E,at),nt=Math.abs(ot-nt)/2,E=Math.abs(at-E)/2,x=a.x-(x+nt),y=a.y-(y+E),this.fill===null){if(nt-=b,E-=b,0>=nt||0>=E||1>=x*x/(nt*nt)+y*y/(E*E))return ui.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),ui.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===$i.o)return ui.free(z),this.fill===null?Ph(x,a.x,a.y,E):Gu(x,a,E,1<this.strokeWidth,y);mn("Unknown Geometry type: "+x.type)},Yt.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var nt=this.geometry.bounds;else{var ot=this.figure,at=bp[ot];if(at===void 0){var ut=Ln.Ze[ot];typeof ut=="string"&&(ut=Ln.Ze[ut]),typeof ut=="function"?(at=ut(null,100,100),bp[ot]=at):mn("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ut=nt.width;var ct=nt.height;switch(uh(this,!0)){case Ei:b=x=0;break;case Oi:ut=Math.max(a-z,0),ct=Math.max(y-z,0);break;case Dr:ut=Math.max(a-z,0),b=0;break;case eo:x=0,ct=Math.max(y-z,0)}isFinite(E.width)&&(ut=E.width),isFinite(E.height)&&(ct=E.height);var gt=this.maxSize,Nt=this.minSize;switch(x=Math.max(x-z,Nt.width),b=Math.max(b-z,Nt.height),ut=Math.min(gt.width,ut),ct=Math.min(gt.height,ct),ut=isFinite(ut)?Math.max(x,ut):Math.max(ot,x),ct=isFinite(ct)?Math.max(b,ct):Math.max(at,b),x=Jg(this),x){case Ei:break;case Oi:ot=ut,at=ct;break;case Sr:x=Math.min(ut/ot,ct/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:mn(x+" is not a valid geometryStretch.")}this.Rd!==null?(ot===0&&(ot=.001),at===0&&(at=.001),x=this.Rd!==null?this.Rd:this.ua,nt=x.bounds,b=ot/nt.width,nt=at/nt.height,isFinite(b)||(b=1),isFinite(nt)||(nt=1),this.ua=b===1&&nt===1?x:x.copy().scale(b,nt)):this.ua!==null&&Ln.$(this.ua.Sk,a-z)&&Ln.$(this.ua.Rk,y-z)||(this.ua=ko.makeGeometry(this,ot,at)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-z/2,nt.y-z/2,a===0&&ot===0?0:nt.width+z,y===0&&at===0?0:nt.height+z):this.Ge(-(z/2),-(z/2),ut+z,ct+z),E.w()?(ut=E.width,ct=E.height,ut=Math.min(gt.width,ut),ct=Math.min(gt.height,ct),ut=Math.max(Nt.width,ut),ct=Math.max(Nt.height,ct),this.dc.h(0,0,ut,ct)):this.dc.assign(nt)};function Jg(a){var y=a.geometryStretch;return a.Rd!==null?y===vo?Oi:y:y===vo?bp[a.figure].defaultStretch:y}Yt.eh=function(a,y,x,b){ku(this,a,y,x,b)},Yt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Yt.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ut=-z.m21*nt,ct=z.m11*nt,gt=nt*(z.m21*z.dy-z.m22*z.dx),Nt=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ut+gt,nt=a*at+y*ct+Nt,ot=x*ot+b*ut+gt,at=x*at+b*ct+Nt,gt=this.ig/2,ut=this.ua,ut===null&&(this.measure(1/0,1/0),ut=this.ua);var zt=ut.bounds;if(ct=!1,ut.type===$i.j)if(1.5>=this.strokeWidth)ct=Ln.Ve(ut.startX,ut.startY,ut.endX,ut.endY,z,nt,ot,at,E);else{if(ut.startX===ut.endX?(b=gt,ct=0):(y=(ut.endY-ut.startY)/(ut.endX-ut.startX),ct=gt/Math.sqrt(1+y*y),b=ct*y),y=sr(),a=new Ue,Ln.Ve(ut.startX+b,ut.startY+ct,ut.endX+b,ut.endY+ct,z,nt,ot,at,a)&&y.push(a),a=new Ue,Ln.Ve(ut.startX-b,ut.startY-ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),a=new Ue,Ln.Ve(ut.startX+b,ut.startY+ct,ut.startX-b,ut.startY-ct,z,nt,ot,at,a)&&y.push(a),a=new Ue,Ln.Ve(ut.endX+b,ut.endY+ct,ut.endX-b,ut.endY-ct,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return Br(y),!1;for(ct=!0,at=1/0,b=0;b<ot;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-nt)*(a.y-nt),x<at&&(at=x,E.x=a.x,E.y=a.y);Br(y)}else if(ut.type===$i.u)ct=Ln.Ff(zt.x-gt,zt.y-gt,zt.x+zt.width+gt,zt.y+zt.height+gt,z,nt,ot,at,E);else if(ut.type===$i.F){y=ui.allocAt(zt.x,zt.y,zt.width,zt.height).Bc(gt,gt);t:if(y.width===0)ct=Ln.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)ct=Ln.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,ot,at,E);else{if(a=y.width/2,ut=y.height/2,b=y.x+a,ct=y.y+ut,x=9999,z!==ot&&(x=(nt-at)/(z-ot)),9999>Math.abs(x)){if(at=nt-ct-x*(z-b),0>a*a*x*x+ut*ut-at*at){E.x=NaN,E.y=NaN,ct=!1;break t}gt=Math.sqrt(a*a*x*x+ut*ut-at*at),ot=(-(a*a*x*at)+a*ut*gt)/(ut*ut+a*a*x*x)+b,a=(-(a*a*x*at)-a*ut*gt)/(ut*ut+a*a*x*x)+b,ut=x*(ot-b)+at+ct,at=x*(a-b)+at+ct,Math.abs((z-ot)*(z-ot))+Math.abs((nt-ut)*(nt-ut))<Math.abs((z-a)*(z-a))+Math.abs((nt-at)*(nt-at))?(E.x=ot,E.y=ut):(E.x=a,E.y=at)}else{if(ot=ut*ut,at=z-b,ot-=ot/(a*a)*at*at,0>ot){E.x=NaN,E.y=NaN,ct=!1;break t}at=Math.sqrt(ot),ot=ct+at,at=ct-at,Math.abs(ot-nt)<Math.abs(at-nt)?(E.x=z,E.y=ot):(E.x=z,E.y=at)}ct=!0}ui.free(y)}else if(ut.type===$i.o){Nt=Ue.alloc();var Xt=ot-z,ue=at-nt,Qe=Xt*Xt+ue*ue,ke=z,Ze=nt;if(0<Qe&&zt.contains(ke,Ze)&&(Nt.x=ke,Nt.y=Ze,this.ca(Nt)))for(Xt!==0&&.5>Math.abs(Xt)?(ue*=.5/Xt,Xt=.5):ue!==0&&.5>Math.abs(ue)&&(Xt*=.5/ue,ue=.5),ke-=Xt,Ze-=ue;zt.contains(ke,Ze);)ke-=Xt,Ze-=ue;for(E.x=ot,E.y=at,ue=0;ue<ut.figures.count;ue++){var en=ut.figures.s[ue],an=en.isFilled?ke:z,Cn=en.isFilled?Ze:nt,Zn=en.segments;zt=en.startX,Xt=en.startY;for(var ir=zt,Mr=Xt,wr=0;wr<Zn.count;wr++){var Vi=Zn.s[wr],Ni=Vi.type,Fo=Vi.endX,mo=Vi.endY,Ts=!1;switch(Ni){case Ll:ir=Fo,Mr=mo;break;case ra:Ts=Pp(zt,Xt,Fo,mo,an,Cn,ot,at,Nt);break;case gu:Ts=Ln.Eo(zt,Xt,Vi.point1X,Vi.point1Y,Vi.point2X,Vi.point2Y,Fo,mo,an,Cn,ot,at,.6,Nt);break;case bh:Ts=Ln.Eo(zt,Xt,zt+2/3*(Vi.point1X-zt),Xt+2/3*(Vi.point1Y-Xt),Fo+2/3*(Vi.point1X-Fo),mo+2/3*(Vi.point1Y-mo),Fo,mo,an,Cn,ot,at,.6,Nt);break;case xl:case zh:Ni=Vi.type===xl?oh(Vi,en):Xu(Vi,en,zt,Xt);var fa=Ni.length;if(fa===0){Ts=Pp(zt,Xt,Vi.type===xl?Vi.centerX:Vi.endX,Vi.type===xl?Vi.centerY:Vi.endY,an,Cn,ot,at,Nt);break}for(mo=null,Fo=0;Fo<fa;Fo++){if(mo=Ni[Fo],Fo===0&&Pp(zt,Xt,mo[0],mo[1],an,Cn,ot,at,Nt)){var Ou=jA(an,Cn,Nt,Qe,E);Ou<Qe&&(Qe=Ou,ct=!0)}Ln.Eo(mo[0],mo[1],mo[2],mo[3],mo[4],mo[5],mo[6],mo[7],an,Cn,ot,at,.6,Nt)&&(Ou=jA(an,Cn,Nt,Qe,E),Ou<Qe&&(Qe=Ou,ct=!0))}Fo=mo[6],mo=mo[7];break;default:mn("Unknown Segment type: "+Ni)}zt=Fo,Xt=mo,Ts&&(Ts=jA(an,Cn,Nt,Qe,E),Ts<Qe&&(Qe=Ts,ct=!0)),Vi.isClosed&&(Fo=ir,mo=Mr,Pp(zt,Xt,Fo,mo,an,Cn,ot,at,Nt)&&(Vi=jA(an,Cn,Nt,Qe,E),Vi<Qe&&(Qe=Vi,ct=!0)))}}z=x-a,nt=b-y,ot=Math.sqrt(z*z+nt*nt),ot!==0&&(z/=ot,nt/=ot),E.x-=z*gt,E.y-=nt*gt,Ue.free(Nt)}else mn("Unknown Geometry type: "+ut.type);return ct?(this.transform.Ga(E),!0):!1};function jA(a,y,x,b,E){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<b?(E.x=x.x,E.y=x.y,y):b}function Pp(a,y,x,b,E,z,nt,ot,at){if(Ln.$(a,x)&&Ln.$(y,b)||Ln.$(E,nt)&&Ln.$(z,ot))return!1;var ut=!1,ct=(E-nt)*(y-b)-(z-ot)*(a-x);return ct===0?!1:(at.x=((E*ot-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/ct,at.y=((E*ot-z*nt)*(y-b)-(z-ot)*(a*b-y*x))/ct,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(at.y>a||Ln.$(at.y,a))&&(at.y<y||Ln.$(at.y,y))&&(ut=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||Ln.$(at.x,y))&&(at.x<a||Ln.$(at.x,a))&&(ut=!0)),ut)}Yt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var b=this.strokeWidth/2,E=!1,z=Ue.alloc();return z.h(x.x-b,x.y-b),a.ca(y.Ga(z))&&(z.h(x.x-b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.bottom+b),a.ca(y.Ga(z))&&(z.h(x.right+b,x.y-b),a.ca(y.Ga(z))&&(E=!0)))),Ue.free(z),E},Yt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Ro.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=Ue.alloc();if(nt.h(b,z),x.Ga(nt),this.gh(nt,!0)||(nt.h(E,z),x.Ga(nt),this.gh(nt,!0))||(nt.h(b,a),x.Ga(nt),this.gh(nt,!0))||(nt.h(E,a),x.Ga(nt),this.gh(nt,!0)))return Ue.free(nt),!0;var ot=Ue.alloc(),at=Ue.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=E,ot.y=z,ot.transform(x),nt.x=b,nt.y=z,nt.transform(x),y=!1,Cf(this,nt,ot,at)?y=!0:(nt.x=E,nt.y=a,nt.transform(x),Cf(this,nt,ot,at)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),Cf(this,nt,ot,at)?y=!0:(nt.x=b,nt.y=z,nt.transform(x),Cf(this,nt,ot,at)&&(y=!0)))),Ue.free(nt),Ro.free(x),Ue.free(ot),Ue.free(at),y};function Cf(a,y,x,b){if(!a.rs(y,x,b))return!1;a=y.x,y=y.y;var E=x.x,z=x.y;return x=b.x,b=b.y,a===E?(y<z?(a=y,y=z):a=z,b>=a&&b<=y):(a<E?(b=a,a=E):b=E,x>=b&&x<=a)}Yt.tx=function(a,y,x){function b(Qe,ke){for(var Ze=Qe.length,en=0;en<Ze;en+=2)if(ke.zd(Qe[en],Qe[en+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var nt=y.bounds,ot=nt.x,at=nt.y,ut=nt.x+nt.width;if(nt=nt.y+nt.height,Mo(a.x,a.y,ot,at)<=E&&Mo(a.x,a.y,ut,at)<=E&&Mo(a.x,a.y,ot,nt)<=E&&Mo(a.x,a.y,ut,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ut=y.endX,nt=y.endY,y.type===$i.j){if(x=(ot-ut)*(a.x-ut)+(at-nt)*(a.y-nt),Ea(a.x,a.y,ot,at,ut,nt)<=(0<=(ut-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===$i.u)return y=!1,x&&(y=Ea(a.x,a.y,ot,at,ot,nt)<=E||Ea(a.x,a.y,ot,at,ut,at)<=E||Ea(a.x,a.y,ut,at,ut,nt)<=E||Ea(a.x,a.y,ot,nt,ut,nt)<=E),y;if(y.type===$i.F){y=a.x-(ot+ut)/2,z=a.y-(at+nt)/2;var ct=Math.abs(ut-ot)/2,gt=Math.abs(nt-at)/2;if(ct===0||gt===0)return Ea(a.x,a.y,ot,at,ut,nt)<=E;if(x){if(a=Ln.$y(ct,gt,y,z),a*a<=E)return!0}else return!(Mo(y,z,-ct,0)>=E||Mo(y,z,0,-gt)>=E||Mo(y,z,0,gt)>=E||Mo(y,z,ct,0)>=E)}else if(y.type===$i.o){if(ut=y.bounds,z=ut.x,ot=ut.y,at=ut.x+ut.width,ut=ut.y+ut.height,a.x>at&&a.x<z&&a.y>ut&&a.y<ot&&Ea(a.x,a.y,z,ot,z,ut)>E&&Ea(a.x,a.y,z,ot,at,ot)>E&&Ea(a.x,a.y,at,ut,z,ut)>E&&Ea(a.x,a.y,at,ut,at,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?Ph(y,a.x,a.y,z):Gu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],nt=z.startX,ct=z.startY,a.zd(nt,ct)>E)return!1;for(ot=z.segments.s,at=ot.length,ut=0;ut<at;ut++)switch(gt=ot[ut],gt.type){case Ll:case ra:if(nt=gt.endX,ct=gt.endY,a.zd(nt,ct)>E)return!1;break;case gu:var Nt=sr();if(Ln.Qe(nt,ct,gt.point1X,gt.point1Y,gt.point2X,gt.point2Y,gt.endX,gt.endY,.8,Nt),nt=b(Nt,a),Br(Nt),nt||(nt=gt.endX,ct=gt.endY,a.zd(nt,ct)>E))return!1;break;case bh:if(Nt=sr(),Ln.ep(nt,ct,gt.point1X,gt.point1Y,gt.endX,gt.endY,.8,Nt),nt=b(Nt,a),Br(Nt),nt||(nt=gt.endX,ct=gt.endY,a.zd(nt,ct)>E))return!1;break;case xl:case zh:Nt=gt.type===xl?oh(gt,z):Xu(gt,z,nt,ct);var zt=Nt.length;if(zt===0){if(nt=gt.type===xl?gt.centerX:gt.endX,ct=gt.type===xl?gt.centerY:gt.endY,a.zd(nt,ct)>E)return!1;break}gt=null;for(var Xt=sr(),ue=0;ue<zt;ue++)if(gt=Nt[ue],Xt.length=0,Ln.Qe(gt[0],gt[1],gt[2],gt[3],gt[4],gt[5],gt[6],gt[7],.8,Xt),b(Xt,a))return Br(Xt),!1;Br(Xt),gt!==null&&(nt=gt[6],ct=gt[7]);break;default:mn("Unknown Segment type: "+gt.type)}}return!0}}}return!1},Yt.qc=function(){this.ua=null},Yt.kq=function(){return this.ig};function n0(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=wm,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=el):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new fr(1-el.x,el.y)))}ko.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Ad[a.toArrow];else a.fromArrow!=="None"?b=Ad[a.fromArrow]:(b=Ln.Ze[a.figure],typeof b=="string"&&(b=Ln.Ze[b]),b===void 0&&mn("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Ln.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function um(a){var y=Ad[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Ad[x],y===void 0){var b=null,E;for(E in Ln.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=$i.parse(Ln.um[b],!1),Ad[b]=a,x!==b&&(Ad[x]=b),b}}return typeof y=="string"?y:y instanceof $i?a:null}rn.Object.defineProperties(ko.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var b=this.part;b!==null&&(b.ag=NaN),this.v(),this.g("geometry",y||x,a),du(this)&&(a=this.part,a!==null&&ea(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=$i.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ue.allocAt(-y.x,-y.y),Ue.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Ht(a,"Shape.fill"),a instanceof js&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ht(a,"Shape.stroke"),a instanceof js&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Mi(a,"value >= 0",ko,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Mi(a,'"butt", "round", or "square"',ko,"strokeCap"):(Sf(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Mi(a,'"miter", "bevel", or "round"',ko,"strokeJoin"):(Sf(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){Sf(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,b=0,E=0;E<x;E++){var z=a[E];0<=z&&isFinite(z)||mn("strokeDashArray:value "+z+" at index "+E+" must be a positive number or zero."),b+=z}if(b===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(Sf(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=Ln.Ze[a];typeof x=="function"?x=a:(x=Ln.Ze[a.toLowerCase()])||mn("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=um(a);x===null?mn("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new NA),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),n0(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=um(a);x===null?mn("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new NA),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),n0(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Fs},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Sf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Fs},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Sf(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(Sf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:vo},set:function(a){var y=this.geometryStretch;y!==a&&(Sf(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Od),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Pc(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),ko.prototype.intersectsRect=ko.prototype.Yc,ko.prototype.containedInRect=ko.prototype.fh,ko.prototype.getNearestIntersectionPoint=ko.prototype.rs,ko.prototype.getDocumentBounds=ko.prototype.mi,ko.prototype.getDocumentPoint=ko.prototype.ga;var Ad=new _r,bp=new _r;ko.className="Shape",ko.getFigureGenerators=function(){var a=new gr,y;for(y in Ln.Ze)y!==y.toLowerCase()&&a.add(y,Ln.Ze[y]);return a.freeze(),a},ko.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Ln.Ze;b[a]=y,b[x]=a},ko.getArrowheadGeometries=function(){var a=new gr;for(b in Ln.um)if(Ad[b]===void 0){var y=$i.parse(Ln.um[b],!1);Ad[b]=y,y=b.toLowerCase(),y!==b&&(Ad[y]=b)}for(var x in Ad)if(x!==x.toLowerCase()){var b=Ad[x];b instanceof $i&&a.add(x,b)}return a.freeze(),a},ko.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=$i.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||mn("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Ad;b[a]=x,b[y]=a};function Ep(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=vo,this.gg=this.fg=Fs}Ep.prototype.copy=function(){var a=new Ep;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function oa(a,y){return pn.call(this),Np||(Nh=vs?new Tu(null).context:null,Np=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}kn(oa,pn),oa.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function fd(a){a.da===null?a.da=new np:a.da.nc&&(a.da=a.da.copy())}Yt=oa.prototype,Yt.th=function(){pn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function Eg(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Yt.qb=function(a){a.classType===oa?this.wrap=a:pn.prototype.qb.call(this,a)},Yt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Yt.v=function(){pn.prototype.v.call(this)},Yt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,nt=Jf(this),ot=a.textAlign=this.textAlign,at=y.tn;ot==="start"?ot=at?"right":"left":ot==="end"&&(ot=at?"left":"right"),at=this.isUnderline;var ut=this.isStrikethrough;wa(this,a,this.xc,!0,!1,x,b),(at||ut)&&wa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ct=this.oe,gt=ct.dx-(nt*ct.m21+ct.dx);ct=ct.dy-(nt*ct.m22+ct.dy);var Nt=y.scale;switch(8>(gt*gt+ct*ct)*Nt*Nt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof nh&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,gt=this.spacingBelow,this.flip){case as:a.translate(E,0),a.scale(-1,1);break;case No:a.translate(0,z),a.scale(1,-1);break;case ks:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ct=this.Gc,Nt=(y+nt+gt)*ct,z>Nt&&(b=this.verticalAlignment,b=b.y*z-b.y*Nt+b.offsetY),ct===1&&this.ze!==null)gt=this.Cb,gt>E&&(gt=E),this.Oj(this.ze,a,0,b+y,E,nt,gt,x,ot,at,ut);else if(this.Qc!==null&&this.Qb!==null)for(Nt=0;Nt<ct;Nt++){var zt=this.Qc[Nt];zt>E&&(zt=E),b+=y,this.Oj(this.Qb[Nt],a,0,b,E,nt,zt,x,ot,at,ut),b+=nt+gt}switch(this.flip){case as:a.scale(-1,1),a.translate(-E,0);break;case No:a.scale(1,-1),a.translate(0,-z);break;case ks:a.scale(-1,-1),a.translate(-E,-z)}}},Yt.Oj=function(a,y,x,b,E,z,nt,ot,at,ut,ct){var gt=0;if(ot)at==="left"?gt=0:at==="right"?gt=E-nt:at==="center"&&(gt=(E-nt)/2),y.fillRect(x+gt,b+.25*z,nt,1);else{if(at==="left"?gt=0:at==="right"?gt=E:at==="center"&&(gt=E/2),E=qg!==null?qg(this,z):.75*z,y.fillText(a,x+gt,b+E),a=z/20|0,a===0&&(a=1),at==="right"?gt-=nt:at==="center"&&(gt-=nt/2),ut){ot=Fp!==null?Fp(this,z):.8*z,at=x+gt,ut=b+ot,E=x+gt+nt,ot=b+ot;var Nt=a;y.beginPath(),y.lineWidth=Nt,y.moveTo(at,ut),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof nh&&y.ad.classList.add("gojs-td")}ct&&(ct=b+z-z/2.2|0,a%2!==0&&(ct+=.5),b=x+gt,z=ct,x=x+gt+nt,nt=ct,gt=a,y.beginPath(),y.lineWidth=gt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof nh&&y.ad.classList.add("gojs-td"))}},Yt.kk=function(a,y,x){if(!pn.prototype.kk.call(this,a,y,x))return!1;if(wa(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)Wf(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Wf(a,y,!0);return!0},Yt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:pn.prototype.nk.call(this,a)},Yt.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Yt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Nh!==null&&Mp!==z&&(Mp=Nh.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),z.length===0)z=8;else if(this.isMultiline){for(var ot=nt=0,at=!1;!at;){var ut=z.indexOf(`
`,ot);ut===-1&&(ut=z.length,at=!0),ot=z.substr(ot,ut-ot),this.formatting===ep&&(ot=ot.trim()),nt=Math.max(nt,$c(ot)),ot=ut+1}z=nt}else nt=z.indexOf(`
`,0),0<=nt&&(z=z.substr(0,nt)),z=$c(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),nt=cm(this,z),isNaN(this.desiredSize.height)?nt=Math.min(nt,y/this.scale):nt=this.desiredSize.height,at=nt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===tp&&(y=this.Ae,y=this.overflow===tp?cf(y):0,ut=this.spacingAbove+this.spacingBelow,ut=Math.max(0,Jf(this)+ut),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/ut+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,ut=this.Qb[at],y=Math.max(1,a-y);$c(ut)>y&&1<ut.length;)ut=ut.substr(0,ut.length-1);ut+=Bf,y=$c(ut),this.Qb[at]=ut,this.Qb=this.Qb.slice(0,at+1),this.Qc[at]=y,this.Qc=this.Qc.slice(0,at+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===qf||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),nt=Math.max(b,nt),Za(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Yt.eh=function(a,y,x,b){ku(this,a,y,x,b)};function Fg(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function hm(a,y,x,b){var E=a.formatting===ep;E&&(y=y.trim());var z=0,nt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,Jf(a)+ot);var at=a.overflow===tp?cf(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===Lp){a.Le=1;var ut=$c(y);if(at===0||ut<=x)a.Cb=Math.max(a.Cb,ut),Fg(a,y,a.Cb),b!==null&&b.h(ut,ot);else{for(z=hf(a,nt),nt=nt.substr(z.length),y=hf(a,nt),ut=$c(z+y);0<y.length&&ut<=x;)z+=y,nt=nt.substr(y.length),y=hf(a,nt),ut=z+y,E&&(ut=ut.trim()),ut=$c(ut);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);$c(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Bf;var ct=$c(z);a.Cb=ct,Fg(a,z,ct),b!==null&&b.h(ct,ot)}}else{for(at=0,nt.length===0&&(at=1,Fg(a,nt,0));0<nt.length;){for(y=hf(a,nt),nt=nt.substr(y.length);$c(y)>x;){var gt=1;for(ut=$c(y.substr(0,gt)),ct=0;ut<=x;)gt++,ct=ut,ut=$c(y.substr(0,gt));if(gt===1){var Nt=ut;z=Math.max(z,ut)}else Nt=ct,z=Math.max(z,ct);if(gt--,1>gt&&(gt=1),Fg(a,y.substr(0,gt),Nt),at++,y=y.substr(gt),a.Gc+at>a.maxLines)break}for(ct=hf(a,nt),ut=$c(y+ct);0<ct.length&&ut<=x;)y+=ct,nt=nt.substr(ct.length),ct=hf(a,nt),ut=y+ct,E&&(ut=ut.trim()),ut=$c(ut);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ct.length===0?(gt=ut,z=Math.max(z,ut)):(gt=ct=$c(y),z=Math.max(z,ct)),Fg(a,y,gt),at++,a.Gc+at>a.maxLines))break}a.Le=Math.min(a.maxLines,at),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,ot*a.Le)}}function hf(a,y){if(a.wrap===Am)return y.substr(0,1);for(var x=y.length,b=0,E=gm;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===Lg&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function $c(a){return Nh===null?8*a.length:Nh.measureText(a).width}function Jf(a){if(a.df!==null)return a.df;var y=a.Ae;if(Nh===null){var x=16;return a.df=x}return Mg[y]!==void 0&&5e3>$A?x=Mg[y]:(x=1.3*Nh.measureText("M").width,Mg[y]=x,$A++),a.df=x}function cf(a){if(Nh===null)return 6;if(UA[a]!==void 0&&5e3>YA)var y=UA[a];else y=Nh.measureText(Bf).width,UA[a]=y,YA++;return y}function cm(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Jf(a)+b),x.length===0)return a.Cb=0,a.Gc=1,b;if(!a.isMultiline){var E=x.indexOf(`
`,0);0<=E&&(x=x.substr(0,E))}E=0;for(var z=a.Gc=0,nt,ot=!1;!ot;){if(nt=x.indexOf(`
`,z),nt===-1&&(nt=x.length,ot=!0),z<=nt){if(z=x.substr(z,nt-z),a.wrap!==Lp){a.Le=0;var at=Gi.alloc();hm(a,z,y,at),E+=at.height,Gi.free(at),a.Gc+=a.Le}else hm(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=nt+1}return a.Lq=E}rn.Object.defineProperties(oa.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(fd(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Ei},set:function(a){var y=this.flip;y!==a&&(fd(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:tl},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),fd(this),this.da.Yr=a,kl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Gi.alloc();hm(this,this.ec,999999,a);var y=a.width;Gi.free(a),a=cm(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Za(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:dm},set:function(a){var y=this.wrap;y!==a&&(fd(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:fm},set:function(a){var y=this.overflow;y!==a&&(fd(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ht(a,"TextBlock.stroke"),a instanceof js&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Jf(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(fd(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(fd(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Od),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Od),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Od),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(fd(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(fd(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(fd(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(fd(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:ep},set:function(a){var y=this.formatting;y!==a&&(fd(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Mi(a,"> 0",oa,"maxLines"),fd(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var qg=null,Fp=null,Lp=new jn(oa,"None",0),qf=new jn(oa,"WrapFit",1),dm=new jn(oa,"WrapDesiredSize",2),Am=new jn(oa,"WrapBreakAll",3),fm=new jn(oa,"OverflowClip",0),tp=new jn(oa,"OverflowEllipsis",1),ep=new jn(oa,"FormatTrim",0),Lg=new jn(oa,"FormatNone",0),gm=/[ \u200b\u00ad]/,Mg=new _r,$A=0,UA=new _r,YA=0,Bf="...",Mp="",Nh=null,Np=!1;oa.className="TextBlock";function np(){this.nc=!1,this.Hd=null,this.Xf=Ei,this.gq=ep,this.Jq=1/0,this.$q=fm,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=tl,this.$r=dm}np.prototype.copy=function(){var a=new np;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},oa.getEllipsis=function(){return Bf},oa.setEllipsis=function(a){Bf=a,UA=new _r,YA=0},oa.getBaseline=function(){return qg},oa.setBaseline=function(a){qg=a},oa.getUnderline=function(){return Fp},oa.setUnderline=function(a){Fp=a},oa.isValidFont=function(a){if(Np||(Nh=vs?new Tu(null).context:null,Np=!0),Nh===null)return!0;var y=Nh.font;if(a===y||a==="10px sans-serif")return!0;Nh.font="10px sans-serif",Nh.font=a;var x=Nh.font;if(x!=="10px sans-serif")return Nh.font=y,!0;Nh.font="19px serif";var b=Nh.font;return Nh.font=a,x=Nh.font,Nh.font=y,x!==b},oa.FormatNone=Lg,oa.FormatTrim=ep,oa.None=Lp,oa.OverflowClip=fm,oa.OverflowEllipsis=tp,oa.WrapBreakAll=Am,oa.WrapDesiredSize=dm,oa.WrapFit=qf;function Od(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Od.prototype.copy=function(){var a=new Od;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Od.className="GradElementSettings";function cc(a,y){pn.call(this),this.Eg=null,this.qo="",this.Xg=Qs,this.Nk=Oi,this.Zg=this.Hd=null,this.Mk=Eo,this.Xf=Ei,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Ip;kn(cc,pn),cc.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},cc.prototype.qb=function(a){a===Ei||a===Sr||a===Zo?this.imageStretch=a:pn.prototype.qb.call(this,a)},cc.prototype.toString=function(){return"Picture("+this.source+")#"+fs(this)};function kp(a){a===void 0&&(a=""),a!==""?Ip[a]&&(delete Ip[a],i0--):(Ip=new _r,i0=0)}function ky(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value;E.N();var z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null)for(var ot=nt.length,at=0;at<ot;at++)z=nt[at],E.Xn.add(z),z.Uc=!0,E.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Tl(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null){E=nt.length,z=sr();for(var ot=0;ot<E;ot++)z.push(nt[ot]);if(y.hn)for(ot=0;ot<E;ot++)nt=z[ot],nt.Hd!==null&&nt.Hd(nt,x);Br(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}cc.prototype.hA=function(){if(this.source!==""){kp(this.source);var a=this.source;this.source="",this.source=a}},cc.prototype.redraw=function(){this.N(),this.Uc=!0},cc.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var b=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(b===null||b==="")||x.ln instanceof Event&&a instanceof XA)){var E=a instanceof nh;b=this.naturalBounds;var z=0,nt=0,ot=this.qn,at=ot?+x.width:x.naturalWidth;if(ot=ot?+x.height:x.naturalHeight,at===void 0&&x.videoWidth&&(at=x.videoWidth),ot===void 0&&x.videoHeight&&(ot=x.videoHeight),at=at||b.width,ot=ot||b.height,at!==0&&ot!==0){var ut=at,ct=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var gt=at,Nt=ot,zt=this.Nk,Xt=this.Mk;switch(zt){case Ei:if(this.sourceRect.w())break;gt>=b.width&&(z=z+Xt.offsetX+(gt*Xt.x-b.width*Xt.x)),Nt>=b.height&&(nt=nt+Xt.offsetY+(Nt*Xt.y-b.height*Xt.y)),at=Math.min(b.width,gt),ot=Math.min(b.height,Nt);break;case Oi:gt=b.width,Nt=b.height;break;case Sr:case Zo:zt===Sr?(zt=Math.min(b.height/Nt,b.width/gt),gt*=zt,Nt*=zt):zt===Zo&&(zt=Math.max(b.height/Nt,b.width/gt),gt*=zt,Nt*=zt,gt>=b.width&&(z=(z+Xt.offsetX+(gt*Xt.x-b.width*Xt.x)/gt)*at),Nt>=b.height&&(nt=(nt+Xt.offsetY+(Nt*Xt.y-b.height*Xt.y)/Nt)*ot),at*=1/(gt/b.width),ot*=1/(Nt/b.height),gt=b.width,Nt=b.height)}zt=this.Df()*y.scale;var ue=gt*zt*Nt*zt,Qe=at*ot/ue,ke=x.__goCache;zt=null;var Ze=Ew;if(!E){if(x.sq&&ke!==void 0&&4<ue&&Qe>Ze*Ze)for(ke.gi===null&&(Oy(ke,4,ut,ct,x),Oy(ke,16,ut,ct,x)),E=ke.gi,ut=E.length,ct=0;ct<ut&&E[ct].ratio*E[ct].ratio<Qe;ct++)zt=E[ct];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Tu(null).context;try{E.drawImage(this.Eg,0,0)}catch(en){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(en){this.vl=!0}}if(this.vl)return}}switch(E=gt<b.width?Xt.offsetX+(b.width*Xt.x-gt*Xt.x):0,Xt=Nt<b.height?Xt.offsetY+(b.height*Xt.y-Nt*Xt.y):0,this.flip){case as:a.translate(Math.min(b.width,gt),0),a.scale(-1,1);break;case No:a.translate(0,Math.min(b.height,Nt)),a.scale(1,-1);break;case ks:a.translate(Math.min(b.width,gt),Math.min(b.height,Nt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&ke!==void 0&&zt!==null&&zt.ratio!==1){a.save(),y=zt.ratio;try{a.drawImage(zt.source,z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Xt,Math.min(b.width,gt),Math.min(b.height,Nt)),a instanceof nh&&(this.bt=[z/y,nt/y,Math.min(zt.source.width,at/y),Math.min(zt.source.height,ot/y),E,Xt,Math.min(b.width,gt),Math.min(b.height,Nt)])}catch(en){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,Xt,Math.min(b.width,gt),Math.min(b.height,Nt)),a instanceof nh&&(this.bt=[z,nt,at,ot,E,Xt,Math.min(b.width,gt),Math.min(b.height,Nt)])}catch(en){this.en=!1}switch(this.flip){case as:a.scale(-1,1),a.translate(-Math.min(b.width,gt),0);break;case No:a.scale(1,-1),a.translate(0,-Math.min(b.height,Nt));break;case ks:a.scale(-1,-1),a.translate(-Math.min(b.width,gt),-Math.min(b.height,Nt))}}}}},cc.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=uh(this,!0),nt=this.Eg,ot=this.qn,at=0,ut=0;(ot||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(at=ot?+nt.width:nt.naturalWidth,ut=ot?+nt.height:nt.naturalHeight),isFinite(E.width)||z===Oi||z===Dr?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:nt!==null&&(a=at)),x=0):nt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:at),isFinite(E.height)||z===Oi||z===eo?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ut)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ut),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Za(this.dc,a,y),this.Ge(0,0,a,y)},cc.prototype.eh=function(a,y,x,b){ku(this,a,y,x,b)},rn.Object.defineProperties(cc.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||mn("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&hA(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Pi),b!==null&&x&&Kc(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Tl(this,!1),this.v())):x&&ky(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=Ip;if(vs){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<i0&&(kp(),x=Ip),b=ni("img"),b.hn=!0,ky(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,i0++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new Ty),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),cc.prototype.redraw=cc.prototype.redraw,cc.prototype.reloadSource=cc.prototype.hA;var i0=0,Ew=4;cc.className="Picture",Ip=new _r,cc.clearCache=kp;function Ty(){this.gi=null}function Oy(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Tu(null),nt=z.context,ot=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new Dy(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),nt.setTransform(ot*x,0,0,ot*x,0,0),nt.yc(),nt.drawImage(E,0,0),a.gi.push(y))}Ty.className="PictureCacheArray";function Dy(a,y){this.source=a,this.ratio=y}Dy.className="PictureCacheInstance";function Tp(){this.os=new $i,this.mc=null}Tp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new $i,this.mc=null};function Op(a,y,x,b,E,z){a.mc=new nl,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=b,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),E!==void 0&&(a.mc.isShadowed=E)}function Fw(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Tp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new ys(Ll);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Tp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new ys(ra);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Pf(a,y,x,b,E,z,nt){var ot;ot===void 0&&(ot=!1);var at=new ys(gu);at.point1X=y,at.point1Y=x,at.point2X=b,at.point2Y=E,at.endX=z,at.endY=nt,ot&&at.close(),a.mc.segments.add(at)}function r0(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new ys(bh);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=E,z&&nt.close(),a.mc.segments.add(nt)}Tp.prototype.arcTo=function(a,y,x,b,E,z,nt){z===void 0&&(z=0),nt===void 0&&(nt=!1);var ot=new ys(xl);ot.startAngle=a,ot.sweepAngle=y,ot.centerX=x,ot.centerY=b,ot.radiusX=E,ot.radiusY=z!==0?z:E,nt&&ot.close(),this.mc.segments.add(ot)};function Lw(a,y,x,b,E,z,nt,ot){var at;at===void 0&&(at=!1),y=new ys(zh,nt,ot,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function jy(a){var y=o0;return y!==null?(o0=null,y.reset(a),y):(y=new Tp,y.reset(a),y)}var o0=null;Tp.className="StreamGeometryContext";function Ih(a,y){var x=a.toLowerCase(),b=Ln.Ze;b[a]=y,b[x]=a}Ih("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Ln.Mf[a];return b!==void 0||(b=new $i($i.u),b.endX=y,b.endY=x,Ln.Nf<Ln.vm&&(Ln.Mf[a]=b,Ln.Nf++)),b}),Ih("Square",function(a,y,x){a="s"+y+","+x;var b=Ln.Mf[a];return b!==void 0||(b=new $i($i.u),b.endX=y,b.endY=x,b.defaultStretch=Sr,Ln.Nf<Ln.vm&&(Ln.Mf[a]=b,Ln.Nf++)),b}),Ih("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var b="rr"+y+","+x+","+a,E=Ln.Mf[b];if(E!==void 0)return E;var z=a*Ln.wg;return E=new $i().add(new nl(a,0,!0).add(new ys(ra,y-a,0)).add(new ys(gu,y,a,y-z,0,y,z)).add(new ys(ra,y,x-a)).add(new ys(gu,y-a,x,y,x-z,y-z,x)).add(new ys(ra,a,x)).add(new ys(gu,0,x-a,z,x,0,x-z)).add(new ys(ra,0,a)).add(new ys(gu,a,0,0,z,z,0).close())),1<z&&(E.spot1=new fr(0,0,z,z),E.spot2=new fr(1,1,-z,-z)),Ln.Nf<Ln.vm&&(Ln.Mf[b]=E,Ln.Nf++),E}),Ih("Border","RoundedRectangle"),Ih("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Ln.Mf[a];return b!==void 0||(b=new $i($i.F),b.endX=y,b.endY=x,b.spot1=fc,b.spot2=dh,Ln.Nf<Ln.vm&&(Ln.Mf[a]=b,Ln.Nf++)),b}),Ih("Circle",function(a,y,x){a="c"+y+","+x;var b=Ln.Mf[a];return b!==void 0||(b=new $i($i.F),b.endX=y,b.endY=x,b.spot1=fc,b.spot2=dh,b.defaultStretch=Sr,Ln.Nf<Ln.vm&&(Ln.Mf[a]=b,Ln.Nf++)),b}),Ih("TriangleRight",function(a,y,x){return new $i().add(new nl(0,0).add(new ys(ra,y,.5*x)).add(new ys(ra,0,x).close())).pm(0,.25,.5,.75)}),Ih("TriangleDown",function(a,y,x){return new $i().add(new nl(0,0).add(new ys(ra,y,0)).add(new ys(ra,.5*y,x).close())).pm(.25,0,.75,.5)}),Ih("TriangleLeft",function(a,y,x){return new $i().add(new nl(y,x).add(new ys(ra,0,.5*x)).add(new ys(ra,y,0).close())).pm(.5,.25,1,.75)}),Ih("TriangleUp",function(a,y,x){return new $i().add(new nl(y,x).add(new ys(ra,0,x)).add(new ys(ra,.5*y,0).close())).pm(.25,.5,.75,1)}),Ih("Triangle","TriangleUp"),Ih("Diamond",function(a,y,x){return new $i().add(new nl(.5*y,0).add(new ys(ra,0,.5*x)).add(new ys(ra,.5*y,x)).add(new ys(ra,y,.5*x).close())).pm(.25,.25,.75,.75)}),Ih("LineH",function(a,y,x){return a=new $i($i.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Ih("LineV",function(a,y,x){return a=new $i($i.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Ih("None","Rectangle"),Ih("BarH","Rectangle"),Ih("BarV","Rectangle"),Ih("MinusLine","LineH"),Ih("PlusLine",function(a,y,x){return new $i().add(new nl(0,x/2,!1).add(new ys(ra,y,x/2)).add(new ys(Ll,y/2,0)).add(new ys(ra,y/2,x)))}),Ih("XLine",function(a,y,x){return new $i().add(new nl(0,x,!1).add(new ys(ra,y,0)).add(new ys(Ll,0,0)).add(new ys(ra,y,x)))}),Ih("LineRight",function(a,y,x){return new $i().add(new nl(.25*y,0,!1).add(new ys(ra,.75*y,.5*x)).add(new ys(ra,.25*y,x)))}),Ih("LineDown",function(a,y,x){return new $i().add(new nl(0,.25*x,!1).add(new ys(ra,.5*y,.75*x)).add(new ys(ra,y,.25*x)))}),Ih("LineLeft",function(a,y,x){return new $i().add(new nl(.75*y,0,!1).add(new ys(ra,.25*y,.5*x)).add(new ys(ra,.75*y,x)))}),Ih("LineUp",function(a,y,x){return new $i().add(new nl(0,.75*x,!1).add(new ys(ra,.5*y,.25*x)).add(new ys(ra,y,.75*x)))}),Ln.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function yv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=yl,this.ir=null,this.jr="",this.lr=Fs,this.Gq="",this.Hq=ol,this.Pq=Sa,this.Kq=za,this.Up=null,this.Cq=127,this.zr=El,this.yr="gray",this.Vg=4}yv.prototype.copy=function(){var a=new yv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function $r(a,y){a===void 0||a instanceof Sn||typeof a=="string"?fi.call(this,a):(fi.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Ue(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new ui,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}kn($r,fi),$r.prototype.cloneProtected=function(a){fi.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Yt=$r.prototype,Yt.Af=function(a){fi.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Yt.toString=function(){var a=dr(this.constructor)+"#"+fs(this);return this.data!==null&&(a+="("+Er(this.data)+")"),a};function dc(a){a.P===null?a.P=new yv:a.P.nc&&(a.P=a.P.copy())}Yt.th=function(){fi.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Yt.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===fl&&y==="elements"?E instanceof fi?dl(E,function(at){Wv(ot.partManager,at),zc(ot,at)}):Kc(ot,E):a===Ql&&y==="elements"&&(E instanceof fi?dl(E,function(at){Vv(ot.partManager,at,ot)}):hA(ot,E)),ot.cb(a,y,x,b,E,z,nt))},Yt.La=function(a){if(fi.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E instanceof fi&&dl(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},$r.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},$r.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},$r.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new gr),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},$r.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},$r.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=sr();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Br(y)}},$r.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof To?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Ls))break t;ou(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=fi.Link),x.adornedObject=y)}if(x!==null){x.type===fi.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Mw(this,a),y=this.adornments;y.next();)y.value.La()}},$r.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function wv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Mw(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function s0(a){if(tg(a)===!1){Sv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function Uy(a){if(a.G|=2097152,tg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||_y(a,y,x),x=a.Ib;var b=ui.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),ui.free(b),Sv(a,!1)}}$r.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Ro);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},$r.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Eo;this.locationSpot.sb()&&(z=this.locationSpot);var nt=Ue.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,nt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(nt),nt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(nt),nt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else nt.yi(y,x,b,E,z);a.rotate(this.Kb,nt.x,nt.y),Ue.free(nt)}},$r.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},$r.prototype.moveTo=function(a,y,x){a=Ue.allocAt(a,y),this.move(a,x),Ue.free(a)},$r.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},$r.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},$r.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new gr),y.I(a)!==null)return y.I(a);var x=fi.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function bf(a,y,x,b){b===void 0&&(b=new Ue),x=x.Mc()?Eo:x;var E=y.naturalBounds;if(b.h(E.width*x.x+x.offsetX,E.height*x.y+x.offsetY),y===null||y===a)return b;for(y.transform.Ga(b),y=y.panel;y!==null&&y!==a;)y.transform.Ga(b),y=y.panel;return a.Lb!==null&&a.Lb.Ga(b),b.offset(-a.uc.x,-a.uc.y),b}$r.prototype.mi=function(a){return a===void 0&&(a=new ui),a.assign(this.actualBounds)},$r.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Ry(a){var y=Ue.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof ko?x.strokeWidth:0;if(y.yi(0,0,b.width+E,b.height+E,a.locationSpot),x!==a)for(y.offset(-E/2,-E/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function Ng(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=hd(a));var b=a.ag,E=2*b;if(!a.isShadowed)return x.h(y.x-1-b,y.y-1-b,y.width+2+E,y.height+2+E),x;b=y.x,E=y.y;var z=y.width;y=y.height;var nt=a.shadowBlur;return a=a.shadowOffset,z+=nt,y+=nt,b-=nt/2,E-=nt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}$r.prototype.arrange=function(){if(eh(this)===!1)Uy(this);else{Wc(this,!1);var a=this.Ib,y=ui.alloc();y.assign(a);var x=eg(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;_y(this,b,this.location),a.ka(),a.x=b.x,a.y=b.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||Ln.B(y.width,a.width)&&Ln.B(y.height,a.height)||0<=this.vw&&this.C(16),ui.free(y),Sv(this,!1)}},Yt=$r.prototype,Yt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=ui.alloc();E.assign(x.documentBounds),E.Fv(x.padding),a.x>E.x&&a.y>E.y&&a.right<E.right&&a.bottom<E.bottom&&y.x>E.x&&y.y>E.y&&y.right<E.right&&y.bottom<E.bottom&&(b=!0),ui.free(E)}!(this.G&65536)&&a.D(y)||Ky(this,b,x),x.N(),!a.w()&&!y.w()||su(a,y)||(this instanceof cr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Yt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&Hy(this,b,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||b!==null&&!b.animationManager.isTicking&&b.undoManager.isUndoingRedoing||(b=this.ke,this.ke=new Ue(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),tg(this)===!1&&eh(this)===!1&&(s0(this),Uy(this)),!0};function Hy(a,y,x,b,E){y===null||a instanceof Ls||(y=y.animationManager,y.zb&&Gl(y,a,new Ue(b,E),x))}Yt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;tg(this)||eh(this)?E.h(NaN,NaN):E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}else{if(E.x===a&&E.y===y)return;b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}s0(this)},Yt.Av=function(){this.G&=-2097153,s0(this)};function _y(a,y,x){var b=Ry(a),E=a.diagram,z=x.w(),nt=y.w();z&&nt?a.G&2097152?Qy(a,y,x,E,b):zy(a,y,x,E,b):z?Qy(a,y,x,E,b):nt&&zy(a,y,x,E,b),a.G|=2097152,Ue.free(b),a.Uk()}function Qy(a,y,x,b,E){var z=y.x,nt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Ls||Gl(x,a,new Ue(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new Ue(z,nt),y.copy()))}function zy(a,y,x,b,E){var z=x.copy();x.h(y.x+E.x,y.y+E.y),x.D(z)||b===null||a.g("location",z,x.copy())}function Ky(a,y,x){Cv(a,!1),a instanceof cr&&Ur(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?eg(a)?(Ns(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Yt.si=function(){return!0},Yt.Zc=function(){return!0},Yt.ph=function(){return!1},Yt.Dd=function(){return!0};function xv(a,y,x,b){y.constructor===a.constructor||Vy||(Vy=!0,er('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),er(" Old class: "+dr(a.constructor)+", new class: "+dr(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,nt=a.isHighlighted,ot=!0,at=!0,ut=!1;a instanceof cr&&(ot=a.isTreeLeaf,at=a.isTreeExpanded,ut=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=nt?a.G|524288:a.G&-524289,a instanceof cr&&(a.U=ot?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=ut?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}$r.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},$r.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},$r.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},$r.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},$r.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},$r.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},$r.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},$r.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},$r.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function tg(a){return(a.G&32768)!==0}function Sv(a,y){a.G=y?a.G|32768:a.G&-32769}function Cv(a,y){a.G=y?a.G|65536:a.G&-65537}function eg(a){return(a.G&131072)!==0}Yt=$r.prototype,Yt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function a0(a,y){a.G=y?a.G|1048576:a.G&-1048577}Yt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Yt.N=function(){var a=this.diagram;a!==null&&!eh(this)&&!tg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ng(this,this.Ib))},Yt.v=function(){fi.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof cr&&this.labeledLink!==null&&kl(this.labeledLink),a.$b(!0))},Yt.Vo=function(a){a||(a=this.Ah,a!==null&&Lv(a,this))},Yt.Wo=function(a){a||(a=this.Ah,a!==null&&Mv(a,this))},Yt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Yt.oz=function(){return Bv(this,this)};function Bv(a,y){var x=y.containingGroup;return x!==null?1+Bv(a,x):y instanceof cr&&(y=y.labeledLink,y!==null)?Bv(a,y):0}Yt.sz=function(){return Gy(this,this)};function Gy(a,y){var x=y.containingGroup;return x!==null||y instanceof cr&&(x=y.labeledLink,x!==null)?Gy(a,x):y}Yt.Td=function(a){return a instanceof To?Pv(this,this,a):!1};function Pv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Pv(a,b,x)?y instanceof cr&&(y=y.labeledLink,y!==null)?Pv(a,y,x):!1:!0}Yt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof To&&a0(y,!0),y instanceof cr){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof cr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof To&&a0(y,!1),y instanceof cr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},$r.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof cr&&this.isLinkLabel)},$r.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof cr&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function Wy(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function ng(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Ls)){if(a.add(y),y instanceof cr){if(x&&y instanceof To)for(var nt=y.memberParts;nt.next();)ng(a,nt.value,x,b,E,z);if(E!==!1)for(nt=y.linksConnected;nt.next();){var ot=nt.value;if(!a.contains(ot)){var at=ot.fromNode,ut=ot.toNode;at=at===null||a.contains(at),ut=ut===null||a.contains(ut),(E?at&&ut:at||ut)&&ng(a,ot,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ng(a,y.value,x,b-1,E,z)}else if(y instanceof Zi)for(y=y.labelNodes;y.next();)ng(a,y.value,x,b,E,z)}}rn.Object.defineProperties($r.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?yi:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(Ql,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(fl,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(dc(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&Kh(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof Ls?this.type!==fi.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:Sa},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),dc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:za},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),dc(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(dc(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:ol},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),dc(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,b=this.ke;if(!(b.x===y||isNaN(b.x)&&isNaN(y))||!(b.y===x||isNaN(b.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,eh(this)===!1&&(s0(this),x=this.pa,x.w())){var E=this.diagram;if(E===null||E.animationManager.isTicking||!E.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-b.x),x.y+(y.y-b.y)),Hy(this,E,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",b,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,b=this.data,E=null;if(x!==null&&b!==null&&!(this instanceof Ls)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Ls?this instanceof Ls&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(ou(x),x=x.copy(),x!==null&&xv(this,x,y,a))):(z!==null&&z.jm(b,a),x=v1(x.partManager,b,a),x!==null&&(ou(x),x=x.copy(),x===null||x instanceof Zi||(b=this.location.copy(),xv(this,x,y,a),this.location.w()||(this.location=b)))),E!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",E,y))))}}},self:{get:function(){return this},set:function(a){xv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var b=!1;if(x!==null){b=x.skipsUndoManager,x.skipsUndoManager=!0;var E=x.selection;E.ka(),a?E.add(this):E.remove(this),E.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=b)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(dc(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(dc(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(dc(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof Zi?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(dc(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(dc(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(dc(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:yl},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),dc(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(dc(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(dc(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Fs},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),dc(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&mn("Cannot make a Group a member of itself: "+this.toString()),mn("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Mv(y,this):this instanceof To&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof To&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof To){for(x=new Pi,ng(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof cr)for(b=b.linksConnected;b.next();)Dp(b.value)}if(this instanceof cr){for(x=this.linksConnected;x.next();)Dp(x.value);x=this.labeledLink,x!==null&&Dp(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Kh(y,-1,a))}}else mn("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(dc(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof cr&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(dc(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(dc(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:El},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),dc(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(dc(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(dc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),$r.prototype.invalidateLayout=$r.prototype.C,$r.prototype.findCommonContainingGroup=$r.prototype.px,$r.prototype.isMemberOf=$r.prototype.Td,$r.prototype.findTopLevelPart=$r.prototype.sz,$r.prototype.findSubGraphLevel=$r.prototype.oz,$r.prototype.ensureBounds=$r.prototype.Va,$r.prototype.getDocumentBounds=$r.prototype.mi,$r.prototype.findObject=$r.prototype.fb,$r.prototype.moveTo=$r.prototype.moveTo,$r.prototype.invalidateAdornments=$r.prototype.Wb,$r.prototype.clearAdornments=$r.prototype.Ej,$r.prototype.removeAdornment=$r.prototype.Jf,$r.prototype.addAdornment=$r.prototype.bh,$r.prototype.findAdornment=$r.prototype.Pj,$r.prototype.updateTargetBindings=$r.prototype.La;var Vy=!1;$r.className="Part",$r.LayoutNone=0,$r.LayoutAdded=1,$r.LayoutRemoved=2,$r.LayoutShown=4,$r.LayoutHidden=8,$r.LayoutNodeSized=16,$r.LayoutGroupLayout=32,$r.LayoutNodeReplaced=64,$r.LayoutStandard=127,$r.LayoutAll=16777215;function Ls(a,y){a===void 0||a instanceof Sn||typeof a=="string"?$r.call(this,a):($r.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}kn(Ls,$r),Ls.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Ls.prototype.updateRelationshipsFromData=function(){},Ls.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Zi&&y instanceof ko){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var b=0;b<y;b++){var E=x[b];E.isPanelMain&&E instanceof ko&&(E.ua=a)}}},Ls.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!eh(a))},Ls.prototype.Zc=function(){return!1},Ls.prototype.gk=function(a,y,x,b,E,z,nt){if(a===fl&&y==="elements"){if(E instanceof Zh)this.$a===null&&(this.$a=E);else if(E instanceof fi){var ot=E.Nl(function(at){return at instanceof Zh});ot instanceof Zh&&this.$a===null&&(this.$a=ot)}}else a===Ql&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof fi&&this.$a.rg(b)&&(this.$a=null));$r.prototype.gk.call(this,a,y,x,b,E,z,nt)},Ls.prototype.updateAdornments=function(){},Ls.prototype.Lj=function(){},rn.Object.defineProperties(Ls.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Ls.className="Adornment";function bv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ku,this.er=h0,this.Kr=this.ij=this.Nq=this.Mq=null}bv.prototype.copy=function(){var a=new bv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function cr(a,y){a===void 0||a instanceof Sn||typeof a=="string"?$r.call(this,a):($r.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Bi,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}kn(cr,$r),cr.prototype.cloneProtected=function(a){$r.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Yt=cr.prototype,Yt.Af=function(a){$r.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ef(a){a.Ba===null?a.Ba=new bv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Yt.th=function(){$r.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Zy(a,y){y!==null&&(a.af===null&&(a.af=new Pi),a.af.add(y))}function Xy(a,y,x,b){if(y===null||a.af===null)return null;for(var E=a.af.iterator;E.next();){var z=E.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===b||z.Ds===y&&z.cv===a&&z.Ox===b&&z.Px===x)return z}return null}Yt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Xy(this,a,y,x),a!==null&&a.Sl()},Yt.gk=function(a,y,x,b,E,z,nt){a===fl&&y==="elements"?this.wc=null:a===Ql&&y==="elements"&&(this.wc=null),$r.prototype.gk.call(this,a,y,x,b,E,z,nt)},Yt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Lc(x.fromPort),Lc(x.toPort),x.bb())}};function $y(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Lc(x.fromPort),Lc(x.toPort),x.bb())}}function Lc(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Lc(y.port)}}Yt.si=function(){return!0},cr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},cr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},cr.prototype.isVisible=function(){if(!$r.prototype.isVisible.call(this))return!1;var a=!0,y=Gc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Gc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===pl){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===Iu&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(b){return!b.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},cr.prototype.Zb=function(a){$r.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var b=x.To(this);b===null||b.Td(this.containingGroup)||x.bb()}x.Zb(a)}},cr.prototype.qx=function(){var a=new Pi,y=new Pi;return Yy(this,this,a,y),y.iterator};function Yy(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(nt){nt.isTreeLink?(E?nt.fromNode===y:nt.toNode===y)&&Yy(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}cr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Hr(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Yt=cr.prototype,Yt.Mo=function(a){a===void 0&&(a=null);var y=new Hr(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Yt.Sd=function(a){a===void 0&&(a=null);var y=new Hr(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Yt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Pi,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Pi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Bo(x):yi},Yt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Pi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Bo(x):yi},Yt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Pi,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Bo(x):yi},Yt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Hr(this.jb),E=this;return b.predicate=function(z){return!((z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==E||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},b},Yt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Hr(this.jb),E=this;return b.predicate=function(z){return!(z.fromNode!==E||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},b};function l0(a,y,x){Lc(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,y,x),nt!==null&&(nt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function u0(a,y,x){Lc(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var nt=!0;E!==null&&(nt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=nt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):pm(y)))}function pm(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink){if(y){if(b.fromNode===a){a.isTreeLeaf=!1;return}}else if(b.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}cr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Yt=cr.prototype,Yt.Vo=function(a){$r.prototype.Vo.call(this,a),a||(pm(this),a=this.Yk,a!==null&&s1(a,this))},Yt.Wo=function(a){$r.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Yt.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var b=x.value;y?a.remove(b):(b.fromNode===this&&(b.fromNode=null),b.toNode===this&&(b.toNode=null))}}this.labeledLink=null,$r.prototype.Lj.call(this)},Yt.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Jy(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Jy(a){a.wc===null?a.wc=new gr:a.wc.clear(),a.qm(a,function(y,x){qy(y,x)}),a.wc.count===0&&a.wc.add("",a)}function qy(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Ev(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=sr()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Br(x)}}}Yt.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var b=x.jb.iterator;b.next();){var E=b.value;if(E.isTreeLink&&(y=E.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,b=x.jb.iterator;b.next()&&(E=b.value,!E.isTreeLink||(y=E.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Yt.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var b=x.value;if(b.isTreeLink&&(a=b.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(b=x.value,!b.isTreeLink||(a=b.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Yt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)a0(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)a0(y,!1),y=y.pg();return x},Yt.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},Yt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof cr)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Yt.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Pi;return a(this,y),y},Yt.uz=function(){return t1(this,this)};function t1(a,y){return y=y.pg(),y===null?0:1+t1(a,y)}Yt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Hr(this.jb);var x=this;return y.predicate=a?function(b){return!!(b.isTreeLink&&b.fromNode===x)}:function(b){return!!(b.isTreeLink&&b.toNode===x)},y},Yt.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,b=this.jb.iterator;if(a)for(;b.next();)a=b.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Bi,y.add(x),y.add(a)):x=a);else for(;b.next();)a=b.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new Bi,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Bo(x):yi},Yt.wz=function(a){a===void 0&&(a=1/0);var y=new Pi;return ng(y,this,!1,a,!0),y},cr.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Pi;x.add(this),e1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gc),y.Ue=!1}};function e1(a,y,x,b,E,z,nt){if(1<b)for(var ot=x?a.Mo():a.Sd();ot.next();){var at=ot.value;at.isTreeLink&&(at=at.To(a),at===null||at===a||y.contains(at)||(y.add(at),e1(at,y,x,b-1,E,z,nt)))}else n1(a,y,x,E,z,nt)}function n1(a,y,x,b,E,z){for(var nt=E===a?!0:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),at={};ot.next();){var ut=ot.value;if(ut.isTreeLink&&(ut=ut.To(a),ut!==null&&ut!==a)){var ct=y.contains(ut);if(ct||y.add(ut),nt){var gt=x?ut.Oo():ut.Po();at.uv=a,gt.all(function(Nt){return function(zt){return zt===Nt.uv||!zt.isTreeExpanded}}(at))&&b.Aj(ut,E),ut.oh(),ut.Zb(!1)}ut.isTreeExpanded&&(ut.wasTreeExpanded=ut.isTreeExpanded,ct||n1(ut,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}cr.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Pi;x.add(this),i1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gc),y.Ue=!1}};function i1(a,y,x,b,E,z,nt){for(var ot=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),ut={};at.next();){var ct=at.value;if(ct.isTreeLink&&(ot||ct.fd||ct.bb(),ct=ct.To(a),ct!==null&&ct!==a&&!y.contains(ct))){if(y.add(ct),!ot){ct.Zb(!0),ct.oh();var gt=x?ct.Oo():ct.Po();ut.vv=a,gt.all(function(Nt){return function(zt){return zt===Nt.vv||!zt.isTreeExpanded}}(ut))&&E.Cj(ct,z)}(2<b||ct.wasTreeExpanded)&&(ct.wasTreeExpanded=!1,i1(ct,y,x,b-1,E,z,nt))}ut={vv:ut.vv}}a.isTreeExpanded=!0}rn.Object.defineProperties(cr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:h0},set:function(a){var y=this.portSpreading;y!==a&&(Ef(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Ur(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ku},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ef(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Ur(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Ef(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Ef(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Ef(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var nt=z.wa(b);nt!==void 0&&z.Qx(E,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(s1(a,this),x===null||b===null||x.undoManager.isUndoingRedoing||(E=a.data,x=x.model,E!==null&&x.ri()&&(b=x.wa(b),b!==void 0&&x.Bu(E,b))),this.containingGroup=a.containingGroup),kl(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Jy(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Ef(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),cr.prototype.expandTree=cr.prototype.expandTree,cr.prototype.collapseTree=cr.prototype.collapseTree,cr.prototype.findTreeParts=cr.prototype.wz,cr.prototype.findTreeChildrenNodes=cr.prototype.Ou,cr.prototype.findTreeChildrenLinks=cr.prototype.Qo,cr.prototype.findTreeLevel=cr.prototype.uz,cr.prototype.findTreeParentChain=cr.prototype.vz,cr.prototype.findTreeParentNode=cr.prototype.pg,cr.prototype.findTreeParentLink=cr.prototype.kh,cr.prototype.findCommonTreeParent=cr.prototype.gz,cr.prototype.findTreeRoot=cr.prototype.xz,cr.prototype.isInTreeOf=cr.prototype.Nz,cr.prototype.findPort=cr.prototype.ns,cr.prototype.findLinksTo=cr.prototype.kz,cr.prototype.findLinksBetween=cr.prototype.jz,cr.prototype.findNodesInto=cr.prototype.Oo,cr.prototype.findNodesOutOf=cr.prototype.Po,cr.prototype.findNodesConnected=cr.prototype.Mu,cr.prototype.findLinksInto=cr.prototype.Sd,cr.prototype.findLinksOutOf=cr.prototype.Mo,cr.prototype.findExternalTreeLinksConnected=cr.prototype.qx,cr.prototype.invalidateConnectedLinks=cr.prototype.Bd,cr.prototype.invalidateLinkBundle=cr.prototype.Lz;var Nw=new jn(cr,"SpreadingNone",10),h0=new jn(cr,"SpreadingEvenly",11),Fv=new jn(cr,"SpreadingPacked",12);cr.className="Node",cr.SpreadingNone=Nw,cr.SpreadingEvenly=h0,cr.SpreadingPacked=Fv;function To(a,y){a===void 0||a instanceof Sn||typeof a=="string"?cr.call(this,a):(cr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Pi,this.$a=null,this.Sc=new Va,this.Sc.group=this,this.gl=new Pi,this.tb=this.$p=null,y&&Object.assign(this,y)}kn(To,cr),To.prototype.cloneProtected=function(a){cr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Zh});y instanceof Zh?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Yt=To.prototype,Yt.Af=function(a){cr.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof cr)x.Bd(y);else if(x instanceof Zi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Yt.gk=function(a,y,x,b,E,z,nt){if(a===fl&&y==="elements"){if(E instanceof Zh)this.$a===null?this.$a=E:this.$a!==E&&mn("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof fi){var ot=E.Nl(function(at){return at instanceof Zh});ot instanceof Zh&&(this.$a===null?this.$a=ot:this.$a!==ot&&mn("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ql&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof fi&&this.$a.rg(b)&&(this.$a=null));cr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Yt.Xl=function(a,y){cr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==fi.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof fi&&(a=a.Pb()),this.tb===null&&(this.tb=new ui),a.mi(this.tb),a instanceof ko&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Yt.eh=function(a,y,x,b){this.nf=this.$a,cr.prototype.eh.call(this,a,y,x,b)},Yt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Zi||y.Va()}),cr.prototype.Va.call(this)},Yt.si=function(){if(!cr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof cr){if(y.isVisible()&&eh(y))return!1}else if(y instanceof Zi&&y.isVisible()&&eh(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof To&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof Zi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Mv(a,y){if(a.Gn.remove(y)){y instanceof To&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof Zi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Yt.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}cr.prototype.Lj.call(this)},To.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=si(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},To.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=si(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},To.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Yt=To.prototype,Yt.Bd=function(a){var y=(this.U&65536)!==0;if(cr.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var b=x.fromNode;b!==null&&b!==this&&b.Td(this)&&!b.isVisible()?(Lc(x.fromPort),Lc(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Lc(x.fromPort),Lc(x.toPort),x.bb()))}}},Yt.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Pi,b=y.iterator;b.next();){var E=b.value;if(E instanceof cr)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Yt.iz=function(){var a=this.Rj();a.add(this);for(var y=new Pi,x=a.iterator;x.next();){var b=x.value;if(b instanceof cr)for(b=b.linksConnected;b.next();){var E=b.value,z=E.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),E=E.toNode,E===null||a.contains(E)&&E!==this||y.add(E)}}return y.iterator},Yt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Pi;return a(this,y),y},Yt.Rj=function(){var a=new Pi;return ng(a,this,!0,0,!0),a.remove(this),a},Yt.Zb=function(a){cr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},To.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();r1(this,y,a,this),a.Ue=!1}};function r1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof To&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,r1(z,y,x,b)),z instanceof cr)z.Bd(y),x.Aj(z,b);else if(z instanceof Zi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}To.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();o1(this,y,a,this),a.Ue=!1}};function o1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof To&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,x,b)),z instanceof cr)z.Bd(y),x.Cj(z,b);else if(z instanceof Zi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}To.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=Ue.alloc(),cr.prototype.move.call(this,a,y),a=new Pi,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Zi&&(E.suspendsRouting&&a.add(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(E.suspendsRouting=!0);for(y.reset();y.next();)if(E=y.value,!(E.ph()||E instanceof cr&&E.isLinkLabel)){var nt=E.position,ot=E.location;nt.w()?(z.x=nt.x+b,z.y=nt.y+x,E.position=z):ot.w()&&(z.x=ot.x+b,z.y=ot.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Zi&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(nt=E.position,z.x=nt.x+b,z.y=nt.y+x,z.w()?E.move(z):E.bb(),Iv(E)&&E.bb());Ue.free(z)}},rn.Object.defineProperties(To.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&mn("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Ef(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Ef(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Ef(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var b=!0;x!==null&&(b=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=b)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(E){E.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Ef(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),To.prototype.expandSubGraph=To.prototype.expandSubGraph,To.prototype.collapseSubGraph=To.prototype.collapseSubGraph,To.prototype.findSubGraphParts=To.prototype.Rj,To.prototype.findContainingGroupChain=To.prototype.hz,To.prototype.findExternalNodesConnected=To.prototype.iz,To.prototype.findExternalLinksConnected=To.prototype.Lu,To.prototype.ensureBounds=To.prototype.Va,To.className="Group";function Zh(a){pn.call(this),this.yb=Su,this.ko=new ui(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}kn(Zh,pn),Zh.prototype.cloneProtected=function(a){pn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Zh.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return _s(0,0,y.width,y.height,a.x,a.y)},Zh.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof To||a instanceof Ls)||mn("Placeholder is not inside a Group or Adornment."),a instanceof To){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(Za(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Ue.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ue.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var nt=0;z instanceof ko&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ut=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==fi.Link&&(ot=z.ga(a.category==="Selection"?ol:a.locationSpot,Ue.alloc()),a.location=ot,Ue.free(ot)),isNaN(ut)||isNaN(nt)?(a=z.ga(ol,Ue.alloc()),ut=ui.allocAt(a.x,a.y,0,0),ut.Ye(z.ga(Yl,a)),ut.Ye(z.ga(au,a)),ut.Ye(z.ga(qa,a)),Za(y,ut.width+b||0,ut.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Ue.free(a),ui.free(ut)):(Za(y,ut+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Zh.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Zh.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof To&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=ui.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof To&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),ui.free(x),b&&y instanceof To&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Zh.prototype.computeMemberBounds=function(a){if(!(this.part instanceof To))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,nt=y.memberParts;nt.next();){var ot=nt.value;if(ot.isVisible()){if(ot instanceof Zi&&(!y.computesBoundsIncludingLinks||Sh(ot)||ot.fromNode===y||ot.toNode===y))continue;ot=ot.actualBounds,ot.left<x&&(x=ot.left),ot.top<b&&(b=ot.top),ot.right>E&&(E=ot.right),ot.bottom>z&&(z=ot.bottom)}}return isFinite(x)&&isFinite(b)?a.h(x,b,E-x,z-b):(y=y.location,a.h(y.x,y.y,0,0)),a},rn.Object.defineProperties(Zh.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Gr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Zh.className="Placeholder";function Zi(a){$r.call(this,fi.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Xh,this.Om=0,this.Qm=Xh,this.Rm=NaN,this.qj=Ov,this.po=.5,this.wd=null,this.Nb=new Bi().freeze(),this.Tg=this.Mg=null,this.ml=new ui,this.ua=new $i,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ue,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}kn(Zi,$r),Zi.prototype.cloneProtected=function(a){$r.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Yt=Zi.prototype,Yt.Af=function(a){$r.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&Lc(y),a=a.toPort,a!==null&&Lc(a)},Yt.qb=function(a){a.classType===Zi?(a.value&2)===2?this.routing=a:a===Yc||a===Lf||a===Up?this.curve=a:a===ym||a===p0||a===m0?this.adjusting=a:a!==Ov&&a!==Xh&&mn("Unknown Link enum value for a Link property: "+a):$r.prototype.qb.call(this,a)},Yt.Xc=function(){this.ba===null&&(this.ba=new Kf)},Yt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),eh(a)||tg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),eh(a)||tg(a)))},Yt.zv=function(){return!1},Yt.Av=function(){},Yt.Zc=function(){return!1},Zi.prototype.computeAngle=function(a,y,x){return Zi.computeAngle(y,x)},Zi.computeAngle=function(a,y){switch(a){default:case Xh:a=0;break;case wm:a=y;break;case xm:a=y+90;break;case Sm:a=y-90;break;case Dv:a=y+180;break;case v0:a=Ln.bp(y),90<a&&270>a&&(a-=180);break;case Cm:a=Ln.bp(y+90),90<a&&270>a&&(a-=180);break;case Bm:a=Ln.bp(y-90),90<a&&270>a&&(a-=180);break;case y0:if(a=Ln.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Ln.bp(a)};function Dp(a){var y=a.fromNode,x=a.toNode,b=null;if(y!==null?b=x!==null?y.px(x):y.containingGroup:x!==null?b=x.containingGroup:b=null,y=b,x=a.Ah,x!==y){x!==null&&Mv(x,a),a.Ah=y,y!==null&&Lv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,x,y),nt!==null&&(nt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Yt=Zi.prototype,Yt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&$r.prototype.oh.call(this)},Yt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Yt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function s1(a,y){a.wd===null&&(a.wd=new Pi),a.wd.add(y),a.v()}Yt.Vo=function(a){if($r.prototype.Vo.call(this,a),Ig(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,l0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||l0(x,this,b)}mm(this)}},Yt.Wo=function(a){if($r.prototype.Wo.call(this,a),Ig(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,u0(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||u0(x,this,b)}vm(this)}},Yt.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},Zi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Zi.prototype.move=function(a,y){var x=y?this.location:this.position,b=x.x;isNaN(b)&&(b=0);var E=x.y;for(isNaN(E)&&(E=0),b=a.x-b,E=a.y-E,y===!0?$r.prototype.move.call(this,a,!1):(a=Ue.allocAt(x.x+b,x.y+E),$r.prototype.move.call(this,a,!1),Ue.free(a)),Ff(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Zi.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Zi.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},Zi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ss),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Yc))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===Yc){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Ln.ax(x.x,x.y,b.x,b.y,b.x,b.y,E.x,E.y,a),a}if(b=(y-1)/3|0,x=3*(b/2|0),b%2===1){b=this.i(x),E=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),Ln.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var nt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=nt[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Zi.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Yc))return this.ua.wx(.5);if(this.computeCurve()===Yc&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var b=this.i(x+2);return x=this.i(x+3),Ln.My(a.x,a.y,y.x,y.y,b.x,b.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,b=this.flattenedTotalLength;var E=0;x=0;for(var z;E<b/2&&x<a&&(z=y[x],!(E+z>b/2));)E+=z,x++;if(y=this.i(x),b=this.i(x+1),1>Math.abs(y.x-b.x)&&1>Math.abs(y.y-b.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-b.x))return y.y>b.y?270:90;if(1>Math.abs(y.y-b.y))return y.x>b.x?180:0}return y.ab(b)},Yt=Zi.prototype,Yt.i=function(a){return this.Nb.s[a]},Yt.dd=function(a,y){this.Nb.cd(a,y)},Yt.L=function(a,y,x){this.Nb.cd(a,new Ue(y,x))},Yt.Kz=function(a,y){this.Nb.Gb(a,y)},Yt.m=function(a,y,x){this.Nb.Gb(a,new Ue(y,x))},Yt.ne=function(a){this.Nb.add(a)},Yt.yf=function(a,y){this.Nb.add(new Ue(a,y))},Yt.pv=function(a){this.Nb.mb(a)},Yt.Fj=function(){this.Nb.clear()};function Ff(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var b=a.fd,E=new Bi,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new Ue(nt.x+y,nt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,nt=a.diagram,isNaN(y)||isNaN(x)||nt!==null&&nt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),kl(a)),b?c0(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&Rs(nt.animationManager,a,E),a.g("points",z,E)}}Yt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Yt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x=Math.min(ot.x,x),b=Math.min(ot.y,b)}ot=nt=1/0;for(var at=y.s,ut=at.length,ct=0;ct<ut;ct++){var gt=at[ct];nt=Math.min(gt.x,nt),ot=Math.min(gt.y,ot),gt.freeze()}if(y.freeze(),ut===z){for(z=0;z<ut;z++)if(ct=E[z],gt=at[z],ct.x-x!==gt.x-nt||ct.y-b!==gt.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Rs(x.animationManager,this,y),c0(this),this.g("points",a,y)}},Yt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function c0(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),g0(a,!1))}Yt.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},Yt.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},Zi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(op||(op=new cr,op.desiredSize=Ms,op.Va()),this.defaultFromPoint&&(op.location=this.defaultFromPoint,op.Va(),y=a=op)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(sp||(sp=new cr,sp.desiredSize=Ms,sp.Va()),this.defaultToPoint&&(sp.location=this.defaultToPoint,sp.Va(),E=b=sp)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var ot=jp(nt),at=jp(x),ut=y===E&&y!==null,ct=this.isOrthogonal,gt=this.curve===Yc;this.Wf=ut&&!ct?gt=!0:!1;var Nt=this.computeAdjusting()===Xh||ut;if(!ct&&!ut&&ot&&at){if(ot=!1,!Nt&&3<=z&&(Nt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,Nt,z-1,at))&&(Nt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Nt,z-1,at)),!ot)if(this.Fj(),gt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),Nt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=Nt.x-z.x,at=Nt.y-z.y,ut=this.computeCurviness(),gt=ct=0;var zt=z.x+ot/3,Xt=z.y+at/3,ue=zt,Qe=Xt;Ln.B(at,0)?Qe=0<ot?Qe-ut:Qe+ut:(ct=-ot/at,gt=Math.sqrt(ut*ut/(ct*ct+1)),0>ut&&(gt=-gt),ue=(0>at?-1:1)*gt+zt,Qe=ct*(ue-zt)+Xt),zt=z.x+2*ot/3,Xt=z.y+2*at/3;var ke=zt,Ze=Xt;Ln.B(at,0)?Ze=0<ot?Ze-ut:Ze+ut:(ke=(0>at?-1:1)*gt+zt,Ze=ct*(ke-zt)+Xt),this.Fj(),this.ne(z),this.yf(ue,Qe),this.yf(ke,Ze),this.ne(Nt),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,Nt=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,Nt),E=this.getLinkPoint(z,Nt,x,!1,!1,a,y),this.hasCurviness()?(Nt=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+Nt/2,y=b.y+x/2,z=a,ot=y,Ln.B(x,0)?ot=0<Nt?ot-nt:ot+nt:(Nt=-Nt/x,z=Math.sqrt(nt*nt/(Nt*Nt+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=Nt*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=ui.alloc(),y.mi(ot),at=ot.ca(E),Nt.mi(ot),ut=ot.ca(b),(at||ut)&&(nt=y.ga(A0(nt),new Ue),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=Nt.ga(A0(x),new Ue),this.dd(1,this.getLinkPointFromPoint(z,Nt,x,b,!1,x))),ui.free(ot))}else{gt=this.isAvoiding,Nt&&(ct&&gt||ut)&&this.Fj();var en=ut?this.computeCurviness():0;gt=this.getLinkPoint(a,y,nt,!0,ct,b,E),zt=ue=Xt=0,(ct||!ot||ut)&&(Qe=this.computeEndSegmentLength(a,y,nt,!0),zt=this.getLinkDirection(a,y,gt,nt,!0,ct,b,E),ut&&(ot||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(zt-=ct?90:30,0>en&&(zt-=180)),0>zt?zt+=360:360<=zt&&(zt-=360),ut&&(Qe+=Math.abs(en)*(ct?1:2)),zt===0?Xt=Qe:zt===90?ue=Qe:zt===180?Xt=-Qe:zt===270?ue=-Qe:(Xt=Qe*Math.cos(zt*Math.PI/180),ue=Qe*Math.sin(zt*Math.PI/180)),nt.Mc()&&ut&&(Qe=y.ga(Eo,Ue.alloc()),ke=Ue.allocAt(Qe.x+1e3*Xt,Qe.y+1e3*ue),this.getLinkPointFromPoint(a,y,Qe,ke,!0,gt),Ue.free(Qe),Ue.free(ke))),Qe=this.getLinkPoint(b,E,x,!1,ct,a,y);var an=Ze=ke=0;if(ct||!at||ut){var Cn=this.computeEndSegmentLength(b,E,x,!1);an=this.getLinkDirection(b,E,Qe,x,!1,ct,a,y),ut&&(at||nt.D(x)||!ct&&nt.x+x.x===1&&nt.y+x.y===1)&&(an+=ct?0:30,0>en&&(an+=180)),0>an?an+=360:360<=an&&(an-=360),ut&&(Cn+=Math.abs(en)*(ct?1:2)),an===0?ke=Cn:an===90?Ze=Cn:an===180?ke=-Cn:an===270?Ze=-Cn:(ke=Cn*Math.cos(an*Math.PI/180),Ze=Cn*Math.sin(an*Math.PI/180)),x.Mc()&&ut&&(x=E.ga(Eo,Ue.alloc()),nt=Ue.allocAt(x.x+1e3*ke,x.y+1e3*Ze),this.getLinkPointFromPoint(b,E,x,nt,!1,Qe),Ue.free(x),Ue.free(nt))}x=gt,(ct||!ot||ut)&&(x=new Ue(gt.x+Xt,gt.y+ue)),nt=Qe,(ct||!at||ut)&&(nt=new Ue(Qe.x+ke,Qe.y+Ze)),!Nt&&!ct&&ot&&3<z&&this.adjustPoints(0,gt,z-2,nt)?this.dd(z-1,Qe):!Nt&&!ct&&at&&3<z&&this.adjustPoints(1,x,z-1,Qe)?this.dd(0,gt):!Nt&&(ct?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,gt),this.dd(z-1,Qe)):(this.Fj(),this.ne(gt),(ct||!ot||ut)&&this.ne(x),ct&&this.addOrthoPoints(x,zt,nt,an,a,b),(ct||!at||ut)&&this.ne(nt),this.ne(Qe))}return!0};function Nv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}Zi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Ue),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var nt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*E;var ot=-a.m12*E,at=-a.m21*E,ut=a.m11*E,ct=E*(a.m21*a.dy-a.m22*a.dx),gt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+ct,b=b.x*ot+b.y*ut+gt,nt=x.x*nt+x.y*at+ct,x=x.x*ot+x.y*ut+gt}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function d0(a,y){var x=y.Zn;return x===null&&(x=new ap,x.port=y,x.node=y.part,y.Zn=x),f1(x,a)}Zi.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new Ue),x.sb()&&!jp(x))return y.ga(x,ot),ot;if(x.$c()){var at=d0(this,y);if(at!==null){if(ot.assign(at.Zo),E&&this.routing===l1){var ut=d0(this,nt);if(ut!==null&&at.Gl<ut.Gl){at=Ue.alloc(),ut=Ue.alloc();var ct=new ui(y.ga(ol,at),y.ga(Yl,ut)),gt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,gt,!b,E,a,y,ut),(x.Hf(bu)||x.Hf(fu))&&a.y>=ct.y&&a.y<=ct.y+ct.height?ot.y=a.y:(x.Hf(Pu)||x.Hf(nu))&&a.x>=ct.x&&a.x<=ct.x+ct.width&&(ot.x=a.x),Ue.free(at),Ue.free(ut)}}return ot}}return x=y.ga(A0(x),Ue.alloc()),this.pointsCount>(E?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),E&&(nt=Nv(x,nt.copy()))):(at=this.computeSpot(!b,nt),z=Ue.alloc(),nt=nt.ga(A0(at),z),E&&(nt=Nv(x,nt)),Ue.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),Ue.free(x),ot},Zi.prototype.getLinkDirection=function(a,y,x,b,E,z,nt,ot){t:if(b.sb())var at=b.x>b.y?b.x>1-b.y?0:b.x<1-b.y?270:315:b.x<b.y?b.x>1-b.y?90:b.x<1-b.y?180:135:.5>b.x?225:.5<b.x?45:0;else{if(b.$c()&&(at=d0(this,y),at!==null))switch(at.Nc){case 1:at=270;break t;case 2:at=180;break t;default:case 4:at=0;break t;case 8:at=90;break t}at=y.ga(Eo,Ue.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Nv(at,ot.copy()):x):(x=Ue.alloc(),ot=ot.ga(Eo,x),Ue.free(x)),x=Math.abs(ot.x-at.x)>Math.abs(ot.y-at.y)?ot.x>=at.x?0:180:ot.y>=at.y?90:270,Ue.free(at),at=x}return b.Mc()&&nt.Td(a)&&(at+=180,360<=at&&(at-=360)),jp(b)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},Zi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=d0(this,y),a!==null)?a.Ju:(a=b?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=b?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},Zi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Eo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Fs?Xa:y)):(a=y||this.toPort,a===null?a=Eo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Fs?Xa:y)),a};function jp(a){return a===Xa||a.x===.5&&a.y===.5}function A0(a){return a.x===.5&&a.y===.5?a:Eo}Zi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Xh&&4<this.pointsCount?this.computeMidPoint(new Ue):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(Eo))},Zi.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},Zi.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var nt=z;if(z===void 0&&(nt=Ro.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return cd(this,y,x,E),z===void 0&&Ro.free(nt),!0;if(this.Yc(a,nt)){var ot=!1;if(!this.isAtomic)for(var at=this.O.s,ut=at.length;ut--;){var ct=at[ut];if(ct.visible||ct===this.locationObject){var gt=ct.actualBounds,Nt=this.naturalBounds;if(!(gt.x>Nt.width||gt.y>Nt.height||0>gt.x+gt.width||0>gt.y+gt.height)){if(gt=Ro.alloc(),gt.set(nt),ct instanceof fi)ot=ct.Cf(a,y,x,b,E,gt);else if(this.path===ct){if(ct instanceof ko)if(ot=a,Nt=b,ct.pickable===!1)ot=!1;else if(gt.multiply(ct.transform),Nt)t:{var zt=ot,Xt=gt;if(ct.fh(zt,Xt))ot=!0;else{if(Xt===void 0&&(Xt=ct.transform,zt.Re(ct.actualBounds))){ot=!0;break t}ot=zt.left,Nt=zt.right;var ue=zt.top;zt=zt.bottom;var Qe=Ue.alloc(),ke=Ue.alloc(),Ze=Ue.alloc(),en=Ro.alloc();en.set(Xt),en.bv(ct.transform),en.Vj(),ke.x=Nt,ke.y=ue,ke.transform(en),Qe.x=ot,Qe.y=ue,Qe.transform(en),Xt=!1,Cf(ct,Qe,ke,Ze)?Xt=!0:(Qe.x=Nt,Qe.y=zt,Qe.transform(en),Cf(ct,Qe,ke,Ze)?Xt=!0:(ke.x=ot,ke.y=zt,ke.transform(en),Cf(ct,Qe,ke,Ze)?Xt=!0:(Qe.x=ot,Qe.y=ue,Qe.transform(en),Cf(ct,Qe,ke,Ze)&&(Xt=!0)))),Ro.free(en),Ue.free(Qe),Ue.free(ke),Ue.free(Ze),ot=Xt}}else ot=ct.fh(ot,gt)}else ot=Bl(ct,a,b,gt);ot&&(Nt=ct,y!==null&&(Nt=y(ct)),Nt&&(x===null||x(Nt))&&E.add(Nt)),Ro.free(gt)}}}return z===void 0&&Ro.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Ro.free(nt),!1},Zi.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?Yc:this.curve},Zi.prototype.computeCorner=function(){if(this.curve===Yc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Zi.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];if(E!==a&&!E.isPanelMain&&(E.segmentIndex===-1/0||isNaN(E.segmentIndex)))return E}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},Zi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=h1;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var b=this.findMidLabel();if(b!==null){var E=b.naturalBounds,z=b.margin,nt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===wm||b===v0||b===Dv?a=Math.max(a,E):b===Sm||b===Bm||b===xm||b===Cm?a=Math.max(a,nt):(y=y.ga(Eo).ab(x.ga(Eo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===Yc&&(a*=1.333)}}return a},Zi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Xh&&x.bb()}},Zi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var x=sr(),b=0,E=y.links,z=0;z<E.length;z++){var nt=E[z].computeSpacing();x.push(nt),b+=nt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),Br(x)}}return a},Zi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Zi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Zi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===p0)return!1;E===m0&&(E=ym)}switch(E){case p0:var z=this.i(a),nt=this.i(x);if(!z.Xa(y)||!nt.Xa(b)){E=z.x,z=z.y;var ot=nt.x-E,at=nt.y-z,ut=Math.sqrt(ot*ot+at*at);if(!Ln.$(ut,0)){if(Ln.$(ot,0))var ct=0>at?-Math.PI/2:Math.PI/2;else ct=Math.atan(at/Math.abs(ot)),0>ot&&(ct=Math.PI-ct);nt=y.x;var gt=y.y;ot=b.x-nt;var Nt=b.y-gt;for(at=Math.sqrt(ot*ot+Nt*Nt),Ln.$(ot,0)?Nt=0>Nt?-Math.PI/2:Math.PI/2:(Nt=Math.atan(Nt/Math.abs(ot)),0>ot&&(Nt=Math.PI-Nt)),ut=at/ut,ct=Nt-ct,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-E,at=y.y-z,y=Math.sqrt(ot*ot+at*at),Ln.$(y,0)||(Ln.$(ot,0)?at=0>at?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(ot)),0>ot&&(at=Math.PI-at)),ot=at+ct,y*=ut,this.L(a,nt+y*Math.cos(ot),gt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case m0:if(z=this.i(a),gt=this.i(x),!z.Xa(y)||!gt.Xa(b)){E=z.x,z=z.y,nt=gt.x,gt=gt.y,ut=(nt-E)*(nt-E)+(gt-z)*(gt-z),ot=y.x,ct=y.y,at=b.x,Nt=b.y;var zt=1;if(at-ot!==0){var Xt=(Nt-ct)/(at-ot);zt=Math.sqrt(1+1/(Xt*Xt))}else Xt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ue=y.x,Qe=y.y,ke=.5;ut!==0&&(ke=((E-ue)*(E-nt)+(z-Qe)*(z-gt))/ut);var Ze=E+ke*(nt-E),en=z+ke*(gt-z);y=Math.sqrt((ue-Ze)*(ue-Ze)+(Qe-en)*(Qe-en)),Qe<Xt*(ue-Ze)+en&&(y=-y),0<Xt&&(y=-y),ue=ot+ke*(at-ot),ke=ct+ke*(Nt-ct),Xt!==0?(y=ue+y/zt,this.L(a,y,ke-(y-ue)/Xt)):this.L(a,ue,ke+y)}this.dd(x,b)}return!0;case ym:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),ot=z.x,ct=z.y,gt=ot,ut=ct,Ln.B(E.y,z.y)?Ln.B(z.x,nt.x)?ct=y.y:Ln.B(z.y,nt.y)&&(ot=y.x):Ln.B(E.x,z.x)&&(Ln.B(z.y,nt.y)?ot=y.x:Ln.B(z.x,nt.x)&&(ct=y.y)),this.L(a+1,ot,ct),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),ot=z.x,ct=z.y,at=ot,Nt=ct,Ln.B(E.y,z.y)?Ln.B(z.x,nt.x)?ct=b.y:Ln.B(z.y,nt.y)&&(ot=b.x):Ln.B(E.x,z.x)&&(Ln.B(z.y,nt.y)?ot=b.x:Ln.B(z.x,nt.x)&&(ct=b.y)),this.L(x-1,ot,ct),Iv(this))){this.L(a+1,gt,ut),this.L(x-1,at,Nt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Zi.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var nt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var ot=E.actualBounds.copy(),at=z.actualBounds.copy();if(ot.w()&&at.w()){ot.Bc(Pm,Pm),at.Bc(Pm,Pm),ot.Ye(a),at.Ye(x);var ut=Ue.alloc(),ct=Ue.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&at.right>a.x||b===90&&x.y>a.y&&at.right>a.x?(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===180?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ut.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ut.x=a.x<at.left?this.computeMidOrthoPosition(a.x,a.y,at.left,x.y,!1):a.x<at.right&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,ct.x=ut.x,ct.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(ut.x=a.x,ut.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ut.y)):(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===180&&(at.ca(a)||ot.ca(x))?ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ut.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ut.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ut.y),ut.y>ot.top&&ut.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(b===90||b===270)&&(ut.h(Math.max((a.x+x.x)/2,a.x),a.y),ct.h(ut.x,x.y)):(ut.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===0?ot.bottom:Math.max(ot.bottom,at.bottom)),ct.x=x.x,ct.y=ut.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&at.left<a.x||b===90&&x.y>a.y&&at.left<a.x?(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),b===0?(ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ct.x=ut.x,ct.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ut.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,ct.x=ut.x,ct.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(ut.x=a.x,ut.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),ct.y=ut.y)):(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===0&&(at.ca(a)||ot.ca(x))?ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ut.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ut.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),ct.x=x.x,ct.y=ut.y),ut.y>ot.top&&ut.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=at.left&&a.x<=x.x?(b===90||b===270)&&(ut.h(Math.min((a.x+x.x)/2,a.x),a.y),ct.h(ut.x,x.y)):(ut.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===180?ot.bottom:Math.max(ot.bottom,at.bottom)),ct.x=x.x,ct.y=ut.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&at.bottom>a.y||b===0&&x.x>a.x&&at.bottom>a.y?(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===270?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ut.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ut.y=a.y<at.top?this.computeMidOrthoPosition(a.x,a.y,x.x,at.top,!0):a.y<at.bottom&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,ct.x=x.x,ct.y=ut.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(ut.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ut.y=a.y,ct.x=ut.x)):(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===270&&(at.ca(a)||ot.ca(x))?ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ut.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ut.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ut.x,ct.y=x.y),ut.x>ot.left&&ut.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(ut.h(a.x,Math.max((a.y+x.y)/2,a.y)),ct.h(x.x,ut.y)):(ut.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===90?ot.right:Math.max(ot.right,at.right)),ct.x=ut.x,ct.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&at.top<a.y||b===0&&x.x>a.x&&at.top<a.y?(ut.h(a.x,x.y),ct.h((a.x+x.x)/2,x.y),b===90?(ut.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ct.x=x.x,ct.y=ut.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ut.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,ct.x=x.x,ct.y=ut.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(ut.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ut.y=a.y,ct.x=ut.x)):(ut.h(x.x,a.y),ct.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===90&&(at.ca(a)||ot.ca(x))?ut.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ut.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ut.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),ct.x=ut.x,ct.y=x.y),ut.x>ot.left&&ut.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=at.top&&a.y<=x.y?(b===0||b===180)&&(ut.h(a.x,Math.min((a.y+x.y)/2,a.y)),ct.h(x.x,ut.y)):(ut.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===270?ot.right:Math.max(ot.right,at.right)),ct.x=ut.x,ct.y=x.y)));var gt=x;if(this.isAvoiding){var Nt=this.diagram;if(Nt===null||E===z||this.layer.isTemporary||!wn(Nt)||ot.ca(gt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var zt=xi(Nt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&zt.Yj(Math.min(a.x,ut.x),Math.min(a.y,ut.y),Math.abs(a.x-ut.x),Math.abs(a.y-ut.y))&&zt.Yj(Math.min(ut.x,ct.x),Math.min(ut.y,ct.y),Math.abs(ut.x-ct.x),Math.abs(ut.y-ct.y))&&zt.Yj(Math.min(ct.x,gt.x),Math.min(ct.y,gt.y),Math.abs(ct.x-gt.x),Math.abs(ct.y-gt.y)))y=!1;else{E=a,z=gt;var Xt=x=null;if(Nt.isVirtualized){Nt=zt.bounds.copy(),Nt.Bc(-zt.Ho,-zt.Go);var ue=Ue.alloc();Rp(zt,a.x,a.y)||(Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,a.x,a.y,ut.x,ut.y,ue)?(x=a=ue.copy(),y=ue.ab(ut)):Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,ut.x,ut.y,ct.x,ct.y,ue)?(x=a=ue.copy(),y=ue.ab(ct)):Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,ct.x,ct.y,gt.x,gt.y,ue)&&(x=a=ue.copy(),y=ue.ab(gt))),Rp(zt,gt.x,gt.y)||(Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,gt.x,gt.y,ct.x,ct.y,ue)?(Xt=gt=ue.copy(),b=ct.ab(ue)):Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,ct.x,ct.y,ut.x,ut.y,ue)?(Xt=gt=ue.copy(),b=ut.ab(ue)):Ln.Ff(Nt.x,Nt.y,Nt.x+Nt.width,Nt.y+Nt.height,ut.x,ut.y,a.x,a.y,ue)&&(Xt=gt=ue.copy(),b=a.ab(ue))),Ue.free(ue)}ot=ot.copy().ed(at),ot.Bc(zt.Ho*zt.Os,zt.Go*zt.Os),d1(zt,a,y,gt,b,ot,!0),at=JA(zt,gt.x,gt.y),!zt.abort&&at>=Hp&&(c1(zt),ot.Bc(zt.Ho*zt.Hx,zt.Go*zt.Ix),d1(zt,a,y,gt,b,ot,!1),at=JA(zt,gt.x,gt.y)),!zt.abort&&at<Hp&&JA(zt,gt.x,gt.y)!==Mf?(kv(this,zt,gt.x,gt.y,b,!0,nt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=gt.y):(ot.x=gt.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(nt=this.i(3),y===0||y===180?Ln.B(ot.x,nt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,nt.y)):Ln.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=zt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Ln.B(ot.y,nt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,nt.x,ot)):Ln.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=zt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),Xt!==null&&(b===0||b===180?this.yf(z.x,Xt.y):this.yf(Xt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ut.copy()),this.ne(ct.copy())),Ue.free(ut),Ue.free(ct)}},Zi.prototype.computeMidOrthoPosition=function(a,y,x,b,E){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),E?(y+b)/2+z:(a+x)/2+z};function Iv(a){if(a.diagram===null||!a.isAvoiding||!wn(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=xi(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],z=y[b+1];if(!a.Yj(Math.min(E.x,z.x),Math.min(E.y,z.y),Math.abs(E.x-z.x),Math.abs(E.y-z.y)))return!0}return!1}function kv(a,y,x,b,E,z,nt){var ot=y.Ho,at=y.Go,ut=JA(y,x,b),ct=x,gt=b;for(E===0?ct+=ot:E===90?gt+=at:E===180?ct-=ot:gt-=at,E!==nt&&ut>kg&&JA(y,ct,gt)!==ut-1&&(JA(y,x-ot,b)===ut-1?(E=180,ct=x-ot,gt=b):JA(y,x+ot,b)===ut-1?(E=0,ct=x+ot,gt=b):JA(y,x,b-at)===ut-1?(E=270,ct=x,gt=b-at):JA(y,x,b+at)===ut-1&&(E=90,ct=x,gt=b+at));ut>kg&&JA(y,ct,gt)===ut-1;)x=ct,b=gt,E===0?ct+=ot:E===90?gt+=at:E===180?ct-=ot:gt-=at,--ut;z?ut>kg&&(E===180||E===0?x=Math.floor(x/ot)*ot+ot/2:(E===90||E===270)&&(b=Math.floor(b/at)*at+at/2)):(x=Math.floor(x/ot)*ot+ot/2,b=Math.floor(b/at)*at+at/2),ut>kg&&(z=E,nt=x,ct=b,E===0?(z=90,ct+=at):E===90?(z=180,nt-=ot):E===180?(z=270,ct-=at):E===270&&(z=0,nt+=ot),JA(y,nt,ct)===ut-1?kv(a,y,nt,ct,z,!1,z):(nt=x,ct=b,E===0?(z=270,ct-=at):E===90?(z=0,nt+=ot):E===180?(z=90,ct+=at):E===270&&(z=180,nt-=ot),JA(y,nt,ct)===ut-1&&kv(a,y,nt,ct,z,!1,z))),a.yf(x,b)}Zi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Ea(y,a,x.x,x.y,b.x,b.y),z=0,nt=1;nt<this.pointsCount-1;nt++){x=this.i(nt+1);var ot=Ea(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},Zi.prototype.qc=function(){this.lk=!1,this.v()},Zi.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b];E!==a&&E.isPanelMain&&E instanceof ko&&(E.ua=this.ua)}}},Zi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Ig(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var nt=this.computeCurve();if(nt===Yc&&3<=y&&!Ln.$(this.smoothness,0))if(y===3){var ot=this.i(1);b=Math.min(E.x,ot.x);var at=Math.min(E.y,ot.y);ot=this.i(2),b=Math.min(b,ot.x),at=Math.min(at,ot.y)}else{if(this.isOrthogonal)for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),at=this.i(b),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);b=z.x,at=z.y}else{for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,at=z.y}if(b-=this.su.x,at-=this.su.y,E.x-=b,E.y-=at,y!==2||Ig(this)){if(a.type=$i.o,ot=jy(a),this.computeShortLength(!0)!==0&&(E=ip(this,E,!0,z)),Op(ot,E.x,E.y,!1),nt===Yc&&3<=y&&!Ln.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-at,E=this.i(2).copy(),E.x-=b,E.y-=at,this.computeShortLength(!1)!==0&&(E=ip(this,E,!1,z)),Pf(ot,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Ue.allocAt(b,at),x=Ue.alloc(),x.assign(this.i(1)),z=Ue.allocAt(b,at),E=Ue.allocAt(b,at),nt=this.i(0);for(var ut,ct=this.smoothness/3,gt=1;gt<this.pointsCount-1;gt++){ut=this.i(gt);var Nt=nt,zt=ut,Xt=this.i(Tv(this,ut,gt,!1));if((!Ln.$(Nt.x,zt.x)||!Ln.$(zt.x,Xt.x))&&(!Ln.$(Nt.y,zt.y)||!Ln.$(zt.y,Xt.y))){var ue=ct;isNaN(ue)&&(ue=this.smoothness/3);var Qe=Nt.x;Nt=Nt.y;var ke=zt.x;zt=zt.y;var Ze=Xt.x;Xt=Xt.y;var en=ue*f0(Qe,Nt,ke,zt);ue*=f0(ke,zt,Ze,Xt),Ln.$(Nt,zt)&&Ln.$(ke,Ze)&&(ke>Qe?Xt>zt?(z.x=ke-en,z.y=zt-en,E.x=ke+ue,E.y=zt+ue):(z.x=ke-en,z.y=zt+en,E.x=ke+ue,E.y=zt-ue):Xt>zt?(z.x=ke+en,z.y=zt-en,E.x=ke-ue,E.y=zt+ue):(z.x=ke+en,z.y=zt+en,E.x=ke-ue,E.y=zt-ue)),Ln.$(Qe,ke)&&Ln.$(zt,Xt)&&(zt>Nt?(Ze>ke?(z.x=ke-en,z.y=zt-en,E.x=ke+ue):(z.x=ke+en,z.y=zt-en,E.x=ke-ue),E.y=zt+ue):(Ze>ke?(z.x=ke-en,z.y=zt+en,E.x=ke+ue):(z.x=ke+en,z.y=zt+en,E.x=ke-ue),E.y=zt-ue)),(Ln.$(Qe,ke)&&Ln.$(ke,Ze)||Ln.$(Nt,zt)&&Ln.$(zt,Xt))&&(Qe=.5*(Qe+Ze),Nt=.5*(Nt+Xt),z.x=Qe,z.y=Nt,E.x=Qe,E.y=Nt),(gt===1||gt===2&&Ln.$(nt.x,this.i(0).x)&&Ln.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ut.x),x.y=.5*(nt.y+ut.y)),Pf(ot,x.x-b,x.y-at,z.x-b,z.y-at,ut.x-b,ut.y-at),y.set(z),x.set(E),nt=ut}}ut=nt.x,nt=nt.y,ct=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ct=ip(this,ct.copy(),!1,qo)),ut=.5*(ut+ct.x),nt=.5*(nt+ct.y),Pf(ot,E.x-b,E.y-at,ut-b,nt-at,ct.x-b,ct.y-at),Ue.free(y),Ue.free(x),Ue.free(z),Ue.free(E)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),E=this.i(x-1),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=ip(this,nt.copy(),!1,qo)),Pf(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=Ue.alloc(),z.assign(this.i(0)),E=Ue.alloc(),E.assign(z),nt=this.computeCorner(),gt=1,ut=0;gt<y;){if(gt=Tv(this,z,gt,1<gt),ct=this.i(gt),gt>=y-1){if(!z.D(ct))this.computeShortLength(!1)!==0&&(ct=ip(this,ct.copy(),!1,qo)),rp(this,ot,-b,-at,z,ct,x);else if(ut===0)for(gt=1;gt<y;)E.assign(z),ct=this.i(gt++),rp(this,ot,-b,-at,z,ct,x),z.assign(ct);break}if(ut=Tv(this,ct,gt+1,gt<y-3),gt=-b,Qe=-at,Nt=ct,ke=this.i(ut),ue=x,Ln.B(z.y,Nt.y)&&Ln.B(Nt.x,ke.x))if(Xt=Math.min(nt,Math.abs(Nt.x-E.x)/2),Xt=en=Math.min(Xt,Math.abs(ke.y-Nt.y)/2),Ln.B(Xt,0))rp(this,ot,gt,Qe,z,Nt,ue),z.assign(Nt);else{var an=Nt.x,Cn=Nt.y;zt=an,Ze=Cn,Nt.x>z.x?an=Nt.x-Xt:an=Nt.x+Xt,ke.y>Nt.y?Ze=Nt.y+en:Ze=Nt.y-en,ke=Ue.allocAt(an,Cn),rp(this,ot,gt,Qe,z,ke,ue),Ue.free(ke),r0(ot,Nt.x+gt,Nt.y+Qe,zt+gt,Ze+Qe),z.h(zt,Ze)}else Ln.B(z.x,Nt.x)&&Ln.B(Nt.y,ke.y)?(Xt=Math.min(nt,Math.abs(Nt.y-E.y)/2),Xt=en=Math.min(Xt,Math.abs(ke.x-Nt.x)/2),Ln.B(en,0)?(rp(this,ot,gt,Qe,z,Nt,ue),z.assign(Nt)):(an=Nt.x,Cn=Nt.y,zt=an,Ze=Cn,Nt.y>z.y?Cn=Nt.y-Xt:Cn=Nt.y+Xt,ke.x>Nt.x?zt=Nt.x+en:zt=Nt.x-en,ke=Ue.allocAt(an,Cn),rp(this,ot,gt,Qe,z,ke,ue),Ue.free(ke),r0(ot,Nt.x+gt,Nt.y+Qe,zt+gt,Ze+Qe),z.h(zt,Ze))):(rp(this,ot,gt,Qe,z,Nt,ue),z.assign(Nt));E.assign(ct),gt=ut}Ue.free(z)}o0=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=at,this.computeShortLength(!0)!==0&&(E=ip(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=ip(this,ot,!1,z)),a.type=$i.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function f0(a,y,x,b){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=b-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),Ln.$(a,0)?y:Ln.$(y,0)?a:Math.sqrt(a*a+y*y)))}function ip(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=f0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!0),a>E&&(a=E),E=a*(z-y.y)/b,y.x+=a*(x-y.x)/b,y.y+=E}else{if(z=a.i(E-2),x=z.x-b.x,z=z.y-b.y,b=f0(y.x,y.y,x,z),b===0)return y;E=E===2?.5*b:b,a=a.computeShortLength(!1),a>E&&(a=E),E=a*(y.y-z)/b,y.x-=a*(y.x-x)/b,y.y-=E}return y}function Tv(a,y,x,b){for(var E=a.pointsCount,z=y;Ln.$(y.x,z.x)&&Ln.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Ln.$(y.x,z.x)&&!Ln.$(y.y,z.y))return x-1;for(var nt=z;Ln.$(y.x,z.x)&&Ln.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||Ln.$(y.y,z.y)&&Ln.$(z.y,nt.y)&&(!b||(y.x>=z.x?z.x>=nt.x:z.x<=nt.x));){if(x>=E)return E-1;nt=a.i(x++)}return x-2}Zi.prototype.computeJumpLength=function(){return 10};function rp(a,y,x,b,E,z,nt){if(!nt&&Ig(a)){nt=a.computeJumpLength();var ot=nt/2,at=[],ut=0;if(a.isVisible()&&(ut=Iw(a,E,z,at)),0<ut){if(Ln.B(E.y,z.y))if(E.x<z.x)for(var ct=0;ct<ut;){var gt=Math.max(E.x,Math.min(at[ct++]-ot,z.x-nt));y.lineTo(gt+x,z.y+b);for(var Nt=gt+x,zt=Math.min(gt+nt,z.x);ct<ut&&(gt=at[ct],gt<zt+nt);)ct++,zt=Math.min(gt+ot,z.x);gt=z.y-nt+b,zt+=x;var Xt=z.y+b;a.curve===Lf?Op(y,zt,Xt,!1):Pf(y,Nt,gt,zt,gt,zt,Xt)}else for(--ut;0<=ut;){for(ct=Math.min(E.x,Math.max(at[ut--]+ot,z.x+nt)),y.lineTo(ct+x,z.y+b),Nt=ct+x,gt=Math.max(ct-nt,z.x);0<=ut&&(ct=at[ut],ct>gt-nt);)ut--,gt=Math.max(ct-ot,z.x);ct=z.y-nt+b,gt+=x,zt=z.y+b,a.curve===Lf?Op(y,gt,zt,!1):Pf(y,Nt,ct,gt,ct,gt,zt)}else if(Ln.B(E.x,z.x))if(E.y<z.y)for(ct=0;ct<ut;){for(gt=Math.max(E.y,Math.min(at[ct++]-ot,z.y-nt)),y.lineTo(z.x+x,gt+b),Nt=gt+b,gt=Math.min(gt+nt,z.y);ct<ut&&(zt=at[ct],zt<gt+nt);)ct++,gt=Math.min(zt+ot,z.y);zt=z.x-nt+x,Xt=z.x+x,gt+=b,a.curve===Lf?Op(y,Xt,gt,!1):Pf(y,zt,Nt,zt,gt,Xt,gt)}else for(--ut;0<=ut;){for(ct=Math.min(E.y,Math.max(at[ut--]+ot,z.y+nt)),y.lineTo(z.x+x,ct+b),Nt=ct+b,ct=Math.max(ct-nt,z.y);0<=ut&&(gt=at[ut],gt>ct-nt);)ut--,ct=Math.max(gt-ot,z.y);gt=z.x-nt+x,zt=z.x+x,ct+=b,a.curve===Lf?Op(y,zt,ct,!1):Pf(y,gt,Nt,gt,ct,zt,ct)}}}y.lineTo(z.x+x,z.y+b)}function Iw(a,y,x,b){var E=a.diagram;if(E===null||y.D(x))return 0;for(E=E.layers;E.next();){var z=E.value;if(z!==null&&z.visible){z=z.Pa.s;for(var nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];if(at instanceof Zi){if(at===a)return 0<b.length&&b.sort(function(ct,gt){return ct-gt}),b.length;if(at.isVisible()&&Ig(at)){var ut=at.routeBounds;ut.w()&&a.routeBounds.Yc(ut)&&!a.usesSamePort(at)&&(ut=at.path,ut!==null&&ut.Ed()&&kw(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(ct,gt){return ct-gt}),b.length}function kw(a,y,x,b){for(var E=Ln.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),ot=Ue.alloc(),at=1;at<z;at++){var ut=b.i(at);if(at<z-1){var ct=b.i(at+1);if(nt.y===ut.y&&ut.y===ct.y){if(ut.x>nt.x&&ct.x>=ut.x||ut.x<nt.x&&ct.x<=ut.x)continue}else if(nt.x===ut.x&&ut.x===ct.x&&(ut.y>nt.y&&ct.y>=ut.y||ut.y<nt.y&&ct.y<=ut.y))continue}t:{ct=a.x;var gt=a.y,Nt=y.x,zt=y.y,Xt=nt.x;nt=nt.y;var ue=ut.x,Qe=ut.y;if(Ln.B(ct,Nt)){if(!Ln.B(gt,zt)&&Ln.B(nt,Qe)&&Math.min(gt,zt)<nt&&Math.max(gt,zt)>nt&&Math.min(Xt,ue)<ct&&Math.max(Xt,ue)>ct&&!Ln.B(Xt,ue)){ot.x=ct,ot.y=nt,ct=!0;break t}}else if(Ln.B(gt,zt)&&Ln.B(Xt,ue)&&Math.min(ct,Nt)<Xt&&Math.max(ct,Nt)>Xt&&Math.min(nt,Qe)<gt&&Math.max(nt,Qe)>gt&&!Ln.B(nt,Qe)){ot.x=Xt,ot.y=gt,ct=!0;break t}ot.x=0,ot.y=0,ct=!1}ct&&(E?x.push(ot.x):x.push(ot.y)),nt=ut}Ue.free(ot)}function Ig(a){return a=a.curve,a===Up||a===Lf}function g0(a,y){(y||Ig(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}Zi.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];at instanceof Zi&&(at===this?z=!0:z&&a1(this,at,a))}}else if(b)for(z=E.Pa.s,E=z.length,nt=0;nt<E;nt++)ot=z[nt],ot instanceof Zi&&a1(this,ot,a)}}}}};function a1(a,y,x){if(y!==null&&y.lk&&y.fd&&Ig(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Zi.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var b=this.i(0),E=a.i(0);if(b.Xa(E)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||b.Xa(a)||y.Xa(E)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},Zi.prototype.isVisible=function(){if(!$r.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var b=x;b!==null;){if(b.labeledLink===this)return!0;b=b.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},Zi.prototype.Zb=function(a){if($r.prototype.Zb.call(this,a),a&&g0(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Zi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?ym:this.qk};function mm(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var b=a.ff,E=a.vf,z=a=null,nt=y.jb.s,ot=nt.length,at=0;at<ot;at++){var ut=nt[at];(ut.ef===y&&ut.ff===b&&ut.uf===x&&ut.vf===E||ut.ef===x&&ut.ff===E&&ut.uf===y&&ut.vf===b)&&(z===null?z=ut:(a===null&&(a=[],a.push(z)),a.push(ut)))}if(a!==null){for(z=Xy(y,x,b,E),z===null&&(z=new w0(y,b,x,E),Zy(y,z),Zy(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function vm(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Kr(y.links,a),y.Sl()))}Zi.prototype.ph=function(){return!0},rn.Object.defineProperties(Zi.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&u0(y,this,x),vm(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setFromNodeForLink(this,a,y);var E=this.fromPort,z=this.fromPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&l0(a,this,E),mm(this),this.C(1)),this.g("fromNode",y,a),Dp(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&Lc(x),vm(this),this.ff=a;var b=this.fromPort;b!==null&&Lc(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),mm(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&u0(y,this,x),vm(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var b=this.diagram;b!==null&&b.aa&&b.partManager.setToNodeForLink(this,a,y);var E=this.toPort,z=this.toPortChanged;if(z!==null){var nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&l0(a,this,E),mm(this),this.C(1)),this.g("toNode",y,a),Dp(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&Lc(x),vm(this),this.vf=a;var b=this.toPort;b!==null&&Lc(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),mm(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Fs},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&Lc(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Mi(a,">= 0",Zi,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Fs},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&Lc(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Mi(a,">= 0",Zi,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?yi:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&pm(this.fromNode),this.toNode!==null&&pm(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof ko?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,b=this.pointsCount;if(b===0)a.h(NaN,NaN,0,0);else{if(b===1)b=this.i(0),y=Math.min(b.x,y),x=Math.min(b.y,x),a.h(b.x,b.y,0,0);else if(b===2){b=this.i(0);var E=this.i(1);y=Math.min(b.x,E.x),x=Math.min(b.y,E.y),a.h(b.x,b.y,0,0),a.Ye(E)}else if(this.computeCurve()===Yc&&3<=b&&!this.isOrthogonal)if(E=this.i(0),y=E.x,x=E.y,a.h(y,x,0,0),b===3){b=this.i(1),y=Math.min(b.x,y),x=Math.min(b.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),Ln.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var nt=this.i(z-2);z+3>=b&&(z=b-1);var ot=this.i(z-1),at=this.i(z);Ln.Dl(E.x,E.y,nt.x,nt.y,ot.x,ot.y,at.x,at.y,.5,a),y=Math.min(at.x,y),x=Math.min(at.y,x),E=at}else for(E=this.i(0),z=this.i(1),y=Math.min(E.x,z.x),x=Math.min(E.y,z.y),a.h(E.x,E.y,0,0),a.Ye(z),E=2;E<b;E++)z=this.i(E),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Ue)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||c0(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var b=this.i(x),E=this.i(x+1);Ln.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Ln.$(b.y,E.y)?(b=E.x-b.x,0>b&&(b=-b)):b=Math.sqrt(b.Bf(E)),a.push(b)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,b=a=0;b<x;b++)a+=y[b];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var b=a.length%2===0;if(b){for(var E=0;E<a.length;E++)if(typeof a[E]!="number"||isNaN(a[E])){b=!1;break}}if(b)for(x=new Bi,b=0;b<a.length/2;b++)E=new Ue(a[2*b],a[2*b+1]).freeze(),x.add(E);else{for(b=!0,E=0;E<a.length;E++){var z=a[E];if(!On(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Bi,b=0;b<a.length;b++)E=a[b],x.add(new Ue(E.x,E.y).freeze())}}else if(a instanceof Bi)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else mn("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),c0(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Rs(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!jp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!jp(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),g0(this,y===Lf||y===Up||a===Lf||a===Up),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),g0(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),Zi.prototype.invalidateOtherJumpOvers=Zi.prototype.Xo,Zi.prototype.findClosestSegment=Zi.prototype.ez,Zi.prototype.updateRoute=Zi.prototype.vg,Zi.prototype.invalidateRoute=Zi.prototype.bb,Zi.prototype.rollbackRoute=Zi.prototype.rv,Zi.prototype.commitRoute=Zi.prototype.zf,Zi.prototype.startRoute=Zi.prototype.uh,Zi.prototype.clearPoints=Zi.prototype.Fj,Zi.prototype.removePoint=Zi.prototype.pv,Zi.prototype.addPointAt=Zi.prototype.yf,Zi.prototype.addPoint=Zi.prototype.ne,Zi.prototype.insertPointAt=Zi.prototype.m,Zi.prototype.insertPoint=Zi.prototype.Kz,Zi.prototype.setPointAt=Zi.prototype.L,Zi.prototype.setPoint=Zi.prototype.dd,Zi.prototype.getPoint=Zi.prototype.i,Zi.prototype.getOtherPort=Zi.prototype.Cz,Zi.prototype.getOtherNode=Zi.prototype.To;var op=null,sp=null,Ov=new jn(Zi,"Normal",1),Tw=new jn(Zi,"Orthogonal",2),Ow=new jn(Zi,"AvoidsNodes",6),l1=new jn(Zi,"AvoidsNodesStraight",7),Xh=new jn(Zi,"None",0),Yc=new jn(Zi,"Bezier",9),Lf=new jn(Zi,"JumpGap",10),Up=new jn(Zi,"JumpOver",11),ym=new jn(Zi,"End",17),p0=new jn(Zi,"Scale",18),m0=new jn(Zi,"Stretch",19),wm=new jn(Zi,"OrientAlong",21),xm=new jn(Zi,"OrientPlus90",22),Sm=new jn(Zi,"OrientMinus90",23),Dv=new jn(Zi,"OrientOpposite",24),v0=new jn(Zi,"OrientUpright",25),Cm=new jn(Zi,"OrientPlus90Upright",26),Bm=new jn(Zi,"OrientMinus90Upright",27),y0=new jn(Zi,"OrientUpright45",28),u1=16,h1=14,Pm=8;Zi.className="Link",Zi.Normal=Ov,Zi.Orthogonal=Tw,Zi.AvoidsNodes=Ow,Zi.AvoidsNodesStraight=l1,Zi.None=Xh,Zi.Bezier=Yc,Zi.JumpGap=Lf,Zi.JumpOver=Up,Zi.End=ym,Zi.Scale=p0,Zi.Stretch=m0,Zi.OrientAlong=wm,Zi.OrientPlus90=xm,Zi.OrientMinus90=Sm,Zi.OrientOpposite=Dv,Zi.OrientUpright=v0,Zi.OrientPlus90Upright=Cm,Zi.OrientMinus90Upright=Bm,Zi.OrientUpright45=y0,Zi.EndSegmentStep=8,Zi.CurvinessStart=u1,Zi.SpacingMin=h1,Zi.OrthoShortCut=Pm;function w0(a,y,x,b){Xo(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}w0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},w0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},w0.className="LinkBundle";function bm(a){Xo(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}bm.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,b=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((b+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],b=0;b<=a;b++)x[b]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=jv,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(b=0;b<=this.ei;b++)x[b]=a}};function Rp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function JA(a,y,x){return Rp(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):jv}function c1(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=kg&&(x[b]=jv)}bm.prototype.Yj=function(a,y,x,b){if(a>this.En||a+x<this.Nd||y>this.Fn||y+b<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var E=Math.max(0,b)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(E+=y,y=0),0>x||0>E)return!0;for(b=Math.min(a+x-1,this.di)|0,x=Math.min(y+E-1,this.ei)|0;a<=b;a++){E=this.ac[a];for(var z=y;z<=x;z++)if(E[z]===Mf)return!1}return!0};function qA(a,y,x,b,E,z,nt,ot,at){if(!(y<z||y>nt||x<ot||x>at)){var ut=y|0,ct=x|0,gt=a.ac[ut][ct];if(gt>=kg&&gt<Hp)for(E?ct+=b:ut+=b,gt+=1;z<=ut&&ut<=nt&&ot<=ct&&ct<=at&&!(gt>=a.ac[ut][ct]);)a.ac[ut][ct]=gt,gt+=1,E?ct+=b:ut+=b;if(ut=E?ct:ut,E)if(0<b)for(x+=b;x<ut;x+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else for(x+=b;x>ut;x+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else if(0<b)for(y+=b;y<ut;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at);else for(y+=b;y>ut;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at)}}function x0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ut=Mf,ct=kg;for(a.ac[y][x]=ct;ut===Mf&&y>z&&y<nt&&x>ot&&x<at;)ct+=1,a.ac[y][x]=ct,E?x+=b:y+=b,ut=a.ac[y][x]}function S0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ut=Mf,ct=Hp;for(a.ac[y][x]=ct;ut===Mf&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=ct,E?x+=b:y+=b,ut=a.ac[y][x]}function d1(a,y,x,b,E,z,nt){if(a.ac!==null){a.abort=!1;var ot=y.x,at=y.y;if(Rp(a,ot,at)){ot-=a.Nd,ot/=a.rc,at-=a.Od,at/=a.sc;var ut=b.x,ct=b.y;if(Rp(a,ut,ct))if(ut-=a.Nd,ut/=a.rc,ct-=a.Od,ct/=a.sc,1>=Math.abs(ot-ut)&&1>=Math.abs(at-ct))a.abort=!0;else{var gt=z.x;b=z.y,y=z.x+z.width;var Nt=z.y+z.height;gt-=a.Nd,gt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Nt-=a.Od,Nt/=a.sc,z=Math.max(0,Math.min(a.di,gt|0)),y=Math.min(a.di,Math.max(0,y|0)),gt=Math.max(0,Math.min(a.ei,b|0)),Nt=Math.min(a.ei,Math.max(0,Nt|0)),b=a.ac,ot|=0,at|=0,ut|=0,ct|=0;var zt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===Mf?(x0(a,ot,at,zt,x,z,y,gt,Nt),x0(a,ot,at,1,!x,z,y,gt,Nt),x0(a,ot,at,-1,!x,z,y,gt,Nt)):x0(a,ot,at,zt,x,ot,at,ot,at),b[ut][ct]===Mf?(S0(a,ut,ct,E===0||E===90?1:-1,E===90||E===270,z,y,gt,Nt),S0(a,ut,ct,1,!(E===90||E===270),z,y,gt,Nt),S0(a,ut,ct,-1,!(E===90||E===270),z,y,gt,Nt)):S0(a,ut,ct,zt,x,ut,ct,ut,ct),x=sr(),nt&&A1(a,ut,ct,E,ot,at,x))for((x[0]!==ut||x[1]!==ct)&&(x.unshift(ct),x.unshift(ut)),(x[x.length-2]!==ot||x[x.length-1]!==at)&&(x.push(ot),x.push(at)),a=kg,E=x[x.length-2],nt=x[x.length-1],b[E][nt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],nt=x[z+3],y=x[z],ut=x[z+1];y>E?E++:y<E?E--:ut>nt?nt++:ut<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ut;);else qA(a,ot,at,1,!1,z,y,gt,Nt),qA(a,ot,at,-1,!1,z,y,gt,Nt),qA(a,ot,at,1,!0,z,y,gt,Nt),qA(a,ot,at,-1,!0,z,y,gt,Nt);Br(x)}}}}function A1(a,y,x,b,E,z,nt){for(var ot=a.ac,at=y,ut=x;;){if(at===E&&ut===z)return!0;var ct=at,gt=ut;if(b===0)if(ct<E)ct++;else break;else if(b===90)if(gt<z)gt++;else break;else if(b===180)if(ct>E)ct--;else break;else if(gt>z)gt--;else break;var Nt=ot[ct][gt];if(Nt===0||Nt===Uv)break;at=ct,ut=gt}for(;;){if(ct=b,gt=at,Nt=ut,b===0?Nt<z?(ct=90,Nt++):Nt>z&&(ct=270,Nt--):b===90?gt<E?(ct=0,gt++):gt>E&&(ct=180,gt--):b===180?Nt<z?(ct=90,Nt++):Nt>z&&(ct=270,Nt--):gt<E?(ct=0,gt++):gt>E&&(ct=180,gt--),gt=ot[gt][Nt],ct!==b&&gt!==0&&gt!==Uv){if(nt.push(at),nt.push(ut),A1(a,at,ut,ct,E,z,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ut]=Uv,b===0){if(at===y)return!1;at--}else if(b===90){if(ut===x)return!1;ut--}else if(b===180){if(at===y)return!1;at++}else{if(ut===x)return!1;ut++}}}rn.Object.defineProperties(bm.prototype,{bounds:{get:function(){return new ui(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Mf=0,kg=1,Hp=999999,jv=Hp+1,Uv=Hp+2;bm.className="PositionArray";function ap(){Xo(this),this.port=this.node=null,this.pe=[],this.ap=!1}ap.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
`+b.toString())}return y};function Dw(a,y,x,b){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return b&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}ap.prototype.Sl=function(){this.pe.length=0};function f1(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof To?E:null;if(z===null||z.isSubGraphExpanded)var nt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,nt=b.Lu()}z=a.pe.length=0;var ot=a.port.ga(ol,Ue.alloc()),at=a.port.ga(Yl,Ue.alloc());for(E=ui.allocAt(ot.x,ot.y,0,0),E.Ye(at),Ue.free(ot),Ue.free(at),ot=Ue.allocAt(E.x+E.width/2,E.y+E.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ut=nt.value;if(ut.isVisible()&&ut.fromPort!==ut.toPort){var ct=ut.fromPort===a.port||ut.fromNode!==null&&ut.fromNode.Td(b),gt=ut.computeSpot(ct,a.port);if(gt.$c()&&(ct=ct?ut.toPort:ut.fromPort,ct!==null)){var Nt=ct.part;if(Nt!==null){var zt=Nt.findVisibleNode();zt!==null&&zt!==Nt&&(Nt=zt,ct=Nt.port),ct=ut.computeOtherPoint(Nt,ct),Nt=ot.ab(ct),Nt-=at,0>Nt?Nt+=360:360<=Nt&&(Nt-=360),gt=Dw(E,gt,Nt,ut.isOrthogonal),gt===0?(gt=4,180<Nt&&(Nt-=360)):gt===90?(gt=8,270<Nt&&(Nt-=360)):gt===180?gt=2:(gt=1,90>Nt&&(Nt+=360)),zt=a.pe[z],zt===void 0?(zt=new Rv(ut,Nt,gt),a.pe[z]=zt):(zt.link=ut,zt.angle=Nt,zt.Nc=gt),zt.hv.set(ct),z++}}}}for(Ue.free(ot),a.pe.sort(ap.prototype.j),at=a.pe.length,b=-1,z=ot=0;z<at;z++)nt=a.pe[z],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,ot=0),nt.Uo=ot,ot++);for(b=-1,ot=0,z=at-1;0<=z;z--)at=a.pe[z],at!==void 0&&(at.Nc!==b&&(b=at.Nc,ot=at.Uo+1),at.Gl=ot);if(z=a.pe,gt=a.port,b=a.node.portSpreading,ot=Ue.alloc(),at=Ue.alloc(),nt=Ue.alloc(),ut=Ue.alloc(),gt.ga(ol,ot),gt.ga(au,at),gt.ga(Yl,nt),gt.ga(qa,ut),zt=Nt=ct=gt=0,b===Fv)for(var Xt=0;Xt<z.length;Xt++){var ue=z[Xt];if(ue!==null){var Qe=ue.link.computeThickness();switch(ue.Nc){case 8:Nt+=Qe;break;case 2:zt+=Qe;break;case 1:gt+=Qe;break;default:case 4:ct+=Qe}}}var ke=Xt=0,Ze=1,en=ue=0;for(Qe=0;Qe<z.length;Qe++){var an=z[Qe];if(an!==null){if(Xt!==an.Nc){switch(Xt=an.Nc,Xt){case 8:var Cn=nt;ke=ut;break;case 2:Cn=ut,ke=ot;break;case 1:Cn=ot,ke=at;break;default:case 4:Cn=at,ke=nt}switch(ue=ke.x-Cn.x,en=ke.y-Cn.y,Xt){case 8:Nt>Math.abs(ue)?(Ze=Math.abs(ue)/Nt,Nt=Math.abs(ue)):Ze=1;break;case 2:zt>Math.abs(en)?(Ze=Math.abs(en)/zt,zt=Math.abs(en)):Ze=1;break;case 1:gt>Math.abs(ue)?(Ze=Math.abs(ue)/gt,gt=Math.abs(ue)):Ze=1;break;default:case 4:ct>Math.abs(en)?(Ze=Math.abs(en)/ct,ct=Math.abs(en)):Ze=1}ke=0}var Zn=an.Zo;if(b===Fv){switch(an=an.link.computeThickness(),an*=Ze,Zn.set(Cn),Xt){case 8:Zn.x=Cn.x+ue/2+Nt/2-ke-an/2;break;case 2:Zn.y=Cn.y+en/2+zt/2-ke-an/2;break;case 1:Zn.x=Cn.x+ue/2-gt/2+ke+an/2;break;default:case 4:Zn.y=Cn.y+en/2-ct/2+ke+an/2}ke+=an}else{var ir=.5;b===h0&&(ir=(an.Uo+1)/(an.Gl+1)),Zn.x=Cn.x+ue*ir,Zn.y=Cn.y+en*ir}}}for(Ue.free(ot),Ue.free(at),Ue.free(nt),Ue.free(ut),Cn=a.pe,z=0;z<Cn.length;z++)b=Cn[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,ui.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}ap.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},ap.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Xa,y.fromPort===this.port),b=a.Uo;if(0>b)return x;var E=a.Gl;if(1>=E||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(b=E-1-b),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*b:(a?y.y===z.y:y.x===z.x)?x:x+8*(E-1-b)},ap.className="Knot";function Rv(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Ue,this.Gl=this.Uo=0,this.Zo=new Ue,this.Ju=0}Rv.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},Rv.className="LinkInfo";function Va(a){Xo(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ue(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Va.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},Va.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Va.prototype.qb=function(){},Va.prototype.toString=function(){var a=dr(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Va.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},Va.prototype.createNetwork=function(){return new ma(this)},Va.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Kn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof To?y.lg(a.memberParts):y.lg(a.iterator),y},Va.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},Va.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},Va.prototype.doLayout=function(a){var y=new Pi;a instanceof Kn?(ig(this,y,a.nodes,!0,this.rh,!0,!1,!0),ig(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof To?ig(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},Va.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,nt=0;for(a=a.iterator;a.next();){var ot=a.value;Em(ot);var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(b,E),ot instanceof To&&(ot.rh=!1),b+=Math.max(ut,50)+20,nt=Math.max(nt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},Va.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value.node;if(!(ot===null||ot instanceof Zi)&&(Em(ot),this.rh(ot))){var at=ot.measuredBounds,ut=at.width;at=at.height,ot.moveTo(x,b),ot instanceof To&&(ot.rh=!1),x+=Math.max(ut,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Va.prototype.rh=function(a){return!!(!a.location.w()||a instanceof To&&a.rh)};function ig(a,y,x,b,E,z,nt,ot){for(x=x.iterator;x.next();){var at=x.value;b&&!at.isTopLevel||E!==null&&!E(at)||!at.canLayout()||(z&&at instanceof cr?at.isLinkLabel||(at instanceof To&&at.layout===null?ig(a,y,at.memberParts,!1,E,z,nt,ot):(Em(at),y.add(at))):nt&&at instanceof Zi?y.add(at):!ot||!at.Zc()||at instanceof cr||(Em(at),y.add(at)))}}function Em(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Va.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ui),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Va.prototype.ex=function(a){var y=new Pi;return a instanceof Kn?(ig(this,y,a.nodes,!0,null,!0,!0,!0),ig(this,y,a.links,!0,null,!0,!0,!0),ig(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof To?ig(this,y,a.memberParts,!1,null,!0,!0,!0):ig(this,y,a.iterator,!1,null,!0,!0,!0),y},Va.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(ol),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},rn.Object.defineProperties(Va.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),Va.prototype.collectParts=Va.prototype.ex,Va.prototype.getLayoutBounds=Va.prototype.ni,Va.prototype.invalidateLayout=Va.prototype.C,Va.className="Layout";function ma(a){Xo(this),this.Sc=a,this.wf=new Pi,this.ye=new Pi,this.Es=new gr,this.zs=new gr}ma.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Pi,this.ye=new Pi,this.Es=new gr,this.zs=new gr},ma.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
`+x.value.toString(a-1)}return y},ma.prototype.createVertex=function(){return new xu(this)},ma.prototype.createEdge=function(){return new Mc(this)},ma.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(nt){if(nt instanceof cr)return!nt.isLinkLabel;if(nt instanceof Zi){var ot=nt.fromNode;return ot===null||ot.isLinkLabel?!1:(nt=nt.toNode,!(nt===null||nt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof cr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof To&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof Zi&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)&&this.Lo(b)===null){var z=b.fromNode;E=b.toNode,z!==null&&E!==null&&z!==E&&(z=this.findGroupVertex(z),E=this.findGroupVertex(E),z!==null&&E!==null&&this.Zj(z,E,b))}}},ma.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Yt=ma.prototype,Yt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Yt.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},Yt.Iu=function(a){if(a!==null&&g1(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function g1(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Yt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Yt.ki=function(a){return a===null?null:this.Es.I(a)},Yt.Bo=function(a){if(a!==null){Hv(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function Hv(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Yt.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,b=this.Lo(a);return b===null?(b=this.createEdge(),b.link=a,y!==null&&(b.fromVertex=this.Bl(y)),x!==null&&(b.toVertex=this.Bl(x)),this.Bo(b)):(y!==null?b.fromVertex=this.Bl(y):b.fromVertex=null,x!==null?b.toVertex=this.Bl(x):b.toVertex=null),b},Yt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),_v(this,a)}};function _v(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Yt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Yt.Lo=function(a){return a===null?null:this.zs.I(a)},Yt.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var b=this.createEdge();return b.link=x,b.fromVertex=a,b.toVertex=y,this.Bo(b),b}return null},Yt.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},Yt.Ko=function(){for(var a=sr(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);Br(a)},ma.prototype.deleteArtificialVertexes=function(){for(var a=sr(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=sr(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);Br(a),Br(y)};function jw(a){for(var y=sr(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);Br(y)}ma.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jw(this),this.Ko()),a=new Bi;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var b=x.value;if(0<b.tg.count||0<b.mg.count){y=this.layout.createNetwork(),a.add(y),Qv(this,y,b),y=!0;break}}}return a.sort(function(E,z){return E===null||z===null||E===z?0:z.vertexes.count-E.vertexes.count}),a};function Qv(a,y,x){if(x!==null&&x.network!==y){g1(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(_v(a,E),Hv(y,E),Qv(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(_v(a,x),Hv(y,x),Qv(a,y,x.toVertex))}}ma.prototype.dz=function(){for(var a=new Pi,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},rn.Object.defineProperties(ma.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),ma.prototype.findAllParts=ma.prototype.dz,ma.prototype.splitIntoSubNetworks=ma.prototype.Zx,ma.prototype.deleteSelfEdges=ma.prototype.Ko,ma.prototype.reverseEdge=ma.prototype.gm,ma.prototype.linkVertexes=ma.prototype.Zj,ma.prototype.findEdge=ma.prototype.Lo,ma.prototype.deleteLink=ma.prototype.Yy,ma.prototype.deleteEdge=ma.prototype.Mj,ma.prototype.addLink=ma.prototype.Dy,ma.prototype.addEdge=ma.prototype.Bo,ma.prototype.findVertex=ma.prototype.ki,ma.prototype.deleteNode=ma.prototype.Zy,ma.prototype.deleteVertex=ma.prototype.Iu,ma.prototype.addNode=ma.prototype.Bl,ma.prototype.addVertex=ma.prototype.dh,ma.prototype.addParts=ma.prototype.lg,ma.className="LayoutNetwork";function xu(a){Xo(this),this.ob=a,this.j=new ui(0,0,10,10).freeze(),this.o=new Ue(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Bi,this.mg=new Bi}xu.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Bi,this.mg=new Bi},xu.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+fs(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,b=this.tg.iterator;b.next();){var E=b.value;x?x=!1:a+=",",a+=E.toString(0)}for(E="",x=!0,b=this.mg.iterator;b.next();){var z=b.value;x?x=!1:E+=",",E+=z.toString(0)}y+=" sources: "+a+" destinations: "+E}return y},xu.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;On(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof To)){x=ui.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Eo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),ui.free(x);return}ui.free(x)}a.moveTo(y.x,y.y)}},xu.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},xu.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},xu.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},xu.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function zv(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}rn.Object.defineProperties(xu.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,b=y.width;y=y.height,this.o.h(b/2,y/2),this.j.h(a,x,b,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ui.alloc(),b=y.ni(a,x);y=b.x;var E=b.y,z=b.width;if(b=b.height,isNaN(y)&&(y=0),isNaN(E)&&(E=0),this.j.h(y,E,z,b),ui.free(x),!(a instanceof To)&&(a=a.locationObject.ga(Eo),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Pi,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Pi,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Pi,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Bi,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),xu.prototype.deleteDestinationEdge=xu.prototype.Jl,xu.prototype.addDestinationEdge=xu.prototype.zl,xu.prototype.deleteSourceEdge=xu.prototype.Kl,xu.prototype.addSourceEdge=xu.prototype.Cl,xu.className="LayoutVertex",xu.standardComparer=zv,xu.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var b=parseFloat(y[x]),E=parseFloat(a[x]);if(isNaN(b))if(isNaN(E)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function Mc(a){Xo(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Mc.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Mc.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+fs(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},Mc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Mc.prototype.commit=function(){},Mc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},rn.Object.defineProperties(Mc.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),Mc.prototype.getOtherVertex=Mc.prototype.Ax,Mc.className="LayoutEdge";function ih(a){Va.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Gi(NaN,NaN).freeze(),this.tf=new Gi(10,10).freeze(),this.Jb=Fm,this.Rb=B0,this.nd=Lm,this.hd=p1,a&&Object.assign(this,a)}kn(ih,Va),ih.prototype.cloneProtected=function(a){Va.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},ih.prototype.qb=function(a){a.classType===ih?a===Lm||a===b0||a===Kv||a===P0?this.sorting=a:a===B0||a===AA?this.arrangement=a:a===Fm||a===C0?this.alignment=a:mn("Unknown enum value: "+a):Va.prototype.qb.call(this,a)},ih.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof To)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case P0:E.reverse();break;case Lm:E.sort(this.comparer);break;case b0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=z&&0>=nt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case C0:var ot=y,at=x,ut=ui.alloc(),ct=Math.max(this.cellSize.width,1);if(!isFinite(ct))for(var gt=ct=0;gt<E.length;gt++){var Nt=this.ni(E[gt],ut);ct=Math.max(ct,Nt.width)}if(ct=Math.max(ct+ot,1),gt=Math.max(this.cellSize.height,1),!isFinite(gt))for(Nt=gt=0;Nt<E.length;Nt++){var zt=this.ni(E[Nt],ut);gt=Math.max(gt,zt.height)}gt=Math.max(gt+at,1),Nt=this.arrangement;for(var Xt=zt=this.arrangementOrigin.x,ue=this.arrangementOrigin.y,Qe=0,ke=0,Ze=0;Ze<E.length;Ze++){var en=E[Ze],an=this.ni(en,ut),Cn=Math.ceil((an.width+ot)/ct)*ct,Zn=Math.ceil((an.height+at)/gt)*gt;switch(Nt){case AA:var ir=Math.abs(Xt-an.width);break;default:ir=Xt+an.width}switch((0<z&&Qe>z-1||0<nt&&0<Qe&&ir-zt>nt)&&(b.push(new ui(0,ue,nt+ot,ke)),Qe=0,Xt=zt,ue+=ke,ke=0),ke=Math.max(ke,Zn),Nt){case AA:an=-an.width;break;default:an=0}switch(en.moveTo(Xt+an,ue),Nt){case AA:Xt-=Cn;break;default:Xt+=Cn}Qe++}b.push(new ui(0,ue,nt+ot,ke)),ui.free(ut);break;case Fm:for(at=nt,ct=z,gt=y,Nt=x,nt=ui.alloc(),zt=Math.max(this.cellSize.width,1),z=ue=ut=0,ot=Ue.alloc(),Xt=0;Xt<E.length;Xt++)ke=E[Xt],Qe=this.ni(ke,nt),ke=bf(ke,ke.locationObject,ke.locationSpot,ot),ut=Math.max(ut,ke.x),ue=Math.max(ue,Qe.width-ke.x),z=Math.max(z,ke.y);switch(Xt=this.arrangement,Xt){case AA:ut+=gt;break;default:ue+=gt}zt=isFinite(zt)?Math.max(zt+gt,1):Math.max(ut+ue,1);var Mr=ke=this.arrangementOrigin.x;for(Ze=this.arrangementOrigin.y,ue=0,at>=ut&&(at-=ut),ut=en=0,Cn=Math.max(this.cellSize.height,1),an=z=0,Zn=!0,Qe=Ue.alloc(),ir=0;ir<E.length;ir++){var wr=E[ir],Vi=this.ni(wr,nt),Ni=bf(wr,wr.locationObject,wr.locationSpot,ot);if(0<ue)switch(Xt){case AA:Mr=(Mr-ke-(Vi.width-Ni.x))/zt,Mr=Ln.$(Math.round(Mr),Mr)?Math.round(Mr):Math.floor(Mr),Mr=Mr*zt+ke;break;default:Mr=(Mr-ke+Ni.x)/zt,Mr=Ln.$(Math.round(Mr),Mr)?Math.round(Mr):Math.ceil(Mr),Mr=Mr*zt+ke}else switch(Xt){case AA:en=Mr+Ni.x+Vi.width;break;default:en=Mr-Ni.x}switch(Xt){case AA:var Fo=-(Mr+Ni.x)+en;break;default:Fo=Mr+Vi.width-Ni.x-en}if(0<ct&&ue>ct-1||0<at&&0<ue&&Fo>at){for(b.push(new ui(0,Zn?Ze-z:Ze,at+gt,an+z+Nt)),Mr=0;Mr<ue&&ir!==ue;Mr++){Fo=E[ir-ue+Mr];var mo=bf(Fo,Fo.locationObject,Fo.locationSpot,Qe);Fo.moveTo(Fo.position.x,Fo.position.y+z-mo.y)}an+=Nt,Ze=Zn?Ze+an:Ze+(an+z),ue=an=z=0,Mr=ke,Zn=!1}switch(Mr===ke&&(ut=Xt===AA?Math.max(ut,Vi.width-Ni.x):Math.min(ut,-Ni.x)),z=Math.max(z,Ni.y),an=Math.max(an,Vi.height-Ni.y),isFinite(Cn)&&(an=Math.max(an,Math.max(Vi.height,Cn)-Ni.y)),Zn?wr.moveTo(Mr-Ni.x,Ze-Ni.y):wr.moveTo(Mr-Ni.x,Ze),Xt){case AA:Mr-=Ni.x+gt;break;default:Mr+=Vi.width-Ni.x+gt}ue++}if(b.push(new ui(0,Ze,at+gt,(Zn?an:an+z)+Nt)),E.length!==ue)for(at=0;at<ue;at++)ct=E[E.length-ue+at],gt=bf(ct,ct.locationObject,ct.locationSpot,ot),ct.moveTo(ct.position.x,ct.position.y+z-gt.y);if(Ue.free(ot),Ue.free(Qe),Xt===AA)for(E=0;E<b.length;E++)z=b[E],z.width+=ut,z.x-=ut;else for(E=0;E<b.length;E++)z=b[E],z.x>ut&&(z.width+=z.x-ut,z.x=ut);ui.free(nt)}for(ot=z=nt=E=0;ot<b.length;ot++)at=b[ot],E=Math.min(E,at.x),nt=Math.min(nt,at.y),z=Math.max(z,at.x+at.width);this.arrangement===AA?this.commitLayers(b,new Ue(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new Ue(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},ih.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}rn.Object.defineProperties(ih.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==Fm&&a!==C0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==B0&&a!==AA||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Kv&&a!==P0&&a!==Lm&&a!==b0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var C0=new jn(ih,"Position",0),Fm=new jn(ih,"Location",1),B0=new jn(ih,"LeftToRight",2),AA=new jn(ih,"RightToLeft",3),Kv=new jn(ih,"Forward",4),P0=new jn(ih,"Reverse",5),Lm=new jn(ih,"Ascending",6),b0=new jn(ih,"Descending",7);ih.className="GridLayout",ih.standardComparer=p1,ih.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var b=parseFloat(a[x]),E=parseFloat(y[x]);if(isNaN(b))if(isNaN(E)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(E))return-1;if(b-E!==0)return b-E}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},ih.Position=C0,ih.Location=Fm,ih.LeftToRight=B0,ih.RightToLeft=AA,ih.Forward=Kv,ih.Reverse=P0,ih.Ascending=Lm,ih.Descending=b0;function Ws(){this.On=new Pi,this.Dn=new Pi,this.Pa=new Pi,this.cf=new gr,this.bf=new gr,this.aj=new gr,this.H=null,this.tp=!1}Yt=Ws.prototype,Yt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Yt.Xe=function(a){this.H=a},Yt.oi=function(a){if(a instanceof cr){if(this.On.add(a),a instanceof To){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof Zi?this.Dn.add(a):a instanceof Ls||this.Pa.add(a);y=a.data,y===null||a instanceof Ls||(a instanceof Zi?this.bf.add(y,a):this.cf.add(y,a))},Yt.pc=function(a){if(a.Ej(),a instanceof cr){if(this.On.remove(a),a instanceof To){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof Zi?this.Dn.remove(a):a instanceof Ls||this.Pa.remove(a);y=a.data,y===null||a instanceof Ls||(a instanceof Zi?this.bf.remove(y):this.cf.remove(y))},Yt.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof To)&&mn('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof To||mn('Invalid group template in Diagram.groupTemplateMap: template for "'+b+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Zi||mn('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=sr(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=sr(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=sr(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);Br(y),Br(x),Br(a)}},Ws.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Ws.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&m1(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&EA(this.diagram,!1)};function m1(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=v1(a,y,b);if(E!==null&&(ou(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Ws.prototype.insertLink=function(){return null},Ws.prototype.resolveReferencesForData=function(){},Ws.prototype.Ro=function(a){return this.H.model.Ro(a)};function v1(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(x1||(x1=!0,er('No Group template found for category "'+x+'"'),er(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(w1||(w1=!0,er('No Node template found for category "'+x+'"'),er(" Using default node template")),y=a.ny))),y}Ws.prototype.getLinkCategoryForData=function(){return""},Ws.prototype.setLinkCategoryForData=function(){},Ws.prototype.setFromNodeForLink=function(){},Ws.prototype.setToNodeForLink=function(){},Ws.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(S1||(S1=!0,er('No Link template found for category "'+a+'"'),er(" Using default link template")),x=y.my)),x},Ws.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Ws.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Ws.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Pd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Ws.prototype.unresolveReferencesForPart=function(){},Ws.prototype.removeDataForLink=function(){},Ws.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Ws.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof cr?a:null)},Ws.prototype.findLinkForKey=function(){return null},Yt=Ws.prototype,Yt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Yt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof cr?a:null)},Yt.Kc=function(a){return a===null?null:this.bf.I(a)},Yt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Pi;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(On(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator},Yt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Pi;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(On(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator};function Gv(a,y,x){for(var b in x){var E=y[b],z=x[b];if(Si(z)){if(!Si(E)||E.length<z.length)return!1;for(var nt=0;nt<E.length;nt++){var ot=z[nt];if(ot!==void 0&&!y1(a,E[nt],ot))return!1}}else if(!y1(a,E,z))return!1}return!0}function y1(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(On(y)&&On(x)){if(!Gv(a,y,x))return!1}else if(y!==x)return!1;return!0}Ws.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var b=a.modelChange;if(b!=="")if(x===Ma){if(b==="nodeCategory"){var E=this.Lc(a.object),z=a.newValue;E!==null&&typeof z=="string"&&(E.category=z)}else b==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===fl){var nt=a.newValue;b==="nodeDataArray"&&On(nt)&&m1(this,nt),y.isModified=!0}else if(x===Ql){var ot=a.oldValue;b==="nodeDataArray"&&On(ot)&&this.ip(ot),y.isModified=!0}else x===sh&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Ma){var at=a.propertyName,ut=a.object;ut===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ut,at),y.isModified=!0}else if(x===fl||x===Ql){var ct=a.change===fl,gt=ct?a.newParam:a.oldParam,Nt=ct?a.newValue:a.oldValue,zt=this.aj.I(a.object);if(Array.isArray(zt))for(a=0;a<zt.length;a++){var Xt=zt[a];if(ct)DA(Xt,Nt,gt,!0);else if(!(0>gt)){var ue=gt+OA(Xt);Xt.pc(ue,!0),gh(Xt,ue,gt)}}y.isModified=!0}}finally{y.aa=!0}}}}},Ws.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Ws.prototype.rp=function(){for(var a=this.H.model,y=new Pi,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),this.parts.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),E.forEach(function(nt){N1(a,nt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&M1(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Ws.prototype.refreshDataBoundLinks=function(){},Ws.prototype.updateRelationshipsFromData=function(){},Ws.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var nt=E[z].sx(a);nt!==null&&(x===null&&(x=sr()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);Br(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Wv(a,y){var x=y.Hh;if(Si(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function Vv(a,y,x){dl(y,function(nt){nt=nt.O.s;for(var ot=nt.length,at=0;at<ot;at++)hA(x,nt[at])});var b=y.Hh;if(Si(b)){var E=a.aj.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&a.aj.remove(b);break}}}}Ws.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new gr;if(Si(a))for(var E=0;E<a.length;E++)E0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)E0(this,a.value,y,b,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,E=new Pi;for(var z=new gr,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof Zi)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof cr&&ot.data!==null&&x.Tl()){var at=ot;ot=nt.key;var ut=ot.pg();ut!==null&&(ut=b.I(ut),ut!==null?(x.qe(at.data,x.wa(ut.data)),at=y.Kc(at.data),ot=ot.kh(),ot!==null&&at!==null&&z.add(ot,at)):x.qe(at.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ct=new gr;b.each(function(gt){gt.key.data!==null&&ct.add(gt.key.data,gt.value.data)}),x(ct,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function E0(a,y,x,b,E){if(y===null||E&&!y.canCopy())return null;if(b.contains(y))return b.I(y);var z=a.copyPartData(y,x);if(!(z instanceof $r))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof cr){for(var nt=y.linksConnected;nt.next();){var ot=nt.value;if(ot.fromNode===y){var at=b.I(ot);at!==null&&(at.fromNode=z)}ot.toNode===y&&(ot=b.I(ot),ot!==null&&(ot.toNode=z))}if(y instanceof To&&z instanceof To)for(y=y.memberParts;y.next();)nt=E0(a,y.value,x,b,E),nt instanceof Zi||nt===null||(nt.containingGroup=z)}else if(y instanceof Zi&&z instanceof Zi)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.toNode=nt)),y=y.labelNodes;y.next();)nt=E0(a,y.value,x,b,E),nt!==null&&nt instanceof cr&&(nt.labeledLink=z);return z}Ws.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Zi||(b=E.copyNodeData(b),On(b)&&(E.xf(b),x=y.Lc(b)))}else ou(a),x=a.copy(),x!==null&&(E=this.H,y!==null?y.add(x):b!==null&&E!==null&&E.commandHandler!==null&&E.commandHandler.copiesClipboardData&&(y=E.model,E=null,x instanceof Zi||(E=y.copyNodeData(b)),On(E)&&(x.data=E)));return x},rn.Object.defineProperties(Ws.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),Ws.prototype.updateAllRelationshipsFromData=Ws.prototype.rp,Ws.prototype.findLinksByExample=Ws.prototype.ls,Ws.prototype.findNodesByExample=Ws.prototype.ms,Ws.prototype.findLinkForData=Ws.prototype.Kc,Ws.prototype.findNodeForData=Ws.prototype.ii,Ws.prototype.findPartForData=Ws.prototype.Lc,Ws.prototype.findNodeForKey=Ws.prototype.Vb,Ws.prototype.removeModeledPart=Ws.prototype.ip,Ws.prototype.removeModeledParts=Ws.prototype.Gs,Ws.prototype.rebuildParts=Ws.prototype.Wd;var w1=!1,x1=!1,S1=!1;Ws.className="PartManager";function Qu(a){Ws.apply(this,arguments)}kn(Qu,Ws),Qu.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),C1(this,a.linkDataArray)},Qu.prototype.addModeledParts=function(a){for(Ws.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Dp(a.value);EA(this.diagram,!1)};function C1(a,y){y.forEach(function(x){B1(a,x)}),EA(a.diagram,!1)}function B1(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){ou(b);var E=b.copy();if(E!==null){b=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,E.Tf=x,E.ub=y,x=a.diagram.model;var z=N0(x,y,!0);z!==""&&(E.fromPortId=z),z=Jc(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof cr&&(E.fromNode=z)),z=N0(x,y,!1),z!==""&&(E.toPortId=z),z=Jc(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof cr&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}Qu.prototype.removeAllModeledParts=function(){var a=this.diagram.model;P1(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function P1(a,y){y.forEach(function(x){a.ip(x)})}Qu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Qu.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Qu.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Qu.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Qu.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Qu.prototype.findPartForKey=function(a){var y=Ws.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Qu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Qu.prototype.doModelChanged=function(a){var y=this;if(Ws.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var b=a.change;if(x.aa){x.aa=!1;try{var E=a.modelChange;if(E!==""){if(b===Ma){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var nt=this.Vb(a.newValue);z.fromNode=nt}}else if(E==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var at=this.Vb(a.newValue);ot.toNode=at}}else if(E==="linkFromPortId"){var ut=this.Kc(a.object);if(ut!==null){var ct=a.newValue;typeof ct=="string"&&(ut.fromPortId=ct)}}else if(E==="linkToPortId"){var gt=this.Kc(a.object);if(gt!==null){var Nt=a.newValue;typeof Nt=="string"&&(gt.toPortId=Nt)}}else if(E==="nodeGroupKey"){var zt=this.Lc(a.object);if(zt!==null){var Xt=a.newValue;if(Xt!==void 0){var ue=this.Vb(Xt);ue instanceof To?zt.containingGroup=ue:zt.containingGroup=null}else zt.containingGroup=null}}else if(E==="linkLabelKeys"){var Qe=this.Kc(a.object);if(Qe!==null){var ke=a.oldValue,Ze=a.newValue;Array.isArray(ke)&&ke.forEach(function(Ni){0<=Ze.indexOf(Ni)||(Ni=y.Vb(Ni),Ni!==null&&(Ni.labeledLink=null))}),Array.isArray(Ze)&&Ze.forEach(function(Ni){Ni=y.Vb(Ni),Ni!==null&&(Ni.labeledLink=Qe)})}}else if(E==="linkCategory"){var en=this.Kc(a.object),an=a.newValue;en!==null&&typeof an=="string"&&(en.category=an)}else E==="linkDataArray"&&(P1(this,a.oldValue),C1(this,a.newValue));x.isModified=!0}else if(b===fl){var Cn=a.newValue;if(E==="linkDataArray"&&typeof Cn=="object"&&Cn!==null)B1(this,Cn);else if(E==="linkLabelKeys"&&og(Cn)){var Zn=this.Kc(a.object),ir=this.Vb(Cn);Zn!==null&&ir!==null&&(ir.labeledLink=Zn)}x.isModified=!0}else if(b===Ql){var Mr=a.oldValue;if(E==="linkDataArray"&&typeof Mr=="object"&&Mr!==null)this.ip(Mr);else if(E==="linkLabelKeys"&&og(Mr)){var wr=this.Vb(Mr);wr!==null&&(wr.labeledLink=null)}x.isModified=!0}}else if(b===Ma){var Vi=a.propertyName;a.object!==x.model||Vi!=="linkFromKeyProperty"&&Vi!=="linkToKeyProperty"&&Vi!=="linkFromPortIdProperty"&&Vi!=="linkToPortIdProperty"&&Vi!=="linkLabelKeysProperty"&&Vi!=="nodeIsGroupProperty"&&Vi!=="nodeGroupKeyProperty"&&Vi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Qu.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Pi,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){j1(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&D1(y,z,!1)})},Qu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Zi){var E=Jc(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Jc(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Pi().addAll(y);var nt=new Pi;a.labelNodes.each(function(ot){ot.data!==null&&(ot=b.wa(ot.data),ot!==void 0&&nt.add(ot))}),y=nt.copy(),y.hp(E),E=E.copy(),E.hp(nt),(0<y.count||0<E.count)&&(y.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink===a&&(ot.labeledLink=null)}),E.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink!==a&&(ot.labeledLink=a)}))}}else!(a instanceof Ls)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof To)&&(a.containingGroup=y)}}},Qu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Mm(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var nt=b.value;y.lb(nt)?E instanceof To&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof cr&&(Jc(y,nt,!0)===x&&(z.link.fromNode=E),Jc(y,nt,!1)===x&&(z.link.toNode=E),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(ot){return function(at){return at===x?(E.labeledLink=ot.link,!0):!1}}(z)))),z={link:z.link}}gA(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof To&&(E.containingGroup=a))}},Qu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof cr){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)fA(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&fA(y,x,b.data)),a instanceof To)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&fA(y,x,b)}}},Qu.prototype.copyPartData=function(a,y){var x=Ws.prototype.copyPartData.call(this,a,y);if(a instanceof Zi)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},Qu.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,nt=E.toolManager.findTool("Linking"),ot="";if(a!==null&&(y===null&&(y=a),ot=y.portId,ot===null&&(ot="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=nt.archetypeLinkData,b instanceof Zi){if(ou(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=ot,z.toNode=x,z.toPortId=y,E.add(z),a=nt.archetypeLabelNodeData,a instanceof cr&&(ou(a),a=a.copy(),a!==null&&(a.labeledLink=z,E.add(a))),z}else if(b!==null&&(b=z.Jo(b),typeof b=="object"&&b!==null))return a!==null&&Qp(z,b,z.wa(a.data),!0),zp(z,b,ot,!0),x!==null&&Qp(z,b,z.wa(x.data),!1),zp(z,b,y,!1),z.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof cr||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(b,a))),E.Kc(b);return null},Qu.prototype.findLinkForKey=Qu.prototype.findLinkForKey,Qu.prototype.findPartForKey=Qu.prototype.findPartForKey,Qu.prototype.removeAllModeledParts=Qu.prototype.removeAllModeledParts,Qu.prototype.addModeledParts=Qu.prototype.addModeledParts,Qu.prototype.addAllModeledParts=Qu.prototype.addAllModeledParts,Qu.className="GraphLinksPartManager";function gd(){Ws.apply(this,arguments),this.Sg=null}kn(gd,Ws);function F0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var b=a.diagram.toolManager.findTool("Linking"),E=y,z=x;if(a.diagram.isTreePathToChildren||(E=x,z=y),(b===null||!Rn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(ou(b),b=b.copy(),b!==null))){var nt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=nt}}}gd.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},gd.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},gd.prototype.setFromNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)b.qe(a.data,b.wa(y));else{var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=E}},gd.prototype.setToNodeForLink=function(a,y,x){var b=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var E=this.Sg;this.Sg=a,x!==null&&b.qe(x.data,void 0),b.qe(y,b.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=E}else b.qe(a.data,b.wa(y))},gd.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},gd.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},gd.prototype.doModelChanged=function(a){if(Ws.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var b=a.modelChange;if(b!==""){if(x===Ma){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),nt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(nt!==null){var ot=nt.kh();ot!==null?z===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=z:ot.toNode=z:F0(this,z,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ut=a.newValue;if(at!==null&&typeof ut=="string"){var ct=at.kh();ct!==null&&(ct.category=ut)}}y.isModified=!0}}else if(x===Ma){var gt=a.propertyName;a.object===y.model&&gt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},gd.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof cr&&(y=b.mh(y),y=x.Vb(y),b=a.pg(),y!==b&&(b=a.kh(),y!==null?b!==null?x.isTreePathToChildren?b.fromNode=y:b.toNode=y:F0(this,y,a):b!==null&&Pd(x,b,!1)))}}},gd.prototype.updateDataBindings=function(a,y){Ws.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},gd.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Mm(y,x),E=this.Lc(a);if(b!==null&&E!==null){for(b=b.iterator;b.next();){var z=b.value;y.lb(z)&&E instanceof cr&&y.mh(z)===x&&F0(this,E,this.ii(z))}gA(y,x)}a=y.mh(a),a!==void 0&&E instanceof cr&&(a=this.Vb(a),F0(this,a,E))}},gd.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof cr){var x=y.wa(a.data),b=this.Kc(a.data);if(b!==null){b.isSelected=!1,b.isHighlighted=!1;var E=b.layer;if(E!==null){var z=E.pc(-1,b,!1);0<=z&&this.diagram.cb(Ql,"parts",E,b,null,z,null),z=b.layerChanged,z!==null&&z(b,E,null)}}for(b=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)E=a.value,E=(b?E.toNode:E.fromNode).data,y.lb(E)&&fA(y,x,E)}},gd.prototype.insertLink=function(a,y,x){y=this.diagram.model;var b=a,E=x;return this.diagram.isTreePathToChildren||(b=x,E=a),b!==null&&E!==null?(y.qe(E.data,y.wa(b.data)),E.kh()):null},gd.prototype.findLinkForKey=gd.prototype.findLinkForKey,gd.className="TreePartManager";function jr(a,y){this.kl=new Pi,this.il=new Pi,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,Xo(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new gr,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new gr,this.Lt=new Bi,this.Wg=!1,this.o=null,this.undoManager=new Bt,a!==void 0&&(Si(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}jr.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},jr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},jr.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},jr.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Er(E)}}return y},jr.prototype.xA=function(a){a.change!==sh&&mn("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Jl?(E1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},jr.prototype.Qv=function(a,y){var x=this,b=!1,E=new Pi,z=new Pi,nt=new Pi,ot=this.vh;a.changes.each(function(gt){gt.model===x&&(gt.modelChange==="nodeDataArray"?gt.change===fl?E.add(gt.newValue):gt.change===Ql&&nt.add(gt.oldValue):x.lb(gt.object)?z.add(gt.object):gt.change!==Ma||x.modelData!==gt.object&&gt.propertyName!=="modelData"?gt.object!==null&&(ot&&ot.contains(gt.object)?ot.get(gt.object).each(function(Nt){x.lb(Nt)&&z.add(Nt)}):gt.object instanceof jr||x.ri()&&x.Jc(gt.object)||F1(x,gt.object).each(function(Nt){z.add(Nt)})):b=!0)});var at=this.il;at.clear(),E.each(function(gt){at.add(x.wa(gt)),y||z.add(gt)});var ut=this.kl;ut.clear(),nt.each(function(gt){ut.add(x.wa(gt)),y&&z.add(gt)}),a=x.cloneDeep(z.Fa());var ct=null;return b&&(ct===null&&(ct={}),ct.modelData=this.cloneDeep(this.modelData)),0<at.count&&(ct===null&&(ct={}),y?ct.removedNodeKeys=at.Fa():ct.insertedNodeKeys=at.Fa()),0<a.length&&(ct===null&&(ct={}),ct.modifiedNodeData=a),0<ut.count&&(ct===null&&(ct={}),y?ct.insertedNodeKeys=ut.Fa():ct.removedNodeKeys=ut.Fa()),ut.clear(),at.clear(),ct},jr.prototype.cloneDeep=function(a){return _p(this,a,!0)};function _p(a,y,x,b,E,z){function nt(gt,Nt){ot?(gt.__gohashid===void 0&&z.push(gt),b.set(gt,Nt)):(gt=ba++,b.set(gt,Nt),E.set(gt,y))}if(!On(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new gr),ot){var at=b.get(y);if(at)return at}else for(E||(E=new gr),at=E.iterator;at.next();){var ut=at.key;if(at.value===y&&(ut=b.get(ut)))return ut}if(Array.isArray(y)){at=[],nt(y,at);for(var ct=0;ct<y.length;ct++)at.push(_p(a,y[ct],!1,b,E,z))}else if(y instanceof Ue||y instanceof Gi||y instanceof ui||y instanceof Gr||y instanceof fr)at=y.copy(),nt(y,at);else{if(y instanceof js||y instanceof $i||y instanceof jn)return y;if(y instanceof Bi)at=new Bi().addAll(_p(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Pi)at=new Pi().addAll(_p(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof gr)at=new gr().addAll(_p(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Date)at=new Date(y.getTime()),nt(y,at);else if(y instanceof RegExp)at=new RegExp(y),nt(y,at),at.lastIndex=y.lastIndex;else if(typeof y.copy=="function")at=y.copy(),nt(y,at);else for(ct in at={},nt(y,at),y)ct!=="__gohashid"&&(at[ct]=_p(a,y[ct],!1,b,E,z))}return x&&z.forEach(function(gt){delete gt.__gohashid}),at}Yt=jr.prototype,Yt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Yt.rm=function(){var a="";return this.name!==""&&(a+=`,
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},Yt.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function b1(a,y){y=y.modelData,On(y)&&(a.dm(y),a.modelData=y)}Yt.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!L1(x,a[x])){y=!0;break}return a="",y&&(a=`,
"modelData": `+Zv(this,this.modelData)),a+`,
"nodeDataArray": `+rg(this,this.nodeDataArray,!0)},Yt.kv=function(a){b1(this,a),a=a.nodeDataArray,Si(a)&&(this.dm(a),this.nodeDataArray=a)};function E1(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var nt=b.get(E);nt===null?(nt=new Pi,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new gr,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Ma?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===fl||z===Ql)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function F1(a,y){for(var x=new Pi,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];L0(a,y,E,E,x)}return x}function L0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var nt=x[z];if(nt===y)return E.add(b),!0;if(L0(a,y,nt,b,E))return!0}else if(On(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(L0(a,y,nt,b,E))return!0}return!1}Yt.Pv=function(a,y){var x=this,b=!1,E=new Pi,z=new Pi,nt=new Pi,ot=this.vh;a.changes.each(function(ct){ct.model===x&&(ct.modelChange==="nodeDataArray"?ct.change===fl?E.add(ct.newValue):ct.change===Ql&&nt.add(ct.oldValue):x.lb(ct.object)?z.add(ct.object):ct.change!==Ma||x.modelData!==ct.object&&ct.propertyName!=="modelData"?ct.object!==null&&(ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(gt){x.lb(gt)&&z.add(gt)}):ct.object instanceof jr||x.ri()&&x.Jc(ct.object)||F1(x,ct.object).each(function(gt){z.add(gt)})):b=!0)});var at=this.il;at.clear(),E.each(function(ct){at.add(x.wa(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(x.wa(ct)),y&&z.add(ct)}),a="",b&&(a+=`,
"modelData": `+Zv(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+rg(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+rg(this,z.Fa(),!0)),0<ut.count&&(a+=(y?this.Wv:this.Yv)+rg(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},Yt.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&mn("applyIncrementalJson cannot change Model properties"),b1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new gr;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],nt=this.wa(z);nt!=null&&b.set(nt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){nt=y[z];var ot=this.hc(nt);ot===null&&(ot=(ot=b.get(nt))?ot:this.copyNodeData({}),this.km(ot,nt),this.xf(ot))}if(Array.isArray(x)){for(y=x.length,b=0;b<y;b++)if(E=x[b],z=this.wa(E),z=this.hc(z),z!==null){for(var at in E)at==="__gohashid"||at===this.nodeKeyProperty||this.Wj()&&at===this.nodeIsGroupProperty||this.setDataProperty(z,at,E[at]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,at=0;at<x;at++)y=this.hc(a[at]),y!==null&&this.cm(y)},Yt.$x=function(a,y){a.change!==sh&&mn("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Jl?(y===void 0&&(y=Nm(this,this)),E1(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Yt.yA=function(a,y){return this.$x(a,y)},Yt.np=function(a){return a===void 0&&(a=Nm(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Yt.toJSON=function(a){return this.np(a)},Yt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ne.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:mn("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&mn("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Yt.Ky=function(a){return this.Zw(a)},jr.constructGraphLinksModel=function(){return new jr},Yt=jr.prototype,Yt.dm=function(a){if(Si(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(On(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:mn("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(On(a)){for(y in a)if(x=a[y],On(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(E=x.length%2===0,b=0;b<x.length;b++)if(typeof x[b]!="number"){E=!1;break}if(E){for(E=new Bi,b=0;b<x.length/2;b++)E.add(new Ue(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Uw(a)}return a},Yt.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Si(a)?rg(this,a):On(a)?Zv(this,a):typeof a=="function"?"null":a.toString()};function rg(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new so;E.add("["),x&&1<b&&E.add(`
`);for(var z=0;z<b;z++){var nt=y[z];nt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
`)),E.add(a.sm(nt)))}return x&&1<b&&E.add(`
`),E.add("]"),E.toString()}function L1(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function $h(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Zv(a,y){var x=y;if(x instanceof Ue)y={class:"go.Point",x:$h(x.x),y:$h(x.y)};else if(x instanceof Gi)y={class:"go.Size",width:$h(x.width),height:$h(x.height)};else if(x instanceof ui)y={class:"go.Rect",x:$h(x.x),y:$h(x.y),width:$h(x.width),height:$h(x.height)};else if(x instanceof Gr)y={class:"go.Margin",top:$h(x.top),right:$h(x.right),bottom:$h(x.bottom),left:$h(x.left)};else if(x instanceof fr)x.sb()?y={class:"go.Spot",x:$h(x.x),y:$h(x.y),offsetX:$h(x.offsetX),offsetY:$h(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof js){if(y={class:"go.Brush",type:x.type.name},x.type===Qt?y.color=x.color:(x.type===de||x.type===Me)&&(y.start=x.start,y.end=x.end,x.type===Me&&(x.startRadius!==0&&(y.startRadius=$h(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=$h(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof $i?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=$h(x.startX)),x.startY!==0&&(y.startY=$h(x.startY)),x.endX!==0&&(y.endX=$h(x.endX)),x.endY!==0&&(y.endY=$h(x.endY)),x.spot1.D(ol)||(y.spot1=x.spot1),x.spot2.D(Yl)||(y.spot2=x.spot2),x.type===$i.o&&(y.path=$i.ia(x))):x instanceof jn&&(y={class:"go.EnumValue",classType:Nm(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Xl(y,E);if(!L1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Bi){var nt="[";for(z=z.iterator;z.next();){var ot=z.value;1<nt.length&&(nt+=","),nt+=a.sm(ot.x),nt+=",",nt+=a.sm(ot.y)}nt+="]",b+=nt}else b+=a.sm(z)}return b+"}"}function Yh(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Uw(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Ue(Yh(a.x),Yh(a.y));else if(y==="Size")x=new Gi(Yh(a.width),Yh(a.height));else if(y==="Rect")x=new ui(Yh(a.x),Yh(a.y),Yh(a.width),Yh(a.height));else if(y==="Margin")x=new Gr(Yh(a.top),Yh(a.right),Yh(a.bottom),Yh(a.left));else if(y==="Spot")typeof a.enum=="string"?x=zd(a.enum):x=new fr(Yh(a.x),Yh(a.y),Yh(a.offsetX),Yh(a.offsetY));else if(y==="Brush"){if(x=new js,x.type=Tr(js,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof fr&&(x.start=a.start),a.end instanceof fr&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Yh(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Yh(a.endRadius)),a=a.colorStops,On(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=$i.parse(a.path):x=new $i,x.type=Tr($i,a.type),typeof a.startX=="number"&&(x.startX=Yh(a.startX)),typeof a.startY=="number"&&(x.startY=Yh(a.startY)),typeof a.endX=="number"&&(x.endX=Yh(a.endX)),typeof a.endY=="number"&&(x.endY=Yh(a.endY)),a.spot1 instanceof fr&&(x.spot1=a.spot1),a.spot2 instanceof fr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=$v(b),typeof b=="function"&&(x=Tr(b,a.name)));return x}Yt.Pe=function(a){return this.Lt.add(a),this},Yt.ik=function(a){this.Lt.remove(a)},Yt.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,b=0;b<x;b++)y.M(b)(a)},Yt.cb=function(a,y,x,b,E,z,nt){Au(this,"",a,y,x,b,E,z,nt)},Yt.g=function(a,y,x,b,E){Au(this,"",Ma,a,this,y,x,b,E)},Yt.Fs=function(a,y,x,b,E,z){Au(this,"",Ma,y,a,x,b,E,z)};function Au(a,y,x,b,E,z,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ut=new La;ut.model=a,ut.change=x,ut.modelChange=y,ut.propertyName=b,ut.object=E,ut.oldValue=z,ut.oldParam=ot,ut.newValue=nt,ut.newParam=at,a.ds(ut)}jr.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Ma){var x=a.object,b=a.propertyName,E=a.I(y);b===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),E!==void 0&&this.kb.add(E,x)),Qa(x,b,E)}else a.change===fl?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,On(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&Kr(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&rr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Si(b)&&a.propertyName&&(b=Xl(a.object,a.propertyName)),Si(b)&&typeof x=="number"&&(a=a.newValue,y?Kr(b,x):rr(b,x,a))):mn("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ql?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,On(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&rr(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&Kr(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Si(b)&&a.propertyName&&(b=Xl(a.object,a.propertyName)),Si(b)&&typeof x=="number"&&(a=a.oldValue,y?rr(b,x,a):Kr(b,x))):mn("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==sh&&mn("unknown ChangedEvent: "+a.toString())},jr.prototype.Ea=function(a){return this.undoManager.Ea(a)},jr.prototype.eb=function(a){return this.undoManager.eb(a)},jr.prototype.Kf=function(){return this.undoManager.Kf()},jr.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var b=!1;try{a(this),b=!0}finally{b?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Yt=jr.prototype,Yt.La=function(a,y){y===void 0&&(y=""),Au(this,"SourceChanged",sh,y,a,null,null)},Yt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Xl(a,y),y!==void 0)){if(og(y))return y;mn("Key value for node data "+a+" is not a number or a string: "+y)}}},Yt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Xl(a,x);b!==y&&this.hc(y)===null&&(Qa(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Au(this,"nodeKey",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Qa(a,x,y)}};function og(a){return typeof a=="number"||typeof a=="string"}Yt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Yt.hc=function(a){return a===null&&mn("Model.findNodeDataForKey:key must not be null"),a!==void 0&&og(a)?this.kb.I(a):null},Yt.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var b=this.bl;if(b!==null&&(x=b(this,a),x!=null&&!this.kb.contains(x))){Qa(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Qa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Qa(a,y,x)}}}}},Yt.xf=function(a){a!==null&&(ha(a),this.lb(a)||M1(this,a,!0))};function M1(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&mn("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,rr(a.Tc,b,y)),Au(a,"nodeDataArray",fl,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Yt.Fy=function(a){if(Si(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},Yt.cm=function(a){a!==null&&N1(this,a,!0)};function N1(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;Kr(a.Tc,b)}Au(a,"nodeDataArray",Ql,"nodeDataArray",a,y,null,b,null),a.qp(y)}Yt.nA=function(a){if(Si(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},Yt.$z=function(a){if(a!==this.nodeDataArray&&Si(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.wa(z);if(nt!==void 0){x.add(nt);var ot=this.hc(nt);ot!==z&&(ot!==null?(this.Do(ot,z),this.lm(z,ot)):(z=this.cloneDeep(z),this.km(z,nt),this.xf(z)))}else nt=this.cloneDeep(z),this.xf(nt),x.add(this.wa(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Yt.jp=function(a,y){y!==void 0&&(a=Mm(this,a),a instanceof Pi&&this.Vf.add(y,a))},Yt.Lv=function(){},Yt.fm=function(){},Yt.em=function(){},Yt.qp=function(){};function fA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Pi,a.Vf.add(y,b)),b.add(x)}}function gA(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Pi&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Mm(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Pi?a:null)}Yt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},jr.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):M0(this,a,!0),On(a)&&Xo(a),a};function M0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=M0(a,y[x],a.copiesArrayObjects);b.push(E)}return Xo(b),b}if(x&&On(y)){x=(x=y.constructor)?new x:{},E=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(b in y)if(b==="__gohashid")x.__gohashid=void 0;else if(b===E)x[E]=void 0;else{var z=Xl(y,b),nt=Nm(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof jr||z instanceof Bt||z instanceof Jl||z instanceof La||(z=M0(a,z,!1)),Qa(x,b,z)}return Xo(x),x}return y instanceof Ue||y instanceof Gi||y instanceof ui||y instanceof fr||y instanceof Gr?y.copy():y}jr.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!I1&&a instanceof pn&&(I1=!0,er('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),er(" Is that really your intent?"));var b=Xl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Yt=jr.prototype,Yt.set=function(a,y,x){this.setDataProperty(a,y,x)},Yt.Do=function(a,y){if(y){var x=this.lb(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||this.setDataProperty(a,b,y[b])}},Yt.Ay=function(a,y){this.ts(a,-1,y)},Yt.ts=function(a,y,x){0>y&&(y=a.length),rr(a,y,x),Au(this,"",fl,"",a,null,x,null,y)},Yt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&mn("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Kr(a,y),Au(this,"",Ql,"",a,x,null,y,null)},Yt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Xl(a,y),y===void 0))return"";if(typeof y=="string")return y;mn("getCategoryForNodeData found a non-string category for "+a+": "+y)},Yt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Xl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),Au(this,"nodeCategory",Ma,x,a,b,y))}else Qa(a,x,y)}},Yt.lm=function(a,y){this.jm(y,this.Ro(a))},Yt.Tl=function(){return!1},Yt.Wj=function(){return!1},Yt.ri=function(){return!1},Yt.xs=function(){return!1},Yt.Xj=function(){return!1};function Xv(){return new jr}function Nm(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return Nm(a,y.constructor);return typeof y}function $v(a){return tA[a]?tA[a]:Ne.go!==void 0&&Ne.go[a]?Ne.go[a]:null}function Xl(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Qa(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(b){}}rn.Object.defineProperties(jr.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&mn("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&mn("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,b=0;b<x;b++){var E=a[b];On(E)||mn("Model.nodeDataArray must only contain Objects, not: "+E),ha(E)}for(this.Tc=a,b=new Bi,E=0;E<x;E++){var z=a[E],nt=this.wa(z);nt===void 0||this.kb.I(nt)!==null?b.add(z):this.kb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Au(this,"nodeDataArray",Ma,"nodeDataArray",this,y,a),y=0;y<x;y++)b=a[y],this.fm(b),this.em(b);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),jr.prototype.setCategoryForNodeData=jr.prototype.jm,jr.prototype.getCategoryForNodeData=jr.prototype.Ro,jr.prototype.removeArrayItem=jr.prototype.ov,jr.prototype.insertArrayItem=jr.prototype.ts,jr.prototype.addArrayItem=jr.prototype.Ay,jr.prototype.assignAllDataProperties=jr.prototype.Do,jr.prototype.set=jr.prototype.set,jr.prototype.clearUnresolvedReferences=jr.prototype.Qy,jr.prototype.mergeNodeDataArray=jr.prototype.$z,jr.prototype.removeNodeDataCollection=jr.prototype.nA,jr.prototype.removeNodeData=jr.prototype.cm,jr.prototype.addNodeDataCollection=jr.prototype.Fy,jr.prototype.addNodeData=jr.prototype.xf,jr.prototype.makeNodeDataKeyUnique=jr.prototype.$u,jr.prototype.findNodeDataForKey=jr.prototype.hc,jr.prototype.containsNodeData=jr.prototype.lb,jr.prototype.setKeyForNodeData=jr.prototype.km,jr.prototype.getKeyForNodeData=jr.prototype.wa,jr.prototype.updateTargetBindings=jr.prototype.La,jr.prototype.commit=jr.prototype.commit,jr.prototype.rollbackTransaction=jr.prototype.Kf,jr.prototype.commitTransaction=jr.prototype.eb,jr.prototype.startTransaction=jr.prototype.Ea,jr.prototype.raiseDataChanged=jr.prototype.Fs,jr.prototype.raiseChanged=jr.prototype.g,jr.prototype.raiseChangedEvent=jr.prototype.cb,jr.prototype.removeChangedListener=jr.prototype.ik,jr.prototype.addChangedListener=jr.prototype.Pe,jr.prototype.writeJsonValue=jr.prototype.sm,jr.prototype.replaceJsonObjects=jr.prototype.dm,jr.prototype.applyIncrementalJSON=jr.prototype.Ky,jr.prototype.applyIncrementalJson=jr.prototype.Zw,jr.prototype.toJSON=jr.prototype.toJSON,jr.prototype.toJson=jr.prototype.np,jr.prototype.toIncrementalJSON=jr.prototype.yA,jr.prototype.toIncrementalJson=jr.prototype.$x,jr.prototype.toIncrementalData=jr.prototype.xA,jr.prototype.clear=jr.prototype.clear;var I1=!1,tA={};jr.className="Model",jr.fromJSON=jr.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Ne.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:mn("Unable to construct a Model from: "+a);if(y===null){a=null;var b=x.class;if(typeof b=="string")try{var E=null;b.indexOf("go.")===0?(b=b.substr(3),E=$v(b)):(E=$v(b),E===null&&(E=Ne[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof jr?y=a:mn("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=jr.constructGraphLinksModel()),y.gp(x),y.kv(x),y},jr.safePropertyValue=Xl,jr.safePropertySet=Qa,tA.Brush=js,tA.ChangedEvent=La,tA.Geometry=$i,tA.Margin=Gr,tA.Panel=fi,tA.Point=Ue,tA.Rect=ui,tA.Size=Gi,tA.Spot=fr,tA.Transaction=Jl,tA.UndoManager=Bt;function ql(a,y,x,b){Xo(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,b===void 0?(this.el=T1,this.wk=null):(this.el=Im,this.wk=b),this.st=new Pi}ql.prototype.copy=function(){var a=new ql;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Yt=ql.prototype,Yt.qb=function(a){a.classType===ql&&(this.mode=a)},Yt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Yt.freeze=function(){return this._isFrozen=!0,this},Yt.ka=function(){return this._isFrozen=!1,this},Yt.Kx=function(a){return a===void 0&&(a=null),this.mode=Im,this.backConverter=a,this},Yt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Yt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function k1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Yt.Mv=function(a,y,x){var b=this.sl;if(x===void 0||b===""||b===x){x=this.xl;var E=this.Im;if(E===null&&x==="")er("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Xl(y,b)),z!==void 0)if(E===null)x!==""&&Qa(a,x,z);else try{if(x!==""){var nt=E(z,a);Qa(a,x,nt)}else E(z,a)}catch(ot){}}}},Yt.sp=function(a,y,x,b){if(this.el===Im){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=Xl(a,E)),nt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ot=b!==null?b.diagram:null,at=ot!==null?ot.model:null;if(z===null){if(x!=="")at!==null?at.setDataProperty(y,x,nt):Qa(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ut=b.itemIndex,ct=b.panel.itemArray;at.ov(ct,ut),at.ts(ct,ut,nt)}}else try{if(x!==""){var gt=z(nt,y,at);at!==null?at.setDataProperty(y,x,gt):Qa(y,x,gt)}else{var Nt=z(nt,y,at);if(Nt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var zt=b.itemIndex,Xt=b.panel.itemArray;at.ov(Xt,zt),at.ts(Xt,zt,Nt)}}}catch(ue){}}finally{this.st.remove(a)}}}},rn.Object.defineProperties(ql.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Ai(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Ai(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Ai(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Ai(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Ai(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Ai(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Ai(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Ai(this),this.el=a}}}),ql.prototype.updateSource=ql.prototype.sp,ql.prototype.updateTarget=ql.prototype.Mv,ql.prototype.ofModel=ql.prototype.dA,ql.prototype.ofObject=ql.prototype.cp,ql.prototype.makeTwoWay=ql.prototype.Kx;var Rw="Binding",T1=new jn(ql,"OneWay",1),Im=new jn(ql,"TwoWay",2);ql.className="Binding",ql.parseEnum=function(a,y){return function(x){return x=Tr(a,x),x===null?y:x}},ql.toString=Er,ql.OneWay=T1,ql.TwoWay=Im;function ws(a,y,x){jr.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Pi,this.wb=new gr,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Si(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}kn(ws,jr),ws.constructGraphLinksModel=jr.constructGraphLinksModel,ws.prototype.cloneProtected=function(a){jr.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Yt=ws.prototype,Yt.clear=function(){jr.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Yt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;var x=a.length,b;for(b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Er(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Jc(this,E,!0)+"-->"+Jc(this,E,!1)}return y},Yt.Qv=function(a,y){this.linkKeyProperty===""&&mn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=jr.prototype.Qv.call(this,a,y),b=this,E=new Pi,z=new Pi,nt=new Pi,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===fl?E.add(ct.newValue):ct.change===Ql&&nt.add(ct.oldValue):b.Jc(ct.object)?z.add(ct.object):ct.object!==null&&(ct.object!==null&&ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(gt){b.Jc(gt)&&z.add(gt)}):ct.object instanceof jr||b.lb(ct.object)||O1(b,ct.object).each(function(gt){z.add(gt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(b.Ac(ct)),y&&z.add(ct)}),a=b.cloneDeep(z.Fa()),0<at.count&&(x===null&&(x={}),y?x.removedLinkKeys=at.Fa():x.insertedLinkKeys=at.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ut.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ut.Fa():x.removedLinkKeys=ut.Fa()),ut.clear(),at.clear(),x},Yt.rm=function(){var a=jr.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Yt.gp=function(a){jr.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Yt.Rv=function(){var a=jr.prototype.Rv.call(this),y=`,
"linkDataArray": `+rg(this,this.linkDataArray,!0);return a+y},Yt.kv=function(a){jr.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function O1(a,y){for(var x=new Pi,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];L0(a,y,E,E,x)}return x}Yt.Pv=function(a,y){this.linkKeyProperty===""&&mn("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=jr.prototype.Pv.call(this,a,y),b=this,E=new Pi,z=new Pi,nt=new Pi,ot=this.vh;a.changes.each(function(ct){ct.model===b&&(ct.modelChange==="linkDataArray"?ct.change===fl?E.add(ct.newValue):ct.change===Ql&&nt.add(ct.oldValue):b.Jc(ct.object)?z.add(ct.object):ct.object!==null&&(ct.object!==null&&ot&&ot.contains(ct.object)?ot.get(ct.object).each(function(gt){b.Jc(gt)&&z.add(gt)}):ct.object instanceof jr||b.lb(ct.object)||O1(b,ct.object).each(function(gt){z.add(gt)})))});var at=this.il;at.clear(),E.each(function(ct){at.add(b.Ac(ct)),y||z.add(ct)});var ut=this.kl;return ut.clear(),nt.each(function(ct){ut.add(b.Ac(ct)),y&&z.add(ct)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+rg(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+rg(this,z.Fa(),!0)),0<ut.count&&(a+=(y?this.Vv:this.Xv)+rg(this,ut.Fa(),!0)),ut.clear(),at.clear(),a},Yt.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&mn("applyIncrementalJson cannot change Model properties"),jr.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var nt in E)nt!=="__gohashid"&&nt!==this.linkKeyProperty&&this.setDataProperty(z,nt,E[nt]);U1(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(nt=a.length,y=0;y<nt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},ws.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Ma){var x=a.object,b=a.propertyName;if(b===this.linkKeyProperty&&this.Jc(x)){var E=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),E!==void 0&&this.wb.add(E,x),Qa(x,b,E);return}}else if(a.change===fl){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,On(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Ql){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,On(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue):(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)));return}}jr.prototype.changeState.call(this,a,y)}},Yt=ws.prototype,Yt.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),Qa(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Yt.yx=function(a){return Jc(this,a,!0)},Yt.wv=function(a,y){Qp(this,a,y,!0)},Yt.Bx=function(a){return Jc(this,a,!1)},Yt.Bv=function(a,y){Qp(this,a,y,!1)};function Jc(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Xl(y,a),a!==void 0))){if(og(a))return a;mn((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Qp(a,y,x,b){if(x===null&&(x=void 0),y!==null){var E=b?a.lf:a.mf;if(E!=="")if(x=a.Vl(x),a.Jc(y)){var z=Xl(y,E);z!==x&&(gA(a,z,y),Qa(y,E,x),a.hc(x)===null&&fA(a,x,y),Au(a,b?"linkFromKey":"linkToKey",Ma,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Qa(y,E,x)}}Yt.zx=function(a){return N0(this,a,!0)},Yt.xv=function(a,y){zp(this,a,y,!0)},Yt.Cx=function(a){return N0(this,a,!1)},Yt.Cv=function(a,y){zp(this,a,y,!1)};function N0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Xl(y,a),y===void 0?"":y)}function zp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=Xl(y,E);z===void 0&&(z=""),z!==x&&(Qa(y,E,x),Au(a,b?"linkFromPortId":"linkToPortId",Ma,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Qa(y,E,x)}}Yt.Ef=function(a){if(a===null)return I0;var y=this.je;return y===""?I0:(a=Xl(a,y),a===void 0?I0:a)},Yt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Xl(a,x);if(b===void 0&&(b=I0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)gA(this,b[z],a);for(Qa(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&fA(this,nt,a)}Au(this,"linkLabelKeys",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Qa(a,x,y)}},Yt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Xl(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&fA(this,y,a),Au(this,"linkLabelKeys",fl,x,a,null,y,null,E)))}else mn(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Yt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Xl(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(gA(this,y,a),Au(this,"linkLabelKeys",Ql,x,a,y,null,E,null)))}else b!==void 0&&mn(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Yt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Xl(a,y),y!==void 0)){if(og(y))return y;mn("Key value for link data "+a+" is not a number or a string: "+y)}}},Yt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Xl(a,x);b!==y&&this.jh(y)===null&&(Qa(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Au(this,"linkKey",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Yt.jh=function(a){return a===null&&mn("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&og(a)?this.wb.I(a):null},Yt.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var b=this.cl;if(b!==null&&(x=b(this,a),x!=null&&!this.wb.contains(x))){Qa(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Qa(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Qa(a,y,x)}}}}},Yt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Yt.fi=function(a){a!==null&&(ha(a),this.Jc(a)||D1(this,a,!0))};function D1(a,y,x){if(a.linkKeyProperty!==""){var b=a.Ac(y);if(b!==void 0&&a.wb.I(b)===y)return;a.Bs(y),b=a.Ac(y),b===void 0&&mn("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(b,y)}a.$f.add(y),b=null,x&&(b=a.md.length,a.md.splice(b,0,y)),Au(a,"linkDataArray",fl,"linkDataArray",a,null,y,null,b),Yv(a,y)}Yt.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},Yt.bm=function(a){a!==null&&j1(this,a,!0)};function j1(a,y,x){a.$f.remove(y);var b=a.Ac(y);if(b!==void 0&&a.wb.remove(b),b=null,x){if(b=a.md.indexOf(y),0>b)return;a.md.splice(b,1)}if(Au(a,"linkDataArray",Ql,"linkDataArray",a,y,null,b,null),x=Jc(a,y,!0),gA(a,x,y),x=Jc(a,y,!1),gA(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],gA(a,x,y)}Yt.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},Yt.Zz=function(a){if(this.linkKeyProperty===""&&mn("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Si(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],nt=this.Ac(z);if(nt!==void 0){x.add(nt);var ot=this.jh(nt);ot!==z&&(ot!==null?(this.Do(ot,z),U1(this,z,ot)):(z=this.cloneDeep(z),this.Ks(z,nt),this.fi(z)))}else nt=this.cloneDeep(z),this.fi(nt),x.add(this.Ac(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function Yv(a,y){var x=Jc(a,y,!0);x=a.Vl(x),a.hc(x)===null&&fA(a,x,y),x=Jc(a,y,!1),x=a.Vl(x),a.hc(x)===null&&fA(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&fA(a,x,y)}Yt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):M0(this,a,!0),On(a)&&(Xo(a),this.lf!==""&&Qa(a,this.lf,void 0),this.mf!==""&&Qa(a,this.mf,void 0),this.je!==""&&Qa(a,this.je,[])),a},Yt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Xl(a,y)},Yt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Xl(a,y),y!==void 0)){if(og(y))return y;mn("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Yt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Xl(a,x);b!==y&&(gA(this,b,a),Qa(a,x,y),this.hc(y)===null&&fA(this,y,a),Au(this,"nodeGroupKey",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},ws.prototype.copyNodeData=function(a){return a===null?null:(a=jr.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Xl(a,this.Je)===void 0||Qa(a,this.Je,void 0),a)},ws.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Qp(this,a,x,!0);return}if(y===this.linkToKeyProperty){Qp(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){zp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){zp(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var b=Xl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Yt=ws.prototype,Yt.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&Xl(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Yt.jp=function(a,y){jr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var b=x.value,E=a,z=y;if(Jc(this,b,!0)===E){var nt=this.lf;Qa(b,nt,z),Au(this,"linkFromKey",Ma,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(Jc(this,b,!1)===E&&(nt=this.mf,Qa(b,nt,z),Au(this,"linkToKey",Ma,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)),nt=this.Ef(b),Array.isArray(nt))for(var ot=nt.length,at=this.je,ut=0;ut<ot;ut++)nt[ut]===E&&(nt[ut]=z,Au(this,"linkLabelKeys",fl,at,b,E,z,ut,ut))}},Yt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Qa(a,b,x),Au(this,"nodeGroupKey",Ma,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Yt.Lv=function(){jr.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Yv(this,a[x])},Yt.fm=function(a){jr.prototype.fm.call(this,a),a=this.wa(a);var y=Mm(this,a);if(y!==null){var x=sr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Au(this,"nodeGroupKey",Ma,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Jc(this,b,!0)===a&&(E=this.lf,Au(this,"linkFromKey",Ma,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Jc(this,b,!1)===a&&(E=this.mf,Au(this,"linkToKey",Ma,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,nt=this.je,ot=0;ot<z;ot++)E[ot]===a&&(Au(this,"linkLabelKeys",fl,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)gA(this,a,x[y]);Br(x)}},Yt.em=function(a){jr.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&fA(this,y,a)},Yt.qp=function(a){jr.prototype.qp.call(this,a);var y=this.lh(a);gA(this,y,a)},Yt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Xl(a,y),y===void 0))return"";if(typeof y=="string")return y;mn("getCategoryForLinkData found a non-string category for "+a+": "+y)},ws.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ws.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Xl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),Au(this,"linkCategory",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},ws.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Yt=ws.prototype,Yt.lm=function(a,y){jr.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function U1(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Yt.Wj=function(){return!0},Yt.ri=function(){return!0},Yt.xs=function(){return!0},Yt.Xj=function(){return!0},rn.Object.defineProperties(ws.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,b=0;b<x;b++){var E=a[b];On(E)||mn("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),ha(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Bi,E=0;E<x;E++){var z=a[E],nt=this.Ac(z);nt===void 0||this.wb.I(nt)!==null?b.add(z):this.wb.add(nt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new Pi,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Au(this,"linkDataArray",Ma,"linkDataArray",this,y,a),y=0;y<x;y++)Yv(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],z=this.Ac(E);z===void 0&&(this.Bs(E),z=this.Ac(E)),z!==void 0&&this.wb.add(z,E)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),ws.prototype.setCategoryForLinkData=ws.prototype.lp,ws.prototype.getCategoryForLinkData=ws.prototype.ps,ws.prototype.assignAllDataProperties=ws.prototype.Do,ws.prototype.setGroupKeyForNodeData=ws.prototype.mp,ws.prototype.getGroupKeyForNodeData=ws.prototype.lh,ws.prototype.isGroupForNodeData=ws.prototype.Yu,ws.prototype.copyLinkData=ws.prototype.Jo,ws.prototype.mergeLinkDataArray=ws.prototype.Zz,ws.prototype.removeLinkDataCollection=ws.prototype.lA,ws.prototype.removeLinkData=ws.prototype.bm,ws.prototype.addLinkDataCollection=ws.prototype.Ey,ws.prototype.addLinkData=ws.prototype.fi,ws.prototype.containsLinkData=ws.prototype.Jc,ws.prototype.makeLinkDataKeyUnique=ws.prototype.Bs,ws.prototype.findLinkDataForKey=ws.prototype.jh,ws.prototype.setKeyForLinkData=ws.prototype.Ks,ws.prototype.getKeyForLinkData=ws.prototype.Ac,ws.prototype.removeLabelKeyForLinkData=ws.prototype.Qx,ws.prototype.addLabelKeyForLinkData=ws.prototype.Bu,ws.prototype.setLabelKeysForLinkData=ws.prototype.Ls,ws.prototype.getLabelKeysForLinkData=ws.prototype.Ef,ws.prototype.setToPortIdForLinkData=ws.prototype.Cv,ws.prototype.getToPortIdForLinkData=ws.prototype.Cx,ws.prototype.setFromPortIdForLinkData=ws.prototype.xv,ws.prototype.getFromPortIdForLinkData=ws.prototype.zx,ws.prototype.setToKeyForLinkData=ws.prototype.Bv,ws.prototype.getToKeyForLinkData=ws.prototype.Bx,ws.prototype.setFromKeyForLinkData=ws.prototype.wv,ws.prototype.getFromKeyForLinkData=ws.prototype.yx,ws.prototype.clear=ws.prototype.clear;var I0=Object.freeze([]);ws.className="GraphLinksModel",tA.GraphLinksModel=ws,jr.constructGraphLinksModel=jr.constructGraphLinksModel=function(){return new ws},jr.initDiagramModel=Xv=function(){return new ws};function Jh(a,y){jr.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Si(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}kn(Jh,jr),Jh.constructGraphLinksModel=jr.constructGraphLinksModel,Jh.prototype.cloneProtected=function(a){jr.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Yt=Jh.prototype,Yt.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
node data:`,a=this.nodeDataArray;for(var x=a.length,b=0;b<x;b++){var E=a[b];y+=" "+this.wa(E)+":"+Er(E)}}return y},Yt.rm=function(){var a=jr.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Yt.gp=function(a){jr.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Yt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&mn("applyIncrementalJson cannot change Model properties"),jr.prototype.fp.call(this,a)},Yt.Vl=function(a){return a},Yt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Xl(a,y),y!==void 0)){if(og(y))return y;mn("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Yt.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=Xl(a,x);b!==y&&(gA(this,b,a),Qa(a,x,y),this.hc(y)===null&&fA(this,y,a),Au(this,"nodeParentKey",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Yt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Xl(a,y),y===void 0)?"":typeof y=="string"?y:(mn("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Jh.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Jh.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Xl(a,x);b===void 0&&(b=""),b!==y&&(Qa(a,x,y),Au(this,"parentLinkCategory",Ma,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qa(a,x,y)}},Jh.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Jh.prototype.copyNodeData=function(a){return a===null?null:(a=jr.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Xl(a,this.Ke)===void 0||Qa(a,this.Ke,void 0),a)},Jh.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=Xl(a,y);b!==x&&(Qa(a,y,x),this.Fs(a,y,b,x))},Yt=Jh.prototype,Yt.jp=function(a,y){jr.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Yt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Qa(a,b,x),Au(this,"nodeParentKey",Ma,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Yt.fm=function(a){jr.prototype.fm.call(this,a),a=this.wa(a);var y=Mm(this,a);if(y!==null){var x=sr();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Au(this,"nodeParentKey",Ma,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)gA(this,a,x[y]);Br(x)}},Yt.em=function(a){jr.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&fA(this,y,a)},Yt.qp=function(a){jr.prototype.qp.call(this,a);var y=this.mh(a);gA(this,y,a)},Yt.lm=function(a,y){jr.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Yt.Tl=function(){return!0},Yt.xs=function(){return!0},rn.Object.defineProperties(Jh.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Jh.prototype.setParentLinkCategoryForNodeData=Jh.prototype.Ms,Jh.prototype.getParentLinkCategoryForNodeData=Jh.prototype.ss,Jh.prototype.setParentKeyForNodeData=Jh.prototype.qe,Jh.prototype.getParentKeyForNodeData=Jh.prototype.mh,Jh.className="TreeModel",tA.TreeModel=Jh;function Al(a){Va.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=eA,this.Ti=0,this.Zv=new Ue,this.Jp=this.me=0,this.Xr=new Dm,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=eA,this.K=qh,this.nd=Gp,this.hd=zv,this.tf=6,this.Nn=R0,a&&Object.assign(this,a)}kn(Al,Va),Al.prototype.cloneProtected=function(a){Va.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},Al.prototype.qb=function(a){a.classType===Al?a===j0||a===U0||a===O0||a===D0||a===Gp?this.sorting=a:a===Tg||a===Kp||a===qh||a===ag?this.direction=a:a===Nf||a===sg||a===eA||a===nA?this.arrangement=a:(a===lp||a===R0)&&(this.nodeDiameterFormula=a):Va.prototype.qb.call(this,a)},Al.prototype.createNetwork=function(){return new Wp(this)},Al.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new Bi;y.addAll(a.iterator),a=new Bi;var x=new Bi,b=this.sort(y),E,z,nt=this.Jp,ot=this.arrangement,at=this.nodeDiameterFormula,ut=this.radius;(!isFinite(ut)||0>=ut)&&(ut=NaN);var ct=this.aspectRatio;(!isFinite(ct)||0>=ct)&&(ct=1);var gt=this.startAngle;isFinite(gt)||(gt=0);var Nt=this.sweepAngle;if((!isFinite(Nt)||360<Nt||1>Nt)&&(Nt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===nA&&at===lp?ot=eA:ot===nA&&at!==lp&&(ot=this.arrangement),(this.direction===Tg||this.direction===Kp)&&this.sorting!==Gp){for(at=0;!(at>=b.length)&&(a.add(b.M(at)),!(at+1>=b.length));at+=2)x.add(b.M(at+1));this.direction===Tg?(this.arrangement===nA&&a.reverse(),b=new Bi,b.addAll(a),b.addAll(x)):(this.arrangement===nA&&x.reverse(),b=new Bi,b.addAll(x),b.addAll(a))}at=b.length;for(var zt=z=E=0;zt<b.length;zt++){var Xt=gt+Nt*z*(this.direction===qh?1:-1)/at,ue=b.M(zt).diameter;isNaN(ue)&&(ue=lg(b.M(zt),Xt)),360>Nt&&(zt===0||zt===b.length-1)&&(ue/=2),E+=ue,z++}if(isNaN(ut)||ot===nA){if(isNaN(y)&&(y=6),ot!==eA&&ot!==nA){for(z=-1/0,nt=0;nt<at;nt++)zt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(zt.diameter)&&lg(zt,0),isNaN(E.diameter)&&lg(E,0),z=Math.max(z,(zt.diameter+E.diameter)/2);nt=z+y,ot===Nf?ut=(z+y)/(2*Math.PI/at):ut=k0(this,nt*(360<=Nt?at:at-1),ct,gt*Math.PI/180,Nt*Math.PI/180)}else ut=k0(this,E+(360<=Nt?at:at-1)*(ot!==nA?y:1.6*y),ct,gt*Math.PI/180,Nt*Math.PI/180);z=ut*ct}else if(z=ut*ct,zt=Jv(this,ut,z,gt*Math.PI/180,Nt*Math.PI/180),isNaN(y))(ot===eA||ot===nA)&&(y=(zt-E)/(360<=Nt?at:at-1));else if(ot===eA||ot===nA)zt=(zt-E)/(360<=Nt?at:at-1),zt<y?(ut=k0(this,E+y*(360<=Nt?at:at-1),ct,gt*Math.PI/180,Nt*Math.PI/180),z=ut*ct):y=zt;else{for(nt=-1/0,E=0;E<at;E++)Xt=b.M(E),ue=b.M(E===at-1?0:E+1),isNaN(Xt.diameter)&&lg(Xt,0),isNaN(ue.diameter)&&lg(ue,0),nt=Math.max(nt,(Xt.diameter+ue.diameter)/2);nt+=y,E=k0(this,nt*(360<=Nt?at:at-1),ct,gt*Math.PI/180,Nt*Math.PI/180),E>ut?(ut=E,z=ut*ct):nt=zt/(360<=Nt?at:at-1)}if(this.kw=ot,this.lc=ut,this.Zm=ct,this.lw=gt,this.Wp=Nt,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ut=this.lw,ct=this.Wp,gt=this.Ti,Nt=this.me,at=this.Jp,this.direction!==Tg&&this.direction!==Kp||b!==nA)if(this.direction===Tg||this.direction===Kp){switch(nt=0,b){case sg:nt=180*T0(this,ot,Nt,ut,at)/Math.PI;break;case eA:at=y=0,nt=a.first(),nt!==null&&(y=lg(nt,Math.PI/2)),nt=x.first(),nt!==null&&(at=lg(nt,Math.PI/2)),nt=180*T0(this,ot,Nt,ut,gt+(y+at)/2)/Math.PI;break;case Nf:nt=ct/y.length}if(this.direction===Tg){switch(b){case sg:Om(this,a,ut,ag);break;case eA:Tm(this,a,ut,ag);break;case Nf:km(this,a,ct/2,ut,ag)}switch(b){case sg:Om(this,x,ut+nt,qh);break;case eA:Tm(this,x,ut+nt,qh);break;case Nf:km(this,x,ct/2,ut+nt,qh)}}else{switch(b){case sg:Om(this,x,ut,ag);break;case eA:Tm(this,x,ut,ag);break;case Nf:km(this,x,ct/2,ut,ag)}switch(b){case sg:Om(this,a,ut+nt,qh);break;case eA:Tm(this,a,ut+nt,qh);break;case Nf:km(this,a,ct/2,ut+nt,qh)}}}else switch(b){case sg:Om(this,y,ut,this.direction);break;case eA:Tm(this,y,ut,this.direction);break;case Nf:km(this,y,ct,ut,this.direction);break;case nA:R1(this,y,ct,ut,this.direction)}else R1(this,y,ct,ut-ct/2,qh)}this.updateParts(),this.network=null,this.isValidLayout=!0};function km(a,y,x,b,E){var z=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=b+(E===qh?at*x/(360<=z?ot:ot-1):-(at*x)/ot),ct=y.M(at),gt=nt*Math.tan(ut)/a;gt=Math.sqrt((nt*nt+a*a*gt*gt)/(1+gt*gt)),ct.centerX=gt*Math.cos(ut),ct.centerY=gt*Math.sin(ut),ct.actualAngle=180*ut/Math.PI}}function Tm(a,y,x,b){var E=a.lc,z=a.me,nt=a.Ti;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=y.M(at),ct=y.M(at===ot-1?0:at+1),gt=z*Math.sin(x);ut.centerX=E*Math.cos(x),ut.centerY=gt,ut.actualAngle=180*x/Math.PI,isNaN(ut.diameter)&&lg(ut,0),isNaN(ct.diameter)&&lg(ct,0),ut=T0(a,E,z,b===qh?x:-x,(ut.diameter+ct.diameter)/2+nt),x+=b===qh?ut:-ut}}function Om(a,y,x,b){var E=a.lc,z=a.me,nt=a.Jp;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ut=y.M(at);ut.centerX=E*Math.cos(x),ut.centerY=z*Math.sin(x),ut.actualAngle=180*x/Math.PI,ut=T0(a,E,z,b===qh?x:-x,nt),x+=b===qh?ut:-ut}}function R1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new Dm,360>x){for(z=b+(E===qh?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,_1(a,y,x,b,E)}else H1(a,y,x,b,E);a.Xr.commit(y)}function H1(a,y,x,b,E){var z=a.lc,nt=a.Ti,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ut=a.me*Math.sin(b*Math.PI/180),ct=y.Fa();if(ct.length===3)ct[0].centerX=z,ct[0].centerY=0,ct[1].centerX=ct[0].centerX-ct[0].width/2-ct[1].width/2-nt,ct[1].y=ct[0].y,ct[2].centerX=(ct[0].centerX+ct[1].centerX)/2,ct[2].y=ct[0].y-ct[2].height-nt;else if(ct.length===4)ct[0].centerX=z,ct[0].centerY=0,ct[2].centerX=-ct[0].centerX,ct[2].centerY=ct[0].centerY,ct[1].centerX=0,ct[1].y=Math.min(ct[0].y,ct[2].y)-ct[1].height-nt,ct[3].centerX=0,ct[3].y=Math.max(ct[0].y+ct[0].height+nt,ct[2].y+ct[2].height+nt);else{z=Ue.alloc();for(var gt=0;gt<ct.length&&(ct[gt].centerX=at,ct[gt].centerY=ut,!(gt>=ct.length-1));gt++)Q1(a,at,ut,ct,gt,E,z)||z1(a,at,ut,ct,gt,E,z),at=z.x,ut=z.y;if(Ue.free(z),a.mj++,!(23<a.mj)){at=ct[0].centerX,ut=ct[0].centerY,z=ct[ct.length-1].centerX,gt=ct[ct.length-1].centerY;var Nt=Math.abs(at-z)-((ct[0].width+ct[ct.length-1].width)/2+nt),zt=Math.abs(ut-gt)-((ct[0].height+ct[ct.length-1].height)/2+nt);nt=0,1>Math.abs(zt)?Math.abs(at-z)<(ct[0].width+ct[ct.length-1].width)/2&&(nt=0):nt=0<zt?zt:1>Math.abs(Nt)?0:Nt,at=Math.abs(z)>Math.abs(gt)?0<z!=ut>gt:0<gt!=at<z,(at=E===qh?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-ct[ct.length-1].width),nt=Math.min(nt,-ct[ct.length-1].height)),a.Xr.compare(nt,ct),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>ct.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ot,H1(a,y,x,b,E))}}}function _1(a,y,x,b,E){for(var z=a.lc,nt=a.me,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ut=nt*Math.sin(b*Math.PI/180),ct=Ue.alloc(),gt=y.Fa(),Nt=0;Nt<gt.length&&(gt[Nt].centerX=at,gt[Nt].centerY=ut,!(Nt>=gt.length-1));Nt++)Q1(a,at,ut,gt,Nt,E,ct)||z1(a,at,ut,gt,Nt,E,ct),at=ct.x,ut=ct.y;if(Ue.free(ct),a.mj++,!(23<a.mj)){if(at=Math.atan2(ut,at),at=E===qh?a.gt-at:at-a.gt,at=Math.abs(at)<Math.abs(at-2*Math.PI)?at:at-2*Math.PI,z=at*(z+nt)/2,nt=a.Xr,Math.abs(z)<Math.abs(nt.Pl))for(nt.Pl=z,nt.mk=[],nt.tm=[],at=0;at<gt.length;at++)nt.mk[at]=gt[at].bounds.x,nt.tm[at]=gt[at].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*ot,_1(a,y,x,b,E))}}function Q1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ut=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ct=!1;if(0<=x!=(z===qh)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ut,!1;ct=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ut,!1;ct=!0}return ut=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==ct&&(ut=-ut),Math.abs(x-ut)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ut,!1):(nt.x=z,nt.y=ut,!0)}function z1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ut=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===qh)){if(z=x-a,z<-at){if(z=x+a,z>at){nt.x=ut,nt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){nt.x=ut,nt.y=z;return}b=!0}ut=Math.sqrt(1-Math.min(1,z*z/(at*at)))*ot,0>y!==b&&(ut=-ut),nt.x=ut,nt.y=z}Al.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Al.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Ue(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;E.x+=x.x,E.y+=x.y,E.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},Al.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function Jv(a,y,x,b,E){var z=a.ty;if(.001>Math.abs(a.Zm-1))return b!==void 0&&E!==void 0?E*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var nt=0,ot=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),at=0,ut=0;ut<=z;ut++){b!==void 0&&E!==void 0?at=b+ut*E/z:at=ut*Math.PI/(2*z);var ct=Math.sin(at);nt+=Math.sqrt(1-a*a*ct*ct)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function k0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Jv(a,1,x,b,E):Jv(a,1,x))}function T0(a,y,x,b,E){if(.001>Math.abs(a.Zm-1))return E/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ot=0;;ot++){var at=Math.sin(b+ot*a);if(nt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,nt>=E)return ot*a}}Al.prototype.sort=function(a){switch(this.sorting){case O0:break;case D0:a.reverse();break;case j0:a.sort(this.comparer);break;case U0:a.sort(this.comparer),a.reverse();break;case Gp:return this.ak(Hw(a));default:mn("Invalid sorting type.")}return a};function Hw(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Bi;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var nt=0;nt<a.length;nt++){var ot=a.M(nt).edgesCount;ot>E&&(E=ot,z=nt)}else for(nt=0;nt<a.length;nt++)ot=y[nt],ot>E&&(E=ot,z=nt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),nt=z.sourceEdges;nt.next();)E=a.indexOf(nt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}Al.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var nt=[],ot=[];b=[],E=new Bi;for(var at=0,ut=0;ut<y.length;ut++){var ct=y[ut].length;if(ct===1)b.push(ut);else if(ct===0)E.add(a.M(ut));else{if(at===0)x.push(ut);else{for(var gt=ct=1/0,Nt=-1,zt=[],Xt=0;Xt<x.length;Xt++)0>y[x[Xt]].indexOf(x[Xt===x.length-1?0:Xt+1])&&zt.push(Xt===x.length-1?0:Xt+1);if(zt.length===0)for(Xt=0;Xt<x.length;Xt++)zt.push(Xt);for(Xt=0;Xt<zt.length;Xt++){for(var ue=zt[Xt],Qe=y[ut],ke=0,Ze=0;Ze<nt.length;Ze++){var en=z[nt[Ze]],an=z[ot[Ze]];if(en<an){var Cn=en;en=an}else Cn=an;if(Cn<ue&&ue<=en)for(an=0;an<Qe.length;an++){var Zn=Qe[an];0>x.indexOf(Zn)||Cn<z[Zn]&&z[Zn]<en||Cn===z[Zn]||en===z[Zn]||ke++}else for(an=0;an<Qe.length;an++)Zn=Qe[an],0>x.indexOf(Zn)||Cn<z[Zn]&&z[Zn]<en&&Cn!==z[Zn]&&en!==z[Zn]&&ke++}for(Qe=ke,Ze=ke=0;Ze<y[ut].length;Ze++)Cn=x.indexOf(y[ut][Ze]),0<=Cn&&(Cn=Math.abs(ue-(Cn>=ue?Cn+1:Cn)),ke+=Cn<x.length+1-Cn?Cn:x.length+1-Cn);for(Ze=0;Ze<nt.length;Ze++)Cn=z[nt[Ze]],en=z[ot[Ze]],Cn>=ue&&Cn++,en>=ue&&en++,Cn>en&&(an=en,en=Cn,Cn=an),en-Cn<(x.length+2)/2==(Cn<ue&&ue<=en)&&ke++;(Qe<ct||Qe===ct&&ke<gt)&&(ct=Qe,gt=ke,Nt=ue)}for(x.splice(Nt,0,ut),ct=0;ct<x.length;ct++)z[x[ct]]=ct;for(ct=0;ct<y[ut].length;ct++)gt=y[ut][ct],0<=x.indexOf(gt)&&(nt.push(ut),ot.push(gt))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ut=y[at][0],ct=x.indexOf(ut),0<=ct){for(Nt=gt=0;Nt<y[ut].length;Nt++)zt=x.indexOf(y[ut][Nt]),0>zt||zt===ct||(Xt=zt>ct?zt-ct:ct-zt,gt+=zt<ct!=Xt>nt-Xt?1:-1);x.splice(0>gt?ct:ct+1,0,at),b.splice(ot,1),ot--}else z=!1;if(z)break;x.push(b[0]),b.splice(0,1)}for(y=0;y<x.length;y++)E.add(a.M(x[y]));return E},rn.Object.defineProperties(Al.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==nA&&a!==eA&&a!==sg&&a!==Nf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==qh&&a!==ag&&a!==Tg&&a!==Kp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==O0&&a!==D0&&a!==j0&&!U0&&a!==Gp||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==R0&&a!==lp||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var eA=new jn(Al,"ConstantSpacing",0),sg=new jn(Al,"ConstantDistance",1),Nf=new jn(Al,"ConstantAngle",2),nA=new jn(Al,"Packed",3),qh=new jn(Al,"Clockwise",4),ag=new jn(Al,"Counterclockwise",5),Tg=new jn(Al,"BidirectionalLeft",6),Kp=new jn(Al,"BidirectionalRight",7),O0=new jn(Al,"Forwards",8),D0=new jn(Al,"Reverse",9),j0=new jn(Al,"Ascending",10),U0=new jn(Al,"Descending",11),Gp=new jn(Al,"Optimized",12),R0=new jn(Al,"Pythagorean",13),lp=new jn(Al,"Circular",14);Al.className="CircularLayout",Al.ConstantSpacing=eA,Al.ConstantDistance=sg,Al.ConstantAngle=Nf,Al.Packed=nA,Al.Clockwise=qh,Al.Counterclockwise=ag,Al.BidirectionalLeft=Tg,Al.BidirectionalRight=Kp,Al.Forwards=O0,Al.Reverse=D0,Al.Ascending=j0,Al.Descending=U0,Al.Optimized=Gp,Al.Pythagorean=R0,Al.Circular=lp;function Dm(){this.Pl=-1/0,this.tm=this.mk=null}Dm.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Dm.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Dm.className="VertexArrangement";function Wp(a){ma.call(this,a)}kn(Wp,ma),Wp.prototype.createVertex=function(){return new jm(this)},Wp.prototype.createEdge=function(){return new H0(this)},Wp.className="CircularNetwork";function jm(a){xu.call(this,a),this.u=this.Si=NaN}kn(jm,xu);function lg(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===nA)if(x.nodeDiameterFormula===lp)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===lp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}rn.Object.defineProperties(jm.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),jm.className="CircularVertex";function H0(a){Mc.call(this,a)}kn(H0,Mc),H0.className="CircularEdge";function ph(a){Va.call(this),this.ah=null,this.An=0,this.$d=new Gi(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}kn(ph,Va),ph.prototype.cloneProtected=function(a){Va.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},ph.prototype.createNetwork=function(){return new up(this)},ph.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var b=x.iterator;b.next();){this.network=b.value;for(var E=this.network.vertexes.iterator;E.next();){var z=E.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}K1(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var ot=nt.count,at=!0;z=E=0;for(var ut=sr(),ct=0;ct<ot+y.vertexes.count+2;ct++)ut[ct]=null;ot=0,nt.reset();for(var gt=ui.alloc();nt.next();)if(ct=nt.value,this.computeBounds(ct,gt),at)at=!1,E=gt.x+gt.width/2,z=gt.y+gt.height/2,ut[0]=new Ue(gt.x+gt.width+b.width,gt.y),ut[1]=new Ue(gt.x,gt.y+gt.height+b.height),ot=2;else{var Nt=G1(ut,ot,E,z,gt.width,gt.height,b),zt=ut[Nt],Xt=new Ue(zt.x+gt.width+b.width,zt.y),ue=new Ue(zt.x,zt.y+gt.height+b.height);for(Nt+1<ot&&ut.splice(Nt+1,0,null),ut[Nt]=Xt,ut[Nt+1]=ue,ot++,Nt=zt.x-gt.x,zt=zt.y-gt.y,ct=ct.vertexes.iterator;ct.next();)Xt=ct.value,Xt.centerX+=Nt,Xt.centerY+=zt}for(ui.free(gt),ct=y.vertexes.iterator;ct.next();)nt=ct.value,Nt=nt.bounds,2>ot?(E=Nt.x+Nt.width/2,z=Nt.y+Nt.height/2,ut[0]=new Ue(Nt.x+Nt.width+b.width,Nt.y),ut[1]=new Ue(Nt.x,Nt.y+Nt.height+b.height),ot=2):(at=G1(ut,ot,E,z,Nt.width,Nt.height,b),gt=ut[at],zt=new Ue(gt.x+Nt.width+b.width,gt.y),Nt=new Ue(gt.x,gt.y+Nt.height+b.height),at+1<ot&&ut.splice(at+1,0,null),ut[at]=zt,ut[at+1]=Nt,ot++,nt.centerX=gt.x+nt.width/2,nt.centerY=gt.y+nt.height/2);for(Br(ut),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}V1(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},ph.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,b=this.network.vertexes.iterator;b.next();){if(b.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},ph.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var b=a.value;x?(x=!1,y.set(b.bounds)):y.ed(b.bounds)}return y};function K1(a,y,x){if(_w(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Qw(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,K1(a,y+1,x),V1(a,z),zw(a,E),y=E.vertexes.Fa(),y.sort(function(nt,ot){return nt===null||ot===null||nt===ot?0:ot.Vd-nt.Vd}),x=0;x<y.length;x++)Kw(a,y[x]);a.Zf=b}}function _w(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,b){return x===null||b===null||x===b?0:b.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Qw(a,y){for(var x=a.network,b=new up(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var nt=new Z1;nt.Rs=z.Vd,nt.Ss=z.width,nt.Qs=z.height,nt.Sv=z.focus.x,nt.Tv=z.focus.y,z.We===null&&(z.We=new Bi),z.We.add(nt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var ot=z.value;E=ot.fromVertex,nt=ot.toVertex,E.network===b&&nt.network===b?b.Bo(ot):E.network===b?(ot=E.Hj,ot===null&&(ot=new Bi,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new Bi,nt.Hj=ot),ot.add(E),nt.Vd--,nt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Ln.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var at=E.Hj;if(at!==null&&0<at.count&&(nt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=nt))){for(var ut=ot=0,ct=at.count-nt;ct<at.count;ct++){var gt=at.M(ct),Nt=null;for(z=gt.edges.iterator;z.next();){var zt=z.value;if(zt.Ax(gt)===E){Nt=zt;break}}Nt!==null&&(ut+=Nt.length,ot+=gt.width*gt.height)}z=E.centerX,at=E.centerY,ct=E.width,gt=E.height,Nt=E.focus,zt=ct*gt,1>zt&&(zt=1),ot=Ln.sqrt((ot+zt+ut*ut*4/(nt*nt))/zt),nt=(ot-1)*ct/2,ot=(ot-1)*gt/2,E.bounds=new ui(z-Nt.x-nt,at-Nt.y-ot,ct+2*nt,gt+2*ot),E.focus=new Ue(Nt.x+nt,Nt.y+ot)}}return a.network=b,x}function zw(a,y){for(var x=a.network.vertexes.iterator;x.next();){var b=x.value;if(b.network=y,b.We!==null){var E=b.We.M(b.sv);b.Vd=E.Rs;var z=E.Sv,nt=E.Tv;b.bounds=new ui(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new Ue(z,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Kw(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,nt=y.height;y.We!==null&&0<y.We.count&&(nt=y.We.M(0),z=nt.Ss,nt=nt.Qs),z=Ln.sqrt(z*z+nt*nt)/2;for(var ot=!1,at=nt=0,ut=0,ct=y.vertexes.iterator;ct.next();){var gt=ct.value;1>=gt.Vd?at++:(ot=!0,ut++,nt+=Math.atan2(y.centerY-gt.centerY,y.centerX-gt.centerX))}if(at!==0){for(0<ut&&(nt/=ut),ut=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ut=y/2),1<x.count&&x.sort(function(zt,Xt){return zt===null||Xt===null||zt===Xt?0:Xt.width*Xt.height-zt.width*zt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(ct=null,gt=at.edges.iterator;gt.next();){ct=gt.value;break}gt=at.width;var Nt=at.height;gt=Ln.sqrt(gt*gt+Nt*Nt)/2,ct=z+ct.length+gt,gt=nt+(y*(ot/2>>1)+ut)*(ot%2===0?1:-1),at.centerX=b+ct*Math.cos(gt),at.centerY=E+ct*Math.sin(gt),ot++}}}}function G1(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ut=0;t:for(;ut<y;ut++){var ct=a[ut],gt=ct.x-x,Nt=ct.y-b;if(gt=gt*gt+Nt*Nt,gt<ot){for(Nt=ut-1;0<=Nt;Nt--)if(a[Nt].y>ct.y&&a[Nt].x-ct.x<E+nt.width)continue t;for(Nt=ut+1;Nt<y;Nt++)if(a[Nt].x>ct.x&&a[Nt].y-ct.y<z+nt.height)continue t;at=ut,ot=gt}}return at}ph.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ph.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var b=this.network.ki(x);b===null&&(b=this.network.Bl(x)),b.charge=this.defaultCommentElectricalCharge,x=null;for(var E=b.destinationEdges;E.next();){var z=E.value;if(z.toVertex===a){x=z;break}}if(x===null){for(E=b.sourceEdges;E.next();)if(z=E.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,b,null)),x.length=this.defaultCommentSpringLength}}};function W1(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,nt=z.x;y=z.y;var ot=z.width;return z=z.height,b+E<nt?a>y+z?(x=b+E-nt,a=a-y-z,Ln.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,Ln.sqrt(b*b+a*a)):nt-(b+E):b>nt+ot?a>y+z?(x=b-nt-ot,a=a-y-z,Ln.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,Ln.sqrt(b*b+a*a)):b-(nt+ot):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function V1(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Gw(a)););a.ah=null}function Gw(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,nt=1;nt<y.length;nt++){var ot=y[nt];ot.forceX=0,ot.forceY=0;var at=ot.centerX;ot=ot.centerY,b=Math.min(b,at),E=Math.max(E,at),x=Math.min(x,ot),z=Math.max(z,ot)}(E=E-b>z-x)?y.sort(function(ue,Qe){return ue===null||Qe===null||ue===Qe?0:ue.centerX-Qe.centerX}):y.sort(function(ue,Qe){return ue===null||Qe===null||ue===Qe?0:ue.centerY-Qe.centerY}),x=a.Zf;var ut=b=ot=0;for(z=0;z<y.length;z++){nt=y[z],b=nt.bounds,ot=nt.focus,at=b.x+ot.x;var ct=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,ct),ut=nt.charge*a.electricalFieldY(at,ct),b+=nt.mass*a.gravitationalFieldX(at,ct),ut+=nt.mass*a.gravitationalFieldY(at,ct),nt.forceX+=b,nt.forceY+=ut;for(var gt=z+1;gt<y.length;gt++){var Nt=y[gt];if(Nt!==nt){b=Nt.bounds,ot=Nt.focus,ut=b.x+ot.x;var zt=b.y+ot.y;if(at-ut>x||ut-at>x){if(E)break}else if(ct-zt>x||zt-ct>x){if(!E)break}else{var Xt=W1(nt,Nt);1>Xt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new _0),Xt=b.random(),ot=b.random(),at>ut?(b=Math.abs(Nt.bounds.right-nt.bounds.x),b=(1+b)*Xt):at<ut?(b=Math.abs(Nt.bounds.x-nt.bounds.right),b=-(1+b)*Xt):(b=Math.max(Nt.width,nt.width),b=(1+b)*Xt-b/2),ct>zt?(ut=Math.abs(Nt.bounds.bottom-nt.bounds.y),ut=(1+ut)*ot):at<ut?(ut=Math.abs(Nt.bounds.y-nt.bounds.bottom),ut=-(1+ut)*ot):(ut=Math.max(Nt.height,nt.height),ut=(1+ut)*ot-ut/2)):(ot=-(nt.charge*Nt.charge)/(Xt*Xt),b=(ut-at)/Xt*ot,ut=(zt-ct)/Xt*ot),nt.forceX+=b,nt.forceY+=ut,Nt.forceX-=b,Nt.forceY-=ut}}}}for(E=a.network.edges.iterator;E.next();)ot=E.value,x=ot.fromVertex,z=ot.toVertex,nt=x.bounds,at=x.focus,b=nt.x+at.x,nt=nt.y+at.y,ct=z.bounds,gt=z.focus,at=ct.x+gt.x,ct=ct.y+gt.y,gt=W1(x,z),1>gt?(gt=a.randomNumberGenerator,gt===null&&(a.randomNumberGenerator=gt=new _0),ot=gt.random(),gt=gt.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ut=(nt>ct?1:-1)*(1+(z.height>x.height?z.height:x.height))*gt):(ot=ot.stiffness*(gt-ot.length),b=(at-b)/gt*ot,ut=(ct-nt)/gt*ot),x.forceX+=b,x.forceY+=ut,z.forceX-=b,z.forceY-=ut;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}ph.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,b=this.moveLimit;return y<-b?y=-b:y>b&&(y=b),x<-b?x=-b:x>b&&(x=b),a.centerX+=y,a.centerY+=x,y*y+x*x},ph.prototype.moveFixedVertex=function(){},ph.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},ph.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Fs,y.toSpot=Fs)}},ph.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ui.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ui.free(x)}x=ui.alloc();for(var b=this.network.vertexes.iterator;b.next();){var E=b.value;(a!==0||y!==0)&&(x.assign(E.bounds),x.x+=a,x.y+=y,E.bounds=x),E.commit()}ui.free(x)},ph.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ph.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},ph.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},ph.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},ph.prototype.electricalFieldX=function(){return 0},ph.prototype.electricalFieldY=function(){return 0},ph.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},ph.prototype.gravitationalFieldX=function(){return 0},ph.prototype.gravitationalFieldY=function(){return 0},ph.prototype.isFixed=function(a){return a.isFixed},rn.Object.defineProperties(ph.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&mn('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),ph.className="ForceDirectedLayout";function Z1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Z1.className="ForceDirectedSubnet";function up(a){ma.call(this,a)}kn(up,ma),up.prototype.createVertex=function(){return new Um(this)},up.prototype.createEdge=function(){return new Rm(this)},up.className="ForceDirectedNetwork";function Um(a){xu.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}kn(Um,xu),rn.Object.defineProperties(Um.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Um.className="ForceDirectedVertex";function Rm(a){Mc.call(this,a),this.j=this.o=NaN}kn(Rm,Mc),rn.Object.defineProperties(Rm.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Rm.className="ForceDirectedEdge";function _0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}_0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},_0.className="RandomNumberGenerator";function Vs(a){Va.call(this),this.kc=this.ie=25,this.K=0,this.Dk=W0,this.Zk=V0,this.Qk=Z0,this.bj=4,this.rk=X0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Ue,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}kn(Vs,Va),Vs.prototype.cloneProtected=function(a){Va.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Vs.prototype.qb=function(a){a.classType===Vs?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:mn("Unknown enum value: "+a):Va.prototype.qb.call(this,a)},Vs.prototype.createNetwork=function(){return new Zp(this)},Vs.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==_m&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===_m&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var nt=0,ot=0,at=0,ut=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var ct=E.node;if(nt=z.node,ct===null||nt===null)continue;var gt=ot.fromNode;at=ot.toNode;for(var Nt=ot.fromPort;Nt!==null&&!Nt.Ed();)Nt=Nt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ut=gt;var zt=Nt;gt=at,Nt=ot,at=ut,ot=zt}var Xt=E.focus;ut=z.focus;var ue=b.rev?z.bounds:E.bounds;zt=Ue.alloc(),ct!==gt?ue.w()&&gt.isVisible()?gt.actualBounds.w()?(bf(gt,Nt,Eo,zt),zt.x+=gt.actualBounds.x-ue.x,zt.y+=gt.actualBounds.y-ue.y):(bf(gt,Nt,Eo,zt),zt.w()||zt.assign(Xt)):zt.assign(Xt):ue.w()?(bf(gt,Nt,Eo,zt),zt.w()||zt.assign(Xt)):zt.assign(Xt),gt=b.rev?E.bounds:z.bounds,ct=Ue.alloc(),nt!==at?gt.w()&&at.isVisible()?at.actualBounds.w()?(bf(at,ot,Eo,ct),ct.x+=at.actualBounds.x-gt.x,ct.y+=at.actualBounds.y-gt.y):(bf(at,ot,Eo,ct),ct.w()||ct.assign(ut)):ct.assign(ut):gt.w()?(bf(at,ot,Eo,ct),ct.w()||ct.assign(ut)):ct.assign(ut),this.K===90||this.K===270?(nt=Math.round((zt.x-Xt.x)/this.kc),at=zt.x,ot=Math.round((ct.x-ut.x)/this.kc),ut=ct.x):(nt=Math.round((zt.y-Xt.y)/this.kc),at=zt.y,ot=Math.round((ct.y-ut.y)/this.kc),ut=ct.y),Ue.free(zt),Ue.free(ct),b.portFromColOffset=nt,b.portFromPos=at,b.portToColOffset=ot,b.portToPos=ut}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(zt=E.layer,ct=z.layer,gt=0,ue=b.link,ue!==null){var Qe=ue.fromPort,ke=ue.toPort;if(Qe!==null&&ke!==null){var Ze=ue.fromNode;if(Nt=ue.toNode,Ze!==null&&Nt!==null){var en=G0(this,!0),an=G0(this,!1),Cn=this.setsPortSpots?en:ue.computeSpot(!0,Qe);Xt=this.setsPortSpots?an:ue.computeSpot(!1,ke);var Zn=ue.isOrthogonal;Cn.$c()&&Cn.Hf(an)&&Xt.$c()&&Xt.Hf(en)?gt=0:(en=ue.getLinkPoint(Ze,Qe,Cn,!0,Zn,Nt,ke,Ue.alloc()),an=ue.getLinkDirection(Ze,Qe,en,Cn,!0,Zn,Nt,ke),Ue.free(en),Cn.ys()||an!==iw(this,b,!0)?this.setsPortSpots&&Ze!==null&&Ze.ports.count===1&&b.rev&&(gt+=1):gt+=1,Cn=ue.getLinkPoint(Nt,ke,Xt,!1,Zn,Ze,Qe,Ue.alloc()),ue=ue.getLinkDirection(Nt,ke,Cn,Xt,!1,Zn,Ze,Qe),Ue.free(Cn),Xt.ys()||ue!==iw(this,b,!1)?this.setsPortSpots&&Nt!==null&&Nt.ports.count===1&&b.rev&&(gt+=2):gt+=2)}}}if(Nt=gt,gt=Nt===1||Nt===3,(Nt=Nt===2||Nt===3)&&(Xt=a.createVertex(),Xt.node=null,Xt.Dj=1,Xt.layer=zt,Xt.near=E,a.dh(Xt),E=a.Zj(E,Xt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=Xt),ue=1,gt&&ue--,zt-ct>ue&&0<zt){for(b.valid=!1,Xt=a.createVertex(),Xt.node=null,Xt.Dj=2,Xt.layer=zt-1,a.dh(Xt),E=a.Zj(E,Xt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Nt?0:nt,E.portToColOffset=0,E.portFromPos=Nt?0:at,E.portToPos=0,E=Xt,zt--;zt-ct>ue&&0<zt;)Xt=a.createVertex(),Xt.node=null,Xt.Dj=3,Xt.layer=zt-1,a.dh(Xt),E=a.Zj(E,Xt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Xt,zt--;E=a.Zj(Xt,z,b.link),E.valid=!gt,gt&&(Xt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=ut}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=ug(this,a),x=0,b=this.tc[a],z=0;z<b;z++)E=y[z],x+=this.nodeMinColumnSpace(E,!0),E.column=x,x+=1,x+=this.nodeMinColumnSpace(E,!1);this.Ra=Math.max(this.Ra,x-1),hg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Vs.prototype.linkMinLength=function(){return 1};function qv(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Vs.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Vs.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Ac(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var b=x.value;a.kj[y]=b.layer,y++,a.kj[y]=b.column,y++,a.kj[y]=b.index,y++}return a.kj}function pd(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var b=a.value;b.layer=y[x],x++,b.column=y[x],x++,b.index=y[x],x++}}function X1(a,y,x){var b=ug(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,nt=0;nt<E;nt++){var ot=0,at=b[nt],ut=at.near;if(ut!==null&&ut.layer===at.layer)if(at=ut.index,at>nt)for(var ct=nt+1;ct<at;ct++){var gt=b[ct];gt.near===ut&&gt.Dj===ut.Dj||ot++}else for(ct=nt-1;ct>at;ct--)gt=b[ct],gt.near===ut&&gt.Dj===ut.Dj||ot++;var Nt;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ut=0;ut<at.length;ut++){var zt=at[ut];if(zt.valid&&zt.fromVertex.layer!==y)for(gt=zt.fromVertex.index,ct=zt.portToPos,zt=zt.portFromPos,Nt=ut+1;Nt<at.length;Nt++){var Xt=at[Nt];if(Xt.valid&&Xt.fromVertex.layer!==y){var ue=Xt.fromVertex.index,Qe=Xt.portToPos;Xt=Xt.portFromPos,ct<Qe&&(gt>ue||gt===ue&&zt>Xt)&&ot++,Qe<ct&&(ue>gt||ue===gt&&Xt>zt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ut=0;ut<at.length;ut++)if(zt=at[ut],zt.valid&&zt.toVertex.layer!==y)for(gt=zt.toVertex.index,ct=zt.portToPos,zt=zt.portFromPos,Nt=ut+1;Nt<at.length;Nt++)Xt=at[Nt],Xt.valid&&Xt.toVertex.layer!==y&&(ue=Xt.toVertex.index,Qe=Xt.portToPos,Xt=Xt.portFromPos,zt<Xt&&(gt>ue||gt===ue&&ct>Qe)&&ot++,Xt<zt&&(ue>gt||ue===gt&&Qe>ct)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var ke=0,Ze=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var en=b[at].sourceEdgesArrayAccess;for(ut=0;ut<ot.length;ut++)if(zt=ot[ut],zt.valid&&zt.fromVertex.layer!==y)for(gt=zt.fromVertex.index,zt=zt.portFromPos,Nt=0;Nt<en.length;Nt++)Xt=en[Nt],Xt.valid&&Xt.fromVertex.layer!==y&&(ue=Xt.fromVertex.index,Xt=Xt.portFromPos,(gt<ue||gt===ue&&zt<Xt)&&Ze++,(ue<gt||ue===gt&&Xt<zt)&&ke++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,en=b[at].destinationEdgesArrayAccess,ut=0;ut<ot.length;ut++)if(zt=ot[ut],zt.valid&&zt.toVertex.layer!==y)for(gt=zt.toVertex.index,ct=zt.portToPos,Nt=0;Nt<en.length;Nt++)Xt=en[Nt],Xt.valid&&Xt.toVertex.layer!==y&&(ue=Xt.toVertex.index,Qe=Xt.portToPos,(gt<ue||gt===ue&&ct<Qe)&&Ze++,(ue<gt||ue===gt&&Qe<ct)&&ke++)}z[nt*E+at]=ke,z[at*E+nt]=Ze}}return hg(a,y,b),z}Vs.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=X1(this,y,1),b=this.tc[y],E=0;E<b;E++)for(var z=E;z<b;z++)a+=x[E*b+z];return a};function Q0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=ug(b,E),nt=b.tc[E],ot=0,at=0;at<nt;at++){var ut=z[at].destinationEdgesArrayAccess;if(ut!==null)for(var ct=0;ct<ut.length;ct++){var gt=ut[ct];if(gt.valid&&gt.toVertex.layer!==E){var Nt=gt.fromVertex.column+gt.portFromColOffset,zt=gt.toVertex.column+gt.portToColOffset;ot+=(Math.abs(Nt-zt)+1)*qv(gt)}}}hg(b,E,z),y+=ot}return y}Vs.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function ty(a,y,x){for(var b=ug(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ct=0,gt=0,Nt=ot.near;if(Nt!==null&&Nt.layer===ot.layer&&(ct+=Nt.column-1,gt++),at!==null)for(Nt=0;Nt<at.length;Nt++){ot=at[Nt];var zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(ct+=zt.column,gt++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],Nt=ot.toVertex,ot.valid&&!ot.rev&&Nt.layer!==y&&(ct+=Nt.column,gt++);z[nt]=gt===0?-1:ct/gt}return hg(a,y,b),z}function $1(a,y,x){for(var b=ug(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ut=null;0<=x&&(ut=ot.destinationEdgesArrayAccess);var ct=0,gt=[],Nt=ot.near;if(Nt!==null&&Nt.layer===ot.layer&&(gt[ct]=Nt.column-1,ct++),ot=void 0,at!==null)for(Nt=0;Nt<at.length;Nt++){ot=at[Nt];var zt=ot.fromVertex;ot.valid&&!ot.rev&&zt.layer!==y&&(gt[ct]=zt.column+ot.portFromColOffset,ct++)}if(ut!==null)for(at=0;at<ut.length;at++)ot=ut[at],Nt=ot.toVertex,ot.valid&&!ot.rev&&Nt.layer!==y&&(gt[ct]=Nt.column+ot.portToColOffset,ct++);ct===0?z[nt]=-1:(gt.sort(function(Xt,ue){return Xt-ue}),ut=ct>>1,z[nt]=ct&1?gt[ut]:gt[ut-1]+gt[ut]>>1)}return hg(a,y,b),z}function Hm(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();){var ot=nt.value,at=ot.toVertex,ut=y.layer-at.layer;ot=a.linkMinLength(ot),ut===ot&&Hm(a,at,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ut=at.layer-y.layer,ot=a.linkMinLength(ot),ut===ot&&Hm(a,at,x,b,E,z)}}function ey(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();)ey(a,nt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)ey(a,y.value.fromVertex,x,b,E,z)}}Vs.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case ry:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Ww(a)!==null;){for(E=Y1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=Y1(a);for(E=J1(a);E!==null;)b[y]=E,y++,E.valid=!1,E=J1(a);E=null;for(var z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value;if(ot.valid){for(var at=0,ut=ot.destinationEdges;ut.next();)ut.value.toVertex.valid&&at++;ut=0;for(var ct=ot.sourceEdges;ct.next();)ct.value.fromVertex.valid&&ut++;(E===null||z<at-ut)&&(E=ot,z=at-ut)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case W0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&ny(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&ny(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case _m:for(a=this.network,y=a.vertexes.iterator,b=1/0;y.next();)b=Math.min(b,y.value.layer);if(1/0>b){if(0>b)for(y.reset();y.next();)y.value.layer-=b;for(b=[],y.reset();y.next();)x=y.value,E=b[x.layer],E===void 0?b[x.layer]=[x]:E.push(x);for(x=y=0;x<b.length;x++)if(E=b[x],!E||E.length===0)y++;else if(0<x)for(z=0;z<E.length;z++)E[z].layer-=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Ww(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function Y1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function J1(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function ny(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,ny(a,E))}y.finish=a.Kn,a.Kn++}Vs.prototype.assignLayers=function(){switch(this.Zk){case oy:q1(this);break;case sy:for(var a,y=this.network.vertexes.iterator;y.next();)a=ew(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case V0:for(q1(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&nw(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function q1(a){for(var y=a.network.vertexes.iterator;y.next();){var x=tw(a,y.value);a.Ia=Math.max(x,a.Ia)}}function tw(a,y){var x=0;if(y.layer===-1){for(var b=y.destinationEdges;b.next();){var E=b.value,z=E.toVertex;E=a.linkMinLength(E),x=Math.max(x,tw(a,z)+E)}y.layer=x}else x=y.layer;return x}function ew(a,y){var x=0;if(y.layer===-1){for(var b=y.sourceEdges;b.next();){var E=b.value,z=E.fromVertex;E=a.linkMinLength(E),x=Math.max(x,ew(a,z)+E)}y.layer=x}else x=y.layer;return x}function nw(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)nw(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var b=y.sourceEdgesArrayAccess,E=b.length,z=0;z<E;z++){var nt=b[z],ot=nt.fromVertex,at=nt.toVertex;nt=a.linkMinLength(nt),ot.layer-at.layer>nt&&Hm(a,ot,0,-1,!0,!1)}for(Hm(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,ot=0,at=null,nt=a.network.vertexes.iterator;nt.next();){var ut=nt.value;if(ut.component===1){var ct=0,gt=!1,Nt=ut.sourceEdgesArrayAccess;E=Nt.length;for(var zt=0;zt<E;zt++){var Xt=Nt[zt],ue=Xt.fromVertex;ct+=1,ue.component!==1&&(z+=1,ue=ue.layer-ut.layer,Xt=a.linkMinLength(Xt),b=Math.min(b,ue-Xt))}for(Nt=ut.destinationEdgesArrayAccess,E=Nt.length,zt=0;zt<E;zt++)Xt=Nt[zt].toVertex,--ct,Xt.component!==1?--z:gt=!0;(at===null||ct<ot)&&!gt&&(at=ut,ot=ct)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Hm(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,ot=null,at=a.network.vertexes.iterator;at.next();)if(nt=at.value,nt.component===1){for(ut=0,ct=!1,Nt=nt.sourceEdgesArrayAccess,gt=Nt.length,zt=0;zt<gt;zt++)Xt=Nt[zt].fromVertex,ut+=1,Xt.component!==1?b+=1:ct=!0;for(Nt=nt.destinationEdgesArrayAccess,gt=Nt.length,zt=0;zt<gt;zt++)Xt=Nt[zt],ue=Xt.toVertex,--ut,ue.component!==1&&(--b,ue=nt.layer-ue.layer,Xt=a.linkMinLength(Xt),E=Math.min(E,ue-Xt));(ot===null||ut>z)&&!ct&&(ot=nt,z=ut)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else ot.component=0}}}function iw(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Vs.prototype.initializeIndices=function(){switch(this.Qk){default:case ly:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case Z0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&rw(this,x);break;case ay:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&ow(this,x)}};function rw(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],z=y[b+1];E.portFromColOffset>z.portFromColOffset&&(x=!0,y[b]=z,y[b+1]=E)}}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.toVertex,b.index===-1&&rw(a,b))}function ow(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var b=!0;b;)for(b=!1,x=0;x<y.length-1;x++){var E=y[x],z=y[x+1];E.portToColOffset>z.portToColOffset&&(b=!0,y[x]=z,y[x+1]=E)}for(x=0;x<y.length;x++)b=y[x],b.valid&&(b=b.fromVertex,b.index===-1&&ow(a,b))}Vs.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ac(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)z0(this,b,1),Dd(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Ac(this)),b=this.Ia;0<=b;b--)z0(this,b,-1),Dd(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Ac(this))}for(pd(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)z0(this,b,0),Dd(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Ac(this)),b=this.Ia;0<=b;b--)z0(this,b,0),Dd(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Ac(this))}pd(this,y);var z,nt,ot;switch(this.rk){case uy:break;case hy:for(ot=a+1;(b=this.countCrossings())<ot;)for(ot=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,1)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,-1)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,0)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,0)||z;E>=a?pd(this,y):(a=E,y=Ac(this))}break;default:case X0:for(x=this.Ia,nt=0,ot=a+1;(b=this.countCrossings())<ot;){for(ot=b,z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,-1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,1)||z;for(E=this.countCrossings(),E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,1)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,-1)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Dd(this,b,0)||z;for(E>=a?pd(this,y):(a=E,y=Ac(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Dd(this,b,0)||z;E>=a?pd(this,y):(a=E,y=Ac(this))}}pd(this,y)};function z0(a,y,x){var b=ug(a,y),E=a.tc[y],z=$1(a,y,x),nt=ty(a,y,x);for(x=0;x<E;x++)nt[x]===-1&&(nt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var ot=!0,at;ot;)for(ot=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&nt[x+1]<nt[x])&&(ot=!0,at=z[x],z[x]=z[x+1],z[x+1]=at,at=nt[x],nt[x]=nt[x+1],nt[x+1]=at,at=b[x],b[x]=b[x+1],b[x+1]=at);for(x=z=0;x<E;x++)at=b[x],at.index=x,z+=a.nodeMinColumnSpace(at,!0),at.column=z,z+=1,z+=a.nodeMinColumnSpace(at,!1);hg(a,y,b)}function Dd(a,y,x){var b=ug(a,y),E=a.tc[y];x=X1(a,y,x);var z,nt=[];for(z=0;z<E;z++)nt[z]=-1;var ot=[];for(z=0;z<E;z++)ot[z]=-1;for(var at=!1,ut=!0;ut;)for(ut=!1,z=0;z<E-1;z++){var ct=x[b[z].index*E+b[z+1].index],gt=x[b[z+1].index*E+b[z].index],Nt=0,zt=0,Xt=b[z].column,ue=b[z+1].column,Qe=a.nodeMinColumnSpace(b[z],!0),ke=a.nodeMinColumnSpace(b[z],!1),Ze=a.nodeMinColumnSpace(b[z+1],!0),en=a.nodeMinColumnSpace(b[z+1],!1);Qe=Xt-Qe+Ze,ke=ue-ke+en;var an=b[z].sourceEdges.iterator;for(an.reset();an.next();)if(Ze=an.value,en=Ze.fromVertex,Ze.valid&&en.layer===y){for(Ze=0;b[Ze]!==en;)Ze++;Ze<z&&(Nt+=2*(z-Ze),zt+=2*(z+1-Ze)),Ze===z+1&&(Nt+=1),Ze>z+1&&(Nt+=4*(Ze-z),zt+=4*(Ze-(z+1)))}for(an=b[z].destinationEdges.iterator,an.reset();an.next();)if(Ze=an.value,en=Ze.toVertex,Ze.valid&&en.layer===y){for(Ze=0;b[Ze]!==en;)Ze++;Ze===z+1&&(zt+=1)}for(an=b[z+1].sourceEdges.iterator,an.reset();an.next();)if(Ze=an.value,en=Ze.fromVertex,Ze.valid&&en.layer===y){for(Ze=0;b[Ze]!==en;)Ze++;Ze<z&&(Nt+=2*(z+1-Ze),zt+=2*(z-Ze)),Ze===z&&(zt+=1),Ze>z+1&&(Nt+=4*(Ze-(z+1)),zt+=4*(Ze-z))}for(an=b[z+1].destinationEdges.iterator,an.reset();an.next();)if(Ze=an.value,en=Ze.toVertex,Ze.valid&&en.layer===y){for(Ze=0;b[Ze]!==en;)Ze++;Ze===z&&(Nt+=1)}Ze=en=0,an=nt[b[z].index];var Cn=ot[b[z].index],Zn=nt[b[z+1].index],ir=ot[b[z+1].index];an!==-1&&(en+=Math.abs(an-Xt),Ze+=Math.abs(an-ke)),Cn!==-1&&(en+=Math.abs(Cn-Xt),Ze+=Math.abs(Cn-ke)),Zn!==-1&&(en+=Math.abs(Zn-ue),Ze+=Math.abs(Zn-Qe)),ir!==-1&&(en+=Math.abs(ir-ue),Ze+=Math.abs(ir-Qe)),(zt<Nt-.5||zt===Nt&&gt<ct-.5||zt===Nt&&gt===ct&&Ze<en-.5)&&(ut=at=!0,b[z].column=ke,b[z+1].column=Qe,ct=b[z],b[z]=b[z+1],b[z+1]=ct)}for(z=0;z<E;z++)b[z].index=z;return hg(a,y,b),at}Vs.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&tx)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var b,E=this.network.vertexes.iterator;E.next();){var z=E.value;y=z.layer,b=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],b+z)}for(E.reset();E.next();)z=E.value,y=z.layer,b=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*b;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Vp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Vp(this,y,-1)||x;x=Vp(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)iy(this,y,1);for(y=this.Md-1;0<=y;y--)iy(this,y,-1);iy(this,this.Md,0)}if(a&&(sw(this,-1),sw(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Vp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Vp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Vp(this,y,0)||x}}else $w(this)};function Vp(a,y,x){for(var b=!1;Vw(a,y,x);)b=!0;return b}function Vw(a,y,x){var b,E=ug(a,y),z=a.tc[y],nt=ty(a,y,-1);if(0<x)for(b=0;b<z;b++)nt[b]=-1;var ot=ty(a,y,1);if(0>x)for(b=0;b<z;b++)ot[b]=-1;for(var at=!1,ut=!0;ut;)for(ut=!1,b=0;b<z;b++){var ct=E[b].column,gt=a.nodeMinColumnSpace(E[b],!0),Nt=a.nodeMinColumnSpace(E[b],!1),zt=0;0>b-1||ct-E[b-1].column-1>gt+a.nodeMinColumnSpace(E[b-1],!1)?zt=ct-1:zt=ct,gt=b+1>=z||E[b+1].column-ct-1>Nt+a.nodeMinColumnSpace(E[b+1],!0)?ct+1:ct;var Xt=Nt=0,ue=0;if(0>=x)for(var Qe=E[b].sourceEdges.iterator;Qe.next();){var ke=Qe.value,Ze=ke.fromVertex;if(ke.valid&&Ze.layer!==y){var en=qv(ke),an=ke.portFromColOffset;ke=ke.portToColOffset,Ze=Ze.column,Nt+=(Math.abs(ct+ke-(Ze+an))+1)*en,Xt+=(Math.abs(zt+ke-(Ze+an))+1)*en,ue+=(Math.abs(gt+ke-(Ze+an))+1)*en}}if(0<=x)for(Qe=E[b].destinationEdges.iterator;Qe.next();)ke=Qe.value,Ze=ke.toVertex,ke.valid&&Ze.layer!==y&&(en=qv(ke),an=ke.portFromColOffset,ke=ke.portToColOffset,Ze=Ze.column,Nt+=(Math.abs(ct+an-(Ze+ke))+1)*en,Xt+=(Math.abs(zt+an-(Ze+ke))+1)*en,ue+=(Math.abs(gt+an-(Ze+ke))+1)*en);ke=an=en=0,Qe=nt[E[b].index],Ze=ot[E[b].index],Qe!==-1&&(en+=Math.abs(Qe-ct),an+=Math.abs(Qe-zt),ke+=Math.abs(Qe-gt)),Ze!==-1&&(en+=Math.abs(Ze-ct),an+=Math.abs(Ze-zt),ke+=Math.abs(Ze-gt)),Xt<Nt||Xt===Nt&&an<en?(ut=at=!0,E[b].column=zt):(ue<Nt||ue===Nt&&ke<en)&&(ut=at=!0,E[b].column=gt)}return hg(a,y,E),a.normalize(),at}function iy(a,y,x){var b=ug(a,y),E=a.tc[y],z=$1(a,y,x),nt=[];for(x=0;x<E;x++)nt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var ot=b[x].column,at=a.nodeMinColumnSpace(b[x],!0),ut=a.nodeMinColumnSpace(b[x],!1),ct=0;if(nt[x]===-1)if(x===0&&x===E-1)ct=ot;else if(x===0){var gt=b[x+1].column;gt-ot===ut+a.nodeMinColumnSpace(b[x+1],!0)?ct=ot-1:ct=ot}else x===E-1?(gt=b[x-1].column,ct=ot-gt===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,gt=b[x+1].column,ut=gt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ct=(at+ut)/2|0);else x===0&&x===E-1?ct=nt[x]:x===0?(gt=b[x+1].column,ut=gt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,ct=Math.min(nt[x],ut)):x===E-1?(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ct=Math.max(nt[x],at)):(gt=b[x-1].column,at=gt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,gt=b[x+1].column,ut=gt-a.nodeMinColumnSpace(b[x+1],!0)-ut-1,at<nt[x]&&nt[x]<ut?ct=nt[x]:at>=nt[x]?ct=at:ut<=nt[x]&&(ct=ut));ct!==ot&&(z=!0,b[x].column=ct)}hg(a,y,b),a.normalize()}function Zw(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),nt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+nt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function Xw(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ot=b.column-a.nodeMinColumnSpace(b,!0),at=b.column+a.nodeMinColumnSpace(b,!1);ot<=y&&at>=y&&(E[b.layer]=!0),ot<=x&&at>=x&&(z[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(E[b]&&z[b]);if(ot)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function sw(a,y){for(var x=0;x<=a.Ra;x++)for(;Zw(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Xw(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Ac(a),z=Q0(a);for(b=z+1;z<b;){b=z,aw(a,x,1);var nt=Q0(a);nt>z?pd(a,E):nt<z&&(z=nt,E=Ac(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Ac(a),z=Q0(a),b=z+1;z<b;)b=z,aw(a,x,-1),nt=Q0(a),nt>z?pd(a,E):nt<z&&(z=nt,E=Ac(a));a.normalize()}function aw(a,y,x){a.le=0;for(var b=a.network.vertexes.iterator;b.next();)b.value.component=-1;if(0<x)for(b.reset();b.next();){var E=b.value;E.column-a.nodeMinColumnSpace(E,!0)<=y&&(E.component=a.le)}if(0>x)for(b.reset();b.next();)E=b.value,E.column+a.nodeMinColumnSpace(E,!1)>=y&&(E.component=a.le);for(a.le++,b.reset();b.next();)y=b.value,y.component===-1&&(ey(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(E=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)E[z]=-1;for(b.reset();b.next();){z=b.value;for(var nt=z.layer,ot=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),at=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ot<=at;ot++)E[nt*(a.Ra+1)+ot]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(nt=0;nt<a.Ra;nt++)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt+1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt+1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt+1]]=!0);if(0>x)for(nt=a.Ra;0<nt;nt--)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt-1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt-1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(nt=[],nt.push(0);nt.length!==0;)if(at=nt[nt.length-1],nt.pop(),E[at])for(E[at]=!1,z=0;z<a.le;z++)y[at*a.le+z]&&nt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function $w(a){for(var y=sr(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Pi,Yw(y,x);var z=null,nt=null,ot=null,at=null,ut=(a.ve&1)!==0,ct=(a.ve&2)!==0,gt=(a.ve&4)!==0,Nt=(a.ve&8)!==0;for(ut&&(a.verticalAlignment(y,x,!0),z=K0(a,y,!0,!1)),y.reverse(),gt&&(a.verticalAlignment(y,x,!1),ot=K0(a,y,!1,!1)),b=Jo(y),E=b.next();!E.done;E=b.next())E.value.reverse();Nt&&(a.verticalAlignment(y,x,!1),at=K0(a,y,!1,!0)),y.reverse(),ct&&(a.verticalAlignment(y,x,!0),nt=K0(a,y,!0,!0)),Br(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(zt){var Xt=sr();ut&&Xt.push(z.get(zt)),ct&&Xt.push(nt.get(zt)),gt&&Xt.push(ot.get(zt)),Nt&&Xt.push(at.get(zt)),Xt.sort(function(Qe,ke){return Qe-ke});var ue=Xt.length;ue=(Xt[Math.floor((ue-1)/2)]+Xt[Math.ceil((ue-1)/2)])/2,Br(Xt),zt.zc=ue})}function Yw(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,nt=a[b],ot=a[b+1],at=0;z<ot.length;at++){var ut=ot[at];t:{if(ut.node===null){var ct=cy(ut);if(0<ct.length){ct=ct[0].node===null;break t}}ct=!1}var gt=ct;if(at===ot.length-1||gt){for(ct=nt.length-1,gt&&(ct=cy(ut)[0].index);z<=at;){if(ut=ot[z],!ut.bo){gt=[];for(var Nt=Jo(ut.sourceEdgesArrayAccess),zt=Nt.next();!zt.done;zt=Nt.next())zt=zt.value,zt.valid&&gt.push(zt);ut.bo=gt}for(ut=Jo(ut.bo),gt=ut.next();!gt.done;gt=ut.next())gt=gt.value,Nt=gt.fromVertex.index,(Nt<E||Nt>ct)&&y.add(gt);z++}E=ct}}}Vs.prototype.verticalAlignment=function(a,y,x){Jw(a),a=Jo(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Jo(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?cy(z):ex(z),ot=nt.length;if(0<ot){nt.sort(function(gt,Nt){return gt.vi-Nt.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(z.align===z){var ut=nt[ot],ct=void 0;ct=x?$0(ut,z):$0(z,ut),!y.contains(ct)&&E<ut.vi&&(ut.align=z,z.root=ut.root,z.align=ut.root,E=ut.vi)}}}}};function Jw(a){for(var y=0;y<a.length;y++)for(var x=a[y],b=0;b<x.length;b++){var E=x[b];E.root=E,E.align=E,E.Tz=y,E.vi=b}}function K0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Jo(y),nt=z.next();!nt.done;nt=z.next()){var ot=Jo(nt.value);for(nt=ot.next();!nt.done;nt=ot.next())nt=nt.value,nt.sd=nt,nt.shift=1/0,nt.zc=NaN,nt.qg=0}for(nt=a.K===90||a.K===270,z=Jo(y),ot=z.next();!ot.done;ot=z.next()){ot=Jo(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ut=0,ct=at;ct.align!==at;){var gt=ct.align,Nt=nt?ct.width:ct.height,zt=nt?gt.width:gt.height;if(x){var Xt=$0(ct,gt),ue=Xt.portFromPos,Qe=Xt.portToPos;Xt.link!==null&&(ct.node&&ct.node!==Xt.link.fromNode&&(ue=nt?ct.focusX:ct.focusY),gt.node&&gt.node!==Xt.link.toNode&&(Qe=nt?gt.focusX:gt.focusY))}else Xt=$0(gt,ct),ue=Xt.portToPos,Qe=Xt.portFromPos,Xt.link!==null&&(ct.node&&ct.node!==Xt.link.toNode&&(ue=nt?ct.focusX:ct.focusY),gt.node&&gt.node!==Xt.link.fromNode&&(Qe=nt?gt.focusX:gt.focusY));Nt=b?ct.qg+(Nt-ue)-(zt-Qe):ct.qg+ue-Qe,gt.qg=Nt,ut=Math.min(ut,Nt),ct=ct.align}ct=at;do ct.qg=ct.qg-ut,ct=ct.align;while(ct!==at)}}for(x=Jo(y),nt=x.next();!nt.done;nt=x.next())for(z=Jo(nt.value),nt=z.next();!nt.done;nt=z.next())nt=nt.value,nt.root===nt&&lw(a,nt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(nt=y[x][0],nt.sd===nt)){nt.sd.shift===1/0&&(nt.sd.shift=0),nt=x,ot=0;do{for(z=y[nt][ot];z.align!==z.root;)z=z.align,nt++,0<z.vi&&(ot=uw(z,y),ot.sd.shift=Math.min(ot.sd.shift,z.sd.shift+z.zc+z.qg-(ot.zc+ot.qg+(E?ot.width:ot.height)+a.columnSpacing)));ot=z.vi+1}while(nt<y.length&&ot<y[nt].length&&z.sd===y[nt][ot].sd)}for(a=new gr,y=Jo(y),nt=y.next();!nt.done;nt=y.next())for(x=Jo(nt.value),nt=x.next();!nt.done;nt=x.next())nt=nt.value,nt.zc=nt.zc+nt.sd.shift+nt.qg,z=E?nt.width:nt.height,a.add(nt,b?-nt.zc-z:nt.zc);return a}function lw(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=uw(b,x),z=E.root;lw(a,z,x),y.sd===y&&(y.sd=z.sd);var nt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+nt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function uw(a,y){var x=a.Tz;return a=a.vi,1>a&&mn("Could not determine previous vertex in layer"),y[x][a-1]}Vs.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=sr(),E=sr(),z=1/0,nt=0;4>nt;nt++)if(y[nt]){var ot=qw(this,y[nt],b,E,nt);ot<z&&(x=nt,z=ot)}for(z={},nt=0;4>nt;z={delta:z.delta},nt++)y[nt]&&(z.delta=nt===0||nt===2?b[x]-b[nt]:E[x]-E[nt],z.delta!==0&&y[nt].each(function(at){return function(ut){ut.value+=at.delta}}(z)));Br(b),Br(E)};function qw(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,nt=-1/0;return y.each(function(ot){var at=ot.key;ot=ot.value,at=a.K===90||a.K===270?at.width:at.height,ot<z&&(z=ot),ot+at>nt&&(nt=ot+at)}),x[E]=z,b[E]=nt,nt-z}Vs.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=G0(this,!0),y=G0(this,!1),x=this.network.edges.iterator;x.next();){var b=x.value.link;b!==null&&(b.fromSpot=a,b.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function G0(a,y){return a.K===270?y?Ka:jl:a.K===90?y?jl:Ka:a.K===180?y?ca:el:y?el:ca}Vs.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,nt=E=1/0,ot=-1/0;a.next();){var at=a.value,ut=at.layer,ct=at.column|0;b?(nt=y.x+this.kc*ct,ut=this.Kd[ut]):(nt=this.Kd[ut],ut=y.y+this.kc*ct),at.centerX=nt,at.centerY=ut,x&&isFinite(at.zc)&&(b?at.node?at.x=y.x+at.zc:at.centerX=y.x+at.zc:at.node?at.y=y.y+at.zc:at.centerY=y.y+at.zc),z=Math.min(at.x,z),E=Math.min(at.y,E),b?(nt=z,ot=Math.max(ot,at.bounds.right)):(nt=E,ot=Math.max(ot,at.bounds.bottom))}for(this.xw=ot-nt,z=y.x-z,y=y.y-E,this.Rf=new Ue(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Vs.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var b=this.maxLayer;0<=b;b--)this.K===270?b===0?y.push(new ui(0,0,x,Math.abs(this.Ta[0]))):y.push(new ui(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new ui(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new ui(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new ui(0,0,Math.abs(this.Ta[0]),x)):y.push(new ui(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new ui(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new ui(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Vs.prototype.commitLayers=function(){},Vs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,nt=b.fromPort,ot=b.toPort;if(E!==null){var at=E.findVisibleNode();at!==null&&at!==E&&(E=at,nt=at.port)}z!==null&&(at=z.findVisibleNode(),at!==null&&at!==z&&(z=at,ot=at.port));var ut=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var ct=x.fromVertex,gt=x.toVertex;if(x.valid)y.curve===Yc&&y.pointsCount===4&&(ct.column===gt.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ut,!0,!1,z,ot),ot=y.getLinkPoint(z,ot,at,!1,!1,E,nt),x.w()||x.set(E.actualBounds.center),ot.w()||ot.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ot.x)/3,(2*x.y+ot.y)/3),y.yf((x.x+2*ot.x)/3,(x.y+2*ot.y)/3),y.yf(ot.x,ot.y)):(x=b=!1,nt!==null&&ut===Xa&&(b=!0),ot!==null&&at===Xa&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(Eo),y.i(3),!0),at.w()||at.set(E.actualBounds.center),y.L(0,at.x,at.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,ot,ot.ga(Eo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),at&&(z=y.i(2),y.L(1,(2*at.x+z.x)/3,(2*at.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ct.layer===gt.layer)y.zf();else{var Nt=!1,zt=!1,Xt=this.ie,ue=y.firstPickIndex+1;if(y.isOrthogonal){zt=!0;var Qe=y.pointsCount;4<Qe&&y.points.removeRange(2,Qe-3)}else if(y.curve===Yc)Nt=!0,Qe=y.pointsCount,4<Qe&&y.points.removeRange(2,Qe-3),Qe===4&&(ue=2);else{Qe=y.pointsCount;var ke=ut===Xa,Ze=at===Xa;2<Qe&&ke&&Ze?y.points.removeRange(1,Qe-2):3<Qe&&ke&&!Ze?y.points.removeRange(1,Qe-3):3<Qe&&!ke&&Ze?y.points.removeRange(2,Qe-2):4<Qe&&!ke&&!Ze&&y.points.removeRange(2,Qe-3)}if(x.rev){for(;gt!==null&&ct!==gt;){var en=Qe=null;for(ke=gt.sourceEdges.iterator;ke.next()&&(Ze=ke.value,Ze.link!==x.link||(Qe=Ze.fromVertex,en=Ze.toVertex,Qe.node!==null)););if(Qe===null)break;if(Qe!==ct){ke=y.i(ue-1).x,Ze=y.i(ue-1).y;var an=Qe.centerX,Cn=Qe.centerY;if(zt)this.K===180||this.K===0?ue===y.firstPickIndex+1?(y.m(ue++,ke,Ze),y.m(ue++,ke,Cn)):(en!==null?en.centerY:Ze)!==Cn&&(en=this.Ta[Qe.layer-1]+this.Rf.x,y.m(ue++,en,Ze),y.m(ue++,en,Cn)):ue===y.firstPickIndex+1?(y.m(ue++,ke,Ze),y.m(ue++,an,Ze)):(en!==null?en.centerX:ke)!==an&&(en=this.Ta[Qe.layer-1]+this.Rf.y,y.m(ue++,ke,en),y.m(ue++,an,en));else if(ue===y.firstPickIndex+1){en=Math.max(10,this.he[gt.layer]);var Zn=Math.max(10,this.Ld[gt.layer]);if(Nt)this.K===180?an<=gt.bounds.x?(gt=gt.bounds.x,y.m(ue++,gt-en,Cn),y.m(ue++,gt,Cn),y.m(ue++,gt+Zn,Cn)):(y.m(ue++,an-en,Cn),y.m(ue++,an,Cn),y.m(ue++,an+Zn,Cn)):this.K===90?Cn>=gt.bounds.bottom?(gt=gt.bounds.y+gt.bounds.height,y.m(ue++,an,gt+Zn),y.m(ue++,an,gt),y.m(ue++,an,gt-en)):(y.m(ue++,an,Cn+Zn),y.m(ue++,an,Cn),y.m(ue++,an,Cn-en)):this.K===270?Cn<=gt.bounds.y?(gt=gt.bounds.y,y.m(ue++,an,gt-en),y.m(ue++,an,gt),y.m(ue++,an,gt+Zn)):(y.m(ue++,an,Cn-en),y.m(ue++,an,Cn),y.m(ue++,an,Cn+Zn)):this.K===0&&(an>=gt.bounds.right?(gt=gt.bounds.x+gt.bounds.width,y.m(ue++,gt+Zn,Cn),y.m(ue++,gt,Cn),y.m(ue++,gt-en,Cn)):(y.m(ue++,an+Zn,Cn),y.m(ue++,an,Cn),y.m(ue++,an-en,Cn)));else{y.m(ue++,ke,Ze);var ir=0;this.K===180||this.K===0?((this.K===180?an>=gt.bounds.right:an<=gt.bounds.x)&&(ir=(this.K===0?-en:Zn)/2),y.m(ue++,ke+ir,Cn)):((this.K===270?Cn>=gt.bounds.bottom:Cn<=gt.bounds.y)&&(ir=(this.K===90?-en:Zn)/2),y.m(ue++,an,Ze+ir)),y.m(ue++,an,Cn)}}else en=Math.max(10,this.he[Qe.layer]),Zn=Math.max(10,this.Ld[Qe.layer]),Nt?this.K===180?(y.m(ue++,an-en-Xt,Cn),y.m(ue++,Math.min(an-en+Xt/2,an),Cn),y.m(ue++,an,Cn),y.m(ue++,an,Cn),y.m(ue++,Math.max(an+Zn-Xt/2,an),Cn),y.m(ue++,an+Zn+Xt,Cn)):this.K===90?(y.m(ue++,an,Cn+Zn+Xt),y.m(ue++,an,Math.max(Cn+Zn-Xt/2,Cn)),y.m(ue++,an,Cn),y.m(ue++,an,Cn),y.m(ue++,an,Math.min(Cn-en+Xt/2,Cn)),y.m(ue++,an,Cn-en-Xt)):this.K===270?(y.m(ue++,an,Cn-en-Xt),y.m(ue++,an,Math.min(Cn-en+Xt/2,Cn)),y.m(ue++,an,Cn),y.m(ue++,an,Cn),y.m(ue++,an,Math.max(Cn+Zn-Xt/2,Cn)),y.m(ue++,an,Cn+Zn+Xt)):(y.m(ue++,an+Zn+Xt,Cn),y.m(ue++,Math.max(an+Zn-Xt/2,an),Cn),y.m(ue++,an,Cn),y.m(ue++,an,Cn),y.m(ue++,Math.min(an-en+Xt/2,an),Cn),y.m(ue++,an-en-Xt,Cn)):y.m(ue++,an,Cn)}gt=Qe}(ot===null||ut!==Xa||zt)&&(ke=y.i(ue-1).x,Ze=y.i(ue-1).y,an=y.i(ue).x,Cn=y.i(ue).y,zt?(Xt=this.Ld[ct.layer],this.K===180||this.K===0?(zt=Ze,zt>=ct.bounds.y&&zt<=ct.bounds.bottom&&(this.K===180?an>=ct.bounds.x:an<=ct.bounds.right)&&(gt=ct.centerX+(this.K===180?-Xt:Xt),zt<ct.bounds.y+ct.bounds.height/2?zt=ct.bounds.y-this.kc/2:zt=ct.bounds.bottom+this.kc/2,y.m(ue++,gt,Ze),y.m(ue++,gt,zt)),y.m(ue++,an,zt)):(zt=ke,zt>=ct.bounds.x&&zt<=ct.bounds.right&&(this.K===270?Cn>=ct.bounds.y:Cn<=ct.bounds.bottom)&&(gt=ct.centerY+(this.K===270?-Xt:Xt),zt<ct.bounds.x+ct.bounds.width/2?zt=ct.bounds.x-this.kc/2:zt=ct.bounds.right+this.kc/2,y.m(ue++,ke,gt),y.m(ue++,zt,gt)),y.m(ue++,zt,Cn)),y.m(ue++,an,Cn)):Nt?(en=Math.max(10,this.he[ct.layer]),Zn=Math.max(10,this.Ld[ct.layer]),this.K===180&&an>=ct.bounds.x?(gt=ct.bounds.x+ct.bounds.width,y.L(ue-2,gt,Ze),y.L(ue-1,gt+Zn,Ze)):this.K===90&&Cn<=ct.bounds.bottom?(gt=ct.bounds.y,y.L(ue-2,ke,gt),y.L(ue-1,ke,gt-en)):this.K===270&&Cn>=ct.bounds.y?(gt=ct.bounds.y+ct.bounds.height,y.L(ue-2,ke,gt),y.L(ue-1,ke,gt+Zn)):this.K===0&&an<=ct.bounds.right&&(gt=ct.bounds.x,y.L(ue-2,gt,Ze),y.L(ue-1,gt-en,Ze))):(en=Math.max(10,this.he[ct.layer]),Zn=Math.max(10,this.Ld[ct.layer]),zt=0,this.K===180||this.K===0?((this.K===180?an<=ct.bounds.x:an>=ct.bounds.right)&&(zt=(this.K===0?Zn:-en)/2),y.m(ue++,an+zt,Ze)):((this.K===270?Cn<=ct.bounds.y:Cn>=ct.bounds.bottom)&&(zt=(this.K===90?Zn:-en)/2),y.m(ue++,ke,Cn+zt)),y.m(ue++,an,Cn)))}else{for(;ct!==null&&ct!==gt;){for(en=Qe=null,ct=ct.destinationEdges.iterator;ct.next()&&(ke=ct.value,ke.link!==x.link||(Qe=ke.toVertex,en=ke.fromVertex,en.node!==null&&(en=null),Qe.node!==null)););if(Qe===null)break;Qe!==gt&&(ke=y.i(ue-1).x,Ze=y.i(ue-1).y,an=Qe.centerX,Cn=Qe.centerY,zt?this.K===180||this.K===0?(en!==null?en.centerY:Ze)!==Cn&&(en=this.Ta[Qe.layer]+this.Rf.x,ue===y.firstPickIndex+1&&(en=this.K===0?Math.max(en,ke):Math.min(en,ke)),y.m(ue++,en,Ze),y.m(ue++,en,Cn)):(en!==null?en.centerX:ke)!==an&&(en=this.Ta[Qe.layer]+this.Rf.y,ue===y.firstPickIndex+1&&(en=this.K===90?Math.max(en,Ze):Math.min(en,Ze)),y.m(ue++,ke,en),y.m(ue++,an,en)):(en=Math.max(10,this.he[Qe.layer]),Zn=Math.max(10,this.Ld[Qe.layer]),Nt?this.K===180?(y.m(ue++,an+Zn+Xt,Cn),y.m(ue++,Math.max(an+Zn-Xt/2,an),Cn),y.m(ue++,an,Cn),y.m(ue++,an,Cn),y.m(ue++,Math.min(an-en+Xt/2,an),Cn),y.m(ue++,an-en-Xt,Cn)):this.K===90?(y.m(ue++,an,Cn-en-Xt),y.m(ue++,an,Math.min(Cn-en+Xt/2,Cn)),y.m(ue++,an,Cn),y.m(ue++,an,Cn),y.m(ue++,an,Math.max(Cn+Zn-Xt/2,Cn)),y.m(ue++,an,Cn+Zn+Xt)):this.K===270?(y.m(ue++,an,Cn+Zn+Xt),y.m(ue++,an,Math.max(Cn+Zn-Xt/2,Cn)),y.m(ue++,an,Cn),y.m(ue++,an,Cn),y.m(ue++,an,Math.min(Cn-en+Xt/2,Cn)),y.m(ue++,an,Cn-en-Xt)):(y.m(ue++,an-en-Xt,Cn),y.m(ue++,Math.min(an-en+Xt/2,an),Cn),y.m(ue++,an,Cn),y.m(ue++,an,Cn),y.m(ue++,Math.max(an+Zn-Xt/2,an),Cn),y.m(ue++,an+Zn+Xt,Cn)):this.K===180?(y.m(ue++,an+Zn,Cn),y.m(ue++,an-en,Cn)):this.K===90?(y.m(ue++,an,Cn-en),y.m(ue++,an,Cn+Zn)):this.K===270?(y.m(ue++,an,Cn+Zn),y.m(ue++,an,Cn-en)):(y.m(ue++,an-en,Cn),y.m(ue++,an+Zn,Cn)))),ct=Qe}zt&&(ke=y.i(ue-1).x,Ze=y.i(ue-1).y,an=y.i(ue).x,Cn=y.i(ue).y,this.K===180||this.K===0?Ze!==Cn&&(en=this.K===0?Math.min(Math.max((an+ke)/2,this.Ta[gt.layer]+this.Rf.x),an):Math.max(Math.min((an+ke)/2,this.Ta[gt.layer]+this.Rf.x),an),y.m(ue++,en,Ze),y.m(ue++,en,Cn)):ke!==an&&(en=this.K===90?Math.min(Math.max((Cn+Ze)/2,this.Ta[gt.layer]+this.Rf.y),Cn):Math.max(Math.min((Cn+Ze)/2,this.Ta[gt.layer]+this.Rf.y),Cn),y.m(ue++,ke,en),y.m(ue++,an,en)))}b!==null&&Nt&&4<=y.pointsCount&&(nt!==null&&(nt=ut===Xa?y.getLinkPointFromPoint(E,nt,nt.ga(Eo),y.i(3),!0):y.i(0),ut===Xa&&(ut=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ut.x)/2,ut.y),y.L(2,b.x,(ut.y+b.y)/2)):(y.L(1,ut.x,(nt.y+ut.y)/2),y.L(2,(ut.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(E=at===Xa?y.getLinkPointFromPoint(z,ot,ot.ga(Eo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===Xa&&(ot=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,at.x,(ot.y+at.y)/2)):(y.L(y.pointsCount-2,ot.x,(E.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+at.x)/2,at.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Vs.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Bi,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),nt=b.i(E+1);if(this.B(z.y,nt.y)&&!this.B(z.x,nt.x)){var ot=new cg;ot.layer=Math.floor(z.y/2);var at=b.i(0),ut=b.i(b.pointsCount-1);if(ot.first=at.x*at.x+at.y,ot.jc=ut.x*ut.x+ut.y,ot.rd=Math.min(z.x,nt.x),ot.Ic=Math.max(z.x,nt.x),ot.index=E,ot.link=b,E+2<b.pointsCount){at=b.i(E-1),ut=b.i(E+2);var ct=0;at.y<z.y?ct=ut.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(ct=ut.y>z.y?0:nt.x<z.x?2:1),ot.j=ct}x.push(ot)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),ct=1,ot=x[z].jc,at=z;at<E;at++)ut=x[at],ut.jc!==ot&&(ct++,ot=ut.jc);this.zi(x,this.Ux,z,z+nt);var gt=1;for(ot=x[z].first,at=z;at<E;at++)ut=x[at],ut.first!==ot&&(gt++,ot=ut.first);for(at=!0,ut=gt,ct<gt?(at=!1,ut=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,gt=z;gt<E;gt++){var Nt=x[gt];(at?Nt.first:Nt.jc)!==ot&&(ct++,ot=at?Nt.first:Nt.jc);var zt=Nt.link;z=zt.i(Nt.index),nt=zt.i(Nt.index+1);var Xt=this.linkSpacing*(ct-(ut-1)/2);y++,zt.uh(),zt.L(Nt.index,z.x,z.y+Xt),zt.L(Nt.index+1,nt.x,nt.y+Xt),zt.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),nt=b.i(E+1),this.B(z.x,nt.x)&&!this.B(z.y,nt.y)&&(ot=new cg,ot.layer=Math.floor(z.x/2),at=b.i(0),ut=b.i(b.pointsCount-1),ot.first=at.x+at.y*at.y,ot.jc=ut.x+ut.y*ut.y,ot.rd=Math.min(z.y,nt.y),ot.Ic=Math.max(z.y,nt.y),ot.index=E,ot.link=b,E+2<b.pointsCount&&(at=b.i(E-1),ut=b.i(E+2),ct=0,at.x<z.x?ct=ut.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(ct=ut.x>z.x?0:nt.y<z.y?2:1),ot.j=ct),x.push(ot));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),ct=1,ot=x[z].jc,at=z;at<E;at++)ut=x[at],ut.jc!==ot&&(ct++,ot=ut.jc);for(this.zi(x,this.Ux,z,z+nt),gt=1,ot=x[z].first,at=z;at<E;at++)ut=x[at],ut.first!==ot&&(gt++,ot=ut.first);for(at=!0,ut=gt,ct<gt?(at=!1,ut=ct,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ct=0,gt=z;gt<E;gt++)Nt=x[gt],(at?Nt.first:Nt.jc)!==ot&&(ct++,ot=at?Nt.first:Nt.jc),zt=Nt.link,z=zt.i(Nt.index),nt=zt.i(Nt.index+1),Xt=this.linkSpacing*(ct-(ut-1)/2),y++,zt.uh(),zt.L(Nt.index,z.x+Xt,z.y),zt.L(Nt.index+1,nt.x+Xt,nt.y),zt.zf()}z=E}a=b}}}},Yt=Vs.prototype,Yt.Vx=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Yt.Ux=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Yt.Js=function(a,y){return a instanceof cg&&y instanceof cg&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Yt.B=function(a,y){return a-=y,-1<a&&1>a},Yt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&mn("not in range 0 <= from < length: "+x),z===2)b=a[x],E=a[x+1],0<y(b,E)&&(a[x]=E,a[x+1]=b);else if(x===0)if(b>=E)a.sort(y);else for(x=a.slice(0,b),x.sort(y),y=0;y<b;y++)a[y]=x[y];else if(b>=E)for(b=a.slice(x),b.sort(y),y=x;y<E;y++)a[y]=b[y-x];else for(E=a.slice(x,b),E.sort(y),y=x;y<b;y++)a[y]=E[y-x]};function ug(a,y){var x=a.tc[y];if(x>=a.He.length){for(var b=[],E=0;E<a.He.length;E++)b[E]=a.He[E];a.He=b}for(a.He[x]===void 0||a.He[x]===null?b=[]:(b=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],b[x.index]=x;return b}function hg(a,y,x){a.He[a.tc[y]]=x}rn.Object.defineProperties(Vs.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):mn("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==ry&&a!==W0&&a!==_m||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==V0&&a!==oy&&a!==sy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Z0&&a!==ay&&a!==ly||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==uy&&a!==X0&&a!==hy||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var W0=new jn(Vs,"CycleDepthFirst",0),ry=new jn(Vs,"CycleGreedy",1),_m=new jn(Vs,"CycleFromLayers",2),V0=new jn(Vs,"LayerOptimalLinkLength",0),oy=new jn(Vs,"LayerLongestPathSink",1),sy=new jn(Vs,"LayerLongestPathSource",2),Z0=new jn(Vs,"InitDepthFirstOut",0),ay=new jn(Vs,"InitDepthFirstIn",1),ly=new jn(Vs,"InitNaive",2),uy=new jn(Vs,"AggressiveNone",0),X0=new jn(Vs,"AggressiveLess",1),hy=new jn(Vs,"AggressiveMore",2),tx=8;Vs.className="LayeredDigraphLayout",Vs.CycleDepthFirst=W0,Vs.CycleGreedy=ry,Vs.CycleFromLayers=_m,Vs.LayerOptimalLinkLength=V0,Vs.LayerLongestPathSink=oy,Vs.LayerLongestPathSource=sy,Vs.InitDepthFirstOut=Z0,Vs.InitDepthFirstIn=ay,Vs.InitNaive=ly,Vs.AggressiveNone=uy,Vs.AggressiveLess=X0,Vs.AggressiveMore=hy,Vs.PackNone=0,Vs.PackExpand=1,Vs.PackStraighten=2,Vs.PackMedian=4,Vs.PackAll=15,Vs.AlignNone=0,Vs.AlignUpperLeft=1,Vs.AlignUpperRight=2,Vs.AlignLowerLeft=4,Vs.AlignLowerRight=8,Vs.AlignAll=15;function cg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}cg.className="SegInfo";function Zp(a){ma.call(this,a)}kn(Zp,ma),Zp.prototype.createVertex=function(){return new md(this)},Zp.prototype.createEdge=function(){return new Qm(this)},Zp.className="LayeredDigraphNetwork";function md(a){xu.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}kn(md,xu);function hw(a,y){return a.index-y.index}function $0(a,y){if(!a.$n){for(var x=[],b=Jo(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Jo(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;mn("Unable to find destination edge to given vertex")}function cy(a){if(!a.co){for(var y=[],x=Jo(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(hw),a.co=y}return a.co}function ex(a){if(!a.ao){for(var y=[],x=Jo(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(hw),a.ao=y}return a.ao}md.prototype.Cl=function(a){xu.prototype.Cl.call(this,a),this.bo=this.co=null},md.prototype.Kl=function(a){xu.prototype.Kl.call(this,a),this.bo=this.co=null},md.prototype.zl=function(a){xu.prototype.zl.call(this,a),this.$n=this.ao=null},md.prototype.Jl=function(a){xu.prototype.Jl.call(this,a),this.$n=this.ao=null},rn.Object.defineProperties(md.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),md.prototype.deleteDestinationEdge=md.prototype.Jl,md.prototype.addDestinationEdge=md.prototype.zl,md.prototype.deleteSourceEdge=md.prototype.Kl,md.prototype.addSourceEdge=md.prototype.Cl,md.className="LayeredDigraphVertex";function Qm(a){Mc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}kn(Qm,Mc),rn.Object.defineProperties(Qm.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),Qm.className="LayeredDigraphEdge";function ds(a){Va.call(this),this.Ub=new Pi,this.Wn=tv,this.ud=tf,this.vo=nv,this.Bq=Sy,this.$v=[],this.td=!0,this.Rb=iv,this.$d=new Gi(10,10).freeze();var y=new Ap(this);this.W=new jd(y),this.Y=new jd(y),this.ru=[],a&&Object.assign(this,a)}kn(ds,Va),ds.prototype.cloneProtected=function(a){Va.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},ds.prototype.qb=function(a){a.classType===ds?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:mn("Unknown enum value: "+a):Va.prototype.qb.call(this,a)},ds.prototype.createNetwork=function(){return new Ap(this)},ds.prototype.makeNetwork=function(a){function y(b){if(b instanceof cr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Zi){var E=b.fromNode;return E===null||E.isLinkLabel||E.category==="Comment"?!1:(b=b.toNode,!(b===null||b.isLinkLabel||b.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof Kn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof To?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ds.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==rv&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Kn&&(y=a),this.path===tv&&y!==null?this.ud=y.isTreePathToChildren?tf:cp:this.ud=this.path===tv?tf:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Pi,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof cr?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof jd&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,dy(this,y));for(y=this.network.vertexes,a=null;a=nx(y),0<a.count;)y=cw(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,dy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&Aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&fw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&gw(this,y);if(this.Cu(),this.layerStyle===ov){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var b=x.parent;b===null&&(b=x),b=b.angle===0||b.angle===180;var E=a[x.level];E===void 0&&(E=0),a[x.level]=Math.max(E,b?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,b=x.parent,b===null&&(b=x),b.angle===0||b.angle===180?(b.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(b.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Cy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof jd&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Pi,this.isValidLayout=!0};function nx(a){var y=new Pi;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}ds.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case tf:x.sourceEdges.count===0&&this.Ub.add(x);break;case cp:x.destinationEdges.count===0&&this.Ub.add(x);break;default:mn("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=cw(this,a),a!==null&&this.Ub.add(a))};function cw(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case tf:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case cp:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:mn("Unhandled path value "+a.ud.toString())}}return b}function dy(a,y){if(y!==null){switch(a.ud){case tf:if(0<y.destinationEdges.count){for(var x=new Bi,b=y.destinationVertexes;b.next();){var E=b.value;dw(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case cp:if(0<y.sourceEdges.count){for(x=new Bi,b=y.sourceVertexes;b.next();)E=b.value,dw(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:mn("Unhandled path value"+a.ud.toString())}for(x=y.children,b=x.length,E=0;E<b;E++){var z=x[E];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<b;y++)dy(a,x[y])}}function dw(a,y,x){if(x.initialized){if(y===null)var b=!1;else{for(b=y.parent;b!==null&&b!==x;)b=b.parent;b=b===x}if(b||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}ds.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,b=0,E=0;E<x.length;E++)x[E]===y&&b++;if(0<b){b=Array(x.length-b);for(var z=E=0;z<x.length;z++)x[z]!==y&&(b[E++]=x[z]);a.children=b}}};function Aw(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===rf&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];Aw(a,at),x+=at.descendantCount+1,b=Math.max(b,at.maxChildrenCount),E=Math.max(E,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function ix(a,y){switch(a.vo){default:case nv:return y.parent!==null?y.parent:a.W;case wy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case yy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case vy:var x=!0;if(y.childrenCount===0)x=!1;else for(var b=y.children,E=b.length,z=0;z<E;z++)if(0<b[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}ds.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ix(this,a)),a.parent!==null&&a.parent.alignment===rf){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function fw(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fw(a,y[b])}}ds.prototype.assignTreeVertexValues=function(){};function gw(a,y){if(y!==null){y.alignment!==rf&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)gw(a,y[b])}}ds.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xp:break;case Km:a.children.reverse();break;case Gm:a.children.sort(a.comparer);break;case Wm:a.children.sort(a.comparer),a.children.reverse();break;default:mn("Unhandled sorting value "+a.sorting.toString())}},ds.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ds.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=dg(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,nt=0,ot=0,at=a.commentSpacing;if(a.node!==null)for(var ut=a.node.Mu();ut.next();){var ct=ut.value;ct.category==="Comment"&&ct.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ct),ct.Va(),ct=ct.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ct.width),nt+=ct.height+Math.abs(ot)):(z+=ct.width+Math.abs(ot),nt=Math.max(nt,ct.height)),ot=at)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=ui.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,ui.free(E))};function dg(a){return a===If||a===rf||a===kf||a===df}function zm(a){return a===If||a===rf}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dg(x)){if(zm(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===kf)return!0}}return!1}ds.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,b=a.angle,E=0,z=!1;x!==null&&(E=x.angle,z=x.alignment,z=dg(z)),b=b===90||b===270,x=E===90||E===270;for(var nt=a.childrenCount===0,ot=Ay(a),at=0,ut=a.comments,ct=ut.length,gt=Ue.alloc(),Nt=0;Nt<ct;Nt++){var zt=ut[Nt],Xt=zt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(gt.h(a.bounds.x-a.commentMargin-Xt.width,a.bounds.y+at),zt.move(gt),zt=zt.Sd();zt.next();){var ue=zt.value;ue.fromSpot=ca,ue.toSpot=el}else for(gt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),zt.move(gt),zt=zt.Sd();zt.next();)ue=zt.value,ue.fromSpot=el,ue.toSpot=ca;else if(0<=a.commentMargin)for(gt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),zt.move(gt),zt=zt.Sd();zt.next();)ue=zt.value,ue.fromSpot=el,ue.toSpot=ca;else for(gt.h(a.bounds.x+a.commentMargin-Xt.width,a.bounds.y+at),zt.move(gt),zt=zt.Sd();zt.next();)ue=zt.value,ue.fromSpot=ca,ue.toSpot=el;at=0<=a.commentSpacing?at+(Xt.height+a.commentSpacing):at+(a.commentSpacing-Xt.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(gt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-Xt.height),zt.move(gt),zt=zt.Sd();zt.next();)ue=zt.value,ue.fromSpot=Ka,ue.toSpot=jl;else for(gt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),zt.move(gt),zt=zt.Sd();zt.next();)ue=zt.value,ue.fromSpot=jl,ue.toSpot=Ka;else if(0<=a.commentMargin)for(gt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),zt.move(gt),zt=zt.Sd();zt.next();)ue=zt.value,ue.fromSpot=jl,ue.toSpot=Ka;else for(gt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-Xt.height),zt.move(gt),zt=zt.Sd();zt.next();)ue=zt.value,ue.fromSpot=Ka,ue.toSpot=jl;at=0<=a.commentSpacing?at+(Xt.width+a.commentSpacing):at+(a.commentSpacing-Xt.width)}}if(Ue.free(gt),y=at-a.commentSpacing-(b?y.height:y.width),this.ud===tf)for(a=a.destinationEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)E=a.value.link,E===null||E.isAvoiding||(E.toEndSegmentLength=0<y?y:NaN)}},ds.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,b=0;b<x;b++)this.layoutTree(y[b]);switch(a.compaction){case ev:pw(this,a);break;case Vm:if(a.alignment===rf)pw(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=dg(x)),b=Ay(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!b?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&b?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var E=iA(a);y=E===90||E===270;var z=0,nt=a.children,ot=nt.length;for(x=0;x<ot;x++)b=nt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var at=a.alignment;b=at===ef;var ut=at===nf,ct=dg(at),gt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Nt=a.nodeSpacing,zt=this.computeNodeIndent(a),Xt=a.rowSpacing,ue=0;(b||ut||a.hm||a.im&&a.maxGenerationCount===1)&&(ue=Math.max(0,a.rowIndent)),b=a.width;var Qe=a.height,ke=0,Ze=0,en=0,an=null,Cn=null,Zn=0,ir=0,Mr=0,wr=0,Vi=0,Ni=0,Fo=0,mo=0;if(ct&&!zm(at)&&135<E&&nt.reverse(),zm(at))if(1<ot)for(var Ts=0;Ts<ot;Ts++)Ts%2===0&&Ts!==ot-1&&(mo=Math.max(mo,y?nt[Ts].Da.width:nt[Ts].Da.height));else ot===1&&(mo=y?nt[0].Da.width:nt[0].Da.height);if(ct){switch(at){case If:Ze=135>E?mw(this,a,nt,mo,ke,Ze):vw(this,a,nt,mo,ke,Ze),mo=Ze.x,ke=Ze.width,Ze=Ze.height;break;case kf:for(an=0;an<ot;an++)Cn=nt[an],gt=Cn.Da,en=Ni===0?0:Xt,y?(Cn.S.h(z-gt.width,wr+en),ke=Math.max(ke,gt.width),Ze=Math.max(Ze,wr+en+gt.height),wr+=en+gt.height):(Cn.S.h(Mr+en,z-gt.height),ke=Math.max(ke,Mr+en+gt.width),Ze=Math.max(Ze,gt.height),Mr+=en+gt.width),Ni++;break;case df:for(an=0;an<ot;an++)Cn=nt[an],z=Cn.Da,gt=Ni===0?0:Xt,y?(Cn.S.h(Nt/2+a.focus.x,wr+gt),ke=Math.max(ke,z.width),Ze=Math.max(Ze,wr+gt+z.height),wr+=gt+z.height):(Cn.S.h(Mr+gt,Nt/2+a.focus.y),ke=Math.max(ke,Mr+gt+z.width),Ze=Math.max(Ze,z.height),Mr+=gt+z.width),Ni++}an=vc(this,2),Cn=vc(this,2),y?(an[0].h(0,0),an[1].h(0,Ze),Cn[0].h(ke,0)):(an[0].h(0,0),an[1].h(ke,0),Cn[0].h(0,Ze)),Cn[1].h(ke,Ze)}else for(Ts=0;Ts<ot;Ts++){var fa=nt[Ts],Ou=fa.Da;if(y){0<gt&&0<Ni&&Mr+Nt+Ou.width>gt&&(Mr<z&&Og(a,at,z-Mr,0,Fo,Ts-1),Vi++,Ni=0,Fo=Ts,en=Ze,Mr=0,wr=135<E?-Ze-Xt:Ze+Xt),J0(this,fa,0,wr);var zu=0;if(Ni===0)an=fa.Yo,Cn=fa.kp,Zn=Ou.width,ir=Ou.height,(an===null||Cn===null||E!==iA(fa))&&(an=vc(this,2),Cn=vc(this,2),an[0].h(0,0),an[1].h(0,ir),Cn[0].h(Zn,0),Cn[1].h(Zn,ir));else{var Hh=sr();ir=yw(this,a,fa,an,Cn,Zn,ir,Hh),zu=ir.x,an=Hh[0],Cn=Hh[1],Zn=ir.width,ir=ir.height,Br(Hh),Mr<Ou.width&&0>zu&&(hp(a,-zu,0,Fo,Ts-1),q0(an,-zu,0),q0(Cn,-zu,0),zu=0)}fa.S.h(zu,wr),ke=Math.max(ke,Zn),Ze=Math.max(Ze,en+(Vi===0?0:Xt)+Ou.height),Mr=Zn}else 0<gt&&0<Ni&&wr+Nt+Ou.height>gt&&(wr<z&&Og(a,at,0,z-wr,Fo,Ts-1),Vi++,Ni=0,Fo=Ts,en=ke,wr=0,Mr=135<E?-ke-Xt:ke+Xt),J0(this,fa,Mr,0),zu=0,Ni===0?(an=fa.Yo,Cn=fa.kp,Zn=Ou.width,ir=Ou.height,(an===null||Cn===null||E!==iA(fa))&&(an=vc(this,2),Cn=vc(this,2),an[0].h(0,0),an[1].h(Zn,0),Cn[0].h(0,ir),Cn[1].h(Zn,ir))):(Hh=sr(),ir=yw(this,a,fa,an,Cn,Zn,ir,Hh),zu=ir.x,an=Hh[0],Cn=Hh[1],Zn=ir.width,ir=ir.height,Br(Hh),wr<Ou.height&&0>zu&&(hp(a,0,-zu,Fo,Ts-1),q0(an,0,-zu),q0(Cn,0,-zu),zu=0)),fa.S.h(Mr,zu),Ze=Math.max(Ze,ir),ke=Math.max(ke,en+(Vi===0?0:Xt)+Ou.width),wr=ir;Ni++}switch(0<Vi&&(y?(Ze+=Math.max(0,x),Mr<ke&&Og(a,at,ke-Mr,0,Fo,ot-1),0<ue&&(ut||hp(a,ue,0,0,ot-1),ke+=ue)):(ke+=Math.max(0,x),wr<Ze&&Og(a,at,0,Ze-wr,Fo,ot-1),0<ue&&(ut||hp(a,0,ue,0,ot-1),Ze+=ue))),ue=ut=0,at){case $p:y?ut+=ke/2-a.focus.x-zt/2:ue+=Ze/2-a.focus.y-zt/2;break;case dp:0<Vi?y?ut+=ke/2-a.focus.x-zt/2:ue+=Ze/2-a.focus.y-zt/2:y?(mo=nt[0].S.x+nt[0].la.x,ut+=mo+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-mo)/2-a.focus.x-zt/2):(mo=nt[0].S.y+nt[0].la.y,ue+=mo+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-mo)/2-a.focus.y-zt/2);break;case ef:y?(ut-=zt,ke+=zt):(ue-=zt,Ze+=zt);break;case nf:y?(ut+=ke-a.width+zt,ke+=zt):(ue+=Ze-a.height+zt,Ze+=zt);break;case If:y?1<ot?ut+=mo+Nt/2-a.focus.x:ut+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?ue+=mo+Nt/2-a.focus.y:ue+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case kf:y?ut+=ke+Nt/2-a.focus.x:ue+=Ze+Nt/2-a.focus.y;break;case df:break;default:Ze=this.customAlignment(a,ut,ue,ke,Ze),ut=Ze[0],ue=Ze[1],ke=Ze[2],Ze=Ze[3]}for(zt=0;zt<ot;zt++)mo=nt[zt],y?mo.S.h(mo.S.x+mo.la.x-ut,mo.S.y+(135<E?(ct?-Ze:-mo.Da.height)+mo.la.y-x:Qe+x+mo.la.y)):mo.S.h(mo.S.x+(135<E?(ct?-ke:-mo.Da.width)+mo.la.x-x:b+x+mo.la.x),mo.S.y+mo.la.y-ue);if(ot=nt=0,ct?y?(ke=fy(a,ke,ut),0>ut&&(ut=0),135<E&&(ue+=Ze+x),Ze+=Qe+x,at===df&&(nt+=Nt/2+a.focus.x),ot+=Qe+x):(135<E&&(ut+=ke+x),ke+=b+x,Ze=gy(a,Ze,ue),0>ue&&(ue=0),at===df&&(ot+=Nt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>ke&&(ke=py(at,b-ke,0),nt=ke.x,ot=ke.y,ke=b,ut=0):ke=fy(a,ke,ut),0>ut&&(nt-=ut,ut=0),135<E&&(ue+=Ze+x),Ze=Math.max(Math.max(Ze,Qe),Ze+Qe+x),ot+=Qe+x):(135<E&&(ut+=ke+x),ke=Math.max(Math.max(ke,b),ke+b+x),a.comments===null?Qe>Ze&&(Ze=py(at,0,Qe-Ze),nt=Ze.x,ot=Ze.y,Ze=Qe,ue=0):Ze=gy(a,Ze,ue),0>ue&&(ot-=ue,ue=0),nt+=b+x),0<Vi)E=vc(this,4),Vi=vc(this,4),y?(E[2].h(0,Qe+x),E[3].h(E[2].x,Ze),Vi[2].h(ke,E[2].y),Vi[3].h(Vi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(ke,E[2].y),Vi[2].h(E[2].x,Ze),Vi[3].h(E[3].x,Vi[2].y));else{for(E=vc(this,an.length+2),Vi=vc(this,Cn.length+2),at=0;at<an.length;at++)ct=an[at],E[at+2].h(ct.x+nt,ct.y+ot);for(at=0;at<Cn.length;at++)ct=Cn[at],Vi[at+2].h(ct.x+nt,ct.y+ot)}y?(E[0].h(ut,0),E[1].h(E[0].x,Qe),E[2].y<E[1].y&&(E[2].x>E[0].x?E[2].assign(E[1]):E[1].assign(E[2])),E[3].y<E[2].y&&(E[3].x>E[0].x?E[3].assign(E[2]):E[2].assign(E[3])),Vi[0].h(ut+b,0),Vi[1].h(Vi[0].x,Qe),Vi[2].y<Vi[1].y&&(Vi[2].x<Vi[0].x?Vi[2].assign(Vi[1]):Vi[1].assign(Vi[2])),Vi[3].y<Vi[2].y&&(Vi[3].x<Vi[0].x?Vi[3].assign(Vi[2]):Vi[2].assign(Vi[3])),E[2].y-=x/2,Vi[2].y-=x/2):(E[0].h(0,ue),E[1].h(b,E[0].y),E[2].x<E[1].x&&(E[2].y>E[0].y?E[2].assign(E[1]):E[1].assign(E[2])),E[3].x<E[2].x&&(E[3].y>E[0].y?E[3].assign(E[2]):E[2].assign(E[3])),Vi[0].h(0,ue+Qe),Vi[1].h(b,Vi[0].y),Vi[2].x<Vi[1].x&&(Vi[2].y<Vi[0].y?Vi[2].assign(Vi[1]):Vi[1].assign(Vi[2])),Vi[3].x<Vi[2].x&&(Vi[3].y<Vi[0].y?Vi[3].assign(Vi[2]):Vi[2].assign(Vi[3])),E[2].x-=x/2,Vi[2].x-=x/2),pA(this,an),pA(this,Cn),a.Yo=E,a.kp=Vi,a.la.h(ut,ue),a.Da.h(ke,Ze)}break;default:mn("Unhandled compaction value "+a.compaction.toString())}}};function pw(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=dg(x));var E=Ay(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(b!==180&&b!==270||x)&&!E?y.la.h(0,0):b===180&&!x||(b===90||b===270)&&E?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{b=iA(y),x=b===90||b===270;var z=0;E=y.children;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];z=Math.max(z,x?at.Da.width:at.Da.height)}var ut=y.alignment,ct=ut===ef,gt=ut===nf;ot=dg(ut);var Nt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var zt=y.nodeSpacing,Xt=a.computeNodeIndent(y),ue=ct||gt?0:Xt/2,Qe=y.rowSpacing,ke=0;(ct||gt||y.hm||y.im&&y.maxGenerationCount===1)&&(ke=Math.max(0,y.rowIndent)),ct=y.width;var Ze=y.height,en=0,an=0,Cn=0,Zn=0,ir=0,Mr=0,wr=0,Vi=0,Ni=0,Fo=0;if(ot&&!zm(ut)&&135<b&&E.reverse(),zm(ut))if(1<nt)for(var mo=0;mo<nt;mo++){var Ts=E[mo],fa=Ts.Da;mo%2===0&&mo!==nt-1?Ni=Math.max(Ni,(x?fa.width:fa.height)+a.computeBusNodeSpacing(Ts)-zt):mo%2!==0&&(Fo=Math.max(Fo,(x?fa.width:fa.height)+a.computeBusNodeSpacing(Ts)-zt))}else nt===1&&(Ni=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ut){case If:case rf:an=135>b?mw(a,y,E,Ni,en,an):vw(a,y,E,Ni,en,an),Ni=an.x,en=an.width,an=an.height;break;case kf:for(Nt=0;Nt<nt;Nt++)ue=E[Nt],Cn=ue.Da,Fo=wr===0?0:Qe,x?(ue.S.h(z-Cn.width,ir+Fo),en=Math.max(en,Cn.width),an=Math.max(an,ir+Fo+Cn.height),ir+=Fo+Cn.height):(ue.S.h(Zn+Fo,z-Cn.height),en=Math.max(en,Zn+Fo+Cn.width),an=Math.max(an,Cn.height),Zn+=Fo+Cn.width),wr++;break;case df:for(z=0;z<nt;z++)Nt=E[z],ue=Nt.Da,Cn=wr===0?0:Qe,x?(Nt.S.h(zt/2+y.focus.x,ir+Cn),en=Math.max(en,ue.width),an=Math.max(an,ir+Cn+ue.height),ir+=Cn+ue.height):(Nt.S.h(Zn+Cn,zt/2+y.focus.y),en=Math.max(en,Zn+Cn+ue.width),an=Math.max(an,ue.height),Zn+=Cn+ue.width),wr++}else for(Fo=0;Fo<nt;Fo++)mo=E[Fo],Ts=mo.Da,x?(0<Nt&&0<wr&&Zn+zt+Ts.width>Nt&&(Zn<z&&Og(y,ut,z-Zn,0,Vi,Fo-1),Mr++,wr=0,Vi=Fo,Cn=an,Zn=0,ir=135<b?-an-Qe:an+Qe),fa=wr===0?ue:zt,J0(a,mo,0,ir),mo.S.h(Zn+fa,ir),en=Math.max(en,Zn+fa+Ts.width),an=Math.max(an,Cn+(Mr===0?0:Qe)+Ts.height),Zn+=fa+Ts.width):(0<Nt&&0<wr&&ir+zt+Ts.height>Nt&&(ir<z&&Og(y,ut,0,z-ir,Vi,Fo-1),Mr++,wr=0,Vi=Fo,Cn=en,ir=0,Zn=135<b?-en-Qe:en+Qe),fa=wr===0?ue:zt,J0(a,mo,Zn,0),mo.S.h(Zn,ir+fa),an=Math.max(an,ir+fa+Ts.height),en=Math.max(en,Cn+(Mr===0?0:Qe)+Ts.width),ir+=fa+Ts.height),wr++;switch(0<Mr&&(x?(an+=Math.max(0,at),Zn<en&&Og(y,ut,en-Zn,0,Vi,nt-1),0<ke&&(gt||hp(y,ke,0,0,nt-1),en+=ke)):(en+=Math.max(0,at),ir<an&&Og(y,ut,0,an-ir,Vi,nt-1),0<ke&&(gt||hp(y,0,ke,0,nt-1),an+=ke))),ke=gt=0,ut){case $p:x?gt+=en/2-y.focus.x-Xt/2:ke+=an/2-y.focus.y-Xt/2;break;case dp:0<Mr?x?gt+=en/2-y.focus.x-Xt/2:ke+=an/2-y.focus.y-Xt/2:x?(a=E[0].S.x+E[0].la.x,gt+=a+(E[nt-1].S.x+E[nt-1].la.x+2*E[nt-1].focus.x-a)/2-y.focus.x-Xt/2):(a=E[0].S.y+E[0].la.y,ke+=a+(E[nt-1].S.y+E[nt-1].la.y+2*E[nt-1].focus.y-a)/2-y.focus.y-Xt/2);break;case ef:x?(gt-=Xt,en+=Xt):(ke-=Xt,an+=Xt);break;case nf:x?(gt+=en-y.width+Xt,en+=Xt):(ke+=an-y.height+Xt,an+=Xt);break;case If:case rf:x?1<nt?gt+=Ni+zt/2-y.focus.x:gt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?ke+=Ni+zt/2-y.focus.y:ke+=E[0].focus.y-y.focus.y+E[0].la.y;break;case kf:x?gt+=en+zt/2-y.focus.x:ke+=an+zt/2-y.focus.y;break;case df:break;default:a=a.customAlignment(y,gt,ke,en,an),gt=a[0],ke=a[1],en=a[2],an=a[3]}for(a=0;a<nt;a++)Xt=E[a],x?Xt.S.h(Xt.S.x+Xt.la.x-gt,Xt.S.y+(135<b?(ot?-an:-Xt.Da.height)+Xt.la.y-at:Ze+at+Xt.la.y)):Xt.S.h(Xt.S.x+(135<b?(ot?-en:-Xt.Da.width)+Xt.la.x-at:ct+at+Xt.la.x),Xt.S.y+Xt.la.y-ke);x?(en=fy(y,en,gt),0>gt&&(gt=0),135<b&&(ke+=an+at),an=Math.max(Math.max(an,Ze),an+Ze+at)):(135<b&&(gt+=en+at),en=Math.max(Math.max(en,ct),en+ct+at),an=gy(y,an,ke),0>ke&&(ke=0)),y.la.h(gt,ke),y.Da.h(en,an)}}ds.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function mw(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new ui(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new ui(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ut=iA(y)===90,ct=0,gt=0,Nt=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Xt=x[zt],ue=Xt.Da,Qe=ct===0?0:at;if(ut){var ke=a.computeBusNodeSpacing(Xt)-ot;Xt.S.h(b-(ue.width+ke),Nt+Qe),E=Math.max(E,ue.width+ke),z=Math.max(z,Nt+Qe+ue.height),Nt+=Qe+ue.height}else ke=a.computeBusNodeSpacing(Xt)-ot,Xt.S.h(gt+Qe,b-(ue.height+ke)),z=Math.max(z,ue.height+ke),E=Math.max(E,gt+Qe+ue.width),gt+=Qe+ue.width;ct++}for(ct=0,Xt=gt,zt=Nt,ut?(gt=b+ot,Nt=0):(gt=0,Nt=b+ot),ue=0;ue<nt;ue++)if(ue%2!==0){Qe=x[ue],ke=Qe.Da;var Ze=ct===0?0:at;if(ut){var en=a.computeBusNodeSpacing(Qe)-ot;Qe.S.h(gt+en,Nt+Ze),E=Math.max(E,gt+ke.width+en),z=Math.max(z,Nt+Ze+ke.height),Nt+=Ze+ke.height}else en=a.computeBusNodeSpacing(Qe)-ot,Qe.S.h(gt+Ze,Nt+en),E=Math.max(E,gt+Ze+ke.width),z=Math.max(z,Nt+ke.height+en),gt+=Ze+ke.width;ct++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ut?Math.max(Math.abs(zt),Math.abs(Nt)):Math.max(Math.abs(Xt),Math.abs(gt))),ut?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),ut=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,ut+nt.width),0>ut&&(E-=ut),z=Math.max(z,Math.max(zt,Nt)+a+nt.height),0>x.S.x&&(b=Y0(y,x.S.x,!1,b,ot))):(x.S.h(E+a,b+ot/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Xt,gt)+a+nt.width),Nt=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,Nt+nt.height),0>Nt&&(z-=Nt),0>x.S.y&&(b=Y0(y,x.S.y,!0,b,ot)))),new ui(b,0,E,z)}function vw(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new ui(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new ui(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ut=iA(y)===270,ct=0,gt=0,Nt=0,zt=0;zt<nt;zt++)if(!(zt%2!==0||1<nt&&zt===nt-1)){var Xt=x[zt],ue=Xt.Da,Qe=ct===0?0:at;if(ut){var ke=a.computeBusNodeSpacing(Xt)-ot;Nt-=Qe+ue.height,Xt.S.h(b-(ue.width+ke),Nt),E=Math.max(E,ue.width+ke),z=Math.max(z,Math.abs(Nt))}else ke=a.computeBusNodeSpacing(Xt)-ot,gt-=Qe+ue.width,Xt.S.h(gt,b-(ue.height+ke)),z=Math.max(z,ue.height+ke),E=Math.max(E,Math.abs(gt));ct++}for(ct=0,Xt=gt,zt=Nt,ut?(gt=b+ot,Nt=0):(gt=0,Nt=b+ot),ue=0;ue<nt;ue++)if(ue%2!==0){Qe=x[ue],ke=Qe.Da;var Ze=ct===0?0:at;if(ut){var en=a.computeBusNodeSpacing(Qe)-ot;Nt-=Ze+ke.height,Qe.S.h(gt+en,Nt),E=Math.max(E,gt+ke.width+en),z=Math.max(z,Math.abs(Nt))}else en=a.computeBusNodeSpacing(Qe)-ot,gt-=Ze+ke.width,Qe.S.h(gt,Nt+en),z=Math.max(z,Nt+ke.height+en),E=Math.max(E,Math.abs(gt));ct++}for(1<nt&&nt%2===1&&(at=x[nt-1],ct=at.Da,a=a.computeBusLastRowSpacing(at,ut?Math.max(Math.abs(zt),Math.abs(Nt)):Math.max(Math.abs(Xt),Math.abs(gt))),ut?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-ct.height-a),gt=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,gt+ct.width),0>gt&&(E-=gt),z=Math.max(z,Math.abs(Math.min(zt,Nt))+a+ct.height),0>at.S.x&&(b=Y0(y,at.S.x,!1,b,ot))):(at.S.h(-E-ct.width-a,b+ot/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min(Xt,gt))+a+ct.width),Nt=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,Nt+ct.height),0>Nt&&(z-=Nt),0>at.S.y&&(b=Y0(y,at.S.y,!0,b,ot)))),y=0;y<nt;y++)ot=x[y],ut?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+E,ot.S.y);return new ui(b,0,E,z)}ds.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},ds.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Y0(a,y,x,b,E){a=a.children;for(var z=a.length,nt=0;nt<z;nt++)x?a[nt].S.h(a[nt].S.x,a[nt].S.y-y):a[nt].S.h(a[nt].S.x-y,a[nt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function fy(a,y,x){switch(a.alignment){case dp:case $p:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case ef:return a.width>y?a.width:y;case nf:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case If:case rf:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case kf:return a.width-a.focus.x+a.nodeSpacing/2+y;case df:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function gy(a,y,x){switch(a.alignment){case dp:case $p:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case ef:return a.height>y?a.height:y;case nf:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case If:case rf:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case kf:return a.height-a.focus.y+a.nodeSpacing/2+y;case df:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function py(a,y,x){switch(a){case $p:y/=2,x/=2;break;case dp:y/=2,x/=2;break;case ef:x=y=0;break;case nf:break;default:mn("Unhandled alignment value "+a.toString())}return new Ue(y,x)}function Og(a,y,x,b,E,z){y=py(y,x,b),hp(a,y.x,y.y,E,z)}function hp(a,y,x,b,E){if(y!==0||x!==0)for(a=a.children;b<=E;b++){var z=a[b].S;z.x+=y,z.y+=x}}function J0(a,y,x,b){var E=y.parent;switch(a.ud){case tf:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case cp:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:mn("Unhandled path value "+a.ud.toString())}}function q0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function yw(a,y,x,b,E,z,nt,ot){var at=iA(y),ut=at===90||at===270,ct=y.nodeSpacing;y=b;var gt=E;b=z;var Nt=nt,zt=x.Yo,Xt=x.kp;nt=x.Da;var ue=ut?Math.max(Nt,nt.height):Math.max(b,nt.width);if((zt===null||at!==iA(x))&&(zt=vc(a,2),Xt=vc(a,2),ut?(zt[0].h(0,0),zt[1].h(0,nt.height),Xt[0].h(nt.width,0),Xt[1].h(Xt[0].x,zt[1].y)):(zt[0].h(0,0),zt[1].h(nt.width,0),Xt[0].h(0,nt.height),Xt[1].h(zt[1].x,Xt[0].y))),ut){if(Nt=9999999,!(gt===null||2>gt.length||zt===null||2>zt.length))for(E=x=0;x<gt.length&&E<zt.length;){z=gt[x];var Qe=zt[E];at=Qe.x,ut=Qe.y,at+=b;var ke=z;x+1<gt.length&&(ke=gt[x+1]);var Ze=Qe;Qe=Ze.x,Ze=Ze.y,E+1<zt.length&&(Ze=zt[E+1],Qe=Ze.x,Ze=Ze.y,Qe+=b);var en=Nt;z.y===ut?en=at-z.x:z.y>ut&&z.y<Ze?en=at+(z.y-ut)/(Ze-ut)*(Qe-at)-z.x:ut>z.y&&ut<ke.y&&(en=at-(z.x+(ut-z.y)/(ke.y-z.y)*(ke.x-z.x))),en<Nt&&(Nt=en),ke.y<=z.y?x++:Ze<=ut?E++:(ke.y<=Ze&&x++,Ze<=ke.y&&E++)}if(Nt=b-Nt,Nt+=ct,x=zt,E=Nt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ct=vc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)ut=x[z++],ct[b++].h(ut.x+E,ut.y);for(;at<y.length;)ut=y[at++],ct[b++].h(ut.x,ut.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)ut=x[z++],ct[b++].h(ut.x+E,ut.y);for(x=vc(a,b),at=0;at<b;at++)x[at].assign(ct[at]);pA(a,ct),b=x}if(z=Xt,at=Nt,gt===null||2>gt.length||z===null||2>z.length)E=null;else{for(ct=vc(a,gt.length+z.length),E=ut=x=0;x<gt.length&&gt[x].y<z[0].y;)ke=gt[x++],ct[E++].h(ke.x,ke.y);for(;ut<z.length;)ke=z[ut++],ct[E++].h(ke.x+at,ke.y);for(z=z[z.length-1].y;x<gt.length&&gt[x].y<=z;)x++;for(;x<gt.length&&gt[x].y>z;)at=gt[x++],ct[E++].h(at.x,at.y);for(z=vc(a,E),x=0;x<E;x++)z[x].assign(ct[x]);pA(a,ct),E=z}return z=Math.max(0,Nt)+nt.width,nt=ue,pA(a,y),pA(a,zt),pA(a,gt),pA(a,Xt),ot[0]=b,ot[1]=E,new ui(Nt,0,z,nt)}if(b=9999999,!(gt===null||2>gt.length||zt===null||2>zt.length))for(E=x=0;x<gt.length&&E<zt.length;)z=gt[x],Qe=zt[E],at=Qe.x,ut=Qe.y,ut+=Nt,ke=z,x+1<gt.length&&(ke=gt[x+1]),Ze=Qe,Qe=Ze.x,Ze=Ze.y,E+1<zt.length&&(Ze=zt[E+1],Qe=Ze.x,Ze=Ze.y,Ze+=Nt),en=b,z.x===at?en=ut-z.y:z.x>at&&z.x<Qe?en=ut+(z.x-at)/(Qe-at)*(Ze-ut)-z.y:at>z.x&&at<ke.x&&(en=ut-(z.y+(at-z.x)/(ke.x-z.x)*(ke.y-z.y))),en<b&&(b=en),ke.x<=z.x?x++:Qe<=at?E++:(ke.x<=Qe&&x++,Qe<=ke.x&&E++);if(Nt-=b,Nt+=ct,x=zt,E=Nt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ct=vc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)ut=x[z++],ct[b++].h(ut.x,ut.y+E);for(;at<y.length;)ut=y[at++],ct[b++].h(ut.x,ut.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)ut=x[z++],ct[b++].h(ut.x,ut.y+E);for(x=vc(a,b),at=0;at<b;at++)x[at].assign(ct[at]);pA(a,ct),b=x}if(z=Xt,at=Nt,gt===null||2>gt.length||z===null||2>z.length)E=null;else{for(ct=vc(a,gt.length+z.length),E=ut=x=0;x<gt.length&&gt[x].x<z[0].x;)ke=gt[x++],ct[E++].h(ke.x,ke.y);for(;ut<z.length;)ke=z[ut++],ct[E++].h(ke.x,ke.y+at);for(z=z[z.length-1].x;x<gt.length&&gt[x].x<=z;)x++;for(;x<gt.length&&gt[x].x>z;)at=gt[x++],ct[E++].h(at.x,at.y);for(z=vc(a,E),x=0;x<E;x++)z[x].assign(ct[x]);pA(a,ct),E=z}return z=ue,nt=Math.max(0,Nt)+nt.height,pA(a,y),pA(a,zt),pA(a,gt),pA(a,Xt),ot[0]=b,ot[1]=E,new ui(Nt,0,z,nt)}function vc(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Ue;return a}function pA(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}ds.prototype.arrangeTrees=function(){if(this.Rb===rv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof jd){var x=y.node;if(x!==null){var b=x.position;x=b.x,b=b.y,isFinite(x)||(x=0),isFinite(b)||(b=0),my(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof jd&&a.push(x);switch(this.sorting){case Xp:break;case Km:a.reverse();break;case Gm:a.sort(this.comparer);break;case Wm:a.sort(this.comparer),a.reverse();break;default:mn("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,b=0;b<a.length;b++){var E=a[b];switch(my(this,E,y+E.la.x,x+E.la.y),this.Rb){case iv:x+=E.Da.height+this.$d.height;break;case xy:y+=E.Da.width+this.$d.width;break;default:mn("Unhandled arrangement value "+this.Rb.toString())}}}};function my(a,y,x,b){if(y!==null){y.x=x,y.y=b,y=y.children;for(var E=y.length,z=0;z<E;z++){var nt=y[z];my(a,nt,x+nt.S.x,b+nt.S.y)}}}ds.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},ds.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},ds.prototype.Gu=function(){if(this.layerStyle===ov){for(var a=this.$v,y=[],x=null,b=this.network.vertexes.iterator;b.next();){var E=b.value;x===null?x=E.bounds.copy():x.ed(E.bounds);var z=y[E.level];z===void 0?z=this.computeLayerSpacing(E):z=Math.max(z,this.computeLayerSpacing(E)),y[E.level]=z}for(b=0;b<y.length;b++)y[b]===void 0&&(y[b]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),b=new Ue(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Ue(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var nt=0;nt<a.length;nt++)z+=a[nt]+y[nt];for(nt=0;nt<a.length;nt++){var ot=a[nt]+y[nt];this.angle===270?(z-=ot,E.push(new ui(0,z,x,ot))):this.angle===90?(E.push(new ui(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new ui(z,0,ot,x))):(E.push(new ui(z,0,ot,x)),z+=ot)}this.commitLayers(E,b)}},ds.prototype.commitLayers=function(){},ds.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ds.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof jd&&ww(this,y)}};function ww(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ww(a,y[b])}}ds.prototype.setPortSpots=function(a){var y=a.alignment;if(dg(y)){var x=this.ud===tf,b=iA(a);switch(b){case 0:var E=el;break;case 90:E=jl;break;case 180:E=ca;break;default:E=Ka}var z=a.children,nt=z.length;switch(y){case If:case rf:for(y=0;y<nt;y++){var ot=z[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var at=b===90||b===270?ca:Ka;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=ca;break;case 90:at=Ka;break;case 180:at=el;break;default:at=jl}else y%2===0&&(at=b===90||b===270?el:jl);x?(a.setsPortSpot&&(ot.fromSpot=E),a.setsChildPortSpot&&(ot.toSpot=at)):(a.setsPortSpot&&(ot.fromSpot=at),a.setsChildPortSpot&&(ot.toSpot=E))}}break;case kf:for(b=b===90||b===270?el:jl,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)));break;case df:for(b=b===90||b===270?ca:Ka,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)))}}else if(x=iA(a),this.ud===tf){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=el;break;case 90:b.fromSpot=jl;break;case 180:b.fromSpot=ca;break;default:b.fromSpot=Ka}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=ca;break;case 90:b.toSpot=Ka;break;case 180:b.toSpot=el;break;default:b.toSpot=jl}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=el;break;case 90:b.toSpot=jl;break;case 180:b.toSpot=ca;break;default:b.toSpot=Ka}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=ca;break;case 90:b.fromSpot=Ka;break;case 180:b.fromSpot=el;break;default:b.fromSpot=jl}else b.fromSpot=a.childPortSpot}};function iA(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}ds.prototype.computeLayerSpacing=function(a){var y=iA(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var b=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*b:a.width*b}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},ds.prototype.computeNodeIndent=function(a){var y=iA(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var b=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*b:a.height*b}return x=Math.max(0,x)},rn.Object.defineProperties(ds.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==nv&&a!==yy&&a!==vy&&a!==wy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Sy&&a!==Cy&&a!==ov||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==iv&&a!==xy&&a!==rv||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==Xp&&a!==Km&&a!==Gm&&!Wm||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):mn("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==ev&&a!==Vm||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==Xp&&a!==Km&&a!==Gm&&!Wm||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==ev&&a!==Vm||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var tv=new jn(ds,"PathDefault",-1),tf=new jn(ds,"PathDestination",0),cp=new jn(ds,"PathSource",1),Xp=new jn(ds,"SortingForwards",10),Km=new jn(ds,"SortingReverse",11),Gm=new jn(ds,"SortingAscending",12),Wm=new jn(ds,"SortingDescending",13),$p=new jn(ds,"AlignmentCenterSubtrees",20),dp=new jn(ds,"AlignmentCenterChildren",21),ef=new jn(ds,"AlignmentStart",22),nf=new jn(ds,"AlignmentEnd",23),If=new jn(ds,"AlignmentBus",24),rf=new jn(ds,"AlignmentBusBranching",25),kf=new jn(ds,"AlignmentTopLeftBus",26),df=new jn(ds,"AlignmentBottomRightBus",27),ev=new jn(ds,"CompactionNone",30),Vm=new jn(ds,"CompactionBlock",31),nv=new jn(ds,"StyleLayered",40),vy=new jn(ds,"StyleLastParents",41),yy=new jn(ds,"StyleAlternating",42),wy=new jn(ds,"StyleRootOnly",43),iv=new jn(ds,"ArrangementVertical",50),xy=new jn(ds,"ArrangementHorizontal",51),rv=new jn(ds,"ArrangementFixedRoots",52),Sy=new jn(ds,"LayerIndividual",60),Cy=new jn(ds,"LayerSiblings",61),ov=new jn(ds,"LayerUniform",62);ds.className="TreeLayout",ds.PathDefault=tv,ds.PathDestination=tf,ds.PathSource=cp,ds.SortingForwards=Xp,ds.SortingReverse=Km,ds.SortingAscending=Gm,ds.SortingDescending=Wm,ds.AlignmentCenterSubtrees=$p,ds.AlignmentCenterChildren=dp,ds.AlignmentStart=ef,ds.AlignmentEnd=nf,ds.AlignmentBus=If,ds.AlignmentBusBranching=rf,ds.AlignmentTopLeftBus=kf,ds.AlignmentBottomRightBus=df,ds.CompactionNone=ev,ds.CompactionBlock=Vm,ds.StyleLayered=nv,ds.StyleLastParents=vy,ds.StyleAlternating=yy,ds.StyleRootOnly=wy,ds.ArrangementVertical=iv,ds.ArrangementHorizontal=xy,ds.ArrangementFixedRoots=rv,ds.LayerIndividual=Sy,ds.LayerSiblings=Cy,ds.LayerUniform=ov;function Ap(a){ma.call(this,a)}kn(Ap,ma),Ap.prototype.createVertex=function(){return new jd(this)},Ap.prototype.createEdge=function(){return new Yp(this)},Ap.className="TreeNetwork";function jd(a){xu.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Ue(0,0),this.Da=new Gi(0,0),this.la=new Ue(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Xp,this.hd=zv,this.Kb=0,this.Jb=dp,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Vm,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Fs,this.wr=!0,this.Dp=Fs}kn(jd,xu),jd.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},rn.Object.defineProperties(jd.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),jd.className="TreeVertex";function Yp(a){Mc.call(this,a),this.$t=new Ue(0,0)}kn(Yp,Mc),Yp.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,b=null;switch(y.ud){case tf:x=this.fromVertex,b=this.toVertex;break;case cp:x=this.toVertex,b=this.fromVertex;break;default:mn("Unhandled path value "+y.ud.toString())}if(x!==null&&b!==null){var E=this.$t;if(E.x!==0||E.y!==0||x.qA){b=x.bounds;var z=iA(x),nt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var at=a.curve===Yc,ut=a.isOrthogonal,ct;if(a.uh(),ut||at){for(ct=2;4<a.pointsCount;)a.pv(2);var gt=a.i(1),Nt=a.i(2)}else{for(ct=1;3<a.pointsCount;)a.pv(1);gt=a.i(0),Nt=a.i(a.pointsCount-1)}var zt=a.i(a.pointsCount-1);z===0?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&gt.y>zt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&&gt.y<zt.y-x.rowIndent&&(z=Math.max(z,Math.min(gt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(ct,gt.x,z),ct++,a.m(ct,b.right+nt,z),ct++,a.m(ct,b.right+nt+(E.x-ot)/3,z),ct++,a.m(ct,b.right+nt+2*(E.x-ot)/3,z),ct++,a.m(ct,b.right+nt+(E.x-ot),z),ct++,a.m(ct,Nt.x,z)):(ut&&(a.m(ct,b.right+nt/2,gt.y),ct++),a.m(ct,b.right+nt/2,z),ct++,a.m(ct,b.right+nt+E.x-(ut?ot/2:ot),z),ct++,ut&&a.m(ct,a.i(ct-1).x,Nt.y))):z===90?(x.alignment===nf?(z=b.right+E.x,E.x===0&&gt.x>zt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&&gt.x<zt.x-x.rowIndent&&(z=Math.max(z,Math.min(gt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(ct,z,gt.y),ct++,a.m(ct,z,b.bottom+nt),ct++,a.m(ct,z,b.bottom+nt+(E.y-ot)/3),ct++,a.m(ct,z,b.bottom+nt+2*(E.y-ot)/3),ct++,a.m(ct,z,b.bottom+nt+(E.y-ot)),ct++,a.m(ct,z,Nt.y)):(ut&&(a.m(ct,gt.x,b.bottom+nt/2),ct++),a.m(ct,z,b.bottom+nt/2),ct++,a.m(ct,z,b.bottom+nt+E.y-(ut?ot/2:ot)),ct++,ut&&a.m(ct,Nt.x,a.i(ct-1).y))):z===180?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&gt.y>zt.y+x.rowIndent&&(z=Math.min(z,Math.max(gt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&&gt.y<zt.y-x.rowIndent&&(z=Math.max(z,Math.min(gt.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.top-x.la.y+E.y:b.y+b.height/2+E.y,at?(a.m(ct,gt.x,z),ct++,a.m(ct,b.left-nt,z),ct++,a.m(ct,b.left-nt+(E.x+ot)/3,z),ct++,a.m(ct,b.left-nt+2*(E.x+ot)/3,z),ct++,a.m(ct,b.left-nt+(E.x+ot),z),ct++,a.m(ct,Nt.x,z)):(ut&&(a.m(ct,b.left-nt/2,gt.y),ct++),a.m(ct,b.left-nt/2,z),ct++,a.m(ct,b.left-nt+E.x+(ut?ot/2:ot),z),ct++,ut&&a.m(ct,a.i(ct-1).x,Nt.y))):z===270?(x.alignment===nf?(z=b.right+E.x,E.x===0&&gt.x>zt.x+x.rowIndent&&(z=Math.min(z,Math.max(gt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&&gt.x<zt.x-x.rowIndent&&(z=Math.max(z,Math.min(gt.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?b.left-x.la.x+E.x:b.x+b.width/2+E.x,at?(a.m(ct,z,gt.y),ct++,a.m(ct,z,b.top-nt),ct++,a.m(ct,z,b.top-nt+(E.y+ot)/3),ct++,a.m(ct,z,b.top-nt+2*(E.y+ot)/3),ct++,a.m(ct,z,b.top-nt+(E.y+ot)),ct++,a.m(ct,z,Nt.y)):(ut&&(a.m(ct,gt.x,b.top-nt/2),ct++),a.m(ct,z,b.top-nt/2),ct++,a.m(ct,z,b.top-nt+E.y+(ut?ot/2:ot)),ct++,ut&&a.m(ct,Nt.x,a.i(ct-1).y))):mn("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=iA(x),y!==iA(E)&&(nt=b.computeLayerSpacing(x),ot=x.bounds,x=E.bounds,y===0&&x.left-ot.right<nt+1||y===90&&x.top-ot.bottom<nt+1||y===180&&ot.left-x.right<nt+1||y===270&&ot.top-x.bottom<nt+1||(a.vg(),x=a.curve===Yc,E=a.isOrthogonal,b=dg(this.fromVertex.alignment),a.uh(),y===0?(y=ot.right+nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=ot.bottom+nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=ot.left-nt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=ot.top-nt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},rn.Object.defineProperties(Yp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),Yp.className="TreeEdge",oe.prototype.initializeStandardTools=function(){this.gb("Action",new br,this.mouseDownTools),this.gb("Relinking",new ri,this.mouseDownTools),this.gb("LinkReshaping",new ci,this.mouseDownTools),this.gb("Rotating",new Jn,this.mouseDownTools),this.gb("Resizing",new Ti,this.mouseDownTools),this.gb("Linking",new cn,this.mouseMoveTools),this.gb("Dragging",new En,this.mouseMoveTools),this.gb("DragSelecting",new lr,this.mouseMoveTools),this.gb("Panning",new nr,this.mouseMoveTools),this.gb("ContextMenu",new co,this.mouseUpTools),this.gb("TextEditing",new rs,this.mouseUpTools),this.gb("ClickCreating",new ar,this.mouseUpTools),this.gb("ClickSelecting",new xo,this.mouseUpTools)},Zc("Horizontal",new Wn),Zc("Spot",new qi),Zc("Table",new Wr),Zc("Viewbox",new Ui),Zc("TableRow",new Nr),Zc("TableColumn",new _i),Zc("Graduated",new Yo),Zc("Grid",new zr),Ba.add("GraphLinksModel",Qu),Ba.add("TreeModel",gd);var sv=Ne.go,By={get licenseKey(){return Kn.licenseKey},set licenseKey(a){Kn.licenseKey=a},get version(){return Kn.version},Group:To,EnumValue:jn,List:Bi,Set:Pi,Map:gr,Point:Ue,Size:Gi,Rect:ui,Margin:Gr,Spot:fr,Geometry:$i,PathFigure:nl,PathSegment:ys,InputEvent:Cu,DiagramEvent:wd,ChangedEvent:La,Model:jr,GraphLinksModel:ws,TreeModel:Jh,Binding:ql,Transaction:Jl,UndoManager:Bt,CommandHandler:Re,Tool:St,DraggingTool:En,DraggingInfo:lh,DraggingOptions:st,LinkingBaseTool:on,LinkingTool:cn,RelinkingTool:ri,LinkReshapingTool:ci,ResizingTool:Ti,RotatingTool:Jn,ClickSelectingTool:xo,ActionTool:br,ClickCreatingTool:ar,HTMLInfo:vr,ContextMenuTool:co,DragSelectingTool:lr,PanningTool:nr,TextEditingTool:rs,ToolManager:oe,Animation:Ha,AnimationManager:ua,AnimationTrigger:wh,Layer:Aa,Diagram:Kn,Palette:ft,Overview:xt,Brush:js,GraphObject:pn,Panel:fi,RowColumnDefinition:Zl,Shape:ko,TextBlock:oa,Picture:cc,Part:$r,Adornment:Ls,Node:cr,Link:Zi,Placeholder:Zh,Layout:Va,LayoutNetwork:ma,LayoutVertex:xu,LayoutEdge:Mc,GridLayout:ih,PanelLayout:Sn,CircularLayout:Al,CircularNetwork:Wp,CircularVertex:jm,CircularEdge:H0,ForceDirectedLayout:ph,ForceDirectedNetwork:up,ForceDirectedVertex:Um,ForceDirectedEdge:Rm,LayeredDigraphLayout:Vs,LayeredDigraphNetwork:Zp,LayeredDigraphVertex:md,LayeredDigraphEdge:Qm,TreeLayout:ds,TreeNetwork:Ap,TreeVertex:jd,TreeEdge:Yp};typeof sv=="object"&&sv.version&&er("WARNING: a `go` object on the root object is already defined. "+("Debug"in sv?"debug ":"")+"version: "+sv.version+", replaced with version: "+By.version),Kn.prototype.go=By,Ne.go=By,typeof di.exports=="object"&&(di.exports=typeof bt.g!="undefined"?bt.g.go:self.go)}();var Lt=typeof bt.g!="undefined"?bt.g.go:self.go;const ge=typeof bt.g!="undefined"?bt.g.go:self.go,se=ge.Group,De=ge.EnumValue,re=ge.List,le=ge.Set,Et=ge.Map,Tt=ge.Point,ee=ge.Size,Ct=ge.Rect,Wt=ge.Margin,Gt=ge.Spot,Jt=ge.Geometry,wt=ge.PathFigure,et=ge.PathSegment,tt=ge.InputEvent,lt=ge.DiagramEvent,rt=ge.ChangedEvent,ht=ge.Model,dt=ge.GraphLinksModel,yt=ge.TreeModel,Mt=ge.Binding,jt=ge.Transaction,Rt=ge.UndoManager,ae=ge.CommandHandler,he=ge.Tool,pe=ge.DraggingTool,Te=ge.DraggingInfo,ne=ge.LinkingBaseTool,Ke=ge.LinkingTool,Vt=ge.RelinkingTool,$e=ge.LinkReshapingTool,Ge=ge.ResizingTool,Oe=ge.RotatingTool,Ve=ge.ClickSelectingTool,_e=ge.ActionTool,xe=ge.ClickCreatingTool,ie=ge.HTMLInfo,be=ge.ContextMenuTool,Fn=ge.DragSelectingTool,Mn=ge.PanningTool,Xe=ge.TextEditingTool,In=ge.ToolManager,Xn=ge.Animation,pi=ge.AnimationManager,$n=ge.AnimationTrigger,bi=ge.Layer,sn=ge.Diagram,Li=ge.Palette,ji=ge.Overview,ve=ge.Brush,hn=ge.GraphObject,Ae=ge.Panel,Ot=ge.RowColumnDefinition,Ft=ge.Shape,Kt=ge.TextBlock,Ee=ge.TextBlockMetrics,je=ge.Picture,ce=ge.Part,Be=ge.Adornment,$t=ge.Node,Pt=ge.Link,mt=ge.Placeholder,Zt=ge.Layout,Se=ge.LayoutNetwork,Dt=ge.LayoutVertex,Ie=ge.LayoutEdge,nn=ge.GridLayout,zn=ge.PanelLayout,xn=ge.CircularLayout,li=ge.CircularNetwork,Qi=ge.CircularVertex,Wi=ge.CircularEdge,pr=ge.ForceDirectedLayout,xr=ge.ForceDirectedNetwork,qr=ge.ForceDirectedVertex,Vr=ge.ForceDirectedEdge,Jr=ge.LayeredDigraphLayout,Ir=ge.LayeredDigraphNetwork,Xr=ge.LayeredDigraphVertex,to=ge.LayeredDigraphEdge,ho=ge.TreeLayout,cs=ge.TreeNetwork,no=ge.TreeVertex,Is=ge.TreeEdge,So=ge.version},64270:function(di){(function(Pn,bt){di.exports=bt()})(this,function(){"use strict";var Pn=function(kt,It){return Pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ht,Ut){Ht.__proto__=Ut}||function(Ht,Ut){for(var Fe in Ut)Object.prototype.hasOwnProperty.call(Ut,Fe)&&(Ht[Fe]=Ut[Fe])},Pn(kt,It)};function bt(kt,It){if(typeof It!="function"&&It!==null)throw new TypeError("Class extends value "+String(It)+" is not a constructor or null");Pn(kt,It);function Ht(){this.constructor=kt}kt.prototype=It===null?Object.create(It):(Ht.prototype=It.prototype,new Ht)}var Lt=function(){return Lt=Object.assign||function(It){for(var Ht,Ut=1,Fe=arguments.length;Ut<Fe;Ut++){Ht=arguments[Ut];for(var qe in Ht)Object.prototype.hasOwnProperty.call(Ht,qe)&&(It[qe]=Ht[qe])}return It},Lt.apply(this,arguments)};function ge(kt,It,Ht,Ut){function Fe(qe){return qe instanceof Ht?qe:new Ht(function(Nn){Nn(qe)})}return new(Ht||(Ht=Promise))(function(qe,Nn){function ii(Ki){try{Ri(Ut.next(Ki))}catch(ur){Nn(ur)}}function Un(Ki){try{Ri(Ut.throw(Ki))}catch(ur){Nn(ur)}}function Ri(Ki){Ki.done?qe(Ki.value):Fe(Ki.value).then(ii,Un)}Ri((Ut=Ut.apply(kt,It||[])).next())})}function se(kt,It){var Ht={label:0,sent:function(){if(qe[0]&1)throw qe[1];return qe[1]},trys:[],ops:[]},Ut,Fe,qe,Nn;return Nn={next:ii(0),throw:ii(1),return:ii(2)},typeof Symbol=="function"&&(Nn[Symbol.iterator]=function(){return this}),Nn;function ii(Ri){return function(Ki){return Un([Ri,Ki])}}function Un(Ri){if(Ut)throw new TypeError("Generator is already executing.");for(;Ht;)try{if(Ut=1,Fe&&(qe=Ri[0]&2?Fe.return:Ri[0]?Fe.throw||((qe=Fe.return)&&qe.call(Fe),0):Fe.next)&&!(qe=qe.call(Fe,Ri[1])).done)return qe;switch(Fe=0,qe&&(Ri=[Ri[0]&2,qe.value]),Ri[0]){case 0:case 1:qe=Ri;break;case 4:return Ht.label++,{value:Ri[1],done:!1};case 5:Ht.label++,Fe=Ri[1],Ri=[0];continue;case 7:Ri=Ht.ops.pop(),Ht.trys.pop();continue;default:if(qe=Ht.trys,!(qe=qe.length>0&&qe[qe.length-1])&&(Ri[0]===6||Ri[0]===2)){Ht=0;continue}if(Ri[0]===3&&(!qe||Ri[1]>qe[0]&&Ri[1]<qe[3])){Ht.label=Ri[1];break}if(Ri[0]===6&&Ht.label<qe[1]){Ht.label=qe[1],qe=Ri;break}if(qe&&Ht.label<qe[2]){Ht.label=qe[2],Ht.ops.push(Ri);break}qe[2]&&Ht.ops.pop(),Ht.trys.pop();continue}Ri=It.call(kt,Ht)}catch(Ki){Ri=[6,Ki],Fe=0}finally{Ut=qe=0}if(Ri[0]&5)throw Ri[1];return{value:Ri[0]?Ri[1]:void 0,done:!0}}}function De(kt,It,Ht){if(Ht||arguments.length===2)for(var Ut=0,Fe=It.length,qe;Ut<Fe;Ut++)(qe||!(Ut in It))&&(qe||(qe=Array.prototype.slice.call(It,0,Ut)),qe[Ut]=It[Ut]);return kt.concat(qe||It)}for(var re=function(){function kt(It,Ht,Ut,Fe){this.left=It,this.top=Ht,this.width=Ut,this.height=Fe}return kt.prototype.add=function(It,Ht,Ut,Fe){return new kt(this.left+It,this.top+Ht,this.width+Ut,this.height+Fe)},kt.fromClientRect=function(It,Ht){return new kt(Ht.left+It.windowBounds.left,Ht.top+It.windowBounds.top,Ht.width,Ht.height)},kt.fromDOMRectList=function(It,Ht){var Ut=Array.from(Ht).find(function(Fe){return Fe.width!==0});return Ut?new kt(Ut.left+It.windowBounds.left,Ut.top+It.windowBounds.top,Ut.width,Ut.height):kt.EMPTY},kt.EMPTY=new kt(0,0,0,0),kt}(),le=function(kt,It){return re.fromClientRect(kt,It.getBoundingClientRect())},Et=function(kt){var It=kt.body,Ht=kt.documentElement;if(!It||!Ht)throw new Error("Unable to get document size");var Ut=Math.max(Math.max(It.scrollWidth,Ht.scrollWidth),Math.max(It.offsetWidth,Ht.offsetWidth),Math.max(It.clientWidth,Ht.clientWidth)),Fe=Math.max(Math.max(It.scrollHeight,Ht.scrollHeight),Math.max(It.offsetHeight,Ht.offsetHeight),Math.max(It.clientHeight,Ht.clientHeight));return new re(0,0,Ut,Fe)},Tt=function(kt){for(var It=[],Ht=0,Ut=kt.length;Ht<Ut;){var Fe=kt.charCodeAt(Ht++);if(Fe>=55296&&Fe<=56319&&Ht<Ut){var qe=kt.charCodeAt(Ht++);(qe&64512)===56320?It.push(((Fe&1023)<<10)+(qe&1023)+65536):(It.push(Fe),Ht--)}else It.push(Fe)}return It},ee=function(){for(var kt=[],It=0;It<arguments.length;It++)kt[It]=arguments[It];if(String.fromCodePoint)return String.fromCodePoint.apply(String,kt);var Ht=kt.length;if(!Ht)return"";for(var Ut=[],Fe=-1,qe="";++Fe<Ht;){var Nn=kt[Fe];Nn<=65535?Ut.push(Nn):(Nn-=65536,Ut.push((Nn>>10)+55296,Nn%1024+56320)),(Fe+1===Ht||Ut.length>16384)&&(qe+=String.fromCharCode.apply(String,Ut),Ut.length=0)}return qe},Ct="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Gt=0;Gt<Ct.length;Gt++)Wt[Ct.charCodeAt(Gt)]=Gt;for(var Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<Jt.length;et++)wt[Jt.charCodeAt(et)]=et;for(var tt=function(kt){var It=kt.length*.75,Ht=kt.length,Ut,Fe=0,qe,Nn,ii,Un;kt[kt.length-1]==="="&&(It--,kt[kt.length-2]==="="&&It--);var Ri=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(It):new Array(It),Ki=Array.isArray(Ri)?Ri:new Uint8Array(Ri);for(Ut=0;Ut<Ht;Ut+=4)qe=wt[kt.charCodeAt(Ut)],Nn=wt[kt.charCodeAt(Ut+1)],ii=wt[kt.charCodeAt(Ut+2)],Un=wt[kt.charCodeAt(Ut+3)],Ki[Fe++]=qe<<2|Nn>>4,Ki[Fe++]=(Nn&15)<<4|ii>>2,Ki[Fe++]=(ii&3)<<6|Un&63;return Ri},lt=function(kt){for(var It=kt.length,Ht=[],Ut=0;Ut<It;Ut+=2)Ht.push(kt[Ut+1]<<8|kt[Ut]);return Ht},rt=function(kt){for(var It=kt.length,Ht=[],Ut=0;Ut<It;Ut+=4)Ht.push(kt[Ut+3]<<24|kt[Ut+2]<<16|kt[Ut+1]<<8|kt[Ut]);return Ht},ht=5,dt=11,yt=2,Mt=dt-ht,jt=65536>>ht,Rt=1<<ht,ae=Rt-1,he=1024>>ht,pe=jt+he,Te=pe,ne=32,Ke=Te+ne,Vt=65536>>dt,$e=1<<Mt,Ge=$e-1,Oe=function(kt,It,Ht){return kt.slice?kt.slice(It,Ht):new Uint16Array(Array.prototype.slice.call(kt,It,Ht))},Ve=function(kt,It,Ht){return kt.slice?kt.slice(It,Ht):new Uint32Array(Array.prototype.slice.call(kt,It,Ht))},_e=function(kt,It){var Ht=tt(kt),Ut=Array.isArray(Ht)?rt(Ht):new Uint32Array(Ht),Fe=Array.isArray(Ht)?lt(Ht):new Uint16Array(Ht),qe=24,Nn=Oe(Fe,qe/2,Ut[4]/2),ii=Ut[5]===2?Oe(Fe,(qe+Ut[4])/2):Ve(Ut,Math.ceil((qe+Ut[4])/4));return new xe(Ut[0],Ut[1],Ut[2],Ut[3],Nn,ii)},xe=function(){function kt(It,Ht,Ut,Fe,qe,Nn){this.initialValue=It,this.errorValue=Ht,this.highStart=Ut,this.highValueIndex=Fe,this.index=qe,this.data=Nn}return kt.prototype.get=function(It){var Ht;if(It>=0){if(It<55296||It>56319&&It<=65535)return Ht=this.index[It>>ht],Ht=(Ht<<yt)+(It&ae),this.data[Ht];if(It<=65535)return Ht=this.index[jt+(It-55296>>ht)],Ht=(Ht<<yt)+(It&ae),this.data[Ht];if(It<this.highStart)return Ht=Ke-Vt+(It>>dt),Ht=this.index[Ht],Ht+=It>>ht&Ge,Ht=this.index[Ht],Ht=(Ht<<yt)+(It&ae),this.data[Ht];if(It<=1114111)return this.data[this.highValueIndex]}return this.errorValue},kt}(),ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",be=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Fn=0;Fn<ie.length;Fn++)be[ie.charCodeAt(Fn)]=Fn;var Mn="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==",Xe=50,In=1,Xn=2,pi=3,$n=4,bi=5,sn=7,Li=8,ji=9,ve=10,hn=11,Ae=12,Ot=13,Ft=14,Kt=15,Ee=16,je=17,ce=18,Be=19,$t=20,Pt=21,mt=22,Zt=23,Se=24,Dt=25,Ie=26,nn=27,zn=28,xn=29,li=30,Qi=31,Wi=32,pr=33,xr=34,qr=35,Vr=36,Jr=37,Ir=38,Xr=39,to=40,ho=41,cs=42,no=43,Is=[9001,65288],So="!",Yt="\xD7",ai="\xF7",Jo=_e(Mn),sa=[li,Vr],xa=[In,Xn,pi,bi],va=[ve,Li],Zs=[nn,Ie],Qr=xa.concat(va),Vn=[Ir,Xr,to,xr,qr],Qn=[Kt,Ot],kn=function(kt,It){It===void 0&&(It="strict");var Ht=[],Ut=[],Fe=[];return kt.forEach(function(qe,Nn){var ii=Jo.get(qe);if(ii>Xe?(Fe.push(!0),ii-=Xe):Fe.push(!1),["normal","auto","loose"].indexOf(It)!==-1&&[8208,8211,12316,12448].indexOf(qe)!==-1)return Ut.push(Nn),Ht.push(Ee);if(ii===$n||ii===hn){if(Nn===0)return Ut.push(Nn),Ht.push(li);var Un=Ht[Nn-1];return Qr.indexOf(Un)===-1?(Ut.push(Ut[Nn-1]),Ht.push(Un)):(Ut.push(Nn),Ht.push(li))}if(Ut.push(Nn),ii===Qi)return Ht.push(It==="strict"?Pt:Jr);if(ii===cs||ii===xn)return Ht.push(li);if(ii===no)return qe>=131072&&qe<=196605||qe>=196608&&qe<=262141?Ht.push(Jr):Ht.push(li);Ht.push(ii)}),[Ut,Ht,Fe]},rn=function(kt,It,Ht,Ut){var Fe=Ut[Ht];if(Array.isArray(kt)?kt.indexOf(Fe)!==-1:kt===Fe)for(var qe=Ht;qe<=Ut.length;){qe++;var Nn=Ut[qe];if(Nn===It)return!0;if(Nn!==ve)break}if(Fe===ve)for(var qe=Ht;qe>0;){qe--;var ii=Ut[qe];if(Array.isArray(kt)?kt.indexOf(ii)!==-1:kt===ii)for(var Un=Ht;Un<=Ut.length;){Un++;var Nn=Ut[Un];if(Nn===It)return!0;if(Nn!==ve)break}if(ii!==ve)break}return!1},hi=function(kt,It){for(var Ht=kt;Ht>=0;){var Ut=It[Ht];if(Ut===ve)Ht--;else return Ut}return 0},Ci=function(kt,It,Ht,Ut,Fe){if(Ht[Ut]===0)return Yt;var qe=Ut-1;if(Array.isArray(Fe)&&Fe[qe]===!0)return Yt;var Nn=qe-1,ii=qe+1,Un=It[qe],Ri=Nn>=0?It[Nn]:0,Ki=It[ii];if(Un===Xn&&Ki===pi)return Yt;if(xa.indexOf(Un)!==-1)return So;if(xa.indexOf(Ki)!==-1||va.indexOf(Ki)!==-1)return Yt;if(hi(qe,It)===Li)return ai;if(Jo.get(kt[qe])===hn||(Un===Wi||Un===pr)&&Jo.get(kt[ii])===hn||Un===sn||Ki===sn||Un===ji||[ve,Ot,Kt].indexOf(Un)===-1&&Ki===ji||[je,ce,Be,Se,zn].indexOf(Ki)!==-1||hi(qe,It)===mt||rn(Zt,mt,qe,It)||rn([je,ce],Pt,qe,It)||rn(Ae,Ae,qe,It))return Yt;if(Un===ve)return ai;if(Un===Zt||Ki===Zt)return Yt;if(Ki===Ee||Un===Ee)return ai;if([Ot,Kt,Pt].indexOf(Ki)!==-1||Un===Ft||Ri===Vr&&Qn.indexOf(Un)!==-1||Un===zn&&Ki===Vr||Ki===$t||sa.indexOf(Ki)!==-1&&Un===Dt||sa.indexOf(Un)!==-1&&Ki===Dt||Un===nn&&[Jr,Wi,pr].indexOf(Ki)!==-1||[Jr,Wi,pr].indexOf(Un)!==-1&&Ki===Ie||sa.indexOf(Un)!==-1&&Zs.indexOf(Ki)!==-1||Zs.indexOf(Un)!==-1&&sa.indexOf(Ki)!==-1||[nn,Ie].indexOf(Un)!==-1&&(Ki===Dt||[mt,Kt].indexOf(Ki)!==-1&&It[ii+1]===Dt)||[mt,Kt].indexOf(Un)!==-1&&Ki===Dt||Un===Dt&&[Dt,zn,Se].indexOf(Ki)!==-1)return Yt;if([Dt,zn,Se,je,ce].indexOf(Ki)!==-1)for(var ur=qe;ur>=0;){var vt=It[ur];if(vt===Dt)return Yt;if([zn,Se].indexOf(vt)!==-1)ur--;else break}if([nn,Ie].indexOf(Ki)!==-1)for(var ur=[je,ce].indexOf(Un)!==-1?Nn:qe;ur>=0;){var vt=It[ur];if(vt===Dt)return Yt;if([zn,Se].indexOf(vt)!==-1)ur--;else break}if(Ir===Un&&[Ir,Xr,xr,qr].indexOf(Ki)!==-1||[Xr,xr].indexOf(Un)!==-1&&[Xr,to].indexOf(Ki)!==-1||[to,qr].indexOf(Un)!==-1&&Ki===to||Vn.indexOf(Un)!==-1&&[$t,Ie].indexOf(Ki)!==-1||Vn.indexOf(Ki)!==-1&&Un===nn||sa.indexOf(Un)!==-1&&sa.indexOf(Ki)!==-1||Un===Se&&sa.indexOf(Ki)!==-1||sa.concat(Dt).indexOf(Un)!==-1&&Ki===mt&&Is.indexOf(kt[ii])===-1||sa.concat(Dt).indexOf(Ki)!==-1&&Un===ce)return Yt;if(Un===ho&&Ki===ho){for(var Qt=Ht[qe],de=1;Qt>0&&(Qt--,It[Qt]===ho);)de++;if(de%2!==0)return Yt}return Un===Wi&&Ki===pr?Yt:ai},bn=function(kt,It){It||(It={lineBreak:"normal",wordBreak:"normal"});var Ht=kn(kt,It.lineBreak),Ut=Ht[0],Fe=Ht[1],qe=Ht[2];(It.wordBreak==="break-all"||It.wordBreak==="break-word")&&(Fe=Fe.map(function(ii){return[Dt,li,cs].indexOf(ii)!==-1?Jr:ii}));var Nn=It.wordBreak==="keep-all"?qe.map(function(ii,Un){return ii&&kt[Un]>=19968&&kt[Un]<=40959}):void 0;return[Ut,Fe,Nn]},Ne=function(){function kt(It,Ht,Ut,Fe){this.codePoints=It,this.required=Ht===So,this.start=Ut,this.end=Fe}return kt.prototype.slice=function(){return ee.apply(void 0,this.codePoints.slice(this.start,this.end))},kt}(),Bn=function(kt,It){var Ht=Tt(kt),Ut=bn(Ht,It),Fe=Ut[0],qe=Ut[1],Nn=Ut[2],ii=Ht.length,Un=0,Ri=0;return{next:function(){if(Ri>=ii)return{done:!0,value:null};for(var Ki=Yt;Ri<ii&&(Ki=Ci(Ht,qe,Fe,++Ri,Nn))===Yt;);if(Ki!==Yt||Ri===ii){var ur=new Ne(Ht,Ki,Un,Ri);return Un=Ri,{value:ur,done:!1}}return{done:!0,value:null}}}},_n=1,Ii=2,ni=4,mn=8,Ai=10,Mi=47,er=92,On=9,Si=32,Pr=34,rr=61,Kr=35,sr=36,Br=37,dr=39,Er=40,ao=41,Xi=95,yr=45,Lo=33,xs=60,Uo=62,jn=64,Tr=91,so=93,_r=61,ns=123,Oo=63,yi=125,Bo=124,Hr=126,kr=128,Bi=65533,Po=42,Pi=43,Xo=44,ha=58,fs=59,ba=46,Xs=0,bo=8,jo=11,ps=14,us=31,gr=127,Ue=-1,qo=48,Sa=97,za=101,El=102,ss=117,Vo=122,bs=65,ia=69,ts=70,Ea=85,Mo=90,io=function(kt){return kt>=qo&&kt<=57},Ko=function(kt){return kt>=55296&&kt<=57343},Gi=function(kt){return io(kt)||kt>=bs&&kt<=ts||kt>=Sa&&kt<=El},Ms=function(kt){return kt>=Sa&&kt<=Vo},Gs=function(kt){return kt>=bs&&kt<=Mo},Fa=function(kt){return Ms(kt)||Gs(kt)},Js=function(kt){return kt>=kr},Ho=function(kt){return kt===Ai||kt===On||kt===Si},Ks=function(kt){return Fa(kt)||Js(kt)||kt===Xi},yl=function(kt){return Ks(kt)||io(kt)||kt===yr},wl=function(kt){return kt>=Xs&&kt<=bo||kt===jo||kt>=ps&&kt<=us||kt===gr},Dl=function(kt,It){return kt!==er?!1:It!==Ai},Bs=function(kt,It,Ht){return kt===yr?Ks(It)||Dl(It,Ht):Ks(kt)?!0:!!(kt===er&&Dl(kt,It))},ui=function(kt,It,Ht){return kt===Pi||kt===yr?io(It)?!0:It===ba&&io(Ht):io(kt===ba?It:kt)},Za=function(kt){var It=0,Ht=1;(kt[It]===Pi||kt[It]===yr)&&(kt[It]===yr&&(Ht=-1),It++);for(var Ut=[];io(kt[It]);)Ut.push(kt[It++]);var Fe=Ut.length?parseInt(ee.apply(void 0,Ut),10):0;kt[It]===ba&&It++;for(var qe=[];io(kt[It]);)qe.push(kt[It++]);var Nn=qe.length,ii=Nn?parseInt(ee.apply(void 0,qe),10):0;(kt[It]===ia||kt[It]===za)&&It++;var Un=1;(kt[It]===Pi||kt[It]===yr)&&(kt[It]===yr&&(Un=-1),It++);for(var Ri=[];io(kt[It]);)Ri.push(kt[It++]);var Ki=Ri.length?parseInt(ee.apply(void 0,Ri),10):0;return Ht*(Fe+ii*Math.pow(10,-Nn))*Math.pow(10,Un*Ki)},mh={type:2},ju={type:3},su={type:4},Ao={type:13},zs={type:8},Ns={type:21},Es={type:9},_s={type:10},Nl={type:11},As={type:12},Qs={type:14},Ss={type:23},Gr={type:1},ul={type:25},Ds={type:24},Su={type:26},Ku={type:27},$l={type:28},fr={type:29},Xa={type:31},ol={type:32},Fl=function(){function kt(){this._value=[]}return kt.prototype.write=function(It){this._value=this._value.concat(Tt(It))},kt.prototype.read=function(){for(var It=[],Ht=this.consumeToken();Ht!==ol;)It.push(Ht),Ht=this.consumeToken();return It},kt.prototype.consumeToken=function(){var It=this.consumeCodePoint();switch(It){case Pr:return this.consumeStringToken(Pr);case Kr:var Ht=this.peekCodePoint(0),Ut=this.peekCodePoint(1),Fe=this.peekCodePoint(2);if(yl(Ht)||Dl(Ut,Fe)){var qe=Bs(Ht,Ut,Fe)?Ii:_n,Nn=this.consumeName();return{type:5,value:Nn,flags:qe}}break;case sr:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Ao;break;case dr:return this.consumeStringToken(dr);case Er:return mh;case ao:return ju;case Po:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Qs;break;case Pi:if(ui(It,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(It),this.consumeNumericToken();break;case Xo:return su;case yr:var ii=It,Un=this.peekCodePoint(0),Ri=this.peekCodePoint(1);if(ui(ii,Un,Ri))return this.reconsumeCodePoint(It),this.consumeNumericToken();if(Bs(ii,Un,Ri))return this.reconsumeCodePoint(It),this.consumeIdentLikeToken();if(Un===yr&&Ri===Uo)return this.consumeCodePoint(),this.consumeCodePoint(),Ds;break;case ba:if(ui(It,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(It),this.consumeNumericToken();break;case Mi:if(this.peekCodePoint(0)===Po)for(this.consumeCodePoint();;){var Ki=this.consumeCodePoint();if(Ki===Po&&(Ki=this.consumeCodePoint(),Ki===Mi))return this.consumeToken();if(Ki===Ue)return this.consumeToken()}break;case ha:return Su;case fs:return Ku;case xs:if(this.peekCodePoint(0)===Lo&&this.peekCodePoint(1)===yr&&this.peekCodePoint(2)===yr)return this.consumeCodePoint(),this.consumeCodePoint(),ul;break;case jn:var ur=this.peekCodePoint(0),vt=this.peekCodePoint(1),Qt=this.peekCodePoint(2);if(Bs(ur,vt,Qt)){var Nn=this.consumeName();return{type:7,value:Nn}}break;case Tr:return $l;case er:if(Dl(It,this.peekCodePoint(0)))return this.reconsumeCodePoint(It),this.consumeIdentLikeToken();break;case so:return fr;case _r:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),zs;break;case ns:return Nl;case yi:return As;case ss:case Ea:var de=this.peekCodePoint(0),Me=this.peekCodePoint(1);return de===Pi&&(Gi(Me)||Me===Oo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(It),this.consumeIdentLikeToken();case Bo:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Es;if(this.peekCodePoint(0)===Bo)return this.consumeCodePoint(),Ns;break;case Hr:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),_s;break;case Ue:return ol}return Ho(It)?(this.consumeWhiteSpace(),Xa):io(It)?(this.reconsumeCodePoint(It),this.consumeNumericToken()):Ks(It)?(this.reconsumeCodePoint(It),this.consumeIdentLikeToken()):{type:6,value:ee(It)}},kt.prototype.consumeCodePoint=function(){var It=this._value.shift();return typeof It=="undefined"?-1:It},kt.prototype.reconsumeCodePoint=function(It){this._value.unshift(It)},kt.prototype.peekCodePoint=function(It){return It>=this._value.length?-1:this._value[It]},kt.prototype.consumeUnicodeRangeToken=function(){for(var It=[],Ht=this.consumeCodePoint();Gi(Ht)&&It.length<6;)It.push(Ht),Ht=this.consumeCodePoint();for(var Ut=!1;Ht===Oo&&It.length<6;)It.push(Ht),Ht=this.consumeCodePoint(),Ut=!0;if(Ut){var Fe=parseInt(ee.apply(void 0,It.map(function(Un){return Un===Oo?qo:Un})),16),qe=parseInt(ee.apply(void 0,It.map(function(Un){return Un===Oo?ts:Un})),16);return{type:30,start:Fe,end:qe}}var Nn=parseInt(ee.apply(void 0,It),16);if(this.peekCodePoint(0)===yr&&Gi(this.peekCodePoint(1))){this.consumeCodePoint(),Ht=this.consumeCodePoint();for(var ii=[];Gi(Ht)&&ii.length<6;)ii.push(Ht),Ht=this.consumeCodePoint();var qe=parseInt(ee.apply(void 0,ii),16);return{type:30,start:Nn,end:qe}}else return{type:30,start:Nn,end:Nn}},kt.prototype.consumeIdentLikeToken=function(){var It=this.consumeName();return It.toLowerCase()==="url"&&this.peekCodePoint(0)===Er?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Er?(this.consumeCodePoint(),{type:19,value:It}):{type:20,value:It}},kt.prototype.consumeUrlToken=function(){var It=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ue)return{type:22,value:""};var Ht=this.peekCodePoint(0);if(Ht===dr||Ht===Pr){var Ut=this.consumeStringToken(this.consumeCodePoint());return Ut.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ue||this.peekCodePoint(0)===ao)?(this.consumeCodePoint(),{type:22,value:Ut.value}):(this.consumeBadUrlRemnants(),Ss)}for(;;){var Fe=this.consumeCodePoint();if(Fe===Ue||Fe===ao)return{type:22,value:ee.apply(void 0,It)};if(Ho(Fe))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ue||this.peekCodePoint(0)===ao?(this.consumeCodePoint(),{type:22,value:ee.apply(void 0,It)}):(this.consumeBadUrlRemnants(),Ss);if(Fe===Pr||Fe===dr||Fe===Er||wl(Fe))return this.consumeBadUrlRemnants(),Ss;if(Fe===er)if(Dl(Fe,this.peekCodePoint(0)))It.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Ss;else It.push(Fe)}},kt.prototype.consumeWhiteSpace=function(){for(;Ho(this.peekCodePoint(0));)this.consumeCodePoint()},kt.prototype.consumeBadUrlRemnants=function(){for(;;){var It=this.consumeCodePoint();if(It===ao||It===Ue)return;Dl(It,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},kt.prototype.consumeStringSlice=function(It){for(var Ht=5e4,Ut="";It>0;){var Fe=Math.min(Ht,It);Ut+=ee.apply(void 0,this._value.splice(0,Fe)),It-=Fe}return this._value.shift(),Ut},kt.prototype.consumeStringToken=function(It){var Ht="",Ut=0;do{var Fe=this._value[Ut];if(Fe===Ue||Fe===void 0||Fe===It)return Ht+=this.consumeStringSlice(Ut),{type:0,value:Ht};if(Fe===Ai)return this._value.splice(0,Ut),Gr;if(Fe===er){var qe=this._value[Ut+1];qe!==Ue&&qe!==void 0&&(qe===Ai?(Ht+=this.consumeStringSlice(Ut),Ut=-1,this._value.shift()):Dl(Fe,qe)&&(Ht+=this.consumeStringSlice(Ut),Ht+=ee(this.consumeEscapedCodePoint()),Ut=-1))}Ut++}while(!0)},kt.prototype.consumeNumber=function(){var It=[],Ht=ni,Ut=this.peekCodePoint(0);for((Ut===Pi||Ut===yr)&&It.push(this.consumeCodePoint());io(this.peekCodePoint(0));)It.push(this.consumeCodePoint());Ut=this.peekCodePoint(0);var Fe=this.peekCodePoint(1);if(Ut===ba&&io(Fe))for(It.push(this.consumeCodePoint(),this.consumeCodePoint()),Ht=mn;io(this.peekCodePoint(0));)It.push(this.consumeCodePoint());Ut=this.peekCodePoint(0),Fe=this.peekCodePoint(1);var qe=this.peekCodePoint(2);if((Ut===ia||Ut===za)&&((Fe===Pi||Fe===yr)&&io(qe)||io(Fe)))for(It.push(this.consumeCodePoint(),this.consumeCodePoint()),Ht=mn;io(this.peekCodePoint(0));)It.push(this.consumeCodePoint());return[Za(It),Ht]},kt.prototype.consumeNumericToken=function(){var It=this.consumeNumber(),Ht=It[0],Ut=It[1],Fe=this.peekCodePoint(0),qe=this.peekCodePoint(1),Nn=this.peekCodePoint(2);if(Bs(Fe,qe,Nn)){var ii=this.consumeName();return{type:15,number:Ht,flags:Ut,unit:ii}}return Fe===Br?(this.consumeCodePoint(),{type:16,number:Ht,flags:Ut}):{type:17,number:Ht,flags:Ut}},kt.prototype.consumeEscapedCodePoint=function(){var It=this.consumeCodePoint();if(Gi(It)){for(var Ht=ee(It);Gi(this.peekCodePoint(0))&&Ht.length<6;)Ht+=ee(this.consumeCodePoint());Ho(this.peekCodePoint(0))&&this.consumeCodePoint();var Ut=parseInt(Ht,16);return Ut===0||Ko(Ut)||Ut>1114111?Bi:Ut}return It===Ue?Bi:It},kt.prototype.consumeName=function(){for(var It="";;){var Ht=this.consumeCodePoint();if(yl(Ht))It+=ee(Ht);else if(Dl(Ht,this.peekCodePoint(0)))It+=ee(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Ht),It}},kt}(),au=function(){function kt(It){this._tokens=It}return kt.create=function(It){var Ht=new Fl;return Ht.write(It),new kt(Ht.read())},kt.parseValue=function(It){return kt.create(It).parseComponentValue()},kt.parseValues=function(It){return kt.create(It).parseComponentValues()},kt.prototype.parseComponentValue=function(){for(var It=this.consumeToken();It.type===31;)It=this.consumeToken();if(It.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(It);var Ht=this.consumeComponentValue();do It=this.consumeToken();while(It.type===31);if(It.type===32)return Ht;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},kt.prototype.parseComponentValues=function(){for(var It=[];;){var Ht=this.consumeComponentValue();if(Ht.type===32)return It;It.push(Ht),It.push()}},kt.prototype.consumeComponentValue=function(){var It=this.consumeToken();switch(It.type){case 11:case 28:case 2:return this.consumeSimpleBlock(It.type);case 19:return this.consumeFunction(It)}return It},kt.prototype.consumeSimpleBlock=function(It){for(var Ht={type:It,values:[]},Ut=this.consumeToken();;){if(Ut.type===32||fu(Ut,It))return Ht;this.reconsumeToken(Ut),Ht.values.push(this.consumeComponentValue()),Ut=this.consumeToken()}},kt.prototype.consumeFunction=function(It){for(var Ht={name:It.value,values:[],type:18};;){var Ut=this.consumeToken();if(Ut.type===32||Ut.type===3)return Ht;this.reconsumeToken(Ut),Ht.values.push(this.consumeComponentValue())}},kt.prototype.consumeToken=function(){var It=this._tokens.shift();return typeof It=="undefined"?ol:It},kt.prototype.reconsumeToken=function(It){this._tokens.unshift(It)},kt}(),Ja=function(kt){return kt.type===15},Eo=function(kt){return kt.type===17},ja=function(kt){return kt.type===20},qa=function(kt){return kt.type===0},lu=function(kt,It){return ja(kt)&&kt.value===It},Yl=function(kt){return kt.type!==31},Pu=function(kt){return kt.type!==31&&kt.type!==4},bu=function(kt){var It=[],Ht=[];return kt.forEach(function(Ut){if(Ut.type===4){if(Ht.length===0)throw new Error("Error parsing function args, zero tokens for arg");It.push(Ht),Ht=[];return}Ut.type!==31&&Ht.push(Ut)}),Ht.length&&It.push(Ht),It},fu=function(kt,It){return It===11&&kt.type===12||It===28&&kt.type===29?!0:It===2&&kt.type===3},nu=function(kt){return kt.type===17||kt.type===15},_o=function(kt){return kt.type===16||nu(kt)},_d=function(kt){return kt.length>1?[kt[0],kt[1]]:[kt[0]]},Eu={type:17,number:0,flags:ni},yd={type:16,number:50,flags:ni},kh={type:16,number:100,flags:ni},nc=function(kt,It,Ht){var Ut=kt[0],Fe=kt[1];return[sl(Ut,It),sl(typeof Fe!="undefined"?Fe:Ut,Ht)]},sl=function(kt,It){if(kt.type===16)return kt.number/100*It;if(Ja(kt))switch(kt.unit){case"rem":case"em":return 16*kt.number;case"px":default:return kt.number}return kt.number},Ch="deg",Qd="grad",Oc="rad",Dc="turn",Fs={name:"angle",parse:function(kt,It){if(It.type===15)switch(It.unit){case Ch:return Math.PI*It.number/180;case Qd:return Math.PI/200*It.number;case Oc:return It.number;case Dc:return Math.PI*2*It.number}throw new Error("Unsupported angle type")}},ga=function(kt){return kt.type===15&&(kt.unit===Ch||kt.unit===Qd||kt.unit===Oc||kt.unit===Dc)},Uu=function(kt){var It=kt.filter(ja).map(function(Ht){return Ht.value}).join(" ");switch(It){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Eu,Eu];case"to top":case"bottom":return tl(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Eu,kh];case"to right":case"left":return tl(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[kh,kh];case"to bottom":case"top":return tl(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[kh,Eu];case"to left":case"right":return tl(270)}return 0},tl=function(kt){return Math.PI*kt/180},al={name:"color",parse:function(kt,It){if(It.type===18){var Ht=zd[It.name];if(typeof Ht=="undefined")throw new Error('Attempting to parse an unsupported color function "'+It.name+'"');return Ht(kt,It.values)}if(It.type===5){if(It.value.length===3){var Ut=It.value.substring(0,1),Fe=It.value.substring(1,2),qe=It.value.substring(2,3);return el(parseInt(Ut+Ut,16),parseInt(Fe+Fe,16),parseInt(qe+qe,16),1)}if(It.value.length===4){var Ut=It.value.substring(0,1),Fe=It.value.substring(1,2),qe=It.value.substring(2,3),Nn=It.value.substring(3,4);return el(parseInt(Ut+Ut,16),parseInt(Fe+Fe,16),parseInt(qe+qe,16),parseInt(Nn+Nn,16)/255)}if(It.value.length===6){var Ut=It.value.substring(0,2),Fe=It.value.substring(2,4),qe=It.value.substring(4,6);return el(parseInt(Ut,16),parseInt(Fe,16),parseInt(qe,16),1)}if(It.value.length===8){var Ut=It.value.substring(0,2),Fe=It.value.substring(2,4),qe=It.value.substring(4,6),Nn=It.value.substring(6,8);return el(parseInt(Ut,16),parseInt(Fe,16),parseInt(qe,16),parseInt(Nn,16)/255)}}if(It.type===20){var ii=Bh[It.value.toUpperCase()];if(typeof ii!="undefined")return ii}return Bh.TRANSPARENT}},Ka=function(kt){return(255&kt)===0},ca=function(kt){var It=255&kt,Ht=255&kt>>8,Ut=255&kt>>16,Fe=255&kt>>24;return It<255?"rgba("+Fe+","+Ut+","+Ht+","+It/255+")":"rgb("+Fe+","+Ut+","+Ht+")"},el=function(kt,It,Ht,Ut){return(kt<<24|It<<16|Ht<<8|Math.round(Ut*255)<<0)>>>0},jl=function(kt,It){if(kt.type===17)return kt.number;if(kt.type===16){var Ht=It===3?1:255;return It===3?kt.number/100*Ht:Math.round(kt.number/100*Ht)}return 0},fc=function(kt,It){var Ht=It.filter(Pu);if(Ht.length===3){var Ut=Ht.map(jl),Fe=Ut[0],qe=Ut[1],Nn=Ut[2];return el(Fe,qe,Nn,1)}if(Ht.length===4){var ii=Ht.map(jl),Fe=ii[0],qe=ii[1],Nn=ii[2],Un=ii[3];return el(Fe,qe,Nn,Un)}return 0};function dh(kt,It,Ht){return Ht<0&&(Ht+=1),Ht>=1&&(Ht-=1),Ht<1/6?(It-kt)*Ht*6+kt:Ht<1/2?It:Ht<2/3?(It-kt)*6*(2/3-Ht)+kt:kt}var hl=function(kt,It){var Ht=It.filter(Pu),Ut=Ht[0],Fe=Ht[1],qe=Ht[2],Nn=Ht[3],ii=(Ut.type===17?tl(Ut.number):Fs.parse(kt,Ut))/(Math.PI*2),Un=_o(Fe)?Fe.number/100:0,Ri=_o(qe)?qe.number/100:0,Ki=typeof Nn!="undefined"&&_o(Nn)?sl(Nn,1):1;if(Un===0)return el(Ri*255,Ri*255,Ri*255,1);var ur=Ri<=.5?Ri*(Un+1):Ri+Un-Ri*Un,vt=Ri*2-ur,Qt=dh(vt,ur,ii+1/3),de=dh(vt,ur,ii),Me=dh(vt,ur,ii-1/3);return el(Qt*255,de*255,Me*255,Ki)},zd={hsl:hl,hsla:hl,rgb:fc,rgba:fc},td=function(kt,It){return al.parse(kt,au.create(It).parseComponentValue())},Bh={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},Ro={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(kt,It){return It.map(function(Ht){if(ja(Ht))switch(Ht.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},sA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ln=function(kt,It){var Ht=al.parse(kt,It[0]),Ut=It[1];return Ut&&_o(Ut)?{color:Ht,stop:Ut}:{color:Ht,stop:null}},$i=function(kt,It){var Ht=kt[0],Ut=kt[kt.length-1];Ht.stop===null&&(Ht.stop=Eu),Ut.stop===null&&(Ut.stop=kh);for(var Fe=[],qe=0,Nn=0;Nn<kt.length;Nn++){var ii=kt[Nn].stop;if(ii!==null){var Un=sl(ii,It);Un>qe?Fe.push(Un):Fe.push(qe),qe=Un}else Fe.push(null)}for(var Ri=null,Nn=0;Nn<Fe.length;Nn++){var Ki=Fe[Nn];if(Ki===null)Ri===null&&(Ri=Nn);else if(Ri!==null){for(var ur=Nn-Ri,vt=Fe[Ri-1],Qt=(Ki-vt)/(ur+1),de=1;de<=ur;de++)Fe[Ri+de-1]=Qt*de;Ri=null}}return kt.map(function(Me,ln){var dn=Me.color;return{color:dn,stop:Math.max(Math.min(1,Fe[ln]/It),0)}})},aA=function(kt,It,Ht){var Ut=It/2,Fe=Ht/2,qe=sl(kt[0],It)-Ut,Nn=Fe-sl(kt[1],Ht);return(Math.atan2(Nn,qe)+Math.PI*2)%(Math.PI*2)},ic=function(kt,It,Ht){var Ut=typeof kt=="number"?kt:aA(kt,It,Ht),Fe=Math.abs(It*Math.sin(Ut))+Math.abs(Ht*Math.cos(Ut)),qe=It/2,Nn=Ht/2,ii=Fe/2,Un=Math.sin(Ut-Math.PI/2)*ii,Ri=Math.cos(Ut-Math.PI/2)*ii;return[Fe,qe-Ri,qe+Ri,Nn-Un,Nn+Un]},Gu=function(kt,It){return Math.sqrt(kt*kt+It*It)},Wu=function(kt,It,Ht,Ut,Fe){var qe=[[0,0],[0,It],[kt,0],[kt,It]];return qe.reduce(function(Nn,ii){var Un=ii[0],Ri=ii[1],Ki=Gu(Ht-Un,Ut-Ri);return(Fe?Ki<Nn.optimumDistance:Ki>Nn.optimumDistance)?{optimumCorner:ii,optimumDistance:Ki}:Nn},{optimumDistance:Fe?1/0:-1/0,optimumCorner:null}).optimumCorner},Ph=function(kt,It,Ht,Ut,Fe){var qe=0,Nn=0;switch(kt.size){case 0:kt.shape===0?qe=Nn=Math.min(Math.abs(It),Math.abs(It-Ut),Math.abs(Ht),Math.abs(Ht-Fe)):kt.shape===1&&(qe=Math.min(Math.abs(It),Math.abs(It-Ut)),Nn=Math.min(Math.abs(Ht),Math.abs(Ht-Fe)));break;case 2:if(kt.shape===0)qe=Nn=Math.min(Gu(It,Ht),Gu(It,Ht-Fe),Gu(It-Ut,Ht),Gu(It-Ut,Ht-Fe));else if(kt.shape===1){var ii=Math.min(Math.abs(Ht),Math.abs(Ht-Fe))/Math.min(Math.abs(It),Math.abs(It-Ut)),Un=Wu(Ut,Fe,It,Ht,!0),Ri=Un[0],Ki=Un[1];qe=Gu(Ri-It,(Ki-Ht)/ii),Nn=ii*qe}break;case 1:kt.shape===0?qe=Nn=Math.max(Math.abs(It),Math.abs(It-Ut),Math.abs(Ht),Math.abs(Ht-Fe)):kt.shape===1&&(qe=Math.max(Math.abs(It),Math.abs(It-Ut)),Nn=Math.max(Math.abs(Ht),Math.abs(Ht-Fe)));break;case 3:if(kt.shape===0)qe=Nn=Math.max(Gu(It,Ht),Gu(It,Ht-Fe),Gu(It-Ut,Ht),Gu(It-Ut,Ht-Fe));else if(kt.shape===1){var ii=Math.max(Math.abs(Ht),Math.abs(Ht-Fe))/Math.max(Math.abs(It),Math.abs(It-Ut)),ur=Wu(Ut,Fe,It,Ht,!1),Ri=ur[0],Ki=ur[1];qe=Gu(Ri-It,(Ki-Ht)/ii),Nn=ii*qe}break}return Array.isArray(kt.size)&&(qe=sl(kt.size[0],Ut),Nn=kt.size.length===2?sl(kt.size[1],Fe):qe),[qe,Nn]},zA=function(kt,It){var Ht=tl(180),Ut=[];return bu(It).forEach(function(Fe,qe){if(qe===0){var Nn=Fe[0];if(Nn.type===20&&Nn.value==="to"){Ht=Uu(Fe);return}else if(ga(Nn)){Ht=Fs.parse(kt,Nn);return}}var ii=Ln(kt,Fe);Ut.push(ii)}),{angle:Ht,stops:Ut,type:1}},ed=function(kt,It){var Ht=tl(180),Ut=[];return bu(It).forEach(function(Fe,qe){if(qe===0){var Nn=Fe[0];if(Nn.type===20&&["top","left","right","bottom"].indexOf(Nn.value)!==-1){Ht=Uu(Fe);return}else if(ga(Nn)){Ht=(Fs.parse(kt,Nn)+tl(270))%tl(360);return}}var ii=Ln(kt,Fe);Ut.push(ii)}),{angle:Ht,stops:Ut,type:1}},nl=function(kt,It){var Ht=tl(180),Ut=[],Fe=1,qe=0,Nn=3,ii=[];return bu(It).forEach(function(Un,Ri){var Ki=Un[0];if(Ri===0){if(ja(Ki)&&Ki.value==="linear"){Fe=1;return}else if(ja(Ki)&&Ki.value==="radial"){Fe=2;return}}if(Ki.type===18){if(Ki.name==="from"){var ur=al.parse(kt,Ki.values[0]);Ut.push({stop:Eu,color:ur})}else if(Ki.name==="to"){var ur=al.parse(kt,Ki.values[0]);Ut.push({stop:kh,color:ur})}else if(Ki.name==="color-stop"){var vt=Ki.values.filter(Pu);if(vt.length===2){var ur=al.parse(kt,vt[1]),Qt=vt[0];Eo(Qt)&&Ut.push({stop:{type:16,number:Qt.number*100,flags:Qt.flags},color:ur})}}}}),Fe===1?{angle:(Ht+tl(180))%tl(360),stops:Ut,type:Fe}:{size:Nn,shape:qe,stops:Ut,position:ii,type:Fe}},ys="closest-side",oh="farthest-side",Xu="closest-corner",Ll="farthest-corner",ra="circle",gu="ellipse",bh="cover",xl="contain",zh=function(kt,It){var Ht=0,Ut=3,Fe=[],qe=[];return bu(It).forEach(function(Nn,ii){var Un=!0;if(ii===0){var Ri=!1;Un=Nn.reduce(function(ur,vt){if(Ri)if(ja(vt))switch(vt.value){case"center":return qe.push(yd),ur;case"top":case"left":return qe.push(Eu),ur;case"right":case"bottom":return qe.push(kh),ur}else(_o(vt)||nu(vt))&&qe.push(vt);else if(ja(vt))switch(vt.value){case ra:return Ht=0,!1;case gu:return Ht=1,!1;case"at":return Ri=!0,!1;case ys:return Ut=0,!1;case bh:case oh:return Ut=1,!1;case xl:case Xu:return Ut=2,!1;case Ll:return Ut=3,!1}else if(nu(vt)||_o(vt))return Array.isArray(Ut)||(Ut=[]),Ut.push(vt),!1;return ur},Un)}if(Un){var Ki=Ln(kt,Nn);Fe.push(Ki)}}),{size:Ut,shape:Ht,stops:Fe,position:qe,type:2}},Cu=function(kt,It){var Ht=0,Ut=3,Fe=[],qe=[];return bu(It).forEach(function(Nn,ii){var Un=!0;if(ii===0?Un=Nn.reduce(function(Ki,ur){if(ja(ur))switch(ur.value){case"center":return qe.push(yd),!1;case"top":case"left":return qe.push(Eu),!1;case"right":case"bottom":return qe.push(kh),!1}else if(_o(ur)||nu(ur))return qe.push(ur),!1;return Ki},Un):ii===1&&(Un=Nn.reduce(function(Ki,ur){if(ja(ur))switch(ur.value){case ra:return Ht=0,!1;case gu:return Ht=1,!1;case xl:case ys:return Ut=0,!1;case oh:return Ut=1,!1;case Xu:return Ut=2,!1;case bh:case Ll:return Ut=3,!1}else if(nu(ur)||_o(ur))return Array.isArray(Ut)||(Ut=[]),Ut.push(ur),!1;return Ki},Un)),Un){var Ri=Ln(kt,Nn);Fe.push(Ri)}}),{size:Ut,shape:Ht,stops:Fe,position:qe,type:2}},wd=function(kt){return kt.type===1},La=function(kt){return kt.type===2},sh={name:"image",parse:function(kt,It){if(It.type===22){var Ht={url:It.value,type:0};return kt.cache.addImage(It.value),Ht}if(It.type===18){var Ut=fl[It.name];if(typeof Ut=="undefined")throw new Error('Attempting to parse an unsupported image function "'+It.name+'"');return Ut(kt,It.values)}throw new Error("Unsupported image type "+It.type)}};function Ma(kt){return!(kt.type===20&&kt.value==="none")&&(kt.type!==18||!!fl[kt.name])}var fl={"linear-gradient":zA,"-moz-linear-gradient":ed,"-ms-linear-gradient":ed,"-o-linear-gradient":ed,"-webkit-linear-gradient":ed,"radial-gradient":zh,"-moz-radial-gradient":Cu,"-ms-radial-gradient":Cu,"-o-radial-gradient":Cu,"-webkit-radial-gradient":Cu,"-webkit-gradient":nl},Ql={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(kt,It){if(It.length===0)return[];var Ht=It[0];return Ht.type===20&&Ht.value==="none"?[]:It.filter(function(Ut){return Pu(Ut)&&Ma(Ut)}).map(function(Ut){return sh.parse(kt,Ut)})}},Jl={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(kt,It){return It.map(function(Ht){if(ja(Ht))switch(Ht.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Bt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(kt,It){return bu(It).map(function(Ht){return Ht.filter(_o)}).map(_d)}},pt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(kt,It){return bu(It).map(function(Ht){return Ht.filter(ja).map(function(Ut){return Ut.value}).join(" ")}).map(St)}},St=function(kt){switch(kt){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}},_t;(function(kt){kt.AUTO="auto",kt.CONTAIN="contain",kt.COVER="cover"})(_t||(_t={}));var oe={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(kt,It){return bu(It).map(function(Ht){return Ht.filter(qt)})}},qt=function(kt){return ja(kt)||_o(kt)},me=function(kt){return{name:"border-"+kt+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ce=me("top"),Le=me("right"),Je=me("bottom"),fn=me("left"),gn=function(kt){return{name:"border-radius-"+kt,initialValue:"0 0",prefix:!1,type:1,parse:function(It,Ht){return _d(Ht.filter(_o))}}},En=gn("top-left"),We=gn("top-right"),vi=gn("bottom-right"),ei=gn("bottom-left"),wi=function(kt){return{name:"border-"+kt+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(It,Ht){switch(Ht){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Hn=wi("top"),gi=wi("right"),zi=wi("bottom"),or=wi("left"),Lr=function(kt){return{name:"border-"+kt+"-width",initialValue:"0",type:0,prefix:!1,parse:function(It,Ht){return Ja(Ht)?Ht.number:0}}},lo=Lr("top"),mr=Lr("right"),Di=Lr("bottom"),Cr=Lr("left"),Or={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(kt,It){switch(It){case"rtl":return 1;case"ltr":default:return 0}}},oi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(kt,It){return It.filter(ja).reduce(function(Ht,Ut){return Ht|ye(Ut.value)},0)}},ye=function(kt){switch(kt){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},we={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(kt,It){switch(It){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ye={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(kt,It){return It.type===20&&It.value==="normal"?0:It.type===17||It.type===15?It.number:0}},tn;(function(kt){kt.NORMAL="normal",kt.STRICT="strict"})(tn||(tn={}));var yn={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(kt,It){switch(It){case"strict":return tn.STRICT;case"normal":default:return tn.NORMAL}}},on={name:"line-height",initialValue:"normal",prefix:!1,type:4},Dn=function(kt,It){return ja(kt)&&kt.value==="normal"?1.2*It:kt.type===17?It*kt.number:_o(kt)?sl(kt,It):It},Rn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(kt,It){return It.type===20&&It.value==="none"?null:sh.parse(kt,It)}},ti={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(kt,It){switch(It){case"inside":return 0;case"outside":default:return 1}}},ze={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(kt,It){switch(It){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}}},cn=function(kt){return{name:"margin-"+kt,initialValue:"0",prefix:!1,type:4}},vn=cn("top"),Gn=cn("right"),Yn=cn("bottom"),ri=cn("left"),Fi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(kt,It){return It.filter(ja).map(function(Ht){switch(Ht.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ci={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(kt,It){switch(It){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ji=function(kt){return{name:"padding-"+kt,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Yi=Ji("top"),Ar=Ji("right"),Fr=Ji("bottom"),ro=Ji("left"),Ti={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(kt,It){switch(It){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Jn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(kt,It){switch(It){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},xo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(kt,It){return It.length===1&&lu(It[0],"none")?[]:bu(It).map(function(Ht){for(var Ut={color:Bh.TRANSPARENT,offsetX:Eu,offsetY:Eu,blur:Eu},Fe=0,qe=0;qe<Ht.length;qe++){var Nn=Ht[qe];nu(Nn)?(Fe===0?Ut.offsetX=Nn:Fe===1?Ut.offsetY=Nn:Ut.blur=Nn,Fe++):Ut.color=al.parse(kt,Nn)}return Ut})}},br={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(kt,It){switch(It){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ar={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(kt,It){if(It.type===20&&It.value==="none")return null;if(It.type===18){var Ht=vr[It.name];if(typeof Ht=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+It.name+'"');return Ht(It.values)}return null}},lr=function(kt){var It=kt.filter(function(Ht){return Ht.type===17}).map(function(Ht){return Ht.number});return It.length===6?It:null},nr=function(kt){var It=kt.filter(function(Un){return Un.type===17}).map(function(Un){return Un.number}),Ht=It[0],Ut=It[1];It[2],It[3];var Fe=It[4],qe=It[5];It[6],It[7],It[8],It[9],It[10],It[11];var Nn=It[12],ii=It[13];return It[14],It[15],It.length===16?[Ht,Ut,Fe,qe,Nn,ii]:null},vr={matrix:lr,matrix3d:nr},Zr={type:16,number:50,flags:ni},co=[Zr,Zr],po={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(kt,It){var Ht=It.filter(_o);return Ht.length!==2?co:[Ht[0],Ht[1]]}},Rr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(kt,It){switch(It){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Do;(function(kt){kt.NORMAL="normal",kt.BREAK_ALL="break-all",kt.KEEP_ALL="keep-all"})(Do||(Do={}));for(var hs={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(kt,It){switch(It){case"break-all":return Do.BREAK_ALL;case"keep-all":return Do.KEEP_ALL;case"normal":default:return Do.NORMAL}}},$o={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(kt,It){if(It.type===20)return{auto:!0,order:0};if(Eo(It))return{auto:!1,order:It.number};throw new Error("Invalid z-index number parsed")}},is={name:"time",parse:function(kt,It){if(It.type===15)switch(It.unit.toLowerCase()){case"s":return 1e3*It.number;case"ms":return It.number}throw new Error("Unsupported time type")}},yo={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(kt,It){return Eo(It)?It.number:1}},pa={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Wo={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(kt,It){return It.filter(ja).map(function(Ht){switch(Ht.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Ht){return Ht!==0})}},rs={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(kt,It){var Ht=[],Ut=[];return It.forEach(function(Fe){switch(Fe.type){case 20:case 0:Ht.push(Fe.value);break;case 17:Ht.push(Fe.number.toString());break;case 4:Ut.push(Ht.join(" ")),Ht.length=0;break}}),Ht.length&&Ut.push(Ht.join(" ")),Ut.map(function(Fe){return Fe.indexOf(" ")===-1?Fe:"'"+Fe+"'"})}},Cs={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},qs={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(kt,It){if(Eo(It))return It.number;if(ja(It))switch(It.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ua={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(kt,It){return It.filter(ja).map(function(Ht){return Ht.value})}},$s={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(kt,It){switch(It){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Qo=function(kt,It){return(kt&It)!==0},zo={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(kt,It){if(It.length===0)return[];var Ht=It[0];return Ht.type===20&&Ht.value==="none"?[]:It}},gs={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(kt,It){if(It.length===0)return null;var Ht=It[0];if(Ht.type===20&&Ht.value==="none")return null;for(var Ut=[],Fe=It.filter(Yl),qe=0;qe<Fe.length;qe++){var Nn=Fe[qe],ii=Fe[qe+1];if(Nn.type===20){var Un=ii&&Eo(ii)?ii.number:1;Ut.push({counter:Nn.value,increment:Un})}}return Ut}},es={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(kt,It){if(It.length===0)return[];for(var Ht=[],Ut=It.filter(Yl),Fe=0;Fe<Ut.length;Fe++){var qe=Ut[Fe],Nn=Ut[Fe+1];if(ja(qe)&&qe.value!=="none"){var ii=Nn&&Eo(Nn)?Nn.number:0;Ht.push({counter:qe.value,reset:ii})}}return Ht}},Os={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(kt,It){return It.filter(Ja).map(function(Ht){return is.parse(kt,Ht)})}},oo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(kt,It){if(It.length===0)return null;var Ht=It[0];if(Ht.type===20&&Ht.value==="none")return null;var Ut=[],Fe=It.filter(qa);if(Fe.length%2!==0)return null;for(var qe=0;qe<Fe.length;qe+=2){var Nn=Fe[qe].value,ii=Fe[qe+1].value;Ut.push({open:Nn,close:ii})}return Ut}},Go=function(kt,It,Ht){if(!kt)return"";var Ut=kt[Math.min(It,kt.length-1)];return Ut?Ht?Ut.open:Ut.close:""},aa={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(kt,It){return It.length===1&&lu(It[0],"none")?[]:bu(It).map(function(Ht){for(var Ut={color:255,offsetX:Eu,offsetY:Eu,blur:Eu,spread:Eu,inset:!1},Fe=0,qe=0;qe<Ht.length;qe++){var Nn=Ht[qe];lu(Nn,"inset")?Ut.inset=!0:nu(Nn)?(Fe===0?Ut.offsetX=Nn:Fe===1?Ut.offsetY=Nn:Fe===2?Ut.blur=Nn:Ut.spread=Nn,Fe++):Ut.color=al.parse(kt,Nn)}return Ut})}},Us={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(kt,It){var Ht=[0,1,2],Ut=[];return It.filter(ja).forEach(function(Fe){switch(Fe.value){case"stroke":Ut.push(1);break;case"fill":Ut.push(0);break;case"markers":Ut.push(2);break}}),Ht.forEach(function(Fe){Ut.indexOf(Fe)===-1&&Ut.push(Fe)}),Ut}},zl={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ml={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(kt,It){return Ja(It)?It.number:0}},Ps=function(){function kt(It,Ht){var Ut,Fe;this.animationDuration=fo(It,Os,Ht.animationDuration),this.backgroundClip=fo(It,Ro,Ht.backgroundClip),this.backgroundColor=fo(It,sA,Ht.backgroundColor),this.backgroundImage=fo(It,Ql,Ht.backgroundImage),this.backgroundOrigin=fo(It,Jl,Ht.backgroundOrigin),this.backgroundPosition=fo(It,Bt,Ht.backgroundPosition),this.backgroundRepeat=fo(It,pt,Ht.backgroundRepeat),this.backgroundSize=fo(It,oe,Ht.backgroundSize),this.borderTopColor=fo(It,Ce,Ht.borderTopColor),this.borderRightColor=fo(It,Le,Ht.borderRightColor),this.borderBottomColor=fo(It,Je,Ht.borderBottomColor),this.borderLeftColor=fo(It,fn,Ht.borderLeftColor),this.borderTopLeftRadius=fo(It,En,Ht.borderTopLeftRadius),this.borderTopRightRadius=fo(It,We,Ht.borderTopRightRadius),this.borderBottomRightRadius=fo(It,vi,Ht.borderBottomRightRadius),this.borderBottomLeftRadius=fo(It,ei,Ht.borderBottomLeftRadius),this.borderTopStyle=fo(It,Hn,Ht.borderTopStyle),this.borderRightStyle=fo(It,gi,Ht.borderRightStyle),this.borderBottomStyle=fo(It,zi,Ht.borderBottomStyle),this.borderLeftStyle=fo(It,or,Ht.borderLeftStyle),this.borderTopWidth=fo(It,lo,Ht.borderTopWidth),this.borderRightWidth=fo(It,mr,Ht.borderRightWidth),this.borderBottomWidth=fo(It,Di,Ht.borderBottomWidth),this.borderLeftWidth=fo(It,Cr,Ht.borderLeftWidth),this.boxShadow=fo(It,aa,Ht.boxShadow),this.color=fo(It,Or,Ht.color),this.direction=fo(It,qn,Ht.direction),this.display=fo(It,oi,Ht.display),this.float=fo(It,we,Ht.cssFloat),this.fontFamily=fo(It,rs,Ht.fontFamily),this.fontSize=fo(It,Cs,Ht.fontSize),this.fontStyle=fo(It,$s,Ht.fontStyle),this.fontVariant=fo(It,Ua,Ht.fontVariant),this.fontWeight=fo(It,qs,Ht.fontWeight),this.letterSpacing=fo(It,Ye,Ht.letterSpacing),this.lineBreak=fo(It,yn,Ht.lineBreak),this.lineHeight=fo(It,on,Ht.lineHeight),this.listStyleImage=fo(It,Rn,Ht.listStyleImage),this.listStylePosition=fo(It,ti,Ht.listStylePosition),this.listStyleType=fo(It,ze,Ht.listStyleType),this.marginTop=fo(It,vn,Ht.marginTop),this.marginRight=fo(It,Gn,Ht.marginRight),this.marginBottom=fo(It,Yn,Ht.marginBottom),this.marginLeft=fo(It,ri,Ht.marginLeft),this.opacity=fo(It,yo,Ht.opacity);var qe=fo(It,Fi,Ht.overflow);this.overflowX=qe[0],this.overflowY=qe[qe.length>1?1:0],this.overflowWrap=fo(It,ci,Ht.overflowWrap),this.paddingTop=fo(It,Yi,Ht.paddingTop),this.paddingRight=fo(It,Ar,Ht.paddingRight),this.paddingBottom=fo(It,Fr,Ht.paddingBottom),this.paddingLeft=fo(It,ro,Ht.paddingLeft),this.paintOrder=fo(It,Us,Ht.paintOrder),this.position=fo(It,Jn,Ht.position),this.textAlign=fo(It,Ti,Ht.textAlign),this.textDecorationColor=fo(It,pa,(Ut=Ht.textDecorationColor)!==null&&Ut!==void 0?Ut:Ht.color),this.textDecorationLine=fo(It,Wo,(Fe=Ht.textDecorationLine)!==null&&Fe!==void 0?Fe:Ht.textDecoration),this.textShadow=fo(It,xo,Ht.textShadow),this.textTransform=fo(It,br,Ht.textTransform),this.transform=fo(It,ar,Ht.transform),this.transformOrigin=fo(It,po,Ht.transformOrigin),this.visibility=fo(It,Rr,Ht.visibility),this.webkitTextStrokeColor=fo(It,zl,Ht.webkitTextStrokeColor),this.webkitTextStrokeWidth=fo(It,Ml,Ht.webkitTextStrokeWidth),this.wordBreak=fo(It,hs,Ht.wordBreak),this.zIndex=fo(It,$o,Ht.zIndex)}return kt.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},kt.prototype.isTransparent=function(){return Ka(this.backgroundColor)},kt.prototype.isTransformed=function(){return this.transform!==null},kt.prototype.isPositioned=function(){return this.position!==0},kt.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},kt.prototype.isFloating=function(){return this.float!==0},kt.prototype.isInlineLevel=function(){return Qo(this.display,4)||Qo(this.display,33554432)||Qo(this.display,268435456)||Qo(this.display,536870912)||Qo(this.display,67108864)||Qo(this.display,134217728)},kt}(),ua=function(){function kt(It,Ht){this.content=fo(It,zo,Ht.content),this.quotes=fo(It,oo,Ht.quotes)}return kt}(),Ul=function(){function kt(It,Ht){this.counterIncrement=fo(It,gs,Ht.counterIncrement),this.counterReset=fo(It,es,Ht.counterReset)}return kt}(),fo=function(kt,It,Ht){var Ut=new Fl,Fe=Ht!==null&&typeof Ht!="undefined"?Ht.toString():It.initialValue;Ut.write(Fe);var qe=new au(Ut.read());switch(It.type){case 2:var Nn=qe.parseComponentValue();return It.parse(kt,ja(Nn)?Nn.value:It.initialValue);case 0:return It.parse(kt,qe.parseComponentValue());case 1:return It.parse(kt,qe.parseComponentValues());case 4:return qe.parseComponentValue();case 3:switch(It.format){case"angle":return Fs.parse(kt,qe.parseComponentValue());case"color":return al.parse(kt,qe.parseComponentValue());case"image":return sh.parse(kt,qe.parseComponentValue());case"length":var ii=qe.parseComponentValue();return nu(ii)?ii:Eu;case"length-percentage":var Un=qe.parseComponentValue();return _o(Un)?Un:Eu;case"time":return is.parse(kt,qe.parseComponentValue())}break}},Ra="data-html2canvas-debug",Gl=function(kt){var It=kt.getAttribute(Ra);switch(It){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ta=function(kt,It){var Ht=Gl(kt);return Ht===1||It===Ht},la=function(){function kt(It,Ht){if(this.context=It,this.textNodes=[],this.elements=[],this.flags=0,ta(Ht,3))debugger;this.styles=new Ps(It,window.getComputedStyle(Ht,null)),hr(Ht)&&(this.styles.animationDuration.some(function(Ut){return Ut>0})&&(Ht.style.animationDuration="0s"),this.styles.transform!==null&&(Ht.style.transform="none")),this.bounds=le(this.context,Ht),ta(Ht,4)&&(this.flags|=16)}return kt}(),ka="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",$a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ll=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Rs=0;Rs<$a.length;Rs++)ll[$a.charCodeAt(Rs)]=Rs;for(var Ta=function(kt){var It=kt.length*.75,Ht=kt.length,Ut,Fe=0,qe,Nn,ii,Un;kt[kt.length-1]==="="&&(It--,kt[kt.length-2]==="="&&It--);var Ri=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(It):new Array(It),Ki=Array.isArray(Ri)?Ri:new Uint8Array(Ri);for(Ut=0;Ut<Ht;Ut+=4)qe=ll[kt.charCodeAt(Ut)],Nn=ll[kt.charCodeAt(Ut+1)],ii=ll[kt.charCodeAt(Ut+2)],Un=ll[kt.charCodeAt(Ut+3)],Ki[Fe++]=qe<<2|Nn>>4,Ki[Fe++]=(Nn&15)<<4|ii>>2,Ki[Fe++]=(ii&3)<<6|Un&63;return Ri},Sl=function(kt){for(var It=kt.length,Ht=[],Ut=0;Ut<It;Ut+=2)Ht.push(kt[Ut+1]<<8|kt[Ut]);return Ht},pu=function(kt){for(var It=kt.length,Ht=[],Ut=0;Ut<It;Ut+=4)Ht.push(kt[Ut+3]<<24|kt[Ut+2]<<16|kt[Ut+1]<<8|kt[Ut]);return Ht},uu=5,Ru=11,$u=2,Ah=Ru-uu,Yu=65536>>uu,Ha=1<<uu,Bu=Ha-1,Rl=1024>>uu,il=Yu+Rl,vh=il,Cc=32,yh=vh+Cc,rc=65536>>Ru,oc=1<<Ah,wh=oc-1,da=function(kt,It,Ht){return kt.slice?kt.slice(It,Ht):new Uint16Array(Array.prototype.slice.call(kt,It,Ht))},Cl=function(kt,It,Ht){return kt.slice?kt.slice(It,Ht):new Uint32Array(Array.prototype.slice.call(kt,It,Ht))},Ca=function(kt,It){var Ht=Ta(kt),Ut=Array.isArray(Ht)?pu(Ht):new Uint32Array(Ht),Fe=Array.isArray(Ht)?Sl(Ht):new Uint16Array(Ht),qe=24,Nn=da(Fe,qe/2,Ut[4]/2),ii=Ut[5]===2?da(Fe,(qe+Ut[4])/2):Cl(Ut,Math.ceil((qe+Ut[4])/4));return new gl(Ut[0],Ut[1],Ut[2],Ut[3],Nn,ii)},gl=function(){function kt(It,Ht,Ut,Fe,qe,Nn){this.initialValue=It,this.errorValue=Ht,this.highStart=Ut,this.highValueIndex=Fe,this.index=qe,this.data=Nn}return kt.prototype.get=function(It){var Ht;if(It>=0){if(It<55296||It>56319&&It<=65535)return Ht=this.index[It>>uu],Ht=(Ht<<$u)+(It&Bu),this.data[Ht];if(It<=65535)return Ht=this.index[Yu+(It-55296>>uu)],Ht=(Ht<<$u)+(It&Bu),this.data[Ht];if(It<this.highStart)return Ht=yh-rc+(It>>Ru),Ht=this.index[Ht],Ht+=It>>uu&wh,Ht=this.index[Ht],Ht=(Ht<<$u)+(It&Bu),this.data[Ht];if(It<=1114111)return this.data[this.highValueIndex]}return this.errorValue},kt}(),Aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Fu=0;Fu<Aa.length;Fu++)hu[Aa.charCodeAt(Fu)]=Fu;var Kh=1,Th=2,Kn=3,Hu=4,Oh=5,lA=7,nd=8,gc=9,xd=10,SA=11,Lu=12,jc=13,Kd=14,id=15,CA=function(kt){for(var It=[],Ht=0,Ut=kt.length;Ht<Ut;){var Fe=kt.charCodeAt(Ht++);if(Fe>=55296&&Fe<=56319&&Ht<Ut){var qe=kt.charCodeAt(Ht++);(qe&64512)===56320?It.push(((Fe&1023)<<10)+(qe&1023)+65536):(It.push(Fe),Ht--)}else It.push(Fe)}return It},Uc=function(){for(var kt=[],It=0;It<arguments.length;It++)kt[It]=arguments[It];if(String.fromCodePoint)return String.fromCodePoint.apply(String,kt);var Ht=kt.length;if(!Ht)return"";for(var Ut=[],Fe=-1,qe="";++Fe<Ht;){var Nn=kt[Fe];Nn<=65535?Ut.push(Nn):(Nn-=65536,Ut.push((Nn>>10)+55296,Nn%1024+56320)),(Fe+1===Ht||Ut.length>16384)&&(qe+=String.fromCharCode.apply(String,Ut),Ut.length=0)}return qe},Sd=Ca(ka),Ju="\xD7",ah="\xF7",Vu=function(kt){return Sd.get(kt)},BA=function(kt,It,Ht){var Ut=Ht-2,Fe=It[Ut],qe=It[Ht-1],Nn=It[Ht];if(qe===Th&&Nn===Kn)return Ju;if(qe===Th||qe===Kn||qe===Hu||Nn===Th||Nn===Kn||Nn===Hu)return ah;if(qe===nd&&[nd,gc,SA,Lu].indexOf(Nn)!==-1||(qe===SA||qe===gc)&&(Nn===gc||Nn===xd)||(qe===Lu||qe===xd)&&Nn===xd||Nn===jc||Nn===Oh||Nn===lA||qe===Kh)return Ju;if(qe===jc&&Nn===Kd){for(;Fe===Oh;)Fe=It[--Ut];if(Fe===Kd)return Ju}if(qe===id&&Nn===id){for(var ii=0;Fe===id;)ii++,Fe=It[--Ut];if(ii%2===0)return Ju}return ah},Gh=function(kt){var It=CA(kt),Ht=It.length,Ut=0,Fe=0,qe=It.map(Vu);return{next:function(){if(Ut>=Ht)return{done:!0,value:null};for(var Nn=Ju;Ut<Ht&&(Nn=BA(It,qe,++Ut))===Ju;);if(Nn!==Ju||Ut===Ht){var ii=Uc.apply(null,It.slice(Fe,Ut));return Fe=Ut,{value:ii,done:!1}}return{done:!0,value:null}}}},na=function(kt){for(var It=Gh(kt),Ht=[],Ut;!(Ut=It.next()).done;)Ut.value&&Ht.push(Ut.value.slice());return Ht},Cd=function(kt){var It=123;if(kt.createRange){var Ht=kt.createRange();if(Ht.getBoundingClientRect){var Ut=kt.createElement("boundtest");Ut.style.height=It+"px",Ut.style.display="block",kt.body.appendChild(Ut),Ht.selectNode(Ut);var Fe=Ht.getBoundingClientRect(),qe=Math.round(Fe.height);if(kt.body.removeChild(Ut),qe===It)return!0}}return!1},rd=function(kt){var It=kt.createElement("boundtest");It.style.width="50px",It.style.display="block",It.style.fontSize="12px",It.style.letterSpacing="0px",It.style.wordSpacing="0px",kt.body.appendChild(It);var Ht=kt.createRange();It.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var Ut=It.firstChild,Fe=Tt(Ut.data).map(function(Un){return ee(Un)}),qe=0,Nn={},ii=Fe.every(function(Un,Ri){Ht.setStart(Ut,qe),Ht.setEnd(Ut,qe+Un.length);var Ki=Ht.getBoundingClientRect();qe+=Un.length;var ur=Ki.x>Nn.x||Ki.y>Nn.y;return Nn=Ki,Ri===0?!0:ur});return kt.body.removeChild(It),ii},mu=function(){return typeof new Image().crossOrigin!="undefined"},Gd=function(){return typeof new XMLHttpRequest().responseType=="string"},Wd=function(kt){var It=new Image,Ht=kt.createElement("canvas"),Ut=Ht.getContext("2d");if(!Ut)return!1;It.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Ut.drawImage(It,0,0),Ht.toDataURL()}catch(Fe){return!1}return!0},qu=function(kt){return kt[0]===0&&kt[1]===255&&kt[2]===0&&kt[3]===255},Rc=function(kt){var It=kt.createElement("canvas"),Ht=100;It.width=Ht,It.height=Ht;var Ut=It.getContext("2d");if(!Ut)return Promise.reject(!1);Ut.fillStyle="rgb(0, 255, 0)",Ut.fillRect(0,0,Ht,Ht);var Fe=new Image,qe=It.toDataURL();Fe.src=qe;var Nn=Bd(Ht,Ht,0,0,Fe);return Ut.fillStyle="red",Ut.fillRect(0,0,Ht,Ht),Vd(Nn).then(function(ii){Ut.drawImage(ii,0,0);var Un=Ut.getImageData(0,0,Ht,Ht).data;Ut.fillStyle="red",Ut.fillRect(0,0,Ht,Ht);var Ri=kt.createElement("div");return Ri.style.backgroundImage="url("+qe+")",Ri.style.height=Ht+"px",qu(Un)?Vd(Bd(Ht,Ht,0,0,Ri)):Promise.reject(!1)}).then(function(ii){return Ut.drawImage(ii,0,0),qu(Ut.getImageData(0,0,Ht,Ht).data)}).catch(function(){return!1})},Bd=function(kt,It,Ht,Ut,Fe){var qe="http://www.w3.org/2000/svg",Nn=document.createElementNS(qe,"svg"),ii=document.createElementNS(qe,"foreignObject");return Nn.setAttributeNS(null,"width",kt.toString()),Nn.setAttributeNS(null,"height",It.toString()),ii.setAttributeNS(null,"width","100%"),ii.setAttributeNS(null,"height","100%"),ii.setAttributeNS(null,"x",Ht.toString()),ii.setAttributeNS(null,"y",Ut.toString()),ii.setAttributeNS(null,"externalResourcesRequired","true"),Nn.appendChild(ii),ii.appendChild(Fe),Nn},Vd=function(kt){return new Promise(function(It,Ht){var Ut=new Image;Ut.onload=function(){return It(Ut)},Ut.onerror=Ht,Ut.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(kt))})},cu={get SUPPORT_RANGE_BOUNDS(){var kt=Cd(document);return Object.defineProperty(cu,"SUPPORT_RANGE_BOUNDS",{value:kt}),kt},get SUPPORT_WORD_BREAKING(){var kt=cu.SUPPORT_RANGE_BOUNDS&&rd(document);return Object.defineProperty(cu,"SUPPORT_WORD_BREAKING",{value:kt}),kt},get SUPPORT_SVG_DRAWING(){var kt=Wd(document);return Object.defineProperty(cu,"SUPPORT_SVG_DRAWING",{value:kt}),kt},get SUPPORT_FOREIGNOBJECT_DRAWING(){var kt=typeof Array.from=="function"&&typeof window.fetch=="function"?Rc(document):Promise.resolve(!1);return Object.defineProperty(cu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:kt}),kt},get SUPPORT_CORS_IMAGES(){var kt=mu();return Object.defineProperty(cu,"SUPPORT_CORS_IMAGES",{value:kt}),kt},get SUPPORT_RESPONSE_TYPE(){var kt=Gd();return Object.defineProperty(cu,"SUPPORT_RESPONSE_TYPE",{value:kt}),kt},get SUPPORT_CORS_XHR(){var kt="withCredentials"in new XMLHttpRequest;return Object.defineProperty(cu,"SUPPORT_CORS_XHR",{value:kt}),kt},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var kt=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(cu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:kt}),kt}},vu=function(){function kt(It,Ht){this.text=It,this.bounds=Ht}return kt}(),Hc=function(kt,It,Ht,Ut){var Fe=fh(It,Ht),qe=[],Nn=0;return Fe.forEach(function(ii){if(Ht.textDecorationLine.length||ii.trim().length>0)if(cu.SUPPORT_RANGE_BOUNDS){var Un=Oa(Ut,Nn,ii.length).getClientRects();if(Un.length>1){var Ri=Ya(ii),Ki=0;Ri.forEach(function(vt){qe.push(new vu(vt,re.fromDOMRectList(kt,Oa(Ut,Ki+Nn,vt.length).getClientRects()))),Ki+=vt.length})}else qe.push(new vu(ii,re.fromDOMRectList(kt,Un)))}else{var ur=Ut.splitText(ii.length);qe.push(new vu(ii,Hl(kt,Ut))),Ut=ur}else cu.SUPPORT_RANGE_BOUNDS||(Ut=Ut.splitText(ii.length));Nn+=ii.length}),qe},Hl=function(kt,It){var Ht=It.ownerDocument;if(Ht){var Ut=Ht.createElement("html2canvaswrapper");Ut.appendChild(It.cloneNode(!0));var Fe=It.parentNode;if(Fe){Fe.replaceChild(Ut,It);var qe=le(kt,Ut);return Ut.firstChild&&Fe.replaceChild(Ut.firstChild,Ut),qe}}return re.EMPTY},Oa=function(kt,It,Ht){var Ut=kt.ownerDocument;if(!Ut)throw new Error("Node has no owner document");var Fe=Ut.createRange();return Fe.setStart(kt,It),Fe.setEnd(kt,It+Ht),Fe},Ya=function(kt){if(cu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var It=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(It.segment(kt)).map(function(Ht){return Ht.segment})}return na(kt)},Mu=function(kt,It){if(cu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Ht=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Ht.segment(kt)).map(function(Ut){return Ut.segment})}return Zd(kt,It)},fh=function(kt,It){return It.letterSpacing!==0?Ya(kt):Mu(kt,It)},Eh=[32,160,4961,65792,65793,4153,4241],Zd=function(kt,It){for(var Ht=Bn(kt,{lineBreak:It.lineBreak,wordBreak:It.overflowWrap==="break-word"?"break-word":It.wordBreak}),Ut=[],Fe,qe=function(){if(Fe.value){var Nn=Fe.value.slice(),ii=Tt(Nn),Un="";ii.forEach(function(Ri){Eh.indexOf(Ri)===-1?Un+=ee(Ri):(Un.length&&Ut.push(Un),Ut.push(ee(Ri)),Un="")}),Un.length&&Ut.push(Un)}};!(Fe=Ht.next()).done;)qe();return Ut},Bc=function(){function kt(It,Ht,Ut){this.text=Pd(Ht.data,Ut.textTransform),this.textBounds=Hc(It,this.text,Ut,Ht)}return kt}(),Pd=function(kt,It){switch(It){case 1:return kt.toLowerCase();case 3:return kt.replace(Zu,xh);case 2:return kt.toUpperCase();default:return kt}},Zu=/(^|\s|:|-|\(|\))([a-z])/g,xh=function(kt,It,Ht){return kt.length>0?It+Ht.toUpperCase():kt},PA=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;return Fe.src=Ut.currentSrc||Ut.src,Fe.intrinsicWidth=Ut.naturalWidth,Fe.intrinsicHeight=Ut.naturalHeight,Fe.context.cache.addImage(Fe.src),Fe}return It}(la),_c=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;return Fe.canvas=Ut,Fe.intrinsicWidth=Ut.width,Fe.intrinsicHeight=Ut.height,Fe}return It}(la),sc=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this,qe=new XMLSerializer,Nn=le(Ht,Ut);return Ut.setAttribute("width",Nn.width+"px"),Ut.setAttribute("height",Nn.height+"px"),Fe.svg="data:image/svg+xml,"+encodeURIComponent(qe.serializeToString(Ut)),Fe.intrinsicWidth=Ut.width.baseVal.value,Fe.intrinsicHeight=Ut.height.baseVal.value,Fe.context.cache.addImage(Fe.svg),Fe}return It}(la),Qc=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;return Fe.value=Ut.value,Fe}return It}(la),od=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;return Fe.start=Ut.start,Fe.reversed=typeof Ut.reversed=="boolean"&&Ut.reversed===!0,Fe}return It}(la),lf=[{type:15,flags:0,unit:"px",number:3}],uA=[{type:16,flags:0,number:50}],Pc=function(kt){return kt.width>kt.height?new re(kt.left+(kt.width-kt.height)/2,kt.top,kt.height,kt.height):kt.width<kt.height?new re(kt.left,kt.top+(kt.height-kt.width)/2,kt.width,kt.width):kt},KA=function(kt){var It=kt.type===Kc?new Array(kt.value.length+1).join("\u2022"):kt.value;return It.length===0?kt.placeholder||"":It},bd="checkbox",zc="radio",Kc="password",hA=707406591,Dh=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;switch(Fe.type=Ut.type.toLowerCase(),Fe.checked=Ut.checked,Fe.value=KA(Ut),(Fe.type===bd||Fe.type===zc)&&(Fe.styles.backgroundColor=3739148031,Fe.styles.borderTopColor=Fe.styles.borderRightColor=Fe.styles.borderBottomColor=Fe.styles.borderLeftColor=2779096575,Fe.styles.borderTopWidth=Fe.styles.borderRightWidth=Fe.styles.borderBottomWidth=Fe.styles.borderLeftWidth=1,Fe.styles.borderTopStyle=Fe.styles.borderRightStyle=Fe.styles.borderBottomStyle=Fe.styles.borderLeftStyle=1,Fe.styles.backgroundClip=[0],Fe.styles.backgroundOrigin=[0],Fe.bounds=Pc(Fe.bounds)),Fe.type){case bd:Fe.styles.borderTopRightRadius=Fe.styles.borderTopLeftRadius=Fe.styles.borderBottomRightRadius=Fe.styles.borderBottomLeftRadius=lf;break;case zc:Fe.styles.borderTopRightRadius=Fe.styles.borderTopLeftRadius=Fe.styles.borderBottomRightRadius=Fe.styles.borderBottomLeftRadius=uA;break}return Fe}return It}(la),bA=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this,qe=Ut.options[Ut.selectedIndex||0];return Fe.value=qe&&qe.text||"",Fe}return It}(la),EA=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;return Fe.value=Ut.value,Fe}return It}(la),cA=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;Fe.src=Ut.src,Fe.width=parseInt(Ut.width,10)||0,Fe.height=parseInt(Ut.height,10)||0,Fe.backgroundColor=Fe.styles.backgroundColor;try{if(Ut.contentWindow&&Ut.contentWindow.document&&Ut.contentWindow.document.documentElement){Fe.tree=FA(Ht,Ut.contentWindow.document.documentElement);var qe=Ut.contentWindow.document.documentElement?td(Ht,getComputedStyle(Ut.contentWindow.document.documentElement).backgroundColor):Bh.TRANSPARENT,Nn=Ut.contentWindow.document.body?td(Ht,getComputedStyle(Ut.contentWindow.document.body).backgroundColor):Bh.TRANSPARENT;Fe.backgroundColor=Ka(qe)?Ka(Nn)?Fe.styles.backgroundColor:Nn:qe}}catch(ii){}return Fe}return It}(la),Xd=["OL","UL","MENU"],Ed=function(kt,It,Ht,Ut){for(var Fe=It.firstChild,qe=void 0;Fe;Fe=qe)if(qe=Fe.nextSibling,xi(Fe)&&Fe.data.trim().length>0)Ht.textNodes.push(new Bc(kt,Fe,Ht.styles));else if(Hi(Fe))if(LA(Fe)&&Fe.assignedNodes)Fe.assignedNodes().forEach(function(ii){return Ed(kt,ii,Ht,Ut)});else{var Nn=$d(kt,Fe);Nn.styles.isVisible()&&(fe(Fe,Nn,Ut)?Nn.flags|=4:wn(Nn.styles)&&(Nn.flags|=2),Xd.indexOf(Fe.tagName)!==-1&&(Nn.flags|=8),Ht.elements.push(Nn),Fe.slot,Fe.shadowRoot?Ed(kt,Fe.shadowRoot,Nn,Ut):!Fh(Fe)&&!Pa(Fe)&&!lc(Fe)&&Ed(kt,Fe,Nn,Ut))}},$d=function(kt,It){return Ga(It)?new PA(kt,It):iu(It)?new _c(kt,It):Pa(It)?new sc(kt,It):wo(It)?new Qc(kt,It):ms(It)?new od(kt,It):Ys(It)?new Dh(kt,It):lc(It)?new bA(kt,It):Fh(It)?new EA(kt,It):Kl(It)?new cA(kt,It):new la(kt,It)},FA=function(kt,It){var Ht=$d(kt,It);return Ht.flags|=4,Ed(kt,It,Ht,Ht),Ht},fe=function(kt,It,Ht){return It.styles.isPositionedWithZIndex()||It.styles.opacity<1||It.styles.isTransformed()||vs(kt)&&Ht.styles.isTransparent()},wn=function(kt){return kt.isPositioned()||kt.isFloating()},xi=function(kt){return kt.nodeType===Node.TEXT_NODE},Hi=function(kt){return kt.nodeType===Node.ELEMENT_NODE},hr=function(kt){return Hi(kt)&&typeof kt.style!="undefined"&&!Ur(kt)},Ur=function(kt){return typeof kt.className=="object"},wo=function(kt){return kt.tagName==="LI"},ms=function(kt){return kt.tagName==="OL"},Ys=function(kt){return kt.tagName==="INPUT"},Ba=function(kt){return kt.tagName==="HTML"},Pa=function(kt){return kt.tagName==="svg"},vs=function(kt){return kt.tagName==="BODY"},iu=function(kt){return kt.tagName==="CANVAS"},ru=function(kt){return kt.tagName==="VIDEO"},Ga=function(kt){return kt.tagName==="IMG"},Kl=function(kt){return kt.tagName==="IFRAME"},Nu=function(kt){return kt.tagName==="STYLE"},ac=function(kt){return kt.tagName==="SCRIPT"},Fh=function(kt){return kt.tagName==="TEXTAREA"},lc=function(kt){return kt.tagName==="SELECT"},LA=function(kt){return kt.tagName==="SLOT"},dA=function(kt){return kt.tagName.indexOf("-")>0},MA=function(){function kt(){this.counters={}}return kt.prototype.getCounterValue=function(It){var Ht=this.counters[It];return Ht&&Ht.length?Ht[Ht.length-1]:1},kt.prototype.getCounterValues=function(It){var Ht=this.counters[It];return Ht||[]},kt.prototype.pop=function(It){var Ht=this;It.forEach(function(Ut){return Ht.counters[Ut].pop()})},kt.prototype.parse=function(It){var Ht=this,Ut=It.counterIncrement,Fe=It.counterReset,qe=!0;Ut!==null&&Ut.forEach(function(ii){var Un=Ht.counters[ii.counter];Un&&ii.increment!==0&&(qe=!1,Un.length||Un.push(1),Un[Math.max(0,Un.length-1)]+=ii.increment)});var Nn=[];return qe&&Fe.forEach(function(ii){var Un=Ht.counters[ii.counter];Nn.push(ii.counter),Un||(Un=Ht.counters[ii.counter]=[]),Un.push(ii.reset)}),Nn},kt}(),pc={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"]},Fd={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"]},Gc={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},pl={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Iu=function(kt,It,Ht,Ut,Fe,qe){return kt<It||kt>Ht?ft(kt,Fe,qe.length>0):Ut.integers.reduce(function(Nn,ii,Un){for(;kt>=ii;)kt-=ii,Nn+=Ut.values[Un];return Nn},"")+qe},Yd=function(kt,It,Ht,Ut){var Fe="";do Ht||kt--,Fe=Ut(kt)+Fe,kt/=It;while(kt*It>=It);return Fe},Wl=function(kt,It,Ht,Ut,Fe){var qe=Ht-It+1;return(kt<0?"-":"")+(Yd(Math.abs(kt),qe,Ut,function(Nn){return ee(Math.floor(Nn%qe)+It)})+Fe)},jh=function(kt,It,Ht){Ht===void 0&&(Ht=". ");var Ut=It.length;return Yd(Math.abs(kt),Ut,!1,function(Fe){return It[Math.floor(Fe%Ut)]})+Ht},mc=1,th=2,Vl=4,Ld=8,Uh=function(kt,It,Ht,Ut,Fe,qe){if(kt<-9999||kt>9999)return ft(kt,4,Fe.length>0);var Nn=Math.abs(kt),ii=Fe;if(Nn===0)return It[0]+ii;for(var Un=0;Nn>0&&Un<=4;Un++){var Ri=Nn%10;Ri===0&&Qo(qe,mc)&&ii!==""?ii=It[Ri]+ii:Ri>1||Ri===1&&Un===0||Ri===1&&Un===1&&Qo(qe,th)||Ri===1&&Un===1&&Qo(qe,Vl)&&kt>100||Ri===1&&Un>1&&Qo(qe,Ld)?ii=It[Ri]+(Un>0?Ht[Un-1]:"")+ii:Ri===1&&Un>0&&(ii=Ht[Un-1]+ii),Nn=Math.floor(Nn/10)}return(kt<0?Ut:"")+ii},lh="\u5341\u767E\u5343\u842C",sd="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",st="\uB9C8\uC774\uB108\uC2A4",ft=function(kt,It,Ht){var Ut=Ht?". ":"",Fe=Ht?"\u3001":"",qe=Ht?", ":"",Nn=Ht?" ":"";switch(It){case 0:return"\u2022"+Nn;case 1:return"\u25E6"+Nn;case 2:return"\u25FE"+Nn;case 5:var ii=Wl(kt,48,57,!0,Ut);return ii.length<4?"0"+ii:ii;case 4:return jh(kt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Fe);case 6:return Iu(kt,1,3999,pc,3,Ut).toLowerCase();case 7:return Iu(kt,1,3999,pc,3,Ut);case 8:return Wl(kt,945,969,!1,Ut);case 9:return Wl(kt,97,122,!1,Ut);case 10:return Wl(kt,65,90,!1,Ut);case 11:return Wl(kt,1632,1641,!0,Ut);case 12:case 49:return Iu(kt,1,9999,Fd,3,Ut);case 35:return Iu(kt,1,9999,Fd,3,Ut).toLowerCase();case 13:return Wl(kt,2534,2543,!0,Ut);case 14:case 30:return Wl(kt,6112,6121,!0,Ut);case 15:return jh(kt,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Fe);case 16:return jh(kt,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Fe);case 17:case 48:return Uh(kt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",lh,"\u8CA0",Fe,th|Vl|Ld);case 47:return Uh(kt,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",sd,"\u8CA0",Fe,mc|th|Vl|Ld);case 42:return Uh(kt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",lh,"\u8D1F",Fe,th|Vl|Ld);case 41:return Uh(kt,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",sd,"\u8D1F",Fe,mc|th|Vl|Ld);case 26:return Uh(kt,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,Fe,0);case 25:return Uh(kt,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,Fe,mc|th|Vl);case 31:return Uh(kt,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",st,qe,mc|th|Vl);case 33:return Uh(kt,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",st,qe,0);case 32:return Uh(kt,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",st,qe,mc|th|Vl);case 18:return Wl(kt,2406,2415,!0,Ut);case 20:return Iu(kt,1,19999,pl,3,Ut);case 21:return Wl(kt,2790,2799,!0,Ut);case 22:return Wl(kt,2662,2671,!0,Ut);case 22:return Iu(kt,1,10999,Gc,3,Ut);case 23:return jh(kt,"\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 jh(kt,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Wl(kt,3302,3311,!0,Ut);case 28:return jh(kt,"\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",Fe);case 29:return jh(kt,"\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",Fe);case 34:return Wl(kt,3792,3801,!0,Ut);case 37:return Wl(kt,6160,6169,!0,Ut);case 38:return Wl(kt,4160,4169,!0,Ut);case 39:return Wl(kt,2918,2927,!0,Ut);case 40:return Wl(kt,1776,1785,!0,Ut);case 43:return Wl(kt,3046,3055,!0,Ut);case 44:return Wl(kt,3174,3183,!0,Ut);case 45:return Wl(kt,3664,3673,!0,Ut);case 46:return Wl(kt,3872,3881,!0,Ut);case 3:default:return Wl(kt,48,57,!0,Ut)}},At="data-html2canvas-ignore",xt=function(){function kt(It,Ht,Ut){if(this.context=It,this.options=Ut,this.scrolledElements=[],this.referenceElement=Ht,this.counters=new MA,this.quoteDepth=0,!Ht.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Ht.ownerDocument.documentElement,!1)}return kt.prototype.toIFrame=function(It,Ht){var Ut=this,Fe=Pe(It,Ht);if(!Fe.contentWindow)return Promise.reject("Unable to find iframe window");var qe=It.defaultView.pageXOffset,Nn=It.defaultView.pageYOffset,ii=Fe.contentWindow,Un=ii.document,Ri=un(Fe).then(function(){return ge(Ut,void 0,void 0,function(){var Ki,ur;return se(this,function(vt){switch(vt.label){case 0:return this.scrolledElements.forEach(Sr),ii&&(ii.scrollTo(Ht.left,Ht.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ii.scrollY!==Ht.top||ii.scrollX!==Ht.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ii.scrollX-Ht.left,ii.scrollY-Ht.top,0,0))),Ki=this.options.onclone,ur=this.clonedReferenceElement,typeof ur=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Un.fonts&&Un.fonts.ready?[4,Un.fonts.ready]:[3,2];case 1:vt.sent(),vt.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Re(Un)]:[3,4];case 3:vt.sent(),vt.label=4;case 4:return typeof Ki=="function"?[2,Promise.resolve().then(function(){return Ki(Un,ur)}).then(function(){return Fe})]:[2,Fe]}})})});return Un.open(),Un.write(Oi(document.doctype)+"<html></html>"),Ei(this.referenceElement.ownerDocument,qe,Nn),Un.replaceChild(Un.adoptNode(this.documentElement),Un.documentElement),Un.close(),Ri},kt.prototype.createElementClone=function(It){if(ta(It,2))debugger;if(iu(It))return this.createCanvasClone(It);if(ru(It))return this.createVideoClone(It);if(Nu(It))return this.createStyleClone(It);var Ht=It.cloneNode(!1);return Ga(Ht)&&(Ga(It)&&It.currentSrc&&It.currentSrc!==It.src&&(Ht.src=It.currentSrc,Ht.srcset=""),Ht.loading==="lazy"&&(Ht.loading="eager")),dA(Ht)?this.createCustomElementClone(Ht):Ht},kt.prototype.createCustomElementClone=function(It){var Ht=document.createElement("html2canvascustomelement");return pn(It.style,Ht),Ht},kt.prototype.createStyleClone=function(It){try{var Ht=It.sheet;if(Ht&&Ht.cssRules){var Ut=[].slice.call(Ht.cssRules,0).reduce(function(qe,Nn){return Nn&&typeof Nn.cssText=="string"?qe+Nn.cssText:qe},""),Fe=It.cloneNode(!1);return Fe.textContent=Ut,Fe}}catch(qe){if(this.context.logger.error("Unable to access cssRules property",qe),qe.name!=="SecurityError")throw qe}return It.cloneNode(!1)},kt.prototype.createCanvasClone=function(It){var Ht;if(this.options.inlineImages&&It.ownerDocument){var Ut=It.ownerDocument.createElement("img");try{return Ut.src=It.toDataURL(),Ut}catch(Ri){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",It)}}var Fe=It.cloneNode(!1);try{Fe.width=It.width,Fe.height=It.height;var qe=It.getContext("2d"),Nn=Fe.getContext("2d");if(Nn)if(!this.options.allowTaint&&qe)Nn.putImageData(qe.getImageData(0,0,It.width,It.height),0,0);else{var ii=(Ht=It.getContext("webgl2"))!==null&&Ht!==void 0?Ht:It.getContext("webgl");if(ii){var Un=ii.getContextAttributes();(Un==null?void 0:Un.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",It)}Nn.drawImage(It,0,0)}return Fe}catch(Ri){this.context.logger.info("Unable to clone canvas as it is tainted",It)}return Fe},kt.prototype.createVideoClone=function(It){var Ht=It.ownerDocument.createElement("canvas");Ht.width=It.offsetWidth,Ht.height=It.offsetHeight;var Ut=Ht.getContext("2d");try{return Ut&&(Ut.drawImage(It,0,0,Ht.width,Ht.height),this.options.allowTaint||Ut.getImageData(0,0,Ht.width,Ht.height)),Ht}catch(qe){this.context.logger.info("Unable to clone video as it is tainted",It)}var Fe=It.ownerDocument.createElement("canvas");return Fe.width=It.offsetWidth,Fe.height=It.offsetHeight,Fe},kt.prototype.appendChildNode=function(It,Ht,Ut){(!Hi(Ht)||!ac(Ht)&&!Ht.hasAttribute(At)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Ht)))&&(!this.options.copyStyles||!Hi(Ht)||!Nu(Ht))&&It.appendChild(this.cloneNode(Ht,Ut))},kt.prototype.cloneChildNodes=function(It,Ht,Ut){for(var Fe=this,qe=It.shadowRoot?It.shadowRoot.firstChild:It.firstChild;qe;qe=qe.nextSibling)if(Hi(qe)&&LA(qe)&&typeof qe.assignedNodes=="function"){var Nn=qe.assignedNodes();Nn.length&&Nn.forEach(function(ii){return Fe.appendChildNode(Ht,ii,Ut)})}else this.appendChildNode(Ht,qe,Ut)},kt.prototype.cloneNode=function(It,Ht){if(xi(It))return document.createTextNode(It.data);if(!It.ownerDocument)return It.cloneNode(!1);var Ut=It.ownerDocument.defaultView;if(Ut&&Hi(It)&&(hr(It)||Ur(It))){var Fe=this.createElementClone(It);Fe.style.transitionProperty="none";var qe=Ut.getComputedStyle(It),Nn=Ut.getComputedStyle(It,":before"),ii=Ut.getComputedStyle(It,":after");this.referenceElement===It&&hr(Fe)&&(this.clonedReferenceElement=Fe),vs(Fe)&&as(Fe);var Un=this.counters.parse(new Ul(this.context,qe)),Ri=this.resolvePseudoContent(It,Fe,Nn,te.BEFORE);dA(It)&&(Ht=!0),ru(It)||this.cloneChildNodes(It,Fe,Ht),Ri&&Fe.insertBefore(Ri,Fe.firstChild);var Ki=this.resolvePseudoContent(It,Fe,ii,te.AFTER);return Ki&&Fe.appendChild(Ki),this.counters.pop(Un),(qe&&(this.options.copyStyles||Ur(It))&&!Kl(It)||Ht)&&pn(qe,Fe),(It.scrollTop!==0||It.scrollLeft!==0)&&this.scrolledElements.push([Fe,It.scrollLeft,It.scrollTop]),(Fh(It)||lc(It))&&(Fh(Fe)||lc(Fe))&&(Fe.value=It.value),Fe}return It.cloneNode(!1)},kt.prototype.resolvePseudoContent=function(It,Ht,Ut,Fe){var qe=this;if(Ut){var Nn=Ut.content,ii=Ht.ownerDocument;if(!(!ii||!Nn||Nn==="none"||Nn==="-moz-alt-content"||Ut.display==="none")){this.counters.parse(new Ul(this.context,Ut));var Un=new ua(this.context,Ut),Ri=ii.createElement("html2canvaspseudoelement");pn(Ut,Ri),Un.content.forEach(function(ur){if(ur.type===0)Ri.appendChild(ii.createTextNode(ur.value));else if(ur.type===22){var vt=ii.createElement("img");vt.src=ur.value,vt.style.opacity="1",Ri.appendChild(vt)}else if(ur.type===18){if(ur.name==="attr"){var Qt=ur.values.filter(ja);Qt.length&&Ri.appendChild(ii.createTextNode(It.getAttribute(Qt[0].value)||""))}else if(ur.name==="counter"){var de=ur.values.filter(Pu),Me=de[0],ln=de[1];if(Me&&ja(Me)){var dn=qe.counters.getCounterValue(Me.value),An=ln&&ja(ln)?ze.parse(qe.context,ln.value):3;Ri.appendChild(ii.createTextNode(ft(dn,An,!1)))}}else if(ur.name==="counters"){var Sn=ur.values.filter(Pu),Me=Sn[0],Tn=Sn[1],ln=Sn[2];if(Me&&ja(Me)){var Wn=qe.counters.getCounterValues(Me.value),mi=ln&&ja(ln)?ze.parse(qe.context,ln.value):3,qi=Tn&&Tn.type===0?Tn.value:"",tr=Wn.map(function(Nr){return ft(Nr,mi,!1)}).join(qi);Ri.appendChild(ii.createTextNode(tr))}}}else if(ur.type===20)switch(ur.value){case"open-quote":Ri.appendChild(ii.createTextNode(Go(Un.quotes,qe.quoteDepth++,!0)));break;case"close-quote":Ri.appendChild(ii.createTextNode(Go(Un.quotes,--qe.quoteDepth,!1)));break;default:Ri.appendChild(ii.createTextNode(ur.value))}}),Ri.className=vo+" "+Zo;var Ki=Fe===te.BEFORE?" "+vo:" "+Zo;return Ur(Ht)?Ht.className.baseValue+=Ki:Ht.className+=Ki,Ri}}},kt.destroy=function(It){return It.parentNode?(It.parentNode.removeChild(It),!0):!1},kt}(),te;(function(kt){kt[kt.BEFORE=0]="BEFORE",kt[kt.AFTER=1]="AFTER"})(te||(te={}));var Pe=function(kt,It){var Ht=kt.createElement("iframe");return Ht.className="html2canvas-container",Ht.style.visibility="hidden",Ht.style.position="fixed",Ht.style.left="-10000px",Ht.style.top="0px",Ht.style.border="0",Ht.width=It.width.toString(),Ht.height=It.height.toString(),Ht.scrolling="no",Ht.setAttribute(At,"true"),kt.body.appendChild(Ht),Ht},He=function(kt){return new Promise(function(It){if(kt.complete){It();return}if(!kt.src){It();return}kt.onload=It,kt.onerror=It})},Re=function(kt){return Promise.all([].slice.call(kt.images,0).map(He))},un=function(kt){return new Promise(function(It,Ht){var Ut=kt.contentWindow;if(!Ut)return Ht("No window assigned for iframe");var Fe=Ut.document;Ut.onload=kt.onload=function(){Ut.onload=kt.onload=null;var qe=setInterval(function(){Fe.body.childNodes.length>0&&Fe.readyState==="complete"&&(clearInterval(qe),It(kt))},50)}})},si=["all","d","content"],pn=function(kt,It){for(var Ht=kt.length-1;Ht>=0;Ht--){var Ut=kt.item(Ht);si.indexOf(Ut)===-1&&It.style.setProperty(Ut,kt.getPropertyValue(Ut))}return It},Oi=function(kt){var It="";return kt&&(It+="<!DOCTYPE ",kt.name&&(It+=kt.name),kt.internalSubset&&(It+=kt.internalSubset),kt.publicId&&(It+='"'+kt.publicId+'"'),kt.systemId&&(It+='"'+kt.systemId+'"'),It+=">"),It},Ei=function(kt,It,Ht){kt&&kt.defaultView&&(It!==kt.defaultView.pageXOffset||Ht!==kt.defaultView.pageYOffset)&&kt.defaultView.scrollTo(It,Ht)},Sr=function(kt){var It=kt[0],Ht=kt[1],Ut=kt[2];It.scrollLeft=Ht,It.scrollTop=Ut},Dr=":before",eo=":after",vo="___html2canvas___pseudoelement_before",Zo="___html2canvas___pseudoelement_after",No=`{
content: "" !important;
display: none !important;
}`,as=function(kt){ks(kt,"."+vo+Dr+No+`
.`+Zo+eo+No)},ks=function(kt,It){var Ht=kt.ownerDocument;if(Ht){var Ut=Ht.createElement("style");Ut.textContent=It,kt.appendChild(Ut)}},Io=function(){function kt(){}return kt.getOrigin=function(It){var Ht=kt._link;return Ht?(Ht.href=It,Ht.href=Ht.href,Ht.protocol+Ht.hostname+Ht.port):"about:blank"},kt.isSameOrigin=function(It){return kt.getOrigin(It)===kt._origin},kt.setContext=function(It){kt._link=It.document.createElement("a"),kt._origin=kt.getOrigin(It.location.href)},kt._origin="about:blank",kt}(),ea=function(){function kt(It,Ht){this.context=It,this._options=Ht,this._cache={}}return kt.prototype.addImage=function(It){var Ht=Promise.resolve();return this.has(It)||(ml(It)||yu(It))&&(this._cache[It]=this.loadImage(It)).catch(function(){}),Ht},kt.prototype.match=function(It){return this._cache[It]},kt.prototype.loadImage=function(It){return ge(this,void 0,void 0,function(){var Ht,Ut,Fe,qe,Nn=this;return se(this,function(ii){switch(ii.label){case 0:return Ht=Io.isSameOrigin(It),Ut=!Na(It)&&this._options.useCORS===!0&&cu.SUPPORT_CORS_IMAGES&&!Ht,Fe=!Na(It)&&!Ht&&!ml(It)&&typeof this._options.proxy=="string"&&cu.SUPPORT_CORS_XHR&&!Ut,!Ht&&this._options.allowTaint===!1&&!Na(It)&&!ml(It)&&!Fe&&!Ut?[2]:(qe=It,Fe?[4,this.proxy(qe)]:[3,2]);case 1:qe=ii.sent(),ii.label=2;case 2:return this.context.logger.debug("Added image "+It.substring(0,256)),[4,new Promise(function(Un,Ri){var Ki=new Image;Ki.onload=function(){return Un(Ki)},Ki.onerror=Ri,(ya(qe)||Ut)&&(Ki.crossOrigin="anonymous"),Ki.src=qe,Ki.complete===!0&&setTimeout(function(){return Un(Ki)},500),Nn._options.imageTimeout>0&&setTimeout(function(){return Ri("Timed out ("+Nn._options.imageTimeout+"ms) loading image")},Nn._options.imageTimeout)})];case 3:return[2,ii.sent()]}})})},kt.prototype.has=function(It){return typeof this._cache[It]!="undefined"},kt.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},kt.prototype.proxy=function(It){var Ht=this,Ut=this._options.proxy;if(!Ut)throw new Error("No proxy defined");var Fe=It.substring(0,256);return new Promise(function(qe,Nn){var ii=cu.SUPPORT_RESPONSE_TYPE?"blob":"text",Un=new XMLHttpRequest;Un.onload=function(){if(Un.status===200)if(ii==="text")qe(Un.response);else{var ur=new FileReader;ur.addEventListener("load",function(){return qe(ur.result)},!1),ur.addEventListener("error",function(vt){return Nn(vt)},!1),ur.readAsDataURL(Un.response)}else Nn("Failed to proxy resource "+Fe+" with status code "+Un.status)},Un.onerror=Nn;var Ri=Ut.indexOf("?")>-1?"&":"?";if(Un.open("GET",""+Ut+Ri+"url="+encodeURIComponent(It)+"&responseType="+ii),ii!=="text"&&Un instanceof XMLHttpRequest&&(Un.responseType=ii),Ht._options.imageTimeout){var Ki=Ht._options.imageTimeout;Un.timeout=Ki,Un.ontimeout=function(){return Nn("Timed out ("+Ki+"ms) proxying "+Fe)}}Un.send()})},kt}(),Bl=/^data:image\/svg\+xml/i,ku=/^data:image\/.*;base64,/i,cl=/^data:image\/.*/i,yu=function(kt){return cu.SUPPORT_SVG_DRAWING||!vl(kt)},Na=function(kt){return cl.test(kt)},ya=function(kt){return ku.test(kt)},ml=function(kt){return kt.substr(0,4)==="blob"},vl=function(kt){return kt.substr(-3).toLowerCase()==="svg"||Bl.test(kt)},Co=function(){function kt(It,Ht){this.type=0,this.x=It,this.y=Ht}return kt.prototype.add=function(It,Ht){return new kt(this.x+It,this.y+Ht)},kt}(),wa=function(kt,It,Ht){return new Co(kt.x+(It.x-kt.x)*Ht,kt.y+(It.y-kt.y)*Ht)},Il=function(){function kt(It,Ht,Ut,Fe){this.type=1,this.start=It,this.startControl=Ht,this.endControl=Ut,this.end=Fe}return kt.prototype.subdivide=function(It,Ht){var Ut=wa(this.start,this.startControl,It),Fe=wa(this.startControl,this.endControl,It),qe=wa(this.endControl,this.end,It),Nn=wa(Ut,Fe,It),ii=wa(Fe,qe,It),Un=wa(Nn,ii,It);return Ht?new kt(this.start,Ut,Nn,Un):new kt(Un,ii,qe,this.end)},kt.prototype.add=function(It,Ht){return new kt(this.start.add(It,Ht),this.startControl.add(It,Ht),this.endControl.add(It,Ht),this.end.add(It,Ht))},kt.prototype.reverse=function(){return new kt(this.end,this.endControl,this.startControl,this.start)},kt}(),kl=function(kt){return kt.type===1},uh=function(){function kt(It){var Ht=It.styles,Ut=It.bounds,Fe=nc(Ht.borderTopLeftRadius,Ut.width,Ut.height),qe=Fe[0],Nn=Fe[1],ii=nc(Ht.borderTopRightRadius,Ut.width,Ut.height),Un=ii[0],Ri=ii[1],Ki=nc(Ht.borderBottomRightRadius,Ut.width,Ut.height),ur=Ki[0],vt=Ki[1],Qt=nc(Ht.borderBottomLeftRadius,Ut.width,Ut.height),de=Qt[0],Me=Qt[1],ln=[];ln.push((qe+Un)/Ut.width),ln.push((de+ur)/Ut.width),ln.push((Nn+Me)/Ut.height),ln.push((Ri+vt)/Ut.height);var dn=Math.max.apply(Math,ln);dn>1&&(qe/=dn,Nn/=dn,Un/=dn,Ri/=dn,ur/=dn,vt/=dn,de/=dn,Me/=dn);var An=Ut.width-Un,Sn=Ut.height-vt,Tn=Ut.width-ur,Wn=Ut.height-Me,mi=Ht.borderTopWidth,qi=Ht.borderRightWidth,tr=Ht.borderBottomWidth,ki=Ht.borderLeftWidth,Wr=sl(Ht.paddingTop,It.bounds.width),Nr=sl(Ht.paddingRight,It.bounds.width),_i=sl(Ht.paddingBottom,It.bounds.width),Ui=sl(Ht.paddingLeft,It.bounds.width);this.topLeftBorderDoubleOuterBox=qe>0||Nn>0?Hs(Ut.left+ki/3,Ut.top+mi/3,qe-ki/3,Nn-mi/3,Da.TOP_LEFT):new Co(Ut.left+ki/3,Ut.top+mi/3),this.topRightBorderDoubleOuterBox=qe>0||Nn>0?Hs(Ut.left+An,Ut.top+mi/3,Un-qi/3,Ri-mi/3,Da.TOP_RIGHT):new Co(Ut.left+Ut.width-qi/3,Ut.top+mi/3),this.bottomRightBorderDoubleOuterBox=ur>0||vt>0?Hs(Ut.left+Tn,Ut.top+Sn,ur-qi/3,vt-tr/3,Da.BOTTOM_RIGHT):new Co(Ut.left+Ut.width-qi/3,Ut.top+Ut.height-tr/3),this.bottomLeftBorderDoubleOuterBox=de>0||Me>0?Hs(Ut.left+ki/3,Ut.top+Wn,de-ki/3,Me-tr/3,Da.BOTTOM_LEFT):new Co(Ut.left+ki/3,Ut.top+Ut.height-tr/3),this.topLeftBorderDoubleInnerBox=qe>0||Nn>0?Hs(Ut.left+ki*2/3,Ut.top+mi*2/3,qe-ki*2/3,Nn-mi*2/3,Da.TOP_LEFT):new Co(Ut.left+ki*2/3,Ut.top+mi*2/3),this.topRightBorderDoubleInnerBox=qe>0||Nn>0?Hs(Ut.left+An,Ut.top+mi*2/3,Un-qi*2/3,Ri-mi*2/3,Da.TOP_RIGHT):new Co(Ut.left+Ut.width-qi*2/3,Ut.top+mi*2/3),this.bottomRightBorderDoubleInnerBox=ur>0||vt>0?Hs(Ut.left+Tn,Ut.top+Sn,ur-qi*2/3,vt-tr*2/3,Da.BOTTOM_RIGHT):new Co(Ut.left+Ut.width-qi*2/3,Ut.top+Ut.height-tr*2/3),this.bottomLeftBorderDoubleInnerBox=de>0||Me>0?Hs(Ut.left+ki*2/3,Ut.top+Wn,de-ki*2/3,Me-tr*2/3,Da.BOTTOM_LEFT):new Co(Ut.left+ki*2/3,Ut.top+Ut.height-tr*2/3),this.topLeftBorderStroke=qe>0||Nn>0?Hs(Ut.left+ki/2,Ut.top+mi/2,qe-ki/2,Nn-mi/2,Da.TOP_LEFT):new Co(Ut.left+ki/2,Ut.top+mi/2),this.topRightBorderStroke=qe>0||Nn>0?Hs(Ut.left+An,Ut.top+mi/2,Un-qi/2,Ri-mi/2,Da.TOP_RIGHT):new Co(Ut.left+Ut.width-qi/2,Ut.top+mi/2),this.bottomRightBorderStroke=ur>0||vt>0?Hs(Ut.left+Tn,Ut.top+Sn,ur-qi/2,vt-tr/2,Da.BOTTOM_RIGHT):new Co(Ut.left+Ut.width-qi/2,Ut.top+Ut.height-tr/2),this.bottomLeftBorderStroke=de>0||Me>0?Hs(Ut.left+ki/2,Ut.top+Wn,de-ki/2,Me-tr/2,Da.BOTTOM_LEFT):new Co(Ut.left+ki/2,Ut.top+Ut.height-tr/2),this.topLeftBorderBox=qe>0||Nn>0?Hs(Ut.left,Ut.top,qe,Nn,Da.TOP_LEFT):new Co(Ut.left,Ut.top),this.topRightBorderBox=Un>0||Ri>0?Hs(Ut.left+An,Ut.top,Un,Ri,Da.TOP_RIGHT):new Co(Ut.left+Ut.width,Ut.top),this.bottomRightBorderBox=ur>0||vt>0?Hs(Ut.left+Tn,Ut.top+Sn,ur,vt,Da.BOTTOM_RIGHT):new Co(Ut.left+Ut.width,Ut.top+Ut.height),this.bottomLeftBorderBox=de>0||Me>0?Hs(Ut.left,Ut.top+Wn,de,Me,Da.BOTTOM_LEFT):new Co(Ut.left,Ut.top+Ut.height),this.topLeftPaddingBox=qe>0||Nn>0?Hs(Ut.left+ki,Ut.top+mi,Math.max(0,qe-ki),Math.max(0,Nn-mi),Da.TOP_LEFT):new Co(Ut.left+ki,Ut.top+mi),this.topRightPaddingBox=Un>0||Ri>0?Hs(Ut.left+Math.min(An,Ut.width-qi),Ut.top+mi,An>Ut.width+qi?0:Math.max(0,Un-qi),Math.max(0,Ri-mi),Da.TOP_RIGHT):new Co(Ut.left+Ut.width-qi,Ut.top+mi),this.bottomRightPaddingBox=ur>0||vt>0?Hs(Ut.left+Math.min(Tn,Ut.width-ki),Ut.top+Math.min(Sn,Ut.height-tr),Math.max(0,ur-qi),Math.max(0,vt-tr),Da.BOTTOM_RIGHT):new Co(Ut.left+Ut.width-qi,Ut.top+Ut.height-tr),this.bottomLeftPaddingBox=de>0||Me>0?Hs(Ut.left+ki,Ut.top+Math.min(Wn,Ut.height-tr),Math.max(0,de-ki),Math.max(0,Me-tr),Da.BOTTOM_LEFT):new Co(Ut.left+ki,Ut.top+Ut.height-tr),this.topLeftContentBox=qe>0||Nn>0?Hs(Ut.left+ki+Ui,Ut.top+mi+Wr,Math.max(0,qe-(ki+Ui)),Math.max(0,Nn-(mi+Wr)),Da.TOP_LEFT):new Co(Ut.left+ki+Ui,Ut.top+mi+Wr),this.topRightContentBox=Un>0||Ri>0?Hs(Ut.left+Math.min(An,Ut.width+ki+Ui),Ut.top+mi+Wr,An>Ut.width+ki+Ui?0:Un-ki+Ui,Ri-(mi+Wr),Da.TOP_RIGHT):new Co(Ut.left+Ut.width-(qi+Nr),Ut.top+mi+Wr),this.bottomRightContentBox=ur>0||vt>0?Hs(Ut.left+Math.min(Tn,Ut.width-(ki+Ui)),Ut.top+Math.min(Sn,Ut.height+mi+Wr),Math.max(0,ur-(qi+Nr)),vt-(tr+_i),Da.BOTTOM_RIGHT):new Co(Ut.left+Ut.width-(qi+Nr),Ut.top+Ut.height-(tr+_i)),this.bottomLeftContentBox=de>0||Me>0?Hs(Ut.left+ki+Ui,Ut.top+Wn,Math.max(0,de-(ki+Ui)),Me-(tr+_i),Da.BOTTOM_LEFT):new Co(Ut.left+ki+Ui,Ut.top+Ut.height-(tr+_i))}return kt}(),Da;(function(kt){kt[kt.TOP_LEFT=0]="TOP_LEFT",kt[kt.TOP_RIGHT=1]="TOP_RIGHT",kt[kt.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",kt[kt.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Da||(Da={}));var Hs=function(kt,It,Ht,Ut,Fe){var qe=4*((Math.sqrt(2)-1)/3),Nn=Ht*qe,ii=Ut*qe,Un=kt+Ht,Ri=It+Ut;switch(Fe){case Da.TOP_LEFT:return new Il(new Co(kt,Ri),new Co(kt,Ri-ii),new Co(Un-Nn,It),new Co(Un,It));case Da.TOP_RIGHT:return new Il(new Co(kt,It),new Co(kt+Nn,It),new Co(Un,Ri-ii),new Co(Un,Ri));case Da.BOTTOM_RIGHT:return new Il(new Co(Un,It),new Co(Un,It+ii),new Co(kt+Nn,Ri),new Co(kt,Ri));case Da.BOTTOM_LEFT:default:return new Il(new Co(Un,Ri),new Co(Un-Nn,Ri),new Co(kt,It+ii),new Co(kt,It))}},wu=function(kt){return[kt.topLeftBorderBox,kt.topRightBorderBox,kt.bottomRightBorderBox,kt.bottomLeftBorderBox]},du=function(kt){return[kt.topLeftContentBox,kt.topRightContentBox,kt.bottomRightContentBox,kt.bottomLeftContentBox]},ad=function(kt){return[kt.topLeftPaddingBox,kt.topRightPaddingBox,kt.bottomRightPaddingBox,kt.bottomLeftPaddingBox]},uc=function(){function kt(It,Ht,Ut){this.offsetX=It,this.offsetY=Ht,this.matrix=Ut,this.type=0,this.target=6}return kt}(),hh=function(){function kt(It,Ht){this.path=It,this.target=Ht,this.type=1}return kt}(),Sh=function(){function kt(It){this.opacity=It,this.type=2,this.target=6}return kt}(),Tl=function(kt){return kt.type===0},eh=function(kt){return kt.type===1},Wc=function(kt){return kt.type===2},Jd=function(kt,It){return kt.length===It.length?kt.some(function(Ht,Ut){return Ht===It[Ut]}):!1},zf=function(kt,It,Ht,Ut,Fe){return kt.map(function(qe,Nn){switch(Nn){case 0:return qe.add(It,Ht);case 1:return qe.add(It+Ut,Ht);case 2:return qe.add(It+Ut,Ht+Fe);case 3:return qe.add(It,Ht+Fe)}return qe})},Lh=function(){function kt(It){this.element=It,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return kt}(),Sg=function(){function kt(It,Ht){if(this.container=It,this.parent=Ht,this.effects=[],this.curves=new uh(this.container),this.container.styles.opacity<1&&this.effects.push(new Sh(this.container.styles.opacity)),this.container.styles.transform!==null){var Ut=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Fe=this.container.bounds.top+this.container.styles.transformOrigin[1].number,qe=this.container.styles.transform;this.effects.push(new uc(Ut,Fe,qe))}if(this.container.styles.overflowX!==0){var Nn=wu(this.curves),ii=ad(this.curves);Jd(Nn,ii)?this.effects.push(new hh(Nn,6)):(this.effects.push(new hh(Nn,2)),this.effects.push(new hh(ii,4)))}}return kt.prototype.getEffects=function(It){for(var Ht=[2,3].indexOf(this.container.styles.position)===-1,Ut=this.parent,Fe=this.effects.slice(0);Ut;){var qe=Ut.effects.filter(function(Un){return!eh(Un)});if(Ht||Ut.container.styles.position!==0||!Ut.parent){if(Fe.unshift.apply(Fe,qe),Ht=[2,3].indexOf(Ut.container.styles.position)===-1,Ut.container.styles.overflowX!==0){var Nn=wu(Ut.curves),ii=ad(Ut.curves);Jd(Nn,ii)||Fe.unshift(new hh(ii,6))}}else Fe.unshift.apply(Fe,qe);Ut=Ut.parent}return Fe.filter(function(Un){return Qo(Un.target,It)})},kt}(),Md=function(kt,It,Ht,Ut){kt.container.elements.forEach(function(Fe){var qe=Qo(Fe.flags,4),Nn=Qo(Fe.flags,2),ii=new Sg(Fe,kt);Qo(Fe.styles.display,2048)&&Ut.push(ii);var Un=Qo(Fe.flags,8)?[]:Ut;if(qe||Nn){var Ri=qe||Fe.styles.isPositioned()?Ht:It,Ki=new Lh(ii);if(Fe.styles.isPositioned()||Fe.styles.opacity<1||Fe.styles.isTransformed()){var ur=Fe.styles.zIndex.order;if(ur<0){var vt=0;Ri.negativeZIndex.some(function(de,Me){return ur>de.element.container.styles.zIndex.order?(vt=Me,!1):vt>0}),Ri.negativeZIndex.splice(vt,0,Ki)}else if(ur>0){var Qt=0;Ri.positiveZIndex.some(function(de,Me){return ur>=de.element.container.styles.zIndex.order?(Qt=Me+1,!1):Qt>0}),Ri.positiveZIndex.splice(Qt,0,Ki)}else Ri.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ki)}else Fe.styles.isFloating()?Ri.nonPositionedFloats.push(Ki):Ri.nonPositionedInlineLevel.push(Ki);Md(ii,Ki,qe?Ki:Ht,Un)}else Fe.styles.isInlineLevel()?It.inlineLevel.push(ii):It.nonInlineLevel.push(ii),Md(ii,It,Ht,Un);Qo(Fe.flags,8)&&yf(Fe,Un)})},yf=function(kt,It){for(var Ht=kt instanceof od?kt.start:1,Ut=kt instanceof od?kt.reversed:!1,Fe=0;Fe<It.length;Fe++){var qe=It[Fe];qe.container instanceof Qc&&typeof qe.container.value=="number"&&qe.container.value!==0&&(Ht=qe.container.value),qe.listValue=ft(Ht,qe.container.styles.listStyleType,!0),Ht+=Ut?-1:1}},wf=function(kt){var It=new Sg(kt,null),Ht=new Lh(It),Ut=[];return Md(It,Ht,Ht,Ut),yf(It.container,Ut),Ht},GA=function(kt,It){switch(It){case 0:return _u(kt.topLeftBorderBox,kt.topLeftPaddingBox,kt.topRightBorderBox,kt.topRightPaddingBox);case 1:return _u(kt.topRightBorderBox,kt.topRightPaddingBox,kt.bottomRightBorderBox,kt.bottomRightPaddingBox);case 2:return _u(kt.bottomRightBorderBox,kt.bottomRightPaddingBox,kt.bottomLeftBorderBox,kt.bottomLeftPaddingBox);case 3:default:return _u(kt.bottomLeftBorderBox,kt.bottomLeftPaddingBox,kt.topLeftBorderBox,kt.topLeftPaddingBox)}},NA=function(kt,It){switch(It){case 0:return _u(kt.topLeftBorderBox,kt.topLeftBorderDoubleOuterBox,kt.topRightBorderBox,kt.topRightBorderDoubleOuterBox);case 1:return _u(kt.topRightBorderBox,kt.topRightBorderDoubleOuterBox,kt.bottomRightBorderBox,kt.bottomRightBorderDoubleOuterBox);case 2:return _u(kt.bottomRightBorderBox,kt.bottomRightBorderDoubleOuterBox,kt.bottomLeftBorderBox,kt.bottomLeftBorderDoubleOuterBox);case 3:default:return _u(kt.bottomLeftBorderBox,kt.bottomLeftBorderDoubleOuterBox,kt.topLeftBorderBox,kt.topLeftBorderDoubleOuterBox)}},Kf=function(kt,It){switch(It){case 0:return _u(kt.topLeftBorderDoubleInnerBox,kt.topLeftPaddingBox,kt.topRightBorderDoubleInnerBox,kt.topRightPaddingBox);case 1:return _u(kt.topRightBorderDoubleInnerBox,kt.topRightPaddingBox,kt.bottomRightBorderDoubleInnerBox,kt.bottomRightPaddingBox);case 2:return _u(kt.bottomRightBorderDoubleInnerBox,kt.bottomRightPaddingBox,kt.bottomLeftBorderDoubleInnerBox,kt.bottomLeftPaddingBox);case 3:default:return _u(kt.bottomLeftBorderDoubleInnerBox,kt.bottomLeftPaddingBox,kt.topLeftBorderDoubleInnerBox,kt.topLeftPaddingBox)}},WA=function(kt,It){switch(It){case 0:return Nd(kt.topLeftBorderStroke,kt.topRightBorderStroke);case 1:return Nd(kt.topRightBorderStroke,kt.bottomRightBorderStroke);case 2:return Nd(kt.bottomRightBorderStroke,kt.bottomLeftBorderStroke);case 3:default:return Nd(kt.bottomLeftBorderStroke,kt.topLeftBorderStroke)}},Nd=function(kt,It){var Ht=[];return kl(kt)?Ht.push(kt.subdivide(.5,!1)):Ht.push(kt),kl(It)?Ht.push(It.subdivide(.5,!0)):Ht.push(It),Ht},_u=function(kt,It,Ht,Ut){var Fe=[];return kl(kt)?Fe.push(kt.subdivide(.5,!1)):Fe.push(kt),kl(Ht)?Fe.push(Ht.subdivide(.5,!0)):Fe.push(Ht),kl(Ut)?Fe.push(Ut.subdivide(.5,!0).reverse()):Fe.push(Ut),kl(It)?Fe.push(It.subdivide(.5,!1).reverse()):Fe.push(It),Fe},nh=function(kt){var It=kt.bounds,Ht=kt.styles;return It.add(Ht.borderLeftWidth,Ht.borderTopWidth,-(Ht.borderRightWidth+Ht.borderLeftWidth),-(Ht.borderTopWidth+Ht.borderBottomWidth))},Gf=function(kt){var It=kt.styles,Ht=kt.bounds,Ut=sl(It.paddingLeft,Ht.width),Fe=sl(It.paddingRight,Ht.width),qe=sl(It.paddingTop,Ht.width),Nn=sl(It.paddingBottom,Ht.width);return Ht.add(Ut+It.borderLeftWidth,qe+It.borderTopWidth,-(It.borderRightWidth+It.borderLeftWidth+Ut+Fe),-(It.borderTopWidth+It.borderBottomWidth+qe+Nn))},Sp=function(kt,It){return kt===0?It.bounds:kt===2?Gf(It):nh(It)},zg=function(kt,It){return kt===0?It.bounds:kt===2?Gf(It):nh(It)},VA=function(kt,It,Ht){var Ut=Sp(bc(kt.styles.backgroundOrigin,It),kt),Fe=zg(bc(kt.styles.backgroundClip,It),kt),qe=Cp(bc(kt.styles.backgroundSize,It),Ht,Ut),Nn=qe[0],ii=qe[1],Un=nc(bc(kt.styles.backgroundPosition,It),Ut.width-Nn,Ut.height-ii),Ri=Ec(bc(kt.styles.backgroundRepeat,It),Un,qe,Ut,Fe),Ki=Math.round(Ut.left+Un[0]),ur=Math.round(Ut.top+Un[1]);return[Ri,Ki,ur,Nn,ii]},ZA=function(kt){return ja(kt)&&kt.value===_t.AUTO},Wf=function(kt){return typeof kt=="number"},Cp=function(kt,It,Ht){var Ut=It[0],Fe=It[1],qe=It[2],Nn=kt[0],ii=kt[1];if(!Nn)return[0,0];if(_o(Nn)&&ii&&_o(ii))return[sl(Nn,Ht.width),sl(ii,Ht.height)];var Un=Wf(qe);if(ja(Nn)&&(Nn.value===_t.CONTAIN||Nn.value===_t.COVER)){if(Wf(qe)){var Ri=Ht.width/Ht.height;return Ri<qe!=(Nn.value===_t.COVER)?[Ht.width,Ht.width/qe]:[Ht.height*qe,Ht.height]}return[Ht.width,Ht.height]}var Ki=Wf(Ut),ur=Wf(Fe),vt=Ki||ur;if(ZA(Nn)&&(!ii||ZA(ii))){if(Ki&&ur)return[Ut,Fe];if(!Un&&!vt)return[Ht.width,Ht.height];if(vt&&Un){var Qt=Ki?Ut:Fe*qe,de=ur?Fe:Ut/qe;return[Qt,de]}var Me=Ki?Ut:Ht.width,ln=ur?Fe:Ht.height;return[Me,ln]}if(Un){var dn=0,An=0;return _o(Nn)?dn=sl(Nn,Ht.width):_o(ii)&&(An=sl(ii,Ht.height)),ZA(Nn)?dn=An*qe:(!ii||ZA(ii))&&(An=dn/qe),[dn,An]}var Sn=null,Tn=null;if(_o(Nn)?Sn=sl(Nn,Ht.width):ii&&_o(ii)&&(Tn=sl(ii,Ht.height)),Sn!==null&&(!ii||ZA(ii))&&(Tn=Ki&&ur?Sn/Ut*Fe:Ht.height),Tn!==null&&ZA(Nn)&&(Sn=Ki&&ur?Tn/Fe*Ut:Ht.width),Sn!==null&&Tn!==null)return[Sn,Tn];throw new Error("Unable to calculate background-size for element")},bc=function(kt,It){var Ht=kt[It];return typeof Ht=="undefined"?kt[0]:Ht},Ec=function(kt,It,Ht,Ut,Fe){var qe=It[0],Nn=It[1],ii=Ht[0],Un=Ht[1];switch(kt){case 2:return[new Co(Math.round(Ut.left),Math.round(Ut.top+Nn)),new Co(Math.round(Ut.left+Ut.width),Math.round(Ut.top+Nn)),new Co(Math.round(Ut.left+Ut.width),Math.round(Un+Ut.top+Nn)),new Co(Math.round(Ut.left),Math.round(Un+Ut.top+Nn))];case 3:return[new Co(Math.round(Ut.left+qe),Math.round(Ut.top)),new Co(Math.round(Ut.left+qe+ii),Math.round(Ut.top)),new Co(Math.round(Ut.left+qe+ii),Math.round(Ut.height+Ut.top)),new Co(Math.round(Ut.left+qe),Math.round(Ut.height+Ut.top))];case 1:return[new Co(Math.round(Ut.left+qe),Math.round(Ut.top+Nn)),new Co(Math.round(Ut.left+qe+ii),Math.round(Ut.top+Nn)),new Co(Math.round(Ut.left+qe+ii),Math.round(Ut.top+Nn+Un)),new Co(Math.round(Ut.left+qe),Math.round(Ut.top+Nn+Un))];default:return[new Co(Math.round(Fe.left),Math.round(Fe.top)),new Co(Math.round(Fe.left+Fe.width),Math.round(Fe.top)),new Co(Math.round(Fe.left+Fe.width),Math.round(Fe.height+Fe.top)),new Co(Math.round(Fe.left),Math.round(Fe.height+Fe.top))]}},Id="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ld="Hidden Text",kd=function(){function kt(It){this._data={},this._document=It}return kt.prototype.parseMetrics=function(It,Ht){var Ut=this._document.createElement("div"),Fe=this._document.createElement("img"),qe=this._document.createElement("span"),Nn=this._document.body;Ut.style.visibility="hidden",Ut.style.fontFamily=It,Ut.style.fontSize=Ht,Ut.style.margin="0",Ut.style.padding="0",Ut.style.whiteSpace="nowrap",Nn.appendChild(Ut),Fe.src=Id,Fe.width=1,Fe.height=1,Fe.style.margin="0",Fe.style.padding="0",Fe.style.verticalAlign="baseline",qe.style.fontFamily=It,qe.style.fontSize=Ht,qe.style.margin="0",qe.style.padding="0",qe.appendChild(this._document.createTextNode(ld)),Ut.appendChild(qe),Ut.appendChild(Fe);var ii=Fe.offsetTop-qe.offsetTop+2;Ut.removeChild(qe),Ut.appendChild(this._document.createTextNode(ld)),Ut.style.lineHeight="normal",Fe.style.verticalAlign="super";var Un=Fe.offsetTop-Ut.offsetTop+2;return Nn.removeChild(Ut),{baseline:ii,middle:Un}},kt.prototype.getMetrics=function(It,Ht){var Ut=It+" "+Ht;return typeof this._data[Ut]=="undefined"&&(this._data[Ut]=this.parseMetrics(It,Ht)),this._data[Ut]},kt}(),Td=function(){function kt(It,Ht){this.context=It,this.options=Ht}return kt}(),Tu=1e4,XA=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;return Fe._activeEffects=[],Fe.canvas=Ut.canvas?Ut.canvas:document.createElement("canvas"),Fe.ctx=Fe.canvas.getContext("2d"),Ut.canvas||(Fe.canvas.width=Math.floor(Ut.width*Ut.scale),Fe.canvas.height=Math.floor(Ut.height*Ut.scale),Fe.canvas.style.width=Ut.width+"px",Fe.canvas.style.height=Ut.height+"px"),Fe.fontMetrics=new kd(document),Fe.ctx.scale(Fe.options.scale,Fe.options.scale),Fe.ctx.translate(-Ut.x,-Ut.y),Fe.ctx.textBaseline="bottom",Fe._activeEffects=[],Fe.context.logger.debug("Canvas renderer initialized ("+Ut.width+"x"+Ut.height+") with scale "+Ut.scale),Fe}return It.prototype.applyEffects=function(Ht){for(var Ut=this;this._activeEffects.length;)this.popEffect();Ht.forEach(function(Fe){return Ut.applyEffect(Fe)})},It.prototype.applyEffect=function(Ht){this.ctx.save(),Wc(Ht)&&(this.ctx.globalAlpha=Ht.opacity),Tl(Ht)&&(this.ctx.translate(Ht.offsetX,Ht.offsetY),this.ctx.transform(Ht.matrix[0],Ht.matrix[1],Ht.matrix[2],Ht.matrix[3],Ht.matrix[4],Ht.matrix[5]),this.ctx.translate(-Ht.offsetX,-Ht.offsetY)),eh(Ht)&&(this.path(Ht.path),this.ctx.clip()),this._activeEffects.push(Ht)},It.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},It.prototype.renderStack=function(Ht){return ge(this,void 0,void 0,function(){var Ut;return se(this,function(Fe){switch(Fe.label){case 0:return Ut=Ht.element.container.styles,Ut.isVisible()?[4,this.renderStackContent(Ht)]:[3,2];case 1:Fe.sent(),Fe.label=2;case 2:return[2]}})})},It.prototype.renderNode=function(Ht){return ge(this,void 0,void 0,function(){return se(this,function(Ut){switch(Ut.label){case 0:if(Qo(Ht.container.flags,16))debugger;return Ht.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Ht)]:[3,3];case 1:return Ut.sent(),[4,this.renderNodeContent(Ht)];case 2:Ut.sent(),Ut.label=3;case 3:return[2]}})})},It.prototype.renderTextWithLetterSpacing=function(Ht,Ut,Fe){var qe=this;if(Ut===0)this.ctx.fillText(Ht.text,Ht.bounds.left,Ht.bounds.top+Fe);else{var Nn=Ya(Ht.text);Nn.reduce(function(ii,Un){return qe.ctx.fillText(Un,ii,Ht.bounds.top+Fe),ii+qe.ctx.measureText(Un).width},Ht.bounds.left)}},It.prototype.createFontStyle=function(Ht){var Ut=Ht.fontVariant.filter(function(Nn){return Nn==="normal"||Nn==="small-caps"}).join(""),Fe=Gg(Ht.fontFamily).join(", "),qe=Ja(Ht.fontSize)?""+Ht.fontSize.number+Ht.fontSize.unit:Ht.fontSize.number+"px";return[[Ht.fontStyle,Ut,Ht.fontWeight,qe,Fe].join(" "),Fe,qe]},It.prototype.renderTextNode=function(Ht,Ut){return ge(this,void 0,void 0,function(){var Fe,qe,Nn,ii,Un,Ri,Ki,ur,vt=this;return se(this,function(Qt){return Fe=this.createFontStyle(Ut),qe=Fe[0],Nn=Fe[1],ii=Fe[2],this.ctx.font=qe,this.ctx.direction=Ut.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Un=this.fontMetrics.getMetrics(Nn,ii),Ri=Un.baseline,Ki=Un.middle,ur=Ut.paintOrder,Ht.textBounds.forEach(function(de){ur.forEach(function(Me){switch(Me){case 0:vt.ctx.fillStyle=ca(Ut.color),vt.renderTextWithLetterSpacing(de,Ut.letterSpacing,Ri);var ln=Ut.textShadow;ln.length&&de.text.trim().length&&(ln.slice(0).reverse().forEach(function(dn){vt.ctx.shadowColor=ca(dn.color),vt.ctx.shadowOffsetX=dn.offsetX.number*vt.options.scale,vt.ctx.shadowOffsetY=dn.offsetY.number*vt.options.scale,vt.ctx.shadowBlur=dn.blur.number,vt.renderTextWithLetterSpacing(de,Ut.letterSpacing,Ri)}),vt.ctx.shadowColor="",vt.ctx.shadowOffsetX=0,vt.ctx.shadowOffsetY=0,vt.ctx.shadowBlur=0),Ut.textDecorationLine.length&&(vt.ctx.fillStyle=ca(Ut.textDecorationColor||Ut.color),Ut.textDecorationLine.forEach(function(dn){switch(dn){case 1:vt.ctx.fillRect(de.bounds.left,Math.round(de.bounds.top+Ri),de.bounds.width,1);break;case 2:vt.ctx.fillRect(de.bounds.left,Math.round(de.bounds.top),de.bounds.width,1);break;case 3:vt.ctx.fillRect(de.bounds.left,Math.ceil(de.bounds.top+Ki),de.bounds.width,1);break}}));break;case 1:Ut.webkitTextStrokeWidth&&de.text.trim().length&&(vt.ctx.strokeStyle=ca(Ut.webkitTextStrokeColor),vt.ctx.lineWidth=Ut.webkitTextStrokeWidth,vt.ctx.lineJoin=window.chrome?"miter":"round",vt.ctx.strokeText(de.text,de.bounds.left,de.bounds.top+Ri)),vt.ctx.strokeStyle="",vt.ctx.lineWidth=0,vt.ctx.lineJoin="miter";break}})}),[2]})})},It.prototype.renderReplacedElement=function(Ht,Ut,Fe){if(Fe&&Ht.intrinsicWidth>0&&Ht.intrinsicHeight>0){var qe=Gf(Ht),Nn=ad(Ut);this.path(Nn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Fe,0,0,Ht.intrinsicWidth,Ht.intrinsicHeight,qe.left,qe.top,qe.width,qe.height),this.ctx.restore()}},It.prototype.renderNodeContent=function(Ht){return ge(this,void 0,void 0,function(){var Ut,Fe,qe,Nn,ii,Un,An,An,Ri,Ki,ur,vt,Tn,Qt,de,Wn,Me,ln,dn,An,Sn,Tn,Wn;return se(this,function(mi){switch(mi.label){case 0:this.applyEffects(Ht.getEffects(4)),Ut=Ht.container,Fe=Ht.curves,qe=Ut.styles,Nn=0,ii=Ut.textNodes,mi.label=1;case 1:return Nn<ii.length?(Un=ii[Nn],[4,this.renderTextNode(Un,qe)]):[3,4];case 2:mi.sent(),mi.label=3;case 3:return Nn++,[3,1];case 4:if(!(Ut instanceof PA))return[3,8];mi.label=5;case 5:return mi.trys.push([5,7,,8]),[4,this.context.cache.match(Ut.src)];case 6:return An=mi.sent(),this.renderReplacedElement(Ut,Fe,An),[3,8];case 7:return mi.sent(),this.context.logger.error("Error loading image "+Ut.src),[3,8];case 8:if(Ut instanceof _c&&this.renderReplacedElement(Ut,Fe,Ut.canvas),!(Ut instanceof sc))return[3,12];mi.label=9;case 9:return mi.trys.push([9,11,,12]),[4,this.context.cache.match(Ut.svg)];case 10:return An=mi.sent(),this.renderReplacedElement(Ut,Fe,An),[3,12];case 11:return mi.sent(),this.context.logger.error("Error loading svg "+Ut.svg.substring(0,255)),[3,12];case 12:return Ut instanceof cA&&Ut.tree?(Ri=new It(this.context,{scale:this.options.scale,backgroundColor:Ut.backgroundColor,x:0,y:0,width:Ut.width,height:Ut.height}),[4,Ri.render(Ut.tree)]):[3,14];case 13:Ki=mi.sent(),Ut.width&&Ut.height&&this.ctx.drawImage(Ki,0,0,Ut.width,Ut.height,Ut.bounds.left,Ut.bounds.top,Ut.bounds.width,Ut.bounds.height),mi.label=14;case 14:if(Ut instanceof Dh&&(ur=Math.min(Ut.bounds.width,Ut.bounds.height),Ut.type===bd?Ut.checked&&(this.ctx.save(),this.path([new Co(Ut.bounds.left+ur*.39363,Ut.bounds.top+ur*.79),new Co(Ut.bounds.left+ur*.16,Ut.bounds.top+ur*.5549),new Co(Ut.bounds.left+ur*.27347,Ut.bounds.top+ur*.44071),new Co(Ut.bounds.left+ur*.39694,Ut.bounds.top+ur*.5649),new Co(Ut.bounds.left+ur*.72983,Ut.bounds.top+ur*.23),new Co(Ut.bounds.left+ur*.84,Ut.bounds.top+ur*.34085),new Co(Ut.bounds.left+ur*.39363,Ut.bounds.top+ur*.79)]),this.ctx.fillStyle=ca(hA),this.ctx.fill(),this.ctx.restore()):Ut.type===zc&&Ut.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Ut.bounds.left+ur/2,Ut.bounds.top+ur/2,ur/4,0,Math.PI*2,!0),this.ctx.fillStyle=ca(hA),this.ctx.fill(),this.ctx.restore())),lm(Ut)&&Ut.value.length){switch(vt=this.createFontStyle(qe),Tn=vt[0],Qt=vt[1],de=this.fontMetrics.getMetrics(Tn,Qt).baseline,this.ctx.font=Tn,this.ctx.fillStyle=ca(qe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=js(Ut.styles.textAlign),Wn=Gf(Ut),Me=0,Ut.styles.textAlign){case 1:Me+=Wn.width/2;break;case 2:Me+=Wn.width;break}ln=Wn.add(Me,0,0,-Wn.height/2+1),this.ctx.save(),this.path([new Co(Wn.left,Wn.top),new Co(Wn.left+Wn.width,Wn.top),new Co(Wn.left+Wn.width,Wn.top+Wn.height),new Co(Wn.left,Wn.top+Wn.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new vu(Ut.value,ln),qe.letterSpacing,de),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Qo(Ut.styles.display,2048))return[3,20];if(Ut.styles.listStyleImage===null)return[3,19];if(dn=Ut.styles.listStyleImage,dn.type!==0)return[3,18];An=void 0,Sn=dn.url,mi.label=15;case 15:return mi.trys.push([15,17,,18]),[4,this.context.cache.match(Sn)];case 16:return An=mi.sent(),this.ctx.drawImage(An,Ut.bounds.left-(An.width+10),Ut.bounds.top),[3,18];case 17:return mi.sent(),this.context.logger.error("Error loading list-style-image "+Sn),[3,18];case 18:return[3,20];case 19:Ht.listValue&&Ut.styles.listStyleType!==-1&&(Tn=this.createFontStyle(qe)[0],this.ctx.font=Tn,this.ctx.fillStyle=ca(qe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Wn=new re(Ut.bounds.left,Ut.bounds.top+sl(Ut.styles.paddingTop,Ut.bounds.width),Ut.bounds.width,Dn(qe.lineHeight,qe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new vu(Ht.listValue,Wn),qe.letterSpacing,Dn(qe.lineHeight,qe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),mi.label=20;case 20:return[2]}})})},It.prototype.renderStackContent=function(Ht){return ge(this,void 0,void 0,function(){var Ut,Fe,dn,qe,Nn,dn,ii,Un,dn,Ri,Ki,dn,ur,vt,dn,Qt,de,dn,Me,ln,dn;return se(this,function(An){switch(An.label){case 0:if(Qo(Ht.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Ht.element)];case 1:An.sent(),Ut=0,Fe=Ht.negativeZIndex,An.label=2;case 2:return Ut<Fe.length?(dn=Fe[Ut],[4,this.renderStack(dn)]):[3,5];case 3:An.sent(),An.label=4;case 4:return Ut++,[3,2];case 5:return[4,this.renderNodeContent(Ht.element)];case 6:An.sent(),qe=0,Nn=Ht.nonInlineLevel,An.label=7;case 7:return qe<Nn.length?(dn=Nn[qe],[4,this.renderNode(dn)]):[3,10];case 8:An.sent(),An.label=9;case 9:return qe++,[3,7];case 10:ii=0,Un=Ht.nonPositionedFloats,An.label=11;case 11:return ii<Un.length?(dn=Un[ii],[4,this.renderStack(dn)]):[3,14];case 12:An.sent(),An.label=13;case 13:return ii++,[3,11];case 14:Ri=0,Ki=Ht.nonPositionedInlineLevel,An.label=15;case 15:return Ri<Ki.length?(dn=Ki[Ri],[4,this.renderStack(dn)]):[3,18];case 16:An.sent(),An.label=17;case 17:return Ri++,[3,15];case 18:ur=0,vt=Ht.inlineLevel,An.label=19;case 19:return ur<vt.length?(dn=vt[ur],[4,this.renderNode(dn)]):[3,22];case 20:An.sent(),An.label=21;case 21:return ur++,[3,19];case 22:Qt=0,de=Ht.zeroOrAutoZIndexOrTransformedOrOpacity,An.label=23;case 23:return Qt<de.length?(dn=de[Qt],[4,this.renderStack(dn)]):[3,26];case 24:An.sent(),An.label=25;case 25:return Qt++,[3,23];case 26:Me=0,ln=Ht.positiveZIndex,An.label=27;case 27:return Me<ln.length?(dn=ln[Me],[4,this.renderStack(dn)]):[3,30];case 28:An.sent(),An.label=29;case 29:return Me++,[3,27];case 30:return[2]}})})},It.prototype.mask=function(Ht){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(Ht.slice(0).reverse()),this.ctx.closePath()},It.prototype.path=function(Ht){this.ctx.beginPath(),this.formatPath(Ht),this.ctx.closePath()},It.prototype.formatPath=function(Ht){var Ut=this;Ht.forEach(function(Fe,qe){var Nn=kl(Fe)?Fe.start:Fe;qe===0?Ut.ctx.moveTo(Nn.x,Nn.y):Ut.ctx.lineTo(Nn.x,Nn.y),kl(Fe)&&Ut.ctx.bezierCurveTo(Fe.startControl.x,Fe.startControl.y,Fe.endControl.x,Fe.endControl.y,Fe.end.x,Fe.end.y)})},It.prototype.renderRepeat=function(Ht,Ut,Fe,qe){this.path(Ht),this.ctx.fillStyle=Ut,this.ctx.translate(Fe,qe),this.ctx.fill(),this.ctx.translate(-Fe,-qe)},It.prototype.resizeImage=function(Ht,Ut,Fe){var qe;if(Ht.width===Ut&&Ht.height===Fe)return Ht;var Nn=(qe=this.canvas.ownerDocument)!==null&&qe!==void 0?qe:document,ii=Nn.createElement("canvas");ii.width=Math.max(1,Ut),ii.height=Math.max(1,Fe);var Un=ii.getContext("2d");return Un.drawImage(Ht,0,0,Ht.width,Ht.height,0,0,Ut,Fe),ii},It.prototype.renderBackgroundImage=function(Ht){return ge(this,void 0,void 0,function(){var Ut,Fe,qe,Nn,ii,Un;return se(this,function(Ri){switch(Ri.label){case 0:Ut=Ht.styles.backgroundImage.length-1,Fe=function(Ki){var ur,vt,Qt,Wr,Yr,ls,Ui,zr,tr,de,Wr,Yr,ls,Ui,zr,Me,ln,dn,An,Sn,Tn,Wn,mi,qi,tr,ki,Wr,Nr,_i,Ui,zr,uo,Yr,ls,Yo,fi,os,Pl,bl,rl,Wa,_a;return se(this,function(dl){switch(dl.label){case 0:if(Ki.type!==0)return[3,5];ur=void 0,vt=Ki.url,dl.label=1;case 1:return dl.trys.push([1,3,,4]),[4,qe.context.cache.match(vt)];case 2:return ur=dl.sent(),[3,4];case 3:return dl.sent(),qe.context.logger.error("Error loading background-image "+vt),[3,4];case 4:return ur&&(Qt=VA(Ht,Ut,[ur.width,ur.height,ur.width/ur.height]),Wr=Qt[0],Yr=Qt[1],ls=Qt[2],Ui=Qt[3],zr=Qt[4],tr=qe.ctx.createPattern(qe.resizeImage(ur,Ui,zr),"repeat"),qe.renderRepeat(Wr,tr,Yr,ls)),[3,6];case 5:wd(Ki)?(de=VA(Ht,Ut,[null,null,null]),Wr=de[0],Yr=de[1],ls=de[2],Ui=de[3],zr=de[4],Me=ic(Ki.angle,Ui,zr),ln=Me[0],dn=Me[1],An=Me[2],Sn=Me[3],Tn=Me[4],Wn=document.createElement("canvas"),Wn.width=Ui,Wn.height=zr,mi=Wn.getContext("2d"),qi=mi.createLinearGradient(dn,Sn,An,Tn),$i(Ki.stops,ln).forEach(function(Ia){return qi.addColorStop(Ia.stop,ca(Ia.color))}),mi.fillStyle=qi,mi.fillRect(0,0,Ui,zr),Ui>0&&zr>0&&(tr=qe.ctx.createPattern(Wn,"repeat"),qe.renderRepeat(Wr,tr,Yr,ls))):La(Ki)&&(ki=VA(Ht,Ut,[null,null,null]),Wr=ki[0],Nr=ki[1],_i=ki[2],Ui=ki[3],zr=ki[4],uo=Ki.position.length===0?[yd]:Ki.position,Yr=sl(uo[0],Ui),ls=sl(uo[uo.length-1],zr),Yo=Ph(Ki,Yr,ls,Ui,zr),fi=Yo[0],os=Yo[1],fi>0&&os>0&&(Pl=qe.ctx.createRadialGradient(Nr+Yr,_i+ls,0,Nr+Yr,_i+ls,fi),$i(Ki.stops,fi*2).forEach(function(Ia){return Pl.addColorStop(Ia.stop,ca(Ia.color))}),qe.path(Wr),qe.ctx.fillStyle=Pl,fi!==os?(bl=Ht.bounds.left+.5*Ht.bounds.width,rl=Ht.bounds.top+.5*Ht.bounds.height,Wa=os/fi,_a=1/Wa,qe.ctx.save(),qe.ctx.translate(bl,rl),qe.ctx.transform(1,0,0,Wa,0,0),qe.ctx.translate(-bl,-rl),qe.ctx.fillRect(Nr,_a*(_i-rl)+rl,Ui,zr*_a),qe.ctx.restore()):qe.ctx.fill())),dl.label=6;case 6:return Ut--,[2]}})},qe=this,Nn=0,ii=Ht.styles.backgroundImage.slice(0).reverse(),Ri.label=1;case 1:return Nn<ii.length?(Un=ii[Nn],[5,Fe(Un)]):[3,4];case 2:Ri.sent(),Ri.label=3;case 3:return Nn++,[3,1];case 4:return[2]}})})},It.prototype.renderSolidBorder=function(Ht,Ut,Fe){return ge(this,void 0,void 0,function(){return se(this,function(qe){return this.path(GA(Fe,Ut)),this.ctx.fillStyle=ca(Ht),this.ctx.fill(),[2]})})},It.prototype.renderDoubleBorder=function(Ht,Ut,Fe,qe){return ge(this,void 0,void 0,function(){var Nn,ii;return se(this,function(Un){switch(Un.label){case 0:return Ut<3?[4,this.renderSolidBorder(Ht,Fe,qe)]:[3,2];case 1:return Un.sent(),[2];case 2:return Nn=NA(qe,Fe),this.path(Nn),this.ctx.fillStyle=ca(Ht),this.ctx.fill(),ii=Kf(qe,Fe),this.path(ii),this.ctx.fill(),[2]}})})},It.prototype.renderNodeBackgroundAndBorders=function(Ht){return ge(this,void 0,void 0,function(){var Ut,Fe,qe,Nn,ii,Un,Ri,Ki,ur=this;return se(this,function(vt){switch(vt.label){case 0:return this.applyEffects(Ht.getEffects(2)),Ut=Ht.container.styles,Fe=!Ka(Ut.backgroundColor)||Ut.backgroundImage.length,qe=[{style:Ut.borderTopStyle,color:Ut.borderTopColor,width:Ut.borderTopWidth},{style:Ut.borderRightStyle,color:Ut.borderRightColor,width:Ut.borderRightWidth},{style:Ut.borderBottomStyle,color:Ut.borderBottomColor,width:Ut.borderBottomWidth},{style:Ut.borderLeftStyle,color:Ut.borderLeftColor,width:Ut.borderLeftWidth}],Nn=xf(bc(Ut.backgroundClip,0),Ht.curves),Fe||Ut.boxShadow.length?(this.ctx.save(),this.path(Nn),this.ctx.clip(),Ka(Ut.backgroundColor)||(this.ctx.fillStyle=ca(Ut.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Ht.container)]):[3,2];case 1:vt.sent(),this.ctx.restore(),Ut.boxShadow.slice(0).reverse().forEach(function(Qt){ur.ctx.save();var de=wu(Ht.curves),Me=Qt.inset?0:Tu,ln=zf(de,-Me+(Qt.inset?1:-1)*Qt.spread.number,(Qt.inset?1:-1)*Qt.spread.number,Qt.spread.number*(Qt.inset?-2:2),Qt.spread.number*(Qt.inset?-2:2));Qt.inset?(ur.path(de),ur.ctx.clip(),ur.mask(ln)):(ur.mask(de),ur.ctx.clip(),ur.path(ln)),ur.ctx.shadowOffsetX=Qt.offsetX.number+Me,ur.ctx.shadowOffsetY=Qt.offsetY.number,ur.ctx.shadowColor=ca(Qt.color),ur.ctx.shadowBlur=Qt.blur.number,ur.ctx.fillStyle=Qt.inset?ca(Qt.color):"rgba(0,0,0,1)",ur.ctx.fill(),ur.ctx.restore()}),vt.label=2;case 2:ii=0,Un=0,Ri=qe,vt.label=3;case 3:return Un<Ri.length?(Ki=Ri[Un],Ki.style!==0&&!Ka(Ki.color)&&Ki.width>0?Ki.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Ki.color,Ki.width,ii,Ht.curves,2)]:[3,11]):[3,13];case 4:return vt.sent(),[3,11];case 5:return Ki.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Ki.color,Ki.width,ii,Ht.curves,3)];case 6:return vt.sent(),[3,11];case 7:return Ki.style!==4?[3,9]:[4,this.renderDoubleBorder(Ki.color,Ki.width,ii,Ht.curves)];case 8:return vt.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ki.color,ii,Ht.curves)];case 10:vt.sent(),vt.label=11;case 11:ii++,vt.label=12;case 12:return Un++,[3,3];case 13:return[2]}})})},It.prototype.renderDashedDottedBorder=function(Ht,Ut,Fe,qe,Nn){return ge(this,void 0,void 0,function(){var ii,Un,Ri,Ki,ur,vt,Qt,de,Me,ln,dn,An,Sn,Tn,Wn,mi,Wn,mi;return se(this,function(qi){return this.ctx.save(),ii=WA(qe,Fe),Un=GA(qe,Fe),Nn===2&&(this.path(Un),this.ctx.clip()),kl(Un[0])?(Ri=Un[0].start.x,Ki=Un[0].start.y):(Ri=Un[0].x,Ki=Un[0].y),kl(Un[1])?(ur=Un[1].end.x,vt=Un[1].end.y):(ur=Un[1].x,vt=Un[1].y),Fe===0||Fe===2?Qt=Math.abs(Ri-ur):Qt=Math.abs(Ki-vt),this.ctx.beginPath(),Nn===3?this.formatPath(ii):this.formatPath(Un.slice(0,2)),de=Ut<3?Ut*3:Ut*2,Me=Ut<3?Ut*2:Ut,Nn===3&&(de=Ut,Me=Ut),ln=!0,Qt<=de*2?ln=!1:Qt<=de*2+Me?(dn=Qt/(2*de+Me),de*=dn,Me*=dn):(An=Math.floor((Qt+Me)/(de+Me)),Sn=(Qt-An*de)/(An-1),Tn=(Qt-(An+1)*de)/An,Me=Tn<=0||Math.abs(Me-Sn)<Math.abs(Me-Tn)?Sn:Tn),ln&&(Nn===3?this.ctx.setLineDash([0,de+Me]):this.ctx.setLineDash([de,Me])),Nn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Ut):this.ctx.lineWidth=Ut*2+1.1,this.ctx.strokeStyle=ca(Ht),this.ctx.stroke(),this.ctx.setLineDash([]),Nn===2&&(kl(Un[0])&&(Wn=Un[3],mi=Un[0],this.ctx.beginPath(),this.formatPath([new Co(Wn.end.x,Wn.end.y),new Co(mi.start.x,mi.start.y)]),this.ctx.stroke()),kl(Un[1])&&(Wn=Un[1],mi=Un[2],this.ctx.beginPath(),this.formatPath([new Co(Wn.end.x,Wn.end.y),new Co(mi.start.x,mi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},It.prototype.render=function(Ht){return ge(this,void 0,void 0,function(){var Ut;return se(this,function(Fe){switch(Fe.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ca(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Ut=wf(Ht),[4,this.renderStack(Ut)];case 1:return Fe.sent(),this.applyEffects([]),[2,this.canvas]}})})},It}(Td),lm=function(kt){return kt instanceof EA||kt instanceof bA?!0:kt instanceof Dh&&kt.type!==zc&&kt.type!==bd},xf=function(kt,It){switch(kt){case 0:return wu(It);case 2:return du(It);case 1:default:return ad(It)}},js=function(kt){switch(kt){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Kg=["-apple-system","system-ui"],Gg=function(kt){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?kt.filter(function(It){return Kg.indexOf(It)===-1}):kt},Wg=function(kt){bt(It,kt);function It(Ht,Ut){var Fe=kt.call(this,Ht,Ut)||this;return Fe.canvas=Ut.canvas?Ut.canvas:document.createElement("canvas"),Fe.ctx=Fe.canvas.getContext("2d"),Fe.options=Ut,Fe.canvas.width=Math.floor(Ut.width*Ut.scale),Fe.canvas.height=Math.floor(Ut.height*Ut.scale),Fe.canvas.style.width=Ut.width+"px",Fe.canvas.style.height=Ut.height+"px",Fe.ctx.scale(Fe.options.scale,Fe.options.scale),Fe.ctx.translate(-Ut.x,-Ut.y),Fe.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Ut.width+"x"+Ut.height+" at "+Ut.x+","+Ut.y+") with scale "+Ut.scale),Fe}return It.prototype.render=function(Ht){return ge(this,void 0,void 0,function(){var Ut,Fe;return se(this,function(qe){switch(qe.label){case 0:return Ut=Bd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Ht),[4,IA(Ut)];case 1:return Fe=qe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ca(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Fe,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},It}(Td),IA=function(kt){return new Promise(function(It,Ht){var Ut=new Image;Ut.onload=function(){It(Ut)},Ut.onerror=Ht,Ut.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(kt))})},kA=function(){function kt(It){var Ht=It.id,Ut=It.enabled;this.id=Ht,this.enabled=Ut,this.start=Date.now()}return kt.prototype.debug=function(){for(var It=[],Ht=0;Ht<arguments.length;Ht++)It[Ht]=arguments[Ht];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,De([this.id,this.getTime()+"ms"],It)):this.info.apply(this,It))},kt.prototype.getTime=function(){return Date.now()-this.start},kt.prototype.info=function(){for(var It=[],Ht=0;Ht<arguments.length;Ht++)It[Ht]=arguments[Ht];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,De([this.id,this.getTime()+"ms"],It))},kt.prototype.warn=function(){for(var It=[],Ht=0;Ht<arguments.length;Ht++)It[Ht]=arguments[Ht];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,De([this.id,this.getTime()+"ms"],It)):this.info.apply(this,It))},kt.prototype.error=function(){for(var It=[],Ht=0;Ht<arguments.length;Ht++)It[Ht]=arguments[Ht];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,De([this.id,this.getTime()+"ms"],It)):this.info.apply(this,It))},kt.instances={},kt}(),Fc=function(){function kt(It,Ht){var Ut;this.windowBounds=Ht,this.instanceName="#"+kt.instanceCount++,this.logger=new kA({id:this.instanceName,enabled:It.logging}),this.cache=(Ut=It.cache)!==null&&Ut!==void 0?Ut:new ea(this,It)}return kt.instanceCount=1,kt}(),Vf=function(kt,It){return It===void 0&&(It={}),Cg(kt,It)};typeof window!="undefined"&&Io.setContext(window);var Cg=function(kt,It){return ge(void 0,void 0,void 0,function(){var Ht,Ut,Fe,qe,Nn,ii,Un,Ri,Ki,ur,vt,Qt,de,Me,ln,dn,An,Sn,Tn,Wn,qi,mi,qi,tr,ki,Wr,Nr,_i,Ui,zr,uo,Yr,ls,Yo,fi,os,Pl,bl,rl,Wa;return se(this,function(_a){switch(_a.label){case 0:if(!kt||typeof kt!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Ht=kt.ownerDocument,!Ht)throw new Error("Element is not attached to a Document");if(Ut=Ht.defaultView,!Ut)throw new Error("Document is not attached to a Window");return Fe={allowTaint:(tr=It.allowTaint)!==null&&tr!==void 0?tr:!1,imageTimeout:(ki=It.imageTimeout)!==null&&ki!==void 0?ki:15e3,proxy:It.proxy,useCORS:(Wr=It.useCORS)!==null&&Wr!==void 0?Wr:!1},qe=Lt({logging:(Nr=It.logging)!==null&&Nr!==void 0?Nr:!0,cache:It.cache},Fe),Nn={windowWidth:(_i=It.windowWidth)!==null&&_i!==void 0?_i:Ut.innerWidth,windowHeight:(Ui=It.windowHeight)!==null&&Ui!==void 0?Ui:Ut.innerHeight,scrollX:(zr=It.scrollX)!==null&&zr!==void 0?zr:Ut.pageXOffset,scrollY:(uo=It.scrollY)!==null&&uo!==void 0?uo:Ut.pageYOffset},ii=new re(Nn.scrollX,Nn.scrollY,Nn.windowWidth,Nn.windowHeight),Un=new Fc(qe,ii),Ri=(Yr=It.foreignObjectRendering)!==null&&Yr!==void 0?Yr:!1,Ki={allowTaint:(ls=It.allowTaint)!==null&&ls!==void 0?ls:!1,onclone:It.onclone,ignoreElements:It.ignoreElements,inlineImages:Ri,copyStyles:Ri},Un.logger.debug("Starting document clone with size "+ii.width+"x"+ii.height+" scrolled to "+-ii.left+","+-ii.top),ur=new xt(Un,kt,Ki),vt=ur.clonedReferenceElement,vt?[4,ur.toIFrame(Ht,ii)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Qt=_a.sent(),de=vs(vt)||Ba(vt)?Et(vt.ownerDocument):le(Un,vt),Me=de.width,ln=de.height,dn=de.left,An=de.top,Sn=Vg(Un,vt,It.backgroundColor),Tn={canvas:It.canvas,backgroundColor:Sn,scale:(fi=(Yo=It.scale)!==null&&Yo!==void 0?Yo:Ut.devicePixelRatio)!==null&&fi!==void 0?fi:1,x:((os=It.x)!==null&&os!==void 0?os:0)+dn,y:((Pl=It.y)!==null&&Pl!==void 0?Pl:0)+An,width:(bl=It.width)!==null&&bl!==void 0?bl:Math.ceil(Me),height:(rl=It.height)!==null&&rl!==void 0?rl:Math.ceil(ln)},Ri?(Un.logger.debug("Document cloned, using foreign object rendering"),qi=new Wg(Un,Tn),[4,qi.render(vt)]):[3,3];case 2:return Wn=_a.sent(),[3,5];case 3:return Un.logger.debug("Document cloned, element located at "+dn+","+An+" with size "+Me+"x"+ln+" using computed rendering"),Un.logger.debug("Starting DOM parsing"),mi=FA(Un,vt),Sn===mi.styles.backgroundColor&&(mi.styles.backgroundColor=Bh.TRANSPARENT),Un.logger.debug("Starting renderer for element at "+Tn.x+","+Tn.y+" with size "+Tn.width+"x"+Tn.height),qi=new XA(Un,Tn),[4,qi.render(mi)];case 4:Wn=_a.sent(),_a.label=5;case 5:return(!((Wa=It.removeContainer)!==null&&Wa!==void 0)||Wa)&&(xt.destroy(Qt)||Un.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Un.logger.debug("Finished rendering"),[2,Wn]}})})},Vg=function(kt,It,Ht){var Ut=It.ownerDocument,Fe=Ut.documentElement?td(kt,getComputedStyle(Ut.documentElement).backgroundColor):Bh.TRANSPARENT,qe=Ut.body?td(kt,getComputedStyle(Ut.body).backgroundColor):Bh.TRANSPARENT,Nn=typeof Ht=="string"?td(kt,Ht):Ht===null?Bh.TRANSPARENT:4294967295;return It===Ut.documentElement?Ka(Fe)?Ka(qe)?Nn:qe:Fe:Nn};return Vf})},65022:function(di,Pn,bt){var Lt=bt(97671);(function(se,De){di.exports=De(bt(32092),bt(64270))})(self,function(ge,se){return function(){var De={"./src/plugin/hyperlinks.js":function(Tt,ee,Ct){"use strict";Ct.r(ee);var Wt=Ct("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Gt=Ct.n(Wt),Jt=Ct("./node_modules/core-js/modules/es.string.link.js"),wt=Ct.n(Jt),et=Ct("./src/worker.js"),tt=Ct("./src/utils.js"),lt=[],rt={toContainer:et.default.prototype.toContainer,toPdf:et.default.prototype.toPdf};et.default.prototype.toContainer=function(){return rt.toContainer.call(this).then(function(){if(this.opt.enableLinks){var yt=this.prop.container,Mt=yt.querySelectorAll("a"),jt=(0,tt.unitConvert)(yt.getBoundingClientRect(),this.prop.pageSize.k);lt=[],Array.prototype.forEach.call(Mt,function(Rt){for(var ae=Rt.getClientRects(),he=0;he<ae.length;he++){var pe=(0,tt.unitConvert)(ae[he],this.prop.pageSize.k);pe.left-=jt.left,pe.top-=jt.top;var Te=Math.floor(pe.top/this.prop.pageSize.inner.height)+1,ne=this.opt.margin[0]+pe.top%this.prop.pageSize.inner.height,Ke=this.opt.margin[1]+pe.left;lt.push({page:Te,top:ne,left:Ke,clientRect:pe,link:Rt})}},this)}})},et.default.prototype.toPdf=function(){return rt.toPdf.call(this).then(function(){if(this.opt.enableLinks){lt.forEach(function(Mt){this.prop.pdf.setPage(Mt.page),this.prop.pdf.link(Mt.left,Mt.top,Mt.clientRect.width,Mt.clientRect.height,{url:Mt.link.href})},this);var yt=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(yt)}})}},"./src/plugin/jspdf-plugin.js":function(Tt,ee,Ct){"use strict";Ct.r(ee);var Wt=Ct("./node_modules/core-js/modules/es.symbol.js"),Gt=Ct.n(Wt),Jt=Ct("./node_modules/core-js/modules/es.symbol.description.js"),wt=Ct.n(Jt),et=Ct("./node_modules/core-js/modules/es.object.to-string.js"),tt=Ct.n(et),lt=Ct("./node_modules/core-js/modules/es.symbol.iterator.js"),rt=Ct.n(lt),ht=Ct("./node_modules/core-js/modules/es.array.iterator.js"),dt=Ct.n(ht),yt=Ct("./node_modules/core-js/modules/es.string.iterator.js"),Mt=Ct.n(yt),jt=Ct("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Rt=Ct.n(jt),ae=Ct("jspdf"),he=Ct.n(ae);function pe(Te){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pe=function(Ke){return typeof Ke}:pe=function(Ke){return Ke&&typeof Symbol=="function"&&Ke.constructor===Symbol&&Ke!==Symbol.prototype?"symbol":typeof Ke},pe(Te)}ae.jsPDF.getPageSize=function(Te,ne,Ke){if(pe(Te)==="object"){var Vt=Te;Te=Vt.orientation,ne=Vt.unit||ne,Ke=Vt.format||Ke}ne=ne||"mm",Ke=Ke||"a4",Te=(""+(Te||"P")).toLowerCase();var $e=(""+Ke).toLowerCase(),Ge={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(ne){case"pt":var Oe=1;break;case"mm":var Oe=72/25.4;break;case"cm":var Oe=72/2.54;break;case"in":var Oe=72;break;case"px":var Oe=72/96;break;case"pc":var Oe=12;break;case"em":var Oe=12;break;case"ex":var Oe=6;break;default:throw"Invalid unit: "+ne}if(Ge.hasOwnProperty($e))var Ve=Ge[$e][1]/Oe,_e=Ge[$e][0]/Oe;else try{var Ve=Ke[1],_e=Ke[0]}catch(be){throw new Error("Invalid format: "+Ke)}if(Te==="p"||Te==="portrait"){if(Te="p",_e>Ve){var xe=_e;_e=Ve,Ve=xe}}else if(Te==="l"||Te==="landscape"){if(Te="l",Ve>_e){var xe=_e;_e=Ve,Ve=xe}}else throw"Invalid orientation: "+Te;var ie={width:_e,height:Ve,unit:ne,k:Oe};return ie},ee.default=ae.jsPDF},"./src/plugin/pagebreaks.js":function(Tt,ee,Ct){"use strict";Ct.r(ee);var Wt=Ct("./node_modules/core-js/modules/es.array.concat.js"),Gt=Ct.n(Wt),Jt=Ct("./node_modules/core-js/modules/es.array.slice.js"),wt=Ct.n(Jt),et=Ct("./node_modules/core-js/modules/es.array.join.js"),tt=Ct.n(et),lt=Ct("./node_modules/core-js/modules/web.dom-collections.for-each.js"),rt=Ct.n(lt),ht=Ct("./node_modules/core-js/modules/es.object.keys.js"),dt=Ct.n(ht),yt=Ct("./src/worker.js"),Mt=Ct("./src/utils.js"),jt={toContainer:yt.default.prototype.toContainer};yt.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},yt.default.prototype.toContainer=function(){return jt.toContainer.call(this).then(function(){var he=this.prop.container,pe=this.prop.pageSize.inner.px.height,Te=[].concat(this.opt.pagebreak.mode),ne={avoidAll:Te.indexOf("avoid-all")!==-1,css:Te.indexOf("css")!==-1,legacy:Te.indexOf("legacy")!==-1},Ke={},Vt=this;["before","after","avoid"].forEach(function(Oe){var Ve=ne.avoidAll&&Oe==="avoid";Ke[Oe]=Ve?[]:[].concat(Vt.opt.pagebreak[Oe]||[]),Ke[Oe].length>0&&(Ke[Oe]=Array.prototype.slice.call(he.querySelectorAll(Ke[Oe].join(", "))))});var $e=he.querySelectorAll(".html2pdf__page-break");$e=Array.prototype.slice.call($e);var Ge=he.querySelectorAll("*");Array.prototype.forEach.call(Ge,function(Ve){var _e={before:!1,after:ne.legacy&&$e.indexOf(Ve)!==-1,avoid:ne.avoidAll};if(ne.css){var xe=window.getComputedStyle(Ve),ie=["always","page","left","right"],be=["avoid","avoid-page"];_e={before:_e.before||ie.indexOf(xe.breakBefore||xe.pageBreakBefore)!==-1,after:_e.after||ie.indexOf(xe.breakAfter||xe.pageBreakAfter)!==-1,avoid:_e.avoid||be.indexOf(xe.breakInside||xe.pageBreakInside)!==-1}}Object.keys(_e).forEach(function(pi){_e[pi]=_e[pi]||Ke[pi].indexOf(Ve)!==-1});var Fn=Ve.getBoundingClientRect();if(_e.avoid&&!_e.before){var Mn=Math.floor(Fn.top/pe),Xe=Math.floor(Fn.bottom/pe),In=Math.abs(Fn.bottom-Fn.top)/pe;Xe!==Mn&&In<=1&&(_e.before=!0)}if(_e.before){var Xn=(0,Mt.createElement)("div",{style:{display:"block",height:pe-Fn.top%pe+"px"}});Ve.parentNode.insertBefore(Xn,Ve)}if(_e.after){var Xn=(0,Mt.createElement)("div",{style:{display:"block",height:pe-Fn.bottom%pe+"px"}});Ve.parentNode.insertBefore(Xn,Ve.nextSibling)}})})}},"./src/utils.js":function(Tt,ee,Ct){"use strict";Ct.r(ee),Ct.d(ee,{objType:function(){return Te},createElement:function(){return ne},cloneNode:function(){return Ke},unitConvert:function(){return Vt},toPx:function(){return $e}});var Wt=Ct("./node_modules/core-js/modules/es.number.constructor.js"),Gt=Ct.n(Wt),Jt=Ct("./node_modules/core-js/modules/es.symbol.js"),wt=Ct.n(Jt),et=Ct("./node_modules/core-js/modules/es.symbol.description.js"),tt=Ct.n(et),lt=Ct("./node_modules/core-js/modules/es.object.to-string.js"),rt=Ct.n(lt),ht=Ct("./node_modules/core-js/modules/es.symbol.iterator.js"),dt=Ct.n(ht),yt=Ct("./node_modules/core-js/modules/es.array.iterator.js"),Mt=Ct.n(yt),jt=Ct("./node_modules/core-js/modules/es.string.iterator.js"),Rt=Ct.n(jt),ae=Ct("./node_modules/core-js/modules/web.dom-collections.iterator.js"),he=Ct.n(ae);function pe(Ge){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pe=function(Ve){return typeof Ve}:pe=function(Ve){return Ve&&typeof Symbol=="function"&&Ve.constructor===Symbol&&Ve!==Symbol.prototype?"symbol":typeof Ve},pe(Ge)}var Te=function(Oe){var Ve=pe(Oe);return Ve==="undefined"?"undefined":Ve==="string"||Oe instanceof String?"string":Ve==="number"||Oe instanceof Number?"number":Ve==="function"||Oe instanceof Function?"function":Oe&&Oe.constructor===Array?"array":Oe&&Oe.nodeType===1?"element":Ve==="object"?"object":"unknown"},ne=function(Oe,Ve){var _e=document.createElement(Oe);if(Ve.className&&(_e.className=Ve.className),Ve.innerHTML){_e.innerHTML=Ve.innerHTML;for(var xe=_e.getElementsByTagName("script"),ie=xe.length;ie-- >0;null)xe[ie].parentNode.removeChild(xe[ie])}for(var be in Ve.style)_e.style[be]=Ve.style[be];return _e},Ke=function Ge(Oe,Ve){for(var _e=Oe.nodeType===3?document.createTextNode(Oe.nodeValue):Oe.cloneNode(!1),xe=Oe.firstChild;xe;xe=xe.nextSibling)(Ve===!0||xe.nodeType!==1||xe.nodeName!=="SCRIPT")&&_e.appendChild(Ge(xe,Ve));return Oe.nodeType===1&&(Oe.nodeName==="CANVAS"?(_e.width=Oe.width,_e.height=Oe.height,_e.getContext("2d").drawImage(Oe,0,0)):(Oe.nodeName==="TEXTAREA"||Oe.nodeName==="SELECT")&&(_e.value=Oe.value),_e.addEventListener("load",function(){_e.scrollTop=Oe.scrollTop,_e.scrollLeft=Oe.scrollLeft},!0)),_e},Vt=function(Oe,Ve){if(Te(Oe)==="number")return Oe*72/96/Ve;var _e={};for(var xe in Oe)_e[xe]=Oe[xe]*72/96/Ve;return _e},$e=function(Oe,Ve){return Math.floor(Oe*Ve/72*96)}},"./src/worker.js":function(Tt,ee,Ct){"use strict";Ct.r(ee);var Wt=Ct("./node_modules/core-js/modules/es.object.assign.js"),Gt=Ct.n(Wt),Jt=Ct("./node_modules/core-js/modules/es.array.map.js"),wt=Ct.n(Jt),et=Ct("./node_modules/core-js/modules/es.object.keys.js"),tt=Ct.n(et),lt=Ct("./node_modules/core-js/modules/es.array.concat.js"),rt=Ct.n(lt),ht=Ct("./node_modules/core-js/modules/es.object.to-string.js"),dt=Ct.n(ht),yt=Ct("./node_modules/core-js/modules/es.regexp.to-string.js"),Mt=Ct.n(yt),jt=Ct("./node_modules/core-js/modules/es.function.name.js"),Rt=Ct.n(jt),ae=Ct("./node_modules/core-js/modules/web.dom-collections.for-each.js"),he=Ct.n(ae),pe=Ct("jspdf"),Te=Ct.n(pe),ne=Ct("html2canvas"),Ke=Ct.n(ne),Vt=Ct("./src/utils.js"),$e=Ct("./node_modules/es6-promise/dist/es6-promise.js"),Ge=Ct.n($e),Oe=Ge().Promise,Ve=function _e(xe){var ie=Object.assign(_e.convert(Oe.resolve()),JSON.parse(JSON.stringify(_e.template))),be=_e.convert(Oe.resolve(),ie);return be=be.setProgress(1,_e,1,[_e]),be=be.set(xe),be};Ve.prototype=Object.create(Oe.prototype),Ve.prototype.constructor=Ve,Ve.convert=function(xe,ie){return xe.__proto__=ie||Ve.prototype,xe},Ve.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:{}}},Ve.prototype.from=function(xe,ie){function be(Fn){switch((0,Vt.objType)(Fn)){case"string":return"string";case"element":return Fn.nodeName.toLowerCase&&Fn.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(ie=ie||be(xe),ie){case"string":return this.set({src:(0,Vt.createElement)("div",{innerHTML:xe})});case"element":return this.set({src:xe});case"canvas":return this.set({canvas:xe});case"img":return this.set({img:xe});default:return this.error("Unknown source type.")}})},Ve.prototype.to=function(xe){switch(xe){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.")}},Ve.prototype.toContainer=function(){var xe=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(xe).then(function(){var be={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Fn={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};be.opacity=0;var Mn=(0,Vt.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Vt.createElement)("div",{className:"html2pdf__overlay",style:be}),this.prop.container=(0,Vt.createElement)("div",{className:"html2pdf__container",style:Fn}),this.prop.container.appendChild(Mn),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Ve.prototype.toCanvas=function(){var xe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(xe).then(function(){var be=Object.assign({},this.opt.html2canvas);return delete be.onrendered,ne(this.prop.container,be)}).then(function(be){var Fn=this.opt.html2canvas.onrendered||function(){};Fn(be),this.prop.canvas=be,document.body.removeChild(this.prop.overlay)})},Ve.prototype.toImg=function(){var xe=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(xe).then(function(){var be=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=be})},Ve.prototype.toPdf=function(){var xe=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(xe).then(function(){var be=this.prop.canvas,Fn=this.opt,Mn=be.height,Xe=Math.floor(be.width*this.prop.pageSize.inner.ratio),In=Math.ceil(Mn/Xe),Xn=this.prop.pageSize.inner.height,pi=document.createElement("canvas"),$n=pi.getContext("2d");pi.width=be.width,pi.height=Xe,this.prop.pdf=this.prop.pdf||new pe.jsPDF(Fn.jsPDF);for(var bi=0;bi<In;bi++){bi===In-1&&Mn%Xe!==0&&(pi.height=Mn%Xe,Xn=pi.height*this.prop.pageSize.inner.width/pi.width);var sn=pi.width,Li=pi.height;$n.fillStyle="white",$n.fillRect(0,0,sn,Li),$n.drawImage(be,0,bi*Xe,sn,Li,0,0,sn,Li),bi&&this.prop.pdf.addPage();var ji=pi.toDataURL("image/"+Fn.image.type,Fn.image.quality);this.prop.pdf.addImage(ji,Fn.image.type,Fn.margin[1],Fn.margin[0],this.prop.pageSize.inner.width,Xn)}})},Ve.prototype.output=function(xe,ie,be){return be=be||"pdf",be.toLowerCase()==="img"||be.toLowerCase()==="image"?this.outputImg(xe,ie):this.outputPdf(xe,ie)},Ve.prototype.outputPdf=function(xe,ie){var be=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(be).then(function(){return this.prop.pdf.output(xe,ie)})},Ve.prototype.outputImg=function(xe,ie){var be=[function(){return this.prop.img||this.toImg()}];return this.thenList(be).then(function(){switch(xe){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 "'+xe+'" is not supported.'}})},Ve.prototype.save=function(xe){var ie=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ie).set(xe?{filename:xe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ve.prototype.set=function(xe){if((0,Vt.objType)(xe)!=="object")return this;var ie=Object.keys(xe||{}).map(function(be){switch(be){case"margin":return this.setMargin.bind(this,xe.margin);case"jsPDF":return function(){return this.opt.jsPDF=xe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,xe.pageSize);default:return be in Ve.template.prop?function(){this.prop[be]=xe[be]}:function(){this.opt[be]=xe[be]}}},this);return this.then(function(){return this.thenList(ie)})},Ve.prototype.get=function(xe,ie){return this.then(function(){var Fn=xe in Ve.template.prop?this.prop[xe]:this.opt[xe];return ie?ie(Fn):Fn})},Ve.prototype.setMargin=function(xe){return this.then(function(){switch((0,Vt.objType)(xe)){case"number":xe=[xe,xe,xe,xe];case"array":if(xe.length===2&&(xe=[xe[0],xe[1],xe[0],xe[1]]),xe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=xe}).then(this.setPageSize)},Ve.prototype.setPageSize=function(xe){return this.then(function(){xe=xe||pe.jsPDF.getPageSize(this.opt.jsPDF),xe.hasOwnProperty("inner")||(xe.inner={width:xe.width-this.opt.margin[1]-this.opt.margin[3],height:xe.height-this.opt.margin[0]-this.opt.margin[2]},xe.inner.px={width:(0,Vt.toPx)(xe.inner.width,xe.k),height:(0,Vt.toPx)(xe.inner.height,xe.k)},xe.inner.ratio=xe.inner.height/xe.inner.width),this.prop.pageSize=xe})},Ve.prototype.setProgress=function(xe,ie,be,Fn){return xe!=null&&(this.progress.val=xe),ie!=null&&(this.progress.state=ie),be!=null&&(this.progress.n=be),Fn!=null&&(this.progress.stack=Fn),this.progress.ratio=this.progress.val/this.progress.state,this},Ve.prototype.updateProgress=function(xe,ie,be,Fn){return this.setProgress(xe?this.progress.val+xe:null,ie||null,be?this.progress.n+be:null,Fn?this.progress.stack.concat(Fn):null)},Ve.prototype.then=function(xe,ie){var be=this;return this.thenCore(xe,ie,function(Mn,Xe){return be.updateProgress(null,null,1,[Mn]),Oe.prototype.then.call(this,function(Xn){return be.updateProgress(null,Mn),Xn}).then(Mn,Xe).then(function(Xn){return be.updateProgress(1),Xn})})},Ve.prototype.thenCore=function(xe,ie,be){be=be||Oe.prototype.then;var Fn=this;xe&&(xe=xe.bind(Fn)),ie&&(ie=ie.bind(Fn));var Mn=Oe.toString().indexOf("[native code]")!==-1&&Oe.name==="Promise",Xe=Mn?Fn:Ve.convert(Object.assign({},Fn),Oe.prototype),In=be.call(Xe,xe,ie);return Ve.convert(In,Fn.__proto__)},Ve.prototype.thenExternal=function(xe,ie){return Oe.prototype.then.call(this,xe,ie)},Ve.prototype.thenList=function(xe){var ie=this;return xe.forEach(function(Fn){ie=ie.thenCore(Fn)}),ie},Ve.prototype.catch=function(_e){_e&&(_e=_e.bind(this));var xe=Oe.prototype.catch.call(this,_e);return Ve.convert(xe,this)},Ve.prototype.catchExternal=function(xe){return Oe.prototype.catch.call(this,xe)},Ve.prototype.error=function(xe){return this.then(function(){throw new Error(xe)})},Ve.prototype.using=Ve.prototype.set,Ve.prototype.saveAs=Ve.prototype.save,Ve.prototype.export=Ve.prototype.output,Ve.prototype.run=Ve.prototype.then,ee.default=Ve},"./node_modules/core-js/internals/a-function.js":function(Tt){Tt.exports=function(ee){if(typeof ee!="function")throw TypeError(String(ee)+" is not a function");return ee}},"./node_modules/core-js/internals/a-possible-prototype.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/is-object.js");Tt.exports=function(Gt){if(!Wt(Gt)&&Gt!==null)throw TypeError("Can't set "+String(Gt)+" as a prototype");return Gt}},"./node_modules/core-js/internals/add-to-unscopables.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),Gt=Ct("./node_modules/core-js/internals/object-create.js"),Jt=Ct("./node_modules/core-js/internals/object-define-property.js"),wt=Wt("unscopables"),et=Array.prototype;et[wt]==null&&Jt.f(et,wt,{configurable:!0,value:Gt(null)}),Tt.exports=function(tt){et[wt][tt]=!0}},"./node_modules/core-js/internals/an-object.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/is-object.js");Tt.exports=function(Gt){if(!Wt(Gt))throw TypeError(String(Gt)+" is not an object");return Gt}},"./node_modules/core-js/internals/array-for-each.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/array-iteration.js").forEach,Gt=Ct("./node_modules/core-js/internals/array-method-is-strict.js"),Jt=Gt("forEach");Tt.exports=Jt?[].forEach:function(et){return Wt(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-indexed-object.js"),Gt=Ct("./node_modules/core-js/internals/to-length.js"),Jt=Ct("./node_modules/core-js/internals/to-absolute-index.js"),wt=function(et){return function(tt,lt,rt){var ht=Wt(tt),dt=Gt(ht.length),yt=Jt(rt,dt),Mt;if(et&&lt!=lt){for(;dt>yt;)if(Mt=ht[yt++],Mt!=Mt)return!0}else for(;dt>yt;yt++)if((et||yt in ht)&&ht[yt]===lt)return et||yt||0;return!et&&-1}};Tt.exports={includes:wt(!0),indexOf:wt(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/function-bind-context.js"),Gt=Ct("./node_modules/core-js/internals/indexed-object.js"),Jt=Ct("./node_modules/core-js/internals/to-object.js"),wt=Ct("./node_modules/core-js/internals/to-length.js"),et=Ct("./node_modules/core-js/internals/array-species-create.js"),tt=[].push,lt=function(rt){var ht=rt==1,dt=rt==2,yt=rt==3,Mt=rt==4,jt=rt==6,Rt=rt==7,ae=rt==5||jt;return function(he,pe,Te,ne){for(var Ke=Jt(he),Vt=Gt(Ke),$e=Wt(pe,Te,3),Ge=wt(Vt.length),Oe=0,Ve=ne||et,_e=ht?Ve(he,Ge):dt||Rt?Ve(he,0):void 0,xe,ie;Ge>Oe;Oe++)if((ae||Oe in Vt)&&(xe=Vt[Oe],ie=$e(xe,Oe,Ke),rt))if(ht)_e[Oe]=ie;else if(ie)switch(rt){case 3:return!0;case 5:return xe;case 6:return Oe;case 2:tt.call(_e,xe)}else switch(rt){case 4:return!1;case 7:tt.call(_e,xe)}return jt?-1:yt||Mt?Mt:_e}};Tt.exports={forEach:lt(0),map:lt(1),filter:lt(2),some:lt(3),every:lt(4),find:lt(5),findIndex:lt(6),filterReject:lt(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/fails.js"),Gt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),Jt=Ct("./node_modules/core-js/internals/engine-v8-version.js"),wt=Gt("species");Tt.exports=function(et){return Jt>=51||!Wt(function(){var tt=[],lt=tt.constructor={};return lt[wt]=function(){return{foo:1}},tt[et](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/fails.js");Tt.exports=function(Gt,Jt){var wt=[][Gt];return!!wt&&Wt(function(){wt.call(null,Jt||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/is-object.js"),Gt=Ct("./node_modules/core-js/internals/is-array.js"),Jt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),wt=Jt("species");Tt.exports=function(et){var tt;return Gt(et)&&(tt=et.constructor,typeof tt=="function"&&(tt===Array||Gt(tt.prototype))?tt=void 0:Wt(tt)&&(tt=tt[wt],tt===null&&(tt=void 0))),tt===void 0?Array:tt}},"./node_modules/core-js/internals/array-species-create.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/array-species-constructor.js");Tt.exports=function(Gt,Jt){return new(Wt(Gt))(Jt===0?0:Jt)}},"./node_modules/core-js/internals/classof-raw.js":function(Tt){var ee={}.toString;Tt.exports=function(Ct){return ee.call(Ct).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=Ct("./node_modules/core-js/internals/classof-raw.js"),Jt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),wt=Jt("toStringTag"),et=Gt(function(){return arguments}())=="Arguments",tt=function(lt,rt){try{return lt[rt]}catch(ht){}};Tt.exports=Wt?Gt:function(lt){var rt,ht,dt;return lt===void 0?"Undefined":lt===null?"Null":typeof(ht=tt(rt=Object(lt),wt))=="string"?ht:et?Gt(rt):(dt=Gt(rt))=="Object"&&typeof rt.callee=="function"?"Arguments":dt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/has.js"),Gt=Ct("./node_modules/core-js/internals/own-keys.js"),Jt=Ct("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),wt=Ct("./node_modules/core-js/internals/object-define-property.js");Tt.exports=function(et,tt){for(var lt=Gt(tt),rt=wt.f,ht=Jt.f,dt=0;dt<lt.length;dt++){var yt=lt[dt];Wt(et,yt)||rt(et,yt,ht(tt,yt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/fails.js");Tt.exports=!Wt(function(){function Gt(){}return Gt.prototype.constructor=null,Object.getPrototypeOf(new Gt)!==Gt.prototype})},"./node_modules/core-js/internals/create-html.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/require-object-coercible.js"),Gt=Ct("./node_modules/core-js/internals/to-string.js"),Jt=/"/g;Tt.exports=function(wt,et,tt,lt){var rt=Gt(Wt(wt)),ht="<"+et;return tt!==""&&(ht+=" "+tt+'="'+Gt(lt).replace(Jt,"&quot;")+'"'),ht+">"+rt+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,Gt=Ct("./node_modules/core-js/internals/object-create.js"),Jt=Ct("./node_modules/core-js/internals/create-property-descriptor.js"),wt=Ct("./node_modules/core-js/internals/set-to-string-tag.js"),et=Ct("./node_modules/core-js/internals/iterators.js"),tt=function(){return this};Tt.exports=function(lt,rt,ht){var dt=rt+" Iterator";return lt.prototype=Gt(Wt,{next:Jt(1,ht)}),wt(lt,dt,!1,!0),et[dt]=tt,lt}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/descriptors.js"),Gt=Ct("./node_modules/core-js/internals/object-define-property.js"),Jt=Ct("./node_modules/core-js/internals/create-property-descriptor.js");Tt.exports=Wt?function(wt,et,tt){return Gt.f(wt,et,Jt(1,tt))}:function(wt,et,tt){return wt[et]=tt,wt}},"./node_modules/core-js/internals/create-property-descriptor.js":function(Tt){Tt.exports=function(ee,Ct){return{enumerable:!(ee&1),configurable:!(ee&2),writable:!(ee&4),value:Ct}}},"./node_modules/core-js/internals/create-property.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/to-property-key.js"),Gt=Ct("./node_modules/core-js/internals/object-define-property.js"),Jt=Ct("./node_modules/core-js/internals/create-property-descriptor.js");Tt.exports=function(wt,et,tt){var lt=Wt(et);lt in wt?Gt.f(wt,lt,Jt(0,tt)):wt[lt]=tt}},"./node_modules/core-js/internals/define-iterator.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/create-iterator-constructor.js"),Jt=Ct("./node_modules/core-js/internals/object-get-prototype-of.js"),wt=Ct("./node_modules/core-js/internals/object-set-prototype-of.js"),et=Ct("./node_modules/core-js/internals/set-to-string-tag.js"),tt=Ct("./node_modules/core-js/internals/create-non-enumerable-property.js"),lt=Ct("./node_modules/core-js/internals/redefine.js"),rt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),ht=Ct("./node_modules/core-js/internals/is-pure.js"),dt=Ct("./node_modules/core-js/internals/iterators.js"),yt=Ct("./node_modules/core-js/internals/iterators-core.js"),Mt=yt.IteratorPrototype,jt=yt.BUGGY_SAFARI_ITERATORS,Rt=rt("iterator"),ae="keys",he="values",pe="entries",Te=function(){return this};Tt.exports=function(ne,Ke,Vt,$e,Ge,Oe,Ve){Gt(Vt,Ke,$e);var _e=function($n){if($n===Ge&&Mn)return Mn;if(!jt&&$n in be)return be[$n];switch($n){case ae:return function(){return new Vt(this,$n)};case he:return function(){return new Vt(this,$n)};case pe:return function(){return new Vt(this,$n)}}return function(){return new Vt(this)}},xe=Ke+" Iterator",ie=!1,be=ne.prototype,Fn=be[Rt]||be["@@iterator"]||Ge&&be[Ge],Mn=!jt&&Fn||_e(Ge),Xe=Ke=="Array"&&be.entries||Fn,In,Xn,pi;if(Xe&&(In=Jt(Xe.call(new ne)),Mt!==Object.prototype&&In.next&&(!ht&&Jt(In)!==Mt&&(wt?wt(In,Mt):typeof In[Rt]!="function"&&tt(In,Rt,Te)),et(In,xe,!0,!0),ht&&(dt[xe]=Te))),Ge==he&&Fn&&Fn.name!==he&&(ie=!0,Mn=function(){return Fn.call(this)}),(!ht||Ve)&&be[Rt]!==Mn&&tt(be,Rt,Mn),dt[Ke]=Mn,Ge)if(Xn={values:_e(he),keys:Oe?Mn:_e(ae),entries:_e(pe)},Ve)for(pi in Xn)(jt||ie||!(pi in be))&&lt(be,pi,Xn[pi]);else Wt({target:Ke,proto:!0,forced:jt||ie},Xn);return Xn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/path.js"),Gt=Ct("./node_modules/core-js/internals/has.js"),Jt=Ct("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),wt=Ct("./node_modules/core-js/internals/object-define-property.js").f;Tt.exports=function(et){var tt=Wt.Symbol||(Wt.Symbol={});Gt(tt,et)||wt(tt,et,{value:Jt.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/fails.js");Tt.exports=!Wt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/is-object.js"),Jt=Wt.document,wt=Gt(Jt)&&Gt(Jt.createElement);Tt.exports=function(et){return wt?Jt.createElement(et):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(Tt){Tt.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(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/get-built-in.js");Tt.exports=Wt("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/engine-user-agent.js"),Jt=Wt.process,wt=Wt.Deno,et=Jt&&Jt.versions||wt&&wt.version,tt=et&&et.v8,lt,rt;tt?(lt=tt.split("."),rt=lt[0]<4?1:lt[0]+lt[1]):Gt&&(lt=Gt.match(/Edge\/(\d+)/),(!lt||lt[1]>=74)&&(lt=Gt.match(/Chrome\/(\d+)/),lt&&(rt=lt[1]))),Tt.exports=rt&&+rt},"./node_modules/core-js/internals/enum-bug-keys.js":function(Tt){Tt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Jt=Ct("./node_modules/core-js/internals/create-non-enumerable-property.js"),wt=Ct("./node_modules/core-js/internals/redefine.js"),et=Ct("./node_modules/core-js/internals/set-global.js"),tt=Ct("./node_modules/core-js/internals/copy-constructor-properties.js"),lt=Ct("./node_modules/core-js/internals/is-forced.js");Tt.exports=function(rt,ht){var dt=rt.target,yt=rt.global,Mt=rt.stat,jt,Rt,ae,he,pe,Te;if(yt?Rt=Wt:Mt?Rt=Wt[dt]||et(dt,{}):Rt=(Wt[dt]||{}).prototype,Rt)for(ae in ht){if(pe=ht[ae],rt.noTargetGet?(Te=Gt(Rt,ae),he=Te&&Te.value):he=Rt[ae],jt=lt(yt?ae:dt+(Mt?".":"#")+ae,rt.forced),!jt&&he!==void 0){if(typeof pe==typeof he)continue;tt(pe,he)}(rt.sham||he&&he.sham)&&Jt(pe,"sham",!0),wt(Rt,ae,pe,rt)}}},"./node_modules/core-js/internals/fails.js":function(Tt){Tt.exports=function(ee){try{return!!ee()}catch(Ct){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/a-function.js");Tt.exports=function(Gt,Jt,wt){if(Wt(Gt),Jt===void 0)return Gt;switch(wt){case 0:return function(){return Gt.call(Jt)};case 1:return function(et){return Gt.call(Jt,et)};case 2:return function(et,tt){return Gt.call(Jt,et,tt)};case 3:return function(et,tt,lt){return Gt.call(Jt,et,tt,lt)}}return function(){return Gt.apply(Jt,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=function(Jt){return typeof Jt=="function"?Jt:void 0};Tt.exports=function(Jt,wt){return arguments.length<2?Gt(Wt[Jt]):Wt[Jt]&&Wt[Jt][wt]}},"./node_modules/core-js/internals/global.js":function(Tt){var ee=function(Ct){return Ct&&Ct.Math==Math&&Ct};Tt.exports=ee(typeof globalThis=="object"&&globalThis)||ee(typeof window=="object"&&window)||ee(typeof self=="object"&&self)||ee(typeof bt.g=="object"&&bt.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-object.js"),Gt={}.hasOwnProperty;Tt.exports=Object.hasOwn||function(wt,et){return Gt.call(Wt(wt),et)}},"./node_modules/core-js/internals/hidden-keys.js":function(Tt){Tt.exports={}},"./node_modules/core-js/internals/html.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/get-built-in.js");Tt.exports=Wt("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/descriptors.js"),Gt=Ct("./node_modules/core-js/internals/fails.js"),Jt=Ct("./node_modules/core-js/internals/document-create-element.js");Tt.exports=!Wt&&!Gt(function(){return Object.defineProperty(Jt("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/fails.js"),Gt=Ct("./node_modules/core-js/internals/classof-raw.js"),Jt="".split;Tt.exports=Wt(function(){return!Object("z").propertyIsEnumerable(0)})?function(wt){return Gt(wt)=="String"?Jt.call(wt,""):Object(wt)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/is-object.js"),Gt=Ct("./node_modules/core-js/internals/object-set-prototype-of.js");Tt.exports=function(Jt,wt,et){var tt,lt;return Gt&&typeof(tt=wt.constructor)=="function"&&tt!==et&&Wt(lt=tt.prototype)&&lt!==et.prototype&&Gt(Jt,lt),Jt}},"./node_modules/core-js/internals/inspect-source.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/shared-store.js"),Gt=Function.toString;typeof Wt.inspectSource!="function"&&(Wt.inspectSource=function(Jt){return Gt.call(Jt)}),Tt.exports=Wt.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/native-weak-map.js"),Gt=Ct("./node_modules/core-js/internals/global.js"),Jt=Ct("./node_modules/core-js/internals/is-object.js"),wt=Ct("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Ct("./node_modules/core-js/internals/has.js"),tt=Ct("./node_modules/core-js/internals/shared-store.js"),lt=Ct("./node_modules/core-js/internals/shared-key.js"),rt=Ct("./node_modules/core-js/internals/hidden-keys.js"),ht="Object already initialized",dt=Gt.WeakMap,yt,Mt,jt,Rt=function(Vt){return jt(Vt)?Mt(Vt):yt(Vt,{})},ae=function(Vt){return function($e){var Ge;if(!Jt($e)||(Ge=Mt($e)).type!==Vt)throw TypeError("Incompatible receiver, "+Vt+" required");return Ge}};if(Wt||tt.state){var he=tt.state||(tt.state=new dt),pe=he.get,Te=he.has,ne=he.set;yt=function(Vt,$e){if(Te.call(he,Vt))throw new TypeError(ht);return $e.facade=Vt,ne.call(he,Vt,$e),$e},Mt=function(Vt){return pe.call(he,Vt)||{}},jt=function(Vt){return Te.call(he,Vt)}}else{var Ke=lt("state");rt[Ke]=!0,yt=function(Vt,$e){if(et(Vt,Ke))throw new TypeError(ht);return $e.facade=Vt,wt(Vt,Ke,$e),$e},Mt=function(Vt){return et(Vt,Ke)?Vt[Ke]:{}},jt=function(Vt){return et(Vt,Ke)}}Tt.exports={set:yt,get:Mt,has:jt,enforce:Rt,getterFor:ae}},"./node_modules/core-js/internals/is-array.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/classof-raw.js");Tt.exports=Array.isArray||function(Jt){return Wt(Jt)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/fails.js"),Gt=/#|\.prototype\./,Jt=function(rt,ht){var dt=et[wt(rt)];return dt==lt?!0:dt==tt?!1:typeof ht=="function"?Wt(ht):!!ht},wt=Jt.normalize=function(rt){return String(rt).replace(Gt,".").toLowerCase()},et=Jt.data={},tt=Jt.NATIVE="N",lt=Jt.POLYFILL="P";Tt.exports=Jt},"./node_modules/core-js/internals/is-object.js":function(Tt){Tt.exports=function(ee){return typeof ee=="object"?ee!==null:typeof ee=="function"}},"./node_modules/core-js/internals/is-pure.js":function(Tt){Tt.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/get-built-in.js"),Gt=Ct("./node_modules/core-js/internals/use-symbol-as-uid.js");Tt.exports=Gt?function(Jt){return typeof Jt=="symbol"}:function(Jt){var wt=Wt("Symbol");return typeof wt=="function"&&Object(Jt)instanceof wt}},"./node_modules/core-js/internals/iterators-core.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/fails.js"),Gt=Ct("./node_modules/core-js/internals/object-get-prototype-of.js"),Jt=Ct("./node_modules/core-js/internals/create-non-enumerable-property.js"),wt=Ct("./node_modules/core-js/internals/has.js"),et=Ct("./node_modules/core-js/internals/well-known-symbol.js"),tt=Ct("./node_modules/core-js/internals/is-pure.js"),lt=et("iterator"),rt=!1,ht=function(){return this},dt,yt,Mt;[].keys&&(Mt=[].keys(),"next"in Mt?(yt=Gt(Gt(Mt)),yt!==Object.prototype&&(dt=yt)):rt=!0);var jt=dt==null||Wt(function(){var Rt={};return dt[lt].call(Rt)!==Rt});jt&&(dt={}),(!tt||jt)&&!wt(dt,lt)&&Jt(dt,lt,ht),Tt.exports={IteratorPrototype:dt,BUGGY_SAFARI_ITERATORS:rt}},"./node_modules/core-js/internals/iterators.js":function(Tt){Tt.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/engine-v8-version.js"),Gt=Ct("./node_modules/core-js/internals/fails.js");Tt.exports=!!Object.getOwnPropertySymbols&&!Gt(function(){var Jt=Symbol();return!String(Jt)||!(Object(Jt)instanceof Symbol)||!Symbol.sham&&Wt&&Wt<41})},"./node_modules/core-js/internals/native-weak-map.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/inspect-source.js"),Jt=Wt.WeakMap;Tt.exports=typeof Jt=="function"&&/native code/.test(Gt(Jt))},"./node_modules/core-js/internals/object-assign.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/descriptors.js"),Gt=Ct("./node_modules/core-js/internals/fails.js"),Jt=Ct("./node_modules/core-js/internals/object-keys.js"),wt=Ct("./node_modules/core-js/internals/object-get-own-property-symbols.js"),et=Ct("./node_modules/core-js/internals/object-property-is-enumerable.js"),tt=Ct("./node_modules/core-js/internals/to-object.js"),lt=Ct("./node_modules/core-js/internals/indexed-object.js"),rt=Object.assign,ht=Object.defineProperty;Tt.exports=!rt||Gt(function(){if(Wt&&rt({b:1},rt(ht({},"a",{enumerable:!0,get:function(){ht(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var dt={},yt={},Mt=Symbol(),jt="abcdefghijklmnopqrst";return dt[Mt]=7,jt.split("").forEach(function(Rt){yt[Rt]=Rt}),rt({},dt)[Mt]!=7||Jt(rt({},yt)).join("")!=jt})?function(yt,Mt){for(var jt=tt(yt),Rt=arguments.length,ae=1,he=wt.f,pe=et.f;Rt>ae;)for(var Te=lt(arguments[ae++]),ne=he?Jt(Te).concat(he(Te)):Jt(Te),Ke=ne.length,Vt=0,$e;Ke>Vt;)$e=ne[Vt++],(!Wt||pe.call(Te,$e))&&(jt[$e]=Te[$e]);return jt}:rt},"./node_modules/core-js/internals/object-create.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/an-object.js"),Gt=Ct("./node_modules/core-js/internals/object-define-properties.js"),Jt=Ct("./node_modules/core-js/internals/enum-bug-keys.js"),wt=Ct("./node_modules/core-js/internals/hidden-keys.js"),et=Ct("./node_modules/core-js/internals/html.js"),tt=Ct("./node_modules/core-js/internals/document-create-element.js"),lt=Ct("./node_modules/core-js/internals/shared-key.js"),rt=">",ht="<",dt="prototype",yt="script",Mt=lt("IE_PROTO"),jt=function(){},Rt=function(ne){return ht+yt+rt+ne+ht+"/"+yt+rt},ae=function(ne){ne.write(Rt("")),ne.close();var Ke=ne.parentWindow.Object;return ne=null,Ke},he=function(){var ne=tt("iframe"),Ke="java"+yt+":",Vt;if(ne.style)return ne.style.display="none",et.appendChild(ne),ne.src=String(Ke),Vt=ne.contentWindow.document,Vt.open(),Vt.write(Rt("document.F=Object")),Vt.close(),Vt.F},pe,Te=function(){try{pe=new ActiveXObject("htmlfile")}catch(Ke){}Te=document.domain&&pe?ae(pe):he()||ae(pe);for(var ne=Jt.length;ne--;)delete Te[dt][Jt[ne]];return Te()};wt[Mt]=!0,Tt.exports=Object.create||function(Ke,Vt){var $e;return Ke!==null?(jt[dt]=Wt(Ke),$e=new jt,jt[dt]=null,$e[Mt]=Ke):$e=Te(),Vt===void 0?$e:Gt($e,Vt)}},"./node_modules/core-js/internals/object-define-properties.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/descriptors.js"),Gt=Ct("./node_modules/core-js/internals/object-define-property.js"),Jt=Ct("./node_modules/core-js/internals/an-object.js"),wt=Ct("./node_modules/core-js/internals/object-keys.js");Tt.exports=Wt?Object.defineProperties:function(tt,lt){Jt(tt);for(var rt=wt(lt),ht=rt.length,dt=0,yt;ht>dt;)Gt.f(tt,yt=rt[dt++],lt[yt]);return tt}},"./node_modules/core-js/internals/object-define-property.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/descriptors.js"),Gt=Ct("./node_modules/core-js/internals/ie8-dom-define.js"),Jt=Ct("./node_modules/core-js/internals/an-object.js"),wt=Ct("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;ee.f=Wt?et:function(lt,rt,ht){if(Jt(lt),rt=wt(rt),Jt(ht),Gt)try{return et(lt,rt,ht)}catch(dt){}if("get"in ht||"set"in ht)throw TypeError("Accessors not supported");return"value"in ht&&(lt[rt]=ht.value),lt}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/descriptors.js"),Gt=Ct("./node_modules/core-js/internals/object-property-is-enumerable.js"),Jt=Ct("./node_modules/core-js/internals/create-property-descriptor.js"),wt=Ct("./node_modules/core-js/internals/to-indexed-object.js"),et=Ct("./node_modules/core-js/internals/to-property-key.js"),tt=Ct("./node_modules/core-js/internals/has.js"),lt=Ct("./node_modules/core-js/internals/ie8-dom-define.js"),rt=Object.getOwnPropertyDescriptor;ee.f=Wt?rt:function(dt,yt){if(dt=wt(dt),yt=et(yt),lt)try{return rt(dt,yt)}catch(Mt){}if(tt(dt,yt))return Jt(!Gt.f.call(dt,yt),dt[yt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-indexed-object.js"),Gt=Ct("./node_modules/core-js/internals/object-get-own-property-names.js").f,Jt={}.toString,wt=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(tt){try{return Gt(tt)}catch(lt){return wt.slice()}};Tt.exports.f=function(lt){return wt&&Jt.call(lt)=="[object Window]"?et(lt):Gt(Wt(lt))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/object-keys-internal.js"),Gt=Ct("./node_modules/core-js/internals/enum-bug-keys.js"),Jt=Gt.concat("length","prototype");ee.f=Object.getOwnPropertyNames||function(et){return Wt(et,Jt)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(Tt,ee){ee.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/has.js"),Gt=Ct("./node_modules/core-js/internals/to-object.js"),Jt=Ct("./node_modules/core-js/internals/shared-key.js"),wt=Ct("./node_modules/core-js/internals/correct-prototype-getter.js"),et=Jt("IE_PROTO"),tt=Object.prototype;Tt.exports=wt?Object.getPrototypeOf:function(lt){return lt=Gt(lt),Wt(lt,et)?lt[et]:typeof lt.constructor=="function"&&lt instanceof lt.constructor?lt.constructor.prototype:lt instanceof Object?tt:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/has.js"),Gt=Ct("./node_modules/core-js/internals/to-indexed-object.js"),Jt=Ct("./node_modules/core-js/internals/array-includes.js").indexOf,wt=Ct("./node_modules/core-js/internals/hidden-keys.js");Tt.exports=function(et,tt){var lt=Gt(et),rt=0,ht=[],dt;for(dt in lt)!Wt(wt,dt)&&Wt(lt,dt)&&ht.push(dt);for(;tt.length>rt;)Wt(lt,dt=tt[rt++])&&(~Jt(ht,dt)||ht.push(dt));return ht}},"./node_modules/core-js/internals/object-keys.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/object-keys-internal.js"),Gt=Ct("./node_modules/core-js/internals/enum-bug-keys.js");Tt.exports=Object.keys||function(wt){return Wt(wt,Gt)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(Tt,ee){"use strict";var Ct={}.propertyIsEnumerable,Wt=Object.getOwnPropertyDescriptor,Gt=Wt&&!Ct.call({1:2},1);ee.f=Gt?function(wt){var et=Wt(this,wt);return!!et&&et.enumerable}:Ct},"./node_modules/core-js/internals/object-set-prototype-of.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/an-object.js"),Gt=Ct("./node_modules/core-js/internals/a-possible-prototype.js");Tt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Jt=!1,wt={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(wt,[]),Jt=wt instanceof Array}catch(tt){}return function(lt,rt){return Wt(lt),Gt(rt),Jt?et.call(lt,rt):lt.__proto__=rt,lt}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=Ct("./node_modules/core-js/internals/classof.js");Tt.exports=Wt?{}.toString:function(){return"[object "+Gt(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/is-object.js");Tt.exports=function(Gt,Jt){var wt,et;if(Jt==="string"&&typeof(wt=Gt.toString)=="function"&&!Wt(et=wt.call(Gt))||typeof(wt=Gt.valueOf)=="function"&&!Wt(et=wt.call(Gt))||Jt!=="string"&&typeof(wt=Gt.toString)=="function"&&!Wt(et=wt.call(Gt)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/get-built-in.js"),Gt=Ct("./node_modules/core-js/internals/object-get-own-property-names.js"),Jt=Ct("./node_modules/core-js/internals/object-get-own-property-symbols.js"),wt=Ct("./node_modules/core-js/internals/an-object.js");Tt.exports=Wt("Reflect","ownKeys")||function(tt){var lt=Gt.f(wt(tt)),rt=Jt.f;return rt?lt.concat(rt(tt)):lt}},"./node_modules/core-js/internals/path.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js");Tt.exports=Wt},"./node_modules/core-js/internals/redefine.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/create-non-enumerable-property.js"),Jt=Ct("./node_modules/core-js/internals/has.js"),wt=Ct("./node_modules/core-js/internals/set-global.js"),et=Ct("./node_modules/core-js/internals/inspect-source.js"),tt=Ct("./node_modules/core-js/internals/internal-state.js"),lt=tt.get,rt=tt.enforce,ht=String(String).split("String");(Tt.exports=function(dt,yt,Mt,jt){var Rt=jt?!!jt.unsafe:!1,ae=jt?!!jt.enumerable:!1,he=jt?!!jt.noTargetGet:!1,pe;if(typeof Mt=="function"&&(typeof yt=="string"&&!Jt(Mt,"name")&&Gt(Mt,"name",yt),pe=rt(Mt),pe.source||(pe.source=ht.join(typeof yt=="string"?yt:""))),dt===Wt){ae?dt[yt]=Mt:wt(yt,Mt);return}else Rt?!he&&dt[yt]&&(ae=!0):delete dt[yt];ae?dt[yt]=Mt:Gt(dt,yt,Mt)})(Function.prototype,"toString",function(){return typeof this=="function"&&lt(this).source||et(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/an-object.js");Tt.exports=function(){var Gt=Wt(this),Jt="";return Gt.global&&(Jt+="g"),Gt.ignoreCase&&(Jt+="i"),Gt.multiline&&(Jt+="m"),Gt.dotAll&&(Jt+="s"),Gt.unicode&&(Jt+="u"),Gt.sticky&&(Jt+="y"),Jt}},"./node_modules/core-js/internals/require-object-coercible.js":function(Tt){Tt.exports=function(ee){if(ee==null)throw TypeError("Can't call method on "+ee);return ee}},"./node_modules/core-js/internals/set-global.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js");Tt.exports=function(Gt,Jt){try{Object.defineProperty(Wt,Gt,{value:Jt,configurable:!0,writable:!0})}catch(wt){Wt[Gt]=Jt}return Jt}},"./node_modules/core-js/internals/set-to-string-tag.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/object-define-property.js").f,Gt=Ct("./node_modules/core-js/internals/has.js"),Jt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),wt=Jt("toStringTag");Tt.exports=function(et,tt,lt){et&&!Gt(et=lt?et:et.prototype,wt)&&Wt(et,wt,{configurable:!0,value:tt})}},"./node_modules/core-js/internals/shared-key.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/shared.js"),Gt=Ct("./node_modules/core-js/internals/uid.js"),Jt=Wt("keys");Tt.exports=function(wt){return Jt[wt]||(Jt[wt]=Gt(wt))}},"./node_modules/core-js/internals/shared-store.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/set-global.js"),Jt="__core-js_shared__",wt=Wt[Jt]||Gt(Jt,{});Tt.exports=wt},"./node_modules/core-js/internals/shared.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/is-pure.js"),Gt=Ct("./node_modules/core-js/internals/shared-store.js");(Tt.exports=function(Jt,wt){return Gt[Jt]||(Gt[Jt]=wt!==void 0?wt:{})})("versions",[]).push({version:"3.16.0",mode:Wt?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/fails.js");Tt.exports=function(Gt){return Wt(function(){var Jt=""[Gt]('"');return Jt!==Jt.toLowerCase()||Jt.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-integer.js"),Gt=Ct("./node_modules/core-js/internals/to-string.js"),Jt=Ct("./node_modules/core-js/internals/require-object-coercible.js"),wt=function(et){return function(tt,lt){var rt=Gt(Jt(tt)),ht=Wt(lt),dt=rt.length,yt,Mt;return ht<0||ht>=dt?et?"":void 0:(yt=rt.charCodeAt(ht),yt<55296||yt>56319||ht+1===dt||(Mt=rt.charCodeAt(ht+1))<56320||Mt>57343?et?rt.charAt(ht):yt:et?rt.slice(ht,ht+2):(yt-55296<<10)+(Mt-56320)+65536)}};Tt.exports={codeAt:wt(!1),charAt:wt(!0)}},"./node_modules/core-js/internals/string-trim.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/require-object-coercible.js"),Gt=Ct("./node_modules/core-js/internals/to-string.js"),Jt=Ct("./node_modules/core-js/internals/whitespaces.js"),wt="["+Jt+"]",et=RegExp("^"+wt+wt+"*"),tt=RegExp(wt+wt+"*$"),lt=function(rt){return function(ht){var dt=Gt(Wt(ht));return rt&1&&(dt=dt.replace(et,"")),rt&2&&(dt=dt.replace(tt,"")),dt}};Tt.exports={start:lt(1),end:lt(2),trim:lt(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-integer.js"),Gt=Math.max,Jt=Math.min;Tt.exports=function(wt,et){var tt=Wt(wt);return tt<0?Gt(tt+et,0):Jt(tt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/indexed-object.js"),Gt=Ct("./node_modules/core-js/internals/require-object-coercible.js");Tt.exports=function(Jt){return Wt(Gt(Jt))}},"./node_modules/core-js/internals/to-integer.js":function(Tt){var ee=Math.ceil,Ct=Math.floor;Tt.exports=function(Wt){return isNaN(Wt=+Wt)?0:(Wt>0?Ct:ee)(Wt)}},"./node_modules/core-js/internals/to-length.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-integer.js"),Gt=Math.min;Tt.exports=function(Jt){return Jt>0?Gt(Wt(Jt),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/require-object-coercible.js");Tt.exports=function(Gt){return Object(Wt(Gt))}},"./node_modules/core-js/internals/to-primitive.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/is-object.js"),Gt=Ct("./node_modules/core-js/internals/is-symbol.js"),Jt=Ct("./node_modules/core-js/internals/ordinary-to-primitive.js"),wt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),et=wt("toPrimitive");Tt.exports=function(tt,lt){if(!Wt(tt)||Gt(tt))return tt;var rt=tt[et],ht;if(rt!==void 0){if(lt===void 0&&(lt="default"),ht=rt.call(tt,lt),!Wt(ht)||Gt(ht))return ht;throw TypeError("Can't convert object to primitive value")}return lt===void 0&&(lt="number"),Jt(tt,lt)}},"./node_modules/core-js/internals/to-property-key.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-primitive.js"),Gt=Ct("./node_modules/core-js/internals/is-symbol.js");Tt.exports=function(Jt){var wt=Wt(Jt,"string");return Gt(wt)?wt:String(wt)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),Gt=Wt("toStringTag"),Jt={};Jt[Gt]="z",Tt.exports=String(Jt)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/is-symbol.js");Tt.exports=function(Gt){if(Wt(Gt))throw TypeError("Cannot convert a Symbol value to a string");return String(Gt)}},"./node_modules/core-js/internals/uid.js":function(Tt){var ee=0,Ct=Math.random();Tt.exports=function(Wt){return"Symbol("+String(Wt===void 0?"":Wt)+")_"+(++ee+Ct).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/native-symbol.js");Tt.exports=Wt&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/well-known-symbol.js");ee.f=Wt},"./node_modules/core-js/internals/well-known-symbol.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/shared.js"),Jt=Ct("./node_modules/core-js/internals/has.js"),wt=Ct("./node_modules/core-js/internals/uid.js"),et=Ct("./node_modules/core-js/internals/native-symbol.js"),tt=Ct("./node_modules/core-js/internals/use-symbol-as-uid.js"),lt=Gt("wks"),rt=Wt.Symbol,ht=tt?rt:rt&&rt.withoutSetter||wt;Tt.exports=function(dt){return(!Jt(lt,dt)||!(et||typeof lt[dt]=="string"))&&(et&&Jt(rt,dt)?lt[dt]=rt[dt]:lt[dt]=ht("Symbol."+dt)),lt[dt]}},"./node_modules/core-js/internals/whitespaces.js":function(Tt){Tt.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(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/fails.js"),Jt=Ct("./node_modules/core-js/internals/is-array.js"),wt=Ct("./node_modules/core-js/internals/is-object.js"),et=Ct("./node_modules/core-js/internals/to-object.js"),tt=Ct("./node_modules/core-js/internals/to-length.js"),lt=Ct("./node_modules/core-js/internals/create-property.js"),rt=Ct("./node_modules/core-js/internals/array-species-create.js"),ht=Ct("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),yt=Ct("./node_modules/core-js/internals/engine-v8-version.js"),Mt=dt("isConcatSpreadable"),jt=9007199254740991,Rt="Maximum allowed index exceeded",ae=yt>=51||!Gt(function(){var ne=[];return ne[Mt]=!1,ne.concat()[0]!==ne}),he=ht("concat"),pe=function(ne){if(!wt(ne))return!1;var Ke=ne[Mt];return Ke!==void 0?!!Ke:Jt(ne)},Te=!ae||!he;Wt({target:"Array",proto:!0,forced:Te},{concat:function(Ke){var Vt=et(this),$e=rt(Vt,0),Ge=0,Oe,Ve,_e,xe,ie;for(Oe=-1,_e=arguments.length;Oe<_e;Oe++)if(ie=Oe===-1?Vt:arguments[Oe],pe(ie)){if(xe=tt(ie.length),Ge+xe>jt)throw TypeError(Rt);for(Ve=0;Ve<xe;Ve++,Ge++)Ve in ie&&lt($e,Ge,ie[Ve])}else{if(Ge>=jt)throw TypeError(Rt);lt($e,Ge++,ie)}return $e.length=Ge,$e}})},"./node_modules/core-js/modules/es.array.iterator.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/to-indexed-object.js"),Gt=Ct("./node_modules/core-js/internals/add-to-unscopables.js"),Jt=Ct("./node_modules/core-js/internals/iterators.js"),wt=Ct("./node_modules/core-js/internals/internal-state.js"),et=Ct("./node_modules/core-js/internals/define-iterator.js"),tt="Array Iterator",lt=wt.set,rt=wt.getterFor(tt);Tt.exports=et(Array,"Array",function(ht,dt){lt(this,{type:tt,target:Wt(ht),index:0,kind:dt})},function(){var ht=rt(this),dt=ht.target,yt=ht.kind,Mt=ht.index++;return!dt||Mt>=dt.length?(ht.target=void 0,{value:void 0,done:!0}):yt=="keys"?{value:Mt,done:!1}:yt=="values"?{value:dt[Mt],done:!1}:{value:[Mt,dt[Mt]],done:!1}},"values"),Jt.Arguments=Jt.Array,Gt("keys"),Gt("values"),Gt("entries")},"./node_modules/core-js/modules/es.array.join.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/indexed-object.js"),Jt=Ct("./node_modules/core-js/internals/to-indexed-object.js"),wt=Ct("./node_modules/core-js/internals/array-method-is-strict.js"),et=[].join,tt=Gt!=Object,lt=wt("join",",");Wt({target:"Array",proto:!0,forced:tt||!lt},{join:function(ht){return et.call(Jt(this),ht===void 0?",":ht)}})},"./node_modules/core-js/modules/es.array.map.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/array-iteration.js").map,Jt=Ct("./node_modules/core-js/internals/array-method-has-species-support.js"),wt=Jt("map");Wt({target:"Array",proto:!0,forced:!wt},{map:function(tt){return Gt(this,tt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/is-object.js"),Jt=Ct("./node_modules/core-js/internals/is-array.js"),wt=Ct("./node_modules/core-js/internals/to-absolute-index.js"),et=Ct("./node_modules/core-js/internals/to-length.js"),tt=Ct("./node_modules/core-js/internals/to-indexed-object.js"),lt=Ct("./node_modules/core-js/internals/create-property.js"),rt=Ct("./node_modules/core-js/internals/well-known-symbol.js"),ht=Ct("./node_modules/core-js/internals/array-method-has-species-support.js"),dt=ht("slice"),yt=rt("species"),Mt=[].slice,jt=Math.max;Wt({target:"Array",proto:!0,forced:!dt},{slice:function(ae,he){var pe=tt(this),Te=et(pe.length),ne=wt(ae,Te),Ke=wt(he===void 0?Te:he,Te),Vt,$e,Ge;if(Jt(pe)&&(Vt=pe.constructor,typeof Vt=="function"&&(Vt===Array||Jt(Vt.prototype))?Vt=void 0:Gt(Vt)&&(Vt=Vt[yt],Vt===null&&(Vt=void 0)),Vt===Array||Vt===void 0))return Mt.call(pe,ne,Ke);for($e=new(Vt===void 0?Array:Vt)(jt(Ke-ne,0)),Ge=0;ne<Ke;ne++,Ge++)ne in pe&&lt($e,Ge,pe[ne]);return $e.length=Ge,$e}})},"./node_modules/core-js/modules/es.function.name.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/descriptors.js"),Gt=Ct("./node_modules/core-js/internals/object-define-property.js").f,Jt=Function.prototype,wt=Jt.toString,et=/^\s*function ([^ (]*)/,tt="name";Wt&&!(tt in Jt)&&Gt(Jt,tt,{configurable:!0,get:function(){try{return wt.call(this).match(et)[1]}catch(lt){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/descriptors.js"),Gt=Ct("./node_modules/core-js/internals/global.js"),Jt=Ct("./node_modules/core-js/internals/is-forced.js"),wt=Ct("./node_modules/core-js/internals/redefine.js"),et=Ct("./node_modules/core-js/internals/has.js"),tt=Ct("./node_modules/core-js/internals/classof-raw.js"),lt=Ct("./node_modules/core-js/internals/inherit-if-required.js"),rt=Ct("./node_modules/core-js/internals/is-symbol.js"),ht=Ct("./node_modules/core-js/internals/to-primitive.js"),dt=Ct("./node_modules/core-js/internals/fails.js"),yt=Ct("./node_modules/core-js/internals/object-create.js"),Mt=Ct("./node_modules/core-js/internals/object-get-own-property-names.js").f,jt=Ct("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Rt=Ct("./node_modules/core-js/internals/object-define-property.js").f,ae=Ct("./node_modules/core-js/internals/string-trim.js").trim,he="Number",pe=Gt[he],Te=pe.prototype,ne=tt(yt(Te))==he,Ke=function(Ve){if(rt(Ve))throw TypeError("Cannot convert a Symbol value to a number");var _e=ht(Ve,"number"),xe,ie,be,Fn,Mn,Xe,In,Xn;if(typeof _e=="string"&&_e.length>2){if(_e=ae(_e),xe=_e.charCodeAt(0),xe===43||xe===45){if(ie=_e.charCodeAt(2),ie===88||ie===120)return NaN}else if(xe===48){switch(_e.charCodeAt(1)){case 66:case 98:be=2,Fn=49;break;case 79:case 111:be=8,Fn=55;break;default:return+_e}for(Mn=_e.slice(2),Xe=Mn.length,In=0;In<Xe;In++)if(Xn=Mn.charCodeAt(In),Xn<48||Xn>Fn)return NaN;return parseInt(Mn,be)}}return+_e};if(Jt(he,!pe(" 0o1")||!pe("0b1")||pe("+0x1"))){for(var Vt=function(_e){var xe=arguments.length<1?0:_e,ie=this;return ie instanceof Vt&&(ne?dt(function(){Te.valueOf.call(ie)}):tt(ie)!=he)?lt(new pe(Ke(xe)),ie,Vt):Ke(xe)},$e=Wt?Mt(pe):"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(","),Ge=0,Oe;$e.length>Ge;Ge++)et(pe,Oe=$e[Ge])&&!et(Vt,Oe)&&Rt(Vt,Oe,jt(pe,Oe));Vt.prototype=Te,Te.constructor=Vt,wt(Gt,he,Vt)}},"./node_modules/core-js/modules/es.object.assign.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/object-assign.js");Wt({target:"Object",stat:!0,forced:Object.assign!==Gt},{assign:Gt})},"./node_modules/core-js/modules/es.object.keys.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/to-object.js"),Jt=Ct("./node_modules/core-js/internals/object-keys.js"),wt=Ct("./node_modules/core-js/internals/fails.js"),et=wt(function(){Jt(1)});Wt({target:"Object",stat:!0,forced:et},{keys:function(lt){return Jt(Gt(lt))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/to-string-tag-support.js"),Gt=Ct("./node_modules/core-js/internals/redefine.js"),Jt=Ct("./node_modules/core-js/internals/object-to-string.js");Wt||Gt(Object.prototype,"toString",Jt,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/redefine.js"),Gt=Ct("./node_modules/core-js/internals/an-object.js"),Jt=Ct("./node_modules/core-js/internals/to-string.js"),wt=Ct("./node_modules/core-js/internals/fails.js"),et=Ct("./node_modules/core-js/internals/regexp-flags.js"),tt="toString",lt=RegExp.prototype,rt=lt[tt],ht=wt(function(){return rt.call({source:"a",flags:"b"})!="/a/b"}),dt=rt.name!=tt;(ht||dt)&&Wt(RegExp.prototype,tt,function(){var Mt=Gt(this),jt=Jt(Mt.source),Rt=Mt.flags,ae=Jt(Rt===void 0&&Mt instanceof RegExp&&!("flags"in lt)?et.call(Mt):Rt);return"/"+jt+"/"+ae},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/string-multibyte.js").charAt,Gt=Ct("./node_modules/core-js/internals/to-string.js"),Jt=Ct("./node_modules/core-js/internals/internal-state.js"),wt=Ct("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",tt=Jt.set,lt=Jt.getterFor(et);wt(String,"String",function(rt){tt(this,{type:et,string:Gt(rt),index:0})},function(){var ht=lt(this),dt=ht.string,yt=ht.index,Mt;return yt>=dt.length?{value:void 0,done:!0}:(Mt=Wt(dt,yt),ht.index+=Mt.length,{value:Mt,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/create-html.js"),Jt=Ct("./node_modules/core-js/internals/string-html-forced.js");Wt({target:"String",proto:!0,forced:Jt("link")},{link:function(et){return Gt(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/descriptors.js"),Jt=Ct("./node_modules/core-js/internals/global.js"),wt=Ct("./node_modules/core-js/internals/has.js"),et=Ct("./node_modules/core-js/internals/is-object.js"),tt=Ct("./node_modules/core-js/internals/object-define-property.js").f,lt=Ct("./node_modules/core-js/internals/copy-constructor-properties.js"),rt=Jt.Symbol;if(Gt&&typeof rt=="function"&&(!("description"in rt.prototype)||rt().description!==void 0)){var ht={},dt=function(){var he=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),pe=this instanceof dt?new rt(he):he===void 0?rt():rt(he);return he===""&&(ht[pe]=!0),pe};lt(dt,rt);var yt=dt.prototype=rt.prototype;yt.constructor=dt;var Mt=yt.toString,jt=String(rt("test"))=="Symbol(test)",Rt=/^Symbol\((.*)\)[^)]+$/;tt(yt,"description",{configurable:!0,get:function(){var he=et(this)?this.valueOf():this,pe=Mt.call(he);if(wt(ht,he))return"";var Te=jt?pe.slice(7,-1):pe.replace(Rt,"$1");return Te===""?void 0:Te}}),Wt({global:!0,forced:!0},{Symbol:dt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/define-well-known-symbol.js");Wt("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(Tt,ee,Ct){"use strict";var Wt=Ct("./node_modules/core-js/internals/export.js"),Gt=Ct("./node_modules/core-js/internals/global.js"),Jt=Ct("./node_modules/core-js/internals/get-built-in.js"),wt=Ct("./node_modules/core-js/internals/is-pure.js"),et=Ct("./node_modules/core-js/internals/descriptors.js"),tt=Ct("./node_modules/core-js/internals/native-symbol.js"),lt=Ct("./node_modules/core-js/internals/fails.js"),rt=Ct("./node_modules/core-js/internals/has.js"),ht=Ct("./node_modules/core-js/internals/is-array.js"),dt=Ct("./node_modules/core-js/internals/is-object.js"),yt=Ct("./node_modules/core-js/internals/is-symbol.js"),Mt=Ct("./node_modules/core-js/internals/an-object.js"),jt=Ct("./node_modules/core-js/internals/to-object.js"),Rt=Ct("./node_modules/core-js/internals/to-indexed-object.js"),ae=Ct("./node_modules/core-js/internals/to-property-key.js"),he=Ct("./node_modules/core-js/internals/to-string.js"),pe=Ct("./node_modules/core-js/internals/create-property-descriptor.js"),Te=Ct("./node_modules/core-js/internals/object-create.js"),ne=Ct("./node_modules/core-js/internals/object-keys.js"),Ke=Ct("./node_modules/core-js/internals/object-get-own-property-names.js"),Vt=Ct("./node_modules/core-js/internals/object-get-own-property-names-external.js"),$e=Ct("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ge=Ct("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Oe=Ct("./node_modules/core-js/internals/object-define-property.js"),Ve=Ct("./node_modules/core-js/internals/object-property-is-enumerable.js"),_e=Ct("./node_modules/core-js/internals/create-non-enumerable-property.js"),xe=Ct("./node_modules/core-js/internals/redefine.js"),ie=Ct("./node_modules/core-js/internals/shared.js"),be=Ct("./node_modules/core-js/internals/shared-key.js"),Fn=Ct("./node_modules/core-js/internals/hidden-keys.js"),Mn=Ct("./node_modules/core-js/internals/uid.js"),Xe=Ct("./node_modules/core-js/internals/well-known-symbol.js"),In=Ct("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Xn=Ct("./node_modules/core-js/internals/define-well-known-symbol.js"),pi=Ct("./node_modules/core-js/internals/set-to-string-tag.js"),$n=Ct("./node_modules/core-js/internals/internal-state.js"),bi=Ct("./node_modules/core-js/internals/array-iteration.js").forEach,sn=be("hidden"),Li="Symbol",ji="prototype",ve=Xe("toPrimitive"),hn=$n.set,Ae=$n.getterFor(Li),Ot=Object[ji],Ft=Gt.Symbol,Kt=Jt("JSON","stringify"),Ee=Ge.f,je=Oe.f,ce=Vt.f,Be=Ve.f,$t=ie("symbols"),Pt=ie("op-symbols"),mt=ie("string-to-symbol-registry"),Zt=ie("symbol-to-string-registry"),Se=ie("wks"),Dt=Gt.QObject,Ie=!Dt||!Dt[ji]||!Dt[ji].findChild,nn=et&&lt(function(){return Te(je({},"a",{get:function(){return je(this,"a",{value:7}).a}})).a!=7})?function(Jr,Ir,Xr){var to=Ee(Ot,Ir);to&&delete Ot[Ir],je(Jr,Ir,Xr),to&&Jr!==Ot&&je(Ot,Ir,to)}:je,zn=function(Jr,Ir){var Xr=$t[Jr]=Te(Ft[ji]);return hn(Xr,{type:Li,tag:Jr,description:Ir}),et||(Xr.description=Ir),Xr},xn=function(Ir,Xr,to){Ir===Ot&&xn(Pt,Xr,to),Mt(Ir);var ho=ae(Xr);return Mt(to),rt($t,ho)?(to.enumerable?(rt(Ir,sn)&&Ir[sn][ho]&&(Ir[sn][ho]=!1),to=Te(to,{enumerable:pe(0,!1)})):(rt(Ir,sn)||je(Ir,sn,pe(1,{})),Ir[sn][ho]=!0),nn(Ir,ho,to)):je(Ir,ho,to)},li=function(Ir,Xr){Mt(Ir);var to=Rt(Xr),ho=ne(to).concat(qr(to));return bi(ho,function(cs){(!et||Wi.call(to,cs))&&xn(Ir,cs,to[cs])}),Ir},Qi=function(Ir,Xr){return Xr===void 0?Te(Ir):li(Te(Ir),Xr)},Wi=function(Ir){var Xr=ae(Ir),to=Be.call(this,Xr);return this===Ot&&rt($t,Xr)&&!rt(Pt,Xr)?!1:to||!rt(this,Xr)||!rt($t,Xr)||rt(this,sn)&&this[sn][Xr]?to:!0},pr=function(Ir,Xr){var to=Rt(Ir),ho=ae(Xr);if(!(to===Ot&&rt($t,ho)&&!rt(Pt,ho))){var cs=Ee(to,ho);return cs&&rt($t,ho)&&!(rt(to,sn)&&to[sn][ho])&&(cs.enumerable=!0),cs}},xr=function(Ir){var Xr=ce(Rt(Ir)),to=[];return bi(Xr,function(ho){!rt($t,ho)&&!rt(Fn,ho)&&to.push(ho)}),to},qr=function(Ir){var Xr=Ir===Ot,to=ce(Xr?Pt:Rt(Ir)),ho=[];return bi(to,function(cs){rt($t,cs)&&(!Xr||rt(Ot,cs))&&ho.push($t[cs])}),ho};if(tt||(Ft=function(){if(this instanceof Ft)throw TypeError("Symbol is not a constructor");var Ir=!arguments.length||arguments[0]===void 0?void 0:he(arguments[0]),Xr=Mn(Ir),to=function(ho){this===Ot&&to.call(Pt,ho),rt(this,sn)&&rt(this[sn],Xr)&&(this[sn][Xr]=!1),nn(this,Xr,pe(1,ho))};return et&&Ie&&nn(Ot,Xr,{configurable:!0,set:to}),zn(Xr,Ir)},xe(Ft[ji],"toString",function(){return Ae(this).tag}),xe(Ft,"withoutSetter",function(Jr){return zn(Mn(Jr),Jr)}),Ve.f=Wi,Oe.f=xn,Ge.f=pr,Ke.f=Vt.f=xr,$e.f=qr,In.f=function(Jr){return zn(Xe(Jr),Jr)},et&&(je(Ft[ji],"description",{configurable:!0,get:function(){return Ae(this).description}}),wt||xe(Ot,"propertyIsEnumerable",Wi,{unsafe:!0}))),Wt({global:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:Ft}),bi(ne(Se),function(Jr){Xn(Jr)}),Wt({target:Li,stat:!0,forced:!tt},{for:function(Jr){var Ir=he(Jr);if(rt(mt,Ir))return mt[Ir];var Xr=Ft(Ir);return mt[Ir]=Xr,Zt[Xr]=Ir,Xr},keyFor:function(Ir){if(!yt(Ir))throw TypeError(Ir+" is not a symbol");if(rt(Zt,Ir))return Zt[Ir]},useSetter:function(){Ie=!0},useSimple:function(){Ie=!1}}),Wt({target:"Object",stat:!0,forced:!tt,sham:!et},{create:Qi,defineProperty:xn,defineProperties:li,getOwnPropertyDescriptor:pr}),Wt({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:xr,getOwnPropertySymbols:qr}),Wt({target:"Object",stat:!0,forced:lt(function(){$e.f(1)})},{getOwnPropertySymbols:function(Ir){return $e.f(jt(Ir))}}),Kt){var Vr=!tt||lt(function(){var Jr=Ft();return Kt([Jr])!="[null]"||Kt({a:Jr})!="{}"||Kt(Object(Jr))!="{}"});Wt({target:"JSON",stat:!0,forced:Vr},{stringify:function(Ir,Xr,to){for(var ho=[Ir],cs=1,no;arguments.length>cs;)ho.push(arguments[cs++]);if(no=Xr,!(!dt(Xr)&&Ir===void 0||yt(Ir)))return ht(Xr)||(Xr=function(Is,So){if(typeof no=="function"&&(So=no.call(this,Is,So)),!yt(So))return So}),ho[1]=Xr,Kt.apply(null,ho)}})}Ft[ji][ve]||_e(Ft[ji],ve,Ft[ji].valueOf),pi(Ft,Li),Fn[sn]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/dom-iterables.js"),Jt=Ct("./node_modules/core-js/internals/array-for-each.js"),wt=Ct("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var et in Gt){var tt=Wt[et],lt=tt&&tt.prototype;if(lt&&lt.forEach!==Jt)try{wt(lt,"forEach",Jt)}catch(rt){lt.forEach=Jt}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(Tt,ee,Ct){var Wt=Ct("./node_modules/core-js/internals/global.js"),Gt=Ct("./node_modules/core-js/internals/dom-iterables.js"),Jt=Ct("./node_modules/core-js/modules/es.array.iterator.js"),wt=Ct("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Ct("./node_modules/core-js/internals/well-known-symbol.js"),tt=et("iterator"),lt=et("toStringTag"),rt=Jt.values;for(var ht in Gt){var dt=Wt[ht],yt=dt&&dt.prototype;if(yt){if(yt[tt]!==rt)try{wt(yt,tt,rt)}catch(jt){yt[tt]=rt}if(yt[lt]||wt(yt,lt,ht),Gt[ht]){for(var Mt in Jt)if(yt[Mt]!==Jt[Mt])try{wt(yt,Mt,Jt[Mt])}catch(jt){yt[Mt]=Jt[Mt]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(Tt){(function(ee,Ct){Tt.exports=Ct()})(this,function(){"use strict";function ee(Dt){var Ie=typeof Dt;return Dt!==null&&(Ie==="object"||Ie==="function")}function Ct(Dt){return typeof Dt=="function"}var Wt=void 0;Array.isArray?Wt=Array.isArray:Wt=function(Dt){return Object.prototype.toString.call(Dt)==="[object Array]"};var Gt=Wt,Jt=0,wt=void 0,et=void 0,tt=function(Ie,nn){ne[Jt]=Ie,ne[Jt+1]=nn,Jt+=2,Jt===2&&(et?et(Ke):$e())};function lt(Dt){et=Dt}function rt(Dt){tt=Dt}var ht=typeof window!="undefined"?window:void 0,dt=ht||{},yt=dt.MutationObserver||dt.WebKitMutationObserver,Mt=typeof self=="undefined"&&typeof Lt!="undefined"&&{}.toString.call(Lt)==="[object process]",jt=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Rt(){return function(){return Lt.nextTick(Ke)}}function ae(){return typeof wt!="undefined"?function(){wt(Ke)}:Te()}function he(){var Dt=0,Ie=new yt(Ke),nn=document.createTextNode("");return Ie.observe(nn,{characterData:!0}),function(){nn.data=Dt=++Dt%2}}function pe(){var Dt=new MessageChannel;return Dt.port1.onmessage=Ke,function(){return Dt.port2.postMessage(0)}}function Te(){var Dt=setTimeout;return function(){return Dt(Ke,1)}}var ne=new Array(1e3);function Ke(){for(var Dt=0;Dt<Jt;Dt+=2){var Ie=ne[Dt],nn=ne[Dt+1];Ie(nn),ne[Dt]=void 0,ne[Dt+1]=void 0}Jt=0}function Vt(){try{var Dt=Function("return this")().require("vertx");return wt=Dt.runOnLoop||Dt.runOnContext,ae()}catch(Ie){return Te()}}var $e=void 0;Mt?$e=Rt():yt?$e=he():jt?$e=pe():ht===void 0?$e=Vt():$e=Te();function Ge(Dt,Ie){var nn=this,zn=new this.constructor(_e);zn[Ve]===void 0&&Kt(zn);var xn=nn._state;if(xn){var li=arguments[xn-1];tt(function(){return hn(xn,zn,li,nn._result)})}else ji(nn,zn,Dt,Ie);return zn}function Oe(Dt){var Ie=this;if(Dt&&typeof Dt=="object"&&Dt.constructor===Ie)return Dt;var nn=new Ie(_e);return $n(nn,Dt),nn}var Ve=Math.random().toString(36).substring(2);function _e(){}var xe=void 0,ie=1,be=2;function Fn(){return new TypeError("You cannot resolve a promise with itself")}function Mn(){return new TypeError("A promises callback cannot return that same promise.")}function Xe(Dt,Ie,nn,zn){try{Dt.call(Ie,nn,zn)}catch(xn){return xn}}function In(Dt,Ie,nn){tt(function(zn){var xn=!1,li=Xe(nn,Ie,function(Qi){xn||(xn=!0,Ie!==Qi?$n(zn,Qi):sn(zn,Qi))},function(Qi){xn||(xn=!0,Li(zn,Qi))},"Settle: "+(zn._label||" unknown promise"));!xn&&li&&(xn=!0,Li(zn,li))},Dt)}function Xn(Dt,Ie){Ie._state===ie?sn(Dt,Ie._result):Ie._state===be?Li(Dt,Ie._result):ji(Ie,void 0,function(nn){return $n(Dt,nn)},function(nn){return Li(Dt,nn)})}function pi(Dt,Ie,nn){Ie.constructor===Dt.constructor&&nn===Ge&&Ie.constructor.resolve===Oe?Xn(Dt,Ie):nn===void 0?sn(Dt,Ie):Ct(nn)?In(Dt,Ie,nn):sn(Dt,Ie)}function $n(Dt,Ie){if(Dt===Ie)Li(Dt,Fn());else if(ee(Ie)){var nn=void 0;try{nn=Ie.then}catch(zn){Li(Dt,zn);return}pi(Dt,Ie,nn)}else sn(Dt,Ie)}function bi(Dt){Dt._onerror&&Dt._onerror(Dt._result),ve(Dt)}function sn(Dt,Ie){Dt._state===xe&&(Dt._result=Ie,Dt._state=ie,Dt._subscribers.length!==0&&tt(ve,Dt))}function Li(Dt,Ie){Dt._state===xe&&(Dt._state=be,Dt._result=Ie,tt(bi,Dt))}function ji(Dt,Ie,nn,zn){var xn=Dt._subscribers,li=xn.length;Dt._onerror=null,xn[li]=Ie,xn[li+ie]=nn,xn[li+be]=zn,li===0&&Dt._state&&tt(ve,Dt)}function ve(Dt){var Ie=Dt._subscribers,nn=Dt._state;if(Ie.length!==0){for(var zn=void 0,xn=void 0,li=Dt._result,Qi=0;Qi<Ie.length;Qi+=3)zn=Ie[Qi],xn=Ie[Qi+nn],zn?hn(nn,zn,xn,li):xn(li);Dt._subscribers.length=0}}function hn(Dt,Ie,nn,zn){var xn=Ct(nn),li=void 0,Qi=void 0,Wi=!0;if(xn){try{li=nn(zn)}catch(pr){Wi=!1,Qi=pr}if(Ie===li){Li(Ie,Mn());return}}else li=zn;Ie._state!==xe||(xn&&Wi?$n(Ie,li):Wi===!1?Li(Ie,Qi):Dt===ie?sn(Ie,li):Dt===be&&Li(Ie,li))}function Ae(Dt,Ie){try{Ie(function(zn){$n(Dt,zn)},function(zn){Li(Dt,zn)})}catch(nn){Li(Dt,nn)}}var Ot=0;function Ft(){return Ot++}function Kt(Dt){Dt[Ve]=Ot++,Dt._state=void 0,Dt._result=void 0,Dt._subscribers=[]}function Ee(){return new Error("Array Methods must be provided an Array")}var je=function(){function Dt(Ie,nn){this._instanceConstructor=Ie,this.promise=new Ie(_e),this.promise[Ve]||Kt(this.promise),Gt(nn)?(this.length=nn.length,this._remaining=nn.length,this._result=new Array(this.length),this.length===0?sn(this.promise,this._result):(this.length=this.length||0,this._enumerate(nn),this._remaining===0&&sn(this.promise,this._result))):Li(this.promise,Ee())}return Dt.prototype._enumerate=function(nn){for(var zn=0;this._state===xe&&zn<nn.length;zn++)this._eachEntry(nn[zn],zn)},Dt.prototype._eachEntry=function(nn,zn){var xn=this._instanceConstructor,li=xn.resolve;if(li===Oe){var Qi=void 0,Wi=void 0,pr=!1;try{Qi=nn.then}catch(qr){pr=!0,Wi=qr}if(Qi===Ge&&nn._state!==xe)this._settledAt(nn._state,zn,nn._result);else if(typeof Qi!="function")this._remaining--,this._result[zn]=nn;else if(xn===Zt){var xr=new xn(_e);pr?Li(xr,Wi):pi(xr,nn,Qi),this._willSettleAt(xr,zn)}else this._willSettleAt(new xn(function(qr){return qr(nn)}),zn)}else this._willSettleAt(li(nn),zn)},Dt.prototype._settledAt=function(nn,zn,xn){var li=this.promise;li._state===xe&&(this._remaining--,nn===be?Li(li,xn):this._result[zn]=xn),this._remaining===0&&sn(li,this._result)},Dt.prototype._willSettleAt=function(nn,zn){var xn=this;ji(nn,void 0,function(li){return xn._settledAt(ie,zn,li)},function(li){return xn._settledAt(be,zn,li)})},Dt}();function ce(Dt){return new je(this,Dt).promise}function Be(Dt){var Ie=this;return Gt(Dt)?new Ie(function(nn,zn){for(var xn=Dt.length,li=0;li<xn;li++)Ie.resolve(Dt[li]).then(nn,zn)}):new Ie(function(nn,zn){return zn(new TypeError("You must pass an array to race."))})}function $t(Dt){var Ie=this,nn=new Ie(_e);return Li(nn,Dt),nn}function Pt(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function mt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Zt=function(){function Dt(Ie){this[Ve]=Ft(),this._result=this._state=void 0,this._subscribers=[],_e!==Ie&&(typeof Ie!="function"&&Pt(),this instanceof Dt?Ae(this,Ie):mt())}return Dt.prototype.catch=function(nn){return this.then(null,nn)},Dt.prototype.finally=function(nn){var zn=this,xn=zn.constructor;return Ct(nn)?zn.then(function(li){return xn.resolve(nn()).then(function(){return li})},function(li){return xn.resolve(nn()).then(function(){throw li})}):zn.then(nn,nn)},Dt}();Zt.prototype.then=Ge,Zt.all=ce,Zt.race=Be,Zt.resolve=Oe,Zt.reject=$t,Zt._setScheduler=lt,Zt._setAsap=rt,Zt._asap=tt;function Se(){var Dt=void 0;if(typeof bt.g!="undefined")Dt=bt.g;else if(typeof self!="undefined")Dt=self;else try{Dt=Function("return this")()}catch(zn){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ie=Dt.Promise;if(Ie){var nn=null;try{nn=Object.prototype.toString.call(Ie.resolve())}catch(zn){}if(nn==="[object Promise]"&&!Ie.cast)return}Dt.Promise=Zt}return Zt.polyfill=Se,Zt.Promise=Zt,Zt})},html2canvas:function(Tt){"use strict";Tt.exports=se},jspdf:function(Tt){"use strict";Tt.exports=ge}},re={};function le(Tt){var ee=re[Tt];if(ee!==void 0)return ee.exports;var Ct=re[Tt]={exports:{}};return De[Tt].call(Ct.exports,Ct,Ct.exports,le),Ct.exports}(function(){le.n=function(Tt){var ee=Tt&&Tt.__esModule?function(){return Tt.default}:function(){return Tt};return le.d(ee,{a:ee}),ee}})(),function(){le.d=function(Tt,ee){for(var Ct in ee)le.o(ee,Ct)&&!le.o(Tt,Ct)&&Object.defineProperty(Tt,Ct,{enumerable:!0,get:ee[Ct]})}}(),function(){le.o=function(Tt,ee){return Object.prototype.hasOwnProperty.call(Tt,ee)}}(),function(){le.r=function(Tt){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Tt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Tt,"__esModule",{value:!0})}}();var Et={};return function(){"use strict";le.r(Et);var Tt=le("./src/worker.js"),ee=le("./src/plugin/jspdf-plugin.js"),Ct=le("./src/plugin/pagebreaks.js"),Wt=le("./src/plugin/hyperlinks.js"),Gt=function Jt(wt,et){var tt=new Jt.Worker(et);return wt?tt.from(wt).save():tt};Gt.Worker=Tt.default,Et.default=Gt}(),Et=Et.default,Et}()})},67467:function(di,Pn){Pn.read=function(bt,Lt,ge,se,De){var re,le,Et=De*8-se-1,Tt=(1<<Et)-1,ee=Tt>>1,Ct=-7,Wt=ge?De-1:0,Gt=ge?-1:1,Jt=bt[Lt+Wt];for(Wt+=Gt,re=Jt&(1<<-Ct)-1,Jt>>=-Ct,Ct+=Et;Ct>0;re=re*256+bt[Lt+Wt],Wt+=Gt,Ct-=8);for(le=re&(1<<-Ct)-1,re>>=-Ct,Ct+=se;Ct>0;le=le*256+bt[Lt+Wt],Wt+=Gt,Ct-=8);if(re===0)re=1-ee;else{if(re===Tt)return le?NaN:(Jt?-1:1)*(1/0);le=le+Math.pow(2,se),re=re-ee}return(Jt?-1:1)*le*Math.pow(2,re-se)},Pn.write=function(bt,Lt,ge,se,De,re){var le,Et,Tt,ee=re*8-De-1,Ct=(1<<ee)-1,Wt=Ct>>1,Gt=De===23?Math.pow(2,-24)-Math.pow(2,-77):0,Jt=se?0:re-1,wt=se?1:-1,et=Lt<0||Lt===0&&1/Lt<0?1:0;for(Lt=Math.abs(Lt),isNaN(Lt)||Lt===1/0?(Et=isNaN(Lt)?1:0,le=Ct):(le=Math.floor(Math.log(Lt)/Math.LN2),Lt*(Tt=Math.pow(2,-le))<1&&(le--,Tt*=2),le+Wt>=1?Lt+=Gt/Tt:Lt+=Gt*Math.pow(2,1-Wt),Lt*Tt>=2&&(le++,Tt/=2),le+Wt>=Ct?(Et=0,le=Ct):le+Wt>=1?(Et=(Lt*Tt-1)*Math.pow(2,De),le=le+Wt):(Et=Lt*Math.pow(2,Wt-1)*Math.pow(2,De),le=0));De>=8;bt[ge+Jt]=Et&255,Jt+=wt,Et/=256,De-=8);for(le=le<<De|Et,ee+=De;ee>0;bt[ge+Jt]=le&255,Jt+=wt,le/=256,ee-=8);bt[ge+Jt-wt]|=et*128}},32092:function(di,Pn,bt){"use strict";bt.r(Pn),bt.d(Pn,{AcroForm:function(){return Eu},AcroFormAppearance:function(){return _o},AcroFormButton:function(){return qa},AcroFormCheckBox:function(){return bu},AcroFormChoiceField:function(){return au},AcroFormComboBox:function(){return Eo},AcroFormEditBox:function(){return ja},AcroFormListBox:function(){return Ja},AcroFormPasswordField:function(){return nu},AcroFormPushButton:function(){return lu},AcroFormRadioButton:function(){return Yl},AcroFormTextField:function(){return fu},GState:function(){return Ms},ShadingPattern:function(){return Fa},TilingPattern:function(){return Js},default:function(){return Jl},jsPDF:function(){return Ho}});var Lt=bt(80665),ge={},se=function(Bt,pt,St,_t,oe){var qt=new Worker(ge[pt]||(ge[pt]=URL.createObjectURL(new Blob([Bt+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return qt.onmessage=function(me){var Ce=me.data,Le=Ce.$e$;if(Le){var Je=new Error(Le[0]);Je.code=Le[1],Je.stack=Le[2],oe(Je,null)}else oe(null,Ce)},qt.postMessage(St,_t),qt},De=Uint8Array,re=Uint16Array,le=Int32Array,Et=new De([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]),Tt=new De([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]),ee=new De([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ct=function(Bt,pt){for(var St=new re(31),_t=0;_t<31;++_t)St[_t]=pt+=1<<Bt[_t-1];for(var oe=new le(St[30]),_t=1;_t<30;++_t)for(var qt=St[_t];qt<St[_t+1];++qt)oe[qt]=qt-St[_t]<<5|_t;return{b:St,r:oe}},Wt=Ct(Et,2),Gt=Wt.b,Jt=Wt.r;Gt[28]=258,Jt[258]=28;for(var wt=Ct(Tt,0),et=wt.b,tt=wt.r,lt=new re(32768),rt=0;rt<32768;++rt){var ht=(rt&43690)>>1|(rt&21845)<<1;ht=(ht&52428)>>2|(ht&13107)<<2,ht=(ht&61680)>>4|(ht&3855)<<4,lt[rt]=((ht&65280)>>8|(ht&255)<<8)>>1}for(var dt=function(Bt,pt,St){for(var _t=Bt.length,oe=0,qt=new re(pt);oe<_t;++oe)Bt[oe]&&++qt[Bt[oe]-1];var me=new re(pt);for(oe=1;oe<pt;++oe)me[oe]=me[oe-1]+qt[oe-1]<<1;var Ce;if(St){Ce=new re(1<<pt);var Le=15-pt;for(oe=0;oe<_t;++oe)if(Bt[oe])for(var Je=oe<<4|Bt[oe],fn=pt-Bt[oe],gn=me[Bt[oe]-1]++<<fn,En=gn|(1<<fn)-1;gn<=En;++gn)Ce[lt[gn]>>Le]=Je}else for(Ce=new re(_t),oe=0;oe<_t;++oe)Bt[oe]&&(Ce[oe]=lt[me[Bt[oe]-1]++]>>15-Bt[oe]);return Ce},yt=new De(288),rt=0;rt<144;++rt)yt[rt]=8;for(var rt=144;rt<256;++rt)yt[rt]=9;for(var rt=256;rt<280;++rt)yt[rt]=7;for(var rt=280;rt<288;++rt)yt[rt]=8;for(var Mt=new De(32),rt=0;rt<32;++rt)Mt[rt]=5;var jt=dt(yt,9,0),Rt=dt(yt,9,1),ae=dt(Mt,5,0),he=dt(Mt,5,1),pe=function(Bt){for(var pt=Bt[0],St=1;St<Bt.length;++St)Bt[St]>pt&&(pt=Bt[St]);return pt},Te=function(Bt,pt,St){var _t=pt/8|0;return(Bt[_t]|Bt[_t+1]<<8)>>(pt&7)&St},ne=function(Bt,pt){var St=pt/8|0;return(Bt[St]|Bt[St+1]<<8|Bt[St+2]<<16)>>(pt&7)},Ke=function(Bt){return(Bt+7)/8|0},Vt=function(Bt,pt,St){return(pt==null||pt<0)&&(pt=0),(St==null||St>Bt.length)&&(St=Bt.length),new De(Bt.subarray(pt,St))},$e={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},Ge=["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"],Oe=function(Bt,pt,St){var _t=new Error(pt||Ge[Bt]);if(_t.code=Bt,Error.captureStackTrace&&Error.captureStackTrace(_t,Oe),!St)throw _t;return _t},Ve=function(Bt,pt,St,_t){var oe=Bt.length,qt=_t?_t.length:0;if(!oe||pt.f&&!pt.l)return St||new De(0);var me=!St,Ce=me||pt.i!=2,Le=pt.i;me&&(St=new De(oe*3));var Je=function(Yi){var Ar=St.length;if(Yi>Ar){var Fr=new De(Math.max(Ar*2,Yi));Fr.set(St),St=Fr}},fn=pt.f||0,gn=pt.p||0,En=pt.b||0,We=pt.l,vi=pt.d,ei=pt.m,wi=pt.n,Hn=oe*8;do{if(!We){fn=Te(Bt,gn,1);var gi=Te(Bt,gn+1,3);if(gn+=3,gi)if(gi==1)We=Rt,vi=he,ei=9,wi=5;else if(gi==2){var lo=Te(Bt,gn,31)+257,mr=Te(Bt,gn+10,15)+4,Di=lo+Te(Bt,gn+5,31)+1;gn+=14;for(var Cr=new De(Di),Or=new De(19),qn=0;qn<mr;++qn)Or[ee[qn]]=Te(Bt,gn+qn*3,7);gn+=mr*3;for(var oi=pe(Or),ye=(1<<oi)-1,we=dt(Or,oi,1),qn=0;qn<Di;){var Ye=we[Te(Bt,gn,ye)];gn+=Ye&15;var zi=Ye>>4;if(zi<16)Cr[qn++]=zi;else{var tn=0,yn=0;for(zi==16?(yn=3+Te(Bt,gn,3),gn+=2,tn=Cr[qn-1]):zi==17?(yn=3+Te(Bt,gn,7),gn+=3):zi==18&&(yn=11+Te(Bt,gn,127),gn+=7);yn--;)Cr[qn++]=tn}}var on=Cr.subarray(0,lo),Dn=Cr.subarray(lo);ei=pe(on),wi=pe(Dn),We=dt(on,ei,1),vi=dt(Dn,wi,1)}else Oe(1);else{var zi=Ke(gn)+4,or=Bt[zi-4]|Bt[zi-3]<<8,Lr=zi+or;if(Lr>oe){Le&&Oe(0);break}Ce&&Je(En+or),St.set(Bt.subarray(zi,Lr),En),pt.b=En+=or,pt.p=gn=Lr*8,pt.f=fn;continue}if(gn>Hn){Le&&Oe(0);break}}Ce&&Je(En+131072);for(var Rn=(1<<ei)-1,ti=(1<<wi)-1,ze=gn;;ze=gn){var tn=We[ne(Bt,gn)&Rn],cn=tn>>4;if(gn+=tn&15,gn>Hn){Le&&Oe(0);break}if(tn||Oe(2),cn<256)St[En++]=cn;else if(cn==256){ze=gn,We=null;break}else{var vn=cn-254;if(cn>264){var qn=cn-257,Gn=Et[qn];vn=Te(Bt,gn,(1<<Gn)-1)+Gt[qn],gn+=Gn}var Yn=vi[ne(Bt,gn)&ti],ri=Yn>>4;Yn||Oe(3),gn+=Yn&15;var Dn=et[ri];if(ri>3){var Gn=Tt[ri];Dn+=ne(Bt,gn)&(1<<Gn)-1,gn+=Gn}if(gn>Hn){Le&&Oe(0);break}Ce&&Je(En+131072);var Fi=En+vn;if(En<Dn){var ci=qt-Dn,Ji=Math.min(Dn,Fi);for(ci+En<0&&Oe(3);En<Ji;++En)St[En]=_t[ci+En]}for(;En<Fi;++En)St[En]=St[En-Dn]}}pt.l=We,pt.p=ze,pt.b=En,pt.f=fn,We&&(fn=1,pt.m=ei,pt.d=vi,pt.n=wi)}while(!fn);return En!=St.length&&me?Vt(St,0,En):St.subarray(0,En)},_e=function(Bt,pt,St){St<<=pt&7;var _t=pt/8|0;Bt[_t]|=St,Bt[_t+1]|=St>>8},xe=function(Bt,pt,St){St<<=pt&7;var _t=pt/8|0;Bt[_t]|=St,Bt[_t+1]|=St>>8,Bt[_t+2]|=St>>16},ie=function(Bt,pt){for(var St=[],_t=0;_t<Bt.length;++_t)Bt[_t]&&St.push({s:_t,f:Bt[_t]});var oe=St.length,qt=St.slice();if(!oe)return{t:pi,l:0};if(oe==1){var me=new De(St[0].s+1);return me[St[0].s]=1,{t:me,l:1}}St.sort(function(Lr,lo){return Lr.f-lo.f}),St.push({s:-1,f:25001});var Ce=St[0],Le=St[1],Je=0,fn=1,gn=2;for(St[0]={s:-1,f:Ce.f+Le.f,l:Ce,r:Le};fn!=oe-1;)Ce=St[St[Je].f<St[gn].f?Je++:gn++],Le=St[Je!=fn&&St[Je].f<St[gn].f?Je++:gn++],St[fn++]={s:-1,f:Ce.f+Le.f,l:Ce,r:Le};for(var En=qt[0].s,_t=1;_t<oe;++_t)qt[_t].s>En&&(En=qt[_t].s);var We=new re(En+1),vi=be(St[fn-1],We,0);if(vi>pt){var _t=0,ei=0,wi=vi-pt,Hn=1<<wi;for(qt.sort(function(lo,mr){return We[mr.s]-We[lo.s]||lo.f-mr.f});_t<oe;++_t){var gi=qt[_t].s;if(We[gi]>pt)ei+=Hn-(1<<vi-We[gi]),We[gi]=pt;else break}for(ei>>=wi;ei>0;){var zi=qt[_t].s;We[zi]<pt?ei-=1<<pt-We[zi]++-1:++_t}for(;_t>=0&&ei;--_t){var or=qt[_t].s;We[or]==pt&&(--We[or],++ei)}vi=pt}return{t:new De(We),l:vi}},be=function(Bt,pt,St){return Bt.s==-1?Math.max(be(Bt.l,pt,St+1),be(Bt.r,pt,St+1)):pt[Bt.s]=St},Fn=function(Bt){for(var pt=Bt.length;pt&&!Bt[--pt];);for(var St=new re(++pt),_t=0,oe=Bt[0],qt=1,me=function(Le){St[_t++]=Le},Ce=1;Ce<=pt;++Ce)if(Bt[Ce]==oe&&Ce!=pt)++qt;else{if(!oe&&qt>2){for(;qt>138;qt-=138)me(32754);qt>2&&(me(qt>10?qt-11<<5|28690:qt-3<<5|12305),qt=0)}else if(qt>3){for(me(oe),--qt;qt>6;qt-=6)me(8304);qt>2&&(me(qt-3<<5|8208),qt=0)}for(;qt--;)me(oe);qt=1,oe=Bt[Ce]}return{c:St.subarray(0,_t),n:pt}},Mn=function(Bt,pt){for(var St=0,_t=0;_t<pt.length;++_t)St+=Bt[_t]*pt[_t];return St},Xe=function(Bt,pt,St){var _t=St.length,oe=Ke(pt+2);Bt[oe]=_t&255,Bt[oe+1]=_t>>8,Bt[oe+2]=Bt[oe]^255,Bt[oe+3]=Bt[oe+1]^255;for(var qt=0;qt<_t;++qt)Bt[oe+qt+4]=St[qt];return(oe+4+_t)*8},In=function(Bt,pt,St,_t,oe,qt,me,Ce,Le,Je,fn){_e(pt,fn++,St),++oe[256];for(var gn=ie(oe,15),En=gn.t,We=gn.l,vi=ie(qt,15),ei=vi.t,wi=vi.l,Hn=Fn(En),gi=Hn.c,zi=Hn.n,or=Fn(ei),Lr=or.c,lo=or.n,mr=new re(19),Di=0;Di<gi.length;++Di)++mr[gi[Di]&31];for(var Di=0;Di<Lr.length;++Di)++mr[Lr[Di]&31];for(var Cr=ie(mr,7),Or=Cr.t,qn=Cr.l,oi=19;oi>4&&!Or[ee[oi-1]];--oi);var ye=Je+5<<3,we=Mn(oe,yt)+Mn(qt,Mt)+me,Ye=Mn(oe,En)+Mn(qt,ei)+me+14+3*oi+Mn(mr,Or)+2*mr[16]+3*mr[17]+7*mr[18];if(Le>=0&&ye<=we&&ye<=Ye)return Xe(pt,fn,Bt.subarray(Le,Le+Je));var tn,yn,on,Dn;if(_e(pt,fn,1+(Ye<we)),fn+=2,Ye<we){tn=dt(En,We,0),yn=En,on=dt(ei,wi,0),Dn=ei;var Rn=dt(Or,qn,0);_e(pt,fn,zi-257),_e(pt,fn+5,lo-1),_e(pt,fn+10,oi-4),fn+=14;for(var Di=0;Di<oi;++Di)_e(pt,fn+3*Di,Or[ee[Di]]);fn+=3*oi;for(var ti=[gi,Lr],ze=0;ze<2;++ze)for(var cn=ti[ze],Di=0;Di<cn.length;++Di){var vn=cn[Di]&31;_e(pt,fn,Rn[vn]),fn+=Or[vn],vn>15&&(_e(pt,fn,cn[Di]>>5&127),fn+=cn[Di]>>12)}}else tn=jt,yn=yt,on=ae,Dn=Mt;for(var Di=0;Di<Ce;++Di){var Gn=_t[Di];if(Gn>255){var vn=Gn>>18&31;xe(pt,fn,tn[vn+257]),fn+=yn[vn+257],vn>7&&(_e(pt,fn,Gn>>23&31),fn+=Et[vn]);var Yn=Gn&31;xe(pt,fn,on[Yn]),fn+=Dn[Yn],Yn>3&&(xe(pt,fn,Gn>>5&8191),fn+=Tt[Yn])}else xe(pt,fn,tn[Gn]),fn+=yn[Gn]}return xe(pt,fn,tn[256]),fn+yn[256]},Xn=new le([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),pi=new De(0),$n=function(Bt,pt,St,_t,oe,qt){var me=qt.z||Bt.length,Ce=new De(_t+me+5*(1+Math.ceil(me/7e3))+oe),Le=Ce.subarray(_t,Ce.length-oe),Je=qt.l,fn=(qt.r||0)&7;if(pt){fn&&(Le[0]=qt.r>>3);for(var gn=Xn[pt-1],En=gn>>13,We=gn&8191,vi=(1<<St)-1,ei=qt.p||new re(32768),wi=qt.h||new re(vi+1),Hn=Math.ceil(St/3),gi=2*Hn,zi=function(ro){return(Bt[ro]^Bt[ro+1]<<Hn^Bt[ro+2]<<gi)&vi},or=new le(25e3),Lr=new re(288),lo=new re(32),mr=0,Di=0,Cr=qt.i||0,Or=0,qn=qt.w||0,oi=0;Cr+2<me;++Cr){var ye=zi(Cr),we=Cr&32767,Ye=wi[ye];if(ei[we]=Ye,wi[ye]=we,qn<=Cr){var tn=me-Cr;if((mr>7e3||Or>24576)&&(tn>423||!Je)){fn=In(Bt,Le,0,or,Lr,lo,Di,Or,oi,Cr-oi,fn),Or=mr=Di=0,oi=Cr;for(var yn=0;yn<286;++yn)Lr[yn]=0;for(var yn=0;yn<30;++yn)lo[yn]=0}var on=2,Dn=0,Rn=We,ti=we-Ye&32767;if(tn>2&&ye==zi(Cr-ti))for(var ze=Math.min(En,tn)-1,cn=Math.min(32767,Cr),vn=Math.min(258,tn);ti<=cn&&--Rn&&we!=Ye;){if(Bt[Cr+on]==Bt[Cr+on-ti]){for(var Gn=0;Gn<vn&&Bt[Cr+Gn]==Bt[Cr+Gn-ti];++Gn);if(Gn>on){if(on=Gn,Dn=ti,Gn>ze)break;for(var Yn=Math.min(ti,Gn-2),ri=0,yn=0;yn<Yn;++yn){var Fi=Cr-ti+yn&32767,ci=ei[Fi],Ji=Fi-ci&32767;Ji>ri&&(ri=Ji,Ye=Fi)}}}we=Ye,Ye=ei[we],ti+=we-Ye&32767}if(Dn){or[Or++]=268435456|Jt[on]<<18|tt[Dn];var Yi=Jt[on]&31,Ar=tt[Dn]&31;Di+=Et[Yi]+Tt[Ar],++Lr[257+Yi],++lo[Ar],qn=Cr+on,++mr}else or[Or++]=Bt[Cr],++Lr[Bt[Cr]]}}for(Cr=Math.max(Cr,qn);Cr<me;++Cr)or[Or++]=Bt[Cr],++Lr[Bt[Cr]];fn=In(Bt,Le,Je,or,Lr,lo,Di,Or,oi,Cr-oi,fn),Je||(qt.r=fn&7|Le[fn/8|0]<<3,fn-=7,qt.h=wi,qt.p=ei,qt.i=Cr,qt.w=qn)}else{for(var Cr=qt.w||0;Cr<me+Je;Cr+=65535){var Fr=Cr+65535;Fr>=me&&(Le[fn/8|0]=Je,Fr=me),fn=Xe(Le,fn+1,Bt.subarray(Cr,Fr))}qt.i=me}return Vt(Ce,0,_t+Ke(fn)+oe)},bi=null,sn=function(){var Bt=-1;return{p:function(pt){for(var St=Bt,_t=0;_t<pt.length;++_t)St=bi[St&255^pt[_t]]^St>>>8;Bt=St},d:function(){return~Bt}}},Li=function(){var Bt=1,pt=0;return{p:function(St){for(var _t=Bt,oe=pt,qt=St.length|0,me=0;me!=qt;){for(var Ce=Math.min(me+2655,qt);me<Ce;++me)oe+=_t+=St[me];_t=(_t&65535)+15*(_t>>16),oe=(oe&65535)+15*(oe>>16)}Bt=_t,pt=oe},d:function(){return Bt%=65521,pt%=65521,(Bt&255)<<24|(Bt&65280)<<8|(pt&255)<<8|pt>>8}}},ji=function(Bt,pt,St,_t,oe){if(!oe&&(oe={l:1},pt.dictionary)){var qt=pt.dictionary.subarray(-32768),me=new De(qt.length+Bt.length);me.set(qt),me.set(Bt,qt.length),Bt=me,oe.w=qt.length}return $n(Bt,pt.level==null?6:pt.level,pt.mem==null?oe.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Bt.length)))*1.5):20:12+pt.mem,St,_t,oe)},ve=function(Bt,pt){var St={};for(var _t in Bt)St[_t]=Bt[_t];for(var _t in pt)St[_t]=pt[_t];return St},hn=function(Bt,pt,St){for(var _t=Bt(),oe=Bt.toString(),qt=oe.slice(oe.indexOf("[")+1,oe.lastIndexOf("]")).replace(/\s+/g,"").split(","),me=0;me<_t.length;++me){var Ce=_t[me],Le=qt[me];if(typeof Ce=="function"){pt+=";"+Le+"=";var Je=Ce.toString();if(Ce.prototype)if(Je.indexOf("[native code]")!=-1){var fn=Je.indexOf(" ",8)+1;pt+=Je.slice(fn,Je.indexOf("(",fn))}else{pt+=Je;for(var gn in Ce.prototype)pt+=";"+Le+".prototype."+gn+"="+Ce.prototype[gn].toString()}else pt+=Je}else St[Le]=Ce}return pt},Ae=null,Ot=function(Bt){var pt=[];for(var St in Bt)Bt[St].buffer&&pt.push((Bt[St]=new Bt[St].constructor(Bt[St])).buffer);return pt},Ft=function(Bt,pt,St,_t){if(!Ae[St]){for(var oe="",qt={},me=Bt.length-1,Ce=0;Ce<me;++Ce)oe=hn(Bt[Ce],oe,qt);Ae[St]={c:hn(Bt[me],oe,qt),e:qt}}var Le=ve({},Ae[St].e);return se(Ae[St].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+pt.toString()+"}",St,Le,Ot(Le),_t)},Kt=function(){return[De,re,le,Et,Tt,ee,Gt,et,Rt,he,lt,Ge,dt,pe,Te,ne,Ke,Vt,Oe,Ve,Is,Pt,mt]},Ee=function(){return[De,re,le,Et,Tt,ee,Jt,tt,jt,yt,ae,Mt,lt,Xn,pi,dt,_e,xe,ie,be,Fn,Mn,Xe,In,Ke,Vt,$n,ji,to,Pt]},je=function(){return[li,pr,xn,sn,bi]},ce=function(){return[Qi,Wi]},Be=function(){return[xr,xn,Li]},$t=function(){return[qr]},Pt=function(Bt){return postMessage(Bt,[Bt.buffer])},mt=function(Bt){return Bt&&{out:Bt.size&&new De(Bt.size),dictionary:Bt.dictionary}},Zt=function(Bt,pt,St,_t,oe,qt){var me=Ft(St,_t,oe,function(Ce,Le){me.terminate(),qt(Ce,Le)});return me.postMessage([Bt,pt],pt.consume?[Bt.buffer]:[]),function(){me.terminate()}},Se=function(Bt){return Bt.ondata=function(pt,St){return postMessage([pt,St],[pt.buffer])},function(pt){pt.data.length?(Bt.push(pt.data[0],pt.data[1]),postMessage([pt.data[0].length])):Bt.flush()}},Dt=function(Bt,pt,St,_t,oe,qt,me){var Ce,Le=Ft(Bt,_t,oe,function(Je,fn){Je?(Le.terminate(),pt.ondata.call(pt,Je)):Array.isArray(fn)?fn.length==1?(pt.queuedSize-=fn[0],pt.ondrain&&pt.ondrain(fn[0])):(fn[1]&&Le.terminate(),pt.ondata.call(pt,Je,fn[0],fn[1])):me(fn)});Le.postMessage(St),pt.queuedSize=0,pt.push=function(Je,fn){pt.ondata||Oe(5),Ce&&pt.ondata(Oe(4,0,1),null,!!fn),pt.queuedSize+=Je.length,Le.postMessage([Je,Ce=fn],[Je.buffer])},pt.terminate=function(){Le.terminate()},qt&&(pt.flush=function(){Le.postMessage([])})},Ie=function(Bt,pt){return Bt[pt]|Bt[pt+1]<<8},nn=function(Bt,pt){return(Bt[pt]|Bt[pt+1]<<8|Bt[pt+2]<<16|Bt[pt+3]<<24)>>>0},zn=function(Bt,pt){return nn(Bt,pt)+nn(Bt,pt+4)*4294967296},xn=function(Bt,pt,St){for(;St;++pt)Bt[pt]=St,St>>>=8},li=function(Bt,pt){var St=pt.filename;if(Bt[0]=31,Bt[1]=139,Bt[2]=8,Bt[8]=pt.level<2?4:pt.level==9?2:0,Bt[9]=3,pt.mtime!=0&&xn(Bt,4,Math.floor(new Date(pt.mtime||Date.now())/1e3)),St){Bt[3]=8;for(var _t=0;_t<=St.length;++_t)Bt[_t+10]=St.charCodeAt(_t)}},Qi=function(Bt){(Bt[0]!=31||Bt[1]!=139||Bt[2]!=8)&&Oe(6,"invalid gzip data");var pt=Bt[3],St=10;pt&4&&(St+=(Bt[10]|Bt[11]<<8)+2);for(var _t=(pt>>3&1)+(pt>>4&1);_t>0;_t-=!Bt[St++]);return St+(pt&2)},Wi=function(Bt){var pt=Bt.length;return(Bt[pt-4]|Bt[pt-3]<<8|Bt[pt-2]<<16|Bt[pt-1]<<24)>>>0},pr=function(Bt){return 10+(Bt.filename?Bt.filename.length+1:0)},xr=function(Bt,pt){var St=pt.level,_t=St==0?0:St<6?1:St==9?3:2;if(Bt[0]=120,Bt[1]=_t<<6|(pt.dictionary&&32),Bt[1]|=31-(Bt[0]<<8|Bt[1])%31,pt.dictionary){var oe=Li();oe.p(pt.dictionary),xn(Bt,2,oe.d())}},qr=function(Bt,pt){return((Bt[0]&15)!=8||Bt[0]>>4>7||(Bt[0]<<8|Bt[1])%31)&&Oe(6,"invalid zlib data"),(Bt[1]>>5&1)==+!pt&&Oe(6,"invalid zlib data: "+(Bt[1]&32?"need":"unexpected")+" dictionary"),(Bt[1]>>3&4)+2};function Vr(Bt,pt){return typeof Bt=="function"&&(pt=Bt,Bt={}),this.ondata=pt,Bt}var Jr=null,Ir=null;function Xr(Bt,pt,St){return St||(St=pt,pt={}),typeof St!="function"&&Oe(7),Zt(Bt,pt,[Ee],function(_t){return Pt(to(_t.data[0],_t.data[1]))},0,St)}function to(Bt,pt){return ji(Bt,pt||{},0,0)}var ho=null,cs=null;function no(Bt,pt,St){return St||(St=pt,pt={}),typeof St!="function"&&Oe(7),Zt(Bt,pt,[Kt],function(_t){return Pt(Is(_t.data[0],mt(_t.data[1])))},1,St)}function Is(Bt,pt){return Ve(Bt,{i:2},pt&&pt.out,pt&&pt.dictionary)}var So=null,Yt=null;function ai(Bt,pt,St){return St||(St=pt,pt={}),typeof St!="function"&&Oe(7),Zt(Bt,pt,[Ee,je,function(){return[Jo]}],function(_t){return Pt(Jo(_t.data[0],_t.data[1]))},2,St)}function Jo(Bt,pt){pt||(pt={});var St=sn(),_t=Bt.length;St.p(Bt);var oe=ji(Bt,pt,pr(pt),8),qt=oe.length;return li(oe,pt),xn(oe,qt-8,St.d()),xn(oe,qt-4,_t),oe}var sa=null,xa=null;function va(Bt,pt,St){return St||(St=pt,pt={}),typeof St!="function"&&Oe(7),Zt(Bt,pt,[Kt,ce,function(){return[Zs]}],function(_t){return Pt(Zs(_t.data[0],_t.data[1]))},3,St)}function Zs(Bt,pt){var St=Qi(Bt);return St+8>Bt.length&&Oe(6,"invalid gzip data"),Ve(Bt.subarray(St,-8),{i:2},pt&&pt.out||new De(Wi(Bt)),pt&&pt.dictionary)}var Qr=null,Vn=null;function Qn(Bt,pt,St){return St||(St=pt,pt={}),typeof St!="function"&&Oe(7),Zt(Bt,pt,[Ee,Be,function(){return[kn]}],function(_t){return Pt(kn(_t.data[0],_t.data[1]))},4,St)}function kn(Bt,pt){pt||(pt={});var St=Li();St.p(Bt);var _t=ji(Bt,pt,pt.dictionary?6:2,4);return xr(_t,pt),xn(_t,_t.length-4,St.d()),_t}var rn=null,hi=null;function Ci(Bt,pt,St){return St||(St=pt,pt={}),typeof St!="function"&&Oe(7),Zt(Bt,pt,[Kt,$t,function(){return[bn]}],function(_t){return Pt(bn(_t.data[0],mt(_t.data[1])))},5,St)}function bn(Bt,pt){return Ve(Bt.subarray(qr(Bt,pt&&pt.dictionary),-4),{i:2},pt&&pt.out,pt&&pt.dictionary)}var Ne=null,Bn=null;function _n(Bt,pt,St){return St||(St=pt,pt={}),typeof St!="function"&&Oe(7),Bt[0]==31&&Bt[1]==139&&Bt[2]==8?va(Bt,pt,St):(Bt[0]&15)!=8||Bt[0]>>4>7||(Bt[0]<<8|Bt[1])%31?no(Bt,pt,St):Ci(Bt,pt,St)}function Ii(Bt,pt){return Bt[0]==31&&Bt[1]==139&&Bt[2]==8?Zs(Bt,pt):(Bt[0]&15)!=8||Bt[0]>>4>7||(Bt[0]<<8|Bt[1])%31?Is(Bt,pt):bn(Bt,pt)}var ni=function(Bt,pt,St,_t){for(var oe in Bt){var qt=Bt[oe],me=pt+oe,Ce=_t;Array.isArray(qt)&&(Ce=ve(_t,qt[1]),qt=qt[0]),qt instanceof De?St[me]=[qt,Ce]:(St[me+="/"]=[new De(0),Ce],ni(qt,me,St,_t))}},mn=typeof TextEncoder!="undefined"&&new TextEncoder,Ai=typeof TextDecoder!="undefined"&&new TextDecoder,Mi=0;try{Ai.decode(pi,{stream:!0}),Mi=1}catch(Bt){}var er=function(Bt){for(var pt="",St=0;;){var _t=Bt[St++],oe=(_t>127)+(_t>223)+(_t>239);if(St+oe>Bt.length)return{s:pt,r:Vt(Bt,St-1)};oe?oe==3?(_t=((_t&15)<<18|(Bt[St++]&63)<<12|(Bt[St++]&63)<<6|Bt[St++]&63)-65536,pt+=String.fromCharCode(55296|_t>>10,56320|_t&1023)):oe&1?pt+=String.fromCharCode((_t&31)<<6|Bt[St++]&63):pt+=String.fromCharCode((_t&15)<<12|(Bt[St++]&63)<<6|Bt[St++]&63):pt+=String.fromCharCode(_t)}},On=null,Si=null;function Pr(Bt,pt){if(pt){for(var St=new De(Bt.length),_t=0;_t<Bt.length;++_t)St[_t]=Bt.charCodeAt(_t);return St}if(mn)return mn.encode(Bt);for(var oe=Bt.length,qt=new De(Bt.length+(Bt.length>>1)),me=0,Ce=function(fn){qt[me++]=fn},_t=0;_t<oe;++_t){if(me+5>qt.length){var Le=new De(me+8+(oe-_t<<1));Le.set(qt),qt=Le}var Je=Bt.charCodeAt(_t);Je<128||pt?Ce(Je):Je<2048?(Ce(192|Je>>6),Ce(128|Je&63)):Je>55295&&Je<57344?(Je=65536+(Je&1047552)|Bt.charCodeAt(++_t)&1023,Ce(240|Je>>18),Ce(128|Je>>12&63),Ce(128|Je>>6&63),Ce(128|Je&63)):(Ce(224|Je>>12),Ce(128|Je>>6&63),Ce(128|Je&63))}return Vt(qt,0,me)}function rr(Bt,pt){if(pt){for(var St="",_t=0;_t<Bt.length;_t+=16384)St+=String.fromCharCode.apply(null,Bt.subarray(_t,_t+16384));return St}else{if(Ai)return Ai.decode(Bt);var oe=er(Bt),qt=oe.s,St=oe.r;return St.length&&Oe(8),qt}}var Kr=function(Bt){return Bt==1?3:Bt<6?2:Bt==9?1:0},sr=function(Bt,pt){return pt+30+Ie(Bt,pt+26)+Ie(Bt,pt+28)},Br=function(Bt,pt,St){var _t=Ie(Bt,pt+28),oe=rr(Bt.subarray(pt+46,pt+46+_t),!(Ie(Bt,pt+8)&2048)),qt=pt+46+_t,me=nn(Bt,pt+20),Ce=St&&me==4294967295?dr(Bt,qt):[me,nn(Bt,pt+24),nn(Bt,pt+42)],Le=Ce[0],Je=Ce[1],fn=Ce[2];return[Ie(Bt,pt+10),Le,Je,oe,qt+Ie(Bt,pt+30)+Ie(Bt,pt+32),fn]},dr=function(Bt,pt){for(;Ie(Bt,pt)!=1;pt+=4+Ie(Bt,pt+2));return[zn(Bt,pt+12),zn(Bt,pt+4),zn(Bt,pt+20)]},Er=function(Bt){var pt=0;if(Bt)for(var St in Bt){var _t=Bt[St].length;_t>65535&&Oe(9),pt+=_t+4}return pt},ao=function(Bt,pt,St,_t,oe,qt,me,Ce){var Le=_t.length,Je=St.extra,fn=Ce&&Ce.length,gn=Er(Je);xn(Bt,pt,me!=null?33639248:67324752),pt+=4,me!=null&&(Bt[pt++]=20,Bt[pt++]=St.os),Bt[pt]=20,pt+=2,Bt[pt++]=St.flag<<1|(qt<0&&8),Bt[pt++]=oe&&8,Bt[pt++]=St.compression&255,Bt[pt++]=St.compression>>8;var En=new Date(St.mtime==null?Date.now():St.mtime),We=En.getFullYear()-1980;if((We<0||We>119)&&Oe(10),xn(Bt,pt,We<<25|En.getMonth()+1<<21|En.getDate()<<16|En.getHours()<<11|En.getMinutes()<<5|En.getSeconds()>>1),pt+=4,qt!=-1&&(xn(Bt,pt,St.crc),xn(Bt,pt+4,qt<0?-qt-2:qt),xn(Bt,pt+8,St.size)),xn(Bt,pt+12,Le),xn(Bt,pt+14,gn),pt+=16,me!=null&&(xn(Bt,pt,fn),xn(Bt,pt+6,St.attrs),xn(Bt,pt+10,me),pt+=14),Bt.set(_t,pt),pt+=Le,gn)for(var vi in Je){var ei=Je[vi],wi=ei.length;xn(Bt,pt,+vi),xn(Bt,pt+2,wi),Bt.set(ei,pt+4),pt+=4+wi}return fn&&(Bt.set(Ce,pt),pt+=fn),pt},Xi=function(Bt,pt,St,_t,oe){xn(Bt,pt,101010256),xn(Bt,pt+8,St),xn(Bt,pt+10,St),xn(Bt,pt+12,_t),xn(Bt,pt+16,oe)},yr=null,Lo=null,xs=null,Uo=null;function jn(Bt,pt,St){St||(St=pt,pt={}),typeof St!="function"&&Oe(7);var _t={};ni(Bt,"",_t,pt);var oe=Object.keys(_t),qt=oe.length,me=0,Ce=0,Le=qt,Je=new Array(qt),fn=[],gn=function(){for(var wi=0;wi<fn.length;++wi)fn[wi]()},En=function(wi,Hn){yi(function(){St(wi,Hn)})};yi(function(){En=St});var We=function(){var wi=new De(Ce+22),Hn=me,gi=Ce-me;Ce=0;for(var zi=0;zi<Le;++zi){var or=Je[zi];try{var Lr=or.c.length;ao(wi,Ce,or,or.f,or.u,Lr);var lo=30+or.f.length+Er(or.extra),mr=Ce+lo;wi.set(or.c,mr),ao(wi,me,or,or.f,or.u,Lr,Ce,or.m),me+=16+lo+(or.m?or.m.length:0),Ce=mr+Lr}catch(Di){return En(Di,null)}}Xi(wi,me,Je.length,gi,Hn),En(null,wi)};qt||We();for(var vi=function(wi){var Hn=oe[wi],gi=_t[Hn],zi=gi[0],or=gi[1],Lr=sn(),lo=zi.length;Lr.p(zi);var mr=Pr(Hn),Di=mr.length,Cr=or.comment,Or=Cr&&Pr(Cr),qn=Or&&Or.length,oi=Er(or.extra),ye=or.level==0?0:8,we=function(Ye,tn){if(Ye)gn(),En(Ye,null);else{var yn=tn.length;Je[wi]=ve(or,{size:lo,crc:Lr.d(),c:tn,f:mr,m:Or,u:Di!=Hn.length||Or&&Cr.length!=qn,compression:ye}),me+=30+Di+oi+yn,Ce+=76+2*(Di+oi)+(qn||0)+yn,--qt||We()}};if(Di>65535&&we(Oe(11,0,1),null),!ye)we(null,zi);else if(lo<16e4)try{we(null,to(zi,or))}catch(Ye){we(Ye,null)}else fn.push(Xr(zi,or,we))},ei=0;ei<Le;++ei)vi(ei);return gn}function Tr(Bt,pt){pt||(pt={});var St={},_t=[];ni(Bt,"",St,pt);var oe=0,qt=0;for(var me in St){var Ce=St[me],Le=Ce[0],Je=Ce[1],fn=Je.level==0?0:8,gn=Pr(me),En=gn.length,We=Je.comment,vi=We&&Pr(We),ei=vi&&vi.length,wi=Er(Je.extra);En>65535&&Oe(11);var Hn=fn?to(Le,Je):Le,gi=Hn.length,zi=sn();zi.p(Le),_t.push(ve(Je,{size:Le.length,crc:zi.d(),c:Hn,f:gn,m:vi,u:En!=me.length||vi&&We.length!=ei,o:oe,compression:fn})),oe+=30+En+wi+gi,qt+=76+2*(En+wi)+(ei||0)+gi}for(var or=new De(qt+22),Lr=oe,lo=qt-oe,mr=0;mr<_t.length;++mr){var gn=_t[mr];ao(or,gn.o,gn,gn.f,gn.u,gn.c.length);var Di=30+gn.f.length+Er(gn.extra);or.set(gn.c,gn.o+Di),ao(or,oe,gn,gn.f,gn.u,gn.c.length,gn.o,gn.m),oe+=16+Di+(gn.m?gn.m.length:0)}return Xi(or,oe,_t.length,lo,Lr),or}var so=null,_r=null,ns=null,Oo=null,yi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(Bt){Bt()};function Bo(Bt,pt,St){St||(St=pt,pt={}),typeof St!="function"&&Oe(7);var _t=[],oe=function(){for(var wi=0;wi<_t.length;++wi)_t[wi]()},qt={},me=function(wi,Hn){yi(function(){St(wi,Hn)})};yi(function(){me=St});for(var Ce=Bt.length-22;nn(Bt,Ce)!=101010256;--Ce)if(!Ce||Bt.length-Ce>65558)return me(Oe(13,0,1),null),oe;var Le=Ie(Bt,Ce+8);if(Le){var Je=Le,fn=nn(Bt,Ce+16),gn=fn==4294967295||Je==65535;if(gn){var En=nn(Bt,Ce-12);gn=nn(Bt,En)==101075792,gn&&(Je=Le=nn(Bt,En+32),fn=nn(Bt,En+48))}for(var We=pt&&pt.filter,vi=function(wi){var Hn=Br(Bt,fn,gn),gi=Hn[0],zi=Hn[1],or=Hn[2],Lr=Hn[3],lo=Hn[4],mr=Hn[5],Di=sr(Bt,mr);fn=lo;var Cr=function(qn,oi){qn?(oe(),me(qn,null)):(oi&&(qt[Lr]=oi),--Le||me(null,qt))};if(!We||We({name:Lr,size:zi,originalSize:or,compression:gi}))if(!gi)Cr(null,Vt(Bt,Di,Di+zi));else if(gi==8){var Or=Bt.subarray(Di,Di+zi);if(or<524288||zi>.8*or)try{Cr(null,Is(Or,{out:new De(or)}))}catch(qn){Cr(qn,null)}else _t.push(no(Or,{size:or},Cr))}else Cr(Oe(14,"unknown compression type "+gi,1),null);else Cr(null,null)},ei=0;ei<Je;++ei)vi(ei)}else me(null,{});return oe}function Hr(Bt,pt){for(var St={},_t=Bt.length-22;nn(Bt,_t)!=101010256;--_t)(!_t||Bt.length-_t>65558)&&Oe(13);var oe=Ie(Bt,_t+8);if(!oe)return{};var qt=nn(Bt,_t+16),me=qt==4294967295||oe==65535;if(me){var Ce=nn(Bt,_t-12);me=nn(Bt,Ce)==101075792,me&&(oe=nn(Bt,Ce+32),qt=nn(Bt,Ce+48))}for(var Le=pt&&pt.filter,Je=0;Je<oe;++Je){var fn=Br(Bt,qt,me),gn=fn[0],En=fn[1],We=fn[2],vi=fn[3],ei=fn[4],wi=fn[5],Hn=sr(Bt,wi);qt=ei,(!Le||Le({name:vi,size:En,originalSize:We,compression:gn}))&&(gn?gn==8?St[vi]=Is(Bt.subarray(Hn,Hn+En),{out:new De(We)}):Oe(14,"unknown compression type "+gn):St[vi]=Vt(Bt,Hn,Hn+En))}return St}var kr=function(){return typeof window!="undefined"?window:typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:this}();function Bi(){kr.console&&typeof kr.console.log=="function"&&kr.console.log.apply(kr.console,arguments)}var Po={log:Bi,warn:function(Bt){kr.console&&(typeof kr.console.warn=="function"?kr.console.warn.apply(kr.console,arguments):Bi.call(null,arguments))},error:function(Bt){kr.console&&(typeof kr.console.error=="function"?kr.console.error.apply(kr.console,arguments):Bi(Bt))}};function Pi(Bt,pt,St){var _t=new XMLHttpRequest;_t.open("GET",Bt),_t.responseType="blob",_t.onload=function(){Xs(_t.response,pt,St)},_t.onerror=function(){Po.error("could not download file")},_t.send()}function Xo(Bt){var pt=new XMLHttpRequest;pt.open("HEAD",Bt,!1);try{pt.send()}catch(St){}return pt.status>=200&&pt.status<=299}function ha(Bt){try{Bt.dispatchEvent(new MouseEvent("click"))}catch(St){var pt=document.createEvent("MouseEvents");pt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Bt.dispatchEvent(pt)}}var fs,ba,Xs=kr.saveAs||((typeof window=="undefined"?"undefined":(0,Lt.Z)(window))!=="object"||window!==kr?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Bt,pt,St){var _t=kr.URL||kr.webkitURL,oe=document.createElement("a");pt=pt||Bt.name||"download",oe.download=pt,oe.rel="noopener",typeof Bt=="string"?(oe.href=Bt,oe.origin!==location.origin?Xo(oe.href)?Pi(Bt,pt,St):ha(oe,oe.target="_blank"):ha(oe)):(oe.href=_t.createObjectURL(Bt),setTimeout(function(){_t.revokeObjectURL(oe.href)},4e4),setTimeout(function(){ha(oe)},0))}:"msSaveOrOpenBlob"in navigator?function(Bt,pt,St){if(pt=pt||Bt.name||"download",typeof Bt=="string")if(Xo(Bt))Pi(Bt,pt,St);else{var _t=document.createElement("a");_t.href=Bt,_t.target="_blank",setTimeout(function(){ha(_t)})}else navigator.msSaveOrOpenBlob(function(oe,qt){return qt===void 0?qt={autoBom:!1}:(0,Lt.Z)(qt)!=="object"&&(Po.warn("Deprecated: Expected third argument to be a object"),qt={autoBom:!qt}),qt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(oe.type)?new Blob(["\uFEFF",oe],{type:oe.type}):oe}(Bt,St),pt)}:function(Bt,pt,St,_t){if((_t=_t||open("","_blank"))&&(_t.document.title=_t.document.body.innerText="downloading..."),typeof Bt=="string")return Pi(Bt,pt,St);var oe=Bt.type==="application/octet-stream",qt=/constructor/i.test(kr.HTMLElement)||kr.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||oe&&qt)&&(typeof FileReader=="undefined"?"undefined":(0,Lt.Z)(FileReader))==="object"){var Ce=new FileReader;Ce.onloadend=function(){var fn=Ce.result;fn=me?fn:fn.replace(/^data:[^;]*;/,"data:attachment/file;"),_t?_t.location.href=fn:location=fn,_t=null},Ce.readAsDataURL(Bt)}else{var Le=kr.URL||kr.webkitURL,Je=Le.createObjectURL(Bt);_t?_t.location=Je:location.href=Je,_t=null,setTimeout(function(){Le.revokeObjectURL(Je)},4e4)}});function bo(Bt){var pt;Bt=Bt||"",this.ok=!1,Bt.charAt(0)=="#"&&(Bt=Bt.substr(1,6)),Bt={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"}[Bt=(Bt=Bt.replace(/ /g,"")).toLowerCase()]||Bt;for(var St=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Ce){return[parseInt(Ce[1]),parseInt(Ce[2]),parseInt(Ce[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Ce){return[parseInt(Ce[1],16),parseInt(Ce[2],16),parseInt(Ce[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Ce){return[parseInt(Ce[1]+Ce[1],16),parseInt(Ce[2]+Ce[2],16),parseInt(Ce[3]+Ce[3],16)]}}],_t=0;_t<St.length;_t++){var oe=St[_t].re,qt=St[_t].process,me=oe.exec(Bt);me&&(pt=qt(me),this.r=pt[0],this.g=pt[1],this.b=pt[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 Ce=this.r.toString(16),Le=this.g.toString(16),Je=this.b.toString(16);return Ce.length==1&&(Ce="0"+Ce),Le.length==1&&(Le="0"+Le),Je.length==1&&(Je="0"+Je),"#"+Ce+Le+Je}}function jo(Bt,pt){var St=Bt[0],_t=Bt[1],oe=Bt[2],qt=Bt[3];St=us(St,_t,oe,qt,pt[0],7,-680876936),qt=us(qt,St,_t,oe,pt[1],12,-389564586),oe=us(oe,qt,St,_t,pt[2],17,606105819),_t=us(_t,oe,qt,St,pt[3],22,-1044525330),St=us(St,_t,oe,qt,pt[4],7,-176418897),qt=us(qt,St,_t,oe,pt[5],12,1200080426),oe=us(oe,qt,St,_t,pt[6],17,-1473231341),_t=us(_t,oe,qt,St,pt[7],22,-45705983),St=us(St,_t,oe,qt,pt[8],7,1770035416),qt=us(qt,St,_t,oe,pt[9],12,-1958414417),oe=us(oe,qt,St,_t,pt[10],17,-42063),_t=us(_t,oe,qt,St,pt[11],22,-1990404162),St=us(St,_t,oe,qt,pt[12],7,1804603682),qt=us(qt,St,_t,oe,pt[13],12,-40341101),oe=us(oe,qt,St,_t,pt[14],17,-1502002290),St=gr(St,_t=us(_t,oe,qt,St,pt[15],22,1236535329),oe,qt,pt[1],5,-165796510),qt=gr(qt,St,_t,oe,pt[6],9,-1069501632),oe=gr(oe,qt,St,_t,pt[11],14,643717713),_t=gr(_t,oe,qt,St,pt[0],20,-373897302),St=gr(St,_t,oe,qt,pt[5],5,-701558691),qt=gr(qt,St,_t,oe,pt[10],9,38016083),oe=gr(oe,qt,St,_t,pt[15],14,-660478335),_t=gr(_t,oe,qt,St,pt[4],20,-405537848),St=gr(St,_t,oe,qt,pt[9],5,568446438),qt=gr(qt,St,_t,oe,pt[14],9,-1019803690),oe=gr(oe,qt,St,_t,pt[3],14,-187363961),_t=gr(_t,oe,qt,St,pt[8],20,1163531501),St=gr(St,_t,oe,qt,pt[13],5,-1444681467),qt=gr(qt,St,_t,oe,pt[2],9,-51403784),oe=gr(oe,qt,St,_t,pt[7],14,1735328473),St=Ue(St,_t=gr(_t,oe,qt,St,pt[12],20,-1926607734),oe,qt,pt[5],4,-378558),qt=Ue(qt,St,_t,oe,pt[8],11,-2022574463),oe=Ue(oe,qt,St,_t,pt[11],16,1839030562),_t=Ue(_t,oe,qt,St,pt[14],23,-35309556),St=Ue(St,_t,oe,qt,pt[1],4,-1530992060),qt=Ue(qt,St,_t,oe,pt[4],11,1272893353),oe=Ue(oe,qt,St,_t,pt[7],16,-155497632),_t=Ue(_t,oe,qt,St,pt[10],23,-1094730640),St=Ue(St,_t,oe,qt,pt[13],4,681279174),qt=Ue(qt,St,_t,oe,pt[0],11,-358537222),oe=Ue(oe,qt,St,_t,pt[3],16,-722521979),_t=Ue(_t,oe,qt,St,pt[6],23,76029189),St=Ue(St,_t,oe,qt,pt[9],4,-640364487),qt=Ue(qt,St,_t,oe,pt[12],11,-421815835),oe=Ue(oe,qt,St,_t,pt[15],16,530742520),St=qo(St,_t=Ue(_t,oe,qt,St,pt[2],23,-995338651),oe,qt,pt[0],6,-198630844),qt=qo(qt,St,_t,oe,pt[7],10,1126891415),oe=qo(oe,qt,St,_t,pt[14],15,-1416354905),_t=qo(_t,oe,qt,St,pt[5],21,-57434055),St=qo(St,_t,oe,qt,pt[12],6,1700485571),qt=qo(qt,St,_t,oe,pt[3],10,-1894986606),oe=qo(oe,qt,St,_t,pt[10],15,-1051523),_t=qo(_t,oe,qt,St,pt[1],21,-2054922799),St=qo(St,_t,oe,qt,pt[8],6,1873313359),qt=qo(qt,St,_t,oe,pt[15],10,-30611744),oe=qo(oe,qt,St,_t,pt[6],15,-1560198380),_t=qo(_t,oe,qt,St,pt[13],21,1309151649),St=qo(St,_t,oe,qt,pt[4],6,-145523070),qt=qo(qt,St,_t,oe,pt[11],10,-1120210379),oe=qo(oe,qt,St,_t,pt[2],15,718787259),_t=qo(_t,oe,qt,St,pt[9],21,-343485551),Bt[0]=ts(St,Bt[0]),Bt[1]=ts(_t,Bt[1]),Bt[2]=ts(oe,Bt[2]),Bt[3]=ts(qt,Bt[3])}function ps(Bt,pt,St,_t,oe,qt){return pt=ts(ts(pt,Bt),ts(_t,qt)),ts(pt<<oe|pt>>>32-oe,St)}function us(Bt,pt,St,_t,oe,qt,me){return ps(pt&St|~pt&_t,Bt,pt,oe,qt,me)}function gr(Bt,pt,St,_t,oe,qt,me){return ps(pt&_t|St&~_t,Bt,pt,oe,qt,me)}function Ue(Bt,pt,St,_t,oe,qt,me){return ps(pt^St^_t,Bt,pt,oe,qt,me)}function qo(Bt,pt,St,_t,oe,qt,me){return ps(St^(pt|~_t),Bt,pt,oe,qt,me)}function Sa(Bt){var pt,St=Bt.length,_t=[1732584193,-271733879,-1732584194,271733878];for(pt=64;pt<=Bt.length;pt+=64)jo(_t,za(Bt.substring(pt-64,pt)));Bt=Bt.substring(pt-64);var oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(pt=0;pt<Bt.length;pt++)oe[pt>>2]|=Bt.charCodeAt(pt)<<(pt%4<<3);if(oe[pt>>2]|=128<<(pt%4<<3),pt>55)for(jo(_t,oe),pt=0;pt<16;pt++)oe[pt]=0;return oe[14]=8*St,jo(_t,oe),_t}function za(Bt){var pt,St=[];for(pt=0;pt<64;pt+=4)St[pt>>2]=Bt.charCodeAt(pt)+(Bt.charCodeAt(pt+1)<<8)+(Bt.charCodeAt(pt+2)<<16)+(Bt.charCodeAt(pt+3)<<24);return St}fs=kr.atob.bind(kr),ba=kr.btoa.bind(kr);var El="0123456789abcdef".split("");function ss(Bt){for(var pt="",St=0;St<4;St++)pt+=El[Bt>>8*St+4&15]+El[Bt>>8*St&15];return pt}function Vo(Bt){return String.fromCharCode((255&Bt)>>0,(65280&Bt)>>8,(16711680&Bt)>>16,(4278190080&Bt)>>24)}function bs(Bt){return Sa(Bt).map(Vo).join("")}var ia=function(Bt){for(var pt=0;pt<Bt.length;pt++)Bt[pt]=ss(Bt[pt]);return Bt.join("")}(Sa("hello"))!="5d41402abc4b2a76b9719d911017c592";function ts(Bt,pt){if(ia){var St=(65535&Bt)+(65535&pt);return(Bt>>16)+(pt>>16)+(St>>16)<<16|65535&St}return Bt+pt&4294967295}function Ea(Bt,pt){var St,_t,oe,qt;if(Bt!==St){for(var me=(oe=Bt,qt=1+(256/Bt.length>>0),new Array(qt+1).join(oe)),Ce=[],Le=0;Le<256;Le++)Ce[Le]=Le;var Je=0;for(Le=0;Le<256;Le++){var fn=Ce[Le];Je=(Je+fn+me.charCodeAt(Le))%256,Ce[Le]=Ce[Je],Ce[Je]=fn}St=Bt,_t=Ce}else Ce=_t;var gn=pt.length,En=0,We=0,vi="";for(Le=0;Le<gn;Le++)We=(We+(fn=Ce[En=(En+1)%256]))%256,Ce[En]=Ce[We],Ce[We]=fn,me=Ce[(Ce[En]+Ce[We])%256],vi+=String.fromCharCode(pt.charCodeAt(Le)^me);return vi}var Mo={print:4,modify:8,copy:16,"annot-forms":32};function io(Bt,pt,St,_t){this.v=1,this.r=2;var oe=192;Bt.forEach(function(Ce){if(Mo.perm!==void 0)throw new Error("Invalid permission: "+Ce);oe+=Mo[Ce]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var qt=(pt+this.padding).substr(0,32),me=(St+this.padding).substr(0,32);this.O=this.processOwnerPassword(qt,me),this.P=-(1+(255^oe)),this.encryptionKey=bs(qt+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(_t)).substr(0,5),this.U=Ea(this.encryptionKey,this.padding)}function Ko(Bt){if(/[^\u0000-\u00ff]/.test(Bt))throw new Error("Invalid PDF Name Object: "+Bt+", Only accept ASCII characters.");for(var pt="",St=Bt.length,_t=0;_t<St;_t++){var oe=Bt.charCodeAt(_t);oe<33||oe===35||oe===37||oe===40||oe===41||oe===47||oe===60||oe===62||oe===91||oe===93||oe===123||oe===125||oe>126?pt+="#"+("0"+oe.toString(16)).slice(-2):pt+=Bt[_t]}return pt}function Gi(Bt){if((0,Lt.Z)(Bt)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var pt={};this.subscribe=function(St,_t,oe){if(oe=oe||!1,typeof St!="string"||typeof _t!="function"||typeof oe!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");pt.hasOwnProperty(St)||(pt[St]={});var qt=Math.random().toString(35);return pt[St][qt]=[_t,!!oe],qt},this.unsubscribe=function(St){for(var _t in pt)if(pt[_t][St])return delete pt[_t][St],Object.keys(pt[_t]).length===0&&delete pt[_t],!0;return!1},this.publish=function(St){if(pt.hasOwnProperty(St)){var _t=Array.prototype.slice.call(arguments,1),oe=[];for(var qt in pt[St]){var me=pt[St][qt];try{me[0].apply(Bt,_t)}catch(Ce){kr.console&&Po.error("jsPDF PubSub Error",Ce.message,Ce)}me[1]&&oe.push(qt)}oe.length&&oe.forEach(this.unsubscribe)}},this.getTopics=function(){return pt}}function Ms(Bt){if(!(this instanceof Ms))return new Ms(Bt);var pt="opacity,stroke-opacity".split(",");for(var St in Bt)Bt.hasOwnProperty(St)&&pt.indexOf(St)>=0&&(this[St]=Bt[St]);this.id="",this.objectNumber=-1}function Gs(Bt,pt){this.gState=Bt,this.matrix=pt,this.id="",this.objectNumber=-1}function Fa(Bt,pt,St,_t,oe){if(!(this instanceof Fa))return new Fa(Bt,pt,St,_t,oe);this.type=Bt==="axial"?2:3,this.coords=pt,this.colors=St,Gs.call(this,_t,oe)}function Js(Bt,pt,St,_t,oe){if(!(this instanceof Js))return new Js(Bt,pt,St,_t,oe);this.boundingBox=Bt,this.xStep=pt,this.yStep=St,this.stream="",this.cloneIndex=0,Gs.call(this,_t,oe)}function Ho(Bt){var pt,St=typeof arguments[0]=="string"?arguments[0]:"p",_t=arguments[1],oe=arguments[2],qt=arguments[3],me=[],Ce=1,Le=16,Je="S",fn=null;(0,Lt.Z)(Bt=Bt||{})==="object"&&(St=Bt.orientation,_t=Bt.unit||_t,oe=Bt.format||oe,qt=Bt.compress||Bt.compressPdf||qt,(fn=Bt.encryption||null)!==null&&(fn.userPassword=fn.userPassword||"",fn.ownerPassword=fn.ownerPassword||"",fn.userPermissions=fn.userPermissions||[]),Ce=typeof Bt.userUnit=="number"?Math.abs(Bt.userUnit):1,Bt.precision!==void 0&&(pt=Bt.precision),Bt.floatPrecision!==void 0&&(Le=Bt.floatPrecision),Je=Bt.defaultPathOperation||"S"),me=Bt.filters||(qt===!0?["FlateEncode"]:me),_t=_t||"mm",St=(""+(St||"P")).toLowerCase();var gn=Bt.putOnlyUsedFonts||!1,En={},We={internal:{},__private__:{}};We.__private__.PubSub=Gi;var vi="1.3",ei=We.__private__.getPdfVersion=function(){return vi};We.__private__.setPdfVersion=function(fe){vi=fe};var wi={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]};We.__private__.getPageFormats=function(){return wi};var Hn=We.__private__.getPageFormat=function(fe){return wi[fe]};oe=oe||"a4";var gi={COMPAT:"compat",ADVANCED:"advanced"},zi=gi.COMPAT;function or(){this.saveGraphicsState(),Jn(new Ps(yo,0,0,-yo,0,$d()*yo).toString()+" cm"),this.setFontSize(this.getFontSize()/yo),Je="n",zi=gi.ADVANCED}function Lr(){this.restoreGraphicsState(),Je="S",zi=gi.COMPAT}var lo=We.__private__.combineFontStyleAndFontWeight=function(fe,wn){if(fe=="bold"&&wn=="normal"||fe=="bold"&&wn==400||fe=="normal"&&wn=="italic"||fe=="bold"&&wn=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return wn&&(fe=wn==400||wn==="normal"?fe==="italic"?"italic":"normal":wn!=700&&wn!=="bold"||fe!=="normal"?(wn==700?"bold":wn)+""+fe:"bold"),fe};We.advancedAPI=function(fe){var wn=zi===gi.COMPAT;return wn&&or.call(this),typeof fe!="function"||(fe(this),wn&&Lr.call(this)),this},We.compatAPI=function(fe){var wn=zi===gi.ADVANCED;return wn&&Lr.call(this),typeof fe!="function"||(fe(this),wn&&or.call(this)),this},We.isAdvancedAPI=function(){return zi===gi.ADVANCED};var mr,Di=function(fe){if(zi!==gi.ADVANCED)throw new Error(fe+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Cr=We.roundToPrecision=We.__private__.roundToPrecision=function(fe,wn){var xi=pt||wn;if(isNaN(fe)||isNaN(xi))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return fe.toFixed(xi).replace(/0+$/,"")};mr=We.hpf=We.__private__.hpf=typeof Le=="number"?function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(fe,Le)}:Le==="smart"?function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(fe,fe>-1&&fe<1?16:5)}:function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(fe,16)};var Or=We.f2=We.__private__.f2=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.f2");return Cr(fe,2)},qn=We.__private__.f3=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.f3");return Cr(fe,3)},oi=We.scale=We.__private__.scale=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.scale");return zi===gi.COMPAT?fe*yo:zi===gi.ADVANCED?fe:void 0},ye=function(fe){return zi===gi.COMPAT?$d()-fe:zi===gi.ADVANCED?fe:void 0},we=function(fe){return oi(ye(fe))};We.__private__.setPrecision=We.setPrecision=function(fe){typeof parseInt(fe,10)=="number"&&(pt=parseInt(fe,10))};var Ye,tn="00000000000000000000000000000000",yn=We.__private__.getFileId=function(){return tn},on=We.__private__.setFileId=function(fe){return tn=fe!==void 0&&/^[a-fA-F0-9]{32}$/.test(fe)?fe.toUpperCase():tn.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),fn!==null&&(Vu=new io(fn.userPermissions,fn.userPassword,fn.ownerPassword,tn)),tn};We.setFileId=function(fe){return on(fe),this},We.getFileId=function(){return yn()};var Dn=We.__private__.convertDateToPDFDate=function(fe){var wn=fe.getTimezoneOffset(),xi=wn<0?"+":"-",Hi=Math.floor(Math.abs(wn/60)),hr=Math.abs(wn%60),Ur=[xi,vn(Hi),"'",vn(hr),"'"].join("");return["D:",fe.getFullYear(),vn(fe.getMonth()+1),vn(fe.getDate()),vn(fe.getHours()),vn(fe.getMinutes()),vn(fe.getSeconds()),Ur].join("")},Rn=We.__private__.convertPDFDateToDate=function(fe){var wn=parseInt(fe.substr(2,4),10),xi=parseInt(fe.substr(6,2),10)-1,Hi=parseInt(fe.substr(8,2),10),hr=parseInt(fe.substr(10,2),10),Ur=parseInt(fe.substr(12,2),10),wo=parseInt(fe.substr(14,2),10);return new Date(wn,xi,Hi,hr,Ur,wo,0)},ti=We.__private__.setCreationDate=function(fe){var wn;if(fe===void 0&&(fe=new Date),fe instanceof Date)wn=Dn(fe);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(fe))throw new Error("Invalid argument passed to jsPDF.setCreationDate");wn=fe}return Ye=wn},ze=We.__private__.getCreationDate=function(fe){var wn=Ye;return fe==="jsDate"&&(wn=Rn(Ye)),wn};We.setCreationDate=function(fe){return ti(fe),this},We.getCreationDate=function(fe){return ze(fe)};var cn,vn=We.__private__.padd2=function(fe){return("0"+parseInt(fe)).slice(-2)},Gn=We.__private__.padd2Hex=function(fe){return("00"+(fe=fe.toString())).substr(fe.length)},Yn=0,ri=[],Fi=[],ci=0,Ji=[],Yi=[],Ar=!1,Fr=Fi,ro=function(){Yn=0,ci=0,Fi=[],ri=[],Ji=[],ka=Gl(),$a=Gl()};We.__private__.setCustomOutputDestination=function(fe){Ar=!0,Fr=fe};var Ti=function(fe){Ar||(Fr=fe)};We.__private__.resetCustomOutputDestination=function(){Ar=!1,Fr=Fi};var Jn=We.__private__.out=function(fe){return fe=fe.toString(),ci+=fe.length+1,Fr.push(fe),Fr},xo=We.__private__.write=function(fe){return Jn(arguments.length===1?fe.toString():Array.prototype.join.call(arguments," "))},br=We.__private__.getArrayBuffer=function(fe){for(var wn=fe.length,xi=new ArrayBuffer(wn),Hi=new Uint8Array(xi);wn--;)Hi[wn]=fe.charCodeAt(wn);return xi},ar=[["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]];We.__private__.getStandardFonts=function(){return ar};var lr=Bt.fontSize||16;We.__private__.setFontSize=We.setFontSize=function(fe){return lr=zi===gi.ADVANCED?fe/yo:fe,this};var nr,vr=We.__private__.getFontSize=We.getFontSize=function(){return zi===gi.COMPAT?lr:lr*yo},Zr=Bt.R2L||!1;We.__private__.setR2L=We.setR2L=function(fe){return Zr=fe,this},We.__private__.getR2L=We.getR2L=function(){return Zr};var co,po=We.__private__.setZoomMode=function(fe){var wn=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(fe))nr=fe;else if(isNaN(fe)){if(wn.indexOf(fe)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+fe+'" is not recognized.');nr=fe}else nr=parseInt(fe,10)};We.__private__.getZoomMode=function(){return nr};var Rr,Do=We.__private__.setPageMode=function(fe){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(fe)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+fe+'" is not recognized.');co=fe};We.__private__.getPageMode=function(){return co};var hs=We.__private__.setLayoutMode=function(fe){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(fe)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+fe+'" is not recognized.');Rr=fe};We.__private__.getLayoutMode=function(){return Rr},We.__private__.setDisplayMode=We.setDisplayMode=function(fe,wn,xi){return po(fe),hs(wn),Do(xi),this};var $o={title:"",subject:"",author:"",keywords:"",creator:""};We.__private__.getDocumentProperty=function(fe){if(Object.keys($o).indexOf(fe)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return $o[fe]},We.__private__.getDocumentProperties=function(){return $o},We.__private__.setDocumentProperties=We.setProperties=We.setDocumentProperties=function(fe){for(var wn in $o)$o.hasOwnProperty(wn)&&fe[wn]&&($o[wn]=fe[wn]);return this},We.__private__.setDocumentProperty=function(fe,wn){if(Object.keys($o).indexOf(fe)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return $o[fe]=wn};var is,yo,pa,Wo,rs,Cs={},qs={},Ua=[],$s={},Qo={},zo={},gs={},es=null,Os=0,oo=[],Go=new Gi(We),aa=Bt.hotfixes||[],Us={},zl={},Ml=[],Ps=function fe(wn,xi,Hi,hr,Ur,wo){if(!(this instanceof fe))return new fe(wn,xi,Hi,hr,Ur,wo);isNaN(wn)&&(wn=1),isNaN(xi)&&(xi=0),isNaN(Hi)&&(Hi=0),isNaN(hr)&&(hr=1),isNaN(Ur)&&(Ur=0),isNaN(wo)&&(wo=0),this._matrix=[wn,xi,Hi,hr,Ur,wo]};Object.defineProperty(Ps.prototype,"sx",{get:function(){return this._matrix[0]},set:function(fe){this._matrix[0]=fe}}),Object.defineProperty(Ps.prototype,"shy",{get:function(){return this._matrix[1]},set:function(fe){this._matrix[1]=fe}}),Object.defineProperty(Ps.prototype,"shx",{get:function(){return this._matrix[2]},set:function(fe){this._matrix[2]=fe}}),Object.defineProperty(Ps.prototype,"sy",{get:function(){return this._matrix[3]},set:function(fe){this._matrix[3]=fe}}),Object.defineProperty(Ps.prototype,"tx",{get:function(){return this._matrix[4]},set:function(fe){this._matrix[4]=fe}}),Object.defineProperty(Ps.prototype,"ty",{get:function(){return this._matrix[5]},set:function(fe){this._matrix[5]=fe}}),Object.defineProperty(Ps.prototype,"a",{get:function(){return this._matrix[0]},set:function(fe){this._matrix[0]=fe}}),Object.defineProperty(Ps.prototype,"b",{get:function(){return this._matrix[1]},set:function(fe){this._matrix[1]=fe}}),Object.defineProperty(Ps.prototype,"c",{get:function(){return this._matrix[2]},set:function(fe){this._matrix[2]=fe}}),Object.defineProperty(Ps.prototype,"d",{get:function(){return this._matrix[3]},set:function(fe){this._matrix[3]=fe}}),Object.defineProperty(Ps.prototype,"e",{get:function(){return this._matrix[4]},set:function(fe){this._matrix[4]=fe}}),Object.defineProperty(Ps.prototype,"f",{get:function(){return this._matrix[5]},set:function(fe){this._matrix[5]=fe}}),Object.defineProperty(Ps.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ps.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ps.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ps.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ps.prototype.join=function(fe){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(mr).join(fe)},Ps.prototype.multiply=function(fe){var wn=fe.sx*this.sx+fe.shy*this.shx,xi=fe.sx*this.shy+fe.shy*this.sy,Hi=fe.shx*this.sx+fe.sy*this.shx,hr=fe.shx*this.shy+fe.sy*this.sy,Ur=fe.tx*this.sx+fe.ty*this.shx+this.tx,wo=fe.tx*this.shy+fe.ty*this.sy+this.ty;return new Ps(wn,xi,Hi,hr,Ur,wo)},Ps.prototype.decompose=function(){var fe=this.sx,wn=this.shy,xi=this.shx,Hi=this.sy,hr=this.tx,Ur=this.ty,wo=Math.sqrt(fe*fe+wn*wn),ms=(fe/=wo)*xi+(wn/=wo)*Hi;xi-=fe*ms,Hi-=wn*ms;var Ys=Math.sqrt(xi*xi+Hi*Hi);return ms/=Ys,fe*(Hi/=Ys)<wn*(xi/=Ys)&&(fe=-fe,wn=-wn,ms=-ms,wo=-wo),{scale:new Ps(wo,0,0,Ys,0,0),translate:new Ps(1,0,0,1,hr,Ur),rotate:new Ps(fe,wn,-wn,fe,0,0),skew:new Ps(1,0,ms,1,0,0)}},Ps.prototype.toString=function(fe){return this.join(" ")},Ps.prototype.inversed=function(){var fe=this.sx,wn=this.shy,xi=this.shx,Hi=this.sy,hr=this.tx,Ur=this.ty,wo=1/(fe*Hi-wn*xi),ms=Hi*wo,Ys=-wn*wo,Ba=-xi*wo,Pa=fe*wo;return new Ps(ms,Ys,Ba,Pa,-ms*hr-Ba*Ur,-Ys*hr-Pa*Ur)},Ps.prototype.applyToPoint=function(fe){var wn=fe.x*this.sx+fe.y*this.shx+this.tx,xi=fe.x*this.shy+fe.y*this.sy+this.ty;return new Kc(wn,xi)},Ps.prototype.applyToRectangle=function(fe){var wn=this.applyToPoint(fe),xi=this.applyToPoint(new Kc(fe.x+fe.w,fe.y+fe.h));return new hA(wn.x,wn.y,xi.x-wn.x,xi.y-wn.y)},Ps.prototype.clone=function(){var fe=this.sx,wn=this.shy,xi=this.shx,Hi=this.sy,hr=this.tx,Ur=this.ty;return new Ps(fe,wn,xi,Hi,hr,Ur)},We.Matrix=Ps;var ua=We.matrixMult=function(fe,wn){return wn.multiply(fe)},Ul=new Ps(1,0,0,1,0,0);We.unitMatrix=We.identityMatrix=Ul;var fo=function(fe,wn){if(!Qo[fe]){var xi=(wn instanceof Fa?"Sh":"P")+(Object.keys($s).length+1).toString(10);wn.id=xi,Qo[fe]=xi,$s[xi]=wn,Go.publish("addPattern",wn)}};We.ShadingPattern=Fa,We.TilingPattern=Js,We.addShadingPattern=function(fe,wn){return Di("addShadingPattern()"),fo(fe,wn),this},We.beginTilingPattern=function(fe){Di("beginTilingPattern()"),bA(fe.boundingBox[0],fe.boundingBox[1],fe.boundingBox[2]-fe.boundingBox[0],fe.boundingBox[3]-fe.boundingBox[1],fe.matrix)},We.endTilingPattern=function(fe,wn){Di("endTilingPattern()"),wn.stream=Yi[cn].join(`
`),fo(fe,wn),Go.publish("endTilingPattern",wn),Ml.pop().restore()};var Ra=We.__private__.newObject=function(){var fe=Gl();return ta(fe,!0),fe},Gl=We.__private__.newObjectDeferred=function(){return Yn++,ri[Yn]=function(){return ci},Yn},ta=function(fe,wn){return wn=typeof wn=="boolean"&&wn,ri[fe]=ci,wn&&Jn(fe+" 0 obj"),fe},la=We.__private__.newAdditionalObject=function(){var fe={objId:Gl(),content:""};return Ji.push(fe),fe},ka=Gl(),$a=Gl(),ll=We.__private__.decodeColorString=function(fe){var wn=fe.split(" ");if(wn.length!==2||wn[1]!=="g"&&wn[1]!=="G")wn.length===5&&(wn[4]==="k"||wn[4]==="K")&&(wn=[(1-wn[0])*(1-wn[3]),(1-wn[1])*(1-wn[3]),(1-wn[2])*(1-wn[3]),"r"]);else{var xi=parseFloat(wn[0]);wn=[xi,xi,xi,"r"]}for(var Hi="#",hr=0;hr<3;hr++)Hi+=("0"+Math.floor(255*parseFloat(wn[hr])).toString(16)).slice(-2);return Hi},Rs=We.__private__.encodeColorString=function(fe){var wn;typeof fe=="string"&&(fe={ch1:fe});var xi=fe.ch1,Hi=fe.ch2,hr=fe.ch3,Ur=fe.ch4,wo=fe.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof xi=="string"&&xi.charAt(0)!=="#"){var ms=new bo(xi);if(ms.ok)xi=ms.toHex();else if(!/^\d*\.?\d*$/.test(xi))throw new Error('Invalid color "'+xi+'" passed to jsPDF.encodeColorString.')}if(typeof xi=="string"&&/^#[0-9A-Fa-f]{3}$/.test(xi)&&(xi="#"+xi[1]+xi[1]+xi[2]+xi[2]+xi[3]+xi[3]),typeof xi=="string"&&/^#[0-9A-Fa-f]{6}$/.test(xi)){var Ys=parseInt(xi.substr(1),16);xi=Ys>>16&255,Hi=Ys>>8&255,hr=255&Ys}if(Hi===void 0||Ur===void 0&&xi===Hi&&Hi===hr)if(typeof xi=="string")wn=xi+" "+wo[0];else switch(fe.precision){case 2:wn=Or(xi/255)+" "+wo[0];break;case 3:default:wn=qn(xi/255)+" "+wo[0]}else if(Ur===void 0||(0,Lt.Z)(Ur)==="object"){if(Ur&&!isNaN(Ur.a)&&Ur.a===0)return wn=["1.","1.","1.",wo[1]].join(" ");if(typeof xi=="string")wn=[xi,Hi,hr,wo[1]].join(" ");else switch(fe.precision){case 2:wn=[Or(xi/255),Or(Hi/255),Or(hr/255),wo[1]].join(" ");break;default:case 3:wn=[qn(xi/255),qn(Hi/255),qn(hr/255),wo[1]].join(" ")}}else if(typeof xi=="string")wn=[xi,Hi,hr,Ur,wo[2]].join(" ");else switch(fe.precision){case 2:wn=[Or(xi),Or(Hi),Or(hr),Or(Ur),wo[2]].join(" ");break;case 3:default:wn=[qn(xi),qn(Hi),qn(hr),qn(Ur),wo[2]].join(" ")}return wn},Ta=We.__private__.getFilters=function(){return me},Sl=We.__private__.putStream=function(fe){var wn=(fe=fe||{}).data||"",xi=fe.filters||Ta(),Hi=fe.alreadyAppliedFilters||[],hr=fe.addLength1||!1,Ur=wn.length,wo=fe.objectId,ms=function(Kl){return Kl};if(fn!==null&&wo===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");fn!==null&&(ms=Vu.encryptor(wo,0));var Ys={};xi===!0&&(xi=["FlateEncode"]);var Ba=fe.additionalKeyValues||[],Pa=(Ys=Ho.API.processDataByFilters!==void 0?Ho.API.processDataByFilters(wn,xi):{data:wn,reverseChain:[]}).reverseChain+(Array.isArray(Hi)?Hi.join(" "):Hi.toString());if(Ys.data.length!==0&&(Ba.push({key:"Length",value:Ys.data.length}),hr===!0&&Ba.push({key:"Length1",value:Ur})),Pa.length!=0)if(Pa.split("/").length-1==1)Ba.push({key:"Filter",value:Pa});else{Ba.push({key:"Filter",value:"["+Pa+"]"});for(var vs=0;vs<Ba.length;vs+=1)if(Ba[vs].key==="DecodeParms"){for(var iu=[],ru=0;ru<Ys.reverseChain.split("/").length-1;ru+=1)iu.push("null");iu.push(Ba[vs].value),Ba[vs].value="["+iu.join(" ")+"]"}}Jn("<<");for(var Ga=0;Ga<Ba.length;Ga++)Jn("/"+Ba[Ga].key+" "+Ba[Ga].value);Jn(">>"),Ys.data.length!==0&&(Jn("stream"),Jn(ms(Ys.data)),Jn("endstream"))},pu=We.__private__.putPage=function(fe){var wn=fe.number,xi=fe.data,Hi=fe.objId,hr=fe.contentsObjId;ta(Hi,!0),Jn("<</Type /Page"),Jn("/Parent "+fe.rootDictionaryObjId+" 0 R"),Jn("/Resources "+fe.resourceDictionaryObjId+" 0 R"),Jn("/MediaBox ["+parseFloat(mr(fe.mediaBox.bottomLeftX))+" "+parseFloat(mr(fe.mediaBox.bottomLeftY))+" "+mr(fe.mediaBox.topRightX)+" "+mr(fe.mediaBox.topRightY)+"]"),fe.cropBox!==null&&Jn("/CropBox ["+mr(fe.cropBox.bottomLeftX)+" "+mr(fe.cropBox.bottomLeftY)+" "+mr(fe.cropBox.topRightX)+" "+mr(fe.cropBox.topRightY)+"]"),fe.bleedBox!==null&&Jn("/BleedBox ["+mr(fe.bleedBox.bottomLeftX)+" "+mr(fe.bleedBox.bottomLeftY)+" "+mr(fe.bleedBox.topRightX)+" "+mr(fe.bleedBox.topRightY)+"]"),fe.trimBox!==null&&Jn("/TrimBox ["+mr(fe.trimBox.bottomLeftX)+" "+mr(fe.trimBox.bottomLeftY)+" "+mr(fe.trimBox.topRightX)+" "+mr(fe.trimBox.topRightY)+"]"),fe.artBox!==null&&Jn("/ArtBox ["+mr(fe.artBox.bottomLeftX)+" "+mr(fe.artBox.bottomLeftY)+" "+mr(fe.artBox.topRightX)+" "+mr(fe.artBox.topRightY)+"]"),typeof fe.userUnit=="number"&&fe.userUnit!==1&&Jn("/UserUnit "+fe.userUnit),Go.publish("putPage",{objId:Hi,pageContext:oo[wn],pageNumber:wn,page:xi}),Jn("/Contents "+hr+" 0 R"),Jn(">>"),Jn("endobj");var Ur=xi.join(`
`);return zi===gi.ADVANCED&&(Ur+=`
Q`),ta(hr,!0),Sl({data:Ur,filters:Ta(),objectId:hr}),Jn("endobj"),Hi},uu=We.__private__.putPages=function(){var fe,wn,xi=[];for(fe=1;fe<=Os;fe++)oo[fe].objId=Gl(),oo[fe].contentsObjId=Gl();for(fe=1;fe<=Os;fe++)xi.push(pu({number:fe,data:Yi[fe],objId:oo[fe].objId,contentsObjId:oo[fe].contentsObjId,mediaBox:oo[fe].mediaBox,cropBox:oo[fe].cropBox,bleedBox:oo[fe].bleedBox,trimBox:oo[fe].trimBox,artBox:oo[fe].artBox,userUnit:oo[fe].userUnit,rootDictionaryObjId:ka,resourceDictionaryObjId:$a}));ta(ka,!0),Jn("<</Type /Pages");var Hi="/Kids [";for(wn=0;wn<Os;wn++)Hi+=xi[wn]+" 0 R ";Jn(Hi+"]"),Jn("/Count "+Os),Jn(">>"),Jn("endobj"),Go.publish("postPutPages")},Ru=function(fe){Go.publish("putFont",{font:fe,out:Jn,newObject:Ra,putStream:Sl}),fe.isAlreadyPutted!==!0&&(fe.objectNumber=Ra(),Jn("<<"),Jn("/Type /Font"),Jn("/BaseFont /"+Ko(fe.postScriptName)),Jn("/Subtype /Type1"),typeof fe.encoding=="string"&&Jn("/Encoding /"+fe.encoding),Jn("/FirstChar 32"),Jn("/LastChar 255"),Jn(">>"),Jn("endobj"))},$u=function(){for(var fe in Cs)Cs.hasOwnProperty(fe)&&(gn===!1||gn===!0&&En.hasOwnProperty(fe))&&Ru(Cs[fe])},Ah=function(fe){fe.objectNumber=Ra();var wn=[];wn.push({key:"Type",value:"/XObject"}),wn.push({key:"Subtype",value:"/Form"}),wn.push({key:"BBox",value:"["+[mr(fe.x),mr(fe.y),mr(fe.x+fe.width),mr(fe.y+fe.height)].join(" ")+"]"}),wn.push({key:"Matrix",value:"["+fe.matrix.toString()+"]"});var xi=fe.pages[1].join(`
`);Sl({data:xi,additionalKeyValues:wn,objectId:fe.objectNumber}),Jn("endobj")},Yu=function(){for(var fe in Us)Us.hasOwnProperty(fe)&&Ah(Us[fe])},Ha=function(fe,wn){var xi,Hi=[],hr=1/(wn-1);for(xi=0;xi<1;xi+=hr)Hi.push(xi);if(Hi.push(1),fe[0].offset!=0){var Ur={offset:0,color:fe[0].color};fe.unshift(Ur)}if(fe[fe.length-1].offset!=1){var wo={offset:1,color:fe[fe.length-1].color};fe.push(wo)}for(var ms="",Ys=0,Ba=0;Ba<Hi.length;Ba++){for(xi=Hi[Ba];xi>fe[Ys+1].offset;)Ys++;var Pa=fe[Ys].offset,vs=(xi-Pa)/(fe[Ys+1].offset-Pa),iu=fe[Ys].color,ru=fe[Ys+1].color;ms+=Gn(Math.round((1-vs)*iu[0]+vs*ru[0]).toString(16))+Gn(Math.round((1-vs)*iu[1]+vs*ru[1]).toString(16))+Gn(Math.round((1-vs)*iu[2]+vs*ru[2]).toString(16))}return ms.trim()},Bu=function(fe,wn){wn||(wn=21);var xi=Ra(),Hi=Ha(fe.colors,wn),hr=[];hr.push({key:"FunctionType",value:"0"}),hr.push({key:"Domain",value:"[0.0 1.0]"}),hr.push({key:"Size",value:"["+wn+"]"}),hr.push({key:"BitsPerSample",value:"8"}),hr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),hr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Sl({data:Hi,additionalKeyValues:hr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:xi}),Jn("endobj"),fe.objectNumber=Ra(),Jn("<< /ShadingType "+fe.type),Jn("/ColorSpace /DeviceRGB");var Ur="/Coords ["+mr(parseFloat(fe.coords[0]))+" "+mr(parseFloat(fe.coords[1]))+" ";fe.type===2?Ur+=mr(parseFloat(fe.coords[2]))+" "+mr(parseFloat(fe.coords[3])):Ur+=mr(parseFloat(fe.coords[2]))+" "+mr(parseFloat(fe.coords[3]))+" "+mr(parseFloat(fe.coords[4]))+" "+mr(parseFloat(fe.coords[5])),Jn(Ur+="]"),fe.matrix&&Jn("/Matrix ["+fe.matrix.toString()+"]"),Jn("/Function "+xi+" 0 R"),Jn("/Extend [true true]"),Jn(">>"),Jn("endobj")},Rl=function(fe,wn){var xi=Gl(),Hi=Ra();wn.push({resourcesOid:xi,objectOid:Hi}),fe.objectNumber=Hi;var hr=[];hr.push({key:"Type",value:"/Pattern"}),hr.push({key:"PatternType",value:"1"}),hr.push({key:"PaintType",value:"1"}),hr.push({key:"TilingType",value:"1"}),hr.push({key:"BBox",value:"["+fe.boundingBox.map(mr).join(" ")+"]"}),hr.push({key:"XStep",value:mr(fe.xStep)}),hr.push({key:"YStep",value:mr(fe.yStep)}),hr.push({key:"Resources",value:xi+" 0 R"}),fe.matrix&&hr.push({key:"Matrix",value:"["+fe.matrix.toString()+"]"}),Sl({data:fe.stream,additionalKeyValues:hr,objectId:fe.objectNumber}),Jn("endobj")},il=function(fe){var wn;for(wn in $s)$s.hasOwnProperty(wn)&&($s[wn]instanceof Fa?Bu($s[wn]):$s[wn]instanceof Js&&Rl($s[wn],fe))},vh=function(fe){for(var wn in fe.objectNumber=Ra(),Jn("<<"),fe)switch(wn){case"opacity":Jn("/ca "+Or(fe[wn]));break;case"stroke-opacity":Jn("/CA "+Or(fe[wn]))}Jn(">>"),Jn("endobj")},Cc=function(){var fe;for(fe in zo)zo.hasOwnProperty(fe)&&vh(zo[fe])},yh=function(){for(var fe in Jn("/XObject <<"),Us)Us.hasOwnProperty(fe)&&Us[fe].objectNumber>=0&&Jn("/"+fe+" "+Us[fe].objectNumber+" 0 R");Go.publish("putXobjectDict"),Jn(">>")},rc=function(){Vu.oid=Ra(),Jn("<<"),Jn("/Filter /Standard"),Jn("/V "+Vu.v),Jn("/R "+Vu.r),Jn("/U <"+Vu.toHexString(Vu.U)+">"),Jn("/O <"+Vu.toHexString(Vu.O)+">"),Jn("/P "+Vu.P),Jn(">>"),Jn("endobj")},oc=function(){for(var fe in Jn("/Font <<"),Cs)Cs.hasOwnProperty(fe)&&(gn===!1||gn===!0&&En.hasOwnProperty(fe))&&Jn("/"+fe+" "+Cs[fe].objectNumber+" 0 R");Jn(">>")},wh=function(){if(Object.keys($s).length>0){for(var fe in Jn("/Shading <<"),$s)$s.hasOwnProperty(fe)&&$s[fe]instanceof Fa&&$s[fe].objectNumber>=0&&Jn("/"+fe+" "+$s[fe].objectNumber+" 0 R");Go.publish("putShadingPatternDict"),Jn(">>")}},da=function(fe){if(Object.keys($s).length>0){for(var wn in Jn("/Pattern <<"),$s)$s.hasOwnProperty(wn)&&$s[wn]instanceof We.TilingPattern&&$s[wn].objectNumber>=0&&$s[wn].objectNumber<fe&&Jn("/"+wn+" "+$s[wn].objectNumber+" 0 R");Go.publish("putTilingPatternDict"),Jn(">>")}},Cl=function(){if(Object.keys(zo).length>0){var fe;for(fe in Jn("/ExtGState <<"),zo)zo.hasOwnProperty(fe)&&zo[fe].objectNumber>=0&&Jn("/"+fe+" "+zo[fe].objectNumber+" 0 R");Go.publish("putGStateDict"),Jn(">>")}},Ca=function(fe){ta(fe.resourcesOid,!0),Jn("<<"),Jn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),oc(),wh(),da(fe.objectOid),Cl(),yh(),Jn(">>"),Jn("endobj")},gl=function(){var fe=[];$u(),Cc(),Yu(),il(fe),Go.publish("putResources"),fe.forEach(Ca),Ca({resourcesOid:$a,objectOid:Number.MAX_SAFE_INTEGER}),Go.publish("postPutResources")},Aa=function(){Go.publish("putAdditionalObjects");for(var fe=0;fe<Ji.length;fe++){var wn=Ji[fe];ta(wn.objId,!0),Jn(wn.content),Jn("endobj")}Go.publish("postPutAdditionalObjects")},hu=function(fe){qs[fe.fontName]=qs[fe.fontName]||{},qs[fe.fontName][fe.fontStyle]=fe.id},Fu=function(fe,wn,xi,Hi,hr){var Ur={id:"F"+(Object.keys(Cs).length+1).toString(10),postScriptName:fe,fontName:wn,fontStyle:xi,encoding:Hi,isStandardFont:hr||!1,metadata:{}};return Go.publish("addFont",{font:Ur,instance:this}),Cs[Ur.id]=Ur,hu(Ur),Ur.id},Kh=function(fe){for(var wn=0,xi=ar.length;wn<xi;wn++){var Hi=Fu.call(this,fe[wn][0],fe[wn][1],fe[wn][2],ar[wn][3],!0);gn===!1&&(En[Hi]=!0);var hr=fe[wn][0].split("-");hu({id:Hi,fontName:hr[0],fontStyle:hr[1]||""})}Go.publish("addFonts",{fonts:Cs,dictionary:qs})},Th=function(fe){return fe.foo=function(){try{return fe.apply(this,arguments)}catch(Hi){var wn=Hi.stack||"";~wn.indexOf(" at ")&&(wn=wn.split(" at ")[1]);var xi="Error in function "+wn.split(`
`)[0].split("<")[0]+": "+Hi.message;if(!kr.console)throw new Error(xi);kr.console.error(xi,Hi),kr.alert&&alert(xi)}},fe.foo.bar=fe,fe.foo},Kn=function(fe,wn){var xi,Hi,hr,Ur,wo,ms,Ys,Ba,Pa;if(hr=(wn=wn||{}).sourceEncoding||"Unicode",wo=wn.outputEncoding,(wn.autoencode||wo)&&Cs[is].metadata&&Cs[is].metadata[hr]&&Cs[is].metadata[hr].encoding&&(Ur=Cs[is].metadata[hr].encoding,!wo&&Cs[is].encoding&&(wo=Cs[is].encoding),!wo&&Ur.codePages&&(wo=Ur.codePages[0]),typeof wo=="string"&&(wo=Ur[wo]),wo)){for(Ys=!1,ms=[],xi=0,Hi=fe.length;xi<Hi;xi++)(Ba=wo[fe.charCodeAt(xi)])?ms.push(String.fromCharCode(Ba)):ms.push(fe[xi]),ms[xi].charCodeAt(0)>>8&&(Ys=!0);fe=ms.join("")}for(xi=fe.length;Ys===void 0&&xi!==0;)fe.charCodeAt(xi-1)>>8&&(Ys=!0),xi--;if(!Ys)return fe;for(ms=wn.noBOM?[]:[254,255],xi=0,Hi=fe.length;xi<Hi;xi++){if((Pa=(Ba=fe.charCodeAt(xi))>>8)>>8)throw new Error("Character at position "+xi+" of string '"+fe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ms.push(Pa),ms.push(Ba-(Pa<<8))}return String.fromCharCode.apply(void 0,ms)},Hu=We.__private__.pdfEscape=We.pdfEscape=function(fe,wn){return Kn(fe,wn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Oh=We.__private__.beginPage=function(fe){Yi[++Os]=[],oo[Os]={objId:0,contentsObjId:0,userUnit:Number(Ce),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(fe[0]),topRightY:Number(fe[1])}},gc(Os),Ti(Yi[cn])},lA=function(fe,wn){var xi,Hi,hr;switch(St=wn||St,typeof fe=="string"&&(xi=Hn(fe.toLowerCase()),Array.isArray(xi)&&(Hi=xi[0],hr=xi[1])),Array.isArray(fe)&&(Hi=fe[0]*yo,hr=fe[1]*yo),isNaN(Hi)&&(Hi=oe[0],hr=oe[1]),(Hi>14400||hr>14400)&&(Po.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Hi=Math.min(14400,Hi),hr=Math.min(14400,hr)),oe=[Hi,hr],St.substr(0,1)){case"l":hr>Hi&&(oe=[hr,Hi]);break;case"p":Hi>hr&&(oe=[hr,Hi])}Oh(oe),Eh(Mu),Jn(sc),KA!==0&&Jn(KA+" J"),bd!==0&&Jn(bd+" j"),Go.publish("addPage",{pageNumber:Os})},nd=function(fe){fe>0&&fe<=Os&&(Yi.splice(fe,1),oo.splice(fe,1),Os--,cn>Os&&(cn=Os),this.setPage(cn))},gc=function(fe){fe>0&&fe<=Os&&(cn=fe)},xd=We.__private__.getNumberOfPages=We.getNumberOfPages=function(){return Yi.length-1},SA=function(fe,wn,xi){var Hi,hr=void 0;return xi=xi||{},fe=fe!==void 0?fe:Cs[is].fontName,wn=wn!==void 0?wn:Cs[is].fontStyle,Hi=fe.toLowerCase(),qs[Hi]!==void 0&&qs[Hi][wn]!==void 0?hr=qs[Hi][wn]:qs[fe]!==void 0&&qs[fe][wn]!==void 0?hr=qs[fe][wn]:xi.disableWarning===!1&&Po.warn("Unable to look up font label for font '"+fe+"', '"+wn+"'. Refer to getFontList() for available fonts."),hr||xi.noFallback||(hr=qs.times[wn])==null&&(hr=qs.times.normal),hr},Lu=We.__private__.putInfo=function(){var fe=Ra(),wn=function(Hi){return Hi};for(var xi in fn!==null&&(wn=Vu.encryptor(fe,0)),Jn("<<"),Jn("/Producer ("+Hu(wn("jsPDF "+Ho.version))+")"),$o)$o.hasOwnProperty(xi)&&$o[xi]&&Jn("/"+xi.substr(0,1).toUpperCase()+xi.substr(1)+" ("+Hu(wn($o[xi]))+")");Jn("/CreationDate ("+Hu(wn(Ye))+")"),Jn(">>"),Jn("endobj")},jc=We.__private__.putCatalog=function(fe){var wn=(fe=fe||{}).rootDictionaryObjId||ka;switch(Ra(),Jn("<<"),Jn("/Type /Catalog"),Jn("/Pages "+wn+" 0 R"),nr||(nr="fullwidth"),nr){case"fullwidth":Jn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Jn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Jn("/OpenAction [3 0 R /Fit]");break;case"original":Jn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var xi=""+nr;xi.substr(xi.length-1)==="%"&&(nr=parseInt(nr)/100),typeof nr=="number"&&Jn("/OpenAction [3 0 R /XYZ null null "+Or(nr)+"]")}switch(Rr||(Rr="continuous"),Rr){case"continuous":Jn("/PageLayout /OneColumn");break;case"single":Jn("/PageLayout /SinglePage");break;case"two":case"twoleft":Jn("/PageLayout /TwoColumnLeft");break;case"tworight":Jn("/PageLayout /TwoColumnRight")}co&&Jn("/PageMode /"+co),Go.publish("putCatalog"),Jn(">>"),Jn("endobj")},Kd=We.__private__.putTrailer=function(){Jn("trailer"),Jn("<<"),Jn("/Size "+(Yn+1)),Jn("/Root "+Yn+" 0 R"),Jn("/Info "+(Yn-1)+" 0 R"),fn!==null&&Jn("/Encrypt "+Vu.oid+" 0 R"),Jn("/ID [ <"+tn+"> <"+tn+"> ]"),Jn(">>")},id=We.__private__.putHeader=function(){Jn("%PDF-"+vi),Jn("%\xBA\xDF\xAC\xE0")},CA=We.__private__.putXRef=function(){var fe="0000000000";Jn("xref"),Jn("0 "+(Yn+1)),Jn("0000000000 65535 f ");for(var wn=1;wn<=Yn;wn++)typeof ri[wn]=="function"?Jn((fe+ri[wn]()).slice(-10)+" 00000 n "):ri[wn]!==void 0?Jn((fe+ri[wn]).slice(-10)+" 00000 n "):Jn("0000000000 00000 n ")},Uc=We.__private__.buildDocument=function(){ro(),Ti(Fi),Go.publish("buildDocument"),id(),uu(),Aa(),gl(),fn!==null&&rc(),Lu(),jc();var fe=ci;return CA(),Kd(),Jn("startxref"),Jn(""+fe),Jn("%%EOF"),Ti(Yi[cn]),Fi.join(`
`)},Sd=We.__private__.getBlob=function(fe){return new Blob([br(fe)],{type:"application/pdf"})},Ju=We.output=We.__private__.output=Th(function(fe,wn){switch(typeof(wn=wn||{})=="string"?wn={filename:wn}:wn.filename=wn.filename||"generated.pdf",fe){case void 0:return Uc();case"save":We.save(wn.filename);break;case"arraybuffer":return br(Uc());case"blob":return Sd(Uc());case"bloburi":case"bloburl":if(kr.URL!==void 0&&typeof kr.URL.createObjectURL=="function")return kr.URL&&kr.URL.createObjectURL(Sd(Uc()))||void 0;Po.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var xi="",Hi=Uc();try{xi=ba(Hi)}catch(ru){xi=ba(unescape(encodeURIComponent(Hi)))}return"data:application/pdf;filename="+wn.filename+";base64,"+xi;case"pdfobjectnewwindow":if(Object.prototype.toString.call(kr)==="[object Window]"){var hr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ur=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';wn.pdfObjectUrl&&(hr=wn.pdfObjectUrl,Ur="");var wo='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+hr+'"'+Ur+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(wn)+");<\/script></body></html>",ms=kr.open();return ms!==null&&ms.document.write(wo),ms}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(kr)==="[object Window]"){var Ys='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(wn.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+wn.filename+'" width="500px" height="400px" /></body></html>',Ba=kr.open();if(Ba!==null){Ba.document.write(Ys);var Pa=this;Ba.document.documentElement.querySelector("#pdfViewer").onload=function(){Ba.document.title=wn.filename,Ba.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Pa.output("bloburl"))}}return Ba}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(kr)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var vs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",wn)+'"></iframe></body></html>',iu=kr.open();if(iu!==null&&(iu.document.write(vs),iu.document.title=wn.filename),iu||typeof safari=="undefined")return iu;break;case"datauri":case"dataurl":return kr.document.location.href=this.output("datauristring",wn);default:return null}}),ah=function(fe){return Array.isArray(aa)===!0&&aa.indexOf(fe)>-1};switch(_t){case"pt":yo=1;break;case"mm":yo=72/25.4;break;case"cm":yo=72/2.54;break;case"in":yo=72;break;case"px":yo=ah("px_scaling")==1?.75:96/72;break;case"pc":case"em":yo=12;break;case"ex":yo=6;break;default:if(typeof _t!="number")throw new Error("Invalid unit: "+_t);yo=_t}var Vu=null;ti(),on();var BA=function(fe){return fn!==null?Vu.encryptor(fe,0):function(wn){return wn}},Gh=We.__private__.getPageInfo=We.getPageInfo=function(fe){if(isNaN(fe)||fe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:oo[fe].objId,pageNumber:fe,pageContext:oo[fe]}},na=We.__private__.getPageInfoByObjId=function(fe){if(isNaN(fe)||fe%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var wn in oo)if(oo[wn].objId===fe)break;return Gh(wn)},Cd=We.__private__.getCurrentPageInfo=We.getCurrentPageInfo=function(){return{objId:oo[cn].objId,pageNumber:cn,pageContext:oo[cn]}};We.addPage=function(){return lA.apply(this,arguments),this},We.setPage=function(){return gc.apply(this,arguments),Ti.call(this,Yi[cn]),this},We.insertPage=function(fe){return this.addPage(),this.movePage(cn,fe),this},We.movePage=function(fe,wn){var xi,Hi;if(fe>wn){xi=Yi[fe],Hi=oo[fe];for(var hr=fe;hr>wn;hr--)Yi[hr]=Yi[hr-1],oo[hr]=oo[hr-1];Yi[wn]=xi,oo[wn]=Hi,this.setPage(wn)}else if(fe<wn){xi=Yi[fe],Hi=oo[fe];for(var Ur=fe;Ur<wn;Ur++)Yi[Ur]=Yi[Ur+1],oo[Ur]=oo[Ur+1];Yi[wn]=xi,oo[wn]=Hi,this.setPage(wn)}return this},We.deletePage=function(){return nd.apply(this,arguments),this},We.__private__.text=We.text=function(fe,wn,xi,Hi,hr){var Ur,wo,ms,Ys,Ba,Pa,vs,iu,ru,Ga=(Hi=Hi||{}).scope||this;if(typeof fe=="number"&&typeof wn=="number"&&(typeof xi=="string"||Array.isArray(xi))){var Kl=xi;xi=wn,wn=fe,fe=Kl}if(arguments[3]instanceof Ps?(Di("The transform parameter of text() with a Matrix value"),ru=hr):(ms=arguments[4],Ys=arguments[5],(0,Lt.Z)(vs=arguments[3])==="object"&&vs!==null||(typeof ms=="string"&&(Ys=ms,ms=null),typeof vs=="string"&&(Ys=vs,vs=null),typeof vs=="number"&&(ms=vs,vs=null),Hi={flags:vs,angle:ms,align:Ys})),isNaN(wn)||isNaN(xi)||fe==null)throw new Error("Invalid arguments passed to jsPDF.text");if(fe.length===0)return Ga;var Nu="",ac=!1,Fh=typeof Hi.lineHeightFactor=="number"?Hi.lineHeightFactor:Ya,lc=Ga.internal.scaleFactor;function LA(Na){return Na=Na.split(" ").join(Array(Hi.TabLen||9).join(" ")),Hu(Na,vs)}function dA(Na){for(var ya,ml=Na.concat(),vl=[],Co=ml.length;Co--;)typeof(ya=ml.shift())=="string"?vl.push(ya):Array.isArray(Na)&&(ya.length===1||ya[1]===void 0&&ya[2]===void 0)?vl.push(ya[0]):vl.push([ya[0],ya[1],ya[2]]);return vl}function MA(Na,ya){var ml;if(typeof Na=="string")ml=ya(Na)[0];else if(Array.isArray(Na)){for(var vl,Co,wa=Na.concat(),Il=[],kl=wa.length;kl--;)typeof(vl=wa.shift())=="string"?Il.push(ya(vl)[0]):Array.isArray(vl)&&typeof vl[0]=="string"&&(Co=ya(vl[0],vl[1],vl[2]),Il.push([Co[0],Co[1],Co[2]]));ml=Il}return ml}var pc=!1,Fd=!0;if(typeof fe=="string")pc=!0;else if(Array.isArray(fe)){var Gc=fe.concat();wo=[];for(var pl,Iu=Gc.length;Iu--;)(typeof(pl=Gc.shift())!="string"||Array.isArray(pl)&&typeof pl[0]!="string")&&(Fd=!1);pc=Fd}if(pc===!1)throw new Error('Type of text must be string or Array. "'+fe+'" is not recognized.');typeof fe=="string"&&(fe=fe.match(/[\r?\n]/)?fe.split(/\r\n|\r|\n/g):[fe]);var Yd=lr/Ga.internal.scaleFactor,Wl=Yd*(Fh-1);switch(Hi.baseline){case"bottom":xi-=Wl;break;case"top":xi+=Yd-Wl;break;case"hanging":xi+=Yd-2*Wl;break;case"middle":xi+=Yd/2-Wl}if((Pa=Hi.maxWidth||0)>0&&(typeof fe=="string"?fe=Ga.splitTextToSize(fe,Pa):Object.prototype.toString.call(fe)==="[object Array]"&&(fe=fe.reduce(function(Na,ya){return Na.concat(Ga.splitTextToSize(ya,Pa))},[]))),Ur={text:fe,x:wn,y:xi,options:Hi,mutex:{pdfEscape:Hu,activeFontKey:is,fonts:Cs,activeFontSize:lr}},Go.publish("preProcessText",Ur),fe=Ur.text,ms=(Hi=Ur.options).angle,!(ru instanceof Ps)&&ms&&typeof ms=="number"){ms*=Math.PI/180,Hi.rotationDirection===0&&(ms=-ms),zi===gi.ADVANCED&&(ms=-ms);var jh=Math.cos(ms),mc=Math.sin(ms);ru=new Ps(jh,mc,-mc,jh,0,0)}else ms&&ms instanceof Ps&&(ru=ms);zi!==gi.ADVANCED||ru||(ru=Ul),(Ba=Hi.charSpace||uA)!==void 0&&(Nu+=mr(oi(Ba))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(iu=Hi.horizontalScale)!==void 0&&(Nu+=mr(100*iu)+` Tz
`),Hi.lang;var th=-1,Vl=Hi.renderingMode!==void 0?Hi.renderingMode:Hi.stroke,Ld=Ga.internal.getCurrentPageInfo().pageContext;switch(Vl){case 0:case!1:case"fill":th=0;break;case 1:case!0:case"stroke":th=1;break;case 2:case"fillThenStroke":th=2;break;case 3:case"invisible":th=3;break;case 4:case"fillAndAddForClipping":th=4;break;case 5:case"strokeAndAddPathForClipping":th=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":th=6;break;case 7:case"addToPathForClipping":th=7}var Uh=Ld.usedRenderingMode!==void 0?Ld.usedRenderingMode:-1;th!==-1?Nu+=th+` Tr
`:Uh!==-1&&(Nu+=`0 Tr
`),th!==-1&&(Ld.usedRenderingMode=th),Ys=Hi.align||"left";var lh,sd=lr*Fh,it=Ga.internal.pageSize.getWidth(),st=Cs[is];Ba=Hi.charSpace||uA,Pa=Hi.maxWidth||0,vs=Object.assign({autoencode:!0,noBOM:!0},Hi.flags);var ft=[],At=function(Na){return Ga.getStringUnitWidth(Na,{font:st,charSpace:Ba,fontSize:lr,doKerning:!1})*lr/lc};if(Object.prototype.toString.call(fe)==="[object Array]"){var xt;wo=dA(fe),Ys!=="left"&&(lh=wo.map(At));var te,Pe=0;if(Ys==="right"){wn-=lh[0],fe=[],Iu=wo.length;for(var He=0;He<Iu;He++)He===0?(te=Zu(wn),xt=xh(xi)):(te=oi(Pe-lh[He]),xt=-sd),fe.push([wo[He],te,xt]),Pe=lh[He]}else if(Ys==="center"){wn-=lh[0]/2,fe=[],Iu=wo.length;for(var Re=0;Re<Iu;Re++)Re===0?(te=Zu(wn),xt=xh(xi)):(te=oi((Pe-lh[Re])/2),xt=-sd),fe.push([wo[Re],te,xt]),Pe=lh[Re]}else if(Ys==="left"){fe=[],Iu=wo.length;for(var un=0;un<Iu;un++)fe.push(wo[un])}else if(Ys==="justify"&&st.encoding==="Identity-H"){fe=[],Iu=wo.length,Pa=Pa!==0?Pa:it;for(var si=0,pn=0;pn<Iu;pn++)if(xt=pn===0?xh(xi):-sd,te=pn===0?Zu(wn):si,pn<Iu-1){var Oi=oi((Pa-lh[pn])/(wo[pn].split(" ").length-1)),Ei=wo[pn].split(" ");fe.push([Ei[0]+" ",te,xt]),si=0;for(var Sr=1;Sr<Ei.length;Sr++){var Dr=(At(Ei[Sr-1]+" "+Ei[Sr])-At(Ei[Sr]))*lc+Oi;Sr==Ei.length-1?fe.push([Ei[Sr],Dr,0]):fe.push([Ei[Sr]+" ",Dr,0]),si-=Dr}}else fe.push([wo[pn],te,xt]);fe.push(["",si,0])}else{if(Ys!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(fe=[],Iu=wo.length,Pa=Pa!==0?Pa:it,pn=0;pn<Iu;pn++)xt=pn===0?xh(xi):-sd,te=pn===0?Zu(wn):0,pn<Iu-1?ft.push(mr(oi((Pa-lh[pn])/(wo[pn].split(" ").length-1)))):ft.push(0),fe.push([wo[pn],te,xt])}}var eo=typeof Hi.R2L=="boolean"?Hi.R2L:Zr;eo===!0&&(fe=MA(fe,function(Na,ya,ml){return[Na.split("").reverse().join(""),ya,ml]})),Ur={text:fe,x:wn,y:xi,options:Hi,mutex:{pdfEscape:Hu,activeFontKey:is,fonts:Cs,activeFontSize:lr}},Go.publish("postProcessText",Ur),fe=Ur.text,ac=Ur.mutex.isHex||!1;var vo=Cs[is].encoding;vo!=="WinAnsiEncoding"&&vo!=="StandardEncoding"||(fe=MA(fe,function(Na,ya,ml){return[LA(Na),ya,ml]})),wo=dA(fe),fe=[];for(var Zo,No,as,ks=0,Io=1,ea=Array.isArray(wo[0])?Io:ks,Bl="",ku=function(Na,ya,ml){var vl="";return ml instanceof Ps?(ml=typeof Hi.angle=="number"?ua(ml,new Ps(1,0,0,1,Na,ya)):ua(new Ps(1,0,0,1,Na,ya),ml),zi===gi.ADVANCED&&(ml=ua(new Ps(1,0,0,-1,0,0),ml)),vl=ml.join(" ")+` Tm
`):vl=mr(Na)+" "+mr(ya)+` Td
`,vl},cl=0;cl<wo.length;cl++){switch(Bl="",ea){case Io:as=(ac?"<":"(")+wo[cl][0]+(ac?">":")"),Zo=parseFloat(wo[cl][1]),No=parseFloat(wo[cl][2]);break;case ks:as=(ac?"<":"(")+wo[cl]+(ac?">":")"),Zo=Zu(wn),No=xh(xi)}ft!==void 0&&ft[cl]!==void 0&&(Bl=ft[cl]+` Tw
`),cl===0?fe.push(Bl+ku(Zo,No,ru)+as):ea===ks?fe.push(Bl+as):ea===Io&&fe.push(Bl+ku(Zo,No,ru)+as)}fe=ea===ks?fe.join(` Tj
T* `):fe.join(` Tj
`),fe+=` Tj
`;var yu=`BT
/`;return yu+=is+" "+lr+` Tf
`,yu+=mr(lr*Fh)+` TL
`,yu+=od+`
`,yu+=Nu,yu+=fe,Jn(yu+="ET"),En[is]=!0,Ga};var rd=We.__private__.clip=We.clip=function(fe){return Jn(fe==="evenodd"?"W*":"W"),this};We.clipEvenOdd=function(){return rd("evenodd")},We.__private__.discardPath=We.discardPath=function(){return Jn("n"),this};var mu=We.__private__.isValidStyle=function(fe){var wn=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(fe)!==-1&&(wn=!0),wn};We.__private__.setDefaultPathOperation=We.setDefaultPathOperation=function(fe){return mu(fe)&&(Je=fe),this};var Gd=We.__private__.getStyle=We.getStyle=function(fe){var wn=Je;switch(fe){case"D":case"S":wn="S";break;case"F":wn="f";break;case"FD":case"DF":wn="B";break;case"f":case"f*":case"B":case"B*":wn=fe}return wn},Wd=We.close=function(){return Jn("h"),this};We.stroke=function(){return Jn("S"),this},We.fill=function(fe){return qu("f",fe),this},We.fillEvenOdd=function(fe){return qu("f*",fe),this},We.fillStroke=function(fe){return qu("B",fe),this},We.fillStrokeEvenOdd=function(fe){return qu("B*",fe),this};var qu=function(fe,wn){(0,Lt.Z)(wn)==="object"?Vd(wn,fe):Jn(fe)},Rc=function(fe){fe===null||zi===gi.ADVANCED&&fe===void 0||(fe=Gd(fe),Jn(fe))};function Bd(fe,wn,xi,Hi,hr){var Ur=new Js(wn||this.boundingBox,xi||this.xStep,Hi||this.yStep,this.gState,hr||this.matrix);Ur.stream=this.stream;var wo=fe+"$$"+this.cloneIndex+++"$$";return fo(wo,Ur),Ur}var Vd=function(fe,wn){var xi=Qo[fe.key],Hi=$s[xi];if(Hi instanceof Fa)Jn("q"),Jn(cu(wn)),Hi.gState&&We.setGState(Hi.gState),Jn(fe.matrix.toString()+" cm"),Jn("/"+xi+" sh"),Jn("Q");else if(Hi instanceof Js){var hr=new Ps(1,0,0,-1,0,$d());fe.matrix&&(hr=hr.multiply(fe.matrix||Ul),xi=Bd.call(Hi,fe.key,fe.boundingBox,fe.xStep,fe.yStep,hr).id),Jn("q"),Jn("/Pattern cs"),Jn("/"+xi+" scn"),Hi.gState&&We.setGState(Hi.gState),Jn(wn),Jn("Q")}},cu=function(fe){switch(fe){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"}},vu=We.moveTo=function(fe,wn){return Jn(mr(oi(fe))+" "+mr(we(wn))+" m"),this},Hc=We.lineTo=function(fe,wn){return Jn(mr(oi(fe))+" "+mr(we(wn))+" l"),this},Hl=We.curveTo=function(fe,wn,xi,Hi,hr,Ur){return Jn([mr(oi(fe)),mr(we(wn)),mr(oi(xi)),mr(we(Hi)),mr(oi(hr)),mr(we(Ur)),"c"].join(" ")),this};We.__private__.line=We.line=function(fe,wn,xi,Hi,hr){if(isNaN(fe)||isNaN(wn)||isNaN(xi)||isNaN(Hi)||!mu(hr))throw new Error("Invalid arguments passed to jsPDF.line");return zi===gi.COMPAT?this.lines([[xi-fe,Hi-wn]],fe,wn,[1,1],hr||"S"):this.lines([[xi-fe,Hi-wn]],fe,wn,[1,1]).stroke()},We.__private__.lines=We.lines=function(fe,wn,xi,Hi,hr,Ur){var wo,ms,Ys,Ba,Pa,vs,iu,ru,Ga,Kl,Nu,ac;if(typeof fe=="number"&&(ac=xi,xi=wn,wn=fe,fe=ac),Hi=Hi||[1,1],Ur=Ur||!1,isNaN(wn)||isNaN(xi)||!Array.isArray(fe)||!Array.isArray(Hi)||!mu(hr)||typeof Ur!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(vu(wn,xi),wo=Hi[0],ms=Hi[1],Ba=fe.length,Kl=wn,Nu=xi,Ys=0;Ys<Ba;Ys++)(Pa=fe[Ys]).length===2?(Kl=Pa[0]*wo+Kl,Nu=Pa[1]*ms+Nu,Hc(Kl,Nu)):(vs=Pa[0]*wo+Kl,iu=Pa[1]*ms+Nu,ru=Pa[2]*wo+Kl,Ga=Pa[3]*ms+Nu,Kl=Pa[4]*wo+Kl,Nu=Pa[5]*ms+Nu,Hl(vs,iu,ru,Ga,Kl,Nu));return Ur&&Wd(),Rc(hr),this},We.path=function(fe){for(var wn=0;wn<fe.length;wn++){var xi=fe[wn],Hi=xi.c;switch(xi.op){case"m":vu(Hi[0],Hi[1]);break;case"l":Hc(Hi[0],Hi[1]);break;case"c":Hl.apply(this,Hi);break;case"h":Wd()}}return this},We.__private__.rect=We.rect=function(fe,wn,xi,Hi,hr){if(isNaN(fe)||isNaN(wn)||isNaN(xi)||isNaN(Hi)||!mu(hr))throw new Error("Invalid arguments passed to jsPDF.rect");return zi===gi.COMPAT&&(Hi=-Hi),Jn([mr(oi(fe)),mr(we(wn)),mr(oi(xi)),mr(oi(Hi)),"re"].join(" ")),Rc(hr),this},We.__private__.triangle=We.triangle=function(fe,wn,xi,Hi,hr,Ur,wo){if(isNaN(fe)||isNaN(wn)||isNaN(xi)||isNaN(Hi)||isNaN(hr)||isNaN(Ur)||!mu(wo))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[xi-fe,Hi-wn],[hr-xi,Ur-Hi],[fe-hr,wn-Ur]],fe,wn,[1,1],wo,!0),this},We.__private__.roundedRect=We.roundedRect=function(fe,wn,xi,Hi,hr,Ur,wo){if(isNaN(fe)||isNaN(wn)||isNaN(xi)||isNaN(Hi)||isNaN(hr)||isNaN(Ur)||!mu(wo))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ms=4/3*(Math.SQRT2-1);return hr=Math.min(hr,.5*xi),Ur=Math.min(Ur,.5*Hi),this.lines([[xi-2*hr,0],[hr*ms,0,hr,Ur-Ur*ms,hr,Ur],[0,Hi-2*Ur],[0,Ur*ms,-hr*ms,Ur,-hr,Ur],[2*hr-xi,0],[-hr*ms,0,-hr,-Ur*ms,-hr,-Ur],[0,2*Ur-Hi],[0,-Ur*ms,hr*ms,-Ur,hr,-Ur]],fe+hr,wn,[1,1],wo,!0),this},We.__private__.ellipse=We.ellipse=function(fe,wn,xi,Hi,hr){if(isNaN(fe)||isNaN(wn)||isNaN(xi)||isNaN(Hi)||!mu(hr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ur=4/3*(Math.SQRT2-1)*xi,wo=4/3*(Math.SQRT2-1)*Hi;return vu(fe+xi,wn),Hl(fe+xi,wn-wo,fe+Ur,wn-Hi,fe,wn-Hi),Hl(fe-Ur,wn-Hi,fe-xi,wn-wo,fe-xi,wn),Hl(fe-xi,wn+wo,fe-Ur,wn+Hi,fe,wn+Hi),Hl(fe+Ur,wn+Hi,fe+xi,wn+wo,fe+xi,wn),Rc(hr),this},We.__private__.circle=We.circle=function(fe,wn,xi,Hi){if(isNaN(fe)||isNaN(wn)||isNaN(xi)||!mu(Hi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(fe,wn,xi,xi,Hi)},We.setFont=function(fe,wn,xi){return xi&&(wn=lo(wn,xi)),is=SA(fe,wn,{disableWarning:!1}),this};var Oa=We.__private__.getFont=We.getFont=function(){return Cs[SA.apply(We,arguments)]};We.__private__.getFontList=We.getFontList=function(){var fe,wn,xi={};for(fe in qs)if(qs.hasOwnProperty(fe))for(wn in xi[fe]=[],qs[fe])qs[fe].hasOwnProperty(wn)&&xi[fe].push(wn);return xi},We.addFont=function(fe,wn,xi,Hi,hr){var Ur=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ur.indexOf(arguments[3])!==-1?hr=arguments[3]:arguments[3]&&Ur.indexOf(arguments[3])==-1&&(xi=lo(xi,Hi)),hr=hr||"Identity-H",Fu.call(this,fe,wn,xi,hr)};var Ya,Mu=Bt.lineWidth||.200025,fh=We.__private__.getLineWidth=We.getLineWidth=function(){return Mu},Eh=We.__private__.setLineWidth=We.setLineWidth=function(fe){return Mu=fe,Jn(mr(oi(fe))+" w"),this};We.__private__.setLineDash=Ho.API.setLineDash=Ho.API.setLineDashPattern=function(fe,wn){if(fe=fe||[],wn=wn||0,isNaN(wn)||!Array.isArray(fe))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return fe=fe.map(function(xi){return mr(oi(xi))}).join(" "),wn=mr(oi(wn)),Jn("["+fe+"] "+wn+" d"),this};var Zd=We.__private__.getLineHeight=We.getLineHeight=function(){return lr*Ya};We.__private__.getLineHeight=We.getLineHeight=function(){return lr*Ya};var Bc=We.__private__.setLineHeightFactor=We.setLineHeightFactor=function(fe){return typeof(fe=fe||1.15)=="number"&&(Ya=fe),this},Pd=We.__private__.getLineHeightFactor=We.getLineHeightFactor=function(){return Ya};Bc(Bt.lineHeight);var Zu=We.__private__.getHorizontalCoordinate=function(fe){return oi(fe)},xh=We.__private__.getVerticalCoordinate=function(fe){return zi===gi.ADVANCED?fe:oo[cn].mediaBox.topRightY-oo[cn].mediaBox.bottomLeftY-oi(fe)},PA=We.__private__.getHorizontalCoordinateString=We.getHorizontalCoordinateString=function(fe){return mr(Zu(fe))},_c=We.__private__.getVerticalCoordinateString=We.getVerticalCoordinateString=function(fe){return mr(xh(fe))},sc=Bt.strokeColor||"0 G";We.__private__.getStrokeColor=We.getDrawColor=function(){return ll(sc)},We.__private__.setStrokeColor=We.setDrawColor=function(fe,wn,xi,Hi){return sc=Rs({ch1:fe,ch2:wn,ch3:xi,ch4:Hi,pdfColorType:"draw",precision:2}),Jn(sc),this};var Qc=Bt.fillColor||"0 g";We.__private__.getFillColor=We.getFillColor=function(){return ll(Qc)},We.__private__.setFillColor=We.setFillColor=function(fe,wn,xi,Hi){return Qc=Rs({ch1:fe,ch2:wn,ch3:xi,ch4:Hi,pdfColorType:"fill",precision:2}),Jn(Qc),this};var od=Bt.textColor||"0 g",lf=We.__private__.getTextColor=We.getTextColor=function(){return ll(od)};We.__private__.setTextColor=We.setTextColor=function(fe,wn,xi,Hi){return od=Rs({ch1:fe,ch2:wn,ch3:xi,ch4:Hi,pdfColorType:"text",precision:3}),this};var uA=Bt.charSpace,Pc=We.__private__.getCharSpace=We.getCharSpace=function(){return parseFloat(uA||0)};We.__private__.setCharSpace=We.setCharSpace=function(fe){if(isNaN(fe))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uA=fe,this};var KA=0;We.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},We.__private__.setLineCap=We.setLineCap=function(fe){var wn=We.CapJoinStyles[fe];if(wn===void 0)throw new Error("Line cap style of '"+fe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return KA=wn,Jn(wn+" J"),this};var bd=0;We.__private__.setLineJoin=We.setLineJoin=function(fe){var wn=We.CapJoinStyles[fe];if(wn===void 0)throw new Error("Line join style of '"+fe+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return bd=wn,Jn(wn+" j"),this},We.__private__.setLineMiterLimit=We.__private__.setMiterLimit=We.setLineMiterLimit=We.setMiterLimit=function(fe){if(fe=fe||0,isNaN(fe))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Jn(mr(oi(fe))+" M"),this},We.GState=Ms,We.setGState=function(fe){(fe=typeof fe=="string"?zo[gs[fe]]:zc(null,fe)).equals(es)||(Jn("/"+fe.id+" gs"),es=fe)};var zc=function(fe,wn){if(!fe||!gs[fe]){var xi=!1;for(var Hi in zo)if(zo.hasOwnProperty(Hi)&&zo[Hi].equals(wn)){xi=!0;break}if(xi)wn=zo[Hi];else{var hr="GS"+(Object.keys(zo).length+1).toString(10);zo[hr]=wn,wn.id=hr}return fe&&(gs[fe]=wn.id),Go.publish("addGState",wn),wn}};We.addGState=function(fe,wn){return zc(fe,wn),this},We.saveGraphicsState=function(){return Jn("q"),Ua.push({key:is,size:lr,color:od}),this},We.restoreGraphicsState=function(){Jn("Q");var fe=Ua.pop();return is=fe.key,lr=fe.size,od=fe.color,es=null,this},We.setCurrentTransformationMatrix=function(fe){return Jn(fe.toString()+" cm"),this},We.comment=function(fe){return Jn("#"+fe),this};var Kc=function(fe,wn){var xi=fe||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return xi},set:function(Ur){isNaN(Ur)||(xi=parseFloat(Ur))}});var Hi=wn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Hi},set:function(Ur){isNaN(Ur)||(Hi=parseFloat(Ur))}});var hr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return hr},set:function(Ur){hr=Ur.toString()}}),this},hA=function(fe,wn,xi,Hi){Kc.call(this,fe,wn),this.type="rect";var hr=xi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return hr},set:function(wo){isNaN(wo)||(hr=parseFloat(wo))}});var Ur=Hi||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ur},set:function(wo){isNaN(wo)||(Ur=parseFloat(wo))}}),this},Dh=function(){this.page=Os,this.currentPage=cn,this.pages=Yi.slice(0),this.pagesContext=oo.slice(0),this.x=pa,this.y=Wo,this.matrix=rs,this.width=Xd(cn),this.height=$d(cn),this.outputDestination=Fr,this.id="",this.objectNumber=-1};Dh.prototype.restore=function(){Os=this.page,cn=this.currentPage,oo=this.pagesContext,Yi=this.pages,pa=this.x,Wo=this.y,rs=this.matrix,Ed(cn,this.width),FA(cn,this.height),Fr=this.outputDestination};var bA=function(fe,wn,xi,Hi,hr){Ml.push(new Dh),Os=cn=0,Yi=[],pa=fe,Wo=wn,rs=hr,Oh([xi,Hi])},EA=function(fe){if(zl[fe])Ml.pop().restore();else{var wn=new Dh,xi="Xo"+(Object.keys(Us).length+1).toString(10);wn.id=xi,zl[fe]=xi,Us[xi]=wn,Go.publish("addFormObject",wn),Ml.pop().restore()}};for(var cA in We.beginFormObject=function(fe,wn,xi,Hi,hr){return bA(fe,wn,xi,Hi,hr),this},We.endFormObject=function(fe){return EA(fe),this},We.doFormObject=function(fe,wn){var xi=Us[zl[fe]];return Jn("q"),Jn(wn.toString()+" cm"),Jn("/"+xi.id+" Do"),Jn("Q"),this},We.getFormObject=function(fe){var wn=Us[zl[fe]];return{x:wn.x,y:wn.y,width:wn.width,height:wn.height,matrix:wn.matrix}},We.save=function(fe,wn){return fe=fe||"generated.pdf",(wn=wn||{}).returnPromise=wn.returnPromise||!1,wn.returnPromise===!1?(Xs(Sd(Uc()),fe),typeof Xs.unload=="function"&&kr.setTimeout&&setTimeout(Xs.unload,911),this):new Promise(function(xi,Hi){try{var hr=Xs(Sd(Uc()),fe);typeof Xs.unload=="function"&&kr.setTimeout&&setTimeout(Xs.unload,911),xi(hr)}catch(Ur){Hi(Ur.message)}})},Ho.API)Ho.API.hasOwnProperty(cA)&&(cA==="events"&&Ho.API.events.length?function(fe,wn){var xi,Hi,hr;for(hr=wn.length-1;hr!==-1;hr--)xi=wn[hr][0],Hi=wn[hr][1],fe.subscribe.apply(fe,[xi].concat(typeof Hi=="function"?[Hi]:Hi))}(Go,Ho.API.events):We[cA]=Ho.API[cA]);var Xd=We.getPageWidth=function(fe){return(oo[fe=fe||cn].mediaBox.topRightX-oo[fe].mediaBox.bottomLeftX)/yo},Ed=We.setPageWidth=function(fe,wn){oo[fe].mediaBox.topRightX=wn*yo+oo[fe].mediaBox.bottomLeftX},$d=We.getPageHeight=function(fe){return(oo[fe=fe||cn].mediaBox.topRightY-oo[fe].mediaBox.bottomLeftY)/yo},FA=We.setPageHeight=function(fe,wn){oo[fe].mediaBox.topRightY=wn*yo+oo[fe].mediaBox.bottomLeftY};return We.internal={pdfEscape:Hu,getStyle:Gd,getFont:Oa,getFontSize:vr,getCharSpace:Pc,getTextColor:lf,getLineHeight:Zd,getLineHeightFactor:Pd,getLineWidth:fh,write:xo,getHorizontalCoordinate:Zu,getVerticalCoordinate:xh,getCoordinateString:PA,getVerticalCoordinateString:_c,collections:{},newObject:Ra,newAdditionalObject:la,newObjectDeferred:Gl,newObjectDeferredBegin:ta,getFilters:Ta,putStream:Sl,events:Go,scaleFactor:yo,pageSize:{getWidth:function(){return Xd(cn)},setWidth:function(fe){Ed(cn,fe)},getHeight:function(){return $d(cn)},setHeight:function(fe){FA(cn,fe)}},encryptionOptions:fn,encryption:Vu,getEncryptor:BA,output:Ju,getNumberOfPages:xd,pages:Yi,out:Jn,f2:Or,f3:qn,getPageInfo:Gh,getPageInfoByObjId:na,getCurrentPageInfo:Cd,getPDFVersion:ei,Point:Kc,Rectangle:hA,Matrix:Ps,hasHotfix:ah},Object.defineProperty(We.internal.pageSize,"width",{get:function(){return Xd(cn)},set:function(fe){Ed(cn,fe)},enumerable:!0,configurable:!0}),Object.defineProperty(We.internal.pageSize,"height",{get:function(){return $d(cn)},set:function(fe){FA(cn,fe)},enumerable:!0,configurable:!0}),Kh.call(We,ar),is="F1",lA(oe,St),Go.publish("initialized"),We}io.prototype.lsbFirstWord=function(Bt){return String.fromCharCode(Bt>>0&255,Bt>>8&255,Bt>>16&255,Bt>>24&255)},io.prototype.toHexString=function(Bt){return Bt.split("").map(function(pt){return("0"+(255&pt.charCodeAt(0)).toString(16)).slice(-2)}).join("")},io.prototype.hexToBytes=function(Bt){for(var pt=[],St=0;St<Bt.length;St+=2)pt.push(String.fromCharCode(parseInt(Bt.substr(St,2),16)));return pt.join("")},io.prototype.processOwnerPassword=function(Bt,pt){return Ea(bs(pt).substr(0,5),Bt)},io.prototype.encryptor=function(Bt,pt){var St=bs(this.encryptionKey+String.fromCharCode(255&Bt,Bt>>8&255,Bt>>16&255,255&pt,pt>>8&255)).substr(0,10);return function(_t){return Ea(St,_t)}},Ms.prototype.equals=function(Bt){var pt,St="id,objectNumber,equals";if(!Bt||(0,Lt.Z)(Bt)!==(0,Lt.Z)(this))return!1;var _t=0;for(pt in this)if(!(St.indexOf(pt)>=0)){if(this.hasOwnProperty(pt)&&!Bt.hasOwnProperty(pt)||this[pt]!==Bt[pt])return!1;_t++}for(pt in Bt)Bt.hasOwnProperty(pt)&&St.indexOf(pt)<0&&_t--;return _t===0},Ho.API={events:[]},Ho.version="2.5.2";var Ks=Ho.API,yl=1,wl=function(Bt){return Bt.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Dl=function(Bt){return Bt.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Bs=function(Bt){return Bt.toFixed(2)},ui=function(Bt){return Bt.toFixed(5)};Ks.__acroform__={};var Za=function(Bt,pt){Bt.prototype=Object.create(pt.prototype),Bt.prototype.constructor=Bt},mh=function(Bt){return Bt*yl},ju=function(Bt){var pt=new Xa,St=_o.internal.getHeight(Bt)||0,_t=_o.internal.getWidth(Bt)||0;return pt.BBox=[0,0,Number(Bs(_t)),Number(Bs(St))],pt},su=Ks.__acroform__.setBit=function(Bt,pt){if(Bt=Bt||0,pt=pt||0,isNaN(Bt)||isNaN(pt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Bt|=1<<pt},Ao=Ks.__acroform__.clearBit=function(Bt,pt){if(Bt=Bt||0,pt=pt||0,isNaN(Bt)||isNaN(pt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Bt&=~(1<<pt)},zs=Ks.__acroform__.getBit=function(Bt,pt){if(isNaN(Bt)||isNaN(pt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Bt&1<<pt?1:0},Ns=Ks.__acroform__.getBitForPdf=function(Bt,pt){if(isNaN(Bt)||isNaN(pt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return zs(Bt,pt-1)},Es=Ks.__acroform__.setBitForPdf=function(Bt,pt){if(isNaN(Bt)||isNaN(pt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return su(Bt,pt-1)},_s=Ks.__acroform__.clearBitForPdf=function(Bt,pt){if(isNaN(Bt)||isNaN(pt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ao(Bt,pt-1)},Nl=Ks.__acroform__.calculateCoordinates=function(Bt,pt){var St=pt.internal.getHorizontalCoordinate,_t=pt.internal.getVerticalCoordinate,oe=Bt[0],qt=Bt[1],me=Bt[2],Ce=Bt[3],Le={};return Le.lowerLeft_X=St(oe)||0,Le.lowerLeft_Y=_t(qt+Ce)||0,Le.upperRight_X=St(oe+me)||0,Le.upperRight_Y=_t(qt)||0,[Number(Bs(Le.lowerLeft_X)),Number(Bs(Le.lowerLeft_Y)),Number(Bs(Le.upperRight_X)),Number(Bs(Le.upperRight_Y))]},As=function(Bt){if(Bt.appearanceStreamContent)return Bt.appearanceStreamContent;if(Bt.V||Bt.DV){var pt=[],St=Bt._V||Bt.DV,_t=Qs(Bt,St),oe=Bt.scope.internal.getFont(Bt.fontName,Bt.fontStyle).id;pt.push("/Tx BMC"),pt.push("q"),pt.push("BT"),pt.push(Bt.scope.__private__.encodeColorString(Bt.color)),pt.push("/"+oe+" "+Bs(_t.fontSize)+" Tf"),pt.push("1 0 0 1 0 0 Tm"),pt.push(_t.text),pt.push("ET"),pt.push("Q"),pt.push("EMC");var qt=ju(Bt);return qt.scope=Bt.scope,qt.stream=pt.join(`
`),qt}},Qs=function(Bt,pt){var St=Bt.fontSize===0?Bt.maxFontSize:Bt.fontSize,_t={text:"",fontSize:""},oe=(pt=(pt=pt.substr(0,1)=="("?pt.substr(1):pt).substr(pt.length-1)==")"?pt.substr(0,pt.length-1):pt).split(" ");oe=Bt.multiline?oe.map(function(qn){return qn.split(`
`)}):oe.map(function(qn){return[qn]});var qt=St,me=_o.internal.getHeight(Bt)||0;me=me<0?-me:me;var Ce=_o.internal.getWidth(Bt)||0;Ce=Ce<0?-Ce:Ce;var Le=function(qn,oi,ye){if(qn+1<oe.length){var we=oi+" "+oe[qn+1][0];return Ss(we,Bt,ye).width<=Ce-4}return!1};qt++;t:for(;qt>0;){pt="",qt--;var Je,fn,gn=Ss("3",Bt,qt).height,En=Bt.multiline?me-qt:(me-gn)/2,We=En+=2,vi=0,ei=0,wi=0;if(qt<=0){pt=`(...) Tj
`,pt+="% Width of Text: "+Ss(pt,Bt,qt=12).width+", FieldWidth:"+Ce+`
`;break}for(var Hn="",gi=0,zi=0;zi<oe.length;zi++)if(oe.hasOwnProperty(zi)){var or=!1;if(oe[zi].length!==1&&wi!==oe[zi].length-1){if((gn+2)*(gi+2)+2>me)continue t;Hn+=oe[zi][wi],or=!0,ei=zi,zi--}else{Hn=(Hn+=oe[zi][wi]+" ").substr(Hn.length-1)==" "?Hn.substr(0,Hn.length-1):Hn;var Lr=parseInt(zi),lo=Le(Lr,Hn,qt),mr=zi>=oe.length-1;if(lo&&!mr){Hn+=" ",wi=0;continue}if(lo||mr){if(mr)ei=Lr;else if(Bt.multiline&&(gn+2)*(gi+2)+2>me)continue t}else{if(!Bt.multiline||(gn+2)*(gi+2)+2>me)continue t;ei=Lr}}for(var Di="",Cr=vi;Cr<=ei;Cr++){var Or=oe[Cr];if(Bt.multiline){if(Cr===ei){Di+=Or[wi]+" ",wi=(wi+1)%Or.length;continue}if(Cr===vi){Di+=Or[Or.length-1]+" ";continue}}Di+=Or[0]+" "}switch(Di=Di.substr(Di.length-1)==" "?Di.substr(0,Di.length-1):Di,fn=Ss(Di,Bt,qt).width,Bt.textAlign){case"right":Je=Ce-fn-2;break;case"center":Je=(Ce-fn)/2;break;case"left":default:Je=2}pt+=Bs(Je)+" "+Bs(We)+` Td
`,pt+="("+wl(Di)+`) Tj
`,pt+=-Bs(Je)+` 0 Td
`,We=-(qt+2),fn=0,vi=or?ei:ei+1,gi++,Hn=""}break}return _t.text=pt,_t.fontSize=qt,_t},Ss=function(Bt,pt,St){var _t=pt.scope.internal.getFont(pt.fontName,pt.fontStyle),oe=pt.scope.getStringUnitWidth(Bt,{font:_t,fontSize:parseFloat(St),charSpace:0})*parseFloat(St);return{height:pt.scope.getStringUnitWidth("3",{font:_t,fontSize:parseFloat(St),charSpace:0})*parseFloat(St)*1.5,width:oe}},Gr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ul=function(Bt,pt){var St={type:"reference",object:Bt};pt.internal.getPageInfo(Bt.page).pageContext.annotations.find(function(_t){return _t.type===St.type&&_t.object===St.object})===void 0&&pt.internal.getPageInfo(Bt.page).pageContext.annotations.push(St)},Ds=function(Bt,pt){for(var St in Bt)if(Bt.hasOwnProperty(St)){var _t=St,oe=Bt[St];pt.internal.newObjectDeferredBegin(oe.objId,!0),(0,Lt.Z)(oe)==="object"&&typeof oe.putStream=="function"&&oe.putStream(),delete Bt[_t]}},Su=function(Bt,pt){if(pt.scope=Bt,Bt.internal!==void 0&&(Bt.internal.acroformPlugin===void 0||Bt.internal.acroformPlugin.isInitialized===!1)){if(Fl.FieldNum=0,Bt.internal.acroformPlugin=JSON.parse(JSON.stringify(Gr)),Bt.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");yl=Bt.internal.scaleFactor,Bt.internal.acroformPlugin.acroFormDictionaryRoot=new ol,Bt.internal.acroformPlugin.acroFormDictionaryRoot.scope=Bt,Bt.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Bt.internal.events.subscribe("postPutResources",function(){(function(St){St.internal.events.unsubscribe(St.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete St.internal.acroformPlugin.acroFormDictionaryRoot._eventID,St.internal.acroformPlugin.printedOut=!0})(Bt)}),Bt.internal.events.subscribe("buildDocument",function(){(function(St){St.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var _t=St.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var oe in _t)if(_t.hasOwnProperty(oe)){var qt=_t[oe];qt.objId=void 0,qt.hasAnnotation&&ul(qt,St)}})(Bt)}),Bt.internal.events.subscribe("putCatalog",function(){(function(St){if(St.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");St.internal.write("/AcroForm "+St.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Bt)}),Bt.internal.events.subscribe("postPutPages",function(St){(function(_t,oe){var qt=!_t;for(var me in _t||(oe.internal.newObjectDeferredBegin(oe.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),oe.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),_t=_t||oe.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(_t.hasOwnProperty(me)){var Ce=_t[me],Le=[],Je=Ce.Rect;if(Ce.Rect&&(Ce.Rect=Nl(Ce.Rect,oe)),oe.internal.newObjectDeferredBegin(Ce.objId,!0),Ce.DA=_o.createDefaultAppearanceStream(Ce),(0,Lt.Z)(Ce)==="object"&&typeof Ce.getKeyValueListForStream=="function"&&(Le=Ce.getKeyValueListForStream()),Ce.Rect=Je,Ce.hasAppearanceStream&&!Ce.appearanceStreamContent){var fn=As(Ce);Le.push({key:"AP",value:"<</N "+fn+">>"}),oe.internal.acroformPlugin.xForms.push(fn)}if(Ce.appearanceStreamContent){var gn="";for(var En in Ce.appearanceStreamContent)if(Ce.appearanceStreamContent.hasOwnProperty(En)){var We=Ce.appearanceStreamContent[En];if(gn+="/"+En+" ",gn+="<<",Object.keys(We).length>=1||Array.isArray(We)){for(var me in We)if(We.hasOwnProperty(me)){var vi=We[me];typeof vi=="function"&&(vi=vi.call(oe,Ce)),gn+="/"+me+" "+vi+" ",oe.internal.acroformPlugin.xForms.indexOf(vi)>=0||oe.internal.acroformPlugin.xForms.push(vi)}}else typeof(vi=We)=="function"&&(vi=vi.call(oe,Ce)),gn+="/"+me+" "+vi,oe.internal.acroformPlugin.xForms.indexOf(vi)>=0||oe.internal.acroformPlugin.xForms.push(vi);gn+=">>"}Le.push({key:"AP",value:`<<
`+gn+">>"})}oe.internal.putStream({additionalKeyValues:Le,objectId:Ce.objId}),oe.internal.out("endobj")}qt&&Ds(oe.internal.acroformPlugin.xForms,oe)})(St,Bt)}),Bt.internal.acroformPlugin.isInitialized=!0}},Ku=Ks.__acroform__.arrayToPdfArray=function(Bt,pt,St){var _t=function(me){return me};if(Array.isArray(Bt)){for(var oe="[",qt=0;qt<Bt.length;qt++)switch(qt!==0&&(oe+=" "),(0,Lt.Z)(Bt[qt])){case"boolean":case"number":case"object":oe+=Bt[qt].toString();break;case"string":Bt[qt].substr(0,1)!=="/"?(pt!==void 0&&St&&(_t=St.internal.getEncryptor(pt)),oe+="("+wl(_t(Bt[qt].toString()))+")"):oe+=Bt[qt].toString()}return oe+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$l=function(Bt,pt,St){var _t=function(oe){return oe};return pt!==void 0&&St&&(_t=St.internal.getEncryptor(pt)),(Bt=Bt||"").toString(),Bt="("+wl(_t(Bt))+")"},fr=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(Bt){this._objId=Bt}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fr.prototype.toString=function(){return this.objId+" 0 R"},fr.prototype.putStream=function(){var Bt=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Bt,objectId:this.objId}),this.scope.internal.out("endobj")},fr.prototype.getKeyValueListForStream=function(){var Bt=[],pt=Object.getOwnPropertyNames(this).filter(function(qt){return qt!="content"&&qt!="appearanceStreamContent"&&qt!="scope"&&qt!="objId"&&qt.substring(0,1)!="_"});for(var St in pt)if(Object.getOwnPropertyDescriptor(this,pt[St]).configurable===!1){var _t=pt[St],oe=this[_t];oe&&(Array.isArray(oe)?Bt.push({key:_t,value:Ku(oe,this.objId,this.scope)}):oe instanceof fr?(oe.scope=this.scope,Bt.push({key:_t,value:oe.objId+" 0 R"})):typeof oe!="function"&&Bt.push({key:_t,value:oe}))}return Bt};var Xa=function(){fr.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 Bt,pt=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return pt},set:function(St){pt=St}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(St){Bt=St.trim()},get:function(){return Bt||null}})};Za(Xa,fr);var ol=function(){fr.call(this);var Bt,pt=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return pt.length>0?pt:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return pt}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Bt){var St=function(_t){return _t};return this.scope&&(St=this.scope.internal.getEncryptor(this.objId)),"("+wl(St(Bt))+")"}},set:function(St){Bt=St}})};Za(ol,fr);var Fl=function Bt(){fr.call(this);var pt=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return pt},set:function(Hn){if(isNaN(Hn))throw new Error('Invalid value "'+Hn+'" for attribute F supplied.');pt=Hn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ns(pt,3)},set:function(Hn){Hn?this.F=Es(pt,3):this.F=_s(pt,3)}});var St=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return St},set:function(Hn){if(isNaN(Hn))throw new Error('Invalid value "'+Hn+'" for attribute Ff supplied.');St=Hn}});var _t=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(_t.length!==0)return _t},set:function(Hn){_t=Hn!==void 0?Hn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!_t||isNaN(_t[0])?0:_t[0]},set:function(Hn){_t[0]=Hn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!_t||isNaN(_t[1])?0:_t[1]},set:function(Hn){_t[1]=Hn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!_t||isNaN(_t[2])?0:_t[2]},set:function(Hn){_t[2]=Hn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!_t||isNaN(_t[3])?0:_t[3]},set:function(Hn){_t[3]=Hn}});var oe="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return oe},set:function(Hn){switch(Hn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":oe=Hn;break;default:throw new Error('Invalid value "'+Hn+'" for attribute FT supplied.')}}});var qt=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!qt||qt.length<1){if(this instanceof Pu)return;qt="FieldObject"+Bt.FieldNum++}var Hn=function(gi){return gi};return this.scope&&(Hn=this.scope.internal.getEncryptor(this.objId)),"("+wl(Hn(qt))+")"},set:function(Hn){qt=Hn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return qt},set:function(Hn){qt=Hn}});var me="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return me},set:function(Hn){me=Hn}});var Ce="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Ce},set:function(Hn){Ce=Hn}});var Le=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Le},set:function(Hn){Le=Hn}});var Je=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Je===void 0?50/yl:Je},set:function(Hn){Je=Hn}});var fn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return fn},set:function(Hn){fn=Hn}});var gn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!gn||this instanceof Pu||this instanceof fu))return $l(gn,this.objId,this.scope)},set:function(Hn){Hn=Hn.toString(),gn=Hn}});var En=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(En)return this instanceof qa?En:$l(En,this.objId,this.scope)},set:function(Hn){Hn=Hn.toString(),En=this instanceof qa?Hn:Hn.substr(0,1)==="("?Dl(Hn.substr(1,Hn.length-2)):Dl(Hn)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof qa?Dl(En.substr(1,En.length-1)):En},set:function(Hn){Hn=Hn.toString(),En=this instanceof qa?"/"+Hn:Hn}});var We=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(We)return We},set:function(Hn){this.V=Hn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(We)return this instanceof qa?We:$l(We,this.objId,this.scope)},set:function(Hn){Hn=Hn.toString(),We=this instanceof qa?Hn:Hn.substr(0,1)==="("?Dl(Hn.substr(1,Hn.length-2)):Dl(Hn)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof qa?Dl(We.substr(1,We.length-1)):We},set:function(Hn){Hn=Hn.toString(),We=this instanceof qa?"/"+Hn:Hn}}),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 vi,ei=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return ei},set:function(Hn){Hn=!!Hn,ei=Hn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(vi)return vi},set:function(Hn){vi=Hn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,1)},set:function(Hn){Hn?this.Ff=Es(this.Ff,1):this.Ff=_s(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,2)},set:function(Hn){Hn?this.Ff=Es(this.Ff,2):this.Ff=_s(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,3)},set:function(Hn){Hn?this.Ff=Es(this.Ff,3):this.Ff=_s(this.Ff,3)}});var wi=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(wi!==null)return wi},set:function(Hn){if([0,1,2].indexOf(Hn)===-1)throw new Error('Invalid value "'+Hn+'" for attribute Q supplied.');wi=Hn}}),Object.defineProperty(this,"textAlign",{get:function(){var Hn;switch(wi){case 0:default:Hn="left";break;case 1:Hn="center";break;case 2:Hn="right"}return Hn},configurable:!0,enumerable:!0,set:function(Hn){switch(Hn){case"right":case 2:wi=2;break;case"center":case 1:wi=1;break;case"left":case 0:default:wi=0}}})};Za(Fl,fr);var au=function(){Fl.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Bt=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Bt},set:function(St){Bt=St}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Bt},set:function(St){Bt=St}});var pt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ku(pt,this.objId,this.scope)},set:function(St){var _t,oe;oe=[],typeof(_t=St)=="string"&&(oe=function(qt,me,Ce){Ce||(Ce=1);for(var Le,Je=[];Le=me.exec(qt);)Je.push(Le[Ce]);return Je}(_t,/\((.*?)\)/g)),pt=oe}}),this.getOptions=function(){return pt},this.setOptions=function(St){pt=St,this.sort&&pt.sort()},this.addOption=function(St){St=(St=St||"").toString(),pt.push(St),this.sort&&pt.sort()},this.removeOption=function(St,_t){for(_t=_t||!1,St=(St=St||"").toString();pt.indexOf(St)!==-1&&(pt.splice(pt.indexOf(St),1),_t!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,18)},set:function(St){St?this.Ff=Es(this.Ff,18):this.Ff=_s(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,19)},set:function(St){this.combo===!0&&(St?this.Ff=Es(this.Ff,19):this.Ff=_s(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,20)},set:function(St){St?(this.Ff=Es(this.Ff,20),pt.sort()):this.Ff=_s(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,22)},set:function(St){St?this.Ff=Es(this.Ff,22):this.Ff=_s(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,23)},set:function(St){St?this.Ff=Es(this.Ff,23):this.Ff=_s(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,27)},set:function(St){St?this.Ff=Es(this.Ff,27):this.Ff=_s(this.Ff,27)}}),this.hasAppearanceStream=!1};Za(au,Fl);var Ja=function(){au.call(this),this.fontName="helvetica",this.combo=!1};Za(Ja,au);var Eo=function(){Ja.call(this),this.combo=!0};Za(Eo,Ja);var ja=function(){Eo.call(this),this.edit=!0};Za(ja,Eo);var qa=function(){Fl.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,15)},set:function(St){St?this.Ff=Es(this.Ff,15):this.Ff=_s(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,16)},set:function(St){St?this.Ff=Es(this.Ff,16):this.Ff=_s(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,17)},set:function(St){St?this.Ff=Es(this.Ff,17):this.Ff=_s(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,26)},set:function(St){St?this.Ff=Es(this.Ff,26):this.Ff=_s(this.Ff,26)}});var Bt,pt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var St=function(qt){return qt};if(this.scope&&(St=this.scope.internal.getEncryptor(this.objId)),Object.keys(pt).length!==0){var _t,oe=[];for(_t in oe.push("<<"),pt)oe.push("/"+_t+" ("+wl(St(pt[_t]))+")");return oe.push(">>"),oe.join(`
`)}},set:function(St){(0,Lt.Z)(St)==="object"&&(pt=St)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return pt.CA||""},set:function(St){typeof St=="string"&&(pt.CA=St)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Bt},set:function(St){Bt=St}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Bt.substr(1,Bt.length-1)},set:function(St){Bt="/"+St}})};Za(qa,Fl);var lu=function(){qa.call(this),this.pushButton=!0};Za(lu,qa);var Yl=function(){qa.call(this),this.radio=!0,this.pushButton=!1;var Bt=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Bt},set:function(pt){Bt=pt!==void 0?pt:[]}})};Za(Yl,qa);var Pu=function(){var Bt,pt;Fl.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Bt},set:function(oe){Bt=oe}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return pt},set:function(oe){pt=oe}});var St,_t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var oe=function(Ce){return Ce};this.scope&&(oe=this.scope.internal.getEncryptor(this.objId));var qt,me=[];for(qt in me.push("<<"),_t)me.push("/"+qt+" ("+wl(oe(_t[qt]))+")");return me.push(">>"),me.join(`
`)},set:function(oe){(0,Lt.Z)(oe)==="object"&&(_t=oe)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return _t.CA||""},set:function(oe){typeof oe=="string"&&(_t.CA=oe)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return St},set:function(oe){St=oe}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return St.substr(1,St.length-1)},set:function(oe){St="/"+oe}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=_o.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Za(Pu,Fl),Yl.prototype.setAppearance=function(Bt){if(!("createAppearanceStream"in Bt)||!("getCA"in Bt))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var pt in this.Kids)if(this.Kids.hasOwnProperty(pt)){var St=this.Kids[pt];St.appearanceStreamContent=Bt.createAppearanceStream(St.optionName),St.caption=Bt.getCA()}},Yl.prototype.createOption=function(Bt){var pt=new Pu;return pt.Parent=this,pt.optionName=Bt,this.Kids.push(pt),_d.call(this.scope,pt),pt};var bu=function(){qa.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=_o.CheckBox.createAppearanceStream()};Za(bu,qa);var fu=function(){Fl.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,13)},set:function(pt){pt?this.Ff=Es(this.Ff,13):this.Ff=_s(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,21)},set:function(pt){pt?this.Ff=Es(this.Ff,21):this.Ff=_s(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,23)},set:function(pt){pt?this.Ff=Es(this.Ff,23):this.Ff=_s(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,24)},set:function(pt){pt?this.Ff=Es(this.Ff,24):this.Ff=_s(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,25)},set:function(pt){pt?this.Ff=Es(this.Ff,25):this.Ff=_s(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,26)},set:function(pt){pt?this.Ff=Es(this.Ff,26):this.Ff=_s(this.Ff,26)}});var Bt=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Bt},set:function(pt){Bt=pt}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Bt},set:function(pt){Number.isInteger(pt)&&(Bt=pt)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Za(fu,Fl);var nu=function(){fu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ns(this.Ff,14)},set:function(Bt){Bt?this.Ff=Es(this.Ff,14):this.Ff=_s(this.Ff,14)}}),this.password=!0};Za(nu,fu);var _o={CheckBox:{createAppearanceStream:function(){return{N:{On:_o.CheckBox.YesNormal},D:{On:_o.CheckBox.YesPushDown,Off:_o.CheckBox.OffPushDown}}},YesPushDown:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=[],_t=Bt.scope.internal.getFont(Bt.fontName,Bt.fontStyle).id,oe=Bt.scope.__private__.encodeColorString(Bt.color),qt=Qs(Bt,Bt.caption);return St.push("0.749023 g"),St.push("0 0 "+Bs(_o.internal.getWidth(Bt))+" "+Bs(_o.internal.getHeight(Bt))+" re"),St.push("f"),St.push("BMC"),St.push("q"),St.push("0 0 1 rg"),St.push("/"+_t+" "+Bs(qt.fontSize)+" Tf "+oe),St.push("BT"),St.push(qt.text),St.push("ET"),St.push("Q"),St.push("EMC"),pt.stream=St.join(`
`),pt},YesNormal:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=Bt.scope.internal.getFont(Bt.fontName,Bt.fontStyle).id,_t=Bt.scope.__private__.encodeColorString(Bt.color),oe=[],qt=_o.internal.getHeight(Bt),me=_o.internal.getWidth(Bt),Ce=Qs(Bt,Bt.caption);return oe.push("1 g"),oe.push("0 0 "+Bs(me)+" "+Bs(qt)+" re"),oe.push("f"),oe.push("q"),oe.push("0 0 1 rg"),oe.push("0 0 "+Bs(me-1)+" "+Bs(qt-1)+" re"),oe.push("W"),oe.push("n"),oe.push("0 g"),oe.push("BT"),oe.push("/"+St+" "+Bs(Ce.fontSize)+" Tf "+_t),oe.push(Ce.text),oe.push("ET"),oe.push("Q"),pt.stream=oe.join(`
`),pt},OffPushDown:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=[];return St.push("0.749023 g"),St.push("0 0 "+Bs(_o.internal.getWidth(Bt))+" "+Bs(_o.internal.getHeight(Bt))+" re"),St.push("f"),pt.stream=St.join(`
`),pt}},RadioButton:{Circle:{createAppearanceStream:function(Bt){var pt={D:{Off:_o.RadioButton.Circle.OffPushDown},N:{}};return pt.N[Bt]=_o.RadioButton.Circle.YesNormal,pt.D[Bt]=_o.RadioButton.Circle.YesPushDown,pt},getCA:function(){return"l"},YesNormal:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=[],_t=_o.internal.getWidth(Bt)<=_o.internal.getHeight(Bt)?_o.internal.getWidth(Bt)/4:_o.internal.getHeight(Bt)/4;_t=Number((.9*_t).toFixed(5));var oe=_o.internal.Bezier_C,qt=Number((_t*oe).toFixed(5));return St.push("q"),St.push("1 0 0 1 "+ui(_o.internal.getWidth(Bt)/2)+" "+ui(_o.internal.getHeight(Bt)/2)+" cm"),St.push(_t+" 0 m"),St.push(_t+" "+qt+" "+qt+" "+_t+" 0 "+_t+" c"),St.push("-"+qt+" "+_t+" -"+_t+" "+qt+" -"+_t+" 0 c"),St.push("-"+_t+" -"+qt+" -"+qt+" -"+_t+" 0 -"+_t+" c"),St.push(qt+" -"+_t+" "+_t+" -"+qt+" "+_t+" 0 c"),St.push("f"),St.push("Q"),pt.stream=St.join(`
`),pt},YesPushDown:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=[],_t=_o.internal.getWidth(Bt)<=_o.internal.getHeight(Bt)?_o.internal.getWidth(Bt)/4:_o.internal.getHeight(Bt)/4;_t=Number((.9*_t).toFixed(5));var oe=Number((2*_t).toFixed(5)),qt=Number((oe*_o.internal.Bezier_C).toFixed(5)),me=Number((_t*_o.internal.Bezier_C).toFixed(5));return St.push("0.749023 g"),St.push("q"),St.push("1 0 0 1 "+ui(_o.internal.getWidth(Bt)/2)+" "+ui(_o.internal.getHeight(Bt)/2)+" cm"),St.push(oe+" 0 m"),St.push(oe+" "+qt+" "+qt+" "+oe+" 0 "+oe+" c"),St.push("-"+qt+" "+oe+" -"+oe+" "+qt+" -"+oe+" 0 c"),St.push("-"+oe+" -"+qt+" -"+qt+" -"+oe+" 0 -"+oe+" c"),St.push(qt+" -"+oe+" "+oe+" -"+qt+" "+oe+" 0 c"),St.push("f"),St.push("Q"),St.push("0 g"),St.push("q"),St.push("1 0 0 1 "+ui(_o.internal.getWidth(Bt)/2)+" "+ui(_o.internal.getHeight(Bt)/2)+" cm"),St.push(_t+" 0 m"),St.push(_t+" "+me+" "+me+" "+_t+" 0 "+_t+" c"),St.push("-"+me+" "+_t+" -"+_t+" "+me+" -"+_t+" 0 c"),St.push("-"+_t+" -"+me+" -"+me+" -"+_t+" 0 -"+_t+" c"),St.push(me+" -"+_t+" "+_t+" -"+me+" "+_t+" 0 c"),St.push("f"),St.push("Q"),pt.stream=St.join(`
`),pt},OffPushDown:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=[],_t=_o.internal.getWidth(Bt)<=_o.internal.getHeight(Bt)?_o.internal.getWidth(Bt)/4:_o.internal.getHeight(Bt)/4;_t=Number((.9*_t).toFixed(5));var oe=Number((2*_t).toFixed(5)),qt=Number((oe*_o.internal.Bezier_C).toFixed(5));return St.push("0.749023 g"),St.push("q"),St.push("1 0 0 1 "+ui(_o.internal.getWidth(Bt)/2)+" "+ui(_o.internal.getHeight(Bt)/2)+" cm"),St.push(oe+" 0 m"),St.push(oe+" "+qt+" "+qt+" "+oe+" 0 "+oe+" c"),St.push("-"+qt+" "+oe+" -"+oe+" "+qt+" -"+oe+" 0 c"),St.push("-"+oe+" -"+qt+" -"+qt+" -"+oe+" 0 -"+oe+" c"),St.push(qt+" -"+oe+" "+oe+" -"+qt+" "+oe+" 0 c"),St.push("f"),St.push("Q"),pt.stream=St.join(`
`),pt}},Cross:{createAppearanceStream:function(Bt){var pt={D:{Off:_o.RadioButton.Cross.OffPushDown},N:{}};return pt.N[Bt]=_o.RadioButton.Cross.YesNormal,pt.D[Bt]=_o.RadioButton.Cross.YesPushDown,pt},getCA:function(){return"8"},YesNormal:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=[],_t=_o.internal.calculateCross(Bt);return St.push("q"),St.push("1 1 "+Bs(_o.internal.getWidth(Bt)-2)+" "+Bs(_o.internal.getHeight(Bt)-2)+" re"),St.push("W"),St.push("n"),St.push(Bs(_t.x1.x)+" "+Bs(_t.x1.y)+" m"),St.push(Bs(_t.x2.x)+" "+Bs(_t.x2.y)+" l"),St.push(Bs(_t.x4.x)+" "+Bs(_t.x4.y)+" m"),St.push(Bs(_t.x3.x)+" "+Bs(_t.x3.y)+" l"),St.push("s"),St.push("Q"),pt.stream=St.join(`
`),pt},YesPushDown:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=_o.internal.calculateCross(Bt),_t=[];return _t.push("0.749023 g"),_t.push("0 0 "+Bs(_o.internal.getWidth(Bt))+" "+Bs(_o.internal.getHeight(Bt))+" re"),_t.push("f"),_t.push("q"),_t.push("1 1 "+Bs(_o.internal.getWidth(Bt)-2)+" "+Bs(_o.internal.getHeight(Bt)-2)+" re"),_t.push("W"),_t.push("n"),_t.push(Bs(St.x1.x)+" "+Bs(St.x1.y)+" m"),_t.push(Bs(St.x2.x)+" "+Bs(St.x2.y)+" l"),_t.push(Bs(St.x4.x)+" "+Bs(St.x4.y)+" m"),_t.push(Bs(St.x3.x)+" "+Bs(St.x3.y)+" l"),_t.push("s"),_t.push("Q"),pt.stream=_t.join(`
`),pt},OffPushDown:function(Bt){var pt=ju(Bt);pt.scope=Bt.scope;var St=[];return St.push("0.749023 g"),St.push("0 0 "+Bs(_o.internal.getWidth(Bt))+" "+Bs(_o.internal.getHeight(Bt))+" re"),St.push("f"),pt.stream=St.join(`
`),pt}}},createDefaultAppearanceStream:function(Bt){var pt=Bt.scope.internal.getFont(Bt.fontName,Bt.fontStyle).id,St=Bt.scope.__private__.encodeColorString(Bt.color);return"/"+pt+" "+Bt.fontSize+" Tf "+St}};_o.internal={Bezier_C:.551915024494,calculateCross:function(Bt){var pt=_o.internal.getWidth(Bt),St=_o.internal.getHeight(Bt),_t=Math.min(pt,St);return{x1:{x:(pt-_t)/2,y:(St-_t)/2+_t},x2:{x:(pt-_t)/2+_t,y:(St-_t)/2},x3:{x:(pt-_t)/2,y:(St-_t)/2},x4:{x:(pt-_t)/2+_t,y:(St-_t)/2+_t}}}},_o.internal.getWidth=function(Bt){var pt=0;return(0,Lt.Z)(Bt)==="object"&&(pt=mh(Bt.Rect[2])),pt},_o.internal.getHeight=function(Bt){var pt=0;return(0,Lt.Z)(Bt)==="object"&&(pt=mh(Bt.Rect[3])),pt};var _d=Ks.addField=function(Bt){if(Su(this,Bt),!(Bt instanceof Fl))throw new Error("Invalid argument passed to jsPDF.addField.");var pt;return(pt=Bt).scope.internal.acroformPlugin.printedOut&&(pt.scope.internal.acroformPlugin.printedOut=!1,pt.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),pt.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(pt),Bt.page=Bt.scope.internal.getCurrentPageInfo().pageNumber,this};Ks.AcroFormChoiceField=au,Ks.AcroFormListBox=Ja,Ks.AcroFormComboBox=Eo,Ks.AcroFormEditBox=ja,Ks.AcroFormButton=qa,Ks.AcroFormPushButton=lu,Ks.AcroFormRadioButton=Yl,Ks.AcroFormCheckBox=bu,Ks.AcroFormTextField=fu,Ks.AcroFormPasswordField=nu,Ks.AcroFormAppearance=_o,Ks.AcroForm={ChoiceField:au,ListBox:Ja,ComboBox:Eo,EditBox:ja,Button:qa,PushButton:lu,RadioButton:Yl,CheckBox:bu,TextField:fu,PasswordField:nu,Appearance:_o},Ho.AcroForm={ChoiceField:au,ListBox:Ja,ComboBox:Eo,EditBox:ja,Button:qa,PushButton:lu,RadioButton:Yl,CheckBox:bu,TextField:fu,PasswordField:nu,Appearance:_o};var Eu=Ho.AcroForm;function yd(Bt){return Bt.reduce(function(pt,St,_t){return pt[St]=_t,pt},{})}(function(Bt){Bt.__addimage__={};var pt="UNKNOWN",St={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]]},_t=Bt.__addimage__.getImageFileTypeByImageData=function(qn,oi){var ye,we,Ye,tn,yn,on=pt;if((oi=oi||pt)==="RGBA"||qn.data!==void 0&&qn.data instanceof Uint8ClampedArray&&"height"in qn&&"width"in qn)return"RGBA";if(lo(qn))for(yn in St)for(Ye=St[yn],ye=0;ye<Ye.length;ye+=1){for(tn=!0,we=0;we<Ye[ye].length;we+=1)if(Ye[ye][we]!==void 0&&Ye[ye][we]!==qn[we]){tn=!1;break}if(tn===!0){on=yn;break}}else for(yn in St)for(Ye=St[yn],ye=0;ye<Ye.length;ye+=1){for(tn=!0,we=0;we<Ye[ye].length;we+=1)if(Ye[ye][we]!==void 0&&Ye[ye][we]!==qn.charCodeAt(we)){tn=!1;break}if(tn===!0){on=yn;break}}return on===pt&&oi!==pt&&(on=oi),on},oe=function qn(oi){for(var ye=this.internal.write,we=this.internal.putStream,Ye=(0,this.internal.getFilters)();Ye.indexOf("FlateEncode")!==-1;)Ye.splice(Ye.indexOf("FlateEncode"),1);oi.objectId=this.internal.newObject();var tn=[];if(tn.push({key:"Type",value:"/XObject"}),tn.push({key:"Subtype",value:"/Image"}),tn.push({key:"Width",value:oi.width}),tn.push({key:"Height",value:oi.height}),oi.colorSpace===wi.INDEXED?tn.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(oi.palette.length/3-1)+" "+("sMask"in oi&&oi.sMask!==void 0?oi.objectId+2:oi.objectId+1)+" 0 R]"}):(tn.push({key:"ColorSpace",value:"/"+oi.colorSpace}),oi.colorSpace===wi.DEVICE_CMYK&&tn.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),tn.push({key:"BitsPerComponent",value:oi.bitsPerComponent}),"decodeParameters"in oi&&oi.decodeParameters!==void 0&&tn.push({key:"DecodeParms",value:"<<"+oi.decodeParameters+">>"}),"transparency"in oi&&Array.isArray(oi.transparency)){for(var yn="",on=0,Dn=oi.transparency.length;on<Dn;on++)yn+=oi.transparency[on]+" "+oi.transparency[on]+" ";tn.push({key:"Mask",value:"["+yn+"]"})}oi.sMask!==void 0&&tn.push({key:"SMask",value:oi.objectId+1+" 0 R"});var Rn=oi.filter!==void 0?["/"+oi.filter]:void 0;if(we({data:oi.data,additionalKeyValues:tn,alreadyAppliedFilters:Rn,objectId:oi.objectId}),ye("endobj"),"sMask"in oi&&oi.sMask!==void 0){var ti="/Predictor "+oi.predictor+" /Colors 1 /BitsPerComponent "+oi.bitsPerComponent+" /Columns "+oi.width,ze={width:oi.width,height:oi.height,colorSpace:"DeviceGray",bitsPerComponent:oi.bitsPerComponent,decodeParameters:ti,data:oi.sMask};"filter"in oi&&(ze.filter=oi.filter),qn.call(this,ze)}if(oi.colorSpace===wi.INDEXED){var cn=this.internal.newObject();we({data:Di(new Uint8Array(oi.palette)),objectId:cn}),ye("endobj")}},qt=function(){var qn=this.internal.collections.addImage_images;for(var oi in qn)oe.call(this,qn[oi])},me=function(){var qn,oi=this.internal.collections.addImage_images,ye=this.internal.write;for(var we in oi)ye("/I"+(qn=oi[we]).index,qn.objectId,"0","R")},Ce=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",qt),this.internal.events.subscribe("putXobjectDict",me))},Le=function(){var qn=this.internal.collections.addImage_images;return Ce.call(this),qn},Je=function(){return Object.keys(this.internal.collections.addImage_images).length},fn=function(qn){return typeof Bt["process"+qn.toUpperCase()]=="function"},gn=function(qn){return(0,Lt.Z)(qn)==="object"&&qn.nodeType===1},En=function(qn,oi){if(qn.nodeName==="IMG"&&qn.hasAttribute("src")){var ye=""+qn.getAttribute("src");if(ye.indexOf("data:image/")===0)return fs(unescape(ye).split("base64,").pop());var we=Bt.loadFile(ye,!0);if(we!==void 0)return we}if(qn.nodeName==="CANVAS"){if(qn.width===0||qn.height===0)throw new Error("Given canvas must have data. Canvas width: "+qn.width+", height: "+qn.height);var Ye;switch(oi){case"PNG":Ye="image/png";break;case"WEBP":Ye="image/webp";break;case"JPEG":case"JPG":default:Ye="image/jpeg"}return fs(qn.toDataURL(Ye,1).split("base64,").pop())}},We=function(qn){var oi=this.internal.collections.addImage_images;if(oi){for(var ye in oi)if(qn===oi[ye].alias)return oi[ye]}},vi=function(qn,oi,ye){return qn||oi||(qn=-96,oi=-96),qn<0&&(qn=-1*ye.width*72/qn/this.internal.scaleFactor),oi<0&&(oi=-1*ye.height*72/oi/this.internal.scaleFactor),qn===0&&(qn=oi*ye.width/ye.height),oi===0&&(oi=qn*ye.height/ye.width),[qn,oi]},ei=function(qn,oi,ye,we,Ye,tn){var yn=vi.call(this,ye,we,Ye),on=this.internal.getCoordinateString,Dn=this.internal.getVerticalCoordinateString,Rn=Le.call(this);if(ye=yn[0],we=yn[1],Rn[Ye.index]=Ye,tn){tn*=Math.PI/180;var ti=Math.cos(tn),ze=Math.sin(tn),cn=function(Gn){return Gn.toFixed(4)},vn=[cn(ti),cn(ze),cn(-1*ze),cn(ti),0,0,"cm"]}this.internal.write("q"),tn?(this.internal.write([1,"0","0",1,on(qn),Dn(oi+we),"cm"].join(" ")),this.internal.write(vn.join(" ")),this.internal.write([on(ye),"0","0",on(we),"0","0","cm"].join(" "))):this.internal.write([on(ye),"0","0",on(we),on(qn),Dn(oi+we),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ye.index+" Do"),this.internal.write("Q")},wi=Bt.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"};Bt.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 Hn=Bt.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},gi=Bt.__addimage__.sHashCode=function(qn){var oi,ye,we=0;if(typeof qn=="string")for(ye=qn.length,oi=0;oi<ye;oi++)we=(we<<5)-we+qn.charCodeAt(oi),we|=0;else if(lo(qn))for(ye=qn.byteLength/2,oi=0;oi<ye;oi++)we=(we<<5)-we+qn[oi],we|=0;return we},zi=Bt.__addimage__.validateStringAsBase64=function(qn){(qn=qn||"").toString().trim();var oi=!0;return qn.length===0&&(oi=!1),qn.length%4!=0&&(oi=!1),/^[A-Za-z0-9+/]+$/.test(qn.substr(0,qn.length-2))===!1&&(oi=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(qn.substr(-2))===!1&&(oi=!1),oi},or=Bt.__addimage__.extractImageFromDataUrl=function(qn){var oi=(qn=qn||"").split("base64,"),ye=null;if(oi.length===2){var we=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(oi[0]);Array.isArray(we)&&(ye={mimeType:we[1],charset:we[2],data:oi[1]})}return ye},Lr=Bt.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Bt.__addimage__.isArrayBuffer=function(qn){return Lr()&&qn instanceof ArrayBuffer};var lo=Bt.__addimage__.isArrayBufferView=function(qn){return Lr()&&typeof Uint32Array!="undefined"&&(qn instanceof Int8Array||qn instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&qn instanceof Uint8ClampedArray||qn instanceof Int16Array||qn instanceof Uint16Array||qn instanceof Int32Array||qn instanceof Uint32Array||qn instanceof Float32Array||qn instanceof Float64Array)},mr=Bt.__addimage__.binaryStringToUint8Array=function(qn){for(var oi=qn.length,ye=new Uint8Array(oi),we=0;we<oi;we++)ye[we]=qn.charCodeAt(we);return ye},Di=Bt.__addimage__.arrayBufferToBinaryString=function(qn){for(var oi="",ye=lo(qn)?qn:new Uint8Array(qn),we=0;we<ye.length;we+=8192)oi+=String.fromCharCode.apply(null,ye.subarray(we,we+8192));return oi};Bt.addImage=function(){var qn,oi,ye,we,Ye,tn,yn,on,Dn;if(typeof arguments[1]=="number"?(oi=pt,ye=arguments[1],we=arguments[2],Ye=arguments[3],tn=arguments[4],yn=arguments[5],on=arguments[6],Dn=arguments[7]):(oi=arguments[1],ye=arguments[2],we=arguments[3],Ye=arguments[4],tn=arguments[5],yn=arguments[6],on=arguments[7],Dn=arguments[8]),(0,Lt.Z)(qn=arguments[0])==="object"&&!gn(qn)&&"imageData"in qn){var Rn=qn;qn=Rn.imageData,oi=Rn.format||oi||pt,ye=Rn.x||ye||0,we=Rn.y||we||0,Ye=Rn.w||Rn.width||Ye,tn=Rn.h||Rn.height||tn,yn=Rn.alias||yn,on=Rn.compression||on,Dn=Rn.rotation||Rn.angle||Dn}var ti=this.internal.getFilters();if(on===void 0&&ti.indexOf("FlateEncode")!==-1&&(on="SLOW"),isNaN(ye)||isNaN(we))throw new Error("Invalid coordinates passed to jsPDF.addImage");Ce.call(this);var ze=Cr.call(this,qn,oi,yn,on);return ei.call(this,ye,we,Ye,tn,ze,Dn),this};var Cr=function(qn,oi,ye,we){var Ye,tn,yn;if(typeof qn=="string"&&_t(qn)===pt){qn=unescape(qn);var on=Or(qn,!1);(on!==""||(on=Bt.loadFile(qn,!0))!==void 0)&&(qn=on)}if(gn(qn)&&(qn=En(qn,oi)),oi=_t(qn,oi),!fn(oi))throw new Error("addImage does not support files of type '"+oi+"', please ensure that a plugin for '"+oi+"' support is added.");if(((yn=ye)==null||yn.length===0)&&(ye=function(Dn){return typeof Dn=="string"||lo(Dn)?gi(Dn):lo(Dn.data)?gi(Dn.data):null}(qn)),(Ye=We.call(this,ye))||(Lr()&&(qn instanceof Uint8Array||oi==="RGBA"||(tn=qn,qn=mr(qn))),Ye=this["process"+oi.toUpperCase()](qn,Je.call(this),ye,function(Dn){return Dn&&typeof Dn=="string"&&(Dn=Dn.toUpperCase()),Dn in Bt.image_compression?Dn:Hn.NONE}(we),tn)),!Ye)throw new Error("An unknown error occurred whilst processing the image.");return Ye},Or=Bt.__addimage__.convertBase64ToBinaryString=function(qn,oi){var ye;oi=typeof oi!="boolean"||oi;var we,Ye="";if(typeof qn=="string"){we=(ye=or(qn))!==null?ye.data:qn;try{Ye=fs(we)}catch(tn){if(oi)throw zi(we)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+tn.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ye};Bt.getImageProperties=function(qn){var oi,ye,we="";if(gn(qn)&&(qn=En(qn)),typeof qn=="string"&&_t(qn)===pt&&((we=Or(qn,!1))===""&&(we=Bt.loadFile(qn)||""),qn=we),ye=_t(qn),!fn(ye))throw new Error("addImage does not support files of type '"+ye+"', please ensure that a plugin for '"+ye+"' support is added.");if(!Lr()||qn instanceof Uint8Array||(qn=mr(qn)),!(oi=this["process"+ye.toUpperCase()](qn)))throw new Error("An unknown error occurred whilst processing the image");return oi.fileType=ye,oi}})(Ho.API),function(Bt){var pt=function(St){if(St!==void 0&&St!="")return!0};Ho.API.events.push(["addPage",function(St){this.internal.getPageInfo(St.pageNumber).pageContext.annotations=[]}]),Bt.events.push(["putPage",function(St){for(var _t,oe,qt,me=this.internal.getCoordinateString,Ce=this.internal.getVerticalCoordinateString,Le=this.internal.getPageInfoByObjId(St.objId),Je=St.pageContext.annotations,fn=!1,gn=0;gn<Je.length&&!fn;gn++)switch((_t=Je[gn]).type){case"link":(pt(_t.options.url)||pt(_t.options.pageNumber))&&(fn=!0);break;case"reference":case"text":case"freetext":fn=!0}if(fn!=0){this.internal.write("/Annots [");for(var En=0;En<Je.length;En++){_t=Je[En];var We=this.internal.pdfEscape,vi=this.internal.getEncryptor(St.objId);switch(_t.type){case"reference":this.internal.write(" "+_t.object.objId+" 0 R ");break;case"text":var ei=this.internal.newAdditionalObject(),wi=this.internal.newAdditionalObject(),Hn=this.internal.getEncryptor(ei.objId),gi=_t.title||"Note";qt="<</Type /Annot /Subtype /Text "+(oe="/Rect ["+me(_t.bounds.x)+" "+Ce(_t.bounds.y+_t.bounds.h)+" "+me(_t.bounds.x+_t.bounds.w)+" "+Ce(_t.bounds.y)+"] ")+"/Contents ("+We(Hn(_t.contents))+")",qt+=" /Popup "+wi.objId+" 0 R",qt+=" /P "+Le.objId+" 0 R",qt+=" /T ("+We(Hn(gi))+") >>",ei.content=qt;var zi=ei.objId+" 0 R";qt="<</Type /Annot /Subtype /Popup "+(oe="/Rect ["+me(_t.bounds.x+30)+" "+Ce(_t.bounds.y+_t.bounds.h)+" "+me(_t.bounds.x+_t.bounds.w+30)+" "+Ce(_t.bounds.y)+"] ")+" /Parent "+zi,_t.open&&(qt+=" /Open true"),qt+=" >>",wi.content=qt,this.internal.write(ei.objId,"0 R",wi.objId,"0 R");break;case"freetext":oe="/Rect ["+me(_t.bounds.x)+" "+Ce(_t.bounds.y)+" "+me(_t.bounds.x+_t.bounds.w)+" "+Ce(_t.bounds.y+_t.bounds.h)+"] ";var or=_t.color||"#000000";qt="<</Type /Annot /Subtype /FreeText "+oe+"/Contents ("+We(vi(_t.contents))+")",qt+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+or+")",qt+=" /Border [0 0 0]",qt+=" >>",this.internal.write(qt);break;case"link":if(_t.options.name){var Lr=this.annotations._nameMap[_t.options.name];_t.options.pageNumber=Lr.page,_t.options.top=Lr.y}else _t.options.top||(_t.options.top=0);if(oe="/Rect ["+_t.finalBounds.x+" "+_t.finalBounds.y+" "+_t.finalBounds.w+" "+_t.finalBounds.h+"] ",qt="",_t.options.url)qt="<</Type /Annot /Subtype /Link "+oe+"/Border [0 0 0] /A <</S /URI /URI ("+We(vi(_t.options.url))+") >>";else if(_t.options.pageNumber)switch(qt="<</Type /Annot /Subtype /Link "+oe+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(_t.options.pageNumber).objId+" 0 R",_t.options.magFactor=_t.options.magFactor||"XYZ",_t.options.magFactor){case"Fit":qt+=" /Fit]";break;case"FitH":qt+=" /FitH "+_t.options.top+"]";break;case"FitV":_t.options.left=_t.options.left||0,qt+=" /FitV "+_t.options.left+"]";break;case"XYZ":default:var lo=Ce(_t.options.top);_t.options.left=_t.options.left||0,_t.options.zoom===void 0&&(_t.options.zoom=0),qt+=" /XYZ "+_t.options.left+" "+lo+" "+_t.options.zoom+"]"}qt!=""&&(qt+=" >>",this.internal.write(qt))}}this.internal.write("]")}}]),Bt.createAnnotation=function(St){var _t=this.internal.getCurrentPageInfo();switch(St.type){case"link":this.link(St.bounds.x,St.bounds.y,St.bounds.w,St.bounds.h,St);break;case"text":case"freetext":_t.pageContext.annotations.push(St)}},Bt.link=function(St,_t,oe,qt,me){var Ce=this.internal.getCurrentPageInfo(),Le=this.internal.getCoordinateString,Je=this.internal.getVerticalCoordinateString;Ce.pageContext.annotations.push({finalBounds:{x:Le(St),y:Je(_t),w:Le(St+oe),h:Je(_t+qt)},options:me,type:"link"})},Bt.textWithLink=function(St,_t,oe,qt){var me,Ce,Le=this.getTextWidth(St),Je=this.internal.getLineHeight()/this.internal.scaleFactor;if(qt.maxWidth!==void 0){Ce=qt.maxWidth;var fn=this.splitTextToSize(St,Ce).length;me=Math.ceil(Je*fn)}else Ce=Le,me=Je;return this.text(St,_t,oe,qt),oe+=.2*Je,qt.align==="center"&&(_t-=Le/2),qt.align==="right"&&(_t-=Le),this.link(_t,oe-Je,Ce,me,qt),Le},Bt.getTextWidth=function(St){var _t=this.internal.getFontSize();return this.getStringUnitWidth(St)*_t/this.internal.scaleFactor}}(Ho.API),function(Bt){var pt={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]},St={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}},_t={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},oe=[1570,1571,1573,1575];Bt.__arabicParser__={};var qt=Bt.__arabicParser__.isInArabicSubstitutionA=function(ei){return pt[ei.charCodeAt(0)]!==void 0},me=Bt.__arabicParser__.isArabicLetter=function(ei){return typeof ei=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(ei)},Ce=Bt.__arabicParser__.isArabicEndLetter=function(ei){return me(ei)&&qt(ei)&&pt[ei.charCodeAt(0)].length<=2},Le=Bt.__arabicParser__.isArabicAlfLetter=function(ei){return me(ei)&&oe.indexOf(ei.charCodeAt(0))>=0};Bt.__arabicParser__.arabicLetterHasIsolatedForm=function(ei){return me(ei)&&qt(ei)&&pt[ei.charCodeAt(0)].length>=1};var Je=Bt.__arabicParser__.arabicLetterHasFinalForm=function(ei){return me(ei)&&qt(ei)&&pt[ei.charCodeAt(0)].length>=2};Bt.__arabicParser__.arabicLetterHasInitialForm=function(ei){return me(ei)&&qt(ei)&&pt[ei.charCodeAt(0)].length>=3};var fn=Bt.__arabicParser__.arabicLetterHasMedialForm=function(ei){return me(ei)&&qt(ei)&&pt[ei.charCodeAt(0)].length==4},gn=Bt.__arabicParser__.resolveLigatures=function(ei){var wi=0,Hn=St,gi="",zi=0;for(wi=0;wi<ei.length;wi+=1)Hn[ei.charCodeAt(wi)]!==void 0?(zi++,typeof(Hn=Hn[ei.charCodeAt(wi)])=="number"&&(gi+=String.fromCharCode(Hn),Hn=St,zi=0),wi===ei.length-1&&(Hn=St,gi+=ei.charAt(wi-(zi-1)),wi-=zi-1,zi=0)):(Hn=St,gi+=ei.charAt(wi-zi),wi-=zi,zi=0);return gi};Bt.__arabicParser__.isArabicDiacritic=function(ei){return ei!==void 0&&_t[ei.charCodeAt(0)]!==void 0};var En=Bt.__arabicParser__.getCorrectForm=function(ei,wi,Hn){return me(ei)?qt(ei)===!1?-1:!Je(ei)||!me(wi)&&!me(Hn)||!me(Hn)&&Ce(wi)||Ce(ei)&&!me(wi)||Ce(ei)&&Le(wi)||Ce(ei)&&Ce(wi)?0:fn(ei)&&me(wi)&&!Ce(wi)&&me(Hn)&&Je(Hn)?3:Ce(ei)||!me(Hn)?1:2:-1},We=function(ei){var wi=0,Hn=0,gi=0,zi="",or="",Lr="",lo=(ei=ei||"").split("\\s+"),mr=[];for(wi=0;wi<lo.length;wi+=1){for(mr.push(""),Hn=0;Hn<lo[wi].length;Hn+=1)zi=lo[wi][Hn],or=lo[wi][Hn-1],Lr=lo[wi][Hn+1],me(zi)?(gi=En(zi,or,Lr),mr[wi]+=gi!==-1?String.fromCharCode(pt[zi.charCodeAt(0)][gi]):zi):mr[wi]+=zi;mr[wi]=gn(mr[wi])}return mr.join(" ")},vi=Bt.__arabicParser__.processArabic=Bt.processArabic=function(){var ei,wi=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Hn=[];if(Array.isArray(wi)){var gi=0;for(Hn=[],gi=0;gi<wi.length;gi+=1)Array.isArray(wi[gi])?Hn.push([We(wi[gi][0]),wi[gi][1],wi[gi][2]]):Hn.push([We(wi[gi])]);ei=Hn}else ei=We(wi);return typeof arguments[0]=="string"?ei:(arguments[0].text=ei,arguments[0])};Bt.events.push(["preProcessText",vi])}(Ho.API),Ho.API.autoPrint=function(Bt){var pt;switch((Bt=Bt||{}).variant=Bt.variant||"non-conform",Bt.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){pt=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 "+pt+" 0 R")})}return this},function(Bt){var pt=function(){var St=void 0;Object.defineProperty(this,"pdf",{get:function(){return St},set:function(Ce){St=Ce}});var _t=150;Object.defineProperty(this,"width",{get:function(){return _t},set:function(Ce){_t=isNaN(Ce)||Number.isInteger(Ce)===!1||Ce<0?150:Ce,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=_t+1)}});var oe=300;Object.defineProperty(this,"height",{get:function(){return oe},set:function(Ce){oe=isNaN(Ce)||Number.isInteger(Ce)===!1||Ce<0?300:Ce,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=oe+1)}});var qt=[];Object.defineProperty(this,"childNodes",{get:function(){return qt},set:function(Ce){qt=Ce}});var me={};Object.defineProperty(this,"style",{get:function(){return me},set:function(Ce){me=Ce}}),Object.defineProperty(this,"parentNode",{})};pt.prototype.getContext=function(St,_t){var oe;if((St=St||"2d")!=="2d")return null;for(oe in _t)this.pdf.context2d.hasOwnProperty(oe)&&(this.pdf.context2d[oe]=_t[oe]);return this.pdf.context2d._canvas=this,this.pdf.context2d},pt.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Bt.events.push(["initialized",function(){this.canvas=new pt,this.canvas.pdf=this}])}(Ho.API),function(Bt){var pt={left:0,top:0,bottom:0,right:0},St=!1,_t=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({},pt),this.internal.__cell__.margins.width=this.getPageWidth(),oe.call(this))},oe=function(){this.internal.__cell__.lastCell=new qt,this.internal.__cell__.pages=1},qt=function(){var Le=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Le},set:function(ei){Le=ei}});var Je=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Je},set:function(ei){Je=ei}});var fn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return fn},set:function(ei){fn=ei}});var gn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return gn},set:function(ei){gn=ei}});var En=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return En},set:function(ei){En=ei}});var We=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return We},set:function(ei){We=ei}});var vi=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return vi},set:function(ei){vi=ei}}),this};qt.prototype.clone=function(){return new qt(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},qt.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Bt.setHeaderFunction=function(Le){return _t.call(this),this.internal.__cell__.headerFunction=typeof Le=="function"?Le:void 0,this},Bt.getTextDimensions=function(Le,Je){_t.call(this);var fn=(Je=Je||{}).fontSize||this.getFontSize(),gn=Je.font||this.getFont(),En=Je.scaleFactor||this.internal.scaleFactor,We=0,vi=0,ei=0,wi=this;if(!Array.isArray(Le)&&typeof Le!="string"){if(typeof Le!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Le=String(Le)}var Hn=Je.maxWidth;Hn>0?typeof Le=="string"?Le=this.splitTextToSize(Le,Hn):Object.prototype.toString.call(Le)==="[object Array]"&&(Le=Le.reduce(function(zi,or){return zi.concat(wi.splitTextToSize(or,Hn))},[])):Le=Array.isArray(Le)?Le:[Le];for(var gi=0;gi<Le.length;gi++)We<(ei=this.getStringUnitWidth(Le[gi],{font:gn})*fn)&&(We=ei);return We!==0&&(vi=Le.length),{w:We/=En,h:Math.max((vi*fn*this.getLineHeightFactor()-fn*(this.getLineHeightFactor()-1))/En,0)}},Bt.cellAddPage=function(){_t.call(this),this.addPage();var Le=this.internal.__cell__.margins||pt;return this.internal.__cell__.lastCell=new qt(Le.left,Le.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var me=Bt.cell=function(){var Le;Le=arguments[0]instanceof qt?arguments[0]:new qt(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),_t.call(this);var Je=this.internal.__cell__.lastCell,fn=this.internal.__cell__.padding,gn=this.internal.__cell__.margins||pt,En=this.internal.__cell__.tableHeaderRow,We=this.internal.__cell__.printHeaders;return Je.lineNumber!==void 0&&(Je.lineNumber===Le.lineNumber?(Le.x=(Je.x||0)+(Je.width||0),Le.y=Je.y||0):Je.y+Je.height+Le.height+gn.bottom>this.getPageHeight()?(this.cellAddPage(),Le.y=gn.top,We&&En&&(this.printHeaderRow(Le.lineNumber,!0),Le.y+=En[0].height)):Le.y=Je.y+Je.height||Le.y),Le.text[0]!==void 0&&(this.rect(Le.x,Le.y,Le.width,Le.height,St===!0?"FD":void 0),Le.align==="right"?this.text(Le.text,Le.x+Le.width-fn,Le.y+fn,{align:"right",baseline:"top"}):Le.align==="center"?this.text(Le.text,Le.x+Le.width/2,Le.y+fn,{align:"center",baseline:"top",maxWidth:Le.width-fn-fn}):this.text(Le.text,Le.x+fn,Le.y+fn,{align:"left",baseline:"top",maxWidth:Le.width-fn-fn})),this.internal.__cell__.lastCell=Le,this};Bt.table=function(Le,Je,fn,gn,En){if(_t.call(this),!fn)throw new Error("No data for PDF table.");var We,vi,ei,wi,Hn=[],gi=[],zi=[],or={},Lr={},lo=[],mr=[],Di=(En=En||{}).autoSize||!1,Cr=En.printHeaders!==!1,Or=En.css&&En.css["font-size"]!==void 0?16*En.css["font-size"]:En.fontSize||12,qn=En.margins||Object.assign({width:this.getPageWidth()},pt),oi=typeof En.padding=="number"?En.padding:3,ye=En.headerBackgroundColor||"#c8c8c8",we=En.headerTextColor||"#000";if(oe.call(this),this.internal.__cell__.printHeaders=Cr,this.internal.__cell__.margins=qn,this.internal.__cell__.table_font_size=Or,this.internal.__cell__.padding=oi,this.internal.__cell__.headerBackgroundColor=ye,this.internal.__cell__.headerTextColor=we,this.setFontSize(Or),gn==null)gi=Hn=Object.keys(fn[0]),zi=Hn.map(function(){return"left"});else if(Array.isArray(gn)&&(0,Lt.Z)(gn[0])==="object")for(Hn=gn.map(function(Rn){return Rn.name}),gi=gn.map(function(Rn){return Rn.prompt||Rn.name||""}),zi=gn.map(function(Rn){return Rn.align||"left"}),We=0;We<gn.length;We+=1)Lr[gn[We].name]=gn[We].width*(19.049976/25.4);else Array.isArray(gn)&&typeof gn[0]=="string"&&(gi=Hn=gn,zi=Hn.map(function(){return"left"}));if(Di||Array.isArray(gn)&&typeof gn[0]=="string")for(We=0;We<Hn.length;We+=1){for(or[wi=Hn[We]]=fn.map(function(Rn){return Rn[wi]}),this.setFont(void 0,"bold"),lo.push(this.getTextDimensions(gi[We],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),vi=or[wi],this.setFont(void 0,"normal"),ei=0;ei<vi.length;ei+=1)lo.push(this.getTextDimensions(vi[ei],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Lr[wi]=Math.max.apply(null,lo)+oi+oi,lo=[]}if(Cr){var Ye={};for(We=0;We<Hn.length;We+=1)Ye[Hn[We]]={},Ye[Hn[We]].text=gi[We],Ye[Hn[We]].align=zi[We];var tn=Ce.call(this,Ye,Lr);mr=Hn.map(function(Rn){return new qt(Le,Je,Lr[Rn],tn,Ye[Rn].text,void 0,Ye[Rn].align)}),this.setTableHeaderRow(mr),this.printHeaderRow(1,!1)}var yn=gn.reduce(function(Rn,ti){return Rn[ti.name]=ti.align,Rn},{});for(We=0;We<fn.length;We+=1){"rowStart"in En&&En.rowStart instanceof Function&&En.rowStart({row:We,data:fn[We]},this);var on=Ce.call(this,fn[We],Lr);for(ei=0;ei<Hn.length;ei+=1){var Dn=fn[We][Hn[ei]];"cellStart"in En&&En.cellStart instanceof Function&&En.cellStart({row:We,col:ei,data:Dn},this),me.call(this,new qt(Le,Je,Lr[Hn[ei]],on,Dn,We+2,yn[Hn[ei]]))}}return this.internal.__cell__.table_x=Le,this.internal.__cell__.table_y=Je,this};var Ce=function(Le,Je){var fn=this.internal.__cell__.padding,gn=this.internal.__cell__.table_font_size,En=this.internal.scaleFactor;return Object.keys(Le).map(function(We){var vi=Le[We];return this.splitTextToSize(vi.hasOwnProperty("text")?vi.text:vi,Je[We]-fn-fn)},this).map(function(We){return this.getLineHeightFactor()*We.length*gn/En+fn+fn},this).reduce(function(We,vi){return Math.max(We,vi)},0)};Bt.setTableHeaderRow=function(Le){_t.call(this),this.internal.__cell__.tableHeaderRow=Le},Bt.printHeaderRow=function(Le,Je){if(_t.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var fn;if(St=!0,typeof this.internal.__cell__.headerFunction=="function"){var gn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new qt(gn[0],gn[1],gn[2],gn[3],void 0,-1)}this.setFont(void 0,"bold");for(var En=[],We=0;We<this.internal.__cell__.tableHeaderRow.length;We+=1){fn=this.internal.__cell__.tableHeaderRow[We].clone(),Je&&(fn.y=this.internal.__cell__.margins.top||0,En.push(fn)),fn.lineNumber=Le;var vi=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),me.call(this,fn),this.setTextColor(vi)}En.length>0&&this.setTableHeaderRow(En),this.setFont(void 0,"normal"),St=!1}}(Ho.API);var kh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},nc=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],sl=yd(nc),Ch=[100,200,300,400,500,600,700,800,900],Qd=yd(Ch);function Oc(Bt){var pt=Bt.family.replace(/"|'/g,"").toLowerCase(),St=function(qt){return kh[qt=qt||"normal"]?qt:"normal"}(Bt.style),_t=function(qt){if(!qt)return 400;if(typeof qt=="number")return qt>=100&&qt<=900&&qt%100==0?qt:400;if(/^\d00$/.test(qt))return parseInt(qt);switch(qt){case"bold":return 700;case"normal":default:return 400}}(Bt.weight),oe=function(qt){return typeof sl[qt=qt||"normal"]=="number"?qt:"normal"}(Bt.stretch);return{family:pt,style:St,weight:_t,stretch:oe,src:Bt.src||[],ref:Bt.ref||{name:pt,style:[oe,St,_t].join(" ")}}}function Dc(Bt,pt,St,_t){var oe;for(oe=St;oe>=0&&oe<pt.length;oe+=_t)if(Bt[pt[oe]])return Bt[pt[oe]];for(oe=St;oe>=0&&oe<pt.length;oe-=_t)if(Bt[pt[oe]])return Bt[pt[oe]]}var Fs={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ga={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Uu(Bt){return[Bt.stretch,Bt.style,Bt.weight,Bt.family].join(" ")}function tl(Bt,pt,St){for(var _t=(St=St||{}).defaultFontFamily||"times",oe=Object.assign({},Fs,St.genericFontFamilies||{}),qt=null,me=null,Ce=0;Ce<pt.length;++Ce)if(oe[(qt=Oc(pt[Ce])).family]&&(qt.family=oe[qt.family]),Bt.hasOwnProperty(qt.family)){me=Bt[qt.family];break}if(!(me=me||Bt[_t]))throw new Error("Could not find a font-family for the rule '"+Uu(qt)+"' and default family '"+_t+"'.");if(me=function(Le,Je){if(Je[Le])return Je[Le];var fn=sl[Le],gn=fn<=sl.normal?-1:1,En=Dc(Je,nc,fn,gn);if(!En)throw new Error("Could not find a matching font-stretch value for "+Le);return En}(qt.stretch,me),me=function(Le,Je){if(Je[Le])return Je[Le];for(var fn=kh[Le],gn=0;gn<fn.length;++gn)if(Je[fn[gn]])return Je[fn[gn]];throw new Error("Could not find a matching font-style for "+Le)}(qt.style,me),!(me=function(Le,Je){if(Je[Le])return Je[Le];if(Le===400&&Je[500])return Je[500];if(Le===500&&Je[400])return Je[400];var fn=Qd[Le],gn=Dc(Je,Ch,fn,Le<400?-1:1);if(!gn)throw new Error("Could not find a matching font-weight for value "+Le);return gn}(qt.weight,me)))throw new Error("Failed to resolve a font for the rule '"+Uu(qt)+"'.");return me}function al(Bt){return Bt.trimLeft()}function Ka(Bt,pt){for(var St=0;St<Bt.length;){if(Bt.charAt(St)===pt)return[Bt.substring(0,St),Bt.substring(St+1)];St+=1}return null}function ca(Bt){var pt=Bt.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return pt===null?null:[pt[0],Bt.substring(pt[0].length)]}var el,jl,fc,dh=["times"];(function(Bt){var pt,St,_t,oe,qt,me,Ce,Le,Je,fn=function(ze){return ze=ze||{},this.isStrokeTransparent=ze.isStrokeTransparent||!1,this.strokeOpacity=ze.strokeOpacity||1,this.strokeStyle=ze.strokeStyle||"#000000",this.fillStyle=ze.fillStyle||"#000000",this.isFillTransparent=ze.isFillTransparent||!1,this.fillOpacity=ze.fillOpacity||1,this.font=ze.font||"10px sans-serif",this.textBaseline=ze.textBaseline||"alphabetic",this.textAlign=ze.textAlign||"left",this.lineWidth=ze.lineWidth||1,this.lineJoin=ze.lineJoin||"miter",this.lineCap=ze.lineCap||"butt",this.path=ze.path||[],this.transform=ze.transform!==void 0?ze.transform.clone():new Le,this.globalCompositeOperation=ze.globalCompositeOperation||"normal",this.globalAlpha=ze.globalAlpha||1,this.clip_path=ze.clip_path||[],this.currentPoint=ze.currentPoint||new me,this.miterLimit=ze.miterLimit||10,this.lastPoint=ze.lastPoint||new me,this.lineDashOffset=ze.lineDashOffset||0,this.lineDash=ze.lineDash||[],this.margin=ze.margin||[0,0,0,0],this.prevPageLastElemOffset=ze.prevPageLastElemOffset||0,this.ignoreClearRect=typeof ze.ignoreClearRect!="boolean"||ze.ignoreClearRect,this};Bt.events.push(["initialized",function(){this.context2d=new gn(this),pt=this.internal.f2,St=this.internal.getCoordinateString,_t=this.internal.getVerticalCoordinateString,oe=this.internal.getHorizontalCoordinate,qt=this.internal.getVerticalCoordinate,me=this.internal.Point,Ce=this.internal.Rectangle,Le=this.internal.Matrix,Je=new fn}]);var gn=function(ze){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var cn=ze;Object.defineProperty(this,"pdf",{get:function(){return cn}});var vn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return vn},set:function(Ti){vn=!!Ti}});var Gn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Gn},set:function(Ti){Gn=!!Ti}});var Yn=0;Object.defineProperty(this,"posX",{get:function(){return Yn},set:function(Ti){isNaN(Ti)||(Yn=Ti)}});var ri=0;Object.defineProperty(this,"posY",{get:function(){return ri},set:function(Ti){isNaN(Ti)||(ri=Ti)}}),Object.defineProperty(this,"margin",{get:function(){return Je.margin},set:function(Ti){var Jn;typeof Ti=="number"?Jn=[Ti,Ti,Ti,Ti]:((Jn=new Array(4))[0]=Ti[0],Jn[1]=Ti.length>=2?Ti[1]:Jn[0],Jn[2]=Ti.length>=3?Ti[2]:Jn[0],Jn[3]=Ti.length>=4?Ti[3]:Jn[1]),Je.margin=Jn}});var Fi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Fi},set:function(Ti){Fi=Ti}});var ci=0;Object.defineProperty(this,"lastBreak",{get:function(){return ci},set:function(Ti){ci=Ti}});var Ji=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ji},set:function(Ti){Ji=Ti}}),Object.defineProperty(this,"ctx",{get:function(){return Je},set:function(Ti){Ti instanceof fn&&(Je=Ti)}}),Object.defineProperty(this,"path",{get:function(){return Je.path},set:function(Ti){Je.path=Ti}});var Yi=[];Object.defineProperty(this,"ctxStack",{get:function(){return Yi},set:function(Ti){Yi=Ti}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ti){var Jn;Jn=En(Ti),this.ctx.fillStyle=Jn.style,this.ctx.isFillTransparent=Jn.a===0,this.ctx.fillOpacity=Jn.a,this.pdf.setFillColor(Jn.r,Jn.g,Jn.b,{a:Jn.a}),this.pdf.setTextColor(Jn.r,Jn.g,Jn.b,{a:Jn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ti){var Jn=En(Ti);this.ctx.strokeStyle=Jn.style,this.ctx.isStrokeTransparent=Jn.a===0,this.ctx.strokeOpacity=Jn.a,Jn.a===0?this.pdf.setDrawColor(255,255,255):(Jn.a,this.pdf.setDrawColor(Jn.r,Jn.g,Jn.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ti){["butt","round","square"].indexOf(Ti)!==-1&&(this.ctx.lineCap=Ti,this.pdf.setLineCap(Ti))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ti){isNaN(Ti)||(this.ctx.lineWidth=Ti,this.pdf.setLineWidth(Ti))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ti){["bevel","round","miter"].indexOf(Ti)!==-1&&(this.ctx.lineJoin=Ti,this.pdf.setLineJoin(Ti))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ti){isNaN(Ti)||(this.ctx.miterLimit=Ti,this.pdf.setMiterLimit(Ti))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ti){this.ctx.textBaseline=Ti}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ti){["right","end","center","left","start"].indexOf(Ti)!==-1&&(this.ctx.textAlign=Ti)}});var Ar=null;function Fr(Ti,Jn){if(Ar===null){var xo=function(br){var ar=[];return Object.keys(br).forEach(function(lr){br[lr].forEach(function(nr){var vr=null;switch(nr){case"bold":vr={family:lr,weight:"bold"};break;case"italic":vr={family:lr,style:"italic"};break;case"bolditalic":vr={family:lr,weight:"bold",style:"italic"};break;case"":case"normal":vr={family:lr}}vr!==null&&(vr.ref={name:lr,style:nr},ar.push(vr))})}),ar}(Ti.getFontList());Ar=function(br){for(var ar={},lr=0;lr<br.length;++lr){var nr=Oc(br[lr]),vr=nr.family,Zr=nr.stretch,co=nr.style,po=nr.weight;ar[vr]=ar[vr]||{},ar[vr][Zr]=ar[vr][Zr]||{},ar[vr][Zr][co]=ar[vr][Zr][co]||{},ar[vr][Zr][co][po]=nr}return ar}(xo.concat(Jn))}return Ar}var ro=null;Object.defineProperty(this,"fontFaces",{get:function(){return ro},set:function(Ti){Ar=null,ro=Ti}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ti){var Jn;if(this.ctx.font=Ti,(Jn=/^\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(Ti))!==null){var xo=Jn[1],br=(Jn[2],Jn[3]),ar=Jn[4],lr=(Jn[5],Jn[6]),nr=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ar)[2];ar=Math.floor(nr==="px"?parseFloat(ar)*this.pdf.internal.scaleFactor:nr==="em"?parseFloat(ar)*this.pdf.getFontSize():parseFloat(ar)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ar);var vr=function($o){var is,yo,pa=[],Wo=$o.trim();if(Wo==="")return dh;if(Wo in ga)return[ga[Wo]];for(;Wo!=="";){switch(yo=null,is=(Wo=al(Wo)).charAt(0)){case'"':case"'":yo=Ka(Wo.substring(1),is);break;default:yo=ca(Wo)}if(yo===null||(pa.push(yo[0]),(Wo=al(yo[1]))!==""&&Wo.charAt(0)!==","))return dh;Wo=Wo.replace(/^,/,"")}return pa}(lr);if(this.fontFaces){var Zr=tl(Fr(this.pdf,this.fontFaces),vr.map(function($o){return{family:$o,stretch:"normal",weight:br,style:xo}}));this.pdf.setFont(Zr.ref.name,Zr.ref.style)}else{var co="";(br==="bold"||parseInt(br,10)>=700||xo==="bold")&&(co="bold"),xo==="italic"&&(co+="italic"),co.length===0&&(co="normal");for(var po="",Rr={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"},Do=0;Do<vr.length;Do++){if(this.pdf.internal.getFont(vr[Do],co,{noFallback:!0,disableWarning:!0})!==void 0){po=vr[Do];break}if(co==="bolditalic"&&this.pdf.internal.getFont(vr[Do],"bold",{noFallback:!0,disableWarning:!0})!==void 0)po=vr[Do],co="bold";else if(this.pdf.internal.getFont(vr[Do],"normal",{noFallback:!0,disableWarning:!0})!==void 0){po=vr[Do],co="normal";break}}if(po===""){for(var hs=0;hs<vr.length;hs++)if(Rr[vr[hs]]){po=Rr[vr[hs]];break}}po=po===""?"Times":po,this.pdf.setFont(po,co)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ti){this.ctx.globalCompositeOperation=Ti}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ti){this.ctx.globalAlpha=Ti}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ti){this.ctx.lineDashOffset=Ti,ti.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ti){this.ctx.lineDash=Ti,ti.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ti){this.ctx.ignoreClearRect=!!Ti}})};gn.prototype.setLineDash=function(ze){this.lineDash=ze},gn.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},gn.prototype.fill=function(){or.call(this,"fill",!1)},gn.prototype.stroke=function(){or.call(this,"stroke",!1)},gn.prototype.beginPath=function(){this.path=[{type:"begin"}]},gn.prototype.moveTo=function(ze,cn){if(isNaN(ze)||isNaN(cn))throw Po.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var vn=this.ctx.transform.applyToPoint(new me(ze,cn));this.path.push({type:"mt",x:vn.x,y:vn.y}),this.ctx.lastPoint=new me(ze,cn)},gn.prototype.closePath=function(){var ze=new me(0,0),cn=0;for(cn=this.path.length-1;cn!==-1;cn--)if(this.path[cn].type==="begin"&&(0,Lt.Z)(this.path[cn+1])==="object"&&typeof this.path[cn+1].x=="number"){ze=new me(this.path[cn+1].x,this.path[cn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new me(ze.x,ze.y)},gn.prototype.lineTo=function(ze,cn){if(isNaN(ze)||isNaN(cn))throw Po.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var vn=this.ctx.transform.applyToPoint(new me(ze,cn));this.path.push({type:"lt",x:vn.x,y:vn.y}),this.ctx.lastPoint=new me(vn.x,vn.y)},gn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),or.call(this,null,!0)},gn.prototype.quadraticCurveTo=function(ze,cn,vn,Gn){if(isNaN(vn)||isNaN(Gn)||isNaN(ze)||isNaN(cn))throw Po.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Yn=this.ctx.transform.applyToPoint(new me(vn,Gn)),ri=this.ctx.transform.applyToPoint(new me(ze,cn));this.path.push({type:"qct",x1:ri.x,y1:ri.y,x:Yn.x,y:Yn.y}),this.ctx.lastPoint=new me(Yn.x,Yn.y)},gn.prototype.bezierCurveTo=function(ze,cn,vn,Gn,Yn,ri){if(isNaN(Yn)||isNaN(ri)||isNaN(ze)||isNaN(cn)||isNaN(vn)||isNaN(Gn))throw Po.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Fi=this.ctx.transform.applyToPoint(new me(Yn,ri)),ci=this.ctx.transform.applyToPoint(new me(ze,cn)),Ji=this.ctx.transform.applyToPoint(new me(vn,Gn));this.path.push({type:"bct",x1:ci.x,y1:ci.y,x2:Ji.x,y2:Ji.y,x:Fi.x,y:Fi.y}),this.ctx.lastPoint=new me(Fi.x,Fi.y)},gn.prototype.arc=function(ze,cn,vn,Gn,Yn,ri){if(isNaN(ze)||isNaN(cn)||isNaN(vn)||isNaN(Gn)||isNaN(Yn))throw Po.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ri=!!ri,!this.ctx.transform.isIdentity){var Fi=this.ctx.transform.applyToPoint(new me(ze,cn));ze=Fi.x,cn=Fi.y;var ci=this.ctx.transform.applyToPoint(new me(0,vn)),Ji=this.ctx.transform.applyToPoint(new me(0,0));vn=Math.sqrt(Math.pow(ci.x-Ji.x,2)+Math.pow(ci.y-Ji.y,2))}Math.abs(Yn-Gn)>=2*Math.PI&&(Gn=0,Yn=2*Math.PI),this.path.push({type:"arc",x:ze,y:cn,radius:vn,startAngle:Gn,endAngle:Yn,counterclockwise:ri})},gn.prototype.arcTo=function(ze,cn,vn,Gn,Yn){throw new Error("arcTo not implemented.")},gn.prototype.rect=function(ze,cn,vn,Gn){if(isNaN(ze)||isNaN(cn)||isNaN(vn)||isNaN(Gn))throw Po.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(ze,cn),this.lineTo(ze+vn,cn),this.lineTo(ze+vn,cn+Gn),this.lineTo(ze,cn+Gn),this.lineTo(ze,cn),this.lineTo(ze+vn,cn),this.lineTo(ze,cn)},gn.prototype.fillRect=function(ze,cn,vn,Gn){if(isNaN(ze)||isNaN(cn)||isNaN(vn)||isNaN(Gn))throw Po.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!We.call(this)){var Yn={};this.lineCap!=="butt"&&(Yn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Yn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(ze,cn,vn,Gn),this.fill(),Yn.hasOwnProperty("lineCap")&&(this.lineCap=Yn.lineCap),Yn.hasOwnProperty("lineJoin")&&(this.lineJoin=Yn.lineJoin)}},gn.prototype.strokeRect=function(ze,cn,vn,Gn){if(isNaN(ze)||isNaN(cn)||isNaN(vn)||isNaN(Gn))throw Po.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");vi.call(this)||(this.beginPath(),this.rect(ze,cn,vn,Gn),this.stroke())},gn.prototype.clearRect=function(ze,cn,vn,Gn){if(isNaN(ze)||isNaN(cn)||isNaN(vn)||isNaN(Gn))throw Po.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(ze,cn,vn,Gn))},gn.prototype.save=function(ze){ze=typeof ze!="boolean"||ze;for(var cn=this.pdf.internal.getCurrentPageInfo().pageNumber,vn=0;vn<this.pdf.internal.getNumberOfPages();vn++)this.pdf.setPage(vn+1),this.pdf.internal.out("q");if(this.pdf.setPage(cn),ze){this.ctx.fontSize=this.pdf.internal.getFontSize();var Gn=new fn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Gn}},gn.prototype.restore=function(ze){ze=typeof ze!="boolean"||ze;for(var cn=this.pdf.internal.getCurrentPageInfo().pageNumber,vn=0;vn<this.pdf.internal.getNumberOfPages();vn++)this.pdf.setPage(vn+1),this.pdf.internal.out("Q");this.pdf.setPage(cn),ze&&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)},gn.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var En=function(ze){var cn,vn,Gn,Yn;if(ze.isCanvasGradient===!0&&(ze=ze.getColor()),!ze)return{r:0,g:0,b:0,a:0,style:ze};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(ze))cn=0,vn=0,Gn=0,Yn=0;else{var ri=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(ze);if(ri!==null)cn=parseInt(ri[1]),vn=parseInt(ri[2]),Gn=parseInt(ri[3]),Yn=1;else if((ri=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(ze))!==null)cn=parseInt(ri[1]),vn=parseInt(ri[2]),Gn=parseInt(ri[3]),Yn=parseFloat(ri[4]);else{if(Yn=1,typeof ze=="string"&&ze.charAt(0)!=="#"){var Fi=new bo(ze);ze=Fi.ok?Fi.toHex():"#000000"}ze.length===4?(cn=ze.substring(1,2),cn+=cn,vn=ze.substring(2,3),vn+=vn,Gn=ze.substring(3,4),Gn+=Gn):(cn=ze.substring(1,3),vn=ze.substring(3,5),Gn=ze.substring(5,7)),cn=parseInt(cn,16),vn=parseInt(vn,16),Gn=parseInt(Gn,16)}}return{r:cn,g:vn,b:Gn,a:Yn,style:ze}},We=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},vi=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};gn.prototype.fillText=function(ze,cn,vn,Gn){if(isNaN(cn)||isNaN(vn)||typeof ze!="string")throw Po.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Gn=isNaN(Gn)?void 0:Gn,!We.call(this)){var Yn=on(this.ctx.transform.rotation),ri=this.ctx.transform.scaleX;oi.call(this,{text:ze,x:cn,y:vn,scale:ri,angle:Yn,align:this.textAlign,maxWidth:Gn})}},gn.prototype.strokeText=function(ze,cn,vn,Gn){if(isNaN(cn)||isNaN(vn)||typeof ze!="string")throw Po.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!vi.call(this)){Gn=isNaN(Gn)?void 0:Gn;var Yn=on(this.ctx.transform.rotation),ri=this.ctx.transform.scaleX;oi.call(this,{text:ze,x:cn,y:vn,scale:ri,renderingMode:"stroke",angle:Yn,align:this.textAlign,maxWidth:Gn})}},gn.prototype.measureText=function(ze){if(typeof ze!="string")throw Po.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var cn=this.pdf,vn=this.pdf.internal.scaleFactor,Gn=cn.internal.getFontSize(),Yn=cn.getStringUnitWidth(ze)*Gn/cn.internal.scaleFactor,ri=function(Fi){var ci=(Fi=Fi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ci}}),this};return new ri({width:Yn*=Math.round(96*vn/72*1e4)/1e4})},gn.prototype.scale=function(ze,cn){if(isNaN(ze)||isNaN(cn))throw Po.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var vn=new Le(ze,0,0,cn,0,0);this.ctx.transform=this.ctx.transform.multiply(vn)},gn.prototype.rotate=function(ze){if(isNaN(ze))throw Po.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var cn=new Le(Math.cos(ze),Math.sin(ze),-Math.sin(ze),Math.cos(ze),0,0);this.ctx.transform=this.ctx.transform.multiply(cn)},gn.prototype.translate=function(ze,cn){if(isNaN(ze)||isNaN(cn))throw Po.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var vn=new Le(1,0,0,1,ze,cn);this.ctx.transform=this.ctx.transform.multiply(vn)},gn.prototype.transform=function(ze,cn,vn,Gn,Yn,ri){if(isNaN(ze)||isNaN(cn)||isNaN(vn)||isNaN(Gn)||isNaN(Yn)||isNaN(ri))throw Po.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Fi=new Le(ze,cn,vn,Gn,Yn,ri);this.ctx.transform=this.ctx.transform.multiply(Fi)},gn.prototype.setTransform=function(ze,cn,vn,Gn,Yn,ri){ze=isNaN(ze)?1:ze,cn=isNaN(cn)?0:cn,vn=isNaN(vn)?0:vn,Gn=isNaN(Gn)?1:Gn,Yn=isNaN(Yn)?0:Yn,ri=isNaN(ri)?0:ri,this.ctx.transform=new Le(ze,cn,vn,Gn,Yn,ri)};var ei=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};gn.prototype.drawImage=function(ze,cn,vn,Gn,Yn,ri,Fi,ci,Ji){var Yi=this.pdf.getImageProperties(ze),Ar=1,Fr=1,ro=1,Ti=1;Gn!==void 0&&ci!==void 0&&(ro=ci/Gn,Ti=Ji/Yn,Ar=Yi.width/Gn*ci/Gn,Fr=Yi.height/Yn*Ji/Yn),ri===void 0&&(ri=cn,Fi=vn,cn=0,vn=0),Gn!==void 0&&ci===void 0&&(ci=Gn,Ji=Yn),Gn===void 0&&ci===void 0&&(ci=Yi.width,Ji=Yi.height);for(var Jn,xo=this.ctx.transform.decompose(),br=on(xo.rotate.shx),ar=new Le,lr=(ar=(ar=(ar=ar.multiply(xo.translate)).multiply(xo.skew)).multiply(xo.scale)).applyToRectangle(new Ce(ri-cn*ro,Fi-vn*Ti,Gn*Ar,Yn*Fr)),nr=wi.call(this,lr),vr=[],Zr=0;Zr<nr.length;Zr+=1)vr.indexOf(nr[Zr])===-1&&vr.push(nr[Zr]);if(zi(vr),this.autoPaging)for(var co=vr[0],po=vr[vr.length-1],Rr=co;Rr<po+1;Rr++){this.pdf.setPage(Rr);var Do=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],hs=Rr===1?this.posY+this.margin[0]:this.margin[0],$o=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],is=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],yo=Rr===1?0:$o+(Rr-2)*is;if(this.ctx.clip_path.length!==0){var pa=this.path;Jn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gi(Jn,this.posX+this.margin[3],-yo+hs+this.ctx.prevPageLastElemOffset),Lr.call(this,"fill",!0),this.path=pa}var Wo=JSON.parse(JSON.stringify(lr));Wo=gi([Wo],this.posX+this.margin[3],-yo+hs+this.ctx.prevPageLastElemOffset)[0];var rs=(Rr>co||Rr<po)&&ei.call(this);rs&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Do,is,null).clip().discardPath()),this.pdf.addImage(ze,"JPEG",Wo.x,Wo.y,Wo.w,Wo.h,null,null,br),rs&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(ze,"JPEG",lr.x,lr.y,lr.w,lr.h,null,null,br)};var wi=function(ze,cn,vn){var Gn=[];cn=cn||this.pdf.internal.pageSize.width,vn=vn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Yn=this.posY+this.ctx.prevPageLastElemOffset;switch(ze.type){default:case"mt":case"lt":Gn.push(Math.floor((ze.y+Yn)/vn)+1);break;case"arc":Gn.push(Math.floor((ze.y+Yn-ze.radius)/vn)+1),Gn.push(Math.floor((ze.y+Yn+ze.radius)/vn)+1);break;case"qct":var ri=Dn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,ze.x1,ze.y1,ze.x,ze.y);Gn.push(Math.floor((ri.y+Yn)/vn)+1),Gn.push(Math.floor((ri.y+ri.h+Yn)/vn)+1);break;case"bct":var Fi=Rn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,ze.x1,ze.y1,ze.x2,ze.y2,ze.x,ze.y);Gn.push(Math.floor((Fi.y+Yn)/vn)+1),Gn.push(Math.floor((Fi.y+Fi.h+Yn)/vn)+1);break;case"rect":Gn.push(Math.floor((ze.y+Yn)/vn)+1),Gn.push(Math.floor((ze.y+ze.h+Yn)/vn)+1)}for(var ci=0;ci<Gn.length;ci+=1)for(;this.pdf.internal.getNumberOfPages()<Gn[ci];)Hn.call(this);return Gn},Hn=function(){var ze=this.fillStyle,cn=this.strokeStyle,vn=this.font,Gn=this.lineCap,Yn=this.lineWidth,ri=this.lineJoin;this.pdf.addPage(),this.fillStyle=ze,this.strokeStyle=cn,this.font=vn,this.lineCap=Gn,this.lineWidth=Yn,this.lineJoin=ri},gi=function(ze,cn,vn){for(var Gn=0;Gn<ze.length;Gn++)switch(ze[Gn].type){case"bct":ze[Gn].x2+=cn,ze[Gn].y2+=vn;case"qct":ze[Gn].x1+=cn,ze[Gn].y1+=vn;case"mt":case"lt":case"arc":default:ze[Gn].x+=cn,ze[Gn].y+=vn}return ze},zi=function(ze){return ze.sort(function(cn,vn){return cn-vn})},or=function(ze,cn){for(var vn,Gn,Yn=this.fillStyle,ri=this.strokeStyle,Fi=this.lineCap,ci=this.lineWidth,Ji=Math.abs(ci*this.ctx.transform.scaleX),Yi=this.lineJoin,Ar=JSON.parse(JSON.stringify(this.path)),Fr=JSON.parse(JSON.stringify(this.path)),ro=[],Ti=0;Ti<Fr.length;Ti++)if(Fr[Ti].x!==void 0)for(var Jn=wi.call(this,Fr[Ti]),xo=0;xo<Jn.length;xo+=1)ro.indexOf(Jn[xo])===-1&&ro.push(Jn[xo]);for(var br=0;br<ro.length;br++)for(;this.pdf.internal.getNumberOfPages()<ro[br];)Hn.call(this);if(zi(ro),this.autoPaging)for(var ar=ro[0],lr=ro[ro.length-1],nr=ar;nr<lr+1;nr++){this.pdf.setPage(nr),this.fillStyle=Yn,this.strokeStyle=ri,this.lineCap=Fi,this.lineWidth=Ji,this.lineJoin=Yi;var vr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Zr=nr===1?this.posY+this.margin[0]:this.margin[0],co=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],po=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Rr=nr===1?0:co+(nr-2)*po;if(this.ctx.clip_path.length!==0){var Do=this.path;vn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gi(vn,this.posX+this.margin[3],-Rr+Zr+this.ctx.prevPageLastElemOffset),Lr.call(this,ze,!0),this.path=Do}if(Gn=JSON.parse(JSON.stringify(Ar)),this.path=gi(Gn,this.posX+this.margin[3],-Rr+Zr+this.ctx.prevPageLastElemOffset),cn===!1||nr===0){var hs=(nr>ar||nr<lr)&&ei.call(this);hs&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],vr,po,null).clip().discardPath()),Lr.call(this,ze,cn),hs&&this.pdf.restoreGraphicsState()}this.lineWidth=ci}else this.lineWidth=Ji,Lr.call(this,ze,cn),this.lineWidth=ci;this.path=Ar},Lr=function(ze,cn){if((ze!=="stroke"||cn||!vi.call(this))&&(ze==="stroke"||cn||!We.call(this))){for(var vn,Gn,Yn=[],ri=this.path,Fi=0;Fi<ri.length;Fi++){var ci=ri[Fi];switch(ci.type){case"begin":Yn.push({begin:!0});break;case"close":Yn.push({close:!0});break;case"mt":Yn.push({start:ci,deltas:[],abs:[]});break;case"lt":var Ji=Yn.length;if(ri[Fi-1]&&!isNaN(ri[Fi-1].x)&&(vn=[ci.x-ri[Fi-1].x,ci.y-ri[Fi-1].y],Ji>0)){for(;Ji>=0;Ji--)if(Yn[Ji-1].close!==!0&&Yn[Ji-1].begin!==!0){Yn[Ji-1].deltas.push(vn),Yn[Ji-1].abs.push(ci);break}}break;case"bct":vn=[ci.x1-ri[Fi-1].x,ci.y1-ri[Fi-1].y,ci.x2-ri[Fi-1].x,ci.y2-ri[Fi-1].y,ci.x-ri[Fi-1].x,ci.y-ri[Fi-1].y],Yn[Yn.length-1].deltas.push(vn);break;case"qct":var Yi=ri[Fi-1].x+2/3*(ci.x1-ri[Fi-1].x),Ar=ri[Fi-1].y+2/3*(ci.y1-ri[Fi-1].y),Fr=ci.x+2/3*(ci.x1-ci.x),ro=ci.y+2/3*(ci.y1-ci.y),Ti=ci.x,Jn=ci.y;vn=[Yi-ri[Fi-1].x,Ar-ri[Fi-1].y,Fr-ri[Fi-1].x,ro-ri[Fi-1].y,Ti-ri[Fi-1].x,Jn-ri[Fi-1].y],Yn[Yn.length-1].deltas.push(vn);break;case"arc":Yn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Yn[Yn.length-1].abs)&&Yn[Yn.length-1].abs.push(ci)}}Gn=cn?null:ze==="stroke"?"stroke":"fill";for(var xo=!1,br=0;br<Yn.length;br++)if(Yn[br].arc)for(var ar=Yn[br].abs,lr=0;lr<ar.length;lr++){var nr=ar[lr];nr.type==="arc"?Di.call(this,nr.x,nr.y,nr.radius,nr.startAngle,nr.endAngle,nr.counterclockwise,void 0,cn,!xo):ye.call(this,nr.x,nr.y),xo=!0}else if(Yn[br].close===!0)this.pdf.internal.out("h"),xo=!1;else if(Yn[br].begin!==!0){var vr=Yn[br].start.x,Zr=Yn[br].start.y;we.call(this,Yn[br].deltas,vr,Zr),xo=!0}Gn&&Cr.call(this,Gn),cn&&Or.call(this)}},lo=function(ze){var cn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,vn=cn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return ze-vn;case"top":return ze+cn-vn;case"hanging":return ze+cn-2*vn;case"middle":return ze+cn/2-vn;case"ideographic":return ze;case"alphabetic":default:return ze}},mr=function(ze){return ze+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};gn.prototype.createLinearGradient=function(){var ze=function(){};return ze.colorStops=[],ze.addColorStop=function(cn,vn){this.colorStops.push([cn,vn])},ze.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},ze.isCanvasGradient=!0,ze},gn.prototype.createPattern=function(){return this.createLinearGradient()},gn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Di=function(ze,cn,vn,Gn,Yn,ri,Fi,ci,Ji){for(var Yi=tn.call(this,vn,Gn,Yn,ri),Ar=0;Ar<Yi.length;Ar++){var Fr=Yi[Ar];Ar===0&&(Ji?qn.call(this,Fr.x1+ze,Fr.y1+cn):ye.call(this,Fr.x1+ze,Fr.y1+cn)),Ye.call(this,ze,cn,Fr.x2,Fr.y2,Fr.x3,Fr.y3,Fr.x4,Fr.y4)}ci?Or.call(this):Cr.call(this,Fi)},Cr=function(ze){switch(ze){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Or=function(){this.pdf.clip(),this.pdf.discardPath()},qn=function(ze,cn){this.pdf.internal.out(St(ze)+" "+_t(cn)+" m")},oi=function(ze){var cn;switch(ze.align){case"right":case"end":cn="right";break;case"center":cn="center";break;case"left":case"start":default:cn="left"}var vn=this.pdf.getTextDimensions(ze.text),Gn=lo.call(this,ze.y),Yn=mr.call(this,Gn)-vn.h,ri=this.ctx.transform.applyToPoint(new me(ze.x,Gn)),Fi=this.ctx.transform.decompose(),ci=new Le;ci=(ci=(ci=ci.multiply(Fi.translate)).multiply(Fi.skew)).multiply(Fi.scale);for(var Ji,Yi,Ar,Fr=this.ctx.transform.applyToRectangle(new Ce(ze.x,Gn,vn.w,vn.h)),ro=ci.applyToRectangle(new Ce(ze.x,Yn,vn.w,vn.h)),Ti=wi.call(this,ro),Jn=[],xo=0;xo<Ti.length;xo+=1)Jn.indexOf(Ti[xo])===-1&&Jn.push(Ti[xo]);if(zi(Jn),this.autoPaging)for(var br=Jn[0],ar=Jn[Jn.length-1],lr=br;lr<ar+1;lr++){this.pdf.setPage(lr);var nr=lr===1?this.posY+this.margin[0]:this.margin[0],vr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Zr=this.pdf.internal.pageSize.height-this.margin[2],co=Zr-this.margin[0],po=this.pdf.internal.pageSize.width-this.margin[1],Rr=po-this.margin[3],Do=lr===1?0:vr+(lr-2)*co;if(this.ctx.clip_path.length!==0){var hs=this.path;Ji=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=gi(Ji,this.posX+this.margin[3],-1*Do+nr),Lr.call(this,"fill",!0),this.path=hs}var $o=gi([JSON.parse(JSON.stringify(ro))],this.posX+this.margin[3],-Do+nr+this.ctx.prevPageLastElemOffset)[0];ze.scale>=.01&&(Yi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Yi*ze.scale),Ar=this.lineWidth,this.lineWidth=Ar*ze.scale);var is=this.autoPaging!=="text";if(is||$o.y+$o.h<=Zr){if(is||$o.y>=nr&&$o.x<=po){var yo=is?ze.text:this.pdf.splitTextToSize(ze.text,ze.maxWidth||po-$o.x)[0],pa=gi([JSON.parse(JSON.stringify(Fr))],this.posX+this.margin[3],-Do+nr+this.ctx.prevPageLastElemOffset)[0],Wo=is&&(lr>br||lr<ar)&&ei.call(this);Wo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Rr,co,null).clip().discardPath()),this.pdf.text(yo,pa.x,pa.y,{angle:ze.angle,align:cn,renderingMode:ze.renderingMode}),Wo&&this.pdf.restoreGraphicsState()}}else $o.y<Zr&&(this.ctx.prevPageLastElemOffset+=Zr-$o.y);ze.scale>=.01&&(this.pdf.setFontSize(Yi),this.lineWidth=Ar)}else ze.scale>=.01&&(Yi=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Yi*ze.scale),Ar=this.lineWidth,this.lineWidth=Ar*ze.scale),this.pdf.text(ze.text,ri.x+this.posX,ri.y+this.posY,{angle:ze.angle,align:cn,renderingMode:ze.renderingMode,maxWidth:ze.maxWidth}),ze.scale>=.01&&(this.pdf.setFontSize(Yi),this.lineWidth=Ar)},ye=function(ze,cn,vn,Gn){vn=vn||0,Gn=Gn||0,this.pdf.internal.out(St(ze+vn)+" "+_t(cn+Gn)+" l")},we=function(ze,cn,vn){return this.pdf.lines(ze,cn,vn,null,null)},Ye=function(ze,cn,vn,Gn,Yn,ri,Fi,ci){this.pdf.internal.out([pt(oe(vn+ze)),pt(qt(Gn+cn)),pt(oe(Yn+ze)),pt(qt(ri+cn)),pt(oe(Fi+ze)),pt(qt(ci+cn)),"c"].join(" "))},tn=function(ze,cn,vn,Gn){for(var Yn=2*Math.PI,ri=Math.PI/2;cn>vn;)cn-=Yn;var Fi=Math.abs(vn-cn);Fi<Yn&&Gn&&(Fi=Yn-Fi);for(var ci=[],Ji=Gn?-1:1,Yi=cn;Fi>1e-5;){var Ar=Yi+Ji*Math.min(Fi,ri);ci.push(yn.call(this,ze,Yi,Ar)),Fi-=Math.abs(Ar-Yi),Yi=Ar}return ci},yn=function(ze,cn,vn){var Gn=(vn-cn)/2,Yn=ze*Math.cos(Gn),ri=ze*Math.sin(Gn),Fi=Yn,ci=-ri,Ji=Fi*Fi+ci*ci,Yi=Ji+Fi*Yn+ci*ri,Ar=4/3*(Math.sqrt(2*Ji*Yi)-Yi)/(Fi*ri-ci*Yn),Fr=Fi-Ar*ci,ro=ci+Ar*Fi,Ti=Fr,Jn=-ro,xo=Gn+cn,br=Math.cos(xo),ar=Math.sin(xo);return{x1:ze*Math.cos(cn),y1:ze*Math.sin(cn),x2:Fr*br-ro*ar,y2:Fr*ar+ro*br,x3:Ti*br-Jn*ar,y3:Ti*ar+Jn*br,x4:ze*Math.cos(vn),y4:ze*Math.sin(vn)}},on=function(ze){return 180*ze/Math.PI},Dn=function(ze,cn,vn,Gn,Yn,ri){var Fi=ze+.5*(vn-ze),ci=cn+.5*(Gn-cn),Ji=Yn+.5*(vn-Yn),Yi=ri+.5*(Gn-ri),Ar=Math.min(ze,Yn,Fi,Ji),Fr=Math.max(ze,Yn,Fi,Ji),ro=Math.min(cn,ri,ci,Yi),Ti=Math.max(cn,ri,ci,Yi);return new Ce(Ar,ro,Fr-Ar,Ti-ro)},Rn=function(ze,cn,vn,Gn,Yn,ri,Fi,ci){var Ji,Yi,Ar,Fr,ro,Ti,Jn,xo,br,ar,lr,nr,vr,Zr,co=vn-ze,po=Gn-cn,Rr=Yn-vn,Do=ri-Gn,hs=Fi-Yn,$o=ci-ri;for(Yi=0;Yi<41;Yi++)br=(Jn=(Ar=ze+(Ji=Yi/40)*co)+Ji*((ro=vn+Ji*Rr)-Ar))+Ji*(ro+Ji*(Yn+Ji*hs-ro)-Jn),ar=(xo=(Fr=cn+Ji*po)+Ji*((Ti=Gn+Ji*Do)-Fr))+Ji*(Ti+Ji*(ri+Ji*$o-Ti)-xo),Yi==0?(lr=br,nr=ar,vr=br,Zr=ar):(lr=Math.min(lr,br),nr=Math.min(nr,ar),vr=Math.max(vr,br),Zr=Math.max(Zr,ar));return new Ce(Math.round(lr),Math.round(nr),Math.round(vr-lr),Math.round(Zr-nr))},ti=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var ze,cn,vn=(ze=this.ctx.lineDash,cn=this.ctx.lineDashOffset,JSON.stringify({lineDash:ze,lineDashOffset:cn}));this.prevLineDash!==vn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=vn)}}})(Ho.API),function(Bt){var pt=function(qt){var me,Ce,Le,Je,fn,gn,En,We,vi,ei;for(/[^\x00-\xFF]/.test(qt),Ce=[],Le=0,Je=(qt+=me="\0\0\0\0".slice(qt.length%4||4)).length;Je>Le;Le+=4)(fn=(qt.charCodeAt(Le)<<24)+(qt.charCodeAt(Le+1)<<16)+(qt.charCodeAt(Le+2)<<8)+qt.charCodeAt(Le+3))!==0?(gn=(fn=((fn=((fn=((fn=(fn-(ei=fn%85))/85)-(vi=fn%85))/85)-(We=fn%85))/85)-(En=fn%85))/85)%85,Ce.push(gn+33,En+33,We+33,vi+33,ei+33)):Ce.push(122);return function(wi,Hn){for(var gi=Hn;gi>0;gi--)wi.pop()}(Ce,me.length),String.fromCharCode.apply(String,Ce)+"~>"},St=function(qt){var me,Ce,Le,Je,fn,gn=String,En="length",We=255,vi="charCodeAt",ei="slice",wi="replace";for(qt[ei](-2),qt=qt[ei](0,-2)[wi](/\s/g,"")[wi]("z","!!!!!"),Le=[],Je=0,fn=(qt+=me="uuuuu"[ei](qt[En]%5||5))[En];fn>Je;Je+=5)Ce=52200625*(qt[vi](Je)-33)+614125*(qt[vi](Je+1)-33)+7225*(qt[vi](Je+2)-33)+85*(qt[vi](Je+3)-33)+(qt[vi](Je+4)-33),Le.push(We&Ce>>24,We&Ce>>16,We&Ce>>8,We&Ce);return function(Hn,gi){for(var zi=gi;zi>0;zi--)Hn.pop()}(Le,me[En]),gn.fromCharCode.apply(gn,Le)},_t=function(qt){var me=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((qt=qt.replace(/\s/g,"")).indexOf(">")!==-1&&(qt=qt.substr(0,qt.indexOf(">"))),qt.length%2&&(qt+="0"),me.test(qt)===!1)return"";for(var Ce="",Le=0;Le<qt.length;Le+=2)Ce+=String.fromCharCode("0x"+(qt[Le]+qt[Le+1]));return Ce},oe=function(qt){for(var me=new Uint8Array(qt.length),Ce=qt.length;Ce--;)me[Ce]=qt.charCodeAt(Ce);return qt=(me=kn(me)).reduce(function(Le,Je){return Le+String.fromCharCode(Je)},"")};Bt.processDataByFilters=function(qt,me){var Ce=0,Le=qt||"",Je=[];for(typeof(me=me||[])=="string"&&(me=[me]),Ce=0;Ce<me.length;Ce+=1)switch(me[Ce]){case"ASCII85Decode":case"/ASCII85Decode":Le=St(Le),Je.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Le=pt(Le),Je.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Le=_t(Le),Je.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Le=Le.split("").map(function(fn){return("0"+fn.charCodeAt().toString(16)).slice(-2)}).join("")+">",Je.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Le=oe(Le),Je.push("/FlateDecode");break;default:throw new Error('The filter: "'+me[Ce]+'" is not implemented')}return{data:Le,reverseChain:Je.reverse().join(" ")}}}(Ho.API),function(Bt){Bt.loadFile=function(pt,St,_t){return function(oe,qt,me){qt=qt!==!1,me=typeof me=="function"?me:function(){};var Ce=void 0;try{Ce=function(Le,Je,fn){var gn=new XMLHttpRequest,En=0,We=function(vi){var ei=vi.length,wi=[],Hn=String.fromCharCode;for(En=0;En<ei;En+=1)wi.push(Hn(255&vi.charCodeAt(En)));return wi.join("")};if(gn.open("GET",Le,!Je),gn.overrideMimeType("text/plain; charset=x-user-defined"),Je===!1&&(gn.onload=function(){gn.status===200?fn(We(this.responseText)):fn(void 0)}),gn.send(null),Je&&gn.status===200)return We(gn.responseText)}(oe,qt,me)}catch(Le){}return Ce}(pt,St,_t)},Bt.loadImageFile=Bt.loadFile}(Ho.API),function(Bt){function pt(){return(kr.html2canvas?Promise.resolve(kr.html2canvas):Promise.resolve().then(bt.t.bind(bt,64270,23))).catch(function(me){return Promise.reject(new Error("Could not load html2canvas: "+me))}).then(function(me){return me.default?me.default:me})}function St(){return(kr.DOMPurify?Promise.resolve(kr.DOMPurify):bt.e(3985).then(bt.t.bind(bt,73985,23))).catch(function(me){return Promise.reject(new Error("Could not load dompurify: "+me))}).then(function(me){return me.default?me.default:me})}var _t=function(me){var Ce=(0,Lt.Z)(me);return Ce==="undefined"?"undefined":Ce==="string"||me instanceof String?"string":Ce==="number"||me instanceof Number?"number":Ce==="function"||me instanceof Function?"function":me&&me.constructor===Array?"array":me&&me.nodeType===1?"element":Ce==="object"?"object":"unknown"},oe=function(me,Ce){var Le=document.createElement(me);for(var Je in Ce.className&&(Le.className=Ce.className),Ce.innerHTML&&Ce.dompurify&&(Le.innerHTML=Ce.dompurify.sanitize(Ce.innerHTML)),Ce.style)Le.style[Je]=Ce.style[Je];return Le},qt=function me(Ce){var Le=Object.assign(me.convert(Promise.resolve()),JSON.parse(JSON.stringify(me.template))),Je=me.convert(Promise.resolve(),Le);return Je=(Je=Je.setProgress(1,me,1,[me])).set(Ce)};(qt.prototype=Object.create(Promise.prototype)).constructor=qt,qt.convert=function(me,Ce){return me.__proto__=Ce||qt.prototype,me},qt.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"}},qt.prototype.from=function(me,Ce){return this.then(function(){switch(Ce=Ce||function(Le){switch(_t(Le)){case"string":return"string";case"element":return Le.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(me)){case"string":return this.then(St).then(function(Le){return this.set({src:oe("div",{innerHTML:me,dompurify:Le})})});case"element":return this.set({src:me});case"canvas":return this.set({canvas:me});case"img":return this.set({img:me});default:return this.error("Unknown source type.")}})},qt.prototype.to=function(me){switch(me){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.")}},qt.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 me={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},Ce=function Le(Je,fn){for(var gn=Je.nodeType===3?document.createTextNode(Je.nodeValue):Je.cloneNode(!1),En=Je.firstChild;En;En=En.nextSibling)fn!==!0&&En.nodeType===1&&En.nodeName==="SCRIPT"||gn.appendChild(Le(En,fn));return Je.nodeType===1&&(Je.nodeName==="CANVAS"?(gn.width=Je.width,gn.height=Je.height,gn.getContext("2d").drawImage(Je,0,0)):Je.nodeName!=="TEXTAREA"&&Je.nodeName!=="SELECT"||(gn.value=Je.value),gn.addEventListener("load",function(){gn.scrollTop=Je.scrollTop,gn.scrollLeft=Je.scrollLeft},!0)),gn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Ce.tagName==="BODY"&&(me.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=oe("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=oe("div",{className:"html2pdf__container",style:me}),this.prop.container.appendChild(Ce),this.prop.container.firstChild.appendChild(oe("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"})},qt.prototype.toCanvas=function(){var me=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(me).then(pt).then(function(Ce){var Le=Object.assign({},this.opt.html2canvas);return delete Le.onrendered,Ce(this.prop.container,Le)}).then(function(Ce){(this.opt.html2canvas.onrendered||function(){})(Ce),this.prop.canvas=Ce,document.body.removeChild(this.prop.overlay)})},qt.prototype.toContext2d=function(){var me=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(me).then(pt).then(function(Ce){var Le=this.opt.jsPDF,Je=this.opt.fontFaces,fn=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,gn=Object.assign({async:!0,allowTaint:!0,scale:fn,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 gn.onrendered,Le.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Le.context2d.posX=this.opt.x,Le.context2d.posY=this.opt.y,Le.context2d.margin=this.opt.margin,Le.context2d.fontFaces=Je,Je)for(var En=0;En<Je.length;++En){var We=Je[En],vi=We.src.find(function(ei){return ei.format==="truetype"});vi&&Le.addFont(vi.url,We.ref.name,We.ref.style)}return gn.windowHeight=gn.windowHeight||0,gn.windowHeight=gn.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):gn.windowHeight,Le.context2d.save(!0),Ce(this.prop.container,gn)}).then(function(Ce){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Ce),this.prop.canvas=Ce,document.body.removeChild(this.prop.overlay)})},qt.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var me=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=me})},qt.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},qt.prototype.output=function(me,Ce,Le){return(Le=Le||"pdf").toLowerCase()==="img"||Le.toLowerCase()==="image"?this.outputImg(me,Ce):this.outputPdf(me,Ce)},qt.prototype.outputPdf=function(me,Ce){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(me,Ce)})},qt.prototype.outputImg=function(me){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(me){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 "'+me+'" is not supported.'}})},qt.prototype.save=function(me){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(me?{filename:me}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},qt.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},qt.prototype.set=function(me){if(_t(me)!=="object")return this;var Ce=Object.keys(me||{}).map(function(Le){if(Le in qt.template.prop)return function(){this.prop[Le]=me[Le]};switch(Le){case"margin":return this.setMargin.bind(this,me.margin);case"jsPDF":return function(){return this.opt.jsPDF=me.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,me.pageSize);default:return function(){this.opt[Le]=me[Le]}}},this);return this.then(function(){return this.thenList(Ce)})},qt.prototype.get=function(me,Ce){return this.then(function(){var Le=me in qt.template.prop?this.prop[me]:this.opt[me];return Ce?Ce(Le):Le})},qt.prototype.setMargin=function(me){return this.then(function(){switch(_t(me)){case"number":me=[me,me,me,me];case"array":if(me.length===2&&(me=[me[0],me[1],me[0],me[1]]),me.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=me}).then(this.setPageSize)},qt.prototype.setPageSize=function(me){function Ce(Le,Je){return Math.floor(Le*Je/72*96)}return this.then(function(){(me=me||Ho.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(me.inner={width:me.width-this.opt.margin[1]-this.opt.margin[3],height:me.height-this.opt.margin[0]-this.opt.margin[2]},me.inner.px={width:Ce(me.inner.width,me.k),height:Ce(me.inner.height,me.k)},me.inner.ratio=me.inner.height/me.inner.width),this.prop.pageSize=me})},qt.prototype.setProgress=function(me,Ce,Le,Je){return me!=null&&(this.progress.val=me),Ce!=null&&(this.progress.state=Ce),Le!=null&&(this.progress.n=Le),Je!=null&&(this.progress.stack=Je),this.progress.ratio=this.progress.val/this.progress.state,this},qt.prototype.updateProgress=function(me,Ce,Le,Je){return this.setProgress(me?this.progress.val+me:null,Ce||null,Le?this.progress.n+Le:null,Je?this.progress.stack.concat(Je):null)},qt.prototype.then=function(me,Ce){var Le=this;return this.thenCore(me,Ce,function(Je,fn){return Le.updateProgress(null,null,1,[Je]),Promise.prototype.then.call(this,function(gn){return Le.updateProgress(null,Je),gn}).then(Je,fn).then(function(gn){return Le.updateProgress(1),gn})})},qt.prototype.thenCore=function(me,Ce,Le){Le=Le||Promise.prototype.then,me&&(me=me.bind(this)),Ce&&(Ce=Ce.bind(this));var Je=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:qt.convert(Object.assign({},this),Promise.prototype),fn=Le.call(Je,me,Ce);return qt.convert(fn,this.__proto__)},qt.prototype.thenExternal=function(me,Ce){return Promise.prototype.then.call(this,me,Ce)},qt.prototype.thenList=function(me){var Ce=this;return me.forEach(function(Le){Ce=Ce.thenCore(Le)}),Ce},qt.prototype.catch=function(me){me&&(me=me.bind(this));var Ce=Promise.prototype.catch.call(this,me);return qt.convert(Ce,this)},qt.prototype.catchExternal=function(me){return Promise.prototype.catch.call(this,me)},qt.prototype.error=function(me){return this.then(function(){throw new Error(me)})},qt.prototype.using=qt.prototype.set,qt.prototype.saveAs=qt.prototype.save,qt.prototype.export=qt.prototype.output,qt.prototype.run=qt.prototype.then,Ho.getPageSize=function(me,Ce,Le){if((0,Lt.Z)(me)==="object"){var Je=me;me=Je.orientation,Ce=Je.unit||Ce,Le=Je.format||Le}Ce=Ce||"mm",Le=Le||"a4",me=(""+(me||"P")).toLowerCase();var fn,gn=(""+Le).toLowerCase(),En={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(Ce){case"pt":fn=1;break;case"mm":fn=72/25.4;break;case"cm":fn=72/2.54;break;case"in":fn=72;break;case"px":fn=.75;break;case"pc":case"em":fn=12;break;case"ex":fn=6;break;default:throw"Invalid unit: "+Ce}var We,vi=0,ei=0;if(En.hasOwnProperty(gn))vi=En[gn][1]/fn,ei=En[gn][0]/fn;else try{vi=Le[1],ei=Le[0]}catch(wi){throw new Error("Invalid format: "+Le)}if(me==="p"||me==="portrait")me="p",ei>vi&&(We=ei,ei=vi,vi=We);else{if(me!=="l"&&me!=="landscape")throw"Invalid orientation: "+me;me="l",vi>ei&&(We=ei,ei=vi,vi=We)}return{width:ei,height:vi,unit:Ce,k:fn,orientation:me}},Bt.html=function(me,Ce){(Ce=Ce||{}).callback=Ce.callback||function(){},Ce.html2canvas=Ce.html2canvas||{},Ce.html2canvas.canvas=Ce.html2canvas.canvas||this.canvas,Ce.jsPDF=Ce.jsPDF||this,Ce.fontFaces=Ce.fontFaces?Ce.fontFaces.map(Oc):null;var Le=new qt(Ce);return Ce.worker?Le:Le.from(me).doCallback()}}(Ho.API),Ho.API.addJS=function(Bt){return fc=Bt,this.internal.events.subscribe("postPutResources",function(){el=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(el+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),jl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+fc+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){el!==void 0&&jl!==void 0&&this.internal.out("/Names <</JavaScript "+el+" 0 R>>")}),this},function(Bt){var pt;Bt.events.push(["postPutResources",function(){var St=this,_t=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var oe=St.outline.render().split(/\r\n/),qt=0;qt<oe.length;qt++){var me=oe[qt],Ce=_t.exec(me);if(Ce!=null){var Le=Ce[1];St.internal.newObjectDeferredBegin(Le,!1)}St.internal.write(me)}if(this.outline.createNamedDestinations){var Je=this.internal.pages.length,fn=[];for(qt=0;qt<Je;qt++){var gn=St.internal.newObject();fn.push(gn);var En=St.internal.getPageInfo(qt+1);St.internal.write("<< /D["+En.objId+" 0 R /XYZ null null null]>> endobj")}var We=St.internal.newObject();for(St.internal.write("<< /Names [ "),qt=0;qt<fn.length;qt++)St.internal.write("(page_"+(qt+1)+")"+fn[qt]+" 0 R");St.internal.write(" ] >>","endobj"),pt=St.internal.newObject(),St.internal.write("<< /Dests "+We+" 0 R"),St.internal.write(">>","endobj")}}]),Bt.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 "+pt+" 0 R"))}]),Bt.events.push(["initialized",function(){var St=this;St.outline={createNamedDestinations:!1,root:{children:[]}},St.outline.add=function(_t,oe,qt){var me={title:oe,options:qt,children:[]};return _t==null&&(_t=this.root),_t.children.push(me),me},St.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=St,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},St.outline.genIds_r=function(_t){_t.id=St.internal.newObjectDeferred();for(var oe=0;oe<_t.children.length;oe++)this.genIds_r(_t.children[oe])},St.outline.renderRoot=function(_t){this.objStart(_t),this.line("/Type /Outlines"),_t.children.length>0&&(this.line("/First "+this.makeRef(_t.children[0])),this.line("/Last "+this.makeRef(_t.children[_t.children.length-1]))),this.line("/Count "+this.count_r({count:0},_t)),this.objEnd()},St.outline.renderItems=function(_t){for(var oe=this.ctx.pdf.internal.getVerticalCoordinateString,qt=0;qt<_t.children.length;qt++){var me=_t.children[qt];this.objStart(me),this.line("/Title "+this.makeString(me.title)),this.line("/Parent "+this.makeRef(_t)),qt>0&&this.line("/Prev "+this.makeRef(_t.children[qt-1])),qt<_t.children.length-1&&this.line("/Next "+this.makeRef(_t.children[qt+1])),me.children.length>0&&(this.line("/First "+this.makeRef(me.children[0])),this.line("/Last "+this.makeRef(me.children[me.children.length-1])));var Ce=this.count=this.count_r({count:0},me);if(Ce>0&&this.line("/Count "+Ce),me.options&&me.options.pageNumber){var Le=St.internal.getPageInfo(me.options.pageNumber);this.line("/Dest ["+Le.objId+" 0 R /XYZ 0 "+oe(0)+" 0]")}this.objEnd()}for(var Je=0;Je<_t.children.length;Je++)this.renderItems(_t.children[Je])},St.outline.line=function(_t){this.ctx.val+=_t+`\r
`},St.outline.makeRef=function(_t){return _t.id+" 0 R"},St.outline.makeString=function(_t){return"("+St.internal.pdfEscape(_t)+")"},St.outline.objStart=function(_t){this.ctx.val+=`\r
`+_t.id+` 0 obj\r
<<\r
`},St.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},St.outline.count_r=function(_t,oe){for(var qt=0;qt<oe.children.length;qt++)_t.count++,this.count_r(_t,oe.children[qt]);return _t.count}}])}(Ho.API),function(Bt){var pt=[192,193,194,195,196,197,198,199];Bt.processJPEG=function(St,_t,oe,qt,me,Ce){var Le,Je=this.decode.DCT_DECODE,fn=null;if(typeof St=="string"||this.__addimage__.isArrayBuffer(St)||this.__addimage__.isArrayBufferView(St)){switch(St=me||St,St=this.__addimage__.isArrayBuffer(St)?new Uint8Array(St):St,(Le=function(gn){for(var En,We=256*gn.charCodeAt(4)+gn.charCodeAt(5),vi=gn.length,ei={width:0,height:0,numcomponents:1},wi=4;wi<vi;wi+=2){if(wi+=We,pt.indexOf(gn.charCodeAt(wi+1))!==-1){En=256*gn.charCodeAt(wi+5)+gn.charCodeAt(wi+6),ei={width:256*gn.charCodeAt(wi+7)+gn.charCodeAt(wi+8),height:En,numcomponents:gn.charCodeAt(wi+9)};break}We=256*gn.charCodeAt(wi+2)+gn.charCodeAt(wi+3)}return ei}(St=this.__addimage__.isArrayBufferView(St)?this.__addimage__.arrayBufferToBinaryString(St):St)).numcomponents){case 1:Ce=this.color_spaces.DEVICE_GRAY;break;case 4:Ce=this.color_spaces.DEVICE_CMYK;break;case 3:Ce=this.color_spaces.DEVICE_RGB}fn={data:St,width:Le.width,height:Le.height,colorSpace:Ce,bitsPerComponent:8,filter:Je,index:_t,alias:oe}}return fn}}(Ho.API);var hl,zd,td,Bh,Ro,sA=function(){var Bt,pt,St;function _t(qt){var me,Ce,Le,Je,fn,gn,En,We,vi,ei,wi,Hn,gi,zi;for(this.data=qt,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},gn=null;;){switch(me=this.readUInt32(),vi=function(){var or,Lr;for(Lr=[],or=0;or<4;++or)Lr.push(String.fromCharCode(this.data[this.pos++]));return Lr}.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(me);break;case"fcTL":gn&&this.animation.frames.push(gn),this.pos+=4,gn={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},fn=this.readUInt16(),Je=this.readUInt16()||100,gn.delay=1e3*fn/Je,gn.disposeOp=this.data[this.pos++],gn.blendOp=this.data[this.pos++],gn.data=[];break;case"IDAT":case"fdAT":for(vi==="fdAT"&&(this.pos+=4,me-=4),qt=(gn!=null?gn.data:void 0)||this.imgData,Hn=0;0<=me?Hn<me:Hn>me;0<=me?++Hn:--Hn)qt.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Le=this.palette.length/3,this.transparency.indexed=this.read(me),this.transparency.indexed.length>Le)throw new Error("More transparent colors than palette size");if((ei=Le-this.transparency.indexed.length)>0)for(gi=0;0<=ei?gi<ei:gi>ei;0<=ei?++gi:--gi)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(me)[0];break;case 2:this.transparency.rgb=this.read(me)}break;case"tEXt":En=(wi=this.read(me)).indexOf(0),We=String.fromCharCode.apply(String,wi.slice(0,En)),this.text[We]=String.fromCharCode.apply(String,wi.slice(En+1));break;case"IEND":return gn&&this.animation.frames.push(gn),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(zi=this.colorType)===4||zi===6,Ce=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Ce,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+=me}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}_t.prototype.read=function(qt){var me,Ce;for(Ce=[],me=0;0<=qt?me<qt:me>qt;0<=qt?++me:--me)Ce.push(this.data[this.pos++]);return Ce},_t.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},_t.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},_t.prototype.decodePixels=function(qt){var me=this.pixelBitlength/8,Ce=new Uint8Array(this.width*this.height*me),Le=0,Je=this;if(qt==null&&(qt=this.imgData),qt.length===0)return new Uint8Array(0);function fn(gn,En,We,vi){var ei,wi,Hn,gi,zi,or,Lr,lo,mr,Di,Cr,Or,qn,oi,ye,we,Ye,tn,yn,on,Dn,Rn=Math.ceil((Je.width-gn)/We),ti=Math.ceil((Je.height-En)/vi),ze=Je.width==Rn&&Je.height==ti;for(oi=me*Rn,Or=ze?Ce:new Uint8Array(oi*ti),or=qt.length,qn=0,wi=0;qn<ti&&Le<or;){switch(qt[Le++]){case 0:for(gi=Ye=0;Ye<oi;gi=Ye+=1)Or[wi++]=qt[Le++];break;case 1:for(gi=tn=0;tn<oi;gi=tn+=1)ei=qt[Le++],zi=gi<me?0:Or[wi-me],Or[wi++]=(ei+zi)%256;break;case 2:for(gi=yn=0;yn<oi;gi=yn+=1)ei=qt[Le++],Hn=(gi-gi%me)/me,ye=qn&&Or[(qn-1)*oi+Hn*me+gi%me],Or[wi++]=(ye+ei)%256;break;case 3:for(gi=on=0;on<oi;gi=on+=1)ei=qt[Le++],Hn=(gi-gi%me)/me,zi=gi<me?0:Or[wi-me],ye=qn&&Or[(qn-1)*oi+Hn*me+gi%me],Or[wi++]=(ei+Math.floor((zi+ye)/2))%256;break;case 4:for(gi=Dn=0;Dn<oi;gi=Dn+=1)ei=qt[Le++],Hn=(gi-gi%me)/me,zi=gi<me?0:Or[wi-me],qn===0?ye=we=0:(ye=Or[(qn-1)*oi+Hn*me+gi%me],we=Hn&&Or[(qn-1)*oi+(Hn-1)*me+gi%me]),Lr=zi+ye-we,lo=Math.abs(Lr-zi),Di=Math.abs(Lr-ye),Cr=Math.abs(Lr-we),mr=lo<=Di&&lo<=Cr?zi:Di<=Cr?ye:we,Or[wi++]=(ei+mr)%256;break;default:throw new Error("Invalid filter algorithm: "+qt[Le-1])}if(!ze){var cn=((En+qn*vi)*Je.width+gn)*me,vn=qn*oi;for(gi=0;gi<Rn;gi+=1){for(var Gn=0;Gn<me;Gn+=1)Ce[cn++]=Or[vn++];cn+=(We-1)*me}}qn++}}return qt=bn(qt),Je.interlaceMethod==1?(fn(0,0,8,8),fn(4,0,8,8),fn(0,4,4,8),fn(2,0,4,4),fn(0,2,2,4),fn(1,0,2,2),fn(0,1,1,2)):fn(0,0,1,1),Ce},_t.prototype.decodePalette=function(){var qt,me,Ce,Le,Je,fn,gn,En,We;for(Ce=this.palette,fn=this.transparency.indexed||[],Je=new Uint8Array((fn.length||0)+Ce.length),Le=0,qt=0,me=gn=0,En=Ce.length;gn<En;me=gn+=3)Je[Le++]=Ce[me],Je[Le++]=Ce[me+1],Je[Le++]=Ce[me+2],Je[Le++]=(We=fn[qt++])!=null?We:255;return Je},_t.prototype.copyToImageData=function(qt,me){var Ce,Le,Je,fn,gn,En,We,vi,ei,wi,Hn;if(Le=this.colors,ei=null,Ce=this.hasAlphaChannel,this.palette.length&&(ei=(Hn=this._decodedPalette)!=null?Hn:this._decodedPalette=this.decodePalette(),Le=4,Ce=!0),vi=(Je=qt.data||qt).length,gn=ei||me,fn=En=0,Le===1)for(;fn<vi;)We=ei?4*me[fn/4]:En,wi=gn[We++],Je[fn++]=wi,Je[fn++]=wi,Je[fn++]=wi,Je[fn++]=Ce?gn[We++]:255,En=We;else for(;fn<vi;)We=ei?4*me[fn/4]:En,Je[fn++]=gn[We++],Je[fn++]=gn[We++],Je[fn++]=gn[We++],Je[fn++]=Ce?gn[We++]:255,En=We},_t.prototype.decode=function(){var qt;return qt=new Uint8Array(this.width*this.height*4),this.copyToImageData(qt,this.decodePixels()),qt};var oe=function(){if(Object.prototype.toString.call(kr)==="[object Window]"){try{pt=kr.document.createElement("canvas"),St=pt.getContext("2d")}catch(qt){return!1}return!0}return!1};return oe(),Bt=function(qt){var me;if(oe()===!0)return St.width=qt.width,St.height=qt.height,St.clearRect(0,0,qt.width,qt.height),St.putImageData(qt,0,0),(me=new Image).src=pt.toDataURL(),me;throw new Error("This method requires a Browser with Canvas-capability.")},_t.prototype.decodeFrames=function(qt){var me,Ce,Le,Je,fn,gn,En,We;if(this.animation){for(We=[],Ce=fn=0,gn=(En=this.animation.frames).length;fn<gn;Ce=++fn)me=En[Ce],Le=qt.createImageData(me.width,me.height),Je=this.decodePixels(new Uint8Array(me.data)),this.copyToImageData(Le,Je),me.imageData=Le,We.push(me.image=Bt(Le));return We}},_t.prototype.renderFrame=function(qt,me){var Ce,Le,Je;return Ce=(Le=this.animation.frames)[me],Je=Le[me-1],me===0&&qt.clearRect(0,0,this.width,this.height),(Je!=null?Je.disposeOp:void 0)===1?qt.clearRect(Je.xOffset,Je.yOffset,Je.width,Je.height):(Je!=null?Je.disposeOp:void 0)===2&&qt.putImageData(Je.imageData,Je.xOffset,Je.yOffset),Ce.blendOp===0&&qt.clearRect(Ce.xOffset,Ce.yOffset,Ce.width,Ce.height),qt.drawImage(Ce.image,Ce.xOffset,Ce.yOffset)},_t.prototype.animate=function(qt){var me,Ce,Le,Je,fn,gn,En=this;return Ce=0,gn=this.animation,Je=gn.numFrames,Le=gn.frames,fn=gn.numPlays,(me=function(){var We,vi;if(We=Ce++%Je,vi=Le[We],En.renderFrame(qt,We),Je>1&&Ce/Je<fn)return En.animation._timeout=setTimeout(me,vi.delay)})()},_t.prototype.stopAnimation=function(){var qt;return clearTimeout((qt=this.animation)!=null?qt._timeout:void 0)},_t.prototype.render=function(qt){var me,Ce;return qt._png&&qt._png.stopAnimation(),qt._png=this,qt.width=this.width,qt.height=this.height,me=qt.getContext("2d"),this.animation?(this.decodeFrames(me),this.animate(me)):(Ce=me.createImageData(this.width,this.height),this.copyToImageData(Ce,this.decodePixels()),me.putImageData(Ce,0,0))},_t}();function Ln(Bt){var pt=0;if(Bt[pt++]!==71||Bt[pt++]!==73||Bt[pt++]!==70||Bt[pt++]!==56||(Bt[pt++]+1&253)!=56||Bt[pt++]!==97)throw new Error("Invalid GIF 87a/89a header.");var St=Bt[pt++]|Bt[pt++]<<8,_t=Bt[pt++]|Bt[pt++]<<8,oe=Bt[pt++],qt=oe>>7,me=1<<(7&oe)+1;Bt[pt++],Bt[pt++];var Ce=null,Le=null;qt&&(Ce=pt,Le=me,pt+=3*me);var Je=!0,fn=[],gn=0,En=null,We=0,vi=null;for(this.width=St,this.height=_t;Je&&pt<Bt.length;)switch(Bt[pt++]){case 33:switch(Bt[pt++]){case 255:if(Bt[pt]!==11||Bt[pt+1]==78&&Bt[pt+2]==69&&Bt[pt+3]==84&&Bt[pt+4]==83&&Bt[pt+5]==67&&Bt[pt+6]==65&&Bt[pt+7]==80&&Bt[pt+8]==69&&Bt[pt+9]==50&&Bt[pt+10]==46&&Bt[pt+11]==48&&Bt[pt+12]==3&&Bt[pt+13]==1&&Bt[pt+16]==0)pt+=14,vi=Bt[pt++]|Bt[pt++]<<8,pt++;else for(pt+=12;;){if(!((qn=Bt[pt++])>=0))throw Error("Invalid block size");if(qn===0)break;pt+=qn}break;case 249:if(Bt[pt++]!==4||Bt[pt+4]!==0)throw new Error("Invalid graphics extension block.");var ei=Bt[pt++];gn=Bt[pt++]|Bt[pt++]<<8,En=Bt[pt++],!(1&ei)&&(En=null),We=ei>>2&7,pt++;break;case 254:for(;;){if(!((qn=Bt[pt++])>=0))throw Error("Invalid block size");if(qn===0)break;pt+=qn}break;default:throw new Error("Unknown graphic control label: 0x"+Bt[pt-1].toString(16))}break;case 44:var wi=Bt[pt++]|Bt[pt++]<<8,Hn=Bt[pt++]|Bt[pt++]<<8,gi=Bt[pt++]|Bt[pt++]<<8,zi=Bt[pt++]|Bt[pt++]<<8,or=Bt[pt++],Lr=or>>6&1,lo=1<<(7&or)+1,mr=Ce,Di=Le,Cr=!1;or>>7&&(Cr=!0,mr=pt,Di=lo,pt+=3*lo);var Or=pt;for(pt++;;){var qn;if(!((qn=Bt[pt++])>=0))throw Error("Invalid block size");if(qn===0)break;pt+=qn}fn.push({x:wi,y:Hn,width:gi,height:zi,has_local_palette:Cr,palette_offset:mr,palette_size:Di,data_offset:Or,data_length:pt-Or,transparent_index:En,interlaced:!!Lr,delay:gn,disposal:We});break;case 59:Je=!1;break;default:throw new Error("Unknown gif block: 0x"+Bt[pt-1].toString(16))}this.numFrames=function(){return fn.length},this.loopCount=function(){return vi},this.frameInfo=function(oi){if(oi<0||oi>=fn.length)throw new Error("Frame index out of range.");return fn[oi]},this.decodeAndBlitFrameBGRA=function(oi,ye){var we=this.frameInfo(oi),Ye=we.width*we.height,tn=new Uint8Array(Ye);$i(Bt,we.data_offset,tn,Ye);var yn=we.palette_offset,on=we.transparent_index;on===null&&(on=256);var Dn=we.width,Rn=St-Dn,ti=Dn,ze=4*(we.y*St+we.x),cn=4*((we.y+we.height)*St+we.x),vn=ze,Gn=4*Rn;we.interlaced===!0&&(Gn+=4*St*7);for(var Yn=8,ri=0,Fi=tn.length;ri<Fi;++ri){var ci=tn[ri];if(ti===0&&(ti=Dn,(vn+=Gn)>=cn&&(Gn=4*Rn+4*St*(Yn-1),vn=ze+(Dn+Rn)*(Yn<<1),Yn>>=1)),ci===on)vn+=4;else{var Ji=Bt[yn+3*ci],Yi=Bt[yn+3*ci+1],Ar=Bt[yn+3*ci+2];ye[vn++]=Ar,ye[vn++]=Yi,ye[vn++]=Ji,ye[vn++]=255}--ti}},this.decodeAndBlitFrameRGBA=function(oi,ye){var we=this.frameInfo(oi),Ye=we.width*we.height,tn=new Uint8Array(Ye);$i(Bt,we.data_offset,tn,Ye);var yn=we.palette_offset,on=we.transparent_index;on===null&&(on=256);var Dn=we.width,Rn=St-Dn,ti=Dn,ze=4*(we.y*St+we.x),cn=4*((we.y+we.height)*St+we.x),vn=ze,Gn=4*Rn;we.interlaced===!0&&(Gn+=4*St*7);for(var Yn=8,ri=0,Fi=tn.length;ri<Fi;++ri){var ci=tn[ri];if(ti===0&&(ti=Dn,(vn+=Gn)>=cn&&(Gn=4*Rn+4*St*(Yn-1),vn=ze+(Dn+Rn)*(Yn<<1),Yn>>=1)),ci===on)vn+=4;else{var Ji=Bt[yn+3*ci],Yi=Bt[yn+3*ci+1],Ar=Bt[yn+3*ci+2];ye[vn++]=Ji,ye[vn++]=Yi,ye[vn++]=Ar,ye[vn++]=255}--ti}}}function $i(Bt,pt,St,_t){for(var oe=Bt[pt++],qt=1<<oe,me=qt+1,Ce=me+1,Le=oe+1,Je=(1<<Le)-1,fn=0,gn=0,En=0,We=Bt[pt++],vi=new Int32Array(4096),ei=null;;){for(;fn<16&&We!==0;)gn|=Bt[pt++]<<fn,fn+=8,We===1?We=Bt[pt++]:--We;if(fn<Le)break;var wi=gn&Je;if(gn>>=Le,fn-=Le,wi!==qt){if(wi===me)break;for(var Hn=wi<Ce?wi:ei,gi=0,zi=Hn;zi>qt;)zi=vi[zi]>>8,++gi;var or=zi;if(En+gi+(Hn!==wi?1:0)>_t)return void Po.log("Warning, gif stream longer than expected.");St[En++]=or;var Lr=En+=gi;for(Hn!==wi&&(St[En++]=or),zi=Hn;gi--;)zi=vi[zi],St[--Lr]=255&zi,zi>>=8;ei!==null&&Ce<4096&&(vi[Ce++]=ei<<8|or,Ce>=Je+1&&Le<12&&(++Le,Je=Je<<1|1)),ei=wi}else Ce=me+1,Je=(1<<(Le=oe+1))-1,ei=null}return En!==_t&&Po.log("Warning, gif stream shorter than expected."),St}function aA(Bt){var pt,St,_t,oe,qt,me=Math.floor,Ce=new Array(64),Le=new Array(64),Je=new Array(64),fn=new Array(64),gn=new Array(65535),En=new Array(65535),We=new Array(64),vi=new Array(64),ei=[],wi=0,Hn=7,gi=new Array(64),zi=new Array(64),or=new Array(64),Lr=new Array(256),lo=new Array(2048),mr=[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],Di=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Cr=[0,1,2,3,4,5,6,7,8,9,10,11],Or=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],qn=[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],oi=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],ye=[0,1,2,3,4,5,6,7,8,9,10,11],we=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ye=[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 tn(ze,cn){for(var vn=0,Gn=0,Yn=new Array,ri=1;ri<=16;ri++){for(var Fi=1;Fi<=ze[ri];Fi++)Yn[cn[Gn]]=[],Yn[cn[Gn]][0]=vn,Yn[cn[Gn]][1]=ri,Gn++,vn++;vn*=2}return Yn}function yn(ze){for(var cn=ze[0],vn=ze[1]-1;vn>=0;)cn&1<<vn&&(wi|=1<<Hn),vn--,--Hn<0&&(wi==255?(on(255),on(0)):on(wi),Hn=7,wi=0)}function on(ze){ei.push(ze)}function Dn(ze){on(ze>>8&255),on(255&ze)}function Rn(ze,cn,vn,Gn,Yn){for(var ri,Fi=Yn[0],ci=Yn[240],Ji=function(ar,lr){var nr,vr,Zr,co,po,Rr,Do,hs,$o,is,yo=0;for($o=0;$o<8;++$o){nr=ar[yo],vr=ar[yo+1],Zr=ar[yo+2],co=ar[yo+3],po=ar[yo+4],Rr=ar[yo+5],Do=ar[yo+6];var pa=nr+(hs=ar[yo+7]),Wo=nr-hs,rs=vr+Do,Cs=vr-Do,qs=Zr+Rr,Ua=Zr-Rr,$s=co+po,Qo=co-po,zo=pa+$s,gs=pa-$s,es=rs+qs,Os=rs-qs;ar[yo]=zo+es,ar[yo+4]=zo-es;var oo=.707106781*(Os+gs);ar[yo+2]=gs+oo,ar[yo+6]=gs-oo;var Go=.382683433*((zo=Qo+Ua)-(Os=Cs+Wo)),aa=.5411961*zo+Go,Us=1.306562965*Os+Go,zl=.707106781*(es=Ua+Cs),Ml=Wo+zl,Ps=Wo-zl;ar[yo+5]=Ps+aa,ar[yo+3]=Ps-aa,ar[yo+1]=Ml+Us,ar[yo+7]=Ml-Us,yo+=8}for(yo=0,$o=0;$o<8;++$o){nr=ar[yo],vr=ar[yo+8],Zr=ar[yo+16],co=ar[yo+24],po=ar[yo+32],Rr=ar[yo+40],Do=ar[yo+48];var ua=nr+(hs=ar[yo+56]),Ul=nr-hs,fo=vr+Do,Ra=vr-Do,Gl=Zr+Rr,ta=Zr-Rr,la=co+po,ka=co-po,$a=ua+la,ll=ua-la,Rs=fo+Gl,Ta=fo-Gl;ar[yo]=$a+Rs,ar[yo+32]=$a-Rs;var Sl=.707106781*(Ta+ll);ar[yo+16]=ll+Sl,ar[yo+48]=ll-Sl;var pu=.382683433*(($a=ka+ta)-(Ta=Ra+Ul)),uu=.5411961*$a+pu,Ru=1.306562965*Ta+pu,$u=.707106781*(Rs=ta+Ra),Ah=Ul+$u,Yu=Ul-$u;ar[yo+40]=Yu+uu,ar[yo+24]=Yu-uu,ar[yo+8]=Ah+Ru,ar[yo+56]=Ah-Ru,yo++}for($o=0;$o<64;++$o)is=ar[$o]*lr[$o],We[$o]=is>0?is+.5|0:is-.5|0;return We}(ze,cn),Yi=0;Yi<64;++Yi)vi[mr[Yi]]=Ji[Yi];var Ar=vi[0]-vn;vn=vi[0],Ar==0?yn(Gn[0]):(yn(Gn[En[ri=32767+Ar]]),yn(gn[ri]));for(var Fr=63;Fr>0&&vi[Fr]==0;)Fr--;if(Fr==0)return yn(Fi),vn;for(var ro,Ti=1;Ti<=Fr;){for(var Jn=Ti;vi[Ti]==0&&Ti<=Fr;)++Ti;var xo=Ti-Jn;if(xo>=16){ro=xo>>4;for(var br=1;br<=ro;++br)yn(ci);xo&=15}ri=32767+vi[Ti],yn(Yn[(xo<<4)+En[ri]]),yn(gn[ri]),Ti++}return Fr!=63&&yn(Fi),vn}function ti(ze){ze=Math.min(Math.max(ze,1),100),qt!=ze&&(function(cn){for(var vn=[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],Gn=0;Gn<64;Gn++){var Yn=me((vn[Gn]*cn+50)/100);Yn=Math.min(Math.max(Yn,1),255),Ce[mr[Gn]]=Yn}for(var ri=[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],Fi=0;Fi<64;Fi++){var ci=me((ri[Fi]*cn+50)/100);ci=Math.min(Math.max(ci,1),255),Le[mr[Fi]]=ci}for(var Ji=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Yi=0,Ar=0;Ar<8;Ar++)for(var Fr=0;Fr<8;Fr++)Je[Yi]=1/(Ce[mr[Yi]]*Ji[Ar]*Ji[Fr]*8),fn[Yi]=1/(Le[mr[Yi]]*Ji[Ar]*Ji[Fr]*8),Yi++}(ze<50?Math.floor(5e3/ze):Math.floor(200-2*ze)),qt=ze)}this.encode=function(ze,cn){cn&&ti(cn),ei=new Array,wi=0,Hn=7,Dn(65496),Dn(65504),Dn(16),on(74),on(70),on(73),on(70),on(0),on(1),on(1),on(0),Dn(1),Dn(1),on(0),on(0),function(){Dn(65499),Dn(132),on(0);for(var vr=0;vr<64;vr++)on(Ce[vr]);on(1);for(var Zr=0;Zr<64;Zr++)on(Le[Zr])}(),function(vr,Zr){Dn(65472),Dn(17),on(8),Dn(Zr),Dn(vr),on(3),on(1),on(17),on(0),on(2),on(17),on(1),on(3),on(17),on(1)}(ze.width,ze.height),function(){Dn(65476),Dn(418),on(0);for(var vr=0;vr<16;vr++)on(Di[vr+1]);for(var Zr=0;Zr<=11;Zr++)on(Cr[Zr]);on(16);for(var co=0;co<16;co++)on(Or[co+1]);for(var po=0;po<=161;po++)on(qn[po]);on(1);for(var Rr=0;Rr<16;Rr++)on(oi[Rr+1]);for(var Do=0;Do<=11;Do++)on(ye[Do]);on(17);for(var hs=0;hs<16;hs++)on(we[hs+1]);for(var $o=0;$o<=161;$o++)on(Ye[$o])}(),Dn(65498),Dn(12),on(3),on(1),on(0),on(2),on(17),on(3),on(17),on(0),on(63),on(0);var vn=0,Gn=0,Yn=0;wi=0,Hn=7,this.encode.displayName="_encode_";for(var ri,Fi,ci,Ji,Yi,Ar,Fr,ro,Ti,Jn=ze.data,xo=ze.width,br=ze.height,ar=4*xo,lr=0;lr<br;){for(ri=0;ri<ar;){for(Yi=ar*lr+ri,Fr=-1,ro=0,Ti=0;Ti<64;Ti++)Ar=Yi+(ro=Ti>>3)*ar+(Fr=4*(7&Ti)),lr+ro>=br&&(Ar-=ar*(lr+1+ro-br)),ri+Fr>=ar&&(Ar-=ri+Fr-ar+4),Fi=Jn[Ar++],ci=Jn[Ar++],Ji=Jn[Ar++],gi[Ti]=(lo[Fi]+lo[ci+256>>0]+lo[Ji+512>>0]>>16)-128,zi[Ti]=(lo[Fi+768>>0]+lo[ci+1024>>0]+lo[Ji+1280>>0]>>16)-128,or[Ti]=(lo[Fi+1280>>0]+lo[ci+1536>>0]+lo[Ji+1792>>0]>>16)-128;vn=Rn(gi,Je,vn,pt,_t),Gn=Rn(zi,fn,Gn,St,oe),Yn=Rn(or,fn,Yn,St,oe),ri+=32}lr+=8}if(Hn>=0){var nr=[];nr[1]=Hn+1,nr[0]=(1<<Hn+1)-1,yn(nr)}return Dn(65497),new Uint8Array(ei)},Bt=Bt||50,function(){for(var ze=String.fromCharCode,cn=0;cn<256;cn++)Lr[cn]=ze(cn)}(),pt=tn(Di,Cr),St=tn(oi,ye),_t=tn(Or,qn),oe=tn(we,Ye),function(){for(var ze=1,cn=2,vn=1;vn<=15;vn++){for(var Gn=ze;Gn<cn;Gn++)En[32767+Gn]=vn,gn[32767+Gn]=[],gn[32767+Gn][1]=vn,gn[32767+Gn][0]=Gn;for(var Yn=-(cn-1);Yn<=-ze;Yn++)En[32767+Yn]=vn,gn[32767+Yn]=[],gn[32767+Yn][1]=vn,gn[32767+Yn][0]=cn-1+Yn;ze<<=1,cn<<=1}}(),function(){for(var ze=0;ze<256;ze++)lo[ze]=19595*ze,lo[ze+256>>0]=38470*ze,lo[ze+512>>0]=7471*ze+32768,lo[ze+768>>0]=-11059*ze,lo[ze+1024>>0]=-21709*ze,lo[ze+1280>>0]=32768*ze+8421375,lo[ze+1536>>0]=-27439*ze,lo[ze+1792>>0]=-5329*ze}(),ti(Bt)}function ic(Bt,pt){if(this.pos=0,this.buffer=Bt,this.datav=new DataView(Bt.buffer),this.is_with_alpha=!!pt,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 Gu(Bt){function pt(Di){if(!Di)throw Error("assert :P")}function St(Di,Cr,Or){for(var qn=0;4>qn;qn++)if(Di[Cr+qn]!=Or.charCodeAt(qn))return!0;return!1}function _t(Di,Cr,Or,qn,oi){for(var ye=0;ye<oi;ye++)Di[Cr+ye]=Or[qn+ye]}function oe(Di,Cr,Or,qn){for(var oi=0;oi<qn;oi++)Di[Cr+oi]=Or}function qt(Di){return new Int32Array(Di)}function me(Di,Cr){for(var Or=[],qn=0;qn<Di;qn++)Or.push(new Cr);return Or}function Ce(Di,Cr){var Or=[];return function qn(oi,ye,we){for(var Ye=we[ye],tn=0;tn<Ye&&(oi.push(we.length>ye+1?[]:new Cr),!(we.length<ye+1));tn++)qn(oi[tn],ye+1,we)}(Or,0,Di),Or}var Le=function(){var Di=this;function Cr(vt,Qt){for(var de=1<<Qt-1>>>0;vt&de;)de>>>=1;return de?(vt&de-1)+de:vt}function Or(vt,Qt,de,Me,ln){pt(!(Me%de));do vt[Qt+(Me-=de)]=ln;while(0<Me)}function qn(vt,Qt,de,Me,ln){if(pt(2328>=ln),512>=ln)var dn=qt(512);else if((dn=qt(ln))==null)return 0;return function(An,Sn,Tn,Wn,mi,qi){var tr,ki,Wr=Sn,Nr=1<<Tn,_i=qt(16),Ui=qt(16);for(pt(mi!=0),pt(Wn!=null),pt(An!=null),pt(0<Tn),ki=0;ki<mi;++ki){if(15<Wn[ki])return 0;++_i[Wn[ki]]}if(_i[0]==mi)return 0;for(Ui[1]=0,tr=1;15>tr;++tr){if(_i[tr]>1<<tr)return 0;Ui[tr+1]=Ui[tr]+_i[tr]}for(ki=0;ki<mi;++ki)tr=Wn[ki],0<Wn[ki]&&(qi[Ui[tr]++]=ki);if(Ui[15]==1)return(Wn=new oi).g=0,Wn.value=qi[0],Or(An,Wr,1,Nr,Wn),Nr;var zr,uo=-1,Yr=Nr-1,ls=0,Yo=1,fi=1,os=1<<Tn;for(ki=0,tr=1,mi=2;tr<=Tn;++tr,mi<<=1){if(Yo+=fi<<=1,0>(fi-=_i[tr]))return 0;for(;0<_i[tr];--_i[tr])(Wn=new oi).g=tr,Wn.value=qi[ki++],Or(An,Wr+ls,mi,os,Wn),ls=Cr(ls,tr)}for(tr=Tn+1,mi=2;15>=tr;++tr,mi<<=1){if(Yo+=fi<<=1,0>(fi-=_i[tr]))return 0;for(;0<_i[tr];--_i[tr]){if(Wn=new oi,(ls&Yr)!=uo){for(Wr+=os,zr=1<<(uo=tr)-Tn;15>uo&&!(0>=(zr-=_i[uo]));)++uo,zr<<=1;Nr+=os=1<<(zr=uo-Tn),An[Sn+(uo=ls&Yr)].g=zr+Tn,An[Sn+uo].value=Wr-Sn-uo}Wn.g=tr-Tn,Wn.value=qi[ki++],Or(An,Wr+(ls>>Tn),mi,os,Wn),ls=Cr(ls,tr)}}return Yo!=2*Ui[15]-1?0:Nr}(vt,Qt,de,Me,ln,dn)}function oi(){this.value=this.g=0}function ye(){this.value=this.g=0}function we(){this.G=me(5,oi),this.H=qt(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=me(Iu,ye)}function Ye(vt,Qt,de,Me){pt(vt!=null),pt(Qt!=null),pt(2147483648>Me),vt.Ca=254,vt.I=0,vt.b=-8,vt.Ka=0,vt.oa=Qt,vt.pa=de,vt.Jd=Qt,vt.Yc=de+Me,vt.Zc=4<=Me?de+Me-4+1:de,ri(vt)}function tn(vt,Qt){for(var de=0;0<Qt--;)de|=ci(vt,128)<<Qt;return de}function yn(vt,Qt){var de=tn(vt,Qt);return Fi(vt)?-de:de}function on(vt,Qt,de,Me){var ln,dn=0;for(pt(vt!=null),pt(Qt!=null),pt(4294967288>Me),vt.Sb=Me,vt.Ra=0,vt.u=0,vt.h=0,4<Me&&(Me=4),ln=0;ln<Me;++ln)dn+=Qt[de+ln]<<8*ln;vt.Ra=dn,vt.bb=Me,vt.oa=Qt,vt.pa=de}function Dn(vt){for(;8<=vt.u&&vt.bb<vt.Sb;)vt.Ra>>>=8,vt.Ra+=vt.oa[vt.pa+vt.bb]<<jh-8>>>0,++vt.bb,vt.u-=8;vn(vt)&&(vt.h=1,vt.u=0)}function Rn(vt,Qt){if(pt(0<=Qt),!vt.h&&Qt<=Wl){var de=cn(vt)&Yd[Qt];return vt.u+=Qt,Dn(vt),de}return vt.h=1,vt.u=0}function ti(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function ze(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function cn(vt){return vt.Ra>>>(vt.u&jh-1)>>>0}function vn(vt){return pt(vt.bb<=vt.Sb),vt.h||vt.bb==vt.Sb&&vt.u>jh}function Gn(vt,Qt){vt.u=Qt,vt.h=vn(vt)}function Yn(vt){vt.u>=mc&&(pt(vt.u>=mc),Dn(vt))}function ri(vt){pt(vt!=null&&vt.oa!=null),vt.pa<vt.Zc?(vt.I=(vt.oa[vt.pa++]|vt.I<<8)>>>0,vt.b+=8):(pt(vt!=null&&vt.oa!=null),vt.pa<vt.Yc?(vt.b+=8,vt.I=vt.oa[vt.pa++]|vt.I<<8):vt.Ka?vt.b=0:(vt.I<<=8,vt.b+=8,vt.Ka=1))}function Fi(vt){return tn(vt,1)}function ci(vt,Qt){var de=vt.Ca;0>vt.b&&ri(vt);var Me=vt.b,ln=de*Qt>>>8,dn=(vt.I>>>Me>ln)+0;for(dn?(de-=ln,vt.I-=ln+1<<Me>>>0):de=ln+1,Me=de,ln=0;256<=Me;)ln+=8,Me>>=8;return Me=7^ln+th[Me],vt.b-=Me,vt.Ca=(de<<Me)-1,dn}function Ji(vt,Qt,de){vt[Qt+0]=de>>24&255,vt[Qt+1]=de>>16&255,vt[Qt+2]=de>>8&255,vt[Qt+3]=de>>0&255}function Yi(vt,Qt){return vt[Qt+0]<<0|vt[Qt+1]<<8}function Ar(vt,Qt){return Yi(vt,Qt)|vt[Qt+2]<<16}function Fr(vt,Qt){return Yi(vt,Qt)|Yi(vt,Qt+2)<<16}function ro(vt,Qt){var de=1<<Qt;return pt(vt!=null),pt(0<Qt),vt.X=qt(de),vt.X==null?0:(vt.Mb=32-Qt,vt.Xa=Qt,1)}function Ti(vt,Qt){pt(vt!=null),pt(Qt!=null),pt(vt.Xa==Qt.Xa),_t(Qt.X,0,vt.X,0,1<<Qt.Xa)}function Jn(){this.X=[],this.Xa=this.Mb=0}function xo(vt,Qt,de,Me){pt(de!=null),pt(Me!=null);var ln=de[0],dn=Me[0];return ln==0&&(ln=(vt*dn+Qt/2)/Qt),dn==0&&(dn=(Qt*ln+vt/2)/vt),0>=ln||0>=dn?0:(de[0]=ln,Me[0]=dn,1)}function br(vt,Qt){return vt+(1<<Qt)-1>>>Qt}function ar(vt,Qt){return((4278255360&vt)+(4278255360&Qt)>>>0&4278255360)+((16711935&vt)+(16711935&Qt)>>>0&16711935)>>>0}function lr(vt,Qt){Di[Qt]=function(de,Me,ln,dn,An,Sn,Tn){var Wn;for(Wn=0;Wn<An;++Wn){var mi=Di[vt](Sn[Tn+Wn-1],ln,dn+Wn);Sn[Tn+Wn]=ar(de[Me+Wn],mi)}}}function nr(){this.ud=this.hd=this.jd=0}function vr(vt,Qt){return((4278124286&(vt^Qt))>>>1)+(vt&Qt)>>>0}function Zr(vt){return 0<=vt&&256>vt?vt:0>vt?0:255<vt?255:void 0}function co(vt,Qt){return Zr(vt+(vt-Qt+.5>>1))}function po(vt,Qt,de){return Math.abs(Qt-de)-Math.abs(vt-de)}function Rr(vt,Qt,de,Me,ln,dn,An){for(Me=dn[An-1],de=0;de<ln;++de)dn[An+de]=Me=ar(vt[Qt+de],Me)}function Do(vt,Qt,de,Me,ln){var dn;for(dn=0;dn<de;++dn){var An=vt[Qt+dn],Sn=An>>8&255,Tn=16711935&(Tn=(Tn=16711935&An)+((Sn<<16)+Sn));Me[ln+dn]=(4278255360&An)+Tn>>>0}}function hs(vt,Qt){Qt.jd=vt>>0&255,Qt.hd=vt>>8&255,Qt.ud=vt>>16&255}function $o(vt,Qt,de,Me,ln,dn){var An;for(An=0;An<Me;++An){var Sn=Qt[de+An],Tn=Sn>>>8,Wn=Sn,mi=255&(mi=(mi=Sn>>>16)+((vt.jd<<24>>24)*(Tn<<24>>24)>>>5));Wn=255&(Wn=(Wn=Wn+((vt.hd<<24>>24)*(Tn<<24>>24)>>>5))+((vt.ud<<24>>24)*(mi<<24>>24)>>>5)),ln[dn+An]=(4278255360&Sn)+(mi<<16)+Wn}}function is(vt,Qt,de,Me,ln){Di[Qt]=function(dn,An,Sn,Tn,Wn,mi,qi,tr,ki){for(Tn=qi;Tn<tr;++Tn)for(qi=0;qi<ki;++qi)Wn[mi++]=ln(Sn[Me(dn[An++])])},Di[vt]=function(dn,An,Sn,Tn,Wn,mi,qi){var tr=8>>dn.b,ki=dn.Ea,Wr=dn.K[0],Nr=dn.w;if(8>tr)for(dn=(1<<dn.b)-1,Nr=(1<<tr)-1;An<Sn;++An){var _i,Ui=0;for(_i=0;_i<ki;++_i)_i&dn||(Ui=Me(Tn[Wn++])),mi[qi++]=ln(Wr[Ui&Nr]),Ui>>=tr}else Di["VP8LMapColor"+de](Tn,Wn,Wr,Nr,mi,qi,An,Sn,ki)}}function yo(vt,Qt,de,Me,ln){for(de=Qt+de;Qt<de;){var dn=vt[Qt++];Me[ln++]=dn>>16&255,Me[ln++]=dn>>8&255,Me[ln++]=dn>>0&255}}function pa(vt,Qt,de,Me,ln){for(de=Qt+de;Qt<de;){var dn=vt[Qt++];Me[ln++]=dn>>16&255,Me[ln++]=dn>>8&255,Me[ln++]=dn>>0&255,Me[ln++]=dn>>24&255}}function Wo(vt,Qt,de,Me,ln){for(de=Qt+de;Qt<de;){var dn=(An=vt[Qt++])>>16&240|An>>12&15,An=An>>0&240|An>>28&15;Me[ln++]=dn,Me[ln++]=An}}function rs(vt,Qt,de,Me,ln){for(de=Qt+de;Qt<de;){var dn=(An=vt[Qt++])>>16&248|An>>13&7,An=An>>5&224|An>>3&31;Me[ln++]=dn,Me[ln++]=An}}function Cs(vt,Qt,de,Me,ln){for(de=Qt+de;Qt<de;){var dn=vt[Qt++];Me[ln++]=dn>>0&255,Me[ln++]=dn>>8&255,Me[ln++]=dn>>16&255}}function qs(vt,Qt,de,Me,ln,dn){if(dn==0)for(de=Qt+de;Qt<de;)Ji(Me,((dn=vt[Qt++])[0]>>24|dn[1]>>8&65280|dn[2]<<8&16711680|dn[3]<<24)>>>0),ln+=32;else _t(Me,ln,vt,Qt,de)}function Ua(vt,Qt){Di[Qt][0]=Di[vt+"0"],Di[Qt][1]=Di[vt+"1"],Di[Qt][2]=Di[vt+"2"],Di[Qt][3]=Di[vt+"3"],Di[Qt][4]=Di[vt+"4"],Di[Qt][5]=Di[vt+"5"],Di[Qt][6]=Di[vt+"6"],Di[Qt][7]=Di[vt+"7"],Di[Qt][8]=Di[vt+"8"],Di[Qt][9]=Di[vt+"9"],Di[Qt][10]=Di[vt+"10"],Di[Qt][11]=Di[vt+"11"],Di[Qt][12]=Di[vt+"12"],Di[Qt][13]=Di[vt+"13"],Di[Qt][14]=Di[vt+"0"],Di[Qt][15]=Di[vt+"0"]}function $s(vt){return vt==Wc||vt==Jd||vt==zf||vt==Lh}function Qo(){this.eb=[],this.size=this.A=this.fb=0}function zo(){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 gs(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qo,this.f.kb=new zo,this.sd=null}function es(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Os(){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 oo(vt){return alert("todo:WebPSamplerProcessPlane"),vt.T}function Go(vt,Qt){var de=vt.T,Me=Qt.ba.f.RGBA,ln=Me.eb,dn=Me.fb+vt.ka*Me.A,An=Tu[Qt.ba.S],Sn=vt.y,Tn=vt.O,Wn=vt.f,mi=vt.N,qi=vt.ea,tr=vt.W,ki=Qt.cc,Wr=Qt.dc,Nr=Qt.Mc,_i=Qt.Nc,Ui=vt.ka,zr=vt.ka+vt.T,uo=vt.U,Yr=uo+1>>1;for(Ui==0?An(Sn,Tn,null,null,Wn,mi,qi,tr,Wn,mi,qi,tr,ln,dn,null,null,uo):(An(Qt.ec,Qt.fc,Sn,Tn,ki,Wr,Nr,_i,Wn,mi,qi,tr,ln,dn-Me.A,ln,dn,uo),++de);Ui+2<zr;Ui+=2)ki=Wn,Wr=mi,Nr=qi,_i=tr,mi+=vt.Rc,tr+=vt.Rc,dn+=2*Me.A,An(Sn,(Tn+=2*vt.fa)-vt.fa,Sn,Tn,ki,Wr,Nr,_i,Wn,mi,qi,tr,ln,dn-Me.A,ln,dn,uo);return Tn+=vt.fa,vt.j+zr<vt.o?(_t(Qt.ec,Qt.fc,Sn,Tn,uo),_t(Qt.cc,Qt.dc,Wn,mi,Yr),_t(Qt.Mc,Qt.Nc,qi,tr,Yr),de--):1&zr||An(Sn,Tn,null,null,Wn,mi,qi,tr,Wn,mi,qi,tr,ln,dn+Me.A,null,null,uo),de}function aa(vt,Qt,de){var Me=vt.F,ln=[vt.J];if(Me!=null){var dn=vt.U,An=Qt.ba.S,Sn=An==Sh||An==zf;Qt=Qt.ba.f.RGBA;var Tn=[0],Wn=vt.ka;Tn[0]=vt.T,vt.Kb&&(Wn==0?--Tn[0]:(--Wn,ln[0]-=vt.width),vt.j+vt.ka+vt.T==vt.o&&(Tn[0]=vt.o-vt.j-Wn));var mi=Qt.eb;Wn=Qt.fb+Wn*Qt.A,vt=ya(Me,ln[0],vt.width,dn,Tn,mi,Wn+(Sn?0:3),Qt.A),pt(de==Tn),vt&&$s(An)&&yu(mi,Wn,Sn,dn,Tn,Qt.A)}return 0}function Us(vt){var Qt=vt.ma,de=Qt.ba.S,Me=11>de,ln=de==ad||de==hh||de==Sh||de==Tl||de==12||$s(de);if(Qt.memory=null,Qt.Ib=null,Qt.Jb=null,Qt.Nd=null,!Fd(Qt.Oa,vt,ln?11:12))return 0;if(ln&&$s(de)&&wo(),vt.da)alert("todo:use_scaling");else{if(Me){if(Qt.Ib=oo,vt.Kb){if(de=vt.U+1>>1,Qt.memory=qt(vt.U+2*de),Qt.memory==null)return 0;Qt.ec=Qt.memory,Qt.fc=0,Qt.cc=Qt.ec,Qt.dc=Qt.fc+vt.U,Qt.Mc=Qt.cc,Qt.Nc=Qt.dc+de,Qt.Ib=Go,wo()}}else alert("todo:EmitYUV");ln&&(Qt.Jb=aa,Me&&hr())}if(Me&&!kt){for(vt=0;256>vt;++vt)It[vt]=89858*(vt-128)+kA>>IA,Fe[vt]=-22014*(vt-128)+kA,Ut[vt]=-45773*(vt-128),Ht[vt]=113618*(vt-128)+kA>>IA;for(vt=Fc;vt<Vf;++vt)Qt=76283*(vt-16)+kA>>IA,qe[vt-Fc]=Fh(Qt,255),Nn[vt-Fc]=Fh(Qt+8>>4,15);kt=1}return 1}function zl(vt){var Qt=vt.ma,de=vt.U,Me=vt.T;return pt(!(1&vt.ka)),0>=de||0>=Me?0:(de=Qt.Ib(vt,Qt),Qt.Jb!=null&&Qt.Jb(vt,Qt,de),Qt.Dc+=de,1)}function Ml(vt){vt.ma.memory=null}function Ps(vt,Qt,de,Me){return Rn(vt,8)!=47?0:(Qt[0]=Rn(vt,14)+1,de[0]=Rn(vt,14)+1,Me[0]=Rn(vt,1),Rn(vt,3)!=0?0:!vt.h)}function ua(vt,Qt){if(4>vt)return vt+1;var de=vt-2>>1;return(2+(1&vt)<<de)+Rn(Qt,de)+1}function Ul(vt,Qt){return 120<Qt?Qt-120:1<=(de=((de=NA[Qt-1])>>4)*vt+(8-(15&de)))?de:1;var de}function fo(vt,Qt,de){var Me=cn(de),ln=vt[Qt+=255&Me].g-8;return 0<ln&&(Gn(de,de.u+8),Me=cn(de),Qt+=vt[Qt].value,Qt+=Me&(1<<ln)-1),Gn(de,de.u+vt[Qt].g),vt[Qt].value}function Ra(vt,Qt,de){return de.g+=vt.g,de.value+=vt.value<<Qt>>>0,pt(8>=de.g),vt.g}function Gl(vt,Qt,de){var Me=vt.xc;return pt((Qt=Me==0?0:vt.vc[vt.md*(de>>Me)+(Qt>>Me)])<vt.Wb),vt.Ya[Qt]}function ta(vt,Qt,de,Me){var ln=vt.ab,dn=vt.c*Qt,An=vt.C;Qt=An+Qt;var Sn=de,Tn=Me;for(Me=vt.Ta,de=vt.Ua;0<ln--;){var Wn=vt.gc[ln],mi=An,qi=Qt,tr=Sn,ki=Tn,Wr=(Tn=Me,Sn=de,Wn.Ea);switch(pt(mi<qi),pt(qi<=Wn.nc),Wn.hc){case 2:Uh(tr,ki,(qi-mi)*Wr,Tn,Sn);break;case 0:var Nr=mi,_i=qi,Ui=Tn,zr=Sn,uo=(os=Wn).Ea;Nr==0&&(Vl(tr,ki,null,null,1,Ui,zr),Rr(tr,ki+1,0,0,uo-1,Ui,zr+1),ki+=uo,zr+=uo,++Nr);for(var Yr=1<<os.b,ls=Yr-1,Yo=br(uo,os.b),fi=os.K,os=os.w+(Nr>>os.b)*Yo;Nr<_i;){var Pl=fi,bl=os,rl=1;for(Ld(tr,ki,Ui,zr-uo,1,Ui,zr);rl<uo;){var Wa=(rl&~ls)+Yr;Wa>uo&&(Wa=uo),(0,ft[Pl[bl++]>>8&15])(tr,ki+ +rl,Ui,zr+rl-uo,Wa-rl,Ui,zr+rl),rl=Wa}ki+=uo,zr+=uo,++Nr&ls||(os+=Yo)}qi!=Wn.nc&&_t(Tn,Sn-Wr,Tn,Sn+(qi-mi-1)*Wr,Wr);break;case 1:for(Wr=tr,_i=ki,uo=(tr=Wn.Ea)-(zr=tr&~(Ui=(ki=1<<Wn.b)-1)),Nr=br(tr,Wn.b),Yr=Wn.K,Wn=Wn.w+(mi>>Wn.b)*Nr;mi<qi;){for(ls=Yr,Yo=Wn,fi=new nr,os=_i+zr,Pl=_i+tr;_i<os;)hs(ls[Yo++],fi),At(fi,Wr,_i,ki,Tn,Sn),_i+=ki,Sn+=ki;_i<Pl&&(hs(ls[Yo++],fi),At(fi,Wr,_i,uo,Tn,Sn),_i+=uo,Sn+=uo),++mi&Ui||(Wn+=Nr)}break;case 3:if(tr==Tn&&ki==Sn&&0<Wn.b){for(_i=Tn,tr=Wr=Sn+(qi-mi)*Wr-(zr=(qi-mi)*br(Wn.Ea,Wn.b)),ki=Tn,Ui=Sn,Nr=[],zr=(uo=zr)-1;0<=zr;--zr)Nr[zr]=ki[Ui+zr];for(zr=uo-1;0<=zr;--zr)_i[tr+zr]=Nr[zr];lh(Wn,mi,qi,Tn,Wr,Tn,Sn)}else lh(Wn,mi,qi,tr,ki,Tn,Sn)}Sn=Me,Tn=de}Tn!=de&&_t(Me,de,Sn,Tn,dn)}function la(vt,Qt){var de=vt.V,Me=vt.Ba+vt.c*vt.C,ln=Qt-vt.C;if(pt(Qt<=vt.l.o),pt(16>=ln),0<ln){var dn=vt.l,An=vt.Ta,Sn=vt.Ua,Tn=dn.width;if(ta(vt,ln,de,Me),ln=Sn=[Sn],pt((de=vt.C)<(Me=Qt)),pt(dn.v<dn.va),Me>dn.o&&(Me=dn.o),de<dn.j){var Wn=dn.j-de;de=dn.j,ln[0]+=Wn*Tn}if(de>=Me?de=0:(ln[0]+=4*dn.v,dn.ka=de-dn.j,dn.U=dn.va-dn.v,dn.T=Me-de,de=1),de){if(Sn=Sn[0],11>(de=vt.ca).S){var mi=de.f.RGBA,qi=(Me=de.S,ln=dn.U,dn=dn.T,Wn=mi.eb,mi.A),tr=dn;for(mi=mi.fb+vt.Ma*mi.A;0<tr--;){var ki=An,Wr=Sn,Nr=ln,_i=Wn,Ui=mi;switch(Me){case du:xt(ki,Wr,Nr,_i,Ui);break;case ad:te(ki,Wr,Nr,_i,Ui);break;case Wc:te(ki,Wr,Nr,_i,Ui),yu(_i,Ui,0,Nr,1,0);break;case uc:Re(ki,Wr,Nr,_i,Ui);break;case hh:qs(ki,Wr,Nr,_i,Ui,1);break;case Jd:qs(ki,Wr,Nr,_i,Ui,1),yu(_i,Ui,0,Nr,1,0);break;case Sh:qs(ki,Wr,Nr,_i,Ui,0);break;case zf:qs(ki,Wr,Nr,_i,Ui,0),yu(_i,Ui,1,Nr,1,0);break;case Tl:Pe(ki,Wr,Nr,_i,Ui);break;case Lh:Pe(ki,Wr,Nr,_i,Ui),Na(_i,Ui,Nr,1,0);break;case eh:He(ki,Wr,Nr,_i,Ui);break;default:pt(0)}Sn+=Tn,mi+=qi}vt.Ma+=dn}else alert("todo:EmitRescaledRowsYUVA");pt(vt.Ma<=de.height)}}vt.C=Qt,pt(vt.C<=vt.i)}function ka(vt){var Qt;if(0<vt.ua)return 0;for(Qt=0;Qt<vt.Wb;++Qt){var de=vt.Ya[Qt].G,Me=vt.Ya[Qt].H;if(0<de[1][Me[1]+0].g||0<de[2][Me[2]+0].g||0<de[3][Me[3]+0].g)return 0}return 1}function $a(vt,Qt,de,Me,ln,dn){if(vt.Z!=0){var An=vt.qd,Sn=vt.rd;for(pt(Td[vt.Z]!=null);Qt<de;++Qt)Td[vt.Z](An,Sn,Me,ln,Me,ln,dn),An=Me,Sn=ln,ln+=dn;vt.qd=An,vt.rd=Sn}}function ll(vt,Qt){var de=vt.l.ma,Me=de.Z==0||de.Z==1?vt.l.j:vt.C;if(Me=vt.C<Me?Me:vt.C,pt(Qt<=vt.l.o),Qt>Me){var ln=vt.l.width,dn=de.ca,An=de.tb+ln*Me,Sn=vt.V,Tn=vt.Ba+vt.c*Me,Wn=vt.gc;pt(vt.ab==1),pt(Wn[0].hc==3),it(Wn[0],Me,Qt,Sn,Tn,dn,An),$a(de,Me,Qt,dn,An,ln)}vt.C=vt.Ma=Qt}function Rs(vt,Qt,de,Me,ln,dn,An){var Sn=vt.$/Me,Tn=vt.$%Me,Wn=vt.m,mi=vt.s,qi=de+vt.$,tr=qi;ln=de+Me*ln;var ki=de+Me*dn,Wr=280+mi.ua,Nr=vt.Pb?Sn:16777216,_i=0<mi.ua?mi.Wa:null,Ui=mi.wc,zr=qi<ki?Gl(mi,Tn,Sn):null;pt(vt.C<dn),pt(ki<=ln);var uo=!1;t:for(;;){for(;uo||qi<ki;){var Yr=0;if(Sn>=Nr){var ls=qi-de;pt((Nr=vt).Pb),Nr.wd=Nr.m,Nr.xd=ls,0<Nr.s.ua&&Ti(Nr.s.Wa,Nr.s.vb),Nr=Sn+WA}if(Tn&Ui||(zr=Gl(mi,Tn,Sn)),pt(zr!=null),zr.Qb&&(Qt[qi]=zr.qb,uo=!0),!uo)if(Yn(Wn),zr.jc){Yr=Wn,ls=Qt;var Yo=qi,fi=zr.pd[cn(Yr)&Iu-1];pt(zr.jc),256>fi.g?(Gn(Yr,Yr.u+fi.g),ls[Yo]=fi.value,Yr=0):(Gn(Yr,Yr.u+fi.g-256),pt(256<=fi.value),Yr=fi.value),Yr==0&&(uo=!0)}else Yr=fo(zr.G[0],zr.H[0],Wn);if(Wn.h)break;if(uo||256>Yr){if(!uo)if(zr.nd)Qt[qi]=(zr.qb|Yr<<8)>>>0;else{if(Yn(Wn),uo=fo(zr.G[1],zr.H[1],Wn),Yn(Wn),ls=fo(zr.G[2],zr.H[2],Wn),Yo=fo(zr.G[3],zr.H[3],Wn),Wn.h)break;Qt[qi]=(Yo<<24|uo<<16|Yr<<8|ls)>>>0}if(uo=!1,++qi,++Tn>=Me&&(Tn=0,++Sn,An!=null&&Sn<=dn&&!(Sn%16)&&An(vt,Sn),_i!=null))for(;tr<qi;)Yr=Qt[tr++],_i.X[(506832829*Yr&4294967295)>>>_i.Mb]=Yr}else if(280>Yr){if(Yr=ua(Yr-256,Wn),ls=fo(zr.G[4],zr.H[4],Wn),Yn(Wn),ls=Ul(Me,ls=ua(ls,Wn)),Wn.h)break;if(qi-de<ls||ln-qi<Yr)break t;for(Yo=0;Yo<Yr;++Yo)Qt[qi+Yo]=Qt[qi+Yo-ls];for(qi+=Yr,Tn+=Yr;Tn>=Me;)Tn-=Me,++Sn,An!=null&&Sn<=dn&&!(Sn%16)&&An(vt,Sn);if(pt(qi<=ln),Tn&Ui&&(zr=Gl(mi,Tn,Sn)),_i!=null)for(;tr<qi;)Yr=Qt[tr++],_i.X[(506832829*Yr&4294967295)>>>_i.Mb]=Yr}else{if(!(Yr<Wr))break t;for(uo=Yr-280,pt(_i!=null);tr<qi;)Yr=Qt[tr++],_i.X[(506832829*Yr&4294967295)>>>_i.Mb]=Yr;Yr=qi,pt(!(uo>>>(ls=_i).Xa)),Qt[Yr]=ls.X[uo],uo=!0}uo||pt(Wn.h==vn(Wn))}if(vt.Pb&&Wn.h&&qi<ln)pt(vt.m.h),vt.a=5,vt.m=vt.wd,vt.$=vt.xd,0<vt.s.ua&&Ti(vt.s.vb,vt.s.Wa);else{if(Wn.h)break t;An!=null&&An(vt,Sn>dn?dn:Sn),vt.a=0,vt.$=qi-de}return 1}return vt.a=3,0}function Ta(vt){pt(vt!=null),vt.vc=null,vt.yc=null,vt.Ya=null;var Qt=vt.Wa;Qt!=null&&(Qt.X=null),vt.vb=null,pt(vt!=null)}function Sl(){var vt=new EA;return vt==null?null:(vt.a=0,vt.xb=kd,Ua("Predictor","VP8LPredictors"),Ua("Predictor","VP8LPredictors_C"),Ua("PredictorAdd","VP8LPredictorsAdd"),Ua("PredictorAdd","VP8LPredictorsAdd_C"),Uh=Do,At=$o,xt=yo,te=pa,Pe=Wo,He=rs,Re=Cs,Di.VP8LMapColor32b=sd,Di.VP8LMapColor8b=st,vt)}function pu(vt,Qt,de,Me,ln){var dn=1,An=[vt],Sn=[Qt],Tn=Me.m,Wn=Me.s,mi=null,qi=0;t:for(;;){if(de)for(;dn&&Rn(Tn,1);){var tr=An,ki=Sn,Wr=Me,Nr=1,_i=Wr.m,Ui=Wr.gc[Wr.ab],zr=Rn(_i,2);if(Wr.Oc&1<<zr)dn=0;else{switch(Wr.Oc|=1<<zr,Ui.hc=zr,Ui.Ea=tr[0],Ui.nc=ki[0],Ui.K=[null],++Wr.ab,pt(4>=Wr.ab),zr){case 0:case 1:Ui.b=Rn(_i,3)+2,Nr=pu(br(Ui.Ea,Ui.b),br(Ui.nc,Ui.b),0,Wr,Ui.K),Ui.K=Ui.K[0];break;case 3:var uo,Yr=Rn(_i,8)+1,ls=16<Yr?0:4<Yr?1:2<Yr?2:3;if(tr[0]=br(Ui.Ea,ls),Ui.b=ls,uo=Nr=pu(Yr,1,0,Wr,Ui.K)){var Yo,fi=Yr,os=Ui,Pl=1<<(8>>os.b),bl=qt(Pl);if(bl==null)uo=0;else{var rl=os.K[0],Wa=os.w;for(bl[0]=os.K[0][0],Yo=1;Yo<1*fi;++Yo)bl[Yo]=ar(rl[Wa+Yo],bl[Yo-1]);for(;Yo<4*Pl;++Yo)bl[Yo]=0;os.K[0]=null,os.K[0]=bl,uo=1}}Nr=uo;break;case 2:break;default:pt(0)}dn=Nr}}if(An=An[0],Sn=Sn[0],dn&&Rn(Tn,1)&&!(dn=1<=(qi=Rn(Tn,4))&&11>=qi)){Me.a=3;break t}var _a;if(_a=dn)e:{var dl,Ia,Wh,ud=Me,Rh=An,hd=Sn,Ol=qi,cd=de,dd=ud.m,Vh=ud.s,hc=[null],Vc=1,qd=0,TA=Kf[Ol];n:for(;;){if(cd&&Rn(dd,1)){var ou=Rn(dd,3)+2,uf=br(Rh,ou),OA=br(hd,ou),Zf=uf*OA;if(!pu(uf,OA,0,ud,hc))break n;for(hc=hc[0],Vh.xc=ou,dl=0;dl<Zf;++dl){var DA=hc[dl]>>8&65535;hc[dl]=DA,DA>=Vc&&(Vc=DA+1)}}if(dd.h)break n;for(Ia=0;5>Ia;++Ia){var gh=yf[Ia];!Ia&&0<Ol&&(gh+=1<<Ol),qd<gh&&(qd=gh)}var Zg=me(Vc*TA,oi),Bp=Vc,Xg=me(Bp,we);if(Xg==null)var Zc=null;else pt(65536>=Bp),Zc=Xg;var Bg=qt(qd);if(Zc==null||Bg==null||Zg==null){ud.a=1;break n}var $g=Zg;for(dl=Wh=0;dl<Vc;++dl){var ch=Zc[dl],Xc=ch.G,Mh=ch.H,Zl=0,Xf=1,Yg=0;for(Ia=0;5>Ia;++Ia){gh=yf[Ia],Xc[Ia]=$g,Mh[Ia]=Wh,!Ia&&0<Ol&&(gh+=1<<Ol);r:{var Pg,$f=gh,Yf=ud,ko=Bg,Sf=$g,bg=Wh,Jg=0,jA=Yf.m,Pp=Rn(jA,1);if(oe(ko,0,0,$f),Pp){var Cf=Rn(jA,1)+1,n0=Rn(jA,1),um=Rn(jA,n0==0?1:8);ko[um]=1,Cf==2&&(ko[um=Rn(jA,8)]=1);var Ad=1}else{var bp=qt(19),Ep=Rn(jA,4)+4;if(19<Ep){Yf.a=3;var oa=0;break r}for(Pg=0;Pg<Ep;++Pg)bp[GA[Pg]]=Rn(jA,3);var fd=void 0,Eg=void 0,Fg=Yf,hm=bp,hf=$f,$c=ko,Jf=0,cf=Fg.m,cm=8,qg=me(128,oi);i:for(;qn(qg,0,7,hm,19);){if(Rn(cf,1)){var Fp=2+2*Rn(cf,3);if((fd=2+Rn(cf,Fp))>hf)break i}else fd=hf;for(Eg=0;Eg<hf&&fd--;){Yn(cf);var Lp=qg[0+(127&cn(cf))];Gn(cf,cf.u+Lp.g);var qf=Lp.value;if(16>qf)$c[Eg++]=qf,qf!=0&&(cm=qf);else{var dm=qf==16,Am=qf-16,fm=Md[Am],tp=Rn(cf,Sg[Am])+fm;if(Eg+tp>hf)break i;for(var ep=dm?cm:0;0<tp--;)$c[Eg++]=ep}}Jf=1;break i}Jf||(Fg.a=3),Ad=Jf}(Ad=Ad&&!jA.h)&&(Jg=qn(Sf,bg,8,ko,$f)),Ad&&Jg!=0?oa=Jg:(Yf.a=3,oa=0)}if(oa==0)break n;if(Xf&&wf[Ia]==1&&(Xf=$g[Wh].g==0),Zl+=$g[Wh].g,Wh+=oa,3>=Ia){var Lg,gm=Bg[0];for(Lg=1;Lg<gh;++Lg)Bg[Lg]>gm&&(gm=Bg[Lg]);Yg+=gm}}if(ch.nd=Xf,ch.Qb=0,Xf&&(ch.qb=(Xc[3][Mh[3]+0].value<<24|Xc[1][Mh[1]+0].value<<16|Xc[2][Mh[2]+0].value)>>>0,Zl==0&&256>Xc[0][Mh[0]+0].value&&(ch.Qb=1,ch.qb+=Xc[0][Mh[0]+0].value<<8)),ch.jc=!ch.Qb&&6>Yg,ch.jc){var Mg,$A=ch;for(Mg=0;Mg<Iu;++Mg){var UA=Mg,YA=$A.pd[UA],Bf=$A.G[0][$A.H[0]+UA];256<=Bf.value?(YA.g=Bf.g+256,YA.value=Bf.value):(YA.g=0,YA.value=0,UA>>=Ra(Bf,8,YA),UA>>=Ra($A.G[1][$A.H[1]+UA],16,YA),UA>>=Ra($A.G[2][$A.H[2]+UA],0,YA),Ra($A.G[3][$A.H[3]+UA],24,YA))}}}Vh.vc=hc,Vh.Wb=Vc,Vh.Ya=Zc,Vh.yc=Zg,_a=1;break e}_a=0}if(!(dn=_a)){Me.a=3;break t}if(0<qi){if(Wn.ua=1<<qi,!ro(Wn.Wa,qi)){Me.a=1,dn=0;break t}}else Wn.ua=0;var Mp=Me,Nh=An,Np=Sn,np=Mp.s,Od=np.xc;if(Mp.c=Nh,Mp.i=Np,np.md=br(Nh,Od),np.wc=Od==0?-1:(1<<Od)-1,de){Me.xb=ld;break t}if((mi=qt(An*Sn))==null){Me.a=1,dn=0;break t}dn=(dn=Rs(Me,mi,0,An,Sn,Sn,null))&&!Tn.h;break t}return dn?(ln!=null?ln[0]=mi:(pt(mi==null),pt(de)),Me.$=0,de||Ta(Wn)):Ta(Wn),dn}function uu(vt,Qt){var de=vt.c*vt.i,Me=de+Qt+16*Qt;return pt(vt.c<=Qt),vt.V=qt(Me),vt.V==null?(vt.Ta=null,vt.Ua=0,vt.a=1,0):(vt.Ta=vt.V,vt.Ua=vt.Ba+de+Qt,1)}function Ru(vt,Qt){var de=vt.C,Me=Qt-de,ln=vt.V,dn=vt.Ba+vt.c*de;for(pt(Qt<=vt.l.o);0<Me;){var An=16<Me?16:Me,Sn=vt.l.ma,Tn=vt.l.width,Wn=Tn*An,mi=Sn.ca,qi=Sn.tb+Tn*de,tr=vt.Ta,ki=vt.Ua;ta(vt,An,ln,dn),ml(tr,ki,mi,qi,Wn),$a(Sn,de,de+An,mi,qi,Tn),Me-=An,ln+=An*vt.c,de+=An}pt(de==Qt),vt.C=vt.Ma=Qt}function $u(){this.ub=this.yd=this.td=this.Rb=0}function Ah(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Yu(){this.Fb=this.Bb=this.Cb=0,this.Zb=qt(4),this.Lb=qt(4)}function Ha(){this.Yb=function(){var vt=[];return function Qt(de,Me,ln){for(var dn=ln[Me],An=0;An<dn&&(de.push(ln.length>Me+1?[]:0),!(ln.length<Me+1));An++)Qt(de[An],Me+1,ln)}(vt,0,[3,11]),vt}()}function Bu(){this.jb=qt(3),this.Wc=Ce([4,8],Ha),this.Xc=Ce([4,17],Ha)}function Rl(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new qt(4),this.od=new qt(4)}function il(){this.ld=this.La=this.dd=this.tc=0}function vh(){this.Na=this.la=0}function Cc(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function yh(){this.ad=qt(384),this.Za=0,this.Ob=qt(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function rc(){this.uc=this.M=this.Nb=0,this.wa=Array(new il),this.Y=0,this.ya=Array(new yh),this.aa=0,this.l=new da}function oc(){this.y=qt(16),this.f=qt(8),this.ea=qt(8)}function wh(){this.cb=this.a=0,this.sc="",this.m=new ti,this.Od=new $u,this.Kc=new Ah,this.ed=new Rl,this.Qa=new Yu,this.Ic=this.$c=this.Aa=0,this.D=new rc,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=me(8,ti),this.ia=0,this.pb=me(4,Cc),this.Pa=new Bu,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new oc),this.Hd=0,this.rb=Array(new vh),this.sb=0,this.wa=Array(new il),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 yh),this.L=this.aa=0,this.gd=Ce([4,2],il),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 da(){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 Cl(){var vt=new wh;return vt!=null&&(vt.a=0,vt.sc="OK",vt.cb=0,vt.Xb=0,nh||(nh=hu)),vt}function Ca(vt,Qt,de){return vt.a==0&&(vt.a=Qt,vt.sc=de,vt.cb=0),0}function gl(vt,Qt,de){return 3<=de&&vt[Qt+0]==157&&vt[Qt+1]==1&&vt[Qt+2]==42}function Aa(vt,Qt){if(vt==null)return 0;if(vt.a=0,vt.sc="OK",Qt==null)return Ca(vt,2,"null VP8Io passed to VP8GetHeaders()");var de=Qt.data,Me=Qt.w,ln=Qt.ha;if(4>ln)return Ca(vt,7,"Truncated header.");var dn=de[Me+0]|de[Me+1]<<8|de[Me+2]<<16,An=vt.Od;if(An.Rb=!(1&dn),An.td=dn>>1&7,An.yd=dn>>4&1,An.ub=dn>>5,3<An.td)return Ca(vt,3,"Incorrect keyframe parameters.");if(!An.yd)return Ca(vt,4,"Frame not displayable.");Me+=3,ln-=3;var Sn=vt.Kc;if(An.Rb){if(7>ln)return Ca(vt,7,"cannot parse picture header");if(!gl(de,Me,ln))return Ca(vt,3,"Bad code word");Sn.c=16383&(de[Me+4]<<8|de[Me+3]),Sn.Td=de[Me+4]>>6,Sn.i=16383&(de[Me+6]<<8|de[Me+5]),Sn.Ud=de[Me+6]>>6,Me+=7,ln-=7,vt.za=Sn.c+15>>4,vt.Ub=Sn.i+15>>4,Qt.width=Sn.c,Qt.height=Sn.i,Qt.Da=0,Qt.j=0,Qt.v=0,Qt.va=Qt.width,Qt.o=Qt.height,Qt.da=0,Qt.ib=Qt.width,Qt.hb=Qt.height,Qt.U=Qt.width,Qt.T=Qt.height,oe((dn=vt.Pa).jb,0,255,dn.jb.length),pt((dn=vt.Qa)!=null),dn.Cb=0,dn.Bb=0,dn.Fb=1,oe(dn.Zb,0,0,dn.Zb.length),oe(dn.Lb,0,0,dn.Lb)}if(An.ub>ln)return Ca(vt,7,"bad partition length");Ye(dn=vt.m,de,Me,An.ub),Me+=An.ub,ln-=An.ub,An.Rb&&(Sn.Ld=Fi(dn),Sn.Kd=Fi(dn)),Sn=vt.Qa;var Tn,Wn=vt.Pa;if(pt(dn!=null),pt(Sn!=null),Sn.Cb=Fi(dn),Sn.Cb){if(Sn.Bb=Fi(dn),Fi(dn)){for(Sn.Fb=Fi(dn),Tn=0;4>Tn;++Tn)Sn.Zb[Tn]=Fi(dn)?yn(dn,7):0;for(Tn=0;4>Tn;++Tn)Sn.Lb[Tn]=Fi(dn)?yn(dn,6):0}if(Sn.Bb)for(Tn=0;3>Tn;++Tn)Wn.jb[Tn]=Fi(dn)?tn(dn,8):255}else Sn.Bb=0;if(dn.Ka)return Ca(vt,3,"cannot parse segment header");if((Sn=vt.ed).zd=Fi(dn),Sn.Tb=tn(dn,6),Sn.wb=tn(dn,3),Sn.Pc=Fi(dn),Sn.Pc&&Fi(dn)){for(Wn=0;4>Wn;++Wn)Fi(dn)&&(Sn.vd[Wn]=yn(dn,6));for(Wn=0;4>Wn;++Wn)Fi(dn)&&(Sn.od[Wn]=yn(dn,6))}if(vt.L=Sn.Tb==0?0:Sn.zd?1:2,dn.Ka)return Ca(vt,3,"cannot parse filter header");var mi=ln;if(ln=Tn=Me,Me=Tn+mi,Sn=mi,vt.Xb=(1<<tn(vt.m,2))-1,mi<3*(Wn=vt.Xb))de=7;else{for(Tn+=3*Wn,Sn-=3*Wn,mi=0;mi<Wn;++mi){var qi=de[ln+0]|de[ln+1]<<8|de[ln+2]<<16;qi>Sn&&(qi=Sn),Ye(vt.Jc[+mi],de,Tn,qi),Tn+=qi,Sn-=qi,ln+=3}Ye(vt.Jc[+Wn],de,Tn,Sn),de=Tn<Me?0:5}if(de!=0)return Ca(vt,de,"cannot parse partitions");for(de=tn(Tn=vt.m,7),ln=Fi(Tn)?yn(Tn,4):0,Me=Fi(Tn)?yn(Tn,4):0,Sn=Fi(Tn)?yn(Tn,4):0,Wn=Fi(Tn)?yn(Tn,4):0,Tn=Fi(Tn)?yn(Tn,4):0,mi=vt.Qa,qi=0;4>qi;++qi){if(mi.Cb){var tr=mi.Zb[qi];mi.Fb||(tr+=de)}else{if(0<qi){vt.pb[qi]=vt.pb[0];continue}tr=de}var ki=vt.pb[qi];ki.Sc[0]=Nd[Fh(tr+ln,127)],ki.Sc[1]=_u[Fh(tr+0,127)],ki.Eb[0]=2*Nd[Fh(tr+Me,127)],ki.Eb[1]=101581*_u[Fh(tr+Sn,127)]>>16,8>ki.Eb[1]&&(ki.Eb[1]=8),ki.Qc[0]=Nd[Fh(tr+Wn,117)],ki.Qc[1]=_u[Fh(tr+Tn,127)],ki.lc=tr+Tn}if(!An.Rb)return Ca(vt,4,"Not a key frame.");for(Fi(dn),An=vt.Pa,de=0;4>de;++de){for(ln=0;8>ln;++ln)for(Me=0;3>Me;++Me)for(Sn=0;11>Sn;++Sn)Wn=ci(dn,Wf[de][ln][Me][Sn])?tn(dn,8):VA[de][ln][Me][Sn],An.Wc[de][ln].Yb[Me][Sn]=Wn;for(ln=0;17>ln;++ln)An.Xc[de][ln]=An.Wc[de][Cp[ln]]}return vt.kc=Fi(dn),vt.kc&&(vt.Bd=tn(dn,8)),vt.cb=1}function hu(vt,Qt,de,Me,ln,dn,An){var Sn=Qt[ln].Yb[de];for(de=0;16>ln;++ln){if(!ci(vt,Sn[de+0]))return ln;for(;!ci(vt,Sn[de+1]);)if(Sn=Qt[++ln].Yb[0],de=0,ln==16)return 16;var Tn=Qt[ln+1].Yb;if(ci(vt,Sn[de+2])){var Wn=vt,mi=0;if(ci(Wn,(tr=Sn)[(qi=de)+3]))if(ci(Wn,tr[qi+6])){for(Sn=0,qi=2*(mi=ci(Wn,tr[qi+8]))+(tr=ci(Wn,tr[qi+9+mi])),mi=0,tr=Gf[qi];tr[Sn];++Sn)mi+=mi+ci(Wn,tr[Sn]);mi+=3+(8<<qi)}else ci(Wn,tr[qi+7])?(mi=7+2*ci(Wn,165),mi+=ci(Wn,145)):mi=5+ci(Wn,159);else mi=ci(Wn,tr[qi+4])?3+ci(Wn,tr[qi+5]):2;Sn=Tn[2]}else mi=1,Sn=Tn[1];Tn=An+Sp[ln],0>(Wn=vt).b&&ri(Wn);var qi,tr=Wn.b,ki=(qi=Wn.Ca>>1)-(Wn.I>>tr)>>31;--Wn.b,Wn.Ca+=ki,Wn.Ca|=1,Wn.I-=(qi+1&ki)<<tr,dn[Tn]=((mi^ki)-ki)*Me[(0<ln)+0]}return 16}function Fu(vt){var Qt=vt.rb[vt.sb-1];Qt.la=0,Qt.Na=0,oe(vt.zc,0,0,vt.zc.length),vt.ja=0}function Kh(vt,Qt){if(vt==null)return 0;if(Qt==null)return Ca(vt,2,"NULL VP8Io parameter in VP8Decode().");if(!vt.cb&&!Aa(vt,Qt))return 0;if(pt(vt.cb),Qt.ac==null||Qt.ac(Qt)){Qt.ob&&(vt.L=0);var de=Un[vt.L];if(vt.L==2?(vt.yb=0,vt.zb=0):(vt.yb=Qt.v-de>>4,vt.zb=Qt.j-de>>4,0>vt.yb&&(vt.yb=0),0>vt.zb&&(vt.zb=0)),vt.Va=Qt.o+15+de>>4,vt.Hb=Qt.va+15+de>>4,vt.Hb>vt.za&&(vt.Hb=vt.za),vt.Va>vt.Ub&&(vt.Va=vt.Ub),0<vt.L){var Me=vt.ed;for(de=0;4>de;++de){var ln;if(vt.Qa.Cb){var dn=vt.Qa.Lb[de];vt.Qa.Fb||(dn+=Me.Tb)}else dn=Me.Tb;for(ln=0;1>=ln;++ln){var An=vt.gd[de][ln],Sn=dn;if(Me.Pc&&(Sn+=Me.vd[0],ln&&(Sn+=Me.od[0])),0<(Sn=0>Sn?0:63<Sn?63:Sn)){var Tn=Sn;0<Me.wb&&(Tn=4<Me.wb?Tn>>2:Tn>>1)>9-Me.wb&&(Tn=9-Me.wb),1>Tn&&(Tn=1),An.dd=Tn,An.tc=2*Sn+Tn,An.ld=40<=Sn?2:15<=Sn?1:0}else An.tc=0;An.La=ln}}}de=0}else Ca(vt,6,"Frame setup failed"),de=vt.a;if(de=de==0){if(de){vt.$c=0,0<vt.Aa||(vt.Ic=Ki);t:{de=vt.Ic,Me=4*(Tn=vt.za);var Wn=32*Tn,mi=Tn+1,qi=0<vt.L?Tn*(0<vt.Aa?2:1):0,tr=(vt.Aa==2?2:1)*Tn;if((An=Me+832+(ln=3*(16*de+Un[vt.L])/2*Wn)+(dn=vt.Fa!=null&&0<vt.Fa.length?vt.Kc.c*vt.Kc.i:0))!=An)de=0;else{if(An>vt.Vb){if(vt.Vb=0,vt.Ec=qt(An),vt.Fc=0,vt.Ec==null){de=Ca(vt,1,"no memory during frame initialization.");break t}vt.Vb=An}An=vt.Ec,Sn=vt.Fc,vt.Ac=An,vt.Bc=Sn,Sn+=Me,vt.Gd=me(Wn,oc),vt.Hd=0,vt.rb=me(mi+1,vh),vt.sb=1,vt.wa=qi?me(qi,il):null,vt.Y=0,vt.D.Nb=0,vt.D.wa=vt.wa,vt.D.Y=vt.Y,0<vt.Aa&&(vt.D.Y+=Tn),pt(!0),vt.oc=An,vt.pc=Sn,Sn+=832,vt.ya=me(tr,yh),vt.aa=0,vt.D.ya=vt.ya,vt.D.aa=vt.aa,vt.Aa==2&&(vt.D.aa+=Tn),vt.R=16*Tn,vt.B=8*Tn,Tn=(Wn=Un[vt.L])*vt.R,Wn=Wn/2*vt.B,vt.sa=An,vt.ta=Sn+Tn,vt.qa=vt.sa,vt.ra=vt.ta+16*de*vt.R+Wn,vt.Ha=vt.qa,vt.Ia=vt.ra+8*de*vt.B+Wn,vt.$c=0,Sn+=ln,vt.mb=dn?An:null,vt.nb=dn?Sn:null,pt(Sn+dn<=vt.Fc+vt.Vb),Fu(vt),oe(vt.Ac,vt.Bc,0,Me),de=1}}if(de){if(Qt.ka=0,Qt.y=vt.sa,Qt.O=vt.ta,Qt.f=vt.qa,Qt.N=vt.ra,Qt.ea=vt.Ha,Qt.Vd=vt.Ia,Qt.fa=vt.R,Qt.Rc=vt.B,Qt.F=null,Qt.J=0,!kl){for(de=-255;255>=de;++de)vl[255+de]=0>de?-de:de;for(de=-1020;1020>=de;++de)Co[1020+de]=-128>de?-128:127<de?127:de;for(de=-112;112>=de;++de)wa[112+de]=-16>de?-16:15<de?15:de;for(de=-255;510>=de;++de)Il[255+de]=0>de?0:255<de?255:de;kl=1}un=Lu,si=nd,Oi=gc,Ei=xd,Sr=SA,pn=lA,Dr=Qc,eo=od,vo=Pc,Zo=KA,No=lf,as=uA,ks=bd,Io=zc,ea=Pd,Bl=Zu,ku=xh,cl=PA,Ec[0]=mu,Ec[1]=Kd,Ec[2]=Cd,Ec[3]=rd,Ec[4]=Gd,Ec[5]=qu,Ec[6]=Wd,Ec[7]=Rc,Ec[8]=Vd,Ec[9]=Bd,bc[0]=ah,bc[1]=CA,bc[2]=Uc,bc[3]=Sd,bc[4]=Vu,bc[5]=BA,bc[6]=Gh,Id[0]=Hl,Id[1]=id,Id[2]=cu,Id[3]=vu,Id[4]=Ya,Id[5]=Oa,Id[6]=Mu,de=1}else de=0}de&&(de=function(ki,Wr){for(ki.M=0;ki.M<ki.Va;++ki.M){var Nr,_i=ki.Jc[ki.M&ki.Xb],Ui=ki.m,zr=ki;for(Nr=0;Nr<zr.za;++Nr){var uo=Ui,Yr=zr,ls=Yr.Ac,Yo=Yr.Bc+4*Nr,fi=Yr.zc,os=Yr.ya[Yr.aa+Nr];if(Yr.Qa.Bb?os.$b=ci(uo,Yr.Pa.jb[0])?2+ci(uo,Yr.Pa.jb[2]):ci(uo,Yr.Pa.jb[1]):os.$b=0,Yr.kc&&(os.Ad=ci(uo,Yr.Bd)),os.Za=!ci(uo,145)+0,os.Za){var Pl=os.Ob,bl=0;for(Yr=0;4>Yr;++Yr){var rl,Wa=fi[0+Yr];for(rl=0;4>rl;++rl){Wa=ZA[ls[Yo+rl]][Wa];for(var _a=zg[ci(uo,Wa[0])];0<_a;)_a=zg[2*_a+ci(uo,Wa[_a])];Wa=-_a,ls[Yo+rl]=Wa}_t(Pl,bl,ls,Yo,4),bl+=4,fi[0+Yr]=Wa}}else Wa=ci(uo,156)?ci(uo,128)?1:3:ci(uo,163)?2:0,os.Ob[0]=Wa,oe(ls,Yo,Wa,4),oe(fi,0,Wa,4);os.Dd=ci(uo,142)?ci(uo,114)?ci(uo,183)?1:3:2:0}if(zr.m.Ka)return Ca(ki,7,"Premature end-of-partition0 encountered.");for(;ki.ja<ki.za;++ki.ja){if(zr=_i,uo=(Ui=ki).rb[Ui.sb-1],ls=Ui.rb[Ui.sb+Ui.ja],Nr=Ui.ya[Ui.aa+Ui.ja],Yo=Ui.kc?Nr.Ad:0)uo.la=ls.la=0,Nr.Za||(uo.Na=ls.Na=0),Nr.Hc=0,Nr.Gc=0,Nr.ia=0;else{var dl,Ia;if(uo=ls,ls=zr,Yo=Ui.Pa.Xc,fi=Ui.ya[Ui.aa+Ui.ja],os=Ui.pb[fi.$b],Yr=fi.ad,Pl=0,bl=Ui.rb[Ui.sb-1],Wa=rl=0,oe(Yr,Pl,0,384),fi.Za)var Wh=0,ud=Yo[3];else{_a=qt(16);var Rh=uo.Na+bl.Na;if(Rh=nh(ls,Yo[1],Rh,os.Eb,0,_a,0),uo.Na=bl.Na=(0<Rh)+0,1<Rh)un(_a,0,Yr,Pl);else{var hd=_a[0]+3>>3;for(_a=0;256>_a;_a+=16)Yr[Pl+_a]=hd}Wh=1,ud=Yo[0]}var Ol=15&uo.la,cd=15&bl.la;for(_a=0;4>_a;++_a){var dd=1&cd;for(hd=Ia=0;4>hd;++hd)Ol=Ol>>1|(dd=(Rh=nh(ls,ud,Rh=dd+(1&Ol),os.Sc,Wh,Yr,Pl))>Wh)<<7,Ia=Ia<<2|(3<Rh?3:1<Rh?2:Yr[Pl+0]!=0),Pl+=16;Ol>>=4,cd=cd>>1|dd<<7,rl=(rl<<8|Ia)>>>0}for(ud=Ol,Wh=cd>>4,dl=0;4>dl;dl+=2){for(Ia=0,Ol=uo.la>>4+dl,cd=bl.la>>4+dl,_a=0;2>_a;++_a){for(dd=1&cd,hd=0;2>hd;++hd)Rh=dd+(1&Ol),Ol=Ol>>1|(dd=0<(Rh=nh(ls,Yo[2],Rh,os.Qc,0,Yr,Pl)))<<3,Ia=Ia<<2|(3<Rh?3:1<Rh?2:Yr[Pl+0]!=0),Pl+=16;Ol>>=2,cd=cd>>1|dd<<5}Wa|=Ia<<4*dl,ud|=Ol<<4<<dl,Wh|=(240&cd)<<dl}uo.la=ud,bl.la=Wh,fi.Hc=rl,fi.Gc=Wa,fi.ia=43690&Wa?0:os.ia,Yo=!(rl|Wa)}if(0<Ui.L&&(Ui.wa[Ui.Y+Ui.ja]=Ui.gd[Nr.$b][Nr.Za],Ui.wa[Ui.Y+Ui.ja].La|=!Yo),zr.Ka)return Ca(ki,7,"Premature end-of-file encountered.")}if(Fu(ki),Ui=Wr,zr=1,Nr=(_i=ki).D,uo=0<_i.L&&_i.M>=_i.zb&&_i.M<=_i.Va,_i.Aa==0)t:{if(Nr.M=_i.M,Nr.uc=uo,MA(_i,Nr),zr=1,Nr=(Ia=_i.D).Nb,uo=(Wa=Un[_i.L])*_i.R,ls=Wa/2*_i.B,_a=16*Nr*_i.R,hd=8*Nr*_i.B,Yo=_i.sa,fi=_i.ta-uo+_a,os=_i.qa,Yr=_i.ra-ls+hd,Pl=_i.Ha,bl=_i.Ia-ls+hd,cd=(Ol=Ia.M)==0,rl=Ol>=_i.Va-1,_i.Aa==2&&MA(_i,Ia),Ia.uc)for(dd=(Rh=_i).D.M,pt(Rh.D.uc),Ia=Rh.yb;Ia<Rh.Hb;++Ia){Wh=Ia,ud=dd;var Vh=(hc=(gh=Rh).D).Nb;dl=gh.R;var hc=hc.wa[hc.Y+Wh],Vc=gh.sa,qd=gh.ta+16*Vh*dl+16*Wh,TA=hc.dd,ou=hc.tc;if(ou!=0)if(pt(3<=ou),gh.L==1)0<Wh&&Bl(Vc,qd,dl,ou+4),hc.La&&cl(Vc,qd,dl,ou),0<ud&&ea(Vc,qd,dl,ou+4),hc.La&&ku(Vc,qd,dl,ou);else{var uf=gh.B,OA=gh.qa,Zf=gh.ra+8*Vh*uf+8*Wh,DA=gh.Ha,gh=gh.Ia+8*Vh*uf+8*Wh;Vh=hc.ld,0<Wh&&(eo(Vc,qd,dl,ou+4,TA,Vh),Zo(OA,Zf,DA,gh,uf,ou+4,TA,Vh)),hc.La&&(as(Vc,qd,dl,ou,TA,Vh),Io(OA,Zf,DA,gh,uf,ou,TA,Vh)),0<ud&&(Dr(Vc,qd,dl,ou+4,TA,Vh),vo(OA,Zf,DA,gh,uf,ou+4,TA,Vh)),hc.La&&(No(Vc,qd,dl,ou,TA,Vh),ks(OA,Zf,DA,gh,uf,ou,TA,Vh))}}if(_i.ia&&alert("todo:DitherRow"),Ui.put!=null){if(Ia=16*Ol,Ol=16*(Ol+1),cd?(Ui.y=_i.sa,Ui.O=_i.ta+_a,Ui.f=_i.qa,Ui.N=_i.ra+hd,Ui.ea=_i.Ha,Ui.W=_i.Ia+hd):(Ia-=Wa,Ui.y=Yo,Ui.O=fi,Ui.f=os,Ui.N=Yr,Ui.ea=Pl,Ui.W=bl),rl||(Ol-=Wa),Ol>Ui.o&&(Ol=Ui.o),Ui.F=null,Ui.J=null,_i.Fa!=null&&0<_i.Fa.length&&Ia<Ol&&(Ui.J=FA(_i,Ui,Ia,Ol-Ia),Ui.F=_i.mb,Ui.F==null&&Ui.F.length==0)){zr=Ca(_i,3,"Could not decode alpha data.");break t}Ia<Ui.j&&(Wa=Ui.j-Ia,Ia=Ui.j,pt(!(1&Wa)),Ui.O+=_i.R*Wa,Ui.N+=_i.B*(Wa>>1),Ui.W+=_i.B*(Wa>>1),Ui.F!=null&&(Ui.J+=Ui.width*Wa)),Ia<Ol&&(Ui.O+=Ui.v,Ui.N+=Ui.v>>1,Ui.W+=Ui.v>>1,Ui.F!=null&&(Ui.J+=Ui.v),Ui.ka=Ia-Ui.j,Ui.U=Ui.va-Ui.v,Ui.T=Ol-Ia,zr=Ui.put(Ui))}Nr+1!=_i.Ic||rl||(_t(_i.sa,_i.ta-uo,Yo,fi+16*_i.R,uo),_t(_i.qa,_i.ra-ls,os,Yr+8*_i.B,ls),_t(_i.Ha,_i.Ia-ls,Pl,bl+8*_i.B,ls))}if(!zr)return Ca(ki,6,"Output aborted.")}return 1}(vt,Qt)),Qt.bc!=null&&Qt.bc(Qt),de&=1}return de?(vt.cb=0,de):0}function Th(vt,Qt,de,Me,ln){ln=vt[Qt+de+32*Me]+(ln>>3),vt[Qt+de+32*Me]=-256&ln?0>ln?0:255:ln}function Kn(vt,Qt,de,Me,ln,dn){Th(vt,Qt,0,de,Me+ln),Th(vt,Qt,1,de,Me+dn),Th(vt,Qt,2,de,Me-dn),Th(vt,Qt,3,de,Me-ln)}function Hu(vt){return(20091*vt>>16)+vt}function Oh(vt,Qt,de,Me){var ln,dn=0,An=qt(16);for(ln=0;4>ln;++ln){var Sn=vt[Qt+0]+vt[Qt+8],Tn=vt[Qt+0]-vt[Qt+8],Wn=(35468*vt[Qt+4]>>16)-Hu(vt[Qt+12]),mi=Hu(vt[Qt+4])+(35468*vt[Qt+12]>>16);An[dn+0]=Sn+mi,An[dn+1]=Tn+Wn,An[dn+2]=Tn-Wn,An[dn+3]=Sn-mi,dn+=4,Qt++}for(ln=dn=0;4>ln;++ln)Sn=(vt=An[dn+0]+4)+An[dn+8],Tn=vt-An[dn+8],Wn=(35468*An[dn+4]>>16)-Hu(An[dn+12]),Th(de,Me,0,0,Sn+(mi=Hu(An[dn+4])+(35468*An[dn+12]>>16))),Th(de,Me,1,0,Tn+Wn),Th(de,Me,2,0,Tn-Wn),Th(de,Me,3,0,Sn-mi),dn++,Me+=32}function lA(vt,Qt,de,Me){var ln=vt[Qt+0]+4,dn=35468*vt[Qt+4]>>16,An=Hu(vt[Qt+4]),Sn=35468*vt[Qt+1]>>16;Kn(de,Me,0,ln+An,vt=Hu(vt[Qt+1]),Sn),Kn(de,Me,1,ln+dn,vt,Sn),Kn(de,Me,2,ln-dn,vt,Sn),Kn(de,Me,3,ln-An,vt,Sn)}function nd(vt,Qt,de,Me,ln){Oh(vt,Qt,de,Me),ln&&Oh(vt,Qt+16,de,Me+4)}function gc(vt,Qt,de,Me){si(vt,Qt+0,de,Me,1),si(vt,Qt+32,de,Me+128,1)}function xd(vt,Qt,de,Me){var ln;for(vt=vt[Qt+0]+4,ln=0;4>ln;++ln)for(Qt=0;4>Qt;++Qt)Th(de,Me,Qt,ln,vt)}function SA(vt,Qt,de,Me){vt[Qt+0]&&Ei(vt,Qt+0,de,Me),vt[Qt+16]&&Ei(vt,Qt+16,de,Me+4),vt[Qt+32]&&Ei(vt,Qt+32,de,Me+128),vt[Qt+48]&&Ei(vt,Qt+48,de,Me+128+4)}function Lu(vt,Qt,de,Me){var ln,dn=qt(16);for(ln=0;4>ln;++ln){var An=vt[Qt+0+ln]+vt[Qt+12+ln],Sn=vt[Qt+4+ln]+vt[Qt+8+ln],Tn=vt[Qt+4+ln]-vt[Qt+8+ln],Wn=vt[Qt+0+ln]-vt[Qt+12+ln];dn[0+ln]=An+Sn,dn[8+ln]=An-Sn,dn[4+ln]=Wn+Tn,dn[12+ln]=Wn-Tn}for(ln=0;4>ln;++ln)An=(vt=dn[0+4*ln]+3)+dn[3+4*ln],Sn=dn[1+4*ln]+dn[2+4*ln],Tn=dn[1+4*ln]-dn[2+4*ln],Wn=vt-dn[3+4*ln],de[Me+0]=An+Sn>>3,de[Me+16]=Wn+Tn>>3,de[Me+32]=An-Sn>>3,de[Me+48]=Wn-Tn>>3,Me+=64}function jc(vt,Qt,de){var Me,ln=Qt-32,dn=Hs,An=255-vt[ln-1];for(Me=0;Me<de;++Me){var Sn,Tn=dn,Wn=An+vt[Qt-1];for(Sn=0;Sn<de;++Sn)vt[Qt+Sn]=Tn[Wn+vt[ln+Sn]];Qt+=32}}function Kd(vt,Qt){jc(vt,Qt,4)}function id(vt,Qt){jc(vt,Qt,8)}function CA(vt,Qt){jc(vt,Qt,16)}function Uc(vt,Qt){var de;for(de=0;16>de;++de)_t(vt,Qt+32*de,vt,Qt-32,16)}function Sd(vt,Qt){var de;for(de=16;0<de;--de)oe(vt,Qt,vt[Qt-1],16),Qt+=32}function Ju(vt,Qt,de){var Me;for(Me=0;16>Me;++Me)oe(Qt,de+32*Me,vt,16)}function ah(vt,Qt){var de,Me=16;for(de=0;16>de;++de)Me+=vt[Qt-1+32*de]+vt[Qt+de-32];Ju(Me>>5,vt,Qt)}function Vu(vt,Qt){var de,Me=8;for(de=0;16>de;++de)Me+=vt[Qt-1+32*de];Ju(Me>>4,vt,Qt)}function BA(vt,Qt){var de,Me=8;for(de=0;16>de;++de)Me+=vt[Qt+de-32];Ju(Me>>4,vt,Qt)}function Gh(vt,Qt){Ju(128,vt,Qt)}function na(vt,Qt,de){return vt+2*Qt+de+2>>2}function Cd(vt,Qt){var de,Me=Qt-32;for(Me=new Uint8Array([na(vt[Me-1],vt[Me+0],vt[Me+1]),na(vt[Me+0],vt[Me+1],vt[Me+2]),na(vt[Me+1],vt[Me+2],vt[Me+3]),na(vt[Me+2],vt[Me+3],vt[Me+4])]),de=0;4>de;++de)_t(vt,Qt+32*de,Me,0,Me.length)}function rd(vt,Qt){var de=vt[Qt-1],Me=vt[Qt-1+32],ln=vt[Qt-1+64],dn=vt[Qt-1+96];Ji(vt,Qt+0,16843009*na(vt[Qt-1-32],de,Me)),Ji(vt,Qt+32,16843009*na(de,Me,ln)),Ji(vt,Qt+64,16843009*na(Me,ln,dn)),Ji(vt,Qt+96,16843009*na(ln,dn,dn))}function mu(vt,Qt){var de,Me=4;for(de=0;4>de;++de)Me+=vt[Qt+de-32]+vt[Qt-1+32*de];for(Me>>=3,de=0;4>de;++de)oe(vt,Qt+32*de,Me,4)}function Gd(vt,Qt){var de=vt[Qt-1+0],Me=vt[Qt-1+32],ln=vt[Qt-1+64],dn=vt[Qt-1-32],An=vt[Qt+0-32],Sn=vt[Qt+1-32],Tn=vt[Qt+2-32],Wn=vt[Qt+3-32];vt[Qt+0+96]=na(Me,ln,vt[Qt-1+96]),vt[Qt+1+96]=vt[Qt+0+64]=na(de,Me,ln),vt[Qt+2+96]=vt[Qt+1+64]=vt[Qt+0+32]=na(dn,de,Me),vt[Qt+3+96]=vt[Qt+2+64]=vt[Qt+1+32]=vt[Qt+0+0]=na(An,dn,de),vt[Qt+3+64]=vt[Qt+2+32]=vt[Qt+1+0]=na(Sn,An,dn),vt[Qt+3+32]=vt[Qt+2+0]=na(Tn,Sn,An),vt[Qt+3+0]=na(Wn,Tn,Sn)}function Wd(vt,Qt){var de=vt[Qt+1-32],Me=vt[Qt+2-32],ln=vt[Qt+3-32],dn=vt[Qt+4-32],An=vt[Qt+5-32],Sn=vt[Qt+6-32],Tn=vt[Qt+7-32];vt[Qt+0+0]=na(vt[Qt+0-32],de,Me),vt[Qt+1+0]=vt[Qt+0+32]=na(de,Me,ln),vt[Qt+2+0]=vt[Qt+1+32]=vt[Qt+0+64]=na(Me,ln,dn),vt[Qt+3+0]=vt[Qt+2+32]=vt[Qt+1+64]=vt[Qt+0+96]=na(ln,dn,An),vt[Qt+3+32]=vt[Qt+2+64]=vt[Qt+1+96]=na(dn,An,Sn),vt[Qt+3+64]=vt[Qt+2+96]=na(An,Sn,Tn),vt[Qt+3+96]=na(Sn,Tn,Tn)}function qu(vt,Qt){var de=vt[Qt-1+0],Me=vt[Qt-1+32],ln=vt[Qt-1+64],dn=vt[Qt-1-32],An=vt[Qt+0-32],Sn=vt[Qt+1-32],Tn=vt[Qt+2-32],Wn=vt[Qt+3-32];vt[Qt+0+0]=vt[Qt+1+64]=dn+An+1>>1,vt[Qt+1+0]=vt[Qt+2+64]=An+Sn+1>>1,vt[Qt+2+0]=vt[Qt+3+64]=Sn+Tn+1>>1,vt[Qt+3+0]=Tn+Wn+1>>1,vt[Qt+0+96]=na(ln,Me,de),vt[Qt+0+64]=na(Me,de,dn),vt[Qt+0+32]=vt[Qt+1+96]=na(de,dn,An),vt[Qt+1+32]=vt[Qt+2+96]=na(dn,An,Sn),vt[Qt+2+32]=vt[Qt+3+96]=na(An,Sn,Tn),vt[Qt+3+32]=na(Sn,Tn,Wn)}function Rc(vt,Qt){var de=vt[Qt+0-32],Me=vt[Qt+1-32],ln=vt[Qt+2-32],dn=vt[Qt+3-32],An=vt[Qt+4-32],Sn=vt[Qt+5-32],Tn=vt[Qt+6-32],Wn=vt[Qt+7-32];vt[Qt+0+0]=de+Me+1>>1,vt[Qt+1+0]=vt[Qt+0+64]=Me+ln+1>>1,vt[Qt+2+0]=vt[Qt+1+64]=ln+dn+1>>1,vt[Qt+3+0]=vt[Qt+2+64]=dn+An+1>>1,vt[Qt+0+32]=na(de,Me,ln),vt[Qt+1+32]=vt[Qt+0+96]=na(Me,ln,dn),vt[Qt+2+32]=vt[Qt+1+96]=na(ln,dn,An),vt[Qt+3+32]=vt[Qt+2+96]=na(dn,An,Sn),vt[Qt+3+64]=na(An,Sn,Tn),vt[Qt+3+96]=na(Sn,Tn,Wn)}function Bd(vt,Qt){var de=vt[Qt-1+0],Me=vt[Qt-1+32],ln=vt[Qt-1+64],dn=vt[Qt-1+96];vt[Qt+0+0]=de+Me+1>>1,vt[Qt+2+0]=vt[Qt+0+32]=Me+ln+1>>1,vt[Qt+2+32]=vt[Qt+0+64]=ln+dn+1>>1,vt[Qt+1+0]=na(de,Me,ln),vt[Qt+3+0]=vt[Qt+1+32]=na(Me,ln,dn),vt[Qt+3+32]=vt[Qt+1+64]=na(ln,dn,dn),vt[Qt+3+64]=vt[Qt+2+64]=vt[Qt+0+96]=vt[Qt+1+96]=vt[Qt+2+96]=vt[Qt+3+96]=dn}function Vd(vt,Qt){var de=vt[Qt-1+0],Me=vt[Qt-1+32],ln=vt[Qt-1+64],dn=vt[Qt-1+96],An=vt[Qt-1-32],Sn=vt[Qt+0-32],Tn=vt[Qt+1-32],Wn=vt[Qt+2-32];vt[Qt+0+0]=vt[Qt+2+32]=de+An+1>>1,vt[Qt+0+32]=vt[Qt+2+64]=Me+de+1>>1,vt[Qt+0+64]=vt[Qt+2+96]=ln+Me+1>>1,vt[Qt+0+96]=dn+ln+1>>1,vt[Qt+3+0]=na(Sn,Tn,Wn),vt[Qt+2+0]=na(An,Sn,Tn),vt[Qt+1+0]=vt[Qt+3+32]=na(de,An,Sn),vt[Qt+1+32]=vt[Qt+3+64]=na(Me,de,An),vt[Qt+1+64]=vt[Qt+3+96]=na(ln,Me,de),vt[Qt+1+96]=na(dn,ln,Me)}function cu(vt,Qt){var de;for(de=0;8>de;++de)_t(vt,Qt+32*de,vt,Qt-32,8)}function vu(vt,Qt){var de;for(de=0;8>de;++de)oe(vt,Qt,vt[Qt-1],8),Qt+=32}function Hc(vt,Qt,de){var Me;for(Me=0;8>Me;++Me)oe(Qt,de+32*Me,vt,8)}function Hl(vt,Qt){var de,Me=8;for(de=0;8>de;++de)Me+=vt[Qt+de-32]+vt[Qt-1+32*de];Hc(Me>>4,vt,Qt)}function Oa(vt,Qt){var de,Me=4;for(de=0;8>de;++de)Me+=vt[Qt+de-32];Hc(Me>>3,vt,Qt)}function Ya(vt,Qt){var de,Me=4;for(de=0;8>de;++de)Me+=vt[Qt-1+32*de];Hc(Me>>3,vt,Qt)}function Mu(vt,Qt){Hc(128,vt,Qt)}function fh(vt,Qt,de){var Me=vt[Qt-de],ln=vt[Qt+0],dn=3*(ln-Me)+uh[1020+vt[Qt-2*de]-vt[Qt+de]],An=Da[112+(dn+4>>3)];vt[Qt-de]=Hs[255+Me+Da[112+(dn+3>>3)]],vt[Qt+0]=Hs[255+ln-An]}function Eh(vt,Qt,de,Me){var ln=vt[Qt+0],dn=vt[Qt+de];return wu[255+vt[Qt-2*de]-vt[Qt-de]]>Me||wu[255+dn-ln]>Me}function Zd(vt,Qt,de,Me){return 4*wu[255+vt[Qt-de]-vt[Qt+0]]+wu[255+vt[Qt-2*de]-vt[Qt+de]]<=Me}function Bc(vt,Qt,de,Me,ln){var dn=vt[Qt-3*de],An=vt[Qt-2*de],Sn=vt[Qt-de],Tn=vt[Qt+0],Wn=vt[Qt+de],mi=vt[Qt+2*de],qi=vt[Qt+3*de];return 4*wu[255+Sn-Tn]+wu[255+An-Wn]>Me?0:wu[255+vt[Qt-4*de]-dn]<=ln&&wu[255+dn-An]<=ln&&wu[255+An-Sn]<=ln&&wu[255+qi-mi]<=ln&&wu[255+mi-Wn]<=ln&&wu[255+Wn-Tn]<=ln}function Pd(vt,Qt,de,Me){var ln=2*Me+1;for(Me=0;16>Me;++Me)Zd(vt,Qt+Me,de,ln)&&fh(vt,Qt+Me,de)}function Zu(vt,Qt,de,Me){var ln=2*Me+1;for(Me=0;16>Me;++Me)Zd(vt,Qt+Me*de,1,ln)&&fh(vt,Qt+Me*de,1)}function xh(vt,Qt,de,Me){var ln;for(ln=3;0<ln;--ln)Pd(vt,Qt+=4*de,de,Me)}function PA(vt,Qt,de,Me){var ln;for(ln=3;0<ln;--ln)Zu(vt,Qt+=4,de,Me)}function _c(vt,Qt,de,Me,ln,dn,An,Sn){for(dn=2*dn+1;0<ln--;){if(Bc(vt,Qt,de,dn,An))if(Eh(vt,Qt,de,Sn))fh(vt,Qt,de);else{var Tn=vt,Wn=Qt,mi=de,qi=Tn[Wn-2*mi],tr=Tn[Wn-mi],ki=Tn[Wn+0],Wr=Tn[Wn+mi],Nr=Tn[Wn+2*mi],_i=27*(zr=uh[1020+3*(ki-tr)+uh[1020+qi-Wr]])+63>>7,Ui=18*zr+63>>7,zr=9*zr+63>>7;Tn[Wn-3*mi]=Hs[255+Tn[Wn-3*mi]+zr],Tn[Wn-2*mi]=Hs[255+qi+Ui],Tn[Wn-mi]=Hs[255+tr+_i],Tn[Wn+0]=Hs[255+ki-_i],Tn[Wn+mi]=Hs[255+Wr-Ui],Tn[Wn+2*mi]=Hs[255+Nr-zr]}Qt+=Me}}function sc(vt,Qt,de,Me,ln,dn,An,Sn){for(dn=2*dn+1;0<ln--;){if(Bc(vt,Qt,de,dn,An))if(Eh(vt,Qt,de,Sn))fh(vt,Qt,de);else{var Tn=vt,Wn=Qt,mi=de,qi=Tn[Wn-mi],tr=Tn[Wn+0],ki=Tn[Wn+mi],Wr=Da[112+((Nr=3*(tr-qi))+4>>3)],Nr=Da[112+(Nr+3>>3)],_i=Wr+1>>1;Tn[Wn-2*mi]=Hs[255+Tn[Wn-2*mi]+_i],Tn[Wn-mi]=Hs[255+qi+Nr],Tn[Wn+0]=Hs[255+tr-Wr],Tn[Wn+mi]=Hs[255+ki-_i]}Qt+=Me}}function Qc(vt,Qt,de,Me,ln,dn){_c(vt,Qt,de,1,16,Me,ln,dn)}function od(vt,Qt,de,Me,ln,dn){_c(vt,Qt,1,de,16,Me,ln,dn)}function lf(vt,Qt,de,Me,ln,dn){var An;for(An=3;0<An;--An)sc(vt,Qt+=4*de,de,1,16,Me,ln,dn)}function uA(vt,Qt,de,Me,ln,dn){var An;for(An=3;0<An;--An)sc(vt,Qt+=4,1,de,16,Me,ln,dn)}function Pc(vt,Qt,de,Me,ln,dn,An,Sn){_c(vt,Qt,ln,1,8,dn,An,Sn),_c(de,Me,ln,1,8,dn,An,Sn)}function KA(vt,Qt,de,Me,ln,dn,An,Sn){_c(vt,Qt,1,ln,8,dn,An,Sn),_c(de,Me,1,ln,8,dn,An,Sn)}function bd(vt,Qt,de,Me,ln,dn,An,Sn){sc(vt,Qt+4*ln,ln,1,8,dn,An,Sn),sc(de,Me+4*ln,ln,1,8,dn,An,Sn)}function zc(vt,Qt,de,Me,ln,dn,An,Sn){sc(vt,Qt+4,1,ln,8,dn,An,Sn),sc(de,Me+4,1,ln,8,dn,An,Sn)}function Kc(){this.ba=new gs,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Os,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function hA(){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 Dh(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function bA(){this.ua=0,this.Wa=new Jn,this.vb=new Jn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new we,this.yc=new oi}function EA(){this.xb=this.a=0,this.l=new da,this.ca=new gs,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new ze,this.Pb=0,this.wd=new ze,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new bA,this.ab=0,this.gc=me(4,Dh),this.Oc=0}function cA(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new da,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Xd(vt,Qt,de,Me,ln,dn,An){for(vt=vt==null?0:vt[Qt+0],Qt=0;Qt<An;++Qt)ln[dn+Qt]=vt+de[Me+Qt]&255,vt=ln[dn+Qt]}function Ed(vt,Qt,de,Me,ln,dn,An){var Sn;if(vt==null)Xd(null,null,de,Me,ln,dn,An);else for(Sn=0;Sn<An;++Sn)ln[dn+Sn]=vt[Qt+Sn]+de[Me+Sn]&255}function $d(vt,Qt,de,Me,ln,dn,An){if(vt==null)Xd(null,null,de,Me,ln,dn,An);else{var Sn,Tn=vt[Qt+0],Wn=Tn,mi=Tn;for(Sn=0;Sn<An;++Sn)Wn=mi+(Tn=vt[Qt+Sn])-Wn,mi=de[Me+Sn]+(-256&Wn?0>Wn?0:255:Wn)&255,Wn=Tn,ln[dn+Sn]=mi}}function FA(vt,Qt,de,Me){var ln=Qt.width,dn=Qt.o;if(pt(vt!=null&&Qt!=null),0>de||0>=Me||de+Me>dn)return null;if(!vt.Cc){if(vt.ga==null){var An;if(vt.ga=new cA,(An=vt.ga==null)||(An=Qt.width*Qt.o,pt(vt.Gb.length==0),vt.Gb=qt(An),vt.Uc=0,vt.Gb==null?An=0:(vt.mb=vt.Gb,vt.nb=vt.Uc,vt.rc=null,An=1),An=!An),!An){An=vt.ga;var Sn=vt.Fa,Tn=vt.P,Wn=vt.qc,mi=vt.mb,qi=vt.nb,tr=Tn+1,ki=Wn-1,Wr=An.l;if(pt(Sn!=null&&mi!=null&&Qt!=null),Td[0]=null,Td[1]=Xd,Td[2]=Ed,Td[3]=$d,An.ca=mi,An.tb=qi,An.c=Qt.width,An.i=Qt.height,pt(0<An.c&&0<An.i),1>=Wn)Qt=0;else if(An.$a=Sn[Tn+0]>>0&3,An.Z=Sn[Tn+0]>>2&3,An.Lc=Sn[Tn+0]>>4&3,Tn=Sn[Tn+0]>>6&3,0>An.$a||1<An.$a||4<=An.Z||1<An.Lc||Tn)Qt=0;else if(Wr.put=zl,Wr.ac=Us,Wr.bc=Ml,Wr.ma=An,Wr.width=Qt.width,Wr.height=Qt.height,Wr.Da=Qt.Da,Wr.v=Qt.v,Wr.va=Qt.va,Wr.j=Qt.j,Wr.o=Qt.o,An.$a)t:{pt(An.$a==1),Qt=Sl();e:for(;;){if(Qt==null){Qt=0;break t}if(pt(An!=null),An.mc=Qt,Qt.c=An.c,Qt.i=An.i,Qt.l=An.l,Qt.l.ma=An,Qt.l.width=An.c,Qt.l.height=An.i,Qt.a=0,on(Qt.m,Sn,tr,ki),!pu(An.c,An.i,1,Qt,null)||(Qt.ab==1&&Qt.gc[0].hc==3&&ka(Qt.s)?(An.ic=1,Sn=Qt.c*Qt.i,Qt.Ta=null,Qt.Ua=0,Qt.V=qt(Sn),Qt.Ba=0,Qt.V==null?(Qt.a=1,Qt=0):Qt=1):(An.ic=0,Qt=uu(Qt,An.c)),!Qt))break e;Qt=1;break t}An.mc=null,Qt=0}else Qt=ki>=An.c*An.i;An=!Qt}if(An)return null;vt.ga.Lc!=1?vt.Ga=0:Me=dn-de}pt(vt.ga!=null),pt(de+Me<=dn);t:{if(Qt=(Sn=vt.ga).c,dn=Sn.l.o,Sn.$a==0){if(tr=vt.rc,ki=vt.Vc,Wr=vt.Fa,Tn=vt.P+1+de*Qt,Wn=vt.mb,mi=vt.nb+de*Qt,pt(Tn<=vt.P+vt.qc),Sn.Z!=0)for(pt(Td[Sn.Z]!=null),An=0;An<Me;++An)Td[Sn.Z](tr,ki,Wr,Tn,Wn,mi,Qt),tr=Wn,ki=mi,mi+=Qt,Tn+=Qt;else for(An=0;An<Me;++An)_t(Wn,mi,Wr,Tn,Qt),tr=Wn,ki=mi,mi+=Qt,Tn+=Qt;vt.rc=tr,vt.Vc=ki}else{if(pt(Sn.mc!=null),Qt=de+Me,pt((An=Sn.mc)!=null),pt(Qt<=An.i),An.C>=Qt)Qt=1;else if(Sn.ic||hr(),Sn.ic){Sn=An.V,tr=An.Ba,ki=An.c;var Nr=An.i,_i=(Wr=1,Tn=An.$/ki,Wn=An.$%ki,mi=An.m,qi=An.s,An.$),Ui=ki*Nr,zr=ki*Qt,uo=qi.wc,Yr=_i<zr?Gl(qi,Wn,Tn):null;pt(_i<=Ui),pt(Qt<=Nr),pt(ka(qi));e:for(;;){for(;!mi.h&&_i<zr;){if(Wn&uo||(Yr=Gl(qi,Wn,Tn)),pt(Yr!=null),Yn(mi),256>(Nr=fo(Yr.G[0],Yr.H[0],mi)))Sn[tr+_i]=Nr,++_i,++Wn>=ki&&(Wn=0,++Tn<=Qt&&!(Tn%16)&&ll(An,Tn));else{if(!(280>Nr)){Wr=0;break e}Nr=ua(Nr-256,mi);var ls,Yo=fo(Yr.G[4],Yr.H[4],mi);if(Yn(mi),!(_i>=(Yo=Ul(ki,Yo=ua(Yo,mi)))&&Ui-_i>=Nr)){Wr=0;break e}for(ls=0;ls<Nr;++ls)Sn[tr+_i+ls]=Sn[tr+_i+ls-Yo];for(_i+=Nr,Wn+=Nr;Wn>=ki;)Wn-=ki,++Tn<=Qt&&!(Tn%16)&&ll(An,Tn);_i<zr&&Wn&uo&&(Yr=Gl(qi,Wn,Tn))}pt(mi.h==vn(mi))}ll(An,Tn>Qt?Qt:Tn);break e}!Wr||mi.h&&_i<Ui?(Wr=0,An.a=mi.h?5:3):An.$=_i,Qt=Wr}else Qt=Rs(An,An.V,An.Ba,An.c,An.i,Qt,Ru);if(!Qt){Me=0;break t}}de+Me>=dn&&(vt.Cc=1),Me=1}if(!Me)return null;if(vt.Cc&&((Me=vt.ga)!=null&&(Me.mc=null),vt.ga=null,0<vt.Ga))return alert("todo:WebPDequantizeLevels"),null}return vt.nb+de*ln}function fe(vt,Qt,de,Me,ln,dn){for(;0<ln--;){var An,Sn=vt,Tn=Qt+(de?1:0),Wn=vt,mi=Qt+(de?0:3);for(An=0;An<Me;++An){var qi=Wn[mi+4*An];qi!=255&&(qi*=32897,Sn[Tn+4*An+0]=Sn[Tn+4*An+0]*qi>>23,Sn[Tn+4*An+1]=Sn[Tn+4*An+1]*qi>>23,Sn[Tn+4*An+2]=Sn[Tn+4*An+2]*qi>>23)}Qt+=dn}}function wn(vt,Qt,de,Me,ln){for(;0<Me--;){var dn;for(dn=0;dn<de;++dn){var An=vt[Qt+2*dn+0],Sn=15&(Wn=vt[Qt+2*dn+1]),Tn=4369*Sn,Wn=(240&Wn|Wn>>4)*Tn>>16;vt[Qt+2*dn+0]=(240&An|An>>4)*Tn>>16&240|(15&An|An<<4)*Tn>>16>>4&15,vt[Qt+2*dn+1]=240&Wn|Sn}Qt+=ln}}function xi(vt,Qt,de,Me,ln,dn,An,Sn){var Tn,Wn,mi=255;for(Wn=0;Wn<ln;++Wn){for(Tn=0;Tn<Me;++Tn){var qi=vt[Qt+Tn];dn[An+4*Tn]=qi,mi&=qi}Qt+=de,An+=Sn}return mi!=255}function Hi(vt,Qt,de,Me,ln){var dn;for(dn=0;dn<ln;++dn)de[Me+dn]=vt[Qt+dn]>>8}function hr(){yu=fe,Na=wn,ya=xi,ml=Hi}function Ur(vt,Qt,de){Di[vt]=function(Me,ln,dn,An,Sn,Tn,Wn,mi,qi,tr,ki,Wr,Nr,_i,Ui,zr,uo){var Yr,ls=uo-1>>1,Yo=Sn[Tn+0]|Wn[mi+0]<<16,fi=qi[tr+0]|ki[Wr+0]<<16;pt(Me!=null);var os=3*Yo+fi+131074>>2;for(Qt(Me[ln+0],255&os,os>>16,Nr,_i),dn!=null&&(os=3*fi+Yo+131074>>2,Qt(dn[An+0],255&os,os>>16,Ui,zr)),Yr=1;Yr<=ls;++Yr){var Pl=Sn[Tn+Yr]|Wn[mi+Yr]<<16,bl=qi[tr+Yr]|ki[Wr+Yr]<<16,rl=Yo+Pl+fi+bl+524296,Wa=rl+2*(Pl+fi)>>3;os=Wa+Yo>>1,Yo=(rl=rl+2*(Yo+bl)>>3)+Pl>>1,Qt(Me[ln+2*Yr-1],255&os,os>>16,Nr,_i+(2*Yr-1)*de),Qt(Me[ln+2*Yr-0],255&Yo,Yo>>16,Nr,_i+(2*Yr-0)*de),dn!=null&&(os=rl+fi>>1,Yo=Wa+bl>>1,Qt(dn[An+2*Yr-1],255&os,os>>16,Ui,zr+(2*Yr-1)*de),Qt(dn[An+2*Yr+0],255&Yo,Yo>>16,Ui,zr+(2*Yr+0)*de)),Yo=Pl,fi=bl}1&uo||(os=3*Yo+fi+131074>>2,Qt(Me[ln+uo-1],255&os,os>>16,Nr,_i+(uo-1)*de),dn!=null&&(os=3*fi+Yo+131074>>2,Qt(dn[An+uo-1],255&os,os>>16,Ui,zr+(uo-1)*de)))}}function wo(){Tu[du]=XA,Tu[ad]=xf,Tu[uc]=lm,Tu[hh]=js,Tu[Sh]=Kg,Tu[Tl]=Gg,Tu[eh]=Wg,Tu[Wc]=xf,Tu[Jd]=js,Tu[zf]=Kg,Tu[Lh]=Gg}function ms(vt){return vt&~Vg?0>vt?0:255:vt>>Cg}function Ys(vt,Qt){return ms((19077*vt>>8)+(26149*Qt>>8)-14234)}function Ba(vt,Qt,de){return ms((19077*vt>>8)-(6419*Qt>>8)-(13320*de>>8)+8708)}function Pa(vt,Qt){return ms((19077*vt>>8)+(33050*Qt>>8)-17685)}function vs(vt,Qt,de,Me,ln){Me[ln+0]=Ys(vt,de),Me[ln+1]=Ba(vt,Qt,de),Me[ln+2]=Pa(vt,Qt)}function iu(vt,Qt,de,Me,ln){Me[ln+0]=Pa(vt,Qt),Me[ln+1]=Ba(vt,Qt,de),Me[ln+2]=Ys(vt,de)}function ru(vt,Qt,de,Me,ln){var dn=Ba(vt,Qt,de);Qt=dn<<3&224|Pa(vt,Qt)>>3,Me[ln+0]=248&Ys(vt,de)|dn>>5,Me[ln+1]=Qt}function Ga(vt,Qt,de,Me,ln){var dn=240&Pa(vt,Qt)|15;Me[ln+0]=240&Ys(vt,de)|Ba(vt,Qt,de)>>4,Me[ln+1]=dn}function Kl(vt,Qt,de,Me,ln){Me[ln+0]=255,vs(vt,Qt,de,Me,ln+1)}function Nu(vt,Qt,de,Me,ln){iu(vt,Qt,de,Me,ln),Me[ln+3]=255}function ac(vt,Qt,de,Me,ln){vs(vt,Qt,de,Me,ln),Me[ln+3]=255}function Fh(vt,Qt){return 0>vt?0:vt>Qt?Qt:vt}function lc(vt,Qt,de){Di[vt]=function(Me,ln,dn,An,Sn,Tn,Wn,mi,qi){for(var tr=mi+(-2&qi)*de;mi!=tr;)Qt(Me[ln+0],dn[An+0],Sn[Tn+0],Wn,mi),Qt(Me[ln+1],dn[An+0],Sn[Tn+0],Wn,mi+de),ln+=2,++An,++Tn,mi+=2*de;1&qi&&Qt(Me[ln+0],dn[An+0],Sn[Tn+0],Wn,mi)}}function LA(vt,Qt,de){return de==0?vt==0?Qt==0?6:5:Qt==0?4:0:de}function dA(vt,Qt,de,Me,ln){switch(vt>>>30){case 3:si(Qt,de,Me,ln,0);break;case 2:pn(Qt,de,Me,ln);break;case 1:Ei(Qt,de,Me,ln)}}function MA(vt,Qt){var de,Me,ln=Qt.M,dn=Qt.Nb,An=vt.oc,Sn=vt.pc+40,Tn=vt.oc,Wn=vt.pc+584,mi=vt.oc,qi=vt.pc+600;for(de=0;16>de;++de)An[Sn+32*de-1]=129;for(de=0;8>de;++de)Tn[Wn+32*de-1]=129,mi[qi+32*de-1]=129;for(0<ln?An[Sn-1-32]=Tn[Wn-1-32]=mi[qi-1-32]=129:(oe(An,Sn-32-1,127,21),oe(Tn,Wn-32-1,127,9),oe(mi,qi-32-1,127,9)),Me=0;Me<vt.za;++Me){var tr=Qt.ya[Qt.aa+Me];if(0<Me){for(de=-1;16>de;++de)_t(An,Sn+32*de-4,An,Sn+32*de+12,4);for(de=-1;8>de;++de)_t(Tn,Wn+32*de-4,Tn,Wn+32*de+4,4),_t(mi,qi+32*de-4,mi,qi+32*de+4,4)}var ki=vt.Gd,Wr=vt.Hd+Me,Nr=tr.ad,_i=tr.Hc;if(0<ln&&(_t(An,Sn-32,ki[Wr].y,0,16),_t(Tn,Wn-32,ki[Wr].f,0,8),_t(mi,qi-32,ki[Wr].ea,0,8)),tr.Za){var Ui=An,zr=Sn-32+16;for(0<ln&&(Me>=vt.za-1?oe(Ui,zr,ki[Wr].y[15],4):_t(Ui,zr,ki[Wr+1].y,0,4)),de=0;4>de;de++)Ui[zr+128+de]=Ui[zr+256+de]=Ui[zr+384+de]=Ui[zr+0+de];for(de=0;16>de;++de,_i<<=2)Ui=An,zr=Sn+ii[de],Ec[tr.Ob[de]](Ui,zr),dA(_i,Nr,16*+de,Ui,zr)}else if(Ui=LA(Me,ln,tr.Ob[0]),bc[Ui](An,Sn),_i!=0)for(de=0;16>de;++de,_i<<=2)dA(_i,Nr,16*+de,An,Sn+ii[de]);for(de=tr.Gc,Ui=LA(Me,ln,tr.Dd),Id[Ui](Tn,Wn),Id[Ui](mi,qi),_i=Nr,Ui=Tn,zr=Wn,255&(tr=de>>0)&&(170&tr?Oi(_i,256,Ui,zr):Sr(_i,256,Ui,zr)),tr=mi,_i=qi,255&(de>>=8)&&(170&de?Oi(Nr,320,tr,_i):Sr(Nr,320,tr,_i)),ln<vt.Ub-1&&(_t(ki[Wr].y,0,An,Sn+480,16),_t(ki[Wr].f,0,Tn,Wn+224,8),_t(ki[Wr].ea,0,mi,qi+224,8)),de=8*dn*vt.B,ki=vt.sa,Wr=vt.ta+16*Me+16*dn*vt.R,Nr=vt.qa,tr=vt.ra+8*Me+de,_i=vt.Ha,Ui=vt.Ia+8*Me+de,de=0;16>de;++de)_t(ki,Wr+de*vt.R,An,Sn+32*de,16);for(de=0;8>de;++de)_t(Nr,tr+de*vt.B,Tn,Wn+32*de,8),_t(_i,Ui+de*vt.B,mi,qi+32*de,8)}}function pc(vt,Qt,de,Me,ln,dn,An,Sn,Tn){var Wn=[0],mi=[0],qi=0,tr=Tn!=null?Tn.kd:0,ki=Tn!=null?Tn:new hA;if(vt==null||12>de)return 7;ki.data=vt,ki.w=Qt,ki.ha=de,Qt=[Qt],de=[de],ki.gb=[ki.gb];t:{var Wr=Qt,Nr=de,_i=ki.gb;if(pt(vt!=null),pt(Nr!=null),pt(_i!=null),_i[0]=0,12<=Nr[0]&&!St(vt,Wr[0],"RIFF")){if(St(vt,Wr[0]+8,"WEBP")){_i=3;break t}var Ui=Fr(vt,Wr[0]+4);if(12>Ui||4294967286<Ui){_i=3;break t}if(tr&&Ui>Nr[0]-8){_i=7;break t}_i[0]=Ui,Wr[0]+=12,Nr[0]-=12}_i=0}if(_i!=0)return _i;for(Ui=0<ki.gb[0],de=de[0];;){t:{var zr=vt;Nr=Qt,_i=de;var uo=Wn,Yr=mi,ls=Wr=[0];if((os=qi=[qi])[0]=0,8>_i[0])_i=7;else{if(!St(zr,Nr[0],"VP8X")){if(Fr(zr,Nr[0]+4)!=10){_i=3;break t}if(18>_i[0]){_i=7;break t}var Yo=Fr(zr,Nr[0]+8),fi=1+Ar(zr,Nr[0]+12);if(2147483648<=fi*(zr=1+Ar(zr,Nr[0]+15))){_i=3;break t}ls!=null&&(ls[0]=Yo),uo!=null&&(uo[0]=fi),Yr!=null&&(Yr[0]=zr),Nr[0]+=18,_i[0]-=18,os[0]=1}_i=0}}if(qi=qi[0],Wr=Wr[0],_i!=0)return _i;if(Nr=!!(2&Wr),!Ui&&qi)return 3;if(dn!=null&&(dn[0]=!!(16&Wr)),An!=null&&(An[0]=Nr),Sn!=null&&(Sn[0]=0),An=Wn[0],Wr=mi[0],qi&&Nr&&Tn==null){_i=0;break}if(4>de){_i=7;break}if(Ui&&qi||!Ui&&!qi&&!St(vt,Qt[0],"ALPH")){de=[de],ki.na=[ki.na],ki.P=[ki.P],ki.Sa=[ki.Sa];t:{Yo=vt,_i=Qt,Ui=de;var os=ki.gb;uo=ki.na,Yr=ki.P,ls=ki.Sa,fi=22,pt(Yo!=null),pt(Ui!=null),zr=_i[0];var Pl=Ui[0];for(pt(uo!=null),pt(ls!=null),uo[0]=null,Yr[0]=null,ls[0]=0;;){if(_i[0]=zr,Ui[0]=Pl,8>Pl){_i=7;break t}var bl=Fr(Yo,zr+4);if(4294967286<bl){_i=3;break t}var rl=8+bl+1&-2;if(fi+=rl,0<os&&fi>os){_i=3;break t}if(!St(Yo,zr,"VP8 ")||!St(Yo,zr,"VP8L")){_i=0;break t}if(Pl[0]<rl){_i=7;break t}St(Yo,zr,"ALPH")||(uo[0]=Yo,Yr[0]=zr+8,ls[0]=bl),zr+=rl,Pl-=rl}}if(de=de[0],ki.na=ki.na[0],ki.P=ki.P[0],ki.Sa=ki.Sa[0],_i!=0)break}de=[de],ki.Ja=[ki.Ja],ki.xa=[ki.xa];t:if(os=vt,_i=Qt,Ui=de,uo=ki.gb[0],Yr=ki.Ja,ls=ki.xa,Yo=_i[0],zr=!St(os,Yo,"VP8 "),fi=!St(os,Yo,"VP8L"),pt(os!=null),pt(Ui!=null),pt(Yr!=null),pt(ls!=null),8>Ui[0])_i=7;else{if(zr||fi){if(os=Fr(os,Yo+4),12<=uo&&os>uo-12){_i=3;break t}if(tr&&os>Ui[0]-8){_i=7;break t}Yr[0]=os,_i[0]+=8,Ui[0]-=8,ls[0]=fi}else ls[0]=5<=Ui[0]&&os[Yo+0]==47&&!(os[Yo+4]>>5),Yr[0]=Ui[0];_i=0}if(de=de[0],ki.Ja=ki.Ja[0],ki.xa=ki.xa[0],Qt=Qt[0],_i!=0)break;if(4294967286<ki.Ja)return 3;if(Sn==null||Nr||(Sn[0]=ki.xa?2:1),An=[An],Wr=[Wr],ki.xa){if(5>de){_i=7;break}Sn=An,tr=Wr,Nr=dn,vt==null||5>de?vt=0:5<=de&&vt[Qt+0]==47&&!(vt[Qt+4]>>5)?(Ui=[0],os=[0],uo=[0],on(Yr=new ze,vt,Qt,de),Ps(Yr,Ui,os,uo)?(Sn!=null&&(Sn[0]=Ui[0]),tr!=null&&(tr[0]=os[0]),Nr!=null&&(Nr[0]=uo[0]),vt=1):vt=0):vt=0}else{if(10>de){_i=7;break}Sn=Wr,vt==null||10>de||!gl(vt,Qt+3,de-3)?vt=0:(tr=vt[Qt+0]|vt[Qt+1]<<8|vt[Qt+2]<<16,Nr=16383&(vt[Qt+7]<<8|vt[Qt+6]),vt=16383&(vt[Qt+9]<<8|vt[Qt+8]),1&tr||3<(tr>>1&7)||!(tr>>4&1)||tr>>5>=ki.Ja||!Nr||!vt?vt=0:(An&&(An[0]=Nr),Sn&&(Sn[0]=vt),vt=1))}if(!vt||(An=An[0],Wr=Wr[0],qi&&(Wn[0]!=An||mi[0]!=Wr)))return 3;Tn!=null&&(Tn[0]=ki,Tn.offset=Qt-Tn.w,pt(4294967286>Qt-Tn.w),pt(Tn.offset==Tn.ha-de));break}return _i==0||_i==7&&qi&&Tn==null?(dn!=null&&(dn[0]|=ki.na!=null&&0<ki.na.length),Me!=null&&(Me[0]=An),ln!=null&&(ln[0]=Wr),0):_i}function Fd(vt,Qt,de){var Me=Qt.width,ln=Qt.height,dn=0,An=0,Sn=Me,Tn=ln;if(Qt.Da=vt!=null&&0<vt.Da,Qt.Da&&(Sn=vt.cd,Tn=vt.bd,dn=vt.v,An=vt.j,11>de||(dn&=-2,An&=-2),0>dn||0>An||0>=Sn||0>=Tn||dn+Sn>Me||An+Tn>ln))return 0;if(Qt.v=dn,Qt.j=An,Qt.va=dn+Sn,Qt.o=An+Tn,Qt.U=Sn,Qt.T=Tn,Qt.da=vt!=null&&0<vt.da,Qt.da){if(!xo(Sn,Tn,de=[vt.ib],dn=[vt.hb]))return 0;Qt.ib=de[0],Qt.hb=dn[0]}return Qt.ob=vt!=null&&vt.ob,Qt.Kb=vt==null||!vt.Sd,Qt.da&&(Qt.ob=Qt.ib<3*Me/4&&Qt.hb<3*ln/4,Qt.Kb=0),1}function Gc(vt){if(vt==null)return 2;if(11>vt.S){var Qt=vt.f.RGBA;Qt.fb+=(vt.height-1)*Qt.A,Qt.A=-Qt.A}else Qt=vt.f.kb,vt=vt.height,Qt.O+=(vt-1)*Qt.fa,Qt.fa=-Qt.fa,Qt.N+=(vt-1>>1)*Qt.Ab,Qt.Ab=-Qt.Ab,Qt.W+=(vt-1>>1)*Qt.Db,Qt.Db=-Qt.Db,Qt.F!=null&&(Qt.J+=(vt-1)*Qt.lb,Qt.lb=-Qt.lb);return 0}function pl(vt,Qt,de,Me){if(Me==null||0>=vt||0>=Qt)return 2;if(de!=null){if(de.Da){var ln=de.cd,dn=de.bd,An=-2&de.v,Sn=-2&de.j;if(0>An||0>Sn||0>=ln||0>=dn||An+ln>vt||Sn+dn>Qt)return 2;vt=ln,Qt=dn}if(de.da){if(!xo(vt,Qt,ln=[de.ib],dn=[de.hb]))return 2;vt=ln[0],Qt=dn[0]}}Me.width=vt,Me.height=Qt;t:{var Tn=Me.width,Wn=Me.height;if(vt=Me.S,0>=Tn||0>=Wn||!(vt>=du&&13>vt))vt=2;else{if(0>=Me.Rd&&Me.sd==null){An=dn=ln=Qt=0;var mi=(Sn=Tn*ur[vt])*Wn;if(11>vt||(dn=(Wn+1)/2*(Qt=(Tn+1)/2),vt==12&&(An=(ln=Tn)*Wn)),(Wn=qt(mi+2*dn+An))==null){vt=1;break t}Me.sd=Wn,11>vt?((Tn=Me.f.RGBA).eb=Wn,Tn.fb=0,Tn.A=Sn,Tn.size=mi):((Tn=Me.f.kb).y=Wn,Tn.O=0,Tn.fa=Sn,Tn.Fd=mi,Tn.f=Wn,Tn.N=0+mi,Tn.Ab=Qt,Tn.Cd=dn,Tn.ea=Wn,Tn.W=0+mi+dn,Tn.Db=Qt,Tn.Ed=dn,vt==12&&(Tn.F=Wn,Tn.J=0+mi+2*dn),Tn.Tc=An,Tn.lb=ln)}if(Qt=1,ln=Me.S,dn=Me.width,An=Me.height,ln>=du&&13>ln)if(11>ln)vt=Me.f.RGBA,Qt&=(Sn=Math.abs(vt.A))*(An-1)+dn<=vt.size,Qt&=Sn>=dn*ur[ln],Qt&=vt.eb!=null;else{vt=Me.f.kb,Sn=(dn+1)/2,mi=(An+1)/2,Tn=Math.abs(vt.fa),Wn=Math.abs(vt.Ab);var qi=Math.abs(vt.Db),tr=Math.abs(vt.lb),ki=tr*(An-1)+dn;Qt&=Tn*(An-1)+dn<=vt.Fd,Qt&=Wn*(mi-1)+Sn<=vt.Cd,Qt=(Qt&=qi*(mi-1)+Sn<=vt.Ed)&Tn>=dn&Wn>=Sn&qi>=Sn,Qt&=vt.y!=null,Qt&=vt.f!=null,Qt&=vt.ea!=null,ln==12&&(Qt&=tr>=dn,Qt&=ki<=vt.Tc,Qt&=vt.F!=null)}else Qt=0;vt=Qt?0:2}}return vt!=0||de!=null&&de.fd&&(vt=Gc(Me)),vt}var Iu=64,Yd=[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],Wl=24,jh=32,mc=8,th=[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];lr("Predictor0","PredictorAdd0"),Di.Predictor0=function(){return 4278190080},Di.Predictor1=function(vt){return vt},Di.Predictor2=function(vt,Qt,de){return Qt[de+0]},Di.Predictor3=function(vt,Qt,de){return Qt[de+1]},Di.Predictor4=function(vt,Qt,de){return Qt[de-1]},Di.Predictor5=function(vt,Qt,de){return vr(vr(vt,Qt[de+1]),Qt[de+0])},Di.Predictor6=function(vt,Qt,de){return vr(vt,Qt[de-1])},Di.Predictor7=function(vt,Qt,de){return vr(vt,Qt[de+0])},Di.Predictor8=function(vt,Qt,de){return vr(Qt[de-1],Qt[de+0])},Di.Predictor9=function(vt,Qt,de){return vr(Qt[de+0],Qt[de+1])},Di.Predictor10=function(vt,Qt,de){return vr(vr(vt,Qt[de-1]),vr(Qt[de+0],Qt[de+1]))},Di.Predictor11=function(vt,Qt,de){var Me=Qt[de+0];return 0>=po(Me>>24&255,vt>>24&255,(Qt=Qt[de-1])>>24&255)+po(Me>>16&255,vt>>16&255,Qt>>16&255)+po(Me>>8&255,vt>>8&255,Qt>>8&255)+po(255&Me,255&vt,255&Qt)?Me:vt},Di.Predictor12=function(vt,Qt,de){var Me=Qt[de+0];return(Zr((vt>>24&255)+(Me>>24&255)-((Qt=Qt[de-1])>>24&255))<<24|Zr((vt>>16&255)+(Me>>16&255)-(Qt>>16&255))<<16|Zr((vt>>8&255)+(Me>>8&255)-(Qt>>8&255))<<8|Zr((255&vt)+(255&Me)-(255&Qt)))>>>0},Di.Predictor13=function(vt,Qt,de){var Me=Qt[de-1];return(co((vt=vr(vt,Qt[de+0]))>>24&255,Me>>24&255)<<24|co(vt>>16&255,Me>>16&255)<<16|co(vt>>8&255,Me>>8&255)<<8|co(vt>>0&255,Me>>0&255))>>>0};var Vl=Di.PredictorAdd0;Di.PredictorAdd1=Rr,lr("Predictor2","PredictorAdd2"),lr("Predictor3","PredictorAdd3"),lr("Predictor4","PredictorAdd4"),lr("Predictor5","PredictorAdd5"),lr("Predictor6","PredictorAdd6"),lr("Predictor7","PredictorAdd7"),lr("Predictor8","PredictorAdd8"),lr("Predictor9","PredictorAdd9"),lr("Predictor10","PredictorAdd10"),lr("Predictor11","PredictorAdd11"),lr("Predictor12","PredictorAdd12"),lr("Predictor13","PredictorAdd13");var Ld=Di.PredictorAdd2;is("ColorIndexInverseTransform","MapARGB","32b",function(vt){return vt>>8&255},function(vt){return vt}),is("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(vt){return vt},function(vt){return vt>>8&255});var Uh,lh=Di.ColorIndexInverseTransform,sd=Di.MapARGB,it=Di.VP8LColorIndexInverseTransformAlpha,st=Di.MapAlpha,ft=Di.VP8LPredictorsAdd=[];ft.length=16,(Di.VP8LPredictors=[]).length=16,(Di.VP8LPredictorsAdd_C=[]).length=16,(Di.VP8LPredictors_C=[]).length=16;var At,xt,te,Pe,He,Re,un,si,pn,Oi,Ei,Sr,Dr,eo,vo,Zo,No,as,ks,Io,ea,Bl,ku,cl,yu,Na,ya,ml,vl=qt(511),Co=qt(2041),wa=qt(225),Il=qt(767),kl=0,uh=Co,Da=wa,Hs=Il,wu=vl,du=0,ad=1,uc=2,hh=3,Sh=4,Tl=5,eh=6,Wc=7,Jd=8,zf=9,Lh=10,Sg=[2,3,7],Md=[3,3,11],yf=[280,256,256,256,40],wf=[0,1,1,1,0],GA=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],NA=[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],Kf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],WA=8,Nd=[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],_u=[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],nh=null,Gf=[[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]],Sp=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],zg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],VA=[[[[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]]]],ZA=[[[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]]],Wf=[[[[255,255,255,255,255,255,255,255,255,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]]]],Cp=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],bc=[],Ec=[],Id=[],ld=1,kd=2,Td=[],Tu=[];Ur("UpsampleRgbLinePair",vs,3),Ur("UpsampleBgrLinePair",iu,3),Ur("UpsampleRgbaLinePair",ac,4),Ur("UpsampleBgraLinePair",Nu,4),Ur("UpsampleArgbLinePair",Kl,4),Ur("UpsampleRgba4444LinePair",Ga,2),Ur("UpsampleRgb565LinePair",ru,2);var XA=Di.UpsampleRgbLinePair,lm=Di.UpsampleBgrLinePair,xf=Di.UpsampleRgbaLinePair,js=Di.UpsampleBgraLinePair,Kg=Di.UpsampleArgbLinePair,Gg=Di.UpsampleRgba4444LinePair,Wg=Di.UpsampleRgb565LinePair,IA=16,kA=1<<IA-1,Fc=-227,Vf=482,Cg=6,Vg=(256<<Cg)-1,kt=0,It=qt(256),Ht=qt(256),Ut=qt(256),Fe=qt(256),qe=qt(Vf-Fc),Nn=qt(Vf-Fc);lc("YuvToRgbRow",vs,3),lc("YuvToBgrRow",iu,3),lc("YuvToRgbaRow",ac,4),lc("YuvToBgraRow",Nu,4),lc("YuvToArgbRow",Kl,4),lc("YuvToRgba4444Row",Ga,2),lc("YuvToRgb565Row",ru,2);var ii=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Un=[0,2,8],Ri=[8,7,6,4,4,2,2,2,1,1,1,1],Ki=1;this.WebPDecodeRGBA=function(vt,Qt,de,Me,ln){var dn=ad,An=new Kc,Sn=new gs;An.ba=Sn,Sn.S=dn,Sn.width=[Sn.width],Sn.height=[Sn.height];var Tn=Sn.width,Wn=Sn.height,mi=new es;if(mi==null||vt==null)var qi=2;else pt(mi!=null),qi=pc(vt,Qt,de,mi.width,mi.height,mi.Pd,mi.Qd,mi.format,null);if(qi!=0?Tn=0:(Tn!=null&&(Tn[0]=mi.width[0]),Wn!=null&&(Wn[0]=mi.height[0]),Tn=1),Tn){Sn.width=Sn.width[0],Sn.height=Sn.height[0],Me!=null&&(Me[0]=Sn.width),ln!=null&&(ln[0]=Sn.height);t:{if(Me=new da,(ln=new hA).data=vt,ln.w=Qt,ln.ha=de,ln.kd=1,Qt=[0],pt(ln!=null),((vt=pc(ln.data,ln.w,ln.ha,null,null,null,Qt,null,ln))==0||vt==7)&&Qt[0]&&(vt=4),(Qt=vt)==0){if(pt(An!=null),Me.data=ln.data,Me.w=ln.w+ln.offset,Me.ha=ln.ha-ln.offset,Me.put=zl,Me.ac=Us,Me.bc=Ml,Me.ma=An,ln.xa){if((vt=Sl())==null){An=1;break t}if(function(tr,ki){var Wr=[0],Nr=[0],_i=[0];e:for(;;){if(tr==null)return 0;if(ki==null)return tr.a=2,0;if(tr.l=ki,tr.a=0,on(tr.m,ki.data,ki.w,ki.ha),!Ps(tr.m,Wr,Nr,_i)){tr.a=3;break e}if(tr.xb=kd,ki.width=Wr[0],ki.height=Nr[0],!pu(Wr[0],Nr[0],1,tr,null))break e;return 1}return pt(tr.a!=0),0}(vt,Me)){if(Me=(Qt=pl(Me.width,Me.height,An.Oa,An.ba))==0){e:{Me=vt;n:for(;;){if(Me==null){Me=0;break e}if(pt(Me.s.yc!=null),pt(Me.s.Ya!=null),pt(0<Me.s.Wb),pt((de=Me.l)!=null),pt((ln=de.ma)!=null),Me.xb!=0){if(Me.ca=ln.ba,Me.tb=ln.tb,pt(Me.ca!=null),!Fd(ln.Oa,de,hh)){Me.a=2;break n}if(!uu(Me,de.width)||de.da)break n;if((de.da||$s(Me.ca.S))&&hr(),11>Me.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Me.ca.f.kb.F!=null&&hr()),Me.Pb&&0<Me.s.ua&&Me.s.vb.X==null&&!ro(Me.s.vb,Me.s.Wa.Xa)){Me.a=1;break n}Me.xb=0}if(!Rs(Me,Me.V,Me.Ba,Me.c,Me.i,de.o,la))break n;ln.Dc=Me.Ma,Me=1;break e}pt(Me.a!=0),Me=0}Me=!Me}Me&&(Qt=vt.a)}else Qt=vt.a}else{if((vt=new Cl)==null){An=1;break t}if(vt.Fa=ln.na,vt.P=ln.P,vt.qc=ln.Sa,Aa(vt,Me)){if((Qt=pl(Me.width,Me.height,An.Oa,An.ba))==0){if(vt.Aa=0,de=An.Oa,pt((ln=vt)!=null),de!=null){if(0<(Tn=0>(Tn=de.Md)?0:100<Tn?255:255*Tn/100)){for(Wn=mi=0;4>Wn;++Wn)12>(qi=ln.pb[Wn]).lc&&(qi.ia=Tn*Ri[0>qi.lc?0:qi.lc]>>3),mi|=qi.ia;mi&&(alert("todo:VP8InitRandom"),ln.ia=1)}ln.Ga=de.Id,100<ln.Ga?ln.Ga=100:0>ln.Ga&&(ln.Ga=0)}Kh(vt,Me)||(Qt=vt.a)}}else Qt=vt.a}Qt==0&&An.Oa!=null&&An.Oa.fd&&(Qt=Gc(An.ba))}An=Qt}dn=An!=0?null:11>dn?Sn.f.RGBA.eb:Sn.f.kb.y}else dn=null;return dn};var ur=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Je(Di,Cr){for(var Or="",qn=0;qn<4;qn++)Or+=String.fromCharCode(Di[Cr++]);return Or}function fn(Di,Cr){return(Di[Cr+0]<<0|Di[Cr+1]<<8|Di[Cr+2]<<16)>>>0}function gn(Di,Cr){return(Di[Cr+0]<<0|Di[Cr+1]<<8|Di[Cr+2]<<16|Di[Cr+3]<<24)>>>0}new Le;var En=[0],We=[0],vi=[],ei=new Le,wi=Bt,Hn=function(Di,Cr){var Or={},qn=0,oi=!1,ye=0,we=0;if(Or.frames=[],!function(cn,vn,Gn,Yn){for(var ri=0;ri<Yn;ri++)if(cn[vn+ri]!=Gn.charCodeAt(ri))return!0;return!1}(Di,Cr,"RIFF",4)){var Ye,tn;for(gn(Di,Cr+=4),Cr+=8;Cr<Di.length;){var yn=Je(Di,Cr),on=gn(Di,Cr+=4);Cr+=4;var Dn=on+(1&on);switch(yn){case"VP8 ":case"VP8L":Or.frames[qn]===void 0&&(Or.frames[qn]={}),(ze=Or.frames[qn]).src_off=oi?we:Cr-8,ze.src_size=ye+on+8,qn++,oi&&(oi=!1,ye=0,we=0);break;case"VP8X":(ze=Or.header={}).feature_flags=Di[Cr];var Rn=Cr+4;ze.canvas_width=1+fn(Di,Rn),Rn+=3,ze.canvas_height=1+fn(Di,Rn),Rn+=3;break;case"ALPH":oi=!0,ye=Dn+8,we=Cr-8;break;case"ANIM":(ze=Or.header).bgcolor=gn(Di,Cr),Rn=Cr+4,ze.loop_count=(Ye=Di)[(tn=Rn)+0]<<0|Ye[tn+1]<<8,Rn+=2;break;case"ANMF":var ti,ze;(ze=Or.frames[qn]={}).offset_x=2*fn(Di,Cr),Cr+=3,ze.offset_y=2*fn(Di,Cr),Cr+=3,ze.width=1+fn(Di,Cr),Cr+=3,ze.height=1+fn(Di,Cr),Cr+=3,ze.duration=fn(Di,Cr),Cr+=3,ti=Di[Cr++],ze.dispose=1&ti,ze.blend=ti>>1&1}yn!="ANMF"&&(Cr+=Dn)}return Or}}(wi,0);Hn.response=wi,Hn.rgbaoutput=!0,Hn.dataurl=!1;var gi=Hn.header?Hn.header:null,zi=Hn.frames?Hn.frames:null;if(gi){gi.loop_counter=gi.loop_count,En=[gi.canvas_height],We=[gi.canvas_width];for(var or=0;or<zi.length&&zi[or].blend!=0;or++);}var Lr=zi[0],lo=ei.WebPDecodeRGBA(wi,Lr.src_off,Lr.src_size,We,En);Lr.rgba=lo,Lr.imgwidth=We[0],Lr.imgheight=En[0];for(var mr=0;mr<We[0]*En[0]*4;mr++)vi[mr]=lo[mr];return this.width=We,this.height=En,this.data=vi,this}(function(Bt){var pt=function(){return typeof kn=="function"},St=function(En,We,vi,ei){var wi=4,Hn=me;switch(ei){case Bt.image_compression.FAST:wi=1,Hn=qt;break;case Bt.image_compression.MEDIUM:wi=6,Hn=Ce;break;case Bt.image_compression.SLOW:wi=9,Hn=Le}En=_t(En,We,vi,Hn);var gi=kn(En,{level:wi});return Bt.__addimage__.arrayBufferToBinaryString(gi)},_t=function(En,We,vi,ei){for(var wi,Hn,gi,zi=En.length/We,or=new Uint8Array(En.length+zi),Lr=fn(),lo=0;lo<zi;lo+=1){if(gi=lo*We,wi=En.subarray(gi,gi+We),ei)or.set(ei(wi,vi,Hn),gi+lo);else{for(var mr,Di=Lr.length,Cr=[];mr<Di;mr+=1)Cr[mr]=Lr[mr](wi,vi,Hn);var Or=gn(Cr.concat());or.set(Cr[Or],gi+lo)}Hn=wi}return or},oe=function(En){var We=Array.apply([],En);return We.unshift(0),We},qt=function(En,We){var vi,ei=[],wi=En.length;ei[0]=1;for(var Hn=0;Hn<wi;Hn+=1)vi=En[Hn-We]||0,ei[Hn+1]=En[Hn]-vi+256&255;return ei},me=function(En,We,vi){var ei,wi=[],Hn=En.length;wi[0]=2;for(var gi=0;gi<Hn;gi+=1)ei=vi&&vi[gi]||0,wi[gi+1]=En[gi]-ei+256&255;return wi},Ce=function(En,We,vi){var ei,wi,Hn=[],gi=En.length;Hn[0]=3;for(var zi=0;zi<gi;zi+=1)ei=En[zi-We]||0,wi=vi&&vi[zi]||0,Hn[zi+1]=En[zi]+256-(ei+wi>>>1)&255;return Hn},Le=function(En,We,vi){var ei,wi,Hn,gi,zi=[],or=En.length;zi[0]=4;for(var Lr=0;Lr<or;Lr+=1)ei=En[Lr-We]||0,wi=vi&&vi[Lr]||0,Hn=vi&&vi[Lr-We]||0,gi=Je(ei,wi,Hn),zi[Lr+1]=En[Lr]-gi+256&255;return zi},Je=function(En,We,vi){if(En===We&&We===vi)return En;var ei=Math.abs(We-vi),wi=Math.abs(En-vi),Hn=Math.abs(En+We-vi-vi);return ei<=wi&&ei<=Hn?En:wi<=Hn?We:vi},fn=function(){return[oe,qt,me,Ce,Le]},gn=function(En){var We=En.map(function(vi){return vi.reduce(function(ei,wi){return ei+Math.abs(wi)},0)});return We.indexOf(Math.min.apply(null,We))};Bt.processPNG=function(En,We,vi,ei){var wi,Hn,gi,zi,or,Lr,lo,mr,Di,Cr,Or,qn,oi,ye,we,Ye=this.decode.FLATE_DECODE,tn="";if(this.__addimage__.isArrayBuffer(En)&&(En=new Uint8Array(En)),this.__addimage__.isArrayBufferView(En)){if(En=(gi=new sA(En)).imgData,Hn=gi.bits,wi=gi.colorSpace,or=gi.colors,[4,6].indexOf(gi.colorType)!==-1){if(gi.bits===8){Di=(mr=gi.pixelBitlength==32?new Uint32Array(gi.decodePixels().buffer):gi.pixelBitlength==16?new Uint16Array(gi.decodePixels().buffer):new Uint8Array(gi.decodePixels().buffer)).length,Or=new Uint8Array(Di*gi.colors),Cr=new Uint8Array(Di);var yn,on=gi.pixelBitlength-gi.bits;for(ye=0,we=0;ye<Di;ye++){for(oi=mr[ye],yn=0;yn<on;)Or[we++]=oi>>>yn&255,yn+=gi.bits;Cr[ye]=oi>>>yn&255}}if(gi.bits===16){Di=(mr=new Uint32Array(gi.decodePixels().buffer)).length,Or=new Uint8Array(Di*(32/gi.pixelBitlength)*gi.colors),Cr=new Uint8Array(Di*(32/gi.pixelBitlength)),qn=gi.colors>1,ye=0,we=0;for(var Dn=0;ye<Di;)oi=mr[ye++],Or[we++]=oi>>>0&255,qn&&(Or[we++]=oi>>>16&255,oi=mr[ye++],Or[we++]=oi>>>0&255),Cr[Dn++]=oi>>>16&255;Hn=8}ei!==Bt.image_compression.NONE&&pt()?(En=St(Or,gi.width*gi.colors,gi.colors,ei),lo=St(Cr,gi.width,1,ei)):(En=Or,lo=Cr,Ye=void 0)}if(gi.colorType===3&&(wi=this.color_spaces.INDEXED,Lr=gi.palette,gi.transparency.indexed)){var Rn=gi.transparency.indexed,ti=0;for(ye=0,Di=Rn.length;ye<Di;++ye)ti+=Rn[ye];if((ti/=255)===Di-1&&Rn.indexOf(0)!==-1)zi=[Rn.indexOf(0)];else if(ti!==Di){for(mr=gi.decodePixels(),Cr=new Uint8Array(mr.length),ye=0,Di=mr.length;ye<Di;ye++)Cr[ye]=Rn[mr[ye]];lo=St(Cr,gi.width,1)}}var ze=function(cn){var vn;switch(cn){case Bt.image_compression.FAST:vn=11;break;case Bt.image_compression.MEDIUM:vn=13;break;case Bt.image_compression.SLOW:vn=14;break;default:vn=12}return vn}(ei);return Ye===this.decode.FLATE_DECODE&&(tn="/Predictor "+ze+" "),tn+="/Colors "+or+" /BitsPerComponent "+Hn+" /Columns "+gi.width,(this.__addimage__.isArrayBuffer(En)||this.__addimage__.isArrayBufferView(En))&&(En=this.__addimage__.arrayBufferToBinaryString(En)),(lo&&this.__addimage__.isArrayBuffer(lo)||this.__addimage__.isArrayBufferView(lo))&&(lo=this.__addimage__.arrayBufferToBinaryString(lo)),{alias:vi,data:En,index:We,filter:Ye,decodeParameters:tn,transparency:zi,palette:Lr,sMask:lo,predictor:ze,width:gi.width,height:gi.height,bitsPerComponent:Hn,colorSpace:wi}}}})(Ho.API),function(Bt){Bt.processGIF89A=function(pt,St,_t,oe){var qt=new Ln(pt),me=qt.width,Ce=qt.height,Le=[];qt.decodeAndBlitFrameRGBA(0,Le);var Je={data:Le,width:me,height:Ce},fn=new aA(100).encode(Je,100);return Bt.processJPEG.call(this,fn,St,_t,oe)},Bt.processGIF87A=Bt.processGIF89A}(Ho.API),ic.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 Bt=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Bt);for(var pt=0;pt<Bt;pt++){var St=this.datav.getUint8(this.pos++,!0),_t=this.datav.getUint8(this.pos++,!0),oe=this.datav.getUint8(this.pos++,!0),qt=this.datav.getUint8(this.pos++,!0);this.palette[pt]={red:oe,green:_t,blue:St,quad:qt}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ic.prototype.parseBGR=function(){this.pos=this.offset;try{var Bt="bit"+this.bitPP,pt=this.width*this.height*4;this.data=new Uint8Array(pt),this[Bt]()}catch(St){Po.log("bit decode error:"+St)}},ic.prototype.bit1=function(){var Bt,pt=Math.ceil(this.width/8),St=pt%4;for(Bt=this.height-1;Bt>=0;Bt--){for(var _t=this.bottom_up?Bt:this.height-1-Bt,oe=0;oe<pt;oe++)for(var qt=this.datav.getUint8(this.pos++,!0),me=_t*this.width*4+8*oe*4,Ce=0;Ce<8&&8*oe+Ce<this.width;Ce++){var Le=this.palette[qt>>7-Ce&1];this.data[me+4*Ce]=Le.blue,this.data[me+4*Ce+1]=Le.green,this.data[me+4*Ce+2]=Le.red,this.data[me+4*Ce+3]=255}St!==0&&(this.pos+=4-St)}},ic.prototype.bit4=function(){for(var Bt=Math.ceil(this.width/2),pt=Bt%4,St=this.height-1;St>=0;St--){for(var _t=this.bottom_up?St:this.height-1-St,oe=0;oe<Bt;oe++){var qt=this.datav.getUint8(this.pos++,!0),me=_t*this.width*4+2*oe*4,Ce=qt>>4,Le=15&qt,Je=this.palette[Ce];if(this.data[me]=Je.blue,this.data[me+1]=Je.green,this.data[me+2]=Je.red,this.data[me+3]=255,2*oe+1>=this.width)break;Je=this.palette[Le],this.data[me+4]=Je.blue,this.data[me+4+1]=Je.green,this.data[me+4+2]=Je.red,this.data[me+4+3]=255}pt!==0&&(this.pos+=4-pt)}},ic.prototype.bit8=function(){for(var Bt=this.width%4,pt=this.height-1;pt>=0;pt--){for(var St=this.bottom_up?pt:this.height-1-pt,_t=0;_t<this.width;_t++){var oe=this.datav.getUint8(this.pos++,!0),qt=St*this.width*4+4*_t;if(oe<this.palette.length){var me=this.palette[oe];this.data[qt]=me.red,this.data[qt+1]=me.green,this.data[qt+2]=me.blue,this.data[qt+3]=255}else this.data[qt]=255,this.data[qt+1]=255,this.data[qt+2]=255,this.data[qt+3]=255}Bt!==0&&(this.pos+=4-Bt)}},ic.prototype.bit15=function(){for(var Bt=this.width%3,pt=parseInt("11111",2),St=this.height-1;St>=0;St--){for(var _t=this.bottom_up?St:this.height-1-St,oe=0;oe<this.width;oe++){var qt=this.datav.getUint16(this.pos,!0);this.pos+=2;var me=(qt&pt)/pt*255|0,Ce=(qt>>5&pt)/pt*255|0,Le=(qt>>10&pt)/pt*255|0,Je=qt>>15?255:0,fn=_t*this.width*4+4*oe;this.data[fn]=Le,this.data[fn+1]=Ce,this.data[fn+2]=me,this.data[fn+3]=Je}this.pos+=Bt}},ic.prototype.bit16=function(){for(var Bt=this.width%3,pt=parseInt("11111",2),St=parseInt("111111",2),_t=this.height-1;_t>=0;_t--){for(var oe=this.bottom_up?_t:this.height-1-_t,qt=0;qt<this.width;qt++){var me=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ce=(me&pt)/pt*255|0,Le=(me>>5&St)/St*255|0,Je=(me>>11)/pt*255|0,fn=oe*this.width*4+4*qt;this.data[fn]=Je,this.data[fn+1]=Le,this.data[fn+2]=Ce,this.data[fn+3]=255}this.pos+=Bt}},ic.prototype.bit24=function(){for(var Bt=this.height-1;Bt>=0;Bt--){for(var pt=this.bottom_up?Bt:this.height-1-Bt,St=0;St<this.width;St++){var _t=this.datav.getUint8(this.pos++,!0),oe=this.datav.getUint8(this.pos++,!0),qt=this.datav.getUint8(this.pos++,!0),me=pt*this.width*4+4*St;this.data[me]=qt,this.data[me+1]=oe,this.data[me+2]=_t,this.data[me+3]=255}this.pos+=this.width%4}},ic.prototype.bit32=function(){for(var Bt=this.height-1;Bt>=0;Bt--)for(var pt=this.bottom_up?Bt:this.height-1-Bt,St=0;St<this.width;St++){var _t=this.datav.getUint8(this.pos++,!0),oe=this.datav.getUint8(this.pos++,!0),qt=this.datav.getUint8(this.pos++,!0),me=this.datav.getUint8(this.pos++,!0),Ce=pt*this.width*4+4*St;this.data[Ce]=qt,this.data[Ce+1]=oe,this.data[Ce+2]=_t,this.data[Ce+3]=me}},ic.prototype.getData=function(){return this.data},function(Bt){Bt.processBMP=function(pt,St,_t,oe){var qt=new ic(pt,!1),me=qt.width,Ce=qt.height,Le={data:qt.getData(),width:me,height:Ce},Je=new aA(100).encode(Le,100);return Bt.processJPEG.call(this,Je,St,_t,oe)}}(Ho.API),Gu.prototype.getData=function(){return this.data},function(Bt){Bt.processWEBP=function(pt,St,_t,oe){var qt=new Gu(pt,!1),me=qt.width,Ce=qt.height,Le={data:qt.getData(),width:me,height:Ce},Je=new aA(100).encode(Le,100);return Bt.processJPEG.call(this,Je,St,_t,oe)}}(Ho.API),Ho.API.processRGBA=function(Bt,pt,St){for(var _t=Bt.data,oe=_t.length,qt=new Uint8Array(oe/4*3),me=new Uint8Array(oe/4),Ce=0,Le=0,Je=0;Je<oe;Je+=4){var fn=_t[Je],gn=_t[Je+1],En=_t[Je+2],We=_t[Je+3];qt[Ce++]=fn,qt[Ce++]=gn,qt[Ce++]=En,me[Le++]=We}var vi=this.__addimage__.arrayBufferToBinaryString(qt);return{alpha:this.__addimage__.arrayBufferToBinaryString(me),data:vi,index:pt,alias:St,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Bt.width,height:Bt.height}},Ho.API.setLanguage=function(Bt){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"}[Bt]!==void 0&&(this.internal.languageSettings.languageCode=Bt,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},hl=Ho.API,zd=hl.getCharWidthsArray=function(Bt,pt){var St,_t,oe=(pt=pt||{}).font||this.internal.getFont(),qt=pt.fontSize||this.internal.getFontSize(),me=pt.charSpace||this.internal.getCharSpace(),Ce=pt.widths?pt.widths:oe.metadata.Unicode.widths,Le=Ce.fof?Ce.fof:1,Je=pt.kerning?pt.kerning:oe.metadata.Unicode.kerning,fn=Je.fof?Je.fof:1,gn=pt.doKerning!==!1,En=0,We=Bt.length,vi=0,ei=Ce[0]||Le,wi=[];for(St=0;St<We;St++)_t=Bt.charCodeAt(St),typeof oe.metadata.widthOfString=="function"?wi.push((oe.metadata.widthOfGlyph(oe.metadata.characterToGlyph(_t))+me*(1e3/qt)||0)/1e3):(En=gn&&(0,Lt.Z)(Je[_t])==="object"&&!isNaN(parseInt(Je[_t][vi],10))?Je[_t][vi]/fn:0,wi.push((Ce[_t]||ei)/Le+En)),vi=_t;return wi},td=hl.getStringUnitWidth=function(Bt,pt){var St=(pt=pt||{}).fontSize||this.internal.getFontSize(),_t=pt.font||this.internal.getFont(),oe=pt.charSpace||this.internal.getCharSpace();return hl.processArabic&&(Bt=hl.processArabic(Bt)),typeof _t.metadata.widthOfString=="function"?_t.metadata.widthOfString(Bt,St,oe)/St:zd.apply(this,arguments).reduce(function(qt,me){return qt+me},0)},Bh=function(Bt,pt,St,_t){for(var oe=[],qt=0,me=Bt.length,Ce=0;qt!==me&&Ce+pt[qt]<St;)Ce+=pt[qt],qt++;oe.push(Bt.slice(0,qt));var Le=qt;for(Ce=0;qt!==me;)Ce+pt[qt]>_t&&(oe.push(Bt.slice(Le,qt)),Ce=0,Le=qt),Ce+=pt[qt],qt++;return Le!==qt&&oe.push(Bt.slice(Le,qt)),oe},Ro=function(Bt,pt,St){St||(St={});var _t,oe,qt,me,Ce,Le,Je,fn=[],gn=[fn],En=St.textIndent||0,We=0,vi=0,ei=Bt.split(" "),wi=zd.apply(this,[" ",St])[0];if(Le=St.lineIndent===-1?ei[0].length+2:St.lineIndent||0){var Hn=Array(Le).join(" "),gi=[];ei.map(function(or){(or=or.split(/\s*\n/)).length>1?gi=gi.concat(or.map(function(Lr,lo){return(lo&&Lr.length?`
`:"")+Lr})):gi.push(or[0])}),ei=gi,Le=td.apply(this,[Hn,St])}for(qt=0,me=ei.length;qt<me;qt++){var zi=0;if(_t=ei[qt],Le&&_t[0]==`
`&&(_t=_t.substr(1),zi=1),En+We+(vi=(oe=zd.apply(this,[_t,St])).reduce(function(or,Lr){return or+Lr},0))>pt||zi){if(vi>pt){for(Ce=Bh.apply(this,[_t,oe,pt-(En+We),pt]),fn.push(Ce.shift()),fn=[Ce.pop()];Ce.length;)gn.push([Ce.shift()]);vi=oe.slice(_t.length-(fn[0]?fn[0].length:0)).reduce(function(or,Lr){return or+Lr},0)}else fn=[_t];gn.push(fn),En=vi+Le,We=wi}else fn.push(_t),En+=We+vi,We=wi}return Je=Le?function(or,Lr){return(Lr?Hn:"")+or.join(" ")}:function(or){return or.join(" ")},gn.map(Je)},hl.splitTextToSize=function(Bt,pt,St){var _t,oe=(St=St||{}).fontSize||this.internal.getFontSize(),qt=function(fn){if(fn.widths&&fn.kerning)return{widths:fn.widths,kerning:fn.kerning};var gn=this.internal.getFont(fn.fontName,fn.fontStyle);return gn.metadata.Unicode?{widths:gn.metadata.Unicode.widths||{0:1},kerning:gn.metadata.Unicode.kerning||{}}:{font:gn.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,St);_t=Array.isArray(Bt)?Bt:String(Bt).split(/\r?\n/);var me=1*this.internal.scaleFactor*pt/oe;qt.textIndent=St.textIndent?1*St.textIndent*this.internal.scaleFactor/oe:0,qt.lineIndent=St.lineIndent;var Ce,Le,Je=[];for(Ce=0,Le=_t.length;Ce<Le;Ce++)Je=Je.concat(Ro.apply(this,[_t[Ce],me,qt]));return Je},function(Bt){Bt.__fontmetrics__=Bt.__fontmetrics__||{};for(var pt="klmnopqrstuvwxyz",St={},_t={},oe=0;oe<pt.length;oe++)St[pt[oe]]="0123456789abcdef"[oe],_t["0123456789abcdef"[oe]]=pt[oe];var qt=function(gn){return"0x"+parseInt(gn,10).toString(16)},me=Bt.__fontmetrics__.compress=function(gn){var En,We,vi,ei,wi=["{"];for(var Hn in gn){if(En=gn[Hn],isNaN(parseInt(Hn,10))?We="'"+Hn+"'":(Hn=parseInt(Hn,10),We=(We=qt(Hn).slice(2)).slice(0,-1)+_t[We.slice(-1)]),typeof En=="number")En<0?(vi=qt(En).slice(3),ei="-"):(vi=qt(En).slice(2),ei=""),vi=ei+vi.slice(0,-1)+_t[vi.slice(-1)];else{if((0,Lt.Z)(En)!=="object")throw new Error("Don't know what to do with value type "+(0,Lt.Z)(En)+".");vi=me(En)}wi.push(We+vi)}return wi.push("}"),wi.join("")},Ce=Bt.__fontmetrics__.uncompress=function(gn){if(typeof gn!="string")throw new Error("Invalid argument passed to uncompress.");for(var En,We,vi,ei,wi={},Hn=1,gi=wi,zi=[],or="",Lr="",lo=gn.length-1,mr=1;mr<lo;mr+=1)(ei=gn[mr])=="'"?En?(vi=En.join(""),En=void 0):En=[]:En?En.push(ei):ei=="{"?(zi.push([gi,vi]),gi={},vi=void 0):ei=="}"?((We=zi.pop())[0][We[1]]=gi,vi=void 0,gi=We[0]):ei=="-"?Hn=-1:vi===void 0?St.hasOwnProperty(ei)?(or+=St[ei],vi=parseInt(or,16)*Hn,Hn=1,or=""):or+=ei:St.hasOwnProperty(ei)?(Lr+=St[ei],gi[vi]=parseInt(Lr,16)*Hn,Hn=1,vi=void 0,Lr=""):Lr+=ei;return wi},Le={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Ce("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Je={Unicode:{Courier:Le,"Courier-Bold":Le,"Courier-BoldOblique":Le,"Courier-Oblique":Le,Helvetica:Le,"Helvetica-Bold":Le,"Helvetica-BoldOblique":Le,"Helvetica-Oblique":Le,"Times-Roman":Le,"Times-Bold":Le,"Times-BoldItalic":Le,"Times-Italic":Le}},fn={Unicode:{"Courier-Oblique":Ce("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Ce("{'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":Ce("{'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:Ce("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Ce("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Ce("{'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:Ce("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Ce("{'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":Ce("{'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:Ce("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Ce("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Ce("{'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":Ce("{'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":Ce("{'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}}}")}};Bt.events.push(["addFont",function(gn){var En=gn.font,We=fn.Unicode[En.postScriptName];We&&(En.metadata.Unicode={},En.metadata.Unicode.widths=We.widths,En.metadata.Unicode.kerning=We.kerning);var vi=Je.Unicode[En.postScriptName];vi&&(En.metadata.Unicode.encoding=vi,En.encoding=vi.codePages[0])}])}(Ho.API),function(Bt){var pt=function(St){for(var _t=St.length,oe=new Uint8Array(_t),qt=0;qt<_t;qt++)oe[qt]=St.charCodeAt(qt);return oe};Bt.API.events.push(["addFont",function(St){var _t=void 0,oe=St.font,qt=St.instance;if(!oe.isStandardFont){if(qt===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+oe.postScriptName+"').");if(typeof(_t=qt.existsFileInVFS(oe.postScriptName)===!1?qt.loadFile(oe.postScriptName):qt.getFileFromVFS(oe.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+oe.postScriptName+"').");(function(me,Ce){Ce=/^\x00\x01\x00\x00/.test(Ce)?pt(Ce):pt(fs(Ce)),me.metadata=Bt.API.TTFFont.open(Ce),me.metadata.Unicode=me.metadata.Unicode||{encoding:{},kerning:{},widths:[]},me.metadata.glyIdsUsed=[0]})(oe,_t)}}])}(Ho),function(Bt){function pt(){return(kr.canvg?Promise.resolve(kr.canvg):bt.e(6949).then(bt.bind(bt,46949))).catch(function(St){return Promise.reject(new Error("Could not load canvg: "+St))}).then(function(St){return St.default?St.default:St})}Ho.API.addSvgAsImage=function(St,_t,oe,qt,me,Ce,Le,Je){if(isNaN(_t)||isNaN(oe))throw Po.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(qt)||isNaN(me))throw Po.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var fn=document.createElement("canvas");fn.width=qt,fn.height=me;var gn=fn.getContext("2d");gn.fillStyle="#fff",gn.fillRect(0,0,fn.width,fn.height);var En={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},We=this;return pt().then(function(vi){return vi.fromString(gn,St,En)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(vi){return vi.render(En)}).then(function(){We.addImage(fn.toDataURL("image/jpeg",1),_t,oe,qt,me,Le,Je)})}}(),Ho.API.putTotalPages=function(Bt){var pt,St=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(pt=new RegExp(Bt,"g"),St=this.internal.getNumberOfPages()):(pt=new RegExp(this.pdfEscape16(Bt,this.internal.getFont()),"g"),St=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var _t=1;_t<=this.internal.getNumberOfPages();_t++)for(var oe=0;oe<this.internal.pages[_t].length;oe++)this.internal.pages[_t][oe]=this.internal.pages[_t][oe].replace(pt,St);return this},Ho.API.viewerPreferences=function(Bt,pt){var St;Bt=Bt||{},pt=pt||!1;var _t,oe,qt,me={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}},Ce=Object.keys(me),Le=[],Je=0,fn=0,gn=0;function En(vi,ei){var wi,Hn=!1;for(wi=0;wi<vi.length;wi+=1)vi[wi]===ei&&(Hn=!0);return Hn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(me)),this.internal.viewerpreferences.isSubscribed=!1),St=this.internal.viewerpreferences.configuration,Bt==="reset"||pt===!0){var We=Ce.length;for(gn=0;gn<We;gn+=1)St[Ce[gn]].value=St[Ce[gn]].defaultValue,St[Ce[gn]].explicitSet=!1}if((0,Lt.Z)(Bt)==="object"){for(oe in Bt)if(qt=Bt[oe],En(Ce,oe)&&qt!==void 0){if(St[oe].type==="boolean"&&typeof qt=="boolean")St[oe].value=qt;else if(St[oe].type==="name"&&En(St[oe].valueSet,qt))St[oe].value=qt;else if(St[oe].type==="integer"&&Number.isInteger(qt))St[oe].value=qt;else if(St[oe].type==="array"){for(Je=0;Je<qt.length;Je+=1)if(_t=!0,qt[Je].length===1&&typeof qt[Je][0]=="number")Le.push(String(qt[Je]-1));else if(qt[Je].length>1){for(fn=0;fn<qt[Je].length;fn+=1)typeof qt[Je][fn]!="number"&&(_t=!1);_t===!0&&Le.push([qt[Je][0]-1,qt[Je][1]-1].join(" "))}St[oe].value="["+Le.join(" ")+"]"}else St[oe].value=St[oe].defaultValue;St[oe].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var vi,ei=[];for(vi in St)St[vi].explicitSet===!0&&(St[vi].type==="name"?ei.push("/"+vi+" /"+St[vi].value):ei.push("/"+vi+" "+St[vi].value));ei.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+ei.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=St,this},function(Bt){var pt=function(){var _t='<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>',oe=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),qt=unescape(encodeURIComponent(_t)),me=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Ce=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Le=unescape(encodeURIComponent("</x:xmpmeta>")),Je=qt.length+me.length+Ce.length+oe.length+Le.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Je+" >>"),this.internal.write("stream"),this.internal.write(oe+qt+me+Ce+Le),this.internal.write("endstream"),this.internal.write("endobj")},St=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Bt.addMetadata=function(_t,oe){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:_t,namespaceuri:oe||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",St),this.internal.events.subscribe("postPutResources",pt)),this}}(Ho.API),function(Bt){var pt=Bt.API,St=pt.pdfEscape16=function(qt,me){for(var Ce,Le=me.metadata.Unicode.widths,Je=["","0","00","000","0000"],fn=[""],gn=0,En=qt.length;gn<En;++gn){if(Ce=me.metadata.characterToGlyph(qt.charCodeAt(gn)),me.metadata.glyIdsUsed.push(Ce),me.metadata.toUnicode[Ce]=qt.charCodeAt(gn),Le.indexOf(Ce)==-1&&(Le.push(Ce),Le.push([parseInt(me.metadata.widthOfGlyph(Ce),10)])),Ce=="0")return fn.join("");Ce=Ce.toString(16),fn.push(Je[4-Ce.length],Ce)}return fn.join("")},_t=function(qt){var me,Ce,Le,Je,fn,gn,En;for(fn=`/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`,Le=[],gn=0,En=(Ce=Object.keys(qt).sort(function(We,vi){return We-vi})).length;gn<En;gn++)me=Ce[gn],Le.length>=100&&(fn+=`
`+Le.length+` beginbfchar
`+Le.join(`
`)+`
endbfchar`,Le=[]),qt[me]!==void 0&&qt[me]!==null&&typeof qt[me].toString=="function"&&(Je=("0000"+qt[me].toString(16)).slice(-4),me=("0000"+(+me).toString(16)).slice(-4),Le.push("<"+me+"><"+Je+">"));return Le.length&&(fn+=`
`+Le.length+` beginbfchar
`+Le.join(`
`)+`
endbfchar
`),fn+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};pt.events.push(["putFont",function(qt){(function(me){var Ce=me.font,Le=me.out,Je=me.newObject,fn=me.putStream;if(Ce.metadata instanceof Bt.API.TTFFont&&Ce.encoding==="Identity-H"){for(var gn=Ce.metadata.Unicode.widths,En=Ce.metadata.subset.encode(Ce.metadata.glyIdsUsed,1),We="",vi=0;vi<En.length;vi++)We+=String.fromCharCode(En[vi]);var ei=Je();fn({data:We,addLength1:!0,objectId:ei}),Le("endobj");var wi=Je();fn({data:_t(Ce.metadata.toUnicode),addLength1:!0,objectId:wi}),Le("endobj");var Hn=Je();Le("<<"),Le("/Type /FontDescriptor"),Le("/FontName /"+Ko(Ce.fontName)),Le("/FontFile2 "+ei+" 0 R"),Le("/FontBBox "+Bt.API.PDFObject.convert(Ce.metadata.bbox)),Le("/Flags "+Ce.metadata.flags),Le("/StemV "+Ce.metadata.stemV),Le("/ItalicAngle "+Ce.metadata.italicAngle),Le("/Ascent "+Ce.metadata.ascender),Le("/Descent "+Ce.metadata.decender),Le("/CapHeight "+Ce.metadata.capHeight),Le(">>"),Le("endobj");var gi=Je();Le("<<"),Le("/Type /Font"),Le("/BaseFont /"+Ko(Ce.fontName)),Le("/FontDescriptor "+Hn+" 0 R"),Le("/W "+Bt.API.PDFObject.convert(gn)),Le("/CIDToGIDMap /Identity"),Le("/DW 1000"),Le("/Subtype /CIDFontType2"),Le("/CIDSystemInfo"),Le("<<"),Le("/Supplement 0"),Le("/Registry (Adobe)"),Le("/Ordering ("+Ce.encoding+")"),Le(">>"),Le(">>"),Le("endobj"),Ce.objectNumber=Je(),Le("<<"),Le("/Type /Font"),Le("/Subtype /Type0"),Le("/ToUnicode "+wi+" 0 R"),Le("/BaseFont /"+Ko(Ce.fontName)),Le("/Encoding /"+Ce.encoding),Le("/DescendantFonts ["+gi+" 0 R]"),Le(">>"),Le("endobj"),Ce.isAlreadyPutted=!0}})(qt)}]),pt.events.push(["putFont",function(qt){(function(me){var Ce=me.font,Le=me.out,Je=me.newObject,fn=me.putStream;if(Ce.metadata instanceof Bt.API.TTFFont&&Ce.encoding==="WinAnsiEncoding"){for(var gn=Ce.metadata.rawData,En="",We=0;We<gn.length;We++)En+=String.fromCharCode(gn[We]);var vi=Je();fn({data:En,addLength1:!0,objectId:vi}),Le("endobj");var ei=Je();fn({data:_t(Ce.metadata.toUnicode),addLength1:!0,objectId:ei}),Le("endobj");var wi=Je();Le("<<"),Le("/Descent "+Ce.metadata.decender),Le("/CapHeight "+Ce.metadata.capHeight),Le("/StemV "+Ce.metadata.stemV),Le("/Type /FontDescriptor"),Le("/FontFile2 "+vi+" 0 R"),Le("/Flags 96"),Le("/FontBBox "+Bt.API.PDFObject.convert(Ce.metadata.bbox)),Le("/FontName /"+Ko(Ce.fontName)),Le("/ItalicAngle "+Ce.metadata.italicAngle),Le("/Ascent "+Ce.metadata.ascender),Le(">>"),Le("endobj"),Ce.objectNumber=Je();for(var Hn=0;Hn<Ce.metadata.hmtx.widths.length;Hn++)Ce.metadata.hmtx.widths[Hn]=parseInt(Ce.metadata.hmtx.widths[Hn]*(1e3/Ce.metadata.head.unitsPerEm));Le("<</Subtype/TrueType/Type/Font/ToUnicode "+ei+" 0 R/BaseFont/"+Ko(Ce.fontName)+"/FontDescriptor "+wi+" 0 R/Encoding/"+Ce.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Bt.API.PDFObject.convert(Ce.metadata.hmtx.widths)+">>"),Le("endobj"),Ce.isAlreadyPutted=!0}})(qt)}]);var oe=function(qt){var me,Ce=qt.text||"",Le=qt.x,Je=qt.y,fn=qt.options||{},gn=qt.mutex||{},En=gn.pdfEscape,We=gn.activeFontKey,vi=gn.fonts,ei=We,wi="",Hn=0,gi="",zi=vi[ei].encoding;if(vi[ei].encoding!=="Identity-H")return{text:Ce,x:Le,y:Je,options:fn,mutex:gn};for(gi=Ce,ei=We,Array.isArray(Ce)&&(gi=Ce[0]),Hn=0;Hn<gi.length;Hn+=1)vi[ei].metadata.hasOwnProperty("cmap")&&(me=vi[ei].metadata.cmap.unicode.codeMap[gi[Hn].charCodeAt(0)]),me||gi[Hn].charCodeAt(0)<256&&vi[ei].metadata.hasOwnProperty("Unicode")?wi+=gi[Hn]:wi+="";var or="";return parseInt(ei.slice(1))<14||zi==="WinAnsiEncoding"?or=En(wi,ei).split("").map(function(Lr){return Lr.charCodeAt(0).toString(16)}).join(""):zi==="Identity-H"&&(or=St(wi,vi[ei])),gn.isHex=!0,{text:or,x:Le,y:Je,options:fn,mutex:gn}};pt.events.push(["postProcessText",function(qt){var me=qt.text||"",Ce=[],Le={text:me,x:qt.x,y:qt.y,options:qt.options,mutex:qt.mutex};if(Array.isArray(me)){var Je=0;for(Je=0;Je<me.length;Je+=1)Array.isArray(me[Je])&&me[Je].length===3?Ce.push([oe(Object.assign({},Le,{text:me[Je][0]})).text,me[Je][1],me[Je][2]]):Ce.push(oe(Object.assign({},Le,{text:me[Je]})).text);qt.text=Ce}else qt.text=oe(Object.assign({},Le,{text:me})).text}])}(Ho),function(Bt){var pt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Bt.existsFileInVFS=function(St){return pt.call(this),this.internal.vFS[St]!==void 0},Bt.addFileToVFS=function(St,_t){return pt.call(this),this.internal.vFS[St]=_t,this},Bt.getFileFromVFS=function(St){return pt.call(this),this.internal.vFS[St]!==void 0?this.internal.vFS[St]:null}}(Ho.API),function(Bt){Bt.__bidiEngine__=Bt.prototype.__bidiEngine__=function(_t){var oe,qt,me,Ce,Le,Je,fn,gn=pt,En=[[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]],We=[[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]],vi={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},ei={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},wi=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],Hn=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)$/),gi=!1,zi=0;this.__bidiEngine__={};var or=function(qn){var oi=qn.charCodeAt(),ye=oi>>8,we=ei[ye];return we!==void 0?gn[256*we+(255&oi)]:ye===252||ye===253?"AL":Hn.test(ye)?"L":ye===8?"R":"N"},Lr=function(qn){for(var oi,ye=0;ye<qn.length;ye++){if((oi=or(qn.charAt(ye)))==="L")return!1;if(oi==="R")return!0}return!1},lo=function(qn,oi,ye,we){var Ye,tn,yn,on,Dn=oi[we];switch(Dn){case"L":case"R":gi=!1;break;case"N":case"AN":break;case"EN":gi&&(Dn="AN");break;case"AL":gi=!0,Dn="R";break;case"WS":Dn="N";break;case"CS":we<1||we+1>=oi.length||(Ye=ye[we-1])!=="EN"&&Ye!=="AN"||(tn=oi[we+1])!=="EN"&&tn!=="AN"?Dn="N":gi&&(tn="AN"),Dn=tn===Ye?tn:"N";break;case"ES":Dn=(Ye=we>0?ye[we-1]:"B")==="EN"&&we+1<oi.length&&oi[we+1]==="EN"?"EN":"N";break;case"ET":if(we>0&&ye[we-1]==="EN"){Dn="EN";break}if(gi){Dn="N";break}for(yn=we+1,on=oi.length;yn<on&&oi[yn]==="ET";)yn++;Dn=yn<on&&oi[yn]==="EN"?"EN":"N";break;case"NSM":if(me&&!Ce){for(on=oi.length,yn=we+1;yn<on&&oi[yn]==="NSM";)yn++;if(yn<on){var Rn=qn[we],ti=Rn>=1425&&Rn<=2303||Rn===64286;if(Ye=oi[yn],ti&&(Ye==="R"||Ye==="AL")){Dn="R";break}}}Dn=we<1||(Ye=oi[we-1])==="B"?"N":ye[we-1];break;case"B":gi=!1,oe=!0,Dn=zi;break;case"S":qt=!0,Dn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":gi=!1;break;case"BN":Dn="N"}return Dn},mr=function(qn,oi,ye){var we=qn.split("");return ye&&Di(we,ye,{hiLevel:zi}),we.reverse(),oi&&oi.reverse(),we.join("")},Di=function(qn,oi,ye){var we,Ye,tn,yn,on,Dn=-1,Rn=qn.length,ti=0,ze=[],cn=zi?We:En,vn=[];for(gi=!1,oe=!1,qt=!1,Ye=0;Ye<Rn;Ye++)vn[Ye]=or(qn[Ye]);for(tn=0;tn<Rn;tn++){if(on=ti,ze[tn]=lo(qn,vn,ze,tn),we=240&(ti=cn[on][vi[ze[tn]]]),ti&=15,oi[tn]=yn=cn[ti][5],we>0)if(we===16){for(Ye=Dn;Ye<tn;Ye++)oi[Ye]=1;Dn=-1}else Dn=-1;if(cn[ti][6])Dn===-1&&(Dn=tn);else if(Dn>-1){for(Ye=Dn;Ye<tn;Ye++)oi[Ye]=yn;Dn=-1}vn[tn]==="B"&&(oi[tn]=0),ye.hiLevel|=yn}qt&&function(Gn,Yn,ri){for(var Fi=0;Fi<ri;Fi++)if(Gn[Fi]==="S"){Yn[Fi]=zi;for(var ci=Fi-1;ci>=0&&Gn[ci]==="WS";ci--)Yn[ci]=zi}}(vn,oi,Rn)},Cr=function(qn,oi,ye,we,Ye){if(!(Ye.hiLevel<qn)){if(qn===1&&zi===1&&!oe)return oi.reverse(),void(ye&&ye.reverse());for(var tn,yn,on,Dn,Rn=oi.length,ti=0;ti<Rn;){if(we[ti]>=qn){for(on=ti+1;on<Rn&&we[on]>=qn;)on++;for(Dn=ti,yn=on-1;Dn<yn;Dn++,yn--)tn=oi[Dn],oi[Dn]=oi[yn],oi[yn]=tn,ye&&(tn=ye[Dn],ye[Dn]=ye[yn],ye[yn]=tn);ti=on}ti++}}},Or=function(qn,oi,ye){var we=qn.split(""),Ye={hiLevel:zi};return ye||(ye=[]),Di(we,ye,Ye),function(tn,yn,on){if(on.hiLevel!==0&&fn)for(var Dn,Rn=0;Rn<tn.length;Rn++)yn[Rn]===1&&(Dn=wi.indexOf(tn[Rn]))>=0&&(tn[Rn]=wi[Dn+1])}(we,ye,Ye),Cr(2,we,oi,ye,Ye),Cr(1,we,oi,ye,Ye),we.join("")};return this.__bidiEngine__.doBidiReorder=function(qn,oi,ye){if(function(Ye,tn){if(tn)for(var yn=0;yn<Ye.length;yn++)tn[yn]=yn;Ce===void 0&&(Ce=Lr(Ye)),Je===void 0&&(Je=Lr(Ye))}(qn,oi),me||!Le||Je)if(me&&Le&&Ce^Je)zi=Ce?1:0,qn=mr(qn,oi,ye);else if(!me&&Le&&Je)zi=Ce?1:0,qn=Or(qn,oi,ye),qn=mr(qn,oi);else if(!me||Ce||Le||Je){if(me&&!Le&&Ce^Je)qn=mr(qn,oi),Ce?(zi=0,qn=Or(qn,oi,ye)):(zi=1,qn=Or(qn,oi,ye),qn=mr(qn,oi));else if(me&&Ce&&!Le&&Je)zi=1,qn=Or(qn,oi,ye),qn=mr(qn,oi);else if(!me&&!Le&&Ce^Je){var we=fn;Ce?(zi=1,qn=Or(qn,oi,ye),zi=0,fn=!1,qn=Or(qn,oi,ye),fn=we):(zi=0,qn=Or(qn,oi,ye),qn=mr(qn,oi),zi=1,fn=!1,qn=Or(qn,oi,ye),fn=we,qn=mr(qn,oi))}}else zi=0,qn=Or(qn,oi,ye);else zi=Ce?1:0,qn=Or(qn,oi,ye);return qn},this.__bidiEngine__.setOptions=function(qn){qn&&(me=qn.isInputVisual,Le=qn.isOutputVisual,Ce=qn.isInputRtl,Je=qn.isOutputRtl,fn=qn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(_t),this.__bidiEngine__};var pt=["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"],St=new Bt.__bidiEngine__({isInputVisual:!0});Bt.API.events.push(["postProcessText",function(_t){var oe=_t.text,qt=(_t.x,_t.y,_t.options||{}),me=(_t.mutex,qt.lang,[]);if(qt.isInputVisual=typeof qt.isInputVisual!="boolean"||qt.isInputVisual,St.setOptions(qt),Object.prototype.toString.call(oe)==="[object Array]"){var Ce=0;for(me=[],Ce=0;Ce<oe.length;Ce+=1)Object.prototype.toString.call(oe[Ce])==="[object Array]"?me.push([St.doBidiReorder(oe[Ce][0]),oe[Ce][1],oe[Ce][2]]):me.push([St.doBidiReorder(oe[Ce])]);_t.text=me}else _t.text=St.doBidiReorder(oe);St.setOptions({isInputVisual:!0})}])}(Ho),Ho.API.TTFFont=function(){function Bt(pt){var St;if(this.rawData=pt,St=this.contents=new Ph(pt),this.contents.pos=4,St.readString(4)==="ttcf")throw new Error("TTCF not supported.");St.pos=0,this.parse(),this.subset=new Ql(this),this.registerTTF()}return Bt.open=function(pt){return new Bt(pt)},Bt.prototype.parse=function(){return this.directory=new zA(this.contents),this.head=new ys(this),this.name=new xl(this),this.cmap=new Xu(this),this.toUnicode={},this.hhea=new Ll(this),this.maxp=new zh(this),this.hmtx=new Cu(this),this.post=new gu(this),this.os2=new ra(this),this.loca=new fl(this),this.glyf=new La(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]},Bt.prototype.registerTTF=function(){var pt,St,_t,oe,qt;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var me,Ce,Le,Je;for(Je=[],me=0,Ce=(Le=this.bbox).length;me<Ce;me++)pt=Le[me],Je.push(Math.round(pt*this.scaleFactor));return Je}.call(this),this.stemV=0,this.post.exists?(_t=255&(oe=this.post.italic_angle),32768&(St=oe>>16)&&(St=-(1+(65535^St))),this.italicAngle=+(St+"."+_t)):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=(qt=this.familyClass)===1||qt===2||qt===3||qt===4||qt===5||qt===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")},Bt.prototype.characterToGlyph=function(pt){var St;return((St=this.cmap.unicode)!=null?St.codeMap[pt]:void 0)||0},Bt.prototype.widthOfGlyph=function(pt){var St;return St=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(pt).advance*St},Bt.prototype.widthOfString=function(pt,St,_t){var oe,qt,me,Ce;for(me=0,qt=0,Ce=(pt=""+pt).length;0<=Ce?qt<Ce:qt>Ce;qt=0<=Ce?++qt:--qt)oe=pt.charCodeAt(qt),me+=this.widthOfGlyph(this.characterToGlyph(oe))+_t*(1e3/St)||0;return me*(St/1e3)},Bt.prototype.lineHeight=function(pt,St){var _t;return St==null&&(St=!1),_t=St?this.lineGap:0,(this.ascender+_t-this.decender)/1e3*pt},Bt}();var Wu,Ph=function(){function Bt(pt){this.data=pt!=null?pt:[],this.pos=0,this.length=this.data.length}return Bt.prototype.readByte=function(){return this.data[this.pos++]},Bt.prototype.writeByte=function(pt){return this.data[this.pos++]=pt},Bt.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Bt.prototype.writeUInt32=function(pt){return this.writeByte(pt>>>24&255),this.writeByte(pt>>16&255),this.writeByte(pt>>8&255),this.writeByte(255&pt)},Bt.prototype.readInt32=function(){var pt;return(pt=this.readUInt32())>=2147483648?pt-4294967296:pt},Bt.prototype.writeInt32=function(pt){return pt<0&&(pt+=4294967296),this.writeUInt32(pt)},Bt.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Bt.prototype.writeUInt16=function(pt){return this.writeByte(pt>>8&255),this.writeByte(255&pt)},Bt.prototype.readInt16=function(){var pt;return(pt=this.readUInt16())>=32768?pt-65536:pt},Bt.prototype.writeInt16=function(pt){return pt<0&&(pt+=65536),this.writeUInt16(pt)},Bt.prototype.readString=function(pt){var St,_t;for(_t=[],St=0;0<=pt?St<pt:St>pt;St=0<=pt?++St:--St)_t[St]=String.fromCharCode(this.readByte());return _t.join("")},Bt.prototype.writeString=function(pt){var St,_t,oe;for(oe=[],St=0,_t=pt.length;0<=_t?St<_t:St>_t;St=0<=_t?++St:--St)oe.push(this.writeByte(pt.charCodeAt(St)));return oe},Bt.prototype.readShort=function(){return this.readInt16()},Bt.prototype.writeShort=function(pt){return this.writeInt16(pt)},Bt.prototype.readLongLong=function(){var pt,St,_t,oe,qt,me,Ce,Le;return pt=this.readByte(),St=this.readByte(),_t=this.readByte(),oe=this.readByte(),qt=this.readByte(),me=this.readByte(),Ce=this.readByte(),Le=this.readByte(),128&pt?-1*(72057594037927940*(255^pt)+281474976710656*(255^St)+1099511627776*(255^_t)+4294967296*(255^oe)+16777216*(255^qt)+65536*(255^me)+256*(255^Ce)+(255^Le)+1):72057594037927940*pt+281474976710656*St+1099511627776*_t+4294967296*oe+16777216*qt+65536*me+256*Ce+Le},Bt.prototype.writeLongLong=function(pt){var St,_t;return St=Math.floor(pt/4294967296),_t=4294967295&pt,this.writeByte(St>>24&255),this.writeByte(St>>16&255),this.writeByte(St>>8&255),this.writeByte(255&St),this.writeByte(_t>>24&255),this.writeByte(_t>>16&255),this.writeByte(_t>>8&255),this.writeByte(255&_t)},Bt.prototype.readInt=function(){return this.readInt32()},Bt.prototype.writeInt=function(pt){return this.writeInt32(pt)},Bt.prototype.read=function(pt){var St,_t;for(St=[],_t=0;0<=pt?_t<pt:_t>pt;_t=0<=pt?++_t:--_t)St.push(this.readByte());return St},Bt.prototype.write=function(pt){var St,_t,oe,qt;for(qt=[],_t=0,oe=pt.length;_t<oe;_t++)St=pt[_t],qt.push(this.writeByte(St));return qt},Bt}(),zA=function(){var Bt;function pt(St){var _t,oe,qt;for(this.scalarType=St.readInt(),this.tableCount=St.readShort(),this.searchRange=St.readShort(),this.entrySelector=St.readShort(),this.rangeShift=St.readShort(),this.tables={},oe=0,qt=this.tableCount;0<=qt?oe<qt:oe>qt;oe=0<=qt?++oe:--oe)_t={tag:St.readString(4),checksum:St.readInt(),offset:St.readInt(),length:St.readInt()},this.tables[_t.tag]=_t}return pt.prototype.encode=function(St){var _t,oe,qt,me,Ce,Le,Je,fn,gn,En,We,vi,ei;for(ei in We=Object.keys(St).length,Le=Math.log(2),gn=16*Math.floor(Math.log(We)/Le),me=Math.floor(gn/Le),fn=16*We-gn,(oe=new Ph).writeInt(this.scalarType),oe.writeShort(We),oe.writeShort(gn),oe.writeShort(me),oe.writeShort(fn),qt=16*We,Je=oe.pos+qt,Ce=null,vi=[],St)for(En=St[ei],oe.writeString(ei),oe.writeInt(Bt(En)),oe.writeInt(Je),oe.writeInt(En.length),vi=vi.concat(En),ei==="head"&&(Ce=Je),Je+=En.length;Je%4;)vi.push(0),Je++;return oe.write(vi),_t=2981146554-Bt(oe.data),oe.pos=Ce+8,oe.writeUInt32(_t),oe.data},Bt=function(St){var _t,oe,qt,me;for(St=wd.call(St);St.length%4;)St.push(0);for(qt=new Ph(St),oe=0,_t=0,me=St.length;_t<me;_t=_t+=4)oe+=qt.readUInt32();return 4294967295&oe},pt}(),ed={}.hasOwnProperty,nl=function(Bt,pt){for(var St in pt)ed.call(pt,St)&&(Bt[St]=pt[St]);function _t(){this.constructor=Bt}return _t.prototype=pt.prototype,Bt.prototype=new _t,Bt.__super__=pt.prototype,Bt};Wu=function(){function Bt(pt){var St;this.file=pt,St=this.file.directory.tables[this.tag],this.exists=!!St,St&&(this.offset=St.offset,this.length=St.length,this.parse(this.file.contents))}return Bt.prototype.parse=function(){},Bt.prototype.encode=function(){},Bt.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Bt}();var ys=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="head",pt.prototype.parse=function(St){return St.pos=this.offset,this.version=St.readInt(),this.revision=St.readInt(),this.checkSumAdjustment=St.readInt(),this.magicNumber=St.readInt(),this.flags=St.readShort(),this.unitsPerEm=St.readShort(),this.created=St.readLongLong(),this.modified=St.readLongLong(),this.xMin=St.readShort(),this.yMin=St.readShort(),this.xMax=St.readShort(),this.yMax=St.readShort(),this.macStyle=St.readShort(),this.lowestRecPPEM=St.readShort(),this.fontDirectionHint=St.readShort(),this.indexToLocFormat=St.readShort(),this.glyphDataFormat=St.readShort()},pt.prototype.encode=function(St){var _t;return(_t=new Ph).writeInt(this.version),_t.writeInt(this.revision),_t.writeInt(this.checkSumAdjustment),_t.writeInt(this.magicNumber),_t.writeShort(this.flags),_t.writeShort(this.unitsPerEm),_t.writeLongLong(this.created),_t.writeLongLong(this.modified),_t.writeShort(this.xMin),_t.writeShort(this.yMin),_t.writeShort(this.xMax),_t.writeShort(this.yMax),_t.writeShort(this.macStyle),_t.writeShort(this.lowestRecPPEM),_t.writeShort(this.fontDirectionHint),_t.writeShort(St),_t.writeShort(this.glyphDataFormat),_t.data},pt}(),oh=function(){function Bt(pt,St){var _t,oe,qt,me,Ce,Le,Je,fn,gn,En,We,vi,ei,wi,Hn,gi,zi;switch(this.platformID=pt.readUInt16(),this.encodingID=pt.readShort(),this.offset=St+pt.readInt(),gn=pt.pos,pt.pos=this.offset,this.format=pt.readUInt16(),this.length=pt.readUInt16(),this.language=pt.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(Le=0;Le<256;++Le)this.codeMap[Le]=pt.readByte();break;case 4:for(We=pt.readUInt16(),En=We/2,pt.pos+=6,qt=function(){var or,Lr;for(Lr=[],Le=or=0;0<=En?or<En:or>En;Le=0<=En?++or:--or)Lr.push(pt.readUInt16());return Lr}(),pt.pos+=2,ei=function(){var or,Lr;for(Lr=[],Le=or=0;0<=En?or<En:or>En;Le=0<=En?++or:--or)Lr.push(pt.readUInt16());return Lr}(),Je=function(){var or,Lr;for(Lr=[],Le=or=0;0<=En?or<En:or>En;Le=0<=En?++or:--or)Lr.push(pt.readUInt16());return Lr}(),fn=function(){var or,Lr;for(Lr=[],Le=or=0;0<=En?or<En:or>En;Le=0<=En?++or:--or)Lr.push(pt.readUInt16());return Lr}(),oe=(this.length-pt.pos+this.offset)/2,Ce=function(){var or,Lr;for(Lr=[],Le=or=0;0<=oe?or<oe:or>oe;Le=0<=oe?++or:--or)Lr.push(pt.readUInt16());return Lr}(),Le=Hn=0,zi=qt.length;Hn<zi;Le=++Hn)for(wi=qt[Le],_t=gi=vi=ei[Le];vi<=wi?gi<=wi:gi>=wi;_t=vi<=wi?++gi:--gi)fn[Le]===0?me=_t+Je[Le]:(me=Ce[fn[Le]/2+(_t-vi)-(En-Le)]||0)!==0&&(me+=Je[Le]),this.codeMap[_t]=65535&me}pt.pos=gn}return Bt.encode=function(pt,St){var _t,oe,qt,me,Ce,Le,Je,fn,gn,En,We,vi,ei,wi,Hn,gi,zi,or,Lr,lo,mr,Di,Cr,Or,qn,oi,ye,we,Ye,tn,yn,on,Dn,Rn,ti,ze,cn,vn,Gn,Yn,ri,Fi,ci,Ji,Yi,Ar;switch(we=new Ph,me=Object.keys(pt).sort(function(Fr,ro){return Fr-ro}),St){case"macroman":for(ei=0,wi=function(){var Fr=[];for(vi=0;vi<256;++vi)Fr.push(0);return Fr}(),gi={0:0},qt={},Ye=0,Dn=me.length;Ye<Dn;Ye++)gi[ci=pt[oe=me[Ye]]]==null&&(gi[ci]=++ei),qt[oe]={old:pt[oe],new:gi[pt[oe]]},wi[oe]=gi[pt[oe]];return we.writeUInt16(1),we.writeUInt16(0),we.writeUInt32(12),we.writeUInt16(0),we.writeUInt16(262),we.writeUInt16(0),we.write(wi),{charMap:qt,subtable:we.data,maxGlyphID:ei+1};case"unicode":for(oi=[],gn=[],zi=0,gi={},_t={},Hn=Je=null,tn=0,Rn=me.length;tn<Rn;tn++)gi[Lr=pt[oe=me[tn]]]==null&&(gi[Lr]=++zi),_t[oe]={old:Lr,new:gi[Lr]},Ce=gi[Lr]-oe,Hn!=null&&Ce===Je||(Hn&&gn.push(Hn),oi.push(oe),Je=Ce),Hn=oe;for(Hn&&gn.push(Hn),gn.push(65535),oi.push(65535),Or=2*(Cr=oi.length),Di=2*Math.pow(Math.log(Cr)/Math.LN2,2),En=Math.log(Di/2)/Math.LN2,mr=2*Cr-Di,Le=[],lo=[],We=[],vi=yn=0,ti=oi.length;yn<ti;vi=++yn){if(qn=oi[vi],fn=gn[vi],qn===65535){Le.push(0),lo.push(0);break}if(qn-(ye=_t[qn].new)>=32768)for(Le.push(0),lo.push(2*(We.length+Cr-vi)),oe=on=qn;qn<=fn?on<=fn:on>=fn;oe=qn<=fn?++on:--on)We.push(_t[oe].new);else Le.push(ye-qn),lo.push(0)}for(we.writeUInt16(3),we.writeUInt16(1),we.writeUInt32(12),we.writeUInt16(4),we.writeUInt16(16+8*Cr+2*We.length),we.writeUInt16(0),we.writeUInt16(Or),we.writeUInt16(Di),we.writeUInt16(En),we.writeUInt16(mr),ri=0,ze=gn.length;ri<ze;ri++)oe=gn[ri],we.writeUInt16(oe);for(we.writeUInt16(0),Fi=0,cn=oi.length;Fi<cn;Fi++)oe=oi[Fi],we.writeUInt16(oe);for(Ji=0,vn=Le.length;Ji<vn;Ji++)Ce=Le[Ji],we.writeUInt16(Ce);for(Yi=0,Gn=lo.length;Yi<Gn;Yi++)or=lo[Yi],we.writeUInt16(or);for(Ar=0,Yn=We.length;Ar<Yn;Ar++)ei=We[Ar],we.writeUInt16(ei);return{charMap:_t,subtable:we.data,maxGlyphID:zi+1}}},Bt}(),Xu=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="cmap",pt.prototype.parse=function(St){var _t,oe,qt;for(St.pos=this.offset,this.version=St.readUInt16(),qt=St.readUInt16(),this.tables=[],this.unicode=null,oe=0;0<=qt?oe<qt:oe>qt;oe=0<=qt?++oe:--oe)_t=new oh(St,this.offset),this.tables.push(_t),_t.isUnicode&&this.unicode==null&&(this.unicode=_t);return!0},pt.encode=function(St,_t){var oe,qt;return _t==null&&(_t="macroman"),oe=oh.encode(St,_t),(qt=new Ph).writeUInt16(0),qt.writeUInt16(1),oe.table=qt.data.concat(oe.subtable),oe},pt}(),Ll=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="hhea",pt.prototype.parse=function(St){return St.pos=this.offset,this.version=St.readInt(),this.ascender=St.readShort(),this.decender=St.readShort(),this.lineGap=St.readShort(),this.advanceWidthMax=St.readShort(),this.minLeftSideBearing=St.readShort(),this.minRightSideBearing=St.readShort(),this.xMaxExtent=St.readShort(),this.caretSlopeRise=St.readShort(),this.caretSlopeRun=St.readShort(),this.caretOffset=St.readShort(),St.pos+=8,this.metricDataFormat=St.readShort(),this.numberOfMetrics=St.readUInt16()},pt}(),ra=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="OS/2",pt.prototype.parse=function(St){if(St.pos=this.offset,this.version=St.readUInt16(),this.averageCharWidth=St.readShort(),this.weightClass=St.readUInt16(),this.widthClass=St.readUInt16(),this.type=St.readShort(),this.ySubscriptXSize=St.readShort(),this.ySubscriptYSize=St.readShort(),this.ySubscriptXOffset=St.readShort(),this.ySubscriptYOffset=St.readShort(),this.ySuperscriptXSize=St.readShort(),this.ySuperscriptYSize=St.readShort(),this.ySuperscriptXOffset=St.readShort(),this.ySuperscriptYOffset=St.readShort(),this.yStrikeoutSize=St.readShort(),this.yStrikeoutPosition=St.readShort(),this.familyClass=St.readShort(),this.panose=function(){var _t,oe;for(oe=[],_t=0;_t<10;++_t)oe.push(St.readByte());return oe}(),this.charRange=function(){var _t,oe;for(oe=[],_t=0;_t<4;++_t)oe.push(St.readInt());return oe}(),this.vendorID=St.readString(4),this.selection=St.readShort(),this.firstCharIndex=St.readShort(),this.lastCharIndex=St.readShort(),this.version>0&&(this.ascent=St.readShort(),this.descent=St.readShort(),this.lineGap=St.readShort(),this.winAscent=St.readShort(),this.winDescent=St.readShort(),this.codePageRange=function(){var _t,oe;for(oe=[],_t=0;_t<2;_t=++_t)oe.push(St.readInt());return oe}(),this.version>1))return this.xHeight=St.readShort(),this.capHeight=St.readShort(),this.defaultChar=St.readShort(),this.breakChar=St.readShort(),this.maxContext=St.readShort()},pt}(),gu=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="post",pt.prototype.parse=function(St){var _t,oe,qt;switch(St.pos=this.offset,this.format=St.readInt(),this.italicAngle=St.readInt(),this.underlinePosition=St.readShort(),this.underlineThickness=St.readShort(),this.isFixedPitch=St.readInt(),this.minMemType42=St.readInt(),this.maxMemType42=St.readInt(),this.minMemType1=St.readInt(),this.maxMemType1=St.readInt(),this.format){case 65536:break;case 131072:var me;for(oe=St.readUInt16(),this.glyphNameIndex=[],me=0;0<=oe?me<oe:me>oe;me=0<=oe?++me:--me)this.glyphNameIndex.push(St.readUInt16());for(this.names=[],qt=[];St.pos<this.offset+this.length;)_t=St.readByte(),qt.push(this.names.push(St.readString(_t)));return qt;case 151552:return oe=St.readUInt16(),this.offsets=St.read(oe);case 196608:break;case 262144:return this.map=function(){var Ce,Le,Je;for(Je=[],me=Ce=0,Le=this.file.maxp.numGlyphs;0<=Le?Ce<Le:Ce>Le;me=0<=Le?++Ce:--Ce)Je.push(St.readUInt32());return Je}.call(this)}},pt}(),bh=function(Bt,pt){this.raw=Bt,this.length=Bt.length,this.platformID=pt.platformID,this.encodingID=pt.encodingID,this.languageID=pt.languageID},xl=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="name",pt.prototype.parse=function(St){var _t,oe,qt,me,Ce,Le,Je,fn,gn,En,We;for(St.pos=this.offset,St.readShort(),_t=St.readShort(),Le=St.readShort(),oe=[],me=0;0<=_t?me<_t:me>_t;me=0<=_t?++me:--me)oe.push({platformID:St.readShort(),encodingID:St.readShort(),languageID:St.readShort(),nameID:St.readShort(),length:St.readShort(),offset:this.offset+Le+St.readShort()});for(Je={},me=gn=0,En=oe.length;gn<En;me=++gn)qt=oe[me],St.pos=qt.offset,fn=St.readString(qt.length),Ce=new bh(fn,qt),Je[We=qt.nameID]==null&&(Je[We]=[]),Je[qt.nameID].push(Ce);this.strings=Je,this.copyright=Je[0],this.fontFamily=Je[1],this.fontSubfamily=Je[2],this.uniqueSubfamily=Je[3],this.fontName=Je[4],this.version=Je[5];try{this.postscriptName=Je[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(vi){this.postscriptName=Je[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Je[7],this.manufacturer=Je[8],this.designer=Je[9],this.description=Je[10],this.vendorUrl=Je[11],this.designerUrl=Je[12],this.license=Je[13],this.licenseUrl=Je[14],this.preferredFamily=Je[15],this.preferredSubfamily=Je[17],this.compatibleFull=Je[18],this.sampleText=Je[19]},pt}(),zh=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="maxp",pt.prototype.parse=function(St){return St.pos=this.offset,this.version=St.readInt(),this.numGlyphs=St.readUInt16(),this.maxPoints=St.readUInt16(),this.maxContours=St.readUInt16(),this.maxCompositePoints=St.readUInt16(),this.maxComponentContours=St.readUInt16(),this.maxZones=St.readUInt16(),this.maxTwilightPoints=St.readUInt16(),this.maxStorage=St.readUInt16(),this.maxFunctionDefs=St.readUInt16(),this.maxInstructionDefs=St.readUInt16(),this.maxStackElements=St.readUInt16(),this.maxSizeOfInstructions=St.readUInt16(),this.maxComponentElements=St.readUInt16(),this.maxComponentDepth=St.readUInt16()},pt}(),Cu=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="hmtx",pt.prototype.parse=function(St){var _t,oe,qt,me,Ce,Le,Je;for(St.pos=this.offset,this.metrics=[],_t=0,Le=this.file.hhea.numberOfMetrics;0<=Le?_t<Le:_t>Le;_t=0<=Le?++_t:--_t)this.metrics.push({advance:St.readUInt16(),lsb:St.readInt16()});for(qt=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var fn,gn;for(gn=[],_t=fn=0;0<=qt?fn<qt:fn>qt;_t=0<=qt?++fn:--fn)gn.push(St.readInt16());return gn}(),this.widths=function(){var fn,gn,En,We;for(We=[],fn=0,gn=(En=this.metrics).length;fn<gn;fn++)me=En[fn],We.push(me.advance);return We}.call(this),oe=this.widths[this.widths.length-1],Je=[],_t=Ce=0;0<=qt?Ce<qt:Ce>qt;_t=0<=qt?++Ce:--Ce)Je.push(this.widths.push(oe));return Je},pt.prototype.forGlyph=function(St){return St in this.metrics?this.metrics[St]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[St-this.metrics.length]}},pt}(),wd=[].slice,La=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="glyf",pt.prototype.parse=function(){return this.cache={}},pt.prototype.glyphFor=function(St){var _t,oe,qt,me,Ce,Le,Je,fn,gn,En;return St in this.cache?this.cache[St]:(me=this.file.loca,_t=this.file.contents,oe=me.indexOf(St),(qt=me.lengthOf(St))===0?this.cache[St]=null:(_t.pos=this.offset+oe,Ce=(Le=new Ph(_t.read(qt))).readShort(),fn=Le.readShort(),En=Le.readShort(),Je=Le.readShort(),gn=Le.readShort(),this.cache[St]=Ce===-1?new Ma(Le,fn,En,Je,gn):new sh(Le,Ce,fn,En,Je,gn),this.cache[St]))},pt.prototype.encode=function(St,_t,oe){var qt,me,Ce,Le,Je;for(Ce=[],me=[],Le=0,Je=_t.length;Le<Je;Le++)qt=St[_t[Le]],me.push(Ce.length),qt&&(Ce=Ce.concat(qt.encode(oe)));return me.push(Ce.length),{table:Ce,offsets:me}},pt}(),sh=function(){function Bt(pt,St,_t,oe,qt,me){this.raw=pt,this.numberOfContours=St,this.xMin=_t,this.yMin=oe,this.xMax=qt,this.yMax=me,this.compound=!1}return Bt.prototype.encode=function(){return this.raw.data},Bt}(),Ma=function(){function Bt(pt,St,_t,oe,qt){var me,Ce;for(this.raw=pt,this.xMin=St,this.yMin=_t,this.xMax=oe,this.yMax=qt,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],me=this.raw;Ce=me.readShort(),this.glyphOffsets.push(me.pos),this.glyphIDs.push(me.readUInt16()),32&Ce;)me.pos+=1&Ce?4:2,128&Ce?me.pos+=8:64&Ce?me.pos+=4:8&Ce&&(me.pos+=2)}return Bt.prototype.encode=function(){var pt,St,_t;for(St=new Ph(wd.call(this.raw.data)),pt=0,_t=this.glyphIDs.length;pt<_t;++pt)St.pos=this.glyphOffsets[pt];return St.data},Bt}(),fl=function(Bt){function pt(){return pt.__super__.constructor.apply(this,arguments)}return nl(pt,Wu),pt.prototype.tag="loca",pt.prototype.parse=function(St){var _t,oe;return St.pos=this.offset,_t=this.file.head.indexToLocFormat,this.offsets=_t===0?function(){var qt,me;for(me=[],oe=0,qt=this.length;oe<qt;oe+=2)me.push(2*St.readUInt16());return me}.call(this):function(){var qt,me;for(me=[],oe=0,qt=this.length;oe<qt;oe+=4)me.push(St.readUInt32());return me}.call(this)},pt.prototype.indexOf=function(St){return this.offsets[St]},pt.prototype.lengthOf=function(St){return this.offsets[St+1]-this.offsets[St]},pt.prototype.encode=function(St,_t){for(var oe=new Uint32Array(this.offsets.length),qt=0,me=0,Ce=0;Ce<oe.length;++Ce)if(oe[Ce]=qt,me<_t.length&&_t[me]==Ce){++me,oe[Ce]=qt;var Le=this.offsets[Ce],Je=this.offsets[Ce+1]-Le;Je>0&&(qt+=Je)}for(var fn=new Array(4*oe.length),gn=0;gn<oe.length;++gn)fn[4*gn+3]=255&oe[gn],fn[4*gn+2]=(65280&oe[gn])>>8,fn[4*gn+1]=(16711680&oe[gn])>>16,fn[4*gn]=(4278190080&oe[gn])>>24;return fn},pt}(),Ql=function(){function Bt(pt){this.font=pt,this.subset={},this.unicodes={},this.next=33}return Bt.prototype.generateCmap=function(){var pt,St,_t,oe,qt;for(St in oe=this.font.cmap.tables[0].codeMap,pt={},qt=this.subset)_t=qt[St],pt[St]=oe[_t];return pt},Bt.prototype.glyphsFor=function(pt){var St,_t,oe,qt,me,Ce,Le;for(oe={},me=0,Ce=pt.length;me<Ce;me++)oe[qt=pt[me]]=this.font.glyf.glyphFor(qt);for(qt in St=[],oe)(_t=oe[qt])!=null&&_t.compound&&St.push.apply(St,_t.glyphIDs);if(St.length>0)for(qt in Le=this.glyphsFor(St))_t=Le[qt],oe[qt]=_t;return oe},Bt.prototype.encode=function(pt,St){var _t,oe,qt,me,Ce,Le,Je,fn,gn,En,We,vi,ei,wi,Hn;for(oe in _t=Xu.encode(this.generateCmap(),"unicode"),me=this.glyphsFor(pt),We={0:0},Hn=_t.charMap)We[(Le=Hn[oe]).old]=Le.new;for(vi in En=_t.maxGlyphID,me)vi in We||(We[vi]=En++);return fn=function(gi){var zi,or;for(zi in or={},gi)or[gi[zi]]=zi;return or}(We),gn=Object.keys(fn).sort(function(gi,zi){return gi-zi}),ei=function(){var gi,zi,or;for(or=[],gi=0,zi=gn.length;gi<zi;gi++)Ce=gn[gi],or.push(fn[Ce]);return or}(),qt=this.font.glyf.encode(me,ei,We),Je=this.font.loca.encode(qt.offsets,ei),wi={cmap:this.font.cmap.raw(),glyf:qt.table,loca:Je,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(St)},this.font.os2.exists&&(wi["OS/2"]=this.font.os2.raw()),this.font.directory.encode(wi)},Bt}();Ho.API.PDFObject=function(){var Bt;function pt(){}return Bt=function(St,_t){return(Array(_t+1).join("0")+St).slice(-_t)},pt.convert=function(St){var _t,oe,qt,me;if(Array.isArray(St))return"["+function(){var Ce,Le,Je;for(Je=[],Ce=0,Le=St.length;Ce<Le;Ce++)_t=St[Ce],Je.push(pt.convert(_t));return Je}().join(" ")+"]";if(typeof St=="string")return"/"+St;if(St!=null&&St.isString)return"("+St+")";if(St instanceof Date)return"(D:"+Bt(St.getUTCFullYear(),4)+Bt(St.getUTCMonth(),2)+Bt(St.getUTCDate(),2)+Bt(St.getUTCHours(),2)+Bt(St.getUTCMinutes(),2)+Bt(St.getUTCSeconds(),2)+"Z)";if({}.toString.call(St)==="[object Object]"){for(oe in qt=["<<"],St)me=St[oe],qt.push("/"+oe+" "+pt.convert(me));return qt.push(">>"),qt.join(`
`)}return""+St},pt}();var Jl=Ho},86129:function(di,Pn,bt){var Lt=bt(19208).lW,ge=bt(97671);(function(se){di.exports=se()})(function(){return function se(De,re,le){function Et(Ct,Wt){if(!re[Ct]){if(!De[Ct]){var Gt=void 0;if(!Wt&&Gt)return require(Ct,!0);if(Tt)return Tt(Ct,!0);var Jt=new Error("Cannot find module '"+Ct+"'");throw Jt.code="MODULE_NOT_FOUND",Jt}var wt=re[Ct]={exports:{}};De[Ct][0].call(wt.exports,function(et){var tt=De[Ct][1][et];return Et(tt||et)},wt,wt.exports,se,De,re,le)}return re[Ct].exports}for(var Tt=void 0,ee=0;ee<le.length;ee++)Et(le[ee]);return Et}({1:[function(se,De,re){"use strict";var le=se("./utils"),Et=se("./support"),Tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";re.encode=function(ee){for(var Ct,Wt,Gt,Jt,wt,et,tt,lt=[],rt=0,ht=ee.length,dt=ht,yt=le.getTypeOf(ee)!=="string";rt<ee.length;)dt=ht-rt,Gt=yt?(Ct=ee[rt++],Wt=rt<ht?ee[rt++]:0,rt<ht?ee[rt++]:0):(Ct=ee.charCodeAt(rt++),Wt=rt<ht?ee.charCodeAt(rt++):0,rt<ht?ee.charCodeAt(rt++):0),Jt=Ct>>2,wt=(3&Ct)<<4|Wt>>4,et=1<dt?(15&Wt)<<2|Gt>>6:64,tt=2<dt?63&Gt:64,lt.push(Tt.charAt(Jt)+Tt.charAt(wt)+Tt.charAt(et)+Tt.charAt(tt));return lt.join("")},re.decode=function(ee){var Ct,Wt,Gt,Jt,wt,et,tt=0,lt=0,rt="data:";if(ee.substr(0,rt.length)===rt)throw new Error("Invalid base64 input, it looks like a data url.");var ht,dt=3*(ee=ee.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(ee.charAt(ee.length-1)===Tt.charAt(64)&&dt--,ee.charAt(ee.length-2)===Tt.charAt(64)&&dt--,dt%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ht=Et.uint8array?new Uint8Array(0|dt):new Array(0|dt);tt<ee.length;)Ct=Tt.indexOf(ee.charAt(tt++))<<2|(Jt=Tt.indexOf(ee.charAt(tt++)))>>4,Wt=(15&Jt)<<4|(wt=Tt.indexOf(ee.charAt(tt++)))>>2,Gt=(3&wt)<<6|(et=Tt.indexOf(ee.charAt(tt++))),ht[lt++]=Ct,wt!==64&&(ht[lt++]=Wt),et!==64&&(ht[lt++]=Gt);return ht}},{"./support":30,"./utils":32}],2:[function(se,De,re){"use strict";var le=se("./external"),Et=se("./stream/DataWorker"),Tt=se("./stream/Crc32Probe"),ee=se("./stream/DataLengthProbe");function Ct(Wt,Gt,Jt,wt,et){this.compressedSize=Wt,this.uncompressedSize=Gt,this.crc32=Jt,this.compression=wt,this.compressedContent=et}Ct.prototype={getContentWorker:function(){var Wt=new Et(le.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new ee("data_length")),Gt=this;return Wt.on("end",function(){if(this.streamInfo.data_length!==Gt.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Wt},getCompressedWorker:function(){return new Et(le.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},Ct.createWorkerFrom=function(Wt,Gt,Jt){return Wt.pipe(new Tt).pipe(new ee("uncompressedSize")).pipe(Gt.compressWorker(Jt)).pipe(new ee("compressedSize")).withStreamInfo("compression",Gt)},De.exports=Ct},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(se,De,re){"use strict";var le=se("./stream/GenericWorker");re.STORE={magic:"\0\0",compressWorker:function(){return new le("STORE compression")},uncompressWorker:function(){return new le("STORE decompression")}},re.DEFLATE=se("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(se,De,re){"use strict";var le=se("./utils"),Et=function(){for(var Tt,ee=[],Ct=0;Ct<256;Ct++){Tt=Ct;for(var Wt=0;Wt<8;Wt++)Tt=1&Tt?3988292384^Tt>>>1:Tt>>>1;ee[Ct]=Tt}return ee}();De.exports=function(Tt,ee){return Tt!==void 0&&Tt.length?le.getTypeOf(Tt)!=="string"?function(Ct,Wt,Gt,Jt){var wt=Et,et=Jt+Gt;Ct^=-1;for(var tt=Jt;tt<et;tt++)Ct=Ct>>>8^wt[255&(Ct^Wt[tt])];return-1^Ct}(0|ee,Tt,Tt.length,0):function(Ct,Wt,Gt,Jt){var wt=Et,et=Jt+Gt;Ct^=-1;for(var tt=Jt;tt<et;tt++)Ct=Ct>>>8^wt[255&(Ct^Wt.charCodeAt(tt))];return-1^Ct}(0|ee,Tt,Tt.length,0):0}},{"./utils":32}],5:[function(se,De,re){"use strict";re.base64=!1,re.binary=!1,re.dir=!1,re.createFolders=!0,re.date=null,re.compression=null,re.compressionOptions=null,re.comment=null,re.unixPermissions=null,re.dosPermissions=null},{}],6:[function(se,De,re){"use strict";var le=null;le=typeof Promise!="undefined"?Promise:se("lie"),De.exports={Promise:le}},{lie:37}],7:[function(se,De,re){"use strict";var le=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",Et=se("pako"),Tt=se("./utils"),ee=se("./stream/GenericWorker"),Ct=le?"uint8array":"array";function Wt(Gt,Jt){ee.call(this,"FlateWorker/"+Gt),this._pako=null,this._pakoAction=Gt,this._pakoOptions=Jt,this.meta={}}re.magic="\b\0",Tt.inherits(Wt,ee),Wt.prototype.processChunk=function(Gt){this.meta=Gt.meta,this._pako===null&&this._createPako(),this._pako.push(Tt.transformTo(Ct,Gt.data),!1)},Wt.prototype.flush=function(){ee.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},Wt.prototype.cleanUp=function(){ee.prototype.cleanUp.call(this),this._pako=null},Wt.prototype._createPako=function(){this._pako=new Et[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Gt=this;this._pako.onData=function(Jt){Gt.push({data:Jt,meta:Gt.meta})}},re.compressWorker=function(Gt){return new Wt("Deflate",Gt)},re.uncompressWorker=function(){return new Wt("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(se,De,re){"use strict";function le(wt,et){var tt,lt="";for(tt=0;tt<et;tt++)lt+=String.fromCharCode(255&wt),wt>>>=8;return lt}function Et(wt,et,tt,lt,rt,ht){var dt,yt,Mt=wt.file,jt=wt.compression,Rt=ht!==Ct.utf8encode,ae=Tt.transformTo("string",ht(Mt.name)),he=Tt.transformTo("string",Ct.utf8encode(Mt.name)),pe=Mt.comment,Te=Tt.transformTo("string",ht(pe)),ne=Tt.transformTo("string",Ct.utf8encode(pe)),Ke=he.length!==Mt.name.length,Vt=ne.length!==pe.length,$e="",Ge="",Oe="",Ve=Mt.dir,_e=Mt.date,xe={crc32:0,compressedSize:0,uncompressedSize:0};et&&!tt||(xe.crc32=wt.crc32,xe.compressedSize=wt.compressedSize,xe.uncompressedSize=wt.uncompressedSize);var ie=0;et&&(ie|=8),Rt||!Ke&&!Vt||(ie|=2048);var be=0,Fn=0;Ve&&(be|=16),rt==="UNIX"?(Fn=798,be|=function(Xe,In){var Xn=Xe;return Xe||(Xn=In?16893:33204),(65535&Xn)<<16}(Mt.unixPermissions,Ve)):(Fn=20,be|=function(Xe){return 63&(Xe||0)}(Mt.dosPermissions)),dt=_e.getUTCHours(),dt<<=6,dt|=_e.getUTCMinutes(),dt<<=5,dt|=_e.getUTCSeconds()/2,yt=_e.getUTCFullYear()-1980,yt<<=4,yt|=_e.getUTCMonth()+1,yt<<=5,yt|=_e.getUTCDate(),Ke&&(Ge=le(1,1)+le(Wt(ae),4)+he,$e+="up"+le(Ge.length,2)+Ge),Vt&&(Oe=le(1,1)+le(Wt(Te),4)+ne,$e+="uc"+le(Oe.length,2)+Oe);var Mn="";return Mn+=`
\0`,Mn+=le(ie,2),Mn+=jt.magic,Mn+=le(dt,2),Mn+=le(yt,2),Mn+=le(xe.crc32,4),Mn+=le(xe.compressedSize,4),Mn+=le(xe.uncompressedSize,4),Mn+=le(ae.length,2),Mn+=le($e.length,2),{fileRecord:Gt.LOCAL_FILE_HEADER+Mn+ae+$e,dirRecord:Gt.CENTRAL_FILE_HEADER+le(Fn,2)+Mn+le(Te.length,2)+"\0\0\0\0"+le(be,4)+le(lt,4)+ae+$e+Te}}var Tt=se("../utils"),ee=se("../stream/GenericWorker"),Ct=se("../utf8"),Wt=se("../crc32"),Gt=se("../signature");function Jt(wt,et,tt,lt){ee.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=et,this.zipPlatform=tt,this.encodeFileName=lt,this.streamFiles=wt,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Tt.inherits(Jt,ee),Jt.prototype.push=function(wt){var et=wt.meta.percent||0,tt=this.entriesCount,lt=this._sources.length;this.accumulate?this.contentBuffer.push(wt):(this.bytesWritten+=wt.data.length,ee.prototype.push.call(this,{data:wt.data,meta:{currentFile:this.currentFile,percent:tt?(et+100*(tt-lt-1))/tt:100}}))},Jt.prototype.openedSource=function(wt){this.currentSourceOffset=this.bytesWritten,this.currentFile=wt.file.name;var et=this.streamFiles&&!wt.file.dir;if(et){var tt=Et(wt,et,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:tt.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Jt.prototype.closedSource=function(wt){this.accumulate=!1;var et=this.streamFiles&&!wt.file.dir,tt=Et(wt,et,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(tt.dirRecord),et)this.push({data:function(lt){return Gt.DATA_DESCRIPTOR+le(lt.crc32,4)+le(lt.compressedSize,4)+le(lt.uncompressedSize,4)}(wt),meta:{percent:100}});else for(this.push({data:tt.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},Jt.prototype.flush=function(){for(var wt=this.bytesWritten,et=0;et<this.dirRecords.length;et++)this.push({data:this.dirRecords[et],meta:{percent:100}});var tt=this.bytesWritten-wt,lt=function(rt,ht,dt,yt,Mt){var jt=Tt.transformTo("string",Mt(yt));return Gt.CENTRAL_DIRECTORY_END+"\0\0\0\0"+le(rt,2)+le(rt,2)+le(ht,4)+le(dt,4)+le(jt.length,2)+jt}(this.dirRecords.length,tt,wt,this.zipComment,this.encodeFileName);this.push({data:lt,meta:{percent:100}})},Jt.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},Jt.prototype.registerPrevious=function(wt){this._sources.push(wt);var et=this;return wt.on("data",function(tt){et.processChunk(tt)}),wt.on("end",function(){et.closedSource(et.previous.streamInfo),et._sources.length?et.prepareNextSource():et.end()}),wt.on("error",function(tt){et.error(tt)}),this},Jt.prototype.resume=function(){return!!ee.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},Jt.prototype.error=function(wt){var et=this._sources;if(!ee.prototype.error.call(this,wt))return!1;for(var tt=0;tt<et.length;tt++)try{et[tt].error(wt)}catch(lt){}return!0},Jt.prototype.lock=function(){ee.prototype.lock.call(this);for(var wt=this._sources,et=0;et<wt.length;et++)wt[et].lock()},De.exports=Jt},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(se,De,re){"use strict";var le=se("../compressions"),Et=se("./ZipFileWorker");re.generateWorker=function(Tt,ee,Ct){var Wt=new Et(ee.streamFiles,Ct,ee.platform,ee.encodeFileName),Gt=0;try{Tt.forEach(function(Jt,wt){Gt++;var et=function(ht,dt){var yt=ht||dt,Mt=le[yt];if(!Mt)throw new Error(yt+" is not a valid compression method !");return Mt}(wt.options.compression,ee.compression),tt=wt.options.compressionOptions||ee.compressionOptions||{},lt=wt.dir,rt=wt.date;wt._compressWorker(et,tt).withStreamInfo("file",{name:Jt,dir:lt,date:rt,comment:wt.comment||"",unixPermissions:wt.unixPermissions,dosPermissions:wt.dosPermissions}).pipe(Wt)}),Wt.entriesCount=Gt}catch(Jt){Wt.error(Jt)}return Wt}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(se,De,re){"use strict";function le(){if(!(this instanceof le))return new le;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Et=new le;for(var Tt in this)typeof this[Tt]!="function"&&(Et[Tt]=this[Tt]);return Et}}(le.prototype=se("./object")).loadAsync=se("./load"),le.support=se("./support"),le.defaults=se("./defaults"),le.version="3.10.1",le.loadAsync=function(Et,Tt){return new le().loadAsync(Et,Tt)},le.external=se("./external"),De.exports=le},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(se,De,re){"use strict";var le=se("./utils"),Et=se("./external"),Tt=se("./utf8"),ee=se("./zipEntries"),Ct=se("./stream/Crc32Probe"),Wt=se("./nodejsUtils");function Gt(Jt){return new Et.Promise(function(wt,et){var tt=Jt.decompressed.getContentWorker().pipe(new Ct);tt.on("error",function(lt){et(lt)}).on("end",function(){tt.streamInfo.crc32!==Jt.decompressed.crc32?et(new Error("Corrupted zip : CRC32 mismatch")):wt()}).resume()})}De.exports=function(Jt,wt){var et=this;return wt=le.extend(wt||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Tt.utf8decode}),Wt.isNode&&Wt.isStream(Jt)?Et.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):le.prepareContent("the loaded zip file",Jt,!0,wt.optimizedBinaryString,wt.base64).then(function(tt){var lt=new ee(wt);return lt.load(tt),lt}).then(function(tt){var lt=[Et.Promise.resolve(tt)],rt=tt.files;if(wt.checkCRC32)for(var ht=0;ht<rt.length;ht++)lt.push(Gt(rt[ht]));return Et.Promise.all(lt)}).then(function(tt){for(var lt=tt.shift(),rt=lt.files,ht=0;ht<rt.length;ht++){var dt=rt[ht],yt=dt.fileNameStr,Mt=le.resolve(dt.fileNameStr);et.file(Mt,dt.decompressed,{binary:!0,optimizedBinaryString:!0,date:dt.date,dir:dt.dir,comment:dt.fileCommentStr.length?dt.fileCommentStr:null,unixPermissions:dt.unixPermissions,dosPermissions:dt.dosPermissions,createFolders:wt.createFolders}),dt.dir||(et.file(Mt).unsafeOriginalName=yt)}return lt.zipComment.length&&(et.comment=lt.zipComment),et})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(se,De,re){"use strict";var le=se("../utils"),Et=se("../stream/GenericWorker");function Tt(ee,Ct){Et.call(this,"Nodejs stream input adapter for "+ee),this._upstreamEnded=!1,this._bindStream(Ct)}le.inherits(Tt,Et),Tt.prototype._bindStream=function(ee){var Ct=this;(this._stream=ee).pause(),ee.on("data",function(Wt){Ct.push({data:Wt,meta:{percent:0}})}).on("error",function(Wt){Ct.isPaused?this.generatedError=Wt:Ct.error(Wt)}).on("end",function(){Ct.isPaused?Ct._upstreamEnded=!0:Ct.end()})},Tt.prototype.pause=function(){return!!Et.prototype.pause.call(this)&&(this._stream.pause(),!0)},Tt.prototype.resume=function(){return!!Et.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},De.exports=Tt},{"../stream/GenericWorker":28,"../utils":32}],13:[function(se,De,re){"use strict";var le=se("readable-stream").Readable;function Et(Tt,ee,Ct){le.call(this,ee),this._helper=Tt;var Wt=this;Tt.on("data",function(Gt,Jt){Wt.push(Gt)||Wt._helper.pause(),Ct&&Ct(Jt)}).on("error",function(Gt){Wt.emit("error",Gt)}).on("end",function(){Wt.push(null)})}se("../utils").inherits(Et,le),Et.prototype._read=function(){this._helper.resume()},De.exports=Et},{"../utils":32,"readable-stream":16}],14:[function(se,De,re){"use strict";De.exports={isNode:typeof Lt!="undefined",newBufferFrom:function(le,Et){if(Lt.from&&Lt.from!==Uint8Array.from)return Lt.from(le,Et);if(typeof le=="number")throw new Error('The "data" argument must not be a number');return new Lt(le,Et)},allocBuffer:function(le){if(Lt.alloc)return Lt.alloc(le);var Et=new Lt(le);return Et.fill(0),Et},isBuffer:function(le){return Lt.isBuffer(le)},isStream:function(le){return le&&typeof le.on=="function"&&typeof le.pause=="function"&&typeof le.resume=="function"}}},{}],15:[function(se,De,re){"use strict";function le(Mt,jt,Rt){var ae,he=Tt.getTypeOf(jt),pe=Tt.extend(Rt||{},Wt);pe.date=pe.date||new Date,pe.compression!==null&&(pe.compression=pe.compression.toUpperCase()),typeof pe.unixPermissions=="string"&&(pe.unixPermissions=parseInt(pe.unixPermissions,8)),pe.unixPermissions&&16384&pe.unixPermissions&&(pe.dir=!0),pe.dosPermissions&&16&pe.dosPermissions&&(pe.dir=!0),pe.dir&&(Mt=rt(Mt)),pe.createFolders&&(ae=lt(Mt))&&ht.call(this,ae,!0);var Te=he==="string"&&pe.binary===!1&&pe.base64===!1;Rt&&Rt.binary!==void 0||(pe.binary=!Te),(jt instanceof Gt&&jt.uncompressedSize===0||pe.dir||!jt||jt.length===0)&&(pe.base64=!1,pe.binary=!0,jt="",pe.compression="STORE",he="string");var ne=null;ne=jt instanceof Gt||jt instanceof ee?jt:et.isNode&&et.isStream(jt)?new tt(Mt,jt):Tt.prepareContent(Mt,jt,pe.binary,pe.optimizedBinaryString,pe.base64);var Ke=new Jt(Mt,ne,pe);this.files[Mt]=Ke}var Et=se("./utf8"),Tt=se("./utils"),ee=se("./stream/GenericWorker"),Ct=se("./stream/StreamHelper"),Wt=se("./defaults"),Gt=se("./compressedObject"),Jt=se("./zipObject"),wt=se("./generate"),et=se("./nodejsUtils"),tt=se("./nodejs/NodejsStreamInputAdapter"),lt=function(Mt){Mt.slice(-1)==="/"&&(Mt=Mt.substring(0,Mt.length-1));var jt=Mt.lastIndexOf("/");return 0<jt?Mt.substring(0,jt):""},rt=function(Mt){return Mt.slice(-1)!=="/"&&(Mt+="/"),Mt},ht=function(Mt,jt){return jt=jt!==void 0?jt:Wt.createFolders,Mt=rt(Mt),this.files[Mt]||le.call(this,Mt,null,{dir:!0,createFolders:jt}),this.files[Mt]};function dt(Mt){return Object.prototype.toString.call(Mt)==="[object RegExp]"}var yt={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Mt){var jt,Rt,ae;for(jt in this.files)ae=this.files[jt],(Rt=jt.slice(this.root.length,jt.length))&&jt.slice(0,this.root.length)===this.root&&Mt(Rt,ae)},filter:function(Mt){var jt=[];return this.forEach(function(Rt,ae){Mt(Rt,ae)&&jt.push(ae)}),jt},file:function(Mt,jt,Rt){if(arguments.length!==1)return Mt=this.root+Mt,le.call(this,Mt,jt,Rt),this;if(dt(Mt)){var ae=Mt;return this.filter(function(pe,Te){return!Te.dir&&ae.test(pe)})}var he=this.files[this.root+Mt];return he&&!he.dir?he:null},folder:function(Mt){if(!Mt)return this;if(dt(Mt))return this.filter(function(he,pe){return pe.dir&&Mt.test(he)});var jt=this.root+Mt,Rt=ht.call(this,jt),ae=this.clone();return ae.root=Rt.name,ae},remove:function(Mt){Mt=this.root+Mt;var jt=this.files[Mt];if(jt||(Mt.slice(-1)!=="/"&&(Mt+="/"),jt=this.files[Mt]),jt&&!jt.dir)delete this.files[Mt];else for(var Rt=this.filter(function(he,pe){return pe.name.slice(0,Mt.length)===Mt}),ae=0;ae<Rt.length;ae++)delete this.files[Rt[ae].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Mt){var jt,Rt={};try{if((Rt=Tt.extend(Mt||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Et.utf8encode})).type=Rt.type.toLowerCase(),Rt.compression=Rt.compression.toUpperCase(),Rt.type==="binarystring"&&(Rt.type="string"),!Rt.type)throw new Error("No output type specified.");Tt.checkSupport(Rt.type),Rt.platform!=="darwin"&&Rt.platform!=="freebsd"&&Rt.platform!=="linux"&&Rt.platform!=="sunos"||(Rt.platform="UNIX"),Rt.platform==="win32"&&(Rt.platform="DOS");var ae=Rt.comment||this.comment||"";jt=wt.generateWorker(this,Rt,ae)}catch(he){(jt=new ee("error")).error(he)}return new Ct(jt,Rt.type||"string",Rt.mimeType)},generateAsync:function(Mt,jt){return this.generateInternalStream(Mt).accumulate(jt)},generateNodeStream:function(Mt,jt){return(Mt=Mt||{}).type||(Mt.type="nodebuffer"),this.generateInternalStream(Mt).toNodejsStream(jt)}};De.exports=yt},{"./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,De,re){"use strict";De.exports=se("stream")},{stream:void 0}],17:[function(se,De,re){"use strict";var le=se("./DataReader");function Et(Tt){le.call(this,Tt);for(var ee=0;ee<this.data.length;ee++)Tt[ee]=255&Tt[ee]}se("../utils").inherits(Et,le),Et.prototype.byteAt=function(Tt){return this.data[this.zero+Tt]},Et.prototype.lastIndexOfSignature=function(Tt){for(var ee=Tt.charCodeAt(0),Ct=Tt.charCodeAt(1),Wt=Tt.charCodeAt(2),Gt=Tt.charCodeAt(3),Jt=this.length-4;0<=Jt;--Jt)if(this.data[Jt]===ee&&this.data[Jt+1]===Ct&&this.data[Jt+2]===Wt&&this.data[Jt+3]===Gt)return Jt-this.zero;return-1},Et.prototype.readAndCheckSignature=function(Tt){var ee=Tt.charCodeAt(0),Ct=Tt.charCodeAt(1),Wt=Tt.charCodeAt(2),Gt=Tt.charCodeAt(3),Jt=this.readData(4);return ee===Jt[0]&&Ct===Jt[1]&&Wt===Jt[2]&&Gt===Jt[3]},Et.prototype.readData=function(Tt){if(this.checkOffset(Tt),Tt===0)return[];var ee=this.data.slice(this.zero+this.index,this.zero+this.index+Tt);return this.index+=Tt,ee},De.exports=Et},{"../utils":32,"./DataReader":18}],18:[function(se,De,re){"use strict";var le=se("../utils");function Et(Tt){this.data=Tt,this.length=Tt.length,this.index=0,this.zero=0}Et.prototype={checkOffset:function(Tt){this.checkIndex(this.index+Tt)},checkIndex:function(Tt){if(this.length<this.zero+Tt||Tt<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+Tt+"). Corrupted zip ?")},setIndex:function(Tt){this.checkIndex(Tt),this.index=Tt},skip:function(Tt){this.setIndex(this.index+Tt)},byteAt:function(){},readInt:function(Tt){var ee,Ct=0;for(this.checkOffset(Tt),ee=this.index+Tt-1;ee>=this.index;ee--)Ct=(Ct<<8)+this.byteAt(ee);return this.index+=Tt,Ct},readString:function(Tt){return le.transformTo("string",this.readData(Tt))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var Tt=this.readInt(4);return new Date(Date.UTC(1980+(Tt>>25&127),(Tt>>21&15)-1,Tt>>16&31,Tt>>11&31,Tt>>5&63,(31&Tt)<<1))}},De.exports=Et},{"../utils":32}],19:[function(se,De,re){"use strict";var le=se("./Uint8ArrayReader");function Et(Tt){le.call(this,Tt)}se("../utils").inherits(Et,le),Et.prototype.readData=function(Tt){this.checkOffset(Tt);var ee=this.data.slice(this.zero+this.index,this.zero+this.index+Tt);return this.index+=Tt,ee},De.exports=Et},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(se,De,re){"use strict";var le=se("./DataReader");function Et(Tt){le.call(this,Tt)}se("../utils").inherits(Et,le),Et.prototype.byteAt=function(Tt){return this.data.charCodeAt(this.zero+Tt)},Et.prototype.lastIndexOfSignature=function(Tt){return this.data.lastIndexOf(Tt)-this.zero},Et.prototype.readAndCheckSignature=function(Tt){return Tt===this.readData(4)},Et.prototype.readData=function(Tt){this.checkOffset(Tt);var ee=this.data.slice(this.zero+this.index,this.zero+this.index+Tt);return this.index+=Tt,ee},De.exports=Et},{"../utils":32,"./DataReader":18}],21:[function(se,De,re){"use strict";var le=se("./ArrayReader");function Et(Tt){le.call(this,Tt)}se("../utils").inherits(Et,le),Et.prototype.readData=function(Tt){if(this.checkOffset(Tt),Tt===0)return new Uint8Array(0);var ee=this.data.subarray(this.zero+this.index,this.zero+this.index+Tt);return this.index+=Tt,ee},De.exports=Et},{"../utils":32,"./ArrayReader":17}],22:[function(se,De,re){"use strict";var le=se("../utils"),Et=se("../support"),Tt=se("./ArrayReader"),ee=se("./StringReader"),Ct=se("./NodeBufferReader"),Wt=se("./Uint8ArrayReader");De.exports=function(Gt){var Jt=le.getTypeOf(Gt);return le.checkSupport(Jt),Jt!=="string"||Et.uint8array?Jt==="nodebuffer"?new Ct(Gt):Et.uint8array?new Wt(le.transformTo("uint8array",Gt)):new Tt(le.transformTo("array",Gt)):new ee(Gt)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(se,De,re){"use strict";re.LOCAL_FILE_HEADER="PK",re.CENTRAL_FILE_HEADER="PK",re.CENTRAL_DIRECTORY_END="PK",re.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",re.ZIP64_CENTRAL_DIRECTORY_END="PK",re.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(se,De,re){"use strict";var le=se("./GenericWorker"),Et=se("../utils");function Tt(ee){le.call(this,"ConvertWorker to "+ee),this.destType=ee}Et.inherits(Tt,le),Tt.prototype.processChunk=function(ee){this.push({data:Et.transformTo(this.destType,ee.data),meta:ee.meta})},De.exports=Tt},{"../utils":32,"./GenericWorker":28}],25:[function(se,De,re){"use strict";var le=se("./GenericWorker"),Et=se("../crc32");function Tt(){le.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}se("../utils").inherits(Tt,le),Tt.prototype.processChunk=function(ee){this.streamInfo.crc32=Et(ee.data,this.streamInfo.crc32||0),this.push(ee)},De.exports=Tt},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(se,De,re){"use strict";var le=se("../utils"),Et=se("./GenericWorker");function Tt(ee){Et.call(this,"DataLengthProbe for "+ee),this.propName=ee,this.withStreamInfo(ee,0)}le.inherits(Tt,Et),Tt.prototype.processChunk=function(ee){if(ee){var Ct=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=Ct+ee.data.length}Et.prototype.processChunk.call(this,ee)},De.exports=Tt},{"../utils":32,"./GenericWorker":28}],27:[function(se,De,re){"use strict";var le=se("../utils"),Et=se("./GenericWorker");function Tt(ee){Et.call(this,"DataWorker");var Ct=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,ee.then(function(Wt){Ct.dataIsReady=!0,Ct.data=Wt,Ct.max=Wt&&Wt.length||0,Ct.type=le.getTypeOf(Wt),Ct.isPaused||Ct._tickAndRepeat()},function(Wt){Ct.error(Wt)})}le.inherits(Tt,Et),Tt.prototype.cleanUp=function(){Et.prototype.cleanUp.call(this),this.data=null},Tt.prototype.resume=function(){return!!Et.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,le.delay(this._tickAndRepeat,[],this)),!0)},Tt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(le.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},Tt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var ee=null,Ct=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":ee=this.data.substring(this.index,Ct);break;case"uint8array":ee=this.data.subarray(this.index,Ct);break;case"array":case"nodebuffer":ee=this.data.slice(this.index,Ct)}return this.index=Ct,this.push({data:ee,meta:{percent:this.max?this.index/this.max*100:0}})},De.exports=Tt},{"../utils":32,"./GenericWorker":28}],28:[function(se,De,re){"use strict";function le(Et){this.name=Et||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}le.prototype={push:function(Et){this.emit("data",Et)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Et){this.emit("error",Et)}return!0},error:function(Et){return!this.isFinished&&(this.isPaused?this.generatedError=Et:(this.isFinished=!0,this.emit("error",Et),this.previous&&this.previous.error(Et),this.cleanUp()),!0)},on:function(Et,Tt){return this._listeners[Et].push(Tt),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Et,Tt){if(this._listeners[Et])for(var ee=0;ee<this._listeners[Et].length;ee++)this._listeners[Et][ee].call(this,Tt)},pipe:function(Et){return Et.registerPrevious(this)},registerPrevious:function(Et){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Et.streamInfo,this.mergeStreamInfo(),this.previous=Et;var Tt=this;return Et.on("data",function(ee){Tt.processChunk(ee)}),Et.on("end",function(){Tt.end()}),Et.on("error",function(ee){Tt.error(ee)}),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 Et=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),Et=!0),this.previous&&this.previous.resume(),!Et},flush:function(){},processChunk:function(Et){this.push(Et)},withStreamInfo:function(Et,Tt){return this.extraStreamInfo[Et]=Tt,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Et in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Et)&&(this.streamInfo[Et]=this.extraStreamInfo[Et])},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 Et="Worker "+this.name;return this.previous?this.previous+" -> "+Et:Et}},De.exports=le},{}],29:[function(se,De,re){"use strict";var le=se("../utils"),Et=se("./ConvertWorker"),Tt=se("./GenericWorker"),ee=se("../base64"),Ct=se("../support"),Wt=se("../external"),Gt=null;if(Ct.nodestream)try{Gt=se("../nodejs/NodejsStreamOutputAdapter")}catch(et){}function Jt(et,tt){return new Wt.Promise(function(lt,rt){var ht=[],dt=et._internalType,yt=et._outputType,Mt=et._mimeType;et.on("data",function(jt,Rt){ht.push(jt),tt&&tt(Rt)}).on("error",function(jt){ht=[],rt(jt)}).on("end",function(){try{var jt=function(Rt,ae,he){switch(Rt){case"blob":return le.newBlob(le.transformTo("arraybuffer",ae),he);case"base64":return ee.encode(ae);default:return le.transformTo(Rt,ae)}}(yt,function(Rt,ae){var he,pe=0,Te=null,ne=0;for(he=0;he<ae.length;he++)ne+=ae[he].length;switch(Rt){case"string":return ae.join("");case"array":return Array.prototype.concat.apply([],ae);case"uint8array":for(Te=new Uint8Array(ne),he=0;he<ae.length;he++)Te.set(ae[he],pe),pe+=ae[he].length;return Te;case"nodebuffer":return Lt.concat(ae);default:throw new Error("concat : unsupported type '"+Rt+"'")}}(dt,ht),Mt);lt(jt)}catch(Rt){rt(Rt)}ht=[]}).resume()})}function wt(et,tt,lt){var rt=tt;switch(tt){case"blob":case"arraybuffer":rt="uint8array";break;case"base64":rt="string"}try{this._internalType=rt,this._outputType=tt,this._mimeType=lt,le.checkSupport(rt),this._worker=et.pipe(new Et(rt)),et.lock()}catch(ht){this._worker=new Tt("error"),this._worker.error(ht)}}wt.prototype={accumulate:function(et){return Jt(this,et)},on:function(et,tt){var lt=this;return et==="data"?this._worker.on(et,function(rt){tt.call(lt,rt.data,rt.meta)}):this._worker.on(et,function(){le.delay(tt,arguments,lt)}),this},resume:function(){return le.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(et){if(le.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new Gt(this,{objectMode:this._outputType!=="nodebuffer"},et)}},De.exports=wt},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(se,De,re){"use strict";if(re.base64=!0,re.array=!0,re.string=!0,re.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",re.nodebuffer=typeof Lt!="undefined",re.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")re.blob=!1;else{var le=new ArrayBuffer(0);try{re.blob=new Blob([le],{type:"application/zip"}).size===0}catch(Tt){try{var Et=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);Et.append(le),re.blob=Et.getBlob("application/zip").size===0}catch(ee){re.blob=!1}}}try{re.nodestream=!!se("readable-stream").Readable}catch(Tt){re.nodestream=!1}},{"readable-stream":16}],31:[function(se,De,re){"use strict";for(var le=se("./utils"),Et=se("./support"),Tt=se("./nodejsUtils"),ee=se("./stream/GenericWorker"),Ct=new Array(256),Wt=0;Wt<256;Wt++)Ct[Wt]=252<=Wt?6:248<=Wt?5:240<=Wt?4:224<=Wt?3:192<=Wt?2:1;Ct[254]=Ct[254]=1;function Gt(){ee.call(this,"utf-8 decode"),this.leftOver=null}function Jt(){ee.call(this,"utf-8 encode")}re.utf8encode=function(wt){return Et.nodebuffer?Tt.newBufferFrom(wt,"utf-8"):function(et){var tt,lt,rt,ht,dt,yt=et.length,Mt=0;for(ht=0;ht<yt;ht++)(64512&(lt=et.charCodeAt(ht)))==55296&&ht+1<yt&&(64512&(rt=et.charCodeAt(ht+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ht++),Mt+=lt<128?1:lt<2048?2:lt<65536?3:4;for(tt=Et.uint8array?new Uint8Array(Mt):new Array(Mt),ht=dt=0;dt<Mt;ht++)(64512&(lt=et.charCodeAt(ht)))==55296&&ht+1<yt&&(64512&(rt=et.charCodeAt(ht+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ht++),lt<128?tt[dt++]=lt:(lt<2048?tt[dt++]=192|lt>>>6:(lt<65536?tt[dt++]=224|lt>>>12:(tt[dt++]=240|lt>>>18,tt[dt++]=128|lt>>>12&63),tt[dt++]=128|lt>>>6&63),tt[dt++]=128|63&lt);return tt}(wt)},re.utf8decode=function(wt){return Et.nodebuffer?le.transformTo("nodebuffer",wt).toString("utf-8"):function(et){var tt,lt,rt,ht,dt=et.length,yt=new Array(2*dt);for(tt=lt=0;tt<dt;)if((rt=et[tt++])<128)yt[lt++]=rt;else if(4<(ht=Ct[rt]))yt[lt++]=65533,tt+=ht-1;else{for(rt&=ht===2?31:ht===3?15:7;1<ht&&tt<dt;)rt=rt<<6|63&et[tt++],ht--;1<ht?yt[lt++]=65533:rt<65536?yt[lt++]=rt:(rt-=65536,yt[lt++]=55296|rt>>10&1023,yt[lt++]=56320|1023&rt)}return yt.length!==lt&&(yt.subarray?yt=yt.subarray(0,lt):yt.length=lt),le.applyFromCharCode(yt)}(wt=le.transformTo(Et.uint8array?"uint8array":"array",wt))},le.inherits(Gt,ee),Gt.prototype.processChunk=function(wt){var et=le.transformTo(Et.uint8array?"uint8array":"array",wt.data);if(this.leftOver&&this.leftOver.length){if(Et.uint8array){var tt=et;(et=new Uint8Array(tt.length+this.leftOver.length)).set(this.leftOver,0),et.set(tt,this.leftOver.length)}else et=this.leftOver.concat(et);this.leftOver=null}var lt=function(ht,dt){var yt;for((dt=dt||ht.length)>ht.length&&(dt=ht.length),yt=dt-1;0<=yt&&(192&ht[yt])==128;)yt--;return yt<0||yt===0?dt:yt+Ct[ht[yt]]>dt?yt:dt}(et),rt=et;lt!==et.length&&(Et.uint8array?(rt=et.subarray(0,lt),this.leftOver=et.subarray(lt,et.length)):(rt=et.slice(0,lt),this.leftOver=et.slice(lt,et.length))),this.push({data:re.utf8decode(rt),meta:wt.meta})},Gt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:re.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},re.Utf8DecodeWorker=Gt,le.inherits(Jt,ee),Jt.prototype.processChunk=function(wt){this.push({data:re.utf8encode(wt.data),meta:wt.meta})},re.Utf8EncodeWorker=Jt},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(se,De,re){"use strict";var le=se("./support"),Et=se("./base64"),Tt=se("./nodejsUtils"),ee=se("./external");function Ct(tt){return tt}function Wt(tt,lt){for(var rt=0;rt<tt.length;++rt)lt[rt]=255&tt.charCodeAt(rt);return lt}se("setimmediate"),re.newBlob=function(tt,lt){re.checkSupport("blob");try{return new Blob([tt],{type:lt})}catch(ht){try{var rt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return rt.append(tt),rt.getBlob(lt)}catch(dt){throw new Error("Bug : can't construct the Blob.")}}};var Gt={stringifyByChunk:function(tt,lt,rt){var ht=[],dt=0,yt=tt.length;if(yt<=rt)return String.fromCharCode.apply(null,tt);for(;dt<yt;)lt==="array"||lt==="nodebuffer"?ht.push(String.fromCharCode.apply(null,tt.slice(dt,Math.min(dt+rt,yt)))):ht.push(String.fromCharCode.apply(null,tt.subarray(dt,Math.min(dt+rt,yt)))),dt+=rt;return ht.join("")},stringifyByChar:function(tt){for(var lt="",rt=0;rt<tt.length;rt++)lt+=String.fromCharCode(tt[rt]);return lt},applyCanBeUsed:{uint8array:function(){try{return le.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(tt){return!1}}(),nodebuffer:function(){try{return le.nodebuffer&&String.fromCharCode.apply(null,Tt.allocBuffer(1)).length===1}catch(tt){return!1}}()}};function Jt(tt){var lt=65536,rt=re.getTypeOf(tt),ht=!0;if(rt==="uint8array"?ht=Gt.applyCanBeUsed.uint8array:rt==="nodebuffer"&&(ht=Gt.applyCanBeUsed.nodebuffer),ht)for(;1<lt;)try{return Gt.stringifyByChunk(tt,rt,lt)}catch(dt){lt=Math.floor(lt/2)}return Gt.stringifyByChar(tt)}function wt(tt,lt){for(var rt=0;rt<tt.length;rt++)lt[rt]=tt[rt];return lt}re.applyFromCharCode=Jt;var et={};et.string={string:Ct,array:function(tt){return Wt(tt,new Array(tt.length))},arraybuffer:function(tt){return et.string.uint8array(tt).buffer},uint8array:function(tt){return Wt(tt,new Uint8Array(tt.length))},nodebuffer:function(tt){return Wt(tt,Tt.allocBuffer(tt.length))}},et.array={string:Jt,array:Ct,arraybuffer:function(tt){return new Uint8Array(tt).buffer},uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return Tt.newBufferFrom(tt)}},et.arraybuffer={string:function(tt){return Jt(new Uint8Array(tt))},array:function(tt){return wt(new Uint8Array(tt),new Array(tt.byteLength))},arraybuffer:Ct,uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return Tt.newBufferFrom(new Uint8Array(tt))}},et.uint8array={string:Jt,array:function(tt){return wt(tt,new Array(tt.length))},arraybuffer:function(tt){return tt.buffer},uint8array:Ct,nodebuffer:function(tt){return Tt.newBufferFrom(tt)}},et.nodebuffer={string:Jt,array:function(tt){return wt(tt,new Array(tt.length))},arraybuffer:function(tt){return et.nodebuffer.uint8array(tt).buffer},uint8array:function(tt){return wt(tt,new Uint8Array(tt.length))},nodebuffer:Ct},re.transformTo=function(tt,lt){if(lt=lt||"",!tt)return lt;re.checkSupport(tt);var rt=re.getTypeOf(lt);return et[rt][tt](lt)},re.resolve=function(tt){for(var lt=tt.split("/"),rt=[],ht=0;ht<lt.length;ht++){var dt=lt[ht];dt==="."||dt===""&&ht!==0&&ht!==lt.length-1||(dt===".."?rt.pop():rt.push(dt))}return rt.join("/")},re.getTypeOf=function(tt){return typeof tt=="string"?"string":Object.prototype.toString.call(tt)==="[object Array]"?"array":le.nodebuffer&&Tt.isBuffer(tt)?"nodebuffer":le.uint8array&&tt instanceof Uint8Array?"uint8array":le.arraybuffer&&tt instanceof ArrayBuffer?"arraybuffer":void 0},re.checkSupport=function(tt){if(!le[tt.toLowerCase()])throw new Error(tt+" is not supported by this platform")},re.MAX_VALUE_16BITS=65535,re.MAX_VALUE_32BITS=-1,re.pretty=function(tt){var lt,rt,ht="";for(rt=0;rt<(tt||"").length;rt++)ht+="\\x"+((lt=tt.charCodeAt(rt))<16?"0":"")+lt.toString(16).toUpperCase();return ht},re.delay=function(tt,lt,rt){setImmediate(function(){tt.apply(rt||null,lt||[])})},re.inherits=function(tt,lt){function rt(){}rt.prototype=lt.prototype,tt.prototype=new rt},re.extend=function(){var tt,lt,rt={};for(tt=0;tt<arguments.length;tt++)for(lt in arguments[tt])Object.prototype.hasOwnProperty.call(arguments[tt],lt)&&rt[lt]===void 0&&(rt[lt]=arguments[tt][lt]);return rt},re.prepareContent=function(tt,lt,rt,ht,dt){return ee.Promise.resolve(lt).then(function(yt){return le.blob&&(yt instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(yt))!==-1)&&typeof FileReader!="undefined"?new ee.Promise(function(Mt,jt){var Rt=new FileReader;Rt.onload=function(ae){Mt(ae.target.result)},Rt.onerror=function(ae){jt(ae.target.error)},Rt.readAsArrayBuffer(yt)}):yt}).then(function(yt){var Mt=re.getTypeOf(yt);return Mt?(Mt==="arraybuffer"?yt=re.transformTo("uint8array",yt):Mt==="string"&&(dt?yt=Et.decode(yt):rt&&ht!==!0&&(yt=function(jt){return Wt(jt,le.uint8array?new Uint8Array(jt.length):new Array(jt.length))}(yt))),yt):ee.Promise.reject(new Error("Can't read the data of '"+tt+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(se,De,re){"use strict";var le=se("./reader/readerFor"),Et=se("./utils"),Tt=se("./signature"),ee=se("./zipEntry"),Ct=se("./support");function Wt(Gt){this.files=[],this.loadOptions=Gt}Wt.prototype={checkSignature:function(Gt){if(!this.reader.readAndCheckSignature(Gt)){this.reader.index-=4;var Jt=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+Et.pretty(Jt)+", expected "+Et.pretty(Gt)+")")}},isSignature:function(Gt,Jt){var wt=this.reader.index;this.reader.setIndex(Gt);var et=this.reader.readString(4)===Jt;return this.reader.setIndex(wt),et},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 Gt=this.reader.readData(this.zipCommentLength),Jt=Ct.uint8array?"uint8array":"array",wt=Et.transformTo(Jt,Gt);this.zipComment=this.loadOptions.decodeFileName(wt)},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 Gt,Jt,wt,et=this.zip64EndOfCentralSize-44;0<et;)Gt=this.reader.readInt(2),Jt=this.reader.readInt(4),wt=this.reader.readData(Jt),this.zip64ExtensibleData[Gt]={id:Gt,length:Jt,value:wt}},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 Gt,Jt;for(Gt=0;Gt<this.files.length;Gt++)Jt=this.files[Gt],this.reader.setIndex(Jt.localHeaderOffset),this.checkSignature(Tt.LOCAL_FILE_HEADER),Jt.readLocalPart(this.reader),Jt.handleUTF8(),Jt.processAttributes()},readCentralDir:function(){var Gt;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Tt.CENTRAL_FILE_HEADER);)(Gt=new ee({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(Gt);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 Gt=this.reader.lastIndexOfSignature(Tt.CENTRAL_DIRECTORY_END);if(Gt<0)throw this.isSignature(0,Tt.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(Gt);var Jt=Gt;if(this.checkSignature(Tt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===Et.MAX_VALUE_16BITS||this.diskWithCentralDirStart===Et.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===Et.MAX_VALUE_16BITS||this.centralDirRecords===Et.MAX_VALUE_16BITS||this.centralDirSize===Et.MAX_VALUE_32BITS||this.centralDirOffset===Et.MAX_VALUE_32BITS){if(this.zip64=!0,(Gt=this.reader.lastIndexOfSignature(Tt.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Gt),this.checkSignature(Tt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Tt.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Tt.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(Tt.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var wt=this.centralDirOffset+this.centralDirSize;this.zip64&&(wt+=20,wt+=12+this.zip64EndOfCentralSize);var et=Jt-wt;if(0<et)this.isSignature(Jt,Tt.CENTRAL_FILE_HEADER)||(this.reader.zero=et);else if(et<0)throw new Error("Corrupted zip: missing "+Math.abs(et)+" bytes.")},prepareReader:function(Gt){this.reader=le(Gt)},load:function(Gt){this.prepareReader(Gt),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},De.exports=Wt},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(se,De,re){"use strict";var le=se("./reader/readerFor"),Et=se("./utils"),Tt=se("./compressedObject"),ee=se("./crc32"),Ct=se("./utf8"),Wt=se("./compressions"),Gt=se("./support");function Jt(wt,et){this.options=wt,this.loadOptions=et}Jt.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(wt){var et,tt;if(wt.skip(22),this.fileNameLength=wt.readInt(2),tt=wt.readInt(2),this.fileName=wt.readData(this.fileNameLength),wt.skip(tt),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((et=function(lt){for(var rt in Wt)if(Object.prototype.hasOwnProperty.call(Wt,rt)&&Wt[rt].magic===lt)return Wt[rt];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+Et.pretty(this.compressionMethod)+" unknown (inner file : "+Et.transformTo("string",this.fileName)+")");this.decompressed=new Tt(this.compressedSize,this.uncompressedSize,this.crc32,et,wt.readData(this.compressedSize))},readCentralPart:function(wt){this.versionMadeBy=wt.readInt(2),wt.skip(2),this.bitFlag=wt.readInt(2),this.compressionMethod=wt.readString(2),this.date=wt.readDate(),this.crc32=wt.readInt(4),this.compressedSize=wt.readInt(4),this.uncompressedSize=wt.readInt(4);var et=wt.readInt(2);if(this.extraFieldsLength=wt.readInt(2),this.fileCommentLength=wt.readInt(2),this.diskNumberStart=wt.readInt(2),this.internalFileAttributes=wt.readInt(2),this.externalFileAttributes=wt.readInt(4),this.localHeaderOffset=wt.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");wt.skip(et),this.readExtraFields(wt),this.parseZIP64ExtraField(wt),this.fileComment=wt.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var wt=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),wt==0&&(this.dosPermissions=63&this.externalFileAttributes),wt==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var wt=le(this.extraFields[1].value);this.uncompressedSize===Et.MAX_VALUE_32BITS&&(this.uncompressedSize=wt.readInt(8)),this.compressedSize===Et.MAX_VALUE_32BITS&&(this.compressedSize=wt.readInt(8)),this.localHeaderOffset===Et.MAX_VALUE_32BITS&&(this.localHeaderOffset=wt.readInt(8)),this.diskNumberStart===Et.MAX_VALUE_32BITS&&(this.diskNumberStart=wt.readInt(4))}},readExtraFields:function(wt){var et,tt,lt,rt=wt.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});wt.index+4<rt;)et=wt.readInt(2),tt=wt.readInt(2),lt=wt.readData(tt),this.extraFields[et]={id:et,length:tt,value:lt};wt.setIndex(rt)},handleUTF8:function(){var wt=Gt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Ct.utf8decode(this.fileName),this.fileCommentStr=Ct.utf8decode(this.fileComment);else{var et=this.findExtraFieldUnicodePath();if(et!==null)this.fileNameStr=et;else{var tt=Et.transformTo(wt,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(tt)}var lt=this.findExtraFieldUnicodeComment();if(lt!==null)this.fileCommentStr=lt;else{var rt=Et.transformTo(wt,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(rt)}}},findExtraFieldUnicodePath:function(){var wt=this.extraFields[28789];if(wt){var et=le(wt.value);return et.readInt(1)!==1||ee(this.fileName)!==et.readInt(4)?null:Ct.utf8decode(et.readData(wt.length-5))}return null},findExtraFieldUnicodeComment:function(){var wt=this.extraFields[25461];if(wt){var et=le(wt.value);return et.readInt(1)!==1||ee(this.fileComment)!==et.readInt(4)?null:Ct.utf8decode(et.readData(wt.length-5))}return null}},De.exports=Jt},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(se,De,re){"use strict";function le(et,tt,lt){this.name=et,this.dir=lt.dir,this.date=lt.date,this.comment=lt.comment,this.unixPermissions=lt.unixPermissions,this.dosPermissions=lt.dosPermissions,this._data=tt,this._dataBinary=lt.binary,this.options={compression:lt.compression,compressionOptions:lt.compressionOptions}}var Et=se("./stream/StreamHelper"),Tt=se("./stream/DataWorker"),ee=se("./utf8"),Ct=se("./compressedObject"),Wt=se("./stream/GenericWorker");le.prototype={internalStream:function(et){var tt=null,lt="string";try{if(!et)throw new Error("No output type specified.");var rt=(lt=et.toLowerCase())==="string"||lt==="text";lt!=="binarystring"&&lt!=="text"||(lt="string"),tt=this._decompressWorker();var ht=!this._dataBinary;ht&&!rt&&(tt=tt.pipe(new ee.Utf8EncodeWorker)),!ht&&rt&&(tt=tt.pipe(new ee.Utf8DecodeWorker))}catch(dt){(tt=new Wt("error")).error(dt)}return new Et(tt,lt,"")},async:function(et,tt){return this.internalStream(et).accumulate(tt)},nodeStream:function(et,tt){return this.internalStream(et||"nodebuffer").toNodejsStream(tt)},_compressWorker:function(et,tt){if(this._data instanceof Ct&&this._data.compression.magic===et.magic)return this._data.getCompressedWorker();var lt=this._decompressWorker();return this._dataBinary||(lt=lt.pipe(new ee.Utf8EncodeWorker)),Ct.createWorkerFrom(lt,et,tt)},_decompressWorker:function(){return this._data instanceof Ct?this._data.getContentWorker():this._data instanceof Wt?this._data:new Tt(this._data)}};for(var Gt=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Jt=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},wt=0;wt<Gt.length;wt++)le.prototype[Gt[wt]]=Jt;De.exports=le},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(se,De,re){(function(le){"use strict";var Et,Tt,ee=le.MutationObserver||le.WebKitMutationObserver;if(ee){var Ct=0,Wt=new ee(et),Gt=le.document.createTextNode("");Wt.observe(Gt,{characterData:!0}),Et=function(){Gt.data=Ct=++Ct%2}}else if(le.setImmediate||le.MessageChannel===void 0)Et="document"in le&&"onreadystatechange"in le.document.createElement("script")?function(){var tt=le.document.createElement("script");tt.onreadystatechange=function(){et(),tt.onreadystatechange=null,tt.parentNode.removeChild(tt),tt=null},le.document.documentElement.appendChild(tt)}:function(){setTimeout(et,0)};else{var Jt=new le.MessageChannel;Jt.port1.onmessage=et,Et=function(){Jt.port2.postMessage(0)}}var wt=[];function et(){var tt,lt;Tt=!0;for(var rt=wt.length;rt;){for(lt=wt,wt=[],tt=-1;++tt<rt;)lt[tt]();rt=wt.length}Tt=!1}De.exports=function(tt){wt.push(tt)!==1||Tt||Et()}}).call(this,typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(se,De,re){"use strict";var le=se("immediate");function Et(){}var Tt={},ee=["REJECTED"],Ct=["FULFILLED"],Wt=["PENDING"];function Gt(rt){if(typeof rt!="function")throw new TypeError("resolver must be a function");this.state=Wt,this.queue=[],this.outcome=void 0,rt!==Et&&tt(this,rt)}function Jt(rt,ht,dt){this.promise=rt,typeof ht=="function"&&(this.onFulfilled=ht,this.callFulfilled=this.otherCallFulfilled),typeof dt=="function"&&(this.onRejected=dt,this.callRejected=this.otherCallRejected)}function wt(rt,ht,dt){le(function(){var yt;try{yt=ht(dt)}catch(Mt){return Tt.reject(rt,Mt)}yt===rt?Tt.reject(rt,new TypeError("Cannot resolve promise with itself")):Tt.resolve(rt,yt)})}function et(rt){var ht=rt&&rt.then;if(rt&&(typeof rt=="object"||typeof rt=="function")&&typeof ht=="function")return function(){ht.apply(rt,arguments)}}function tt(rt,ht){var dt=!1;function yt(Rt){dt||(dt=!0,Tt.reject(rt,Rt))}function Mt(Rt){dt||(dt=!0,Tt.resolve(rt,Rt))}var jt=lt(function(){ht(Mt,yt)});jt.status==="error"&&yt(jt.value)}function lt(rt,ht){var dt={};try{dt.value=rt(ht),dt.status="success"}catch(yt){dt.status="error",dt.value=yt}return dt}(De.exports=Gt).prototype.finally=function(rt){if(typeof rt!="function")return this;var ht=this.constructor;return this.then(function(dt){return ht.resolve(rt()).then(function(){return dt})},function(dt){return ht.resolve(rt()).then(function(){throw dt})})},Gt.prototype.catch=function(rt){return this.then(null,rt)},Gt.prototype.then=function(rt,ht){if(typeof rt!="function"&&this.state===Ct||typeof ht!="function"&&this.state===ee)return this;var dt=new this.constructor(Et);return this.state!==Wt?wt(dt,this.state===Ct?rt:ht,this.outcome):this.queue.push(new Jt(dt,rt,ht)),dt},Jt.prototype.callFulfilled=function(rt){Tt.resolve(this.promise,rt)},Jt.prototype.otherCallFulfilled=function(rt){wt(this.promise,this.onFulfilled,rt)},Jt.prototype.callRejected=function(rt){Tt.reject(this.promise,rt)},Jt.prototype.otherCallRejected=function(rt){wt(this.promise,this.onRejected,rt)},Tt.resolve=function(rt,ht){var dt=lt(et,ht);if(dt.status==="error")return Tt.reject(rt,dt.value);var yt=dt.value;if(yt)tt(rt,yt);else{rt.state=Ct,rt.outcome=ht;for(var Mt=-1,jt=rt.queue.length;++Mt<jt;)rt.queue[Mt].callFulfilled(ht)}return rt},Tt.reject=function(rt,ht){rt.state=ee,rt.outcome=ht;for(var dt=-1,yt=rt.queue.length;++dt<yt;)rt.queue[dt].callRejected(ht);return rt},Gt.resolve=function(rt){return rt instanceof this?rt:Tt.resolve(new this(Et),rt)},Gt.reject=function(rt){var ht=new this(Et);return Tt.reject(ht,rt)},Gt.all=function(rt){var ht=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,yt=!1;if(!dt)return this.resolve([]);for(var Mt=new Array(dt),jt=0,Rt=-1,ae=new this(Et);++Rt<dt;)he(rt[Rt],Rt);return ae;function he(pe,Te){ht.resolve(pe).then(function(ne){Mt[Te]=ne,++jt!==dt||yt||(yt=!0,Tt.resolve(ae,Mt))},function(ne){yt||(yt=!0,Tt.reject(ae,ne))})}},Gt.race=function(rt){var ht=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var dt=rt.length,yt=!1;if(!dt)return this.resolve([]);for(var Mt=-1,jt=new this(Et);++Mt<dt;)Rt=rt[Mt],ht.resolve(Rt).then(function(ae){yt||(yt=!0,Tt.resolve(jt,ae))},function(ae){yt||(yt=!0,Tt.reject(jt,ae))});var Rt;return jt}},{immediate:36}],38:[function(se,De,re){"use strict";var le={};(0,se("./lib/utils/common").assign)(le,se("./lib/deflate"),se("./lib/inflate"),se("./lib/zlib/constants")),De.exports=le},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(se,De,re){"use strict";var le=se("./zlib/deflate"),Et=se("./utils/common"),Tt=se("./utils/strings"),ee=se("./zlib/messages"),Ct=se("./zlib/zstream"),Wt=Object.prototype.toString,Gt=0,Jt=-1,wt=0,et=8;function tt(rt){if(!(this instanceof tt))return new tt(rt);this.options=Et.assign({level:Jt,method:et,chunkSize:16384,windowBits:15,memLevel:8,strategy:wt,to:""},rt||{});var ht=this.options;ht.raw&&0<ht.windowBits?ht.windowBits=-ht.windowBits:ht.gzip&&0<ht.windowBits&&ht.windowBits<16&&(ht.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var dt=le.deflateInit2(this.strm,ht.level,ht.method,ht.windowBits,ht.memLevel,ht.strategy);if(dt!==Gt)throw new Error(ee[dt]);if(ht.header&&le.deflateSetHeader(this.strm,ht.header),ht.dictionary){var yt;if(yt=typeof ht.dictionary=="string"?Tt.string2buf(ht.dictionary):Wt.call(ht.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ht.dictionary):ht.dictionary,(dt=le.deflateSetDictionary(this.strm,yt))!==Gt)throw new Error(ee[dt]);this._dict_set=!0}}function lt(rt,ht){var dt=new tt(ht);if(dt.push(rt,!0),dt.err)throw dt.msg||ee[dt.err];return dt.result}tt.prototype.push=function(rt,ht){var dt,yt,Mt=this.strm,jt=this.options.chunkSize;if(this.ended)return!1;yt=ht===~~ht?ht:ht===!0?4:0,typeof rt=="string"?Mt.input=Tt.string2buf(rt):Wt.call(rt)==="[object ArrayBuffer]"?Mt.input=new Uint8Array(rt):Mt.input=rt,Mt.next_in=0,Mt.avail_in=Mt.input.length;do{if(Mt.avail_out===0&&(Mt.output=new Et.Buf8(jt),Mt.next_out=0,Mt.avail_out=jt),(dt=le.deflate(Mt,yt))!==1&&dt!==Gt)return this.onEnd(dt),!(this.ended=!0);Mt.avail_out!==0&&(Mt.avail_in!==0||yt!==4&&yt!==2)||(this.options.to==="string"?this.onData(Tt.buf2binstring(Et.shrinkBuf(Mt.output,Mt.next_out))):this.onData(Et.shrinkBuf(Mt.output,Mt.next_out)))}while((0<Mt.avail_in||Mt.avail_out===0)&&dt!==1);return yt===4?(dt=le.deflateEnd(this.strm),this.onEnd(dt),this.ended=!0,dt===Gt):yt!==2||(this.onEnd(Gt),!(Mt.avail_out=0))},tt.prototype.onData=function(rt){this.chunks.push(rt)},tt.prototype.onEnd=function(rt){rt===Gt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Et.flattenChunks(this.chunks)),this.chunks=[],this.err=rt,this.msg=this.strm.msg},re.Deflate=tt,re.deflate=lt,re.deflateRaw=function(rt,ht){return(ht=ht||{}).raw=!0,lt(rt,ht)},re.gzip=function(rt,ht){return(ht=ht||{}).gzip=!0,lt(rt,ht)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(se,De,re){"use strict";var le=se("./zlib/inflate"),Et=se("./utils/common"),Tt=se("./utils/strings"),ee=se("./zlib/constants"),Ct=se("./zlib/messages"),Wt=se("./zlib/zstream"),Gt=se("./zlib/gzheader"),Jt=Object.prototype.toString;function wt(tt){if(!(this instanceof wt))return new wt(tt);this.options=Et.assign({chunkSize:16384,windowBits:0,to:""},tt||{});var lt=this.options;lt.raw&&0<=lt.windowBits&&lt.windowBits<16&&(lt.windowBits=-lt.windowBits,lt.windowBits===0&&(lt.windowBits=-15)),!(0<=lt.windowBits&&lt.windowBits<16)||tt&&tt.windowBits||(lt.windowBits+=32),15<lt.windowBits&&lt.windowBits<48&&!(15&lt.windowBits)&&(lt.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wt,this.strm.avail_out=0;var rt=le.inflateInit2(this.strm,lt.windowBits);if(rt!==ee.Z_OK)throw new Error(Ct[rt]);this.header=new Gt,le.inflateGetHeader(this.strm,this.header)}function et(tt,lt){var rt=new wt(lt);if(rt.push(tt,!0),rt.err)throw rt.msg||Ct[rt.err];return rt.result}wt.prototype.push=function(tt,lt){var rt,ht,dt,yt,Mt,jt,Rt=this.strm,ae=this.options.chunkSize,he=this.options.dictionary,pe=!1;if(this.ended)return!1;ht=lt===~~lt?lt:lt===!0?ee.Z_FINISH:ee.Z_NO_FLUSH,typeof tt=="string"?Rt.input=Tt.binstring2buf(tt):Jt.call(tt)==="[object ArrayBuffer]"?Rt.input=new Uint8Array(tt):Rt.input=tt,Rt.next_in=0,Rt.avail_in=Rt.input.length;do{if(Rt.avail_out===0&&(Rt.output=new Et.Buf8(ae),Rt.next_out=0,Rt.avail_out=ae),(rt=le.inflate(Rt,ee.Z_NO_FLUSH))===ee.Z_NEED_DICT&&he&&(jt=typeof he=="string"?Tt.string2buf(he):Jt.call(he)==="[object ArrayBuffer]"?new Uint8Array(he):he,rt=le.inflateSetDictionary(this.strm,jt)),rt===ee.Z_BUF_ERROR&&pe===!0&&(rt=ee.Z_OK,pe=!1),rt!==ee.Z_STREAM_END&&rt!==ee.Z_OK)return this.onEnd(rt),!(this.ended=!0);Rt.next_out&&(Rt.avail_out!==0&&rt!==ee.Z_STREAM_END&&(Rt.avail_in!==0||ht!==ee.Z_FINISH&&ht!==ee.Z_SYNC_FLUSH)||(this.options.to==="string"?(dt=Tt.utf8border(Rt.output,Rt.next_out),yt=Rt.next_out-dt,Mt=Tt.buf2string(Rt.output,dt),Rt.next_out=yt,Rt.avail_out=ae-yt,yt&&Et.arraySet(Rt.output,Rt.output,dt,yt,0),this.onData(Mt)):this.onData(Et.shrinkBuf(Rt.output,Rt.next_out)))),Rt.avail_in===0&&Rt.avail_out===0&&(pe=!0)}while((0<Rt.avail_in||Rt.avail_out===0)&&rt!==ee.Z_STREAM_END);return rt===ee.Z_STREAM_END&&(ht=ee.Z_FINISH),ht===ee.Z_FINISH?(rt=le.inflateEnd(this.strm),this.onEnd(rt),this.ended=!0,rt===ee.Z_OK):ht!==ee.Z_SYNC_FLUSH||(this.onEnd(ee.Z_OK),!(Rt.avail_out=0))},wt.prototype.onData=function(tt){this.chunks.push(tt)},wt.prototype.onEnd=function(tt){tt===ee.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Et.flattenChunks(this.chunks)),this.chunks=[],this.err=tt,this.msg=this.strm.msg},re.Inflate=wt,re.inflate=et,re.inflateRaw=function(tt,lt){return(lt=lt||{}).raw=!0,et(tt,lt)},re.ungzip=et},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(se,De,re){"use strict";var le=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";re.assign=function(ee){for(var Ct=Array.prototype.slice.call(arguments,1);Ct.length;){var Wt=Ct.shift();if(Wt){if(typeof Wt!="object")throw new TypeError(Wt+"must be non-object");for(var Gt in Wt)Wt.hasOwnProperty(Gt)&&(ee[Gt]=Wt[Gt])}}return ee},re.shrinkBuf=function(ee,Ct){return ee.length===Ct?ee:ee.subarray?ee.subarray(0,Ct):(ee.length=Ct,ee)};var Et={arraySet:function(ee,Ct,Wt,Gt,Jt){if(Ct.subarray&&ee.subarray)ee.set(Ct.subarray(Wt,Wt+Gt),Jt);else for(var wt=0;wt<Gt;wt++)ee[Jt+wt]=Ct[Wt+wt]},flattenChunks:function(ee){var Ct,Wt,Gt,Jt,wt,et;for(Ct=Gt=0,Wt=ee.length;Ct<Wt;Ct++)Gt+=ee[Ct].length;for(et=new Uint8Array(Gt),Ct=Jt=0,Wt=ee.length;Ct<Wt;Ct++)wt=ee[Ct],et.set(wt,Jt),Jt+=wt.length;return et}},Tt={arraySet:function(ee,Ct,Wt,Gt,Jt){for(var wt=0;wt<Gt;wt++)ee[Jt+wt]=Ct[Wt+wt]},flattenChunks:function(ee){return[].concat.apply([],ee)}};re.setTyped=function(ee){ee?(re.Buf8=Uint8Array,re.Buf16=Uint16Array,re.Buf32=Int32Array,re.assign(re,Et)):(re.Buf8=Array,re.Buf16=Array,re.Buf32=Array,re.assign(re,Tt))},re.setTyped(le)},{}],42:[function(se,De,re){"use strict";var le=se("./common"),Et=!0,Tt=!0;try{String.fromCharCode.apply(null,[0])}catch(Gt){Et=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Gt){Tt=!1}for(var ee=new le.Buf8(256),Ct=0;Ct<256;Ct++)ee[Ct]=252<=Ct?6:248<=Ct?5:240<=Ct?4:224<=Ct?3:192<=Ct?2:1;function Wt(Gt,Jt){if(Jt<65537&&(Gt.subarray&&Tt||!Gt.subarray&&Et))return String.fromCharCode.apply(null,le.shrinkBuf(Gt,Jt));for(var wt="",et=0;et<Jt;et++)wt+=String.fromCharCode(Gt[et]);return wt}ee[254]=ee[254]=1,re.string2buf=function(Gt){var Jt,wt,et,tt,lt,rt=Gt.length,ht=0;for(tt=0;tt<rt;tt++)(64512&(wt=Gt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Gt.charCodeAt(tt+1)))==56320&&(wt=65536+(wt-55296<<10)+(et-56320),tt++),ht+=wt<128?1:wt<2048?2:wt<65536?3:4;for(Jt=new le.Buf8(ht),tt=lt=0;lt<ht;tt++)(64512&(wt=Gt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=Gt.charCodeAt(tt+1)))==56320&&(wt=65536+(wt-55296<<10)+(et-56320),tt++),wt<128?Jt[lt++]=wt:(wt<2048?Jt[lt++]=192|wt>>>6:(wt<65536?Jt[lt++]=224|wt>>>12:(Jt[lt++]=240|wt>>>18,Jt[lt++]=128|wt>>>12&63),Jt[lt++]=128|wt>>>6&63),Jt[lt++]=128|63&wt);return Jt},re.buf2binstring=function(Gt){return Wt(Gt,Gt.length)},re.binstring2buf=function(Gt){for(var Jt=new le.Buf8(Gt.length),wt=0,et=Jt.length;wt<et;wt++)Jt[wt]=Gt.charCodeAt(wt);return Jt},re.buf2string=function(Gt,Jt){var wt,et,tt,lt,rt=Jt||Gt.length,ht=new Array(2*rt);for(wt=et=0;wt<rt;)if((tt=Gt[wt++])<128)ht[et++]=tt;else if(4<(lt=ee[tt]))ht[et++]=65533,wt+=lt-1;else{for(tt&=lt===2?31:lt===3?15:7;1<lt&&wt<rt;)tt=tt<<6|63&Gt[wt++],lt--;1<lt?ht[et++]=65533:tt<65536?ht[et++]=tt:(tt-=65536,ht[et++]=55296|tt>>10&1023,ht[et++]=56320|1023&tt)}return Wt(ht,et)},re.utf8border=function(Gt,Jt){var wt;for((Jt=Jt||Gt.length)>Gt.length&&(Jt=Gt.length),wt=Jt-1;0<=wt&&(192&Gt[wt])==128;)wt--;return wt<0||wt===0?Jt:wt+ee[Gt[wt]]>Jt?wt:Jt}},{"./common":41}],43:[function(se,De,re){"use strict";De.exports=function(le,Et,Tt,ee){for(var Ct=65535&le|0,Wt=le>>>16&65535|0,Gt=0;Tt!==0;){for(Tt-=Gt=2e3<Tt?2e3:Tt;Wt=Wt+(Ct=Ct+Et[ee++]|0)|0,--Gt;);Ct%=65521,Wt%=65521}return Ct|Wt<<16|0}},{}],44:[function(se,De,re){"use strict";De.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,De,re){"use strict";var le=function(){for(var Et,Tt=[],ee=0;ee<256;ee++){Et=ee;for(var Ct=0;Ct<8;Ct++)Et=1&Et?3988292384^Et>>>1:Et>>>1;Tt[ee]=Et}return Tt}();De.exports=function(Et,Tt,ee,Ct){var Wt=le,Gt=Ct+ee;Et^=-1;for(var Jt=Ct;Jt<Gt;Jt++)Et=Et>>>8^Wt[255&(Et^Tt[Jt])];return-1^Et}},{}],46:[function(se,De,re){"use strict";var le,Et=se("../utils/common"),Tt=se("./trees"),ee=se("./adler32"),Ct=se("./crc32"),Wt=se("./messages"),Gt=0,Jt=4,wt=0,et=-2,tt=-1,lt=4,rt=2,ht=8,dt=9,yt=286,Mt=30,jt=19,Rt=2*yt+1,ae=15,he=3,pe=258,Te=pe+he+1,ne=42,Ke=113,Vt=1,$e=2,Ge=3,Oe=4;function Ve(ve,hn){return ve.msg=Wt[hn],hn}function _e(ve){return(ve<<1)-(4<ve?9:0)}function xe(ve){for(var hn=ve.length;0<=--hn;)ve[hn]=0}function ie(ve){var hn=ve.state,Ae=hn.pending;Ae>ve.avail_out&&(Ae=ve.avail_out),Ae!==0&&(Et.arraySet(ve.output,hn.pending_buf,hn.pending_out,Ae,ve.next_out),ve.next_out+=Ae,hn.pending_out+=Ae,ve.total_out+=Ae,ve.avail_out-=Ae,hn.pending-=Ae,hn.pending===0&&(hn.pending_out=0))}function be(ve,hn){Tt._tr_flush_block(ve,0<=ve.block_start?ve.block_start:-1,ve.strstart-ve.block_start,hn),ve.block_start=ve.strstart,ie(ve.strm)}function Fn(ve,hn){ve.pending_buf[ve.pending++]=hn}function Mn(ve,hn){ve.pending_buf[ve.pending++]=hn>>>8&255,ve.pending_buf[ve.pending++]=255&hn}function Xe(ve,hn){var Ae,Ot,Ft=ve.max_chain_length,Kt=ve.strstart,Ee=ve.prev_length,je=ve.nice_match,ce=ve.strstart>ve.w_size-Te?ve.strstart-(ve.w_size-Te):0,Be=ve.window,$t=ve.w_mask,Pt=ve.prev,mt=ve.strstart+pe,Zt=Be[Kt+Ee-1],Se=Be[Kt+Ee];ve.prev_length>=ve.good_match&&(Ft>>=2),je>ve.lookahead&&(je=ve.lookahead);do if(Be[(Ae=hn)+Ee]===Se&&Be[Ae+Ee-1]===Zt&&Be[Ae]===Be[Kt]&&Be[++Ae]===Be[Kt+1]){Kt+=2,Ae++;do;while(Be[++Kt]===Be[++Ae]&&Be[++Kt]===Be[++Ae]&&Be[++Kt]===Be[++Ae]&&Be[++Kt]===Be[++Ae]&&Be[++Kt]===Be[++Ae]&&Be[++Kt]===Be[++Ae]&&Be[++Kt]===Be[++Ae]&&Be[++Kt]===Be[++Ae]&&Kt<mt);if(Ot=pe-(mt-Kt),Kt=mt-pe,Ee<Ot){if(ve.match_start=hn,je<=(Ee=Ot))break;Zt=Be[Kt+Ee-1],Se=Be[Kt+Ee]}}while((hn=Pt[hn&$t])>ce&&--Ft!=0);return Ee<=ve.lookahead?Ee:ve.lookahead}function In(ve){var hn,Ae,Ot,Ft,Kt,Ee,je,ce,Be,$t,Pt=ve.w_size;do{if(Ft=ve.window_size-ve.lookahead-ve.strstart,ve.strstart>=Pt+(Pt-Te)){for(Et.arraySet(ve.window,ve.window,Pt,Pt,0),ve.match_start-=Pt,ve.strstart-=Pt,ve.block_start-=Pt,hn=Ae=ve.hash_size;Ot=ve.head[--hn],ve.head[hn]=Pt<=Ot?Ot-Pt:0,--Ae;);for(hn=Ae=Pt;Ot=ve.prev[--hn],ve.prev[hn]=Pt<=Ot?Ot-Pt:0,--Ae;);Ft+=Pt}if(ve.strm.avail_in===0)break;if(Ee=ve.strm,je=ve.window,ce=ve.strstart+ve.lookahead,Be=Ft,$t=void 0,$t=Ee.avail_in,Be<$t&&($t=Be),Ae=$t===0?0:(Ee.avail_in-=$t,Et.arraySet(je,Ee.input,Ee.next_in,$t,ce),Ee.state.wrap===1?Ee.adler=ee(Ee.adler,je,$t,ce):Ee.state.wrap===2&&(Ee.adler=Ct(Ee.adler,je,$t,ce)),Ee.next_in+=$t,Ee.total_in+=$t,$t),ve.lookahead+=Ae,ve.lookahead+ve.insert>=he)for(Kt=ve.strstart-ve.insert,ve.ins_h=ve.window[Kt],ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[Kt+1])&ve.hash_mask;ve.insert&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[Kt+he-1])&ve.hash_mask,ve.prev[Kt&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=Kt,Kt++,ve.insert--,!(ve.lookahead+ve.insert<he)););}while(ve.lookahead<Te&&ve.strm.avail_in!==0)}function Xn(ve,hn){for(var Ae,Ot;;){if(ve.lookahead<Te){if(In(ve),ve.lookahead<Te&&hn===Gt)return Vt;if(ve.lookahead===0)break}if(Ae=0,ve.lookahead>=he&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+he-1])&ve.hash_mask,Ae=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart),Ae!==0&&ve.strstart-Ae<=ve.w_size-Te&&(ve.match_length=Xe(ve,Ae)),ve.match_length>=he)if(Ot=Tt._tr_tally(ve,ve.strstart-ve.match_start,ve.match_length-he),ve.lookahead-=ve.match_length,ve.match_length<=ve.max_lazy_match&&ve.lookahead>=he){for(ve.match_length--;ve.strstart++,ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+he-1])&ve.hash_mask,Ae=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart,--ve.match_length!=0;);ve.strstart++}else ve.strstart+=ve.match_length,ve.match_length=0,ve.ins_h=ve.window[ve.strstart],ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+1])&ve.hash_mask;else Ot=Tt._tr_tally(ve,0,ve.window[ve.strstart]),ve.lookahead--,ve.strstart++;if(Ot&&(be(ve,!1),ve.strm.avail_out===0))return Vt}return ve.insert=ve.strstart<he-1?ve.strstart:he-1,hn===Jt?(be(ve,!0),ve.strm.avail_out===0?Ge:Oe):ve.last_lit&&(be(ve,!1),ve.strm.avail_out===0)?Vt:$e}function pi(ve,hn){for(var Ae,Ot,Ft;;){if(ve.lookahead<Te){if(In(ve),ve.lookahead<Te&&hn===Gt)return Vt;if(ve.lookahead===0)break}if(Ae=0,ve.lookahead>=he&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+he-1])&ve.hash_mask,Ae=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart),ve.prev_length=ve.match_length,ve.prev_match=ve.match_start,ve.match_length=he-1,Ae!==0&&ve.prev_length<ve.max_lazy_match&&ve.strstart-Ae<=ve.w_size-Te&&(ve.match_length=Xe(ve,Ae),ve.match_length<=5&&(ve.strategy===1||ve.match_length===he&&4096<ve.strstart-ve.match_start)&&(ve.match_length=he-1)),ve.prev_length>=he&&ve.match_length<=ve.prev_length){for(Ft=ve.strstart+ve.lookahead-he,Ot=Tt._tr_tally(ve,ve.strstart-1-ve.prev_match,ve.prev_length-he),ve.lookahead-=ve.prev_length-1,ve.prev_length-=2;++ve.strstart<=Ft&&(ve.ins_h=(ve.ins_h<<ve.hash_shift^ve.window[ve.strstart+he-1])&ve.hash_mask,Ae=ve.prev[ve.strstart&ve.w_mask]=ve.head[ve.ins_h],ve.head[ve.ins_h]=ve.strstart),--ve.prev_length!=0;);if(ve.match_available=0,ve.match_length=he-1,ve.strstart++,Ot&&(be(ve,!1),ve.strm.avail_out===0))return Vt}else if(ve.match_available){if((Ot=Tt._tr_tally(ve,0,ve.window[ve.strstart-1]))&&be(ve,!1),ve.strstart++,ve.lookahead--,ve.strm.avail_out===0)return Vt}else ve.match_available=1,ve.strstart++,ve.lookahead--}return ve.match_available&&(Ot=Tt._tr_tally(ve,0,ve.window[ve.strstart-1]),ve.match_available=0),ve.insert=ve.strstart<he-1?ve.strstart:he-1,hn===Jt?(be(ve,!0),ve.strm.avail_out===0?Ge:Oe):ve.last_lit&&(be(ve,!1),ve.strm.avail_out===0)?Vt:$e}function $n(ve,hn,Ae,Ot,Ft){this.good_length=ve,this.max_lazy=hn,this.nice_length=Ae,this.max_chain=Ot,this.func=Ft}function bi(){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=ht,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 Et.Buf16(2*Rt),this.dyn_dtree=new Et.Buf16(2*(2*Mt+1)),this.bl_tree=new Et.Buf16(2*(2*jt+1)),xe(this.dyn_ltree),xe(this.dyn_dtree),xe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Et.Buf16(ae+1),this.heap=new Et.Buf16(2*yt+1),xe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Et.Buf16(2*yt+1),xe(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 sn(ve){var hn;return ve&&ve.state?(ve.total_in=ve.total_out=0,ve.data_type=rt,(hn=ve.state).pending=0,hn.pending_out=0,hn.wrap<0&&(hn.wrap=-hn.wrap),hn.status=hn.wrap?ne:Ke,ve.adler=hn.wrap===2?0:1,hn.last_flush=Gt,Tt._tr_init(hn),wt):Ve(ve,et)}function Li(ve){var hn=sn(ve);return hn===wt&&function(Ae){Ae.window_size=2*Ae.w_size,xe(Ae.head),Ae.max_lazy_match=le[Ae.level].max_lazy,Ae.good_match=le[Ae.level].good_length,Ae.nice_match=le[Ae.level].nice_length,Ae.max_chain_length=le[Ae.level].max_chain,Ae.strstart=0,Ae.block_start=0,Ae.lookahead=0,Ae.insert=0,Ae.match_length=Ae.prev_length=he-1,Ae.match_available=0,Ae.ins_h=0}(ve.state),hn}function ji(ve,hn,Ae,Ot,Ft,Kt){if(!ve)return et;var Ee=1;if(hn===tt&&(hn=6),Ot<0?(Ee=0,Ot=-Ot):15<Ot&&(Ee=2,Ot-=16),Ft<1||dt<Ft||Ae!==ht||Ot<8||15<Ot||hn<0||9<hn||Kt<0||lt<Kt)return Ve(ve,et);Ot===8&&(Ot=9);var je=new bi;return(ve.state=je).strm=ve,je.wrap=Ee,je.gzhead=null,je.w_bits=Ot,je.w_size=1<<je.w_bits,je.w_mask=je.w_size-1,je.hash_bits=Ft+7,je.hash_size=1<<je.hash_bits,je.hash_mask=je.hash_size-1,je.hash_shift=~~((je.hash_bits+he-1)/he),je.window=new Et.Buf8(2*je.w_size),je.head=new Et.Buf16(je.hash_size),je.prev=new Et.Buf16(je.w_size),je.lit_bufsize=1<<Ft+6,je.pending_buf_size=4*je.lit_bufsize,je.pending_buf=new Et.Buf8(je.pending_buf_size),je.d_buf=1*je.lit_bufsize,je.l_buf=3*je.lit_bufsize,je.level=hn,je.strategy=Kt,je.method=Ae,Li(ve)}le=[new $n(0,0,0,0,function(ve,hn){var Ae=65535;for(Ae>ve.pending_buf_size-5&&(Ae=ve.pending_buf_size-5);;){if(ve.lookahead<=1){if(In(ve),ve.lookahead===0&&hn===Gt)return Vt;if(ve.lookahead===0)break}ve.strstart+=ve.lookahead,ve.lookahead=0;var Ot=ve.block_start+Ae;if((ve.strstart===0||ve.strstart>=Ot)&&(ve.lookahead=ve.strstart-Ot,ve.strstart=Ot,be(ve,!1),ve.strm.avail_out===0)||ve.strstart-ve.block_start>=ve.w_size-Te&&(be(ve,!1),ve.strm.avail_out===0))return Vt}return ve.insert=0,hn===Jt?(be(ve,!0),ve.strm.avail_out===0?Ge:Oe):(ve.strstart>ve.block_start&&(be(ve,!1),ve.strm.avail_out),Vt)}),new $n(4,4,8,4,Xn),new $n(4,5,16,8,Xn),new $n(4,6,32,32,Xn),new $n(4,4,16,16,pi),new $n(8,16,32,32,pi),new $n(8,16,128,128,pi),new $n(8,32,128,256,pi),new $n(32,128,258,1024,pi),new $n(32,258,258,4096,pi)],re.deflateInit=function(ve,hn){return ji(ve,hn,ht,15,8,0)},re.deflateInit2=ji,re.deflateReset=Li,re.deflateResetKeep=sn,re.deflateSetHeader=function(ve,hn){return ve&&ve.state?ve.state.wrap!==2?et:(ve.state.gzhead=hn,wt):et},re.deflate=function(ve,hn){var Ae,Ot,Ft,Kt;if(!ve||!ve.state||5<hn||hn<0)return ve?Ve(ve,et):et;if(Ot=ve.state,!ve.output||!ve.input&&ve.avail_in!==0||Ot.status===666&&hn!==Jt)return Ve(ve,ve.avail_out===0?-5:et);if(Ot.strm=ve,Ae=Ot.last_flush,Ot.last_flush=hn,Ot.status===ne)if(Ot.wrap===2)ve.adler=0,Fn(Ot,31),Fn(Ot,139),Fn(Ot,8),Ot.gzhead?(Fn(Ot,(Ot.gzhead.text?1:0)+(Ot.gzhead.hcrc?2:0)+(Ot.gzhead.extra?4:0)+(Ot.gzhead.name?8:0)+(Ot.gzhead.comment?16:0)),Fn(Ot,255&Ot.gzhead.time),Fn(Ot,Ot.gzhead.time>>8&255),Fn(Ot,Ot.gzhead.time>>16&255),Fn(Ot,Ot.gzhead.time>>24&255),Fn(Ot,Ot.level===9?2:2<=Ot.strategy||Ot.level<2?4:0),Fn(Ot,255&Ot.gzhead.os),Ot.gzhead.extra&&Ot.gzhead.extra.length&&(Fn(Ot,255&Ot.gzhead.extra.length),Fn(Ot,Ot.gzhead.extra.length>>8&255)),Ot.gzhead.hcrc&&(ve.adler=Ct(ve.adler,Ot.pending_buf,Ot.pending,0)),Ot.gzindex=0,Ot.status=69):(Fn(Ot,0),Fn(Ot,0),Fn(Ot,0),Fn(Ot,0),Fn(Ot,0),Fn(Ot,Ot.level===9?2:2<=Ot.strategy||Ot.level<2?4:0),Fn(Ot,3),Ot.status=Ke);else{var Ee=ht+(Ot.w_bits-8<<4)<<8;Ee|=(2<=Ot.strategy||Ot.level<2?0:Ot.level<6?1:Ot.level===6?2:3)<<6,Ot.strstart!==0&&(Ee|=32),Ee+=31-Ee%31,Ot.status=Ke,Mn(Ot,Ee),Ot.strstart!==0&&(Mn(Ot,ve.adler>>>16),Mn(Ot,65535&ve.adler)),ve.adler=1}if(Ot.status===69)if(Ot.gzhead.extra){for(Ft=Ot.pending;Ot.gzindex<(65535&Ot.gzhead.extra.length)&&(Ot.pending!==Ot.pending_buf_size||(Ot.gzhead.hcrc&&Ot.pending>Ft&&(ve.adler=Ct(ve.adler,Ot.pending_buf,Ot.pending-Ft,Ft)),ie(ve),Ft=Ot.pending,Ot.pending!==Ot.pending_buf_size));)Fn(Ot,255&Ot.gzhead.extra[Ot.gzindex]),Ot.gzindex++;Ot.gzhead.hcrc&&Ot.pending>Ft&&(ve.adler=Ct(ve.adler,Ot.pending_buf,Ot.pending-Ft,Ft)),Ot.gzindex===Ot.gzhead.extra.length&&(Ot.gzindex=0,Ot.status=73)}else Ot.status=73;if(Ot.status===73)if(Ot.gzhead.name){Ft=Ot.pending;do{if(Ot.pending===Ot.pending_buf_size&&(Ot.gzhead.hcrc&&Ot.pending>Ft&&(ve.adler=Ct(ve.adler,Ot.pending_buf,Ot.pending-Ft,Ft)),ie(ve),Ft=Ot.pending,Ot.pending===Ot.pending_buf_size)){Kt=1;break}Kt=Ot.gzindex<Ot.gzhead.name.length?255&Ot.gzhead.name.charCodeAt(Ot.gzindex++):0,Fn(Ot,Kt)}while(Kt!==0);Ot.gzhead.hcrc&&Ot.pending>Ft&&(ve.adler=Ct(ve.adler,Ot.pending_buf,Ot.pending-Ft,Ft)),Kt===0&&(Ot.gzindex=0,Ot.status=91)}else Ot.status=91;if(Ot.status===91)if(Ot.gzhead.comment){Ft=Ot.pending;do{if(Ot.pending===Ot.pending_buf_size&&(Ot.gzhead.hcrc&&Ot.pending>Ft&&(ve.adler=Ct(ve.adler,Ot.pending_buf,Ot.pending-Ft,Ft)),ie(ve),Ft=Ot.pending,Ot.pending===Ot.pending_buf_size)){Kt=1;break}Kt=Ot.gzindex<Ot.gzhead.comment.length?255&Ot.gzhead.comment.charCodeAt(Ot.gzindex++):0,Fn(Ot,Kt)}while(Kt!==0);Ot.gzhead.hcrc&&Ot.pending>Ft&&(ve.adler=Ct(ve.adler,Ot.pending_buf,Ot.pending-Ft,Ft)),Kt===0&&(Ot.status=103)}else Ot.status=103;if(Ot.status===103&&(Ot.gzhead.hcrc?(Ot.pending+2>Ot.pending_buf_size&&ie(ve),Ot.pending+2<=Ot.pending_buf_size&&(Fn(Ot,255&ve.adler),Fn(Ot,ve.adler>>8&255),ve.adler=0,Ot.status=Ke)):Ot.status=Ke),Ot.pending!==0){if(ie(ve),ve.avail_out===0)return Ot.last_flush=-1,wt}else if(ve.avail_in===0&&_e(hn)<=_e(Ae)&&hn!==Jt)return Ve(ve,-5);if(Ot.status===666&&ve.avail_in!==0)return Ve(ve,-5);if(ve.avail_in!==0||Ot.lookahead!==0||hn!==Gt&&Ot.status!==666){var je=Ot.strategy===2?function(ce,Be){for(var $t;;){if(ce.lookahead===0&&(In(ce),ce.lookahead===0)){if(Be===Gt)return Vt;break}if(ce.match_length=0,$t=Tt._tr_tally(ce,0,ce.window[ce.strstart]),ce.lookahead--,ce.strstart++,$t&&(be(ce,!1),ce.strm.avail_out===0))return Vt}return ce.insert=0,Be===Jt?(be(ce,!0),ce.strm.avail_out===0?Ge:Oe):ce.last_lit&&(be(ce,!1),ce.strm.avail_out===0)?Vt:$e}(Ot,hn):Ot.strategy===3?function(ce,Be){for(var $t,Pt,mt,Zt,Se=ce.window;;){if(ce.lookahead<=pe){if(In(ce),ce.lookahead<=pe&&Be===Gt)return Vt;if(ce.lookahead===0)break}if(ce.match_length=0,ce.lookahead>=he&&0<ce.strstart&&(Pt=Se[mt=ce.strstart-1])===Se[++mt]&&Pt===Se[++mt]&&Pt===Se[++mt]){Zt=ce.strstart+pe;do;while(Pt===Se[++mt]&&Pt===Se[++mt]&&Pt===Se[++mt]&&Pt===Se[++mt]&&Pt===Se[++mt]&&Pt===Se[++mt]&&Pt===Se[++mt]&&Pt===Se[++mt]&&mt<Zt);ce.match_length=pe-(Zt-mt),ce.match_length>ce.lookahead&&(ce.match_length=ce.lookahead)}if(ce.match_length>=he?($t=Tt._tr_tally(ce,1,ce.match_length-he),ce.lookahead-=ce.match_length,ce.strstart+=ce.match_length,ce.match_length=0):($t=Tt._tr_tally(ce,0,ce.window[ce.strstart]),ce.lookahead--,ce.strstart++),$t&&(be(ce,!1),ce.strm.avail_out===0))return Vt}return ce.insert=0,Be===Jt?(be(ce,!0),ce.strm.avail_out===0?Ge:Oe):ce.last_lit&&(be(ce,!1),ce.strm.avail_out===0)?Vt:$e}(Ot,hn):le[Ot.level].func(Ot,hn);if(je!==Ge&&je!==Oe||(Ot.status=666),je===Vt||je===Ge)return ve.avail_out===0&&(Ot.last_flush=-1),wt;if(je===$e&&(hn===1?Tt._tr_align(Ot):hn!==5&&(Tt._tr_stored_block(Ot,0,0,!1),hn===3&&(xe(Ot.head),Ot.lookahead===0&&(Ot.strstart=0,Ot.block_start=0,Ot.insert=0))),ie(ve),ve.avail_out===0))return Ot.last_flush=-1,wt}return hn!==Jt?wt:Ot.wrap<=0?1:(Ot.wrap===2?(Fn(Ot,255&ve.adler),Fn(Ot,ve.adler>>8&255),Fn(Ot,ve.adler>>16&255),Fn(Ot,ve.adler>>24&255),Fn(Ot,255&ve.total_in),Fn(Ot,ve.total_in>>8&255),Fn(Ot,ve.total_in>>16&255),Fn(Ot,ve.total_in>>24&255)):(Mn(Ot,ve.adler>>>16),Mn(Ot,65535&ve.adler)),ie(ve),0<Ot.wrap&&(Ot.wrap=-Ot.wrap),Ot.pending!==0?wt:1)},re.deflateEnd=function(ve){var hn;return ve&&ve.state?(hn=ve.state.status)!==ne&&hn!==69&&hn!==73&&hn!==91&&hn!==103&&hn!==Ke&&hn!==666?Ve(ve,et):(ve.state=null,hn===Ke?Ve(ve,-3):wt):et},re.deflateSetDictionary=function(ve,hn){var Ae,Ot,Ft,Kt,Ee,je,ce,Be,$t=hn.length;if(!ve||!ve.state||(Kt=(Ae=ve.state).wrap)===2||Kt===1&&Ae.status!==ne||Ae.lookahead)return et;for(Kt===1&&(ve.adler=ee(ve.adler,hn,$t,0)),Ae.wrap=0,$t>=Ae.w_size&&(Kt===0&&(xe(Ae.head),Ae.strstart=0,Ae.block_start=0,Ae.insert=0),Be=new Et.Buf8(Ae.w_size),Et.arraySet(Be,hn,$t-Ae.w_size,Ae.w_size,0),hn=Be,$t=Ae.w_size),Ee=ve.avail_in,je=ve.next_in,ce=ve.input,ve.avail_in=$t,ve.next_in=0,ve.input=hn,In(Ae);Ae.lookahead>=he;){for(Ot=Ae.strstart,Ft=Ae.lookahead-(he-1);Ae.ins_h=(Ae.ins_h<<Ae.hash_shift^Ae.window[Ot+he-1])&Ae.hash_mask,Ae.prev[Ot&Ae.w_mask]=Ae.head[Ae.ins_h],Ae.head[Ae.ins_h]=Ot,Ot++,--Ft;);Ae.strstart=Ot,Ae.lookahead=he-1,In(Ae)}return Ae.strstart+=Ae.lookahead,Ae.block_start=Ae.strstart,Ae.insert=Ae.lookahead,Ae.lookahead=0,Ae.match_length=Ae.prev_length=he-1,Ae.match_available=0,ve.next_in=je,ve.input=ce,ve.avail_in=Ee,Ae.wrap=Kt,wt},re.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(se,De,re){"use strict";De.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,De,re){"use strict";De.exports=function(le,Et){var Tt,ee,Ct,Wt,Gt,Jt,wt,et,tt,lt,rt,ht,dt,yt,Mt,jt,Rt,ae,he,pe,Te,ne,Ke,Vt,$e;Tt=le.state,ee=le.next_in,Vt=le.input,Ct=ee+(le.avail_in-5),Wt=le.next_out,$e=le.output,Gt=Wt-(Et-le.avail_out),Jt=Wt+(le.avail_out-257),wt=Tt.dmax,et=Tt.wsize,tt=Tt.whave,lt=Tt.wnext,rt=Tt.window,ht=Tt.hold,dt=Tt.bits,yt=Tt.lencode,Mt=Tt.distcode,jt=(1<<Tt.lenbits)-1,Rt=(1<<Tt.distbits)-1;t:do{dt<15&&(ht+=Vt[ee++]<<dt,dt+=8,ht+=Vt[ee++]<<dt,dt+=8),ae=yt[ht&jt];e:for(;;){if(ht>>>=he=ae>>>24,dt-=he,(he=ae>>>16&255)===0)$e[Wt++]=65535&ae;else{if(!(16&he)){if(!(64&he)){ae=yt[(65535&ae)+(ht&(1<<he)-1)];continue e}if(32&he){Tt.mode=12;break t}le.msg="invalid literal/length code",Tt.mode=30;break t}pe=65535&ae,(he&=15)&&(dt<he&&(ht+=Vt[ee++]<<dt,dt+=8),pe+=ht&(1<<he)-1,ht>>>=he,dt-=he),dt<15&&(ht+=Vt[ee++]<<dt,dt+=8,ht+=Vt[ee++]<<dt,dt+=8),ae=Mt[ht&Rt];n:for(;;){if(ht>>>=he=ae>>>24,dt-=he,!(16&(he=ae>>>16&255))){if(!(64&he)){ae=Mt[(65535&ae)+(ht&(1<<he)-1)];continue n}le.msg="invalid distance code",Tt.mode=30;break t}if(Te=65535&ae,dt<(he&=15)&&(ht+=Vt[ee++]<<dt,(dt+=8)<he&&(ht+=Vt[ee++]<<dt,dt+=8)),wt<(Te+=ht&(1<<he)-1)){le.msg="invalid distance too far back",Tt.mode=30;break t}if(ht>>>=he,dt-=he,(he=Wt-Gt)<Te){if(tt<(he=Te-he)&&Tt.sane){le.msg="invalid distance too far back",Tt.mode=30;break t}if(Ke=rt,(ne=0)===lt){if(ne+=et-he,he<pe){for(pe-=he;$e[Wt++]=rt[ne++],--he;);ne=Wt-Te,Ke=$e}}else if(lt<he){if(ne+=et+lt-he,(he-=lt)<pe){for(pe-=he;$e[Wt++]=rt[ne++],--he;);if(ne=0,lt<pe){for(pe-=he=lt;$e[Wt++]=rt[ne++],--he;);ne=Wt-Te,Ke=$e}}}else if(ne+=lt-he,he<pe){for(pe-=he;$e[Wt++]=rt[ne++],--he;);ne=Wt-Te,Ke=$e}for(;2<pe;)$e[Wt++]=Ke[ne++],$e[Wt++]=Ke[ne++],$e[Wt++]=Ke[ne++],pe-=3;pe&&($e[Wt++]=Ke[ne++],1<pe&&($e[Wt++]=Ke[ne++]))}else{for(ne=Wt-Te;$e[Wt++]=$e[ne++],$e[Wt++]=$e[ne++],$e[Wt++]=$e[ne++],2<(pe-=3););pe&&($e[Wt++]=$e[ne++],1<pe&&($e[Wt++]=$e[ne++]))}break}}break}}while(ee<Ct&&Wt<Jt);ee-=pe=dt>>3,ht&=(1<<(dt-=pe<<3))-1,le.next_in=ee,le.next_out=Wt,le.avail_in=ee<Ct?Ct-ee+5:5-(ee-Ct),le.avail_out=Wt<Jt?Jt-Wt+257:257-(Wt-Jt),Tt.hold=ht,Tt.bits=dt}},{}],49:[function(se,De,re){"use strict";var le=se("../utils/common"),Et=se("./adler32"),Tt=se("./crc32"),ee=se("./inffast"),Ct=se("./inftrees"),Wt=1,Gt=2,Jt=0,wt=-2,et=1,tt=852,lt=592;function rt(ne){return(ne>>>24&255)+(ne>>>8&65280)+((65280&ne)<<8)+((255&ne)<<24)}function ht(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new le.Buf16(320),this.work=new le.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function dt(ne){var Ke;return ne&&ne.state?(Ke=ne.state,ne.total_in=ne.total_out=Ke.total=0,ne.msg="",Ke.wrap&&(ne.adler=1&Ke.wrap),Ke.mode=et,Ke.last=0,Ke.havedict=0,Ke.dmax=32768,Ke.head=null,Ke.hold=0,Ke.bits=0,Ke.lencode=Ke.lendyn=new le.Buf32(tt),Ke.distcode=Ke.distdyn=new le.Buf32(lt),Ke.sane=1,Ke.back=-1,Jt):wt}function yt(ne){var Ke;return ne&&ne.state?((Ke=ne.state).wsize=0,Ke.whave=0,Ke.wnext=0,dt(ne)):wt}function Mt(ne,Ke){var Vt,$e;return ne&&ne.state?($e=ne.state,Ke<0?(Vt=0,Ke=-Ke):(Vt=1+(Ke>>4),Ke<48&&(Ke&=15)),Ke&&(Ke<8||15<Ke)?wt:($e.window!==null&&$e.wbits!==Ke&&($e.window=null),$e.wrap=Vt,$e.wbits=Ke,yt(ne))):wt}function jt(ne,Ke){var Vt,$e;return ne?($e=new ht,(ne.state=$e).window=null,(Vt=Mt(ne,Ke))!==Jt&&(ne.state=null),Vt):wt}var Rt,ae,he=!0;function pe(ne){if(he){var Ke;for(Rt=new le.Buf32(512),ae=new le.Buf32(32),Ke=0;Ke<144;)ne.lens[Ke++]=8;for(;Ke<256;)ne.lens[Ke++]=9;for(;Ke<280;)ne.lens[Ke++]=7;for(;Ke<288;)ne.lens[Ke++]=8;for(Ct(Wt,ne.lens,0,288,Rt,0,ne.work,{bits:9}),Ke=0;Ke<32;)ne.lens[Ke++]=5;Ct(Gt,ne.lens,0,32,ae,0,ne.work,{bits:5}),he=!1}ne.lencode=Rt,ne.lenbits=9,ne.distcode=ae,ne.distbits=5}function Te(ne,Ke,Vt,$e){var Ge,Oe=ne.state;return Oe.window===null&&(Oe.wsize=1<<Oe.wbits,Oe.wnext=0,Oe.whave=0,Oe.window=new le.Buf8(Oe.wsize)),$e>=Oe.wsize?(le.arraySet(Oe.window,Ke,Vt-Oe.wsize,Oe.wsize,0),Oe.wnext=0,Oe.whave=Oe.wsize):($e<(Ge=Oe.wsize-Oe.wnext)&&(Ge=$e),le.arraySet(Oe.window,Ke,Vt-$e,Ge,Oe.wnext),($e-=Ge)?(le.arraySet(Oe.window,Ke,Vt-$e,$e,0),Oe.wnext=$e,Oe.whave=Oe.wsize):(Oe.wnext+=Ge,Oe.wnext===Oe.wsize&&(Oe.wnext=0),Oe.whave<Oe.wsize&&(Oe.whave+=Ge))),0}re.inflateReset=yt,re.inflateReset2=Mt,re.inflateResetKeep=dt,re.inflateInit=function(ne){return jt(ne,15)},re.inflateInit2=jt,re.inflate=function(ne,Ke){var Vt,$e,Ge,Oe,Ve,_e,xe,ie,be,Fn,Mn,Xe,In,Xn,pi,$n,bi,sn,Li,ji,ve,hn,Ae,Ot,Ft=0,Kt=new le.Buf8(4),Ee=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ne||!ne.state||!ne.output||!ne.input&&ne.avail_in!==0)return wt;(Vt=ne.state).mode===12&&(Vt.mode=13),Ve=ne.next_out,Ge=ne.output,xe=ne.avail_out,Oe=ne.next_in,$e=ne.input,_e=ne.avail_in,ie=Vt.hold,be=Vt.bits,Fn=_e,Mn=xe,hn=Jt;t:for(;;)switch(Vt.mode){case et:if(Vt.wrap===0){Vt.mode=13;break}for(;be<16;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if(2&Vt.wrap&&ie===35615){Kt[Vt.check=0]=255&ie,Kt[1]=ie>>>8&255,Vt.check=Tt(Vt.check,Kt,2,0),be=ie=0,Vt.mode=2;break}if(Vt.flags=0,Vt.head&&(Vt.head.done=!1),!(1&Vt.wrap)||(((255&ie)<<8)+(ie>>8))%31){ne.msg="incorrect header check",Vt.mode=30;break}if((15&ie)!=8){ne.msg="unknown compression method",Vt.mode=30;break}if(be-=4,ve=8+(15&(ie>>>=4)),Vt.wbits===0)Vt.wbits=ve;else if(ve>Vt.wbits){ne.msg="invalid window size",Vt.mode=30;break}Vt.dmax=1<<ve,ne.adler=Vt.check=1,Vt.mode=512&ie?10:12,be=ie=0;break;case 2:for(;be<16;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if(Vt.flags=ie,(255&Vt.flags)!=8){ne.msg="unknown compression method",Vt.mode=30;break}if(57344&Vt.flags){ne.msg="unknown header flags set",Vt.mode=30;break}Vt.head&&(Vt.head.text=ie>>8&1),512&Vt.flags&&(Kt[0]=255&ie,Kt[1]=ie>>>8&255,Vt.check=Tt(Vt.check,Kt,2,0)),be=ie=0,Vt.mode=3;case 3:for(;be<32;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}Vt.head&&(Vt.head.time=ie),512&Vt.flags&&(Kt[0]=255&ie,Kt[1]=ie>>>8&255,Kt[2]=ie>>>16&255,Kt[3]=ie>>>24&255,Vt.check=Tt(Vt.check,Kt,4,0)),be=ie=0,Vt.mode=4;case 4:for(;be<16;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}Vt.head&&(Vt.head.xflags=255&ie,Vt.head.os=ie>>8),512&Vt.flags&&(Kt[0]=255&ie,Kt[1]=ie>>>8&255,Vt.check=Tt(Vt.check,Kt,2,0)),be=ie=0,Vt.mode=5;case 5:if(1024&Vt.flags){for(;be<16;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}Vt.length=ie,Vt.head&&(Vt.head.extra_len=ie),512&Vt.flags&&(Kt[0]=255&ie,Kt[1]=ie>>>8&255,Vt.check=Tt(Vt.check,Kt,2,0)),be=ie=0}else Vt.head&&(Vt.head.extra=null);Vt.mode=6;case 6:if(1024&Vt.flags&&(_e<(Xe=Vt.length)&&(Xe=_e),Xe&&(Vt.head&&(ve=Vt.head.extra_len-Vt.length,Vt.head.extra||(Vt.head.extra=new Array(Vt.head.extra_len)),le.arraySet(Vt.head.extra,$e,Oe,Xe,ve)),512&Vt.flags&&(Vt.check=Tt(Vt.check,$e,Xe,Oe)),_e-=Xe,Oe+=Xe,Vt.length-=Xe),Vt.length))break t;Vt.length=0,Vt.mode=7;case 7:if(2048&Vt.flags){if(_e===0)break t;for(Xe=0;ve=$e[Oe+Xe++],Vt.head&&ve&&Vt.length<65536&&(Vt.head.name+=String.fromCharCode(ve)),ve&&Xe<_e;);if(512&Vt.flags&&(Vt.check=Tt(Vt.check,$e,Xe,Oe)),_e-=Xe,Oe+=Xe,ve)break t}else Vt.head&&(Vt.head.name=null);Vt.length=0,Vt.mode=8;case 8:if(4096&Vt.flags){if(_e===0)break t;for(Xe=0;ve=$e[Oe+Xe++],Vt.head&&ve&&Vt.length<65536&&(Vt.head.comment+=String.fromCharCode(ve)),ve&&Xe<_e;);if(512&Vt.flags&&(Vt.check=Tt(Vt.check,$e,Xe,Oe)),_e-=Xe,Oe+=Xe,ve)break t}else Vt.head&&(Vt.head.comment=null);Vt.mode=9;case 9:if(512&Vt.flags){for(;be<16;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if(ie!==(65535&Vt.check)){ne.msg="header crc mismatch",Vt.mode=30;break}be=ie=0}Vt.head&&(Vt.head.hcrc=Vt.flags>>9&1,Vt.head.done=!0),ne.adler=Vt.check=0,Vt.mode=12;break;case 10:for(;be<32;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}ne.adler=Vt.check=rt(ie),be=ie=0,Vt.mode=11;case 11:if(Vt.havedict===0)return ne.next_out=Ve,ne.avail_out=xe,ne.next_in=Oe,ne.avail_in=_e,Vt.hold=ie,Vt.bits=be,2;ne.adler=Vt.check=1,Vt.mode=12;case 12:if(Ke===5||Ke===6)break t;case 13:if(Vt.last){ie>>>=7&be,be-=7&be,Vt.mode=27;break}for(;be<3;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}switch(Vt.last=1&ie,be-=1,3&(ie>>>=1)){case 0:Vt.mode=14;break;case 1:if(pe(Vt),Vt.mode=20,Ke!==6)break;ie>>>=2,be-=2;break t;case 2:Vt.mode=17;break;case 3:ne.msg="invalid block type",Vt.mode=30}ie>>>=2,be-=2;break;case 14:for(ie>>>=7&be,be-=7&be;be<32;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if((65535&ie)!=(ie>>>16^65535)){ne.msg="invalid stored block lengths",Vt.mode=30;break}if(Vt.length=65535&ie,be=ie=0,Vt.mode=15,Ke===6)break t;case 15:Vt.mode=16;case 16:if(Xe=Vt.length){if(_e<Xe&&(Xe=_e),xe<Xe&&(Xe=xe),Xe===0)break t;le.arraySet(Ge,$e,Oe,Xe,Ve),_e-=Xe,Oe+=Xe,xe-=Xe,Ve+=Xe,Vt.length-=Xe;break}Vt.mode=12;break;case 17:for(;be<14;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if(Vt.nlen=257+(31&ie),ie>>>=5,be-=5,Vt.ndist=1+(31&ie),ie>>>=5,be-=5,Vt.ncode=4+(15&ie),ie>>>=4,be-=4,286<Vt.nlen||30<Vt.ndist){ne.msg="too many length or distance symbols",Vt.mode=30;break}Vt.have=0,Vt.mode=18;case 18:for(;Vt.have<Vt.ncode;){for(;be<3;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}Vt.lens[Ee[Vt.have++]]=7&ie,ie>>>=3,be-=3}for(;Vt.have<19;)Vt.lens[Ee[Vt.have++]]=0;if(Vt.lencode=Vt.lendyn,Vt.lenbits=7,Ae={bits:Vt.lenbits},hn=Ct(0,Vt.lens,0,19,Vt.lencode,0,Vt.work,Ae),Vt.lenbits=Ae.bits,hn){ne.msg="invalid code lengths set",Vt.mode=30;break}Vt.have=0,Vt.mode=19;case 19:for(;Vt.have<Vt.nlen+Vt.ndist;){for(;$n=(Ft=Vt.lencode[ie&(1<<Vt.lenbits)-1])>>>16&255,bi=65535&Ft,!((pi=Ft>>>24)<=be);){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if(bi<16)ie>>>=pi,be-=pi,Vt.lens[Vt.have++]=bi;else{if(bi===16){for(Ot=pi+2;be<Ot;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if(ie>>>=pi,be-=pi,Vt.have===0){ne.msg="invalid bit length repeat",Vt.mode=30;break}ve=Vt.lens[Vt.have-1],Xe=3+(3&ie),ie>>>=2,be-=2}else if(bi===17){for(Ot=pi+3;be<Ot;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}be-=pi,ve=0,Xe=3+(7&(ie>>>=pi)),ie>>>=3,be-=3}else{for(Ot=pi+7;be<Ot;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}be-=pi,ve=0,Xe=11+(127&(ie>>>=pi)),ie>>>=7,be-=7}if(Vt.have+Xe>Vt.nlen+Vt.ndist){ne.msg="invalid bit length repeat",Vt.mode=30;break}for(;Xe--;)Vt.lens[Vt.have++]=ve}}if(Vt.mode===30)break;if(Vt.lens[256]===0){ne.msg="invalid code -- missing end-of-block",Vt.mode=30;break}if(Vt.lenbits=9,Ae={bits:Vt.lenbits},hn=Ct(Wt,Vt.lens,0,Vt.nlen,Vt.lencode,0,Vt.work,Ae),Vt.lenbits=Ae.bits,hn){ne.msg="invalid literal/lengths set",Vt.mode=30;break}if(Vt.distbits=6,Vt.distcode=Vt.distdyn,Ae={bits:Vt.distbits},hn=Ct(Gt,Vt.lens,Vt.nlen,Vt.ndist,Vt.distcode,0,Vt.work,Ae),Vt.distbits=Ae.bits,hn){ne.msg="invalid distances set",Vt.mode=30;break}if(Vt.mode=20,Ke===6)break t;case 20:Vt.mode=21;case 21:if(6<=_e&&258<=xe){ne.next_out=Ve,ne.avail_out=xe,ne.next_in=Oe,ne.avail_in=_e,Vt.hold=ie,Vt.bits=be,ee(ne,Mn),Ve=ne.next_out,Ge=ne.output,xe=ne.avail_out,Oe=ne.next_in,$e=ne.input,_e=ne.avail_in,ie=Vt.hold,be=Vt.bits,Vt.mode===12&&(Vt.back=-1);break}for(Vt.back=0;$n=(Ft=Vt.lencode[ie&(1<<Vt.lenbits)-1])>>>16&255,bi=65535&Ft,!((pi=Ft>>>24)<=be);){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if($n&&!(240&$n)){for(sn=pi,Li=$n,ji=bi;$n=(Ft=Vt.lencode[ji+((ie&(1<<sn+Li)-1)>>sn)])>>>16&255,bi=65535&Ft,!(sn+(pi=Ft>>>24)<=be);){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}ie>>>=sn,be-=sn,Vt.back+=sn}if(ie>>>=pi,be-=pi,Vt.back+=pi,Vt.length=bi,$n===0){Vt.mode=26;break}if(32&$n){Vt.back=-1,Vt.mode=12;break}if(64&$n){ne.msg="invalid literal/length code",Vt.mode=30;break}Vt.extra=15&$n,Vt.mode=22;case 22:if(Vt.extra){for(Ot=Vt.extra;be<Ot;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}Vt.length+=ie&(1<<Vt.extra)-1,ie>>>=Vt.extra,be-=Vt.extra,Vt.back+=Vt.extra}Vt.was=Vt.length,Vt.mode=23;case 23:for(;$n=(Ft=Vt.distcode[ie&(1<<Vt.distbits)-1])>>>16&255,bi=65535&Ft,!((pi=Ft>>>24)<=be);){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if(!(240&$n)){for(sn=pi,Li=$n,ji=bi;$n=(Ft=Vt.distcode[ji+((ie&(1<<sn+Li)-1)>>sn)])>>>16&255,bi=65535&Ft,!(sn+(pi=Ft>>>24)<=be);){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}ie>>>=sn,be-=sn,Vt.back+=sn}if(ie>>>=pi,be-=pi,Vt.back+=pi,64&$n){ne.msg="invalid distance code",Vt.mode=30;break}Vt.offset=bi,Vt.extra=15&$n,Vt.mode=24;case 24:if(Vt.extra){for(Ot=Vt.extra;be<Ot;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}Vt.offset+=ie&(1<<Vt.extra)-1,ie>>>=Vt.extra,be-=Vt.extra,Vt.back+=Vt.extra}if(Vt.offset>Vt.dmax){ne.msg="invalid distance too far back",Vt.mode=30;break}Vt.mode=25;case 25:if(xe===0)break t;if(Xe=Mn-xe,Vt.offset>Xe){if((Xe=Vt.offset-Xe)>Vt.whave&&Vt.sane){ne.msg="invalid distance too far back",Vt.mode=30;break}In=Xe>Vt.wnext?(Xe-=Vt.wnext,Vt.wsize-Xe):Vt.wnext-Xe,Xe>Vt.length&&(Xe=Vt.length),Xn=Vt.window}else Xn=Ge,In=Ve-Vt.offset,Xe=Vt.length;for(xe<Xe&&(Xe=xe),xe-=Xe,Vt.length-=Xe;Ge[Ve++]=Xn[In++],--Xe;);Vt.length===0&&(Vt.mode=21);break;case 26:if(xe===0)break t;Ge[Ve++]=Vt.length,xe--,Vt.mode=21;break;case 27:if(Vt.wrap){for(;be<32;){if(_e===0)break t;_e--,ie|=$e[Oe++]<<be,be+=8}if(Mn-=xe,ne.total_out+=Mn,Vt.total+=Mn,Mn&&(ne.adler=Vt.check=Vt.flags?Tt(Vt.check,Ge,Mn,Ve-Mn):Et(Vt.check,Ge,Mn,Ve-Mn)),Mn=xe,(Vt.flags?ie:rt(ie))!==Vt.check){ne.msg="incorrect data check",Vt.mode=30;break}be=ie=0}Vt.mode=28;case 28:if(Vt.wrap&&Vt.flags){for(;be<32;){if(_e===0)break t;_e--,ie+=$e[Oe++]<<be,be+=8}if(ie!==(4294967295&Vt.total)){ne.msg="incorrect length check",Vt.mode=30;break}be=ie=0}Vt.mode=29;case 29:hn=1;break t;case 30:hn=-3;break t;case 31:return-4;case 32:default:return wt}return ne.next_out=Ve,ne.avail_out=xe,ne.next_in=Oe,ne.avail_in=_e,Vt.hold=ie,Vt.bits=be,(Vt.wsize||Mn!==ne.avail_out&&Vt.mode<30&&(Vt.mode<27||Ke!==4))&&Te(ne,ne.output,ne.next_out,Mn-ne.avail_out)?(Vt.mode=31,-4):(Fn-=ne.avail_in,Mn-=ne.avail_out,ne.total_in+=Fn,ne.total_out+=Mn,Vt.total+=Mn,Vt.wrap&&Mn&&(ne.adler=Vt.check=Vt.flags?Tt(Vt.check,Ge,Mn,ne.next_out-Mn):Et(Vt.check,Ge,Mn,ne.next_out-Mn)),ne.data_type=Vt.bits+(Vt.last?64:0)+(Vt.mode===12?128:0)+(Vt.mode===20||Vt.mode===15?256:0),(Fn==0&&Mn===0||Ke===4)&&hn===Jt&&(hn=-5),hn)},re.inflateEnd=function(ne){if(!ne||!ne.state)return wt;var Ke=ne.state;return Ke.window&&(Ke.window=null),ne.state=null,Jt},re.inflateGetHeader=function(ne,Ke){var Vt;return ne&&ne.state&&2&(Vt=ne.state).wrap?((Vt.head=Ke).done=!1,Jt):wt},re.inflateSetDictionary=function(ne,Ke){var Vt,$e=Ke.length;return ne&&ne.state?(Vt=ne.state).wrap!==0&&Vt.mode!==11?wt:Vt.mode===11&&Et(1,Ke,$e,0)!==Vt.check?-3:Te(ne,Ke,$e,$e)?(Vt.mode=31,-4):(Vt.havedict=1,Jt):wt},re.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(se,De,re){"use strict";var le=se("../utils/common"),Et=[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],Tt=[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],ee=[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],Ct=[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];De.exports=function(Wt,Gt,Jt,wt,et,tt,lt,rt){var ht,dt,yt,Mt,jt,Rt,ae,he,pe,Te=rt.bits,ne=0,Ke=0,Vt=0,$e=0,Ge=0,Oe=0,Ve=0,_e=0,xe=0,ie=0,be=null,Fn=0,Mn=new le.Buf16(16),Xe=new le.Buf16(16),In=null,Xn=0;for(ne=0;ne<=15;ne++)Mn[ne]=0;for(Ke=0;Ke<wt;Ke++)Mn[Gt[Jt+Ke]]++;for(Ge=Te,$e=15;1<=$e&&Mn[$e]===0;$e--);if($e<Ge&&(Ge=$e),$e===0)return et[tt++]=20971520,et[tt++]=20971520,rt.bits=1,0;for(Vt=1;Vt<$e&&Mn[Vt]===0;Vt++);for(Ge<Vt&&(Ge=Vt),ne=_e=1;ne<=15;ne++)if(_e<<=1,(_e-=Mn[ne])<0)return-1;if(0<_e&&(Wt===0||$e!==1))return-1;for(Xe[1]=0,ne=1;ne<15;ne++)Xe[ne+1]=Xe[ne]+Mn[ne];for(Ke=0;Ke<wt;Ke++)Gt[Jt+Ke]!==0&&(lt[Xe[Gt[Jt+Ke]]++]=Ke);if(Rt=Wt===0?(be=In=lt,19):Wt===1?(be=Et,Fn-=257,In=Tt,Xn-=257,256):(be=ee,In=Ct,-1),ne=Vt,jt=tt,Ve=Ke=ie=0,yt=-1,Mt=(xe=1<<(Oe=Ge))-1,Wt===1&&852<xe||Wt===2&&592<xe)return 1;for(;;){for(ae=ne-Ve,pe=lt[Ke]<Rt?(he=0,lt[Ke]):lt[Ke]>Rt?(he=In[Xn+lt[Ke]],be[Fn+lt[Ke]]):(he=96,0),ht=1<<ne-Ve,Vt=dt=1<<Oe;et[jt+(ie>>Ve)+(dt-=ht)]=ae<<24|he<<16|pe|0,dt!==0;);for(ht=1<<ne-1;ie&ht;)ht>>=1;if(ht!==0?(ie&=ht-1,ie+=ht):ie=0,Ke++,--Mn[ne]==0){if(ne===$e)break;ne=Gt[Jt+lt[Ke]]}if(Ge<ne&&(ie&Mt)!==yt){for(Ve===0&&(Ve=Ge),jt+=Vt,_e=1<<(Oe=ne-Ve);Oe+Ve<$e&&!((_e-=Mn[Oe+Ve])<=0);)Oe++,_e<<=1;if(xe+=1<<Oe,Wt===1&&852<xe||Wt===2&&592<xe)return 1;et[yt=ie&Mt]=Ge<<24|Oe<<16|jt-tt|0}}return ie!==0&&(et[jt+ie]=ne-Ve<<24|64<<16|0),rt.bits=Ge,0}},{"../utils/common":41}],51:[function(se,De,re){"use strict";De.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,De,re){"use strict";var le=se("../utils/common"),Et=0,Tt=1;function ee(Ft){for(var Kt=Ft.length;0<=--Kt;)Ft[Kt]=0}var Ct=0,Wt=29,Gt=256,Jt=Gt+1+Wt,wt=30,et=19,tt=2*Jt+1,lt=15,rt=16,ht=7,dt=256,yt=16,Mt=17,jt=18,Rt=[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],ae=[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],he=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Te=new Array(2*(Jt+2));ee(Te);var ne=new Array(2*wt);ee(ne);var Ke=new Array(512);ee(Ke);var Vt=new Array(256);ee(Vt);var $e=new Array(Wt);ee($e);var Ge,Oe,Ve,_e=new Array(wt);function xe(Ft,Kt,Ee,je,ce){this.static_tree=Ft,this.extra_bits=Kt,this.extra_base=Ee,this.elems=je,this.max_length=ce,this.has_stree=Ft&&Ft.length}function ie(Ft,Kt){this.dyn_tree=Ft,this.max_code=0,this.stat_desc=Kt}function be(Ft){return Ft<256?Ke[Ft]:Ke[256+(Ft>>>7)]}function Fn(Ft,Kt){Ft.pending_buf[Ft.pending++]=255&Kt,Ft.pending_buf[Ft.pending++]=Kt>>>8&255}function Mn(Ft,Kt,Ee){Ft.bi_valid>rt-Ee?(Ft.bi_buf|=Kt<<Ft.bi_valid&65535,Fn(Ft,Ft.bi_buf),Ft.bi_buf=Kt>>rt-Ft.bi_valid,Ft.bi_valid+=Ee-rt):(Ft.bi_buf|=Kt<<Ft.bi_valid&65535,Ft.bi_valid+=Ee)}function Xe(Ft,Kt,Ee){Mn(Ft,Ee[2*Kt],Ee[2*Kt+1])}function In(Ft,Kt){for(var Ee=0;Ee|=1&Ft,Ft>>>=1,Ee<<=1,0<--Kt;);return Ee>>>1}function Xn(Ft,Kt,Ee){var je,ce,Be=new Array(lt+1),$t=0;for(je=1;je<=lt;je++)Be[je]=$t=$t+Ee[je-1]<<1;for(ce=0;ce<=Kt;ce++){var Pt=Ft[2*ce+1];Pt!==0&&(Ft[2*ce]=In(Be[Pt]++,Pt))}}function pi(Ft){var Kt;for(Kt=0;Kt<Jt;Kt++)Ft.dyn_ltree[2*Kt]=0;for(Kt=0;Kt<wt;Kt++)Ft.dyn_dtree[2*Kt]=0;for(Kt=0;Kt<et;Kt++)Ft.bl_tree[2*Kt]=0;Ft.dyn_ltree[2*dt]=1,Ft.opt_len=Ft.static_len=0,Ft.last_lit=Ft.matches=0}function $n(Ft){8<Ft.bi_valid?Fn(Ft,Ft.bi_buf):0<Ft.bi_valid&&(Ft.pending_buf[Ft.pending++]=Ft.bi_buf),Ft.bi_buf=0,Ft.bi_valid=0}function bi(Ft,Kt,Ee,je){var ce=2*Kt,Be=2*Ee;return Ft[ce]<Ft[Be]||Ft[ce]===Ft[Be]&&je[Kt]<=je[Ee]}function sn(Ft,Kt,Ee){for(var je=Ft.heap[Ee],ce=Ee<<1;ce<=Ft.heap_len&&(ce<Ft.heap_len&&bi(Kt,Ft.heap[ce+1],Ft.heap[ce],Ft.depth)&&ce++,!bi(Kt,je,Ft.heap[ce],Ft.depth));)Ft.heap[Ee]=Ft.heap[ce],Ee=ce,ce<<=1;Ft.heap[Ee]=je}function Li(Ft,Kt,Ee){var je,ce,Be,$t,Pt=0;if(Ft.last_lit!==0)for(;je=Ft.pending_buf[Ft.d_buf+2*Pt]<<8|Ft.pending_buf[Ft.d_buf+2*Pt+1],ce=Ft.pending_buf[Ft.l_buf+Pt],Pt++,je===0?Xe(Ft,ce,Kt):(Xe(Ft,(Be=Vt[ce])+Gt+1,Kt),($t=Rt[Be])!==0&&Mn(Ft,ce-=$e[Be],$t),Xe(Ft,Be=be(--je),Ee),($t=ae[Be])!==0&&Mn(Ft,je-=_e[Be],$t)),Pt<Ft.last_lit;);Xe(Ft,dt,Kt)}function ji(Ft,Kt){var Ee,je,ce,Be=Kt.dyn_tree,$t=Kt.stat_desc.static_tree,Pt=Kt.stat_desc.has_stree,mt=Kt.stat_desc.elems,Zt=-1;for(Ft.heap_len=0,Ft.heap_max=tt,Ee=0;Ee<mt;Ee++)Be[2*Ee]!==0?(Ft.heap[++Ft.heap_len]=Zt=Ee,Ft.depth[Ee]=0):Be[2*Ee+1]=0;for(;Ft.heap_len<2;)Be[2*(ce=Ft.heap[++Ft.heap_len]=Zt<2?++Zt:0)]=1,Ft.depth[ce]=0,Ft.opt_len--,Pt&&(Ft.static_len-=$t[2*ce+1]);for(Kt.max_code=Zt,Ee=Ft.heap_len>>1;1<=Ee;Ee--)sn(Ft,Be,Ee);for(ce=mt;Ee=Ft.heap[1],Ft.heap[1]=Ft.heap[Ft.heap_len--],sn(Ft,Be,1),je=Ft.heap[1],Ft.heap[--Ft.heap_max]=Ee,Ft.heap[--Ft.heap_max]=je,Be[2*ce]=Be[2*Ee]+Be[2*je],Ft.depth[ce]=(Ft.depth[Ee]>=Ft.depth[je]?Ft.depth[Ee]:Ft.depth[je])+1,Be[2*Ee+1]=Be[2*je+1]=ce,Ft.heap[1]=ce++,sn(Ft,Be,1),2<=Ft.heap_len;);Ft.heap[--Ft.heap_max]=Ft.heap[1],function(Se,Dt){var Ie,nn,zn,xn,li,Qi,Wi=Dt.dyn_tree,pr=Dt.max_code,xr=Dt.stat_desc.static_tree,qr=Dt.stat_desc.has_stree,Vr=Dt.stat_desc.extra_bits,Jr=Dt.stat_desc.extra_base,Ir=Dt.stat_desc.max_length,Xr=0;for(xn=0;xn<=lt;xn++)Se.bl_count[xn]=0;for(Wi[2*Se.heap[Se.heap_max]+1]=0,Ie=Se.heap_max+1;Ie<tt;Ie++)Ir<(xn=Wi[2*Wi[2*(nn=Se.heap[Ie])+1]+1]+1)&&(xn=Ir,Xr++),Wi[2*nn+1]=xn,pr<nn||(Se.bl_count[xn]++,li=0,Jr<=nn&&(li=Vr[nn-Jr]),Qi=Wi[2*nn],Se.opt_len+=Qi*(xn+li),qr&&(Se.static_len+=Qi*(xr[2*nn+1]+li)));if(Xr!==0){do{for(xn=Ir-1;Se.bl_count[xn]===0;)xn--;Se.bl_count[xn]--,Se.bl_count[xn+1]+=2,Se.bl_count[Ir]--,Xr-=2}while(0<Xr);for(xn=Ir;xn!==0;xn--)for(nn=Se.bl_count[xn];nn!==0;)pr<(zn=Se.heap[--Ie])||(Wi[2*zn+1]!==xn&&(Se.opt_len+=(xn-Wi[2*zn+1])*Wi[2*zn],Wi[2*zn+1]=xn),nn--)}}(Ft,Kt),Xn(Be,Zt,Ft.bl_count)}function ve(Ft,Kt,Ee){var je,ce,Be=-1,$t=Kt[1],Pt=0,mt=7,Zt=4;for($t===0&&(mt=138,Zt=3),Kt[2*(Ee+1)+1]=65535,je=0;je<=Ee;je++)ce=$t,$t=Kt[2*(je+1)+1],++Pt<mt&&ce===$t||(Pt<Zt?Ft.bl_tree[2*ce]+=Pt:ce!==0?(ce!==Be&&Ft.bl_tree[2*ce]++,Ft.bl_tree[2*yt]++):Pt<=10?Ft.bl_tree[2*Mt]++:Ft.bl_tree[2*jt]++,Be=ce,Zt=(Pt=0)===$t?(mt=138,3):ce===$t?(mt=6,3):(mt=7,4))}function hn(Ft,Kt,Ee){var je,ce,Be=-1,$t=Kt[1],Pt=0,mt=7,Zt=4;for($t===0&&(mt=138,Zt=3),je=0;je<=Ee;je++)if(ce=$t,$t=Kt[2*(je+1)+1],!(++Pt<mt&&ce===$t)){if(Pt<Zt)for(;Xe(Ft,ce,Ft.bl_tree),--Pt!=0;);else ce!==0?(ce!==Be&&(Xe(Ft,ce,Ft.bl_tree),Pt--),Xe(Ft,yt,Ft.bl_tree),Mn(Ft,Pt-3,2)):Pt<=10?(Xe(Ft,Mt,Ft.bl_tree),Mn(Ft,Pt-3,3)):(Xe(Ft,jt,Ft.bl_tree),Mn(Ft,Pt-11,7));Be=ce,Zt=(Pt=0)===$t?(mt=138,3):ce===$t?(mt=6,3):(mt=7,4)}}ee(_e);var Ae=!1;function Ot(Ft,Kt,Ee,je){Mn(Ft,(Ct<<1)+(je?1:0),3),function(ce,Be,$t,Pt){$n(ce),Pt&&(Fn(ce,$t),Fn(ce,~$t)),le.arraySet(ce.pending_buf,ce.window,Be,$t,ce.pending),ce.pending+=$t}(Ft,Kt,Ee,!0)}re._tr_init=function(Ft){Ae||(function(){var Kt,Ee,je,ce,Be,$t=new Array(lt+1);for(ce=je=0;ce<Wt-1;ce++)for($e[ce]=je,Kt=0;Kt<1<<Rt[ce];Kt++)Vt[je++]=ce;for(Vt[je-1]=ce,ce=Be=0;ce<16;ce++)for(_e[ce]=Be,Kt=0;Kt<1<<ae[ce];Kt++)Ke[Be++]=ce;for(Be>>=7;ce<wt;ce++)for(_e[ce]=Be<<7,Kt=0;Kt<1<<ae[ce]-7;Kt++)Ke[256+Be++]=ce;for(Ee=0;Ee<=lt;Ee++)$t[Ee]=0;for(Kt=0;Kt<=143;)Te[2*Kt+1]=8,Kt++,$t[8]++;for(;Kt<=255;)Te[2*Kt+1]=9,Kt++,$t[9]++;for(;Kt<=279;)Te[2*Kt+1]=7,Kt++,$t[7]++;for(;Kt<=287;)Te[2*Kt+1]=8,Kt++,$t[8]++;for(Xn(Te,Jt+1,$t),Kt=0;Kt<wt;Kt++)ne[2*Kt+1]=5,ne[2*Kt]=In(Kt,5);Ge=new xe(Te,Rt,Gt+1,Jt,lt),Oe=new xe(ne,ae,0,wt,lt),Ve=new xe(new Array(0),he,0,et,ht)}(),Ae=!0),Ft.l_desc=new ie(Ft.dyn_ltree,Ge),Ft.d_desc=new ie(Ft.dyn_dtree,Oe),Ft.bl_desc=new ie(Ft.bl_tree,Ve),Ft.bi_buf=0,Ft.bi_valid=0,pi(Ft)},re._tr_stored_block=Ot,re._tr_flush_block=function(Ft,Kt,Ee,je){var ce,Be,$t=0;0<Ft.level?(Ft.strm.data_type===2&&(Ft.strm.data_type=function(Pt){var mt,Zt=4093624447;for(mt=0;mt<=31;mt++,Zt>>>=1)if(1&Zt&&Pt.dyn_ltree[2*mt]!==0)return Et;if(Pt.dyn_ltree[18]!==0||Pt.dyn_ltree[20]!==0||Pt.dyn_ltree[26]!==0)return Tt;for(mt=32;mt<Gt;mt++)if(Pt.dyn_ltree[2*mt]!==0)return Tt;return Et}(Ft)),ji(Ft,Ft.l_desc),ji(Ft,Ft.d_desc),$t=function(Pt){var mt;for(ve(Pt,Pt.dyn_ltree,Pt.l_desc.max_code),ve(Pt,Pt.dyn_dtree,Pt.d_desc.max_code),ji(Pt,Pt.bl_desc),mt=et-1;3<=mt&&Pt.bl_tree[2*pe[mt]+1]===0;mt--);return Pt.opt_len+=3*(mt+1)+5+5+4,mt}(Ft),ce=Ft.opt_len+3+7>>>3,(Be=Ft.static_len+3+7>>>3)<=ce&&(ce=Be)):ce=Be=Ee+5,Ee+4<=ce&&Kt!==-1?Ot(Ft,Kt,Ee,je):Ft.strategy===4||Be===ce?(Mn(Ft,2+(je?1:0),3),Li(Ft,Te,ne)):(Mn(Ft,4+(je?1:0),3),function(Pt,mt,Zt,Se){var Dt;for(Mn(Pt,mt-257,5),Mn(Pt,Zt-1,5),Mn(Pt,Se-4,4),Dt=0;Dt<Se;Dt++)Mn(Pt,Pt.bl_tree[2*pe[Dt]+1],3);hn(Pt,Pt.dyn_ltree,mt-1),hn(Pt,Pt.dyn_dtree,Zt-1)}(Ft,Ft.l_desc.max_code+1,Ft.d_desc.max_code+1,$t+1),Li(Ft,Ft.dyn_ltree,Ft.dyn_dtree)),pi(Ft),je&&$n(Ft)},re._tr_tally=function(Ft,Kt,Ee){return Ft.pending_buf[Ft.d_buf+2*Ft.last_lit]=Kt>>>8&255,Ft.pending_buf[Ft.d_buf+2*Ft.last_lit+1]=255&Kt,Ft.pending_buf[Ft.l_buf+Ft.last_lit]=255&Ee,Ft.last_lit++,Kt===0?Ft.dyn_ltree[2*Ee]++:(Ft.matches++,Kt--,Ft.dyn_ltree[2*(Vt[Ee]+Gt+1)]++,Ft.dyn_dtree[2*be(Kt)]++),Ft.last_lit===Ft.lit_bufsize-1},re._tr_align=function(Ft){Mn(Ft,2,3),Xe(Ft,dt,Te),function(Kt){Kt.bi_valid===16?(Fn(Kt,Kt.bi_buf),Kt.bi_buf=0,Kt.bi_valid=0):8<=Kt.bi_valid&&(Kt.pending_buf[Kt.pending++]=255&Kt.bi_buf,Kt.bi_buf>>=8,Kt.bi_valid-=8)}(Ft)}},{"../utils/common":41}],53:[function(se,De,re){"use strict";De.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,De,re){(function(le){(function(Et,Tt){"use strict";if(!Et.setImmediate){var ee,Ct,Wt,Gt,Jt=1,wt={},et=!1,tt=Et.document,lt=Object.getPrototypeOf&&Object.getPrototypeOf(Et);lt=lt&&lt.setTimeout?lt:Et,ee={}.toString.call(Et.process)==="[object process]"?function(yt){ge.nextTick(function(){ht(yt)})}:function(){if(Et.postMessage&&!Et.importScripts){var yt=!0,Mt=Et.onmessage;return Et.onmessage=function(){yt=!1},Et.postMessage("","*"),Et.onmessage=Mt,yt}}()?(Gt="setImmediate$"+Math.random()+"$",Et.addEventListener?Et.addEventListener("message",dt,!1):Et.attachEvent("onmessage",dt),function(yt){Et.postMessage(Gt+yt,"*")}):Et.MessageChannel?((Wt=new MessageChannel).port1.onmessage=function(yt){ht(yt.data)},function(yt){Wt.port2.postMessage(yt)}):tt&&"onreadystatechange"in tt.createElement("script")?(Ct=tt.documentElement,function(yt){var Mt=tt.createElement("script");Mt.onreadystatechange=function(){ht(yt),Mt.onreadystatechange=null,Ct.removeChild(Mt),Mt=null},Ct.appendChild(Mt)}):function(yt){setTimeout(ht,0,yt)},lt.setImmediate=function(yt){typeof yt!="function"&&(yt=new Function(""+yt));for(var Mt=new Array(arguments.length-1),jt=0;jt<Mt.length;jt++)Mt[jt]=arguments[jt+1];var Rt={callback:yt,args:Mt};return wt[Jt]=Rt,ee(Jt),Jt++},lt.clearImmediate=rt}function rt(yt){delete wt[yt]}function ht(yt){if(et)setTimeout(ht,0,yt);else{var Mt=wt[yt];if(Mt){et=!0;try{(function(jt){var Rt=jt.callback,ae=jt.args;switch(ae.length){case 0:Rt();break;case 1:Rt(ae[0]);break;case 2:Rt(ae[0],ae[1]);break;case 3:Rt(ae[0],ae[1],ae[2]);break;default:Rt.apply(Tt,ae)}})(Mt)}finally{rt(yt),et=!1}}}}function dt(yt){yt.source===Et&&typeof yt.data=="string"&&yt.data.indexOf(Gt)===0&&ht(+yt.data.slice(Gt.length))}})(typeof self=="undefined"?le===void 0?this:le:self)}).call(this,typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},17115:function(di,Pn,bt){"use strict";bt.d(Pn,{ZP:function(){return Et}});var Lt=bt(29043),ge=bt(59301),se=bt(87746),De=0,re=(0,se.Z)();function le(){var Tt;return re?(Tt=De,De+=1):Tt="TEST_OR_SSR",Tt}function Et(Tt){var ee=ge.useState(),Ct=(0,Lt.Z)(ee,2),Wt=Ct[0],Gt=Ct[1];return ge.useEffect(function(){Gt("rc_select_".concat(le()))},[]),Tt||Wt}},77861:function(di,Pn,bt){"use strict";bt.d(Pn,{Ac:function(){return Zt},Xo:function(){return Vr},Wx:function(){return Ir},ZP:function(){return Ci},lk:function(){return yt}});var Lt=bt(5891),ge=bt(26390),se=bt(80962),De=bt(57259),re=bt(29043),le=bt(19149),Et=bt(80665),Tt=bt(35788),ee=bt(51395),Ct=bt(59301),Wt=bt(92310),Gt=bt.n(Wt),Jt=bt(28800),wt=bt(93144),et=bt(85108),tt=bt(20475),lt=function(Ne){var Bn=Ne.className,_n=Ne.customizeIcon,Ii=Ne.customizeIconProps,ni=Ne.onMouseDown,mn=Ne.onClick,Ai=Ne.children,Mi;return typeof _n=="function"?Mi=_n(Ii):Mi=_n,Ct.createElement("span",{className:Bn,onMouseDown:function(On){On.preventDefault(),ni&&ni(On)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:mn,"aria-hidden":!0},Mi!==void 0?Mi:Ct.createElement("span",{className:Gt()(Bn.split(/\s+/).map(function(er){return"".concat(er,"-icon")}))},Ai))},rt=lt;function ht(bn,Ne,Bn,_n,Ii){var ni=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,mn=arguments.length>6?arguments[6]:void 0,Ai=arguments.length>7?arguments[7]:void 0,Mi=Ct.useMemo(function(){if((0,Et.Z)(_n)==="object")return _n.clearIcon;if(Ii)return Ii},[_n,Ii]),er=Ct.useMemo(function(){return!!(!ni&&_n&&(Bn.length||mn)&&!(Ai==="combobox"&&mn===""))},[_n,ni,Bn.length,mn,Ai]);return{allowClear:er,clearIcon:Ct.createElement(rt,{className:"".concat(bn,"-clear"),onMouseDown:Ne,customizeIcon:Mi},"\xD7")}}var dt=Ct.createContext(null);function yt(){return Ct.useContext(dt)}function Mt(){var bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ne=Ct.useState(!1),Bn=(0,re.Z)(Ne,2),_n=Bn[0],Ii=Bn[1],ni=Ct.useRef(null),mn=function(){window.clearTimeout(ni.current)};Ct.useEffect(function(){return mn},[]);var Ai=function(er,On){mn(),ni.current=window.setTimeout(function(){Ii(er),On&&On()},bn)};return[_n,Ai,mn]}function jt(){var bn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ne=Ct.useRef(null),Bn=Ct.useRef(null);Ct.useEffect(function(){return function(){window.clearTimeout(Bn.current)}},[]);function _n(Ii){(Ii||Ne.current===null)&&(Ne.current=Ii),window.clearTimeout(Bn.current),Bn.current=window.setTimeout(function(){Ne.current=null},bn)}return[function(){return Ne.current},_n]}function Rt(bn,Ne,Bn,_n){var Ii=Ct.useRef(null);Ii.current={open:Ne,triggerOpen:Bn,customizedTrigger:_n},Ct.useEffect(function(){function ni(mn){var Ai;if(!((Ai=Ii.current)!==null&&Ai!==void 0&&Ai.customizedTrigger)){var Mi=mn.target;Mi.shadowRoot&&mn.composed&&(Mi=mn.composedPath()[0]||Mi),Ii.current.open&&bn().filter(function(er){return er}).every(function(er){return!er.contains(Mi)&&er!==Mi})&&Ii.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ni),function(){return window.removeEventListener("mousedown",ni)}},[])}var ae=bt(36994),he=bt(11780),pe=function(Ne,Bn){var _n,Ii,ni=Ne.prefixCls,mn=Ne.id,Ai=Ne.inputElement,Mi=Ne.disabled,er=Ne.tabIndex,On=Ne.autoFocus,Si=Ne.autoComplete,Pr=Ne.editable,rr=Ne.activeDescendantId,Kr=Ne.value,sr=Ne.maxLength,Br=Ne.onKeyDown,dr=Ne.onMouseDown,Er=Ne.onChange,ao=Ne.onPaste,Xi=Ne.onCompositionStart,yr=Ne.onCompositionEnd,Lo=Ne.open,xs=Ne.attrs,Uo=Ai||Ct.createElement("input",null),jn=Uo,Tr=jn.ref,so=jn.props,_r=so.onKeyDown,ns=so.onChange,Oo=so.onMouseDown,yi=so.onCompositionStart,Bo=so.onCompositionEnd,Hr=so.style;return(0,ee.Kp)(!("maxLength"in Uo.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Uo=Ct.cloneElement(Uo,(0,De.Z)((0,De.Z)((0,De.Z)({type:"search"},so),{},{id:mn,ref:(0,tt.sQ)(Bn,Tr),disabled:Mi,tabIndex:er,autoComplete:Si||"off",autoFocus:On,className:Gt()("".concat(ni,"-selection-search-input"),(_n=Uo)===null||_n===void 0||(Ii=_n.props)===null||Ii===void 0?void 0:Ii.className),role:"combobox","aria-label":"Search","aria-expanded":Lo||!1,"aria-haspopup":"listbox","aria-owns":"".concat(mn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(mn,"_list"),"aria-activedescendant":Lo?rr:void 0},xs),{},{value:Pr?Kr:"",maxLength:sr,readOnly:!Pr,unselectable:Pr?null:"on",style:(0,De.Z)((0,De.Z)({},Hr),{},{opacity:Pr?null:0}),onKeyDown:function(Bi){Br(Bi),_r&&_r(Bi)},onMouseDown:function(Bi){dr(Bi),Oo&&Oo(Bi)},onChange:function(Bi){Er(Bi),ns&&ns(Bi)},onCompositionStart:function(Bi){Xi(Bi),yi&&yi(Bi)},onCompositionEnd:function(Bi){yr(Bi),Bo&&Bo(Bi)},onPaste:ao})),Uo},Te=Ct.forwardRef(pe);Te.displayName="Input";var ne=Te;function Ke(bn){return Array.isArray(bn)?bn:bn!==void 0?[bn]:[]}var Vt=typeof window!="undefined"&&window.document&&window.document.documentElement,$e=Vt;function Ge(bn){return bn!=null}function Oe(bn){return!bn&&bn!==0}function Ve(bn){return["string","number"].includes((0,Et.Z)(bn))}function _e(bn){var Ne=void 0;return bn&&(Ve(bn.title)?Ne=bn.title.toString():Ve(bn.label)&&(Ne=bn.label.toString())),Ne}function xe(bn,Ne){$e?Ct.useLayoutEffect(bn,Ne):Ct.useEffect(bn,Ne)}function ie(bn){var Ne;return(Ne=bn.key)!==null&&Ne!==void 0?Ne:bn.value}var be=function(Ne){Ne.preventDefault(),Ne.stopPropagation()},Fn=function(Ne){var Bn=Ne.id,_n=Ne.prefixCls,Ii=Ne.values,ni=Ne.open,mn=Ne.searchValue,Ai=Ne.autoClearSearchValue,Mi=Ne.inputRef,er=Ne.placeholder,On=Ne.disabled,Si=Ne.mode,Pr=Ne.showSearch,rr=Ne.autoFocus,Kr=Ne.autoComplete,sr=Ne.activeDescendantId,Br=Ne.tabIndex,dr=Ne.removeIcon,Er=Ne.maxTagCount,ao=Ne.maxTagTextLength,Xi=Ne.maxTagPlaceholder,yr=Xi===void 0?function(qo){return"+ ".concat(qo.length," ...")}:Xi,Lo=Ne.tagRender,xs=Ne.onToggleOpen,Uo=Ne.onRemove,jn=Ne.onInputChange,Tr=Ne.onInputPaste,so=Ne.onInputKeyDown,_r=Ne.onInputMouseDown,ns=Ne.onInputCompositionStart,Oo=Ne.onInputCompositionEnd,yi=Ct.useRef(null),Bo=(0,Ct.useState)(0),Hr=(0,re.Z)(Bo,2),kr=Hr[0],Bi=Hr[1],Po=(0,Ct.useState)(!1),Pi=(0,re.Z)(Po,2),Xo=Pi[0],ha=Pi[1],fs="".concat(_n,"-selection"),ba=ni||Si==="multiple"&&Ai===!1||Si==="tags"?mn:"",Xs=Si==="tags"||Si==="multiple"&&Ai===!1||Pr&&(ni||Xo);xe(function(){Bi(yi.current.scrollWidth)},[ba]);function bo(qo,Sa,za,El,ss){return Ct.createElement("span",{className:Gt()("".concat(fs,"-item"),(0,se.Z)({},"".concat(fs,"-item-disabled"),za)),title:_e(qo)},Ct.createElement("span",{className:"".concat(fs,"-item-content")},Sa),El&&Ct.createElement(rt,{className:"".concat(fs,"-item-remove"),onMouseDown:be,onClick:ss,customizeIcon:dr},"\xD7"))}function jo(qo,Sa,za,El,ss){var Vo=function(ia){be(ia),xs(!ni)};return Ct.createElement("span",{onMouseDown:Vo},Lo({label:Sa,value:qo,disabled:za,closable:El,onClose:ss}))}function ps(qo){var Sa=qo.disabled,za=qo.label,El=qo.value,ss=!On&&!Sa,Vo=za;if(typeof ao=="number"&&(typeof za=="string"||typeof za=="number")){var bs=String(Vo);bs.length>ao&&(Vo="".concat(bs.slice(0,ao),"..."))}var ia=function(Ea){Ea&&Ea.stopPropagation(),Uo(qo)};return typeof Lo=="function"?jo(El,Vo,Sa,ss,ia):bo(qo,Vo,Sa,ss,ia)}function us(qo){var Sa=typeof yr=="function"?yr(qo):yr;return bo({title:Sa},Sa,!1)}var gr=Ct.createElement("div",{className:"".concat(fs,"-search"),style:{width:kr},onFocus:function(){ha(!0)},onBlur:function(){ha(!1)}},Ct.createElement(ne,{ref:Mi,open:ni,prefixCls:_n,id:Bn,inputElement:null,disabled:On,autoFocus:rr,autoComplete:Kr,editable:Xs,activeDescendantId:sr,value:ba,onKeyDown:so,onMouseDown:_r,onChange:jn,onPaste:Tr,onCompositionStart:ns,onCompositionEnd:Oo,tabIndex:Br,attrs:(0,ae.Z)(Ne,!0)}),Ct.createElement("span",{ref:yi,className:"".concat(fs,"-search-mirror"),"aria-hidden":!0},ba,"\xA0")),Ue=Ct.createElement(he.Z,{prefixCls:"".concat(fs,"-overflow"),data:Ii,renderItem:ps,renderRest:us,suffix:gr,itemKey:ie,maxCount:Er});return Ct.createElement(Ct.Fragment,null,Ue,!Ii.length&&!ba&&Ct.createElement("span",{className:"".concat(fs,"-placeholder")},er))},Mn=Fn,Xe=function(Ne){var Bn=Ne.inputElement,_n=Ne.prefixCls,Ii=Ne.id,ni=Ne.inputRef,mn=Ne.disabled,Ai=Ne.autoFocus,Mi=Ne.autoComplete,er=Ne.activeDescendantId,On=Ne.mode,Si=Ne.open,Pr=Ne.values,rr=Ne.placeholder,Kr=Ne.tabIndex,sr=Ne.showSearch,Br=Ne.searchValue,dr=Ne.activeValue,Er=Ne.maxLength,ao=Ne.onInputKeyDown,Xi=Ne.onInputMouseDown,yr=Ne.onInputChange,Lo=Ne.onInputPaste,xs=Ne.onInputCompositionStart,Uo=Ne.onInputCompositionEnd,jn=Ne.title,Tr=Ct.useState(!1),so=(0,re.Z)(Tr,2),_r=so[0],ns=so[1],Oo=On==="combobox",yi=Oo||sr,Bo=Pr[0],Hr=Br||"";Oo&&dr&&!_r&&(Hr=dr),Ct.useEffect(function(){Oo&&ns(!1)},[Oo,dr]);var kr=On!=="combobox"&&!Si&&!sr?!1:!!Hr,Bi=jn===void 0?_e(Bo):jn,Po=function(){if(Bo)return null;var Xo=kr?{visibility:"hidden"}:void 0;return Ct.createElement("span",{className:"".concat(_n,"-selection-placeholder"),style:Xo},rr)};return Ct.createElement(Ct.Fragment,null,Ct.createElement("span",{className:"".concat(_n,"-selection-search")},Ct.createElement(ne,{ref:ni,prefixCls:_n,id:Ii,open:Si,inputElement:Bn,disabled:mn,autoFocus:Ai,autoComplete:Mi,editable:yi,activeDescendantId:er,value:Hr,onKeyDown:ao,onMouseDown:Xi,onChange:function(Xo){ns(!0),yr(Xo)},onPaste:Lo,onCompositionStart:xs,onCompositionEnd:Uo,tabIndex:Kr,attrs:(0,ae.Z)(Ne,!0),maxLength:Oo?Er:void 0})),!Oo&&Bo?Ct.createElement("span",{className:"".concat(_n,"-selection-item"),title:Bi,style:kr?{visibility:"hidden"}:void 0},Bo.label):null,Po())},In=Xe;function Xn(bn){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(bn)}var pi=function(Ne,Bn){var _n=(0,Ct.useRef)(null),Ii=(0,Ct.useRef)(!1),ni=Ne.prefixCls,mn=Ne.open,Ai=Ne.mode,Mi=Ne.showSearch,er=Ne.tokenWithEnter,On=Ne.autoClearSearchValue,Si=Ne.onSearch,Pr=Ne.onSearchSubmit,rr=Ne.onToggleOpen,Kr=Ne.onInputKeyDown,sr=Ne.domRef;Ct.useImperativeHandle(Bn,function(){return{focus:function(){_n.current.focus()},blur:function(){_n.current.blur()}}});var Br=jt(0),dr=(0,re.Z)(Br,2),Er=dr[0],ao=dr[1],Xi=function(Hr){var kr=Hr.which;(kr===et.Z.UP||kr===et.Z.DOWN)&&Hr.preventDefault(),Kr&&Kr(Hr),kr===et.Z.ENTER&&Ai==="tags"&&!Ii.current&&!mn&&(Pr==null||Pr(Hr.target.value)),Xn(kr)&&rr(!0)},yr=function(){ao(!0)},Lo=(0,Ct.useRef)(null),xs=function(Hr){Si(Hr,!0,Ii.current)!==!1&&rr(!0)},Uo=function(){Ii.current=!0},jn=function(Hr){Ii.current=!1,Ai!=="combobox"&&xs(Hr.target.value)},Tr=function(Hr){var kr=Hr.target.value;if(er&&Lo.current&&/[\r\n]/.test(Lo.current)){var Bi=Lo.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");kr=kr.replace(Bi,Lo.current)}Lo.current=null,xs(kr)},so=function(Hr){var kr=Hr.clipboardData,Bi=kr.getData("text");Lo.current=Bi},_r=function(Hr){var kr=Hr.target;if(kr!==_n.current){var Bi=document.body.style.msTouchAction!==void 0;Bi?setTimeout(function(){_n.current.focus()}):_n.current.focus()}},ns=function(Hr){var kr=Er();Hr.target!==_n.current&&!kr&&Ai!=="combobox"&&Hr.preventDefault(),(Ai!=="combobox"&&(!Mi||!kr)||!mn)&&(mn&&On!==!1&&Si("",!0,!1),rr())},Oo={inputRef:_n,onInputKeyDown:Xi,onInputMouseDown:yr,onInputChange:Tr,onInputPaste:so,onInputCompositionStart:Uo,onInputCompositionEnd:jn},yi=Ai==="multiple"||Ai==="tags"?Ct.createElement(Mn,(0,Lt.Z)({},Ne,Oo)):Ct.createElement(In,(0,Lt.Z)({},Ne,Oo));return Ct.createElement("div",{ref:sr,className:"".concat(ni,"-selector"),onClick:_r,onMouseDown:ns},yi)},$n=Ct.forwardRef(pi);$n.displayName="Selector";var bi=$n,sn=bt(35593),Li=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ji=function(Ne){var Bn=Ne===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Bn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Bn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Bn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Bn,adjustY:1},htmlRegion:"scroll"}}},ve=function(Ne,Bn){var _n=Ne.prefixCls,Ii=Ne.disabled,ni=Ne.visible,mn=Ne.children,Ai=Ne.popupElement,Mi=Ne.animation,er=Ne.transitionName,On=Ne.dropdownStyle,Si=Ne.dropdownClassName,Pr=Ne.direction,rr=Pr===void 0?"ltr":Pr,Kr=Ne.placement,sr=Ne.builtinPlacements,Br=Ne.dropdownMatchSelectWidth,dr=Ne.dropdownRender,Er=Ne.dropdownAlign,ao=Ne.getPopupContainer,Xi=Ne.empty,yr=Ne.getTriggerDOMNode,Lo=Ne.onPopupVisibleChange,xs=Ne.onPopupMouseEnter,Uo=(0,le.Z)(Ne,Li),jn="".concat(_n,"-dropdown"),Tr=Ai;dr&&(Tr=dr(Ai));var so=Ct.useMemo(function(){return sr||ji(Br)},[sr,Br]),_r=Mi?"".concat(jn,"-").concat(Mi):er,ns=typeof Br=="number",Oo=Ct.useMemo(function(){return ns?null:Br===!1?"minWidth":"width"},[Br,ns]),yi=On;ns&&(yi=(0,De.Z)((0,De.Z)({},yi),{},{width:Br}));var Bo=Ct.useRef(null);return Ct.useImperativeHandle(Bn,function(){return{getPopupElement:function(){return Bo.current}}}),Ct.createElement(sn.Z,(0,Lt.Z)({},Uo,{showAction:Lo?["click"]:[],hideAction:Lo?["click"]:[],popupPlacement:Kr||(rr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:so,prefixCls:jn,popupTransitionName:_r,popup:Ct.createElement("div",{ref:Bo,onMouseEnter:xs},Tr),stretch:Oo,popupAlign:Er,popupVisible:ni,getPopupContainer:ao,popupClassName:Gt()(Si,(0,se.Z)({},"".concat(jn,"-empty"),Xi)),popupStyle:yi,getTriggerDOMNode:yr,onPopupVisibleChange:Lo}),mn)},hn=Ct.forwardRef(ve);hn.displayName="SelectTrigger";var Ae=hn,Ot=bt(17953);function Ft(bn,Ne){var Bn=bn.key,_n;return"value"in bn&&(_n=bn.value),Bn!=null?Bn:_n!==void 0?_n:"rc-index-key-".concat(Ne)}function Kt(bn,Ne){var Bn=bn||{},_n=Bn.label,Ii=Bn.value,ni=Bn.options,mn=Bn.groupLabel,Ai=_n||(Ne?"children":"label");return{label:Ai,value:Ii||"value",options:ni||"options",groupLabel:mn||Ai}}function Ee(bn){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bn=Ne.fieldNames,_n=Ne.childrenAsData,Ii=[],ni=Kt(Bn,!1),mn=ni.label,Ai=ni.value,Mi=ni.options,er=ni.groupLabel;function On(Si,Pr){Si.forEach(function(rr){if(Pr||!(Mi in rr)){var Kr=rr[Ai];Ii.push({key:Ft(rr,Ii.length),groupOption:Pr,data:rr,label:rr[mn],value:Kr})}else{var sr=rr[er];sr===void 0&&_n&&(sr=rr.label),Ii.push({key:Ft(rr,Ii.length),group:!0,data:rr,label:sr}),On(rr[Mi],!0)}})}return On(bn,!1),Ii}function je(bn){var Ne=(0,De.Z)({},bn);return"props"in Ne||Object.defineProperty(Ne,"props",{get:function(){return(0,ee.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ne}}),Ne}function ce(bn,Ne){if(!Ne||!Ne.length)return null;var Bn=!1;function _n(ni,mn){var Ai=(0,Ot.Z)(mn),Mi=Ai[0],er=Ai.slice(1);if(!Mi)return[ni];var On=ni.split(Mi);return Bn=Bn||On.length>1,On.reduce(function(Si,Pr){return[].concat((0,ge.Z)(Si),(0,ge.Z)(_n(Pr,er)))},[]).filter(function(Si){return Si})}var Ii=_n(bn,Ne);return Bn?Ii:null}var Be=["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"],$t=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Pt(bn){return bn==="tags"||bn==="multiple"}var mt=Ct.forwardRef(function(bn,Ne){var Bn,_n,Ii=bn.id,ni=bn.prefixCls,mn=bn.className,Ai=bn.showSearch,Mi=bn.tagRender,er=bn.direction,On=bn.omitDomProps,Si=bn.displayValues,Pr=bn.onDisplayValuesChange,rr=bn.emptyOptions,Kr=bn.notFoundContent,sr=Kr===void 0?"Not Found":Kr,Br=bn.onClear,dr=bn.mode,Er=bn.disabled,ao=bn.loading,Xi=bn.getInputElement,yr=bn.getRawInputElement,Lo=bn.open,xs=bn.defaultOpen,Uo=bn.onDropdownVisibleChange,jn=bn.activeValue,Tr=bn.onActiveValueChange,so=bn.activeDescendantId,_r=bn.searchValue,ns=bn.autoClearSearchValue,Oo=bn.onSearch,yi=bn.onSearchSplit,Bo=bn.tokenSeparators,Hr=bn.allowClear,kr=bn.suffixIcon,Bi=bn.clearIcon,Po=bn.OptionList,Pi=bn.animation,Xo=bn.transitionName,ha=bn.dropdownStyle,fs=bn.dropdownClassName,ba=bn.dropdownMatchSelectWidth,Xs=bn.dropdownRender,bo=bn.dropdownAlign,jo=bn.placement,ps=bn.builtinPlacements,us=bn.getPopupContainer,gr=bn.showAction,Ue=gr===void 0?[]:gr,qo=bn.onFocus,Sa=bn.onBlur,za=bn.onKeyUp,El=bn.onKeyDown,ss=bn.onMouseDown,Vo=(0,le.Z)(bn,Be),bs=Pt(dr),ia=(Ai!==void 0?Ai:bs)||dr==="combobox",ts=(0,De.Z)({},Vo);$t.forEach(function(Fs){delete ts[Fs]}),On==null||On.forEach(function(Fs){delete ts[Fs]});var Ea=Ct.useState(!1),Mo=(0,re.Z)(Ea,2),io=Mo[0],Ko=Mo[1];Ct.useEffect(function(){Ko((0,wt.Z)())},[]);var Gi=Ct.useRef(null),Ms=Ct.useRef(null),Gs=Ct.useRef(null),Fa=Ct.useRef(null),Js=Ct.useRef(null),Ho=Mt(),Ks=(0,re.Z)(Ho,3),yl=Ks[0],wl=Ks[1],Dl=Ks[2];Ct.useImperativeHandle(Ne,function(){var Fs,ga;return{focus:(Fs=Fa.current)===null||Fs===void 0?void 0:Fs.focus,blur:(ga=Fa.current)===null||ga===void 0?void 0:ga.blur,scrollTo:function(tl){var al;return(al=Js.current)===null||al===void 0?void 0:al.scrollTo(tl)}}});var Bs=Ct.useMemo(function(){var Fs;if(dr!=="combobox")return _r;var ga=(Fs=Si[0])===null||Fs===void 0?void 0:Fs.value;return typeof ga=="string"||typeof ga=="number"?String(ga):""},[_r,dr,Si]),ui=dr==="combobox"&&typeof Xi=="function"&&Xi()||null,Za=typeof yr=="function"&&yr(),mh=(0,tt.x1)(Ms,Za==null||(Bn=Za.props)===null||Bn===void 0?void 0:Bn.ref),ju=Ct.useState(!1),su=(0,re.Z)(ju,2),Ao=su[0],zs=su[1];(0,Jt.Z)(function(){zs(!0)},[]);var Ns=(0,Tt.Z)(!1,{defaultValue:xs,value:Lo}),Es=(0,re.Z)(Ns,2),_s=Es[0],Nl=Es[1],As=Ao?_s:!1,Qs=!sr&&rr;(Er||Qs&&As&&dr==="combobox")&&(As=!1);var Ss=Qs?!1:As,Gr=Ct.useCallback(function(Fs){var ga=Fs!==void 0?Fs:!As;Er||(Nl(ga),As!==ga&&(Uo==null||Uo(ga)))},[Er,As,Nl,Uo]),ul=Ct.useMemo(function(){return(Bo||[]).some(function(Fs){return[`
`,`\r
`].includes(Fs)})},[Bo]),Ds=function(ga,Uu,tl){var al=!0,Ka=ga;Tr==null||Tr(null);var ca=tl?null:ce(ga,Bo);return dr!=="combobox"&&ca&&(Ka="",yi==null||yi(ca),Gr(!1),al=!1),Oo&&Bs!==Ka&&Oo(Ka,{source:Uu?"typing":"effect"}),al},Su=function(ga){!ga||!ga.trim()||Oo(ga,{source:"submit"})};Ct.useEffect(function(){!As&&!bs&&dr!=="combobox"&&Ds("",!1,!1)},[As]),Ct.useEffect(function(){_s&&Er&&Nl(!1),Er&&wl(!1)},[Er]);var Ku=jt(),$l=(0,re.Z)(Ku,2),fr=$l[0],Xa=$l[1],ol=function(ga){var Uu=fr(),tl=ga.which;if(tl===et.Z.ENTER&&(dr!=="combobox"&&ga.preventDefault(),As||Gr(!0)),Xa(!!Bs),tl===et.Z.BACKSPACE&&!Uu&&bs&&!Bs&&Si.length){for(var al=(0,ge.Z)(Si),Ka=null,ca=al.length-1;ca>=0;ca-=1){var el=al[ca];if(!el.disabled){al.splice(ca,1),Ka=el;break}}Ka&&Pr(al,{type:"remove",values:[Ka]})}for(var jl=arguments.length,fc=new Array(jl>1?jl-1:0),dh=1;dh<jl;dh++)fc[dh-1]=arguments[dh];if(As&&Js.current){var hl;(hl=Js.current).onKeyDown.apply(hl,[ga].concat(fc))}El==null||El.apply(void 0,[ga].concat(fc))},Fl=function(ga){for(var Uu=arguments.length,tl=new Array(Uu>1?Uu-1:0),al=1;al<Uu;al++)tl[al-1]=arguments[al];if(As&&Js.current){var Ka;(Ka=Js.current).onKeyUp.apply(Ka,[ga].concat(tl))}za==null||za.apply(void 0,[ga].concat(tl))},au=function(ga){var Uu=Si.filter(function(tl){return tl!==ga});Pr(Uu,{type:"remove",values:[ga]})},Ja=Ct.useRef(!1),Eo=function(){wl(!0),Er||(qo&&!Ja.current&&qo.apply(void 0,arguments),Ue.includes("focus")&&Gr(!0)),Ja.current=!0},ja=function(){wl(!1,function(){Ja.current=!1,Gr(!1)}),!Er&&(Bs&&(dr==="tags"?Oo(Bs,{source:"submit"}):dr==="multiple"&&Oo("",{source:"blur"})),Sa&&Sa.apply(void 0,arguments))},qa=[];Ct.useEffect(function(){return function(){qa.forEach(function(Fs){return clearTimeout(Fs)}),qa.splice(0,qa.length)}},[]);var lu=function(ga){var Uu,tl=ga.target,al=(Uu=Gs.current)===null||Uu===void 0?void 0:Uu.getPopupElement();if(al&&al.contains(tl)){var Ka=setTimeout(function(){var fc=qa.indexOf(Ka);if(fc!==-1&&qa.splice(fc,1),Dl(),!io&&!al.contains(document.activeElement)){var dh;(dh=Fa.current)===null||dh===void 0||dh.focus()}});qa.push(Ka)}for(var ca=arguments.length,el=new Array(ca>1?ca-1:0),jl=1;jl<ca;jl++)el[jl-1]=arguments[jl];ss==null||ss.apply(void 0,[ga].concat(el))},Yl=Ct.useState({}),Pu=(0,re.Z)(Yl,2),bu=Pu[1];function fu(){bu({})}var nu;Za&&(nu=function(ga){Gr(ga)}),Rt(function(){var Fs;return[Gi.current,(Fs=Gs.current)===null||Fs===void 0?void 0:Fs.getPopupElement()]},Ss,Gr,!!Za);var _o=Ct.useMemo(function(){return(0,De.Z)((0,De.Z)({},bn),{},{notFoundContent:sr,open:As,triggerOpen:Ss,id:Ii,showSearch:ia,multiple:bs,toggleOpen:Gr})},[bn,sr,Ss,As,Ii,ia,bs,Gr]),_d=!!kr||ao,Eu;_d&&(Eu=Ct.createElement(rt,{className:Gt()("".concat(ni,"-arrow"),(0,se.Z)({},"".concat(ni,"-arrow-loading"),ao)),customizeIcon:kr,customizeIconProps:{loading:ao,searchValue:Bs,open:As,focused:yl,showSearch:ia}}));var yd=function(){var ga;Br==null||Br(),(ga=Fa.current)===null||ga===void 0||ga.focus(),Pr([],{type:"clear",values:Si}),Ds("",!1,!1)},kh=ht(ni,yd,Si,Hr,Bi,Er,Bs,dr),nc=kh.allowClear,sl=kh.clearIcon,Ch=Ct.createElement(Po,{ref:Js}),Qd=Gt()(ni,mn,(_n={},(0,se.Z)(_n,"".concat(ni,"-focused"),yl),(0,se.Z)(_n,"".concat(ni,"-multiple"),bs),(0,se.Z)(_n,"".concat(ni,"-single"),!bs),(0,se.Z)(_n,"".concat(ni,"-allow-clear"),Hr),(0,se.Z)(_n,"".concat(ni,"-show-arrow"),_d),(0,se.Z)(_n,"".concat(ni,"-disabled"),Er),(0,se.Z)(_n,"".concat(ni,"-loading"),ao),(0,se.Z)(_n,"".concat(ni,"-open"),As),(0,se.Z)(_n,"".concat(ni,"-customize-input"),ui),(0,se.Z)(_n,"".concat(ni,"-show-search"),ia),_n)),Oc=Ct.createElement(Ae,{ref:Gs,disabled:Er,prefixCls:ni,visible:Ss,popupElement:Ch,animation:Pi,transitionName:Xo,dropdownStyle:ha,dropdownClassName:fs,direction:er,dropdownMatchSelectWidth:ba,dropdownRender:Xs,dropdownAlign:bo,placement:jo,builtinPlacements:ps,getPopupContainer:us,empty:rr,getTriggerDOMNode:function(){return Ms.current},onPopupVisibleChange:nu,onPopupMouseEnter:fu},Za?Ct.cloneElement(Za,{ref:mh}):Ct.createElement(bi,(0,Lt.Z)({},bn,{domRef:Ms,prefixCls:ni,inputElement:ui,ref:Fa,id:Ii,showSearch:ia,autoClearSearchValue:ns,mode:dr,activeDescendantId:so,tagRender:Mi,values:Si,open:As,onToggleOpen:Gr,activeValue:jn,searchValue:Bs,onSearch:Ds,onSearchSubmit:Su,onRemove:au,tokenWithEnter:ul}))),Dc;return Za?Dc=Oc:Dc=Ct.createElement("div",(0,Lt.Z)({className:Qd},ts,{ref:Gi,onMouseDown:lu,onKeyDown:ol,onKeyUp:Fl,onFocus:Eo,onBlur:ja}),yl&&!As&&Ct.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Si.map(function(Fs){var ga=Fs.label,Uu=Fs.value;return["number","string"].includes((0,Et.Z)(ga))?ga:Uu}).join(", "))),Oc,Eu,nc&&sl),Ct.createElement(dt.Provider,{value:_o},Dc)}),Zt=mt,Se=function(bn,Ne){var Bn=Ct.useRef({values:new Map,options:new Map}),_n=Ct.useMemo(function(){var ni=Bn.current,mn=ni.values,Ai=ni.options,Mi=bn.map(function(Si){if(Si.label===void 0){var Pr;return(0,De.Z)((0,De.Z)({},Si),{},{label:(Pr=mn.get(Si.value))===null||Pr===void 0?void 0:Pr.label})}return Si}),er=new Map,On=new Map;return Mi.forEach(function(Si){er.set(Si.value,Si),On.set(Si.value,Ne.get(Si.value)||Ai.get(Si.value))}),Bn.current.values=er,Bn.current.options=On,Mi},[bn,Ne]),Ii=Ct.useCallback(function(ni){return Ne.get(ni)||Bn.current.options.get(ni)},[Ne]);return[_n,Ii]};function Dt(bn,Ne){return Ke(bn).join("").toUpperCase().includes(Ne)}var Ie=function(bn,Ne,Bn,_n,Ii){return Ct.useMemo(function(){if(!Bn||_n===!1)return bn;var ni=Ne.options,mn=Ne.label,Ai=Ne.value,Mi=[],er=typeof _n=="function",On=Bn.toUpperCase(),Si=er?_n:function(rr,Kr){return Ii?Dt(Kr[Ii],On):Kr[ni]?Dt(Kr[mn!=="children"?mn:"label"],On):Dt(Kr[Ai],On)},Pr=er?function(rr){return je(rr)}:function(rr){return rr};return bn.forEach(function(rr){if(rr[ni]){var Kr=Si(Bn,Pr(rr));if(Kr)Mi.push(rr);else{var sr=rr[ni].filter(function(Br){return Si(Bn,Pr(Br))});sr.length&&Mi.push((0,De.Z)((0,De.Z)({},rr),{},(0,se.Z)({},ni,sr)))}return}Si(Bn,Pr(rr))&&Mi.push(rr)}),Mi},[bn,_n,Ii,Bn,Ne])},nn=bt(17115),zn=bt(38298),xn=["children","value"],li=["children"];function Qi(bn){var Ne=bn,Bn=Ne.key,_n=Ne.props,Ii=_n.children,ni=_n.value,mn=(0,le.Z)(_n,xn);return(0,De.Z)({key:Bn,value:ni!==void 0?ni:Bn,children:Ii},mn)}function Wi(bn){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,zn.Z)(bn).map(function(Bn,_n){if(!Ct.isValidElement(Bn)||!Bn.type)return null;var Ii=Bn,ni=Ii.type.isSelectOptGroup,mn=Ii.key,Ai=Ii.props,Mi=Ai.children,er=(0,le.Z)(Ai,li);return Ne||!ni?Qi(Bn):(0,De.Z)((0,De.Z)({key:"__RC_SELECT_GRP__".concat(mn===null?_n:mn,"__"),label:mn},er),{},{options:Wi(Mi)})}).filter(function(Bn){return Bn})}function pr(bn,Ne,Bn,_n,Ii){return Ct.useMemo(function(){var ni=bn,mn=!bn;mn&&(ni=Wi(Ne));var Ai=new Map,Mi=new Map,er=function(Pr,rr,Kr){Kr&&typeof Kr=="string"&&Pr.set(rr[Kr],rr)};function On(Si){for(var Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rr=0;rr<Si.length;rr+=1){var Kr=Si[rr];!Kr[Bn.options]||Pr?(Ai.set(Kr[Bn.value],Kr),er(Mi,Kr,Bn.label),er(Mi,Kr,_n),er(Mi,Kr,Ii)):On(Kr[Bn.options],!0)}}return On(ni),{options:ni,valueOptions:Ai,labelOptions:Mi}},[bn,Ne,Bn,_n,Ii])}function xr(bn){var Ne=Ct.useRef();Ne.current=bn;var Bn=Ct.useCallback(function(){return Ne.current.apply(Ne,arguments)},[]);return Bn}var qr=function(){return null};qr.isSelectOptGroup=!0;var Vr=qr,Jr=function(){return null};Jr.isSelectOption=!0;var Ir=Jr,Xr=bt(79722),to=bt(64002),ho=bt(21881),cs=Ct.createContext(null),no=cs;function Is(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var So=["disabled","title","children","style","className"];function Yt(bn){return typeof bn=="string"||typeof bn=="number"}var ai=function(Ne,Bn){var _n=yt(),Ii=_n.prefixCls,ni=_n.id,mn=_n.open,Ai=_n.multiple,Mi=_n.mode,er=_n.searchValue,On=_n.toggleOpen,Si=_n.notFoundContent,Pr=_n.onPopupScroll,rr=Ct.useContext(no),Kr=rr.flattenOptions,sr=rr.onActiveValue,Br=rr.defaultActiveFirstOption,dr=rr.onSelect,Er=rr.menuItemSelectedIcon,ao=rr.rawValues,Xi=rr.fieldNames,yr=rr.virtual,Lo=rr.direction,xs=rr.listHeight,Uo=rr.listItemHeight,jn="".concat(Ii,"-item"),Tr=(0,Xr.Z)(function(){return Kr},[mn,Kr],function(bo,jo){return jo[0]&&bo[1]!==jo[1]}),so=Ct.useRef(null),_r=function(jo){jo.preventDefault()},ns=function(jo){so.current&&so.current.scrollTo(typeof jo=="number"?{index:jo}:jo)},Oo=function(jo){for(var ps=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,us=Tr.length,gr=0;gr<us;gr+=1){var Ue=(jo+gr*ps+us)%us,qo=Tr[Ue],Sa=qo.group,za=qo.data;if(!Sa&&!za.disabled)return Ue}return-1},yi=Ct.useState(function(){return Oo(0)}),Bo=(0,re.Z)(yi,2),Hr=Bo[0],kr=Bo[1],Bi=function(jo){var ps=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;kr(jo);var us={source:ps?"keyboard":"mouse"},gr=Tr[jo];if(!gr){sr(null,-1,us);return}sr(gr.value,jo,us)};(0,Ct.useEffect)(function(){Bi(Br!==!1?Oo(0):-1)},[Tr.length,er]);var Po=Ct.useCallback(function(bo){return ao.has(bo)&&Mi!=="combobox"},[Mi,(0,ge.Z)(ao).toString(),ao.size]);(0,Ct.useEffect)(function(){var bo=setTimeout(function(){if(!Ai&&mn&&ao.size===1){var ps=Array.from(ao)[0],us=Tr.findIndex(function(gr){var Ue=gr.data;return Ue.value===ps});us!==-1&&(Bi(us),ns(us))}});if(mn){var jo;(jo=so.current)===null||jo===void 0||jo.scrollTo(void 0)}return function(){return clearTimeout(bo)}},[mn,er,Kr.length]);var Pi=function(jo){jo!==void 0&&dr(jo,{selected:!ao.has(jo)}),Ai||On(!1)};if(Ct.useImperativeHandle(Bn,function(){return{onKeyDown:function(jo){var ps=jo.which,us=jo.ctrlKey;switch(ps){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var gr=0;if(ps===et.Z.UP?gr=-1:ps===et.Z.DOWN?gr=1:Is()&&us&&(ps===et.Z.N?gr=1:ps===et.Z.P&&(gr=-1)),gr!==0){var Ue=Oo(Hr+gr,gr);ns(Ue),Bi(Ue,!0)}break}case et.Z.ENTER:{var qo=Tr[Hr];qo&&!qo.data.disabled?Pi(qo.value):Pi(void 0),mn&&jo.preventDefault();break}case et.Z.ESC:On(!1),mn&&jo.stopPropagation()}},onKeyUp:function(){},scrollTo:function(jo){ns(jo)}}}),Tr.length===0)return Ct.createElement("div",{role:"listbox",id:"".concat(ni,"_list"),className:"".concat(jn,"-empty"),onMouseDown:_r},Si);var Xo=Object.keys(Xi).map(function(bo){return Xi[bo]}),ha=function(jo){return jo.label};function fs(bo,jo){var ps=bo.group;return{role:ps?"presentation":"option",id:"".concat(ni,"_list_").concat(jo)}}var ba=function(jo){var ps=Tr[jo];if(!ps)return null;var us=ps.data||{},gr=us.value,Ue=ps.group,qo=(0,ae.Z)(us,!0),Sa=ha(ps);return ps?Ct.createElement("div",(0,Lt.Z)({"aria-label":typeof Sa=="string"&&!Ue?Sa:null},qo,{key:jo},fs(ps,jo),{"aria-selected":Po(gr)}),gr):null},Xs={role:"listbox",id:"".concat(ni,"_list")};return Ct.createElement(Ct.Fragment,null,yr&&Ct.createElement("div",(0,Lt.Z)({},Xs,{style:{height:0,width:0,overflow:"hidden"}}),ba(Hr-1),ba(Hr),ba(Hr+1)),Ct.createElement(ho.Z,{itemKey:"key",ref:so,data:Tr,height:xs,itemHeight:Uo,fullHeight:!1,onMouseDown:_r,onScroll:Pr,virtual:yr,direction:Lo,innerProps:yr?null:Xs},function(bo,jo){var ps,us=bo.group,gr=bo.groupOption,Ue=bo.data,qo=bo.label,Sa=bo.value,za=Ue.key;if(us){var El,ss=(El=Ue.title)!==null&&El!==void 0?El:Yt(qo)?qo.toString():void 0;return Ct.createElement("div",{className:Gt()(jn,"".concat(jn,"-group")),title:ss},qo!==void 0?qo:za)}var Vo=Ue.disabled,bs=Ue.title,ia=Ue.children,ts=Ue.style,Ea=Ue.className,Mo=(0,le.Z)(Ue,So),io=(0,to.Z)(Mo,Xo),Ko=Po(Sa),Gi="".concat(jn,"-option"),Ms=Gt()(jn,Gi,Ea,(ps={},(0,se.Z)(ps,"".concat(Gi,"-grouped"),gr),(0,se.Z)(ps,"".concat(Gi,"-active"),Hr===jo&&!Vo),(0,se.Z)(ps,"".concat(Gi,"-disabled"),Vo),(0,se.Z)(ps,"".concat(Gi,"-selected"),Ko),ps)),Gs=ha(bo),Fa=!Er||typeof Er=="function"||Ko,Js=typeof Gs=="number"?Gs:Gs||Sa,Ho=Yt(Js)?Js.toString():void 0;return bs!==void 0&&(Ho=bs),Ct.createElement("div",(0,Lt.Z)({},(0,ae.Z)(io),yr?{}:fs(bo,jo),{"aria-selected":Ko,className:Ms,title:Ho,onMouseMove:function(){Hr===jo||Vo||Bi(jo)},onClick:function(){Vo||Pi(Sa)},style:ts}),Ct.createElement("div",{className:"".concat(Gi,"-content")},Js),Ct.isValidElement(Er)||Ko,Fa&&Ct.createElement(rt,{className:"".concat(jn,"-option-state"),customizeIcon:Er,customizeIconProps:{isSelected:Ko}},Ko?"\u2713":null))}))},Jo=Ct.forwardRef(ai);Jo.displayName="OptionList";var sa=Jo;function xa(bn){var Ne=bn.mode,Bn=bn.options,_n=bn.children,Ii=bn.backfill,ni=bn.allowClear,mn=bn.placeholder,Ai=bn.getInputElement,Mi=bn.showSearch,er=bn.onSearch,On=bn.defaultOpen,Si=bn.autoFocus,Pr=bn.labelInValue,rr=bn.value,Kr=bn.inputValue,sr=bn.optionLabelProp,Br=isMultiple(Ne),dr=Mi!==void 0?Mi:Br||Ne==="combobox",Er=Bn||convertChildrenToData(_n);if(warning(Ne!=="tags"||Er.every(function(Lo){return!Lo.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ne==="tags"||Ne==="combobox"){var ao=Er.some(function(Lo){return Lo.options?Lo.options.some(function(xs){return typeof("value"in xs?xs.value:xs.key)=="number"}):typeof("value"in Lo?Lo.value:Lo.key)=="number"});warning(!ao,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ne!=="combobox"||!sr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ne==="combobox"||!Ii,"`backfill` only works with `combobox` mode."),warning(Ne==="combobox"||!Ai,"`getInputElement` only work with `combobox` mode."),noteOnce(Ne!=="combobox"||!Ai||!ni||!mn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),er&&!dr&&Ne!=="combobox"&&Ne!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!On||Si,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),rr!=null){var Xi=toArray(rr);warning(!Pr||Xi.every(function(Lo){return _typeof(Lo)==="object"&&("key"in Lo||"value"in Lo)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Br||Array.isArray(rr),"`value` should be array when `mode` is `multiple` or `tags`")}if(_n){var yr=null;toNodeArray(_n).some(function(Lo){if(!React.isValidElement(Lo)||!Lo.type)return!1;var xs=Lo,Uo=xs.type;if(Uo.isSelectOption)return!1;if(Uo.isSelectOptGroup){var jn=toNodeArray(Lo.props.children).every(function(Tr){return!React.isValidElement(Tr)||!Lo.type||Tr.type.isSelectOption?!0:(yr=Tr.type,!1)});return!jn}return yr=Uo,!0}),yr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(yr.displayName||yr.name||yr,"`.")),warning(Kr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function va(bn,Ne){if(bn){var Bn=function _n(Ii){for(var ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mn=0;mn<Ii.length;mn++){var Ai=Ii[mn];if(Ai[Ne==null?void 0:Ne.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ni&&Array.isArray(Ai[Ne==null?void 0:Ne.options])&&_n(Ai[Ne==null?void 0:Ne.options],!0))break}};Bn(bn)}}var Zs=null,Qr=["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"],Vn=["inputValue"];function Qn(bn){return!bn||(0,Et.Z)(bn)!=="object"}var kn=Ct.forwardRef(function(bn,Ne){var Bn=bn.id,_n=bn.mode,Ii=bn.prefixCls,ni=Ii===void 0?"rc-select":Ii,mn=bn.backfill,Ai=bn.fieldNames,Mi=bn.inputValue,er=bn.searchValue,On=bn.onSearch,Si=bn.autoClearSearchValue,Pr=Si===void 0?!0:Si,rr=bn.onSelect,Kr=bn.onDeselect,sr=bn.dropdownMatchSelectWidth,Br=sr===void 0?!0:sr,dr=bn.filterOption,Er=bn.filterSort,ao=bn.optionFilterProp,Xi=bn.optionLabelProp,yr=bn.options,Lo=bn.children,xs=bn.defaultActiveFirstOption,Uo=bn.menuItemSelectedIcon,jn=bn.virtual,Tr=bn.direction,so=bn.listHeight,_r=so===void 0?200:so,ns=bn.listItemHeight,Oo=ns===void 0?20:ns,yi=bn.value,Bo=bn.defaultValue,Hr=bn.labelInValue,kr=bn.onChange,Bi=(0,le.Z)(bn,Qr),Po=(0,nn.ZP)(Bn),Pi=Pt(_n),Xo=!!(!yr&&Lo),ha=Ct.useMemo(function(){return dr===void 0&&_n==="combobox"?!1:dr},[dr,_n]),fs=Ct.useMemo(function(){return Kt(Ai,Xo)},[JSON.stringify(Ai),Xo]),ba=(0,Tt.Z)("",{value:er!==void 0?er:Mi,postState:function(Qs){return Qs||""}}),Xs=(0,re.Z)(ba,2),bo=Xs[0],jo=Xs[1],ps=pr(yr,Lo,fs,ao,Xi),us=ps.valueOptions,gr=ps.labelOptions,Ue=ps.options,qo=Ct.useCallback(function(As){var Qs=Ke(As);return Qs.map(function(Ss){var Gr,ul,Ds,Su,Ku;if(Qn(Ss))Gr=Ss;else{var $l;Ds=Ss.key,ul=Ss.label,Gr=($l=Ss.value)!==null&&$l!==void 0?$l:Ds}var fr=us.get(Gr);if(fr){var Xa;if(ul===void 0&&(ul=fr==null?void 0:fr[Xi||fs.label]),Ds===void 0&&(Ds=(Xa=fr==null?void 0:fr.key)!==null&&Xa!==void 0?Xa:Gr),Su=fr==null?void 0:fr.disabled,Ku=fr==null?void 0:fr.title,0)var ol}return{label:ul,value:Gr,key:Ds,disabled:Su,title:Ku}})},[fs,Xi,us]),Sa=(0,Tt.Z)(Bo,{value:yi}),za=(0,re.Z)(Sa,2),El=za[0],ss=za[1],Vo=Ct.useMemo(function(){var As,Qs=qo(El);return _n==="combobox"&&Oe((As=Qs[0])===null||As===void 0?void 0:As.value)?[]:Qs},[El,qo,_n]),bs=Se(Vo,us),ia=(0,re.Z)(bs,2),ts=ia[0],Ea=ia[1],Mo=Ct.useMemo(function(){if(!_n&&ts.length===1){var As=ts[0];if(As.value===null&&(As.label===null||As.label===void 0))return[]}return ts.map(function(Qs){var Ss;return(0,De.Z)((0,De.Z)({},Qs),{},{label:(Ss=Qs.label)!==null&&Ss!==void 0?Ss:Qs.value})})},[_n,ts]),io=Ct.useMemo(function(){return new Set(ts.map(function(As){return As.value}))},[ts]);Ct.useEffect(function(){if(_n==="combobox"){var As,Qs=(As=ts[0])===null||As===void 0?void 0:As.value;jo(Ge(Qs)?String(Qs):"")}},[ts]);var Ko=xr(function(As,Qs){var Ss,Gr=Qs!=null?Qs:As;return Ss={},(0,se.Z)(Ss,fs.value,As),(0,se.Z)(Ss,fs.label,Gr),Ss}),Gi=Ct.useMemo(function(){if(_n!=="tags")return Ue;var As=(0,ge.Z)(Ue),Qs=function(Gr){return us.has(Gr)};return(0,ge.Z)(ts).sort(function(Ss,Gr){return Ss.value<Gr.value?-1:1}).forEach(function(Ss){var Gr=Ss.value;Qs(Gr)||As.push(Ko(Gr,Ss.label))}),As},[Ko,Ue,us,ts,_n]),Ms=Ie(Gi,fs,bo,ha,ao),Gs=Ct.useMemo(function(){return _n!=="tags"||!bo||Ms.some(function(As){return As[ao||"value"]===bo})||Ms.some(function(As){return As[fs.value]===bo})?Ms:[Ko(bo)].concat((0,ge.Z)(Ms))},[Ko,ao,_n,Ms,bo,fs]),Fa=Ct.useMemo(function(){return Er?(0,ge.Z)(Gs).sort(function(As,Qs){return Er(As,Qs)}):Gs},[Gs,Er]),Js=Ct.useMemo(function(){return Ee(Fa,{fieldNames:fs,childrenAsData:Xo})},[Fa,fs,Xo]),Ho=function(Qs){var Ss=qo(Qs);if(ss(Ss),kr&&(Ss.length!==ts.length||Ss.some(function(Ds,Su){var Ku;return((Ku=ts[Su])===null||Ku===void 0?void 0:Ku.value)!==(Ds==null?void 0:Ds.value)}))){var Gr=Hr?Ss:Ss.map(function(Ds){return Ds.value}),ul=Ss.map(function(Ds){return je(Ea(Ds.value))});kr(Pi?Gr:Gr[0],Pi?ul:ul[0])}},Ks=Ct.useState(null),yl=(0,re.Z)(Ks,2),wl=yl[0],Dl=yl[1],Bs=Ct.useState(0),ui=(0,re.Z)(Bs,2),Za=ui[0],mh=ui[1],ju=xs!==void 0?xs:_n!=="combobox",su=Ct.useCallback(function(As,Qs){var Ss=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gr=Ss.source,ul=Gr===void 0?"keyboard":Gr;mh(Qs),mn&&_n==="combobox"&&As!==null&&ul==="keyboard"&&Dl(String(As))},[mn,_n]),Ao=function(Qs,Ss,Gr){var ul=function(){var Ja,Eo=Ea(Qs);return[Hr?{label:Eo==null?void 0:Eo[fs.label],value:Qs,key:(Ja=Eo==null?void 0:Eo.key)!==null&&Ja!==void 0?Ja:Qs}:Qs,je(Eo)]};if(Ss&&rr){var Ds=ul(),Su=(0,re.Z)(Ds,2),Ku=Su[0],$l=Su[1];rr(Ku,$l)}else if(!Ss&&Kr&&Gr!=="clear"){var fr=ul(),Xa=(0,re.Z)(fr,2),ol=Xa[0],Fl=Xa[1];Kr(ol,Fl)}},zs=xr(function(As,Qs){var Ss,Gr=Pi?Qs.selected:!0;Gr?Ss=Pi?[].concat((0,ge.Z)(ts),[As]):[As]:Ss=ts.filter(function(ul){return ul.value!==As}),Ho(Ss),Ao(As,Gr),_n==="combobox"?Dl(""):(!Pt||Pr)&&(jo(""),Dl(""))}),Ns=function(Qs,Ss){Ho(Qs);var Gr=Ss.type,ul=Ss.values;(Gr==="remove"||Gr==="clear")&&ul.forEach(function(Ds){Ao(Ds.value,!1,Gr)})},Es=function(Qs,Ss){if(jo(Qs),Dl(null),Ss.source==="submit"){var Gr=(Qs||"").trim();if(Gr){var ul=Array.from(new Set([].concat((0,ge.Z)(io),[Gr])));Ho(ul),Ao(Gr,!0),jo("")}return}Ss.source!=="blur"&&(_n==="combobox"&&Ho(Qs),On==null||On(Qs))},_s=function(Qs){var Ss=Qs;_n!=="tags"&&(Ss=Qs.map(function(ul){var Ds=gr.get(ul);return Ds==null?void 0:Ds.value}).filter(function(ul){return ul!==void 0}));var Gr=Array.from(new Set([].concat((0,ge.Z)(io),(0,ge.Z)(Ss))));Ho(Gr),Gr.forEach(function(ul){Ao(ul,!0)})},Nl=Ct.useMemo(function(){var As=jn!==!1&&Br!==!1;return(0,De.Z)((0,De.Z)({},ps),{},{flattenOptions:Js,onActiveValue:su,defaultActiveFirstOption:ju,onSelect:zs,menuItemSelectedIcon:Uo,rawValues:io,fieldNames:fs,virtual:As,direction:Tr,listHeight:_r,listItemHeight:Oo,childrenAsData:Xo})},[ps,Js,su,ju,zs,Uo,io,fs,jn,Br,_r,Oo,Xo]);return Ct.createElement(no.Provider,{value:Nl},Ct.createElement(Zt,(0,Lt.Z)({},Bi,{id:Po,prefixCls:ni,ref:Ne,omitDomProps:Vn,mode:_n,displayValues:Mo,onDisplayValuesChange:Ns,direction:Tr,searchValue:bo,onSearch:Es,autoClearSearchValue:Pr,onSearchSplit:_s,dropdownMatchSelectWidth:Br,OptionList:sa,emptyOptions:!Js.length,activeValue:wl,activeDescendantId:"".concat(Po,"_list_").concat(Za)})))}),rn=kn;rn.Option=Ir,rn.OptGroup=Vr;var hi=rn,Ci=hi},9296:function(di,Pn,bt){"use strict";bt.r(Pn),bt.d(Pn,{ResizableTextArea:function(){return Te},default:function(){return Oe}});var Lt=bt(5891),ge=bt(57259),se=bt(80962),De=bt(80665),re=bt(29043),le=bt(19149),Et=bt(26390),Tt=bt(92310),ee=bt.n(Tt),Ct=bt(93681),Wt=bt(5643),Gt=bt(35788),Jt=bt(59301),wt=bt(29301),et=bt(28800),tt=bt(23073),lt=`
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;
`,rt=["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"],ht={},dt;function yt(Ve){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=Ve.getAttribute("id")||Ve.getAttribute("data-reactid")||Ve.getAttribute("name");if(_e&&ht[xe])return ht[xe];var ie=window.getComputedStyle(Ve),be=ie.getPropertyValue("box-sizing")||ie.getPropertyValue("-moz-box-sizing")||ie.getPropertyValue("-webkit-box-sizing"),Fn=parseFloat(ie.getPropertyValue("padding-bottom"))+parseFloat(ie.getPropertyValue("padding-top")),Mn=parseFloat(ie.getPropertyValue("border-bottom-width"))+parseFloat(ie.getPropertyValue("border-top-width")),Xe=rt.map(function(Xn){return"".concat(Xn,":").concat(ie.getPropertyValue(Xn))}).join(";"),In={sizingStyle:Xe,paddingSize:Fn,borderSize:Mn,boxSizing:be};return _e&&xe&&(ht[xe]=In),In}function Mt(Ve){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),document.body.appendChild(dt)),Ve.getAttribute("wrap")?dt.setAttribute("wrap",Ve.getAttribute("wrap")):dt.removeAttribute("wrap");var be=yt(Ve,_e),Fn=be.paddingSize,Mn=be.borderSize,Xe=be.boxSizing,In=be.sizingStyle;dt.setAttribute("style","".concat(In,";").concat(lt)),dt.value=Ve.value||Ve.placeholder||"";var Xn=void 0,pi=void 0,$n,bi=dt.scrollHeight;if(Xe==="border-box"?bi+=Mn:Xe==="content-box"&&(bi-=Fn),xe!==null||ie!==null){dt.value=" ";var sn=dt.scrollHeight-Fn;xe!==null&&(Xn=sn*xe,Xe==="border-box"&&(Xn=Xn+Fn+Mn),bi=Math.max(Xn,bi)),ie!==null&&(pi=sn*ie,Xe==="border-box"&&(pi=pi+Fn+Mn),$n=bi>pi?"":"hidden",bi=Math.min(pi,bi))}var Li={height:bi,overflowY:$n,resize:"none"};return Xn&&(Li.minHeight=Xn),pi&&(Li.maxHeight=pi),Li}var jt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Rt=0,ae=1,he=2,pe=Jt.forwardRef(function(Ve,_e){var xe=Ve,ie=xe.prefixCls,be=xe.onPressEnter,Fn=xe.defaultValue,Mn=xe.value,Xe=xe.autoSize,In=xe.onResize,Xn=xe.className,pi=xe.style,$n=xe.disabled,bi=xe.onChange,sn=xe.onInternalAutoSize,Li=(0,le.Z)(xe,jt),ji=(0,Gt.Z)(Fn,{value:Mn,postState:function(Vr){return Vr!=null?Vr:""}}),ve=(0,re.Z)(ji,2),hn=ve[0],Ae=ve[1],Ot=function(Vr){Ae(Vr.target.value),bi==null||bi(Vr)},Ft=Jt.useRef();Jt.useImperativeHandle(_e,function(){return{textArea:Ft.current}});var Kt=Jt.useMemo(function(){return Xe&&(0,De.Z)(Xe)==="object"?[Xe.minRows,Xe.maxRows]:[]},[Xe]),Ee=(0,re.Z)(Kt,2),je=Ee[0],ce=Ee[1],Be=!!Xe,$t=function(){try{if(document.activeElement===Ft.current){var Vr=Ft.current,Jr=Vr.selectionStart,Ir=Vr.selectionEnd,Xr=Vr.scrollTop;Ft.current.setSelectionRange(Jr,Ir),Ft.current.scrollTop=Xr}}catch(to){}},Pt=Jt.useState(he),mt=(0,re.Z)(Pt,2),Zt=mt[0],Se=mt[1],Dt=Jt.useState(),Ie=(0,re.Z)(Dt,2),nn=Ie[0],zn=Ie[1],xn=function(){Se(Rt)};(0,et.Z)(function(){Be&&xn()},[Mn,je,ce,Be]),(0,et.Z)(function(){if(Zt===Rt)Se(ae);else if(Zt===ae){var qr=Mt(Ft.current,!1,je,ce);Se(he),zn(qr)}else $t()},[Zt]);var li=Jt.useRef(),Qi=function(){tt.Z.cancel(li.current)},Wi=function(Vr){Zt===he&&(In==null||In(Vr),Xe&&(Qi(),li.current=(0,tt.Z)(function(){xn()})))};Jt.useEffect(function(){return Qi},[]);var pr=Be?nn:null,xr=(0,ge.Z)((0,ge.Z)({},pi),pr);return(Zt===Rt||Zt===ae)&&(xr.overflowY="hidden",xr.overflowX="hidden"),Jt.createElement(wt.Z,{onResize:Wi,disabled:!(Xe||In)},Jt.createElement("textarea",(0,Lt.Z)({},Li,{ref:Ft,style:xr,className:ee()(ie,Xn,(0,se.Z)({},"".concat(ie,"-disabled"),$n)),disabled:$n,value:hn,onChange:Ot})))}),Te=pe,ne=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ke(Ve,_e){return(0,Et.Z)(Ve||"").slice(0,_e).join("")}function Vt(Ve,_e,xe,ie){var be=xe;return Ve?be=Ke(xe,ie):(0,Et.Z)(_e||"").length<xe.length&&(0,Et.Z)(xe||"").length>ie&&(be=_e),be}var $e=Jt.forwardRef(function(Ve,_e){var xe,ie=Ve.defaultValue,be=Ve.value,Fn=Ve.onFocus,Mn=Ve.onBlur,Xe=Ve.onChange,In=Ve.allowClear,Xn=Ve.maxLength,pi=Ve.onCompositionStart,$n=Ve.onCompositionEnd,bi=Ve.suffix,sn=Ve.prefixCls,Li=sn===void 0?"rc-textarea":sn,ji=Ve.classes,ve=Ve.showCount,hn=Ve.className,Ae=Ve.style,Ot=Ve.disabled,Ft=Ve.hidden,Kt=Ve.classNames,Ee=Ve.styles,je=Ve.onResize,ce=(0,le.Z)(Ve,ne),Be=(0,Gt.Z)(ie,{value:be,defaultValue:ie}),$t=(0,re.Z)(Be,2),Pt=$t[0],mt=$t[1],Zt=(0,Jt.useRef)(null),Se=Jt.useState(!1),Dt=(0,re.Z)(Se,2),Ie=Dt[0],nn=Dt[1],zn=Jt.useState(!1),xn=(0,re.Z)(zn,2),li=xn[0],Qi=xn[1],Wi=Jt.useRef(),pr=Jt.useRef(0),xr=Jt.useState(null),qr=(0,re.Z)(xr,2),Vr=qr[0],Jr=qr[1],Ir=function(){var Qn;(Qn=Zt.current)===null||Qn===void 0||Qn.textArea.focus()};(0,Jt.useImperativeHandle)(_e,function(){return{resizableTextArea:Zt.current,focus:Ir,blur:function(){var Qn;(Qn=Zt.current)===null||Qn===void 0||Qn.textArea.blur()}}}),(0,Jt.useEffect)(function(){nn(function(Vn){return!Ot&&Vn})},[Ot]);var Xr=Number(Xn)>0,to=function(Qn){Qi(!0),Wi.current=Pt,pr.current=Qn.currentTarget.selectionStart,pi==null||pi(Qn)},ho=function(Qn){Qi(!1);var kn=Qn.currentTarget.value;if(Xr){var rn,hi=pr.current>=Xn+1||pr.current===((rn=Wi.current)===null||rn===void 0?void 0:rn.length);kn=Vt(hi,Wi.current,kn,Xn)}kn!==Pt&&(mt(kn),(0,Wt.rJ)(Qn.currentTarget,Qn,Xe,kn)),$n==null||$n(Qn)},cs=function(Qn){var kn=Qn.target.value;if(!li&&Xr){var rn=Qn.target.selectionStart>=Xn+1||Qn.target.selectionStart===kn.length||!Qn.target.selectionStart;kn=Vt(rn,Pt,kn,Xn)}mt(kn),(0,Wt.rJ)(Qn.currentTarget,Qn,Xe,kn)},no=function(Qn){var kn=ce.onPressEnter,rn=ce.onKeyDown;Qn.key==="Enter"&&kn&&kn(Qn),rn==null||rn(Qn)},Is=function(Qn){nn(!0),Fn==null||Fn(Qn)},So=function(Qn){nn(!1),Mn==null||Mn(Qn)},Yt=function(Qn){var kn;mt(""),Ir(),(0,Wt.rJ)((kn=Zt.current)===null||kn===void 0?void 0:kn.textArea,Qn,Xe)},ai=(0,Wt.D7)(Pt);!li&&Xr&&be==null&&(ai=Ke(ai,Xn));var Jo=bi,sa;if(ve){var xa=(0,Et.Z)(ai).length;(0,De.Z)(ve)==="object"?sa=ve.formatter({value:ai,count:xa,maxLength:Xn}):sa="".concat(xa).concat(Xr?" / ".concat(Xn):""),Jo=Jt.createElement(Jt.Fragment,null,Jo,Jt.createElement("span",{className:ee()("".concat(Li,"-data-count"),Kt==null?void 0:Kt.count),style:Ee==null?void 0:Ee.count},sa))}var va=function(Qn){var kn;je==null||je(Qn),(kn=Zt.current)!==null&&kn!==void 0&&kn.textArea.style.height&&Jr(!0)},Zs=!ce.autoSize&&!ve&&!In,Qr=Jt.createElement(Ct.BaseInput,{value:ai,allowClear:In,handleReset:Yt,suffix:Jo,prefixCls:Li,classes:{affixWrapper:ee()(ji==null?void 0:ji.affixWrapper,(xe={},(0,se.Z)(xe,"".concat(Li,"-show-count"),ve),(0,se.Z)(xe,"".concat(Li,"-textarea-allow-clear"),In),xe))},disabled:Ot,focused:Ie,className:hn,style:(0,ge.Z)((0,ge.Z)({},Ae),Vr&&!Zs?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof sa=="string"?sa:void 0}},hidden:Ft,inputElement:Jt.createElement(Te,(0,Lt.Z)({},ce,{onKeyDown:no,onChange:cs,onFocus:Is,onBlur:So,onCompositionStart:to,onCompositionEnd:ho,className:Kt==null?void 0:Kt.textarea,style:(0,ge.Z)((0,ge.Z)({},Ee==null?void 0:Ee.textarea),{},{resize:Ae==null?void 0:Ae.resize}),disabled:Ot,prefixCls:Li,onResize:va,ref:Zt}))});return Qr}),Ge=$e,Oe=Ge},39417:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ae}});var Lt=bt(5891),ge=bt(80962),se=bt(19149),De=bt(57259),re=bt(79545),le=bt(68550),Et=bt(21882),Tt=bt(17928),ee=bt(7711),Ct=bt(92310),Wt=bt.n(Ct),Gt=bt(36994),Jt=bt(59301),wt=bt(39378),et=function(pe){for(var Te=pe.prefixCls,ne=pe.level,Ke=pe.isStart,Vt=pe.isEnd,$e="".concat(Te,"-indent-unit"),Ge=[],Oe=0;Oe<ne;Oe+=1){var Ve;Ge.push(Jt.createElement("span",{key:Oe,className:Wt()($e,(Ve={},(0,ge.Z)(Ve,"".concat($e,"-start"),Ke[Oe]),(0,ge.Z)(Ve,"".concat($e,"-end"),Vt[Oe]),Ve))}))}return Jt.createElement("span",{"aria-hidden":"true",className:"".concat(Te,"-indent")},Ge)},tt=Jt.memo(et),lt=bt(67841),rt=bt(71430),ht=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],dt="open",yt="close",Mt="---",jt=function(he){(0,Tt.Z)(Te,he);var pe=(0,ee.Z)(Te);function Te(){var ne;(0,re.Z)(this,Te);for(var Ke=arguments.length,Vt=new Array(Ke),$e=0;$e<Ke;$e++)Vt[$e]=arguments[$e];return ne=pe.call.apply(pe,[this].concat(Vt)),ne.state={dragNodeHighlight:!1},ne.selectHandle=void 0,ne.cacheIndent=void 0,ne.onSelectorClick=function(Ge){var Oe=ne.props.context.onNodeClick;Oe(Ge,(0,rt.F)(ne.props)),ne.isSelectable()?ne.onSelect(Ge):ne.onCheck(Ge)},ne.onSelectorDoubleClick=function(Ge){var Oe=ne.props.context.onNodeDoubleClick;Oe(Ge,(0,rt.F)(ne.props))},ne.onSelect=function(Ge){if(!ne.isDisabled()){var Oe=ne.props.context.onNodeSelect;Oe(Ge,(0,rt.F)(ne.props))}},ne.onCheck=function(Ge){if(!ne.isDisabled()){var Oe=ne.props,Ve=Oe.disableCheckbox,_e=Oe.checked,xe=ne.props.context.onNodeCheck;if(!(!ne.isCheckable()||Ve)){var ie=!_e;xe(Ge,(0,rt.F)(ne.props),ie)}}},ne.onMouseEnter=function(Ge){var Oe=ne.props.context.onNodeMouseEnter;Oe(Ge,(0,rt.F)(ne.props))},ne.onMouseLeave=function(Ge){var Oe=ne.props.context.onNodeMouseLeave;Oe(Ge,(0,rt.F)(ne.props))},ne.onContextMenu=function(Ge){var Oe=ne.props.context.onNodeContextMenu;Oe(Ge,(0,rt.F)(ne.props))},ne.onDragStart=function(Ge){var Oe=ne.props.context.onNodeDragStart;Ge.stopPropagation(),ne.setState({dragNodeHighlight:!0}),Oe(Ge,(0,Et.Z)(ne));try{Ge.dataTransfer.setData("text/plain","")}catch(Ve){}},ne.onDragEnter=function(Ge){var Oe=ne.props.context.onNodeDragEnter;Ge.preventDefault(),Ge.stopPropagation(),Oe(Ge,(0,Et.Z)(ne))},ne.onDragOver=function(Ge){var Oe=ne.props.context.onNodeDragOver;Ge.preventDefault(),Ge.stopPropagation(),Oe(Ge,(0,Et.Z)(ne))},ne.onDragLeave=function(Ge){var Oe=ne.props.context.onNodeDragLeave;Ge.stopPropagation(),Oe(Ge,(0,Et.Z)(ne))},ne.onDragEnd=function(Ge){var Oe=ne.props.context.onNodeDragEnd;Ge.stopPropagation(),ne.setState({dragNodeHighlight:!1}),Oe(Ge,(0,Et.Z)(ne))},ne.onDrop=function(Ge){var Oe=ne.props.context.onNodeDrop;Ge.preventDefault(),Ge.stopPropagation(),ne.setState({dragNodeHighlight:!1}),Oe(Ge,(0,Et.Z)(ne))},ne.onExpand=function(Ge){var Oe=ne.props,Ve=Oe.loading,_e=Oe.context.onNodeExpand;Ve||_e(Ge,(0,rt.F)(ne.props))},ne.setSelectHandle=function(Ge){ne.selectHandle=Ge},ne.getNodeState=function(){var Ge=ne.props.expanded;return ne.isLeaf()?null:Ge?dt:yt},ne.hasChildren=function(){var Ge=ne.props.eventKey,Oe=ne.props.context.keyEntities,Ve=(0,lt.Z)(Oe,Ge)||{},_e=Ve.children;return!!(_e||[]).length},ne.isLeaf=function(){var Ge=ne.props,Oe=Ge.isLeaf,Ve=Ge.loaded,_e=ne.props.context.loadData,xe=ne.hasChildren();return Oe===!1?!1:Oe||!_e&&!xe||_e&&Ve&&!xe},ne.isDisabled=function(){var Ge=ne.props.disabled,Oe=ne.props.context.disabled;return!!(Oe||Ge)},ne.isCheckable=function(){var Ge=ne.props.checkable,Oe=ne.props.context.checkable;return!Oe||Ge===!1?!1:Oe},ne.syncLoadData=function(Ge){var Oe=Ge.expanded,Ve=Ge.loading,_e=Ge.loaded,xe=ne.props.context,ie=xe.loadData,be=xe.onNodeLoad;Ve||ie&&Oe&&!ne.isLeaf()&&!ne.hasChildren()&&!_e&&be((0,rt.F)(ne.props))},ne.isDraggable=function(){var Ge=ne.props,Oe=Ge.data,Ve=Ge.context.draggable;return!!(Ve&&(!Ve.nodeDraggable||Ve.nodeDraggable(Oe)))},ne.renderDragHandler=function(){var Ge=ne.props.context,Oe=Ge.draggable,Ve=Ge.prefixCls;return Oe!=null&&Oe.icon?Jt.createElement("span",{className:"".concat(Ve,"-draggable-icon")},Oe.icon):null},ne.renderSwitcherIconDom=function(Ge){var Oe=ne.props.switcherIcon,Ve=ne.props.context.switcherIcon,_e=Oe||Ve;return typeof _e=="function"?_e((0,De.Z)((0,De.Z)({},ne.props),{},{isLeaf:Ge})):_e},ne.renderSwitcher=function(){var Ge=ne.props.expanded,Oe=ne.props.context.prefixCls;if(ne.isLeaf()){var Ve=ne.renderSwitcherIconDom(!0);return Ve!==!1?Jt.createElement("span",{className:Wt()("".concat(Oe,"-switcher"),"".concat(Oe,"-switcher-noop"))},Ve):null}var _e=Wt()("".concat(Oe,"-switcher"),"".concat(Oe,"-switcher_").concat(Ge?dt:yt)),xe=ne.renderSwitcherIconDom(!1);return xe!==!1?Jt.createElement("span",{onClick:ne.onExpand,className:_e},xe):null},ne.renderCheckbox=function(){var Ge=ne.props,Oe=Ge.checked,Ve=Ge.halfChecked,_e=Ge.disableCheckbox,xe=ne.props.context.prefixCls,ie=ne.isDisabled(),be=ne.isCheckable();if(!be)return null;var Fn=typeof be!="boolean"?be:null;return Jt.createElement("span",{className:Wt()("".concat(xe,"-checkbox"),Oe&&"".concat(xe,"-checkbox-checked"),!Oe&&Ve&&"".concat(xe,"-checkbox-indeterminate"),(ie||_e)&&"".concat(xe,"-checkbox-disabled")),onClick:ne.onCheck},Fn)},ne.renderIcon=function(){var Ge=ne.props.loading,Oe=ne.props.context.prefixCls;return Jt.createElement("span",{className:Wt()("".concat(Oe,"-iconEle"),"".concat(Oe,"-icon__").concat(ne.getNodeState()||"docu"),Ge&&"".concat(Oe,"-icon_loading"))})},ne.renderSelector=function(){var Ge=ne.state.dragNodeHighlight,Oe=ne.props,Ve=Oe.title,_e=Ve===void 0?Mt:Ve,xe=Oe.selected,ie=Oe.icon,be=Oe.loading,Fn=Oe.data,Mn=ne.props.context,Xe=Mn.prefixCls,In=Mn.showIcon,Xn=Mn.icon,pi=Mn.loadData,$n=Mn.titleRender,bi=ne.isDisabled(),sn="".concat(Xe,"-node-content-wrapper"),Li;if(In){var ji=ie||Xn;Li=ji?Jt.createElement("span",{className:Wt()("".concat(Xe,"-iconEle"),"".concat(Xe,"-icon__customize"))},typeof ji=="function"?ji(ne.props):ji):ne.renderIcon()}else pi&&be&&(Li=ne.renderIcon());var ve;typeof _e=="function"?ve=_e(Fn):$n?ve=$n(Fn):ve=_e;var hn=Jt.createElement("span",{className:"".concat(Xe,"-title")},ve);return Jt.createElement("span",{ref:ne.setSelectHandle,title:typeof _e=="string"?_e:"",className:Wt()("".concat(sn),"".concat(sn,"-").concat(ne.getNodeState()||"normal"),!bi&&(xe||Ge)&&"".concat(Xe,"-node-selected")),onMouseEnter:ne.onMouseEnter,onMouseLeave:ne.onMouseLeave,onContextMenu:ne.onContextMenu,onClick:ne.onSelectorClick,onDoubleClick:ne.onSelectorDoubleClick},Li,hn,ne.renderDropIndicator())},ne.renderDropIndicator=function(){var Ge=ne.props,Oe=Ge.disabled,Ve=Ge.eventKey,_e=ne.props.context,xe=_e.draggable,ie=_e.dropLevelOffset,be=_e.dropPosition,Fn=_e.prefixCls,Mn=_e.indent,Xe=_e.dropIndicatorRender,In=_e.dragOverNodeKey,Xn=_e.direction,pi=!!xe,$n=!Oe&&pi&&In===Ve,bi=Mn!=null?Mn:ne.cacheIndent;return ne.cacheIndent=Mn,$n?Xe({dropPosition:be,dropLevelOffset:ie,indent:bi,prefixCls:Fn,direction:Xn}):null},ne}return(0,le.Z)(Te,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ke=this.props.selectable,Vt=this.props.context.selectable;return typeof Ke=="boolean"?Ke:Vt}},{key:"render",value:function(){var Ke,Vt=this.props,$e=Vt.eventKey,Ge=Vt.className,Oe=Vt.style,Ve=Vt.dragOver,_e=Vt.dragOverGapTop,xe=Vt.dragOverGapBottom,ie=Vt.isLeaf,be=Vt.isStart,Fn=Vt.isEnd,Mn=Vt.expanded,Xe=Vt.selected,In=Vt.checked,Xn=Vt.halfChecked,pi=Vt.loading,$n=Vt.domRef,bi=Vt.active,sn=Vt.data,Li=Vt.onMouseMove,ji=Vt.selectable,ve=(0,se.Z)(Vt,ht),hn=this.props.context,Ae=hn.prefixCls,Ot=hn.filterTreeNode,Ft=hn.keyEntities,Kt=hn.dropContainerKey,Ee=hn.dropTargetKey,je=hn.draggingNodeKey,ce=this.isDisabled(),Be=(0,Gt.Z)(ve,{aria:!0,data:!0}),$t=(0,lt.Z)(Ft,$e)||{},Pt=$t.level,mt=Fn[Fn.length-1],Zt=this.isDraggable(),Se=!ce&&Zt,Dt=je===$e,Ie=ji!==void 0?{"aria-selected":!!ji}:void 0;return Jt.createElement("div",(0,Lt.Z)({ref:$n,className:Wt()(Ge,"".concat(Ae,"-treenode"),(Ke={},(0,ge.Z)(Ke,"".concat(Ae,"-treenode-disabled"),ce),(0,ge.Z)(Ke,"".concat(Ae,"-treenode-switcher-").concat(Mn?"open":"close"),!ie),(0,ge.Z)(Ke,"".concat(Ae,"-treenode-checkbox-checked"),In),(0,ge.Z)(Ke,"".concat(Ae,"-treenode-checkbox-indeterminate"),Xn),(0,ge.Z)(Ke,"".concat(Ae,"-treenode-selected"),Xe),(0,ge.Z)(Ke,"".concat(Ae,"-treenode-loading"),pi),(0,ge.Z)(Ke,"".concat(Ae,"-treenode-active"),bi),(0,ge.Z)(Ke,"".concat(Ae,"-treenode-leaf-last"),mt),(0,ge.Z)(Ke,"".concat(Ae,"-treenode-draggable"),Zt),(0,ge.Z)(Ke,"dragging",Dt),(0,ge.Z)(Ke,"drop-target",Ee===$e),(0,ge.Z)(Ke,"drop-container",Kt===$e),(0,ge.Z)(Ke,"drag-over",!ce&&Ve),(0,ge.Z)(Ke,"drag-over-gap-top",!ce&&_e),(0,ge.Z)(Ke,"drag-over-gap-bottom",!ce&&xe),(0,ge.Z)(Ke,"filter-node",Ot&&Ot((0,rt.F)(this.props))),Ke)),style:Oe,draggable:Se,"aria-grabbed":Dt,onDragStart:Se?this.onDragStart:void 0,onDragEnter:Zt?this.onDragEnter:void 0,onDragOver:Zt?this.onDragOver:void 0,onDragLeave:Zt?this.onDragLeave:void 0,onDrop:Zt?this.onDrop:void 0,onDragEnd:Zt?this.onDragEnd:void 0,onMouseMove:Li},Ie,Be),Jt.createElement(tt,{prefixCls:Ae,level:Pt,isStart:be,isEnd:Fn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Te}(Jt.Component),Rt=function(pe){return Jt.createElement(wt.k.Consumer,null,function(Te){return Jt.createElement(jt,(0,Lt.Z)({},pe,{context:Te}))})};Rt.displayName="TreeNode",Rt.isTreeNode=1;var ae=Rt},39378:function(di,Pn,bt){"use strict";bt.d(Pn,{k:function(){return ge}});var Lt=bt(59301),ge=Lt.createContext(null)},99581:function(di,Pn,bt){"use strict";bt.d(Pn,{O:function(){return ae.Z},Z:function(){return hn}});var Lt=bt(5891),ge=bt(80962),se=bt(80665),De=bt(57259),re=bt(26390),le=bt(79545),Et=bt(68550),Tt=bt(21882),ee=bt(17928),Ct=bt(7711),Wt=bt(92310),Gt=bt.n(Wt),Jt=bt(85108),wt=bt(36994),et=bt(51395),tt=bt(59301),lt=bt(39378);function rt(Ae){var Ot=Ae.dropPosition,Ft=Ae.dropLevelOffset,Kt=Ae.indent,Ee={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ot){case-1:Ee.top=0,Ee.left=-Ft*Kt;break;case 1:Ee.bottom=0,Ee.left=-Ft*Kt;break;case 0:Ee.bottom=0,Ee.left=Kt;break}return tt.createElement("div",{style:Ee})}function ht(Ae){if(Ae==null)throw new TypeError("Cannot destructure "+Ae)}var dt=bt(29043),yt=bt(19149),Mt=bt(28800),jt=bt(21881),Rt=bt(43469),ae=bt(39417);function he(Ae,Ot){var Ft=tt.useState(!1),Kt=(0,dt.Z)(Ft,2),Ee=Kt[0],je=Kt[1];tt.useLayoutEffect(function(){if(Ee)return Ae(),function(){Ot()}},[Ee]),tt.useLayoutEffect(function(){return je(!0),function(){je(!1)}},[])}var pe=bt(71430),Te=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ne=function(Ot,Ft){var Kt=Ot.className,Ee=Ot.style,je=Ot.motion,ce=Ot.motionNodes,Be=Ot.motionType,$t=Ot.onMotionStart,Pt=Ot.onMotionEnd,mt=Ot.active,Zt=Ot.treeNodeRequiredProps,Se=(0,yt.Z)(Ot,Te),Dt=tt.useState(!0),Ie=(0,dt.Z)(Dt,2),nn=Ie[0],zn=Ie[1],xn=tt.useContext(lt.k),li=xn.prefixCls,Qi=ce&&Be!=="hide";(0,Mt.Z)(function(){ce&&Qi!==nn&&zn(Qi)},[ce]);var Wi=function(){ce&&$t()},pr=tt.useRef(!1),xr=function(){ce&&!pr.current&&(pr.current=!0,Pt())};he(Wi,xr);var qr=function(Jr){Qi===Jr&&xr()};return ce?tt.createElement(Rt.default,(0,Lt.Z)({ref:Ft,visible:nn},je,{motionAppear:Be==="show",onVisibleChanged:qr}),function(Vr,Jr){var Ir=Vr.className,Xr=Vr.style;return tt.createElement("div",{ref:Jr,className:Gt()("".concat(li,"-treenode-motion"),Ir),style:Xr},ce.map(function(to){var ho=(0,Lt.Z)({},(ht(to.data),to.data)),cs=to.title,no=to.key,Is=to.isStart,So=to.isEnd;delete ho.children;var Yt=(0,pe.H8)(no,Zt);return tt.createElement(ae.Z,(0,Lt.Z)({},ho,Yt,{title:cs,active:mt,data:to.data,key:no,isStart:Is,isEnd:So}))}))}):tt.createElement(ae.Z,(0,Lt.Z)({domRef:Ft,className:Kt,style:Ee},Se,{active:mt}))};ne.displayName="MotionTreeNode";var Ke=tt.forwardRef(ne),Vt=Ke;function $e(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=Ae.length,Kt=Ot.length;if(Math.abs(Ft-Kt)!==1)return{add:!1,key:null};function Ee(je,ce){var Be=new Map;je.forEach(function(Pt){Be.set(Pt,!0)});var $t=ce.filter(function(Pt){return!Be.has(Pt)});return $t.length===1?$t[0]:null}return Ft<Kt?{add:!0,key:Ee(Ae,Ot)}:{add:!1,key:Ee(Ot,Ae)}}function Ge(Ae,Ot,Ft){var Kt=Ae.findIndex(function(Be){return Be.key===Ft}),Ee=Ae[Kt+1],je=Ot.findIndex(function(Be){return Be.key===Ft});if(Ee){var ce=Ot.findIndex(function(Be){return Be.key===Ee.key});return Ot.slice(je+1,ce)}return Ot.slice(je+1)}var Oe=["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"],Ve={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_e=function(){},xe="RC_TREE_MOTION_".concat(Math.random()),ie={key:xe},be={key:xe,level:0,index:0,pos:"0",node:ie,nodes:[ie]},Fn={parent:null,children:[],pos:be.pos,data:ie,title:null,key:xe,isStart:[],isEnd:[]};function Mn(Ae,Ot,Ft,Kt){return Ot===!1||!Ft?Ae:Ae.slice(0,Math.ceil(Ft/Kt)+1)}function Xe(Ae){var Ot=Ae.key,Ft=Ae.pos;return(0,pe.km)(Ot,Ft)}function In(Ae){for(var Ot=String(Ae.data.key),Ft=Ae;Ft.parent;)Ft=Ft.parent,Ot="".concat(Ft.data.key," > ").concat(Ot);return Ot}var Xn=tt.forwardRef(function(Ae,Ot){var Ft=Ae.prefixCls,Kt=Ae.data,Ee=Ae.selectable,je=Ae.checkable,ce=Ae.expandedKeys,Be=Ae.selectedKeys,$t=Ae.checkedKeys,Pt=Ae.loadedKeys,mt=Ae.loadingKeys,Zt=Ae.halfCheckedKeys,Se=Ae.keyEntities,Dt=Ae.disabled,Ie=Ae.dragging,nn=Ae.dragOverNodeKey,zn=Ae.dropPosition,xn=Ae.motion,li=Ae.height,Qi=Ae.itemHeight,Wi=Ae.virtual,pr=Ae.focusable,xr=Ae.activeItem,qr=Ae.focused,Vr=Ae.tabIndex,Jr=Ae.onKeyDown,Ir=Ae.onFocus,Xr=Ae.onBlur,to=Ae.onActiveChange,ho=Ae.onListChangeStart,cs=Ae.onListChangeEnd,no=(0,yt.Z)(Ae,Oe),Is=tt.useRef(null),So=tt.useRef(null);tt.useImperativeHandle(Ot,function(){return{scrollTo:function(Si){Is.current.scrollTo(Si)},getIndentWidth:function(){return So.current.offsetWidth}}});var Yt=tt.useState(ce),ai=(0,dt.Z)(Yt,2),Jo=ai[0],sa=ai[1],xa=tt.useState(Kt),va=(0,dt.Z)(xa,2),Zs=va[0],Qr=va[1],Vn=tt.useState(Kt),Qn=(0,dt.Z)(Vn,2),kn=Qn[0],rn=Qn[1],hi=tt.useState([]),Ci=(0,dt.Z)(hi,2),bn=Ci[0],Ne=Ci[1],Bn=tt.useState(null),_n=(0,dt.Z)(Bn,2),Ii=_n[0],ni=_n[1],mn=tt.useRef(Kt);mn.current=Kt;function Ai(){var On=mn.current;Qr(On),rn(On),Ne([]),ni(null),cs()}(0,Mt.Z)(function(){sa(ce);var On=$e(Jo,ce);if(On.key!==null)if(On.add){var Si=Zs.findIndex(function(dr){var Er=dr.key;return Er===On.key}),Pr=Mn(Ge(Zs,Kt,On.key),Wi,li,Qi),rr=Zs.slice();rr.splice(Si+1,0,Fn),rn(rr),Ne(Pr),ni("show")}else{var Kr=Kt.findIndex(function(dr){var Er=dr.key;return Er===On.key}),sr=Mn(Ge(Kt,Zs,On.key),Wi,li,Qi),Br=Kt.slice();Br.splice(Kr+1,0,Fn),rn(Br),Ne(sr),ni("hide")}else Zs!==Kt&&(Qr(Kt),rn(Kt))},[ce,Kt]),tt.useEffect(function(){Ie||Ai()},[Ie]);var Mi=xn?kn:Kt,er={expandedKeys:ce,selectedKeys:Be,loadedKeys:Pt,loadingKeys:mt,checkedKeys:$t,halfCheckedKeys:Zt,dragOverNodeKey:nn,dropPosition:zn,keyEntities:Se};return tt.createElement(tt.Fragment,null,qr&&xr&&tt.createElement("span",{style:Ve,"aria-live":"assertive"},In(xr)),tt.createElement("div",null,tt.createElement("input",{style:Ve,disabled:pr===!1||Dt,tabIndex:pr!==!1?Vr:null,onKeyDown:Jr,onFocus:Ir,onBlur:Xr,value:"",onChange:_e,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(Ft,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(Ft,"-indent")},tt.createElement("div",{ref:So,className:"".concat(Ft,"-indent-unit")}))),tt.createElement(jt.Z,(0,Lt.Z)({},no,{data:Mi,itemKey:Xe,height:li,fullHeight:!1,virtual:Wi,itemHeight:Qi,prefixCls:"".concat(Ft,"-list"),ref:Is,onVisibleChange:function(Si,Pr){var rr=new Set(Si),Kr=Pr.filter(function(sr){return!rr.has(sr)});Kr.some(function(sr){return Xe(sr)===xe})&&Ai()}}),function(On){var Si=On.pos,Pr=(0,Lt.Z)({},(ht(On.data),On.data)),rr=On.title,Kr=On.key,sr=On.isStart,Br=On.isEnd,dr=(0,pe.km)(Kr,Si);delete Pr.key,delete Pr.children;var Er=(0,pe.H8)(dr,er);return tt.createElement(Vt,(0,Lt.Z)({},Pr,Er,{title:rr,active:!!xr&&Kr===xr.key,pos:Si,data:On.data,isStart:sr,isEnd:Br,motion:xn,motionNodes:Kr===xe?bn:null,motionType:Ii,onMotionStart:ho,onMotionEnd:Ai,treeNodeRequiredProps:er,onMouseMove:function(){to(null)}}))}))});Xn.displayName="NodeList";var pi=Xn,$n=bt(35654),bi=bt(90782),sn=bt(67841),Li=10,ji=function(Ae){(0,ee.Z)(Ft,Ae);var Ot=(0,Ct.Z)(Ft);function Ft(){var Kt;(0,le.Z)(this,Ft);for(var Ee=arguments.length,je=new Array(Ee),ce=0;ce<Ee;ce++)je[ce]=arguments[ce];return Kt=Ot.call.apply(Ot,[this].concat(je)),Kt.destroyed=!1,Kt.delayedDragEnterLogic=void 0,Kt.loadingRetryTimes={},Kt.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,pe.w$)()},Kt.dragStartMousePosition=null,Kt.dragNode=void 0,Kt.currentMouseOverDroppableNodeKey=null,Kt.listRef=tt.createRef(),Kt.onNodeDragStart=function(Be,$t){var Pt=Kt.state,mt=Pt.expandedKeys,Zt=Pt.keyEntities,Se=Kt.props.onDragStart,Dt=$t.props.eventKey;Kt.dragNode=$t,Kt.dragStartMousePosition={x:Be.clientX,y:Be.clientY};var Ie=(0,$n._5)(mt,Dt);Kt.setState({draggingNodeKey:Dt,dragChildrenKeys:(0,$n.wA)(Dt,Zt),indent:Kt.listRef.current.getIndentWidth()}),Kt.setExpandedKeys(Ie),window.addEventListener("dragend",Kt.onWindowDragEnd),Se==null||Se({event:Be,node:(0,pe.F)($t.props)})},Kt.onNodeDragEnter=function(Be,$t){var Pt=Kt.state,mt=Pt.expandedKeys,Zt=Pt.keyEntities,Se=Pt.dragChildrenKeys,Dt=Pt.flattenNodes,Ie=Pt.indent,nn=Kt.props,zn=nn.onDragEnter,xn=nn.onExpand,li=nn.allowDrop,Qi=nn.direction,Wi=$t.props,pr=Wi.pos,xr=Wi.eventKey,qr=(0,Tt.Z)(Kt),Vr=qr.dragNode;if(Kt.currentMouseOverDroppableNodeKey!==xr&&(Kt.currentMouseOverDroppableNodeKey=xr),!Vr){Kt.resetDragState();return}var Jr=(0,$n.OM)(Be,Vr,$t,Ie,Kt.dragStartMousePosition,li,Dt,Zt,mt,Qi),Ir=Jr.dropPosition,Xr=Jr.dropLevelOffset,to=Jr.dropTargetKey,ho=Jr.dropContainerKey,cs=Jr.dropTargetPos,no=Jr.dropAllowed,Is=Jr.dragOverNodeKey;if(Se.indexOf(to)!==-1||!no){Kt.resetDragState();return}if(Kt.delayedDragEnterLogic||(Kt.delayedDragEnterLogic={}),Object.keys(Kt.delayedDragEnterLogic).forEach(function(So){clearTimeout(Kt.delayedDragEnterLogic[So])}),Vr.props.eventKey!==$t.props.eventKey&&(Be.persist(),Kt.delayedDragEnterLogic[pr]=window.setTimeout(function(){if(Kt.state.draggingNodeKey!==null){var So=(0,re.Z)(mt),Yt=(0,sn.Z)(Zt,$t.props.eventKey);Yt&&(Yt.children||[]).length&&(So=(0,$n.L0)(mt,$t.props.eventKey)),"expandedKeys"in Kt.props||Kt.setExpandedKeys(So),xn==null||xn(So,{node:(0,pe.F)($t.props),expanded:!0,nativeEvent:Be.nativeEvent})}},800)),Vr.props.eventKey===to&&Xr===0){Kt.resetDragState();return}Kt.setState({dragOverNodeKey:Is,dropPosition:Ir,dropLevelOffset:Xr,dropTargetKey:to,dropContainerKey:ho,dropTargetPos:cs,dropAllowed:no}),zn==null||zn({event:Be,node:(0,pe.F)($t.props),expandedKeys:mt})},Kt.onNodeDragOver=function(Be,$t){var Pt=Kt.state,mt=Pt.dragChildrenKeys,Zt=Pt.flattenNodes,Se=Pt.keyEntities,Dt=Pt.expandedKeys,Ie=Pt.indent,nn=Kt.props,zn=nn.onDragOver,xn=nn.allowDrop,li=nn.direction,Qi=(0,Tt.Z)(Kt),Wi=Qi.dragNode;if(Wi){var pr=(0,$n.OM)(Be,Wi,$t,Ie,Kt.dragStartMousePosition,xn,Zt,Se,Dt,li),xr=pr.dropPosition,qr=pr.dropLevelOffset,Vr=pr.dropTargetKey,Jr=pr.dropContainerKey,Ir=pr.dropAllowed,Xr=pr.dropTargetPos,to=pr.dragOverNodeKey;mt.indexOf(Vr)!==-1||!Ir||(Wi.props.eventKey===Vr&&qr===0?Kt.state.dropPosition===null&&Kt.state.dropLevelOffset===null&&Kt.state.dropTargetKey===null&&Kt.state.dropContainerKey===null&&Kt.state.dropTargetPos===null&&Kt.state.dropAllowed===!1&&Kt.state.dragOverNodeKey===null||Kt.resetDragState():xr===Kt.state.dropPosition&&qr===Kt.state.dropLevelOffset&&Vr===Kt.state.dropTargetKey&&Jr===Kt.state.dropContainerKey&&Xr===Kt.state.dropTargetPos&&Ir===Kt.state.dropAllowed&&to===Kt.state.dragOverNodeKey||Kt.setState({dropPosition:xr,dropLevelOffset:qr,dropTargetKey:Vr,dropContainerKey:Jr,dropTargetPos:Xr,dropAllowed:Ir,dragOverNodeKey:to}),zn==null||zn({event:Be,node:(0,pe.F)($t.props)}))}},Kt.onNodeDragLeave=function(Be,$t){Kt.currentMouseOverDroppableNodeKey===$t.props.eventKey&&!Be.currentTarget.contains(Be.relatedTarget)&&(Kt.resetDragState(),Kt.currentMouseOverDroppableNodeKey=null);var Pt=Kt.props.onDragLeave;Pt==null||Pt({event:Be,node:(0,pe.F)($t.props)})},Kt.onWindowDragEnd=function(Be){Kt.onNodeDragEnd(Be,null,!0),window.removeEventListener("dragend",Kt.onWindowDragEnd)},Kt.onNodeDragEnd=function(Be,$t){var Pt=Kt.props.onDragEnd;Kt.setState({dragOverNodeKey:null}),Kt.cleanDragState(),Pt==null||Pt({event:Be,node:(0,pe.F)($t.props)}),Kt.dragNode=null,window.removeEventListener("dragend",Kt.onWindowDragEnd)},Kt.onNodeDrop=function(Be,$t){var Pt,mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Zt=Kt.state,Se=Zt.dragChildrenKeys,Dt=Zt.dropPosition,Ie=Zt.dropTargetKey,nn=Zt.dropTargetPos,zn=Zt.dropAllowed;if(zn){var xn=Kt.props.onDrop;if(Kt.setState({dragOverNodeKey:null}),Kt.cleanDragState(),Ie!==null){var li=(0,De.Z)((0,De.Z)({},(0,pe.H8)(Ie,Kt.getTreeNodeRequiredProps())),{},{active:((Pt=Kt.getActiveItem())===null||Pt===void 0?void 0:Pt.key)===Ie,data:(0,sn.Z)(Kt.state.keyEntities,Ie).node}),Qi=Se.indexOf(Ie)!==-1;(0,et.ZP)(!Qi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Wi=(0,$n.yx)(nn),pr={event:Be,node:(0,pe.F)(li),dragNode:Kt.dragNode?(0,pe.F)(Kt.dragNode.props):null,dragNodesKeys:[Kt.dragNode.props.eventKey].concat(Se),dropToGap:Dt!==0,dropPosition:Dt+Number(Wi[Wi.length-1])};mt||xn==null||xn(pr),Kt.dragNode=null}}},Kt.cleanDragState=function(){var Be=Kt.state.draggingNodeKey;Be!==null&&Kt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Kt.dragStartMousePosition=null,Kt.currentMouseOverDroppableNodeKey=null},Kt.triggerExpandActionExpand=function(Be,$t){var Pt=Kt.state,mt=Pt.expandedKeys,Zt=Pt.flattenNodes,Se=$t.expanded,Dt=$t.key,Ie=$t.isLeaf;if(!(Ie||Be.shiftKey||Be.metaKey||Be.ctrlKey)){var nn=Zt.filter(function(xn){return xn.key===Dt})[0],zn=(0,pe.F)((0,De.Z)((0,De.Z)({},(0,pe.H8)(Dt,Kt.getTreeNodeRequiredProps())),{},{data:nn.data}));Kt.setExpandedKeys(Se?(0,$n._5)(mt,Dt):(0,$n.L0)(mt,Dt)),Kt.onNodeExpand(Be,zn)}},Kt.onNodeClick=function(Be,$t){var Pt=Kt.props,mt=Pt.onClick,Zt=Pt.expandAction;Zt==="click"&&Kt.triggerExpandActionExpand(Be,$t),mt==null||mt(Be,$t)},Kt.onNodeDoubleClick=function(Be,$t){var Pt=Kt.props,mt=Pt.onDoubleClick,Zt=Pt.expandAction;Zt==="doubleClick"&&Kt.triggerExpandActionExpand(Be,$t),mt==null||mt(Be,$t)},Kt.onNodeSelect=function(Be,$t){var Pt=Kt.state.selectedKeys,mt=Kt.state,Zt=mt.keyEntities,Se=mt.fieldNames,Dt=Kt.props,Ie=Dt.onSelect,nn=Dt.multiple,zn=$t.selected,xn=$t[Se.key],li=!zn;li?nn?Pt=(0,$n.L0)(Pt,xn):Pt=[xn]:Pt=(0,$n._5)(Pt,xn);var Qi=Pt.map(function(Wi){var pr=(0,sn.Z)(Zt,Wi);return pr?pr.node:null}).filter(function(Wi){return Wi});Kt.setUncontrolledState({selectedKeys:Pt}),Ie==null||Ie(Pt,{event:"select",selected:li,node:$t,selectedNodes:Qi,nativeEvent:Be.nativeEvent})},Kt.onNodeCheck=function(Be,$t,Pt){var mt=Kt.state,Zt=mt.keyEntities,Se=mt.checkedKeys,Dt=mt.halfCheckedKeys,Ie=Kt.props,nn=Ie.checkStrictly,zn=Ie.onCheck,xn=$t.key,li,Qi={event:"check",node:$t,checked:Pt,nativeEvent:Be.nativeEvent};if(nn){var Wi=Pt?(0,$n.L0)(Se,xn):(0,$n._5)(Se,xn),pr=(0,$n._5)(Dt,xn);li={checked:Wi,halfChecked:pr},Qi.checkedNodes=Wi.map(function(Xr){return(0,sn.Z)(Zt,Xr)}).filter(function(Xr){return Xr}).map(function(Xr){return Xr.node}),Kt.setUncontrolledState({checkedKeys:Wi})}else{var xr=(0,bi.S)([].concat((0,re.Z)(Se),[xn]),!0,Zt),qr=xr.checkedKeys,Vr=xr.halfCheckedKeys;if(!Pt){var Jr=new Set(qr);Jr.delete(xn);var Ir=(0,bi.S)(Array.from(Jr),{checked:!1,halfCheckedKeys:Vr},Zt);qr=Ir.checkedKeys,Vr=Ir.halfCheckedKeys}li=qr,Qi.checkedNodes=[],Qi.checkedNodesPositions=[],Qi.halfCheckedKeys=Vr,qr.forEach(function(Xr){var to=(0,sn.Z)(Zt,Xr);if(to){var ho=to.node,cs=to.pos;Qi.checkedNodes.push(ho),Qi.checkedNodesPositions.push({node:ho,pos:cs})}}),Kt.setUncontrolledState({checkedKeys:qr},!1,{halfCheckedKeys:Vr})}zn==null||zn(li,Qi)},Kt.onNodeLoad=function(Be){var $t=Be.key,Pt=new Promise(function(mt,Zt){Kt.setState(function(Se){var Dt=Se.loadedKeys,Ie=Dt===void 0?[]:Dt,nn=Se.loadingKeys,zn=nn===void 0?[]:nn,xn=Kt.props,li=xn.loadData,Qi=xn.onLoad;if(!li||Ie.indexOf($t)!==-1||zn.indexOf($t)!==-1)return null;var Wi=li(Be);return Wi.then(function(){var pr=Kt.state.loadedKeys,xr=(0,$n.L0)(pr,$t);Qi==null||Qi(xr,{event:"load",node:Be}),Kt.setUncontrolledState({loadedKeys:xr}),Kt.setState(function(qr){return{loadingKeys:(0,$n._5)(qr.loadingKeys,$t)}}),mt()}).catch(function(pr){if(Kt.setState(function(qr){return{loadingKeys:(0,$n._5)(qr.loadingKeys,$t)}}),Kt.loadingRetryTimes[$t]=(Kt.loadingRetryTimes[$t]||0)+1,Kt.loadingRetryTimes[$t]>=Li){var xr=Kt.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Kt.setUncontrolledState({loadedKeys:(0,$n.L0)(xr,$t)}),mt()}Zt(pr)}),{loadingKeys:(0,$n.L0)(zn,$t)}})});return Pt.catch(function(){}),Pt},Kt.onNodeMouseEnter=function(Be,$t){var Pt=Kt.props.onMouseEnter;Pt==null||Pt({event:Be,node:$t})},Kt.onNodeMouseLeave=function(Be,$t){var Pt=Kt.props.onMouseLeave;Pt==null||Pt({event:Be,node:$t})},Kt.onNodeContextMenu=function(Be,$t){var Pt=Kt.props.onRightClick;Pt&&(Be.preventDefault(),Pt({event:Be,node:$t}))},Kt.onFocus=function(){var Be=Kt.props.onFocus;Kt.setState({focused:!0});for(var $t=arguments.length,Pt=new Array($t),mt=0;mt<$t;mt++)Pt[mt]=arguments[mt];Be==null||Be.apply(void 0,Pt)},Kt.onBlur=function(){var Be=Kt.props.onBlur;Kt.setState({focused:!1}),Kt.onActiveChange(null);for(var $t=arguments.length,Pt=new Array($t),mt=0;mt<$t;mt++)Pt[mt]=arguments[mt];Be==null||Be.apply(void 0,Pt)},Kt.getTreeNodeRequiredProps=function(){var Be=Kt.state,$t=Be.expandedKeys,Pt=Be.selectedKeys,mt=Be.loadedKeys,Zt=Be.loadingKeys,Se=Be.checkedKeys,Dt=Be.halfCheckedKeys,Ie=Be.dragOverNodeKey,nn=Be.dropPosition,zn=Be.keyEntities;return{expandedKeys:$t||[],selectedKeys:Pt||[],loadedKeys:mt||[],loadingKeys:Zt||[],checkedKeys:Se||[],halfCheckedKeys:Dt||[],dragOverNodeKey:Ie,dropPosition:nn,keyEntities:zn}},Kt.setExpandedKeys=function(Be){var $t=Kt.state,Pt=$t.treeData,mt=$t.fieldNames,Zt=(0,pe.oH)(Pt,Be,mt);Kt.setUncontrolledState({expandedKeys:Be,flattenNodes:Zt},!0)},Kt.onNodeExpand=function(Be,$t){var Pt=Kt.state.expandedKeys,mt=Kt.state,Zt=mt.listChanging,Se=mt.fieldNames,Dt=Kt.props,Ie=Dt.onExpand,nn=Dt.loadData,zn=$t.expanded,xn=$t[Se.key];if(!Zt){var li=Pt.indexOf(xn),Qi=!zn;if((0,et.ZP)(zn&&li!==-1||!zn&&li===-1,"Expand state not sync with index check"),Qi?Pt=(0,$n.L0)(Pt,xn):Pt=(0,$n._5)(Pt,xn),Kt.setExpandedKeys(Pt),Ie==null||Ie(Pt,{node:$t,expanded:Qi,nativeEvent:Be.nativeEvent}),Qi&&nn){var Wi=Kt.onNodeLoad($t);Wi&&Wi.then(function(){var pr=(0,pe.oH)(Kt.state.treeData,Pt,Se);Kt.setUncontrolledState({flattenNodes:pr})}).catch(function(){var pr=Kt.state.expandedKeys,xr=(0,$n._5)(pr,xn);Kt.setExpandedKeys(xr)})}}},Kt.onListChangeStart=function(){Kt.setUncontrolledState({listChanging:!0})},Kt.onListChangeEnd=function(){setTimeout(function(){Kt.setUncontrolledState({listChanging:!1})})},Kt.onActiveChange=function(Be){var $t=Kt.state.activeKey,Pt=Kt.props.onActiveChange;$t!==Be&&(Kt.setState({activeKey:Be}),Be!==null&&Kt.scrollTo({key:Be}),Pt==null||Pt(Be))},Kt.getActiveItem=function(){var Be=Kt.state,$t=Be.activeKey,Pt=Be.flattenNodes;return $t===null?null:Pt.find(function(mt){var Zt=mt.key;return Zt===$t})||null},Kt.offsetActiveKey=function(Be){var $t=Kt.state,Pt=$t.flattenNodes,mt=$t.activeKey,Zt=Pt.findIndex(function(Ie){var nn=Ie.key;return nn===mt});Zt===-1&&Be<0&&(Zt=Pt.length),Zt=(Zt+Be+Pt.length)%Pt.length;var Se=Pt[Zt];if(Se){var Dt=Se.key;Kt.onActiveChange(Dt)}else Kt.onActiveChange(null)},Kt.onKeyDown=function(Be){var $t=Kt.state,Pt=$t.activeKey,mt=$t.expandedKeys,Zt=$t.checkedKeys,Se=$t.fieldNames,Dt=Kt.props,Ie=Dt.onKeyDown,nn=Dt.checkable,zn=Dt.selectable;switch(Be.which){case Jt.Z.UP:{Kt.offsetActiveKey(-1),Be.preventDefault();break}case Jt.Z.DOWN:{Kt.offsetActiveKey(1),Be.preventDefault();break}}var xn=Kt.getActiveItem();if(xn&&xn.data){var li=Kt.getTreeNodeRequiredProps(),Qi=xn.data.isLeaf===!1||!!(xn.data[Se.children]||[]).length,Wi=(0,pe.F)((0,De.Z)((0,De.Z)({},(0,pe.H8)(Pt,li)),{},{data:xn.data,active:!0}));switch(Be.which){case Jt.Z.LEFT:{Qi&&mt.includes(Pt)?Kt.onNodeExpand({},Wi):xn.parent&&Kt.onActiveChange(xn.parent.key),Be.preventDefault();break}case Jt.Z.RIGHT:{Qi&&!mt.includes(Pt)?Kt.onNodeExpand({},Wi):xn.children&&xn.children.length&&Kt.onActiveChange(xn.children[0].key),Be.preventDefault();break}case Jt.Z.ENTER:case Jt.Z.SPACE:{nn&&!Wi.disabled&&Wi.checkable!==!1&&!Wi.disableCheckbox?Kt.onNodeCheck({},Wi,!Zt.includes(Pt)):!nn&&zn&&!Wi.disabled&&Wi.selectable!==!1&&Kt.onNodeSelect({},Wi);break}}}Ie==null||Ie(Be)},Kt.setUncontrolledState=function(Be){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Kt.destroyed){var mt=!1,Zt=!0,Se={};Object.keys(Be).forEach(function(Dt){if(Dt in Kt.props){Zt=!1;return}mt=!0,Se[Dt]=Be[Dt]}),mt&&(!$t||Zt)&&Kt.setState((0,De.Z)((0,De.Z)({},Se),Pt))}},Kt.scrollTo=function(Be){Kt.listRef.current.scrollTo(Be)},Kt}return(0,Et.Z)(Ft,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ee=this.props.activeKey;Ee!==void 0&&Ee!==this.state.activeKey&&(this.setState({activeKey:Ee}),Ee!==null&&this.scrollTo({key:Ee}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Ee,je=this.state,ce=je.focused,Be=je.flattenNodes,$t=je.keyEntities,Pt=je.draggingNodeKey,mt=je.activeKey,Zt=je.dropLevelOffset,Se=je.dropContainerKey,Dt=je.dropTargetKey,Ie=je.dropPosition,nn=je.dragOverNodeKey,zn=je.indent,xn=this.props,li=xn.prefixCls,Qi=xn.className,Wi=xn.style,pr=xn.showLine,xr=xn.focusable,qr=xn.tabIndex,Vr=qr===void 0?0:qr,Jr=xn.selectable,Ir=xn.showIcon,Xr=xn.icon,to=xn.switcherIcon,ho=xn.draggable,cs=xn.checkable,no=xn.checkStrictly,Is=xn.disabled,So=xn.motion,Yt=xn.loadData,ai=xn.filterTreeNode,Jo=xn.height,sa=xn.itemHeight,xa=xn.virtual,va=xn.titleRender,Zs=xn.dropIndicatorRender,Qr=xn.onContextMenu,Vn=xn.onScroll,Qn=xn.direction,kn=xn.rootClassName,rn=xn.rootStyle,hi=(0,wt.Z)(this.props,{aria:!0,data:!0}),Ci;return ho&&((0,se.Z)(ho)==="object"?Ci=ho:typeof ho=="function"?Ci={nodeDraggable:ho}:Ci={}),tt.createElement(lt.k.Provider,{value:{prefixCls:li,selectable:Jr,showIcon:Ir,icon:Xr,switcherIcon:to,draggable:Ci,draggingNodeKey:Pt,checkable:cs,checkStrictly:no,disabled:Is,keyEntities:$t,dropLevelOffset:Zt,dropContainerKey:Se,dropTargetKey:Dt,dropPosition:Ie,dragOverNodeKey:nn,indent:zn,direction:Qn,dropIndicatorRender:Zs,loadData:Yt,filterTreeNode:ai,titleRender:va,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}},tt.createElement("div",{role:"tree",className:Gt()(li,Qi,kn,(Ee={},(0,ge.Z)(Ee,"".concat(li,"-show-line"),pr),(0,ge.Z)(Ee,"".concat(li,"-focused"),ce),(0,ge.Z)(Ee,"".concat(li,"-active-focused"),mt!==null),Ee)),style:rn},tt.createElement(pi,(0,Lt.Z)({ref:this.listRef,prefixCls:li,style:Wi,data:Be,disabled:Is,selectable:Jr,checkable:!!cs,motion:So,dragging:Pt!==null,height:Jo,itemHeight:sa,virtual:xa,focusable:xr,focused:ce,tabIndex:Vr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Qr,onScroll:Vn},this.getTreeNodeRequiredProps(),hi))))}}],[{key:"getDerivedStateFromProps",value:function(Ee,je){var ce=je.prevProps,Be={prevProps:Ee};function $t(xr){return!ce&&xr in Ee||ce&&ce[xr]!==Ee[xr]}var Pt,mt=je.fieldNames;if($t("fieldNames")&&(mt=(0,pe.w$)(Ee.fieldNames),Be.fieldNames=mt),$t("treeData")?Pt=Ee.treeData:$t("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Pt=(0,pe.zn)(Ee.children)),Pt){Be.treeData=Pt;var Zt=(0,pe.I8)(Pt,{fieldNames:mt});Be.keyEntities=(0,De.Z)((0,ge.Z)({},xe,be),Zt.keyEntities)}var Se=Be.keyEntities||je.keyEntities;if($t("expandedKeys")||ce&&$t("autoExpandParent"))Be.expandedKeys=Ee.autoExpandParent||!ce&&Ee.defaultExpandParent?(0,$n.r7)(Ee.expandedKeys,Se):Ee.expandedKeys;else if(!ce&&Ee.defaultExpandAll){var Dt=(0,De.Z)({},Se);delete Dt[xe],Be.expandedKeys=Object.keys(Dt).map(function(xr){return Dt[xr].key})}else!ce&&Ee.defaultExpandedKeys&&(Be.expandedKeys=Ee.autoExpandParent||Ee.defaultExpandParent?(0,$n.r7)(Ee.defaultExpandedKeys,Se):Ee.defaultExpandedKeys);if(Be.expandedKeys||delete Be.expandedKeys,Pt||Be.expandedKeys){var Ie=(0,pe.oH)(Pt||je.treeData,Be.expandedKeys||je.expandedKeys,mt);Be.flattenNodes=Ie}if(Ee.selectable&&($t("selectedKeys")?Be.selectedKeys=(0,$n.BT)(Ee.selectedKeys,Ee):!ce&&Ee.defaultSelectedKeys&&(Be.selectedKeys=(0,$n.BT)(Ee.defaultSelectedKeys,Ee))),Ee.checkable){var nn;if($t("checkedKeys")?nn=(0,$n.E6)(Ee.checkedKeys)||{}:!ce&&Ee.defaultCheckedKeys?nn=(0,$n.E6)(Ee.defaultCheckedKeys)||{}:Pt&&(nn=(0,$n.E6)(Ee.checkedKeys)||{checkedKeys:je.checkedKeys,halfCheckedKeys:je.halfCheckedKeys}),nn){var zn=nn,xn=zn.checkedKeys,li=xn===void 0?[]:xn,Qi=zn.halfCheckedKeys,Wi=Qi===void 0?[]:Qi;if(!Ee.checkStrictly){var pr=(0,bi.S)(li,!0,Se);li=pr.checkedKeys,Wi=pr.halfCheckedKeys}Be.checkedKeys=li,Be.halfCheckedKeys=Wi}}return $t("loadedKeys")&&(Be.loadedKeys=Ee.loadedKeys),Be}}]),Ft}(tt.Component);ji.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:rt,allowDrop:function(){return!0},expandAction:!1},ji.TreeNode=ae.Z;var ve=ji,hn=ve},35654:function(di,Pn,bt){"use strict";bt.d(Pn,{BT:function(){return tt},E6:function(){return ht},L0:function(){return Ct},OM:function(){return et},_5:function(){return ee},r7:function(){return dt},wA:function(){return Gt},yx:function(){return Wt}});var Lt=bt(26390),ge=bt(80665),se=bt(51395),De=bt(59301),re=bt(39417),le=bt(67841),Et=bt(71430),Tt=null;function ee(yt,Mt){if(!yt)return[];var jt=yt.slice(),Rt=jt.indexOf(Mt);return Rt>=0&&jt.splice(Rt,1),jt}function Ct(yt,Mt){var jt=(yt||[]).slice();return jt.indexOf(Mt)===-1&&jt.push(Mt),jt}function Wt(yt){return yt.split("-")}function Gt(yt,Mt){var jt=[],Rt=(0,le.Z)(Mt,yt);function ae(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];he.forEach(function(pe){var Te=pe.key,ne=pe.children;jt.push(Te),ae(ne)})}return ae(Rt.children),jt}function Jt(yt){if(yt.parent){var Mt=Wt(yt.pos);return Number(Mt[Mt.length-1])===yt.parent.children.length-1}return!1}function wt(yt){var Mt=Wt(yt.pos);return Number(Mt[Mt.length-1])===0}function et(yt,Mt,jt,Rt,ae,he,pe,Te,ne,Ke){var Vt,$e=yt.clientX,Ge=yt.clientY,Oe=yt.target.getBoundingClientRect(),Ve=Oe.top,_e=Oe.height,xe=(Ke==="rtl"?-1:1)*(((ae==null?void 0:ae.x)||0)-$e),ie=(xe-12)/Rt,be=(0,le.Z)(Te,jt.props.eventKey);if(Ge<Ve+_e/2){var Fn=pe.findIndex(function(hn){return hn.key===be.key}),Mn=Fn<=0?0:Fn-1,Xe=pe[Mn].key;be=(0,le.Z)(Te,Xe)}var In=be.key,Xn=be,pi=be.key,$n=0,bi=0;if(!ne.includes(In))for(var sn=0;sn<ie&&Jt(be);sn+=1)be=be.parent,bi+=1;var Li=Mt.props.data,ji=be.node,ve=!0;return wt(be)&&be.level===0&&Ge<Ve+_e/2&&he({dragNode:Li,dropNode:ji,dropPosition:-1})&&be.key===jt.props.eventKey?$n=-1:(Xn.children||[]).length&&ne.includes(pi)?he({dragNode:Li,dropNode:ji,dropPosition:0})?$n=0:ve=!1:bi===0?ie>-1.5?he({dragNode:Li,dropNode:ji,dropPosition:1})?$n=1:ve=!1:he({dragNode:Li,dropNode:ji,dropPosition:0})?$n=0:he({dragNode:Li,dropNode:ji,dropPosition:1})?$n=1:ve=!1:he({dragNode:Li,dropNode:ji,dropPosition:1})?$n=1:ve=!1,{dropPosition:$n,dropLevelOffset:bi,dropTargetKey:be.key,dropTargetPos:be.pos,dragOverNodeKey:pi,dropContainerKey:$n===0?null:((Vt=be.parent)===null||Vt===void 0?void 0:Vt.key)||null,dropAllowed:ve}}function tt(yt,Mt){if(yt){var jt=Mt.multiple;return jt?yt.slice():yt.length?[yt[0]]:yt}}var lt=function(Mt){return Mt};function rt(yt,Mt){if(!yt)return[];var jt=Mt||{},Rt=jt.processProps,ae=Rt===void 0?lt:Rt,he=Array.isArray(yt)?yt:[yt];return he.map(function(pe){var Te=pe.children,ne=_objectWithoutProperties(pe,Tt),Ke=rt(Te,Mt);return React.createElement(TreeNode,_extends({key:ne.key},ae(ne)),Ke)})}function ht(yt){if(!yt)return null;var Mt;if(Array.isArray(yt))Mt={checkedKeys:yt,halfCheckedKeys:void 0};else if((0,ge.Z)(yt)==="object")Mt={checkedKeys:yt.checked||void 0,halfCheckedKeys:yt.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Mt}function dt(yt,Mt){var jt=new Set;function Rt(ae){if(!jt.has(ae)){var he=(0,le.Z)(Mt,ae);if(he){jt.add(ae);var pe=he.parent,Te=he.node;Te.disabled||pe&&Rt(pe.key)}}}return(yt||[]).forEach(function(ae){Rt(ae)}),(0,Lt.Z)(jt)}},90782:function(di,Pn,bt){"use strict";bt.d(Pn,{S:function(){return Et}});var Lt=bt(51395),ge=bt(67841);function se(Tt,ee){var Ct=new Set;return Tt.forEach(function(Wt){ee.has(Wt)||Ct.add(Wt)}),Ct}function De(Tt){var ee=Tt||{},Ct=ee.disabled,Wt=ee.disableCheckbox,Gt=ee.checkable;return!!(Ct||Wt)||Gt===!1}function re(Tt,ee,Ct,Wt){for(var Gt=new Set(Tt),Jt=new Set,wt=0;wt<=Ct;wt+=1){var et=ee.get(wt)||new Set;et.forEach(function(ht){var dt=ht.key,yt=ht.node,Mt=ht.children,jt=Mt===void 0?[]:Mt;Gt.has(dt)&&!Wt(yt)&&jt.filter(function(Rt){return!Wt(Rt.node)}).forEach(function(Rt){Gt.add(Rt.key)})})}for(var tt=new Set,lt=Ct;lt>=0;lt-=1){var rt=ee.get(lt)||new Set;rt.forEach(function(ht){var dt=ht.parent,yt=ht.node;if(!(Wt(yt)||!ht.parent||tt.has(ht.parent.key))){if(Wt(ht.parent.node)){tt.add(dt.key);return}var Mt=!0,jt=!1;(dt.children||[]).filter(function(Rt){return!Wt(Rt.node)}).forEach(function(Rt){var ae=Rt.key,he=Gt.has(ae);Mt&&!he&&(Mt=!1),!jt&&(he||Jt.has(ae))&&(jt=!0)}),Mt&&Gt.add(dt.key),jt&&Jt.add(dt.key),tt.add(dt.key)}})}return{checkedKeys:Array.from(Gt),halfCheckedKeys:Array.from(se(Jt,Gt))}}function le(Tt,ee,Ct,Wt,Gt){for(var Jt=new Set(Tt),wt=new Set(ee),et=0;et<=Wt;et+=1){var tt=Ct.get(et)||new Set;tt.forEach(function(dt){var yt=dt.key,Mt=dt.node,jt=dt.children,Rt=jt===void 0?[]:jt;!Jt.has(yt)&&!wt.has(yt)&&!Gt(Mt)&&Rt.filter(function(ae){return!Gt(ae.node)}).forEach(function(ae){Jt.delete(ae.key)})})}wt=new Set;for(var lt=new Set,rt=Wt;rt>=0;rt-=1){var ht=Ct.get(rt)||new Set;ht.forEach(function(dt){var yt=dt.parent,Mt=dt.node;if(!(Gt(Mt)||!dt.parent||lt.has(dt.parent.key))){if(Gt(dt.parent.node)){lt.add(yt.key);return}var jt=!0,Rt=!1;(yt.children||[]).filter(function(ae){return!Gt(ae.node)}).forEach(function(ae){var he=ae.key,pe=Jt.has(he);jt&&!pe&&(jt=!1),!Rt&&(pe||wt.has(he))&&(Rt=!0)}),jt||Jt.delete(yt.key),Rt&&wt.add(yt.key),lt.add(yt.key)}})}return{checkedKeys:Array.from(Jt),halfCheckedKeys:Array.from(se(wt,Jt))}}function Et(Tt,ee,Ct,Wt){var Gt=[],Jt;Wt?Jt=Wt:Jt=De;var wt=new Set(Tt.filter(function(rt){var ht=!!(0,ge.Z)(Ct,rt);return ht||Gt.push(rt),ht})),et=new Map,tt=0;Object.keys(Ct).forEach(function(rt){var ht=Ct[rt],dt=ht.level,yt=et.get(dt);yt||(yt=new Set,et.set(dt,yt)),yt.add(ht),tt=Math.max(tt,dt)}),(0,Lt.ZP)(!Gt.length,"Tree missing follow keys: ".concat(Gt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var lt;return ee===!0?lt=re(wt,et,tt,Jt):lt=le(wt,ee.halfCheckedKeys,et,tt,Jt),lt}},67841:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Lt}});function Lt(ge,se){return ge[se]}},71430:function(di,Pn,bt){"use strict";bt.d(Pn,{F:function(){return dt},H8:function(){return ht},I8:function(){return rt},km:function(){return Gt},oH:function(){return tt},w$:function(){return Jt},zn:function(){return et}});var Lt=bt(80665),ge=bt(26390),se=bt(57259),De=bt(19149),re=bt(38298),le=bt(64002),Et=bt(51395),Tt=bt(67841),ee=["children"];function Ct(yt,Mt){return"".concat(yt,"-").concat(Mt)}function Wt(yt){return yt&&yt.type&&yt.type.isTreeNode}function Gt(yt,Mt){return yt!=null?yt:Mt}function Jt(yt){var Mt=yt||{},jt=Mt.title,Rt=Mt._title,ae=Mt.key,he=Mt.children,pe=jt||"title";return{title:pe,_title:Rt||[pe],key:ae||"key",children:he||"children"}}function wt(yt,Mt){var jt=new Map;function Rt(ae){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ae||[]).forEach(function(pe){var Te=pe[Mt.key],ne=pe[Mt.children];warning(Te!=null,"Tree node must have a certain key: [".concat(he).concat(Te,"]"));var Ke=String(Te);warning(!jt.has(Ke)||Te===null||Te===void 0,"Same 'key' exist in the Tree: ".concat(Ke)),jt.set(Ke,!0),Rt(ne,"".concat(he).concat(Ke," > "))})}Rt(yt)}function et(yt){function Mt(jt){var Rt=(0,re.Z)(jt);return Rt.map(function(ae){if(!Wt(ae))return(0,Et.ZP)(!ae,"Tree/TreeNode can only accept TreeNode as children."),null;var he=ae.key,pe=ae.props,Te=pe.children,ne=(0,De.Z)(pe,ee),Ke=(0,se.Z)({key:he},ne),Vt=Mt(Te);return Vt.length&&(Ke.children=Vt),Ke}).filter(function(ae){return ae})}return Mt(yt)}function tt(yt,Mt,jt){var Rt=Jt(jt),ae=Rt._title,he=Rt.key,pe=Rt.children,Te=new Set(Mt===!0?[]:Mt),ne=[];function Ke(Vt){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Vt.map(function(Ge,Oe){for(var Ve=Ct($e?$e.pos:"0",Oe),_e=Gt(Ge[he],Ve),xe,ie=0;ie<ae.length;ie+=1){var be=ae[ie];if(Ge[be]!==void 0){xe=Ge[be];break}}var Fn=(0,se.Z)((0,se.Z)({},(0,le.Z)(Ge,[].concat((0,ge.Z)(ae),[he,pe]))),{},{title:xe,key:_e,parent:$e,pos:Ve,children:null,data:Ge,isStart:[].concat((0,ge.Z)($e?$e.isStart:[]),[Oe===0]),isEnd:[].concat((0,ge.Z)($e?$e.isEnd:[]),[Oe===Vt.length-1])});return ne.push(Fn),Mt===!0||Te.has(_e)?Fn.children=Ke(Ge[pe]||[],Fn):Fn.children=[],Fn})}return Ke(yt),ne}function lt(yt,Mt,jt){var Rt={};(0,Lt.Z)(jt)==="object"?Rt=jt:Rt={externalGetKey:jt},Rt=Rt||{};var ae=Rt,he=ae.childrenPropName,pe=ae.externalGetKey,Te=ae.fieldNames,ne=Jt(Te),Ke=ne.key,Vt=ne.children,$e=he||Vt,Ge;pe?typeof pe=="string"?Ge=function(_e){return _e[pe]}:typeof pe=="function"&&(Ge=function(_e){return pe(_e)}):Ge=function(_e,xe){return Gt(_e[Ke],xe)};function Oe(Ve,_e,xe,ie){var be=Ve?Ve[$e]:yt,Fn=Ve?Ct(xe.pos,_e):"0",Mn=Ve?[].concat((0,ge.Z)(ie),[Ve]):[];if(Ve){var Xe=Ge(Ve,Fn),In={node:Ve,index:_e,pos:Fn,key:Xe,parentPos:xe.node?xe.pos:null,level:xe.level+1,nodes:Mn};Mt(In)}be&&be.forEach(function(Xn,pi){Oe(Xn,pi,{node:Ve,pos:Fn,level:xe?xe.level+1:-1},Mn)})}Oe(null)}function rt(yt){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},jt=Mt.initWrapper,Rt=Mt.processEntity,ae=Mt.onProcessFinished,he=Mt.externalGetKey,pe=Mt.childrenPropName,Te=Mt.fieldNames,ne=arguments.length>2?arguments[2]:void 0,Ke=he||ne,Vt={},$e={},Ge={posEntities:Vt,keyEntities:$e};return jt&&(Ge=jt(Ge)||Ge),lt(yt,function(Oe){var Ve=Oe.node,_e=Oe.index,xe=Oe.pos,ie=Oe.key,be=Oe.parentPos,Fn=Oe.level,Mn=Oe.nodes,Xe={node:Ve,nodes:Mn,index:_e,key:ie,pos:xe,level:Fn},In=Gt(ie,xe);Vt[xe]=Xe,$e[In]=Xe,Xe.parent=Vt[be],Xe.parent&&(Xe.parent.children=Xe.parent.children||[],Xe.parent.children.push(Xe)),Rt&&Rt(Xe,Ge)},{externalGetKey:Ke,childrenPropName:pe,fieldNames:Te}),ae&&ae(Ge),Ge}function ht(yt,Mt){var jt=Mt.expandedKeys,Rt=Mt.selectedKeys,ae=Mt.loadedKeys,he=Mt.loadingKeys,pe=Mt.checkedKeys,Te=Mt.halfCheckedKeys,ne=Mt.dragOverNodeKey,Ke=Mt.dropPosition,Vt=Mt.keyEntities,$e=(0,Tt.Z)(Vt,yt),Ge={eventKey:yt,expanded:jt.indexOf(yt)!==-1,selected:Rt.indexOf(yt)!==-1,loaded:ae.indexOf(yt)!==-1,loading:he.indexOf(yt)!==-1,checked:pe.indexOf(yt)!==-1,halfChecked:Te.indexOf(yt)!==-1,pos:String($e?$e.pos:""),dragOver:ne===yt&&Ke===0,dragOverGapTop:ne===yt&&Ke===-1,dragOverGapBottom:ne===yt&&Ke===1};return Ge}function dt(yt){var Mt=yt.data,jt=yt.expanded,Rt=yt.selected,ae=yt.checked,he=yt.loaded,pe=yt.loading,Te=yt.halfChecked,ne=yt.dragOver,Ke=yt.dragOverGapTop,Vt=yt.dragOverGapBottom,$e=yt.pos,Ge=yt.active,Oe=yt.eventKey,Ve=(0,se.Z)((0,se.Z)({},Mt),{},{expanded:jt,selected:Rt,checked:ae,loaded:he,loading:pe,halfChecked:Te,dragOver:ne,dragOverGapTop:Ke,dragOverGapBottom:Vt,pos:$e,active:Ge,key:Oe});return"props"in Ve||Object.defineProperty(Ve,"props",{get:function(){return(0,Et.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),yt}}),Ve}},8178:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ge}});var Lt=bt(4676);function ge(se,De,re,le){var Et=Lt.unstable_batchedUpdates?function(ee){Lt.unstable_batchedUpdates(re,ee)}:re;return se!=null&&se.addEventListener&&se.addEventListener(De,Et,le),{remove:function(){se!=null&&se.removeEventListener&&se.removeEventListener(De,Et,le)}}}},21783:function(di,Pn,bt){"use strict";bt.d(Pn,{g1:function(){return Wt},os:function(){return Jt}});var Lt=/margin|padding|width|height|max|min|offset/,ge={left:!0,top:!0},se={cssFloat:1,styleFloat:1,float:1};function De(wt){return wt.nodeType===1?wt.ownerDocument.defaultView.getComputedStyle(wt,null):{}}function re(wt,et,tt){if(et=et.toLowerCase(),tt==="auto"){if(et==="height")return wt.offsetHeight;if(et==="width")return wt.offsetWidth}return et in ge||(ge[et]=Lt.test(et)),ge[et]?parseFloat(tt)||0:tt}function le(wt,et){var tt=arguments.length,lt=De(wt);return et=se[et]?"cssFloat"in wt.style?"cssFloat":"styleFloat":et,tt===1?lt:re(wt,et,lt[et]||wt.style[et])}function Et(wt,et,tt){var lt=arguments.length;if(et=se[et]?"cssFloat"in wt.style?"cssFloat":"styleFloat":et,lt===3)return typeof tt=="number"&&Lt.test(et)&&(tt="".concat(tt,"px")),wt.style[et]=tt,tt;for(var rt in et)et.hasOwnProperty(rt)&&Et(wt,rt,et[rt]);return De(wt)}function Tt(wt){return wt===document.body?document.documentElement.clientWidth:wt.offsetWidth}function ee(wt){return wt===document.body?window.innerHeight||document.documentElement.clientHeight:wt.offsetHeight}function Ct(){var wt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:wt,height:et}}function Wt(){var wt=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:wt,height:et}}function Gt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Jt(wt){var et=wt.getBoundingClientRect(),tt=document.documentElement;return{left:et.left+(window.pageXOffset||tt.scrollLeft)-(tt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||tt.scrollTop)-(tt.clientTop||document.body.clientTop||0)}}},24387:function(di,Pn,bt){"use strict";bt.d(Pn,{G:function(){return De}});var Lt=bt(87746),ge=function(le){if((0,Lt.Z)()&&window.document.documentElement){var Et=Array.isArray(le)?le:[le],Tt=window.document.documentElement;return Et.some(function(ee){return ee in Tt.style})}return!1},se=function(le,Et){if(!ge(le))return!1;var Tt=document.createElement("div"),ee=Tt.style[le];return Tt.style[le]=Et,Tt.style[le]!==ee};function De(re,le){return!Array.isArray(re)&&le!==void 0?se(re,le):ge(re)}},21881:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return ve}});var Lt=bt(5891),ge=bt(80665),se=bt(57259),De=bt(80962),re=bt(29043),le=bt(19149),Et=bt(92310),Tt=bt.n(Et),ee=bt(29301),Ct=bt(80764),Wt=bt(28800),Gt=bt(59301),Jt=bt(4676),wt=Gt.forwardRef(function(hn,Ae){var Ot=hn.height,Ft=hn.offsetY,Kt=hn.offsetX,Ee=hn.children,je=hn.prefixCls,ce=hn.onInnerResize,Be=hn.innerProps,$t=hn.rtl,Pt=hn.extra,mt={},Zt={display:"flex",flexDirection:"column"};return Ft!==void 0&&(mt={height:Ot,position:"relative",overflow:"hidden"},Zt=(0,se.Z)((0,se.Z)({},Zt),{},(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({transform:"translateY(".concat(Ft,"px)")},$t?"marginRight":"marginLeft",-Kt),"position","absolute"),"left",0),"right",0),"top",0))),Gt.createElement("div",{style:mt},Gt.createElement(ee.Z,{onResize:function(Dt){var Ie=Dt.offsetHeight;Ie&&ce&&ce()}},Gt.createElement("div",(0,Lt.Z)({style:Zt,className:Tt()((0,De.Z)({},"".concat(je,"-holder-inner"),je)),ref:Ae},Be),Ee,Pt)))});wt.displayName="Filler";var et=wt;function tt(hn){var Ae=hn.children,Ot=hn.setRef,Ft=Gt.useCallback(function(Kt){Ot(Kt)},[]);return Gt.cloneElement(Ae,{ref:Ft})}function lt(hn,Ae,Ot,Ft,Kt,Ee,je,ce){var Be=ce.getKey;return hn.slice(Ae,Ot+1).map(function($t,Pt){var mt=Ae+Pt,Zt=je($t,mt,{style:{width:Ft},offsetX:Kt}),Se=Be($t);return Gt.createElement(tt,{key:Se,setRef:function(Ie){return Ee($t,Ie)}},Zt)})}function rt(hn,Ae,Ot,Ft){var Kt=Ot-hn,Ee=Ae-Ot,je=Math.min(Kt,Ee)*2;if(Ft<=je){var ce=Math.floor(Ft/2);return Ft%2?Ot+ce+1:Ot-ce}return Kt>Ee?Ot-(Ft-Ee):Ot+(Ft-Kt)}function ht(hn,Ae,Ot){var Ft=hn.length,Kt=Ae.length,Ee,je;if(Ft===0&&Kt===0)return null;Ft<Kt?(Ee=hn,je=Ae):(Ee=Ae,je=hn);var ce={__EMPTY_ITEM__:!0};function Be(Dt){return Dt!==void 0?Ot(Dt):ce}for(var $t=null,Pt=Math.abs(Ft-Kt)!==1,mt=0;mt<je.length;mt+=1){var Zt=Be(Ee[mt]),Se=Be(je[mt]);if(Zt!==Se){$t=mt,Pt=Pt||Zt!==Be(je[mt+1]);break}}return $t===null?null:{index:$t,multiple:Pt}}function dt(hn,Ae,Ot){var Ft=Gt.useState(hn),Kt=(0,re.Z)(Ft,2),Ee=Kt[0],je=Kt[1],ce=Gt.useState(null),Be=(0,re.Z)(ce,2),$t=Be[0],Pt=Be[1];return Gt.useEffect(function(){var mt=ht(Ee||[],hn||[],Ae);(mt==null?void 0:mt.index)!==void 0&&(Ot==null||Ot(mt.index),Pt(hn[mt.index])),je(hn)},[hn]),[$t]}var yt=bt(23073),Mt=(typeof navigator=="undefined"?"undefined":(0,ge.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),jt=Mt,Rt=function(hn,Ae,Ot,Ft){var Kt=(0,Gt.useRef)(!1),Ee=(0,Gt.useRef)(null);function je(){clearTimeout(Ee.current),Kt.current=!0,Ee.current=setTimeout(function(){Kt.current=!1},50)}var ce=(0,Gt.useRef)({top:hn,bottom:Ae,left:Ot,right:Ft});return ce.current.top=hn,ce.current.bottom=Ae,ce.current.left=Ot,ce.current.right=Ft,function(Be,$t){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,mt=Be?$t<0&&ce.current.left||$t>0&&ce.current.right:$t<0&&ce.current.top||$t>0&&ce.current.bottom;return Pt&&mt?(clearTimeout(Ee.current),Kt.current=!1):(!mt||Kt.current)&&je(),!Kt.current&&mt}};function ae(hn,Ae,Ot,Ft,Kt,Ee,je){var ce=(0,Gt.useRef)(0),Be=(0,Gt.useRef)(null),$t=(0,Gt.useRef)(null),Pt=(0,Gt.useRef)(!1),mt=Rt(Ae,Ot,Ft,Kt);function Zt(xn,li){if(yt.Z.cancel(Be.current),!mt(!1,li)){var Qi=xn;if(!Qi._virtualHandled)Qi._virtualHandled=!0;else return;ce.current+=li,$t.current=li,jt||Qi.preventDefault(),Be.current=(0,yt.Z)(function(){var Wi=Pt.current?10:1;je(ce.current*Wi,!1),ce.current=0})}}function Se(xn,li){je(li,!0),jt||xn.preventDefault()}var Dt=(0,Gt.useRef)(null),Ie=(0,Gt.useRef)(null);function nn(xn){if(hn){yt.Z.cancel(Ie.current),Ie.current=(0,yt.Z)(function(){Dt.current=null},2);var li=xn.deltaX,Qi=xn.deltaY,Wi=xn.shiftKey,pr=li,xr=Qi;(Dt.current==="sx"||!Dt.current&&Wi&&Qi&&!li)&&(pr=Qi,xr=0,Dt.current="sx");var qr=Math.abs(pr),Vr=Math.abs(xr);Dt.current===null&&(Dt.current=Ee&&qr>Vr?"x":"y"),Dt.current==="y"?Zt(xn,xr):Se(xn,pr)}}function zn(xn){hn&&(Pt.current=xn.detail===$t.current)}return[nn,zn]}function he(hn,Ae,Ot,Ft){var Kt=Gt.useMemo(function(){return[new Map,[]]},[hn,Ot.id,Ft]),Ee=(0,re.Z)(Kt,2),je=Ee[0],ce=Ee[1],Be=function(Pt){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pt,Zt=je.get(Pt),Se=je.get(mt);if(Zt===void 0||Se===void 0)for(var Dt=hn.length,Ie=ce.length;Ie<Dt;Ie+=1){var nn,zn=hn[Ie],xn=Ae(zn);je.set(xn,Ie);var li=(nn=Ot.get(xn))!==null&&nn!==void 0?nn:Ft;if(ce[Ie]=(ce[Ie-1]||0)+li,xn===Pt&&(Zt=Ie),xn===mt&&(Se=Ie),Zt!==void 0&&Se!==void 0)break}return{top:ce[Zt-1]||0,bottom:ce[Se]}};return Be}var pe=bt(85899),Te=bt(79545),ne=bt(68550),Ke=function(){function hn(){(0,Te.Z)(this,hn),(0,De.Z)(this,"maps",void 0),(0,De.Z)(this,"id",0),(0,De.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,ne.Z)(hn,[{key:"set",value:function(Ot,Ft){this.maps[Ot]=Ft,this.id+=1,this.diffKeys.add(Ot)}},{key:"get",value:function(Ot){return this.maps[Ot]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),hn}(),Vt=Ke;function $e(hn){var Ae=parseFloat(hn);return isNaN(Ae)?0:Ae}function Ge(hn,Ae,Ot){var Ft=Gt.useState(0),Kt=(0,re.Z)(Ft,2),Ee=Kt[0],je=Kt[1],ce=(0,Gt.useRef)(new Map),Be=(0,Gt.useRef)(new Vt),$t=(0,Gt.useRef)(0);function Pt(){$t.current+=1}function mt(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Pt();var Dt=function(){var zn=!1;ce.current.forEach(function(xn,li){if(xn&&xn.offsetParent){var Qi=(0,pe.ZP)(xn),Wi=Qi.offsetHeight,pr=getComputedStyle(Qi),xr=pr.marginTop,qr=pr.marginBottom,Vr=$e(xr),Jr=$e(qr),Ir=Wi+Vr+Jr;Be.current.get(li)!==Ir&&(Be.current.set(li,Ir),zn=!0)}}),zn&&je(function(xn){return xn+1})};if(Se)Dt();else{$t.current+=1;var Ie=$t.current;Promise.resolve().then(function(){Ie===$t.current&&Dt()})}}function Zt(Se,Dt){var Ie=hn(Se),nn=ce.current.get(Ie);Dt?(ce.current.set(Ie,Dt),mt()):ce.current.delete(Ie),!nn!=!Dt&&(Dt?Ae==null||Ae(Se):Ot==null||Ot(Se))}return(0,Gt.useEffect)(function(){return Pt},[]),[Zt,mt,Be.current,Ee]}var Oe=14/15;function Ve(hn,Ae,Ot){var Ft=(0,Gt.useRef)(!1),Kt=(0,Gt.useRef)(0),Ee=(0,Gt.useRef)(0),je=(0,Gt.useRef)(null),ce=(0,Gt.useRef)(null),Be,$t=function(Se){if(Ft.current){var Dt=Math.ceil(Se.touches[0].pageX),Ie=Math.ceil(Se.touches[0].pageY),nn=Kt.current-Dt,zn=Ee.current-Ie,xn=Math.abs(nn)>Math.abs(zn);xn?Kt.current=Dt:Ee.current=Ie;var li=Ot(xn,xn?nn:zn,!1,Se);li&&Se.preventDefault(),clearInterval(ce.current),li&&(ce.current=setInterval(function(){xn?nn*=Oe:zn*=Oe;var Qi=Math.floor(xn?nn:zn);(!Ot(xn,Qi,!0)||Math.abs(Qi)<=.1)&&clearInterval(ce.current)},16))}},Pt=function(){Ft.current=!1,Be()},mt=function(Se){Be(),Se.touches.length===1&&!Ft.current&&(Ft.current=!0,Kt.current=Math.ceil(Se.touches[0].pageX),Ee.current=Math.ceil(Se.touches[0].pageY),je.current=Se.target,je.current.addEventListener("touchmove",$t,{passive:!1}),je.current.addEventListener("touchend",Pt,{passive:!0}))};Be=function(){je.current&&(je.current.removeEventListener("touchmove",$t),je.current.removeEventListener("touchend",Pt))},(0,Wt.Z)(function(){return hn&&Ae.current.addEventListener("touchstart",mt,{passive:!0}),function(){var Zt;(Zt=Ae.current)===null||Zt===void 0||Zt.removeEventListener("touchstart",mt),Be(),clearInterval(ce.current)}},[hn])}function _e(hn){return Math.floor(Math.pow(hn,.5))}function xe(hn,Ae){var Ot="touches"in hn?hn.touches[0]:hn;return Ot[Ae?"pageX":"pageY"]-window[Ae?"scrollX":"scrollY"]}function ie(hn,Ae,Ot){Gt.useEffect(function(){var Ft=Ae.current;if(hn&&Ft){var Kt=!1,Ee,je,ce=function(){yt.Z.cancel(Ee)},Be=function Zt(){ce(),Ee=(0,yt.Z)(function(){Ot(je),Zt()})},$t=function(Se){var Dt=Se;Dt._virtualHandled||(Dt._virtualHandled=!0,Kt=!0)},Pt=function(){Kt=!1,ce()},mt=function(Se){if(Kt){var Dt=xe(Se,!1),Ie=Ft.getBoundingClientRect(),nn=Ie.top,zn=Ie.bottom;if(Dt<=nn){var xn=nn-Dt;je=-_e(xn),Be()}else if(Dt>=zn){var li=Dt-zn;je=_e(li),Be()}else ce()}};return Ft.addEventListener("mousedown",$t),Ft.ownerDocument.addEventListener("mouseup",Pt),Ft.ownerDocument.addEventListener("mousemove",mt),function(){Ft.removeEventListener("mousedown",$t),Ft.ownerDocument.removeEventListener("mouseup",Pt),Ft.ownerDocument.removeEventListener("mousemove",mt),ce()}}},[hn])}var be=10;function Fn(hn,Ae,Ot,Ft,Kt,Ee,je,ce){var Be=Gt.useRef(),$t=Gt.useState(null),Pt=(0,re.Z)($t,2),mt=Pt[0],Zt=Pt[1];return(0,Wt.Z)(function(){if(mt&&mt.times<be){if(!hn.current){Zt(function(Yt){return(0,se.Z)({},Yt)});return}Ee();var Se=mt.targetAlign,Dt=mt.originAlign,Ie=mt.index,nn=mt.offset,zn=hn.current.clientHeight,xn=!1,li=Se,Qi=null;if(zn){for(var Wi=Se||Dt,pr=0,xr=0,qr=0,Vr=Math.min(Ae.length-1,Ie),Jr=0;Jr<=Vr;Jr+=1){var Ir=Kt(Ae[Jr]);xr=pr;var Xr=Ot.get(Ir);qr=xr+(Xr===void 0?Ft:Xr),pr=qr}for(var to=Wi==="top"?nn:zn-nn,ho=Vr;ho>=0;ho-=1){var cs=Kt(Ae[ho]),no=Ot.get(cs);if(no===void 0){xn=!0;break}if(to-=no,to<=0)break}switch(Wi){case"top":Qi=xr-nn;break;case"bottom":Qi=qr-zn+nn;break;default:{var Is=hn.current.scrollTop,So=Is+zn;xr<Is?li="top":qr>So&&(li="bottom")}}Qi!==null&&je(Qi),Qi!==mt.lastTop&&(xn=!0)}xn&&Zt((0,se.Z)((0,se.Z)({},mt),{},{times:mt.times+1,targetAlign:li,lastTop:Qi}))}},[mt,hn.current]),function(Se){if(Se==null){ce();return}if(yt.Z.cancel(Be.current),typeof Se=="number")je(Se);else if(Se&&(0,ge.Z)(Se)==="object"){var Dt,Ie=Se.align;"index"in Se?Dt=Se.index:Dt=Ae.findIndex(function(xn){return Kt(xn)===Se.key});var nn=Se.offset,zn=nn===void 0?0:nn;Zt({times:0,index:Dt,offset:zn,originAlign:Ie})}}}var Mn=Gt.forwardRef(function(hn,Ae){var Ot=hn.prefixCls,Ft=hn.rtl,Kt=hn.scrollOffset,Ee=hn.scrollRange,je=hn.onStartMove,ce=hn.onStopMove,Be=hn.onScroll,$t=hn.horizontal,Pt=hn.spinSize,mt=hn.containerSize,Zt=hn.style,Se=hn.thumbStyle,Dt=Gt.useState(!1),Ie=(0,re.Z)(Dt,2),nn=Ie[0],zn=Ie[1],xn=Gt.useState(null),li=(0,re.Z)(xn,2),Qi=li[0],Wi=li[1],pr=Gt.useState(null),xr=(0,re.Z)(pr,2),qr=xr[0],Vr=xr[1],Jr=!Ft,Ir=Gt.useRef(),Xr=Gt.useRef(),to=Gt.useState(!1),ho=(0,re.Z)(to,2),cs=ho[0],no=ho[1],Is=Gt.useRef(),So=function(){clearTimeout(Is.current),no(!0),Is.current=setTimeout(function(){no(!1)},3e3)},Yt=Ee-mt||0,ai=mt-Pt||0,Jo=Gt.useMemo(function(){if(Kt===0||Yt===0)return 0;var rn=Kt/Yt;return rn*ai},[Kt,Yt,ai]),sa=function(hi){hi.stopPropagation(),hi.preventDefault()},xa=Gt.useRef({top:Jo,dragging:nn,pageY:Qi,startTop:qr});xa.current={top:Jo,dragging:nn,pageY:Qi,startTop:qr};var va=function(hi){zn(!0),Wi(xe(hi,$t)),Vr(xa.current.top),je(),hi.stopPropagation(),hi.preventDefault()};Gt.useEffect(function(){var rn=function(Ne){Ne.preventDefault()},hi=Ir.current,Ci=Xr.current;return hi.addEventListener("touchstart",rn,{passive:!1}),Ci.addEventListener("touchstart",va,{passive:!1}),function(){hi.removeEventListener("touchstart",rn),Ci.removeEventListener("touchstart",va)}},[]);var Zs=Gt.useRef();Zs.current=Yt;var Qr=Gt.useRef();Qr.current=ai,Gt.useEffect(function(){if(nn){var rn,hi=function(Ne){var Bn=xa.current,_n=Bn.dragging,Ii=Bn.pageY,ni=Bn.startTop;yt.Z.cancel(rn);var mn=Ir.current.getBoundingClientRect(),Ai=mt/($t?mn.width:mn.height);if(_n){var Mi=(xe(Ne,$t)-Ii)*Ai,er=ni;!Jr&&$t?er-=Mi:er+=Mi;var On=Zs.current,Si=Qr.current,Pr=Si?er/Si:0,rr=Math.ceil(Pr*On);rr=Math.max(rr,0),rr=Math.min(rr,On),rn=(0,yt.Z)(function(){Be(rr,$t)})}},Ci=function(){zn(!1),ce()};return window.addEventListener("mousemove",hi,{passive:!0}),window.addEventListener("touchmove",hi,{passive:!0}),window.addEventListener("mouseup",Ci,{passive:!0}),window.addEventListener("touchend",Ci,{passive:!0}),function(){window.removeEventListener("mousemove",hi),window.removeEventListener("touchmove",hi),window.removeEventListener("mouseup",Ci),window.removeEventListener("touchend",Ci),yt.Z.cancel(rn)}}},[nn]),Gt.useEffect(function(){return So(),function(){clearTimeout(Is.current)}},[Kt]),Gt.useImperativeHandle(Ae,function(){return{delayHidden:So}});var Vn="".concat(Ot,"-scrollbar"),Qn={position:"absolute",visibility:cs?null:"hidden"},kn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return $t?(Qn.height=8,Qn.left=0,Qn.right=0,Qn.bottom=0,kn.height="100%",kn.width=Pt,Jr?kn.left=Jo:kn.right=Jo):(Qn.width=8,Qn.top=0,Qn.bottom=0,Jr?Qn.right=0:Qn.left=0,kn.width="100%",kn.height=Pt,kn.top=Jo),Gt.createElement("div",{ref:Ir,className:Tt()(Vn,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(Vn,"-horizontal"),$t),"".concat(Vn,"-vertical"),!$t),"".concat(Vn,"-visible"),cs)),style:(0,se.Z)((0,se.Z)({},Qn),Zt),onMouseDown:sa,onMouseMove:So},Gt.createElement("div",{ref:Xr,className:Tt()("".concat(Vn,"-thumb"),(0,De.Z)({},"".concat(Vn,"-thumb-moving"),nn)),style:(0,se.Z)((0,se.Z)({},kn),Se),onMouseDown:va}))}),Xe=Mn,In=20;function Xn(){var hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ot=hn/Ae*hn;return isNaN(Ot)&&(Ot=0),Ot=Math.max(Ot,In),Math.floor(Ot)}var pi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],$n=[],bi={overflowY:"auto",overflowAnchor:"none"};function sn(hn,Ae){var Ot=hn.prefixCls,Ft=Ot===void 0?"rc-virtual-list":Ot,Kt=hn.className,Ee=hn.height,je=hn.itemHeight,ce=hn.fullHeight,Be=ce===void 0?!0:ce,$t=hn.style,Pt=hn.data,mt=hn.children,Zt=hn.itemKey,Se=hn.virtual,Dt=hn.direction,Ie=hn.scrollWidth,nn=hn.component,zn=nn===void 0?"div":nn,xn=hn.onScroll,li=hn.onVirtualScroll,Qi=hn.onVisibleChange,Wi=hn.innerProps,pr=hn.extraRender,xr=hn.styles,qr=(0,le.Z)(hn,pi),Vr=Gt.useCallback(function(ss){return typeof Zt=="function"?Zt(ss):ss==null?void 0:ss[Zt]},[Zt]),Jr=Ge(Vr,null,null),Ir=(0,re.Z)(Jr,4),Xr=Ir[0],to=Ir[1],ho=Ir[2],cs=Ir[3],no=!!(Se!==!1&&Ee&&je),Is=Gt.useMemo(function(){return Object.values(ho.maps).reduce(function(ss,Vo){return ss+Vo},0)},[ho.id,ho.maps]),So=no&&Pt&&(Math.max(je*Pt.length,Is)>Ee||!!Ie),Yt=Dt==="rtl",ai=Tt()(Ft,(0,De.Z)({},"".concat(Ft,"-rtl"),Yt),Kt),Jo=Pt||$n,sa=(0,Gt.useRef)(),xa=(0,Gt.useRef)(),va=(0,Gt.useRef)(),Zs=(0,Gt.useState)(0),Qr=(0,re.Z)(Zs,2),Vn=Qr[0],Qn=Qr[1],kn=(0,Gt.useState)(0),rn=(0,re.Z)(kn,2),hi=rn[0],Ci=rn[1],bn=(0,Gt.useState)(!1),Ne=(0,re.Z)(bn,2),Bn=Ne[0],_n=Ne[1],Ii=function(){_n(!0)},ni=function(){_n(!1)},mn={getKey:Vr};function Ai(ss){Qn(function(Vo){var bs;typeof ss=="function"?bs=ss(Vo):bs=ss;var ia=ns(bs);return sa.current.scrollTop=ia,ia})}var Mi=(0,Gt.useRef)({start:0,end:Jo.length}),er=(0,Gt.useRef)(),On=dt(Jo,Vr),Si=(0,re.Z)(On,1),Pr=Si[0];er.current=Pr;var rr=Gt.useMemo(function(){if(!no)return{scrollHeight:void 0,start:0,end:Jo.length-1,offset:void 0};if(!So){var ss;return{scrollHeight:((ss=xa.current)===null||ss===void 0?void 0:ss.offsetHeight)||0,start:0,end:Jo.length-1,offset:void 0}}for(var Vo=0,bs,ia,ts,Ea=Jo.length,Mo=0;Mo<Ea;Mo+=1){var io=Jo[Mo],Ko=Vr(io),Gi=ho.get(Ko),Ms=Vo+(Gi===void 0?je:Gi);Ms>=Vn&&bs===void 0&&(bs=Mo,ia=Vo),Ms>Vn+Ee&&ts===void 0&&(ts=Mo),Vo=Ms}return bs===void 0&&(bs=0,ia=0,ts=Math.ceil(Ee/je)),ts===void 0&&(ts=Jo.length-1),ts=Math.min(ts+1,Jo.length-1),{scrollHeight:Vo,start:bs,end:ts,offset:ia}},[So,no,Vn,Jo,cs,Ee]),Kr=rr.scrollHeight,sr=rr.start,Br=rr.end,dr=rr.offset;Mi.current.start=sr,Mi.current.end=Br,Gt.useLayoutEffect(function(){var ss=ho.getRecord();if(ss.size===1){var Vo=Array.from(ss)[0],bs=Vr(Jo[sr]);if(bs===Vo){var ia=ho.get(Vo),ts=ia-je;Ai(function(Ea){return Ea+ts})}}ho.resetRecord()},[Kr]);var Er=Gt.useState({width:0,height:Ee}),ao=(0,re.Z)(Er,2),Xi=ao[0],yr=ao[1],Lo=function(Vo){yr({width:Vo.offsetWidth,height:Vo.offsetHeight})},xs=(0,Gt.useRef)(),Uo=(0,Gt.useRef)(),jn=Gt.useMemo(function(){return Xn(Xi.width,Ie)},[Xi.width,Ie]),Tr=Gt.useMemo(function(){return Xn(Xi.height,Kr)},[Xi.height,Kr]),so=Kr-Ee,_r=(0,Gt.useRef)(so);_r.current=so;function ns(ss){var Vo=ss;return Number.isNaN(_r.current)||(Vo=Math.min(Vo,_r.current)),Vo=Math.max(Vo,0),Vo}var Oo=Vn<=0,yi=Vn>=so,Bo=hi<=0,Hr=hi>=Ie,kr=Rt(Oo,yi,Bo,Hr),Bi=function(){return{x:Yt?-hi:hi,y:Vn}},Po=(0,Gt.useRef)(Bi()),Pi=(0,Ct.useEvent)(function(ss){if(li){var Vo=(0,se.Z)((0,se.Z)({},Bi()),ss);(Po.current.x!==Vo.x||Po.current.y!==Vo.y)&&(li(Vo),Po.current=Vo)}});function Xo(ss,Vo){var bs=ss;Vo?((0,Jt.flushSync)(function(){Ci(bs)}),Pi()):Ai(bs)}function ha(ss){var Vo=ss.currentTarget.scrollTop;Vo!==Vn&&Ai(Vo),xn==null||xn(ss),Pi()}var fs=function(Vo){var bs=Vo,ia=Ie?Ie-Xi.width:0;return bs=Math.max(bs,0),bs=Math.min(bs,ia),bs},ba=(0,Ct.useEvent)(function(ss,Vo){Vo?((0,Jt.flushSync)(function(){Ci(function(bs){var ia=bs+(Yt?-ss:ss);return fs(ia)})}),Pi()):Ai(function(bs){var ia=bs+ss;return ia})}),Xs=ae(no,Oo,yi,Bo,Hr,!!Ie,ba),bo=(0,re.Z)(Xs,2),jo=bo[0],ps=bo[1];Ve(no,sa,function(ss,Vo,bs,ia){var ts=ia;return kr(ss,Vo,bs)?!1:!ts||!ts._virtualHandled?(ts&&(ts._virtualHandled=!0),jo({preventDefault:function(){},deltaX:ss?Vo:0,deltaY:ss?0:Vo}),!0):!1}),ie(So,sa,function(ss){Ai(function(Vo){return Vo+ss})}),(0,Wt.Z)(function(){function ss(bs){var ia=Oo&&bs.detail<0,ts=yi&&bs.detail>0;no&&!ia&&!ts&&bs.preventDefault()}var Vo=sa.current;return Vo.addEventListener("wheel",jo,{passive:!1}),Vo.addEventListener("DOMMouseScroll",ps,{passive:!0}),Vo.addEventListener("MozMousePixelScroll",ss,{passive:!1}),function(){Vo.removeEventListener("wheel",jo),Vo.removeEventListener("DOMMouseScroll",ps),Vo.removeEventListener("MozMousePixelScroll",ss)}},[no,Oo,yi]),(0,Wt.Z)(function(){if(Ie){var ss=fs(hi);Ci(ss),Pi({x:ss})}},[Xi.width,Ie]);var us=function(){var Vo,bs;(Vo=xs.current)===null||Vo===void 0||Vo.delayHidden(),(bs=Uo.current)===null||bs===void 0||bs.delayHidden()},gr=Fn(sa,Jo,ho,je,Vr,function(){return to(!0)},Ai,us);Gt.useImperativeHandle(Ae,function(){return{nativeElement:va.current,getScrollInfo:Bi,scrollTo:function(Vo){function bs(ia){return ia&&(0,ge.Z)(ia)==="object"&&("left"in ia||"top"in ia)}bs(Vo)?(Vo.left!==void 0&&Ci(fs(Vo.left)),gr(Vo.top)):gr(Vo)}}}),(0,Wt.Z)(function(){if(Qi){var ss=Jo.slice(sr,Br+1);Qi(ss,Jo)}},[sr,Br,Jo]);var Ue=he(Jo,Vr,ho,je),qo=pr==null?void 0:pr({start:sr,end:Br,virtual:So,offsetX:hi,offsetY:dr,rtl:Yt,getSize:Ue}),Sa=lt(Jo,sr,Br,Ie,hi,Xr,mt,mn),za=null;Ee&&(za=(0,se.Z)((0,De.Z)({},Be?"height":"maxHeight",Ee),bi),no&&(za.overflowY="hidden",Ie&&(za.overflowX="hidden"),Bn&&(za.pointerEvents="none")));var El={};return Yt&&(El.dir="rtl"),Gt.createElement("div",(0,Lt.Z)({ref:va,style:(0,se.Z)((0,se.Z)({},$t),{},{position:"relative"}),className:ai},El,qr),Gt.createElement(ee.Z,{onResize:Lo},Gt.createElement(zn,{className:"".concat(Ft,"-holder"),style:za,ref:sa,onScroll:ha,onMouseEnter:us},Gt.createElement(et,{prefixCls:Ft,height:Kr,offsetX:hi,offsetY:dr,scrollWidth:Ie,onInnerResize:to,ref:xa,innerProps:Wi,rtl:Yt,extra:qo},Sa))),So&&Kr>Ee&&Gt.createElement(Xe,{ref:xs,prefixCls:Ft,scrollOffset:Vn,scrollRange:Kr,rtl:Yt,onScroll:Xo,onStartMove:Ii,onStopMove:ni,spinSize:Tr,containerSize:Xi.height,style:xr==null?void 0:xr.verticalScrollBar,thumbStyle:xr==null?void 0:xr.verticalScrollBarThumb}),So&&Ie>Xi.width&&Gt.createElement(Xe,{ref:Uo,prefixCls:Ft,scrollOffset:hi,scrollRange:Ie,rtl:Yt,onScroll:Xo,onStartMove:Ii,onStopMove:ni,spinSize:jn,containerSize:Xi.width,horizontal:!0,style:xr==null?void 0:xr.horizontalScrollBar,thumbStyle:xr==null?void 0:xr.horizontalScrollBarThumb}))}var Li=Gt.forwardRef(sn);Li.displayName="List";var ji=Li,ve=ji},2637:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Object.defineProperty(Pn,"DraggableCore",{enumerable:!0,get:function(){return Tt.default}}),Pn.default=void 0;var Lt=Gt(bt(59301)),ge=Ct(bt(12708)),se=Ct(bt(4676)),De=Ct(bt(57780)),re=bt(13957),le=bt(60976),Et=bt(36641),Tt=Ct(bt(80486)),ee=Ct(bt(94187));function Ct(rt){return rt&&rt.__esModule?rt:{default:rt}}function Wt(rt){if(typeof WeakMap!="function")return null;var ht=new WeakMap,dt=new WeakMap;return(Wt=function(yt){return yt?dt:ht})(rt)}function Gt(rt,ht){if(!ht&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var dt=Wt(ht);if(dt&&dt.has(rt))return dt.get(rt);var yt={},Mt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var jt in rt)if(jt!=="default"&&Object.prototype.hasOwnProperty.call(rt,jt)){var Rt=Mt?Object.getOwnPropertyDescriptor(rt,jt):null;Rt&&(Rt.get||Rt.set)?Object.defineProperty(yt,jt,Rt):yt[jt]=rt[jt]}return yt.default=rt,dt&&dt.set(rt,yt),yt}function Jt(){return Jt=Object.assign?Object.assign.bind():function(rt){for(var ht=1;ht<arguments.length;ht++){var dt=arguments[ht];for(var yt in dt)Object.prototype.hasOwnProperty.call(dt,yt)&&(rt[yt]=dt[yt])}return rt},Jt.apply(this,arguments)}function wt(rt,ht,dt){return ht=et(ht),ht in rt?Object.defineProperty(rt,ht,{value:dt,enumerable:!0,configurable:!0,writable:!0}):rt[ht]=dt,rt}function et(rt){var ht=tt(rt,"string");return typeof ht=="symbol"?ht:String(ht)}function tt(rt,ht){if(typeof rt!="object"||rt===null)return rt;var dt=rt[Symbol.toPrimitive];if(dt!==void 0){var yt=dt.call(rt,ht||"default");if(typeof yt!="object")return yt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ht==="string"?String:Number)(rt)}class lt extends Lt.Component{static getDerivedStateFromProps(ht,dt){let{position:yt}=ht,{prevPropsPosition:Mt}=dt;return yt&&(!Mt||yt.x!==Mt.x||yt.y!==Mt.y)?((0,ee.default)("Draggable: getDerivedStateFromProps %j",{position:yt,prevPropsPosition:Mt}),{x:yt.x,y:yt.y,prevPropsPosition:xg({},yt)}):null}constructor(ht){super(ht),wt(this,"onDragStart",(dt,yt)=>{if((0,ee.default)("Draggable: onDragStart: %j",yt),this.props.onStart(dt,(0,le.createDraggableData)(this,yt))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),wt(this,"onDrag",(dt,yt)=>{if(!this.state.dragging)return!1;(0,ee.default)("Draggable: onDrag: %j",yt);const Mt=(0,le.createDraggableData)(this,yt),jt={x:Mt.x,y:Mt.y,slackX:0,slackY:0};if(this.props.bounds){const{x:ae,y:he}=jt;jt.x+=this.state.slackX,jt.y+=this.state.slackY;const[pe,Te]=(0,le.getBoundPosition)(this,jt.x,jt.y);jt.x=pe,jt.y=Te,jt.slackX=this.state.slackX+(ae-jt.x),jt.slackY=this.state.slackY+(he-jt.y),Mt.x=jt.x,Mt.y=jt.y,Mt.deltaX=jt.x-this.state.x,Mt.deltaY=jt.y-this.state.y}if(this.props.onDrag(dt,Mt)===!1)return!1;this.setState(jt)}),wt(this,"onDragStop",(dt,yt)=>{if(!this.state.dragging||this.props.onStop(dt,(0,le.createDraggableData)(this,yt))===!1)return!1;(0,ee.default)("Draggable: onDragStop: %j",yt);const jt={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:ae,y:he}=this.props.position;jt.x=ae,jt.y=he}this.setState(jt)}),this.state={dragging:!1,dragged:!1,x:ht.position?ht.position.x:ht.defaultPosition.x,y:ht.position?ht.position.y:ht.defaultPosition.y,prevPropsPosition:xg({},ht.position),slackX:0,slackY:0,isElementSVG:!1},ht.position&&!(ht.onDrag||ht.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var ht,dt;return(ht=(dt=this.props)===null||dt===void 0||(dt=dt.nodeRef)===null||dt===void 0?void 0:dt.current)!==null&&ht!==void 0?ht:se.default.findDOMNode(this)}render(){const xe=this.props,{axis:ht,bounds:dt,children:yt,defaultPosition:Mt,defaultClassName:jt,defaultClassNameDragging:Rt,defaultClassNameDragged:ae,position:he,positionOffset:pe,scale:Te}=xe,ne=Pw(xe,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let Ke={},Vt=null;const Ge=!!!he||this.state.dragging,Oe=he||Mt,Ve={x:(0,le.canDragX)(this)&&Ge?this.state.x:Oe.x,y:(0,le.canDragY)(this)&&Ge?this.state.y:Oe.y};this.state.isElementSVG?Vt=(0,re.createSVGTransform)(Ve,pe):Ke=(0,re.createCSSTransform)(Ve,pe);const _e=(0,De.default)(yt.props.className||"",jt,{[Rt]:this.state.dragging,[ae]:this.state.dragged});return Lt.createElement(Tt.default,Jt({},ne,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Lt.cloneElement(Lt.Children.only(yt),{className:_e,style:xg(xg({},yt.props.style),Ke),transform:Vt}))}}Pn.default=lt,wt(lt,"displayName","Draggable"),wt(lt,"propTypes",Iy(xg({},Tt.default.propTypes),{axis:ge.default.oneOf(["both","x","y","none"]),bounds:ge.default.oneOfType([ge.default.shape({left:ge.default.number,right:ge.default.number,top:ge.default.number,bottom:ge.default.number}),ge.default.string,ge.default.oneOf([!1])]),defaultClassName:ge.default.string,defaultClassNameDragging:ge.default.string,defaultClassNameDragged:ge.default.string,defaultPosition:ge.default.shape({x:ge.default.number,y:ge.default.number}),positionOffset:ge.default.shape({x:ge.default.oneOfType([ge.default.number,ge.default.string]),y:ge.default.oneOfType([ge.default.number,ge.default.string])}),position:ge.default.shape({x:ge.default.number,y:ge.default.number}),className:Et.dontSetMe,style:Et.dontSetMe,transform:Et.dontSetMe})),wt(lt,"defaultProps",Iy(xg({},Tt.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},80486:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=void 0;var Lt=Ct(bt(59301)),ge=Tt(bt(12708)),se=Tt(bt(4676)),De=bt(13957),re=bt(60976),le=bt(36641),Et=Tt(bt(94187));function Tt(lt){return lt&&lt.__esModule?lt:{default:lt}}function ee(lt){if(typeof WeakMap!="function")return null;var rt=new WeakMap,ht=new WeakMap;return(ee=function(dt){return dt?ht:rt})(lt)}function Ct(lt,rt){if(!rt&&lt&&lt.__esModule)return lt;if(lt===null||typeof lt!="object"&&typeof lt!="function")return{default:lt};var ht=ee(rt);if(ht&&ht.has(lt))return ht.get(lt);var dt={},yt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Mt in lt)if(Mt!=="default"&&Object.prototype.hasOwnProperty.call(lt,Mt)){var jt=yt?Object.getOwnPropertyDescriptor(lt,Mt):null;jt&&(jt.get||jt.set)?Object.defineProperty(dt,Mt,jt):dt[Mt]=lt[Mt]}return dt.default=lt,ht&&ht.set(lt,dt),dt}function Wt(lt,rt,ht){return rt=Gt(rt),rt in lt?Object.defineProperty(lt,rt,{value:ht,enumerable:!0,configurable:!0,writable:!0}):lt[rt]=ht,lt}function Gt(lt){var rt=Jt(lt,"string");return typeof rt=="symbol"?rt:String(rt)}function Jt(lt,rt){if(typeof lt!="object"||lt===null)return lt;var ht=lt[Symbol.toPrimitive];if(ht!==void 0){var dt=ht.call(lt,rt||"default");if(typeof dt!="object")return dt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(rt==="string"?String:Number)(lt)}const wt={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let et=wt.mouse;class tt extends Lt.Component{constructor(){super(...arguments),Wt(this,"dragging",!1),Wt(this,"lastX",NaN),Wt(this,"lastY",NaN),Wt(this,"touchIdentifier",null),Wt(this,"mounted",!1),Wt(this,"handleDragStart",rt=>{if(this.props.onMouseDown(rt),!this.props.allowAnyClick&&typeof rt.button=="number"&&rt.button!==0)return!1;const ht=this.findDOMNode();if(!ht||!ht.ownerDocument||!ht.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:dt}=ht;if(this.props.disabled||!(rt.target instanceof dt.defaultView.Node)||this.props.handle&&!(0,De.matchesSelectorAndParentsTo)(rt.target,this.props.handle,ht)||this.props.cancel&&(0,De.matchesSelectorAndParentsTo)(rt.target,this.props.cancel,ht))return;rt.type==="touchstart"&&rt.preventDefault();const yt=(0,De.getTouchIdentifier)(rt);this.touchIdentifier=yt;const Mt=(0,re.getControlPosition)(rt,yt,this);if(Mt==null)return;const{x:jt,y:Rt}=Mt,ae=(0,re.createCoreData)(this,jt,Rt);(0,Et.default)("DraggableCore: handleDragStart: %j",ae),(0,Et.default)("calling",this.props.onStart),!(this.props.onStart(rt,ae)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,De.addUserSelectStyles)(dt),this.dragging=!0,this.lastX=jt,this.lastY=Rt,(0,De.addEvent)(dt,et.move,this.handleDrag),(0,De.addEvent)(dt,et.stop,this.handleDragStop))}),Wt(this,"handleDrag",rt=>{const ht=(0,re.getControlPosition)(rt,this.touchIdentifier,this);if(ht==null)return;let{x:dt,y:yt}=ht;if(Array.isArray(this.props.grid)){let Rt=dt-this.lastX,ae=yt-this.lastY;if([Rt,ae]=(0,re.snapToGrid)(this.props.grid,Rt,ae),!Rt&&!ae)return;dt=this.lastX+Rt,yt=this.lastY+ae}const Mt=(0,re.createCoreData)(this,dt,yt);if((0,Et.default)("DraggableCore: handleDrag: %j",Mt),this.props.onDrag(rt,Mt)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Rt){const ae=document.createEvent("MouseEvents");ae.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(ae)}return}this.lastX=dt,this.lastY=yt}),Wt(this,"handleDragStop",rt=>{if(!this.dragging)return;const ht=(0,re.getControlPosition)(rt,this.touchIdentifier,this);if(ht==null)return;let{x:dt,y:yt}=ht;if(Array.isArray(this.props.grid)){let ae=dt-this.lastX||0,he=yt-this.lastY||0;[ae,he]=(0,re.snapToGrid)(this.props.grid,ae,he),dt=this.lastX+ae,yt=this.lastY+he}const Mt=(0,re.createCoreData)(this,dt,yt);if(this.props.onStop(rt,Mt)===!1||this.mounted===!1)return!1;const Rt=this.findDOMNode();Rt&&this.props.enableUserSelectHack&&(0,De.removeUserSelectStyles)(Rt.ownerDocument),(0,Et.default)("DraggableCore: handleDragStop: %j",Mt),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Rt&&((0,Et.default)("DraggableCore: Removing handlers"),(0,De.removeEvent)(Rt.ownerDocument,et.move,this.handleDrag),(0,De.removeEvent)(Rt.ownerDocument,et.stop,this.handleDragStop))}),Wt(this,"onMouseDown",rt=>(et=wt.mouse,this.handleDragStart(rt))),Wt(this,"onMouseUp",rt=>(et=wt.mouse,this.handleDragStop(rt))),Wt(this,"onTouchStart",rt=>(et=wt.touch,this.handleDragStart(rt))),Wt(this,"onTouchEnd",rt=>(et=wt.touch,this.handleDragStop(rt)))}componentDidMount(){this.mounted=!0;const rt=this.findDOMNode();rt&&(0,De.addEvent)(rt,wt.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const rt=this.findDOMNode();if(rt){const{ownerDocument:ht}=rt;(0,De.removeEvent)(ht,wt.mouse.move,this.handleDrag),(0,De.removeEvent)(ht,wt.touch.move,this.handleDrag),(0,De.removeEvent)(ht,wt.mouse.stop,this.handleDragStop),(0,De.removeEvent)(ht,wt.touch.stop,this.handleDragStop),(0,De.removeEvent)(rt,wt.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,De.removeUserSelectStyles)(ht)}}findDOMNode(){var rt,ht;return(rt=this.props)!==null&&rt!==void 0&&rt.nodeRef?(ht=this.props)===null||ht===void 0||(ht=ht.nodeRef)===null||ht===void 0?void 0:ht.current:se.default.findDOMNode(this)}render(){return Lt.cloneElement(Lt.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}Pn.default=tt,Wt(tt,"displayName","DraggableCore"),Wt(tt,"propTypes",{allowAnyClick:ge.default.bool,children:ge.default.node.isRequired,disabled:ge.default.bool,enableUserSelectHack:ge.default.bool,offsetParent:function(lt,rt){if(lt[rt]&&lt[rt].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ge.default.arrayOf(ge.default.number),handle:ge.default.string,cancel:ge.default.string,nodeRef:ge.default.object,onStart:ge.default.func,onDrag:ge.default.func,onStop:ge.default.func,onMouseDown:ge.default.func,scale:ge.default.number,className:le.dontSetMe,style:le.dontSetMe,transform:le.dontSetMe}),Wt(tt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(di,Pn,bt){"use strict";const{default:Lt,DraggableCore:ge}=bt(2637);di.exports=Lt,di.exports.default=Lt,di.exports.DraggableCore=ge},13957:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.addClassName=Mt,Pn.addEvent=Tt,Pn.addUserSelectStyles=dt,Pn.createCSSTransform=et,Pn.createSVGTransform=tt,Pn.getTouch=rt,Pn.getTouchIdentifier=ht,Pn.getTranslation=lt,Pn.innerHeight=Gt,Pn.innerWidth=Jt,Pn.matchesSelector=le,Pn.matchesSelectorAndParentsTo=Et,Pn.offsetXYFromParent=wt,Pn.outerHeight=Ct,Pn.outerWidth=Wt,Pn.removeClassName=jt,Pn.removeEvent=ee,Pn.removeUserSelectStyles=yt;var Lt=bt(36641),ge=De(bt(1750));function se(Rt){if(typeof WeakMap!="function")return null;var ae=new WeakMap,he=new WeakMap;return(se=function(pe){return pe?he:ae})(Rt)}function De(Rt,ae){if(!ae&&Rt&&Rt.__esModule)return Rt;if(Rt===null||typeof Rt!="object"&&typeof Rt!="function")return{default:Rt};var he=se(ae);if(he&&he.has(Rt))return he.get(Rt);var pe={},Te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ne in Rt)if(ne!=="default"&&Object.prototype.hasOwnProperty.call(Rt,ne)){var Ke=Te?Object.getOwnPropertyDescriptor(Rt,ne):null;Ke&&(Ke.get||Ke.set)?Object.defineProperty(pe,ne,Ke):pe[ne]=Rt[ne]}return pe.default=Rt,he&&he.set(Rt,pe),pe}let re="";function le(Rt,ae){return re||(re=(0,Lt.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(he){return(0,Lt.isFunction)(Rt[he])})),(0,Lt.isFunction)(Rt[re])?Rt[re](ae):!1}function Et(Rt,ae,he){let pe=Rt;do{if(le(pe,ae))return!0;if(pe===he)return!1;pe=pe.parentNode}while(pe);return!1}function Tt(Rt,ae,he,pe){if(!Rt)return;const Te=xg({capture:!0},pe);Rt.addEventListener?Rt.addEventListener(ae,he,Te):Rt.attachEvent?Rt.attachEvent("on"+ae,he):Rt["on"+ae]=he}function ee(Rt,ae,he,pe){if(!Rt)return;const Te=xg({capture:!0},pe);Rt.removeEventListener?Rt.removeEventListener(ae,he,Te):Rt.detachEvent?Rt.detachEvent("on"+ae,he):Rt["on"+ae]=null}function Ct(Rt){let ae=Rt.clientHeight;const he=Rt.ownerDocument.defaultView.getComputedStyle(Rt);return ae+=(0,Lt.int)(he.borderTopWidth),ae+=(0,Lt.int)(he.borderBottomWidth),ae}function Wt(Rt){let ae=Rt.clientWidth;const he=Rt.ownerDocument.defaultView.getComputedStyle(Rt);return ae+=(0,Lt.int)(he.borderLeftWidth),ae+=(0,Lt.int)(he.borderRightWidth),ae}function Gt(Rt){let ae=Rt.clientHeight;const he=Rt.ownerDocument.defaultView.getComputedStyle(Rt);return ae-=(0,Lt.int)(he.paddingTop),ae-=(0,Lt.int)(he.paddingBottom),ae}function Jt(Rt){let ae=Rt.clientWidth;const he=Rt.ownerDocument.defaultView.getComputedStyle(Rt);return ae-=(0,Lt.int)(he.paddingLeft),ae-=(0,Lt.int)(he.paddingRight),ae}function wt(Rt,ae,he){const Te=ae===ae.ownerDocument.body?{left:0,top:0}:ae.getBoundingClientRect(),ne=(Rt.clientX+ae.scrollLeft-Te.left)/he,Ke=(Rt.clientY+ae.scrollTop-Te.top)/he;return{x:ne,y:Ke}}function et(Rt,ae){const he=lt(Rt,ae,"px");return{[(0,ge.browserPrefixToKey)("transform",ge.default)]:he}}function tt(Rt,ae){return lt(Rt,ae,"")}function lt(Rt,ae,he){let{x:pe,y:Te}=Rt,ne="translate(".concat(pe).concat(he,",").concat(Te).concat(he,")");if(ae){const Ke="".concat(typeof ae.x=="string"?ae.x:ae.x+he),Vt="".concat(typeof ae.y=="string"?ae.y:ae.y+he);ne="translate(".concat(Ke,", ").concat(Vt,")")+ne}return ne}function rt(Rt,ae){return Rt.targetTouches&&(0,Lt.findInArray)(Rt.targetTouches,he=>ae===he.identifier)||Rt.changedTouches&&(0,Lt.findInArray)(Rt.changedTouches,he=>ae===he.identifier)}function ht(Rt){if(Rt.targetTouches&&Rt.targetTouches[0])return Rt.targetTouches[0].identifier;if(Rt.changedTouches&&Rt.changedTouches[0])return Rt.changedTouches[0].identifier}function dt(Rt){if(!Rt)return;let ae=Rt.getElementById("react-draggable-style-el");ae||(ae=Rt.createElement("style"),ae.type="text/css",ae.id="react-draggable-style-el",ae.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,ae.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,Rt.getElementsByTagName("head")[0].appendChild(ae)),Rt.body&&Mt(Rt.body,"react-draggable-transparent-selection")}function yt(Rt){if(Rt)try{if(Rt.body&&jt(Rt.body,"react-draggable-transparent-selection"),Rt.selection)Rt.selection.empty();else{const ae=(Rt.defaultView||window).getSelection();ae&&ae.type!=="Caret"&&ae.removeAllRanges()}}catch(ae){}}function Mt(Rt,ae){Rt.classList?Rt.classList.add(ae):Rt.className.match(new RegExp("(?:^|\\s)".concat(ae,"(?!\\S)")))||(Rt.className+=" ".concat(ae))}function jt(Rt,ae){Rt.classList?Rt.classList.remove(ae):Rt.className=Rt.className.replace(new RegExp("(?:^|\\s)".concat(ae,"(?!\\S)"),"g"),"")}},1750:function(di,Pn){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.browserPrefixToKey=ge,Pn.browserPrefixToStyle=se,Pn.default=void 0,Pn.getPrefix=Lt;const bt=["Moz","Webkit","O","ms"];function Lt(){var le;let Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const Tt=(le=window.document)===null||le===void 0||(le=le.documentElement)===null||le===void 0?void 0:le.style;if(!Tt||Et in Tt)return"";for(let ee=0;ee<bt.length;ee++)if(ge(Et,bt[ee])in Tt)return bt[ee];return""}function ge(le,Et){return Et?"".concat(Et).concat(De(le)):le}function se(le,Et){return Et?"-".concat(Et.toLowerCase(),"-").concat(le):le}function De(le){let Et="",Tt=!0;for(let ee=0;ee<le.length;ee++)Tt?(Et+=le[ee].toUpperCase(),Tt=!1):le[ee]==="-"?Tt=!0:Et+=le[ee];return Et}var re=Pn.default=Lt()},94187:function(di,Pn){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=bt;function bt(){}},60976:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.canDragX=re,Pn.canDragY=le,Pn.createCoreData=Tt,Pn.createDraggableData=ee,Pn.getBoundPosition=se,Pn.getControlPosition=Et,Pn.snapToGrid=De;var Lt=bt(36641),ge=bt(13957);function se(Gt,Jt,wt){if(!Gt.props.bounds)return[Jt,wt];let{bounds:et}=Gt.props;et=typeof et=="string"?et:Ct(et);const tt=Wt(Gt);if(typeof et=="string"){const{ownerDocument:lt}=tt,rt=lt.defaultView;let ht;if(et==="parent"?ht=tt.parentNode:ht=lt.querySelector(et),!(ht instanceof rt.HTMLElement))throw new Error('Bounds selector "'+et+'" could not find an element.');const dt=ht,yt=rt.getComputedStyle(tt),Mt=rt.getComputedStyle(dt);et={left:-tt.offsetLeft+(0,Lt.int)(Mt.paddingLeft)+(0,Lt.int)(yt.marginLeft),top:-tt.offsetTop+(0,Lt.int)(Mt.paddingTop)+(0,Lt.int)(yt.marginTop),right:(0,ge.innerWidth)(dt)-(0,ge.outerWidth)(tt)-tt.offsetLeft+(0,Lt.int)(Mt.paddingRight)-(0,Lt.int)(yt.marginRight),bottom:(0,ge.innerHeight)(dt)-(0,ge.outerHeight)(tt)-tt.offsetTop+(0,Lt.int)(Mt.paddingBottom)-(0,Lt.int)(yt.marginBottom)}}return(0,Lt.isNum)(et.right)&&(Jt=Math.min(Jt,et.right)),(0,Lt.isNum)(et.bottom)&&(wt=Math.min(wt,et.bottom)),(0,Lt.isNum)(et.left)&&(Jt=Math.max(Jt,et.left)),(0,Lt.isNum)(et.top)&&(wt=Math.max(wt,et.top)),[Jt,wt]}function De(Gt,Jt,wt){const et=Math.round(Jt/Gt[0])*Gt[0],tt=Math.round(wt/Gt[1])*Gt[1];return[et,tt]}function re(Gt){return Gt.props.axis==="both"||Gt.props.axis==="x"}function le(Gt){return Gt.props.axis==="both"||Gt.props.axis==="y"}function Et(Gt,Jt,wt){const et=typeof Jt=="number"?(0,ge.getTouch)(Gt,Jt):null;if(typeof Jt=="number"&&!et)return null;const tt=Wt(wt),lt=wt.props.offsetParent||tt.offsetParent||tt.ownerDocument.body;return(0,ge.offsetXYFromParent)(et||Gt,lt,wt.props.scale)}function Tt(Gt,Jt,wt){const et=!(0,Lt.isNum)(Gt.lastX),tt=Wt(Gt);return et?{node:tt,deltaX:0,deltaY:0,lastX:Jt,lastY:wt,x:Jt,y:wt}:{node:tt,deltaX:Jt-Gt.lastX,deltaY:wt-Gt.lastY,lastX:Gt.lastX,lastY:Gt.lastY,x:Jt,y:wt}}function ee(Gt,Jt){const wt=Gt.props.scale;return{node:Jt.node,x:Gt.state.x+Jt.deltaX/wt,y:Gt.state.y+Jt.deltaY/wt,deltaX:Jt.deltaX/wt,deltaY:Jt.deltaY/wt,lastX:Gt.state.x,lastY:Gt.state.y}}function Ct(Gt){return{left:Gt.left,top:Gt.top,right:Gt.right,bottom:Gt.bottom}}function Wt(Gt){const Jt=Gt.findDOMNode();if(!Jt)throw new Error("<DraggableCore>: Unmounted during event!");return Jt}},36641:function(di,Pn){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.dontSetMe=De,Pn.findInArray=bt,Pn.int=se,Pn.isFunction=Lt,Pn.isNum=ge;function bt(re,le){for(let Et=0,Tt=re.length;Et<Tt;Et++)if(le.apply(le,[re[Et],Et,re]))return re[Et]}function Lt(re){return typeof re=="function"||Object.prototype.toString.call(re)==="[object Function]"}function ge(re){return typeof re=="number"&&!isNaN(re)}function se(re){return parseInt(re,10)}function De(re,le,Et){if(re[le])return new Error("Invalid prop ".concat(le," passed to ").concat(Et," - do not set this, set it on the child."))}},27774:function(di,Pn){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.SizeSensorId=Pn.SensorTabIndex=Pn.SensorClassName=void 0;var bt="size-sensor-id";Pn.SizeSensorId=bt;var Lt="size-sensor-object";Pn.SensorClassName=Lt;var ge="-1";Pn.SensorTabIndex=ge},79301:function(di,Pn){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=void 0;var bt=function(ge){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,De=null;return function(){for(var re=this,le=arguments.length,Et=new Array(le),Tt=0;Tt<le;Tt++)Et[Tt]=arguments[Tt];clearTimeout(De),De=setTimeout(function(){ge.apply(re,Et)},se)}};Pn.default=bt},79789:function(di,Pn){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=void 0;var bt=1,Lt=function(){return"".concat(bt++)};Pn.default=Lt},47242:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.ver=Pn.clear=Pn.bind=void 0;var Lt=bt(95270),ge=function(le,Et){var Tt=(0,Lt.getSensor)(le);return Tt.bind(Et),function(){Tt.unbind(Et)}};Pn.bind=ge;var se=function(le){var Et=(0,Lt.getSensor)(le);(0,Lt.removeSensor)(Et)};Pn.clear=se;var De="1.0.2";Pn.ver=De},95270:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.removeSensor=Pn.getSensor=Pn.Sensors=void 0;var Lt=De(bt(79789)),ge=bt(57829),se=bt(27774);function De(ee){return ee&&ee.__esModule?ee:{default:ee}}var re={};Pn.Sensors=re;function le(ee){ee&&re[ee]&&delete re[ee]}var Et=function(Ct){var Wt=Ct.getAttribute(se.SizeSensorId);if(Wt&&re[Wt])return re[Wt];var Gt=(0,Lt.default)();Ct.setAttribute(se.SizeSensorId,Gt);var Jt=(0,ge.createSensor)(Ct,function(){return le(Gt)});return re[Gt]=Jt,Jt};Pn.getSensor=Et;var Tt=function(Ct){var Wt=Ct.element.getAttribute(se.SizeSensorId);Ct.destroy(),le(Wt)};Pn.removeSensor=Tt},57829:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.createSensor=void 0;var Lt=bt(20953),ge=bt(55202),se=typeof ResizeObserver!="undefined"?ge.createSensor:Lt.createSensor;Pn.createSensor=se},20953:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.createSensor=void 0;var Lt=se(bt(79301)),ge=bt(27774);function se(re){return re&&re.__esModule?re:{default:re}}var De=function(le,Et){var Tt=void 0,ee=[],Ct=function(){getComputedStyle(le).position==="static"&&(le.style.position="relative");var tt=document.createElement("object");return tt.onload=function(){tt.contentDocument.defaultView.addEventListener("resize",Wt),Wt()},tt.style.display="block",tt.style.position="absolute",tt.style.top="0",tt.style.left="0",tt.style.height="100%",tt.style.width="100%",tt.style.overflow="hidden",tt.style.pointerEvents="none",tt.style.zIndex="-1",tt.style.opacity="0",tt.setAttribute("class",ge.SensorClassName),tt.setAttribute("tabindex",ge.SensorTabIndex),tt.type="text/html",le.appendChild(tt),tt.data="about:blank",tt},Wt=(0,Lt.default)(function(){ee.forEach(function(et){et(le)})}),Gt=function(tt){Tt||(Tt=Ct()),ee.indexOf(tt)===-1&&ee.push(tt)},Jt=function(){Tt&&Tt.parentNode&&(Tt.contentDocument&&Tt.contentDocument.defaultView.removeEventListener("resize",Wt),Tt.parentNode.removeChild(Tt),le.removeAttribute(ge.SizeSensorId),Tt=void 0,ee=[],Et&&Et())},wt=function(tt){var lt=ee.indexOf(tt);lt!==-1&&ee.splice(lt,1),ee.length===0&&Tt&&Jt()};return{element:le,bind:Gt,destroy:Jt,unbind:wt}};Pn.createSensor=De},55202:function(di,Pn,bt){"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.createSensor=void 0;var Lt=bt(27774),ge=se(bt(79301));function se(re){return re&&re.__esModule?re:{default:re}}var De=function(le,Et){var Tt=void 0,ee=[],Ct=(0,ge.default)(function(){ee.forEach(function(et){et(le)})}),Wt=function(){var tt=new ResizeObserver(Ct);return tt.observe(le),Ct(),tt},Gt=function(tt){Tt||(Tt=Wt()),ee.indexOf(tt)===-1&&ee.push(tt)},Jt=function(){Tt.disconnect(),ee=[],Tt=void 0,le.removeAttribute(Lt.SizeSensorId),Et&&Et()},wt=function(tt){var lt=ee.indexOf(tt);lt!==-1&&ee.splice(lt,1),ee.length===0&&Tt&&Jt()};return{element:le,bind:Gt,destroy:Jt,unbind:wt}};Pn.createSensor=De},93314:function(di){"use strict";di.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=="},96908:function(di){"use strict";di.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(di){"use strict";di.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(di){"use strict";di.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(di,Pn,bt){"use strict";bt.d(Pn,{Z:function(){return Tt}});const Lt=ee=>typeof ee=="object"&&ee!=null&&ee.nodeType===1,ge=(ee,Ct)=>(!Ct||ee!=="hidden")&&ee!=="visible"&&ee!=="clip",se=(ee,Ct)=>{if(ee.clientHeight<ee.scrollHeight||ee.clientWidth<ee.scrollWidth){const Wt=getComputedStyle(ee,null);return ge(Wt.overflowY,Ct)||ge(Wt.overflowX,Ct)||(Gt=>{const Jt=(wt=>{if(!wt.ownerDocument||!wt.ownerDocument.defaultView)return null;try{return wt.ownerDocument.defaultView.frameElement}catch(et){return null}})(Gt);return!!Jt&&(Jt.clientHeight<Gt.scrollHeight||Jt.clientWidth<Gt.scrollWidth)})(ee)}return!1},De=(ee,Ct,Wt,Gt,Jt,wt,et,tt)=>wt<ee&&et>Ct||wt>ee&&et<Ct?0:wt<=ee&&tt<=Wt||et>=Ct&&tt>=Wt?wt-ee-Gt:et>Ct&&tt<Wt||wt<ee&&tt>Wt?et-Ct+Jt:0,re=ee=>{const Ct=ee.parentElement;return Ct==null?ee.getRootNode().host||null:Ct},le=(ee,Ct)=>{var Wt,Gt,Jt,wt;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:lt,boundary:rt,skipOverflowHiddenElements:ht}=Ct,dt=typeof rt=="function"?rt:Mn=>Mn!==rt;if(!Lt(ee))throw new TypeError("Invalid target");const yt=document.scrollingElement||document.documentElement,Mt=[];let jt=ee;for(;Lt(jt)&&dt(jt);){if(jt=re(jt),jt===yt){Mt.push(jt);break}jt!=null&&jt===document.body&&se(jt)&&!se(document.documentElement)||jt!=null&&se(jt,ht)&&Mt.push(jt)}const Rt=(Gt=(Wt=window.visualViewport)==null?void 0:Wt.width)!=null?Gt:innerWidth,ae=(wt=(Jt=window.visualViewport)==null?void 0:Jt.height)!=null?wt:innerHeight,{scrollX:he,scrollY:pe}=window,{height:Te,width:ne,top:Ke,right:Vt,bottom:$e,left:Ge}=ee.getBoundingClientRect(),{top:Oe,right:Ve,bottom:_e,left:xe}=(Mn=>{const Xe=window.getComputedStyle(Mn);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(ee);let ie=tt==="start"||tt==="nearest"?Ke-Oe:tt==="end"?$e+_e:Ke+Te/2-Oe+_e,be=lt==="center"?Ge+ne/2-xe+Ve:lt==="end"?Vt+Ve:Ge-xe;const Fn=[];for(let Mn=0;Mn<Mt.length;Mn++){const Xe=Mt[Mn],{height:In,width:Xn,top:pi,right:$n,bottom:bi,left:sn}=Xe.getBoundingClientRect();if(et==="if-needed"&&Ke>=0&&Ge>=0&&$e<=ae&&Vt<=Rt&&(Xe===yt&&!se(Xe)||Ke>=pi&&$e<=bi&&Ge>=sn&&Vt<=$n))return Fn;const Li=getComputedStyle(Xe),ji=parseInt(Li.borderLeftWidth,10),ve=parseInt(Li.borderTopWidth,10),hn=parseInt(Li.borderRightWidth,10),Ae=parseInt(Li.borderBottomWidth,10);let Ot=0,Ft=0;const Kt="offsetWidth"in Xe?Xe.offsetWidth-Xe.clientWidth-ji-hn:0,Ee="offsetHeight"in Xe?Xe.offsetHeight-Xe.clientHeight-ve-Ae:0,je="offsetWidth"in Xe?Xe.offsetWidth===0?0:Xn/Xe.offsetWidth:0,ce="offsetHeight"in Xe?Xe.offsetHeight===0?0:In/Xe.offsetHeight:0;if(yt===Xe)Ot=tt==="start"?ie:tt==="end"?ie-ae:tt==="nearest"?De(pe,pe+ae,ae,ve,Ae,pe+ie,pe+ie+Te,Te):ie-ae/2,Ft=lt==="start"?be:lt==="center"?be-Rt/2:lt==="end"?be-Rt:De(he,he+Rt,Rt,ji,hn,he+be,he+be+ne,ne),Ot=Math.max(0,Ot+pe),Ft=Math.max(0,Ft+he);else{Ot=tt==="start"?ie-pi-ve:tt==="end"?ie-bi+Ae+Ee:tt==="nearest"?De(pi,bi,In,ve,Ae+Ee,ie,ie+Te,Te):ie-(pi+In/2)+Ee/2,Ft=lt==="start"?be-sn-ji:lt==="center"?be-(sn+Xn/2)+Kt/2:lt==="end"?be-$n+hn+Kt:De(sn,$n,Xn,ji,hn+Kt,be,be+ne,ne);const{scrollLeft:Be,scrollTop:$t}=Xe;Ot=ce===0?0:Math.max(0,Math.min($t+Ot/ce,Xe.scrollHeight-In/ce+Ee)),Ft=je===0?0:Math.max(0,Math.min(Be+Ft/je,Xe.scrollWidth-Xn/je+Kt)),ie+=$t-Ot,be+=Be-Ft}Fn.push({el:Xe,top:Ot,left:Ft})}return Fn},Et=ee=>ee===!1?{block:"end",inline:"nearest"}:(Ct=>Ct===Object(Ct)&&Object.keys(Ct).length!==0)(ee)?ee:{block:"start",inline:"nearest"};function Tt(ee,Ct){if(!ee.isConnected||!(Jt=>{let wt=Jt;for(;wt&&wt.parentNode;){if(wt.parentNode===document)return!0;wt=wt.parentNode instanceof ShadowRoot?wt.parentNode.host:wt.parentNode}return!1})(ee))return;const Wt=(Jt=>{const wt=window.getComputedStyle(Jt);return{top:parseFloat(wt.scrollMarginTop)||0,right:parseFloat(wt.scrollMarginRight)||0,bottom:parseFloat(wt.scrollMarginBottom)||0,left:parseFloat(wt.scrollMarginLeft)||0}})(ee);if((Jt=>typeof Jt=="object"&&typeof Jt.behavior=="function")(Ct))return Ct.behavior(le(ee,Ct));const Gt=typeof Ct=="boolean"||Ct==null?void 0:Ct.behavior;for(const{el:Jt,top:wt,left:et}of le(ee,Et(Ct))){const tt=wt-Wt.top+Wt.bottom,lt=et-Wt.left+Wt.right;Jt.scroll({top:tt,left:lt,behavior:Gt})}}}}]);
}());