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...

1404 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 s2=Object.defineProperty,a2=Object.defineProperties;var l2=Object.getOwnPropertyDescriptors;var vv=Object.getOwnPropertySymbols;var Cw=Object.prototype.hasOwnProperty,Bw=Object.prototype.propertyIsEnumerable;var Sw=(ui,wn,bt)=>wn in ui?s2(ui,wn,{enumerable:!0,configurable:!0,writable:!0,value:bt}):ui[wn]=bt,Sg=(ui,wn)=>{for(var bt in wn||(wn={}))Cw.call(wn,bt)&&Sw(ui,bt,wn[bt]);if(vv)for(var bt of vv(wn))Bw.call(wn,bt)&&Sw(ui,bt,wn[bt]);return ui},Iy=(ui,wn)=>a2(ui,l2(wn));var Pw=(ui,wn)=>{var bt={};for(var Ft in ui)Cw.call(ui,Ft)&&wn.indexOf(Ft)<0&&(bt[Ft]=ui[Ft]);if(ui!=null&&vv)for(var Ft of vv(ui))wn.indexOf(Ft)<0&&Bw.call(ui,Ft)&&(bt[Ft]=ui[Ft]);return bt};(self.webpackChunk=self.webpackChunk||[]).push([[342],{27812:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},89489:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},59477:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},40001:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},26227:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},49198:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},87169:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},73331:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},15277:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},52671:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},8657:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},56082:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},33853:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},15075:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},43531:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},61485:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},38819:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},47472:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},95869:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Pt,oe){return ce.createElement(ee.Z,(0,Ft.Z)({},Pt,{ref:oe,icon:Be}))},It=ce.forwardRef(Yt),jt=It},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(ui,wn){"use strict";wn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function ui(Ct,et,tt,lt){tt===void 0&&(tt=0),lt===void 0&&(lt=1/0),this._name=Ct,this._defaultValue=et,this._minimum=tt,this._maximum=lt}Object.defineProperty(ui.prototype,"name",{get:function(){return this._name},set:function(Ct){if(typeof Ct!="string"||Ct==="")throw new Error("Shape name must be a valid string.");this._name=Ct}}),Object.defineProperty(ui.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("The default value must be a real number, not: "+Ct);this._defaultValue=Ct}}),Object.defineProperty(ui.prototype,"minimum",{get:function(){return this._minimum},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("Minimum must be a real number, not: "+Ct);this._minimum=Ct}}),Object.defineProperty(ui.prototype,"maximum",{get:function(){return this._maximum},set:function(Ct){if(typeof Ct!="number"||isNaN(Ct))throw new Error("Maximum must be a real number, not: "+Ct);this._maximum=Ct}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ct,et){var tt=go.Shape._FigureParameters[Ct];return tt?tt[et]:null},go.Shape.setFigureParameter=function(Ct,et,tt){if(!(tt instanceof ui))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[Ct];lt||(lt=[],go.Shape._FigureParameters[Ct]=lt),lt[et]=tt};var wn=[];function bt(Ct,et){var tt=wn.pop();return tt===void 0?new go.Point(Ct,et):(tt.x=Ct,tt.y=et,tt)}function Ft(){var Ct=wn.pop();return Ct===void 0?new go.Point:Ct}function ce(Ct){wn.push(Ct)}function re(Ct,et,tt,lt,rt,ut,ct,wt,Mt){Mt||(Mt=new go.Point);var Ot=Ct-tt,Ht=rt-ct,ne=NaN,ae=NaN;if(Ot===0)if(Ht===0)Ct===tt&&(ne=Ct,ae=et);else{var de=(ut-wt)/Ht,be=ut-de*rt;ne=Ct,ae=de*ne+be}else if(Ht===0){var qt=(et-lt)/Ot,ze=et-qt*Ct;ne=rt,ae=qt*ne+ze}else{var qt=(et-lt)/Ot,de=(ut-wt)/Ht,ze=et-qt*Ct,be=ut-de*rt;ne=(be-ze)/(qt-de),ae=qt*ne+ze}return Mt.x=ne,Mt.y=ae,Mt}function Be(Ct,et,tt,lt,rt,ut,ct,wt,Mt,Ot,Ht,ne,ae,de){var be=1-Mt,qt=Mt,ze=Ct*be+tt*qt,Vt=et*be+lt*qt,Ge=tt*be+rt*qt,_e=lt*be+ut*qt,Ne=rt*be+ct*qt,We=ut*be+wt*qt,Re=ze*be+Ge*qt,ve=Vt*be+_e*qt,ie=Ge*be+Ne*qt,Se=_e*be+We*qt,Bn=Re*be+ie*qt,Ln=ve*be+Se*qt;Ot.x=ze,Ot.y=Vt,Ht.x=Re,Ht.y=ve,ne.x=Bn,ne.y=Ln,ae.x=ie,ae.y=Se,de.x=Ne,de.y=We}var ee=new go.Spot(.156,.156),Yt=new go.Spot(.844,.844),It=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ui("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=5),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*It,ut=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&&(ut.spot1=new go.Spot(0,0,rt,rt),ut.spot2=new go.Spot(1,1,-rt,-rt)),ut}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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=ee,rt.spot2=Yt,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(Ct,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(Ct,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(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,It*et,0,et,(1-It)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,It*tt,(1-It)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,It*tt,It*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-It)*et,0,0,(1-It)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ct,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(Ct,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(Ct,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(Ct,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 ui("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=.1:lt<-1?lt=-1:lt>1&&(lt=1);var rt=Math.abs(lt)*et;if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.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())):ut.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&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ui("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=10:lt<-et?lt=-et:lt>et&&(lt=et);var rt=Math.abs(lt);if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.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())):ut.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&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.setFigureParameter("Trapezoid1",0,new ui("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)?lt=.2:lt<.5?lt=-.5:lt>.5&&(lt=.5);var rt=Math.abs(lt)*et;if(lt===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.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())):ut.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&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ui("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ct,et,tt){var lt=Ct?Ct.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 ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.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())):ut.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&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.setFigureParameter("ManualOperation",0,new ui("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ct,et,tt){var lt=Ct?Ct.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 ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return lt>0?ut.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())):ut.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&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}});var jt=[];function Xt(){var Ct=jt.pop();return Ct===void 0?[]:Ct}function Pt(Ct){Ct.length=0,jt.push(Ct)}function oe(Ct){for(var et=Xt(),tt=.5,lt=.5,rt=Math.PI*1.5,ut=0,ct=0;ct<Ct;ct++)ut=2*Math.PI/Ct*ct+rt,et[ct]=new go.Point(lt+tt*Math.cos(ut),lt+tt*Math.sin(ut));return et.push(et[0]),et}function zt(Ct){var et=Jt(Ct),tt=Xt();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 Pt(et),tt}function Jt(Ct){for(var et=oe(Ct),tt=Xt(),lt=Math.floor(et.length/2),rt=et.length-1,ut=Ct%2===0?2:1,ct=0;ct<rt;ct++){var wt=et[ct],Mt=et[ct+1],Ot=et[(lt+ct-1)%rt],Ht=et[(lt+ct+ut)%rt];tt[ct*2]=wt,tt[ct*2+1]=re(wt.x,wt.y,Ot.x,Ot.y,Mt.x,Mt.y,Ht.x,Ht.y,new go.Point)}return tt[tt.length]=tt[0],Pt(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(Ct,et,tt){var lt=oe(5),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<5;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.2,.22),rt.spot2=new go.Spot(.8,.9),rt}),go.Shape.defineFigureGenerator("Hexagon",function(Ct,et,tt){var lt=oe(6),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<6;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.07,.25),rt.spot2=new go.Spot(.93,.75),rt}),go.Shape.defineFigureGenerator("Heptagon",function(Ct,et,tt){var lt=oe(7),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<7;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.2,.15),rt.spot2=new go.Spot(.8,.85),rt}),go.Shape.defineFigureGenerator("Octagon",function(Ct,et,tt){var lt=oe(8),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<8;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.15,.15),rt.spot2=new go.Spot(.85,.85),rt}),go.Shape.defineFigureGenerator("Nonagon",function(Ct,et,tt){var lt=oe(9),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<9;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.17,.13),rt.spot2=new go.Spot(.82,.82),rt}),go.Shape.defineFigureGenerator("Decagon",function(Ct,et,tt){var lt=oe(10),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<10;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("Dodecagon",function(Ct,et,tt){var lt=oe(12),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<12;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ct,et,tt){var lt=Jt(5),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<10;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.266,.333),rt.spot2=new go.Spot(.733,.733),rt}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ct,et,tt){var lt=Jt(6),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<12;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.17,.25),rt.spot2=new go.Spot(.83,.75),rt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ct,et,tt){var lt=Jt(7),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<14;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ct,et,tt){var lt=Jt(8),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<16;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.25,.25),rt.spot2=new go.Spot(.75,.75),rt}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ct,et,tt){var lt=Jt(9),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<18;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ct,et,tt){var lt=Jt(10),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<20;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,lt[ct].x*et,lt[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,lt[0].x*et,lt[0].y*tt).close()),Pt(lt),rt.spot1=new go.Spot(.281,.261),rt.spot2=new go.Spot(.723,.748),rt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ct,et,tt){var lt=zt(5),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ct,et,tt){var lt=zt(6),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.17,.222),rt.spot2=new go.Spot(.833,.777),rt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ct,et,tt){var lt=zt(7),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ct,et,tt){var lt=zt(8),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ct,et,tt){var lt=zt(9),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ct,et,tt){var lt=zt(10),rt=new go.Geometry,ut=new go.PathFigure(lt[0].x*et,lt[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<lt.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,lt[ct+2].x*et,lt[ct+2].y*tt,lt[ct].x*et,lt[ct].y*tt,lt[ct+1].x*et,lt[ct+1].y*tt));return ut.segments.last().close(),Pt(lt),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new ui("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ui("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN,rt=Ct?Ct.parameter2:NaN;isNaN(lt)&&(lt=8),isNaN(rt)&&(rt=8);var ut=new go.Geometry,ct=new go.PathFigure(0,0,!0);return ut.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt<et/2&&rt<tt/2&&(ct.add(new go.PathSegment(go.PathSegment.Move,lt,rt)),ct.add(new go.PathSegment(go.PathSegment.Line,lt,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,rt).close())),ut.setSpots(0,0,1,1,lt,rt,-lt,-rt),ut}),go.Shape.setFigureParameter("Ring",0,new ui("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=8);var rt=et/2,ut=new go.Geometry,ct=new go.PathFigure(et,et/2,!0);ut.add(ct),ct.add(new go.PathSegment(go.PathSegment.Arc,0,360,rt,rt,rt,rt).close());var wt=Math.max(rt-lt,0);return wt>0&&(ct.add(new go.PathSegment(go.PathSegment.Move,et/2+wt,et/2)),ct.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,wt,wt).close())),ut.spot1=ee,ut.spot2=Yt,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(Ct,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(Ct,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 ui("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ui("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN,rt=Ct?Ct.parameter2:NaN;isNaN(lt)&&(lt=0),isNaN(rt)&&(rt=315);var ut=lt%360;ut<0&&(ut+=360);var ct=rt%360,wt=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(wt,wt).add(new go.PathSegment(go.PathSegment.Arc,ut,ct,wt,wt,wt,wt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ct,et,tt){var lt=It/Math.SQRT2*.5,rt=Math.SQRT2/2,ut=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ut*tt,et,(1-lt)*tt,(rt+lt)*et,(ut+lt)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ui("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30);var rt=Math.min(lt,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ui("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=Math.min(lt,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new ui("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ct,et,tt){var lt=Ct?Ct.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 ut=et/2,ct=tt/2,wt=Math.atan2(tt,et),Mt=lt-Math.min(Math.cos(wt)*lt/2,ut),Ot=lt-Math.min(Math.sin(wt)*lt/2,ct),rt=new go.Geometry,Ht=new go.PathFigure(Mt,0,!0);return rt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),Ht.add(new go.PathSegment(go.PathSegment.Line,et-Mt,0)),Ht.add(new go.PathSegment(go.PathSegment.Line,et,Ot)),Ht.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),Ht.add(new go.PathSegment(go.PathSegment.Line,et,tt-Ot)),Ht.add(new go.PathSegment(go.PathSegment.Line,et-Mt,tt)),Ht.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),Ht.add(new go.PathSegment(go.PathSegment.Line,Mt,tt)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,tt-Ot)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,Ot).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new ui("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=10);var rt=new go.Geometry,ut=new go.PathFigure(.1*et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new ui("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+lt/2)*et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,(1-lt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-lt/2)*et,lt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new ui("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.5);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-lt)*et,.25*tt,Math.abs(1-lt)*et,.75*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,lt*et,.75*tt,lt*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ct,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,It*et,0,et,(.5-It/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+It/2)*tt,It*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ct,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(Ct,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(Ct,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(Ct,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 ut=.2,ct=.3,wt=0,Mt=ut*It;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+wt)*tt,(.5-ut+ct)*et,(.5+Mt+wt)*tt,(.5-Mt+ct)*et,(.5+ut+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+wt)*tt,(.5+Mt+ct)*et,(.5+ut+wt)*tt,(.5+ut+ct)*et,(.5+Mt+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+wt)*tt,(1-.5+ut+ct)*et,(.5-Mt+wt)*tt,(.5+Mt+ct)*et,(.5-ut+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-Mt+ct)*et,(.5-ut+wt)*tt,(.5-ut+ct+.05)*et,(.5-Mt+wt-.02)*tt)),ut=.2,ct=0,wt=-.3,Mt=ut*It,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+wt)*tt,(.5+Mt+ct)*et,(.5+ut+wt)*tt,(.5+ut+ct)*et,(.5+Mt+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+wt)*tt,(1-.5+ut+ct)*et,(.5-Mt+wt)*tt,(.5+Mt+ct)*et,(.5-ut+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+wt)*tt,(.5-Mt+ct)*et,(.5-ut+wt)*tt,(.5-ut+ct)*et,(.5-Mt+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Mt+ct)*et,(.5+ut+wt)*tt,(.5-ut+ct)*et,(.5+Mt+wt)*tt,(.5-Mt+ct)*et,(.5+ut+wt)*tt)),ut=.2,ct=-.3,wt=0,Mt=ut*It,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+wt)*tt,(1-.5+ut+ct-.05)*et,(.5-Mt+wt-.02)*tt,(.5+Mt+ct)*et,(.5-ut+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+wt)*tt,(.5-Mt+ct)*et,(.5-ut+wt)*tt,(.5-ut+ct)*et,(.5-Mt+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+wt)*tt,(.5-ut+ct)*et,(.5+Mt+wt)*tt,(.5-Mt+ct)*et,(.5+ut+wt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+Mt+ct)*et,(.5+ut+wt)*tt,(.5+ut+ct)*et,(.5+Mt+wt)*tt).close()),lt.setSpots(.06,.33,.93,.68),lt}),go.Shape.defineFigureGenerator("YinYang",function(Ct,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 ut=.1,ct=.5,wt=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(ct+ut)*et,wt*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*ct,tt*wt,ut*et,ut*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)),wt=.75,rt=new go.PathFigure((ct+ut)*et,wt*tt,!0),lt.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*ct,tt*wt,ut*et,ut*et).close()),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Peace",function(Ct,et,tt){var lt=.8535533905932737,rt=.5*et,ut=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ut,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,(1-lt)*et,lt*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,lt*et,lt*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=.5,ct=.5,wt=.5,Mt=new go.PathFigure(ct*et,(wt-ut)*tt);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,wt*tt,(ct-rt)*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+ut)*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,wt*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-ut)*tt,(ct+ut)*et,(wt-rt)*tt,(ct+rt)*et,(wt-ut)*tt)),ut=.4,rt=It*.4;var Ot=Ft(),Ht=Ft(),ne=Ft(),ae=Ft();Be(ct,wt-ut,ct+rt,wt-ut,ct+ut,wt-rt,ct+ut,wt,.42,Ot,Ht,ne,ae,ae);var de=Ft(),be=Ft(),qt=Ft();Be(ct,wt-ut,ct+rt,wt-ut,ct+ut,wt-rt,ct+ut,wt,.58,ae,ae,qt,de,be);var ze=Ft(),Vt=Ft(),Ge=Ft();Be(ct,wt+ut,ct-rt,wt+ut,ct-ut,wt+rt,ct-ut,wt,.42,ze,Vt,Ge,ae,ae);var _e=Ft(),Ne=Ft(),We=Ft();return Be(ct,wt+ut,ct-rt,wt+ut,ct-ut,wt+rt,ct-ut,wt,.58,ae,ae,We,_e,Ne),Mt.add(new go.PathSegment(go.PathSegment.Move,We.x*et,We.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,wt*tt,_e.x*et,_e.y*tt,Ne.x*et,Ne.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ne.x*et,ne.y*tt,Ot.x*et,Ot.y*tt,Ht.x*et,Ht.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,We.x*et,We.y*tt).close()),Mt.add(new go.PathSegment(go.PathSegment.Move,Ge.x*et,Ge.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Line,qt.x*et,qt.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,wt*tt,de.x*et,de.y*tt,be.x*et,be.y*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,Ge.x*et,Ge.y*tt,ze.x*et,ze.y*tt,Vt.x*et,Vt.y*tt).close()),ce(Ot),ce(Ht),ce(ne),ce(ae),ce(de),ce(be),ce(qt),ce(ze),ce(Vt),ce(Ge),ce(_e),ce(Ne),ce(We),lt.defaultStretch=go.GraphObject.Uniform,lt}),go.Shape.defineFigureGenerator("Fragile",function(Ct,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 ui("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=30),lt>et&&(lt=et);var rt=(et-lt)/2,ut=rt+lt;return new go.Geometry().add(new go.PathFigure(ut,.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=It*.4,ut=.4,ct=.5,wt=.5,Mt=Ft(),Ot=Ft(),Ht=Ft(),ne=Ft(),ae=new go.PathFigure((ct-ut)*et,wt*tt,!1);lt.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt)),Be(ct,wt-ut,ct+rt,wt-ut,ct+ut,wt-rt,ct+ut,wt,.44,Ht,ne,Ot,Mt,Mt),ae.add(new go.PathSegment(go.PathSegment.Bezier,Ot.x*et,Ot.y*tt,Ht.x*et,Ht.y*tt,ne.x*et,ne.y*tt));var de=bt(Ot.x,Ot.y);Be(ct,wt-ut,ct+rt,wt-ut,ct+ut,wt-rt,ct+ut,wt,.56,Mt,Mt,Ot,Ht,ne);var be=bt(Ot.x,Ot.y);ae.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.95*.9)*et,de.y*.1*tt)),ae.add(new go.PathSegment(go.PathSegment.Line,.85*et,de.y*.1*tt)),ae.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),ae.add(new go.PathSegment(go.PathSegment.Line,et,0)),ae.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),ae.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*et,.15*tt)),ae.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*et,(be.y*.1+.05*.9)*tt)),ae.add(new go.PathSegment(go.PathSegment.Line,be.x*et,be.y*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,wt*tt,Ht.x*et,Ht.y*tt,ne.x*et,ne.y*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,wt*tt,(ct-rt)*et,(wt+ut)*tt,(ct-ut)*et,(wt+rt)*tt)),ut=.35,rt=It*.35;var qt=new go.PathFigure(ct*et,(wt-ut)*tt,!1);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,wt*tt,(ct-rt)*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+ut)*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,wt*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-ut)*tt,(ct+ut)*et,(wt-rt)*tt,(ct+rt)*et,(wt-ut)*tt));var ze=new go.PathFigure((ct-ut)*et,wt*tt,!1);return lt.add(ze),ce(Mt),ce(Ot),ce(Ht),ce(ne),ce(de),ce(be),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(Ct,et,tt){var lt=new go.Geometry,rt=.375,ut=0,ct=-.125,wt=rt*It,Mt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+wt+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+wt+ct)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-wt+ct)*tt,(.5+wt+ut)*et,(.5-rt+ct)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-wt+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-wt+ct)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+wt+ct)*tt,(.5-wt+ut)*et,(.5+rt+ct)*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,ut=0,ct=-.125,wt=rt*It;var Mt=new go.PathFigure((1-.5+rt+ut)*et,(.5+ct)*tt,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+wt+ct)*tt,(.5+wt+ut)*et,(.5+rt+ct)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-wt+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+wt+ct)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-wt+ct)*tt,(.5-wt+ut)*et,(.5-rt+ct)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+wt+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-wt+ct)*tt));var Mt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*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(Ct,et,tt){var lt=Ct?Ct.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(Ct,et,tt){var lt=Ct?Ct.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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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 ui("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ui("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.3);var ut=(1-lt)*et,ct=(.5-rt/2)*tt,wt=(.5+rt/2)*tt,Mt=new go.Geometry,Ot=new go.PathFigure(0,ct,!0);Mt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Ot.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,ut,wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Mt.spot1=new go.Spot(0,ct/tt);var Ht=re(0,wt/tt,1,wt/tt,ut/et,1,1,.5,Ft());return Mt.spot2=new go.Spot(Ht.x,Ht.y),ce(Ht),Mt}),go.Shape.setFigureParameter("Arrow2",0,new ui("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ui("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=30),lt>et&&(lt=et);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ut=et-lt,ct=(tt-rt)/2,wt=ct+rt,Mt=new go.Geometry,Ot=new go.PathFigure(0,ct,!0);Mt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Ot.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,ut,wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Mt.spot1=new go.Spot(0,ct/tt);var Ht=re(0,wt/tt,1,wt/tt,ut/et,1,1,.5,Ft());return Mt.spot2=new go.Spot(Ht.x,Ht.y),ce(Ht),Mt}),go.Shape.defineFigureGenerator("Chevron",function(Ct,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(Ct,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 ui("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,wt=new go.PathFigure(et,.5*tt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Mt=re(0,.5,.3,0,0,rt/tt,.1,rt/tt,Ft());return ct.spot1=new go.Spot(Mt.x,Mt.y),Mt=re(.7,1,1,.5,0,ut/tt,1,ut/tt,Mt),ct.spot2=new go.Spot(Mt.x,Mt.y),ce(Mt),ct}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ui("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ui("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-lt)/2,ct=ut+lt,wt=(tt-rt)/2,Mt=wt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ut=(tt-lt)/2,ct=ut+lt,wt=0,Mt=tt):(ut=0,ct=tt,wt=0,Mt=tt));var Ot=new go.Geometry,Ht=new go.PathFigure(et,.5*tt,!0);Ot.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,Mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Ht.add(new go.PathSegment(go.PathSegment.Line,.3*et,ct)),Ht.add(new go.PathSegment(go.PathSegment.Line,.3*et,Mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.3*et,wt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,wt).close());var ne=re(0,.5,.3,wt/tt,0,ut/tt,1,ut/tt,Ft());return Ot.spot1=new go.Spot(ne.x,ne.y),ne=re(.7,Mt/tt,1,.5,0,ct/tt,1,ct/tt,ne),Ot.spot2=new go.Spot(ne.x,ne.y),ce(ne),Ot}),go.Shape.setFigureParameter("IBeamArrow",0,new ui("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,wt=new go.PathFigure(et,.5*tt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(0,rt/tt);var Mt=re(.7,1,1,.5,0,ut/tt,1,ut/tt,Ft());return ct.spot2=new go.Spot(Mt.x,Mt.y),ce(Mt),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new ui("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ui("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=40);var rt=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-lt)/2,ct=ut+lt,wt=(tt-rt)/2,Mt=wt+rt;(lt>tt||rt>tt)&&(rt>lt?(lt=lt*tt/rt,ut=(tt-lt)/2,ct=ut+lt,wt=0,Mt=tt):(ut=0,ct=tt,wt=0,Mt=tt));var Ot=new go.Geometry,Ht=new go.PathFigure(et,.5*tt,!0);Ot.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,Mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,Mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,Mt)),Ht.add(new go.PathSegment(go.PathSegment.Line,0,wt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,wt)),Ht.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Ht.add(new go.PathSegment(go.PathSegment.Line,.7*et,wt).close()),Ot.spot1=new go.Spot(0,ut/tt);var ne=re(.7,Mt/tt,1,.5,0,ct/tt,1,ct/tt,Ft());return Ot.spot2=new go.Spot(ne.x,ne.y),ce(ne),Ot}),go.Shape.setFigureParameter("Pointer",0,new ui("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.1);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(lt,.35);var ct=re(.2,.65,1,.65,0,1,1,.5,Ft());return rt.spot2=new go.Spot(ct.x,ct.y),ce(ct),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new ui("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.3);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.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 ct=re(0,.65,1,.65,0,1,1,.5,Ft());return rt.spot2=new go.Spot(ct.x,ct.y),ce(ct),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new ui("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.4);var rt=(.5-lt/2)*tt,ut=(.5+lt/2)*tt,ct=new go.Geometry,wt=new go.PathFigure(et,.5*tt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,.3);var Mt=re(.7,1,1,.5,0,ut/tt,1,ut/tt,Ft());return ct.spot2=new go.Spot(Mt.x,Mt.y),ce(Mt),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ui("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=50);var rt=(tt-lt)/2,ut=rt+lt;lt>tt&&(rt=0,ut=tt);var ct=new go.Geometry,wt=new go.PathFigure(et,.5*tt,!0);ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,rt/tt);var Mt=re(.7,1,1,.5,0,ut/tt,1,ut/tt,Ft());return ct.spot2=new go.Spot(Mt.x,Mt.y),ce(Mt),ct}),go.Shape.setFigureParameter("SquareArrow",0,new ui("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.7);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,lt*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.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(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=It*.1,ct=new go.PathFigure(0,.9*tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt).close()),lt.spot1=new go.Spot(.25,.5),lt.spot2=new go.Spot(.75,.97),lt}),go.Shape.defineFigureGenerator("Cone2",function(Ct,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 ut=new go.PathFigure(0,.9*tt,!1);return lt.add(ut),ut.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(Ct,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 ut=new go.PathFigure(.5*et,tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ut.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(Ct,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 ut=new go.PathFigure(0,.3*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ut.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(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ut=It*.5,ct=new go.PathFigure(0,lt,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,It*lt,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,1*et,lt,(.5+ut)*et,0,1*et,It*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-It*lt,(.5+ut)*et,1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ut)*et,1*tt,0,tt-It*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,lt));var wt=new go.PathFigure(et,lt,!1);return rt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*lt,1*et,2*lt-It*lt,(.5+ut)*et,2*lt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,lt,(.5-ut)*et,2*lt,0,2*lt-It*lt)),rt.spot1=new go.Spot(0,0,0,2*lt),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,tt/3);var rt=new go.Geometry,ut=It*.5,ct=new go.PathFigure(0,tt-lt,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,It*lt,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,(.5+ut)*et,0,et,It*lt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-lt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-It*lt,(.5+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-lt,(.5-ut)*et,tt,0,tt-It*lt));var wt=new go.PathFigure(0,tt-lt,!1);return rt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*lt,0,tt-lt-It*lt,(.5-ut)*et,tt-2*lt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-lt,(.5+ut)*et,tt-2*lt,et,tt-lt-It*lt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*lt),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ut=It*.5,ct=new go.PathFigure(lt,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-It*lt,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ut)*tt,et-It*lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,It*lt,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ut)*tt,It*lt,0));var wt=new go.PathFigure(lt,0,!1);return rt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,2*lt,.5*tt,lt+It*lt,0,2*lt,(.5-ut)*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,lt,tt,2*lt,(.5+ut)*tt,lt+It*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(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=5),lt=Math.min(lt,et/3);var rt=new go.Geometry,ut=It*.5,ct=new go.PathFigure(et-lt,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-It*lt,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et,(.5+ut)*tt,et-It*lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,lt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,It*lt,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,(.5-ut)*tt,It*lt,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et-lt,0));var wt=new go.PathFigure(et-lt,0,!1);return rt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*lt,.5*tt,et-lt-It*lt,0,et-2*lt,(.5-ut)*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,tt,et-2*lt,(.5+ut)*tt,et-lt-It*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(Ct,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 ut=new go.PathFigure(.25*et,.25*tt,!1);return lt.add(ut),ut.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(Ct,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 ut=new go.PathFigure(0,tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ut.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(Ct,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 ut=new go.PathFigure(.5*et,0,!1);return lt.add(ut),ut.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(Ct,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 ut=new go.PathFigure(.5*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ut.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(Ct,et,tt){var lt=new go.Geometry,rt=.2,ut=.1,ct=It*rt,wt=It*ut,Mt=.5,Ot=.1,Ht=new go.PathFigure(Mt*et,(Ot+ut)*tt,!0);lt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-rt)*et,Ot*tt,(Mt-ct)*et,(Ot+ut)*tt,(Mt-rt)*et,(Ot+wt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot-ut)*tt,(Mt-rt)*et,(Ot-wt)*tt,(Mt-ct)*et,(Ot-ut)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+rt)*et,Ot*tt,(Mt+ct)*et,(Ot-ut)*tt,(Mt+rt)*et,(Ot-wt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot+ut)*tt,(Mt+rt)*et,(Ot+wt)*tt,(Mt+ct)*et,(Ot+ut)*tt));var ne=.05,ae=It*ne;Mt=.05,Ot=.25;var de=new go.PathFigure(.5*et,.2*tt,!0);return lt.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),Mt=.95,Ot=.25,de.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+ne)*et,Ot*tt,(Mt+ae)*et,(Ot-ne)*tt,(Mt+ne)*et,(Ot-ae)*tt)),de.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),ne=.025,ae=It*ne,Mt=.825,Ot=.35,de.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot-ne)*tt,(Mt+ne)*et,(Ot-ae)*tt,(Mt+ae)*et,(Ot-ne)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ne)*et,Ot*tt,(Mt-ae)*et,(Ot-ne)*tt,(Mt-ne)*et,(Ot-ae)*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),de.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),de.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),ne=.05,ae=It*ne,Mt=.5,Ot=.7,de.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot-ne)*tt,(Mt+ne)*et,(Ot-ae)*tt,(Mt+ae)*et,(Ot-ne)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ne)*et,Ot*tt,(Mt-ae)*et,(Ot-ne)*tt,(Mt-ne)*et,(Ot-ae)*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),de.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),de.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),ne=.025,ae=It*ne,Mt=.175,Ot=.35,de.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot-ne)*tt,(Mt+ne)*et,(Ot-ae)*tt,(Mt+ae)*et,(Ot-ne)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ne)*et,Ot*tt,(Mt-ae)*et,(Ot-ne)*tt,(Mt-ne)*et,(Ot-ae)*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),de.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),de.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),ne=.05,ae=It*ne,Mt=.05,Ot=.25,de.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot-ne)*tt,(Mt-ne)*et,(Ot-ae)*tt,(Mt-ae)*et,(Ot-ne)*tt)),de.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 ui("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;isNaN(lt)&&(lt=.2);var rt=new go.Geometry,ut=new go.PathFigure(et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,lt*tt)),ut.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(Ct,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 ut=new go.PathFigure(.5*et,.5*tt,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("Database",function(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=It*.1,ct=new go.PathFigure(et,.1*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var wt=new go.PathFigure(et,.1*tt,!1);return lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+rt)*et,.4*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ut)*tt)),lt.spot1=new go.Spot(0,.4),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("DataStorage",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=It*.1,ct=new go.PathFigure(et,.1*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var wt=new go.PathFigure(et,.1*tt,!1);return lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),lt.spot1=new go.Spot(0,.3),lt.spot2=new go.Spot(1,.9),lt}),go.Shape.defineFigureGenerator("Display",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ut=It*.2,ct=new go.PathFigure(0,.2*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ut)*tt,(.2-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ut)*et,0,et,(.2-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ut)*tt,(.8+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ut)*et,tt,0,(.8+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var wt=new go.PathFigure(0,rt*tt,!1);return lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("DividedProcess",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),lt}),go.Shape.defineFigureGenerator("Document",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),lt}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ct,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 ut=new go.PathFigure(.1*et,.4*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ut.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(Ct,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 ut=new go.PathFigure(.75*et,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ut.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(Ct,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 ut=new go.PathFigure(et,.5*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt));var ct=new go.PathFigure(et,.5*tt,!1);return lt.add(ct),ct.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ut=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.1);var ct=new go.PathFigure(0,0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var wt=new go.PathFigure(rt*et,0,!1);return lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),lt}),go.Shape.defineFigureGenerator("Junction",function(Ct,et,tt){var lt=new go.Geometry,rt=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,ct=It*.5,wt=.5,Mt=new go.PathFigure(et,wt*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,tt,et,(wt+ct)*tt,(wt+ct)*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,wt*tt,(wt-ct)*et,tt,0,(wt+ct)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,0,0,(wt-ct)*tt,(wt-ct)*et,0)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et,wt*tt,(wt+ct)*et,0,et,(wt-ct)*tt));var Ot=new go.PathFigure((ut+rt)*et,(ut+rt)*tt,!1);return lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Ot.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+rt)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,(ut+rt)*et,ut*tt)),lt}),go.Shape.defineFigureGenerator("LinedDocument",function(Ct,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 ut=new go.PathFigure(.1*et,0,!1);return lt.add(ut),ut.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=.5,ct=new go.PathFigure(.5*et,tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ut+.1)*et,.9*tt,et,(ut+rt)*tt,(ut+rt)*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.7);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ct,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(Ct,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 ut=new go.PathFigure(.1*et,.2*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.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(Ct,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 ut=new go.PathFigure(.2*et,.1*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=1-rt,ct=new go.PathFigure(0,0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var wt=new go.PathFigure(.5*rt*et,rt*tt,!1);return lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),lt}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var wt=new go.PathFigure(et,.5*tt,!1);return lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),lt}),go.Shape.defineFigureGenerator("PaperTape",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ut=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN,ut=Ct?Ct.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),lt}),go.Shape.defineFigureGenerator("Procedure",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure((1-rt)*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt}),go.Shape.defineFigureGenerator("Process",function(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),lt.spot2=go.Spot.BottomRight,lt}),go.Shape.defineFigureGenerator("Sort",function(Ct,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 ut=new go.PathFigure(0,.5*tt,!1);return lt.add(ut),ut.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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(rt*et,0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var ct=new go.PathFigure(rt*et,0,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),ct.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=Ct?Ct.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),lt.spot1=go.Spot.TopLeft,lt}),go.Shape.defineFigureGenerator("AndGate",function(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=new go.PathFigure(0,0,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ut.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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var wt=new go.PathFigure(et,ut*tt,!1);lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,ut*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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=It*.1,ut=.1,ct=.9,wt=.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 Ot=new go.PathFigure((ct+ut)*et,wt*tt,!0);return lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,wt*tt,(ct-rt)*et,(wt+ut)*tt,(ct-ut)*et,(wt+rt)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,wt*tt,(ct+rt)*et,(wt-ut)*tt,(ct+ut)*et,(wt-rt)*tt)),lt.spot1=new go.Spot(0,.25),lt.spot2=new go.Spot(.4,.75),lt}),go.Shape.defineFigureGenerator("NandGate",function(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=It*.4,ct=It*.1,wt=.1,Mt=.9,Ot=.5,Ht=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+rt)*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,.4*et,0)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ut)*tt));var ne=new go.PathFigure((Mt+wt)*et,Ot*tt,!0);return lt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot+wt)*tt,(Mt+wt)*et,(Ot+ct)*tt,(Mt+ct)*et,(Ot+wt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-wt)*et,Ot*tt,(Mt-ct)*et,(Ot+wt)*tt,(Mt-wt)*et,(Ot+ct)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot-wt)*tt,(Mt-wt)*et,(Ot-ct)*tt,(Mt-ct)*et,(Ot-wt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+wt)*et,Ot*tt,(Mt+ct)*et,(Ot-wt)*tt,(Mt+wt)*et,(Ot-ct)*tt)),lt.spot1=new go.Spot(0,.05),lt.spot2=new go.Spot(.55,.95),lt}),go.Shape.defineFigureGenerator("NorGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ut=It*rt,ct=0,wt=.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,(wt+ut)*tt,(ct+ut)*et,(wt+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,(ct+ut)*et,(wt-rt)*tt,.7*et,(wt-ut)*tt)),rt=.1,ut=It*.1,ct=.9,wt=.5;var Ot=new go.PathFigure((ct-rt)*et,wt*tt,!0);return lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,wt*tt,(ct+ut)*et,(wt-rt)*tt,(ct+rt)*et,(wt-ut)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,wt*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt)),lt.spot1=new go.Spot(.2,.25),lt.spot2=new go.Spot(.6,.75),lt}),go.Shape.defineFigureGenerator("OrGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ut=It*rt,ct=0,wt=.5,Mt=new go.PathFigure(0,0,!0);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut+ut)*et,(wt-rt)*tt,.8*et,(wt-ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(wt+ut)*tt,(ct+ut+ut)*et,(wt+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(Ct,et,tt){var lt=new go.Geometry,rt=.5,ut=It*rt,ct=.2,wt=.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 Ot=new go.PathFigure(.8*et,.5*tt,!0);lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(wt-rt)*tt,.7*et,(wt-ut)*tt)),rt=.1,ut=It*.1,ct=.9,wt=.5;var Ht=new go.PathFigure((ct-rt)*et,wt*tt,!0);return lt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,wt*tt,(ct+ut)*et,(wt-rt)*tt,(ct+rt)*et,(wt-ut)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,wt*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt)),lt.spot1=new go.Spot(.4,.25),lt.spot2=new go.Spot(.65,.75),lt}),go.Shape.defineFigureGenerator("XorGate",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ut=It*rt,ct=.2,wt=.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 Ot=new go.PathFigure(.2*et,0,!0);return lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(wt-rt)*tt,.9*et,(wt-ut)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Ot.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(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=It*.1,ut=.1,ct=.1,wt=.5,Mt=new go.PathFigure((ct-rt*.5)*et,tt,!1);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.3,Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.5,Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.7,Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.9,Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt*.5)*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),lt}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ct,et,tt){var lt=new go.Geometry,rt=It*.5,ut=.5,ct=.5,wt=.5,Mt=new go.PathFigure((ct-ut)*et,wt*tt,!1);return lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,wt*tt,(ct+rt)*et,(wt-ut)*tt,(ct+ut)*et,(wt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,wt*tt,(ct-rt)*et,(wt+ut)*tt,(ct-ut)*et,(wt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Move,(ct-ut+.1)*et,wt*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut-.1)*et,wt*tt,ct*et,(wt-ut)*tt,ct*et,(wt+ut)*tt)),lt}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=et,ut=tt;et=et*.38,tt=tt*.6;var ct=It*.8,wt=.8,Mt=0,Ot=.5,Ht=(rt-et)/2,ne=(ut-tt)/2,ae=new go.PathFigure(Mt*et+Ht,(Ot+wt)*tt+ne,!0);lt.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-wt)*et+Ht,Ot*tt+ne,(Mt-ct)*et+Ht,(Ot+wt)*tt+ne,(Mt-wt)*et+Ht,(Ot+ct)*tt+ne)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot-wt)*tt+ne,(Mt-wt)*et+Ht,(Ot-ct)*tt+ne,(Mt-ct)*et+Ht,(Ot-wt)*tt+ne)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-wt+ct*.5)*et+Ht,Ot*tt+ne,Mt*et+Ht,(Ot-wt)*tt+ne,(Mt-wt+ct*.5)*et+Ht,(Ot-ct)*tt+ne)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot+wt)*tt+ne,(Mt-wt+ct*.5)*et+Ht,(Ot+ct)*tt+ne,Mt*et+Ht,(Ot+wt)*tt+ne).close()),ct=It*.4,wt=.4,Mt=.2,Ot=.5;var de=new go.PathFigure(Mt*et+Ht,(Ot+wt)*tt+ne,!0);lt.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-wt)*et+Ht,Ot*tt+ne,(Mt-ct)*et+Ht,(Ot+wt)*tt+ne,(Mt-wt)*et+Ht,(Ot+ct)*tt+ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot-wt)*tt+ne,(Mt-wt)*et+Ht,(Ot-ct)*tt+ne,(Mt-ct)*et+Ht,(Ot-wt)*tt+ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-wt+ct*.5)*et+Ht,Ot*tt+ne,Mt*et+Ht,(Ot-wt)*tt+ne,(Mt-wt+ct*.5)*et+Ht,(Ot-ct)*tt+ne)),de.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot+wt)*tt+ne,(Mt-wt+ct*.5)*et+Ht,(Ot+ct)*tt+ne,Mt*et+Ht,(Ot+wt)*tt+ne).close()),ct=It*.2,wt=.2,Mt=.5,Ot=.5;var be=new go.PathFigure((Mt-wt)*et+Ht,Ot*tt+ne,!0);lt.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot-wt)*tt+ne,(Mt-wt)*et+Ht,(Ot-ct)*tt+ne,(Mt-ct)*et+Ht,(Ot-wt)*tt+ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+wt)*et+Ht,Ot*tt+ne,(Mt+ct)*et+Ht,(Ot-wt)*tt+ne,(Mt+wt)*et+Ht,(Ot-ct)*tt+ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot+wt)*tt+ne,(Mt+wt)*et+Ht,(Ot+ct)*tt+ne,(Mt+ct)*et+Ht,(Ot+wt)*tt+ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-wt)*et+Ht,Ot*tt+ne,(Mt-ct)*et+Ht,(Ot+wt)*tt+ne,(Mt-wt)*et+Ht,(Ot+ct)*tt+ne)),ct=It*.4,wt=.4,Mt=.8,Ot=.5;var qt=new go.PathFigure(Mt*et+Ht,(Ot-wt)*tt+ne,!0);lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+wt)*et+Ht,Ot*tt+ne,(Mt+ct)*et+Ht,(Ot-wt)*tt+ne,(Mt+wt)*et+Ht,(Ot-ct)*tt+ne)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot+wt)*tt+ne,(Mt+wt)*et+Ht,(Ot+ct)*tt+ne,(Mt+ct)*et+Ht,(Ot+wt)*tt+ne)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+wt-ct*.5)*et+Ht,Ot*tt+ne,Mt*et+Ht,(Ot+wt)*tt+ne,(Mt+wt-ct*.5)*et+Ht,(Ot+ct)*tt+ne)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot-wt)*tt+ne,(Mt+wt-ct*.5)*et+Ht,(Ot-ct)*tt+ne,Mt*et+Ht,(Ot-wt)*tt+ne).close()),ct=It*.8,wt=.8,Mt=1,Ot=.5;var ze=new go.PathFigure(Mt*et+Ht,(Ot-wt)*tt+ne,!0);return lt.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+wt)*et+Ht,Ot*tt+ne,(Mt+ct)*et+Ht,(Ot-wt)*tt+ne,(Mt+wt)*et+Ht,(Ot-ct)*tt+ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot+wt)*tt+ne,(Mt+wt)*et+Ht,(Ot+ct)*tt+ne,(Mt+ct)*et+Ht,(Ot+wt)*tt+ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+wt-ct*.5)*et+Ht,Ot*tt+ne,Mt*et+Ht,(Ot+wt)*tt+ne,(Mt+wt-ct*.5)*et+Ht,(Ot+ct)*tt+ne)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et+Ht,(Ot-wt)*tt+ne,(Mt+wt-ct*.5)*et+Ht,(Ot-ct)*tt+ne,Mt*et+Ht,(Ot-wt)*tt+ne).close()),lt}),go.Shape.defineFigureGenerator("Email",function(Ct,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 ut=new go.PathFigure(0,0,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Ethernet",function(Ct,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 ut=new go.PathFigure(.1*et,tt,!0,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ct=new go.PathFigure(.6*et,tt,!0,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var wt=new go.PathFigure(0,.5*tt,!1);return lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Power",function(Ct,et,tt){var lt=new go.Geometry,rt=It*.4,ut=.4,ct=.5,wt=.5,Mt=Ft(),Ot=Ft(),Ht=Ft(),ne=Ft();Be(ct,wt-ut,ct+rt,wt-ut,ct+ut,wt-rt,ct+ut,wt,.5,Mt,Mt,Ot,Ht,ne);var ae=bt(Ot.x,Ot.y),de=new go.PathFigure(Ot.x*et,Ot.y*tt,!0);lt.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,wt*tt,Ht.x*et,Ht.y*tt,ne.x*et,ne.y*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,wt*tt,(ct-rt)*et,(wt+ut)*tt,(ct-ut)*et,(wt+rt)*tt)),Be(ct-ut,wt,ct-ut,wt-rt,ct-rt,wt-ut,ct,wt-ut,.5,Ht,ne,Ot,Mt,Mt),de.add(new go.PathSegment(go.PathSegment.Bezier,Ot.x*et,Ot.y*tt,Ht.x*et,Ht.y*tt,ne.x*et,ne.y*tt)),rt=It*.3,ut=.3,Be(ct-ut,wt,ct-ut,wt-rt,ct-rt,wt-ut,ct,wt-ut,.5,Ht,ne,Ot,Mt,Mt),de.add(new go.PathSegment(go.PathSegment.Line,Ot.x*et,Ot.y*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,wt*tt,ne.x*et,ne.y*tt,Ht.x*et,Ht.y*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+ut)*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,wt*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Be(ct,wt-ut,ct+rt,wt-ut,ct+ut,wt-rt,ct+ut,wt,.5,Mt,Mt,Ot,Ht,ne),de.add(new go.PathSegment(go.PathSegment.Bezier,Ot.x*et,Ot.y*tt,ne.x*et,ne.y*tt,Ht.x*et,Ht.y*tt).close());var de=new go.PathFigure(.45*et,0,!0);return lt.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),de.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),ce(Mt),ce(Ot),ce(Ht),ce(ne),ce(ae),lt.spot1=new go.Spot(.25,.45),lt.spot2=new go.Spot(.75,.8),lt}),go.Shape.defineFigureGenerator("Fallout",function(Ct,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 ut(ct,wt,Mt){ct.add(new go.PathSegment(go.PathSegment.Move,(.3+wt)*et,(.8+Mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.5+wt)*et,(.5+Mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.1+wt)*et,(.5+Mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.3+wt)*et,(.8+Mt)*tt).close())}return ut(rt,0,0),ut(rt,.4,0),ut(rt,.2,-.3),lt}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=.5,ut=0,ct=0,wt=rt*It,Mt=.4*Math.SQRT2/2+.5,Ot=.5-.5*Math.SQRT2/2,Ht=1,ne=.5,ae=.5,de=0,be=new go.PathFigure(Mt*et,(1-Ot)*tt,!1);return lt.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,ne*tt,Ht*et,.7*tt,Ht*et,ne*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ut)*et,(de+ut)*tt,(.5+rt+ut)*et,(.5-wt+ut)*tt,(.5+wt+ut)*et,(.5-rt+ut)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-wt+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-wt+ct)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-rt+ut)*et,(.5+wt+ct)*tt,(.5-wt+ut)*et,.9*tt)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),be.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ut=new go.PathFigure(et,tt,!1);lt.add(ut);var ct=new go.PathFigure(0,.5*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),lt}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ct,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(Ct,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(Ct,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 ut=new go.PathFigure(.45*et,.73*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),lt}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ut=new go.PathFigure(.335*et,(1-.555)*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var ct=.5-.285,wt=.5,Mt=ct,Ot=Math.PI/4,Ht=4*(1-Math.cos(Ot))/(3*Math.sin(Ot)),ne=Ht*.5,ae=ct,de=ct,be=Ht*ae,qt=Ht*de;ut.add(new go.PathSegment(go.PathSegment.Bezier,(wt-ae)*et,Mt*tt,(wt-(be+ae)/2)*et,(Mt+(de+qt)/2)*tt,(wt-ae)*et,(Mt+qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Mt-de)*tt,(wt-ae)*et,(Mt-qt)*tt,(wt-be)*et,(Mt-de)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(wt+ae)*et,Mt*tt,(wt+be)*et,(Mt-de)*tt,(wt+ae)*et,(Mt-qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(wt+ae)*et,(Mt+qt)*tt,(wt+(be+ae)/2)*et,(Mt+(de+qt)/2)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var ze=new go.PathFigure(.2*et,tt,!1);lt.add(ze),ze.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(Ct,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 ut=new go.PathFigure(.2*et,.2*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(0,0,!1);lt.add(rt);var ut=new go.PathFigure(et,tt,!1);lt.add(ut);var ct=new go.PathFigure(.1*et,tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Caution",function(Ct,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 ut=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ut)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ut*et,ut*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(Ct,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 ut=new go.PathFigure(.475*et,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var ct=new go.PathFigure(.675*et,.575*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),lt}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ut=It*.5,ct=new go.PathFigure(et,rt*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ut)*tt,(rt+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ut)*et,tt,0,(rt+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ut)*tt,(rt-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ut)*et,0,et,(rt-ut)*tt));var wt=new go.PathFigure(rt*et,0,!1);return lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),wt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),lt}),go.Shape.defineFigureGenerator("Package",function(Ct,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 ut=new go.PathFigure(0,.15*tt,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ut.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(Ct,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 ut=new go.PathFigure(0,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(0,.5*tt,!1);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),lt}),go.Shape.defineFigureGenerator("Component",function(Ct,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 ut=new go.PathFigure(0,.2*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ct=new go.PathFigure(0,.6*tt,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),lt}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ct,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 ut=new go.PathFigure(.15*et,.6*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),lt}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ct,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(Ct,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(Ct,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(Ct,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 ut=new go.PathFigure(et,.8*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var ct=.1,wt=It*.1,Mt=.2,Ot=.9,Ht=new go.PathFigure((Mt-ct)*et,Ot*tt,!0);lt.add(Ht),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot-ct)*tt,(Mt-ct)*et,(Ot-wt)*tt,(Mt-wt)*et,(Ot-ct)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+ct)*et,Ot*tt,(Mt+wt)*et,(Ot-ct)*tt,(Mt+ct)*et,(Ot-wt)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot+ct)*tt,(Mt+ct)*et,(Ot+wt)*tt,(Mt+wt)*et,(Ot+ct)*tt)),Ht.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ct)*et,Ot*tt,(Mt-wt)*et,(Ot+ct)*tt,(Mt-ct)*et,(Ot+wt)*tt).close()),ct=.1,wt=It*.1,Mt=.8,Ot=.9;var ne=new go.PathFigure((Mt-ct)*et,Ot*tt,!0);return lt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot-ct)*tt,(Mt-ct)*et,(Ot-wt)*tt,(Mt-wt)*et,(Ot-ct)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Mt+ct)*et,Ot*tt,(Mt+wt)*et,(Ot-ct)*tt,(Mt+ct)*et,(Ot-wt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Mt*et,(Ot+ct)*tt,(Mt+ct)*et,(Ot+wt)*tt,(Mt+wt)*et,(Ot+ct)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Mt-ct)*et,Ot*tt,(Mt-wt)*et,(Ot+ct)*tt,(Mt-ct)*et,(Ot+wt)*tt).close()),lt}),go.Shape.defineFigureGenerator("KanbanPost",function(Ct,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(Ct,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 ut=new go.PathFigure(0,.5*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ct=new go.PathFigure(.5*et,.8*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var wt=new go.PathFigure(.5*et,.7*tt,!1);lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var Mt=.1,Ot=It*.1,Ht=.1,ne=.9,ae=new go.PathFigure((Ht-Mt)*et,ne*tt,!0);lt.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,(ne-Mt)*tt,(Ht-Mt)*et,(ne-Ot)*tt,(Ht-Ot)*et,(ne-Mt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+Mt)*et,ne*tt,(Ht+Ot)*et,(ne-Mt)*tt,(Ht+Mt)*et,(ne-Ot)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,(ne+Mt)*tt,(Ht+Mt)*et,(ne+Ot)*tt,(Ht+Ot)*et,(ne+Mt)*tt)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ht-Mt)*et,ne*tt,(Ht-Ot)*et,(ne+Mt)*tt,(Ht-Mt)*et,(ne+Ot)*tt)),Mt=.1,Ot=It*.1,Ht=.4,ne=.9;var de=new go.PathFigure((Ht-Mt)*et,ne*tt,!0);return lt.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,(ne-Mt)*tt,(Ht-Mt)*et,(ne-Ot)*tt,(Ht-Ot)*et,(ne-Mt)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Ht+Mt)*et,ne*tt,(Ht+Ot)*et,(ne-Mt)*tt,(Ht+Mt)*et,(ne-Ot)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,Ht*et,(ne+Mt)*tt,(Ht+Mt)*et,(ne+Ot)*tt,(Ht+Ot)*et,(ne+Mt)*tt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Ht-Mt)*et,ne*tt,(Ht-Ot)*et,(ne+Mt)*tt,(Ht-Mt)*et,(ne+Ot)*tt)),lt}),go.Shape.defineFigureGenerator("RailShipment",function(Ct,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 ut=new go.PathFigure(.45*et,.7*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var ct=new go.PathFigure(.55*et,.4*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var Ht=.05,ne=It*.05,ae=.175,de=.95,wt=new go.PathFigure((ae-Ht)*et,de*tt,!0);lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,ae*et,(de-Ht)*tt,(ae-Ht)*et,(de-ne)*tt,(ae-ne)*et,(de-Ht)*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(ae+Ht)*et,de*tt,(ae+ne)*et,(de-Ht)*tt,(ae+Ht)*et,(de-ne)*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ae*et,(de+Ht)*tt,(ae+Ht)*et,(de+ne)*tt,(ae+ne)*et,(de+Ht)*tt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(ae-Ht)*et,de*tt,(ae-ne)*et,(de+Ht)*tt,(ae-Ht)*et,(de+ne)*tt));var Ht=.05,ne=It*.05,ae=.375,de=.95,Mt=new go.PathFigure((ae-Ht)*et,de*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ae*et,(de-Ht)*tt,(ae-Ht)*et,(de-ne)*tt,(ae-ne)*et,(de-Ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ae+Ht)*et,de*tt,(ae+ne)*et,(de-Ht)*tt,(ae+Ht)*et,(de-ne)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ae*et,(de+Ht)*tt,(ae+Ht)*et,(de+ne)*tt,(ae+ne)*et,(de+Ht)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ae-Ht)*et,de*tt,(ae-ne)*et,(de+Ht)*tt,(ae-Ht)*et,(de+ne)*tt));var Ht=.05,ne=It*.05,ae=.625,de=.95,Ot=new go.PathFigure((ae-Ht)*et,de*tt,!0);lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ae*et,(de-Ht)*tt,(ae-Ht)*et,(de-ne)*tt,(ae-ne)*et,(de-Ht)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ae+Ht)*et,de*tt,(ae+ne)*et,(de-Ht)*tt,(ae+Ht)*et,(de-ne)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ae*et,(de+Ht)*tt,(ae+Ht)*et,(de+ne)*tt,(ae+ne)*et,(de+Ht)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ae-Ht)*et,de*tt,(ae-ne)*et,(de+Ht)*tt,(ae-Ht)*et,(de+ne)*tt));var Ht=.05,ne=It*.05,ae=.825,de=.95,be=new go.PathFigure((ae-Ht)*et,de*tt,!0);lt.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ae*et,(de-Ht)*tt,(ae-Ht)*et,(de-ne)*tt,(ae-ne)*et,(de-Ht)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ae+Ht)*et,de*tt,(ae+ne)*et,(de-Ht)*tt,(ae+Ht)*et,(de-ne)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,ae*et,(de+Ht)*tt,(ae+Ht)*et,(de+ne)*tt,(ae+ne)*et,(de+Ht)*tt)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ae-Ht)*et,de*tt,(ae-ne)*et,(de+Ht)*tt,(ae-Ht)*et,(de+ne)*tt).close());var qt=new go.PathFigure(0,tt,!1);return lt.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),lt}),go.Shape.defineFigureGenerator("Warehouse",function(Ct,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 ut=new go.PathFigure(0,.2*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(.15*et,tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var wt=.05,Mt=It*.05,Ot=.35,Ht=.775,ne=new go.PathFigure((Ot-wt)*et,Ht*tt,!0);return lt.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(Ht-wt)*tt,(Ot-wt)*et,(Ht-Mt)*tt,(Ot-Mt)*et,(Ht-wt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+wt)*et,Ht*tt,(Ot+Mt)*et,(Ht-wt)*tt,(Ot+wt)*et,(Ht-Mt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(Ht+wt)*tt,(Ot+wt)*et,(Ht+Mt)*tt,(Ot+Mt)*et,(Ht+wt)*tt)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-wt)*et,Ht*tt,(Ot-Mt)*et,(Ht+wt)*tt,(Ot-wt)*et,(Ht+Mt)*tt).close()),lt}),go.Shape.defineFigureGenerator("ControlCenter",function(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=.3,ut=It*.3,ct=.5,wt=.7,Mt=new go.PathFigure((ct-rt)*et,wt*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,wt*tt,(ct+ut)*et,(wt-rt)*tt,(ct+rt)*et,(wt-ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,wt*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt));var Ot=new go.PathFigure(0,.7*tt,!1);return lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),lt}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ct,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(Ct,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(Ct,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 ut=new go.PathFigure(0,.6*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),lt}),go.Shape.defineFigureGenerator("Delete",function(Ct,et,tt){var lt=new go.Geometry,rt=.5,ut=It*.5,ct=.5,wt=.5,Mt=new go.PathFigure((ct-rt)*et,wt*tt,!0);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,wt*tt,(ct+ut)*et,(wt-rt)*tt,(ct+rt)*et,(wt-ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,wt*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt));var Ot=new go.PathFigure(.15*et,.5*tt,!1);return lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),lt}),go.Shape.defineFigureGenerator("Flag",function(Ct,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(Ct,et,tt){var lt=new go.Geometry,rt=.5,ut=It*.5,ct=.5,wt=.5,Mt=new go.PathFigure((ct-rt)*et,wt*tt,!1);lt.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,wt*tt,(ct+ut)*et,(wt-rt)*tt,(ct+rt)*et,(wt-ut)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,wt*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt).close()),rt=.05,ut=It*.05,ct=.5,wt=.8;var Ot=new go.PathFigure((ct-rt)*et,wt*tt,!1);return lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt-rt)*tt,(ct-rt)*et,(wt-ut)*tt,(ct-ut)*et,(wt-rt)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,wt*tt,(ct+ut)*et,(wt-rt)*tt,(ct+rt)*et,(wt-ut)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(wt+rt)*tt,(ct+rt)*et,(wt+ut)*tt,(ct+ut)*et,(wt+rt)*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,wt*tt,(ct-ut)*et,(wt+rt)*tt,(ct-rt)*et,(wt+ut)*tt).close()),Ot.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Ot.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(Ct,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(Ct,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 ut=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),lt}),go.Shape.defineFigureGenerator("Unlocked",function(Ct,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 ut=new go.PathFigure(.2*et,.5*tt,!1);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),lt}),go.Shape.defineFigureGenerator("Gear",function(Ct,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(Ct,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(Ct,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(Ct,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 ut=new go.PathFigure(0,tt*.6,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),lt}),go.Shape.defineFigureGenerator("Pencil",function(Ct,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(Ct,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 ut=new go.PathFigure(.126*et,.85*tt,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var ct=new go.PathFigure(.402*et,.85*tt,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var wt=new go.PathFigure(.678*et,.85*tt,!1);lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),wt.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(Ct,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(Ct,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 ut=new go.PathFigure(et*.204,tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var ct=new go.PathFigure(et*.408,tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var wt=new go.PathFigure(et*.612,tt,!0);lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),wt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),wt.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(Ct,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 ut=new go.PathFigure(et*.055,.07*tt,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var ct=new go.PathFigure(et*.055,.13*tt,!0);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var wt=new go.PathFigure(et*.055,.18*tt,!0);lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),wt.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(Ct,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(Ct,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(Ct,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 ut=new go.PathFigure(0,0,!1);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ct=new go.PathFigure(et*.11,tt*.1,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var wt=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),wt.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(Ct,et,tt){var lt=new go.Geometry,rt=8,ut=rt*It,ct=new go.PathFigure(rt,0,!1);lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ut,ut,0).close());var wt=new go.PathFigure(et*.83,0,!1);lt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),wt.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 Ot=new go.PathFigure(et*.78,tt*.05,!1);return lt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Ot.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Ot.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ct,et,tt){var lt=Ct?Ct.parameter1:NaN;(isNaN(lt)||lt<0)&&(lt=15),lt=Math.min(lt,et/3),lt=Math.min(lt,tt/3);var rt=lt*It,ut=tt*.8,ct=new go.Geometry,wt=new go.PathFigure(lt,0,!0);return ct.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et-lt,0)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,lt,et-rt,0,et,rt)),wt.add(new go.PathSegment(go.PathSegment.Line,et,ut-lt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-lt,ut,et,ut-rt,et-rt,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),wt.add(new go.PathSegment(go.PathSegment.Line,lt,ut)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-lt,rt,ut,0,ut-rt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,lt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,lt,0,0,rt,rt,0).close()),rt>1?(ct.spot1=new go.Spot(0,0,rt,rt),ct.spot2=new go.Spot(1,.8,-rt,-rt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.8)),ct}),go.Shape.defineFigureGenerator("Repeat",function(Ct,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 ut=new go.PathFigure(et*1,tt*.55,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),lt}),go.Shape.defineFigureGenerator("Windows",function(Ct,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(Ct,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 ut=new go.PathFigure(et*.1,tt*.2,!0);lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var ct=new go.PathFigure(et*.28,tt*.37,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),lt}),go.Shape.defineFigureGenerator("Beaker",function(Ct,et,tt){var lt=new go.Geometry,rt=15,ut=rt*It,ct=new go.PathFigure(et*.62,tt*.475,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ut>1?(lt.spot1=new go.Spot(0,0,ut,ut),lt.spot2=new go.Spot(1,1,-ut,-ut)):(lt.spot1=go.Spot.TopLeft,lt.spot2=go.Spot.BottomRight),lt}),go.Shape.defineFigureGenerator("Download",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ut=.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-ut))),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-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),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-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),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-ut)).close());var ct=new go.PathFigure(et*.4,tt*0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),lt}),go.Shape.defineFigureGenerator("Bin",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ut=.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-ut))),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-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),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-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),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-ut)).close()),lt}),go.Shape.defineFigureGenerator("Upload",function(Ct,et,tt){var lt=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);lt.add(rt);var ut=.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-ut))),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-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),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-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),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-ut)).close());var ct=new go.PathFigure(et*.5,tt*0,!0);return lt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),lt}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ct,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(Ct,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 ut=new go.PathFigure(et*.235,tt*.28,!0);return lt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),lt}),go.Shape.defineFigureGenerator("4Arrows",function(Ct,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")},80727: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 ui={},wn="5.0",bt={},Ft=null,ce=!1,re=!1,Be=null,ee=!1,Yt=null,It=null,jt=0;jt<arguments.length;jt++){var Xt=arguments[jt];if(Xt!==null)switch(typeof Xt){case"number":wn=Xt.toFixed(1);break;case"string":Xt.match(new RegExp("^[0-9]\\.[0-9]+$"))?wn=Xt:Be=Xt;break;case"object":typeof Xt.is3D!="undefined"?Ft=Xt:bt=Xt;break;case"boolean":ce=Xt,re=!0;break}}Ft===null&&(Ft={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&&!re&&(ce=!0)),Be!==null&&bt.id===void 0&&(bt.id=Be);var Pt="",oe="",zt=!1,Jt=null,Ct=null,et=null,tt=!1,lt=null,rt=null,ut=null,ct=null,wt=null;bt.height!==void 0&&(bt.height=Math.round(bt.height)),bt.width!==void 0&&(bt.width=Math.round(bt.width));var Mt=function(Ye){return parseFloat(Ye)>4?parseFloat(Ye):5};ui.setHTML5Codebase=function(Ye,Mn){It=Ye,Se(Ye,Mn)},ui.setJavaCodebase=ui.setJavaCodebaseVersion=ui.isCompiledInstalled=ui.setPreCompiledScriptPath=ui.setPreCompiledResourcePath=function(){},ui.setHTML5CodebaseVersion=function(Ye,Mn){var Wn=parseFloat(Ye);if(Wn!==NaN&&Wn<5){console.log("The GeoGebra HTML5 codebase version "+Wn+" is deprecated. Using version latest instead.");return}Yt=Ye,ie(Ye,Mn)},ui.getHTML5CodebaseVersion=function(){return Ct},ui.getParameters=function(){return bt},ui.setFontsCSSURL=function(Ye){ct=Ye},ui.setGiacJSURL=function(Ye){},ui.setJNLPFile=function(Ye){Pt=Ye},ui.setJNLPBaseDir=function(Ye){},ui.inject=function(){function Ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Mn="auto",Wn=bt.id,fi,Hn=!1,xi=0;xi<arguments.length;xi++){var nn=arguments[xi];typeof nn=="string"?(nn=nn.toLowerCase(),nn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Mn=nn:Wn=arguments[xi]):typeof nn=="boolean"?Hn=nn:nn instanceof HTMLElement&&(fi=nn)}Fi();function Fi(){if(!ee){setTimeout(Fi,200);return}Mn=Re(Mn);var ki=fi||document.getElementById(Wn);if(!ki){console.log("possibly bug on ajax loading? ");return}if(ui.removeExistingApplet(ki,!1),bt.width===void 0&&ki.clientWidth&&(bt.width=ki.clientWidth),bt.height===void 0&&ki.clientHeight&&(bt.height=ki.clientHeight),!(bt.width&&bt.height)&&Mn==="html5"&&(delete bt.width,delete bt.height),Jt=Mn,Mn==="screenshot")Vt(ki,bt);else{var Nt=!1;bt.hasOwnProperty("playButton")&&bt.playButton||bt.hasOwnProperty("clickToLoad")&&bt.clickToLoad?Nt=!0:bt.hasOwnProperty("playButtonAutoDecide")&&bt.playButtonAutoDecide&&(Nt=(!Ot()||Ye())&&Ht()),Nt?(Jt="screenshot",_e(ki,bt,Hn,Mn)):ze(ki,bt,Hn)}}};function Ot(){try{return window.self!==window.top}catch(Ye){return!0}}function Ht(){return bt.hasOwnProperty("screenshotGenerator")&&bt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ui.getViews=function(){return Ft},ui.isJavaInstalled=function(){return!1};var ne=function(Ye){var Mn=function(xi){var nn=JSON.parse(xi),Fi=function(Dt){return Dt.type=="G"||Dt.type=="E"},ki=nn.elements?nn.elements.filter(Fi)[0]:nn;if(!ki||!ki.url){Wn();return}bt.fileName=ki.url,ae(ki.settings||{}),Ft.is3D=!0;var Nt="https://www.geogebra.org/images/";ui.setPreviewImage(lt||ki.previewUrl,Nt+"GeoGebra_loading.png",Nt+"applet_play.png"),Ye()},Wn=function(){bt.onError&&bt.onError(),Bn("Error: Fetching material (id "+bt.material_id+") failed.",bt)},fi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Hn="/materials/"+bt.material_id+"?scope=basic";de("https://"+fi+"/api/proxy.php?path="+encodeURIComponent(Hn),Mn,Wn)};function ae(Ye){var Mn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Wn){Ye[Wn]=!!Ye[Wn]}),Mn.forEach(function(Wn){bt[Wn]===void 0&&Ye[Wn]!==void 0&&(bt[Wn]=Ye[Wn])}),bt.showToolBarHelp===void 0&&(bt.showToolBarHelp=bt.showToolBar)}function de(Ye,Mn,Wn){var fi=new XMLHttpRequest;fi.open("GET",Ye),fi.onload=function(){Mn(fi.responseText)},fi.onerror=Wn,fi.send()}ui.isHTML5Installed=function(){return!0},ui.getLoadedAppletType=function(){return Jt},ui.setPreviewImage=function(Ye,Mn,Wn){lt=Ye,rt=Mn,ut=Wn},ui.removeExistingApplet=function(Ye,Mn){var Wn;typeof Ye=="string"&&(Ye=document.getElementById(Ye)),Jt=null;var fi=null;for(Wn=0;Wn<Ye.childNodes.length;Wn++){var Hn=Ye.childNodes[Wn],xi=Hn.className;xi==="applet_screenshot"?Mn?(Hn.style.display="block",Jt="screenshot"):Hn.style.display="none":xi!=="applet_scaler prerender"&&(Ye.removeChild(Hn),fi=xi&&xi.indexOf("appletParameters")!=-1?Hn.id:null,Wn--)}var nn=bt.id!==void 0?bt.id:fi,Fi=window[nn];Fi&&typeof Fi.getBase64=="function"&&(Fi.remove(),window[nn]=null)},ui.refreshHitPoints=function(){if(Mt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ye=ui.getAppletObject();return Ye&&typeof Ye.recalculateEnvironments=="function"?(Ye.recalculateEnvironments(),!0):!1},ui.startAnimation=function(){var Ye=ui.getAppletObject();return Ye&&typeof Ye.startAnimation=="function"?(Ye.startAnimation(),!0):!1},ui.stopAnimation=function(){var Ye=ui.getAppletObject();return Ye&&typeof Ye.stopAnimation=="function"?(Ye.stopAnimation(),!0):!1},ui.getAppletObject=function(){var Ye=bt.id!==void 0?bt.id:"ggbApplet";return window[Ye]},ui.resize=function(){};var be=function(Ye,Mn,Wn){var fi=document.createElement("param");fi.setAttribute("name",Mn),fi.setAttribute("value",Wn),Ye.appendChild(fi)},qt=function(Ye){return Ye&&Ye!=="false"},ze=function(Ye,Mn,Wn){Mt(Ct)<=4.2&&(Wn=!0);var fi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ct||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(fi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Hn=document.createElement("div");Hn.classList.add("appletParameters","notranslate");var xi=Mn.width,nn=Mn.height;if(Mn.disableAutoScale=Mn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Mn.disableAutoScale,Mn.width!==void 0)if(Mt(Ct)<=4.4)qt(Mn.showToolBar)&&(Mn.height-=7),qt(Mn.showAlgebraInput)&&(Mn.height-=37),Mn.width<605&&qt(Mn.showToolBar)&&(Mn.width=605,xi=605);else{var Fi=100;(qt(Mn.showToolBar)||qt(Mn.showMenuBar))&&(Mn.hasOwnProperty("customToolBar")&&(Mn.customToolbar=Mn.customToolBar),Fi=qt(Mn.showMenuBar)?245:155),xi<Fi&&(Mn.width=Fi,xi=Fi)}Hn.style.border="none",Hn.style.display="inline-block";for(var ki in Mn)Mn.hasOwnProperty(ki)&&ki!=="appletOnLoad"&&Hn.setAttribute("data-param-"+ki,Mn[ki]);ct&&Hn.setAttribute("data-param-fontscssurl",ct),ui.resize=function(){GGBAppletUtils.responsiveResize(Ye,Mn)},window.addEventListener("resize",function(Ie){ui.resize()});var Nt=typeof Mn.appletOnLoad=="function"?Mn.appletOnLoad:function(){};if(!Wn&&Mn.width!==void 0){Mn.hasOwnProperty("showSplash")||Hn.setAttribute("data-param-showSplash","false");var Dt=Ye.querySelector(".applet_scaler.prerender"),mt=Dt!==null;if(mt)var ft=Dt.querySelector(".ggb_preview");else{var ft=We(xi,nn,Mn.borderColor,!1);Dt=document.createElement("div"),Dt.className="applet_scaler",Dt.style.position="relative",Dt.style.display="block",Dt.style.width=xi+"px",Dt.style.height=nn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Dt,"66%"),Mt(Ct)>=5?(Mn.appletOnLoad=function(Ie){var rn=Ye.querySelector(".ggb_preview");rn&&rn.parentNode.removeChild(rn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Dt),window.GGBT_wsf_view&&$(window).trigger("resize"),Nt(Ie)},mt||Dt.appendChild(ft)):Hn.appendChild(ft),Dt.appendChild(Hn),mt||Ye.appendChild(Dt),setTimeout(function(){ui.resize()},1)}else{var pt=document.createElement("div");pt.className="applet_scaler",pt.style.position="relative",pt.style.display="block",pt.appendChild(Hn),Ye.appendChild(pt),Mn.appletOnLoad=function(Ie){ui.resize(),Nt(Ie)}}function At(Ie,rn){rn&&typeof rn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ie,rn.appletOnLoad):renderGGBElement(Ie),Bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",rn)}function ue(Ie,rn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ie,params:rn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Gn){At(Gn.article,Gn.params)}),html5AppletsToProcess=null)},Mt(Ct)<5&&(Ie.className+=" geogebraweb")):At(Ie,rn)}if(fi){scriptLoadStarted=!0;for(var we=0;we<Hn.childNodes.length;we++){var le=Hn.childNodes[we].tagName;le==="TABLE"&&(Hn.removeChild(Hn.childNodes[we]),we--)}if(ggbHTML5LoadedScript!==null){var me=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');me!=null&&me.parentNode.removeChild(me)}var Ue=document.createElement("script"),ke=function(){ue(Hn,Mn)};Ue.src=oe+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=Ct,ggbHTML5LoadedScript=Ue.src,Bn("GeoGebra HTML5 codebase loaded: '"+oe+"'.",Mn),!It&&(!Yt||Yt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ke()):oe.requirejs?__webpack_require__.e(4184).then(function(){var Ie=[__webpack_require__(74620)];ke.apply(null,Ie)}.bind(this)).catch(__webpack_require__.oe):(Ue.onload=ke,Ye.appendChild(Ue))}else ue(Hn,Mn);Mn.height=nn,Mn.width=xi},Vt=function(Ye,Mn,Wn){var fi=We(Mn.width,Mn.height,Mn.borderColor,Wn),Hn=document.createElement("div");Hn.style.position="relative",Hn.style.display="block",Hn.style.width=Mn.width+"px",Hn.style.height=Mn.height+"px",Hn.className="applet_screenshot applet_scaler"+(Wn?" applet_screenshot_play":""),Hn.appendChild(fi);var xi=GGBAppletUtils.getScale(Mn,Ye,Wn);Wn?(Ye.appendChild(Ne()),window.GGBT_wsf_view||(Ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Hn,"66%"),Ye.appendChild(Hn),xi!==1&&!isNaN(xi)&&(GGBAppletUtils.scaleElement(Hn,xi),Hn.style.width=Mn.width+"px",Hn.style.height=Mn.height+"px",Hn.parentNode.style.width=Mn.width*xi+"px",Hn.parentNode.style.height=Mn.height*xi+"px"),ui.resize=function(){Ge(Ye,fi,Hn,Wn)},window.addEventListener("resize",function(nn){ui.resize()}),ui.resize()};function Ge(Ye,Mn,Wn,fi){if(Ye.contains(Mn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ye)}var Hn=GGBAppletUtils.getScale(bt,Ye,fi);Wn.parentNode!==null&&(!isNaN(Hn)&&Hn!==1?(GGBAppletUtils.scaleElement(Wn,Hn),Wn.parentNode.style.width=bt.width*Hn+"px",Wn.parentNode.style.height=bt.height*Hn+"px"):(GGBAppletUtils.scaleElement(Wn,1),Wn.parentNode.style.width=bt.width+"px",Wn.parentNode.style.height=bt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ui.onExitFullscreen=function(Ye,Mn){Mn.appendChild(Ye)};var _e=function(Ye,Mn,Wn,fi){Vt(Ye,Mn,!0);for(var Hn=function(){var Fi=[];for(nn=0;nn<Ye.childNodes.length;nn++)Fi.push(Ye.childNodes[nn]);if(window.GGBT_wsf_view){var ki=window.GGBT_wsf_view.renderFullScreen(Ye,Mn.id),Nt=document.getElementById("fullscreencontainer"),Dt=jQuery(Ye).find(".fullscreencontent");Dt.length>0?(ki.remove(),Dt.attr("id","fullscreencontent").show(),jQuery(Nt).append(Dt),window.dispatchEvent(new Event("resize"))):ze(ki,Mn,!1),window.GGBT_wsf_view.launchFullScreen(Nt)}else Jt=fi,ze(Ye,Mn,!1);if(!window.GGBT_wsf_view)for(nn=0;nn<Fi.length;nn++)Ye.removeChild(Fi[nn])},xi=Ye.getElementsByClassName("ggb_preview_play"),nn=0;nn<xi.length;nn++)xi[nn].addEventListener("click",Hn,!1),xi[nn].addEventListener("ontouchstart",Hn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ye),Ht()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ne=function(){var Ye=document.createElement("div");if(Ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Mn='.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");}',Wn=document.createElement("style");Wn.styleSheet?Wn.styleSheet.cssText=Mn:Wn.appendChild(document.createTextNode(Mn)),document.getElementsByTagName("head")[0].appendChild(Wn)}return Ye},We=function(Ye,Mn,Wn,fi){var Hn=document.createElement("div");Hn.className="ggb_preview",Hn.style.position="absolute",Hn.style.zIndex="90",Hn.style.width=Ye-2+"px",Hn.style.height=Mn-2+"px",Hn.style.top="0px",Hn.style.left="0px",Hn.style.overflow="hidden",Hn.style.backgroundColor="white";var xi="lightgrey";Wn!==void 0&&(Wn==="none"?xi="transparent":xi=Wn),Hn.style.border="1px solid "+xi;var nn=document.createElement("img");if(nn.style.position="relative",nn.style.zIndex="1000",nn.style.top="-1px",nn.style.left="-1px",lt!==null&&nn.setAttribute("src",lt),nn.style.opacity=.7,rt!==null){var Fi,ki,Nt;if(!fi){Fi=document.createElement("img"),Fi.style.position="absolute",Fi.style.zIndex="1001",Fi.style.opacity=1,nn.style.opacity=.3,ki=360,ki>Ye/4*3&&(ki=Ye/4*3),Nt=ki/5.8,Fi.setAttribute("src",rt),Fi.setAttribute("width",ki),Fi.setAttribute("height",Nt);var Dt=(Ye-ki)/2,mt=(Mn-Nt)/2;Fi.style.left=Dt+"px",Fi.style.top=mt+"px",Hn.appendChild(Fi)}}return Hn.appendChild(nn),Hn},Re=function(Ye){return Ye=Ye.toLowerCase(),Ye==="html5"||Ye==="screenshot"?Ye:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ie=function(Ye,Mn){if(Ct=Ye,Mn){Se(Ct,!0);return}var Wn=!ce;if(Wn){var fi=Mt(Ct);!isNaN(fi)&&fi<4.4&&(Wn=!1)}var Hn,xi;window.location.protocol.substr(0,4)==="http"?Hn=window.location.protocol:Hn="http:";var nn=Ct.indexOf("//");nn>0?xi=Ct:nn===0?xi=Hn+Ct:xi="https://www.geogebra.org/apps/5.2.814.0/";for(var Fi in ve)if(Ct.slice(ve[Fi].length*-1)===ve[Fi]||Ct.slice((ve[Fi].length+1)*-1)===ve[Fi]+"/"){Se(xi,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Wn&&!Ft.is3D&&!Ft.AV&&!Ft.SV&&!Ft.CV&&!Ft.EV2&&!Ft.CP&&!Ft.PC&&!Ft.DA&&!Ft.FI&&!Ft.PV&&!qt(bt.showToolBar)&&!qt(bt.showMenuBar)&&!qt(bt.showAlgebraInput)&&!qt(bt.enableRightClick)&&(!bt.appName||bt.appName=="classic")?xi+="webSimple/":xi+="web3d/",Se(xi,!1)},Se=function(Ye,Mn){if(Ye.requirejs){oe=Ye;return}Ye.slice(-1)!=="/"&&(Ye+="/"),oe=Ye,Mn===null&&(Mn=Ye.indexOf("http")===-1),zt=Mn,et="web.nocache.js",tt=!1;var Wn=oe.split("/");Wn.length>1&&(!Mn&&Wn[Wn.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):ve.indexOf(Wn[Wn.length-2])>=0&&(et=Wn[Wn.length-2]+".nocache.js")),Wn=Ye.split("/"),Ct=Wn[Wn.length-3],Ct.substr(0,4)==="test"?Ct=Ct.substr(4,1)+"."+Ct.substr(5,1):(Ct.substr(0,3)==="war"||Ct.substr(0,4)==="beta")&&(Ct="5.0");var fi=parseFloat(Ct);fi!==NaN&&fi<5&&Ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+fi+" is deprecated. Using version latest instead."),ie("5.0",Mn))},Bn=function(Ye,Mn){window.console&&window.console.log&&(!Mn||typeof Mn.showLogging=="undefined"||Mn.showLogging&&Mn.showLogging!=="false")&&console.log(Ye)};bt.material_id!==void 0?ne(Ln):Ln();function Ln(){var Ye=wn;Yt!==null?Ye=Yt:parseFloat(Ye)<5&&(Ye="5.0"),ie(Ye,!1),It!==null&&Se(It,zt),ee=!0}return ui},GGBAppletUtils=function(){"use strict";function ui(){return window.GGBT_wsf_edit!==void 0}function wn(ee,Yt){Yt!=1?(ee.style.transformOrigin="0% 0% 0px",ee.style.webkitTransformOrigin="0% 0% 0px",ee.style.transform="scale("+Yt+","+Yt+")",ee.style.webkitTransform="scale("+Yt+","+Yt+")",ee.style.maxWidth="initial",ee.querySelector(".ggb_preview")!==null&&(ee.querySelector(".ggb_preview").style.maxWidth="initial"),ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ee.style.transform="none",ee.style.webkitTransform="none")}function bt(ee,Yt,It,jt,Xt,Pt){var oe=null;if(Pt!=null&&Pt!="")for(var zt=ee.parentNode;zt!=null;)if((" "+zt.className+" ").indexOf(" "+Pt+" ")>-1){oe=zt;break}else zt=zt.parentNode;var Jt=0,Ct=0,et=0,tt=0,lt=0,rt=0,ut=0;if(oe)Jt=oe.offsetWidth,Ct=Math.max(jt?oe.offsetWidth:0,oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Jt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ct=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Jt):(Jt=window.innerWidth,Ct=window.innerHeight,et=window.innerWidth),ee){var ct=ee.getBoundingClientRect();ct.left>0&&ct.left<=Jt&&(Xt===void 0||!Xt)&&(document.dir==="rtl"?(lt=Jt-ct.width-ct.left,rt=et<=480?10:30):(rt=ct.left,lt=et<=480?10:30),tt=rt+lt)}if(ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var wt=ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return ee&&((It===void 0||!It)&&Yt>0&&Yt+tt<Jt?Jt=Yt:Jt-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(It===void 0||!It)&&(Ct-=ut)),{width:Jt,height:Ct}}function Ft(ee,Yt,It,jt,Xt){if(ee.isScreenshoGenerator)return 1;var Pt=jt!==void 0&&jt,oe=ee.noScaleMargin!=null&&ee.noScaleMargin,zt=function(wt){return wt&&wt!=="false"},Jt=zt(ee.autoHeight),Ct=bt(Yt,ee.width,It,Jt,Pt&&window.GGBT_wsf_view||oe,Xt),et=parseInt(Ct.width),tt=ee.width,lt=ee.height;if(tt===void 0){var rt=Yt.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,lt=rt.offsetHeight)}var ut=et/tt,ct=Pt?1:Ct.height/lt;return It!==void 0&&!It&&(ut=Math.min(1,ut),ct=Math.min(1,ct)),Math.min(ut,ct)}function ce(ee,Yt,It){var jt=1,Xt,Pt=!1;if(ee.hasOwnProperty("allowUpscale")&&(Pt=ee.allowUpscale),ee.hasOwnProperty("scale")&&(jt=parseFloat(ee.scale),(isNaN(jt)||jt===null||jt===0)&&(jt=1),jt>1&&(Pt=!0)),Yt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pt=!0),!(ee.hasOwnProperty("disableAutoScale")&&ee.disableAutoScale))Xt=Ft(ee,Yt,Pt,It,ee.scaleContainerClass);else return jt;return Pt&&(!ee.hasOwnProperty("scale")||jt===1)?Xt:Math.min(jt,Xt)}function re(ee){var Yt=Math.min(window.innerWidth,document.documentElement.clientWidth),It=Math.min(window.innerHeight,document.documentElement.clientHeight),jt=ee.getBoundingClientRect(),Xt=(Yt-jt.width)/2,Pt=(It-jt.height)/2;Pt<0&&(Pt=0),ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Xt<40?ee.style.left="40px":ee.style.left=Xt+"px",ee.style.top=Pt+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Pt<40?ee.style.top="40px":ee.style.top=Pt+"px",ee.style.left=Xt+"px")}function Be(ee,Yt){var It=ee.querySelector(".appletParameters");if(It){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Yt.id!==It.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ee)}if(It.parentElement&&/fullscreen/.test(It.parentElement.className))return;var jt=ce(Yt,ee);ui()&&It.setAttribute("data-param-scale",jt);for(var Xt=null,Pt=0;Pt<ee.childNodes.length;Pt++)if(ee.childNodes[Pt].className!==void 0&&ee.childNodes[Pt].className.match(/^applet_scaler/)){Xt=ee.childNodes[Pt];break}if(Xt!==null&&Xt.querySelector(".noscale")!==null)return;var oe=Yt.id!==void 0?Yt.id:"ggbApplet",zt=window[oe];(zt==null||!zt.recalculateEnvironments)&&Xt!==null&&!Xt.className.match(/fullscreen/)&&(Xt.parentNode.style.transform="",!isNaN(jt)&&jt!==1?(Xt.parentNode.style.width=Yt.width*jt+"px",Xt.parentNode.style.height=Yt.height*jt+"px",wn(Xt,jt)):(wn(Xt,1),Xt.parentNode.style.width=Yt.width+"px",Xt.parentNode.style.height=Yt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&re(ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(It).parents(".content-added-content"))}}return{responsiveResize:Be,isFlexibleWorksheetEditor:ui,positionCenter:re,getScale:ce,scaleElement:wn}}();__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 ui=n.location.search;return ui.indexOf(J)!=-1||ui.indexOf(K)!=-1}function q(ui,wn){}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(ui){var wn=s[L].bindings;s[L].bindings=function(){for(var bt=wn?wn():{},Ft=ui[webModule.__softPermutationId],ce=O;ce<Ft.length;ce++){var re=Ft[ce];bt[re[O]]=re[P]}return bt}};var t;function u(){return v(),t}function v(){if(!t){var ui=o.createElement(Q);if(ui.id=L,ui.style.cssText=R+S,ui.tabIndex=-1,o.body.appendChild(ui),t=ui.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var wn=document.compatMode==U?V:W;t.write(wn+X),t.close()}}}function w(ui){function wn(Ft){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var re=ce();if(re){Ft();return}function Be(){if(!re){if(!ce())return;re=!0,Ft(),o.removeEventListener&&o.removeEventListener(Z,Be,!1),ee&&clearInterval(ee)}}o.addEventListener&&o.addEventListener(Z,Be,!1);var ee=setInterval(function(){Be()},$)}function bt(Ft){var ce=u(),re=ce.body,Be=ce.createElement(_);Be.language=ab,Be.crossOrigin=W,Be.src=Ft,webModule.__errFn&&(Be.onerror=function(){webModule.__errFn(L,new Error(bb+Ft))}),re.appendChild(Be)}wn(function(){bt(ui)})}webModule.__startLoadingFragment=function(ui){return C(ui)},webModule.__installRunAsyncCode=function(ui){var wn=u(),bt=wn.body,Ft=wn.createElement(_);Ft.language=ab,Ft.text=ui,bt.appendChild(Ft),bt.removeChild(Ft)};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(ui){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ui){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ui){var wn=c[ui];return wn==null?null:wn},r=d,webModule.__errFn=e}function B(){function ui(ee){var Yt=ee.lastIndexOf(rb);Yt==-1&&(Yt=ee.length);var It=ee.indexOf(sb);It==-1&&(It=ee.length);var jt=ee.lastIndexOf(tb,Math.min(It,Yt));return jt>=O?ee.substring(O,jt+P):W}function wn(ee){if(!ee.match(/^\w+:\/\//)){var Yt=o.createElement(ub);Yt.src=ee+vb,ee=ui(Yt.src)}return ee}function bt(){var ee=__gwt_getMetaProperty(wb);return ee!=null?ee:W}function Ft(){for(var ee=o.getElementsByTagName(_),Yt=O;Yt<ee.length;++Yt)if(ee[Yt].src.indexOf(xb)!=-1)return ui(ee[Yt].src);return W}function ce(){var ee=o.getElementsByTagName(yb);return ee.length>O?ee[ee.length-P].href:W}function re(){var ee=o.location;return ee.href==ee.protocol+zb+ee.host+ee.pathname+ee.search+ee.hash}var Be=bt();return Be==W&&(Be=Ft()),Be==W&&(Be=ce()),Be==W&&re()&&(Be=ui(o.location.href)),Be=wn(Be),Be}function C(ui){return ui.match(/^\//)||ui.match(/^[a-zA-Z]+:\/\//)?ui:webModule.__moduleBase+ui}function D(){var ui=[],wn=O,bt=[],Ft=[];function ce(ee){var Yt=Ft[ee](),It=bt[ee];if(Yt in It)return Yt;var jt=[];for(var Xt in It)jt[It[Xt]]=Xt;throw r&&r(ee,jt,Yt),null}if(__gwt_isKnownPropertyValue=function(ee,Yt){return Yt in bt[ee]},webModule.__getPropMap=function(){var ee={};for(var Yt in bt)bt.hasOwnProperty(Yt)&&(ee[Yt]=ce(Yt));return ee},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var re;try{re=Cb;var Be=re.indexOf(Db);Be!=-1&&(wn=parseInt(re.substring(Be+P),$),re=re.substring(O,Be))}catch(ee){}return webModule.__softPermutationId=wn,C(re+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})()},77903:function(ui,wn,bt){"use strict";bt.d(wn,{Ax:function(){return Be},Ds:function(){return ee},KI:function(){return It},SI:function(){return re},f1:function(){return ce}});var Ft=bt(3294);function ce(jt){let Xt=!0;if(jt.length>0){for(let Pt=0;Pt<jt.length;Pt++)if(jt[Pt].compile_success==0||!jt[Pt].compile_success){Xt=!1;break}}else Xt=!1;return Xt}function re(jt,Xt=""){let Pt=[];for(let oe=0;oe<jt.length;oe++){let zt=jt[oe],Jt=Xt?`${Xt}/${zt.name}`:`${zt.name}`;Pt.push({title:zt.name,type:zt.type,isLeaf:zt.type!=="tree",key:Jt})}return Pt}function Be(jt,Xt,Pt){for(let oe=0;oe<jt.length;oe++){let zt=jt[oe];if(zt.key===Xt){zt.children=Pt;break}zt.children&&Be(zt.children,Xt,Pt)}return jt}function ee(jt,Xt,Pt){let oe;return function(){let zt=this,Jt=arguments,Ct=function(){oe=null,Pt||jt.apply(zt,Jt)},et=Pt&&!oe;clearTimeout(oe),oe=setTimeout(Ct,Xt),et&&jt.apply(zt,Jt)}}const Yt=!0,It=Ft.Z.API_SERVER},41069:function(ui,wn,bt){"use strict";bt.d(wn,{ij:function(){return ut},_s:function(){return rt},Uf:function(){return lt},ZP:function(){return wt}});var Ft=bt(59301),ce={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"},re=bt(92310),Be=bt.n(re),ee=bt(42441),Yt=bt(6848),It=bt(61621),jt=bt(71418),Xt=bt(8797),Pt=bt(3294),oe=Object.defineProperty,zt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(Mt,Ot,Ht)=>Ot in Mt?oe(Mt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[Ot]=Ht,tt=(Mt,Ot)=>{for(var Ht in Ot||(Ot={}))Jt.call(Ot,Ht)&&et(Mt,Ht,Ot[Ht]);if(zt)for(var Ht of zt(Ot))Ct.call(Ot,Ht)&&et(Mt,Ht,Ot[Ht]);return Mt};const lt=(Mt={})=>{var Ot,Ht,ne,ae;let de=(Ot=Mt==null?void 0:Mt.emotion)==null?void 0:Ot.map(Vt=>tt({value:Vt==null?void 0:Vt.rate},Vt)),be=(Ht=Mt==null?void 0:Mt.focus)==null?void 0:Ht.map(Vt=>tt({value:Vt==null?void 0:Vt.rate},Vt)),qt=(ne=Mt==null?void 0:Mt.action)==null?void 0:ne.map(Vt=>tt({value:Vt==null?void 0:Vt.rate},Vt)),ze=(ae=Mt==null?void 0:Mt.intention)==null?void 0:ae.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:de||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:be||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:qt||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:ze||[]}]},rt=({className:Mt,dataSource:Ot=[],col:Ht=4,right:ne,bottom:ae=23,precision:de=0,wrapWidth:be=1200})=>{const qt=(Vt="",Ge,_e="--")=>Vt?(Vt==null?void 0:Vt.length)>Ge?(Vt==null?void 0:Vt.slice(0,Ge-1))+"...":Vt:_e,ze=Math.floor((be-(Ht-1)*ne)/Ht);return Ft.createElement("div",{className:Be()(ce.list,Mt)},!!(Ot!=null&&Ot.length)&&(Ot==null?void 0:Ot.map((Vt,Ge)=>{const{cover_pic:_e,created_at:Ne,emotion:We,action:Re,intention:ve,focus:ie}=Vt;return Ft.createElement("div",{key:Ge,className:ce.wrap,style:{width:ze,marginRight:(1+Ge)%Ht===0?0:ne+de,marginBottom:ae}},Ft.createElement("div",{className:ce.img},Ft.createElement("img",{src:`${Pt.Z.API_SERVER}${_e}`}),Ft.createElement("div",{className:ce.tips},Ft.createElement("div",null,Ft.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),Ft.createElement("span",null,Ne))),Ft.createElement("div",{className:ce.footer},Ft.createElement("ul",null,Ft.createElement("li",null,Ft.createElement("i",{className:"iconfont icon-biaoqing"}),Ft.createElement("span",null,"\u8868\u60C5\uFF1A",Ft.createElement(Yt.Z,{title:We},Ft.createElement("span",{className:"c-grey-333"},qt(We,4))))),Ft.createElement("li",null,Ft.createElement("i",{className:"iconfont icon-hangwei"}),Ft.createElement("span",null,"\u884C\u4E3A\uFF1A",Ft.createElement(Yt.Z,{title:Re},Ft.createElement("span",{className:"c-grey-333"},qt(Re,4)))))),Ft.createElement("ul",null,Ft.createElement("li",null,Ft.createElement("i",{className:"iconfont icon-yitu"}),Ft.createElement("span",null,"\u610F\u56FE\uFF1A",Ft.createElement(Yt.Z,{title:ve},Ft.createElement("span",{className:"c-grey-333"},qt(ve,4))))),Ft.createElement("li",null,Ft.createElement("i",{className:"iconfont icon-zhuangtai"}),Ft.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",Ft.createElement(Yt.Z,{title:ie},Ft.createElement("span",{className:"c-grey-333"},qt(ie,3))))))))})))},ut=({className:Mt,style:Ot,title:Ht,hideBar:ne=!1,children:ae,customText:de="",noDataText:be="",emptyData:qt=[],loading:ze,actionAnalysis:Vt})=>{var Ge,_e;const Ne=((Ge=qt==null?void 0:qt[0])==null?void 0:Ge.every(Re=>{var ve;return!((ve=Re==null?void 0:Re.data)!=null&&ve.length)}))&&!((_e=qt==null?void 0:qt[1])!=null&&_e.length)||!Vt,We=Vt?be:de;return Ft.createElement(It.Z,{loading:ze,active:!0},Ne&&Ft.createElement("div",{className:Be()(ce.noData,Mt),style:Ot},!!Ht&&Ft.createElement("div",{className:ce.title},!ne&&Ft.createElement("b",null),Ft.createElement("span",null,Ht)),Ft.createElement("div",{className:ce.itemWrap},Ft.createElement(Xt.Z,{customText:We}))),!Ne&&ae)};var wt=({className:Mt,style:Ot,data:Ht=[],title:ne,hideBar:ae=!1,loading:de=!1})=>Ft.createElement("div",{className:Be()(ce.analysis,Mt),style:Ot},!!ne&&Ft.createElement("div",{className:ce.title},!ae&&Ft.createElement("b",null),Ft.createElement("span",null,ne)),Ft.createElement(jt.Z,{spinning:de},Ft.createElement("div",{className:ce.itemWrap},Ht==null?void 0:Ht.map((be,qt)=>Ft.createElement("div",{className:ce.item,key:qt},Ft.createElement(ee.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:be==null?void 0:be.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(ze){for(let Vt in be==null?void 0:be.data)if(ze==(be==null?void 0:be.data[Vt].name))return ze+" "+(be==null?void 0:be.data[Vt].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:be==null?void 0:be.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:be==null?void 0:be.data}]},style:{height:145}}))))))},24544:function(ui,wn,bt){"use strict";var Ft=bt(86204),ce=bt.n(Ft),re=Object.defineProperty,Be=(jt,Xt,Pt)=>Xt in jt?re(jt,Xt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):jt[Xt]=Pt,ee=(jt,Xt,Pt)=>Be(jt,typeof Xt!="symbol"?Xt+"":Xt,Pt),Yt=(jt,Xt,Pt)=>new Promise((oe,zt)=>{var Jt=tt=>{try{et(Pt.next(tt))}catch(lt){zt(lt)}},Ct=tt=>{try{et(Pt.throw(tt))}catch(lt){zt(lt)}},et=tt=>tt.done?oe(tt.value):Promise.resolve(tt.value).then(Jt,Ct);et((Pt=Pt.apply(jt,Xt)).next())});class It extends Ft.EventEmitter{constructor(Xt,Pt){super(),ee(this,"url"),ee(this,"body"),ee(this,"fullContent",""),ee(this,"controller",null),ee(this,"buffer",""),this.url=Xt,this.body=Pt}startStream(){return Yt(this,null,function*(){this.controller=new AbortController;const{signal:Xt}=this.controller;try{const Pt=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Xt});if(!Pt.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${Pt.status}`);const oe=Pt.headers.get("content-type");if(!oe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(oe.includes("application/json")){const Ct=yield Pt.json();this.emit("error",Ct);return}if(!oe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const zt=Pt.body.getReader(),Jt=new TextDecoder("utf-8");for(;;){const{done:Ct,value:et}=yield zt.read();if(Ct)break;const tt=Jt.decode(et,{stream:!0});this.buffer+=tt;const lt=this.buffer.split(`
`);this.buffer=lt.pop()||"";for(const rt of lt)if(rt.startsWith("data:")){const ut=rt.slice(5).trim();if(ut==="[DONE]")break;try{const ct=JSON.parse(ut);ct.data&&this.handleData(ct.data)}catch(ct){this.buffer=rt+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",ct)}}}this.emit("done",this.fullContent)}catch(Pt){Pt.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",Pt.message)}})}handleData(Xt){Xt.content&&(this.fullContent+=Xt.content,this.emit("data",{chunk:Xt,full:this.fullContent}))}cancelRequest(){var Xt;(Xt=this.controller)==null||Xt.abort()}}wn.Z=It},73524:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return oe}});var Ft=bt(59301),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},re=bt(92310),Be=bt.n(re),ee=bt(71418),Yt=bt(2859),It=bt(99064),jt=bt(955),Xt=(zt,Jt,Ct)=>new Promise((et,tt)=>{var lt=ct=>{try{ut(Ct.next(ct))}catch(wt){tt(wt)}},rt=ct=>{try{ut(Ct.throw(ct))}catch(wt){tt(wt)}},ut=ct=>ct.done?et(ct.value):Promise.resolve(ct.value).then(lt,rt);ut((Ct=Ct.apply(zt,Jt)).next())}),oe=({data:zt,className:Jt,fullWidth:Ct,style:et={},onClose:tt,onOk:lt,showFullTools:rt,noAssociationId:ut})=>{const ct=(0,Ft.useRef)(null),wt=(0,Ft.useRef)(null),Mt=(0,Ft.useRef)(null),Ot=(0,Ft.useRef)(null),[Ht,ne]=(0,Ft.useState)(!1),[ae,de]=(0,Ft.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ft.useEffect)(()=>(Mt.current||(Mt.current=document.createElement("style"),document.head.appendChild(Mt.current)),zt!=null&&zt.visible?(document.body.setAttribute("data-custom","y-hidden"),Mt.current.innerHTML=" html { overflow-y: hidden; }",zt!=null&&zt.src&&be()):(document.body.removeAttribute("data-custom"),Mt.current&&(document.head.removeChild(Mt.current),Mt.current=null)),()=>{document.body.removeAttribute("data-custom"),Mt.current&&(document.head.removeChild(Mt.current),Mt.current=null)}),[zt==null?void 0:zt.visible]);const be=()=>Xt(void 0,null,function*(){ne(!0),de("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ge=yield(0,jt.ZJ)(zt==null?void 0:zt.src);ct.current.src="",ct.current.src=Ge,ct.current.onload=function(){Vt()},ne(!1),de("")}),qt=Ge=>Xt(void 0,null,function*(){ne(!0),de("\u6B63\u5728\u4FDD\u5B58\u4E2D");const _e=yield(0,It.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:zt.title,file:Ge.dataUrl}});_e!=null&&_e.id&&!ut?(yield(0,It.ZP)(`/api/attachments/${zt.id}/add_subitem.json`,{method:"post",body:{subitem_id:_e==null?void 0:_e.id,settings:JSON.stringify(Ge.state)}})).status===0&&lt():_e!=null&&_e.id&&lt(_e),ne(!1),de("")}),ze=()=>{const Ge=document.querySelector('a[href="https://markerjs.com/"]');Ge&&Ge.parentNode&&(Ge.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(Ne=>{const We=document.querySelector(Ne.name);We&&We.setAttribute("title",Ne.title)})},Vt=()=>{wt.current=new Yt.hP(ct.current),wt.current.targetRoot=Ot.current,wt.current.addEventListener("render",qt),wt.current.addEventListener("beforeclose",tt),rt&&(wt.current.availableMarkerTypes=wt.current.ALL_MARKER_TYPES,wt.current.uiStyleSettings.redoButtonVisible=!0,wt.current.uiStyleSettings.notesButtonVisible=!0,wt.current.uiStyleSettings.zoomButtonVisible=!0,wt.current.uiStyleSettings.zoomOutButtonVisible=!0,wt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=wt.current.uiStyleSettings,wt.current.show(),zt!=null&&zt.snapshotData&&wt.current.restoreState(zt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ze()},300)};return Ft.createElement(Ft.Fragment,null,(zt==null?void 0:zt.visible)&&Ft.createElement(ee.Z,{spinning:Ht,tip:ae,style:{position:"absolute",width:"100vw"}},Ft.createElement("div",{ref:Ot,className:Be()(ce.imageDimensions,Jt,Ct?ce.fullWidth:""),style:et},Ft.createElement("img",{className:ce.img,ref:ct}))))}},41588:function(ui,wn,bt){"use strict";var Ft=bt(59301),ce=bt(95237),re=bt(43604),Be=bt(99313),ee=bt(3113),Yt=bt(85149),It=bt(88010),jt=bt(48136),Xt=bt(59301);const Pt=(0,Ft.forwardRef)(({callback:oe,showSaveButton:zt,value:Jt=""},Ct)=>{const et=(0,Ft.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=wt=>{et.current.setValue(et.current.getValue()+" "+wt.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Xt.createElement(ce.Z,{className:It.Z.lists,gutter:[10,10]},tt.map((wt,Mt)=>Xt.createElement(re.Z,{flex:"110px",className:It.Z.item},Xt.createElement("div",null,Xt.createElement(Yt.Z,{value:`$$${wt.value}$$`}),wt.name),Xt.createElement("div",{className:It.Z.children},wt.children.map((Ot,Ht)=>Xt.createElement("div",{key:Ht},Xt.createElement("h1",null,Ot.name),Xt.createElement(ce.Z,{gutter:[10,10]},Ot.data.map((ne,ae)=>Xt.createElement(re.Z,{key:ae,onClick:()=>rt(ne),className:It.Z.diamond},Xt.createElement(Yt.Z,{value:"`$$"+ne.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Xt.createElement(ce.Z,{className:It.Z.lists,gutter:[10,10]},lt.map((wt,Mt)=>Xt.createElement(re.Z,{flex:"110px",className:It.Z.item},Xt.createElement("div",null,Xt.createElement(Yt.Z,{value:"`$$"+wt.value+"$$`"}),wt.name),Xt.createElement("div",{className:It.Z.children},wt.children.map((Ot,Ht)=>Xt.createElement("div",{key:Ht},Ot.name&&Xt.createElement("h1",null,Ot.name),Xt.createElement(ce.Z,{gutter:[10,10]},Ot.data.map((ne,ae)=>Xt.createElement(re.Z,{key:ae,onClick:()=>rt(ne),className:It.Z.diamond},Xt.createElement(Yt.Z,{value:"`$$"+ne.value+"$$`"}))))))))))}],ct=()=>{var wt=document.createElement("div");wt.innerHTML=et.current.getValue();var Mt=wt.innerText;return oe&&oe(Mt),Mt};return(0,Ft.useImperativeHandle)(Ct,()=>({getData:ct})),Xt.createElement("div",{className:It.Z.mathWrap},Xt.createElement(Be.default,{defaultActiveKey:"1",items:ut}),Xt.createElement("math-field",{locale:"zh_cn",className:It.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Jt||""),zt&&Xt.createElement("div",{className:It.Z.button},Xt.createElement(ee.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});wn.Z=Pt},8797:function(ui,wn,bt){"use strict";var Ft=bt(59301),ce=bt(93314),re=bt(3113),Be=Object.defineProperty,ee=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Pt=(Ct,et,tt)=>et in Ct?Be(Ct,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ct[et]=tt,oe=(Ct,et)=>{for(var tt in et||(et={}))jt.call(et,tt)&&Pt(Ct,tt,et[tt]);if(It)for(var tt of It(et))Xt.call(et,tt)&&Pt(Ct,tt,et[tt]);return Ct},zt=(Ct,et)=>ee(Ct,Yt(et));const Jt=({img:Ct,buttonProps:et={},styles:tt={},customText:lt,ButtonText:rt,ButtonClick:ut,Buttonclass:ct,ButtonTwo:wt,imgStyles:Mt,loading:Ot=!1,className:Ht=""})=>Ft.createElement("section",{className:`tc animated fadeIn ${Ht}`,style:oe({color:"#999",margin:"100px auto",visibility:Ot?"hidden":"visible"},tt)},Ft.createElement("img",{src:Ct||ce,style:zt(oe({},Mt),{pointerEvents:"none",userSelect:"none"})}),Ft.createElement("p",{className:"mt20 font14"},lt||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&Ft.createElement(re.ZP,oe({className:ct,onClick:ut},et),rt),wt&&wt);wn.Z=Jt},23210:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ct}});var Ft=bt(59301),ce={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},re=bt(3113),Be=bt(70557),ee=bt(23954),Yt=bt(6848),It=bt(955),jt=bt(94941),Xt=bt(8797),Pt=bt(3294),oe=bt(19381),zt=bt(59301),Jt=Object.defineProperty,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(wt,Mt,Ot)=>Mt in wt?Jt(wt,Mt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):wt[Mt]=Ot,rt=(wt,Mt)=>{for(var Ot in Mt||(Mt={}))et.call(Mt,Ot)&&lt(wt,Ot,Mt[Ot]);if(Ct)for(var Ot of Ct(Mt))tt.call(Mt,Ot)&&lt(wt,Ot,Mt[Ot]);return wt},ut=(wt,Mt,Ot)=>new Promise((Ht,ne)=>{var ae=qt=>{try{be(Ot.next(qt))}catch(ze){ne(ze)}},de=qt=>{try{be(Ot.throw(qt))}catch(ze){ne(ze)}},be=qt=>qt.done?Ht(qt.value):Promise.resolve(qt.value).then(ae,de);be((Ot=Ot.apply(wt,Mt)).next())}),ct=({editOffice:wt="view",data:Mt,theme:Ot,type:Ht,filename:ne,monacoEditor:ae,className:de,style:be,close:qt,onClose:ze,hasMask:Vt,disabledDownload:Ge,onImgDimensions:_e,showNodata:Ne,recordInfo:We})=>{const[Re,ve]=(0,Ft.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ie,Se]=(0,Ft.useState)(""),[Bn,Ln]=(0,Ft.useState)(),Ye=window.ENV==="build"?"/react/build":"",Mn=location.host.startsWith("localhost")?Pt.Z.PROXY_SERVER:Pt.Z.API_SERVER,fi=10*(1024*1024),Hn=(0,Ft.useRef)();Mt!=null&&Mt.startsWith("/api")&&Ht!=="txt"&&(Mt=Pt.Z.API_SERVER+Mt);const xi=Nt=>Nt.substring(Nt.lastIndexOf("/")+1).split(".").pop();ne&&ae&&(ae.filename=ne),(0,Ft.useEffect)(()=>{var Nt,Dt;const mt=(Dt=(Nt=document.cookie)==null?void 0:Nt.replace(/\s/g,""))==null?void 0:Dt.split(";");mt==null||mt.map(ft=>{let pt=ft.split("=");pt[0]==="_educoder_session"&&Se(pt[1])})},[]),(0,Ft.useEffect)(()=>{Ht==="office"&&(Mt.indexOf("bigfilescdn.")>-1||Mt.indexOf("bigfiles1")>-1?Ln({url:Mt,fileType:xi(Mt),model:Mt.indexOf("model=edit")?"edit":"view"}):nn())},[Ht,Mt]);const nn=()=>ut(void 0,null,function*(){console.log("data:",Mt);let Nt=Mt;Mt.startsWith("http")||(Nt=location.origin+Nt);let Dt=new URL(Nt).pathname.split("/").pop();const mt=yield(0,jt.gJ)({attachment_id:Dt});mt.url=Mn+mt.url,Ln(mt)}),Fi=()=>{if(Mt.startsWith("http")||Mt.startsWith("blob:")){ki();return}(0,It.Sv)(ne||"educoder",Mt,ne)},ki=()=>{We&&(0,oe.fc)({id:We==null?void 0:We.id,watch_type:1,course_id:We==null?void 0:We.course_id}),(0,It.Nd)(ne||"educoder",decodeURIComponent(Mt))};return zt.createElement("div",{style:rt({},be||{}),className:`${Vt&&ce.bgBlack} ${Ht?ce.wrp:"hide"}`},qt&&zt.createElement("div",{className:ce.close,ref:Hn},!!_e&&zt.createElement(Yt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Hn.current},zt.createElement("span",{onClick:()=>{ze(),_e()}},zt.createElement("i",{className:"icon-yulanpizhu"}))),!Ge&&zt.createElement(Yt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Hn.current},zt.createElement("span",{onClick:ki},zt.createElement("i",{className:"icon-quxiaozhiding"}))),zt.createElement(Yt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Hn.current},zt.createElement("span",{className:"",onClick:ze},zt.createElement("i",{className:"icon-guanbi1"})))),zt.createElement("div",{className:`${ce[de]} ${de} ${ce.monaco} ${Ht==="txt"?"show":"hide"}`},Ht==="txt"&&zt.createElement(zt.Fragment,null,zt.createElement(ee.ZP,rt({},ae)))),Ht==="audio"&&zt.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}),Ht==="video"&&zt.createElement(zt.Fragment,null,(Mt==null?void 0:Mt.indexOf("http"))>-1?zt.createElement("video",{controls:!0,src:`${Mt}`,autoPlay:!0}):zt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Mt}`,autoPlay:!0})),Ht==="office"&&Bn&&zt.createElement("iframe",{src:`${Ye}/office.html?key=${Bn.key}&url=${btoa(Bn.url)}&callbackUrl=${Mn+(Bn.callbackUrl||"")}&fileType=${Bn.fileType}&title=${Bn.title||""}&model=${wt}&officeServer=${Pt.Z.ONLYOFFICE}&disabledDownload=${!!Ge}`}),Ht==="html"&&zt.createElement("iframe",{src:Mt+"&disposition=inline"}),Ht==="pdf"&&zt.createElement("iframe",{src:`${Ye}/js/pdfview/index.html?filename=${ne||"educoder.pdf"}&url=${encodeURIComponent(Mt)}&disabledDownload=${!!Ge}`}),Ht==="image"&&zt.createElement("img",{src:`${(Mt==null?void 0:Mt.indexOf("http://"))>-1||(Mt==null?void 0:Mt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Mt}`}),(Ht==="other"||Ht==="download")&&zt.createElement(zt.Fragment,null,Ne?zt.createElement(Xt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:zt.createElement(re.ZP,{icon:zt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fi,disabled:Ge},"\u4E0B\u8F7D")}):zt.createElement(re.ZP,{type:"primary",size:"middle",onClick:Fi,disabled:Ge},zt.createElement(Be.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(ui,wn,bt){"use strict";bt.d(wn,{z:function(){return Ht},Z:function(){return ne}});var Ft=bt(59301),ce=bt(50304),re=bt(24768),Be=bt(64018),ee=bt(46284),Yt=bt(3294),It=bt(955),jt=bt(15342),Xt=bt(1012),Pt=bt(23210),oe=bt(59301),Jt=({html:ae})=>{const de=(0,Ft.useRef)(null),be=(0,Ft.useRef)(null),qt=`.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,Ft.useEffect)(()=>{const ze=de.current.attachShadow({mode:"open"});be.current=document.createElement("div"),be.current.className="markdown-body",be.current.innerHTML=ae,ze.appendChild(be.current);const Vt=document.createElement("style");return Vt.textContent=qt,ze.appendChild(Vt),()=>{ze.innerHTML=""}},[]),(0,Ft.useEffect)(()=>{be.current&&(be.current.innerHTML=ae)},[ae]),oe.createElement("div",{ref:de})},Ct=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,rt=(ae,de,be)=>de in ae?Ct(ae,de,{enumerable:!0,configurable:!0,writable:!0,value:be}):ae[de]=be,ut=(ae,de)=>{for(var be in de||(de={}))tt.call(de,be)&&rt(ae,be,de[be]);if(et)for(var be of et(de))lt.call(de,be)&&rt(ae,be,de[be]);return ae};const ct="@\u2581\u2581@",wt="@\u2581@",Mt=/<pre[^>]*>/g;function Ot(ae){let de=document.createElement("div");return de.innerHTML=ae,de.childNodes.length===0?"":de.childNodes[0].nodeValue}const Ht=(ae,de)=>{ae=ae||"";const be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,qt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\(\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 de?ae.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(be,(Ge,_e,Ne,We,Re,ve,ie)=>{const Se=_e||We||ve,Bn=Ne||Re||ie||"?";return Yt.Z.API_SERVER+"/api/attachments/"+Se+Bn+"&t="+(0,It.Jn)(Se,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ae=ae.replace(Vt,(Ge,_e,Ne,We,Re,ve,ie)=>{const Se=_e||We||ve,Bn=Ne||Re||ie||"?";return Yt.Z.API_SERVER+"/attachments/download/"+Se+Bn+"&t="+(0,It.Jn)(Se,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replace(be,(Ge,_e,Ne,We,Re,ve,ie)=>{const Se=_e||We||ve,Bn=Ne||Re||ie||"?";return Yt.Z.API_SERVER+"/api/attachments/"+Se+Bn+"&t="+(0,It.Jn)(Se,Date.now())+(Ge.indexOf(")")>-1?")":"&")}).replace(qt,(Ge,_e,Ne,We,Re)=>{const ve=_e||We,ie=Ne||Re||"";return'"'+Yt.Z.API_SERVER+"/api/attachments/"+ve+ie+ve+ie+"&t="+(0,It.Jn)(ve,Date.now())}).replace(ze,(Ge,_e,Ne,We,Re)=>{const ve=_e||We,ie=Ne||Re||"";return"("+Yt.Z.API_SERVER+"/files/uploads/"+ve+ie+ve+ie+"&t="+(0,It.Jn)(ve,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,`
`),ae)};var ne=({value:ae="",className:de,showTextOnly:be,showLines:qt,style:ze={},stylesPrev:Vt={},highlightKeywords:Ge,showProgramFill:_e,isProgramFill:Ne,disabledFill:We=!1,programFillValue:Re,onFillChange:ve=Bn=>{},onFillBlur:ie=()=>{},onFillFocus:Se=()=>{}})=>{let Bn=String(ae);const[Ln,Ye]=(0,Ft.useState)(""),[Mn,Wn]=(0,Ft.useState)("office"),[fi,Hn]=(0,Ft.useState)([]),xi=(0,Ft.useRef)("a"+(0,Xt.Z)()),nn={},Fi=(Ue,ke,Ie)=>{const rn=document.createElement(Ue===wt?"input":"textarea");rn.style.width="100%",rn.style.height=Ue===wt?"40px":"151px",rn.rows=5,rn.spellcheck=!1,rn.name="edu-program-fill",rn.placeholder="\u8BF7\u8F93\u5165",rn.dataset.id=ke;const Gn=Object.keys(nn).length;return nn[Gn]=rn,`<span class="edu-program-fill-wrap ${Ue===wt?"":"show"}" style="width:${Ue===wt?"400px":"100%"}" title=${Ie||""}><span>${rn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ki(Ue){return Ue=Ue.replace(/!\[.*?\]\(.*?\)/g,""),Ue=Ue.replace(/\[.*?\]\(.*?\)/g,""),Ue=Ue.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ue=Ue.replace(/<embed.*?>/g,""),Ue=Ue.replace(/<img.*?>/g,""),Ue=Ue.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ue=Ue.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ue=Ue.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ue=Ue.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ue}const Nt=Ue=>Ue.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ke,Ie){let rn=Ie.replace(/(\n|\r)/g,"").split("}"),Gn=[];return rn.map(dn=>{dn!=""&&Gn.push(`.${xi.current} ${dn}`)}),`<style>${Gn.join("}")}</style>`}),Dt=(0,Ft.useMemo)(()=>{try{const rn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Gn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,dn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,An=/\(\/attachments\/download\//g;Bn=Bn.replace(An,"("+Yt.Z.API_SERVER+"/attachments/download/").replace(rn,"("+Yt.Z.API_SERVER+"/api/attachments/").replace(Gn,'"'+Yt.Z.API_SERVER+"/api/attachments/").replace(dn,'"'+Yt.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(rn){}if(_e){let rn=-1;return Bn=Bn.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Gn,dn,An){var Dn;return++rn,Fi(Gn,rn,(Dn=Re==null?void 0:Re[rn])==null?void 0:Dn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Nt(Bn||"")}</pre>`}let Ue=Nt(Bn);Ue=(0,re.ZP)(Ue);const ke=(0,re.ez)();Bn.match(/\[TOC\]/)&&(Ue=Ue.replace("<p>[TOC]</p>",(0,re.Qv)()),(0,re.Iy)()),Ue=Ue.replace(/(__special_katext_id_\d+__)/g,(rn,Gn)=>{const{type:dn,expression:An}=ke[Gn];return(0,jt.renderToString)(Ot(An)||"",{displayMode:dn==="block",throwOnError:!1,output:"html"})}),Ue=Ue.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,re.AL)();const Ie=document.createElement("div");if(Ie.innerHTML=Ue,be)return Ie.innerText;if(Ge){const rn=Ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return At(Ie,rn),Ie.innerHTML}return setTimeout(()=>le(),500),Ie.innerHTML},[Bn,Ge]);(0,Ft.useEffect)(()=>{ue.current&&ue.current.querySelectorAll(["input","textarea"]).forEach(ke=>{ke.oninput=mt,ke.onblur=ft,ke.onfocus=pt})},[fi]),(0,Ft.useEffect)(()=>{var Ue,ke,Ie,rn,Gn;if(Re!=null&&Re.length)try{const dn=ue.current.querySelectorAll(".edu-program-fill-score"),An=ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Dn,qn]of An.entries())qn.value=((Ue=Re==null?void 0:Re[Dn])==null?void 0:Ue.value)||"",((ke=Re==null?void 0:Re[Dn])==null?void 0:ke.type)==="warning"?qn.className="program-fill-warning":((Ie=Re==null?void 0:Re[Dn])==null?void 0:Ie.type)==="success"?qn.className="program-fill-success":qn.className="";for(const[Dn,qn]of dn.entries())qn.innerHTML=(rn=Re==null?void 0:Re[Dn])!=null&&rn.score?`${(Gn=Re==null?void 0:Re[Dn])==null?void 0:Gn.score}\u5206`:"";Hn(Re)}catch(dn){console.log(dn,"error")}},[Re]);const mt=Ue=>{fi[Ue.target.dataset.id]=fi[Ue.target.dataset.id]||{},fi[Ue.target.dataset.id].value=Ue.target.value,Hn([...fi]),ve(fi,Ue.target.dataset.id)},ft=Ue=>{fi[Ue.target.dataset.id]=fi[Ue.target.dataset.id]||{},fi[Ue.target.dataset.id].value=Ue.target.value,Hn([...fi]),ie(fi,Ue.target.dataset.id)},pt=Ue=>{fi[Ue.target.dataset.id]=fi[Ue.target.dataset.id]||{},fi[Ue.target.dataset.id].value=Ue.target.value,Hn([...fi]),Se(fi,Ue.target.dataset.id)};function At(Ue,ke){return Ue.childNodes.forEach(Ie=>{var rn;if(Ie.childNodes.length>0)At(Ie,ke);else if(Ie.nodeName!=="IMG")if(Ie.innerHTML)Ie.innerHTML=(rn=Ie.innerHTML)==null?void 0:rn.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Gn=document.createElement("span");Gn.innerHTML=Ie.textContent.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ie.replaceWith(Gn)}})}const ue=(0,Ft.useRef)();re.jb.WebkitLineClamp=qt,qt&&(ze=ut(ut({},ze),re.jb));function we(Ue){let ke=Ue.target;if(ke.tagName.toUpperCase()==="A"){let Ie=ke.getAttribute("href");if(Ie.indexOf("office")>-1)Ue.preventDefault(),Ye(Ie),Wn("office");else if(Ie.indexOf("application/pdf")>-1)Ue.preventDefault(),Ye(Ie),Wn("pdf");else if(Ie.indexOf("text/html")>-1)Ue.preventDefault(),Ye(Ie),Wn("html");else if(Ie.startsWith("#")){Ue.preventDefault();let rn=document.getElementById(Ie.replace("#",""));rn&&rn.scrollIntoView(!0)}}}const le=()=>{var Ue;const ke=(Ue=ue.current)==null?void 0:Ue.querySelectorAll("video");ke==null||ke.forEach(Ie=>{if(Ie.oncontextmenu=()=>!1,Ie.src.indexOf(".m3u8")>-1&&!Ie.canPlayType("application/vnd.apple.mpegurl")){if(ee.ZP.isSupported()){var rn=new ee.ZP;rn.loadSource(Ie.src),rn.attachMedia(Ie)}}})};(0,Ft.useEffect)(()=>{if(ue.current&&Dt&&Dt.match(Mt)&&window.PR.prettyPrint(),ue.current)return ue.current.addEventListener("click",we),()=>{var Ue;(Ue=ue.current)==null||Ue.removeEventListener("click",we),(0,re.AL)(),(0,re.Iy)()}},[Dt,ue.current,we]),(0,Ft.useEffect)(()=>{var Ue;const ke=Ie=>{Ie.preventDefault(),Ie.clipboardData.setData("text",window.getSelection().toString())};return(Ue=ue.current)==null||Ue.addEventListener("copy",ke),()=>{var Ie;(Ie=ue.current)==null||Ie.removeEventListener("copy",ke)}},[ue.current]);const me=Ue=>/<style[\s\S]*?>/i.test(Ue||"");return Ft.createElement(Ft.Fragment,null,be&&Ft.createElement("div",{ref:ue},Dt),!be&&!me(Dt)&&Ft.createElement("div",{ref:ue,style:ut({},ze),className:`${de||""} ${We?"disabled-fill":""} markdown-body ${xi.current}`,dangerouslySetInnerHTML:{__html:Dt}}),!be&&me(Dt)&&Ft.createElement(Jt,{html:Dt}),Ft.createElement(Pt.Z,{close:!0,data:Ln,type:Ln!=null&&Ln.length?Mn:"",style:ut({},Vt),onClose:()=>Ye("")}))}},30917:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ze}});var Ft=bt(59301),ce=bt(89070),re=bt(43418),Be=bt(78241),ee=bt(8591),Yt=bt(71418),It=bt(17574),jt=bt(95237),Xt=bt(43604),Pt=bt(6848),oe=bt(92832),zt={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},Jt=bt(83312),Ct=bt(24780),et=bt(8797),tt=bt(85057),lt=Object.defineProperty,rt=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Ot=(Vt,Ge,_e)=>Ge in Vt?lt(Vt,Ge,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Vt[Ge]=_e,Ht=(Vt,Ge)=>{for(var _e in Ge||(Ge={}))wt.call(Ge,_e)&&Ot(Vt,_e,Ge[_e]);if(ct)for(var _e of ct(Ge))Mt.call(Ge,_e)&&Ot(Vt,_e,Ge[_e]);return Vt},ne=(Vt,Ge)=>rt(Vt,ut(Ge)),ae=(Vt,Ge)=>{var _e={};for(var Ne in Vt)wt.call(Vt,Ne)&&Ge.indexOf(Ne)<0&&(_e[Ne]=Vt[Ne]);if(Vt!=null&&ct)for(var Ne of ct(Vt))Ge.indexOf(Ne)<0&&Mt.call(Vt,Ne)&&(_e[Ne]=Vt[Ne]);return _e},de=(Vt,Ge,_e)=>new Promise((Ne,We)=>{var Re=Se=>{try{ie(_e.next(Se))}catch(Bn){We(Bn)}},ve=Se=>{try{ie(_e.throw(Se))}catch(Bn){We(Bn)}},ie=Se=>Se.done?Ne(Se.value):Promise.resolve(Se.value).then(Re,ve);ie((_e=_e.apply(Vt,Ge)).next())});const be=(Vt=[])=>Vt==null?void 0:Vt.map(Ge=>ne(Ht({},Ge),{title:(Ge==null?void 0:Ge.value)||"",key:Ge==null?void 0:Ge.id,isLeaf:!0})),qt=Vt=>{var Ge=Vt,{user:_e,children:Ne,isShowComponent:We=!0,ModalProps:Re={},onDataSelect:ve}=Ge,ie=ae(Ge,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[Se,Bn]=re.default.useModal(),[Ln]=Be.default.useForm(),[Ye,Mn]=(0,Ft.useState)([]),[Wn,fi]=(0,Ft.useState)(!1),[Hn,xi]=(0,Ft.useState)(!1),[,nn,Fi,ki]=(0,Jt.U)(Ct.qE,{page:1,limit:9999}),[,,Nt]=(0,Jt.U)(Ct.V8,{}),[,,Dt]=(0,Jt.U)(Ct.B$,{}),[,,mt]=(0,Jt.U)(Ct.DH,{}),[,,ft]=(0,Jt.U)(Ct.bJ,{}),pt=()=>{fi(!1),Ln.resetFields(),xi(!1)},At=we=>de(void 0,null,function*(){const{node:le,dragNode:me,event:Ue}=we,ke=we.node.pos.split("-"),Ie=we.dropPosition-Number(ke[ke.length-1]);if(Ie==0){ee.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(Ie==1&&(me==null?void 0:me.item_index)==(le==null?void 0:le.item_index)+1){ee.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const rn=yield ft({id:me==null?void 0:me.key,position:Ie==-1?1:(me==null?void 0:me.item_index)>(le==null?void 0:le.item_index)?(le==null?void 0:le.item_index)+1:le==null?void 0:le.item_index});(rn==null?void 0:rn.status)===0&&(ee.ZP.success("\u79FB\u52A8\u6210\u529F"),Fi({},!0))}),ue=we=>de(void 0,null,function*(){let le={};Hn?le=yield Dt(Ht({},we)):le=yield mt(Ht({},we)),(le==null?void 0:le.status)==0&&(ee.ZP.success((le==null?void 0:le.message)||(Hn?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),Fi({},!0),pt())});return(0,Ft.useEffect)(()=>{Re!=null&&Re.open&&Fi({},!0)},[Re==null?void 0:Re.open]),(0,Ft.useEffect)(()=>{var we;Mn(be((we=ki==null?void 0:ki.data)==null?void 0:we.list))},[ki]),We?Ft.createElement(Ft.Fragment,null,Bn,Ne,Ft.createElement(re.default,Ht({},Ht({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},Re)),Ft.createElement(Yt.Z,{spinning:nn},(Ye==null?void 0:Ye.length)>0?Ft.createElement(Ft.Fragment,null,Ft.createElement(It.default.DirectoryTree,{height:500,className:zt.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:ve,treeData:Ye,onDrop:At,titleRender:we=>Ft.createElement(Ft.Fragment,null,Ft.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},we==null?void 0:we.title),Ft.createElement("div",{className:`${zt.EditDom}`},Ft.createElement(jt.Z,{wrap:!1,align:"middle",gutter:16},Ft.createElement(Xt.Z,null,Ft.createElement(Pt.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},Ft.createElement("i",{className:`iconfont icon-tuodong1 font12 ${zt.currentPrimary}`}))),Ft.createElement(Xt.Z,null,Ft.createElement(Pt.Z,{title:"\u7F16\u8F91"},Ft.createElement("i",{className:`iconfont icon-bianji11 font12 ${zt.currentPrimary}`,onClick:le=>{le.stopPropagation(),Ln.setFieldsValue(Ht({},we)),fi(!0)}}))),Ft.createElement(Xt.Z,null,Ft.createElement(Pt.Z,{title:"\u5220\u9664"},Ft.createElement("i",{className:`iconfont icon-shanchu14 font12 ${zt.currentDelete}`,onClick:le=>{le.stopPropagation(),Se.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:()=>de(void 0,null,function*(){const me=yield Nt({id:we==null?void 0:we.key});(me==null?void 0:me.status)==0&&(ee.ZP.success((me==null?void 0:me.message)||"\u5220\u9664\u6210\u529F"),Fi({},!0))})})}}))))))}),Ft.createElement(tt.op,{className:"ml20 mt20",icon:Ft.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{xi(!0),fi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):Ft.createElement(et.Z,{styles:{margin:"30px auto"},customText:Ft.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",Ft.createElement("a",{onClick:()=>{xi(!0),fi(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),Ft.createElement(re.default,{title:Hn?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Wn,okText:Hn?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{pt()},onOk:()=>{Ln.submit()}},Ft.createElement(Be.default,{form:Ln,onFinish:ue},Hn&&Ft.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"),Ft.createElement(Be.default.Item,{hidden:!0,name:"id"}),Ft.createElement(Be.default.Item,{className:"mt10",name:"value"},Ft.createElement(oe.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var ze=(0,ce.connect)(({loading:Vt,user:Ge})=>({user:Ge,loading:Vt.effects}))(qt)},97692:function(ui,wn,bt){"use strict";bt.d(wn,{h:function(){return wt}});var Ft=bt(59301),ce=bt(57809),re=bt(78241),Be=bt(3113),ee=bt(89780),Yt=bt.n(ee),It=bt(37036),jt=bt(95625),Xt=Object.defineProperty,Pt=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,et=(Mt,Ot,Ht)=>Ot in Mt?Xt(Mt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[Ot]=Ht,tt=(Mt,Ot)=>{for(var Ht in Ot||(Ot={}))Jt.call(Ot,Ht)&&et(Mt,Ht,Ot[Ht]);if(zt)for(var Ht of zt(Ot))Ct.call(Ot,Ht)&&et(Mt,Ht,Ot[Ht]);return Mt},lt=(Mt,Ot)=>Pt(Mt,oe(Ot));const rt=ce.default.Option,ut={labelCol:{span:4},wrapperCol:{span:20}},ct={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"]};wn.Z=({callback:Mt,onCancel:Ot})=>{const[Ht,ne]=(0,Ft.useState)("python");function ae(be){ne(ct[be][1])}function de(be){Mt(be)}return Ft.createElement(re.default,lt(tt({},ut),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:de,style:{width:500}}),Ft.createElement(re.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ft.createElement(ce.default,{getPopupContainer:be=>be.parentNode,onChange:ae},Object.keys(ct).map(be=>Ft.createElement(rt,{key:be,value:be},ct[be][0])))),Ft.createElement(re.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ft.createElement(wt,{mode:Ht})),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Be.ZP,{type:"ghost",onClick:Ot},"\u53D6\u6D88")))};function wt({value:Mt,onChange:Ot,mode:Ht,options:ne={}}){const ae=(0,Ft.useRef)(),[de,be]=(0,Ft.useState)();return(0,Ft.useEffect)(()=>{if(de){let qt=function(ze){const Vt=ze.getValue();Ot&&Ot(Vt)};return de.on("change",qt),()=>{de.off("change",qt)}}},[de,Ot]),(0,Ft.useEffect)(()=>{de&&de.setOption("mode",Ht)},[de,Ht]),(0,Ft.useEffect)(()=>{de&&(Mt!==de.getValue()||Mt==="")&&setTimeout(()=>{de.setValue(Mt||"")},300)},[de,Mt]),(0,Ft.useEffect)(()=>{if(ae.current&&!de){const qt=Yt().fromTextArea(ae.current,tt({mode:Ht,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ne));be(qt)}},[ae.current,de]),Ft.createElement("div",{className:"my-codemirror-container"},Ft.createElement("textarea",{ref:ae}))}},12290:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return br}});var Ft=bt(59301),ce=bt(89780),re=bt.n(ce),Be=bt(76374),ee=bt(37036),Yt=bt(6313),It=bt(25717),jt=bt(99498),Xt=bt(25419),Pt=bt(67549),oe=bt(85149),zt=({value:kn="",className:In,showTextOnly:Oe,showLines:hi,style:Je={}})=>{const fn=(0,Ft.useMemo)(()=>"",[kn]);return Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{dangerouslySetInnerHTML:{__html:fn}}))},Jt=bt(59301),Ct=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(kn,In,Oe)=>In in kn?Ct(kn,In,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):kn[In]=Oe,wt=(kn,In)=>{for(var Oe in In||(In={}))rt.call(In,Oe)&&ct(kn,Oe,In[Oe]);if(lt)for(var Oe of lt(In))ut.call(In,Oe)&&ct(kn,Oe,In[Oe]);return kn},Mt=(kn,In)=>et(kn,tt(In));let Ot=[{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 Ht({onActionCallback:kn,title:In,icon:Oe,actionName:hi,className:Je="",children:fn}){function Ke(){kn(hi)}return Jt.createElement("a",{title:In,className:Je,onClick:Ke},Jt.createElement("i",{className:`${Oe}`}),fn)}var ne=({watch:kn,showNullButton:In,showNullProgramButton:Oe,onActionCallback:hi,fullScreen:Je,insertTemp:fn,hidetoolBar:Ke,extraUse:ni})=>{const Ci=[...Ot,{title:`${kn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${kn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Jt.createElement("ul",{className:"markdown-toolbar-container"},!Ke&&Ci.map((_i,qi)=>Jt.createElement("li",{key:qi},_i.actionName?Jt.createElement(Ht,Mt(wt({},_i),{onActionCallback:hi})):Jt.createElement("span",{className:"v-line"}))),In?Jt.createElement("li",null,Jt.createElement(Ht,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:hi},Jt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Oe?Jt.createElement(Jt.Fragment,null,Jt.createElement("li",null,Jt.createElement(Ht,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:hi},Jt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Jt.createElement("li",null,Jt.createElement(Ht,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:hi},Jt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,fn&&Jt.createElement("li",null,Jt.createElement(Ht,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${fn}`,onActionCallback:hi},Jt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ni&&Jt.createElement("li",null,ni),Jt.createElement("li",{className:"btn-full-screen"},Jt.createElement(Ht,{icon:`${Je?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Je?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:hi})))},ae=bt(79346),de=bt(78241),be=bt(92832),qt=bt(3113),ze=Object.defineProperty,Vt=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Re=(kn,In,Oe)=>In in kn?ze(kn,In,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):kn[In]=Oe,ve=(kn,In)=>{for(var Oe in In||(In={}))Ne.call(In,Oe)&&Re(kn,Oe,In[Oe]);if(_e)for(var Oe of _e(In))We.call(In,Oe)&&Re(kn,Oe,In[Oe]);return kn},ie=(kn,In)=>Vt(kn,Ge(In));const Se={labelCol:{span:4},wrapperCol:{span:20}};var Bn=({callback:kn,onCancel:In})=>{function Oe(hi){kn(hi)}return Ft.createElement(de.default,ie(ve({},Se),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Oe,style:{width:500}}),Ft.createElement(de.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ft.createElement(be.default,null)),Ft.createElement(de.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ft.createElement(be.default,null)),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(qt.ZP,{type:"ghost",onClick:In},"\u53D6\u6D88")))},Ln=bt(97692),Ye=bt(28451),Mn=bt(43418),Wn=bt(95237),fi=bt(73524),Hn=bt(59301),xi=({callback:kn,onCancel:In})=>{const Oe=document.createElement("canvas"),hi=Oe.getContext("2d");Oe.width=1e3,Oe.height=800,hi.fillStyle="#ffffff",hi.fillRect(0,0,Oe.width,Oe.height);const Je=Oe.toDataURL("image/png");return Hn.createElement(Mn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Hn.createElement(Wn.Z,{style:{height:"100vh"}},Hn.createElement(fi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Je,visible:!0,title:String(Date.now())},onOk:fn=>{kn({src:fn.url})},onClose:In})))},nn=bt(12378);function Fi(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Fi,go.CommandHandler),Fi.prototype.canAlignSelection=function(){var kn=this.diagram;return!(kn===null||kn.isReadOnly||kn.isModelReadOnly||kn.selection.count<2)},Fi.prototype.alignLeft=function(){var kn=this.diagram;kn.startTransaction("aligning left");var In=1/0;kn.selection.each(function(Oe){Oe instanceof go.Link||(In=Math.min(Oe.position.x,In))}),kn.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(In,Oe.position.y))}),kn.commitTransaction("aligning left")},Fi.prototype.alignRight=function(){var kn=this.diagram;kn.startTransaction("aligning right");var In=-1/0;kn.selection.each(function(Oe){if(!(Oe instanceof go.Link)){var hi=Oe.actualBounds.x+Oe.actualBounds.width;In=Math.max(hi,In)}}),kn.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(In-Oe.actualBounds.width,Oe.position.y))}),kn.commitTransaction("aligning right")},Fi.prototype.alignTop=function(){var kn=this.diagram;kn.startTransaction("alignTop");var In=1/0;kn.selection.each(function(Oe){Oe instanceof go.Link||(In=Math.min(Oe.position.y,In))}),kn.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Oe.position.x,In))}),kn.commitTransaction("alignTop")},Fi.prototype.alignBottom=function(){var kn=this.diagram;kn.startTransaction("aligning bottom");var In=-1/0;kn.selection.each(function(Oe){if(!(Oe instanceof go.Link)){var hi=Oe.actualBounds.y+Oe.actualBounds.height;In=Math.max(hi,In)}}),kn.selection.each(function(Oe){Oe instanceof go.Link||Oe.move(new go.Point(Oe.actualBounds.x,In-Oe.actualBounds.height))}),kn.commitTransaction("aligning bottom")},Fi.prototype.alignCenterX=function(){var kn=this.diagram,In=kn.selection.first();if(In){kn.startTransaction("aligning Center X");var Oe=In.actualBounds.x+In.actualBounds.width/2;kn.selection.each(function(hi){hi instanceof go.Link||hi.move(new go.Point(Oe-hi.actualBounds.width/2,hi.actualBounds.y))}),kn.commitTransaction("aligning Center X")}},Fi.prototype.alignCenterY=function(){var kn=this.diagram,In=kn.selection.first();if(In){kn.startTransaction("aligning Center Y");var Oe=In.actualBounds.y+In.actualBounds.height/2;kn.selection.each(function(hi){hi instanceof go.Link||hi.move(new go.Point(hi.actualBounds.x,Oe-hi.actualBounds.height/2))}),kn.commitTransaction("aligning Center Y")}},Fi.prototype.alignColumn=function(kn){var In=this.diagram;In.startTransaction("align Column"),kn===void 0&&(kn=0),kn=parseFloat(kn);var Oe=new Array;In.selection.each(function(ni){ni instanceof go.Link||Oe.push(ni)});for(var hi=0;hi<Oe.length-1;hi++){var Je=Oe[hi],fn=Je.actualBounds.y+Je.actualBounds.height+kn,Ke=Oe[hi+1];Ke.move(new go.Point(Je.actualBounds.x,fn))}In.commitTransaction("align Column")},Fi.prototype.alignRow=function(kn){kn===void 0&&(kn=0),kn=parseFloat(kn);var In=this.diagram;In.startTransaction("align Row");var Oe=new Array;In.selection.each(function(ni){ni instanceof go.Link||Oe.push(ni)});for(var hi=0;hi<Oe.length-1;hi++){var Je=Oe[hi],fn=Je.actualBounds.x+Je.actualBounds.width+kn,Ke=Oe[hi+1];Ke.move(new go.Point(fn,Je.actualBounds.y))}In.commitTransaction("align Row")},Fi.prototype.canRotate=function(kn){var In=this.diagram;return!(In===null||In.isReadOnly||In.isModelReadOnly||In.selection.count<1)},Fi.prototype.rotate=function(kn){kn===void 0&&(kn=90);var In=this.diagram;In.startTransaction("rotate "+kn.toString());var In=this.diagram;In.selection.each(function(Oe){Oe instanceof go.Link||Oe instanceof go.Group||(Oe.angle+=kn)}),In.commitTransaction("rotate "+kn.toString())},Fi.prototype.pullToFront=function(){var kn=this.diagram;kn.startTransaction("pullToFront");var In=new go.Map;kn.selection.each(function(Oe){In.set(Oe.layer,0)}),In.iteratorKeys.each(function(Oe){var hi=0;Oe.parts.each(function(Je){if(!Je.isSelected){var fn=Je.zOrder;isNaN(fn)?Je.zOrder=0:hi=Math.max(hi,fn)}}),In.set(Oe,hi)}),kn.selection.each(function(Oe){Fi._assignZOrder(Oe,In.get(Oe.layer)+1)}),kn.commitTransaction("pullToFront")},Fi.prototype.pushToBack=function(){var kn=this.diagram;kn.startTransaction("pushToBack");var In=new go.Map;kn.selection.each(function(Oe){In.set(Oe.layer,0)}),In.iteratorKeys.each(function(Oe){var hi=0;Oe.parts.each(function(Je){if(!Je.isSelected){var fn=Je.zOrder;isNaN(fn)?Je.zOrder=0:hi=Math.min(hi,fn)}}),In.set(Oe,hi)}),kn.selection.each(function(Oe){Fi._assignZOrder(Oe,In.get(Oe.layer)-1-Fi._findGroupDepth(Oe))}),kn.commitTransaction("pushToBack")},Fi._assignZOrder=function(kn,In,Oe){Oe===void 0&&(Oe=kn),kn.layer===Oe.layer&&(kn.zOrder=In),kn instanceof go.Group&&kn.memberParts.each(function(hi){Fi._assignZOrder(hi,In+1,Oe)})},Fi._findGroupDepth=function(kn){if(kn instanceof go.Group){var In=0;return kn.memberParts.each(function(Oe){In=Math.max(In,Fi._findGroupDepth(Oe))}),In+1}else return 0},Fi.prototype.doKeyDown=function(){var kn=this.diagram;if(kn!==null){var In=kn.lastInput;if(In.key==="Up"||In.key==="Down"||In.key==="Left"||In.key==="Right"){var Oe=this.arrowKeyBehavior;if(Oe==="none")return;if(Oe==="select"){this._arrowKeySelect();return}else if(Oe==="move"){this._arrowKeyMove();return}else if(Oe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Fi.prototype._getAllParts=function(){var kn=new Array;return this.diagram.nodes.each(function(In){kn.push(In)}),this.diagram.parts.each(function(In){kn.push(In)}),kn},Fi.prototype._arrowKeyMove=function(){var kn=this.diagram,In=kn.lastInput,Oe=0,hi=0;if(In.control||In.meta)Oe=1,hi=1;else if(kn.grid!==null){var Je=kn.grid.gridCellSize;hi=Je.width,Oe=Je.height}kn.startTransaction("arrowKeyMove"),kn.selection.each(function(fn){In.key==="Up"?fn.move(new go.Point(fn.actualBounds.x,fn.actualBounds.y-Oe)):In.key==="Down"?fn.move(new go.Point(fn.actualBounds.x,fn.actualBounds.y+Oe)):In.key==="Left"?fn.move(new go.Point(fn.actualBounds.x-hi,fn.actualBounds.y)):In.key==="Right"&&fn.move(new go.Point(fn.actualBounds.x+hi,fn.actualBounds.y))}),kn.commitTransaction("arrowKeyMove")},Fi.prototype._arrowKeySelect=function(){var kn=this.diagram,In=kn.lastInput,Oe=null;In.key==="Up"?Oe=this._findNearestPartTowards(270):In.key==="Down"?Oe=this._findNearestPartTowards(90):In.key==="Left"?Oe=this._findNearestPartTowards(180):In.key==="Right"&&(Oe=this._findNearestPartTowards(0)),Oe!==null&&(In.shift?Oe.isSelected=!0:In.control||In.meta?Oe.isSelected=!Oe.isSelected:kn.select(Oe))},Fi.prototype._findNearestPartTowards=function(kn){var In=this.diagram.selection.first();if(In===null)return null;for(var Oe=In.actualBounds.center,hi=this._getAllParts(),Je=1/0,fn=In,Ke=0;Ke<hi.length;Ke++){var ni=hi[Ke];if(ni!==In&&ni.canSelect()){var Ci=ni.actualBounds.center,_i=Oe.directionPoint(Ci),qi=this._angleCloseness(_i,kn);if(qi<=45){var on=Oe.distanceSquaredPoint(Ci);on*=1+Math.sin(qi*Math.PI/180),on<Je&&(Je=on,fn=ni)}}}return fn},Fi.prototype._angleCloseness=function(kn,In){return Math.min(Math.abs(In-kn),Math.min(Math.abs(In+360-kn),Math.abs(In-360-kn)))},Fi.prototype._arrowKeyTree=function(){var kn=this.diagram,In=kn.selection.first();if(In instanceof go.Node){var Oe=kn.lastInput;if(Oe.key==="Right"){if(!In.isTreeLeaf)if(!In.isTreeExpanded)kn.commandHandler.canExpandTree(In)&&kn.commandHandler.expandTree(In);else{var hi=this._sortTreeChildrenByY(In).first();hi!==null&&kn.select(hi)}}else if(Oe.key==="Left")if(!In.isTreeLeaf&&In.isTreeExpanded)kn.commandHandler.canCollapseTree(In)&&kn.commandHandler.collapseTree(In);else{var Je=In.findTreeParentNode();Je!==null&&kn.select(Je)}else if(Oe.key==="Up"){var Je=In.findTreeParentNode();if(Je!==null){var fn=this._sortTreeChildrenByY(Je),Ke=fn.indexOf(In);if(Ke>0){for(var ni=fn.elt(Ke-1);ni!==null&&ni.isTreeExpanded&&!ni.isTreeLeaf;){var Ci=this._sortTreeChildrenByY(ni);ni=Ci.last()}ni!==null&&kn.select(ni)}else kn.select(Je)}}else if(Oe.key==="Down")if(In.isTreeExpanded&&!In.isTreeLeaf){var hi=this._sortTreeChildrenByY(In).first();hi!==null&&kn.select(hi)}else for(;In!==null;){var Je=In.findTreeParentNode();if(Je===null)break;var fn=this._sortTreeChildrenByY(Je),Ke=fn.indexOf(In);if(Ke<fn.length-1){kn.select(fn.elt(Ke+1));break}else In=Je}var _i=kn.selection.first();_i!==null&&kn.scrollToRect(_i.actualBounds)}},Fi.prototype._sortTreeChildrenByY=function(kn){var In=new go.List().addAll(kn.findTreeChildrenNodes());return In.sort(function(Oe,hi){var Je=Oe.location,fn=hi.location;return Je.y<fn.y?-1:Je.y>fn.y?1:Je.x<fn.x?-1:Je.x>fn.x?1:0}),In},Fi.prototype.copyToClipboard=function(kn){go.CommandHandler.prototype.copyToClipboard.call(this,kn),this._lastPasteOffset.set(this.pasteOffset)},Fi.prototype.pasteFromClipboard=function(){var kn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(kn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),kn},Object.defineProperty(Fi.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(kn){if(kn!=="move"&&kn!=="select"&&kn!=="scroll"&&kn!=="tree"&&kn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+kn);this._arrowKeyBehavior=kn}}),Object.defineProperty(Fi.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(kn){if(!(kn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+kn);this._pasteOffset.set(kn)}});var ki=Fi,Nt=bt(74413),Dt=bt(43604),mt=bt(99064),ft={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pt=bt(24065),At=bt(59301),ue=(kn,In,Oe)=>new Promise((hi,Je)=>{var fn=Ci=>{try{ni(Oe.next(Ci))}catch(_i){Je(_i)}},Ke=Ci=>{try{ni(Oe.throw(Ci))}catch(_i){Je(_i)}},ni=Ci=>Ci.done?hi(Ci.value):Promise.resolve(Ci.value).then(fn,Ke);ni((Oe=Oe.apply(kn,In)).next())});function we({onCancel:kn,callback:In}){let Oe=(0,Ft.useRef)(),hi=(0,Ft.useRef)(),Je=(0,Ft.useRef)(),fn=(0,Ft.useRef)(!1);const Ke=(0,Ft.useRef)(!1),[ni,Ci]=(0,Ft.useState)(0);function _i(){const on=nn.bx.make,di={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"};Oe.current=new nn.S0(hi.current,{padding:20,grid:on(nn.s_,"Grid",on(nn.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),on(nn.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:rr=>{var Er=rr.diagram.commandHandler.addTopLevelParts(rr.diagram.selection,!0);Er||rr.diagram.currentTool.doCancel()},commandHandler:on(ki),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:rr=>{var Er=rr.subject;Er.location=Er.location.copy().snapToGridPoint(rr.diagram.grid.gridOrigin,rr.diagram.grid.gridCellSize),setTimeout(()=>{rr.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:rr=>{var Er=rr.subject;setTimeout(()=>{rr.diagram.commandHandler.editTextBlock()})},LinkRelinked:rr=>{var Er=rr.parameter.part;Er.invalidateConnectedLinks();var no=rr.subject;rr.diagram.toolManager.linkingTool.isForwards?no.toNode.invalidateConnectedLinks():no.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Oe.current.nodeTemplate=on(nn.NB,"Auto",{locationSpot:nn.z6.Center,locationObjectName:"SHAPE",desiredSize:new nn.$u(120,60),minSize:new nn.$u(40,40),resizable:!0,resizeCellSize:new nn.$u(10,10),rotatable:!0},new nn.KX("location","loc",nn.E9.parse).makeTwoWay(nn.E9.stringify),new nn.KX("desiredSize","size",nn.$u.parse).makeTwoWay(nn.$u.stringify),on(nn.bn,{name:"SHAPE",fill:di.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:nn.z6.AllSides,toSpot:nn.z6.AllSides},new nn.KX("figure"),new nn.KX("fill"),new nn.KX("stroke","borderColor"),new nn.KX("strokeWidth","thickness"),new nn.KX("strokeDashArray","dash")),on(nn.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),on(nn.al,{margin:1,textAlign:"center",overflow:nn.al.OverflowEllipsis,editable:!0},new nn.KX("text").makeTwoWay(),new nn.KX("stroke","color"))),Oe.current.nodeTemplate.toolTip=on("ToolTip",on(nn.s_,"Vertical",{maxSize:new nn.$u(200,NaN)},on(nn.al,{font:"bold 10pt sans-serif",textAlign:"center"},new nn.KX("text")),on(nn.al,{font:"10pt sans-serif",textAlign:"center"},new nn.KX("text","details"))));function Vi(rr,Er){var no=(Fr,Gr)=>{Fr.handled=!0,Fr.diagram.model.commit(wo=>{var fo=Gr.part.adornedPart,xo=new nn.E9().setRectSpot(fo.actualBounds,rr);xo.subtract(fo.location),xo.scale(2,2),xo.x+=Math.sign(xo.x)*130,xo.y+=Math.sign(xo.y)*130,xo.add(fo.location),xo.snapToGridPoint(Fr.diagram.grid.gridOrigin,Fr.diagram.grid.gridCellSize);var _r=wo.copyNodeData(fo.data);wo.setGroupKeyForNodeData(_r,wo.getGroupKeyForNodeData(fo.data)),wo.addNodeData(_r);var Si={from:fo.key,to:wo.getKeyForNodeData(_r)};wo.addLinkData(Si);var Ho=Fr.diagram.findNodeForData(_r);Ho.location=xo,Fr.diagram.select(Ho),setTimeout(()=>{Fr.diagram.commandHandler.editTextBlock()},20)})};return on(nn.bn,{figure:Er,alignment:rr,alignmentFocus:rr.opposite(),width:rr.equals(nn.z6.Top)||rr.equals(nn.z6.Bottom)?25:18,height:rr.equals(nn.z6.Top)||rr.equals(nn.z6.Bottom)?18:25,fill:"orange",stroke:di.white,strokeWidth:4,mouseEnter:(Fr,Gr)=>Gr.fill="dodgerblue",mouseLeave:(Fr,Gr)=>Gr.fill="orange",isActionable:!0,click:no,contextClick:no})}function kr(rr){return on(nn.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:(Er,no)=>no.fill="dodgerblue",mouseLeave:(Er,no)=>no.fill="orange",click:(Er,no)=>{Er.diagram.commandHandler.showContextMenu(no.part.adornedPart)}},rr||{})}Oe.current.nodeTemplate.selectionAdornmentTemplate=on(nn.uz,"Spot",on(nn.Vm,{padding:10}),Vi(nn.z6.Top,"TriangleUp"),Vi(nn.z6.Left,"TriangleLeft"),Vi(nn.z6.Right,"TriangleRight"),Vi(nn.z6.Bottom,"TriangleDown"),kr({alignment:new nn.z6(.75,0)}));function ii(rr,Er){return(no,Fr)=>{no.handled=!0,no.diagram.model.commit(Gr=>{Gr.set(Fr.part.adornedPart.data,rr,Er)})}}function wi(rr,Er){return Er||(Er="color"),on(nn.bn,{width:16,height:16,stroke:"lightgray",fill:rr,margin:1,background:"transparent",mouseEnter:(no,Fr)=>Fr.stroke="dodgerblue",mouseLeave:(no,Fr)=>Fr.stroke="lightgray",click:ii(Er,rr),contextClick:ii(Er,rr)})}function dr(){return[on("ContextMenuButton",on(nn.s_,"Horizontal",wi(di.white,"fill"),wi(di.beige,"fill"),wi(di.extralightblue,"fill"),wi(di.extralightred,"fill"))),on("ContextMenuButton",on(nn.s_,"Horizontal",wi(di.lightgray,"fill"),wi(di.lightgreen,"fill"),wi(di.lightblue,"fill"),wi(di.lightred,"fill")))]}function pi(){return[on("ContextMenuButton",on(nn.s_,"Horizontal",wi(di.black),wi(di.green),wi(di.blue),wi(di.red))),on("ContextMenuButton",on(nn.s_,"Horizontal",wi(di.white),wi(di.magenta),wi(di.purple),wi(di.orange)))]}function yi(rr,Er){return Er||(Er="thickness"),on(nn.bn,"LineH",{width:16,height:16,strokeWidth:rr,margin:1,background:"transparent",mouseEnter:(no,Fr)=>Fr.background="dodgerblue",mouseLeave:(no,Fr)=>Fr.background="transparent",click:ii(Er,rr),contextClick:ii(Er,rr)})}function vi(rr,Er){return Er||(Er="dash"),on(nn.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:rr,margin:1,background:"transparent",mouseEnter:(no,Fr)=>Fr.background="dodgerblue",mouseLeave:(no,Fr)=>Fr.background="transparent",click:ii(Er,rr),contextClick:ii(Er,rr)})}function er(){return[on("ContextMenuButton",on(nn.s_,"Horizontal",yi(1),yi(2),yi(3),yi(4))),on("ContextMenuButton",on(nn.s_,"Horizontal",vi(null),vi([2,4]),vi([4,4])))]}function or(rr,Er){return Er||(Er="figure"),on(nn.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:rr,margin:1,background:"transparent",mouseEnter:(no,Fr)=>Fr.fill="dodgerblue",mouseLeave:(no,Fr)=>Fr.fill="lightgray",click:ii(Er,rr),contextClick:ii(Er,rr)})}Oe.current.nodeTemplate.contextMenu=on("ContextMenu",on("ContextMenuButton",on(nn.s_,"Horizontal",or("Rectangle"),or("RoundedRectangle"),or("Ellipse"),or("Diamond"))),on("ContextMenuButton",on(nn.s_,"Horizontal",or("Parallelogram2"),or("ManualOperation"),or("Procedure"),or("Cylinder1"))),on("ContextMenuButton",on(nn.s_,"Horizontal",or("Terminator"),or("CreateRequest"),or("Document"),or("TriangleDown"))),dr(),pi(),er()),Oe.current.groupTemplate=on(nn.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:nn.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(rr,Er)=>{var no=Er.addMembers(Er.diagram.selection,!0);no||Er.diagram.currentTool.doCancel()},avoidable:!1},new nn.KX("location","loc",nn.E9.parse).makeTwoWay(nn.E9.stringify),on(nn.s_,"Auto",{name:"BODY"},on(nn.bn,{parameter1:10,fill:di.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:nn.z6.AllSides,toSpot:nn.z6.AllSides},new nn.KX("fill"),new nn.KX("stroke","color"),new nn.KX("strokeWidth","thickness"),new nn.KX("strokeDashArray","dash")),on(nn.Vm,{background:"transparent",margin:20})),on(nn.al,{alignment:nn.z6.Top,alignmentFocus:nn.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new nn.KX("text"),new nn.KX("stroke","color"))),Oe.current.groupTemplate.selectionAdornmentTemplate=on(nn.uz,"Spot",on(nn.s_,"Auto",on(nn.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),on(nn.Vm,{margin:1.5})),kr({alignment:nn.z6.TopRight,alignmentFocus:nn.z6.BottomRight})),Oe.current.groupTemplate.contextMenu=on("ContextMenu",dr(),pi(),er()),Oe.current.linkTemplate=on(nn.rU,{layerName:"Foreground",routing:nn.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new nn.KX("fromSpot","fromSpot",nn.z6.parse),new nn.KX("toSpot","toSpot",nn.z6.parse),new nn.KX("fromShortLength","dir",rr=>rr>=1?10:0),new nn.KX("toShortLength","dir",rr=>rr>=1?10:0),new nn.KX("points").makeTwoWay(),on(nn.bn,{strokeWidth:2},new nn.KX("stroke","color"),new nn.KX("strokeWidth","thickness"),new nn.KX("strokeDashArray","dash")),on(nn.bn,{segmentIndex:0,segmentOffset:new nn.E9(15,0),segmentOrientation:nn.rU.OrientAlong,alignmentFocus:nn.z6.Right,figure:"circle",width:10,strokeWidth:0},new nn.KX("fill","color"),new nn.KX("visible","dir",rr=>rr===1)),on(nn.bn,{segmentIndex:-1,segmentOffset:new nn.E9(-10,6),segmentOrientation:nn.rU.OrientPlus90,alignmentFocus:nn.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new nn.KX("fill","color"),new nn.KX("visible","dir",rr=>rr>=1),new nn.KX("width","thickness",rr=>7+3*rr),new nn.KX("height","thickness",rr=>7+3*rr),new nn.KX("segmentOffset","thickness",rr=>new nn.E9(-15,4+1.5*rr))),on(nn.bn,{segmentIndex:0,segmentOffset:new nn.E9(15,-6),segmentOrientation:nn.rU.OrientMinus90,alignmentFocus:nn.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new nn.KX("fill","color"),new nn.KX("visible","dir",rr=>rr===2),new nn.KX("width","thickness",rr=>7+3*rr),new nn.KX("height","thickness",rr=>7+3*rr),new nn.KX("segmentOffset","thickness",rr=>new nn.E9(-15,4+1.5*rr))),on(nn.al,{alignmentFocus:new nn.z6(0,1,-4,0),editable:!0},new nn.KX("text").makeTwoWay(),new nn.KX("stroke","color"))),Oe.current.linkTemplate.selectionAdornmentTemplate=on(nn.uz,on(nn.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Rr(2)},new nn.KX("pathPattern","thickness",Rr)),kr({alignmentFocus:new nn.z6(0,0,-6,-4)}));function Rr(rr){return on(nn.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(rr+4).toString()+" H3"})}function Zr(rr){var Er="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return rr===0?Er="M0 0 M16 16 M0 8 L16 8":rr===2&&(Er="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),on(nn.bn,{geometryString:Er,margin:2,background:"transparent",mouseEnter:(no,Fr)=>Fr.background="dodgerblue",mouseLeave:(no,Fr)=>Fr.background="transparent",click:ii("dir",rr),contextClick:ii("dir",rr)})}function Xr(rr){var Er=(no,Fr)=>{no.handled=!0,no.diagram.model.commit(Gr=>{var wo=Fr.part.adornedPart;Gr.set(wo.data,rr?"toSpot":"fromSpot",nn.z6.stringify(nn.z6.AllSides)),(rr?wo.toNode:wo.fromNode).invalidateConnectedLinks()})};return on(nn.bn,{width:12,height:12,fill:"transparent",mouseEnter:(no,Fr)=>Fr.background="dodgerblue",mouseLeave:(no,Fr)=>Fr.background="transparent",click:Er,contextClick:Er})}function ei(rr,Er){var no=0,Fr=nn.z6.RightSide;rr.equals(nn.z6.Top)?(no=270,Fr=nn.z6.TopSide):rr.equals(nn.z6.Left)?(no=180,Fr=nn.z6.LeftSide):rr.equals(nn.z6.Bottom)&&(no=90,Fr=nn.z6.BottomSide),Er||(no-=180);var Gr=(wo,fo)=>{wo.handled=!0,wo.diagram.model.commit(xo=>{var _r=fo.part.adornedPart;xo.set(_r.data,Er?"toSpot":"fromSpot",nn.z6.stringify(Fr)),(Er?_r.toNode:_r.fromNode).invalidateConnectedLinks()})};return on(nn.bn,{alignment:rr,alignmentFocus:rr.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:no,background:"transparent",mouseEnter:(wo,fo)=>fo.background="dodgerblue",mouseLeave:(wo,fo)=>fo.background="transparent",click:Gr,contextClick:Gr})}Oe.current.linkTemplate.contextMenu=on("ContextMenu",pi(),er(),on("ContextMenuButton",on(nn.s_,"Horizontal",Zr(0),Zr(1),Zr(2))),on("ContextMenuButton",on(nn.s_,"Horizontal",on(nn.s_,"Spot",Xr(!1),ei(nn.z6.Top,!1),ei(nn.z6.Left,!1),ei(nn.z6.Right,!1),ei(nn.z6.Bottom,!1)),on(nn.s_,"Spot",{margin:new nn.Zt(0,0,0,2)},Xr(!0),ei(nn.z6.Top,!0),ei(nn.z6.Left,!0),ei(nn.z6.Right,!0),ei(nn.z6.Bottom,!0)))));const _o=`{ "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 Zo=["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 cs(rr){return console.log("shapeName:",rr),Zo.indexOf(rr)>=0}var ri=new nn.YI(Je.current,{maxSelectionCount:1,linkTemplate:on(nn.rU,{locationSpot:nn.z6.Center,selectionAdornmentTemplate:on(nn.uz,"Link",{locationSpot:nn.z6.Center},on(nn.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),on(nn.bn,{toArrow:"Standard",stroke:null}))},{routing:nn.rU.AvoidsNodes,curve:nn.rU.JumpOver,corner:5,toShortLength:4},new nn.KX("points"),on(nn.bn,{isPanelMain:!0,strokeWidth:2}),on(nn.bn,{toArrow:"Standard",stroke:null})),model:new nn.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...nn.bn.getFigureGenerators().toArray().map(rr=>({text:"\u672A\u547D\u540D",size:"100 100",figure:rr.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Oe.current.addDiagramListener("TextEdited",function(rr){var Er;const no=rr.subject.part;var Fr=(Er=document.activeElement)==null?void 0:Er.value;typeof Fr=="string"&&Fr.trim()===""&&Oe.current.model.commit(function(Gr){Gr.set(no.data,"text","\u672A\u547D\u540D"),Oe.current.commandHandler.stopCommand()},"increment")}),ri.nodeTemplate=on(nn.NB,"Auto",{locationSpot:nn.z6.Center},new nn.KX("location","location",nn.E9.parse).makeTwoWay(nn.E9.stringify),on(nn.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 nn.KX("stroke").makeTwoWay(),new nn.KX("fill").makeTwoWay(),new nn.KX("figure")),on(nn.al,{margin:new nn.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new nn.$u(16,16),maxSize:new nn.$u(10,NaN),textAlign:"center",editable:!0},new nn.KX("key").makeTwoWay())),setTimeout(()=>{Oe.current.grid=on(nn.s_,"Grid",on(nn.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),on(nn.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Oe.current.grid.visible=!0,Oe.current.grid.gridCellStroke="darkgray",Oe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Oe.current,Oe.current}const qi=()=>ue(this,null,function*(){var on,di=Oe.current.makeImage();const Vi=yield(0,mt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:di.src,file_data:JSON.stringify({login:(on=(0,pt.eY)())==null?void 0:on.login,data:JSON.parse(Oe.current.model.toJson())})}});In({src:Vi.url})});return(0,Ft.useEffect)(()=>(setTimeout(()=>{_i()},500),Ci(ni+1),()=>{Oe.current=null}),[]),At.createElement("div",{ref:Ke,className:fn.current?`${ft.maxH60} body-overflow-initial`:"body-overflow-initial"},At.createElement(Mn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ni,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:At.createElement(Wn.Z,null,At.createElement(Dt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),At.createElement(Dt.Z,{onClick:()=>{var on,di,Vi=Oe.current.selection.first();if(fn.current=!fn.current,document.activeElement&&Vi){let kr=(di=(on=document.activeElement)==null?void 0:on.value)==null?void 0:di.trim();typeof kr=="string"&&Oe.current.model.commit(function(ii){ii.set(Vi.data,"text",kr||"\u672A\u547D\u540D"),Oe.current.commandHandler.stopCommand()},"increment")}Ci(ni+1)}},At.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:kn},At.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ft.flowChartWrp},At.createElement("div",{style:{display:"flex",height:"100%"}},At.createElement("div",{style:{width:"300px",height:"100%"}},At.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),At.createElement("div",{style:{height:"calc(100% - 50px)"},className:ft.myPaletteDiv,ref:Je})),At.createElement("div",{style:{flex:1,position:"relative"}},At.createElement("div",{ref:hi,style:{height:"80vh"}}))),At.createElement("div",{className:"tr"},At.createElement(qt.ZP,{size:"large",onClick:qi,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var le=we,me=bt(5112),Ue=bt(5871);const ke=me.ZP.Group,Ie={margin:"0 8px"};var rn=({callback:kn,onCancel:In})=>{function Oe(hi){kn(hi)}return Ft.createElement(de.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Oe},Ft.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ft.createElement("span",{style:Ie},"\u5355\u5143\u683C\u6570\uFF1A"),Ft.createElement("span",{style:Ie},"\u884C\u6570"),Ft.createElement(de.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ft.createElement(Ue.Z,null)),Ft.createElement("span",{style:Ie},"\u5217\u6570"),Ft.createElement(de.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ft.createElement(Ue.Z,null))),Ft.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ft.createElement("span",{style:Ie},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ft.createElement(de.default.Item,{name:"align"},Ft.createElement(ke,null,Ft.createElement(me.ZP,{value:"default"},Ft.createElement("i",{className:"fa fa-align-justify"})),Ft.createElement(me.ZP,{value:"left"},Ft.createElement("i",{className:"fa fa-align-left"})),Ft.createElement(me.ZP,{value:"center"},Ft.createElement("i",{className:"fa fa-align-center"})),Ft.createElement(me.ZP,{value:"right"},Ft.createElement("i",{className:"fa fa-align-right"}))))),Ft.createElement("div",{className:"flex-container flex-end"},Ft.createElement(qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(qt.ZP,{type:"ghost",onClick:In},"\u53D6\u6D88")))},Gn=bt(78673),dn=bt(80727),An=bt.n(dn),qn=(0,Ft.forwardRef)(({use3d:kn,width:In,height:Oe,callback:hi,showSaveButton:Je},fn)=>{const Ke=(0,Ft.useRef)(),ni=(0,Ft.useRef)(),[Ci,_i]=(0,Ft.useState)(!1),qi=(0,Ft.useRef)({id:Ke,appName:"graphing",width:In||1e3,height:Oe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ft.useEffect)(()=>{ni.current=new(An())(qi.current,!0),window.onload=function(){ni.current.inject("applet_container")}},[]);const on=()=>{var di=window.ggbApplet.getPNGBase64(1,!0,72);return hi&&hi(di),di};return(0,Ft.useEffect)(()=>{qi.current.appName=Ci?"3D":"graphing",ni.current.inject("applet_container")},[Ci]),(0,Ft.useEffect)(()=>{_i(kn)},[kn]),(0,Ft.useImperativeHandle)(fn,()=>({getImgData:on})),Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ke}),Ft.createElement(Wn.Z,{align:"middle"},Ft.createElement(Dt.Z,{flex:1},Ft.createElement(Gn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ci,onChange:di=>_i(di)})),Ft.createElement(Dt.Z,null,Ft.createElement(qt.ZP,{size:"large",onClick:on,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Rn=bt(41588),Di=bt(8591);const cr="link",Ji="upload-image",Sr="add-flowchart",Nr="draw-image",co="add-flowchart",to="code-block",Kr="add-table",gr="------------",Vr={default:gr,left:`:${gr}`,center:`:${gr}:`,right:`${gr}:`};var pr=bt(58856);function zo(){}let es=0;const yo=1e4,ks="\u2581",ws="@\u2581\u2581@",Wt="@\u2581@",xs=`
**\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`,Ss=["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 Ms(kn){return/^\d+$/.test(kn)?`${kn}px`:kn}const Ea=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",oa={[Ea+"-B"]:"bold",[Ea+"-I"]:"italic"},so={[cr]:"\u6DFB\u52A0\u94FE\u63A5",[to]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ji]:"\u6DFB\u52A0\u56FE\u7247",[Nr]:"\u6DFB\u52A0\u753B\u56FE",[Sr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var br=({defaultValue:kn="",onChange:In,width:Oe="100%",height:hi=400,miniToolbar:Je=!1,isFocus:fn=!1,watch:Ke,insertTemp:ni,mode:Ci="markdown",id:_i="markdown-editor-id",showResizeBar:qi=!1,noStorage:on=!1,showNullButton:di=!1,showNullProgramButton:Vi=!1,hidetoolBar:kr=!1,fullScreen:ii=!1,onBlur:wi,onCMBeforeChange:dr,onFullScreen:pi,className:yi="",disablePaste:vi=!1,disabled:er=!1,disabledFill:or=!1,placeholder:Rr="",values:Zr="",extraUse:Xr})=>{const[ei,_o]=(0,Ft.useState)(null),[Zo,cs]=(0,Ft.useState)(kn),[ri,rr]=(0,Ft.useState)(Ke),[Er,no]=(0,Ft.useState)(ii),[Fr,Gr]=(0,Ft.useState)(""),[wo,fo]=(0,Ft.useState)(0),[xo,_r]=(0,Ft.useState)(hi),[Si,Ho]=(0,Ft.useState)(!1),[Pi,ns]=(0,Ft.useState)(0),[qs,fs]=(0,Ft.useState)(0),Hs=(0,Ft.useRef)(),Gs=(0,Ft.useRef)(),si=(0,Ft.useRef)(),To=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{const ao=window.scrollY||window.pageYOffset;cs(Zr),ei==null||ei.setValue(Zr),window.scrollTo(0,ao)},[Zr]),(0,Ft.useEffect)(()=>{pi==null||pi(Er)},[Er]),(0,Ft.useEffect)(()=>{if(Hs.current){let ao=function(zi,Eo){var Es;if(vi){Eo.preventDefault();return}const la=Eo.clipboardData;if(la){const ca=la.types.toString(),Qo=la.items;if(ca==="Files"||la.types.indexOf("Files")>-1){if(Eo.preventDefault(),Ci=="stex")return;try{let Vs=Qo[1];((Es=Qo[0])==null?void 0:Es.kind)==="file"&&(Vs=Qo[0]);const Ka=Vs.getAsFile(),Wl=Ka.name.split(".").pop();(0,Ye.I)(Ka,La=>{var vs,ai,ka;La.id?((vs=Ka==null?void 0:Ka.type)==null?void 0:vs.indexOf("image"))>-1?mo.replaceSelection(`<img width="100%" src="/api/attachments/${La.id}?type=${La.content_type})" alt="" />`):((ai=Ka==null?void 0:Ka.type)==null?void 0:ai.indexOf("video"))>-1?mo.replaceSelection(`<video width="100%" controls src="/api/attachments/${La.id}"></video>`):((ka=Ka==null?void 0:Ka.type)==null?void 0:ka.indexOf("pdf"))>-1?mo.replaceSelection(`<a href="/api/attachments/${La.id}?type=${Ka.type}&disposition=inline" target="_blank">${Ka.name}</a>`):Ss.includes(Wl)?mo.replaceSelection(`<a href="/api/attachments/${La.id}?type=office&disposition=inline" target="_blank">${Ka.name}</a>`):mo.replaceSelection(`[${Ka.name}](/api/attachments/${La.id}?type=${La.content_type})`):(La==null?void 0:La.status)===401&&(document.location.href="/user/login")})}catch(Vs){Di.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mo=re().fromTextArea(Hs.current,{mode:Ci,lineNumbers:!Je,lineWrapping:!0,value:kn,autoCloseTags:!0,autoCloseBrackets:!0});return mo.on("keyup",function(zi,Eo){Eo.keyCode===8&&(zi.getValue()==""?mo.setOption("placeholder",Rr):mo.setOption("placeholder",null))}),mo.on("keydown",function(zi,Eo){if(Eo.keyCode===8){var Es=rs(zi);Es&&Eo.preventDefault()}}),fn&&mo.focus(),mo.on("paste",ao),er&&mo.on("beforeChange",function(zi,Eo){(Eo.origin==="paste"||Eo.origin==="+input")&&Eo.cancel()}),_o(mo),()=>{mo.off("paste",ao)}}},[]);const us=(0,Ft.useCallback)(()=>{if(Gs.current)try{}catch(ao){console.log(ao,"---- to set md editor body height")}},[xo,Gs,Er]);(0,Ft.useEffect)(()=>{function ao(){let mo=new Be.Z(zi=>{for(let Eo of zi)(Eo.target.offsetHeight>0||Eo.target.offsetWidth>0)&&(us(),ei.setSize("100%","100%"),ei.refresh())});return mo.observe(Hs.current.parentElement),mo}if(ei){const mo=ao();return()=>{var zi,Eo;(zi=Hs.current)!=null&&zi.parentElement&&mo.unobserve((Eo=Hs.current)==null?void 0:Eo.parentElement)}}},[ei,us]),(0,Ft.useEffect)(()=>{if(ei){let ao=[];for(const[mo,zi]of Object.entries(oa)){let Eo={[mo]:()=>{Cr(zi)}};ao.push(Eo),ei.addKeyMap(Eo)}return()=>{for(let mo of ao)ei.removeKeyMap(mo)}}},[ei]),(0,Ft.useEffect)(()=>{ii!==Er&&no(ii)},[ii]),(0,pr.Z)(()=>{if(!on&&wo>0){let ao=new Date().getTime(),mo=window.sessionStorage.getItem(_i);ao>=wo+yo&&(!mo||mo!==Zo)&&(window.sessionStorage.setItem(_i,Zo),Ho(!0))}},yo),(0,Ft.useEffect)(()=>{rr(Ke)},[ei,Ke]),(0,Ft.useEffect)(()=>{ei&&fn&&ei.focus()},[ei,fn]),(0,Ft.useEffect)(()=>{if(ri&&ei){let ao=function(zi){let Eo=zi.target;if(To.current){let Es=Eo.scrollTop/Eo.scrollHeight;To.current.scrollTop=To.current.scrollHeight*Es}};const mo=ei.getScrollerElement();return mo.addEventListener("scroll",ao),()=>{mo.removeEventListener("scroll",ao)}}},[ei,ri]),(0,Ft.useEffect)(()=>{if(ei&&dr){let ao=function(mo,zi){dr(mo,zi)};return ei.on("beforeChange",ao),()=>{ei.off("beforeChange",ao)}}},[ei,dr]),(0,Ft.useEffect)(()=>{if(ei&&wi){let ao=function(){wi(ei.getValue())};return ei.on("blur",ao),()=>{ei.off("blur",ao)}}},[ei,wi]);function rs(ao,mo){var zi=ao.getDoc(),Eo=zi.getCursor(),Es=zi.getLine(Eo.line),la=Es.charAt(Eo.ch-1),ca=Es.lastIndexOf("@\u2581@",Eo.ch),Qo=Es.lastIndexOf("@\u2581\u2581@",Eo.ch),Vs=ca>Qo?ca:Qo,Ka=ca>Qo?3:4;if(ws.indexOf(la)===-1)return null;if(console.log("change1:",mo,ao,Es,Eo,Vs,ca,Qo,la),Vs>=0&&Eo.ch-Vs<5){var Wl=Vs+Ka;return zi.replaceRange("",{line:Eo.line,ch:Vs},{line:Eo.line,ch:Wl}),{line:Eo.line,ch:Wl}}return null}(0,Ft.useEffect)(()=>{if(ei){let ao=function(mo,zi){const Eo=mo.getValue();cs(Eo),fo(new Date().getTime()),mo.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),In&&(Vi?In(Eo,$r(Eo)):In(Eo))};return ei.on("change",ao),()=>{ei.off("change",ao)}}},[ei,In]),(0,Ft.useEffect)(()=>{if(ei)if(kn==null)ei.setValue(""),cs("");else{const ao=window.scrollY||window.pageYOffset;kn!==ei.getValue()&&(ei.setValue(kn),cs(kn),ei.setCursor(er?1:ei.lineCount(),0),window.scrollTo(0,ao))}},[ei,kn]);const Cr=(0,Ft.useCallback)(ao=>{const mo=ei.getCursor(),zi=ei.getSelection();let Eo=zi.split(`
`);switch(ao){case"bold":return ei.replaceSelection("**"+zi+"**"),zi===""&&ei.setCursor(mo.line,mo.ch+2),ei.focus();case"italic":return ei.replaceSelection("*"+zi+"*"),zi===""&&ei.setCursor(mo.line,mo.ch+1),ei.focus();case"code":return ei.replaceSelection("`"+zi+"`"),zi===""&&ei.setCursor(mo.line,mo.ch+1),ei.focus();case"inline-latex":return Gr("inline-latex"),ei.focus();case"latex":return ei.replaceSelection("```latex\n"+zi+"\n```"),ei.setCursor(mo.line+1,zi.length+1),ei.focus();case"line-break":return ei.replaceSelection(`<br/>
`),ei.focus();case"list-ul":return zi===""?ei.replaceSelection("- "+zi):ei.replaceSelection(Eo.map(Es=>Es===""?"":`- ${Es}`).join(`
`)),ei.focus();case"list-ol":return zi===""?ei.replaceSelection("1. "+zi):ei.replaceSelection(Eo.map((Es,la)=>Es===""?"":`${la+1}. ${Es}`).join(`
`)),ei.focus();case"add-null-ch":return zi===""&&ei.setCursor(mo.line,mo.ch),ei.replaceSelection(ks),ei.focus();case"add-signal":return zi===""&&ei.setCursor(mo.line,mo.ch),ei.replaceSelection(Wt),ei.focus();case"add-multiple":return zi===""&&ei.setCursor(mo.line,mo.ch),ei.replaceSelection(ws),ei.focus();case"inster-template-1":return zi===""&&ei.setCursor(mo.line,mo.ch),ei.replaceSelection(xs),ei.focus();case"eraser":return ei.setValue(""),ei.focus();case"trigger-watch":return rr(!ri),ei.focus();case"trigger-full-screen":return no(!Er),ei.focus();case cr:Gr(cr);return;case to:Gr(to);return;case Ji:Gr(Ji);return;case Nr:Gr(Nr);return;case"maths-latex":Gr("maths-latex");return;case Sr:Gr(Sr);return;case Kr:Gr(Kr);return;default:throw new Error}},[ei,ri,Er]),Le=(0,Ft.useCallback)((ao,mo)=>{var zi,Eo,Es,la,ca,Qo;switch(Gr(""),Fr){case cr:const{title:vs,link:ai}=ao;return ei.replaceSelection(`[${vs}](${ai})`),ei.focus();case to:const{language:ka,content:bc}=ao;return ei.replaceSelection(["```"+ka,bc,"```"].join(`
`)),ei.focus();case"maths-latex":for(var Vs=atob(ao),Ka=new Uint8Array(Vs.length),Wl=0;Wl<Vs.length;Wl++)Ka[Wl]=Vs.charCodeAt(Wl);var La=new Blob([Ka],{type:"image/png"});(0,Ye.I)(La,is=>{is.id?ei.replaceSelection(`![,](/api/attachments/${is.id}?type=${is.content_type})`):(is==null?void 0:is.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ei.replaceSelection("`$$"+ao+"$$`");break;case Ji:case Nr:case co:const{src:Vl,alt:kh}=ao,sl=mo,Wc=(Es=(Eo=(zi=sl==null?void 0:sl.name)==null?void 0:zi.split("."))==null?void 0:Eo.pop)==null?void 0:Es.call(Eo);return((la=sl==null?void 0:sl.type)==null?void 0:la.indexOf("image"))>-1||!(sl!=null&&sl.type)?sl!=null&&sl.align||sl!=null&&sl.width?ei.replaceSelection(`<p style="text-align:${sl.align||"initial"}"><img width="${sl.width?sl.width+"%":"initial"}" src="${Vl}" alt="${kh||""}" /></p>`):ei.replaceSelection(`<img width="100%" src="${Vl}" alt="${kh||""}" />`):((ca=sl==null?void 0:sl.type)==null?void 0:ca.indexOf("video"))>-1?ei.replaceSelection(`<video width="100%" controls src="${Vl}"></video>`):((Qo=sl==null?void 0:sl.type)==null?void 0:Qo.indexOf("pdf"))>-1?ei.replaceSelection(`<a href="${Vl}?type=${sl.type}&disposition=inline" target="_blank">${sl.name}</a>`):Ss.includes(Wc)?ei.replaceSelection(`<a href="${Vl}?type=office&disposition=inline" target="_blank">${sl.name}</a>`):ei.replaceSelection(`[${sl.name}](${Vl})`),ei.focus();case Kr:const{row:Fl,col:Is,align:ia}=ao;let Ph=`
`;for(let is=0;is<Fl;is++){let Zs=[],ys=[];for(let Hr=0;Hr<Is;Hr++)is===1&&ys.push(Vr[ia]),Zs.push(" ");is===1&&(Ph+=`| ${ys.join(" | ")} |
`),Ph+=`| ${Zs.join(Is===1?"":" | ")} |
`}return ei.replaceSelection(Ph+`
`),ei.focus();default:throw new Error}},[ei,Fr]),qo=(0,Ft.useMemo)(()=>{switch(Fr){case cr:return Ft.createElement(Bn,{callback:Le,onCancel:ta});case to:return Ft.createElement(Ln.Z,{callback:Le,onCancel:ta});case Ji:return Ft.createElement(Ye.Z,{callback:Le,onCancel:ta});case Sr:return Ft.createElement(le,{callback:Le,onCancel:ta});case Kr:return Ft.createElement(rn,{callback:Le,onCancel:ta});case"maths-latex":return Ft.createElement(qn,{showSaveButton:!0,callback:Le});case"inline-latex":return Ft.createElement(Rn.Z,{showSaveButton:!0,callback:Le});default:return null}},[Fr]);function ta(){Gr("")}(0,Ft.useEffect)(()=>{if(si.current){let ao=function(ca){Es=!0,la=ca.pageY},mo=function(){Es=!1},zi=function(ca){if(Es){let Qo=ca.pageY-la;Qo<0&&(Qo=0),Qo>300&&(Qo=300);let Vs=hi+Qo+"px";_r(Vs)}},Eo=si.current,Es=!1,la=0;return Eo.addEventListener("mousedown",ao),document.addEventListener("mousemove",zi),document.addEventListener("mouseup",mo),()=>{Eo.removeEventListener("mousedown",ao),document.removeEventListener("mousemove",zi),document.removeEventListener("mouseup",mo)}}},[ei,si]),(0,Ft.useEffect)(()=>{_r(hi)},[hi]);const qa=Ms(Oe),ol=Ms(xo),ml={width:qa,height:ol},vr=(0,Ft.useMemo)(()=>{if(wo){let ao=new Date(wo),mo=ao.getHours(),zi=ao.getMinutes(),Eo=ao.getSeconds();return mo=mo<10?"0"+mo:mo,zi=zi<10?"0"+zi:zi,Eo=Eo<10?"0"+Eo:Eo,`${mo}:${zi}:${Eo}`}return 0},[wo]),$r=ao=>{const mo=[];if(Vi){let zi=-1;ao=ao.replace(/(@▁▁@|@▁@)/g,function(Eo,Es,la){mo.push({multiLine:Eo!==Wt})})}return mo};function Xo(){window.sessionStorage.removeItem(_i),Ho(!1),fo(0)}function Lo(){Ho(!1),fo(0),ei.setValue(window.sessionStorage.getItem(_i))}(0,Ft.useEffect)(()=>{so[Fr]&&Fr!==Nr&&Fr!==Sr&&setTimeout(()=>{const ao=document.getElementsByClassName("markdown-popup-form")[0],mo=window.innerWidth/2-ao.offsetWidth/2,zi=window.innerHeight/2-ao.offsetHeight/2;ns(mo),fs(zi)},0)},[Fr]);const os=ao=>{ao.preventDefault();const mo=ao.clientX-Pi,zi=ao.clientY-qs;document.body.onmousemove=Eo=>{let Es=Eo.clientX-mo,la=Eo.clientY-zi;const ca=document.getElementsByClassName("markdown-popup-form")[0],Qo=window.innerWidth-ca.offsetWidth,Vs=window.innerHeight-ca.offsetHeight;Es=Math.max(0,Math.min(Es,Qo)),la=Math.max(0,Math.min(la,Vs)),Fa(Eo.clientX,Eo.clientY,mo,zi)&&(ns(Es),fs(la))},document.body.onmouseup=function(){document.body.onmousemove=null}},Fa=(ao,mo,zi,Eo)=>{const Es=document.body.clientHeight,la=document.body.clientWidth;return ao<20&&zi>ao||ao>la-20&&zi<ao||mo<20&&Eo>mo||mo>Es-20&&Eo<mo?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:"markdown-editor-wrapper",ref:Gs},Ft.createElement("div",{className:`markdown-editor-container ${yi} ${ri?"on-preview":""} ${Je?"mini":""} ${Er?"full-screen":""}`,style:ml},Ft.createElement(ne,{insertTemp:ni,watch:ri,fullScreen:Er,showNullButton:di,showNullProgramButton:Vi,onActionCallback:Cr,hidetoolBar:kr,extraUse:Xr}),Ft.createElement("div",{className:"markdown-editor-body"},Ft.createElement("div",{className:"codemirror-container"},Ft.createElement("textarea",{ref:Hs,placeholder:Rr})),ri?Ft.createElement("div",{ref:To,className:"preview-container"},Ci==="stex"&&Ft.createElement(zt,{value:Zo}),Ci!=="stex"&&Ft.createElement(oe.Z,{disabledFill:or,showProgramFill:Vi,value:Zo})):null))),qi?Ft.createElement("a",{ref:si,className:"editor-resize"}):null,Fr===Nr&&Ft.createElement(xi,{callback:Le,onCancel:ta}),Fr===Sr&&Ft.createElement(le,{callback:Le,onCancel:ta}),Ft.createElement(ae.Z,null,so[Fr]&&Fr!==Nr&&Fr!==Sr?Ft.createElement(Mn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pi,top:qs},title:Ft.createElement("div",{style:{cursor:"move"},onMouseDown:os},so[Fr]),open:!0,onCancel:ta,footer:null,destroyOnClose:!0,width:Fr===Sr?"1200px":null,height:Fr===Sr?"80vh":null,className:"markdown-popup-form"},qo):null))}},28451:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return Ot},I:function(){return ne}});var Ft=bt(78241),ce=bt(8591),re=bt(92832),Be=bt(81327),ee=bt(5871),Yt=bt(5112),It=bt(3113),jt=bt(77903),Xt=bt(59301),Pt=bt(59301),oe=Object.defineProperty,zt=Object.defineProperties,Jt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,lt=(ae,de,be)=>de in ae?oe(ae,de,{enumerable:!0,configurable:!0,writable:!0,value:be}):ae[de]=be,rt=(ae,de)=>{for(var be in de||(de={}))et.call(de,be)&&lt(ae,be,de[be]);if(Ct)for(var be of Ct(de))tt.call(de,be)&&lt(ae,be,de[be]);return ae},ut=(ae,de)=>zt(ae,Jt(de));const{useForm:ct}=Ft.default,wt={width:280,marginRight:10},Mt={labelCol:{span:5},wrapperCol:{span:19}};var Ot=({callback:ae,onCancel:de})=>{const[be]=ct();let qt=(0,Xt.useRef)();function ze(_e){qt.current.width=be.getFieldValue("width"),qt.current.align=be.getFieldValue("align"),ae(_e,qt.current)}function Vt(_e,Ne){if(_e.status===-1){ce.ZP.error(_e.message);return}be.setFieldsValue({src:`/api/attachments/${_e.id}`,type:Ne.type})}function Ge(_e){let Ne=_e.target.files[0];qt.current=Ne,ne(Ne,Vt)}return Pt.createElement(Ft.default,ut(rt({form:be},Mt),{className:"upload-image-panel",onFinish:ze,style:{width:470,overflow:"hidden"}}),Pt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Pt.createElement("div",{className:"flex-container"},Pt.createElement(Ft.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Pt.createElement(re.default,{style:wt})),Pt.createElement(Ht,{onFileChange:Ge}))),Pt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Pt.createElement(re.default,{style:{width:264}})),Pt.createElement(Ft.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Pt.createElement(Be.Z,null,Pt.createElement(Ft.default.Item,{name:"width",style:{margin:0}},Pt.createElement(ee.Z,{style:{width:264}})),Pt.createElement("span",{className:"ml8"},"%"))),Pt.createElement(Ft.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Pt.createElement(Yt.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Pt.createElement("aside",null,Pt.createElement(Ft.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Pt.createElement(It.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Pt.createElement(It.ZP,{type:"default",onClick:de},"\u53D6\u6D88"))))};function Ht({onFileChange:ae}){return Pt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Pt.createElement("input",{type:"file",onChange:ae}))}function ne(ae,de){if(!ae)throw new String("\u6CA1\u6709\u6587\u4EF6");let be=new FormData;be.append("editormd-image-file",ae),be.append("file_param_name","editormd-image-file"),be.append("byxhr","true");var qt=new window.XMLHttpRequest;qt.withCredentials=!0,qt.addEventListener("load",function(ze){de(JSON.parse(ze.target.responseText),ae)},!1),qt.addEventListener("error",function(ze){console.error(ze)},!1),qt.open("POST",`${jt.KI}/api/attachments.json`),qt.send(be)}},79346:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return re}});var Ft=bt(59301),ce=bt(4676);class re extends Ft.Component{constructor(ee){super(ee);const Yt=window.document;this.node=Yt.createElement("div"),Yt.body.appendChild(this.node)}render(){const{children:ee}=this.props;return(0,ce.createPortal)(ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(ui,wn,bt){"use strict";bt.d(wn,{SV:function(){return ue},ZP:function(){return At}});var Ft=bt(59301),ce=bt(76374);const re={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"]},Be={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"]},ee={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(`
`)}]},Yt={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(`
`)}]},It={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 jt=bt(53184),Xt=bt.n(jt),Pt=Object.defineProperty,oe=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Jt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(we,le,me)=>le in we?Pt(we,le,{enumerable:!0,configurable:!0,writable:!0,value:me}):we[le]=me,lt=(we,le)=>{for(var me in le||(le={}))Ct.call(le,me)&&tt(we,me,le[me]);if(Jt)for(var me of Jt(le))et.call(le,me)&&tt(we,me,le[me]);return we},rt=(we,le)=>oe(we,zt(le)),ut=(we,le,me)=>new Promise((Ue,ke)=>{var Ie=dn=>{try{Gn(me.next(dn))}catch(An){ke(An)}},rn=dn=>{try{Gn(me.throw(dn))}catch(An){ke(An)}},Gn=dn=>dn.done?Ue(dn.value):Promise.resolve(dn.value).then(Ie,rn);Gn((me=me.apply(we,le)).next())});const ct={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"]}},wt=(we,le)=>le.map(me=>({label:me,kind:we.languages.CompletionItemKind.Keyword,insertText:me})),Mt=we=>Object.keys(ct.tables).map(le=>({label:le,kind:we.languages.CompletionItemKind.Variable,insertText:le})),Ot=(we,le)=>{const me=ct.tables[we];return me?me.map(Ue=>({label:Ue,kind:le.languages.CompletionItemKind.Field,insertText:Ue})):[]};function Ht(we,le,me,Ue,ke){let Ie=le.getWordUntilPosition(me),rn={startLineNumber:me.lineNumber,endLineNumber:me.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},Gn=Ue.map(dn=>({label:dn,kind:we.languages.CompletionItemKind.Keyword,insertText:dn,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:rn}));return ke.map(dn=>{Gn.push(rt(lt({},dn),{range:rn}))}),Gn}var ne=we=>{ct.languages.map(ke=>(we.languages.registerDocumentFormattingEditProvider(ke,{provideDocumentFormattingEdits(Ie,rn,Gn){return ut(this,null,function*(){const dn=Xt()(Ie.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Ie.getFullModelRange(),text:dn}]})}}),ke));const le=ee.quickKey.map(ke=>({label:ke.label,kind:we.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet})),me=Yt.quickKey.map(ke=>({label:ke.label,kind:we.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ue=Be.quickKey.map(ke=>({label:ke.label,kind:we.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet}));we.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ke,Ie){var rn=ke.getWordUntilPosition(Ie),Gn={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},dn=ke.getLineContent(Ie.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...ee.keywords.map(An=>({label:An,kind:we.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...ee.quickKey.map(An=>({label:An.label,kind:we.languages.CompletionItemKind.Function,documentation:An.content,insertText:dn.startsWith("#")?An.content.replace(/#/,""):An.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),we.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ke,Ie){var rn=ke.getWordUntilPosition(Ie),Gn={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn};return{suggestions:[...re.keywords.map(dn=>({label:dn,kind:we.languages.CompletionItemKind.Function,documentation:dn,insertText:dn,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),we.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ke,Ie){var rn=ke.getWordUntilPosition(Ie),Gn={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},dn=ke.getLineContent(Ie.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...Be.keywords.map(An=>({label:An,kind:we.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...Be.quickKey.map(An=>({label:An.label,kind:we.languages.CompletionItemKind.Function,documentation:An.content,insertText:dn.startsWith("#")?An.content.replace(/#/,""):An.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),we.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ke,Ie){var rn=ke.getWordUntilPosition(Ie),Gn={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},dn=ke.getLineContent(Ie.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...It.keywords.map(An=>({label:An,kind:we.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...It.quickKey.map(An=>({label:An.label,kind:we.languages.CompletionItemKind.Function,documentation:An.content,insertText:dn.startsWith("#")?An.content.replace(/#/,""):An.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}}),we.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ke,Ie){var rn=ke.getWordUntilPosition(Ie),Gn={startLineNumber:Ie.lineNumber,endLineNumber:Ie.lineNumber,startColumn:rn.startColumn,endColumn:rn.endColumn},dn=ke.getLineContent(Ie.lineNumber).substring(rn.startColumn-2,rn.endColumn);return{suggestions:[...Yt.keywords.map(An=>({label:An,kind:we.languages.CompletionItemKind.Function,documentation:An,insertText:An,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn})),...Yt.quickKey.map(An=>({label:An.label,kind:we.languages.CompletionItemKind.Function,documentation:An.content,insertText:dn.startsWith("#")?An.content.replace(/#/,""):An.content,insertTextRules:we.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Gn}))]}}})};const ae="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var de=Object.defineProperty,be=(we,le,me)=>le in we?de(we,le,{enumerable:!0,configurable:!0,writable:!0,value:me}):we[le]=me,qt=(we,le,me)=>be(we,typeof le!="symbol"?le+"":le,me);const ze=class bw{constructor(le,me,Ue){this.placeholder=le,this.editor=me,this.monaco=Ue,me.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)}};qt(ze,"ID","editor.widget.placeholderHint");var Ge=ze,_e=bt(96236),Ne=bt(8591),We=bt(6848),Re=bt(89392),ve=bt(34604),ie=bt(56102),Se=Object.defineProperty,Bn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,fi=(we,le,me)=>le in we?Se(we,le,{enumerable:!0,configurable:!0,writable:!0,value:me}):we[le]=me,Hn=(we,le)=>{for(var me in le||(le={}))Mn.call(le,me)&&fi(we,me,le[me]);if(Ye)for(var me of Ye(le))Wn.call(le,me)&&fi(we,me,le[me]);return we},xi=(we,le)=>Bn(we,Ln(le)),nn=(we,le)=>{var me={};for(var Ue in we)Mn.call(we,Ue)&&le.indexOf(Ue)<0&&(me[Ue]=we[Ue]);if(we!=null&&Ye)for(var Ue of Ye(we))le.indexOf(Ue)<0&&Wn.call(we,Ue)&&(me[Ue]=we[Ue]);return me},Fi=(we,le,me)=>new Promise((Ue,ke)=>{var Ie=dn=>{try{Gn(me.next(dn))}catch(An){ke(An)}},rn=dn=>{try{Gn(me.throw(dn))}catch(An){ke(An)}},Gn=dn=>dn.done?Ue(dn.value):Promise.resolve(dn.value).then(Ie,rn);Gn((me=me.apply(we,le)).next())});function ki(we){return/^\d+$/.test(we)?`${we}px`:we}function Nt(){}let Dt=!1;const mt={"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 ft(we=[]){let le=we;if(Array.isArray(we)){for(let me=0;me<we.length;me++){let Ue=mt[we[me]];if(Ue)return Ue}return le[0]}return mt[le]||le}let pt=null;var At=we=>{var le=we,{width:me="100%",height:Ue="100%",value:ke,language:Ie="javascript",style:rn={},options:Gn={},overrideServices:dn={},theme:An="vs-dark",onEditBlur:Dn,isCopy:qn=!1,onSave:Rn,autoHeight:Di=!1,forbidCopy:cr=!1,onChange:Ji=Nt,editorDidMount:Sr=Nt,onFocus:Nr=Nt,onBreakPoint:co=Nt,breakPointValue:to=[],filename:Kr="educoder.txt",errorLine:gr,errorContent:Vr="",highlightLine:pr,openBreakPoint:zo=!1,placeholder:es="",showMiniMap:yo=!0}=le,ks=nn(le,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const ws=(0,Ft.useRef)(),Wt=(0,Ft.useRef)({}),xs=(0,Ft.useRef)(),Ss=(0,Ft.useRef)(),Ms=(0,Ft.useRef)([]),ma=(0,Ft.useRef)(!1),Ea=(0,Ft.useRef)(),oa=(0,Ft.useRef)(),so=(0,Ft.useRef)(!1),[br,kn]=(0,Ft.useState)(!1);function In(){let wi;return ws.current&&(wi=new ce.Z(dr=>{for(let pi of dr)(pi.target.offsetHeight>0||pi.target.offsetWidth>0)&&Wt.current.instance.layout()}),wi.observe(ws.current)),wi}function Oe(){Ne.ZP.warning({content:decodeURIComponent(ae),key:"monaco-editor-tip"})}const hi=()=>{let wi=Wt.current.instance;if(ke!=null&&wi&&br){const dr=wi.getModel();dr&&ke!==dr.getValue()&&(Dt=!0,dr.setValue(ke),wi.layout(),Dt=!1)}};(0,Ft.useEffect)(()=>{const wi=ve.Z.subscribe("formatDocument",dr=>{var pi;let yi=Wt.current.instance;(pi=yi==null?void 0:yi.getAction)==null||pi.call(yi,"editor.action.formatDocument").run()});return window.updateMonacoValue=dr=>{Ji(dr)},wi},[]),(0,Ft.useEffect)(()=>{var wi;let dr=Wt.current.instance;Ss.current&&clearTimeout(Ss.current),Ss.current=setTimeout(()=>{hi()},500),ke&&(ke!=null&&ke.length)&&((wi=dr==null?void 0:dr.updateOptions)==null||wi.call(dr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ke.split(/\r\n|\r|\n/g).length))+3,5)}))},[ke,br,Wt.current]),(0,Ft.useEffect)(()=>{if(gr&&Wt.current&&Wt.current.instance){let dr=Wt.current.instance;dr.changeViewZones(function(pi){var yi=document.createElement("div");yi.style.padding="10px 20px",yi.style.width="calc(100% - 20px)",yi.className="my-error-line-wrp",yi.innerHTML=Vr,pi.addZone({afterLineNumber:gr||11,heightInLines:3,domNode:yi})});var wi={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}};dr.addOverlayWidget(wi),dr.revealPositionInCenter({lineNumber:20,column:1})}},[gr,Wt.current,br]);const Je=(wi="",dr)=>{if(!wi||wi.trim()==="")return!0;const yi=Wt.current.instance.getModel().getLineTokens(dr);let vi=!1;for(let er=0;er<2;er++)yi.getStandardTokenType(er)===1&&(vi=!0);return vi};(0,Ft.useEffect)(()=>{var wi;const dr=(wi=Wt.current)==null?void 0:wi.instance;if(dr&&br&&cr){const pi=dr.onDidBlurEditorWidget(()=>{so.current=!1}),yi=dr.onDidFocusEditorText(()=>{so.current=!0});return()=>{pi.dispose(),yi.dispose()}}},[Wt.current,br,cr]),(0,Ft.useEffect)(()=>{var wi;if((wi=Wt.current)!=null&&wi.instance&&br&&zo){let dr=Wt.current.instance,pi=dr.getModel();if(!pi)return;(()=>{var ri;let rr=[],Er=[];const no=pi.getAllDecorations();for(let Gr of no)Gr.options.className==="highlighted-line"&&(rr.push((ri=Gr==null?void 0:Gr.range)==null?void 0:ri.startLineNumber),Er.push(Gr==null?void 0:Gr.id));if(pr===rr[0])return;pi.deltaDecorations(Er,[]);const Fr=pi.getLineCount();pr&&pr<=Fr&&(dr.deltaDecorations([],[{range:new pt.Range(pr,1,pr,pi.getLineMaxColumn(pr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),dr.revealLineInCenter(pr))})();const vi=(ri=!1)=>{var rr;let Er=[],no=[];const Fr=pi.getAllDecorations();for(let Gr of Fr)Gr.options.linesDecorationsClassName==="breakpoints-select"&&(Er.push((rr=Gr==null?void 0:Gr.range)==null?void 0:rr.startLineNumber),no.push(Gr==null?void 0:Gr.id));if(ri)return{lines:Er,ids:no};co(Er)},er=ri=>Fi(void 0,null,function*(){let rr={range:new pt.Range(ri,1,ri,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield pi.deltaDecorations([],[rr]),vi()}),or=ri=>Fi(void 0,null,function*(){let rr=[];const Er=dr.getLineDecorations(ri);for(let no of Er)no.options.linesDecorationsClassName==="breakpoints-select"&&rr.push(no.id);yield pi.deltaDecorations(rr,[]),vi()}),Rr=ri=>{let rr=dr.getLineDecorations(ri);for(let Er of rr)if(Er.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Re.isEqual)(to,vi(!0).lines)){pi.deltaDecorations(vi(!0).ids,[]);const ri=to.map(rr=>({range:new pt.Range(rr,1,rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));pi.deltaDecorations([],ri)}const Zr=dr.onDidChangeModelContent(ri=>{let rr=dr.getPosition();if(rr){let Er=rr.lineNumber;clearTimeout(oa.current),oa.current=setTimeout(()=>{Je(pi.getLineContent(Er),Er)?or(Er):Rr(Er)?(or(Er),er(Er)):vi()},100)}}),Xr=dr.onMouseDown(ri=>{var rr,Er,no;if(ri.target.detail&&((no=(Er=(rr=ri.target)==null?void 0:rr.element)==null?void 0:Er.className)!=null&&no.includes("line-numbers"))){let Fr=ri.target.position.lineNumber;if(Je(pi.getLineContent(Fr),Fr))return;Rr(Fr)?or(Fr):er(Fr)}}),ei=ri=>{let rr={range:new pt.Range(ri,1,ri,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ms.current=dr.deltaDecorations(Ms.current,[rr])},_o=()=>{Ms.current=dr.deltaDecorations(Ms.current,[])},Zo=dr.onMouseMove(ri=>{var rr,Er,no;if(_o(),ri.target.detail&&((no=(Er=(rr=ri.target)==null?void 0:rr.element)==null?void 0:Er.className)!=null&&no.includes("line-numbers"))){let Fr=ri.target.position.lineNumber;if(Je(pi.getLineContent(Fr),Fr))return;ei(Fr)}}),cs=dr.onMouseLeave(()=>{_o()});return()=>{Zr.dispose(),Xr.dispose(),Zo.dispose(),cs.dispose()}}},[Wt.current,br,to,pr,zo,Ie]),(0,Ft.useEffect)(()=>{var wi;(wi=Wt.current)!=null&&wi.instance&&zo&&Wt.current.instance.setPosition({lineNumber:0,column:0})},[pr]);function fn(){let wi=Wt.current.instance;if(wi){const dr=wi.getSelection(),pi=Wt.current.pastePos||{},yi=new pt.Range(pi.startLineNumber||dr.endLineNumber,pi.startColumn||dr.endColumn,pi.endLineNumber||dr.endLineNumber,pi.endColumn||dr.endColumn);setTimeout(()=>{wi.executeEdits("",[{range:yi,text:""}])},300)}}function Ke(wi){(window.navigator.platform.match("Mac")?wi.metaKey:wi.ctrlKey)&&wi.keyCode==83&&(wi.preventDefault(),Rn())}const ni=()=>{if(Di&&Wt.current.instance){const wi=Wt.current.instance.getContentHeight();kr(wi<Ue?Ue:wi)}else kr(Ue)};function Ci(wi){var dr=document.createEvent("MouseEvents");dr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),wi.dispatchEvent(dr)}const _i=wi=>{if(!so.current)return;const{keyCode:dr,ctrlKey:pi,metaKey:yi,target:vi,type:er}=wi;return(er==="paste"||(dr===67||dr===86)&&(yi||pi))&&vi.nodeName==="TEXTAREA"&&(Oe(),wi.preventDefault()),!1};function qi(wi,dr){var pi=window.URL||window.webkitURL||window,yi=new Blob([dr]),vi=document.createElementNS("http://www.w3.org/1999/xhtml","a");vi.href=pi.createObjectURL(yi),vi.download=wi,Ci(vi)}(0,Ft.useEffect)(()=>{ni()},[ni]),(0,Ft.useEffect)(()=>{ws.current&&!br&&Promise.all([bt.e(8909),bt.e(3267)]).then(bt.bind(bt,71448)).then(wi=>{try{pt=wi,Wt.current.instance=pt.editor.create(ws.current,{value:ke,language:ft(Ie),theme:An,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:yo||!1}},dn);const dr=Wt.current.instance;let vi=[..._e.BH._menuItems].find(Zr=>Zr[0]._debugName=="EditorContext")[1],er=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],or=(Zr,Xr)=>{var ei,_o;let Zo=Zr._first;do Xr.includes((_o=(ei=Zo.element)==null?void 0:ei.command)==null?void 0:_o.id)&&Zr._remove(Zo);while(Zo=Zo.next)};if(Sr(dr,pt),setTimeout(()=>{ni(),Wt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{qi(Kr||"educoder.txt",dr.getValue())}})},500),Wt.current.subscription=dr.onDidChangeModelContent(Zr=>{ma.current?clearTimeout(Ea.current):(ni(),Ji(dr.getValue(),Zr)),Ea.current=setTimeout(()=>{ma.current=!1},500)}),window.Monaco||ne(pt,ft(Ie)),cr&&(or(vi,er),ws.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_i),window.removeEventListener("paste",_i),window.addEventListener("keydown",_i),window.addEventListener("paste",_i)),window.Monaco=pt,Dn&&dr.onDidBlurEditorWidget(()=>{Dn(dr.getValue())}),Nr&&dr.onDidFocusEditorText(()=>{Nr(dr.getValue())}),cr)try{dr.onDidPaste(Zr=>{const Xr=dr.getSelection(),ei=Wt.current.pastePos||{},_o=new pt.Range(ei.startLineNumber||Xr.endLineNumber,ei.startColumn||Xr.endColumn,ei.endLineNumber||Xr.endLineNumber,ei.endColumn||Xr.endColumn);dr.executeEdits("",[{range:Zr.range,text:""}])})}catch(Zr){}let Rr=In();return es&&typeof es=="string"&&new Ge(es,dr,pt),kn(!0),()=>{const Zr=Wt.current.instance;Zr.dispose();const Xr=Zr.getModel();Xr&&Xr.dispose(),Wt.current.subscription&&Wt.current.subscription.dispose(),Rr.unobserve(ws.current)}}catch(dr){}})},[]),(0,Ft.useEffect)(()=>{if(Wt.current.instance&&br)return document.addEventListener("keydown",Ke,!1),()=>{document.removeEventListener("keydown",Ke)}},[Rn,br]),(0,Ft.useEffect)(()=>{let wi=Wt.current.instance;if(wi&&br){let dr=ft(Ie);pt.editor.setModelLanguage(wi.getModel(),dr)}},[Ie,br]),(0,Ft.useEffect)(()=>{Wt.current.instance&&br&&pt.editor.setTheme(An)},[An,br]),(0,Ft.useEffect)(()=>{let wi=Wt.current.instance;xs.current=Gn,wi&&br&&(wi.updateOptions(Hn({},Gn)),setTimeout(()=>{wi.getModel().updateOptions(Hn({},Gn))},200))},[JSON.stringify(Gn),br]),(0,Ft.useEffect)(()=>{let wi=Wt.current.instance;wi&&br&&wi.layout()},[me,Ue,br]);const[on,di]=(0,Ft.useState)(ki(me)),[Vi,kr]=(0,Ft.useState)(ki(Ue)),ii=xi(Hn({},rn),{width:on,height:Vi,position:"relative"});return Ft.createElement("div",{className:"my-monaco-editor",ref:ws,style:ii},qn&&Ft.createElement(ie.CopyToClipboard,{text:ke,onCopy:()=>Ne.ZP.success("\u590D\u5236\u6210\u529F")},Ft.createElement(We.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ft.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ft.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ue({width:we="100%",height:le="100%",original:me,modified:Ue,language:ke,options:Ie={}}){const rn=(0,Ft.useRef)(),[Gn,dn]=(0,Ft.useState)(null);function An(Di){let cr;return rn.current&&(cr=new ce.Z(Ji=>{for(let Sr of Ji)(Sr.target.offsetHeight>0||Sr.target.offsetWidth>0)&&Di.layout()}),cr.observe(rn.current)),cr}(0,Ft.useEffect)(()=>(rn.current&&Promise.all([bt.e(8909),bt.e(9404)]).then(bt.bind(bt,2550)).then(Di=>{pt=Di;const cr=pt.editor.createDiffEditor(rn.current,xi(Hn({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ie),{wordWrap:!0}));dn(cr);let Ji=An(cr);return()=>{cr.dispose();const Sr=cr.getModel();Sr&&Sr.dispose(),Ji.unobserve(rn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ft.useEffect)(()=>{Gn&&Gn.setModel({original:pt.editor.createModel(me,ke),modified:pt.editor.createModel(Ue,ke)})},[me,Ue,ke,Gn]);const Dn=ki(we),qn=ki(le),Rn={width:Dn,height:qn};return Ft.createElement("div",{className:"my-diff-editor",ref:rn,style:Rn})}},85057:function(ui,wn,bt){"use strict";bt.d(wn,{jL:function(){return ee},w9:function(){return Mn},QD:function(){return Ji},cQ:function(){return ie},op:function(){return An},O5:function(){return oa},_b:function(){return gr},t7:function(){return rt},Gi:function(){return Fi},YG:function(){return xi},qp:function(){return oe},vr:function(){return co},qE:function(){return Rn},Je:function(){return wt},wb:function(){return _e},cq:function(){return pt},tp:function(){return Ct}});var Ft=bt(59301),ce={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"},re="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==",ee=({dataSource:so=[],img:br,imgWidth:kn=346,title:In,sunTitle:Oe,bannerExtraContent:hi})=>Ft.createElement("div",{className:ce.banner},Ft.createElement("div",{className:ce.content},Ft.createElement("aside",null,Ft.createElement("p",null,Ft.createElement("b",null,In),Ft.createElement("span",null,Oe)),so.length>0&&Ft.createElement("div",{className:ce.btns},so.map((Je,fn)=>Ft.createElement("div",{key:fn,onClick:Je.click},Je.name,Je.sign?Ft.createElement("img",{src:re,width:39}):null))),hi),br&&Ft.createElement("img",{style:{marginTop:33,marginRight:38},src:br,width:kn}))),Yt={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"},It=bt(92310),jt=bt.n(It),Xt=bt(89392),oe=({dataSource:so=[],value:br,onChange:kn,onTitleChange:In,className:Oe,title:hi,titleWidth:Je=41,style:fn={},fontColor:Ke="#6A7283",showCount:ni})=>{const[Ci,_i]=(0,Ft.useState)(0),[qi,on]=(0,Ft.useState)(!1),di=(0,Ft.useRef)(null),Vi=(0,Ft.useRef)(null);return(0,Ft.useEffect)(()=>{var kr;so.length!==0&&(((kr=di==null?void 0:di.current)==null?void 0:kr.clientHeight)>97?_i(1):_i(0)),so.length===0&&_i(0),on(!1)},[so]),Ft.createElement("div",{className:jt()(Yt.row,Oe),style:fn},Ft.createElement("div",{onClick:(0,Xt.throttle)(()=>In==null?void 0:In(),2e3),style:{width:Je,marginTop:qi?12:4},className:`${Yt.title} ${In?"current":""}`},hi),Ft.createElement("div",{className:qi?`${Yt.tagsWrap} ${Yt.tagsBorderWrap}`:Yt.tagsWrap},Ft.createElement("div",{className:Yt.bar,ref:Vi,style:Ci>0?{height:Ci===1?97:"auto",overflow:Ci===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Ft.createElement("div",{className:Yt.tag,ref:di},so==null?void 0:so.map(kr=>Ft.createElement("span",{onClick:()=>kn(kr.id),key:kr.id,style:{color:Ke},className:br===kr.id?Yt.active:""},Ft.createElement("span",{title:kr.name,className:Yt.name},kr.name),!!ni&&Ft.createElement("span",{className:Yt.num},kr.count))))),!!Ci&&Ft.createElement(Ft.Fragment,null,Ci===1?Ft.createElement("div",{onClick:()=>{var kr;_i(2),((kr=di==null?void 0:di.current)==null?void 0:kr.clientHeight)>245?on(!0):on(!1)},className:Yt.action},"\u5C55\u5F00",Ft.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Ft.createElement("div",{onClick:()=>{Vi.current.scrollTop=0,_i(1),on(!1)},className:Yt.action},"\u6536\u8D77",Ft.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},zt={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"},Ct=({dataSource:so=[],value:br,onChange:kn,className:In,style:Oe={}})=>Ft.createElement("div",{style:Oe,className:jt()(zt.tabs,In)},so.map(hi=>Ft.createElement("span",{onClick:()=>kn(hi.id),className:br===hi.id?zt.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:so=[],value:br="",onChange:kn,onInputChange:In=()=>{},className:Oe,style:hi={},placeholder:Je,allowClear:fn=!1})=>{var Ke;const[ni,Ci]=(0,Ft.useState)(""),[_i,qi]=(0,Ft.useState)("");(0,Ft.useEffect)(()=>{var Vi;let kr=br;(Vi=JSON.stringify(br))!=null&&Vi.includes("{")&&(Ci(br.id),kr=br.value||"");try{qi(decodeURIComponent(kr||""))}catch(ii){qi(decodeURIComponent(kr||""))}},[br]);const on=()=>{kn(encodeURIComponent(_i),ni||null)},di=Vi=>{Vi!==ni&&(Ci(Vi),kn(encodeURIComponent(_i),Vi))};return Ft.createElement("div",{className:jt()(et.input,Oe),style:hi},!!so.length&&Ft.createElement("div",{className:et.dropdown},Ft.createElement("div",{className:et.text},(Ke=so.find(Vi=>Vi.id===ni))==null?void 0:Ke.name,Ft.createElement("i",{className:"iconfont icon-zhankai4"}),Ft.createElement("b",{className:et.b1}),Ft.createElement("b",{className:et.b2})),Ft.createElement("div",{className:et.menu},so.map((Vi,kr)=>Ft.createElement("div",{key:kr,onClick:()=>di(Vi.id)},Vi.name)))),Ft.createElement(tt.default,{onPressEnter:on,value:_i,onChange:Vi=>{qi(Vi.target.value),In(encodeURIComponent(Vi.target.value),ni||null)},bordered:!1,placeholder:Je}),Ft.createElement("i",{onClick:on,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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"},wt=({value:so,onChange:br,className:kn,total:In,pageSize:Oe,style:hi={}})=>{const Je=so<2,fn=so>=Math.ceil(In/Oe);return In<=Oe?Ft.createElement(Ft.Fragment,null):Ft.createElement("div",{className:jt()(ut.quickPager,kn),style:hi},Ft.createElement("div",{onClick:()=>{Je||br(so-1,"prev")},className:Je?ut.disabled:""},"\u4E0A\u4E00\u9875"),Ft.createElement("div",{onClick:()=>{fn||br(so+1,"next")},className:fn?ut.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"},Ot=bt(71418),Ht=bt(6848),ne=bt(13570),ae=bt(3294),de=bt(955),be=bt(96908),qt=bt(57177),ze=bt(81378),Vt=bt(8797),_e=({className:so,dataSource:br=[],col:kn=4,right:In,bottom:Oe=23,precision:hi=0,wrapWidth:Je=1200,trackEventItems:fn,loading:Ke})=>{const ni=Math.floor((Je-(kn-1)*In)/kn);return Ft.createElement(Ot.Z,{spinning:Ke},Ft.createElement("div",{className:jt()(Mt.list,so)},!!br.length&&br.map((Ci,_i)=>{const{name:qi,id:on,identifier:di,power:Vi,cover_image_id:kr,pic:ii}=Ci;return Ft.createElement("div",{className:Mt.wrap,key:on,style:{width:ni,marginRight:(1+_i)%kn===0?0:In+hi,marginBottom:Oe}},Ft.createElement("a",{target:"_blank",href:`/shixuns/${di}/challenges`,className:Mt.li,onClick:wi=>{wi.preventDefault(),fn&&(0,de.L9)([fn]),Vi&&(0,de.xg)(`/shixuns/${di}/challenges`)}},Ft.createElement("div",{className:Mt.img},Ft.createElement("img",{className:Mt.cover,src:`${ii}`}),Ci.is_jupyter&&Ft.createElement("img",{className:Mt.sign,src:be}),Ci.is_jupyter_lab&&Ft.createElement("img",{className:Mt.sign,src:qt}),Ci.is_unity_3d&&Ft.createElement("img",{className:Mt.sign,src:ze})),Ft.createElement("div",{className:Mt.name},Ft.createElement(Ht.Z,{title:qi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Ft.createElement("span",{className:Mt.e},qi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Ft.createElement("div",{className:Mt.tags},Ft.createElement(Ht.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Ft.createElement("span",null,Ci.challenges_count))),!!Ci.myshixuns_count&&Ft.createElement(Ht.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ft.createElement("span",null,Ft.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Ft.createElement("span",null,Ci.myshixuns_count))),Ft.createElement(Ht.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Ft.createElement("span",null,Ft.createElement("span",null,Ci.level))),Ft.createElement("div",{className:Mt.rate},Ft.createElement(ne.Z,{allowHalf:!0,disabled:!0,defaultValue:Ci.score_info}),Ft.createElement("span",null,"\xA0",Ci.score_info?`${Ci.score_info}\u5206`:"5\u5206")))),!Vi&&Ft.createElement("div",{className:Mt.lockWrap},Ft.createElement("img",{src:`${ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ft.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!br.length&&Ft.createElement(Vt.Z,null)))},Ne={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"},We=bt(24065),Re=bt(59301),ie=({className:so,dataSource:br=[],col:kn=4,right:In,bottom:Oe=23,precision:hi=0,wrapWidth:Je=1200,trackEventItems:fn,loading:Ke,onRemove:ni=()=>{},isCurrent:Ci=!0,showAlias:_i=!1})=>{const qi=Math.floor((Je-(kn-1)*In)/kn),on=[{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 Re.createElement(Ot.Z,{spinning:Ke},Re.createElement("div",{className:jt()(Ne.list,so)},!!(br!=null&&br.length)&&(br==null?void 0:br.map((di,Vi)=>{var kr;const{name:ii,id:wi,identifier:dr,featured:pi,school_name:yi,image_url:vi,excellent:er,is_plan:or}=di;return Re.createElement("div",{key:wi,className:Ne.wrap,style:{width:qi,marginRight:(1+Vi)%kn===0?0:In+hi,marginBottom:Oe}},Re.createElement("a",{className:Ne.li,onClick:Rr=>{Rr.preventDefault(),Rr.stopPropagation(),fn&&(0,de.L9)([fn]),(0,de.xg)(`/paths/${dr}`)}},Re.createElement("div",{className:Ne.img},Re.createElement("img",{className:Ne.cover,src:`${vi}`}),Ci&&(0,We.bg)()&&(di==null?void 0:di.studying)&&Re.createElement("div",{className:`${Ne.movebq} user-path-items`,onClick:Rr=>{Rr.stopPropagation(),ni(di)}},Re.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Re.createElement("span",{className:"c-red"},"\u79FB\u9664")),(kr=di==null?void 0:di.subject_tags)==null?void 0:kr.map((Rr,Zr)=>{var Xr,ei;if(Zr===0){const Zo=(Xr=on.find(cs=>cs.name==Rr))==null?void 0:Xr.swimg;return Re.createElement("img",{className:Ne.sign,src:Zo,style:{left:"-4px"}})}const _o=(ei=on.find(Zo=>Zo.name==Rr))==null?void 0:ei.ptimg;return Re.createElement("img",{className:Ne.sign,src:_o,style:{left:`${48+52*(Zr-1)+2*Zr}px`}})}),Re.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(di==null?void 0:di.excellent)&&Re.createElement("div",{className:Ne.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Re.createElement("div",{className:Ne.name},Re.createElement(Ht.Z,{title:_i&&(di!=null&&di.excellent_alias_name)?Re.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ii}`,Re.createElement("br",null),Re.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${di==null?void 0:di.excellent_alias_name}`)):ii},Re.createElement("span",{className:Ne.e},_i&&(di==null?void 0:di.excellent_alias_name)||ii))),Re.createElement(Ht.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${yi}`},Re.createElement("div",{className:Ne.unit},Re.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),yi)),Re.createElement("div",{className:Ne.tags},Re.createElement("div",null,Re.createElement(Ht.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Re.createElement("span",null,di.stages_count))),Re.createElement(Ht.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Re.createElement("span",null,di.members_count)))))))})),!br.length&&Re.createElement(Vt.Z,null)))},Se={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"},Bn="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",Ln=bt(59301),Mn=({className:so,dataSource:br=[],col:kn=4,right:In,bottom:Oe=23,precision:hi=0,wrapWidth:Je=1200,trackEventItems:fn,loading:Ke,handleVery:ni=()=>!0})=>{const Ci=Math.floor((Je-(kn-1)*In)/kn);return Ln.createElement(Ot.Z,{spinning:Ke},Ln.createElement("div",{className:jt()(Se.list,so)},!!br.length&&br.map((_i,qi)=>{const{subject_identifier:on,id:di,identifier:Vi,power:kr}=_i,ii=_i.is_public!=0&&_i.is_public;return Ln.createElement("div",{className:Se.wrap,key:di,style:{width:Ci,marginRight:(1+qi)%kn===0?0:In+hi,marginBottom:Oe}},Ln.createElement("a",{className:Se.li,onClick:wi=>{wi.preventDefault(),ni(_i==null?void 0:_i.first_category_url)&&(fn&&(0,de.L9)([fn]),(0,de.xg)(_i.first_category_url))}},Ln.createElement("div",{className:Se.top},Ln.createElement(Ht.Z,{title:_i.name},Ln.createElement("div",{className:Se.name},_i.name)),Ln.createElement("img",{className:Se.img,src:ae.Z.IMG_SERVER+"/images/"+_i.avatar_url}),Ln.createElement("div",{className:Se.text,title:_i.creator},_i.creator),on&&Ln.createElement("div",{className:Se.btns},Ln.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ln.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ii&&Ln.createElement("div",{className:Se.sign},"\u516C\u5F00")),Ln.createElement("div",{className:Se.bottom},_i.visits>0&&Ln.createElement(Ht.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-liulanyan"}),Ln.createElement("span",null,_i.visits))),_i.course_members_count>0&&Ln.createElement(Ht.Z,{title:"\u6210\u5458",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-chengyuan"}),_i.course_members_count)),_i.tasks_count>0&&Ln.createElement(Ht.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ln.createElement("span",null,Ln.createElement("i",{className:"iconfont icon-zuoye"}),_i.tasks_count)),_i.is_end?Ln.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ln.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!_i.is_accessible&&Ln.createElement("div",{className:Se.lockWrap},Ln.createElement("img",{src:`${ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ln.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!br.length&&Ln.createElement(Vt.Z,null)))},Wn={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"},fi=bt(89070),xi=({dataSource:so=[],value:br,onChange:kn,className:In,style:Oe={},tabBarExtraContent:hi})=>Ft.createElement("div",{className:jt()(Wn.tabs,In),style:Oe},Ft.createElement("div",{className:Wn.tabsWrap},so.map((Je,fn)=>!(Je!=null&&Je.hide)&&Ft.createElement("aside",{className:Wn.tab,onClick:()=>{kn(Je.id),Je.link&&fi.history.push(Je.link)},key:fn},Ft.createElement("div",{className:br===Je.id?Wn.active:""},Je.name),(Je==null?void 0:Je.resetCount)==null&&(Je==null?void 0:Je.total)!==void 0&&Ft.createElement("span",null,"\uFF08",Je==null?void 0:Je.total,"\uFF09"),(Je==null?void 0:Je.resetCount)!==void 0&&(Je==null?void 0:Je.total)!==void 0&&Ft.createElement(Ht.Z,{title:(Je==null?void 0:Je.tip)!=null?Je==null?void 0:Je.tip:""},Ft.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Ft.createElement("span",{style:{color:"#000"}},Je==null?void 0:Je.resetCount),"/",Ft.createElement("span",null,Je==null?void 0:Je.total),"\uFF09"))))),Ft.createElement("div",{className:Wn.tabBar},hi)),Fi=({className:so,style:br={},children:kn})=>Ft.createElement("div",{className:jt()(so),style:br},kn),ki={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"},Nt=bt(38854),Dt=bt(20834);const mt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var pt=({sortValue:so,dropValue:br,className:kn,onSort:In,onDrop:Oe,dataSource:hi=mt})=>{var Je;return Ft.createElement("div",{className:jt()(ki.orderWrap,kn)},Ft.createElement(Nt.Z,{dropdownRender:()=>Ft.createElement(Dt.default,null,hi.map((fn,Ke)=>Ft.createElement(Dt.default.Item,{key:Ke,onClick:()=>Oe(fn.id)},fn.name)))},Ft.createElement("span",{className:ki.orderTextWrap},(Je=hi.find(fn=>br===fn.id))==null?void 0:Je.name)),Ft.createElement("span",{className:ki.orderIconWrap},Ft.createElement("span",{className:ki.orderAsc},Ft.createElement("i",{className:so==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ki.cursorPointer} ${ki.active}`:`iconfont icon-sanjiaoxing-up font12 ${ki.cursorPointer}`,onClick:()=>In(so==="asc"?"desc":"asc")})),Ft.createElement("span",{className:ki.orderDesc},Ft.createElement("i",{className:so==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ki.cursorPointer} ${ki.active}`:`iconfont icon-sanjiaoxing-down font12 ${ki.cursorPointer}`,onClick:()=>In(so==="asc"?"desc":"asc")}))))},At={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"},ue=bt(3113),we=Object.defineProperty,le=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ke=(so,br,kn)=>br in so?we(so,br,{enumerable:!0,configurable:!0,writable:!0,value:kn}):so[br]=kn,Ie=(so,br)=>{for(var kn in br||(br={}))me.call(br,kn)&&ke(so,kn,br[kn]);if(le)for(var kn of le(br))Ue.call(br,kn)&&ke(so,kn,br[kn]);return so},rn=(so,br)=>{var kn={};for(var In in so)me.call(so,In)&&br.indexOf(In)<0&&(kn[In]=so[In]);if(so!=null&&le)for(var In of le(so))br.indexOf(In)<0&&Ue.call(so,In)&&(kn[In]=so[In]);return kn},Gn=(so,br,kn)=>new Promise((In,Oe)=>{var hi=Ke=>{try{fn(kn.next(Ke))}catch(ni){Oe(ni)}},Je=Ke=>{try{fn(kn.throw(Ke))}catch(ni){Oe(ni)}},fn=Ke=>Ke.done?In(Ke.value):Promise.resolve(Ke.value).then(hi,Je);fn((kn=kn.apply(so,br)).next())}),An=so=>{var br=so,{className:kn,style:In,children:Oe,loading:hi=!1,openLoading:Je,onClick:fn=()=>{},size:Ke="middle",shape:ni="round"}=br,Ci=rn(br,["className","style","children","loading","openLoading","onClick","size","shape"]);const[_i,qi]=(0,Ft.useState)(!1);return Ft.createElement(ue.ZP,Ie({onClick:(0,Xt.throttle)(on=>Gn(void 0,null,function*(){Je&&qi(!0);try{yield fn(on)}catch(di){console.log("error",di)}Je&&qi(!1)}),2e3,{leading:!0,trailing:!1}),className:jt()(At.btn,At[`${Ke}-${ni}`],kn),style:In,size:Ke,shape:ni,loading:_i||hi},Ci),Oe)},Dn={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"},Rn=({className:so,style:br,children:kn=null,onClick:In,title:Oe})=>Ft.createElement("div",{className:jt()(Dn.head,so),style:br},Ft.createElement("span",{className:"primary-hover",onClick:In},Ft.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Ft.createElement("b",{title:Oe},Oe),Ft.createElement("div",{className:Dn.node},kn)),Di={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"},Ji=({confirmShow:so=!0,confirmTitle:br,confirmClick:kn,cancelShow:In=!0,cancelTitle:Oe,cancelClick:hi,className:Je,style:fn,confirmLoading:Ke=!1})=>Ft.createElement("div",{className:jt()(Di.btns,Je),style:fn},so&&Ft.createElement(ue.ZP,{loading:Ke,onClick:kn,type:"primary",className:Di.confirm},br),In&&Ft.createElement(ue.ZP,{onClick:hi,className:Di.cancel},Oe)),Sr={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"},co=({className:so,style:br={},LeftContent:kn,children:In,RightContent:Oe})=>Ft.createElement("div",{className:jt()(Sr.fixedBottom,so),style:br},Ft.createElement("div",{className:Sr.wrap},Ft.createElement("div",{className:Sr.left},kn),Ft.createElement("div",{className:Sr.center},In),Ft.createElement("div",{className:Sr.right},Oe))),to={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"},gr=({className:so,style:br={},dataSource:kn=[]})=>Ft.createElement("div",{className:jt()(to.crumbs,so),style:br},kn.map((In,Oe)=>Oe<kn.length-1?Ft.createElement(Ft.Fragment,{key:Oe},In.path||In.onClick?Ft.createElement("span",{className:to.hover,onClick:In!=null&&In.onClick?In.onClick:()=>fi.history.push(In.path)},In.name):Ft.createElement("span",null,In.name),Ft.createElement("span",null,"\xA0",">","\xA0")):Ft.createElement("span",{key:Oe,style:{color:"#5F6368"}},In.name))),Vr=bt(31797),pr=Object.defineProperty,zo=Object.defineProperties,es=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,ws=Object.prototype.propertyIsEnumerable,Wt=(so,br,kn)=>br in so?pr(so,br,{enumerable:!0,configurable:!0,writable:!0,value:kn}):so[br]=kn,xs=(so,br)=>{for(var kn in br||(br={}))ks.call(br,kn)&&Wt(so,kn,br[kn]);if(yo)for(var kn of yo(br))ws.call(br,kn)&&Wt(so,kn,br[kn]);return so},Ss=(so,br)=>zo(so,es(br)),Ms=(so,br)=>{var kn={};for(var In in so)ks.call(so,In)&&br.indexOf(In)<0&&(kn[In]=so[In]);if(so!=null&&yo)for(var In of yo(so))br.indexOf(In)<0&&ws.call(so,In)&&(kn[In]=so[In]);return kn};const{Countdown:ma}=Vr.default;var oa=so=>{var br=so,{onChange:kn}=br,In=Ms(br,["onChange"]);const[Oe,hi]=(0,Ft.useState)(null);(0,Ft.useEffect)(()=>{typeof Oe=="number"&&Oe>=0&&kn(Oe)},[Oe]);const Je=fn=>{const Ke=Math.floor(fn/1e3);hi(Ke)};return Ft.createElement(ma,Ss(xs({},In),{onChange:Je}))}},58856:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ce}});var Ft=bt(59301);function ce(re,Be){const ee=(0,Ft.useRef)();(0,Ft.useEffect)(()=>{ee.current=re}),(0,Ft.useEffect)(()=>{function Yt(){ee.current()}if(Be!==null){let It=setInterval(Yt,Be);return()=>clearInterval(It)}},[Be])}},12383:function(ui,wn,bt){"use strict";bt.r(wn),bt.d(wn,{default:function(){return dr}});var Ft=bt(59301),ce=bt(61186),re=bt.n(ce),Be=bt(86129),ee=bt.n(Be),Yt=bt(99064),It=bt(89070),jt=bt(43418),Xt=bt(8591),Pt=bt(61621),oe=bt(66104),zt=bt(95237),Jt=bt(43604),Ct=bt(3113),et=bt(6848),tt=bt(28103),lt=bt(92832),rt=bt(1710),ut=bt(57809),ct=bt(58421),wt=bt(27812),Mt=bt(95869),Ot=bt(87169),Ht=bt(26227),ne=bt(3294),ae=bt(24065),de=bt(955),be=bt(42441),qt={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt",pingjia:"pingjia___X_ooM",pj_close:"pj_close___PHP4h",pj_save:"pj_save___COfQy"},ze={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const Vt=({shixunHomeworks:pi,data:yi,globalSetting:vi,loading:er,dispatch:or})=>{var Rr;const{shixunWorkReport:Zr}=pi;let Xr=((Rr=yi==null?void 0:yi.efficiency_list)==null?void 0:Rr.length)-parseInt(yi==null?void 0:yi.myself_eff[0]);const ei=()=>({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(Zo){return Zo.name===Zr.username?"\u59D3\u540D\uFF1A"+Zr.username+"<br/>\u5B66\u53F7\uFF1A "+Zr.user_id+"<br/>\u6548\u7387\uFF1A"+(yi==null?void 0:yi.myself_eff[1]):Zo.name+":"+Zo.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:yi==null?void 0:yi.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:Zr.username,xAxis:Xr,yAxis:yi==null?void 0:yi.myself_eff[1],value:yi==null?void 0:yi.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),_o=()=>({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(Zo){var cs=Zo.value;if(Zo.name===Zr.username)return"\u59D3\u540D\uFF1A"+Zr.username+"<br/>\u5B66\u53F7\uFF1A "+Zr.user_id+"<br/>\u5F97\u5206\uFF1A"+(yi==null?void 0:yi.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:ze,data:yi==null?void 0:yi.consume_list,symbolSize:function(Zo){return Math.round(Zo[2])},markPoint:{data:[{name:Zr.username,xAxis:yi==null?void 0:yi.myself_object[0],yAxis:yi==null?void 0:yi.myself_object[1],value:yi==null?void 0:yi.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return Ft.createElement(Ft.Fragment,null,Ft.createElement("aside",{className:"ml60 pr30"},Ft.createElement(zt.Z,null,Ft.createElement(Jt.Z,{flex:"800px"},Ft.createElement(be.Z,{style:{width:750,height:580},option:ei()})),Ft.createElement(Jt.Z,{flex:"1"},Ft.createElement("aside",{className:qt.rightInfo},Ft.createElement("ul",null,Ft.createElement("li",null,Ft.createElement("span",null,"\u59D3\u540D")," ",Ft.createElement("span",{className:"ml30"},Zr.username)),Ft.createElement("li",null,Ft.createElement("span",null,"\u5B66\u53F7")," ",Ft.createElement("span",{className:"ml30"},Zr.student_id||"--")),Ft.createElement("li",null,Ft.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",Ft.createElement("span",{className:"ml30 c-orange"},yi==null?void 0:yi.myself_eff[1])),Ft.createElement("li",null,Ft.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",Ft.createElement("span",{className:"ml30 c-orange"},yi==null?void 0:yi.myself_eff[0]))),Ft.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",Ft.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",Ft.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",Ft.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"))))),Ft.createElement("aside",{className:"ml60 pr30"},Ft.createElement(zt.Z,null,Ft.createElement(Jt.Z,{flex:"800px"},Ft.createElement(be.Z,{style:{width:750,height:580},option:_o()})),Ft.createElement(Jt.Z,{flex:"1"},Ft.createElement("aside",{className:qt.rightInfo},Ft.createElement("ul",null,Ft.createElement("li",null,Ft.createElement("span",null,"\u59D3\u540D")," ",Ft.createElement("span",{className:"ml30"},Zr.username)),Ft.createElement("li",null,Ft.createElement("span",null,"\u5B66\u53F7")," ",Ft.createElement("span",{className:"ml30"},Zr.student_id||"--")),Ft.createElement("li",null,Ft.createElement("span",null,"\u80FD\u529B")," ",Ft.createElement("span",{className:"ml30 c-orange"},yi==null?void 0:yi.myself_object[1]))),Ft.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",Ft.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",Ft.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",Ft.createElement("br",null)))))))};var Ge=(0,It.connect)(({shixunHomeworks:pi,loading:yi,globalSetting:vi})=>({shixunHomeworks:pi,globalSetting:vi,loading:yi.effects}))(Vt),_e=bt(23954),Ne=bt(5871),We=({defaultValue:pi,onBlur:yi,max:vi,className:er="game-score"})=>{const[or,Rr]=(0,Ft.useState)(pi);(0,Ft.useEffect)(()=>{Rr(pi)},[pi]);function Zr(ei){Rr(ei)}function Xr(){or!==pi&&yi(or>vi?vi:or)}return Ft.createElement(Ne.Z,{max:vi,min:0,className:er,value:or,onChange:Zr,onBlur:Xr})},Re=bt(12290),ve={md:"md___TEmcT"},ie=bt(59301),Se=Object.defineProperty,Bn=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,Mn=Object.prototype.hasOwnProperty,Wn=Object.prototype.propertyIsEnumerable,fi=(pi,yi,vi)=>yi in pi?Se(pi,yi,{enumerable:!0,configurable:!0,writable:!0,value:vi}):pi[yi]=vi,Hn=(pi,yi)=>{for(var vi in yi||(yi={}))Mn.call(yi,vi)&&fi(pi,vi,yi[vi]);if(Ye)for(var vi of Ye(yi))Wn.call(yi,vi)&&fi(pi,vi,yi[vi]);return pi},xi=(pi,yi)=>Bn(pi,Ln(yi));const nn=ut.default.Option,Fi={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var ki=(pi=>(pi[pi.SET_PATH=0]="SET_PATH",pi[pi.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",pi))(ki||{});function Nt(pi,yi){switch(yi.type){case 0:return xi(Hn({},pi),{selectedPath:yi.payload});case 1:return xi(Hn({},pi),{passedContent:yi.payload});default:throw new Error}}var Dt=({path:pi,game_id:yi,onPathChange:vi,autoHeight:er,diff_code_count:or,data:Rr,game_codes_cn:Zr})=>{var Xr,ei,_o,Zo;const cs=pi.split("\uFF1B").filter(wo=>!!wo),[ri,rr]=(0,Ft.useReducer)(Nt,{selectedPath:cs[0],passedContent:{language:"python",content:""}}),{selectedPath:Er,passedContent:no}=ri;function Fr(wo){rr({type:0,payload:wo})}const Gr={\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,Zr,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"}))),or&&ie.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",or),ie.createElement("span",null,ie.createElement(ut.default,{style:{width:200},value:Er,onChange:Fr}," ",cs.map(wo=>ie.createElement(nn,{key:wo,value:wo},wo))," "))," "),(Er==null?void 0:Er.split(".")[1])==="md"&&ie.createElement(Re.Z,{height:300,autoHeight:er,defaultValue:((ei=(Xr=Rr==null?void 0:Rr.filter(wo=>wo.path===Er))==null?void 0:Xr[0])==null?void 0:ei.content)||"",className:ve.md}),(Er==null?void 0:Er.split(".")[1])!=="md"&&ie.createElement(_e.ZP,{height:300,language:no.language,value:((Zo=(_o=Rr==null?void 0:Rr.filter(wo=>wo.path===Er))==null?void 0:_o[0])==null?void 0:Zo.content)||"",autoHeight:er,theme:"default",isCopy:!0,options:Fi}))},mt=bt(92365),ft=bt(12911),pt=bt.n(ft),At=Object.defineProperty,ue=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,me=(pi,yi,vi)=>yi in pi?At(pi,yi,{enumerable:!0,configurable:!0,writable:!0,value:vi}):pi[yi]=vi,Ue=(pi,yi)=>{for(var vi in yi||(yi={}))we.call(yi,vi)&&me(pi,vi,yi[vi]);if(ue)for(var vi of ue(yi))le.call(yi,vi)&&me(pi,vi,yi[vi]);return pi};const ke=pi=>React.createElement("svg",Ue({className:"scai_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},pi),React.createElement("path",{d:"M512 327.68c245.76 0 445.44 153.6 445.44 348.16C957.44 870.4 757.76 1024 512 1024c-245.76-5.12-445.44-153.6-445.44-348.16 0-194.56 199.68-348.16 445.44-348.16z",fill:"#DBDCFF"}),React.createElement("path",{d:"M645.12 947.2c117.76-10.24 158.72-143.36 163.84-266.24 0-128-128-174.08-291.84-174.08-163.84 0-291.84 46.08-291.84 174.08 0 112.64 35.84 240.64 143.36 261.12 30.72 5.12 261.12 10.24 276.48 5.12z",fill:"#111ACC"}),React.createElement("path",{d:"M404.48 686.08c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c-5.12-10.24 10.24-25.6 25.6-25.6zm220.16 0c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c0-10.24 10.24-25.6 25.6-25.6z",fill:"#FFF"}),React.createElement("path",{d:"M916.48 527.36c56.32 0 107.52 71.68 107.52 153.6 0 87.04-61.44 153.6-117.76 153.6 0 0 51.2-76.8 51.2-158.72s-40.96-148.48-40.96-148.48zm-808.96 5.12-5.12 5.12c-10.24 20.48-35.84 76.8-35.84 138.24 0 76.8 35.84 138.24 51.2 158.72C61.44 834.56 0 768 0 680.96c0-81.92 51.2-148.48 107.52-148.48z",fill:"#8187FF"}),React.createElement("path",{d:"M512 0c20.48 0 30.72 15.36 30.72 30.72v220.16c0 20.48-15.36 30.72-30.72 30.72s-30.72-10.24-30.72-30.72V30.72C481.28 15.36 496.64 0 512 0z",fill:"#701CDC"}),React.createElement("path",{d:"M384 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-35.84-15.36-35.84-30.72V76.8c0-20.48 15.36-30.72 35.84-30.72z",fill:"#371CDC"}),React.createElement("path",{d:"M645.12 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72V76.8c0-20.48 15.36-30.72 30.72-30.72z",fill:"#AB2FF0"}),React.createElement("path",{d:"M250.88 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-35.84-10.24-35.84-30.72v-40.96c0-20.48 15.36-35.84 35.84-35.84z",fill:"#6D57F2"}),React.createElement("path",{d:"M778.24 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72v-40.96c0-20.48 15.36-35.84 30.72-35.84z",fill:"#C86FFA"}));var Ie="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI3LjY4YzI0NS43NiAwIDQ0NS40NCAxNTMuNiA0NDUuNDQgMzQ4LjE2Qzk1Ny40NCA4NzAuNCA3NTcuNzYgMTAyNCA1MTIgMTAyNGMtMjQ1Ljc2LTUuMTItNDQ1LjQ0LTE1My42LTQ0NS40NC0zNDguMTYgMC0xOTQuNTYgMTk5LjY4LTM0OC4xNiA0NDUuNDQtMzQ4LjE2eiIgZmlsbD0iI0RCRENGRiIvPjxwYXRoIGQ9Ik02NDUuMTIgOTQ3LjJjMTE3Ljc2LTEwLjI0IDE1OC43Mi0xNDMuMzYgMTYzLjg0LTI2Ni4yNCAwLTEyOC0xMjgtMTc0LjA4LTI5MS44NC0xNzQuMDgtMTYzLjg0IDAtMjkxLjg0IDQ2LjA4LTI5MS44NCAxNzQuMDggMCAxMTIuNjQgMzUuODQgMjQwLjY0IDE0My4zNiAyNjEuMTIgMzAuNzIgNS4xMiAyNjEuMTIgMTAuMjQgMjc2LjQ4IDUuMTJ6IiBmaWxsPSIjMTExQUNDIi8+PHBhdGggZD0iTTQwNC40OCA2ODYuMDhjMTUuMzYgMCAyNS42IDEwLjI0IDI1LjYgMjUuNnY2MS40NGMwIDE1LjM2LTEwLjI0IDI1LjYtMjUuNiAyNS42LTE1LjM2IDAtMjUuNi0xMC4yNC0yNS42LTI1LjZ2LTYxLjQ0Yy01LjEyLTEwLjI0IDEwLjI0LTI1LjYgMjUuNi0yNS42em0yMjAuMTYgMGMxNS4zNiAwIDI1LjYgMTAuMjQgMjUuNiAyNS42djYxLjQ0YzAgMTUuMzYtMTAuMjQgMjUuNi0yNS42IDI1LjYtMTUuMzYgMC0yNS42LTEwLjI0LTI1LjYtMjUuNnYtNjEuNDRjMC0xMC4yNCAxMC4yNC0yNS42IDI1LjYtMjUuNnoiIGZpbGw9IiNGRkYiLz48cGF0aCBkPSJNOTE2LjQ4IDUyNy4zNmM1Ni4zMiAwIDEwNy41MiA3MS42OCAxMDcuNTIgMTUzLjYgMCA4Ny4wNC02MS40NCAxNTMuNi0xMTcuNzYgMTUzLjYgMCAwIDUxLjItNzYuOCA1MS4yLTE1OC43MnMtNDAuOTYtMTQ4LjQ4LTQwLjk2LTE0OC40OHptLTgwOC45NiA1LjEyLTUuMTIgNS4xMmMtMTAuMjQgMjAuNDgtMzUuODQgNzYuOC0zNS44NCAxMzguMjQgMCA3Ni44IDM1Ljg0IDEzOC4yNCA1MS4yIDE1OC43MkM2MS40NCA4MzQuNTYgMCA3NjggMCA2ODAuOTZjMC04MS45MiA1MS4yLTE0OC40OCAxMDcuNTItMTQ4LjQ4eiIgZmlsbD0iIzgxODdGRiIvPjxwYXRoIGQ9Ik01MTIgMGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjIyMC4xNmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xMC4yNC0zMC43Mi0zMC43MlYzMC43MkM0ODEuMjggMTUuMzYgNDk2LjY0IDAgNTEyIDB6IiBmaWxsPSIjNzAxQ0RDIi8+PHBhdGggZD0iTTM4NCA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zNS44NC0xNS4zNi0zNS44NC0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzUuODQtMzAuNzJ6IiBmaWxsPSIjMzcxQ0RDIi8+PHBhdGggZD0iTTY0NS4xMiA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzAuNzItMzAuNzJ6IiBmaWxsPSIjQUIyRkYwIi8+PHBhdGggZD0iTTI1MC44OCA4Ny4wNGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjQ2LjA4YzAgMjAuNDgtMTUuMzYgMzAuNzItMzAuNzIgMzAuNzJzLTM1Ljg0LTEwLjI0LTM1Ljg0LTMwLjcydi00MC45NmMwLTIwLjQ4IDE1LjM2LTM1Ljg0IDM1Ljg0LTM1Ljg0eiIgZmlsbD0iIzZENTdGMiIvPjxwYXRoIGQ9Ik03NzguMjQgODcuMDRjMjAuNDggMCAzMC43MiAxNS4zNiAzMC43MiAzMC43MnY0Ni4wOGMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MnYtNDAuOTZjMC0yMC40OCAxNS4zNi0zNS44NCAzMC43Mi0zNS44NHoiIGZpbGw9IiNDODZGRkEiLz48L3N2Zz4=",rn=bt(24544),Gn=bt(85149),dn=Object.defineProperty,An=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,Rn=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,cr=(pi,yi,vi)=>yi in pi?dn(pi,yi,{enumerable:!0,configurable:!0,writable:!0,value:vi}):pi[yi]=vi,Ji=(pi,yi)=>{for(var vi in yi||(yi={}))Rn.call(yi,vi)&&cr(pi,vi,yi[vi]);if(qn)for(var vi of qn(yi))Di.call(yi,vi)&&cr(pi,vi,yi[vi]);return pi},Sr=(pi,yi)=>An(pi,Dn(yi)),Nr=(pi,yi,vi)=>new Promise((er,or)=>{var Rr=ei=>{try{Xr(vi.next(ei))}catch(_o){or(_o)}},Zr=ei=>{try{Xr(vi.throw(ei))}catch(_o){or(_o)}},Xr=ei=>ei.done?er(ei.value):Promise.resolve(ei.value).then(Rr,Zr);Xr((vi=vi.apply(pi,yi)).next())});const co=({shixunHomeworks:pi,autoHeight:yi,classroomList:vi,dispatch:er})=>{var or,Rr,Zr,Xr,ei,_o,Zo,cs;const{shixunWorkReport:ri}=pi,{stage_list:rr,work_id:Er}=ri,[no,Fr]=(0,Ft.useState)(!1),[Gr,wo]=(0,Ft.useState)(!0),[fo,xo]=(0,Ft.useState)({left:0,top:0,bottom:0,right:0}),_r=(0,Ft.useRef)(null),[Si,Ho]=(0,Ft.useState)(!1),[Pi,ns]=(0,Ft.useState)(""),qs=(0,Ft.useRef)(null),fs=(vr,$r)=>{var Xo;const{clientWidth:Lo,clientHeight:os}=window.document.documentElement,Fa=(Xo=_r.current)==null?void 0:Xo.getBoundingClientRect();Fa&&xo({left:-Fa.left+$r.x,right:Lo-(Fa.right-$r.x),top:-Fa.top+$r.y,bottom:os-(Fa.bottom-$r.y)})},Hs=(0,It.useParams)(),Gs=(0,ae.GJ)(),si={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,Ft.useEffect)(()=>{console.log(Hs)},[]);const To=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(vr,$r,Xo)=>Ft.createElement("div",null,vr,$r.is_work_end_evaluate&&Ft.createElement(de.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:vr=>re()(vr).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(vr,$r)=>Ft.createElement("span",{className:"c-blue current",onClick:()=>Nr(void 0,null,function*(){var Xo,Lo;const os=yield(0,mt.Lk)($r.game_identifier,{path:(Lo=(Xo=$r.path)==null?void 0:Xo.replace(/\/g,";"))==null?void 0:Lo.split(";")[0],query_index:$r.query_index,homework_common_id:Hs.categoryId});(os==null?void 0:os.status)===0&&(Ho(os),Fr(!0))})},$r.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],us=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(vr,$r)=>{var Xo;return Ft.createElement("span",null,Ft.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:ne.Z.IMG_SERVER+"/images/"+((Xo=$r==null?void 0:$r.user)==null?void 0:Xo.image_url)}),vr)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:vr=>Ft.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",vr,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:vr=>Ft.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",vr,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:vr=>Ft.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",vr?re()(vr).format("YYYY-MM-DD HH:mm"):"--")}];function rs(vr,$r){return Nr(this,null,function*(){const{challenge_id:Xo}=rr[vr],Lo=yield er({type:"shixunHomeworks/changeScore",payload:{categoryId:Hs.homeworkId,type:"report",score:$r,challenge_id:Xo}});yield er({type:"shixunHomeworks/getShixunWorkReport",payload:Ji({},Hs)}),Lo.status===0&&Xt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function Cr(vr,$r){return(0,Yt.U2)(`student_works/${Er}/rep_passed_content.json`,{path:$r,game_id:vr})}const[Le,qo]=(0,Ft.useState)((or=ri==null?void 0:ri.shixun_detail)==null?void 0:or.map(vr=>Sr(Ji({},vr),{commentEdit:!1}))),ta=vr=>vr.replace(/\\\(([\s\S]*?)\\\)/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/\\\[([\s\S]*?)\\\]/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/`(\$\$.*?\$\$)`/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/_{2,}/g,"`$&`"),[qa,ol]=(0,Ft.useState)(!1),ml=(vr,$r)=>Nr(void 0,null,function*(){var Xo,Lo;ol(!0),qs.current=new rn.Z(ne.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-max",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:"",shixun_id:ri==null?void 0:ri.myshixun_identifier,game_id:vr==null?void 0:vr.id,source:"shixun",is_chat:!1,type:9,description:vr==null?void 0:vr.challenge_description,query:(Lo=(Xo=vr==null?void 0:vr.game_codes)==null?void 0:Xo[0])==null?void 0:Lo.content,homework_common_id:Hs.categoryId}),yield new Promise((os,Fa)=>{qs.current.on("data",ao=>{const mo=[...Le];mo[$r].comment=ta(ao==null?void 0:ao.full),qo(mo)}),qs.current.on("done",()=>Nr(void 0,null,function*(){var ao;ol(!1);const mo=[...Le],zi=yield(0,Yt.ZP)(`/api/student_works/${Hs==null?void 0:Hs.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:vr==null?void 0:vr.challenge_id,comment:mo[$r].comment}});if((zi==null?void 0:zi.status)==0){Xt.ZP.success("\u8BC4\u4EF7\u6210\u529F");const Eo=[...Le];Eo[$r].comment_updated_at=(ao=zi==null?void 0:zi.data)==null?void 0:ao.comment_updated_at,qo(Eo)}})),qs.current.startStream()})});return Ft.createElement(Ft.Fragment,null,Le==null?void 0:Le.map(function(vr,$r){var Xo,Lo;return Ft.createElement("div",{key:$r},Ft.createElement("aside",{className:"pl30 pr30",key:$r},Ft.createElement("div",{className:`${qt.shixunTitle} mt10`},Ft.createElement("div",null,Ft.createElement("span",{className:"fa fa-code "}),Ft.createElement("strong",{className:"c-black"},"\u7B2C",$r+1,"\u5173 ",Ft.createElement(It.Link,{className:"c-black",target:"_blank",to:`/tasks/${Hs.coursesId}/${Hs.categoryId}/${vr.game_identifier}`},vr.subject))),Gs?Ft.createElement("span",null,"\u8C03\u5206\uFF1A",Ft.createElement(We,{className:"game-score",max:rr[$r].game_score_full,defaultValue:rr[$r].game_score,onBlur:os=>{var Fa;if((0,ae.Rm)()&&!((Fa=vi.AssistantObject.practice)!=null&&Fa.can_appraise)){Xt.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}rs($r,os)}})):null),Ft.createElement("div",{className:"font16 mt10"},vr.st===0&&(vr.path?typeof(vr==null?void 0:vr.game_codes_cn)=="string"?Ft.createElement("aside",{className:qt.shixunWrp},Ft.createElement(Dt,{game_codes_cn:vr==null?void 0:vr.game_codes_cn,autoHeight:yi,path:vr.path,game_id:vr.id,data:vr.game_codes,diff_code_count:vr.diff_code_count,onPathChange:Cr})):Ft.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),vr.st===1&&(vr.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),Ft.createElement("aside",{className:"mt10 font16"},(Xo=vr.outputs)!=null&&Xo.length?Ft.createElement(rt.default,{columns:To,pagination:{hideOnSinglePage:!0},dataSource:vr.outputs.map(os=>Ji(Ji({},vr),os))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),Ft.createElement("aside",{className:"mt10"},Ft.createElement("div",null,Ft.createElement("div",{style:{display:"flex",alignItems:"center"}},Ft.createElement("strong",{className:"c-black font14"},"\u4EE3\u7801\u8BC4\u4EF7"),!(vr!=null&&vr.commentEdit)&&!(0,ae.dE)()&&(vr!=null&&vr.comment?Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{style:{color:"#666666",fontSize:"12px",marginLeft:"auto"}},"\u6700\u65B0\u8BC4\u4EF7\u65F6\u95F4\uFF1A",vr!=null&&vr.comment_updated_at?re()(vr==null?void 0:vr.comment_updated_at).format("YYYY-MM-DD HH:mm:ss"):"--"),Ft.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"40px",cursor:"pointer"},onClick:()=>Nr(this,null,function*(){qa?Xt.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):jt.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u662F\u5426\u91CD\u65B0\u751F\u6210\u8BC4\u8BBA\uFF1F",okText:"\u786E\u8BA4",icon:null,cancelText:"\u53D6\u6D88",onOk:()=>Nr(this,null,function*(){ml(vr,$r)})})})},Ft.createElement("i",{className:"iconfont icon-zhongxinshengcheng1 mr8 font14"}),"\u91CD\u65B0\u751F\u6210")):Ft.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"auto",cursor:"pointer"},onClick:()=>Nr(this,null,function*(){qa?Xt.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):ml(vr,$r)})},Ft.createElement("img",{src:Ie,className:"mr8"}),"\u4E00\u952EAI\u751F\u6210")),!(vr!=null&&vr.commentEdit)&&!(0,ae.dE)()&&Ft.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"20px",cursor:"pointer"},onClick:()=>{const os=[...Le];os[$r].commentEdit=!0,qo(os),ns(vr==null?void 0:vr.comment)}},Ft.createElement("i",{className:"iconfont icon-bianji-moren mr8 font14"}),"\u7F16\u8F91"),(vr==null?void 0:vr.commentEdit)&&Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:qt.pj_close,onClick:()=>{const os=[...Le];os[$r].commentEdit=!1,qo(os)}},"\u53D6\u6D88"),Ft.createElement("div",{className:qt.pj_save,onClick:()=>Nr(this,null,function*(){var os;const Fa=yield(0,Yt.ZP)(`/api/student_works/${Hs==null?void 0:Hs.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:vr==null?void 0:vr.challenge_id,comment:Pi}});if((Fa==null?void 0:Fa.status)==0){Xt.ZP.success("\u8BC4\u4EF7\u6210\u529F");const ao=[...Le];ao[$r].commentEdit=!1,ao[$r].comment=Pi,ao[$r].comment_updated_at=(os=Fa==null?void 0:Fa.data)==null?void 0:os.comment_updated_at,qo(ao)}})},"\u4FDD\u5B58"))),!(vr!=null&&vr.commentEdit)&&Ft.createElement("div",{className:qt.pingjia},vr!=null&&vr.comment?Ft.createElement(Gn.Z,{value:vr==null?void 0:vr.comment,style:{fontSize:"14px"}}):"\u6682\u65E0\u8BC4\u4EF7~"),(vr==null?void 0:vr.commentEdit)&&Ft.createElement(lt.default.TextArea,{defaultValue:Pi,style:{borderRadius:"5px",marginTop:"10px"},rows:5,onChange:os=>ns(os.target.value)}))),Ft.createElement("aside",{className:"mt10 font16"},((Lo=vr==null?void 0:vr.adjust_review_score_list)==null?void 0:Lo.length)>0&&(0,ae.GJ)()&&Ft.createElement("div",null,Ft.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),Ft.createElement(rt.default,{columns:us,pagination:{hideOnSinglePage:!0},dataSource:vr.adjust_review_score_list,showHeader:!1})))))}),Ft.createElement(jt.default,{open:no,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{Ho({}),Fr(!1)},onCancel:()=>{Ho({}),Fr(!1)},title:Ft.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{Gr&&wo(!1)},onMouseOut:()=>{wo(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:vr=>Ft.createElement(pt(),{disabled:Gr,bounds:fo,nodeRef:_r,onStart:($r,Xo)=>fs($r,Xo)},Ft.createElement("div",{ref:_r},vr))},Ft.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},Ft.createElement("div",{style:{display:"flex",alignItems:"center"}},((Rr=Si==null?void 0:Si.data)==null?void 0:Rr.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?Ft.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):Ft.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),Ft.createElement("div",{style:{color:((Zr=Si==null?void 0:Si.data)==null?void 0:Zr.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(Xr=Si==null?void 0:Si.data)==null?void 0:Xr.output_detail)),Ft.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},Ft.createElement("div",null,Ft.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),Ft.createElement("span",{style:{marginLeft:8,color:"#232B40"}},re()((ei=Si==null?void 0:Si.data)==null?void 0:ei.created_at).format("YYYY-MM-DD HH:mm:ss"))),Ft.createElement("div",null,Ft.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),Ft.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(_o=Si==null?void 0:Si.data)==null?void 0:_o.ts_time,"s")),Ft.createElement("div",null,Ft.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),Ft.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(Zo=Si==null?void 0:Si.data)==null?void 0:Zo.ts_mem,"mb")),Ft.createElement("div",null,Ft.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),Ft.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((cs=Si==null?void 0:Si.data)==null?void 0:cs.test_set_passed_rate)*100,"%")))),Ft.createElement(_e.ZP,{height:500,autoHeight:yi,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((Si==null?void 0:Si.content)||""))),options:si})))};var to=(0,It.connect)(({shixunHomeworks:pi,loading:yi,globalSetting:vi,classroomList:er})=>({shixunHomeworks:pi,globalSetting:vi,loading:yi.effects,classroomList:er}))(co),Kr=bt(78241),gr={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},Vr=bt(30917),pr=bt(59301),zo=Object.defineProperty,es=Object.getOwnPropertySymbols,yo=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable,ws=(pi,yi,vi)=>yi in pi?zo(pi,yi,{enumerable:!0,configurable:!0,writable:!0,value:vi}):pi[yi]=vi,Wt=(pi,yi)=>{for(var vi in yi||(yi={}))yo.call(yi,vi)&&ws(pi,vi,yi[vi]);if(es)for(var vi of es(yi))ks.call(yi,vi)&&ws(pi,vi,yi[vi]);return pi},xs=(pi,yi,vi)=>new Promise((er,or)=>{var Rr=ei=>{try{Xr(vi.next(ei))}catch(_o){or(_o)}},Zr=ei=>{try{Xr(vi.throw(ei))}catch(_o){or(_o)}},Xr=ei=>ei.done?er(ei.value):Promise.resolve(ei.value).then(Rr,Zr);Xr((vi=vi.apply(pi,yi)).next())});const Ss=({shixunHomeworks:pi,dispatch:yi,classroomList:vi})=>{const{shixunWorkReport:er}=pi,or=(0,It.useParams)(),[Rr,Zr]=(0,Ft.useState)(!1),[Xr]=Kr.default.useForm(),[ei,_o]=jt.default.useModal(),[Zo,cs]=(0,Ft.useState)(!1),[ri,rr]=(0,Ft.useState)(!1);(0,Ft.useEffect)(()=>{var Fr,Gr,wo,fo;pi.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&Xr.setFieldsValue({comment:(Gr=(Fr=pi.actionTabs.selectArrs)==null?void 0:Fr.data)==null?void 0:Gr.work_comment,hidden_comment:(fo=(wo=pi.actionTabs.selectArrs)==null?void 0:wo.data)==null?void 0:fo.work_comment_hidden})},[pi.actionTabs.key]);const Er=()=>xs(void 0,null,function*(){const Fr=Xr.getFieldsValue();(yield(0,Yt.ZP)(`/api/student_works/${or.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:Fr.hidden_comment,comment:Fr.comment}})).status===0&&(Xt.ZP.success("\u8BC4\u9605\u6210\u529F"),Xr.resetFields(),yi({type:"shixunHomeworks/setActionTabs",payload:{}}),yi({type:"shixunHomeworks/getShixunWorkReport",payload:Wt({},or)}))}),no=[{title:"\u5173\u5361",dataIndex:"name",render:(Fr,Gr,wo)=>wo+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Fr,Gr,wo)=>pr.createElement("div",null,Fr,Gr.complete_status===4&&pr.createElement(de.vA,{status:Gr.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:Fr=>Fr?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(Fr,Gr)=>pr.createElement("div",null,pr.createElement("span",{style:{color:parseFloat(Gr.game_score_full)!==parseFloat(Fr)?"#E30000":"#53C41B"}},Fr),"/",Gr.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(Fr,Gr)=>(0,ae.GJ)()?pr.createElement(We,{max:Gr.game_score_full,defaultValue:parseFloat(Fr),onBlur:wo=>xs(void 0,null,function*(){var fo,xo;if((0,ae.Rm)()&&!((fo=vi.AssistantObject.practice)!=null&&fo.can_appraise)){Xt.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 _r=yield yi({type:"shixunHomeworks/changeScore",payload:{categoryId:or.homeworkId,type:"report",score:wo,challenge_id:Gr.challenge_id}});(xo=pi==null?void 0:pi.actionTabs)==null||xo.fn(),yield yi({type:"shixunHomeworks/getShixunWorkReport",payload:Wt({},or)}),_r.status===0&&Xt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Fr}];return pr.createElement(pr.Fragment,null,_o,pr.createElement(jt.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:pi.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>xs(void 0,null,function*(){var Fr;if((0,ae.Rm)()&&!((Fr=vi.AssistantObject.practice)!=null&&Fr.can_appraise)){Xt.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 Gr=Xr.getFieldsValue();JSON.stringify(Gr)==="{}"||Gr.hidden_comment===""&&Gr.comment===""?Zr(!0):Er()}),onCancel:()=>{yi({type:"shixunHomeworks/setActionTabs",payload:{}})}},pr.createElement(zt.Z,{justify:"space-between",className:gr.info},pr.createElement(Jt.Z,null,pr.createElement("span",{className:`${gr.label} ${gr.greyText}`},"\u59D3\u540D"),pr.createElement("span",{className:gr.blackContent},er==null?void 0:er.username)),pr.createElement(Jt.Z,null,pr.createElement("span",{className:`${gr.label} ${gr.greyText}`},"\u5B66\u53F7"),pr.createElement("span",{className:gr.blackContent},(er==null?void 0:er.student_id)||"--")),pr.createElement(Jt.Z,null,pr.createElement("span",{className:`${gr.label} ${gr.greyText}`},"\u73ED\u7EA7"),pr.createElement("span",{className:gr.blackContent},(er==null?void 0:er.group_name)||"--")),pr.createElement(Jt.Z,null,pr.createElement("span",{className:`${gr.label} ${gr.greyText}`},"\u5173\u5361\u5F97\u5206"),pr.createElement("span",{className:gr.orangeContent},(er==null?void 0:er.challenge_score)||"--")),pr.createElement(Jt.Z,null,pr.createElement("span",{className:`${gr.label} ${gr.greyText}`},"\u6548\u7387\u5206"),pr.createElement("span",{className:gr.orangeContent},(er==null?void 0:er.eff_score)||"--")),pr.createElement(Jt.Z,null,pr.createElement("span",{className:`${gr.label} ${gr.greyText}`},"\u8865\u4EA4\u6263\u5206"),pr.createElement("span",{className:gr.orangeContent},(er==null?void 0:er.late_penalty)||"--")),pr.createElement(Jt.Z,null,pr.createElement("span",{className:`${gr.label} ${gr.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),pr.createElement("span",{className:gr.orangeContent},(er==null?void 0:er.work_score)||"--"))),pr.createElement(Kr.default,{form:Xr,onChange:()=>{Rr&&Zr(!1)}},pr.createElement(zt.Z,{wrap:!1,align:"middle",justify:"space-between"},pr.createElement(Jt.Z,null,pr.createElement("div",{className:`${gr.inputLabel} ${gr.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),pr.createElement(Jt.Z,null,pr.createElement(Vr.Z,{isShowComponent:(0,ae.G5)(),ModalProps:{open:Zo,onCancel:()=>{cs(!1)}},onDataSelect:(Fr,Gr)=>xs(void 0,[Fr,Gr],function*(wo,{node:fo}){const xo=()=>{Xr.setFieldsValue({comment:fo==null?void 0:fo.value}),cs(!1)};if(Xr.getFieldValue("comment")){ei.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:xo});return}xo()})},pr.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:pr.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Fr=>{cs(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),pr.createElement(Kr.default.Item,{name:"comment"},pr.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),pr.createElement(zt.Z,{wrap:!1,align:"middle",justify:"space-between"},pr.createElement(Jt.Z,null,pr.createElement("div",{className:`${gr.inputLabel} ${gr.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),pr.createElement(Jt.Z,null,pr.createElement(Vr.Z,{isShowComponent:(0,ae.G5)(),ModalProps:{open:ri,onCancel:()=>{rr(!1)}},onDataSelect:(Fr,Gr)=>xs(void 0,[Fr,Gr],function*(wo,{node:fo}){const xo=()=>{Xr.setFieldsValue({hidden_comment:fo==null?void 0:fo.value}),rr(!1)};if(Xr.getFieldValue("hidden_comment")){ei.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:xo});return}xo()})},pr.createElement(Ct.ZP,{style:{padding:0,height:"auto"},icon:pr.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:Fr=>{rr(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),pr.createElement(Kr.default.Item,{name:"hidden_comment"},pr.createElement(lt.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),Rr&&pr.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),pr.createElement("div",{className:gr.tableTitle},"\u5173\u5361\u6210\u7EE9"),pr.createElement(rt.default,{className:gr.scoreTable,dataSource:er.stage_list,rowKey:"challenge_id",pagination:!1,columns:no,scroll:{x:"max-content"}})))};var Ms=(0,It.connect)(({shixunHomeworks:pi,classroomList:yi})=>({shixunHomeworks:pi,classroomList:yi}))(Ss),ma=bt(68971),Ea=bt(36708),oa=bt(44164),so=bt.n(oa),br={wrap:"wrap___LZOi9",line:"line___oju0L"},kn=bt(41069),Oe=({detailData:pi})=>{var yi;return Ft.createElement("div",{className:br.wrap},Ft.createElement(kn.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,kn.Uf)(pi),(pi==null?void 0:pi.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},Ft.createElement(kn.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,kn.Uf)(pi)}),!!((yi=pi==null?void 0:pi.photos)!=null&&yi.length)&&Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:br.line}),Ft.createElement(kn._s,{dataSource:pi==null?void 0:pi.photos,right:21,col:4,wrapWidth:1140}))))},hi=bt(78297),Je=bt(59301),fn=Object.defineProperty,Ke=Object.defineProperties,ni=Object.getOwnPropertyDescriptors,Ci=Object.getOwnPropertySymbols,_i=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,on=(pi,yi,vi)=>yi in pi?fn(pi,yi,{enumerable:!0,configurable:!0,writable:!0,value:vi}):pi[yi]=vi,di=(pi,yi)=>{for(var vi in yi||(yi={}))_i.call(yi,vi)&&on(pi,vi,yi[vi]);if(Ci)for(var vi of Ci(yi))qi.call(yi,vi)&&on(pi,vi,yi[vi]);return pi},Vi=(pi,yi)=>Ke(pi,ni(yi)),kr=(pi,yi)=>{var vi={};for(var er in pi)_i.call(pi,er)&&yi.indexOf(er)<0&&(vi[er]=pi[er]);if(pi!=null&&Ci)for(var er of Ci(pi))yi.indexOf(er)<0&&qi.call(pi,er)&&(vi[er]=pi[er]);return vi},ii=(pi,yi,vi)=>new Promise((er,or)=>{var Rr=ei=>{try{Xr(vi.next(ei))}catch(_o){or(_o)}},Zr=ei=>{try{Xr(vi.throw(ei))}catch(_o){or(_o)}},Xr=ei=>ei.done?er(ei.value):Promise.resolve(ei.value).then(Rr,Zr);Xr((vi=vi.apply(pi,yi)).next())});const wi=pi=>{var yi=pi,{shixunHomeworks:vi,classroomList:er,globalSetting:or,loading:Rr,user:Zr,dispatch:Xr}=yi,ei=kr(yi,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),_o,Zo,cs;const[ri,rr]=(0,Ft.useState)(di({},(0,It.useParams)())),Er=(0,It.useParams)(),[no,Fr]=(0,Ft.useState)({page:1,page_size:10}),Gr=(0,It.useLocation)(),[]=(0,Ft.useState)([]),[wo,fo]=(0,Ft.useState)(),xo=(0,Ft.useRef)(),_r=(0,Ft.useRef)(),[Si,Ho]=(0,Ft.useState)(!1),[Pi,ns]=(0,Ft.useState)(!0),[qs,fs]=(0,Ft.useState)(!1),[Hs,Gs]=(0,Ft.useState)(!1),{shixunWorkReport:si}=vi,[To,us]=(0,Ft.useState)(),[rs,Cr]=(0,Ft.useState)([]),[Le,qo]=(0,Ft.useState)(),[ta,qa]=(0,Ft.useState)("all"),ol=(0,ae.GJ)(),[ml,vr]=(0,Ft.useState)(new(ee())),[$r,Xo]=(0,Ft.useState)(0),[Lo,os]=(0,Ft.useState)(!1),[Fa,ao]=(0,Ft.useState)(!1),[mo,zi]=(0,Ft.useState)(!1),[Eo,Es]=(0,Ft.useState)(""),[la,ca]=(0,Ft.useState)(!1),[Qo,Vs]=(0,Ft.useState)(!0),[Ka,Wl]=(0,Ft.useState)(0),La=(0,Ft.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),vs=(0,Ft.useRef)(),ai=()=>ii(void 0,null,function*(){(Zr.userInfo.is_teacher||Zr.userInfo.admin)&&(ca(!0),Vs(!1))});(0,Ft.useEffect)(()=>{var Ao;(0,ae.Rm)()&&er.AssistantObject.practice&&!((Ao=er.AssistantObject.practice)!=null&&Ao.can_view)&&It.history.replace("/403")},[(_o=er.AssistantObject.practice)==null?void 0:_o.can_view]),(0,Ft.useEffect)(()=>{ai(),console.log("\u6253\u5370\u7684------",si),vs.current=si==null?void 0:si.next_student_work_id,Es(si.repeat_minus_score)},[si,Zr]),(0,Ft.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",si.work_score),Wl(si.work_score)},[si.work_score,Eo]),(0,Ft.useEffect)(()=>(Xr({type:"globalSetting/footerToggle",payload:!1}),()=>{Xr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,Ft.useEffect)(()=>{var Ao;if(si){let Ns=[];(Ao=si==null?void 0:si.target_test_sets)==null||Ao.map((da,wr)=>{var Ma;(Ma=da==null?void 0:da.targets)==null||Ma.map((Oa,Bl)=>{var su;Oa.name=da==null?void 0:da.name,Oa.total_target_score=da==null?void 0:da.total_target_score,Oa.actual_target_score=da==null?void 0:da.actual_target_score,Oa.rowSpan=Bl===0?(su=da==null?void 0:da.targets)==null?void 0:su.length:0,Oa.order=wr+1,Ns.push(Oa)})}),us(Ns),(0,ae.Rm)()&&Xr({type:"classroomList/getAssistantPermissions",payload:{course_id:ri.coursesId}})}},[si]),(0,Ft.useEffect)(()=>{vi.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&(si==null?void 0:si.students_count)>0&&!Pi&&setTimeout(()=>{Is("all")},800)},[si==null?void 0:si.homework_common_id,Pi]),(0,Ft.useEffect)(()=>{rr(di({},Er))},[Gr.pathname]);const ka=()=>{document.body.scrollIntoView()},bc=Ao=>{no.page=Ao,Fr(di({},no)),Vl(no,ta)},Vl=(Ao,Ns)=>ii(void 0,null,function*(){fs(!0);const da=yield(0,Yt.ZP)(`/api/student_works/${ri==null?void 0:ri.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:Vi(di({},Ao),{challenge_id:Ns=="all"?null:Ns})});(da==null?void 0:da.status)===0&&(Cr(da==null?void 0:da.list),qo(da==null?void 0:da.count)),fs(!1)});function kh(){return ii(this,null,function*(){La.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const sl=()=>{document.querySelectorAll("canvas").forEach(Ao=>{(!Ao.clientWidth||!Ao.clientHeight)&&Ao.remove()})},Wc=()=>{xo.current.offsetHeight>62e3?Gs(!1):Gs(!0)},Fl=Ao=>ii(void 0,null,function*(){const Ns=yield(0,Ea.t1)({homeworkId:Ao||ri.homeworkId});fo(Ns==null?void 0:Ns.data)}),Is=Ao=>ii(void 0,null,function*(){var Ns,da,wr,Ma;let Oa=0,Bl;Bl=jt.default.info({width:460,title:Je.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",Je.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:Je.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Je.createElement("span",{className:"c-blue"},Oa+1),"/",Ao!=="all"?1:si==null?void 0:si.students_count,Je.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:qt.modal,onOk:()=>{}});const su={margin:[0,0],filename:`${si!=null&&si.student_id&&(si==null?void 0:si.student_id)!="--"?si==null?void 0:si.student_id:""}${si.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},au=ml.folder(si==null?void 0:si.shixun_name);function Yo(va){return ii(this,null,function*(){yield Fl(va||vs.current);const Cs=yield Xr({type:"shixunHomeworks/getShixunWorkReport",payload:di({homeworkId:va||vs.current},La.current||{})});vs.current=Cs==null?void 0:Cs.next_student_work_id,ka(),Oa++,setTimeout(()=>ii(this,null,function*(){var lu,Ll,Ml,tl;sl();const Pl=au.folder(`${Cs==null?void 0:Cs.group_name}`).folder(`${Cs!=null&&Cs.student_id&&(Cs==null?void 0:Cs.student_id)!="--"?Cs.student_id+"+":""}${Cs==null?void 0:Cs.username}`),No=document.querySelector("#export-all").children;let dc=so()();for(let al=0;al<No.length;al++)yield dc.set(su).from(No[al]).toContainer().toCanvas().toPdf().get("pdf").then(zu=>ii(this,null,function*(){al<No.length-1&&(yield zu.addPage())}));if(Pl.file(`${Cs!=null&&Cs.student_id&&(Cs==null?void 0:Cs.student_id)!="--"?Cs.student_id+"+":""}${Cs==null?void 0:Cs.username}.pdf`,dc.output("blob")),((lu=Cs==null?void 0:Cs.shixun_detail)==null?void 0:lu.length)>0&&((Ml=(Ll=Cs==null?void 0:Cs.shixun_detail)==null?void 0:Ll.filter(al=>{var zu;return((zu=al==null?void 0:al.game_codes)==null?void 0:zu.length)>0}))==null?void 0:Ml.length)>0){const al=Pl.folder("\u4EE3\u7801\u6587\u4EF6");(tl=Cs==null?void 0:Cs.shixun_detail)==null||tl.map((zu,hh)=>{var dh,Ga;if(((dh=zu==null?void 0:zu.game_codes)==null?void 0:dh.length)>0){const ih=al.folder(`\u7B2C${hh+1}\u5173-${zu.subject}-${zu.id}`);(Ga=zu==null?void 0:zu.game_codes)==null||Ga.map(Ec=>{ih.file(`${Ec.filename}.txt`,Ec==null?void 0:Ec.content)})}})}Bl.update({content:Je.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Je.createElement("span",{className:"c-blue"},Oa),"/",Cs==null?void 0:Cs.students_count,Je.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),Oa==(Cs==null?void 0:Cs.students_count)?(Bl.destroy(),ia()):Yo()}),2200)})}if(Ao!=="all"||(si==null?void 0:si.students_count)<2){sl(),ka();const va=_r.current.children;let Cs=so()();const Ll=au.folder(`${si==null?void 0:si.group_name}`).folder(`${si!=null&&si.student_id&&(si==null?void 0:si.student_id)!="--"?(si==null?void 0:si.student_id)+"+":""}${si==null?void 0:si.username}`);for(let Ml=0;Ml<va.length;Ml++)yield Cs.set(su).from(va[Ml]).toContainer().toCanvas().toPdf().get("pdf").then(tl=>ii(void 0,null,function*(){Ml<va.length-1&&(yield tl.addPage())}));if(Ho(!1),Ll.file(`${si!=null&&si.student_id&&(si==null?void 0:si.student_id)!="--"?(si==null?void 0:si.student_id)+"+":""}${si.username}.pdf`,Cs.output("blob"),{base64:!1}),((Ns=si==null?void 0:si.shixun_detail)==null?void 0:Ns.length)>0&&((wr=(da=si==null?void 0:si.shixun_detail)==null?void 0:da.filter(Ml=>{var tl;return((tl=Ml==null?void 0:Ml.game_codes)==null?void 0:tl.length)>0}))==null?void 0:wr.length)>0){const Ml=Ll.folder("\u4EE3\u7801\u6587\u4EF6");(Ma=si==null?void 0:si.shixun_detail)==null||Ma.map((tl,tu)=>{var Pl,No;if(((Pl=tl==null?void 0:tl.game_codes)==null?void 0:Pl.length)>0){const dc=Ml.folder(`\u7B2C${tu+1}\u5173-${tl.subject}-${tl.id}`);(No=tl==null?void 0:tl.game_codes)==null||No.map(al=>{dc.file(`${al.filename}.txt`,al==null?void 0:al.content)})}})}Bl.destroy(),ia();return}else Yo(si==null?void 0:si.first_student_work_id)}),ia=()=>{ml.generateAsync({type:"blob"}).then(function(Ao){console.log(si,"shixunWorkReport");const Ns=document.createElement("a");Ns.href=window.URL.createObjectURL(Ao),Ns.download=(si==null?void 0:si.shixun_name)+".zip",document.body.appendChild(Ns);const da=document.createEvent("MouseEvents");da.initEvent("click",!1,!1),Ns.dispatchEvent(da),document.body.removeChild(Ns),vr(new(ee()))}),Gs(!1)};(0,Ft.useEffect)(()=>{Ph()},[ri.homeworkId]);const Ph=()=>ii(void 0,null,function*(){ns(!0),yield Xr({type:"shixunHomeworks/getShixunWorkReport",payload:di(di({},ri),La.current||{})}),Fl(),(0,ae.GJ)()&&kh(),ns(!1)}),is=[{title:"\u5173\u5361",dataIndex:"name",render:(Ao,Ns,da)=>da+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(Ao,Ns,da)=>Je.createElement("div",null,Ao,Ns.complete_status===4&&Je.createElement(de.vA,{status:Ns.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(Ao,Ns,da)=>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,Ns)=>Je.createElement("div",null,Je.createElement("span",{style:{color:parseFloat(Ns.myself_experience)!==parseFloat(Ao)?"red":"green"}},Ns.myself_experience),"/",Ao)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(Ao,Ns)=>Je.createElement("div",null,Je.createElement("span",{style:{color:parseFloat(Ns.game_score_full)!==parseFloat(Ao)?"red":"green"}},Ao),"/",Ns.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(Ao,Ns)=>ol?Je.createElement(We,{max:Ns.game_score_full,defaultValue:parseFloat(Ao),onBlur:da=>ii(void 0,null,function*(){var wr;if((0,ae.Rm)()&&!((wr=er.AssistantObject.practice)!=null&&wr.can_appraise)){Xt.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 Ma=yield Xr({type:"shixunHomeworks/changeScore",payload:{categoryId:ri.homeworkId,type:"report",score:da,challenge_id:Ns.challenge_id}});Vl({page:1,page_size:10},"all"),yield Xr({type:"shixunHomeworks/getShixunWorkReport",payload:di(di({},ri),La.current||{})}),Ma.status===0&&Xt.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Ao}];let Zs=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(Ao,Ns,da)=>({children:Ao,props:{rowSpan:Ns.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(Ao,Ns,da)=>({children:Ao,props:{rowSpan:Ns.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,Ns,da)=>Je.createElement("div",null,Je.createElement("span",{style:{color:parseFloat(Ns.actual_test_score)!==parseFloat(Ao)?"red":"green"}},Ns.actual_test_score),"/",Ao)},{title:"\u6307\u6807\u603B\u5206",render:(Ao,Ns,da)=>({children:Je.createElement("div",null,Je.createElement("span",{style:{color:parseFloat(Ns.actual_target_score)!==parseFloat(Ao)?"red":"green"}},Ns.actual_target_score),"/",Ao),props:{rowSpan:Ns.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const ys=[{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=>Je.createElement("span",null,Ao?re()(Ao).format("YYYY-MM-DD HH:mm"):"--")}],Hr=Ao=>{Xr({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Ao==="next"?It.history.push(`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/${si==null?void 0:si.next_student_work_id}/comment`):It.history.push(`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/${si==null?void 0:si.pre_student_work_id}/comment`)},200)},kl=Ao=>{Es(""),Ao.target.value&&(console.log("\u8FDB\u6765",si),Ao.target.value=Ao.target.value>si.repeat_setting_score?si.repeat_setting_score:Ao.target.value,Es(Ao.target.value))},Ol=()=>ii(void 0,null,function*(){const Ao=yield(0,Yt.ZP)(`/api/student_works/${si==null?void 0:si.work_id}/update_repeat_score`,{method:"put",body:{score:Eo}});yield Xr({type:"shixunHomeworks/getShixunWorkReport",payload:di(di({},ri),La.current||{})}),Ao.status===0&&Xt.ZP.info("\u64CD\u4F5C\u6210\u529F")});return Je.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},Je.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},Je.createElement(Pt.Z,{loading:Rr["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},Je.createElement("div",{className:"edu-container"},si.course_id&&Je.createElement("section",{className:"animated fadeIn"},Je.createElement("aside",{className:""},si.category&&Je.createElement(oe.Z,{separator:">"},Je.createElement(oe.Z.Item,null,Je.createElement(It.Link,{to:`/classrooms/${si.course_id}/shixun_homework`},si.course_name)),Je.createElement(oe.Z.Item,null,Je.createElement(It.Link,{to:`/classrooms/${si.course_id}/shixun_homework/${si.category.main?"":si.category.category_id}`},si.category.category_name)),Je.createElement(oe.Z.Item,null,Je.createElement(It.Link,{to:`/classrooms/${si.course_id}/shixun_homework/${si.homework_common_id}/detail${(0,ae.dE)()?"?tabs=1":""}`},"\u4F5C\u4E1A\u8BE6\u60C5")),Je.createElement(oe.Z.Item,null,si.username))),Je.createElement("aside",{className:[qt.title1,"mt20"].join(" ")},Je.createElement(zt.Z,{align:"middle"},Je.createElement(Jt.Z,{flex:1},Je.createElement(It.Link,{to:`/classrooms/${si.course_id}/shixun_homework/${si.homework_common_id}/detail`},Je.createElement(wt.Z,{className:"font16 c-black"})),Je.createElement("strong",{className:"font20 ml5"},si==null?void 0:si.homework_name),Je.createElement(de.VV,{temporary:!0,status:si.homework_status})),Je.createElement(Jt.Z,{className:qt.title1_right},si.view_tpi&&Je.createElement(Ct.ZP,{onClick:()=>{var Ao,Ns;(0,de.xg)(`/tasks/${si==null?void 0:si.course_id}/${si==null?void 0:si.homework_common_id}/${(Ns=(Ao=si==null?void 0:si.shixun_detail)==null?void 0:Ao[0])==null?void 0:Ns.game_identifier}`)}},Je.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,ae.GJ)()&&si.homework_end===!1&&!!si.myshixun_id&&Je.createElement(Ct.ZP,{className:"ml10",onClick:()=>ii(void 0,null,function*(){yield Xr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:si.myshixun_identifier},homework_common_id:Er.categoryId}})})},Je.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),Je.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var Ao;if((0,ae.Rm)()&&!((Ao=er.AssistantObject.practice)!=null&&Ao.can_download)){Xt.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}Is("")},loading:Si},Je.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,ae.GJ)()&&(si==null?void 0:si.students_count)>1&&Je.createElement(Ct.ZP,{className:"ml10",onClick:()=>{var Ao;if((0,ae.Rm)()&&!((Ao=er.AssistantObject.practice)!=null&&Ao.can_download)){Xt.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}jt.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:Je.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:Je.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:()=>{Is("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,hi.jj)({categoryId:ri.categoryId,coursesId:ri.coursesId},"shixun_report")}}})}},Je.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),Je.createElement("aside",{className:"mt30 relative"})),Je.createElement("aside",{className:"edu-container bg-white",ref:xo},Je.createElement("div",{id:"export-all",ref:_r},Je.createElement("div",{id:"export-all-1"},Je.createElement("div",{className:qt.title},Je.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),Je.createElement("div",null,(0,ae.GJ)()&&Je.createElement(Ct.ZP,{className:"mr20",type:"primary",onClick:()=>{Xr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:si.user_id,data:di({},si)},fn:()=>Vl({page:1,page_size:10},"all")}})}},Je.createElement(Mt.Z,null),si.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),Je.createElement(tt.Z,{style:{marginTop:0}}),Je.createElement(zt.Z,{className:"pl30 pr30"},Je.createElement(Jt.Z,null,Je.createElement("img",{className:qt.userPic,src:`${ne.Z.IMG_SERVER}/images/${si.image_url}`,alt:si.username})),Je.createElement(Jt.Z,null,Je.createElement("span",{className:"font16 ml40"},si.username),Je.createElement(de.vA,{status:si.compelete_status}),Je.createElement("ul",{className:qt.userInfo},Je.createElement("li",null,"\u5B66\u53F7\uFF1A",si.student_id||"--"),Je.createElement("li",null,"\u5206\u73ED\uFF1A",si.group_name||"--"),Je.createElement("br",null),Je.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",Je.createElement("span",{className:"c-red"},si.complete_count),"/",Je.createElement("span",{className:"c-red"},si.challenges_count)),Je.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",Je.createElement("span",{className:"c-red"},si.current_complete_count||"-"),"/",Je.createElement("span",{className:"c-red"},si.challenges_count)),Je.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",si&&si.efficiency===null?"--":si&&si.efficiency),Je.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",si&&si.max_efficiency===null?"--":si&&si.max_efficiency))),Je.createElement("ul",{className:[qt.listItem,"mt10"].join(" ")},Je.createElement("li",null,Je.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),Je.createElement("div",{className:"c-light-black mt20"},si&&si.passed_time===null||si&&si.passed_time==="--"?"--":re()(si&&si.passed_time).format("YYYY-MM-DD HH:mm"))),Je.createElement("li",null,Je.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",Je.createElement("i",{onClick:Ao=>{Ao.stopPropagation(),Ao.preventDefault(),os(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),Je.createElement("div",{className:"c-light-black mt20"},si==null?void 0:si.human_training_time_rules)),Je.createElement("li",null,Je.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",Je.createElement("i",{onClick:Ao=>{Ao.stopPropagation(),Ao.preventDefault(),ao(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),Je.createElement("div",{className:"c-light-black mt20"},si.time_consuming)),Je.createElement("li",null,Je.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),Je.createElement("div",{className:"mt20"},si.evaluate_count)),(si==null?void 0:si.eff_score_full)&&Je.createElement(Je.Fragment,null,Je.createElement("li",null,Je.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),Je.createElement("div",{className:"mt20"},Je.createElement("span",{className:"c-orange"},si.challenge_score),"/",Je.createElement("span",{className:"c-light-black"},si.challenge_score_full))),Je.createElement("li",null,Je.createElement("strong",null,"\u6548\u7387\u5206"),Je.createElement("div",{className:"mt20"},Je.createElement("span",{className:"c-orange"},si.eff_score),"/",Je.createElement("span",{className:"c-light-black"},si.eff_score_full)))),(si==null?void 0:si.have_repeat)&&(si==null?void 0:si.repeat_minus_score)!==0&&Je.createElement("li",{style:{position:"relative"}},Je.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},Je.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Je.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},si!=null&&si.review_rate?Je.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if(si!=null&&si.review_id&&la)localStorage.setItem("studentDetial",window.location.pathname),It.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${ri.categoryId}/review_detail/${si==null?void 0:si.review_id}`});else return}},si.review_rate.toFixed(1),"%"):Je.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),la?Je.createElement("div",{className:"mt20"},Je.createElement(lt.default,{style:{width:"45px",height:"22px"},value:Eo,onChange:Ao=>{kl(Ao)},onBlur:Ol,disabled:Qo})," / ",si==null?void 0:si.repeat_setting_score):Je.createElement("div",{className:"mt20"},si==null?void 0:si.repeat_minus_score," / ",si==null?void 0:si.repeat_setting_score)),console.log("sssssssssssssssssssssss",si==null?void 0:si.have_repeat,si==null?void 0:si.repeat_minus_score),(si==null?void 0:si.have_repeat)&&(si==null?void 0:si.repeat_minus_score)===0&&Je.createElement("li",null,Je.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Je.createElement("div",{className:"mt20"}," - -")),!(si!=null&&si.have_repeat)&&Je.createElement("li",null,Je.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),Je.createElement("div",{className:"mt20"}," - -")),Je.createElement("li",null,Je.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),Je.createElement("div",{className:"mt20"},Je.createElement("span",null,si.late_penalty||"- -"))),Je.createElement("li",null,Je.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),Je.createElement("div",{className:"mt20"},Je.createElement("span",{className:"c-orange"},Ka),"/",Je.createElement("span",{className:"c-light-black"},si.all_work_score))),Je.createElement("li",null,Je.createElement("strong",null,"\u603B\u8BC4"),Je.createElement("div",{className:"mt20"},Je.createElement("span",{className:"c-orange"},si.overall_appraisal))))),Je.createElement(tt.Z,{style:{margin:0}}),(si.work_comment_hidden||si.work_comment)&&Je.createElement("div",null,Je.createElement(zt.Z,{align:"middle"},Je.createElement(Jt.Z,{flex:1},Je.createElement("h1",{className:qt.title},"\u70B9\u8BC4\u5185\u5BB9")),Je.createElement(Jt.Z,{className:"pr30"},(0,ae.GJ)()&&Je.createElement(Ct.ZP,{onClick:()=>ii(void 0,null,function*(){jt.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:Je.createElement(Ot.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return ii(this,null,function*(){(yield(0,Ea.gZ)({comment_id:si.comment_id,homeworkId:ri.homeworkId})).status===0&&(Xt.ZP.success("\u5220\u9664\u6210\u529F"),Xr({type:"shixunHomeworks/getShixunWorkReport",payload:di(di({},ri),La.current||{})}))})}})})},Je.createElement(Ht.Z,null),"\u5220\u9664"))),Je.createElement(tt.Z,{style:{margin:0}}),si.work_comment&&Je.createElement("aside",{className:"pl30 pr30 mt20"},Je.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Je.createElement("br",null),Je.createElement(Gn.Z,{value:si.work_comment})),si.work_comment_hidden&&Je.createElement("aside",{className:"pl30 pr30 mt20"},Je.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Je.createElement("br",null),Je.createElement(Gn.Z,{value:si.work_comment_hidden}))),(si==null?void 0:si.action_analysis)&&Je.createElement(Oe,{detailData:si}),Je.createElement("div",{className:qt.score},Je.createElement("h1",{className:qt.title},"\u9636\u6BB5\u6210\u7EE9"),(si==null?void 0:si.adjust_review_score_count)>0&&(0,ae.GJ)()&&Je.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{zi(!0),Vl({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",si==null?void 0:si.adjust_review_score_count,"\u6B21\uFF09")),Je.createElement("aside",{className:"pl30 pr30"},Je.createElement(rt.default,{dataSource:si.stage_list,rowKey:Ao=>Ao==null?void 0:Ao.challenge_id,pagination:!1,columns:is})),((Zo=si==null?void 0:si.target_test_sets)==null?void 0:Zo.length)>0&&Je.createElement("div",null,Je.createElement("h1",{className:qt.title},"\u6307\u6807\u6210\u7EE9"),Je.createElement("aside",{className:"pl30 pr30"},Je.createElement(rt.default,{dataSource:To,rowKey:Ao=>Ao==null?void 0:Ao.challenge_id,pagination:!1,bordered:!0,columns:Zs}))),(si==null?void 0:si.work_description)&&Je.createElement(Je.Fragment,null,Je.createElement("h1",{className:qt.title},"\u4E2A\u4EBA\u603B\u7ED3"),Je.createElement("aside",{className:"pl30 pr30"},Je.createElement(Gn.Z,{value:si==null?void 0:si.work_description}))),Je.createElement("h1",{className:qt.title},"\u56FE\u5F62\u7EDF\u8BA1"),Je.createElement(Ge,{data:wo}),Je.createElement("h1",{className:qt.title},"\u5B9E\u8BAD\u8BE6\u60C5")),Je.createElement(to,{autoHeight:Hs}))),(0,ae.GJ)()&&Je.createElement("aside",{className:`${qt.footerBar} ${Si?qt.footerBarStatic:""}`},Je.createElement("aside",{className:"edu-container"},Je.createElement(zt.Z,{align:"middle"},Je.createElement(Jt.Z,{flex:"1"},Je.createElement(It.Link,{className:qt.exitComment,to:`/classrooms/${ri.coursesId}/shixun_homework/${ri.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),Je.createElement(Jt.Z,{flex:"1",className:"tr"},Je.createElement(Ct.ZP,{type:"default",disabled:!(si!=null&&si.pre_student_work_id),onClick:()=>Hr()},"\u4E0A\u4E00\u4E2A"),Je.createElement(Ct.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!(si!=null&&si.next_student_work_id),onClick:()=>Hr("next")},"\u4E0B\u4E00\u4E2A"),(0,ae.GJ)()&&Je.createElement(Ct.ZP,{type:"primary",onClick:()=>ii(void 0,null,function*(){Xr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:si.user_id,data:di({},si)},fn:()=>Vl({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),Je.createElement(Ms,null),Je.createElement(ma.Z,null),Je.createElement(jt.default,{open:Lo,width:860,centered:!0,onCancel:()=>{os(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},Je.createElement("div",{style:{color:"#333333",fontWeight:400}},Je.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),Je.createElement("br",null),Je.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"),Je.createElement("br",null),Je.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"),Je.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 "),Je.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")),Je.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Je.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),Je.createElement("br",null),Je.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 "),Je.createElement("br",null),Je.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"),Je.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 "),Je.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"),Je.createElement("br",null),Je.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")),Je.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Je.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),Je.createElement("br",null),Je.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")),Je.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Je.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),Je.createElement("br",null),Je.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"))),Je.createElement(jt.default,{open:Fa,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{ao(!1)},width:600},Je.createElement("div",{style:{fontWeight:400,color:"#333333"}},Je.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Je.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"),Je.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Je.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"),Je.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Je.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"))),Je.createElement(jt.default,{open:mo,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{qa("all"),zi(!1)},destroyOnClose:!0,width:900},Je.createElement("div",{style:{fontWeight:400,color:"#333333"}},Je.createElement("div",null,Je.createElement("span",null,"\u5173\u5361\uFF1A"),Je.createElement(ut.default,{style:{width:300},value:ta,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:Ao=>ii(void 0,null,function*(){qa(Ao),Vl({page:1,page_size:10},Ao)})},Je.createElement(ut.default.Option,{value:"all"}," \u5168\u90E8 "),(cs=si==null?void 0:si.stage_list)==null?void 0:cs.map((Ao,Ns)=>Je.createElement(ut.default.Option,{key:Ns,value:Ao==null?void 0:Ao.challenge_id},"\u7B2C",(0,de.EM)(Ns+1),"\u5173")))),Je.createElement("div",{className:"mt20"},Je.createElement(rt.default,{dataSource:rs,rowKey:Ao=>Ao==null?void 0:Ao.id,pagination:!1,columns:ys,loading:qs})),Je.createElement("div",{className:qt.footer},Je.createElement("div",null,Je.createElement("span",{style:{color:"#656F87"}},"\u5171",Je.createElement("span",{className:"c-light-primary"},Le),"\u6761\u6570\u636E")),Je.createElement(ct.Z,{defaultCurrent:1,defaultPageSize:10,current:(no==null?void 0:no.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:Le,onChange:bc})))))};var dr=(0,It.connect)(({shixunHomeworks:pi,classroomList:yi,loading:vi,globalSetting:er,user:or})=>({shixunHomeworks:pi,classroomList:yi,globalSetting:er,loading:vi.effects,user:or}))(wi)},68971:function(ui,wn,bt){"use strict";var Ft=bt(43418),ce=bt(8591),re=bt(99064),Be=bt(89070),ee=bt(24065),Yt=bt(59301),It=(Xt,Pt,oe)=>new Promise((zt,Jt)=>{var Ct=lt=>{try{tt(oe.next(lt))}catch(rt){Jt(rt)}},et=lt=>{try{tt(oe.throw(lt))}catch(rt){Jt(rt)}},tt=lt=>lt.done?zt(lt.value):Promise.resolve(lt.value).then(Ct,et);tt((oe=oe.apply(Xt,Pt)).next())});const jt=({shixunHomeworks:Xt,classroomList:Pt,dispatch:oe})=>{const zt=(0,Be.useParams)();return Yt.createElement(Ft.default,{centered:!0,title:"\u63D0\u793A",open:Xt.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>It(void 0,null,function*(){var Jt,Ct,et,tt;if((0,ee.Rm)()&&!((Jt=Pt.AssistantObject.practice)!=null&&Jt.can_redo)){ce.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,re.ZP)(`/api/myshixuns/${Xt.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:zt.coursesId,homework_common_id:Xt.actionTabs.homework_common_id}});if(lt.shixun_identifier){ce.ZP.success("\u64CD\u4F5C\u6210\u529F"),oe({type:"shixunHomeworks/setActionTabs",payload:{}});const rt=(et=(Ct=lt==null?void 0:lt.new_works)==null?void 0:Ct.find(ut=>`${ut.homework_common_id}`===zt.categoryId))==null?void 0:et.id;if((0,ee.Rm)()&&!((tt=Pt.AssistantObject.practice)!=null&&tt.can_view))return;Be.history.replace(`/classrooms/${zt.coursesId}/shixun_homework/${zt.categoryId}/${rt}/comment`)}}),onCancel:()=>{oe({type:"shixunHomeworks/setActionTabs",payload:{}})}},Yt.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Yt.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};wn.Z=(0,Be.connect)(({shixunHomeworks:Xt,classroomList:Pt})=>({shixunHomeworks:Xt,classroomList:Pt}))(jt)},78297:function(ui,wn,bt){"use strict";bt.d(wn,{AD:function(){return Ge},D9:function(){return ie},Hp:function(){return Ot},IM:function(){return Bn},Iy:function(){return ne},KM:function(){return ki},MJ:function(){return Ht},Ne:function(){return Se},ON:function(){return fi},Uj:function(){return nn},VY:function(){return Mn},YO:function(){return xi},YX:function(){return Hn},Zn:function(){return et},_g:function(){return ct},_k:function(){return Re},c6:function(){return ze},cr:function(){return tt},eV:function(){return Vt},fi:function(){return lt},gh:function(){return be},hS:function(){return Ln},iA:function(){return rt},j6:function(){return wt},je:function(){return We},jj:function(){return Mt},kS:function(){return Wn},o6:function(){return qt},pO:function(){return Fi},rQ:function(){return _e},sA:function(){return de},xm:function(){return ve},xo:function(){return Ye},y8:function(){return Ne},yd:function(){return ut}});var Ft=bt(92365),ce=bt(89070),re=bt(955),Be=bt(8591),ee=bt(3294),Yt=Object.defineProperty,It=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Pt=(Nt,Dt,mt)=>Dt in Nt?Yt(Nt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Nt[Dt]=mt,oe=(Nt,Dt)=>{for(var mt in Dt||(Dt={}))jt.call(Dt,mt)&&Pt(Nt,mt,Dt[mt]);if(It)for(var mt of It(Dt))Xt.call(Dt,mt)&&Pt(Nt,mt,Dt[mt]);return Nt},zt=(Nt,Dt,mt)=>new Promise((ft,pt)=>{var At=le=>{try{we(mt.next(le))}catch(me){pt(me)}},ue=le=>{try{we(mt.throw(le))}catch(me){pt(me)}},we=le=>le.done?ft(le.value):Promise.resolve(le.value).then(At,ue);we((mt=mt.apply(Nt,Dt)).next())});const Jt=()=>{(0,ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},Ct=()=>{(0,ce.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},et=Nt=>zt(void 0,null,function*(){Jt(),(yield(0,Ft.YR)(oe({},Nt))).status===0&&(yield(0,re.QH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Nt.coursesId}/export_couser_info.json`,query:Nt}))),Ct()}),tt=Nt=>zt(void 0,null,function*(){const Dt=yield(0,Ft.yS)(oe({},Nt));if(Dt.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_member_act_score`);else{if(Dt.status===-2)return Dt;Dt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_member_act_score`))}}),lt=Nt=>zt(void 0,null,function*(){const Dt=yield(0,Ft.W0)(oe({},Nt));if(Dt.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_total_score`);else{if(Dt.status===-4)return Dt;Dt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_total_score`))}}),rt=Nt=>zt(void 0,null,function*(){const Dt=yield(0,Ft.Nl)(oe({},Nt));if(Dt.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Dt.status===-4)return Dt;Dt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_total_exercise_and_other`))}}),ut=Nt=>zt(void 0,null,function*(){const Dt=yield(0,Ft.IU)(oe({},Nt));if(Dt.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/export_star_user`);else{if(Dt.status===-4)return Dt;Dt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/export_star_user`))}}),ct=Nt=>zt(void 0,null,function*(){const Dt=yield(0,Ft.td)(oe({},Nt));if(Dt.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Dt.status===-2)return Dt;if(Dt.status===-3)(0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_total_exercise_and_other`);else if(Dt.status===-4)return Dt}}),wt=Nt=>zt(void 0,null,function*(){const Dt=yield(0,Ft.QX)(oe({},Nt));if(Dt.status===0)Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_total_homework`);else{if(Dt.status===-4)return Dt;Dt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/course_total_homework`))}}),Mt=(Nt,Dt)=>zt(void 0,null,function*(){const mt=yield(0,Ft.o_)(oe({},Nt));mt.status===0?(Be.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"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/${Dt}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/${Dt}`))}),Ot=(Nt,Dt)=>zt(void 0,null,function*(){const mt=yield(0,Ft.ZL)(oe({},Nt));mt.status===0?(Be.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"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/${Dt}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/${Dt}`))}),Ht=(Nt,Dt)=>zt(void 0,null,function*(){const mt=yield(0,Ft.vV)(oe({},Nt));mt.status===0?(Be.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"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/${Dt}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/${Dt}`))}),ne=(Nt,Dt)=>zt(void 0,null,function*(){const mt=yield(0,Ft.aP)(oe({},Nt));mt.status===0?(Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/${Dt}`)):mt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/${Dt}`))}),ae=Nt=>zt(void 0,null,function*(){Jt(),(yield exportCourseWorkListAppendix(oe({},Nt))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${Nt.categoryId}/works_list.zip`,query:Nt}))),Ct()}),de=Nt=>zt(void 0,null,function*(){Jt(),yield(0,re.QH)("",ee.Z.API_SERVER+`/api/polls/${Nt.categoryId}/commit_result.xlsx`),Ct()}),be=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Nt.coursesId}/attendances/export_xlsx_data.xlsx`,query:Nt}))}),qt=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Nt.coursesId}/video_study_statics.xlsx`,query:Nt}))}),ze=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Nt.coursesId}/export_video_study.xlsx`,query:Nt}))}),Vt=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Nt.coursesId}/export_course_students_info.xlsx`,query:Nt}))}),Ge=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/school_manages/students.xlsx",query:Nt}))}),_e=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/item_banks/export.xlsx",query:Nt}))}),Ne=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:Nt}))}),We=Nt=>zt(void 0,null,function*(){const Dt=yield(0,Ft.Uy)(oe({},Nt));Dt.status===0?(Be.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/exercise_score,export_exercise_users`)):Dt.status===-3&&((0,ce.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ce.history.push(`/classrooms/${Nt.coursesId}/exportlist/exercise_score,export_exercise_users`))}),Re=Nt=>zt(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/export_records/${Nt.id}.xlsx`,query:Nt}))}),ve=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:Nt}))}),ie=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/courses/${Nt==null?void 0:Nt.coursesId}/${Nt.menuKey}_statistic.xlsx?${Nt.checkedList.map(Dt=>`course_group_id[]=${Dt}`).join("&")}`,query:Nt}))}),Se=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Nt==null?void 0:Nt.ec_year_id}/ec_training_objectives.xlsx`,query:Nt}))}),Bn=Nt=>zt(void 0,null,function*(){yield(0,re.FH)(Nt==null?void 0:Nt.name,(0,re.NY)({url:ee.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:Nt}))}),Ln=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Nt==null?void 0:Nt.ec_year_id}/ec_courses.xlsx`,query:Nt}))}),Ye=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/ec_years/${Nt==null?void 0:Nt.ec_year_id}/ec_graduation_requirements.xlsx`,query:Nt}))}),Mn=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:Nt}))}),Wn=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:Nt}))}),fi=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/examination_banks/${Nt.id}.json`,query:Nt}))}),Hn=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Nt.categoryId}.json`,query:Nt}))}),xi=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/polls/${Nt==null?void 0:Nt.id}/commit_result.json`,query:Nt}))}),nn=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+"/api/paths/get_task_pass.json",query:Nt}))}),Fi=(Nt,Dt)=>zt(void 0,null,function*(){yield(0,re.FH)(Dt||"",(0,re.NY)({url:ee.Z.API_SERVER+`/api/exercises/${Nt==null?void 0:Nt.exercise_id}/consult_exercise.json`,query:Nt}))}),ki=Nt=>zt(void 0,null,function*(){yield(0,re.FH)("",(0,re.NY)({url:ee.Z.API_SERVER+`/api/competitions/${Nt==null?void 0:Nt.identifier}/competition_commit_records/member_works.xlsx`,query:Nt}))})},83312:function(ui,wn,bt){"use strict";bt.d(wn,{U:function(){return Xt}});var Ft=bt(59301),ce=Object.defineProperty,re=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Yt=(Pt,oe,zt)=>oe in Pt?ce(Pt,oe,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Pt[oe]=zt,It=(Pt,oe)=>{for(var zt in oe||(oe={}))Be.call(oe,zt)&&Yt(Pt,zt,oe[zt]);if(re)for(var zt of re(oe))ee.call(oe,zt)&&Yt(Pt,zt,oe[zt]);return Pt},jt=(Pt,oe,zt)=>new Promise((Jt,Ct)=>{var et=rt=>{try{lt(zt.next(rt))}catch(ut){Ct(ut)}},tt=rt=>{try{lt(zt.throw(rt))}catch(ut){Ct(ut)}},lt=rt=>rt.done?Jt(rt.value):Promise.resolve(rt.value).then(et,tt);lt((zt=zt.apply(Pt,oe)).next())});function Xt(Pt,oe){const[zt,Jt]=(0,Ft.useState)(oe),[Ct,et]=(0,Ft.useState)(!1),[tt,lt]=(0,Ft.useState)();return[zt,Ct,(ut,ct=!1)=>jt(this,null,function*(){const wt=ct?oe:It(It({},zt),ut);et(!0),Jt(wt);const Mt=yield Pt(wt);return et(!1),lt(Mt),Mt}),tt,lt]}},24768:function(ui,wn,bt){"use strict";bt.d(wn,{AL:function(){return wt},Iy:function(){return oe},Qv:function(){return Ct},ez:function(){return ct},jb:function(){return zt}});var Ft=bt(32834),ce=bt.n(Ft),re=bt(11690),Be=bt.n(re);let ee=1;function Yt(ae,de){const be=ae.match(/^(\s+)(?:```)/);if(be===null)return de;const qt=be[1];return de.split(`
`).map(ze=>{const Vt=ze.match(/^\s+/);if(Vt===null)return ze;const[Ge]=Vt;return Ge.length>=qt.length?ze.slice(qt.length):ze}).join(`
`)}let It=[],jt=["<ul>"];const Xt=new(ce()).Renderer,Pt=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function oe(){It.length=0,jt=["<ul>"]}const zt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Jt(ae,de,be,qt){if(de>=ae.length||ae[de].level<=be)return de;var ze=ae[de];qt.push("<li><a href='#"+ee+ze.anchor+"'>"+ze.text+"</a>"),de++;var Vt=[];return de=Jt(ae,de,ze.level,Vt),Vt.length>0&&(qt.push("<ul>"),Vt.forEach(function(Ge){qt.push(Ge)}),qt.push("</ul>")),qt.push("</li>"),de=Jt(ae,de,be,qt),de}function Ct(){return Jt(It,0,0,jt),jt.push("</ul>"),jt.join("")}const et={heading(ae){const de=Pt.exec(ae);if(ee+=1,de)return{type:"heading",raw:de[0],depth:de[1].length,text:de[2]}},fences(ae){const de=this.rules.block.fences.exec(ae);if(de){const be=de[0];let qt=Yt(be,de[3]||"");const ze=de[2]?de[2].trim():de[2];if(["latex","katex","math"].indexOf(ze)>=0){const Vt=rt(),Ge=qt;qt=Vt,ut[Vt]={type:"block",expression:Ge}}return{type:"code",raw:be,lang:ze,text:qt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let lt=0;const rt=()=>`__special_katext_id_${lt++}__`;let ut={};function ct(){return ut}function wt(){lt=0,ut={}}function Mt(ae){return ae=ae.replace(tt,(de,be)=>{const qt=rt();return ut[qt]={type:"inline",expression:be},qt}),ae}const Ot=Xt.listitem;Xt.listitem=function(ae){return Ot(Mt(ae))};const Ht=Xt.paragraph;Xt.paragraph=function(ae){return Ht(Mt(ae))};const ne=Xt.tablecell;Xt.tablecell=function(ae,de){return ne(Mt(ae),de)},Xt.code=function(ae,de,be){const qt=(de||"").match(/\S*/)[0];return qt?["latex","katex","math"].indexOf(qt)>=0?`<p class='editormd-tex'>${ae}</p>`:`<pre class="prettyprint linenums"><code class="language-${de}">${be?ae:(0,re.escape)(ae,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(be?ae:(0,re.escape)(ae,!0))+"</code></pre>"},Xt.heading=function(ae,de,be){let qt=this.options.headerPrefix+be.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return It.push({anchor:qt,level:de,text:ae}),"<h"+de+' id="'+ee+qt+'">'+ae+"</h"+de+">"},ce().setOptions({silent:!0,gfm:!0,pedantic:!1}),ce().use({tokenizer:et,renderer:Xt}),wn.ZP=ce()},50371:function(ui,wn){"use strict";function bt(){const Ft=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ce=1;ce<arguments.length;ce++){const re=ce<0||arguments.length<=ce?void 0:arguments[ce];re&&Object.keys(re).forEach(Be=>{const ee=re[Be];ee!==void 0&&(Ft[Be]=ee)})}return Ft}wn.Z=bt},13845:function(ui,wn,bt){"use strict";bt.d(wn,{F:function(){return Ft},Z:function(){return ce}});function Ft(re){return re!=null&&re===re.window}function ce(re,Be){var ee,Yt;if(typeof window=="undefined")return 0;const It=Be?"scrollTop":"scrollLeft";let jt=0;return Ft(re)?jt=re[Be?"pageYOffset":"pageXOffset"]:re instanceof Document?jt=re.documentElement[It]:(re instanceof HTMLElement||re)&&(jt=re[It]),re&&!Ft(re)&&typeof jt!="number"&&(jt=(Yt=((ee=re.ownerDocument)!==null&&ee!==void 0?ee:re).documentElement)===null||Yt===void 0?void 0:Yt[It]),jt}},56762:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ce}});var Ft=bt(59301);function ce(){const[,re]=Ft.useReducer(Be=>Be+1,0);return re}},68031:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return Be}});var Ft=bt(16089);function ce(ee,Yt,It,jt){const Xt=It-Yt;return ee/=jt/2,ee<1?Xt/2*ee*ee*ee+Yt:Xt/2*((ee-=2)*ee*ee+2)+Yt}var re=bt(13845);function Be(ee){let Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:It=()=>window,callback:jt,duration:Xt=450}=Yt,Pt=It(),oe=(0,re.Z)(Pt,!0),zt=Date.now(),Jt=()=>{const et=Date.now()-zt,tt=ce(et>Xt?Xt:et,oe,ee,Xt);(0,re.F)(Pt)?Pt.scrollTo(window.pageXOffset,tt):Pt instanceof Document||Pt.constructor.name==="HTMLDocument"?Pt.documentElement.scrollTop=tt:Pt.scrollTop=tt,et<Xt?(0,Ft.Z)(Jt):typeof jt=="function"&&jt()};(0,Ft.Z)(Jt)}},66104:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return Ge}});var Ft=bt(92310),ce=bt.n(Ft),re=bt(11592),Be=bt(26112),ee=bt(59301),Yt=bt(92343),It=bt(36355),jt=bt(84105),Xt=bt(91857);const Pt=_e=>{let{children:Ne}=_e;const{getPrefixCls:We}=ee.useContext(It.E_),Re=We("breadcrumb");return ee.createElement("li",{className:`${Re}-separator`,"aria-hidden":"true"},Ne===""?Ne:Ne||"/")};Pt.__ANT_BREADCRUMB_SEPARATOR=!0;var oe=Pt,zt=function(_e,Ne){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Ne.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(_e);ve<Re.length;ve++)Ne.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ve])&&(We[Re[ve]]=_e[Re[ve]]);return We};function Jt(_e,Ne){if(_e.title===void 0||_e.title===null)return null;const We=Object.keys(Ne).join("|");return typeof _e.title=="object"?_e.title:String(_e.title).replace(new RegExp(`:(${We})`,"g"),(Re,ve)=>Ne[ve]||Re)}function Ct(_e,Ne,We,Re){if(We==null)return null;const{className:ve,onClick:ie}=Ne,Se=zt(Ne,["className","onClick"]),Bn=Object.assign(Object.assign({},(0,Be.Z)(Se,{data:!0,aria:!0})),{onClick:ie});return Re!==void 0?ee.createElement("a",Object.assign({},Bn,{className:ce()(`${_e}-link`,ve),href:Re}),We):ee.createElement("span",Object.assign({},Bn,{className:ce()(`${_e}-link`,ve)}),We)}function et(_e,Ne){return(Re,ve,ie,Se,Bn)=>{if(Ne)return Ne(Re,ve,ie,Se);const Ln=Jt(Re,ve);return Ct(_e,Re,Ln,Bn)}}var tt=function(_e,Ne){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Ne.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(_e);ve<Re.length;ve++)Ne.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ve])&&(We[Re[ve]]=_e[Re[ve]]);return We};const lt=_e=>{const{prefixCls:Ne,separator:We="/",children:Re,menu:ve,overlay:ie,dropdownProps:Se,href:Bn}=_e,Ye=(Mn=>{if(ve||ie){const Wn=Object.assign({},Se);if(ve){const fi=ve||{},{items:Hn}=fi,xi=tt(fi,["items"]);Wn.menu=Object.assign(Object.assign({},xi),{items:Hn==null?void 0:Hn.map((nn,Fi)=>{var{key:ki,title:Nt,label:Dt,path:mt}=nn,ft=tt(nn,["key","title","label","path"]);let pt=Dt!=null?Dt:Nt;return mt&&(pt=ee.createElement("a",{href:`${Bn}${mt}`},pt)),Object.assign(Object.assign({},ft),{key:ki!=null?ki:Fi,label:pt})})})}else ie&&(Wn.overlay=ie);return ee.createElement(Xt.Z,Object.assign({placement:"bottom"},Wn),ee.createElement("span",{className:`${Ne}-overlay-link`},Mn,ee.createElement(jt.Z,null)))}return Mn})(Re);return Ye!=null?ee.createElement(ee.Fragment,null,ee.createElement("li",null,Ye),We&&ee.createElement(oe,null,We)):null},rt=_e=>{const{prefixCls:Ne,children:We,href:Re}=_e,ve=tt(_e,["prefixCls","children","href"]),{getPrefixCls:ie}=ee.useContext(It.E_),Se=ie("breadcrumb",Ne);return ee.createElement(lt,Object.assign({},ve,{prefixCls:Se}),Ct(Se,ve,We,Re))};rt.__ANT_BREADCRUMB_ITEM=!0;var ut=rt,ct=bt(17313),wt=bt(83116),Mt=bt(37613);const Ot=_e=>{const{componentCls:Ne,iconCls:We}=_e;return{[Ne]:Object.assign(Object.assign({},(0,ct.Wf)(_e)),{color:_e.itemColor,fontSize:_e.fontSize,[We]:{fontSize:_e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:_e.linkColor,transition:`color ${_e.motionDurationMid}`,padding:`0 ${_e.paddingXXS}px`,borderRadius:_e.borderRadiusSM,height:_e.lineHeight*_e.fontSize,display:"inline-block",marginInline:-_e.marginXXS,"&:hover":{color:_e.linkHoverColor,backgroundColor:_e.colorBgTextHover}},(0,ct.Qy)(_e)),"li:last-child":{color:_e.lastItemColor},[`${Ne}-separator`]:{marginInline:_e.separatorMargin,color:_e.separatorColor},[`${Ne}-link`]:{[`
> ${We} + span,
> ${We} + a
`]:{marginInlineStart:_e.marginXXS}},[`${Ne}-overlay-link`]:{borderRadius:_e.borderRadiusSM,height:_e.lineHeight*_e.fontSize,display:"inline-block",padding:`0 ${_e.paddingXXS}px`,marginInline:-_e.marginXXS,[`> ${We}`]:{marginInlineStart:_e.marginXXS,fontSize:_e.fontSizeIcon},"&:hover":{color:_e.linkHoverColor,backgroundColor:_e.colorBgTextHover,a:{color:_e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${_e.componentCls}-rtl`]:{direction:"rtl"}})}};var Ht=(0,wt.Z)("Breadcrumb",_e=>{const Ne=(0,Mt.TS)(_e,{});return[Ot(Ne)]},_e=>({itemColor:_e.colorTextDescription,lastItemColor:_e.colorText,iconFontSize:_e.fontSize,linkColor:_e.colorTextDescription,linkHoverColor:_e.colorText,separatorColor:_e.colorTextDescription,separatorMargin:_e.marginXS})),ne=function(_e,Ne){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Ne.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(_e);ve<Re.length;ve++)Ne.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ve])&&(We[Re[ve]]=_e[Re[ve]]);return We};function ae(_e){const{breadcrumbName:Ne,children:We}=_e,Re=ne(_e,["breadcrumbName","children"]),ve=Object.assign({title:Ne},Re);return We&&(ve.menu={items:We.map(ie=>{var{breadcrumbName:Se}=ie,Bn=ne(ie,["breadcrumbName"]);return Object.assign(Object.assign({},Bn),{title:Se})})}),ve}function de(_e,Ne){return(0,ee.useMemo)(()=>_e||(Ne?Ne.map(ae):null),[_e,Ne])}var be=function(_e,Ne){var We={};for(var Re in _e)Object.prototype.hasOwnProperty.call(_e,Re)&&Ne.indexOf(Re)<0&&(We[Re]=_e[Re]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(_e);ve<Re.length;ve++)Ne.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(_e,Re[ve])&&(We[Re[ve]]=_e[Re[ve]]);return We};const qt=(_e,Ne)=>{if(Ne===void 0)return Ne;let We=(Ne||"").replace(/^\//,"");return Object.keys(_e).forEach(Re=>{We=We.replace(`:${Re}`,_e[Re])}),We},ze=_e=>{const{prefixCls:Ne,separator:We="/",style:Re,className:ve,rootClassName:ie,routes:Se,items:Bn,children:Ln,itemRender:Ye,params:Mn={}}=_e,Wn=be(_e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:fi,direction:Hn,breadcrumb:xi}=ee.useContext(It.E_);let nn;const Fi=fi("breadcrumb",Ne),[ki,Nt]=Ht(Fi),Dt=de(Bn,Se),mt=et(Fi,Ye);if(Dt&&Dt.length>0){const At=[],ue=Bn||Se;nn=Dt.map((we,le)=>{const{path:me,key:Ue,type:ke,menu:Ie,overlay:rn,onClick:Gn,className:dn,separator:An,dropdownProps:Dn}=we,qn=qt(Mn,me);qn!==void 0&&At.push(qn);const Rn=Ue!=null?Ue:le;if(ke==="separator")return ee.createElement(oe,{key:Rn},An);const Di={},cr=le===Dt.length-1;Ie?Di.menu=Ie:rn&&(Di.overlay=rn);let{href:Ji}=we;return At.length&&qn!==void 0&&(Ji=`#/${At.join("/")}`),ee.createElement(lt,Object.assign({key:Rn},Di,(0,Be.Z)(we,{data:!0,aria:!0}),{className:dn,dropdownProps:Dn,href:Ji,separator:cr?"":We,onClick:Gn,prefixCls:Fi}),mt(we,Mn,ue,At,Ji))})}else if(Ln){const At=(0,re.Z)(Ln).length;nn=(0,re.Z)(Ln).map((ue,we)=>{if(!ue)return ue;const le=we===At-1;return(0,Yt.Tm)(ue,{separator:le?"":We,key:we})})}const ft=ce()(Fi,xi==null?void 0:xi.className,{[`${Fi}-rtl`]:Hn==="rtl"},ve,ie,Nt),pt=Object.assign(Object.assign({},xi==null?void 0:xi.style),Re);return ki(ee.createElement("nav",Object.assign({className:ft,style:pt},Wn),ee.createElement("ol",null,nn)))};ze.Item=ut,ze.Separator=oe;var Vt=ze,Ge=Vt},24905:function(ui,wn,bt){"use strict";bt.d(wn,{default:function(){return Ht}});var Ft=bt(92310),ce=bt.n(Ft),re=bt(5630),Be=bt(59301),ee=bt(36355),Yt=bt(1684),It=bt(32441),Xt=Be.createContext(null),Pt=bt(98447),oe=bt(14088),zt=bt(4572),Jt=function(ne,ae){var de={};for(var be in ne)Object.prototype.hasOwnProperty.call(ne,be)&&ae.indexOf(be)<0&&(de[be]=ne[be]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,be=Object.getOwnPropertySymbols(ne);qt<be.length;qt++)ae.indexOf(be[qt])<0&&Object.prototype.propertyIsEnumerable.call(ne,be[qt])&&(de[be[qt]]=ne[be[qt]]);return de};const Ct=(ne,ae)=>{var de;const{prefixCls:be,className:qt,rootClassName:ze,children:Vt,indeterminate:Ge=!1,style:_e,onMouseEnter:Ne,onMouseLeave:We,skipGroup:Re=!1,disabled:ve}=ne,ie=Jt(ne,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Se,direction:Bn,checkbox:Ln}=Be.useContext(ee.E_),Ye=Be.useContext(Xt),{isFormItemInput:Mn}=Be.useContext(It.aM),Wn=Be.useContext(Yt.Z),fi=(de=(Ye==null?void 0:Ye.disabled)||ve)!==null&&de!==void 0?de:Wn,Hn=Be.useRef(ie.value);Be.useEffect(()=>{Ye==null||Ye.registerValue(ie.value)},[]),Be.useEffect(()=>{if(!Re)return ie.value!==Hn.current&&(Ye==null||Ye.cancelValue(Hn.current),Ye==null||Ye.registerValue(ie.value),Hn.current=ie.value),()=>Ye==null?void 0:Ye.cancelValue(ie.value)},[ie.value]);const xi=Se("checkbox",be),[nn,Fi]=(0,Pt.ZP)(xi),ki=Object.assign({},ie);Ye&&!Re&&(ki.onChange=function(){ie.onChange&&ie.onChange.apply(ie,arguments),Ye.toggleOption&&Ye.toggleOption({label:Vt,value:ie.value})},ki.name=Ye.name,ki.checked=Ye.value.includes(ie.value));const Nt=ce()(`${xi}-wrapper`,{[`${xi}-rtl`]:Bn==="rtl",[`${xi}-wrapper-checked`]:ki.checked,[`${xi}-wrapper-disabled`]:fi,[`${xi}-wrapper-in-form-item`]:Mn},Ln==null?void 0:Ln.className,qt,ze,Fi),Dt=ce()({[`${xi}-indeterminate`]:Ge},zt.A,Fi),mt=Ge?"mixed":void 0;return nn(Be.createElement(oe.Z,{component:"Checkbox",disabled:fi},Be.createElement("label",{className:Nt,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),_e),onMouseEnter:Ne,onMouseLeave:We},Be.createElement(re.Z,Object.assign({"aria-checked":mt},ki,{prefixCls:xi,className:Dt,disabled:fi,ref:ae})),Vt!==void 0&&Be.createElement("span",null,Vt))))};var tt=Be.forwardRef(Ct),lt=bt(80702),rt=bt(2738),ut=function(ne,ae){var de={};for(var be in ne)Object.prototype.hasOwnProperty.call(ne,be)&&ae.indexOf(be)<0&&(de[be]=ne[be]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,be=Object.getOwnPropertySymbols(ne);qt<be.length;qt++)ae.indexOf(be[qt])<0&&Object.prototype.propertyIsEnumerable.call(ne,be[qt])&&(de[be[qt]]=ne[be[qt]]);return de};const ct=(ne,ae)=>{const{defaultValue:de,children:be,options:qt=[],prefixCls:ze,className:Vt,rootClassName:Ge,style:_e,onChange:Ne}=ne,We=ut(ne,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Re,direction:ve}=Be.useContext(ee.E_),[ie,Se]=Be.useState(We.value||de||[]),[Bn,Ln]=Be.useState([]);Be.useEffect(()=>{"value"in We&&Se(We.value||[])},[We.value]);const Ye=Be.useMemo(()=>qt.map(ft=>typeof ft=="string"||typeof ft=="number"?{label:ft,value:ft}:ft),[qt]),Mn=ft=>{Ln(pt=>pt.filter(At=>At!==ft))},Wn=ft=>{Ln(pt=>[].concat((0,lt.Z)(pt),[ft]))},fi=ft=>{const pt=ie.indexOf(ft.value),At=(0,lt.Z)(ie);pt===-1?At.push(ft.value):At.splice(pt,1),"value"in We||Se(At),Ne==null||Ne(At.filter(ue=>Bn.includes(ue)).sort((ue,we)=>{const le=Ye.findIndex(Ue=>Ue.value===ue),me=Ye.findIndex(Ue=>Ue.value===we);return le-me}))},Hn=Re("checkbox",ze),xi=`${Hn}-group`,[nn,Fi]=(0,Pt.ZP)(Hn),ki=(0,rt.Z)(We,["value","disabled"]),Nt=qt.length?Ye.map(ft=>Be.createElement(tt,{prefixCls:Hn,key:ft.value.toString(),disabled:"disabled"in ft?ft.disabled:We.disabled,value:ft.value,checked:ie.includes(ft.value),onChange:ft.onChange,className:`${xi}-item`,style:ft.style,title:ft.title},ft.label)):be,Dt={toggleOption:fi,value:ie,disabled:We.disabled,name:We.name,registerValue:Wn,cancelValue:Mn},mt=ce()(xi,{[`${xi}-rtl`]:ve==="rtl"},Vt,Ge,Fi);return nn(Be.createElement("div",Object.assign({className:mt,style:_e},ki,{ref:ae}),Be.createElement(Xt.Provider,{value:Dt},Nt)))},wt=Be.forwardRef(ct);var Mt=Be.memo(wt);const Ot=tt;Ot.Group=Mt,Ot.__ANT_CHECKBOX=!0;var Ht=Ot},98447:function(ui,wn,bt){"use strict";bt.d(wn,{C2:function(){return ee}});var Ft=bt(17313),ce=bt(37613),re=bt(83116);const Be=Yt=>{const{checkboxCls:It}=Yt,jt=`${It}-wrapper`;return[{[`${It}-group`]:Object.assign(Object.assign({},(0,Ft.Wf)(Yt)),{display:"inline-flex",flexWrap:"wrap",columnGap:Yt.marginXS,[`> ${Yt.antCls}-row`]:{flex:1}}),[jt]:Object.assign(Object.assign({},(0,Ft.Wf)(Yt)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${jt}`]:{marginInlineStart:0},[`&${jt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[It]:Object.assign(Object.assign({},(0,Ft.Wf)(Yt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Yt.borderRadiusSM,alignSelf:"center",[`${It}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${It}-inner`]:Object.assign({},(0,Ft.oN)(Yt))},[`${It}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Yt.checkboxSize,height:Yt.checkboxSize,direction:"ltr",backgroundColor:Yt.colorBgContainer,border:`${Yt.lineWidth}px ${Yt.lineType} ${Yt.colorBorder}`,borderRadius:Yt.borderRadiusSM,borderCollapse:"separate",transition:`all ${Yt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Yt.checkboxSize/14*5,height:Yt.checkboxSize/14*8,border:`${Yt.lineWidthBold}px solid ${Yt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Yt.motionDurationFast} ${Yt.motionEaseInBack}, opacity ${Yt.motionDurationFast}`}},"& + span":{paddingInlineStart:Yt.paddingXS,paddingInlineEnd:Yt.paddingXS}})},{[`
${jt}:not(${jt}-disabled),
${It}:not(${It}-disabled)
`]:{[`&:hover ${It}-inner`]:{borderColor:Yt.colorPrimary}},[`${jt}:not(${jt}-disabled)`]:{[`&:hover ${It}-checked:not(${It}-disabled) ${It}-inner`]:{backgroundColor:Yt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${It}-checked:not(${It}-disabled):after`]:{borderColor:Yt.colorPrimaryHover}}},{[`${It}-checked`]:{[`${It}-inner`]:{backgroundColor:Yt.colorPrimary,borderColor:Yt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Yt.motionDurationMid} ${Yt.motionEaseOutBack} ${Yt.motionDurationFast}`}}},[`
${jt}-checked:not(${jt}-disabled),
${It}-checked:not(${It}-disabled)
`]:{[`&:hover ${It}-inner`]:{backgroundColor:Yt.colorPrimaryHover,borderColor:"transparent"}}},{[It]:{"&-indeterminate":{[`${It}-inner`]:{backgroundColor:Yt.colorBgContainer,borderColor:Yt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Yt.fontSizeLG/2,height:Yt.fontSizeLG/2,backgroundColor:Yt.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${jt}-disabled`]:{cursor:"not-allowed"},[`${It}-disabled`]:{[`&, ${It}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${It}-inner`]:{background:Yt.colorBgContainerDisabled,borderColor:Yt.colorBorder,"&:after":{borderColor:Yt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Yt.colorTextDisabled},[`&${It}-indeterminate ${It}-inner::after`]:{background:Yt.colorTextDisabled}}}]};function ee(Yt,It){const jt=(0,ce.TS)(It,{checkboxCls:`.${Yt}`,checkboxSize:It.controlInteractiveSize});return[Be(jt)]}wn.ZP=(0,re.Z)("Checkbox",(Yt,It)=>{let{prefixCls:jt}=It;return[ee(jt,Yt)]})},93891:function(ui,wn,bt){"use strict";var Ft=bt(59301),ce=bt(36355),re=bt(64165);const Be=ee=>{const{componentName:Yt}=ee,{getPrefixCls:It}=(0,Ft.useContext)(ce.E_),jt=It("empty");switch(Yt){case"Table":case"List":return Ft.createElement(re.Z,{image:re.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ft.createElement(re.Z,{image:re.Z.PRESENTED_IMAGE_SIMPLE,className:`${jt}-small`});default:return Ft.createElement(re.Z,null)}};wn.Z=Be},28103:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return zt}});var Ft=bt(92310),ce=bt.n(Ft),re=bt(59301),Be=bt(36355),ee=bt(17313),Yt=bt(83116),It=bt(37613);const jt=Jt=>{const{componentCls:Ct,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:lt,textPaddingInline:rt,orientationMargin:ut,verticalMarginInline:ct}=Jt;return{[Ct]:Object.assign(Object.assign({},(0,ee.Wf)(Jt)),{borderBlockStart:`${lt}px solid ${tt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ct,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${Ct}-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${Ct}-with-text-left`]:{"&::before":{width:`${ut*100}%`},"&::after":{width:`${100-ut*100}%`}},[`&-horizontal${Ct}-with-text-right`]:{"&::before":{width:`${100-ut*100}%`},"&::after":{width:`${ut*100}%`}},[`${Ct}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:rt},"&-dashed":{background:"none",borderColor:tt,borderStyle:"dashed",borderWidth:`${lt}px 0 0`},[`&-horizontal${Ct}-with-text${Ct}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ct}-dashed`]:{borderInlineStartWidth:lt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ct}-with-text`]:{color:Jt.colorText,fontWeight:"normal",fontSize:Jt.fontSize},[`&-horizontal${Ct}-with-text-left${Ct}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ct}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${Ct}-with-text-right${Ct}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ct}-inner-text`]:{paddingInlineEnd:et}}})}};var Xt=(0,Yt.Z)("Divider",Jt=>{const Ct=(0,It.TS)(Jt,{dividerHorizontalWithTextGutterMargin:Jt.margin,dividerHorizontalGutterMargin:Jt.marginLG,sizePaddingEdgeHorizontal:0});return[jt(Ct)]},Jt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Jt.marginXS})),Pt=function(Jt,Ct){var et={};for(var tt in Jt)Object.prototype.hasOwnProperty.call(Jt,tt)&&Ct.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++)Ct.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Jt,tt[lt])&&(et[tt[lt]]=Jt[tt[lt]]);return et},zt=Jt=>{const{getPrefixCls:Ct,direction:et,divider:tt}=re.useContext(Be.E_),{prefixCls:lt,type:rt="horizontal",orientation:ut="center",orientationMargin:ct,className:wt,rootClassName:Mt,children:Ot,dashed:Ht,plain:ne,style:ae}=Jt,de=Pt(Jt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),be=Ct("divider",lt),[qt,ze]=Xt(be),Vt=ut.length>0?`-${ut}`:ut,Ge=!!Ot,_e=ut==="left"&&ct!=null,Ne=ut==="right"&&ct!=null,We=ce()(be,tt==null?void 0:tt.className,ze,`${be}-${rt}`,{[`${be}-with-text`]:Ge,[`${be}-with-text${Vt}`]:Ge,[`${be}-dashed`]:!!Ht,[`${be}-plain`]:!!ne,[`${be}-rtl`]:et==="rtl",[`${be}-no-default-orientation-margin-left`]:_e,[`${be}-no-default-orientation-margin-right`]:Ne},wt,Mt),Re=re.useMemo(()=>typeof ct=="number"?ct:/^\d+$/.test(ct)?Number(ct):ct,[ct]),ve=Object.assign(Object.assign({},_e&&{marginLeft:Re}),Ne&&{marginRight:Re});return qt(re.createElement("div",Object.assign({className:We,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),ae)},de,{role:"separator"}),Ot&&rt!=="vertical"&&re.createElement("span",{className:`${be}-inner-text`,style:ve},Ot)))}},91857:function(ui,wn,bt){"use strict";var Ft=bt(59301),ce=bt(38819),re=bt(92310),Be=bt.n(re),ee=bt(31561),Yt=bt(70425),It=bt(18929),jt=bt(2738),Xt=bt(79676),Pt=bt(53487),oe=bt(92343),zt=bt(36355),Jt=bt(20834),Ct=bt(40875),et=bt(88088),tt=bt(47211);const lt=null,rt=Mt=>{const{menu:Ot,arrow:Ht,prefixCls:ne,children:ae,trigger:de,disabled:be,dropdownRender:qt,getPopupContainer:ze,overlayClassName:Vt,rootClassName:Ge,open:_e,onOpenChange:Ne,visible:We,onVisibleChange:Re,mouseEnterDelay:ve=.15,mouseLeaveDelay:ie=.1,autoAdjustOverflow:Se=!0,placement:Bn="",overlay:Ln,transitionName:Ye}=Mt,{getPopupContainer:Mn,getPrefixCls:Wn,direction:fi}=Ft.useContext(zt.E_),Hn=Ft.useMemo(()=>{const Ie=Wn();return Ye!==void 0?Ye:Bn.includes("top")?`${Ie}-slide-down`:`${Ie}-slide-up`},[Wn,Bn,Ye]),xi=Ft.useMemo(()=>Bn?Bn.includes("Center")?Bn.slice(0,Bn.indexOf("Center")):Bn:fi==="rtl"?"bottomRight":"bottomLeft",[Bn,fi]),nn=Wn("dropdown",ne),[Fi,ki]=(0,tt.Z)(nn),[,Nt]=(0,et.Z)(),Dt=Ft.Children.only(ae),mt=(0,oe.Tm)(Dt,{className:Be()(`${nn}-trigger`,{[`${nn}-rtl`]:fi==="rtl"},Dt.props.className),disabled:be}),ft=be?[]:de;let pt;ft&&ft.includes("contextMenu")&&(pt=!0);const[At,ue]=(0,It.Z)(!1,{value:_e!=null?_e:We}),we=(0,Yt.useEvent)(Ie=>{Ne==null||Ne(Ie),Re==null||Re(Ie),ue(Ie)}),le=Be()(Vt,Ge,ki,{[`${nn}-rtl`]:fi==="rtl"}),me=(0,Xt.Z)({arrowPointAtCenter:typeof Ht=="object"&&Ht.pointAtCenter,autoAdjustOverflow:Se,offset:Nt.marginXXS,arrowWidth:Ht?Nt.sizePopupArrow:0,borderRadius:Nt.borderRadius}),Ue=Ft.useCallback(()=>{ue(!1)},[]),ke=()=>{let Ie;return Ot!=null&&Ot.items?Ie=Ft.createElement(Jt.default,Object.assign({},Ot)):typeof Ln=="function"?Ie=Ln():Ie=Ln,qt&&(Ie=qt(Ie)),Ie=Ft.Children.only(typeof Ie=="string"?Ft.createElement("span",null,Ie):Ie),Ft.createElement(Ct.J,{prefixCls:`${nn}-menu`,expandIcon:Ft.createElement("span",{className:`${nn}-menu-submenu-arrow`},Ft.createElement(ce.Z,{className:`${nn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ue,validator:rn=>{let{mode:Gn}=rn}},Ie)};return Fi(Ft.createElement(ee.Z,Object.assign({alignPoint:pt},(0,jt.Z)(Mt,["rootClassName"]),{mouseEnterDelay:ve,mouseLeaveDelay:ie,visible:At,builtinPlacements:me,arrow:!!Ht,overlayClassName:le,prefixCls:nn,getPopupContainer:ze||Mn,transitionName:Hn,trigger:ft,overlay:ke,placement:xi,onVisibleChange:we}),mt))};function ut(Mt){return Object.assign(Object.assign({},Mt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ct=(0,Pt.Z)(rt,"dropdown",Mt=>Mt,ut),wt=Mt=>Ft.createElement(ct,Object.assign({},Mt),Ft.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=wt,wn.Z=rt},38854:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return et}});var Ft=bt(91857),ce=bt(92310),re=bt.n(ce),Be=bt(59301),ee=bt(18785),Yt=bt(3113),It=bt(36355),jt=bt(81327),Xt=bt(33234),Pt=bt(47211),oe=function(tt,lt){var rt={};for(var ut in tt)Object.prototype.hasOwnProperty.call(tt,ut)&&lt.indexOf(ut)<0&&(rt[ut]=tt[ut]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ut=Object.getOwnPropertySymbols(tt);ct<ut.length;ct++)lt.indexOf(ut[ct])<0&&Object.prototype.propertyIsEnumerable.call(tt,ut[ct])&&(rt[ut[ct]]=tt[ut[ct]]);return rt};const zt=tt=>{const{getPopupContainer:lt,getPrefixCls:rt,direction:ut}=Be.useContext(It.E_),{prefixCls:ct,type:wt="default",danger:Mt,disabled:Ot,loading:Ht,onClick:ne,htmlType:ae,children:de,className:be,menu:qt,arrow:ze,autoFocus:Vt,overlay:Ge,trigger:_e,align:Ne,open:We,onOpenChange:Re,placement:ve,getPopupContainer:ie,href:Se,icon:Bn=Be.createElement(ee.Z,null),title:Ln,buttonsRender:Ye=ke=>ke,mouseEnterDelay:Mn,mouseLeaveDelay:Wn,overlayClassName:fi,overlayStyle:Hn,destroyPopupOnHide:xi,dropdownRender:nn}=tt,Fi=oe(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"]),ki=rt("dropdown",ct),Nt=`${ki}-button`,[Dt,mt]=(0,Pt.Z)(ki),ft={menu:qt,arrow:ze,autoFocus:Vt,align:Ne,disabled:Ot,trigger:Ot?[]:_e,onOpenChange:Re,getPopupContainer:ie||lt,mouseEnterDelay:Mn,mouseLeaveDelay:Wn,overlayClassName:fi,overlayStyle:Hn,destroyPopupOnHide:xi,dropdownRender:nn},{compactSize:pt,compactItemClassnames:At}=(0,Xt.ri)(ki,ut),ue=re()(Nt,At,be,mt);"overlay"in tt&&(ft.overlay=Ge),"open"in tt&&(ft.open=We),"placement"in tt?ft.placement=ve:ft.placement=ut==="rtl"?"bottomLeft":"bottomRight";const we=Be.createElement(Yt.ZP,{type:wt,danger:Mt,disabled:Ot,loading:Ht,onClick:ne,htmlType:ae,href:Se,title:Ln},de),le=Be.createElement(Yt.ZP,{type:wt,danger:Mt,icon:Bn}),[me,Ue]=Ye([we,le]);return Dt(Be.createElement(jt.Z.Compact,Object.assign({className:ue,size:pt,block:!0},Fi),me,Be.createElement(Ft.Z,Object.assign({},ft),Ue)))};zt.__ANT_BUTTON=!0;var Jt=zt;const Ct=Ft.Z;Ct.Button=Jt;var et=Ct},47211:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return oe}});var Ft=bt(17313),ce=bt(13826),re=bt(92899),Be=bt(29878),ee=bt(19447),Yt=bt(83116),It=bt(37613),Xt=zt=>{const{componentCls:Jt,menuCls:Ct,colorError:et,colorTextLightSolid:tt}=zt,lt=`${Ct}-item`;return{[`${Jt}, ${Jt}-menu-submenu`]:{[`${Ct} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const Pt=zt=>{const{componentCls:Jt,menuCls:Ct,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:lt,antCls:rt,iconCls:ut,motionDurationMid:ct,dropdownPaddingVertical:wt,fontSize:Mt,dropdownEdgeChildPadding:Ot,colorTextDisabled:Ht,fontSizeIcon:ne,controlPaddingHorizontal:ae,colorBgElevated:de}=zt;return[{[Jt]:Object.assign(Object.assign({},(0,Ft.Wf)(zt)),{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`]:{[`& > ${ut}-down, & > ${rt}-btn-icon > ${ut}-down`]:{fontSize:ne}},[`${Jt}-wrap`]:{position:"relative",[`${rt}-btn > ${ut}-down`]:{fontSize:ne},[`${ut}-down::before`]:{transition:`transform ${ct}`}},[`${Jt}-wrap-open`]:{[`${ut}-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:ce.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:ce.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:ce.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:ce.ly}})},(0,ee.ZP)(zt,{colorBg:de,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Jt} ${Ct}`]:{position:"relative",margin:0},[`${Ct}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Jt}, ${Jt}-menu-submenu`]:{[Ct]:Object.assign(Object.assign({padding:Ot,listStyleType:"none",backgroundColor:de,backgroundClip:"padding-box",borderRadius:zt.borderRadiusLG,outline:"none",boxShadow:zt.boxShadowSecondary},(0,Ft.Qy)(zt)),{[`${Ct}-item-group-title`]:{padding:`${wt}px ${ae}px`,color:zt.colorTextDescription,transition:`all ${ct}`},[`${Ct}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ct}-item-icon`]:{minWidth:Mt,marginInlineEnd:zt.marginXS,fontSize:zt.fontSizeSM},[`${Ct}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ct}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ct}-item, ${Ct}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${wt}px ${ae}px`,color:zt.colorText,fontWeight:"normal",fontSize:Mt,lineHeight:zt.lineHeight,cursor:"pointer",transition:`all ${ct}`,borderRadius:zt.borderRadiusSM,"&:hover, &-active":{backgroundColor:zt.controlItemBgHover}},(0,Ft.Qy)(zt)),{"&-selected":{color:zt.colorPrimary,backgroundColor:zt.controlItemBgActive,"&:hover, &-active":{backgroundColor:zt.controlItemBgActiveHover}},"&-disabled":{color:Ht,cursor:"not-allowed","&:hover":{color:Ht,backgroundColor:de,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${zt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:zt.colorSplit},[`${Jt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:zt.paddingXS,[`${Jt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:zt.colorTextDescription,fontSize:ne,fontStyle:"normal"}}}),[`${Ct}-item-group-list`]:{margin:`0 ${zt.marginXS}px`,padding:0,listStyle:"none"},[`${Ct}-submenu-title`]:{paddingInlineEnd:ae+zt.fontSizeSM},[`${Ct}-submenu-vertical`]:{position:"relative"},[`${Ct}-submenu${Ct}-submenu-disabled ${Jt}-menu-submenu-title`]:{[`&, ${Jt}-menu-submenu-arrow-icon`]:{color:Ht,backgroundColor:de,cursor:"not-allowed"}},[`${Ct}-submenu-selected ${Jt}-menu-submenu-title`]:{color:zt.colorPrimary}})}},[(0,ce.oN)(zt,"slide-up"),(0,ce.oN)(zt,"slide-down"),(0,re.Fm)(zt,"move-up"),(0,re.Fm)(zt,"move-down"),(0,Be._y)(zt,"zoom-big")]]};var oe=(0,Yt.Z)("Dropdown",(zt,Jt)=>{let{rootPrefixCls:Ct}=Jt;const{marginXXS:et,sizePopupArrow:tt,controlHeight:lt,fontSize:rt,lineHeight:ut,paddingXXS:ct,componentCls:wt,borderRadiusLG:Mt}=zt,Ot=(lt-rt*ut)/2,{dropdownArrowOffset:Ht}=(0,ee.fS)({contentRadius:Mt}),ne=(0,It.TS)(zt,{menuCls:`${wt}-menu`,rootPrefixCls:Ct,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:Ht,dropdownPaddingVertical:Ot,dropdownEdgeChildPadding:ct});return[Pt(ne),Xt(ne)]},zt=>({zIndexPopup:zt.zIndexPopupBase+50}))},64165:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ct}});var Ft=bt(92310),ce=bt.n(Ft),re=bt(59301),Be=bt(36355),ee=bt(9763),Yt=bt(64993),It=bt(88088),Xt=()=>{const[,wt]=(0,It.Z)(),Ot=new Yt.C(wt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return re.createElement("svg",{style:Ot,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},re.createElement("g",{fill:"none",fillRule:"evenodd"},re.createElement("g",{transform:"translate(24 31.67)"},re.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),re.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"}),re.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)"}),re.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"}),re.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"})),re.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"}),re.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},re.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),re.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},oe=()=>{const[,wt]=(0,It.Z)(),{colorFill:Mt,colorFillTertiary:Ot,colorFillQuaternary:Ht,colorBgContainer:ne}=wt,{borderColor:ae,shadowColor:de,contentColor:be}=(0,re.useMemo)(()=>({borderColor:new Yt.C(Mt).onBackground(ne).toHexShortString(),shadowColor:new Yt.C(Ot).onBackground(ne).toHexShortString(),contentColor:new Yt.C(Ht).onBackground(ne).toHexShortString()}),[Mt,Ot,Ht,ne]);return re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},re.createElement("ellipse",{fill:de,cx:"32",cy:"33",rx:"32",ry:"7"}),re.createElement("g",{fillRule:"nonzero",stroke:ae},re.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"}),re.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:be}))))},zt=bt(83116),Jt=bt(37613);const Ct=wt=>{const{componentCls:Mt,margin:Ot,marginXS:Ht,marginXL:ne,fontSize:ae,lineHeight:de}=wt;return{[Mt]:{marginInline:Ht,fontSize:ae,lineHeight:de,textAlign:"center",[`${Mt}-image`]:{height:wt.emptyImgHeight,marginBottom:Ht,opacity:wt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Mt}-description`]:{color:wt.colorText},[`${Mt}-footer`]:{marginTop:Ot},"&-normal":{marginBlock:ne,color:wt.colorTextDisabled,[`${Mt}-description`]:{color:wt.colorTextDisabled},[`${Mt}-image`]:{height:wt.emptyImgHeightMD}},"&-small":{marginBlock:Ht,color:wt.colorTextDisabled,[`${Mt}-image`]:{height:wt.emptyImgHeightSM}}}}};var et=(0,zt.Z)("Empty",wt=>{const{componentCls:Mt,controlHeightLG:Ot}=wt,Ht=(0,Jt.TS)(wt,{emptyImgCls:`${Mt}-img`,emptyImgHeight:Ot*2.5,emptyImgHeightMD:Ot,emptyImgHeightSM:Ot*.875});return[Ct(Ht)]}),tt=function(wt,Mt){var Ot={};for(var Ht in wt)Object.prototype.hasOwnProperty.call(wt,Ht)&&Mt.indexOf(Ht)<0&&(Ot[Ht]=wt[Ht]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,Ht=Object.getOwnPropertySymbols(wt);ne<Ht.length;ne++)Mt.indexOf(Ht[ne])<0&&Object.prototype.propertyIsEnumerable.call(wt,Ht[ne])&&(Ot[Ht[ne]]=wt[Ht[ne]]);return Ot};const lt=re.createElement(Xt,null),rt=re.createElement(oe,null),ut=wt=>{var{className:Mt,rootClassName:Ot,prefixCls:Ht,image:ne=lt,description:ae,children:de,imageStyle:be,style:qt}=wt,ze=tt(wt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Vt,direction:Ge,empty:_e}=re.useContext(Be.E_),Ne=Vt("empty",Ht),[We,Re]=et(Ne),[ve]=(0,ee.Z)("Empty"),ie=typeof ae!="undefined"?ae:ve==null?void 0:ve.description,Se=typeof ie=="string"?ie:"empty";let Bn=null;return typeof ne=="string"?Bn=re.createElement("img",{alt:Se,src:ne}):Bn=ne,We(re.createElement("div",Object.assign({className:ce()(Re,Ne,_e==null?void 0:_e.className,{[`${Ne}-normal`]:ne===rt,[`${Ne}-rtl`]:Ge==="rtl"},Mt,Ot),style:Object.assign(Object.assign({},_e==null?void 0:_e.style),qt)},ze),re.createElement("div",{className:`${Ne}-image`,style:be},Bn),ie&&re.createElement("div",{className:`${Ne}-description`},ie),de&&re.createElement("div",{className:`${Ne}-footer`},de)))};ut.PRESENTED_IMAGE_DEFAULT=lt,ut.PRESENTED_IMAGE_SIMPLE=rt;var ct=ut},78241:function(ui,wn,bt){"use strict";bt.d(wn,{default:function(){return In}});var Ft=bt(80702),ce=bt(92310),re=bt.n(ce),Be=bt(77900),ee=bt(59301),Yt=bt(62892),It=bt(32441);function jt(Oe){const[hi,Je]=ee.useState(Oe);return ee.useEffect(()=>{const fn=setTimeout(()=>{Je(Oe)},Oe.length?0:10);return()=>{clearTimeout(fn)}},[Oe]),hi}var Xt=bt(17313),Pt=bt(29878),oe=bt(8378),zt=bt(37613),Jt=bt(83116),et=Oe=>{const{componentCls:hi}=Oe,Je=`${hi}-show-help`,fn=`${hi}-show-help-item`;return{[Je]:{transition:`opacity ${Oe.motionDurationSlow} ${Oe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[fn]:{overflow:"hidden",transition:`height ${Oe.motionDurationSlow} ${Oe.motionEaseInOut},
opacity ${Oe.motionDurationSlow} ${Oe.motionEaseInOut},
transform ${Oe.motionDurationSlow} ${Oe.motionEaseInOut} !important`,[`&${fn}-appear, &${fn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${fn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=Oe=>({legend:{display:"block",width:"100%",marginBottom:Oe.marginLG,padding:0,color:Oe.colorTextDescription,fontSize:Oe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Oe.lineWidth}px ${Oe.lineType} ${Oe.colorBorder}`},label:{fontSize:Oe.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 ${Oe.controlOutlineWidth}px ${Oe.controlOutline}`},output:{display:"block",paddingTop:15,color:Oe.colorText,fontSize:Oe.fontSize,lineHeight:Oe.lineHeight}}),lt=(Oe,hi)=>{const{formItemCls:Je}=Oe;return{[Je]:{[`${Je}-label > label`]:{height:hi},[`${Je}-control-input`]:{minHeight:hi}}}},rt=Oe=>{const{componentCls:hi}=Oe;return{[Oe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(Oe)),tt(Oe)),{[`${hi}-text`]:{display:"inline-block",paddingInlineEnd:Oe.paddingSM},"&-small":Object.assign({},lt(Oe,Oe.controlHeightSM)),"&-large":Object.assign({},lt(Oe,Oe.controlHeightLG))})}},ut=Oe=>{const{formItemCls:hi,iconCls:Je,componentCls:fn,rootPrefixCls:Ke,labelRequiredMarkColor:ni,labelColor:Ci,labelFontSize:_i,labelHeight:qi,labelColonMarginInlineStart:on,labelColonMarginInlineEnd:di,itemMarginBottom:Vi}=Oe;return{[hi]:Object.assign(Object.assign({},(0,Xt.Wf)(Oe)),{marginBottom:Vi,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${Ke}-row`]:{display:"none"},"&-has-warning":{[`${hi}-split`]:{color:Oe.colorError}},"&-has-error":{[`${hi}-split`]:{color:Oe.colorWarning}},[`${hi}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Oe.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:qi,color:Ci,fontSize:_i,[`> ${Je}`]:{fontSize:Oe.fontSize,verticalAlign:"top"},[`&${hi}-required:not(${hi}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Oe.marginXXS,color:ni,fontSize:Oe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${fn}-hide-required-mark &`]:{display:"none"}},[`${hi}-optional`]:{display:"inline-block",marginInlineStart:Oe.marginXXS,color:Oe.colorTextDescription,[`${fn}-hide-required-mark &`]:{display:"none"}},[`${hi}-tooltip`]:{color:Oe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Oe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:on,marginInlineEnd:di},[`&${hi}-no-colon::after`]:{content:'"\\a0"'}}},[`${hi}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ke}-col-'"]):not([class*="' ${Ke}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Oe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[hi]:{"&-explain, &-extra":{clear:"both",color:Oe.colorTextDescription,fontSize:Oe.fontSize,lineHeight:Oe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Oe.controlHeightSM,transition:`color ${Oe.motionDurationMid} ${Oe.motionEaseOut}`},"&-explain":{"&-error":{color:Oe.colorError},"&-warning":{color:Oe.colorWarning}}},[`&-with-help ${hi}-explain`]:{height:"auto",opacity:1},[`${hi}-feedback-icon`]:{fontSize:Oe.fontSize,textAlign:"center",visibility:"visible",animationName:Pt.kr,animationDuration:Oe.motionDurationMid,animationTimingFunction:Oe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Oe.colorSuccess},"&-error":{color:Oe.colorError},"&-warning":{color:Oe.colorWarning},"&-validating":{color:Oe.colorPrimary}}})}},ct=Oe=>{const{componentCls:hi,formItemCls:Je}=Oe;return{[`${hi}-horizontal`]:{[`${Je}-label`]:{flexGrow:0},[`${Je}-control`]:{flex:"1 1 0",minWidth:0},[`${Je}-label[class$='-24'], ${Je}-label[class*='-24 ']`]:{[`& + ${Je}-control`]:{minWidth:"unset"}}}}},wt=Oe=>{const{componentCls:hi,formItemCls:Je}=Oe;return{[`${hi}-inline`]:{display:"flex",flexWrap:"wrap",[Je]:{flex:"none",marginInlineEnd:Oe.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Je}-label,
> ${Je}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Je}-label`]:{flex:"none"},[`${hi}-text`]:{display:"inline-block"},[`${Je}-has-feedback`]:{display:"inline-block"}}}}},Mt=Oe=>({padding:Oe.verticalLabelPadding,margin:Oe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ot=Oe=>{const{componentCls:hi,formItemCls:Je,rootPrefixCls:fn}=Oe;return{[`${Je} ${Je}-label`]:Mt(Oe),[hi]:{[Je]:{flexWrap:"wrap",[`${Je}-label, ${Je}-control`]:{[`&:not([class*=" ${fn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ht=Oe=>{const{componentCls:hi,formItemCls:Je,rootPrefixCls:fn}=Oe;return{[`${hi}-vertical`]:{[Je]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${hi}-item-control`]:{width:"100%"}}},[`${hi}-vertical ${Je}-label,
.${fn}-col-24${Je}-label,
.${fn}-col-xl-24${Je}-label`]:Mt(Oe),[`@media (max-width: ${Oe.screenXSMax}px)`]:[Ot(Oe),{[hi]:{[`.${fn}-col-xs-24${Je}-label`]:Mt(Oe)}}],[`@media (max-width: ${Oe.screenSMMax}px)`]:{[hi]:{[`.${fn}-col-sm-24${Je}-label`]:Mt(Oe)}},[`@media (max-width: ${Oe.screenMDMax}px)`]:{[hi]:{[`.${fn}-col-md-24${Je}-label`]:Mt(Oe)}},[`@media (max-width: ${Oe.screenLGMax}px)`]:{[hi]:{[`.${fn}-col-lg-24${Je}-label`]:Mt(Oe)}}}},ne=(Oe,hi)=>(0,zt.TS)(Oe,{formItemCls:`${Oe.componentCls}-item`,rootPrefixCls:hi});var ae=(0,Jt.Z)("Form",(Oe,hi)=>{let{rootPrefixCls:Je}=hi;const fn=ne(Oe,Je);return[rt(fn),ut(fn),et(fn),ct(fn),wt(fn),Ht(fn),(0,oe.Z)(fn),Pt.kr]},Oe=>({labelRequiredMarkColor:Oe.colorError,labelColor:Oe.colorTextHeading,labelFontSize:Oe.fontSize,labelHeight:Oe.controlHeight,labelColonMarginInlineStart:Oe.marginXXS/2,labelColonMarginInlineEnd:Oe.marginXS,itemMarginBottom:Oe.marginLG,verticalLabelPadding:`0 0 ${Oe.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const de=[];function be(Oe,hi,Je){let fn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Oe=="string"?Oe:`${hi}-${fn}`,error:Oe,errorStatus:Je}}var ze=Oe=>{let{help:hi,helpStatus:Je,errors:fn=de,warnings:Ke=de,className:ni,fieldId:Ci,onVisibleChanged:_i}=Oe;const{prefixCls:qi}=ee.useContext(It.Rk),on=`${qi}-item-explain`,[,di]=ae(qi),Vi=(0,ee.useMemo)(()=>(0,Yt.Z)(qi),[qi]),kr=jt(fn),ii=jt(Ke),wi=ee.useMemo(()=>hi!=null?[be(hi,"help",Je)]:[].concat((0,Ft.Z)(kr.map((pi,yi)=>be(pi,"error","error",yi))),(0,Ft.Z)(ii.map((pi,yi)=>be(pi,"warning","warning",yi)))),[hi,Je,kr,ii]),dr={};return Ci&&(dr.id=`${Ci}_help`),ee.createElement(Be.default,{motionDeadline:Vi.motionDeadline,motionName:`${qi}-show-help`,visible:!!wi.length,onVisibleChanged:_i},pi=>{const{className:yi,style:vi}=pi;return ee.createElement("div",Object.assign({},dr,{className:re()(on,yi,ni,di),style:vi,role:"alert"}),ee.createElement(Be.CSSMotionList,Object.assign({keys:wi},(0,Yt.Z)(qi),{motionName:`${qi}-show-help-item`,component:!1}),er=>{const{key:or,error:Rr,errorStatus:Zr,className:Xr,style:ei}=er;return ee.createElement("div",{key:or,className:re()(Xr,{[`${on}-${Zr}`]:Zr}),style:ei},Rr)}))})},Vt=bt(95013),Ge=bt(36355),_e=bt(1684),Ne=bt(52946),We=bt(19716),Re=bt(16722);const ve=["parentNode"],ie="form_item";function Se(Oe){return Oe===void 0||Oe===!1?[]:Array.isArray(Oe)?Oe:[Oe]}function Bn(Oe,hi){if(!Oe.length)return;const Je=Oe.join("_");return hi?`${hi}_${Je}`:ve.includes(Je)?`${ie}_${Je}`:Je}function Ln(Oe,hi,Je,fn,Ke,ni){let Ci=fn;return ni!==void 0?Ci=ni:Je.validating?Ci="validating":Oe.length?Ci="error":hi.length?Ci="warning":(Je.touched||Ke&&Je.validated)&&(Ci="success"),Ci}function Ye(Oe){return Se(Oe).join("_")}function Mn(Oe){const[hi]=(0,Vt.useForm)(),Je=ee.useRef({}),fn=ee.useMemo(()=>Oe!=null?Oe:Object.assign(Object.assign({},hi),{__INTERNAL__:{itemRef:Ke=>ni=>{const Ci=Ye(Ke);ni?Je.current[Ci]=ni:delete Je.current[Ci]}},scrollToField:function(Ke){let ni=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Ci=Se(Ke),_i=Bn(Ci,fn.__INTERNAL__.name),qi=_i?document.getElementById(_i):null;qi&&(0,Re.Z)(qi,Object.assign({scrollMode:"if-needed",block:"nearest"},ni))},getFieldInstance:Ke=>{const ni=Ye(Ke);return Je.current[ni]}}),[Oe,hi]);return[fn]}var Wn=bt(28726),fi=function(Oe,hi){var Je={};for(var fn in Oe)Object.prototype.hasOwnProperty.call(Oe,fn)&&hi.indexOf(fn)<0&&(Je[fn]=Oe[fn]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,fn=Object.getOwnPropertySymbols(Oe);Ke<fn.length;Ke++)hi.indexOf(fn[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Oe,fn[Ke])&&(Je[fn[Ke]]=Oe[fn[Ke]]);return Je};const Hn=(Oe,hi)=>{const Je=ee.useContext(_e.Z),{getPrefixCls:fn,direction:Ke,form:ni}=ee.useContext(Ge.E_),{prefixCls:Ci,className:_i,rootClassName:qi,size:on,disabled:di=Je,form:Vi,colon:kr,labelAlign:ii,labelWrap:wi,labelCol:dr,wrapperCol:pi,hideRequiredMark:yi,layout:vi="horizontal",scrollToFirstError:er,requiredMark:or,onFinishFailed:Rr,name:Zr,style:Xr,feedbackIcons:ei}=Oe,_o=fi(Oe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Zo=(0,We.Z)(on),cs=ee.useContext(Wn.Z),ri=(0,ee.useMemo)(()=>or!==void 0?or:ni&&ni.requiredMark!==void 0?ni.requiredMark:!yi,[yi,or,ni]),rr=kr!=null?kr:ni==null?void 0:ni.colon,Er=fn("form",Ci),[no,Fr]=ae(Er),Gr=re()(Er,`${Er}-${vi}`,{[`${Er}-hide-required-mark`]:ri===!1,[`${Er}-rtl`]:Ke==="rtl",[`${Er}-${Zo}`]:Zo},Fr,ni==null?void 0:ni.className,_i,qi),[wo]=Mn(Vi),{__INTERNAL__:fo}=wo;fo.name=Zr;const xo=(0,ee.useMemo)(()=>({name:Zr,labelAlign:ii,labelCol:dr,labelWrap:wi,wrapperCol:pi,vertical:vi==="vertical",colon:rr,requiredMark:ri,itemRef:fo.itemRef,form:wo,feedbackIcons:ei}),[Zr,ii,dr,pi,vi,rr,ri,wo,ei]);ee.useImperativeHandle(hi,()=>wo);const _r=(Ho,Pi)=>{if(Ho){let ns={block:"nearest"};typeof Ho=="object"&&(ns=Ho),wo.scrollToField(Pi,ns)}},Si=Ho=>{if(Rr==null||Rr(Ho),Ho.errorFields.length){const Pi=Ho.errorFields[0].name;if(er!==void 0){_r(er,Pi);return}ni&&ni.scrollToFirstError!==void 0&&_r(ni.scrollToFirstError,Pi)}};return no(ee.createElement(_e.n,{disabled:di},ee.createElement(Ne.q,{size:Zo},ee.createElement(It.RV,Object.assign({},{validateMessages:cs}),ee.createElement(It.q3.Provider,{value:xo},ee.createElement(Vt.default,Object.assign({id:Zr},_o,{name:Zr,onFinishFailed:Si,form:wo,style:Object.assign(Object.assign({},ni==null?void 0:ni.style),Xr),className:Gr})))))))};var nn=ee.forwardRef(Hn),Fi=bt(41799),ki=bt(8654),Nt=bt(92343),Dt=bt(11592);function mt(Oe){if(typeof Oe=="function")return Oe;const hi=(0,Dt.Z)(Oe);return hi.length<=1?hi[0]:hi}const ft=()=>{const{status:Oe,errors:hi=[],warnings:Je=[]}=(0,ee.useContext)(It.aM);return{status:Oe,errors:hi,warnings:Je}};ft.Context=It.aM;var pt=ft,At=bt(16089);function ue(Oe){const[hi,Je]=ee.useState(Oe),fn=(0,ee.useRef)(null),Ke=(0,ee.useRef)([]),ni=(0,ee.useRef)(!1);ee.useEffect(()=>(ni.current=!1,()=>{ni.current=!0,At.Z.cancel(fn.current),fn.current=null}),[]);function Ci(_i){ni.current||(fn.current===null&&(Ke.current=[],fn.current=(0,At.Z)(()=>{fn.current=null,Je(qi=>{let on=qi;return Ke.current.forEach(di=>{on=di(on)}),on})})),Ke.current.push(_i))}return[hi,Ci]}function we(){const{itemRef:Oe}=ee.useContext(It.q3),hi=ee.useRef({});function Je(fn,Ke){const ni=Ke&&typeof Ke=="object"&&Ke.ref,Ci=fn.join("_");return(hi.current.name!==Ci||hi.current.originRef!==ni)&&(hi.current.name=Ci,hi.current.originRef=ni,hi.current.ref=(0,ki.sQ)(Oe(fn),ni)),hi.current.ref}return Je}var le=bt(29194),me=bt(34280),Ue=bt(2738),ke=bt(27382),Ie=bt(37028);const rn=Oe=>{const{formItemCls:hi}=Oe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${hi}-control`]:{display:"flex"}}}};var Gn=(0,Jt.b)(["Form","item-item"],(Oe,hi)=>{let{rootPrefixCls:Je}=hi;const fn=ne(Oe,Je);return[rn(fn)]}),An=Oe=>{const{prefixCls:hi,status:Je,wrapperCol:fn,children:Ke,errors:ni,warnings:Ci,_internalItemRender:_i,extra:qi,help:on,fieldId:di,marginBottom:Vi,onErrorVisibleChanged:kr}=Oe,ii=`${hi}-item`,wi=ee.useContext(It.q3),dr=fn||wi.wrapperCol||{},pi=re()(`${ii}-control`,dr.className),yi=ee.useMemo(()=>Object.assign({},wi),[wi]);delete yi.labelCol,delete yi.wrapperCol;const vi=ee.createElement("div",{className:`${ii}-control-input`},ee.createElement("div",{className:`${ii}-control-input-content`},Ke)),er=ee.useMemo(()=>({prefixCls:hi,status:Je}),[hi,Je]),or=Vi!==null||ni.length||Ci.length?ee.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ee.createElement(It.Rk.Provider,{value:er},ee.createElement(ze,{fieldId:di,errors:ni,warnings:Ci,help:on,helpStatus:Je,className:`${ii}-explain-connected`,onVisibleChanged:kr})),!!Vi&&ee.createElement("div",{style:{width:0,height:Vi}})):null,Rr={};di&&(Rr.id=`${di}_extra`);const Zr=qi?ee.createElement("div",Object.assign({},Rr,{className:`${ii}-extra`}),qi):null,Xr=_i&&_i.mark==="pro_table_render"&&_i.render?_i.render(Oe,{input:vi,errorList:or,extra:Zr}):ee.createElement(ee.Fragment,null,vi,or,Zr);return ee.createElement(It.q3.Provider,{value:yi},ee.createElement(Ie.Z,Object.assign({},dr,{className:pi}),Xr),ee.createElement(Gn,{prefixCls:hi}))},Dn=bt(61485),qn=bt(31724),Rn=bt(9763),Di=bt(6848),cr=function(Oe,hi){var Je={};for(var fn in Oe)Object.prototype.hasOwnProperty.call(Oe,fn)&&hi.indexOf(fn)<0&&(Je[fn]=Oe[fn]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,fn=Object.getOwnPropertySymbols(Oe);Ke<fn.length;Ke++)hi.indexOf(fn[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Oe,fn[Ke])&&(Je[fn[Ke]]=Oe[fn[Ke]]);return Je};function Ji(Oe){return Oe?typeof Oe=="object"&&!ee.isValidElement(Oe)?Oe:{title:Oe}:null}var Nr=Oe=>{let{prefixCls:hi,label:Je,htmlFor:fn,labelCol:Ke,labelAlign:ni,colon:Ci,required:_i,requiredMark:qi,tooltip:on}=Oe;var di;const[Vi]=(0,Rn.Z)("Form"),{vertical:kr,labelAlign:ii,labelCol:wi,labelWrap:dr,colon:pi}=ee.useContext(It.q3);if(!Je)return null;const yi=Ke||wi||{},vi=ni||ii,er=`${hi}-item-label`,or=re()(er,vi==="left"&&`${er}-left`,yi.className,{[`${er}-wrap`]:!!dr});let Rr=Je;const Zr=Ci===!0||pi!==!1&&Ci!==!1;Zr&&!kr&&typeof Je=="string"&&Je.trim()!==""&&(Rr=Je.replace(/[:|]\s*$/,""));const ei=Ji(on);if(ei){const{icon:ri=ee.createElement(Dn.Z,null)}=ei,rr=cr(ei,["icon"]),Er=ee.createElement(Di.Z,Object.assign({},rr),ee.cloneElement(ri,{className:`${hi}-item-tooltip`,title:""}));Rr=ee.createElement(ee.Fragment,null,Rr,Er)}const _o=qi==="optional",Zo=typeof qi=="function";Zo?Rr=qi(Rr,{required:!!_i}):_o&&!_i&&(Rr=ee.createElement(ee.Fragment,null,Rr,ee.createElement("span",{className:`${hi}-item-optional`,title:""},(Vi==null?void 0:Vi.optional)||((di=qn.Z.Form)===null||di===void 0?void 0:di.optional))));const cs=re()({[`${hi}-item-required`]:_i,[`${hi}-item-required-mark-optional`]:_o||Zo,[`${hi}-item-no-colon`]:!Zr});return ee.createElement(Ie.Z,Object.assign({},yi,{className:or}),ee.createElement("label",{htmlFor:fn,className:cs,title:typeof Je=="string"?Je:""},Rr))},co=bt(29679),to=bt(19248),Kr=bt(96512),gr=bt(58617);const Vr={success:co.Z,warning:Kr.Z,error:to.Z,validating:gr.Z};function pr(Oe){let{children:hi,errors:Je,warnings:fn,hasFeedback:Ke,validateStatus:ni,prefixCls:Ci,meta:_i,noStyle:qi}=Oe;const on=`${Ci}-item`,{feedbackIcons:di}=ee.useContext(It.q3),Vi=Ln(Je,fn,_i,null,!!Ke,ni),{isFormItemInput:kr,status:ii}=ee.useContext(It.aM),wi=ee.useMemo(()=>{var dr;let pi;if(Ke){const er=Ke!==!0&&Ke.icons||di,or=Vi&&((dr=er==null?void 0:er({status:Vi,errors:Je,warnings:fn}))===null||dr===void 0?void 0:dr[Vi]),Rr=Vi&&Vr[Vi];pi=or!==!1&&Rr?ee.createElement("span",{className:re()(`${on}-feedback-icon`,`${on}-feedback-icon-${Vi}`)},or||ee.createElement(Rr,null)):null}let yi=!0,vi=Vi||"";return qi&&(yi=kr,vi=(Vi!=null?Vi:ii)||""),{status:vi,errors:Je,warnings:fn,hasFeedback:!!Ke,feedbackIcon:pi,isFormItemInput:yi}},[Vi,Ke,qi,kr,ii]);return ee.createElement(It.aM.Provider,{value:wi},hi)}var zo=function(Oe,hi){var Je={};for(var fn in Oe)Object.prototype.hasOwnProperty.call(Oe,fn)&&hi.indexOf(fn)<0&&(Je[fn]=Oe[fn]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,fn=Object.getOwnPropertySymbols(Oe);Ke<fn.length;Ke++)hi.indexOf(fn[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Oe,fn[Ke])&&(Je[fn[Ke]]=Oe[fn[Ke]]);return Je};function es(Oe){const{prefixCls:hi,className:Je,rootClassName:fn,style:Ke,help:ni,errors:Ci,warnings:_i,validateStatus:qi,meta:on,hasFeedback:di,hidden:Vi,children:kr,fieldId:ii,required:wi,isRequired:dr,onSubItemMetaChange:pi}=Oe,yi=zo(Oe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),vi=`${hi}-item`,{requiredMark:er}=ee.useContext(It.q3),or=ee.useRef(null),Rr=jt(Ci),Zr=jt(_i),Xr=ni!=null,ei=!!(Xr||Ci.length||_i.length),_o=!!or.current&&(0,le.Z)(or.current),[Zo,cs]=ee.useState(null);(0,me.Z)(()=>{if(ei&&or.current){const Fr=getComputedStyle(or.current);cs(parseInt(Fr.marginBottom,10))}},[ei,_o]);const ri=Fr=>{Fr||cs(null)},Er=function(){let Fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Gr=Fr?Rr:on.errors,wo=Fr?Zr:on.warnings;return Ln(Gr,wo,on,"",!!di,qi)}(),no=re()(vi,Je,fn,{[`${vi}-with-help`]:Xr||Rr.length||Zr.length,[`${vi}-has-feedback`]:Er&&di,[`${vi}-has-success`]:Er==="success",[`${vi}-has-warning`]:Er==="warning",[`${vi}-has-error`]:Er==="error",[`${vi}-is-validating`]:Er==="validating",[`${vi}-hidden`]:Vi});return ee.createElement("div",{className:no,style:Ke,ref:or},ee.createElement(ke.Z,Object.assign({className:`${vi}-row`},(0,Ue.Z)(yi,["_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"])),ee.createElement(Nr,Object.assign({htmlFor:ii},Oe,{requiredMark:er,required:wi!=null?wi:dr,prefixCls:hi})),ee.createElement(An,Object.assign({},Oe,on,{errors:Rr,warnings:Zr,prefixCls:hi,status:Er,help:ni,marginBottom:Zo,onErrorVisibleChanged:ri}),ee.createElement(It.qI.Provider,{value:pi},ee.createElement(pr,{prefixCls:hi,meta:on,errors:on.errors,warnings:on.warnings,hasFeedback:di,validateStatus:Er},kr)))),!!Zo&&ee.createElement("div",{className:`${vi}-margin-offset`,style:{marginBottom:-Zo}}))}const yo="__SPLIT__",ks=null,ws=ee.memo(Oe=>{let{children:hi}=Oe;return hi},(Oe,hi)=>Oe.value===hi.value&&Oe.update===hi.update&&Oe.childProps.length===hi.childProps.length&&Oe.childProps.every((Je,fn)=>Je===hi.childProps[fn]));function Wt(Oe){return Oe!=null}function xs(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ss(Oe){const{name:hi,noStyle:Je,className:fn,dependencies:Ke,prefixCls:ni,shouldUpdate:Ci,rules:_i,children:qi,required:on,label:di,messageVariables:Vi,trigger:kr="onChange",validateTrigger:ii,hidden:wi,help:dr}=Oe,{getPrefixCls:pi}=ee.useContext(Ge.E_),{name:yi}=ee.useContext(It.q3),vi=mt(qi),er=typeof vi=="function",or=ee.useContext(It.qI),{validateTrigger:Rr}=ee.useContext(Vt.FieldContext),Zr=ii!==void 0?ii:Rr,Xr=Wt(hi),ei=pi("form",ni),[_o,Zo]=ae(ei),cs=ee.useContext(Vt.ListContext),ri=ee.useRef(),[rr,Er]=ue({}),[no,Fr]=(0,Fi.Z)(()=>xs()),Gr=Pi=>{const ns=cs==null?void 0:cs.getKey(Pi.name);if(Fr(Pi.destroy?xs():Pi,!0),Je&&dr!==!1&&or){let qs=Pi.name;if(Pi.destroy)qs=ri.current||qs;else if(ns!==void 0){const[fs,Hs]=ns;qs=[fs].concat((0,Ft.Z)(Hs)),ri.current=qs}or(Pi,qs)}},wo=(Pi,ns)=>{Er(qs=>{const fs=Object.assign({},qs),Gs=[].concat((0,Ft.Z)(Pi.name.slice(0,-1)),(0,Ft.Z)(ns)).join(yo);return Pi.destroy?delete fs[Gs]:fs[Gs]=Pi,fs})},[fo,xo]=ee.useMemo(()=>{const Pi=(0,Ft.Z)(no.errors),ns=(0,Ft.Z)(no.warnings);return Object.values(rr).forEach(qs=>{Pi.push.apply(Pi,(0,Ft.Z)(qs.errors||[])),ns.push.apply(ns,(0,Ft.Z)(qs.warnings||[]))}),[Pi,ns]},[rr,no.errors,no.warnings]),_r=we();function Si(Pi,ns,qs){return Je&&!wi?ee.createElement(pr,{prefixCls:ei,hasFeedback:Oe.hasFeedback,validateStatus:Oe.validateStatus,meta:no,errors:fo,warnings:xo,noStyle:!0},Pi):ee.createElement(es,Object.assign({key:"row"},Oe,{className:re()(fn,Zo),prefixCls:ei,fieldId:ns,isRequired:qs,errors:fo,warnings:xo,meta:no,onSubItemMetaChange:wo}),Pi)}if(!Xr&&!er&&!Ke)return _o(Si(vi));let Ho={};return typeof di=="string"?Ho.label=di:hi&&(Ho.label=String(hi)),Vi&&(Ho=Object.assign(Object.assign({},Ho),Vi)),_o(ee.createElement(Vt.Field,Object.assign({},Oe,{messageVariables:Ho,trigger:kr,validateTrigger:Zr,onMetaChange:Gr}),(Pi,ns,qs)=>{const fs=Se(hi).length&&ns?ns.name:[],Hs=Bn(fs,yi),Gs=on!==void 0?on:!!(_i&&_i.some(us=>{if(us&&typeof us=="object"&&us.required&&!us.warningOnly)return!0;if(typeof us=="function"){const rs=us(qs);return rs&&rs.required&&!rs.warningOnly}return!1})),si=Object.assign({},Pi);let To=null;if(Array.isArray(vi)&&Xr)To=vi;else if(!(er&&(!(Ci||Ke)||Xr))){if(!(Ke&&!er&&!Xr))if((0,Nt.l$)(vi)){const us=Object.assign(Object.assign({},vi.props),si);if(us.id||(us.id=Hs),dr||fo.length>0||xo.length>0||Oe.extra){const Le=[];(dr||fo.length>0)&&Le.push(`${Hs}_help`),Oe.extra&&Le.push(`${Hs}_extra`),us["aria-describedby"]=Le.join(" ")}fo.length>0&&(us["aria-invalid"]="true"),Gs&&(us["aria-required"]="true"),(0,ki.Yr)(vi)&&(us.ref=_r(fs,vi)),new Set([].concat((0,Ft.Z)(Se(kr)),(0,Ft.Z)(Se(Zr)))).forEach(Le=>{us[Le]=function(){for(var qo,ta,qa,ol,ml,vr=arguments.length,$r=new Array(vr),Xo=0;Xo<vr;Xo++)$r[Xo]=arguments[Xo];(qa=si[Le])===null||qa===void 0||(qo=qa).call.apply(qo,[si].concat($r)),(ml=(ol=vi.props)[Le])===null||ml===void 0||(ta=ml).call.apply(ta,[ol].concat($r))}});const Cr=[us["aria-required"],us["aria-invalid"],us["aria-describedby"]];To=ee.createElement(ws,{value:si[Oe.valuePropName||"value"],update:vi,childProps:Cr},(0,Nt.Tm)(vi,us))}else er&&(Ci||Ke)&&!Xr?To=vi(qs):To=vi}return Si(To,Hs,Gs)}))}const Ms=Ss;Ms.useStatus=pt;var ma=Ms,Ea=function(Oe,hi){var Je={};for(var fn in Oe)Object.prototype.hasOwnProperty.call(Oe,fn)&&hi.indexOf(fn)<0&&(Je[fn]=Oe[fn]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,fn=Object.getOwnPropertySymbols(Oe);Ke<fn.length;Ke++)hi.indexOf(fn[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Oe,fn[Ke])&&(Je[fn[Ke]]=Oe[fn[Ke]]);return Je},so=Oe=>{var{prefixCls:hi,children:Je}=Oe,fn=Ea(Oe,["prefixCls","children"]);const{getPrefixCls:Ke}=ee.useContext(Ge.E_),ni=Ke("form",hi),Ci=ee.useMemo(()=>({prefixCls:ni,status:"error"}),[ni]);return ee.createElement(Vt.List,Object.assign({},fn),(_i,qi,on)=>ee.createElement(It.Rk.Provider,{value:Ci},Je(_i.map(di=>Object.assign(Object.assign({},di),{fieldKey:di.key})),qi,{errors:on.errors,warnings:on.warnings})))};function br(){const{form:Oe}=(0,ee.useContext)(It.q3);return Oe}const kn=nn;kn.Item=ma,kn.List=so,kn.ErrorList=ze,kn.useForm=Mn,kn.useFormInstance=br,kn.useWatch=Vt.useWatch,kn.Provider=It.RV,kn.create=()=>{};var In=kn},8628:function(ui,wn,bt){"use strict";var Ft=bt(59301),ce=bt(34280),re=bt(56762),Be=bt(69507);function ee(){let Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const It=(0,Ft.useRef)({}),jt=(0,re.Z)(),Xt=(0,Be.ZP)();return(0,ce.Z)(()=>{const Pt=Xt.subscribe(oe=>{It.current=oe,Yt&&jt()});return()=>Xt.unsubscribe(Pt)},[]),It.current}wn.Z=ee},9432:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ut},n:function(){return lt}});var Ft=bt(19248),ce=bt(92310),re=bt.n(ce),Be=bt(93681),ee=bt(8654),Yt=bt(59301),It=bt(19080),jt=bt(36355),Xt=bt(1684),Pt=bt(19716),oe=bt(32441),zt=bt(33234),Jt=bt(59412),Ct=bt(9937);function et(ct){return!!(ct.prefix||ct.suffix||ct.allowClear)}var tt=function(ct,wt){var Mt={};for(var Ot in ct)Object.prototype.hasOwnProperty.call(ct,Ot)&&wt.indexOf(Ot)<0&&(Mt[Ot]=ct[Ot]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,Ot=Object.getOwnPropertySymbols(ct);Ht<Ot.length;Ht++)wt.indexOf(Ot[Ht])<0&&Object.prototype.propertyIsEnumerable.call(ct,Ot[Ht])&&(Mt[Ot[Ht]]=ct[Ot[Ht]]);return Mt};function lt(ct,wt){if(!ct)return;ct.focus(wt);const{cursor:Mt}=wt||{};if(Mt){const Ot=ct.value.length;switch(Mt){case"start":ct.setSelectionRange(0,0);break;case"end":ct.setSelectionRange(Ot,Ot);break;default:ct.setSelectionRange(0,Ot);break}}}var ut=(0,Yt.forwardRef)((ct,wt)=>{var Mt;const{prefixCls:Ot,bordered:Ht=!0,status:ne,size:ae,disabled:de,onBlur:be,onFocus:qt,suffix:ze,allowClear:Vt,addonAfter:Ge,addonBefore:_e,className:Ne,style:We,styles:Re,rootClassName:ve,onChange:ie,classNames:Se}=ct,Bn=tt(ct,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ln,direction:Ye,input:Mn}=Yt.useContext(jt.E_),Wn=Ln("input",Ot),fi=(0,Yt.useRef)(null),[Hn,xi]=(0,Ct.ZP)(Wn),{compactSize:nn,compactItemClassnames:Fi}=(0,zt.ri)(Wn,Ye),ki=(0,Pt.Z)(Gn=>{var dn;return(dn=ae!=null?ae:nn)!==null&&dn!==void 0?dn:Gn}),Nt=Yt.useContext(Xt.Z),Dt=de!=null?de:Nt,{status:mt,hasFeedback:ft,feedbackIcon:pt}=(0,Yt.useContext)(oe.aM),At=(0,It.F)(mt,ne),ue=et(ct)||!!ft,we=(0,Yt.useRef)(ue);(0,Yt.useEffect)(()=>{var Gn;ue&&we.current,we.current=ue},[ue]);const le=(0,Jt.Z)(fi,!0),me=Gn=>{le(),be==null||be(Gn)},Ue=Gn=>{le(),qt==null||qt(Gn)},ke=Gn=>{le(),ie==null||ie(Gn)},Ie=(ft||ze)&&Yt.createElement(Yt.Fragment,null,ze,ft&&pt);let rn;return typeof Vt=="object"&&(Vt!=null&&Vt.clearIcon)?rn=Vt:Vt&&(rn={clearIcon:Yt.createElement(Ft.Z,null)}),Hn(Yt.createElement(Be.default,Object.assign({ref:(0,ee.sQ)(wt,fi),prefixCls:Wn,autoComplete:Mn==null?void 0:Mn.autoComplete},Bn,{disabled:Dt,onBlur:me,onFocus:Ue,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),We),styles:Object.assign(Object.assign({},Mn==null?void 0:Mn.styles),Re),suffix:Ie,allowClear:rn,className:re()(Ne,ve,Fi,Mn==null?void 0:Mn.className),onChange:ke,addonAfter:Ge&&Yt.createElement(zt.BR,null,Yt.createElement(oe.Ux,{override:!0,status:!0},Ge)),addonBefore:_e&&Yt.createElement(zt.BR,null,Yt.createElement(oe.Ux,{override:!0,status:!0},_e)),classNames:Object.assign(Object.assign(Object.assign({},Se),Mn==null?void 0:Mn.classNames),{input:re()({[`${Wn}-sm`]:ki==="small",[`${Wn}-lg`]:ki==="large",[`${Wn}-rtl`]:Ye==="rtl",[`${Wn}-borderless`]:!Ht},!ue&&(0,It.Z)(Wn,At),Se==null?void 0:Se.input,(Mt=Mn==null?void 0:Mn.classNames)===null||Mt===void 0?void 0:Mt.input,xi)}),classes:{affixWrapper:re()({[`${Wn}-affix-wrapper-sm`]:ki==="small",[`${Wn}-affix-wrapper-lg`]:ki==="large",[`${Wn}-affix-wrapper-rtl`]:Ye==="rtl",[`${Wn}-affix-wrapper-borderless`]:!Ht},(0,It.Z)(`${Wn}-affix-wrapper`,At,ft),xi),wrapper:re()({[`${Wn}-group-rtl`]:Ye==="rtl"},xi),group:re()({[`${Wn}-group-wrapper-sm`]:ki==="small",[`${Wn}-group-wrapper-lg`]:ki==="large",[`${Wn}-group-wrapper-rtl`]:Ye==="rtl",[`${Wn}-group-wrapper-disabled`]:Dt},(0,It.Z)(`${Wn}-group-wrapper`,At,ft),xi)}})))})},1643:function(ui,wn,bt){"use strict";var Ft=bt(19248),ce=bt(92310),re=bt.n(ce),Be=bt(9296),ee=bt(59301),Yt=bt(19080),It=bt(36355),jt=bt(1684),Xt=bt(19716),Pt=bt(32441),oe=bt(9432),zt=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 ut=0,rt=Object.getOwnPropertySymbols(et);ut<rt.length;ut++)tt.indexOf(rt[ut])<0&&Object.prototype.propertyIsEnumerable.call(et,rt[ut])&&(lt[rt[ut]]=et[rt[ut]]);return lt};const Ct=(0,ee.forwardRef)((et,tt)=>{const{prefixCls:lt,bordered:rt=!0,size:ut,disabled:ct,status:wt,allowClear:Mt,showCount:Ot,classNames:Ht,rootClassName:ne,className:ae}=et,de=Jt(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:be,direction:qt}=ee.useContext(It.E_),ze=(0,Xt.Z)(ut),Vt=ee.useContext(jt.Z),Ge=ct!=null?ct:Vt,{status:_e,hasFeedback:Ne,feedbackIcon:We}=ee.useContext(Pt.aM),Re=(0,Yt.F)(_e,wt),ve=ee.useRef(null);ee.useImperativeHandle(tt,()=>{var Ye;return{resizableTextArea:(Ye=ve.current)===null||Ye===void 0?void 0:Ye.resizableTextArea,focus:Mn=>{var Wn,fi;(0,oe.n)((fi=(Wn=ve.current)===null||Wn===void 0?void 0:Wn.resizableTextArea)===null||fi===void 0?void 0:fi.textArea,Mn)},blur:()=>{var Mn;return(Mn=ve.current)===null||Mn===void 0?void 0:Mn.blur()}}});const ie=be("input",lt);let Se;typeof Mt=="object"&&(Mt!=null&&Mt.clearIcon)?Se=Mt:Mt&&(Se={clearIcon:ee.createElement(Ft.Z,null)});const[Bn,Ln]=(0,zt.ZP)(ie);return Bn(ee.createElement(Be.default,Object.assign({},de,{disabled:Ge,allowClear:Se,className:re()(ae,ne),classes:{affixWrapper:re()(`${ie}-textarea-affix-wrapper`,{[`${ie}-affix-wrapper-rtl`]:qt==="rtl",[`${ie}-affix-wrapper-borderless`]:!rt,[`${ie}-affix-wrapper-sm`]:ze==="small",[`${ie}-affix-wrapper-lg`]:ze==="large",[`${ie}-textarea-show-count`]:Ot},(0,Yt.Z)(`${ie}-affix-wrapper`,Re),Ln)},classNames:Object.assign(Object.assign({},Ht),{textarea:re()({[`${ie}-borderless`]:!rt,[`${ie}-sm`]:ze==="small",[`${ie}-lg`]:ze==="large"},(0,Yt.Z)(ie,Re),Ln,Ht==null?void 0:Ht.textarea)}),prefixCls:ie,suffix:Ne&&ee.createElement("span",{className:`${ie}-textarea-suffix`},We),showCount:Ot,ref:ve})))});wn.Z=Ct},59412:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ce}});var Ft=bt(59301);function ce(re,Be){const ee=(0,Ft.useRef)([]),Yt=()=>{ee.current.push(setTimeout(()=>{var It,jt,Xt,Pt;!((It=re.current)===null||It===void 0)&&It.input&&((jt=re.current)===null||jt===void 0?void 0:jt.input.getAttribute("type"))==="password"&&(!((Xt=re.current)===null||Xt===void 0)&&Xt.input.hasAttribute("value"))&&((Pt=re.current)===null||Pt===void 0||Pt.input.removeAttribute("value"))}))};return(0,Ft.useEffect)(()=>(Be&&Yt(),()=>ee.current.forEach(It=>{It&&clearTimeout(It)})),[]),Yt}},92832:function(ui,wn,bt){"use strict";bt.d(wn,{default:function(){return ze}});var Ft=bt(92310),ce=bt.n(Ft),re=bt(59301),Be=bt(36355),ee=bt(32441),Yt=bt(9937),jt=Vt=>{const{getPrefixCls:Ge,direction:_e}=(0,re.useContext)(Be.E_),{prefixCls:Ne,className:We}=Vt,Re=Ge("input-group",Ne),ve=Ge("input"),[ie,Se]=(0,Yt.ZP)(ve),Bn=ce()(Re,{[`${Re}-lg`]:Vt.size==="large",[`${Re}-sm`]:Vt.size==="small",[`${Re}-compact`]:Vt.compact,[`${Re}-rtl`]:_e==="rtl"},Se,We),Ln=(0,re.useContext)(ee.aM),Ye=(0,re.useMemo)(()=>Object.assign(Object.assign({},Ln),{isFormItemInput:!1}),[Ln]);return ie(re.createElement("span",{className:Bn,style:Vt.style,onMouseEnter:Vt.onMouseEnter,onMouseLeave:Vt.onMouseLeave,onFocus:Vt.onFocus,onBlur:Vt.onBlur},re.createElement(ee.aM.Provider,{value:Ye},Vt.children)))},Xt=bt(9432),Pt=bt(73331),oe=bt(15277),zt=bt(2738),Jt=bt(8654),Ct=bt(59412),et=function(Vt,Ge){var _e={};for(var Ne in Vt)Object.prototype.hasOwnProperty.call(Vt,Ne)&&Ge.indexOf(Ne)<0&&(_e[Ne]=Vt[Ne]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ne=Object.getOwnPropertySymbols(Vt);We<Ne.length;We++)Ge.indexOf(Ne[We])<0&&Object.prototype.propertyIsEnumerable.call(Vt,Ne[We])&&(_e[Ne[We]]=Vt[Ne[We]]);return _e};const tt=Vt=>Vt?re.createElement(oe.Z,null):re.createElement(Pt.Z,null),lt={click:"onClick",hover:"onMouseOver"};var ut=re.forwardRef((Vt,Ge)=>{const{visibilityToggle:_e=!0}=Vt,Ne=typeof _e=="object"&&_e.visible!==void 0,[We,Re]=(0,re.useState)(()=>Ne?_e.visible:!1),ve=(0,re.useRef)(null);re.useEffect(()=>{Ne&&Re(_e.visible)},[Ne,_e]);const ie=(0,Ct.Z)(ve),Se=()=>{const{disabled:Dt}=Vt;Dt||(We&&ie(),Re(mt=>{var ft;const pt=!mt;return typeof _e=="object"&&((ft=_e.onVisibleChange)===null||ft===void 0||ft.call(_e,pt)),pt}))},Bn=Dt=>{const{action:mt="click",iconRender:ft=tt}=Vt,pt=lt[mt]||"",At=ft(We),ue={[pt]:Se,className:`${Dt}-icon`,key:"passwordIcon",onMouseDown:we=>{we.preventDefault()},onMouseUp:we=>{we.preventDefault()}};return re.cloneElement(re.isValidElement(At)?At:re.createElement("span",null,At),ue)},{className:Ln,prefixCls:Ye,inputPrefixCls:Mn,size:Wn}=Vt,fi=et(Vt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Hn}=re.useContext(Be.E_),xi=Hn("input",Mn),nn=Hn("input-password",Ye),Fi=_e&&Bn(nn),ki=ce()(nn,Ln,{[`${nn}-${Wn}`]:!!Wn}),Nt=Object.assign(Object.assign({},(0,zt.Z)(fi,["suffix","iconRender","visibilityToggle"])),{type:We?"text":"password",className:ki,prefixCls:xi,suffix:Fi});return Wn&&(Nt.size=Wn),re.createElement(Xt.Z,Object.assign({ref:(0,Jt.sQ)(Ge,ve)},Nt))}),ct=bt(47472),wt=bt(92343),Mt=bt(3113),Ot=bt(19716),Ht=bt(33234),ne=function(Vt,Ge){var _e={};for(var Ne in Vt)Object.prototype.hasOwnProperty.call(Vt,Ne)&&Ge.indexOf(Ne)<0&&(_e[Ne]=Vt[Ne]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ne=Object.getOwnPropertySymbols(Vt);We<Ne.length;We++)Ge.indexOf(Ne[We])<0&&Object.prototype.propertyIsEnumerable.call(Vt,Ne[We])&&(_e[Ne[We]]=Vt[Ne[We]]);return _e},de=re.forwardRef((Vt,Ge)=>{const{prefixCls:_e,inputPrefixCls:Ne,className:We,size:Re,suffix:ve,enterButton:ie=!1,addonAfter:Se,loading:Bn,disabled:Ln,onSearch:Ye,onChange:Mn,onCompositionStart:Wn,onCompositionEnd:fi}=Vt,Hn=ne(Vt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:xi,direction:nn}=re.useContext(Be.E_),Fi=re.useRef(!1),ki=xi("input-search",_e),Nt=xi("input",Ne),{compactSize:Dt}=(0,Ht.ri)(ki,nn),mt=(0,Ot.Z)(An=>{var Dn;return(Dn=Re!=null?Re:Dt)!==null&&Dn!==void 0?Dn:An}),ft=re.useRef(null),pt=An=>{An&&An.target&&An.type==="click"&&Ye&&Ye(An.target.value,An,{source:"clear"}),Mn&&Mn(An)},At=An=>{var Dn;document.activeElement===((Dn=ft.current)===null||Dn===void 0?void 0:Dn.input)&&An.preventDefault()},ue=An=>{var Dn,qn;Ye&&Ye((qn=(Dn=ft.current)===null||Dn===void 0?void 0:Dn.input)===null||qn===void 0?void 0:qn.value,An,{source:"input"})},we=An=>{Fi.current||Bn||ue(An)},le=typeof ie=="boolean"?re.createElement(ct.Z,null):null,me=`${ki}-button`;let Ue;const ke=ie||{},Ie=ke.type&&ke.type.__ANT_BUTTON===!0;Ie||ke.type==="button"?Ue=(0,wt.Tm)(ke,Object.assign({onMouseDown:At,onClick:An=>{var Dn,qn;(qn=(Dn=ke==null?void 0:ke.props)===null||Dn===void 0?void 0:Dn.onClick)===null||qn===void 0||qn.call(Dn,An),ue(An)},key:"enterButton"},Ie?{className:me,size:mt}:{})):Ue=re.createElement(Mt.ZP,{className:me,type:ie?"primary":void 0,size:mt,disabled:Ln,key:"enterButton",onMouseDown:At,onClick:ue,loading:Bn,icon:le},ie),Se&&(Ue=[Ue,(0,wt.Tm)(Se,{key:"addonAfter"})]);const rn=ce()(ki,{[`${ki}-rtl`]:nn==="rtl",[`${ki}-${mt}`]:!!mt,[`${ki}-with-button`]:!!ie},We),Gn=An=>{Fi.current=!0,Wn==null||Wn(An)},dn=An=>{Fi.current=!1,fi==null||fi(An)};return re.createElement(Xt.Z,Object.assign({ref:(0,Jt.sQ)(ft,Ge),onPressEnter:we},Hn,{size:mt,onCompositionStart:Gn,onCompositionEnd:dn,prefixCls:Nt,addonAfter:Ue,suffix:ve,onChange:pt,className:rn,disabled:Ln}))}),be=bt(1643);const qt=Xt.Z;qt.Group=jt,qt.Search=de,qt.TextArea=be.Z,qt.Password=ut;var ze=qt},45818:function(ui,wn,bt){"use strict";bt.d(wn,{D:function(){return ct},Z:function(){return Ot}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(ne,ae){return ce.createElement(ee.Z,(0,Ft.Z)({},ne,{ref:ae,icon:Be}))},It=ce.forwardRef(Yt),jt=It,Xt=bt(33853),Pt=bt(38819),oe=bt(92310),zt=bt.n(oe),Jt=bt(2738),et=Ht=>!isNaN(parseFloat(Ht))&&isFinite(Ht),tt=bt(36355),lt=bt(84966),rt=function(Ht,ne){var ae={};for(var de in Ht)Object.prototype.hasOwnProperty.call(Ht,de)&&ne.indexOf(de)<0&&(ae[de]=Ht[de]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,de=Object.getOwnPropertySymbols(Ht);be<de.length;be++)ne.indexOf(de[be])<0&&Object.prototype.propertyIsEnumerable.call(Ht,de[be])&&(ae[de[be]]=Ht[de[be]]);return ae};const ut={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ct=ce.createContext({}),wt=(()=>{let Ht=0;return function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ht+=1,`${ne}${Ht}`}})();var Ot=ce.forwardRef((Ht,ne)=>{const{prefixCls:ae,className:de,trigger:be,children:qt,defaultCollapsed:ze=!1,theme:Vt="dark",style:Ge={},collapsible:_e=!1,reverseArrow:Ne=!1,width:We=200,collapsedWidth:Re=80,zeroWidthTriggerStyle:ve,breakpoint:ie,onCollapse:Se,onBreakpoint:Bn}=Ht,Ln=rt(Ht,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ye}=(0,ce.useContext)(lt.Gs),[Mn,Wn]=(0,ce.useState)("collapsed"in Ht?Ht.collapsed:ze),[fi,Hn]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in Ht&&Wn(Ht.collapsed)},[Ht.collapsed]);const xi=(mt,ft)=>{"collapsed"in Ht||Wn(mt),Se==null||Se(mt,ft)},nn=(0,ce.useRef)();nn.current=mt=>{Hn(mt.matches),Bn==null||Bn(mt.matches),Mn!==mt.matches&&xi(mt.matches,"responsive")},(0,ce.useEffect)(()=>{function mt(pt){return nn.current(pt)}let ft;if(typeof window!="undefined"){const{matchMedia:pt}=window;if(pt&&ie&&ie in ut){ft=pt(`(max-width: ${ut[ie]})`);try{ft.addEventListener("change",mt)}catch(At){ft.addListener(mt)}mt(ft)}}return()=>{try{ft==null||ft.removeEventListener("change",mt)}catch(pt){ft==null||ft.removeListener(mt)}}},[ie]),(0,ce.useEffect)(()=>{const mt=wt("ant-sider-");return Ye.addSider(mt),()=>Ye.removeSider(mt)},[]);const Fi=()=>{xi(!Mn,"clickTrigger")},{getPrefixCls:ki}=(0,ce.useContext)(tt.E_),Nt=()=>{const mt=ki("layout-sider",ae),ft=(0,Jt.Z)(Ln,["collapsed"]),pt=Mn?Re:We,At=et(pt)?`${pt}px`:String(pt),ue=parseFloat(String(Re||0))===0?ce.createElement("span",{onClick:Fi,className:zt()(`${mt}-zero-width-trigger`,`${mt}-zero-width-trigger-${Ne?"right":"left"}`),style:ve},be||ce.createElement(jt,null)):null,me={expanded:Ne?ce.createElement(Pt.Z,null):ce.createElement(Xt.Z,null),collapsed:Ne?ce.createElement(Xt.Z,null):ce.createElement(Pt.Z,null)}[Mn?"collapsed":"expanded"],Ue=be!==null?ue||ce.createElement("div",{className:`${mt}-trigger`,onClick:Fi,style:{width:At}},be||me):null,ke=Object.assign(Object.assign({},Ge),{flex:`0 0 ${At}`,maxWidth:At,minWidth:At,width:At}),Ie=zt()(mt,`${mt}-${Vt}`,{[`${mt}-collapsed`]:!!Mn,[`${mt}-has-trigger`]:_e&&be!==null&&!ue,[`${mt}-below`]:!!fi,[`${mt}-zero-width`]:parseFloat(At)===0},de);return ce.createElement("aside",Object.assign({className:Ie},ft,{style:ke,ref:ne}),ce.createElement("div",{className:`${mt}-children`},qt),_e||fi&&ue?Ue:null)},Dt=ce.useMemo(()=>({siderCollapsed:Mn}),[Mn]);return ce.createElement(ct.Provider,{value:Dt},Nt())})},84966:function(ui,wn,bt){"use strict";bt.d(wn,{VY:function(){return ct},$_:function(){return ut},h4:function(){return rt},Gs:function(){return Jt},ZP:function(){return wt}});var Ft=bt(80702),ce=bt(92310),re=bt.n(ce),Be=bt(2738),ee=bt(59301),Yt=bt(36355),It=bt(83116),Xt=Mt=>{const{componentCls:Ot,bodyBg:Ht,lightSiderBg:ne,lightTriggerBg:ae,lightTriggerColor:de}=Mt;return{[`${Ot}-sider-light`]:{background:ne,[`${Ot}-sider-trigger`]:{color:de,background:ae},[`${Ot}-sider-zero-width-trigger`]:{color:de,background:ae,border:`1px solid ${Ht}`,borderInlineStart:0}}}};const Pt=Mt=>{const{antCls:Ot,componentCls:Ht,colorText:ne,triggerColor:ae,footerBg:de,triggerBg:be,headerHeight:qt,headerPadding:ze,headerColor:Vt,footerPadding:Ge,triggerHeight:_e,zeroTriggerHeight:Ne,zeroTriggerWidth:We,motionDurationMid:Re,motionDurationSlow:ve,fontSize:ie,borderRadius:Se,bodyBg:Bn,headerBg:Ln,siderBg:Ye}=Mt;return{[Ht]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Bn,"&, *":{boxSizing:"border-box"},[`&${Ht}-has-sider`]:{flexDirection:"row",[`> ${Ht}, > ${Ht}-content`]:{width:0}},[`${Ht}-header, &${Ht}-footer`]:{flex:"0 0 auto"},[`${Ht}-sider`]:{position:"relative",minWidth:0,background:Ye,transition:`all ${Re}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ot}-menu${Ot}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:_e},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:_e,color:ae,lineHeight:`${_e}px`,textAlign:"center",background:be,cursor:"pointer",transition:`all ${Re}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:qt,insetInlineEnd:-We,zIndex:1,width:We,height:Ne,color:ae,fontSize:Mt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ye,borderStartStartRadius:0,borderStartEndRadius:Se,borderEndEndRadius:Se,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:Se,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se}}}}},Xt(Mt)),{"&-rtl":{direction:"rtl"}}),[`${Ht}-header`]:{height:qt,padding:ze,color:Vt,lineHeight:`${qt}px`,background:Ln,[`${Ot}-menu`]:{lineHeight:"inherit"}},[`${Ht}-footer`]:{padding:Ge,color:ne,fontSize:ie,background:de},[`${Ht}-content`]:{flex:"auto",minHeight:0}}};var oe=(0,It.Z)("Layout",Mt=>[Pt(Mt)],Mt=>{const{colorBgLayout:Ot,controlHeight:Ht,controlHeightLG:ne,colorText:ae,controlHeightSM:de,marginXXS:be,colorTextLightSolid:qt,colorBgContainer:ze}=Mt,Vt=ne*1.25;return{colorBgHeader:"#001529",colorBgBody:Ot,colorBgTrigger:"#002140",bodyBg:Ot,headerBg:"#001529",headerHeight:Ht*2,headerPadding:`0 ${Vt}px`,headerColor:ae,footerPadding:`${de}px ${Vt}px`,footerBg:Ot,siderBg:"#001529",triggerHeight:ne+be*2,triggerBg:"#002140",triggerColor:qt,zeroTriggerWidth:ne,zeroTriggerHeight:ne,lightSiderBg:ze,lightTriggerBg:ze,lightTriggerColor:ae}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),zt=function(Mt,Ot){var Ht={};for(var ne in Mt)Object.prototype.hasOwnProperty.call(Mt,ne)&&Ot.indexOf(ne)<0&&(Ht[ne]=Mt[ne]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,ne=Object.getOwnPropertySymbols(Mt);ae<ne.length;ae++)Ot.indexOf(ne[ae])<0&&Object.prototype.propertyIsEnumerable.call(Mt,ne[ae])&&(Ht[ne[ae]]=Mt[ne[ae]]);return Ht};const Jt=ee.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ct(Mt){let{suffixCls:Ot,tagName:Ht,displayName:ne}=Mt;return ae=>ee.forwardRef((be,qt)=>ee.createElement(ae,Object.assign({ref:qt,suffixCls:Ot,tagName:Ht},be)))}const et=ee.forwardRef((Mt,Ot)=>{const{prefixCls:Ht,suffixCls:ne,className:ae,tagName:de}=Mt,be=zt(Mt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:qt}=ee.useContext(Yt.E_),ze=qt("layout",Ht),[Vt,Ge]=oe(ze),_e=ne?`${ze}-${ne}`:ze;return Vt(ee.createElement(de,Object.assign({className:re()(Ht||_e,ae,Ge),ref:Ot},be)))}),tt=ee.forwardRef((Mt,Ot)=>{const{direction:Ht}=ee.useContext(Yt.E_),[ne,ae]=ee.useState([]),{prefixCls:de,className:be,rootClassName:qt,children:ze,hasSider:Vt,tagName:Ge,style:_e}=Mt,Ne=zt(Mt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,Be.Z)(Ne,["suffixCls"]),{getPrefixCls:Re,layout:ve}=ee.useContext(Yt.E_),ie=Re("layout",de),[Se,Bn]=oe(ie),Ln=re()(ie,{[`${ie}-has-sider`]:typeof Vt=="boolean"?Vt:ne.length>0,[`${ie}-rtl`]:Ht==="rtl"},ve==null?void 0:ve.className,be,qt,Bn),Ye=ee.useMemo(()=>({siderHook:{addSider:Mn=>{ae(Wn=>[].concat((0,Ft.Z)(Wn),[Mn]))},removeSider:Mn=>{ae(Wn=>Wn.filter(fi=>fi!==Mn))}}}),[]);return Se(ee.createElement(Jt.Provider,{value:Ye},ee.createElement(Ge,Object.assign({ref:Ot,className:Ln,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),_e)},We),ze)))}),lt=Ct({tagName:"div",displayName:"Layout"})(tt),rt=Ct({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ut=Ct({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),ct=Ct({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var wt=lt},40875:function(ui,wn,bt){"use strict";bt.d(wn,{J:function(){return Yt}});var Ft=bt(59301),ce=bt(33234),re=bt(70425),Be=function(It,jt){var Xt={};for(var Pt in It)Object.prototype.hasOwnProperty.call(It,Pt)&&jt.indexOf(Pt)<0&&(Xt[Pt]=It[Pt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Pt=Object.getOwnPropertySymbols(It);oe<Pt.length;oe++)jt.indexOf(Pt[oe])<0&&Object.prototype.propertyIsEnumerable.call(It,Pt[oe])&&(Xt[Pt[oe]]=It[Pt[oe]]);return Xt};const ee=Ft.createContext(null),Yt=Ft.forwardRef((It,jt)=>{const{children:Xt}=It,Pt=Be(It,["children"]),oe=Ft.useContext(ee),zt=Ft.useMemo(()=>Object.assign(Object.assign({},oe),Pt),[oe,Pt.prefixCls,Pt.mode,Pt.selectable]);return Ft.createElement(ee.Provider,{value:zt},Ft.createElement(ce.BR,null,(0,re.supportNodeRef)(Xt)?Ft.cloneElement(Xt,{ref:jt}):Xt))});wn.Z=ee},20834:function(ui,wn,bt){"use strict";bt.d(wn,{default:function(){return Dt}});var Ft=bt(15285),ce=bt(59301),re=bt(45818),Be=bt(92310),ee=bt.n(Be),Yt=bt(36355),It=function(mt,ft){var pt={};for(var At in mt)Object.prototype.hasOwnProperty.call(mt,At)&&ft.indexOf(At)<0&&(pt[At]=mt[At]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,At=Object.getOwnPropertySymbols(mt);ue<At.length;ue++)ft.indexOf(At[ue])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[ue])&&(pt[At[ue]]=mt[At[ue]]);return pt},Xt=mt=>{const{prefixCls:ft,className:pt,dashed:At}=mt,ue=It(mt,["prefixCls","className","dashed"]),{getPrefixCls:we}=ce.useContext(Yt.E_),le=we("menu",ft),me=ee()({[`${le}-item-divider-dashed`]:!!At},pt);return ce.createElement(Ft.iz,Object.assign({className:me},ue))},Pt=bt(11592),oe=bt(2738),zt=bt(6848),Jt=bt(92343),et=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),lt=mt=>{var ft;const{className:pt,children:At,icon:ue,title:we,danger:le}=mt,{prefixCls:me,firstLevel:Ue,direction:ke,disableMenuItemTitleTooltip:Ie,inlineCollapsed:rn}=ce.useContext(et),Gn=Di=>{const cr=ce.createElement("span",{className:`${me}-title-content`},At);return(!ue||(0,Jt.l$)(At)&&At.type==="span")&&At&&Di&&Ue&&typeof At=="string"?ce.createElement("div",{className:`${me}-inline-collapsed-noicon`},At.charAt(0)):cr},{siderCollapsed:dn}=ce.useContext(re.D);let An=we;typeof we=="undefined"?An=Ue?At:"":we===!1&&(An="");const Dn={title:An};!dn&&!rn&&(Dn.title=null,Dn.open=!1);const qn=(0,Pt.Z)(At).length;let Rn=ce.createElement(Ft.ck,Object.assign({},(0,oe.Z)(mt,["title","icon","danger"]),{className:ee()({[`${me}-item-danger`]:le,[`${me}-item-only-child`]:(ue?qn+1:qn)===1},pt),title:typeof we=="string"?we:void 0}),(0,Jt.Tm)(ue,{className:ee()((0,Jt.l$)(ue)?(ft=ue.props)===null||ft===void 0?void 0:ft.className:"",`${me}-item-icon`)}),Gn(rn));return Ie||(Rn=ce.createElement(zt.Z,Object.assign({},Dn,{placement:ke==="rtl"?"left":"right",overlayClassName:`${me}-inline-collapsed-tooltip`}),Rn)),Rn},ut=mt=>{var ft;const{popupClassName:pt,icon:At,title:ue,theme:we}=mt,le=ce.useContext(et),{prefixCls:me,inlineCollapsed:Ue,theme:ke}=le,Ie=(0,Ft.Xl)();let rn;if(!At)rn=Ue&&!Ie.length&&ue&&typeof ue=="string"?ce.createElement("div",{className:`${me}-inline-collapsed-noicon`},ue.charAt(0)):ce.createElement("span",{className:`${me}-title-content`},ue);else{const dn=(0,Jt.l$)(ue)&&ue.type==="span";rn=ce.createElement(ce.Fragment,null,(0,Jt.Tm)(At,{className:ee()((0,Jt.l$)(At)?(ft=At.props)===null||ft===void 0?void 0:ft.className:"",`${me}-item-icon`)}),dn?ue:ce.createElement("span",{className:`${me}-title-content`},ue))}const Gn=ce.useMemo(()=>Object.assign(Object.assign({},le),{firstLevel:!1}),[le]);return ce.createElement(et.Provider,{value:Gn},ce.createElement(Ft.Wd,Object.assign({},(0,oe.Z)(mt,["icon"]),{title:rn,popupClassName:ee()(me,pt,`${me}-${we||ke}`)})))},ct=bt(18785),wt=bt(70425),Mt=bt(62892),Ot=bt(40875),Ht=function(mt,ft){var pt={};for(var At in mt)Object.prototype.hasOwnProperty.call(mt,At)&&ft.indexOf(At)<0&&(pt[At]=mt[At]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,At=Object.getOwnPropertySymbols(mt);ue<At.length;ue++)ft.indexOf(At[ue])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[ue])&&(pt[At[ue]]=mt[At[ue]]);return pt};function ne(mt){return(mt||[]).map((ft,pt)=>{if(ft&&typeof ft=="object"){const At=ft,{label:ue,children:we,key:le,type:me}=At,Ue=Ht(At,["label","children","key","type"]),ke=le!=null?le:`tmp-${pt}`;return we||me==="group"?me==="group"?ce.createElement(Ft.BW,Object.assign({key:ke},Ue,{title:ue}),ne(we)):ce.createElement(ut,Object.assign({key:ke},Ue,{title:ue}),ne(we)):me==="divider"?ce.createElement(Xt,Object.assign({key:ke},Ue)):ce.createElement(lt,Object.assign({key:ke},Ue),ue)}return null}).filter(ft=>ft)}function ae(mt){return ce.useMemo(()=>mt&&ne(mt),[mt])}var de=bt(64993),be=bt(17313),qt=bt(8378),ze=bt(13826),Vt=bt(29878),Ge=bt(83116),_e=bt(37613),We=mt=>{const{componentCls:ft,motionDurationSlow:pt,horizontalLineHeight:At,colorSplit:ue,lineWidth:we,lineType:le,itemPaddingInline:me}=mt;return{[`${ft}-horizontal`]:{lineHeight:At,border:0,borderBottom:`${we}px ${le} ${ue}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ft}-item, ${ft}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:me},[`> ${ft}-item:hover,
> ${ft}-item-active,
> ${ft}-submenu ${ft}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ft}-item, ${ft}-submenu-title`]:{transition:[`border-color ${pt}`,`background ${pt}`].join(",")},[`${ft}-submenu-arrow`]:{display:"none"}}}},ve=mt=>{let{componentCls:ft,menuArrowOffset:pt}=mt;return{[`${ft}-rtl`]:{direction:"rtl"},[`${ft}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ft}-rtl${ft}-vertical,
${ft}-submenu-rtl ${ft}-vertical`]:{[`${ft}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pt})`},"&::after":{transform:`rotate(45deg) translateY(${pt})`}}}}};const ie=mt=>Object.assign({},(0,be.oN)(mt));var Bn=(mt,ft)=>{const{componentCls:pt,itemColor:At,itemSelectedColor:ue,groupTitleColor:we,itemBg:le,subMenuItemBg:me,itemSelectedBg:Ue,activeBarHeight:ke,activeBarWidth:Ie,activeBarBorderWidth:rn,motionDurationSlow:Gn,motionEaseInOut:dn,motionEaseOut:An,itemPaddingInline:Dn,motionDurationMid:qn,itemHoverColor:Rn,lineType:Di,colorSplit:cr,itemDisabledColor:Ji,dangerItemColor:Sr,dangerItemHoverColor:Nr,dangerItemSelectedColor:co,dangerItemActiveBg:to,dangerItemSelectedBg:Kr,itemHoverBg:gr,itemActiveBg:Vr,menuSubMenuBg:pr,horizontalItemSelectedColor:zo,horizontalItemSelectedBg:es,horizontalItemBorderRadius:yo,horizontalItemHoverBg:ks,popupBg:ws}=mt;return{[`${pt}-${ft}, ${pt}-${ft} > ${pt}`]:{color:At,background:le,[`&${pt}-root:focus-visible`]:Object.assign({},ie(mt)),[`${pt}-item-group-title`]:{color:we},[`${pt}-submenu-selected`]:{[`> ${pt}-submenu-title`]:{color:ue}},[`${pt}-item-disabled, ${pt}-submenu-disabled`]:{color:`${Ji} !important`},[`${pt}-item:not(${pt}-item-selected):not(${pt}-submenu-selected)`]:{[`&:hover, > ${pt}-submenu-title:hover`]:{color:Rn}},[`&:not(${pt}-horizontal)`]:{[`${pt}-item:not(${pt}-item-selected)`]:{"&:hover":{backgroundColor:gr},"&:active":{backgroundColor:Vr}},[`${pt}-submenu-title`]:{"&:hover":{backgroundColor:gr},"&:active":{backgroundColor:Vr}}},[`${pt}-item-danger`]:{color:Sr,[`&${pt}-item:hover`]:{[`&:not(${pt}-item-selected):not(${pt}-submenu-selected)`]:{color:Nr}},[`&${pt}-item:active`]:{background:to}},[`${pt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pt}-item-selected`]:{color:ue,[`&${pt}-item-danger`]:{color:co},"a, a:hover":{color:"inherit"}},[`& ${pt}-item-selected`]:{backgroundColor:Ue,[`&${pt}-item-danger`]:{backgroundColor:Kr}},[`${pt}-item, ${pt}-submenu-title`]:{[`&:not(${pt}-item-disabled):focus-visible`]:Object.assign({},ie(mt))},[`&${pt}-submenu > ${pt}`]:{backgroundColor:pr},[`&${pt}-popup > ${pt}`]:{backgroundColor:ws},[`&${pt}-horizontal`]:Object.assign(Object.assign({},ft==="dark"?{borderBottom:0}:{}),{[`> ${pt}-item, > ${pt}-submenu`]:{top:rn,marginTop:-rn,marginBottom:0,borderRadius:yo,"&::after":{position:"absolute",insetInline:Dn,bottom:0,borderBottom:`${ke}px solid transparent`,transition:`border-color ${Gn} ${dn}`,content:'""'},"&:hover, &-active, &-open":{background:ks,"&::after":{borderBottomWidth:ke,borderBottomColor:zo}},"&-selected":{color:zo,backgroundColor:es,"&:hover":{backgroundColor:es},"&::after":{borderBottomWidth:ke,borderBottomColor:zo}}}}),[`&${pt}-root`]:{[`&${pt}-inline, &${pt}-vertical`]:{borderInlineEnd:`${rn}px ${Di} ${cr}`}},[`&${pt}-inline`]:{[`${pt}-sub${pt}-inline`]:{background:me},[`${pt}-item, ${pt}-submenu-title`]:rn&&Ie?{width:`calc(100% + ${rn}px)`}:{},[`${pt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ie}px solid ${ue}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qn} ${An}`,`opacity ${qn} ${An}`].join(","),content:'""'},[`&${pt}-item-danger`]:{"&::after":{borderInlineEndColor:co}}},[`${pt}-selected, ${pt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qn} ${dn}`,`opacity ${qn} ${dn}`].join(",")}}}}}};const Ln=mt=>{const{componentCls:ft,itemHeight:pt,itemMarginInline:At,padding:ue,menuArrowSize:we,marginXS:le,itemMarginBlock:me}=mt,Ue=ue+we+le;return{[`${ft}-item`]:{position:"relative",overflow:"hidden"},[`${ft}-item, ${ft}-submenu-title`]:{height:pt,lineHeight:`${pt}px`,paddingInline:ue,overflow:"hidden",textOverflow:"ellipsis",marginInline:At,marginBlock:me,width:`calc(100% - ${At*2}px)`},[`> ${ft}-item,
> ${ft}-submenu > ${ft}-submenu-title`]:{height:pt,lineHeight:`${pt}px`},[`${ft}-item-group-list ${ft}-submenu-title,
${ft}-submenu-title`]:{paddingInlineEnd:Ue}}};var Mn=mt=>{const{componentCls:ft,iconCls:pt,itemHeight:At,colorTextLightSolid:ue,dropdownWidth:we,controlHeightLG:le,motionDurationMid:me,motionEaseOut:Ue,paddingXL:ke,itemMarginInline:Ie,fontSizeLG:rn,motionDurationSlow:Gn,paddingXS:dn,boxShadowSecondary:An,collapsedWidth:Dn,collapsedIconSize:qn}=mt,Rn={height:At,lineHeight:`${At}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ft]:{"&-inline, &-vertical":Object.assign({[`&${ft}-root`]:{boxShadow:"none"}},Ln(mt))},[`${ft}-submenu-popup`]:{[`${ft}-vertical`]:Object.assign(Object.assign({},Ln(mt)),{boxShadow:An})}},{[`${ft}-submenu-popup ${ft}-vertical${ft}-sub`]:{minWidth:we,maxHeight:`calc(100vh - ${le*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ft}-inline`]:{width:"100%",[`&${ft}-root`]:{[`${ft}-item, ${ft}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Gn}`,`background ${Gn}`,`padding ${me} ${Ue}`].join(","),[`> ${ft}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ft}-sub${ft}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ft}-submenu > ${ft}-submenu-title`]:Rn,[`& ${ft}-item-group-title`]:{paddingInlineStart:ke}},[`${ft}-item`]:Rn}},{[`${ft}-inline-collapsed`]:{width:Dn,[`&${ft}-root`]:{[`${ft}-item, ${ft}-submenu ${ft}-submenu-title`]:{[`> ${ft}-inline-collapsed-noicon`]:{fontSize:rn,textAlign:"center"}}},[`> ${ft}-item,
> ${ft}-item-group > ${ft}-item-group-list > ${ft}-item,
> ${ft}-item-group > ${ft}-item-group-list > ${ft}-submenu > ${ft}-submenu-title,
> ${ft}-submenu > ${ft}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${rn/2}px - ${Ie}px)`,textOverflow:"clip",[`
${ft}-submenu-arrow,
${ft}-submenu-expand-icon
`]:{opacity:0},[`${ft}-item-icon, ${pt}`]:{margin:0,fontSize:qn,lineHeight:`${At}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ft}-item-icon, ${pt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ft}-item-icon, ${pt}`]:{display:"none"},"a, a:hover":{color:ue}},[`${ft}-item-group-title`]:Object.assign(Object.assign({},be.vS),{paddingInline:dn})}}]};const Wn=mt=>{const{componentCls:ft,motionDurationSlow:pt,motionDurationMid:At,motionEaseInOut:ue,motionEaseOut:we,iconCls:le,iconSize:me,iconMarginInlineEnd:Ue}=mt;return{[`${ft}-item, ${ft}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pt}`,`background ${pt}`,`padding ${pt} ${ue}`].join(","),[`${ft}-item-icon, ${le}`]:{minWidth:me,fontSize:me,transition:[`font-size ${At} ${we}`,`margin ${pt} ${ue}`,`color ${pt}`].join(","),"+ span":{marginInlineStart:Ue,opacity:1,transition:[`opacity ${pt} ${ue}`,`margin ${pt}`,`color ${pt}`].join(",")}},[`${ft}-item-icon`]:Object.assign({},(0,be.Ro)()),[`&${ft}-item-only-child`]:{[`> ${le}, > ${ft}-item-icon`]:{marginInlineEnd:0}}},[`${ft}-item-disabled, ${ft}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ft}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},fi=mt=>{const{componentCls:ft,motionDurationSlow:pt,motionEaseInOut:At,borderRadius:ue,menuArrowSize:we,menuArrowOffset:le}=mt;return{[`${ft}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:mt.margin,width:we,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pt} ${At}, opacity ${pt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:we*.6,height:we*.15,backgroundColor:"currentcolor",borderRadius:ue,transition:[`background ${pt} ${At}`,`transform ${pt} ${At}`,`top ${pt} ${At}`,`color ${pt} ${At}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${le})`},"&::after":{transform:`rotate(-45deg) translateY(${le})`}}}}},Hn=mt=>{const{antCls:ft,componentCls:pt,fontSize:At,motionDurationSlow:ue,motionDurationMid:we,motionEaseInOut:le,paddingXS:me,padding:Ue,colorSplit:ke,lineWidth:Ie,zIndexPopup:rn,borderRadiusLG:Gn,subMenuItemBorderRadius:dn,menuArrowSize:An,menuArrowOffset:Dn,lineType:qn,menuPanelMaskInset:Rn,groupTitleLineHeight:Di,groupTitleFontSize:cr}=mt;return[{"":{[`${pt}`]:Object.assign(Object.assign({},(0,be.dF)()),{"&-hidden":{display:"none"}})},[`${pt}-submenu-hidden`]:{display:"none"}},{[pt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(mt)),(0,be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:At,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ue} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pt}-item`]:{flex:"none"}},[`${pt}-item, ${pt}-submenu, ${pt}-submenu-title`]:{borderRadius:mt.itemBorderRadius},[`${pt}-item-group-title`]:{padding:`${me}px ${Ue}px`,fontSize:cr,lineHeight:Di,transition:`all ${ue}`},[`&-horizontal ${pt}-submenu`]:{transition:[`border-color ${ue} ${le}`,`background ${ue} ${le}`].join(",")},[`${pt}-submenu, ${pt}-submenu-inline`]:{transition:[`border-color ${ue} ${le}`,`background ${ue} ${le}`,`padding ${we} ${le}`].join(",")},[`${pt}-submenu ${pt}-sub`]:{cursor:"initial",transition:[`background ${ue} ${le}`,`padding ${ue} ${le}`].join(",")},[`${pt}-title-content`]:{transition:`color ${ue}`},[`${pt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ke,borderStyle:qn,borderWidth:0,borderTopWidth:Ie,marginBlock:Ie,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Wn(mt)),{[`${pt}-item-group`]:{[`${pt}-item-group-list`]:{margin:0,padding:0,[`${pt}-item, ${pt}-submenu-title`]:{paddingInline:`${At*2}px ${Ue}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:rn,borderRadius:Gn,boxShadow:"none",transformOrigin:"0 0",[`&${pt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Rn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Rn},"\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:mt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:mt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:mt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:mt.paddingXS},[`> ${pt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Gn},Wn(mt)),fi(mt)),{[`${pt}-item, ${pt}-submenu > ${pt}-submenu-title`]:{borderRadius:dn},[`${pt}-submenu-title::after`]:{transition:`transform ${ue} ${le}`}})}}),fi(mt)),{[`&-inline-collapsed ${pt}-submenu-arrow,
&-inline ${pt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Dn})`},"&::after":{transform:`rotate(45deg) translateX(-${Dn})`}},[`${pt}-submenu-open${pt}-submenu-inline > ${pt}-submenu-title > ${pt}-submenu-arrow`]:{transform:`translateY(-${An*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Dn})`},"&::before":{transform:`rotate(45deg) translateX(${Dn})`}}})},{[`${ft}-layout-header`]:{[pt]:{lineHeight:"inherit"}}}]};var xi=(mt,ft)=>(0,Ge.Z)("Menu",At=>{if(ft===!1)return[];const{colorBgElevated:ue,colorPrimary:we,colorTextLightSolid:le,controlHeightLG:me,fontSize:Ue,darkItemColor:ke,darkDangerItemColor:Ie,darkItemBg:rn,darkSubMenuItemBg:Gn,darkItemSelectedColor:dn,darkItemSelectedBg:An,darkDangerItemSelectedBg:Dn,darkItemHoverBg:qn,darkGroupTitleColor:Rn,darkItemHoverColor:Di,darkItemDisabledColor:cr,darkDangerItemHoverColor:Ji,darkDangerItemSelectedColor:Sr,darkDangerItemActiveBg:Nr}=At,co=Ue/7*5,to=(0,_e.TS)(At,{menuArrowSize:co,menuHorizontalHeight:me*1.15,menuArrowOffset:`${co*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ue}),Kr=(0,_e.TS)(to,{itemColor:ke,itemHoverColor:Di,groupTitleColor:Rn,itemSelectedColor:dn,itemBg:rn,popupBg:rn,subMenuItemBg:Gn,itemActiveBg:"transparent",itemSelectedBg:An,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:qn,itemDisabledColor:cr,dangerItemColor:Ie,dangerItemHoverColor:Ji,dangerItemSelectedColor:Sr,dangerItemActiveBg:Nr,dangerItemSelectedBg:Dn,menuSubMenuBg:Gn,horizontalItemSelectedColor:le,horizontalItemSelectedBg:we});return[Hn(to),We(to),Mn(to),Bn(to,"light"),Bn(Kr,"dark"),ve(to),(0,qt.Z)(to),(0,ze.oN)(to,"slide-up"),(0,ze.oN)(to,"slide-down"),(0,Vt._y)(to,"zoom-big")]},At=>{const{colorPrimary:ue,colorError:we,colorTextDisabled:le,colorErrorBg:me,colorText:Ue,colorTextDescription:ke,colorBgContainer:Ie,colorFillAlter:rn,colorFillContent:Gn,lineWidth:dn,lineWidthBold:An,controlItemBgActive:Dn,colorBgTextHover:qn,controlHeightLG:Rn,lineHeight:Di,colorBgElevated:cr,marginXXS:Ji,padding:Sr,fontSize:Nr,controlHeightSM:co,fontSizeLG:to,colorTextLightSolid:Kr,colorErrorHover:gr}=At,Vr=new de.C(Kr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:At.zIndexPopupBase+50,radiusItem:At.borderRadiusLG,itemBorderRadius:At.borderRadiusLG,radiusSubMenuItem:At.borderRadiusSM,subMenuItemBorderRadius:At.borderRadiusSM,colorItemText:Ue,itemColor:Ue,colorItemTextHover:Ue,itemHoverColor:Ue,colorItemTextHoverHorizontal:ue,horizontalItemHoverColor:ue,colorGroupTitle:ke,groupTitleColor:ke,colorItemTextSelected:ue,itemSelectedColor:ue,colorItemTextSelectedHorizontal:ue,horizontalItemSelectedColor:ue,colorItemBg:Ie,itemBg:Ie,colorItemBgHover:qn,itemHoverBg:qn,colorItemBgActive:Gn,itemActiveBg:Dn,colorSubItemBg:rn,subMenuItemBg:rn,colorItemBgSelected:Dn,itemSelectedBg:Dn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:An,activeBarHeight:An,colorActiveBarBorderSize:dn,activeBarBorderWidth:dn,colorItemTextDisabled:le,itemDisabledColor:le,colorDangerItemText:we,dangerItemColor:we,colorDangerItemTextHover:we,dangerItemHoverColor:we,colorDangerItemTextSelected:we,dangerItemSelectedColor:we,colorDangerItemBgActive:me,dangerItemActiveBg:me,colorDangerItemBgSelected:me,dangerItemSelectedBg:me,itemMarginInline:At.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Rn,groupTitleLineHeight:Di,collapsedWidth:Rn*2,popupBg:cr,itemMarginBlock:Ji,itemPaddingInline:Sr,horizontalLineHeight:`${Rn*1.15}px`,iconSize:Nr,iconMarginInlineEnd:co-Nr,collapsedIconSize:to,groupTitleFontSize:Nr,darkItemDisabledColor:new de.C(Kr).setAlpha(.25).toRgbString(),darkItemColor:Vr,darkDangerItemColor:we,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kr,darkItemSelectedBg:ue,darkDangerItemSelectedBg:we,darkItemHoverBg:"transparent",darkGroupTitleColor:Vr,darkItemHoverColor:Kr,darkDangerItemHoverColor:gr,darkDangerItemSelectedColor:Kr,darkDangerItemActiveBg:we}},{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"]]})(mt),nn=function(mt,ft){var pt={};for(var At in mt)Object.prototype.hasOwnProperty.call(mt,At)&&ft.indexOf(At)<0&&(pt[At]=mt[At]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,At=Object.getOwnPropertySymbols(mt);ue<At.length;ue++)ft.indexOf(At[ue])<0&&Object.prototype.propertyIsEnumerable.call(mt,At[ue])&&(pt[At[ue]]=mt[At[ue]]);return pt},ki=(0,ce.forwardRef)((mt,ft)=>{var pt,At;const ue=ce.useContext(Ot.Z),we=ue||{},{getPrefixCls:le,getPopupContainer:me,direction:Ue,menu:ke}=ce.useContext(Yt.E_),Ie=le(),{prefixCls:rn,className:Gn,style:dn,theme:An="light",expandIcon:Dn,_internalDisableMenuItemTitleTooltip:qn,inlineCollapsed:Rn,siderCollapsed:Di,items:cr,children:Ji,rootClassName:Sr,mode:Nr,selectable:co,onClick:to,overflowedIndicatorPopupClassName:Kr}=mt,gr=nn(mt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vr=(0,oe.Z)(gr,["collapsedWidth"]),pr=ae(cr)||Ji;(pt=we.validator)===null||pt===void 0||pt.call(we,{mode:Nr});const zo=(0,wt.useEvent)(function(){var oa;to==null||to.apply(void 0,arguments),(oa=we.onClick)===null||oa===void 0||oa.call(we)}),es=we.mode||Nr,yo=co!=null?co:we.selectable,ks=ce.useMemo(()=>Di!==void 0?Di:Rn,[Rn,Di]),ws={horizontal:{motionName:`${Ie}-slide-up`},inline:(0,Mt.Z)(Ie),other:{motionName:`${Ie}-zoom-big`}},Wt=le("menu",rn||we.prefixCls),[xs,Ss]=xi(Wt,!ue),Ms=ee()(`${Wt}-${An}`,ke==null?void 0:ke.className,Gn);let ma;if(typeof Dn=="function")ma=Dn;else if(Dn===null||Dn===!1)ma=null;else if(we.expandIcon===null||we.expandIcon===!1)ma=null;else{const oa=Dn!=null?Dn:we.expandIcon;ma=(0,Jt.Tm)(oa,{className:ee()(`${Wt}-submenu-expand-icon`,(0,Jt.l$)(oa)?(At=oa.props)===null||At===void 0?void 0:At.className:"")})}const Ea=ce.useMemo(()=>({prefixCls:Wt,inlineCollapsed:ks||!1,direction:Ue,firstLevel:!0,theme:An,mode:es,disableMenuItemTitleTooltip:qn}),[Wt,ks,Ue,qn,An]);return xs(ce.createElement(Ot.Z.Provider,{value:null},ce.createElement(et.Provider,{value:Ea},ce.createElement(Ft.ZP,Object.assign({getPopupContainer:me,overflowedIndicator:ce.createElement(ct.Z,null),overflowedIndicatorPopupClassName:ee()(Wt,`${Wt}-${An}`,Kr),mode:es,selectable:yo,onClick:zo},Vr,{inlineCollapsed:ks,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),dn),className:Ms,prefixCls:Wt,direction:Ue,defaultMotions:ws,expandIcon:ma,ref:ft,rootClassName:ee()(Sr,Ss)}),pr))))});const Nt=(0,ce.forwardRef)((mt,ft)=>{const pt=(0,ce.useRef)(null),At=ce.useContext(re.D);return(0,ce.useImperativeHandle)(ft,()=>({menu:pt.current,focus:ue=>{var we;(we=pt.current)===null||we===void 0||we.focus(ue)}})),ce.createElement(ki,Object.assign({ref:pt},mt,At))});Nt.Item=lt,Nt.SubMenu=ut,Nt.Divider=Xt,Nt.ItemGroup=Ft.BW;var Dt=Nt},58421:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return we}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(me,Ue){return ce.createElement(ee.Z,(0,Ft.Z)({},me,{ref:Ue,icon:Be}))},It=ce.forwardRef(Yt),jt=It,Xt=bt(49198),Pt=bt(33853),oe=bt(38819),zt=bt(92310),Jt=bt.n(zt),Ct=bt(49618),et=bt(77321),tt=bt(96949),lt=bt(55090),rt=bt(77205),ut=bt(38793),ct=bt(26112),wt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Mt=wt,Ot=bt(91735),Ht=function(le){(0,rt.Z)(Ue,le);var me=(0,ut.Z)(Ue);function Ue(){var ke;(0,tt.Z)(this,Ue);for(var Ie=arguments.length,rn=new Array(Ie),Gn=0;Gn<Ie;Gn++)rn[Gn]=arguments[Gn];return ke=me.call.apply(me,[this].concat(rn)),ke.state={goInputText:""},ke.getValidValue=function(){var dn=ke.state.goInputText;return!dn||Number.isNaN(dn)?void 0:Number(dn)},ke.buildOptionText=function(dn){return"".concat(dn," ").concat(ke.props.locale.items_per_page)},ke.changeSize=function(dn){ke.props.changeSize(Number(dn))},ke.handleChange=function(dn){ke.setState({goInputText:dn.target.value})},ke.handleBlur=function(dn){var An=ke.props,Dn=An.goButton,qn=An.quickGo,Rn=An.rootPrefixCls,Di=ke.state.goInputText;Dn||Di===""||(ke.setState({goInputText:""}),!(dn.relatedTarget&&(dn.relatedTarget.className.indexOf("".concat(Rn,"-item-link"))>=0||dn.relatedTarget.className.indexOf("".concat(Rn,"-item"))>=0))&&qn(ke.getValidValue()))},ke.go=function(dn){var An=ke.state.goInputText;An!==""&&(dn.keyCode===Mt.ENTER||dn.type==="click")&&(ke.setState({goInputText:""}),ke.props.quickGo(ke.getValidValue()))},ke}return(0,lt.Z)(Ue,[{key:"getPageSizeOptions",value:function(){var Ie=this.props,rn=Ie.pageSize,Gn=Ie.pageSizeOptions;return Gn.some(function(dn){return dn.toString()===rn.toString()})?Gn:Gn.concat([rn.toString()]).sort(function(dn,An){var Dn=Number.isNaN(Number(dn))?0:Number(dn),qn=Number.isNaN(Number(An))?0:Number(An);return Dn-qn})}},{key:"render",value:function(){var Ie=this,rn=this.props,Gn=rn.pageSize,dn=rn.locale,An=rn.rootPrefixCls,Dn=rn.changeSize,qn=rn.quickGo,Rn=rn.goButton,Di=rn.selectComponentClass,cr=rn.buildOptionText,Ji=rn.selectPrefixCls,Sr=rn.disabled,Nr=this.state.goInputText,co="".concat(An,"-options"),to=Di,Kr=null,gr=null,Vr=null;if(!Dn&&!qn)return null;var pr=this.getPageSizeOptions();if(Dn&&to){var zo=pr.map(function(es,yo){return ce.createElement(to.Option,{key:yo,value:es.toString()},(cr||Ie.buildOptionText)(es))});Kr=ce.createElement(to,{disabled:Sr,prefixCls:Ji,showSearch:!1,className:"".concat(co,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Gn||pr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(yo){return yo.parentNode},"aria-label":dn.page_size,defaultOpen:!1},zo)}return qn&&(Rn&&(Vr=typeof Rn=="boolean"?ce.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Sr,className:"".concat(co,"-quick-jumper-button")},dn.jump_to_confirm):ce.createElement("span",{onClick:this.go,onKeyUp:this.go},Rn)),gr=ce.createElement("div",{className:"".concat(co,"-quick-jumper")},dn.jump_to,ce.createElement("input",{disabled:Sr,type:"text",value:Nr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":dn.page}),dn.page,Vr)),ce.createElement("li",{className:"".concat(co)},Kr,gr)}}]),Ue}(ce.Component);Ht.defaultProps={pageSizeOptions:["10","20","50","100"]};var ne=Ht,ae=function(me){var Ue,ke=me.rootPrefixCls,Ie=me.page,rn=me.active,Gn=me.className,dn=me.showTitle,An=me.onClick,Dn=me.onKeyPress,qn=me.itemRender,Rn="".concat(ke,"-item"),Di=Jt()(Rn,"".concat(Rn,"-").concat(Ie),(Ue={},(0,Ct.Z)(Ue,"".concat(Rn,"-active"),rn),(0,Ct.Z)(Ue,"".concat(Rn,"-disabled"),!Ie),(0,Ct.Z)(Ue,me.className,Gn),Ue)),cr=function(){An(Ie)},Ji=function(co){Dn(co,An,Ie)},Sr=qn(Ie,"page",ce.createElement("a",{rel:"nofollow"},Ie));return Sr?ce.createElement("li",{title:dn?Ie.toString():null,className:Di,onClick:cr,onKeyPress:Ji,tabIndex:0},Sr):null},de=ae;function be(){}function qt(le){var me=Number(le);return typeof me=="number"&&!Number.isNaN(me)&&isFinite(me)&&Math.floor(me)===me}var ze=function(me,Ue,ke){return ke};function Vt(le,me,Ue){var ke=typeof le=="undefined"?me.pageSize:le;return Math.floor((Ue.total-1)/ke)+1}var Ge=function(le){(0,rt.Z)(Ue,le);var me=(0,ut.Z)(Ue);function Ue(ke){var Ie;(0,tt.Z)(this,Ue),Ie=me.call(this,ke),Ie.paginationNode=ce.createRef(),Ie.getJumpPrevPage=function(){return Math.max(1,Ie.state.current-(Ie.props.showLessItems?3:5))},Ie.getJumpNextPage=function(){return Math.min(Vt(void 0,Ie.state,Ie.props),Ie.state.current+(Ie.props.showLessItems?3:5))},Ie.getItemIcon=function(Dn,qn){var Rn=Ie.props.prefixCls,Di=Dn||ce.createElement("button",{type:"button","aria-label":qn,className:"".concat(Rn,"-item-link")});return typeof Dn=="function"&&(Di=ce.createElement(Dn,(0,et.Z)({},Ie.props))),Di},Ie.isValid=function(Dn){var qn=Ie.props.total;return qt(Dn)&&Dn!==Ie.state.current&&qt(qn)&&qn>0},Ie.shouldDisplayQuickJumper=function(){var Dn=Ie.props,qn=Dn.showQuickJumper,Rn=Dn.total,Di=Ie.state.pageSize;return Rn<=Di?!1:qn},Ie.handleKeyDown=function(Dn){(Dn.keyCode===Mt.ARROW_UP||Dn.keyCode===Mt.ARROW_DOWN)&&Dn.preventDefault()},Ie.handleKeyUp=function(Dn){var qn=Ie.getValidValue(Dn),Rn=Ie.state.currentInputValue;qn!==Rn&&Ie.setState({currentInputValue:qn}),Dn.keyCode===Mt.ENTER?Ie.handleChange(qn):Dn.keyCode===Mt.ARROW_UP?Ie.handleChange(qn-1):Dn.keyCode===Mt.ARROW_DOWN&&Ie.handleChange(qn+1)},Ie.handleBlur=function(Dn){var qn=Ie.getValidValue(Dn);Ie.handleChange(qn)},Ie.changePageSize=function(Dn){var qn=Ie.state.current,Rn=Vt(Dn,Ie.state,Ie.props);qn=qn>Rn?Rn:qn,Rn===0&&(qn=Ie.state.current),typeof Dn=="number"&&("pageSize"in Ie.props||Ie.setState({pageSize:Dn}),"current"in Ie.props||Ie.setState({current:qn,currentInputValue:qn})),Ie.props.onShowSizeChange(qn,Dn),"onChange"in Ie.props&&Ie.props.onChange&&Ie.props.onChange(qn,Dn)},Ie.handleChange=function(Dn){var qn=Ie.props,Rn=qn.disabled,Di=qn.onChange,cr=Ie.state,Ji=cr.pageSize,Sr=cr.current,Nr=cr.currentInputValue;if(Ie.isValid(Dn)&&!Rn){var co=Vt(void 0,Ie.state,Ie.props),to=Dn;return Dn>co?to=co:Dn<1&&(to=1),"current"in Ie.props||Ie.setState({current:to}),to!==Nr&&Ie.setState({currentInputValue:to}),Di(to,Ji),to}return Sr},Ie.prev=function(){Ie.hasPrev()&&Ie.handleChange(Ie.state.current-1)},Ie.next=function(){Ie.hasNext()&&Ie.handleChange(Ie.state.current+1)},Ie.jumpPrev=function(){Ie.handleChange(Ie.getJumpPrevPage())},Ie.jumpNext=function(){Ie.handleChange(Ie.getJumpNextPage())},Ie.hasPrev=function(){return Ie.state.current>1},Ie.hasNext=function(){return Ie.state.current<Vt(void 0,Ie.state,Ie.props)},Ie.runIfEnter=function(Dn,qn){if(Dn.key==="Enter"||Dn.charCode===13){for(var Rn=arguments.length,Di=new Array(Rn>2?Rn-2:0),cr=2;cr<Rn;cr++)Di[cr-2]=arguments[cr];qn.apply(void 0,Di)}},Ie.runIfEnterPrev=function(Dn){Ie.runIfEnter(Dn,Ie.prev)},Ie.runIfEnterNext=function(Dn){Ie.runIfEnter(Dn,Ie.next)},Ie.runIfEnterJumpPrev=function(Dn){Ie.runIfEnter(Dn,Ie.jumpPrev)},Ie.runIfEnterJumpNext=function(Dn){Ie.runIfEnter(Dn,Ie.jumpNext)},Ie.handleGoTO=function(Dn){(Dn.keyCode===Mt.ENTER||Dn.type==="click")&&Ie.handleChange(Ie.state.currentInputValue)},Ie.renderPrev=function(Dn){var qn=Ie.props,Rn=qn.prevIcon,Di=qn.itemRender,cr=Di(Dn,"prev",Ie.getItemIcon(Rn,"prev page")),Ji=!Ie.hasPrev();return(0,ce.isValidElement)(cr)?(0,ce.cloneElement)(cr,{disabled:Ji}):cr},Ie.renderNext=function(Dn){var qn=Ie.props,Rn=qn.nextIcon,Di=qn.itemRender,cr=Di(Dn,"next",Ie.getItemIcon(Rn,"next page")),Ji=!Ie.hasNext();return(0,ce.isValidElement)(cr)?(0,ce.cloneElement)(cr,{disabled:Ji}):cr};var rn=ke.onChange!==be,Gn="current"in ke;Gn&&!rn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var dn=ke.defaultCurrent;"current"in ke&&(dn=ke.current);var An=ke.defaultPageSize;return"pageSize"in ke&&(An=ke.pageSize),dn=Math.min(dn,Vt(An,void 0,ke)),Ie.state={current:dn,currentInputValue:dn,pageSize:An},Ie}return(0,lt.Z)(Ue,[{key:"componentDidUpdate",value:function(Ie,rn){var Gn=this.props.prefixCls;if(rn.current!==this.state.current&&this.paginationNode.current){var dn=this.paginationNode.current.querySelector(".".concat(Gn,"-item-").concat(rn.current));if(dn&&document.activeElement===dn){var An;dn==null||(An=dn.blur)===null||An===void 0||An.call(dn)}}}},{key:"getValidValue",value:function(Ie){var rn=Ie.target.value,Gn=Vt(void 0,this.state,this.props),dn=this.state.currentInputValue,An;return rn===""?An=rn:Number.isNaN(Number(rn))?An=dn:rn>=Gn?An=Gn:An=Number(rn),An}},{key:"getShowSizeChanger",value:function(){var Ie=this.props,rn=Ie.showSizeChanger,Gn=Ie.total,dn=Ie.totalBoundaryShowSizeChanger;return typeof rn!="undefined"?rn:Gn>dn}},{key:"render",value:function(){var Ie=this.props,rn=Ie.prefixCls,Gn=Ie.className,dn=Ie.style,An=Ie.disabled,Dn=Ie.hideOnSinglePage,qn=Ie.total,Rn=Ie.locale,Di=Ie.showQuickJumper,cr=Ie.showLessItems,Ji=Ie.showTitle,Sr=Ie.showTotal,Nr=Ie.simple,co=Ie.itemRender,to=Ie.showPrevNextJumpers,Kr=Ie.jumpPrevIcon,gr=Ie.jumpNextIcon,Vr=Ie.selectComponentClass,pr=Ie.selectPrefixCls,zo=Ie.pageSizeOptions,es=this.state,yo=es.current,ks=es.pageSize,ws=es.currentInputValue;if(Dn===!0&&qn<=ks)return null;var Wt=Vt(void 0,this.state,this.props),xs=[],Ss=null,Ms=null,ma=null,Ea=null,oa=null,so=Di&&Di.goButton,br=cr?1:2,kn=yo-1>0?yo-1:0,In=yo+1<Wt?yo+1:Wt,Oe=(0,ct.Z)(this.props,{aria:!0,data:!0}),hi=Sr&&ce.createElement("li",{className:"".concat(rn,"-total-text")},Sr(qn,[qn===0?0:(yo-1)*ks+1,yo*ks>qn?qn:yo*ks]));if(Nr){so&&(typeof so=="boolean"?oa=ce.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Rn.jump_to_confirm):oa=ce.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},so),oa=ce.createElement("li",{title:Ji?"".concat(Rn.jump_to).concat(yo,"/").concat(Wt):null,className:"".concat(rn,"-simple-pager")},oa));var Je=this.renderPrev(kn);return ce.createElement("ul",(0,Ft.Z)({className:Jt()(rn,"".concat(rn,"-simple"),(0,Ct.Z)({},"".concat(rn,"-disabled"),An),Gn),style:dn,ref:this.paginationNode},Oe),hi,Je?ce.createElement("li",{title:Ji?Rn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Jt()("".concat(rn,"-prev"),(0,Ct.Z)({},"".concat(rn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Je):null,ce.createElement("li",{title:Ji?"".concat(yo,"/").concat(Wt):null,className:"".concat(rn,"-simple-pager")},ce.createElement("input",{type:"text",value:ws,disabled:An,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ce.createElement("span",{className:"".concat(rn,"-slash")},"/"),Wt),ce.createElement("li",{title:Ji?Rn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Jt()("".concat(rn,"-next"),(0,Ct.Z)({},"".concat(rn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(In)),oa)}if(Wt<=3+br*2){var fn={locale:Rn,rootPrefixCls:rn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ji,itemRender:co};Wt||xs.push(ce.createElement(de,(0,Ft.Z)({},fn,{key:"noPager",page:1,className:"".concat(rn,"-item-disabled")})));for(var Ke=1;Ke<=Wt;Ke+=1){var ni=yo===Ke;xs.push(ce.createElement(de,(0,Ft.Z)({},fn,{key:Ke,page:Ke,active:ni})))}}else{var Ci=cr?Rn.prev_3:Rn.prev_5,_i=cr?Rn.next_3:Rn.next_5,qi=co(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Kr,"prev page")),on=co(this.getJumpNextPage(),"jump-next",this.getItemIcon(gr,"next page"));to&&(Ss=qi?ce.createElement("li",{title:Ji?Ci:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Jt()("".concat(rn,"-jump-prev"),(0,Ct.Z)({},"".concat(rn,"-jump-prev-custom-icon"),!!Kr))},qi):null,Ms=on?ce.createElement("li",{title:Ji?_i:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Jt()("".concat(rn,"-jump-next"),(0,Ct.Z)({},"".concat(rn,"-jump-next-custom-icon"),!!gr))},on):null),Ea=ce.createElement(de,{locale:Rn,last:!0,rootPrefixCls:rn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Wt,page:Wt,active:!1,showTitle:Ji,itemRender:co}),ma=ce.createElement(de,{locale:Rn,rootPrefixCls:rn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ji,itemRender:co});var di=Math.max(1,yo-br),Vi=Math.min(yo+br,Wt);yo-1<=br&&(Vi=1+br*2),Wt-yo<=br&&(di=Wt-br*2);for(var kr=di;kr<=Vi;kr+=1){var ii=yo===kr;xs.push(ce.createElement(de,{locale:Rn,rootPrefixCls:rn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:kr,page:kr,active:ii,showTitle:Ji,itemRender:co}))}yo-1>=br*2&&yo!==3&&(xs[0]=(0,ce.cloneElement)(xs[0],{className:"".concat(rn,"-item-after-jump-prev")}),xs.unshift(Ss)),Wt-yo>=br*2&&yo!==Wt-2&&(xs[xs.length-1]=(0,ce.cloneElement)(xs[xs.length-1],{className:"".concat(rn,"-item-before-jump-next")}),xs.push(Ms)),di!==1&&xs.unshift(ma),Vi!==Wt&&xs.push(Ea)}var wi=!this.hasPrev()||!Wt,dr=!this.hasNext()||!Wt,pi=this.renderPrev(kn),yi=this.renderNext(In);return ce.createElement("ul",(0,Ft.Z)({className:Jt()(rn,Gn,(0,Ct.Z)({},"".concat(rn,"-disabled"),An)),style:dn,ref:this.paginationNode},Oe),hi,pi?ce.createElement("li",{title:Ji?Rn.prev_page:null,onClick:this.prev,tabIndex:wi?null:0,onKeyPress:this.runIfEnterPrev,className:Jt()("".concat(rn,"-prev"),(0,Ct.Z)({},"".concat(rn,"-disabled"),wi)),"aria-disabled":wi},pi):null,xs,yi?ce.createElement("li",{title:Ji?Rn.next_page:null,onClick:this.next,tabIndex:dr?null:0,onKeyPress:this.runIfEnterNext,className:Jt()("".concat(rn,"-next"),(0,Ct.Z)({},"".concat(rn,"-disabled"),dr)),"aria-disabled":dr},yi):null,ce.createElement(ne,{disabled:An,locale:Rn,rootPrefixCls:rn,selectComponentClass:Vr,selectPrefixCls:pr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:yo,pageSize:ks,pageSizeOptions:zo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:so}))}}],[{key:"getDerivedStateFromProps",value:function(Ie,rn){var Gn={};if("current"in Ie&&(Gn.current=Ie.current,Ie.current!==rn.current&&(Gn.currentInputValue=Gn.current)),"pageSize"in Ie&&Ie.pageSize!==rn.pageSize){var dn=rn.current,An=Vt(Ie.pageSize,rn,Ie);dn=dn>An?An:dn,"current"in Ie||(Gn.current=dn,Gn.currentInputValue=dn),Gn.pageSize=Ie.pageSize}return Gn}}]),Ue}(ce.Component);Ge.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:be,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:be,locale:Ot.Z,style:{},itemRender:ze,totalBoundaryShowSizeChanger:50};var _e=Ge,Ne=bt(22075),We=bt(36355),Re=bt(19716),ve=bt(8628),ie=bt(9763),Se=bt(57809);const Bn=le=>ce.createElement(Se.default,Object.assign({},le,{showSearch:!0,size:"small"})),Ln=le=>ce.createElement(Se.default,Object.assign({},le,{showSearch:!0,size:"middle"}));Bn.Option=Se.default.Option,Ln.Option=Se.default.Option;var Ye=bt(9937),Mn=bt(17313),Wn=bt(83116),fi=bt(37613);const Hn=le=>{const{componentCls:me}=le;return{[`${me}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${me}-item-link`]:{color:le.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${me}-item-link`]:{color:le.colorTextDisabled,cursor:"not-allowed"}}},[`&${me}-disabled`]:{cursor:"not-allowed",[`${me}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:le.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:le.colorBorder,backgroundColor:le.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:le.itemActiveBgDisabled},a:{color:le.itemActiveColorDisabled}}},[`${me}-item-link`]:{color:le.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${me}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${me}-simple-pager`]:{color:le.colorTextDisabled},[`${me}-jump-prev, ${me}-jump-next`]:{[`${me}-item-link-icon`]:{opacity:0},[`${me}-item-ellipsis`]:{opacity:1}}},[`&${me}-simple`]:{[`${me}-prev, ${me}-next`]:{[`&${me}-disabled ${me}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},xi=le=>{const{componentCls:me}=le;return{[`&${me}-mini ${me}-total-text, &${me}-mini ${me}-simple-pager`]:{height:le.itemSizeSM,lineHeight:`${le.itemSizeSM}px`},[`&${me}-mini ${me}-item`]:{minWidth:le.itemSizeSM,height:le.itemSizeSM,margin:0,lineHeight:`${le.itemSizeSM-2}px`},[`&${me}-mini:not(${me}-disabled) ${me}-item:not(${me}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:le.colorBgTextHover},"&:active":{backgroundColor:le.colorBgTextActive}},[`&${me}-mini ${me}-prev, &${me}-mini ${me}-next`]:{minWidth:le.itemSizeSM,height:le.itemSizeSM,margin:0,lineHeight:`${le.itemSizeSM}px`},[`&${me}-mini:not(${me}-disabled)`]:{[`${me}-prev, ${me}-next`]:{[`&:hover ${me}-item-link`]:{backgroundColor:le.colorBgTextHover},[`&:active ${me}-item-link`]:{backgroundColor:le.colorBgTextActive},[`&${me}-disabled:hover ${me}-item-link`]:{backgroundColor:"transparent"}}},[`
&${me}-mini ${me}-prev ${me}-item-link,
&${me}-mini ${me}-next ${me}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:le.itemSizeSM,lineHeight:`${le.itemSizeSM}px`}},[`&${me}-mini ${me}-jump-prev, &${me}-mini ${me}-jump-next`]:{height:le.itemSizeSM,marginInlineEnd:0,lineHeight:`${le.itemSizeSM}px`},[`&${me}-mini ${me}-options`]:{marginInlineStart:le.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:le.miniOptionsSizeChangerTop},"&-quick-jumper":{height:le.itemSizeSM,lineHeight:`${le.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ye.x0)(le)),{width:le.paginationMiniQuickJumperInputWidth,height:le.controlHeightSM})}}}},nn=le=>{const{componentCls:me}=le;return{[`
&${me}-simple ${me}-prev,
&${me}-simple ${me}-next
`]:{height:le.itemSizeSM,lineHeight:`${le.itemSizeSM}px`,verticalAlign:"top",[`${me}-item-link`]:{height:le.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:le.colorBgTextHover},"&:active":{backgroundColor:le.colorBgTextActive},"&::after":{height:le.itemSizeSM,lineHeight:`${le.itemSizeSM}px`}}},[`&${me}-simple ${me}-simple-pager`]:{display:"inline-block",height:le.itemSizeSM,marginInlineEnd:le.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:le.marginXS,padding:`0 ${le.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:le.itemInputBg,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadius,outline:"none",transition:`border-color ${le.motionDurationMid}`,color:"inherit","&:hover":{borderColor:le.colorPrimary},"&:focus":{borderColor:le.colorPrimaryHover,boxShadow:`${le.inputOutlineOffset}px 0 ${le.controlOutlineWidth}px ${le.controlOutline}`},"&[disabled]":{color:le.colorTextDisabled,backgroundColor:le.colorBgContainerDisabled,borderColor:le.colorBorder,cursor:"not-allowed"}}}}},Fi=le=>{const{componentCls:me}=le;return{[`${me}-jump-prev, ${me}-jump-next`]:{outline:0,[`${me}-item-container`]:{position:"relative",[`${me}-item-link-icon`]:{color:le.colorPrimary,fontSize:le.fontSizeSM,opacity:0,transition:`all ${le.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${me}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:le.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:le.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:le.paginationEllipsisTextIndent,opacity:1,transition:`all ${le.motionDurationMid}`}},"&:hover":{[`${me}-item-link-icon`]:{opacity:1},[`${me}-item-ellipsis`]:{opacity:0}}},[`
${me}-prev,
${me}-jump-prev,
${me}-jump-next
`]:{marginInlineEnd:le.marginXS},[`
${me}-prev,
${me}-next,
${me}-jump-prev,
${me}-jump-next
`]:{display:"inline-block",minWidth:le.itemSize,height:le.itemSize,color:le.colorText,fontFamily:le.fontFamily,lineHeight:`${le.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:le.borderRadius,cursor:"pointer",transition:`all ${le.motionDurationMid}`},[`${me}-prev, ${me}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:le.colorText,cursor:"pointer",userSelect:"none"},[`${me}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:le.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${le.lineWidth}px ${le.lineType} transparent`,borderRadius:le.borderRadius,outline:"none",transition:`all ${le.motionDurationMid}`},[`&:hover ${me}-item-link`]:{backgroundColor:le.colorBgTextHover},[`&:active ${me}-item-link`]:{backgroundColor:le.colorBgTextActive},[`&${me}-disabled:hover`]:{[`${me}-item-link`]:{backgroundColor:"transparent"}}},[`${me}-slash`]:{marginInlineEnd:le.paginationSlashMarginInlineEnd,marginInlineStart:le.paginationSlashMarginInlineStart},[`${me}-options`]:{display:"inline-block",marginInlineStart:le.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:le.controlHeight,marginInlineStart:le.marginXS,lineHeight:`${le.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ye.ik)(le)),{width:le.controlHeightLG*1.25,height:le.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:le.marginXS,marginInlineEnd:le.marginXS})}}}},ki=le=>{const{componentCls:me}=le;return{[`${me}-item`]:{display:"inline-block",minWidth:le.itemSize,height:le.itemSize,marginInlineEnd:le.marginXS,fontFamily:le.fontFamily,lineHeight:`${le.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${le.lineWidth}px ${le.lineType} transparent`,borderRadius:le.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${le.paginationItemPaddingInline}px`,color:le.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${me}-item-active)`]:{"&:hover":{transition:`all ${le.motionDurationMid}`,backgroundColor:le.colorBgTextHover},"&:active":{backgroundColor:le.colorBgTextActive}},"&-active":{fontWeight:le.fontWeightStrong,backgroundColor:le.itemActiveBg,borderColor:le.colorPrimary,a:{color:le.colorPrimary},"&:hover":{borderColor:le.colorPrimaryHover},"&:hover a":{color:le.colorPrimaryHover}}}}},Nt=le=>{const{componentCls:me}=le;return{[me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Mn.Wf)(le)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${me}-total-text`]:{display:"inline-block",height:le.itemSize,marginInlineEnd:le.marginXS,lineHeight:`${le.itemSize-2}px`,verticalAlign:"middle"}}),ki(le)),Fi(le)),nn(le)),xi(le)),Hn(le)),{[`@media only screen and (max-width: ${le.screenLG}px)`]:{[`${me}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${le.screenSM}px)`]:{[`${me}-options`]:{display:"none"}}}),[`&${le.componentCls}-rtl`]:{direction:"rtl"}}},Dt=le=>{const{componentCls:me}=le;return{[`${me}${me}-disabled:not(${me}-mini)`]:{"&, &:hover":{[`${me}-item-link`]:{borderColor:le.colorBorder}},"&:focus-visible":{[`${me}-item-link`]:{borderColor:le.colorBorder}},[`${me}-item, ${me}-item-link`]:{backgroundColor:le.colorBgContainerDisabled,borderColor:le.colorBorder,[`&:hover:not(${me}-item-active)`]:{backgroundColor:le.colorBgContainerDisabled,borderColor:le.colorBorder,a:{color:le.colorTextDisabled}},[`&${me}-item-active`]:{backgroundColor:le.itemActiveBgDisabled}},[`${me}-prev, ${me}-next`]:{"&:hover button":{backgroundColor:le.colorBgContainerDisabled,borderColor:le.colorBorder,color:le.colorTextDisabled},[`${me}-item-link`]:{backgroundColor:le.colorBgContainerDisabled,borderColor:le.colorBorder}}},[`${me}:not(${me}-mini)`]:{[`${me}-prev, ${me}-next`]:{"&:hover button":{borderColor:le.colorPrimaryHover,backgroundColor:le.itemBg},[`${me}-item-link`]:{backgroundColor:le.itemLinkBg,borderColor:le.colorBorder},[`&:hover ${me}-item-link`]:{borderColor:le.colorPrimary,backgroundColor:le.itemBg,color:le.colorPrimary},[`&${me}-disabled`]:{[`${me}-item-link`]:{borderColor:le.colorBorder,color:le.colorTextDisabled}}},[`${me}-item`]:{backgroundColor:le.itemBg,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,[`&:hover:not(${me}-item-active)`]:{borderColor:le.colorPrimary,backgroundColor:le.itemBg,a:{color:le.colorPrimary}},"&-active":{borderColor:le.colorPrimary}}}}},mt=le=>{const{componentCls:me}=le;return{[`${me}:not(${me}-disabled)`]:{[`${me}-item`]:Object.assign({},(0,Mn.Qy)(le)),[`${me}-jump-prev, ${me}-jump-next`]:{"&:focus-visible":Object.assign({[`${me}-item-link-icon`]:{opacity:1},[`${me}-item-ellipsis`]:{opacity:0}},(0,Mn.oN)(le))},[`${me}-prev, ${me}-next`]:{[`&:focus-visible ${me}-item-link`]:Object.assign({},(0,Mn.oN)(le))}}}};var ft=(0,Wn.Z)("Pagination",le=>{const me=(0,fi.TS)(le,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:le.marginXXS/2,paginationMiniQuickJumperInputWidth:le.controlHeightLG*1.1,paginationItemPaddingInline:le.marginXXS*1.5,paginationEllipsisLetterSpacing:le.marginXXS/2,paginationSlashMarginInlineStart:le.marginXXS,paginationSlashMarginInlineEnd:le.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ye.e5)(le),(0,Ye.TM)(le));return[Nt(me),mt(me),le.wireframe&&Dt(me)]},le=>({itemBg:le.colorBgContainer,itemSize:le.controlHeight,itemSizeSM:le.controlHeightSM,itemActiveBg:le.colorBgContainer,itemLinkBg:le.colorBgContainer,itemActiveColorDisabled:le.colorTextDisabled,itemActiveBgDisabled:le.controlItemBgActiveDisabled,itemInputBg:le.colorBgContainer,miniOptionsSizeChangerTop:0})),pt=function(le,me){var Ue={};for(var ke in le)Object.prototype.hasOwnProperty.call(le,ke)&&me.indexOf(ke)<0&&(Ue[ke]=le[ke]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,ke=Object.getOwnPropertySymbols(le);Ie<ke.length;Ie++)me.indexOf(ke[Ie])<0&&Object.prototype.propertyIsEnumerable.call(le,ke[Ie])&&(Ue[ke[Ie]]=le[ke[Ie]]);return Ue},ue=le=>{const{prefixCls:me,selectPrefixCls:Ue,className:ke,rootClassName:Ie,style:rn,size:Gn,locale:dn,selectComponentClass:An,responsive:Dn,showSizeChanger:qn}=le,Rn=pt(le,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Di}=(0,ve.Z)(Dn),{getPrefixCls:cr,direction:Ji,pagination:Sr={}}=ce.useContext(We.E_),Nr=cr("pagination",me),[co,to]=ft(Nr),Kr=qn!=null?qn:Sr.showSizeChanger,gr=ce.useMemo(()=>{const Wt=ce.createElement("span",{className:`${Nr}-item-ellipsis`},"\u2022\u2022\u2022"),xs=ce.createElement("button",{className:`${Nr}-item-link`,type:"button",tabIndex:-1},Ji==="rtl"?ce.createElement(oe.Z,null):ce.createElement(Pt.Z,null)),Ss=ce.createElement("button",{className:`${Nr}-item-link`,type:"button",tabIndex:-1},Ji==="rtl"?ce.createElement(Pt.Z,null):ce.createElement(oe.Z,null)),Ms=ce.createElement("a",{className:`${Nr}-item-link`},ce.createElement("div",{className:`${Nr}-item-container`},Ji==="rtl"?ce.createElement(Xt.Z,{className:`${Nr}-item-link-icon`}):ce.createElement(jt,{className:`${Nr}-item-link-icon`}),Wt)),ma=ce.createElement("a",{className:`${Nr}-item-link`},ce.createElement("div",{className:`${Nr}-item-container`},Ji==="rtl"?ce.createElement(jt,{className:`${Nr}-item-link-icon`}):ce.createElement(Xt.Z,{className:`${Nr}-item-link-icon`}),Wt));return{prevIcon:xs,nextIcon:Ss,jumpPrevIcon:Ms,jumpNextIcon:ma}},[Ji,Nr]),[Vr]=(0,ie.Z)("Pagination",Ne.Z),pr=Object.assign(Object.assign({},Vr),dn),zo=(0,Re.Z)(Gn),es=zo==="small"||!!(Di&&!zo&&Dn),yo=cr("select",Ue),ks=Jt()({[`${Nr}-mini`]:es,[`${Nr}-rtl`]:Ji==="rtl"},Sr==null?void 0:Sr.className,ke,Ie,to),ws=Object.assign(Object.assign({},Sr==null?void 0:Sr.style),rn);return co(ce.createElement(_e,Object.assign({},gr,Rn,{style:ws,prefixCls:Nr,selectPrefixCls:yo,className:ks,selectComponentClass:An||(es?Bn:Ln),locale:pr,showSizeChanger:Kr})))},we=ue},13570:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ie}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(Bn,Ln){return ce.createElement(ee.Z,(0,Ft.Z)({},Bn,{ref:Ln,icon:Be}))},It=ce.forwardRef(Yt),jt=It,Xt=bt(92310),Pt=bt.n(Xt),oe=bt(49618),zt=bt(52487),Jt=bt(74416),Ct=bt(18929),et=bt(10228),tt=bt(26112);function lt(Se,Bn){var Ln=Se.disabled,Ye=Se.prefixCls,Mn=Se.character,Wn=Se.characterRender,fi=Se.index,Hn=Se.count,xi=Se.value,nn=Se.allowHalf,Fi=Se.focused,ki=Se.onHover,Nt=Se.onClick,Dt=function(me){ki(me,fi)},mt=function(me){Nt(me,fi)},ft=function(me){me.keyCode===et.Z.ENTER&&Nt(me,fi)},pt=fi+1,At=new Set([Ye]);xi===0&&fi===0&&Fi?At.add("".concat(Ye,"-focused")):nn&&xi+.5>=pt&&xi<pt?(At.add("".concat(Ye,"-half")),At.add("".concat(Ye,"-active")),Fi&&At.add("".concat(Ye,"-focused"))):(pt<=xi?At.add("".concat(Ye,"-full")):At.add("".concat(Ye,"-zero")),pt===xi&&Fi&&At.add("".concat(Ye,"-focused")));var ue=typeof Mn=="function"?Mn(Se):Mn,we=ce.createElement("li",{className:Pt()(Array.from(At)),ref:Bn},ce.createElement("div",{onClick:Ln?null:mt,onKeyDown:Ln?null:ft,onMouseMove:Ln?null:Dt,role:"radio","aria-checked":xi>fi?"true":"false","aria-posinset":fi+1,"aria-setsize":Hn,tabIndex:Ln?-1:0},ce.createElement("div",{className:"".concat(Ye,"-first")},ue),ce.createElement("div",{className:"".concat(Ye,"-second")},ue)));return Wn&&(we=Wn(we,Se)),we}var rt=ce.forwardRef(lt);function ut(){var Se=ce.useRef({});function Bn(Ye){return Se.current[Ye]}function Ln(Ye){return function(Mn){Se.current[Ye]=Mn}}return[Bn,Ln]}function ct(Se){var Bn=Se.pageXOffset,Ln="scrollLeft";if(typeof Bn!="number"){var Ye=Se.document;Bn=Ye.documentElement[Ln],typeof Bn!="number"&&(Bn=Ye.body[Ln])}return Bn}function wt(Se){var Bn,Ln,Ye=Se.ownerDocument,Mn=Ye.body,Wn=Ye&&Ye.documentElement,fi=Se.getBoundingClientRect();return Bn=fi.left,Ln=fi.top,Bn-=Wn.clientLeft||Mn.clientLeft||0,Ln-=Wn.clientTop||Mn.clientTop||0,{left:Bn,top:Ln}}function Mt(Se){var Bn=wt(Se),Ln=Se.ownerDocument,Ye=Ln.defaultView||Ln.parentWindow;return Bn.left+=ct(Ye),Bn.left}var Ot=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ht(Se,Bn){var Ln,Ye=Se.prefixCls,Mn=Ye===void 0?"rc-rate":Ye,Wn=Se.className,fi=Se.defaultValue,Hn=Se.value,xi=Se.count,nn=xi===void 0?5:xi,Fi=Se.allowHalf,ki=Fi===void 0?!1:Fi,Nt=Se.allowClear,Dt=Nt===void 0?!0:Nt,mt=Se.character,ft=mt===void 0?"\u2605":mt,pt=Se.characterRender,At=Se.disabled,ue=Se.direction,we=ue===void 0?"ltr":ue,le=Se.tabIndex,me=le===void 0?0:le,Ue=Se.autoFocus,ke=Se.onHoverChange,Ie=Se.onChange,rn=Se.onFocus,Gn=Se.onBlur,dn=Se.onKeyDown,An=Se.onMouseLeave,Dn=(0,Jt.Z)(Se,Ot),qn=ut(),Rn=(0,zt.Z)(qn,2),Di=Rn[0],cr=Rn[1],Ji=ce.useRef(null),Sr=function(){if(!At){var Ke;(Ke=Ji.current)===null||Ke===void 0||Ke.focus()}};ce.useImperativeHandle(Bn,function(){return{focus:Sr,blur:function(){if(!At){var Ke;(Ke=Ji.current)===null||Ke===void 0||Ke.blur()}}}});var Nr=(0,Ct.Z)(fi||0,{value:Hn}),co=(0,zt.Z)(Nr,2),to=co[0],Kr=co[1],gr=(0,Ct.Z)(null),Vr=(0,zt.Z)(gr,2),pr=Vr[0],zo=Vr[1],es=function(Ke,ni){var Ci=we==="rtl",_i=Ke+1;if(ki){var qi=Di(Ke),on=Mt(qi),di=qi.clientWidth;(Ci&&ni-on>di/2||!Ci&&ni-on<di/2)&&(_i-=.5)}return _i},yo=function(Ke){Kr(Ke),Ie==null||Ie(Ke)},ks=ce.useState(!1),ws=(0,zt.Z)(ks,2),Wt=ws[0],xs=ws[1],Ss=function(){xs(!0),rn==null||rn()},Ms=function(){xs(!1),Gn==null||Gn()},ma=ce.useState(null),Ea=(0,zt.Z)(ma,2),oa=Ea[0],so=Ea[1],br=function(Ke,ni){var Ci=es(ni,Ke.pageX);Ci!==pr&&(so(Ci),zo(null)),ke==null||ke(Ci)},kn=function(Ke){At||(so(null),zo(null),ke==null||ke(void 0)),Ke&&(An==null||An(Ke))},In=function(Ke,ni){var Ci=es(ni,Ke.pageX),_i=!1;Dt&&(_i=Ci===to),kn(),yo(_i?0:Ci),zo(_i?Ci:null)},Oe=function(Ke){var ni=Ke.keyCode,Ci=we==="rtl",_i=to;ni===et.Z.RIGHT&&_i<nn&&!Ci?(ki?_i+=.5:_i+=1,yo(_i),Ke.preventDefault()):ni===et.Z.LEFT&&_i>0&&!Ci||ni===et.Z.RIGHT&&_i>0&&Ci?(ki?_i-=.5:_i-=1,yo(_i),Ke.preventDefault()):ni===et.Z.LEFT&&_i<nn&&Ci&&(ki?_i+=.5:_i+=1,yo(_i),Ke.preventDefault()),dn==null||dn(Ke)};ce.useEffect(function(){Ue&&!At&&Sr()},[]);var hi=new Array(nn).fill(0).map(function(fn,Ke){return ce.createElement(rt,{ref:cr(Ke),index:Ke,count:nn,disabled:At,prefixCls:"".concat(Mn,"-star"),allowHalf:ki,value:oa===null?to:oa,onClick:In,onHover:br,key:fn||Ke,character:ft,characterRender:pt,focused:Wt})}),Je=Pt()(Mn,Wn,(Ln={},(0,oe.Z)(Ln,"".concat(Mn,"-disabled"),At),(0,oe.Z)(Ln,"".concat(Mn,"-rtl"),we==="rtl"),Ln));return ce.createElement("ul",(0,Ft.Z)({className:Je,onMouseLeave:kn,tabIndex:At?-1:me,onFocus:At?null:Ss,onBlur:At?null:Ms,onKeyDown:At?null:Oe,ref:Ji,role:"radiogroup"},(0,tt.Z)(Dn,{aria:!0,data:!0,attr:!0})),hi)}var ne=ce.forwardRef(Ht),ae=ne,de=bt(36355),be=bt(6848),qt=bt(17313),ze=bt(83116),Vt=bt(37613);const Ge=Se=>{const{componentCls:Bn}=Se;return{[`${Bn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Se.marginXS},"> div":{transition:`all ${Se.motionDurationMid}, outline 0s`,"&:hover":{transform:Se.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Se.lineWidth}px dashed ${Se.starColor}`,transform:Se.starHoverScale}},"&-first, &-second":{color:Se.starBg,transition:`all ${Se.motionDurationMid}`,userSelect:"none",[Se.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Bn}-star-first, &-half ${Bn}-star-second`]:{opacity:1},[`&-half ${Bn}-star-first, &-full ${Bn}-star-second`]:{color:"inherit"}}}},_e=Se=>({[`&-rtl${Se.componentCls}`]:{direction:"rtl"}}),Ne=Se=>{const{componentCls:Bn}=Se;return{[Bn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qt.Wf)(Se)),{display:"inline-block",margin:0,padding:0,color:Se.starColor,fontSize:Se.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Bn} ${Bn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ge(Se)),{[`+ ${Bn}-text`]:{display:"inline-block",marginInlineStart:Se.marginXS,fontSize:Se.fontSize}}),_e(Se))}};var We=(0,ze.Z)("Rate",Se=>{const Bn=(0,Vt.TS)(Se,{});return[Ne(Bn)]},Se=>({starColor:Se.yellow6,starSize:Se.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Se.colorFillContent})),Re=function(Se,Bn){var Ln={};for(var Ye in Se)Object.prototype.hasOwnProperty.call(Se,Ye)&&Bn.indexOf(Ye)<0&&(Ln[Ye]=Se[Ye]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,Ye=Object.getOwnPropertySymbols(Se);Mn<Ye.length;Mn++)Bn.indexOf(Ye[Mn])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ye[Mn])&&(Ln[Ye[Mn]]=Se[Ye[Mn]]);return Ln},ie=ce.forwardRef((Se,Bn)=>{const{prefixCls:Ln,className:Ye,rootClassName:Mn,style:Wn,tooltips:fi,character:Hn=ce.createElement(jt,null)}=Se,xi=Re(Se,["prefixCls","className","rootClassName","style","tooltips","character"]),nn=(At,ue)=>{let{index:we}=ue;return fi?ce.createElement(be.Z,{title:fi[we]},At):At},{getPrefixCls:Fi,direction:ki,rate:Nt}=ce.useContext(de.E_),Dt=Fi("rate",Ln),[mt,ft]=We(Dt),pt=Object.assign(Object.assign({},Nt==null?void 0:Nt.style),Wn);return mt(ce.createElement(ae,Object.assign({ref:Bn,character:Hn,characterRender:nn},xi,{className:Pt()(Ye,Mn,ft,Nt==null?void 0:Nt.className),style:pt,prefixCls:Dt,direction:ki})))})},57809:function(ui,wn,bt){"use strict";var Ft=bt(92310),ce=bt.n(Ft),re=bt(77861),Be=bt(2738),ee=bt(59301),Yt=bt(53487),It=bt(62892),jt=bt(19080),Xt=bt(36355),Pt=bt(1684),oe=bt(93891),zt=bt(19716),Jt=bt(32441),Ct=bt(33234),et=bt(14154),tt=bt(58582),lt=bt(84443),rt=bt(66339),ut=function(Ht,ne){var ae={};for(var de in Ht)Object.prototype.hasOwnProperty.call(Ht,de)&&ne.indexOf(de)<0&&(ae[de]=Ht[de]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,de=Object.getOwnPropertySymbols(Ht);be<de.length;be++)ne.indexOf(de[be])<0&&Object.prototype.propertyIsEnumerable.call(Ht,de[be])&&(ae[de[be]]=Ht[de[be]]);return ae};const ct="SECRET_COMBOBOX_MODE_DO_NOT_USE",wt=(Ht,ne)=>{var ae,{prefixCls:de,bordered:be=!0,className:qt,rootClassName:ze,getPopupContainer:Vt,popupClassName:Ge,dropdownClassName:_e,listHeight:Ne=256,placement:We,listItemHeight:Re=24,size:ve,disabled:ie,notFoundContent:Se,status:Bn,builtinPlacements:Ln,dropdownMatchSelectWidth:Ye,popupMatchSelectWidth:Mn,direction:Wn,style:fi,allowClear:Hn}=Ht,xi=ut(Ht,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:nn,getPrefixCls:Fi,renderEmpty:ki,direction:Nt,virtual:Dt,popupMatchSelectWidth:mt,popupOverflow:ft,select:pt}=ee.useContext(Xt.E_),At=Fi("select",de),ue=Fi(),we=Wn!=null?Wn:Nt,{compactSize:le,compactItemClassnames:me}=(0,Ct.ri)(At,we),[Ue,ke]=(0,et.Z)(At),Ie=ee.useMemo(()=>{const{mode:ws}=xi;if(ws!=="combobox")return ws===ct?"combobox":ws},[xi.mode]),rn=Ie==="multiple"||Ie==="tags",Gn=(0,lt.Z)(xi.suffixIcon,xi.showArrow),dn=(ae=Mn!=null?Mn:Ye)!==null&&ae!==void 0?ae:mt,{status:An,hasFeedback:Dn,isFormItemInput:qn,feedbackIcon:Rn}=ee.useContext(Jt.aM),Di=(0,jt.F)(An,Bn);let cr;Se!==void 0?cr=Se:Ie==="combobox"?cr=null:cr=(ki==null?void 0:ki("Select"))||ee.createElement(oe.Z,{componentName:"Select"});const{suffixIcon:Ji,itemIcon:Sr,removeIcon:Nr,clearIcon:co}=(0,rt.Z)(Object.assign(Object.assign({},xi),{multiple:rn,hasFeedback:Dn,feedbackIcon:Rn,showSuffixIcon:Gn,prefixCls:At,showArrow:xi.showArrow,componentName:"Select"})),to=Hn===!0?{clearIcon:co}:Hn,Kr=(0,Be.Z)(xi,["suffixIcon","itemIcon"]),gr=ce()(Ge||_e,{[`${At}-dropdown-${we}`]:we==="rtl"},ze,ke),Vr=(0,zt.Z)(ws=>{var Wt;return(Wt=ve!=null?ve:le)!==null&&Wt!==void 0?Wt:ws}),pr=ee.useContext(Pt.Z),zo=ie!=null?ie:pr,es=ce()({[`${At}-lg`]:Vr==="large",[`${At}-sm`]:Vr==="small",[`${At}-rtl`]:we==="rtl",[`${At}-borderless`]:!be,[`${At}-in-form-item`]:qn},(0,jt.Z)(At,Di,Dn),me,pt==null?void 0:pt.className,qt,ze,ke),yo=ee.useMemo(()=>We!==void 0?We:we==="rtl"?"bottomRight":"bottomLeft",[We,we]),ks=(0,tt.Z)(Ln,ft);return Ue(ee.createElement(re.ZP,Object.assign({ref:ne,virtual:Dt,showSearch:pt==null?void 0:pt.showSearch},Kr,{style:Object.assign(Object.assign({},pt==null?void 0:pt.style),fi),dropdownMatchSelectWidth:dn,builtinPlacements:ks,transitionName:(0,It.m)(ue,"slide-up",xi.transitionName),listHeight:Ne,listItemHeight:Re,mode:Ie,prefixCls:At,placement:yo,direction:we,suffixIcon:Ji,menuItemSelectedIcon:Sr,removeIcon:Nr,allowClear:to,notFoundContent:cr,className:es,getPopupContainer:Vt||nn,dropdownClassName:gr,disabled:zo})))},Mt=ee.forwardRef(wt),Ot=(0,Yt.Z)(Mt);Mt.SECRET_COMBOBOX_MODE_DO_NOT_USE=ct,Mt.Option=re.Wx,Mt.OptGroup=re.Xo,Mt._InternalPanelDoNotUseOrYouWillBeFired=Ot,wn.default=Mt},14154:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return Mt}});var Ft=bt(17313),ce=bt(74207),re=bt(37613),Be=bt(83116),ee=bt(13826),Yt=bt(92899);const It=Ot=>{const{optionHeight:Ht,optionFontSize:ne,optionLineHeight:ae,optionPadding:de}=Ot;return{position:"relative",display:"block",minHeight:Ht,padding:de,color:Ot.colorText,fontWeight:"normal",fontSize:ne,lineHeight:ae,boxSizing:"border-box"}};var Xt=Ot=>{const{antCls:Ht,componentCls:ne}=Ot,ae=`${ne}-item`,de=`&${Ht}-slide-up-enter${Ht}-slide-up-enter-active`,be=`&${Ht}-slide-up-appear${Ht}-slide-up-appear-active`,qt=`&${Ht}-slide-up-leave${Ht}-slide-up-leave-active`,ze=`${ne}-dropdown-placement-`;return[{[`${ne}-dropdown`]:Object.assign(Object.assign({},(0,Ft.Wf)(Ot)),{position:"absolute",top:-9999,zIndex:Ot.zIndexPopup,boxSizing:"border-box",padding:Ot.paddingXXS,overflow:"hidden",fontSize:Ot.fontSize,fontVariant:"initial",backgroundColor:Ot.colorBgElevated,borderRadius:Ot.borderRadiusLG,outline:"none",boxShadow:Ot.boxShadowSecondary,[`
${de}${ze}bottomLeft,
${be}${ze}bottomLeft
`]:{animationName:ee.fJ},[`
${de}${ze}topLeft,
${be}${ze}topLeft,
${de}${ze}topRight,
${be}${ze}topRight
`]:{animationName:ee.Qt},[`${qt}${ze}bottomLeft`]:{animationName:ee.Uw},[`
${qt}${ze}topLeft,
${qt}${ze}topRight
`]:{animationName:ee.ly},"&-hidden":{display:"none"},[`${ae}`]:Object.assign(Object.assign({},It(Ot)),{cursor:"pointer",transition:`background ${Ot.motionDurationSlow} ease`,borderRadius:Ot.borderRadiusSM,"&-group":{color:Ot.colorTextDescription,fontSize:Ot.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ft.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ae}-option-disabled)`]:{backgroundColor:Ot.optionActiveBg},[`&-selected:not(${ae}-option-disabled)`]:{color:Ot.optionSelectedColor,fontWeight:Ot.optionSelectedFontWeight,backgroundColor:Ot.optionSelectedBg,[`${ae}-option-state`]:{color:Ot.colorPrimary}},"&-disabled":{[`&${ae}-option-selected`]:{backgroundColor:Ot.colorBgContainerDisabled},color:Ot.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ot.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ee.oN)(Ot,"slide-up"),(0,ee.oN)(Ot,"slide-down"),(0,Yt.Fm)(Ot,"move-up"),(0,Yt.Fm)(Ot,"move-down")]};const Pt=2,oe=Ot=>{let{controlHeightSM:Ht,controlHeight:ne,lineWidth:ae}=Ot;const de=(ne-Ht)/2-ae,be=Math.ceil(de/2);return[de,be]};function zt(Ot,Ht){const{componentCls:ne,iconCls:ae}=Ot,de=`${ne}-selection-overflow`,be=Ot.multipleSelectItemHeight,[qt]=oe(Ot),ze=Ht?`${ne}-${Ht}`:"";return{[`${ne}-multiple${ze}`]:{fontSize:Ot.fontSize,[de]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${ne}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${qt-Pt}px ${Pt*2}px`,borderRadius:Ot.borderRadius,[`${ne}-show-search&`]:{cursor:"text"},[`${ne}-disabled&`]:{background:Ot.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Pt}px 0`,lineHeight:`${be}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${ne}-show-arrow ${ne}-selector,
&${ne}-allow-clear ${ne}-selector
`]:{paddingInlineEnd:Ot.fontSizeIcon+Ot.controlPaddingHorizontal},[`${ne}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:be,marginTop:Pt,marginBottom:Pt,lineHeight:`${be-Ot.lineWidth*2}px`,background:Ot.multipleItemBg,border:`${Ot.lineWidth}px ${Ot.lineType} ${Ot.multipleItemBorderColor}`,borderRadius:Ot.borderRadiusSM,cursor:"default",transition:`font-size ${Ot.motionDurationSlow}, line-height ${Ot.motionDurationSlow}, height ${Ot.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Pt*2,paddingInlineStart:Ot.paddingXS,paddingInlineEnd:Ot.paddingXS/2,[`${ne}-disabled&`]:{color:Ot.multipleItemColorDisabled,borderColor:Ot.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ot.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ft.Ro)()),{display:"inline-flex",alignItems:"center",color:Ot.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ae}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ot.colorIconHover}})},[`${de}-item + ${de}-item`]:{[`${ne}-selection-search`]:{marginInlineStart:0}},[`${ne}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ot.inputPaddingHorizontalBase-qt,"\n &-input,\n &-mirror\n ":{height:be,fontFamily:Ot.fontFamily,lineHeight:`${be}px`,transition:`all ${Ot.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ne}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ot.inputPaddingHorizontalBase,insetInlineEnd:Ot.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ot.motionDurationSlow}`}}}}var Ct=Ot=>{const{componentCls:Ht}=Ot,ne=(0,re.TS)(Ot,{controlHeight:Ot.controlHeightSM,multipleSelectItemHeight:Ot.controlHeightXS,borderRadius:Ot.borderRadiusSM,borderRadiusSM:Ot.borderRadiusXS}),ae=(0,re.TS)(Ot,{fontSize:Ot.fontSizeLG,controlHeight:Ot.controlHeightLG,multipleSelectItemHeight:Ot.multipleItemHeightLG,borderRadius:Ot.borderRadiusLG,borderRadiusSM:Ot.borderRadius}),[,de]=oe(Ot);return[zt(Ot),zt(ne,"sm"),{[`${Ht}-multiple${Ht}-sm`]:{[`${Ht}-selection-placeholder`]:{insetInline:Ot.controlPaddingHorizontalSM-Ot.lineWidth},[`${Ht}-selection-search`]:{marginInlineStart:de}}},zt(ae,"lg")]};function et(Ot,Ht){const{componentCls:ne,inputPaddingHorizontalBase:ae,borderRadius:de}=Ot,be=Ot.controlHeight-Ot.lineWidth*2,qt=Math.ceil(Ot.fontSize*1.25),ze=Ht?`${ne}-${Ht}`:"";return{[`${ne}-single${ze}`]:{fontSize:Ot.fontSize,[`${ne}-selector`]:Object.assign(Object.assign({},(0,Ft.Wf)(Ot)),{display:"flex",borderRadius:de,[`${ne}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ae,insetInlineEnd:ae,bottom:0,"&-input":{width:"100%"}},[`
${ne}-selection-item,
${ne}-selection-placeholder
`]:{padding:0,lineHeight:`${be}px`,transition:`all ${Ot.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${be}px`}},[`${ne}-selection-item`]:{position:"relative",userSelect:"none"},[`${ne}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ne}-selection-item:after`,`${ne}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${ne}-show-arrow ${ne}-selection-item,
&${ne}-show-arrow ${ne}-selection-placeholder
`]:{paddingInlineEnd:qt},[`&${ne}-open ${ne}-selection-item`]:{color:Ot.colorTextPlaceholder},[`&:not(${ne}-customize-input)`]:{[`${ne}-selector`]:{width:"100%",height:Ot.controlHeight,padding:`0 ${ae}px`,[`${ne}-selection-search-input`]:{height:be},"&:after":{lineHeight:`${be}px`}}},[`&${ne}-customize-input`]:{[`${ne}-selector`]:{"&:after":{display:"none"},[`${ne}-selection-search`]:{position:"static",width:"100%"},[`${ne}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ae}px`,"&:after":{display:"none"}}}}}}}function tt(Ot){const{componentCls:Ht}=Ot,ne=Ot.controlPaddingHorizontalSM-Ot.lineWidth;return[et(Ot),et((0,re.TS)(Ot,{controlHeight:Ot.controlHeightSM,borderRadius:Ot.borderRadiusSM}),"sm"),{[`${Ht}-single${Ht}-sm`]:{[`&:not(${Ht}-customize-input)`]:{[`${Ht}-selection-search`]:{insetInlineStart:ne,insetInlineEnd:ne},[`${Ht}-selector`]:{padding:`0 ${ne}px`},[`&${Ht}-show-arrow ${Ht}-selection-search`]:{insetInlineEnd:ne+Ot.fontSize*1.5},[`
&${Ht}-show-arrow ${Ht}-selection-item,
&${Ht}-show-arrow ${Ht}-selection-placeholder
`]:{paddingInlineEnd:Ot.fontSize*1.5}}}},et((0,re.TS)(Ot,{controlHeight:Ot.singleItemHeightLG,fontSize:Ot.fontSizeLG,borderRadius:Ot.borderRadiusLG}),"lg")]}const lt=Ot=>{const{componentCls:Ht,selectorBg:ne}=Ot;return{position:"relative",backgroundColor:ne,border:`${Ot.lineWidth}px ${Ot.lineType} ${Ot.colorBorder}`,transition:`all ${Ot.motionDurationMid} ${Ot.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ht}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ht}-disabled&`]:{color:Ot.colorTextDisabled,background:Ot.colorBgContainerDisabled,cursor:"not-allowed",[`${Ht}-multiple&`]:{background:Ot.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(Ot,Ht){let ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ae,borderHoverColor:de,outlineColor:be,antCls:qt}=Ht,ze=ne?{[`${ae}-selector`]:{borderColor:de}}:{};return{[Ot]:{[`&:not(${ae}-disabled):not(${ae}-customize-input):not(${qt}-pagination-size-changer)`]:Object.assign(Object.assign({},ze),{[`${ae}-focused& ${ae}-selector`]:{borderColor:de,boxShadow:`0 0 0 ${Ht.controlOutlineWidth}px ${be}`,outline:0},[`&:hover ${ae}-selector`]:{borderColor:de}})}}},ut=Ot=>{const{componentCls:Ht}=Ot;return{[`${Ht}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ct=Ot=>{const{componentCls:Ht,inputPaddingHorizontalBase:ne,iconCls:ae}=Ot;return{[Ht]:Object.assign(Object.assign({},(0,Ft.Wf)(Ot)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ht}-customize-input) ${Ht}-selector`]:Object.assign(Object.assign({},lt(Ot)),ut(Ot)),[`${Ht}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Ft.vS),[`${Ht}-selection-placeholder`]:Object.assign(Object.assign({},Ft.vS),{flex:1,color:Ot.colorTextPlaceholder,pointerEvents:"none"}),[`${Ht}-arrow`]:Object.assign(Object.assign({},(0,Ft.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ne,height:Ot.fontSizeIcon,marginTop:-Ot.fontSizeIcon/2,color:Ot.colorTextQuaternary,fontSize:Ot.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ae]:{verticalAlign:"top",transition:`transform ${Ot.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ht}-suffix)`]:{pointerEvents:"auto"}},[`${Ht}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ht}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ne,zIndex:1,display:"inline-block",width:Ot.fontSizeIcon,height:Ot.fontSizeIcon,marginTop:-Ot.fontSizeIcon/2,color:Ot.colorTextQuaternary,fontSize:Ot.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ot.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ot.motionDurationMid} ease, opacity ${Ot.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ot.colorTextTertiary}},"&:hover":{[`${Ht}-clear`]:{opacity:1}}}),[`${Ht}-has-feedback`]:{[`${Ht}-clear`]:{insetInlineEnd:ne+Ot.fontSize+Ot.paddingXS}}}},wt=Ot=>{const{componentCls:Ht}=Ot;return[{[Ht]:{[`&-borderless ${Ht}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ht}-in-form-item`]:{width:"100%"}}},ct(Ot),tt(Ot),Ct(Ot),Xt(Ot),{[`${Ht}-rtl`]:{direction:"rtl"}},rt(Ht,(0,re.TS)(Ot,{borderHoverColor:Ot.colorPrimaryHover,outlineColor:Ot.controlOutline})),rt(`${Ht}-status-error`,(0,re.TS)(Ot,{borderHoverColor:Ot.colorErrorHover,outlineColor:Ot.colorErrorOutline}),!0),rt(`${Ht}-status-warning`,(0,re.TS)(Ot,{borderHoverColor:Ot.colorWarningHover,outlineColor:Ot.colorWarningOutline}),!0),(0,ce.c)(Ot,{borderElCls:`${Ht}-selector`,focusElCls:`${Ht}-focused`})]};var Mt=(0,Be.Z)("Select",(Ot,Ht)=>{let{rootPrefixCls:ne}=Ht;const ae=(0,re.TS)(Ot,{rootPrefixCls:ne,inputPaddingHorizontalBase:Ot.paddingSM-1,multipleSelectItemHeight:Ot.multipleItemHeight});return[wt(ae)]},Ot=>{const{fontSize:Ht,lineHeight:ne,controlHeight:ae,controlPaddingHorizontal:de,zIndexPopupBase:be,colorText:qt,fontWeightStrong:ze,controlItemBgActive:Vt,controlItemBgHover:Ge,colorBgContainer:_e,colorFillSecondary:Ne,controlHeightLG:We,controlHeightSM:Re,colorBgContainerDisabled:ve,colorTextDisabled:ie}=Ot;return{zIndexPopup:be+50,optionSelectedColor:qt,optionSelectedFontWeight:ze,optionSelectedBg:Vt,optionActiveBg:Ge,optionPadding:`${(ae-Ht*ne)/2}px ${de}px`,optionFontSize:Ht,optionLineHeight:ne,optionHeight:ae,selectorBg:_e,clearBg:_e,singleItemHeightLG:We,multipleItemBg:Ne,multipleItemBorderColor:"transparent",multipleItemHeight:Re,multipleItemHeightLG:ae,multipleSelectorBgDisabled:ve,multipleItemColorDisabled:ie,multipleItemBorderColorDisabled:"transparent"}})},58582:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ce}});const Ft=re=>{const ee={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:re==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ee),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ee),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ee),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ee),{points:["br","tr"],offset:[0,-4]})}};function ce(re,Be){return re||Ft(Be)}},84443:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return Ft}});function Ft(ce,re){return re!==void 0?re:ce!==null}},66339:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});var Ft=bt(40001),ce=bt(19248),re=bt(99267),Be=bt(84105),ee=bt(58617),Yt=bt(47472),It=bt(59301);function jt(Xt){let{suffixIcon:Pt,clearIcon:oe,menuItemSelectedIcon:zt,removeIcon:Jt,loading:Ct,multiple:et,hasFeedback:tt,prefixCls:lt,showSuffixIcon:rt,feedbackIcon:ut,showArrow:ct,componentName:wt}=Xt;const Mt=oe!=null?oe:It.createElement(ce.Z,null),Ot=de=>Pt===null&&!tt&&!ct?null:It.createElement(It.Fragment,null,rt!==!1&&de,tt&&ut);let Ht=null;if(Pt!==void 0)Ht=Ot(Pt);else if(Ct)Ht=Ot(It.createElement(ee.Z,{spin:!0}));else{const de=`${lt}-suffix`;Ht=be=>{let{open:qt,showSearch:ze}=be;return Ot(qt&&ze?It.createElement(Yt.Z,{className:de}):It.createElement(Be.Z,{className:de}))}}let ne=null;zt!==void 0?ne=zt:et?ne=It.createElement(Ft.Z,null):ne=null;let ae=null;return Jt!==void 0?ae=Jt:ae=It.createElement(re.Z,null),{clearIcon:Mt,suffixIcon:Ht,itemIcon:ne,removeIcon:ae}}},61621:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ft}});var Ft=bt(92310),ce=bt.n(Ft),re=bt(59301),Be=bt(36355),ee=bt(2738),It=pt=>{const{prefixCls:At,className:ue,style:we,size:le,shape:me}=pt,Ue=ce()({[`${At}-lg`]:le==="large",[`${At}-sm`]:le==="small"}),ke=ce()({[`${At}-circle`]:me==="circle",[`${At}-square`]:me==="square",[`${At}-round`]:me==="round"}),Ie=re.useMemo(()=>typeof le=="number"?{width:le,height:le,lineHeight:`${le}px`}:{},[le]);return re.createElement("span",{className:ce()(At,Ue,ke,ue),style:Object.assign(Object.assign({},Ie),we)})},jt=bt(93083),Xt=bt(83116),Pt=bt(37613);const oe=new jt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),zt=pt=>({height:pt,lineHeight:`${pt}px`}),Jt=pt=>Object.assign({width:pt},zt(pt)),Ct=pt=>({background:pt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:oe,animationDuration:pt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=pt=>Object.assign({width:pt*5,minWidth:pt*5},zt(pt)),tt=pt=>{const{skeletonAvatarCls:At,gradientFromColor:ue,controlHeight:we,controlHeightLG:le,controlHeightSM:me}=pt;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ue},Jt(we)),[`${At}${At}-circle`]:{borderRadius:"50%"},[`${At}${At}-lg`]:Object.assign({},Jt(le)),[`${At}${At}-sm`]:Object.assign({},Jt(me))}},lt=pt=>{const{controlHeight:At,borderRadiusSM:ue,skeletonInputCls:we,controlHeightLG:le,controlHeightSM:me,gradientFromColor:Ue}=pt;return{[`${we}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ue,borderRadius:ue},et(At)),[`${we}-lg`]:Object.assign({},et(le)),[`${we}-sm`]:Object.assign({},et(me))}},rt=pt=>Object.assign({width:pt},zt(pt)),ut=pt=>{const{skeletonImageCls:At,imageSizeBase:ue,gradientFromColor:we,borderRadiusSM:le}=pt;return{[`${At}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:we,borderRadius:le},rt(ue*2)),{[`${At}-path`]:{fill:"#bfbfbf"},[`${At}-svg`]:Object.assign(Object.assign({},rt(ue)),{maxWidth:ue*4,maxHeight:ue*4}),[`${At}-svg${At}-svg-circle`]:{borderRadius:"50%"}}),[`${At}${At}-circle`]:{borderRadius:"50%"}}},ct=(pt,At,ue)=>{const{skeletonButtonCls:we}=pt;return{[`${ue}${we}-circle`]:{width:At,minWidth:At,borderRadius:"50%"},[`${ue}${we}-round`]:{borderRadius:At}}},wt=pt=>Object.assign({width:pt*2,minWidth:pt*2},zt(pt)),Mt=pt=>{const{borderRadiusSM:At,skeletonButtonCls:ue,controlHeight:we,controlHeightLG:le,controlHeightSM:me,gradientFromColor:Ue}=pt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ue,borderRadius:At,width:we*2,minWidth:we*2},wt(we))},ct(pt,we,ue)),{[`${ue}-lg`]:Object.assign({},wt(le))}),ct(pt,le,`${ue}-lg`)),{[`${ue}-sm`]:Object.assign({},wt(me))}),ct(pt,me,`${ue}-sm`))},Ot=pt=>{const{componentCls:At,skeletonAvatarCls:ue,skeletonTitleCls:we,skeletonParagraphCls:le,skeletonButtonCls:me,skeletonInputCls:Ue,skeletonImageCls:ke,controlHeight:Ie,controlHeightLG:rn,controlHeightSM:Gn,gradientFromColor:dn,padding:An,marginSM:Dn,borderRadius:qn,titleHeight:Rn,blockRadius:Di,paragraphLiHeight:cr,controlHeightXS:Ji,paragraphMarginTop:Sr}=pt;return{[`${At}`]:{display:"table",width:"100%",[`${At}-header`]:{display:"table-cell",paddingInlineEnd:An,verticalAlign:"top",[`${ue}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:dn},Jt(Ie)),[`${ue}-circle`]:{borderRadius:"50%"},[`${ue}-lg`]:Object.assign({},Jt(rn)),[`${ue}-sm`]:Object.assign({},Jt(Gn))},[`${At}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${we}`]:{width:"100%",height:Rn,background:dn,borderRadius:Di,[`+ ${le}`]:{marginBlockStart:Gn}},[`${le}`]:{padding:0,"> li":{width:"100%",height:cr,listStyle:"none",background:dn,borderRadius:Di,"+ li":{marginBlockStart:Ji}}},[`${le}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${At}-content`]:{[`${we}, ${le} > li`]:{borderRadius:qn}}},[`${At}-with-avatar ${At}-content`]:{[`${we}`]:{marginBlockStart:Dn,[`+ ${le}`]:{marginBlockStart:Sr}}},[`${At}${At}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Mt(pt)),tt(pt)),lt(pt)),ut(pt)),[`${At}${At}-block`]:{width:"100%",[`${me}`]:{width:"100%"},[`${Ue}`]:{width:"100%"}},[`${At}${At}-active`]:{[`
${we},
${le} > li,
${ue},
${me},
${Ue},
${ke}
`]:Object.assign({},Ct(pt))}}};var Ht=(0,Xt.Z)("Skeleton",pt=>{const{componentCls:At}=pt,ue=(0,Pt.TS)(pt,{skeletonAvatarCls:`${At}-avatar`,skeletonTitleCls:`${At}-title`,skeletonParagraphCls:`${At}-paragraph`,skeletonButtonCls:`${At}-button`,skeletonInputCls:`${At}-input`,skeletonImageCls:`${At}-image`,imageSizeBase:pt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${pt.gradientFromColor} 25%, ${pt.gradientToColor} 37%, ${pt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ot(ue)]},pt=>{const{colorFillContent:At,colorFill:ue}=pt,we=At,le=ue;return{color:we,colorGradientEnd:le,gradientFromColor:we,gradientToColor:le,titleHeight:pt.controlHeight/2,blockRadius:pt.borderRadiusSM,paragraphMarginTop:pt.marginLG+pt.marginXXS,paragraphLiHeight:pt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ae=pt=>{const{prefixCls:At,className:ue,rootClassName:we,active:le,shape:me="circle",size:Ue="default"}=pt,{getPrefixCls:ke}=re.useContext(Be.E_),Ie=ke("skeleton",At),[rn,Gn]=Ht(Ie),dn=(0,ee.Z)(pt,["prefixCls","className"]),An=ce()(Ie,`${Ie}-element`,{[`${Ie}-active`]:le},ue,we,Gn);return rn(re.createElement("div",{className:An},re.createElement(It,Object.assign({prefixCls:`${Ie}-avatar`,shape:me,size:Ue},dn))))},be=pt=>{const{prefixCls:At,className:ue,rootClassName:we,active:le,block:me=!1,size:Ue="default"}=pt,{getPrefixCls:ke}=re.useContext(Be.E_),Ie=ke("skeleton",At),[rn,Gn]=Ht(Ie),dn=(0,ee.Z)(pt,["prefixCls"]),An=ce()(Ie,`${Ie}-element`,{[`${Ie}-active`]:le,[`${Ie}-block`]:me},ue,we,Gn);return rn(re.createElement("div",{className:An},re.createElement(It,Object.assign({prefixCls:`${Ie}-button`,size:Ue},dn))))};const qt="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=pt=>{const{prefixCls:At,className:ue,rootClassName:we,style:le,active:me}=pt,{getPrefixCls:Ue}=re.useContext(Be.E_),ke=Ue("skeleton",At),[Ie,rn]=Ht(ke),Gn=ce()(ke,`${ke}-element`,{[`${ke}-active`]:me},ue,we,rn);return Ie(re.createElement("div",{className:Gn},re.createElement("div",{className:ce()(`${ke}-image`,ue),style:le},re.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ke}-image-svg`},re.createElement("path",{d:qt,className:`${ke}-image-path`})))))},_e=pt=>{const{prefixCls:At,className:ue,rootClassName:we,active:le,block:me,size:Ue="default"}=pt,{getPrefixCls:ke}=re.useContext(Be.E_),Ie=ke("skeleton",At),[rn,Gn]=Ht(Ie),dn=(0,ee.Z)(pt,["prefixCls"]),An=ce()(Ie,`${Ie}-element`,{[`${Ie}-active`]:le,[`${Ie}-block`]:me},ue,we,Gn);return rn(re.createElement("div",{className:An},re.createElement(It,Object.assign({prefixCls:`${Ie}-input`,size:Ue},dn))))},Ne=bt(72308),We={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"},Re=We,ve=bt(7657),ie=function(At,ue){return re.createElement(ve.Z,(0,Ne.Z)({},At,{ref:ue,icon:Re}))},Se=re.forwardRef(ie),Bn=Se,Ye=pt=>{const{prefixCls:At,className:ue,rootClassName:we,style:le,active:me,children:Ue}=pt,{getPrefixCls:ke}=re.useContext(Be.E_),Ie=ke("skeleton",At),[rn,Gn]=Ht(Ie),dn=ce()(Ie,`${Ie}-element`,{[`${Ie}-active`]:me},Gn,ue,we),An=Ue!=null?Ue:re.createElement(Bn,null);return rn(re.createElement("div",{className:dn},re.createElement("div",{className:ce()(`${Ie}-image`,ue),style:le},An)))},Mn=bt(80702),fi=pt=>{const At=ke=>{const{width:Ie,rows:rn=2}=pt;if(Array.isArray(Ie))return Ie[ke];if(rn-1===ke)return Ie},{prefixCls:ue,className:we,style:le,rows:me}=pt,Ue=(0,Mn.Z)(Array(me)).map((ke,Ie)=>re.createElement("li",{key:Ie,style:{width:At(Ie)}}));return re.createElement("ul",{className:ce()(ue,we),style:le},Ue)},xi=pt=>{let{prefixCls:At,className:ue,width:we,style:le}=pt;return re.createElement("h3",{className:ce()(At,ue),style:Object.assign({width:we},le)})};function nn(pt){return pt&&typeof pt=="object"?pt:{}}function Fi(pt,At){return pt&&!At?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ki(pt,At){return!pt&&At?{width:"38%"}:pt&&At?{width:"50%"}:{}}function Nt(pt,At){const ue={};return(!pt||!At)&&(ue.width="61%"),!pt&&At?ue.rows=3:ue.rows=2,ue}const Dt=pt=>{const{prefixCls:At,loading:ue,className:we,rootClassName:le,style:me,children:Ue,avatar:ke=!1,title:Ie=!0,paragraph:rn=!0,active:Gn,round:dn}=pt,{getPrefixCls:An,direction:Dn,skeleton:qn}=re.useContext(Be.E_),Rn=An("skeleton",At),[Di,cr]=Ht(Rn);if(ue||!("loading"in pt)){const Ji=!!ke,Sr=!!Ie,Nr=!!rn;let co;if(Ji){const gr=Object.assign(Object.assign({prefixCls:`${Rn}-avatar`},Fi(Sr,Nr)),nn(ke));co=re.createElement("div",{className:`${Rn}-header`},re.createElement(It,Object.assign({},gr)))}let to;if(Sr||Nr){let gr;if(Sr){const pr=Object.assign(Object.assign({prefixCls:`${Rn}-title`},ki(Ji,Nr)),nn(Ie));gr=re.createElement(xi,Object.assign({},pr))}let Vr;if(Nr){const pr=Object.assign(Object.assign({prefixCls:`${Rn}-paragraph`},Nt(Ji,Sr)),nn(rn));Vr=re.createElement(fi,Object.assign({},pr))}to=re.createElement("div",{className:`${Rn}-content`},gr,Vr)}const Kr=ce()(Rn,{[`${Rn}-with-avatar`]:Ji,[`${Rn}-active`]:Gn,[`${Rn}-rtl`]:Dn==="rtl",[`${Rn}-round`]:dn},qn==null?void 0:qn.className,we,le,cr);return Di(re.createElement("div",{className:Kr,style:Object.assign(Object.assign({},qn==null?void 0:qn.style),me)},co,to))}return typeof Ue!="undefined"?Ue:null};Dt.Button=be,Dt.Avatar=ae,Dt.Input=_e,Dt.Image=Vt,Dt.Node=Ye;var mt=Dt,ft=mt},81327:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return lt}});var Ft=bt(59301),ce=bt(92310),re=bt.n(ce),Be=bt(11592),ee=bt(36355),Yt=bt(33234);const It=Ft.createContext({latestIndex:0}),jt=It.Provider;var Pt=rt=>{let{className:ut,index:ct,children:wt,split:Mt,style:Ot}=rt;const{latestIndex:Ht}=Ft.useContext(It);return wt==null?null:Ft.createElement(Ft.Fragment,null,Ft.createElement("div",{className:ut,style:Ot},wt),ct<Ht&&Mt&&Ft.createElement("span",{className:`${ut}-split`},Mt))},oe=bt(2856);function zt(rt){return["small","middle","large"].includes(rt)}function Jt(rt){return rt?typeof rt=="number"&&!Number.isNaN(rt):!1}var Ct=function(rt,ut){var ct={};for(var wt in rt)Object.prototype.hasOwnProperty.call(rt,wt)&&ut.indexOf(wt)<0&&(ct[wt]=rt[wt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,wt=Object.getOwnPropertySymbols(rt);Mt<wt.length;Mt++)ut.indexOf(wt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(rt,wt[Mt])&&(ct[wt[Mt]]=rt[wt[Mt]]);return ct};const tt=Ft.forwardRef((rt,ut)=>{var ct,wt;const{getPrefixCls:Mt,space:Ot,direction:Ht}=Ft.useContext(ee.E_),{size:ne=(Ot==null?void 0:Ot.size)||"small",align:ae,className:de,rootClassName:be,children:qt,direction:ze="horizontal",prefixCls:Vt,split:Ge,style:_e,wrap:Ne=!1,classNames:We,styles:Re}=rt,ve=Ct(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ie,Se]=Array.isArray(ne)?ne:[ne,ne],Bn=zt(Se),Ln=zt(ie),Ye=Jt(Se),Mn=Jt(ie),Wn=(0,Be.Z)(qt,{keepEmpty:!0}),fi=ae===void 0&&ze==="horizontal"?"center":ae,Hn=Mt("space",Vt),[xi,nn]=(0,oe.Z)(Hn),Fi=re()(Hn,Ot==null?void 0:Ot.className,nn,`${Hn}-${ze}`,{[`${Hn}-rtl`]:Ht==="rtl",[`${Hn}-align-${fi}`]:fi,[`${Hn}-gap-row-${Se}`]:Bn,[`${Hn}-gap-col-${ie}`]:Ln},de,be),ki=re()(`${Hn}-item`,(ct=We==null?void 0:We.item)!==null&&ct!==void 0?ct:(wt=Ot==null?void 0:Ot.classNames)===null||wt===void 0?void 0:wt.item);let Nt=0;const Dt=Wn.map((pt,At)=>{var ue,we;pt!=null&&(Nt=At);const le=pt&&pt.key||`${ki}-${At}`;return Ft.createElement(Pt,{className:ki,key:le,index:At,split:Ge,style:(ue=Re==null?void 0:Re.item)!==null&&ue!==void 0?ue:(we=Ot==null?void 0:Ot.styles)===null||we===void 0?void 0:we.item},pt)}),mt=Ft.useMemo(()=>({latestIndex:Nt}),[Nt]);if(Wn.length===0)return null;const ft={};return Ne&&(ft.flexWrap="wrap"),!Ln&&Mn&&(ft.columnGap=ie),!Bn&&Ye&&(ft.rowGap=Se),xi(Ft.createElement("div",Object.assign({ref:ut,className:Fi,style:Object.assign(Object.assign(Object.assign({},ft),Ot==null?void 0:Ot.style),_e)},ve),Ft.createElement(jt,{value:mt},Dt)))});tt.Compact=Yt.ZP;var lt=tt},31797:function(ui,wn,bt){"use strict";bt.d(wn,{default:function(){return Ht}});var Ft=bt(59301),ce=bt(56762),re=bt(92343),Be=bt(92310),ee=bt.n(Be),Yt=bt(36355),It=bt(61621),Xt=ne=>{const{value:ae,formatter:de,precision:be,decimalSeparator:qt,groupSeparator:ze="",prefixCls:Vt}=ne;let Ge;if(typeof de=="function")Ge=de(ae);else{const _e=String(ae),Ne=_e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ne||_e==="-")Ge=_e;else{const We=Ne[1];let Re=Ne[2]||"0",ve=Ne[4]||"";Re=Re.replace(/\B(?=(\d{3})+(?!\d))/g,ze),typeof be=="number"&&(ve=ve.padEnd(be,"0").slice(0,be>0?be:0)),ve&&(ve=`${qt}${ve}`),Ge=[Ft.createElement("span",{key:"int",className:`${Vt}-content-value-int`},We,Re),ve&&Ft.createElement("span",{key:"decimal",className:`${Vt}-content-value-decimal`},ve)]}}return Ft.createElement("span",{className:`${Vt}-content-value`},Ge)},Pt=bt(17313),oe=bt(83116),zt=bt(37613);const Jt=ne=>{const{componentCls:ae,marginXXS:de,padding:be,colorTextDescription:qt,titleFontSize:ze,colorTextHeading:Vt,contentFontSize:Ge,fontFamily:_e}=ne;return{[`${ae}`]:Object.assign(Object.assign({},(0,Pt.Wf)(ne)),{[`${ae}-title`]:{marginBottom:de,color:qt,fontSize:ze},[`${ae}-skeleton`]:{paddingTop:be},[`${ae}-content`]:{color:Vt,fontSize:Ge,fontFamily:_e,[`${ae}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ae}-content-prefix, ${ae}-content-suffix`]:{display:"inline-block"},[`${ae}-content-prefix`]:{marginInlineEnd:de},[`${ae}-content-suffix`]:{marginInlineStart:de}}})}};var Ct=(0,oe.Z)("Statistic",ne=>{const ae=(0,zt.TS)(ne,{});return[Jt(ae)]},ne=>{const{fontSizeHeading3:ae,fontSize:de}=ne;return{titleFontSize:de,contentFontSize:ae}}),tt=ne=>{const{prefixCls:ae,className:de,rootClassName:be,style:qt,valueStyle:ze,value:Vt=0,title:Ge,valueRender:_e,prefix:Ne,suffix:We,loading:Re=!1,onMouseEnter:ve,onMouseLeave:ie,decimalSeparator:Se=".",groupSeparator:Bn=","}=ne,{getPrefixCls:Ln,direction:Ye,statistic:Mn}=Ft.useContext(Yt.E_),Wn=Ln("statistic",ae),[fi,Hn]=Ct(Wn),xi=Ft.createElement(Xt,Object.assign({decimalSeparator:Se,groupSeparator:Bn,prefixCls:Wn},ne,{value:Vt})),nn=ee()(Wn,{[`${Wn}-rtl`]:Ye==="rtl"},Mn==null?void 0:Mn.className,de,be,Hn);return fi(Ft.createElement("div",{className:nn,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),qt),onMouseEnter:ve,onMouseLeave:ie},Ge&&Ft.createElement("div",{className:`${Wn}-title`},Ge),Ft.createElement(It.Z,{paragraph:!1,loading:Re,className:`${Wn}-skeleton`},Ft.createElement("div",{style:ze,className:`${Wn}-content`},Ne&&Ft.createElement("span",{className:`${Wn}-content-prefix`},Ne),_e?_e(xi):xi,We&&Ft.createElement("span",{className:`${Wn}-content-suffix`},We)))))};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(ne,ae){let de=ne;const be=/\[[^\]]*]/g,qt=(ae.match(be)||[]).map(_e=>_e.slice(1,-1)),ze=ae.replace(be,"[]"),Vt=lt.reduce((_e,Ne)=>{let[We,Re]=Ne;if(_e.includes(We)){const ve=Math.floor(de/Re);return de-=ve*Re,_e.replace(new RegExp(`${We}+`,"g"),ie=>{const Se=ie.length;return ve.toString().padStart(Se,"0")})}return _e},ze);let Ge=0;return Vt.replace(be,()=>{const _e=qt[Ge];return Ge+=1,_e})}function ut(ne,ae){const{format:de=""}=ae,be=new Date(ne).getTime(),qt=Date.now(),ze=Math.max(be-qt,0);return rt(ze,de)}const ct=1e3/30;function wt(ne){return new Date(ne).getTime()}const Mt=ne=>{const{value:ae,format:de="HH:mm:ss",onChange:be,onFinish:qt}=ne,ze=(0,ce.Z)(),Vt=Ft.useRef(null),Ge=()=>{qt==null||qt(),Vt.current&&(clearInterval(Vt.current),Vt.current=null)},_e=()=>{const Re=wt(ae);Re>=Date.now()&&(Vt.current=setInterval(()=>{ze(),be==null||be(Re-Date.now()),Re<Date.now()&&Ge()},ct))};Ft.useEffect(()=>(_e(),()=>{Vt.current&&(clearInterval(Vt.current),Vt.current=null)}),[ae]);const Ne=(Re,ve)=>ut(Re,Object.assign(Object.assign({},ve),{format:de})),We=Re=>(0,re.Tm)(Re,{title:void 0});return Ft.createElement(tt,Object.assign({},ne,{valueRender:We,formatter:Ne}))};var Ot=Ft.memo(Mt);tt.Countdown=Ot;var Ht=tt},15969:function(ui,wn,bt){"use strict";bt.d(wn,{N:function(){return Ft}});const Ft=ce=>({color:ce.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ce.motionDurationSlow}`,"&:focus, &:hover":{color:ce.colorLinkHover},"&:active":{color:ce.colorLinkActive}})},78673:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ze}});var Ft=bt(58617),ce=bt(92310),re=bt.n(ce),Be=bt(72308),ee=bt(49618),Yt=bt(52487),It=bt(74416),jt=bt(59301),Xt=bt(18929),Pt=bt(10228),oe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],zt=jt.forwardRef(function(Vt,Ge){var _e,Ne=Vt.prefixCls,We=Ne===void 0?"rc-switch":Ne,Re=Vt.className,ve=Vt.checked,ie=Vt.defaultChecked,Se=Vt.disabled,Bn=Vt.loadingIcon,Ln=Vt.checkedChildren,Ye=Vt.unCheckedChildren,Mn=Vt.onClick,Wn=Vt.onChange,fi=Vt.onKeyDown,Hn=(0,It.Z)(Vt,oe),xi=(0,Xt.Z)(!1,{value:ve,defaultValue:ie}),nn=(0,Yt.Z)(xi,2),Fi=nn[0],ki=nn[1];function Nt(pt,At){var ue=Fi;return Se||(ue=pt,ki(ue),Wn==null||Wn(ue,At)),ue}function Dt(pt){pt.which===Pt.Z.LEFT?Nt(!1,pt):pt.which===Pt.Z.RIGHT&&Nt(!0,pt),fi==null||fi(pt)}function mt(pt){var At=Nt(!Fi,pt);Mn==null||Mn(At,pt)}var ft=re()(We,Re,(_e={},(0,ee.Z)(_e,"".concat(We,"-checked"),Fi),(0,ee.Z)(_e,"".concat(We,"-disabled"),Se),_e));return jt.createElement("button",(0,Be.Z)({},Hn,{type:"button",role:"switch","aria-checked":Fi,disabled:Se,className:ft,ref:Ge,onKeyDown:Dt,onClick:mt}),Bn,jt.createElement("span",{className:"".concat(We,"-inner")},jt.createElement("span",{className:"".concat(We,"-inner-checked")},Ln),jt.createElement("span",{className:"".concat(We,"-inner-unchecked")},Ye)))});zt.displayName="Switch";var Jt=zt,Ct=bt(14088),et=bt(36355),tt=bt(1684),lt=bt(19716),rt=bt(64993),ut=bt(17313),ct=bt(83116),wt=bt(37613);const Mt=Vt=>{const{componentCls:Ge,trackHeightSM:_e,trackPadding:Ne,trackMinWidthSM:We,innerMinMarginSM:Re,innerMaxMarginSM:ve,handleSizeSM:ie}=Vt,Se=`${Ge}-inner`;return{[Ge]:{[`&${Ge}-small`]:{minWidth:We,height:_e,lineHeight:`${_e}px`,[`${Ge}-inner`]:{paddingInlineStart:ve,paddingInlineEnd:Re,[`${Se}-checked`]:{marginInlineStart:`calc(-100% + ${ie+Ne*2}px - ${ve*2}px)`,marginInlineEnd:`calc(100% - ${ie+Ne*2}px + ${ve*2}px)`},[`${Se}-unchecked`]:{marginTop:-_e,marginInlineStart:0,marginInlineEnd:0}},[`${Ge}-handle`]:{width:ie,height:ie},[`${Ge}-loading-icon`]:{top:(ie-Vt.switchLoadingIconSize)/2,fontSize:Vt.switchLoadingIconSize},[`&${Ge}-checked`]:{[`${Ge}-inner`]:{paddingInlineStart:Re,paddingInlineEnd:ve,[`${Se}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Se}-unchecked`]:{marginInlineStart:`calc(100% - ${ie+Ne*2}px + ${ve*2}px)`,marginInlineEnd:`calc(-100% + ${ie+Ne*2}px - ${ve*2}px)`}},[`${Ge}-handle`]:{insetInlineStart:`calc(100% - ${ie+Ne}px)`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${Se}`]:{[`${Se}-unchecked`]:{marginInlineStart:Vt.marginXXS/2,marginInlineEnd:-Vt.marginXXS/2}},[`&${Ge}-checked ${Se}`]:{[`${Se}-checked`]:{marginInlineStart:-Vt.marginXXS/2,marginInlineEnd:Vt.marginXXS/2}}}}}}},Ot=Vt=>{const{componentCls:Ge,handleSize:_e}=Vt;return{[Ge]:{[`${Ge}-loading-icon${Vt.iconCls}`]:{position:"relative",top:(_e-Vt.fontSize)/2,color:Vt.switchLoadingIconColor,verticalAlign:"top"},[`&${Ge}-checked ${Ge}-loading-icon`]:{color:Vt.switchColor}}}},Ht=Vt=>{const{componentCls:Ge,motion:_e,trackPadding:Ne,handleBg:We,handleShadow:Re,handleSize:ve}=Vt,ie=`${Ge}-handle`;return{[Ge]:{[ie]:{position:"absolute",top:Ne,insetInlineStart:Ne,width:ve,height:ve,transition:`all ${Vt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:We,borderRadius:ve/2,boxShadow:Re,transition:`all ${Vt.switchDuration} ease-in-out`,content:'""'}},[`&${Ge}-checked ${ie}`]:{insetInlineStart:`calc(100% - ${ve+Ne}px)`},[`&:not(${Ge}-disabled):active`]:_e?{[`${ie}::before`]:{insetInlineEnd:Vt.switchHandleActiveInset,insetInlineStart:0},[`&${Ge}-checked ${ie}::before`]:{insetInlineEnd:0,insetInlineStart:Vt.switchHandleActiveInset}}:{}}}},ne=Vt=>{const{componentCls:Ge,trackHeight:_e,trackPadding:Ne,innerMinMargin:We,innerMaxMargin:Re,handleSize:ve}=Vt,ie=`${Ge}-inner`;return{[Ge]:{[ie]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Re,paddingInlineEnd:We,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% + ${ve+Ne*2}px - ${Re*2}px)`,marginInlineEnd:`calc(100% - ${ve+Ne*2}px + ${Re*2}px)`},[`${ie}-unchecked`]:{marginTop:-_e,marginInlineStart:0,marginInlineEnd:0}},[`&${Ge}-checked ${ie}`]:{paddingInlineStart:We,paddingInlineEnd:Re,[`${ie}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ie}-unchecked`]:{marginInlineStart:`calc(100% - ${ve+Ne*2}px + ${Re*2}px)`,marginInlineEnd:`calc(-100% + ${ve+Ne*2}px - ${Re*2}px)`}},[`&:not(${Ge}-disabled):active`]:{[`&:not(${Ge}-checked) ${ie}`]:{[`${ie}-unchecked`]:{marginInlineStart:Ne*2,marginInlineEnd:-Ne*2}},[`&${Ge}-checked ${ie}`]:{[`${ie}-checked`]:{marginInlineStart:-Ne*2,marginInlineEnd:Ne*2}}}}}},ae=Vt=>{const{componentCls:Ge,trackHeight:_e,trackMinWidth:Ne}=Vt;return{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(Vt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ne,height:_e,lineHeight:`${_e}px`,verticalAlign:"middle",background:Vt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Vt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ge}-disabled)`]:{background:Vt.colorTextTertiary}}),(0,ut.Qy)(Vt)),{[`&${Ge}-checked`]:{background:Vt.switchColor,[`&:hover:not(${Ge}-disabled)`]:{background:Vt.colorPrimaryHover}},[`&${Ge}-loading, &${Ge}-disabled`]:{cursor:"not-allowed",opacity:Vt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ge}-rtl`]:{direction:"rtl"}})}};var de=(0,ct.Z)("Switch",Vt=>{const Ge=(0,wt.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[ae(Ge),ne(Ge),Ht(Ge),Ot(Ge),Mt(Ge)]},Vt=>{const{fontSize:Ge,lineHeight:_e,controlHeight:Ne,colorWhite:We}=Vt,Re=Ge*_e,ve=Ne/2,ie=2,Se=Re-ie*2,Bn=ve-ie*2;return{trackHeight:Re,trackHeightSM:ve,trackMinWidth:Se*2+ie*4,trackMinWidthSM:Bn*2+ie*2,trackPadding:ie,handleBg:We,handleSize:Se,handleSizeSM:Bn,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Se/2,innerMaxMargin:Se+ie+ie*2,innerMinMarginSM:Bn/2,innerMaxMarginSM:Bn+ie+ie*2}}),be=function(Vt,Ge){var _e={};for(var Ne in Vt)Object.prototype.hasOwnProperty.call(Vt,Ne)&&Ge.indexOf(Ne)<0&&(_e[Ne]=Vt[Ne]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ne=Object.getOwnPropertySymbols(Vt);We<Ne.length;We++)Ge.indexOf(Ne[We])<0&&Object.prototype.propertyIsEnumerable.call(Vt,Ne[We])&&(_e[Ne[We]]=Vt[Ne[We]]);return _e};const qt=jt.forwardRef((Vt,Ge)=>{const{prefixCls:_e,size:Ne,disabled:We,loading:Re,className:ve,rootClassName:ie,style:Se}=Vt,Bn=be(Vt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Ln,direction:Ye,switch:Mn}=jt.useContext(et.E_),Wn=jt.useContext(tt.Z),fi=(We!=null?We:Wn)||Re,Hn=Ln("switch",_e),xi=jt.createElement("div",{className:`${Hn}-handle`},Re&&jt.createElement(Ft.Z,{className:`${Hn}-loading-icon`})),[nn,Fi]=de(Hn),ki=(0,lt.Z)(Ne),Nt=re()(Mn==null?void 0:Mn.className,{[`${Hn}-small`]:ki==="small",[`${Hn}-loading`]:Re,[`${Hn}-rtl`]:Ye==="rtl"},ve,ie,Fi),Dt=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Se);return nn(jt.createElement(Ct.Z,{component:"Switch"},jt.createElement(Jt,Object.assign({},Bn,{prefixCls:Hn,className:Nt,style:Dt,disabled:fi,ref:Ge,loadingIcon:xi}))))});qt.__ANT_SWITCH=!0;var ze=qt},1710:function(ui,wn,bt){"use strict";bt.d(wn,{default:function(){return Zi}});var Ft={},ce="rc-table-internal-hook",re=bt(52487),Be=bt(6089),ee=bt(34280),Yt=bt(13697),It=bt(59301),jt=bt(4676);function Xt(ge){var Ce=It.createContext(void 0),Ve=function(un){var hn=un.value,Tn=un.children,Xn=It.useRef(hn);Xn.current=hn;var Te=It.useState(function(){return{getValue:function(){return Xn.current},listeners:new Set}}),ln=(0,re.Z)(Te,1),vn=ln[0];return(0,ee.Z)(function(){(0,jt.unstable_batchedUpdates)(function(){vn.listeners.forEach(function(En){En(hn)})})},[hn]),It.createElement(Ce.Provider,{value:vn},Tn)};return{Context:Ce,Provider:Ve,defaultValue:ge}}function Pt(ge,Ce){var Ve=(0,Be.Z)(typeof Ce=="function"?Ce:function(En){if(Ce===void 0)return En;if(!Array.isArray(Ce))return En[Ce];var Vn={};return Ce.forEach(function(li){Vn[li]=En[li]}),Vn}),en=It.useContext(ge==null?void 0:ge.Context),un=en||{},hn=un.listeners,Tn=un.getValue,Xn=It.useRef();Xn.current=Ve(en?Tn():ge==null?void 0:ge.defaultValue);var Te=It.useState({}),ln=(0,re.Z)(Te,2),vn=ln[1];return(0,ee.Z)(function(){if(!en)return;function En(Vn){var li=Ve(Vn);(0,Yt.Z)(Xn.current,li,!0)||vn({})}return hn.add(En),function(){hn.delete(En)}},[en]),Xn.current}var oe=bt(72308),zt=bt(8654);function Jt(){var ge=It.createContext(null);function Ce(){return It.useContext(ge)}function Ve(un,hn){var Tn=(0,zt.Yr)(un),Xn=function(ln,vn){var En=Tn?{ref:vn}:{},Vn=It.useRef(0),li=It.useRef(ln),oi=Ce();return oi!==null?It.createElement(un,(0,oe.Z)({},ln,En)):((!hn||hn(li.current,ln))&&(Vn.current+=1),li.current=ln,It.createElement(ge.Provider,{value:Vn.current},It.createElement(un,(0,oe.Z)({},ln,En))))};return Tn?It.forwardRef(Xn):Xn}function en(un,hn){var Tn=(0,zt.Yr)(un),Xn=function(ln,vn){var En=Tn?{ref:vn}:{};return Ce(),It.createElement(un,(0,oe.Z)({},ln,En))};return Tn?It.memo(It.forwardRef(Xn),hn):It.memo(Xn,hn)}return{makeImmutable:Ve,responseImmutable:en,useImmutableMark:Ce}}var Ct=Jt(),et=Ct.makeImmutable,tt=Ct.responseImmutable,lt=Ct.useImmutableMark,rt=Jt(),ut=rt.makeImmutable,ct=rt.responseImmutable,wt=rt.useImmutableMark,Mt=Xt(),Ot=Mt;function Ht(ge,Ce){var Ve=It.useRef(0);Ve.current+=1;var en=It.useRef(ge),un=[];Object.keys(ge||{}).map(function(Tn){var Xn;(ge==null?void 0:ge[Tn])!==((Xn=en.current)===null||Xn===void 0?void 0:Xn[Tn])&&un.push(Tn)}),en.current=ge;var hn=It.useRef([]);return un.length&&(hn.current=un),It.useDebugValue(Ve.current),It.useDebugValue(hn.current.join(", ")),Ce&&console.log("".concat(Ce,":"),Ve.current,hn.current),Ve.current}var ne=null,ae=It.memo(function(){var ge=Ht();return It.createElement("h1",null,"Render Times: ",ge)});ae.displayName="RenderBlock";var de=bt(62853),be=bt(77321),qt=bt(49618),ze=bt(92310),Vt=bt.n(ze),Ge=bt(80547),_e=bt(97938),Ne=bt(48736),We=It.createContext({renderWithProps:!1}),Re=We,ve="RC_TABLE_KEY";function ie(ge){return ge==null?[]:Array.isArray(ge)?ge:[ge]}function Se(ge){var Ce=[],Ve={};return ge.forEach(function(en){for(var un=en||{},hn=un.key,Tn=un.dataIndex,Xn=hn||ie(Tn).join("-")||ve;Ve[Xn];)Xn="".concat(Xn,"_next");Ve[Xn]=!0,Ce.push(Xn)}),Ce}function Bn(ge){return ge!=null}function Ln(ge){return ge&&(0,de.Z)(ge)==="object"&&!Array.isArray(ge)&&!It.isValidElement(ge)}function Ye(ge,Ce,Ve,en,un,hn){var Tn=It.useContext(Re),Xn=wt(),Te=(0,Ge.Z)(function(){if(Bn(en))return[en];var ln=Ce==null||Ce===""?[]:Array.isArray(Ce)?Ce:[Ce],vn=(0,_e.Z)(ge,ln),En=vn,Vn=void 0;if(un){var li=un(vn,ge,Ve);Ln(li)?(En=li.children,Vn=li.props,Tn.renderWithProps=!0):En=li}return[En,Vn]},[Xn,ge,en,Ce,un,Ve],function(ln,vn){if(hn){var En=(0,re.Z)(ln,2),Vn=En[1],li=(0,re.Z)(vn,2),oi=li[1];return hn(oi,Vn)}return Tn.renderWithProps?!0:!(0,Yt.Z)(ln,vn,!0)});return Te}function Mn(ge,Ce,Ve,en){var un=ge+Ce-1;return ge<=en&&un>=Ve}function Wn(ge,Ce){return Pt(Ot,function(Ve){var en=Mn(ge,Ce||1,Ve.hoverStartRow,Ve.hoverEndRow);return[en,Ve.onHover]})}var fi=function(Ce){var Ve=Ce.ellipsis,en=Ce.rowType,un=Ce.children,hn,Tn=Ve===!0?{showTitle:!0}:Ve;return Tn&&(Tn.showTitle||en==="header")&&(typeof un=="string"||typeof un=="number"?hn=un.toString():It.isValidElement(un)&&typeof un.props.children=="string"&&(hn=un.props.children)),hn};function Hn(ge){var Ce,Ve,en,un,hn,Tn,Xn,Te,ln=ge.component,vn=ge.children,En=ge.ellipsis,Vn=ge.scope,li=ge.prefixCls,oi=ge.className,Ei=ge.align,Ii=ge.record,$i=ge.render,sr=ge.dataIndex,Ar=ge.renderIndex,Jr=ge.shouldCellUpdate,Xi=ge.index,_n=ge.rowType,oo=ge.colSpan,lo=ge.rowSpan,ir=ge.fixLeft,yr=ge.fixRight,fr=ge.firstFixLeft,nr=ge.lastFixLeft,Or=ge.firstFixRight,uo=ge.lastFixRight,So=ge.appendNode,Fo=ge.additionalProps,zr=Fo===void 0?{}:Fo,Vo=ge.isSticky,Mo="".concat(li,"-cell"),hs=Pt(Ot,["supportSticky","allColumnsFixedLeft"]),ho=hs.supportSticky,Pa=hs.allColumnsFixedLeft,Os=Ye(Ii,sr,Ar,vn,$i,Jr),Ps=(0,re.Z)(Os,2),Io=Ps[0],Fs=Ps[1],$a={},js=typeof ir=="number"&&ho,jl=typeof yr=="number"&&ho;js&&($a.position="sticky",$a.left=ir),jl&&($a.position="sticky",$a.right=yr);var Po=(Ce=(Ve=(en=Fs==null?void 0:Fs.colSpan)!==null&&en!==void 0?en:zr.colSpan)!==null&&Ve!==void 0?Ve:oo)!==null&&Ce!==void 0?Ce:1,as=(un=(hn=(Tn=Fs==null?void 0:Fs.rowSpan)!==null&&Tn!==void 0?Tn:zr.rowSpan)!==null&&hn!==void 0?hn:lo)!==null&&un!==void 0?un:1,ds=Wn(Xi,as),ko=(0,re.Z)(ds,2),Jo=ko[0],bo=ko[1],Ls=function(po){var Ra;Ii&&bo(Xi,Xi+as-1),zr==null||(Ra=zr.onMouseEnter)===null||Ra===void 0||Ra.call(zr,po)},_s=function(po){var Ra;Ii&&bo(-1,-1),zr==null||(Ra=zr.onMouseLeave)===null||Ra===void 0||Ra.call(zr,po)};if(Po===0||as===0)return null;var ea=(Xn=zr.title)!==null&&Xn!==void 0?Xn:fi({rowType:_n,ellipsis:En,children:Io}),Yl=Vt()(Mo,oi,(Te={},(0,qt.Z)(Te,"".concat(Mo,"-fix-left"),js&&ho),(0,qt.Z)(Te,"".concat(Mo,"-fix-left-first"),fr&&ho),(0,qt.Z)(Te,"".concat(Mo,"-fix-left-last"),nr&&ho),(0,qt.Z)(Te,"".concat(Mo,"-fix-left-all"),nr&&Pa&&ho),(0,qt.Z)(Te,"".concat(Mo,"-fix-right"),jl&&ho),(0,qt.Z)(Te,"".concat(Mo,"-fix-right-first"),Or&&ho),(0,qt.Z)(Te,"".concat(Mo,"-fix-right-last"),uo&&ho),(0,qt.Z)(Te,"".concat(Mo,"-ellipsis"),En),(0,qt.Z)(Te,"".concat(Mo,"-with-append"),So),(0,qt.Z)(Te,"".concat(Mo,"-fix-sticky"),(js||jl)&&Vo&&ho),(0,qt.Z)(Te,"".concat(Mo,"-row-hover"),!Fs&&Jo),Te),zr.className,Fs==null?void 0:Fs.className),As={};Ei&&(As.textAlign=Ei);var eu=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},$a),zr.style),As),Fs==null?void 0:Fs.style),fa=Io;return(0,de.Z)(fa)==="object"&&!Array.isArray(fa)&&!It.isValidElement(fa)&&(fa=null),En&&(nr||Or)&&(fa=It.createElement("span",{className:"".concat(Mo,"-content")},fa)),It.createElement(ln,(0,oe.Z)({},Fs,zr,{className:Yl,style:eu,title:ea,scope:Vn,onMouseEnter:Ls,onMouseLeave:_s,colSpan:Po!==1?Po:null,rowSpan:as!==1?as:null}),So,fa)}var xi=It.memo(Hn);function nn(ge,Ce,Ve,en,un,hn){var Tn=Ve[ge]||{},Xn=Ve[Ce]||{},Te,ln;Tn.fixed==="left"?Te=en.left[un==="rtl"?Ce:ge]:Xn.fixed==="right"&&(ln=en.right[un==="rtl"?ge:Ce]);var vn=!1,En=!1,Vn=!1,li=!1,oi=Ve[Ce+1],Ei=Ve[ge-1],Ii=!(hn!=null&&hn.children);if(un==="rtl"){if(Te!==void 0){var $i=Ei&&Ei.fixed==="left";li=!$i&&Ii}else if(ln!==void 0){var sr=oi&&oi.fixed==="right";Vn=!sr&&Ii}}else if(Te!==void 0){var Ar=oi&&oi.fixed==="left";vn=!Ar&&Ii}else if(ln!==void 0){var Jr=Ei&&Ei.fixed==="right";En=!Jr&&Ii}return{fixLeft:Te,fixRight:ln,lastFixLeft:vn,firstFixRight:En,lastFixRight:Vn,firstFixLeft:li,isSticky:en.isSticky}}var Fi=It.createContext({}),ki=Fi;function Nt(ge){var Ce=ge.className,Ve=ge.index,en=ge.children,un=ge.colSpan,hn=un===void 0?1:un,Tn=ge.rowSpan,Xn=ge.align,Te=Pt(Ot,["prefixCls","direction"]),ln=Te.prefixCls,vn=Te.direction,En=It.useContext(ki),Vn=En.scrollColumnIndex,li=En.stickyOffsets,oi=En.flattenColumns,Ei=En.columns,Ii=Ve+hn-1,$i=Ii+1===Vn?hn+1:hn,sr=nn(Ve,Ve+$i-1,oi,li,vn,Ei==null?void 0:Ei[Ve]);return It.createElement(xi,(0,oe.Z)({className:Ce,index:Ve,component:"td",prefixCls:ln,record:null,dataIndex:null,align:Xn,colSpan:$i,rowSpan:Tn,render:function(){return en}},sr))}var Dt=bt(74416),mt=["children"];function ft(ge){var Ce=ge.children,Ve=(0,Dt.Z)(ge,mt);return It.createElement("tr",Ve,Ce)}function pt(ge){var Ce=ge.children;return Ce}pt.Row=ft,pt.Cell=Nt;var At=pt;function ue(ge){var Ce=ge.children,Ve=ge.stickyOffsets,en=ge.flattenColumns,un=ge.columns,hn=Pt(Ot,"prefixCls"),Tn=en.length-1,Xn=en[Tn],Te=It.useMemo(function(){return{stickyOffsets:Ve,flattenColumns:en,scrollColumnIndex:Xn!=null&&Xn.scrollbar?Tn:null,columns:un}},[Xn,en,Tn,Ve,un]);return It.createElement(ki.Provider,{value:Te},It.createElement("tfoot",{className:"".concat(hn,"-summary")},Ce))}var we=ct(ue),le=At,me=bt(70425),Ue=bt(29301),ke=bt(29194),Ie=bt(24514),rn=bt(75152),Gn=bt(26112);function dn(ge,Ce,Ve,en,un,hn,Tn){ge.push({record:Ce,indent:Ve,index:Tn});var Xn=hn(Ce),Te=un==null?void 0:un.has(Xn);if(Ce&&Array.isArray(Ce[en])&&Te)for(var ln=0;ln<Ce[en].length;ln+=1)dn(ge,Ce[en][ln],Ve+1,en,un,hn,ln)}function An(ge,Ce,Ve,en){var un=It.useMemo(function(){if(Ve!=null&&Ve.size){for(var hn=[],Tn=0;Tn<(ge==null?void 0:ge.length);Tn+=1){var Xn=ge[Tn];dn(hn,Xn,0,Ce,Ve,en,Tn)}return hn}return ge==null?void 0:ge.map(function(Te,ln){return{record:Te,indent:0,index:ln}})},[ge,Ce,Ve,en]);return un}function Dn(ge){var Ce=ge.prefixCls,Ve=ge.children,en=ge.component,un=ge.cellComponent,hn=ge.className,Tn=ge.expanded,Xn=ge.colSpan,Te=ge.isEmpty,ln=Pt(Ot,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),vn=ln.scrollbarSize,En=ln.fixHeader,Vn=ln.fixColumn,li=ln.componentWidth,oi=ln.horizonScroll,Ei=Ve;return(Te?oi&&li:Vn)&&(Ei=It.createElement("div",{style:{width:li-(En?vn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ce,"-expanded-row-fixed")},Ei)),It.createElement(en,{className:hn,style:{display:Tn?null:"none"}},It.createElement(xi,{component:un,prefixCls:Ce,colSpan:Xn},Ei))}var qn=Dn;function Rn(ge,Ce,Ve,en){var un=Pt(Ot,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),hn=un.flattenColumns,Tn=un.expandableType,Xn=un.expandedKeys,Te=un.childrenColumnName,ln=un.onTriggerExpand,vn=un.rowExpandable,En=un.onRow,Vn=un.expandRowByClick,li=un.rowClassName,oi=Tn==="nest",Ei=Tn==="row"&&(!vn||vn(ge)),Ii=Ei||oi,$i=Xn&&Xn.has(Ce),sr=Te&&ge&&ge[Te],Ar=(0,me.useEvent)(ln),Jr=En==null?void 0:En(ge,Ve),Xi=Jr==null?void 0:Jr.onClick,_n=function(yr){Vn&&Ii&&ln(ge,yr);for(var fr=arguments.length,nr=new Array(fr>1?fr-1:0),Or=1;Or<fr;Or++)nr[Or-1]=arguments[Or];Xi==null||Xi.apply(void 0,[yr].concat(nr))},oo;typeof li=="string"?oo=li:typeof li=="function"&&(oo=li(ge,Ve,en));var lo=Se(hn);return(0,be.Z)((0,be.Z)({},un),{},{columnsKey:lo,nestExpandable:oi,expanded:$i,hasNestChildren:sr,record:ge,onTriggerExpand:Ar,rowSupportExpand:Ei,expandable:Ii,rowProps:(0,be.Z)((0,be.Z)({},Jr),{},{className:Vt()(oo,Jr==null?void 0:Jr.className),onClick:_n})})}function Di(ge,Ce,Ve,en,un){var hn=ge.record,Tn=ge.prefixCls,Xn=ge.columnsKey,Te=ge.fixedInfoList,ln=ge.expandIconColumnIndex,vn=ge.nestExpandable,En=ge.indentSize,Vn=ge.expandIcon,li=ge.expanded,oi=ge.hasNestChildren,Ei=ge.onTriggerExpand,Ii=Xn[Ve],$i=Te[Ve],sr;Ve===(ln||0)&&vn&&(sr=It.createElement(It.Fragment,null,It.createElement("span",{style:{paddingLeft:"".concat(En*en,"px")},className:"".concat(Tn,"-row-indent indent-level-").concat(en)}),Vn({prefixCls:Tn,expanded:li,expandable:oi,record:hn,onExpand:Ei})));var Ar;return Ce.onCell&&(Ar=Ce.onCell(hn,un)),{key:Ii,fixedInfo:$i,appendCellNode:sr,additionalCellProps:Ar||{}}}function cr(ge){var Ce=ge.className,Ve=ge.style,en=ge.record,un=ge.index,hn=ge.renderIndex,Tn=ge.rowKey,Xn=ge.indent,Te=Xn===void 0?0:Xn,ln=ge.rowComponent,vn=ge.cellComponent,En=ge.scopeCellComponent,Vn=Rn(en,Tn,un,Te),li=Vn.prefixCls,oi=Vn.flattenColumns,Ei=Vn.expandedRowClassName,Ii=Vn.expandedRowRender,$i=Vn.rowProps,sr=Vn.expanded,Ar=Vn.rowSupportExpand,Jr=It.useState(!1),Xi=(0,re.Z)(Jr,2),_n=Xi[0],oo=Xi[1];It.useEffect(function(){sr&&oo(!0)},[sr]);var lo=It.createElement(ln,(0,oe.Z)({},$i,{"data-row-key":Tn,className:Vt()(Ce,"".concat(li,"-row"),"".concat(li,"-row-level-").concat(Te),$i==null?void 0:$i.className),style:(0,be.Z)((0,be.Z)({},Ve),$i==null?void 0:$i.style)}),oi.map(function(nr,Or){var uo=nr.render,So=nr.dataIndex,Fo=nr.className,zr=Di(Vn,nr,Or,Te,un),Vo=zr.key,Mo=zr.fixedInfo,hs=zr.appendCellNode,ho=zr.additionalCellProps;return It.createElement(xi,(0,oe.Z)({className:Fo,ellipsis:nr.ellipsis,align:nr.align,scope:nr.rowScope,component:nr.rowScope?En:vn,prefixCls:li,key:Vo,record:en,index:un,renderIndex:hn,dataIndex:So,render:uo,shouldCellUpdate:nr.shouldCellUpdate},Mo,{appendNode:hs,additionalProps:ho}))})),ir;if(Ar&&(_n||sr)){var yr=Ii(en,un,Te+1,sr),fr=Ei&&Ei(en,un,Te);ir=It.createElement(qn,{expanded:sr,className:Vt()("".concat(li,"-expanded-row"),"".concat(li,"-expanded-row-level-").concat(Te+1),fr),prefixCls:li,component:ln,cellComponent:vn,colSpan:oi.length,isEmpty:!1},yr)}return It.createElement(It.Fragment,null,lo,ir)}cr.displayName="BodyRow";var Ji=ct(cr);function Sr(ge){var Ce=ge.columnKey,Ve=ge.onColumnResize,en=It.useRef();return It.useEffect(function(){en.current&&Ve(Ce,en.current.offsetWidth)},[]),It.createElement(Ue.Z,{data:Ce},It.createElement("td",{ref:en,style:{padding:0,border:0,height:0}},It.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Nr(ge){var Ce=ge.prefixCls,Ve=ge.columnsKey,en=ge.onColumnResize;return It.createElement("tr",{"aria-hidden":"true",className:"".concat(Ce,"-measure-row"),style:{height:0,fontSize:0}},It.createElement(Ue.Z.Collection,{onBatchResize:function(hn){hn.forEach(function(Tn){var Xn=Tn.data,Te=Tn.size;en(Xn,Te.offsetWidth)})}},Ve.map(function(un){return It.createElement(Sr,{key:un,columnKey:un,onColumnResize:en})})))}function co(ge){var Ce=ge.data,Ve=ge.measureColumnWidth,en=Pt(Ot,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),un=en.prefixCls,hn=en.getComponent,Tn=en.onColumnResize,Xn=en.flattenColumns,Te=en.getRowKey,ln=en.expandedKeys,vn=en.childrenColumnName,En=en.emptyNode,Vn=An(Ce,vn,ln,Te),li=It.useRef({renderWithProps:!1}),oi=hn(["body","wrapper"],"tbody"),Ei=hn(["body","row"],"tr"),Ii=hn(["body","cell"],"td"),$i=hn(["body","cell"],"th"),sr;Ce.length?sr=Vn.map(function(Jr,Xi){var _n=Jr.record,oo=Jr.indent,lo=Jr.index,ir=Te(_n,Xi);return It.createElement(Ji,{key:ir,rowKey:ir,record:_n,index:Xi,renderIndex:lo,rowComponent:Ei,cellComponent:Ii,scopeCellComponent:$i,getRowKey:Te,indent:oo})}):sr=It.createElement(qn,{expanded:!0,className:"".concat(un,"-placeholder"),prefixCls:un,component:Ei,cellComponent:Ii,colSpan:Xn.length,isEmpty:!0},En);var Ar=Se(Xn);return It.createElement(Re.Provider,{value:li.current},It.createElement(oi,{className:"".concat(un,"-tbody")},Ve&&It.createElement(Nr,{prefixCls:un,columnsKey:Ar,onColumnResize:Tn}),sr))}co.displayName="Body";var to=ct(co),Kr=["expandable"],gr="RC_TABLE_INTERNAL_COL_DEFINE";function Vr(ge){var Ce=ge.expandable,Ve=(0,Dt.Z)(ge,Kr),en;return"expandable"in ge?en=(0,be.Z)((0,be.Z)({},Ve),Ce):en=Ve,en.showExpandColumn===!1&&(en.expandIconColumnIndex=-1),en}var pr=["columnType"];function zo(ge){for(var Ce=ge.colWidths,Ve=ge.columns,en=ge.columCount,un=[],hn=en||Ve.length,Tn=!1,Xn=hn-1;Xn>=0;Xn-=1){var Te=Ce[Xn],ln=Ve&&Ve[Xn],vn=ln&&ln[gr];if(Te||vn||Tn){var En=vn||{},Vn=En.columnType,li=(0,Dt.Z)(En,pr);un.unshift(It.createElement("col",(0,oe.Z)({key:Xn,style:{width:Te}},li))),Tn=!0}}return It.createElement("colgroup",null,un)}var es=zo,yo=bt(80702),ks=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ws(ge,Ce){return(0,It.useMemo)(function(){for(var Ve=[],en=0;en<Ce;en+=1){var un=ge[en];if(un!==void 0)Ve[en]=un;else return null}return Ve},[ge.join("_"),Ce])}var Wt=It.forwardRef(function(ge,Ce){var Ve=ge.className,en=ge.noData,un=ge.columns,hn=ge.flattenColumns,Tn=ge.colWidths,Xn=ge.columCount,Te=ge.stickyOffsets,ln=ge.direction,vn=ge.fixHeader,En=ge.stickyTopOffset,Vn=ge.stickyBottomOffset,li=ge.stickyClassName,oi=ge.onScroll,Ei=ge.maxContentScroll,Ii=ge.children,$i=(0,Dt.Z)(ge,ks),sr=Pt(Ot,["prefixCls","scrollbarSize","isSticky"]),Ar=sr.prefixCls,Jr=sr.scrollbarSize,Xi=sr.isSticky,_n=Xi&&!vn?0:Jr,oo=It.useRef(null),lo=It.useCallback(function(Fo){(0,zt.mH)(Ce,Fo),(0,zt.mH)(oo,Fo)},[]);It.useEffect(function(){var Fo;function zr(Vo){var Mo=Vo,hs=Mo.currentTarget,ho=Mo.deltaX;ho&&(oi({currentTarget:hs,scrollLeft:hs.scrollLeft+ho}),Vo.preventDefault())}return(Fo=oo.current)===null||Fo===void 0||Fo.addEventListener("wheel",zr),function(){var Vo;(Vo=oo.current)===null||Vo===void 0||Vo.removeEventListener("wheel",zr)}},[]);var ir=It.useMemo(function(){return hn.every(function(Fo){return Fo.width})},[hn]),yr=hn[hn.length-1],fr={fixed:yr?yr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ar,"-cell-scrollbar")}}},nr=(0,It.useMemo)(function(){return _n?[].concat((0,yo.Z)(un),[fr]):un},[_n,un]),Or=(0,It.useMemo)(function(){return _n?[].concat((0,yo.Z)(hn),[fr]):hn},[_n,hn]),uo=(0,It.useMemo)(function(){var Fo=Te.right,zr=Te.left;return(0,be.Z)((0,be.Z)({},Te),{},{left:ln==="rtl"?[].concat((0,yo.Z)(zr.map(function(Vo){return Vo+_n})),[0]):zr,right:ln==="rtl"?Fo:[].concat((0,yo.Z)(Fo.map(function(Vo){return Vo+_n})),[0]),isSticky:Xi})},[_n,Te,Xi]),So=ws(Tn,Xn);return It.createElement("div",{style:(0,be.Z)({overflow:"hidden"},Xi?{top:En,bottom:Vn}:{}),ref:lo,className:Vt()(Ve,(0,qt.Z)({},li,!!li))},It.createElement("table",{style:{tableLayout:"fixed",visibility:en||So?null:"hidden"}},(!en||!Ei||ir)&&It.createElement(es,{colWidths:So?[].concat((0,yo.Z)(So),[_n]):[],columCount:Xn+1,columns:Or}),Ii((0,be.Z)((0,be.Z)({},$i),{},{stickyOffsets:uo,columns:nr,flattenColumns:Or}))))});Wt.displayName="FixedHolder";var xs=It.memo(Wt);function Ss(ge){var Ce=ge.cells,Ve=ge.stickyOffsets,en=ge.flattenColumns,un=ge.rowComponent,hn=ge.cellComponent,Tn=ge.tdCellComponent,Xn=ge.onHeaderRow,Te=ge.index,ln=Pt(Ot,["prefixCls","direction"]),vn=ln.prefixCls,En=ln.direction,Vn;Xn&&(Vn=Xn(Ce.map(function(oi){return oi.column}),Te));var li=Se(Ce.map(function(oi){return oi.column}));return It.createElement(un,Vn,Ce.map(function(oi,Ei){var Ii=oi.column,$i=nn(oi.colStart,oi.colEnd,en,Ve,En,Ii),sr;return Ii&&Ii.onHeaderCell&&(sr=oi.column.onHeaderCell(Ii)),It.createElement(xi,(0,oe.Z)({},oi,{scope:Ii.title?oi.colSpan>1?"colgroup":"col":null,ellipsis:Ii.ellipsis,align:Ii.align,component:Ii.title?hn:Tn,prefixCls:vn,key:li[Ei]},$i,{additionalProps:sr,rowType:"header"}))}))}Ss.displayName="HeaderRow";var Ms=Ss;function ma(ge){var Ce=[];function Ve(Tn,Xn){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ce[Te]=Ce[Te]||[];var ln=Xn,vn=Tn.filter(Boolean).map(function(En){var Vn={key:En.key,className:En.className||"",children:En.title,column:En,colStart:ln},li=1,oi=En.children;return oi&&oi.length>0&&(li=Ve(oi,ln,Te+1).reduce(function(Ei,Ii){return Ei+Ii},0),Vn.hasSubColumns=!0),"colSpan"in En&&(li=En.colSpan),"rowSpan"in En&&(Vn.rowSpan=En.rowSpan),Vn.colSpan=li,Vn.colEnd=Vn.colStart+li-1,Ce[Te].push(Vn),ln+=li,li});return vn}Ve(ge,0);for(var en=Ce.length,un=function(Xn){Ce[Xn].forEach(function(Te){!("rowSpan"in Te)&&!Te.hasSubColumns&&(Te.rowSpan=en-Xn)})},hn=0;hn<en;hn+=1)un(hn);return Ce}function Ea(ge){var Ce=ge.stickyOffsets,Ve=ge.columns,en=ge.flattenColumns,un=ge.onHeaderRow,hn=Pt(Ot,["prefixCls","getComponent"]),Tn=hn.prefixCls,Xn=hn.getComponent,Te=It.useMemo(function(){return ma(Ve)},[Ve]),ln=Xn(["header","wrapper"],"thead"),vn=Xn(["header","row"],"tr"),En=Xn(["header","cell"],"th"),Vn=Xn(["header","cell"],"td");return It.createElement(ln,{className:"".concat(Tn,"-thead")},Te.map(function(li,oi){var Ei=It.createElement(Ms,{key:oi,flattenColumns:en,cells:li,stickyOffsets:Ce,rowComponent:vn,cellComponent:En,tdCellComponent:Vn,onHeaderRow:un,index:oi});return Ei}))}var oa=ct(Ea),so=bt(11592);function br(ge){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?ge*parseFloat(Ce)/100:null}function kn(ge,Ce){return It.useMemo(function(){if(Ce&&Ce>0){var Ve=0,en=0;ge.forEach(function(ln){var vn=br(Ce,ln.width);vn?Ve+=vn:en+=1});var un=Ce-Ve,hn=en,Tn=un/en,Xn=0,Te=ge.map(function(ln){var vn=(0,be.Z)({},ln),En=br(Ce,vn.width);if(En)vn.width=En;else{var Vn=Math.floor(Tn);vn.width=hn===1?un:Vn,un-=Vn,hn-=1}return Xn+=vn.width,vn});return[Te,Xn]}return[ge,Ce]},[ge,Ce])}var In=["children"],Oe=["fixed"];function hi(ge){return(0,so.Z)(ge).filter(function(Ce){return It.isValidElement(Ce)}).map(function(Ce){var Ve=Ce.key,en=Ce.props,un=en.children,hn=(0,Dt.Z)(en,In),Tn=(0,be.Z)({key:Ve},hn);return un&&(Tn.children=hi(un)),Tn})}function Je(ge){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ge.filter(function(Ve){return Ve&&(0,de.Z)(Ve)==="object"}).reduce(function(Ve,en,un){var hn=en.fixed,Tn=hn===!0?"left":hn,Xn="".concat(Ce,"-").concat(un),Te=en.children;return Te&&Te.length>0?[].concat((0,yo.Z)(Ve),(0,yo.Z)(Je(Te,Xn).map(function(ln){return(0,be.Z)({fixed:Tn},ln)}))):[].concat((0,yo.Z)(Ve),[(0,be.Z)((0,be.Z)({key:Xn},en),{},{fixed:Tn})])},[])}function fn(ge){for(var Ce=!0,Ve=0;Ve<ge.length;Ve+=1){var en=ge[Ve];if(Ce&&en.fixed!=="left")Ce=!1;else if(!Ce&&en.fixed==="left"){warning(!1,"Index ".concat(Ve-1," of `columns` missing `fixed='left'` prop."));break}}for(var un=!0,hn=ge.length-1;hn>=0;hn-=1){var Tn=ge[hn];if(un&&Tn.fixed!=="right")un=!1;else if(!un&&Tn.fixed==="right"){warning(!1,"Index ".concat(hn+1," of `columns` missing `fixed='right'` prop."));break}}}function Ke(ge){return ge.map(function(Ce){var Ve=Ce.fixed,en=(0,Dt.Z)(Ce,Oe),un=Ve;return Ve==="left"?un="right":Ve==="right"&&(un="left"),(0,be.Z)({fixed:un},en)})}function ni(ge,Ce){var Ve=ge.prefixCls,en=ge.columns,un=ge.children,hn=ge.expandable,Tn=ge.expandedKeys,Xn=ge.columnTitle,Te=ge.getRowKey,ln=ge.onTriggerExpand,vn=ge.expandIcon,En=ge.rowExpandable,Vn=ge.expandIconColumnIndex,li=ge.direction,oi=ge.expandRowByClick,Ei=ge.columnWidth,Ii=ge.fixed,$i=ge.scrollWidth,sr=It.useMemo(function(){return en||hi(un)},[en,un]),Ar=It.useMemo(function(){if(hn){var yr,fr=sr.slice();if(!fr.includes(Ft)){var nr=Vn||0;nr>=0&&fr.splice(nr,0,Ft)}var Or=fr.indexOf(Ft);fr=fr.filter(function(zr,Vo){return zr!==Ft||Vo===Or});var uo=sr[Or],So;(Ii==="left"||Ii)&&!Vn?So="left":(Ii==="right"||Ii)&&Vn===sr.length?So="right":So=uo?uo.fixed:null;var Fo=(yr={},(0,qt.Z)(yr,gr,{className:"".concat(Ve,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,qt.Z)(yr,"title",Xn),(0,qt.Z)(yr,"fixed",So),(0,qt.Z)(yr,"className","".concat(Ve,"-row-expand-icon-cell")),(0,qt.Z)(yr,"width",Ei),(0,qt.Z)(yr,"render",function(Vo,Mo,hs){var ho=Te(Mo,hs),Pa=Tn.has(ho),Os=En?En(Mo):!0,Ps=vn({prefixCls:Ve,expanded:Pa,expandable:Os,record:Mo,onExpand:ln});return oi?It.createElement("span",{onClick:function(Fs){return Fs.stopPropagation()}},Ps):Ps}),yr);return fr.map(function(zr){return zr===Ft?Fo:zr})}return sr.filter(function(zr){return zr!==Ft})},[hn,sr,Te,Tn,vn,li]),Jr=It.useMemo(function(){var yr=Ar;return Ce&&(yr=Ce(yr)),yr.length||(yr=[{render:function(){return null}}]),yr},[Ce,Ar,li]),Xi=It.useMemo(function(){return li==="rtl"?Ke(Je(Jr)):Je(Jr)},[Jr,li,$i]),_n=kn(Xi,$i),oo=(0,re.Z)(_n,2),lo=oo[0],ir=oo[1];return[Jr,lo,ir]}var Ci=ni;function _i(ge){var Ce,Ve=ge.prefixCls,en=ge.record,un=ge.onExpand,hn=ge.expanded,Tn=ge.expandable,Xn="".concat(Ve,"-row-expand-icon");if(!Tn)return It.createElement("span",{className:Vt()(Xn,"".concat(Ve,"-row-spaced"))});var Te=function(vn){un(en,vn),vn.stopPropagation()};return It.createElement("span",{className:Vt()(Xn,(Ce={},(0,qt.Z)(Ce,"".concat(Ve,"-row-expanded"),hn),(0,qt.Z)(Ce,"".concat(Ve,"-row-collapsed"),!hn),Ce)),onClick:Te})}function qi(ge,Ce,Ve){var en=[];function un(hn){(hn||[]).forEach(function(Tn,Xn){en.push(Ce(Tn,Xn)),un(Tn[Ve])})}return un(ge),en}function on(ge,Ce,Ve){var en=Vr(ge),un=en.expandIcon,hn=en.expandedRowKeys,Tn=en.defaultExpandedRowKeys,Xn=en.defaultExpandAllRows,Te=en.expandedRowRender,ln=en.onExpand,vn=en.onExpandedRowsChange,En=en.childrenColumnName,Vn=un||_i,li=En||"children",oi=It.useMemo(function(){return Te?"row":ge.expandable&&ge.internalHooks===ce&&ge.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Xi){return Xi&&(0,de.Z)(Xi)==="object"&&Xi[li]})?"nest":!1},[!!Te,Ce]),Ei=It.useState(function(){return Tn||(Xn?qi(Ce,Ve,li):[])}),Ii=(0,re.Z)(Ei,2),$i=Ii[0],sr=Ii[1],Ar=It.useMemo(function(){return new Set(hn||$i||[])},[hn,$i]),Jr=It.useCallback(function(Xi){var _n=Ve(Xi,Ce.indexOf(Xi)),oo,lo=Ar.has(_n);lo?(Ar.delete(_n),oo=(0,yo.Z)(Ar)):oo=[].concat((0,yo.Z)(Ar),[_n]),sr(oo),ln&&ln(!lo,Xi),vn&&vn(oo)},[Ve,Ar,Ce,ln,vn]);return[en,oi,Ar,Vn,li,Jr]}function di(ge,Ce,Ve,en){var un=ge.map(function(hn,Tn){return nn(Tn,Tn,ge,Ce,Ve,en==null?void 0:en[Tn])});return(0,Ge.Z)(function(){return un},[un],function(hn,Tn){return!(0,Yt.Z)(hn,Tn)})}function Vi(ge){var Ce=(0,It.useRef)(ge),Ve=(0,It.useState)({}),en=(0,re.Z)(Ve,2),un=en[1],hn=(0,It.useRef)(null),Tn=(0,It.useRef)([]);function Xn(Te){Tn.current.push(Te);var ln=Promise.resolve();hn.current=ln,ln.then(function(){if(hn.current===ln){var vn=Tn.current,En=Ce.current;Tn.current=[],vn.forEach(function(Vn){Ce.current=Vn(Ce.current)}),hn.current=null,En!==Ce.current&&un({})}})}return(0,It.useEffect)(function(){return function(){hn.current=null}},[]),[Ce.current,Xn]}function kr(ge){var Ce=(0,It.useRef)(ge||null),Ve=(0,It.useRef)();function en(){window.clearTimeout(Ve.current)}function un(Tn){Ce.current=Tn,en(),Ve.current=window.setTimeout(function(){Ce.current=null,Ve.current=void 0},100)}function hn(){return Ce.current}return(0,It.useEffect)(function(){return en},[]),[un,hn]}function ii(){var ge=It.useState(-1),Ce=(0,re.Z)(ge,2),Ve=Ce[0],en=Ce[1],un=It.useState(-1),hn=(0,re.Z)(un,2),Tn=hn[0],Xn=hn[1],Te=It.useCallback(function(ln,vn){en(ln),Xn(vn)},[]);return[Ve,Tn,Te]}var wi=bt(47273),dr=(0,wi.Z)()?window:null;function pi(ge,Ce){var Ve=(0,de.Z)(ge)==="object"?ge:{},en=Ve.offsetHeader,un=en===void 0?0:en,hn=Ve.offsetSummary,Tn=hn===void 0?0:hn,Xn=Ve.offsetScroll,Te=Xn===void 0?0:Xn,ln=Ve.getContainer,vn=ln===void 0?function(){return dr}:ln,En=vn()||dr;return It.useMemo(function(){var Vn=!!ge;return{isSticky:Vn,stickyClassName:Vn?"".concat(Ce,"-sticky-holder"):"",offsetHeader:un,offsetSummary:Tn,offsetScroll:Te,container:En}},[Te,un,Tn,Ce,En])}function yi(ge,Ce,Ve){var en=(0,It.useMemo)(function(){for(var un=[],hn=[],Tn=0,Xn=0,Te=0;Te<Ce;Te+=1)if(Ve==="rtl"){hn[Te]=Xn,Xn+=ge[Te]||0;var ln=Ce-Te-1;un[ln]=Tn,Tn+=ge[ln]||0}else{un[Te]=Tn,Tn+=ge[Te]||0;var vn=Ce-Te-1;hn[vn]=Xn,Xn+=ge[vn]||0}return{left:un,right:hn}},[ge,Ce,Ve]);return en}var vi=yi;function er(ge){var Ce=ge.className,Ve=ge.children;return It.createElement("div",{className:Ce},Ve)}var or=er,Rr=bt(8224),Zr=bt(55468),Xr=function(Ce,Ve){var en,un,hn=Ce.scrollBodyRef,Tn=Ce.onScroll,Xn=Ce.offsetScroll,Te=Ce.container,ln=Pt(Ot,"prefixCls"),vn=((en=hn.current)===null||en===void 0?void 0:en.scrollWidth)||0,En=((un=hn.current)===null||un===void 0?void 0:un.clientWidth)||0,Vn=vn&&En*(En/vn),li=It.useRef(),oi=Vi({scrollLeft:0,isHiddenScrollBar:!1}),Ei=(0,re.Z)(oi,2),Ii=Ei[0],$i=Ei[1],sr=It.useRef({delta:0,x:0}),Ar=It.useState(!1),Jr=(0,re.Z)(Ar,2),Xi=Jr[0],_n=Jr[1],oo=function(){_n(!1)},lo=function(Or){Or.persist(),sr.current.delta=Or.pageX-Ii.scrollLeft,sr.current.x=0,_n(!0),Or.preventDefault()},ir=function(Or){var uo,So=Or||((uo=window)===null||uo===void 0?void 0:uo.event),Fo=So.buttons;if(!Xi||Fo===0){Xi&&_n(!1);return}var zr=sr.current.x+Or.pageX-sr.current.x-sr.current.delta;zr<=0&&(zr=0),zr+Vn>=En&&(zr=En-Vn),Tn({scrollLeft:zr/En*(vn+2)}),sr.current.x=Or.pageX},yr=function(){if(hn.current){var Or=(0,Zr.os)(hn.current).top,uo=Or+hn.current.offsetHeight,So=Te===window?document.documentElement.scrollTop+window.innerHeight:(0,Zr.os)(Te).top+Te.clientHeight;uo-(0,rn.Z)()<=So||Or>=So-Xn?$i(function(Fo){return(0,be.Z)((0,be.Z)({},Fo),{},{isHiddenScrollBar:!0})}):$i(function(Fo){return(0,be.Z)((0,be.Z)({},Fo),{},{isHiddenScrollBar:!1})})}},fr=function(Or){$i(function(uo){return(0,be.Z)((0,be.Z)({},uo),{},{scrollLeft:Or/vn*En||0})})};return It.useImperativeHandle(Ve,function(){return{setScrollLeft:fr}}),It.useEffect(function(){var nr=(0,Rr.Z)(document.body,"mouseup",oo,!1),Or=(0,Rr.Z)(document.body,"mousemove",ir,!1);return yr(),function(){nr.remove(),Or.remove()}},[Vn,Xi]),It.useEffect(function(){var nr=(0,Rr.Z)(Te,"scroll",yr,!1),Or=(0,Rr.Z)(window,"resize",yr,!1);return function(){nr.remove(),Or.remove()}},[Te]),It.useEffect(function(){Ii.isHiddenScrollBar||$i(function(nr){var Or=hn.current;return Or?(0,be.Z)((0,be.Z)({},nr),{},{scrollLeft:Or.scrollLeft/Or.scrollWidth*Or.clientWidth}):nr})},[Ii.isHiddenScrollBar]),vn<=En||!Vn||Ii.isHiddenScrollBar?null:It.createElement("div",{style:{height:(0,rn.Z)(),width:En,bottom:Xn},className:"".concat(ln,"-sticky-scroll")},It.createElement("div",{onMouseDown:lo,ref:li,className:Vt()("".concat(ln,"-sticky-scroll-bar"),(0,qt.Z)({},"".concat(ln,"-sticky-scroll-bar-active"),Xi)),style:{width:"".concat(Vn,"px"),transform:"translate3d(".concat(Ii.scrollLeft,"px, 0, 0)")}}))},ei=It.forwardRef(Xr);function _o(ge){return null}var Zo=_o;function cs(ge){return null}var ri=cs,rr="rc-table",Er=[],no={};function Fr(){return"No Data"}function Gr(ge){var Ce,Ve=(0,be.Z)({rowKey:"key",prefixCls:rr,emptyText:Fr},ge),en=Ve.prefixCls,un=Ve.className,hn=Ve.rowClassName,Tn=Ve.style,Xn=Ve.data,Te=Ve.rowKey,ln=Ve.scroll,vn=Ve.tableLayout,En=Ve.direction,Vn=Ve.title,li=Ve.footer,oi=Ve.summary,Ei=Ve.caption,Ii=Ve.id,$i=Ve.showHeader,sr=Ve.components,Ar=Ve.emptyText,Jr=Ve.onRow,Xi=Ve.onHeaderRow,_n=Ve.internalHooks,oo=Ve.transformColumns,lo=Ve.internalRefs,ir=Ve.tailor,yr=Ve.sticky,fr=Xn||Er,nr=!!fr.length,Or=_n===ce,uo=It.useCallback(function(xa,hl){return(0,_e.Z)(sr,xa)||hl},[sr]),So=It.useMemo(function(){return typeof Te=="function"?Te:function(xa){var hl=xa&&xa[Te];return hl}},[Te]),Fo=uo(["body"]),zr=ii(),Vo=(0,re.Z)(zr,3),Mo=Vo[0],hs=Vo[1],ho=Vo[2],Pa=on(Ve,fr,So),Os=(0,re.Z)(Pa,6),Ps=Os[0],Io=Os[1],Fs=Os[2],$a=Os[3],js=Os[4],jl=Os[5],Po=ln==null?void 0:ln.x,as=It.useState(0),ds=(0,re.Z)(as,2),ko=ds[0],Jo=ds[1],bo=Ci((0,be.Z)((0,be.Z)((0,be.Z)({},Ve),Ps),{},{expandable:!!Ps.expandedRowRender,columnTitle:Ps.columnTitle,expandedKeys:Fs,getRowKey:So,onTriggerExpand:jl,expandIcon:$a,expandIconColumnIndex:Ps.expandIconColumnIndex,direction:En,scrollWidth:Or&&ir&&typeof Po=="number"?Po:null}),Or?oo:null),Ls=(0,re.Z)(bo,3),_s=Ls[0],ea=Ls[1],Yl=Ls[2],As=Yl!=null?Yl:Po,eu=It.useMemo(function(){return{columns:_s,flattenColumns:ea}},[_s,ea]),fa=It.useRef(),yl=It.useRef(),po=It.useRef(),Ra=It.useRef(),Nu=It.useRef(),wa=It.useState(!1),na=(0,re.Z)(wa,2),Na=na[0],Xa=na[1],ul=It.useState(!1),Qs=(0,re.Z)(ul,2),Ia=Qs[0],Nl=Qs[1],Iu=Vi(new Map),mu=(0,re.Z)(Iu,2),Tu=mu[0],Gu=mu[1],oh=Se(ea),sh=oh.map(function(xa){return Tu.get(xa)}),Va=It.useMemo(function(){return sh},[sh.join("_")]),Cu=vi(Va,ea.length,En),Sl=ln&&Bn(ln.y),dl=ln&&Bn(As)||!!Ps.fixed,ph=dl&&ea.some(function(xa){var hl=xa.fixed;return hl}),ec=It.useRef(),bh=pi(yr,en),Dh=bh.isSticky,fc=bh.offsetHeader,Wu=bh.offsetSummary,Ta=bh.offsetScroll,ra=bh.stickyClassName,uu=bh.container,wl=It.useMemo(function(){return oi==null?void 0:oi(fr)},[oi,fr]),ga=(Sl||Dh)&&It.isValidElement(wl)&&wl.type===At&&wl.props.fixed,hu,Ru,ku;Sl&&(Ru={overflowY:"scroll",maxHeight:ln.y}),dl&&(hu={overflowX:"auto"},Sl||(Ru={overflowY:"hidden"}),ku={width:As===!0?"auto":As,minWidth:"100%"});var Yc=It.useCallback(function(xa,hl){(0,ke.Z)(fa.current)&&Gu(function(Bu){if(Bu.get(xa)!==hl){var vh=new Map(Bu);return vh.set(xa,hl),vh}return Bu})},[]),jn=kr(null),nc=(0,re.Z)(jn,2),jh=nc[0],EA=nc[1];function $c(xa,hl){hl&&(typeof hl=="function"?hl(xa):hl.scrollLeft!==xa&&(hl.scrollLeft=xa,hl.scrollLeft!==xa&&setTimeout(function(){hl.scrollLeft=xa},0)))}var Fc=(0,Be.Z)(function(xa){var hl=xa.currentTarget,Bu=xa.scrollLeft,vh=En==="rtl",yh=typeof Bu=="number"?Bu:hl.scrollLeft,zd=hl||no;if(!EA()||EA()===zd){var Nc;jh(zd),$c(yh,yl.current),$c(yh,po.current),$c(yh,Nu.current),$c(yh,(Nc=ec.current)===null||Nc===void 0?void 0:Nc.setScrollLeft)}var Uh=hl||yl.current;if(Uh){var Vu=Uh.scrollWidth,Ic=Uh.clientWidth;if(Vu===Ic){Xa(!1),Nl(!1);return}vh?(Xa(-yh<Vu-Ic),Nl(-yh>0)):(Xa(yh>0),Nl(yh<Vu-Ic))}}),ad=function(){dl&&po.current?Fc({currentTarget:po.current}):(Xa(!1),Nl(!1))},HA=function(hl){var Bu=hl.width;Bu!==ko&&(ad(),Jo(fa.current?fa.current.offsetWidth:Bu))},vu=It.useRef(!1);It.useEffect(function(){vu.current&&ad()},[dl,Xn,_s.length]),It.useEffect(function(){vu.current=!0},[]);var Sd=It.useState(0),Rd=(0,re.Z)(Sd,2),ld=Rd[0],Lc=Rd[1],_d=It.useState(!0),Cd=(0,re.Z)(_d,2),ah=Cd[0],Ul=Cd[1];It.useEffect(function(){(!ir||!Or)&&(po.current instanceof Element?Lc((0,rn.o)(po.current).width):Lc((0,rn.o)(Ra.current).width)),Ul((0,Ie.G)("position","sticky"))},[]),It.useEffect(function(){Or&&lo&&(lo.body.current=po.current)});var Bd=It.useCallback(function(xa){return It.createElement(It.Fragment,null,It.createElement(oa,xa),ga==="top"&&It.createElement(we,xa,wl))},[ga,wl]),lA=It.useCallback(function(xa){return It.createElement(we,xa,wl)},[wl]),Ys=uo(["table"],"table"),Xc=It.useMemo(function(){return vn||(ph?As==="max-content"?"auto":"fixed":Sl||Dh||ea.some(function(xa){var hl=xa.ellipsis;return hl})?"fixed":"auto")},[Sl,ph,ea,vn,Dh]),Pd,mh={colWidths:Va,columCount:ea.length,stickyOffsets:Cu,onHeaderRow:Xi,fixHeader:Sl,scroll:ln},qu=It.useMemo(function(){return nr?null:typeof Ar=="function"?Ar():Ar},[nr,Ar]),Hd=It.createElement(to,{data:fr,measureColumnWidth:Sl||dl||Dh}),ud=It.createElement(es,{colWidths:ea.map(function(xa){var hl=xa.width;return hl}),columns:ea}),th=Ei!=null?It.createElement("caption",{className:"".concat(en,"-caption")},Ei):void 0,bd=(0,Gn.Z)(Ve,{data:!0}),Ed=(0,Gn.Z)(Ve,{aria:!0});if(Sl||Dh){var Qd;typeof Fo=="function"?(Qd=Fo(fr,{scrollbarSize:ld,ref:po,onScroll:Fc}),mh.colWidths=ea.map(function(xa,hl){var Bu=xa.width,vh=hl===ea.length-1?Bu-ld:Bu;return typeof vh=="number"&&!Number.isNaN(vh)?vh:0})):Qd=It.createElement("div",{style:(0,be.Z)((0,be.Z)({},hu),Ru),onScroll:Fc,ref:po,className:Vt()("".concat(en,"-body"))},It.createElement(Ys,(0,oe.Z)({style:(0,be.Z)((0,be.Z)({},ku),{},{tableLayout:Xc})},Ed),th,ud,Hd,!ga&&wl&&It.createElement(we,{stickyOffsets:Cu,flattenColumns:ea,columns:_s},wl)));var nu=(0,be.Z)((0,be.Z)((0,be.Z)({noData:!fr.length,maxContentScroll:dl&&As==="max-content"},mh),eu),{},{direction:En,stickyClassName:ra,onScroll:Fc});Pd=It.createElement(It.Fragment,null,$i!==!1&&It.createElement(xs,(0,oe.Z)({},nu,{stickyTopOffset:fc,className:"".concat(en,"-header"),ref:yl}),Bd),Qd,ga&&ga!=="top"&&It.createElement(xs,(0,oe.Z)({},nu,{stickyBottomOffset:Wu,className:"".concat(en,"-summary"),ref:Nu}),lA),Dh&&It.createElement(ei,{ref:ec,offsetScroll:Ta,scrollBodyRef:po,onScroll:Fc,container:uu}))}else Pd=It.createElement("div",{style:(0,be.Z)((0,be.Z)({},hu),Ru),className:Vt()("".concat(en,"-content")),onScroll:Fc,ref:po},It.createElement(Ys,(0,oe.Z)({style:(0,be.Z)((0,be.Z)({},ku),{},{tableLayout:Xc})},Ed),th,ud,$i!==!1&&It.createElement(oa,(0,oe.Z)({},mh,eu)),Hd,wl&&It.createElement(we,{stickyOffsets:Cu,flattenColumns:ea,columns:_s},wl)));var cu=It.createElement("div",(0,oe.Z)({className:Vt()(en,un,(Ce={},(0,qt.Z)(Ce,"".concat(en,"-rtl"),En==="rtl"),(0,qt.Z)(Ce,"".concat(en,"-ping-left"),Na),(0,qt.Z)(Ce,"".concat(en,"-ping-right"),Ia),(0,qt.Z)(Ce,"".concat(en,"-layout-fixed"),vn==="fixed"),(0,qt.Z)(Ce,"".concat(en,"-fixed-header"),Sl),(0,qt.Z)(Ce,"".concat(en,"-fixed-column"),ph),(0,qt.Z)(Ce,"".concat(en,"-scroll-horizontal"),dl),(0,qt.Z)(Ce,"".concat(en,"-has-fix-left"),ea[0]&&ea[0].fixed),(0,qt.Z)(Ce,"".concat(en,"-has-fix-right"),ea[ea.length-1]&&ea[ea.length-1].fixed==="right"),Ce)),style:Tn,id:Ii,ref:fa},bd),Vn&&It.createElement(or,{className:"".concat(en,"-title")},Vn(fr)),It.createElement("div",{ref:Ra,className:"".concat(en,"-container")},Pd),li&&It.createElement(or,{className:"".concat(en,"-footer")},li(fr)));dl&&(cu=It.createElement(Ue.Z,{onResize:HA},cu));var Mc=di(ea,Cu,En,_s),du=It.useMemo(function(){return{scrollX:As,prefixCls:en,getComponent:uo,scrollbarSize:ld,direction:En,fixedInfoList:Mc,isSticky:Dh,supportSticky:ah,componentWidth:ko,fixHeader:Sl,fixColumn:ph,horizonScroll:dl,tableLayout:Xc,rowClassName:hn,expandedRowClassName:Ps.expandedRowClassName,expandIcon:$a,expandableType:Io,expandRowByClick:Ps.expandRowByClick,expandedRowRender:Ps.expandedRowRender,onTriggerExpand:jl,expandIconColumnIndex:Ps.expandIconColumnIndex,indentSize:Ps.indentSize,allColumnsFixedLeft:ea.every(function(xa){return xa.fixed==="left"}),emptyNode:qu,columns:_s,flattenColumns:ea,onColumnResize:Yc,hoverStartRow:Mo,hoverEndRow:hs,onHover:ho,rowExpandable:Ps.rowExpandable,onRow:Jr,getRowKey:So,expandedKeys:Fs,childrenColumnName:js}},[As,en,uo,ld,En,Mc,Dh,ah,ko,Sl,ph,dl,Xc,hn,Ps.expandedRowClassName,$a,Io,Ps.expandRowByClick,Ps.expandedRowRender,jl,Ps.expandIconColumnIndex,Ps.indentSize,qu,_s,ea,Yc,Mo,hs,ho,Ps.rowExpandable,Jr,So,Fs,js]);return It.createElement(Ot.Provider,{value:du},cu)}function wo(ge){return ut(Gr,ge)}var fo=wo();fo.EXPAND_COLUMN=Ft,fo.INTERNAL_HOOKS=ce,fo.Column=Zo,fo.ColumnGroup=ri,fo.Summary=le;var xo=fo,_r=bt(45680),Si=Xt(null),Ho=Xt(null);function Pi(ge,Ce,Ve){var en=Ce||1;return Ve[ge+en]-(Ve[ge]||0)}function ns(ge){var Ce=ge.rowInfo,Ve=ge.column,en=ge.colIndex,un=ge.indent,hn=ge.index,Tn=ge.renderIndex,Xn=ge.record,Te=ge.style,ln=ge.className,vn=ge.inverse,En=ge.getHeight,Vn=Ve.render,li=Ve.dataIndex,oi=Ve.className,Ei=Ve.width,Ii=Pt(Ho,["columnsOffset"]),$i=Ii.columnsOffset,sr=Di(Ce,Ve,en,un,hn),Ar=sr.key,Jr=sr.fixedInfo,Xi=sr.appendCellNode,_n=sr.additionalCellProps,oo=_n.style,lo=_n.colSpan,ir=lo===void 0?1:lo,yr=_n.rowSpan,fr=yr===void 0?1:yr,nr=en-1,Or=Pi(nr,ir,$i),uo=ir>1?Ei-Or:0,So=(0,be.Z)((0,be.Z)((0,be.Z)({},oo),Te),{},{flex:"0 0 ".concat(Or,"px"),width:"".concat(Or,"px"),marginRight:uo,pointerEvents:"auto"}),Fo=It.useMemo(function(){return vn?fr<=1:ir===0||fr===0||fr>1},[fr,ir,vn]);Fo?So.visibility="hidden":vn&&(So.height=En==null?void 0:En(fr));var zr=Fo?function(){return null}:Vn,Vo={};return(fr===0||ir===0)&&(Vo.rowSpan=1,Vo.colSpan=1),It.createElement(xi,(0,oe.Z)({className:Vt()(oi,ln),ellipsis:Ve.ellipsis,align:Ve.align,scope:Ve.rowScope,component:"div",prefixCls:Ce.prefixCls,key:Ar,record:Xn,index:hn,renderIndex:Tn,dataIndex:li,render:zr,shouldCellUpdate:Ve.shouldCellUpdate},Jr,{appendNode:Xi,additionalProps:(0,be.Z)((0,be.Z)({},_n),{},{style:So},Vo)}))}var qs=ns,fs=["data","index","className","rowKey","style","extra","getHeight"],Hs=It.forwardRef(function(ge,Ce){var Ve=ge.data,en=ge.index,un=ge.className,hn=ge.rowKey,Tn=ge.style,Xn=ge.extra,Te=ge.getHeight,ln=(0,Dt.Z)(ge,fs),vn=Ve.record,En=Ve.indent,Vn=Ve.index,li=Pt(Ot,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),oi=li.scrollX,Ei=li.flattenColumns,Ii=li.prefixCls,$i=li.fixColumn,sr=li.componentWidth,Ar=Rn(vn,hn,en,En),Jr=Ar.rowSupportExpand,Xi=Ar.expanded,_n=Ar.rowProps,oo=Ar.expandedRowRender,lo=Ar.expandedRowClassName,ir;if(Jr&&Xi){var yr=oo(vn,en,En+1,Xi),fr=lo==null?void 0:lo(vn,en,En),nr={};$i&&(nr={style:(0,qt.Z)({},"--virtual-width","".concat(sr,"px"))});var Or="".concat(Ii,"-expanded-row-cell");ir=It.createElement("div",{className:Vt()("".concat(Ii,"-expanded-row"),"".concat(Ii,"-expanded-row-level-").concat(En+1),fr)},It.createElement(xi,{component:"div",prefixCls:Ii,className:Vt()(Or,(0,qt.Z)({},"".concat(Or,"-fixed"),$i)),additionalProps:nr},yr))}var uo=(0,be.Z)((0,be.Z)({},Tn),{},{width:oi});Xn&&(uo.position="absolute",uo.pointerEvents="none");var So=It.createElement("div",(0,oe.Z)({},_n,ln,{ref:Jr?null:Ce,className:Vt()(un,"".concat(Ii,"-row"),_n==null?void 0:_n.className,(0,qt.Z)({},"".concat(Ii,"-row-extra"),Xn)),style:(0,be.Z)((0,be.Z)({},uo),_n==null?void 0:_n.style)}),Ei.map(function(Fo,zr){return It.createElement(qs,{key:zr,rowInfo:Ar,column:Fo,colIndex:zr,indent:En,index:en,renderIndex:Vn,record:vn,inverse:Xn,getHeight:Te})}));return Jr?It.createElement("div",{ref:Ce},So,ir):So}),Gs=ct(Hs),si=Gs,To=It.forwardRef(function(ge,Ce){var Ve=ge.data,en=ge.onScroll,un=Pt(Ot,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),hn=un.flattenColumns,Tn=un.onColumnResize,Xn=un.getRowKey,Te=un.expandedKeys,ln=un.prefixCls,vn=un.childrenColumnName,En=un.emptyNode,Vn=un.scrollX,li=Pt(Si),oi=li.scrollY,Ei=li.listItemHeight,Ii=It.useRef(),$i=An(Ve,vn,Te,Xn),sr=It.useMemo(function(){var ir=0;return hn.map(function(yr){var fr=yr.width,nr=yr.key;return ir+=fr,[nr,fr,ir]})},[hn]),Ar=It.useMemo(function(){return sr.map(function(ir){return ir[2]})},[sr]);It.useEffect(function(){sr.forEach(function(ir){var yr=(0,re.Z)(ir,2),fr=yr[0],nr=yr[1];Tn(fr,nr)})},[sr]),It.useImperativeHandle(Ce,function(){var ir={};return Object.defineProperty(ir,"scrollLeft",{get:function(){var fr;return((fr=Ii.current)===null||fr===void 0?void 0:fr.getScrollInfo().x)||0},set:function(fr){var nr;(nr=Ii.current)===null||nr===void 0||nr.scrollTo({left:fr})}}),ir});var Jr=function(yr,fr){var nr,Or=(nr=$i[fr])===null||nr===void 0?void 0:nr.record,uo=yr.onCell;if(uo){var So,Fo=uo(Or,fr);return(So=Fo==null?void 0:Fo.rowSpan)!==null&&So!==void 0?So:1}return 1},Xi=function(yr){var fr=yr.start,nr=yr.end,Or=yr.getSize,uo=yr.offsetY;if(nr<0)return null;for(var So=hn.filter(function(Po){return Jr(Po,fr)===0}),Fo=fr,zr=function(as){if(So=So.filter(function(ds){return Jr(ds,as)===0}),!So.length)return Fo=as,"break"},Vo=fr;Vo>=0;Vo-=1){var Mo=zr(Vo);if(Mo==="break")break}for(var hs=hn.filter(function(Po){return Jr(Po,nr)!==1}),ho=nr,Pa=function(as){if(hs=hs.filter(function(ds){return Jr(ds,as)!==1}),!hs.length)return ho=Math.max(as-1,nr),"break"},Os=nr;Os<$i.length;Os+=1){var Ps=Pa(Os);if(Ps==="break")break}for(var Io=[],Fs=function(as){var ds=$i[as];if(!ds)return"continue";hn.some(function(ko){return Jr(ko,as)>1})&&Io.push(as)},$a=Fo;$a<=ho;$a+=1)var js=Fs($a);var jl=Io.map(function(Po){var as=$i[Po],ds=Xn(as.record,Po),ko=function(Ls){var _s=Po+Ls-1,ea=Xn($i[_s].record,_s),Yl=Or(ds,ea);return Yl.bottom-Yl.top},Jo=Or(ds);return It.createElement(si,{key:Po,data:as,rowKey:ds,index:Po,style:{top:-uo+Jo.top},extra:!0,getHeight:ko})});return jl},_n=It.useMemo(function(){return{columnsOffset:Ar}},[Ar]),oo="".concat(ln,"-tbody"),lo;return $i.length?lo=It.createElement(_r.Z,{fullHeight:!1,ref:Ii,className:Vt()(oo,"".concat(oo,"-virtual")),height:oi,itemHeight:Ei||24,data:$i,itemKey:function(yr){return Xn(yr.record)},scrollWidth:Vn,onVirtualScroll:function(yr){var fr=yr.x;en({scrollLeft:fr})},extraRender:Xi},function(ir,yr,fr){var nr=Xn(ir.record,yr);return It.createElement(si,(0,oe.Z)({data:ir,rowKey:nr,index:yr},fr))}):lo=It.createElement("div",{className:Vt()("".concat(ln,"-placeholder"))},It.createElement(xi,{component:"div",prefixCls:ln},En)),It.createElement(Ho.Provider,{value:_n},lo)}),us=ct(To),rs=us,Cr=function(Ce,Ve){var en=Ve.ref,un=Ve.onScroll;return It.createElement(rs,{ref:en,data:Ce,onScroll:un})},Le=100;function qo(ge){var Ce=ge.columns,Ve=ge.scroll,en=ge.prefixCls,un=en===void 0?rr:en,hn=ge.className,Tn=ge.listItemHeight,Xn=Ve||{},Te=Xn.x,ln=Xn.y;typeof Te!="number"&&(Te=((Ce||[]).length+1)*Le),typeof ln!="number"&&(ln=500);var vn=It.useMemo(function(){return{scrollY:ln,listItemHeight:Tn}},[ln,Tn]);return It.createElement(Si.Provider,{value:vn},It.createElement(xo,(0,oe.Z)({},ge,{className:Vt()(hn,"".concat(un,"-virtual")),scroll:(0,be.Z)((0,be.Z)({},Ve),{},{x:Te}),components:{body:Cr},columns:Ce,internalHooks:ce,tailor:!0})))}function ta(ge){return ut(qo,ge)}var qa=ta(),ol=null;function ml(ge){return null}var vr=ml;function $r(ge){return null}var Xo=$r,Lo=bt(2738),os=bt(68031),Fa=bt(36355),ao=bt(93891),mo=bt(19716),zi=bt(8628),Eo=bt(31724),Es=bt(58421),la=bt(71418),ca=bt(88088);function Qo(ge){return function(Ve){let{prefixCls:en,onExpand:un,record:hn,expanded:Tn,expandable:Xn}=Ve;const Te=`${en}-row-expand-icon`;return It.createElement("button",{type:"button",onClick:ln=>{un(hn,ln),ln.stopPropagation()},className:Vt()(Te,{[`${Te}-spaced`]:!Xn,[`${Te}-expanded`]:Xn&&Tn,[`${Te}-collapsed`]:Xn&&!Tn}),"aria-label":Tn?ge.collapse:ge.expand,"aria-expanded":Tn})}}var Vs=Qo;function Ka(ge,Ce){return"key"in ge&&ge.key!==void 0&&ge.key!==null?ge.key:ge.dataIndex?Array.isArray(ge.dataIndex)?ge.dataIndex.join("."):ge.dataIndex:Ce}function Wl(ge,Ce){return Ce?`${Ce}-${ge}`:`${ge}`}function La(ge,Ce){return typeof ge=="function"?ge(Ce):ge}function vs(ge,Ce){const Ve=La(ge,Ce);return Object.prototype.toString.call(Ve)==="[object Object]"?"":Ve}var ai={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"},ka=ai,bc=bt(7657),Vl=function(Ce,Ve){return It.createElement(bc.Z,(0,oe.Z)({},Ce,{ref:Ve,icon:ka}))},kh=It.forwardRef(Vl),sl=kh,Wc=bt(56762);function Fl(ge){const Ce=It.useRef(ge),Ve=(0,Wc.Z)();return[()=>Ce.current,en=>{Ce.current=en,Ve()}]}var Is=bt(3113),ia=bt(24905),Ph=bt(38854),is=bt(64165),Zs=bt(20834),ys=bt(40875),Hr=bt(5112),kl=bt(17574),Ol=bt(47472),Ao=bt(92832);function Ns(ge){let{value:Ce,onChange:Ve,filterSearch:en,tablePrefixCls:un,locale:hn}=ge;return en?It.createElement("div",{className:`${un}-filter-dropdown-search`},It.createElement(Ao.default,{prefix:It.createElement(Ol.Z,null),placeholder:hn.filterSearchPlaceholder,onChange:Ve,value:Ce,htmlSize:1,className:`${un}-filter-dropdown-search-input`})):null}var da=Ns,wr=bt(10228);const Ma=ge=>{const{keyCode:Ce}=ge;Ce===wr.Z.ENTER&&ge.stopPropagation()};var Bl=It.forwardRef((ge,Ce)=>It.createElement("div",{className:ge.className,onClick:Ve=>Ve.stopPropagation(),onKeyDown:Ma,ref:Ce},ge.children));function su(ge){let Ce=[];return(ge||[]).forEach(Ve=>{let{value:en,children:un}=Ve;Ce.push(en),un&&(Ce=[].concat((0,yo.Z)(Ce),(0,yo.Z)(su(un))))}),Ce}function au(ge){return ge.some(Ce=>{let{children:Ve}=Ce;return Ve})}function Yo(ge,Ce){return typeof Ce=="string"||typeof Ce=="number"?Ce==null?void 0:Ce.toString().toLowerCase().includes(ge.trim().toLowerCase()):!1}function va(ge){let{filters:Ce,prefixCls:Ve,filteredKeys:en,filterMultiple:un,searchValue:hn,filterSearch:Tn}=ge;return Ce.map((Xn,Te)=>{const ln=String(Xn.value);if(Xn.children)return{key:ln||Te,label:Xn.text,popupClassName:`${Ve}-dropdown-submenu`,children:va({filters:Xn.children,prefixCls:Ve,filteredKeys:en,filterMultiple:un,searchValue:hn,filterSearch:Tn})};const vn=un?ia.default:Hr.ZP,En={key:Xn.value!==void 0?ln:Te,label:It.createElement(It.Fragment,null,It.createElement(vn,{checked:en.includes(ln)}),It.createElement("span",null,Xn.text))};return hn.trim()?typeof Tn=="function"?Tn(hn,Xn)?En:null:Yo(hn,Xn.text)?En:null:En})}function Cs(ge){var Ce,Ve;const{tablePrefixCls:en,prefixCls:un,column:hn,dropdownPrefixCls:Tn,columnKey:Xn,filterMultiple:Te,filterMode:ln="menu",filterSearch:vn=!1,filterState:En,triggerFilter:Vn,locale:li,children:oi,getPopupContainer:Ei}=ge,{filterDropdownOpen:Ii,onFilterDropdownOpenChange:$i,filterResetToDefaultFilteredValue:sr,defaultFilteredValue:Ar,filterDropdownVisible:Jr,onFilterDropdownVisibleChange:Xi}=hn,[_n,oo]=It.useState(!1),lo=!!(En&&(!((Ce=En.filteredKeys)===null||Ce===void 0)&&Ce.length||En.forceFiltered)),ir=bo=>{oo(bo),$i==null||$i(bo),Xi==null||Xi(bo)},yr=(Ve=Ii!=null?Ii:Jr)!==null&&Ve!==void 0?Ve:_n,fr=En==null?void 0:En.filteredKeys,[nr,Or]=Fl(fr||[]),uo=bo=>{let{selectedKeys:Ls}=bo;Or(Ls)},So=(bo,Ls)=>{let{node:_s,checked:ea}=Ls;uo(Te?{selectedKeys:bo}:{selectedKeys:ea&&_s.key?[_s.key]:[]})};It.useEffect(()=>{_n&&uo({selectedKeys:fr||[]})},[fr]);const[Fo,zr]=It.useState([]),Vo=bo=>{zr(bo)},[Mo,hs]=It.useState(""),ho=bo=>{const{value:Ls}=bo.target;hs(Ls)};It.useEffect(()=>{_n||hs("")},[_n]);const Pa=bo=>{const Ls=bo&&bo.length?bo:null;if(Ls===null&&(!En||!En.filteredKeys)||(0,Yt.Z)(Ls,En==null?void 0:En.filteredKeys,!0))return null;Vn({column:hn,key:Xn,filteredKeys:Ls})},Os=()=>{ir(!1),Pa(nr())},Ps=function(){let{confirm:bo,closeDropdown:Ls}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};bo&&Pa([]),Ls&&ir(!1),hs(""),Or(sr?(Ar||[]).map(_s=>String(_s)):[])},Io=function(){let{closeDropdown:bo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};bo&&ir(!1),Pa(nr())},Fs=bo=>{bo&&fr!==void 0&&Or(fr||[]),ir(bo),!bo&&!hn.filterDropdown&&Os()},$a=Vt()({[`${Tn}-menu-without-submenu`]:!au(hn.filters||[])}),js=bo=>{if(bo.target.checked){const Ls=su(hn==null?void 0:hn.filters).map(_s=>String(_s));Or(Ls)}else Or([])},jl=bo=>{let{filters:Ls}=bo;return(Ls||[]).map((_s,ea)=>{const Yl=String(_s.value),As={title:_s.text,key:_s.value!==void 0?Yl:ea};return _s.children&&(As.children=jl({filters:_s.children})),As})},Po=bo=>{var Ls;return Object.assign(Object.assign({},bo),{text:bo.title,value:bo.key,children:((Ls=bo.children)===null||Ls===void 0?void 0:Ls.map(_s=>Po(_s)))||[]})};let as;if(typeof hn.filterDropdown=="function")as=hn.filterDropdown({prefixCls:`${Tn}-custom`,setSelectedKeys:bo=>uo({selectedKeys:bo}),selectedKeys:nr(),confirm:Io,clearFilters:Ps,filters:hn.filters,visible:yr,close:()=>{ir(!1)}});else if(hn.filterDropdown)as=hn.filterDropdown;else{const bo=nr()||[],Ls=()=>(hn.filters||[]).length===0?It.createElement(is.Z,{image:is.Z.PRESENTED_IMAGE_SIMPLE,description:li.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ln==="tree"?It.createElement(It.Fragment,null,It.createElement(da,{filterSearch:vn,value:Mo,onChange:ho,tablePrefixCls:en,locale:li}),It.createElement("div",{className:`${en}-filter-dropdown-tree`},Te?It.createElement(ia.default,{checked:bo.length===su(hn.filters).length,indeterminate:bo.length>0&&bo.length<su(hn.filters).length,className:`${en}-filter-dropdown-checkall`,onChange:js},li.filterCheckall):null,It.createElement(kl.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Te,checkStrictly:!Te,className:`${Tn}-menu`,onCheck:So,checkedKeys:bo,selectedKeys:bo,showIcon:!1,treeData:jl({filters:hn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Mo.trim()?ea=>typeof vn=="function"?vn(Mo,Po(ea)):Yo(Mo,ea.title):void 0}))):It.createElement(It.Fragment,null,It.createElement(da,{filterSearch:vn,value:Mo,onChange:ho,tablePrefixCls:en,locale:li}),It.createElement(Zs.default,{selectable:!0,multiple:Te,prefixCls:`${Tn}-menu`,className:$a,onSelect:uo,onDeselect:uo,selectedKeys:bo,getPopupContainer:Ei,openKeys:Fo,onOpenChange:Vo,items:va({filters:hn.filters||[],filterSearch:vn,prefixCls:un,filteredKeys:nr(),filterMultiple:Te,searchValue:Mo})})),_s=()=>sr?(0,Yt.Z)((Ar||[]).map(ea=>String(ea)),bo,!0):bo.length===0;as=It.createElement(It.Fragment,null,Ls(),It.createElement("div",{className:`${un}-dropdown-btns`},It.createElement(Is.ZP,{type:"link",size:"small",disabled:_s(),onClick:()=>Ps()},li.filterReset),It.createElement(Is.ZP,{type:"primary",size:"small",onClick:Os},li.filterConfirm)))}hn.filterDropdown&&(as=It.createElement(ys.J,{selectable:void 0},as));const ds=()=>It.createElement(Bl,{className:`${un}-dropdown`},as);let ko;typeof hn.filterIcon=="function"?ko=hn.filterIcon(lo):hn.filterIcon?ko=hn.filterIcon:ko=It.createElement(sl,null);const{direction:Jo}=It.useContext(Fa.E_);return It.createElement("div",{className:`${un}-column`},It.createElement("span",{className:`${en}-column-title`},oi),It.createElement(Ph.Z,{dropdownRender:ds,trigger:["click"],open:yr,onOpenChange:Fs,getPopupContainer:Ei,placement:Jo==="rtl"?"bottomLeft":"bottomRight"},It.createElement("span",{role:"button",tabIndex:-1,className:Vt()(`${un}-trigger`,{active:lo}),onClick:bo=>{bo.stopPropagation()}},ko)))}var lu=Cs;function Ll(ge,Ce,Ve){let en=[];return(ge||[]).forEach((un,hn)=>{var Tn;const Xn=Wl(hn,Ve);if(un.filters||"filterDropdown"in un||"onFilter"in un)if("filteredValue"in un){let Te=un.filteredValue;"filterDropdown"in un||(Te=(Tn=Te==null?void 0:Te.map(String))!==null&&Tn!==void 0?Tn:Te),en.push({column:un,key:Ka(un,Xn),filteredKeys:Te,forceFiltered:un.filtered})}else en.push({column:un,key:Ka(un,Xn),filteredKeys:Ce&&un.defaultFilteredValue?un.defaultFilteredValue:void 0,forceFiltered:un.filtered});"children"in un&&(en=[].concat((0,yo.Z)(en),(0,yo.Z)(Ll(un.children,Ce,Xn))))}),en}function Ml(ge,Ce,Ve,en,un,hn,Tn,Xn){return Ve.map((Te,ln)=>{const vn=Wl(ln,Xn),{filterMultiple:En=!0,filterMode:Vn,filterSearch:li}=Te;let oi=Te;if(oi.filters||oi.filterDropdown){const Ei=Ka(oi,vn),Ii=en.find($i=>{let{key:sr}=$i;return Ei===sr});oi=Object.assign(Object.assign({},oi),{title:$i=>It.createElement(lu,{tablePrefixCls:ge,prefixCls:`${ge}-filter`,dropdownPrefixCls:Ce,column:oi,columnKey:Ei,filterState:Ii,filterMultiple:En,filterMode:Vn,filterSearch:li,triggerFilter:hn,locale:un,getPopupContainer:Tn},La(Te.title,$i))})}return"children"in oi&&(oi=Object.assign(Object.assign({},oi),{children:Ml(ge,Ce,oi.children,en,un,hn,Tn,vn)})),oi})}function tl(ge){const Ce={};return ge.forEach(Ve=>{let{key:en,filteredKeys:un,column:hn}=Ve;const{filters:Tn,filterDropdown:Xn}=hn;if(Xn)Ce[en]=un||null;else if(Array.isArray(un)){const Te=su(Tn);Ce[en]=Te.filter(ln=>un.includes(String(ln)))}else Ce[en]=null}),Ce}function tu(ge,Ce){return Ce.reduce((Ve,en)=>{const{column:{onFilter:un,filters:hn},filteredKeys:Tn}=en;return un&&Tn&&Tn.length?Ve.filter(Xn=>Tn.some(Te=>{const ln=su(hn),vn=ln.findIndex(Vn=>String(Vn)===String(Te)),En=vn!==-1?ln[vn]:Te;return un(En,Xn)})):Ve},ge)}const Pl=ge=>ge.flatMap(Ce=>"children"in Ce?[Ce].concat((0,yo.Z)(Pl(Ce.children||[]))):[Ce]);function No(ge){let{prefixCls:Ce,dropdownPrefixCls:Ve,mergedColumns:en,onFilterChange:un,getPopupContainer:hn,locale:Tn}=ge;const Xn=It.useMemo(()=>Pl(en||[]),[en]),[Te,ln]=It.useState(()=>Ll(Xn,!0)),vn=It.useMemo(()=>{const oi=Ll(Xn,!1);if(oi.length===0)return oi;let Ei=!0,Ii=!0;if(oi.forEach($i=>{let{filteredKeys:sr}=$i;sr!==void 0?Ei=!1:Ii=!1}),Ei){const $i=(Xn||[]).map((sr,Ar)=>Ka(sr,Wl(Ar)));return Te.filter(sr=>{let{key:Ar}=sr;return $i.includes(Ar)}).map(sr=>{const Ar=Xn[$i.findIndex(Jr=>Jr===sr.key)];return Object.assign(Object.assign({},sr),{column:Object.assign(Object.assign({},sr.column),Ar),forceFiltered:Ar.filtered})})}return oi},[Xn,Te]),En=It.useMemo(()=>tl(vn),[vn]),Vn=oi=>{const Ei=vn.filter(Ii=>{let{key:$i}=Ii;return $i!==oi.key});Ei.push(oi),ln(Ei),un(tl(Ei),Ei)};return[oi=>Ml(Ce,Ve,oi,vn,Tn,Vn,hn),vn,En]}var dc=No;function al(ge,Ce,Ve){const en=It.useRef({});function un(hn){if(!en.current||en.current.data!==ge||en.current.childrenColumnName!==Ce||en.current.getRowKey!==Ve){let Xn=function(Te){Te.forEach((ln,vn)=>{const En=Ve(ln,vn);Tn.set(En,ln),ln&&typeof ln=="object"&&Ce in ln&&Xn(ln[Ce]||[])})};const Tn=new Map;Xn(ge),en.current={data:ge,childrenColumnName:Ce,kvMap:Tn,getRowKey:Ve}}return en.current.kvMap.get(hn)}return[un]}var zu=bt(50371),hh=function(ge,Ce){var Ve={};for(var en in ge)Object.prototype.hasOwnProperty.call(ge,en)&&Ce.indexOf(en)<0&&(Ve[en]=ge[en]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,en=Object.getOwnPropertySymbols(ge);un<en.length;un++)Ce.indexOf(en[un])<0&&Object.prototype.propertyIsEnumerable.call(ge,en[un])&&(Ve[en[un]]=ge[en[un]]);return Ve};const dh=10;function Ga(ge,Ce){const Ve={current:ge.current,pageSize:ge.pageSize};return Object.keys(Ce&&typeof Ce=="object"?Ce:{}).forEach(un=>{const hn=ge[un];typeof hn!="function"&&(Ve[un]=hn)}),Ve}function ih(ge,Ce,Ve){const en=Ve&&typeof Ve=="object"?Ve:{},{total:un=0}=en,hn=hh(en,["total"]),[Tn,Xn]=(0,It.useState)(()=>({current:"defaultCurrent"in hn?hn.defaultCurrent:1,pageSize:"defaultPageSize"in hn?hn.defaultPageSize:dh})),Te=(0,zu.Z)(Tn,hn,{total:un>0?un:ge}),ln=Math.ceil((un||ge)/Te.pageSize);Te.current>ln&&(Te.current=ln||1);const vn=(Vn,li)=>{Xn({current:Vn!=null?Vn:1,pageSize:li||Te.pageSize})},En=(Vn,li)=>{var oi;Ve&&((oi=Ve.onChange)===null||oi===void 0||oi.call(Ve,Vn,li)),vn(Vn,li),Ce(Vn,li||(Te==null?void 0:Te.pageSize))};return Ve===!1?[{},()=>{}]:[Object.assign(Object.assign({},Te),{onChange:En}),vn]}var Ec=ih,Vc=bt(84105),Zc=bt(35654),Bs=bt(90782),ya=bt(71430),Mu=bt(18929);const el={},ll="SELECT_ALL",Wa="SELECT_INVERT",Aa="SELECT_NONE",nl=[],Dl=(ge,Ce)=>{let Ve=[];return(Ce||[]).forEach(en=>{Ve.push(en),en&&typeof en=="object"&&ge in en&&(Ve=[].concat((0,yo.Z)(Ve),(0,yo.Z)(Dl(ge,en[ge]))))}),Ve};var rh=(ge,Ce)=>{const{preserveSelectedRowKeys:Ve,selectedRowKeys:en,defaultSelectedRowKeys:un,getCheckboxProps:hn,onChange:Tn,onSelect:Xn,onSelectAll:Te,onSelectInvert:ln,onSelectNone:vn,onSelectMultiple:En,columnWidth:Vn,type:li,selections:oi,fixed:Ei,renderCell:Ii,hideSelectAll:$i,checkStrictly:sr=!0}=Ce||{},{prefixCls:Ar,data:Jr,pageData:Xi,getRecordByKey:_n,getRowKey:oo,expandType:lo,childrenColumnName:ir,locale:yr,getPopupContainer:fr}=ge,[nr,Or]=(0,Mu.Z)(en||un||nl,{value:en}),uo=It.useRef(new Map),So=(0,It.useCallback)(Po=>{if(Ve){const as=new Map;Po.forEach(ds=>{let ko=_n(ds);!ko&&uo.current.has(ds)&&(ko=uo.current.get(ds)),as.set(ds,ko)}),uo.current=as}},[_n,Ve]);It.useEffect(()=>{So(nr)},[nr]);const{keyEntities:Fo}=(0,It.useMemo)(()=>{if(sr)return{keyEntities:null};let Po=Jr;if(Ve){const as=new Set(Jr.map((ko,Jo)=>oo(ko,Jo))),ds=Array.from(uo.current).reduce((ko,Jo)=>{let[bo,Ls]=Jo;return as.has(bo)?ko:ko.concat(Ls)},[]);Po=[].concat((0,yo.Z)(Po),(0,yo.Z)(ds))}return(0,ya.I8)(Po,{externalGetKey:oo,childrenPropName:ir})},[Jr,oo,sr,ir,Ve]),zr=(0,It.useMemo)(()=>Dl(ir,Xi),[ir,Xi]),Vo=(0,It.useMemo)(()=>{const Po=new Map;return zr.forEach((as,ds)=>{const ko=oo(as,ds),Jo=(hn?hn(as):null)||{};Po.set(ko,Jo)}),Po},[zr,oo,hn]),Mo=(0,It.useCallback)(Po=>{var as;return!!(!((as=Vo.get(oo(Po)))===null||as===void 0)&&as.disabled)},[Vo,oo]),[hs,ho]=(0,It.useMemo)(()=>{if(sr)return[nr||[],[]];const{checkedKeys:Po,halfCheckedKeys:as}=(0,Bs.S)(nr,!0,Fo,Mo);return[Po||[],as]},[nr,sr,Fo,Mo]),Pa=(0,It.useMemo)(()=>{const Po=li==="radio"?hs.slice(0,1):hs;return new Set(Po)},[hs,li]),Os=(0,It.useMemo)(()=>li==="radio"?new Set:new Set(ho),[ho,li]),[Ps,Io]=(0,It.useState)(null);It.useEffect(()=>{Ce||Or(nl)},[!!Ce]);const Fs=(0,It.useCallback)((Po,as)=>{let ds,ko;So(Po),Ve?(ds=Po,ko=Po.map(Jo=>uo.current.get(Jo))):(ds=[],ko=[],Po.forEach(Jo=>{const bo=_n(Jo);bo!==void 0&&(ds.push(Jo),ko.push(bo))})),Or(ds),Tn==null||Tn(ds,ko,{type:as})},[Or,_n,Tn,Ve]),$a=(0,It.useCallback)((Po,as,ds,ko)=>{if(Xn){const Jo=ds.map(bo=>_n(bo));Xn(_n(Po),as,Jo,ko)}Fs(ds,"single")},[Xn,_n,Fs]),js=(0,It.useMemo)(()=>!oi||$i?null:(oi===!0?[ll,Wa,Aa]:oi).map(as=>as===ll?{key:"all",text:yr.selectionAll,onSelect(){Fs(Jr.map((ds,ko)=>oo(ds,ko)).filter(ds=>{const ko=Vo.get(ds);return!(ko!=null&&ko.disabled)||Pa.has(ds)}),"all")}}:as===Wa?{key:"invert",text:yr.selectInvert,onSelect(){const ds=new Set(Pa);Xi.forEach((Jo,bo)=>{const Ls=oo(Jo,bo),_s=Vo.get(Ls);_s!=null&&_s.disabled||(ds.has(Ls)?ds.delete(Ls):ds.add(Ls))});const ko=Array.from(ds);ln&&ln(ko),Fs(ko,"invert")}}:as===Aa?{key:"none",text:yr.selectNone,onSelect(){vn==null||vn(),Fs(Array.from(Pa).filter(ds=>{const ko=Vo.get(ds);return ko==null?void 0:ko.disabled}),"none")}}:as).map(as=>Object.assign(Object.assign({},as),{onSelect:function(){for(var ds,ko,Jo=arguments.length,bo=new Array(Jo),Ls=0;Ls<Jo;Ls++)bo[Ls]=arguments[Ls];(ko=as.onSelect)===null||ko===void 0||(ds=ko).call.apply(ds,[as].concat(bo)),Io(null)}})),[oi,Pa,Xi,oo,ln,Fs]);return[(0,It.useCallback)(Po=>{var as;if(!Ce)return Po.filter(wa=>wa!==el);let ds=(0,yo.Z)(Po);const ko=new Set(Pa),Jo=zr.map(oo).filter(wa=>!Vo.get(wa).disabled),bo=Jo.every(wa=>ko.has(wa)),Ls=Jo.some(wa=>ko.has(wa)),_s=()=>{const wa=[];bo?Jo.forEach(Na=>{ko.delete(Na),wa.push(Na)}):Jo.forEach(Na=>{ko.has(Na)||(ko.add(Na),wa.push(Na))});const na=Array.from(ko);Te==null||Te(!bo,na.map(Na=>_n(Na)),wa.map(Na=>_n(Na))),Fs(na,"all"),Io(null)};let ea;if(li!=="radio"){let wa;if(js){const Qs={getPopupContainer:fr,items:js.map((Ia,Nl)=>{const{key:Iu,text:mu,onSelect:Tu}=Ia;return{key:Iu!=null?Iu:Nl,onClick:()=>{Tu==null||Tu(Jo)},label:mu}})};wa=It.createElement("div",{className:`${Ar}-selection-extra`},It.createElement(Ph.Z,{menu:Qs,getPopupContainer:fr},It.createElement("span",null,It.createElement(Vc.Z,null))))}const na=zr.map((Qs,Ia)=>{const Nl=oo(Qs,Ia),Iu=Vo.get(Nl)||{};return Object.assign({checked:ko.has(Nl)},Iu)}).filter(Qs=>{let{disabled:Ia}=Qs;return Ia}),Na=!!na.length&&na.length===zr.length,Xa=Na&&na.every(Qs=>{let{checked:Ia}=Qs;return Ia}),ul=Na&&na.some(Qs=>{let{checked:Ia}=Qs;return Ia});ea=!$i&&It.createElement("div",{className:`${Ar}-selection`},It.createElement(ia.default,{checked:Na?Xa:!!zr.length&&bo,indeterminate:Na?!Xa&&ul:!bo&&Ls,onChange:_s,disabled:zr.length===0||Na,"aria-label":wa?"Custom selection":"Select all",skipGroup:!0}),wa)}let Yl;li==="radio"?Yl=(wa,na,Na)=>{const Xa=oo(na,Na),ul=ko.has(Xa);return{node:It.createElement(Hr.ZP,Object.assign({},Vo.get(Xa),{checked:ul,onClick:Qs=>Qs.stopPropagation(),onChange:Qs=>{ko.has(Xa)||$a(Xa,!0,[Xa],Qs.nativeEvent)}})),checked:ul}}:Yl=(wa,na,Na)=>{var Xa;const ul=oo(na,Na),Qs=ko.has(ul),Ia=Os.has(ul),Nl=Vo.get(ul);let Iu;return lo==="nest"?Iu=Ia:Iu=(Xa=Nl==null?void 0:Nl.indeterminate)!==null&&Xa!==void 0?Xa:Ia,{node:It.createElement(ia.default,Object.assign({},Nl,{indeterminate:Iu,checked:Qs,skipGroup:!0,onClick:mu=>mu.stopPropagation(),onChange:mu=>{let{nativeEvent:Tu}=mu;const{shiftKey:Gu}=Tu;let oh=-1,sh=-1;if(Gu&&sr){const Va=new Set([Ps,ul]);Jo.some((Cu,Sl)=>{if(Va.has(Cu))if(oh===-1)oh=Sl;else return sh=Sl,!0;return!1})}if(sh!==-1&&oh!==sh&&sr){const Va=Jo.slice(oh,sh+1),Cu=[];Qs?Va.forEach(dl=>{ko.has(dl)&&(Cu.push(dl),ko.delete(dl))}):Va.forEach(dl=>{ko.has(dl)||(Cu.push(dl),ko.add(dl))});const Sl=Array.from(ko);En==null||En(!Qs,Sl.map(dl=>_n(dl)),Cu.map(dl=>_n(dl))),Fs(Sl,"multiple")}else{const Va=hs;if(sr){const Cu=Qs?(0,Zc._5)(Va,ul):(0,Zc.L0)(Va,ul);$a(ul,!Qs,Cu,Tu)}else{const Cu=(0,Bs.S)([].concat((0,yo.Z)(Va),[ul]),!0,Fo,Mo),{checkedKeys:Sl,halfCheckedKeys:dl}=Cu;let ph=Sl;if(Qs){const ec=new Set(Sl);ec.delete(ul),ph=(0,Bs.S)(Array.from(ec),{checked:!1,halfCheckedKeys:dl},Fo,Mo).checkedKeys}$a(ul,!Qs,ph,Tu)}}Io(Qs?null:ul)}})),checked:Qs}};const As=(wa,na,Na)=>{const{node:Xa,checked:ul}=Yl(wa,na,Na);return Ii?Ii(ul,na,Na,Xa):Xa};if(!ds.includes(el))if(ds.findIndex(wa=>{var na;return((na=wa[gr])===null||na===void 0?void 0:na.columnType)==="EXPAND_COLUMN"})===0){const[wa,...na]=ds;ds=[wa,el].concat((0,yo.Z)(na))}else ds=[el].concat((0,yo.Z)(ds));const eu=ds.indexOf(el);ds=ds.filter((wa,na)=>wa!==el||na===eu);const fa=ds[eu-1],yl=ds[eu+1];let po=Ei;po===void 0&&((yl==null?void 0:yl.fixed)!==void 0?po=yl.fixed:(fa==null?void 0:fa.fixed)!==void 0&&(po=fa.fixed)),po&&fa&&((as=fa[gr])===null||as===void 0?void 0:as.columnType)==="EXPAND_COLUMN"&&fa.fixed===void 0&&(fa.fixed=po);const Ra=Vt()(`${Ar}-selection-col`,{[`${Ar}-selection-col-with-dropdown`]:oi&&li==="checkbox"}),Nu={fixed:po,width:Vn,className:`${Ar}-selection-column`,title:Ce.columnTitle||ea,render:As,onCell:Ce.onCell,[gr]:{className:Ra}};return ds.map(wa=>wa===el?Nu:wa)},[oo,zr,Ce,hs,Pa,Os,Vn,js,lo,Ps,Vo,En,$a,Mo]),Pa]},cl=bt(89489),Ud=bt(59477),od=bt(6848);const Ah="ascend",Ko="descend";function sA(ge){return typeof ge.sorter=="object"&&typeof ge.sorter.multiple=="number"?ge.sorter.multiple:!1}function bn(ge){return typeof ge=="function"?ge:ge&&typeof ge=="object"&&ge.compare?ge.compare:!1}function Yi(ge,Ce){return Ce?ge[ge.indexOf(Ce)+1]:ge[0]}function aA(ge,Ce,Ve){let en=[];function un(hn,Tn){en.push({column:hn,key:Ka(hn,Tn),multiplePriority:sA(hn),sortOrder:hn.sortOrder})}return(ge||[]).forEach((hn,Tn)=>{const Xn=Wl(Tn,Ve);hn.children?("sortOrder"in hn&&un(hn,Xn),en=[].concat((0,yo.Z)(en),(0,yo.Z)(aA(hn.children,Ce,Xn)))):hn.sorter&&("sortOrder"in hn?un(hn,Xn):Ce&&hn.defaultSortOrder&&en.push({column:hn,key:Ka(hn,Xn),multiplePriority:sA(hn),sortOrder:hn.defaultSortOrder}))}),en}function tc(ge,Ce,Ve,en,un,hn,Tn,Xn){return(Ce||[]).map((Te,ln)=>{const vn=Wl(ln,Xn);let En=Te;if(En.sorter){const Vn=En.sortDirections||un,li=En.showSorterTooltip===void 0?Tn:En.showSorterTooltip,oi=Ka(En,vn),Ei=Ve.find(lo=>{let{key:ir}=lo;return ir===oi}),Ii=Ei?Ei.sortOrder:null,$i=Yi(Vn,Ii);let sr;if(Te.sortIcon)sr=Te.sortIcon({sortOrder:Ii});else{const lo=Vn.includes(Ah)&&It.createElement(Ud.Z,{className:Vt()(`${ge}-column-sorter-up`,{active:Ii===Ah})}),ir=Vn.includes(Ko)&&It.createElement(cl.Z,{className:Vt()(`${ge}-column-sorter-down`,{active:Ii===Ko})});sr=It.createElement("span",{className:Vt()(`${ge}-column-sorter`,{[`${ge}-column-sorter-full`]:!!(lo&&ir)})},It.createElement("span",{className:`${ge}-column-sorter-inner`,"aria-hidden":"true"},lo,ir))}const{cancelSort:Ar,triggerAsc:Jr,triggerDesc:Xi}=hn||{};let _n=Ar;$i===Ko?_n=Xi:$i===Ah&&(_n=Jr);const oo=typeof li=="object"?li:{title:_n};En=Object.assign(Object.assign({},En),{className:Vt()(En.className,{[`${ge}-column-sort`]:Ii}),title:lo=>{const ir=It.createElement("div",{className:`${ge}-column-sorters`},It.createElement("span",{className:`${ge}-column-title`},La(Te.title,lo)),sr);return li?It.createElement(od.Z,Object.assign({},oo),ir):ir},onHeaderCell:lo=>{const ir=Te.onHeaderCell&&Te.onHeaderCell(lo)||{},yr=ir.onClick,fr=ir.onKeyDown;ir.onClick=uo=>{en({column:Te,key:oi,sortOrder:$i,multiplePriority:sA(Te)}),yr==null||yr(uo)},ir.onKeyDown=uo=>{uo.keyCode===wr.Z.ENTER&&(en({column:Te,key:oi,sortOrder:$i,multiplePriority:sA(Te)}),fr==null||fr(uo))};const nr=vs(Te.title,{}),Or=nr==null?void 0:nr.toString();return Ii?ir["aria-sort"]=Ii==="ascend"?"ascending":"descending":ir["aria-label"]=Or||"",ir.className=Vt()(ir.className,`${ge}-column-has-sorters`),ir.tabIndex=0,Te.ellipsis&&(ir.title=(nr!=null?nr:"").toString()),ir}})}return"children"in En&&(En=Object.assign(Object.assign({},En),{children:tc(ge,En.children,Ve,en,un,hn,Tn,vn)})),En})}function ju(ge){const{column:Ce,sortOrder:Ve}=ge;return{column:Ce,order:Ve,field:Ce.dataIndex,columnKey:Ce.key}}function Uu(ge){const Ce=ge.filter(Ve=>{let{sortOrder:en}=Ve;return en}).map(ju);return Ce.length===0&&ge.length?Object.assign(Object.assign({},ju(ge[ge.length-1])),{column:void 0}):Ce.length<=1?Ce[0]||{}:Ce}function fh(ge,Ce,Ve){const en=Ce.slice().sort((Tn,Xn)=>Xn.multiplePriority-Tn.multiplePriority),un=ge.slice(),hn=en.filter(Tn=>{let{column:{sorter:Xn},sortOrder:Te}=Tn;return bn(Xn)&&Te});return hn.length?un.sort((Tn,Xn)=>{for(let Te=0;Te<hn.length;Te+=1){const ln=hn[Te],{column:{sorter:vn},sortOrder:En}=ln,Vn=bn(vn);if(Vn&&En){const li=Vn(Tn,Xn,En);if(li!==0)return En===Ah?li:-li}}return 0}).map(Tn=>{const Xn=Tn[Ve];return Xn?Object.assign(Object.assign({},Tn),{[Ve]:fh(Xn,Ce,Ve)}):Tn}):un}function _A(ge){let{prefixCls:Ce,mergedColumns:Ve,onSorterChange:en,sortDirections:un,tableLocale:hn,showSorterTooltip:Tn}=ge;const[Xn,Te]=It.useState(aA(Ve,!0)),ln=It.useMemo(()=>{let oi=!0;const Ei=aA(Ve,!1);if(!Ei.length)return Xn;const Ii=[];function $i(Ar){oi?Ii.push(Ar):Ii.push(Object.assign(Object.assign({},Ar),{sortOrder:null}))}let sr=null;return Ei.forEach(Ar=>{sr===null?($i(Ar),Ar.sortOrder&&(Ar.multiplePriority===!1?oi=!1:sr=!0)):(sr&&Ar.multiplePriority!==!1||(oi=!1),$i(Ar))}),Ii},[Ve,Xn]),vn=It.useMemo(()=>{const oi=ln.map(Ei=>{let{column:Ii,sortOrder:$i}=Ei;return{column:Ii,order:$i}});return{sortColumns:oi,sortColumn:oi[0]&&oi[0].column,sortOrder:oi[0]&&oi[0].order}},[ln]);function En(oi){let Ei;oi.multiplePriority===!1||!ln.length||ln[0].multiplePriority===!1?Ei=[oi]:Ei=[].concat((0,yo.Z)(ln.filter(Ii=>{let{key:$i}=Ii;return $i!==oi.key})),[oi]),Te(Ei),en(Uu(Ei),Ei)}return[oi=>tc(Ce,oi,ln,En,un,hn,Tn),ln,vn,()=>Uu(ln)]}function sd(ge,Ce){return ge.map(Ve=>{const en=Object.assign({},Ve);return en.title=La(Ve.title,Ce),"children"in en&&(en.children=sd(en.children,Ce)),en})}function il(ge){return[It.useCallback(Ve=>sd(Ve,ge),[ge])]}var gs=wo((ge,Ce)=>{const{_renderTimes:Ve}=ge,{_renderTimes:en}=Ce;return Ve!==en}),Xu=ta((ge,Ce)=>{const{_renderTimes:Ve}=ge,{_renderTimes:en}=Ce;return Ve!==en}),Ku=bt(64993),bl=bt(17313),sa=bt(83116),pu=bt(37613),xl=ge=>{const{componentCls:Ce}=ge,Ve=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`,en=(un,hn,Tn)=>({[`&${Ce}-${un}`]:{[`> ${Ce}-container`]:{[`> ${Ce}-content, > ${Ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${hn}px -${Tn+ge.lineWidth}px`}}}}}});return{[`${Ce}-wrapper`]:{[`${Ce}${Ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ce}-title`]:{border:Ve,borderBottom:0},[`> ${Ce}-container`]:{borderInlineStart:Ve,borderTop:Ve,[`
> ${Ce}-content,
> ${Ce}-header,
> ${Ce}-body,
> ${Ce}-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:Ve},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ve},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ce}-cell-fix-right-first::after`]:{borderInlineEnd:Ve}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${ge.tablePaddingVertical}px -${ge.tablePaddingHorizontal+ge.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ge.lineWidth,bottom:0,borderInlineEnd:Ve,content:'""'}}}}}},[`&${Ce}-scroll-horizontal`]:{[`> ${Ce}-container > ${Ce}-body`]:{"> table > tbody":{[`
> tr${Ce}-expanded-row,
> tr${Ce}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},en("middle",ge.tablePaddingVerticalMiddle,ge.tablePaddingHorizontalMiddle)),en("small",ge.tablePaddingVerticalSmall,ge.tablePaddingHorizontalSmall)),{[`> ${Ce}-footer`]:{border:Ve,borderTop:0}}),[`${Ce}-cell`]:{[`${Ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ge.lineWidth}px 0 ${ge.lineWidth}px ${ge.tableHeaderBg}`}},[`${Ce}-bordered ${Ce}-cell-scrollbar`]:{borderInlineEnd:Ve}}}},Su=ge=>{const{componentCls:Ce}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-cell-ellipsis`]:Object.assign(Object.assign({},bl.vS),{wordBreak:"keep-all",[`
&${Ce}-cell-fix-left-last,
&${Ce}-cell-fix-right-first
`]:{overflow:"visible",[`${Ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Da=ge=>{const{componentCls:Ce}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody > tr${Ce}-placeholder`]:{textAlign:"center",color:ge.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ge.colorBgContainer}}}}},Ju=bt(15969),vl=ge=>{const{componentCls:Ce,antCls:Ve,controlInteractiveSize:en,motionDurationSlow:un,lineWidth:hn,paddingXS:Tn,lineType:Xn,tableBorderColor:Te,tableExpandIconBg:ln,tableExpandColumnWidth:vn,borderRadius:En,fontSize:Vn,fontSizeSM:li,lineHeight:oi,tablePaddingVertical:Ei,tablePaddingHorizontal:Ii,tableExpandedRowBg:$i,paddingXXS:sr}=ge,Ar=en/2-hn,Jr=Ar*2+hn*3,Xi=`${hn}px ${Xn} ${Te}`,_n=sr-hn;return{[`${Ce}-wrapper`]:{[`${Ce}-expand-icon-col`]:{width:vn},[`${Ce}-row-expand-icon-cell`]:{textAlign:"center",[`${Ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ce}-row-indent`]:{height:1,float:"left"},[`${Ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ju.N)(ge)),{position:"relative",float:"left",boxSizing:"border-box",width:Jr,height:Jr,padding:0,color:"inherit",lineHeight:`${Jr}px`,background:ln,border:Xi,borderRadius:En,transform:`scale(${en/Jr})`,transition:`all ${un}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${un} ease-out`,content:'""'},"&::before":{top:Ar,insetInlineEnd:_n,insetInlineStart:_n,height:hn},"&::after":{top:_n,bottom:_n,insetInlineStart:Ar,width:hn,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"}}),[`${Ce}-row-indent + ${Ce}-row-expand-icon`]:{marginTop:(Vn*oi-hn*3)/2-Math.ceil((li*1.4-hn*3)/2),marginInlineEnd:Tn},[`tr${Ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:$i}},[`${Ve}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ce}-expanded-row-fixed`]:{position:"relative",margin:`-${Ei}px -${Ii}px`,padding:`${Ei}px ${Ii}px`}}}},Et=ge=>{const{componentCls:Ce,antCls:Ve,iconCls:en,tableFilterDropdownWidth:un,tableFilterDropdownSearchWidth:hn,paddingXXS:Tn,paddingXS:Xn,colorText:Te,lineWidth:ln,lineType:vn,tableBorderColor:En,tableHeaderIconColor:Vn,fontSizeSM:li,tablePaddingHorizontal:oi,borderRadius:Ei,motionDurationSlow:Ii,colorTextDescription:$i,colorPrimary:sr,tableHeaderFilterActiveBg:Ar,colorTextDisabled:Jr,tableFilterDropdownBg:Xi,tableFilterDropdownHeight:_n,controlItemBgHover:oo,controlItemBgActive:lo,boxShadowSecondary:ir,filterDropdownMenuBg:yr}=ge,fr=`${Ve}-dropdown`,nr=`${Ce}-filter-dropdown`,Or=`${Ve}-tree`,uo=`${ln}px ${vn} ${En}`;return[{[`${Ce}-wrapper`]:{[`${Ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Tn,marginInline:`${Tn}px ${-oi/2}px`,padding:`0 ${Tn}px`,color:Vn,fontSize:li,borderRadius:Ei,cursor:"pointer",transition:`all ${Ii}`,"&:hover":{color:$i,background:Ar},"&.active":{color:sr}}}},{[`${Ve}-dropdown`]:{[nr]:Object.assign(Object.assign({},(0,bl.Wf)(ge)),{minWidth:un,backgroundColor:Xi,borderRadius:Ei,boxShadow:ir,overflow:"hidden",[`${fr}-menu`]:{maxHeight:_n,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:yr,"&:empty::after":{display:"block",padding:`${Xn}px 0`,color:Jr,fontSize:li,textAlign:"center",content:'"Not Found"'}},[`${nr}-tree`]:{paddingBlock:`${Xn}px 0`,paddingInline:Xn,[Or]:{padding:0},[`${Or}-treenode ${Or}-node-content-wrapper:hover`]:{backgroundColor:oo},[`${Or}-treenode-checkbox-checked ${Or}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:lo}}},[`${nr}-search`]:{padding:Xn,borderBottom:uo,"&-input":{input:{minWidth:hn},[en]:{color:Jr}}},[`${nr}-checkall`]:{width:"100%",marginBottom:Tn,marginInlineStart:Tn},[`${nr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Xn-ln}px ${Xn}px`,overflow:"hidden",borderTop:uo}})}},{[`${Ve}-dropdown ${nr}, ${nr}-submenu`]:{[`${Ve}-checkbox-wrapper + span`]:{paddingInlineStart:Xn,color:Te},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Lt=ge=>{const{componentCls:Ce,lineWidth:Ve,colorSplit:en,motionDurationSlow:un,zIndexTableFixed:hn,tableBg:Tn,zIndexTableSticky:Xn}=ge,Te=en;return{[`${Ce}-wrapper`]:{[`
${Ce}-cell-fix-left,
${Ce}-cell-fix-right
`]:{position:"sticky !important",zIndex:hn,background:Tn},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ve,width:30,transform:"translateX(100%)",transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},[`${Ce}-cell-fix-left-all::after`]:{display:"none"},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Ve,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},[`${Ce}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Xn+1,width:30,transition:`box-shadow ${un}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ce}-ping-left`]:{[`&:not(${Ce}-has-fix-left) ${Ce}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Te}`}},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Te}`},[`${Ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ce}-ping-right`]:{[`&:not(${Ce}-has-fix-right) ${Ce}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Te}`}},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Te}`}}}}},se=ge=>{const{componentCls:Ce,antCls:Ve}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-pagination${Ve}-pagination`]:{margin:`${ge.margin}px 0`},[`${Ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ge.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},pe=ge=>{const{componentCls:Ce,tableRadius:Ve}=ge;return{[`${Ce}-wrapper`]:{[Ce]:{[`${Ce}-title, ${Ce}-header`]:{borderRadius:`${Ve}px ${Ve}px 0 0`},[`${Ce}-title + ${Ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ce}-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:Ve,borderStartEndRadius:Ve,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ve},"> *:last-child":{borderStartEndRadius:Ve}}},"&-footer":{borderRadius:`0 0 ${Ve}px ${Ve}px`}}}}},Fe=ge=>{const{componentCls:Ce}=ge;return{[`${Ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ce}-pagination-left`]:{justifyContent:"flex-end"},[`${Ce}-pagination-right`]:{justifyContent:"flex-start"},[`${Ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ce}-row-indent`]:{float:"right"}}}}},pn=ge=>{const{componentCls:Ce,antCls:Ve,iconCls:en,fontSizeIcon:un,padding:hn,paddingXS:Tn,tableHeaderIconColor:Xn,tableHeaderIconColorHover:Te,tableSelectionColumnWidth:ln}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-selection-col`]:{width:ln,[`&${Ce}-selection-col-with-dropdown`]:{width:ln+un+hn/4}},[`${Ce}-bordered ${Ce}-selection-col`]:{width:ln+Tn*2,[`&${Ce}-selection-col-with-dropdown`]:{width:ln+un+hn/4+Tn*2}},[`
table tr th${Ce}-selection-column,
table tr td${Ce}-selection-column
`]:{paddingInlineEnd:ge.paddingXS,paddingInlineStart:ge.paddingXS,textAlign:"center",[`${Ve}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ce}-selection-column${Ce}-cell-fix-left`]:{zIndex:ge.zIndexTableFixed+1},[`table tr th${Ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ge.tablePaddingHorizontal/4}px`,[en]:{color:Xn,fontSize:un,verticalAlign:"baseline","&:hover":{color:Te}}}}}},Nn=ge=>{const{componentCls:Ce}=ge,Ve=(en,un,hn,Tn)=>({[`${Ce}${Ce}-${en}`]:{fontSize:Tn,[`
${Ce}-title,
${Ce}-footer,
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${un}px ${hn}px`},[`${Ce}-filter-trigger`]:{marginInlineEnd:`-${hn/2}px`},[`${Ce}-expanded-row-fixed`]:{margin:`-${un}px -${hn}px`},[`${Ce}-tbody`]:{[`${Ce}-wrapper:only-child ${Ce}`]:{marginBlock:`-${un}px`,marginInline:`${ge.tableExpandColumnWidth-hn}px -${hn}px`}},[`${Ce}-selection-column`]:{paddingInlineStart:`${hn/4}px`}}});return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},Ve("middle",ge.tablePaddingVerticalMiddle,ge.tablePaddingHorizontalMiddle,ge.tableFontSizeMiddle)),Ve("small",ge.tablePaddingVerticalSmall,ge.tablePaddingHorizontalSmall,ge.tableFontSizeSmall))}},ci=ge=>{const{componentCls:Ce,marginXXS:Ve,fontSizeIcon:en,tableHeaderIconColor:un,tableHeaderIconColorHover:hn}=ge;return{[`${Ce}-wrapper`]:{[`${Ce}-thead th${Ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"&:hover":{background:ge.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ge.colorPrimary},[`
&${Ce}-cell-fix-left:hover,
&${Ce}-cell-fix-right:hover
`]:{background:ge.tableFixedHeaderSortActiveBg}},[`${Ce}-thead th${Ce}-column-sort`]:{background:ge.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ce}-column-sort`]:{background:ge.tableBodySortBg},[`${Ce}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ce}-column-sorter`]:{marginInlineStart:Ve,color:un,fontSize:0,transition:`color ${ge.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:en,"&.active":{color:ge.colorPrimary}},[`${Ce}-column-sorter-up + ${Ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ce}-column-sorters:hover ${Ce}-column-sorter`]:{color:hn}}}},gi=ge=>{const{componentCls:Ce,opacityLoading:Ve,tableScrollThumbBg:en,tableScrollThumbBgHover:un,tableScrollThumbSize:hn,tableScrollBg:Tn,zIndexTableSticky:Xn,stickyScrollBarBorderRadius:Te}=ge,ln=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`;return{[`${Ce}-wrapper`]:{[`${Ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:Xn,background:ge.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${hn}px !important`,zIndex:Xn,display:"flex",alignItems:"center",background:Tn,borderTop:ln,opacity:Ve,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:hn,backgroundColor:en,borderRadius:Te,transition:`all ${ge.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:un}}}}}}},Ai=ge=>{const{componentCls:Ce,lineWidth:Ve,tableBorderColor:en}=ge,un=`${Ve}px ${ge.lineType} ${en}`;return{[`${Ce}-wrapper`]:{[`${Ce}-summary`]:{position:"relative",zIndex:ge.zIndexTableFixed,background:ge.tableBg,"> tr":{"> th, > td":{borderBottom:un}}},[`div${Ce}-summary`]:{boxShadow:`0 -${Ve}px 0 ${en}`}}}},lr=ge=>{const{componentCls:Ce}=ge,Ve=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`,en=`${Ce}-expanded-row-cell`;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody-virtual`]:{[`${Ce}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ce}-cell`]:{borderBottom:Ve},[`${Ce}-expanded-row`]:{[`${en}${en}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ge.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ce}-bordered`]:{[`${Ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ve,position:"absolute"},[`${Ce}-cell`]:{borderInlineEnd:Ve,[`&${Ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ge.lineWidth,borderInlineStart:Ve}}}}}}};const Ir=ge=>{const{componentCls:Ce,fontWeightStrong:Ve,tablePaddingVertical:en,tablePaddingHorizontal:un,lineWidth:hn,lineType:Tn,tableBorderColor:Xn,tableFontSize:Te,tableBg:ln,tableRadius:vn,tableHeaderTextColor:En,motionDurationMid:Vn,tableHeaderBg:li,tableHeaderCellSplitColor:oi,tableRowHoverBg:Ei,tableSelectedRowBg:Ii,tableSelectedRowHoverBg:$i,tableFooterTextColor:sr,tableFooterBg:Ar,paddingContentVerticalLG:Jr}=ge,Xi=`${hn}px ${Tn} ${Xn}`;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,bl.dF)()),{[Ce]:Object.assign(Object.assign({},(0,bl.Wf)(ge)),{fontSize:Te,background:ln,borderRadius:`${vn}px ${vn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${vn}px ${vn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Jr}px ${un}px`,overflowWrap:"break-word"},[`${Ce}-title`]:{padding:`${en}px ${un}px`},[`${Ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:En,fontWeight:Ve,textAlign:"start",background:li,borderBottom:Xi,transition:`background ${Vn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ce}-selection-column):not(${Ce}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:oi,transform:"translateY(-50%)",transition:`background-color ${Vn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Vn}, border-color ${Vn}`,borderBottom:Xi,[`
> ${Ce}-wrapper:only-child,
> ${Ce}-expanded-row-fixed > ${Ce}-wrapper:only-child
`]:{[Ce]:{marginBlock:`-${en}px`,marginInline:`${ge.tableExpandColumnWidth-un}px -${un}px`,[`${Ce}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:En,fontWeight:Ve,textAlign:"start",background:li,borderBottom:Xi,transition:`background ${Vn} ease`},[`
&${Ce}-row:hover > th,
&${Ce}-row:hover > td,
> th${Ce}-cell-row-hover,
> td${Ce}-cell-row-hover
`]:{background:Ei},[`&${Ce}-row-selected`]:{"> th, > td":{background:Ii},"&:hover > th, &:hover > td":{background:$i}}}},[`${Ce}-footer`]:{padding:`${en}px ${un}px`,color:sr,background:Ar}})}};var io=(0,sa.Z)("Table",ge=>{const{colorTextHeading:Ce,colorSplit:Ve,colorIcon:en,colorIconHover:un,opacityLoading:hn,colorBgContainer:Tn,controlInteractiveSize:Xn,headerBg:Te,headerColor:ln,headerSortActiveBg:vn,headerSortHoverBg:En,bodySortBg:Vn,rowHoverBg:li,rowSelectedBg:oi,rowSelectedHoverBg:Ei,rowExpandedBg:Ii,cellPaddingBlock:$i,cellPaddingInline:sr,cellPaddingBlockMD:Ar,cellPaddingInlineMD:Jr,cellPaddingBlockSM:Xi,cellPaddingInlineSM:_n,borderColor:oo,footerBg:lo,footerColor:ir,headerBorderRadius:yr,cellFontSize:fr,cellFontSizeMD:nr,cellFontSizeSM:Or,headerSplitColor:uo,fixedHeaderSortActiveBg:So,headerFilterHoverBg:Fo,filterDropdownBg:zr,expandIconBg:Vo,selectionColumnWidth:Mo,stickyScrollBarBg:hs}=ge,ho=new Ku.C(en),Pa=new Ku.C(un),Os=2,Ps=(0,pu.TS)(ge,{tableFontSize:fr,tableBg:Tn,tableRadius:yr,tablePaddingVertical:$i,tablePaddingHorizontal:sr,tablePaddingVerticalMiddle:Ar,tablePaddingHorizontalMiddle:Jr,tablePaddingVerticalSmall:Xi,tablePaddingHorizontalSmall:_n,tableBorderColor:oo,tableHeaderTextColor:ln,tableHeaderBg:Te,tableFooterTextColor:ir,tableFooterBg:lo,tableHeaderCellSplitColor:uo,tableHeaderSortBg:vn,tableHeaderSortHoverBg:En,tableHeaderIconColor:ho.clone().setAlpha(ho.getAlpha()*hn).toRgbString(),tableHeaderIconColorHover:Pa.clone().setAlpha(Pa.getAlpha()*hn).toRgbString(),tableBodySortBg:Vn,tableFixedHeaderSortActiveBg:So,tableHeaderFilterActiveBg:Fo,tableFilterDropdownBg:zr,tableRowHoverBg:li,tableSelectedRowBg:oi,tableSelectedRowHoverBg:Ei,zIndexTableFixed:Os,zIndexTableSticky:Os+1,tableFontSizeMiddle:nr,tableFontSizeSmall:Or,tableSelectionColumnWidth:Mo,tableExpandIconBg:Vo,tableExpandColumnWidth:Xn+2*ge.padding,tableExpandedRowBg:Ii,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:hs,tableScrollThumbBgHover:Ce,tableScrollBg:Ve});return[Ir(Ps),se(Ps),Ai(Ps),ci(Ps),Et(Ps),xl(Ps),pe(Ps),vl(Ps),Ai(Ps),Da(Ps),pn(Ps),Lt(Ps),gi(Ps),Su(Ps),Nn(Ps),Fe(Ps),lr(Ps)]},ge=>{const{colorFillAlter:Ce,colorBgContainer:Ve,colorTextHeading:en,colorFillSecondary:un,colorFillContent:hn,controlItemBgActive:Tn,controlItemBgActiveHover:Xn,padding:Te,paddingSM:ln,paddingXS:vn,colorBorderSecondary:En,borderRadiusLG:Vn,fontSize:li,controlHeight:oi,colorTextPlaceholder:Ei}=ge,Ii=new Ku.C(un).onBackground(Ve).toHexShortString(),$i=new Ku.C(hn).onBackground(Ve).toHexShortString(),sr=new Ku.C(Ce).onBackground(Ve).toHexShortString();return{headerBg:sr,headerColor:en,headerSortActiveBg:Ii,headerSortHoverBg:$i,bodySortBg:sr,rowHoverBg:sr,rowSelectedBg:Tn,rowSelectedHoverBg:Xn,rowExpandedBg:Ce,cellPaddingBlock:Te,cellPaddingInline:Te,cellPaddingBlockMD:ln,cellPaddingInlineMD:vn,cellPaddingBlockSM:vn,cellPaddingInlineSM:vn,borderColor:En,headerBorderRadius:Vn,footerBg:sr,footerColor:en,cellFontSize:li,cellFontSizeMD:li,cellFontSizeSM:li,headerSplitColor:En,fixedHeaderSortActiveBg:Ii,headerFilterHoverBg:hn,filterDropdownMenuBg:Ve,filterDropdownBg:Ve,expandIconBg:Ve,selectionColumnWidth:oi,stickyScrollBarBg:Ei,stickyScrollBarBorderRadius:100}});const mr=[],Ti=(ge,Ce)=>{const{prefixCls:Ve,className:en,rootClassName:un,style:hn,size:Tn,bordered:Xn,dropdownPrefixCls:Te,dataSource:ln,pagination:vn,rowSelection:En,rowKey:Vn="key",rowClassName:li,columns:oi,children:Ei,childrenColumnName:Ii,onChange:$i,getPopupContainer:sr,loading:Ar,expandIcon:Jr,expandable:Xi,expandedRowRender:_n,expandIconColumnIndex:oo,indentSize:lo,scroll:ir,sortDirections:yr,locale:fr,showSorterTooltip:nr=!0,virtual:Or}=ge,uo=It.useMemo(()=>oi||hi(Ei),[oi,Ei]),So=It.useMemo(()=>uo.some(Ta=>Ta.responsive),[uo]),Fo=(0,zi.Z)(So),zr=It.useMemo(()=>{const Ta=new Set(Object.keys(Fo).filter(ra=>Fo[ra]));return uo.filter(ra=>!ra.responsive||ra.responsive.some(uu=>Ta.has(uu)))},[uo,Fo]),Vo=(0,Lo.Z)(ge,["className","style","columns"]),{locale:Mo=Eo.Z,direction:hs,table:ho,renderEmpty:Pa,getPrefixCls:Os,getPopupContainer:Ps}=It.useContext(Fa.E_),Io=(0,mo.Z)(Tn),Fs=Object.assign(Object.assign({},Mo.Table),fr),$a=ln||mr,js=Os("table",Ve),jl=Os("dropdown",Te),Po=Object.assign({childrenColumnName:Ii,expandIconColumnIndex:oo},Xi),{childrenColumnName:as="children"}=Po,ds=It.useMemo(()=>$a.some(Ta=>Ta==null?void 0:Ta[as])?"nest":_n||Xi&&Xi.expandedRowRender?"row":null,[$a]),ko={body:It.useRef()},Jo=It.useMemo(()=>typeof Vn=="function"?Vn:Ta=>Ta==null?void 0:Ta[Vn],[Vn]),[bo]=al($a,as,Jo),Ls={},_s=function(Ta,ra){let uu=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var wl,ga,hu;const Ru=Object.assign(Object.assign({},Ls),Ta);uu&&((wl=Ls.resetPagination)===null||wl===void 0||wl.call(Ls),!((ga=Ru.pagination)===null||ga===void 0)&&ga.current&&(Ru.pagination.current=1),vn&&vn.onChange&&vn.onChange(1,(hu=Ru.pagination)===null||hu===void 0?void 0:hu.pageSize)),ir&&ir.scrollToFirstRowOnChange!==!1&&ko.body.current&&(0,os.Z)(0,{getContainer:()=>ko.body.current}),$i==null||$i(Ru.pagination,Ru.filters,Ru.sorter,{currentDataSource:tu(fh($a,Ru.sorterStates,as),Ru.filterStates),action:ra})},ea=(Ta,ra)=>{_s({sorter:Ta,sorterStates:ra},"sort",!1)},[Yl,As,eu,fa]=_A({prefixCls:js,mergedColumns:zr,onSorterChange:ea,sortDirections:yr||["ascend","descend"],tableLocale:Fs,showSorterTooltip:nr}),yl=It.useMemo(()=>fh($a,As,as),[$a,As]);Ls.sorter=fa(),Ls.sorterStates=As;const po=(Ta,ra)=>{_s({filters:Ta,filterStates:ra},"filter",!0)},[Ra,Nu,wa]=dc({prefixCls:js,locale:Fs,dropdownPrefixCls:jl,mergedColumns:zr,onFilterChange:po,getPopupContainer:sr||Ps}),na=tu(yl,Nu);Ls.filters=wa,Ls.filterStates=Nu;const Na=It.useMemo(()=>{const Ta={};return Object.keys(wa).forEach(ra=>{wa[ra]!==null&&(Ta[ra]=wa[ra])}),Object.assign(Object.assign({},eu),{filters:Ta})},[eu,wa]),[Xa]=il(Na),ul=(Ta,ra)=>{_s({pagination:Object.assign(Object.assign({},Ls.pagination),{current:Ta,pageSize:ra})},"paginate")},[Qs,Ia]=Ec(na.length,ul,vn);Ls.pagination=vn===!1?{}:Ga(Qs,vn),Ls.resetPagination=Ia;const Nl=It.useMemo(()=>{if(vn===!1||!Qs.pageSize)return na;const{current:Ta=1,total:ra,pageSize:uu=dh}=Qs;return na.length<ra?na.length>uu?na.slice((Ta-1)*uu,Ta*uu):na:na.slice((Ta-1)*uu,Ta*uu)},[!!vn,na,Qs&&Qs.current,Qs&&Qs.pageSize,Qs&&Qs.total]),[Iu,mu]=rh({prefixCls:js,data:na,pageData:Nl,getRowKey:Jo,getRecordByKey:bo,expandType:ds,childrenColumnName:as,locale:Fs,getPopupContainer:sr||Ps},En),Tu=(Ta,ra,uu)=>{let wl;return typeof li=="function"?wl=Vt()(li(Ta,ra,uu)):wl=Vt()(li),Vt()({[`${js}-row-selected`]:mu.has(Jo(Ta,ra))},wl)};Po.__PARENT_RENDER_ICON__=Po.expandIcon,Po.expandIcon=Po.expandIcon||Jr||Vs(Fs),ds==="nest"&&Po.expandIconColumnIndex===void 0?Po.expandIconColumnIndex=En?1:0:Po.expandIconColumnIndex>0&&En&&(Po.expandIconColumnIndex-=1),typeof Po.indentSize!="number"&&(Po.indentSize=typeof lo=="number"?lo:15);const Gu=It.useCallback(Ta=>Xa(Iu(Ra(Yl(Ta)))),[Yl,Ra,Iu]);let oh,sh;if(vn!==!1&&(Qs!=null&&Qs.total)){let Ta;Qs.size?Ta=Qs.size:Ta=Io==="small"||Io==="middle"?"small":void 0;const ra=ga=>It.createElement(Es.Z,Object.assign({},Qs,{className:Vt()(`${js}-pagination ${js}-pagination-${ga}`,Qs.className),size:Ta})),uu=hs==="rtl"?"left":"right",{position:wl}=Qs;if(wl!==null&&Array.isArray(wl)){const ga=wl.find(ku=>ku.includes("top")),hu=wl.find(ku=>ku.includes("bottom")),Ru=wl.every(ku=>`${ku}`=="none");!ga&&!hu&&!Ru&&(sh=ra(uu)),ga&&(oh=ra(ga.toLowerCase().replace("top",""))),hu&&(sh=ra(hu.toLowerCase().replace("bottom","")))}else sh=ra(uu)}let Va;typeof Ar=="boolean"?Va={spinning:Ar}:typeof Ar=="object"&&(Va=Object.assign({spinning:!0},Ar));const[Cu,Sl]=io(js),[,dl]=(0,ca.Z)(),ph=Vt()(`${js}-wrapper`,ho==null?void 0:ho.className,{[`${js}-wrapper-rtl`]:hs==="rtl"},en,un,Sl),ec=Object.assign(Object.assign({},ho==null?void 0:ho.style),hn),bh=fr&&fr.emptyText||(Pa==null?void 0:Pa("Table"))||It.createElement(ao.Z,{componentName:"Table"}),Dh=Or?Xu:gs,fc={},Wu=It.useMemo(()=>{const{fontSize:Ta,lineHeight:ra,padding:uu,paddingXS:wl,paddingSM:ga}=dl,hu=Math.floor(Ta*ra);switch(Io){case"large":return uu*2+hu;case"small":return wl*2+hu;default:return ga*2+hu}},[dl,Io]);return Or&&(fc.listItemHeight=Wu),Cu(It.createElement("div",{ref:Ce,className:ph,style:ec},It.createElement(la.Z,Object.assign({spinning:!1},Va),oh,It.createElement(Dh,Object.assign({},fc,Vo,{columns:zr,direction:hs,expandable:Po,prefixCls:js,className:Vt()({[`${js}-middle`]:Io==="middle",[`${js}-small`]:Io==="small",[`${js}-bordered`]:Xn,[`${js}-empty`]:$a.length===0}),data:Nl,rowKey:Jo,rowClassName:Tu,emptyText:bh,internalHooks:ce,internalRefs:ko,transformColumns:Gu})),sh)))};var Br=It.forwardRef(Ti);const Wr=(ge,Ce)=>{const Ve=It.useRef(0);return Ve.current+=1,It.createElement(Br,Object.assign({},ge,{ref:Ce,_renderTimes:Ve.current}))},Qn=It.forwardRef(Wr);Qn.SELECTION_COLUMN=el,Qn.EXPAND_COLUMN=Ft,Qn.SELECTION_ALL=ll,Qn.SELECTION_INVERT=Wa,Qn.SELECTION_NONE=Aa,Qn.Column=vr,Qn.ColumnGroup=Xo,Qn.Summary=le;var $n=Qn,Zi=$n},17574:function(ui,wn,bt){"use strict";bt.d(wn,{default:function(){return ve}});var Ft=bt(54844),ce=bt(80702),re=bt(52671),Be=bt(8657),ee=bt(72308),Yt=bt(59301),It={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"},jt=It,Xt=bt(7657),Pt=function(Se,Bn){return Yt.createElement(Xt.Z,(0,ee.Z)({},Se,{ref:Bn,icon:jt}))},oe=Yt.forwardRef(Pt),zt=oe,Jt=bt(92310),Ct=bt.n(Jt),et=bt(35654),tt=bt(71430),lt=bt(36355),rt=bt(56082),ut=bt(62892),ct=bt(20648);const wt=4;function Mt(ie){const{dropPosition:Se,dropLevelOffset:Bn,prefixCls:Ln,indent:Ye,direction:Mn="ltr"}=ie,Wn=Mn==="ltr"?"left":"right",fi=Mn==="ltr"?"right":"left",Hn={[Wn]:-Bn*Ye+wt,[fi]:0};switch(Se){case-1:Hn.top=-3;break;case 1:Hn.bottom=-3;break;default:Hn.bottom=-3,Hn[Wn]=Ye+wt;break}return Yt.createElement("div",{style:Hn,className:`${Ln}-drop-indicator`})}var Ot=bt(71997),ne=Yt.forwardRef((ie,Se)=>{const{getPrefixCls:Bn,direction:Ln,virtual:Ye,tree:Mn}=Yt.useContext(lt.E_),{prefixCls:Wn,className:fi,showIcon:Hn=!1,showLine:xi,switcherIcon:nn,blockNode:Fi=!1,children:ki,checkable:Nt=!1,selectable:Dt=!0,draggable:mt,motion:ft,style:pt}=ie,At=Bn("tree",Wn),ue=Bn(),we=ft!=null?ft:Object.assign(Object.assign({},(0,ut.Z)(ue)),{motionAppear:!1}),le=Object.assign(Object.assign({},ie),{checkable:Nt,selectable:Dt,showIcon:Hn,motion:we,blockNode:Fi,showLine:!!xi,dropIndicatorRender:Mt}),[me,Ue]=(0,ct.ZP)(At),ke=Yt.useMemo(()=>{if(!mt)return!1;let rn={};switch(typeof mt){case"function":rn.nodeDraggable=mt;break;case"object":rn=Object.assign({},mt);break;default:break}return rn.icon!==!1&&(rn.icon=rn.icon||Yt.createElement(rt.Z,null)),rn},[mt]),Ie=rn=>Yt.createElement(Ot.Z,{prefixCls:At,switcherIcon:nn,treeNodeProps:rn,showLine:xi});return me(Yt.createElement(Ft.Z,Object.assign({itemHeight:20,ref:Se,virtual:Ye},le,{style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),pt),prefixCls:At,className:Ct()({[`${At}-icon-hide`]:!Hn,[`${At}-block-node`]:Fi,[`${At}-unselectable`]:!Dt,[`${At}-rtl`]:Ln==="rtl"},Mn==null?void 0:Mn.className,fi,Ue),direction:Ln,checkable:Nt&&Yt.createElement("span",{className:`${At}-checkbox-inner`}),selectable:Dt,switcherIcon:Ie,draggable:ke}),ki))}),ae;(function(ie){ie[ie.None=0]="None",ie[ie.Start=1]="Start",ie[ie.End=2]="End"})(ae||(ae={}));function de(ie,Se){function Bn(Ln){const{key:Ye,children:Mn}=Ln;Se(Ye,Ln)!==!1&&de(Mn||[],Se)}ie.forEach(Bn)}function be(ie){let{treeData:Se,expandedKeys:Bn,startKey:Ln,endKey:Ye}=ie;const Mn=[];let Wn=ae.None;if(Ln&&Ln===Ye)return[Ln];if(!Ln||!Ye)return[];function fi(Hn){return Hn===Ln||Hn===Ye}return de(Se,Hn=>{if(Wn===ae.End)return!1;if(fi(Hn)){if(Mn.push(Hn),Wn===ae.None)Wn=ae.Start;else if(Wn===ae.Start)return Wn=ae.End,!1}else Wn===ae.Start&&Mn.push(Hn);return Bn.includes(Hn)}),Mn}function qt(ie,Se){const Bn=(0,ce.Z)(Se),Ln=[];return de(ie,(Ye,Mn)=>{const Wn=Bn.indexOf(Ye);return Wn!==-1&&(Ln.push(Mn),Bn.splice(Wn,1)),!!Bn.length}),Ln}var ze=function(ie,Se){var Bn={};for(var Ln in ie)Object.prototype.hasOwnProperty.call(ie,Ln)&&Se.indexOf(Ln)<0&&(Bn[Ln]=ie[Ln]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ln=Object.getOwnPropertySymbols(ie);Ye<Ln.length;Ye++)Se.indexOf(Ln[Ye])<0&&Object.prototype.propertyIsEnumerable.call(ie,Ln[Ye])&&(Bn[Ln[Ye]]=ie[Ln[Ye]]);return Bn};function Vt(ie){const{isLeaf:Se,expanded:Bn}=ie;return Se?Yt.createElement(re.Z,null):Bn?Yt.createElement(Be.Z,null):Yt.createElement(zt,null)}function Ge(ie){let{treeData:Se,children:Bn}=ie;return Se||(0,tt.zn)(Bn)}const _e=(ie,Se)=>{var{defaultExpandAll:Bn,defaultExpandParent:Ln,defaultExpandedKeys:Ye}=ie,Mn=ze(ie,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Wn=Yt.useRef(),fi=Yt.useRef(),Hn=()=>{const{keyEntities:ke}=(0,tt.I8)(Ge(Mn));let Ie;return Bn?Ie=Object.keys(ke):Ln?Ie=(0,et.r7)(Mn.expandedKeys||Ye||[],ke):Ie=Mn.expandedKeys||Ye,Ie},[xi,nn]=Yt.useState(Mn.selectedKeys||Mn.defaultSelectedKeys||[]),[Fi,ki]=Yt.useState(()=>Hn());Yt.useEffect(()=>{"selectedKeys"in Mn&&nn(Mn.selectedKeys)},[Mn.selectedKeys]),Yt.useEffect(()=>{"expandedKeys"in Mn&&ki(Mn.expandedKeys)},[Mn.expandedKeys]);const Nt=(ke,Ie)=>{var rn;return"expandedKeys"in Mn||ki(ke),(rn=Mn.onExpand)===null||rn===void 0?void 0:rn.call(Mn,ke,Ie)},Dt=(ke,Ie)=>{var rn;const{multiple:Gn}=Mn,{node:dn,nativeEvent:An}=Ie,{key:Dn=""}=dn,qn=Ge(Mn),Rn=Object.assign(Object.assign({},Ie),{selected:!0}),Di=(An==null?void 0:An.ctrlKey)||(An==null?void 0:An.metaKey),cr=An==null?void 0:An.shiftKey;let Ji;Gn&&Di?(Ji=ke,Wn.current=Dn,fi.current=Ji,Rn.selectedNodes=qt(qn,Ji)):Gn&&cr?(Ji=Array.from(new Set([].concat((0,ce.Z)(fi.current||[]),(0,ce.Z)(be({treeData:qn,expandedKeys:Fi,startKey:Dn,endKey:Wn.current}))))),Rn.selectedNodes=qt(qn,Ji)):(Ji=[Dn],Wn.current=Dn,fi.current=Ji,Rn.selectedNodes=qt(qn,Ji)),(rn=Mn.onSelect)===null||rn===void 0||rn.call(Mn,Ji,Rn),"selectedKeys"in Mn||nn(Ji)},{getPrefixCls:mt,direction:ft}=Yt.useContext(lt.E_),{prefixCls:pt,className:At,showIcon:ue=!0,expandAction:we="click"}=Mn,le=ze(Mn,["prefixCls","className","showIcon","expandAction"]),me=mt("tree",pt),Ue=Ct()(`${me}-directory`,{[`${me}-directory-rtl`]:ft==="rtl"},At);return Yt.createElement(ne,Object.assign({icon:Vt,ref:Se,blockNode:!0},le,{showIcon:ue,expandAction:we,prefixCls:me,className:Ue,expandedKeys:Fi,selectedKeys:xi,onSelect:Dt,onExpand:Nt}))};var We=Yt.forwardRef(_e);const Re=ne;Re.DirectoryTree=We,Re.TreeNode=Ft.O;var ve=Re},20648:function(ui,wn,bt){"use strict";bt.d(wn,{TM:function(){return Jt},Yk:function(){return zt}});var Ft=bt(93083),ce=bt(98447),re=bt(17313),Be=bt(8378),ee=bt(37613),Yt=bt(83116);const It=new Ft.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),jt=(Ct,et)=>({[`.${Ct}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),Xt=(Ct,et)=>({[`.${Ct}-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:'""'}}}),Pt=(Ct,et)=>{const{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt,titleHeight:ut,nodeSelectedBg:ct,nodeHoverBg:wt}=et,Mt=et.paddingXS;return{[tt]:Object.assign(Object.assign({},(0,re.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,re.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:It,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,re.oN)(et)),[`&:not(${lt}-disabled).filter-node ${tt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${tt}-draggable-icon`]:{flexShrink:0,width:ut,lineHeight:`${ut}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:ut}},[`${tt}-draggable-icon`]:{visibility:"hidden"},[`${tt}-switcher`]:Object.assign(Object.assign({},jt(Ct,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ut,margin:0,lineHeight:`${ut}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:ut/2,bottom:-rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ut/2*.8,height:ut/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:ut,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${ut}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:wt},[`&${tt}-node-selected`]:{backgroundColor:ct},[`${tt}-iconEle`]:{display:"inline-block",width:ut,height:ut,lineHeight:`${ut}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${tt}-unselectable ${tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}-node-content-wrapper`]:Object.assign({lineHeight:`${ut}px`,userSelect:"none"},Xt(Ct,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:ut/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:`${ut/2}px !important`}}}}})}},oe=Ct=>{const{treeCls:et,treeNodeCls:tt,treeNodePadding:lt,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:ut}=Ct;return{[`${et}${et}-directory`]:{[tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:lt,insetInlineStart:0,transition:`background-color ${Ct.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ct.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${Ct.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ut,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:rt},[`${et}-switcher`]:{color:ut},[`${et}-node-content-wrapper`]:{color:ut,background:"transparent"}}}}}},zt=(Ct,et)=>{const tt=`.${Ct}`,lt=`${tt}-treenode`,rt=et.paddingXS/2,ut=(0,ee.TS)(et,{treeCls:tt,treeNodeCls:lt,treeNodePadding:rt});return[Pt(Ct,ut),oe(ut)]},Jt=Ct=>{const{controlHeightSM:et}=Ct;return{titleHeight:et,nodeHoverBg:Ct.controlItemBgHover,nodeSelectedBg:Ct.controlItemBgActive}};wn.ZP=(0,Yt.Z)("Tree",(Ct,et)=>{let{prefixCls:tt}=et;return[{[Ct.componentCls]:(0,ce.C2)(`${tt}-checkbox`,Ct)},zt(tt,Ct),(0,Be.Z)(Ct)]},Ct=>{const{colorTextLightSolid:et,colorPrimary:tt}=Ct;return Object.assign(Object.assign({},Jt(Ct)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},71997:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return lt}});var Ft=bt(72308),ce=bt(59301),re={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"},Be=re,ee=bt(7657),Yt=function(ut,ct){return ce.createElement(ee.Z,(0,Ft.Z)({},ut,{ref:ct,icon:Be}))},It=ce.forwardRef(Yt),jt=It,Xt=bt(52671),Pt=bt(58617),oe=bt(15075),zt=bt(43531),Jt=bt(92310),Ct=bt.n(Jt),et=bt(92343),lt=rt=>{const{prefixCls:ut,switcherIcon:ct,treeNodeProps:wt,showLine:Mt}=rt,{isLeaf:Ot,expanded:Ht,loading:ne}=wt;if(ne)return ce.createElement(Pt.Z,{className:`${ut}-switcher-loading-icon`});let ae;if(Mt&&typeof Mt=="object"&&(ae=Mt.showLeafIcon),Ot){if(!Mt)return null;if(typeof ae!="boolean"&&ae){const qt=typeof ae=="function"?ae(wt):ae,ze=`${ut}-switcher-line-custom-icon`;return(0,et.l$)(qt)?(0,et.Tm)(qt,{className:Ct()(qt.props.className||"",ze)}):qt}return ae?ce.createElement(Xt.Z,{className:`${ut}-switcher-line-icon`}):ce.createElement("span",{className:`${ut}-switcher-leaf-line`})}const de=`${ut}-switcher-icon`,be=typeof ct=="function"?ct(wt):ct;return(0,et.l$)(be)?(0,et.Tm)(be,{className:Ct()(be.props.className||"",de)}):be!==void 0?be:Mt?Ht?ce.createElement(oe.Z,{className:`${ut}-switcher-line-icon`}):ce.createElement(zt.Z,{className:`${ut}-switcher-line-icon`}):ce.createElement(jt,{className:de})}},86251:function(ui,wn){"use strict";wn.byteLength=It,wn.toByteArray=Xt,wn.fromByteArray=zt;for(var bt=[],Ft=[],ce=typeof Uint8Array!="undefined"?Uint8Array:Array,re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Be=0,ee=re.length;Be<ee;++Be)bt[Be]=re[Be],Ft[re.charCodeAt(Be)]=Be;Ft[45]=62,Ft[95]=63;function Yt(Jt){var Ct=Jt.length;if(Ct%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var et=Jt.indexOf("=");et===-1&&(et=Ct);var tt=et===Ct?0:4-et%4;return[et,tt]}function It(Jt){var Ct=Yt(Jt),et=Ct[0],tt=Ct[1];return(et+tt)*3/4-tt}function jt(Jt,Ct,et){return(Ct+et)*3/4-et}function Xt(Jt){var Ct,et=Yt(Jt),tt=et[0],lt=et[1],rt=new ce(jt(Jt,tt,lt)),ut=0,ct=lt>0?tt-4:tt,wt;for(wt=0;wt<ct;wt+=4)Ct=Ft[Jt.charCodeAt(wt)]<<18|Ft[Jt.charCodeAt(wt+1)]<<12|Ft[Jt.charCodeAt(wt+2)]<<6|Ft[Jt.charCodeAt(wt+3)],rt[ut++]=Ct>>16&255,rt[ut++]=Ct>>8&255,rt[ut++]=Ct&255;return lt===2&&(Ct=Ft[Jt.charCodeAt(wt)]<<2|Ft[Jt.charCodeAt(wt+1)]>>4,rt[ut++]=Ct&255),lt===1&&(Ct=Ft[Jt.charCodeAt(wt)]<<10|Ft[Jt.charCodeAt(wt+1)]<<4|Ft[Jt.charCodeAt(wt+2)]>>2,rt[ut++]=Ct>>8&255,rt[ut++]=Ct&255),rt}function Pt(Jt){return bt[Jt>>18&63]+bt[Jt>>12&63]+bt[Jt>>6&63]+bt[Jt&63]}function oe(Jt,Ct,et){for(var tt,lt=[],rt=Ct;rt<et;rt+=3)tt=(Jt[rt]<<16&16711680)+(Jt[rt+1]<<8&65280)+(Jt[rt+2]&255),lt.push(Pt(tt));return lt.join("")}function zt(Jt){for(var Ct,et=Jt.length,tt=et%3,lt=[],rt=16383,ut=0,ct=et-tt;ut<ct;ut+=rt)lt.push(oe(Jt,ut,ut+rt>ct?ct:ut+rt));return tt===1?(Ct=Jt[et-1],lt.push(bt[Ct>>2]+bt[Ct<<4&63]+"==")):tt===2&&(Ct=(Jt[et-2]<<8)+Jt[et-1],lt.push(bt[Ct>>10]+bt[Ct>>4&63]+bt[Ct<<2&63]+"=")),lt.join("")}},19208:function(ui,wn,bt){"use strict";var Ft;var ce=bt(86251),re=bt(67467),Be=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;wn.lW=jt,Ft=ut,wn.h2=50;var ee=2147483647;Ft=ee,jt.TYPED_ARRAY_SUPPORT=Yt(),!jt.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 Yt(){try{var mt=new Uint8Array(1),ft={foo:function(){return 42}};return Object.setPrototypeOf(ft,Uint8Array.prototype),Object.setPrototypeOf(mt,ft),mt.foo()===42}catch(pt){return!1}}Object.defineProperty(jt.prototype,"parent",{enumerable:!0,get:function(){if(jt.isBuffer(this))return this.buffer}}),Object.defineProperty(jt.prototype,"offset",{enumerable:!0,get:function(){if(jt.isBuffer(this))return this.byteOffset}});function It(mt){if(mt>ee)throw new RangeError('The value "'+mt+'" is invalid for option "size"');var ft=new Uint8Array(mt);return Object.setPrototypeOf(ft,jt.prototype),ft}function jt(mt,ft,pt){if(typeof mt=="number"){if(typeof ft=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return zt(mt)}return Xt(mt,ft,pt)}jt.poolSize=8192;function Xt(mt,ft,pt){if(typeof mt=="string")return Jt(mt,ft);if(ArrayBuffer.isView(mt))return et(mt);if(mt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof mt);if(ki(mt,ArrayBuffer)||mt&&ki(mt.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ki(mt,SharedArrayBuffer)||mt&&ki(mt.buffer,SharedArrayBuffer)))return tt(mt,ft,pt);if(typeof mt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var At=mt.valueOf&&mt.valueOf();if(At!=null&&At!==mt)return jt.from(At,ft,pt);var ue=lt(mt);if(ue)return ue;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof mt[Symbol.toPrimitive]=="function")return jt.from(mt[Symbol.toPrimitive]("string"),ft,pt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof mt)}jt.from=function(mt,ft,pt){return Xt(mt,ft,pt)},Object.setPrototypeOf(jt.prototype,Uint8Array.prototype),Object.setPrototypeOf(jt,Uint8Array);function Pt(mt){if(typeof mt!="number")throw new TypeError('"size" argument must be of type number');if(mt<0)throw new RangeError('The value "'+mt+'" is invalid for option "size"')}function oe(mt,ft,pt){return Pt(mt),mt<=0?It(mt):ft!==void 0?typeof pt=="string"?It(mt).fill(ft,pt):It(mt).fill(ft):It(mt)}jt.alloc=function(mt,ft,pt){return oe(mt,ft,pt)};function zt(mt){return Pt(mt),It(mt<0?0:rt(mt)|0)}jt.allocUnsafe=function(mt){return zt(mt)},jt.allocUnsafeSlow=function(mt){return zt(mt)};function Jt(mt,ft){if((typeof ft!="string"||ft==="")&&(ft="utf8"),!jt.isEncoding(ft))throw new TypeError("Unknown encoding: "+ft);var pt=ct(mt,ft)|0,At=It(pt),ue=At.write(mt,ft);return ue!==pt&&(At=At.slice(0,ue)),At}function Ct(mt){for(var ft=mt.length<0?0:rt(mt.length)|0,pt=It(ft),At=0;At<ft;At+=1)pt[At]=mt[At]&255;return pt}function et(mt){if(ki(mt,Uint8Array)){var ft=new Uint8Array(mt);return tt(ft.buffer,ft.byteOffset,ft.byteLength)}return Ct(mt)}function tt(mt,ft,pt){if(ft<0||mt.byteLength<ft)throw new RangeError('"offset" is outside of buffer bounds');if(mt.byteLength<ft+(pt||0))throw new RangeError('"length" is outside of buffer bounds');var At;return ft===void 0&&pt===void 0?At=new Uint8Array(mt):pt===void 0?At=new Uint8Array(mt,ft):At=new Uint8Array(mt,ft,pt),Object.setPrototypeOf(At,jt.prototype),At}function lt(mt){if(jt.isBuffer(mt)){var ft=rt(mt.length)|0,pt=It(ft);return pt.length===0||mt.copy(pt,0,0,ft),pt}if(mt.length!==void 0)return typeof mt.length!="number"||Nt(mt.length)?It(0):Ct(mt);if(mt.type==="Buffer"&&Array.isArray(mt.data))return Ct(mt.data)}function rt(mt){if(mt>=ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ee.toString(16)+" bytes");return mt|0}function ut(mt){return+mt!=mt&&(mt=0),jt.alloc(+mt)}jt.isBuffer=function(ft){return ft!=null&&ft._isBuffer===!0&&ft!==jt.prototype},jt.compare=function(ft,pt){if(ki(ft,Uint8Array)&&(ft=jt.from(ft,ft.offset,ft.byteLength)),ki(pt,Uint8Array)&&(pt=jt.from(pt,pt.offset,pt.byteLength)),!jt.isBuffer(ft)||!jt.isBuffer(pt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ft===pt)return 0;for(var At=ft.length,ue=pt.length,we=0,le=Math.min(At,ue);we<le;++we)if(ft[we]!==pt[we]){At=ft[we],ue=pt[we];break}return At<ue?-1:ue<At?1:0},jt.isEncoding=function(ft){switch(String(ft).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}},jt.concat=function(ft,pt){if(!Array.isArray(ft))throw new TypeError('"list" argument must be an Array of Buffers');if(ft.length===0)return jt.alloc(0);var At;if(pt===void 0)for(pt=0,At=0;At<ft.length;++At)pt+=ft[At].length;var ue=jt.allocUnsafe(pt),we=0;for(At=0;At<ft.length;++At){var le=ft[At];if(ki(le,Uint8Array))we+le.length>ue.length?jt.from(le).copy(ue,we):Uint8Array.prototype.set.call(ue,le,we);else if(jt.isBuffer(le))le.copy(ue,we);else throw new TypeError('"list" argument must be an Array of Buffers');we+=le.length}return ue};function ct(mt,ft){if(jt.isBuffer(mt))return mt.length;if(ArrayBuffer.isView(mt)||ki(mt,ArrayBuffer))return mt.byteLength;if(typeof mt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof mt);var pt=mt.length,At=arguments.length>2&&arguments[2]===!0;if(!At&&pt===0)return 0;for(var ue=!1;;)switch(ft){case"ascii":case"latin1":case"binary":return pt;case"utf8":case"utf-8":return fi(mt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pt*2;case"hex":return pt>>>1;case"base64":return nn(mt).length;default:if(ue)return At?-1:fi(mt).length;ft=(""+ft).toLowerCase(),ue=!0}}jt.byteLength=ct;function wt(mt,ft,pt){var At=!1;if((ft===void 0||ft<0)&&(ft=0),ft>this.length||((pt===void 0||pt>this.length)&&(pt=this.length),pt<=0)||(pt>>>=0,ft>>>=0,pt<=ft))return"";for(mt||(mt="utf8");;)switch(mt){case"hex":return Re(this,ft,pt);case"utf8":case"utf-8":return Vt(this,ft,pt);case"ascii":return Ne(this,ft,pt);case"latin1":case"binary":return We(this,ft,pt);case"base64":return ze(this,ft,pt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,ft,pt);default:if(At)throw new TypeError("Unknown encoding: "+mt);mt=(mt+"").toLowerCase(),At=!0}}jt.prototype._isBuffer=!0;function Mt(mt,ft,pt){var At=mt[ft];mt[ft]=mt[pt],mt[pt]=At}jt.prototype.swap16=function(){var ft=this.length;if(ft%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var pt=0;pt<ft;pt+=2)Mt(this,pt,pt+1);return this},jt.prototype.swap32=function(){var ft=this.length;if(ft%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var pt=0;pt<ft;pt+=4)Mt(this,pt,pt+3),Mt(this,pt+1,pt+2);return this},jt.prototype.swap64=function(){var ft=this.length;if(ft%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var pt=0;pt<ft;pt+=8)Mt(this,pt,pt+7),Mt(this,pt+1,pt+6),Mt(this,pt+2,pt+5),Mt(this,pt+3,pt+4);return this},jt.prototype.toString=function(){var ft=this.length;return ft===0?"":arguments.length===0?Vt(this,0,ft):wt.apply(this,arguments)},jt.prototype.toLocaleString=jt.prototype.toString,jt.prototype.equals=function(ft){if(!jt.isBuffer(ft))throw new TypeError("Argument must be a Buffer");return this===ft?!0:jt.compare(this,ft)===0},jt.prototype.inspect=function(){var ft="",pt=wn.h2;return ft=this.toString("hex",0,pt).replace(/(.{2})/g,"$1 ").trim(),this.length>pt&&(ft+=" ... "),"<Buffer "+ft+">"},Be&&(jt.prototype[Be]=jt.prototype.inspect),jt.prototype.compare=function(ft,pt,At,ue,we){if(ki(ft,Uint8Array)&&(ft=jt.from(ft,ft.offset,ft.byteLength)),!jt.isBuffer(ft))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ft);if(pt===void 0&&(pt=0),At===void 0&&(At=ft?ft.length:0),ue===void 0&&(ue=0),we===void 0&&(we=this.length),pt<0||At>ft.length||ue<0||we>this.length)throw new RangeError("out of range index");if(ue>=we&&pt>=At)return 0;if(ue>=we)return-1;if(pt>=At)return 1;if(pt>>>=0,At>>>=0,ue>>>=0,we>>>=0,this===ft)return 0;for(var le=we-ue,me=At-pt,Ue=Math.min(le,me),ke=this.slice(ue,we),Ie=ft.slice(pt,At),rn=0;rn<Ue;++rn)if(ke[rn]!==Ie[rn]){le=ke[rn],me=Ie[rn];break}return le<me?-1:me<le?1:0};function Ot(mt,ft,pt,At,ue){if(mt.length===0)return-1;if(typeof pt=="string"?(At=pt,pt=0):pt>2147483647?pt=2147483647:pt<-2147483648&&(pt=-2147483648),pt=+pt,Nt(pt)&&(pt=ue?0:mt.length-1),pt<0&&(pt=mt.length+pt),pt>=mt.length){if(ue)return-1;pt=mt.length-1}else if(pt<0)if(ue)pt=0;else return-1;if(typeof ft=="string"&&(ft=jt.from(ft,At)),jt.isBuffer(ft))return ft.length===0?-1:Ht(mt,ft,pt,At,ue);if(typeof ft=="number")return ft=ft&255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(mt,ft,pt):Uint8Array.prototype.lastIndexOf.call(mt,ft,pt):Ht(mt,[ft],pt,At,ue);throw new TypeError("val must be string, number or Buffer")}function Ht(mt,ft,pt,At,ue){var we=1,le=mt.length,me=ft.length;if(At!==void 0&&(At=String(At).toLowerCase(),At==="ucs2"||At==="ucs-2"||At==="utf16le"||At==="utf-16le")){if(mt.length<2||ft.length<2)return-1;we=2,le/=2,me/=2,pt/=2}function Ue(dn,An){return we===1?dn[An]:dn.readUInt16BE(An*we)}var ke;if(ue){var Ie=-1;for(ke=pt;ke<le;ke++)if(Ue(mt,ke)===Ue(ft,Ie===-1?0:ke-Ie)){if(Ie===-1&&(Ie=ke),ke-Ie+1===me)return Ie*we}else Ie!==-1&&(ke-=ke-Ie),Ie=-1}else for(pt+me>le&&(pt=le-me),ke=pt;ke>=0;ke--){for(var rn=!0,Gn=0;Gn<me;Gn++)if(Ue(mt,ke+Gn)!==Ue(ft,Gn)){rn=!1;break}if(rn)return ke}return-1}jt.prototype.includes=function(ft,pt,At){return this.indexOf(ft,pt,At)!==-1},jt.prototype.indexOf=function(ft,pt,At){return Ot(this,ft,pt,At,!0)},jt.prototype.lastIndexOf=function(ft,pt,At){return Ot(this,ft,pt,At,!1)};function ne(mt,ft,pt,At){pt=Number(pt)||0;var ue=mt.length-pt;At?(At=Number(At),At>ue&&(At=ue)):At=ue;var we=ft.length;At>we/2&&(At=we/2);for(var le=0;le<At;++le){var me=parseInt(ft.substr(le*2,2),16);if(Nt(me))return le;mt[pt+le]=me}return le}function ae(mt,ft,pt,At){return Fi(fi(ft,mt.length-pt),mt,pt,At)}function de(mt,ft,pt,At){return Fi(Hn(ft),mt,pt,At)}function be(mt,ft,pt,At){return Fi(nn(ft),mt,pt,At)}function qt(mt,ft,pt,At){return Fi(xi(ft,mt.length-pt),mt,pt,At)}jt.prototype.write=function(ft,pt,At,ue){if(pt===void 0)ue="utf8",At=this.length,pt=0;else if(At===void 0&&typeof pt=="string")ue=pt,At=this.length,pt=0;else if(isFinite(pt))pt=pt>>>0,isFinite(At)?(At=At>>>0,ue===void 0&&(ue="utf8")):(ue=At,At=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var we=this.length-pt;if((At===void 0||At>we)&&(At=we),ft.length>0&&(At<0||pt<0)||pt>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var le=!1;;)switch(ue){case"hex":return ne(this,ft,pt,At);case"utf8":case"utf-8":return ae(this,ft,pt,At);case"ascii":case"latin1":case"binary":return de(this,ft,pt,At);case"base64":return be(this,ft,pt,At);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qt(this,ft,pt,At);default:if(le)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),le=!0}},jt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ze(mt,ft,pt){return ft===0&&pt===mt.length?ce.fromByteArray(mt):ce.fromByteArray(mt.slice(ft,pt))}function Vt(mt,ft,pt){pt=Math.min(mt.length,pt);for(var At=[],ue=ft;ue<pt;){var we=mt[ue],le=null,me=we>239?4:we>223?3:we>191?2:1;if(ue+me<=pt){var Ue,ke,Ie,rn;switch(me){case 1:we<128&&(le=we);break;case 2:Ue=mt[ue+1],(Ue&192)===128&&(rn=(we&31)<<6|Ue&63,rn>127&&(le=rn));break;case 3:Ue=mt[ue+1],ke=mt[ue+2],(Ue&192)===128&&(ke&192)===128&&(rn=(we&15)<<12|(Ue&63)<<6|ke&63,rn>2047&&(rn<55296||rn>57343)&&(le=rn));break;case 4:Ue=mt[ue+1],ke=mt[ue+2],Ie=mt[ue+3],(Ue&192)===128&&(ke&192)===128&&(Ie&192)===128&&(rn=(we&15)<<18|(Ue&63)<<12|(ke&63)<<6|Ie&63,rn>65535&&rn<1114112&&(le=rn))}}le===null?(le=65533,me=1):le>65535&&(le-=65536,At.push(le>>>10&1023|55296),le=56320|le&1023),At.push(le),ue+=me}return _e(At)}var Ge=4096;function _e(mt){var ft=mt.length;if(ft<=Ge)return String.fromCharCode.apply(String,mt);for(var pt="",At=0;At<ft;)pt+=String.fromCharCode.apply(String,mt.slice(At,At+=Ge));return pt}function Ne(mt,ft,pt){var At="";pt=Math.min(mt.length,pt);for(var ue=ft;ue<pt;++ue)At+=String.fromCharCode(mt[ue]&127);return At}function We(mt,ft,pt){var At="";pt=Math.min(mt.length,pt);for(var ue=ft;ue<pt;++ue)At+=String.fromCharCode(mt[ue]);return At}function Re(mt,ft,pt){var At=mt.length;(!ft||ft<0)&&(ft=0),(!pt||pt<0||pt>At)&&(pt=At);for(var ue="",we=ft;we<pt;++we)ue+=Dt[mt[we]];return ue}function ve(mt,ft,pt){for(var At=mt.slice(ft,pt),ue="",we=0;we<At.length-1;we+=2)ue+=String.fromCharCode(At[we]+At[we+1]*256);return ue}jt.prototype.slice=function(ft,pt){var At=this.length;ft=~~ft,pt=pt===void 0?At:~~pt,ft<0?(ft+=At,ft<0&&(ft=0)):ft>At&&(ft=At),pt<0?(pt+=At,pt<0&&(pt=0)):pt>At&&(pt=At),pt<ft&&(pt=ft);var ue=this.subarray(ft,pt);return Object.setPrototypeOf(ue,jt.prototype),ue};function ie(mt,ft,pt){if(mt%1!==0||mt<0)throw new RangeError("offset is not uint");if(mt+ft>pt)throw new RangeError("Trying to access beyond buffer length")}jt.prototype.readUintLE=jt.prototype.readUIntLE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ie(ft,pt,this.length);for(var ue=this[ft],we=1,le=0;++le<pt&&(we*=256);)ue+=this[ft+le]*we;return ue},jt.prototype.readUintBE=jt.prototype.readUIntBE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ie(ft,pt,this.length);for(var ue=this[ft+--pt],we=1;pt>0&&(we*=256);)ue+=this[ft+--pt]*we;return ue},jt.prototype.readUint8=jt.prototype.readUInt8=function(ft,pt){return ft=ft>>>0,pt||ie(ft,1,this.length),this[ft]},jt.prototype.readUint16LE=jt.prototype.readUInt16LE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,2,this.length),this[ft]|this[ft+1]<<8},jt.prototype.readUint16BE=jt.prototype.readUInt16BE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,2,this.length),this[ft]<<8|this[ft+1]},jt.prototype.readUint32LE=jt.prototype.readUInt32LE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,4,this.length),(this[ft]|this[ft+1]<<8|this[ft+2]<<16)+this[ft+3]*16777216},jt.prototype.readUint32BE=jt.prototype.readUInt32BE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,4,this.length),this[ft]*16777216+(this[ft+1]<<16|this[ft+2]<<8|this[ft+3])},jt.prototype.readIntLE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ie(ft,pt,this.length);for(var ue=this[ft],we=1,le=0;++le<pt&&(we*=256);)ue+=this[ft+le]*we;return we*=128,ue>=we&&(ue-=Math.pow(2,8*pt)),ue},jt.prototype.readIntBE=function(ft,pt,At){ft=ft>>>0,pt=pt>>>0,At||ie(ft,pt,this.length);for(var ue=pt,we=1,le=this[ft+--ue];ue>0&&(we*=256);)le+=this[ft+--ue]*we;return we*=128,le>=we&&(le-=Math.pow(2,8*pt)),le},jt.prototype.readInt8=function(ft,pt){return ft=ft>>>0,pt||ie(ft,1,this.length),this[ft]&128?(255-this[ft]+1)*-1:this[ft]},jt.prototype.readInt16LE=function(ft,pt){ft=ft>>>0,pt||ie(ft,2,this.length);var At=this[ft]|this[ft+1]<<8;return At&32768?At|4294901760:At},jt.prototype.readInt16BE=function(ft,pt){ft=ft>>>0,pt||ie(ft,2,this.length);var At=this[ft+1]|this[ft]<<8;return At&32768?At|4294901760:At},jt.prototype.readInt32LE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,4,this.length),this[ft]|this[ft+1]<<8|this[ft+2]<<16|this[ft+3]<<24},jt.prototype.readInt32BE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,4,this.length),this[ft]<<24|this[ft+1]<<16|this[ft+2]<<8|this[ft+3]},jt.prototype.readFloatLE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,4,this.length),re.read(this,ft,!0,23,4)},jt.prototype.readFloatBE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,4,this.length),re.read(this,ft,!1,23,4)},jt.prototype.readDoubleLE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,8,this.length),re.read(this,ft,!0,52,8)},jt.prototype.readDoubleBE=function(ft,pt){return ft=ft>>>0,pt||ie(ft,8,this.length),re.read(this,ft,!1,52,8)};function Se(mt,ft,pt,At,ue,we){if(!jt.isBuffer(mt))throw new TypeError('"buffer" argument must be a Buffer instance');if(ft>ue||ft<we)throw new RangeError('"value" argument is out of bounds');if(pt+At>mt.length)throw new RangeError("Index out of range")}jt.prototype.writeUintLE=jt.prototype.writeUIntLE=function(ft,pt,At,ue){if(ft=+ft,pt=pt>>>0,At=At>>>0,!ue){var we=Math.pow(2,8*At)-1;Se(this,ft,pt,At,we,0)}var le=1,me=0;for(this[pt]=ft&255;++me<At&&(le*=256);)this[pt+me]=ft/le&255;return pt+At},jt.prototype.writeUintBE=jt.prototype.writeUIntBE=function(ft,pt,At,ue){if(ft=+ft,pt=pt>>>0,At=At>>>0,!ue){var we=Math.pow(2,8*At)-1;Se(this,ft,pt,At,we,0)}var le=At-1,me=1;for(this[pt+le]=ft&255;--le>=0&&(me*=256);)this[pt+le]=ft/me&255;return pt+At},jt.prototype.writeUint8=jt.prototype.writeUInt8=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,1,255,0),this[pt]=ft&255,pt+1},jt.prototype.writeUint16LE=jt.prototype.writeUInt16LE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,2,65535,0),this[pt]=ft&255,this[pt+1]=ft>>>8,pt+2},jt.prototype.writeUint16BE=jt.prototype.writeUInt16BE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,2,65535,0),this[pt]=ft>>>8,this[pt+1]=ft&255,pt+2},jt.prototype.writeUint32LE=jt.prototype.writeUInt32LE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,4,4294967295,0),this[pt+3]=ft>>>24,this[pt+2]=ft>>>16,this[pt+1]=ft>>>8,this[pt]=ft&255,pt+4},jt.prototype.writeUint32BE=jt.prototype.writeUInt32BE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,4,4294967295,0),this[pt]=ft>>>24,this[pt+1]=ft>>>16,this[pt+2]=ft>>>8,this[pt+3]=ft&255,pt+4},jt.prototype.writeIntLE=function(ft,pt,At,ue){if(ft=+ft,pt=pt>>>0,!ue){var we=Math.pow(2,8*At-1);Se(this,ft,pt,At,we-1,-we)}var le=0,me=1,Ue=0;for(this[pt]=ft&255;++le<At&&(me*=256);)ft<0&&Ue===0&&this[pt+le-1]!==0&&(Ue=1),this[pt+le]=(ft/me>>0)-Ue&255;return pt+At},jt.prototype.writeIntBE=function(ft,pt,At,ue){if(ft=+ft,pt=pt>>>0,!ue){var we=Math.pow(2,8*At-1);Se(this,ft,pt,At,we-1,-we)}var le=At-1,me=1,Ue=0;for(this[pt+le]=ft&255;--le>=0&&(me*=256);)ft<0&&Ue===0&&this[pt+le+1]!==0&&(Ue=1),this[pt+le]=(ft/me>>0)-Ue&255;return pt+At},jt.prototype.writeInt8=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,1,127,-128),ft<0&&(ft=255+ft+1),this[pt]=ft&255,pt+1},jt.prototype.writeInt16LE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,2,32767,-32768),this[pt]=ft&255,this[pt+1]=ft>>>8,pt+2},jt.prototype.writeInt16BE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,2,32767,-32768),this[pt]=ft>>>8,this[pt+1]=ft&255,pt+2},jt.prototype.writeInt32LE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,4,2147483647,-2147483648),this[pt]=ft&255,this[pt+1]=ft>>>8,this[pt+2]=ft>>>16,this[pt+3]=ft>>>24,pt+4},jt.prototype.writeInt32BE=function(ft,pt,At){return ft=+ft,pt=pt>>>0,At||Se(this,ft,pt,4,2147483647,-2147483648),ft<0&&(ft=4294967295+ft+1),this[pt]=ft>>>24,this[pt+1]=ft>>>16,this[pt+2]=ft>>>8,this[pt+3]=ft&255,pt+4};function Bn(mt,ft,pt,At,ue,we){if(pt+At>mt.length)throw new RangeError("Index out of range");if(pt<0)throw new RangeError("Index out of range")}function Ln(mt,ft,pt,At,ue){return ft=+ft,pt=pt>>>0,ue||Bn(mt,ft,pt,4,34028234663852886e22,-34028234663852886e22),re.write(mt,ft,pt,At,23,4),pt+4}jt.prototype.writeFloatLE=function(ft,pt,At){return Ln(this,ft,pt,!0,At)},jt.prototype.writeFloatBE=function(ft,pt,At){return Ln(this,ft,pt,!1,At)};function Ye(mt,ft,pt,At,ue){return ft=+ft,pt=pt>>>0,ue||Bn(mt,ft,pt,8,17976931348623157e292,-17976931348623157e292),re.write(mt,ft,pt,At,52,8),pt+8}jt.prototype.writeDoubleLE=function(ft,pt,At){return Ye(this,ft,pt,!0,At)},jt.prototype.writeDoubleBE=function(ft,pt,At){return Ye(this,ft,pt,!1,At)},jt.prototype.copy=function(ft,pt,At,ue){if(!jt.isBuffer(ft))throw new TypeError("argument should be a Buffer");if(At||(At=0),!ue&&ue!==0&&(ue=this.length),pt>=ft.length&&(pt=ft.length),pt||(pt=0),ue>0&&ue<At&&(ue=At),ue===At||ft.length===0||this.length===0)return 0;if(pt<0)throw new RangeError("targetStart out of bounds");if(At<0||At>=this.length)throw new RangeError("Index out of range");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),ft.length-pt<ue-At&&(ue=ft.length-pt+At);var we=ue-At;return this===ft&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(pt,At,ue):Uint8Array.prototype.set.call(ft,this.subarray(At,ue),pt),we},jt.prototype.fill=function(ft,pt,At,ue){if(typeof ft=="string"){if(typeof pt=="string"?(ue=pt,pt=0,At=this.length):typeof At=="string"&&(ue=At,At=this.length),ue!==void 0&&typeof ue!="string")throw new TypeError("encoding must be a string");if(typeof ue=="string"&&!jt.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue);if(ft.length===1){var we=ft.charCodeAt(0);(ue==="utf8"&&we<128||ue==="latin1")&&(ft=we)}}else typeof ft=="number"?ft=ft&255:typeof ft=="boolean"&&(ft=Number(ft));if(pt<0||this.length<pt||this.length<At)throw new RangeError("Out of range index");if(At<=pt)return this;pt=pt>>>0,At=At===void 0?this.length:At>>>0,ft||(ft=0);var le;if(typeof ft=="number")for(le=pt;le<At;++le)this[le]=ft;else{var me=jt.isBuffer(ft)?ft:jt.from(ft,ue),Ue=me.length;if(Ue===0)throw new TypeError('The value "'+ft+'" is invalid for argument "value"');for(le=0;le<At-pt;++le)this[le+pt]=me[le%Ue]}return this};var Mn=/[^+/0-9A-Za-z-_]/g;function Wn(mt){if(mt=mt.split("=")[0],mt=mt.trim().replace(Mn,""),mt.length<2)return"";for(;mt.length%4!==0;)mt=mt+"=";return mt}function fi(mt,ft){ft=ft||1/0;for(var pt,At=mt.length,ue=null,we=[],le=0;le<At;++le){if(pt=mt.charCodeAt(le),pt>55295&&pt<57344){if(!ue){if(pt>56319){(ft-=3)>-1&&we.push(239,191,189);continue}else if(le+1===At){(ft-=3)>-1&&we.push(239,191,189);continue}ue=pt;continue}if(pt<56320){(ft-=3)>-1&&we.push(239,191,189),ue=pt;continue}pt=(ue-55296<<10|pt-56320)+65536}else ue&&(ft-=3)>-1&&we.push(239,191,189);if(ue=null,pt<128){if((ft-=1)<0)break;we.push(pt)}else if(pt<2048){if((ft-=2)<0)break;we.push(pt>>6|192,pt&63|128)}else if(pt<65536){if((ft-=3)<0)break;we.push(pt>>12|224,pt>>6&63|128,pt&63|128)}else if(pt<1114112){if((ft-=4)<0)break;we.push(pt>>18|240,pt>>12&63|128,pt>>6&63|128,pt&63|128)}else throw new Error("Invalid code point")}return we}function Hn(mt){for(var ft=[],pt=0;pt<mt.length;++pt)ft.push(mt.charCodeAt(pt)&255);return ft}function xi(mt,ft){for(var pt,At,ue,we=[],le=0;le<mt.length&&!((ft-=2)<0);++le)pt=mt.charCodeAt(le),At=pt>>8,ue=pt%256,we.push(ue),we.push(At);return we}function nn(mt){return ce.toByteArray(Wn(mt))}function Fi(mt,ft,pt,At){for(var ue=0;ue<At&&!(ue+pt>=ft.length||ue>=mt.length);++ue)ft[ue+pt]=mt[ue];return ue}function ki(mt,ft){return mt instanceof ft||mt!=null&&mt.constructor!=null&&mt.constructor.name!=null&&mt.constructor.name===ft.name}function Nt(mt){return mt!==mt}var Dt=function(){for(var mt="0123456789abcdef",ft=new Array(256),pt=0;pt<16;++pt)for(var At=pt*16,ue=0;ue<16;++ue)ft[At+ue]=mt[pt]+mt[ue];return ft}()},57780:function(ui,wn,bt){"use strict";bt.r(wn),bt.d(wn,{clsx:function(){return ce}});function Ft(re){var Be,ee,Yt="";if(typeof re=="string"||typeof re=="number")Yt+=re;else if(typeof re=="object")if(Array.isArray(re))for(Be=0;Be<re.length;Be++)re[Be]&&(ee=Ft(re[Be]))&&(Yt&&(Yt+=" "),Yt+=ee);else for(Be in re)re[Be]&&(Yt&&(Yt+=" "),Yt+=Be);return Yt}function ce(){for(var re,Be,ee=0,Yt="";ee<arguments.length;)(re=arguments[ee++])&&(Be=Ft(re))&&(Yt&&(Yt+=" "),Yt+=Be);return Yt}wn.default=ce},99498:function(ui,wn,bt){(function(Ft){Ft(bt(89780))})(function(Ft){Ft.defineOption("placeholder","",function(jt,Xt,Pt){var oe=Pt&&Pt!=Ft.Init;if(Xt&&!oe)jt.on("blur",ee),jt.on("change",Yt),jt.on("swapDoc",Yt),Ft.on(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose=function(){Be(jt)}),Yt(jt);else if(!Xt&&oe){jt.off("blur",ee),jt.off("change",Yt),jt.off("swapDoc",Yt),Ft.off(jt.getInputField(),"compositionupdate",jt.state.placeholderCompose),ce(jt);var zt=jt.getWrapperElement();zt.className=zt.className.replace(" CodeMirror-empty","")}Xt&&!jt.hasFocus()&&ee(jt)});function ce(jt){jt.state.placeholder&&(jt.state.placeholder.parentNode.removeChild(jt.state.placeholder),jt.state.placeholder=null)}function re(jt){ce(jt);var Xt=jt.state.placeholder=document.createElement("pre");Xt.style.cssText="height: 0; overflow: visible",Xt.style.direction=jt.getOption("direction"),Xt.className="CodeMirror-placeholder CodeMirror-line-like";var Pt=jt.getOption("placeholder");typeof Pt=="string"&&(Pt=document.createTextNode(Pt)),Xt.appendChild(Pt),jt.display.lineSpace.insertBefore(Xt,jt.display.lineSpace.firstChild)}function Be(jt){setTimeout(function(){var Xt=!1,Pt=jt.getInputField();Pt.nodeName=="TEXTAREA"?Xt=!Pt.value:jt.lineCount()==1&&(Xt=!/[^\u200b]/.test(Pt.querySelector(".CodeMirror-line").textContent)),Xt?re(jt):ce(jt)},20)}function ee(jt){It(jt)&&re(jt)}function Yt(jt){var Xt=jt.getWrapperElement(),Pt=It(jt);Xt.className=Xt.className.replace(" CodeMirror-empty","")+(Pt?" CodeMirror-empty":""),Pt?re(jt):ce(jt)}function It(jt){return jt.lineCount()===1&&jt.getLine(0)===""}})},25717:function(ui,wn,bt){(function(Ft){Ft(bt(89780))})(function(Ft){var ce={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},re=Ft.Pos;Ft.defineOption("autoCloseBrackets",!1,function(et,tt,lt){lt&&lt!=Ft.Init&&(et.removeKeyMap(ee),et.state.closeBrackets=null),tt&&(Yt(Be(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(ee))});function Be(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:ce[tt]}var ee={Backspace:Xt,Enter:Pt};function Yt(et){for(var tt=0;tt<et.length;tt++){var lt=et.charAt(tt),rt="'"+lt+"'";ee[rt]||(ee[rt]=It(lt))}}Yt(ce.pairs+"`");function It(et){return function(tt){return zt(tt,et)}}function jt(et){var tt=et.state.closeBrackets;if(!tt||tt.override)return tt;var lt=et.getModeAt(et.getCursor());return lt.closeBrackets||tt}function Xt(et){var tt=jt(et);if(!tt||et.getOption("disableInput"))return Ft.Pass;for(var lt=Be(tt,"pairs"),rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return Ft.Pass;var ct=Jt(et,rt[ut].head);if(!ct||lt.indexOf(ct)%2!=0)return Ft.Pass}for(var ut=rt.length-1;ut>=0;ut--){var wt=rt[ut].head;et.replaceRange("",re(wt.line,wt.ch-1),re(wt.line,wt.ch+1),"+delete")}}function Pt(et){var tt=jt(et),lt=tt&&Be(tt,"explode");if(!lt||et.getOption("disableInput"))return Ft.Pass;for(var rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return Ft.Pass;var ct=Jt(et,rt[ut].head);if(!ct||lt.indexOf(ct)%2!=0)return Ft.Pass}et.operation(function(){var wt=et.lineSeparator()||`
`;et.replaceSelection(wt+wt,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var Mt=0;Mt<rt.length;Mt++){var Ot=rt[Mt].head.line;et.indentLine(Ot,null,!0),et.indentLine(Ot+1,null,!0)}})}function oe(et){var tt=Ft.cmpPos(et.anchor,et.head)>0;return{anchor:new re(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new re(et.head.line,et.head.ch+(tt?1:-1))}}function zt(et,tt){var lt=jt(et);if(!lt||et.getOption("disableInput"))return Ft.Pass;var rt=Be(lt,"pairs"),ut=rt.indexOf(tt);if(ut==-1)return Ft.Pass;for(var ct=Be(lt,"closeBefore"),wt=Be(lt,"triples"),Mt=rt.charAt(ut+1)==tt,Ot=et.listSelections(),Ht=ut%2==0,ne,ae=0;ae<Ot.length;ae++){var de=Ot[ae],be=de.head,qt,ze=et.getRange(be,re(be.line,be.ch+1));if(Ht&&!de.empty())qt="surround";else if((Mt||!Ht)&&ze==tt)Mt&&Ct(et,be)?qt="both":wt.indexOf(tt)>=0&&et.getRange(be,re(be.line,be.ch+3))==tt+tt+tt?qt="skipThree":qt="skip";else if(Mt&&be.ch>1&&wt.indexOf(tt)>=0&&et.getRange(re(be.line,be.ch-2),be)==tt+tt){if(be.ch>2&&/\bstring/.test(et.getTokenTypeAt(re(be.line,be.ch-2))))return Ft.Pass;qt="addFour"}else if(Mt){var Vt=be.ch==0?" ":et.getRange(re(be.line,be.ch-1),be);if(!Ft.isWordChar(ze)&&Vt!=tt&&!Ft.isWordChar(Vt))qt="both";else return Ft.Pass}else if(Ht&&(ze.length===0||/\s/.test(ze)||ct.indexOf(ze)>-1))qt="both";else return Ft.Pass;if(!ne)ne=qt;else if(ne!=qt)return Ft.Pass}var Ge=ut%2?rt.charAt(ut-1):tt,_e=ut%2?tt:rt.charAt(ut+1);et.operation(function(){if(ne=="skip")et.execCommand("goCharRight");else if(ne=="skipThree")for(var Ne=0;Ne<3;Ne++)et.execCommand("goCharRight");else if(ne=="surround"){for(var We=et.getSelections(),Ne=0;Ne<We.length;Ne++)We[Ne]=Ge+We[Ne]+_e;et.replaceSelections(We,"around"),We=et.listSelections().slice();for(var Ne=0;Ne<We.length;Ne++)We[Ne]=oe(We[Ne]);et.setSelections(We)}else ne=="both"?(et.replaceSelection(Ge+_e,null),et.triggerElectric(Ge+_e),et.execCommand("goCharLeft")):ne=="addFour"&&(et.replaceSelection(Ge+Ge+Ge+Ge,"before"),et.execCommand("goCharRight"))})}function Jt(et,tt){var lt=et.getRange(re(tt.line,tt.ch-1),re(tt.line,tt.ch+1));return lt.length==2?lt:null}function Ct(et,tt){var lt=et.getTokenAt(re(tt.line,tt.ch+1));return/\bstring/.test(lt.type)&&lt.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(ui,wn,bt){(function(Ft){Ft(bt(89780),bt(32855))})(function(Ft){Ft.defineOption("autoCloseTags",!1,function(Xt,Pt,oe){if(oe!=Ft.Init&&oe&&Xt.removeKeyMap("autoCloseTags"),!!Pt){var zt={name:"autoCloseTags"};(typeof Pt!="object"||Pt.whenClosing!==!1)&&(zt["'/'"]=function(Jt){return Yt(Jt)}),(typeof Pt!="object"||Pt.whenOpening!==!1)&&(zt["'>'"]=function(Jt){return Be(Jt)}),Xt.addKeyMap(zt)}});var ce=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],re=["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 Be(Xt){if(Xt.getOption("disableInput"))return Ft.Pass;for(var Pt=Xt.listSelections(),oe=[],zt=Xt.getOption("autoCloseTags"),Jt=0;Jt<Pt.length;Jt++){if(!Pt[Jt].empty())return Ft.Pass;var Ct=Pt[Jt].head,et=Xt.getTokenAt(Ct),tt=Ft.innerMode(Xt.getMode(),et.state),lt=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(lt),ut=rt&&rt.name;if(!ut)return Ft.Pass;var ct=tt.mode.configuration=="html",wt=typeof zt=="object"&&zt.dontCloseTags||ct&&ce,Mt=typeof zt=="object"&&zt.indentTags||ct&&re;et.end>Ct.ch&&(ut=ut.slice(0,ut.length-et.end+Ct.ch));var Ot=ut.toLowerCase();if(!ut||et.type=="string"&&(et.end!=Ct.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&rt.close||et.string.indexOf("/")==Ct.ch-et.start-1||wt&&It(wt,Ot)>-1||jt(Xt,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(lt)||[],ut,Ct,!0))return Ft.Pass;var Ht=typeof zt=="object"&&zt.emptyTags;if(Ht&&It(Ht,ut)>-1){oe[Jt]={text:"/>",newPos:Ft.Pos(Ct.line,Ct.ch+2)};continue}var ne=Mt&&It(Mt,Ot)>-1;oe[Jt]={indent:ne,text:">"+(ne?`
`:"")+"</"+ut+">",newPos:ne?Ft.Pos(Ct.line+1,0):Ft.Pos(Ct.line,Ct.ch+1)}}for(var ae=typeof zt=="object"&&zt.dontIndentOnAutoClose,Jt=Pt.length-1;Jt>=0;Jt--){var de=oe[Jt];Xt.replaceRange(de.text,Pt[Jt].head,Pt[Jt].anchor,"+insert");var be=Xt.listSelections().slice(0);be[Jt]={head:de.newPos,anchor:de.newPos},Xt.setSelections(be),!ae&&de.indent&&(Xt.indentLine(de.newPos.line,null,!0),Xt.indentLine(de.newPos.line+1,null,!0))}}function ee(Xt,Pt){for(var oe=Xt.listSelections(),zt=[],Jt=Pt?"/":"</",Ct=Xt.getOption("autoCloseTags"),et=typeof Ct=="object"&&Ct.dontIndentOnSlash,tt=0;tt<oe.length;tt++){if(!oe[tt].empty())return Ft.Pass;var lt=oe[tt].head,rt=Xt.getTokenAt(lt),ut=Ft.innerMode(Xt.getMode(),rt.state),ct=ut.state;if(Pt&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=lt.ch-1))return Ft.Pass;var wt,Mt=ut.mode.name!="xml"&&Xt.getMode().name=="htmlmixed";if(Mt&&ut.mode.name=="javascript")wt=Jt+"script";else if(Mt&&ut.mode.name=="css")wt=Jt+"style";else{var Ot=ut.mode.xmlCurrentContext&&ut.mode.xmlCurrentContext(ct);if(!Ot||Ot.length&&jt(Xt,Ot,Ot[Ot.length-1],lt))return Ft.Pass;wt=Jt+Ot[Ot.length-1]}Xt.getLine(lt.line).charAt(rt.end)!=">"&&(wt+=">"),zt[tt]=wt}if(Xt.replaceSelections(zt),oe=Xt.listSelections(),!et)for(var tt=0;tt<oe.length;tt++)(tt==oe.length-1||oe[tt].head.line<oe[tt+1].head.line)&&Xt.indentLine(oe[tt].head.line)}function Yt(Xt){return Xt.getOption("disableInput")?Ft.Pass:ee(Xt,!0)}Ft.commands.closeTag=function(Xt){return ee(Xt)};function It(Xt,Pt){if(Xt.indexOf)return Xt.indexOf(Pt);for(var oe=0,zt=Xt.length;oe<zt;++oe)if(Xt[oe]==Pt)return oe;return-1}function jt(Xt,Pt,oe,zt,Jt){if(!Ft.scanForClosingTag)return!1;var Ct=Math.min(Xt.lastLine()+1,zt.line+500),et=Ft.scanForClosingTag(Xt,zt,null,Ct);if(!et||et.tag!=oe)return!1;for(var tt=Jt?1:0,lt=Pt.length-1;lt>=0&&Pt[lt]==oe;lt--)++tt;zt=et.to;for(var lt=1;lt<tt;lt++){var rt=Ft.scanForClosingTag(Xt,zt,null,Ct);if(!rt||rt.tag!=oe)return!1;zt=rt.to}return!0}})},32855:function(ui,wn,bt){(function(Ft){Ft(bt(89780))})(function(Ft){"use strict";var ce=Ft.Pos;function re(lt,rt){return lt.line-rt.line||lt.ch-rt.ch}var Be="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",ee=Be+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Yt=new RegExp("<(/?)(["+Be+"]["+ee+"]*)","g");function It(lt,rt,ut,ct){this.line=rt,this.ch=ut,this.cm=lt,this.text=lt.getLine(rt),this.min=ct?Math.max(ct.from,lt.firstLine()):lt.firstLine(),this.max=ct?Math.min(ct.to-1,lt.lastLine()):lt.lastLine()}function jt(lt,rt){var ut=lt.cm.getTokenTypeAt(ce(lt.line,rt));return ut&&/\btag\b/.test(ut)}function Xt(lt){if(!(lt.line>=lt.max))return lt.ch=0,lt.text=lt.cm.getLine(++lt.line),!0}function Pt(lt){if(!(lt.line<=lt.min))return lt.text=lt.cm.getLine(--lt.line),lt.ch=lt.text.length,!0}function oe(lt){for(;;){var rt=lt.text.indexOf(">",lt.ch);if(rt==-1){if(Xt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt+1;continue}var ut=lt.text.lastIndexOf("/",rt),ct=ut>-1&&!/\S/.test(lt.text.slice(ut+1,rt));return lt.ch=rt+1,ct?"selfClose":"regular"}}function zt(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf("<",lt.ch-1):-1;if(rt==-1){if(Pt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt;continue}Yt.lastIndex=rt,lt.ch=rt;var ut=Yt.exec(lt.text);if(ut&&ut.index==rt)return ut}}function Jt(lt){for(;;){Yt.lastIndex=lt.ch;var rt=Yt.exec(lt.text);if(!rt){if(Xt(lt))continue;return}if(!jt(lt,rt.index+1)){lt.ch=rt.index+1;continue}return lt.ch=rt.index+rt[0].length,rt}}function Ct(lt){for(;;){var rt=lt.ch?lt.text.lastIndexOf(">",lt.ch-1):-1;if(rt==-1){if(Pt(lt))continue;return}if(!jt(lt,rt+1)){lt.ch=rt;continue}var ut=lt.text.lastIndexOf("/",rt),ct=ut>-1&&!/\S/.test(lt.text.slice(ut+1,rt));return lt.ch=rt+1,ct?"selfClose":"regular"}}function et(lt,rt){for(var ut=[];;){var ct=Jt(lt),wt,Mt=lt.line,Ot=lt.ch-(ct?ct[0].length:0);if(!ct||!(wt=oe(lt)))return;if(wt!="selfClose")if(ct[1]){for(var Ht=ut.length-1;Ht>=0;--Ht)if(ut[Ht]==ct[2]){ut.length=Ht;break}if(Ht<0&&(!rt||rt==ct[2]))return{tag:ct[2],from:ce(Mt,Ot),to:ce(lt.line,lt.ch)}}else ut.push(ct[2])}}function tt(lt,rt){for(var ut=[];;){var ct=Ct(lt);if(!ct)return;if(ct=="selfClose"){zt(lt);continue}var wt=lt.line,Mt=lt.ch,Ot=zt(lt);if(!Ot)return;if(Ot[1])ut.push(Ot[2]);else{for(var Ht=ut.length-1;Ht>=0;--Ht)if(ut[Ht]==Ot[2]){ut.length=Ht;break}if(Ht<0&&(!rt||rt==Ot[2]))return{tag:Ot[2],from:ce(lt.line,lt.ch),to:ce(wt,Mt)}}}}Ft.registerHelper("fold","xml",function(lt,rt){for(var ut=new It(lt,rt.line,0);;){var ct=Jt(ut);if(!ct||ut.line!=rt.line)return;var wt=oe(ut);if(!wt)return;if(!ct[1]&&wt!="selfClose"){var Mt=ce(ut.line,ut.ch),Ot=et(ut,ct[2]);return Ot&&re(Ot.from,Mt)>0?{from:Mt,to:Ot.from}:null}}}),Ft.findMatchingTag=function(lt,rt,ut){var ct=new It(lt,rt.line,rt.ch,ut);if(!(ct.text.indexOf(">")==-1&&ct.text.indexOf("<")==-1)){var wt=oe(ct),Mt=wt&&ce(ct.line,ct.ch),Ot=wt&&zt(ct);if(!(!wt||!Ot||re(ct,rt)>0)){var Ht={from:ce(ct.line,ct.ch),to:Mt,tag:Ot[2]};return wt=="selfClose"?{open:Ht,close:null,at:"open"}:Ot[1]?{open:tt(ct,Ot[2]),close:Ht,at:"close"}:(ct=new It(lt,Mt.line,Mt.ch,ut),{open:Ht,close:et(ct,Ot[2]),at:"open"})}}},Ft.findEnclosingTag=function(lt,rt,ut,ct){for(var wt=new It(lt,rt.line,rt.ch,ut);;){var Mt=tt(wt,ct);if(!Mt)break;var Ot=new It(lt,rt.line,rt.ch,ut),Ht=et(Ot,Mt.tag);if(Ht)return{open:Mt,close:Ht}}},Ft.scanForClosingTag=function(lt,rt,ut,ct){var wt=new It(lt,rt.line,rt.ch,ct?{from:0,to:ct}:null);return et(wt,ut)}})},89780:function(ui){(function(wn,bt){ui.exports=bt()})(this,function(){"use strict";var wn=navigator.userAgent,bt=navigator.platform,Ft=/gecko\/\d/i.test(wn),ce=/MSIE \d/.test(wn),re=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(wn),Be=/Edge\/(\d+)/.exec(wn),ee=ce||re||Be,Yt=ee&&(ce?document.documentMode||6:+(Be||re)[1]),It=!Be&&/WebKit\//.test(wn),jt=It&&/Qt\/\d+\.\d+/.test(wn),Xt=!Be&&/Chrome\//.test(wn),Pt=/Opera\//.test(wn),oe=/Apple Computer/.test(navigator.vendor),zt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(wn),Jt=/PhantomJS/.test(wn),Ct=!Be&&/AppleWebKit/.test(wn)&&/Mobile\/\w+/.test(wn),et=/Android/.test(wn),tt=Ct||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(wn),lt=Ct||/Mac/.test(bt),rt=/\bCrOS\b/.test(wn),ut=/win/i.test(bt),ct=Pt&&wn.match(/Version\/(\d*\.\d*)/);ct&&(ct=Number(ct[1])),ct&&ct>=15&&(Pt=!1,It=!0);var wt=lt&&(jt||Pt&&(ct==null||ct<12.11)),Mt=Ft||ee&&Yt>=9;function Ot(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Ht=function(it,st){var vt=it.className,gt=Ot(st).exec(vt);if(gt){var Bt=vt.slice(gt.index+gt[0].length);it.className=vt.slice(0,gt.index)+(Bt?gt[1]+Bt:"")}};function ne(it){for(var st=it.childNodes.length;st>0;--st)it.removeChild(it.firstChild);return it}function ae(it,st){return ne(it).appendChild(st)}function de(it,st,vt,gt){var Bt=document.createElement(it);if(vt&&(Bt.className=vt),gt&&(Bt.style.cssText=gt),typeof st=="string")Bt.appendChild(document.createTextNode(st));else if(st)for(var te=0;te<st.length;++te)Bt.appendChild(st[te]);return Bt}function be(it,st,vt,gt){var Bt=de(it,st,vt,gt);return Bt.setAttribute("role","presentation"),Bt}var qt;document.createRange?qt=function(it,st,vt,gt){var Bt=document.createRange();return Bt.setEnd(gt||it,vt),Bt.setStart(it,st),Bt}:qt=function(it,st,vt){var gt=document.body.createTextRange();try{gt.moveToElementText(it.parentNode)}catch(Bt){return gt}return gt.collapse(!0),gt.moveEnd("character",vt),gt.moveStart("character",st),gt};function ze(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 Ge(it,st){var vt=it.className;Ot(st).test(vt)||(it.className+=(vt?" ":"")+st)}function _e(it,st){for(var vt=it.split(" "),gt=0;gt<vt.length;gt++)vt[gt]&&!Ot(vt[gt]).test(st)&&(st+=" "+vt[gt]);return st}var Ne=function(it){it.select()};Ct?Ne=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:ee&&(Ne=function(it){try{it.select()}catch(st){}});function We(it){var st=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,st)}}function Re(it,st,vt){st||(st={});for(var gt in it)it.hasOwnProperty(gt)&&(vt!==!1||!st.hasOwnProperty(gt))&&(st[gt]=it[gt]);return st}function ve(it,st,vt,gt,Bt){st==null&&(st=it.search(/[^\s\u00a0]/),st==-1&&(st=it.length));for(var te=gt||0,xe=Bt||0;;){var je=it.indexOf(" ",te);if(je<0||je>=st)return xe+(st-te);xe+=je-te,xe+=vt-xe%vt,te=je+1}}var ie=function(){this.id=null,this.f=null,this.time=0,this.handler=We(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 vt=+new Date+it;(!this.id||vt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=vt)};function Se(it,st){for(var vt=0;vt<it.length;++vt)if(it[vt]==st)return vt;return-1}var Bn=50,Ln={toString:function(){return"CodeMirror.Pass"}},Ye={scroll:!1},Mn={origin:"*mouse"},Wn={origin:"+move"};function fi(it,st,vt){for(var gt=0,Bt=0;;){var te=it.indexOf(" ",gt);te==-1&&(te=it.length);var xe=te-gt;if(te==it.length||Bt+xe>=st)return gt+Math.min(xe,st-Bt);if(Bt+=te-gt,Bt+=vt-Bt%vt,gt=te+1,Bt>=st)return gt}}var Hn=[""];function xi(it){for(;Hn.length<=it;)Hn.push(nn(Hn)+" ");return Hn[it]}function nn(it){return it[it.length-1]}function Fi(it,st){for(var vt=[],gt=0;gt<it.length;gt++)vt[gt]=st(it[gt],gt);return vt}function ki(it,st,vt){for(var gt=0,Bt=vt(st);gt<it.length&&vt(it[gt])<=Bt;)gt++;it.splice(gt,0,st)}function Nt(){}function Dt(it,st){var vt;return Object.create?vt=Object.create(it):(Nt.prototype=it,vt=new Nt),st&&Re(st,vt),vt}var mt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ft(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||mt.test(it))}function pt(it,st){return st?st.source.indexOf("\\w")>-1&&ft(it)?!0:st.test(it):ft(it)}function At(it){for(var st in it)if(it.hasOwnProperty(st)&&it[st])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function we(it){return it.charCodeAt(0)>=768&&ue.test(it)}function le(it,st,vt){for(;(vt<0?st>0:st<it.length)&&we(it.charAt(st));)st+=vt;return st}function me(it,st,vt){for(var gt=st>vt?-1:1;;){if(st==vt)return st;var Bt=(st+vt)/2,te=gt<0?Math.ceil(Bt):Math.floor(Bt);if(te==st)return it(te)?st:vt;it(te)?vt=te:st=te+gt}}function Ue(it,st,vt,gt){if(!it)return gt(st,vt,"ltr",0);for(var Bt=!1,te=0;te<it.length;++te){var xe=it[te];(xe.from<vt&&xe.to>st||st==vt&&xe.to==st)&&(gt(Math.max(xe.from,st),Math.min(xe.to,vt),xe.level==1?"rtl":"ltr",te),Bt=!0)}Bt||gt(st,vt,"ltr")}var ke=null;function Ie(it,st,vt){var gt;ke=null;for(var Bt=0;Bt<it.length;++Bt){var te=it[Bt];if(te.from<st&&te.to>st)return Bt;te.to==st&&(te.from!=te.to&&vt=="before"?gt=Bt:ke=Bt),te.from==st&&(te.from!=te.to&&vt!="before"?gt=Bt:ke=Bt)}return gt!=null?gt:ke}var rn=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",st="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function vt(an){return an<=247?it.charAt(an):1424<=an&&an<=1524?"R":1536<=an&&an<=1785?st.charAt(an-1536):1774<=an&&an<=2220?"r":8192<=an&&an<=8203?"w":an==8204?"b":"L"}var gt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Bt=/[stwN]/,te=/[LRr]/,xe=/[Lb1n]/,je=/[1n]/;function De(an,Zn,xn){this.level=an,this.from=Zn,this.to=xn}return function(an,Zn){var xn=Zn=="ltr"?"L":"R";if(an.length==0||Zn=="ltr"&&!gt.test(an))return!1;for(var Mi=an.length,bi=[],Mr=0;Mr<Mi;++Mr)bi.push(vt(an.charCodeAt(Mr)));for(var jr=0,qr=xn;jr<Mi;++jr){var Co=bi[jr];Co=="m"?bi[jr]=qr:qr=Co}for(var $o=0,Oo=xn;$o<Mi;++$o){var ss=bi[$o];ss=="1"&&Oo=="r"?bi[$o]="n":te.test(ss)&&(Oo=ss,ss=="r"&&(bi[$o]="R"))}for(var Ds=1,Do=bi[0];Ds<Mi-1;++Ds){var Js=bi[Ds];Js=="+"&&Do=="1"&&bi[Ds+1]=="1"?bi[Ds]="1":Js==","&&Do==bi[Ds+1]&&(Do=="1"||Do=="n")&&(bi[Ds]=Do),Do=Js}for(var _l=0;_l<Mi;++_l){var $l=bi[_l];if($l==",")bi[_l]="N";else if($l=="%"){var fl=void 0;for(fl=_l+1;fl<Mi&&bi[fl]=="%";++fl);for(var Ja=_l&&bi[_l-1]=="!"||fl<Mi&&bi[fl]=="1"?"1":"N",Ua=_l;Ua<fl;++Ua)bi[Ua]=Ja;_l=fl-1}}for(var Za=0,El=xn;Za<Mi;++Za){var wu=bi[Za];El=="L"&&wu=="1"?bi[Za]="L":te.test(wu)&&(El=wu)}for(var Uo=0;Uo<Mi;++Uo)if(Bt.test(bi[Uo])){var Ca=void 0;for(Ca=Uo+1;Ca<Mi&&Bt.test(bi[Ca]);++Ca);for(var Xl=(Uo?bi[Uo-1]:xn)=="L",Hl=(Ca<Mi?bi[Ca]:xn)=="L",Zu=Xl==Hl?Xl?"L":"R":xn,aa=Uo;aa<Ca;++aa)bi[aa]=Zu;Uo=Ca-1}for(var zs=[],ch,fu=0;fu<Mi;)if(xe.test(bi[fu])){var Xd=fu;for(++fu;fu<Mi&&xe.test(bi[fu]);++fu);zs.push(new De(0,Xd,fu))}else{var Fh=fu,eh=zs.length,xh=Zn=="rtl"?1:0;for(++fu;fu<Mi&&bi[fu]!="L";++fu);for(var Ql=Fh;Ql<fu;)if(je.test(bi[Ql])){Fh<Ql&&(zs.splice(eh,0,new De(1,Fh,Ql)),eh+=xh);var Hu=Ql;for(++Ql;Ql<fu&&je.test(bi[Ql]);++Ql);zs.splice(eh,0,new De(2,Hu,Ql)),eh+=xh,Fh=Ql}else++Ql;Fh<fu&&zs.splice(eh,0,new De(1,Fh,fu))}return Zn=="ltr"&&(zs[0].level==1&&(ch=an.match(/^\s+/))&&(zs[0].from=ch[0].length,zs.unshift(new De(0,0,ch[0].length))),nn(zs).level==1&&(ch=an.match(/\s+$/))&&(nn(zs).to-=ch[0].length,zs.push(new De(0,Mi-ch[0].length,Mi)))),Zn=="rtl"?zs.reverse():zs}}();function Gn(it,st){var vt=it.order;return vt==null&&(vt=it.order=rn(it.text,st)),vt}var dn=[],An=function(it,st,vt){if(it.addEventListener)it.addEventListener(st,vt,!1);else if(it.attachEvent)it.attachEvent("on"+st,vt);else{var gt=it._handlers||(it._handlers={});gt[st]=(gt[st]||dn).concat(vt)}};function Dn(it,st){return it._handlers&&it._handlers[st]||dn}function qn(it,st,vt){if(it.removeEventListener)it.removeEventListener(st,vt,!1);else if(it.detachEvent)it.detachEvent("on"+st,vt);else{var gt=it._handlers,Bt=gt&&gt[st];if(Bt){var te=Se(Bt,vt);te>-1&&(gt[st]=Bt.slice(0,te).concat(Bt.slice(te+1)))}}}function Rn(it,st){var vt=Dn(it,st);if(vt.length)for(var gt=Array.prototype.slice.call(arguments,2),Bt=0;Bt<vt.length;++Bt)vt[Bt].apply(null,gt)}function Di(it,st,vt){return typeof st=="string"&&(st={type:st,preventDefault:function(){this.defaultPrevented=!0}}),Rn(it,vt||st.type,it,st),to(st)||st.codemirrorIgnore}function cr(it){var st=it._handlers&&it._handlers.cursorActivity;if(st)for(var vt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),gt=0;gt<st.length;++gt)Se(vt,st[gt])==-1&&vt.push(st[gt])}function Ji(it,st){return Dn(it,st).length>0}function Sr(it){it.prototype.on=function(st,vt){An(this,st,vt)},it.prototype.off=function(st,vt){qn(this,st,vt)}}function Nr(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function co(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function to(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Kr(it){Nr(it),co(it)}function gr(it){return it.target||it.srcElement}function Vr(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 pr=function(){if(ee&&Yt<9)return!1;var it=de("div");return"draggable"in it||"dragDrop"in it}(),zo;function es(it){if(zo==null){var st=de("span","\u200B");ae(it,de("span",[st,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(zo=st.offsetWidth<=1&&st.offsetHeight>2&&!(ee&&Yt<8))}var vt=zo?de("span","\u200B"):de("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return vt.setAttribute("cm-text",""),vt}var yo;function ks(it){if(yo!=null)return yo;var st=ae(it,document.createTextNode("A\u062EA")),vt=qt(st,0,1).getBoundingClientRect(),gt=qt(st,1,2).getBoundingClientRect();return ne(it),!vt||vt.left==vt.right?!1:yo=gt.right-vt.right<3}var ws=`
b`.split(/\n/).length!=3?function(it){for(var st=0,vt=[],gt=it.length;st<=gt;){var Bt=it.indexOf(`
`,st);Bt==-1&&(Bt=it.length);var te=it.slice(st,it.charAt(Bt-1)=="\r"?Bt-1:Bt),xe=te.indexOf("\r");xe!=-1?(vt.push(te.slice(0,xe)),st+=xe+1):(vt.push(te),st=Bt+1)}return vt}:function(it){return it.split(/\r\n?|\n/)},Wt=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(vt){}return!st||st.parentElement()!=it?!1:st.compareEndPoints("StartToEnd",st)!=0},xs=function(){var it=de("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Ss=null;function Ms(it){if(Ss!=null)return Ss;var st=ae(it,de("span","x")),vt=st.getBoundingClientRect(),gt=qt(st,0,1).getBoundingClientRect();return Ss=Math.abs(vt.left-gt.left)>1}var ma={},Ea={};function oa(it,st){arguments.length>2&&(st.dependencies=Array.prototype.slice.call(arguments,2)),ma[it]=st}function so(it,st){Ea[it]=st}function br(it){if(typeof it=="string"&&Ea.hasOwnProperty(it))it=Ea[it];else if(it&&typeof it.name=="string"&&Ea.hasOwnProperty(it.name)){var st=Ea[it.name];typeof st=="string"&&(st={name:st}),it=Dt(st,it),it.name=st.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return br("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return br("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function kn(it,st){st=br(st);var vt=ma[st.name];if(!vt)return kn(it,"text/plain");var gt=vt(it,st);if(In.hasOwnProperty(st.name)){var Bt=In[st.name];for(var te in Bt)Bt.hasOwnProperty(te)&&(gt.hasOwnProperty(te)&&(gt["_"+te]=gt[te]),gt[te]=Bt[te])}if(gt.name=st.name,st.helperType&&(gt.helperType=st.helperType),st.modeProps)for(var xe in st.modeProps)gt[xe]=st.modeProps[xe];return gt}var In={};function Oe(it,st){var vt=In.hasOwnProperty(it)?In[it]:In[it]={};Re(st,vt)}function hi(it,st){if(st===!0)return st;if(it.copyState)return it.copyState(st);var vt={};for(var gt in st){var Bt=st[gt];Bt instanceof Array&&(Bt=Bt.concat([])),vt[gt]=Bt}return vt}function Je(it,st){for(var vt;it.innerMode&&(vt=it.innerMode(st),!(!vt||vt.mode==it));)st=vt.state,it=vt.mode;return vt||{mode:it,state:st}}function fn(it,st,vt){return it.startState?it.startState(st,vt):!0}var Ke=function(it,st,vt){this.pos=this.start=0,this.string=it,this.tabSize=st||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=vt};Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ke.prototype.eat=function(it){var st=this.string.charAt(this.pos),vt;if(typeof it=="string"?vt=st==it:vt=st&&(it.test?it.test(st):it(st)),vt)return++this.pos,st},Ke.prototype.eatWhile=function(it){for(var st=this.pos;this.eat(it););return this.pos>st},Ke.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(it){var st=this.string.indexOf(it,this.pos);if(st>-1)return this.pos=st,!0},Ke.prototype.backUp=function(it){this.pos-=it},Ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.indentation=function(){return ve(this.string,null,this.tabSize)-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.match=function(it,st,vt){if(typeof it=="string"){var gt=function(xe){return vt?xe.toLowerCase():xe},Bt=this.string.substr(this.pos,it.length);if(gt(Bt)==gt(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)}},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(it,st){this.lineStart+=it;try{return st()}finally{this.lineStart-=it}},Ke.prototype.lookAhead=function(it){var st=this.lineOracle;return st&&st.lookAhead(it)},Ke.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function ni(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 vt=it;!vt.lines;)for(var gt=0;;++gt){var Bt=vt.children[gt],te=Bt.chunkSize();if(st<te){vt=Bt;break}st-=te}return vt.lines[st]}function Ci(it,st,vt){var gt=[],Bt=st.line;return it.iter(st.line,vt.line+1,function(te){var xe=te.text;Bt==vt.line&&(xe=xe.slice(0,vt.ch)),Bt==st.line&&(xe=xe.slice(st.ch)),gt.push(xe),++Bt}),gt}function _i(it,st,vt){var gt=[];return it.iter(st,vt,function(Bt){gt.push(Bt.text)}),gt}function qi(it,st){var vt=st-it.height;if(vt)for(var gt=it;gt;gt=gt.parent)gt.height+=vt}function on(it){if(it.parent==null)return null;for(var st=it.parent,vt=Se(st.lines,it),gt=st.parent;gt;st=gt,gt=gt.parent)for(var Bt=0;gt.children[Bt]!=st;++Bt)vt+=gt.children[Bt].chunkSize();return vt+st.first}function di(it,st){var vt=it.first;t:do{for(var gt=0;gt<it.children.length;++gt){var Bt=it.children[gt],te=Bt.height;if(st<te){it=Bt;continue t}st-=te,vt+=Bt.chunkSize()}return vt}while(!it.lines);for(var xe=0;xe<it.lines.length;++xe){var je=it.lines[xe],De=je.height;if(st<De)break;st-=De}return vt+xe}function Vi(it,st){return st>=it.first&&st<it.first+it.size}function kr(it,st){return String(it.lineNumberFormatter(st+it.firstLineNumber))}function ii(it,st,vt){if(vt===void 0&&(vt=null),!(this instanceof ii))return new ii(it,st,vt);this.line=it,this.ch=st,this.sticky=vt}function wi(it,st){return it.line-st.line||it.ch-st.ch}function dr(it,st){return it.sticky==st.sticky&&wi(it,st)==0}function pi(it){return ii(it.line,it.ch)}function yi(it,st){return wi(it,st)<0?st:it}function vi(it,st){return wi(it,st)<0?it:st}function er(it,st){return Math.max(it.first,Math.min(st,it.first+it.size-1))}function or(it,st){if(st.line<it.first)return ii(it.first,0);var vt=it.first+it.size-1;return st.line>vt?ii(vt,ni(it,vt).text.length):Rr(st,ni(it,st.line).text.length)}function Rr(it,st){var vt=it.ch;return vt==null||vt>st?ii(it.line,st):vt<0?ii(it.line,0):it}function Zr(it,st){for(var vt=[],gt=0;gt<st.length;gt++)vt[gt]=or(it,st[gt]);return vt}var Xr=function(it,st){this.state=it,this.lookAhead=st},ei=function(it,st,vt,gt){this.state=st,this.doc=it,this.line=vt,this.maxLookAhead=gt||0,this.baseTokens=null,this.baseTokenPos=1};ei.prototype.lookAhead=function(it){var st=this.doc.getLine(this.line+it);return st!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),st},ei.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}},ei.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ei.fromSaved=function(it,st,vt){return st instanceof Xr?new ei(it,hi(it.mode,st.state),vt,st.lookAhead):new ei(it,hi(it.mode,st),vt)},ei.prototype.save=function(it){var st=it!==!1?hi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xr(st,this.maxLookAhead):st};function _o(it,st,vt,gt){var Bt=[it.state.modeGen],te={};wo(it,st.text,it.doc.mode,vt,function(an,Zn){return Bt.push(an,Zn)},te,gt);for(var xe=vt.state,je=function(an){vt.baseTokens=Bt;var Zn=it.state.overlays[an],xn=1,Mi=0;vt.state=!0,wo(it,st.text,Zn.mode,vt,function(bi,Mr){for(var jr=xn;Mi<bi;){var qr=Bt[xn];qr>bi&&Bt.splice(xn,1,bi,Bt[xn+1],qr),xn+=2,Mi=Math.min(bi,qr)}if(Mr)if(Zn.opaque)Bt.splice(jr,xn-jr,bi,"overlay "+Mr),xn=jr+2;else for(;jr<xn;jr+=2){var Co=Bt[jr+1];Bt[jr+1]=(Co?Co+" ":"")+"overlay "+Mr}},te),vt.state=xe,vt.baseTokens=null,vt.baseTokenPos=1},De=0;De<it.state.overlays.length;++De)je(De);return{styles:Bt,classes:te.bgClass||te.textClass?te:null}}function Zo(it,st,vt){if(!st.styles||st.styles[0]!=it.state.modeGen){var gt=cs(it,on(st)),Bt=st.text.length>it.options.maxHighlightLength&&hi(it.doc.mode,gt.state),te=_o(it,st,gt);Bt&&(gt.state=Bt),st.stateAfter=gt.save(!Bt),st.styles=te.styles,te.classes?st.styleClasses=te.classes:st.styleClasses&&(st.styleClasses=null),vt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return st.styles}function cs(it,st,vt){var gt=it.doc,Bt=it.display;if(!gt.mode.startState)return new ei(gt,!0,st);var te=fo(it,st,vt),xe=te>gt.first&&ni(gt,te-1).stateAfter,je=xe?ei.fromSaved(gt,xe,te):new ei(gt,fn(gt.mode),te);return gt.iter(te,st,function(De){ri(it,De.text,je);var an=je.line;De.stateAfter=an==st-1||an%5==0||an>=Bt.viewFrom&&an<Bt.viewTo?je.save():null,je.nextLine()}),vt&&(gt.modeFrontier=je.line),je}function ri(it,st,vt,gt){var Bt=it.doc.mode,te=new Ke(st,it.options.tabSize,vt);for(te.start=te.pos=gt||0,st==""&&rr(Bt,vt.state);!te.eol();)Er(Bt,te,vt.state),te.start=te.pos}function rr(it,st){if(it.blankLine)return it.blankLine(st);if(it.innerMode){var vt=Je(it,st);if(vt.mode.blankLine)return vt.mode.blankLine(vt.state)}}function Er(it,st,vt,gt){for(var Bt=0;Bt<10;Bt++){gt&&(gt[0]=Je(it,vt).mode);var te=it.token(st,vt);if(st.pos>st.start)return te}throw new Error("Mode "+it.name+" failed to advance stream.")}var no=function(it,st,vt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=st||null,this.state=vt};function Fr(it,st,vt,gt){var Bt=it.doc,te=Bt.mode,xe;st=or(Bt,st);var je=ni(Bt,st.line),De=cs(it,st.line,vt),an=new Ke(je.text,it.options.tabSize,De),Zn;for(gt&&(Zn=[]);(gt||an.pos<st.ch)&&!an.eol();)an.start=an.pos,xe=Er(te,an,De.state),gt&&Zn.push(new no(an,xe,hi(Bt.mode,De.state)));return gt?Zn:new no(an,xe,De.state)}function Gr(it,st){if(it)for(;;){var vt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!vt)break;it=it.slice(0,vt.index)+it.slice(vt.index+vt[0].length);var gt=vt[1]?"bgClass":"textClass";st[gt]==null?st[gt]=vt[2]:new RegExp("(?:^|\\s)"+vt[2]+"(?:$|\\s)").test(st[gt])||(st[gt]+=" "+vt[2])}return it}function wo(it,st,vt,gt,Bt,te,xe){var je=vt.flattenSpans;je==null&&(je=it.options.flattenSpans);var De=0,an=null,Zn=new Ke(st,it.options.tabSize,gt),xn,Mi=it.options.addModeClass&&[null];for(st==""&&Gr(rr(vt,gt.state),te);!Zn.eol();){if(Zn.pos>it.options.maxHighlightLength?(je=!1,xe&&ri(it,st,gt,Zn.pos),Zn.pos=st.length,xn=null):xn=Gr(Er(vt,Zn,gt.state,Mi),te),Mi){var bi=Mi[0].name;bi&&(xn="m-"+(xn?bi+" "+xn:bi))}if(!je||an!=xn){for(;De<Zn.start;)De=Math.min(Zn.start,De+5e3),Bt(De,an);an=xn}Zn.start=Zn.pos}for(;De<Zn.pos;){var Mr=Math.min(Zn.pos,De+5e3);Bt(Mr,an),De=Mr}}function fo(it,st,vt){for(var gt,Bt,te=it.doc,xe=vt?-1:st-(it.doc.mode.innerMode?1e3:100),je=st;je>xe;--je){if(je<=te.first)return te.first;var De=ni(te,je-1),an=De.stateAfter;if(an&&(!vt||je+(an instanceof Xr?an.lookAhead:0)<=te.modeFrontier))return je;var Zn=ve(De.text,null,it.options.tabSize);(Bt==null||gt>Zn)&&(Bt=je-1,gt=Zn)}return Bt}function xo(it,st){if(it.modeFrontier=Math.min(it.modeFrontier,st),!(it.highlightFrontier<st-10)){for(var vt=it.first,gt=st-1;gt>vt;gt--){var Bt=ni(it,gt).stateAfter;if(Bt&&(!(Bt instanceof Xr)||gt+Bt.lookAhead<st)){vt=gt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,vt)}}var _r=!1,Si=!1;function Ho(){_r=!0}function Pi(){Si=!0}function ns(it,st,vt){this.marker=it,this.from=st,this.to=vt}function qs(it,st){if(it)for(var vt=0;vt<it.length;++vt){var gt=it[vt];if(gt.marker==st)return gt}}function fs(it,st){for(var vt,gt=0;gt<it.length;++gt)it[gt]!=st&&(vt||(vt=[])).push(it[gt]);return vt}function Hs(it,st){it.markedSpans=it.markedSpans?it.markedSpans.concat([st]):[st],st.marker.attachLine(it)}function Gs(it,st,vt){var gt;if(it)for(var Bt=0;Bt<it.length;++Bt){var te=it[Bt],xe=te.marker,je=te.from==null||(xe.inclusiveLeft?te.from<=st:te.from<st);if(je||te.from==st&&xe.type=="bookmark"&&(!vt||!te.marker.insertLeft)){var De=te.to==null||(xe.inclusiveRight?te.to>=st:te.to>st);(gt||(gt=[])).push(new ns(xe,te.from,De?null:te.to))}}return gt}function si(it,st,vt){var gt;if(it)for(var Bt=0;Bt<it.length;++Bt){var te=it[Bt],xe=te.marker,je=te.to==null||(xe.inclusiveRight?te.to>=st:te.to>st);if(je||te.from==st&&xe.type=="bookmark"&&(!vt||te.marker.insertLeft)){var De=te.from==null||(xe.inclusiveLeft?te.from<=st:te.from<st);(gt||(gt=[])).push(new ns(xe,De?null:te.from-st,te.to==null?null:te.to-st))}}return gt}function To(it,st){if(st.full)return null;var vt=Vi(it,st.from.line)&&ni(it,st.from.line).markedSpans,gt=Vi(it,st.to.line)&&ni(it,st.to.line).markedSpans;if(!vt&&!gt)return null;var Bt=st.from.ch,te=st.to.ch,xe=wi(st.from,st.to)==0,je=Gs(vt,Bt,xe),De=si(gt,te,xe),an=st.text.length==1,Zn=nn(st.text).length+(an?Bt:0);if(je)for(var xn=0;xn<je.length;++xn){var Mi=je[xn];if(Mi.to==null){var bi=qs(De,Mi.marker);bi?an&&(Mi.to=bi.to==null?null:bi.to+Zn):Mi.to=Bt}}if(De)for(var Mr=0;Mr<De.length;++Mr){var jr=De[Mr];if(jr.to!=null&&(jr.to+=Zn),jr.from==null){var qr=qs(je,jr.marker);qr||(jr.from=Zn,an&&(je||(je=[])).push(jr))}else jr.from+=Zn,an&&(je||(je=[])).push(jr)}je&&(je=us(je)),De&&De!=je&&(De=us(De));var Co=[je];if(!an){var $o=st.text.length-2,Oo;if($o>0&&je)for(var ss=0;ss<je.length;++ss)je[ss].to==null&&(Oo||(Oo=[])).push(new ns(je[ss].marker,null,null));for(var Ds=0;Ds<$o;++Ds)Co.push(Oo);Co.push(De)}return Co}function us(it){for(var st=0;st<it.length;++st){var vt=it[st];vt.from!=null&&vt.from==vt.to&&vt.marker.clearWhenEmpty!==!1&&it.splice(st--,1)}return it.length?it:null}function rs(it,st,vt){var gt=null;if(it.iter(st.line,vt.line+1,function(bi){if(bi.markedSpans)for(var Mr=0;Mr<bi.markedSpans.length;++Mr){var jr=bi.markedSpans[Mr].marker;jr.readOnly&&(!gt||Se(gt,jr)==-1)&&(gt||(gt=[])).push(jr)}}),!gt)return null;for(var Bt=[{from:st,to:vt}],te=0;te<gt.length;++te)for(var xe=gt[te],je=xe.find(0),De=0;De<Bt.length;++De){var an=Bt[De];if(!(wi(an.to,je.from)<0||wi(an.from,je.to)>0)){var Zn=[De,1],xn=wi(an.from,je.from),Mi=wi(an.to,je.to);(xn<0||!xe.inclusiveLeft&&!xn)&&Zn.push({from:an.from,to:je.from}),(Mi>0||!xe.inclusiveRight&&!Mi)&&Zn.push({from:je.to,to:an.to}),Bt.splice.apply(Bt,Zn),De+=Zn.length-3}}return Bt}function Cr(it){var st=it.markedSpans;if(st){for(var vt=0;vt<st.length;++vt)st[vt].marker.detachLine(it);it.markedSpans=null}}function Le(it,st){if(st){for(var vt=0;vt<st.length;++vt)st[vt].marker.attachLine(it);it.markedSpans=st}}function qo(it){return it.inclusiveLeft?-1:0}function ta(it){return it.inclusiveRight?1:0}function qa(it,st){var vt=it.lines.length-st.lines.length;if(vt!=0)return vt;var gt=it.find(),Bt=st.find(),te=wi(gt.from,Bt.from)||qo(it)-qo(st);if(te)return-te;var xe=wi(gt.to,Bt.to)||ta(it)-ta(st);return xe||st.id-it.id}function ol(it,st){var vt=Si&&it.markedSpans,gt;if(vt)for(var Bt=void 0,te=0;te<vt.length;++te)Bt=vt[te],Bt.marker.collapsed&&(st?Bt.from:Bt.to)==null&&(!gt||qa(gt,Bt.marker)<0)&&(gt=Bt.marker);return gt}function ml(it){return ol(it,!0)}function vr(it){return ol(it,!1)}function $r(it,st){var vt=Si&&it.markedSpans,gt;if(vt)for(var Bt=0;Bt<vt.length;++Bt){var te=vt[Bt];te.marker.collapsed&&(te.from==null||te.from<st)&&(te.to==null||te.to>st)&&(!gt||qa(gt,te.marker)<0)&&(gt=te.marker)}return gt}function Xo(it,st,vt,gt,Bt){var te=ni(it,st),xe=Si&&te.markedSpans;if(xe)for(var je=0;je<xe.length;++je){var De=xe[je];if(De.marker.collapsed){var an=De.marker.find(0),Zn=wi(an.from,vt)||qo(De.marker)-qo(Bt),xn=wi(an.to,gt)||ta(De.marker)-ta(Bt);if(!(Zn>=0&&xn<=0||Zn<=0&&xn>=0)&&(Zn<=0&&(De.marker.inclusiveRight&&Bt.inclusiveLeft?wi(an.to,vt)>=0:wi(an.to,vt)>0)||Zn>=0&&(De.marker.inclusiveRight&&Bt.inclusiveLeft?wi(an.from,gt)<=0:wi(an.from,gt)<0)))return!0}}}function Lo(it){for(var st;st=ml(it);)it=st.find(-1,!0).line;return it}function os(it){for(var st;st=vr(it);)it=st.find(1,!0).line;return it}function Fa(it){for(var st,vt;st=vr(it);)it=st.find(1,!0).line,(vt||(vt=[])).push(it);return vt}function ao(it,st){var vt=ni(it,st),gt=Lo(vt);return vt==gt?st:on(gt)}function mo(it,st){if(st>it.lastLine())return st;var vt=ni(it,st),gt;if(!zi(it,vt))return st;for(;gt=vr(vt);)vt=gt.find(1,!0).line;return on(vt)+1}function zi(it,st){var vt=Si&&st.markedSpans;if(vt){for(var gt=void 0,Bt=0;Bt<vt.length;++Bt)if(gt=vt[Bt],!!gt.marker.collapsed){if(gt.from==null)return!0;if(!gt.marker.widgetNode&&gt.from==0&&gt.marker.inclusiveLeft&&Eo(it,st,gt))return!0}}}function Eo(it,st,vt){if(vt.to==null){var gt=vt.marker.find(1,!0);return Eo(it,gt.line,qs(gt.line.markedSpans,vt.marker))}if(vt.marker.inclusiveRight&&vt.to==st.text.length)return!0;for(var Bt=void 0,te=0;te<st.markedSpans.length;++te)if(Bt=st.markedSpans[te],Bt.marker.collapsed&&!Bt.marker.widgetNode&&Bt.from==vt.to&&(Bt.to==null||Bt.to!=vt.from)&&(Bt.marker.inclusiveLeft||vt.marker.inclusiveRight)&&Eo(it,st,Bt))return!0}function Es(it){it=Lo(it);for(var st=0,vt=it.parent,gt=0;gt<vt.lines.length;++gt){var Bt=vt.lines[gt];if(Bt==it)break;st+=Bt.height}for(var te=vt.parent;te;vt=te,te=vt.parent)for(var xe=0;xe<te.children.length;++xe){var je=te.children[xe];if(je==vt)break;st+=je.height}return st}function la(it){if(it.height==0)return 0;for(var st=it.text.length,vt,gt=it;vt=ml(gt);){var Bt=vt.find(0,!0);gt=Bt.from.line,st+=Bt.from.ch-Bt.to.ch}for(gt=it;vt=vr(gt);){var te=vt.find(0,!0);st-=gt.text.length-te.from.ch,gt=te.to.line,st+=gt.text.length-te.to.ch}return st}function ca(it){var st=it.display,vt=it.doc;st.maxLine=ni(vt,vt.first),st.maxLineLength=la(st.maxLine),st.maxLineChanged=!0,vt.iter(function(gt){var Bt=la(gt);Bt>st.maxLineLength&&(st.maxLineLength=Bt,st.maxLine=gt)})}var Qo=function(it,st,vt){this.text=it,Le(this,st),this.height=vt?vt(this):1};Qo.prototype.lineNo=function(){return on(this)},Sr(Qo);function Vs(it,st,vt,gt){it.text=st,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Cr(it),Le(it,vt);var Bt=gt?gt(it):1;Bt!=it.height&&qi(it,Bt)}function Ka(it){it.parent=null,Cr(it)}var Wl={},La={};function vs(it,st){if(!it||/^\s*$/.test(it))return null;var vt=st.addModeClass?La:Wl;return vt[it]||(vt[it]=it.replace(/\S+/g,"cm-$&"))}function ai(it,st){var vt=be("span",null,null,It?"padding-right: .1px":null),gt={pre:be("pre",[vt],"CodeMirror-line"),content:vt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};st.measure={};for(var Bt=0;Bt<=(st.rest?st.rest.length:0);Bt++){var te=Bt?st.rest[Bt-1]:st.line,xe=void 0;gt.pos=0,gt.addToken=bc,ks(it.display.measure)&&(xe=Gn(te,it.doc.direction))&&(gt.addToken=kh(gt.addToken,xe)),gt.map=[];var je=st!=it.display.externalMeasured&&on(te);Wc(te,gt,Zo(it,te,je)),te.styleClasses&&(te.styleClasses.bgClass&&(gt.bgClass=_e(te.styleClasses.bgClass,gt.bgClass||"")),te.styleClasses.textClass&&(gt.textClass=_e(te.styleClasses.textClass,gt.textClass||""))),gt.map.length==0&&gt.map.push(0,0,gt.content.appendChild(es(it.display.measure))),Bt==0?(st.measure.map=gt.map,st.measure.cache={}):((st.measure.maps||(st.measure.maps=[])).push(gt.map),(st.measure.caches||(st.measure.caches=[])).push({}))}if(It){var De=gt.content.lastChild;(/\bcm-tab\b/.test(De.className)||De.querySelector&&De.querySelector(".cm-tab"))&&(gt.content.className="cm-tab-wrap-hack")}return Rn(it,"renderLine",it,st.line,gt.pre),gt.pre.className&&(gt.textClass=_e(gt.pre.className,gt.textClass||"")),gt}function ka(it){var st=de("span","\u2022","cm-invalidchar");return st.title="\\u"+it.charCodeAt(0).toString(16),st.setAttribute("aria-label",st.title),st}function bc(it,st,vt,gt,Bt,te,xe){if(st){var je=it.splitSpaces?Vl(st,it.trailingSpace):st,De=it.cm.state.specialChars,an=!1,Zn;if(!De.test(st))it.col+=st.length,Zn=document.createTextNode(je),it.map.push(it.pos,it.pos+st.length,Zn),ee&&Yt<9&&(an=!0),it.pos+=st.length;else{Zn=document.createDocumentFragment();for(var xn=0;;){De.lastIndex=xn;var Mi=De.exec(st),bi=Mi?Mi.index-xn:st.length-xn;if(bi){var Mr=document.createTextNode(je.slice(xn,xn+bi));ee&&Yt<9?Zn.appendChild(de("span",[Mr])):Zn.appendChild(Mr),it.map.push(it.pos,it.pos+bi,Mr),it.col+=bi,it.pos+=bi}if(!Mi)break;xn+=bi+1;var jr=void 0;if(Mi[0]==" "){var qr=it.cm.options.tabSize,Co=qr-it.col%qr;jr=Zn.appendChild(de("span",xi(Co),"cm-tab")),jr.setAttribute("role","presentation"),jr.setAttribute("cm-text"," "),it.col+=Co}else Mi[0]=="\r"||Mi[0]==`
`?(jr=Zn.appendChild(de("span",Mi[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),jr.setAttribute("cm-text",Mi[0]),it.col+=1):(jr=it.cm.options.specialCharPlaceholder(Mi[0]),jr.setAttribute("cm-text",Mi[0]),ee&&Yt<9?Zn.appendChild(de("span",[jr])):Zn.appendChild(jr),it.col+=1);it.map.push(it.pos,it.pos+1,jr),it.pos++}}if(it.trailingSpace=je.charCodeAt(st.length-1)==32,vt||gt||Bt||an||te||xe){var $o=vt||"";gt&&($o+=gt),Bt&&($o+=Bt);var Oo=de("span",[Zn],$o,te);if(xe)for(var ss in xe)xe.hasOwnProperty(ss)&&ss!="style"&&ss!="class"&&Oo.setAttribute(ss,xe[ss]);return it.content.appendChild(Oo)}it.content.appendChild(Zn)}}function Vl(it,st){if(it.length>1&&!/ /.test(it))return it;for(var vt=st,gt="",Bt=0;Bt<it.length;Bt++){var te=it.charAt(Bt);te==" "&&vt&&(Bt==it.length-1||it.charCodeAt(Bt+1)==32)&&(te="\xA0"),gt+=te,vt=te==" "}return gt}function kh(it,st){return function(vt,gt,Bt,te,xe,je,De){Bt=Bt?Bt+" cm-force-border":"cm-force-border";for(var an=vt.pos,Zn=an+gt.length;;){for(var xn=void 0,Mi=0;Mi<st.length&&(xn=st[Mi],!(xn.to>an&&xn.from<=an));Mi++);if(xn.to>=Zn)return it(vt,gt,Bt,te,xe,je,De);it(vt,gt.slice(0,xn.to-an),Bt,te,null,je,De),te=null,gt=gt.slice(xn.to-an),an=xn.to}}}function sl(it,st,vt,gt){var Bt=!gt&&vt.widgetNode;Bt&&it.map.push(it.pos,it.pos+st,Bt),!gt&&it.cm.display.input.needsContentAttribute&&(Bt||(Bt=it.content.appendChild(document.createElement("span"))),Bt.setAttribute("cm-marker",vt.id)),Bt&&(it.cm.display.input.setUneditable(Bt),it.content.appendChild(Bt)),it.pos+=st,it.trailingSpace=!1}function Wc(it,st,vt){var gt=it.markedSpans,Bt=it.text,te=0;if(!gt){for(var xe=1;xe<vt.length;xe+=2)st.addToken(st,Bt.slice(te,te=vt[xe]),vs(vt[xe+1],st.cm.options));return}for(var je=Bt.length,De=0,an=1,Zn="",xn,Mi,bi=0,Mr,jr,qr,Co,$o;;){if(bi==De){Mr=jr=qr=Mi="",$o=null,Co=null,bi=1/0;for(var Oo=[],ss=void 0,Ds=0;Ds<gt.length;++Ds){var Do=gt[Ds],Js=Do.marker;if(Js.type=="bookmark"&&Do.from==De&&Js.widgetNode)Oo.push(Js);else if(Do.from<=De&&(Do.to==null||Do.to>De||Js.collapsed&&Do.to==De&&Do.from==De)){if(Do.to!=null&&Do.to!=De&&bi>Do.to&&(bi=Do.to,jr=""),Js.className&&(Mr+=" "+Js.className),Js.css&&(Mi=(Mi?Mi+";":"")+Js.css),Js.startStyle&&Do.from==De&&(qr+=" "+Js.startStyle),Js.endStyle&&Do.to==bi&&(ss||(ss=[])).push(Js.endStyle,Do.to),Js.title&&(($o||($o={})).title=Js.title),Js.attributes)for(var _l in Js.attributes)($o||($o={}))[_l]=Js.attributes[_l];Js.collapsed&&(!Co||qa(Co.marker,Js)<0)&&(Co=Do)}else Do.from>De&&bi>Do.from&&(bi=Do.from)}if(ss)for(var $l=0;$l<ss.length;$l+=2)ss[$l+1]==bi&&(jr+=" "+ss[$l]);if(!Co||Co.from==De)for(var fl=0;fl<Oo.length;++fl)sl(st,0,Oo[fl]);if(Co&&(Co.from||0)==De){if(sl(st,(Co.to==null?je+1:Co.to)-De,Co.marker,Co.from==null),Co.to==null)return;Co.to==De&&(Co=!1)}}if(De>=je)break;for(var Ja=Math.min(je,bi);;){if(Zn){var Ua=De+Zn.length;if(!Co){var Za=Ua>Ja?Zn.slice(0,Ja-De):Zn;st.addToken(st,Za,xn?xn+Mr:Mr,qr,De+Za.length==bi?jr:"",Mi,$o)}if(Ua>=Ja){Zn=Zn.slice(Ja-De),De=Ja;break}De=Ua,qr=""}Zn=Bt.slice(te,te=vt[an++]),xn=vs(vt[an++],st.cm.options)}}}function Fl(it,st,vt){this.line=st,this.rest=Fa(st),this.size=this.rest?on(nn(this.rest))-vt+1:1,this.node=this.text=null,this.hidden=zi(it,st)}function Is(it,st,vt){for(var gt=[],Bt,te=st;te<vt;te=Bt){var xe=new Fl(it.doc,ni(it.doc,te),te);Bt=te+xe.size,gt.push(xe)}return gt}var ia=null;function Ph(it){ia?ia.ops.push(it):it.ownsGroup=ia={ops:[it],delayedCallbacks:[]}}function is(it){var st=it.delayedCallbacks,vt=0;do{for(;vt<st.length;vt++)st[vt].call(null);for(var gt=0;gt<it.ops.length;gt++){var Bt=it.ops[gt];if(Bt.cursorActivityHandlers)for(;Bt.cursorActivityCalled<Bt.cursorActivityHandlers.length;)Bt.cursorActivityHandlers[Bt.cursorActivityCalled++].call(null,Bt.cm)}}while(vt<st.length)}function Zs(it,st){var vt=it.ownsGroup;if(vt)try{is(vt)}finally{ia=null,st(vt)}}var ys=null;function Hr(it,st){var vt=Dn(it,st);if(vt.length){var gt=Array.prototype.slice.call(arguments,2),Bt;ia?Bt=ia.delayedCallbacks:ys?Bt=ys:(Bt=ys=[],setTimeout(kl,0));for(var te=function(je){Bt.push(function(){return vt[je].apply(null,gt)})},xe=0;xe<vt.length;++xe)te(xe)}}function kl(){var it=ys;ys=null;for(var st=0;st<it.length;++st)it[st]()}function Ol(it,st,vt,gt){for(var Bt=0;Bt<st.changes.length;Bt++){var te=st.changes[Bt];te=="text"?wr(it,st):te=="gutter"?Oa(it,st,vt,gt):te=="class"?Ma(it,st):te=="widget"&&Bl(it,st,gt)}st.changes=null}function Ao(it){return it.node==it.text&&(it.node=de("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),ee&&Yt<8&&(it.node.style.zIndex=2)),it.node}function Ns(it,st){var vt=st.bgClass?st.bgClass+" "+(st.line.bgClass||""):st.line.bgClass;if(vt&&(vt+=" CodeMirror-linebackground"),st.background)vt?st.background.className=vt:(st.background.parentNode.removeChild(st.background),st.background=null);else if(vt){var gt=Ao(st);st.background=gt.insertBefore(de("div",null,vt),gt.firstChild),it.display.input.setUneditable(st.background)}}function da(it,st){var vt=it.display.externalMeasured;return vt&&vt.line==st.line?(it.display.externalMeasured=null,st.measure=vt.measure,vt.built):ai(it,st)}function wr(it,st){var vt=st.text.className,gt=da(it,st);st.text==st.node&&(st.node=gt.pre),st.text.parentNode.replaceChild(gt.pre,st.text),st.text=gt.pre,gt.bgClass!=st.bgClass||gt.textClass!=st.textClass?(st.bgClass=gt.bgClass,st.textClass=gt.textClass,Ma(it,st)):vt&&(st.text.className=vt)}function Ma(it,st){Ns(it,st),st.line.wrapClass?Ao(st).className=st.line.wrapClass:st.node!=st.text&&(st.node.className="");var vt=st.textClass?st.textClass+" "+(st.line.textClass||""):st.line.textClass;st.text.className=vt||""}function Oa(it,st,vt,gt){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 Bt=Ao(st);st.gutterBackground=de("div",null,"CodeMirror-gutter-background "+st.line.gutterClass,"left: "+(it.options.fixedGutter?gt.fixedPos:-gt.gutterTotalWidth)+"px; width: "+gt.gutterTotalWidth+"px"),it.display.input.setUneditable(st.gutterBackground),Bt.insertBefore(st.gutterBackground,st.text)}var te=st.line.gutterMarkers;if(it.options.lineNumbers||te){var xe=Ao(st),je=st.gutter=de("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?gt.fixedPos:-gt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(je),xe.insertBefore(je,st.text),st.line.gutterClass&&(je.className+=" "+st.line.gutterClass),it.options.lineNumbers&&(!te||!te["CodeMirror-linenumbers"])&&(st.lineNumber=je.appendChild(de("div",kr(it.options,vt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+gt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),te)for(var De=0;De<it.display.gutterSpecs.length;++De){var an=it.display.gutterSpecs[De].className,Zn=te.hasOwnProperty(an)&&te[an];Zn&&je.appendChild(de("div",[Zn],"CodeMirror-gutter-elt","left: "+gt.gutterLeft[an]+"px; width: "+gt.gutterWidth[an]+"px"))}}}function Bl(it,st,vt){st.alignable&&(st.alignable=null);for(var gt=Ot("CodeMirror-linewidget"),Bt=st.node.firstChild,te=void 0;Bt;Bt=te)te=Bt.nextSibling,gt.test(Bt.className)&&st.node.removeChild(Bt);au(it,st,vt)}function su(it,st,vt,gt){var Bt=da(it,st);return st.text=st.node=Bt.pre,Bt.bgClass&&(st.bgClass=Bt.bgClass),Bt.textClass&&(st.textClass=Bt.textClass),Ma(it,st),Oa(it,st,vt,gt),au(it,st,gt),st.node}function au(it,st,vt){if(Yo(it,st.line,st,vt,!0),st.rest)for(var gt=0;gt<st.rest.length;gt++)Yo(it,st.rest[gt],st,vt,!1)}function Yo(it,st,vt,gt,Bt){if(st.widgets)for(var te=Ao(vt),xe=0,je=st.widgets;xe<je.length;++xe){var De=je[xe],an=de("div",[De.node],"CodeMirror-linewidget"+(De.className?" "+De.className:""));De.handleMouseEvents||an.setAttribute("cm-ignore-events","true"),va(De,an,vt,gt),it.display.input.setUneditable(an),Bt&&De.above?te.insertBefore(an,vt.gutter||vt.text):te.appendChild(an),Hr(De,"redraw")}}function va(it,st,vt,gt){if(it.noHScroll){(vt.alignable||(vt.alignable=[])).push(st);var Bt=gt.wrapperWidth;st.style.left=gt.fixedPos+"px",it.coverGutter||(Bt-=gt.gutterTotalWidth,st.style.paddingLeft=gt.gutterTotalWidth+"px"),st.style.width=Bt+"px"}it.coverGutter&&(st.style.zIndex=5,st.style.position="relative",it.noHScroll||(st.style.marginLeft=-gt.gutterTotalWidth+"px"))}function Cs(it){if(it.height!=null)return it.height;var st=it.doc.cm;if(!st)return 0;if(!ze(document.body,it.node)){var vt="position: relative;";it.coverGutter&&(vt+="margin-left: -"+st.display.gutters.offsetWidth+"px;"),it.noHScroll&&(vt+="width: "+st.display.wrapper.clientWidth+"px;"),ae(st.display.measure,de("div",[it.node],null,vt))}return it.height=it.node.parentNode.offsetHeight}function lu(it,st){for(var vt=gr(st);vt!=it.wrapper;vt=vt.parentNode)if(!vt||vt.nodeType==1&&vt.getAttribute("cm-ignore-events")=="true"||vt.parentNode==it.sizer&&vt!=it.mover)return!0}function Ll(it){return it.lineSpace.offsetTop}function Ml(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function tl(it){if(it.cachedPaddingH)return it.cachedPaddingH;var st=ae(it.measure,de("pre","x","CodeMirror-line-like")),vt=window.getComputedStyle?window.getComputedStyle(st):st.currentStyle,gt={left:parseInt(vt.paddingLeft),right:parseInt(vt.paddingRight)};return!isNaN(gt.left)&&!isNaN(gt.right)&&(it.cachedPaddingH=gt),gt}function tu(it){return Bn-it.display.nativeBarWidth}function Pl(it){return it.display.scroller.clientWidth-tu(it)-it.display.barWidth}function No(it){return it.display.scroller.clientHeight-tu(it)-it.display.barHeight}function dc(it,st,vt){var gt=it.options.lineWrapping,Bt=gt&&Pl(it);if(!st.measure.heights||gt&&st.measure.width!=Bt){var te=st.measure.heights=[];if(gt){st.measure.width=Bt;for(var xe=st.text.firstChild.getClientRects(),je=0;je<xe.length-1;je++){var De=xe[je],an=xe[je+1];Math.abs(De.bottom-an.bottom)>2&&te.push((De.bottom+an.top)/2-vt.top)}}te.push(vt.bottom-vt.top)}}function al(it,st,vt){if(it.line==st)return{map:it.measure.map,cache:it.measure.cache};for(var gt=0;gt<it.rest.length;gt++)if(it.rest[gt]==st)return{map:it.measure.maps[gt],cache:it.measure.caches[gt]};for(var Bt=0;Bt<it.rest.length;Bt++)if(on(it.rest[Bt])>vt)return{map:it.measure.maps[Bt],cache:it.measure.caches[Bt],before:!0}}function zu(it,st){st=Lo(st);var vt=on(st),gt=it.display.externalMeasured=new Fl(it.doc,st,vt);gt.lineN=vt;var Bt=gt.built=ai(it,gt);return gt.text=Bt.pre,ae(it.display.lineMeasure,Bt.pre),gt}function hh(it,st,vt,gt){return ih(it,Ga(it,st),vt,gt)}function dh(it,st){if(st>=it.display.viewFrom&&st<it.display.viewTo)return it.display.view[Ku(it,st)];var vt=it.display.externalMeasured;if(vt&&st>=vt.lineN&&st<vt.lineN+vt.size)return vt}function Ga(it,st){var vt=on(st),gt=dh(it,vt);gt&&!gt.text?gt=null:gt&&gt.changes&&(Ol(it,gt,vt,_A(it)),it.curOp.forceUpdate=!0),gt||(gt=zu(it,st));var Bt=al(gt,st,vt);return{line:st,view:gt,rect:null,map:Bt.map,cache:Bt.cache,before:Bt.before,hasHeights:!1}}function ih(it,st,vt,gt,Bt){st.before&&(vt=-1);var te=vt+(gt||""),xe;return st.cache.hasOwnProperty(te)?xe=st.cache[te]:(st.rect||(st.rect=st.view.text.getBoundingClientRect()),st.hasHeights||(dc(it,st.view,st.rect),st.hasHeights=!0),xe=Bs(it,st,vt,gt),xe.bogus||(st.cache[te]=xe)),{left:xe.left,right:xe.right,top:Bt?xe.rtop:xe.top,bottom:Bt?xe.rbottom:xe.bottom}}var Ec={left:0,right:0,top:0,bottom:0};function Vc(it,st,vt){for(var gt,Bt,te,xe,je,De,an=0;an<it.length;an+=3)if(je=it[an],De=it[an+1],st<je?(Bt=0,te=1,xe="left"):st<De?(Bt=st-je,te=Bt+1):(an==it.length-3||st==De&&it[an+3]>st)&&(te=De-je,Bt=te-1,st>=De&&(xe="right")),Bt!=null){if(gt=it[an+2],je==De&&vt==(gt.insertLeft?"left":"right")&&(xe=vt),vt=="left"&&Bt==0)for(;an&&it[an-2]==it[an-3]&&it[an-1].insertLeft;)gt=it[(an-=3)+2],xe="left";if(vt=="right"&&Bt==De-je)for(;an<it.length-3&&it[an+3]==it[an+4]&&!it[an+5].insertLeft;)gt=it[(an+=3)+2],xe="right";break}return{node:gt,start:Bt,end:te,collapse:xe,coverStart:je,coverEnd:De}}function Zc(it,st){var vt=Ec;if(st=="left")for(var gt=0;gt<it.length&&(vt=it[gt]).left==vt.right;gt++);else for(var Bt=it.length-1;Bt>=0&&(vt=it[Bt]).left==vt.right;Bt--);return vt}function Bs(it,st,vt,gt){var Bt=Vc(st.map,vt,gt),te=Bt.node,xe=Bt.start,je=Bt.end,De=Bt.collapse,an;if(te.nodeType==3){for(var Zn=0;Zn<4;Zn++){for(;xe&&we(st.line.text.charAt(Bt.coverStart+xe));)--xe;for(;Bt.coverStart+je<Bt.coverEnd&&we(st.line.text.charAt(Bt.coverStart+je));)++je;if(ee&&Yt<9&&xe==0&&je==Bt.coverEnd-Bt.coverStart?an=te.parentNode.getBoundingClientRect():an=Zc(qt(te,xe,je).getClientRects(),gt),an.left||an.right||xe==0)break;je=xe,xe=xe-1,De="right"}ee&&Yt<11&&(an=ya(it.display.measure,an))}else{xe>0&&(De=gt="right");var xn;it.options.lineWrapping&&(xn=te.getClientRects()).length>1?an=xn[gt=="right"?xn.length-1:0]:an=te.getBoundingClientRect()}if(ee&&Yt<9&&!xe&&(!an||!an.left&&!an.right)){var Mi=te.parentNode.getClientRects()[0];Mi?an={left:Mi.left,right:Mi.left+fh(it.display),top:Mi.top,bottom:Mi.bottom}:an=Ec}for(var bi=an.top-st.rect.top,Mr=an.bottom-st.rect.top,jr=(bi+Mr)/2,qr=st.view.measure.heights,Co=0;Co<qr.length-1&&!(jr<qr[Co]);Co++);var $o=Co?qr[Co-1]:0,Oo=qr[Co],ss={left:(De=="right"?an.right:an.left)-st.rect.left,right:(De=="left"?an.left:an.right)-st.rect.left,top:$o,bottom:Oo};return!an.left&&!an.right&&(ss.bogus=!0),it.options.singleCursorHeightPerLine||(ss.rtop=bi,ss.rbottom=Mr),ss}function ya(it,st){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ms(it))return st;var vt=screen.logicalXDPI/screen.deviceXDPI,gt=screen.logicalYDPI/screen.deviceYDPI;return{left:st.left*vt,right:st.right*vt,top:st.top*gt,bottom:st.bottom*gt}}function Mu(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 el(it){it.display.externalMeasure=null,ne(it.display.lineMeasure);for(var st=0;st<it.display.view.length;st++)Mu(it.display.view[st])}function ll(it){el(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Wa(){return Xt&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Aa(){return Xt&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function nl(it){var st=0;if(it.widgets)for(var vt=0;vt<it.widgets.length;++vt)it.widgets[vt].above&&(st+=Cs(it.widgets[vt]));return st}function Dl(it,st,vt,gt,Bt){if(!Bt){var te=nl(st);vt.top+=te,vt.bottom+=te}if(gt=="line")return vt;gt||(gt="local");var xe=Es(st);if(gt=="local"?xe+=Ll(it.display):xe-=it.display.viewOffset,gt=="page"||gt=="window"){var je=it.display.lineSpace.getBoundingClientRect();xe+=je.top+(gt=="window"?0:Aa());var De=je.left+(gt=="window"?0:Wa());vt.left+=De,vt.right+=De}return vt.top+=xe,vt.bottom+=xe,vt}function Ac(it,st,vt){if(vt=="div")return st;var gt=st.left,Bt=st.top;if(vt=="page")gt-=Wa(),Bt-=Aa();else if(vt=="local"||!vt){var te=it.display.sizer.getBoundingClientRect();gt+=te.left,Bt+=te.top}var xe=it.display.lineSpace.getBoundingClientRect();return{left:gt-xe.left,top:Bt-xe.top}}function rh(it,st,vt,gt,Bt){return gt||(gt=ni(it.doc,st.line)),Dl(it,gt,hh(it,gt,st.ch,Bt),vt)}function cl(it,st,vt,gt,Bt,te){gt=gt||ni(it.doc,st.line),Bt||(Bt=Ga(it,gt));function xe(Mr,jr){var qr=ih(it,Bt,Mr,jr?"right":"left",te);return jr?qr.left=qr.right:qr.right=qr.left,Dl(it,gt,qr,vt)}var je=Gn(gt,it.doc.direction),De=st.ch,an=st.sticky;if(De>=gt.text.length?(De=gt.text.length,an="before"):De<=0&&(De=0,an="after"),!je)return xe(an=="before"?De-1:De,an=="before");function Zn(Mr,jr,qr){var Co=je[jr],$o=Co.level==1;return xe(qr?Mr-1:Mr,$o!=qr)}var xn=Ie(je,De,an),Mi=ke,bi=Zn(De,xn,an=="before");return Mi!=null&&(bi.other=Zn(De,Mi,an!="before")),bi}function Ud(it,st){var vt=0;st=or(it.doc,st),it.options.lineWrapping||(vt=fh(it.display)*st.ch);var gt=ni(it.doc,st.line),Bt=Es(gt)+Ll(it.display);return{left:vt,right:vt,top:Bt,bottom:Bt+gt.height}}function od(it,st,vt,gt,Bt){var te=ii(it,st,vt);return te.xRel=Bt,gt&&(te.outside=gt),te}function Ah(it,st,vt){var gt=it.doc;if(vt+=it.display.viewOffset,vt<0)return od(gt.first,0,null,-1,-1);var Bt=di(gt,vt),te=gt.first+gt.size-1;if(Bt>te)return od(gt.first+gt.size-1,ni(gt,te).text.length,null,1,1);st<0&&(st=0);for(var xe=ni(gt,Bt);;){var je=Yi(it,xe,Bt,st,vt),De=$r(xe,je.ch+(je.xRel>0||je.outside>0?1:0));if(!De)return je;var an=De.find(1);if(an.line==Bt)return an;xe=ni(gt,Bt=an.line)}}function Ko(it,st,vt,gt){gt-=nl(st);var Bt=st.text.length,te=me(function(xe){return ih(it,vt,xe-1).bottom<=gt},Bt,0);return Bt=me(function(xe){return ih(it,vt,xe).top>gt},te,Bt),{begin:te,end:Bt}}function sA(it,st,vt,gt){vt||(vt=Ga(it,st));var Bt=Dl(it,st,ih(it,vt,gt),"line").top;return Ko(it,st,vt,Bt)}function bn(it,st,vt,gt){return it.bottom<=vt?!1:it.top>vt?!0:(gt?it.left:it.right)>st}function Yi(it,st,vt,gt,Bt){Bt-=Es(st);var te=Ga(it,st),xe=nl(st),je=0,De=st.text.length,an=!0,Zn=Gn(st,it.doc.direction);if(Zn){var xn=(it.options.lineWrapping?tc:aA)(it,st,vt,te,Zn,gt,Bt);an=xn.level!=1,je=an?xn.from:xn.to-1,De=an?xn.to:xn.from-1}var Mi=null,bi=null,Mr=me(function(Ds){var Do=ih(it,te,Ds);return Do.top+=xe,Do.bottom+=xe,bn(Do,gt,Bt,!1)?(Do.top<=Bt&&Do.left<=gt&&(Mi=Ds,bi=Do),!0):!1},je,De),jr,qr,Co=!1;if(bi){var $o=gt-bi.left<bi.right-gt,Oo=$o==an;Mr=Mi+(Oo?0:1),qr=Oo?"after":"before",jr=$o?bi.left:bi.right}else{!an&&(Mr==De||Mr==je)&&Mr++,qr=Mr==0?"after":Mr==st.text.length?"before":ih(it,te,Mr-(an?1:0)).bottom+xe<=Bt==an?"after":"before";var ss=cl(it,ii(vt,Mr,qr),"line",st,te);jr=ss.left,Co=Bt<ss.top?-1:Bt>=ss.bottom?1:0}return Mr=le(st.text,Mr,1),od(vt,Mr,qr,Co,gt-jr)}function aA(it,st,vt,gt,Bt,te,xe){var je=me(function(xn){var Mi=Bt[xn],bi=Mi.level!=1;return bn(cl(it,ii(vt,bi?Mi.to:Mi.from,bi?"before":"after"),"line",st,gt),te,xe,!0)},0,Bt.length-1),De=Bt[je];if(je>0){var an=De.level!=1,Zn=cl(it,ii(vt,an?De.from:De.to,an?"after":"before"),"line",st,gt);bn(Zn,te,xe,!0)&&Zn.top>xe&&(De=Bt[je-1])}return De}function tc(it,st,vt,gt,Bt,te,xe){var je=Ko(it,st,gt,xe),De=je.begin,an=je.end;/\s/.test(st.text.charAt(an-1))&&an--;for(var Zn=null,xn=null,Mi=0;Mi<Bt.length;Mi++){var bi=Bt[Mi];if(!(bi.from>=an||bi.to<=De)){var Mr=bi.level!=1,jr=ih(it,gt,Mr?Math.min(an,bi.to)-1:Math.max(De,bi.from)).right,qr=jr<te?te-jr+1e9:jr-te;(!Zn||xn>qr)&&(Zn=bi,xn=qr)}}return Zn||(Zn=Bt[Bt.length-1]),Zn.from<De&&(Zn={from:De,to:Zn.to,level:Zn.level}),Zn.to>an&&(Zn={from:Zn.from,to:an,level:Zn.level}),Zn}var ju;function Uu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(ju==null){ju=de("pre",null,"CodeMirror-line-like");for(var st=0;st<49;++st)ju.appendChild(document.createTextNode("x")),ju.appendChild(de("br"));ju.appendChild(document.createTextNode("x"))}ae(it.measure,ju);var vt=ju.offsetHeight/50;return vt>3&&(it.cachedTextHeight=vt),ne(it.measure),vt||1}function fh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var st=de("span","xxxxxxxxxx"),vt=de("pre",[st],"CodeMirror-line-like");ae(it.measure,vt);var gt=st.getBoundingClientRect(),Bt=(gt.right-gt.left)/10;return Bt>2&&(it.cachedCharWidth=Bt),Bt||10}function _A(it){for(var st=it.display,vt={},gt={},Bt=st.gutters.clientLeft,te=st.gutters.firstChild,xe=0;te;te=te.nextSibling,++xe){var je=it.display.gutterSpecs[xe].className;vt[je]=te.offsetLeft+te.clientLeft+Bt,gt[je]=te.clientWidth}return{fixedPos:sd(st),gutterTotalWidth:st.gutters.offsetWidth,gutterLeft:vt,gutterWidth:gt,wrapperWidth:st.wrapper.clientWidth}}function sd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function il(it){var st=Uu(it.display),vt=it.options.lineWrapping,gt=vt&&Math.max(5,it.display.scroller.clientWidth/fh(it.display)-3);return function(Bt){if(zi(it.doc,Bt))return 0;var te=0;if(Bt.widgets)for(var xe=0;xe<Bt.widgets.length;xe++)Bt.widgets[xe].height&&(te+=Bt.widgets[xe].height);return vt?te+(Math.ceil(Bt.text.length/gt)||1)*st:te+st}}function gs(it){var st=it.doc,vt=il(it);st.iter(function(gt){var Bt=vt(gt);Bt!=gt.height&&qi(gt,Bt)})}function Xu(it,st,vt,gt){var Bt=it.display;if(!vt&&gr(st).getAttribute("cm-not-content")=="true")return null;var te,xe,je=Bt.lineSpace.getBoundingClientRect();try{te=st.clientX-je.left,xe=st.clientY-je.top}catch(xn){return null}var De=Ah(it,te,xe),an;if(gt&&De.xRel>0&&(an=ni(it.doc,De.line).text).length==De.ch){var Zn=ve(an,an.length,it.options.tabSize)-an.length;De=ii(De.line,Math.max(0,Math.round((te-tl(it.display).left)/fh(it.display))-Zn))}return De}function Ku(it,st){if(st>=it.display.viewTo||(st-=it.display.viewFrom,st<0))return null;for(var vt=it.display.view,gt=0;gt<vt.length;gt++)if(st-=vt[gt].size,st<0)return gt}function bl(it,st,vt,gt){st==null&&(st=it.doc.first),vt==null&&(vt=it.doc.first+it.doc.size),gt||(gt=0);var Bt=it.display;if(gt&&vt<Bt.viewTo&&(Bt.updateLineNumbers==null||Bt.updateLineNumbers>st)&&(Bt.updateLineNumbers=st),it.curOp.viewChanged=!0,st>=Bt.viewTo)Si&&ao(it.doc,st)<Bt.viewTo&&pu(it);else if(vt<=Bt.viewFrom)Si&&mo(it.doc,vt+gt)>Bt.viewFrom?pu(it):(Bt.viewFrom+=gt,Bt.viewTo+=gt);else if(st<=Bt.viewFrom&&vt>=Bt.viewTo)pu(it);else if(st<=Bt.viewFrom){var te=gh(it,vt,vt+gt,1);te?(Bt.view=Bt.view.slice(te.index),Bt.viewFrom=te.lineN,Bt.viewTo+=gt):pu(it)}else if(vt>=Bt.viewTo){var xe=gh(it,st,st,-1);xe?(Bt.view=Bt.view.slice(0,xe.index),Bt.viewTo=xe.lineN):pu(it)}else{var je=gh(it,st,st,-1),De=gh(it,vt,vt+gt,1);je&&De?(Bt.view=Bt.view.slice(0,je.index).concat(Is(it,je.lineN,De.lineN)).concat(Bt.view.slice(De.index)),Bt.viewTo+=gt):pu(it)}var an=Bt.externalMeasured;an&&(vt<an.lineN?an.lineN+=gt:st<an.lineN+an.size&&(Bt.externalMeasured=null))}function sa(it,st,vt){it.curOp.viewChanged=!0;var gt=it.display,Bt=it.display.externalMeasured;if(Bt&&st>=Bt.lineN&&st<Bt.lineN+Bt.size&&(gt.externalMeasured=null),!(st<gt.viewFrom||st>=gt.viewTo)){var te=gt.view[Ku(it,st)];if(te.node!=null){var xe=te.changes||(te.changes=[]);Se(xe,vt)==-1&&xe.push(vt)}}}function pu(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function gh(it,st,vt,gt){var Bt=Ku(it,st),te,xe=it.display.view;if(!Si||vt==it.doc.first+it.doc.size)return{index:Bt,lineN:vt};for(var je=it.display.viewFrom,De=0;De<Bt;De++)je+=xe[De].size;if(je!=st){if(gt>0){if(Bt==xe.length-1)return null;te=je+xe[Bt].size-st,Bt++}else te=je-st;st+=te,vt+=te}for(;ao(it.doc,vt)!=vt;){if(Bt==(gt<0?0:xe.length-1))return null;vt+=gt*xe[Bt-(gt<0?1:0)].size,Bt+=gt}return{index:Bt,lineN:vt}}function xl(it,st,vt){var gt=it.display,Bt=gt.view;Bt.length==0||st>=gt.viewTo||vt<=gt.viewFrom?(gt.view=Is(it,st,vt),gt.viewFrom=st):(gt.viewFrom>st?gt.view=Is(it,st,gt.viewFrom).concat(gt.view):gt.viewFrom<st&&(gt.view=gt.view.slice(Ku(it,st))),gt.viewFrom=st,gt.viewTo<vt?gt.view=gt.view.concat(Is(it,gt.viewTo,vt)):gt.viewTo>vt&&(gt.view=gt.view.slice(0,Ku(it,vt)))),gt.viewTo=vt}function Oh(it){for(var st=it.display.view,vt=0,gt=0;gt<st.length;gt++){var Bt=st[gt];!Bt.hidden&&(!Bt.node||Bt.changes)&&++vt}return vt}function Su(it){it.display.input.showSelection(it.display.input.prepareSelection())}function xd(it,st){st===void 0&&(st=!0);for(var vt=it.doc,gt={},Bt=gt.cursors=document.createDocumentFragment(),te=gt.selection=document.createDocumentFragment(),xe=0;xe<vt.sel.ranges.length;xe++)if(!(!st&&xe==vt.sel.primIndex)){var je=vt.sel.ranges[xe];if(!(je.from().line>=it.display.viewTo||je.to().line<it.display.viewFrom)){var De=je.empty();(De||it.options.showCursorWhenSelecting)&&Da(it,je.head,Bt),De||ja(it,je,te)}}return gt}function Da(it,st,vt){var gt=cl(it,st,"div",null,null,!it.options.singleCursorHeightPerLine),Bt=vt.appendChild(de("div","\xA0","CodeMirror-cursor"));if(Bt.style.left=gt.left+"px",Bt.style.top=gt.top+"px",Bt.style.height=Math.max(0,gt.bottom-gt.top)*it.options.cursorHeight+"px",gt.other){var te=vt.appendChild(de("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));te.style.display="",te.style.left=gt.other.left+"px",te.style.top=gt.other.top+"px",te.style.height=(gt.other.bottom-gt.other.top)*.85+"px"}}function Ju(it,st){return it.top-st.top||it.left-st.left}function ja(it,st,vt){var gt=it.display,Bt=it.doc,te=document.createDocumentFragment(),xe=tl(it.display),je=xe.left,De=Math.max(gt.sizerWidth,Pl(it)-gt.sizer.offsetLeft)-xe.right,an=Bt.direction=="ltr";function Zn(Oo,ss,Ds,Do){ss<0&&(ss=0),ss=Math.round(ss),Do=Math.round(Do),te.appendChild(de("div",null,"CodeMirror-selected","position: absolute; left: "+Oo+`px;
top: `+ss+"px; width: "+(Ds==null?De-Oo:Ds)+`px;
height: `+(Do-ss)+"px"))}function xn(Oo,ss,Ds){var Do=ni(Bt,Oo),Js=Do.text.length,_l,$l;function fl(Za,El){return rh(it,ii(Oo,Za),"div",Do,El)}function Ja(Za,El,wu){var Uo=sA(it,Do,null,Za),Ca=El=="ltr"==(wu=="after")?"left":"right",Xl=wu=="after"?Uo.begin:Uo.end-(/\s/.test(Do.text.charAt(Uo.end-1))?2:1);return fl(Xl,Ca)[Ca]}var Ua=Gn(Do,Bt.direction);return Ue(Ua,ss||0,Ds==null?Js:Ds,function(Za,El,wu,Uo){var Ca=wu=="ltr",Xl=fl(Za,Ca?"left":"right"),Hl=fl(El-1,Ca?"right":"left"),Zu=ss==null&&Za==0,aa=Ds==null&&El==Js,zs=Uo==0,ch=!Ua||Uo==Ua.length-1;if(Hl.top-Xl.top<=3){var fu=(an?Zu:aa)&&zs,Xd=(an?aa:Zu)&&ch,Fh=fu?je:(Ca?Xl:Hl).left,eh=Xd?De:(Ca?Hl:Xl).right;Zn(Fh,Xl.top,eh-Fh,Xl.bottom)}else{var xh,Ql,Hu,qc;Ca?(xh=an&&Zu&&zs?je:Xl.left,Ql=an?De:Ja(Za,wu,"before"),Hu=an?je:Ja(El,wu,"after"),qc=an&&aa&&ch?De:Hl.right):(xh=an?Ja(Za,wu,"before"):je,Ql=!an&&Zu&&zs?De:Xl.right,Hu=!an&&aa&&ch?je:Hl.left,qc=an?Ja(El,wu,"after"):De),Zn(xh,Xl.top,Ql-xh,Xl.bottom),Xl.bottom<Hl.top&&Zn(je,Xl.bottom,null,Hl.top),Zn(Hu,Hl.top,qc-Hu,Hl.bottom)}(!_l||Ju(Xl,_l)<0)&&(_l=Xl),Ju(Hl,_l)<0&&(_l=Hl),(!$l||Ju(Xl,$l)<0)&&($l=Xl),Ju(Hl,$l)<0&&($l=Hl)}),{start:_l,end:$l}}var Mi=st.from(),bi=st.to();if(Mi.line==bi.line)xn(Mi.line,Mi.ch,bi.ch);else{var Mr=ni(Bt,Mi.line),jr=ni(Bt,bi.line),qr=Lo(Mr)==Lo(jr),Co=xn(Mi.line,Mi.ch,qr?Mr.text.length+1:null).end,$o=xn(bi.line,qr?0:null,bi.ch).start;qr&&(Co.top<$o.top-2?(Zn(Co.right,Co.top,null,Co.bottom),Zn(je,$o.top,$o.left,$o.bottom)):Zn(Co.right,Co.top,$o.left-Co.right,Co.bottom)),Co.bottom<$o.top&&Zn(je,Co.bottom,null,$o.top)}vt.appendChild(te)}function vl(it){if(it.state.focused){var st=it.display;clearInterval(st.blinker);var vt=!0;st.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?st.blinker=setInterval(function(){it.hasFocus()||Lt(it),st.cursorDiv.style.visibility=(vt=!vt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(st.cursorDiv.style.visibility="hidden")}}function Zl(it){it.state.focused||(it.display.input.focus(),xt(it))}function Et(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Lt(it))},100)}function xt(it,st){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Rn(it,"focus",it,st),it.state.focused=!0,Ge(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),It&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),vl(it))}function Lt(it,st){it.state.delayingBlurEvent||(it.state.focused&&(Rn(it,"blur",it,st),it.state.focused=!1,Ht(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Rt(it){for(var st=it.display,vt=st.lineDiv.offsetTop,gt=0;gt<st.view.length;gt++){var Bt=st.view[gt],te=it.options.lineWrapping,xe=void 0,je=0;if(!Bt.hidden){if(ee&&Yt<8){var De=Bt.node.offsetTop+Bt.node.offsetHeight;xe=De-vt,vt=De}else{var an=Bt.node.getBoundingClientRect();xe=an.bottom-an.top,!te&&Bt.text.firstChild&&(je=Bt.text.firstChild.getBoundingClientRect().right-an.left-1)}var Zn=Bt.line.height-xe;if((Zn>.005||Zn<-.005)&&(qi(Bt.line,xe),se(Bt.line),Bt.rest))for(var xn=0;xn<Bt.rest.length;xn++)se(Bt.rest[xn]);if(je>it.display.sizerWidth){var Mi=Math.ceil(je/fh(it.display));Mi>it.display.maxLineLength&&(it.display.maxLineLength=Mi,it.display.maxLine=Bt.line,it.display.maxLineChanged=!0)}}}}function se(it){if(it.widgets)for(var st=0;st<it.widgets.length;++st){var vt=it.widgets[st],gt=vt.node.parentNode;gt&&(vt.height=gt.offsetHeight)}}function Zt(it,st,vt){var gt=vt&&vt.top!=null?Math.max(0,vt.top):it.scroller.scrollTop;gt=Math.floor(gt-Ll(it));var Bt=vt&&vt.bottom!=null?vt.bottom:gt+it.wrapper.clientHeight,te=di(st,gt),xe=di(st,Bt);if(vt&&vt.ensure){var je=vt.ensure.from.line,De=vt.ensure.to.line;je<te?(te=je,xe=di(st,Es(ni(st,je))+it.wrapper.clientHeight)):Math.min(De,st.lastLine())>=xe&&(te=di(st,Es(ni(st,De))-it.wrapper.clientHeight),xe=De)}return{from:te,to:Math.max(xe,te+1)}}function pe(it,st){if(!Di(it,"scrollCursorIntoView")){var vt=it.display,gt=vt.sizer.getBoundingClientRect(),Bt=null;if(st.top+gt.top<0?Bt=!0:st.bottom+gt.top>(window.innerHeight||document.documentElement.clientHeight)&&(Bt=!1),Bt!=null&&!Jt){var te=de("div","\u200B",null,`position: absolute;
top: `+(st.top-vt.viewOffset-Ll(it.display))+`px;
height: `+(st.bottom-st.top+tu(it)+vt.barHeight)+`px;
left: `+st.left+"px; width: "+Math.max(2,st.right-st.left)+"px;");it.display.lineSpace.appendChild(te),te.scrollIntoView(Bt),it.display.lineSpace.removeChild(te)}}}function ye(it,st,vt,gt){gt==null&&(gt=0);var Bt;!it.options.lineWrapping&&st==vt&&(st=st.ch?ii(st.line,st.sticky=="before"?st.ch-1:st.ch,"after"):st,vt=st.sticky=="before"?ii(st.line,st.ch+1,"before"):st);for(var te=0;te<5;te++){var xe=!1,je=cl(it,st),De=!vt||vt==st?je:cl(it,vt);Bt={left:Math.min(je.left,De.left),top:Math.min(je.top,De.top)-gt,right:Math.max(je.left,De.left),bottom:Math.max(je.bottom,De.bottom)+gt};var an=Xe(it,Bt),Zn=it.doc.scrollTop,xn=it.doc.scrollLeft;if(an.scrollTop!=null&&(gi(it,an.scrollTop),Math.abs(it.doc.scrollTop-Zn)>1&&(xe=!0)),an.scrollLeft!=null&&(Ai(it,an.scrollLeft),Math.abs(it.doc.scrollLeft-xn)>1&&(xe=!0)),!xe)break}return Bt}function Fe(it,st){var vt=Xe(it,st);vt.scrollTop!=null&&gi(it,vt.scrollTop),vt.scrollLeft!=null&&Ai(it,vt.scrollLeft)}function Xe(it,st){var vt=it.display,gt=Uu(it.display);st.top<0&&(st.top=0);var Bt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:vt.scroller.scrollTop,te=No(it),xe={};st.bottom-st.top>te&&(st.bottom=st.top+te);var je=it.doc.height+Ml(vt),De=st.top<gt,an=st.bottom>je-gt;if(st.top<Bt)xe.scrollTop=De?0:st.top;else if(st.bottom>Bt+te){var Zn=Math.min(st.top,(an?je:st.bottom)-te);Zn!=Bt&&(xe.scrollTop=Zn)}var xn=it.options.fixedGutter?0:vt.gutters.offsetWidth,Mi=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:vt.scroller.scrollLeft-xn,bi=Pl(it)-vt.gutters.offsetWidth,Mr=st.right-st.left>bi;return Mr&&(st.right=st.left+bi),st.left<10?xe.scrollLeft=0:st.left<Mi?xe.scrollLeft=Math.max(0,st.left+xn-(Mr?0:10)):st.right>bi+Mi-3&&(xe.scrollLeft=st.right+(Mr?0:10)-bi),xe}function pn(it,st){st!=null&&(ci(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+st)}function gn(it){ci(it);var st=it.getCursor();it.curOp.scrollToPos={from:st,to:st,margin:it.options.cursorScrollMargin}}function Nn(it,st,vt){(st!=null||vt!=null)&&ci(it),st!=null&&(it.curOp.scrollLeft=st),vt!=null&&(it.curOp.scrollTop=vt)}function He(it,st){ci(it),it.curOp.scrollToPos=st}function ci(it){var st=it.curOp.scrollToPos;if(st){it.curOp.scrollToPos=null;var vt=Ud(it,st.from),gt=Ud(it,st.to);Yn(it,vt,gt,st.margin)}}function Yn(it,st,vt,gt){var Bt=Xe(it,{left:Math.min(st.left,vt.left),top:Math.min(st.top,vt.top)-gt,right:Math.max(st.right,vt.right),bottom:Math.max(st.bottom,vt.bottom)+gt});Nn(it,Bt.scrollLeft,Bt.scrollTop)}function gi(it,st){Math.abs(it.doc.scrollTop-st)<2||(Ft||$i(it,{top:st}),Un(it,st,!0),Ft&&$i(it),ln(it,100))}function Un(it,st,vt){st=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,st)),!(it.display.scroller.scrollTop==st&&!vt)&&(it.doc.scrollTop=st,it.display.scrollbars.setScrollTop(st),it.display.scroller.scrollTop!=st&&(it.display.scroller.scrollTop=st))}function Ai(it,st,vt,gt){st=Math.max(0,Math.min(st,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((vt?st==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-st)<2)&&!gt)&&(it.doc.scrollLeft=st,Xi(it),it.display.scroller.scrollLeft!=st&&(it.display.scroller.scrollLeft=st),it.display.scrollbars.setScrollLeft(st))}function Hi(it){var st=it.display,vt=st.gutters.offsetWidth,gt=Math.round(it.doc.height+Ml(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?vt:0,docHeight:gt,scrollHeight:gt+tu(it)+st.barHeight,nativeBarWidth:st.nativeBarWidth,gutterWidth:vt}}var lr=function(it,st,vt){this.cm=vt;var gt=this.vert=de("div",[de("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Bt=this.horiz=de("div",[de("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");gt.tabIndex=Bt.tabIndex=-1,it(gt),it(Bt),An(gt,"scroll",function(){gt.clientHeight&&st(gt.scrollTop,"vertical")}),An(Bt,"scroll",function(){Bt.clientWidth&&st(Bt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ee&&Yt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};lr.prototype.update=function(it){var st=it.scrollWidth>it.clientWidth+1,vt=it.scrollHeight>it.clientHeight+1,gt=it.nativeBarWidth;if(vt){this.vert.style.display="block",this.vert.style.bottom=st?gt+"px":"0";var Bt=it.viewHeight-(st?gt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+Bt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(st){this.horiz.style.display="block",this.horiz.style.right=vt?gt+"px":"0",this.horiz.style.left=it.barLeft+"px";var te=it.viewWidth-it.barLeft-(vt?gt: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&&(gt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:vt?gt:0,bottom:st?gt:0}},lr.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},lr.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},lr.prototype.zeroWidthHack=function(){var it=lt&&!zt?"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},lr.prototype.enableZeroWidthBar=function(it,st,vt){it.style.pointerEvents="auto";function gt(){var Bt=it.getBoundingClientRect(),te=vt=="vert"?document.elementFromPoint(Bt.right-1,(Bt.top+Bt.bottom)/2):document.elementFromPoint((Bt.right+Bt.left)/2,Bt.bottom-1);te!=it?it.style.pointerEvents="none":st.set(1e3,gt)}st.set(1e3,gt)},lr.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Ir=function(){};Ir.prototype.update=function(){return{bottom:0,right:0}},Ir.prototype.setScrollLeft=function(){},Ir.prototype.setScrollTop=function(){},Ir.prototype.clear=function(){};function io(it,st){st||(st=Hi(it));var vt=it.display.barWidth,gt=it.display.barHeight;mr(it,st);for(var Bt=0;Bt<4&&vt!=it.display.barWidth||gt!=it.display.barHeight;Bt++)vt!=it.display.barWidth&&it.options.lineWrapping&&Rt(it),mr(it,Hi(it)),vt=it.display.barWidth,gt=it.display.barHeight}function mr(it,st){var vt=it.display,gt=vt.scrollbars.update(st);vt.sizer.style.paddingRight=(vt.barWidth=gt.right)+"px",vt.sizer.style.paddingBottom=(vt.barHeight=gt.bottom)+"px",vt.heightForcer.style.borderBottom=gt.bottom+"px solid transparent",gt.right&&gt.bottom?(vt.scrollbarFiller.style.display="block",vt.scrollbarFiller.style.height=gt.bottom+"px",vt.scrollbarFiller.style.width=gt.right+"px"):vt.scrollbarFiller.style.display="",gt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(vt.gutterFiller.style.display="block",vt.gutterFiller.style.height=gt.bottom+"px",vt.gutterFiller.style.width=st.gutterWidth+"px"):vt.gutterFiller.style.display=""}var Ti={native:lr,null:Ir};function Br(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ht(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new Ti[it.options.scrollbarStyle](function(st){it.display.wrapper.insertBefore(st,it.display.scrollbarFiller),An(st,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),st.setAttribute("cm-not-content","true")},function(st,vt){vt=="horizontal"?Ai(it,st):gi(it,st)},it),it.display.scrollbars.addClass&&Ge(it.display.wrapper,it.display.scrollbars.addClass)}var Wr=0;function Qn(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:++Wr},Ph(it.curOp)}function $n(it){var st=it.curOp;st&&Zs(st,function(vt){for(var gt=0;gt<vt.ops.length;gt++)vt.ops[gt].cm.curOp=null;Zi(vt)})}function Zi(it){for(var st=it.ops,vt=0;vt<st.length;vt++)ge(st[vt]);for(var gt=0;gt<st.length;gt++)Ce(st[gt]);for(var Bt=0;Bt<st.length;Bt++)Ve(st[Bt]);for(var te=0;te<st.length;te++)en(st[te]);for(var xe=0;xe<st.length;xe++)un(st[xe])}function ge(it){var st=it.cm,vt=st.display;Vn(st),it.updateMaxLine&&ca(st),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<vt.viewFrom||it.scrollToPos.to.line>=vt.viewTo)||vt.maxLineChanged&&st.options.lineWrapping,it.update=it.mustUpdate&&new En(st,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function Ce(it){it.updatedDisplay=it.mustUpdate&&Ei(it.cm,it.update)}function Ve(it){var st=it.cm,vt=st.display;it.updatedDisplay&&Rt(st),it.barMeasure=Hi(st),vt.maxLineChanged&&!st.options.lineWrapping&&(it.adjustWidthTo=hh(st,vt.maxLine,vt.maxLine.text.length).left+3,st.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(vt.scroller.clientWidth,vt.sizer.offsetLeft+it.adjustWidthTo+tu(st)+st.display.barWidth),it.maxScrollLeft=Math.max(0,vt.sizer.offsetLeft+it.adjustWidthTo-Pl(st))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=vt.input.prepareSelection())}function en(it){var st=it.cm;it.adjustWidthTo!=null&&(st.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<st.doc.scrollLeft&&Ai(st,Math.min(st.display.scroller.scrollLeft,it.maxScrollLeft),!0),st.display.maxLineChanged=!1);var vt=it.focus&&it.focus==Vt();it.preparedSelection&&st.display.input.showSelection(it.preparedSelection,vt),(it.updatedDisplay||it.startHeight!=st.doc.height)&&io(st,it.barMeasure),it.updatedDisplay&&Jr(st,it.barMeasure),it.selectionChanged&&vl(st),st.state.focused&&it.updateInput&&st.display.input.reset(it.typing),vt&&Zl(it.cm)}function un(it){var st=it.cm,vt=st.display,gt=st.doc;if(it.updatedDisplay&&Ii(st,it.update),vt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(vt.wheelStartX=vt.wheelStartY=null),it.scrollTop!=null&&Un(st,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Ai(st,it.scrollLeft,!0,!0),it.scrollToPos){var Bt=ye(st,or(gt,it.scrollToPos.from),or(gt,it.scrollToPos.to),it.scrollToPos.margin);pe(st,Bt)}var te=it.maybeHiddenMarkers,xe=it.maybeUnhiddenMarkers;if(te)for(var je=0;je<te.length;++je)te[je].lines.length||Rn(te[je],"hide");if(xe)for(var De=0;De<xe.length;++De)xe[De].lines.length&&Rn(xe[De],"unhide");vt.wrapper.offsetHeight&&(gt.scrollTop=st.display.scroller.scrollTop),it.changeObjs&&Rn(st,"changes",st,it.changeObjs),it.update&&it.update.finish()}function hn(it,st){if(it.curOp)return st();Qn(it);try{return st()}finally{$n(it)}}function Tn(it,st){return function(){if(it.curOp)return st.apply(it,arguments);Qn(it);try{return st.apply(it,arguments)}finally{$n(it)}}}function Xn(it){return function(){if(this.curOp)return it.apply(this,arguments);Qn(this);try{return it.apply(this,arguments)}finally{$n(this)}}}function Te(it){return function(){var st=this.cm;if(!st||st.curOp)return it.apply(this,arguments);Qn(st);try{return it.apply(this,arguments)}finally{$n(st)}}}function ln(it,st){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(st,We(vn,it))}function vn(it){var st=it.doc;if(!(st.highlightFrontier>=it.display.viewTo)){var vt=+new Date+it.options.workTime,gt=cs(it,st.highlightFrontier),Bt=[];st.iter(gt.line,Math.min(st.first+st.size,it.display.viewTo+500),function(te){if(gt.line>=it.display.viewFrom){var xe=te.styles,je=te.text.length>it.options.maxHighlightLength?hi(st.mode,gt.state):null,De=_o(it,te,gt,!0);je&&(gt.state=je),te.styles=De.styles;var an=te.styleClasses,Zn=De.classes;Zn?te.styleClasses=Zn:an&&(te.styleClasses=null);for(var xn=!xe||xe.length!=te.styles.length||an!=Zn&&(!an||!Zn||an.bgClass!=Zn.bgClass||an.textClass!=Zn.textClass),Mi=0;!xn&&Mi<xe.length;++Mi)xn=xe[Mi]!=te.styles[Mi];xn&&Bt.push(gt.line),te.stateAfter=gt.save(),gt.nextLine()}else te.text.length<=it.options.maxHighlightLength&&ri(it,te.text,gt),te.stateAfter=gt.line%5==0?gt.save():null,gt.nextLine();if(+new Date>vt)return ln(it,it.options.workDelay),!0}),st.highlightFrontier=gt.line,st.modeFrontier=Math.max(st.modeFrontier,gt.line),Bt.length&&hn(it,function(){for(var te=0;te<Bt.length;te++)sa(it,Bt[te],"text")})}}var En=function(it,st,vt){var gt=it.display;this.viewport=st,this.visible=Zt(gt,it.doc,st),this.editorIsHidden=!gt.wrapper.offsetWidth,this.wrapperHeight=gt.wrapper.clientHeight,this.wrapperWidth=gt.wrapper.clientWidth,this.oldDisplayWidth=Pl(it),this.force=vt,this.dims=_A(it),this.events=[]};En.prototype.signal=function(it,st){Ji(it,st)&&this.events.push(arguments)},En.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Rn.apply(null,this.events[it])};function Vn(it){var st=it.display;!st.scrollbarsClipped&&st.scroller.offsetWidth&&(st.nativeBarWidth=st.scroller.offsetWidth-st.scroller.clientWidth,st.heightForcer.style.height=tu(it)+"px",st.sizer.style.marginBottom=-st.nativeBarWidth+"px",st.sizer.style.borderRightWidth=tu(it)+"px",st.scrollbarsClipped=!0)}function li(it){if(it.hasFocus())return null;var st=Vt();if(!st||!ze(it.display.lineDiv,st))return null;var vt={activeElt:st};if(window.getSelection){var gt=window.getSelection();gt.anchorNode&&gt.extend&&ze(it.display.lineDiv,gt.anchorNode)&&(vt.anchorNode=gt.anchorNode,vt.anchorOffset=gt.anchorOffset,vt.focusNode=gt.focusNode,vt.focusOffset=gt.focusOffset)}return vt}function oi(it){if(!(!it||!it.activeElt||it.activeElt==Vt())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&ze(document.body,it.anchorNode)&&ze(document.body,it.focusNode))){var st=window.getSelection(),vt=document.createRange();vt.setEnd(it.anchorNode,it.anchorOffset),vt.collapse(!1),st.removeAllRanges(),st.addRange(vt),st.extend(it.focusNode,it.focusOffset)}}function Ei(it,st){var vt=it.display,gt=it.doc;if(st.editorIsHidden)return pu(it),!1;if(!st.force&&st.visible.from>=vt.viewFrom&&st.visible.to<=vt.viewTo&&(vt.updateLineNumbers==null||vt.updateLineNumbers>=vt.viewTo)&&vt.renderedView==vt.view&&Oh(it)==0)return!1;_n(it)&&(pu(it),st.dims=_A(it));var Bt=gt.first+gt.size,te=Math.max(st.visible.from-it.options.viewportMargin,gt.first),xe=Math.min(Bt,st.visible.to+it.options.viewportMargin);vt.viewFrom<te&&te-vt.viewFrom<20&&(te=Math.max(gt.first,vt.viewFrom)),vt.viewTo>xe&&vt.viewTo-xe<20&&(xe=Math.min(Bt,vt.viewTo)),Si&&(te=ao(it.doc,te),xe=mo(it.doc,xe));var je=te!=vt.viewFrom||xe!=vt.viewTo||vt.lastWrapHeight!=st.wrapperHeight||vt.lastWrapWidth!=st.wrapperWidth;xl(it,te,xe),vt.viewOffset=Es(ni(it.doc,vt.viewFrom)),it.display.mover.style.top=vt.viewOffset+"px";var De=Oh(it);if(!je&&De==0&&!st.force&&vt.renderedView==vt.view&&(vt.updateLineNumbers==null||vt.updateLineNumbers>=vt.viewTo))return!1;var an=li(it);return De>4&&(vt.lineDiv.style.display="none"),sr(it,vt.updateLineNumbers,st.dims),De>4&&(vt.lineDiv.style.display=""),vt.renderedView=vt.view,oi(an),ne(vt.cursorDiv),ne(vt.selectionDiv),vt.gutters.style.height=vt.sizer.style.minHeight=0,je&&(vt.lastWrapHeight=st.wrapperHeight,vt.lastWrapWidth=st.wrapperWidth,ln(it,400)),vt.updateLineNumbers=null,!0}function Ii(it,st){for(var vt=st.viewport,gt=!0;;gt=!1){if(!gt||!it.options.lineWrapping||st.oldDisplayWidth==Pl(it)){if(vt&&vt.top!=null&&(vt={top:Math.min(it.doc.height+Ml(it.display)-No(it),vt.top)}),st.visible=Zt(it.display,it.doc,vt),st.visible.from>=it.display.viewFrom&&st.visible.to<=it.display.viewTo)break}else gt&&(st.visible=Zt(it.display,it.doc,vt));if(!Ei(it,st))break;Rt(it);var Bt=Hi(it);Su(it),io(it,Bt),Jr(it,Bt),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 $i(it,st){var vt=new En(it,st);if(Ei(it,vt)){Rt(it),Ii(it,vt);var gt=Hi(it);Su(it),io(it,gt),Jr(it,gt),vt.finish()}}function sr(it,st,vt){var gt=it.display,Bt=it.options.lineNumbers,te=gt.lineDiv,xe=te.firstChild;function je(Mr){var jr=Mr.nextSibling;return It&&lt&&it.display.currentWheelTarget==Mr?Mr.style.display="none":Mr.parentNode.removeChild(Mr),jr}for(var De=gt.view,an=gt.viewFrom,Zn=0;Zn<De.length;Zn++){var xn=De[Zn];if(!xn.hidden)if(!xn.node||xn.node.parentNode!=te){var Mi=su(it,xn,an,vt);te.insertBefore(Mi,xe)}else{for(;xe!=xn.node;)xe=je(xe);var bi=Bt&&st!=null&&st<=an&&xn.lineNumber;xn.changes&&(Se(xn.changes,"gutter")>-1&&(bi=!1),Ol(it,xn,an,vt)),bi&&(ne(xn.lineNumber),xn.lineNumber.appendChild(document.createTextNode(kr(it.options,an)))),xe=xn.node.nextSibling}an+=xn.size}for(;xe;)xe=je(xe)}function Ar(it){var st=it.gutters.offsetWidth;it.sizer.style.marginLeft=st+"px"}function Jr(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+tu(it)+"px"}function Xi(it){var st=it.display,vt=st.view;if(!(!st.alignWidgets&&(!st.gutters.firstChild||!it.options.fixedGutter))){for(var gt=sd(st)-st.scroller.scrollLeft+it.doc.scrollLeft,Bt=st.gutters.offsetWidth,te=gt+"px",xe=0;xe<vt.length;xe++)if(!vt[xe].hidden){it.options.fixedGutter&&(vt[xe].gutter&&(vt[xe].gutter.style.left=te),vt[xe].gutterBackground&&(vt[xe].gutterBackground.style.left=te));var je=vt[xe].alignable;if(je)for(var De=0;De<je.length;De++)je[De].style.left=te}it.options.fixedGutter&&(st.gutters.style.left=gt+Bt+"px")}}function _n(it){if(!it.options.lineNumbers)return!1;var st=it.doc,vt=kr(it.options,st.first+st.size-1),gt=it.display;if(vt.length!=gt.lineNumChars){var Bt=gt.measure.appendChild(de("div",[de("div",vt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),te=Bt.firstChild.offsetWidth,xe=Bt.offsetWidth-te;return gt.lineGutter.style.width="",gt.lineNumInnerWidth=Math.max(te,gt.lineGutter.offsetWidth-xe)+1,gt.lineNumWidth=gt.lineNumInnerWidth+xe,gt.lineNumChars=gt.lineNumInnerWidth?vt.length:-1,gt.lineGutter.style.width=gt.lineNumWidth+"px",Ar(it.display),!0}return!1}function oo(it,st){for(var vt=[],gt=!1,Bt=0;Bt<it.length;Bt++){var te=it[Bt],xe=null;if(typeof te!="string"&&(xe=te.style,te=te.className),te=="CodeMirror-linenumbers")if(st)gt=!0;else continue;vt.push({className:te,style:xe})}return st&&!gt&&vt.push({className:"CodeMirror-linenumbers",style:null}),vt}function lo(it){var st=it.gutters,vt=it.gutterSpecs;ne(st),it.lineGutter=null;for(var gt=0;gt<vt.length;++gt){var Bt=vt[gt],te=Bt.className,xe=Bt.style,je=st.appendChild(de("div",null,"CodeMirror-gutter "+te));xe&&(je.style.cssText=xe),te=="CodeMirror-linenumbers"&&(it.lineGutter=je,je.style.width=(it.lineNumWidth||1)+"px")}st.style.display=vt.length?"":"none",Ar(it)}function ir(it){lo(it.display),bl(it),Xi(it)}function yr(it,st,vt,gt){var Bt=this;this.input=vt,Bt.scrollbarFiller=de("div",null,"CodeMirror-scrollbar-filler"),Bt.scrollbarFiller.setAttribute("cm-not-content","true"),Bt.gutterFiller=de("div",null,"CodeMirror-gutter-filler"),Bt.gutterFiller.setAttribute("cm-not-content","true"),Bt.lineDiv=be("div",null,"CodeMirror-code"),Bt.selectionDiv=de("div",null,null,"position: relative; z-index: 1"),Bt.cursorDiv=de("div",null,"CodeMirror-cursors"),Bt.measure=de("div",null,"CodeMirror-measure"),Bt.lineMeasure=de("div",null,"CodeMirror-measure"),Bt.lineSpace=be("div",[Bt.measure,Bt.lineMeasure,Bt.selectionDiv,Bt.cursorDiv,Bt.lineDiv],null,"position: relative; outline: none");var te=be("div",[Bt.lineSpace],"CodeMirror-lines");Bt.mover=de("div",[te],null,"position: relative"),Bt.sizer=de("div",[Bt.mover],"CodeMirror-sizer"),Bt.sizerWidth=null,Bt.heightForcer=de("div",null,null,"position: absolute; height: "+Bn+"px; width: 1px;"),Bt.gutters=de("div",null,"CodeMirror-gutters"),Bt.lineGutter=null,Bt.scroller=de("div",[Bt.sizer,Bt.heightForcer,Bt.gutters],"CodeMirror-scroll"),Bt.scroller.setAttribute("tabIndex","-1"),Bt.wrapper=de("div",[Bt.scrollbarFiller,Bt.gutterFiller,Bt.scroller],"CodeMirror"),ee&&Yt<8&&(Bt.gutters.style.zIndex=-1,Bt.scroller.style.paddingRight=0),!It&&!(Ft&&tt)&&(Bt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(Bt.wrapper):it(Bt.wrapper)),Bt.viewFrom=Bt.viewTo=st.first,Bt.reportedViewFrom=Bt.reportedViewTo=st.first,Bt.view=[],Bt.renderedView=null,Bt.externalMeasured=null,Bt.viewOffset=0,Bt.lastWrapHeight=Bt.lastWrapWidth=0,Bt.updateLineNumbers=null,Bt.nativeBarWidth=Bt.barHeight=Bt.barWidth=0,Bt.scrollbarsClipped=!1,Bt.lineNumWidth=Bt.lineNumInnerWidth=Bt.lineNumChars=null,Bt.alignWidgets=!1,Bt.cachedCharWidth=Bt.cachedTextHeight=Bt.cachedPaddingH=null,Bt.maxLine=null,Bt.maxLineLength=0,Bt.maxLineChanged=!1,Bt.wheelDX=Bt.wheelDY=Bt.wheelStartX=Bt.wheelStartY=null,Bt.shift=!1,Bt.selForContextMenu=null,Bt.activeTouch=null,Bt.gutterSpecs=oo(gt.gutters,gt.lineNumbers),lo(Bt),vt.init(Bt)}var fr=0,nr=null;ee?nr=-.53:Ft?nr=15:Xt?nr=-.7:oe&&(nr=-1/3);function Or(it){var st=it.wheelDeltaX,vt=it.wheelDeltaY;return st==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(st=it.detail),vt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?vt=it.detail:vt==null&&(vt=it.wheelDelta),{x:st,y:vt}}function uo(it){var st=Or(it);return st.x*=nr,st.y*=nr,st}function So(it,st){var vt=Or(st),gt=vt.x,Bt=vt.y,te=it.display,xe=te.scroller,je=xe.scrollWidth>xe.clientWidth,De=xe.scrollHeight>xe.clientHeight;if(gt&&je||Bt&&De){if(Bt&&lt&&It){t:for(var an=st.target,Zn=te.view;an!=xe;an=an.parentNode)for(var xn=0;xn<Zn.length;xn++)if(Zn[xn].node==an){it.display.currentWheelTarget=an;break t}}if(gt&&!Ft&&!Pt&&nr!=null){Bt&&De&&gi(it,Math.max(0,xe.scrollTop+Bt*nr)),Ai(it,Math.max(0,xe.scrollLeft+gt*nr)),(!Bt||Bt&&De)&&Nr(st),te.wheelStartX=null;return}if(Bt&&nr!=null){var Mi=Bt*nr,bi=it.doc.scrollTop,Mr=bi+te.wrapper.clientHeight;Mi<0?bi=Math.max(0,bi+Mi-50):Mr=Math.min(it.doc.height,Mr+Mi+50),$i(it,{top:bi,bottom:Mr})}fr<20&&(te.wheelStartX==null?(te.wheelStartX=xe.scrollLeft,te.wheelStartY=xe.scrollTop,te.wheelDX=gt,te.wheelDY=Bt,setTimeout(function(){if(te.wheelStartX!=null){var jr=xe.scrollLeft-te.wheelStartX,qr=xe.scrollTop-te.wheelStartY,Co=qr&&te.wheelDY&&qr/te.wheelDY||jr&&te.wheelDX&&jr/te.wheelDX;te.wheelStartX=te.wheelStartY=null,Co&&(nr=(nr*fr+Co)/(fr+1),++fr)}},200)):(te.wheelDX+=gt,te.wheelDY+=Bt))}}var Fo=function(it,st){this.ranges=it,this.primIndex=st};Fo.prototype.primary=function(){return this.ranges[this.primIndex]},Fo.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 vt=this.ranges[st],gt=it.ranges[st];if(!dr(vt.anchor,gt.anchor)||!dr(vt.head,gt.head))return!1}return!0},Fo.prototype.deepCopy=function(){for(var it=[],st=0;st<this.ranges.length;st++)it[st]=new zr(pi(this.ranges[st].anchor),pi(this.ranges[st].head));return new Fo(it,this.primIndex)},Fo.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},Fo.prototype.contains=function(it,st){st||(st=it);for(var vt=0;vt<this.ranges.length;vt++){var gt=this.ranges[vt];if(wi(st,gt.from())>=0&&wi(it,gt.to())<=0)return vt}return-1};var zr=function(it,st){this.anchor=it,this.head=st};zr.prototype.from=function(){return vi(this.anchor,this.head)},zr.prototype.to=function(){return yi(this.anchor,this.head)},zr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Vo(it,st,vt){var gt=it&&it.options.selectionsMayTouch,Bt=st[vt];st.sort(function(Mi,bi){return wi(Mi.from(),bi.from())}),vt=Se(st,Bt);for(var te=1;te<st.length;te++){var xe=st[te],je=st[te-1],De=wi(je.to(),xe.from());if(gt&&!xe.empty()?De>0:De>=0){var an=vi(je.from(),xe.from()),Zn=yi(je.to(),xe.to()),xn=je.empty()?xe.from()==xe.head:je.from()==je.head;te<=vt&&--vt,st.splice(--te,2,new zr(xn?Zn:an,xn?an:Zn))}}return new Fo(st,vt)}function Mo(it,st){return new Fo([new zr(it,st||it)],0)}function hs(it){return it.text?ii(it.from.line+it.text.length-1,nn(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function ho(it,st){if(wi(it,st.from)<0)return it;if(wi(it,st.to)<=0)return hs(st);var vt=it.line+st.text.length-(st.to.line-st.from.line)-1,gt=it.ch;return it.line==st.to.line&&(gt+=hs(st).ch-st.to.ch),ii(vt,gt)}function Pa(it,st){for(var vt=[],gt=0;gt<it.sel.ranges.length;gt++){var Bt=it.sel.ranges[gt];vt.push(new zr(ho(Bt.anchor,st),ho(Bt.head,st)))}return Vo(it.cm,vt,it.sel.primIndex)}function Os(it,st,vt){return it.line==st.line?ii(vt.line,it.ch-st.ch+vt.ch):ii(vt.line+(it.line-st.line),it.ch)}function Ps(it,st,vt){for(var gt=[],Bt=ii(it.first,0),te=Bt,xe=0;xe<st.length;xe++){var je=st[xe],De=Os(je.from,Bt,te),an=Os(hs(je),Bt,te);if(Bt=je.to,te=an,vt=="around"){var Zn=it.sel.ranges[xe],xn=wi(Zn.head,Zn.anchor)<0;gt[xe]=new zr(xn?an:De,xn?De:an)}else gt[xe]=new zr(De,De)}return new Fo(gt,it.sel.primIndex)}function Io(it){it.doc.mode=kn(it.options,it.doc.modeOption),Fs(it)}function Fs(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,ln(it,100),it.state.modeGen++,it.curOp&&bl(it)}function $a(it,st){return st.from.ch==0&&st.to.ch==0&&nn(st.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function js(it,st,vt,gt){function Bt($o){return vt?vt[$o]:null}function te($o,Oo,ss){Vs($o,Oo,ss,gt),Hr($o,"change",$o,st)}function xe($o,Oo){for(var ss=[],Ds=$o;Ds<Oo;++Ds)ss.push(new Qo(an[Ds],Bt(Ds),gt));return ss}var je=st.from,De=st.to,an=st.text,Zn=ni(it,je.line),xn=ni(it,De.line),Mi=nn(an),bi=Bt(an.length-1),Mr=De.line-je.line;if(st.full)it.insert(0,xe(0,an.length)),it.remove(an.length,it.size-an.length);else if($a(it,st)){var jr=xe(0,an.length-1);te(xn,xn.text,bi),Mr&&it.remove(je.line,Mr),jr.length&&it.insert(je.line,jr)}else if(Zn==xn)if(an.length==1)te(Zn,Zn.text.slice(0,je.ch)+Mi+Zn.text.slice(De.ch),bi);else{var qr=xe(1,an.length-1);qr.push(new Qo(Mi+Zn.text.slice(De.ch),bi,gt)),te(Zn,Zn.text.slice(0,je.ch)+an[0],Bt(0)),it.insert(je.line+1,qr)}else if(an.length==1)te(Zn,Zn.text.slice(0,je.ch)+an[0]+xn.text.slice(De.ch),Bt(0)),it.remove(je.line+1,Mr);else{te(Zn,Zn.text.slice(0,je.ch)+an[0],Bt(0)),te(xn,Mi+xn.text.slice(De.ch),bi);var Co=xe(1,an.length-1);Mr>1&&it.remove(je.line+1,Mr-1),it.insert(je.line+1,Co)}Hr(it,"change",it,st)}function jl(it,st,vt){function gt(Bt,te,xe){if(Bt.linked)for(var je=0;je<Bt.linked.length;++je){var De=Bt.linked[je];if(De.doc!=te){var an=xe&&De.sharedHist;vt&&!an||(st(De.doc,an),gt(De.doc,Bt,an))}}}gt(it,null,!0)}function Po(it,st){if(st.cm)throw new Error("This document is already in use.");it.doc=st,st.cm=it,gs(it),Io(it),as(it),it.options.lineWrapping||ca(it),it.options.mode=st.modeOption,bl(it)}function as(it){(it.doc.direction=="rtl"?Ge:Ht)(it.display.lineDiv,"CodeMirror-rtl")}function ds(it){hn(it,function(){as(it),bl(it)})}function ko(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 Jo(it,st){var vt={from:pi(st.from),to:hs(st),text:Ci(it,st.from,st.to)};return eu(it,vt,st.from.line,st.to.line+1),jl(it,function(gt){return eu(gt,vt,st.from.line,st.to.line+1)},!0),vt}function bo(it){for(;it.length;){var st=nn(it);if(st.ranges)it.pop();else break}}function Ls(it,st){if(st)return bo(it.done),nn(it.done);if(it.done.length&&!nn(it.done).ranges)return nn(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),nn(it.done)}function _s(it,st,vt,gt){var Bt=it.history;Bt.undone.length=0;var te=+new Date,xe,je;if((Bt.lastOp==gt||Bt.lastOrigin==st.origin&&st.origin&&(st.origin.charAt(0)=="+"&&Bt.lastModTime>te-(it.cm?it.cm.options.historyEventDelay:500)||st.origin.charAt(0)=="*"))&&(xe=Ls(Bt,Bt.lastOp==gt)))je=nn(xe.changes),wi(st.from,st.to)==0&&wi(st.from,je.to)==0?je.to=hs(st):xe.changes.push(Jo(it,st));else{var De=nn(Bt.done);for((!De||!De.ranges)&&As(it.sel,Bt.done),xe={changes:[Jo(it,st)],generation:Bt.generation},Bt.done.push(xe);Bt.done.length>Bt.undoDepth;)Bt.done.shift(),Bt.done[0].ranges||Bt.done.shift()}Bt.done.push(vt),Bt.generation=++Bt.maxGeneration,Bt.lastModTime=Bt.lastSelTime=te,Bt.lastOp=Bt.lastSelOp=gt,Bt.lastOrigin=Bt.lastSelOrigin=st.origin,je||Rn(it,"historyAdded")}function ea(it,st,vt,gt){var Bt=st.charAt(0);return Bt=="*"||Bt=="+"&&vt.ranges.length==gt.ranges.length&&vt.somethingSelected()==gt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Yl(it,st,vt,gt){var Bt=it.history,te=gt&&gt.origin;vt==Bt.lastSelOp||te&&Bt.lastSelOrigin==te&&(Bt.lastModTime==Bt.lastSelTime&&Bt.lastOrigin==te||ea(it,te,nn(Bt.done),st))?Bt.done[Bt.done.length-1]=st:As(st,Bt.done),Bt.lastSelTime=+new Date,Bt.lastSelOrigin=te,Bt.lastSelOp=vt,gt&&gt.clearRedo!==!1&&bo(Bt.undone)}function As(it,st){var vt=nn(st);vt&&vt.ranges&&vt.equals(it)||st.push(it)}function eu(it,st,vt,gt){var Bt=st["spans_"+it.id],te=0;it.iter(Math.max(it.first,vt),Math.min(it.first+it.size,gt),function(xe){xe.markedSpans&&((Bt||(Bt=st["spans_"+it.id]={}))[te]=xe.markedSpans),++te})}function fa(it){if(!it)return null;for(var st,vt=0;vt<it.length;++vt)it[vt].marker.explicitlyCleared?st||(st=it.slice(0,vt)):st&&st.push(it[vt]);return st?st.length?st:null:it}function yl(it,st){var vt=st["spans_"+it.id];if(!vt)return null;for(var gt=[],Bt=0;Bt<st.text.length;++Bt)gt.push(fa(vt[Bt]));return gt}function po(it,st){var vt=yl(it,st),gt=To(it,st);if(!vt)return gt;if(!gt)return vt;for(var Bt=0;Bt<vt.length;++Bt){var te=vt[Bt],xe=gt[Bt];if(te&&xe)t:for(var je=0;je<xe.length;++je){for(var De=xe[je],an=0;an<te.length;++an)if(te[an].marker==De.marker)continue t;te.push(De)}else xe&&(vt[Bt]=xe)}return vt}function Ra(it,st,vt){for(var gt=[],Bt=0;Bt<it.length;++Bt){var te=it[Bt];if(te.ranges){gt.push(vt?Fo.prototype.deepCopy.call(te):te);continue}var xe=te.changes,je=[];gt.push({changes:je});for(var De=0;De<xe.length;++De){var an=xe[De],Zn=void 0;if(je.push({from:an.from,to:an.to,text:an.text}),st)for(var xn in an)(Zn=xn.match(/^spans_(\d+)$/))&&Se(st,Number(Zn[1]))>-1&&(nn(je)[xn]=an[xn],delete an[xn])}}return gt}function Nu(it,st,vt,gt){if(gt){var Bt=it.anchor;if(vt){var te=wi(st,Bt)<0;te!=wi(vt,Bt)<0?(Bt=st,st=vt):te!=wi(st,vt)<0&&(st=vt)}return new zr(Bt,st)}else return new zr(vt||st,st)}function wa(it,st,vt,gt,Bt){Bt==null&&(Bt=it.cm&&(it.cm.display.shift||it.extend)),Ia(it,new Fo([Nu(it.sel.primary(),st,vt,Bt)],0),gt)}function na(it,st,vt){for(var gt=[],Bt=it.cm&&(it.cm.display.shift||it.extend),te=0;te<it.sel.ranges.length;te++)gt[te]=Nu(it.sel.ranges[te],st[te],null,Bt);var xe=Vo(it.cm,gt,it.sel.primIndex);Ia(it,xe,vt)}function Na(it,st,vt,gt){var Bt=it.sel.ranges.slice(0);Bt[st]=vt,Ia(it,Vo(it.cm,Bt,it.sel.primIndex),gt)}function Xa(it,st,vt,gt){Ia(it,Mo(st,vt),gt)}function ul(it,st,vt){var gt={ranges:st.ranges,update:function(Bt){this.ranges=[];for(var te=0;te<Bt.length;te++)this.ranges[te]=new zr(or(it,Bt[te].anchor),or(it,Bt[te].head))},origin:vt&&vt.origin};return Rn(it,"beforeSelectionChange",it,gt),it.cm&&Rn(it.cm,"beforeSelectionChange",it.cm,gt),gt.ranges!=st.ranges?Vo(it.cm,gt.ranges,gt.ranges.length-1):st}function Qs(it,st,vt){var gt=it.history.done,Bt=nn(gt);Bt&&Bt.ranges?(gt[gt.length-1]=st,Nl(it,st,vt)):Ia(it,st,vt)}function Ia(it,st,vt){Nl(it,st,vt),Yl(it,it.sel,it.cm?it.cm.curOp.id:NaN,vt)}function Nl(it,st,vt){(Ji(it,"beforeSelectionChange")||it.cm&&Ji(it.cm,"beforeSelectionChange"))&&(st=ul(it,st,vt));var gt=vt&&vt.bias||(wi(st.primary().head,it.sel.primary().head)<0?-1:1);Iu(it,Tu(it,st,gt,!0)),!(vt&&vt.scroll===!1)&&it.cm&&gn(it.cm)}function Iu(it,st){st.equals(it.sel)||(it.sel=st,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,cr(it.cm)),Hr(it,"cursorActivity",it))}function mu(it){Iu(it,Tu(it,it.sel,null,!1))}function Tu(it,st,vt,gt){for(var Bt,te=0;te<st.ranges.length;te++){var xe=st.ranges[te],je=st.ranges.length==it.sel.ranges.length&&it.sel.ranges[te],De=oh(it,xe.anchor,je&&je.anchor,vt,gt),an=oh(it,xe.head,je&&je.head,vt,gt);(Bt||De!=xe.anchor||an!=xe.head)&&(Bt||(Bt=st.ranges.slice(0,te)),Bt[te]=new zr(De,an))}return Bt?Vo(it.cm,Bt,st.primIndex):st}function Gu(it,st,vt,gt,Bt){var te=ni(it,st.line);if(te.markedSpans)for(var xe=0;xe<te.markedSpans.length;++xe){var je=te.markedSpans[xe],De=je.marker,an="selectLeft"in De?!De.selectLeft:De.inclusiveLeft,Zn="selectRight"in De?!De.selectRight:De.inclusiveRight;if((je.from==null||(an?je.from<=st.ch:je.from<st.ch))&&(je.to==null||(Zn?je.to>=st.ch:je.to>st.ch))){if(Bt&&(Rn(De,"beforeCursorEnter"),De.explicitlyCleared))if(te.markedSpans){--xe;continue}else break;if(!De.atomic)continue;if(vt){var xn=De.find(gt<0?1:-1),Mi=void 0;if((gt<0?Zn:an)&&(xn=sh(it,xn,-gt,xn&&xn.line==st.line?te:null)),xn&&xn.line==st.line&&(Mi=wi(xn,vt))&&(gt<0?Mi<0:Mi>0))return Gu(it,xn,st,gt,Bt)}var bi=De.find(gt<0?-1:1);return(gt<0?an:Zn)&&(bi=sh(it,bi,gt,bi.line==st.line?te:null)),bi?Gu(it,bi,st,gt,Bt):null}}return st}function oh(it,st,vt,gt,Bt){var te=gt||1,xe=Gu(it,st,vt,te,Bt)||!Bt&&Gu(it,st,vt,te,!0)||Gu(it,st,vt,-te,Bt)||!Bt&&Gu(it,st,vt,-te,!0);return xe||(it.cantEdit=!0,ii(it.first,0))}function sh(it,st,vt,gt){return vt<0&&st.ch==0?st.line>it.first?or(it,ii(st.line-1)):null:vt>0&&st.ch==(gt||ni(it,st.line)).text.length?st.line<it.first+it.size-1?ii(st.line+1,0):null:new ii(st.line,st.ch+vt)}function Va(it){it.setSelection(ii(it.firstLine(),0),ii(it.lastLine()),Ye)}function Cu(it,st,vt){var gt={canceled:!1,from:st.from,to:st.to,text:st.text,origin:st.origin,cancel:function(){return gt.canceled=!0}};return vt&&(gt.update=function(Bt,te,xe,je){Bt&&(gt.from=or(it,Bt)),te&&(gt.to=or(it,te)),xe&&(gt.text=xe),je!==void 0&&(gt.origin=je)}),Rn(it,"beforeChange",it,gt),it.cm&&Rn(it.cm,"beforeChange",it.cm,gt),gt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:gt.from,to:gt.to,text:gt.text,origin:gt.origin}}function Sl(it,st,vt){if(it.cm){if(!it.cm.curOp)return Tn(it.cm,Sl)(it,st,vt);if(it.cm.state.suppressEdits)return}if(!((Ji(it,"beforeChange")||it.cm&&Ji(it.cm,"beforeChange"))&&(st=Cu(it,st,!0),!st))){var gt=_r&&!vt&&rs(it,st.from,st.to);if(gt)for(var Bt=gt.length-1;Bt>=0;--Bt)dl(it,{from:gt[Bt].from,to:gt[Bt].to,text:Bt?[""]:st.text,origin:st.origin});else dl(it,st)}}function dl(it,st){if(!(st.text.length==1&&st.text[0]==""&&wi(st.from,st.to)==0)){var vt=Pa(it,st);_s(it,st,vt,it.cm?it.cm.curOp.id:NaN),bh(it,st,vt,To(it,st));var gt=[];jl(it,function(Bt,te){!te&&Se(gt,Bt.history)==-1&&(ra(Bt.history,st),gt.push(Bt.history)),bh(Bt,st,null,To(Bt,st))})}}function ph(it,st,vt){var gt=it.cm&&it.cm.state.suppressEdits;if(!(gt&&!vt)){for(var Bt=it.history,te,xe=it.sel,je=st=="undo"?Bt.done:Bt.undone,De=st=="undo"?Bt.undone:Bt.done,an=0;an<je.length&&(te=je[an],!(vt?te.ranges&&!te.equals(it.sel):!te.ranges));an++);if(an!=je.length){for(Bt.lastOrigin=Bt.lastSelOrigin=null;;)if(te=je.pop(),te.ranges){if(As(te,De),vt&&!te.equals(it.sel)){Ia(it,te,{clearRedo:!1});return}xe=te}else if(gt){je.push(te);return}else break;var Zn=[];As(xe,De),De.push({changes:Zn,generation:Bt.generation}),Bt.generation=te.generation||++Bt.maxGeneration;for(var xn=Ji(it,"beforeChange")||it.cm&&Ji(it.cm,"beforeChange"),Mi=function(jr){var qr=te.changes[jr];if(qr.origin=st,xn&&!Cu(it,qr,!1))return je.length=0,{};Zn.push(Jo(it,qr));var Co=jr?Pa(it,qr):nn(je);bh(it,qr,Co,po(it,qr)),!jr&&it.cm&&it.cm.scrollIntoView({from:qr.from,to:hs(qr)});var $o=[];jl(it,function(Oo,ss){!ss&&Se($o,Oo.history)==-1&&(ra(Oo.history,qr),$o.push(Oo.history)),bh(Oo,qr,null,po(Oo,qr))})},bi=te.changes.length-1;bi>=0;--bi){var Mr=Mi(bi);if(Mr)return Mr.v}}}}function ec(it,st){if(st!=0&&(it.first+=st,it.sel=new Fo(Fi(it.sel.ranges,function(Bt){return new zr(ii(Bt.anchor.line+st,Bt.anchor.ch),ii(Bt.head.line+st,Bt.head.ch))}),it.sel.primIndex),it.cm)){bl(it.cm,it.first,it.first-st,st);for(var vt=it.cm.display,gt=vt.viewFrom;gt<vt.viewTo;gt++)sa(it.cm,gt,"gutter")}}function bh(it,st,vt,gt){if(it.cm&&!it.cm.curOp)return Tn(it.cm,bh)(it,st,vt,gt);if(st.to.line<it.first){ec(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 Bt=st.text.length-1-(it.first-st.from.line);ec(it,Bt),st={from:ii(it.first,0),to:ii(st.to.line+Bt,st.to.ch),text:[nn(st.text)],origin:st.origin}}var te=it.lastLine();st.to.line>te&&(st={from:st.from,to:ii(te,ni(it,te).text.length),text:[st.text[0]],origin:st.origin}),st.removed=Ci(it,st.from,st.to),vt||(vt=Pa(it,st)),it.cm?Dh(it.cm,st,gt):js(it,st,gt),Nl(it,vt,Ye),it.cantEdit&&oh(it,ii(it.firstLine(),0))&&(it.cantEdit=!1)}}function Dh(it,st,vt){var gt=it.doc,Bt=it.display,te=st.from,xe=st.to,je=!1,De=te.line;it.options.lineWrapping||(De=on(Lo(ni(gt,te.line))),gt.iter(De,xe.line+1,function(bi){if(bi==Bt.maxLine)return je=!0,!0})),gt.sel.contains(st.from,st.to)>-1&&cr(it),js(gt,st,vt,il(it)),it.options.lineWrapping||(gt.iter(De,te.line+st.text.length,function(bi){var Mr=la(bi);Mr>Bt.maxLineLength&&(Bt.maxLine=bi,Bt.maxLineLength=Mr,Bt.maxLineChanged=!0,je=!1)}),je&&(it.curOp.updateMaxLine=!0)),xo(gt,te.line),ln(it,400);var an=st.text.length-(xe.line-te.line)-1;st.full?bl(it):te.line==xe.line&&st.text.length==1&&!$a(it.doc,st)?sa(it,te.line,"text"):bl(it,te.line,xe.line+1,an);var Zn=Ji(it,"changes"),xn=Ji(it,"change");if(xn||Zn){var Mi={from:te,to:xe,text:st.text,removed:st.removed,origin:st.origin};xn&&Hr(it,"change",it,Mi),Zn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Mi)}it.display.selForContextMenu=null}function fc(it,st,vt,gt,Bt){var te;gt||(gt=vt),wi(gt,vt)<0&&(te=[gt,vt],vt=te[0],gt=te[1]),typeof st=="string"&&(st=it.splitLines(st)),Sl(it,{from:vt,to:gt,text:st,origin:Bt})}function Wu(it,st,vt,gt){vt<it.line?it.line+=gt:st<it.line&&(it.line=st,it.ch=0)}function Ta(it,st,vt,gt){for(var Bt=0;Bt<it.length;++Bt){var te=it[Bt],xe=!0;if(te.ranges){te.copied||(te=it[Bt]=te.deepCopy(),te.copied=!0);for(var je=0;je<te.ranges.length;je++)Wu(te.ranges[je].anchor,st,vt,gt),Wu(te.ranges[je].head,st,vt,gt);continue}for(var De=0;De<te.changes.length;++De){var an=te.changes[De];if(vt<an.from.line)an.from=ii(an.from.line+gt,an.from.ch),an.to=ii(an.to.line+gt,an.to.ch);else if(st<=an.to.line){xe=!1;break}}xe||(it.splice(0,Bt+1),Bt=0)}}function ra(it,st){var vt=st.from.line,gt=st.to.line,Bt=st.text.length-(gt-vt)-1;Ta(it.done,vt,gt,Bt),Ta(it.undone,vt,gt,Bt)}function uu(it,st,vt,gt){var Bt=st,te=st;return typeof st=="number"?te=ni(it,er(it,st)):Bt=on(st),Bt==null?null:(gt(te,Bt)&&it.cm&&sa(it.cm,Bt,vt),te)}function wl(it){this.lines=it,this.parent=null;for(var st=0,vt=0;vt<it.length;++vt)it[vt].parent=this,st+=it[vt].height;this.height=st}wl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,st){for(var vt=it,gt=it+st;vt<gt;++vt){var Bt=this.lines[vt];this.height-=Bt.height,Ka(Bt),Hr(Bt,"delete")}this.lines.splice(it,st)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,st,vt){this.height+=vt,this.lines=this.lines.slice(0,it).concat(st).concat(this.lines.slice(it));for(var gt=0;gt<st.length;++gt)st[gt].parent=this},iterN:function(it,st,vt){for(var gt=it+st;it<gt;++it)if(vt(this.lines[it]))return!0}};function ga(it){this.children=it;for(var st=0,vt=0,gt=0;gt<it.length;++gt){var Bt=it[gt];st+=Bt.chunkSize(),vt+=Bt.height,Bt.parent=this}this.size=st,this.height=vt,this.parent=null}ga.prototype={chunkSize:function(){return this.size},removeInner:function(it,st){this.size-=st;for(var vt=0;vt<this.children.length;++vt){var gt=this.children[vt],Bt=gt.chunkSize();if(it<Bt){var te=Math.min(st,Bt-it),xe=gt.height;if(gt.removeInner(it,te),this.height-=xe-gt.height,Bt==te&&(this.children.splice(vt--,1),gt.parent=null),(st-=te)==0)break;it=0}else it-=Bt}if(this.size-st<25&&(this.children.length>1||!(this.children[0]instanceof wl))){var je=[];this.collapse(je),this.children=[new wl(je)],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,vt){this.size+=st.length,this.height+=vt;for(var gt=0;gt<this.children.length;++gt){var Bt=this.children[gt],te=Bt.chunkSize();if(it<=te){if(Bt.insertInner(it,st,vt),Bt.lines&&Bt.lines.length>50){for(var xe=Bt.lines.length%25+25,je=xe;je<Bt.lines.length;){var De=new wl(Bt.lines.slice(je,je+=25));Bt.height-=De.height,this.children.splice(++gt,0,De),De.parent=this}Bt.lines=Bt.lines.slice(0,xe),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),vt=new ga(st);if(it.parent){it.size-=vt.size,it.height-=vt.height;var Bt=Se(it.parent.children,it);it.parent.children.splice(Bt+1,0,vt)}else{var gt=new ga(it.children);gt.parent=it,it.children=[gt,vt],it=gt}vt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,st,vt){for(var gt=0;gt<this.children.length;++gt){var Bt=this.children[gt],te=Bt.chunkSize();if(it<te){var xe=Math.min(st,te-it);if(Bt.iterN(it,xe,vt))return!0;if((st-=xe)==0)break;it=0}else it-=te}}};var hu=function(it,st,vt){if(vt)for(var gt in vt)vt.hasOwnProperty(gt)&&(this[gt]=vt[gt]);this.doc=it,this.node=st};hu.prototype.clear=function(){var it=this.doc.cm,st=this.line.widgets,vt=this.line,gt=on(vt);if(!(gt==null||!st)){for(var Bt=0;Bt<st.length;++Bt)st[Bt]==this&&st.splice(Bt--,1);st.length||(vt.widgets=null);var te=Cs(this);qi(vt,Math.max(0,vt.height-te)),it&&(hn(it,function(){Ru(it,vt,-te),sa(it,gt,"widget")}),Hr(it,"lineWidgetCleared",it,this,gt))}},hu.prototype.changed=function(){var it=this,st=this.height,vt=this.doc.cm,gt=this.line;this.height=null;var Bt=Cs(this)-st;Bt&&(zi(this.doc,gt)||qi(gt,gt.height+Bt),vt&&hn(vt,function(){vt.curOp.forceUpdate=!0,Ru(vt,gt,Bt),Hr(vt,"lineWidgetChanged",vt,it,on(gt))}))},Sr(hu);function Ru(it,st,vt){Es(st)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&pn(it,vt)}function ku(it,st,vt,gt){var Bt=new hu(it,vt,gt),te=it.cm;return te&&Bt.noHScroll&&(te.display.alignWidgets=!0),uu(it,st,"widget",function(xe){var je=xe.widgets||(xe.widgets=[]);if(Bt.insertAt==null?je.push(Bt):je.splice(Math.min(je.length-1,Math.max(0,Bt.insertAt)),0,Bt),Bt.line=xe,te&&!zi(it,xe)){var De=Es(xe)<it.scrollTop;qi(xe,xe.height+Cs(Bt)),De&&pn(te,Bt.height),te.curOp.forceUpdate=!0}return!0}),te&&Hr(te,"lineWidgetAdded",te,Bt,typeof st=="number"?st:on(st)),Bt}var Yc=0,jn=function(it,st){this.lines=[],this.type=st,this.doc=it,this.id=++Yc};jn.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,st=it&&!it.curOp;if(st&&Qn(it),Ji(this,"clear")){var vt=this.find();vt&&Hr(this,"clear",vt.from,vt.to)}for(var gt=null,Bt=null,te=0;te<this.lines.length;++te){var xe=this.lines[te],je=qs(xe.markedSpans,this);it&&!this.collapsed?sa(it,on(xe),"text"):it&&(je.to!=null&&(Bt=on(xe)),je.from!=null&&(gt=on(xe))),xe.markedSpans=fs(xe.markedSpans,je),je.from==null&&this.collapsed&&!zi(this.doc,xe)&&it&&qi(xe,Uu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var De=0;De<this.lines.length;++De){var an=Lo(this.lines[De]),Zn=la(an);Zn>it.display.maxLineLength&&(it.display.maxLine=an,it.display.maxLineLength=Zn,it.display.maxLineChanged=!0)}gt!=null&&it&&this.collapsed&&bl(it,gt,Bt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&mu(it.doc)),it&&Hr(it,"markerCleared",it,this,gt,Bt),st&&$n(it),this.parent&&this.parent.clear()}},jn.prototype.find=function(it,st){it==null&&this.type=="bookmark"&&(it=1);for(var vt,gt,Bt=0;Bt<this.lines.length;++Bt){var te=this.lines[Bt],xe=qs(te.markedSpans,this);if(xe.from!=null&&(vt=ii(st?te:on(te),xe.from),it==-1))return vt;if(xe.to!=null&&(gt=ii(st?te:on(te),xe.to),it==1))return gt}return vt&&{from:vt,to:gt}},jn.prototype.changed=function(){var it=this,st=this.find(-1,!0),vt=this,gt=this.doc.cm;!st||!gt||hn(gt,function(){var Bt=st.line,te=on(st.line),xe=dh(gt,te);if(xe&&(Mu(xe),gt.curOp.selectionChanged=gt.curOp.forceUpdate=!0),gt.curOp.updateMaxLine=!0,!zi(vt.doc,Bt)&&vt.height!=null){var je=vt.height;vt.height=null;var De=Cs(vt)-je;De&&qi(Bt,Bt.height+De)}Hr(gt,"markerChanged",gt,it)})},jn.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(!st.maybeHiddenMarkers||Se(st.maybeHiddenMarkers,this)==-1)&&(st.maybeUnhiddenMarkers||(st.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},jn.prototype.detachLine=function(it){if(this.lines.splice(Se(this.lines,it),1),!this.lines.length&&this.doc.cm){var st=this.doc.cm.curOp;(st.maybeHiddenMarkers||(st.maybeHiddenMarkers=[])).push(this)}},Sr(jn);function nc(it,st,vt,gt,Bt){if(gt&&gt.shared)return EA(it,st,vt,gt,Bt);if(it.cm&&!it.cm.curOp)return Tn(it.cm,nc)(it,st,vt,gt,Bt);var te=new jn(it,Bt),xe=wi(st,vt);if(gt&&Re(gt,te,!1),xe>0||xe==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=be("span",[te.replacedWith],"CodeMirror-widget"),gt.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),gt.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if(Xo(it,st.line,st,vt,te)||st.line!=vt.line&&Xo(it,vt.line,st,vt,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pi()}te.addToHistory&&_s(it,{from:st,to:vt,origin:"markText"},it.sel,NaN);var je=st.line,De=it.cm,an;if(it.iter(je,vt.line+1,function(xn){De&&te.collapsed&&!De.options.lineWrapping&&Lo(xn)==De.display.maxLine&&(an=!0),te.collapsed&&je!=st.line&&qi(xn,0),Hs(xn,new ns(te,je==st.line?st.ch:null,je==vt.line?vt.ch:null)),++je}),te.collapsed&&it.iter(st.line,vt.line+1,function(xn){zi(it,xn)&&qi(xn,0)}),te.clearOnEnter&&An(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&(Ho(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),te.collapsed&&(te.id=++Yc,te.atomic=!0),De){if(an&&(De.curOp.updateMaxLine=!0),te.collapsed)bl(De,st.line,vt.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var Zn=st.line;Zn<=vt.line;Zn++)sa(De,Zn,"text");te.atomic&&mu(De.doc),Hr(De,"markerAdded",De,te)}return te}var jh=function(it,st){this.markers=it,this.primary=st;for(var vt=0;vt<it.length;++vt)it[vt].parent=this};jh.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Hr(this,"clear")}},jh.prototype.find=function(it,st){return this.primary.find(it,st)},Sr(jh);function EA(it,st,vt,gt,Bt){gt=Re(gt),gt.shared=!1;var te=[nc(it,st,vt,gt,Bt)],xe=te[0],je=gt.widgetNode;return jl(it,function(De){je&&(gt.widgetNode=je.cloneNode(!0)),te.push(nc(De,or(De,st),or(De,vt),gt,Bt));for(var an=0;an<De.linked.length;++an)if(De.linked[an].isParent)return;xe=nn(te)}),new jh(te,xe)}function $c(it){return it.findMarks(ii(it.first,0),it.clipPos(ii(it.lastLine())),function(st){return st.parent})}function Fc(it,st){for(var vt=0;vt<st.length;vt++){var gt=st[vt],Bt=gt.find(),te=it.clipPos(Bt.from),xe=it.clipPos(Bt.to);if(wi(te,xe)){var je=nc(it,te,xe,gt.primary,gt.primary.type);gt.markers.push(je),je.parent=gt}}}function ad(it){for(var st=function(gt){var Bt=it[gt],te=[Bt.primary.doc];jl(Bt.primary.doc,function(De){return te.push(De)});for(var xe=0;xe<Bt.markers.length;xe++){var je=Bt.markers[xe];Se(te,je.doc)==-1&&(je.parent=null,Bt.markers.splice(xe--,1))}},vt=0;vt<it.length;vt++)st(vt)}var HA=0,vu=function(it,st,vt,gt,Bt){if(!(this instanceof vu))return new vu(it,st,vt,gt,Bt);vt==null&&(vt=0),ga.call(this,[new wl([new Qo("",null)])]),this.first=vt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=vt;var te=ii(vt,0);this.sel=Mo(te),this.history=new ko(null),this.id=++HA,this.modeOption=st,this.lineSep=gt,this.direction=Bt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),js(this,{from:te,to:te,text:it}),Ia(this,Mo(te),Ye)};vu.prototype=Dt(ga.prototype,{constructor:vu,iter:function(it,st,vt){vt?this.iterN(it-this.first,st-it,vt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,st){for(var vt=0,gt=0;gt<st.length;++gt)vt+=st[gt].height;this.insertInner(it-this.first,st,vt)},remove:function(it,st){this.removeInner(it-this.first,st)},getValue:function(it){var st=_i(this,this.first,this.first+this.size);return it===!1?st:st.join(it||this.lineSeparator())},setValue:Te(function(it){var st=ii(this.first,0),vt=this.first+this.size-1;Sl(this,{from:st,to:ii(vt,ni(this,vt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Nn(this.cm,0,0),Ia(this,Mo(st),Ye)}),replaceRange:function(it,st,vt,gt){st=or(this,st),vt=vt?or(this,vt):st,fc(this,it,st,vt,gt)},getRange:function(it,st,vt){var gt=Ci(this,or(this,it),or(this,st));return vt===!1?gt:gt.join(vt||this.lineSeparator())},getLine:function(it){var st=this.getLineHandle(it);return st&&st.text},getLineHandle:function(it){if(Vi(this,it))return ni(this,it)},getLineNumber:function(it){return on(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=ni(this,it)),Lo(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return or(this,it)},getCursor:function(it){var st=this.sel.primary(),vt;return it==null||it=="head"?vt=st.head:it=="anchor"?vt=st.anchor:it=="end"||it=="to"||it===!1?vt=st.to():vt=st.from(),vt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Te(function(it,st,vt){Xa(this,or(this,typeof it=="number"?ii(it,st||0):it),null,vt)}),setSelection:Te(function(it,st,vt){Xa(this,or(this,it),or(this,st||it),vt)}),extendSelection:Te(function(it,st,vt){wa(this,or(this,it),st&&or(this,st),vt)}),extendSelections:Te(function(it,st){na(this,Zr(this,it),st)}),extendSelectionsBy:Te(function(it,st){var vt=Fi(this.sel.ranges,it);na(this,Zr(this,vt),st)}),setSelections:Te(function(it,st,vt){if(it.length){for(var gt=[],Bt=0;Bt<it.length;Bt++)gt[Bt]=new zr(or(this,it[Bt].anchor),or(this,it[Bt].head));st==null&&(st=Math.min(it.length-1,this.sel.primIndex)),Ia(this,Vo(this.cm,gt,st),vt)}}),addSelection:Te(function(it,st,vt){var gt=this.sel.ranges.slice(0);gt.push(new zr(or(this,it),or(this,st||it))),Ia(this,Vo(this.cm,gt,gt.length-1),vt)}),getSelection:function(it){for(var st=this.sel.ranges,vt,gt=0;gt<st.length;gt++){var Bt=Ci(this,st[gt].from(),st[gt].to());vt=vt?vt.concat(Bt):Bt}return it===!1?vt:vt.join(it||this.lineSeparator())},getSelections:function(it){for(var st=[],vt=this.sel.ranges,gt=0;gt<vt.length;gt++){var Bt=Ci(this,vt[gt].from(),vt[gt].to());it!==!1&&(Bt=Bt.join(it||this.lineSeparator())),st[gt]=Bt}return st},replaceSelection:function(it,st,vt){for(var gt=[],Bt=0;Bt<this.sel.ranges.length;Bt++)gt[Bt]=it;this.replaceSelections(gt,st,vt||"+input")},replaceSelections:Te(function(it,st,vt){for(var gt=[],Bt=this.sel,te=0;te<Bt.ranges.length;te++){var xe=Bt.ranges[te];gt[te]={from:xe.from(),to:xe.to(),text:this.splitLines(it[te]),origin:vt}}for(var je=st&&st!="end"&&Ps(this,gt,st),De=gt.length-1;De>=0;De--)Sl(this,gt[De]);je?Qs(this,je):this.cm&&gn(this.cm)}),undo:Te(function(){ph(this,"undo")}),redo:Te(function(){ph(this,"redo")}),undoSelection:Te(function(){ph(this,"undo",!0)}),redoSelection:Te(function(){ph(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,st=0,vt=0,gt=0;gt<it.done.length;gt++)it.done[gt].ranges||++st;for(var Bt=0;Bt<it.undone.length;Bt++)it.undone[Bt].ranges||++vt;return{undo:st,redo:vt}},clearHistory:function(){var it=this;this.history=new ko(this.history.maxGeneration),jl(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 ko(this.history.maxGeneration);st.done=Ra(it.done.slice(0),null,!0),st.undone=Ra(it.undone.slice(0),null,!0)},setGutterMarker:Te(function(it,st,vt){return uu(this,it,"gutter",function(gt){var Bt=gt.gutterMarkers||(gt.gutterMarkers={});return Bt[st]=vt,!vt&&At(Bt)&&(gt.gutterMarkers=null),!0})}),clearGutter:Te(function(it){var st=this;this.iter(function(vt){vt.gutterMarkers&&vt.gutterMarkers[it]&&uu(st,vt,"gutter",function(){return vt.gutterMarkers[it]=null,At(vt.gutterMarkers)&&(vt.gutterMarkers=null),!0})})}),lineInfo:function(it){var st;if(typeof it=="number"){if(!Vi(this,it)||(st=it,it=ni(this,it),!it))return null}else if(st=on(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:Te(function(it,st,vt){return uu(this,it,st=="gutter"?"gutter":"class",function(gt){var Bt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass";if(!gt[Bt])gt[Bt]=vt;else{if(Ot(vt).test(gt[Bt]))return!1;gt[Bt]+=" "+vt}return!0})}),removeLineClass:Te(function(it,st,vt){return uu(this,it,st=="gutter"?"gutter":"class",function(gt){var Bt=st=="text"?"textClass":st=="background"?"bgClass":st=="gutter"?"gutterClass":"wrapClass",te=gt[Bt];if(te)if(vt==null)gt[Bt]=null;else{var xe=te.match(Ot(vt));if(!xe)return!1;var je=xe.index+xe[0].length;gt[Bt]=te.slice(0,xe.index)+(!xe.index||je==te.length?"":" ")+te.slice(je)||null}else return!1;return!0})}),addLineWidget:Te(function(it,st,vt){return ku(this,it,st,vt)}),removeLineWidget:function(it){it.clear()},markText:function(it,st,vt){return nc(this,or(this,it),or(this,st),vt,vt&&vt.type||"range")},setBookmark:function(it,st){var vt={replacedWith:st&&(st.nodeType==null?st.widget:st),insertLeft:st&&st.insertLeft,clearWhenEmpty:!1,shared:st&&st.shared,handleMouseEvents:st&&st.handleMouseEvents};return it=or(this,it),nc(this,it,it,vt,"bookmark")},findMarksAt:function(it){it=or(this,it);var st=[],vt=ni(this,it.line).markedSpans;if(vt)for(var gt=0;gt<vt.length;++gt){var Bt=vt[gt];(Bt.from==null||Bt.from<=it.ch)&&(Bt.to==null||Bt.to>=it.ch)&&st.push(Bt.marker.parent||Bt.marker)}return st},findMarks:function(it,st,vt){it=or(this,it),st=or(this,st);var gt=[],Bt=it.line;return this.iter(it.line,st.line+1,function(te){var xe=te.markedSpans;if(xe)for(var je=0;je<xe.length;je++){var De=xe[je];!(De.to!=null&&Bt==it.line&&it.ch>=De.to||De.from==null&&Bt!=it.line||De.from!=null&&Bt==st.line&&De.from>=st.ch)&&(!vt||vt(De.marker))&&gt.push(De.marker.parent||De.marker)}++Bt}),gt},getAllMarks:function(){var it=[];return this.iter(function(st){var vt=st.markedSpans;if(vt)for(var gt=0;gt<vt.length;++gt)vt[gt].from!=null&&it.push(vt[gt].marker)}),it},posFromIndex:function(it){var st,vt=this.first,gt=this.lineSeparator().length;return this.iter(function(Bt){var te=Bt.text.length+gt;if(te>it)return st=it,!0;it-=te,++vt}),or(this,ii(vt,st))},indexFromPos:function(it){it=or(this,it);var st=it.ch;if(it.line<this.first||it.ch<0)return 0;var vt=this.lineSeparator().length;return this.iter(this.first,it.line,function(gt){st+=gt.text.length+vt}),st},copy:function(it){var st=new vu(_i(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,vt=this.first+this.size;it.from!=null&&it.from>st&&(st=it.from),it.to!=null&&it.to<vt&&(vt=it.to);var gt=new vu(_i(this,st,vt),it.mode||this.modeOption,st,this.lineSep,this.direction);return it.sharedHist&&(gt.history=this.history),(this.linked||(this.linked=[])).push({doc:gt,sharedHist:it.sharedHist}),gt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Fc(gt,$c(this)),gt},unlinkDoc:function(it){if(it instanceof Us&&(it=it.doc),this.linked)for(var st=0;st<this.linked.length;++st){var vt=this.linked[st];if(vt.doc==it){this.linked.splice(st,1),it.unlinkDoc(this),ad($c(this));break}}if(it.history==this.history){var gt=[it.id];jl(it,function(Bt){return gt.push(Bt.id)},!0),it.history=new ko(null),it.history.done=Ra(this.history.done,gt),it.history.undone=Ra(this.history.undone,gt)}},iterLinkedDocs:function(it){jl(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):ws(it)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Te(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(st){return st.order=null}),this.cm&&ds(this.cm))})}),vu.prototype.eachLine=vu.prototype.iter;var Sd=0;function Rd(it){var st=this;if(_d(st),!(Di(st,it)||lu(st.display,it))){Nr(it),ee&&(Sd=+new Date);var vt=Xu(st,it,!0),gt=it.dataTransfer.files;if(!(!vt||st.isReadOnly()))if(gt&&gt.length&&window.FileReader&&window.File)for(var Bt=gt.length,te=Array(Bt),xe=0,je=function(){++xe==Bt&&Tn(st,function(){vt=or(st.doc,vt);var bi={from:vt,to:vt,text:st.doc.splitLines(te.filter(function(Mr){return Mr!=null}).join(st.doc.lineSeparator())),origin:"paste"};Sl(st.doc,bi),Qs(st.doc,Mo(or(st.doc,vt),or(st.doc,hs(bi))))})()},De=function(bi,Mr){if(st.options.allowDropFileTypes&&Se(st.options.allowDropFileTypes,bi.type)==-1){je();return}var jr=new FileReader;jr.onerror=function(){return je()},jr.onload=function(){var qr=jr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(qr)){je();return}te[Mr]=qr,je()},jr.readAsText(bi)},an=0;an<gt.length;an++)De(gt[an],an);else{if(st.state.draggingText&&st.doc.sel.contains(vt)>-1){st.state.draggingText(it),setTimeout(function(){return st.display.input.focus()},20);return}try{var Zn=it.dataTransfer.getData("Text");if(Zn){var xn;if(st.state.draggingText&&!st.state.draggingText.copy&&(xn=st.listSelections()),Nl(st.doc,Mo(vt,vt)),xn)for(var Mi=0;Mi<xn.length;++Mi)fc(st.doc,"",xn[Mi].anchor,xn[Mi].head,"drag");st.replaceSelection(Zn,"around","paste"),st.display.input.focus()}}catch(bi){}}}}function ld(it,st){if(ee&&(!it.state.draggingText||+new Date-Sd<100)){Kr(st);return}if(!(Di(it,st)||lu(it.display,st))&&(st.dataTransfer.setData("Text",it.getSelection()),st.dataTransfer.effectAllowed="copyMove",st.dataTransfer.setDragImage&&!oe)){var vt=de("img",null,null,"position: fixed; left: 0; top: 0;");vt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Pt&&(vt.width=vt.height=1,it.display.wrapper.appendChild(vt),vt._top=vt.offsetTop),st.dataTransfer.setDragImage(vt,0,0),Pt&&vt.parentNode.removeChild(vt)}}function Lc(it,st){var vt=Xu(it,st);if(vt){var gt=document.createDocumentFragment();Da(it,vt,gt),it.display.dragCursor||(it.display.dragCursor=de("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),ae(it.display.dragCursor,gt)}}function _d(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function Cd(it){if(document.getElementsByClassName){for(var st=document.getElementsByClassName("CodeMirror"),vt=[],gt=0;gt<st.length;gt++){var Bt=st[gt].CodeMirror;Bt&&vt.push(Bt)}vt.length&&vt[0].operation(function(){for(var te=0;te<vt.length;te++)it(vt[te])})}}var ah=!1;function Ul(){ah||(Bd(),ah=!0)}function Bd(){var it;An(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,Cd(lA)},100))}),An(window,"blur",function(){return Cd(Lt)})}function lA(it){var st=it.display;st.cachedCharWidth=st.cachedTextHeight=st.cachedPaddingH=null,st.scrollbarsClipped=!1,it.setSize()}for(var Ys={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"},Xc=0;Xc<10;Xc++)Ys[Xc+48]=Ys[Xc+96]=String(Xc);for(var Pd=65;Pd<=90;Pd++)Ys[Pd]=String.fromCharCode(Pd);for(var mh=1;mh<=12;mh++)Ys[mh+111]=Ys[mh+63235]="F"+mh;var qu={};qu.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"},qu.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"},qu.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"},qu.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"]},qu.default=lt?qu.macDefault:qu.pcDefault;function Hd(it){var st=it.split(/-(?!$)/);it=st[st.length-1];for(var vt,gt,Bt,te,xe=0;xe<st.length-1;xe++){var je=st[xe];if(/^(cmd|meta|m)$/i.test(je))te=!0;else if(/^a(lt)?$/i.test(je))vt=!0;else if(/^(c|ctrl|control)$/i.test(je))gt=!0;else if(/^s(hift)?$/i.test(je))Bt=!0;else throw new Error("Unrecognized modifier name: "+je)}return vt&&(it="Alt-"+it),gt&&(it="Ctrl-"+it),te&&(it="Cmd-"+it),Bt&&(it="Shift-"+it),it}function ud(it){var st={};for(var vt in it)if(it.hasOwnProperty(vt)){var gt=it[vt];if(/^(name|fallthrough|(de|at)tach)$/.test(vt))continue;if(gt=="..."){delete it[vt];continue}for(var Bt=Fi(vt.split(" "),Hd),te=0;te<Bt.length;te++){var xe=void 0,je=void 0;te==Bt.length-1?(je=Bt.join(" "),xe=gt):(je=Bt.slice(0,te+1).join(" "),xe="...");var De=st[je];if(!De)st[je]=xe;else if(De!=xe)throw new Error("Inconsistent bindings for "+je)}delete it[vt]}for(var an in st)it[an]=st[an];return it}function th(it,st,vt,gt){st=nu(st);var Bt=st.call?st.call(it,gt):st[it];if(Bt===!1)return"nothing";if(Bt==="...")return"multi";if(Bt!=null&&vt(Bt))return"handled";if(st.fallthrough){if(Object.prototype.toString.call(st.fallthrough)!="[object Array]")return th(it,st.fallthrough,vt,gt);for(var te=0;te<st.fallthrough.length;te++){var xe=th(it,st.fallthrough[te],vt,gt);if(xe)return xe}}}function bd(it){var st=typeof it=="string"?it:Ys[it.keyCode];return st=="Ctrl"||st=="Alt"||st=="Shift"||st=="Mod"}function Ed(it,st,vt){var gt=it;return st.altKey&&gt!="Alt"&&(it="Alt-"+it),(wt?st.metaKey:st.ctrlKey)&&gt!="Ctrl"&&(it="Ctrl-"+it),(wt?st.ctrlKey:st.metaKey)&&gt!="Mod"&&(it="Cmd-"+it),!vt&&st.shiftKey&&gt!="Shift"&&(it="Shift-"+it),it}function Qd(it,st){if(Pt&&it.keyCode==34&&it.char)return!1;var vt=Ys[it.keyCode];return vt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(vt=it.code),Ed(vt,it,st))}function nu(it){return typeof it=="string"?qu[it]:it}function cu(it,st){for(var vt=it.doc.sel.ranges,gt=[],Bt=0;Bt<vt.length;Bt++){for(var te=st(vt[Bt]);gt.length&&wi(te.from,nn(gt).to)<=0;){var xe=gt.pop();if(wi(xe.from,te.from)<0){te.from=xe.from;break}}gt.push(te)}hn(it,function(){for(var je=gt.length-1;je>=0;je--)fc(it.doc,"",gt[je].from,gt[je].to,"+delete");gn(it)})}function Mc(it,st,vt){var gt=le(it.text,st+vt,vt);return gt<0||gt>it.text.length?null:gt}function du(it,st,vt){var gt=Mc(it,st.ch,vt);return gt==null?null:new ii(st.line,gt,vt<0?"after":"before")}function xa(it,st,vt,gt,Bt){if(it){st.doc.direction=="rtl"&&(Bt=-Bt);var te=Gn(vt,st.doc.direction);if(te){var xe=Bt<0?nn(te):te[0],je=Bt<0==(xe.level==1),De=je?"after":"before",an;if(xe.level>0||st.doc.direction=="rtl"){var Zn=Ga(st,vt);an=Bt<0?vt.text.length-1:0;var xn=ih(st,Zn,an).top;an=me(function(Mi){return ih(st,Zn,Mi).top==xn},Bt<0==(xe.level==1)?xe.from:xe.to-1,an),De=="before"&&(an=Mc(vt,an,1))}else an=Bt<0?xe.to:xe.from;return new ii(gt,an,De)}}return new ii(gt,Bt<0?vt.text.length:0,Bt<0?"before":"after")}function hl(it,st,vt,gt){var Bt=Gn(st,it.doc.direction);if(!Bt)return du(st,vt,gt);vt.ch>=st.text.length?(vt.ch=st.text.length,vt.sticky="before"):vt.ch<=0&&(vt.ch=0,vt.sticky="after");var te=Ie(Bt,vt.ch,vt.sticky),xe=Bt[te];if(it.doc.direction=="ltr"&&xe.level%2==0&&(gt>0?xe.to>vt.ch:xe.from<vt.ch))return du(st,vt,gt);var je=function(Co,$o){return Mc(st,Co instanceof ii?Co.ch:Co,$o)},De,an=function(Co){return it.options.lineWrapping?(De=De||Ga(it,st),sA(it,st,De,Co)):{begin:0,end:st.text.length}},Zn=an(vt.sticky=="before"?je(vt,-1):vt.ch);if(it.doc.direction=="rtl"||xe.level==1){var xn=xe.level==1==gt<0,Mi=je(vt,xn?1:-1);if(Mi!=null&&(xn?Mi<=xe.to&&Mi<=Zn.end:Mi>=xe.from&&Mi>=Zn.begin)){var bi=xn?"before":"after";return new ii(vt.line,Mi,bi)}}var Mr=function(Co,$o,Oo){for(var ss=function(_l,$l){return $l?new ii(vt.line,je(_l,1),"before"):new ii(vt.line,_l,"after")};Co>=0&&Co<Bt.length;Co+=$o){var Ds=Bt[Co],Do=$o>0==(Ds.level!=1),Js=Do?Oo.begin:je(Oo.end,-1);if(Ds.from<=Js&&Js<Ds.to||(Js=Do?Ds.from:je(Ds.to,-1),Oo.begin<=Js&&Js<Oo.end))return ss(Js,Do)}},jr=Mr(te+gt,gt,Zn);if(jr)return jr;var qr=gt>0?Zn.end:je(Zn.begin,-1);return qr!=null&&!(gt>0&&qr==st.text.length)&&(jr=Mr(gt>0?0:Bt.length-1,gt,an(qr)),jr)?jr:null}var Bu={selectAll:Va,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ye)},killLine:function(it){return cu(it,function(st){if(st.empty()){var vt=ni(it.doc,st.head.line).text.length;return st.head.ch==vt&&st.head.line<it.lastLine()?{from:st.head,to:ii(st.head.line+1,0)}:{from:st.head,to:ii(st.head.line,vt)}}else return{from:st.from(),to:st.to()}})},deleteLine:function(it){return cu(it,function(st){return{from:ii(st.from().line,0),to:or(it.doc,ii(st.to().line+1,0))}})},delLineLeft:function(it){return cu(it,function(st){return{from:ii(st.from().line,0),to:st.from()}})},delWrappedLineLeft:function(it){return cu(it,function(st){var vt=it.charCoords(st.head,"div").top+5,gt=it.coordsChar({left:0,top:vt},"div");return{from:gt,to:st.from()}})},delWrappedLineRight:function(it){return cu(it,function(st){var vt=it.charCoords(st.head,"div").top+5,gt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:vt},"div");return{from:st.from(),to:gt}})},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(ii(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(ii(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(st){return vh(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 yh(it,st.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(st){var vt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:vt},"div")},Wn)},goLineLeft:function(it){return it.extendSelectionsBy(function(st){var vt=it.cursorCoords(st.head,"div").top+5;return it.coordsChar({left:0,top:vt},"div")},Wn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(st){var vt=it.cursorCoords(st.head,"div").top+5,gt=it.coordsChar({left:0,top:vt},"div");return gt.ch<it.getLine(gt.line).search(/\S/)?zd(it,st.head):gt},Wn)},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=[],vt=it.listSelections(),gt=it.options.tabSize,Bt=0;Bt<vt.length;Bt++){var te=vt[Bt].from(),xe=ve(it.getLine(te.line),te.ch,gt);st.push(xi(gt-xe%gt))}it.replaceSelections(st)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return hn(it,function(){for(var st=it.listSelections(),vt=[],gt=0;gt<st.length;gt++)if(st[gt].empty()){var Bt=st[gt].head,te=ni(it.doc,Bt.line).text;if(te){if(Bt.ch==te.length&&(Bt=new ii(Bt.line,Bt.ch-1)),Bt.ch>0)Bt=new ii(Bt.line,Bt.ch+1),it.replaceRange(te.charAt(Bt.ch-1)+te.charAt(Bt.ch-2),ii(Bt.line,Bt.ch-2),Bt,"+transpose");else if(Bt.line>it.doc.first){var xe=ni(it.doc,Bt.line-1).text;xe&&(Bt=new ii(Bt.line,1),it.replaceRange(te.charAt(0)+it.doc.lineSeparator()+xe.charAt(xe.length-1),ii(Bt.line-1,xe.length-1),Bt,"+transpose"))}}vt.push(new zr(Bt,Bt))}it.setSelections(vt)})},newlineAndIndent:function(it){return hn(it,function(){for(var st=it.listSelections(),vt=st.length-1;vt>=0;vt--)it.replaceRange(it.doc.lineSeparator(),st[vt].anchor,st[vt].head,"+input");st=it.listSelections();for(var gt=0;gt<st.length;gt++)it.indentLine(st[gt].from().line,null,!0);gn(it)})},openLine:function(it){return it.replaceSelection(`
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function vh(it,st){var vt=ni(it.doc,st),gt=Lo(vt);return gt!=vt&&(st=on(gt)),xa(!0,it,gt,st,1)}function yh(it,st){var vt=ni(it.doc,st),gt=os(vt);return gt!=vt&&(st=on(gt)),xa(!0,it,vt,st,-1)}function zd(it,st){var vt=vh(it,st.line),gt=ni(it.doc,vt.line),Bt=Gn(gt,it.doc.direction);if(!Bt||Bt[0].level==0){var te=Math.max(vt.ch,gt.text.search(/\S/)),xe=st.line==vt.line&&st.ch<=te&&st.ch;return ii(vt.line,xe?0:te,vt.sticky)}return vt}function Nc(it,st,vt){if(typeof st=="string"&&(st=Bu[st],!st))return!1;it.display.input.ensurePolled();var gt=it.display.shift,Bt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),vt&&(it.display.shift=!1),Bt=st(it)!=Ln}finally{it.display.shift=gt,it.state.suppressEdits=!1}return Bt}function Uh(it,st,vt){for(var gt=0;gt<it.state.keyMaps.length;gt++){var Bt=th(st,it.state.keyMaps[gt],vt,it);if(Bt)return Bt}return it.options.extraKeys&&th(st,it.options.extraKeys,vt,it)||th(st,it.options.keyMap,vt,it)}var Vu=new ie;function Ic(it,st,vt,gt){var Bt=it.state.keySeq;if(Bt){if(bd(st))return"handled";if(/\'$/.test(st)?it.state.keySeq=null:Vu.set(50,function(){it.state.keySeq==Bt&&(it.state.keySeq=null,it.display.input.reset())}),Jc(it,Bt+" "+st,vt,gt))return!0}return Jc(it,st,vt,gt)}function Jc(it,st,vt,gt){var Bt=Uh(it,st,gt);return Bt=="multi"&&(it.state.keySeq=st),Bt=="handled"&&Hr(it,"keyHandled",it,st,vt),(Bt=="handled"||Bt=="multi")&&(Nr(vt),vl(it)),!!Bt}function ic(it,st){var vt=Qd(st,!0);return vt?st.shiftKey&&!it.state.keySeq?Ic(it,"Shift-"+vt,st,function(gt){return Nc(it,gt,!0)})||Ic(it,vt,st,function(gt){if(typeof gt=="string"?/^go[A-Z]/.test(gt):gt.motion)return Nc(it,gt)}):Ic(it,vt,st,function(gt){return Nc(it,gt)}):!1}function Kd(it,st,vt){return Ic(it,"'"+vt+"'",st,function(gt){return Nc(it,gt,!0)})}var gc=null;function FA(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&(st.curOp.focus=Vt(),!Di(st,it))){ee&&Yt<11&&it.keyCode==27&&(it.returnValue=!1);var vt=it.keyCode;st.display.shift=vt==16||it.shiftKey;var gt=ic(st,it);Pt&&(gc=gt?vt:null,!gt&&vt==88&&!xs&&(lt?it.metaKey:it.ctrlKey)&&st.replaceSelection("",null,"cut")),Ft&&!lt&&!gt&&vt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),vt==18&&!/\bCodeMirror-crosshair\b/.test(st.display.lineDiv.className)&&uA(st)}}function uA(it){var st=it.display.lineDiv;Ge(st,"CodeMirror-crosshair");function vt(gt){(gt.keyCode==18||!gt.altKey)&&(Ht(st,"CodeMirror-crosshair"),qn(document,"keyup",vt),qn(document,"mouseover",vt))}An(document,"keyup",vt),An(document,"mouseover",vt)}function lf(it){it.keyCode==16&&(this.doc.sel.shift=!1),Di(this,it)}function rc(it){var st=this;if(!(it.target&&it.target!=st.display.input.getField())&&!(lu(st.display,it)||Di(st,it)||it.ctrlKey&&!it.altKey||lt&&it.metaKey)){var vt=it.keyCode,gt=it.charCode;if(Pt&&vt==gc){gc=null,Nr(it);return}if(!(Pt&&(!it.which||it.which<10)&&ic(st,it))){var Bt=String.fromCharCode(gt==null?vt:gt);Bt!="\b"&&(Kd(st,it,Bt)||st.display.input.onKeyPress(it))}}}var QA=400,Gd=function(it,st,vt){this.time=it,this.pos=st,this.button=vt};Gd.prototype.compare=function(it,st,vt){return this.time+QA>it&&wi(st,this.pos)==0&&vt==this.button};var pc,hd;function hA(it,st){var vt=+new Date;return hd&&hd.compare(vt,it,st)?(pc=hd=null,"triple"):pc&&pc.compare(vt,it,st)?(hd=new Gd(vt,it,st),pc=null,"double"):(pc=new Gd(vt,it,st),hd=null,"single")}function Rh(it){var st=this,vt=st.display;if(!(Di(st,it)||vt.activeTouch&&vt.input.supportsTouch())){if(vt.input.ensurePolled(),vt.shift=it.shiftKey,lu(vt,it)){It||(vt.scroller.draggable=!1,setTimeout(function(){return vt.scroller.draggable=!0},100));return}if(!mi(st,it)){var gt=Xu(st,it),Bt=Vr(it),te=gt?hA(gt,Bt):"single";window.focus(),Bt==1&&st.state.selectingText&&st.state.selectingText(it),!(gt&&zA(st,Bt,gt,te,it))&&(Bt==1?gt?Wd(st,gt,te,it):gr(it)==vt.scroller&&Nr(it):Bt==2?(gt&&wa(st.doc,gt),setTimeout(function(){return vt.input.focus()},20)):Bt==3&&(Mt?st.display.input.onContextMenu(it):Et(st)))}}}function zA(it,st,vt,gt,Bt){var te="Click";return gt=="double"?te="Double"+te:gt=="triple"&&(te="Triple"+te),te=(st==1?"Left":st==2?"Middle":"Right")+te,Ic(it,Ed(te,Bt),Bt,function(xe){if(typeof xe=="string"&&(xe=Bu[xe]),!xe)return!1;var je=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),je=xe(it,vt)!=Ln}finally{it.state.suppressEdits=!1}return je})}function Fd(it,st,vt){var gt=it.getOption("configureMouse"),Bt=gt?gt(it,st,vt):{};if(Bt.unit==null){var te=rt?vt.shiftKey&&vt.metaKey:vt.altKey;Bt.unit=te?"rectangle":st=="single"?"char":st=="double"?"word":"line"}return(Bt.extend==null||it.doc.extend)&&(Bt.extend=it.doc.extend||vt.shiftKey),Bt.addNew==null&&(Bt.addNew=lt?vt.metaKey:vt.ctrlKey),Bt.moveOnDrag==null&&(Bt.moveOnDrag=!(lt?vt.altKey:vt.ctrlKey)),Bt}function Wd(it,st,vt,gt){ee?setTimeout(We(Zl,it),0):it.curOp.focus=Vt();var Bt=Fd(it,vt,gt),te=it.doc.sel,xe;it.options.dragDrop&&pr&&!it.isReadOnly()&&vt=="single"&&(xe=te.contains(st))>-1&&(wi((xe=te.ranges[xe]).from(),st)<0||st.xRel>0)&&(wi(xe.to(),st)>0||st.xRel<0)?LA(it,gt,st,Bt):KA(it,gt,st,Bt)}function LA(it,st,vt,gt){var Bt=it.display,te=!1,xe=Tn(it,function(an){It&&(Bt.scroller.draggable=!1),it.state.draggingText=!1,qn(Bt.wrapper.ownerDocument,"mouseup",xe),qn(Bt.wrapper.ownerDocument,"mousemove",je),qn(Bt.scroller,"dragstart",De),qn(Bt.scroller,"drop",xe),te||(Nr(an),gt.addNew||wa(it.doc,vt,null,null,gt.extend),It&&!oe||ee&&Yt==9?setTimeout(function(){Bt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Bt.input.focus()},20):Bt.input.focus())}),je=function(an){te=te||Math.abs(st.clientX-an.clientX)+Math.abs(st.clientY-an.clientY)>=10},De=function(){return te=!0};It&&(Bt.scroller.draggable=!0),it.state.draggingText=xe,xe.copy=!gt.moveOnDrag,Bt.scroller.dragDrop&&Bt.scroller.dragDrop(),An(Bt.wrapper.ownerDocument,"mouseup",xe),An(Bt.wrapper.ownerDocument,"mousemove",je),An(Bt.scroller,"dragstart",De),An(Bt.scroller,"drop",xe),Et(it),setTimeout(function(){return Bt.input.focus()},20)}function Tc(it,st,vt){if(vt=="char")return new zr(st,st);if(vt=="word")return it.findWordAt(st);if(vt=="line")return new zr(ii(st.line,0),or(it.doc,ii(st.line+1,0)));var gt=vt(it,st);return new zr(gt.from,gt.to)}function KA(it,st,vt,gt){var Bt=it.display,te=it.doc;Nr(st);var xe,je,De=te.sel,an=De.ranges;if(gt.addNew&&!gt.extend?(je=te.sel.contains(vt),je>-1?xe=an[je]:xe=new zr(vt,vt)):(xe=te.sel.primary(),je=te.sel.primIndex),gt.unit=="rectangle")gt.addNew||(xe=new zr(vt,vt)),vt=Xu(it,st,!0,!0),je=-1;else{var Zn=Tc(it,vt,gt.unit);gt.extend?xe=Nu(xe,Zn.anchor,Zn.head,gt.extend):xe=Zn}gt.addNew?je==-1?(je=an.length,Ia(te,Vo(it,an.concat([xe]),je),{scroll:!1,origin:"*mouse"})):an.length>1&&an[je].empty()&&gt.unit=="char"&&!gt.extend?(Ia(te,Vo(it,an.slice(0,je).concat(an.slice(je+1)),0),{scroll:!1,origin:"*mouse"}),De=te.sel):Na(te,je,xe,Mn):(je=0,Ia(te,new Fo([xe],0),Mn),De=te.sel);var xn=vt;function Mi(Oo){if(wi(xn,Oo)!=0)if(xn=Oo,gt.unit=="rectangle"){for(var ss=[],Ds=it.options.tabSize,Do=ve(ni(te,vt.line).text,vt.ch,Ds),Js=ve(ni(te,Oo.line).text,Oo.ch,Ds),_l=Math.min(Do,Js),$l=Math.max(Do,Js),fl=Math.min(vt.line,Oo.line),Ja=Math.min(it.lastLine(),Math.max(vt.line,Oo.line));fl<=Ja;fl++){var Ua=ni(te,fl).text,Za=fi(Ua,_l,Ds);_l==$l?ss.push(new zr(ii(fl,Za),ii(fl,Za))):Ua.length>Za&&ss.push(new zr(ii(fl,Za),ii(fl,fi(Ua,$l,Ds))))}ss.length||ss.push(new zr(vt,vt)),Ia(te,Vo(it,De.ranges.slice(0,je).concat(ss),je),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Oo)}else{var El=xe,wu=Tc(it,Oo,gt.unit),Uo=El.anchor,Ca;wi(wu.anchor,Uo)>0?(Ca=wu.head,Uo=vi(El.from(),wu.anchor)):(Ca=wu.anchor,Uo=yi(El.to(),wu.head));var Xl=De.ranges.slice(0);Xl[je]=Ae(it,new zr(or(te,Uo),Ca)),Ia(te,Vo(it,Xl,je),Mn)}}var bi=Bt.wrapper.getBoundingClientRect(),Mr=0;function jr(Oo){var ss=++Mr,Ds=Xu(it,Oo,!0,gt.unit=="rectangle");if(Ds)if(wi(Ds,xn)!=0){it.curOp.focus=Vt(),Mi(Ds);var Do=Zt(Bt,te);(Ds.line>=Do.to||Ds.line<Do.from)&&setTimeout(Tn(it,function(){Mr==ss&&jr(Oo)}),150)}else{var Js=Oo.clientY<bi.top?-20:Oo.clientY>bi.bottom?20:0;Js&&setTimeout(Tn(it,function(){Mr==ss&&(Bt.scroller.scrollTop+=Js,jr(Oo))}),50)}}function qr(Oo){it.state.selectingText=!1,Mr=1/0,Oo&&(Nr(Oo),Bt.input.focus()),qn(Bt.wrapper.ownerDocument,"mousemove",Co),qn(Bt.wrapper.ownerDocument,"mouseup",$o),te.history.lastSelOrigin=null}var Co=Tn(it,function(Oo){Oo.buttons===0||!Vr(Oo)?qr(Oo):jr(Oo)}),$o=Tn(it,qr);it.state.selectingText=$o,An(Bt.wrapper.ownerDocument,"mousemove",Co),An(Bt.wrapper.ownerDocument,"mouseup",$o)}function Ae(it,st){var vt=st.anchor,gt=st.head,Bt=ni(it.doc,vt.line);if(wi(vt,gt)==0&&vt.sticky==gt.sticky)return st;var te=Gn(Bt);if(!te)return st;var xe=Ie(te,vt.ch,vt.sticky),je=te[xe];if(je.from!=vt.ch&&je.to!=vt.ch)return st;var De=xe+(je.from==vt.ch==(je.level!=1)?0:1);if(De==0||De==te.length)return st;var an;if(gt.line!=vt.line)an=(gt.line-vt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var Zn=Ie(te,gt.ch,gt.sticky),xn=Zn-xe||(gt.ch-vt.ch)*(je.level==1?-1:1);Zn==De-1||Zn==De?an=xn<0:an=xn>0}var Mi=te[De+(an?-1:0)],bi=an==(Mi.level==1),Mr=bi?Mi.from:Mi.to,jr=bi?"after":"before";return vt.ch==Mr&&vt.sticky==jr?st:new zr(new ii(vt.line,Mr,jr),gt)}function yn(it,st,vt,gt){var Bt,te;if(st.touches)Bt=st.touches[0].clientX,te=st.touches[0].clientY;else try{Bt=st.clientX,te=st.clientY}catch(Mi){return!1}if(Bt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;gt&&Nr(st);var xe=it.display,je=xe.lineDiv.getBoundingClientRect();if(te>je.bottom||!Ji(it,vt))return to(st);te-=je.top-xe.viewOffset;for(var De=0;De<it.display.gutterSpecs.length;++De){var an=xe.gutters.childNodes[De];if(an&&an.getBoundingClientRect().right>=Bt){var Zn=di(it.doc,te),xn=it.display.gutterSpecs[De];return Rn(it,vt,it,Zn,xn.className,st),to(st)}}}function mi(it,st){return yn(it,st,"gutterClick",!0)}function Ri(it,st){lu(it.display,st)||ur(it,st)||Di(it,st,"contextmenu")||Mt||it.display.input.onContextMenu(st)}function ur(it,st){return Ji(it,"gutterContextMenu")?yn(it,st,"gutterContextMenu",!1):!1}function Qr(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ll(it)}var vo={toString:function(){return"CodeMirror.Init"}},ps={},Ws={};function _a(it){var st=it.optionHandlers;function vt(gt,Bt,te,xe){it.defaults[gt]=Bt,te&&(st[gt]=xe?function(je,De,an){an!=vo&&te(je,De,an)}:te)}it.defineOption=vt,it.Init=vo,vt("value","",function(gt,Bt){return gt.setValue(Bt)},!0),vt("mode",null,function(gt,Bt){gt.doc.modeOption=Bt,Io(gt)},!0),vt("indentUnit",2,Io,!0),vt("indentWithTabs",!1),vt("smartIndent",!0),vt("tabSize",4,function(gt){Fs(gt),ll(gt),bl(gt)},!0),vt("lineSeparator",null,function(gt,Bt){if(gt.doc.lineSep=Bt,!!Bt){var te=[],xe=gt.doc.first;gt.doc.iter(function(De){for(var an=0;;){var Zn=De.text.indexOf(Bt,an);if(Zn==-1)break;an=Zn+Bt.length,te.push(ii(xe,Zn))}xe++});for(var je=te.length-1;je>=0;je--)fc(gt.doc,Bt,te[je],ii(te[je].line,te[je].ch+Bt.length))}}),vt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(gt,Bt,te){gt.state.specialChars=new RegExp(Bt.source+(Bt.test(" ")?"":"| "),"g"),te!=vo&&gt.refresh()}),vt("specialCharPlaceholder",ka,function(gt){return gt.refresh()},!0),vt("electricChars",!0),vt("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),vt("spellcheck",!1,function(gt,Bt){return gt.getInputField().spellcheck=Bt},!0),vt("autocorrect",!1,function(gt,Bt){return gt.getInputField().autocorrect=Bt},!0),vt("autocapitalize",!1,function(gt,Bt){return gt.getInputField().autocapitalize=Bt},!0),vt("rtlMoveVisually",!ut),vt("wholeLineUpdateBefore",!0),vt("theme","default",function(gt){Qr(gt),ir(gt)},!0),vt("keyMap","default",function(gt,Bt,te){var xe=nu(Bt),je=te!=vo&&nu(te);je&&je.detach&&je.detach(gt,xe),xe.attach&&xe.attach(gt,je||null)}),vt("extraKeys",null),vt("configureMouse",null),vt("lineWrapping",!1,Cl,!0),vt("gutters",[],function(gt,Bt){gt.display.gutterSpecs=oo(Bt,gt.options.lineNumbers),ir(gt)},!0),vt("fixedGutter",!0,function(gt,Bt){gt.display.gutters.style.left=Bt?sd(gt.display)+"px":"0",gt.refresh()},!0),vt("coverGutterNextToScrollbar",!1,function(gt){return io(gt)},!0),vt("scrollbarStyle","native",function(gt){Br(gt),io(gt),gt.display.scrollbars.setScrollTop(gt.doc.scrollTop),gt.display.scrollbars.setScrollLeft(gt.doc.scrollLeft)},!0),vt("lineNumbers",!1,function(gt,Bt){gt.display.gutterSpecs=oo(gt.options.gutters,Bt),ir(gt)},!0),vt("firstLineNumber",1,ir,!0),vt("lineNumberFormatter",function(gt){return gt},ir,!0),vt("showCursorWhenSelecting",!1,Su,!0),vt("resetSelectionOnContextMenu",!0),vt("lineWiseCopyCut",!0),vt("pasteLinesPerSelection",!0),vt("selectionsMayTouch",!1),vt("readOnly",!1,function(gt,Bt){Bt=="nocursor"&&(Lt(gt),gt.display.input.blur()),gt.display.input.readOnlyChanged(Bt)}),vt("screenReaderLabel",null,function(gt,Bt){Bt=Bt===""?null:Bt,gt.display.input.screenReaderLabelChanged(Bt)}),vt("disableInput",!1,function(gt,Bt){Bt||gt.display.input.reset()},!0),vt("dragDrop",!0,ba),vt("allowDropFileTypes",null),vt("cursorBlinkRate",530),vt("cursorScrollMargin",0),vt("cursorHeight",1,Su,!0),vt("singleCursorHeightPerLine",!0,Su,!0),vt("workTime",100),vt("workDelay",100),vt("flattenSpans",!0,Fs,!0),vt("addModeClass",!1,Fs,!0),vt("pollInterval",100),vt("undoDepth",200,function(gt,Bt){return gt.doc.history.undoDepth=Bt}),vt("historyEventDelay",1250),vt("viewportMargin",10,function(gt){return gt.refresh()},!0),vt("maxHighlightLength",1e4,Fs,!0),vt("moveInputWithCursor",!0,function(gt,Bt){Bt||gt.display.input.resetPosition()}),vt("tabindex",null,function(gt,Bt){return gt.display.input.getField().tabIndex=Bt||""}),vt("autofocus",null),vt("direction","ltr",function(gt,Bt){return gt.doc.setDirection(Bt)},!0),vt("phrases",null)}function ba(it,st,vt){var gt=vt&&vt!=vo;if(!st!=!gt){var Bt=it.display.dragFunctions,te=st?An:qn;te(it.display.scroller,"dragstart",Bt.start),te(it.display.scroller,"dragenter",Bt.enter),te(it.display.scroller,"dragover",Bt.over),te(it.display.scroller,"dragleave",Bt.leave),te(it.display.scroller,"drop",Bt.drop)}}function Cl(it){it.options.lineWrapping?(Ge(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ht(it.display.wrapper,"CodeMirror-wrap"),ca(it)),gs(it),bl(it),ll(it),setTimeout(function(){return io(it)},100)}function Us(it,st){var vt=this;if(!(this instanceof Us))return new Us(it,st);this.options=st=st?Re(st):{},Re(ps,st,!1);var gt=st.value;typeof gt=="string"?gt=new vu(gt,st.mode,null,st.lineSeparator,st.direction):st.mode&&(gt.modeOption=st.mode),this.doc=gt;var Bt=new Us.inputStyles[st.inputStyle](this),te=this.display=new yr(it,gt,Bt,st);te.wrapper.CodeMirror=this,Qr(this),st.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Br(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(),ee&&Yt<11&&setTimeout(function(){return vt.display.input.reset(!0)},20),Au(this),Ul(),Qn(this),this.curOp.forceUpdate=!0,Po(this,gt),st.autofocus&&!tt||this.hasFocus()?setTimeout(function(){vt.hasFocus()&&!vt.state.focused&&xt(vt)},20):Lt(this);for(var xe in Ws)Ws.hasOwnProperty(xe)&&Ws[xe](this,st[xe],vo);_n(this),st.finishInit&&st.finishInit(this);for(var je=0;je<yu.length;++je)yu[je](this);$n(this),It&&st.lineWrapping&&getComputedStyle(te.lineDiv).textRendering=="optimizelegibility"&&(te.lineDiv.style.textRendering="auto")}Us.defaults=ps,Us.optionHandlers=Ws;function Au(it){var st=it.display;An(st.scroller,"mousedown",Tn(it,Rh)),ee&&Yt<11?An(st.scroller,"dblclick",Tn(it,function(De){if(!Di(it,De)){var an=Xu(it,De);if(!(!an||mi(it,De)||lu(it.display,De))){Nr(De);var Zn=it.findWordAt(an);wa(it.doc,Zn.anchor,Zn.head)}}})):An(st.scroller,"dblclick",function(De){return Di(it,De)||Nr(De)}),An(st.scroller,"contextmenu",function(De){return Ri(it,De)}),An(st.input.getField(),"contextmenu",function(De){st.scroller.contains(De.target)||Ri(it,De)});var vt,gt={end:0};function Bt(){st.activeTouch&&(vt=setTimeout(function(){return st.activeTouch=null},1e3),gt=st.activeTouch,gt.end=+new Date)}function te(De){if(De.touches.length!=1)return!1;var an=De.touches[0];return an.radiusX<=1&&an.radiusY<=1}function xe(De,an){if(an.left==null)return!0;var Zn=an.left-De.left,xn=an.top-De.top;return Zn*Zn+xn*xn>20*20}An(st.scroller,"touchstart",function(De){if(!Di(it,De)&&!te(De)&&!mi(it,De)){st.input.ensurePolled(),clearTimeout(vt);var an=+new Date;st.activeTouch={start:an,moved:!1,prev:an-gt.end<=300?gt:null},De.touches.length==1&&(st.activeTouch.left=De.touches[0].pageX,st.activeTouch.top=De.touches[0].pageY)}}),An(st.scroller,"touchmove",function(){st.activeTouch&&(st.activeTouch.moved=!0)}),An(st.scroller,"touchend",function(De){var an=st.activeTouch;if(an&&!lu(st,De)&&an.left!=null&&!an.moved&&new Date-an.start<300){var Zn=it.coordsChar(st.activeTouch,"page"),xn;!an.prev||xe(an,an.prev)?xn=new zr(Zn,Zn):!an.prev.prev||xe(an,an.prev.prev)?xn=it.findWordAt(Zn):xn=new zr(ii(Zn.line,0),or(it.doc,ii(Zn.line+1,0))),it.setSelection(xn.anchor,xn.head),it.focus(),Nr(De)}Bt()}),An(st.scroller,"touchcancel",Bt),An(st.scroller,"scroll",function(){st.scroller.clientHeight&&(gi(it,st.scroller.scrollTop),Ai(it,st.scroller.scrollLeft,!0),Rn(it,"scroll",it))}),An(st.scroller,"mousewheel",function(De){return So(it,De)}),An(st.scroller,"DOMMouseScroll",function(De){return So(it,De)}),An(st.wrapper,"scroll",function(){return st.wrapper.scrollTop=st.wrapper.scrollLeft=0}),st.dragFunctions={enter:function(De){Di(it,De)||Kr(De)},over:function(De){Di(it,De)||(Lc(it,De),Kr(De))},start:function(De){return ld(it,De)},drop:Tn(it,Rd),leave:function(De){Di(it,De)||_d(it)}};var je=st.input.getField();An(je,"keyup",function(De){return lf.call(it,De)}),An(je,"keydown",Tn(it,FA)),An(je,"keypress",Tn(it,rc)),An(je,"focus",function(De){return xt(it,De)}),An(je,"blur",function(De){return Lt(it,De)})}var yu=[];Us.defineInitHook=function(it){return yu.push(it)};function Al(it,st,vt,gt){var Bt=it.doc,te;vt==null&&(vt="add"),vt=="smart"&&(Bt.mode.indent?te=cs(it,st).state:vt="prev");var xe=it.options.tabSize,je=ni(Bt,st),De=ve(je.text,null,xe);je.stateAfter&&(je.stateAfter=null);var an=je.text.match(/^\s*/)[0],Zn;if(!gt&&!/\S/.test(je.text))Zn=0,vt="not";else if(vt=="smart"&&(Zn=Bt.mode.indent(te,je.text.slice(an.length),je.text),Zn==Ln||Zn>150)){if(!gt)return;vt="prev"}vt=="prev"?st>Bt.first?Zn=ve(ni(Bt,st-1).text,null,xe):Zn=0:vt=="add"?Zn=De+it.options.indentUnit:vt=="subtract"?Zn=De-it.options.indentUnit:typeof vt=="number"&&(Zn=De+vt),Zn=Math.max(0,Zn);var xn="",Mi=0;if(it.options.indentWithTabs)for(var bi=Math.floor(Zn/xe);bi;--bi)Mi+=xe,xn+=" ";if(Mi<Zn&&(xn+=xi(Zn-Mi)),xn!=an)return fc(Bt,xn,ii(st,0),ii(st,an.length),"+input"),je.stateAfter=null,!0;for(var Mr=0;Mr<Bt.sel.ranges.length;Mr++){var jr=Bt.sel.ranges[Mr];if(jr.head.line==st&&jr.head.ch<an.length){var qr=ii(st,an.length);Na(Bt,Mr,new zr(qr,qr));break}}}var Il=null;function wh(it){Il=it}function Eh(it,st,vt,gt,Bt){var te=it.doc;it.display.shift=!1,gt||(gt=te.sel);var xe=+new Date-200,je=Bt=="paste"||it.state.pasteIncoming>xe,De=ws(st),an=null;if(je&&gt.ranges.length>1)if(Il&&Il.text.join(`
`)==st){if(gt.ranges.length%Il.text.length==0){an=[];for(var Zn=0;Zn<Il.text.length;Zn++)an.push(te.splitLines(Il.text[Zn]))}}else De.length==gt.ranges.length&&it.options.pasteLinesPerSelection&&(an=Fi(De,function(Co){return[Co]}));for(var xn=it.curOp.updateInput,Mi=gt.ranges.length-1;Mi>=0;Mi--){var bi=gt.ranges[Mi],Mr=bi.from(),jr=bi.to();bi.empty()&&(vt&&vt>0?Mr=ii(Mr.line,Mr.ch-vt):it.state.overwrite&&!je?jr=ii(jr.line,Math.min(ni(te,jr.line).text.length,jr.ch+nn(De).length)):je&&Il&&Il.lineWise&&Il.text.join(`
`)==De.join(`
`)&&(Mr=jr=ii(Mr.line,0)));var qr={from:Mr,to:jr,text:an?an[Mi%an.length]:De,origin:Bt||(je?"paste":it.state.cutIncoming>xe?"cut":"+input")};Sl(it.doc,qr),Hr(it,"inputRead",it,qr)}st&&!je&&Vd(it,st),gn(it),it.curOp.updateInput<2&&(it.curOp.updateInput=xn),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function oc(it,st){var vt=it.clipboardData&&it.clipboardData.getData("Text");if(vt)return it.preventDefault(),!st.isReadOnly()&&!st.options.disableInput&&hn(st,function(){return Eh(st,vt,0,null,"paste")}),!0}function Vd(it,st){if(!(!it.options.electricChars||!it.options.smartIndent))for(var vt=it.doc.sel,gt=vt.ranges.length-1;gt>=0;gt--){var Bt=vt.ranges[gt];if(!(Bt.head.ch>100||gt&&vt.ranges[gt-1].head.line==Bt.head.line)){var te=it.getModeAt(Bt.head),xe=!1;if(te.electricChars){for(var je=0;je<te.electricChars.length;je++)if(st.indexOf(te.electricChars.charAt(je))>-1){xe=Al(it,Bt.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(ni(it.doc,Bt.head.line).text.slice(0,Bt.head.ch))&&(xe=Al(it,Bt.head.line,"smart"));xe&&Hr(it,"electricInput",it,Bt.head.line)}}}function cA(it){for(var st=[],vt=[],gt=0;gt<it.doc.sel.ranges.length;gt++){var Bt=it.doc.sel.ranges[gt].head.line,te={anchor:ii(Bt,0),head:ii(Bt+1,0)};vt.push(te),st.push(it.getRange(te.anchor,te.head))}return{text:st,ranges:vt}}function dA(it,st,vt,gt){it.setAttribute("autocorrect",vt?"":"off"),it.setAttribute("autocapitalize",gt?"":"off"),it.setAttribute("spellcheck",!!st)}function AA(){var it=de("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),st=de("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return It?it.style.width="1000px":it.setAttribute("wrap","off"),Ct&&(it.style.border="1px solid black"),dA(it),st}function kc(it){var st=it.optionHandlers,vt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(gt,Bt){var te=this.options,xe=te[gt];te[gt]==Bt&&gt!="mode"||(te[gt]=Bt,st.hasOwnProperty(gt)&&Tn(this,st[gt])(this,Bt,xe),Rn(this,"optionChange",this,gt))},getOption:function(gt){return this.options[gt]},getDoc:function(){return this.doc},addKeyMap:function(gt,Bt){this.state.keyMaps[Bt?"push":"unshift"](nu(gt))},removeKeyMap:function(gt){for(var Bt=this.state.keyMaps,te=0;te<Bt.length;++te)if(Bt[te]==gt||Bt[te].name==gt)return Bt.splice(te,1),!0},addOverlay:Xn(function(gt,Bt){var te=gt.token?gt:it.getMode(this.options,gt);if(te.startState)throw new Error("Overlays may not be stateful.");ki(this.state.overlays,{mode:te,modeSpec:gt,opaque:Bt&&Bt.opaque,priority:Bt&&Bt.priority||0},function(xe){return xe.priority}),this.state.modeGen++,bl(this)}),removeOverlay:Xn(function(gt){for(var Bt=this.state.overlays,te=0;te<Bt.length;++te){var xe=Bt[te].modeSpec;if(xe==gt||typeof gt=="string"&&xe.name==gt){Bt.splice(te,1),this.state.modeGen++,bl(this);return}}}),indentLine:Xn(function(gt,Bt,te){typeof Bt!="string"&&typeof Bt!="number"&&(Bt==null?Bt=this.options.smartIndent?"smart":"prev":Bt=Bt?"add":"subtract"),Vi(this.doc,gt)&&Al(this,gt,Bt,te)}),indentSelection:Xn(function(gt){for(var Bt=this.doc.sel.ranges,te=-1,xe=0;xe<Bt.length;xe++){var je=Bt[xe];if(je.empty())je.head.line>te&&(Al(this,je.head.line,gt,!0),te=je.head.line,xe==this.doc.sel.primIndex&&gn(this));else{var De=je.from(),an=je.to(),Zn=Math.max(te,De.line);te=Math.min(this.lastLine(),an.line-(an.ch?0:1))+1;for(var xn=Zn;xn<te;++xn)Al(this,xn,gt);var Mi=this.doc.sel.ranges;De.ch==0&&Bt.length==Mi.length&&Mi[xe].from().ch>0&&Na(this.doc,xe,new zr(De,Mi[xe].to()),Ye)}}}),getTokenAt:function(gt,Bt){return Fr(this,gt,Bt)},getLineTokens:function(gt,Bt){return Fr(this,ii(gt),Bt,!0)},getTokenTypeAt:function(gt){gt=or(this.doc,gt);var Bt=Zo(this,ni(this.doc,gt.line)),te=0,xe=(Bt.length-1)/2,je=gt.ch,De;if(je==0)De=Bt[2];else for(;;){var an=te+xe>>1;if((an?Bt[an*2-1]:0)>=je)xe=an;else if(Bt[an*2+1]<je)te=an+1;else{De=Bt[an*2+2];break}}var Zn=De?De.indexOf("overlay "):-1;return Zn<0?De:Zn==0?null:De.slice(0,Zn-1)},getModeAt:function(gt){var Bt=this.doc.mode;return Bt.innerMode?it.innerMode(Bt,this.getTokenAt(gt).state).mode:Bt},getHelper:function(gt,Bt){return this.getHelpers(gt,Bt)[0]},getHelpers:function(gt,Bt){var te=[];if(!vt.hasOwnProperty(Bt))return te;var xe=vt[Bt],je=this.getModeAt(gt);if(typeof je[Bt]=="string")xe[je[Bt]]&&te.push(xe[je[Bt]]);else if(je[Bt])for(var De=0;De<je[Bt].length;De++){var an=xe[je[Bt][De]];an&&te.push(an)}else je.helperType&&xe[je.helperType]?te.push(xe[je.helperType]):xe[je.name]&&te.push(xe[je.name]);for(var Zn=0;Zn<xe._global.length;Zn++){var xn=xe._global[Zn];xn.pred(je,this)&&Se(te,xn.val)==-1&&te.push(xn.val)}return te},getStateAfter:function(gt,Bt){var te=this.doc;return gt=er(te,gt==null?te.first+te.size-1:gt),cs(this,gt+1,Bt).state},cursorCoords:function(gt,Bt){var te,xe=this.doc.sel.primary();return gt==null?te=xe.head:typeof gt=="object"?te=or(this.doc,gt):te=gt?xe.from():xe.to(),cl(this,te,Bt||"page")},charCoords:function(gt,Bt){return rh(this,or(this.doc,gt),Bt||"page")},coordsChar:function(gt,Bt){return gt=Ac(this,gt,Bt||"page"),Ah(this,gt.left,gt.top)},lineAtHeight:function(gt,Bt){return gt=Ac(this,{top:gt,left:0},Bt||"page").top,di(this.doc,gt+this.display.viewOffset)},heightAtLine:function(gt,Bt,te){var xe=!1,je;if(typeof gt=="number"){var De=this.doc.first+this.doc.size-1;gt<this.doc.first?gt=this.doc.first:gt>De&&(gt=De,xe=!0),je=ni(this.doc,gt)}else je=gt;return Dl(this,je,{top:0,left:0},Bt||"page",te||xe).top+(xe?this.doc.height-Es(je):0)},defaultTextHeight:function(){return Uu(this.display)},defaultCharWidth:function(){return fh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(gt,Bt,te,xe,je){var De=this.display;gt=cl(this,or(this.doc,gt));var an=gt.bottom,Zn=gt.left;if(Bt.style.position="absolute",Bt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Bt),De.sizer.appendChild(Bt),xe=="over")an=gt.top;else if(xe=="above"||xe=="near"){var xn=Math.max(De.wrapper.clientHeight,this.doc.height),Mi=Math.max(De.sizer.clientWidth,De.lineSpace.clientWidth);(xe=="above"||gt.bottom+Bt.offsetHeight>xn)&&gt.top>Bt.offsetHeight?an=gt.top-Bt.offsetHeight:gt.bottom+Bt.offsetHeight<=xn&&(an=gt.bottom),Zn+Bt.offsetWidth>Mi&&(Zn=Mi-Bt.offsetWidth)}Bt.style.top=an+"px",Bt.style.left=Bt.style.right="",je=="right"?(Zn=De.sizer.clientWidth-Bt.offsetWidth,Bt.style.right="0px"):(je=="left"?Zn=0:je=="middle"&&(Zn=(De.sizer.clientWidth-Bt.offsetWidth)/2),Bt.style.left=Zn+"px"),te&&Fe(this,{left:Zn,top:an,right:Zn+Bt.offsetWidth,bottom:an+Bt.offsetHeight})},triggerOnKeyDown:Xn(FA),triggerOnKeyPress:Xn(rc),triggerOnKeyUp:lf,triggerOnMouseDown:Xn(Rh),execCommand:function(gt){if(Bu.hasOwnProperty(gt))return Bu[gt].call(null,this)},triggerElectric:Xn(function(gt){Vd(this,gt)}),findPosH:function(gt,Bt,te,xe){var je=1;Bt<0&&(je=-1,Bt=-Bt);for(var De=or(this.doc,gt),an=0;an<Bt&&(De=Ld(this.doc,De,je,te,xe),!De.hitSide);++an);return De},moveH:Xn(function(gt,Bt){var te=this;this.extendSelectionsBy(function(xe){return te.display.shift||te.doc.extend||xe.empty()?Ld(te.doc,xe.head,gt,Bt,te.options.rtlMoveVisually):gt<0?xe.from():xe.to()},Wn)}),deleteH:Xn(function(gt,Bt){var te=this.doc.sel,xe=this.doc;te.somethingSelected()?xe.replaceSelection("",null,"+delete"):cu(this,function(je){var De=Ld(xe,je.head,gt,Bt,!1);return gt<0?{from:De,to:je.head}:{from:je.head,to:De}})}),findPosV:function(gt,Bt,te,xe){var je=1,De=xe;Bt<0&&(je=-1,Bt=-Bt);for(var an=or(this.doc,gt),Zn=0;Zn<Bt;++Zn){var xn=cl(this,an,"div");if(De==null?De=xn.left:xn.left=De,an=Oc(this,xn,je,te),an.hitSide)break}return an},moveV:Xn(function(gt,Bt){var te=this,xe=this.doc,je=[],De=!this.display.shift&&!xe.extend&&xe.sel.somethingSelected();if(xe.extendSelectionsBy(function(Zn){if(De)return gt<0?Zn.from():Zn.to();var xn=cl(te,Zn.head,"div");Zn.goalColumn!=null&&(xn.left=Zn.goalColumn),je.push(xn.left);var Mi=Oc(te,xn,gt,Bt);return Bt=="page"&&Zn==xe.sel.primary()&&pn(te,rh(te,Mi,"div").top-xn.top),Mi},Wn),je.length)for(var an=0;an<xe.sel.ranges.length;an++)xe.sel.ranges[an].goalColumn=je[an]}),findWordAt:function(gt){var Bt=this.doc,te=ni(Bt,gt.line).text,xe=gt.ch,je=gt.ch;if(te){var De=this.getHelper(gt,"wordChars");(gt.sticky=="before"||je==te.length)&&xe?--xe:++je;for(var an=te.charAt(xe),Zn=pt(an,De)?function(xn){return pt(xn,De)}:/\s/.test(an)?function(xn){return/\s/.test(xn)}:function(xn){return!/\s/.test(xn)&&!pt(xn)};xe>0&&Zn(te.charAt(xe-1));)--xe;for(;je<te.length&&Zn(te.charAt(je));)++je}return new zr(ii(gt.line,xe),ii(gt.line,je))},toggleOverwrite:function(gt){gt!=null&&gt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ge(this.display.cursorDiv,"CodeMirror-overwrite"):Ht(this.display.cursorDiv,"CodeMirror-overwrite"),Rn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Vt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Xn(function(gt,Bt){Nn(this,gt,Bt)}),getScrollInfo:function(){var gt=this.display.scroller;return{left:gt.scrollLeft,top:gt.scrollTop,height:gt.scrollHeight-tu(this)-this.display.barHeight,width:gt.scrollWidth-tu(this)-this.display.barWidth,clientHeight:No(this),clientWidth:Pl(this)}},scrollIntoView:Xn(function(gt,Bt){gt==null?(gt={from:this.doc.sel.primary().head,to:null},Bt==null&&(Bt=this.options.cursorScrollMargin)):typeof gt=="number"?gt={from:ii(gt,0),to:null}:gt.from==null&&(gt={from:gt,to:null}),gt.to||(gt.to=gt.from),gt.margin=Bt||0,gt.from.line!=null?He(this,gt):Yn(this,gt.from,gt.to,gt.margin)}),setSize:Xn(function(gt,Bt){var te=this,xe=function(De){return typeof De=="number"||/^\d+$/.test(String(De))?De+"px":De};gt!=null&&(this.display.wrapper.style.width=xe(gt)),Bt!=null&&(this.display.wrapper.style.height=xe(Bt)),this.options.lineWrapping&&el(this);var je=this.display.viewFrom;this.doc.iter(je,this.display.viewTo,function(De){if(De.widgets){for(var an=0;an<De.widgets.length;an++)if(De.widgets[an].noHScroll){sa(te,je,"widget");break}}++je}),this.curOp.forceUpdate=!0,Rn(this,"refresh",this)}),operation:function(gt){return hn(this,gt)},startOperation:function(){return Qn(this)},endOperation:function(){return $n(this)},refresh:Xn(function(){var gt=this.display.cachedTextHeight;bl(this),this.curOp.forceUpdate=!0,ll(this),Nn(this,this.doc.scrollLeft,this.doc.scrollTop),Ar(this.display),(gt==null||Math.abs(gt-Uu(this.display))>.5||this.options.lineWrapping)&&gs(this),Rn(this,"refresh",this)}),swapDoc:Xn(function(gt){var Bt=this.doc;return Bt.cm=null,this.state.selectingText&&this.state.selectingText(),Po(this,gt),ll(this),this.display.input.reset(),Nn(this,gt.scrollLeft,gt.scrollTop),this.curOp.forceScroll=!0,Hr(this,"swapDoc",this,Bt),Bt}),phrase:function(gt){var Bt=this.options.phrases;return Bt&&Object.prototype.hasOwnProperty.call(Bt,gt)?Bt[gt]:gt},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}},Sr(it),it.registerHelper=function(gt,Bt,te){vt.hasOwnProperty(gt)||(vt[gt]=it[gt]={_global:[]}),vt[gt][Bt]=te},it.registerGlobalHelper=function(gt,Bt,te,xe){it.registerHelper(gt,Bt,xe),vt[gt]._global.push({pred:te,val:xe})}}function Ld(it,st,vt,gt,Bt){var te=st,xe=vt,je=ni(it,st.line),De=Bt&&it.direction=="rtl"?-vt:vt;function an(){var $o=st.line+De;return $o<it.first||$o>=it.first+it.size?!1:(st=new ii($o,st.ch,st.sticky),je=ni(it,$o))}function Zn($o){var Oo;if(gt=="codepoint"){var ss=je.text.charCodeAt(st.ch+(gt>0?0:-1));isNaN(ss)?Oo=null:Oo=new ii(st.line,Math.max(0,Math.min(je.text.length,st.ch+vt*(ss>=55296&&ss<56320?2:1))),-vt)}else Bt?Oo=hl(it.cm,je,st,vt):Oo=du(je,st,vt);if(Oo==null)if(!$o&&an())st=xa(Bt,it.cm,je,st.line,De);else return!1;else st=Oo;return!0}if(gt=="char"||gt=="codepoint")Zn();else if(gt=="column")Zn(!0);else if(gt=="word"||gt=="group")for(var xn=null,Mi=gt=="group",bi=it.cm&&it.cm.getHelper(st,"wordChars"),Mr=!0;!(vt<0&&!Zn(!Mr));Mr=!1){var jr=je.text.charAt(st.ch)||`
`,qr=pt(jr,bi)?"w":Mi&&jr==`
`?"n":!Mi||/\s/.test(jr)?null:"p";if(Mi&&!Mr&&!qr&&(qr="s"),xn&&xn!=qr){vt<0&&(vt=1,Zn(),st.sticky="after");break}if(qr&&(xn=qr),vt>0&&!Zn(!Mr))break}var Co=oh(it,st,te,xe,!0);return dr(te,Co)&&(Co.hitSide=!0),Co}function Oc(it,st,vt,gt){var Bt=it.doc,te=st.left,xe;if(gt=="page"){var je=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),De=Math.max(je-.5*Uu(it.display),3);xe=(vt>0?st.bottom:st.top)+vt*De}else gt=="line"&&(xe=vt>0?st.bottom+3:st.top-3);for(var an;an=Ah(it,te,xe),!!an.outside;){if(vt<0?xe<=0:xe>=Bt.height){an.hitSide=!0;break}xe+=vt*5}return an}var Sa=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};Sa.prototype.init=function(it){var st=this,vt=this,gt=vt.cm,Bt=vt.div=it.lineDiv;dA(Bt,gt.options.spellcheck,gt.options.autocorrect,gt.options.autocapitalize);function te(je){for(var De=je.target;De;De=De.parentNode){if(De==Bt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(De.className))break}return!1}An(Bt,"paste",function(je){!te(je)||Di(gt,je)||oc(je,gt)||Yt<=11&&setTimeout(Tn(gt,function(){return st.updateFromDOM()}),20)}),An(Bt,"compositionstart",function(je){st.composing={data:je.data,done:!1}}),An(Bt,"compositionupdate",function(je){st.composing||(st.composing={data:je.data,done:!1})}),An(Bt,"compositionend",function(je){st.composing&&(je.data!=st.composing.data&&st.readFromDOMSoon(),st.composing.done=!0)}),An(Bt,"touchstart",function(){return vt.forceCompositionEnd()}),An(Bt,"input",function(){st.composing||st.readFromDOMSoon()});function xe(je){if(!(!te(je)||Di(gt,je))){if(gt.somethingSelected())wh({lineWise:!1,text:gt.getSelections()}),je.type=="cut"&&gt.replaceSelection("",null,"cut");else if(gt.options.lineWiseCopyCut){var De=cA(gt);wh({lineWise:!0,text:De.text}),je.type=="cut"&&gt.operation(function(){gt.setSelections(De.ranges,0,Ye),gt.replaceSelection("",null,"cut")})}else return;if(je.clipboardData){je.clipboardData.clearData();var an=Il.text.join(`
`);if(je.clipboardData.setData("Text",an),je.clipboardData.getData("Text")==an){je.preventDefault();return}}var Zn=AA(),xn=Zn.firstChild;gt.display.lineSpace.insertBefore(Zn,gt.display.lineSpace.firstChild),xn.value=Il.text.join(`
`);var Mi=document.activeElement;Ne(xn),setTimeout(function(){gt.display.lineSpace.removeChild(Zn),Mi.focus(),Mi==Bt&&vt.showPrimarySelection()},50)}}An(Bt,"copy",xe),An(Bt,"cut",xe)},Sa.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Sa.prototype.prepareSelection=function(){var it=xd(this.cm,!1);return it.focus=document.activeElement==this.div,it},Sa.prototype.showSelection=function(it,st){!it||!this.cm.display.view.length||((it.focus||st)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Sa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Sa.prototype.showPrimarySelection=function(){var it=this.getSelection(),st=this.cm,vt=st.doc.sel.primary(),gt=vt.from(),Bt=vt.to();if(st.display.viewTo==st.display.viewFrom||gt.line>=st.display.viewTo||Bt.line<st.display.viewFrom){it.removeAllRanges();return}var te=_u(st,it.anchorNode,it.anchorOffset),xe=_u(st,it.focusNode,it.focusOffset);if(!(te&&!te.bad&&xe&&!xe.bad&&wi(vi(te,xe),gt)==0&&wi(yi(te,xe),Bt)==0)){var je=st.display.view,De=gt.line>=st.display.viewFrom&&mc(st,gt)||{node:je[0].measure.map[2],offset:0},an=Bt.line<st.display.viewTo&&mc(st,Bt);if(!an){var Zn=je[je.length-1].measure,xn=Zn.maps?Zn.maps[Zn.maps.length-1]:Zn.map;an={node:xn[xn.length-1],offset:xn[xn.length-2]-xn[xn.length-3]}}if(!De||!an){it.removeAllRanges();return}var Mi=it.rangeCount&&it.getRangeAt(0),bi;try{bi=qt(De.node,De.offset,an.offset,an.node)}catch(Mr){}bi&&(!Ft&&st.state.focused?(it.collapse(De.node,De.offset),bi.collapsed||(it.removeAllRanges(),it.addRange(bi))):(it.removeAllRanges(),it.addRange(bi)),Mi&&it.anchorNode==null?it.addRange(Mi):Ft&&this.startGracePeriod()),this.rememberSelection()}},Sa.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)},Sa.prototype.showMultipleSelections=function(it){ae(this.cm.display.cursorDiv,it.cursors),ae(this.cm.display.selectionDiv,it.selection)},Sa.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},Sa.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var st=it.getRangeAt(0).commonAncestorContainer;return ze(this.div,st)},Sa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Sa.prototype.blur=function(){this.div.blur()},Sa.prototype.getField=function(){return this.div},Sa.prototype.supportsTouch=function(){return!0},Sa.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():hn(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)},Sa.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},Sa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),st=this.cm;if(et&&Xt&&this.cm.display.gutterSpecs.length&&Zd(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var vt=_u(st,it.anchorNode,it.anchorOffset),gt=_u(st,it.focusNode,it.focusOffset);vt&&gt&&hn(st,function(){Ia(st.doc,Mo(vt,gt),Ye),(vt.bad||gt.bad)&&(st.curOp.selectionChanged=!0)})}}},Sa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,st=it.display,vt=it.doc.sel.primary(),gt=vt.from(),Bt=vt.to();if(gt.ch==0&&gt.line>it.firstLine()&&(gt=ii(gt.line-1,ni(it.doc,gt.line-1).length)),Bt.ch==ni(it.doc,Bt.line).text.length&&Bt.line<it.lastLine()&&(Bt=ii(Bt.line+1,0)),gt.line<st.viewFrom||Bt.line>st.viewTo-1)return!1;var te,xe,je;gt.line==st.viewFrom||(te=Ku(it,gt.line))==0?(xe=on(st.view[0].line),je=st.view[0].node):(xe=on(st.view[te].line),je=st.view[te-1].node.nextSibling);var De=Ku(it,Bt.line),an,Zn;if(De==st.view.length-1?(an=st.viewTo-1,Zn=st.lineDiv.lastChild):(an=on(st.view[De+1].line)-1,Zn=st.view[De+1].node.previousSibling),!je)return!1;for(var xn=it.doc.splitLines(_h(it,je,Zn,xe,an)),Mi=Ci(it.doc,ii(xe,0),ii(an,ni(it.doc,an).text.length));xn.length>1&&Mi.length>1;)if(nn(xn)==nn(Mi))xn.pop(),Mi.pop(),an--;else if(xn[0]==Mi[0])xn.shift(),Mi.shift(),xe++;else break;for(var bi=0,Mr=0,jr=xn[0],qr=Mi[0],Co=Math.min(jr.length,qr.length);bi<Co&&jr.charCodeAt(bi)==qr.charCodeAt(bi);)++bi;for(var $o=nn(xn),Oo=nn(Mi),ss=Math.min($o.length-(xn.length==1?bi:0),Oo.length-(Mi.length==1?bi:0));Mr<ss&&$o.charCodeAt($o.length-Mr-1)==Oo.charCodeAt(Oo.length-Mr-1);)++Mr;if(xn.length==1&&Mi.length==1&&xe==gt.line)for(;bi&&bi>gt.ch&&$o.charCodeAt($o.length-Mr-1)==Oo.charCodeAt(Oo.length-Mr-1);)bi--,Mr++;xn[xn.length-1]=$o.slice(0,$o.length-Mr).replace(/^\u200b+/,""),xn[0]=xn[0].slice(bi).replace(/\u200b+$/,"");var Ds=ii(xe,bi),Do=ii(an,Mi.length?nn(Mi).length-Mr:0);if(xn.length>1||xn[0]||wi(Ds,Do))return fc(it.doc,xn,Ds,Do,"+input"),!0},Sa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Sa.prototype.reset=function(){this.forceCompositionEnd()},Sa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Sa.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))},Sa.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&hn(this.cm,function(){return bl(it.cm)})},Sa.prototype.setUneditable=function(it){it.contentEditable="false"},Sa.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Tn(this.cm,Eh)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Sa.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Sa.prototype.onContextMenu=function(){},Sa.prototype.resetPosition=function(){},Sa.prototype.needsContentAttribute=!0;function mc(it,st){var vt=dh(it,st.line);if(!vt||vt.hidden)return null;var gt=ni(it.doc,st.line),Bt=al(vt,gt,st.line),te=Gn(gt,it.doc.direction),xe="left";if(te){var je=Ie(te,st.ch);xe=je%2?"right":"left"}var De=Vc(Bt.map,st.ch,xe);return De.offset=De.collapse=="right"?De.end:De.start,De}function Zd(it){for(var st=it;st;st=st.parentNode)if(/CodeMirror-gutter-wrapper/.test(st.className))return!0;return!1}function Jl(it,st){return st&&(it.bad=!0),it}function _h(it,st,vt,gt,Bt){var te="",xe=!1,je=it.doc.lineSeparator(),De=!1;function an(bi){return function(Mr){return Mr.id==bi}}function Zn(){xe&&(te+=je,De&&(te+=je),xe=De=!1)}function xn(bi){bi&&(Zn(),te+=bi)}function Mi(bi){if(bi.nodeType==1){var Mr=bi.getAttribute("cm-text");if(Mr){xn(Mr);return}var jr=bi.getAttribute("cm-marker"),qr;if(jr){var Co=it.findMarks(ii(gt,0),ii(Bt+1,0),an(+jr));Co.length&&(qr=Co[0].find(0))&&xn(Ci(it.doc,qr.from,qr.to).join(je));return}if(bi.getAttribute("contenteditable")=="false")return;var $o=/^(pre|div|p|li|table|br)$/i.test(bi.nodeName);if(!/^br$/i.test(bi.nodeName)&&bi.textContent.length==0)return;$o&&Zn();for(var Oo=0;Oo<bi.childNodes.length;Oo++)Mi(bi.childNodes[Oo]);/^(pre|p)$/i.test(bi.nodeName)&&(De=!0),$o&&(xe=!0)}else bi.nodeType==3&&xn(bi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Mi(st),st!=vt;)st=st.nextSibling,De=!1;return te}function _u(it,st,vt){var gt;if(st==it.display.lineDiv){if(gt=it.display.lineDiv.childNodes[vt],!gt)return Jl(it.clipPos(ii(it.display.viewTo-1)),!0);st=null,vt=0}else for(gt=st;;gt=gt.parentNode){if(!gt||gt==it.display.lineDiv)return null;if(gt.parentNode&&gt.parentNode==it.display.lineDiv)break}for(var Bt=0;Bt<it.display.view.length;Bt++){var te=it.display.view[Bt];if(te.node==gt)return cd(te,st,vt)}}function cd(it,st,vt){var gt=it.text.firstChild,Bt=!1;if(!st||!ze(gt,st))return Jl(ii(on(it.line),0),!0);if(st==gt&&(Bt=!0,st=gt.childNodes[vt],vt=0,!st)){var te=it.rest?nn(it.rest):it.line;return Jl(ii(on(te),te.text.length),Bt)}var xe=st.nodeType==3?st:null,je=st;for(!xe&&st.childNodes.length==1&&st.firstChild.nodeType==3&&(xe=st.firstChild,vt&&(vt=xe.nodeValue.length));je.parentNode!=gt;)je=je.parentNode;var De=it.measure,an=De.maps;function Zn(qr,Co,$o){for(var Oo=-1;Oo<(an?an.length:0);Oo++)for(var ss=Oo<0?De.map:an[Oo],Ds=0;Ds<ss.length;Ds+=3){var Do=ss[Ds+2];if(Do==qr||Do==Co){var Js=on(Oo<0?it.line:it.rest[Oo]),_l=ss[Ds]+$o;return($o<0||Do!=qr)&&(_l=ss[Ds+($o?1:0)]),ii(Js,_l)}}}var xn=Zn(xe,je,vt);if(xn)return Jl(xn,Bt);for(var Mi=je.nextSibling,bi=xe?xe.nodeValue.length-vt:0;Mi;Mi=Mi.nextSibling){if(xn=Zn(Mi,Mi.firstChild,0),xn)return Jl(ii(xn.line,xn.ch-bi),Bt);bi+=Mi.textContent.length}for(var Mr=je.previousSibling,jr=vt;Mr;Mr=Mr.previousSibling){if(xn=Zn(Mr,Mr.firstChild,-1),xn)return Jl(ii(xn.line,xn.ch+jr),Bt);jr+=Mr.textContent.length}}var Rl=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new ie,this.hasSelection=!1,this.composing=null};Rl.prototype.init=function(it){var st=this,vt=this,gt=this.cm;this.createField(it);var Bt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Ct&&(Bt.style.width="0px"),An(Bt,"input",function(){ee&&Yt>=9&&st.hasSelection&&(st.hasSelection=null),vt.poll()}),An(Bt,"paste",function(xe){Di(gt,xe)||oc(xe,gt)||(gt.state.pasteIncoming=+new Date,vt.fastPoll())});function te(xe){if(!Di(gt,xe)){if(gt.somethingSelected())wh({lineWise:!1,text:gt.getSelections()});else if(gt.options.lineWiseCopyCut){var je=cA(gt);wh({lineWise:!0,text:je.text}),xe.type=="cut"?gt.setSelections(je.ranges,null,Ye):(vt.prevInput="",Bt.value=je.text.join(`
`),Ne(Bt))}else return;xe.type=="cut"&&(gt.state.cutIncoming=+new Date)}}An(Bt,"cut",te),An(Bt,"copy",te),An(it.scroller,"paste",function(xe){if(!(lu(it,xe)||Di(gt,xe))){if(!Bt.dispatchEvent){gt.state.pasteIncoming=+new Date,vt.focus();return}var je=new Event("paste");je.clipboardData=xe.clipboardData,Bt.dispatchEvent(je)}}),An(it.lineSpace,"selectstart",function(xe){lu(it,xe)||Nr(xe)}),An(Bt,"compositionstart",function(){var xe=gt.getCursor("from");vt.composing&&vt.composing.range.clear(),vt.composing={start:xe,range:gt.markText(xe,gt.getCursor("to"),{className:"CodeMirror-composing"})}}),An(Bt,"compositionend",function(){vt.composing&&(vt.poll(),vt.composing.range.clear(),vt.composing=null)})},Rl.prototype.createField=function(it){this.wrapper=AA(),this.textarea=this.wrapper.firstChild},Rl.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Rl.prototype.prepareSelection=function(){var it=this.cm,st=it.display,vt=it.doc,gt=xd(it);if(it.options.moveInputWithCursor){var Bt=cl(it,vt.sel.primary().head,"div"),te=st.wrapper.getBoundingClientRect(),xe=st.lineDiv.getBoundingClientRect();gt.teTop=Math.max(0,Math.min(st.wrapper.clientHeight-10,Bt.top+xe.top-te.top)),gt.teLeft=Math.max(0,Math.min(st.wrapper.clientWidth-10,Bt.left+xe.left-te.left))}return gt},Rl.prototype.showSelection=function(it){var st=this.cm,vt=st.display;ae(vt.cursorDiv,it.cursors),ae(vt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Rl.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var st=this.cm;if(st.somethingSelected()){this.prevInput="";var vt=st.getSelection();this.textarea.value=vt,st.state.focused&&Ne(this.textarea),ee&&Yt>=9&&(this.hasSelection=vt)}else it||(this.prevInput=this.textarea.value="",ee&&Yt>=9&&(this.hasSelection=null))}},Rl.prototype.getField=function(){return this.textarea},Rl.prototype.supportsTouch=function(){return!1},Rl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||Vt()!=this.textarea))try{this.textarea.focus()}catch(it){}},Rl.prototype.blur=function(){this.textarea.blur()},Rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Rl.prototype.receivedFocus=function(){this.slowPoll()},Rl.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Rl.prototype.fastPoll=function(){var it=!1,st=this;st.pollingFast=!0;function vt(){var gt=st.poll();!gt&&!it?(it=!0,st.polling.set(60,vt)):(st.pollingFast=!1,st.slowPoll())}st.polling.set(20,vt)},Rl.prototype.poll=function(){var it=this,st=this.cm,vt=this.textarea,gt=this.prevInput;if(this.contextMenuPending||!st.state.focused||Wt(vt)&&!gt&&!this.composing||st.isReadOnly()||st.options.disableInput||st.state.keySeq)return!1;var Bt=vt.value;if(Bt==gt&&!st.somethingSelected())return!1;if(ee&&Yt>=9&&this.hasSelection===Bt||lt&&/[\uf700-\uf7ff]/.test(Bt))return st.display.input.reset(),!1;if(st.doc.sel==st.display.selForContextMenu){var te=Bt.charCodeAt(0);if(te==8203&&!gt&&(gt="\u200B"),te==8666)return this.reset(),this.cm.execCommand("undo")}for(var xe=0,je=Math.min(gt.length,Bt.length);xe<je&&gt.charCodeAt(xe)==Bt.charCodeAt(xe);)++xe;return hn(st,function(){Eh(st,Bt.slice(xe),gt.length-xe,null,it.composing?"*compose":null),Bt.length>1e3||Bt.indexOf(`
`)>-1?vt.value=it.prevInput="":it.prevInput=Bt,it.composing&&(it.composing.range.clear(),it.composing.range=st.markText(it.composing.start,st.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Rl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Rl.prototype.onKeyPress=function(){ee&&Yt>=9&&(this.hasSelection=null),this.fastPoll()},Rl.prototype.onContextMenu=function(it){var st=this,vt=st.cm,gt=vt.display,Bt=st.textarea;st.contextMenuPending&&st.contextMenuPending();var te=Xu(vt,it),xe=gt.scroller.scrollTop;if(!te||Pt)return;var je=vt.options.resetSelectionOnContextMenu;je&&vt.doc.sel.contains(te)==-1&&Tn(vt,Ia)(vt.doc,Mo(te),Ye);var De=Bt.style.cssText,an=st.wrapper.style.cssText,Zn=st.wrapper.offsetParent.getBoundingClientRect();st.wrapper.style.cssText="position: static",Bt.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(it.clientY-Zn.top-5)+"px; left: "+(it.clientX-Zn.left-5)+`px;
z-index: 1000; background: `+(ee?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var xn;It&&(xn=window.scrollY),gt.input.focus(),It&&window.scrollTo(null,xn),gt.input.reset(),vt.somethingSelected()||(Bt.value=st.prevInput=" "),st.contextMenuPending=bi,gt.selForContextMenu=vt.doc.sel,clearTimeout(gt.detectingSelectAll);function Mi(){if(Bt.selectionStart!=null){var jr=vt.somethingSelected(),qr="\u200B"+(jr?Bt.value:"");Bt.value="\u21DA",Bt.value=qr,st.prevInput=jr?"":"\u200B",Bt.selectionStart=1,Bt.selectionEnd=qr.length,gt.selForContextMenu=vt.doc.sel}}function bi(){if(st.contextMenuPending==bi&&(st.contextMenuPending=!1,st.wrapper.style.cssText=an,Bt.style.cssText=De,ee&&Yt<9&&gt.scrollbars.setScrollTop(gt.scroller.scrollTop=xe),Bt.selectionStart!=null)){(!ee||ee&&Yt<9)&&Mi();var jr=0,qr=function(){gt.selForContextMenu==vt.doc.sel&&Bt.selectionStart==0&&Bt.selectionEnd>0&&st.prevInput=="\u200B"?Tn(vt,Va)(vt):jr++<10?gt.detectingSelectAll=setTimeout(qr,500):(gt.selForContextMenu=null,gt.input.reset())};gt.detectingSelectAll=setTimeout(qr,200)}}if(ee&&Yt>=9&&Mi(),Mt){Kr(it);var Mr=function(){qn(window,"mouseup",Mr),setTimeout(bi,20)};An(window,"mouseup",Mr)}else setTimeout(bi,50)},Rl.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Rl.prototype.setUneditable=function(){},Rl.prototype.needsContentAttribute=!1;function Yd(it,st){if(st=st?Re(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 vt=Vt();st.autofocus=vt==it||it.getAttribute("autofocus")!=null&&vt==document.body}function gt(){it.value=je.getValue()}var Bt;if(it.form&&(An(it.form,"submit",gt),!st.leaveSubmitMethodAlone)){var te=it.form;Bt=te.submit;try{var xe=te.submit=function(){gt(),te.submit=Bt,te.submit(),te.submit=xe}}catch(De){}}st.finishInit=function(De){De.save=gt,De.getTextArea=function(){return it},De.toTextArea=function(){De.toTextArea=isNaN,gt(),it.parentNode.removeChild(De.getWrapperElement()),it.style.display="",it.form&&(qn(it.form,"submit",gt),!st.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=Bt))}},it.style.display="none";var je=Us(function(De){return it.parentNode.insertBefore(De,it.nextSibling)},st);return je}function Eu(it){it.off=qn,it.on=An,it.wheelEventPixels=uo,it.Doc=vu,it.splitLines=ws,it.countColumn=ve,it.findColumn=fi,it.isWordChar=ft,it.Pass=Ln,it.signal=Rn,it.Line=Qo,it.changeEnd=hs,it.scrollbarModel=Ti,it.Pos=ii,it.cmpPos=wi,it.modes=ma,it.mimeModes=Ea,it.resolveMode=br,it.getMode=kn,it.modeExtensions=In,it.extendMode=Oe,it.copyState=hi,it.startState=fn,it.innerMode=Je,it.commands=Bu,it.keyMap=qu,it.keyName=Qd,it.isModifierKey=bd,it.lookupKey=th,it.normalizeKeyMap=ud,it.StringStream=Ke,it.SharedTextMarker=jh,it.TextMarker=jn,it.LineWidget=hu,it.e_preventDefault=Nr,it.e_stopPropagation=co,it.e_stop=Kr,it.addClass=Ge,it.contains=ze,it.rmClass=Ht,it.keyNames=Ys}_a(Us),kc(Us);var sc="iter insert remove copy getEditor constructor".split(" ");for(var $d in vu.prototype)vu.prototype.hasOwnProperty($d)&&Se(sc,$d)<0&&(Us.prototype[$d]=function(it){return function(){return it.apply(this.doc,arguments)}}(vu.prototype[$d]));return Sr(vu),Us.inputStyles={textarea:Rl,contenteditable:Sa},Us.defineMode=function(it){!Us.defaults.mode&&it!="null"&&(Us.defaults.mode=it),oa.apply(this,arguments)},Us.defineMIME=so,Us.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),Us.defineMIME("text/plain","null"),Us.defineExtension=function(it,st){Us.prototype[it]=st},Us.defineDocExtension=function(it,st){vu.prototype[it]=st},Us.fromTextArea=Yd,Eu(Us),Us.version="5.58.2",Us})},25419:function(ui,wn,bt){(function(Ft){Ft(bt(89780),bt(15525),bt(98101))})(function(Ft){"use strict";Ft.defineMode("markdown",function(ce,re){var Be=Ft.getMode(ce,"text/html"),ee=Be.name=="null";function Yt(ve){if(Ft.findModeByName){var ie=Ft.findModeByName(ve);ie&&(ve=ie.mime||ie.mimes[0])}var Se=Ft.getMode(ce,ve);return Se.name=="null"?null:Se}re.highlightFormatting===void 0&&(re.highlightFormatting=!1),re.maxBlockquoteDepth===void 0&&(re.maxBlockquoteDepth=0),re.taskLists===void 0&&(re.taskLists=!1),re.strikethrough===void 0&&(re.strikethrough=!1),re.emoji===void 0&&(re.emoji=!1),re.fencedCodeBlockHighlighting===void 0&&(re.fencedCodeBlockHighlighting=!0),re.fencedCodeBlockDefaultMode===void 0&&(re.fencedCodeBlockDefaultMode="text/plain"),re.xml===void 0&&(re.xml=!0),re.tokenTypeOverrides===void 0&&(re.tokenTypeOverrides={});var It={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 jt in It)It.hasOwnProperty(jt)&&re.tokenTypeOverrides[jt]&&(It[jt]=re.tokenTypeOverrides[jt]);var Xt=/^([*\-_])(?:\s*\1){2,}\s*$/,Pt=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,oe=/^\[(x| )\](?=\s)/i,zt=re.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Jt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ct=/^[^#!\[\]*_\\<>` "'(~:]+/,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 ut(ve,ie,Se){return ie.f=ie.inline=Se,Se(ve,ie)}function ct(ve,ie,Se){return ie.f=ie.block=Se,Se(ve,ie)}function wt(ve){return!ve||!/\S/.test(ve.string)}function Mt(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==Ht){var ie=ee;if(!ie){var Se=Ft.innerMode(Be,ve.htmlState);ie=Se.mode.name=="xml"&&Se.state.tagStart===null&&!Se.state.context&&Se.state.tokenize.isInText}ie&&(ve.f=be,ve.block=Ot,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function Ot(ve,ie){var Se=ve.column()===ie.indentation,Bn=wt(ie.prevLine.stream),Ln=ie.indentedCode,Ye=ie.prevLine.hr,Mn=ie.list!==!1,Wn=(ie.listStack[ie.listStack.length-1]||0)+3;ie.indentedCode=!1;var fi=ie.indentation;if(ie.indentationDiff===null&&(ie.indentationDiff=ie.indentation,Mn)){for(ie.list=null;fi<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=fi-ie.listStack[ie.listStack.length-1])}var Hn=!Bn&&!Ye&&!ie.prevLine.header&&(!Mn||!Ln)&&!ie.prevLine.fencedCodeEnd,xi=(ie.list===!1||Ye||Bn)&&ie.indentation<=Wn&&ve.match(Xt),nn=null;if(ie.indentationDiff>=4&&(Ln||ie.prevLine.fencedCodeEnd||ie.prevLine.header||Bn))return ve.skipToEnd(),ie.indentedCode=!0,It.code;if(ve.eatSpace())return null;if(Se&&ie.indentation<=Wn&&(nn=ve.match(zt))&&nn[1].length<=6)return ie.quote=0,ie.header=nn[1].length,ie.thisLine.header=!0,re.highlightFormatting&&(ie.formatting="header"),ie.f=ie.inline,ae(ie);if(ie.indentation<=Wn&&ve.eat(">"))return ie.quote=Se?1:ie.quote+1,re.highlightFormatting&&(ie.formatting="quote"),ve.eatSpace(),ae(ie);if(!xi&&!ie.setext&&Se&&ie.indentation<=Wn&&(nn=ve.match(Pt))){var Fi=nn[1]?"ol":"ul";return ie.indentation=fi+ve.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,re.taskLists&&ve.match(oe,!1)&&(ie.taskList=!0),ie.f=ie.inline,re.highlightFormatting&&(ie.formatting=["list","list-"+Fi]),ae(ie)}else{if(Se&&ie.indentation<=Wn&&(nn=ve.match(et,!0)))return ie.quote=0,ie.fencedEndRE=new RegExp(nn[1]+"+ *$"),ie.localMode=re.fencedCodeBlockHighlighting&&Yt(nn[2]||re.fencedCodeBlockDefaultMode),ie.localMode&&(ie.localState=Ft.startState(ie.localMode)),ie.f=ie.block=ne,re.highlightFormatting&&(ie.formatting="code-block"),ie.code=-1,ae(ie);if(ie.setext||(!Hn||!Mn)&&!ie.quote&&ie.list===!1&&!ie.code&&!xi&&!tt.test(ve.string)&&(nn=ve.lookAhead(1))&&(nn=nn.match(Jt)))return ie.setext?(ie.header=ie.setext,ie.setext=0,ve.skipToEnd(),re.highlightFormatting&&(ie.formatting="header")):(ie.header=nn[0].charAt(0)=="="?1:2,ie.setext=ie.header),ie.thisLine.header=!0,ie.f=ie.inline,ae(ie);if(xi)return ve.skipToEnd(),ie.hr=!0,ie.thisLine.hr=!0,It.hr;if(ve.peek()==="[")return ut(ve,ie,_e)}return ut(ve,ie,ie.inline)}function Ht(ve,ie){var Se=Be.token(ve,ie.htmlState);if(!ee){var Bn=Ft.innerMode(Be,ie.htmlState);(Bn.mode.name=="xml"&&Bn.state.tagStart===null&&!Bn.state.context&&Bn.state.tokenize.isInText||ie.md_inside&&ve.current().indexOf(">")>-1)&&(ie.f=be,ie.block=Ot,ie.htmlState=null)}return Se}function ne(ve,ie){var Se=ie.listStack[ie.listStack.length-1]||0,Bn=ie.indentation<Se,Ln=Se+3;if(ie.fencedEndRE&&ie.indentation<=Ln&&(Bn||ve.match(ie.fencedEndRE))){re.highlightFormatting&&(ie.formatting="code-block");var Ye;return Bn||(Ye=ae(ie)),ie.localMode=ie.localState=null,ie.block=Ot,ie.f=be,ie.fencedEndRE=null,ie.code=0,ie.thisLine.fencedCodeEnd=!0,Bn?ct(ve,ie,ie.block):Ye}else return ie.localMode?ie.localMode.token(ve,ie.localState):(ve.skipToEnd(),It.code)}function ae(ve){var ie=[];if(ve.formatting){ie.push(It.formatting),typeof ve.formatting=="string"&&(ve.formatting=[ve.formatting]);for(var Se=0;Se<ve.formatting.length;Se++)ie.push(It.formatting+"-"+ve.formatting[Se]),ve.formatting[Se]==="header"&&ie.push(It.formatting+"-"+ve.formatting[Se]+"-"+ve.header),ve.formatting[Se]==="quote"&&(!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=ve.quote?ie.push(It.formatting+"-"+ve.formatting[Se]+"-"+ve.quote):ie.push("error"))}if(ve.taskOpen)return ie.push("meta"),ie.length?ie.join(" "):null;if(ve.taskClosed)return ie.push("property"),ie.length?ie.join(" "):null;if(ve.linkHref?ie.push(It.linkHref,"url"):(ve.strong&&ie.push(It.strong),ve.em&&ie.push(It.em),ve.strikethrough&&ie.push(It.strikethrough),ve.emoji&&ie.push(It.emoji),ve.linkText&&ie.push(It.linkText),ve.code&&ie.push(It.code),ve.image&&ie.push(It.image),ve.imageAltText&&ie.push(It.imageAltText,"link"),ve.imageMarker&&ie.push(It.imageMarker)),ve.header&&ie.push(It.header,It.header+"-"+ve.header),ve.quote&&(ie.push(It.quote),!re.maxBlockquoteDepth||re.maxBlockquoteDepth>=ve.quote?ie.push(It.quote+"-"+ve.quote):ie.push(It.quote+"-"+re.maxBlockquoteDepth)),ve.list!==!1){var Bn=(ve.listStack.length-1)%3;Bn?Bn===1?ie.push(It.list2):ie.push(It.list3):ie.push(It.list1)}return ve.trailingSpaceNewLine?ie.push("trailing-space-new-line"):ve.trailingSpace&&ie.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),ie.length?ie.join(" "):null}function de(ve,ie){if(ve.match(Ct,!0))return ae(ie)}function be(ve,ie){var Se=ie.text(ve,ie);if(typeof Se!="undefined")return Se;if(ie.list)return ie.list=null,ae(ie);if(ie.taskList){var Bn=ve.match(oe,!0)[1]===" ";return Bn?ie.taskOpen=!0:ie.taskClosed=!0,re.highlightFormatting&&(ie.formatting="task"),ie.taskList=!1,ae(ie)}if(ie.taskOpen=!1,ie.taskClosed=!1,ie.header&&ve.match(/^#+$/,!0))return re.highlightFormatting&&(ie.formatting="header"),ae(ie);var Ln=ve.next();if(ie.linkTitle){ie.linkTitle=!1;var Ye=Ln;Ln==="("&&(Ye=")"),Ye=(Ye+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Mn="^\\s*(?:[^"+Ye+"\\\\]+|\\\\\\\\|\\\\.)"+Ye;if(ve.match(new RegExp(Mn),!0))return It.linkHref}if(Ln==="`"){var Wn=ie.formatting;re.highlightFormatting&&(ie.formatting="code"),ve.eatWhile("`");var fi=ve.current().length;if(ie.code==0&&(!ie.quote||fi==1))return ie.code=fi,ae(ie);if(fi==ie.code){var Hn=ae(ie);return ie.code=0,Hn}else return ie.formatting=Wn,ae(ie)}else if(ie.code)return ae(ie);if(Ln==="\\"&&(ve.next(),re.highlightFormatting)){var xi=ae(ie),nn=It.formatting+"-escape";return xi?xi+" "+nn:nn}if(Ln==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ie.imageMarker=!0,ie.image=!0,re.highlightFormatting&&(ie.formatting="image"),ae(ie);if(Ln==="["&&ie.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ie.imageMarker=!1,ie.imageAltText=!0,re.highlightFormatting&&(ie.formatting="image"),ae(ie);if(Ln==="]"&&ie.imageAltText){re.highlightFormatting&&(ie.formatting="image");var xi=ae(ie);return ie.imageAltText=!1,ie.image=!1,ie.inline=ie.f=ze,xi}if(Ln==="["&&!ie.image)return ie.linkText&&ve.match(/^.*?\]/)||(ie.linkText=!0,re.highlightFormatting&&(ie.formatting="link")),ae(ie);if(Ln==="]"&&ie.linkText){re.highlightFormatting&&(ie.formatting="link");var xi=ae(ie);return ie.linkText=!1,ie.inline=ie.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?ze:be,xi}if(Ln==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ie.f=ie.inline=qt,re.highlightFormatting&&(ie.formatting="link");var xi=ae(ie);return xi?xi+=" ":xi="",xi+It.linkInline}if(Ln==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ie.f=ie.inline=qt,re.highlightFormatting&&(ie.formatting="link");var xi=ae(ie);return xi?xi+=" ":xi="",xi+It.linkEmail}if(re.xml&&Ln==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Fi=ve.string.indexOf(">",ve.pos);if(Fi!=-1){var ki=ve.string.substring(ve.start,Fi);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ki)&&(ie.md_inside=!0)}return ve.backUp(1),ie.htmlState=Ft.startState(Be),ct(ve,ie,Ht)}if(re.xml&&Ln==="<"&&ve.match(/^\/\w*?>/))return ie.md_inside=!1,"tag";if(Ln==="*"||Ln==="_"){for(var Nt=1,Dt=ve.pos==1?" ":ve.string.charAt(ve.pos-2);Nt<3&&ve.eat(Ln);)Nt++;var mt=ve.peek()||" ",ft=!/\s/.test(mt)&&(!lt.test(mt)||/\s/.test(Dt)||lt.test(Dt)),pt=!/\s/.test(Dt)&&(!lt.test(Dt)||/\s/.test(mt)||lt.test(mt)),At=null,ue=null;if(Nt%2&&(!ie.em&&ft&&(Ln==="*"||!pt||lt.test(Dt))?At=!0:ie.em==Ln&&pt&&(Ln==="*"||!ft||lt.test(mt))&&(At=!1)),Nt>1&&(!ie.strong&&ft&&(Ln==="*"||!pt||lt.test(Dt))?ue=!0:ie.strong==Ln&&pt&&(Ln==="*"||!ft||lt.test(mt))&&(ue=!1)),ue!=null||At!=null){re.highlightFormatting&&(ie.formatting=At==null?"strong":ue==null?"em":"strong em"),At===!0&&(ie.em=Ln),ue===!0&&(ie.strong=Ln);var Hn=ae(ie);return At===!1&&(ie.em=!1),ue===!1&&(ie.strong=!1),Hn}}else if(Ln===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return ae(ie);ve.backUp(1)}if(re.strikethrough){if(Ln==="~"&&ve.eatWhile(Ln)){if(ie.strikethrough){re.highlightFormatting&&(ie.formatting="strikethrough");var Hn=ae(ie);return ie.strikethrough=!1,Hn}else if(ve.match(/^[^\s]/,!1))return ie.strikethrough=!0,re.highlightFormatting&&(ie.formatting="strikethrough"),ae(ie)}else if(Ln===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return ae(ie);ve.backUp(2)}}if(re.emoji&&Ln===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ie.emoji=!0,re.highlightFormatting&&(ie.formatting="emoji");var we=ae(ie);return ie.emoji=!1,we}return Ln===" "&&(ve.match(/^ +$/,!1)?ie.trailingSpace++:ie.trailingSpace&&(ie.trailingSpaceNewLine=!0)),ae(ie)}function qt(ve,ie){var Se=ve.next();if(Se===">"){ie.f=ie.inline=be,re.highlightFormatting&&(ie.formatting="link");var Bn=ae(ie);return Bn?Bn+=" ":Bn="",Bn+It.linkInline}return ve.match(/^[^>]+/,!0),It.linkInline}function ze(ve,ie){if(ve.eatSpace())return null;var Se=ve.next();return Se==="("||Se==="["?(ie.f=ie.inline=Ge(Se==="("?")":"]"),re.highlightFormatting&&(ie.formatting="link-string"),ie.linkHref=!0,ae(ie)):"error"}var Vt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ge(ve){return function(ie,Se){var Bn=ie.next();if(Bn===ve){Se.f=Se.inline=be,re.highlightFormatting&&(Se.formatting="link-string");var Ln=ae(Se);return Se.linkHref=!1,Ln}return ie.match(Vt[ve]),Se.linkHref=!0,ae(Se)}}function _e(ve,ie){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ie.f=Ne,ve.next(),re.highlightFormatting&&(ie.formatting="link"),ie.linkText=!0,ae(ie)):ut(ve,ie,be)}function Ne(ve,ie){if(ve.match(/^\]:/,!0)){ie.f=ie.inline=We,re.highlightFormatting&&(ie.formatting="link");var Se=ae(ie);return ie.linkText=!1,Se}return ve.match(/^([^\]\\]|\\.)+/,!0),It.linkText}function We(ve,ie){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?ie.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ie.f=ie.inline=be,It.linkHref+" url")}var Re={startState:function(){return{f:Ot,prevLine:{stream:null},thisLine:{stream:null},block:Ot,htmlState:null,indentation:0,inline:be,text:de,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(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&Ft.copyState(Be,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?Ft.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,ie){if(ie.formatting=!1,ve!=ie.thisLine.stream){if(ie.header=0,ie.hr=!1,ve.match(/^\s*$/,!0))return Mt(ie),null;if(ie.prevLine=ie.thisLine,ie.thisLine={stream:ve},ie.taskList=!1,ie.trailingSpace=0,ie.trailingSpaceNewLine=!1,!ie.localState&&(ie.f=ie.block,ie.f!=Ht)){var Se=ve.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(ie.indentation=Se,ie.indentationDiff=null,Se>0)return null}}return ie.f(ve,ie)},innerMode:function(ve){return ve.block==Ht?{state:ve.htmlState,mode:Be}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:Re}},indent:function(ve,ie,Se){return ve.block==Ht&&Be.indent?Be.indent(ve.htmlState,ie,Se):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,ie,Se):Ft.Pass},blankLine:Mt,getType:ae,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Re},"xml"),Ft.defineMIME("text/markdown","markdown"),Ft.defineMIME("text/x-markdown","markdown")})},98101:function(ui,wn,bt){(function(Ft){Ft(bt(89780))})(function(Ft){"use strict";Ft.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 ce=0;ce<Ft.modeInfo.length;ce++){var re=Ft.modeInfo[ce];re.mimes&&(re.mime=re.mimes[0])}Ft.findModeByMIME=function(Be){Be=Be.toLowerCase();for(var ee=0;ee<Ft.modeInfo.length;ee++){var Yt=Ft.modeInfo[ee];if(Yt.mime==Be)return Yt;if(Yt.mimes){for(var It=0;It<Yt.mimes.length;It++)if(Yt.mimes[It]==Be)return Yt}}if(/\+xml$/.test(Be))return Ft.findModeByMIME("application/xml");if(/\+json$/.test(Be))return Ft.findModeByMIME("application/json")},Ft.findModeByExtension=function(Be){Be=Be.toLowerCase();for(var ee=0;ee<Ft.modeInfo.length;ee++){var Yt=Ft.modeInfo[ee];if(Yt.ext){for(var It=0;It<Yt.ext.length;It++)if(Yt.ext[It]==Be)return Yt}}},Ft.findModeByFileName=function(Be){for(var ee=0;ee<Ft.modeInfo.length;ee++){var Yt=Ft.modeInfo[ee];if(Yt.file&&Yt.file.test(Be))return Yt}var It=Be.lastIndexOf("."),jt=It>-1&&Be.substring(It+1,Be.length);if(jt)return Ft.findModeByExtension(jt)},Ft.findModeByName=function(Be){Be=Be.toLowerCase();for(var ee=0;ee<Ft.modeInfo.length;ee++){var Yt=Ft.modeInfo[ee];if(Yt.name.toLowerCase()==Be)return Yt;if(Yt.alias){for(var It=0;It<Yt.alias.length;It++)if(Yt.alias[It].toLowerCase()==Be)return Yt}}}})},67549:function(ui,wn,bt){(function(Ft){Ft(bt(89780))})(function(Ft){"use strict";Ft.defineMode("stex",function(ce,re){"use strict";function Be(Ct,et){Ct.cmdState.push(et)}function ee(Ct){return Ct.cmdState.length>0?Ct.cmdState[Ct.cmdState.length-1]:null}function Yt(Ct){var et=Ct.cmdState.pop();et&&et.closeBracket()}function It(Ct){for(var et=Ct.cmdState,tt=et.length-1;tt>=0;tt--){var lt=et[tt];if(lt.name!="DEFAULT")return lt}return{styleIdentifier:function(){return null}}}function jt(Ct,et,tt){return function(){this.name=Ct,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 Xt={};Xt.importmodule=jt("importmodule","tag",["string","builtin"]),Xt.documentclass=jt("documentclass","tag",["","atom"]),Xt.usepackage=jt("usepackage","tag",["atom"]),Xt.begin=jt("begin","tag",["atom"]),Xt.end=jt("end","tag",["atom"]),Xt.label=jt("label","tag",["atom"]),Xt.ref=jt("ref","tag",["atom"]),Xt.eqref=jt("eqref","tag",["atom"]),Xt.cite=jt("cite","tag",["atom"]),Xt.bibitem=jt("bibitem","tag",["atom"]),Xt.Bibitem=jt("Bibitem","tag",["atom"]),Xt.RBibitem=jt("RBibitem","tag",["atom"]),Xt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Pt(Ct,et){Ct.f=et}function oe(Ct,et){var tt;if(Ct.match(/^\\[a-zA-Z@]+/)){var lt=Ct.current().slice(1);return tt=Xt.hasOwnProperty(lt)?Xt[lt]:Xt.DEFAULT,tt=new tt,Be(et,tt),Pt(et,Jt),tt.style}if(Ct.match(/^\\[$&%#{}_]/)||Ct.match(/^\\[,;!\/\\]/))return"tag";if(Ct.match("\\["))return Pt(et,function(ut,ct){return zt(ut,ct,"\\]")}),"keyword";if(Ct.match("\\("))return Pt(et,function(ut,ct){return zt(ut,ct,"\\)")}),"keyword";if(Ct.match("$$"))return Pt(et,function(ut,ct){return zt(ut,ct,"$$")}),"keyword";if(Ct.match("$"))return Pt(et,function(ut,ct){return zt(ut,ct,"$")}),"keyword";var rt=Ct.next();if(rt=="%")return Ct.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=ee(et),tt)tt.closeBracket(rt),Pt(et,Jt);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=Xt.DEFAULT,tt=new tt,Be(et,tt),"bracket"):/\d/.test(rt)?(Ct.eatWhile(/[\w.%]/),"atom"):(Ct.eatWhile(/[\w\-_]/),tt=It(et),tt.name=="begin"&&(tt.argument=Ct.current()),tt.styleIdentifier())}function zt(Ct,et,tt){if(Ct.eatSpace())return null;if(tt&&Ct.match(tt))return Pt(et,oe),"keyword";if(Ct.match(/^\\[a-zA-Z@]+/))return"tag";if(Ct.match(/^[a-zA-Z]+/))return"variable-2";if(Ct.match(/^\\[$&%#{}_]/)||Ct.match(/^\\[,;!\/]/)||Ct.match(/^[\^_&]/))return"tag";if(Ct.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ct.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var lt=Ct.next();return lt=="{"||lt=="}"||lt=="["||lt=="]"||lt=="("||lt==")"?"bracket":lt=="%"?(Ct.skipToEnd(),"comment"):"error"}function Jt(Ct,et){var tt=Ct.peek(),lt;return tt=="{"||tt=="["?(lt=ee(et),lt.openBracket(tt),Ct.eat(tt),Pt(et,oe),"bracket"):/[ \t\r]/.test(tt)?(Ct.eat(tt),null):(Pt(et,oe),Yt(et),oe(Ct,et))}return{startState:function(){var Ct=re.inMathMode?function(et,tt){return zt(et,tt)}:oe;return{cmdState:[],f:Ct}},copyState:function(Ct){return{cmdState:Ct.cmdState.slice(),f:Ct.f}},token:function(Ct,et){return et.f(Ct,et)},blankLine:function(Ct){Ct.f=oe,Ct.cmdState.length=0},lineComment:"%"}}),Ft.defineMIME("text/x-stex","stex"),Ft.defineMIME("text/x-latex","stex")})},15525:function(ui,wn,bt){(function(Ft){Ft(bt(89780))})(function(Ft){"use strict";var ce={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},re={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ft.defineMode("xml",function(Be,ee){var Yt=Be.indentUnit,It={},jt=ee.htmlMode?ce:re;for(var Xt in jt)It[Xt]=jt[Xt];for(var Xt in ee)It[Xt]=ee[Xt];var Pt,oe;function zt(qt,ze){function Vt(Ne){return ze.tokenize=Ne,Ne(qt,ze)}var Ge=qt.next();if(Ge=="<")return qt.eat("!")?qt.eat("[")?qt.match("CDATA[")?Vt(et("atom","]]>")):null:qt.match("--")?Vt(et("comment","-->")):qt.match("DOCTYPE",!0,!0)?(qt.eatWhile(/[\w\._\-]/),Vt(tt(1))):null:qt.eat("?")?(qt.eatWhile(/[\w\._\-]/),ze.tokenize=et("meta","?>"),"meta"):(Pt=qt.eat("/")?"closeTag":"openTag",ze.tokenize=Jt,"tag bracket");if(Ge=="&"){var _e;return qt.eat("#")?qt.eat("x")?_e=qt.eatWhile(/[a-fA-F\d]/)&&qt.eat(";"):_e=qt.eatWhile(/[\d]/)&&qt.eat(";"):_e=qt.eatWhile(/[\w\.\-:]/)&&qt.eat(";"),_e?"atom":"error"}else return qt.eatWhile(/[^&<]/),null}zt.isInText=!0;function Jt(qt,ze){var Vt=qt.next();if(Vt==">"||Vt=="/"&&qt.eat(">"))return ze.tokenize=zt,Pt=Vt==">"?"endTag":"selfcloseTag","tag bracket";if(Vt=="=")return Pt="equals",null;if(Vt=="<"){ze.tokenize=zt,ze.state=ct,ze.tagName=ze.tagStart=null;var Ge=ze.tokenize(qt,ze);return Ge?Ge+" tag error":"tag error"}else return/[\'\"]/.test(Vt)?(ze.tokenize=Ct(Vt),ze.stringStartCol=qt.column(),ze.tokenize(qt,ze)):(qt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ct(qt){var ze=function(Vt,Ge){for(;!Vt.eol();)if(Vt.next()==qt){Ge.tokenize=Jt;break}return"string"};return ze.isInAttribute=!0,ze}function et(qt,ze){return function(Vt,Ge){for(;!Vt.eol();){if(Vt.match(ze)){Ge.tokenize=zt;break}Vt.next()}return qt}}function tt(qt){return function(ze,Vt){for(var Ge;(Ge=ze.next())!=null;){if(Ge=="<")return Vt.tokenize=tt(qt+1),Vt.tokenize(ze,Vt);if(Ge==">")if(qt==1){Vt.tokenize=zt;break}else return Vt.tokenize=tt(qt-1),Vt.tokenize(ze,Vt)}return"meta"}}function lt(qt,ze,Vt){this.prev=qt.context,this.tagName=ze,this.indent=qt.indented,this.startOfLine=Vt,(It.doNotIndent.hasOwnProperty(ze)||qt.context&&qt.context.noIndent)&&(this.noIndent=!0)}function rt(qt){qt.context&&(qt.context=qt.context.prev)}function ut(qt,ze){for(var Vt;;){if(!qt.context||(Vt=qt.context.tagName,!It.contextGrabbers.hasOwnProperty(Vt)||!It.contextGrabbers[Vt].hasOwnProperty(ze)))return;rt(qt)}}function ct(qt,ze,Vt){return qt=="openTag"?(Vt.tagStart=ze.column(),wt):qt=="closeTag"?Mt:ct}function wt(qt,ze,Vt){return qt=="word"?(Vt.tagName=ze.current(),oe="tag",ne):It.allowMissingTagName&&qt=="endTag"?(oe="tag bracket",ne(qt,ze,Vt)):(oe="error",wt)}function Mt(qt,ze,Vt){if(qt=="word"){var Ge=ze.current();return Vt.context&&Vt.context.tagName!=Ge&&It.implicitlyClosed.hasOwnProperty(Vt.context.tagName)&&rt(Vt),Vt.context&&Vt.context.tagName==Ge||It.matchClosing===!1?(oe="tag",Ot):(oe="tag error",Ht)}else return It.allowMissingTagName&&qt=="endTag"?(oe="tag bracket",Ot(qt,ze,Vt)):(oe="error",Ht)}function Ot(qt,ze,Vt){return qt!="endTag"?(oe="error",Ot):(rt(Vt),ct)}function Ht(qt,ze,Vt){return oe="error",Ot(qt,ze,Vt)}function ne(qt,ze,Vt){if(qt=="word")return oe="attribute",ae;if(qt=="endTag"||qt=="selfcloseTag"){var Ge=Vt.tagName,_e=Vt.tagStart;return Vt.tagName=Vt.tagStart=null,qt=="selfcloseTag"||It.autoSelfClosers.hasOwnProperty(Ge)?ut(Vt,Ge):(ut(Vt,Ge),Vt.context=new lt(Vt,Ge,_e==Vt.indented)),ct}return oe="error",ne}function ae(qt,ze,Vt){return qt=="equals"?de:(It.allowMissing||(oe="error"),ne(qt,ze,Vt))}function de(qt,ze,Vt){return qt=="string"?be:qt=="word"&&It.allowUnquoted?(oe="string",ne):(oe="error",ne(qt,ze,Vt))}function be(qt,ze,Vt){return qt=="string"?be:ne(qt,ze,Vt)}return{startState:function(qt){var ze={tokenize:zt,state:ct,indented:qt||0,tagName:null,tagStart:null,context:null};return qt!=null&&(ze.baseIndent=qt),ze},token:function(qt,ze){if(!ze.tagName&&qt.sol()&&(ze.indented=qt.indentation()),qt.eatSpace())return null;Pt=null;var Vt=ze.tokenize(qt,ze);return(Vt||Pt)&&Vt!="comment"&&(oe=null,ze.state=ze.state(Pt||Vt,qt,ze),oe&&(Vt=oe=="error"?Vt+" error":oe)),Vt},indent:function(qt,ze,Vt){var Ge=qt.context;if(qt.tokenize.isInAttribute)return qt.tagStart==qt.indented?qt.stringStartCol+1:qt.indented+Yt;if(Ge&&Ge.noIndent)return Ft.Pass;if(qt.tokenize!=Jt&&qt.tokenize!=zt)return Vt?Vt.match(/^(\s*)/)[0].length:0;if(qt.tagName)return It.multilineTagIndentPastTag!==!1?qt.tagStart+qt.tagName.length+2:qt.tagStart+Yt*(It.multilineTagIndentFactor||1);if(It.alignCDATA&&/<!\[CDATA\[/.test(ze))return 0;var _e=ze&&/^<(\/)?([\w_:\.-]*)/.exec(ze);if(_e&&_e[1])for(;Ge;)if(Ge.tagName==_e[2]){Ge=Ge.prev;break}else if(It.implicitlyClosed.hasOwnProperty(Ge.tagName))Ge=Ge.prev;else break;else if(_e)for(;Ge;){var Ne=It.contextGrabbers[Ge.tagName];if(Ne&&Ne.hasOwnProperty(_e[2]))Ge=Ge.prev;else break}for(;Ge&&Ge.prev&&!Ge.startOfLine;)Ge=Ge.prev;return Ge?Ge.indent+Yt:qt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:It.htmlMode?"html":"xml",helperType:It.htmlMode?"html":"xml",skipAttribute:function(qt){qt.state==de&&(qt.state=ne)},xmlCurrentTag:function(qt){return qt.tagName?{name:qt.tagName,close:qt.type=="closeTag"}:null},xmlCurrentContext:function(qt){for(var ze=[],Vt=qt.context;Vt;Vt=Vt.prev)Vt.tagName&&ze.push(Vt.tagName);return ze.reverse()}}}),Ft.defineMIME("text/xml","xml"),Ft.defineMIME("application/xml","xml"),Ft.mimeModes.hasOwnProperty("text/html")||Ft.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var Ft=Object.assign||function(tt){for(var lt=1;lt<arguments.length;lt++){var rt=arguments[lt];for(var ut in rt)Object.prototype.hasOwnProperty.call(rt,ut)&&(tt[ut]=rt[ut])}return tt},ce=function(){function tt(lt,rt){for(var ut=0;ut<rt.length;ut++){var ct=rt[ut];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(lt,ct.key,ct)}}return function(lt,rt,ut){return rt&&tt(lt.prototype,rt),ut&&tt(lt,ut),lt}}(),re=bt(59301),Be=oe(re),ee=bt(12708),Yt=oe(ee),It=bt(53291),jt=oe(It),Xt=bt(47242),Pt=bt(65429);function oe(tt){return tt&&tt.__esModule?tt:{default:tt}}function zt(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 Ct(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){Ct(lt,tt);function lt(rt){zt(this,lt);var ut=Jt(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,rt));return ut.getEchartsInstance=function(){return ut.echartsLib.getInstanceByDom(ut.echartsElement)||ut.echartsLib.init(ut.echartsElement,ut.props.theme,ut.props.opts)},ut.dispose=function(){if(ut.echartsElement){try{(0,Xt.clear)(ut.echartsElement)}catch(ct){console.warn(ct)}ut.echartsLib.dispose(ut.echartsElement)}},ut.rerender=function(){var ct=ut.props,wt=ct.onEvents,Mt=ct.onChartReady,Ot=ut.renderEchartDom();ut.bindEvents(Ot,wt||{}),typeof Mt=="function"&&ut.props.onChartReady(Ot),ut.echartsElement&&(0,Xt.bind)(ut.echartsElement,function(){try{Ot.resize()}catch(Ht){console.warn(Ht)}})},ut.bindEvents=function(ct,wt){var Mt=function(ne,ae){typeof ne=="string"&&typeof ae=="function"&&ct.on(ne,function(de){ae(de,ct)})};for(var Ot in wt)Object.prototype.hasOwnProperty.call(wt,Ot)&&Mt(Ot,wt[Ot])},ut.renderEchartDom=function(){var ct=ut.getEchartsInstance();return ct.setOption(ut.props.option,ut.props.notMerge||!1,ut.props.lazyUpdate||!1),ut.props.showLoading?ct.showLoading(ut.props.loadingOption||null):ct.hideLoading(),ct},ut.echartsLib=rt.echarts,ut.echartsElement=null,ut}return ce(lt,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(ut){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(ut,this.props))){if(!(0,jt.default)(ut.theme,this.props.theme)||!(0,jt.default)(ut.opts,this.props.opts)||!(0,jt.default)(ut.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var ct=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,jt.default)((0,Pt.pick)(this.props,ct),(0,Pt.pick)(ut,ct))){var wt=this.renderEchartDom();if(!(0,jt.default)(ut.style,this.props.style)||!(0,jt.default)(ut.className,this.props.className))try{wt.resize()}catch(Mt){console.warn(Mt)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var ut=this,ct=this.props,wt=ct.style,Mt=ct.className,Ot=Ft({height:300},wt);return Be.default.createElement("div",{ref:function(ne){ut.echartsElement=ne},style:Ot,className:"echarts-for-react "+Mt})}}]),lt}(re.Component);wn.default=et,et.propTypes={option:Yt.default.object.isRequired,echarts:Yt.default.object,notMerge:Yt.default.bool,lazyUpdate:Yt.default.bool,style:Yt.default.object,className:Yt.default.string,theme:Yt.default.oneOfType([Yt.default.string,Yt.default.object]),onChartReady:Yt.default.func,showLoading:Yt.default.bool,loadingOption:Yt.default.object,onEvents:Yt.default.object,opts:Yt.default.shape({devicePixelRatio:Yt.default.number,renderer:Yt.default.oneOf(["canvas","svg"]),width:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf([null,void 0,"auto"])]),height:Yt.default.oneOfType([Yt.default.number,Yt.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:Yt.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(ui,wn,bt){"use strict";var Ft;Ft={value:!0},wn.Z=void 0;var ce=bt(76411),re=Yt(ce),Be=bt(97774),ee=Yt(Be);function Yt(oe){return oe&&oe.__esModule?oe:{default:oe}}function It(oe,zt){if(!(oe instanceof zt))throw new TypeError("Cannot call a class as a function")}function jt(oe,zt){if(!oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zt&&(typeof zt=="object"||typeof zt=="function")?zt:oe}function Xt(oe,zt){if(typeof zt!="function"&&zt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof zt);oe.prototype=Object.create(zt&&zt.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),zt&&(Object.setPrototypeOf?Object.setPrototypeOf(oe,zt):oe.__proto__=zt)}var Pt=function(oe){Xt(zt,oe);function zt(Jt){It(this,zt);var Ct=jt(this,(zt.__proto__||Object.getPrototypeOf(zt)).call(this,Jt));return Ct.echartsLib=re.default,Ct}return zt}(ee.default);wn.Z=Pt},65429:function(ui,wn){"use strict";Object.defineProperty(wn,"__esModule",{value:!0});var bt=wn.pick=function(ce,re){var Be={};return re.forEach(function(ee){Be[ee]=ce[ee]}),Be}},86204:function(ui){"use strict";var wn=typeof Reflect=="object"?Reflect:null,bt=wn&&typeof wn.apply=="function"?wn.apply:function(ct,wt,Mt){return Function.prototype.apply.call(ct,wt,Mt)},Ft;wn&&typeof wn.ownKeys=="function"?Ft=wn.ownKeys:Object.getOwnPropertySymbols?Ft=function(ct){return Object.getOwnPropertyNames(ct).concat(Object.getOwnPropertySymbols(ct))}:Ft=function(ct){return Object.getOwnPropertyNames(ct)};function ce(ut){console&&console.warn&&console.warn(ut)}var re=Number.isNaN||function(ct){return ct!==ct};function Be(){Be.init.call(this)}ui.exports=Be,ui.exports.once=tt,Be.EventEmitter=Be,Be.prototype._events=void 0,Be.prototype._eventsCount=0,Be.prototype._maxListeners=void 0;var ee=10;function Yt(ut){if(typeof ut!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ut)}Object.defineProperty(Be,"defaultMaxListeners",{enumerable:!0,get:function(){return ee},set:function(ut){if(typeof ut!="number"||ut<0||re(ut))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ut+".");ee=ut}}),Be.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Be.prototype.setMaxListeners=function(ct){if(typeof ct!="number"||ct<0||re(ct))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ct+".");return this._maxListeners=ct,this};function It(ut){return ut._maxListeners===void 0?Be.defaultMaxListeners:ut._maxListeners}Be.prototype.getMaxListeners=function(){return It(this)},Be.prototype.emit=function(ct){for(var wt=[],Mt=1;Mt<arguments.length;Mt++)wt.push(arguments[Mt]);var Ot=ct==="error",Ht=this._events;if(Ht!==void 0)Ot=Ot&&Ht.error===void 0;else if(!Ot)return!1;if(Ot){var ne;if(wt.length>0&&(ne=wt[0]),ne instanceof Error)throw ne;var ae=new Error("Unhandled error."+(ne?" ("+ne.message+")":""));throw ae.context=ne,ae}var de=Ht[ct];if(de===void 0)return!1;if(typeof de=="function")bt(de,this,wt);else for(var be=de.length,qt=Jt(de,be),Mt=0;Mt<be;++Mt)bt(qt[Mt],this,wt);return!0};function jt(ut,ct,wt,Mt){var Ot,Ht,ne;if(Yt(wt),Ht=ut._events,Ht===void 0?(Ht=ut._events=Object.create(null),ut._eventsCount=0):(Ht.newListener!==void 0&&(ut.emit("newListener",ct,wt.listener?wt.listener:wt),Ht=ut._events),ne=Ht[ct]),ne===void 0)ne=Ht[ct]=wt,++ut._eventsCount;else if(typeof ne=="function"?ne=Ht[ct]=Mt?[wt,ne]:[ne,wt]:Mt?ne.unshift(wt):ne.push(wt),Ot=It(ut),Ot>0&&ne.length>Ot&&!ne.warned){ne.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+ne.length+" "+String(ct)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=ut,ae.type=ct,ae.count=ne.length,ce(ae)}return ut}Be.prototype.addListener=function(ct,wt){return jt(this,ct,wt,!1)},Be.prototype.on=Be.prototype.addListener,Be.prototype.prependListener=function(ct,wt){return jt(this,ct,wt,!0)};function Xt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Pt(ut,ct,wt){var Mt={fired:!1,wrapFn:void 0,target:ut,type:ct,listener:wt},Ot=Xt.bind(Mt);return Ot.listener=wt,Mt.wrapFn=Ot,Ot}Be.prototype.once=function(ct,wt){return Yt(wt),this.on(ct,Pt(this,ct,wt)),this},Be.prototype.prependOnceListener=function(ct,wt){return Yt(wt),this.prependListener(ct,Pt(this,ct,wt)),this},Be.prototype.removeListener=function(ct,wt){var Mt,Ot,Ht,ne,ae;if(Yt(wt),Ot=this._events,Ot===void 0)return this;if(Mt=Ot[ct],Mt===void 0)return this;if(Mt===wt||Mt.listener===wt)--this._eventsCount===0?this._events=Object.create(null):(delete Ot[ct],Ot.removeListener&&this.emit("removeListener",ct,Mt.listener||wt));else if(typeof Mt!="function"){for(Ht=-1,ne=Mt.length-1;ne>=0;ne--)if(Mt[ne]===wt||Mt[ne].listener===wt){ae=Mt[ne].listener,Ht=ne;break}if(Ht<0)return this;Ht===0?Mt.shift():Ct(Mt,Ht),Mt.length===1&&(Ot[ct]=Mt[0]),Ot.removeListener!==void 0&&this.emit("removeListener",ct,ae||wt)}return this},Be.prototype.off=Be.prototype.removeListener,Be.prototype.removeAllListeners=function(ct){var wt,Mt,Ot;if(Mt=this._events,Mt===void 0)return this;if(Mt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Mt[ct]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Mt[ct]),this;if(arguments.length===0){var Ht=Object.keys(Mt),ne;for(Ot=0;Ot<Ht.length;++Ot)ne=Ht[Ot],ne!=="removeListener"&&this.removeAllListeners(ne);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(wt=Mt[ct],typeof wt=="function")this.removeListener(ct,wt);else if(wt!==void 0)for(Ot=wt.length-1;Ot>=0;Ot--)this.removeListener(ct,wt[Ot]);return this};function oe(ut,ct,wt){var Mt=ut._events;if(Mt===void 0)return[];var Ot=Mt[ct];return Ot===void 0?[]:typeof Ot=="function"?wt?[Ot.listener||Ot]:[Ot]:wt?et(Ot):Jt(Ot,Ot.length)}Be.prototype.listeners=function(ct){return oe(this,ct,!0)},Be.prototype.rawListeners=function(ct){return oe(this,ct,!1)},Be.listenerCount=function(ut,ct){return typeof ut.listenerCount=="function"?ut.listenerCount(ct):zt.call(ut,ct)},Be.prototype.listenerCount=zt;function zt(ut){var ct=this._events;if(ct!==void 0){var wt=ct[ut];if(typeof wt=="function")return 1;if(wt!==void 0)return wt.length}return 0}Be.prototype.eventNames=function(){return this._eventsCount>0?Ft(this._events):[]};function Jt(ut,ct){for(var wt=new Array(ct),Mt=0;Mt<ct;++Mt)wt[Mt]=ut[Mt];return wt}function Ct(ut,ct){for(;ct+1<ut.length;ct++)ut[ct]=ut[ct+1];ut.pop()}function et(ut){for(var ct=new Array(ut.length),wt=0;wt<ct.length;++wt)ct[wt]=ut[wt].listener||ut[wt];return ct}function tt(ut,ct){return new Promise(function(wt,Mt){function Ot(ne){ut.removeListener(ct,Ht),Mt(ne)}function Ht(){typeof ut.removeListener=="function"&&ut.removeListener("error",Ot),wt([].slice.call(arguments))}rt(ut,ct,Ht,{once:!0}),ct!=="error"&&lt(ut,Ot,{once:!0})})}function lt(ut,ct,wt){typeof ut.on=="function"&&rt(ut,"error",ct,wt)}function rt(ut,ct,wt,Mt){if(typeof ut.on=="function")Mt.once?ut.once(ct,wt):ut.on(ct,wt);else if(typeof ut.addEventListener=="function")ut.addEventListener(ct,function Ot(Ht){Mt.once&&ut.removeEventListener(ct,Ot),wt(Ht)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ut)}},53291:function(ui){"use strict";var wn=Array.isArray,bt=Object.keys,Ft=Object.prototype.hasOwnProperty;ui.exports=function ce(re,Be){if(re===Be)return!0;if(re&&Be&&typeof re=="object"&&typeof Be=="object"){var ee=wn(re),Yt=wn(Be),It,jt,Xt;if(ee&&Yt){if(jt=re.length,jt!=Be.length)return!1;for(It=jt;It--!==0;)if(!ce(re[It],Be[It]))return!1;return!0}if(ee!=Yt)return!1;var Pt=re instanceof Date,oe=Be instanceof Date;if(Pt!=oe)return!1;if(Pt&&oe)return re.getTime()==Be.getTime();var zt=re instanceof RegExp,Jt=Be instanceof RegExp;if(zt!=Jt)return!1;if(zt&&Jt)return re.toString()==Be.toString();var Ct=bt(re);if(jt=Ct.length,jt!==bt(Be).length)return!1;for(It=jt;It--!==0;)if(!Ft.call(Be,Ct[It]))return!1;for(It=jt;It--!==0;)if(Xt=Ct[It],!ce(re[Xt],Be[Xt]))return!1;return!0}return re!==re&&Be!==Be}},12378:function(ui,wn,bt){"use strict";bt.d(wn,{$u:function(){return Xt},BD:function(){return Nt},E9:function(){return jt},FF:function(){return zo},FJ:function(){return ct},Hn:function(){return ut},KX:function(){return Mt},NB:function(){return Ue},S0:function(){return nn},UL:function(){return Pt},Vk:function(){return rt},Vm:function(){return Ie},YI:function(){return Fi},ZA:function(){return re},Zt:function(){return oe},al:function(){return At},bn:function(){return pt},bx:function(){return Dt},g2:function(){return ki},h1:function(){return de},hD:function(){return Sr},l4:function(){return Yt},rU:function(){return ke},s_:function(){return mt},uz:function(){return me},z6:function(){return zt}}),ui=bt.hmd(ui),function(){var Wt;function xs(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Ss(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:xs(a)}}function Ms(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var ma=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ea;if(typeof Object.setPrototypeOf=="function")Ea=Object.setPrototypeOf;else{var oa;t:{var so={a:!0},br={};try{br.__proto__=so,oa=br.a;break t}catch(a){}oa=!1}Ea=oa?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var kn=Ea;function In(a,y){if(a.prototype=ma(y.prototype),a.prototype.constructor=a,kn)kn(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 Oe=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},Je=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function fn(a,y){if(y){var x=Oe;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&&Je(x,a,{writable:!0,value:y})}}fn("Object.assign",function(a){return a||hi}),fn("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 Ke=typeof globalThis=="object"&&globalThis||typeof bt.g=="object"&&bt.g.global===bt.g&&bt.g||typeof self=="object"&&self.self===self&&self||{};Ke.requestAnimationFrame===void 0&&(Ke.setImmediate===void 0?Ke.requestAnimationFrame=function(a){Ke.setTimeout(a,0)}:Ke.requestAnimationFrame=Ke.setImmediate);function ni(){}function Ci(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ke.clearTimeout(x),x=_i(function(){x=-1,a.apply(b,E)},y)}}function _i(a,y){return Ke.setTimeout(a,y)}function qi(a){return Ke.document.createElement(a)}function on(a){throw Error(a)}function di(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),on(a)}function Vi(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),on(x+" is not in the range "+y+": "+a)}function kr(a){Ke.console&&Ke.console.log(a)}function ii(a){return typeof a=="object"&&a!==null}function wi(a){return Array.isArray(a)||Ke.NodeList&&a instanceof Ke.NodeList||Ke.HTMLCollection&&a instanceof Ke.HTMLCollection}function dr(a){return Array.prototype.slice.call(a)}function pi(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):on("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function yi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):on("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function vi(){var a=cs.pop();return a===void 0?[]:a}function er(a){a.length=0,cs.push(a)}function or(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(ii(a)&&a.constructor)return or(a.constructor);return typeof a}function Rr(a){var y=a;return ii(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 Zr(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 Xr(a,y,x){Object.defineProperty(Zt.prototype,a,{get:y,set:x})}function ei(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 _o=Ke.navigator!==void 0&&0<Ke.navigator.userAgent.indexOf("Trident/7"),Zo=Ke.navigator!==void 0&&Ke.navigator.platform!==void 0&&Ke.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,cs=[];Object.freeze([]),ni.className="Util",ni.Dx="32ab5ff3b26f42dc0ed90f21472913b5",ni.adym="gojs.net",ni.vfo="28e645fdb266",ni.className="Util";function ri(a,y,x){ns(this),this.j=a,this.xa=y,this.o=x}ri.prototype.toString=function(){return"EnumValue."+this.xa};function rr(a,y){return y==null||y===""?null:a[y]}Oe.Object.defineProperties(ri.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),ri.className="EnumValue";function Er(){this.ew=[]}Er.prototype.toString=function(){return this.ew.join("")},Er.prototype.add=function(a){a!==""&&this.ew.push(a)},Er.className="StringBuilder";function no(){}no.className="PropertyCollection";var Fr={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Ke.console&&Ke.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 Gr(){}Gr.prototype.reset=function(){},Gr.prototype.next=function(){return!1},Gr.prototype.Ad=function(){return!1},Gr.prototype.first=function(){return null},Gr.prototype.any=function(){return!1},Gr.prototype.all=function(){return!0},Gr.prototype.each=function(){return this},Gr.prototype.map=function(){return this},Gr.prototype.filter=function(){return this},Gr.prototype.de=function(){},Gr.prototype.toString=function(){return"EmptyIterator"},Oe.Object.defineProperties(Gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Gr.prototype.first=Gr.prototype.first,Gr.prototype.hasNext=Gr.prototype.Ad,Gr.prototype.next=Gr.prototype.next,Gr.prototype.reset=Gr.prototype.reset;var wo=null;Gr.className="EmptyIterator",wo=new Gr;function fo(a){this.key=-1,this.value=a}fo.prototype.reset=function(){this.key=-1},fo.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},fo.prototype.Ad=function(){return this.next()},fo.prototype.first=function(){return this.key=0,this.value},fo.prototype.any=function(a){return this.key=-1,a(this.value)},fo.prototype.all=function(a){return this.key=-1,a(this.value)},fo.prototype.each=function(a){return this.key=-1,a(this.value),this},fo.prototype.map=function(a){return new fo(a(this.value))},fo.prototype.filter=function(a){return a(this.value)?new fo(this.value):wo},fo.prototype.de=function(){this.value=null},fo.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Oe.Object.defineProperties(fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),fo.prototype.first=fo.prototype.first,fo.prototype.hasNext=fo.prototype.Ad,fo.prototype.next=fo.prototype.next,fo.prototype.reset=fo.prototype.reset,fo.className="SingletonIterator";function xo(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}xo.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},xo.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},xo.prototype.Ad=function(){return this.next()},xo.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},xo.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},xo.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},xo.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},xo.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 Si,a.s=x,a.xb(),a.iterator},xo.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 Si,a.s=x,a.xb(),a.iterator},xo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},xo.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Oe.Object.defineProperties(xo.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}}}),xo.prototype.first=xo.prototype.first,xo.prototype.hasNext=xo.prototype.Ad,xo.prototype.next=xo.prototype.next,xo.prototype.reset=xo.prototype.reset,xo.className="ListIterator";function _r(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}_r.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},_r.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)},_r.prototype.Ad=function(){return this.next()},_r.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},_r.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},_r.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},_r.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},_r.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 Si,a.s=x,a.xb(),a.iterator},_r.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 Si,a.s=x,a.xb(),a.iterator},_r.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},_r.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Oe.Object.defineProperties(_r.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),_r.prototype.first=_r.prototype.first,_r.prototype.hasNext=_r.prototype.Ad,_r.prototype.next=_r.prototype.next,_r.prototype.reset=_r.prototype.reset,_r.className="ListIteratorBackwards";function Si(a){ns(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&on("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Wt=Si.prototype,Wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return this._isFrozen=!1,this},Wt.toString=function(){return"List()#"+fs(this)},Wt.add=function(a){return a===null?this:(this._isFrozen&&di(this,a),this.s.push(a),this.xb(),this)},Wt.push=function(a){this.add(a)},Wt.addAll=function(a){if(a===null)return this;this._isFrozen&&di(this);var y=this.s;if(wi(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},Wt.clear=function(){this._isFrozen&&di(this),this.s.length=0,this.xb()},Wt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Wt.has=function(a){return this.contains(a)},Wt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Wt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Vi(a,"0 <= i < length",Si,"elt:i"),y[a]},Wt.get=function(a){return this.M(a)},Wt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Vi(a,"0 <= i < length",Si,"setElt:i"),this._isFrozen&&di(this,a),x[a]=y},Wt.set=function(a,y){this.cd(a,y)},Wt.first=function(){var a=this.s;return a.length===0?null:a[0]},Wt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Wt.pop=function(){this._isFrozen&&di(this);var a=this.s;return 0<a.length?a.pop():null},Si.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},Si.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},Si.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Si.prototype.map=function(a){for(var y=new Si,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Si.prototype.filter=function(a){for(var y=new Si,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},Wt=Si.prototype,Wt.Gb=function(a,y){0>a&&Vi(a,">= 0",Si,"insertAt:i"),this._isFrozen&&di(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Wt.remove=function(a){if(a===null)return!1;this._isFrozen&&di(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)},Wt.delete=function(a){return this.remove(a)},Wt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Vi(a,"0 <= i < length",Si,"removeAt:i"),this._isFrozen&&di(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Wt.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&&di(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Si.prototype.copy=function(){var a=new Si,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Wt=Si.prototype,Wt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Wt.Iv=function(){for(var a=new Pi,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Wt.sort=function(a){return this._isFrozen&&di(this),this.s.sort(a),this.xb(),this},Wt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&di(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Vi(y,"0 <= from < length",Si,"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},Wt.reverse=function(){return this._isFrozen&&di(this),this.s.reverse(),this.xb(),this},Oe.Object.defineProperties(Si.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 wo;var a=this.Sa;return a!==null?(a.reset(),a):new xo(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return wo;var a=this.Hg;return a!==null?(a.reset(),a):new _r(this)}}}),Si.prototype.reverse=Si.prototype.reverse,Si.prototype.sortRange=Si.prototype.zi,Si.prototype.sort=Si.prototype.sort,Si.prototype.toSet=Si.prototype.Iv,Si.prototype.toArray=Si.prototype.Fa,Si.prototype.removeRange=Si.prototype.removeRange,Si.prototype.removeAt=Si.prototype.mb,Si.prototype.delete=Si.prototype.delete,Si.prototype.remove=Si.prototype.remove,Si.prototype.insertAt=Si.prototype.Gb,Si.prototype.pop=Si.prototype.pop,Si.prototype.last=Si.prototype.jc,Si.prototype.first=Si.prototype.first,Si.prototype.set=Si.prototype.set,Si.prototype.setElt=Si.prototype.cd,Si.prototype.get=Si.prototype.get,Si.prototype.elt=Si.prototype.M,Si.prototype.indexOf=Si.prototype.indexOf,Si.prototype.has=Si.prototype.has,Si.prototype.contains=Si.prototype.contains,Si.prototype.clear=Si.prototype.clear,Si.prototype.addAll=Si.prototype.addAll,Si.prototype.push=Si.prototype.push,Si.prototype.add=Si.prototype.add,Si.prototype.thaw=Si.prototype.ka,Si.prototype.freeze=Si.prototype.freeze,Si.className="List";function Ho(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Ho.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Ho.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)},Ho.prototype.Ad=function(){return this.next()},Ho.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},Ho.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},Ho.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},Ho.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},Ho.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Si;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ho.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Si;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ho.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ho.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Oe.Object.defineProperties(Ho.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ho.prototype.first=Ho.prototype.first,Ho.prototype.hasNext=Ho.prototype.Ad,Ho.prototype.next=Ho.prototype.next,Ho.prototype.reset=Ho.prototype.reset,Ho.className="SetIterator";function Pi(a){ns(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&on("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Wt=Pi.prototype,Wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return this._isFrozen=!1,this},Wt.toString=function(){return"Set()#"+fs(this)},Wt.add=function(a){if(a===null)return this;this._isFrozen&&di(this,a);var y=a;return ii(a)&&(y=qs(a)),this.Tb[y]===void 0&&(this.Sb++,a=new us(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},Wt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&di(this),wi(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},Wt.contains=function(a){if(a===null)return!1;var y=a;return ii(a)&&(y=fs(a),y===void 0)?!1:this.Tb[y]!==void 0},Wt.has=function(a){return this.contains(a)},Wt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Wt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Wt.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},Wt=Pi.prototype,Wt.remove=function(a){if(a===null)return!1;this._isFrozen&&di(this,a);var y=a;if(ii(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},Wt.delete=function(a){return this.remove(a)},Wt.hp=function(a){if(a===null)return this;if(this._isFrozen&&di(this),wi(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},Wt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&di(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},Wt.clear=function(){this._isFrozen&&di(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 Si,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function ns(a){a.__gohashid=Hs++}function qs(a){var y=a.__gohashid;return y===void 0&&(y=Hs++,a.__gohashid=y),y}function fs(a){return a.__gohashid}Oe.Object.defineProperties(Pi.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return wo;var a=this.Sa;return a!==null?(a.reset(),a):new Ho(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 Hs=1;Pi.className="Set",Pi.uniqueHash=ns,Pi.hashIdUnique=qs,Pi.hashId=fs;function Gs(a){this.ma=a,this.qa=a.Ja,this.sa=null}Gs.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Gs.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)},Gs.prototype.Ad=function(){return this.next()},Gs.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},Gs.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},Gs.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},Gs.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},Gs.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Si;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Gs.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Si;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Gs.prototype.de=function(){this.value=this.key=null,this.qa=-1},Gs.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Oe.Object.defineProperties(Gs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Gs.prototype.first=Gs.prototype.first,Gs.prototype.hasNext=Gs.prototype.Ad,Gs.prototype.next=Gs.prototype.next,Gs.prototype.reset=Gs.prototype.reset,Gs.className="MapKeySetIterator";function si(a){Pi.call(this),ns(this),this._isFrozen=!0,this.ma=a}In(si,Pi),Wt=si.prototype,Wt.freeze=function(){return this},Wt.ka=function(){return this},Wt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Wt.add=function(){on("This Set is read-only: "+this.toString())},Wt.contains=function(a){return this.ma.contains(a)},Wt.has=function(a){return this.contains(a)},Wt.remove=function(){on("This Set is read-only: "+this.toString())},Wt.delete=function(a){return this.remove(a)},Wt.clear=function(){on("This Set is read-only: "+this.toString())},Wt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},si.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},si.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},si.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},si.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},si.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},si.prototype.copy=function(){return new si(this.ma)},si.prototype.Iv=function(){var a=new Pi,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},si.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},si.prototype.Hv=function(){var a=new Si,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Oe.Object.defineProperties(si.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?wo:new Gs(this.ma)}}}),si.prototype.toList=si.prototype.Hv,si.prototype.toArray=si.prototype.Fa,si.prototype.toSet=si.prototype.Iv,si.prototype.first=si.prototype.first,si.prototype.clear=si.prototype.clear,si.prototype.delete=si.prototype.delete,si.prototype.remove=si.prototype.remove,si.prototype.has=si.prototype.has,si.prototype.contains=si.prototype.contains,si.prototype.add=si.prototype.add,si.prototype.thaw=si.prototype.ka,si.prototype.freeze=si.prototype.freeze,si.className="MapKeySet";function To(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}To.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},To.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)},To.prototype.Ad=function(){return this.next()},To.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},To.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},To.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},To.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},To.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Si;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},To.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Si;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},To.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},To.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Oe.Object.defineProperties(To.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),To.prototype.first=To.prototype.first,To.prototype.hasNext=To.prototype.Ad,To.prototype.next=To.prototype.next,To.prototype.reset=To.prototype.reset,To.className="MapValueSetIterator";function us(a,y){this.key=a,this.value=y,this.ll=this.va=null}us.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},us.className="KeyValuePair";function rs(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}rs.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},rs.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)},rs.prototype.Ad=function(){return this.next()},rs.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},rs.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},rs.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},rs.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},rs.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Si;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},rs.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Si;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},rs.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},rs.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Oe.Object.defineProperties(rs.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),rs.prototype.first=rs.prototype.first,rs.prototype.hasNext=rs.prototype.Ad,rs.prototype.next=rs.prototype.next,rs.prototype.reset=rs.prototype.reset,rs.className="MapIterator";function Cr(a){ns(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"&&on("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Wt=Cr.prototype,Wt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return this._isFrozen=!1,this},Wt.toString=function(){return"Map()#"+fs(this)},Wt.add=function(a,y){this._isFrozen&&di(this,a);var x=a;ii(a)&&(x=qs(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new us(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},Wt.set=function(a,y){return this.add(a,y)},Wt.addAll=function(a){if(a===null)return this;if(wi(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 Cr)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},Wt.first=function(){return this.ea},Cr.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Cr.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Cr.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Cr.prototype.map=function(a){for(var y=new Cr,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Cr.prototype.filter=function(a){for(var y=new Cr,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Wt=Cr.prototype,Wt.contains=function(a){var y=a;return ii(a)&&(y=fs(a),y===void 0)?!1:this.Tb[y]!==void 0},Wt.has=function(a){return this.contains(a)},Wt.I=function(a){var y=a;return ii(a)&&(y=fs(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Wt.get=function(a){return this.I(a)},Wt.remove=function(a){if(a===null)return!1;this._isFrozen&&di(this,a);var y=a;if(ii(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},Wt.delete=function(a){return this.remove(a)},Wt.clear=function(){this._isFrozen&&di(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()},Cr.prototype.copy=function(){var a=new Cr,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Cr.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 us(E.key,E.value),x++}return y},Cr.prototype.Lf=function(){return new si(this)},Oe.Object.defineProperties(Cr.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return wo;var a=this.Sa;return a!==null?(a.reset(),a):new rs(this)}},iteratorKeys:{get:function(){return 0>=this.count?wo:new Gs(this)}},iteratorValues:{get:function(){if(0>=this.count)return wo;var a=this.jf;return a!==null?(a.reset(),a):new To(this)}}}),Cr.prototype.toKeySet=Cr.prototype.Lf,Cr.prototype.toArray=Cr.prototype.Fa,Cr.prototype.clear=Cr.prototype.clear,Cr.prototype.delete=Cr.prototype.delete,Cr.prototype.remove=Cr.prototype.remove,Cr.prototype.get=Cr.prototype.get,Cr.prototype.getValue=Cr.prototype.I,Cr.prototype.has=Cr.prototype.has,Cr.prototype.contains=Cr.prototype.contains,Cr.prototype.first=Cr.prototype.first,Cr.prototype.addAll=Cr.prototype.addAll,Cr.prototype.set=Cr.prototype.set,Cr.prototype.add=Cr.prototype.add,Cr.prototype.thaw=Cr.prototype.ka,Cr.prototype.freeze=Cr.prototype.freeze,Cr.className="Map";function Le(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):on("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var qo,ta,qa,ol,ml;Le.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Le.prototype.h=function(a,y){return this.x=a,this.y=y,this},Le.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Le.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Le.prototype.copy=function(){var a=new Le;return a.x=this.x,a.y=this.y,a},Wt=Le.prototype,Wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return Object.isFrozen(this)&&on("cannot thaw constant: "+this),this._isFrozen=!1,this};function vr(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 Le(x,E)}return new Le}function $r(a){return a.x.toString()+" "+a.y.toString()}Wt.toString=function(){return"Point("+this.x+","+this.y+")"},Wt.D=function(a){return a instanceof Le?this.x===a.x&&this.y===a.y:!1},Wt.hi=function(a,y){return this.x===a&&this.y===y},Wt.Xa=function(a){return bn.B(this.x,a.x)&&bn.B(this.y,a.y)},Wt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Wt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Wt.offset=function(a,y){return this.x+=a,this.y+=y,this},Le.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},Wt=Le.prototype,Wt.scale=function(a,y){return this.x*=a,this.y*=y,this},Wt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Wt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Wt.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},Wt.ab=function(a){return Xo(a.x-this.x,a.y-this.y)},Wt.direction=function(a,y){return Xo(a-this.x,y-this.y)};function Xo(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}Wt.Ry=function(a,y){return bn.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Wt.fA=function(a,y,x,b){return bn.qh(a,y,x,b,this.x,this.y,this),this},Wt.gA=function(a,y){return bn.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Wt.uA=function(a,y,x,b){return bn.No(this.x,this.y,a,y,x,b,this),this},Wt.vA=function(a,y){return bn.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Wt.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},Wt.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},Wt.transform=function(a){return a.Ga(this),this};function Lo(a,y){return y.Cd(a),a}function os(a,y,x,b,E,z){var nt=E-x,ot=z-b,at=nt*nt+ot*ot;x-=a,b-=y;var ht=-x*nt-b*ot;return 0>=ht||ht>=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 Fa(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function ao(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)}Wt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Le.alloc=function(){var a=mo.pop();return a===void 0?new Le:a},Le.allocAt=function(a,y){var x=mo.pop();return x===void 0?new Le(a,y):(x.x=a,x.y=y,x)},Le.free=function(a){mo.push(a)},Le.prototype.isReal=Le.prototype.w,Le.prototype.setSpot=Le.prototype.yi,Le.prototype.setRectSpot=Le.prototype.xi,Le.prototype.snapToGridPoint=Le.prototype.vA,Le.prototype.snapToGrid=Le.prototype.uA,Le.prototype.projectOntoLineSegmentPoint=Le.prototype.gA,Le.prototype.projectOntoLineSegment=Le.prototype.fA,Le.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return bn.Rl(a,y,x,b,E,z,nt,ot)},Le.prototype.compareWithLineSegmentPoint=Le.prototype.Ry,Le.compareWithLineSegment=function(a,y,x,b,E,z){return bn.Fl(a,y,x,b,E,z)},Le.prototype.direction=Le.prototype.direction,Le.prototype.directionPoint=Le.prototype.ab,Le.prototype.normalize=Le.prototype.normalize,Le.prototype.distanceSquared=Le.prototype.zd,Le.prototype.distanceSquaredPoint=Le.prototype.Bf,Le.prototype.scale=Le.prototype.scale,Le.prototype.rotate=Le.prototype.rotate,Le.prototype.offset=Le.prototype.offset,Le.prototype.subtract=Le.prototype.re,Le.prototype.add=Le.prototype.add,Le.prototype.equalsApprox=Le.prototype.Xa,Le.prototype.equalTo=Le.prototype.hi,Le.prototype.equals=Le.prototype.D,Le.prototype.set=Le.prototype.set,Le.prototype.setTo=Le.prototype.sg;var mo=[];Le.className="Point",Le.parse=vr,Le.stringify=$r,Le.distanceLineSegmentSquared=os,Le.distanceSquared=Fa,Le.direction=ao,Le.Origin=qo=new Le(0,0).ja(),Le.InfiniteTopLeft=ta=new Le(-1/0,-1/0).ja(),Le.InfiniteBottomRight=qa=new Le(1/0,1/0).ja(),Le.SixPoint=ol=new Le(6,6).ja(),Le.NoPoint=ml=new Le(NaN,NaN).ja(),Le.parse=vr,Le.stringify=$r,Le.distanceLineSegmentSquared=os,Le.distanceSquared=Fa,Le.direction=ao;function zi(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):on("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Eo,Es,la,ca,Qo,Vs,Ka;zi.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},zi.prototype.h=function(a,y){return this.width=a,this.height=y,this},zi.prototype.sg=function(a,y){return this.width=a,this.height=y,this},zi.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},zi.prototype.copy=function(){var a=new zi;return a.width=this.width,a.height=this.height,a},Wt=zi.prototype,Wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return Object.isFrozen(this)&&on("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 zi(x,E)}return new zi}function La(a){return a.width.toString()+" "+a.height.toString()}Wt.toString=function(){return"Size("+this.width+","+this.height+")"},Wt.D=function(a){return a instanceof zi?this.width===a.width&&this.height===a.height:!1},Wt.hi=function(a,y){return this.width===a&&this.height===y},Wt.Xa=function(a){return bn.B(this.width,a.width)&&bn.B(this.height,a.height)},Wt.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},Wt.w=function(){return isFinite(this.width)&&isFinite(this.height)},zi.alloc=function(){var a=vs.pop();return a===void 0?new zi:a},zi.free=function(a){vs.push(a)},zi.prototype.isReal=zi.prototype.w,zi.prototype.inflate=zi.prototype.Bc,zi.prototype.equalsApprox=zi.prototype.Xa,zi.prototype.equalTo=zi.prototype.hi,zi.prototype.equals=zi.prototype.D,zi.prototype.set=zi.prototype.set,zi.prototype.setTo=zi.prototype.sg;var vs=[];zi.className="Size",zi.parse=Wl,zi.stringify=La,zi.ZeroSize=Eo=new zi(0,0).ja(),zi.OneSize=Es=new zi(1,1).ja(),zi.SixSize=la=new zi(6,6).ja(),zi.EightSize=ca=new zi(8,8).ja(),zi.TenSize=Qo=new zi(10,10).ja(),zi.InfiniteSize=Vs=new zi(1/0,1/0).ja(),zi.NoSize=Ka=new zi(NaN,NaN).ja(),zi.parse=Wl,zi.stringify=La;function ai(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 Le?(x=a.x,a=a.y,y instanceof Le?(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 zi?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):on("Incorrect second argument supplied to Rect constructor "+y)):on("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Wt=ai.prototype,Wt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Wt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ka(a,y,x){a.width=y,a.height=x}Wt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Wt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Wt.dd=function(a){return this.x=a.x,this.y=a.y,this},Wt.tA=function(a){return this.width=a.width,this.height=a.height,this},ai.prototype.copy=function(){var a=new ai;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Wt=ai.prototype,Wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return Object.isFrozen(this)&&on("cannot thaw constant: "+this),this._isFrozen=!1,this};function bc(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 ai(x,E,z,nt)}return new ai}function Vl(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Wt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Wt.D=function(a){return a instanceof ai?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Wt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Wt.Xa=function(a){return bn.B(this.x,a.x)&&bn.B(this.y,a.y)&&bn.B(this.width,a.width)&&bn.B(this.height,a.height)};function kh(a,y){return bn.$(a.x,y.x)&&bn.$(a.y,y.y)&&bn.$(a.width,y.width)&&bn.$(a.height,y.height)}Wt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Wt.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},Wt.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},Wt.offset=function(a,y){return this.x+=a,this.y+=y,this},Wt.Bc=function(a,y){return sl(this,y,a,y,a)},Wt.Co=function(a){return sl(this,a.top,a.right,a.bottom,a.left)},Wt.Fv=function(a){return sl(this,-a.top,-a.right,-a.bottom,-a.left)},Wt.Hz=function(a,y,x,b){return sl(this,a,y,x,b)};function sl(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}Wt.Ex=function(a){return Wc(this,a.x,a.y,a.width,a.height)},Wt.Uu=function(a,y,x,b){return Wc(this,a,y,x,b)};function Wc(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}Wt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Wt.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 Fl(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))}Wt.Ye=function(a){return Is(this,a.x,a.y,0,0)},Wt.ed=function(a){return Is(this,a.x,a.y,a.width,a.height)},Wt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Is(this,a,y,x,b)};function Is(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}Wt.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 ia(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 Ph(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}Wt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Wt.Mz=function(){return this.width===0&&this.height===0},ai.alloc=function(){var a=ys.pop();return a===void 0?new ai:a},ai.allocAt=function(a,y,x,b){var E=ys.pop();return E===void 0?new ai(a,y,x,b):E.h(a,y,x,b)},ai.free=function(a){ys.push(a)},Oe.Object.defineProperties(ai.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 Le(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new zi(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Le(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}}}),ai.prototype.isEmpty=ai.prototype.Mz,ai.prototype.isReal=ai.prototype.w,ai.intersectsLineSegment=function(a,y,x,b,E,z,nt,ot){return bn.Fx(a,y,x,b,E,z,nt,ot)},ai.prototype.setSpot=ai.prototype.yi,ai.prototype.union=ai.prototype.Kv,ai.prototype.unionRect=ai.prototype.ed,ai.prototype.unionPoint=ai.prototype.Ye,ai.prototype.intersects=ai.prototype.Vu,ai.prototype.intersectsRect=ai.prototype.Yc,ai.prototype.intersect=ai.prototype.Uu,ai.prototype.intersectRect=ai.prototype.Ex,ai.prototype.grow=ai.prototype.Hz,ai.prototype.subtractMargin=ai.prototype.Fv,ai.prototype.addMargin=ai.prototype.Co,ai.prototype.inflate=ai.prototype.Bc,ai.prototype.offset=ai.prototype.offset,ai.prototype.contains=ai.prototype.contains,ai.prototype.containsRect=ai.prototype.Re,ai.prototype.containsPoint=ai.prototype.ca,ai.prototype.equalsApprox=ai.prototype.Xa,ai.prototype.equalTo=ai.prototype.hi,ai.prototype.equals=ai.prototype.D,ai.prototype.setSize=ai.prototype.tA,ai.prototype.setPoint=ai.prototype.dd,ai.prototype.set=ai.prototype.set,ai.prototype.setTo=ai.prototype.sg;var is=null,Zs=null,ys=[];ai.className="Rect",ai.parse=bc,ai.stringify=Vl,ai.contains=ia,ai.intersects=Ph,ai.ZeroRect=is=new ai(0,0,0,0).ja(),ai.NoRect=Zs=new ai(NaN,NaN,NaN,NaN).ja(),ai.parse=bc,ai.stringify=Vl,ai.contains=ia,ai.intersects=Ph;function Hr(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):on("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Hr.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Hr.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Hr.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Hr.prototype.copy=function(){var a=new Hr;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Wt=Hr.prototype,Wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return Object.isFrozen(this)&&on("cannot thaw constant: "+this),this._isFrozen=!1,this};function kl(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 Hr;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Hr(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Hr(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new Hr(x,E):new Hr(x,E,z,nt)}return new Hr}function Ol(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Wt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Wt.D=function(a){return a instanceof Hr?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Wt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Wt.Xa=function(a){return bn.B(this.top,a.top)&&bn.B(this.right,a.right)&&bn.B(this.bottom,a.bottom)&&bn.B(this.left,a.left)},Wt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Hr.alloc=function(){var a=da.pop();return a===void 0?new Hr:a},Hr.free=function(a){da.push(a)},Hr.prototype.isReal=Hr.prototype.w,Hr.prototype.equalsApprox=Hr.prototype.Xa,Hr.prototype.equalTo=Hr.prototype.hi,Hr.prototype.equals=Hr.prototype.D,Hr.prototype.set=Hr.prototype.set,Hr.prototype.setTo=Hr.prototype.sg;var Ao=null,Ns=null,da=[];Hr.className="Margin",Hr.parse=kl,Hr.stringify=Ol,Hr.ZeroMargin=Ao=new Hr(0,0,0,0).ja(),Hr.TwoMargin=Ns=new Hr(2,2,2,2).ja(),Hr.parse=kl,Hr.stringify=Ol;function wr(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 Ma,Oa,Bl,su,au,Yo,va,Cs,lu,Ll,Ml,tl,tu,Pl,No,dc,al,zu,hh,dh,Ga,ih,Ec,Vc,Zc,Bs,ya,Mu,el,ll,Wa,Aa,nl,Dl,Ac,rh;wr.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wr.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},wr.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},wr.prototype.copy=function(){var a=new wr;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Wt=wr.prototype,Wt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Wt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return Object.isFrozen(this)&&on("cannot thaw constant: "+this),this._isFrozen=!1,this};function cl(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Ud(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Ma;if(a==="TopLeft")return Oa;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Bl;if(a==="TopRight")return su;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return au;if(a==="Center")return Yo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return va;if(a==="BottomLeft")return Cs;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return lu;if(a==="BottomRight")return Ll;if(a==="TopSide")return Ml;if(a==="LeftSide")return tl;if(a==="RightSide")return tu;if(a==="BottomSide")return Pl;if(a==="TopBottomSides")return No;if(a==="LeftRightSides")return dc;if(a==="TopLeftSides")return al;if(a==="TopRightSides")return zu;if(a==="BottomLeftSides")return hh;if(a==="BottomRightSides")return dh;if(a==="NotTopSide")return Ga;if(a==="NotLeftSide")return ih;if(a==="NotRightSide")return Ec;if(a==="NotBottomSide")return Vc;if(a==="AllSides")return Zc;if(a==="Default")return Bs;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 wr(x,E,z,nt)}return new wr}function od(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Wt.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(Ma)?"None":this.D(Oa)?"TopLeft":this.D(Bl)?"Top":this.D(su)?"TopRight":this.D(au)?"Left":this.D(Yo)?"Center":this.D(va)?"Right":this.D(Cs)?"BottomLeft":this.D(lu)?"Bottom":this.D(Ll)?"BottomRight":this.D(Ml)?"TopSide":this.D(tl)?"LeftSide":this.D(tu)?"RightSide":this.D(Pl)?"BottomSide":this.D(No)?"TopBottomSides":this.D(dc)?"LeftRightSides":this.D(al)?"TopLeftSides":this.D(zu)?"TopRightSides":this.D(hh)?"BottomLeftSides":this.D(dh)?"BottomRightSides":this.D(Ga)?"NotTopSide":this.D(ih)?"NotLeftSide":this.D(Ec)?"NotRightSide":this.D(Vc)?"NotBottomSide":this.D(Zc)?"AllSides":this.D(Bs)?"Default":"None"},Wt.D=function(a){return a instanceof wr?(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},Wt.gv=function(){return new wr(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Wt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(ya))a=tl;else if(a.D(Mu))a=tu;else if(a.D(el))a=Ml;else if(a.D(ll))a=Pl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Wt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Wt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Wt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Wt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Wt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},wr.alloc=function(){var a=Ah.pop();return a===void 0?new wr:a},wr.free=function(a){Ah.push(a)},wr.prototype.isDefault=wr.prototype.Xb,wr.prototype.isNone=wr.prototype.ys,wr.prototype.isSide=wr.prototype.$c,wr.prototype.isNoSpot=wr.prototype.Mc,wr.prototype.isSpot=wr.prototype.sb,wr.prototype.includesSide=wr.prototype.Hf,wr.prototype.opposite=wr.prototype.gv,wr.prototype.equals=wr.prototype.D,wr.prototype.set=wr.prototype.set,wr.prototype.setTo=wr.prototype.sg;var Ah=[];wr.className="Spot",wr.parse=Ud,wr.stringify=od,wr.None=Ma=cl(new wr(0,0,0,0),0).ja(),wr.Default=Bs=cl(new wr(0,0,-1,0),-1).ja(),wr.TopLeft=Oa=new wr(0,0,0,0).ja(),wr.TopCenter=Bl=new wr(.5,0,0,0).ja(),wr.TopRight=su=new wr(1,0,0,0).ja(),wr.LeftCenter=au=new wr(0,.5,0,0).ja(),wr.Center=Yo=new wr(.5,.5,0,0).ja(),wr.RightCenter=va=new wr(1,.5,0,0).ja(),wr.BottomLeft=Cs=new wr(0,1,0,0).ja(),wr.BottomCenter=lu=new wr(.5,1,0,0).ja(),wr.BottomRight=Ll=new wr(1,1,0,0).ja(),wr.MiddleTop=Wa=Bl,wr.MiddleLeft=Aa=au,wr.MiddleRight=nl=va,wr.MiddleBottom=Dl=lu,wr.Top=el=Bl,wr.Left=ya=au,wr.Right=Mu=va,wr.Bottom=ll=lu,wr.TopSide=Ml=cl(new wr(0,0,1,1),1).ja(),wr.LeftSide=tl=cl(new wr(0,0,1,2),1).ja(),wr.RightSide=tu=cl(new wr(0,0,1,4),1).ja(),wr.BottomSide=Pl=cl(new wr(0,0,1,8),1).ja(),wr.TopBottomSides=No=cl(new wr(0,0,1,9),1).ja(),wr.LeftRightSides=dc=cl(new wr(0,0,1,6),1).ja(),wr.TopLeftSides=al=cl(new wr(0,0,1,3),1).ja(),wr.TopRightSides=zu=cl(new wr(0,0,1,5),1).ja(),wr.BottomLeftSides=hh=cl(new wr(0,0,1,10),1).ja(),wr.BottomRightSides=dh=cl(new wr(0,0,1,12),1).ja(),wr.NotTopSide=Ga=cl(new wr(0,0,1,14),1).ja(),wr.NotLeftSide=ih=cl(new wr(0,0,1,13),1).ja(),wr.NotRightSide=Ec=cl(new wr(0,0,1,11),1).ja(),wr.NotBottomSide=Vc=cl(new wr(0,0,1,7),1).ja(),wr.AllSides=Zc=cl(new wr(0,0,1,15),1).ja(),Ac=new wr(.156,.156).ja(),rh=new wr(.844,.844).ja(),wr.parse=Ud,wr.stringify=od;function Ko(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Ko.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},Ko.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},Ko.prototype.copy=function(){var a=new Ko;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},Ko.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Ko.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},Ko.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Ko.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Ko.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},Ko.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},Ko.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},Ko.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},Wt=Ko.prototype,Wt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Wt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Wt.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)},Wt.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))},Wt.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))},Wt.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,ht=this.dx,dt=this.dy,yt=y*z+x*ot+ht,Tt=y*nt+x*at+dt,Gt=b*z+x*ot+ht,$t=b*nt+x*at+dt;return x=y*z+E*ot+ht,y=y*nt+E*at+dt,z=b*z+E*ot+ht,b=b*nt+E*at+dt,E=Math.min(yt,Gt),yt=Math.max(yt,Gt),Gt=Math.min(Tt,$t),Tt=Math.max(Tt,$t),E=Math.min(E,x),yt=Math.max(yt,x),Gt=Math.min(Gt,y),Tt=Math.max(Tt,y),E=Math.min(E,z),yt=Math.max(yt,z),Gt=Math.min(Gt,b),Tt=Math.max(Tt,b),a.h(E,Gt,yt-E,Tt-Gt),a},Ko.alloc=function(){var a=sA.pop();return a===void 0?new Ko:a},Ko.free=function(a){sA.push(a)},Ko.prototype.transformRect=Ko.prototype.pp,Ko.prototype.transformPoint=Ko.prototype.Ga,Ko.prototype.scale=Ko.prototype.scale,Ko.prototype.translate=Ko.prototype.translate,Ko.prototype.rotate=Ko.prototype.rotate,Ko.prototype.invert=Ko.prototype.Vj,Ko.prototype.multiplyInverted=Ko.prototype.bv,Ko.prototype.multiply=Ko.prototype.multiply,Ko.prototype.reset=Ko.prototype.reset,Ko.prototype.isIdentity=Ko.prototype.ws,Ko.prototype.equals=Ko.prototype.D,Ko.prototype.setTransform=Ko.prototype.setTransform,Ko.prototype.set=Ko.prototype.set;var sA=[];Ko.className="Transform",Ko.xF="54a702f3e53909c447824c6706603faf4c";var bn={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=bn.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);bn.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 ht=y,dt=b;else ht=b,dt=y;if(a===x)return ht<=nt&&nt<=dt&&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&&(dt+=E,ht-=E,ht<=nt&&nt<=dt))if(at-ot>dt-ht)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,ht,dt,yt){if(bn.Yb(a,y,nt,ot,yt,x,b)&&bn.Yb(a,y,nt,ot,yt,E,z))return bn.Yb(a,y,nt,ot,yt,ht,dt);var Tt=(a+x)/2,Gt=(y+b)/2,$t=(x+E)/2,he=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Tt+$t)/2,x=(Gt+he)/2,$t=($t+E)/2,he=(he+z)/2;var Qe=(b+$t)/2,Me=(x+he)/2;return bn.cs(a,y,Tt,Gt,b,x,Qe,Me,at,ht,dt,yt)||bn.cs(Qe,Me,$t,he,E,z,nt,ot,at,ht,dt,yt)},ax:function(a,y,x,b,E,z,nt,ot,at){var ht=(x+E)/2,dt=(b+z)/2;return at.h((((a+x)/2+ht)/2+(ht+(E+nt)/2)/2)/2,(((y+b)/2+dt)/2+(dt+(z+ot)/2)/2)/2),at},My:function(a,y,x,b,E,z,nt,ot){var at=(x+E)/2,ht=(b+z)/2;return ao(((a+x)/2+at)/2,((y+b)/2+ht)/2,(at+(E+nt)/2)/2,(ht+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,nt,ot,at,ht){if(bn.Yb(a,y,nt,ot,at,x,b)&&bn.Yb(a,y,nt,ot,at,E,z))Is(ht,a,y,0,0),Is(ht,nt,ot,0,0);else{var dt=(a+x)/2,yt=(y+b)/2,Tt=(x+E)/2,Gt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(dt+Tt)/2,x=(yt+Gt)/2,Tt=(Tt+E)/2,Gt=(Gt+z)/2;var $t=(b+Tt)/2,he=(x+Gt)/2;bn.Dl(a,y,dt,yt,b,x,$t,he,at,ht),bn.Dl($t,he,Tt,Gt,E,z,nt,ot,at,ht)}return ht},Qe:function(a,y,x,b,E,z,nt,ot,at,ht){if(bn.Yb(a,y,nt,ot,at,x,b)&&bn.Yb(a,y,nt,ot,at,E,z))ht.length===0&&(ht.push(a),ht.push(y)),ht.push(nt),ht.push(ot);else{var dt=(a+x)/2,yt=(y+b)/2,Tt=(x+E)/2,Gt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(dt+Tt)/2,x=(yt+Gt)/2,Tt=(Tt+E)/2,Gt=(Gt+z)/2;var $t=(b+Tt)/2,he=(x+Gt)/2;bn.Qe(a,y,dt,yt,b,x,$t,he,at,ht),bn.Qe($t,he,Tt,Gt,E,z,nt,ot,at,ht)}return ht},jv:function(a,y,x,b,E,z,nt,ot,at,ht){if(bn.Yb(a,y,E,z,ht,x,b))return bn.Yb(a,y,E,z,ht,ot,at);var dt=(a+x)/2,yt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Tt=(dt+x)/2,Gt=(yt+b)/2;return bn.jv(a,y,dt,yt,Tt,Gt,nt,ot,at,ht)||bn.jv(Tt,Gt,x,b,E,z,nt,ot,at,ht)},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(bn.Yb(a,y,E,z,nt,x,b))Is(ot,a,y,0,0),Is(ot,E,z,0,0);else{var at=(a+x)/2,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var dt=(at+x)/2,yt=(ht+b)/2;bn.iv(a,y,at,ht,dt,yt,nt,ot),bn.iv(dt,yt,x,b,E,z,nt,ot)}return ot},ep:function(a,y,x,b,E,z,nt,ot){if(bn.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,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var dt=(at+x)/2,yt=(ht+b)/2;bn.ep(a,y,at,ht,dt,yt,nt,ot),bn.ep(dt,yt,x,b,E,z,nt,ot)}return ot},Eo:function(a,y,x,b,E,z,nt,ot,at,ht,dt,yt,Tt,Gt){if(bn.Yb(a,y,nt,ot,Tt,x,b)&&bn.Yb(a,y,nt,ot,Tt,E,z))return!bn.Rl(a,y,nt,ot,at,ht,dt,yt)||(Tt=(a-nt)*(ht-yt)-(y-ot)*(at-dt),Tt===0)?!1:(Gt.h(((a*ot-y*nt)*(at-dt)-(a-nt)*(at*yt-ht*dt))/Tt,((a*ot-y*nt)*(ht-yt)-(y-ot)*(at*yt-ht*dt))/Tt),!0);var $t=(a+x)/2,he=(y+b)/2,Qe=(x+E)/2,Me=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=($t+Qe)/2,x=(he+Me)/2,Qe=(Qe+E)/2,Me=(Me+z)/2;var Ze=(b+Qe)/2,tn=(x+Me)/2,sn=1/0,Cn=!1,Kn=0,ar=0;return bn.Eo(a,y,$t,he,b,x,Ze,tn,at,ht,dt,yt,Tt,Gt)&&(a=(Gt.x-at)*(Gt.x-at)+(Gt.y-ht)*(Gt.y-ht),a<sn&&(sn=a,Cn=!0,Kn=Gt.x,ar=Gt.y)),bn.Eo(Ze,tn,Qe,Me,E,z,nt,ot,at,ht,dt,yt,Tt,Gt)&&(Gt.x-at)*(Gt.x-at)+(Gt.y-ht)*(Gt.y-ht)<sn&&(Cn=!0,Kn=Gt.x,ar=Gt.y),Cn&&(Gt.x=Kn,Gt.y=ar),Cn},Fo:function(a,y,x,b,E,z,nt,ot,at,ht,dt,yt,Tt){var Gt=0;if(bn.Yb(a,y,nt,ot,Tt,x,b)&&bn.Yb(a,y,nt,ot,Tt,E,z)){if(Tt=(a-nt)*(ht-yt)-(y-ot)*(at-dt),Tt===0)return Gt;var $t=((a*ot-y*nt)*(at-dt)-(a-nt)*(at*yt-ht*dt))/Tt,he=((a*ot-y*nt)*(ht-yt)-(y-ot)*(at*yt-ht*dt))/Tt;if($t>=dt)return Gt;if((at>dt?at-dt:dt-at)<(ht>yt?ht-yt:yt-ht)){if(y<ot?(at=y,a=ot):(at=ot,a=y),he<at||he>a)return Gt}else if(a<nt?(at=a,a=nt):at=nt,$t<at||$t>a)return Gt;0<Tt?Gt++:0>Tt&&Gt--}else{$t=(a+x)/2,he=(y+b)/2;var Qe=(x+E)/2,Me=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=($t+Qe)/2,x=(he+Me)/2,Qe=(Qe+E)/2,Me=(Me+z)/2;var Ze=(b+Qe)/2,tn=(x+Me)/2;Gt+=bn.Fo(a,y,$t,he,b,x,Ze,tn,at,ht,dt,yt,Tt),Gt+=bn.Fo(Ze,tn,Qe,Me,E,z,nt,ot,at,ht,dt,yt,Tt)}return Gt},qh:function(a,y,x,b,E,z,nt){return bn.$(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)):bn.$(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 bn.B(a,x)&&bn.B(y,b)?(at.h(a,y),!1):bn.$(E,nt)?bn.$(a,x)?(bn.qh(a,y,x,b,E,z,at),!1):bn.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(ot=(ot-z)/(nt-E),bn.$(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),bn.$(ot,nt)?(bn.qh(a,y,x,b,E,z,at),!1):(E=(nt*a-ot*E+z-y)/(nt-ot),bn.$(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)):bn.qh(a,y,x,b,E,nt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return bn.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,ht){function dt(Qe,Me){var Ze=(Qe-a)*(Qe-a)+(Me-y)*(Me-y);Ze<yt&&(yt=Ze,at.h(Qe,Me))}var yt=1/0;dt(at.x,at.y);var Tt=0,Gt=0,$t=0,he=0;if(E<nt?(Tt=E,Gt=nt):(Tt=nt,Gt=E),z<ot?($t=E,he=nt):($t=nt,he=E),Tt=(Gt-Tt)/2+ht,ht=(he-$t)/2+ht,E=(E+nt)/2,z=(z+ot)/2,Tt===0||ht===0)return at;if(.5>(x>a?x-a:a-x)){if(Tt=1-(x-E)*(x-E)/(Tt*Tt),0>Tt)return at;Tt=Math.sqrt(Tt),b=-ht*Tt+z,dt(x,ht*Tt+z),dt(x,b)}else{if(x=(b-y)/(x-a),b=1/(Tt*Tt)+x*x/(ht*ht),ot=2*x*(y-x*a)/(ht*ht)-2*x*z/(ht*ht)-2*E/(Tt*Tt),Tt=ot*ot-4*b*(2*x*a*z/(ht*ht)-2*y*z/(ht*ht)+z*z/(ht*ht)+E*E/(Tt*Tt)-1+(y-x*a)*(y-x*a)/(ht*ht)),0>Tt)return at;Tt=Math.sqrt(Tt),ht=(-ot+Tt)/(2*b),dt(ht,x*ht-x*a+y),Tt=(-ot-Tt)/(2*b),dt(Tt,x*Tt-x*a+y)}return at},Ff:function(a,y,x,b,E,z,nt,ot,at){var ht=1e21,dt=a,yt=y;if(bn.Ve(a,y,a,b,E,z,nt,ot,at)){var Tt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);Tt<ht&&(ht=Tt,dt=at.x,yt=at.y)}return bn.Ve(x,y,x,b,E,z,nt,ot,at)&&(Tt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),Tt<ht&&(ht=Tt,dt=at.x,yt=at.y)),bn.Ve(a,y,x,y,E,z,nt,ot,at)&&(y=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),y<ht&&(ht=y,dt=at.x,yt=at.y)),bn.Ve(a,b,x,b,E,z,nt,ot,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<ht&&(ht=a,dt=at.x,yt=at.y)),at.h(dt,yt),1e21>ht},us:function(a,y,x){return bn.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,ht=y+b;return E===nt?(z<ot?(nt=z,z=ot):nt=ot,a<=E&&E<=at&&nt<=ht&&z>=y):z===ot?(E<nt?(ot=E,E=nt):ot=nt,y<=z&&z<=ht&&ot<=at&&E>=a):!!(ia(a,y,x,b,E,z)||ia(a,y,x,b,nt,ot)||bn.Rl(a,y,at,y,E,z,nt,ot)||bn.Rl(at,y,at,ht,E,z,nt,ot)||bn.Rl(at,ht,a,ht,E,z,nt,ot)||bn.Rl(a,ht,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>=bn.Fl(a,y,x,b,E,z)*bn.Fl(a,y,x,b,nt,ot)&&0>=bn.Fl(E,z,nt,ot,a,y)*bn.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,ht=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return at=ht+ot*Math.min(b,at),ot=a+x*Math.cos(ht),ht=y+x*Math.sin(ht),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(ot+a)/2,at=(ht+y)/2,z.push([ot,ht,x,at,x,at,a,y]),z;for(;1e-5<b;)E=ht+ot*Math.min(b,at),z.push(bn.Vy(x,ht,E,a,y)),b-=Math.abs(E-ht),ht=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,ht=nt*nt+at*at,dt=ht+nt*nt+at*ot;return ht=4/3*(Math.sqrt(2*ht*dt)-dt)/(nt*ot-at*nt),ot=nt-ht*at,nt=at+ht*nt,at=-nt,ht=z+y,z=Math.cos(ht),ht=Math.sin(ht),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-nt*ht,E+ot*ht+nt*z,b+ot*z-at*ht,E+ot*ht+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,ht=nt===0?x:b;return(nt===0?E:z)&&(ht=-ht),nt=ot,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),bn.az(at,nt===0?a:y,ht,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 ht=0;9999999999>ht&&(y=.5*(ot+at),!(y===ot||y===at));++ht){var dt=a/(y+E),yt=nt/(y+z);if(dt=dt*dt+yt*yt-1,0<dt)ot=y;else if(0>dt)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 no,um:new no,Mf:new no,Nf:0,vm:100};bn.za=bn.AA;function Yi(a){ns(this),this.l=2,a===void 0&&(a=Yi.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Yi.o?this.ee=new Si:(Yi.V===null&&(Yi.V=new Si().freeze()),this.ee=Yi.V),this.aq=this.ee.Ja,this.Ip=new ai().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Oa,this.gg=Ll,this.Rk=this.Sk=NaN,this.Uf=Mi}Yi.prototype.copy=function(){var a=new Yi;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===Yi.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},Yi.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Yi.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Yi.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},Yi.prototype.ka=function(){if(Object.isFrozen(this)&&on("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Yi.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},Yi.prototype.Xa=function(a){if(!(a instanceof Yi))return!1;if(this.type!==a.type)return this.type===Yi.j&&a.type===Yi.o?aA(this,a):a.type===Yi.j&&this.type===Yi.o?aA(a,this):!1;if(this.type===Yi.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 bn.B(this.startX,a.startX)&&bn.B(this.startY,a.startY)&&bn.B(this.endX,a.endX)&&bn.B(this.endY,a.endY)};function aA(a,y){return a.type!==Yi.j||y.type!==Yi.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&bn.B(a.startX,y.startX)&&bn.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===sa&&bn.B(a.endX,y.endX)&&bn.B(a.endY,y.endY))))}Yi.ia=function(a){return a.toString()},Yi.prototype.qb=function(a){a.classType===Yi&&(this.type=a)},Yi.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Yi.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 Yi.u:var y=new ai(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 Yi.F:if(y=new ai(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 Yi.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()}},Yi.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},Yi.parse=function(a,y){function x(){return he>=sn-1?!0:ht[he+1].match(Cn)!==null}function b(){return he++,ht[he]}function E(jo){var Bo=parseFloat(b()),Ts=parseFloat(b());Qe===Qe.toLowerCase()&&(Bo=tn.x+Bo,Ts=tn.y+Ts),jo.h(Bo,Ts)}function z(){return E(tn),tn}function nt(){return E(Ze),Ze}function ot(){var jo=Me.toLowerCase();return jo!=="c"&&jo!=="s"&&jo!=="q"&&jo!=="t"?tn:new Le(2*tn.x-Ze.x,2*tn.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 ht=a.split(" ");for(a=0;a<ht.length;a++){var dt=ht[a];if(dt.match(/(\.[0-9]*)(\.)/gm)!==null){at=vi();for(var yt="",Tt=!1,Gt=0;Gt<dt.length;Gt++){var $t=dt[Gt];$t!=="."||Tt?$t==="."?(at.push(yt),yt="."):yt+=$t:(Tt=!0,yt+=$t)}for(at.push(yt),ht.splice(a,1),dt=0;dt<at.length;dt++)ht.splice(a+dt,0,at[dt]);a+=at.length-1,er(at)}}var he=-1,Qe="",Me="";at=new Le(0,0);var Ze=new Le(0,0),tn=new Le(0,0),sn=ht.length;a=jy(null),Tt=yt=dt=!1,Gt=!0,$t=null;for(var Cn=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(he>=sn-1);)if(Me=Qe,Qe=b(),Qe!=="")switch(Qe.toUpperCase()){case"X":Gt=!0,yt=dt=!1;break;case"M":for($t=z(),a.mc===null||Gt===!0?(jp(a,$t.x,$t.y,dt,!yt,Tt),Gt=!1):a.moveTo($t.x,$t.y),at.assign(tn);!x();)$t=z(),a.lineTo($t.x,$t.y);break;case"L":for(;!x();)$t=z(),a.lineTo($t.x,$t.y);break;case"H":for(;!x();)tn=new Le((Qe===Qe.toLowerCase()?tn.x:0)+parseFloat(b()),tn.y),a.lineTo(tn.x,tn.y);break;case"V":for(;!x();)tn=new Le(tn.x,(Qe===Qe.toLowerCase()?tn.y:0)+parseFloat(b())),a.lineTo(tn.x,tn.y);break;case"C":for(;!x();){$t=new Le,E($t);var Kn=nt(),ar=z();Ff(a,$t.x,$t.y,Kn.x,Kn.y,ar.x,ar.y)}break;case"S":for(;!x();)$t=ot(),Kn=nt(),ar=z(),Ff(a,$t.x,$t.y,Kn.x,Kn.y,ar.x,ar.y);break;case"Q":for(;!x();)$t=nt(),Kn=z(),rm(a,$t.x,$t.y,Kn.x,Kn.y);break;case"T":for(;!x();)Ze=$t=ot(),Kn=z(),rm(a,$t.x,$t.y,Kn.x,Kn.y);break;case"B":for(;!x();){$t=parseFloat(b()),Kn=parseFloat(b()),ar=parseFloat(b());var Tr=parseFloat(b()),xr=parseFloat(b()),Gi=xr,Li=!1;x()||(Gi=parseFloat(b()),x()||(Li=parseFloat(b())!==0)),Qe===Qe.toLowerCase()&&(ar+=tn.x,Tr+=tn.y),a.arcTo($t,Kn,ar,Tr,xr,Gi,Li)}break;case"A":for(;!x();)$t=Math.abs(parseFloat(b())),Kn=Math.abs(parseFloat(b())),ar=parseFloat(b()),xr=Tr=!1,Li=Gi=0,Gi=b(),Gi.length===1?(Tr=!!parseFloat(Gi),xr=!!parseFloat(b()),Gi=parseFloat(b())):Gi.length===2?(Tr=!!parseFloat(Gi[0]),xr=!!parseFloat(Gi[1]),Gi=parseFloat(b())):(Tr=!!parseFloat(Gi[0]),xr=!!parseFloat(Gi[1]),Gi=parseFloat(Gi.slice(2))),Li=parseFloat(b()),Qe===Qe.toLowerCase()&&(Gi=tn.x+Gi,Li=tn.y+Li),tn.h(Gi,Li),Lw(a,$t,Kn,ar,Tr,xr,Gi,Li);break;case"Z":Fw(a),tn.assign(at);break;case"F":for($t="",Kn=1;ht[he+Kn];)if(ht[he+Kn]==="0")Tt=!0,Kn++;else if(ht[he+Kn].match(/[Uu]/)!==null)Kn++;else if(ht[he+Kn].match(Cn)===null)Kn++;else{$t=ht[he+Kn];break}$t.match(/[Mm]/)?dt=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for($t="",Kn=1;ht[he+Kn];)if(ht[he+Kn].match(/[Ff]/)!==null)Kn++;else if(ht[he+Kn].match(Cn)===null)Kn++;else{$t=ht[he+Kn];break}$t.match(/[Mm]/)?yt=!0:a.mc.isShadowed=!1}if(at=a.os,om=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},Yi.Ha=function(a,y){for(var x=a.length,b=Le.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}Le.free(b)},Yi.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Yi.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},Yi.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Yi.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),tc(this,a,!1),Is(a,0,0,0,0),a.freeze()},Yi.prototype.ix=function(){var a=new ai;return tc(this,a,!0),a};function tc(a,y,x){switch(a.type){case Yi.j:case Yi.u:case Yi.F:x?y.h(a.od,a.pd,0,0):Is(y,a.od,a.pd,0,0),Is(y,a.Dc,a.Ec,0,0);break;case Yi.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):Is(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ht=z.startY,dt=0;dt<ot;dt++){var yt=nt[dt];switch(yt.type){case sa:case bl:at=yt.endX,ht=yt.endY,Is(y,at,ht,0,0);break;case pu:bn.Dl(at,ht,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.5,y),at=yt.endX,ht=yt.endY;break;case gh:bn.iv(at,ht,yt.point1X,yt.point1Y,yt.endX,yt.endY,.5,y),at=yt.endX,ht=yt.endY;break;case xl:case Oh:var Tt=yt.type===xl?Xu(yt,z):Ku(yt,z,at,ht),Gt=Tt.length;if(Gt===0){at=yt.type===xl?yt.centerX:yt.endX,ht=yt.type===xl?yt.centerY:yt.endY,Is(y,at,ht,0,0);break}yt=null;for(var $t=0;$t<Gt;$t++)yt=Tt[$t],bn.Dl(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,y);yt!==null&&(at=yt[6],ht=yt[7]);break;default:on("Unknown Segment type: "+yt.type)}}}break;default:on("Unknown Geometry type: "+a.type)}}Yi.prototype.normalize=function(){this._isFrozen&&di(this);var a=this.ix();return this.offset(-a.x,-a.y),new Le(-a.x,-a.y)},Yi.prototype.offset=function(a,y){return this._isFrozen&&di(this),this.transform(1,0,0,1,a,y),this},Yi.prototype.scale=function(a,y){return this._isFrozen&&di(this),this.transform(a,0,0,y,0,0),this},Yi.prototype.rotate=function(a,y,x){this._isFrozen&&di(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Ko.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Ko.free(b),this},Wt=Yi.prototype,Wt.transform=function(a,y,x,b,E,z){switch(this.type){case Yi.j:case Yi.u:case Yi.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 Yi.o:for(var at=this.figures.s,ht=at.length,dt=0;dt<ht;dt++){var yt=at[dt];nt=yt.startX,ot=yt.startY,yt.startX=nt*a+ot*x+E,yt.startY=nt*y+ot*b+z,yt=yt.segments.s;for(var Tt=yt.length,Gt=0;Gt<Tt;Gt++){var $t=yt[Gt];switch($t.type){case sa:case bl:nt=$t.endX,ot=$t.endY,$t.endX=nt*a+ot*x+E,$t.endY=nt*y+ot*b+z;break;case pu:nt=$t.point1X,ot=$t.point1Y,$t.point1X=nt*a+ot*x+E,$t.point1Y=nt*y+ot*b+z,nt=$t.point2X,ot=$t.point2Y,$t.point2X=nt*a+ot*x+E,$t.point2Y=nt*y+ot*b+z,nt=$t.endX,ot=$t.endY,$t.endX=nt*a+ot*x+E,$t.endY=nt*y+ot*b+z;break;case gh:nt=$t.point1X,ot=$t.point1Y,$t.point1X=nt*a+ot*x+E,$t.point1Y=nt*y+ot*b+z,nt=$t.endX,ot=$t.endY,$t.endX=nt*a+ot*x+E,$t.endY=nt*y+ot*b+z;break;case xl:nt=$t.centerX,ot=$t.centerY,$t.centerX=nt*a+ot*x+E,$t.centerY=nt*y+ot*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),$t.startAngle+=nt),0>a&&($t.startAngle=180-$t.startAngle,$t.sweepAngle=-$t.sweepAngle),0>b&&($t.startAngle=-$t.startAngle,$t.sweepAngle=-$t.sweepAngle),$t.radiusX*=Math.sqrt(a*a+x*x),$t.radiusY!==void 0&&($t.radiusY*=Math.sqrt(y*y+b*b));break;case Oh:if(nt=$t.endX,ot=$t.endY,$t.endX=nt*a+ot*x+E,$t.endY=nt*y+ot*b+z,$t.radiusX===0||$t.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),$t.xAxisRotation+=nt),0>a&&($t.xAxisRotation=180-$t.xAxisRotation,$t.isClockwiseArc=!$t.isClockwiseArc),0>b&&($t.xAxisRotation=-$t.xAxisRotation,$t.isClockwiseArc=!$t.isClockwiseArc),$t.radiusX*=Math.sqrt(a*a+x*x),$t.radiusY*=Math.sqrt(y*y+b*b);break;default:on("Unknown Segment type: "+$t.type)}}}}return this._isInvalidBounds=!0,this},Wt.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 Yi.j:return bn.Yb(x,b,E,z,y,a.x,a.y);case Yi.u:var nt=ai.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),ai.free(nt),a;case Yi.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 Yi.o:return ju(this,a,y,!0,!1);default:return!1}};function ju(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ht,dt,yt,Tt=a.figures.s,Gt=Tt.length,$t=0;$t<Gt;$t++){var he=Tt[$t],Qe=!he.isEvenOdd;if(he.isFilled){if(b&&he.ca(z,y,x))return!0;var Me=he.segments;at=he.startX,ht=he.startY;for(var Ze=at,tn=ht,sn=Me.s,Cn=0;Cn<=Me.length;Cn++){var Kn=void 0;if(Cn!==Me.length){Kn=sn[Cn];var ar=Kn.type;a=Kn.endX,yt=Kn.endY}else ar=sa,a=Ze,yt=tn;switch(ar){case bl:if(Ze=Uu(z,y,nt,y,at,ht,Ze,tn),isNaN(Ze))return!0;ot+=Ze,Ze=a,tn=yt;break;case sa:if(at=Uu(z,y,nt,y,at,ht,a,yt),isNaN(at))return!0;ot+=at;break;case pu:dt=bn.Fo(at,ht,Kn.point1X,Kn.point1Y,Kn.point2X,Kn.point2Y,a,yt,nt,y,z,y,.5),ot+=dt;break;case gh:dt=bn.Fo(at,ht,(at+2*Kn.point1X)/3,(ht+2*Kn.point1Y)/3,(2*Kn.point1X+a)/3,(2*Kn.point1Y+yt)/3,a,yt,nt,y,z,y,.5),ot+=dt;break;case xl:case Oh:ar=Kn.type===xl?Xu(Kn,he):Ku(Kn,he,at,ht);var Tr=ar.length;if(Tr===0){if(at=Uu(z,y,nt,y,at,ht,Kn.type===xl?Kn.centerX:Kn.endX,Kn.type===xl?Kn.centerY:Kn.endY),isNaN(at))return!0;ot+=at;break}Kn=null;for(var xr=0;xr<Tr;xr++){if(Kn=ar[xr],xr===0){if(dt=Uu(z,y,nt,y,at,ht,Kn[0],Kn[1]),isNaN(dt))return!0;ot+=dt}dt=bn.Fo(Kn[0],Kn[1],Kn[2],Kn[3],Kn[4],Kn[5],Kn[6],Kn[7],nt,y,z,y,.5),ot+=dt}Kn!==null&&(a=Kn[6],yt=Kn[7]);break;default:on("Unknown Segment type: "+Kn.type)}at=a,ht=yt}if(Qe){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(he.ca(z,y,E?x:x+2))return!0}return!1}function Uu(a,y,x,b,E,z,nt,ot){if(bn.Yb(E,z,nt,ot,.05,a,y))return NaN;var at=(a-x)*(z-ot);if(at===0)return 0;var ht=((a*b-y*x)*(E-nt)-(a-x)*(E*ot-z*nt))/at;if(y=(a*b-y*x)*(z-ot)/at,ht>=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(ht<E||ht>nt)return 0}else if(ht<nt||ht>E)return 0;return 0<at?1:-1}function fh(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}Wt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Le),this.type===Yi.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],ht=at.length;for(a=0;a<ht;a++){var dt=at[a];if(nt+dt>=z)return b=z-nt,b=dt===0?0:b/dt,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+=dt}}return y},Wt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Yi.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 ht=ot[a];if(z+ht>=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+=ht}}return NaN},Wt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Yi.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],ht=at.length;for(a=0;a<ht;a++){var dt=at[a];if(nt+dt>=z)return b=z-nt,b=dt===0?0:b/dt,dt=x[ot],x=dt[2*a],ot=dt[2*a+1],E=dt[2*a+2],a=dt[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+=dt}}return y},Wt.xx=function(a){if(this.type===Yi.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=Le.alloc();return bn.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,Le.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===Yi.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 ht=Math.min(nt,at,ot,E);if(ht===ot)return b/z;if(ht===at)return(y+a)/z;if(ht===E)return(2*y+x-b)/z;if(ht===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Le.alloc(),E=1/0,ot=nt=0,at=y.length;for(var dt=ht=0,yt=0;yt<at;yt++)for(var Tt=y[yt],Gt=x[yt],$t=Tt.length,he=0;he<$t;he+=2){var Qe=Tt[he],Me=Tt[he+1];if(he!==0){bn.qh(ht,dt,Qe,Me,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-ht)*(b.x-ht)+(b.y-dt)*(b.y-dt))),ot+=Gt[(he-2)/2]}ht=Qe,dt=Me}return Le.free(b),a=nt/z,0>a?0:1<a?1:a}return 0};function _A(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Yi.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===Yi.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===Yi.F){var z=new il;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new gs(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=Xu(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];bn.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(sd(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 ht=E.segments.s,dt=ht.length,yt=0;yt<dt;yt++){var Tt=ht[yt];switch(Tt.type){case bl:4<=b.length&&(y.push(b),x.push(sd(b))),b=[],b.push(Tt.endX),b.push(Tt.endY),nt=Tt.endX,z=Tt.endY,ot=nt,at=z;break;case sa:b.push(Tt.endX),b.push(Tt.endY),nt=Tt.endX,z=Tt.endY;break;case pu:bn.Qe(nt,z,Tt.point1X,Tt.point1Y,Tt.point2X,Tt.point2Y,Tt.endX,Tt.endY,.5,b),nt=Tt.endX,z=Tt.endY;break;case gh:bn.ep(nt,z,Tt.point1X,Tt.point1Y,Tt.endX,Tt.endY,.5,b),nt=Tt.endX,z=Tt.endY;break;case xl:var Gt=Xu(Tt,E),$t=Gt.length;if($t===0){b.push(Tt.centerX),b.push(Tt.centerY),nt=Tt.centerX,z=Tt.centerY;break}for(var he=0;he<$t;he++){var Qe=Gt[he];bn.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 Oh:if(Gt=Ku(Tt,E,nt,z),$t=Gt.length,he=Tt.endX,Qe=Tt.endY,$t===0){b.push(he),b.push(Qe),nt=he,z=Qe;break}for(he=0;he<$t;he++)Qe=Gt[he],bn.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:on("Segment not of valid type: "+Tt.type)}Tt.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(sd(b)))}}}function sd(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(Fa(x,b,nt,ot))),x=nt,b=ot}return y}Wt.add=function(a){return this.ee.add(a),this},Wt.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&di(this),this.fg=new wr(a,y,E,z).freeze(),this.gg=new wr(x,b,nt,ot).freeze(),this},Oe.Object.defineProperties(Yi.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 _A(this),this.tk}},flattenedLengths:{get:function(){return _A(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Yi.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===Yi.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&&di(this,a),this.na=a,a===Yi.o?this.ee=new Si:(Yi.V===null&&(Yi.V=new Si().freeze()),this.ee=Yi.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&di(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&di(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&di(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&di(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&di(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&di(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&di(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&di(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Yi.prototype.setSpots=Yi.prototype.pm,Yi.prototype.add=Yi.prototype.add,Yi.prototype.getFractionForPoint=Yi.prototype.xx,Yi.prototype.getPointAndAngleAlongPath=Yi.prototype.Qu,Yi.prototype.getAngleAlongPath=Yi.prototype.wx,Yi.prototype.getPointAlongPath=Yi.prototype.Pu,Yi.prototype.containsPoint=Yi.prototype.ca,Yi.prototype.transform=Yi.prototype.transform,Yi.prototype.rotate=Yi.prototype.rotate,Yi.prototype.scale=Yi.prototype.scale,Yi.prototype.offset=Yi.prototype.offset,Yi.prototype.normalize=Yi.prototype.normalize,Yi.prototype.computeBoundsWithoutOrigin=Yi.prototype.ix,Yi.prototype.equalsApprox=Yi.prototype.Xa,Yi.className="Geometry",Yi.j=new ri(Yi,"Line",0),Yi.u=new ri(Yi,"Rectangle",1),Yi.F=new ri(Yi,"Ellipse",2),Yi.o=new ri(Yi,"Path",3),Yi.V=null,Yi.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Yi.className="Geometry",Yi.stringify=Yi.ia,Yi.fillPath=Yi.nb,Yi.parse=Yi.parse,Yi.Line=Yi.j,Yi.Rectangle=Yi.u,Yi.Ellipse=Yi.F,Yi.Path=Yi.o;function il(a,y,x,b,E){ns(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 Si,this.sr=this.pl.Ja,this.fw=null}il.prototype.copy=function(){var a=new il;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},Wt=il.prototype,Wt.Xa=function(a){if(!(a instanceof il&&bn.B(this.startX,a.startX)&&bn.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},Wt.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},Wt.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},Wt.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},Wt.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},Wt.add=function(a){return this.pl.add(a),this},Wt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,ot=this.segments.s,at=ot.length,ht=0;ht<at;ht++){var dt=ot[ht];switch(dt.type){case bl:z=dt.endX,nt=dt.endY,b=dt.endX,E=dt.endY;break;case sa:if(bn.Yb(b,E,dt.endX,dt.endY,x,a,y))return!0;b=dt.endX,E=dt.endY;break;case pu:if(bn.cs(b,E,dt.point1X,dt.point1Y,dt.point2X,dt.point2Y,dt.endX,dt.endY,.5,a,y,x))return!0;b=dt.endX,E=dt.endY;break;case gh:if(bn.jv(b,E,dt.point1X,dt.point1Y,dt.endX,dt.endY,.5,a,y,x))return!0;b=dt.endX,E=dt.endY;break;case xl:case Oh:var yt=dt.type===xl?Xu(dt,this):Ku(dt,this,b,E),Tt=yt.length,Gt=dt.type===xl?dt.centerX:dt.endX,$t=dt.type===xl?dt.centerY:dt.endY;if(Tt===0){if(bn.Yb(b,E,Gt,$t,x,a,y))return!0;b=Gt,E=$t;break}for(Gt=null,$t=0;$t<Tt;$t++)if(Gt=yt[$t],$t===0&&bn.Yb(b,E,Gt[0],Gt[1],x,a,y)||bn.cs(Gt[0],Gt[1],Gt[2],Gt[3],Gt[4],Gt[5],Gt[6],Gt[7],.5,a,y,x))return!0;Gt!==null&&(b=Gt[6],E=Gt[7]);break;default:on("Unknown Segment type: "+dt.type)}if(dt.isClosed&&(b!==z||E!==nt)&&bn.Yb(b,E,z,nt,x,a,y))return!0}return!1},Oe.Object.defineProperties(il.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&&di(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&di(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&di(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&di(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&di(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&di(this,a),this.pl=a,this._isInvalidBounds=!0}}}),il.prototype.add=il.prototype.add,il.prototype.equalsApprox=il.prototype.Xa,il.className="PathFigure";function gs(a,y,x,b,E,z,nt,ot){ns(this),a===void 0&&(a=sa),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===Oh?(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}gs.prototype.copy=function(){var a=new gs;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},Wt=gs.prototype,Wt.Xa=function(a){if(!(a instanceof gs)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case bl:case sa:return bn.B(this.endX,a.endX)&&bn.B(this.endY,a.endY);case pu:return bn.B(this.endX,a.endX)&&bn.B(this.endY,a.endY)&&bn.B(this.point1X,a.point1X)&&bn.B(this.point1Y,a.point1Y)&&bn.B(this.point2X,a.point2X)&&bn.B(this.point2Y,a.point2Y);case gh:return bn.B(this.endX,a.endX)&&bn.B(this.endY,a.endY)&&bn.B(this.point1X,a.point1X)&&bn.B(this.point1Y,a.point1Y);case xl:return bn.B(this.startAngle,a.startAngle)&&bn.B(this.sweepAngle,a.sweepAngle)&&bn.B(this.centerX,a.centerX)&&bn.B(this.centerY,a.centerY)&&bn.B(this.radiusX,a.radiusX)&&bn.B(this.radiusY,a.radiusY);case Oh:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&bn.B(this.xAxisRotation,a.xAxisRotation)&&bn.B(this.endX,a.endX)&&bn.B(this.endY,a.endY)&&bn.B(this.radiusX,a.radiusX)&&bn.B(this.radiusY,a.radiusY);default:return!1}},Wt.qb=function(a){a.classType===gs&&(this.type=a)},Wt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case bl:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case sa:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case pu: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 gh: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 Oh: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":"")},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return this._isFrozen=!1,this},Wt.close=function(){return this.isClosed=!0,this};function Xu(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=bn.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=Ko.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),Yi.Ha(z,nt),Ko.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 Ku(a,y,x,b){function E(he,Qe,Me,Ze){return(he*Ze<Qe*Me?-1:1)*Math.acos((he*Me+Qe*Ze)/(Math.sqrt(he*he+Qe*Qe)*Math.sqrt(Me*Me+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,ht=a.Dc,dt=a.Ec,yt=Math.cos(nt),Tt=Math.sin(nt),Gt=yt*(x-ht)/2+Tt*(b-dt)/2;nt=-Tt*(x-ht)/2+yt*(b-dt)/2;var $t=Gt*Gt/(y*y)+nt*nt/(z*z);return 1<$t&&(y*=Math.sqrt($t),z*=Math.sqrt($t)),$t=(ot===at?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*Gt*Gt)/(y*y*nt*nt+z*z*Gt*Gt)),isNaN($t)&&($t=0),ot=$t*y*nt/z,$t=$t*-z*Gt/y,isNaN(ot)&&(ot=0),isNaN($t)&&($t=0),x=(x+ht)/2+yt*ot-Tt*$t,b=(b+dt)/2+Tt*ot+yt*$t,dt=E(1,0,(Gt-ot)/y,(nt-$t)/z),yt=(Gt-ot)/y,ht=(nt-$t)/z,Gt=(-Gt-ot)/y,ot=(-nt-$t)/z,nt=E(yt,ht,Gt,ot),Gt=(yt*Gt+ht*ot)/(Math.sqrt(yt*yt+ht*ht)*Math.sqrt(Gt*Gt+ot*ot)),-1>=Gt?nt=Math.PI:1<=Gt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,Gt=y>z?z/y:1,y=bn.jx(0,0,y>z?y:z,dt,dt+nt,!0),z=Ko.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,Gt),Yi.Ha(y,z),Ko.free(z),a.ae=y,a.ae}Oe.Object.defineProperties(gs.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&&di(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&di(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&di(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&di(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&di(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&di(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&di(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&di(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&di(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Vi(a,">= zero",gs,"radiusX"),this._isFrozen&&di(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Vi(a,">= zero",gs,"radiusY"),this._isFrozen&&di(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&di(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&&di(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&&di(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&&di(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&&di(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),gs.prototype.equalsApprox=gs.prototype.Xa;var bl=new ri(gs,"Move",0),sa=new ri(gs,"Line",1),pu=new ri(gs,"Bezier",2),gh=new ri(gs,"QuadraticBezier",3),xl=new ri(gs,"Arc",4),Oh=new ri(gs,"SvgArc",4);gs.className="PathSegment",gs.Move=bl,gs.Line=sa,gs.Bezier=pu,gs.QuadraticBezier=gh,gs.Arc=xl,gs.SvgArc=Oh;function Su(){this.H=null,this.xu=new Le(0,0).freeze(),this.mt=new Le(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}Su.prototype.copy=function(){var a=new Su;return this.clone(a)},Su.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},Su.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},Su.prototype.So=function(a,y){var x=this.diagram;return x===null||Ed(x,a,y),y},Su.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ed(x,a,y),y.assign(x.Ps(y))),y},Oe.Object.defineProperties(Su.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}}}),Su.prototype.getMultiTouchDocumentPoint=Su.prototype.Bz,Su.prototype.getMultiTouchViewPoint=Su.prototype.So,Su.className="InputEvent";function xd(){this.H=null,this.xa="",this.ar=this.Lr=null}xd.prototype.copy=function(){var a=new xd;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},xd.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Oe.Object.defineProperties(xd.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}}}),xd.className="DiagramEvent";function Da(){this.Fm=ja,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Da.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Da.prototype.copy=function(){var a=new Da;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=ii(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=ii(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=ii(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=ii(y)&&typeof y.J=="function"?y.J():y,a},Da.prototype.qb=function(a){a.classType===Da&&(this.change=a)},Da.prototype.toString=function(){var a="";return a=this.change===Ju?a+"* ":this.change===ja?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===Ju?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Rr(this.object)),this.oldValue!==null&&(a+=" old: "+Rr(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Rr(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Da.prototype.I=function(a){return a?this.oldValue:this.newValue},Da.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Da.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Da.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Da.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Da.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Oe.Object.defineProperties(Da.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===Ju&&(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}}}),Da.prototype.redo=Da.prototype.redo,Da.prototype.canRedo=Da.prototype.canRedo,Da.prototype.undo=Da.prototype.undo,Da.prototype.canUndo=Da.prototype.canUndo,Da.prototype.getParam=Da.prototype.Dz,Da.prototype.getValue=Da.prototype.I,Da.prototype.clear=Da.prototype.clear;var Ju=new ri(Da,"Transaction",-1),ja=new ri(Da,"Property",0),vl=new ri(Da,"Insert",1),Zl=new ri(Da,"Remove",2);Da.className="ChangedEvent",Da.Transaction=Ju,Da.Property=ja,Da.Insert=vl,Da.Remove=Zl;function Et(){this.o=new Si().freeze(),this.xa="",this.j=!1}Et.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},Et.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()},Et.prototype.canUndo=function(){return this.isComplete},Et.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()}},Et.prototype.canRedo=function(){return this.isComplete},Et.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()}},Et.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Cr,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===ja&&b.object){var E=y.get(b.object);E||(E=new Cr,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()}},Oe.Object.defineProperties(Et.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}}}),Et.prototype.optimize=Et.prototype.ak,Et.prototype.redo=Et.prototype.redo,Et.prototype.canRedo=Et.prototype.canRedo,Et.prototype.undo=Et.prototype.undo,Et.prototype.canUndo=Et.prototype.canUndo,Et.prototype.clear=Et.prototype.clear,Et.className="Transaction";function xt(){this.Pt=new Pi,this.Jd=!1,this.u=new Si().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Si().freeze(),this.hl=new Si,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}xt.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},xt.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},xt.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Wt=xt.prototype,Wt.Xw=function(a){this.Pt.add(a)},Wt.Rx=function(a){this.Pt.remove(a)},Wt.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},Wt.eb=function(a){return a===void 0&&(a=""),Lt(this,!0,a)},Wt.Kf=function(){return Lt(this,!1,"")};function Lt(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&kr("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}Wt.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()}},xt.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},xt.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){kr("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},xt.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},xt.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){kr("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},xt.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Da;for(b.change=Ju,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},xt.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Et);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||kr("Change not within a transaction: "+x.toString()))}},xt.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},Oe.Object.defineProperties(xt.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}}}),xt.prototype.handleChanged=xt.prototype.Tu,xt.prototype.redo=xt.prototype.redo,xt.prototype.undo=xt.prototype.undo,xt.prototype.canUndo=xt.prototype.canUndo,xt.prototype.discardHistoryAfterIndex=xt.prototype.lx,xt.prototype.rollbackTransaction=xt.prototype.Kf,xt.prototype.commitTransaction=xt.prototype.eb,xt.prototype.startTransaction=xt.prototype.Ea,xt.prototype.removeModel=xt.prototype.Rx,xt.prototype.addModel=xt.prototype.Xw,xt.prototype.clear=xt.prototype.clear,xt.className="UndoManager";function Rt(){ns(this),this.H=jh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Su,this.Zr=-1}Rt.prototype.toString=function(){return this.name!==""?this.name+" Tool":or(this.constructor)},Rt.prototype.updateAdornments=function(){},Rt.prototype.canStart=function(){return this.isEnabled},Rt.prototype.doStart=function(){},Rt.prototype.doActivate=function(){this.isActive=!0},Rt.prototype.doDeactivate=function(){this.isActive=!1},Rt.prototype.doStop=function(){},Rt.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Rt.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Rt.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Rt.prototype.doMouseMove=function(){},Rt.prototype.doMouseUp=function(){this.stopTool()},Rt.prototype.doMouseWheel=function(){},Rt.prototype.canStartMultiTouch=function(){return!0},Rt.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Le.allocAt(NaN,NaN)),b=y.So(1,Le.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}Le.free(x),Le.free(b)},Rt.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Le.allocAt(NaN,NaN)),b=y.So(1,Le.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 Le((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}Le.free(x),Le.free(b)},Rt.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Rt.prototype.doKeyUp=function(){},Rt.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Rt.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Rt.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Zo?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||(Zo?y.meta:y.control)||y.shift||a.clearSelection()}},Rt.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,se(a,b,x),b.handled};function se(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)}}}Rt.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}},Rt.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Rt.prototype.doCurrentObjectChanged=function(){},Rt.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===Fe&&!y.shift||E===ye&&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===Fe&&y.shift||E===ye&&!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)}}},Rt.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Rt.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=_i(function(){x.doWaitAfter(b)},a)},Rt.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ke.clearTimeout(this.Zr),this.Zr=-1},Rt.prototype.doWaitAfter=function(){},Rt.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof bs);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Rt.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},Oe.Object.defineProperties(Rt.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof jn&&(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}}}),Rt.prototype.startTransaction=Rt.prototype.Ea,Rt.className="Tool";function Zt(){Rt.call(this),this.name="ToolManager",this.hb=new Si,this.ob=new Si,this.Hb=new Si,this.F=this.V=850,this.o=new zi(2,2).ja(),this.Ha=5e3,this.ia=ye,this.u=pn,this.Mp=this.j=null,this.zj=-1}In(Zt,Rt),Zt.prototype.initializeStandardTools=function(){},Zt.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof bs&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Zt.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===gn&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Nn){y.bubbles=!0;return}if(this.gestureBehavior===gn)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===ye?this.mouseWheelBehavior=Fe:this.mouseWheelBehavior===Fe&&(this.mouseWheelBehavior=ye)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Zt.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Nn){y.bubbles=!0;return}if(this.gestureBehavior===gn)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}}pe(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function pe(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Zt.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof bs&&(y===a||y.rg(a))||this.hideToolTip()},Zt.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()))},Zt.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)},Zt.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 bs)||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()},Zt.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof bs){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 Or&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Ke.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=_i(function(){E.hideToolTip()},a)}},Zt.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}},Zt.prototype.hideToolTip=function(){this.zj!==-1&&(Ke.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof bs?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Or&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Zt.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()},Zt.prototype.doMouseWheel=function(){this.standardMouseWheel()},Zt.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Zt.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Zt.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},Zt.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},Zt.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)},Oe.Object.defineProperties(Zt.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 bs?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}}}),Zt.prototype.replaceStandardTool=Zt.prototype.gb;var ye=new ri(Zt,"WheelScroll",0),Fe=new ri(Zt,"WheelZoom",1),Xe=new ri(Zt,"WheelNone",2),pn=new ri(Zt,"GestureZoom",3),gn=new ri(Zt,"GestureCancel",4),Nn=new ri(Zt,"GestureNone",5);Zt.className="ToolManager",Zt.WheelScroll=ye,Zt.WheelZoom=Fe,Zt.WheelNone=Xe,Zt.GestureZoom=pn,Zt.GestureCancel=gn,Zt.GestureNone=Nn;function He(){Rt.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 Le(NaN,NaN),this.Fr=new Le,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 ci;In(He,Rt),He.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},He.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},He.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,(Zo?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},He.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),en=null,this.isActive=!0,this.tl.set(a.position),Yn(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&&vu(a),Kd(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,en=this,un=this.diagram,this.doSimulatedDragOut()))};function Yn(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Wi?(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 oi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}He.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},He.prototype.Pd=function(a){return a===void 0?new sc(qo):this.isGridSnapEnabled?new sc(new Le(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new sc(a.copy())},He.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),gi(this),gc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<ci.count){for(var y=ci,x=y.length,b=0;b<x;b++){var E=y.M(b);lr(E),Hi(E),gi(E),E.diagram.ug()}y.clear()}lr(this),this.tl.h(NaN,NaN),un!==null&&(un.currentCursor=""),en=un=null,Hi(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Sd(a,!0)},He.prototype.stopTransaction=function(){var a=this.diagram,y=Rt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function gi(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Ti(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Un(){var a=en;Hi(a),io(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}He.prototype.doCancel=function(){Hi(this),io(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},He.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},He.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Ai(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")):io(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 Cr,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 Wi&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Yn(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Hi(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 Wi&&(x.value.point=new Le(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function lr(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 Ir(a,y,x){var b=a.diagram,E=a.startPoint,z=Le.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Le.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(vu(b),b.hk())}He.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Ic(b,a,y,this.dragOptions,x)};function io(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 Wi&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Nf(b,-E.x,-E.y)}y.bd()}}function mr(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Qn(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=Ti(a,E,b),!a.isActive&&en===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof Ro)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&en===null||(a.doDragOver(y,b),!a.isActive&&en===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)}He.prototype.findDragOverObject=function(a){var y=this;return Ys(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof bs||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},He.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 Ti(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&&en===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=Br(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 Br(a){var y=a.panel;return y!==null?y:a instanceof Yr&&!(a instanceof Ro)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Wr(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ht){return b.findValidLinkablePort(ht,x)});a=Le.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(Yo,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return Le.free(a),nt}function Qn(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=Wr(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=Wr(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)):Ei(E,nt,z,at,ot):Ei(E,null,null,null,null)}}}}He.prototype.doDragOver=function(){};function $n(a,y){var x=a.diagram;a.dragsLink&&Qn(a,!0),gi(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;Zi(a,E,z),z=Br(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||en!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof hr&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||en!==null){for(a=ai.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof hr&&ge(x,b,a);ai.free(a)}}}function Zi(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Ro||(x=a.mouseDrop,x!==null&&x(y))}function ge(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 Wi},!0,function(E){return E instanceof Wi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}He.prototype.doDropOnto=function(){},He.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()?(Ai(this,!1),Kd(a,this.copiedParts),Ir(this,this.copiedParts,!1),gc(a,this.copiedParts)):this.mayMove()?(Hi(this),Ir(this,this.draggedParts,!0)):this.mayDragOut()?(Ai(this,!1),Ir(this,this.copiedParts,!1)):Hi(this),mr(this,a.lastInput.documentPoint))}},He.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?(Hi(this),Ai(this,!0),Kd(a,this.copiedParts),Ir(this,this.copiedParts,!1),gc(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,Hi(this),this.mayMove()&&(Ir(this,this.draggedParts,!0),mr(this,a.lastInput.documentPoint))),this.Ym=!0,$n(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&Ce(this),a.Ya(),gc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},He.prototype.simulatedMouseMove=function(a,y,x){if(en===null)return!1;var b=en.diagram;x instanceof jn||(x=null);var E=un;return x!==E&&(E!==null&&E!==b&&(E.ug(),en.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),un=x,x!==null&&x!==b&&(Un(),E=x.toolManager.findTool("Dragging"),E!==null&&(ci.contains(E)||ci.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)},He.prototype.simulatedMouseUp=function(a,y,x){if(en===null)return!1;var b=un,E=en.diagram;if(x===null)return en.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),en.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;un=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Un(),ci.contains(b)||ci.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 Le),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=en,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function Ce(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof hr&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}He.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Zo?!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())},He.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())},He.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())},He.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},He.prototype.Az=function(){return en},He.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=en;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},He.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),cu(a),a.animationManager.Cc(),a=en,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},He.prototype.doSimulatedDragLeave=function(){var a=en;a!==null&&a.doSimulatedDragOut(),this.doCancel()},He.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=en;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Ve(this,y.draggedParts.Lf(),!1,a.firstInput),Ir(this,this.copiedParts,!1),mr(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},He.prototype.doSimulatedDrop=function(){var a=this.diagram,y=en;if(y!==null){var x=y.diagram;if(y.Ym=!0,Hi(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Ve(this,y.draggedParts.Lf(),!0,a.lastInput),Ir(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)})),$n(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 Ve(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=ai.alloc();E=b=1/0;for(var nt=-1/0,ot=-1/0,at=y.iterator;at.next();){var ht=at.value;if(ht.isVisible()){var dt=ht.location;ht=dt.x,dt=dt.y,isNaN(ht)||isNaN(dt)||(ht<b&&(b=ht),dt<E&&(E=dt),ht>nt&&(nt=ht),dt>ot&&(ot=dt))}}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,ai.free(z),z=a.Fr,nt=new Cr,ot=Le.alloc(),at=y.iterator;at.next();)ht=at.value,ht instanceof Wi&&ht.canCopy()&&(dt=x.I(ht),dt!==null&&(dt.points=ht.points,Nf(dt,z.x-b,z.y-E),dt.suspendsRouting=!0,nt.add(dt,a.Pd())));for(y=y.iterator;y.next();)ht=y.value,ht.Zc()&&ht.canCopy()&&(at=x.I(ht),at!==null&&(ht=ht.location,ot.h(z.x-(b-ht.x),z.y-(E-ht.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));Le.free(ot),a.copiedParts=nt,Yn(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Nf(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}He.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},He.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Le},Oe.Object.defineProperties(He.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}}}),He.prototype.getDraggingSource=He.prototype.Az;var en=null,un=null;He.className="DraggingTool",ci=new Si,Xr("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Zt.prototype.doCancel=function(){en!==null&&en.doCancel(),Rt.prototype.doCancel.call(this)};function hn(){Rt.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Wi,y=new Go;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Go,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new hr,y=new Go,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Es,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new hr,y=new Go,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Es,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 Cr,this.Of=this.gj=this.Pf=null}In(hn,Rt),hn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},hn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=zi.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,zi.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Yo,z=Le.alloc(),x.location=y.ga(Yo,z),Le.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},hn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Es,y.fromSpot=Ma,y.toSpot=Ma),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},hn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},hn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof hr){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)}},hn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof hr))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof hr)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},hn.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(yt){return E.findValidLinkablePort(yt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,ot=nt.part;if(ot instanceof hr){var at=nt.ga(Yo,Le.alloc()),ht=x.x-at.x,dt=x.y-at.y;Le.free(at),at=ht*ht+dt*dt,at<b&&(ht=this.validPortsCache.I(nt),ht!==null?ht&&(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 hr&&(x.layer===null||x.layer.allowLink))?y:null},hn.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},hn.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},hn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},hn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof hr))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof hr))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},hn.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)},hn.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),Tn(this,x,y,b)};function Tn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Tn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Tn(a,y.labeledLink,x,b))))}hn.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!==Eh){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!Xn(this,a,y,x,!0)}if(b===AA){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!Xn(this,a,y,x,!0)}if(b===oc)return a===y?a=!0:(b=new Pi,b.add(y),a=Te(this,b,a,y,x)),!a;if(b===Vd)return!Xn(this,a,y,x,!1);if(b===cA)return a===y?a=!0:(b=new Pi,b.add(y),a=ln(this,b,a,y,x)),!a}return!0};function Xn(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&&Xn(a,nt,x,b,E)))return!0}return!1}function Te(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&&Te(a,y,nt,b,E)))return!0}return!1}function ln(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&&ln(a,y,ot,b,E))return!0}}return!1}Oe.Object.defineProperties(hn.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}}}),hn.className="LinkingBaseTool";function vn(){hn.call(this),this.name="Linking",this.V={},this.F=null,this.K=En,this.Xd=null}In(vn,hn),vn.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},vn.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 hr)))return null;var x=this.direction;if(x===En||x===Vn){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===En||x===li)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},vn.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 hr&&(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 hr&&(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)},vn.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()},vn.prototype.doStop=function(){hn.prototype.doStop.call(this),this.startObject=null},vn.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 hr&&(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)}}},vn.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Wi)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)},vn.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},vn.prototype.doNoLink=function(){},Oe.Object.defineProperties(vn.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 En=new ri(vn,"Either",0),Vn=new ri(vn,"ForwardsOnly",0),li=new ri(vn,"BackwardsOnly",0);vn.className="LinkingTool",vn.Either=En,vn.ForwardsOnly=Vn,vn.BackwardsOnly=li;function oi(){hn.call(this),this.name="Relinking";var a=new Go;a.figure="Diamond",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Go,a.figure="Diamond",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ai}In(oi,hn),oi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Wi){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)}},oi.prototype.makeAdornment=function(a,y){var x=new bs;return x.type=Jn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},oi.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},oi.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 bs&&x.adornedPart instanceof Wi))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=Eo),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Eo),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},oi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===_p||x===If)&&(x=Vh),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}},oi.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()},oi.prototype.doStop=function(){hn.prototype.doStop.call(this),this.handle=null},oi.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 hr&&(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()}}},oi.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},oi.prototype.doNoRelink=function(){};function Ei(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)}Oe.Object.defineProperties(oi.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 bs))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),oi.className="RelinkingTool",Xr("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Xr("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ii(){Rt.call(this),this.name="LinkReshaping";var a=new Go;a.figure="Rectangle",a.desiredSize=la,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Go,a.figure="Diamond",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Le,this.Yq=new Si}In(Ii,Rt),Ii.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:sr},Ii.prototype.om=function(a,y){a.reshapingBehavior=y},Ii.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Wi){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)}},Ii.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new bs,E.type=Jn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==nd)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 ht=y.i(x+1);bn.B(at.x,ht.x)&&bn.B(at.y,ht.y)&&(ht=y.i(x-1)),bn.B(at.x,ht.x)?(this.om(ot,Jr),ot.cursor="n-resize"):bn.B(at.y,ht.y)&&(this.om(ot,Ar),ot.cursor="w-resize")}else nt===z-1&&b?(at=y.i(z-1),ht=y.i(z),bn.B(at.x,ht.x)&&bn.B(at.y,ht.y)&&(at=y.i(z+1)),bn.B(at.x,ht.x)?(this.om(ot,Jr),ot.cursor="n-resize"):bn.B(at.y,ht.y)&&(this.om(ot,Ar),ot.cursor="w-resize")):nt!==z&&(this.om(ot,Xi),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},Ii.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ii.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ii.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},Ii.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 Wi){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}}},Ii.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ii.prototype.stopTransaction=function(){var a=this.diagram,y=Rt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ii.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ii.prototype.getResegmentingPoint=function(){return this.handle.ga(Yo)},Ii.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ii.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&&($i(this,nt,b,E,z,!0)||$i(this,nt,b,E,z,!1))){var ot=y.points.copy();$i(this,nt,b,E,z,!0)?(ot.cd(x-2,new Le(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new Le(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new Le((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new Le((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&&($i(this,b,E,z,nt,!0)||$i(this,b,E,z,nt,!1))&&(ot=y.points.copy(),$i(this,b,E,z,nt,!0)?(ot.cd(x-1,new Le(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new Le(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new Le((b.x+nt.x)/2,b.y)),ot.cd(x+2,new Le((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=Le.alloc(),bn.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()),Le.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function $i(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}Ii.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===Jr?(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===Jr?(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);bn.B(z.x,E.x)&&bn.B(E.y,nt.y)?(bn.B(z.x,y.i(b-2).x)&&!bn.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),bn.B(nt.y,y.i(b+2).y)&&!bn.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):bn.B(z.y,E.y)&&bn.B(E.x,nt.x)?(bn.B(z.y,y.i(b-2).y)&&!bn.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),bn.B(nt.x,y.i(b+2).x)&&!bn.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):bn.B(z.x,E.x)&&bn.B(E.x,nt.x)?(bn.B(z.x,y.i(b-2).x)&&!bn.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),bn.B(nt.x,y.i(b+2).x)&&!bn.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):bn.B(z.y,E.y)&&bn.B(E.y,nt.y)&&(bn.B(z.y,y.i(b-2).y)&&!bn.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),bn.B(nt.y,y.i(b+2).y)&&!bn.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(Yo,Le.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Le.alloc()),y.L(0,b.x,b.y),Le.free(z),Le.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(Yo,Le.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Le.alloc()),y.L(y.pointsCount-1,a.x,a.y),Le.free(x),Le.free(a));y.zf()},Ii.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Xi:return a;case Jr:return new Le(y.i(x).x,a.y);case Ar:return new Le(a.x,y.i(x).y);default:case sr:return y.i(x)}},Oe.Object.defineProperties(Ii.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 bs))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}}}),Ii.prototype.setReshapingBehavior=Ii.prototype.om,Ii.prototype.getReshapingBehavior=Ii.prototype.Ru;var sr=new ri(Ii,"None",0),Ar=new ri(Ii,"Horizontal",1),Jr=new ri(Ii,"Vertical",2),Xi=new ri(Ii,"All",3);Ii.className="LinkReshapingTool",Ii.None=sr,Ii.Horizontal=Ar,Ii.Vertical=Jr,Ii.All=Xi,Xr("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function _n(){Rt.call(this),this.name="Resizing",this.o=new zi(1,1).freeze(),this.j=new zi(9999,9999).freeze(),this.yg=new zi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Go;a.alignmentFocus=Yo,a.figure="Rectangle",a.desiredSize=la,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Le,this.Dw=new zi,this.Tn=new Le,this.rt=new zi(0,0),this.qt=new zi(1/0,1/0),this.pt=new zi(1,1)}In(_n,Rt),_n.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Wi)){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(),ng(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},_n.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new bs,y.type=Jn.Spot,y.locationSpot=Yo;var x=new Wh;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Oa)),y.add(this.makeHandle(a,su)),y.add(this.makeHandle(a,Ll)),y.add(this.makeHandle(a,Cs)),y.add(this.makeHandle(a,Wa)),y.add(this.makeHandle(a,nl)),y.add(this.makeHandle(a,Dl)),y.add(this.makeHandle(a,Aa))}else if(lh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},_n.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},_n.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=Yo),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 Jn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},_n.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},_n.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))},_n.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},_n.prototype.stopTransaction=function(){var a=this.diagram,y=Rt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},_n.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},_n.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,Le.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Le.free(E)}},_n.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,Le.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Le.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},_n.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 Ro){var b=new Si;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()}},_n.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Yo);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ht=nt.x+nt.width,dt=nt.y+nt.height,yt=1;if(!z){yt=nt.width;var Tt=nt.height;0>=yt&&(yt=1),0>=Tt&&(Tt=1),yt=Tt/yt}return Tt=Le.alloc(),bn.No(a.x,a.y,ot,at,E.width,E.height,Tt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Tt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.y=Math.max(Tt.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=Math.max(dt-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.x=ht-a.width,a.y=dt-a.height)):1<=y.y?(a.x=Math.max(Tt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.height=Math.max(Math.min(Tt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.x=ht-a.width)):(a.x=Math.max(Tt.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=ht-a.x,z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(dt-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Tt.x-ot,b.width),x.width),a.y=Math.max(Tt.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=Math.max(dt-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width),a.y=dt-a.height)):1<=y.y?(a.width=Math.max(Math.min(Tt.x-ot,b.width),x.width),a.height=Math.max(Math.min(Tt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt):(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width))):(a.width=Math.max(Math.min(Tt.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(yt*a.width,b.height),x.height),a.width=a.height/yt,a.y=at+.5*(dt-at-a.height))):0>=y.y?(a.y=Math.max(Tt.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=dt-a.y,z||(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ht-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Tt.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/yt,b.width),x.width),a.height=yt*a.width,a.x=ot+.5*(ht-ot-a.width))),Le.free(Tt),a},_n.prototype.computeReshape=function(){var a=bi;return this.adornedObject instanceof Go&&(a=$A(this.adornedObject)),!(a===Mr||this.diagram.lastInput.shift)},_n.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},_n.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},_n.prototype.computeCellSize=function(){var a=new zi(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},Oe.Object.defineProperties(_n.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 bs))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 bs)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}}}),_n.className="ResizingTool",Xr("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function oo(){Rt.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Le,this.ue=null;var a=new Go;a.figure="Ellipse",a.desiredSize=ca,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Le(NaN,NaN),this.u=0,this.F=50}In(oo,Rt),oo.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)}},oo.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new bs,y.type=Jn.Position,y.locationSpot=Yo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(lh(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},oo.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},oo.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)},oo.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(Yo)},oo.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)},oo.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Le(NaN,NaN),this.isActive=a.isMouseCaptured=!1},oo.prototype.stopTransaction=function(){var a=this.diagram,y=Rt.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},oo.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},oo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},oo.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()},oo.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()}},oo.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},Oe.Object.defineProperties(oo.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 bs))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 bs)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}}}),oo.className="RotatingTool",Xr("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function lo(){Rt.call(this),this.name="ClickSelecting"}In(lo,Rt),lo.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},lo.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},lo.className="ClickSelectingTool";function ir(){Rt.call(this),this.name="Action",this.pk=null}In(ir,Rt),ir.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},ir.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()},ir.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))}},ir.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()},ir.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())},ir.prototype.doStop=function(){this.pk=null},ir.className="ActionTool";function yr(){Rt.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Le(0,0)}In(yr,Rt),yr.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)},yr.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},yr.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 Yr)x.Zc()&&(lh(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);ii(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Le.allocAt(a.x,a.y);this.isGridSnapEnabled&&ic(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Le.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Oe.Object.defineProperties(yr.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}}}),yr.className="ClickCreatingTool";function fr(){Rt.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Yr;a.layerName="Tool",a.selectable=!1;var y=new Go;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}In(fr,Rt),fr.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))},fr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},fr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},fr.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=zi.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),zi.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},fr.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()},fr.prototype.computeBoxBounds=function(){var a=this.diagram;return new ai(a.firstInput.documentPoint,a.lastInput.documentPoint)},fr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Zo?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 Si,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)}},Oe.Object.defineProperties(fr.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}}}),fr.className="DragSelectingTool";function nr(){Rt.call(this),this.name="Panning",this.Xt=new Le,this.xy=new Le,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ke.document,"scroll",a.Kw,!1),a.stopTool()}}In(nr,Rt),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(Ke.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)}},Oe.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",Xr("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Xr("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Xr("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Xr("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Xr("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Or(){this.F=this.u=this.j=this.o=null}Oe.Object.defineProperties(Or.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}}}),Or.className="HTMLInfo";function uo(a,y,x){this.text=a,this.hx=y,this.visible=x}uo.className="ContextMenuButtonInfo";function So(){Rt.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Le,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}In(So,Rt);function Fo(a){var y=new Or;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},ho=y,a.tu=function(){a.stopTool()},y=qi("div");var x=qi("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=qi("style");Ke.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",zr,!1),b.addEventListener(y,"selectstart",zr,!1),b.addEventListener(x,"contextmenu",zr,!1)),y.className="goCXforeground",x.className="goCXbackground",Ke.document.body&&(Ke.document.body.appendChild(y),Ke.document.body.appendChild(x)),Ps=y,Os=x,Pa=!0}function zr(a){return a.preventDefault(),!1}So.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)},So.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},So.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},So.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof jn||(a instanceof xn?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},So.prototype.doActivate=function(){},So.prototype.doMouseDown=function(){if(Rt.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof bs){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Vo(this)},So.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof bs){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Vo(this)};function Vo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Or||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Mo(a,!0),a.isActive||a.stopTool())}So.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Mo(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=ho,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof xn?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof bs&&!a.currentContextMenu.visible&&a.stopTool()}}So.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},So.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof bs){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 Or&&a.show(y,x,this);this.currentContextMenu=a},So.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}},So.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof bs?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Or&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function hs(a){var y=new Si;return y.add(new uo("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new uo("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new uo("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new uo("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new uo("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new uo("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new uo("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new uo("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new uo("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new uo("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new uo("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new uo("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new uo("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}So.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=hs(this)),Ps.innerHTML="",Os.addEventListener("pointerdown",this.tu,!1);var y=this,x=qi("ul");x.className="goCXul",Ps.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=qi("li"),z.className="goCXli";var nt=qi("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)}}Ps.style.display="block",Os.style.display="block"},So.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ho){Ps.style.display="none",Os.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Os,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Oe.Object.defineProperties(So.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof bs?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Pa===!1&&ho===null&&Us&&Fo(this),ho},set:function(a){a===null&&(Pa=!0),ho=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ho=null,Pa=!1,Os=null,Ps=null;So.className="ContextMenuTool",Xr("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Io(){Rt.call(this),this.name="TextEditing",this.Zh=new ha,this.ia=null,this.V=ko,this.vj=null,this.qa=bo,this.u=1,this.F=!0,this.o=null,this.j=new Or,this.kt=null,Fs(this,this.j)}In(Io,Rt);function Fs(a,y){if(Us){var x=qi("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(as)):E==="Tab"?(a.acceptText(Po),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==bo){var b=a.kt;a.qa===Ls&&(a.qa=_s),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==bo){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 ha&&z instanceof Io)if(z.state===Yl)x.style.border="3px solid red",x.focus();else{var nt=b.ga(Yo),ot=E.position,at=E.scale,ht=b.Df()*at;ht<z.minimumEditorScale&&(ht=z.minimumEditorScale);var dt=b.naturalBounds.width*ht+6,yt=b.naturalBounds.height*ht+2,Tt=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ht,yt=ot.y*yt-ot.y*at+ot.offsetY-(.5*yt-.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*ht+"%",x.style.lineHeight="normal",x.style.width=dt+"px",x.style.left=(Tt-dt/2|0)-1+"px",x.style.top=(nt+yt|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=ht,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)}}}Io.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||eu&&eu!==this&&(eu.acceptText(jl),eu&&eu!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof ha&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===ko&&!y.isSelected||this.starting===Jo&&2>a.lastInput.clickCount)):!1},Io.prototype.doStart=function(){eu=this,this.textBlock!==null&&this.doActivate()},Io.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 ha&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Ls;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new ai(this.textBlock.ga(Oa),this.textBlock.ga(Ll));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Io.prototype.doCancel=function(){this.stopTool()},Io.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Io.prototype.doMouseDown=function(){this.isActive&&this.acceptText(jl)},Io.prototype.acceptText=function(a){switch(a){case jl:this.qa===As?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Ls||this.qa===Yl||this.qa===_s)&&(this.qa=ea,$a(this));break;case js:case as:case Po:(as!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Ls||this.qa===Yl||this.qa===_s)&&(this.qa=ea,$a(this))}};function $a(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=As,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=Yl,a.doError(E,z))}}Io.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)},Io.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Io.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=bo,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Io.prototype.doStop=function(){eu=null},Io.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)))},Io.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Oe.Object.defineProperties(Io.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)}}}),Io.prototype.measureTemporaryTextBlock=Io.prototype.Lx;var js=new ri(Io,"LostFocus",0),jl=new ri(Io,"MouseDown",1),Po=new ri(Io,"Tab",2),as=new ri(Io,"Enter",3),ds=new ri(Io,"SingleClick",0),ko=new ri(Io,"SingleClickSelected",1),Jo=new ri(Io,"DoubleClick",2),bo=new ri(Io,"StateNone",0),Ls=new ri(Io,"StateActive",1),_s=new ri(Io,"StateEditing",2),ea=new ri(Io,"StateValidating",3),Yl=new ri(Io,"StateInvalid",4),As=new ri(Io,"StateValidated",5),eu=null;Io.className="TextEditingTool",Io.LostFocus=js,Io.MouseDown=jl,Io.Tab=Po,Io.Enter=as,Io.SingleClick=ds,Io.SingleClickSelected=ko,Io.DoubleClick=Jo,Io.StateNone=bo,Io.StateActive=Ls,Io.StateEditing=_s,Io.StateValidating=ea,Io.StateInvalid=Yl,Io.StateValidated=As,Xr("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function fa(a){Tu||(Iu(),Tu=!0),this.H=jh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=Gu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Pi,this.ce=new Va,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)}fa.prototype.Xe=function(a){this.H=a},fa.prototype.canStart=function(){return!0};function yl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),du(a.H),a.zb=!0)}function po(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===Gu?(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===sh&&y.vc.clear(),a.Qw=!!(a.Pk===oh&&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(),Cu(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Al&&b!==null&&(delete b.start.scale,delete b.end.scale),Ke.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&vu(x),Rd(x),a.zb=!1,y.start(),y.bc&&(Na(a),x.Ya(),ec(y,0),cu(x,!0),Xa(a),x.R("AnimationStarting",a)))}))}}function Ra(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Nu(a,y,x,b){a.isTicking||Ra(a)||y instanceof Wi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Wt=fa.prototype,Wt.fv=function(a){return this.ce.fv(a)},Wt.Xu=function(a){return this.ce.Xu(a)};function wa(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 xn&&at.diagram!==null||at instanceof jn){ot=!0;break t}}ot=!1}ot?ph(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Na(E),cu(E.H),Xa(E)),Ke.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ke.requestAnimationFrame(function(){x()}))}function na(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Na(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 Xa(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Wt.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(),Cu(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Cu(y,this.H)},Wt.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))},Wt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ia(this,a))},Wt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Sl(this.ce,y,"position",y.position,y.position),Ia(this,a))};function ul(a,y,x){!a.zb||y.D(x)||Ra(a)||(a.H.pi||(y=x.copy()),Sl(a.ce,a.H,"position",y,x))}function Qs(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ia(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Nl(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],ht=y[1],dt=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ht):(dt===0||dt===100)&&(at=z,ht=nt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,nt=E(x,nt,ht-nt,b),ot=E(x,ot,dt-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+ot+"%, "+x+")"}function Iu(){function a(x,b,E,z,nt,ot){x.position=new Le(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new Cr;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 Le(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 Le(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 Le(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,ht=E.actualBounds;E=ht.x+ht.width/2-at.width/2,at=ht.y+ht.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 Le(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 ai(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=Nl(b,E,nt,ot,z)}),y.add("stroke",function(x,b,E,z,nt,ot){x.stroke=Nl(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=Nl(b,E,nt,ot,z)}),y.add("areaBackground",function(x,b,E,z,nt,ot){x.areaBackground=Nl(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)}),mu=y}Oe.Object.defineProperties(fa.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&&Vi(a,">= 1",fa,"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}}}),fa.prototype.stopAnimation=fa.prototype.Cc;var mu=null,Tu=!1,Gu=new ri(fa,"Default",1),oh=new ri(fa,"AnimateLocations",2),sh=new ri(fa,"None",3);fa.className="AnimationManager",fa.defineAnimationEffect=function(a,y){Tu||(Iu(),Tu=!0),mu.add(a,y)},fa.Default=Gu,fa.AnimateLocations=oh,fa.None=sh;function Va(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=bh,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 Cr,this.Tt=new Cr,this.yl=new Pi,this.Ut=new Pi,this.dw=kc,a&&Object.assign(this,a)}Va.prototype.suspend=function(){this.Xk=!0},Va.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ph(this,!0),Na(this.Yd),cu(this.H),Xa(this.Yd),this.H.redraw()};function Cu(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}Wt=Va.prototype,Wt.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 jn?a=x:x instanceof xn&&(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===Gu&&this===y.defaultAnimation&&(this.Lp=Dh,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Ld),Na(y),this.yl.each(function(b){b.data=null,a.add(b)}),Xa(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,wa(y,this),this)},Wt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Wt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof jn?this.H=a:a instanceof xn&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Yr){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Sl(this,a,y,x,b,E),this};function Sl(a,y,x,b,E,z){var nt=a.vc;if(y instanceof jn&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(fd(b),bg(),b=[Oi.j,Oi.u,Oi.o,Oi.F],fd(E),bg(),E=[Oi.j,Oi.u,Oi.o,Oi.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ht=ot.end;at[x]===void 0&&(at[x]=dl(b)),ht[x]=dl(E)}else at={},ht={},at[x]=dl(b),ht[x]=dl(E),ot=at.position,y instanceof xn&&ot instanceof Le&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ht.position),ot=new fc(at,ht,z),nt.add(y,ot);nt=at[x],nt instanceof Le&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Yr?ot.Ku.location=dl(y.location):z&&(ot.Ku[x]=dl(b))}function dl(a){return a instanceof Le||a instanceof zi?a.copy():a}Wt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Wt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function ph(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),Na(x),ec(a,E),cu(a.H,!0),Xa(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 ec(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof xn&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=mu,ht;for(ht in nt)ht==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ht)===null||at.get(ht)(z,ot[ht],nt[ht],a.Lp,y,x,a)}}}Wt.stop=function(){return this.bc?(this.Ml(!0),this):this},Wt.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,Na(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=mu;b.next();){var nt=b.key,ot=b.value,at=E?ot.end:ot.start,ht=E?ot.start:ot.end,dt=ot.Ku,yt;for(yt in ht)if(z.get(yt)!==null){var Tt=yt;!ot.Hu||Tt!=="position:nodeCollapse"&&Tt!=="position:placeholder"||(Tt="position"),z.get(Tt)(nt,at[yt],dt[yt]!==void 0?dt[yt]:ot.Hu?at[yt]:ht[yt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&dt.location!==void 0&&nt instanceof Yr&&(nt.location=dt.location),ot.nv&&nt instanceof Yr&&nt.Zb(!1)}if(y.As.clear(),Sd(y,!1),y.Ya(),y.N(),cu(y,!0),x.defaultAnimation===this){for(yt=x.pr.iterator;yt.next();)E=yt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}cu(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Xa(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Cu(this,null),x.Ml(this),y.$b())}},Wt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Ro&&(b=y.placeholder),b!==null?(x=b.ga(Oa),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Le(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Ro)for(a=a.memberParts;a.next();)b=a.value,b instanceof hr&&this.Cj(b,y)},Wt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Ro&&(x=y.placeholder),x!==null){var b=x.ga(Oa);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 Ro)for(a=a.memberParts;a.next();)b=a.value,b instanceof hr&&this.Aj(b,y)}},Wt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Oe.Object.defineProperties(Va.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Vi(a,">= 1",Va,"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:on("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}}}),Va.prototype.getTemporaryState=Va.prototype.Ez,Va.prototype.stop=Va.prototype.stop,Va.prototype.add=Va.prototype.add,Va.prototype.addTemporaryPart=Va.prototype.Iy;function bh(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Dh(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}Va.className="Animation",Va.EaseLinear=function(a,y,x,b){return x*a/b+y},Va.EaseInOutQuad=bh,Va.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},Va.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},Va.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},Va.EaseOutExpo=Dh;function fc(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}fc.className="AnimationState";function Wu(a,y,x){this.xd=null,this.rf=a,this.so=x||ra,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=uu))}Wu.prototype.copy=function(){var a=new Wu(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 Ta(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))}Oe.Object.defineProperties(Wu.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 ra=new ri(Wu,"Default",1),uu=new ri(Wu,"Immediate",2),wl=new ri(Wu,"Bundled",3);Wu.className="AnimationTrigger",Wu.Default=ra,Wu.Immediate=uu,Wu.Bundled=wl;function ga(a){ns(this),this.H=null,this.Pa=new Si,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)}Wt=ga.prototype,Wt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Uo(x)}a.clear(),this.Zq.length=0},Wt.Xe=function(a){this.H=a},Wt.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 Ro?E++:at instanceof hr?b++:at instanceof Wi?z++:at instanceof bs?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 hr?ot+=" "+Rr(b):x instanceof Wi&&(ot+=" "+Rr(x.fromNode)+" "+Rr(x.toNode));return y+" "+this.Pa.count+": "+ot},Wt.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=Le.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||ng(ot)!==!1)&&ot.isVisible()&&(E.assign(a),Lo(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return Le.free(E),ot}return Le.free(E),null},Wt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Si||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=Le.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||ng(at)!==!1)&&at.isVisible()){z.assign(a),Lo(z,at.oe);var ht=at;at.ji(z,y,x,b)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||b.add(ht))}}return Le.free(z),b},Wt.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 Si||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||ng(at)!==!1)&&at.isVisible()){var ht=at;at.Cf(a,y,x,b,E)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||E.add(ht))}}return E},Wt.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 ht=ot[at];if((nt!==!0||ng(ht)!==!1)&&z(ht)&&ht.isVisible()){var dt=ht;ht.Cf(a,y,x,b,E)&&(y!==null&&(dt=y(dt)),dt===null||x!==null&&!x(dt)||E.add(dt))}}return E},Wt.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 Si||E instanceof Pi)&&(z=E),E=!0),z instanceof Si||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=Le.alloc(),at=Le.alloc(),ht=this.Pa.s,dt=ht.length;dt--;){var yt=ht[dt];if((nt!==!0||ng(yt)!==!1)&&yt.isVisible()){ot.assign(a),Lo(ot,yt.oe),at.h(a.x+y,a.y),Lo(at,yt.oe);var Tt=yt;yt.og(ot,at,x,b,E,z)&&(x!==null&&(Tt=x(Tt)),Tt===null||b!==null&&!b(Tt)||z.add(Tt))}}return Le.free(ot),Le.free(at),z},Wt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=vi();for(var E=vi(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof Wi){if(nt.fd===!1)continue}else if(nt instanceof bs&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&Fl(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]);er(a),er(E)}}};function hu(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Wt.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=ai.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,nt,ot,!0);if(ai.free(ot),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Ru(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,ht=ai.alloc(),dt=0;dt<z;dt++){var yt=E[dt];b.contains(yt)&&a.Oj(y,yt,x,ot,at,ht,!1)}ai.free(ht),y.globalAlpha=nt}}}Wt.Oj=function(a,y,x,b,E,z,nt){if(nt&&!ng(y))a.Hs(y);else{if(b!==null&&y instanceof Wi&&(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 Sh?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&&(Ca(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(Ca(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),Ca(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))}},Wt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(ja,a,this,y,x,b,E)},Wt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Uo(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)),ku(this,a,y),a},Wt.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,Uo(y),a};function ku(a,y,x){if(y=Yc(a,y,x),x instanceof Ro&&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&&ku(a,-1,y)}x.svg!==null&&x.svg.remove()}function Yc(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}Oe.Object.defineProperties(ga.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===""&&on("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&on("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)&&Vi(a,"0 <= value <= 1",ga,"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))}}}),ga.prototype.findObjectsNear=ga.prototype.og,ga.prototype.findObjectsIn=ga.prototype.Cf,ga.prototype.findObjectsAt=ga.prototype.ji,ga.prototype.findObjectAt=ga.prototype.ic,ga.className="Layer";function jn(a,y){if(cd||(Rl(),cd=!0),ns(this),jh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,Us){var x=this,b=function(){x.removeEventListener(Ke.document,"DOMContentLoaded",b,!1),x.setRTL()};Ke.document.body!==null?this.setRTL():x.addEventListener(Ke.document,"DOMContentLoaded",b,!1)}this.ol=null,ba.add("Model",$s);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===ja&&nt.updateDataBindings(z.object,z.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,EA(this),this.model=Yv(),this.Wg=!0,ld(this),this.layout=new Ya,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 Yd,a!==void 0&&(typeof a=="string"||Ke.Element&&a instanceof Element?ad(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var nc,jh;function EA(a){a.Yd=new fa,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Si,a.pj=new Cr,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Le(NaN,NaN).freeze(),a.du=new Le(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Le(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Ko,a.zu=new Le(NaN,NaN).freeze(),a.ut=new ai(NaN,NaN,NaN,NaN).freeze(),a.rj=new Hr(0,0,0,0).freeze(),a.sj=kc,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Al,a.zk=Bs,a.Fg=Al,a.pq=Bs,a.yt=Oa,a.Bt=Oa,a.Fc=!0,a.pn=!1,a.De=new Pi,a.Eh=new Cr,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Hr(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new Su,a.bq.diagram=a,a.Qg=new Su,a.Qg.diagram=a,a.cj=new Su,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,KA(a),a.ai=new Pi,a.Ht=!0,a.uu=Oc,a.pw=!1,a.wu=Eh,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 Cr,a.Xn=new Si,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 Hr(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 zi(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Le,bounds:new ai,Py:new zi,bA:new zi,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new ai(NaN,NaN,NaN,NaN).freeze(),a.wo=new zi(NaN,NaN).freeze(),a.Sp=new ai(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Cr;var y=new hr,x=new ha;x.bind(new iu("text","",Rr)),y.add(x),a.ny=y,a.Lg.add("",y),y=new hr,x=new ha,x.stroke="brown",x.bind(new iu("text","",Rr)),y.add(x),a.Lg.add("Comment",y),y=new hr,y.selectable=!1,y.avoidable=!1,x=new Go,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new zi(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Cr,y=new Ro,y.selectionObjectName="GROUPPANEL",y.type=Jn.Vertical,x=new ha,x.font="bold 12pt sans-serif",x.bind(new iu("text","",Rr)),y.add(x),x=new Jn(Jn.Auto),x.name="GROUPPANEL";var b=new Go;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Wh,b.padding=new Hr(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Cr,y=new Wi,x=new Go,x.isPanelMain=!0,y.add(x),x=new Go,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Wi,x=new Go,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new bs,y.type=Jn.Auto,x=new Go,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Wh,x.margin=new Hr(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new bs,y.type=Jn.Link,x=new Go,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 $s,a.toolManager=new Zt,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=Fc(),a.eq=null,a.fq=ml,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 Le,a.zy=500,a.wp=new Le,a.wq=!1}jn.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Au=null,yu="",$c(this,!1),this.Xn.clear(),Op(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function $c(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(),Op(),a.Og.clear(),cs=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Fc(){return null}jn.prototype.reset=function(){this.clear(),this.vb=!0,EA(this),Rh(this),this.Wg=!0,ld(this),this.layout=new Ya,this.Wg=!1,this.model=Yv(),this.model.undoManager=new xt,this.vb=this.rn=!1,this.N()},jn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ke.document.body);var y=qi("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},jn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ke.document.body);var y=0;if(Us){var x=Cl;y=nc,x===null&&(x=Cl=qi("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=nc=qi("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||Zo||(y=11)}this.Db=y,this.Gw=!0},jn.prototype.qb=function(a){a.classType===jn&&(this.autoScale=a)},jn.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 ad(a,y){if(Us){if(y!=null||on("Diagram setup requires an argument DIV."),a.Ka!==null&&on("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ke.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:on("No DIV or DIV id supplied: "+y),a.Ka===null&&on("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&on("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ke.ResizeObserver){var x=Ci(function(){a.$b()},250);a.ol=new Ke.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ke.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=Ke.go;var E=new yc(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ke.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 yc(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,Us){E=qi("div");var z=qi("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=_d,E.addEventListener("pointerdown",Cd),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Ci(function(){a.Yh=null,a.N()},300),a.Ov=Ci(function(){Rd(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=qu(a,nt,!0);ot.bubbles=!0;var at=0,ht=0;ot.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(at=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ht=0<nt.deltaY?1:-1),ot.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-at:-ht):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(at=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ht=0<nt.wheelDeltaY?-1:1),ot.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-at:-ht):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ot.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),th(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,qu(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 ht=at;at=ud(a,nt,!0,!1,!0,ht),bd(a,nt,at),at.targetDiagram=Hd(nt,nt.target),at.targetObject=null,ht||at.clone(a.bq),ht=a.uw,ot=ot?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ht.x-nt.screenX)>ot||Math.abs(ht.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():th(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=ud(a,nt,!1,!1,!1,ot[1]!==null);var at=Ke.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 ht=a,dt=nt;at&&at.H&&(dt=nt,ht=at.H),ot.targetDiagram=ht,bd(a,dt,ot),ot.targetObject=null,a.doMouseMove(),th(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=ud(a,nt,!1,!0,!0,!1);var ht=Ke.document.elementFromPoint(nt.clientX,nt.clientY)||null;ht!==null&&ht.shadowRoot!==void 0&&ht.shadowRoot!==null&&(ht=ht.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ht!==null&&ht.H instanceof jn&&ht.H!==a&&bd(ht.H,nt,at),ht===null&&(ht=nt.target),bd(a,nt,at),at.clickCount=a.yq,at.targetDiagram=Hd(nt,ht),at.targetObject=null,a.doMouseUp(),th(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"+$d[1]+$d[2]+"wI"+_h.slice(1,5)]["b"+Rw.slice(1,y)](b.Z,_u,y,y),b.Vc(!0),HA(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}jn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},jn.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function HA(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(Ke,"resize",a.Ov,!1)}function vu(a){30<a.Sq&&(a.Yh=1)}function Sd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Fr&&Fr.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}jn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ke.devicePixelRatio||1},jn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},jn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},jn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},jn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},jn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},jn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},jn.prototype.doFocus=function(){this.focus()},jn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ke.scrollX||Ke.pageXOffset,y=Ke.scrollY||Ke.pageYOffset;this.ta.focus(),Ke.scrollTo(a,y)}},jn.prototype.Oy=function(){this.H.R("GainedFocus")},jn.prototype.Ny=function(){this.H.R("LostFocus")};function Rd(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===Al&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function ld(a){var y=new ga;y.name="Background",a.Al(y),y=new ga,y.name="",a.Al(y),y=new ga,y.name="Foreground",a.Al(y),y=new ga,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new ga,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new ga,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Lc(a){var y=new Jn(Jn.Grid);y.name="GRID";var x=new Go;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Go,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Go,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Go,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Go,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Go,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Yr,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 _d(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Nc(this.H)}function Cd(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Nc(this.H)}jn.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,ht=b.height+z.top+z.bottom,dt=b.right+z.right;z=b.bottom+z.bottom;var yt=E.x;b=E.y;var Tt=E.width,Gt=E.height,$t=E.right,he=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 Me=Qe;Tt<at||Gt<ht?(Qe=Le.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Me&&(Qe.x=Me/E+nt,this.ju=Me),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Qe.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=Qe,Le.free(Qe),this.Ee=this.qr=!1):(Qe=Le.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<yt&&(this.position=Qe.h(Me+nt,this.position.y)),dt>$t&&(this.position=Qe.h(-(y.scrollWidth-this.Aa)+Me-this.Aa/E+dt,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=Qe.h(this.position.x,a.scrollTop+ot)),z>he&&(this.position=Qe.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Le.free(Qe),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,dt=b.right,$t=E.right,z=b.bottom,he=E.bottom,nt=b.x,yt=E.x,ot=b.y,b=E.y,Tt>=at&&nt>=yt&&dt<=$t&&(x.style.width="1px"),Gt>=ht&&ot>=b&&z<=he&&(x.style.height="1px"))}},jn.prototype.computeBounds=function(a){return a===void 0&&(a=new ai),du(this),ah(this,a)};function ah(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 ht=nt[at];ht.isInDocumentBounds&&ht.isVisible()&&(ht=ht.actualBounds,ht.w()&&(x?(x=!1,y.assign(ht)):y.ed(ht)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}jn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(wi(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Wi||(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 Wi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new ai(NaN,NaN,0,0):x};function Ul(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=Le.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=ai.allocAt(0,0,b.width,b.height);var E=Le.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,ai.free(b),Le.free(E),Le.free(x)}x=a.yh,y&&a.Fg!==Al&&(x=a.Fg);var z=x!==Al?Bd(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()?Yo:at),lA(a,a.documentBounds,E,nt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,bn.B(z.x,x)&&bn.B(z.y,b)&&bn.B(z.width,E)&&bn.B(z.height,nt)||a.onViewportBoundsChanged(new ai(x,b,E,nt),z,y,!1)}}function Bd(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===Il?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===wh?(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}jn.prototype.zoomToFit=function(){var a=this.sj;this.sj=kc,this.scale=Bd(this,Il),a!==kc&&(Ul(this,!1),lA(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Wt=jn.prototype,Wt.BA=function(a,y){y===void 0&&(y=Il);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Il||y===wh)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===wh?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 Le(a.x,a.y)}},Wt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Le(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))},Wt.zz=function(a){if(a instanceof xn){this.eq=a;var y=Le.alloc();this.fq=this.op(a.ga(Oa,y)),Le.free(y)}else this.eq=null,this.fq=ml};function lA(a,y,x,b,E,z){var nt=Le.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ht=Le.alloc();ht=a.eq.ga(Oa,ht),ot=ht.x-a.fq.x/a.scale,at=ht.y-a.fq.y/a.scale,E=Ma,Le.free(ht)}(z||a.scrollMode===kc)&&(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),ul(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Rh(a),Le.free(nt)}Wt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Ys(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Yr)return a}else if(a=Ys(this,a,function(x){return x.part}),a instanceof Yr)return a;return null},Wt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),du(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 Ys(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),du(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}Wt.lz=function(a,y,x){return y===void 0&&(y=!0),Xc(this,a,function(b){return b.part},y?function(b){return b instanceof Yr&&b.canSelect()}:null,x)};function Xc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Si||E instanceof Pi||(E=new Pi),du(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Wt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Si||b instanceof Pi||(b=new Pi),du(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Wt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),Pd(this,a,function(E){return E instanceof Yr&&(!x||E.canSelect())},y,b)},Wt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Si||E instanceof Pi||(E=new Pi),du(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},Wt.Nu=function(a,y,x,b,E,z){var nt=new Pi;du(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 Pd(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 Si||E instanceof Pi||(E=new Pi),du(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}Wt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),mh(this,a,y,function(z){return z instanceof Yr&&(!b||z.canSelect())},x,E)},Wt.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 Si||E instanceof Pi)&&(z=E),E=!0),z instanceof Si||z instanceof Pi||(z=new Pi),du(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 mh(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 Si||E instanceof Pi)&&(z=E),E=!0),z instanceof Si||z instanceof Pi||(z=new Pi),du(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}jn.prototype.acceptEvent=function(a){return qu(this,a,a instanceof MouseEvent)};function qu(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?bd(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),Zo&&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=Hd(y,y.target),b.targetObject=null,b}function Hd(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 ud(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,Zo&&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 th(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}jn.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=qu(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(),th(x,a)},jn.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=qu(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(),th(x,a)},jn.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=qu(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),th(x,a)},jn.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=qu(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),th(x,a)},jn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Le(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?Lo(new Le(y,a),this.Ab):new Le(y,a)};function bd(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=Le.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),Le.free(y)):x.documentPoint.h(nt,ot)}function Ed(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))}}jn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Qd(a){a.ld||du(a),a.Va()}jn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Wt=jn.prototype,Wt.Pz=function(){return this.kg},Wt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,cu(this),this.hf=!1,this.du=new Le(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&_i(function(){b.ld=!1,yl(y,"Model"),a(b)},1)},Wt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Ke.requestAnimationFrame(function(){y.kg&&y.bd()})}},Wt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),cu(this))};function nu(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Nc(a)||(y&&du(a),x&&Ul(a,!1))}function cu(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];Ql(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||Rd(a),nu(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(rc(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),du(a),z=!1,(!a.hf||a.xh)&&(a.hf?LA(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),LA(a,!1)),z=!0),a.Jk=!1,du(a),a.ou||Qd(a),nu(a,!0,!1),nt=!1,z?(x=ai.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Mc(a)),a.R("LayoutCompleted"),nu(a,!0,!1),ai.free(x)):x.Ok&&x.Qw&&(a.Fg!==Al?a.scale=Bd(a,a.Fg):a.yh!==Al?a.scale=Bd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Ul(a,!0)),z&&nt&&a.eb("Initial Layout"),du(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Mc(a){if(a.Fg!==Al)a.scale=Bd(a,a.Fg);else if(a.yh!==Al)a.scale=Bd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Ul(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),rc(a)}function du(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 Ro&&b.U&65536&&(b.U=b.U^65536)})}}Wt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Ro||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Ro&&x.isVisible()&&xa(this,x);for(a.reset();a.next();)x=a.value,x instanceof Wi&&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 bs&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function xa(a,y){for(var x=vi(),b=vi(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Ro?(xh(z)||Hu(z)||eg(z))&&xa(a,z):z instanceof Wi?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(er(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();er(b)}Wt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Wt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&on("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){yh(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,Zf(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Bu(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?Eu(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Ko.prototype.Cd=Ko.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,yh(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,ht=Math.round(ot.x*at)/at,dt=Math.round(ot.y*at)/at;for(at!==1&&z.scale(at),ot.x===0&&ot.y===0||z.translate(-ht,-dt),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Bu(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?Eu(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Ko.prototype.Cd=Ko.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Fr&&Fr.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 hl(a,y,x,b,E,z,nt,ot,at,ht){if(a.Ka!==null){a.ta===null&&on("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ht===void 0&&(ht=!1),yh(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var dt=a.Ca;a.Ca=E;var yt=a.Wa.s,Tt=yt.length;try{var Gt=new ai(z.x,z.y,b.width/E,b.height/E),$t=Gt.copy();$t.Co(x),rc(a,$t),du(a),a.Fd(yt,Tt,a,Gt),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 he=a.Mb;y.scale(he,he);var Qe=Ko.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 Sh&&Zf(y,Qe.m11,Qe.m12,Qe.m21,Qe.m22,Qe.dx,Qe.dy),Ko.free(Qe),Bu(a,y),y.globalAlpha=a.pb;var Me=a.Qj("Grid");if(nt){var Ze=new Pi,tn=nt.iterator;for(tn.reset();tn.next();){var sn=tn.value;sn instanceof Yr&&(ht||sn.layer!==Me)&&(sn.Gj(),Ze.add(sn))}for(ht=0;ht<Tt;ht++)Ru(yt[ht],y,a,Ze,at);Ze.each(function(Kn){return Kn.Gj()})}else for(Ze=0;Ze<Tt;Ze++){var Cn=yt[Ze];Cn===Me?ht&&Cn.gc(y,a,!0):Cn.gc(y,a,at)}a.$i=!1,a.Yf&&Eu(a.Yf,a)&&a.Vp()}finally{a.Ca=dt,a.ib.Vc(!0),a.vd=!0,a.Fd(yt,Tt,a,a.viewportBounds),rc(a),a.ib instanceof Sh&&(a.ib.Nj.PA(),a.redraw())}}}Wt.Gf=function(a){return this.Rg[a]},Wt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Wt.Tx=function(){this.Rg=new no,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Zo||_o),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Bu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Wt.Ql=function(a){return this.on[a]},Wt.sA=function(a,y){this.on[a]=y},Wt.Sx=function(){this.on=new no,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Wt.set=function(a){return Object.assign(this,a),this},Wt.Du=function(a){return this.nm(a)},Wt.nm=function(a){return vh(this,a),this};function vh(a,y){var x=a instanceof Jn,b=a instanceof jn,E;for(E in y){E===""&&on("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])),ii(z)?nt=E.substr(ot+1):on("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!Zr(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&Zr(a.toolManager,nt))z=a.toolManager;else if(b&&Ae(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof Ur&&nt==="Changed"){a.Pe(y[nt]);continue}else on('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof xn&&z.Vw(nt)}}Wt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Cr,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Wt.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")},jn.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!==Ld&&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=ai.alloc(),zA(this,this.computeBounds(b)),ai.free(b)),b=this.ta,b===null||b instanceof Pu)))){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 ht=70*nt,dt=Math.max(z,0),yt=Math.max(y,0),Tt=Math.floor(E-dt),Gt=Math.floor(ot-yt);a.drawImage(b.Oa,dt,yt,Tt,Gt,0,0,Tt,Gt),Eu(this.Yf,this)&&a.clearRect(0,0,at,ht),b=vi(),a=vi(),Gt=Math.abs(z),Tt=Math.abs(y);var $t=dt===0?0:E-Gt;dt=Le.allocAt($t,0),Gt=Le.allocAt(Gt+$t,ot),a.push(new ai(Math.min(dt.x,Gt.x),Math.min(dt.y,Gt.y),Math.abs(dt.x-Gt.x),Math.abs(dt.y-Gt.y)));var he=this.Ab;if(he.reset(),he.scale(nt,nt),this.Ca!==1&&he.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&he.translate(-nt.x,-nt.y),Lo(dt,he),Lo(Gt,he),b.push(new ai(Math.min(dt.x,Gt.x),Math.min(dt.y,Gt.y),Math.abs(dt.x-Gt.x),Math.abs(dt.y-Gt.y))),$t=yt===0?0:ot-Tt,dt.h(0,$t),Gt.h(E,Tt+$t),a.push(new ai(Math.min(dt.x,Gt.x),Math.min(dt.y,Gt.y),Math.abs(dt.x-Gt.x),Math.abs(dt.y-Gt.y))),Lo(dt,he),Lo(Gt,he),b.push(new ai(Math.min(dt.x,Gt.x),Math.min(dt.y,Gt.y),Math.abs(dt.x-Gt.x),Math.abs(dt.y-Gt.y))),Eu(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,dt.h(E,ot),Gt.h(at+E,ht+ot),a.push(new ai(Math.min(dt.x,Gt.x),Math.min(dt.y,Gt.y),Math.abs(dt.x-Gt.x),Math.abs(dt.y-Gt.y))),Lo(dt,he),Lo(Gt,he),b.push(new ai(Math.min(dt.x,Gt.x),Math.min(dt.y,Gt.y),Math.abs(dt.x-Gt.x),Math.abs(dt.y-Gt.y)))),Le.free(dt),Le.free(Gt),nu(this,!1,!0),this.Ka===null&&on("No div specified"),this.ta===null&&on("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(yh(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,ht=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,-ht),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),Bu(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ht=hu(nt,E),yt=nt.Zq,yt.length=0,dt=this.scale,Tt=ai.alloc(),Gt=nt.Pa.s,he=Gt.length,$t=at.length;for(var Qe=0;Qe<he;Qe++){var Me=Gt[Qe],Ze=Ig(Me,Me.actualBounds);t:{for(var tn=2/dt,sn=4/dt,Cn=0;Cn<$t;Cn++){var Kn=at[Cn];if(Kn.width!==0&&Kn.height!==0&&Ze.Vu(Kn.x-tn,Kn.y-tn,Kn.width+sn,Kn.height+sn)){Ze=!0;break t}}Ze=!1}Ze&&nt.Oj(E,Me,this,yt,dt,Tt,!0)}ai.free(Tt),E.globalAlpha=ht}E.restore(),E.Vc(!0),this.Yf&&Eu(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}er(b),er(a),this.ld=!1}}else this.bd();x&&(vu(this),this.bd(),Sd(this,!0))}else x?(vu(this),this.bd(),Sd(this,!0)):this.bd()}};function yh(a){a.pn!==!1&&(a.pn=!1,zd(a,a.Aa,a.ya))}function zd(a,y,x){Rh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Nc(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,ht=E.clientHeight||b+ot,dt=a.viewportBounds;E=dt.x;var yt=dt.y,Tt=dt.width,Gt=dt.height;if((at!==x+nt||ht!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ht,z=a.pn=!0,Rh(a)),!a.hf||!a.viewportBounds.w())return!0;var $t=a.ku,he=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Qe=a.documentBounds,Me=0,Ze=0,tn=0,sn=0,Cn=dt.width,Kn=dt.height,ar=a.rj;a.contentAlignment.sb()?(Qe.width>Cn&&(Me=ar.left,Ze=ar.right),Qe.height>Kn&&(tn=ar.top,sn=ar.bottom)):(Me=ar.left,Ze=ar.right,tn=ar.top,sn=ar.bottom);var Tr=Qe.width+Me+Ze,xr=Qe.height+tn+sn;ar=a.scale;var Gi=Tr>at/ar,Li=xr>ht/ar;if(!(z||a.gf||a.Be||Gi||Li))return!0;Me=Qe.x-Me,at=dt.x,Ze=Qe.right+Ze,ht=dt.right+nt,tn=Qe.y-tn;var jo=dt.y;Qe=Qe.bottom+sn,dt=dt.bottom+ot;var Bo="1px";if(sn="1px",a.scrollMode===kc&&(Gi||Li)&&(Gi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Gi=1,Me+1<at&&(Gi=Math.max((at-Me)*ar+a.Aa,Gi)),Ze>ht+1&&(Gi=Math.max((Ze-ht)*ar+a.Aa,Gi)),Cn+nt+1<Tr&&(Gi=Math.max((Tr-Cn)*ar+a.Aa,Gi)),Bo=Gi.toString()+"px"),Li&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Gi=1,tn+1<jo&&(Gi=Math.max((jo-tn)*ar+a.ya,Gi)),Qe>dt+1&&(Gi=Math.max((Qe-dt)*ar+a.ya,Gi)),Kn+ot+1<xr&&(Gi=Math.max((xr-Kn)*ar+a.ya,Gi)),sn=Gi.toString()+"px")),Gi=Bo!=="1px",Li=sn!=="1px",Gi&&Li||!Gi&&!Li||(Li&&(ht-=a.Db),Gi&&(dt-=a.Db),Tr<Cn+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,Me+1<at&&(nt=Math.max((at-Me)*ar+a.Aa,nt)),Ze>ht+1&&(nt=Math.max((Ze-ht)*ar+a.Aa,nt)),Cn+1<Tr&&(nt=Math.max((Tr-Cn)*ar+a.Aa,nt)),Bo=nt.toString()+"px"),Gi=Bo!=="1px",nt=a.ya,Gi!==a.Be&&(nt=Gi?a.ya-a.Db:a.ya+a.Db),xr<Kn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,tn+1<jo&&(ot=Math.max((jo-tn)*ar+nt,ot)),Qe>dt+1&&(ot=Math.max((Qe-dt)*ar+nt,ot)),Kn+1<xr&&(ot=Math.max((xr-Kn)*ar+nt,ot)),sn=ot.toString()+"px"),Li=sn!=="1px"),a.qr&&Gi===a.Be&&Li===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Gi!==a.Be&&(Bo==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Gi,he.style.width=Bo,Li!==a.gf&&(sn==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=Le.alloc(),Li?(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)),Le.free(ot))),z&&Rh(a),a.gf=Li,he.style.height=sn,a.gu=!0,z&&(a.pn=!0),y=$t.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Cn+1<Tr?y=(a.position.x-Me)*ar:Me+1<at?y=$t.scrollWidth-$t.clientWidth:Ze>ht+1&&(y=a.position.x*ar)),a.tn)switch(a.bu){case"negative":y=-($t.scrollWidth-y-$t.clientWidth);break;case"reverse":y=$t.scrollWidth-y-$t.clientWidth}return $t.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Kn+1<xr?$t.scrollTop=(a.position.y-tn)*ar:tn+1<jo?$t.scrollTop=$t.scrollHeight-$t.clientHeight:Qe>dt+1&&($t.scrollTop=a.position.y*ar)),at=a.Aa,ht=a.ya,$t.style.width=at+(a.gf?a.Db:0)+"px",$t.style.height=ht+(a.Be?a.Db:0)+"px",x!==at||b!==ht||a.animationManager.zb?(x=ai.allocAt(E,yt,Tt,Gt),a.onViewportBoundsChanged(x,a.viewportBounds,ar,z),ai.free(x),!1):!0}Wt=jn.prototype,Wt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&on("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&&on('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(vl,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Wt.oi=function(a){this.partManager.oi(a);var y=this;ua(a,function(x){pc(y,x)}),(a instanceof bs||a instanceof Ro&&a.placeholder!==null)&&a.v(),a.data!==null&&ua(a,function(x){Wv(y.partManager,x)}),Hu(a)!==!0&&eg(a)!==!0||this.De.add(a),Ky(a,!0,this),Wy(a)?(a.actualBounds.w()&&this.N(Ig(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ig(a,a.actualBounds)),this.$b()},Wt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&ua(a,function(x){Vv(y.partManager,x,y)}),this.De.remove(a),Wy(a)?(a.actualBounds.w()&&this.N(Ig(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Ig(a,a.actualBounds)),this.$b()},Wt.remove=function(a){Uh(this,a,!0)};function Uh(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(Zl,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Wt.Is=function(a,y){if(y===void 0&&(y=!1),wi(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)},Wt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},jn.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Jc(this)),this.toolManager!==null){var E=new Cr;if(a!==null)if(wi(a))for(var z=0;z<a.length;z++)Vu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Vu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Vu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Vu(this,E,a.value,x,b);for(a=this.links;a.next();)Vu(this,E,a.value,x,b)}Ic(this,E,y,b,x)}};function Vu(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=Jc(a)),x instanceof hr){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Ro&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Vu(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)&&Vu(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Vu(a,y,x.value,b,E)}else if(x instanceof Wi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Vu(a,y,x.value,b,E);else x instanceof bs||y.add(x,a.Pd(E,x,x.location))}function Ic(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Le.alloc(),nt=Le.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||Kd(a,y);for(var ot=vi(),at=vi(),ht=y.iterator,dt=Le.alloc();ht.next();){var yt=ht.key,Tt=ht.value;if(yt.Zc()){var Gt=FA(a,yt,y);Gt!==null?ot.push(new it(yt,Tt,Gt)):(!E||yt.canMove())&&(Gt=Tt.point,z.assign(Gt),a.computeMove(yt,z.add(nt),b,dt),yt.location=dt,Tt.shifted===void 0&&(Tt.shifted=new Le),Tt.shifted.assign(dt.re(Gt)))}else ht.key instanceof Wi&&at.push(ht.sa)}for(Le.free(dt),E=ot.length,ht=0;ht<E;ht++)yt=ot[ht],z.assign(yt.info.point),yt.Su.shifted===void 0&&(yt.Su.shifted=new Le),yt.node.location=z.add(yt.Su.shifted);for(E=Le.alloc(),ht=Le.alloc(),yt=at.length,Tt=0;Tt<yt;Tt++){var $t=at[Tt];if(Gt=$t.key,Gt instanceof Wi)if(Gt.suspendsRouting){Gt.Tg=null,dt=Gt.fromNode;var he=Gt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(he=$t.value.point,Gt.dragComputation===null)y.add(Gt,a.Pd(b,Gt,nt)),Nf(Gt,nt.x-he.x,nt.y-he.y);else{$t=Le.allocAt(0,0),(dt=Gt.i(0))&&dt.w()&&$t.assign(dt);var Qe=dt=Le.alloc().assign($t).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Qe=Le.alloc(),ic(a,Gt,dt,Qe,b)),dt.assign(Gt.dragComputation(Gt,dt,Qe)).re($t),y.add(Gt,a.Pd(b,Gt,dt)),Nf(Gt,dt.x-he.x,dt.y-he.y),Le.free($t),Le.free(dt),Qe!==dt&&Le.free(Qe)}else dt!==null&&(E.assign(dt.location),Qe=y.I(dt),Qe!==null&&E.re(Qe.point)),he!==null&&(ht.assign(he.location),Qe=y.I(he),Qe!==null&&ht.re(Qe.point)),dt!==null&&he!==null?E.Xa(ht)?(dt=$t.value.point,he=z,he.assign(E),he.re(dt),y.add(Gt,a.Pd(b,Gt,E)),Nf(Gt,he.x,he.y)):(Gt.suspendsRouting=!1,Gt.bb()):($t=$t.value.point,dt=dt!==null?E:he!==null?ht:nt,y.add(Gt,a.Pd(b,Gt,dt)),Nf(Gt,dt.x-$t.x,dt.y-$t.y))}else(Gt.fromNode===null||Gt.toNode===null)&&(dt=$t.value.point,y.add(Gt,a.Pd(b,Gt,nt)),Nf(Gt,nt.x-dt.x,nt.y-dt.y))}Le.free(z),Le.free(nt),Le.free(E),Le.free(ht),er(ot),er(at),x||(du(a),gc(a,y))}}jn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Le),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Le.alloc(),ic(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,ht=at.x;return isNaN(ht)&&(ht=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,ht)),Math.max(nt,Math.min(x.y,at))),E!==y&&Le.free(E),b};function Jc(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function ic(a,y,x,b,E){if(E===void 0&&(E=Jc(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=Le.allocAt(0,0),z.yi(0,0,a,y,E),bn.No(x.x,x.y,ot+z.x,nt+z.y,a,y,b),Le.free(z)}}function Kd(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Wi&&(y.suspendsRouting=!0)}function gc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Wi&&(x.suspendsRouting=!1,Iv(x)&&x.bb())}a.Mr=!1}}function FA(a,y,x){return y=y.containingGroup,y!==null&&(a=FA(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Wt=jn.prototype,Wt.Pd=function(a,y,x){if(x===void 0)return new sc(qo);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new sc(new Le(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new sc(x.copy())};function uA(a,y,x){if(y.diagram!==null&&y.diagram!==a&&on("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&on("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&on("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&on("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&&on("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Wt.Al=function(a){uA(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(vl,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Wt.Ww=function(a,y){uA(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Zl,"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(vl,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Wt.Cy=function(a,y){uA(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Zl,"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(vl,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Wt.kA=function(a){if(a.diagram!==this&&on("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(Zl,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Wt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Wt.Yw=function(a){return this.pf===null&&(this.pf=new Si),this.pf.add(a),this.model.Pe(a),this},Wt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Wt.Pe=function(a){return this.zg===null&&(this.zg=new Si),this.zg.add(a),this},Wt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Wt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Ju&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Wt.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new Da;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)},Wt.g=function(a,y,x,b,E){this.cb(ja,a,this,y,x,b,E)},jn.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===ja){var E=a.object;if(za(E,a.propertyName,a.I(y)),E instanceof xn){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===vl){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof Jn)if(typeof ot=="number"&&at instanceof xn){y?nt.pc(ot):nt.Gb(ot,at);var ht=nt.part;ht!==null&&ht.Wb()}else typeof ot=="number"&&at instanceof Kl&&(at.isRow?Jd(nt,ot,y?void 0:at):TA(nt,ot,y?void 0:at));else if(nt instanceof ga){var dt=a.oldParam===!0;typeof ot=="number"&&at instanceof Yr&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(dt?ot:-1,at,dt)):nt.oi(ot,at,dt))}else nt instanceof jn?typeof ot=="number"&&at instanceof ga&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):on("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Zl){var yt=a.object,Tt=a.oldParam,Gt=a.oldValue;if(yt instanceof Jn)typeof Tt=="number"&&Gt instanceof xn?y?yt.Gb(Tt,Gt):yt.pc(Tt):typeof Tt=="number"&&Gt instanceof Kl&&(Gt.isRow?Jd(yt,Tt,y?Gt:void 0):TA(yt,Tt,y?Gt:void 0));else if(yt instanceof ga){var $t=a.newParam===!0;typeof Tt=="number"&&Gt instanceof Yr&&(y?0>yt.Pa.indexOf(Gt)&&yt.oi(Tt,Gt,$t):(Gt.isSelected=!1,Gt.isHighlighted=!1,Gt.Wb(),yt.pc($t?Tt:-1,Gt,$t)))}else yt instanceof jn?typeof Tt=="number"&&Gt instanceof ga&&(y?(Gt.Xe(this),this.Wa.Gb(Tt,Gt)):this.Wa.mb(Tt)):on("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Ju&&on("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},jn.prototype.Ea=function(a){return this.undoManager.Ea(a)},jn.prototype.eb=function(a){return this.undoManager.eb(a)},jn.prototype.Kf=function(){return this.undoManager.Kf()},jn.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}},jn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},jn.prototype.rp=function(){this.partManager.rp()};function lf(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Rh(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,Rh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ht=a.contentAlignment;isNaN(ot)&&(ht.$c()?ht.Hf(tl)?ot=0:ht.Hf(tu)&&(ot=z-1):ot=ht.sb()?ht.x*(z-1):z/2),isNaN(at)&&(ht.$c()?ht.Hf(Ml)?at=0:ht.Hf(Pl)&&(at=nt-1):at=ht.sb()?ht.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=Le.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,Le.free(z),a.Ca=x,Rh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Ul(a,!1),b.zb&&(Ra(b)||b.ce.add(b.H,"scale",y,a.Ca))}}jn.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!==Al||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Zt&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),pe(E,this)),this.vb||this.invalidateViewport(a,y),rc(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 rc(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=zi.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ht=nt[at],dt=Math.abs(ht.interval);2>dt||(zl(ht.figure)?z=z*dt/bn.vx(z,dt):E=E*dt/bn.vx(E,dt))}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=ai.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ai.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,ai.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Le.alloc(),bn.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),zi.free(b),x.part.location=y,Le.free(y)}}jn.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)}},jn.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))},jn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),wi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Yr||on("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 Yr||on("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},jn.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()}},Wt=jn.prototype,Wt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Wt.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 Yr||on("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Wt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Le.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)),Le.free(z);return}on("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):on("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Le.free(z)},Wt.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)},Wt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Wt.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)},Wt.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,ht=y.m22,dt=y.dx,yt=y.dy,Tt=x*nt+b*at+dt;y=x*ot+b*ht+yt;var Gt=E*nt+b*at+dt;return a=E*ot+b*ht+yt,b=x*nt+z*at+dt,x=x*ot+z*ht+yt,nt=E*nt+z*at+dt,E=E*ot+z*ht+yt,z=Math.min(Tt,Gt),Tt=Math.max(Tt,Gt),Gt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Tt=Math.max(Tt,b),Gt=Math.min(Gt,x),y=Math.max(y,x),z=Math.min(z,nt),Tt=Math.max(Tt,nt),Gt=Math.min(Gt,E),y=Math.max(y,E),new ai(z,Gt,Tt-z,y-Gt)},Wt.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),Lo(a.copy(),this.Ab)};function QA(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Gd(a){return a=ba.get(a),a!==null?new a:new $s}jn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Ju&&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===Ju){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),du(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||po(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&&(QA(this),this.As.clear(),na(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;_i(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function pc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)hd(a,y[b])}function hd(a,y){if(y instanceof uc){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 uc){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),Op(b));break}}}}}jn.prototype.Wd=function(){this.partManager.Wd()},jn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},jn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},jn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},jn.prototype.Vb=function(a){return this.partManager.Vb(a)},jn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Wt=jn.prototype,Wt.Lc=function(a){return this.partManager.Lc(a)},Wt.ii=function(a){return this.partManager.ii(a)},Wt.Kc=function(a){return this.partManager.Kc(a)},Wt.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:Ms(Ss(y)))},Wt.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:Ms(Ss(y)))};function Rh(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 zA(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Ul(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Wt.Va=function(){if(this.Zi){var a=ai.alloc();zA(this,this.computeBounds(a)),ai.free(a)}},Wt.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},Wt.qz=function(){return this.ai.iterator},Wt.Uz=function(a){du(this),a&&Fd(this,!0),this.ld?LA(this,!1):(this.Jk=!0,cu(this))};function Fd(a,y){for(var x=a.ai.iterator;x.next();)Wd(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function Wd(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)Wd(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function LA(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||yl(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)Tc(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),du(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||po(z),a.aa=x}}}function Tc(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Tc(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),xa(a,y),E.isValidLayout=!0):a.xh=!0)}}Wt.yz=function(){for(var a=new Si,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function KA(a){function y(E){var z=E.toLowerCase(),nt=new Si;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new Cr,b=new Cr;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 Ae(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function yn(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;on("Unknown DiagramEvent name: "+y)}Wt.Bj=function(a,y){return a=yn(this,a),a!==null&&a.add(y),this},Wt.am=function(a,y){a=yn(this,a),a!==null&&a.remove(y)},Wt.R=function(a,y,x){var b=yn(this,a),E=new xd;if(E.diagram=this,a=Ae(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 mi(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Wt.Yj=function(a,y){return Ri(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},jn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?ah(this,a):a.assign(this.documentBounds)};function Ri(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new P0(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=ur(a,x)),x===null){y=ai.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&&Qr(a,nt,b,y)}ai.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=ai.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof hr&&Qr(a,nt,b,y);ai.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&c1(E);return E}function ur(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?ur(a,y.containingGroup):null}function Qr(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(Hp(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(Tf,x,y+1);else for(var nt=x;nt<=y;nt++)z[nt]=Tf}else if(y instanceof Ro)for(y=y.memberParts;y.next();)E=y.value,E instanceof hr&&Qr(a,E,x,b)}}function vo(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}jn.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():ps(this)};function ps(a){a.vk===-1&&(a.vk=_i(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=ai.alloc(),a.computeBounds(y),y.ed(a.documentBounds),zA(a,y),ai.free(y),a.Fc=!0,a.bd(),ps(a))}},a.vp))}jn.prototype.ug=function(){this.vk!==-1&&(Ke.clearTimeout(this.vk),this.vk=-1)},jn.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=ai.allocAt(0,0,b.width*E,b.height*E);var z=Le.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 Le(y.x+z.x/E,y.y+z.y/E)),ai.free(b),Le.free(z),y},Wt=jn.prototype,Wt.Cs=function(){return null},Wt.av=function(){return null},Wt.bs=function(a,y){this.pj.add(a,y)},Wt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Ro&&(y.$p=null)})};function Ws(a,y,x){function b(){var dt=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||dt-ht>at?y(x,E,ot):Ke.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,ht=+new Date;return Ke.requestAnimationFrame(function(){b()}),null}Wt.Wz=function(a){return Us?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Wt.Jx=function(a){return a===void 0&&(a={}),Ws(this,this.Xz,a)},Wt.Xz=function(a,y,x){var b=_a(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 _h+"data":E=b.getImageData(0,0,x.width,x.height);break;case _h:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&on('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 _a(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&on("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 zi(1/0,1/0):new zi(2e3,2e3));var ot=y.position||null,at=y.parts||null,ht=y.padding===void 0?1:y.padding,dt=y.background||null,yt=y.omitTemporary;yt===void 0&&(yt=!0);var Tt=y.document||document,Gt=y.elementFinished||null,$t=y.showTemporary;$t===void 0&&($t=!yt),y=y.showGrid,y===void 0&&(y=$t),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ht=="number"?ht=new Hr(ht):ht instanceof Hr||on("MakeImage padding must be a Margin or a number."),ht.left=Math.max(ht.left,0),ht.right=Math.max(ht.right,0),ht.top=Math.max(ht.top,0),ht.bottom=Math.max(ht.bottom,0),a.ib.Vc(!0),yt=new yc(null,Tt,void 0,!0);var he=yt.context;if(!(E||z||at||ot))return yt.width=a.Aa+Math.ceil(ht.left+ht.right),yt.height=a.ya+Math.ceil(ht.top+ht.bottom),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=Tt,b.hs=Gt,hl(a,b.context,ht,new zi(yt.width,yt.height),a.Ca,a.pa,at,dt,$t,y),b.context):(a.Xm=!1,hl(a,he,ht,new zi(yt.width,yt.height),a.Ca,a.pa,at,dt,$t,y),a.Xm=!0,yt.context);var Qe=a.Pp,Me=a.documentBounds.copy();if(Me.Fv(a.yb),$t)for(var Ze=a.Wa.s,tn=Ze.length,sn=0;sn<tn;sn++){var Cn=Ze[sn];if(Cn.visible&&Cn.isTemporary){Cn=Cn.Pa.s;for(var Kn=Cn.length,ar=0;ar<Kn;ar++){var Tr=Cn[ar];Tr.isInDocumentBounds&&Tr.isVisible()&&(Tr=Tr.actualBounds,Tr.w()&&Me.ed(Tr))}}}if(Ze=new Le(Me.x,Me.y),at!==null){for(tn=new ai(0,0,0,0),sn=!0,Cn=at.iterator,Cn.reset();Cn.next();)Kn=Cn.value,Kn instanceof Yr&&(ar=Kn.layer,ar!==null&&!ar.visible||ar!==null&&!$t&&ar.isTemporary||!Kn.isVisible()||(Kn=Kn.actualBounds,Kn.w()&&(sn?(sn=!1,tn.assign(Kn)):tn.ed(Kn))));Me.width=tn.width,Me.height=tn.height,Ze.x=tn.x,Ze.y=tn.y}return ot!==null&&ot.w()&&(Ze=ot,z||(z=Qe)),tn=ot=0,ht!==null&&(ot=ht.left+ht.right,tn=ht.top+ht.bottom),sn=Cn=0,E!==null&&(Cn=E.width,sn=E.height,isFinite(Cn)&&(Cn=Math.max(0,Cn-ot)),isFinite(sn)&&(sn=Math.max(0,sn-tn))),E!==null&&z!==null?(z==="NaN"&&(z=Qe),E.w()?(E=Cn,Me=sn):isNaN(sn)?(E=Cn,Me=Me.height*z):(E=Me.width*z,Me=sn)):E!==null?E.w()?(z=Math.min(Cn/Me.width,sn/Me.height),E=Cn,Me=sn):isNaN(sn)?(z=Cn/Me.width,E=Cn,Me=Me.height*z):(z=sn/Me.height,E=Me.width*z,Me=sn):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/Me.width,(nt.height-tn)/Me.height),z>Qe?(z=Qe,E=Me.width,Me=Me.height):(E=nt.width,Me=nt.height)):(E=Me.width*z,Me=Me.height*z):(z=Qe,E=Me.width,Me=Me.height),ht!==null?(E+=ot,Me+=tn):ht=new Hr(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)&&(Me=Math.min(Me,nt))),yt.width=Math.ceil(E),yt.height=Math.ceil(Me),x==="SVG"?b===null?null:(b.resize(yt.width,yt.height,yt.width,yt.height),b.ownerDocument=Tt,b.hs=Gt,hl(a,b.context,ht,new zi(Math.ceil(E),Math.ceil(Me)),z,Ze,at,dt,$t,y),b.context):(a.Xm=!1,hl(a,he,ht,new zi(Math.ceil(E),Math.ceil(Me)),z,Ze,at,dt,$t,y),a.Xm=!0,yt.context)}Oe.Object.defineProperties(jn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Bt||(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 Pu(this,Ke.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 Pu(this,Ke.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(Ke,"resize",this.Ov,!1),this.removeEventListener(Ke,"wheel",this.$j,!0),jh===this&&(jh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),ad(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)&&Vi(a,"0 <= value <= 1",jn,"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),Ul(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),Ul(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),Ul(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),Ul(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Vi(a,">= 0",jn,"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&&Vi(a,">= 0",jn,"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 Vi(a,">= 0",jn,"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||QA(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&&on("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=$c(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,yl(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=Gd(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(Ke,"pointermove",this.dk,!0),this.addEventListener(Ke,"pointerdown",this.ui,!0),this.addEventListener(Ke,"pointerup",this.fk,!0),this.addEventListener(Ke,"pointerout",this.ek,!0),this.addEventListener(Ke,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ke,"wheel",this.$j,!0),this.addEventListener(Ke,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ke,"pointermove",this.dk,!0),this.removeEventListener(Ke,"pointerdown",this.ui,!0),this.removeEventListener(Ke,"pointerup",this.fk,!0),this.removeEventListener(Ke,"pointerout",this.ek,!0),this.removeEventListener(Ke,"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(Ke,"wheel",this.$j,!0),this.removeEventListener(Ke,"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=Le.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),ul(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Rh(this):(this.vb=!0,a=this.scale,lA(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)}Le.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=Lc(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Lc(this)),a.type!==Jn.Grid&&on("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),rc(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),Rh(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||on("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 Hr(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===kc&&Ul(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,Ul(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,lf(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&&lf(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!==Al&&Ul(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()||on("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()||on("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)):Vi(a,"> 0",jn,"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)):Vi(a,"> 0",jn,"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),Ul(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 Hr(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&&on("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();)g0(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Oc&&a!==Sa&&a!==mc&&on("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 zi(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 Hr(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Oe.Object.defineProperties(jn,{licenseKey:{get:function(){return Zd.jc()},set:function(a){Zd.add(a.replace(/\s/g,""))}},version:{get:function(){return Jl}}}),jn.prototype.makeImageData=jn.prototype.Jx,jn.prototype.makeImage=jn.prototype.Wz,jn.prototype.cacheGroupExternalLinks=jn.prototype.Fu,jn.prototype.addRenderer=jn.prototype.bs,jn.prototype.makeSVG=jn.prototype.av,jn.prototype.makeSvg=jn.prototype.Cs,jn.prototype.stopAutoScroll=jn.prototype.ug,jn.prototype.doAutoScroll=jn.prototype.gs,jn.prototype.isUnoccupied=jn.prototype.Yj,jn.prototype.raiseDiagramEvent=jn.prototype.R,jn.prototype.removeDiagramListener=jn.prototype.am,jn.prototype.addDiagramListener=jn.prototype.Bj,jn.prototype.findTreeRoots=jn.prototype.yz,jn.prototype.layoutDiagram=jn.prototype.Uz,jn.prototype.findTopLevelGroups=jn.prototype.qz,jn.prototype.findTopLevelNodesAndLinks=jn.prototype.rz,jn.prototype.ensureBounds=jn.prototype.Va,jn.prototype.findLinksByExample=jn.prototype.ls,jn.prototype.findNodesByExample=jn.prototype.ms,jn.prototype.findLinkForData=jn.prototype.Kc,jn.prototype.findNodeForData=jn.prototype.ii,jn.prototype.findPartForData=jn.prototype.Lc,jn.prototype.findLinkForKey=jn.prototype.findLinkForKey,jn.prototype.findNodeForKey=jn.prototype.Vb,jn.prototype.findPartForKey=jn.prototype.findPartForKey,jn.prototype.rebuildParts=jn.prototype.Wd,jn.prototype.transformViewToDoc=jn.prototype.Ps,jn.prototype.transformRectDocToView=jn.prototype.zA,jn.prototype.transformDocToView=jn.prototype.op,jn.prototype.centerRect=jn.prototype.es,jn.prototype.scrollToRect=jn.prototype.tv,jn.prototype.scroll=jn.prototype.scroll,jn.prototype.highlightCollection=jn.prototype.Jz,jn.prototype.highlight=jn.prototype.Iz,jn.prototype.selectCollection=jn.prototype.rA,jn.prototype.select=jn.prototype.select,jn.prototype.updateAllRelationshipsFromData=jn.prototype.rp,jn.prototype.updateAllTargetBindings=jn.prototype.updateAllTargetBindings,jn.prototype.commit=jn.prototype.commit,jn.prototype.rollbackTransaction=jn.prototype.Kf,jn.prototype.commitTransaction=jn.prototype.eb,jn.prototype.startTransaction=jn.prototype.Ea,jn.prototype.raiseChanged=jn.prototype.g,jn.prototype.raiseChangedEvent=jn.prototype.cb,jn.prototype.removeChangedListener=jn.prototype.ik,jn.prototype.addChangedListener=jn.prototype.Pe,jn.prototype.removeModelChangedListener=jn.prototype.mA,jn.prototype.addModelChangedListener=jn.prototype.Yw,jn.prototype.findLayer=jn.prototype.Qj,jn.prototype.removeLayer=jn.prototype.kA,jn.prototype.addLayerAfter=jn.prototype.Cy,jn.prototype.addLayerBefore=jn.prototype.Ww,jn.prototype.addLayer=jn.prototype.Al,jn.prototype.moveParts=jn.prototype.moveParts,jn.prototype.copyParts=jn.prototype.Kj,jn.prototype.removeParts=jn.prototype.Is,jn.prototype.remove=jn.prototype.remove,jn.prototype.add=jn.prototype.add,jn.prototype.clearDelayedGeometries=jn.prototype.bx,jn.prototype.setProperties=jn.prototype.nm,jn.prototype.attach=jn.prototype.Du,jn.prototype.set=jn.prototype.set,jn.prototype.resetInputOptions=jn.prototype.Sx,jn.prototype.setInputOption=jn.prototype.sA,jn.prototype.getInputOption=jn.prototype.Ql,jn.prototype.resetRenderingHints=jn.prototype.Tx,jn.prototype.setRenderingHint=jn.prototype.Xx,jn.prototype.getRenderingHint=jn.prototype.Gf,jn.prototype.maybeUpdate=jn.prototype.bd,jn.prototype.requestUpdate=jn.prototype.$b,jn.prototype.delayInitialization=jn.prototype.Xy,jn.prototype.isUpdateRequested=jn.prototype.Pz,jn.prototype.invalidateDocumentBounds=jn.prototype.Ya,jn.prototype.findObjectsNear=jn.prototype.og,jn.prototype.findPartsNear=jn.prototype.mz,jn.prototype.findObjectsIn=jn.prototype.Cf,jn.prototype.findPartsIn=jn.prototype.ux,jn.prototype.findObjectsAt=jn.prototype.ji,jn.prototype.findPartsAt=jn.prototype.lz,jn.prototype.findObjectAt=jn.prototype.ic,jn.prototype.findPartAt=jn.prototype.Ol,jn.prototype.focusObject=jn.prototype.zz,jn.prototype.alignDocument=jn.prototype.Jy,jn.prototype.zoomToRect=jn.prototype.BA,jn.prototype.zoomToFit=jn.prototype.zoomToFit,jn.prototype.diagramScroll=jn.prototype.kx,jn.prototype.focus=jn.prototype.focus;var ba=new Cr,Cl=null,Us=Ke.document!==void 0,Au=null,yu="",Al=new ri(jn,"None",0),Il=new ri(jn,"Uniform",1),wh=new ri(jn,"UniformToFill",2),Eh=new ri(jn,"CycleAll",10),oc=new ri(jn,"CycleNotDirected",11),Vd=new ri(jn,"CycleNotDirectedFast",12),cA=new ri(jn,"CycleNotUndirected",13),dA=new ri(jn,"CycleDestinationTree",14),AA=new ri(jn,"CycleSourceTree",15),kc=new ri(jn,"DocumentScroll",1),Ld=new ri(jn,"InfiniteScroll",2),Oc=new ri(jn,"TreeParentCollapsed",21),Sa=new ri(jn,"AllParentsCollapsed",22),mc=new ri(jn,"AnyParentsCollapsed",23),Zd=new Si,Jl="2.3.10",_h="image",_u=null,cd=!1;function Rl(){if(Us){var a=Ke.document.createElement("canvas"),y=a.getContext("2d"),x=ei("7ca11abfd022028846");y[x]=ei("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",ni.Dx+"4ae6247590da4bb21c324ba3a84e385776",Ko.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",bn.za],E=1;5>E;E++)y[ei("7ca11abfd7330390")](ei(b[E-1]),10,15*E);for(y[x]=ei("39f046ebb36e4b"),x=1;5>x;x++)y[ei("7ca11abfd7330390")](ei(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Ko.prototype.Cd=Ko.prototype.Eu),_u=a}}jn.className="Diagram",jn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ke.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof jn?y.H:null},jn.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},jn.useDOM=function(a){Us=a?Ke.document!==void 0:!1},jn.isUsingDOM=function(){return Us},jn.None=Al,jn.Uniform=Il,jn.UniformToFill=wh,jn.CycleAll=Eh,jn.CycleNotDirected=oc,jn.CycleNotDirectedFast=Vd,jn.CycleNotUndirected=cA,jn.CycleDestinationTree=dA,jn.CycleSourceTree=AA,jn.DocumentScroll=kc,jn.InfiniteScroll=Ld,jn.TreeParentCollapsed=Oc,jn.AllParentsCollapsed=Sa,jn.AnyParentsCollapsed=mc;function Yd(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Eu(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=Ke[ei("76a715b2f73f148a")][ei("72ba13b5")]||"";if(a.Rc=!0,Us){var b=jn[ei("76a115b6ed251eaf4692")];if(b)for(var E=Zd.iterator;E.next()&&(b=E.value,b=ei(b).split(ei("39e9")),!(6>b.length));){var z=ei(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=ei(ni[ei("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Ke[ei("74a900bae4370f8b51")][ei("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[ei("73a612b6fb191d")](ei("3aad1ab6e022098b4dc4")),z=ei(b[2]),-1<nt&&(ot=ot[ei("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[ei("76ad18b4f73e")],ot=x[ei("73a612b6fb191d")](ei("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[ei("73a612b6fb191d")](z),0>nt&&z!==ei("7da71ca0ad381e90")&&(nt=y[ei("73a612b6fb191d")](ei("76a715b2ef3e149757"))),0>nt&&(nt=y[ei("73a612b6fb191d")](ei("76a715b2ef3e149757"))),0>nt&&(nt=y[ei("73a612b6fb191d")](ei("2bfa41fdb3784bca12"))),0>nt&&(nt=x[ei("73a612b6fb191d")](ei("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[ei("73a612b6fb191d")](ei("35"))||y[ei("73a612b6fb191d")](ei("35"))===-1),!a.Rc||x[ei("73a612b6fb191d")](ei("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[ei("73a612b6fb191d")](z)),!a.Rc)||(nt=Ke[ei("76a715b2f73f148a")][ei("69ad17a1e03e")],ot=nt[ei("73a612b6fb191d")](ei("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[ei("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Ke.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[ei("79a417a0f0181a8946")]=b,Ke.document[ei("78a712aa")]){Ke.document[ei("78a712aa")][ei("7bb806b6ed32388c4a875b")](nt),at=Ke.getComputedStyle(nt).getPropertyValue(ei("78a704b7e62456904c9b12701b6532a8"));var ht=Ke.getComputedStyle(nt).getPropertyValue(ei("75b817b0ea2202"));if(Ke.document[ei("78a712aa")][ei("68ad1bbcf533388c4a875b")](nt),at){if(nt=Ke[ei("77a902b0eb1b1e804a8a")],ht==="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(ei("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var dt in nt)if(b===nt[dt].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(dt=x[ei("76ad18b4f73e")],E=x[ei("73a612b6fb191d")](ei("35e7"))+2;E<dt;E++)y+=x[E];x=y[ei("73a612b6fb191d")](ei("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[ei("73a612b6fb191d")](ei("35")))}}}return 0<a.Rc&&a!==a.wy}Yd.className="DiagramHelper";function sc(a){this.j=a===void 0?new Le:a,this.o=new Le}Oe.Object.defineProperties(sc.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 $d="DraggingInfo";sc.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 zi(NaN,NaN).freeze(),this.gridSnapCellSpot=Oa,this.gridSnapOrigin=new Le(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},st.className="DraggingOptions";function vt(a,y){if(typeof a=="string"||Ke.Element&&a instanceof Element)var x=jn.call(this,a)||this;else x=jn.call(this)||this,y=a;return gt(x),y&&x.nm(y),x}In(vt,jn);function gt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Bl,a.layout=new Yu}vt.prototype.reset=function(){jn.prototype.reset.call(this),gt(this)},vt.className="Palette";function Bt(a,y){if(typeof a=="string"||Ke.Element&&a instanceof Element)var x=jn.call(this,a)||this;else x=jn.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 Yr;var E=new Go;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 Hr(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new je,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new Le(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),xe(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&&xe(b)},x.autoScale=Il,x.vb=!1,y&&Object.assign(x,y),x}In(Bt,jn),Bt.prototype.computePixelRatio=function(){return 1},Bt.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(yh(this),this.ql===null){var x=new yc(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}}}jn.prototype.redraw.call(this)},Bt.prototype.gc=function(){if(this.Ka===null&&on("No div specified"),this.ta===null&&on("No canvas specified"),!(this.ta instanceof Pu)&&(wv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yh(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=ai.alloc().assign(a.viewportBounds).ed(y.viewportBounds),rc(y,E),ai.free(E),du(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 ht=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&&ht.layer===ot&&(ot=hu(ot,E),ht.gc(E,at),E.globalAlpha=ot);else{for(var dt=hu(ot,E),yt=at.scale,Tt=ai.alloc(),Gt=ot.Pa.s,$t=Gt.length,he=0;he<$t;he++){var Qe=Gt[he];(b||Qe!==ht)&&ot.Oj(E,Qe,at,null,yt,Tt,!1)}ai.free(Tt),E.globalAlpha=dt}}}}}function xe(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=zi.alloc();E.h(x.width,x.height),b.desiredSize=E,zi.free(E),a=2/a.scale,b instanceof Go&&(b.strokeWidth=a),y.location=new Le(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Bt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return is;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Bt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Bt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),xe(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))},Oe.Object.defineProperties(Bt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Bt&&on("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),xe(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),xe(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)}}}),Bt.className="Overview";function je(){He.call(this),this.j=null}In(je,He),je.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 Le(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Le(a.x-this.j.x,a.y-this.j.y)),!0)},je.prototype.doActivate=function(){this.j=null,He.prototype.doActivate.call(this)},je.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},je.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 Le(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Le(a.x-this.j.x,a.y-this.j.y)}}},je.className="OverviewDraggingTool";function De(){ns(this),this.H=jh,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=is,this.hb=!0,this.cg=null,this.ob=200}De.prototype.toString=function(){return"CommandHandler"},De.prototype.Xe=function(a){this.H=a},De.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Zo?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()},De.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},De.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Zt&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},De.prototype.canStopCommand=function(){return!0},De.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=""}},De.prototype.canSelectAll=function(){return this.diagram.allowSelect},De.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();)ig(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=""}},De.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},De.prototype.copySelection=function(){var a=this.diagram,y=new Pi;for(a=a.selection.iterator;a.next();)ig(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},De.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},De.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},De.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},De.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Au=null,yu="";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 Si,x.addAll(z),Au=x,yu=y.model.dataFormat}}y.R("ClipboardChanged",x)},De.prototype.pasteFromClipboard=function(){var a=new Pi,y=Au;if(y===null)return a;var x=this.diagram;if(yu!==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},De.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);Ic(y,z,new Le(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=""}},De.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Au===null||Au.count===0||yu!==a.model.dataFormat)},De.prototype.undo=function(){this.diagram.undoManager.undo()},De.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},De.prototype.redo=function(){this.diagram.undoManager.redo()},De.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},De.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},De.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},De.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Al&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},De.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Al?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},De.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},De.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},De.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;yl(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=is):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),po(y)},De.prototype.canZoomToFit=function(){return this.diagram.allowZoom},De.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;yl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=an(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 hr&&at.isTreeExpanded&&(!(at instanceof Ro)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof Yr&&y.tv(at.actualBounds),at instanceof hr&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof Ro&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof Yr&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){_i(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 an(a,y,x){if(y.isVisible())return x;if(y instanceof bs)an(a,y.adornedPart,x);else if(y instanceof Wi){var b=y.fromNode;b!==null&&an(a,b,x),y=y.toNode,y!==null&&an(a,y,x)}else y instanceof hr&&(b=y.labeledLink,b!==null&&an(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),an(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),an(a,y,x));return x}De.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Yr)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},De.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),yl(y.animationManager,"Collapse Tree");var x=new Si;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 hr&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},De.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof hr&&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 hr&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},De.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),yl(y.animationManager,"Expand Tree");var x=new Si;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 hr&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},De.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof hr)||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 hr&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},De.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 Si,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new Si,at=E.iterator;at.next();){var ht=at.value;z=!1;for(var dt=E.iterator;dt.next();)if(ht.Td(dt.value)){z=!0;break}z||ot.add(ht)}if(0<ot.count){var yt=ot.first().containingGroup;if(yt!==null)for(;yt!==null;){E=!1;for(var Tt=ot.iterator;Tt.next();)if(!Tt.value.Td(yt)){E=!0;break}if(E)yt=yt.containingGroup;else break}if(x instanceof Ro)lh(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Gt=y.copyNodeData(x);ii(Gt)&&(y.xf(Gt),b=a.ii(Gt))}if(b!==null){yt!==null&&this.isValidMember(yt,b)&&(b.containingGroup=yt);for(var $t=ot.iterator;$t.next();){var he=$t.value;this.isValidMember(b,he)&&(he.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},De.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 Zn(a){var y=vi();for(a=a.iterator;a.next();){var x=a.value;x instanceof Wi||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 er(y),a}De.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Wi)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},De.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 Si;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Ro&&z.canUngroup()&&b.add(z)}var nt=new Si;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ht=at.containingGroup,dt=ht!==null&&ht.data!==null?x.wa(ht.data):void 0;nt.addAll(at.memberParts);for(var yt=nt.iterator;yt.next();){var Tt=yt.value;if(Tt.isSelected=!0,!(Tt instanceof Wi)){var Gt=Tt.data;Gt!==null?x.mp(Gt,dt):Tt.containingGroup=ht}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},De.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 Ro))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ro&&y.canUngroup())return!0;return!1},De.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Zn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},De.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),yl(y.animationManager,"Collapse SubGraph");var x=new Si;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 Ro&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},De.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Ro&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ro&&y.isSubGraphExpanded)return!0;return!1},De.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),yl(y.animationManager,"Expand SubGraph");var x=new Si;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 Ro&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},De.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Ro&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ro&&!y.isSubGraphExpanded)return!0;return!1},De.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 ha&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},De.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 ha))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 ha&&x.editable}),a!==null))return!0;return!1},De.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 xn?E=a.ga(Yo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Le(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,Mo(x,!1,a)}},De.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)},De.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 Cr,a===null)return b;for(var z=a.iterator;z.next();)Vu(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 Wi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Oe.Object.defineProperties(De.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||on("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}}}),De.className="CommandHandler",Fc=function(){return new De};function xn(){ns(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Le(NaN,NaN).freeze(),this.jd=Ka,this.Ab=new Ko,this.wh=new Ko,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Ao,this.uc=new ai(NaN,NaN,NaN,NaN).freeze(),this.Ib=new ai(NaN,NaN,NaN,NaN).freeze(),this.dc=new ai(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Bs,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 Mi,bi,Mr,jr,qr,Co,$o,Oo,ss,Ds;xn.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=dr(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},xn.prototype.Vw=function(a){var y=this.Dh;if(wi(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},xn.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},xn.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},xn.prototype.copy=function(){return this.clone()},Wt=xn.prototype,Wt.qb=function(a){a.classType===Wi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:on("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===xn&&(this.stretch=a)},Wt.toString=function(){return or(this.constructor)+"#"+fs(this)},Wt.th=function(){this.A!==null&&(this.A.nc=!0)};function Do(a){a.A===null?a.A=new GA:a.A.nc&&(a.A=a.A.copy())}Wt.Xc=function(){if(this.ba===null){var a=new Vf;a.Xi=Ma,a.yj=Ma,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Wt.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===ja&&fu(this)&&Js(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 Cr),nt=z.undoManager.transactionLevel===0,a.startCondition===uu?nt=!0:a.startCondition===wl&&(nt=!1),nt?(z=new Va,Ta(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()):(yl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Jn&&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 Jn&&ua(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function Js(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=T1(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))}}Wt.ks=function(a){return this.bindingId===a?this:null},Wt.g=function(a,y,x){this.cb(ja,a,this,y,x)},Wt.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 Ko);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function _l(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Wt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?os(a.x,a.y,0,0,0,b.height)<=y||os(a.x,a.y,0,b.height,b.width,b.height)<=y||os(a.x,a.y,b.width,b.height,b.width,0)<=y||os(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},Wt.se=function(){return!0},Wt.ca=function(a){var y=Le.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Le.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=ia(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),Le.free(y),a}return E=!1,(this instanceof bs||this instanceof Go?ia(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)),Le.free(y),E},Wt.gh=function(a){var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},Wt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=ai.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Le.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)))),Le.free(E),ai.free(y),b},Wt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Le.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)))),Le.free(E),b},Wt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Le.allocAt(0,0),E=Le.allocAt(0,x.height),z=Le.allocAt(x.width,x.height),nt=Le.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=ai.allocAt(0,0,x.width,x.height);var at=Le.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)))),Le.free(at),ai.free(x),!ot&&(bn.us(a,b,E)||bn.us(a,E,z)||bn.us(a,z,nt)||bn.us(a,nt,b))&&(ot=!0)}return Le.free(b),Le.free(E),Le.free(z),Le.free(nt),ot},Wt.ga=function(a,y){if(y===void 0&&(y=new Le),a instanceof wr){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},Wt.mi=function(a){a===void 0&&(a=new ai);var y=this.naturalBounds,x=this.oe,b=Le.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Is(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Is(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Is(a,b.x,b.y,0,0),Le.free(b),a},Wt.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},Wt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Wt.qs=function(a,y){return y===void 0&&(y=new Le),y.assign(a),this.oe.Cd(y),y},Wt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Wt.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,ht=-z.m21*nt,dt=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),Tt=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,bn.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*ot+y*ht+yt,a=a*at+y*dt+Tt,y=x*ot+b*ht+yt,x=x*at+b*dt+Tt,E.h(0,0),b=this.naturalBounds,x=bn.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},xn.prototype.measure=function(a,y,x,b){if(xh(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 Jn;switch(Zu(this,!0)){case bi:nt=E=0,ot&&(y=a=1/0);break;case Mi:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case jr:isFinite(a)&&a>x&&(E=a),nt=0,ot&&(y=1/0);break;case qr: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()||on("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Ql(this,!1)}},xn.prototype.Wl=function(){},xn.prototype.Dd=function(){return!1},xn.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=ai.alloc();z.assign(this.Ib),this.Ib.ka(),Hu(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&&Ch(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 ha&&(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()||on("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),qc(this,!1),ai.free(z)},Wt=xn.prototype,Wt.eh=function(){};function $l(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=Zu(a,!0),x===b&&z===E&&(y=bi),y){case bi:(x>b||z>E)&&(Ql(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Mi:Ql(a,!0),a.measure(b,E,0,0);break;case jr:Ql(a,!0),a.measure(b,z,0,0);break;case qr:Ql(a,!0),a.measure(x,E,0,0)}}}Wt.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(),kh(a,y)||(x.oh(),this.Pn(x)))},Wt.Pn=function(a){this.portId!==null&&(Cv(a,!0),a instanceof hr&&$y(a,this))},Wt.gc=function(a,y){if(!El(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 Jn&&Ch(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ht=this.areaBackground,dt=this.Ma;ht===null&&dt===null||a.yc(),ht!==null&&(Ca(this,a,ht,!0,!0,at,ot),ht instanceof Rs&&ht.type===$e?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ht)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),dt!==null&&(Ca(this,a,dt,!0,!1,at,ot),dt instanceof Rs&&dt.type===$e?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(dt)):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&&Xl(this),ht=this.part,at=!1;var yt=0;ht&&y.Gf("drawShadows")&&(at=ht.isShadowed)&&(dt=ht.shadowOffset,yt=Math.max(dt.y,dt.x)*y.scale*y.Mb),dt=this.Dd();var Tt;if(!(Tt=y.$i||!dt)){var Gt=this.naturalBounds;Tt=this.wh;var $t=Tt.m11,he=Tt.m21,Qe=Tt.dx,Me=Tt.m12,Ze=Tt.m22,tn=Tt.dy,sn,Cn=sn=0;Tt=sn*$t+Cn*he+Qe;var Kn=sn*Me+Cn*Ze+tn;sn=Gt.width+yt,Cn=0;var ar=sn*$t+Cn*he+Qe;sn=sn*Me+Cn*Ze+tn,Cn=Math.min(Tt,ar);var Tr=Math.min(Kn,sn),xr=Math.max(Tt+0,ar)-Cn,Gi=Math.max(Kn+0,sn)-Tr;Tt=Cn,Kn=Tr,sn=Gt.width+yt,Cn=Gt.height+yt,ar=sn*$t+Cn*he+Qe,sn=sn*Me+Cn*Ze+tn,Cn=Math.min(Tt,ar),Tr=Math.min(Kn,sn),xr=Math.max(Tt+xr,ar)-Cn,Gi=Math.max(Kn+Gi,sn)-Tr,Tt=Cn,Kn=Tr,sn=0,Cn=Gt.height+yt,ar=sn*$t+Cn*he+Qe,sn=sn*Me+Cn*Ze+tn,Cn=Math.min(Tt,ar),Tr=Math.min(Kn,sn),xr=Math.max(Tt+xr,ar)-Cn,Gi=Math.max(Kn+Gi,sn)-Tr,Tt=Cn,Kn=Tr,yt=y.viewportBounds,Gt=yt.x,$t=yt.y,Tt=!(Tt>yt.width+Gt||Gt>xr+Tt||Kn>yt.height+$t||$t>Gi+Kn)}if(Tt){if(Tt=(this.l&256)!==0,a.clipInsteadOfFill&&(Tt=!1),this instanceof ha&&(a.font=this.font),Tt){if(Kn=ot.se()?ot.naturalBounds:ot.actualBounds,xr=Math.max(nt.x,Kn.x),Gi=Math.max(nt.y,Kn.y),yt=Math.min(nt.right,Kn.right)-xr,Gt=Math.min(nt.bottom,Kn.bottom)-Gi,$t=this.tb,$t!==null&&(xr=$t.x,Gi=$t.y,yt=$t.width,Gt=$t.height),xr>nt.width+nt.x||nt.x>Kn.width+Kn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(xr,Gi,yt,Gt),a.clip()}if(dt){if(!ht.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(Kn=ht.shadowOffset,a.Ev(Kn.x*y.scale*this.scale*y.Mb,Kn.y*y.scale*this.scale*y.Mb,ht.shadowBlur),zh(a),a.shadowColor=ht.shadowColor)}at&&this.shadowVisible===!0?zh(a):at&&this.shadowVisible===!1&&td(a),ht=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Ja(this,a,ht,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&fl(this,ot)&&this.shadowVisible===null&&td(a),this.Ma!==null&&(a.yc(),Ua(this,a,ht,nt)),at&&(this.Ma!==null||this.areaBackground!==null||fl(this,ot))?(ch(this,!0),this.shadowVisible===null&&td(a)):ch(this,!1),this.hh(a,y),at&&this.l&512&&zh(a),dt&&at&&td(a),Tt&&(a.restore(),a.Vc(this instanceof Jn)),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 fl(a,y){return y===null?!1:(Ch(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Jn.Auto||y.type===Jn.Spot)&&y.Pb()!==a)}Wt.Dv=function(){};function Ja(a,y,x,b){Ca(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof Rs&&a.areaBackground.type===$e?(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 Ua(a,y,x,b){var E=a.kq(),z=x.x,nt=x.y,ot=x.width+E,at=x.height+E;Ca(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof Rs&&a.Ma.type===$e?(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 Za(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===Jn.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 El(a,y,x){if(!(y instanceof Sh))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&&Za(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),zh(y),y.shadowColor=a.shadowColor}a instanceof ha&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof Jn;var ot=a instanceof Jn?Ch(a):!1;a.l&4096&&Xl(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(Ad(y,1,0,0,1,0,0),a.svg=y.ad):z?(Ad(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):Ad(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ht=nt.copy().Vj();y.rb.ha=[ht.m11,ht.m12,ht.m21,ht.m22,ht.dx,ht.dy],Ja(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]),Ua(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],Ua(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&&zh(y),ot&&a.shadowVisible===!0?zh(y):ot&&a.shadowVisible===!1&&td(y),E=a.panel,ot&&fl(a,E)&&a.shadowVisible===null&&td(y),y.Il&&(ht=x.computePixelRatio(),ht="drop-shadow("+y.shadowOffsetX/ht+"px "+y.shadowOffsetY/ht+"px "+y.shadowBlur/ht/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ht),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ht)),ot&&(a.Ma!==null||a.areaBackground!==null||fl(a,E))?(ch(a,!0),a.shadowVisible===null&&td(y)):ch(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,ht=a.svg,!z&&ht!==null&&ot!==ht&&ht.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),wu(y,ht),!0):(a.svg=ot,nt!==null&&ot===null&&(Pg(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&&zh(y),a.Dd()&&td(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&&Za(a,b,ot),nt!==null&&nt(a,ot)),!0)}Wt.$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"+Hs++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof Jn&&(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"),wu(a,b)};function wu(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Uo(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Ss(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()}}Wt.hh=function(){},Wt.lv=function(){this.Uc=!0},Wt.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 Jn?Ch(this):!1;if(!(this instanceof Jn&&E))if(this instanceof uc){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Kg(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",wp(a)):y.setAttributeNS(null,"transform",wp(a))}else if(!x||this instanceof Jn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Go){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],Ja(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&&vc(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(vc(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Jn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ua(this,a,this.naturalBounds,this.actualBounds),y.Ma?(vc(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&&vc(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Wt.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 Ca(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===fe)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ht=a.kq();if(ot=z.width,at=z.height,E?(ot=nt.width,at=nt.height):b||(ot+=ht,at+=ht),(z=y instanceof ZA)&&x.xe&&(x.type===mn||x.yk===ot&&x.ft===at))var dt=x.xe;else{var yt=0,Tt=0,Gt=0,$t=0,he=0,Qe=0;if(Qe=he=0,E?(he=nt.x,Qe=nt.y):b||(he-=ht/2,Qe-=ht/2),yt=x.start.x*ot+x.start.offsetX,Tt=x.start.y*at+x.start.offsetY,Gt=x.end.x*ot+x.end.offsetX,$t=x.end.y*at+x.end.offsetY,yt+=he,Gt+=he,Tt+=Qe,$t+=Qe,x.type===Ee)dt=y.createLinearGradient(yt,Tt,Gt,$t);else if(x.type===$e)Qe=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(he=0,Qe=Math.max(ot,at)/2):he=x.startRadius,dt=y.createRadialGradient(yt,Tt,he,Gt,$t,Qe);else if(x.type===mn)try{dt=y.createPattern(x.pattern,"repeat")}catch(Ze){dt=null}if(x.type!==mn&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)dt.addColorStop(E.key,E.value);if(z&&(x.xe=dt,dt!==null&&(x.yk=ot,x.ft=at),dt===null&&x.type===mn&&x.yk!==-1)){x.yk=-1;var Me=a.diagram;Me!==null&&x.yk===-1&&_i(function(){Me.redraw()},600)}}b?y.fillStyle=dt:y.strokeStyle=dt}}}Wt.rg=function(a){if(a instanceof Jn)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},Wt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Wt.If=function(){for(var a=this instanceof Jn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function Xl(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Fh(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)}Fh(a,!1),eh(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,eh(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,eh(a,!1)))}Wt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Le.alloc();z.yi(y,x,b,E,Yo),a.rotate(this.Kb,z.x,z.y),Le.free(z)}},Wt.v=function(a){if(!xh(this)){a===void 0&&(a=!1),Ql(this,!0),qc(this,!0);var y=this.panel;y===null||a||y.v()}},Wt.Uj=function(){xh(this)||(Ql(this,!0),qc(this,!0))};function Hl(a){if(!Hu(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof hr&&a.Bd(),y.$b())),qc(a,!0)}}Wt.Uk=function(){!(this.l&2048)&&(Fh(this,!0),eh(this,!0))},Wt.Wu=function(){eh(this,!0)},Wt.N=function(){var a=this.part;a!==null&&a.N()};function Zu(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Jn.Table?aa(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Jn.Auto&&b.Pb()===a?zs(a,Mi,y):x===Co?b!==null?b.type===Jn.Spot&&b.Pb()===a?zs(a,Mi,y):(x=b.defaultStretch,x===Co?zs(a,bi,y):zs(a,x,y)):zs(a,bi,y):zs(a,x,y)}function aa(a,y,x,b){var E=a.stretch;if(E!==Co)return zs(a,E,b);var z=E=null;switch(y.stretch){case qr:z=!0;break;case Mi:z=!0}switch(x.stretch){case jr:E=!0;break;case Mi:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===jr||y===Mi),z===null&&(z=y===qr||y===Mi),E===!0&&z===!0?zs(a,Mi,b):E===!0?zs(a,jr,b):z===!0?zs(a,qr,b):zs(a,bi,b)}function zs(a,y,x){if(x)return y;if(y===bi||(x=a.desiredSize,x.w()))return bi;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===jr)return bi;if(y===Mi)return qr}else{if(y===qr)return bi;if(y===Mi)return jr}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===qr)return bi;if(y===Mi)return jr}else{if(y===jr)return bi;if(y===Mi)return qr}return y}function ch(a,y){a.l=y?a.l|512:a.l&-513}function fu(a){return(a.l&1024)!==0}function Xd(a,y){a.l=y?a.l|1024:a.l&-1025}function Fh(a,y){a.l=y?a.l|2048:a.l&-2049}function eh(a,y){a.l=y?a.l|4096:a.l&-4097}function xh(a){return(a.l&8192)!==0}function Ql(a,y){a.l=y?a.l|8192:a.l&-8193}function Hu(a){return(a.l&16384)!==0}function qc(a,y){a.l=y?a.l|16384:a.l&-16385}Wt.Gj=function(){this.svg=null},Wt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Wt.Av=function(){},Wt.zv=function(a){return this.pa=a,Hl(this),!0},Wt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Wt.kq=function(){return 0};function Md(a){var y=a.part;if(y instanceof hr&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||$y(y,a)}}function Cg(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Jn?a instanceof hr?a.Bd():a.qm(a,function(x){Md(x)}):Md(a))}Wt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new iu(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&lc(a)&&on("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Si),this.localBindings.add(E),this},Wt.set=function(a){return Object.assign(this,a),this},Wt.Du=function(a){return Bg(this,a),this},Wt.apply=function(a){return a(this),this},Wt.nm=function(a){return vh(this,a),this},Wt.pz=function(){return this.ih()},Wt.ih=function(){for(var a=this instanceof Jn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Wt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Cr),this.animationTriggers.add(a.propertyName,a),this};function Hh(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=yf.I(a);typeof z=="function"?(x=dr(arguments),b=z(x),ii(b)||on('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ke.go[a]}if(b===null&&(E!=null&&E.constructor||on("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 jn&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(ad(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?on("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):Bg(b,z);return b}function Bg(a,y){if(typeof y=="string")if(a instanceof ha)a.text=y;else if(a instanceof Go)a.figure=y;else if(a instanceof uc)a.source=y;else if(a instanceof Jn)y=Gh.I(y),y!==null&&(a.type=y);else if(a instanceof Rs){var x=rr(Rs,y);x!==null?a.type=x:on("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Yi?(y=rr(Yi,y),y!==null&&(a.type=y)):a instanceof gs&&(y=rr(gs,y),y!==null&&(a.type=y));else if(y instanceof xn)a instanceof Jn||on("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Kl){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 Kl?Yg(b,y):on("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof ri)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Pn)a.type=y;else if(y instanceof iu)a instanceof xn||a instanceof Kl?a.bind(y):on("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Wu)a instanceof xn?a.Jv(y):on("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof il)a instanceof Yi&&a.type===Yi.o?a.figures.add(y):on("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof gs)a instanceof il?a.segments.add(y):on("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ya)a instanceof jn||a instanceof Ro?a.layout=y:on("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++)Bg(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof Rs){x=new no;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);vh(a,x)}else if(a instanceof Kl){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&on("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)&&on("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new no;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);vh(a,E)}else vh(a,y);else on('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function dd(a,y){yf.add(a,y)}function Wf(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}Oe.Object.defineProperties(xn.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&&(Do(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&&(Do(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Vh},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new MA),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Vh&&(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 MA),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 MA),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 MA),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Co},set:function(a){var y=this.stretch;y!==a&&(Do(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&&(Do(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)&&Vi(a,"0 <= value <= 1",xn,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Ig(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(Ig(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(),Cg(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&&Kt(a,"GraphObject.areaBackground"),a instanceof Rs&&a.freeze(),Do(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&&Kt(a,"GraphObject.background"),a instanceof Rs&&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 Yr)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 Le(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&&on("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,Cg(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 Go&&this.qc(),this.g("desiredSize",b,a),fu(this)&&(a=this.part,a!==null&&(Js(this,a,"width"),Js(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 zi(a,this.jd.height).freeze(),this.v(),this instanceof Go&&this.qc(),this.g("desiredSize",y,a),fu(this)&&(a=this.part,a!==null&&Js(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 zi(this.jd.width,a).freeze(),this.v(),this instanceof Go&&this.qc(),this.g("desiredSize",y,a),fu(this)&&(a=this.part,a!==null&&Js(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Eo},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(),Do(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Vs},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(),Do(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 Hr(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&&Xl(this),this.Ab}},oe:{get:function(){return this.l&4096&&Xl(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Do(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:bi},set:function(a){this.reshapingBehavior!==a&&(Do(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()&&on("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Hl(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&&Vi(a,">= 0",xn,"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&&Vi(a,">= 1",xn,"columnSpan"),Do(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&&Vi(a,">= 0",xn,"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&&Vi(a,">= 1",xn,"rowSpan"),Do(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&&(Do(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 hr||on("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:Ma},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Md(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Vi(a,">= 0",xn,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Md(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),Md(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&&Vi(a,">= 0",xn,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Ma},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Md(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Vi(a,">= 0",xn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Md(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),Md(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&&Vi(a,">= 0",xn,"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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(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&&(Do(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),xn.prototype.trigger=xn.prototype.Jv,xn.prototype.findBindingPanel=xn.prototype.ih,xn.prototype.findTemplateBinder=xn.prototype.pz,xn.prototype.setProperties=xn.prototype.nm,xn.prototype.apply=xn.prototype.apply,xn.prototype.attach=xn.prototype.Du,xn.prototype.set=xn.prototype.set,xn.prototype.isEnabledObject=xn.prototype.If,xn.prototype.isVisibleObject=xn.prototype.Ed,xn.prototype.isContainedBy=xn.prototype.rg,xn.prototype.getNearestIntersectionPoint=xn.prototype.rs,xn.prototype.getLocalPoint=xn.prototype.qs,xn.prototype.getDocumentScale=xn.prototype.Df,xn.prototype.getDocumentAngle=xn.prototype.li,xn.prototype.getDocumentBounds=xn.prototype.mi,xn.prototype.getDocumentPoint=xn.prototype.ga,xn.prototype.intersectsRect=xn.prototype.Yc,xn.prototype.containedInRect=xn.prototype.fh,xn.prototype.containsRect=xn.prototype.Re,xn.prototype.containsPoint=xn.prototype.ca,xn.prototype.raiseChanged=xn.prototype.g,xn.prototype.raiseChangedEvent=xn.prototype.cb,xn.prototype.addCopyProperty=xn.prototype.Vw;var yf=null;xn.className="GraphObject",yf=new Cr,dd("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=Hh(Jn,Jn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Jn){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"},Hh(Go,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new wr(0,0,2.76142374915397,2.761423749153969),spot2:new wr(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 Jn&&(x=b.fb("ButtonBorder"),x instanceof Go)){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 Jn&&(x=b.fb("ButtonBorder"),x instanceof Go&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Jn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Go){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 Jn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Go){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 Jn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Go){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 Jn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Go))){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}),dd("TreeExpanderButton",function(){var a=Hh("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Hh(Go,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ca},new iu("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new iu("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof bs&&(x=x.adornedPart),x instanceof hr){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}),dd("SubGraphExpanderButton",function(){var a=Hh("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Hh(Go,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:ca},new iu("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 bs&&(x=x.adornedPart),x instanceof Ro){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}),dd("ToolTip",function(){return Hh(bs,Jn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Le(0,3),shadowBlur:5},Hh(Go,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new wr(0,0,4,6),spot2:new wr(1,1,-4,-4)}))}),dd("ContextMenu",function(){return Hh(bs,Jn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Le(0,3),shadowBlur:5},new iu("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),dd("ContextMenuButton",function(){var a=Hh("Button");a.stretch=jr;var y=a.fb("ButtonBorder");return y instanceof Go&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new wr(0,0,2,3),y.spot2=new wr(1,1,-2,-2)),a}),dd("PanelExpanderButton",function(a){var y=Wf(a,"COLLAPSIBLE"),x=Hh("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},Hh(Go,{name:"ButtonIcon",strokeWidth:2},new iu("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Go&&(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}),dd("CheckBoxButton",function(a){var y=Wf(a);return a=Hh("Button",{desiredSize:new zi(14,14)},Hh(Go,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Mi,geometryStretch:Mr,visible:!1},y!==""?new iu("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Jn){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}),dd("CheckBox",function(a){a=Wf(a),a=Hh("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Hr(0,1,0,0)});var y=Hh(Jn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Hr(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}),xn.None=bi=new ri(xn,"None",0),xn.Default=Co=new ri(xn,"Default",0),xn.Vertical=qr=new ri(xn,"Vertical",4),xn.Horizontal=jr=new ri(xn,"Horizontal",5),xn.Fill=Mi=new ri(xn,"Fill",3),xn.Uniform=Mr=new ri(xn,"Uniform",1),xn.UniformToFill=$o=new ri(xn,"UniformToFill",2),xn.FlipVertical=Oo=new ri(xn,"FlipVertical",1),xn.FlipHorizontal=ss=new ri(xn,"FlipHorizontal",2),xn.FlipBoth=Ds=new ri(xn,"FlipBoth",3),xn.make=Hh,xn.getBuilders=function(){var a=new Cr,y;for(y in yf)if(y!==y.toLowerCase()){var x=yf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},xn.defineBuilder=dd,xn.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=yf.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof xn))return y&&b.set(y),b;on('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},xn.takeBuilderArgument=Wf;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=Eo,this.o=Vs,this.hg=Co,this.ob=this.Bi=1,this.Pf=bi,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 MA(){this.u=-1/0,this.o=0,this.F=qo,this.rr=Vh,this.j=this.V="None"}MA.prototype.copy=function(){var a=new MA;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},MA.className="LinkElementSettings";function Vf(){this.yj=this.Xi=Bs,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Vf.prototype.copy=function(){var a=new Vf;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},Vf.className="LinkSettings";function fA(){this.ha=[1,0,0,1,0,0]}fA.prototype.copy=function(){var a=new fA;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},fA.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},fA.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},fA.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)}},fA.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 Pu(a,y,x){this.ownerDocument=a=y===void 0?Ke.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 Sh(this,x)}Pu.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},Pu.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),ii(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},Pu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Pu.prototype.focus=function(){this.Oa.focus()},Pu.prototype.mx=function(){this.ownerDocument=null},Oe.Object.defineProperties(Pu.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}}}),Pu.className="SVGSurface";function Sh(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 fA,this.j=Pg(this),this.Nj=Pg(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Hs++,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 Zf(a,y,x,b,E,z,nt){a.Nj===void 0?Ad(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}Wt=Sh.prototype,Wt.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ht=at-1e-6,dt=x*Math.cos(b),yt=x*Math.sin(b),Tt=a+dt,Gt=y+yt,$t=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-Tt)||1e-6<Math.abs(ot-Gt))&&this.path.push(["L",Tt,+Gt]),0>b&&(b=b%at+at),b>ht?(this.path.push(["A",x,x,0,1,$t,a-dt,y-yt]),this.path.push(["A",x,x,0,1,$t,Tt,Gt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),$t,a+x*Math.cos(E),y+x*Math.sin(E)])},Wt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Wt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Wt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Wt.clearRect=function(){},Wt.clip=function(){this.Yl.clipPath=!0},Wt.closePath=function(){this.path.push(["z"])},Wt.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},Wt.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"+Hs++,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(_h,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Wt.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 Kg(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)}Wt.drawImage=function(a,y,x,b,E,z,nt,ot,at){var ht="";a instanceof HTMLCanvasElement&&(ht=a.toDataURL()),a instanceof HTMLImageElement&&(ht=a.getAttribute("src"));var dt=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,ot=b=dt,at=E=a),b=b||0,E=E||0,ot=ot||0,at=at||0,Kg(this,y,x,b,E,z||0,nt||0,ot,at),z={x:0,y:0,width:dt||b,height:a||E,href:ht},bn.$(b,ot)&&bn.$(E,at)?ht.toLowerCase().indexOf(".svg")===-1&&ht.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==dt||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),WA(this,_h,z,this.rb),this.addElement(_h,z)},Wt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),VA(this,this.Yl)},Wt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Wt.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},WA(this,"fill",a,this.rb),this.addElement("rect",a)},Wt.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},WA(this,"fill",a,this.rb),VA(this,a),this.svg.prepend(this.Ud("rect",a))},Wt.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},WA(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Wt.lineTo=function(a,y){this.path.push(["L",a,y])},Wt.moveTo=function(a,y){this.path.push(["M",a,y])},Wt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Wt.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"])},Wt.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},Wt.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())},Wt.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||Ad(this,a,y,x,b,E,z)};function wp(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Wt.scale=function(a,y){this.rb.scale(a,y)},Wt.translate=function(a,y){this.rb.translate(a,y)},Wt.transform=function(){},Wt.yc=function(){},Wt.stroke=function(){NA(this,this.Yl)},Wt.jk=function(){this.clipInsteadOfFill||this.stroke()},Wt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Wt.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 WA(a,y,x,b){y==="fill"?VA(a,x):y==="stroke"&&NA(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function VA(a,y){a.fillStyle instanceof Nd?y.fill=Qh(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 Yf(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Nd?y.setAttributeNS(null,"fill",Qh(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 NA(a,y){if(a.strokeStyle instanceof Nd)y.stroke=Qh(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 Qh(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"+Hs++,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(ht,dt){return ht.offset>dt.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Wt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=dr(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,WA(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 Ad(a,y,x,b,E,z,nt){var ot=new fA;ot.ha=[y,x,b,E,z,nt],y={},WA(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function Pg(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Wt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function td(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function zh(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Wt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Wt.fs=function(){this.Ct=!1},Wt.Vc=function(){},Wt.Wx=function(){},Sh.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Sh.prototype.getImageData=function(){return null},Sh.prototype.measureText=function(){return null};function vc(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()))}Sh.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Sh.className="SVGContext",jn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Pu(this,Ke.document));var y=new Pu(this,Ke.document,!0);a===void 0&&(a=new no);var x=this;return Ws(this,function(b,E){return b=_a(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},jn.prototype.makeSvg=jn.prototype.Cs,jn.prototype.av=function(a){return this.Cs(a)},jn.prototype.makeSVG=jn.prototype.av;function yc(a,y,x,b){this.ownerDocument=y=y===void 0?Ke.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new ZA(y,x,b),y.H=a}yc.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},yc.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},yc.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},yc.prototype.focus=function(){this.Oa.focus()},yc.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Oe.Object.defineProperties(yc.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}}}),yc.className="CanvasSurface";function ZA(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&on("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 Ko,this.isTemporary=!!x}Wt=ZA.prototype,Wt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Wt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Wt.beginPath=function(){this.Z.beginPath()},Wt.Se=function(){},Wt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Wt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Wt.clip=function(){this.Z.clip()},Wt.closePath=function(){this.Z.closePath()},Wt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Wt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Wt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Wt.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)},Wt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Wt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Wt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Wt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Wt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Wt.lineTo=function(a,y){this.Z.lineTo(a,y)},Wt.measureText=function(a){return this.Z.measureText(a)},Wt.moveTo=function(a,y){this.Z.moveTo(a,y)},Wt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Wt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Wt.restore=function(){this.Z.restore()},Wt.save=function(){this.yc(),this.Z.save()},ZA.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Wt=ZA.prototype,Wt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Wt.scale=function(a,y){this.El.scale(a,y)},Wt.translate=function(a,y){this.El.translate(a,y)},Wt.stroke=function(){this.Z.stroke()},Wt.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}},Wt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Wt.ng=function(a,y){if(a instanceof Rs&&a.type===$e){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)},Wt.jk=function(){this.Hm||this.stroke()},Wt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Wt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Wt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(xp),a.lineDashOffset=0)},Wt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Wt.Hs=function(){},Oe.Object.defineProperties(ZA.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 xp=Object.freeze([]);ZA.className="CanvasSurfaceContext";function wf(){this.F=this.o=this.u=this.j=0}wf.className="ColorNumbers";function Rs(a,y){_t||(Qt(),_t=!0),ns(this),this._isFrozen=!1,a===void 0?(this.na=fe,this.xk="black"):typeof a=="string"?(this.na=fe,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===Ee?(this.Qd=Bl,this.Lk=lu):this.Lk=a===$e?this.Qd=Yo:this.Qd=Ma,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}Rs.prototype.copy=function(){var a=new Rs;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},Wt=Rs.prototype,Wt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Wt.ka=function(){return Object.isFrozen(this)&&on("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Wt.qb=function(a){a.classType===Rs&&(this.type=a)},Wt.toString=function(){var a="Brush(";if(this.type===fe)a+=this.color;else if(a=this.type===Ee?a+"Linear ":this.type===$e?a+"Radial ":this.type===mn?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+")"},Wt.addColorStop=function(a,y){return this._isFrozen&&di(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Vi(a,"0 <= loc <= 1",Rs,"addColorStop:loc"),this.we===null&&(this.we=new Cr),this.we.add(a,y),this.na===fe&&(this.type=Ee),this.xe=null,this},Wt.Vz=function(a,y){if(this._isFrozen&&di(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cn:y,this.type===fe)fd(this.color),this.color=gA(a,y);else if((this.type===Ee||this.type===$e)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)fd(x.value),this.addColorStop(x.key,gA(a,y));return this};function Gg(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?cn:x,fd(a),gA(y,x)}Wt.Wy=function(a,y){if(this._isFrozen&&di(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?cn:y,this.type===fe)fd(this.color),this.color=gA(-a,y);else if((this.type===Ee||this.type===$e)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)fd(x.value),this.addColorStop(x.key,gA(-a,y));return this};function Sp(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?cn:x,fd(a),gA(-y,x)}function xf(a,y,x){fd(a),a=On.j;var b=On.u,E=On.o,z=On.F;return fd(y),x===void 0&&(x=.5),"rgba("+Math.round((On.j-a)*x+a)+", "+Math.round((On.u-b)*x+b)+", "+Math.round((On.o-E)*x+E)+", "+Math.round((On.F-z)*x+z)+")"}Wt.Gx=function(){if(this.type===fe)return IA(this.color);if((this.type===Ee||this.type===$e)&&this.colorStops!==null){var a=this.colorStops;if(this.type===$e)return IA(a.first().value);if(a.get(.5)!==null)return IA(a.get(.5));if(a.count===2)return a=a.Fa(),IA(xf(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(xf(a.get(x),a.get(b),1-z/E))}return!1};function IA(a){return a?a instanceof Rs?a.Gx():(fd(a),128>(299*On.j+587*On.u+114*On.o)/1e3):!1}function gA(a,y){switch(y){case cn:y=100*Wg(On.j);var x=100*Wg(On.u),b=100*Wg(On.o);return Qi.j=.4124564*y+.3575761*x+.1804375*b,Qi.u=.2126729*y+.7151522*x+.072175*b,Qi.o=.0193339*y+.119192*x+.9503041*b,Qi.F=On.F,y=Ut(Qi.j/Fn[0]),x=Ut(Qi.u/Fn[1]),b=Ut(Qi.o/Fn[2]),St.j=116*x-16,St.u=500*(y-x),St.o=200*(x-b),St.F=Qi.F,St.j=Math.min(100,Math.max(0,St.j+100*a)),a=(St.j+16)/116,y=a-St.o/200,Qi.j=Fn[0]*kt(St.u/500+a),Qi.u=Fn[1]*(St.j>qe*Pe?Math.pow(a,3):St.j/qe),Qi.o=Fn[2]*kt(y),Qi.F=St.F,a=-.969266*Qi.j+1.8760108*Qi.u+.041556*Qi.o,y=.0556434*Qi.j+-.2040259*Qi.u+1.0572252*Qi.o,On.j=255*Eg((3.2404542*Qi.j+-1.5371385*Qi.u+-.4985314*Qi.o)/100),On.u=255*Eg(a/100),On.o=255*Eg(y/100),On.F=Qi.F,On.j=Math.round(On.j),255<On.j?On.j=255:0>On.j&&(On.j=0),On.u=Math.round(On.u),255<On.u?On.u=255:0>On.u&&(On.u=0),On.o=Math.round(On.o),255<On.o?On.o=255:0>On.o&&(On.o=0),"rgba("+On.j+", "+On.u+", "+On.o+", "+On.F+")";case Sn:return bg(),Oi.o=Math.min(100,Math.max(0,Oi.o+100*a)),"hsla("+Oi.j+", "+Oi.u+"%, "+Oi.o+"%, "+Oi.F+")";default:on("Unknown color space: "+y)}}function fd(a){_t||(Qt(),_t=!0);var y=ti;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,On.j=a[0],On.u=a[1],On.o=a[2],On.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,On.j=0,On.u=0,On.o=0,On.F=1)}}function bg(){var a=On.j/255,y=On.u/255,x=On.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))}Oi.j=Math.round(nt),Oi.u=Math.round(100*a),Oi.o=Math.round(100*E),Oi.F=On.F}function Wg(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Eg(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function Ut(a){return a>Pe?Math.pow(a,1/3):(qe*a+16)/116}function kt(a){var y=a*a*a;return y>Pe?y:(116*a-16)/qe}function Kt(a,y){typeof a!="string"&&(a instanceof Rs||on("Value for "+y+" must be a color string or a Brush, not "+a))}function Qt(){ti=Us?new yc(null,void 0,{willReadFrequently:!0}).context:null}Oe.Object.defineProperties(Rs.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&di(this,a),this.na=a,this.start.Mc()&&(a===Ee?this.start=Bl:a===$e&&(this.start=Yo)),this.end.Mc()&&(a===Ee?this.end=lu:a===$e&&(this.end=Yo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&di(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&di(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&di(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&di(this,a),0>a&&Vi(a,">= zero",Rs,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&di(this,a),0>a&&Vi(a,">= zero",Rs,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&di(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&di(this,a),this.cr=a,this.xe=null}}}),Rs.prototype.isDark=Rs.prototype.Gx,Rs.prototype.darkenBy=Rs.prototype.Wy,Rs.prototype.lightenBy=Rs.prototype.Vz,Rs.prototype.addColorStop=Rs.prototype.addColorStop;var Pe=216/24389,qe=24389/27,Fn=[95.047,100,108.883],ti=null,On=new wf,Oi=new wf,Qi=new wf,St=new wf,_t=!1;Rs.className="Brush";var fe;Rs.Solid=fe=new ri(Rs,"Solid",0);var Ee;Rs.Linear=Ee=new ri(Rs,"Linear",1);var $e;Rs.Radial=$e=new ri(Rs,"Radial",2);var mn;Rs.Pattern=mn=new ri(Rs,"Pattern",4);var cn;Rs.Lab=cn=new ri(Rs,"Lab",5);var Sn;Rs.HSL=Sn=new ri(Rs,"HSL",6),Rs.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},Rs.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;_t||(Qt(),_t=!0);var y=ti;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)},Rs.lighten=function(a){return Gg(a)},Rs.lightenBy=Gg,Rs.darken=function(a){return Sp(a)},Rs.darkenBy=Sp,Rs.mix=xf,Rs.isDark=IA;function Pn(){this.xa="Base"}Pn.prototype.measure=function(){},Pn.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Pn.prototype.arrange=function(){},Pn.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Pn.prototype.iA=function(a){a.Uj()},Pn.prototype.gc=function(){},Oe.Object.defineProperties(Pn.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Jn}}}),Pn.prototype.remeasureObject=Pn.prototype.iA,Pn.prototype.arrangeElement=Pn.prototype.Ly,Pn.prototype.measureElement=Pn.prototype.Yz,Pn.className="PanelLayout";function zn(){this.xa="Base"}In(zn,Pn),zn.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;a=Ha(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===a){var dt=ht.margin,yt=dt.right+dt.left;dt=dt.top+dt.bottom,ht.measure(y,x,z,nt);var Tt=ht.measuredBounds;yt=Math.max(Tt.width+yt,0),dt=Math.max(Tt.height+dt,0),Tt=ht.position.x;var Gt=ht.position.y;isFinite(Tt)||(Tt=0),isFinite(Gt)||(Gt=0),ht instanceof Go&&ht.isGeometryPositioned&&(ht=ht.strokeWidth/2,Tt-=ht,Gt-=ht),Is(E,Tt,Gt,yt,dt)}}},zn.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,ht=z.position.y;if(at=isNaN(at)?-a:at-a,ht=isNaN(ht)?-x:ht-x,z instanceof Go&&z.isGeometryPositioned){var dt=z.strokeWidth/2;at-=dt,ht-=dt}z.visible&&z.arrange(at+ot.left,ht+ot.top,nt.width,nt.height)}};function Bi(){this.xa="Base"}In(Bi,Pn),Bi.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=vi(),z=Ha(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===z){var dt=Zu(ht,!1);if(dt!==bi&&dt!==jr)y.push(ht);else{ht.measure(1/0,x,0,nt),dt=ht.margin,ht=ht.measuredBounds;var yt=Math.max(ht.height+dt.top+dt.bottom,0);E.width+=Math.max(ht.width+dt.right+dt.left,0),E.height=Math.max(E.height,yt)}}}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)&&(dt=at.margin,ot=dt.right+dt.left,dt=dt.top+dt.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,dt=Math.max(at.height+dt,0),E.width+=Math.max(at.width+ot,0),E.height=Math.max(E.height,dt));er(y)},Bi.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 ht=z,dt=y[at];if(dt.visible){var yt=dt.measuredBounds,Tt=dt.margin,Gt=Tt.top+Tt.bottom,$t=z+E.bottom,he=yt.height,Qe=Zu(dt,!1);(isNaN(dt.desiredSize.height)&&Qe===Mi||Qe===qr)&&(he=Math.max(x.height-Gt-$t,0)),Gt=he+Gt+$t,$t=dt.alignment,$t.Xb()&&($t=a.defaultAlignment),$t.sb()||($t=Yo),nt&&(ot-=yt.width+Tt.left+Tt.right),dt.arrange(ot+$t.offsetX+Tt.left,ht+$t.offsetY+Tt.top+(x.height*$t.y-Gt*$t.y),yt.width,he),nt||(ot+=yt.width+Tt.left+Tt.right)}}};function Ni(){this.xa="Base"}In(Ni,Pn),Ni.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=vi();for(var ot=Ha(a),at=0;at<nt;at++){var ht=b[at];if(ht.visible||ht===ot){var dt=Zu(ht,!1);if(dt!==bi&&dt!==qr)x.push(ht);else{var yt=ht.margin;dt=yt.right+yt.left,yt=yt.top+yt.bottom,ht.measure(y,1/0,z,0),ht=ht.measuredBounds,ka(E,Math.max(E.width,Math.max(ht.width+dt,0)),E.height+Math.max(ht.height+yt,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)&&(ht=at.margin,nt=ht.right+ht.left,ht=ht.top+ht.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,ht=Math.max(at.height+ht,0),E.width=Math.max(E.width,Math.max(at.width+nt,0)),E.height+=ht);er(x)}},Ni.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 ht=z,dt=y[at];if(dt.visible){var yt=dt.measuredBounds,Tt=dt.margin,Gt=Tt.left+Tt.right,$t=z+E.right,he=yt.width,Qe=Zu(dt,!1);(isNaN(dt.desiredSize.width)&&Qe===Mi||Qe===jr)&&(he=Math.max(x.width-Gt-$t,0)),Gt=he+Gt+$t,$t=dt.alignment,$t.Xb()&&($t=a.defaultAlignment),$t.sb()||($t=Yo),nt&&(ot-=yt.height+Tt.bottom+Tt.top),dt.arrange(ht+$t.offsetX+Tt.left+(x.width*$t.x-Gt*$t.x),ot+$t.offsetY+Tt.top,he,yt.height),nt||(ot+=yt.height+Tt.bottom+Tt.top)}}};function tr(){this.xa="Base"}In(tr,Pn),tr.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ht=at.margin,dt=ht.right+ht.left,yt=ht.top+ht.bottom;at.measure(y,x,z,nt);var Tt=at.measuredBounds;z=Tt.width,nt=Tt.height;var Gt=Math.max(z+dt,0),$t=Math.max(nt+yt,0),he=a.isClipping,Qe=ai.allocAt(-ht.left,-ht.top,Gt,$t),Me=ai.allocAt(0,0,z,nt);Ui(at,Me,!0),z=Me.width,nt=Me.height;for(var Ze=!0,tn=Ha(a),sn=0;sn<ot;sn++){var Cn=b[sn];Tt=y;var Kn=x;if(Cn!==at&&(Cn.visible||Cn===tn)){ht=Cn.margin;var ar=ht.left,Tr=ht.top;switch(Gt=ht.right+ht.left,$t=ht.top+ht.bottom,ht=Zu(Cn,!1),ht){case Mi:Tt=z,Kn=nt,Tr=ar=$t=Gt=0;break;case jr:Tt=z,ar=Gt=0;break;case qr:Kn=nt,Tr=$t=0}Cn.measure(Tt,Kn,0,0),Tt=Cn.measuredBounds,Gt=Math.max(Tt.width+Gt,0),$t=Math.max(Tt.height+$t,0),ht=Cn.alignment,ht.Xb()&&(ht=a.defaultAlignment),ht.sb()||(ht=Yo);var xr=Cn.alignmentFocus;if(xr.Xb()&&(xr=Yo),Kn=null,Cn instanceof Jn&&Cn.$e!==""&&(Kn=Cn.fb(Cn.$e),Kn===Cn&&(Kn=null)),ar=Me.x-ar,Tr=Me.y-Tr,Kn!==null){for(Cn.arrange(0,0,Tt.width,Tt.height),Tt=Kn.actualBounds,Tt=Le.allocAt(Tt.x+(xr.x*Tt.width-xr.offsetX),Tt.y+(xr.y*Tt.height-xr.offsetY)),Kn=Kn.panel;Kn!==Cn;)Kn.transform.Ga(Tt),Kn=Kn.panel;ar+=ht.x*z+ht.offsetX-Tt.x,Tr+=ht.y*nt+ht.offsetY-Tt.y,Le.free(Tt)}else ar+=ht.x*z+ht.offsetX-(xr.x*Tt.width+xr.offsetX),Tr+=ht.y*nt+ht.offsetY-(xr.y*Tt.height+xr.offsetY);Ze?(Ze=!1,E.h(ar,Tr,Gt,$t)):Is(E,ar,Tr,Gt,$t)}}switch(Ze?E.assign(Qe):he?E.Uu(Me.x,Me.y,Me.width,Me.height):Is(E,Qe.x,Qe.y,Qe.width,Qe.height),ai.free(Qe),ai.free(Me),ht=at.stretch,ht===Co&&(ht=Zu(at,!1)),ht){case bi:return;case Mi:if(!isFinite(y)&&!isFinite(x))return;break;case jr:if(!isFinite(y))return;break;case qr:if(!isFinite(x))return}for(Tt=at.measuredBounds,z=Tt.width,nt=Tt.height,Gt=Math.max(z+dt,0),$t=Math.max(nt+yt,0),ht=at.margin,Me=ai.allocAt(-ht.left,-ht.top,Gt,$t),Ui(at,Me,!0),z=Me.width,nt=Me.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==tn||(ht=x.margin,Gt=ht.right+ht.left,$t=ht.top+ht.bottom,Tt=x.measuredBounds,Gt=Math.max(Tt.width+Gt,0),$t=Math.max(Tt.height+$t,0),dt=x.alignment,dt.Xb()&&(dt=a.defaultAlignment),dt.sb()||(dt=Yo),x=x.alignmentFocus,x.Xb()&&(x=Yo),Ze?(Ze=!1,E.h(dt.x*z+dt.offsetX-(x.x*Tt.width+x.offsetX)-ht.left,dt.y*nt+dt.offsetY-(x.y*Tt.height+x.offsetY)-ht.top,Gt,$t)):Is(E,dt.x*z+dt.offsetX-(x.x*Tt.width+x.offsetX)-ht.left,dt.y*nt+dt.offsetY-(x.y*Tt.height+x.offsetY)-ht.top,Gt,$t));Ze?E.assign(Qe):he?E.Uu(Me.x,Me.y,Me.width,Me.height):Is(E,Qe.x,Qe.y,Qe.width,Qe.height),ai.free(Me)},tr.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 ht=z-x.x,dt=at-x.y;for(E.arrange(ht,dt,nt,ot),nt=ai.allocAt(0,0,nt,ot),Ui(E,nt,!1),ot=0;ot<b;ot++){var yt=y[ot];if(yt!==E){ht=yt.measuredBounds;var Tt=ht.width,Gt=ht.height;dt=yt.alignment,dt.Xb()&&(dt=a.defaultAlignment),dt.sb()||(dt=Yo);var $t=yt.alignmentFocus;if($t.Xb()&&($t=Yo),ht=null,yt instanceof Jn&&yt.$e!==""&&(ht=yt.fb(yt.$e),ht===yt&&(ht=null)),ht!==null){var he=ht.actualBounds;for($t=Le.allocAt(he.x+($t.x*he.width-$t.offsetX),he.y+($t.y*he.height-$t.offsetY)),ht=ht.panel;ht!==yt;)ht.transform.Ga($t),ht=ht.panel;ht=dt.x*nt.width+dt.offsetX-$t.x,dt=dt.y*nt.height+dt.offsetY-$t.y,Le.free($t)}else ht=dt.x*nt.width+dt.offsetX-($t.x*Tt+$t.offsetX),dt=dt.y*nt.height+dt.offsetY-($t.y*Gt+$t.offsetY);ht+=nt.x-x.x,dt+=nt.y-x.y,yt.visible&&yt.arrange(z+ht,at+dt,Tt,Gt)}}ai.free(nt)};function Ui(a,y,x){var b=null;if(a instanceof Jn&&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 Pr(){this.xa="Base"}In(Pr,Pn),Pr.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ht=at.margin,dt=y,yt=x,Tt=ht.right+ht.left,Gt=ht.top+ht.bottom;at.measure(y,x,z,nt),ht=at.measuredBounds;var $t=0,he=null;at instanceof Go&&(he=at,$t=he.strokeWidth*he.scale);var Qe=Math.max(ht.width+Tt,0);ht=Math.max(ht.height+Gt,0);var Me=Kh(at),Ze=Me.x*Qe+Me.offsetX;Me=Me.y*ht+Me.offsetY;var tn=ac(at),sn=tn.x*Qe+tn.offsetX;for(tn=tn.y*ht+tn.offsetY,isFinite(y)&&(dt=Math.max(Math.abs(Ze-sn)-$t,0)),isFinite(x)&&(yt=Math.max(Math.abs(Me-tn)-$t,0)),$t=zi.alloc(),$t.h(0,0),a=Ha(a),tn=0;tn<ot;tn++)Me=b[tn],Me===at||!Me.visible&&Me!==a||(ht=Me.margin,Qe=ht.right+ht.left,Ze=ht.top+ht.bottom,Me.measure(dt,yt,0,0),ht=Me.measuredBounds,Qe=Math.max(ht.width+Qe,0),ht=Math.max(ht.height+Ze,0),$t.h(Math.max(Qe,$t.width),Math.max(ht,$t.height)));if(ot===1)E.width=Qe,E.height=ht,zi.free($t);else{switch(Me=Kh(at),tn=ac(at),ot=b=0,tn.x!==Me.x&&tn.y!==Me.y&&(b=$t.width/Math.abs(tn.x-Me.x),ot=$t.height/Math.abs(tn.y-Me.y)),zi.free($t),$t=0,he!==null&&($t=he.strokeWidth*he.scale,$A(he)===Mr&&(b=ot=Math.max(b,ot))),b+=Math.abs(Me.offsetX)+Math.abs(tn.offsetX)+$t,ot+=Math.abs(Me.offsetY)+Math.abs(tn.offsetY)+$t,he=at.stretch,he===Co&&(he=Zu(at,!1)),he){case bi:nt=z=0;break;case Mi:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case jr:isFinite(y)&&(b=y),nt=0;break;case qr:z=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,z,nt),E.width=at.measuredBounds.width+Tt,E.height=at.measuredBounds.height+Gt}},Pr.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=ai.alloc();z.h(0,0,1,1);var nt=b.margin,ot=nt.left;nt=nt.top;var at=a.padding,ht=at.left;at=at.top,b.arrange(ht+ot,at+nt,E.width,E.height);var dt=Kh(b),yt=ac(b),Tt=dt.y*E.height+dt.offsetY,Gt=yt.x*E.width+yt.offsetX;for(yt=yt.y*E.height+yt.offsetY,z.x=dt.x*E.width+dt.offsetX,z.y=Tt,Is(z,Gt,yt,0,0),z.x+=ot+ht,z.y+=nt+at,E=0;E<x;E++)ot=y[E],ot!==b&&(ht=ot.measuredBounds,nt=ot.margin,at=Math.max(ht.width+nt.right+nt.left,0),dt=Math.max(ht.height+nt.top+nt.bottom,0),Tt=ot.alignment,Tt.Xb()&&(Tt=a.defaultAlignment),Tt.sb()||(Tt=Yo),at=z.width*Tt.x+Tt.offsetX-at*Tt.x+nt.left+z.x,nt=z.height*Tt.y+Tt.offsetY-dt*Tt.y+nt.top+z.y,ot.visible&&(ia(z.x,z.y,z.width,z.height,at,nt,ht.width,ht.height)?ot.arrange(at,nt,ht.width,ht.height):ot.arrange(at,nt,ht.width,ht.height,new ai(z.x,z.y,z.width,z.height))));ai.free(z)};function Lr(){this.xa="Base",this.name="Table"}In(Lr,Pn),Lr.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=vi(),ot=vi(),at=0;at<z;at++){var ht=b[at],dt=ht instanceof Jn?ht:null;if(dt!==null&&Ch(dt)&&ht.visible){ot.push(dt);for(var yt=dt.O.s,Tt=yt.length,Gt=0;Gt<Tt;Gt++){var $t=yt[Gt];dt.type===Jn.TableRow?$t.row=ht.row:dt.type===Jn.TableColumn&&($t.column=ht.column),nt.push($t)}}else nt.push(ht)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var he=[],Qe=0;Qe<z;Qe++){var Me=nt[Qe];Me.visible&&(Ql(Me,!0),qc(Me,!0),he[Me.row]||(he[Me.row]=[]),he[Me.row][Me.column]||(he[Me.row][Me.column]=[]),he[Me.row][Me.column].push(Me))}er(nt);var Ze=vi(),tn=vi(),sn=vi(),Cn={count:0},Kn={count:0},ar=y,Tr=x,xr=a.rowDefs,Gi=a.colDefs,Li=null;z=xr.length;for(var jo=0;jo<z;jo++)Li=xr[jo],Li!==void 0&&(Li.actual=0);z=Gi.length;for(var Bo=0;Bo<z;Bo++)Li=Gi[Bo],Li!==void 0&&(Li.actual=0);for(var Ts=he.length,pa=0,Fu=0;Fu<Ts;Fu++)he[Fu]&&(pa=Math.max(pa,he[Fu].length));var Du=Math.min(a.topIndex,Ts-1),Nh=Math.min(a.leftIndex,pa-1),Lu=0;Ts=he.length;for(var jf=Ha(a),ru=0;ru<Ts;ru++)if(he[ru]){pa=he[ru].length;var SA=a.Fb(ru);SA.actual=0;for(var Ih=SA.oc=0;Ih<pa;Ih++)if(he[ru][Ih]){var Uf=a.Eb(Ih);Ze[Ih]===void 0&&(Uf.actual=0,Uf.oc=0,Ze[Ih]=!0);for(var rd=he[ru][Ih],Od=rd.length,Qc=0;Qc<Od;Qc++){var Sc=rd[Qc];if(Sc.visible||Sc===jf){var fg=1<Sc.rowSpan||1<Sc.columnSpan;fg&&(ru<Du||Ih<Nh||tn.push(Sc));var CA=Sc.margin,t0=CA.right+CA.left,zc=CA.top+CA.bottom,Th=aa(Sc,SA,Uf,!1),V0=Sc.desiredSize,dp=!isNaN(V0.height),DA=!isNaN(V0.width)&&dp;if(fg||Th===bi||DA||ru<Du||Ih<Nh||(Cn[Ih]!==void 0||Th!==Mi&&Th!==jr||(Cn[Ih]=-1,Cn.count++),Kn[ru]!==void 0||Th!==Mi&&Th!==qr||(Kn[ru]=-1,Kn.count++),sn.push(Sc)),Sc.measure(1/0,1/0,0,0),!(ru<Du||Ih<Nh)){var Cc=Sc.measuredBounds,jg=Math.max(Cc.width+t0,0),Kc=Math.max(Cc.height+zc,0);if(Sc.rowSpan===1&&(Th===bi||Th===jr)){Li=a.Fb(ru);var gg=Li.Wc();Lu=Math.max(Kc-Li.actual,0),Lu+gg>Tr&&(Lu=Math.max(Tr-gg,0));var av=Li.oa===0;Li.oc=Li.oc+Lu,Li.actual=Li.oa+Lu,Tr=Math.max(Tr-(Lu+(av?gg:0)),0)}if(Sc.columnSpan===1&&(Th===bi||Th===qr)){Li=a.Eb(Ih);var Z0=Li.Wc();Lu=Math.max(jg-Li.actual,0),Lu+Z0>ar&&(Lu=Math.max(ar-Z0,0));var Py=Li.oa===0;Li.oc=Li.oc+Lu,Li.actual=Li.oa+Lu,ar=Math.max(ar-(Lu+(Py?Z0:0)),0)}fg&&Sc.Uj()}}}}}er(Ze);var of=0,Af=0;z=a.columnCount;for(var Ap=0;Ap<z;Ap++){var pg=Gi[Ap];pg!==void 0&&(of+=isNaN(pg.Hc)?pg.oc:pg.Hc,pg.oc!==0&&(of+=pg.Wc()))}z=a.rowCount;for(var e0=0;e0<z;e0++){var mg=xr[e0];mg!==void 0&&(Af+=isNaN(mg.Hc)?mg.oc:mg.Hc,mg.oc!==0&&(Af+=mg.Wc()))}ar=Math.max(y-of,0);var sf=Tr=Math.max(x-Af,0),Rf=ar;z=sn.length;for(var Bc=0;Bc<z;Bc++){var jA=sn[Bc],lv=a.Fb(jA.row),ff=a.Eb(jA.column),n0=jA.measuredBounds,BA=jA.margin,Ug=BA.right+BA.left,UA=BA.top+BA.bottom;Cn[jA.column]=ff.oc===0&&Cn[jA.column]!==void 0?Math.max(n0.width+Ug,Cn[jA.column]):null,Kn[jA.row]=lv.oc===0&&Kn[jA.row]!==void 0?Math.max(n0.height+UA,Kn[jA.row]):null}var fp=0,i0=0,rA;for(rA in Kn)rA!=="count"&&(fp+=Kn[rA]);for(rA in Cn)rA!=="count"&&(i0+=Cn[rA]);for(var $u=zi.alloc(),Y0=0;Y0<z;Y0++){var Jh=sn[Y0];if(Jh.visible||Jh===jf){var ou=a.Fb(Jh.row),qh=a.Eb(Jh.column),gf=0;isFinite(qh.width)?gf=qh.width:(isFinite(ar)&&Cn[Jh.column]!==null?i0===0?gf=qh.actual+ar:gf=Cn[Jh.column]/i0*Rf:Cn[Jh.column]!==null?gf=ar:gf=qh.actual||ar,gf=Math.max(0,gf-qh.Wc()));var _f=0;switch(isFinite(ou.height)?_f=ou.height:(isFinite(Tr)&&Kn[Jh.row]!==null?fp===0?_f=ou.actual+Tr:_f=Kn[Jh.row]/fp*sf:Kn[Jh.row]!==null?_f=Tr:_f=ou.actual||Tr,_f=Math.max(0,_f-ou.Wc())),$u.h(Math.max(qh.minimum,Math.min(gf,qh.maximum)),Math.max(ou.minimum,Math.min(_f,ou.maximum))),Th=aa(Jh,ou,qh,!1),Th){case jr:$u.height=Math.max($u.height,ou.actual+Tr);break;case qr:$u.width=Math.max($u.width,qh.actual+ar)}var Rg=Jh.margin,by=Rg.right+Rg.left,uv=Rg.top+Rg.bottom;Jh.Uj(),Jh.measure($u.width,$u.height,qh.minimum,ou.minimum);var r0=Jh.measuredBounds,_g=Math.max(r0.width+by,0),gp=Math.max(r0.height+uv,0);isFinite(ar)&&(_g=Math.min(_g,$u.width)),isFinite(Tr)&&(gp=Math.min(gp,$u.height));var Pc=0;Pc=ou.actual,ou.actual=Math.max(ou.actual,gp),ou.oc=Math.max(ou.oc,gp),Lu=ou.actual-Pc,Tr=Math.max(Tr-Lu,0),Kn[Jh.row]===null&&(sf=Math.max(sf-Lu,0)),Pc=qh.actual,qh.actual=Math.max(qh.actual,_g),qh.oc=Math.max(qh.oc,_g),Lu=qh.actual-Pc,ar=Math.max(ar-Lu,0),Cn[Jh.column]===null&&(Rf=Math.max(Rf-Lu,0))}}er(sn);var pf=zi.alloc(),PA=vi(),wd=vi();if(z=tn.length,z!==0){for(var vg=0;vg<Ts;vg++)if(he[vg]){pa=he[vg].length;var o0=a.Fb(vg);PA[vg]=o0.actual;for(var yg=0;yg<pa;yg++)if(he[vg][yg]){var hv=a.Eb(yg);wd[yg]=hv.actual}}}for(var s0=0;s0<z;s0++){var Gl=tn[s0];if(Gl.visible||Gl===jf){var oA=a.Fb(Gl.row),Dd=a.Eb(Gl.column);switch($u.h(Math.max(Dd.minimum,Math.min(y,Dd.maximum)),Math.max(oA.minimum,Math.min(x,oA.maximum))),Th=aa(Gl,oA,Dd,!1),Th){case Mi:wd[Dd.index]!==0&&($u.width=Math.min($u.width,wd[Dd.index])),PA[oA.index]!==0&&($u.height=Math.min($u.height,PA[oA.index]));break;case jr:wd[Dd.index]!==0&&($u.width=Math.min($u.width,wd[Dd.index]));break;case qr:PA[oA.index]!==0&&($u.height=Math.min($u.height,PA[oA.index]))}isFinite(Dd.width)&&($u.width=Dd.width),isFinite(oA.height)&&($u.height=oA.height),pf.h(0,0);for(var cv=Dd.minimum,Gc=oA.minimum,Hf=1;Hf<Gl.rowSpan&&!(Gl.row+Hf>=a.rowCount);Hf++)Li=a.Fb(Gl.row+Hf),Lu=0,Lu=Th===Mi||Th===qr?Math.max(Li.minimum,PA[Gl.row+Hf]===0?Li.maximum:Math.min(PA[Gl.row+Hf],Li.maximum)):Math.max(Li.minimum,isNaN(Li.Hc)?Li.maximum:Math.min(Li.Hc,Li.maximum)),pf.height+=Lu,Gc+=Li.minimum;for(var jd=1;jd<Gl.columnSpan&&!(Gl.column+jd>=a.columnCount);jd++)Li=a.Eb(Gl.column+jd),Lu=0,Lu=Th===Mi||Th===jr?Math.max(Li.minimum,wd[Gl.column+jd]===0?Li.maximum:Math.min(wd[Gl.column+jd],Li.maximum)):Math.max(Li.minimum,isNaN(Li.Hc)?Li.maximum:Math.min(Li.Hc,Li.maximum)),pf.width+=Lu,cv+=Li.minimum;$u.width+=pf.width,$u.height+=pf.height;var a0=Gl.margin,wg=a0.right+a0.left,$0=a0.top+a0.bottom;Gl.measure($u.width,$u.height,cv,Gc);for(var l0=Gl.measuredBounds,RA=Math.max(l0.width+wg,0),Hg=Math.max(l0.height+$0,0),xg=0,u0=0;u0<Gl.rowSpan&&!(Gl.row+u0>=a.rowCount);u0++)Li=a.Fb(Gl.row+u0),xg+=Li.total||0;if(xg<Hg){var Qf=Hg-xg,af=Hg-xg;if(Gl.spanAllocation!==null)for(var zf=Gl.spanAllocation,mf=0;mf<Gl.rowSpan&&!(0>=Qf)&&!(Gl.row+mf>=a.rowCount);mf++){Li=a.Fb(Gl.row+mf);var Kf=Li.oa||0,Qg=zf(Gl,Li,af);Li.actual=Math.min(Li.maximum,Kf+Qg),Li.oa!==Kf&&(Qf-=Li.oa-Kf)}for(;0<Qf;){var bA=Li.oa||0;if(isNaN(Li.height)&&Li.maximum>bA&&(Li.actual=Math.min(Li.maximum,bA+Qf),Li.oa!==bA&&(Qf-=Li.oa-bA)),Li.index===0)break;Li=a.Fb(Li.index-1)}}for(var pp=0,Gf=0;Gf<Gl.columnSpan&&!(Gl.column+Gf>=a.columnCount);Gf++)Li=a.Eb(Gl.column+Gf),pp+=Li.total||0;if(pp<RA){var mp=RA-pp,Ey=RA-pp;if(Gl.spanAllocation!==null)for(var vf=Gl.spanAllocation,zg=0;zg<Gl.columnSpan&&!(0>=mp)&&!(Gl.column+zg>=a.columnCount);zg++){Li=a.Eb(Gl.column+zg);var X0=Li.oa||0,Fy=vf(Gl,Li,Ey);Li.actual=Math.min(Li.maximum,X0+Fy),Li.oa!==X0&&(mp-=Li.oa-X0)}for(;0<mp;){var dv=Li.oa||0;if(isNaN(Li.width)&&Li.maximum>dv&&(Li.actual=Math.min(Li.maximum,dv+mp),Li.oa!==dv&&(mp-=Li.oa-dv)),Li.index===0)break;Li=a.Eb(Li.index-1)}}}}er(tn),zi.free(pf),zi.free($u),PA!==void 0&&er(PA),wd!==void 0&&er(wd);var vp=0,yp=0,Av=a.desiredSize,xw=a.maxSize;Th=Zu(a,!0);var J0=Af=of=0,q0=0;z=a.columnCount;for(var fv=0;fv<z;fv++)Gi[fv]!==void 0&&(Li=a.Eb(fv),isFinite(Li.width)?(J0+=Li.width,J0+=Li.Wc()):Jf(Li)===Sf?(J0+=Li.oa,J0+=Li.Wc()):Li.oa!==0&&(of+=Li.oa,of+=Li.Wc()));isFinite(Av.width)?vp=Math.min(Av.width,xw.width):vp=Th!==bi&&isFinite(y)?y:of,vp=Math.max(vp,a.minSize.width),vp=Math.max(vp-J0,0);for(var r2=of===0?1:Math.max(vp/of,1),gv=0;gv<z;gv++)Gi[gv]!==void 0&&(Li=a.Eb(gv),isFinite(Li.width)||Jf(Li)===Sf||(Li.actual=Li.oa*r2),Li.position=E.width,Li.oa!==0&&(E.width+=Li.oa,E.width+=Li.Wc()));z=a.rowCount;for(var pv=0;pv<z;pv++)xr[pv]!==void 0&&(Li=a.Fb(pv),isFinite(Li.height)?(q0+=Li.height,q0+=Li.Wc()):Jf(Li)===Sf?(q0+=Li.oa,q0+=Li.Wc()):Li.oa!==0&&(Af+=Li.oa,Af+=Li.Wc()));isFinite(Av.height)?yp=Math.min(Av.height,xw.height):yp=Th!==bi&&isFinite(x)?x:Af,yp=Math.max(yp,a.minSize.height),yp=Math.max(yp-q0,0);for(var o2=Af===0?1:Math.max(yp/Af,1),mv=0;mv<z;mv++)xr[mv]!==void 0&&(Li=a.Fb(mv),isFinite(Li.height)||Jf(Li)===Sf||(Li.actual=Li.oa*o2),Li.position=E.height,Li.oa!==0&&(E.height+=Li.oa,E.height+=Li.Wc()));z=ot.length;for(var Ly=0;Ly<z;Ly++){var tm=ot[Ly],My=0,Ny=0;tm.type===Jn.TableRow?(My=E.width,Li=a.Fb(tm.row),Ny=Li.actual):(Li=a.Eb(tm.column),My=Li.actual,Ny=E.height),tm.measuredBounds.h(0,0,My,Ny),Ql(tm,!1)}er(ot),a.inRowsCols=he},Lr.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,ht=nt.length,dt=0,yt=0;yt<ht;yt++)nt[yt]&&(dt=Math.max(dt,nt[yt].length));at=a.rowDefs,ot=a.colDefs;var Tt=yt=0,Gt=Math.min(a.topIndex,ht-1);if(0<at.length){for(;Gt!==ht&&(at[Gt]===void 0||at[Gt].oa===0);)Gt++;Gt=Math.max(Math.min(Gt,ht-1),0),yt=-at[Gt].position}var $t=Math.min(a.leftIndex,dt-1);if(0<ot.length){for(;$t!==dt&&(ot[$t]===void 0||ot[$t].oa===0);)$t++;$t=Math.max(Math.min($t,dt-1),0),Tt=-ot[$t].position}for(var he=0,Qe=0;he!==ht&&at[he]===void 0;)he++;for(;Qe!==ht&&ot[Qe]===void 0;)Qe++;dt=a.part,a.Fb(he),a.Eb(Qe);for(var Me=0;Me<y.length;Me++){var Ze=y[Me];if(Ze instanceof Jn&&Ze.visible&&Ch(Ze)){if(Ze.type===Jn.TableRow){ot=a.Fb(Ze.row);var tn=a.Eb(Qe)}else ot=a.Fb(he),tn=a.Eb(Ze.column);at=ot.position+yt+E,ot.oa!==0&&(at+=ot.Io(Math.max(he,Gt))),ot=tn.position+Tt+z,tn.oa!==0&&(ot+=tn.Io(Math.max(Qe,$t))),tn=Ze.measuredBounds,Ze.Uk(),Ze.actualBounds.ka();var sn=Ze.actualBounds,Cn=ai.allocAt(sn.x,sn.y,sn.width,sn.height);sn.x=Ze.type===Jn.TableRow?z:ot,sn.y=Ze.type===Jn.TableColumn?E:at,sn.width=tn.width,sn.height=tn.height,Ze.actualBounds.freeze(),qc(Ze,!1),kh(Cn,sn)||dt===null||(dt.oh(),Ze.Pn(dt)),ai.free(Cn)}}for(Me=zi.alloc(),Ze=0;Ze<ht;Ze++)if(nt[Ze]){for(dt=nt[Ze].length,tn=a.Fb(Ze),at=tn.position+yt+E,tn.oa!==0&&(at+=tn.Io(Math.max(he,Gt))),sn=0;sn<dt;sn++)if(nt[Ze][sn]){Cn=a.Eb(sn),ot=Cn.position+Tt+z,Cn.oa!==0&&(ot+=Cn.Io(Math.max(Qe,$t)));for(var Kn=nt[Ze][sn],ar=Kn.length,Tr=0;Tr<ar;Tr++){var xr=Kn[Tr],Gi=xr.measuredBounds;Me.h(0,0);for(var Li=1;Li<xr.rowSpan&&!(Ze+Li>=a.rowCount);Li++){var jo=a.Fb(Ze+Li);jo.oa!==0&&(Me.height+=jo.total)}for(Li=1;Li<xr.columnSpan&&!(sn+Li>=a.columnCount);Li++)jo=a.Eb(sn+Li),jo.oa!==0&&(Me.width+=jo.total);var Bo=Cn.oa+Me.width,Ts=tn.oa+Me.height;Li=ot,jo=at;var pa=Bo,Fu=Ts,Du=ot,Nh=at,Lu=Bo,jf=Ts;ot+Bo>x.width&&(Lu=Math.max(x.width-ot,0)),at+Ts>x.height&&(jf=Math.max(x.height-at,0));var ru=xr.alignment;if(ru.Xb()){ru=a.defaultAlignment,ru.sb()||(ru=Yo);var SA=ru.x,Ih=ru.y,Uf=ru.offsetX;ru=ru.offsetY;var rd=Cn.alignment,Od=tn.alignment;rd.sb()&&(SA=rd.x,Uf=rd.offsetX),Od.sb()&&(Ih=Od.y,ru=Od.offsetY)}else SA=ru.x,Ih=ru.y,Uf=ru.offsetX,ru=ru.offsetY;(isNaN(SA)||isNaN(Ih))&&(Ih=SA=.5,ru=Uf=0),rd=Gi.width,Od=Gi.height;var Qc=xr.margin,Sc=Qc.left+Qc.right,fg=Qc.top+Qc.bottom,CA=aa(xr,tn,Cn,!1);!isNaN(xr.desiredSize.width)||CA!==Mi&&CA!==jr||(rd=Math.max(Bo-Sc,0)),!isNaN(xr.desiredSize.height)||CA!==Mi&&CA!==qr||(Od=Math.max(Ts-fg,0)),Bo=xr.maxSize,Ts=xr.minSize,rd=Math.min(Bo.width,rd),Od=Math.min(Bo.height,Od),rd=Math.max(Ts.width,rd),Od=Math.max(Ts.height,Od),Bo=Od+fg,Li+=pa*SA-(rd+Sc)*SA+Uf+Qc.left,jo+=Fu*Ih-Bo*Ih+ru+Qc.top,xr.visible&&(ia(Du,Nh,Lu,jf,Li,jo,Gi.width,Gi.height)?xr.arrange(Li,jo,rd,Od):xr.arrange(Li,jo,rd,Od,new ai(Du,Nh,Lu,jf)))}}}for(zi.free(Me),a=0;a<b;a++)x=y[a],z=x instanceof Jn?x:null,z!==null&&Ch(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function ji(){this.xa="Base"}In(ji,Pn),ji.prototype.measure=function(){},ji.prototype.arrange=function(){};function Ki(){this.xa="Base"}In(Ki,Pn),Ki.prototype.measure=function(){},Ki.prototype.arrange=function(){};function Dr(){this.xa="Base"}In(Dr,Pn),Dr.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&on("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,ht=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var dt=b.scale,yt=ot.width;ot=ot.height;var Tt=Math.max(y-ht,0),Gt=Math.max(x-at,0),$t=1;a.viewboxStretch===Mr?yt!==0&&ot!==0&&($t=Math.min(Tt/yt,Gt/ot)):yt!==0&&ot!==0&&($t=Math.max(Tt/yt,Gt/ot)),$t===0&&($t=1e-4),b.Ca*=$t,dt!==b.scale&&(Ql(b,!0),b.measure(1/0,1/0,z,nt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+ht,0),E.height=isFinite(x)?x:Math.max(ot.height+at,0)},Dr.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=Yo),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 eo(){this.xa="Base"}In(eo,Pn),eo.prototype.measure=function(){},eo.prototype.arrange=function(){},eo.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,ht=Math.ceil(ot/E),dt=Math.ceil(at/b),yt=a.gridOrigin,Tt=yt.x;yt=yt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var Gt=[],$t=a.O.s,he=$t.length,Qe=0;Qe<he;Qe++){var Me=$t[Qe],Ze=[];if(Gt.push(Ze),Me.visible){var tn=Me.interval;if(!(0>tn)){Me=zl(Me.figure);for(var sn=0;sn<he;sn++)if(sn!==Qe){var Cn=$t[sn];Cn.visible&&zl(Cn.figure)===Me&&(Cn=Cn.interval,Cn>tn&&Ze.push(Cn))}}}}for($t=a.O.s,he=$t.length,Qe=0;Qe<he;Qe++){var Kn=$t[Qe];if(Kn.visible&&(Ze=Kn.interval||1,Me=Math.abs(Ze),!(2>E*Me*x))){if(tn=Kn.segmentIndex,(!isFinite(tn)||isNaN(tn))&&(tn=0),0>tn&&(tn=Me-Math.min(-tn,Me)),tn=Math.round(tn%Me),Me=Kn.opacity,sn=1,Me!==1){if(Me===0)continue;sn=y.globalAlpha,y.globalAlpha=sn*Me}Cn=Gt[Qe];var ar=!1,Tr=Kn.strokeDashArray;if(Tr!==null&&(ar=!0,y.js(Tr,Kn.strokeDashOffset)),Kn.figure==="LineV"&&Kn.stroke!==null&&0<Kn.strokeWidth){for(y.lineWidth=Kn.strokeWidth,Ca(a,y,Kn.stroke,!1,!1,z,nt),y.beginPath(),Tr=Kn=Math.floor((Tt-E)/E);Tr<=Kn+ht;Tr++){var xr=Tr*E+Tt;0<=xr&&xr<=ot&&ro(Tr,Ze,tn,Cn)&&(y.moveTo(xr,0),y.lineTo(xr,at))}y.stroke(),y.Se()}else if(Kn.figure==="LineH"&&Kn.stroke!==null&&0<Kn.strokeWidth){for(y.lineWidth=Kn.strokeWidth,Ca(a,y,Kn.stroke,!1,!1,z,nt),y.beginPath(),Tr=Kn=Math.floor((yt-b)/b);Tr<=Kn+dt;Tr++)xr=Tr*b+yt,0<=xr&&xr<=at&&ro(Tr,Ze,tn,Cn)&&(y.moveTo(0,xr),y.lineTo(ot,xr));y.stroke(),y.Se()}else if(Kn.figure==="BarV"&&Kn.fill!==null)for(Ca(a,y,Kn.fill,!0,!1,z,nt),Kn=Kn.width,isNaN(Kn)&&(Kn=E),xr=Tr=Math.floor((Tt-E)/E);xr<=Tr+ht;xr++){var Gi=xr*E+Tt;0<=Gi+Kn&&Gi<=ot&&ro(xr,Ze,tn,Cn)&&y.fillRect(Gi,0,Kn,at)}else if(Kn.figure==="BarH"&&Kn.fill!==null)for(Ca(a,y,Kn.fill,!0,!1,z,nt),Kn=Kn.height,isNaN(Kn)&&(Kn=b),xr=Tr=Math.floor((yt-b)/b);xr<=Tr+dt;xr++)Gi=xr*b+yt,0<=Gi+Kn&&Gi<=at&&ro(xr,Ze,tn,Cn)&&y.fillRect(0,Gi,ot,Kn);ar&&y.fs(),Me!==1&&(y.globalAlpha=sn)}}y.restore(),y.Vc(!1)};function ro(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 ts(){this.xa="Base"}In(ts,Pn),ts.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof bs||a instanceof Wi){var nt=null,ot=null;if(a instanceof Wi&&(nt=a),a instanceof bs&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof Wi){var at=nt;if(z===0)ka(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ht=a instanceof bs?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var dt=at.points,yt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var Tt=y.height,Gt=a.j;if(Gt.length=0,ht!==null){Wo(a,ot,Tt,ht);var $t=ht.measuredBounds;x.ed($t),Gt.push($t)}$t=Ko.alloc();for(var he=Le.alloc(),Qe=Le.alloc(),Me=0;Me<z;Me++){var Ze=b[Me];if(Ze!==ht)if(Ze.isPanelMain&&Ze instanceof Go){Wo(a,ot,Tt,Ze);var tn=Ze.measuredBounds;x.ed(tn),Gt.push(tn)}else if(2>yt)Ze.measure(1/0,1/0,0,0),tn=Ze.measuredBounds,x.ed(tn),Gt.push(tn);else{var sn=Ze.segmentIndex,Cn=Ze.segmentFraction,Kn=Ze.alignmentFocus;Kn.Mc()&&(Kn=Yo);var ar=Ze.segmentOrientation,Tr=Ze.segmentOffset;if(isNaN(sn)){var xr=at.ua;tn=vi(),xr.Qu(Cn,tn);var Gi=Le.allocAt(tn[0],tn[1]);if(Gi.add(at.i(0)),xr.type===Yi.j?Gi.offset(-xr.startX,-xr.startY):(xr=xr.figures.first(),xr!==null&&Gi.offset(-xr.startX,-xr.startY)),xr=tn[2],ar!==Vh){var Li=at.computeAngle(Ze,ar,xr);Ze.Kb=Li}Li=Gi.x-y.x;var jo=Gi.y-y.y;Le.free(Gi),er(tn)}else if(sn<-yt||sn>=yt)tn=Le.alloc(),at.vg(),at.computeMidPoint(tn),xr=at.midAngle,ar!==Vh&&(Li=at.computeAngle(Ze,ar,xr),Ze.Kb=Li),Li=tn.x-y.x,jo=tn.y-y.y,Le.free(tn);else{if(Li=0,0<=sn?(jo=dt.M(sn),tn=sn<yt-1?dt.M(sn+1):jo):(Li=yt+sn,jo=dt.M(Li),tn=0<Li?dt.M(Li-1):jo),jo.Xa(tn)){0<=sn?(xr=0<sn?dt.M(sn-1):jo,Li=sn<yt-2?dt.M(sn+2):tn):(xr=Li<yt-1?dt.M(Li+1):jo,Li=1<Li?dt.M(Li-2):tn),Gi=xr.Bf(jo);var Bo=tn.Bf(Li);xr=Gi>Bo+10?0<=sn?xr.ab(jo):jo.ab(xr):Bo>Gi+10?0<=sn?tn.ab(Li):Li.ab(tn):0<=sn?xr.ab(Li):Li.ab(xr)}else xr=0<=sn?jo.ab(tn):tn.ab(jo);ar!==Vh&&(Li=at.computeAngle(Ze,ar,xr),Ze.Kb=Li),Li=jo.x+(tn.x-jo.x)*Cn-y.x,jo=jo.y+(tn.y-jo.y)*Cn-y.y}Ze.measure(1/0,1/0,0,0),tn=Ze.measuredBounds,Gi=Ze.naturalBounds;var Ts=0;Ze instanceof Go&&(Ts=Ze.strokeWidth),Bo=Gi.width+Ts;var pa=Gi.height+Ts;$t.reset(),$t.translate(-tn.x,-tn.y),$t.scale(Ze.scale,Ze.scale),$t.rotate(ar===Vh?Ze.angle:xr,Bo/2,pa/2),ar!==w0&&ar!==S0||$t.rotate(90,Bo/2,pa/2),ar!==x0&&ar!==C0||$t.rotate(-90,Bo/2,pa/2),ar===ym&&(45<xr&&135>xr||225<xr&&315>xr)&&$t.rotate(-xr,Bo/2,pa/2),Gi=new ai(0,0,Bo,pa),he.xi(Gi,Kn),$t.Ga(he),Kn=-he.x+Ts/2*Ze.scale,Ze=-he.y+Ts/2*Ze.scale,Qe.assign(Tr),Ts=isNaN(Tr.x);var Fu=isNaN(Tr.y);if(Ts||Fu){Bo=Bo/2+3,pa=pa/2+3;var Du=45<=xr&&135>=xr,Nh=225<=xr&&315>=xr;ar===Vh&&(Du||Nh)?(Qe.x=Fu?Bo:Tr.y,Qe.y=Ts?pa:Tr.x,Du?0<=sn||isNaN(sn)&&.5>Cn||!Ts||(Qe.y=-pa):Nh&&((0<=sn||isNaN(sn)&&.5>Cn)&&Ts&&(Qe.y=-pa),Fu&&(Qe.x=-Bo))):(Ts&&(Qe.x=0<=sn||isNaN(sn)&&.5>Cn?Bo:-Bo),Fu&&(Qe.y=-pa),Qe.rotate(xr))}else Qe.rotate(xr);Li+=Qe.x,jo+=Qe.y,Gi.set(tn),Gi.h(Li+Kn,jo+Ze,tn.width,tn.height),Gt.push(Gi),x.ed(Gi)}}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),ka(E,x.width||0,x.height||0),Ko.free($t),Le.free(he),Le.free(Qe)}}}},ts.prototype.arrange=function(a,y){var x=y.length;if(a instanceof bs||a instanceof Wi){var b=a,E=null;a instanceof bs&&(E=a,b=E.adornedPart);var z=a instanceof bs?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 ht=y[at];if(ht!==z&&ot<nt.length){var dt=nt[ot];ot++,ht.arrange(dt.x-a.jg.x,dt.y-a.jg.y,dt.width,dt.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Wi)for(z=a.labelNodes;z.next();){var yt=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var Tt=nt.alignmentFocus;if(ht=nt.segmentOrientation,dt=nt.segmentOffset,isNaN(ot)){var Gt=yt.ua,$t=vi();Gt.Qu(at,$t);var he=Le.allocAt($t[0],$t[1]);he.add(yt.i(0)),Gt.type===Yi.j||(Gt=Gt.figures.first()),he.offset(-Gt.startX,-Gt.startY),Gt=$t[2],ht!==Vh&&(yt=yt.computeAngle(nt,ht,Gt),nt.angle=yt),yt=he.x;var Qe=he.y;Le.free(he),er($t)}else if(ot<-x||ot>=x)$t=Le.alloc(),Gt=yt,Qe=$t,Gt.vg(),Gt.computeMidPoint(Qe),Gt=yt.midAngle,ht!==Vh&&(yt=yt.computeAngle(nt,ht,Gt),nt.angle=yt),yt=$t.x,Qe=$t.y,Le.free($t);else{if(he=0,0<=ot?($t=y.s[ot],Qe=ot<x-1?y.s[ot+1]:$t):(he=x+ot,$t=y.s[he],Qe=0<he?y.s[he-1]:$t),$t.Xa(Qe)){0<=ot?(Gt=0<ot?y.s[ot-1]:$t,he=ot<x-2?y.s[ot+2]:Qe):(Gt=he<x-1?y.s[he+1]:$t,he=1<he?y.s[he-2]:Qe);var Me=Gt.Bf($t),Ze=Qe.Bf(he);Gt=Me>Ze+10?0<=ot?Gt.ab($t):$t.ab(Gt):Ze>Me+10?0<=ot?Qe.ab(he):he.ab(Qe):0<=ot?Gt.ab(he):he.ab(Gt)}else Gt=0<=ot?$t.ab(Qe):Qe.ab($t);ht!==Vh&&(yt=yt.computeAngle(nt,ht,Gt),nt.angle=yt),yt=$t.x+(Qe.x-$t.x)*at,Qe=$t.y+(Qe.y-$t.y)*at}if(Tt.ys())nt.location=new Le(yt,Qe);else{Tt.Mc()&&(Tt=Yo),$t=Ko.alloc(),$t.reset(),$t.scale(nt.scale,nt.scale),$t.rotate(nt.angle,0,0);var tn=nt.naturalBounds;he=ai.allocAt(0,0,tn.width,tn.height),Me=Le.alloc(),Me.xi(he,Tt),$t.Ga(Me),Tt=-Me.x,Ze=-Me.y;var sn=tn.width,Cn=tn.height;tn=Le.alloc(),tn.assign(dt);var Kn=isNaN(dt.x),ar=isNaN(dt.y);if(Kn||ar){sn=sn/2+3,Cn=Cn/2+3;var Tr=45<=Gt&&135>=Gt,xr=225<=Gt&&315>=Gt;ht===Vh&&(Tr||xr)?(tn.x=ar?sn:dt.y,tn.y=Kn?Cn:dt.x,Tr?0<=ot||isNaN(ot)&&.5>at||!Kn||(tn.y=-Cn):xr&&((0<=ot||isNaN(ot)&&.5>at)&&Kn&&(tn.y=-Cn),ar&&(tn.x=-sn))):(Kn&&(tn.x=0<=ot||isNaN(ot)&&.5>at?sn:-sn),ar&&(tn.y=-Cn),tn.rotate(Gt))}else tn.rotate(Gt);yt+=tn.x,Qe+=tn.y,$t.pp(he),Tt+=he.x,Ze+=he.y,ot=Le.allocAt(yt+Tt,Qe+Ze),nt.move(ot),Le.free(ot),Le.free(tn),Le.free(Me),ai.free(he),Ko.free($t)}}E!==null?E.Ul(!1):b.Ul(!1),b=Ry(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Le.free(b)}};function Wo(a,y,x,b){if(xh(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof bs&&a.type===Jn.Link&&a.adornedObject instanceof Go&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Wi&&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 bs&&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),Ql(b,!1)}}function Ks(){this.xa="Base"}In(Ks,Pn),Ks.prototype.measure=function(a,y,x,b,E,z,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ht=at.right+at.left,dt=at.top+at.bottom;ot.measure(y,x,z,nt);var yt=ot.measuredBounds,Tt=new ai(-at.left,-at.top,Math.max(yt.width+ht,0),Math.max(yt.height+dt,0));a.graduatedBounds.push(Tt),E.assign(Tt);for(var Gt=ot.geometry,$t=ot.strokeWidth,he=Gt.flattenedSegments,Qe=Gt.flattenedLengths,Me=Gt.flattenedTotalLength,Ze=he.length,tn=0,sn=0,Cn=vi(),Kn=0;Kn<Ze;Kn++){var ar=he[Kn],Tr=[];sn=tn=0;for(var xr=ar.length,Gi=0;Gi<xr;Gi+=2){var Li=ar[Gi],jo=ar[Gi+1];if(Gi!==0){var Bo=180*Math.atan2(jo-sn,Li-tn)/Math.PI;0>Bo&&(Bo+=360),Tr.push(Bo)}tn=Li,sn=jo}Cn.push(Tr)}if(a.graduatedIntervals===null){for(var Ts=[],pa=a.O.s,Fu=pa.length,Du=0;Du<Fu;Du++){var Nh=pa[Du],Lu=[];if(Ts.push(Lu),Nh.visible){var jf=Nh.interval;if(!(0>jf)){for(var ru=0;ru<Fu;ru++)if(ru!==Du){var SA=pa[ru];if(SA.visible&&Nh.constructor===SA.constructor){var Ih=SA.interval;Ih>jf&&Lu.push(Ih)}}}}}a.graduatedIntervals=Ts}var Uf=a.graduatedIntervals,rd=a.O.s,Od=rd.length,Qc=0,Sc=0,fg=Me;a.graduatedMarks=[];for(var CA,t0=0;t0<Od;t0++){var zc=rd[t0];if(CA=[],zc.visible&&zc!==ot){var Th=Math.abs(zc.interval),V0=a.graduatedTickUnit;if(!(2>V0*Th*Me/a.graduatedRange&&zc.graduatedSkip===null)){var dp=Qe[0][0],DA=0,Cc=0;Sc=Me*zc.graduatedStart-1e-4,fg=Me*zc.graduatedEnd+1e-4;var jg=V0*Th,Kc=a.graduatedTickBase;if(Kc<a.graduatedMin){var gg=(a.graduatedMin-Kc)/jg;gg=gg%1===0?gg:Math.floor(gg+1),Kc+=gg*jg}else Kc>a.graduatedMin+jg&&(Kc-=Math.floor((Kc-a.graduatedMin)/jg)*jg);for(var av=Uf[t0],Z0=Kc,Py=1e-6*a.graduatedMax,of=1;Kc<=a.graduatedMax+Py;of++){t:{for(var Af=av.length,Ap=0;Ap<Af;Ap++){var pg=(Kc-a.graduatedTickBase)%(av[Ap]*a.graduatedTickUnit),e0=1e-6*a.graduatedTickUnit;if(pg<e0&&pg>-e0){var mg=!1;break t}}mg=!0}if(mg&&(Kc>a.graduatedMax&&(Kc=a.graduatedMax),zc.graduatedSkip===null||zc instanceof ha&&!zc.graduatedSkip(Kc,zc)||zc instanceof Go&&!zc.graduatedSkip(Kc,zc))&&(Qc=(Kc-a.graduatedMin)*Me/a.graduatedRange,Qc>Me&&(Qc=Me),Sc<=Qc&&Qc<=fg)){for(var sf=Cn[DA][Cc],Rf=Qe[DA][Cc];DA<Qe.length;){for(;Qc>dp&&Cc<Qe[DA].length-1;)Cc++,sf=Cn[DA][Cc],Rf=Qe[DA][Cc],dp+=Rf;if(Qc<=dp)break;DA++,Cc=0,sf=Cn[DA][Cc],Rf=Qe[DA][Cc],dp+=Rf}var Bc=he[DA],jA=Bc[2*Cc],lv=Bc[2*Cc+1],ff=(Qc-(dp-Rf))/Rf,n0=new Le(jA+(Bc[2*Cc+2]-jA)*ff+$t/2-Gt.bounds.x,lv+(Bc[2*Cc+3]-lv)*ff+$t/2-Gt.bounds.y);n0.scale(ot.scale,ot.scale);t:{var BA=sf,Ug=Cn[DA];if(!(.5005>ff&&.4995<ff)){var UA=BA;if(.5>ff?0<Cc?UA=Ug[Cc-1]:bn.$(Bc[0],Bc[Bc.length-2])&&bn.$(Bc[1],Bc[Bc.length-1])&&(UA=Ug[Ug.length-1]):.5<ff&&(Cc+1<Ug.length?UA=Ug[Cc+1]:bn.$(Bc[0],Bc[Bc.length-2])&&bn.$(Bc[1],Bc[Bc.length-1])&&(UA=Ug[0])),BA!==UA){var fp=Math.abs(BA-UA);if(180<fp&&(BA<UA?BA+=360:UA+=360,fp=Math.abs(BA-UA)),5e-4>ff||.9995<ff){sf=(BA+UA)/2%360;break t}if(10>fp){var i0=1-Math.abs(.5-ff);sf=(BA*i0+UA*(1-i0))%360;break t}}}sf=BA}if(zc instanceof ha){var rA="";zc.graduatedFunction!==null?(rA=zc.graduatedFunction(Kc,zc),rA=rA!=null?rA.toString():""):rA=(+Kc.toFixed(2)).toString(),rA!==""&&CA.push({$l:n0,angle:sf,text:rA})}else CA.push({$l:n0,angle:sf})}Kc=Z0+of*jg}}}a.graduatedMarks.push(CA)}er(Cn);var $u=a.graduatedMarks;if($u!==null)for(var Y0=b.length,Jh=0;Jh<Y0;Jh++){var ou=b[Jh],qh=$u[Jh];if(ou.visible&&ou!==ot&&qh.length!==0){if(ou instanceof Go){var gf=a,_f=E,Rg=ou.alignmentFocus;Rg.Mc()&&(Rg=Bl);var by=ou.angle;ou.Kb=0,ou.measure(1/0,1/0,0,0),ou.Kb=by;var uv=ou.measuredBounds,r0=uv.width,_g=uv.height,gp=ai.allocAt(0,0,r0,_g),Pc=Le.alloc();Pc.xi(gp,Rg),ai.free(gp);for(var pf=-Pc.x,PA=-Pc.y,wd=new ai,vg=qh.length,o0=0;o0<vg;o0++)for(var yg=qh[o0],hv=yg.$l.x,s0=yg.$l.y,Gl=yg.angle,oA=0;4>oA;oA++){switch(oA){case 0:Pc.h(pf,PA);break;case 1:Pc.h(pf+r0,PA);break;case 2:Pc.h(pf,PA+_g);break;case 3:Pc.h(pf+r0,PA+_g)}Pc.rotate(Gl+ou.angle),Pc.offset(hv,s0),o0===0&&oA===0?wd.h(Pc.x,Pc.y,0,0):wd.Ye(Pc),Pc.offset(-hv,-s0),Pc.rotate(-Gl-ou.angle)}Le.free(Pc),gf.graduatedBounds!==null&&gf.graduatedBounds.push(wd),Is(_f,wd.x,wd.y,wd.width,wd.height)}else if(ou instanceof ha){var Dd=a,cv=E;Dd.temporaryTextBlock===null&&(Dd.temporaryTextBlock=new ha);var Gc=Dd.temporaryTextBlock;c0(Gc,ou);var Hf=ou.alignmentFocus;Hf.Mc()&&(Hf=Bl);for(var jd=ou.segmentOrientation,a0=ou.segmentOffset,wg=new ai,$0=0,l0=0,RA=0,Hg=0,xg=0,u0=qh.length,Qf=0;Qf<u0;Qf++){var af=qh[Qf];$0=af.$l.x,l0=af.$l.y,RA=af.angle,xg=Hg=ou.angle,jd!==Vh&&(xg=jd===y0||jd===vm?RA+ou.angle:RA,Hg=Wi.computeAngle(jd,xg)),Gc.Kb=Hg,Gc.text=af.text||"",Gc.measure(1/0,1/0,0,0);var zf=Gc.measuredBounds,mf=Gc.naturalBounds,Kf=mf.width,Qg=mf.height,bA=Ko.alloc();bA.reset(),bA.translate(-zf.x,-zf.y),bA.scale(Gc.scale,Gc.scale),bA.rotate(xg,Kf/2,Qg/2),jd!==w0&&jd!==S0||bA.rotate(90,Kf/2,Qg/2),jd!==x0&&jd!==C0||bA.rotate(-90,Kf/2,Qg/2),jd===ym&&(45<RA&&135>RA||225<RA&&315>RA)&&bA.rotate(-RA,Kf/2,Qg/2);var pp=ai.allocAt(0,0,Kf,Qg),Gf=Le.alloc();Gf.xi(pp,Hf),bA.Ga(Gf);var mp=-Gf.x,Ey=-Gf.y,vf=Le.alloc();vf.assign(a0),isNaN(vf.x)&&(vf.x=Kf/2+3),isNaN(vf.y)&&(vf.y=-(Qg/2+3)),vf.rotate(RA),$0+=vf.x+mp,l0+=vf.y+Ey;var zg=new ai($0,l0,zf.width,zf.height),X0=new ai(zf.x,zf.y,zf.width,zf.height),Fy=new ai(mf.x,mf.y,mf.width,mf.height);af.Sz=Hg,af.lineCount=Gc.lineCount,af.lines=[Gc.Cb,Gc.Ih,Gc.df,Gc.Le,Gc.Qc,Gc.Qb,Gc.ze],af.actualBounds=zg,af.measuredBounds=X0,af.naturalBounds=Fy,Qf===0?wg.assign(zg):wg.ed(zg),Le.free(vf),Le.free(Gf),ai.free(pp),Ko.free(bA)}Dd.graduatedBounds!==null&&Dd.graduatedBounds.push(wg),Is(cv,wg.x,wg.y,wg.width,wg.height)}Ql(ou,!1)}}},Ks.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,ht=0;ht<at;ht++){var dt=y[ht];ot=E[ht],dt.visible&&dt!==b&&ot.length!==0&&(ot=z[nt],nt++,dt.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},Ks.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 Sh,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,ht=a.graduatedMarks,dt=at.length,yt=0;yt<dt;yt++){var Tt=at[yt],Gt=ht[yt],$t=Gt.length;if(Tt.visible&&Tt!==z&&Gt.length!==0){if(Tt instanceof Go){if(!(2>a.graduatedTickUnit*Tt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&Tt.graduatedSkip===null)){var he=Tt.measuredBounds,Qe=Tt.strokeWidth*Tt.scale,Me=Tt.alignmentFocus;Me.Mc()&&(Me=Bl);for(var Ze=0;Ze<$t;Ze++){var tn=Gt[Ze].$l,sn=Gt[Ze].angle,Cn=Me,Kn=Tt.Ab;Kn.reset(),Kn.translate(tn.x+ot.x,tn.y+ot.y),Kn.rotate(sn+Tt.angle,0,0),Kn.translate(-he.width*Cn.x+Cn.offsetX+Qe/2,-he.height*Cn.y+Cn.offsetY+Qe/2),Kn.scale(Tt.scale,Tt.scale),Fh(Tt,!1),Tt.wh.set(Tt.Ab),Tt.Kk=Tt.scale,eh(Tt,!1),Tt.gc(y,x),E&&(a.svg.appendChild(Tt.svg),Tt.svg=null),Tt.Ab.reset()}}}else if(Tt instanceof ha)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new ha),he=a.temporaryTextBlock,c0(he,Tt),Qe=0;Qe<$t;Qe++)Me=Gt[Qe],Me.actualBounds&&Me.measuredBounds&&Me.naturalBounds&&(he.ec=Me.text||"",he.Kb=Me.Sz||0,he.Gc=Me.lineCount||0,Ze=Me.lines,Ze!==void 0&&(he.Cb=Ze[0],he.Ih=Ze[1],he.df=Ze[2],he.Le=Ze[3],he.Qc=Ze[4],he.Qb=Ze[5],he.ze=Ze[6]),Me.naturalBounds&&(he.dc=Me.naturalBounds),Me.actualBounds&&(Ze=Me.actualBounds,he.arrange(Ze.x,Ze.y,Ze.width,Ze.height)),Ze=Me.actualBounds,he.arrange(Ze.x,Ze.y,Ze.width,Ze.height),tn=Me.measuredBounds,Me=Me.naturalBounds,sn=he.Ab,sn.reset(),sn.translate(Ze.x+ot.x,Ze.y+ot.y),sn.translate(-tn.x,-tn.y),he.no(sn,Me.x,Me.y,Me.width,Me.height),Fh(he,!1),he.wh.set(he.Ab),he.Kk=he.scale,eh(he,!1),he.Ng=Tt.part,he.Me=Tt.panel,he.gc(y,x),he.Me=null,he.Ng=null,E&&(a.svg.appendChild(he.svg),he.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Jn(a,y){if(xn.call(this),this.na=null,a===void 0)this.na=Jn.Position;else if(typeof a=="string"){var x=Gh.I(a);x!==null&&(this.na=x)}else a instanceof Pn?this.na=a:a&&(this.na=Jn.Position,y=a);this.na===null&&on("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Jn.Grid?1048576:0),this.O=new Si,this.yb=Ao,this.Tm=Bs,this.Uf=Co,this.$g=null,this.$e="",this.jg=new ai(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Mr,this.jn=Qo,this.kn=qo,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}In(Jn,xn),Jn.prototype.cloneProtected=function(a){xn.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},Jn.prototype.Af=function(a){xn.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},Jn.prototype.copy=function(){var a=xn.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 hr&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(vl,"elements",a,null,E,null,nt)}}return a}return null},Wt=Jn.prototype,Wt.toString=function(){return"Panel("+this.type.name+")#"+fs(this)},Wt.Pn=function(a){xn.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Wt.hh=function(a,y){if(this.na===Jn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Jn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Jn.Table)if(a.yc(),a instanceof Sh){var x=a.yd;a.yd=Pg(a,"gojs-ts"),gl(this,a),a.nh.pop(),a.yd=x}else gl(this,a);(x=this.isClipping&&this.na===Jn.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 gl(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&rl(a,y,!0,x,!0),b!==null&&rl(a,y,!1,b,!0),x!==null&&Tl(a,y,!0,x),b!==null&&Tl(a,y,!1,b),x!==null&&rl(a,y,!0,x,!1),b!==null&&rl(a,y,!1,b,!1)}function Tl(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<E;at++){var ht=b[at];if(ht!==void 0&&ht.actual!==0)if(ot)ot=!1;else{if(x){if(ht.position>nt.height)continue}else if(ht.position>nt.width)continue;var dt=ht.separatorStrokeWidth;isNaN(dt)&&(dt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var yt=ht.separatorStroke;if(yt===null&&(yt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),dt!==0&&yt!==null){Ca(a,y,yt,!1,!1,nt,z),yt=!1;var Tt=ht.separatorDashArray;Tt===null&&(Tt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Tt!==null&&(yt=!0,y.js(Tt,0)),y.beginPath(),Tt=ht.position+dt,x?Tt>nt.height&&(dt-=Tt-nt.height):Tt>nt.width&&(dt-=Tt-nt.width),ht=ht.position+dt/2,y.lineWidth=dt,dt=a.yb,x?(ht+=dt.top,Tt=nt.width-dt.right,y.moveTo(dt.left,ht),y.lineTo(Tt,ht)):(ht+=dt.left,Tt=nt.height-dt.bottom,y.moveTo(ht,dt.top),y.lineTo(ht,Tt)),y.stroke(),y.Se(),yt&&y.fs()}}}}function rl(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=Qa(a,!0),ht=Qa(a,!1),dt=0;dt<z;dt++){var yt=b[dt];if(yt!==void 0&&yt.background!==null&&yt.coversSeparators!==E&&yt.actual!==0){var Tt=x?nt.height:nt.width;if(!(yt.position>Tt)){var Gt=yt.Wc(),$t=yt.separatorStrokeWidth;isNaN($t)&&($t=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var he=yt.separatorStroke;he===null&&(he=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(he===null||yt.index===(x?at:ht))&&($t=0),Gt-=$t,$t=yt.position+$t,Gt+=yt.actual,$t+Gt>Tt&&(Gt=Tt-$t),0>=Gt||(Tt=a.yb,Ca(a,y,yt.background,!0,!1,ot,nt),x?y.fillRect(Tt.left,$t+Tt.top,nt.width-(Tt.left+Tt.right),Gt):y.fillRect($t+Tt.left,Tt.top,Gt,nt.height-(Tt.top+Tt.bottom)))}}}}function Qa(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 zl(a){return a==="LineV"||a==="BarV"}Wt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Wt.kk=function(a,y,x){if(!xn.prototype.kk.call(this,a,y,x))return!1;if(this.type===Jn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gl(this,a),a.yd=null;else if(this.na===Jn.Grid||this.na===Jn.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},Wt.nk=function(){return!0},Wt.$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 xn.prototype.$o.call(this,a,y,x,b)},Wt.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,ht=-nt.m12*ot,dt=-nt.m21*ot,yt=nt.m11*ot,Tt=ot*(nt.m21*nt.dy-nt.m22*nt.dx),Gt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,bn.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*dt+Tt,ot=a*ht+y*yt+Gt,a=x*at+b*dt+Tt,at=x*ht+b*yt+Gt,E.h(0,0),x=this.naturalBounds,z=bn.Ff(0,0,x.width,x.height,z,ot,a,at,E),E.transform(nt),z;z||(at=1,dt=ht=0,yt=1,Gt=Tt=0),ot=a*at+y*dt+Tt,a=a*ht+y*yt+Gt,at=x*at+b*dt+Tt,x=x*ht+b*yt+Gt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ht=!1,yt=this.O.s,Gt=yt.length,dt=Le.alloc(),Tt=null,y=1/0;var $t=null,he=this.isClipping&&this.na===Jn.Spot;he&&($t=Le.alloc(),Tt=this.Pb(),(ht=Tt.Sj(ot,a,at,x,$t))&&(y=(ot-$t.x)*(ot-$t.x)+(a-$t.y)*(a-$t.y)));for(var Qe=0;Qe<Gt;Qe++){var Me=yt[Qe];Me.visible&&Me!==Tt&&Me.Sj(ot,a,at,x,dt)&&(ht=!0,Me=(ot-dt.x)*(ot-dt.x)+(a-dt.y)*(a-dt.y),Me<b&&(b=Me,E.set(dt)))}return he&&(y>b&&E.set($t),Le.free($t)),Le.free(dt),z&&E.transform(nt),ht},Wt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();xn.prototype.Gj.call(this)},Wt.v=function(a){if(!xh(this)){xn.prototype.v.call(this,a),a=null,(this.na===Jn.Auto||this.na===Jn.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=Zu(E,!1);(E instanceof Wh||E instanceof Jn||E instanceof ha||z!==bi)&&E.v(!0)}}}},Wt.Uj=function(){if(!xh(this)){Ql(this,!0),qc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Wt.Uk=function(){if(!(this.l&2048)){Fh(this,!0),eh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Wt.Wu=function(){eh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Wt.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 ht=this.O.s;ht.length!==0&&this.na.measure(this,a,y,ht,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),ka(E,a,at),ka(this.naturalBounds,a,at),this.Ge(0,0,a,at)},Wt.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 Ha(a){return a.part!==null?a.part.locationObject:null}Wt.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=Zu(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=bi),a){case bi:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Mi:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case jr:this.v(!0),this.measure(x+ot,z+nt,0,0);break;case qr:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},Wt.gh=function(a){var y=this.naturalBounds,x=Ha(this);if(ia(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Le.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Lo(E.set(a),z.transform),z.ca(E)))return Le.free(E),!0}return Le.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Wt.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},Wt.qm=function(a,y){if(y(this,a),a instanceof Jn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function ua(a,y){Qu(a,a,y)}function Qu(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 Jn&&Qu(a,z,x)}}function Id(a,y){Lh(a,a,y)}function Lh(a,y,x){if(x(y),y instanceof Jn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)Lh(a,y[E],x)}}Wt.Nl=function(a){return gd(this,this,a)};function gd(a,y,x){if(x(y))return y;if(y instanceof Jn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=gd(a,y[E],x);if(z!==null)return z}}return null}Wt.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=YA(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Jn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function bu(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Jn?x=Math.max(x,bu(E)):E instanceof Go&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Wt.se=function(){return!(this.type===Jn.TableRow||this.type===Jn.TableColumn)};function Ch(a){return a.type===Jn.TableRow||a.type===Jn.TableColumn}Wt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Hu(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:Lo(Le.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ht=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ht=at/2),ia(-(ht*E),-(ht*E),b.width+at*E,b.height+at*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var dt=E.length;if(ot=Le.alloc(),ht=(at=this.isClipping&&this.na===Jn.Spot)?this.Pb():null,at&&(ht.se()?Lo(ot.set(a),ht.transform):ot.set(a),!ht.ca(ot)))return Le.free(ot),z||Le.free(nt),null;for(var yt=Ha(this);dt--;){var Tt=E[dt];if((Tt.visible||Tt===yt)&&(Tt.se()?Lo(ot.set(a),Tt.transform):ot.set(a),!at||Tt!==ht)){var Gt=null;if(Tt instanceof Jn?Gt=Tt.ic(ot,y,x):Tt.pickable===!0&&Tt.ca(ot)&&(Gt=Tt),Gt!==null&&(y!==null&&(Gt=y(Gt)),Gt!==null&&(x===null||x(Gt))))return Le.free(ot),z||Le.free(nt),Gt}}Le.free(ot)}return this.background===null&&this.areaBackground===null?(z||Le.free(nt),null):(a=ia(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||Le.free(nt),a)}return z||Le.free(nt),null},Wt.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:Lo(Le.allocAt(a.x,a.y),this.transform);if(E=ia(0,0,E.width,E.height,nt.x,nt.y),Ch(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ht=Le.alloc(),dt=Ha(this);at--;){var yt=ot[at];if(yt.visible||yt===dt){yt.se()?Lo(ht.set(a),yt.transform):ht.set(a);var Tt=yt;yt=yt instanceof Jn?yt:null,(yt!==null?yt.ji(ht,y,x,b):Tt.ca(ht))&&Tt.pickable!==!1&&(y!==null&&(Tt=y(Tt)),Tt===null||x!==null&&!x(Tt)||b.add(Tt))}}Le.free(ht)}return z||Le.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||Le.free(nt),!1},Wt.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=Ko.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return pd(this,y,x,E),z===void 0&&Ko.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=Ha(this),at=this.O.s,ht=at.length;ht--;){var dt=at[ht];if(dt.visible||dt===ot){var yt=dt.actualBounds,Tt=this.naturalBounds;yt.x>Tt.width||yt.y>Tt.height||0>yt.x+yt.width||0>yt.y+yt.height||(yt=dt,dt=dt instanceof Jn?dt:null,Tt=Ko.alloc(),Tt.set(nt),(dt!==null?dt.Cf(a,y,x,b,E,Tt):_l(yt,a,b,Tt))&&(y!==null&&(yt=y(yt)),yt===null||x!==null&&!x(yt)||E.add(yt)),Ko.free(Tt))}}return z===void 0&&Ko.free(nt),b}return z===void 0&&Ko.free(nt),!1};function pd(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 Jn&&pd(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}Wt.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:Lo(Le.allocAt(a.x,a.y),this.transform),ht=ot?y:Lo(Le.allocAt(y.x,y.y),this.transform),dt=at.Bf(ht),yt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||os(at.x,at.y,0,0,0,nt.height)<=dt||os(at.x,at.y,0,nt.height,nt.width,nt.height)<=dt||os(at.x,at.y,nt.width,nt.height,nt.width,0)<=dt||os(at.x,at.y,nt.width,0,0,0)<=dt;if(nt=at.zd(0,0)<=dt&&at.zd(0,nt.height)<=dt&&at.zd(nt.width,0)<=dt&&at.zd(nt.width,nt.height)<=dt,ot||(Le.free(at),Le.free(ht)),yt){if(!this.isAtomic){at=Le.alloc(),ht=Le.alloc(),dt=Ha(this);for(var Tt=this.O.s,Gt=Tt.length;Gt--;){var $t=Tt[Gt];if($t.visible||$t===dt){var he=$t.actualBounds,Qe=this.naturalBounds;(!ot||!(he.x>Qe.width||he.y>Qe.height||0>he.x+he.width||0>he.y+he.height))&&($t.se()?(he=$t.transform,Lo(at.set(a),he),Lo(ht.set(y),he)):(at.set(a),ht.set(y)),he=$t,$t=$t instanceof Jn?$t:null,($t!==null?$t.og(at,ht,x,b,E,z):he.tx(at,ht,E))&&(x!==null&&(he=x(he)),he===null||b!==null&&!b(he)||z.add(he)))}}Le.free(at),Le.free(ht)}return E?yt:nt}return!1};function Kh(a){var y=null;return a instanceof Go&&(y=a.spot1,y===Bs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Oa),y}function ac(a){var y=null;return a instanceof Go&&(y=a.spot2,y===Bs&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ll),y}Wt.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},Wt.M=function(a){return this.O.M(a)},Wt.Gb=function(a,y){y instanceof Yr&&on("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&on("Cannot make a Panel contain itself: "+this.toString()),on("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&on("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!==Jn.Grid||y instanceof Go||on("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Jn.Graduated||y instanceof Go||y instanceof ha||on("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 Cr),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 on("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),xh(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Jn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Xf(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof hr&&(x.Te=!0),x.Te&&x instanceof hr&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Zl,"elements",this,y,null,b,null),x.cb(vl,"elements",this,null,y,null,a)))};function Dc(a,y){a.l=y?a.l|16777216:a.l&-16777217}Wt.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)},Wt.mb=function(a){0<=a&&this.pc(a,!0)},Wt.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),Ql(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 hr&&(b instanceof Jn?b.qm(b,function(nt,ot){Ev(z,ot,y)}):Ev(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Zl,"elements",this,b,null,a,null))},Wt.Fb=function(a){0>a&&Vi(a,">= 0",Jn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Kl;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(vl,"rowdefs",this,null,x,null,a)}return y[a]},Wt.oA=function(a){if(0>a&&Vi(a,">= 0",Jn,"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(Zl,"rowdefs",this,x,null,a,null),this.v()}}};function Jd(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Kl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Wt.Eb=function(a){0>a&&Vi(a,">= 0",Jn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Kl;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(vl,"coldefs",this,null,x,null,a)}return y[a]},Wt.jA=function(a){if(0>a&&Vi(a,">= 0",Jn,"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(Zl,"coldefs",this,x,null,a,null),this.v()}}};function TA(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Kl?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Wt.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Yg(y,a),this},Wt.Hy=function(a,y){return(a=this.Fb(a))&&Yg(a,new Kl(y)),this},Wt.By=function(a,y){return(a=this.Eb(a))&&Yg(a,new Kl(y)),this},Wt.nz=function(a){if(0>a||this.type!==Jn.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},Wt.fz=function(a){if(0>a||this.type!==Jn.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},Wt.Fz=function(a,y){if(y===void 0&&(y=new Le(NaN,NaN)),this.type!==Jn.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)},Wt.Gz=function(a){if(this.type!==Jn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function lc(a){return a=a.allBindings,a!==null&&a._isFrozen}function lh(a){var y=a.allBindings;if(y===null)a.data!==null&&on("Template cannot have .data be non-null: "+a),a.allBindings=y=new Si;else if(y._isFrozen)return;var x=new Si;Dc(a,!1),a.qm(a,function(ht,dt){dt.th();var yt=dt.localBindings;if(yt!==null)for(Xd(dt,!1),yt=yt.iterator;yt.next();){var Tt=yt.value;Tt.mode===N0&&Xd(dt,!0);var Gt=Tt.sourceName;Gt!==null&&(Gt==="/"&&Dc(ht,!0),Gt=T1(Tt,ht,dt),Gt!==null&&(x.add(Gt),Gt.srcBindings===null&&(Gt.srcBindings=new Si),Gt.srcBindings.add(Tt))),y.add(Tt)}if(dt instanceof Jn&&dt.type===Jn.Table){if(0<dt.rowCount){for(ht=dt.rowDefs,yt=ht.length,Tt=0;Tt<yt;Tt++)if(Gt=ht[Tt],Gt!==void 0&&Gt.be!==null)for(var $t=Gt.be.iterator;$t.next();){var he=$t.value;he.xd=Gt,he.to=2,he.wl=Gt.index,y.add(he)}}if(0<dt.columnCount){for(dt=dt.colDefs,ht=dt.length,yt=0;yt<ht;yt++)if(Tt=dt[yt],Tt!==void 0&&Tt.be!==null)for(Gt=Tt.be.iterator;Gt.next();)$t=Gt.value,$t.xd=Tt,$t.to=1,$t.wl=Tt.index,y.add($t)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Xd(E,!0);for(var z=E.srcBindings.iterator;z.next();){var nt=z.value;E.localBindings===null&&(E.localBindings=new Si),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 Jn&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):kr('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof Kl?(nt=fs(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof xn?(nt=fs(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):on("Unknown type of binding target: "+z)}y.freeze(),a instanceof Yr&&a.Zc()&&a.Va()}Wt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Id(y,function(x){x instanceof Jn&&(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&&lh(y),y},Wt.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 Jn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Wt.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function $f(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 Jn&&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 Jn)||z.data!==y[nt])return!0;E++,nt++}return!1}function YA(a){if(a.type===Jn.Spot||a.type===Jn.Auto)return Math.min(a.O.length,1);if(a.type===Jn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Go&&b.isPanelMain))break}return x}return a.type===Jn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Jn&&Ch(a))?1:0}Wt.mv=function(){for(var a=YA(this);this.O.length>a;)this.pc(this.O.length-1,!1);uf(this,this.itemArray)};function uf(a,y){var x=YA(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++)nh(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 Jn){if(nt.data!==z){var ot=Cp(a,nt.data),at=Cp(a,z),ht=at!==ot;ht||(ot=Bp(a,ot),ht=Bp(a,at)!==ot),ht?(a.pc(b,!1),nh(a,z,E,!1)):nt.data=z}}else nh(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,Vg(a,x,0),xh(a)||a.v(),a.graduatedIntervals=null,a.If()||Xf(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof hr&&(y.Te=!0),y.Te&&y instanceof hr&&(y.wc=null))}}function nh(a,y,x,b){if(!(y==null||0>x)){var E=Cp(a,y);if(E=Bp(a,E),E!==null){if(lh(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Dc(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new Cr),a.ge.add(y,E)),z=x+YA(a),a.Gb(z,E),b&&(E.ub=y,Vg(a,z,x),E.ub=null),E.data=y}}}function Vg(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Jn){var E=y,z=x;b.type===Jn.TableRow?b.row=E:b.type===Jn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Cp(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=ql(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;on("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&&(Zg||(Zg=!0,kr('No item template Panel found for category "'+y+'" on '+a),kr(" Using default item template."),a=new Jn,y=new ha,y.bind(new iu("text","",Rr)),a.add(y),pA=a),b=pA)),b}function Xf(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Jn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Jn&&!z.isEnabled||Xf(a,z,x)}}}function jc(a,y){y.name=a,Gh.add(a,y)}Oe.Object.defineProperties(Jn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Jn.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&&Vi(a,">= 0",Jn,"padding"),a=new Hr(a)):(0>a.left&&Vi(a.left,">= 0",Jn,"padding:value.left"),0>a.right&&Vi(a.right,">= 0",Jn,"padding:value.right"),0>a.top&&Vi(a.top,">= 0",Jn,"padding:value.top"),0>a.bottom&&Vi(a.bottom,">= 0",Jn,"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:Ao},set:function(a){typeof a=="number"&&(a=new Hr(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new wc),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 Rs)&&(a instanceof Rs&&a.freeze(),this.T===null&&(this.T=new wc),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 wc),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)||on("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 wc),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 Rs)&&(a instanceof Rs&&a.freeze(),this.T===null&&(this.T=new wc),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 wc),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)||on("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 wc),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 wc),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||on("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&rc(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()||on("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&rc(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 ed),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),fu(this)&&(a=this.part,a!==null&&Js(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 ed),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),fu(this)&&(a=this.part,a!==null&&Js(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 ed),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 ed),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 ed,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 ed,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 ed,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 ed,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 wc),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new wc),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Cf},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new wc),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Cf},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new wc),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)&&on("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new wc),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)&&on("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new wc),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 Yr&&!(this instanceof bs);lh(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Wi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Yr&&(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&&$f(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||uf(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 Cr}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Yr||a.isPanelMain)&&on("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(););Do(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&&(Do(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 Ro&&(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&&Xf(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))}}}),Oe.Object.defineProperties(Jn,{Position:{get:function(){return Gh.I("Position")}},Horizontal:{get:function(){return Gh.I("Horizontal")}},Vertical:{get:function(){return Gh.I("Vertical")}},Spot:{get:function(){return Gh.I("Spot")}},Auto:{get:function(){return Gh.I("Auto")}},Table:{get:function(){return Gh.I("Table")}},Viewbox:{get:function(){return Gh.I("Viewbox")}},TableRow:{get:function(){return Gh.I("TableRow")}},TableColumn:{get:function(){return Gh.I("TableColumn")}},Link:{get:function(){return Gh.I("Link")}},Grid:{get:function(){return Gh.I("Grid")}},Graduated:{get:function(){return Gh.I("Graduated")}}}),Jn.prototype.rebuildItemElements=Jn.prototype.mv,Jn.prototype.findItemPanelForData=Jn.prototype.sx,Jn.prototype.updateTargetBindings=Jn.prototype.La,Jn.prototype.copyTemplate=Jn.prototype.Uy,Jn.prototype.graduatedValueForPoint=Jn.prototype.Gz,Jn.prototype.graduatedPointForValue=Jn.prototype.Fz,Jn.prototype.findColumnForLocalX=Jn.prototype.fz,Jn.prototype.findRowForLocalY=Jn.prototype.nz,Jn.prototype.addColumnDefinition=Jn.prototype.By,Jn.prototype.addRowDefinition=Jn.prototype.Hy,Jn.prototype.addRowColumnDefinition=Jn.prototype.Gy,Jn.prototype.removeColumnDefinition=Jn.prototype.jA,Jn.prototype.getColumnDefinition=Jn.prototype.Eb,Jn.prototype.removeRowDefinition=Jn.prototype.oA,Jn.prototype.getRowDefinition=Jn.prototype.Fb,Jn.prototype.removeAt=Jn.prototype.mb,Jn.prototype.remove=Jn.prototype.remove,Jn.prototype.insertAt=Jn.prototype.Gb,Jn.prototype.elt=Jn.prototype.M,Jn.prototype.add=Jn.prototype.add,Jn.prototype.findObject=Jn.prototype.fb,Jn.prototype.findInVisualTree=Jn.prototype.Nl,Jn.prototype.walkVisualTreeFrom=Jn.prototype.qm,Jn.prototype.findMainElement=Jn.prototype.Pb;var Zg=!1,pA=null,Gh=new Cr;Jn.className="Panel",Jn.definePanelLayout=jc,jc("Position",new zn),jc("Vertical",new Ni),jc("Auto",new Pr),jc("Link",new ts);function ed(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}ed.prototype.copy=function(){var a=new ed;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},ed.className="GradPanelSettings";function wc(){this.Pc=[],this.Oc=[],this.j=this.ob=Cf,this.hb=this.Hb=0,this.Qp=Ao,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}wc.prototype.copy=function(a){for(var y=new wc,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},wc.className="TablePanelSettings";function Kl(a){ns(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Bs,this.pa=this.oc=this.oa=0,this.be=null,this.oo=$g,this.hg=Co,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))}Kl.prototype.copy=function(){var a=new Kl;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=dr(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Yg(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=dr(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Wt=Kl.prototype,Wt.qb=function(a){a.classType===Kl&&(this.sizing=a)},Wt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+fs(this)},Wt.wi=function(a){this.Me=a},Wt.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)},Wt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Jn.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)},Wt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(ja,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 Jf(a){if(a.sizing===$g){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Wt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new iu(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&lc(y)&&on("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Si),this.be.add(E),this},Oe.Object.defineProperties(Kl.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&&Vi(a,">= 0",Kl,"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&&Vi(a,">= 0",Kl,"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))&&Vi(a,">= 0",Kl,"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&&Vi(a,">= 0",Kl,"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 Hr(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&&Kt(a,"RowColumnDefinition.separatorStroke"),a instanceof Rs&&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)||on("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&&Kt(a,"RowColumnDefinition.background"),a instanceof Rs&&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}}}),Kl.prototype.computeEffectiveSpacing=Kl.prototype.Wc,Kl.prototype.computeEffectiveSpacingTop=Kl.prototype.Io;var $g=new ri(Kl,"Default",0),Sf=new ri(Kl,"None",1),Cf=new ri(Kl,"ProportionalExtra",2);Kl.className="RowColumnDefinition",Kl.Default=$g,Kl.None=Sf,Kl.ProportionalExtra=Cf;function Go(a,y){xn.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)}In(Go,xn),Go.prototype.cloneProtected=function(a){xn.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=dr(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 Bf(a){a.Na===null?a.Na=new Fg:a.Na.nc&&(a.Na=a.Na.copy())}Wt=Go.prototype,Wt.th=function(){xn.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Wt.qb=function(a){a===bi||a===Mr||a===$o||a===Co?this.geometryStretch=a:xn.prototype.qb.call(this,a)},Wt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+fs(this)};function Pf(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],ht,dt,yt,Tt,Gt,$t,he=0,Qe=vi(),Me=2;Me<E;Me+=2)ht=x[Me],dt=x[Me+1],yt=ht-ot,ot=dt-at,yt===0&&(yt=.001),Tt=ot/yt,Gt=Math.atan2(ot,yt),$t=Math.sqrt(yt*yt+ot*ot),Qe.push([yt,Gt,Tt,$t]),he+=$t,ot=ht,at=dt;ot=x[0],at=x[1],yt=b.measuredBounds.width,b instanceof Go&&(yt-=b.strokeWidth),1>yt&&(yt=1),E=x=yt,ht=nt/2,dt=ht!==0,Me=0,$t=Qe[Me],yt=$t[0],Gt=$t[1],Tt=$t[2],$t=$t[3];for(var Ze=0;.1<=he;){if(Ze===0&&(dt?(E=x,E-=ht,he-=ht,dt=!1):E=x,E===0&&(E=1)),E>he){er(Qe);return}E>$t?(Ze=E-$t,E=$t):Ze=0;var tn=Math.sqrt(E*E/(1+Tt*Tt));if(0>yt&&(tn=-tn),ot+=tn,at+=Tt*tn,a.translate(ot,at),a.rotate(Gt),a.translate(-(nt/2),-(z/2)),Ze===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-Gt),a.translate(-ot,-at),he-=E,$t-=E,Ze!==0){if(Me++,Me===Qe.length){er(Qe);return}$t=Qe[Me],yt=$t[0],Gt=$t[1],Tt=$t[2],$t=$t[3],E=Ze}}er(Qe)}}Wt.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&&Ca(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===Jn.Link&&ot instanceof bs&&ot.category==="Selection"&&ot.adornedObject instanceof Go&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&(Ca(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===Yi.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===Yi.u){var ht=E.startX;at=E.startY;var dt=E.endX,yt=E.endY;E=Math.min(ht,dt);var Tt=Math.min(at,yt);ht=Math.abs(dt-ht),at=Math.abs(yt-at),a.beginPath(),a.rect(E,Tt,ht,at),b!==null&&a.ng(b),x!==null&&(ot&&z&&td(a),a.jk(),ot&&z&&zh(a)),a.Se()}else if(E.type===Yi.F)ht=E.startX,at=E.startY,dt=E.endX,yt=E.endY,E=Math.abs(dt-ht)/2,Tt=Math.abs(yt-at)/2,ht=Math.min(ht,dt)+E,at=Math.min(at,yt)+Tt,a.beginPath(),a.moveTo(ht,at-Tt),a.bezierCurveTo(ht+bn.wg*E,at-Tt,ht+E,at-bn.wg*Tt,ht+E,at),a.bezierCurveTo(ht+E,at+bn.wg*Tt,ht+bn.wg*E,at+Tt,ht,at+Tt),a.bezierCurveTo(ht-bn.wg*E,at+Tt,ht-E,at+bn.wg*Tt,ht-E,at),a.bezierCurveTo(ht-E,at-bn.wg*Tt,ht-bn.wg*E,at-Tt,ht,at-Tt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&td(a),a.jk(),ot&&z&&zh(a)),a.Se();else if(E.type===Yi.o)for(E=E.figures,at=E.length,Tt=0;Tt<at;Tt++){ht=E.s[Tt],a.beginPath(),a.moveTo(ht.startX,ht.startY),dt=ht.segments.s,yt=dt.length;for(var Gt=null,$t=0;$t<yt;$t++){var he=dt[$t];switch(he.type){case bl:a.moveTo(he.endX,he.endY);break;case sa:a.lineTo(he.endX,he.endY);break;case pu:a.bezierCurveTo(he.point1X,he.point1Y,he.point2X,he.point2Y,he.endX,he.endY);break;case gh:a.quadraticCurveTo(he.point1X,he.point1Y,he.endX,he.endY);break;case xl:if(he.radiusX===he.radiusY){var Qe=Math.PI/180;a.arc(he.point1X,he.point1Y,he.radiusX,he.startAngle*Qe,(he.startAngle+he.sweepAngle)*Qe,0>he.sweepAngle,Gt!==null?Gt.endX:ht.startX,Gt!==null?Gt.endY:ht.startY)}else if(Gt=Xu(he,ht),Qe=Gt.length,Qe===0)a.lineTo(he.centerX,he.centerY);else for(var Me=0;Me<Qe;Me++){var Ze=Gt[Me];Me===0&&a.lineTo(Ze[0],Ze[1]),a.bezierCurveTo(Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7])}break;case Oh:if(Me=Qe=0,Gt!==null&&Gt.type===xl){if(Gt=Xu(Gt,ht),Ze=Gt.length,Ze===0){a.lineTo(he.endX,he.endY);break}Gt=Gt[Ze-1]||null,Gt!==null&&(Qe=Gt[6],Me=Gt[7])}else Qe=Gt!==null?Gt.endX:ht.startX,Me=Gt!==null?Gt.endY:ht.startY;if(Gt=Ku(he,ht,Qe,Me),Qe=Gt.length,Qe===0){a.lineTo(he.endX,he.endY);break}for(Me=0;Me<Qe;Me++)Ze=Gt[Me],a.bezierCurveTo(Ze[2],Ze[3],Ze[4],Ze[5],Ze[6],Ze[7]);break;default:on("Segment not of valid type: "+he.type)}he.isClosed&&a.closePath(),Gt=he}dt=ht.isFilled,z?ht.isShadowed?(dt===!0&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&(dt&&ot&&td(a),a.jk(),dt&&ot&&zh(a))):(td(a),dt&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk(),zh(a)):(dt&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk()),a.Se(Tt)}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=vi(),z.type===Yi.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Pf(a,y,b,x);else if(z.type===Yi.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,Tt=E,ht=ot.segments.s,dt=ht.length,yt=0;yt<dt;yt++){switch($t=ht[yt],$t.type){case bl:Pf(a,y,b,x),b.length=0,b.push($t.endX),b.push($t.endY),nt=$t.endX,E=$t.endY,at=nt,Tt=E;break;case sa:b.push($t.endX),b.push($t.endY),nt=$t.endX,E=$t.endY;break;case pu:bn.Qe(nt,E,$t.point1X,$t.point1Y,$t.point2X,$t.point2Y,$t.endX,$t.endY,.5,b),nt=$t.endX,E=$t.endY;break;case gh:bn.ep(nt,E,$t.point1X,$t.point1Y,$t.endX,$t.endY,.5,b),nt=$t.endX,E=$t.endY;break;case xl:if(he=Xu($t,ot),Gt=he.length,Gt===0){b.push($t.centerX),b.push($t.centerY),nt=$t.centerX,E=$t.centerY;break}for(Qe=0;Qe<Gt;Qe++)Me=he[Qe],bn.Qe(nt,E,Me[2],Me[3],Me[4],Me[5],Me[6],Me[7],.5,b),nt=Me[6],E=Me[7];break;case Oh:if(he=Ku($t,ot,nt,E),Gt=he.length,Gt===0){b.push($t.endX),b.push($t.endY),nt=$t.endX,E=$t.endY;break}for(Qe=0;Qe<Gt;Qe++)Me=he[Qe],bn.Qe(nt,E,Me[2],Me[3],Me[4],Me[5],Me[6],Me[7],.5,b),nt=Me[6],E=Me[7];break;default:on("Segment not of valid type: "+$t.type)}$t.isClosed&&(b.push(at),b.push(Tt),Pf(a,y,b,x))}Pf(a,y,b,x)}else if(z.type===Yi.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),Pf(a,y,b,x);else if(z.type===Yi.F){if(E=new il,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new gs(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=Xu(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++)Tt=z[at],bn.Qe(nt,E,Tt[2],Tt[3],Tt[4],Tt[5],Tt[6],Tt[7],.5,b),nt=Tt[6],E=Tt[7];Pf(a,y,b,x)}er(b),a.restore(),a.Vc(!1)}}}},Wt.kk=function(a,y,x){return!xn.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)},Wt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:xn.prototype.nk.call(this,a)},Wt.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)}},Wt.ga=function(a,y){if(y===void 0&&(y=new Le),a instanceof wr){a.Mc()&&on("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},Wt.mi=function(a){a===void 0&&(a=new ai);var y=this.naturalBounds,x=this.oe;y=ai.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Le.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Is(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Is(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Is(a,b.x,b.y,0,0),ai.free(y),Le.free(b),a},Wt.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!==Yi.j||y||(E+=2);var z=ai.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return ai.free(z),!1;if(b=E+1e-4,x.type===Yi.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:(ai.free(z),bn.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Yi.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 ai.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),ai.free(z),a}if(x.type===Yi.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 ai.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),ai.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===Yi.o)return ai.free(z),this.fill===null?fh(x,a.x,a.y,E):ju(x,a,E,1<this.strokeWidth,y);on("Unknown Geometry type: "+x.type)},Wt.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=Ep[ot];if(at===void 0){var ht=bn.Ze[ot];typeof ht=="string"&&(ht=bn.Ze[ht]),typeof ht=="function"?(at=ht(null,100,100),Ep[ot]=at):on("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ht=nt.width;var dt=nt.height;switch(Zu(this,!0)){case bi:b=x=0;break;case Mi:ht=Math.max(a-z,0),dt=Math.max(y-z,0);break;case jr:ht=Math.max(a-z,0),b=0;break;case qr:x=0,dt=Math.max(y-z,0)}isFinite(E.width)&&(ht=E.width),isFinite(E.height)&&(dt=E.height);var yt=this.maxSize,Tt=this.minSize;switch(x=Math.max(x-z,Tt.width),b=Math.max(b-z,Tt.height),ht=Math.min(yt.width,ht),dt=Math.min(yt.height,dt),ht=isFinite(ht)?Math.max(x,ht):Math.max(ot,x),dt=isFinite(dt)?Math.max(b,dt):Math.max(at,b),x=$A(this),x){case bi:break;case Mi:ot=ht,at=dt;break;case Mr:x=Math.min(ht/ot,dt/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:on(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&&bn.$(this.ua.Sk,a-z)&&bn.$(this.ua.Rk,y-z)||(this.ua=Go.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),ht+z,dt+z),E.w()?(ht=E.width,dt=E.height,ht=Math.min(yt.width,ht),dt=Math.min(yt.height,dt),ht=Math.max(Tt.width,ht),dt=Math.max(Tt.height,dt),this.dc.h(0,0,ht,dt)):this.dc.assign(nt)};function $A(a){var y=a.geometryStretch;return a.Rd!==null?y===Co?Mi:y:y===Co?Ep[a.figure].defaultStretch:y}Wt.eh=function(a,y,x,b){$l(this,a,y,x,b)},Wt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Wt.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,ht=-z.m21*nt,dt=z.m11*nt,yt=nt*(z.m21*z.dy-z.m22*z.dx),Tt=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ht+yt,nt=a*at+y*dt+Tt,ot=x*ot+b*ht+yt,at=x*at+b*dt+Tt,yt=this.ig/2,ht=this.ua,ht===null&&(this.measure(1/0,1/0),ht=this.ua);var Gt=ht.bounds;if(dt=!1,ht.type===Yi.j)if(1.5>=this.strokeWidth)dt=bn.Ve(ht.startX,ht.startY,ht.endX,ht.endY,z,nt,ot,at,E);else{if(ht.startX===ht.endX?(b=yt,dt=0):(y=(ht.endY-ht.startY)/(ht.endX-ht.startX),dt=yt/Math.sqrt(1+y*y),b=dt*y),y=vi(),a=new Le,bn.Ve(ht.startX+b,ht.startY+dt,ht.endX+b,ht.endY+dt,z,nt,ot,at,a)&&y.push(a),a=new Le,bn.Ve(ht.startX-b,ht.startY-dt,ht.endX-b,ht.endY-dt,z,nt,ot,at,a)&&y.push(a),a=new Le,bn.Ve(ht.startX+b,ht.startY+dt,ht.startX-b,ht.startY-dt,z,nt,ot,at,a)&&y.push(a),a=new Le,bn.Ve(ht.endX+b,ht.endY+dt,ht.endX-b,ht.endY-dt,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return er(y),!1;for(dt=!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);er(y)}else if(ht.type===Yi.u)dt=bn.Ff(Gt.x-yt,Gt.y-yt,Gt.x+Gt.width+yt,Gt.y+Gt.height+yt,z,nt,ot,at,E);else if(ht.type===Yi.F){y=ai.allocAt(Gt.x,Gt.y,Gt.width,Gt.height).Bc(yt,yt);t:if(y.width===0)dt=bn.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)dt=bn.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,ot,at,E);else{if(a=y.width/2,ht=y.height/2,b=y.x+a,dt=y.y+ht,x=9999,z!==ot&&(x=(nt-at)/(z-ot)),9999>Math.abs(x)){if(at=nt-dt-x*(z-b),0>a*a*x*x+ht*ht-at*at){E.x=NaN,E.y=NaN,dt=!1;break t}yt=Math.sqrt(a*a*x*x+ht*ht-at*at),ot=(-(a*a*x*at)+a*ht*yt)/(ht*ht+a*a*x*x)+b,a=(-(a*a*x*at)-a*ht*yt)/(ht*ht+a*a*x*x)+b,ht=x*(ot-b)+at+dt,at=x*(a-b)+at+dt,Math.abs((z-ot)*(z-ot))+Math.abs((nt-ht)*(nt-ht))<Math.abs((z-a)*(z-a))+Math.abs((nt-at)*(nt-at))?(E.x=ot,E.y=ht):(E.x=a,E.y=at)}else{if(ot=ht*ht,at=z-b,ot-=ot/(a*a)*at*at,0>ot){E.x=NaN,E.y=NaN,dt=!1;break t}at=Math.sqrt(ot),ot=dt+at,at=dt-at,Math.abs(ot-nt)<Math.abs(at-nt)?(E.x=z,E.y=ot):(E.x=z,E.y=at)}dt=!0}ai.free(y)}else if(ht.type===Yi.o){Tt=Le.alloc();var $t=ot-z,he=at-nt,Qe=$t*$t+he*he,Me=z,Ze=nt;if(0<Qe&&Gt.contains(Me,Ze)&&(Tt.x=Me,Tt.y=Ze,this.ca(Tt)))for($t!==0&&.5>Math.abs($t)?(he*=.5/$t,$t=.5):he!==0&&.5>Math.abs(he)&&($t*=.5/he,he=.5),Me-=$t,Ze-=he;Gt.contains(Me,Ze);)Me-=$t,Ze-=he;for(E.x=ot,E.y=at,he=0;he<ht.figures.count;he++){var tn=ht.figures.s[he],sn=tn.isFilled?Me:z,Cn=tn.isFilled?Ze:nt,Kn=tn.segments;Gt=tn.startX,$t=tn.startY;for(var ar=Gt,Tr=$t,xr=0;xr<Kn.count;xr++){var Gi=Kn.s[xr],Li=Gi.type,jo=Gi.endX,Bo=Gi.endY,Ts=!1;switch(Li){case bl:ar=jo,Tr=Bo;break;case sa:Ts=bp(Gt,$t,jo,Bo,sn,Cn,ot,at,Tt);break;case pu:Ts=bn.Eo(Gt,$t,Gi.point1X,Gi.point1Y,Gi.point2X,Gi.point2Y,jo,Bo,sn,Cn,ot,at,.6,Tt);break;case gh:Ts=bn.Eo(Gt,$t,Gt+2/3*(Gi.point1X-Gt),$t+2/3*(Gi.point1Y-$t),jo+2/3*(Gi.point1X-jo),Bo+2/3*(Gi.point1Y-Bo),jo,Bo,sn,Cn,ot,at,.6,Tt);break;case xl:case Oh:Li=Gi.type===xl?Xu(Gi,tn):Ku(Gi,tn,Gt,$t);var pa=Li.length;if(pa===0){Ts=bp(Gt,$t,Gi.type===xl?Gi.centerX:Gi.endX,Gi.type===xl?Gi.centerY:Gi.endY,sn,Cn,ot,at,Tt);break}for(Bo=null,jo=0;jo<pa;jo++){if(Bo=Li[jo],jo===0&&bp(Gt,$t,Bo[0],Bo[1],sn,Cn,ot,at,Tt)){var Fu=Pp(sn,Cn,Tt,Qe,E);Fu<Qe&&(Qe=Fu,dt=!0)}bn.Eo(Bo[0],Bo[1],Bo[2],Bo[3],Bo[4],Bo[5],Bo[6],Bo[7],sn,Cn,ot,at,.6,Tt)&&(Fu=Pp(sn,Cn,Tt,Qe,E),Fu<Qe&&(Qe=Fu,dt=!0))}jo=Bo[6],Bo=Bo[7];break;default:on("Unknown Segment type: "+Li)}Gt=jo,$t=Bo,Ts&&(Ts=Pp(sn,Cn,Tt,Qe,E),Ts<Qe&&(Qe=Ts,dt=!0)),Gi.isClosed&&(jo=ar,Bo=Tr,bp(Gt,$t,jo,Bo,sn,Cn,ot,at,Tt)&&(Gi=Pp(sn,Cn,Tt,Qe,E),Gi<Qe&&(Qe=Gi,dt=!0)))}}z=x-a,nt=b-y,ot=Math.sqrt(z*z+nt*nt),ot!==0&&(z/=ot,nt/=ot),E.x-=z*yt,E.y-=nt*yt,Le.free(Tt)}else on("Unknown Geometry type: "+ht.type);return dt?(this.transform.Ga(E),!0):!1};function Pp(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 bp(a,y,x,b,E,z,nt,ot,at){if(bn.$(a,x)&&bn.$(y,b)||bn.$(E,nt)&&bn.$(z,ot))return!1;var ht=!1,dt=(E-nt)*(y-b)-(z-ot)*(a-x);return dt===0?!1:(at.x=((E*ot-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/dt,at.y=((E*ot-z*nt)*(y-b)-(z-ot)*(a*b-y*x))/dt,(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||bn.$(at.y,a))&&(at.y<y||bn.$(at.y,y))&&(ht=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||bn.$(at.x,y))&&(at.x<a||bn.$(at.x,a))&&(ht=!0)),ht)}Wt.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=Le.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)))),Le.free(z),E},Wt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Ko.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=Le.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 Le.free(nt),!0;var ot=Le.alloc(),at=Le.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,bf(this,nt,ot,at)?y=!0:(nt.x=E,nt.y=a,nt.transform(x),bf(this,nt,ot,at)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),bf(this,nt,ot,at)?y=!0:(nt.x=b,nt.y=z,nt.transform(x),bf(this,nt,ot,at)&&(y=!0)))),Le.free(nt),Ko.free(x),Le.free(ot),Le.free(at),y};function bf(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)}Wt.tx=function(a,y,x){function b(Qe,Me){for(var Ze=Qe.length,tn=0;tn<Ze;tn+=2)if(Me.zd(Qe[tn],Qe[tn+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,ht=nt.x+nt.width;if(nt=nt.y+nt.height,Fa(a.x,a.y,ot,at)<=E&&Fa(a.x,a.y,ht,at)<=E&&Fa(a.x,a.y,ot,nt)<=E&&Fa(a.x,a.y,ht,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ht=y.endX,nt=y.endY,y.type===Yi.j){if(x=(ot-ht)*(a.x-ht)+(at-nt)*(a.y-nt),os(a.x,a.y,ot,at,ht,nt)<=(0<=(ht-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===Yi.u)return y=!1,x&&(y=os(a.x,a.y,ot,at,ot,nt)<=E||os(a.x,a.y,ot,at,ht,at)<=E||os(a.x,a.y,ht,at,ht,nt)<=E||os(a.x,a.y,ot,nt,ht,nt)<=E),y;if(y.type===Yi.F){y=a.x-(ot+ht)/2,z=a.y-(at+nt)/2;var dt=Math.abs(ht-ot)/2,yt=Math.abs(nt-at)/2;if(dt===0||yt===0)return os(a.x,a.y,ot,at,ht,nt)<=E;if(x){if(a=bn.$y(dt,yt,y,z),a*a<=E)return!0}else return!(Fa(y,z,-dt,0)>=E||Fa(y,z,0,-yt)>=E||Fa(y,z,0,yt)>=E||Fa(y,z,dt,0)>=E)}else if(y.type===Yi.o){if(ht=y.bounds,z=ht.x,ot=ht.y,at=ht.x+ht.width,ht=ht.y+ht.height,a.x>at&&a.x<z&&a.y>ht&&a.y<ot&&os(a.x,a.y,z,ot,z,ht)>E&&os(a.x,a.y,z,ot,at,ot)>E&&os(a.x,a.y,at,ht,z,ht)>E&&os(a.x,a.y,at,ht,at,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?fh(y,a.x,a.y,z):ju(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,dt=z.startY,a.zd(nt,dt)>E)return!1;for(ot=z.segments.s,at=ot.length,ht=0;ht<at;ht++)switch(yt=ot[ht],yt.type){case bl:case sa:if(nt=yt.endX,dt=yt.endY,a.zd(nt,dt)>E)return!1;break;case pu:var Tt=vi();if(bn.Qe(nt,dt,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.8,Tt),nt=b(Tt,a),er(Tt),nt||(nt=yt.endX,dt=yt.endY,a.zd(nt,dt)>E))return!1;break;case gh:if(Tt=vi(),bn.ep(nt,dt,yt.point1X,yt.point1Y,yt.endX,yt.endY,.8,Tt),nt=b(Tt,a),er(Tt),nt||(nt=yt.endX,dt=yt.endY,a.zd(nt,dt)>E))return!1;break;case xl:case Oh:Tt=yt.type===xl?Xu(yt,z):Ku(yt,z,nt,dt);var Gt=Tt.length;if(Gt===0){if(nt=yt.type===xl?yt.centerX:yt.endX,dt=yt.type===xl?yt.centerY:yt.endY,a.zd(nt,dt)>E)return!1;break}yt=null;for(var $t=vi(),he=0;he<Gt;he++)if(yt=Tt[he],$t.length=0,bn.Qe(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.8,$t),b($t,a))return er($t),!1;er($t),yt!==null&&(nt=yt[6],dt=yt[7]);break;default:on("Unknown Segment type: "+yt.type)}}return!0}}}return!1},Wt.qc=function(){this.ua=null},Wt.kq=function(){return this.ig};function h0(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=y0,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=nl):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new wr(1-nl.x,nl.y)))}Go.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=qd[a.toArrow];else a.fromArrow!=="None"?b=qd[a.fromArrow]:(b=bn.Ze[a.figure],typeof b=="string"&&(b=bn.Ze[b]),b===void 0&&on("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=bn.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function Xg(a){var y=qd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=qd[x],y===void 0){var b=null,E;for(E in bn.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Yi.parse(bn.um[b],!1),qd[b]=a,x!==b&&(qd[x]=b),b}}return typeof y=="string"?y:y instanceof Yi?a:null}Oe.Object.defineProperties(Go.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),fu(this)&&(a=this.part,a!==null&&Js(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Yi.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Le.allocAt(-y.x,-y.y),Le.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&&Kt(a,"Shape.fill"),a instanceof Rs&&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&&Kt(a,"Shape.stroke"),a instanceof Rs&&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 Vi(a,"value >= 0",Go,"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"?Vi(a,'"butt", "round", or "square"',Go,"strokeCap"):(Bf(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"?Vi(a,'"miter", "bevel", or "round"',Go,"strokeJoin"):(Bf(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){Bf(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)||on("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&&(Bf(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=bn.Ze[a];typeof x=="function"?x=a:(x=bn.Ze[a.toLowerCase()])||on("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=Xg(a);x===null?on("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new MA),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),h0(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=Xg(a);x===null?on("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new MA),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),h0(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Bs},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Bf(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Bs},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Bf(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&&(Bf(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Co},set:function(a){var y=this.geometryStretch;y!==a&&(Bf(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 XA),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&rc(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 XA),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 XA),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 XA),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Go.prototype.intersectsRect=Go.prototype.Yc,Go.prototype.containedInRect=Go.prototype.fh,Go.prototype.getNearestIntersectionPoint=Go.prototype.rs,Go.prototype.getDocumentBounds=Go.prototype.mi,Go.prototype.getDocumentPoint=Go.prototype.ga;var qd=new no,Ep=new no;Go.className="Shape",Go.getFigureGenerators=function(){var a=new Cr,y;for(y in bn.Ze)y!==y.toLowerCase()&&a.add(y,bn.Ze[y]);return a.freeze(),a},Go.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=bn.Ze;b[a]=y,b[x]=a},Go.getArrowheadGeometries=function(){var a=new Cr;for(b in bn.um)if(qd[b]===void 0){var y=Yi.parse(bn.um[b],!1);qd[b]=y,y=b.toLowerCase(),y!==b&&(qd[y]=b)}for(var x in qd)if(x!==x.toLowerCase()){var b=qd[x];b instanceof Yi&&a.add(x,b)}return a.freeze(),a},Go.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Yi.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||on("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=qd;b[a]=x,b[y]=a};function Fg(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Co,this.gg=this.fg=Bs}Fg.prototype.copy=function(){var a=new Fg;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 ha(a,y){return xn.call(this),Ng||(Mh=Us?new yc(null).context:null,Ng=!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}In(ha,xn),ha.prototype.cloneProtected=function(a){xn.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 Uc(a){a.da===null?a.da=new tp:a.da.nc&&(a.da=a.da.copy())}Wt=ha.prototype,Wt.th=function(){xn.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function c0(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}Wt.qb=function(a){a.classType===ha?this.wrap=a:xn.prototype.qb.call(this,a)},Wt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Wt.v=function(){xn.prototype.v.call(this)},Wt.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=mA(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 ht=this.isStrikethrough;Ca(this,a,this.xc,!0,!1,x,b),(at||ht)&&Ca(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var dt=this.oe,yt=dt.dx-(nt*dt.m21+dt.dx);dt=dt.dy-(nt*dt.m22+dt.dy);var Tt=y.scale;switch(8>(yt*yt+dt*dt)*Tt*Tt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Sh&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,yt=this.spacingBelow,this.flip){case ss:a.translate(E,0),a.scale(-1,1);break;case Oo:a.translate(0,z),a.scale(1,-1);break;case Ds:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),dt=this.Gc,Tt=(y+nt+yt)*dt,z>Tt&&(b=this.verticalAlignment,b=b.y*z-b.y*Tt+b.offsetY),dt===1&&this.ze!==null)yt=this.Cb,yt>E&&(yt=E),this.Oj(this.ze,a,0,b+y,E,nt,yt,x,ot,at,ht);else if(this.Qc!==null&&this.Qb!==null)for(Tt=0;Tt<dt;Tt++){var Gt=this.Qc[Tt];Gt>E&&(Gt=E),b+=y,this.Oj(this.Qb[Tt],a,0,b,E,nt,Gt,x,ot,at,ht),b+=nt+yt}switch(this.flip){case ss:a.scale(-1,1),a.translate(-E,0);break;case Oo:a.scale(1,-1),a.translate(0,-z);break;case Ds:a.scale(-1,-1),a.translate(-E,-z)}}},Wt.Oj=function(a,y,x,b,E,z,nt,ot,at,ht,dt){var yt=0;if(ot)at==="left"?yt=0:at==="right"?yt=E-nt:at==="center"&&(yt=(E-nt)/2),y.fillRect(x+yt,b+.25*z,nt,1);else{if(at==="left"?yt=0:at==="right"?yt=E:at==="center"&&(yt=E/2),E=Fp!==null?Fp(this,z):.75*z,y.fillText(a,x+yt,b+E),a=z/20|0,a===0&&(a=1),at==="right"?yt-=nt:at==="center"&&(yt-=nt/2),ht){ot=qg!==null?qg(this,z):.8*z,at=x+yt,ht=b+ot,E=x+yt+nt,ot=b+ot;var Tt=a;y.beginPath(),y.lineWidth=Tt,y.moveTo(at,ht),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof Sh&&y.ad.classList.add("gojs-td")}dt&&(dt=b+z-z/2.2|0,a%2!==0&&(dt+=.5),b=x+yt,z=dt,x=x+yt+nt,nt=dt,yt=a,y.beginPath(),y.lineWidth=yt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof Sh&&y.ad.classList.add("gojs-td"))}},Wt.kk=function(a,y,x){if(!xn.prototype.kk.call(this,a,y,x))return!1;if(Ca(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++)Yf(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Yf(a,y,!0);return!0},Wt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:xn.prototype.nk.call(this,a)},Wt.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)}},Wt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Mh!==null&&f0!==z&&(f0=Mh.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 ht=z.indexOf(`
`,ot);ht===-1&&(ht=z.length,at=!0),ot=z.substr(ot,ht-ot),this.formatting===hf&&(ot=ot.trim()),nt=Math.max(nt,Rc(ot)),ot=ht+1}z=nt}else nt=z.indexOf(`
`,0),0<=nt&&(z=z.substr(0,nt)),z=Rc(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=A0(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===Np&&(y=this.Ae,y=this.overflow===Np?d0(y):0,ht=this.spacingAbove+this.spacingBelow,ht=Math.max(0,mA(this)+ht),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/ht+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,ht=this.Qb[at],y=Math.max(1,a-y);Rc(ht)>y&&1<ht.length;)ht=ht.substr(0,ht.length-1);ht+=tg,y=Rc(ht),this.Qb[at]=ht,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===em||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),nt=Math.max(b,nt),ka(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Wt.eh=function(a,y,x,b){$l(this,a,y,x,b)};function Jg(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 Lg(a,y,x,b){var E=a.formatting===hf;E&&(y=y.trim());var z=0,nt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,mA(a)+ot);var at=a.overflow===Np?d0(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===Ef){a.Le=1;var ht=Rc(y);if(at===0||ht<=x)a.Cb=Math.max(a.Cb,ht),Jg(a,y,a.Cb),b!==null&&b.h(ht,ot);else{for(z=qf(a,nt),nt=nt.substr(z.length),y=qf(a,nt),ht=Rc(z+y);0<y.length&&ht<=x;)z+=y,nt=nt.substr(y.length),y=qf(a,nt),ht=z+y,E&&(ht=ht.trim()),ht=Rc(ht);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);Rc(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=tg;var dt=Rc(z);a.Cb=dt,Jg(a,z,dt),b!==null&&b.h(dt,ot)}}else{for(at=0,nt.length===0&&(at=1,Jg(a,nt,0));0<nt.length;){for(y=qf(a,nt),nt=nt.substr(y.length);Rc(y)>x;){var yt=1;for(ht=Rc(y.substr(0,yt)),dt=0;ht<=x;)yt++,dt=ht,ht=Rc(y.substr(0,yt));if(yt===1){var Tt=ht;z=Math.max(z,ht)}else Tt=dt,z=Math.max(z,dt);if(yt--,1>yt&&(yt=1),Jg(a,y.substr(0,yt),Tt),at++,y=y.substr(yt),a.Gc+at>a.maxLines)break}for(dt=qf(a,nt),ht=Rc(y+dt);0<dt.length&&ht<=x;)y+=dt,nt=nt.substr(dt.length),dt=qf(a,nt),ht=y+dt,E&&(ht=ht.trim()),ht=Rc(ht);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),dt.length===0?(yt=ht,z=Math.max(z,ht)):(yt=dt=Rc(y),z=Math.max(z,dt)),Jg(a,y,yt),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 qf(a,y){if(a.wrap===nm)return y.substr(0,1);for(var x=y.length,b=0,E=Tp;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===Ip&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Rc(a){return Mh===null?8*a.length:Mh.measureText(a).width}function mA(a){if(a.df!==null)return a.df;var y=a.Ae;if(Mh===null){var x=16;return a.df=x}return kA[y]!==void 0&&5e3>cf?x=kA[y]:(x=1.3*Mh.measureText("M").width,kA[y]=x,cf++),a.df=x}function d0(a){if(Mh===null)return 6;if(OA[a]!==void 0&&5e3>Mg)var y=OA[a];else y=Mh.measureText(tg).width,OA[a]=y,Mg++;return y}function A0(a,y){var x=a.ec.replace(/\r\n/g,`
`).replace(/\r/g,`
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,mA(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!==Ef){a.Le=0;var at=zi.alloc();Lg(a,z,y,at),E+=at.height,zi.free(at),a.Gc+=a.Le}else Lg(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=nt+1}return a.Lq=E}Oe.Object.defineProperties(ha.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"||(Uc(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:bi},set:function(a){var y=this.flip;y!==a&&(Uc(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:el},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Uc(this),this.da.Yr=a,Hl(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=zi.alloc();Lg(this,this.ec,999999,a);var y=a.width;zi.free(a),a=A0(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ka(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:Lp},set:function(a){var y=this.wrap;y!==a&&(Uc(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Mp},set:function(a){var y=this.overflow;y!==a&&(Uc(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&&Kt(a,"TextBlock.stroke"),a instanceof Rs&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return mA(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&&(Uc(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&&(Uc(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 XA),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 XA),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 XA),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 XA),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 XA),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&&(Uc(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&&(Uc(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&&(Uc(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&&(Uc(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:hf},set:function(a){var y=this.formatting;y!==a&&(Uc(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&&Vi(a,"> 0",ha,"maxLines"),Uc(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 Fp=null,qg=null,Ef=new ri(ha,"None",0),em=new ri(ha,"WrapFit",1),Lp=new ri(ha,"WrapDesiredSize",2),nm=new ri(ha,"WrapBreakAll",3),Mp=new ri(ha,"OverflowClip",0),Np=new ri(ha,"OverflowEllipsis",1),hf=new ri(ha,"FormatTrim",0),Ip=new ri(ha,"FormatNone",0),Tp=/[ \u200b\u00ad]/,kA=new no,cf=0,OA=new no,Mg=0,tg="...",f0="",Mh=null,Ng=!1;ha.className="TextBlock";function tp(){this.nc=!1,this.Hd=null,this.Xf=bi,this.gq=hf,this.Jq=1/0,this.$q=Mp,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=el,this.$r=Lp}tp.prototype.copy=function(){var a=new tp;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},ha.getEllipsis=function(){return tg},ha.setEllipsis=function(a){tg=a,OA=new no,Mg=0},ha.getBaseline=function(){return Fp},ha.setBaseline=function(a){Fp=a},ha.getUnderline=function(){return qg},ha.setUnderline=function(a){qg=a},ha.isValidFont=function(a){if(Ng||(Mh=Us?new yc(null).context:null,Ng=!0),Mh===null)return!0;var y=Mh.font;if(a===y||a==="10px sans-serif")return!0;Mh.font="10px sans-serif",Mh.font=a;var x=Mh.font;if(x!=="10px sans-serif")return Mh.font=y,!0;Mh.font="19px serif";var b=Mh.font;return Mh.font=a,x=Mh.font,Mh.font=y,x!==b},ha.FormatNone=Ip,ha.FormatTrim=hf,ha.None=Ef,ha.OverflowClip=Mp,ha.OverflowEllipsis=Np,ha.WrapBreakAll=nm,ha.WrapDesiredSize=Lp,ha.WrapFit=em;function XA(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}XA.prototype.copy=function(){var a=new XA;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},XA.className="GradElementSettings";function uc(a,y){xn.call(this),this.Eg=null,this.qo="",this.Xg=Zs,this.Nk=Mi,this.Zg=this.Hd=null,this.Mk=Yo,this.Xf=bi,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 kp;In(uc,xn),uc.prototype.cloneProtected=function(a){xn.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},uc.prototype.qb=function(a){a===bi||a===Mr||a===$o?this.imageStretch=a:xn.prototype.qb.call(this,a)},uc.prototype.toString=function(){return"Picture("+this.source+")#"+fs(this)};function Op(a){a===void 0&&(a=""),a!==""?kp[a]&&(delete kp[a],im--):(kp=new no,im=0)}function Ty(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()||(Ql(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=vi();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);er(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}uc.prototype.hA=function(){if(this.source!==""){Op(this.source);var a=this.source;this.source="",this.source=a}},uc.prototype.redraw=function(){this.N(),this.Uc=!0},uc.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 ZA)){var E=a instanceof Sh;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 ht=at,dt=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var yt=at,Tt=ot,Gt=this.Nk,$t=this.Mk;switch(Gt){case bi:if(this.sourceRect.w())break;yt>=b.width&&(z=z+$t.offsetX+(yt*$t.x-b.width*$t.x)),Tt>=b.height&&(nt=nt+$t.offsetY+(Tt*$t.y-b.height*$t.y)),at=Math.min(b.width,yt),ot=Math.min(b.height,Tt);break;case Mi:yt=b.width,Tt=b.height;break;case Mr:case $o:Gt===Mr?(Gt=Math.min(b.height/Tt,b.width/yt),yt*=Gt,Tt*=Gt):Gt===$o&&(Gt=Math.max(b.height/Tt,b.width/yt),yt*=Gt,Tt*=Gt,yt>=b.width&&(z=(z+$t.offsetX+(yt*$t.x-b.width*$t.x)/yt)*at),Tt>=b.height&&(nt=(nt+$t.offsetY+(Tt*$t.y-b.height*$t.y)/Tt)*ot),at*=1/(yt/b.width),ot*=1/(Tt/b.height),yt=b.width,Tt=b.height)}Gt=this.Df()*y.scale;var he=yt*Gt*Tt*Gt,Qe=at*ot/he,Me=x.__goCache;Gt=null;var Ze=Ew;if(!E){if(x.sq&&Me!==void 0&&4<he&&Qe>Ze*Ze)for(Me.gi===null&&(Oy(Me,4,ht,dt,x),Oy(Me,16,ht,dt,x)),E=Me.gi,ht=E.length,dt=0;dt<ht&&E[dt].ratio*E[dt].ratio<Qe;dt++)Gt=E[dt];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new yc(null).context;try{E.drawImage(this.Eg,0,0)}catch(tn){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(tn){this.vl=!0}}if(this.vl)return}}switch(E=yt<b.width?$t.offsetX+(b.width*$t.x-yt*$t.x):0,$t=Tt<b.height?$t.offsetY+(b.height*$t.y-Tt*$t.y):0,this.flip){case ss:a.translate(Math.min(b.width,yt),0),a.scale(-1,1);break;case Oo:a.translate(0,Math.min(b.height,Tt)),a.scale(1,-1);break;case Ds:a.translate(Math.min(b.width,yt),Math.min(b.height,Tt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Me!==void 0&&Gt!==null&&Gt.ratio!==1){a.save(),y=Gt.ratio;try{a.drawImage(Gt.source,z/y,nt/y,Math.min(Gt.source.width,at/y),Math.min(Gt.source.height,ot/y),E,$t,Math.min(b.width,yt),Math.min(b.height,Tt)),a instanceof Sh&&(this.bt=[z/y,nt/y,Math.min(Gt.source.width,at/y),Math.min(Gt.source.height,ot/y),E,$t,Math.min(b.width,yt),Math.min(b.height,Tt)])}catch(tn){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,$t,Math.min(b.width,yt),Math.min(b.height,Tt)),a instanceof Sh&&(this.bt=[z,nt,at,ot,E,$t,Math.min(b.width,yt),Math.min(b.height,Tt)])}catch(tn){this.en=!1}switch(this.flip){case ss:a.scale(-1,1),a.translate(-Math.min(b.width,yt),0);break;case Oo:a.scale(1,-1),a.translate(0,-Math.min(b.height,Tt));break;case Ds:a.scale(-1,-1),a.translate(-Math.min(b.width,yt),-Math.min(b.height,Tt))}}}}},uc.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=Zu(this,!0),nt=this.Eg,ot=this.qn,at=0,ht=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,ht=ot?+nt.height:nt.naturalHeight),isFinite(E.width)||z===Mi||z===jr?(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===Mi||z===qr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ht)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ht),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)),ka(this.dc,a,y),this.Ge(0,0,a,y)},uc.prototype.eh=function(a,y,x,b){$l(this,a,y,x,b)},Oe.Object.defineProperties(uc.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||on("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&&hd(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()||(Ql(this,!1),this.v())):x&&Ty(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=kp;if(Us){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<im&&(Op(),x=kp),b=qi("img"),b.hn=!0,Ty(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,im++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new ky),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}}}),uc.prototype.redraw=uc.prototype.redraw,uc.prototype.reloadSource=uc.prototype.hA;var im=0,Ew=4;uc.className="Picture",kp=new no,uc.clearCache=Op;function ky(){this.gi=null}function Oy(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new yc(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))}ky.className="PictureCacheArray";function Dy(a,y){this.source=a,this.ratio=y}Dy.className="PictureCacheInstance";function Dp(){this.os=new Yi,this.mc=null}Dp.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Yi,this.mc=null};function jp(a,y,x,b,E,z){a.mc=new il,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()}Dp.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new gs(bl);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Dp.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new gs(sa);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Ff(a,y,x,b,E,z,nt){var ot;ot===void 0&&(ot=!1);var at=new gs(pu);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 rm(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new gs(gh);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=E,z&&nt.close(),a.mc.segments.add(nt)}Dp.prototype.arcTo=function(a,y,x,b,E,z,nt){z===void 0&&(z=0),nt===void 0&&(nt=!1);var ot=new gs(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 gs(Oh,nt,ot,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function jy(a){var y=om;return y!==null?(om=null,y.reset(a),y):(y=new Dp,y.reset(a),y)}var om=null;Dp.className="StreamGeometryContext";function Bh(a,y){var x=a.toLowerCase(),b=bn.Ze;b[a]=y,b[x]=a}Bh("Rectangle",function(a,y,x){a="r"+y+","+x;var b=bn.Mf[a];return b!==void 0||(b=new Yi(Yi.u),b.endX=y,b.endY=x,bn.Nf<bn.vm&&(bn.Mf[a]=b,bn.Nf++)),b}),Bh("Square",function(a,y,x){a="s"+y+","+x;var b=bn.Mf[a];return b!==void 0||(b=new Yi(Yi.u),b.endX=y,b.endY=x,b.defaultStretch=Mr,bn.Nf<bn.vm&&(bn.Mf[a]=b,bn.Nf++)),b}),Bh("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=bn.Mf[b];if(E!==void 0)return E;var z=a*bn.wg;return E=new Yi().add(new il(a,0,!0).add(new gs(sa,y-a,0)).add(new gs(pu,y,a,y-z,0,y,z)).add(new gs(sa,y,x-a)).add(new gs(pu,y-a,x,y,x-z,y-z,x)).add(new gs(sa,a,x)).add(new gs(pu,0,x-a,z,x,0,x-z)).add(new gs(sa,0,a)).add(new gs(pu,a,0,0,z,z,0).close())),1<z&&(E.spot1=new wr(0,0,z,z),E.spot2=new wr(1,1,-z,-z)),bn.Nf<bn.vm&&(bn.Mf[b]=E,bn.Nf++),E}),Bh("Border","RoundedRectangle"),Bh("Ellipse",function(a,y,x){a="e"+y+","+x;var b=bn.Mf[a];return b!==void 0||(b=new Yi(Yi.F),b.endX=y,b.endY=x,b.spot1=Ac,b.spot2=rh,bn.Nf<bn.vm&&(bn.Mf[a]=b,bn.Nf++)),b}),Bh("Circle",function(a,y,x){a="c"+y+","+x;var b=bn.Mf[a];return b!==void 0||(b=new Yi(Yi.F),b.endX=y,b.endY=x,b.spot1=Ac,b.spot2=rh,b.defaultStretch=Mr,bn.Nf<bn.vm&&(bn.Mf[a]=b,bn.Nf++)),b}),Bh("TriangleRight",function(a,y,x){return new Yi().add(new il(0,0).add(new gs(sa,y,.5*x)).add(new gs(sa,0,x).close())).pm(0,.25,.5,.75)}),Bh("TriangleDown",function(a,y,x){return new Yi().add(new il(0,0).add(new gs(sa,y,0)).add(new gs(sa,.5*y,x).close())).pm(.25,0,.75,.5)}),Bh("TriangleLeft",function(a,y,x){return new Yi().add(new il(y,x).add(new gs(sa,0,.5*x)).add(new gs(sa,y,0).close())).pm(.5,.25,1,.75)}),Bh("TriangleUp",function(a,y,x){return new Yi().add(new il(y,x).add(new gs(sa,0,x)).add(new gs(sa,.5*y,0).close())).pm(.25,.5,.75,1)}),Bh("Triangle","TriangleUp"),Bh("Diamond",function(a,y,x){return new Yi().add(new il(.5*y,0).add(new gs(sa,0,.5*x)).add(new gs(sa,.5*y,x)).add(new gs(sa,y,.5*x).close())).pm(.25,.25,.75,.75)}),Bh("LineH",function(a,y,x){return a=new Yi(Yi.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Bh("LineV",function(a,y,x){return a=new Yi(Yi.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Bh("None","Rectangle"),Bh("BarH","Rectangle"),Bh("BarV","Rectangle"),Bh("MinusLine","LineH"),Bh("PlusLine",function(a,y,x){return new Yi().add(new il(0,x/2,!1).add(new gs(sa,y,x/2)).add(new gs(bl,y/2,0)).add(new gs(sa,y/2,x)))}),Bh("XLine",function(a,y,x){return new Yi().add(new il(0,x,!1).add(new gs(sa,y,0)).add(new gs(bl,0,0)).add(new gs(sa,y,x)))}),Bh("LineRight",function(a,y,x){return new Yi().add(new il(.25*y,0,!1).add(new gs(sa,.75*y,.5*x)).add(new gs(sa,.25*y,x)))}),Bh("LineDown",function(a,y,x){return new Yi().add(new il(0,.25*x,!1).add(new gs(sa,.5*y,.75*x)).add(new gs(sa,y,.25*x)))}),Bh("LineLeft",function(a,y,x){return new Yi().add(new il(.75*y,0,!1).add(new gs(sa,.25*y,.5*x)).add(new gs(sa,.75*y,x)))}),Bh("LineUp",function(a,y,x){return new Yi().add(new il(0,.75*x,!1).add(new gs(sa,.5*y,.25*x)).add(new gs(sa,y,.75*x)))}),bn.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=Ka,this.ir=null,this.jr="",this.lr=Bs,this.Gq="",this.Hq=Oa,this.Pq=ta,this.Kq=qa,this.Up=null,this.Cq=127,this.zr=ol,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 Yr(a,y){a===void 0||a instanceof Pn||typeof a=="string"?Jn.call(this,a):(Jn.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 Le(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new ai,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}In(Yr,Jn),Yr.prototype.cloneProtected=function(a){Jn.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},Wt=Yr.prototype,Wt.Af=function(a){Jn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Wt.toString=function(){var a=or(this.constructor)+"#"+fs(this);return this.data!==null&&(a+="("+Rr(this.data)+")"),a};function hc(a){a.P===null?a.P=new yv:a.P.nc&&(a.P=a.P.copy())}Wt.th=function(){Jn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Wt.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===vl&&y==="elements"?E instanceof Jn?ua(E,function(at){Wv(ot.partManager,at),pc(ot,at)}):hd(ot,E):a===Zl&&y==="elements"&&(E instanceof Jn?ua(E,function(at){Vv(ot.partManager,at,ot)}):hA(ot,E)),ot.cb(a,y,x,b,E,z,nt))},Wt.La=function(a){if(Jn.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 Jn&&ua(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Yr.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Yr.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Yr.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 Cr),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)))}}},Yr.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)}},Yr.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=vi();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);er(y)}},Yr.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 Ro?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof bs))break t;lh(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Jn.Link),x.adornedObject=y)}if(x!==null){x.type===Jn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Mw(this,a),y=this.adornments;y.next();)y.value.La()}},Yr.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 sm(a){if(eg(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,eg(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||Hy(a,y,x),x=a.Ib;var b=ai.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),ai.free(b),Sv(a,!1)}}Yr.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Ko);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Yr.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Yo;this.locationSpot.sb()&&(z=this.locationSpot);var nt=Le.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),Le.free(nt)}},Yr.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Yr.prototype.moveTo=function(a,y,x){a=Le.allocAt(a,y),this.move(a,x),Le.free(a)},Yr.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())},Yr.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())},Yr.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Cr),y.I(a)!==null)return y.I(a);var x=Jn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Lf(a,y,x,b){b===void 0&&(b=new Le),x=x.Mc()?Yo: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}Yr.prototype.mi=function(a){return a===void 0&&(a=new ai),a.assign(this.actualBounds)},Yr.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Ry(a){var y=Le.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Go?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 Ig(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=bu(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}Yr.prototype.arrange=function(){if(Hu(this)===!1)Uy(this);else{qc(this,!1);var a=this.Ib,y=ai.alloc();y.assign(a);var x=ng(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;Hy(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()||bn.B(y.width,a.width)&&bn.B(y.height,a.height)||0<=this.vw&&this.C(16),ai.free(y),Sv(this,!1)}},Wt=Yr.prototype,Wt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=ai.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),ai.free(E)}!(this.G&65536)&&a.D(y)||Ky(this,b,x),x.N(),!a.w()&&!y.w()||kh(a,y)||(this instanceof hr&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Wt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&_y(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 Le(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),eg(this)===!1&&Hu(this)===!1&&(sm(this),Uy(this)),!0};function _y(a,y,x,b,E){y===null||a instanceof bs||(y=y.animationManager,y.zb&&Nu(y,a,new Le(b,E),x))}Wt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;eg(this)||Hu(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)}sm(this)},Wt.Av=function(){this.G&=-2097153,sm(this)};function Hy(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,Le.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 bs||Nu(x,a,new Le(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new Le(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 hr&&vo(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?ng(a)?(Fl(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Wt.si=function(){return!0},Wt.Zc=function(){return!0},Wt.ph=function(){return!1},Wt.Dd=function(){return!0};function xv(a,y,x,b){y.constructor===a.constructor||Vy||(Vy=!0,kr('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),kr(" Old class: "+or(a.constructor)+", new class: "+or(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,ht=!1;a instanceof hr&&(ot=a.isTreeLeaf,at=a.isTreeExpanded,ht=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 hr&&(a.U=ot?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=ht?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)}Yr.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},Yr.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},Yr.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},Yr.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},Yr.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},Yr.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},Yr.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},Yr.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},Yr.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 eg(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 ng(a){return(a.G&131072)!==0}Wt=Yr.prototype,Wt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function am(a,y){a.G=y?a.G|1048576:a.G&-1048577}Wt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Wt.N=function(){var a=this.diagram;a!==null&&!Hu(this)&&!eg(this)&&this.isVisible()&&this.Ib.w()&&a.N(Ig(this,this.Ib))},Wt.v=function(){Jn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof hr&&this.labeledLink!==null&&Hl(this.labeledLink),a.$b(!0))},Wt.Vo=function(a){a||(a=this.Ah,a!==null&&Lv(a,this))},Wt.Wo=function(a){a||(a=this.Ah,a!==null&&Mv(a,this))},Wt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Wt.oz=function(){return Bv(this,this)};function Bv(a,y){var x=y.containingGroup;return x!==null?1+Bv(a,x):y instanceof hr&&(y=y.labeledLink,y!==null)?Bv(a,y):0}Wt.sz=function(){return Gy(this,this)};function Gy(a,y){var x=y.containingGroup;return x!==null||y instanceof hr&&(x=y.labeledLink,x!==null)?Gy(a,x):y}Wt.Td=function(a){return a instanceof Ro?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 hr&&(y=y.labeledLink,y!==null)?Pv(a,y,x):!1:!0}Wt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Ro&&am(y,!0),y instanceof hr){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 hr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Ro&&am(y,!1),y instanceof hr&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Yr.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof hr&&this.isLinkLabel)},Yr.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 hr&&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 ig(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof bs)){if(a.add(y),y instanceof hr){if(x&&y instanceof Ro)for(var nt=y.memberParts;nt.next();)ig(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,ht=ot.toNode;at=at===null||a.contains(at),ht=ht===null||a.contains(ht),(E?at&&ht:at||ht)&&ig(a,ot,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ig(a,y.value,x,b-1,E,z)}else if(y instanceof Wi)for(y=y.labelNodes;y.next();)ig(a,y.value,x,b,E,z)}}Oe.Object.defineProperties(Yr.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?wo: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(Zl,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(vl,"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&&(hc(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&&ku(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 bs?this.type!==Jn.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:ta},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),hc(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:qa},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),hc(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&&(hc(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:Oa},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),hc(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,Hu(this)===!1&&(sm(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)),_y(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 bs)){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 bs?this instanceof bs&&(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&&(lh(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&&(lh(x),x=x.copy(),x===null||x instanceof Wi||(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&&(hc(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&&(hc(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&&(hc(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 Wi?(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&&(hc(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&&(hc(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&&(hc(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:Ka},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),hc(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&&(hc(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&&(hc(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:Bs},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),hc(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&&on("Cannot make a Group a member of itself: "+this.toString()),on("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 Ro&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Lv(a,this):this instanceof Ro&&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 Ro){for(x=new Pi,ig(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof hr)for(b=b.linksConnected;b.next();)Up(b.value)}if(this instanceof hr){for(x=this.linksConnected;x.next();)Up(x.value);x=this.labeledLink,x!==null&&Up(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&ku(y,-1,a))}}else on("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&&(hc(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof hr&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(hc(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&&(hc(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ol},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),hc(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&&(hc(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&&(hc(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Yr.prototype.invalidateLayout=Yr.prototype.C,Yr.prototype.findCommonContainingGroup=Yr.prototype.px,Yr.prototype.isMemberOf=Yr.prototype.Td,Yr.prototype.findTopLevelPart=Yr.prototype.sz,Yr.prototype.findSubGraphLevel=Yr.prototype.oz,Yr.prototype.ensureBounds=Yr.prototype.Va,Yr.prototype.getDocumentBounds=Yr.prototype.mi,Yr.prototype.findObject=Yr.prototype.fb,Yr.prototype.moveTo=Yr.prototype.moveTo,Yr.prototype.invalidateAdornments=Yr.prototype.Wb,Yr.prototype.clearAdornments=Yr.prototype.Ej,Yr.prototype.removeAdornment=Yr.prototype.Jf,Yr.prototype.addAdornment=Yr.prototype.bh,Yr.prototype.findAdornment=Yr.prototype.Pj,Yr.prototype.updateTargetBindings=Yr.prototype.La;var Vy=!1;Yr.className="Part",Yr.LayoutNone=0,Yr.LayoutAdded=1,Yr.LayoutRemoved=2,Yr.LayoutShown=4,Yr.LayoutHidden=8,Yr.LayoutNodeSized=16,Yr.LayoutGroupLayout=32,Yr.LayoutNodeReplaced=64,Yr.LayoutStandard=127,Yr.LayoutAll=16777215;function bs(a,y){a===void 0||a instanceof Pn||typeof a=="string"?Yr.call(this,a):(Yr.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)}In(bs,Yr),bs.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},bs.prototype.updateRelationshipsFromData=function(){},bs.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Wi&&y instanceof Go){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 Go&&(E.ua=a)}}},bs.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Hu(a))},bs.prototype.Zc=function(){return!1},bs.prototype.gk=function(a,y,x,b,E,z,nt){if(a===vl&&y==="elements"){if(E instanceof Wh)this.$a===null&&(this.$a=E);else if(E instanceof Jn){var ot=E.Nl(function(at){return at instanceof Wh});ot instanceof Wh&&this.$a===null&&(this.$a=ot)}}else a===Zl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Jn&&this.$a.rg(b)&&(this.$a=null));Yr.prototype.gk.call(this,a,y,x,b,E,z,nt)},bs.prototype.updateAdornments=function(){},bs.prototype.Lj=function(){},Oe.Object.defineProperties(bs.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}}}),bs.className="Adornment";function bv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Ns,this.er=hm,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 hr(a,y){a===void 0||a instanceof Pn||typeof a=="string"?Yr.call(this,a):(Yr.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Si,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}In(hr,Yr),hr.prototype.cloneProtected=function(a){Yr.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Wt=hr.prototype,Wt.Af=function(a){Yr.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Mf(a){a.Ba===null?a.Ba=new bv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Wt.th=function(){Yr.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 Yy(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}Wt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=Yy(this,a,y,x),a!==null&&a.Sl()},Wt.gk=function(a,y,x,b,E,z,nt){a===vl&&y==="elements"?this.wc=null:a===Zl&&y==="elements"&&(this.wc=null),Yr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Wt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(_c(x.fromPort),_c(x.toPort),x.bb())}};function $y(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(_c(x.fromPort),_c(x.toPort),x.bb())}}function _c(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||_c(y.port)}}Wt.si=function(){return!0},hr.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},hr.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},hr.prototype.isVisible=function(){if(!Yr.prototype.isVisible.call(this))return!1;var a=!0,y=Oc,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Oc){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Sa){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===mc&&(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},hr.prototype.Zb=function(a){Yr.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)}},hr.prototype.qx=function(){var a=new Pi,y=new Pi;return Xy(this,this,a,y),y.iterator};function Xy(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)&&Xy(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}hr.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new xo(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Wt=hr.prototype,Wt.Mo=function(a){a===void 0&&(a=null);var y=new xo(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Wt.Sd=function(a){a===void 0&&(a=null);var y=new xo(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Wt.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 fo(x):wo},Wt.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 fo(x):wo},Wt.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 fo(x):wo},Wt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new xo(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},Wt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new xo(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 lm(a,y,x){_c(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 um(a,y,x){_c(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)):g0(y)))}function g0(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}}}hr.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Wt=hr.prototype,Wt.Vo=function(a){Yr.prototype.Vo.call(this,a),a||(g0(this),a=this.Yk,a!==null&&s1(a,this))},Wt.Wo=function(a){Yr.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Wt.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,Yr.prototype.Lj.call(this)},Wt.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 Cr: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=vi()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);er(x)}}}Wt.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},Wt.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}},Wt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)am(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;)am(y,!1),y=y.pg();return x},Wt.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},Wt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof hr)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},Wt.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},Wt.uz=function(){return t1(this,this)};function t1(a,y){return y=y.pg(),y===null?0:1+t1(a,y)}Wt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new xo(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},Wt.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 Si,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 Si,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new fo(x):wo},Wt.wz=function(a){a===void 0&&(a=1/0);var y=new Pi;return ig(y,this,!1,a,!0),y},hr.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===Oc),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 ht=ot.value;if(ht.isTreeLink&&(ht=ht.To(a),ht!==null&&ht!==a)){var dt=y.contains(ht);if(dt||y.add(ht),nt){var yt=x?ht.Oo():ht.Po();at.uv=a,yt.all(function(Tt){return function(Gt){return Gt===Tt.uv||!Gt.isTreeExpanded}}(at))&&b.Aj(ht,E),ht.oh(),ht.Zb(!1)}ht.isTreeExpanded&&(ht.wasTreeExpanded=ht.isTreeExpanded,dt||n1(ht,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}hr.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===Oc),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(),ht={};at.next();){var dt=at.value;if(dt.isTreeLink&&(ot||dt.fd||dt.bb(),dt=dt.To(a),dt!==null&&dt!==a&&!y.contains(dt))){if(y.add(dt),!ot){dt.Zb(!0),dt.oh();var yt=x?dt.Oo():dt.Po();ht.vv=a,yt.all(function(Tt){return function(Gt){return Gt===Tt.vv||!Gt.isTreeExpanded}}(ht))&&E.Cj(dt,z)}(2<b||dt.wasTreeExpanded)&&(dt.wasTreeExpanded=!1,i1(dt,y,x,b-1,E,z,nt))}ht={vv:ht.vv}}a.isTreeExpanded=!0}Oe.Object.defineProperties(hr.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:hm},set:function(a){var y=this.portSpreading;y!==a&&(Mf(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&&vo(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Ns},set:function(a){typeof a=="number"&&(a=new Hr(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Mf(this),this.Ba.yp=a;var x=this.diagram;x!==null&&vo(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&&(Mf(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&&(Mf(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&&(Mf(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),Hl(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&&(Mf(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))}}}),hr.prototype.expandTree=hr.prototype.expandTree,hr.prototype.collapseTree=hr.prototype.collapseTree,hr.prototype.findTreeParts=hr.prototype.wz,hr.prototype.findTreeChildrenNodes=hr.prototype.Ou,hr.prototype.findTreeChildrenLinks=hr.prototype.Qo,hr.prototype.findTreeLevel=hr.prototype.uz,hr.prototype.findTreeParentChain=hr.prototype.vz,hr.prototype.findTreeParentNode=hr.prototype.pg,hr.prototype.findTreeParentLink=hr.prototype.kh,hr.prototype.findCommonTreeParent=hr.prototype.gz,hr.prototype.findTreeRoot=hr.prototype.xz,hr.prototype.isInTreeOf=hr.prototype.Nz,hr.prototype.findPort=hr.prototype.ns,hr.prototype.findLinksTo=hr.prototype.kz,hr.prototype.findLinksBetween=hr.prototype.jz,hr.prototype.findNodesInto=hr.prototype.Oo,hr.prototype.findNodesOutOf=hr.prototype.Po,hr.prototype.findNodesConnected=hr.prototype.Mu,hr.prototype.findLinksInto=hr.prototype.Sd,hr.prototype.findLinksOutOf=hr.prototype.Mo,hr.prototype.findExternalTreeLinksConnected=hr.prototype.qx,hr.prototype.invalidateConnectedLinks=hr.prototype.Bd,hr.prototype.invalidateLinkBundle=hr.prototype.Lz;var Nw=new ri(hr,"SpreadingNone",10),hm=new ri(hr,"SpreadingEvenly",11),Fv=new ri(hr,"SpreadingPacked",12);hr.className="Node",hr.SpreadingNone=Nw,hr.SpreadingEvenly=hm,hr.SpreadingPacked=Fv;function Ro(a,y){a===void 0||a instanceof Pn||typeof a=="string"?hr.call(this,a):(hr.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Pi,this.$a=null,this.Sc=new Ya,this.Sc.group=this,this.gl=new Pi,this.tb=this.$p=null,y&&Object.assign(this,y)}In(Ro,hr),Ro.prototype.cloneProtected=function(a){hr.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Wh});y instanceof Wh?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())},Wt=Ro.prototype,Wt.Af=function(a){hr.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 hr)x.Bd(y);else if(x instanceof Wi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Wt.gk=function(a,y,x,b,E,z,nt){if(a===vl&&y==="elements"){if(E instanceof Wh)this.$a===null?this.$a=E:this.$a!==E&&on("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Jn){var ot=E.Nl(function(at){return at instanceof Wh});ot instanceof Wh&&(this.$a===null?this.$a=ot:this.$a!==ot&&on("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Zl&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Jn&&this.$a.rg(b)&&(this.$a=null));hr.prototype.gk.call(this,a,y,x,b,E,z,nt)},Wt.Xl=function(a,y){hr.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Jn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Jn&&(a=a.Pb()),this.tb===null&&(this.tb=new ai),a.mi(this.tb),a instanceof Go&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Wt.eh=function(a,y,x,b){this.nf=this.$a,hr.prototype.eh.call(this,a,y,x,b)},Wt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Wi||y.Va()}),hr.prototype.Va.call(this)},Wt.si=function(){if(!hr.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof hr){if(y.isVisible()&&Hu(y))return!1}else if(y instanceof Wi&&y.isVisible()&&Hu(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Lv(a,y){if(a.Gn.add(y)){y instanceof Ro&&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 Wi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Mv(a,y){if(a.Gn.remove(y)){y instanceof Ro&&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 Wi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Wt.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)}hr.prototype.Lj.call(this)},Ro.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Zn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Ro.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Zn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Ro.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))},Wt=Ro.prototype,Wt.Bd=function(a){var y=(this.U&65536)!==0;if(hr.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()?(_c(x.fromPort),_c(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(_c(x.fromPort),_c(x.toPort),x.bb()))}}},Wt.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 hr)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Wt.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 hr)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},Wt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Pi;return a(this,y),y},Wt.Rj=function(){var a=new Pi;return ig(a,this,!0,0,!0),a.remove(this),a},Wt.Zb=function(a){hr.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Ro.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 Ro&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,r1(z,y,x,b)),z instanceof hr)z.Bd(y),x.Aj(z,b);else if(z instanceof Wi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Ro.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 Ro&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,o1(z,y,x,b)),z instanceof hr)z.Bd(y),x.Cj(z,b);else if(z instanceof Wi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Ro.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=Le.alloc(),hr.prototype.move.call(this,a,y),a=new Pi,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Wi&&(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 hr&&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 Wi&&(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());Le.free(z)}},Oe.Object.defineProperties(Ro.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&&on("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&&(Mf(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&&(Mf(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&&(Mf(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&&(Mf(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)}}}),Ro.prototype.expandSubGraph=Ro.prototype.expandSubGraph,Ro.prototype.collapseSubGraph=Ro.prototype.collapseSubGraph,Ro.prototype.findSubGraphParts=Ro.prototype.Rj,Ro.prototype.findContainingGroupChain=Ro.prototype.hz,Ro.prototype.findExternalNodesConnected=Ro.prototype.iz,Ro.prototype.findExternalLinksConnected=Ro.prototype.Lu,Ro.prototype.ensureBounds=Ro.prototype.Va,Ro.className="Group";function Wh(a){xn.call(this),this.yb=Ao,this.ko=new ai(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}In(Wh,xn),Wh.prototype.cloneProtected=function(a){xn.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Wh.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return ia(0,0,y.width,y.height,a.x,a.y)},Wh.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Ro||a instanceof bs)||on("Placeholder is not inside a Group or Adornment."),a instanceof Ro){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ka(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=Le.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Le.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 Go&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ht=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==Jn.Link&&(ot=z.ga(a.category==="Selection"?Oa:a.locationSpot,Le.alloc()),a.location=ot,Le.free(ot)),isNaN(ht)||isNaN(nt)?(a=z.ga(Oa,Le.alloc()),ht=ai.allocAt(a.x,a.y,0,0),ht.Ye(z.ga(Ll,a)),ht.Ye(z.ga(su,a)),ht.Ye(z.ga(Cs,a)),ka(y,ht.width+b||0,ht.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Le.free(a),ai.free(ht)):(ka(y,ht+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Wh.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Wh.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Ro&&!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=ai.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Ro&&!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)),ai.free(x),b&&y instanceof Ro&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Wh.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Ro))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 Wi&&(!y.computesBoundsIncludingLinks||xh(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},Oe.Object.defineProperties(Wh.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Hr(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Wh.className="Placeholder";function Wi(a){Yr.call(this,Jn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Vh,this.Om=0,this.Qm=Vh,this.Rm=NaN,this.qj=Ov,this.po=.5,this.wd=null,this.Nb=new Si().freeze(),this.Tg=this.Mg=null,this.ml=new ai,this.ua=new Yi,this.u=this.o=this.Sf=this.Wf=null,this.su=new Le,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}In(Wi,Yr),Wi.prototype.cloneProtected=function(a){Yr.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())},Wt=Wi.prototype,Wt.Af=function(a){Yr.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&&_c(y),a=a.toPort,a!==null&&_c(a)},Wt.qb=function(a){a.classType===Wi?(a.value&2)===2?this.routing=a:a===nd||a===If||a===_p?this.curve=a:a===v0||a===pm||a===mm?this.adjusting=a:a!==Ov&&a!==Vh&&on("Unknown Link enum value for a Link property: "+a):Yr.prototype.qb.call(this,a)},Wt.Xc=function(){this.ba===null&&(this.ba=new Vf)},Wt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Hu(a)||eg(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Hu(a)||eg(a)))},Wt.zv=function(){return!1},Wt.Av=function(){},Wt.Zc=function(){return!1},Wi.prototype.computeAngle=function(a,y,x){return Wi.computeAngle(y,x)},Wi.computeAngle=function(a,y){switch(a){default:case Vh:a=0;break;case y0:a=y;break;case w0:a=y+90;break;case x0:a=y-90;break;case Dv:a=y+180;break;case vm:a=bn.bp(y),90<a&&270>a&&(a-=180);break;case S0:a=bn.bp(y+90),90<a&&270>a&&(a-=180);break;case C0:a=bn.bp(y-90),90<a&&270>a&&(a-=180);break;case ym:if(a=bn.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return bn.bp(a)};function Up(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}Wt=Wi.prototype,Wt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Yr.prototype.oh.call(this)},Wt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Wt.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()}Wt.Vo=function(a){if(Yr.prototype.Vo.call(this,a),Tg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,lm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||lm(x,this,b)}p0(this)}},Wt.Wo=function(a){if(Yr.prototype.Wo.call(this,a),Tg(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||um(x,this,b)}m0(this)}},Wt.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))},Wi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Wi.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?Yr.prototype.move.call(this,a,!1):(a=Le.allocAt(x.x+b,x.y+E),Yr.prototype.move.call(this,a,!1),Le.free(a)),Nf(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Wi.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},Wi.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},Wi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(ml),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()===nd))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()===nd){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return bn.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),bn.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},Wi.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()===nd))return this.ua.wx(.5);if(this.computeCurve()===nd&&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),bn.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)},Wt=Wi.prototype,Wt.i=function(a){return this.Nb.s[a]},Wt.dd=function(a,y){this.Nb.cd(a,y)},Wt.L=function(a,y,x){this.Nb.cd(a,new Le(y,x))},Wt.Kz=function(a,y){this.Nb.Gb(a,y)},Wt.m=function(a,y,x){this.Nb.Gb(a,new Le(y,x))},Wt.ne=function(a){this.Nb.add(a)},Wt.yf=function(a,y){this.Nb.add(new Le(a,y))},Wt.pv=function(a){this.Nb.mb(a)},Wt.Fj=function(){this.Nb.clear()};function Nf(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 Si,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new Le(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),Hl(a)),b?cm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&Qs(nt.animationManager,a,E),a.g("points",z,E)}}Wt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Wt.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,ht=at.length,dt=0;dt<ht;dt++){var yt=at[dt];nt=Math.min(yt.x,nt),ot=Math.min(yt.y,ot),yt.freeze()}if(y.freeze(),ht===z){for(z=0;z<ht;z++)if(dt=E[z],yt=at[z],dt.x-x!==yt.x-nt||dt.y-b!==yt.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Qs(x.animationManager,this,y),cm(this),this.g("points",a,y)}},Wt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function cm(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),gm(a,!1))}Wt.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())}},Wt.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()}}},Wi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(ip||(ip=new hr,ip.desiredSize=Eo,ip.Va()),this.defaultFromPoint&&(ip.location=this.defaultFromPoint,ip.Va(),y=a=ip)):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?(rp||(rp=new hr,rp.desiredSize=Eo,rp.Va()),this.defaultToPoint&&(rp.location=this.defaultToPoint,rp.Va(),E=b=rp)):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=Rp(nt),at=Rp(x),ht=y===E&&y!==null,dt=this.isOrthogonal,yt=this.curve===nd;this.Wf=ht&&!dt?yt=!0:!1;var Tt=this.computeAdjusting()===Vh||ht;if(!dt&&!ht&&ot&&at){if(ot=!1,!Tt&&3<=z&&(Tt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,Tt,z-1,at))&&(Tt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Tt,z-1,at)),!ot)if(this.Fj(),yt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),Tt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=Tt.x-z.x,at=Tt.y-z.y,ht=this.computeCurviness(),yt=dt=0;var Gt=z.x+ot/3,$t=z.y+at/3,he=Gt,Qe=$t;bn.B(at,0)?Qe=0<ot?Qe-ht:Qe+ht:(dt=-ot/at,yt=Math.sqrt(ht*ht/(dt*dt+1)),0>ht&&(yt=-yt),he=(0>at?-1:1)*yt+Gt,Qe=dt*(he-Gt)+$t),Gt=z.x+2*ot/3,$t=z.y+2*at/3;var Me=Gt,Ze=$t;bn.B(at,0)?Ze=0<ot?Ze-ht:Ze+ht:(Me=(0>at?-1:1)*yt+Gt,Ze=dt*(Me-Gt)+$t),this.Fj(),this.ne(z),this.yf(he,Qe),this.yf(Me,Ze),this.ne(Tt),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,Tt=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,Tt),E=this.getLinkPoint(z,Tt,x,!1,!1,a,y),this.hasCurviness()?(Tt=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+Tt/2,y=b.y+x/2,z=a,ot=y,bn.B(x,0)?ot=0<Tt?ot-nt:ot+nt:(Tt=-Tt/x,z=Math.sqrt(nt*nt/(Tt*Tt+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=Tt*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=ai.alloc(),y.mi(ot),at=ot.ca(E),Tt.mi(ot),ht=ot.ca(b),(at||ht)&&(nt=y.ga(Am(nt),new Le),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=Tt.ga(Am(x),new Le),this.dd(1,this.getLinkPointFromPoint(z,Tt,x,b,!1,x))),ai.free(ot))}else{yt=this.isAvoiding,Tt&&(dt&&yt||ht)&&this.Fj();var tn=ht?this.computeCurviness():0;yt=this.getLinkPoint(a,y,nt,!0,dt,b,E),Gt=he=$t=0,(dt||!ot||ht)&&(Qe=this.computeEndSegmentLength(a,y,nt,!0),Gt=this.getLinkDirection(a,y,yt,nt,!0,dt,b,E),ht&&(ot||nt.D(x)||!dt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Gt-=dt?90:30,0>tn&&(Gt-=180)),0>Gt?Gt+=360:360<=Gt&&(Gt-=360),ht&&(Qe+=Math.abs(tn)*(dt?1:2)),Gt===0?$t=Qe:Gt===90?he=Qe:Gt===180?$t=-Qe:Gt===270?he=-Qe:($t=Qe*Math.cos(Gt*Math.PI/180),he=Qe*Math.sin(Gt*Math.PI/180)),nt.Mc()&&ht&&(Qe=y.ga(Yo,Le.alloc()),Me=Le.allocAt(Qe.x+1e3*$t,Qe.y+1e3*he),this.getLinkPointFromPoint(a,y,Qe,Me,!0,yt),Le.free(Qe),Le.free(Me))),Qe=this.getLinkPoint(b,E,x,!1,dt,a,y);var sn=Ze=Me=0;if(dt||!at||ht){var Cn=this.computeEndSegmentLength(b,E,x,!1);sn=this.getLinkDirection(b,E,Qe,x,!1,dt,a,y),ht&&(at||nt.D(x)||!dt&&nt.x+x.x===1&&nt.y+x.y===1)&&(sn+=dt?0:30,0>tn&&(sn+=180)),0>sn?sn+=360:360<=sn&&(sn-=360),ht&&(Cn+=Math.abs(tn)*(dt?1:2)),sn===0?Me=Cn:sn===90?Ze=Cn:sn===180?Me=-Cn:sn===270?Ze=-Cn:(Me=Cn*Math.cos(sn*Math.PI/180),Ze=Cn*Math.sin(sn*Math.PI/180)),x.Mc()&&ht&&(x=E.ga(Yo,Le.alloc()),nt=Le.allocAt(x.x+1e3*Me,x.y+1e3*Ze),this.getLinkPointFromPoint(b,E,x,nt,!1,Qe),Le.free(x),Le.free(nt))}x=yt,(dt||!ot||ht)&&(x=new Le(yt.x+$t,yt.y+he)),nt=Qe,(dt||!at||ht)&&(nt=new Le(Qe.x+Me,Qe.y+Ze)),!Tt&&!dt&&ot&&3<z&&this.adjustPoints(0,yt,z-2,nt)?this.dd(z-1,Qe):!Tt&&!dt&&at&&3<z&&this.adjustPoints(1,x,z-1,Qe)?this.dd(0,yt):!Tt&&(dt?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,yt),this.dd(z-1,Qe)):(this.Fj(),this.ne(yt),(dt||!ot||ht)&&this.ne(x),dt&&this.addOrthoPoints(x,Gt,nt,sn,a,b),(dt||!at||ht)&&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}Wi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Le),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,ht=a.m11*E,dt=E*(a.m21*a.dy-a.m22*a.dx),yt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+dt,b=b.x*ot+b.y*ht+yt,nt=x.x*nt+x.y*at+dt,x=x.x*ot+x.y*ht+yt}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function dm(a,y){var x=y.Zn;return x===null&&(x=new op,x.port=y,x.node=y.part,y.Zn=x),f1(x,a)}Wi.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new Le),x.sb()&&!Rp(x))return y.ga(x,ot),ot;if(x.$c()){var at=dm(this,y);if(at!==null){if(ot.assign(at.Zo),E&&this.routing===l1){var ht=dm(this,nt);if(ht!==null&&at.Gl<ht.Gl){at=Le.alloc(),ht=Le.alloc();var dt=new ai(y.ga(Oa,at),y.ga(Ll,ht)),yt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,yt,!b,E,a,y,ht),(x.Hf(tl)||x.Hf(tu))&&a.y>=dt.y&&a.y<=dt.y+dt.height?ot.y=a.y:(x.Hf(Ml)||x.Hf(Pl))&&a.x>=dt.x&&a.x<=dt.x+dt.width&&(ot.x=a.x),Le.free(at),Le.free(ht)}}return ot}}return x=y.ga(Am(x),Le.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=Le.alloc(),nt=nt.ga(Am(at),z),E&&(nt=Nv(x,nt)),Le.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),Le.free(x),ot},Wi.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=dm(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(Yo,Le.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Nv(at,ot.copy()):x):(x=Le.alloc(),ot=ot.ga(Yo,x),Le.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,Le.free(at),at=x}return b.Mc()&&nt.Td(a)&&(at+=180,360<=at&&(at-=360)),Rp(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},Wi.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=dm(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)},Wi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Yo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Bs?Ma:y)):(a=y||this.toPort,a===null?a=Yo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Bs?Ma:y)),a};function Rp(a){return a===Ma||a.x===.5&&a.y===.5}function Am(a){return a.x===.5&&a.y===.5?a:Yo}Wi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Vh&&4<this.pointsCount?this.computeMidPoint(new Le):(a=y.Zn,a=a!==null?f1(a,this):null,a!==null?a.Zo:y.ga(Yo))},Wi.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},Wi.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=Ko.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return pd(this,y,x,E),z===void 0&&Ko.free(nt),!0;if(this.Yc(a,nt)){var ot=!1;if(!this.isAtomic)for(var at=this.O.s,ht=at.length;ht--;){var dt=at[ht];if(dt.visible||dt===this.locationObject){var yt=dt.actualBounds,Tt=this.naturalBounds;if(!(yt.x>Tt.width||yt.y>Tt.height||0>yt.x+yt.width||0>yt.y+yt.height)){if(yt=Ko.alloc(),yt.set(nt),dt instanceof Jn)ot=dt.Cf(a,y,x,b,E,yt);else if(this.path===dt){if(dt instanceof Go)if(ot=a,Tt=b,dt.pickable===!1)ot=!1;else if(yt.multiply(dt.transform),Tt)t:{var Gt=ot,$t=yt;if(dt.fh(Gt,$t))ot=!0;else{if($t===void 0&&($t=dt.transform,Gt.Re(dt.actualBounds))){ot=!0;break t}ot=Gt.left,Tt=Gt.right;var he=Gt.top;Gt=Gt.bottom;var Qe=Le.alloc(),Me=Le.alloc(),Ze=Le.alloc(),tn=Ko.alloc();tn.set($t),tn.bv(dt.transform),tn.Vj(),Me.x=Tt,Me.y=he,Me.transform(tn),Qe.x=ot,Qe.y=he,Qe.transform(tn),$t=!1,bf(dt,Qe,Me,Ze)?$t=!0:(Qe.x=Tt,Qe.y=Gt,Qe.transform(tn),bf(dt,Qe,Me,Ze)?$t=!0:(Me.x=ot,Me.y=Gt,Me.transform(tn),bf(dt,Qe,Me,Ze)?$t=!0:(Qe.x=ot,Qe.y=he,Qe.transform(tn),bf(dt,Qe,Me,Ze)&&($t=!0)))),Ko.free(tn),Le.free(Qe),Le.free(Me),Le.free(Ze),ot=$t}}else ot=dt.fh(ot,yt)}else ot=_l(dt,a,b,yt);ot&&(Tt=dt,y!==null&&(Tt=y(dt)),Tt&&(x===null||x(Tt))&&E.add(Tt)),Ko.free(yt)}}}return z===void 0&&Ko.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Ko.free(nt),!1},Wi.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?nd:this.curve},Wi.prototype.computeCorner=function(){if(this.curve===nd)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Wi.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},Wi.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===y0||b===vm||b===Dv?a=Math.max(a,E):b===x0||b===C0||b===w0||b===S0?a=Math.max(a,nt):(y=y.ga(Yo).ab(x.ga(Yo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===nd&&(a*=1.333)}}return a},Wi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Vh&&x.bb()}},Wi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=u1;var y=this.Sf;if(y!==null){for(var x=vi(),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),er(x)}}return a},Wi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Wi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Wi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===pm)return!1;E===mm&&(E=v0)}switch(E){case pm: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,ht=Math.sqrt(ot*ot+at*at);if(!bn.$(ht,0)){if(bn.$(ot,0))var dt=0>at?-Math.PI/2:Math.PI/2;else dt=Math.atan(at/Math.abs(ot)),0>ot&&(dt=Math.PI-dt);nt=y.x;var yt=y.y;ot=b.x-nt;var Tt=b.y-yt;for(at=Math.sqrt(ot*ot+Tt*Tt),bn.$(ot,0)?Tt=0>Tt?-Math.PI/2:Math.PI/2:(Tt=Math.atan(Tt/Math.abs(ot)),0>ot&&(Tt=Math.PI-Tt)),ht=at/ht,dt=Tt-dt,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),bn.$(y,0)||(bn.$(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+dt,y*=ht,this.L(a,nt+y*Math.cos(ot),yt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case mm:if(z=this.i(a),yt=this.i(x),!z.Xa(y)||!yt.Xa(b)){E=z.x,z=z.y,nt=yt.x,yt=yt.y,ht=(nt-E)*(nt-E)+(yt-z)*(yt-z),ot=y.x,dt=y.y,at=b.x,Tt=b.y;var Gt=1;if(at-ot!==0){var $t=(Tt-dt)/(at-ot);Gt=Math.sqrt(1+1/($t*$t))}else $t=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var he=y.x,Qe=y.y,Me=.5;ht!==0&&(Me=((E-he)*(E-nt)+(z-Qe)*(z-yt))/ht);var Ze=E+Me*(nt-E),tn=z+Me*(yt-z);y=Math.sqrt((he-Ze)*(he-Ze)+(Qe-tn)*(Qe-tn)),Qe<$t*(he-Ze)+tn&&(y=-y),0<$t&&(y=-y),he=ot+Me*(at-ot),Me=dt+Me*(Tt-dt),$t!==0?(y=he+y/Gt,this.L(a,y,Me-(y-he)/$t)):this.L(a,he,Me+y)}this.dd(x,b)}return!0;case v0:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),ot=z.x,dt=z.y,yt=ot,ht=dt,bn.B(E.y,z.y)?bn.B(z.x,nt.x)?dt=y.y:bn.B(z.y,nt.y)&&(ot=y.x):bn.B(E.x,z.x)&&(bn.B(z.y,nt.y)?ot=y.x:bn.B(z.x,nt.x)&&(dt=y.y)),this.L(a+1,ot,dt),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),ot=z.x,dt=z.y,at=ot,Tt=dt,bn.B(E.y,z.y)?bn.B(z.x,nt.x)?dt=b.y:bn.B(z.y,nt.y)&&(ot=b.x):bn.B(E.x,z.x)&&(bn.B(z.y,nt.y)?ot=b.x:bn.B(z.x,nt.x)&&(dt=b.y)),this.L(x-1,ot,dt),Iv(this))){this.L(a+1,yt,ht),this.L(x-1,at,Tt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Wi.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(B0,B0),at.Bc(B0,B0),ot.Ye(a),at.Ye(x);var ht=Le.alloc(),dt=Le.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?(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),b===180?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),dt.x=ht.x,dt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.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,dt.x=ht.x,dt.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),dt.y=ht.y)):(ht.h(a.x,x.y),dt.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))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ht.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),dt.x=x.x,dt.y=ht.y),ht.y>ot.top&&ht.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(b===90||b===270)&&(ht.h(Math.max((a.x+x.x)/2,a.x),a.y),dt.h(ht.x,x.y)):(ht.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)),dt.x=x.x,dt.y=ht.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?(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),b===0?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),dt.x=ht.x,dt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.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,dt.x=ht.x,dt.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),dt.y=ht.y)):(ht.h(a.x,x.y),dt.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))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ht.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),dt.x=x.x,dt.y=ht.y),ht.y>ot.top&&ht.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=at.left&&a.x<=x.x?(b===90||b===270)&&(ht.h(Math.min((a.x+x.x)/2,a.x),a.y),dt.h(ht.x,x.y)):(ht.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)),dt.x=x.x,dt.y=ht.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?(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),b===270?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),dt.x=x.x,dt.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ht.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,dt.x=x.x,dt.y=ht.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(ht.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ht.y=a.y,dt.x=ht.x)):(ht.h(x.x,a.y),dt.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))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ht.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ht.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),dt.x=ht.x,dt.y=x.y),ht.x>ot.left&&ht.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(ht.h(a.x,Math.max((a.y+x.y)/2,a.y)),dt.h(x.x,ht.y)):(ht.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)),dt.x=ht.x,dt.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?(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),b===90?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),dt.x=x.x,dt.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ht.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,dt.x=x.x,dt.y=ht.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(ht.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ht.y=a.y,dt.x=ht.x)):(ht.h(x.x,a.y),dt.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))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ht.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ht.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),dt.x=ht.x,dt.y=x.y),ht.x>ot.left&&ht.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=at.top&&a.y<=x.y?(b===0||b===180)&&(ht.h(a.x,Math.min((a.y+x.y)/2,a.y)),dt.h(x.x,ht.y)):(ht.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)),dt.x=ht.x,dt.y=x.y)));var yt=x;if(this.isAvoiding){var Tt=this.diagram;if(Tt===null||E===z||this.layer.isTemporary||!mi(Tt)||ot.ca(yt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var Gt=Ri(Tt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Gt.Yj(Math.min(a.x,ht.x),Math.min(a.y,ht.y),Math.abs(a.x-ht.x),Math.abs(a.y-ht.y))&&Gt.Yj(Math.min(ht.x,dt.x),Math.min(ht.y,dt.y),Math.abs(ht.x-dt.x),Math.abs(ht.y-dt.y))&&Gt.Yj(Math.min(dt.x,yt.x),Math.min(dt.y,yt.y),Math.abs(dt.x-yt.x),Math.abs(dt.y-yt.y)))y=!1;else{E=a,z=yt;var $t=x=null;if(Tt.isVirtualized){Tt=Gt.bounds.copy(),Tt.Bc(-Gt.Ho,-Gt.Go);var he=Le.alloc();Hp(Gt,a.x,a.y)||(bn.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,a.x,a.y,ht.x,ht.y,he)?(x=a=he.copy(),y=he.ab(ht)):bn.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,ht.x,ht.y,dt.x,dt.y,he)?(x=a=he.copy(),y=he.ab(dt)):bn.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,dt.x,dt.y,yt.x,yt.y,he)&&(x=a=he.copy(),y=he.ab(yt))),Hp(Gt,yt.x,yt.y)||(bn.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,yt.x,yt.y,dt.x,dt.y,he)?($t=yt=he.copy(),b=dt.ab(he)):bn.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,dt.x,dt.y,ht.x,ht.y,he)?($t=yt=he.copy(),b=ht.ab(he)):bn.Ff(Tt.x,Tt.y,Tt.x+Tt.width,Tt.y+Tt.height,ht.x,ht.y,a.x,a.y,he)&&($t=yt=he.copy(),b=a.ab(he))),Le.free(he)}ot=ot.copy().ed(at),ot.Bc(Gt.Ho*Gt.Os,Gt.Go*Gt.Os),d1(Gt,a,y,yt,b,ot,!0),at=JA(Gt,yt.x,yt.y),!Gt.abort&&at>=Qp&&(c1(Gt),ot.Bc(Gt.Ho*Gt.Hx,Gt.Go*Gt.Ix),d1(Gt,a,y,yt,b,ot,!1),at=JA(Gt,yt.x,yt.y)),!Gt.abort&&at<Qp&&JA(Gt,yt.x,yt.y)!==Tf?(Tv(this,Gt,yt.x,yt.y,b,!0,nt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=yt.y):(ot.x=yt.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?bn.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)):bn.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=Gt.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)&&(bn.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)):bn.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=Gt.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)),$t!==null&&(b===0||b===180?this.yf(z.x,$t.y):this.yf($t.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ht.copy()),this.ne(dt.copy())),Le.free(ht),Le.free(dt)}},Wi.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||!mi(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Ri(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 Tv(a,y,x,b,E,z,nt){var ot=y.Ho,at=y.Go,ht=JA(y,x,b),dt=x,yt=b;for(E===0?dt+=ot:E===90?yt+=at:E===180?dt-=ot:yt-=at,E!==nt&&ht>kg&&JA(y,dt,yt)!==ht-1&&(JA(y,x-ot,b)===ht-1?(E=180,dt=x-ot,yt=b):JA(y,x+ot,b)===ht-1?(E=0,dt=x+ot,yt=b):JA(y,x,b-at)===ht-1?(E=270,dt=x,yt=b-at):JA(y,x,b+at)===ht-1&&(E=90,dt=x,yt=b+at));ht>kg&&JA(y,dt,yt)===ht-1;)x=dt,b=yt,E===0?dt+=ot:E===90?yt+=at:E===180?dt-=ot:yt-=at,--ht;z?ht>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),ht>kg&&(z=E,nt=x,dt=b,E===0?(z=90,dt+=at):E===90?(z=180,nt-=ot):E===180?(z=270,dt-=at):E===270&&(z=0,nt+=ot),JA(y,nt,dt)===ht-1?Tv(a,y,nt,dt,z,!1,z):(nt=x,dt=b,E===0?(z=270,dt-=at):E===90?(z=0,nt+=ot):E===180?(z=90,dt+=at):E===270&&(z=180,nt-=ot),JA(y,nt,dt)===ht-1&&Tv(a,y,nt,dt,z,!1,z))),a.yf(x,b)}Wi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=os(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=os(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},Wi.prototype.qc=function(){this.lk=!1,this.v()},Wi.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 Go&&(E.ua=this.ua)}}},Wi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Tg(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===nd&&3<=y&&!bn.$(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||Tg(this)){if(a.type=Yi.o,ot=jy(a),this.computeShortLength(!0)!==0&&(E=ep(this,E,!0,z)),jp(ot,E.x,E.y,!1),nt===nd&&3<=y&&!bn.$(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=ep(this,E,!1,z)),Ff(ot,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Le.allocAt(b,at),x=Le.alloc(),x.assign(this.i(1)),z=Le.allocAt(b,at),E=Le.allocAt(b,at),nt=this.i(0);for(var ht,dt=this.smoothness/3,yt=1;yt<this.pointsCount-1;yt++){ht=this.i(yt);var Tt=nt,Gt=ht,$t=this.i(kv(this,ht,yt,!1));if((!bn.$(Tt.x,Gt.x)||!bn.$(Gt.x,$t.x))&&(!bn.$(Tt.y,Gt.y)||!bn.$(Gt.y,$t.y))){var he=dt;isNaN(he)&&(he=this.smoothness/3);var Qe=Tt.x;Tt=Tt.y;var Me=Gt.x;Gt=Gt.y;var Ze=$t.x;$t=$t.y;var tn=he*fm(Qe,Tt,Me,Gt);he*=fm(Me,Gt,Ze,$t),bn.$(Tt,Gt)&&bn.$(Me,Ze)&&(Me>Qe?$t>Gt?(z.x=Me-tn,z.y=Gt-tn,E.x=Me+he,E.y=Gt+he):(z.x=Me-tn,z.y=Gt+tn,E.x=Me+he,E.y=Gt-he):$t>Gt?(z.x=Me+tn,z.y=Gt-tn,E.x=Me-he,E.y=Gt+he):(z.x=Me+tn,z.y=Gt+tn,E.x=Me-he,E.y=Gt-he)),bn.$(Qe,Me)&&bn.$(Gt,$t)&&(Gt>Tt?(Ze>Me?(z.x=Me-tn,z.y=Gt-tn,E.x=Me+he):(z.x=Me+tn,z.y=Gt-tn,E.x=Me-he),E.y=Gt+he):(Ze>Me?(z.x=Me-tn,z.y=Gt+tn,E.x=Me+he):(z.x=Me+tn,z.y=Gt+tn,E.x=Me-he),E.y=Gt-he)),(bn.$(Qe,Me)&&bn.$(Me,Ze)||bn.$(Tt,Gt)&&bn.$(Gt,$t))&&(Qe=.5*(Qe+Ze),Tt=.5*(Tt+$t),z.x=Qe,z.y=Tt,E.x=Qe,E.y=Tt),(yt===1||yt===2&&bn.$(nt.x,this.i(0).x)&&bn.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ht.x),x.y=.5*(nt.y+ht.y)),Ff(ot,x.x-b,x.y-at,z.x-b,z.y-at,ht.x-b,ht.y-at),y.set(z),x.set(E),nt=ht}}ht=nt.x,nt=nt.y,dt=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(dt=ep(this,dt.copy(),!1,qo)),ht=.5*(ht+dt.x),nt=.5*(nt+dt.y),Ff(ot,E.x-b,E.y-at,ht-b,nt-at,dt.x-b,dt.y-at),Le.free(y),Le.free(x),Le.free(z),Le.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=ep(this,nt.copy(),!1,qo)),Ff(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=Le.alloc(),z.assign(this.i(0)),E=Le.alloc(),E.assign(z),nt=this.computeCorner(),yt=1,ht=0;yt<y;){if(yt=kv(this,z,yt,1<yt),dt=this.i(yt),yt>=y-1){if(!z.D(dt))this.computeShortLength(!1)!==0&&(dt=ep(this,dt.copy(),!1,qo)),np(this,ot,-b,-at,z,dt,x);else if(ht===0)for(yt=1;yt<y;)E.assign(z),dt=this.i(yt++),np(this,ot,-b,-at,z,dt,x),z.assign(dt);break}if(ht=kv(this,dt,yt+1,yt<y-3),yt=-b,Qe=-at,Tt=dt,Me=this.i(ht),he=x,bn.B(z.y,Tt.y)&&bn.B(Tt.x,Me.x))if($t=Math.min(nt,Math.abs(Tt.x-E.x)/2),$t=tn=Math.min($t,Math.abs(Me.y-Tt.y)/2),bn.B($t,0))np(this,ot,yt,Qe,z,Tt,he),z.assign(Tt);else{var sn=Tt.x,Cn=Tt.y;Gt=sn,Ze=Cn,Tt.x>z.x?sn=Tt.x-$t:sn=Tt.x+$t,Me.y>Tt.y?Ze=Tt.y+tn:Ze=Tt.y-tn,Me=Le.allocAt(sn,Cn),np(this,ot,yt,Qe,z,Me,he),Le.free(Me),rm(ot,Tt.x+yt,Tt.y+Qe,Gt+yt,Ze+Qe),z.h(Gt,Ze)}else bn.B(z.x,Tt.x)&&bn.B(Tt.y,Me.y)?($t=Math.min(nt,Math.abs(Tt.y-E.y)/2),$t=tn=Math.min($t,Math.abs(Me.x-Tt.x)/2),bn.B(tn,0)?(np(this,ot,yt,Qe,z,Tt,he),z.assign(Tt)):(sn=Tt.x,Cn=Tt.y,Gt=sn,Ze=Cn,Tt.y>z.y?Cn=Tt.y-$t:Cn=Tt.y+$t,Me.x>Tt.x?Gt=Tt.x+tn:Gt=Tt.x-tn,Me=Le.allocAt(sn,Cn),np(this,ot,yt,Qe,z,Me,he),Le.free(Me),rm(ot,Tt.x+yt,Tt.y+Qe,Gt+yt,Ze+Qe),z.h(Gt,Ze))):(np(this,ot,yt,Qe,z,Tt,he),z.assign(Tt));E.assign(dt),yt=ht}Le.free(z)}om=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=at,this.computeShortLength(!0)!==0&&(E=ep(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=ep(this,ot,!1,z)),a.type=Yi.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function fm(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),bn.$(a,0)?y:bn.$(y,0)?a:Math.sqrt(a*a+y*y)))}function ep(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=fm(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=fm(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 kv(a,y,x,b){for(var E=a.pointsCount,z=y;bn.$(y.x,z.x)&&bn.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!bn.$(y.x,z.x)&&!bn.$(y.y,z.y))return x-1;for(var nt=z;bn.$(y.x,z.x)&&bn.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||bn.$(y.y,z.y)&&bn.$(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}Wi.prototype.computeJumpLength=function(){return 10};function np(a,y,x,b,E,z,nt){if(!nt&&Tg(a)){nt=a.computeJumpLength();var ot=nt/2,at=[],ht=0;if(a.isVisible()&&(ht=Iw(a,E,z,at)),0<ht){if(bn.B(E.y,z.y))if(E.x<z.x)for(var dt=0;dt<ht;){var yt=Math.max(E.x,Math.min(at[dt++]-ot,z.x-nt));y.lineTo(yt+x,z.y+b);for(var Tt=yt+x,Gt=Math.min(yt+nt,z.x);dt<ht&&(yt=at[dt],yt<Gt+nt);)dt++,Gt=Math.min(yt+ot,z.x);yt=z.y-nt+b,Gt+=x;var $t=z.y+b;a.curve===If?jp(y,Gt,$t,!1):Ff(y,Tt,yt,Gt,yt,Gt,$t)}else for(--ht;0<=ht;){for(dt=Math.min(E.x,Math.max(at[ht--]+ot,z.x+nt)),y.lineTo(dt+x,z.y+b),Tt=dt+x,yt=Math.max(dt-nt,z.x);0<=ht&&(dt=at[ht],dt>yt-nt);)ht--,yt=Math.max(dt-ot,z.x);dt=z.y-nt+b,yt+=x,Gt=z.y+b,a.curve===If?jp(y,yt,Gt,!1):Ff(y,Tt,dt,yt,dt,yt,Gt)}else if(bn.B(E.x,z.x))if(E.y<z.y)for(dt=0;dt<ht;){for(yt=Math.max(E.y,Math.min(at[dt++]-ot,z.y-nt)),y.lineTo(z.x+x,yt+b),Tt=yt+b,yt=Math.min(yt+nt,z.y);dt<ht&&(Gt=at[dt],Gt<yt+nt);)dt++,yt=Math.min(Gt+ot,z.y);Gt=z.x-nt+x,$t=z.x+x,yt+=b,a.curve===If?jp(y,$t,yt,!1):Ff(y,Gt,Tt,Gt,yt,$t,yt)}else for(--ht;0<=ht;){for(dt=Math.min(E.y,Math.max(at[ht--]+ot,z.y+nt)),y.lineTo(z.x+x,dt+b),Tt=dt+b,dt=Math.max(dt-nt,z.y);0<=ht&&(yt=at[ht],yt>dt-nt);)ht--,dt=Math.max(yt-ot,z.y);yt=z.x-nt+x,Gt=z.x+x,dt+=b,a.curve===If?jp(y,Gt,dt,!1):Ff(y,yt,Tt,yt,dt,Gt,dt)}}}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 Wi){if(at===a)return 0<b.length&&b.sort(function(dt,yt){return dt-yt}),b.length;if(at.isVisible()&&Tg(at)){var ht=at.routeBounds;ht.w()&&a.routeBounds.Yc(ht)&&!a.usesSamePort(at)&&(ht=at.path,ht!==null&&ht.Ed()&&Tw(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(dt,yt){return dt-yt}),b.length}function Tw(a,y,x,b){for(var E=bn.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),ot=Le.alloc(),at=1;at<z;at++){var ht=b.i(at);if(at<z-1){var dt=b.i(at+1);if(nt.y===ht.y&&ht.y===dt.y){if(ht.x>nt.x&&dt.x>=ht.x||ht.x<nt.x&&dt.x<=ht.x)continue}else if(nt.x===ht.x&&ht.x===dt.x&&(ht.y>nt.y&&dt.y>=ht.y||ht.y<nt.y&&dt.y<=ht.y))continue}t:{dt=a.x;var yt=a.y,Tt=y.x,Gt=y.y,$t=nt.x;nt=nt.y;var he=ht.x,Qe=ht.y;if(bn.B(dt,Tt)){if(!bn.B(yt,Gt)&&bn.B(nt,Qe)&&Math.min(yt,Gt)<nt&&Math.max(yt,Gt)>nt&&Math.min($t,he)<dt&&Math.max($t,he)>dt&&!bn.B($t,he)){ot.x=dt,ot.y=nt,dt=!0;break t}}else if(bn.B(yt,Gt)&&bn.B($t,he)&&Math.min(dt,Tt)<$t&&Math.max(dt,Tt)>$t&&Math.min(nt,Qe)<yt&&Math.max(nt,Qe)>yt&&!bn.B(nt,Qe)){ot.x=$t,ot.y=yt,dt=!0;break t}ot.x=0,ot.y=0,dt=!1}dt&&(E?x.push(ot.x):x.push(ot.y)),nt=ht}Le.free(ot)}function Tg(a){return a=a.curve,a===_p||a===If}function gm(a,y){(y||Tg(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()))}Wi.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 Wi&&(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 Wi&&a1(this,ot,a)}}}}};function a1(a,y,x){if(y!==null&&y.lk&&y.fd&&Tg(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Wi.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},Wi.prototype.isVisible=function(){if(!Yr.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},Wi.prototype.Zb=function(a){if(Yr.prototype.Zb.call(this,a),a&&gm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},Wi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?v0:this.qk};function p0(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 ht=nt[at];(ht.ef===y&&ht.ff===b&&ht.uf===x&&ht.vf===E||ht.ef===x&&ht.ff===E&&ht.uf===y&&ht.vf===b)&&(z===null?z=ht:(a===null&&(a=[],a.push(z)),a.push(ht)))}if(a!==null){for(z=Yy(y,x,b,E),z===null&&(z=new wm(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 m0(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(yi(y.links,a),y.Sl()))}Wi.prototype.ph=function(){return!0},Oe.Object.defineProperties(Wi.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&&um(y,this,x),m0(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&&lm(a,this,E),p0(this),this.C(1)),this.g("fromNode",y,a),Up(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&_c(x),m0(this),this.ff=a;var b=this.fromPort;b!==null&&_c(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))),p0(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&&um(y,this,x),m0(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&&lm(a,this,E),p0(this),this.C(1)),this.g("toNode",y,a),Up(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&_c(x),m0(this),this.vf=a;var b=this.toPort;b!==null&&_c(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))),p0(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:Bs},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&&_c(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&&Vi(a,">= 0",Wi,"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:Bs},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&&_c(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&&Vi(a,">= 0",Wi,"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?wo: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&&g0(this.fromNode),this.toNode!==null&&g0(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Go?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()===nd&&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),bn.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);bn.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 Le)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||cm(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);bn.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):bn.$(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 Si,b=0;b<a.length/2;b++)E=new Le(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(!ii(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Si,b=0;b<a.length;b++)E=a[b],x.add(new Le(E.x,E.y).freeze())}}else if(a instanceof Si)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else on("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),cm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Qs(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||!Rp(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Rp(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(),gm(this,y===If||y===_p||a===If||a===_p),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(),gm(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)}}}),Wi.prototype.invalidateOtherJumpOvers=Wi.prototype.Xo,Wi.prototype.findClosestSegment=Wi.prototype.ez,Wi.prototype.updateRoute=Wi.prototype.vg,Wi.prototype.invalidateRoute=Wi.prototype.bb,Wi.prototype.rollbackRoute=Wi.prototype.rv,Wi.prototype.commitRoute=Wi.prototype.zf,Wi.prototype.startRoute=Wi.prototype.uh,Wi.prototype.clearPoints=Wi.prototype.Fj,Wi.prototype.removePoint=Wi.prototype.pv,Wi.prototype.addPointAt=Wi.prototype.yf,Wi.prototype.addPoint=Wi.prototype.ne,Wi.prototype.insertPointAt=Wi.prototype.m,Wi.prototype.insertPoint=Wi.prototype.Kz,Wi.prototype.setPointAt=Wi.prototype.L,Wi.prototype.setPoint=Wi.prototype.dd,Wi.prototype.getPoint=Wi.prototype.i,Wi.prototype.getOtherPort=Wi.prototype.Cz,Wi.prototype.getOtherNode=Wi.prototype.To;var ip=null,rp=null,Ov=new ri(Wi,"Normal",1),kw=new ri(Wi,"Orthogonal",2),Ow=new ri(Wi,"AvoidsNodes",6),l1=new ri(Wi,"AvoidsNodesStraight",7),Vh=new ri(Wi,"None",0),nd=new ri(Wi,"Bezier",9),If=new ri(Wi,"JumpGap",10),_p=new ri(Wi,"JumpOver",11),v0=new ri(Wi,"End",17),pm=new ri(Wi,"Scale",18),mm=new ri(Wi,"Stretch",19),y0=new ri(Wi,"OrientAlong",21),w0=new ri(Wi,"OrientPlus90",22),x0=new ri(Wi,"OrientMinus90",23),Dv=new ri(Wi,"OrientOpposite",24),vm=new ri(Wi,"OrientUpright",25),S0=new ri(Wi,"OrientPlus90Upright",26),C0=new ri(Wi,"OrientMinus90Upright",27),ym=new ri(Wi,"OrientUpright45",28),u1=16,h1=14,B0=8;Wi.className="Link",Wi.Normal=Ov,Wi.Orthogonal=kw,Wi.AvoidsNodes=Ow,Wi.AvoidsNodesStraight=l1,Wi.None=Vh,Wi.Bezier=nd,Wi.JumpGap=If,Wi.JumpOver=_p,Wi.End=v0,Wi.Scale=pm,Wi.Stretch=mm,Wi.OrientAlong=y0,Wi.OrientPlus90=w0,Wi.OrientMinus90=x0,Wi.OrientOpposite=Dv,Wi.OrientUpright=vm,Wi.OrientPlus90Upright=S0,Wi.OrientMinus90Upright=C0,Wi.OrientUpright45=ym,Wi.EndSegmentStep=8,Wi.CurvinessStart=u1,Wi.SpacingMin=h1,Wi.OrthoShortCut=B0;function wm(a,y,x,b){ns(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}wm.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},wm.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))}},wm.className="LinkBundle";function P0(a){ns(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}P0.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 Hp(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function JA(a,y,x){return Hp(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)}P0.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]===Tf)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 ht=y|0,dt=x|0,yt=a.ac[ht][dt];if(yt>=kg&&yt<Qp)for(E?dt+=b:ht+=b,yt+=1;z<=ht&&ht<=nt&&ot<=dt&&dt<=at&&!(yt>=a.ac[ht][dt]);)a.ac[ht][dt]=yt,yt+=1,E?dt+=b:ht+=b;if(ht=E?dt:ht,E)if(0<b)for(x+=b;x<ht;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>ht;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<ht;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>ht;y+=b)qA(a,y,x,1,!E,z,nt,ot,at),qA(a,y,x,-1,!E,z,nt,ot,at)}}function xm(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ht=Tf,dt=kg;for(a.ac[y][x]=dt;ht===Tf&&y>z&&y<nt&&x>ot&&x<at;)dt+=1,a.ac[y][x]=dt,E?x+=b:y+=b,ht=a.ac[y][x]}function Sm(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ht=Tf,dt=Qp;for(a.ac[y][x]=dt;ht===Tf&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=dt,E?x+=b:y+=b,ht=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(Hp(a,ot,at)){ot-=a.Nd,ot/=a.rc,at-=a.Od,at/=a.sc;var ht=b.x,dt=b.y;if(Hp(a,ht,dt))if(ht-=a.Nd,ht/=a.rc,dt-=a.Od,dt/=a.sc,1>=Math.abs(ot-ht)&&1>=Math.abs(at-dt))a.abort=!0;else{var yt=z.x;b=z.y,y=z.x+z.width;var Tt=z.y+z.height;yt-=a.Nd,yt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Tt-=a.Od,Tt/=a.sc,z=Math.max(0,Math.min(a.di,yt|0)),y=Math.min(a.di,Math.max(0,y|0)),yt=Math.max(0,Math.min(a.ei,b|0)),Tt=Math.min(a.ei,Math.max(0,Tt|0)),b=a.ac,ot|=0,at|=0,ht|=0,dt|=0;var Gt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===Tf?(xm(a,ot,at,Gt,x,z,y,yt,Tt),xm(a,ot,at,1,!x,z,y,yt,Tt),xm(a,ot,at,-1,!x,z,y,yt,Tt)):xm(a,ot,at,Gt,x,ot,at,ot,at),b[ht][dt]===Tf?(Sm(a,ht,dt,E===0||E===90?1:-1,E===90||E===270,z,y,yt,Tt),Sm(a,ht,dt,1,!(E===90||E===270),z,y,yt,Tt),Sm(a,ht,dt,-1,!(E===90||E===270),z,y,yt,Tt)):Sm(a,ht,dt,Gt,x,ht,dt,ht,dt),x=vi(),nt&&A1(a,ht,dt,E,ot,at,x))for((x[0]!==ht||x[1]!==dt)&&(x.unshift(dt),x.unshift(ht)),(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],ht=x[z+1];y>E?E++:y<E?E--:ht>nt?nt++:ht<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ht;);else qA(a,ot,at,1,!1,z,y,yt,Tt),qA(a,ot,at,-1,!1,z,y,yt,Tt),qA(a,ot,at,1,!0,z,y,yt,Tt),qA(a,ot,at,-1,!0,z,y,yt,Tt);er(x)}}}}function A1(a,y,x,b,E,z,nt){for(var ot=a.ac,at=y,ht=x;;){if(at===E&&ht===z)return!0;var dt=at,yt=ht;if(b===0)if(dt<E)dt++;else break;else if(b===90)if(yt<z)yt++;else break;else if(b===180)if(dt>E)dt--;else break;else if(yt>z)yt--;else break;var Tt=ot[dt][yt];if(Tt===0||Tt===Uv)break;at=dt,ht=yt}for(;;){if(dt=b,yt=at,Tt=ht,b===0?Tt<z?(dt=90,Tt++):Tt>z&&(dt=270,Tt--):b===90?yt<E?(dt=0,yt++):yt>E&&(dt=180,yt--):b===180?Tt<z?(dt=90,Tt++):Tt>z&&(dt=270,Tt--):yt<E?(dt=0,yt++):yt>E&&(dt=180,yt--),yt=ot[yt][Tt],dt!==b&&yt!==0&&yt!==Uv){if(nt.push(at),nt.push(ht),A1(a,at,ht,dt,E,z,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ht]=Uv,b===0){if(at===y)return!1;at--}else if(b===90){if(ht===x)return!1;ht--}else if(b===180){if(at===y)return!1;at++}else{if(ht===x)return!1;ht++}}}Oe.Object.defineProperties(P0.prototype,{bounds:{get:function(){return new ai(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 Tf=0,kg=1,Qp=999999,jv=Qp+1,Uv=Qp+2;P0.className="PositionArray";function op(){ns(this),this.port=this.node=null,this.pe=[],this.ap=!1}op.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}op.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 Ro?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(Oa,Le.alloc()),at=a.port.ga(Ll,Le.alloc());for(E=ai.allocAt(ot.x,ot.y,0,0),E.Ye(at),Le.free(ot),Le.free(at),ot=Le.allocAt(E.x+E.width/2,E.y+E.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ht=nt.value;if(ht.isVisible()&&ht.fromPort!==ht.toPort){var dt=ht.fromPort===a.port||ht.fromNode!==null&&ht.fromNode.Td(b),yt=ht.computeSpot(dt,a.port);if(yt.$c()&&(dt=dt?ht.toPort:ht.fromPort,dt!==null)){var Tt=dt.part;if(Tt!==null){var Gt=Tt.findVisibleNode();Gt!==null&&Gt!==Tt&&(Tt=Gt,dt=Tt.port),dt=ht.computeOtherPoint(Tt,dt),Tt=ot.ab(dt),Tt-=at,0>Tt?Tt+=360:360<=Tt&&(Tt-=360),yt=Dw(E,yt,Tt,ht.isOrthogonal),yt===0?(yt=4,180<Tt&&(Tt-=360)):yt===90?(yt=8,270<Tt&&(Tt-=360)):yt===180?yt=2:(yt=1,90>Tt&&(Tt+=360)),Gt=a.pe[z],Gt===void 0?(Gt=new Rv(ht,Tt,yt),a.pe[z]=Gt):(Gt.link=ht,Gt.angle=Tt,Gt.Nc=yt),Gt.hv.set(dt),z++}}}}for(Le.free(ot),a.pe.sort(op.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,yt=a.port,b=a.node.portSpreading,ot=Le.alloc(),at=Le.alloc(),nt=Le.alloc(),ht=Le.alloc(),yt.ga(Oa,ot),yt.ga(su,at),yt.ga(Ll,nt),yt.ga(Cs,ht),Gt=Tt=dt=yt=0,b===Fv)for(var $t=0;$t<z.length;$t++){var he=z[$t];if(he!==null){var Qe=he.link.computeThickness();switch(he.Nc){case 8:Tt+=Qe;break;case 2:Gt+=Qe;break;case 1:yt+=Qe;break;default:case 4:dt+=Qe}}}var Me=$t=0,Ze=1,tn=he=0;for(Qe=0;Qe<z.length;Qe++){var sn=z[Qe];if(sn!==null){if($t!==sn.Nc){switch($t=sn.Nc,$t){case 8:var Cn=nt;Me=ht;break;case 2:Cn=ht,Me=ot;break;case 1:Cn=ot,Me=at;break;default:case 4:Cn=at,Me=nt}switch(he=Me.x-Cn.x,tn=Me.y-Cn.y,$t){case 8:Tt>Math.abs(he)?(Ze=Math.abs(he)/Tt,Tt=Math.abs(he)):Ze=1;break;case 2:Gt>Math.abs(tn)?(Ze=Math.abs(tn)/Gt,Gt=Math.abs(tn)):Ze=1;break;case 1:yt>Math.abs(he)?(Ze=Math.abs(he)/yt,yt=Math.abs(he)):Ze=1;break;default:case 4:dt>Math.abs(tn)?(Ze=Math.abs(tn)/dt,dt=Math.abs(tn)):Ze=1}Me=0}var Kn=sn.Zo;if(b===Fv){switch(sn=sn.link.computeThickness(),sn*=Ze,Kn.set(Cn),$t){case 8:Kn.x=Cn.x+he/2+Tt/2-Me-sn/2;break;case 2:Kn.y=Cn.y+tn/2+Gt/2-Me-sn/2;break;case 1:Kn.x=Cn.x+he/2-yt/2+Me+sn/2;break;default:case 4:Kn.y=Cn.y+tn/2-dt/2+Me+sn/2}Me+=sn}else{var ar=.5;b===hm&&(ar=(sn.Uo+1)/(sn.Gl+1)),Kn.x=Cn.x+he*ar,Kn.y=Cn.y+tn*ar}}}for(Le.free(ot),Le.free(at),Le.free(nt),Le.free(ht),Cn=a.pe,z=0;z<Cn.length;z++)b=Cn[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,ai.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}op.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},op.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Ma,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)},op.className="Knot";function Rv(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Le,this.Gl=this.Uo=0,this.Zo=new Le,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 Ya(a){ns(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Le(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ya.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},Ya.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ya.prototype.qb=function(){},Ya.prototype.toString=function(){var a=or(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ya.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())}}},Ya.prototype.createNetwork=function(){return new Ba(this)},Ya.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof jn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Ro?y.lg(a.memberParts):y.lg(a.iterator),y},Ya.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")}},Ya.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()}},Ya.prototype.doLayout=function(a){var y=new Pi;a instanceof jn?(rg(this,y,a.nodes,!0,this.rh,!0,!1,!0),rg(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Ro?rg(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},Ya.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;b0(ot);var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(b,E),ot instanceof Ro&&(ot.rh=!1),b+=Math.max(ht,50)+20,nt=Math.max(nt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},Ya.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 Wi)&&(b0(ot),this.rh(ot))){var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(x,b),ot instanceof Ro&&(ot.rh=!1),x+=Math.max(ht,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Ya.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Ro&&a.rh)};function rg(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 hr?at.isLinkLabel||(at instanceof Ro&&at.layout===null?rg(a,y,at.memberParts,!1,E,z,nt,ot):(b0(at),y.add(at))):nt&&at instanceof Wi?y.add(at):!ot||!at.Zc()||at instanceof hr||(b0(at),y.add(at)))}}function b0(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Ya.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ai),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ya.prototype.ex=function(a){var y=new Pi;return a instanceof jn?(rg(this,y,a.nodes,!0,null,!0,!0,!0),rg(this,y,a.links,!0,null,!0,!0,!0),rg(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Ro?rg(this,y,a.memberParts,!1,null,!0,!0,!0):rg(this,y,a.iterator,!1,null,!0,!0,!0),y},Ya.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(Oa),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Oe.Object.defineProperties(Ya.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())}}}),Ya.prototype.collectParts=Ya.prototype.ex,Ya.prototype.getLayoutBounds=Ya.prototype.ni,Ya.prototype.invalidateLayout=Ya.prototype.C,Ya.className="Layout";function Ba(a){ns(this),this.Sc=a,this.wf=new Pi,this.ye=new Pi,this.Es=new Cr,this.zs=new Cr}Ba.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 Cr,this.zs=new Cr},Ba.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},Ba.prototype.createVertex=function(){return new xu(this)},Ba.prototype.createEdge=function(){return new Hc(this)},Ba.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 hr)return!nt.isLinkLabel;if(nt instanceof Wi){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 hr&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Ro&&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 Wi&&(!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))}}},Ba.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},Wt=Ba.prototype,Wt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Wt.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},Wt.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}Wt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Wt.ki=function(a){return a===null?null:this.Es.I(a)},Wt.Bo=function(a){if(a!==null){_v(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function _v(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}}Wt.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},Wt.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),Hv(this,a)}};function Hv(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Wt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Wt.Lo=function(a){return a===null?null:this.zs.I(a)},Wt.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},Wt.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))}},Wt.Ko=function(){for(var a=vi(),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]);er(a)},Ba.prototype.deleteArtificialVertexes=function(){for(var a=vi(),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=vi(),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]);er(a),er(y)};function jw(a){for(var y=vi(),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]);er(y)}Ba.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jw(this),this.Ko()),a=new Si;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&&(Hv(a,E),_v(y,E),Qv(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(Hv(a,x),_v(y,x),Qv(a,y,x.toVertex))}}Ba.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},Oe.Object.defineProperties(Ba.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}}}),Ba.prototype.findAllParts=Ba.prototype.dz,Ba.prototype.splitIntoSubNetworks=Ba.prototype.Zx,Ba.prototype.deleteSelfEdges=Ba.prototype.Ko,Ba.prototype.reverseEdge=Ba.prototype.gm,Ba.prototype.linkVertexes=Ba.prototype.Zj,Ba.prototype.findEdge=Ba.prototype.Lo,Ba.prototype.deleteLink=Ba.prototype.Yy,Ba.prototype.deleteEdge=Ba.prototype.Mj,Ba.prototype.addLink=Ba.prototype.Dy,Ba.prototype.addEdge=Ba.prototype.Bo,Ba.prototype.findVertex=Ba.prototype.ki,Ba.prototype.deleteNode=Ba.prototype.Zy,Ba.prototype.deleteVertex=Ba.prototype.Iu,Ba.prototype.addNode=Ba.prototype.Bl,Ba.prototype.addVertex=Ba.prototype.dh,Ba.prototype.addParts=Ba.prototype.lg,Ba.className="LayoutNetwork";function xu(a){ns(this),this.ob=a,this.j=new ai(0,0,10,10).freeze(),this.o=new Le(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Si,this.mg=new Si}xu.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Si,this.mg=new Si},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;ii(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 Ro)){x=ai.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Yo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),ai.free(x);return}ai.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}Oe.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=ai.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),ai.free(x),!(a instanceof Ro)&&(a=a.locationObject.ga(Yo),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 Si,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 Hc(a){ns(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Hc.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Hc.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},Hc.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Hc.prototype.commit=function(){},Hc.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Oe.Object.defineProperties(Hc.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)}}}),Hc.prototype.getOtherVertex=Hc.prototype.Ax,Hc.className="LayoutEdge";function Yu(a){Ya.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new zi(NaN,NaN).freeze(),this.tf=new zi(10,10).freeze(),this.Jb=E0,this.Rb=Bm,this.nd=F0,this.hd=p1,a&&Object.assign(this,a)}In(Yu,Ya),Yu.prototype.cloneProtected=function(a){Ya.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},Yu.prototype.qb=function(a){a.classType===Yu?a===F0||a===bm||a===Kv||a===Pm?this.sorting=a:a===Bm||a===vA?this.arrangement=a:a===E0||a===Cm?this.alignment=a:on("Unknown enum value: "+a):Ya.prototype.qb.call(this,a)},Yu.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 Ro)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 Pm:E.reverse();break;case F0:E.sort(this.comparer);break;case bm: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 Cm:var ot=y,at=x,ht=ai.alloc(),dt=Math.max(this.cellSize.width,1);if(!isFinite(dt))for(var yt=dt=0;yt<E.length;yt++){var Tt=this.ni(E[yt],ht);dt=Math.max(dt,Tt.width)}if(dt=Math.max(dt+ot,1),yt=Math.max(this.cellSize.height,1),!isFinite(yt))for(Tt=yt=0;Tt<E.length;Tt++){var Gt=this.ni(E[Tt],ht);yt=Math.max(yt,Gt.height)}yt=Math.max(yt+at,1),Tt=this.arrangement;for(var $t=Gt=this.arrangementOrigin.x,he=this.arrangementOrigin.y,Qe=0,Me=0,Ze=0;Ze<E.length;Ze++){var tn=E[Ze],sn=this.ni(tn,ht),Cn=Math.ceil((sn.width+ot)/dt)*dt,Kn=Math.ceil((sn.height+at)/yt)*yt;switch(Tt){case vA:var ar=Math.abs($t-sn.width);break;default:ar=$t+sn.width}switch((0<z&&Qe>z-1||0<nt&&0<Qe&&ar-Gt>nt)&&(b.push(new ai(0,he,nt+ot,Me)),Qe=0,$t=Gt,he+=Me,Me=0),Me=Math.max(Me,Kn),Tt){case vA:sn=-sn.width;break;default:sn=0}switch(tn.moveTo($t+sn,he),Tt){case vA:$t-=Cn;break;default:$t+=Cn}Qe++}b.push(new ai(0,he,nt+ot,Me)),ai.free(ht);break;case E0:for(at=nt,dt=z,yt=y,Tt=x,nt=ai.alloc(),Gt=Math.max(this.cellSize.width,1),z=he=ht=0,ot=Le.alloc(),$t=0;$t<E.length;$t++)Me=E[$t],Qe=this.ni(Me,nt),Me=Lf(Me,Me.locationObject,Me.locationSpot,ot),ht=Math.max(ht,Me.x),he=Math.max(he,Qe.width-Me.x),z=Math.max(z,Me.y);switch($t=this.arrangement,$t){case vA:ht+=yt;break;default:he+=yt}Gt=isFinite(Gt)?Math.max(Gt+yt,1):Math.max(ht+he,1);var Tr=Me=this.arrangementOrigin.x;for(Ze=this.arrangementOrigin.y,he=0,at>=ht&&(at-=ht),ht=tn=0,Cn=Math.max(this.cellSize.height,1),sn=z=0,Kn=!0,Qe=Le.alloc(),ar=0;ar<E.length;ar++){var xr=E[ar],Gi=this.ni(xr,nt),Li=Lf(xr,xr.locationObject,xr.locationSpot,ot);if(0<he)switch($t){case vA:Tr=(Tr-Me-(Gi.width-Li.x))/Gt,Tr=bn.$(Math.round(Tr),Tr)?Math.round(Tr):Math.floor(Tr),Tr=Tr*Gt+Me;break;default:Tr=(Tr-Me+Li.x)/Gt,Tr=bn.$(Math.round(Tr),Tr)?Math.round(Tr):Math.ceil(Tr),Tr=Tr*Gt+Me}else switch($t){case vA:tn=Tr+Li.x+Gi.width;break;default:tn=Tr-Li.x}switch($t){case vA:var jo=-(Tr+Li.x)+tn;break;default:jo=Tr+Gi.width-Li.x-tn}if(0<dt&&he>dt-1||0<at&&0<he&&jo>at){for(b.push(new ai(0,Kn?Ze-z:Ze,at+yt,sn+z+Tt)),Tr=0;Tr<he&&ar!==he;Tr++){jo=E[ar-he+Tr];var Bo=Lf(jo,jo.locationObject,jo.locationSpot,Qe);jo.moveTo(jo.position.x,jo.position.y+z-Bo.y)}sn+=Tt,Ze=Kn?Ze+sn:Ze+(sn+z),he=sn=z=0,Tr=Me,Kn=!1}switch(Tr===Me&&(ht=$t===vA?Math.max(ht,Gi.width-Li.x):Math.min(ht,-Li.x)),z=Math.max(z,Li.y),sn=Math.max(sn,Gi.height-Li.y),isFinite(Cn)&&(sn=Math.max(sn,Math.max(Gi.height,Cn)-Li.y)),Kn?xr.moveTo(Tr-Li.x,Ze-Li.y):xr.moveTo(Tr-Li.x,Ze),$t){case vA:Tr-=Li.x+yt;break;default:Tr+=Gi.width-Li.x+yt}he++}if(b.push(new ai(0,Ze,at+yt,(Kn?sn:sn+z)+Tt)),E.length!==he)for(at=0;at<he;at++)dt=E[E.length-he+at],yt=Lf(dt,dt.locationObject,dt.locationSpot,ot),dt.moveTo(dt.position.x,dt.position.y+z-yt.y);if(Le.free(ot),Le.free(Qe),$t===vA)for(E=0;E<b.length;E++)z=b[E],z.width+=ht,z.x-=ht;else for(E=0;E<b.length;E++)z=b[E],z.x>ht&&(z.width+=z.x-ht,z.x=ht);ai.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===vA?this.commitLayers(b,new Le(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new Le(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Yu.prototype.commitLayers=function(){};function p1(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Oe.Object.defineProperties(Yu.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!==E0&&a!==Cm||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==Bm&&a!==vA||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Kv&&a!==Pm&&a!==F0&&a!==bm||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var Cm=new ri(Yu,"Position",0),E0=new ri(Yu,"Location",1),Bm=new ri(Yu,"LeftToRight",2),vA=new ri(Yu,"RightToLeft",3),Kv=new ri(Yu,"Forward",4),Pm=new ri(Yu,"Reverse",5),F0=new ri(Yu,"Ascending",6),bm=new ri(Yu,"Descending",7);Yu.className="GridLayout",Yu.standardComparer=p1,Yu.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},Yu.Position=Cm,Yu.Location=E0,Yu.LeftToRight=Bm,Yu.RightToLeft=vA,Yu.Forward=Kv,Yu.Reverse=Pm,Yu.Ascending=F0,Yu.Descending=bm;function $s(){this.On=new Pi,this.Dn=new Pi,this.Pa=new Pi,this.cf=new Cr,this.bf=new Cr,this.aj=new Cr,this.H=null,this.tp=!1}Wt=$s.prototype,Wt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Wt.Xe=function(a){this.H=a},Wt.oi=function(a){if(a instanceof hr){if(this.On.add(a),a instanceof Ro){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 Wi?this.Dn.add(a):a instanceof bs||this.Pa.add(a);y=a.data,y===null||a instanceof bs||(a instanceof Wi?this.bf.add(y,a):this.cf.add(y,a))},Wt.pc=function(a){if(a.Ej(),a instanceof hr){if(this.On.remove(a),a instanceof Ro){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 Wi?this.Dn.remove(a):a instanceof bs||this.Pa.remove(a);y=a.data,y===null||a instanceof bs||(a instanceof Wi?this.bf.remove(y):this.cf.remove(y))},Wt.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 Ro)&&on('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 Ro||on('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 Wi||on('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=vi(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=vi(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=vi(),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]);er(y),er(x),er(a)}},$s.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},$s.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&&Fd(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&&(lh(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)}}$s.prototype.insertLink=function(){return null},$s.prototype.resolveReferencesForData=function(){},$s.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,kr('No Group template found for category "'+x+'"'),kr(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(w1||(w1=!0,kr('No Node template found for category "'+x+'"'),kr(" Using default node template")),y=a.ny))),y}$s.prototype.getLinkCategoryForData=function(){return""},$s.prototype.setLinkCategoryForData=function(){},$s.prototype.setFromNodeForLink=function(){},$s.prototype.setToNodeForLink=function(){},$s.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,kr('No Link template found for category "'+a+'"'),kr(" Using default link template")),x=y.my)),x},$s.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},$s.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},$s.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Uh(this.diagram,a,!1),this.unresolveReferencesForPart(a))},$s.prototype.unresolveReferencesForPart=function(){},$s.prototype.removeDataForLink=function(){},$s.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},$s.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof hr?a:null)},$s.prototype.findLinkForKey=function(){return null},Wt=$s.prototype,Wt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Wt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof hr?a:null)},Wt.Kc=function(a){return a===null?null:this.bf.I(a)},Wt.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(ii(nt)&&Gv(this,E,nt)){y.add(b);break}}}return y.iterator},Wt.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(ii(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(wi(z)){if(!wi(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(ii(y)&&ii(x)){if(!Gv(a,y,x))return!1}else if(y!==x)return!1;return!0}$s.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===ja){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===vl){var nt=a.newValue;b==="nodeDataArray"&&ii(nt)&&m1(this,nt),y.isModified=!0}else if(x===Zl){var ot=a.oldValue;b==="nodeDataArray"&&ii(ot)&&this.ip(ot),y.isModified=!0}else x===Ju&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===ja){var at=a.propertyName,ht=a.object;ht===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ht,at),y.isModified=!0}else if(x===vl||x===Zl){var dt=a.change===vl,yt=dt?a.newParam:a.oldParam,Tt=dt?a.newValue:a.oldValue,Gt=this.aj.I(a.object);if(Array.isArray(Gt))for(a=0;a<Gt.length;a++){var $t=Gt[a];if(dt)nh($t,Tt,yt,!0);else if(!(0>yt)){var he=yt+YA($t);$t.pc(he,!0),Vg($t,he,yt)}}y.isModified=!0}}finally{y.aa=!0}}}}},$s.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)},$s.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()},$s.prototype.refreshDataBoundLinks=function(){},$s.prototype.updateRelationshipsFromData=function(){},$s.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=vi()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);er(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function Wv(a,y){var x=y.Hh;if(wi(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){ua(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(wi(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}}}}$s.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Cr;if(wi(a))for(var E=0;E<a.length;E++)Em(this,a[E],y,b,x);else for(a=a.iterator;a.next();)Em(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 Cr,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof Wi)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof hr&&ot.data!==null&&x.Tl()){var at=ot;ot=nt.key;var ht=ot.pg();ht!==null&&(ht=b.I(ht),ht!==null?(x.qe(at.data,x.wa(ht.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 dt=new Cr;b.each(function(yt){yt.key.data!==null&&dt.add(yt.key.data,yt.value.data)}),x(dt,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function Em(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 Yr))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof hr){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 Ro&&z instanceof Ro)for(y=y.memberParts;y.next();)nt=Em(a,y.value,x,b,E),nt instanceof Wi||nt===null||(nt.containingGroup=z)}else if(y instanceof Wi&&z instanceof Wi)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=Em(a,y.value,x,b,E),nt!==null&&nt instanceof hr&&(nt.labeledLink=z);return z}$s.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Wi||(b=E.copyNodeData(b),ii(b)&&(E.xf(b),x=y.Lc(b)))}else lh(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 Wi||(E=y.copyNodeData(b)),ii(E)&&(x.data=E)));return x},Oe.Object.defineProperties($s.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}}}),$s.prototype.updateAllRelationshipsFromData=$s.prototype.rp,$s.prototype.findLinksByExample=$s.prototype.ls,$s.prototype.findNodesByExample=$s.prototype.ms,$s.prototype.findLinkForData=$s.prototype.Kc,$s.prototype.findNodeForData=$s.prototype.ii,$s.prototype.findPartForData=$s.prototype.Lc,$s.prototype.findNodeForKey=$s.prototype.Vb,$s.prototype.removeModeledPart=$s.prototype.ip,$s.prototype.removeModeledParts=$s.prototype.Gs,$s.prototype.rebuildParts=$s.prototype.Wd;var w1=!1,x1=!1,S1=!1;$s.className="PartManager";function Ou(a){$s.apply(this,arguments)}In(Ou,$s),Ou.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),C1(this,a.linkDataArray)},Ou.prototype.addModeledParts=function(a){for($s.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Up(a.value);Fd(this.diagram,!1)};function C1(a,y){y.forEach(function(x){B1(a,x)}),Fd(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){lh(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=Nm(x,y,!0);z!==""&&(E.fromPortId=z),z=id(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof hr&&(E.fromNode=z)),z=Nm(x,y,!1),z!==""&&(E.toPortId=z),z=id(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof hr&&(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}}}}Ou.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)})}Ou.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Ou.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Ou.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Ou.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Ou.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Ou.prototype.findPartForKey=function(a){var y=$s.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Ou.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Ou.prototype.doModelChanged=function(a){var y=this;if($s.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===ja){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 ht=this.Kc(a.object);if(ht!==null){var dt=a.newValue;typeof dt=="string"&&(ht.fromPortId=dt)}}else if(E==="linkToPortId"){var yt=this.Kc(a.object);if(yt!==null){var Tt=a.newValue;typeof Tt=="string"&&(yt.toPortId=Tt)}}else if(E==="nodeGroupKey"){var Gt=this.Lc(a.object);if(Gt!==null){var $t=a.newValue;if($t!==void 0){var he=this.Vb($t);he instanceof Ro?Gt.containingGroup=he:Gt.containingGroup=null}else Gt.containingGroup=null}}else if(E==="linkLabelKeys"){var Qe=this.Kc(a.object);if(Qe!==null){var Me=a.oldValue,Ze=a.newValue;Array.isArray(Me)&&Me.forEach(function(Li){0<=Ze.indexOf(Li)||(Li=y.Vb(Li),Li!==null&&(Li.labeledLink=null))}),Array.isArray(Ze)&&Ze.forEach(function(Li){Li=y.Vb(Li),Li!==null&&(Li.labeledLink=Qe)})}}else if(E==="linkCategory"){var tn=this.Kc(a.object),sn=a.newValue;tn!==null&&typeof sn=="string"&&(tn.category=sn)}else E==="linkDataArray"&&(P1(this,a.oldValue),C1(this,a.newValue));x.isModified=!0}else if(b===vl){var Cn=a.newValue;if(E==="linkDataArray"&&typeof Cn=="object"&&Cn!==null)B1(this,Cn);else if(E==="linkLabelKeys"&&sg(Cn)){var Kn=this.Kc(a.object),ar=this.Vb(Cn);Kn!==null&&ar!==null&&(ar.labeledLink=Kn)}x.isModified=!0}else if(b===Zl){var Tr=a.oldValue;if(E==="linkDataArray"&&typeof Tr=="object"&&Tr!==null)this.ip(Tr);else if(E==="linkLabelKeys"&&sg(Tr)){var xr=this.Vb(Tr);xr!==null&&(xr.labeledLink=null)}x.isModified=!0}}else if(b===ja){var Gi=a.propertyName;a.object!==x.model||Gi!=="linkFromKeyProperty"&&Gi!=="linkToKeyProperty"&&Gi!=="linkFromPortIdProperty"&&Gi!=="linkToPortIdProperty"&&Gi!=="linkLabelKeysProperty"&&Gi!=="nodeIsGroupProperty"&&Gi!=="nodeGroupKeyProperty"&&Gi!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Ou.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)})},Ou.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 Wi){var E=id(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=id(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 bs)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Ro)&&(a.containingGroup=y)}}},Ou.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=L0(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 Ro&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof hr&&(id(y,nt,!0)===x&&(z.link.fromNode=E),id(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}}wA(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Ro&&(E.containingGroup=a))}},Ou.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof hr){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)yA(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&yA(y,x,b.data)),a instanceof Ro)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&yA(y,x,b)}}},Ou.prototype.copyPartData=function(a,y){var x=$s.prototype.copyPartData.call(this,a,y);if(a instanceof Wi)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},Ou.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 Wi){if(lh(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 hr&&(lh(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&&Kp(z,b,z.wa(a.data),!0),Gp(z,b,ot,!0),x!==null&&Kp(z,b,z.wa(x.data),!1),Gp(z,b,y,!1),z.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof hr||(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},Ou.prototype.findLinkForKey=Ou.prototype.findLinkForKey,Ou.prototype.findPartForKey=Ou.prototype.findPartForKey,Ou.prototype.removeAllModeledParts=Ou.prototype.removeAllModeledParts,Ou.prototype.addModeledParts=Ou.prototype.addModeledParts,Ou.prototype.addAllModeledParts=Ou.prototype.addAllModeledParts,Ou.className="GraphLinksPartManager";function md(){$s.apply(this,arguments),this.Sg=null}In(md,$s);function Fm(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||!Xn(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(lh(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}}}md.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},md.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},md.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}},md.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))},md.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},md.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},md.prototype.doModelChanged=function(a){if($s.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===ja){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:Fm(this,z,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ht=a.newValue;if(at!==null&&typeof ht=="string"){var dt=at.kh();dt!==null&&(dt.category=ht)}}y.isModified=!0}}else if(x===ja){var yt=a.propertyName;a.object===y.model&&yt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},md.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof hr&&(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:Fm(this,y,a):b!==null&&Uh(x,b,!1)))}}},md.prototype.updateDataBindings=function(a,y){$s.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},md.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=L0(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 hr&&y.mh(z)===x&&Fm(this,E,this.ii(z))}wA(y,x)}a=y.mh(a),a!==void 0&&E instanceof hr&&(a=this.Vb(a),Fm(this,a,E))}},md.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof hr){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(Zl,"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)&&yA(y,x,E)}},md.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},md.prototype.findLinkForKey=md.prototype.findLinkForKey,md.className="TreePartManager";function Ur(a,y){this.kl=new Pi,this.il=new Pi,this.Wv=`,
"insertedNodeKeys": `,this.jy=`,
"modifiedNodeData": `,this.Yv=`,
"removedNodeKeys": `,this.vh=null,ns(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Cr,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 Cr,this.Lt=new Si,this.Wg=!1,this.o=null,this.undoManager=new xt,a!==void 0&&(wi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ur.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},Ur.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ur.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ur.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)+":"+Rr(E)}}return y},Ur.prototype.xA=function(a){a.change!==Ju&&on("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Et?(E1(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ur.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(yt){yt.model===x&&(yt.modelChange==="nodeDataArray"?yt.change===vl?E.add(yt.newValue):yt.change===Zl&&nt.add(yt.oldValue):x.lb(yt.object)?z.add(yt.object):yt.change!==ja||x.modelData!==yt.object&&yt.propertyName!=="modelData"?yt.object!==null&&(ot&&ot.contains(yt.object)?ot.get(yt.object).each(function(Tt){x.lb(Tt)&&z.add(Tt)}):yt.object instanceof Ur||x.ri()&&x.Jc(yt.object)||F1(x,yt.object).each(function(Tt){z.add(Tt)})):b=!0)});var at=this.il;at.clear(),E.each(function(yt){at.add(x.wa(yt)),y||z.add(yt)});var ht=this.kl;ht.clear(),nt.each(function(yt){ht.add(x.wa(yt)),y&&z.add(yt)}),a=x.cloneDeep(z.Fa());var dt=null;return b&&(dt===null&&(dt={}),dt.modelData=this.cloneDeep(this.modelData)),0<at.count&&(dt===null&&(dt={}),y?dt.removedNodeKeys=at.Fa():dt.insertedNodeKeys=at.Fa()),0<a.length&&(dt===null&&(dt={}),dt.modifiedNodeData=a),0<ht.count&&(dt===null&&(dt={}),y?dt.insertedNodeKeys=ht.Fa():dt.removedNodeKeys=ht.Fa()),ht.clear(),at.clear(),dt},Ur.prototype.cloneDeep=function(a){return zp(this,a,!0)};function zp(a,y,x,b,E,z){function nt(yt,Tt){ot?(yt.__gohashid===void 0&&z.push(yt),b.set(yt,Tt)):(yt=Hs++,b.set(yt,Tt),E.set(yt,y))}if(!ii(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new Cr),ot){var at=b.get(y);if(at)return at}else for(E||(E=new Cr),at=E.iterator;at.next();){var ht=at.key;if(at.value===y&&(ht=b.get(ht)))return ht}if(Array.isArray(y)){at=[],nt(y,at);for(var dt=0;dt<y.length;dt++)at.push(zp(a,y[dt],!1,b,E,z))}else if(y instanceof Le||y instanceof zi||y instanceof ai||y instanceof Hr||y instanceof wr)at=y.copy(),nt(y,at);else{if(y instanceof Rs||y instanceof Yi||y instanceof ri)return y;if(y instanceof Si)at=new Si().addAll(zp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Pi)at=new Pi().addAll(zp(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Cr)at=new Cr().addAll(zp(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(dt in at={},nt(y,at),y)dt!=="__gohashid"&&(at[dt]=zp(a,y[dt],!1,b,E,z))}return x&&z.forEach(function(yt){delete yt.__gohashid}),at}Wt=Ur.prototype,Wt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Wt.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},Wt.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,ii(y)&&(a.dm(y),a.modelData=y)}Wt.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": `+og(this,this.nodeDataArray,!0)},Wt.kv=function(a){b1(this,a),a=a.nodeDataArray,wi(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 Cr,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===ja?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===vl||z===Zl)&&(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];Lm(a,y,E,E,x)}return x}function Lm(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(Lm(a,y,nt,b,E))return!0}else if(ii(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(Lm(a,y,nt,b,E))return!0}return!1}Wt.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(dt){dt.model===x&&(dt.modelChange==="nodeDataArray"?dt.change===vl?E.add(dt.newValue):dt.change===Zl&&nt.add(dt.oldValue):x.lb(dt.object)?z.add(dt.object):dt.change!==ja||x.modelData!==dt.object&&dt.propertyName!=="modelData"?dt.object!==null&&(ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(yt){x.lb(yt)&&z.add(yt)}):dt.object instanceof Ur||x.ri()&&x.Jc(dt.object)||F1(x,dt.object).each(function(yt){z.add(yt)})):b=!0)});var at=this.il;at.clear(),E.each(function(dt){at.add(x.wa(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(x.wa(dt)),y&&z.add(dt)}),a="",b&&(a+=`,
"modelData": `+Zv(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+og(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+og(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Wv:this.Yv)+og(this,ht.Fa(),!0)),ht.clear(),at.clear(),a},Wt.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)&&on("applyIncrementalJson cannot change Model properties"),b1(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Cr;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)},Wt.$x=function(a,y){a.change!==Ju&&on("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Et?(y===void 0&&(y=M0(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 }'},Wt.yA=function(a,y){return this.$x(a,y)},Wt.np=function(a){return a===void 0&&(a=M0(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Wt.toJSON=function(a){return this.np(a)},Wt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ke.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:on("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&on("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Wt.Ky=function(a){return this.Zw(a)},Ur.constructGraphLinksModel=function(){return new Ur},Wt=Ur.prototype,Wt.dm=function(a){if(wi(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(ii(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:on("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(ii(a)){for(y in a)if(x=a[y],ii(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 Si,b=0;b<x.length/2;b++)E.add(new Le(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Uw(a)}return a},Wt.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()):wi(a)?og(this,a):ii(a)?Zv(this,a):typeof a=="function"?"null":a.toString()};function og(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Er;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 Zh(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function Zv(a,y){var x=y;if(x instanceof Le)y={class:"go.Point",x:Zh(x.x),y:Zh(x.y)};else if(x instanceof zi)y={class:"go.Size",width:Zh(x.width),height:Zh(x.height)};else if(x instanceof ai)y={class:"go.Rect",x:Zh(x.x),y:Zh(x.y),width:Zh(x.width),height:Zh(x.height)};else if(x instanceof Hr)y={class:"go.Margin",top:Zh(x.top),right:Zh(x.right),bottom:Zh(x.bottom),left:Zh(x.left)};else if(x instanceof wr)x.sb()?y={class:"go.Spot",x:Zh(x.x),y:Zh(x.y),offsetX:Zh(x.offsetX),offsetY:Zh(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof Rs){if(y={class:"go.Brush",type:x.type.name},x.type===fe?y.color=x.color:(x.type===Ee||x.type===$e)&&(y.start=x.start,y.end=x.end,x.type===$e&&(x.startRadius!==0&&(y.startRadius=Zh(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Zh(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 Yi?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Zh(x.startX)),x.startY!==0&&(y.startY=Zh(x.startY)),x.endX!==0&&(y.endX=Zh(x.endX)),x.endY!==0&&(y.endY=Zh(x.endY)),x.spot1.D(Oa)||(y.spot1=x.spot1),x.spot2.D(Ll)||(y.spot2=x.spot2),x.type===Yi.o&&(y.path=Yi.ia(x))):x instanceof ri&&(y={class:"go.EnumValue",classType:M0(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=ql(y,E);if(!L1(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Si){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 Le(Yh(a.x),Yh(a.y));else if(y==="Size")x=new zi(Yh(a.width),Yh(a.height));else if(y==="Rect")x=new ai(Yh(a.x),Yh(a.y),Yh(a.width),Yh(a.height));else if(y==="Margin")x=new Hr(Yh(a.top),Yh(a.right),Yh(a.bottom),Yh(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Ud(a.enum):x=new wr(Yh(a.x),Yh(a.y),Yh(a.offsetX),Yh(a.offsetY));else if(y==="Brush"){if(x=new Rs,x.type=rr(Rs,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof wr&&(x.start=a.start),a.end instanceof wr&&(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,ii(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Yi.parse(a.path):x=new Yi,x.type=rr(Yi,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 wr&&(x.spot1=a.spot1),a.spot2 instanceof wr&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=$v(b),typeof b=="function"&&(x=rr(b,a.name)));return x}Wt.Pe=function(a){return this.Lt.add(a),this},Wt.ik=function(a){this.Lt.remove(a)},Wt.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)},Wt.cb=function(a,y,x,b,E,z,nt){gu(this,"",a,y,x,b,E,z,nt)},Wt.g=function(a,y,x,b,E){gu(this,"",ja,a,this,y,x,b,E)},Wt.Fs=function(a,y,x,b,E,z){gu(this,"",ja,y,a,x,b,E,z)};function gu(a,y,x,b,E,z,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ht=new Da;ht.model=a,ht.change=x,ht.modelChange=y,ht.propertyName=b,ht.object=E,ht.oldValue=z,ht.oldParam=ot,ht.newValue=nt,ht.newParam=at,a.ds(ht)}Ur.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===ja){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)),za(x,b,E)}else a.change===vl?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,ii(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&yi(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&pi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!wi(b)&&a.propertyName&&(b=ql(a.object,a.propertyName)),wi(b)&&typeof x=="number"&&(a=a.newValue,y?yi(b,x):pi(b,x,a))):on("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Zl?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,ii(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&pi(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&yi(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!wi(b)&&a.propertyName&&(b=ql(a.object,a.propertyName)),wi(b)&&typeof x=="number"&&(a=a.oldValue,y?pi(b,x,a):yi(b,x))):on("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Ju&&on("unknown ChangedEvent: "+a.toString())},Ur.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ur.prototype.eb=function(a){return this.undoManager.eb(a)},Ur.prototype.Kf=function(){return this.undoManager.Kf()},Ur.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}},Wt=Ur.prototype,Wt.La=function(a,y){y===void 0&&(y=""),gu(this,"SourceChanged",Ju,y,a,null,null)},Wt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=ql(a,y),y!==void 0)){if(sg(y))return y;on("Key value for node data "+a+" is not a number or a string: "+y)}}},Wt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=ql(a,x);b!==y&&this.hc(y)===null&&(za(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),gu(this,"nodeKey",ja,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else za(a,x,y)}};function sg(a){return typeof a=="number"||typeof a=="string"}Wt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Wt.hc=function(a){return a===null&&on("Model.findNodeDataForKey:key must not be null"),a!==void 0&&sg(a)?this.kb.I(a):null},Wt.$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))){za(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;za(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;za(a,y,x)}}}}},Wt.xf=function(a){a!==null&&(qs(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&&on("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,pi(a.Tc,b,y)),gu(a,"nodeDataArray",vl,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Wt.Fy=function(a){if(wi(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)},Wt.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;yi(a.Tc,b)}gu(a,"nodeDataArray",Zl,"nodeDataArray",a,y,null,b,null),a.qp(y)}Wt.nA=function(a){if(wi(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)},Wt.$z=function(a){if(a!==this.nodeDataArray&&wi(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()}},Wt.jp=function(a,y){y!==void 0&&(a=L0(this,a),a instanceof Pi&&this.Vf.add(y,a))},Wt.Lv=function(){},Wt.fm=function(){},Wt.em=function(){},Wt.qp=function(){};function yA(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 wA(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 L0(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Pi?a:null)}Wt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ur.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):Mm(this,a,!0),ii(a)&&ns(a),a};function Mm(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=Mm(a,y[x],a.copiesArrayObjects);b.push(E)}return ns(b),b}if(x&&ii(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=ql(y,b),nt=M0(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof Ur||z instanceof xt||z instanceof Et||z instanceof Da||(z=Mm(a,z,!1)),za(x,b,z)}return ns(x),x}return y instanceof Le||y instanceof zi||y instanceof ai||y instanceof wr||y instanceof Hr?y.copy():y}Ur.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 xn&&(I1=!0,kr('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),kr(" Is that really your intent?"));var b=ql(a,y);b!==x&&(za(a,y,x),this.Fs(a,y,b,x))},Wt=Ur.prototype,Wt.set=function(a,y,x){this.setDataProperty(a,y,x)},Wt.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])}},Wt.Ay=function(a,y){this.ts(a,-1,y)},Wt.ts=function(a,y,x){0>y&&(y=a.length),pi(a,y,x),gu(this,"",vl,"",a,null,x,null,y)},Wt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&on("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];yi(a,y),gu(this,"",Zl,"",a,x,null,y,null)},Wt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=ql(a,y),y===void 0))return"";if(typeof y=="string")return y;on("getCategoryForNodeData found a non-string category for "+a+": "+y)},Wt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=ql(a,x);b===void 0&&(b=""),b!==y&&(za(a,x,y),gu(this,"nodeCategory",ja,x,a,b,y))}else za(a,x,y)}},Wt.lm=function(a,y){this.jm(y,this.Ro(a))},Wt.Tl=function(){return!1},Wt.Wj=function(){return!1},Wt.ri=function(){return!1},Wt.xs=function(){return!1},Wt.Xj=function(){return!1};function Yv(){return new Ur}function M0(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 M0(a,y.constructor);return typeof y}function $v(a){return tA[a]?tA[a]:Ke.go!==void 0&&Ke.go[a]?Ke.go[a]:null}function ql(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 za(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){}}Oe.Object.defineProperties(Ur.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===""&&on("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&on("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];ii(E)||on("Model.nodeDataArray must only contain Objects, not: "+E),qs(E)}for(this.Tc=a,b=new Si,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(gu(this,"nodeDataArray",ja,"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"}}}),Ur.prototype.setCategoryForNodeData=Ur.prototype.jm,Ur.prototype.getCategoryForNodeData=Ur.prototype.Ro,Ur.prototype.removeArrayItem=Ur.prototype.ov,Ur.prototype.insertArrayItem=Ur.prototype.ts,Ur.prototype.addArrayItem=Ur.prototype.Ay,Ur.prototype.assignAllDataProperties=Ur.prototype.Do,Ur.prototype.set=Ur.prototype.set,Ur.prototype.clearUnresolvedReferences=Ur.prototype.Qy,Ur.prototype.mergeNodeDataArray=Ur.prototype.$z,Ur.prototype.removeNodeDataCollection=Ur.prototype.nA,Ur.prototype.removeNodeData=Ur.prototype.cm,Ur.prototype.addNodeDataCollection=Ur.prototype.Fy,Ur.prototype.addNodeData=Ur.prototype.xf,Ur.prototype.makeNodeDataKeyUnique=Ur.prototype.$u,Ur.prototype.findNodeDataForKey=Ur.prototype.hc,Ur.prototype.containsNodeData=Ur.prototype.lb,Ur.prototype.setKeyForNodeData=Ur.prototype.km,Ur.prototype.getKeyForNodeData=Ur.prototype.wa,Ur.prototype.updateTargetBindings=Ur.prototype.La,Ur.prototype.commit=Ur.prototype.commit,Ur.prototype.rollbackTransaction=Ur.prototype.Kf,Ur.prototype.commitTransaction=Ur.prototype.eb,Ur.prototype.startTransaction=Ur.prototype.Ea,Ur.prototype.raiseDataChanged=Ur.prototype.Fs,Ur.prototype.raiseChanged=Ur.prototype.g,Ur.prototype.raiseChangedEvent=Ur.prototype.cb,Ur.prototype.removeChangedListener=Ur.prototype.ik,Ur.prototype.addChangedListener=Ur.prototype.Pe,Ur.prototype.writeJsonValue=Ur.prototype.sm,Ur.prototype.replaceJsonObjects=Ur.prototype.dm,Ur.prototype.applyIncrementalJSON=Ur.prototype.Ky,Ur.prototype.applyIncrementalJson=Ur.prototype.Zw,Ur.prototype.toJSON=Ur.prototype.toJSON,Ur.prototype.toJson=Ur.prototype.np,Ur.prototype.toIncrementalJSON=Ur.prototype.yA,Ur.prototype.toIncrementalJson=Ur.prototype.$x,Ur.prototype.toIncrementalData=Ur.prototype.xA,Ur.prototype.clear=Ur.prototype.clear;var I1=!1,tA={};Ur.className="Model",Ur.fromJSON=Ur.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Ke.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:on("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=Ke[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Ur?y=a:on("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ur.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ur.safePropertyValue=ql,Ur.safePropertySet=za,tA.Brush=Rs,tA.ChangedEvent=Da,tA.Geometry=Yi,tA.Margin=Hr,tA.Panel=Jn,tA.Point=Le,tA.Rect=ai,tA.Size=zi,tA.Spot=wr,tA.Transaction=Et,tA.UndoManager=xt;function iu(a,y,x,b){ns(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=k1,this.wk=null):(this.el=N0,this.wk=b),this.st=new Pi}iu.prototype.copy=function(){var a=new iu;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},Wt=iu.prototype,Wt.qb=function(a){a.classType===iu&&(this.mode=a)},Wt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Wt.freeze=function(){return this._isFrozen=!0,this},Wt.ka=function(){return this._isFrozen=!1,this},Wt.Kx=function(a){return a===void 0&&(a=null),this.mode=N0,this.backConverter=a,this},Wt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Wt.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function T1(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Wt.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==="")kr("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=ql(y,b)),z!==void 0)if(E===null)x!==""&&za(a,x,z);else try{if(x!==""){var nt=E(z,a);za(a,x,nt)}else E(z,a)}catch(ot){}}}},Wt.sp=function(a,y,x,b){if(this.el===N0){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=ql(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):za(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ht=b.itemIndex,dt=b.panel.itemArray;at.ov(dt,ht),at.ts(dt,ht,nt)}}else try{if(x!==""){var yt=z(nt,y,at);at!==null?at.setDataProperty(y,x,yt):za(y,x,yt)}else{var Tt=z(nt,y,at);if(Tt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Gt=b.itemIndex,$t=b.panel.itemArray;at.ov($t,Gt),at.ts($t,Gt,Tt)}}}catch(he){}}finally{this.st.remove(a)}}}},Oe.Object.defineProperties(iu.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&di(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&di(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&di(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&di(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&di(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&di(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&di(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&di(this),this.el=a}}}),iu.prototype.updateSource=iu.prototype.sp,iu.prototype.updateTarget=iu.prototype.Mv,iu.prototype.ofModel=iu.prototype.dA,iu.prototype.ofObject=iu.prototype.cp,iu.prototype.makeTwoWay=iu.prototype.Kx;var Rw="Binding",k1=new ri(iu,"OneWay",1),N0=new ri(iu,"TwoWay",2);iu.className="Binding",iu.parseEnum=function(a,y){return function(x){return x=rr(a,x),x===null?y:x}},iu.toString=Rr,iu.OneWay=k1,iu.TwoWay=N0;function ms(a,y,x){Ur.call(this),this.Vv=`,
"insertedLinkKeys": `,this.iy=`,
"modifiedLinkData": `,this.Xv=`,
"removedLinkKeys": `,this.md=[],this.$f=new Pi,this.wb=new Cr,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&&(wi(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}In(ms,Ur),ms.constructGraphLinksModel=Ur.constructGraphLinksModel,ms.prototype.cloneProtected=function(a){Ur.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},Wt=ms.prototype,Wt.clear=function(){Ur.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Wt.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)+":"+Rr(E)}for(y+=`
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+id(this,E,!0)+"-->"+id(this,E,!1)}return y},Wt.Qv=function(a,y){this.linkKeyProperty===""&&on("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ur.prototype.Qv.call(this,a,y),b=this,E=new Pi,z=new Pi,nt=new Pi,ot=this.vh;a.changes.each(function(dt){dt.model===b&&(dt.modelChange==="linkDataArray"?dt.change===vl?E.add(dt.newValue):dt.change===Zl&&nt.add(dt.oldValue):b.Jc(dt.object)?z.add(dt.object):dt.object!==null&&(dt.object!==null&&ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(yt){b.Jc(yt)&&z.add(yt)}):dt.object instanceof Ur||b.lb(dt.object)||O1(b,dt.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(dt){at.add(b.Ac(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(b.Ac(dt)),y&&z.add(dt)}),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<ht.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ht.Fa():x.removedLinkKeys=ht.Fa()),ht.clear(),at.clear(),x},Wt.rm=function(){var a=Ur.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},Wt.gp=function(a){Ur.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)},Wt.Rv=function(){var a=Ur.prototype.Rv.call(this),y=`,
"linkDataArray": `+og(this,this.linkDataArray,!0);return a+y},Wt.kv=function(a){Ur.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];Lm(a,y,E,E,x)}return x}Wt.Pv=function(a,y){this.linkKeyProperty===""&&on("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ur.prototype.Pv.call(this,a,y),b=this,E=new Pi,z=new Pi,nt=new Pi,ot=this.vh;a.changes.each(function(dt){dt.model===b&&(dt.modelChange==="linkDataArray"?dt.change===vl?E.add(dt.newValue):dt.change===Zl&&nt.add(dt.oldValue):b.Jc(dt.object)?z.add(dt.object):dt.object!==null&&(dt.object!==null&&ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(yt){b.Jc(yt)&&z.add(yt)}):dt.object instanceof Ur||b.lb(dt.object)||O1(b,dt.object).each(function(yt){z.add(yt)})))});var at=this.il;at.clear(),E.each(function(dt){at.add(b.Ac(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(b.Ac(dt)),y&&z.add(dt)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+og(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+og(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Vv:this.Xv)+og(this,ht.Fa(),!0)),ht.clear(),at.clear(),a},Wt.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)&&on("applyIncrementalJson cannot change Model properties"),Ur.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)},ms.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===ja){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),za(x,b,E);return}}else if(a.change===vl){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,ii(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===Zl){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,ii(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}}Ur.prototype.changeState.call(this,a,y)}},Wt=ms.prototype,Wt.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),za(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Wt.yx=function(a){return id(this,a,!0)},Wt.wv=function(a,y){Kp(this,a,y,!0)},Wt.Bx=function(a){return id(this,a,!1)},Wt.Bv=function(a,y){Kp(this,a,y,!1)};function id(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=ql(y,a),a!==void 0))){if(sg(a))return a;on((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Kp(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=ql(y,E);z!==x&&(wA(a,z,y),za(y,E,x),a.hc(x)===null&&yA(a,x,y),gu(a,b?"linkFromKey":"linkToKey",ja,E,y,z,x),typeof E=="string"&&a.La(y,E))}else za(y,E,x)}}Wt.zx=function(a){return Nm(this,a,!0)},Wt.xv=function(a,y){Gp(this,a,y,!0)},Wt.Cx=function(a){return Nm(this,a,!1)},Wt.Cv=function(a,y){Gp(this,a,y,!1)};function Nm(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=ql(y,a),y===void 0?"":y)}function Gp(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=ql(y,E);z===void 0&&(z=""),z!==x&&(za(y,E,x),gu(a,b?"linkFromPortId":"linkToPortId",ja,E,y,z,x),typeof E=="string"&&a.La(y,E))}else za(y,E,x)}}Wt.Ef=function(a){if(a===null)return Im;var y=this.je;return y===""?Im:(a=ql(a,y),a===void 0?Im:a)},Wt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=ql(a,x);if(b===void 0&&(b=Im),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)wA(this,b[z],a);for(za(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&yA(this,nt,a)}gu(this,"linkLabelKeys",ja,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else za(a,x,y)}},Wt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ql(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&&yA(this,y,a),gu(this,"linkLabelKeys",vl,x,a,null,y,null,E)))}else on(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Wt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=ql(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(wA(this,y,a),gu(this,"linkLabelKeys",Zl,x,a,y,null,E,null)))}else b!==void 0&&on(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Wt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=ql(a,y),y!==void 0)){if(sg(y))return y;on("Key value for link data "+a+" is not a number or a string: "+y)}}},Wt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=ql(a,x);b!==y&&this.jh(y)===null&&(za(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),gu(this,"linkKey",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},Wt.jh=function(a){return a===null&&on("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&sg(a)?this.wb.I(a):null},Wt.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))){za(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;za(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;za(a,y,x)}}}}},Wt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Wt.fi=function(a){a!==null&&(qs(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&&on("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)),gu(a,"linkDataArray",vl,"linkDataArray",a,null,y,null,b),Xv(a,y)}Wt.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)},Wt.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(gu(a,"linkDataArray",Zl,"linkDataArray",a,y,null,b,null),x=id(a,y,!0),wA(a,x,y),x=id(a,y,!1),wA(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],wA(a,x,y)}Wt.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)},Wt.Zz=function(a){if(this.linkKeyProperty===""&&on("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&wi(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 Xv(a,y){var x=id(a,y,!0);x=a.Vl(x),a.hc(x)===null&&yA(a,x,y),x=id(a,y,!1),x=a.Vl(x),a.hc(x)===null&&yA(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&&yA(a,x,y)}Wt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):Mm(this,a,!0),ii(a)&&(ns(a),this.lf!==""&&za(a,this.lf,void 0),this.mf!==""&&za(a,this.mf,void 0),this.je!==""&&za(a,this.je,[])),a},Wt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!ql(a,y)},Wt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=ql(a,y),y!==void 0)){if(sg(y))return y;on("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Wt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=ql(a,x);b!==y&&(wA(this,b,a),za(a,x,y),this.hc(y)===null&&yA(this,y,a),gu(this,"nodeGroupKey",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},ms.prototype.copyNodeData=function(a){return a===null?null:(a=Ur.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||ql(a,this.Je)===void 0||za(a,this.Je,void 0),a)},ms.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){Kp(this,a,x,!0);return}if(y===this.linkToKeyProperty){Kp(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Gp(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Gp(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=ql(a,y);b!==x&&(za(a,y,x),this.Fs(a,y,b,x))},Wt=ms.prototype,Wt.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&&ql(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Wt.jp=function(a,y){Ur.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(id(this,b,!0)===E){var nt=this.lf;za(b,nt,z),gu(this,"linkFromKey",ja,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(id(this,b,!1)===E&&(nt=this.mf,za(b,nt,z),gu(this,"linkToKey",ja,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,ht=0;ht<ot;ht++)nt[ht]===E&&(nt[ht]=z,gu(this,"linkLabelKeys",vl,at,b,E,z,ht,ht))}},Wt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;za(a,b,x),gu(this,"nodeGroupKey",ja,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Wt.Lv=function(){Ur.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)Xv(this,a[x])},Wt.fm=function(a){Ur.prototype.fm.call(this,a),a=this.wa(a);var y=L0(this,a);if(y!==null){var x=vi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;gu(this,"nodeGroupKey",ja,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(id(this,b,!0)===a&&(E=this.lf,gu(this,"linkFromKey",ja,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),id(this,b,!1)===a&&(E=this.mf,gu(this,"linkToKey",ja,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&&(gu(this,"linkLabelKeys",vl,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)wA(this,a,x[y]);er(x)}},Wt.em=function(a){Ur.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&yA(this,y,a)},Wt.qp=function(a){Ur.prototype.qp.call(this,a);var y=this.lh(a);wA(this,y,a)},Wt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=ql(a,y),y===void 0))return"";if(typeof y=="string")return y;on("getCategoryForLinkData found a non-string category for "+a+": "+y)},ms.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ms.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=ql(a,x);b===void 0&&(b=""),b!==y&&(za(a,x,y),gu(this,"linkCategory",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},ms.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Wt=ms.prototype,Wt.lm=function(a,y){Ur.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))}Wt.Wj=function(){return!0},Wt.ri=function(){return!0},Wt.xs=function(){return!0},Wt.Xj=function(){return!0},Oe.Object.defineProperties(ms.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];ii(E)||on("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),qs(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Si,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,gu(this,"linkDataArray",ja,"linkDataArray",this,y,a),y=0;y<x;y++)Xv(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"}}}),ms.prototype.setCategoryForLinkData=ms.prototype.lp,ms.prototype.getCategoryForLinkData=ms.prototype.ps,ms.prototype.assignAllDataProperties=ms.prototype.Do,ms.prototype.setGroupKeyForNodeData=ms.prototype.mp,ms.prototype.getGroupKeyForNodeData=ms.prototype.lh,ms.prototype.isGroupForNodeData=ms.prototype.Yu,ms.prototype.copyLinkData=ms.prototype.Jo,ms.prototype.mergeLinkDataArray=ms.prototype.Zz,ms.prototype.removeLinkDataCollection=ms.prototype.lA,ms.prototype.removeLinkData=ms.prototype.bm,ms.prototype.addLinkDataCollection=ms.prototype.Ey,ms.prototype.addLinkData=ms.prototype.fi,ms.prototype.containsLinkData=ms.prototype.Jc,ms.prototype.makeLinkDataKeyUnique=ms.prototype.Bs,ms.prototype.findLinkDataForKey=ms.prototype.jh,ms.prototype.setKeyForLinkData=ms.prototype.Ks,ms.prototype.getKeyForLinkData=ms.prototype.Ac,ms.prototype.removeLabelKeyForLinkData=ms.prototype.Qx,ms.prototype.addLabelKeyForLinkData=ms.prototype.Bu,ms.prototype.setLabelKeysForLinkData=ms.prototype.Ls,ms.prototype.getLabelKeysForLinkData=ms.prototype.Ef,ms.prototype.setToPortIdForLinkData=ms.prototype.Cv,ms.prototype.getToPortIdForLinkData=ms.prototype.Cx,ms.prototype.setFromPortIdForLinkData=ms.prototype.xv,ms.prototype.getFromPortIdForLinkData=ms.prototype.zx,ms.prototype.setToKeyForLinkData=ms.prototype.Bv,ms.prototype.getToKeyForLinkData=ms.prototype.Bx,ms.prototype.setFromKeyForLinkData=ms.prototype.wv,ms.prototype.getFromKeyForLinkData=ms.prototype.yx,ms.prototype.clear=ms.prototype.clear;var Im=Object.freeze([]);ms.className="GraphLinksModel",tA.GraphLinksModel=ms,Ur.constructGraphLinksModel=Ur.constructGraphLinksModel=function(){return new ms},Ur.initDiagramModel=Yv=function(){return new ms};function $h(a,y){Ur.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(wi(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}In($h,Ur),$h.constructGraphLinksModel=Ur.constructGraphLinksModel,$h.prototype.cloneProtected=function(a){Ur.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Wt=$h.prototype,Wt.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)+":"+Rr(E)}}return y},Wt.rm=function(){var a=Ur.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Wt.gp=function(a){Ur.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Wt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&on("applyIncrementalJson cannot change Model properties"),Ur.prototype.fp.call(this,a)},Wt.Vl=function(a){return a},Wt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=ql(a,y),y!==void 0)){if(sg(y))return y;on("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Wt.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=ql(a,x);b!==y&&(wA(this,b,a),za(a,x,y),this.hc(y)===null&&yA(this,y,a),gu(this,"nodeParentKey",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},Wt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=ql(a,y),y===void 0)?"":typeof y=="string"?y:(on("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},$h.prototype.getLinkCategoryForData=function(a){return this.ss(a)},$h.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=ql(a,x);b===void 0&&(b=""),b!==y&&(za(a,x,y),gu(this,"parentLinkCategory",ja,x,a,b,y),typeof x=="string"&&this.La(a,x))}else za(a,x,y)}},$h.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},$h.prototype.copyNodeData=function(a){return a===null?null:(a=Ur.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||ql(a,this.Ke)===void 0||za(a,this.Ke,void 0),a)},$h.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=ql(a,y);b!==x&&(za(a,y,x),this.Fs(a,y,b,x))},Wt=$h.prototype,Wt.jp=function(a,y){Ur.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Wt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;za(a,b,x),gu(this,"nodeParentKey",ja,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Wt.fm=function(a){Ur.prototype.fm.call(this,a),a=this.wa(a);var y=L0(this,a);if(y!==null){var x=vi();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;gu(this,"nodeParentKey",ja,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)wA(this,a,x[y]);er(x)}},Wt.em=function(a){Ur.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&yA(this,y,a)},Wt.qp=function(a){Ur.prototype.qp.call(this,a);var y=this.mh(a);wA(this,y,a)},Wt.lm=function(a,y){Ur.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Wt.Tl=function(){return!0},Wt.xs=function(){return!0},Oe.Object.defineProperties($h.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"}}}),$h.prototype.setParentLinkCategoryForNodeData=$h.prototype.Ms,$h.prototype.getParentLinkCategoryForNodeData=$h.prototype.ss,$h.prototype.setParentKeyForNodeData=$h.prototype.qe,$h.prototype.getParentKeyForNodeData=$h.prototype.mh,$h.className="TreeModel",tA.TreeModel=$h;function pl(a){Ya.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=eA,this.Ti=0,this.Zv=new Le,this.Jp=this.me=0,this.Xr=new O0,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=Xh,this.nd=Vp,this.hd=zv,this.tf=6,this.Nn=Rm,a&&Object.assign(this,a)}In(pl,Ya),pl.prototype.cloneProtected=function(a){Ya.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},pl.prototype.qb=function(a){a.classType===pl?a===jm||a===Um||a===Om||a===Dm||a===Vp?this.sorting=a:a===Og||a===Wp||a===Xh||a===lg?this.direction=a:a===kf||a===ag||a===eA||a===nA?this.arrangement=a:(a===sp||a===Rm)&&(this.nodeDiameterFormula=a):Ya.prototype.qb.call(this,a)},pl.prototype.createNetwork=function(){return new Zp(this)},pl.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 Si;y.addAll(a.iterator),a=new Si;var x=new Si,b=this.sort(y),E,z,nt=this.Jp,ot=this.arrangement,at=this.nodeDiameterFormula,ht=this.radius;(!isFinite(ht)||0>=ht)&&(ht=NaN);var dt=this.aspectRatio;(!isFinite(dt)||0>=dt)&&(dt=1);var yt=this.startAngle;isFinite(yt)||(yt=0);var Tt=this.sweepAngle;if((!isFinite(Tt)||360<Tt||1>Tt)&&(Tt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===nA&&at===sp?ot=eA:ot===nA&&at!==sp&&(ot=this.arrangement),(this.direction===Og||this.direction===Wp)&&this.sorting!==Vp){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===Og?(this.arrangement===nA&&a.reverse(),b=new Si,b.addAll(a),b.addAll(x)):(this.arrangement===nA&&x.reverse(),b=new Si,b.addAll(x),b.addAll(a))}at=b.length;for(var Gt=z=E=0;Gt<b.length;Gt++){var $t=yt+Tt*z*(this.direction===Xh?1:-1)/at,he=b.M(Gt).diameter;isNaN(he)&&(he=ug(b.M(Gt),$t)),360>Tt&&(Gt===0||Gt===b.length-1)&&(he/=2),E+=he,z++}if(isNaN(ht)||ot===nA){if(isNaN(y)&&(y=6),ot!==eA&&ot!==nA){for(z=-1/0,nt=0;nt<at;nt++)Gt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(Gt.diameter)&&ug(Gt,0),isNaN(E.diameter)&&ug(E,0),z=Math.max(z,(Gt.diameter+E.diameter)/2);nt=z+y,ot===kf?ht=(z+y)/(2*Math.PI/at):ht=Tm(this,nt*(360<=Tt?at:at-1),dt,yt*Math.PI/180,Tt*Math.PI/180)}else ht=Tm(this,E+(360<=Tt?at:at-1)*(ot!==nA?y:1.6*y),dt,yt*Math.PI/180,Tt*Math.PI/180);z=ht*dt}else if(z=ht*dt,Gt=Jv(this,ht,z,yt*Math.PI/180,Tt*Math.PI/180),isNaN(y))(ot===eA||ot===nA)&&(y=(Gt-E)/(360<=Tt?at:at-1));else if(ot===eA||ot===nA)Gt=(Gt-E)/(360<=Tt?at:at-1),Gt<y?(ht=Tm(this,E+y*(360<=Tt?at:at-1),dt,yt*Math.PI/180,Tt*Math.PI/180),z=ht*dt):y=Gt;else{for(nt=-1/0,E=0;E<at;E++)$t=b.M(E),he=b.M(E===at-1?0:E+1),isNaN($t.diameter)&&ug($t,0),isNaN(he.diameter)&&ug(he,0),nt=Math.max(nt,($t.diameter+he.diameter)/2);nt+=y,E=Tm(this,nt*(360<=Tt?at:at-1),dt,yt*Math.PI/180,Tt*Math.PI/180),E>ht?(ht=E,z=ht*dt):nt=Gt/(360<=Tt?at:at-1)}if(this.kw=ot,this.lc=ht,this.Zm=dt,this.lw=yt,this.Wp=Tt,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ht=this.lw,dt=this.Wp,yt=this.Ti,Tt=this.me,at=this.Jp,this.direction!==Og&&this.direction!==Wp||b!==nA)if(this.direction===Og||this.direction===Wp){switch(nt=0,b){case ag:nt=180*km(this,ot,Tt,ht,at)/Math.PI;break;case eA:at=y=0,nt=a.first(),nt!==null&&(y=ug(nt,Math.PI/2)),nt=x.first(),nt!==null&&(at=ug(nt,Math.PI/2)),nt=180*km(this,ot,Tt,ht,yt+(y+at)/2)/Math.PI;break;case kf:nt=dt/y.length}if(this.direction===Og){switch(b){case ag:k0(this,a,ht,lg);break;case eA:T0(this,a,ht,lg);break;case kf:I0(this,a,dt/2,ht,lg)}switch(b){case ag:k0(this,x,ht+nt,Xh);break;case eA:T0(this,x,ht+nt,Xh);break;case kf:I0(this,x,dt/2,ht+nt,Xh)}}else{switch(b){case ag:k0(this,x,ht,lg);break;case eA:T0(this,x,ht,lg);break;case kf:I0(this,x,dt/2,ht,lg)}switch(b){case ag:k0(this,a,ht+nt,Xh);break;case eA:T0(this,a,ht+nt,Xh);break;case kf:I0(this,a,dt/2,ht+nt,Xh)}}}else switch(b){case ag:k0(this,y,ht,this.direction);break;case eA:T0(this,y,ht,this.direction);break;case kf:I0(this,y,dt,ht,this.direction);break;case nA:R1(this,y,dt,ht,this.direction)}else R1(this,y,dt,ht-dt/2,Xh)}this.updateParts(),this.network=null,this.isValidLayout=!0};function I0(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 ht=b+(E===Xh?at*x/(360<=z?ot:ot-1):-(at*x)/ot),dt=y.M(at),yt=nt*Math.tan(ht)/a;yt=Math.sqrt((nt*nt+a*a*yt*yt)/(1+yt*yt)),dt.centerX=yt*Math.cos(ht),dt.centerY=yt*Math.sin(ht),dt.actualAngle=180*ht/Math.PI}}function T0(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 ht=y.M(at),dt=y.M(at===ot-1?0:at+1),yt=z*Math.sin(x);ht.centerX=E*Math.cos(x),ht.centerY=yt,ht.actualAngle=180*x/Math.PI,isNaN(ht.diameter)&&ug(ht,0),isNaN(dt.diameter)&&ug(dt,0),ht=km(a,E,z,b===Xh?x:-x,(ht.diameter+dt.diameter)/2+nt),x+=b===Xh?ht:-ht}}function k0(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 ht=y.M(at);ht.centerX=E*Math.cos(x),ht.centerY=z*Math.sin(x),ht.actualAngle=180*x/Math.PI,ht=km(a,E,z,b===Xh?x:-x,nt),x+=b===Xh?ht:-ht}}function R1(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new O0,360>x){for(z=b+(E===Xh?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,H1(a,y,x,b,E)}else _1(a,y,x,b,E);a.Xr.commit(y)}function _1(a,y,x,b,E){var z=a.lc,nt=a.Ti,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ht=a.me*Math.sin(b*Math.PI/180),dt=y.Fa();if(dt.length===3)dt[0].centerX=z,dt[0].centerY=0,dt[1].centerX=dt[0].centerX-dt[0].width/2-dt[1].width/2-nt,dt[1].y=dt[0].y,dt[2].centerX=(dt[0].centerX+dt[1].centerX)/2,dt[2].y=dt[0].y-dt[2].height-nt;else if(dt.length===4)dt[0].centerX=z,dt[0].centerY=0,dt[2].centerX=-dt[0].centerX,dt[2].centerY=dt[0].centerY,dt[1].centerX=0,dt[1].y=Math.min(dt[0].y,dt[2].y)-dt[1].height-nt,dt[3].centerX=0,dt[3].y=Math.max(dt[0].y+dt[0].height+nt,dt[2].y+dt[2].height+nt);else{z=Le.alloc();for(var yt=0;yt<dt.length&&(dt[yt].centerX=at,dt[yt].centerY=ht,!(yt>=dt.length-1));yt++)Q1(a,at,ht,dt,yt,E,z)||z1(a,at,ht,dt,yt,E,z),at=z.x,ht=z.y;if(Le.free(z),a.mj++,!(23<a.mj)){at=dt[0].centerX,ht=dt[0].centerY,z=dt[dt.length-1].centerX,yt=dt[dt.length-1].centerY;var Tt=Math.abs(at-z)-((dt[0].width+dt[dt.length-1].width)/2+nt),Gt=Math.abs(ht-yt)-((dt[0].height+dt[dt.length-1].height)/2+nt);nt=0,1>Math.abs(Gt)?Math.abs(at-z)<(dt[0].width+dt[dt.length-1].width)/2&&(nt=0):nt=0<Gt?Gt:1>Math.abs(Tt)?0:Tt,at=Math.abs(z)>Math.abs(yt)?0<z!=ht>yt:0<yt!=at<z,(at=E===Xh?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-dt[dt.length-1].width),nt=Math.min(nt,-dt[dt.length-1].height)),a.Xr.compare(nt,dt),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>dt.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ot,_1(a,y,x,b,E))}}}function H1(a,y,x,b,E){for(var z=a.lc,nt=a.me,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ht=nt*Math.sin(b*Math.PI/180),dt=Le.alloc(),yt=y.Fa(),Tt=0;Tt<yt.length&&(yt[Tt].centerX=at,yt[Tt].centerY=ht,!(Tt>=yt.length-1));Tt++)Q1(a,at,ht,yt,Tt,E,dt)||z1(a,at,ht,yt,Tt,E,dt),at=dt.x,ht=dt.y;if(Le.free(dt),a.mj++,!(23<a.mj)){if(at=Math.atan2(ht,at),at=E===Xh?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<yt.length;at++)nt.mk[at]=yt[at].bounds.x,nt.tm[at]=yt[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,H1(a,y,x,b,E))}}function Q1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ht=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var dt=!1;if(0<=x!=(z===Xh)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ht,!1;dt=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ht,!1;dt=!0}return ht=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==dt&&(ht=-ht),Math.abs(x-ht)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ht,!1):(nt.x=z,nt.y=ht,!0)}function z1(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ht=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Xh)){if(z=x-a,z<-at){if(z=x+a,z>at){nt.x=ht,nt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){nt.x=ht,nt.y=z;return}b=!0}ht=Math.sqrt(1-Math.min(1,z*z/(at*at)))*ot,0>y!==b&&(ht=-ht),nt.x=ht,nt.y=z}pl.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},pl.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 Le(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))},pl.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,ht=0;ht<=z;ht++){b!==void 0&&E!==void 0?at=b+ht*E/z:at=ht*Math.PI/(2*z);var dt=Math.sin(at);nt+=Math.sqrt(1-a*a*dt*dt)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function Tm(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?Jv(a,1,x,b,E):Jv(a,1,x))}function km(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}}pl.prototype.sort=function(a){switch(this.sorting){case Om:break;case Dm:a.reverse();break;case jm:a.sort(this.comparer);break;case Um:a.sort(this.comparer),a.reverse();break;case Vp:return this.ak(_w(a));default:on("Invalid sorting type.")}return a};function _w(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Si;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}pl.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 Si;for(var at=0,ht=0;ht<y.length;ht++){var dt=y[ht].length;if(dt===1)b.push(ht);else if(dt===0)E.add(a.M(ht));else{if(at===0)x.push(ht);else{for(var yt=dt=1/0,Tt=-1,Gt=[],$t=0;$t<x.length;$t++)0>y[x[$t]].indexOf(x[$t===x.length-1?0:$t+1])&&Gt.push($t===x.length-1?0:$t+1);if(Gt.length===0)for($t=0;$t<x.length;$t++)Gt.push($t);for($t=0;$t<Gt.length;$t++){for(var he=Gt[$t],Qe=y[ht],Me=0,Ze=0;Ze<nt.length;Ze++){var tn=z[nt[Ze]],sn=z[ot[Ze]];if(tn<sn){var Cn=tn;tn=sn}else Cn=sn;if(Cn<he&&he<=tn)for(sn=0;sn<Qe.length;sn++){var Kn=Qe[sn];0>x.indexOf(Kn)||Cn<z[Kn]&&z[Kn]<tn||Cn===z[Kn]||tn===z[Kn]||Me++}else for(sn=0;sn<Qe.length;sn++)Kn=Qe[sn],0>x.indexOf(Kn)||Cn<z[Kn]&&z[Kn]<tn&&Cn!==z[Kn]&&tn!==z[Kn]&&Me++}for(Qe=Me,Ze=Me=0;Ze<y[ht].length;Ze++)Cn=x.indexOf(y[ht][Ze]),0<=Cn&&(Cn=Math.abs(he-(Cn>=he?Cn+1:Cn)),Me+=Cn<x.length+1-Cn?Cn:x.length+1-Cn);for(Ze=0;Ze<nt.length;Ze++)Cn=z[nt[Ze]],tn=z[ot[Ze]],Cn>=he&&Cn++,tn>=he&&tn++,Cn>tn&&(sn=tn,tn=Cn,Cn=sn),tn-Cn<(x.length+2)/2==(Cn<he&&he<=tn)&&Me++;(Qe<dt||Qe===dt&&Me<yt)&&(dt=Qe,yt=Me,Tt=he)}for(x.splice(Tt,0,ht),dt=0;dt<x.length;dt++)z[x[dt]]=dt;for(dt=0;dt<y[ht].length;dt++)yt=y[ht][dt],0<=x.indexOf(yt)&&(nt.push(ht),ot.push(yt))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ht=y[at][0],dt=x.indexOf(ht),0<=dt){for(Tt=yt=0;Tt<y[ht].length;Tt++)Gt=x.indexOf(y[ht][Tt]),0>Gt||Gt===dt||($t=Gt>dt?Gt-dt:dt-Gt,yt+=Gt<dt!=$t>nt-$t?1:-1);x.splice(0>yt?dt:dt+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},Oe.Object.defineProperties(pl.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!==ag&&a!==kf||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Xh&&a!==lg&&a!==Og&&a!==Wp||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==Om&&a!==Dm&&a!==jm&&!Um&&a!==Vp||(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!==Rm&&a!==sp||(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 ri(pl,"ConstantSpacing",0),ag=new ri(pl,"ConstantDistance",1),kf=new ri(pl,"ConstantAngle",2),nA=new ri(pl,"Packed",3),Xh=new ri(pl,"Clockwise",4),lg=new ri(pl,"Counterclockwise",5),Og=new ri(pl,"BidirectionalLeft",6),Wp=new ri(pl,"BidirectionalRight",7),Om=new ri(pl,"Forwards",8),Dm=new ri(pl,"Reverse",9),jm=new ri(pl,"Ascending",10),Um=new ri(pl,"Descending",11),Vp=new ri(pl,"Optimized",12),Rm=new ri(pl,"Pythagorean",13),sp=new ri(pl,"Circular",14);pl.className="CircularLayout",pl.ConstantSpacing=eA,pl.ConstantDistance=ag,pl.ConstantAngle=kf,pl.Packed=nA,pl.Clockwise=Xh,pl.Counterclockwise=lg,pl.BidirectionalLeft=Og,pl.BidirectionalRight=Wp,pl.Forwards=Om,pl.Reverse=Dm,pl.Ascending=jm,pl.Descending=Um,pl.Optimized=Vp,pl.Pythagorean=Rm,pl.Circular=sp;function O0(){this.Pl=-1/0,this.tm=this.mk=null}O0.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},O0.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]}},O0.className="VertexArrangement";function Zp(a){Ba.call(this,a)}In(Zp,Ba),Zp.prototype.createVertex=function(){return new D0(this)},Zp.prototype.createEdge=function(){return new _m(this)},Zp.className="CircularNetwork";function D0(a){xu.call(this,a),this.u=this.Si=NaN}In(D0,xu);function ug(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===sp)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===sp?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Oe.Object.defineProperties(D0.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)}}}),D0.className="CircularVertex";function _m(a){Hc.call(this,a)}In(_m,Hc),_m.className="CircularEdge";function uh(a){Ya.call(this),this.ah=null,this.An=0,this.$d=new zi(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)}In(uh,Ya),uh.prototype.cloneProtected=function(a){Ya.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},uh.prototype.createNetwork=function(){return new ap(this)},uh.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 ht=vi(),dt=0;dt<ot+y.vertexes.count+2;dt++)ht[dt]=null;ot=0,nt.reset();for(var yt=ai.alloc();nt.next();)if(dt=nt.value,this.computeBounds(dt,yt),at)at=!1,E=yt.x+yt.width/2,z=yt.y+yt.height/2,ht[0]=new Le(yt.x+yt.width+b.width,yt.y),ht[1]=new Le(yt.x,yt.y+yt.height+b.height),ot=2;else{var Tt=G1(ht,ot,E,z,yt.width,yt.height,b),Gt=ht[Tt],$t=new Le(Gt.x+yt.width+b.width,Gt.y),he=new Le(Gt.x,Gt.y+yt.height+b.height);for(Tt+1<ot&&ht.splice(Tt+1,0,null),ht[Tt]=$t,ht[Tt+1]=he,ot++,Tt=Gt.x-yt.x,Gt=Gt.y-yt.y,dt=dt.vertexes.iterator;dt.next();)$t=dt.value,$t.centerX+=Tt,$t.centerY+=Gt}for(ai.free(yt),dt=y.vertexes.iterator;dt.next();)nt=dt.value,Tt=nt.bounds,2>ot?(E=Tt.x+Tt.width/2,z=Tt.y+Tt.height/2,ht[0]=new Le(Tt.x+Tt.width+b.width,Tt.y),ht[1]=new Le(Tt.x,Tt.y+Tt.height+b.height),ot=2):(at=G1(ht,ot,E,z,Tt.width,Tt.height,b),yt=ht[at],Gt=new Le(yt.x+Tt.width+b.width,yt.y),Tt=new Le(yt.x,yt.y+Tt.height+b.height),at+1<ot&&ht.splice(at+1,0,null),ht[at]=Gt,ht[at+1]=Tt,ot++,nt.centerX=yt.x+nt.width/2,nt.centerY=yt.y+nt.height/2);for(er(ht),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},uh.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},uh.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(Hw(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 Hw(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 ap(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 Si),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 Si,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new Si,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,bn.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 ht=ot=0,dt=at.count-nt;dt<at.count;dt++){var yt=at.M(dt),Tt=null;for(z=yt.edges.iterator;z.next();){var Gt=z.value;if(Gt.Ax(yt)===E){Tt=Gt;break}}Tt!==null&&(ht+=Tt.length,ot+=yt.width*yt.height)}z=E.centerX,at=E.centerY,dt=E.width,yt=E.height,Tt=E.focus,Gt=dt*yt,1>Gt&&(Gt=1),ot=bn.sqrt((ot+Gt+ht*ht*4/(nt*nt))/Gt),nt=(ot-1)*dt/2,ot=(ot-1)*yt/2,E.bounds=new ai(z-Tt.x-nt,at-Tt.y-ot,dt+2*nt,yt+2*ot),E.focus=new Le(Tt.x+nt,Tt.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 ai(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new Le(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=bn.sqrt(z*z+nt*nt)/2;for(var ot=!1,at=nt=0,ht=0,dt=y.vertexes.iterator;dt.next();){var yt=dt.value;1>=yt.Vd?at++:(ot=!0,ht++,nt+=Math.atan2(y.centerY-yt.centerY,y.centerX-yt.centerX))}if(at!==0){for(0<ht&&(nt/=ht),ht=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ht=y/2),1<x.count&&x.sort(function(Gt,$t){return Gt===null||$t===null||Gt===$t?0:$t.width*$t.height-Gt.width*Gt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(dt=null,yt=at.edges.iterator;yt.next();){dt=yt.value;break}yt=at.width;var Tt=at.height;yt=bn.sqrt(yt*yt+Tt*Tt)/2,dt=z+dt.length+yt,yt=nt+(y*(ot/2>>1)+ht)*(ot%2===0?1:-1),at.centerX=b+dt*Math.cos(yt),at.centerY=E+dt*Math.sin(yt),ot++}}}}function G1(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ht=0;t:for(;ht<y;ht++){var dt=a[ht],yt=dt.x-x,Tt=dt.y-b;if(yt=yt*yt+Tt*Tt,yt<ot){for(Tt=ht-1;0<=Tt;Tt--)if(a[Tt].y>dt.y&&a[Tt].x-dt.x<E+nt.width)continue t;for(Tt=ht+1;Tt<y;Tt++)if(a[Tt].x>dt.x&&a[Tt].y-dt.y<z+nt.height)continue t;at=ht,ot=yt}}return at}uh.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},uh.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,bn.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,bn.sqrt(b*b+a*a)):nt-(b+E):b>nt+ot?a>y+z?(x=b-nt-ot,a=a-y-z,bn.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,bn.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(he,Qe){return he===null||Qe===null||he===Qe?0:he.centerX-Qe.centerX}):y.sort(function(he,Qe){return he===null||Qe===null||he===Qe?0:he.centerY-Qe.centerY}),x=a.Zf;var ht=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 dt=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,dt),ht=nt.charge*a.electricalFieldY(at,dt),b+=nt.mass*a.gravitationalFieldX(at,dt),ht+=nt.mass*a.gravitationalFieldY(at,dt),nt.forceX+=b,nt.forceY+=ht;for(var yt=z+1;yt<y.length;yt++){var Tt=y[yt];if(Tt!==nt){b=Tt.bounds,ot=Tt.focus,ht=b.x+ot.x;var Gt=b.y+ot.y;if(at-ht>x||ht-at>x){if(E)break}else if(dt-Gt>x||Gt-dt>x){if(!E)break}else{var $t=W1(nt,Tt);1>$t?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new Hm),$t=b.random(),ot=b.random(),at>ht?(b=Math.abs(Tt.bounds.right-nt.bounds.x),b=(1+b)*$t):at<ht?(b=Math.abs(Tt.bounds.x-nt.bounds.right),b=-(1+b)*$t):(b=Math.max(Tt.width,nt.width),b=(1+b)*$t-b/2),dt>Gt?(ht=Math.abs(Tt.bounds.bottom-nt.bounds.y),ht=(1+ht)*ot):at<ht?(ht=Math.abs(Tt.bounds.y-nt.bounds.bottom),ht=-(1+ht)*ot):(ht=Math.max(Tt.height,nt.height),ht=(1+ht)*ot-ht/2)):(ot=-(nt.charge*Tt.charge)/($t*$t),b=(ht-at)/$t*ot,ht=(Gt-dt)/$t*ot),nt.forceX+=b,nt.forceY+=ht,Tt.forceX-=b,Tt.forceY-=ht}}}}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,dt=z.bounds,yt=z.focus,at=dt.x+yt.x,dt=dt.y+yt.y,yt=W1(x,z),1>yt?(yt=a.randomNumberGenerator,yt===null&&(a.randomNumberGenerator=yt=new Hm),ot=yt.random(),yt=yt.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ht=(nt>dt?1:-1)*(1+(z.height>x.height?z.height:x.height))*yt):(ot=ot.stiffness*(yt-ot.length),b=(at-b)/yt*ot,ht=(dt-nt)/yt*ot),x.forceX+=b,x.forceY+=ht,z.forceX-=b,z.forceY-=ht;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}uh.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},uh.prototype.moveFixedVertex=function(){},uh.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},uh.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Bs,y.toSpot=Bs)}},uh.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ai.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ai.free(x)}x=ai.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()}ai.free(x)},uh.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},uh.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},uh.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},uh.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},uh.prototype.electricalFieldX=function(){return 0},uh.prototype.electricalFieldY=function(){return 0},uh.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},uh.prototype.gravitationalFieldX=function(){return 0},uh.prototype.gravitationalFieldY=function(){return 0},uh.prototype.isFixed=function(a){return a.isFixed},Oe.Object.defineProperties(uh.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"&&on('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())}}}),uh.className="ForceDirectedLayout";function Z1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}Z1.className="ForceDirectedSubnet";function ap(a){Ba.call(this,a)}In(ap,Ba),ap.prototype.createVertex=function(){return new j0(this)},ap.prototype.createEdge=function(){return new U0(this)},ap.className="ForceDirectedNetwork";function j0(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}In(j0,xu),Oe.Object.defineProperties(j0.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)}}}),j0.className="ForceDirectedVertex";function U0(a){Hc.call(this,a),this.j=this.o=NaN}In(U0,Hc),Oe.Object.defineProperties(U0.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)}}}),U0.className="ForceDirectedEdge";function Hm(){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()}Hm.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},Hm.className="RandomNumberGenerator";function Xs(a){Ya.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Wm,this.Zk=Vm,this.Qk=Zm,this.bj=4,this.rk=Ym,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 Le,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}In(Xs,Ya),Xs.prototype.cloneProtected=function(a){Ya.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},Xs.prototype.qb=function(a){a.classType===Xs?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:on("Unknown enum value: "+a):Ya.prototype.qb.call(this,a)},Xs.prototype.createNetwork=function(){return new $p(this)},Xs.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!==_0&&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===_0&&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,ht=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var dt=E.node;if(nt=z.node,dt===null||nt===null)continue;var yt=ot.fromNode;at=ot.toNode;for(var Tt=ot.fromPort;Tt!==null&&!Tt.Ed();)Tt=Tt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ht=yt;var Gt=Tt;yt=at,Tt=ot,at=ht,ot=Gt}var $t=E.focus;ht=z.focus;var he=b.rev?z.bounds:E.bounds;Gt=Le.alloc(),dt!==yt?he.w()&&yt.isVisible()?yt.actualBounds.w()?(Lf(yt,Tt,Yo,Gt),Gt.x+=yt.actualBounds.x-he.x,Gt.y+=yt.actualBounds.y-he.y):(Lf(yt,Tt,Yo,Gt),Gt.w()||Gt.assign($t)):Gt.assign($t):he.w()?(Lf(yt,Tt,Yo,Gt),Gt.w()||Gt.assign($t)):Gt.assign($t),yt=b.rev?E.bounds:z.bounds,dt=Le.alloc(),nt!==at?yt.w()&&at.isVisible()?at.actualBounds.w()?(Lf(at,ot,Yo,dt),dt.x+=at.actualBounds.x-yt.x,dt.y+=at.actualBounds.y-yt.y):(Lf(at,ot,Yo,dt),dt.w()||dt.assign(ht)):dt.assign(ht):yt.w()?(Lf(at,ot,Yo,dt),dt.w()||dt.assign(ht)):dt.assign(ht),this.K===90||this.K===270?(nt=Math.round((Gt.x-$t.x)/this.kc),at=Gt.x,ot=Math.round((dt.x-ht.x)/this.kc),ht=dt.x):(nt=Math.round((Gt.y-$t.y)/this.kc),at=Gt.y,ot=Math.round((dt.y-ht.y)/this.kc),ht=dt.y),Le.free(Gt),Le.free(dt),b.portFromColOffset=nt,b.portFromPos=at,b.portToColOffset=ot,b.portToPos=ht}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Gt=E.layer,dt=z.layer,yt=0,he=b.link,he!==null){var Qe=he.fromPort,Me=he.toPort;if(Qe!==null&&Me!==null){var Ze=he.fromNode;if(Tt=he.toNode,Ze!==null&&Tt!==null){var tn=Gm(this,!0),sn=Gm(this,!1),Cn=this.setsPortSpots?tn:he.computeSpot(!0,Qe);$t=this.setsPortSpots?sn:he.computeSpot(!1,Me);var Kn=he.isOrthogonal;Cn.$c()&&Cn.Hf(sn)&&$t.$c()&&$t.Hf(tn)?yt=0:(tn=he.getLinkPoint(Ze,Qe,Cn,!0,Kn,Tt,Me,Le.alloc()),sn=he.getLinkDirection(Ze,Qe,tn,Cn,!0,Kn,Tt,Me),Le.free(tn),Cn.ys()||sn!==iw(this,b,!0)?this.setsPortSpots&&Ze!==null&&Ze.ports.count===1&&b.rev&&(yt+=1):yt+=1,Cn=he.getLinkPoint(Tt,Me,$t,!1,Kn,Ze,Qe,Le.alloc()),he=he.getLinkDirection(Tt,Me,Cn,$t,!1,Kn,Ze,Qe),Le.free(Cn),$t.ys()||he!==iw(this,b,!1)?this.setsPortSpots&&Tt!==null&&Tt.ports.count===1&&b.rev&&(yt+=2):yt+=2)}}}if(Tt=yt,yt=Tt===1||Tt===3,(Tt=Tt===2||Tt===3)&&($t=a.createVertex(),$t.node=null,$t.Dj=1,$t.layer=Gt,$t.near=E,a.dh($t),E=a.Zj(E,$t,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=$t),he=1,yt&&he--,Gt-dt>he&&0<Gt){for(b.valid=!1,$t=a.createVertex(),$t.node=null,$t.Dj=2,$t.layer=Gt-1,a.dh($t),E=a.Zj(E,$t,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Tt?0:nt,E.portToColOffset=0,E.portFromPos=Tt?0:at,E.portToPos=0,E=$t,Gt--;Gt-dt>he&&0<Gt;)$t=a.createVertex(),$t.node=null,$t.Dj=3,$t.layer=Gt-1,a.dh($t),E=a.Zj(E,$t,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=$t,Gt--;E=a.Zj($t,z,b.link),E.valid=!yt,yt&&($t.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=ht}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=hg(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),cg(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Xs.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}Xs.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},Xs.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 cc(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 vd(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 Y1(a,y,x){var b=hg(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],ht=at.near;if(ht!==null&&ht.layer===at.layer)if(at=ht.index,at>nt)for(var dt=nt+1;dt<at;dt++){var yt=b[dt];yt.near===ht&&yt.Dj===ht.Dj||ot++}else for(dt=nt-1;dt>at;dt--)yt=b[dt],yt.near===ht&&yt.Dj===ht.Dj||ot++;var Tt;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ht=0;ht<at.length;ht++){var Gt=at[ht];if(Gt.valid&&Gt.fromVertex.layer!==y)for(yt=Gt.fromVertex.index,dt=Gt.portToPos,Gt=Gt.portFromPos,Tt=ht+1;Tt<at.length;Tt++){var $t=at[Tt];if($t.valid&&$t.fromVertex.layer!==y){var he=$t.fromVertex.index,Qe=$t.portToPos;$t=$t.portFromPos,dt<Qe&&(yt>he||yt===he&&Gt>$t)&&ot++,Qe<dt&&(he>yt||he===yt&&$t>Gt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ht=0;ht<at.length;ht++)if(Gt=at[ht],Gt.valid&&Gt.toVertex.layer!==y)for(yt=Gt.toVertex.index,dt=Gt.portToPos,Gt=Gt.portFromPos,Tt=ht+1;Tt<at.length;Tt++)$t=at[Tt],$t.valid&&$t.toVertex.layer!==y&&(he=$t.toVertex.index,Qe=$t.portToPos,$t=$t.portFromPos,Gt<$t&&(yt>he||yt===he&&dt>Qe)&&ot++,$t<Gt&&(he>yt||he===yt&&Qe>dt)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var Me=0,Ze=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var tn=b[at].sourceEdgesArrayAccess;for(ht=0;ht<ot.length;ht++)if(Gt=ot[ht],Gt.valid&&Gt.fromVertex.layer!==y)for(yt=Gt.fromVertex.index,Gt=Gt.portFromPos,Tt=0;Tt<tn.length;Tt++)$t=tn[Tt],$t.valid&&$t.fromVertex.layer!==y&&(he=$t.fromVertex.index,$t=$t.portFromPos,(yt<he||yt===he&&Gt<$t)&&Ze++,(he<yt||he===yt&&$t<Gt)&&Me++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,tn=b[at].destinationEdgesArrayAccess,ht=0;ht<ot.length;ht++)if(Gt=ot[ht],Gt.valid&&Gt.toVertex.layer!==y)for(yt=Gt.toVertex.index,dt=Gt.portToPos,Tt=0;Tt<tn.length;Tt++)$t=tn[Tt],$t.valid&&$t.toVertex.layer!==y&&(he=$t.toVertex.index,Qe=$t.portToPos,(yt<he||yt===he&&dt<Qe)&&Ze++,(he<yt||he===yt&&Qe<dt)&&Me++)}z[nt*E+at]=Me,z[at*E+nt]=Ze}}return cg(a,y,b),z}Xs.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=Y1(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 Qm(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=hg(b,E),nt=b.tc[E],ot=0,at=0;at<nt;at++){var ht=z[at].destinationEdgesArrayAccess;if(ht!==null)for(var dt=0;dt<ht.length;dt++){var yt=ht[dt];if(yt.valid&&yt.toVertex.layer!==E){var Tt=yt.fromVertex.column+yt.portFromColOffset,Gt=yt.toVertex.column+yt.portToColOffset;ot+=(Math.abs(Tt-Gt)+1)*qv(yt)}}}cg(b,E,z),y+=ot}return y}Xs.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=hg(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=ot.destinationEdgesArrayAccess);var dt=0,yt=0,Tt=ot.near;if(Tt!==null&&Tt.layer===ot.layer&&(dt+=Tt.column-1,yt++),at!==null)for(Tt=0;Tt<at.length;Tt++){ot=at[Tt];var Gt=ot.fromVertex;ot.valid&&!ot.rev&&Gt.layer!==y&&(dt+=Gt.column,yt++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],Tt=ot.toVertex,ot.valid&&!ot.rev&&Tt.layer!==y&&(dt+=Tt.column,yt++);z[nt]=yt===0?-1:dt/yt}return cg(a,y,b),z}function $1(a,y,x){for(var b=hg(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=ot.destinationEdgesArrayAccess);var dt=0,yt=[],Tt=ot.near;if(Tt!==null&&Tt.layer===ot.layer&&(yt[dt]=Tt.column-1,dt++),ot=void 0,at!==null)for(Tt=0;Tt<at.length;Tt++){ot=at[Tt];var Gt=ot.fromVertex;ot.valid&&!ot.rev&&Gt.layer!==y&&(yt[dt]=Gt.column+ot.portFromColOffset,dt++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],Tt=ot.toVertex,ot.valid&&!ot.rev&&Tt.layer!==y&&(yt[dt]=Tt.column+ot.portToColOffset,dt++);dt===0?z[nt]=-1:(yt.sort(function($t,he){return $t-he}),ht=dt>>1,z[nt]=dt&1?yt[ht]:yt[ht-1]+yt[ht]>>1)}return cg(a,y,b),z}function R0(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,ht=y.layer-at.layer;ot=a.linkMinLength(ot),ht===ot&&R0(a,at,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ht=at.layer-y.layer,ot=a.linkMinLength(ot),ht===ot&&R0(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)}}Xs.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=X1(a);E!==null;)b[x]=E,x--,E.valid=!1,E=X1(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,ht=ot.destinationEdges;ht.next();)ht.value.toVertex.valid&&at++;ht=0;for(var dt=ot.sourceEdges;dt.next();)dt.value.fromVertex.valid&&ht++;(E===null||z<at-ht)&&(E=ot,z=at-ht)}}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 Wm: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 _0: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 X1(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++}Xs.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 Vm: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&&R0(a,ot,0,-1,!0,!1)}for(R0(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 ht=nt.value;if(ht.component===1){var dt=0,yt=!1,Tt=ht.sourceEdgesArrayAccess;E=Tt.length;for(var Gt=0;Gt<E;Gt++){var $t=Tt[Gt],he=$t.fromVertex;dt+=1,he.component!==1&&(z+=1,he=he.layer-ht.layer,$t=a.linkMinLength($t),b=Math.min(b,he-$t))}for(Tt=ht.destinationEdgesArrayAccess,E=Tt.length,Gt=0;Gt<E;Gt++)$t=Tt[Gt].toVertex,--dt,$t.component!==1?--z:yt=!0;(at===null||dt<ot)&&!yt&&(at=ht,ot=dt)}}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(R0(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(ht=0,dt=!1,Tt=nt.sourceEdgesArrayAccess,yt=Tt.length,Gt=0;Gt<yt;Gt++)$t=Tt[Gt].fromVertex,ht+=1,$t.component!==1?b+=1:dt=!0;for(Tt=nt.destinationEdgesArrayAccess,yt=Tt.length,Gt=0;Gt<yt;Gt++)$t=Tt[Gt],he=$t.toVertex,--ht,he.component!==1&&(--b,he=nt.layer-he.layer,$t=a.linkMinLength($t),E=Math.min(E,he-$t));(ot===null||ht>z)&&!dt&&(ot=nt,z=ht)}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}Xs.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 Zm: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))}Xs.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=cc(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)zm(this,b,1),Td(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=cc(this)),b=this.Ia;0<=b;b--)zm(this,b,-1),Td(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=cc(this))}for(vd(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)zm(this,b,0),Td(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=cc(this)),b=this.Ia;0<=b;b--)zm(this,b,0),Td(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=cc(this))}vd(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=Td(this,b,-1)||z;for(E=this.countCrossings(),E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Td(this,b,1)||z;for(E=this.countCrossings(),E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Td(this,b,1)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Td(this,b,-1)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Td(this,b,0)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Td(this,b,0)||z;E>=a?vd(this,y):(a=E,y=cc(this))}break;default:case Ym: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=Td(this,b,-1)||z;for(E=this.countCrossings(),E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Td(this,b,1)||z;for(E=this.countCrossings(),E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Td(this,b,1)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Td(this,b,-1)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Td(this,b,0)||z;for(E>=a?vd(this,y):(a=E,y=cc(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Td(this,b,0)||z;E>=a?vd(this,y):(a=E,y=cc(this))}}vd(this,y)};function zm(a,y,x){var b=hg(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);cg(a,y,b)}function Td(a,y,x){var b=hg(a,y),E=a.tc[y];x=Y1(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,ht=!0;ht;)for(ht=!1,z=0;z<E-1;z++){var dt=x[b[z].index*E+b[z+1].index],yt=x[b[z+1].index*E+b[z].index],Tt=0,Gt=0,$t=b[z].column,he=b[z+1].column,Qe=a.nodeMinColumnSpace(b[z],!0),Me=a.nodeMinColumnSpace(b[z],!1),Ze=a.nodeMinColumnSpace(b[z+1],!0),tn=a.nodeMinColumnSpace(b[z+1],!1);Qe=$t-Qe+Ze,Me=he-Me+tn;var sn=b[z].sourceEdges.iterator;for(sn.reset();sn.next();)if(Ze=sn.value,tn=Ze.fromVertex,Ze.valid&&tn.layer===y){for(Ze=0;b[Ze]!==tn;)Ze++;Ze<z&&(Tt+=2*(z-Ze),Gt+=2*(z+1-Ze)),Ze===z+1&&(Tt+=1),Ze>z+1&&(Tt+=4*(Ze-z),Gt+=4*(Ze-(z+1)))}for(sn=b[z].destinationEdges.iterator,sn.reset();sn.next();)if(Ze=sn.value,tn=Ze.toVertex,Ze.valid&&tn.layer===y){for(Ze=0;b[Ze]!==tn;)Ze++;Ze===z+1&&(Gt+=1)}for(sn=b[z+1].sourceEdges.iterator,sn.reset();sn.next();)if(Ze=sn.value,tn=Ze.fromVertex,Ze.valid&&tn.layer===y){for(Ze=0;b[Ze]!==tn;)Ze++;Ze<z&&(Tt+=2*(z+1-Ze),Gt+=2*(z-Ze)),Ze===z&&(Gt+=1),Ze>z+1&&(Tt+=4*(Ze-(z+1)),Gt+=4*(Ze-z))}for(sn=b[z+1].destinationEdges.iterator,sn.reset();sn.next();)if(Ze=sn.value,tn=Ze.toVertex,Ze.valid&&tn.layer===y){for(Ze=0;b[Ze]!==tn;)Ze++;Ze===z&&(Tt+=1)}Ze=tn=0,sn=nt[b[z].index];var Cn=ot[b[z].index],Kn=nt[b[z+1].index],ar=ot[b[z+1].index];sn!==-1&&(tn+=Math.abs(sn-$t),Ze+=Math.abs(sn-Me)),Cn!==-1&&(tn+=Math.abs(Cn-$t),Ze+=Math.abs(Cn-Me)),Kn!==-1&&(tn+=Math.abs(Kn-he),Ze+=Math.abs(Kn-Qe)),ar!==-1&&(tn+=Math.abs(ar-he),Ze+=Math.abs(ar-Qe)),(Gt<Tt-.5||Gt===Tt&&yt<dt-.5||Gt===Tt&&yt===dt&&Ze<tn-.5)&&(ht=at=!0,b[z].column=Me,b[z+1].column=Qe,dt=b[z],b[z]=b[z+1],b[z+1]=dt)}for(z=0;z<E;z++)b[z].index=z;return cg(a,y,b),at}Xs.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&t2)!==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=Yp(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Yp(this,y,-1)||x;x=Yp(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=Yp(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Yp(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Yp(this,y,0)||x}}else $w(this)};function Yp(a,y,x){for(var b=!1;Vw(a,y,x);)b=!0;return b}function Vw(a,y,x){var b,E=hg(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,ht=!0;ht;)for(ht=!1,b=0;b<z;b++){var dt=E[b].column,yt=a.nodeMinColumnSpace(E[b],!0),Tt=a.nodeMinColumnSpace(E[b],!1),Gt=0;0>b-1||dt-E[b-1].column-1>yt+a.nodeMinColumnSpace(E[b-1],!1)?Gt=dt-1:Gt=dt,yt=b+1>=z||E[b+1].column-dt-1>Tt+a.nodeMinColumnSpace(E[b+1],!0)?dt+1:dt;var $t=Tt=0,he=0;if(0>=x)for(var Qe=E[b].sourceEdges.iterator;Qe.next();){var Me=Qe.value,Ze=Me.fromVertex;if(Me.valid&&Ze.layer!==y){var tn=qv(Me),sn=Me.portFromColOffset;Me=Me.portToColOffset,Ze=Ze.column,Tt+=(Math.abs(dt+Me-(Ze+sn))+1)*tn,$t+=(Math.abs(Gt+Me-(Ze+sn))+1)*tn,he+=(Math.abs(yt+Me-(Ze+sn))+1)*tn}}if(0<=x)for(Qe=E[b].destinationEdges.iterator;Qe.next();)Me=Qe.value,Ze=Me.toVertex,Me.valid&&Ze.layer!==y&&(tn=qv(Me),sn=Me.portFromColOffset,Me=Me.portToColOffset,Ze=Ze.column,Tt+=(Math.abs(dt+sn-(Ze+Me))+1)*tn,$t+=(Math.abs(Gt+sn-(Ze+Me))+1)*tn,he+=(Math.abs(yt+sn-(Ze+Me))+1)*tn);Me=sn=tn=0,Qe=nt[E[b].index],Ze=ot[E[b].index],Qe!==-1&&(tn+=Math.abs(Qe-dt),sn+=Math.abs(Qe-Gt),Me+=Math.abs(Qe-yt)),Ze!==-1&&(tn+=Math.abs(Ze-dt),sn+=Math.abs(Ze-Gt),Me+=Math.abs(Ze-yt)),$t<Tt||$t===Tt&&sn<tn?(ht=at=!0,E[b].column=Gt):(he<Tt||he===Tt&&Me<tn)&&(ht=at=!0,E[b].column=yt)}return cg(a,y,E),a.normalize(),at}function iy(a,y,x){var b=hg(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),ht=a.nodeMinColumnSpace(b[x],!1),dt=0;if(nt[x]===-1)if(x===0&&x===E-1)dt=ot;else if(x===0){var yt=b[x+1].column;yt-ot===ht+a.nodeMinColumnSpace(b[x+1],!0)?dt=ot-1:dt=ot}else x===E-1?(yt=b[x-1].column,dt=ot-yt===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,yt=b[x+1].column,ht=yt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,dt=(at+ht)/2|0);else x===0&&x===E-1?dt=nt[x]:x===0?(yt=b[x+1].column,ht=yt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,dt=Math.min(nt[x],ht)):x===E-1?(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,dt=Math.max(nt[x],at)):(yt=b[x-1].column,at=yt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,yt=b[x+1].column,ht=yt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,at<nt[x]&&nt[x]<ht?dt=nt[x]:at>=nt[x]?dt=at:ht<=nt[x]&&(dt=ht));dt!==ot&&(z=!0,b[x].column=dt)}cg(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 Yw(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(;Yw(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=cc(a),z=Qm(a);for(b=z+1;z<b;){b=z,aw(a,x,1);var nt=Qm(a);nt>z?vd(a,E):nt<z&&(z=nt,E=cc(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=cc(a),z=Qm(a),b=z+1;z<b;)b=z,aw(a,x,-1),nt=Qm(a),nt>z?vd(a,E):nt<z&&(z=nt,E=cc(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=vi(),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,Xw(y,x);var z=null,nt=null,ot=null,at=null,ht=(a.ve&1)!==0,dt=(a.ve&2)!==0,yt=(a.ve&4)!==0,Tt=(a.ve&8)!==0;for(ht&&(a.verticalAlignment(y,x,!0),z=Km(a,y,!0,!1)),y.reverse(),yt&&(a.verticalAlignment(y,x,!1),ot=Km(a,y,!1,!1)),b=Ss(y),E=b.next();!E.done;E=b.next())E.value.reverse();Tt&&(a.verticalAlignment(y,x,!1),at=Km(a,y,!1,!0)),y.reverse(),dt&&(a.verticalAlignment(y,x,!0),nt=Km(a,y,!0,!0)),er(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(Gt){var $t=vi();ht&&$t.push(z.get(Gt)),dt&&$t.push(nt.get(Gt)),yt&&$t.push(ot.get(Gt)),Tt&&$t.push(at.get(Gt)),$t.sort(function(Qe,Me){return Qe-Me});var he=$t.length;he=($t[Math.floor((he-1)/2)]+$t[Math.ceil((he-1)/2)])/2,er($t),Gt.zc=he})}function Xw(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 ht=ot[at];t:{if(ht.node===null){var dt=cy(ht);if(0<dt.length){dt=dt[0].node===null;break t}}dt=!1}var yt=dt;if(at===ot.length-1||yt){for(dt=nt.length-1,yt&&(dt=cy(ht)[0].index);z<=at;){if(ht=ot[z],!ht.bo){yt=[];for(var Tt=Ss(ht.sourceEdgesArrayAccess),Gt=Tt.next();!Gt.done;Gt=Tt.next())Gt=Gt.value,Gt.valid&&yt.push(Gt);ht.bo=yt}for(ht=Ss(ht.bo),yt=ht.next();!yt.done;yt=ht.next())yt=yt.value,Tt=yt.fromVertex.index,(Tt<E||Tt>dt)&&y.add(yt);z++}E=dt}}}Xs.prototype.verticalAlignment=function(a,y,x){Jw(a),a=Ss(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Ss(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?cy(z):e2(z),ot=nt.length;if(0<ot){nt.sort(function(yt,Tt){return yt.vi-Tt.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(z.align===z){var ht=nt[ot],dt=void 0;dt=x?$m(ht,z):$m(z,ht),!y.contains(dt)&&E<ht.vi&&(ht.align=z,z.root=ht.root,z.align=ht.root,E=ht.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 Km(a,y,x,b){for(var E=a.K===90||a.K===270,z=Ss(y),nt=z.next();!nt.done;nt=z.next()){var ot=Ss(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=Ss(y),ot=z.next();!ot.done;ot=z.next()){ot=Ss(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ht=0,dt=at;dt.align!==at;){var yt=dt.align,Tt=nt?dt.width:dt.height,Gt=nt?yt.width:yt.height;if(x){var $t=$m(dt,yt),he=$t.portFromPos,Qe=$t.portToPos;$t.link!==null&&(dt.node&&dt.node!==$t.link.fromNode&&(he=nt?dt.focusX:dt.focusY),yt.node&&yt.node!==$t.link.toNode&&(Qe=nt?yt.focusX:yt.focusY))}else $t=$m(yt,dt),he=$t.portToPos,Qe=$t.portFromPos,$t.link!==null&&(dt.node&&dt.node!==$t.link.toNode&&(he=nt?dt.focusX:dt.focusY),yt.node&&yt.node!==$t.link.fromNode&&(Qe=nt?yt.focusX:yt.focusY));Tt=b?dt.qg+(Tt-he)-(Gt-Qe):dt.qg+he-Qe,yt.qg=Tt,ht=Math.min(ht,Tt),dt=dt.align}dt=at;do dt.qg=dt.qg-ht,dt=dt.align;while(dt!==at)}}for(x=Ss(y),nt=x.next();!nt.done;nt=x.next())for(z=Ss(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 Cr,y=Ss(y),nt=y.next();!nt.done;nt=y.next())for(x=Ss(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&&on("Could not determine previous vertex in layer"),y[x][a-1]}Xs.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=vi(),E=vi(),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(ht){ht.value+=at.delta}}(z)));er(b),er(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}Xs.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=Gm(this,!0),y=Gm(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 Gm(a,y){return a.K===270?y?Wa:Dl:a.K===90?y?Dl:Wa:a.K===180?y?Aa:nl:y?nl:Aa}Xs.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,ht=at.layer,dt=at.column|0;b?(nt=y.x+this.kc*dt,ht=this.Kd[ht]):(nt=this.Kd[ht],ht=y.y+this.kc*dt),at.centerX=nt,at.centerY=ht,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 Le(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Xs.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 ai(0,0,x,Math.abs(this.Ta[0]))):y.push(new ai(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new ai(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new ai(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new ai(0,0,Math.abs(this.Ta[0]),x)):y.push(new ai(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new ai(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new ai(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Xs.prototype.commitLayers=function(){},Xs.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 ht=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var dt=x.fromVertex,yt=x.toVertex;if(x.valid)y.curve===nd&&y.pointsCount===4&&(dt.column===yt.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ht,!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&&ht===Ma&&(b=!0),ot!==null&&at===Ma&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(Yo),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(Yo),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(dt.layer===yt.layer)y.zf();else{var Tt=!1,Gt=!1,$t=this.ie,he=y.firstPickIndex+1;if(y.isOrthogonal){Gt=!0;var Qe=y.pointsCount;4<Qe&&y.points.removeRange(2,Qe-3)}else if(y.curve===nd)Tt=!0,Qe=y.pointsCount,4<Qe&&y.points.removeRange(2,Qe-3),Qe===4&&(he=2);else{Qe=y.pointsCount;var Me=ht===Ma,Ze=at===Ma;2<Qe&&Me&&Ze?y.points.removeRange(1,Qe-2):3<Qe&&Me&&!Ze?y.points.removeRange(1,Qe-3):3<Qe&&!Me&&Ze?y.points.removeRange(2,Qe-2):4<Qe&&!Me&&!Ze&&y.points.removeRange(2,Qe-3)}if(x.rev){for(;yt!==null&&dt!==yt;){var tn=Qe=null;for(Me=yt.sourceEdges.iterator;Me.next()&&(Ze=Me.value,Ze.link!==x.link||(Qe=Ze.fromVertex,tn=Ze.toVertex,Qe.node!==null)););if(Qe===null)break;if(Qe!==dt){Me=y.i(he-1).x,Ze=y.i(he-1).y;var sn=Qe.centerX,Cn=Qe.centerY;if(Gt)this.K===180||this.K===0?he===y.firstPickIndex+1?(y.m(he++,Me,Ze),y.m(he++,Me,Cn)):(tn!==null?tn.centerY:Ze)!==Cn&&(tn=this.Ta[Qe.layer-1]+this.Rf.x,y.m(he++,tn,Ze),y.m(he++,tn,Cn)):he===y.firstPickIndex+1?(y.m(he++,Me,Ze),y.m(he++,sn,Ze)):(tn!==null?tn.centerX:Me)!==sn&&(tn=this.Ta[Qe.layer-1]+this.Rf.y,y.m(he++,Me,tn),y.m(he++,sn,tn));else if(he===y.firstPickIndex+1){tn=Math.max(10,this.he[yt.layer]);var Kn=Math.max(10,this.Ld[yt.layer]);if(Tt)this.K===180?sn<=yt.bounds.x?(yt=yt.bounds.x,y.m(he++,yt-tn,Cn),y.m(he++,yt,Cn),y.m(he++,yt+Kn,Cn)):(y.m(he++,sn-tn,Cn),y.m(he++,sn,Cn),y.m(he++,sn+Kn,Cn)):this.K===90?Cn>=yt.bounds.bottom?(yt=yt.bounds.y+yt.bounds.height,y.m(he++,sn,yt+Kn),y.m(he++,sn,yt),y.m(he++,sn,yt-tn)):(y.m(he++,sn,Cn+Kn),y.m(he++,sn,Cn),y.m(he++,sn,Cn-tn)):this.K===270?Cn<=yt.bounds.y?(yt=yt.bounds.y,y.m(he++,sn,yt-tn),y.m(he++,sn,yt),y.m(he++,sn,yt+Kn)):(y.m(he++,sn,Cn-tn),y.m(he++,sn,Cn),y.m(he++,sn,Cn+Kn)):this.K===0&&(sn>=yt.bounds.right?(yt=yt.bounds.x+yt.bounds.width,y.m(he++,yt+Kn,Cn),y.m(he++,yt,Cn),y.m(he++,yt-tn,Cn)):(y.m(he++,sn+Kn,Cn),y.m(he++,sn,Cn),y.m(he++,sn-tn,Cn)));else{y.m(he++,Me,Ze);var ar=0;this.K===180||this.K===0?((this.K===180?sn>=yt.bounds.right:sn<=yt.bounds.x)&&(ar=(this.K===0?-tn:Kn)/2),y.m(he++,Me+ar,Cn)):((this.K===270?Cn>=yt.bounds.bottom:Cn<=yt.bounds.y)&&(ar=(this.K===90?-tn:Kn)/2),y.m(he++,sn,Ze+ar)),y.m(he++,sn,Cn)}}else tn=Math.max(10,this.he[Qe.layer]),Kn=Math.max(10,this.Ld[Qe.layer]),Tt?this.K===180?(y.m(he++,sn-tn-$t,Cn),y.m(he++,Math.min(sn-tn+$t/2,sn),Cn),y.m(he++,sn,Cn),y.m(he++,sn,Cn),y.m(he++,Math.max(sn+Kn-$t/2,sn),Cn),y.m(he++,sn+Kn+$t,Cn)):this.K===90?(y.m(he++,sn,Cn+Kn+$t),y.m(he++,sn,Math.max(Cn+Kn-$t/2,Cn)),y.m(he++,sn,Cn),y.m(he++,sn,Cn),y.m(he++,sn,Math.min(Cn-tn+$t/2,Cn)),y.m(he++,sn,Cn-tn-$t)):this.K===270?(y.m(he++,sn,Cn-tn-$t),y.m(he++,sn,Math.min(Cn-tn+$t/2,Cn)),y.m(he++,sn,Cn),y.m(he++,sn,Cn),y.m(he++,sn,Math.max(Cn+Kn-$t/2,Cn)),y.m(he++,sn,Cn+Kn+$t)):(y.m(he++,sn+Kn+$t,Cn),y.m(he++,Math.max(sn+Kn-$t/2,sn),Cn),y.m(he++,sn,Cn),y.m(he++,sn,Cn),y.m(he++,Math.min(sn-tn+$t/2,sn),Cn),y.m(he++,sn-tn-$t,Cn)):y.m(he++,sn,Cn)}yt=Qe}(ot===null||ht!==Ma||Gt)&&(Me=y.i(he-1).x,Ze=y.i(he-1).y,sn=y.i(he).x,Cn=y.i(he).y,Gt?($t=this.Ld[dt.layer],this.K===180||this.K===0?(Gt=Ze,Gt>=dt.bounds.y&&Gt<=dt.bounds.bottom&&(this.K===180?sn>=dt.bounds.x:sn<=dt.bounds.right)&&(yt=dt.centerX+(this.K===180?-$t:$t),Gt<dt.bounds.y+dt.bounds.height/2?Gt=dt.bounds.y-this.kc/2:Gt=dt.bounds.bottom+this.kc/2,y.m(he++,yt,Ze),y.m(he++,yt,Gt)),y.m(he++,sn,Gt)):(Gt=Me,Gt>=dt.bounds.x&&Gt<=dt.bounds.right&&(this.K===270?Cn>=dt.bounds.y:Cn<=dt.bounds.bottom)&&(yt=dt.centerY+(this.K===270?-$t:$t),Gt<dt.bounds.x+dt.bounds.width/2?Gt=dt.bounds.x-this.kc/2:Gt=dt.bounds.right+this.kc/2,y.m(he++,Me,yt),y.m(he++,Gt,yt)),y.m(he++,Gt,Cn)),y.m(he++,sn,Cn)):Tt?(tn=Math.max(10,this.he[dt.layer]),Kn=Math.max(10,this.Ld[dt.layer]),this.K===180&&sn>=dt.bounds.x?(yt=dt.bounds.x+dt.bounds.width,y.L(he-2,yt,Ze),y.L(he-1,yt+Kn,Ze)):this.K===90&&Cn<=dt.bounds.bottom?(yt=dt.bounds.y,y.L(he-2,Me,yt),y.L(he-1,Me,yt-tn)):this.K===270&&Cn>=dt.bounds.y?(yt=dt.bounds.y+dt.bounds.height,y.L(he-2,Me,yt),y.L(he-1,Me,yt+Kn)):this.K===0&&sn<=dt.bounds.right&&(yt=dt.bounds.x,y.L(he-2,yt,Ze),y.L(he-1,yt-tn,Ze))):(tn=Math.max(10,this.he[dt.layer]),Kn=Math.max(10,this.Ld[dt.layer]),Gt=0,this.K===180||this.K===0?((this.K===180?sn<=dt.bounds.x:sn>=dt.bounds.right)&&(Gt=(this.K===0?Kn:-tn)/2),y.m(he++,sn+Gt,Ze)):((this.K===270?Cn<=dt.bounds.y:Cn>=dt.bounds.bottom)&&(Gt=(this.K===90?Kn:-tn)/2),y.m(he++,Me,Cn+Gt)),y.m(he++,sn,Cn)))}else{for(;dt!==null&&dt!==yt;){for(tn=Qe=null,dt=dt.destinationEdges.iterator;dt.next()&&(Me=dt.value,Me.link!==x.link||(Qe=Me.toVertex,tn=Me.fromVertex,tn.node!==null&&(tn=null),Qe.node!==null)););if(Qe===null)break;Qe!==yt&&(Me=y.i(he-1).x,Ze=y.i(he-1).y,sn=Qe.centerX,Cn=Qe.centerY,Gt?this.K===180||this.K===0?(tn!==null?tn.centerY:Ze)!==Cn&&(tn=this.Ta[Qe.layer]+this.Rf.x,he===y.firstPickIndex+1&&(tn=this.K===0?Math.max(tn,Me):Math.min(tn,Me)),y.m(he++,tn,Ze),y.m(he++,tn,Cn)):(tn!==null?tn.centerX:Me)!==sn&&(tn=this.Ta[Qe.layer]+this.Rf.y,he===y.firstPickIndex+1&&(tn=this.K===90?Math.max(tn,Ze):Math.min(tn,Ze)),y.m(he++,Me,tn),y.m(he++,sn,tn)):(tn=Math.max(10,this.he[Qe.layer]),Kn=Math.max(10,this.Ld[Qe.layer]),Tt?this.K===180?(y.m(he++,sn+Kn+$t,Cn),y.m(he++,Math.max(sn+Kn-$t/2,sn),Cn),y.m(he++,sn,Cn),y.m(he++,sn,Cn),y.m(he++,Math.min(sn-tn+$t/2,sn),Cn),y.m(he++,sn-tn-$t,Cn)):this.K===90?(y.m(he++,sn,Cn-tn-$t),y.m(he++,sn,Math.min(Cn-tn+$t/2,Cn)),y.m(he++,sn,Cn),y.m(he++,sn,Cn),y.m(he++,sn,Math.max(Cn+Kn-$t/2,Cn)),y.m(he++,sn,Cn+Kn+$t)):this.K===270?(y.m(he++,sn,Cn+Kn+$t),y.m(he++,sn,Math.max(Cn+Kn-$t/2,Cn)),y.m(he++,sn,Cn),y.m(he++,sn,Cn),y.m(he++,sn,Math.min(Cn-tn+$t/2,Cn)),y.m(he++,sn,Cn-tn-$t)):(y.m(he++,sn-tn-$t,Cn),y.m(he++,Math.min(sn-tn+$t/2,sn),Cn),y.m(he++,sn,Cn),y.m(he++,sn,Cn),y.m(he++,Math.max(sn+Kn-$t/2,sn),Cn),y.m(he++,sn+Kn+$t,Cn)):this.K===180?(y.m(he++,sn+Kn,Cn),y.m(he++,sn-tn,Cn)):this.K===90?(y.m(he++,sn,Cn-tn),y.m(he++,sn,Cn+Kn)):this.K===270?(y.m(he++,sn,Cn+Kn),y.m(he++,sn,Cn-tn)):(y.m(he++,sn-tn,Cn),y.m(he++,sn+Kn,Cn)))),dt=Qe}Gt&&(Me=y.i(he-1).x,Ze=y.i(he-1).y,sn=y.i(he).x,Cn=y.i(he).y,this.K===180||this.K===0?Ze!==Cn&&(tn=this.K===0?Math.min(Math.max((sn+Me)/2,this.Ta[yt.layer]+this.Rf.x),sn):Math.max(Math.min((sn+Me)/2,this.Ta[yt.layer]+this.Rf.x),sn),y.m(he++,tn,Ze),y.m(he++,tn,Cn)):Me!==sn&&(tn=this.K===90?Math.min(Math.max((Cn+Ze)/2,this.Ta[yt.layer]+this.Rf.y),Cn):Math.max(Math.min((Cn+Ze)/2,this.Ta[yt.layer]+this.Rf.y),Cn),y.m(he++,Me,tn),y.m(he++,sn,tn)))}b!==null&&Tt&&4<=y.pointsCount&&(nt!==null&&(nt=ht===Ma?y.getLinkPointFromPoint(E,nt,nt.ga(Yo),y.i(3),!0):y.i(0),ht===Ma&&(ht=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ht.x)/2,ht.y),y.L(2,b.x,(ht.y+b.y)/2)):(y.L(1,ht.x,(nt.y+ht.y)/2),y.L(2,(ht.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(E=at===Ma?y.getLinkPointFromPoint(z,ot,ot.ga(Yo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===Ma&&(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()},Xs.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Si,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 dg;ot.layer=Math.floor(z.y/2);var at=b.i(0),ht=b.i(b.pointsCount-1);if(ot.first=at.x*at.x+at.y,ot.jc=ht.x*ht.x+ht.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),ht=b.i(E+2);var dt=0;at.y<z.y?dt=ht.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(dt=ht.y>z.y?0:nt.x<z.x?2:1),ot.j=dt}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),dt=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(dt++,ot=ht.jc);this.zi(x,this.Ux,z,z+nt);var yt=1;for(ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(yt++,ot=ht.first);for(at=!0,ht=yt,dt<yt?(at=!1,ht=dt,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,dt=0,yt=z;yt<E;yt++){var Tt=x[yt];(at?Tt.first:Tt.jc)!==ot&&(dt++,ot=at?Tt.first:Tt.jc);var Gt=Tt.link;z=Gt.i(Tt.index),nt=Gt.i(Tt.index+1);var $t=this.linkSpacing*(dt-(ht-1)/2);y++,Gt.uh(),Gt.L(Tt.index,z.x,z.y+$t),Gt.L(Tt.index+1,nt.x,nt.y+$t),Gt.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 dg,ot.layer=Math.floor(z.x/2),at=b.i(0),ht=b.i(b.pointsCount-1),ot.first=at.x+at.y*at.y,ot.jc=ht.x+ht.y*ht.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),ht=b.i(E+2),dt=0,at.x<z.x?dt=ht.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(dt=ht.x>z.x?0:nt.y<z.y?2:1),ot.j=dt),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),dt=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(dt++,ot=ht.jc);for(this.zi(x,this.Ux,z,z+nt),yt=1,ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(yt++,ot=ht.first);for(at=!0,ht=yt,dt<yt?(at=!1,ht=dt,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,dt=0,yt=z;yt<E;yt++)Tt=x[yt],(at?Tt.first:Tt.jc)!==ot&&(dt++,ot=at?Tt.first:Tt.jc),Gt=Tt.link,z=Gt.i(Tt.index),nt=Gt.i(Tt.index+1),$t=this.linkSpacing*(dt-(ht-1)/2),y++,Gt.uh(),Gt.L(Tt.index,z.x+$t,z.y),Gt.L(Tt.index+1,nt.x+$t,nt.y),Gt.zf()}z=E}a=b}}}},Wt=Xs.prototype,Wt.Vx=function(a,y){return a instanceof dg&&y instanceof dg&&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},Wt.Ux=function(a,y){return a instanceof dg&&y instanceof dg&&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},Wt.Js=function(a,y){return a instanceof dg&&y instanceof dg&&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},Wt.B=function(a,y){return a-=y,-1<a&&1>a},Wt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&on("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 hg(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 cg(a,y,x){a.He[a.tc[y]]=x}Oe.Object.defineProperties(Xs.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()):on("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==ry&&a!==Wm&&a!==_0||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==Vm&&a!==oy&&a!==sy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==Zm&&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!==Ym&&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 Wm=new ri(Xs,"CycleDepthFirst",0),ry=new ri(Xs,"CycleGreedy",1),_0=new ri(Xs,"CycleFromLayers",2),Vm=new ri(Xs,"LayerOptimalLinkLength",0),oy=new ri(Xs,"LayerLongestPathSink",1),sy=new ri(Xs,"LayerLongestPathSource",2),Zm=new ri(Xs,"InitDepthFirstOut",0),ay=new ri(Xs,"InitDepthFirstIn",1),ly=new ri(Xs,"InitNaive",2),uy=new ri(Xs,"AggressiveNone",0),Ym=new ri(Xs,"AggressiveLess",1),hy=new ri(Xs,"AggressiveMore",2),t2=8;Xs.className="LayeredDigraphLayout",Xs.CycleDepthFirst=Wm,Xs.CycleGreedy=ry,Xs.CycleFromLayers=_0,Xs.LayerOptimalLinkLength=Vm,Xs.LayerLongestPathSink=oy,Xs.LayerLongestPathSource=sy,Xs.InitDepthFirstOut=Zm,Xs.InitDepthFirstIn=ay,Xs.InitNaive=ly,Xs.AggressiveNone=uy,Xs.AggressiveLess=Ym,Xs.AggressiveMore=hy,Xs.PackNone=0,Xs.PackExpand=1,Xs.PackStraighten=2,Xs.PackMedian=4,Xs.PackAll=15,Xs.AlignNone=0,Xs.AlignUpperLeft=1,Xs.AlignUpperRight=2,Xs.AlignLowerLeft=4,Xs.AlignLowerRight=8,Xs.AlignAll=15;function dg(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}dg.className="SegInfo";function $p(a){Ba.call(this,a)}In($p,Ba),$p.prototype.createVertex=function(){return new yd(this)},$p.prototype.createEdge=function(){return new H0(this)},$p.className="LayeredDigraphNetwork";function yd(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}In(yd,xu);function hw(a,y){return a.index-y.index}function $m(a,y){if(!a.$n){for(var x=[],b=Ss(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Ss(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;on("Unable to find destination edge to given vertex")}function cy(a){if(!a.co){for(var y=[],x=Ss(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 e2(a){if(!a.ao){for(var y=[],x=Ss(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}yd.prototype.Cl=function(a){xu.prototype.Cl.call(this,a),this.bo=this.co=null},yd.prototype.Kl=function(a){xu.prototype.Kl.call(this,a),this.bo=this.co=null},yd.prototype.zl=function(a){xu.prototype.zl.call(this,a),this.$n=this.ao=null},yd.prototype.Jl=function(a){xu.prototype.Jl.call(this,a),this.$n=this.ao=null},Oe.Object.defineProperties(yd.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)}}}),yd.prototype.deleteDestinationEdge=yd.prototype.Jl,yd.prototype.addDestinationEdge=yd.prototype.zl,yd.prototype.deleteSourceEdge=yd.prototype.Kl,yd.prototype.addSourceEdge=yd.prototype.Cl,yd.className="LayeredDigraphVertex";function H0(a){Hc.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}In(H0,Hc),Oe.Object.defineProperties(H0.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)}}}),H0.className="LayeredDigraphEdge";function ls(a){Ya.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 zi(10,10).freeze();var y=new cp(this);this.W=new kd(y),this.Y=new kd(y),this.ru=[],a&&Object.assign(this,a)}In(ls,Ya),ls.prototype.cloneProtected=function(a){Ya.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)},ls.prototype.qb=function(a){a.classType===ls?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:on("Unknown enum value: "+a):Ya.prototype.qb.call(this,a)},ls.prototype.createNetwork=function(){return new cp(this)},ls.prototype.makeNetwork=function(a){function y(b){if(b instanceof hr)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Wi){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 jn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Ro?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},ls.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 jn&&(y=a),this.path===tv&&y!==null?this.ud=y.isTreePathToChildren?tf:up: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 hr?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof kd&&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=n2(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 kd&&Aw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof kd&&fw(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof kd&&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 kd&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Pi,this.isValidLayout=!0};function n2(a){var y=new Pi;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}ls.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 up:x.destinationEdges.count===0&&this.Ub.add(x);break;default:on("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 up:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:on("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 Si,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 up:if(0<y.sourceEdges.count){for(x=new Si,b=y.sourceVertexes;b.next();)E=b.value,dw(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:on("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}ls.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 i2(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}}ls.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(i2(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])}}ls.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])}}ls.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Xp:break;case z0:a.children.reverse();break;case K0:a.children.sort(a.comparer);break;case G0:a.children.sort(a.comparer),a.children.reverse();break;default:on("Unhandled sorting value "+a.sorting.toString())}},ls.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ls.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=Ag(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 ht=a.node.Mu();ht.next();){var dt=ht.value;dt.category==="Comment"&&dt.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(dt),dt.Va(),dt=dt.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,dt.width),nt+=dt.height+Math.abs(ot)):(z+=dt.width+Math.abs(ot),nt=Math.max(nt,dt.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=ai.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,ai.free(E))};function Ag(a){return a===Of||a===rf||a===Df||a===df}function Q0(a){return a===Of||a===rf}function Ay(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Ag(x)){if(Q0(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Df)return!0}}return!1}ls.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=Ag(z)),b=b===90||b===270,x=E===90||E===270;for(var nt=a.childrenCount===0,ot=Ay(a),at=0,ht=a.comments,dt=ht.length,yt=Le.alloc(),Tt=0;Tt<dt;Tt++){var Gt=ht[Tt],$t=Gt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(yt.h(a.bounds.x-a.commentMargin-$t.width,a.bounds.y+at),Gt.move(yt),Gt=Gt.Sd();Gt.next();){var he=Gt.value;he.fromSpot=Aa,he.toSpot=nl}else for(yt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),Gt.move(yt),Gt=Gt.Sd();Gt.next();)he=Gt.value,he.fromSpot=nl,he.toSpot=Aa;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),Gt.move(yt),Gt=Gt.Sd();Gt.next();)he=Gt.value,he.fromSpot=nl,he.toSpot=Aa;else for(yt.h(a.bounds.x+a.commentMargin-$t.width,a.bounds.y+at),Gt.move(yt),Gt=Gt.Sd();Gt.next();)he=Gt.value,he.fromSpot=Aa,he.toSpot=nl;at=0<=a.commentSpacing?at+($t.height+a.commentSpacing):at+(a.commentSpacing-$t.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-$t.height),Gt.move(yt),Gt=Gt.Sd();Gt.next();)he=Gt.value,he.fromSpot=Wa,he.toSpot=Dl;else for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),Gt.move(yt),Gt=Gt.Sd();Gt.next();)he=Gt.value,he.fromSpot=Dl,he.toSpot=Wa;else if(0<=a.commentMargin)for(yt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),Gt.move(yt),Gt=Gt.Sd();Gt.next();)he=Gt.value,he.fromSpot=Dl,he.toSpot=Wa;else for(yt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-$t.height),Gt.move(yt),Gt=Gt.Sd();Gt.next();)he=Gt.value,he.fromSpot=Wa,he.toSpot=Dl;at=0<=a.commentSpacing?at+($t.width+a.commentSpacing):at+(a.commentSpacing-$t.width)}}if(Le.free(yt),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)}},ls.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 W0: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=Ag(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 ht=at===nf,dt=Ag(at),yt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Tt=a.nodeSpacing,Gt=this.computeNodeIndent(a),$t=a.rowSpacing,he=0;(b||ht||a.hm||a.im&&a.maxGenerationCount===1)&&(he=Math.max(0,a.rowIndent)),b=a.width;var Qe=a.height,Me=0,Ze=0,tn=0,sn=null,Cn=null,Kn=0,ar=0,Tr=0,xr=0,Gi=0,Li=0,jo=0,Bo=0;if(dt&&!Q0(at)&&135<E&&nt.reverse(),Q0(at))if(1<ot)for(var Ts=0;Ts<ot;Ts++)Ts%2===0&&Ts!==ot-1&&(Bo=Math.max(Bo,y?nt[Ts].Da.width:nt[Ts].Da.height));else ot===1&&(Bo=y?nt[0].Da.width:nt[0].Da.height);if(dt){switch(at){case Of:Ze=135>E?mw(this,a,nt,Bo,Me,Ze):vw(this,a,nt,Bo,Me,Ze),Bo=Ze.x,Me=Ze.width,Ze=Ze.height;break;case Df:for(sn=0;sn<ot;sn++)Cn=nt[sn],yt=Cn.Da,tn=Li===0?0:$t,y?(Cn.S.h(z-yt.width,xr+tn),Me=Math.max(Me,yt.width),Ze=Math.max(Ze,xr+tn+yt.height),xr+=tn+yt.height):(Cn.S.h(Tr+tn,z-yt.height),Me=Math.max(Me,Tr+tn+yt.width),Ze=Math.max(Ze,yt.height),Tr+=tn+yt.width),Li++;break;case df:for(sn=0;sn<ot;sn++)Cn=nt[sn],z=Cn.Da,yt=Li===0?0:$t,y?(Cn.S.h(Tt/2+a.focus.x,xr+yt),Me=Math.max(Me,z.width),Ze=Math.max(Ze,xr+yt+z.height),xr+=yt+z.height):(Cn.S.h(Tr+yt,Tt/2+a.focus.y),Me=Math.max(Me,Tr+yt+z.width),Ze=Math.max(Ze,z.height),Tr+=yt+z.width),Li++}sn=xc(this,2),Cn=xc(this,2),y?(sn[0].h(0,0),sn[1].h(0,Ze),Cn[0].h(Me,0)):(sn[0].h(0,0),sn[1].h(Me,0),Cn[0].h(0,Ze)),Cn[1].h(Me,Ze)}else for(Ts=0;Ts<ot;Ts++){var pa=nt[Ts],Fu=pa.Da;if(y){0<yt&&0<Li&&Tr+Tt+Fu.width>yt&&(Tr<z&&Dg(a,at,z-Tr,0,jo,Ts-1),Gi++,Li=0,jo=Ts,tn=Ze,Tr=0,xr=135<E?-Ze-$t:Ze+$t),Jm(this,pa,0,xr);var Du=0;if(Li===0)sn=pa.Yo,Cn=pa.kp,Kn=Fu.width,ar=Fu.height,(sn===null||Cn===null||E!==iA(pa))&&(sn=xc(this,2),Cn=xc(this,2),sn[0].h(0,0),sn[1].h(0,ar),Cn[0].h(Kn,0),Cn[1].h(Kn,ar));else{var Nh=vi();ar=yw(this,a,pa,sn,Cn,Kn,ar,Nh),Du=ar.x,sn=Nh[0],Cn=Nh[1],Kn=ar.width,ar=ar.height,er(Nh),Tr<Fu.width&&0>Du&&(lp(a,-Du,0,jo,Ts-1),qm(sn,-Du,0),qm(Cn,-Du,0),Du=0)}pa.S.h(Du,xr),Me=Math.max(Me,Kn),Ze=Math.max(Ze,tn+(Gi===0?0:$t)+Fu.height),Tr=Kn}else 0<yt&&0<Li&&xr+Tt+Fu.height>yt&&(xr<z&&Dg(a,at,0,z-xr,jo,Ts-1),Gi++,Li=0,jo=Ts,tn=Me,xr=0,Tr=135<E?-Me-$t:Me+$t),Jm(this,pa,Tr,0),Du=0,Li===0?(sn=pa.Yo,Cn=pa.kp,Kn=Fu.width,ar=Fu.height,(sn===null||Cn===null||E!==iA(pa))&&(sn=xc(this,2),Cn=xc(this,2),sn[0].h(0,0),sn[1].h(Kn,0),Cn[0].h(0,ar),Cn[1].h(Kn,ar))):(Nh=vi(),ar=yw(this,a,pa,sn,Cn,Kn,ar,Nh),Du=ar.x,sn=Nh[0],Cn=Nh[1],Kn=ar.width,ar=ar.height,er(Nh),xr<Fu.height&&0>Du&&(lp(a,0,-Du,jo,Ts-1),qm(sn,0,-Du),qm(Cn,0,-Du),Du=0)),pa.S.h(Tr,Du),Ze=Math.max(Ze,ar),Me=Math.max(Me,tn+(Gi===0?0:$t)+Fu.width),xr=ar;Li++}switch(0<Gi&&(y?(Ze+=Math.max(0,x),Tr<Me&&Dg(a,at,Me-Tr,0,jo,ot-1),0<he&&(ht||lp(a,he,0,0,ot-1),Me+=he)):(Me+=Math.max(0,x),xr<Ze&&Dg(a,at,0,Ze-xr,jo,ot-1),0<he&&(ht||lp(a,0,he,0,ot-1),Ze+=he))),he=ht=0,at){case Jp:y?ht+=Me/2-a.focus.x-Gt/2:he+=Ze/2-a.focus.y-Gt/2;break;case hp:0<Gi?y?ht+=Me/2-a.focus.x-Gt/2:he+=Ze/2-a.focus.y-Gt/2:y?(Bo=nt[0].S.x+nt[0].la.x,ht+=Bo+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-Bo)/2-a.focus.x-Gt/2):(Bo=nt[0].S.y+nt[0].la.y,he+=Bo+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-Bo)/2-a.focus.y-Gt/2);break;case ef:y?(ht-=Gt,Me+=Gt):(he-=Gt,Ze+=Gt);break;case nf:y?(ht+=Me-a.width+Gt,Me+=Gt):(he+=Ze-a.height+Gt,Ze+=Gt);break;case Of:y?1<ot?ht+=Bo+Tt/2-a.focus.x:ht+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?he+=Bo+Tt/2-a.focus.y:he+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case Df:y?ht+=Me+Tt/2-a.focus.x:he+=Ze+Tt/2-a.focus.y;break;case df:break;default:Ze=this.customAlignment(a,ht,he,Me,Ze),ht=Ze[0],he=Ze[1],Me=Ze[2],Ze=Ze[3]}for(Gt=0;Gt<ot;Gt++)Bo=nt[Gt],y?Bo.S.h(Bo.S.x+Bo.la.x-ht,Bo.S.y+(135<E?(dt?-Ze:-Bo.Da.height)+Bo.la.y-x:Qe+x+Bo.la.y)):Bo.S.h(Bo.S.x+(135<E?(dt?-Me:-Bo.Da.width)+Bo.la.x-x:b+x+Bo.la.x),Bo.S.y+Bo.la.y-he);if(ot=nt=0,dt?y?(Me=fy(a,Me,ht),0>ht&&(ht=0),135<E&&(he+=Ze+x),Ze+=Qe+x,at===df&&(nt+=Tt/2+a.focus.x),ot+=Qe+x):(135<E&&(ht+=Me+x),Me+=b+x,Ze=gy(a,Ze,he),0>he&&(he=0),at===df&&(ot+=Tt/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>Me&&(Me=py(at,b-Me,0),nt=Me.x,ot=Me.y,Me=b,ht=0):Me=fy(a,Me,ht),0>ht&&(nt-=ht,ht=0),135<E&&(he+=Ze+x),Ze=Math.max(Math.max(Ze,Qe),Ze+Qe+x),ot+=Qe+x):(135<E&&(ht+=Me+x),Me=Math.max(Math.max(Me,b),Me+b+x),a.comments===null?Qe>Ze&&(Ze=py(at,0,Qe-Ze),nt=Ze.x,ot=Ze.y,Ze=Qe,he=0):Ze=gy(a,Ze,he),0>he&&(ot-=he,he=0),nt+=b+x),0<Gi)E=xc(this,4),Gi=xc(this,4),y?(E[2].h(0,Qe+x),E[3].h(E[2].x,Ze),Gi[2].h(Me,E[2].y),Gi[3].h(Gi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Me,E[2].y),Gi[2].h(E[2].x,Ze),Gi[3].h(E[3].x,Gi[2].y));else{for(E=xc(this,sn.length+2),Gi=xc(this,Cn.length+2),at=0;at<sn.length;at++)dt=sn[at],E[at+2].h(dt.x+nt,dt.y+ot);for(at=0;at<Cn.length;at++)dt=Cn[at],Gi[at+2].h(dt.x+nt,dt.y+ot)}y?(E[0].h(ht,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])),Gi[0].h(ht+b,0),Gi[1].h(Gi[0].x,Qe),Gi[2].y<Gi[1].y&&(Gi[2].x<Gi[0].x?Gi[2].assign(Gi[1]):Gi[1].assign(Gi[2])),Gi[3].y<Gi[2].y&&(Gi[3].x<Gi[0].x?Gi[3].assign(Gi[2]):Gi[2].assign(Gi[3])),E[2].y-=x/2,Gi[2].y-=x/2):(E[0].h(0,he),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])),Gi[0].h(0,he+Qe),Gi[1].h(b,Gi[0].y),Gi[2].x<Gi[1].x&&(Gi[2].y<Gi[0].y?Gi[2].assign(Gi[1]):Gi[1].assign(Gi[2])),Gi[3].x<Gi[2].x&&(Gi[3].y<Gi[0].y?Gi[3].assign(Gi[2]):Gi[2].assign(Gi[3])),E[2].x-=x/2,Gi[2].x-=x/2),xA(this,sn),xA(this,Cn),a.Yo=E,a.kp=Gi,a.la.h(ht,he),a.Da.h(Me,Ze)}break;default:on("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=Ag(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 ht=y.alignment,dt=ht===ef,yt=ht===nf;ot=Ag(ht);var Tt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var Gt=y.nodeSpacing,$t=a.computeNodeIndent(y),he=dt||yt?0:$t/2,Qe=y.rowSpacing,Me=0;(dt||yt||y.hm||y.im&&y.maxGenerationCount===1)&&(Me=Math.max(0,y.rowIndent)),dt=y.width;var Ze=y.height,tn=0,sn=0,Cn=0,Kn=0,ar=0,Tr=0,xr=0,Gi=0,Li=0,jo=0;if(ot&&!Q0(ht)&&135<b&&E.reverse(),Q0(ht))if(1<nt)for(var Bo=0;Bo<nt;Bo++){var Ts=E[Bo],pa=Ts.Da;Bo%2===0&&Bo!==nt-1?Li=Math.max(Li,(x?pa.width:pa.height)+a.computeBusNodeSpacing(Ts)-Gt):Bo%2!==0&&(jo=Math.max(jo,(x?pa.width:pa.height)+a.computeBusNodeSpacing(Ts)-Gt))}else nt===1&&(Li=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ht){case Of:case rf:sn=135>b?mw(a,y,E,Li,tn,sn):vw(a,y,E,Li,tn,sn),Li=sn.x,tn=sn.width,sn=sn.height;break;case Df:for(Tt=0;Tt<nt;Tt++)he=E[Tt],Cn=he.Da,jo=xr===0?0:Qe,x?(he.S.h(z-Cn.width,ar+jo),tn=Math.max(tn,Cn.width),sn=Math.max(sn,ar+jo+Cn.height),ar+=jo+Cn.height):(he.S.h(Kn+jo,z-Cn.height),tn=Math.max(tn,Kn+jo+Cn.width),sn=Math.max(sn,Cn.height),Kn+=jo+Cn.width),xr++;break;case df:for(z=0;z<nt;z++)Tt=E[z],he=Tt.Da,Cn=xr===0?0:Qe,x?(Tt.S.h(Gt/2+y.focus.x,ar+Cn),tn=Math.max(tn,he.width),sn=Math.max(sn,ar+Cn+he.height),ar+=Cn+he.height):(Tt.S.h(Kn+Cn,Gt/2+y.focus.y),tn=Math.max(tn,Kn+Cn+he.width),sn=Math.max(sn,he.height),Kn+=Cn+he.width),xr++}else for(jo=0;jo<nt;jo++)Bo=E[jo],Ts=Bo.Da,x?(0<Tt&&0<xr&&Kn+Gt+Ts.width>Tt&&(Kn<z&&Dg(y,ht,z-Kn,0,Gi,jo-1),Tr++,xr=0,Gi=jo,Cn=sn,Kn=0,ar=135<b?-sn-Qe:sn+Qe),pa=xr===0?he:Gt,Jm(a,Bo,0,ar),Bo.S.h(Kn+pa,ar),tn=Math.max(tn,Kn+pa+Ts.width),sn=Math.max(sn,Cn+(Tr===0?0:Qe)+Ts.height),Kn+=pa+Ts.width):(0<Tt&&0<xr&&ar+Gt+Ts.height>Tt&&(ar<z&&Dg(y,ht,0,z-ar,Gi,jo-1),Tr++,xr=0,Gi=jo,Cn=tn,ar=0,Kn=135<b?-tn-Qe:tn+Qe),pa=xr===0?he:Gt,Jm(a,Bo,Kn,0),Bo.S.h(Kn,ar+pa),sn=Math.max(sn,ar+pa+Ts.height),tn=Math.max(tn,Cn+(Tr===0?0:Qe)+Ts.width),ar+=pa+Ts.height),xr++;switch(0<Tr&&(x?(sn+=Math.max(0,at),Kn<tn&&Dg(y,ht,tn-Kn,0,Gi,nt-1),0<Me&&(yt||lp(y,Me,0,0,nt-1),tn+=Me)):(tn+=Math.max(0,at),ar<sn&&Dg(y,ht,0,sn-ar,Gi,nt-1),0<Me&&(yt||lp(y,0,Me,0,nt-1),sn+=Me))),Me=yt=0,ht){case Jp:x?yt+=tn/2-y.focus.x-$t/2:Me+=sn/2-y.focus.y-$t/2;break;case hp:0<Tr?x?yt+=tn/2-y.focus.x-$t/2:Me+=sn/2-y.focus.y-$t/2:x?(a=E[0].S.x+E[0].la.x,yt+=a+(E[nt-1].S.x+E[nt-1].la.x+2*E[nt-1].focus.x-a)/2-y.focus.x-$t/2):(a=E[0].S.y+E[0].la.y,Me+=a+(E[nt-1].S.y+E[nt-1].la.y+2*E[nt-1].focus.y-a)/2-y.focus.y-$t/2);break;case ef:x?(yt-=$t,tn+=$t):(Me-=$t,sn+=$t);break;case nf:x?(yt+=tn-y.width+$t,tn+=$t):(Me+=sn-y.height+$t,sn+=$t);break;case Of:case rf:x?1<nt?yt+=Li+Gt/2-y.focus.x:yt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?Me+=Li+Gt/2-y.focus.y:Me+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Df:x?yt+=tn+Gt/2-y.focus.x:Me+=sn+Gt/2-y.focus.y;break;case df:break;default:a=a.customAlignment(y,yt,Me,tn,sn),yt=a[0],Me=a[1],tn=a[2],sn=a[3]}for(a=0;a<nt;a++)$t=E[a],x?$t.S.h($t.S.x+$t.la.x-yt,$t.S.y+(135<b?(ot?-sn:-$t.Da.height)+$t.la.y-at:Ze+at+$t.la.y)):$t.S.h($t.S.x+(135<b?(ot?-tn:-$t.Da.width)+$t.la.x-at:dt+at+$t.la.x),$t.S.y+$t.la.y-Me);x?(tn=fy(y,tn,yt),0>yt&&(yt=0),135<b&&(Me+=sn+at),sn=Math.max(Math.max(sn,Ze),sn+Ze+at)):(135<b&&(yt+=tn+at),tn=Math.max(Math.max(tn,dt),tn+dt+at),sn=gy(y,sn,Me),0>Me&&(Me=0)),y.la.h(yt,Me),y.Da.h(tn,sn)}}ls.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 ai(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new ai(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=iA(y)===90,dt=0,yt=0,Tt=0,Gt=0;Gt<nt;Gt++)if(!(Gt%2!==0||1<nt&&Gt===nt-1)){var $t=x[Gt],he=$t.Da,Qe=dt===0?0:at;if(ht){var Me=a.computeBusNodeSpacing($t)-ot;$t.S.h(b-(he.width+Me),Tt+Qe),E=Math.max(E,he.width+Me),z=Math.max(z,Tt+Qe+he.height),Tt+=Qe+he.height}else Me=a.computeBusNodeSpacing($t)-ot,$t.S.h(yt+Qe,b-(he.height+Me)),z=Math.max(z,he.height+Me),E=Math.max(E,yt+Qe+he.width),yt+=Qe+he.width;dt++}for(dt=0,$t=yt,Gt=Tt,ht?(yt=b+ot,Tt=0):(yt=0,Tt=b+ot),he=0;he<nt;he++)if(he%2!==0){Qe=x[he],Me=Qe.Da;var Ze=dt===0?0:at;if(ht){var tn=a.computeBusNodeSpacing(Qe)-ot;Qe.S.h(yt+tn,Tt+Ze),E=Math.max(E,yt+Me.width+tn),z=Math.max(z,Tt+Ze+Me.height),Tt+=Ze+Me.height}else tn=a.computeBusNodeSpacing(Qe)-ot,Qe.S.h(yt+Ze,Tt+tn),E=Math.max(E,yt+Ze+Me.width),z=Math.max(z,Tt+Me.height+tn),yt+=Ze+Me.width;dt++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ht?Math.max(Math.abs(Gt),Math.abs(Tt)):Math.max(Math.abs($t),Math.abs(yt))),ht?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),ht=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,ht+nt.width),0>ht&&(E-=ht),z=Math.max(z,Math.max(Gt,Tt)+a+nt.height),0>x.S.x&&(b=Xm(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($t,yt)+a+nt.width),Tt=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,Tt+nt.height),0>Tt&&(z-=Tt),0>x.S.y&&(b=Xm(y,x.S.y,!0,b,ot)))),new ai(b,0,E,z)}function vw(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new ai(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new ai(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=iA(y)===270,dt=0,yt=0,Tt=0,Gt=0;Gt<nt;Gt++)if(!(Gt%2!==0||1<nt&&Gt===nt-1)){var $t=x[Gt],he=$t.Da,Qe=dt===0?0:at;if(ht){var Me=a.computeBusNodeSpacing($t)-ot;Tt-=Qe+he.height,$t.S.h(b-(he.width+Me),Tt),E=Math.max(E,he.width+Me),z=Math.max(z,Math.abs(Tt))}else Me=a.computeBusNodeSpacing($t)-ot,yt-=Qe+he.width,$t.S.h(yt,b-(he.height+Me)),z=Math.max(z,he.height+Me),E=Math.max(E,Math.abs(yt));dt++}for(dt=0,$t=yt,Gt=Tt,ht?(yt=b+ot,Tt=0):(yt=0,Tt=b+ot),he=0;he<nt;he++)if(he%2!==0){Qe=x[he],Me=Qe.Da;var Ze=dt===0?0:at;if(ht){var tn=a.computeBusNodeSpacing(Qe)-ot;Tt-=Ze+Me.height,Qe.S.h(yt+tn,Tt),E=Math.max(E,yt+Me.width+tn),z=Math.max(z,Math.abs(Tt))}else tn=a.computeBusNodeSpacing(Qe)-ot,yt-=Ze+Me.width,Qe.S.h(yt,Tt+tn),z=Math.max(z,Tt+Me.height+tn),E=Math.max(E,Math.abs(yt));dt++}for(1<nt&&nt%2===1&&(at=x[nt-1],dt=at.Da,a=a.computeBusLastRowSpacing(at,ht?Math.max(Math.abs(Gt),Math.abs(Tt)):Math.max(Math.abs($t),Math.abs(yt))),ht?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-dt.height-a),yt=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,yt+dt.width),0>yt&&(E-=yt),z=Math.max(z,Math.abs(Math.min(Gt,Tt))+a+dt.height),0>at.S.x&&(b=Xm(y,at.S.x,!1,b,ot))):(at.S.h(-E-dt.width-a,b+ot/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min($t,yt))+a+dt.width),Tt=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,Tt+dt.height),0>Tt&&(z-=Tt),0>at.S.y&&(b=Xm(y,at.S.y,!0,b,ot)))),y=0;y<nt;y++)ot=x[y],ht?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+E,ot.S.y);return new ai(b,0,E,z)}ls.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},ls.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function Xm(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 hp:case Jp: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 Of:case rf:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Df: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 hp:case Jp: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 Of:case rf:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Df: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 Jp:y/=2,x/=2;break;case hp:y/=2,x/=2;break;case ef:x=y=0;break;case nf:break;default:on("Unhandled alignment value "+a.toString())}return new Le(y,x)}function Dg(a,y,x,b,E,z){y=py(y,x,b),lp(a,y.x,y.y,E,z)}function lp(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 Jm(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 up:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:on("Unhandled path value "+a.ud.toString())}}function qm(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),ht=at===90||at===270,dt=y.nodeSpacing;y=b;var yt=E;b=z;var Tt=nt,Gt=x.Yo,$t=x.kp;nt=x.Da;var he=ht?Math.max(Tt,nt.height):Math.max(b,nt.width);if((Gt===null||at!==iA(x))&&(Gt=xc(a,2),$t=xc(a,2),ht?(Gt[0].h(0,0),Gt[1].h(0,nt.height),$t[0].h(nt.width,0),$t[1].h($t[0].x,Gt[1].y)):(Gt[0].h(0,0),Gt[1].h(nt.width,0),$t[0].h(0,nt.height),$t[1].h(Gt[1].x,$t[0].y))),ht){if(Tt=9999999,!(yt===null||2>yt.length||Gt===null||2>Gt.length))for(E=x=0;x<yt.length&&E<Gt.length;){z=yt[x];var Qe=Gt[E];at=Qe.x,ht=Qe.y,at+=b;var Me=z;x+1<yt.length&&(Me=yt[x+1]);var Ze=Qe;Qe=Ze.x,Ze=Ze.y,E+1<Gt.length&&(Ze=Gt[E+1],Qe=Ze.x,Ze=Ze.y,Qe+=b);var tn=Tt;z.y===ht?tn=at-z.x:z.y>ht&&z.y<Ze?tn=at+(z.y-ht)/(Ze-ht)*(Qe-at)-z.x:ht>z.y&&ht<Me.y&&(tn=at-(z.x+(ht-z.y)/(Me.y-z.y)*(Me.x-z.x))),tn<Tt&&(Tt=tn),Me.y<=z.y?x++:Ze<=ht?E++:(Me.y<=Ze&&x++,Ze<=Me.y&&E++)}if(Tt=b-Tt,Tt+=dt,x=Gt,E=Tt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(dt=xc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)ht=x[z++],dt[b++].h(ht.x+E,ht.y);for(;at<y.length;)ht=y[at++],dt[b++].h(ht.x,ht.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)ht=x[z++],dt[b++].h(ht.x+E,ht.y);for(x=xc(a,b),at=0;at<b;at++)x[at].assign(dt[at]);xA(a,dt),b=x}if(z=$t,at=Tt,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(dt=xc(a,yt.length+z.length),E=ht=x=0;x<yt.length&&yt[x].y<z[0].y;)Me=yt[x++],dt[E++].h(Me.x,Me.y);for(;ht<z.length;)Me=z[ht++],dt[E++].h(Me.x+at,Me.y);for(z=z[z.length-1].y;x<yt.length&&yt[x].y<=z;)x++;for(;x<yt.length&&yt[x].y>z;)at=yt[x++],dt[E++].h(at.x,at.y);for(z=xc(a,E),x=0;x<E;x++)z[x].assign(dt[x]);xA(a,dt),E=z}return z=Math.max(0,Tt)+nt.width,nt=he,xA(a,y),xA(a,Gt),xA(a,yt),xA(a,$t),ot[0]=b,ot[1]=E,new ai(Tt,0,z,nt)}if(b=9999999,!(yt===null||2>yt.length||Gt===null||2>Gt.length))for(E=x=0;x<yt.length&&E<Gt.length;)z=yt[x],Qe=Gt[E],at=Qe.x,ht=Qe.y,ht+=Tt,Me=z,x+1<yt.length&&(Me=yt[x+1]),Ze=Qe,Qe=Ze.x,Ze=Ze.y,E+1<Gt.length&&(Ze=Gt[E+1],Qe=Ze.x,Ze=Ze.y,Ze+=Tt),tn=b,z.x===at?tn=ht-z.y:z.x>at&&z.x<Qe?tn=ht+(z.x-at)/(Qe-at)*(Ze-ht)-z.y:at>z.x&&at<Me.x&&(tn=ht-(z.y+(at-z.x)/(Me.x-z.x)*(Me.y-z.y))),tn<b&&(b=tn),Me.x<=z.x?x++:Qe<=at?E++:(Me.x<=Qe&&x++,Qe<=Me.x&&E++);if(Tt-=b,Tt+=dt,x=Gt,E=Tt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(dt=xc(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)ht=x[z++],dt[b++].h(ht.x,ht.y+E);for(;at<y.length;)ht=y[at++],dt[b++].h(ht.x,ht.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)ht=x[z++],dt[b++].h(ht.x,ht.y+E);for(x=xc(a,b),at=0;at<b;at++)x[at].assign(dt[at]);xA(a,dt),b=x}if(z=$t,at=Tt,yt===null||2>yt.length||z===null||2>z.length)E=null;else{for(dt=xc(a,yt.length+z.length),E=ht=x=0;x<yt.length&&yt[x].x<z[0].x;)Me=yt[x++],dt[E++].h(Me.x,Me.y);for(;ht<z.length;)Me=z[ht++],dt[E++].h(Me.x,Me.y+at);for(z=z[z.length-1].x;x<yt.length&&yt[x].x<=z;)x++;for(;x<yt.length&&yt[x].x>z;)at=yt[x++],dt[E++].h(at.x,at.y);for(z=xc(a,E),x=0;x<E;x++)z[x].assign(dt[x]);xA(a,dt),E=z}return z=he,nt=Math.max(0,Tt)+nt.height,xA(a,y),xA(a,Gt),xA(a,yt),xA(a,$t),ot[0]=b,ot[1]=E,new ai(Tt,0,z,nt)}function xc(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 Le;return a}function xA(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}ls.prototype.arrangeTrees=function(){if(this.Rb===rv)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof kd){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 kd&&a.push(x);switch(this.sorting){case Xp:break;case z0:a.reverse();break;case K0:a.sort(this.comparer);break;case G0:a.sort(this.comparer),a.reverse();break;default:on("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:on("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)}}}ls.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},ls.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},ls.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 Le(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Le(-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 ai(0,z,x,ot))):this.angle===90?(E.push(new ai(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new ai(z,0,ot,x))):(E.push(new ai(z,0,ot,x)),z+=ot)}this.commitLayers(E,b)}},ls.prototype.commitLayers=function(){},ls.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ls.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof kd&&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])}}ls.prototype.setPortSpots=function(a){var y=a.alignment;if(Ag(y)){var x=this.ud===tf,b=iA(a);switch(b){case 0:var E=nl;break;case 90:E=Dl;break;case 180:E=Aa;break;default:E=Wa}var z=a.children,nt=z.length;switch(y){case Of: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?Aa:Wa;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=Aa;break;case 90:at=Wa;break;case 180:at=nl;break;default:at=Dl}else y%2===0&&(at=b===90||b===270?nl:Dl);x?(a.setsPortSpot&&(ot.fromSpot=E),a.setsChildPortSpot&&(ot.toSpot=at)):(a.setsPortSpot&&(ot.fromSpot=at),a.setsChildPortSpot&&(ot.toSpot=E))}}break;case Df:for(b=b===90||b===270?nl:Dl,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?Aa:Wa,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=nl;break;case 90:b.fromSpot=Dl;break;case 180:b.fromSpot=Aa;break;default:b.fromSpot=Wa}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Aa;break;case 90:b.toSpot=Wa;break;case 180:b.toSpot=nl;break;default:b.toSpot=Dl}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=nl;break;case 90:b.toSpot=Dl;break;case 180:b.toSpot=Aa;break;default:b.toSpot=Wa}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Aa;break;case 90:b.fromSpot=Wa;break;case 180:b.fromSpot=nl;break;default:b.fromSpot=Dl}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}ls.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},ls.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)},Oe.Object.defineProperties(ls.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!==z0&&a!==K0&&!G0||(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()):on("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!==W0||(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!==z0&&a!==K0&&!G0||(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!==W0||(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 ri(ls,"PathDefault",-1),tf=new ri(ls,"PathDestination",0),up=new ri(ls,"PathSource",1),Xp=new ri(ls,"SortingForwards",10),z0=new ri(ls,"SortingReverse",11),K0=new ri(ls,"SortingAscending",12),G0=new ri(ls,"SortingDescending",13),Jp=new ri(ls,"AlignmentCenterSubtrees",20),hp=new ri(ls,"AlignmentCenterChildren",21),ef=new ri(ls,"AlignmentStart",22),nf=new ri(ls,"AlignmentEnd",23),Of=new ri(ls,"AlignmentBus",24),rf=new ri(ls,"AlignmentBusBranching",25),Df=new ri(ls,"AlignmentTopLeftBus",26),df=new ri(ls,"AlignmentBottomRightBus",27),ev=new ri(ls,"CompactionNone",30),W0=new ri(ls,"CompactionBlock",31),nv=new ri(ls,"StyleLayered",40),vy=new ri(ls,"StyleLastParents",41),yy=new ri(ls,"StyleAlternating",42),wy=new ri(ls,"StyleRootOnly",43),iv=new ri(ls,"ArrangementVertical",50),xy=new ri(ls,"ArrangementHorizontal",51),rv=new ri(ls,"ArrangementFixedRoots",52),Sy=new ri(ls,"LayerIndividual",60),Cy=new ri(ls,"LayerSiblings",61),ov=new ri(ls,"LayerUniform",62);ls.className="TreeLayout",ls.PathDefault=tv,ls.PathDestination=tf,ls.PathSource=up,ls.SortingForwards=Xp,ls.SortingReverse=z0,ls.SortingAscending=K0,ls.SortingDescending=G0,ls.AlignmentCenterSubtrees=Jp,ls.AlignmentCenterChildren=hp,ls.AlignmentStart=ef,ls.AlignmentEnd=nf,ls.AlignmentBus=Of,ls.AlignmentBusBranching=rf,ls.AlignmentTopLeftBus=Df,ls.AlignmentBottomRightBus=df,ls.CompactionNone=ev,ls.CompactionBlock=W0,ls.StyleLayered=nv,ls.StyleLastParents=vy,ls.StyleAlternating=yy,ls.StyleRootOnly=wy,ls.ArrangementVertical=iv,ls.ArrangementHorizontal=xy,ls.ArrangementFixedRoots=rv,ls.LayerIndividual=Sy,ls.LayerSiblings=Cy,ls.LayerUniform=ov;function cp(a){Ba.call(this,a)}In(cp,Ba),cp.prototype.createVertex=function(){return new kd(this)},cp.prototype.createEdge=function(){return new qp(this)},cp.className="TreeNetwork";function kd(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 Le(0,0),this.Da=new zi(0,0),this.la=new Le(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=hp,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=W0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Bs,this.wr=!0,this.Dp=Bs}In(kd,xu),kd.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)},Oe.Object.defineProperties(kd.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)}}}),kd.className="TreeVertex";function qp(a){Hc.call(this,a),this.$t=new Le(0,0)}In(qp,Hc),qp.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 up:x=this.toVertex,b=this.fromVertex;break;default:on("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===nd,ht=a.isOrthogonal,dt;if(a.uh(),ht||at){for(dt=2;4<a.pointsCount;)a.pv(2);var yt=a.i(1),Tt=a.i(2)}else{for(dt=1;3<a.pointsCount;)a.pv(1);yt=a.i(0),Tt=a.i(a.pointsCount-1)}var Gt=a.i(a.pointsCount-1);z===0?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>Gt.y+x.rowIndent&&(z=Math.min(z,Math.max(yt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&&yt.y<Gt.y-x.rowIndent&&(z=Math.max(z,Math.min(yt.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(dt,yt.x,z),dt++,a.m(dt,b.right+nt,z),dt++,a.m(dt,b.right+nt+(E.x-ot)/3,z),dt++,a.m(dt,b.right+nt+2*(E.x-ot)/3,z),dt++,a.m(dt,b.right+nt+(E.x-ot),z),dt++,a.m(dt,Tt.x,z)):(ht&&(a.m(dt,b.right+nt/2,yt.y),dt++),a.m(dt,b.right+nt/2,z),dt++,a.m(dt,b.right+nt+E.x-(ht?ot/2:ot),z),dt++,ht&&a.m(dt,a.i(dt-1).x,Tt.y))):z===90?(x.alignment===nf?(z=b.right+E.x,E.x===0&&yt.x>Gt.x+x.rowIndent&&(z=Math.min(z,Math.max(yt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&&yt.x<Gt.x-x.rowIndent&&(z=Math.max(z,Math.min(yt.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(dt,z,yt.y),dt++,a.m(dt,z,b.bottom+nt),dt++,a.m(dt,z,b.bottom+nt+(E.y-ot)/3),dt++,a.m(dt,z,b.bottom+nt+2*(E.y-ot)/3),dt++,a.m(dt,z,b.bottom+nt+(E.y-ot)),dt++,a.m(dt,z,Tt.y)):(ht&&(a.m(dt,yt.x,b.bottom+nt/2),dt++),a.m(dt,z,b.bottom+nt/2),dt++,a.m(dt,z,b.bottom+nt+E.y-(ht?ot/2:ot)),dt++,ht&&a.m(dt,Tt.x,a.i(dt-1).y))):z===180?(x.alignment===nf?(z=b.bottom+E.y,E.y===0&&yt.y>Gt.y+x.rowIndent&&(z=Math.min(z,Math.max(yt.y,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.top+E.y,E.y===0&&yt.y<Gt.y-x.rowIndent&&(z=Math.max(z,Math.min(yt.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(dt,yt.x,z),dt++,a.m(dt,b.left-nt,z),dt++,a.m(dt,b.left-nt+(E.x+ot)/3,z),dt++,a.m(dt,b.left-nt+2*(E.x+ot)/3,z),dt++,a.m(dt,b.left-nt+(E.x+ot),z),dt++,a.m(dt,Tt.x,z)):(ht&&(a.m(dt,b.left-nt/2,yt.y),dt++),a.m(dt,b.left-nt/2,z),dt++,a.m(dt,b.left-nt+E.x+(ht?ot/2:ot),z),dt++,ht&&a.m(dt,a.i(dt-1).x,Tt.y))):z===270?(x.alignment===nf?(z=b.right+E.x,E.x===0&&yt.x>Gt.x+x.rowIndent&&(z=Math.min(z,Math.max(yt.x,z-y.computeNodeIndent(x))))):x.alignment===ef?(z=b.left+E.x,E.x===0&&yt.x<Gt.x-x.rowIndent&&(z=Math.max(z,Math.min(yt.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(dt,z,yt.y),dt++,a.m(dt,z,b.top-nt),dt++,a.m(dt,z,b.top-nt+(E.y+ot)/3),dt++,a.m(dt,z,b.top-nt+2*(E.y+ot)/3),dt++,a.m(dt,z,b.top-nt+(E.y+ot)),dt++,a.m(dt,z,Tt.y)):(ht&&(a.m(dt,yt.x,b.top-nt/2),dt++),a.m(dt,z,b.top-nt/2),dt++,a.m(dt,z,b.top-nt+E.y+(ht?ot/2:ot)),dt++,ht&&a.m(dt,Tt.x,a.i(dt-1).y))):on("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===nd,E=a.isOrthogonal,b=Ag(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()))}}},Oe.Object.defineProperties(qp.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)}}}),qp.className="TreeEdge",Zt.prototype.initializeStandardTools=function(){this.gb("Action",new ir,this.mouseDownTools),this.gb("Relinking",new oi,this.mouseDownTools),this.gb("LinkReshaping",new Ii,this.mouseDownTools),this.gb("Rotating",new oo,this.mouseDownTools),this.gb("Resizing",new _n,this.mouseDownTools),this.gb("Linking",new vn,this.mouseMoveTools),this.gb("Dragging",new He,this.mouseMoveTools),this.gb("DragSelecting",new fr,this.mouseMoveTools),this.gb("Panning",new nr,this.mouseMoveTools),this.gb("ContextMenu",new So,this.mouseUpTools),this.gb("TextEditing",new Io,this.mouseUpTools),this.gb("ClickCreating",new yr,this.mouseUpTools),this.gb("ClickSelecting",new lo,this.mouseUpTools)},jc("Horizontal",new Bi),jc("Spot",new tr),jc("Table",new Lr),jc("Viewbox",new Dr),jc("TableRow",new ji),jc("TableColumn",new Ki),jc("Graduated",new Ks),jc("Grid",new eo),ba.add("GraphLinksModel",Ou),ba.add("TreeModel",md);var sv=Ke.go,By={get licenseKey(){return jn.licenseKey},set licenseKey(a){jn.licenseKey=a},get version(){return jn.version},Group:Ro,EnumValue:ri,List:Si,Set:Pi,Map:Cr,Point:Le,Size:zi,Rect:ai,Margin:Hr,Spot:wr,Geometry:Yi,PathFigure:il,PathSegment:gs,InputEvent:Su,DiagramEvent:xd,ChangedEvent:Da,Model:Ur,GraphLinksModel:ms,TreeModel:$h,Binding:iu,Transaction:Et,UndoManager:xt,CommandHandler:De,Tool:Rt,DraggingTool:He,DraggingInfo:sc,DraggingOptions:st,LinkingBaseTool:hn,LinkingTool:vn,RelinkingTool:oi,LinkReshapingTool:Ii,ResizingTool:_n,RotatingTool:oo,ClickSelectingTool:lo,ActionTool:ir,ClickCreatingTool:yr,HTMLInfo:Or,ContextMenuTool:So,DragSelectingTool:fr,PanningTool:nr,TextEditingTool:Io,ToolManager:Zt,Animation:Va,AnimationManager:fa,AnimationTrigger:Wu,Layer:ga,Diagram:jn,Palette:vt,Overview:Bt,Brush:Rs,GraphObject:xn,Panel:Jn,RowColumnDefinition:Kl,Shape:Go,TextBlock:ha,Picture:uc,Part:Yr,Adornment:bs,Node:hr,Link:Wi,Placeholder:Wh,Layout:Ya,LayoutNetwork:Ba,LayoutVertex:xu,LayoutEdge:Hc,GridLayout:Yu,PanelLayout:Pn,CircularLayout:pl,CircularNetwork:Zp,CircularVertex:D0,CircularEdge:_m,ForceDirectedLayout:uh,ForceDirectedNetwork:ap,ForceDirectedVertex:j0,ForceDirectedEdge:U0,LayeredDigraphLayout:Xs,LayeredDigraphNetwork:$p,LayeredDigraphVertex:yd,LayeredDigraphEdge:H0,TreeLayout:ls,TreeNetwork:cp,TreeVertex:kd,TreeEdge:qp};typeof sv=="object"&&sv.version&&kr("WARNING: a `go` object on the root object is already defined. "+("Debug"in sv?"debug ":"")+"version: "+sv.version+", replaced with version: "+By.version),jn.prototype.go=By,Ke.go=By,typeof ui.exports=="object"&&(ui.exports=typeof bt.g!="undefined"?bt.g.go:self.go)}();var Ft=typeof bt.g!="undefined"?bt.g.go:self.go;const ce=typeof bt.g!="undefined"?bt.g.go:self.go,re=ce.Group,Be=ce.EnumValue,ee=ce.List,Yt=ce.Set,It=ce.Map,jt=ce.Point,Xt=ce.Size,Pt=ce.Rect,oe=ce.Margin,zt=ce.Spot,Jt=ce.Geometry,Ct=ce.PathFigure,et=ce.PathSegment,tt=ce.InputEvent,lt=ce.DiagramEvent,rt=ce.ChangedEvent,ut=ce.Model,ct=ce.GraphLinksModel,wt=ce.TreeModel,Mt=ce.Binding,Ot=ce.Transaction,Ht=ce.UndoManager,ne=ce.CommandHandler,ae=ce.Tool,de=ce.DraggingTool,be=ce.DraggingInfo,qt=ce.LinkingBaseTool,ze=ce.LinkingTool,Vt=ce.RelinkingTool,Ge=ce.LinkReshapingTool,_e=ce.ResizingTool,Ne=ce.RotatingTool,We=ce.ClickSelectingTool,Re=ce.ActionTool,ve=ce.ClickCreatingTool,ie=ce.HTMLInfo,Se=ce.ContextMenuTool,Bn=ce.DragSelectingTool,Ln=ce.PanningTool,Ye=ce.TextEditingTool,Mn=ce.ToolManager,Wn=ce.Animation,fi=ce.AnimationManager,Hn=ce.AnimationTrigger,xi=ce.Layer,nn=ce.Diagram,Fi=ce.Palette,ki=ce.Overview,Nt=ce.Brush,Dt=ce.GraphObject,mt=ce.Panel,ft=ce.RowColumnDefinition,pt=ce.Shape,At=ce.TextBlock,ue=ce.TextBlockMetrics,we=ce.Picture,le=ce.Part,me=ce.Adornment,Ue=ce.Node,ke=ce.Link,Ie=ce.Placeholder,rn=ce.Layout,Gn=ce.LayoutNetwork,dn=ce.LayoutVertex,An=ce.LayoutEdge,Dn=ce.GridLayout,qn=ce.PanelLayout,Rn=ce.CircularLayout,Di=ce.CircularNetwork,cr=ce.CircularVertex,Ji=ce.CircularEdge,Sr=ce.ForceDirectedLayout,Nr=ce.ForceDirectedNetwork,co=ce.ForceDirectedVertex,to=ce.ForceDirectedEdge,Kr=ce.LayeredDigraphLayout,gr=ce.LayeredDigraphNetwork,Vr=ce.LayeredDigraphVertex,pr=ce.LayeredDigraphEdge,zo=ce.TreeLayout,es=ce.TreeNetwork,yo=ce.TreeVertex,ks=ce.TreeEdge,ws=ce.version},64270:function(ui){(function(wn,bt){ui.exports=bt()})(this,function(){"use strict";var wn=function(Ut,kt){return wn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Kt,Qt){Kt.__proto__=Qt}||function(Kt,Qt){for(var Pe in Qt)Object.prototype.hasOwnProperty.call(Qt,Pe)&&(Kt[Pe]=Qt[Pe])},wn(Ut,kt)};function bt(Ut,kt){if(typeof kt!="function"&&kt!==null)throw new TypeError("Class extends value "+String(kt)+" is not a constructor or null");wn(Ut,kt);function Kt(){this.constructor=Ut}Ut.prototype=kt===null?Object.create(kt):(Kt.prototype=kt.prototype,new Kt)}var Ft=function(){return Ft=Object.assign||function(kt){for(var Kt,Qt=1,Pe=arguments.length;Qt<Pe;Qt++){Kt=arguments[Qt];for(var qe in Kt)Object.prototype.hasOwnProperty.call(Kt,qe)&&(kt[qe]=Kt[qe])}return kt},Ft.apply(this,arguments)};function ce(Ut,kt,Kt,Qt){function Pe(qe){return qe instanceof Kt?qe:new Kt(function(Fn){Fn(qe)})}return new(Kt||(Kt=Promise))(function(qe,Fn){function ti(Qi){try{Oi(Qt.next(Qi))}catch(St){Fn(St)}}function On(Qi){try{Oi(Qt.throw(Qi))}catch(St){Fn(St)}}function Oi(Qi){Qi.done?qe(Qi.value):Pe(Qi.value).then(ti,On)}Oi((Qt=Qt.apply(Ut,kt||[])).next())})}function re(Ut,kt){var Kt={label:0,sent:function(){if(qe[0]&1)throw qe[1];return qe[1]},trys:[],ops:[]},Qt,Pe,qe,Fn;return Fn={next:ti(0),throw:ti(1),return:ti(2)},typeof Symbol=="function"&&(Fn[Symbol.iterator]=function(){return this}),Fn;function ti(Oi){return function(Qi){return On([Oi,Qi])}}function On(Oi){if(Qt)throw new TypeError("Generator is already executing.");for(;Kt;)try{if(Qt=1,Pe&&(qe=Oi[0]&2?Pe.return:Oi[0]?Pe.throw||((qe=Pe.return)&&qe.call(Pe),0):Pe.next)&&!(qe=qe.call(Pe,Oi[1])).done)return qe;switch(Pe=0,qe&&(Oi=[Oi[0]&2,qe.value]),Oi[0]){case 0:case 1:qe=Oi;break;case 4:return Kt.label++,{value:Oi[1],done:!1};case 5:Kt.label++,Pe=Oi[1],Oi=[0];continue;case 7:Oi=Kt.ops.pop(),Kt.trys.pop();continue;default:if(qe=Kt.trys,!(qe=qe.length>0&&qe[qe.length-1])&&(Oi[0]===6||Oi[0]===2)){Kt=0;continue}if(Oi[0]===3&&(!qe||Oi[1]>qe[0]&&Oi[1]<qe[3])){Kt.label=Oi[1];break}if(Oi[0]===6&&Kt.label<qe[1]){Kt.label=qe[1],qe=Oi;break}if(qe&&Kt.label<qe[2]){Kt.label=qe[2],Kt.ops.push(Oi);break}qe[2]&&Kt.ops.pop(),Kt.trys.pop();continue}Oi=kt.call(Ut,Kt)}catch(Qi){Oi=[6,Qi],Pe=0}finally{Qt=qe=0}if(Oi[0]&5)throw Oi[1];return{value:Oi[0]?Oi[1]:void 0,done:!0}}}function Be(Ut,kt,Kt){if(Kt||arguments.length===2)for(var Qt=0,Pe=kt.length,qe;Qt<Pe;Qt++)(qe||!(Qt in kt))&&(qe||(qe=Array.prototype.slice.call(kt,0,Qt)),qe[Qt]=kt[Qt]);return Ut.concat(qe||kt)}for(var ee=function(){function Ut(kt,Kt,Qt,Pe){this.left=kt,this.top=Kt,this.width=Qt,this.height=Pe}return Ut.prototype.add=function(kt,Kt,Qt,Pe){return new Ut(this.left+kt,this.top+Kt,this.width+Qt,this.height+Pe)},Ut.fromClientRect=function(kt,Kt){return new Ut(Kt.left+kt.windowBounds.left,Kt.top+kt.windowBounds.top,Kt.width,Kt.height)},Ut.fromDOMRectList=function(kt,Kt){var Qt=Array.from(Kt).find(function(Pe){return Pe.width!==0});return Qt?new Ut(Qt.left+kt.windowBounds.left,Qt.top+kt.windowBounds.top,Qt.width,Qt.height):Ut.EMPTY},Ut.EMPTY=new Ut(0,0,0,0),Ut}(),Yt=function(Ut,kt){return ee.fromClientRect(Ut,kt.getBoundingClientRect())},It=function(Ut){var kt=Ut.body,Kt=Ut.documentElement;if(!kt||!Kt)throw new Error("Unable to get document size");var Qt=Math.max(Math.max(kt.scrollWidth,Kt.scrollWidth),Math.max(kt.offsetWidth,Kt.offsetWidth),Math.max(kt.clientWidth,Kt.clientWidth)),Pe=Math.max(Math.max(kt.scrollHeight,Kt.scrollHeight),Math.max(kt.offsetHeight,Kt.offsetHeight),Math.max(kt.clientHeight,Kt.clientHeight));return new ee(0,0,Qt,Pe)},jt=function(Ut){for(var kt=[],Kt=0,Qt=Ut.length;Kt<Qt;){var Pe=Ut.charCodeAt(Kt++);if(Pe>=55296&&Pe<=56319&&Kt<Qt){var qe=Ut.charCodeAt(Kt++);(qe&64512)===56320?kt.push(((Pe&1023)<<10)+(qe&1023)+65536):(kt.push(Pe),Kt--)}else kt.push(Pe)}return kt},Xt=function(){for(var Ut=[],kt=0;kt<arguments.length;kt++)Ut[kt]=arguments[kt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ut);var Kt=Ut.length;if(!Kt)return"";for(var Qt=[],Pe=-1,qe="";++Pe<Kt;){var Fn=Ut[Pe];Fn<=65535?Qt.push(Fn):(Fn-=65536,Qt.push((Fn>>10)+55296,Fn%1024+56320)),(Pe+1===Kt||Qt.length>16384)&&(qe+=String.fromCharCode.apply(String,Qt),Qt.length=0)}return qe},Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),zt=0;zt<Pt.length;zt++)oe[Pt.charCodeAt(zt)]=zt;for(var Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ct=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),et=0;et<Jt.length;et++)Ct[Jt.charCodeAt(et)]=et;for(var tt=function(Ut){var kt=Ut.length*.75,Kt=Ut.length,Qt,Pe=0,qe,Fn,ti,On;Ut[Ut.length-1]==="="&&(kt--,Ut[Ut.length-2]==="="&&kt--);var Oi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(kt):new Array(kt),Qi=Array.isArray(Oi)?Oi:new Uint8Array(Oi);for(Qt=0;Qt<Kt;Qt+=4)qe=Ct[Ut.charCodeAt(Qt)],Fn=Ct[Ut.charCodeAt(Qt+1)],ti=Ct[Ut.charCodeAt(Qt+2)],On=Ct[Ut.charCodeAt(Qt+3)],Qi[Pe++]=qe<<2|Fn>>4,Qi[Pe++]=(Fn&15)<<4|ti>>2,Qi[Pe++]=(ti&3)<<6|On&63;return Oi},lt=function(Ut){for(var kt=Ut.length,Kt=[],Qt=0;Qt<kt;Qt+=2)Kt.push(Ut[Qt+1]<<8|Ut[Qt]);return Kt},rt=function(Ut){for(var kt=Ut.length,Kt=[],Qt=0;Qt<kt;Qt+=4)Kt.push(Ut[Qt+3]<<24|Ut[Qt+2]<<16|Ut[Qt+1]<<8|Ut[Qt]);return Kt},ut=5,ct=11,wt=2,Mt=ct-ut,Ot=65536>>ut,Ht=1<<ut,ne=Ht-1,ae=1024>>ut,de=Ot+ae,be=de,qt=32,ze=be+qt,Vt=65536>>ct,Ge=1<<Mt,_e=Ge-1,Ne=function(Ut,kt,Kt){return Ut.slice?Ut.slice(kt,Kt):new Uint16Array(Array.prototype.slice.call(Ut,kt,Kt))},We=function(Ut,kt,Kt){return Ut.slice?Ut.slice(kt,Kt):new Uint32Array(Array.prototype.slice.call(Ut,kt,Kt))},Re=function(Ut,kt){var Kt=tt(Ut),Qt=Array.isArray(Kt)?rt(Kt):new Uint32Array(Kt),Pe=Array.isArray(Kt)?lt(Kt):new Uint16Array(Kt),qe=24,Fn=Ne(Pe,qe/2,Qt[4]/2),ti=Qt[5]===2?Ne(Pe,(qe+Qt[4])/2):We(Qt,Math.ceil((qe+Qt[4])/4));return new ve(Qt[0],Qt[1],Qt[2],Qt[3],Fn,ti)},ve=function(){function Ut(kt,Kt,Qt,Pe,qe,Fn){this.initialValue=kt,this.errorValue=Kt,this.highStart=Qt,this.highValueIndex=Pe,this.index=qe,this.data=Fn}return Ut.prototype.get=function(kt){var Kt;if(kt>=0){if(kt<55296||kt>56319&&kt<=65535)return Kt=this.index[kt>>ut],Kt=(Kt<<wt)+(kt&ne),this.data[Kt];if(kt<=65535)return Kt=this.index[Ot+(kt-55296>>ut)],Kt=(Kt<<wt)+(kt&ne),this.data[Kt];if(kt<this.highStart)return Kt=ze-Vt+(kt>>ct),Kt=this.index[Kt],Kt+=kt>>ut&_e,Kt=this.index[Kt],Kt=(Kt<<wt)+(kt&ne),this.data[Kt];if(kt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Ut}(),ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Bn=0;Bn<ie.length;Bn++)Se[ie.charCodeAt(Bn)]=Bn;var Ln="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==",Ye=50,Mn=1,Wn=2,fi=3,Hn=4,xi=5,nn=7,Fi=8,ki=9,Nt=10,Dt=11,mt=12,ft=13,pt=14,At=15,ue=16,we=17,le=18,me=19,Ue=20,ke=21,Ie=22,rn=23,Gn=24,dn=25,An=26,Dn=27,qn=28,Rn=29,Di=30,cr=31,Ji=32,Sr=33,Nr=34,co=35,to=36,Kr=37,gr=38,Vr=39,pr=40,zo=41,es=42,yo=43,ks=[9001,65288],ws="!",Wt="\xD7",xs="\xF7",Ss=Re(Ln),Ms=[Di,to],ma=[Mn,Wn,fi,xi],Ea=[Nt,Fi],oa=[Dn,An],so=ma.concat(Ea),br=[gr,Vr,pr,Nr,co],kn=[At,ft],In=function(Ut,kt){kt===void 0&&(kt="strict");var Kt=[],Qt=[],Pe=[];return Ut.forEach(function(qe,Fn){var ti=Ss.get(qe);if(ti>Ye?(Pe.push(!0),ti-=Ye):Pe.push(!1),["normal","auto","loose"].indexOf(kt)!==-1&&[8208,8211,12316,12448].indexOf(qe)!==-1)return Qt.push(Fn),Kt.push(ue);if(ti===Hn||ti===Dt){if(Fn===0)return Qt.push(Fn),Kt.push(Di);var On=Kt[Fn-1];return so.indexOf(On)===-1?(Qt.push(Qt[Fn-1]),Kt.push(On)):(Qt.push(Fn),Kt.push(Di))}if(Qt.push(Fn),ti===cr)return Kt.push(kt==="strict"?ke:Kr);if(ti===es||ti===Rn)return Kt.push(Di);if(ti===yo)return qe>=131072&&qe<=196605||qe>=196608&&qe<=262141?Kt.push(Kr):Kt.push(Di);Kt.push(ti)}),[Qt,Kt,Pe]},Oe=function(Ut,kt,Kt,Qt){var Pe=Qt[Kt];if(Array.isArray(Ut)?Ut.indexOf(Pe)!==-1:Ut===Pe)for(var qe=Kt;qe<=Qt.length;){qe++;var Fn=Qt[qe];if(Fn===kt)return!0;if(Fn!==Nt)break}if(Pe===Nt)for(var qe=Kt;qe>0;){qe--;var ti=Qt[qe];if(Array.isArray(Ut)?Ut.indexOf(ti)!==-1:Ut===ti)for(var On=Kt;On<=Qt.length;){On++;var Fn=Qt[On];if(Fn===kt)return!0;if(Fn!==Nt)break}if(ti!==Nt)break}return!1},hi=function(Ut,kt){for(var Kt=Ut;Kt>=0;){var Qt=kt[Kt];if(Qt===Nt)Kt--;else return Qt}return 0},Je=function(Ut,kt,Kt,Qt,Pe){if(Kt[Qt]===0)return Wt;var qe=Qt-1;if(Array.isArray(Pe)&&Pe[qe]===!0)return Wt;var Fn=qe-1,ti=qe+1,On=kt[qe],Oi=Fn>=0?kt[Fn]:0,Qi=kt[ti];if(On===Wn&&Qi===fi)return Wt;if(ma.indexOf(On)!==-1)return ws;if(ma.indexOf(Qi)!==-1||Ea.indexOf(Qi)!==-1)return Wt;if(hi(qe,kt)===Fi)return xs;if(Ss.get(Ut[qe])===Dt||(On===Ji||On===Sr)&&Ss.get(Ut[ti])===Dt||On===nn||Qi===nn||On===ki||[Nt,ft,At].indexOf(On)===-1&&Qi===ki||[we,le,me,Gn,qn].indexOf(Qi)!==-1||hi(qe,kt)===Ie||Oe(rn,Ie,qe,kt)||Oe([we,le],ke,qe,kt)||Oe(mt,mt,qe,kt))return Wt;if(On===Nt)return xs;if(On===rn||Qi===rn)return Wt;if(Qi===ue||On===ue)return xs;if([ft,At,ke].indexOf(Qi)!==-1||On===pt||Oi===to&&kn.indexOf(On)!==-1||On===qn&&Qi===to||Qi===Ue||Ms.indexOf(Qi)!==-1&&On===dn||Ms.indexOf(On)!==-1&&Qi===dn||On===Dn&&[Kr,Ji,Sr].indexOf(Qi)!==-1||[Kr,Ji,Sr].indexOf(On)!==-1&&Qi===An||Ms.indexOf(On)!==-1&&oa.indexOf(Qi)!==-1||oa.indexOf(On)!==-1&&Ms.indexOf(Qi)!==-1||[Dn,An].indexOf(On)!==-1&&(Qi===dn||[Ie,At].indexOf(Qi)!==-1&&kt[ti+1]===dn)||[Ie,At].indexOf(On)!==-1&&Qi===dn||On===dn&&[dn,qn,Gn].indexOf(Qi)!==-1)return Wt;if([dn,qn,Gn,we,le].indexOf(Qi)!==-1)for(var St=qe;St>=0;){var _t=kt[St];if(_t===dn)return Wt;if([qn,Gn].indexOf(_t)!==-1)St--;else break}if([Dn,An].indexOf(Qi)!==-1)for(var St=[we,le].indexOf(On)!==-1?Fn:qe;St>=0;){var _t=kt[St];if(_t===dn)return Wt;if([qn,Gn].indexOf(_t)!==-1)St--;else break}if(gr===On&&[gr,Vr,Nr,co].indexOf(Qi)!==-1||[Vr,Nr].indexOf(On)!==-1&&[Vr,pr].indexOf(Qi)!==-1||[pr,co].indexOf(On)!==-1&&Qi===pr||br.indexOf(On)!==-1&&[Ue,An].indexOf(Qi)!==-1||br.indexOf(Qi)!==-1&&On===Dn||Ms.indexOf(On)!==-1&&Ms.indexOf(Qi)!==-1||On===Gn&&Ms.indexOf(Qi)!==-1||Ms.concat(dn).indexOf(On)!==-1&&Qi===Ie&&ks.indexOf(Ut[ti])===-1||Ms.concat(dn).indexOf(Qi)!==-1&&On===le)return Wt;if(On===zo&&Qi===zo){for(var fe=Kt[qe],Ee=1;fe>0&&(fe--,kt[fe]===zo);)Ee++;if(Ee%2!==0)return Wt}return On===Ji&&Qi===Sr?Wt:xs},fn=function(Ut,kt){kt||(kt={lineBreak:"normal",wordBreak:"normal"});var Kt=In(Ut,kt.lineBreak),Qt=Kt[0],Pe=Kt[1],qe=Kt[2];(kt.wordBreak==="break-all"||kt.wordBreak==="break-word")&&(Pe=Pe.map(function(ti){return[dn,Di,es].indexOf(ti)!==-1?Kr:ti}));var Fn=kt.wordBreak==="keep-all"?qe.map(function(ti,On){return ti&&Ut[On]>=19968&&Ut[On]<=40959}):void 0;return[Qt,Pe,Fn]},Ke=function(){function Ut(kt,Kt,Qt,Pe){this.codePoints=kt,this.required=Kt===ws,this.start=Qt,this.end=Pe}return Ut.prototype.slice=function(){return Xt.apply(void 0,this.codePoints.slice(this.start,this.end))},Ut}(),ni=function(Ut,kt){var Kt=jt(Ut),Qt=fn(Kt,kt),Pe=Qt[0],qe=Qt[1],Fn=Qt[2],ti=Kt.length,On=0,Oi=0;return{next:function(){if(Oi>=ti)return{done:!0,value:null};for(var Qi=Wt;Oi<ti&&(Qi=Je(Kt,qe,Pe,++Oi,Fn))===Wt;);if(Qi!==Wt||Oi===ti){var St=new Ke(Kt,Qi,On,Oi);return On=Oi,{value:St,done:!1}}return{done:!0,value:null}}}},Ci=1,_i=2,qi=4,on=8,di=10,Vi=47,kr=92,ii=9,wi=32,dr=34,pi=61,yi=35,vi=36,er=37,or=39,Rr=40,Zr=41,Xr=95,ei=45,_o=33,Zo=60,cs=62,ri=64,rr=91,Er=93,no=61,Fr=123,Gr=63,wo=125,fo=124,xo=126,_r=128,Si=65533,Ho=42,Pi=43,ns=44,qs=58,fs=59,Hs=46,Gs=0,si=8,To=11,us=14,rs=31,Cr=127,Le=-1,qo=48,ta=97,qa=101,ol=102,ml=117,vr=122,$r=65,Xo=69,Lo=70,os=85,Fa=90,ao=function(Ut){return Ut>=qo&&Ut<=57},mo=function(Ut){return Ut>=55296&&Ut<=57343},zi=function(Ut){return ao(Ut)||Ut>=$r&&Ut<=Lo||Ut>=ta&&Ut<=ol},Eo=function(Ut){return Ut>=ta&&Ut<=vr},Es=function(Ut){return Ut>=$r&&Ut<=Fa},la=function(Ut){return Eo(Ut)||Es(Ut)},ca=function(Ut){return Ut>=_r},Qo=function(Ut){return Ut===di||Ut===ii||Ut===wi},Vs=function(Ut){return la(Ut)||ca(Ut)||Ut===Xr},Ka=function(Ut){return Vs(Ut)||ao(Ut)||Ut===ei},Wl=function(Ut){return Ut>=Gs&&Ut<=si||Ut===To||Ut>=us&&Ut<=rs||Ut===Cr},La=function(Ut,kt){return Ut!==kr?!1:kt!==di},vs=function(Ut,kt,Kt){return Ut===ei?Vs(kt)||La(kt,Kt):Vs(Ut)?!0:!!(Ut===kr&&La(Ut,kt))},ai=function(Ut,kt,Kt){return Ut===Pi||Ut===ei?ao(kt)?!0:kt===Hs&&ao(Kt):ao(Ut===Hs?kt:Ut)},ka=function(Ut){var kt=0,Kt=1;(Ut[kt]===Pi||Ut[kt]===ei)&&(Ut[kt]===ei&&(Kt=-1),kt++);for(var Qt=[];ao(Ut[kt]);)Qt.push(Ut[kt++]);var Pe=Qt.length?parseInt(Xt.apply(void 0,Qt),10):0;Ut[kt]===Hs&&kt++;for(var qe=[];ao(Ut[kt]);)qe.push(Ut[kt++]);var Fn=qe.length,ti=Fn?parseInt(Xt.apply(void 0,qe),10):0;(Ut[kt]===Xo||Ut[kt]===qa)&&kt++;var On=1;(Ut[kt]===Pi||Ut[kt]===ei)&&(Ut[kt]===ei&&(On=-1),kt++);for(var Oi=[];ao(Ut[kt]);)Oi.push(Ut[kt++]);var Qi=Oi.length?parseInt(Xt.apply(void 0,Oi),10):0;return Kt*(Pe+ti*Math.pow(10,-Fn))*Math.pow(10,On*Qi)},bc={type:2},Vl={type:3},kh={type:4},sl={type:13},Wc={type:8},Fl={type:21},Is={type:9},ia={type:10},Ph={type:11},is={type:12},Zs={type:14},ys={type:23},Hr={type:1},kl={type:25},Ol={type:24},Ao={type:26},Ns={type:27},da={type:28},wr={type:29},Ma={type:31},Oa={type:32},Bl=function(){function Ut(){this._value=[]}return Ut.prototype.write=function(kt){this._value=this._value.concat(jt(kt))},Ut.prototype.read=function(){for(var kt=[],Kt=this.consumeToken();Kt!==Oa;)kt.push(Kt),Kt=this.consumeToken();return kt},Ut.prototype.consumeToken=function(){var kt=this.consumeCodePoint();switch(kt){case dr:return this.consumeStringToken(dr);case yi:var Kt=this.peekCodePoint(0),Qt=this.peekCodePoint(1),Pe=this.peekCodePoint(2);if(Ka(Kt)||La(Qt,Pe)){var qe=vs(Kt,Qt,Pe)?_i:Ci,Fn=this.consumeName();return{type:5,value:Fn,flags:qe}}break;case vi:if(this.peekCodePoint(0)===pi)return this.consumeCodePoint(),sl;break;case or:return this.consumeStringToken(or);case Rr:return bc;case Zr:return Vl;case Ho:if(this.peekCodePoint(0)===pi)return this.consumeCodePoint(),Zs;break;case Pi:if(ai(kt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(kt),this.consumeNumericToken();break;case ns:return kh;case ei:var ti=kt,On=this.peekCodePoint(0),Oi=this.peekCodePoint(1);if(ai(ti,On,Oi))return this.reconsumeCodePoint(kt),this.consumeNumericToken();if(vs(ti,On,Oi))return this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();if(On===ei&&Oi===cs)return this.consumeCodePoint(),this.consumeCodePoint(),Ol;break;case Hs:if(ai(kt,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(kt),this.consumeNumericToken();break;case Vi:if(this.peekCodePoint(0)===Ho)for(this.consumeCodePoint();;){var Qi=this.consumeCodePoint();if(Qi===Ho&&(Qi=this.consumeCodePoint(),Qi===Vi))return this.consumeToken();if(Qi===Le)return this.consumeToken()}break;case qs:return Ao;case fs:return Ns;case Zo:if(this.peekCodePoint(0)===_o&&this.peekCodePoint(1)===ei&&this.peekCodePoint(2)===ei)return this.consumeCodePoint(),this.consumeCodePoint(),kl;break;case ri:var St=this.peekCodePoint(0),_t=this.peekCodePoint(1),fe=this.peekCodePoint(2);if(vs(St,_t,fe)){var Fn=this.consumeName();return{type:7,value:Fn}}break;case rr:return da;case kr:if(La(kt,this.peekCodePoint(0)))return this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();break;case Er:return wr;case no:if(this.peekCodePoint(0)===pi)return this.consumeCodePoint(),Wc;break;case Fr:return Ph;case wo:return is;case ml:case os:var Ee=this.peekCodePoint(0),$e=this.peekCodePoint(1);return Ee===Pi&&(zi($e)||$e===Gr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(kt),this.consumeIdentLikeToken();case fo:if(this.peekCodePoint(0)===pi)return this.consumeCodePoint(),Is;if(this.peekCodePoint(0)===fo)return this.consumeCodePoint(),Fl;break;case xo:if(this.peekCodePoint(0)===pi)return this.consumeCodePoint(),ia;break;case Le:return Oa}return Qo(kt)?(this.consumeWhiteSpace(),Ma):ao(kt)?(this.reconsumeCodePoint(kt),this.consumeNumericToken()):Vs(kt)?(this.reconsumeCodePoint(kt),this.consumeIdentLikeToken()):{type:6,value:Xt(kt)}},Ut.prototype.consumeCodePoint=function(){var kt=this._value.shift();return typeof kt=="undefined"?-1:kt},Ut.prototype.reconsumeCodePoint=function(kt){this._value.unshift(kt)},Ut.prototype.peekCodePoint=function(kt){return kt>=this._value.length?-1:this._value[kt]},Ut.prototype.consumeUnicodeRangeToken=function(){for(var kt=[],Kt=this.consumeCodePoint();zi(Kt)&&kt.length<6;)kt.push(Kt),Kt=this.consumeCodePoint();for(var Qt=!1;Kt===Gr&&kt.length<6;)kt.push(Kt),Kt=this.consumeCodePoint(),Qt=!0;if(Qt){var Pe=parseInt(Xt.apply(void 0,kt.map(function(On){return On===Gr?qo:On})),16),qe=parseInt(Xt.apply(void 0,kt.map(function(On){return On===Gr?Lo:On})),16);return{type:30,start:Pe,end:qe}}var Fn=parseInt(Xt.apply(void 0,kt),16);if(this.peekCodePoint(0)===ei&&zi(this.peekCodePoint(1))){this.consumeCodePoint(),Kt=this.consumeCodePoint();for(var ti=[];zi(Kt)&&ti.length<6;)ti.push(Kt),Kt=this.consumeCodePoint();var qe=parseInt(Xt.apply(void 0,ti),16);return{type:30,start:Fn,end:qe}}else return{type:30,start:Fn,end:Fn}},Ut.prototype.consumeIdentLikeToken=function(){var kt=this.consumeName();return kt.toLowerCase()==="url"&&this.peekCodePoint(0)===Rr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Rr?(this.consumeCodePoint(),{type:19,value:kt}):{type:20,value:kt}},Ut.prototype.consumeUrlToken=function(){var kt=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Le)return{type:22,value:""};var Kt=this.peekCodePoint(0);if(Kt===or||Kt===dr){var Qt=this.consumeStringToken(this.consumeCodePoint());return Qt.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Le||this.peekCodePoint(0)===Zr)?(this.consumeCodePoint(),{type:22,value:Qt.value}):(this.consumeBadUrlRemnants(),ys)}for(;;){var Pe=this.consumeCodePoint();if(Pe===Le||Pe===Zr)return{type:22,value:Xt.apply(void 0,kt)};if(Qo(Pe))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Le||this.peekCodePoint(0)===Zr?(this.consumeCodePoint(),{type:22,value:Xt.apply(void 0,kt)}):(this.consumeBadUrlRemnants(),ys);if(Pe===dr||Pe===or||Pe===Rr||Wl(Pe))return this.consumeBadUrlRemnants(),ys;if(Pe===kr)if(La(Pe,this.peekCodePoint(0)))kt.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ys;else kt.push(Pe)}},Ut.prototype.consumeWhiteSpace=function(){for(;Qo(this.peekCodePoint(0));)this.consumeCodePoint()},Ut.prototype.consumeBadUrlRemnants=function(){for(;;){var kt=this.consumeCodePoint();if(kt===Zr||kt===Le)return;La(kt,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Ut.prototype.consumeStringSlice=function(kt){for(var Kt=5e4,Qt="";kt>0;){var Pe=Math.min(Kt,kt);Qt+=Xt.apply(void 0,this._value.splice(0,Pe)),kt-=Pe}return this._value.shift(),Qt},Ut.prototype.consumeStringToken=function(kt){var Kt="",Qt=0;do{var Pe=this._value[Qt];if(Pe===Le||Pe===void 0||Pe===kt)return Kt+=this.consumeStringSlice(Qt),{type:0,value:Kt};if(Pe===di)return this._value.splice(0,Qt),Hr;if(Pe===kr){var qe=this._value[Qt+1];qe!==Le&&qe!==void 0&&(qe===di?(Kt+=this.consumeStringSlice(Qt),Qt=-1,this._value.shift()):La(Pe,qe)&&(Kt+=this.consumeStringSlice(Qt),Kt+=Xt(this.consumeEscapedCodePoint()),Qt=-1))}Qt++}while(!0)},Ut.prototype.consumeNumber=function(){var kt=[],Kt=qi,Qt=this.peekCodePoint(0);for((Qt===Pi||Qt===ei)&&kt.push(this.consumeCodePoint());ao(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());Qt=this.peekCodePoint(0);var Pe=this.peekCodePoint(1);if(Qt===Hs&&ao(Pe))for(kt.push(this.consumeCodePoint(),this.consumeCodePoint()),Kt=on;ao(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());Qt=this.peekCodePoint(0),Pe=this.peekCodePoint(1);var qe=this.peekCodePoint(2);if((Qt===Xo||Qt===qa)&&((Pe===Pi||Pe===ei)&&ao(qe)||ao(Pe)))for(kt.push(this.consumeCodePoint(),this.consumeCodePoint()),Kt=on;ao(this.peekCodePoint(0));)kt.push(this.consumeCodePoint());return[ka(kt),Kt]},Ut.prototype.consumeNumericToken=function(){var kt=this.consumeNumber(),Kt=kt[0],Qt=kt[1],Pe=this.peekCodePoint(0),qe=this.peekCodePoint(1),Fn=this.peekCodePoint(2);if(vs(Pe,qe,Fn)){var ti=this.consumeName();return{type:15,number:Kt,flags:Qt,unit:ti}}return Pe===er?(this.consumeCodePoint(),{type:16,number:Kt,flags:Qt}):{type:17,number:Kt,flags:Qt}},Ut.prototype.consumeEscapedCodePoint=function(){var kt=this.consumeCodePoint();if(zi(kt)){for(var Kt=Xt(kt);zi(this.peekCodePoint(0))&&Kt.length<6;)Kt+=Xt(this.consumeCodePoint());Qo(this.peekCodePoint(0))&&this.consumeCodePoint();var Qt=parseInt(Kt,16);return Qt===0||mo(Qt)||Qt>1114111?Si:Qt}return kt===Le?Si:kt},Ut.prototype.consumeName=function(){for(var kt="";;){var Kt=this.consumeCodePoint();if(Ka(Kt))kt+=Xt(Kt);else if(La(Kt,this.peekCodePoint(0)))kt+=Xt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Kt),kt}},Ut}(),su=function(){function Ut(kt){this._tokens=kt}return Ut.create=function(kt){var Kt=new Bl;return Kt.write(kt),new Ut(Kt.read())},Ut.parseValue=function(kt){return Ut.create(kt).parseComponentValue()},Ut.parseValues=function(kt){return Ut.create(kt).parseComponentValues()},Ut.prototype.parseComponentValue=function(){for(var kt=this.consumeToken();kt.type===31;)kt=this.consumeToken();if(kt.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(kt);var Kt=this.consumeComponentValue();do kt=this.consumeToken();while(kt.type===31);if(kt.type===32)return Kt;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Ut.prototype.parseComponentValues=function(){for(var kt=[];;){var Kt=this.consumeComponentValue();if(Kt.type===32)return kt;kt.push(Kt),kt.push()}},Ut.prototype.consumeComponentValue=function(){var kt=this.consumeToken();switch(kt.type){case 11:case 28:case 2:return this.consumeSimpleBlock(kt.type);case 19:return this.consumeFunction(kt)}return kt},Ut.prototype.consumeSimpleBlock=function(kt){for(var Kt={type:kt,values:[]},Qt=this.consumeToken();;){if(Qt.type===32||tu(Qt,kt))return Kt;this.reconsumeToken(Qt),Kt.values.push(this.consumeComponentValue()),Qt=this.consumeToken()}},Ut.prototype.consumeFunction=function(kt){for(var Kt={name:kt.value,values:[],type:18};;){var Qt=this.consumeToken();if(Qt.type===32||Qt.type===3)return Kt;this.reconsumeToken(Qt),Kt.values.push(this.consumeComponentValue())}},Ut.prototype.consumeToken=function(){var kt=this._tokens.shift();return typeof kt=="undefined"?Oa:kt},Ut.prototype.reconsumeToken=function(kt){this._tokens.unshift(kt)},Ut}(),au=function(Ut){return Ut.type===15},Yo=function(Ut){return Ut.type===17},va=function(Ut){return Ut.type===20},Cs=function(Ut){return Ut.type===0},lu=function(Ut,kt){return va(Ut)&&Ut.value===kt},Ll=function(Ut){return Ut.type!==31},Ml=function(Ut){return Ut.type!==31&&Ut.type!==4},tl=function(Ut){var kt=[],Kt=[];return Ut.forEach(function(Qt){if(Qt.type===4){if(Kt.length===0)throw new Error("Error parsing function args, zero tokens for arg");kt.push(Kt),Kt=[];return}Qt.type!==31&&Kt.push(Qt)}),Kt.length&&kt.push(Kt),kt},tu=function(Ut,kt){return kt===11&&Ut.type===12||kt===28&&Ut.type===29?!0:kt===2&&Ut.type===3},Pl=function(Ut){return Ut.type===17||Ut.type===15},No=function(Ut){return Ut.type===16||Pl(Ut)},dc=function(Ut){return Ut.length>1?[Ut[0],Ut[1]]:[Ut[0]]},al={type:17,number:0,flags:qi},zu={type:16,number:50,flags:qi},hh={type:16,number:100,flags:qi},dh=function(Ut,kt,Kt){var Qt=Ut[0],Pe=Ut[1];return[Ga(Qt,kt),Ga(typeof Pe!="undefined"?Pe:Qt,Kt)]},Ga=function(Ut,kt){if(Ut.type===16)return Ut.number/100*kt;if(au(Ut))switch(Ut.unit){case"rem":case"em":return 16*Ut.number;case"px":default:return Ut.number}return Ut.number},ih="deg",Ec="grad",Vc="rad",Zc="turn",Bs={name:"angle",parse:function(Ut,kt){if(kt.type===15)switch(kt.unit){case ih:return Math.PI*kt.number/180;case Ec:return Math.PI/200*kt.number;case Vc:return kt.number;case Zc:return Math.PI*2*kt.number}throw new Error("Unsupported angle type")}},ya=function(Ut){return Ut.type===15&&(Ut.unit===ih||Ut.unit===Ec||Ut.unit===Vc||Ut.unit===Zc)},Mu=function(Ut){var kt=Ut.filter(va).map(function(Kt){return Kt.value}).join(" ");switch(kt){case"to bottom right":case"to right bottom":case"left top":case"top left":return[al,al];case"to top":case"bottom":return el(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[al,hh];case"to right":case"left":return el(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[hh,hh];case"to bottom":case"top":return el(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[hh,al];case"to left":case"right":return el(270)}return 0},el=function(Ut){return Math.PI*Ut/180},ll={name:"color",parse:function(Ut,kt){if(kt.type===18){var Kt=Ud[kt.name];if(typeof Kt=="undefined")throw new Error('Attempting to parse an unsupported color function "'+kt.name+'"');return Kt(Ut,kt.values)}if(kt.type===5){if(kt.value.length===3){var Qt=kt.value.substring(0,1),Pe=kt.value.substring(1,2),qe=kt.value.substring(2,3);return nl(parseInt(Qt+Qt,16),parseInt(Pe+Pe,16),parseInt(qe+qe,16),1)}if(kt.value.length===4){var Qt=kt.value.substring(0,1),Pe=kt.value.substring(1,2),qe=kt.value.substring(2,3),Fn=kt.value.substring(3,4);return nl(parseInt(Qt+Qt,16),parseInt(Pe+Pe,16),parseInt(qe+qe,16),parseInt(Fn+Fn,16)/255)}if(kt.value.length===6){var Qt=kt.value.substring(0,2),Pe=kt.value.substring(2,4),qe=kt.value.substring(4,6);return nl(parseInt(Qt,16),parseInt(Pe,16),parseInt(qe,16),1)}if(kt.value.length===8){var Qt=kt.value.substring(0,2),Pe=kt.value.substring(2,4),qe=kt.value.substring(4,6),Fn=kt.value.substring(6,8);return nl(parseInt(Qt,16),parseInt(Pe,16),parseInt(qe,16),parseInt(Fn,16)/255)}}if(kt.type===20){var ti=Ah[kt.value.toUpperCase()];if(typeof ti!="undefined")return ti}return Ah.TRANSPARENT}},Wa=function(Ut){return(255&Ut)===0},Aa=function(Ut){var kt=255&Ut,Kt=255&Ut>>8,Qt=255&Ut>>16,Pe=255&Ut>>24;return kt<255?"rgba("+Pe+","+Qt+","+Kt+","+kt/255+")":"rgb("+Pe+","+Qt+","+Kt+")"},nl=function(Ut,kt,Kt,Qt){return(Ut<<24|kt<<16|Kt<<8|Math.round(Qt*255)<<0)>>>0},Dl=function(Ut,kt){if(Ut.type===17)return Ut.number;if(Ut.type===16){var Kt=kt===3?1:255;return kt===3?Ut.number/100*Kt:Math.round(Ut.number/100*Kt)}return 0},Ac=function(Ut,kt){var Kt=kt.filter(Ml);if(Kt.length===3){var Qt=Kt.map(Dl),Pe=Qt[0],qe=Qt[1],Fn=Qt[2];return nl(Pe,qe,Fn,1)}if(Kt.length===4){var ti=Kt.map(Dl),Pe=ti[0],qe=ti[1],Fn=ti[2],On=ti[3];return nl(Pe,qe,Fn,On)}return 0};function rh(Ut,kt,Kt){return Kt<0&&(Kt+=1),Kt>=1&&(Kt-=1),Kt<1/6?(kt-Ut)*Kt*6+Ut:Kt<1/2?kt:Kt<2/3?(kt-Ut)*6*(2/3-Kt)+Ut:Ut}var cl=function(Ut,kt){var Kt=kt.filter(Ml),Qt=Kt[0],Pe=Kt[1],qe=Kt[2],Fn=Kt[3],ti=(Qt.type===17?el(Qt.number):Bs.parse(Ut,Qt))/(Math.PI*2),On=No(Pe)?Pe.number/100:0,Oi=No(qe)?qe.number/100:0,Qi=typeof Fn!="undefined"&&No(Fn)?Ga(Fn,1):1;if(On===0)return nl(Oi*255,Oi*255,Oi*255,1);var St=Oi<=.5?Oi*(On+1):Oi+On-Oi*On,_t=Oi*2-St,fe=rh(_t,St,ti+1/3),Ee=rh(_t,St,ti),$e=rh(_t,St,ti-1/3);return nl(fe*255,Ee*255,$e*255,Qi)},Ud={hsl:cl,hsla:cl,rgb:Ac,rgba:Ac},od=function(Ut,kt){return ll.parse(Ut,su.create(kt).parseComponentValue())},Ah={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},Ko={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Ut,kt){return kt.map(function(Kt){if(va(Kt))switch(Kt.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"},bn=function(Ut,kt){var Kt=ll.parse(Ut,kt[0]),Qt=kt[1];return Qt&&No(Qt)?{color:Kt,stop:Qt}:{color:Kt,stop:null}},Yi=function(Ut,kt){var Kt=Ut[0],Qt=Ut[Ut.length-1];Kt.stop===null&&(Kt.stop=al),Qt.stop===null&&(Qt.stop=hh);for(var Pe=[],qe=0,Fn=0;Fn<Ut.length;Fn++){var ti=Ut[Fn].stop;if(ti!==null){var On=Ga(ti,kt);On>qe?Pe.push(On):Pe.push(qe),qe=On}else Pe.push(null)}for(var Oi=null,Fn=0;Fn<Pe.length;Fn++){var Qi=Pe[Fn];if(Qi===null)Oi===null&&(Oi=Fn);else if(Oi!==null){for(var St=Fn-Oi,_t=Pe[Oi-1],fe=(Qi-_t)/(St+1),Ee=1;Ee<=St;Ee++)Pe[Oi+Ee-1]=fe*Ee;Oi=null}}return Ut.map(function($e,mn){var cn=$e.color;return{color:cn,stop:Math.max(Math.min(1,Pe[mn]/kt),0)}})},aA=function(Ut,kt,Kt){var Qt=kt/2,Pe=Kt/2,qe=Ga(Ut[0],kt)-Qt,Fn=Pe-Ga(Ut[1],Kt);return(Math.atan2(Fn,qe)+Math.PI*2)%(Math.PI*2)},tc=function(Ut,kt,Kt){var Qt=typeof Ut=="number"?Ut:aA(Ut,kt,Kt),Pe=Math.abs(kt*Math.sin(Qt))+Math.abs(Kt*Math.cos(Qt)),qe=kt/2,Fn=Kt/2,ti=Pe/2,On=Math.sin(Qt-Math.PI/2)*ti,Oi=Math.cos(Qt-Math.PI/2)*ti;return[Pe,qe-Oi,qe+Oi,Fn-On,Fn+On]},ju=function(Ut,kt){return Math.sqrt(Ut*Ut+kt*kt)},Uu=function(Ut,kt,Kt,Qt,Pe){var qe=[[0,0],[0,kt],[Ut,0],[Ut,kt]];return qe.reduce(function(Fn,ti){var On=ti[0],Oi=ti[1],Qi=ju(Kt-On,Qt-Oi);return(Pe?Qi<Fn.optimumDistance:Qi>Fn.optimumDistance)?{optimumCorner:ti,optimumDistance:Qi}:Fn},{optimumDistance:Pe?1/0:-1/0,optimumCorner:null}).optimumCorner},fh=function(Ut,kt,Kt,Qt,Pe){var qe=0,Fn=0;switch(Ut.size){case 0:Ut.shape===0?qe=Fn=Math.min(Math.abs(kt),Math.abs(kt-Qt),Math.abs(Kt),Math.abs(Kt-Pe)):Ut.shape===1&&(qe=Math.min(Math.abs(kt),Math.abs(kt-Qt)),Fn=Math.min(Math.abs(Kt),Math.abs(Kt-Pe)));break;case 2:if(Ut.shape===0)qe=Fn=Math.min(ju(kt,Kt),ju(kt,Kt-Pe),ju(kt-Qt,Kt),ju(kt-Qt,Kt-Pe));else if(Ut.shape===1){var ti=Math.min(Math.abs(Kt),Math.abs(Kt-Pe))/Math.min(Math.abs(kt),Math.abs(kt-Qt)),On=Uu(Qt,Pe,kt,Kt,!0),Oi=On[0],Qi=On[1];qe=ju(Oi-kt,(Qi-Kt)/ti),Fn=ti*qe}break;case 1:Ut.shape===0?qe=Fn=Math.max(Math.abs(kt),Math.abs(kt-Qt),Math.abs(Kt),Math.abs(Kt-Pe)):Ut.shape===1&&(qe=Math.max(Math.abs(kt),Math.abs(kt-Qt)),Fn=Math.max(Math.abs(Kt),Math.abs(Kt-Pe)));break;case 3:if(Ut.shape===0)qe=Fn=Math.max(ju(kt,Kt),ju(kt,Kt-Pe),ju(kt-Qt,Kt),ju(kt-Qt,Kt-Pe));else if(Ut.shape===1){var ti=Math.max(Math.abs(Kt),Math.abs(Kt-Pe))/Math.max(Math.abs(kt),Math.abs(kt-Qt)),St=Uu(Qt,Pe,kt,Kt,!1),Oi=St[0],Qi=St[1];qe=ju(Oi-kt,(Qi-Kt)/ti),Fn=ti*qe}break}return Array.isArray(Ut.size)&&(qe=Ga(Ut.size[0],Qt),Fn=Ut.size.length===2?Ga(Ut.size[1],Pe):qe),[qe,Fn]},_A=function(Ut,kt){var Kt=el(180),Qt=[];return tl(kt).forEach(function(Pe,qe){if(qe===0){var Fn=Pe[0];if(Fn.type===20&&Fn.value==="to"){Kt=Mu(Pe);return}else if(ya(Fn)){Kt=Bs.parse(Ut,Fn);return}}var ti=bn(Ut,Pe);Qt.push(ti)}),{angle:Kt,stops:Qt,type:1}},sd=function(Ut,kt){var Kt=el(180),Qt=[];return tl(kt).forEach(function(Pe,qe){if(qe===0){var Fn=Pe[0];if(Fn.type===20&&["top","left","right","bottom"].indexOf(Fn.value)!==-1){Kt=Mu(Pe);return}else if(ya(Fn)){Kt=(Bs.parse(Ut,Fn)+el(270))%el(360);return}}var ti=bn(Ut,Pe);Qt.push(ti)}),{angle:Kt,stops:Qt,type:1}},il=function(Ut,kt){var Kt=el(180),Qt=[],Pe=1,qe=0,Fn=3,ti=[];return tl(kt).forEach(function(On,Oi){var Qi=On[0];if(Oi===0){if(va(Qi)&&Qi.value==="linear"){Pe=1;return}else if(va(Qi)&&Qi.value==="radial"){Pe=2;return}}if(Qi.type===18){if(Qi.name==="from"){var St=ll.parse(Ut,Qi.values[0]);Qt.push({stop:al,color:St})}else if(Qi.name==="to"){var St=ll.parse(Ut,Qi.values[0]);Qt.push({stop:hh,color:St})}else if(Qi.name==="color-stop"){var _t=Qi.values.filter(Ml);if(_t.length===2){var St=ll.parse(Ut,_t[1]),fe=_t[0];Yo(fe)&&Qt.push({stop:{type:16,number:fe.number*100,flags:fe.flags},color:St})}}}}),Pe===1?{angle:(Kt+el(180))%el(360),stops:Qt,type:Pe}:{size:Fn,shape:qe,stops:Qt,position:ti,type:Pe}},gs="closest-side",Xu="farthest-side",Ku="closest-corner",bl="farthest-corner",sa="circle",pu="ellipse",gh="cover",xl="contain",Oh=function(Ut,kt){var Kt=0,Qt=3,Pe=[],qe=[];return tl(kt).forEach(function(Fn,ti){var On=!0;if(ti===0){var Oi=!1;On=Fn.reduce(function(St,_t){if(Oi)if(va(_t))switch(_t.value){case"center":return qe.push(zu),St;case"top":case"left":return qe.push(al),St;case"right":case"bottom":return qe.push(hh),St}else(No(_t)||Pl(_t))&&qe.push(_t);else if(va(_t))switch(_t.value){case sa:return Kt=0,!1;case pu:return Kt=1,!1;case"at":return Oi=!0,!1;case gs:return Qt=0,!1;case gh:case Xu:return Qt=1,!1;case xl:case Ku:return Qt=2,!1;case bl:return Qt=3,!1}else if(Pl(_t)||No(_t))return Array.isArray(Qt)||(Qt=[]),Qt.push(_t),!1;return St},On)}if(On){var Qi=bn(Ut,Fn);Pe.push(Qi)}}),{size:Qt,shape:Kt,stops:Pe,position:qe,type:2}},Su=function(Ut,kt){var Kt=0,Qt=3,Pe=[],qe=[];return tl(kt).forEach(function(Fn,ti){var On=!0;if(ti===0?On=Fn.reduce(function(Qi,St){if(va(St))switch(St.value){case"center":return qe.push(zu),!1;case"top":case"left":return qe.push(al),!1;case"right":case"bottom":return qe.push(hh),!1}else if(No(St)||Pl(St))return qe.push(St),!1;return Qi},On):ti===1&&(On=Fn.reduce(function(Qi,St){if(va(St))switch(St.value){case sa:return Kt=0,!1;case pu:return Kt=1,!1;case xl:case gs:return Qt=0,!1;case Xu:return Qt=1,!1;case Ku:return Qt=2,!1;case gh:case bl:return Qt=3,!1}else if(Pl(St)||No(St))return Array.isArray(Qt)||(Qt=[]),Qt.push(St),!1;return Qi},On)),On){var Oi=bn(Ut,Fn);Pe.push(Oi)}}),{size:Qt,shape:Kt,stops:Pe,position:qe,type:2}},xd=function(Ut){return Ut.type===1},Da=function(Ut){return Ut.type===2},Ju={name:"image",parse:function(Ut,kt){if(kt.type===22){var Kt={url:kt.value,type:0};return Ut.cache.addImage(kt.value),Kt}if(kt.type===18){var Qt=vl[kt.name];if(typeof Qt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+kt.name+'"');return Qt(Ut,kt.values)}throw new Error("Unsupported image type "+kt.type)}};function ja(Ut){return!(Ut.type===20&&Ut.value==="none")&&(Ut.type!==18||!!vl[Ut.name])}var vl={"linear-gradient":_A,"-moz-linear-gradient":sd,"-ms-linear-gradient":sd,"-o-linear-gradient":sd,"-webkit-linear-gradient":sd,"radial-gradient":Oh,"-moz-radial-gradient":Su,"-ms-radial-gradient":Su,"-o-radial-gradient":Su,"-webkit-radial-gradient":Su,"-webkit-gradient":il},Zl={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Ut,kt){if(kt.length===0)return[];var Kt=kt[0];return Kt.type===20&&Kt.value==="none"?[]:kt.filter(function(Qt){return Ml(Qt)&&ja(Qt)}).map(function(Qt){return Ju.parse(Ut,Qt)})}},Et={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Ut,kt){return kt.map(function(Kt){if(va(Kt))switch(Kt.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},xt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Ut,kt){return tl(kt).map(function(Kt){return Kt.filter(No)}).map(dc)}},Lt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Ut,kt){return tl(kt).map(function(Kt){return Kt.filter(va).map(function(Qt){return Qt.value}).join(" ")}).map(Rt)}},Rt=function(Ut){switch(Ut){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}},se;(function(Ut){Ut.AUTO="auto",Ut.CONTAIN="contain",Ut.COVER="cover"})(se||(se={}));var Zt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Ut,kt){return tl(kt).map(function(Kt){return Kt.filter(pe)})}},pe=function(Ut){return va(Ut)||No(Ut)},ye=function(Ut){return{name:"border-"+Ut+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Fe=ye("top"),Xe=ye("right"),pn=ye("bottom"),gn=ye("left"),Nn=function(Ut){return{name:"border-radius-"+Ut,initialValue:"0 0",prefix:!1,type:1,parse:function(kt,Kt){return dc(Kt.filter(No))}}},He=Nn("top-left"),ci=Nn("top-right"),Yn=Nn("bottom-right"),gi=Nn("bottom-left"),Un=function(Ut){return{name:"border-"+Ut+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(kt,Kt){switch(Kt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ai=Un("top"),Hi=Un("right"),lr=Un("bottom"),Ir=Un("left"),io=function(Ut){return{name:"border-"+Ut+"-width",initialValue:"0",type:0,prefix:!1,parse:function(kt,Kt){return au(Kt)?Kt.number:0}}},mr=io("top"),Ti=io("right"),Br=io("bottom"),Wr=io("left"),Qn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$n={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"rtl":return 1;case"ltr":default:return 0}}},Zi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Ut,kt){return kt.filter(va).reduce(function(Kt,Qt){return Kt|ge(Qt.value)},0)}},ge=function(Ut){switch(Ut){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},Ce={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ve={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Ut,kt){return kt.type===20&&kt.value==="normal"?0:kt.type===17||kt.type===15?kt.number:0}},en;(function(Ut){Ut.NORMAL="normal",Ut.STRICT="strict"})(en||(en={}));var un={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"strict":return en.STRICT;case"normal":default:return en.NORMAL}}},hn={name:"line-height",initialValue:"normal",prefix:!1,type:4},Tn=function(Ut,kt){return va(Ut)&&Ut.value==="normal"?1.2*kt:Ut.type===17?kt*Ut.number:No(Ut)?Ga(Ut,kt):kt},Xn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Ut,kt){return kt.type===20&&kt.value==="none"?null:Ju.parse(Ut,kt)}},Te={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"inside":return 0;case"outside":default:return 1}}},ln={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){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}}},vn=function(Ut){return{name:"margin-"+Ut,initialValue:"0",prefix:!1,type:4}},En=vn("top"),Vn=vn("right"),li=vn("bottom"),oi=vn("left"),Ei={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Ut,kt){return kt.filter(va).map(function(Kt){switch(Kt.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Ii={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"break-word":return"break-word";case"normal":default:return"normal"}}},$i=function(Ut){return{name:"padding-"+Ut,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},sr=$i("top"),Ar=$i("right"),Jr=$i("bottom"),Xi=$i("left"),_n={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},oo={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},lo={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ut,kt){return kt.length===1&&lu(kt[0],"none")?[]:tl(kt).map(function(Kt){for(var Qt={color:Ah.TRANSPARENT,offsetX:al,offsetY:al,blur:al},Pe=0,qe=0;qe<Kt.length;qe++){var Fn=Kt[qe];Pl(Fn)?(Pe===0?Qt.offsetX=Fn:Pe===1?Qt.offsetY=Fn:Qt.blur=Fn,Pe++):Qt.color=ll.parse(Ut,Fn)}return Qt})}},ir={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},yr={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Ut,kt){if(kt.type===20&&kt.value==="none")return null;if(kt.type===18){var Kt=Or[kt.name];if(typeof Kt=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+kt.name+'"');return Kt(kt.values)}return null}},fr=function(Ut){var kt=Ut.filter(function(Kt){return Kt.type===17}).map(function(Kt){return Kt.number});return kt.length===6?kt:null},nr=function(Ut){var kt=Ut.filter(function(On){return On.type===17}).map(function(On){return On.number}),Kt=kt[0],Qt=kt[1];kt[2],kt[3];var Pe=kt[4],qe=kt[5];kt[6],kt[7],kt[8],kt[9],kt[10],kt[11];var Fn=kt[12],ti=kt[13];return kt[14],kt[15],kt.length===16?[Kt,Qt,Pe,qe,Fn,ti]:null},Or={matrix:fr,matrix3d:nr},uo={type:16,number:50,flags:qi},So=[uo,uo],Fo={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Ut,kt){var Kt=kt.filter(No);return Kt.length!==2?So:[Kt[0],Kt[1]]}},zr={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Vo;(function(Ut){Ut.NORMAL="normal",Ut.BREAK_ALL="break-all",Ut.KEEP_ALL="keep-all"})(Vo||(Vo={}));for(var Mo={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"break-all":return Vo.BREAK_ALL;case"keep-all":return Vo.KEEP_ALL;case"normal":default:return Vo.NORMAL}}},hs={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Ut,kt){if(kt.type===20)return{auto:!0,order:0};if(Yo(kt))return{auto:!1,order:kt.number};throw new Error("Invalid z-index number parsed")}},ho={name:"time",parse:function(Ut,kt){if(kt.type===15)switch(kt.unit.toLowerCase()){case"s":return 1e3*kt.number;case"ms":return kt.number}throw new Error("Unsupported time type")}},Pa={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Ut,kt){return Yo(kt)?kt.number:1}},Os={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ps={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Ut,kt){return kt.filter(va).map(function(Kt){switch(Kt.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(Kt){return Kt!==0})}},Io={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Ut,kt){var Kt=[],Qt=[];return kt.forEach(function(Pe){switch(Pe.type){case 20:case 0:Kt.push(Pe.value);break;case 17:Kt.push(Pe.number.toString());break;case 4:Qt.push(Kt.join(" ")),Kt.length=0;break}}),Kt.length&&Qt.push(Kt.join(" ")),Qt.map(function(Pe){return Pe.indexOf(" ")===-1?Pe:"'"+Pe+"'"})}},Fs={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},$a={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Ut,kt){if(Yo(kt))return kt.number;if(va(kt))switch(kt.value){case"bold":return 700;case"normal":default:return 400}return 400}},js={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Ut,kt){return kt.filter(va).map(function(Kt){return Kt.value})}},jl={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Ut,kt){switch(kt){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Po=function(Ut,kt){return(Ut&kt)!==0},as={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Ut,kt){if(kt.length===0)return[];var Kt=kt[0];return Kt.type===20&&Kt.value==="none"?[]:kt}},ds={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Ut,kt){if(kt.length===0)return null;var Kt=kt[0];if(Kt.type===20&&Kt.value==="none")return null;for(var Qt=[],Pe=kt.filter(Ll),qe=0;qe<Pe.length;qe++){var Fn=Pe[qe],ti=Pe[qe+1];if(Fn.type===20){var On=ti&&Yo(ti)?ti.number:1;Qt.push({counter:Fn.value,increment:On})}}return Qt}},ko={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Ut,kt){if(kt.length===0)return[];for(var Kt=[],Qt=kt.filter(Ll),Pe=0;Pe<Qt.length;Pe++){var qe=Qt[Pe],Fn=Qt[Pe+1];if(va(qe)&&qe.value!=="none"){var ti=Fn&&Yo(Fn)?Fn.number:0;Kt.push({counter:qe.value,reset:ti})}}return Kt}},Jo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Ut,kt){return kt.filter(au).map(function(Kt){return ho.parse(Ut,Kt)})}},bo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Ut,kt){if(kt.length===0)return null;var Kt=kt[0];if(Kt.type===20&&Kt.value==="none")return null;var Qt=[],Pe=kt.filter(Cs);if(Pe.length%2!==0)return null;for(var qe=0;qe<Pe.length;qe+=2){var Fn=Pe[qe].value,ti=Pe[qe+1].value;Qt.push({open:Fn,close:ti})}return Qt}},Ls=function(Ut,kt,Kt){if(!Ut)return"";var Qt=Ut[Math.min(kt,Ut.length-1)];return Qt?Kt?Qt.open:Qt.close:""},_s={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ut,kt){return kt.length===1&&lu(kt[0],"none")?[]:tl(kt).map(function(Kt){for(var Qt={color:255,offsetX:al,offsetY:al,blur:al,spread:al,inset:!1},Pe=0,qe=0;qe<Kt.length;qe++){var Fn=Kt[qe];lu(Fn,"inset")?Qt.inset=!0:Pl(Fn)?(Pe===0?Qt.offsetX=Fn:Pe===1?Qt.offsetY=Fn:Pe===2?Qt.blur=Fn:Qt.spread=Fn,Pe++):Qt.color=ll.parse(Ut,Fn)}return Qt})}},ea={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Ut,kt){var Kt=[0,1,2],Qt=[];return kt.filter(va).forEach(function(Pe){switch(Pe.value){case"stroke":Qt.push(1);break;case"fill":Qt.push(0);break;case"markers":Qt.push(2);break}}),Kt.forEach(function(Pe){Qt.indexOf(Pe)===-1&&Qt.push(Pe)}),Qt}},Yl={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},As={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Ut,kt){return au(kt)?kt.number:0}},eu=function(){function Ut(kt,Kt){var Qt,Pe;this.animationDuration=po(kt,Jo,Kt.animationDuration),this.backgroundClip=po(kt,Ko,Kt.backgroundClip),this.backgroundColor=po(kt,sA,Kt.backgroundColor),this.backgroundImage=po(kt,Zl,Kt.backgroundImage),this.backgroundOrigin=po(kt,Et,Kt.backgroundOrigin),this.backgroundPosition=po(kt,xt,Kt.backgroundPosition),this.backgroundRepeat=po(kt,Lt,Kt.backgroundRepeat),this.backgroundSize=po(kt,Zt,Kt.backgroundSize),this.borderTopColor=po(kt,Fe,Kt.borderTopColor),this.borderRightColor=po(kt,Xe,Kt.borderRightColor),this.borderBottomColor=po(kt,pn,Kt.borderBottomColor),this.borderLeftColor=po(kt,gn,Kt.borderLeftColor),this.borderTopLeftRadius=po(kt,He,Kt.borderTopLeftRadius),this.borderTopRightRadius=po(kt,ci,Kt.borderTopRightRadius),this.borderBottomRightRadius=po(kt,Yn,Kt.borderBottomRightRadius),this.borderBottomLeftRadius=po(kt,gi,Kt.borderBottomLeftRadius),this.borderTopStyle=po(kt,Ai,Kt.borderTopStyle),this.borderRightStyle=po(kt,Hi,Kt.borderRightStyle),this.borderBottomStyle=po(kt,lr,Kt.borderBottomStyle),this.borderLeftStyle=po(kt,Ir,Kt.borderLeftStyle),this.borderTopWidth=po(kt,mr,Kt.borderTopWidth),this.borderRightWidth=po(kt,Ti,Kt.borderRightWidth),this.borderBottomWidth=po(kt,Br,Kt.borderBottomWidth),this.borderLeftWidth=po(kt,Wr,Kt.borderLeftWidth),this.boxShadow=po(kt,_s,Kt.boxShadow),this.color=po(kt,Qn,Kt.color),this.direction=po(kt,$n,Kt.direction),this.display=po(kt,Zi,Kt.display),this.float=po(kt,Ce,Kt.cssFloat),this.fontFamily=po(kt,Io,Kt.fontFamily),this.fontSize=po(kt,Fs,Kt.fontSize),this.fontStyle=po(kt,jl,Kt.fontStyle),this.fontVariant=po(kt,js,Kt.fontVariant),this.fontWeight=po(kt,$a,Kt.fontWeight),this.letterSpacing=po(kt,Ve,Kt.letterSpacing),this.lineBreak=po(kt,un,Kt.lineBreak),this.lineHeight=po(kt,hn,Kt.lineHeight),this.listStyleImage=po(kt,Xn,Kt.listStyleImage),this.listStylePosition=po(kt,Te,Kt.listStylePosition),this.listStyleType=po(kt,ln,Kt.listStyleType),this.marginTop=po(kt,En,Kt.marginTop),this.marginRight=po(kt,Vn,Kt.marginRight),this.marginBottom=po(kt,li,Kt.marginBottom),this.marginLeft=po(kt,oi,Kt.marginLeft),this.opacity=po(kt,Pa,Kt.opacity);var qe=po(kt,Ei,Kt.overflow);this.overflowX=qe[0],this.overflowY=qe[qe.length>1?1:0],this.overflowWrap=po(kt,Ii,Kt.overflowWrap),this.paddingTop=po(kt,sr,Kt.paddingTop),this.paddingRight=po(kt,Ar,Kt.paddingRight),this.paddingBottom=po(kt,Jr,Kt.paddingBottom),this.paddingLeft=po(kt,Xi,Kt.paddingLeft),this.paintOrder=po(kt,ea,Kt.paintOrder),this.position=po(kt,oo,Kt.position),this.textAlign=po(kt,_n,Kt.textAlign),this.textDecorationColor=po(kt,Os,(Qt=Kt.textDecorationColor)!==null&&Qt!==void 0?Qt:Kt.color),this.textDecorationLine=po(kt,Ps,(Pe=Kt.textDecorationLine)!==null&&Pe!==void 0?Pe:Kt.textDecoration),this.textShadow=po(kt,lo,Kt.textShadow),this.textTransform=po(kt,ir,Kt.textTransform),this.transform=po(kt,yr,Kt.transform),this.transformOrigin=po(kt,Fo,Kt.transformOrigin),this.visibility=po(kt,zr,Kt.visibility),this.webkitTextStrokeColor=po(kt,Yl,Kt.webkitTextStrokeColor),this.webkitTextStrokeWidth=po(kt,As,Kt.webkitTextStrokeWidth),this.wordBreak=po(kt,Mo,Kt.wordBreak),this.zIndex=po(kt,hs,Kt.zIndex)}return Ut.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Ut.prototype.isTransparent=function(){return Wa(this.backgroundColor)},Ut.prototype.isTransformed=function(){return this.transform!==null},Ut.prototype.isPositioned=function(){return this.position!==0},Ut.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Ut.prototype.isFloating=function(){return this.float!==0},Ut.prototype.isInlineLevel=function(){return Po(this.display,4)||Po(this.display,33554432)||Po(this.display,268435456)||Po(this.display,536870912)||Po(this.display,67108864)||Po(this.display,134217728)},Ut}(),fa=function(){function Ut(kt,Kt){this.content=po(kt,as,Kt.content),this.quotes=po(kt,bo,Kt.quotes)}return Ut}(),yl=function(){function Ut(kt,Kt){this.counterIncrement=po(kt,ds,Kt.counterIncrement),this.counterReset=po(kt,ko,Kt.counterReset)}return Ut}(),po=function(Ut,kt,Kt){var Qt=new Bl,Pe=Kt!==null&&typeof Kt!="undefined"?Kt.toString():kt.initialValue;Qt.write(Pe);var qe=new su(Qt.read());switch(kt.type){case 2:var Fn=qe.parseComponentValue();return kt.parse(Ut,va(Fn)?Fn.value:kt.initialValue);case 0:return kt.parse(Ut,qe.parseComponentValue());case 1:return kt.parse(Ut,qe.parseComponentValues());case 4:return qe.parseComponentValue();case 3:switch(kt.format){case"angle":return Bs.parse(Ut,qe.parseComponentValue());case"color":return ll.parse(Ut,qe.parseComponentValue());case"image":return Ju.parse(Ut,qe.parseComponentValue());case"length":var ti=qe.parseComponentValue();return Pl(ti)?ti:al;case"length-percentage":var On=qe.parseComponentValue();return No(On)?On:al;case"time":return ho.parse(Ut,qe.parseComponentValue())}break}},Ra="data-html2canvas-debug",Nu=function(Ut){var kt=Ut.getAttribute(Ra);switch(kt){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},wa=function(Ut,kt){var Kt=Nu(Ut);return Kt===1||kt===Kt},na=function(){function Ut(kt,Kt){if(this.context=kt,this.textNodes=[],this.elements=[],this.flags=0,wa(Kt,3))debugger;this.styles=new eu(kt,window.getComputedStyle(Kt,null)),Qr(Kt)&&(this.styles.animationDuration.some(function(Qt){return Qt>0})&&(Kt.style.animationDuration="0s"),this.styles.transform!==null&&(Kt.style.transform="none")),this.bounds=Yt(this.context,Kt),wa(Kt,4)&&(this.flags|=16)}return Ut}(),Na="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ul=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Qs=0;Qs<Xa.length;Qs++)ul[Xa.charCodeAt(Qs)]=Qs;for(var Ia=function(Ut){var kt=Ut.length*.75,Kt=Ut.length,Qt,Pe=0,qe,Fn,ti,On;Ut[Ut.length-1]==="="&&(kt--,Ut[Ut.length-2]==="="&&kt--);var Oi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(kt):new Array(kt),Qi=Array.isArray(Oi)?Oi:new Uint8Array(Oi);for(Qt=0;Qt<Kt;Qt+=4)qe=ul[Ut.charCodeAt(Qt)],Fn=ul[Ut.charCodeAt(Qt+1)],ti=ul[Ut.charCodeAt(Qt+2)],On=ul[Ut.charCodeAt(Qt+3)],Qi[Pe++]=qe<<2|Fn>>4,Qi[Pe++]=(Fn&15)<<4|ti>>2,Qi[Pe++]=(ti&3)<<6|On&63;return Oi},Nl=function(Ut){for(var kt=Ut.length,Kt=[],Qt=0;Qt<kt;Qt+=2)Kt.push(Ut[Qt+1]<<8|Ut[Qt]);return Kt},Iu=function(Ut){for(var kt=Ut.length,Kt=[],Qt=0;Qt<kt;Qt+=4)Kt.push(Ut[Qt+3]<<24|Ut[Qt+2]<<16|Ut[Qt+1]<<8|Ut[Qt]);return Kt},mu=5,Tu=11,Gu=2,oh=Tu-mu,sh=65536>>mu,Va=1<<mu,Cu=Va-1,Sl=1024>>mu,dl=sh+Sl,ph=dl,ec=32,bh=ph+ec,Dh=65536>>Tu,fc=1<<oh,Wu=fc-1,Ta=function(Ut,kt,Kt){return Ut.slice?Ut.slice(kt,Kt):new Uint16Array(Array.prototype.slice.call(Ut,kt,Kt))},ra=function(Ut,kt,Kt){return Ut.slice?Ut.slice(kt,Kt):new Uint32Array(Array.prototype.slice.call(Ut,kt,Kt))},uu=function(Ut,kt){var Kt=Ia(Ut),Qt=Array.isArray(Kt)?Iu(Kt):new Uint32Array(Kt),Pe=Array.isArray(Kt)?Nl(Kt):new Uint16Array(Kt),qe=24,Fn=Ta(Pe,qe/2,Qt[4]/2),ti=Qt[5]===2?Ta(Pe,(qe+Qt[4])/2):ra(Qt,Math.ceil((qe+Qt[4])/4));return new wl(Qt[0],Qt[1],Qt[2],Qt[3],Fn,ti)},wl=function(){function Ut(kt,Kt,Qt,Pe,qe,Fn){this.initialValue=kt,this.errorValue=Kt,this.highStart=Qt,this.highValueIndex=Pe,this.index=qe,this.data=Fn}return Ut.prototype.get=function(kt){var Kt;if(kt>=0){if(kt<55296||kt>56319&&kt<=65535)return Kt=this.index[kt>>mu],Kt=(Kt<<Gu)+(kt&Cu),this.data[Kt];if(kt<=65535)return Kt=this.index[sh+(kt-55296>>mu)],Kt=(Kt<<Gu)+(kt&Cu),this.data[Kt];if(kt<this.highStart)return Kt=bh-Dh+(kt>>Tu),Kt=this.index[Kt],Kt+=kt>>mu&Wu,Kt=this.index[Kt],Kt=(Kt<<Gu)+(kt&Cu),this.data[Kt];if(kt<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Ut}(),ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ru=0;Ru<ga.length;Ru++)hu[ga.charCodeAt(Ru)]=Ru;var ku=1,Yc=2,jn=3,nc=4,jh=5,EA=7,$c=8,Fc=9,ad=10,HA=11,vu=12,Sd=13,Rd=14,ld=15,Lc=function(Ut){for(var kt=[],Kt=0,Qt=Ut.length;Kt<Qt;){var Pe=Ut.charCodeAt(Kt++);if(Pe>=55296&&Pe<=56319&&Kt<Qt){var qe=Ut.charCodeAt(Kt++);(qe&64512)===56320?kt.push(((Pe&1023)<<10)+(qe&1023)+65536):(kt.push(Pe),Kt--)}else kt.push(Pe)}return kt},_d=function(){for(var Ut=[],kt=0;kt<arguments.length;kt++)Ut[kt]=arguments[kt];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ut);var Kt=Ut.length;if(!Kt)return"";for(var Qt=[],Pe=-1,qe="";++Pe<Kt;){var Fn=Ut[Pe];Fn<=65535?Qt.push(Fn):(Fn-=65536,Qt.push((Fn>>10)+55296,Fn%1024+56320)),(Pe+1===Kt||Qt.length>16384)&&(qe+=String.fromCharCode.apply(String,Qt),Qt.length=0)}return qe},Cd=uu(Na),ah="\xD7",Ul="\xF7",Bd=function(Ut){return Cd.get(Ut)},lA=function(Ut,kt,Kt){var Qt=Kt-2,Pe=kt[Qt],qe=kt[Kt-1],Fn=kt[Kt];if(qe===Yc&&Fn===jn)return ah;if(qe===Yc||qe===jn||qe===nc||Fn===Yc||Fn===jn||Fn===nc)return Ul;if(qe===$c&&[$c,Fc,HA,vu].indexOf(Fn)!==-1||(qe===HA||qe===Fc)&&(Fn===Fc||Fn===ad)||(qe===vu||qe===ad)&&Fn===ad||Fn===Sd||Fn===jh||Fn===EA||qe===ku)return ah;if(qe===Sd&&Fn===Rd){for(;Pe===jh;)Pe=kt[--Qt];if(Pe===Rd)return ah}if(qe===ld&&Fn===ld){for(var ti=0;Pe===ld;)ti++,Pe=kt[--Qt];if(ti%2===0)return ah}return Ul},Ys=function(Ut){var kt=Lc(Ut),Kt=kt.length,Qt=0,Pe=0,qe=kt.map(Bd);return{next:function(){if(Qt>=Kt)return{done:!0,value:null};for(var Fn=ah;Qt<Kt&&(Fn=lA(kt,qe,++Qt))===ah;);if(Fn!==ah||Qt===Kt){var ti=_d.apply(null,kt.slice(Pe,Qt));return Pe=Qt,{value:ti,done:!1}}return{done:!0,value:null}}}},Xc=function(Ut){for(var kt=Ys(Ut),Kt=[],Qt;!(Qt=kt.next()).done;)Qt.value&&Kt.push(Qt.value.slice());return Kt},Pd=function(Ut){var kt=123;if(Ut.createRange){var Kt=Ut.createRange();if(Kt.getBoundingClientRect){var Qt=Ut.createElement("boundtest");Qt.style.height=kt+"px",Qt.style.display="block",Ut.body.appendChild(Qt),Kt.selectNode(Qt);var Pe=Kt.getBoundingClientRect(),qe=Math.round(Pe.height);if(Ut.body.removeChild(Qt),qe===kt)return!0}}return!1},mh=function(Ut){var kt=Ut.createElement("boundtest");kt.style.width="50px",kt.style.display="block",kt.style.fontSize="12px",kt.style.letterSpacing="0px",kt.style.wordSpacing="0px",Ut.body.appendChild(kt);var Kt=Ut.createRange();kt.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var Qt=kt.firstChild,Pe=jt(Qt.data).map(function(On){return Xt(On)}),qe=0,Fn={},ti=Pe.every(function(On,Oi){Kt.setStart(Qt,qe),Kt.setEnd(Qt,qe+On.length);var Qi=Kt.getBoundingClientRect();qe+=On.length;var St=Qi.x>Fn.x||Qi.y>Fn.y;return Fn=Qi,Oi===0?!0:St});return Ut.body.removeChild(kt),ti},qu=function(){return typeof new Image().crossOrigin!="undefined"},Hd=function(){return typeof new XMLHttpRequest().responseType=="string"},ud=function(Ut){var kt=new Image,Kt=Ut.createElement("canvas"),Qt=Kt.getContext("2d");if(!Qt)return!1;kt.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{Qt.drawImage(kt,0,0),Kt.toDataURL()}catch(Pe){return!1}return!0},th=function(Ut){return Ut[0]===0&&Ut[1]===255&&Ut[2]===0&&Ut[3]===255},bd=function(Ut){var kt=Ut.createElement("canvas"),Kt=100;kt.width=Kt,kt.height=Kt;var Qt=kt.getContext("2d");if(!Qt)return Promise.reject(!1);Qt.fillStyle="rgb(0, 255, 0)",Qt.fillRect(0,0,Kt,Kt);var Pe=new Image,qe=kt.toDataURL();Pe.src=qe;var Fn=Ed(Kt,Kt,0,0,Pe);return Qt.fillStyle="red",Qt.fillRect(0,0,Kt,Kt),Qd(Fn).then(function(ti){Qt.drawImage(ti,0,0);var On=Qt.getImageData(0,0,Kt,Kt).data;Qt.fillStyle="red",Qt.fillRect(0,0,Kt,Kt);var Oi=Ut.createElement("div");return Oi.style.backgroundImage="url("+qe+")",Oi.style.height=Kt+"px",th(On)?Qd(Ed(Kt,Kt,0,0,Oi)):Promise.reject(!1)}).then(function(ti){return Qt.drawImage(ti,0,0),th(Qt.getImageData(0,0,Kt,Kt).data)}).catch(function(){return!1})},Ed=function(Ut,kt,Kt,Qt,Pe){var qe="http://www.w3.org/2000/svg",Fn=document.createElementNS(qe,"svg"),ti=document.createElementNS(qe,"foreignObject");return Fn.setAttributeNS(null,"width",Ut.toString()),Fn.setAttributeNS(null,"height",kt.toString()),ti.setAttributeNS(null,"width","100%"),ti.setAttributeNS(null,"height","100%"),ti.setAttributeNS(null,"x",Kt.toString()),ti.setAttributeNS(null,"y",Qt.toString()),ti.setAttributeNS(null,"externalResourcesRequired","true"),Fn.appendChild(ti),ti.appendChild(Pe),Fn},Qd=function(Ut){return new Promise(function(kt,Kt){var Qt=new Image;Qt.onload=function(){return kt(Qt)},Qt.onerror=Kt,Qt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ut))})},nu={get SUPPORT_RANGE_BOUNDS(){var Ut=Pd(document);return Object.defineProperty(nu,"SUPPORT_RANGE_BOUNDS",{value:Ut}),Ut},get SUPPORT_WORD_BREAKING(){var Ut=nu.SUPPORT_RANGE_BOUNDS&&mh(document);return Object.defineProperty(nu,"SUPPORT_WORD_BREAKING",{value:Ut}),Ut},get SUPPORT_SVG_DRAWING(){var Ut=ud(document);return Object.defineProperty(nu,"SUPPORT_SVG_DRAWING",{value:Ut}),Ut},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Ut=typeof Array.from=="function"&&typeof window.fetch=="function"?bd(document):Promise.resolve(!1);return Object.defineProperty(nu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Ut}),Ut},get SUPPORT_CORS_IMAGES(){var Ut=qu();return Object.defineProperty(nu,"SUPPORT_CORS_IMAGES",{value:Ut}),Ut},get SUPPORT_RESPONSE_TYPE(){var Ut=Hd();return Object.defineProperty(nu,"SUPPORT_RESPONSE_TYPE",{value:Ut}),Ut},get SUPPORT_CORS_XHR(){var Ut="withCredentials"in new XMLHttpRequest;return Object.defineProperty(nu,"SUPPORT_CORS_XHR",{value:Ut}),Ut},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Ut=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(nu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Ut}),Ut}},cu=function(){function Ut(kt,Kt){this.text=kt,this.bounds=Kt}return Ut}(),Mc=function(Ut,kt,Kt,Qt){var Pe=vh(kt,Kt),qe=[],Fn=0;return Pe.forEach(function(ti){if(Kt.textDecorationLine.length||ti.trim().length>0)if(nu.SUPPORT_RANGE_BOUNDS){var On=xa(Qt,Fn,ti.length).getClientRects();if(On.length>1){var Oi=hl(ti),Qi=0;Oi.forEach(function(_t){qe.push(new cu(_t,ee.fromDOMRectList(Ut,xa(Qt,Qi+Fn,_t.length).getClientRects()))),Qi+=_t.length})}else qe.push(new cu(ti,ee.fromDOMRectList(Ut,On)))}else{var St=Qt.splitText(ti.length);qe.push(new cu(ti,du(Ut,Qt))),Qt=St}else nu.SUPPORT_RANGE_BOUNDS||(Qt=Qt.splitText(ti.length));Fn+=ti.length}),qe},du=function(Ut,kt){var Kt=kt.ownerDocument;if(Kt){var Qt=Kt.createElement("html2canvaswrapper");Qt.appendChild(kt.cloneNode(!0));var Pe=kt.parentNode;if(Pe){Pe.replaceChild(Qt,kt);var qe=Yt(Ut,Qt);return Qt.firstChild&&Pe.replaceChild(Qt.firstChild,Qt),qe}}return ee.EMPTY},xa=function(Ut,kt,Kt){var Qt=Ut.ownerDocument;if(!Qt)throw new Error("Node has no owner document");var Pe=Qt.createRange();return Pe.setStart(Ut,kt),Pe.setEnd(Ut,kt+Kt),Pe},hl=function(Ut){if(nu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var kt=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(kt.segment(Ut)).map(function(Kt){return Kt.segment})}return Xc(Ut)},Bu=function(Ut,kt){if(nu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Kt=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(Kt.segment(Ut)).map(function(Qt){return Qt.segment})}return zd(Ut,kt)},vh=function(Ut,kt){return kt.letterSpacing!==0?hl(Ut):Bu(Ut,kt)},yh=[32,160,4961,65792,65793,4153,4241],zd=function(Ut,kt){for(var Kt=ni(Ut,{lineBreak:kt.lineBreak,wordBreak:kt.overflowWrap==="break-word"?"break-word":kt.wordBreak}),Qt=[],Pe,qe=function(){if(Pe.value){var Fn=Pe.value.slice(),ti=jt(Fn),On="";ti.forEach(function(Oi){yh.indexOf(Oi)===-1?On+=Xt(Oi):(On.length&&Qt.push(On),Qt.push(Xt(Oi)),On="")}),On.length&&Qt.push(On)}};!(Pe=Kt.next()).done;)qe();return Qt},Nc=function(){function Ut(kt,Kt,Qt){this.text=Uh(Kt.data,Qt.textTransform),this.textBounds=Mc(kt,this.text,Qt,Kt)}return Ut}(),Uh=function(Ut,kt){switch(kt){case 1:return Ut.toLowerCase();case 3:return Ut.replace(Vu,Ic);case 2:return Ut.toUpperCase();default:return Ut}},Vu=/(^|\s|:|-|\(|\))([a-z])/g,Ic=function(Ut,kt,Kt){return Ut.length>0?kt+Kt.toUpperCase():Ut},Jc=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;return Pe.src=Qt.currentSrc||Qt.src,Pe.intrinsicWidth=Qt.naturalWidth,Pe.intrinsicHeight=Qt.naturalHeight,Pe.context.cache.addImage(Pe.src),Pe}return kt}(na),ic=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;return Pe.canvas=Qt,Pe.intrinsicWidth=Qt.width,Pe.intrinsicHeight=Qt.height,Pe}return kt}(na),Kd=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this,qe=new XMLSerializer,Fn=Yt(Kt,Qt);return Qt.setAttribute("width",Fn.width+"px"),Qt.setAttribute("height",Fn.height+"px"),Pe.svg="data:image/svg+xml,"+encodeURIComponent(qe.serializeToString(Qt)),Pe.intrinsicWidth=Qt.width.baseVal.value,Pe.intrinsicHeight=Qt.height.baseVal.value,Pe.context.cache.addImage(Pe.svg),Pe}return kt}(na),gc=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;return Pe.value=Qt.value,Pe}return kt}(na),FA=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;return Pe.start=Qt.start,Pe.reversed=typeof Qt.reversed=="boolean"&&Qt.reversed===!0,Pe}return kt}(na),uA=[{type:15,flags:0,unit:"px",number:3}],lf=[{type:16,flags:0,number:50}],rc=function(Ut){return Ut.width>Ut.height?new ee(Ut.left+(Ut.width-Ut.height)/2,Ut.top,Ut.height,Ut.height):Ut.width<Ut.height?new ee(Ut.left,Ut.top+(Ut.height-Ut.width)/2,Ut.width,Ut.width):Ut},QA=function(Ut){var kt=Ut.type===hd?new Array(Ut.value.length+1).join("\u2022"):Ut.value;return kt.length===0?Ut.placeholder||"":kt},Gd="checkbox",pc="radio",hd="password",hA=707406591,Rh=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;switch(Pe.type=Qt.type.toLowerCase(),Pe.checked=Qt.checked,Pe.value=QA(Qt),(Pe.type===Gd||Pe.type===pc)&&(Pe.styles.backgroundColor=3739148031,Pe.styles.borderTopColor=Pe.styles.borderRightColor=Pe.styles.borderBottomColor=Pe.styles.borderLeftColor=2779096575,Pe.styles.borderTopWidth=Pe.styles.borderRightWidth=Pe.styles.borderBottomWidth=Pe.styles.borderLeftWidth=1,Pe.styles.borderTopStyle=Pe.styles.borderRightStyle=Pe.styles.borderBottomStyle=Pe.styles.borderLeftStyle=1,Pe.styles.backgroundClip=[0],Pe.styles.backgroundOrigin=[0],Pe.bounds=rc(Pe.bounds)),Pe.type){case Gd:Pe.styles.borderTopRightRadius=Pe.styles.borderTopLeftRadius=Pe.styles.borderBottomRightRadius=Pe.styles.borderBottomLeftRadius=uA;break;case pc:Pe.styles.borderTopRightRadius=Pe.styles.borderTopLeftRadius=Pe.styles.borderBottomRightRadius=Pe.styles.borderBottomLeftRadius=lf;break}return Pe}return kt}(na),zA=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this,qe=Qt.options[Qt.selectedIndex||0];return Pe.value=qe&&qe.text||"",Pe}return kt}(na),Fd=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;return Pe.value=Qt.value,Pe}return kt}(na),Wd=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;Pe.src=Qt.src,Pe.width=parseInt(Qt.width,10)||0,Pe.height=parseInt(Qt.height,10)||0,Pe.backgroundColor=Pe.styles.backgroundColor;try{if(Qt.contentWindow&&Qt.contentWindow.document&&Qt.contentWindow.document.documentElement){Pe.tree=Ae(Kt,Qt.contentWindow.document.documentElement);var qe=Qt.contentWindow.document.documentElement?od(Kt,getComputedStyle(Qt.contentWindow.document.documentElement).backgroundColor):Ah.TRANSPARENT,Fn=Qt.contentWindow.document.body?od(Kt,getComputedStyle(Qt.contentWindow.document.body).backgroundColor):Ah.TRANSPARENT;Pe.backgroundColor=Wa(qe)?Wa(Fn)?Pe.styles.backgroundColor:Fn:qe}}catch(ti){}return Pe}return kt}(na),LA=["OL","UL","MENU"],Tc=function(Ut,kt,Kt,Qt){for(var Pe=kt.firstChild,qe=void 0;Pe;Pe=qe)if(qe=Pe.nextSibling,Ri(Pe)&&Pe.data.trim().length>0)Kt.textNodes.push(new Nc(Ut,Pe,Kt.styles));else if(ur(Pe))if(cA(Pe)&&Pe.assignedNodes)Pe.assignedNodes().forEach(function(ti){return Tc(Ut,ti,Kt,Qt)});else{var Fn=KA(Ut,Pe);Fn.styles.isVisible()&&(yn(Pe,Fn,Qt)?Fn.flags|=4:mi(Fn.styles)&&(Fn.flags|=2),LA.indexOf(Pe.tagName)!==-1&&(Fn.flags|=8),Kt.elements.push(Fn),Pe.slot,Pe.shadowRoot?Tc(Ut,Pe.shadowRoot,Fn,Qt):!oc(Pe)&&!Cl(Pe)&&!Vd(Pe)&&Tc(Ut,Pe,Fn,Qt))}},KA=function(Ut,kt){return Al(kt)?new Jc(Ut,kt):Au(kt)?new ic(Ut,kt):Cl(kt)?new Kd(Ut,kt):ps(kt)?new gc(Ut,kt):Ws(kt)?new FA(Ut,kt):_a(kt)?new Rh(Ut,kt):Vd(kt)?new zA(Ut,kt):oc(kt)?new Fd(Ut,kt):Il(kt)?new Wd(Ut,kt):new na(Ut,kt)},Ae=function(Ut,kt){var Kt=KA(Ut,kt);return Kt.flags|=4,Tc(Ut,kt,Kt,Kt),Kt},yn=function(Ut,kt,Kt){return kt.styles.isPositionedWithZIndex()||kt.styles.opacity<1||kt.styles.isTransformed()||Us(Ut)&&Kt.styles.isTransparent()},mi=function(Ut){return Ut.isPositioned()||Ut.isFloating()},Ri=function(Ut){return Ut.nodeType===Node.TEXT_NODE},ur=function(Ut){return Ut.nodeType===Node.ELEMENT_NODE},Qr=function(Ut){return ur(Ut)&&typeof Ut.style!="undefined"&&!vo(Ut)},vo=function(Ut){return typeof Ut.className=="object"},ps=function(Ut){return Ut.tagName==="LI"},Ws=function(Ut){return Ut.tagName==="OL"},_a=function(Ut){return Ut.tagName==="INPUT"},ba=function(Ut){return Ut.tagName==="HTML"},Cl=function(Ut){return Ut.tagName==="svg"},Us=function(Ut){return Ut.tagName==="BODY"},Au=function(Ut){return Ut.tagName==="CANVAS"},yu=function(Ut){return Ut.tagName==="VIDEO"},Al=function(Ut){return Ut.tagName==="IMG"},Il=function(Ut){return Ut.tagName==="IFRAME"},wh=function(Ut){return Ut.tagName==="STYLE"},Eh=function(Ut){return Ut.tagName==="SCRIPT"},oc=function(Ut){return Ut.tagName==="TEXTAREA"},Vd=function(Ut){return Ut.tagName==="SELECT"},cA=function(Ut){return Ut.tagName==="SLOT"},dA=function(Ut){return Ut.tagName.indexOf("-")>0},AA=function(){function Ut(){this.counters={}}return Ut.prototype.getCounterValue=function(kt){var Kt=this.counters[kt];return Kt&&Kt.length?Kt[Kt.length-1]:1},Ut.prototype.getCounterValues=function(kt){var Kt=this.counters[kt];return Kt||[]},Ut.prototype.pop=function(kt){var Kt=this;kt.forEach(function(Qt){return Kt.counters[Qt].pop()})},Ut.prototype.parse=function(kt){var Kt=this,Qt=kt.counterIncrement,Pe=kt.counterReset,qe=!0;Qt!==null&&Qt.forEach(function(ti){var On=Kt.counters[ti.counter];On&&ti.increment!==0&&(qe=!1,On.length||On.push(1),On[Math.max(0,On.length-1)]+=ti.increment)});var Fn=[];return qe&&Pe.forEach(function(ti){var On=Kt.counters[ti.counter];Fn.push(ti.counter),On||(On=Kt.counters[ti.counter]=[]),On.push(ti.reset)}),Fn},Ut}(),kc={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"]},Ld={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"]},Oc={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"]},Sa={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"]},mc=function(Ut,kt,Kt,Qt,Pe,qe){return Ut<kt||Ut>Kt?vt(Ut,Pe,qe.length>0):Qt.integers.reduce(function(Fn,ti,On){for(;Ut>=ti;)Ut-=ti,Fn+=Qt.values[On];return Fn},"")+qe},Zd=function(Ut,kt,Kt,Qt){var Pe="";do Kt||Ut--,Pe=Qt(Ut)+Pe,Ut/=kt;while(Ut*kt>=kt);return Pe},Jl=function(Ut,kt,Kt,Qt,Pe){var qe=Kt-kt+1;return(Ut<0?"-":"")+(Zd(Math.abs(Ut),qe,Qt,function(Fn){return Xt(Math.floor(Fn%qe)+kt)})+Pe)},_h=function(Ut,kt,Kt){Kt===void 0&&(Kt=". ");var Qt=kt.length;return Zd(Math.abs(Ut),Qt,!1,function(Pe){return kt[Math.floor(Pe%Qt)]})+Kt},_u=1,cd=2,Rl=4,Yd=8,Eu=function(Ut,kt,Kt,Qt,Pe,qe){if(Ut<-9999||Ut>9999)return vt(Ut,4,Pe.length>0);var Fn=Math.abs(Ut),ti=Pe;if(Fn===0)return kt[0]+ti;for(var On=0;Fn>0&&On<=4;On++){var Oi=Fn%10;Oi===0&&Po(qe,_u)&&ti!==""?ti=kt[Oi]+ti:Oi>1||Oi===1&&On===0||Oi===1&&On===1&&Po(qe,cd)||Oi===1&&On===1&&Po(qe,Rl)&&Ut>100||Oi===1&&On>1&&Po(qe,Yd)?ti=kt[Oi]+(On>0?Kt[On-1]:"")+ti:Oi===1&&On>0&&(ti=Kt[On-1]+ti),Fn=Math.floor(Fn/10)}return(Ut<0?Qt:"")+ti},sc="\u5341\u767E\u5343\u842C",$d="\u62FE\u4F70\u4EDF\u842C",it="\u30DE\u30A4\u30CA\u30B9",st="\uB9C8\uC774\uB108\uC2A4",vt=function(Ut,kt,Kt){var Qt=Kt?". ":"",Pe=Kt?"\u3001":"",qe=Kt?", ":"",Fn=Kt?" ":"";switch(kt){case 0:return"\u2022"+Fn;case 1:return"\u25E6"+Fn;case 2:return"\u25FE"+Fn;case 5:var ti=Jl(Ut,48,57,!0,Qt);return ti.length<4?"0"+ti:ti;case 4:return _h(Ut,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Pe);case 6:return mc(Ut,1,3999,kc,3,Qt).toLowerCase();case 7:return mc(Ut,1,3999,kc,3,Qt);case 8:return Jl(Ut,945,969,!1,Qt);case 9:return Jl(Ut,97,122,!1,Qt);case 10:return Jl(Ut,65,90,!1,Qt);case 11:return Jl(Ut,1632,1641,!0,Qt);case 12:case 49:return mc(Ut,1,9999,Ld,3,Qt);case 35:return mc(Ut,1,9999,Ld,3,Qt).toLowerCase();case 13:return Jl(Ut,2534,2543,!0,Qt);case 14:case 30:return Jl(Ut,6112,6121,!0,Qt);case 15:return _h(Ut,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Pe);case 16:return _h(Ut,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Pe);case 17:case 48:return Eu(Ut,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",sc,"\u8CA0",Pe,cd|Rl|Yd);case 47:return Eu(Ut,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",$d,"\u8CA0",Pe,_u|cd|Rl|Yd);case 42:return Eu(Ut,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",sc,"\u8D1F",Pe,cd|Rl|Yd);case 41:return Eu(Ut,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",$d,"\u8D1F",Pe,_u|cd|Rl|Yd);case 26:return Eu(Ut,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",it,Pe,0);case 25:return Eu(Ut,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",it,Pe,_u|cd|Rl);case 31:return Eu(Ut,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",st,qe,_u|cd|Rl);case 33:return Eu(Ut,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",st,qe,0);case 32:return Eu(Ut,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",st,qe,_u|cd|Rl);case 18:return Jl(Ut,2406,2415,!0,Qt);case 20:return mc(Ut,1,19999,Sa,3,Qt);case 21:return Jl(Ut,2790,2799,!0,Qt);case 22:return Jl(Ut,2662,2671,!0,Qt);case 22:return mc(Ut,1,10999,Oc,3,Qt);case 23:return _h(Ut,"\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 _h(Ut,"\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 Jl(Ut,3302,3311,!0,Qt);case 28:return _h(Ut,"\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",Pe);case 29:return _h(Ut,"\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",Pe);case 34:return Jl(Ut,3792,3801,!0,Qt);case 37:return Jl(Ut,6160,6169,!0,Qt);case 38:return Jl(Ut,4160,4169,!0,Qt);case 39:return Jl(Ut,2918,2927,!0,Qt);case 40:return Jl(Ut,1776,1785,!0,Qt);case 43:return Jl(Ut,3046,3055,!0,Qt);case 44:return Jl(Ut,3174,3183,!0,Qt);case 45:return Jl(Ut,3664,3673,!0,Qt);case 46:return Jl(Ut,3872,3881,!0,Qt);case 3:default:return Jl(Ut,48,57,!0,Qt)}},gt="data-html2canvas-ignore",Bt=function(){function Ut(kt,Kt,Qt){if(this.context=kt,this.options=Qt,this.scrolledElements=[],this.referenceElement=Kt,this.counters=new AA,this.quoteDepth=0,!Kt.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Kt.ownerDocument.documentElement,!1)}return Ut.prototype.toIFrame=function(kt,Kt){var Qt=this,Pe=xe(kt,Kt);if(!Pe.contentWindow)return Promise.reject("Unable to find iframe window");var qe=kt.defaultView.pageXOffset,Fn=kt.defaultView.pageYOffset,ti=Pe.contentWindow,On=ti.document,Oi=an(Pe).then(function(){return ce(Qt,void 0,void 0,function(){var Qi,St;return re(this,function(_t){switch(_t.label){case 0:return this.scrolledElements.forEach(Mr),ti&&(ti.scrollTo(Kt.left,Kt.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ti.scrollY!==Kt.top||ti.scrollX!==Kt.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ti.scrollX-Kt.left,ti.scrollY-Kt.top,0,0))),Qi=this.options.onclone,St=this.clonedReferenceElement,typeof St=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:On.fonts&&On.fonts.ready?[4,On.fonts.ready]:[3,2];case 1:_t.sent(),_t.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,De(On)]:[3,4];case 3:_t.sent(),_t.label=4;case 4:return typeof Qi=="function"?[2,Promise.resolve().then(function(){return Qi(On,St)}).then(function(){return Pe})]:[2,Pe]}})})});return On.open(),On.write(Mi(document.doctype)+"<html></html>"),bi(this.referenceElement.ownerDocument,qe,Fn),On.replaceChild(On.adoptNode(this.documentElement),On.documentElement),On.close(),Oi},Ut.prototype.createElementClone=function(kt){if(wa(kt,2))debugger;if(Au(kt))return this.createCanvasClone(kt);if(yu(kt))return this.createVideoClone(kt);if(wh(kt))return this.createStyleClone(kt);var Kt=kt.cloneNode(!1);return Al(Kt)&&(Al(kt)&&kt.currentSrc&&kt.currentSrc!==kt.src&&(Kt.src=kt.currentSrc,Kt.srcset=""),Kt.loading==="lazy"&&(Kt.loading="eager")),dA(Kt)?this.createCustomElementClone(Kt):Kt},Ut.prototype.createCustomElementClone=function(kt){var Kt=document.createElement("html2canvascustomelement");return xn(kt.style,Kt),Kt},Ut.prototype.createStyleClone=function(kt){try{var Kt=kt.sheet;if(Kt&&Kt.cssRules){var Qt=[].slice.call(Kt.cssRules,0).reduce(function(qe,Fn){return Fn&&typeof Fn.cssText=="string"?qe+Fn.cssText:qe},""),Pe=kt.cloneNode(!1);return Pe.textContent=Qt,Pe}}catch(qe){if(this.context.logger.error("Unable to access cssRules property",qe),qe.name!=="SecurityError")throw qe}return kt.cloneNode(!1)},Ut.prototype.createCanvasClone=function(kt){var Kt;if(this.options.inlineImages&&kt.ownerDocument){var Qt=kt.ownerDocument.createElement("img");try{return Qt.src=kt.toDataURL(),Qt}catch(Oi){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",kt)}}var Pe=kt.cloneNode(!1);try{Pe.width=kt.width,Pe.height=kt.height;var qe=kt.getContext("2d"),Fn=Pe.getContext("2d");if(Fn)if(!this.options.allowTaint&&qe)Fn.putImageData(qe.getImageData(0,0,kt.width,kt.height),0,0);else{var ti=(Kt=kt.getContext("webgl2"))!==null&&Kt!==void 0?Kt:kt.getContext("webgl");if(ti){var On=ti.getContextAttributes();(On==null?void 0:On.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",kt)}Fn.drawImage(kt,0,0)}return Pe}catch(Oi){this.context.logger.info("Unable to clone canvas as it is tainted",kt)}return Pe},Ut.prototype.createVideoClone=function(kt){var Kt=kt.ownerDocument.createElement("canvas");Kt.width=kt.offsetWidth,Kt.height=kt.offsetHeight;var Qt=Kt.getContext("2d");try{return Qt&&(Qt.drawImage(kt,0,0,Kt.width,Kt.height),this.options.allowTaint||Qt.getImageData(0,0,Kt.width,Kt.height)),Kt}catch(qe){this.context.logger.info("Unable to clone video as it is tainted",kt)}var Pe=kt.ownerDocument.createElement("canvas");return Pe.width=kt.offsetWidth,Pe.height=kt.offsetHeight,Pe},Ut.prototype.appendChildNode=function(kt,Kt,Qt){(!ur(Kt)||!Eh(Kt)&&!Kt.hasAttribute(gt)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Kt)))&&(!this.options.copyStyles||!ur(Kt)||!wh(Kt))&&kt.appendChild(this.cloneNode(Kt,Qt))},Ut.prototype.cloneChildNodes=function(kt,Kt,Qt){for(var Pe=this,qe=kt.shadowRoot?kt.shadowRoot.firstChild:kt.firstChild;qe;qe=qe.nextSibling)if(ur(qe)&&cA(qe)&&typeof qe.assignedNodes=="function"){var Fn=qe.assignedNodes();Fn.length&&Fn.forEach(function(ti){return Pe.appendChildNode(Kt,ti,Qt)})}else this.appendChildNode(Kt,qe,Qt)},Ut.prototype.cloneNode=function(kt,Kt){if(Ri(kt))return document.createTextNode(kt.data);if(!kt.ownerDocument)return kt.cloneNode(!1);var Qt=kt.ownerDocument.defaultView;if(Qt&&ur(kt)&&(Qr(kt)||vo(kt))){var Pe=this.createElementClone(kt);Pe.style.transitionProperty="none";var qe=Qt.getComputedStyle(kt),Fn=Qt.getComputedStyle(kt,":before"),ti=Qt.getComputedStyle(kt,":after");this.referenceElement===kt&&Qr(Pe)&&(this.clonedReferenceElement=Pe),Us(Pe)&&ss(Pe);var On=this.counters.parse(new yl(this.context,qe)),Oi=this.resolvePseudoContent(kt,Pe,Fn,te.BEFORE);dA(kt)&&(Kt=!0),yu(kt)||this.cloneChildNodes(kt,Pe,Kt),Oi&&Pe.insertBefore(Oi,Pe.firstChild);var Qi=this.resolvePseudoContent(kt,Pe,ti,te.AFTER);return Qi&&Pe.appendChild(Qi),this.counters.pop(On),(qe&&(this.options.copyStyles||vo(kt))&&!Il(kt)||Kt)&&xn(qe,Pe),(kt.scrollTop!==0||kt.scrollLeft!==0)&&this.scrolledElements.push([Pe,kt.scrollLeft,kt.scrollTop]),(oc(kt)||Vd(kt))&&(oc(Pe)||Vd(Pe))&&(Pe.value=kt.value),Pe}return kt.cloneNode(!1)},Ut.prototype.resolvePseudoContent=function(kt,Kt,Qt,Pe){var qe=this;if(Qt){var Fn=Qt.content,ti=Kt.ownerDocument;if(!(!ti||!Fn||Fn==="none"||Fn==="-moz-alt-content"||Qt.display==="none")){this.counters.parse(new yl(this.context,Qt));var On=new fa(this.context,Qt),Oi=ti.createElement("html2canvaspseudoelement");xn(Qt,Oi),On.content.forEach(function(St){if(St.type===0)Oi.appendChild(ti.createTextNode(St.value));else if(St.type===22){var _t=ti.createElement("img");_t.src=St.value,_t.style.opacity="1",Oi.appendChild(_t)}else if(St.type===18){if(St.name==="attr"){var fe=St.values.filter(va);fe.length&&Oi.appendChild(ti.createTextNode(kt.getAttribute(fe[0].value)||""))}else if(St.name==="counter"){var Ee=St.values.filter(Ml),$e=Ee[0],mn=Ee[1];if($e&&va($e)){var cn=qe.counters.getCounterValue($e.value),Sn=mn&&va(mn)?ln.parse(qe.context,mn.value):3;Oi.appendChild(ti.createTextNode(vt(cn,Sn,!1)))}}else if(St.name==="counters"){var Pn=St.values.filter(Ml),$e=Pn[0],zn=Pn[1],mn=Pn[2];if($e&&va($e)){var Bi=qe.counters.getCounterValues($e.value),Ni=mn&&va(mn)?ln.parse(qe.context,mn.value):3,tr=zn&&zn.type===0?zn.value:"",Ui=Bi.map(function(ji){return vt(ji,Ni,!1)}).join(tr);Oi.appendChild(ti.createTextNode(Ui))}}}else if(St.type===20)switch(St.value){case"open-quote":Oi.appendChild(ti.createTextNode(Ls(On.quotes,qe.quoteDepth++,!0)));break;case"close-quote":Oi.appendChild(ti.createTextNode(Ls(On.quotes,--qe.quoteDepth,!1)));break;default:Oi.appendChild(ti.createTextNode(St.value))}}),Oi.className=Co+" "+$o;var Qi=Pe===te.BEFORE?" "+Co:" "+$o;return vo(Kt)?Kt.className.baseValue+=Qi:Kt.className+=Qi,Oi}}},Ut.destroy=function(kt){return kt.parentNode?(kt.parentNode.removeChild(kt),!0):!1},Ut}(),te;(function(Ut){Ut[Ut.BEFORE=0]="BEFORE",Ut[Ut.AFTER=1]="AFTER"})(te||(te={}));var xe=function(Ut,kt){var Kt=Ut.createElement("iframe");return Kt.className="html2canvas-container",Kt.style.visibility="hidden",Kt.style.position="fixed",Kt.style.left="-10000px",Kt.style.top="0px",Kt.style.border="0",Kt.width=kt.width.toString(),Kt.height=kt.height.toString(),Kt.scrolling="no",Kt.setAttribute(gt,"true"),Ut.body.appendChild(Kt),Kt},je=function(Ut){return new Promise(function(kt){if(Ut.complete){kt();return}if(!Ut.src){kt();return}Ut.onload=kt,Ut.onerror=kt})},De=function(Ut){return Promise.all([].slice.call(Ut.images,0).map(je))},an=function(Ut){return new Promise(function(kt,Kt){var Qt=Ut.contentWindow;if(!Qt)return Kt("No window assigned for iframe");var Pe=Qt.document;Qt.onload=Ut.onload=function(){Qt.onload=Ut.onload=null;var qe=setInterval(function(){Pe.body.childNodes.length>0&&Pe.readyState==="complete"&&(clearInterval(qe),kt(Ut))},50)}})},Zn=["all","d","content"],xn=function(Ut,kt){for(var Kt=Ut.length-1;Kt>=0;Kt--){var Qt=Ut.item(Kt);Zn.indexOf(Qt)===-1&&kt.style.setProperty(Qt,Ut.getPropertyValue(Qt))}return kt},Mi=function(Ut){var kt="";return Ut&&(kt+="<!DOCTYPE ",Ut.name&&(kt+=Ut.name),Ut.internalSubset&&(kt+=Ut.internalSubset),Ut.publicId&&(kt+='"'+Ut.publicId+'"'),Ut.systemId&&(kt+='"'+Ut.systemId+'"'),kt+=">"),kt},bi=function(Ut,kt,Kt){Ut&&Ut.defaultView&&(kt!==Ut.defaultView.pageXOffset||Kt!==Ut.defaultView.pageYOffset)&&Ut.defaultView.scrollTo(kt,Kt)},Mr=function(Ut){var kt=Ut[0],Kt=Ut[1],Qt=Ut[2];kt.scrollLeft=Kt,kt.scrollTop=Qt},jr=":before",qr=":after",Co="___html2canvas___pseudoelement_before",$o="___html2canvas___pseudoelement_after",Oo=`{
content: "" !important;
display: none !important;
}`,ss=function(Ut){Ds(Ut,"."+Co+jr+Oo+`
.`+$o+qr+Oo)},Ds=function(Ut,kt){var Kt=Ut.ownerDocument;if(Kt){var Qt=Kt.createElement("style");Qt.textContent=kt,Ut.appendChild(Qt)}},Do=function(){function Ut(){}return Ut.getOrigin=function(kt){var Kt=Ut._link;return Kt?(Kt.href=kt,Kt.href=Kt.href,Kt.protocol+Kt.hostname+Kt.port):"about:blank"},Ut.isSameOrigin=function(kt){return Ut.getOrigin(kt)===Ut._origin},Ut.setContext=function(kt){Ut._link=kt.document.createElement("a"),Ut._origin=Ut.getOrigin(kt.location.href)},Ut._origin="about:blank",Ut}(),Js=function(){function Ut(kt,Kt){this.context=kt,this._options=Kt,this._cache={}}return Ut.prototype.addImage=function(kt){var Kt=Promise.resolve();return this.has(kt)||(El(kt)||Ja(kt))&&(this._cache[kt]=this.loadImage(kt)).catch(function(){}),Kt},Ut.prototype.match=function(kt){return this._cache[kt]},Ut.prototype.loadImage=function(kt){return ce(this,void 0,void 0,function(){var Kt,Qt,Pe,qe,Fn=this;return re(this,function(ti){switch(ti.label){case 0:return Kt=Do.isSameOrigin(kt),Qt=!Ua(kt)&&this._options.useCORS===!0&&nu.SUPPORT_CORS_IMAGES&&!Kt,Pe=!Ua(kt)&&!Kt&&!El(kt)&&typeof this._options.proxy=="string"&&nu.SUPPORT_CORS_XHR&&!Qt,!Kt&&this._options.allowTaint===!1&&!Ua(kt)&&!El(kt)&&!Pe&&!Qt?[2]:(qe=kt,Pe?[4,this.proxy(qe)]:[3,2]);case 1:qe=ti.sent(),ti.label=2;case 2:return this.context.logger.debug("Added image "+kt.substring(0,256)),[4,new Promise(function(On,Oi){var Qi=new Image;Qi.onload=function(){return On(Qi)},Qi.onerror=Oi,(Za(qe)||Qt)&&(Qi.crossOrigin="anonymous"),Qi.src=qe,Qi.complete===!0&&setTimeout(function(){return On(Qi)},500),Fn._options.imageTimeout>0&&setTimeout(function(){return Oi("Timed out ("+Fn._options.imageTimeout+"ms) loading image")},Fn._options.imageTimeout)})];case 3:return[2,ti.sent()]}})})},Ut.prototype.has=function(kt){return typeof this._cache[kt]!="undefined"},Ut.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Ut.prototype.proxy=function(kt){var Kt=this,Qt=this._options.proxy;if(!Qt)throw new Error("No proxy defined");var Pe=kt.substring(0,256);return new Promise(function(qe,Fn){var ti=nu.SUPPORT_RESPONSE_TYPE?"blob":"text",On=new XMLHttpRequest;On.onload=function(){if(On.status===200)if(ti==="text")qe(On.response);else{var St=new FileReader;St.addEventListener("load",function(){return qe(St.result)},!1),St.addEventListener("error",function(_t){return Fn(_t)},!1),St.readAsDataURL(On.response)}else Fn("Failed to proxy resource "+Pe+" with status code "+On.status)},On.onerror=Fn;var Oi=Qt.indexOf("?")>-1?"&":"?";if(On.open("GET",""+Qt+Oi+"url="+encodeURIComponent(kt)+"&responseType="+ti),ti!=="text"&&On instanceof XMLHttpRequest&&(On.responseType=ti),Kt._options.imageTimeout){var Qi=Kt._options.imageTimeout;On.timeout=Qi,On.ontimeout=function(){return Fn("Timed out ("+Qi+"ms) proxying "+Pe)}}On.send()})},Ut}(),_l=/^data:image\/svg\+xml/i,$l=/^data:image\/.*;base64,/i,fl=/^data:image\/.*/i,Ja=function(Ut){return nu.SUPPORT_SVG_DRAWING||!wu(Ut)},Ua=function(Ut){return fl.test(Ut)},Za=function(Ut){return $l.test(Ut)},El=function(Ut){return Ut.substr(0,4)==="blob"},wu=function(Ut){return Ut.substr(-3).toLowerCase()==="svg"||_l.test(Ut)},Uo=function(){function Ut(kt,Kt){this.type=0,this.x=kt,this.y=Kt}return Ut.prototype.add=function(kt,Kt){return new Ut(this.x+kt,this.y+Kt)},Ut}(),Ca=function(Ut,kt,Kt){return new Uo(Ut.x+(kt.x-Ut.x)*Kt,Ut.y+(kt.y-Ut.y)*Kt)},Xl=function(){function Ut(kt,Kt,Qt,Pe){this.type=1,this.start=kt,this.startControl=Kt,this.endControl=Qt,this.end=Pe}return Ut.prototype.subdivide=function(kt,Kt){var Qt=Ca(this.start,this.startControl,kt),Pe=Ca(this.startControl,this.endControl,kt),qe=Ca(this.endControl,this.end,kt),Fn=Ca(Qt,Pe,kt),ti=Ca(Pe,qe,kt),On=Ca(Fn,ti,kt);return Kt?new Ut(this.start,Qt,Fn,On):new Ut(On,ti,qe,this.end)},Ut.prototype.add=function(kt,Kt){return new Ut(this.start.add(kt,Kt),this.startControl.add(kt,Kt),this.endControl.add(kt,Kt),this.end.add(kt,Kt))},Ut.prototype.reverse=function(){return new Ut(this.end,this.endControl,this.startControl,this.start)},Ut}(),Hl=function(Ut){return Ut.type===1},Zu=function(){function Ut(kt){var Kt=kt.styles,Qt=kt.bounds,Pe=dh(Kt.borderTopLeftRadius,Qt.width,Qt.height),qe=Pe[0],Fn=Pe[1],ti=dh(Kt.borderTopRightRadius,Qt.width,Qt.height),On=ti[0],Oi=ti[1],Qi=dh(Kt.borderBottomRightRadius,Qt.width,Qt.height),St=Qi[0],_t=Qi[1],fe=dh(Kt.borderBottomLeftRadius,Qt.width,Qt.height),Ee=fe[0],$e=fe[1],mn=[];mn.push((qe+On)/Qt.width),mn.push((Ee+St)/Qt.width),mn.push((Fn+$e)/Qt.height),mn.push((Oi+_t)/Qt.height);var cn=Math.max.apply(Math,mn);cn>1&&(qe/=cn,Fn/=cn,On/=cn,Oi/=cn,St/=cn,_t/=cn,Ee/=cn,$e/=cn);var Sn=Qt.width-On,Pn=Qt.height-_t,zn=Qt.width-St,Bi=Qt.height-$e,Ni=Kt.borderTopWidth,tr=Kt.borderRightWidth,Ui=Kt.borderBottomWidth,Pr=Kt.borderLeftWidth,Lr=Ga(Kt.paddingTop,kt.bounds.width),ji=Ga(Kt.paddingRight,kt.bounds.width),Ki=Ga(Kt.paddingBottom,kt.bounds.width),Dr=Ga(Kt.paddingLeft,kt.bounds.width);this.topLeftBorderDoubleOuterBox=qe>0||Fn>0?zs(Qt.left+Pr/3,Qt.top+Ni/3,qe-Pr/3,Fn-Ni/3,aa.TOP_LEFT):new Uo(Qt.left+Pr/3,Qt.top+Ni/3),this.topRightBorderDoubleOuterBox=qe>0||Fn>0?zs(Qt.left+Sn,Qt.top+Ni/3,On-tr/3,Oi-Ni/3,aa.TOP_RIGHT):new Uo(Qt.left+Qt.width-tr/3,Qt.top+Ni/3),this.bottomRightBorderDoubleOuterBox=St>0||_t>0?zs(Qt.left+zn,Qt.top+Pn,St-tr/3,_t-Ui/3,aa.BOTTOM_RIGHT):new Uo(Qt.left+Qt.width-tr/3,Qt.top+Qt.height-Ui/3),this.bottomLeftBorderDoubleOuterBox=Ee>0||$e>0?zs(Qt.left+Pr/3,Qt.top+Bi,Ee-Pr/3,$e-Ui/3,aa.BOTTOM_LEFT):new Uo(Qt.left+Pr/3,Qt.top+Qt.height-Ui/3),this.topLeftBorderDoubleInnerBox=qe>0||Fn>0?zs(Qt.left+Pr*2/3,Qt.top+Ni*2/3,qe-Pr*2/3,Fn-Ni*2/3,aa.TOP_LEFT):new Uo(Qt.left+Pr*2/3,Qt.top+Ni*2/3),this.topRightBorderDoubleInnerBox=qe>0||Fn>0?zs(Qt.left+Sn,Qt.top+Ni*2/3,On-tr*2/3,Oi-Ni*2/3,aa.TOP_RIGHT):new Uo(Qt.left+Qt.width-tr*2/3,Qt.top+Ni*2/3),this.bottomRightBorderDoubleInnerBox=St>0||_t>0?zs(Qt.left+zn,Qt.top+Pn,St-tr*2/3,_t-Ui*2/3,aa.BOTTOM_RIGHT):new Uo(Qt.left+Qt.width-tr*2/3,Qt.top+Qt.height-Ui*2/3),this.bottomLeftBorderDoubleInnerBox=Ee>0||$e>0?zs(Qt.left+Pr*2/3,Qt.top+Bi,Ee-Pr*2/3,$e-Ui*2/3,aa.BOTTOM_LEFT):new Uo(Qt.left+Pr*2/3,Qt.top+Qt.height-Ui*2/3),this.topLeftBorderStroke=qe>0||Fn>0?zs(Qt.left+Pr/2,Qt.top+Ni/2,qe-Pr/2,Fn-Ni/2,aa.TOP_LEFT):new Uo(Qt.left+Pr/2,Qt.top+Ni/2),this.topRightBorderStroke=qe>0||Fn>0?zs(Qt.left+Sn,Qt.top+Ni/2,On-tr/2,Oi-Ni/2,aa.TOP_RIGHT):new Uo(Qt.left+Qt.width-tr/2,Qt.top+Ni/2),this.bottomRightBorderStroke=St>0||_t>0?zs(Qt.left+zn,Qt.top+Pn,St-tr/2,_t-Ui/2,aa.BOTTOM_RIGHT):new Uo(Qt.left+Qt.width-tr/2,Qt.top+Qt.height-Ui/2),this.bottomLeftBorderStroke=Ee>0||$e>0?zs(Qt.left+Pr/2,Qt.top+Bi,Ee-Pr/2,$e-Ui/2,aa.BOTTOM_LEFT):new Uo(Qt.left+Pr/2,Qt.top+Qt.height-Ui/2),this.topLeftBorderBox=qe>0||Fn>0?zs(Qt.left,Qt.top,qe,Fn,aa.TOP_LEFT):new Uo(Qt.left,Qt.top),this.topRightBorderBox=On>0||Oi>0?zs(Qt.left+Sn,Qt.top,On,Oi,aa.TOP_RIGHT):new Uo(Qt.left+Qt.width,Qt.top),this.bottomRightBorderBox=St>0||_t>0?zs(Qt.left+zn,Qt.top+Pn,St,_t,aa.BOTTOM_RIGHT):new Uo(Qt.left+Qt.width,Qt.top+Qt.height),this.bottomLeftBorderBox=Ee>0||$e>0?zs(Qt.left,Qt.top+Bi,Ee,$e,aa.BOTTOM_LEFT):new Uo(Qt.left,Qt.top+Qt.height),this.topLeftPaddingBox=qe>0||Fn>0?zs(Qt.left+Pr,Qt.top+Ni,Math.max(0,qe-Pr),Math.max(0,Fn-Ni),aa.TOP_LEFT):new Uo(Qt.left+Pr,Qt.top+Ni),this.topRightPaddingBox=On>0||Oi>0?zs(Qt.left+Math.min(Sn,Qt.width-tr),Qt.top+Ni,Sn>Qt.width+tr?0:Math.max(0,On-tr),Math.max(0,Oi-Ni),aa.TOP_RIGHT):new Uo(Qt.left+Qt.width-tr,Qt.top+Ni),this.bottomRightPaddingBox=St>0||_t>0?zs(Qt.left+Math.min(zn,Qt.width-Pr),Qt.top+Math.min(Pn,Qt.height-Ui),Math.max(0,St-tr),Math.max(0,_t-Ui),aa.BOTTOM_RIGHT):new Uo(Qt.left+Qt.width-tr,Qt.top+Qt.height-Ui),this.bottomLeftPaddingBox=Ee>0||$e>0?zs(Qt.left+Pr,Qt.top+Math.min(Bi,Qt.height-Ui),Math.max(0,Ee-Pr),Math.max(0,$e-Ui),aa.BOTTOM_LEFT):new Uo(Qt.left+Pr,Qt.top+Qt.height-Ui),this.topLeftContentBox=qe>0||Fn>0?zs(Qt.left+Pr+Dr,Qt.top+Ni+Lr,Math.max(0,qe-(Pr+Dr)),Math.max(0,Fn-(Ni+Lr)),aa.TOP_LEFT):new Uo(Qt.left+Pr+Dr,Qt.top+Ni+Lr),this.topRightContentBox=On>0||Oi>0?zs(Qt.left+Math.min(Sn,Qt.width+Pr+Dr),Qt.top+Ni+Lr,Sn>Qt.width+Pr+Dr?0:On-Pr+Dr,Oi-(Ni+Lr),aa.TOP_RIGHT):new Uo(Qt.left+Qt.width-(tr+ji),Qt.top+Ni+Lr),this.bottomRightContentBox=St>0||_t>0?zs(Qt.left+Math.min(zn,Qt.width-(Pr+Dr)),Qt.top+Math.min(Pn,Qt.height+Ni+Lr),Math.max(0,St-(tr+ji)),_t-(Ui+Ki),aa.BOTTOM_RIGHT):new Uo(Qt.left+Qt.width-(tr+ji),Qt.top+Qt.height-(Ui+Ki)),this.bottomLeftContentBox=Ee>0||$e>0?zs(Qt.left+Pr+Dr,Qt.top+Bi,Math.max(0,Ee-(Pr+Dr)),$e-(Ui+Ki),aa.BOTTOM_LEFT):new Uo(Qt.left+Pr+Dr,Qt.top+Qt.height-(Ui+Ki))}return Ut}(),aa;(function(Ut){Ut[Ut.TOP_LEFT=0]="TOP_LEFT",Ut[Ut.TOP_RIGHT=1]="TOP_RIGHT",Ut[Ut.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Ut[Ut.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(aa||(aa={}));var zs=function(Ut,kt,Kt,Qt,Pe){var qe=4*((Math.sqrt(2)-1)/3),Fn=Kt*qe,ti=Qt*qe,On=Ut+Kt,Oi=kt+Qt;switch(Pe){case aa.TOP_LEFT:return new Xl(new Uo(Ut,Oi),new Uo(Ut,Oi-ti),new Uo(On-Fn,kt),new Uo(On,kt));case aa.TOP_RIGHT:return new Xl(new Uo(Ut,kt),new Uo(Ut+Fn,kt),new Uo(On,Oi-ti),new Uo(On,Oi));case aa.BOTTOM_RIGHT:return new Xl(new Uo(On,kt),new Uo(On,kt+ti),new Uo(Ut+Fn,Oi),new Uo(Ut,Oi));case aa.BOTTOM_LEFT:default:return new Xl(new Uo(On,Oi),new Uo(On-Fn,Oi),new Uo(Ut,kt+ti),new Uo(Ut,kt))}},ch=function(Ut){return[Ut.topLeftBorderBox,Ut.topRightBorderBox,Ut.bottomRightBorderBox,Ut.bottomLeftBorderBox]},fu=function(Ut){return[Ut.topLeftContentBox,Ut.topRightContentBox,Ut.bottomRightContentBox,Ut.bottomLeftContentBox]},Xd=function(Ut){return[Ut.topLeftPaddingBox,Ut.topRightPaddingBox,Ut.bottomRightPaddingBox,Ut.bottomLeftPaddingBox]},Fh=function(){function Ut(kt,Kt,Qt){this.offsetX=kt,this.offsetY=Kt,this.matrix=Qt,this.type=0,this.target=6}return Ut}(),eh=function(){function Ut(kt,Kt){this.path=kt,this.target=Kt,this.type=1}return Ut}(),xh=function(){function Ut(kt){this.opacity=kt,this.type=2,this.target=6}return Ut}(),Ql=function(Ut){return Ut.type===0},Hu=function(Ut){return Ut.type===1},qc=function(Ut){return Ut.type===2},Md=function(Ut,kt){return Ut.length===kt.length?Ut.some(function(Kt,Qt){return Kt===kt[Qt]}):!1},Cg=function(Ut,kt,Kt,Qt,Pe){return Ut.map(function(qe,Fn){switch(Fn){case 0:return qe.add(kt,Kt);case 1:return qe.add(kt+Qt,Kt);case 2:return qe.add(kt+Qt,Kt+Pe);case 3:return qe.add(kt,Kt+Pe)}return qe})},Hh=function(){function Ut(kt){this.element=kt,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Ut}(),Bg=function(){function Ut(kt,Kt){if(this.container=kt,this.parent=Kt,this.effects=[],this.curves=new Zu(this.container),this.container.styles.opacity<1&&this.effects.push(new xh(this.container.styles.opacity)),this.container.styles.transform!==null){var Qt=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Pe=this.container.bounds.top+this.container.styles.transformOrigin[1].number,qe=this.container.styles.transform;this.effects.push(new Fh(Qt,Pe,qe))}if(this.container.styles.overflowX!==0){var Fn=ch(this.curves),ti=Xd(this.curves);Md(Fn,ti)?this.effects.push(new eh(Fn,6)):(this.effects.push(new eh(Fn,2)),this.effects.push(new eh(ti,4)))}}return Ut.prototype.getEffects=function(kt){for(var Kt=[2,3].indexOf(this.container.styles.position)===-1,Qt=this.parent,Pe=this.effects.slice(0);Qt;){var qe=Qt.effects.filter(function(On){return!Hu(On)});if(Kt||Qt.container.styles.position!==0||!Qt.parent){if(Pe.unshift.apply(Pe,qe),Kt=[2,3].indexOf(Qt.container.styles.position)===-1,Qt.container.styles.overflowX!==0){var Fn=ch(Qt.curves),ti=Xd(Qt.curves);Md(Fn,ti)||Pe.unshift(new eh(ti,6))}}else Pe.unshift.apply(Pe,qe);Qt=Qt.parent}return Pe.filter(function(On){return Po(On.target,kt)})},Ut}(),dd=function(Ut,kt,Kt,Qt){Ut.container.elements.forEach(function(Pe){var qe=Po(Pe.flags,4),Fn=Po(Pe.flags,2),ti=new Bg(Pe,Ut);Po(Pe.styles.display,2048)&&Qt.push(ti);var On=Po(Pe.flags,8)?[]:Qt;if(qe||Fn){var Oi=qe||Pe.styles.isPositioned()?Kt:kt,Qi=new Hh(ti);if(Pe.styles.isPositioned()||Pe.styles.opacity<1||Pe.styles.isTransformed()){var St=Pe.styles.zIndex.order;if(St<0){var _t=0;Oi.negativeZIndex.some(function(Ee,$e){return St>Ee.element.container.styles.zIndex.order?(_t=$e,!1):_t>0}),Oi.negativeZIndex.splice(_t,0,Qi)}else if(St>0){var fe=0;Oi.positiveZIndex.some(function(Ee,$e){return St>=Ee.element.container.styles.zIndex.order?(fe=$e+1,!1):fe>0}),Oi.positiveZIndex.splice(fe,0,Qi)}else Oi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Qi)}else Pe.styles.isFloating()?Oi.nonPositionedFloats.push(Qi):Oi.nonPositionedInlineLevel.push(Qi);dd(ti,Qi,qe?Qi:Kt,On)}else Pe.styles.isInlineLevel()?kt.inlineLevel.push(ti):kt.nonInlineLevel.push(ti),dd(ti,kt,Kt,On);Po(Pe.flags,8)&&Wf(Pe,On)})},Wf=function(Ut,kt){for(var Kt=Ut instanceof FA?Ut.start:1,Qt=Ut instanceof FA?Ut.reversed:!1,Pe=0;Pe<kt.length;Pe++){var qe=kt[Pe];qe.container instanceof gc&&typeof qe.container.value=="number"&&qe.container.value!==0&&(Kt=qe.container.value),qe.listValue=vt(Kt,qe.container.styles.listStyleType,!0),Kt+=Qt?-1:1}},yf=function(Ut){var kt=new Bg(Ut,null),Kt=new Hh(kt),Qt=[];return dd(kt,Kt,Kt,Qt),Wf(kt.container,Qt),Kt},GA=function(Ut,kt){switch(kt){case 0:return Pu(Ut.topLeftBorderBox,Ut.topLeftPaddingBox,Ut.topRightBorderBox,Ut.topRightPaddingBox);case 1:return Pu(Ut.topRightBorderBox,Ut.topRightPaddingBox,Ut.bottomRightBorderBox,Ut.bottomRightPaddingBox);case 2:return Pu(Ut.bottomRightBorderBox,Ut.bottomRightPaddingBox,Ut.bottomLeftBorderBox,Ut.bottomLeftPaddingBox);case 3:default:return Pu(Ut.bottomLeftBorderBox,Ut.bottomLeftPaddingBox,Ut.topLeftBorderBox,Ut.topLeftPaddingBox)}},MA=function(Ut,kt){switch(kt){case 0:return Pu(Ut.topLeftBorderBox,Ut.topLeftBorderDoubleOuterBox,Ut.topRightBorderBox,Ut.topRightBorderDoubleOuterBox);case 1:return Pu(Ut.topRightBorderBox,Ut.topRightBorderDoubleOuterBox,Ut.bottomRightBorderBox,Ut.bottomRightBorderDoubleOuterBox);case 2:return Pu(Ut.bottomRightBorderBox,Ut.bottomRightBorderDoubleOuterBox,Ut.bottomLeftBorderBox,Ut.bottomLeftBorderDoubleOuterBox);case 3:default:return Pu(Ut.bottomLeftBorderBox,Ut.bottomLeftBorderDoubleOuterBox,Ut.topLeftBorderBox,Ut.topLeftBorderDoubleOuterBox)}},Vf=function(Ut,kt){switch(kt){case 0:return Pu(Ut.topLeftBorderDoubleInnerBox,Ut.topLeftPaddingBox,Ut.topRightBorderDoubleInnerBox,Ut.topRightPaddingBox);case 1:return Pu(Ut.topRightBorderDoubleInnerBox,Ut.topRightPaddingBox,Ut.bottomRightBorderDoubleInnerBox,Ut.bottomRightPaddingBox);case 2:return Pu(Ut.bottomRightBorderDoubleInnerBox,Ut.bottomRightPaddingBox,Ut.bottomLeftBorderDoubleInnerBox,Ut.bottomLeftPaddingBox);case 3:default:return Pu(Ut.bottomLeftBorderDoubleInnerBox,Ut.bottomLeftPaddingBox,Ut.topLeftBorderDoubleInnerBox,Ut.topLeftPaddingBox)}},fA=function(Ut,kt){switch(kt){case 0:return Nd(Ut.topLeftBorderStroke,Ut.topRightBorderStroke);case 1:return Nd(Ut.topRightBorderStroke,Ut.bottomRightBorderStroke);case 2:return Nd(Ut.bottomRightBorderStroke,Ut.bottomLeftBorderStroke);case 3:default:return Nd(Ut.bottomLeftBorderStroke,Ut.topLeftBorderStroke)}},Nd=function(Ut,kt){var Kt=[];return Hl(Ut)?Kt.push(Ut.subdivide(.5,!1)):Kt.push(Ut),Hl(kt)?Kt.push(kt.subdivide(.5,!0)):Kt.push(kt),Kt},Pu=function(Ut,kt,Kt,Qt){var Pe=[];return Hl(Ut)?Pe.push(Ut.subdivide(.5,!1)):Pe.push(Ut),Hl(Kt)?Pe.push(Kt.subdivide(.5,!0)):Pe.push(Kt),Hl(Qt)?Pe.push(Qt.subdivide(.5,!0).reverse()):Pe.push(Qt),Hl(kt)?Pe.push(kt.subdivide(.5,!1).reverse()):Pe.push(kt),Pe},Sh=function(Ut){var kt=Ut.bounds,Kt=Ut.styles;return kt.add(Kt.borderLeftWidth,Kt.borderTopWidth,-(Kt.borderRightWidth+Kt.borderLeftWidth),-(Kt.borderTopWidth+Kt.borderBottomWidth))},Zf=function(Ut){var kt=Ut.styles,Kt=Ut.bounds,Qt=Ga(kt.paddingLeft,Kt.width),Pe=Ga(kt.paddingRight,Kt.width),qe=Ga(kt.paddingTop,Kt.width),Fn=Ga(kt.paddingBottom,Kt.width);return Kt.add(Qt+kt.borderLeftWidth,qe+kt.borderTopWidth,-(kt.borderRightWidth+kt.borderLeftWidth+Qt+Pe),-(kt.borderTopWidth+kt.borderBottomWidth+qe+Fn))},Kg=function(Ut,kt){return Ut===0?kt.bounds:Ut===2?Zf(kt):Sh(kt)},wp=function(Ut,kt){return Ut===0?kt.bounds:Ut===2?Zf(kt):Sh(kt)},WA=function(Ut,kt,Kt){var Qt=Kg(Qh(Ut.styles.backgroundOrigin,kt),Ut),Pe=wp(Qh(Ut.styles.backgroundClip,kt),Ut),qe=NA(Qh(Ut.styles.backgroundSize,kt),Kt,Qt),Fn=qe[0],ti=qe[1],On=dh(Qh(Ut.styles.backgroundPosition,kt),Qt.width-Fn,Qt.height-ti),Oi=Ad(Qh(Ut.styles.backgroundRepeat,kt),On,qe,Qt,Pe),Qi=Math.round(Qt.left+On[0]),St=Math.round(Qt.top+On[1]);return[Oi,Qi,St,Fn,ti]},VA=function(Ut){return va(Ut)&&Ut.value===se.AUTO},Yf=function(Ut){return typeof Ut=="number"},NA=function(Ut,kt,Kt){var Qt=kt[0],Pe=kt[1],qe=kt[2],Fn=Ut[0],ti=Ut[1];if(!Fn)return[0,0];if(No(Fn)&&ti&&No(ti))return[Ga(Fn,Kt.width),Ga(ti,Kt.height)];var On=Yf(qe);if(va(Fn)&&(Fn.value===se.CONTAIN||Fn.value===se.COVER)){if(Yf(qe)){var Oi=Kt.width/Kt.height;return Oi<qe!=(Fn.value===se.COVER)?[Kt.width,Kt.width/qe]:[Kt.height*qe,Kt.height]}return[Kt.width,Kt.height]}var Qi=Yf(Qt),St=Yf(Pe),_t=Qi||St;if(VA(Fn)&&(!ti||VA(ti))){if(Qi&&St)return[Qt,Pe];if(!On&&!_t)return[Kt.width,Kt.height];if(_t&&On){var fe=Qi?Qt:Pe*qe,Ee=St?Pe:Qt/qe;return[fe,Ee]}var $e=Qi?Qt:Kt.width,mn=St?Pe:Kt.height;return[$e,mn]}if(On){var cn=0,Sn=0;return No(Fn)?cn=Ga(Fn,Kt.width):No(ti)&&(Sn=Ga(ti,Kt.height)),VA(Fn)?cn=Sn*qe:(!ti||VA(ti))&&(Sn=cn/qe),[cn,Sn]}var Pn=null,zn=null;if(No(Fn)?Pn=Ga(Fn,Kt.width):ti&&No(ti)&&(zn=Ga(ti,Kt.height)),Pn!==null&&(!ti||VA(ti))&&(zn=Qi&&St?Pn/Qt*Pe:Kt.height),zn!==null&&VA(Fn)&&(Pn=Qi&&St?zn/Pe*Qt:Kt.width),Pn!==null&&zn!==null)return[Pn,zn];throw new Error("Unable to calculate background-size for element")},Qh=function(Ut,kt){var Kt=Ut[kt];return typeof Kt=="undefined"?Ut[0]:Kt},Ad=function(Ut,kt,Kt,Qt,Pe){var qe=kt[0],Fn=kt[1],ti=Kt[0],On=Kt[1];switch(Ut){case 2:return[new Uo(Math.round(Qt.left),Math.round(Qt.top+Fn)),new Uo(Math.round(Qt.left+Qt.width),Math.round(Qt.top+Fn)),new Uo(Math.round(Qt.left+Qt.width),Math.round(On+Qt.top+Fn)),new Uo(Math.round(Qt.left),Math.round(On+Qt.top+Fn))];case 3:return[new Uo(Math.round(Qt.left+qe),Math.round(Qt.top)),new Uo(Math.round(Qt.left+qe+ti),Math.round(Qt.top)),new Uo(Math.round(Qt.left+qe+ti),Math.round(Qt.height+Qt.top)),new Uo(Math.round(Qt.left+qe),Math.round(Qt.height+Qt.top))];case 1:return[new Uo(Math.round(Qt.left+qe),Math.round(Qt.top+Fn)),new Uo(Math.round(Qt.left+qe+ti),Math.round(Qt.top+Fn)),new Uo(Math.round(Qt.left+qe+ti),Math.round(Qt.top+Fn+On)),new Uo(Math.round(Qt.left+qe),Math.round(Qt.top+Fn+On))];default:return[new Uo(Math.round(Pe.left),Math.round(Pe.top)),new Uo(Math.round(Pe.left+Pe.width),Math.round(Pe.top)),new Uo(Math.round(Pe.left+Pe.width),Math.round(Pe.height+Pe.top)),new Uo(Math.round(Pe.left),Math.round(Pe.height+Pe.top))]}},Pg="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",td="Hidden Text",zh=function(){function Ut(kt){this._data={},this._document=kt}return Ut.prototype.parseMetrics=function(kt,Kt){var Qt=this._document.createElement("div"),Pe=this._document.createElement("img"),qe=this._document.createElement("span"),Fn=this._document.body;Qt.style.visibility="hidden",Qt.style.fontFamily=kt,Qt.style.fontSize=Kt,Qt.style.margin="0",Qt.style.padding="0",Qt.style.whiteSpace="nowrap",Fn.appendChild(Qt),Pe.src=Pg,Pe.width=1,Pe.height=1,Pe.style.margin="0",Pe.style.padding="0",Pe.style.verticalAlign="baseline",qe.style.fontFamily=kt,qe.style.fontSize=Kt,qe.style.margin="0",qe.style.padding="0",qe.appendChild(this._document.createTextNode(td)),Qt.appendChild(qe),Qt.appendChild(Pe);var ti=Pe.offsetTop-qe.offsetTop+2;Qt.removeChild(qe),Qt.appendChild(this._document.createTextNode(td)),Qt.style.lineHeight="normal",Pe.style.verticalAlign="super";var On=Pe.offsetTop-Qt.offsetTop+2;return Fn.removeChild(Qt),{baseline:ti,middle:On}},Ut.prototype.getMetrics=function(kt,Kt){var Qt=kt+" "+Kt;return typeof this._data[Qt]=="undefined"&&(this._data[Qt]=this.parseMetrics(kt,Kt)),this._data[Qt]},Ut}(),vc=function(){function Ut(kt,Kt){this.context=kt,this.options=Kt}return Ut}(),yc=1e4,ZA=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;return Pe._activeEffects=[],Pe.canvas=Qt.canvas?Qt.canvas:document.createElement("canvas"),Pe.ctx=Pe.canvas.getContext("2d"),Qt.canvas||(Pe.canvas.width=Math.floor(Qt.width*Qt.scale),Pe.canvas.height=Math.floor(Qt.height*Qt.scale),Pe.canvas.style.width=Qt.width+"px",Pe.canvas.style.height=Qt.height+"px"),Pe.fontMetrics=new zh(document),Pe.ctx.scale(Pe.options.scale,Pe.options.scale),Pe.ctx.translate(-Qt.x,-Qt.y),Pe.ctx.textBaseline="bottom",Pe._activeEffects=[],Pe.context.logger.debug("Canvas renderer initialized ("+Qt.width+"x"+Qt.height+") with scale "+Qt.scale),Pe}return kt.prototype.applyEffects=function(Kt){for(var Qt=this;this._activeEffects.length;)this.popEffect();Kt.forEach(function(Pe){return Qt.applyEffect(Pe)})},kt.prototype.applyEffect=function(Kt){this.ctx.save(),qc(Kt)&&(this.ctx.globalAlpha=Kt.opacity),Ql(Kt)&&(this.ctx.translate(Kt.offsetX,Kt.offsetY),this.ctx.transform(Kt.matrix[0],Kt.matrix[1],Kt.matrix[2],Kt.matrix[3],Kt.matrix[4],Kt.matrix[5]),this.ctx.translate(-Kt.offsetX,-Kt.offsetY)),Hu(Kt)&&(this.path(Kt.path),this.ctx.clip()),this._activeEffects.push(Kt)},kt.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},kt.prototype.renderStack=function(Kt){return ce(this,void 0,void 0,function(){var Qt;return re(this,function(Pe){switch(Pe.label){case 0:return Qt=Kt.element.container.styles,Qt.isVisible()?[4,this.renderStackContent(Kt)]:[3,2];case 1:Pe.sent(),Pe.label=2;case 2:return[2]}})})},kt.prototype.renderNode=function(Kt){return ce(this,void 0,void 0,function(){return re(this,function(Qt){switch(Qt.label){case 0:if(Po(Kt.container.flags,16))debugger;return Kt.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Kt)]:[3,3];case 1:return Qt.sent(),[4,this.renderNodeContent(Kt)];case 2:Qt.sent(),Qt.label=3;case 3:return[2]}})})},kt.prototype.renderTextWithLetterSpacing=function(Kt,Qt,Pe){var qe=this;if(Qt===0)this.ctx.fillText(Kt.text,Kt.bounds.left,Kt.bounds.top+Pe);else{var Fn=hl(Kt.text);Fn.reduce(function(ti,On){return qe.ctx.fillText(On,ti,Kt.bounds.top+Pe),ti+qe.ctx.measureText(On).width},Kt.bounds.left)}},kt.prototype.createFontStyle=function(Kt){var Qt=Kt.fontVariant.filter(function(Fn){return Fn==="normal"||Fn==="small-caps"}).join(""),Pe=Sp(Kt.fontFamily).join(", "),qe=au(Kt.fontSize)?""+Kt.fontSize.number+Kt.fontSize.unit:Kt.fontSize.number+"px";return[[Kt.fontStyle,Qt,Kt.fontWeight,qe,Pe].join(" "),Pe,qe]},kt.prototype.renderTextNode=function(Kt,Qt){return ce(this,void 0,void 0,function(){var Pe,qe,Fn,ti,On,Oi,Qi,St,_t=this;return re(this,function(fe){return Pe=this.createFontStyle(Qt),qe=Pe[0],Fn=Pe[1],ti=Pe[2],this.ctx.font=qe,this.ctx.direction=Qt.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",On=this.fontMetrics.getMetrics(Fn,ti),Oi=On.baseline,Qi=On.middle,St=Qt.paintOrder,Kt.textBounds.forEach(function(Ee){St.forEach(function($e){switch($e){case 0:_t.ctx.fillStyle=Aa(Qt.color),_t.renderTextWithLetterSpacing(Ee,Qt.letterSpacing,Oi);var mn=Qt.textShadow;mn.length&&Ee.text.trim().length&&(mn.slice(0).reverse().forEach(function(cn){_t.ctx.shadowColor=Aa(cn.color),_t.ctx.shadowOffsetX=cn.offsetX.number*_t.options.scale,_t.ctx.shadowOffsetY=cn.offsetY.number*_t.options.scale,_t.ctx.shadowBlur=cn.blur.number,_t.renderTextWithLetterSpacing(Ee,Qt.letterSpacing,Oi)}),_t.ctx.shadowColor="",_t.ctx.shadowOffsetX=0,_t.ctx.shadowOffsetY=0,_t.ctx.shadowBlur=0),Qt.textDecorationLine.length&&(_t.ctx.fillStyle=Aa(Qt.textDecorationColor||Qt.color),Qt.textDecorationLine.forEach(function(cn){switch(cn){case 1:_t.ctx.fillRect(Ee.bounds.left,Math.round(Ee.bounds.top+Oi),Ee.bounds.width,1);break;case 2:_t.ctx.fillRect(Ee.bounds.left,Math.round(Ee.bounds.top),Ee.bounds.width,1);break;case 3:_t.ctx.fillRect(Ee.bounds.left,Math.ceil(Ee.bounds.top+Qi),Ee.bounds.width,1);break}}));break;case 1:Qt.webkitTextStrokeWidth&&Ee.text.trim().length&&(_t.ctx.strokeStyle=Aa(Qt.webkitTextStrokeColor),_t.ctx.lineWidth=Qt.webkitTextStrokeWidth,_t.ctx.lineJoin=window.chrome?"miter":"round",_t.ctx.strokeText(Ee.text,Ee.bounds.left,Ee.bounds.top+Oi)),_t.ctx.strokeStyle="",_t.ctx.lineWidth=0,_t.ctx.lineJoin="miter";break}})}),[2]})})},kt.prototype.renderReplacedElement=function(Kt,Qt,Pe){if(Pe&&Kt.intrinsicWidth>0&&Kt.intrinsicHeight>0){var qe=Zf(Kt),Fn=Xd(Qt);this.path(Fn),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Pe,0,0,Kt.intrinsicWidth,Kt.intrinsicHeight,qe.left,qe.top,qe.width,qe.height),this.ctx.restore()}},kt.prototype.renderNodeContent=function(Kt){return ce(this,void 0,void 0,function(){var Qt,Pe,qe,Fn,ti,On,Sn,Sn,Oi,Qi,St,_t,zn,fe,Ee,Bi,$e,mn,cn,Sn,Pn,zn,Bi;return re(this,function(Ni){switch(Ni.label){case 0:this.applyEffects(Kt.getEffects(4)),Qt=Kt.container,Pe=Kt.curves,qe=Qt.styles,Fn=0,ti=Qt.textNodes,Ni.label=1;case 1:return Fn<ti.length?(On=ti[Fn],[4,this.renderTextNode(On,qe)]):[3,4];case 2:Ni.sent(),Ni.label=3;case 3:return Fn++,[3,1];case 4:if(!(Qt instanceof Jc))return[3,8];Ni.label=5;case 5:return Ni.trys.push([5,7,,8]),[4,this.context.cache.match(Qt.src)];case 6:return Sn=Ni.sent(),this.renderReplacedElement(Qt,Pe,Sn),[3,8];case 7:return Ni.sent(),this.context.logger.error("Error loading image "+Qt.src),[3,8];case 8:if(Qt instanceof ic&&this.renderReplacedElement(Qt,Pe,Qt.canvas),!(Qt instanceof Kd))return[3,12];Ni.label=9;case 9:return Ni.trys.push([9,11,,12]),[4,this.context.cache.match(Qt.svg)];case 10:return Sn=Ni.sent(),this.renderReplacedElement(Qt,Pe,Sn),[3,12];case 11:return Ni.sent(),this.context.logger.error("Error loading svg "+Qt.svg.substring(0,255)),[3,12];case 12:return Qt instanceof Wd&&Qt.tree?(Oi=new kt(this.context,{scale:this.options.scale,backgroundColor:Qt.backgroundColor,x:0,y:0,width:Qt.width,height:Qt.height}),[4,Oi.render(Qt.tree)]):[3,14];case 13:Qi=Ni.sent(),Qt.width&&Qt.height&&this.ctx.drawImage(Qi,0,0,Qt.width,Qt.height,Qt.bounds.left,Qt.bounds.top,Qt.bounds.width,Qt.bounds.height),Ni.label=14;case 14:if(Qt instanceof Rh&&(St=Math.min(Qt.bounds.width,Qt.bounds.height),Qt.type===Gd?Qt.checked&&(this.ctx.save(),this.path([new Uo(Qt.bounds.left+St*.39363,Qt.bounds.top+St*.79),new Uo(Qt.bounds.left+St*.16,Qt.bounds.top+St*.5549),new Uo(Qt.bounds.left+St*.27347,Qt.bounds.top+St*.44071),new Uo(Qt.bounds.left+St*.39694,Qt.bounds.top+St*.5649),new Uo(Qt.bounds.left+St*.72983,Qt.bounds.top+St*.23),new Uo(Qt.bounds.left+St*.84,Qt.bounds.top+St*.34085),new Uo(Qt.bounds.left+St*.39363,Qt.bounds.top+St*.79)]),this.ctx.fillStyle=Aa(hA),this.ctx.fill(),this.ctx.restore()):Qt.type===pc&&Qt.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(Qt.bounds.left+St/2,Qt.bounds.top+St/2,St/4,0,Math.PI*2,!0),this.ctx.fillStyle=Aa(hA),this.ctx.fill(),this.ctx.restore())),xp(Qt)&&Qt.value.length){switch(_t=this.createFontStyle(qe),zn=_t[0],fe=_t[1],Ee=this.fontMetrics.getMetrics(zn,fe).baseline,this.ctx.font=zn,this.ctx.fillStyle=Aa(qe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Rs(Qt.styles.textAlign),Bi=Zf(Qt),$e=0,Qt.styles.textAlign){case 1:$e+=Bi.width/2;break;case 2:$e+=Bi.width;break}mn=Bi.add($e,0,0,-Bi.height/2+1),this.ctx.save(),this.path([new Uo(Bi.left,Bi.top),new Uo(Bi.left+Bi.width,Bi.top),new Uo(Bi.left+Bi.width,Bi.top+Bi.height),new Uo(Bi.left,Bi.top+Bi.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new cu(Qt.value,mn),qe.letterSpacing,Ee),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Po(Qt.styles.display,2048))return[3,20];if(Qt.styles.listStyleImage===null)return[3,19];if(cn=Qt.styles.listStyleImage,cn.type!==0)return[3,18];Sn=void 0,Pn=cn.url,Ni.label=15;case 15:return Ni.trys.push([15,17,,18]),[4,this.context.cache.match(Pn)];case 16:return Sn=Ni.sent(),this.ctx.drawImage(Sn,Qt.bounds.left-(Sn.width+10),Qt.bounds.top),[3,18];case 17:return Ni.sent(),this.context.logger.error("Error loading list-style-image "+Pn),[3,18];case 18:return[3,20];case 19:Kt.listValue&&Qt.styles.listStyleType!==-1&&(zn=this.createFontStyle(qe)[0],this.ctx.font=zn,this.ctx.fillStyle=Aa(qe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Bi=new ee(Qt.bounds.left,Qt.bounds.top+Ga(Qt.styles.paddingTop,Qt.bounds.width),Qt.bounds.width,Tn(qe.lineHeight,qe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new cu(Kt.listValue,Bi),qe.letterSpacing,Tn(qe.lineHeight,qe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Ni.label=20;case 20:return[2]}})})},kt.prototype.renderStackContent=function(Kt){return ce(this,void 0,void 0,function(){var Qt,Pe,cn,qe,Fn,cn,ti,On,cn,Oi,Qi,cn,St,_t,cn,fe,Ee,cn,$e,mn,cn;return re(this,function(Sn){switch(Sn.label){case 0:if(Po(Kt.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Kt.element)];case 1:Sn.sent(),Qt=0,Pe=Kt.negativeZIndex,Sn.label=2;case 2:return Qt<Pe.length?(cn=Pe[Qt],[4,this.renderStack(cn)]):[3,5];case 3:Sn.sent(),Sn.label=4;case 4:return Qt++,[3,2];case 5:return[4,this.renderNodeContent(Kt.element)];case 6:Sn.sent(),qe=0,Fn=Kt.nonInlineLevel,Sn.label=7;case 7:return qe<Fn.length?(cn=Fn[qe],[4,this.renderNode(cn)]):[3,10];case 8:Sn.sent(),Sn.label=9;case 9:return qe++,[3,7];case 10:ti=0,On=Kt.nonPositionedFloats,Sn.label=11;case 11:return ti<On.length?(cn=On[ti],[4,this.renderStack(cn)]):[3,14];case 12:Sn.sent(),Sn.label=13;case 13:return ti++,[3,11];case 14:Oi=0,Qi=Kt.nonPositionedInlineLevel,Sn.label=15;case 15:return Oi<Qi.length?(cn=Qi[Oi],[4,this.renderStack(cn)]):[3,18];case 16:Sn.sent(),Sn.label=17;case 17:return Oi++,[3,15];case 18:St=0,_t=Kt.inlineLevel,Sn.label=19;case 19:return St<_t.length?(cn=_t[St],[4,this.renderNode(cn)]):[3,22];case 20:Sn.sent(),Sn.label=21;case 21:return St++,[3,19];case 22:fe=0,Ee=Kt.zeroOrAutoZIndexOrTransformedOrOpacity,Sn.label=23;case 23:return fe<Ee.length?(cn=Ee[fe],[4,this.renderStack(cn)]):[3,26];case 24:Sn.sent(),Sn.label=25;case 25:return fe++,[3,23];case 26:$e=0,mn=Kt.positiveZIndex,Sn.label=27;case 27:return $e<mn.length?(cn=mn[$e],[4,this.renderStack(cn)]):[3,30];case 28:Sn.sent(),Sn.label=29;case 29:return $e++,[3,27];case 30:return[2]}})})},kt.prototype.mask=function(Kt){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(Kt.slice(0).reverse()),this.ctx.closePath()},kt.prototype.path=function(Kt){this.ctx.beginPath(),this.formatPath(Kt),this.ctx.closePath()},kt.prototype.formatPath=function(Kt){var Qt=this;Kt.forEach(function(Pe,qe){var Fn=Hl(Pe)?Pe.start:Pe;qe===0?Qt.ctx.moveTo(Fn.x,Fn.y):Qt.ctx.lineTo(Fn.x,Fn.y),Hl(Pe)&&Qt.ctx.bezierCurveTo(Pe.startControl.x,Pe.startControl.y,Pe.endControl.x,Pe.endControl.y,Pe.end.x,Pe.end.y)})},kt.prototype.renderRepeat=function(Kt,Qt,Pe,qe){this.path(Kt),this.ctx.fillStyle=Qt,this.ctx.translate(Pe,qe),this.ctx.fill(),this.ctx.translate(-Pe,-qe)},kt.prototype.resizeImage=function(Kt,Qt,Pe){var qe;if(Kt.width===Qt&&Kt.height===Pe)return Kt;var Fn=(qe=this.canvas.ownerDocument)!==null&&qe!==void 0?qe:document,ti=Fn.createElement("canvas");ti.width=Math.max(1,Qt),ti.height=Math.max(1,Pe);var On=ti.getContext("2d");return On.drawImage(Kt,0,0,Kt.width,Kt.height,0,0,Qt,Pe),ti},kt.prototype.renderBackgroundImage=function(Kt){return ce(this,void 0,void 0,function(){var Qt,Pe,qe,Fn,ti,On;return re(this,function(Oi){switch(Oi.label){case 0:Qt=Kt.styles.backgroundImage.length-1,Pe=function(Qi){var St,_t,fe,Lr,ts,Wo,Dr,eo,Ui,Ee,Lr,ts,Wo,Dr,eo,$e,mn,cn,Sn,Pn,zn,Bi,Ni,tr,Ui,Pr,Lr,ji,Ki,Dr,eo,ro,ts,Wo,Ks,Jn,gl,Tl,rl,Qa,zl,Ha;return re(this,function(ua){switch(ua.label){case 0:if(Qi.type!==0)return[3,5];St=void 0,_t=Qi.url,ua.label=1;case 1:return ua.trys.push([1,3,,4]),[4,qe.context.cache.match(_t)];case 2:return St=ua.sent(),[3,4];case 3:return ua.sent(),qe.context.logger.error("Error loading background-image "+_t),[3,4];case 4:return St&&(fe=WA(Kt,Qt,[St.width,St.height,St.width/St.height]),Lr=fe[0],ts=fe[1],Wo=fe[2],Dr=fe[3],eo=fe[4],Ui=qe.ctx.createPattern(qe.resizeImage(St,Dr,eo),"repeat"),qe.renderRepeat(Lr,Ui,ts,Wo)),[3,6];case 5:xd(Qi)?(Ee=WA(Kt,Qt,[null,null,null]),Lr=Ee[0],ts=Ee[1],Wo=Ee[2],Dr=Ee[3],eo=Ee[4],$e=tc(Qi.angle,Dr,eo),mn=$e[0],cn=$e[1],Sn=$e[2],Pn=$e[3],zn=$e[4],Bi=document.createElement("canvas"),Bi.width=Dr,Bi.height=eo,Ni=Bi.getContext("2d"),tr=Ni.createLinearGradient(cn,Pn,Sn,zn),Yi(Qi.stops,mn).forEach(function(Qu){return tr.addColorStop(Qu.stop,Aa(Qu.color))}),Ni.fillStyle=tr,Ni.fillRect(0,0,Dr,eo),Dr>0&&eo>0&&(Ui=qe.ctx.createPattern(Bi,"repeat"),qe.renderRepeat(Lr,Ui,ts,Wo))):Da(Qi)&&(Pr=WA(Kt,Qt,[null,null,null]),Lr=Pr[0],ji=Pr[1],Ki=Pr[2],Dr=Pr[3],eo=Pr[4],ro=Qi.position.length===0?[zu]:Qi.position,ts=Ga(ro[0],Dr),Wo=Ga(ro[ro.length-1],eo),Ks=fh(Qi,ts,Wo,Dr,eo),Jn=Ks[0],gl=Ks[1],Jn>0&&gl>0&&(Tl=qe.ctx.createRadialGradient(ji+ts,Ki+Wo,0,ji+ts,Ki+Wo,Jn),Yi(Qi.stops,Jn*2).forEach(function(Qu){return Tl.addColorStop(Qu.stop,Aa(Qu.color))}),qe.path(Lr),qe.ctx.fillStyle=Tl,Jn!==gl?(rl=Kt.bounds.left+.5*Kt.bounds.width,Qa=Kt.bounds.top+.5*Kt.bounds.height,zl=gl/Jn,Ha=1/zl,qe.ctx.save(),qe.ctx.translate(rl,Qa),qe.ctx.transform(1,0,0,zl,0,0),qe.ctx.translate(-rl,-Qa),qe.ctx.fillRect(ji,Ha*(Ki-Qa)+Qa,Dr,eo*Ha),qe.ctx.restore()):qe.ctx.fill())),ua.label=6;case 6:return Qt--,[2]}})},qe=this,Fn=0,ti=Kt.styles.backgroundImage.slice(0).reverse(),Oi.label=1;case 1:return Fn<ti.length?(On=ti[Fn],[5,Pe(On)]):[3,4];case 2:Oi.sent(),Oi.label=3;case 3:return Fn++,[3,1];case 4:return[2]}})})},kt.prototype.renderSolidBorder=function(Kt,Qt,Pe){return ce(this,void 0,void 0,function(){return re(this,function(qe){return this.path(GA(Pe,Qt)),this.ctx.fillStyle=Aa(Kt),this.ctx.fill(),[2]})})},kt.prototype.renderDoubleBorder=function(Kt,Qt,Pe,qe){return ce(this,void 0,void 0,function(){var Fn,ti;return re(this,function(On){switch(On.label){case 0:return Qt<3?[4,this.renderSolidBorder(Kt,Pe,qe)]:[3,2];case 1:return On.sent(),[2];case 2:return Fn=MA(qe,Pe),this.path(Fn),this.ctx.fillStyle=Aa(Kt),this.ctx.fill(),ti=Vf(qe,Pe),this.path(ti),this.ctx.fill(),[2]}})})},kt.prototype.renderNodeBackgroundAndBorders=function(Kt){return ce(this,void 0,void 0,function(){var Qt,Pe,qe,Fn,ti,On,Oi,Qi,St=this;return re(this,function(_t){switch(_t.label){case 0:return this.applyEffects(Kt.getEffects(2)),Qt=Kt.container.styles,Pe=!Wa(Qt.backgroundColor)||Qt.backgroundImage.length,qe=[{style:Qt.borderTopStyle,color:Qt.borderTopColor,width:Qt.borderTopWidth},{style:Qt.borderRightStyle,color:Qt.borderRightColor,width:Qt.borderRightWidth},{style:Qt.borderBottomStyle,color:Qt.borderBottomColor,width:Qt.borderBottomWidth},{style:Qt.borderLeftStyle,color:Qt.borderLeftColor,width:Qt.borderLeftWidth}],Fn=wf(Qh(Qt.backgroundClip,0),Kt.curves),Pe||Qt.boxShadow.length?(this.ctx.save(),this.path(Fn),this.ctx.clip(),Wa(Qt.backgroundColor)||(this.ctx.fillStyle=Aa(Qt.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Kt.container)]):[3,2];case 1:_t.sent(),this.ctx.restore(),Qt.boxShadow.slice(0).reverse().forEach(function(fe){St.ctx.save();var Ee=ch(Kt.curves),$e=fe.inset?0:yc,mn=Cg(Ee,-$e+(fe.inset?1:-1)*fe.spread.number,(fe.inset?1:-1)*fe.spread.number,fe.spread.number*(fe.inset?-2:2),fe.spread.number*(fe.inset?-2:2));fe.inset?(St.path(Ee),St.ctx.clip(),St.mask(mn)):(St.mask(Ee),St.ctx.clip(),St.path(mn)),St.ctx.shadowOffsetX=fe.offsetX.number+$e,St.ctx.shadowOffsetY=fe.offsetY.number,St.ctx.shadowColor=Aa(fe.color),St.ctx.shadowBlur=fe.blur.number,St.ctx.fillStyle=fe.inset?Aa(fe.color):"rgba(0,0,0,1)",St.ctx.fill(),St.ctx.restore()}),_t.label=2;case 2:ti=0,On=0,Oi=qe,_t.label=3;case 3:return On<Oi.length?(Qi=Oi[On],Qi.style!==0&&!Wa(Qi.color)&&Qi.width>0?Qi.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Qi.color,Qi.width,ti,Kt.curves,2)]:[3,11]):[3,13];case 4:return _t.sent(),[3,11];case 5:return Qi.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Qi.color,Qi.width,ti,Kt.curves,3)];case 6:return _t.sent(),[3,11];case 7:return Qi.style!==4?[3,9]:[4,this.renderDoubleBorder(Qi.color,Qi.width,ti,Kt.curves)];case 8:return _t.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Qi.color,ti,Kt.curves)];case 10:_t.sent(),_t.label=11;case 11:ti++,_t.label=12;case 12:return On++,[3,3];case 13:return[2]}})})},kt.prototype.renderDashedDottedBorder=function(Kt,Qt,Pe,qe,Fn){return ce(this,void 0,void 0,function(){var ti,On,Oi,Qi,St,_t,fe,Ee,$e,mn,cn,Sn,Pn,zn,Bi,Ni,Bi,Ni;return re(this,function(tr){return this.ctx.save(),ti=fA(qe,Pe),On=GA(qe,Pe),Fn===2&&(this.path(On),this.ctx.clip()),Hl(On[0])?(Oi=On[0].start.x,Qi=On[0].start.y):(Oi=On[0].x,Qi=On[0].y),Hl(On[1])?(St=On[1].end.x,_t=On[1].end.y):(St=On[1].x,_t=On[1].y),Pe===0||Pe===2?fe=Math.abs(Oi-St):fe=Math.abs(Qi-_t),this.ctx.beginPath(),Fn===3?this.formatPath(ti):this.formatPath(On.slice(0,2)),Ee=Qt<3?Qt*3:Qt*2,$e=Qt<3?Qt*2:Qt,Fn===3&&(Ee=Qt,$e=Qt),mn=!0,fe<=Ee*2?mn=!1:fe<=Ee*2+$e?(cn=fe/(2*Ee+$e),Ee*=cn,$e*=cn):(Sn=Math.floor((fe+$e)/(Ee+$e)),Pn=(fe-Sn*Ee)/(Sn-1),zn=(fe-(Sn+1)*Ee)/Sn,$e=zn<=0||Math.abs($e-Pn)<Math.abs($e-zn)?Pn:zn),mn&&(Fn===3?this.ctx.setLineDash([0,Ee+$e]):this.ctx.setLineDash([Ee,$e])),Fn===3?(this.ctx.lineCap="round",this.ctx.lineWidth=Qt):this.ctx.lineWidth=Qt*2+1.1,this.ctx.strokeStyle=Aa(Kt),this.ctx.stroke(),this.ctx.setLineDash([]),Fn===2&&(Hl(On[0])&&(Bi=On[3],Ni=On[0],this.ctx.beginPath(),this.formatPath([new Uo(Bi.end.x,Bi.end.y),new Uo(Ni.start.x,Ni.start.y)]),this.ctx.stroke()),Hl(On[1])&&(Bi=On[1],Ni=On[2],this.ctx.beginPath(),this.formatPath([new Uo(Bi.end.x,Bi.end.y),new Uo(Ni.start.x,Ni.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},kt.prototype.render=function(Kt){return ce(this,void 0,void 0,function(){var Qt;return re(this,function(Pe){switch(Pe.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Aa(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),Qt=yf(Kt),[4,this.renderStack(Qt)];case 1:return Pe.sent(),this.applyEffects([]),[2,this.canvas]}})})},kt}(vc),xp=function(Ut){return Ut instanceof Fd||Ut instanceof zA?!0:Ut instanceof Rh&&Ut.type!==pc&&Ut.type!==Gd},wf=function(Ut,kt){switch(Ut){case 0:return ch(kt);case 2:return fu(kt);case 1:default:return Xd(kt)}},Rs=function(Ut){switch(Ut){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Gg=["-apple-system","system-ui"],Sp=function(Ut){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Ut.filter(function(kt){return Gg.indexOf(kt)===-1}):Ut},xf=function(Ut){bt(kt,Ut);function kt(Kt,Qt){var Pe=Ut.call(this,Kt,Qt)||this;return Pe.canvas=Qt.canvas?Qt.canvas:document.createElement("canvas"),Pe.ctx=Pe.canvas.getContext("2d"),Pe.options=Qt,Pe.canvas.width=Math.floor(Qt.width*Qt.scale),Pe.canvas.height=Math.floor(Qt.height*Qt.scale),Pe.canvas.style.width=Qt.width+"px",Pe.canvas.style.height=Qt.height+"px",Pe.ctx.scale(Pe.options.scale,Pe.options.scale),Pe.ctx.translate(-Qt.x,-Qt.y),Pe.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+Qt.width+"x"+Qt.height+" at "+Qt.x+","+Qt.y+") with scale "+Qt.scale),Pe}return kt.prototype.render=function(Kt){return ce(this,void 0,void 0,function(){var Qt,Pe;return re(this,function(qe){switch(qe.label){case 0:return Qt=Ed(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Kt),[4,IA(Qt)];case 1:return Pe=qe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Aa(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Pe,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},kt}(vc),IA=function(Ut){return new Promise(function(kt,Kt){var Qt=new Image;Qt.onload=function(){kt(Qt)},Qt.onerror=Kt,Qt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ut))})},gA=function(){function Ut(kt){var Kt=kt.id,Qt=kt.enabled;this.id=Kt,this.enabled=Qt,this.start=Date.now()}return Ut.prototype.debug=function(){for(var kt=[],Kt=0;Kt<arguments.length;Kt++)kt[Kt]=arguments[Kt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Be([this.id,this.getTime()+"ms"],kt)):this.info.apply(this,kt))},Ut.prototype.getTime=function(){return Date.now()-this.start},Ut.prototype.info=function(){for(var kt=[],Kt=0;Kt<arguments.length;Kt++)kt[Kt]=arguments[Kt];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Be([this.id,this.getTime()+"ms"],kt))},Ut.prototype.warn=function(){for(var kt=[],Kt=0;Kt<arguments.length;Kt++)kt[Kt]=arguments[Kt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Be([this.id,this.getTime()+"ms"],kt)):this.info.apply(this,kt))},Ut.prototype.error=function(){for(var kt=[],Kt=0;Kt<arguments.length;Kt++)kt[Kt]=arguments[Kt];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Be([this.id,this.getTime()+"ms"],kt)):this.info.apply(this,kt))},Ut.instances={},Ut}(),fd=function(){function Ut(kt,Kt){var Qt;this.windowBounds=Kt,this.instanceName="#"+Ut.instanceCount++,this.logger=new gA({id:this.instanceName,enabled:kt.logging}),this.cache=(Qt=kt.cache)!==null&&Qt!==void 0?Qt:new Js(this,kt)}return Ut.instanceCount=1,Ut}(),bg=function(Ut,kt){return kt===void 0&&(kt={}),Wg(Ut,kt)};typeof window!="undefined"&&Do.setContext(window);var Wg=function(Ut,kt){return ce(void 0,void 0,void 0,function(){var Kt,Qt,Pe,qe,Fn,ti,On,Oi,Qi,St,_t,fe,Ee,$e,mn,cn,Sn,Pn,zn,Bi,tr,Ni,tr,Ui,Pr,Lr,ji,Ki,Dr,eo,ro,ts,Wo,Ks,Jn,gl,Tl,rl,Qa,zl;return re(this,function(Ha){switch(Ha.label){case 0:if(!Ut||typeof Ut!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(Kt=Ut.ownerDocument,!Kt)throw new Error("Element is not attached to a Document");if(Qt=Kt.defaultView,!Qt)throw new Error("Document is not attached to a Window");return Pe={allowTaint:(Ui=kt.allowTaint)!==null&&Ui!==void 0?Ui:!1,imageTimeout:(Pr=kt.imageTimeout)!==null&&Pr!==void 0?Pr:15e3,proxy:kt.proxy,useCORS:(Lr=kt.useCORS)!==null&&Lr!==void 0?Lr:!1},qe=Ft({logging:(ji=kt.logging)!==null&&ji!==void 0?ji:!0,cache:kt.cache},Pe),Fn={windowWidth:(Ki=kt.windowWidth)!==null&&Ki!==void 0?Ki:Qt.innerWidth,windowHeight:(Dr=kt.windowHeight)!==null&&Dr!==void 0?Dr:Qt.innerHeight,scrollX:(eo=kt.scrollX)!==null&&eo!==void 0?eo:Qt.pageXOffset,scrollY:(ro=kt.scrollY)!==null&&ro!==void 0?ro:Qt.pageYOffset},ti=new ee(Fn.scrollX,Fn.scrollY,Fn.windowWidth,Fn.windowHeight),On=new fd(qe,ti),Oi=(ts=kt.foreignObjectRendering)!==null&&ts!==void 0?ts:!1,Qi={allowTaint:(Wo=kt.allowTaint)!==null&&Wo!==void 0?Wo:!1,onclone:kt.onclone,ignoreElements:kt.ignoreElements,inlineImages:Oi,copyStyles:Oi},On.logger.debug("Starting document clone with size "+ti.width+"x"+ti.height+" scrolled to "+-ti.left+","+-ti.top),St=new Bt(On,Ut,Qi),_t=St.clonedReferenceElement,_t?[4,St.toIFrame(Kt,ti)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return fe=Ha.sent(),Ee=Us(_t)||ba(_t)?It(_t.ownerDocument):Yt(On,_t),$e=Ee.width,mn=Ee.height,cn=Ee.left,Sn=Ee.top,Pn=Eg(On,_t,kt.backgroundColor),zn={canvas:kt.canvas,backgroundColor:Pn,scale:(Jn=(Ks=kt.scale)!==null&&Ks!==void 0?Ks:Qt.devicePixelRatio)!==null&&Jn!==void 0?Jn:1,x:((gl=kt.x)!==null&&gl!==void 0?gl:0)+cn,y:((Tl=kt.y)!==null&&Tl!==void 0?Tl:0)+Sn,width:(rl=kt.width)!==null&&rl!==void 0?rl:Math.ceil($e),height:(Qa=kt.height)!==null&&Qa!==void 0?Qa:Math.ceil(mn)},Oi?(On.logger.debug("Document cloned, using foreign object rendering"),tr=new xf(On,zn),[4,tr.render(_t)]):[3,3];case 2:return Bi=Ha.sent(),[3,5];case 3:return On.logger.debug("Document cloned, element located at "+cn+","+Sn+" with size "+$e+"x"+mn+" using computed rendering"),On.logger.debug("Starting DOM parsing"),Ni=Ae(On,_t),Pn===Ni.styles.backgroundColor&&(Ni.styles.backgroundColor=Ah.TRANSPARENT),On.logger.debug("Starting renderer for element at "+zn.x+","+zn.y+" with size "+zn.width+"x"+zn.height),tr=new ZA(On,zn),[4,tr.render(Ni)];case 4:Bi=Ha.sent(),Ha.label=5;case 5:return(!((zl=kt.removeContainer)!==null&&zl!==void 0)||zl)&&(Bt.destroy(fe)||On.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),On.logger.debug("Finished rendering"),[2,Bi]}})})},Eg=function(Ut,kt,Kt){var Qt=kt.ownerDocument,Pe=Qt.documentElement?od(Ut,getComputedStyle(Qt.documentElement).backgroundColor):Ah.TRANSPARENT,qe=Qt.body?od(Ut,getComputedStyle(Qt.body).backgroundColor):Ah.TRANSPARENT,Fn=typeof Kt=="string"?od(Ut,Kt):Kt===null?Ah.TRANSPARENT:4294967295;return kt===Qt.documentElement?Wa(Pe)?Wa(qe)?Fn:qe:Pe:Fn};return bg})},44164:function(ui,wn,bt){var Ft=bt(97671);(function(re,Be){ui.exports=Be(bt(7348),bt(64270))})(self,function(ce,re){return function(){var Be={"./src/plugin/hyperlinks.js":function(jt,Xt,Pt){"use strict";Pt.r(Xt);var oe=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),zt=Pt.n(oe),Jt=Pt("./node_modules/core-js/modules/es.string.link.js"),Ct=Pt.n(Jt),et=Pt("./src/worker.js"),tt=Pt("./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 wt=this.prop.container,Mt=wt.querySelectorAll("a"),Ot=(0,tt.unitConvert)(wt.getBoundingClientRect(),this.prop.pageSize.k);lt=[],Array.prototype.forEach.call(Mt,function(Ht){for(var ne=Ht.getClientRects(),ae=0;ae<ne.length;ae++){var de=(0,tt.unitConvert)(ne[ae],this.prop.pageSize.k);de.left-=Ot.left,de.top-=Ot.top;var be=Math.floor(de.top/this.prop.pageSize.inner.height)+1,qt=this.opt.margin[0]+de.top%this.prop.pageSize.inner.height,ze=this.opt.margin[1]+de.left;lt.push({page:be,top:qt,left:ze,clientRect:de,link:Ht})}},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 wt=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(wt)}})}},"./src/plugin/jspdf-plugin.js":function(jt,Xt,Pt){"use strict";Pt.r(Xt);var oe=Pt("./node_modules/core-js/modules/es.symbol.js"),zt=Pt.n(oe),Jt=Pt("./node_modules/core-js/modules/es.symbol.description.js"),Ct=Pt.n(Jt),et=Pt("./node_modules/core-js/modules/es.object.to-string.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.symbol.iterator.js"),rt=Pt.n(lt),ut=Pt("./node_modules/core-js/modules/es.array.iterator.js"),ct=Pt.n(ut),wt=Pt("./node_modules/core-js/modules/es.string.iterator.js"),Mt=Pt.n(wt),Ot=Pt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ht=Pt.n(Ot),ne=Pt("jspdf"),ae=Pt.n(ne);function de(be){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(ze){return typeof ze}:de=function(ze){return ze&&typeof Symbol=="function"&&ze.constructor===Symbol&&ze!==Symbol.prototype?"symbol":typeof ze},de(be)}ne.jsPDF.getPageSize=function(be,qt,ze){if(de(be)==="object"){var Vt=be;be=Vt.orientation,qt=Vt.unit||qt,ze=Vt.format||ze}qt=qt||"mm",ze=ze||"a4",be=(""+(be||"P")).toLowerCase();var Ge=(""+ze).toLowerCase(),_e={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(qt){case"pt":var Ne=1;break;case"mm":var Ne=72/25.4;break;case"cm":var Ne=72/2.54;break;case"in":var Ne=72;break;case"px":var Ne=72/96;break;case"pc":var Ne=12;break;case"em":var Ne=12;break;case"ex":var Ne=6;break;default:throw"Invalid unit: "+qt}if(_e.hasOwnProperty(Ge))var We=_e[Ge][1]/Ne,Re=_e[Ge][0]/Ne;else try{var We=ze[1],Re=ze[0]}catch(Se){throw new Error("Invalid format: "+ze)}if(be==="p"||be==="portrait"){if(be="p",Re>We){var ve=Re;Re=We,We=ve}}else if(be==="l"||be==="landscape"){if(be="l",We>Re){var ve=Re;Re=We,We=ve}}else throw"Invalid orientation: "+be;var ie={width:Re,height:We,unit:qt,k:Ne};return ie},Xt.default=ne.jsPDF},"./src/plugin/pagebreaks.js":function(jt,Xt,Pt){"use strict";Pt.r(Xt);var oe=Pt("./node_modules/core-js/modules/es.array.concat.js"),zt=Pt.n(oe),Jt=Pt("./node_modules/core-js/modules/es.array.slice.js"),Ct=Pt.n(Jt),et=Pt("./node_modules/core-js/modules/es.array.join.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),rt=Pt.n(lt),ut=Pt("./node_modules/core-js/modules/es.object.keys.js"),ct=Pt.n(ut),wt=Pt("./src/worker.js"),Mt=Pt("./src/utils.js"),Ot={toContainer:wt.default.prototype.toContainer};wt.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},wt.default.prototype.toContainer=function(){return Ot.toContainer.call(this).then(function(){var ae=this.prop.container,de=this.prop.pageSize.inner.px.height,be=[].concat(this.opt.pagebreak.mode),qt={avoidAll:be.indexOf("avoid-all")!==-1,css:be.indexOf("css")!==-1,legacy:be.indexOf("legacy")!==-1},ze={},Vt=this;["before","after","avoid"].forEach(function(Ne){var We=qt.avoidAll&&Ne==="avoid";ze[Ne]=We?[]:[].concat(Vt.opt.pagebreak[Ne]||[]),ze[Ne].length>0&&(ze[Ne]=Array.prototype.slice.call(ae.querySelectorAll(ze[Ne].join(", "))))});var Ge=ae.querySelectorAll(".html2pdf__page-break");Ge=Array.prototype.slice.call(Ge);var _e=ae.querySelectorAll("*");Array.prototype.forEach.call(_e,function(We){var Re={before:!1,after:qt.legacy&&Ge.indexOf(We)!==-1,avoid:qt.avoidAll};if(qt.css){var ve=window.getComputedStyle(We),ie=["always","page","left","right"],Se=["avoid","avoid-page"];Re={before:Re.before||ie.indexOf(ve.breakBefore||ve.pageBreakBefore)!==-1,after:Re.after||ie.indexOf(ve.breakAfter||ve.pageBreakAfter)!==-1,avoid:Re.avoid||Se.indexOf(ve.breakInside||ve.pageBreakInside)!==-1}}Object.keys(Re).forEach(function(fi){Re[fi]=Re[fi]||ze[fi].indexOf(We)!==-1});var Bn=We.getBoundingClientRect();if(Re.avoid&&!Re.before){var Ln=Math.floor(Bn.top/de),Ye=Math.floor(Bn.bottom/de),Mn=Math.abs(Bn.bottom-Bn.top)/de;Ye!==Ln&&Mn<=1&&(Re.before=!0)}if(Re.before){var Wn=(0,Mt.createElement)("div",{style:{display:"block",height:de-Bn.top%de+"px"}});We.parentNode.insertBefore(Wn,We)}if(Re.after){var Wn=(0,Mt.createElement)("div",{style:{display:"block",height:de-Bn.bottom%de+"px"}});We.parentNode.insertBefore(Wn,We.nextSibling)}})})}},"./src/utils.js":function(jt,Xt,Pt){"use strict";Pt.r(Xt),Pt.d(Xt,{objType:function(){return be},createElement:function(){return qt},cloneNode:function(){return ze},unitConvert:function(){return Vt},toPx:function(){return Ge}});var oe=Pt("./node_modules/core-js/modules/es.number.constructor.js"),zt=Pt.n(oe),Jt=Pt("./node_modules/core-js/modules/es.symbol.js"),Ct=Pt.n(Jt),et=Pt("./node_modules/core-js/modules/es.symbol.description.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.object.to-string.js"),rt=Pt.n(lt),ut=Pt("./node_modules/core-js/modules/es.symbol.iterator.js"),ct=Pt.n(ut),wt=Pt("./node_modules/core-js/modules/es.array.iterator.js"),Mt=Pt.n(wt),Ot=Pt("./node_modules/core-js/modules/es.string.iterator.js"),Ht=Pt.n(Ot),ne=Pt("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ae=Pt.n(ne);function de(_e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?de=function(We){return typeof We}:de=function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},de(_e)}var be=function(Ne){var We=de(Ne);return We==="undefined"?"undefined":We==="string"||Ne instanceof String?"string":We==="number"||Ne instanceof Number?"number":We==="function"||Ne instanceof Function?"function":Ne&&Ne.constructor===Array?"array":Ne&&Ne.nodeType===1?"element":We==="object"?"object":"unknown"},qt=function(Ne,We){var Re=document.createElement(Ne);if(We.className&&(Re.className=We.className),We.innerHTML){Re.innerHTML=We.innerHTML;for(var ve=Re.getElementsByTagName("script"),ie=ve.length;ie-- >0;null)ve[ie].parentNode.removeChild(ve[ie])}for(var Se in We.style)Re.style[Se]=We.style[Se];return Re},ze=function _e(Ne,We){for(var Re=Ne.nodeType===3?document.createTextNode(Ne.nodeValue):Ne.cloneNode(!1),ve=Ne.firstChild;ve;ve=ve.nextSibling)(We===!0||ve.nodeType!==1||ve.nodeName!=="SCRIPT")&&Re.appendChild(_e(ve,We));return Ne.nodeType===1&&(Ne.nodeName==="CANVAS"?(Re.width=Ne.width,Re.height=Ne.height,Re.getContext("2d").drawImage(Ne,0,0)):(Ne.nodeName==="TEXTAREA"||Ne.nodeName==="SELECT")&&(Re.value=Ne.value),Re.addEventListener("load",function(){Re.scrollTop=Ne.scrollTop,Re.scrollLeft=Ne.scrollLeft},!0)),Re},Vt=function(Ne,We){if(be(Ne)==="number")return Ne*72/96/We;var Re={};for(var ve in Ne)Re[ve]=Ne[ve]*72/96/We;return Re},Ge=function(Ne,We){return Math.floor(Ne*We/72*96)}},"./src/worker.js":function(jt,Xt,Pt){"use strict";Pt.r(Xt);var oe=Pt("./node_modules/core-js/modules/es.object.assign.js"),zt=Pt.n(oe),Jt=Pt("./node_modules/core-js/modules/es.array.map.js"),Ct=Pt.n(Jt),et=Pt("./node_modules/core-js/modules/es.object.keys.js"),tt=Pt.n(et),lt=Pt("./node_modules/core-js/modules/es.array.concat.js"),rt=Pt.n(lt),ut=Pt("./node_modules/core-js/modules/es.object.to-string.js"),ct=Pt.n(ut),wt=Pt("./node_modules/core-js/modules/es.regexp.to-string.js"),Mt=Pt.n(wt),Ot=Pt("./node_modules/core-js/modules/es.function.name.js"),Ht=Pt.n(Ot),ne=Pt("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ae=Pt.n(ne),de=Pt("jspdf"),be=Pt.n(de),qt=Pt("html2canvas"),ze=Pt.n(qt),Vt=Pt("./src/utils.js"),Ge=Pt("./node_modules/es6-promise/dist/es6-promise.js"),_e=Pt.n(Ge),Ne=_e().Promise,We=function Re(ve){var ie=Object.assign(Re.convert(Ne.resolve()),JSON.parse(JSON.stringify(Re.template))),Se=Re.convert(Ne.resolve(),ie);return Se=Se.setProgress(1,Re,1,[Re]),Se=Se.set(ve),Se};We.prototype=Object.create(Ne.prototype),We.prototype.constructor=We,We.convert=function(ve,ie){return ve.__proto__=ie||We.prototype,ve},We.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:{}}},We.prototype.from=function(ve,ie){function Se(Bn){switch((0,Vt.objType)(Bn)){case"string":return"string";case"element":return Bn.nodeName.toLowerCase&&Bn.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(ie=ie||Se(ve),ie){case"string":return this.set({src:(0,Vt.createElement)("div",{innerHTML:ve})});case"element":return this.set({src:ve});case"canvas":return this.set({canvas:ve});case"img":return this.set({img:ve});default:return this.error("Unknown source type.")}})},We.prototype.to=function(ve){switch(ve){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.")}},We.prototype.toContainer=function(){var ve=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ve).then(function(){var Se={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Bn={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Se.opacity=0;var Ln=(0,Vt.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,Vt.createElement)("div",{className:"html2pdf__overlay",style:Se}),this.prop.container=(0,Vt.createElement)("div",{className:"html2pdf__container",style:Bn}),this.prop.container.appendChild(Ln),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},We.prototype.toCanvas=function(){var ve=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ve).then(function(){var Se=Object.assign({},this.opt.html2canvas);return delete Se.onrendered,qt(this.prop.container,Se)}).then(function(Se){var Bn=this.opt.html2canvas.onrendered||function(){};Bn(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},We.prototype.toImg=function(){var ve=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(ve).then(function(){var Se=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Se})},We.prototype.toPdf=function(){var ve=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ve).then(function(){var Se=this.prop.canvas,Bn=this.opt,Ln=Se.height,Ye=Math.floor(Se.width*this.prop.pageSize.inner.ratio),Mn=Math.ceil(Ln/Ye),Wn=this.prop.pageSize.inner.height,fi=document.createElement("canvas"),Hn=fi.getContext("2d");fi.width=Se.width,fi.height=Ye,this.prop.pdf=this.prop.pdf||new de.jsPDF(Bn.jsPDF);for(var xi=0;xi<Mn;xi++){xi===Mn-1&&Ln%Ye!==0&&(fi.height=Ln%Ye,Wn=fi.height*this.prop.pageSize.inner.width/fi.width);var nn=fi.width,Fi=fi.height;Hn.fillStyle="white",Hn.fillRect(0,0,nn,Fi),Hn.drawImage(Se,0,xi*Ye,nn,Fi,0,0,nn,Fi),xi&&this.prop.pdf.addPage();var ki=fi.toDataURL("image/"+Bn.image.type,Bn.image.quality);this.prop.pdf.addImage(ki,Bn.image.type,Bn.margin[1],Bn.margin[0],this.prop.pageSize.inner.width,Wn)}})},We.prototype.output=function(ve,ie,Se){return Se=Se||"pdf",Se.toLowerCase()==="img"||Se.toLowerCase()==="image"?this.outputImg(ve,ie):this.outputPdf(ve,ie)},We.prototype.outputPdf=function(ve,ie){var Se=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Se).then(function(){return this.prop.pdf.output(ve,ie)})},We.prototype.outputImg=function(ve,ie){var Se=[function(){return this.prop.img||this.toImg()}];return this.thenList(Se).then(function(){switch(ve){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 "'+ve+'" is not supported.'}})},We.prototype.save=function(ve){var ie=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ie).set(ve?{filename:ve}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},We.prototype.set=function(ve){if((0,Vt.objType)(ve)!=="object")return this;var ie=Object.keys(ve||{}).map(function(Se){switch(Se){case"margin":return this.setMargin.bind(this,ve.margin);case"jsPDF":return function(){return this.opt.jsPDF=ve.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ve.pageSize);default:return Se in We.template.prop?function(){this.prop[Se]=ve[Se]}:function(){this.opt[Se]=ve[Se]}}},this);return this.then(function(){return this.thenList(ie)})},We.prototype.get=function(ve,ie){return this.then(function(){var Bn=ve in We.template.prop?this.prop[ve]:this.opt[ve];return ie?ie(Bn):Bn})},We.prototype.setMargin=function(ve){return this.then(function(){switch((0,Vt.objType)(ve)){case"number":ve=[ve,ve,ve,ve];case"array":if(ve.length===2&&(ve=[ve[0],ve[1],ve[0],ve[1]]),ve.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ve}).then(this.setPageSize)},We.prototype.setPageSize=function(ve){return this.then(function(){ve=ve||de.jsPDF.getPageSize(this.opt.jsPDF),ve.hasOwnProperty("inner")||(ve.inner={width:ve.width-this.opt.margin[1]-this.opt.margin[3],height:ve.height-this.opt.margin[0]-this.opt.margin[2]},ve.inner.px={width:(0,Vt.toPx)(ve.inner.width,ve.k),height:(0,Vt.toPx)(ve.inner.height,ve.k)},ve.inner.ratio=ve.inner.height/ve.inner.width),this.prop.pageSize=ve})},We.prototype.setProgress=function(ve,ie,Se,Bn){return ve!=null&&(this.progress.val=ve),ie!=null&&(this.progress.state=ie),Se!=null&&(this.progress.n=Se),Bn!=null&&(this.progress.stack=Bn),this.progress.ratio=this.progress.val/this.progress.state,this},We.prototype.updateProgress=function(ve,ie,Se,Bn){return this.setProgress(ve?this.progress.val+ve:null,ie||null,Se?this.progress.n+Se:null,Bn?this.progress.stack.concat(Bn):null)},We.prototype.then=function(ve,ie){var Se=this;return this.thenCore(ve,ie,function(Ln,Ye){return Se.updateProgress(null,null,1,[Ln]),Ne.prototype.then.call(this,function(Wn){return Se.updateProgress(null,Ln),Wn}).then(Ln,Ye).then(function(Wn){return Se.updateProgress(1),Wn})})},We.prototype.thenCore=function(ve,ie,Se){Se=Se||Ne.prototype.then;var Bn=this;ve&&(ve=ve.bind(Bn)),ie&&(ie=ie.bind(Bn));var Ln=Ne.toString().indexOf("[native code]")!==-1&&Ne.name==="Promise",Ye=Ln?Bn:We.convert(Object.assign({},Bn),Ne.prototype),Mn=Se.call(Ye,ve,ie);return We.convert(Mn,Bn.__proto__)},We.prototype.thenExternal=function(ve,ie){return Ne.prototype.then.call(this,ve,ie)},We.prototype.thenList=function(ve){var ie=this;return ve.forEach(function(Bn){ie=ie.thenCore(Bn)}),ie},We.prototype.catch=function(Re){Re&&(Re=Re.bind(this));var ve=Ne.prototype.catch.call(this,Re);return We.convert(ve,this)},We.prototype.catchExternal=function(ve){return Ne.prototype.catch.call(this,ve)},We.prototype.error=function(ve){return this.then(function(){throw new Error(ve)})},We.prototype.using=We.prototype.set,We.prototype.saveAs=We.prototype.save,We.prototype.export=We.prototype.output,We.prototype.run=We.prototype.then,Xt.default=We},"./node_modules/core-js/internals/a-function.js":function(jt){jt.exports=function(Xt){if(typeof Xt!="function")throw TypeError(String(Xt)+" is not a function");return Xt}},"./node_modules/core-js/internals/a-possible-prototype.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(zt){if(!oe(zt)&&zt!==null)throw TypeError("Can't set "+String(zt)+" as a prototype");return zt}},"./node_modules/core-js/internals/add-to-unscopables.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js"),zt=Pt("./node_modules/core-js/internals/object-create.js"),Jt=Pt("./node_modules/core-js/internals/object-define-property.js"),Ct=oe("unscopables"),et=Array.prototype;et[Ct]==null&&Jt.f(et,Ct,{configurable:!0,value:zt(null)}),jt.exports=function(tt){et[Ct][tt]=!0}},"./node_modules/core-js/internals/an-object.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(zt){if(!oe(zt))throw TypeError(String(zt)+" is not an object");return zt}},"./node_modules/core-js/internals/array-for-each.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/array-iteration.js").forEach,zt=Pt("./node_modules/core-js/internals/array-method-is-strict.js"),Jt=zt("forEach");jt.exports=Jt?[].forEach:function(et){return oe(this,et,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),zt=Pt("./node_modules/core-js/internals/to-length.js"),Jt=Pt("./node_modules/core-js/internals/to-absolute-index.js"),Ct=function(et){return function(tt,lt,rt){var ut=oe(tt),ct=zt(ut.length),wt=Jt(rt,ct),Mt;if(et&&lt!=lt){for(;ct>wt;)if(Mt=ut[wt++],Mt!=Mt)return!0}else for(;ct>wt;wt++)if((et||wt in ut)&&ut[wt]===lt)return et||wt||0;return!et&&-1}};jt.exports={includes:Ct(!0),indexOf:Ct(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/function-bind-context.js"),zt=Pt("./node_modules/core-js/internals/indexed-object.js"),Jt=Pt("./node_modules/core-js/internals/to-object.js"),Ct=Pt("./node_modules/core-js/internals/to-length.js"),et=Pt("./node_modules/core-js/internals/array-species-create.js"),tt=[].push,lt=function(rt){var ut=rt==1,ct=rt==2,wt=rt==3,Mt=rt==4,Ot=rt==6,Ht=rt==7,ne=rt==5||Ot;return function(ae,de,be,qt){for(var ze=Jt(ae),Vt=zt(ze),Ge=oe(de,be,3),_e=Ct(Vt.length),Ne=0,We=qt||et,Re=ut?We(ae,_e):ct||Ht?We(ae,0):void 0,ve,ie;_e>Ne;Ne++)if((ne||Ne in Vt)&&(ve=Vt[Ne],ie=Ge(ve,Ne,ze),rt))if(ut)Re[Ne]=ie;else if(ie)switch(rt){case 3:return!0;case 5:return ve;case 6:return Ne;case 2:tt.call(Re,ve)}else switch(rt){case 4:return!1;case 7:tt.call(Re,ve)}return Ot?-1:wt||Mt?Mt:Re}};jt.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(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),zt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Jt=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Ct=zt("species");jt.exports=function(et){return Jt>=51||!oe(function(){var tt=[],lt=tt.constructor={};return lt[Ct]=function(){return{foo:1}},tt[et](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=function(zt,Jt){var Ct=[][zt];return!!Ct&&oe(function(){Ct.call(null,Jt||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),zt=Pt("./node_modules/core-js/internals/is-array.js"),Jt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Jt("species");jt.exports=function(et){var tt;return zt(et)&&(tt=et.constructor,typeof tt=="function"&&(tt===Array||zt(tt.prototype))?tt=void 0:oe(tt)&&(tt=tt[Ct],tt===null&&(tt=void 0))),tt===void 0?Array:tt}},"./node_modules/core-js/internals/array-species-create.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/array-species-constructor.js");jt.exports=function(zt,Jt){return new(oe(zt))(Jt===0?0:Jt)}},"./node_modules/core-js/internals/classof-raw.js":function(jt){var Xt={}.toString;jt.exports=function(Pt){return Xt.call(Pt).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),zt=Pt("./node_modules/core-js/internals/classof-raw.js"),Jt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Jt("toStringTag"),et=zt(function(){return arguments}())=="Arguments",tt=function(lt,rt){try{return lt[rt]}catch(ut){}};jt.exports=oe?zt:function(lt){var rt,ut,ct;return lt===void 0?"Undefined":lt===null?"Null":typeof(ut=tt(rt=Object(lt),Ct))=="string"?ut:et?zt(rt):(ct=zt(rt))=="Object"&&typeof rt.callee=="function"?"Arguments":ct}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),zt=Pt("./node_modules/core-js/internals/own-keys.js"),Jt=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/object-define-property.js");jt.exports=function(et,tt){for(var lt=zt(tt),rt=Ct.f,ut=Jt.f,ct=0;ct<lt.length;ct++){var wt=lt[ct];oe(et,wt)||rt(et,wt,ut(tt,wt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!oe(function(){function zt(){}return zt.prototype.constructor=null,Object.getPrototypeOf(new zt)!==zt.prototype})},"./node_modules/core-js/internals/create-html.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js"),zt=Pt("./node_modules/core-js/internals/to-string.js"),Jt=/"/g;jt.exports=function(Ct,et,tt,lt){var rt=zt(oe(Ct)),ut="<"+et;return tt!==""&&(ut+=" "+tt+'="'+zt(lt).replace(Jt,"&quot;")+'"'),ut+">"+rt+"</"+et+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,zt=Pt("./node_modules/core-js/internals/object-create.js"),Jt=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),et=Pt("./node_modules/core-js/internals/iterators.js"),tt=function(){return this};jt.exports=function(lt,rt,ut){var ct=rt+" Iterator";return lt.prototype=zt(oe,{next:Jt(1,ut)}),Ct(lt,ct,!1,!0),et[ct]=tt,lt}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),zt=Pt("./node_modules/core-js/internals/object-define-property.js"),Jt=Pt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=oe?function(Ct,et,tt){return zt.f(Ct,et,Jt(1,tt))}:function(Ct,et,tt){return Ct[et]=tt,Ct}},"./node_modules/core-js/internals/create-property-descriptor.js":function(jt){jt.exports=function(Xt,Pt){return{enumerable:!(Xt&1),configurable:!(Xt&2),writable:!(Xt&4),value:Pt}}},"./node_modules/core-js/internals/create-property.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-property-key.js"),zt=Pt("./node_modules/core-js/internals/object-define-property.js"),Jt=Pt("./node_modules/core-js/internals/create-property-descriptor.js");jt.exports=function(Ct,et,tt){var lt=oe(et);lt in Ct?zt.f(Ct,lt,Jt(0,tt)):Ct[lt]=tt}},"./node_modules/core-js/internals/define-iterator.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/create-iterator-constructor.js"),Jt=Pt("./node_modules/core-js/internals/object-get-prototype-of.js"),Ct=Pt("./node_modules/core-js/internals/object-set-prototype-of.js"),et=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),tt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),lt=Pt("./node_modules/core-js/internals/redefine.js"),rt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),ut=Pt("./node_modules/core-js/internals/is-pure.js"),ct=Pt("./node_modules/core-js/internals/iterators.js"),wt=Pt("./node_modules/core-js/internals/iterators-core.js"),Mt=wt.IteratorPrototype,Ot=wt.BUGGY_SAFARI_ITERATORS,Ht=rt("iterator"),ne="keys",ae="values",de="entries",be=function(){return this};jt.exports=function(qt,ze,Vt,Ge,_e,Ne,We){zt(Vt,ze,Ge);var Re=function(Hn){if(Hn===_e&&Ln)return Ln;if(!Ot&&Hn in Se)return Se[Hn];switch(Hn){case ne:return function(){return new Vt(this,Hn)};case ae:return function(){return new Vt(this,Hn)};case de:return function(){return new Vt(this,Hn)}}return function(){return new Vt(this)}},ve=ze+" Iterator",ie=!1,Se=qt.prototype,Bn=Se[Ht]||Se["@@iterator"]||_e&&Se[_e],Ln=!Ot&&Bn||Re(_e),Ye=ze=="Array"&&Se.entries||Bn,Mn,Wn,fi;if(Ye&&(Mn=Jt(Ye.call(new qt)),Mt!==Object.prototype&&Mn.next&&(!ut&&Jt(Mn)!==Mt&&(Ct?Ct(Mn,Mt):typeof Mn[Ht]!="function"&&tt(Mn,Ht,be)),et(Mn,ve,!0,!0),ut&&(ct[ve]=be))),_e==ae&&Bn&&Bn.name!==ae&&(ie=!0,Ln=function(){return Bn.call(this)}),(!ut||We)&&Se[Ht]!==Ln&&tt(Se,Ht,Ln),ct[ze]=Ln,_e)if(Wn={values:Re(ae),keys:Ne?Ln:Re(ne),entries:Re(de)},We)for(fi in Wn)(Ot||ie||!(fi in Se))&&lt(Se,fi,Wn[fi]);else oe({target:ze,proto:!0,forced:Ot||ie},Wn);return Wn}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/path.js"),zt=Pt("./node_modules/core-js/internals/has.js"),Jt=Pt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ct=Pt("./node_modules/core-js/internals/object-define-property.js").f;jt.exports=function(et){var tt=oe.Symbol||(oe.Symbol={});zt(tt,et)||Ct(tt,et,{value:Jt.f(et)})}},"./node_modules/core-js/internals/descriptors.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!oe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/is-object.js"),Jt=oe.document,Ct=zt(Jt)&&zt(Jt.createElement);jt.exports=function(et){return Ct?Jt.createElement(et):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(jt){jt.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(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js");jt.exports=oe("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/engine-user-agent.js"),Jt=oe.process,Ct=oe.Deno,et=Jt&&Jt.versions||Ct&&Ct.version,tt=et&&et.v8,lt,rt;tt?(lt=tt.split("."),rt=lt[0]<4?1:lt[0]+lt[1]):zt&&(lt=zt.match(/Edge\/(\d+)/),(!lt||lt[1]>=74)&&(lt=zt.match(/Chrome\/(\d+)/),lt&&(rt=lt[1]))),jt.exports=rt&&+rt},"./node_modules/core-js/internals/enum-bug-keys.js":function(jt){jt.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Jt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ct=Pt("./node_modules/core-js/internals/redefine.js"),et=Pt("./node_modules/core-js/internals/set-global.js"),tt=Pt("./node_modules/core-js/internals/copy-constructor-properties.js"),lt=Pt("./node_modules/core-js/internals/is-forced.js");jt.exports=function(rt,ut){var ct=rt.target,wt=rt.global,Mt=rt.stat,Ot,Ht,ne,ae,de,be;if(wt?Ht=oe:Mt?Ht=oe[ct]||et(ct,{}):Ht=(oe[ct]||{}).prototype,Ht)for(ne in ut){if(de=ut[ne],rt.noTargetGet?(be=zt(Ht,ne),ae=be&&be.value):ae=Ht[ne],Ot=lt(wt?ne:ct+(Mt?".":"#")+ne,rt.forced),!Ot&&ae!==void 0){if(typeof de==typeof ae)continue;tt(de,ae)}(rt.sham||ae&&ae.sham)&&Jt(de,"sham",!0),Ct(Ht,ne,de,rt)}}},"./node_modules/core-js/internals/fails.js":function(jt){jt.exports=function(Xt){try{return!!Xt()}catch(Pt){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/a-function.js");jt.exports=function(zt,Jt,Ct){if(oe(zt),Jt===void 0)return zt;switch(Ct){case 0:return function(){return zt.call(Jt)};case 1:return function(et){return zt.call(Jt,et)};case 2:return function(et,tt){return zt.call(Jt,et,tt)};case 3:return function(et,tt,lt){return zt.call(Jt,et,tt,lt)}}return function(){return zt.apply(Jt,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=function(Jt){return typeof Jt=="function"?Jt:void 0};jt.exports=function(Jt,Ct){return arguments.length<2?zt(oe[Jt]):oe[Jt]&&oe[Jt][Ct]}},"./node_modules/core-js/internals/global.js":function(jt){var Xt=function(Pt){return Pt&&Pt.Math==Math&&Pt};jt.exports=Xt(typeof globalThis=="object"&&globalThis)||Xt(typeof window=="object"&&window)||Xt(typeof self=="object"&&self)||Xt(typeof bt.g=="object"&&bt.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-object.js"),zt={}.hasOwnProperty;jt.exports=Object.hasOwn||function(Ct,et){return zt.call(oe(Ct),et)}},"./node_modules/core-js/internals/hidden-keys.js":function(jt){jt.exports={}},"./node_modules/core-js/internals/html.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js");jt.exports=oe("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),zt=Pt("./node_modules/core-js/internals/fails.js"),Jt=Pt("./node_modules/core-js/internals/document-create-element.js");jt.exports=!oe&&!zt(function(){return Object.defineProperty(Jt("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),zt=Pt("./node_modules/core-js/internals/classof-raw.js"),Jt="".split;jt.exports=oe(function(){return!Object("z").propertyIsEnumerable(0)})?function(Ct){return zt(Ct)=="String"?Jt.call(Ct,""):Object(Ct)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),zt=Pt("./node_modules/core-js/internals/object-set-prototype-of.js");jt.exports=function(Jt,Ct,et){var tt,lt;return zt&&typeof(tt=Ct.constructor)=="function"&&tt!==et&&oe(lt=tt.prototype)&&lt!==et.prototype&&zt(Jt,lt),Jt}},"./node_modules/core-js/internals/inspect-source.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/shared-store.js"),zt=Function.toString;typeof oe.inspectSource!="function"&&(oe.inspectSource=function(Jt){return zt.call(Jt)}),jt.exports=oe.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/native-weak-map.js"),zt=Pt("./node_modules/core-js/internals/global.js"),Jt=Pt("./node_modules/core-js/internals/is-object.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Pt("./node_modules/core-js/internals/has.js"),tt=Pt("./node_modules/core-js/internals/shared-store.js"),lt=Pt("./node_modules/core-js/internals/shared-key.js"),rt=Pt("./node_modules/core-js/internals/hidden-keys.js"),ut="Object already initialized",ct=zt.WeakMap,wt,Mt,Ot,Ht=function(Vt){return Ot(Vt)?Mt(Vt):wt(Vt,{})},ne=function(Vt){return function(Ge){var _e;if(!Jt(Ge)||(_e=Mt(Ge)).type!==Vt)throw TypeError("Incompatible receiver, "+Vt+" required");return _e}};if(oe||tt.state){var ae=tt.state||(tt.state=new ct),de=ae.get,be=ae.has,qt=ae.set;wt=function(Vt,Ge){if(be.call(ae,Vt))throw new TypeError(ut);return Ge.facade=Vt,qt.call(ae,Vt,Ge),Ge},Mt=function(Vt){return de.call(ae,Vt)||{}},Ot=function(Vt){return be.call(ae,Vt)}}else{var ze=lt("state");rt[ze]=!0,wt=function(Vt,Ge){if(et(Vt,ze))throw new TypeError(ut);return Ge.facade=Vt,Ct(Vt,ze,Ge),Ge},Mt=function(Vt){return et(Vt,ze)?Vt[ze]:{}},Ot=function(Vt){return et(Vt,ze)}}jt.exports={set:wt,get:Mt,has:Ot,enforce:Ht,getterFor:ne}},"./node_modules/core-js/internals/is-array.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/classof-raw.js");jt.exports=Array.isArray||function(Jt){return oe(Jt)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js"),zt=/#|\.prototype\./,Jt=function(rt,ut){var ct=et[Ct(rt)];return ct==lt?!0:ct==tt?!1:typeof ut=="function"?oe(ut):!!ut},Ct=Jt.normalize=function(rt){return String(rt).replace(zt,".").toLowerCase()},et=Jt.data={},tt=Jt.NATIVE="N",lt=Jt.POLYFILL="P";jt.exports=Jt},"./node_modules/core-js/internals/is-object.js":function(jt){jt.exports=function(Xt){return typeof Xt=="object"?Xt!==null:typeof Xt=="function"}},"./node_modules/core-js/internals/is-pure.js":function(jt){jt.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js"),zt=Pt("./node_modules/core-js/internals/use-symbol-as-uid.js");jt.exports=zt?function(Jt){return typeof Jt=="symbol"}:function(Jt){var Ct=oe("Symbol");return typeof Ct=="function"&&Object(Jt)instanceof Ct}},"./node_modules/core-js/internals/iterators-core.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/fails.js"),zt=Pt("./node_modules/core-js/internals/object-get-prototype-of.js"),Jt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ct=Pt("./node_modules/core-js/internals/has.js"),et=Pt("./node_modules/core-js/internals/well-known-symbol.js"),tt=Pt("./node_modules/core-js/internals/is-pure.js"),lt=et("iterator"),rt=!1,ut=function(){return this},ct,wt,Mt;[].keys&&(Mt=[].keys(),"next"in Mt?(wt=zt(zt(Mt)),wt!==Object.prototype&&(ct=wt)):rt=!0);var Ot=ct==null||oe(function(){var Ht={};return ct[lt].call(Ht)!==Ht});Ot&&(ct={}),(!tt||Ot)&&!Ct(ct,lt)&&Jt(ct,lt,ut),jt.exports={IteratorPrototype:ct,BUGGY_SAFARI_ITERATORS:rt}},"./node_modules/core-js/internals/iterators.js":function(jt){jt.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/engine-v8-version.js"),zt=Pt("./node_modules/core-js/internals/fails.js");jt.exports=!!Object.getOwnPropertySymbols&&!zt(function(){var Jt=Symbol();return!String(Jt)||!(Object(Jt)instanceof Symbol)||!Symbol.sham&&oe&&oe<41})},"./node_modules/core-js/internals/native-weak-map.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/inspect-source.js"),Jt=oe.WeakMap;jt.exports=typeof Jt=="function"&&/native code/.test(zt(Jt))},"./node_modules/core-js/internals/object-assign.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/descriptors.js"),zt=Pt("./node_modules/core-js/internals/fails.js"),Jt=Pt("./node_modules/core-js/internals/object-keys.js"),Ct=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),et=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),tt=Pt("./node_modules/core-js/internals/to-object.js"),lt=Pt("./node_modules/core-js/internals/indexed-object.js"),rt=Object.assign,ut=Object.defineProperty;jt.exports=!rt||zt(function(){if(oe&&rt({b:1},rt(ut({},"a",{enumerable:!0,get:function(){ut(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ct={},wt={},Mt=Symbol(),Ot="abcdefghijklmnopqrst";return ct[Mt]=7,Ot.split("").forEach(function(Ht){wt[Ht]=Ht}),rt({},ct)[Mt]!=7||Jt(rt({},wt)).join("")!=Ot})?function(wt,Mt){for(var Ot=tt(wt),Ht=arguments.length,ne=1,ae=Ct.f,de=et.f;Ht>ne;)for(var be=lt(arguments[ne++]),qt=ae?Jt(be).concat(ae(be)):Jt(be),ze=qt.length,Vt=0,Ge;ze>Vt;)Ge=qt[Vt++],(!oe||de.call(be,Ge))&&(Ot[Ge]=be[Ge]);return Ot}:rt},"./node_modules/core-js/internals/object-create.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/an-object.js"),zt=Pt("./node_modules/core-js/internals/object-define-properties.js"),Jt=Pt("./node_modules/core-js/internals/enum-bug-keys.js"),Ct=Pt("./node_modules/core-js/internals/hidden-keys.js"),et=Pt("./node_modules/core-js/internals/html.js"),tt=Pt("./node_modules/core-js/internals/document-create-element.js"),lt=Pt("./node_modules/core-js/internals/shared-key.js"),rt=">",ut="<",ct="prototype",wt="script",Mt=lt("IE_PROTO"),Ot=function(){},Ht=function(qt){return ut+wt+rt+qt+ut+"/"+wt+rt},ne=function(qt){qt.write(Ht("")),qt.close();var ze=qt.parentWindow.Object;return qt=null,ze},ae=function(){var qt=tt("iframe"),ze="java"+wt+":",Vt;if(qt.style)return qt.style.display="none",et.appendChild(qt),qt.src=String(ze),Vt=qt.contentWindow.document,Vt.open(),Vt.write(Ht("document.F=Object")),Vt.close(),Vt.F},de,be=function(){try{de=new ActiveXObject("htmlfile")}catch(ze){}be=document.domain&&de?ne(de):ae()||ne(de);for(var qt=Jt.length;qt--;)delete be[ct][Jt[qt]];return be()};Ct[Mt]=!0,jt.exports=Object.create||function(ze,Vt){var Ge;return ze!==null?(Ot[ct]=oe(ze),Ge=new Ot,Ot[ct]=null,Ge[Mt]=ze):Ge=be(),Vt===void 0?Ge:zt(Ge,Vt)}},"./node_modules/core-js/internals/object-define-properties.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),zt=Pt("./node_modules/core-js/internals/object-define-property.js"),Jt=Pt("./node_modules/core-js/internals/an-object.js"),Ct=Pt("./node_modules/core-js/internals/object-keys.js");jt.exports=oe?Object.defineProperties:function(tt,lt){Jt(tt);for(var rt=Ct(lt),ut=rt.length,ct=0,wt;ut>ct;)zt.f(tt,wt=rt[ct++],lt[wt]);return tt}},"./node_modules/core-js/internals/object-define-property.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),zt=Pt("./node_modules/core-js/internals/ie8-dom-define.js"),Jt=Pt("./node_modules/core-js/internals/an-object.js"),Ct=Pt("./node_modules/core-js/internals/to-property-key.js"),et=Object.defineProperty;Xt.f=oe?et:function(lt,rt,ut){if(Jt(lt),rt=Ct(rt),Jt(ut),zt)try{return et(lt,rt,ut)}catch(ct){}if("get"in ut||"set"in ut)throw TypeError("Accessors not supported");return"value"in ut&&(lt[rt]=ut.value),lt}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),zt=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),Jt=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),Ct=Pt("./node_modules/core-js/internals/to-indexed-object.js"),et=Pt("./node_modules/core-js/internals/to-property-key.js"),tt=Pt("./node_modules/core-js/internals/has.js"),lt=Pt("./node_modules/core-js/internals/ie8-dom-define.js"),rt=Object.getOwnPropertyDescriptor;Xt.f=oe?rt:function(ct,wt){if(ct=Ct(ct),wt=et(wt),lt)try{return rt(ct,wt)}catch(Mt){}if(tt(ct,wt))return Jt(!zt.f.call(ct,wt),ct[wt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),zt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js").f,Jt={}.toString,Ct=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],et=function(tt){try{return zt(tt)}catch(lt){return Ct.slice()}};jt.exports.f=function(lt){return Ct&&Jt.call(lt)=="[object Window]"?et(lt):zt(oe(lt))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/object-keys-internal.js"),zt=Pt("./node_modules/core-js/internals/enum-bug-keys.js"),Jt=zt.concat("length","prototype");Xt.f=Object.getOwnPropertyNames||function(et){return oe(et,Jt)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(jt,Xt){Xt.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),zt=Pt("./node_modules/core-js/internals/to-object.js"),Jt=Pt("./node_modules/core-js/internals/shared-key.js"),Ct=Pt("./node_modules/core-js/internals/correct-prototype-getter.js"),et=Jt("IE_PROTO"),tt=Object.prototype;jt.exports=Ct?Object.getPrototypeOf:function(lt){return lt=zt(lt),oe(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(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/has.js"),zt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Jt=Pt("./node_modules/core-js/internals/array-includes.js").indexOf,Ct=Pt("./node_modules/core-js/internals/hidden-keys.js");jt.exports=function(et,tt){var lt=zt(et),rt=0,ut=[],ct;for(ct in lt)!oe(Ct,ct)&&oe(lt,ct)&&ut.push(ct);for(;tt.length>rt;)oe(lt,ct=tt[rt++])&&(~Jt(ut,ct)||ut.push(ct));return ut}},"./node_modules/core-js/internals/object-keys.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/object-keys-internal.js"),zt=Pt("./node_modules/core-js/internals/enum-bug-keys.js");jt.exports=Object.keys||function(Ct){return oe(Ct,zt)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(jt,Xt){"use strict";var Pt={}.propertyIsEnumerable,oe=Object.getOwnPropertyDescriptor,zt=oe&&!Pt.call({1:2},1);Xt.f=zt?function(Ct){var et=oe(this,Ct);return!!et&&et.enumerable}:Pt},"./node_modules/core-js/internals/object-set-prototype-of.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/an-object.js"),zt=Pt("./node_modules/core-js/internals/a-possible-prototype.js");jt.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Jt=!1,Ct={},et;try{et=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,et.call(Ct,[]),Jt=Ct instanceof Array}catch(tt){}return function(lt,rt){return oe(lt),zt(rt),Jt?et.call(lt,rt):lt.__proto__=rt,lt}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),zt=Pt("./node_modules/core-js/internals/classof.js");jt.exports=oe?{}.toString:function(){return"[object "+zt(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js");jt.exports=function(zt,Jt){var Ct,et;if(Jt==="string"&&typeof(Ct=zt.toString)=="function"&&!oe(et=Ct.call(zt))||typeof(Ct=zt.valueOf)=="function"&&!oe(et=Ct.call(zt))||Jt!=="string"&&typeof(Ct=zt.toString)=="function"&&!oe(et=Ct.call(zt)))return et;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/get-built-in.js"),zt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js"),Jt=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ct=Pt("./node_modules/core-js/internals/an-object.js");jt.exports=oe("Reflect","ownKeys")||function(tt){var lt=zt.f(Ct(tt)),rt=Jt.f;return rt?lt.concat(rt(tt)):lt}},"./node_modules/core-js/internals/path.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js");jt.exports=oe},"./node_modules/core-js/internals/redefine.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),Jt=Pt("./node_modules/core-js/internals/has.js"),Ct=Pt("./node_modules/core-js/internals/set-global.js"),et=Pt("./node_modules/core-js/internals/inspect-source.js"),tt=Pt("./node_modules/core-js/internals/internal-state.js"),lt=tt.get,rt=tt.enforce,ut=String(String).split("String");(jt.exports=function(ct,wt,Mt,Ot){var Ht=Ot?!!Ot.unsafe:!1,ne=Ot?!!Ot.enumerable:!1,ae=Ot?!!Ot.noTargetGet:!1,de;if(typeof Mt=="function"&&(typeof wt=="string"&&!Jt(Mt,"name")&&zt(Mt,"name",wt),de=rt(Mt),de.source||(de.source=ut.join(typeof wt=="string"?wt:""))),ct===oe){ne?ct[wt]=Mt:Ct(wt,Mt);return}else Ht?!ae&&ct[wt]&&(ne=!0):delete ct[wt];ne?ct[wt]=Mt:zt(ct,wt,Mt)})(Function.prototype,"toString",function(){return typeof this=="function"&&lt(this).source||et(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/an-object.js");jt.exports=function(){var zt=oe(this),Jt="";return zt.global&&(Jt+="g"),zt.ignoreCase&&(Jt+="i"),zt.multiline&&(Jt+="m"),zt.dotAll&&(Jt+="s"),zt.unicode&&(Jt+="u"),zt.sticky&&(Jt+="y"),Jt}},"./node_modules/core-js/internals/require-object-coercible.js":function(jt){jt.exports=function(Xt){if(Xt==null)throw TypeError("Can't call method on "+Xt);return Xt}},"./node_modules/core-js/internals/set-global.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js");jt.exports=function(zt,Jt){try{Object.defineProperty(oe,zt,{value:Jt,configurable:!0,writable:!0})}catch(Ct){oe[zt]=Jt}return Jt}},"./node_modules/core-js/internals/set-to-string-tag.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/object-define-property.js").f,zt=Pt("./node_modules/core-js/internals/has.js"),Jt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Ct=Jt("toStringTag");jt.exports=function(et,tt,lt){et&&!zt(et=lt?et:et.prototype,Ct)&&oe(et,Ct,{configurable:!0,value:tt})}},"./node_modules/core-js/internals/shared-key.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/shared.js"),zt=Pt("./node_modules/core-js/internals/uid.js"),Jt=oe("keys");jt.exports=function(Ct){return Jt[Ct]||(Jt[Ct]=zt(Ct))}},"./node_modules/core-js/internals/shared-store.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/set-global.js"),Jt="__core-js_shared__",Ct=oe[Jt]||zt(Jt,{});jt.exports=Ct},"./node_modules/core-js/internals/shared.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/is-pure.js"),zt=Pt("./node_modules/core-js/internals/shared-store.js");(jt.exports=function(Jt,Ct){return zt[Jt]||(zt[Jt]=Ct!==void 0?Ct:{})})("versions",[]).push({version:"3.16.0",mode:oe?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/fails.js");jt.exports=function(zt){return oe(function(){var Jt=""[zt]('"');return Jt!==Jt.toLowerCase()||Jt.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),zt=Pt("./node_modules/core-js/internals/to-string.js"),Jt=Pt("./node_modules/core-js/internals/require-object-coercible.js"),Ct=function(et){return function(tt,lt){var rt=zt(Jt(tt)),ut=oe(lt),ct=rt.length,wt,Mt;return ut<0||ut>=ct?et?"":void 0:(wt=rt.charCodeAt(ut),wt<55296||wt>56319||ut+1===ct||(Mt=rt.charCodeAt(ut+1))<56320||Mt>57343?et?rt.charAt(ut):wt:et?rt.slice(ut,ut+2):(wt-55296<<10)+(Mt-56320)+65536)}};jt.exports={codeAt:Ct(!1),charAt:Ct(!0)}},"./node_modules/core-js/internals/string-trim.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js"),zt=Pt("./node_modules/core-js/internals/to-string.js"),Jt=Pt("./node_modules/core-js/internals/whitespaces.js"),Ct="["+Jt+"]",et=RegExp("^"+Ct+Ct+"*"),tt=RegExp(Ct+Ct+"*$"),lt=function(rt){return function(ut){var ct=zt(oe(ut));return rt&1&&(ct=ct.replace(et,"")),rt&2&&(ct=ct.replace(tt,"")),ct}};jt.exports={start:lt(1),end:lt(2),trim:lt(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),zt=Math.max,Jt=Math.min;jt.exports=function(Ct,et){var tt=oe(Ct);return tt<0?zt(tt+et,0):Jt(tt,et)}},"./node_modules/core-js/internals/to-indexed-object.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/indexed-object.js"),zt=Pt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function(Jt){return oe(zt(Jt))}},"./node_modules/core-js/internals/to-integer.js":function(jt){var Xt=Math.ceil,Pt=Math.floor;jt.exports=function(oe){return isNaN(oe=+oe)?0:(oe>0?Pt:Xt)(oe)}},"./node_modules/core-js/internals/to-length.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-integer.js"),zt=Math.min;jt.exports=function(Jt){return Jt>0?zt(oe(Jt),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/require-object-coercible.js");jt.exports=function(zt){return Object(oe(zt))}},"./node_modules/core-js/internals/to-primitive.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/is-object.js"),zt=Pt("./node_modules/core-js/internals/is-symbol.js"),Jt=Pt("./node_modules/core-js/internals/ordinary-to-primitive.js"),Ct=Pt("./node_modules/core-js/internals/well-known-symbol.js"),et=Ct("toPrimitive");jt.exports=function(tt,lt){if(!oe(tt)||zt(tt))return tt;var rt=tt[et],ut;if(rt!==void 0){if(lt===void 0&&(lt="default"),ut=rt.call(tt,lt),!oe(ut)||zt(ut))return ut;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(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-primitive.js"),zt=Pt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function(Jt){var Ct=oe(Jt,"string");return zt(Ct)?Ct:String(Ct)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js"),zt=oe("toStringTag"),Jt={};Jt[zt]="z",jt.exports=String(Jt)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/is-symbol.js");jt.exports=function(zt){if(oe(zt))throw TypeError("Cannot convert a Symbol value to a string");return String(zt)}},"./node_modules/core-js/internals/uid.js":function(jt){var Xt=0,Pt=Math.random();jt.exports=function(oe){return"Symbol("+String(oe===void 0?"":oe)+")_"+(++Xt+Pt).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/native-symbol.js");jt.exports=oe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/well-known-symbol.js");Xt.f=oe},"./node_modules/core-js/internals/well-known-symbol.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/shared.js"),Jt=Pt("./node_modules/core-js/internals/has.js"),Ct=Pt("./node_modules/core-js/internals/uid.js"),et=Pt("./node_modules/core-js/internals/native-symbol.js"),tt=Pt("./node_modules/core-js/internals/use-symbol-as-uid.js"),lt=zt("wks"),rt=oe.Symbol,ut=tt?rt:rt&&rt.withoutSetter||Ct;jt.exports=function(ct){return(!Jt(lt,ct)||!(et||typeof lt[ct]=="string"))&&(et&&Jt(rt,ct)?lt[ct]=rt[ct]:lt[ct]=ut("Symbol."+ct)),lt[ct]}},"./node_modules/core-js/internals/whitespaces.js":function(jt){jt.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(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/fails.js"),Jt=Pt("./node_modules/core-js/internals/is-array.js"),Ct=Pt("./node_modules/core-js/internals/is-object.js"),et=Pt("./node_modules/core-js/internals/to-object.js"),tt=Pt("./node_modules/core-js/internals/to-length.js"),lt=Pt("./node_modules/core-js/internals/create-property.js"),rt=Pt("./node_modules/core-js/internals/array-species-create.js"),ut=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),ct=Pt("./node_modules/core-js/internals/well-known-symbol.js"),wt=Pt("./node_modules/core-js/internals/engine-v8-version.js"),Mt=ct("isConcatSpreadable"),Ot=9007199254740991,Ht="Maximum allowed index exceeded",ne=wt>=51||!zt(function(){var qt=[];return qt[Mt]=!1,qt.concat()[0]!==qt}),ae=ut("concat"),de=function(qt){if(!Ct(qt))return!1;var ze=qt[Mt];return ze!==void 0?!!ze:Jt(qt)},be=!ne||!ae;oe({target:"Array",proto:!0,forced:be},{concat:function(ze){var Vt=et(this),Ge=rt(Vt,0),_e=0,Ne,We,Re,ve,ie;for(Ne=-1,Re=arguments.length;Ne<Re;Ne++)if(ie=Ne===-1?Vt:arguments[Ne],de(ie)){if(ve=tt(ie.length),_e+ve>Ot)throw TypeError(Ht);for(We=0;We<ve;We++,_e++)We in ie&&lt(Ge,_e,ie[We])}else{if(_e>=Ot)throw TypeError(Ht);lt(Ge,_e++,ie)}return Ge.length=_e,Ge}})},"./node_modules/core-js/modules/es.array.iterator.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/to-indexed-object.js"),zt=Pt("./node_modules/core-js/internals/add-to-unscopables.js"),Jt=Pt("./node_modules/core-js/internals/iterators.js"),Ct=Pt("./node_modules/core-js/internals/internal-state.js"),et=Pt("./node_modules/core-js/internals/define-iterator.js"),tt="Array Iterator",lt=Ct.set,rt=Ct.getterFor(tt);jt.exports=et(Array,"Array",function(ut,ct){lt(this,{type:tt,target:oe(ut),index:0,kind:ct})},function(){var ut=rt(this),ct=ut.target,wt=ut.kind,Mt=ut.index++;return!ct||Mt>=ct.length?(ut.target=void 0,{value:void 0,done:!0}):wt=="keys"?{value:Mt,done:!1}:wt=="values"?{value:ct[Mt],done:!1}:{value:[Mt,ct[Mt]],done:!1}},"values"),Jt.Arguments=Jt.Array,zt("keys"),zt("values"),zt("entries")},"./node_modules/core-js/modules/es.array.join.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/indexed-object.js"),Jt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),Ct=Pt("./node_modules/core-js/internals/array-method-is-strict.js"),et=[].join,tt=zt!=Object,lt=Ct("join",",");oe({target:"Array",proto:!0,forced:tt||!lt},{join:function(ut){return et.call(Jt(this),ut===void 0?",":ut)}})},"./node_modules/core-js/modules/es.array.map.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/array-iteration.js").map,Jt=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),Ct=Jt("map");oe({target:"Array",proto:!0,forced:!Ct},{map:function(tt){return zt(this,tt,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/is-object.js"),Jt=Pt("./node_modules/core-js/internals/is-array.js"),Ct=Pt("./node_modules/core-js/internals/to-absolute-index.js"),et=Pt("./node_modules/core-js/internals/to-length.js"),tt=Pt("./node_modules/core-js/internals/to-indexed-object.js"),lt=Pt("./node_modules/core-js/internals/create-property.js"),rt=Pt("./node_modules/core-js/internals/well-known-symbol.js"),ut=Pt("./node_modules/core-js/internals/array-method-has-species-support.js"),ct=ut("slice"),wt=rt("species"),Mt=[].slice,Ot=Math.max;oe({target:"Array",proto:!0,forced:!ct},{slice:function(ne,ae){var de=tt(this),be=et(de.length),qt=Ct(ne,be),ze=Ct(ae===void 0?be:ae,be),Vt,Ge,_e;if(Jt(de)&&(Vt=de.constructor,typeof Vt=="function"&&(Vt===Array||Jt(Vt.prototype))?Vt=void 0:zt(Vt)&&(Vt=Vt[wt],Vt===null&&(Vt=void 0)),Vt===Array||Vt===void 0))return Mt.call(de,qt,ze);for(Ge=new(Vt===void 0?Array:Vt)(Ot(ze-qt,0)),_e=0;qt<ze;qt++,_e++)qt in de&&lt(Ge,_e,de[qt]);return Ge.length=_e,Ge}})},"./node_modules/core-js/modules/es.function.name.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/descriptors.js"),zt=Pt("./node_modules/core-js/internals/object-define-property.js").f,Jt=Function.prototype,Ct=Jt.toString,et=/^\s*function ([^ (]*)/,tt="name";oe&&!(tt in Jt)&&zt(Jt,tt,{configurable:!0,get:function(){try{return Ct.call(this).match(et)[1]}catch(lt){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/descriptors.js"),zt=Pt("./node_modules/core-js/internals/global.js"),Jt=Pt("./node_modules/core-js/internals/is-forced.js"),Ct=Pt("./node_modules/core-js/internals/redefine.js"),et=Pt("./node_modules/core-js/internals/has.js"),tt=Pt("./node_modules/core-js/internals/classof-raw.js"),lt=Pt("./node_modules/core-js/internals/inherit-if-required.js"),rt=Pt("./node_modules/core-js/internals/is-symbol.js"),ut=Pt("./node_modules/core-js/internals/to-primitive.js"),ct=Pt("./node_modules/core-js/internals/fails.js"),wt=Pt("./node_modules/core-js/internals/object-create.js"),Mt=Pt("./node_modules/core-js/internals/object-get-own-property-names.js").f,Ot=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Ht=Pt("./node_modules/core-js/internals/object-define-property.js").f,ne=Pt("./node_modules/core-js/internals/string-trim.js").trim,ae="Number",de=zt[ae],be=de.prototype,qt=tt(wt(be))==ae,ze=function(We){if(rt(We))throw TypeError("Cannot convert a Symbol value to a number");var Re=ut(We,"number"),ve,ie,Se,Bn,Ln,Ye,Mn,Wn;if(typeof Re=="string"&&Re.length>2){if(Re=ne(Re),ve=Re.charCodeAt(0),ve===43||ve===45){if(ie=Re.charCodeAt(2),ie===88||ie===120)return NaN}else if(ve===48){switch(Re.charCodeAt(1)){case 66:case 98:Se=2,Bn=49;break;case 79:case 111:Se=8,Bn=55;break;default:return+Re}for(Ln=Re.slice(2),Ye=Ln.length,Mn=0;Mn<Ye;Mn++)if(Wn=Ln.charCodeAt(Mn),Wn<48||Wn>Bn)return NaN;return parseInt(Ln,Se)}}return+Re};if(Jt(ae,!de(" 0o1")||!de("0b1")||de("+0x1"))){for(var Vt=function(Re){var ve=arguments.length<1?0:Re,ie=this;return ie instanceof Vt&&(qt?ct(function(){be.valueOf.call(ie)}):tt(ie)!=ae)?lt(new de(ze(ve)),ie,Vt):ze(ve)},Ge=oe?Mt(de):"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(","),_e=0,Ne;Ge.length>_e;_e++)et(de,Ne=Ge[_e])&&!et(Vt,Ne)&&Ht(Vt,Ne,Ot(de,Ne));Vt.prototype=be,be.constructor=Vt,Ct(zt,ae,Vt)}},"./node_modules/core-js/modules/es.object.assign.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/object-assign.js");oe({target:"Object",stat:!0,forced:Object.assign!==zt},{assign:zt})},"./node_modules/core-js/modules/es.object.keys.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/to-object.js"),Jt=Pt("./node_modules/core-js/internals/object-keys.js"),Ct=Pt("./node_modules/core-js/internals/fails.js"),et=Ct(function(){Jt(1)});oe({target:"Object",stat:!0,forced:et},{keys:function(lt){return Jt(zt(lt))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/to-string-tag-support.js"),zt=Pt("./node_modules/core-js/internals/redefine.js"),Jt=Pt("./node_modules/core-js/internals/object-to-string.js");oe||zt(Object.prototype,"toString",Jt,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/redefine.js"),zt=Pt("./node_modules/core-js/internals/an-object.js"),Jt=Pt("./node_modules/core-js/internals/to-string.js"),Ct=Pt("./node_modules/core-js/internals/fails.js"),et=Pt("./node_modules/core-js/internals/regexp-flags.js"),tt="toString",lt=RegExp.prototype,rt=lt[tt],ut=Ct(function(){return rt.call({source:"a",flags:"b"})!="/a/b"}),ct=rt.name!=tt;(ut||ct)&&oe(RegExp.prototype,tt,function(){var Mt=zt(this),Ot=Jt(Mt.source),Ht=Mt.flags,ne=Jt(Ht===void 0&&Mt instanceof RegExp&&!("flags"in lt)?et.call(Mt):Ht);return"/"+Ot+"/"+ne},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/string-multibyte.js").charAt,zt=Pt("./node_modules/core-js/internals/to-string.js"),Jt=Pt("./node_modules/core-js/internals/internal-state.js"),Ct=Pt("./node_modules/core-js/internals/define-iterator.js"),et="String Iterator",tt=Jt.set,lt=Jt.getterFor(et);Ct(String,"String",function(rt){tt(this,{type:et,string:zt(rt),index:0})},function(){var ut=lt(this),ct=ut.string,wt=ut.index,Mt;return wt>=ct.length?{value:void 0,done:!0}:(Mt=oe(ct,wt),ut.index+=Mt.length,{value:Mt,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/create-html.js"),Jt=Pt("./node_modules/core-js/internals/string-html-forced.js");oe({target:"String",proto:!0,forced:Jt("link")},{link:function(et){return zt(this,"a","href",et)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/descriptors.js"),Jt=Pt("./node_modules/core-js/internals/global.js"),Ct=Pt("./node_modules/core-js/internals/has.js"),et=Pt("./node_modules/core-js/internals/is-object.js"),tt=Pt("./node_modules/core-js/internals/object-define-property.js").f,lt=Pt("./node_modules/core-js/internals/copy-constructor-properties.js"),rt=Jt.Symbol;if(zt&&typeof rt=="function"&&(!("description"in rt.prototype)||rt().description!==void 0)){var ut={},ct=function(){var ae=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),de=this instanceof ct?new rt(ae):ae===void 0?rt():rt(ae);return ae===""&&(ut[de]=!0),de};lt(ct,rt);var wt=ct.prototype=rt.prototype;wt.constructor=ct;var Mt=wt.toString,Ot=String(rt("test"))=="Symbol(test)",Ht=/^Symbol\((.*)\)[^)]+$/;tt(wt,"description",{configurable:!0,get:function(){var ae=et(this)?this.valueOf():this,de=Mt.call(ae);if(Ct(ut,ae))return"";var be=Ot?de.slice(7,-1):de.replace(Ht,"$1");return be===""?void 0:be}}),oe({global:!0,forced:!0},{Symbol:ct})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/define-well-known-symbol.js");oe("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(jt,Xt,Pt){"use strict";var oe=Pt("./node_modules/core-js/internals/export.js"),zt=Pt("./node_modules/core-js/internals/global.js"),Jt=Pt("./node_modules/core-js/internals/get-built-in.js"),Ct=Pt("./node_modules/core-js/internals/is-pure.js"),et=Pt("./node_modules/core-js/internals/descriptors.js"),tt=Pt("./node_modules/core-js/internals/native-symbol.js"),lt=Pt("./node_modules/core-js/internals/fails.js"),rt=Pt("./node_modules/core-js/internals/has.js"),ut=Pt("./node_modules/core-js/internals/is-array.js"),ct=Pt("./node_modules/core-js/internals/is-object.js"),wt=Pt("./node_modules/core-js/internals/is-symbol.js"),Mt=Pt("./node_modules/core-js/internals/an-object.js"),Ot=Pt("./node_modules/core-js/internals/to-object.js"),Ht=Pt("./node_modules/core-js/internals/to-indexed-object.js"),ne=Pt("./node_modules/core-js/internals/to-property-key.js"),ae=Pt("./node_modules/core-js/internals/to-string.js"),de=Pt("./node_modules/core-js/internals/create-property-descriptor.js"),be=Pt("./node_modules/core-js/internals/object-create.js"),qt=Pt("./node_modules/core-js/internals/object-keys.js"),ze=Pt("./node_modules/core-js/internals/object-get-own-property-names.js"),Vt=Pt("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ge=Pt("./node_modules/core-js/internals/object-get-own-property-symbols.js"),_e=Pt("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ne=Pt("./node_modules/core-js/internals/object-define-property.js"),We=Pt("./node_modules/core-js/internals/object-property-is-enumerable.js"),Re=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),ve=Pt("./node_modules/core-js/internals/redefine.js"),ie=Pt("./node_modules/core-js/internals/shared.js"),Se=Pt("./node_modules/core-js/internals/shared-key.js"),Bn=Pt("./node_modules/core-js/internals/hidden-keys.js"),Ln=Pt("./node_modules/core-js/internals/uid.js"),Ye=Pt("./node_modules/core-js/internals/well-known-symbol.js"),Mn=Pt("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Wn=Pt("./node_modules/core-js/internals/define-well-known-symbol.js"),fi=Pt("./node_modules/core-js/internals/set-to-string-tag.js"),Hn=Pt("./node_modules/core-js/internals/internal-state.js"),xi=Pt("./node_modules/core-js/internals/array-iteration.js").forEach,nn=Se("hidden"),Fi="Symbol",ki="prototype",Nt=Ye("toPrimitive"),Dt=Hn.set,mt=Hn.getterFor(Fi),ft=Object[ki],pt=zt.Symbol,At=Jt("JSON","stringify"),ue=_e.f,we=Ne.f,le=Vt.f,me=We.f,Ue=ie("symbols"),ke=ie("op-symbols"),Ie=ie("string-to-symbol-registry"),rn=ie("symbol-to-string-registry"),Gn=ie("wks"),dn=zt.QObject,An=!dn||!dn[ki]||!dn[ki].findChild,Dn=et&&lt(function(){return be(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a!=7})?function(Kr,gr,Vr){var pr=ue(ft,gr);pr&&delete ft[gr],we(Kr,gr,Vr),pr&&Kr!==ft&&we(ft,gr,pr)}:we,qn=function(Kr,gr){var Vr=Ue[Kr]=be(pt[ki]);return Dt(Vr,{type:Fi,tag:Kr,description:gr}),et||(Vr.description=gr),Vr},Rn=function(gr,Vr,pr){gr===ft&&Rn(ke,Vr,pr),Mt(gr);var zo=ne(Vr);return Mt(pr),rt(Ue,zo)?(pr.enumerable?(rt(gr,nn)&&gr[nn][zo]&&(gr[nn][zo]=!1),pr=be(pr,{enumerable:de(0,!1)})):(rt(gr,nn)||we(gr,nn,de(1,{})),gr[nn][zo]=!0),Dn(gr,zo,pr)):we(gr,zo,pr)},Di=function(gr,Vr){Mt(gr);var pr=Ht(Vr),zo=qt(pr).concat(co(pr));return xi(zo,function(es){(!et||Ji.call(pr,es))&&Rn(gr,es,pr[es])}),gr},cr=function(gr,Vr){return Vr===void 0?be(gr):Di(be(gr),Vr)},Ji=function(gr){var Vr=ne(gr),pr=me.call(this,Vr);return this===ft&&rt(Ue,Vr)&&!rt(ke,Vr)?!1:pr||!rt(this,Vr)||!rt(Ue,Vr)||rt(this,nn)&&this[nn][Vr]?pr:!0},Sr=function(gr,Vr){var pr=Ht(gr),zo=ne(Vr);if(!(pr===ft&&rt(Ue,zo)&&!rt(ke,zo))){var es=ue(pr,zo);return es&&rt(Ue,zo)&&!(rt(pr,nn)&&pr[nn][zo])&&(es.enumerable=!0),es}},Nr=function(gr){var Vr=le(Ht(gr)),pr=[];return xi(Vr,function(zo){!rt(Ue,zo)&&!rt(Bn,zo)&&pr.push(zo)}),pr},co=function(gr){var Vr=gr===ft,pr=le(Vr?ke:Ht(gr)),zo=[];return xi(pr,function(es){rt(Ue,es)&&(!Vr||rt(ft,es))&&zo.push(Ue[es])}),zo};if(tt||(pt=function(){if(this instanceof pt)throw TypeError("Symbol is not a constructor");var gr=!arguments.length||arguments[0]===void 0?void 0:ae(arguments[0]),Vr=Ln(gr),pr=function(zo){this===ft&&pr.call(ke,zo),rt(this,nn)&&rt(this[nn],Vr)&&(this[nn][Vr]=!1),Dn(this,Vr,de(1,zo))};return et&&An&&Dn(ft,Vr,{configurable:!0,set:pr}),qn(Vr,gr)},ve(pt[ki],"toString",function(){return mt(this).tag}),ve(pt,"withoutSetter",function(Kr){return qn(Ln(Kr),Kr)}),We.f=Ji,Ne.f=Rn,_e.f=Sr,ze.f=Vt.f=Nr,Ge.f=co,Mn.f=function(Kr){return qn(Ye(Kr),Kr)},et&&(we(pt[ki],"description",{configurable:!0,get:function(){return mt(this).description}}),Ct||ve(ft,"propertyIsEnumerable",Ji,{unsafe:!0}))),oe({global:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:pt}),xi(qt(Gn),function(Kr){Wn(Kr)}),oe({target:Fi,stat:!0,forced:!tt},{for:function(Kr){var gr=ae(Kr);if(rt(Ie,gr))return Ie[gr];var Vr=pt(gr);return Ie[gr]=Vr,rn[Vr]=gr,Vr},keyFor:function(gr){if(!wt(gr))throw TypeError(gr+" is not a symbol");if(rt(rn,gr))return rn[gr]},useSetter:function(){An=!0},useSimple:function(){An=!1}}),oe({target:"Object",stat:!0,forced:!tt,sham:!et},{create:cr,defineProperty:Rn,defineProperties:Di,getOwnPropertyDescriptor:Sr}),oe({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:Nr,getOwnPropertySymbols:co}),oe({target:"Object",stat:!0,forced:lt(function(){Ge.f(1)})},{getOwnPropertySymbols:function(gr){return Ge.f(Ot(gr))}}),At){var to=!tt||lt(function(){var Kr=pt();return At([Kr])!="[null]"||At({a:Kr})!="{}"||At(Object(Kr))!="{}"});oe({target:"JSON",stat:!0,forced:to},{stringify:function(gr,Vr,pr){for(var zo=[gr],es=1,yo;arguments.length>es;)zo.push(arguments[es++]);if(yo=Vr,!(!ct(Vr)&&gr===void 0||wt(gr)))return ut(Vr)||(Vr=function(ks,ws){if(typeof yo=="function"&&(ws=yo.call(this,ks,ws)),!wt(ws))return ws}),zo[1]=Vr,At.apply(null,zo)}})}pt[ki][Nt]||Re(pt[ki],Nt,pt[ki].valueOf),fi(pt,Fi),Bn[nn]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/dom-iterables.js"),Jt=Pt("./node_modules/core-js/internals/array-for-each.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var et in zt){var tt=oe[et],lt=tt&&tt.prototype;if(lt&&lt.forEach!==Jt)try{Ct(lt,"forEach",Jt)}catch(rt){lt.forEach=Jt}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(jt,Xt,Pt){var oe=Pt("./node_modules/core-js/internals/global.js"),zt=Pt("./node_modules/core-js/internals/dom-iterables.js"),Jt=Pt("./node_modules/core-js/modules/es.array.iterator.js"),Ct=Pt("./node_modules/core-js/internals/create-non-enumerable-property.js"),et=Pt("./node_modules/core-js/internals/well-known-symbol.js"),tt=et("iterator"),lt=et("toStringTag"),rt=Jt.values;for(var ut in zt){var ct=oe[ut],wt=ct&&ct.prototype;if(wt){if(wt[tt]!==rt)try{Ct(wt,tt,rt)}catch(Ot){wt[tt]=rt}if(wt[lt]||Ct(wt,lt,ut),zt[ut]){for(var Mt in Jt)if(wt[Mt]!==Jt[Mt])try{Ct(wt,Mt,Jt[Mt])}catch(Ot){wt[Mt]=Jt[Mt]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(jt){(function(Xt,Pt){jt.exports=Pt()})(this,function(){"use strict";function Xt(dn){var An=typeof dn;return dn!==null&&(An==="object"||An==="function")}function Pt(dn){return typeof dn=="function"}var oe=void 0;Array.isArray?oe=Array.isArray:oe=function(dn){return Object.prototype.toString.call(dn)==="[object Array]"};var zt=oe,Jt=0,Ct=void 0,et=void 0,tt=function(An,Dn){qt[Jt]=An,qt[Jt+1]=Dn,Jt+=2,Jt===2&&(et?et(ze):Ge())};function lt(dn){et=dn}function rt(dn){tt=dn}var ut=typeof window!="undefined"?window:void 0,ct=ut||{},wt=ct.MutationObserver||ct.WebKitMutationObserver,Mt=typeof self=="undefined"&&typeof Ft!="undefined"&&{}.toString.call(Ft)==="[object process]",Ot=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Ht(){return function(){return Ft.nextTick(ze)}}function ne(){return typeof Ct!="undefined"?function(){Ct(ze)}:be()}function ae(){var dn=0,An=new wt(ze),Dn=document.createTextNode("");return An.observe(Dn,{characterData:!0}),function(){Dn.data=dn=++dn%2}}function de(){var dn=new MessageChannel;return dn.port1.onmessage=ze,function(){return dn.port2.postMessage(0)}}function be(){var dn=setTimeout;return function(){return dn(ze,1)}}var qt=new Array(1e3);function ze(){for(var dn=0;dn<Jt;dn+=2){var An=qt[dn],Dn=qt[dn+1];An(Dn),qt[dn]=void 0,qt[dn+1]=void 0}Jt=0}function Vt(){try{var dn=Function("return this")().require("vertx");return Ct=dn.runOnLoop||dn.runOnContext,ne()}catch(An){return be()}}var Ge=void 0;Mt?Ge=Ht():wt?Ge=ae():Ot?Ge=de():ut===void 0?Ge=Vt():Ge=be();function _e(dn,An){var Dn=this,qn=new this.constructor(Re);qn[We]===void 0&&At(qn);var Rn=Dn._state;if(Rn){var Di=arguments[Rn-1];tt(function(){return Dt(Rn,qn,Di,Dn._result)})}else ki(Dn,qn,dn,An);return qn}function Ne(dn){var An=this;if(dn&&typeof dn=="object"&&dn.constructor===An)return dn;var Dn=new An(Re);return Hn(Dn,dn),Dn}var We=Math.random().toString(36).substring(2);function Re(){}var ve=void 0,ie=1,Se=2;function Bn(){return new TypeError("You cannot resolve a promise with itself")}function Ln(){return new TypeError("A promises callback cannot return that same promise.")}function Ye(dn,An,Dn,qn){try{dn.call(An,Dn,qn)}catch(Rn){return Rn}}function Mn(dn,An,Dn){tt(function(qn){var Rn=!1,Di=Ye(Dn,An,function(cr){Rn||(Rn=!0,An!==cr?Hn(qn,cr):nn(qn,cr))},function(cr){Rn||(Rn=!0,Fi(qn,cr))},"Settle: "+(qn._label||" unknown promise"));!Rn&&Di&&(Rn=!0,Fi(qn,Di))},dn)}function Wn(dn,An){An._state===ie?nn(dn,An._result):An._state===Se?Fi(dn,An._result):ki(An,void 0,function(Dn){return Hn(dn,Dn)},function(Dn){return Fi(dn,Dn)})}function fi(dn,An,Dn){An.constructor===dn.constructor&&Dn===_e&&An.constructor.resolve===Ne?Wn(dn,An):Dn===void 0?nn(dn,An):Pt(Dn)?Mn(dn,An,Dn):nn(dn,An)}function Hn(dn,An){if(dn===An)Fi(dn,Bn());else if(Xt(An)){var Dn=void 0;try{Dn=An.then}catch(qn){Fi(dn,qn);return}fi(dn,An,Dn)}else nn(dn,An)}function xi(dn){dn._onerror&&dn._onerror(dn._result),Nt(dn)}function nn(dn,An){dn._state===ve&&(dn._result=An,dn._state=ie,dn._subscribers.length!==0&&tt(Nt,dn))}function Fi(dn,An){dn._state===ve&&(dn._state=Se,dn._result=An,tt(xi,dn))}function ki(dn,An,Dn,qn){var Rn=dn._subscribers,Di=Rn.length;dn._onerror=null,Rn[Di]=An,Rn[Di+ie]=Dn,Rn[Di+Se]=qn,Di===0&&dn._state&&tt(Nt,dn)}function Nt(dn){var An=dn._subscribers,Dn=dn._state;if(An.length!==0){for(var qn=void 0,Rn=void 0,Di=dn._result,cr=0;cr<An.length;cr+=3)qn=An[cr],Rn=An[cr+Dn],qn?Dt(Dn,qn,Rn,Di):Rn(Di);dn._subscribers.length=0}}function Dt(dn,An,Dn,qn){var Rn=Pt(Dn),Di=void 0,cr=void 0,Ji=!0;if(Rn){try{Di=Dn(qn)}catch(Sr){Ji=!1,cr=Sr}if(An===Di){Fi(An,Ln());return}}else Di=qn;An._state!==ve||(Rn&&Ji?Hn(An,Di):Ji===!1?Fi(An,cr):dn===ie?nn(An,Di):dn===Se&&Fi(An,Di))}function mt(dn,An){try{An(function(qn){Hn(dn,qn)},function(qn){Fi(dn,qn)})}catch(Dn){Fi(dn,Dn)}}var ft=0;function pt(){return ft++}function At(dn){dn[We]=ft++,dn._state=void 0,dn._result=void 0,dn._subscribers=[]}function ue(){return new Error("Array Methods must be provided an Array")}var we=function(){function dn(An,Dn){this._instanceConstructor=An,this.promise=new An(Re),this.promise[We]||At(this.promise),zt(Dn)?(this.length=Dn.length,this._remaining=Dn.length,this._result=new Array(this.length),this.length===0?nn(this.promise,this._result):(this.length=this.length||0,this._enumerate(Dn),this._remaining===0&&nn(this.promise,this._result))):Fi(this.promise,ue())}return dn.prototype._enumerate=function(Dn){for(var qn=0;this._state===ve&&qn<Dn.length;qn++)this._eachEntry(Dn[qn],qn)},dn.prototype._eachEntry=function(Dn,qn){var Rn=this._instanceConstructor,Di=Rn.resolve;if(Di===Ne){var cr=void 0,Ji=void 0,Sr=!1;try{cr=Dn.then}catch(co){Sr=!0,Ji=co}if(cr===_e&&Dn._state!==ve)this._settledAt(Dn._state,qn,Dn._result);else if(typeof cr!="function")this._remaining--,this._result[qn]=Dn;else if(Rn===rn){var Nr=new Rn(Re);Sr?Fi(Nr,Ji):fi(Nr,Dn,cr),this._willSettleAt(Nr,qn)}else this._willSettleAt(new Rn(function(co){return co(Dn)}),qn)}else this._willSettleAt(Di(Dn),qn)},dn.prototype._settledAt=function(Dn,qn,Rn){var Di=this.promise;Di._state===ve&&(this._remaining--,Dn===Se?Fi(Di,Rn):this._result[qn]=Rn),this._remaining===0&&nn(Di,this._result)},dn.prototype._willSettleAt=function(Dn,qn){var Rn=this;ki(Dn,void 0,function(Di){return Rn._settledAt(ie,qn,Di)},function(Di){return Rn._settledAt(Se,qn,Di)})},dn}();function le(dn){return new we(this,dn).promise}function me(dn){var An=this;return zt(dn)?new An(function(Dn,qn){for(var Rn=dn.length,Di=0;Di<Rn;Di++)An.resolve(dn[Di]).then(Dn,qn)}):new An(function(Dn,qn){return qn(new TypeError("You must pass an array to race."))})}function Ue(dn){var An=this,Dn=new An(Re);return Fi(Dn,dn),Dn}function ke(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Ie(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var rn=function(){function dn(An){this[We]=pt(),this._result=this._state=void 0,this._subscribers=[],Re!==An&&(typeof An!="function"&&ke(),this instanceof dn?mt(this,An):Ie())}return dn.prototype.catch=function(Dn){return this.then(null,Dn)},dn.prototype.finally=function(Dn){var qn=this,Rn=qn.constructor;return Pt(Dn)?qn.then(function(Di){return Rn.resolve(Dn()).then(function(){return Di})},function(Di){return Rn.resolve(Dn()).then(function(){throw Di})}):qn.then(Dn,Dn)},dn}();rn.prototype.then=_e,rn.all=le,rn.race=me,rn.resolve=Ne,rn.reject=Ue,rn._setScheduler=lt,rn._setAsap=rt,rn._asap=tt;function Gn(){var dn=void 0;if(typeof bt.g!="undefined")dn=bt.g;else if(typeof self!="undefined")dn=self;else try{dn=Function("return this")()}catch(qn){throw new Error("polyfill failed because global object is unavailable in this environment")}var An=dn.Promise;if(An){var Dn=null;try{Dn=Object.prototype.toString.call(An.resolve())}catch(qn){}if(Dn==="[object Promise]"&&!An.cast)return}dn.Promise=rn}return rn.polyfill=Gn,rn.Promise=rn,rn})},html2canvas:function(jt){"use strict";jt.exports=re},jspdf:function(jt){"use strict";jt.exports=ce}},ee={};function Yt(jt){var Xt=ee[jt];if(Xt!==void 0)return Xt.exports;var Pt=ee[jt]={exports:{}};return Be[jt].call(Pt.exports,Pt,Pt.exports,Yt),Pt.exports}(function(){Yt.n=function(jt){var Xt=jt&&jt.__esModule?function(){return jt.default}:function(){return jt};return Yt.d(Xt,{a:Xt}),Xt}})(),function(){Yt.d=function(jt,Xt){for(var Pt in Xt)Yt.o(Xt,Pt)&&!Yt.o(jt,Pt)&&Object.defineProperty(jt,Pt,{enumerable:!0,get:Xt[Pt]})}}(),function(){Yt.o=function(jt,Xt){return Object.prototype.hasOwnProperty.call(jt,Xt)}}(),function(){Yt.r=function(jt){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(jt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(jt,"__esModule",{value:!0})}}();var It={};return function(){"use strict";Yt.r(It);var jt=Yt("./src/worker.js"),Xt=Yt("./src/plugin/jspdf-plugin.js"),Pt=Yt("./src/plugin/pagebreaks.js"),oe=Yt("./src/plugin/hyperlinks.js"),zt=function Jt(Ct,et){var tt=new Jt.Worker(et);return Ct?tt.from(Ct).save():tt};zt.Worker=jt.default,It.default=zt}(),It=It.default,It}()})},67467:function(ui,wn){wn.read=function(bt,Ft,ce,re,Be){var ee,Yt,It=Be*8-re-1,jt=(1<<It)-1,Xt=jt>>1,Pt=-7,oe=ce?Be-1:0,zt=ce?-1:1,Jt=bt[Ft+oe];for(oe+=zt,ee=Jt&(1<<-Pt)-1,Jt>>=-Pt,Pt+=It;Pt>0;ee=ee*256+bt[Ft+oe],oe+=zt,Pt-=8);for(Yt=ee&(1<<-Pt)-1,ee>>=-Pt,Pt+=re;Pt>0;Yt=Yt*256+bt[Ft+oe],oe+=zt,Pt-=8);if(ee===0)ee=1-Xt;else{if(ee===jt)return Yt?NaN:(Jt?-1:1)*(1/0);Yt=Yt+Math.pow(2,re),ee=ee-Xt}return(Jt?-1:1)*Yt*Math.pow(2,ee-re)},wn.write=function(bt,Ft,ce,re,Be,ee){var Yt,It,jt,Xt=ee*8-Be-1,Pt=(1<<Xt)-1,oe=Pt>>1,zt=Be===23?Math.pow(2,-24)-Math.pow(2,-77):0,Jt=re?0:ee-1,Ct=re?1:-1,et=Ft<0||Ft===0&&1/Ft<0?1:0;for(Ft=Math.abs(Ft),isNaN(Ft)||Ft===1/0?(It=isNaN(Ft)?1:0,Yt=Pt):(Yt=Math.floor(Math.log(Ft)/Math.LN2),Ft*(jt=Math.pow(2,-Yt))<1&&(Yt--,jt*=2),Yt+oe>=1?Ft+=zt/jt:Ft+=zt*Math.pow(2,1-oe),Ft*jt>=2&&(Yt++,jt/=2),Yt+oe>=Pt?(It=0,Yt=Pt):Yt+oe>=1?(It=(Ft*jt-1)*Math.pow(2,Be),Yt=Yt+oe):(It=Ft*Math.pow(2,oe-1)*Math.pow(2,Be),Yt=0));Be>=8;bt[ce+Jt]=It&255,Jt+=Ct,It/=256,Be-=8);for(Yt=Yt<<Be|It,Xt+=Be;Xt>0;bt[ce+Jt]=Yt&255,Jt+=Ct,Yt/=256,Xt-=8);bt[ce+Jt-Ct]|=et*128}},7348:function(ui,wn,bt){"use strict";bt.r(wn),bt.d(wn,{AcroForm:function(){return al},AcroFormAppearance:function(){return No},AcroFormButton:function(){return Cs},AcroFormCheckBox:function(){return tl},AcroFormChoiceField:function(){return su},AcroFormComboBox:function(){return Yo},AcroFormEditBox:function(){return va},AcroFormListBox:function(){return au},AcroFormPasswordField:function(){return Pl},AcroFormPushButton:function(){return lu},AcroFormRadioButton:function(){return Ll},AcroFormTextField:function(){return tu},GState:function(){return Eo},ShadingPattern:function(){return la},TilingPattern:function(){return ca},default:function(){return Qo},jsPDF:function(){return Qo}});var Ft=bt(62853),ce={},re=function(Et,xt,Lt,Rt,se){var Zt=new Worker(ce[xt]||(ce[xt]=URL.createObjectURL(new Blob([Et+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Zt.onmessage=function(pe){var ye=pe.data,Fe=ye.$e$;if(Fe){var Xe=new Error(Fe[0]);Xe.code=Fe[1],Xe.stack=Fe[2],se(Xe,null)}else se(null,ye)},Zt.postMessage(Lt,Rt),Zt},Be=Uint8Array,ee=Uint16Array,Yt=Int32Array,It=new Be([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]),jt=new Be([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]),Xt=new Be([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Pt=function(Et,xt){for(var Lt=new ee(31),Rt=0;Rt<31;++Rt)Lt[Rt]=xt+=1<<Et[Rt-1];for(var se=new Yt(Lt[30]),Rt=1;Rt<30;++Rt)for(var Zt=Lt[Rt];Zt<Lt[Rt+1];++Zt)se[Zt]=Zt-Lt[Rt]<<5|Rt;return{b:Lt,r:se}},oe=Pt(It,2),zt=oe.b,Jt=oe.r;zt[28]=258,Jt[258]=28;for(var Ct=Pt(jt,0),et=Ct.b,tt=Ct.r,lt=new ee(32768),rt=0;rt<32768;++rt){var ut=(rt&43690)>>1|(rt&21845)<<1;ut=(ut&52428)>>2|(ut&13107)<<2,ut=(ut&61680)>>4|(ut&3855)<<4,lt[rt]=((ut&65280)>>8|(ut&255)<<8)>>1}for(var ct=function(Et,xt,Lt){for(var Rt=Et.length,se=0,Zt=new ee(xt);se<Rt;++se)Et[se]&&++Zt[Et[se]-1];var pe=new ee(xt);for(se=1;se<xt;++se)pe[se]=pe[se-1]+Zt[se-1]<<1;var ye;if(Lt){ye=new ee(1<<xt);var Fe=15-xt;for(se=0;se<Rt;++se)if(Et[se])for(var Xe=se<<4|Et[se],pn=xt-Et[se],gn=pe[Et[se]-1]++<<pn,Nn=gn|(1<<pn)-1;gn<=Nn;++gn)ye[lt[gn]>>Fe]=Xe}else for(ye=new ee(Rt),se=0;se<Rt;++se)Et[se]&&(ye[se]=lt[pe[Et[se]-1]++]>>15-Et[se]);return ye},wt=new Be(288),rt=0;rt<144;++rt)wt[rt]=8;for(var rt=144;rt<256;++rt)wt[rt]=9;for(var rt=256;rt<280;++rt)wt[rt]=7;for(var rt=280;rt<288;++rt)wt[rt]=8;for(var Mt=new Be(32),rt=0;rt<32;++rt)Mt[rt]=5;var Ot=ct(wt,9,0),Ht=ct(wt,9,1),ne=ct(Mt,5,0),ae=ct(Mt,5,1),de=function(Et){for(var xt=Et[0],Lt=1;Lt<Et.length;++Lt)Et[Lt]>xt&&(xt=Et[Lt]);return xt},be=function(Et,xt,Lt){var Rt=xt/8|0;return(Et[Rt]|Et[Rt+1]<<8)>>(xt&7)&Lt},qt=function(Et,xt){var Lt=xt/8|0;return(Et[Lt]|Et[Lt+1]<<8|Et[Lt+2]<<16)>>(xt&7)},ze=function(Et){return(Et+7)/8|0},Vt=function(Et,xt,Lt){return(xt==null||xt<0)&&(xt=0),(Lt==null||Lt>Et.length)&&(Lt=Et.length),new Be(Et.subarray(xt,Lt))},Ge={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},_e=["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"],Ne=function(Et,xt,Lt){var Rt=new Error(xt||_e[Et]);if(Rt.code=Et,Error.captureStackTrace&&Error.captureStackTrace(Rt,Ne),!Lt)throw Rt;return Rt},We=function(Et,xt,Lt,Rt){var se=Et.length,Zt=Rt?Rt.length:0;if(!se||xt.f&&!xt.l)return Lt||new Be(0);var pe=!Lt,ye=pe||xt.i!=2,Fe=xt.i;pe&&(Lt=new Be(se*3));var Xe=function($i){var sr=Lt.length;if($i>sr){var Ar=new Be(Math.max(sr*2,$i));Ar.set(Lt),Lt=Ar}},pn=xt.f||0,gn=xt.p||0,Nn=xt.b||0,He=xt.l,ci=xt.d,Yn=xt.m,gi=xt.n,Un=se*8;do{if(!He){pn=be(Et,gn,1);var Ai=be(Et,gn+1,3);if(gn+=3,Ai)if(Ai==1)He=Ht,ci=ae,Yn=9,gi=5;else if(Ai==2){var io=be(Et,gn,31)+257,mr=be(Et,gn+10,15)+4,Ti=io+be(Et,gn+5,31)+1;gn+=14;for(var Br=new Be(Ti),Wr=new Be(19),Qn=0;Qn<mr;++Qn)Wr[Xt[Qn]]=be(Et,gn+Qn*3,7);gn+=mr*3;for(var $n=de(Wr),Zi=(1<<$n)-1,ge=ct(Wr,$n,1),Qn=0;Qn<Ti;){var Ce=ge[be(Et,gn,Zi)];gn+=Ce&15;var Hi=Ce>>4;if(Hi<16)Br[Qn++]=Hi;else{var Ve=0,en=0;for(Hi==16?(en=3+be(Et,gn,3),gn+=2,Ve=Br[Qn-1]):Hi==17?(en=3+be(Et,gn,7),gn+=3):Hi==18&&(en=11+be(Et,gn,127),gn+=7);en--;)Br[Qn++]=Ve}}var un=Br.subarray(0,io),hn=Br.subarray(io);Yn=de(un),gi=de(hn),He=ct(un,Yn,1),ci=ct(hn,gi,1)}else Ne(1);else{var Hi=ze(gn)+4,lr=Et[Hi-4]|Et[Hi-3]<<8,Ir=Hi+lr;if(Ir>se){Fe&&Ne(0);break}ye&&Xe(Nn+lr),Lt.set(Et.subarray(Hi,Ir),Nn),xt.b=Nn+=lr,xt.p=gn=Ir*8,xt.f=pn;continue}if(gn>Un){Fe&&Ne(0);break}}ye&&Xe(Nn+131072);for(var Tn=(1<<Yn)-1,Xn=(1<<gi)-1,Te=gn;;Te=gn){var Ve=He[qt(Et,gn)&Tn],ln=Ve>>4;if(gn+=Ve&15,gn>Un){Fe&&Ne(0);break}if(Ve||Ne(2),ln<256)Lt[Nn++]=ln;else if(ln==256){Te=gn,He=null;break}else{var vn=ln-254;if(ln>264){var Qn=ln-257,En=It[Qn];vn=be(Et,gn,(1<<En)-1)+zt[Qn],gn+=En}var Vn=ci[qt(Et,gn)&Xn],li=Vn>>4;Vn||Ne(3),gn+=Vn&15;var hn=et[li];if(li>3){var En=jt[li];hn+=qt(Et,gn)&(1<<En)-1,gn+=En}if(gn>Un){Fe&&Ne(0);break}ye&&Xe(Nn+131072);var oi=Nn+vn;if(Nn<hn){var Ei=Zt-hn,Ii=Math.min(hn,oi);for(Ei+Nn<0&&Ne(3);Nn<Ii;++Nn)Lt[Nn]=Rt[Ei+Nn]}for(;Nn<oi;++Nn)Lt[Nn]=Lt[Nn-hn]}}xt.l=He,xt.p=Te,xt.b=Nn,xt.f=pn,He&&(pn=1,xt.m=Yn,xt.d=ci,xt.n=gi)}while(!pn);return Nn!=Lt.length&&pe?Vt(Lt,0,Nn):Lt.subarray(0,Nn)},Re=function(Et,xt,Lt){Lt<<=xt&7;var Rt=xt/8|0;Et[Rt]|=Lt,Et[Rt+1]|=Lt>>8},ve=function(Et,xt,Lt){Lt<<=xt&7;var Rt=xt/8|0;Et[Rt]|=Lt,Et[Rt+1]|=Lt>>8,Et[Rt+2]|=Lt>>16},ie=function(Et,xt){for(var Lt=[],Rt=0;Rt<Et.length;++Rt)Et[Rt]&&Lt.push({s:Rt,f:Et[Rt]});var se=Lt.length,Zt=Lt.slice();if(!se)return{t:fi,l:0};if(se==1){var pe=new Be(Lt[0].s+1);return pe[Lt[0].s]=1,{t:pe,l:1}}Lt.sort(function(Ir,io){return Ir.f-io.f}),Lt.push({s:-1,f:25001});var ye=Lt[0],Fe=Lt[1],Xe=0,pn=1,gn=2;for(Lt[0]={s:-1,f:ye.f+Fe.f,l:ye,r:Fe};pn!=se-1;)ye=Lt[Lt[Xe].f<Lt[gn].f?Xe++:gn++],Fe=Lt[Xe!=pn&&Lt[Xe].f<Lt[gn].f?Xe++:gn++],Lt[pn++]={s:-1,f:ye.f+Fe.f,l:ye,r:Fe};for(var Nn=Zt[0].s,Rt=1;Rt<se;++Rt)Zt[Rt].s>Nn&&(Nn=Zt[Rt].s);var He=new ee(Nn+1),ci=Se(Lt[pn-1],He,0);if(ci>xt){var Rt=0,Yn=0,gi=ci-xt,Un=1<<gi;for(Zt.sort(function(io,mr){return He[mr.s]-He[io.s]||io.f-mr.f});Rt<se;++Rt){var Ai=Zt[Rt].s;if(He[Ai]>xt)Yn+=Un-(1<<ci-He[Ai]),He[Ai]=xt;else break}for(Yn>>=gi;Yn>0;){var Hi=Zt[Rt].s;He[Hi]<xt?Yn-=1<<xt-He[Hi]++-1:++Rt}for(;Rt>=0&&Yn;--Rt){var lr=Zt[Rt].s;He[lr]==xt&&(--He[lr],++Yn)}ci=xt}return{t:new Be(He),l:ci}},Se=function(Et,xt,Lt){return Et.s==-1?Math.max(Se(Et.l,xt,Lt+1),Se(Et.r,xt,Lt+1)):xt[Et.s]=Lt},Bn=function(Et){for(var xt=Et.length;xt&&!Et[--xt];);for(var Lt=new ee(++xt),Rt=0,se=Et[0],Zt=1,pe=function(Fe){Lt[Rt++]=Fe},ye=1;ye<=xt;++ye)if(Et[ye]==se&&ye!=xt)++Zt;else{if(!se&&Zt>2){for(;Zt>138;Zt-=138)pe(32754);Zt>2&&(pe(Zt>10?Zt-11<<5|28690:Zt-3<<5|12305),Zt=0)}else if(Zt>3){for(pe(se),--Zt;Zt>6;Zt-=6)pe(8304);Zt>2&&(pe(Zt-3<<5|8208),Zt=0)}for(;Zt--;)pe(se);Zt=1,se=Et[ye]}return{c:Lt.subarray(0,Rt),n:xt}},Ln=function(Et,xt){for(var Lt=0,Rt=0;Rt<xt.length;++Rt)Lt+=Et[Rt]*xt[Rt];return Lt},Ye=function(Et,xt,Lt){var Rt=Lt.length,se=ze(xt+2);Et[se]=Rt&255,Et[se+1]=Rt>>8,Et[se+2]=Et[se]^255,Et[se+3]=Et[se+1]^255;for(var Zt=0;Zt<Rt;++Zt)Et[se+Zt+4]=Lt[Zt];return(se+4+Rt)*8},Mn=function(Et,xt,Lt,Rt,se,Zt,pe,ye,Fe,Xe,pn){Re(xt,pn++,Lt),++se[256];for(var gn=ie(se,15),Nn=gn.t,He=gn.l,ci=ie(Zt,15),Yn=ci.t,gi=ci.l,Un=Bn(Nn),Ai=Un.c,Hi=Un.n,lr=Bn(Yn),Ir=lr.c,io=lr.n,mr=new ee(19),Ti=0;Ti<Ai.length;++Ti)++mr[Ai[Ti]&31];for(var Ti=0;Ti<Ir.length;++Ti)++mr[Ir[Ti]&31];for(var Br=ie(mr,7),Wr=Br.t,Qn=Br.l,$n=19;$n>4&&!Wr[Xt[$n-1]];--$n);var Zi=Xe+5<<3,ge=Ln(se,wt)+Ln(Zt,Mt)+pe,Ce=Ln(se,Nn)+Ln(Zt,Yn)+pe+14+3*$n+Ln(mr,Wr)+2*mr[16]+3*mr[17]+7*mr[18];if(Fe>=0&&Zi<=ge&&Zi<=Ce)return Ye(xt,pn,Et.subarray(Fe,Fe+Xe));var Ve,en,un,hn;if(Re(xt,pn,1+(Ce<ge)),pn+=2,Ce<ge){Ve=ct(Nn,He,0),en=Nn,un=ct(Yn,gi,0),hn=Yn;var Tn=ct(Wr,Qn,0);Re(xt,pn,Hi-257),Re(xt,pn+5,io-1),Re(xt,pn+10,$n-4),pn+=14;for(var Ti=0;Ti<$n;++Ti)Re(xt,pn+3*Ti,Wr[Xt[Ti]]);pn+=3*$n;for(var Xn=[Ai,Ir],Te=0;Te<2;++Te)for(var ln=Xn[Te],Ti=0;Ti<ln.length;++Ti){var vn=ln[Ti]&31;Re(xt,pn,Tn[vn]),pn+=Wr[vn],vn>15&&(Re(xt,pn,ln[Ti]>>5&127),pn+=ln[Ti]>>12)}}else Ve=Ot,en=wt,un=ne,hn=Mt;for(var Ti=0;Ti<ye;++Ti){var En=Rt[Ti];if(En>255){var vn=En>>18&31;ve(xt,pn,Ve[vn+257]),pn+=en[vn+257],vn>7&&(Re(xt,pn,En>>23&31),pn+=It[vn]);var Vn=En&31;ve(xt,pn,un[Vn]),pn+=hn[Vn],Vn>3&&(ve(xt,pn,En>>5&8191),pn+=jt[Vn])}else ve(xt,pn,Ve[En]),pn+=en[En]}return ve(xt,pn,Ve[256]),pn+en[256]},Wn=new Yt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),fi=new Be(0),Hn=function(Et,xt,Lt,Rt,se,Zt){var pe=Zt.z||Et.length,ye=new Be(Rt+pe+5*(1+Math.ceil(pe/7e3))+se),Fe=ye.subarray(Rt,ye.length-se),Xe=Zt.l,pn=(Zt.r||0)&7;if(xt){pn&&(Fe[0]=Zt.r>>3);for(var gn=Wn[xt-1],Nn=gn>>13,He=gn&8191,ci=(1<<Lt)-1,Yn=Zt.p||new ee(32768),gi=Zt.h||new ee(ci+1),Un=Math.ceil(Lt/3),Ai=2*Un,Hi=function(Jr){return(Et[Jr]^Et[Jr+1]<<Un^Et[Jr+2]<<Ai)&ci},lr=new Yt(25e3),Ir=new ee(288),io=new ee(32),mr=0,Ti=0,Br=Zt.i||0,Wr=0,Qn=Zt.w||0,$n=0;Br+2<pe;++Br){var Zi=Hi(Br),ge=Br&32767,Ce=gi[Zi];if(Yn[ge]=Ce,gi[Zi]=ge,Qn<=Br){var Ve=pe-Br;if((mr>7e3||Wr>24576)&&(Ve>423||!Xe)){pn=Mn(Et,Fe,0,lr,Ir,io,Ti,Wr,$n,Br-$n,pn),Wr=mr=Ti=0,$n=Br;for(var en=0;en<286;++en)Ir[en]=0;for(var en=0;en<30;++en)io[en]=0}var un=2,hn=0,Tn=He,Xn=ge-Ce&32767;if(Ve>2&&Zi==Hi(Br-Xn))for(var Te=Math.min(Nn,Ve)-1,ln=Math.min(32767,Br),vn=Math.min(258,Ve);Xn<=ln&&--Tn&&ge!=Ce;){if(Et[Br+un]==Et[Br+un-Xn]){for(var En=0;En<vn&&Et[Br+En]==Et[Br+En-Xn];++En);if(En>un){if(un=En,hn=Xn,En>Te)break;for(var Vn=Math.min(Xn,En-2),li=0,en=0;en<Vn;++en){var oi=Br-Xn+en&32767,Ei=Yn[oi],Ii=oi-Ei&32767;Ii>li&&(li=Ii,Ce=oi)}}}ge=Ce,Ce=Yn[ge],Xn+=ge-Ce&32767}if(hn){lr[Wr++]=268435456|Jt[un]<<18|tt[hn];var $i=Jt[un]&31,sr=tt[hn]&31;Ti+=It[$i]+jt[sr],++Ir[257+$i],++io[sr],Qn=Br+un,++mr}else lr[Wr++]=Et[Br],++Ir[Et[Br]]}}for(Br=Math.max(Br,Qn);Br<pe;++Br)lr[Wr++]=Et[Br],++Ir[Et[Br]];pn=Mn(Et,Fe,Xe,lr,Ir,io,Ti,Wr,$n,Br-$n,pn),Xe||(Zt.r=pn&7|Fe[pn/8|0]<<3,pn-=7,Zt.h=gi,Zt.p=Yn,Zt.i=Br,Zt.w=Qn)}else{for(var Br=Zt.w||0;Br<pe+Xe;Br+=65535){var Ar=Br+65535;Ar>=pe&&(Fe[pn/8|0]=Xe,Ar=pe),pn=Ye(Fe,pn+1,Et.subarray(Br,Ar))}Zt.i=pe}return Vt(ye,0,Rt+ze(pn)+se)},xi=null,nn=function(){var Et=-1;return{p:function(xt){for(var Lt=Et,Rt=0;Rt<xt.length;++Rt)Lt=xi[Lt&255^xt[Rt]]^Lt>>>8;Et=Lt},d:function(){return~Et}}},Fi=function(){var Et=1,xt=0;return{p:function(Lt){for(var Rt=Et,se=xt,Zt=Lt.length|0,pe=0;pe!=Zt;){for(var ye=Math.min(pe+2655,Zt);pe<ye;++pe)se+=Rt+=Lt[pe];Rt=(Rt&65535)+15*(Rt>>16),se=(se&65535)+15*(se>>16)}Et=Rt,xt=se},d:function(){return Et%=65521,xt%=65521,(Et&255)<<24|(Et&65280)<<8|(xt&255)<<8|xt>>8}}},ki=function(Et,xt,Lt,Rt,se){if(!se&&(se={l:1},xt.dictionary)){var Zt=xt.dictionary.subarray(-32768),pe=new Be(Zt.length+Et.length);pe.set(Zt),pe.set(Et,Zt.length),Et=pe,se.w=Zt.length}return Hn(Et,xt.level==null?6:xt.level,xt.mem==null?se.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Et.length)))*1.5):20:12+xt.mem,Lt,Rt,se)},Nt=function(Et,xt){var Lt={};for(var Rt in Et)Lt[Rt]=Et[Rt];for(var Rt in xt)Lt[Rt]=xt[Rt];return Lt},Dt=function(Et,xt,Lt){for(var Rt=Et(),se=Et.toString(),Zt=se.slice(se.indexOf("[")+1,se.lastIndexOf("]")).replace(/\s+/g,"").split(","),pe=0;pe<Rt.length;++pe){var ye=Rt[pe],Fe=Zt[pe];if(typeof ye=="function"){xt+=";"+Fe+"=";var Xe=ye.toString();if(ye.prototype)if(Xe.indexOf("[native code]")!=-1){var pn=Xe.indexOf(" ",8)+1;xt+=Xe.slice(pn,Xe.indexOf("(",pn))}else{xt+=Xe;for(var gn in ye.prototype)xt+=";"+Fe+".prototype."+gn+"="+ye.prototype[gn].toString()}else xt+=Xe}else Lt[Fe]=ye}return xt},mt=null,ft=function(Et){var xt=[];for(var Lt in Et)Et[Lt].buffer&&xt.push((Et[Lt]=new Et[Lt].constructor(Et[Lt])).buffer);return xt},pt=function(Et,xt,Lt,Rt){if(!mt[Lt]){for(var se="",Zt={},pe=Et.length-1,ye=0;ye<pe;++ye)se=Dt(Et[ye],se,Zt);mt[Lt]={c:Dt(Et[pe],se,Zt),e:Zt}}var Fe=Nt({},mt[Lt].e);return re(mt[Lt].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+xt.toString()+"}",Lt,Fe,ft(Fe),Rt)},At=function(){return[Be,ee,Yt,It,jt,Xt,zt,et,Ht,ae,lt,_e,ct,de,be,qt,ze,Vt,Ne,We,ks,ke,Ie]},ue=function(){return[Be,ee,Yt,It,jt,Xt,Jt,tt,Ot,wt,ne,Mt,lt,Wn,fi,ct,Re,ve,ie,Se,Bn,Ln,Ye,Mn,ze,Vt,Hn,ki,pr,ke]},we=function(){return[Di,Sr,Rn,nn,xi]},le=function(){return[cr,Ji]},me=function(){return[Nr,Rn,Fi]},Ue=function(){return[co]},ke=function(Et){return postMessage(Et,[Et.buffer])},Ie=function(Et){return Et&&{out:Et.size&&new Be(Et.size),dictionary:Et.dictionary}},rn=function(Et,xt,Lt,Rt,se,Zt){var pe=pt(Lt,Rt,se,function(ye,Fe){pe.terminate(),Zt(ye,Fe)});return pe.postMessage([Et,xt],xt.consume?[Et.buffer]:[]),function(){pe.terminate()}},Gn=function(Et){return Et.ondata=function(xt,Lt){return postMessage([xt,Lt],[xt.buffer])},function(xt){xt.data.length?(Et.push(xt.data[0],xt.data[1]),postMessage([xt.data[0].length])):Et.flush()}},dn=function(Et,xt,Lt,Rt,se,Zt,pe){var ye,Fe=pt(Et,Rt,se,function(Xe,pn){Xe?(Fe.terminate(),xt.ondata.call(xt,Xe)):Array.isArray(pn)?pn.length==1?(xt.queuedSize-=pn[0],xt.ondrain&&xt.ondrain(pn[0])):(pn[1]&&Fe.terminate(),xt.ondata.call(xt,Xe,pn[0],pn[1])):pe(pn)});Fe.postMessage(Lt),xt.queuedSize=0,xt.push=function(Xe,pn){xt.ondata||Ne(5),ye&&xt.ondata(Ne(4,0,1),null,!!pn),xt.queuedSize+=Xe.length,Fe.postMessage([Xe,ye=pn],[Xe.buffer])},xt.terminate=function(){Fe.terminate()},Zt&&(xt.flush=function(){Fe.postMessage([])})},An=function(Et,xt){return Et[xt]|Et[xt+1]<<8},Dn=function(Et,xt){return(Et[xt]|Et[xt+1]<<8|Et[xt+2]<<16|Et[xt+3]<<24)>>>0},qn=function(Et,xt){return Dn(Et,xt)+Dn(Et,xt+4)*4294967296},Rn=function(Et,xt,Lt){for(;Lt;++xt)Et[xt]=Lt,Lt>>>=8},Di=function(Et,xt){var Lt=xt.filename;if(Et[0]=31,Et[1]=139,Et[2]=8,Et[8]=xt.level<2?4:xt.level==9?2:0,Et[9]=3,xt.mtime!=0&&Rn(Et,4,Math.floor(new Date(xt.mtime||Date.now())/1e3)),Lt){Et[3]=8;for(var Rt=0;Rt<=Lt.length;++Rt)Et[Rt+10]=Lt.charCodeAt(Rt)}},cr=function(Et){(Et[0]!=31||Et[1]!=139||Et[2]!=8)&&Ne(6,"invalid gzip data");var xt=Et[3],Lt=10;xt&4&&(Lt+=(Et[10]|Et[11]<<8)+2);for(var Rt=(xt>>3&1)+(xt>>4&1);Rt>0;Rt-=!Et[Lt++]);return Lt+(xt&2)},Ji=function(Et){var xt=Et.length;return(Et[xt-4]|Et[xt-3]<<8|Et[xt-2]<<16|Et[xt-1]<<24)>>>0},Sr=function(Et){return 10+(Et.filename?Et.filename.length+1:0)},Nr=function(Et,xt){var Lt=xt.level,Rt=Lt==0?0:Lt<6?1:Lt==9?3:2;if(Et[0]=120,Et[1]=Rt<<6|(xt.dictionary&&32),Et[1]|=31-(Et[0]<<8|Et[1])%31,xt.dictionary){var se=Fi();se.p(xt.dictionary),Rn(Et,2,se.d())}},co=function(Et,xt){return((Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31)&&Ne(6,"invalid zlib data"),(Et[1]>>5&1)==+!xt&&Ne(6,"invalid zlib data: "+(Et[1]&32?"need":"unexpected")+" dictionary"),(Et[1]>>3&4)+2};function to(Et,xt){return typeof Et=="function"&&(xt=Et,Et={}),this.ondata=xt,Et}var Kr=null,gr=null;function Vr(Et,xt,Lt){return Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7),rn(Et,xt,[ue],function(Rt){return ke(pr(Rt.data[0],Rt.data[1]))},0,Lt)}function pr(Et,xt){return ki(Et,xt||{},0,0)}var zo=null,es=null;function yo(Et,xt,Lt){return Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7),rn(Et,xt,[At],function(Rt){return ke(ks(Rt.data[0],Ie(Rt.data[1])))},1,Lt)}function ks(Et,xt){return We(Et,{i:2},xt&&xt.out,xt&&xt.dictionary)}var ws=null,Wt=null;function xs(Et,xt,Lt){return Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7),rn(Et,xt,[ue,we,function(){return[Ss]}],function(Rt){return ke(Ss(Rt.data[0],Rt.data[1]))},2,Lt)}function Ss(Et,xt){xt||(xt={});var Lt=nn(),Rt=Et.length;Lt.p(Et);var se=ki(Et,xt,Sr(xt),8),Zt=se.length;return Di(se,xt),Rn(se,Zt-8,Lt.d()),Rn(se,Zt-4,Rt),se}var Ms=null,ma=null;function Ea(Et,xt,Lt){return Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7),rn(Et,xt,[At,le,function(){return[oa]}],function(Rt){return ke(oa(Rt.data[0],Rt.data[1]))},3,Lt)}function oa(Et,xt){var Lt=cr(Et);return Lt+8>Et.length&&Ne(6,"invalid gzip data"),We(Et.subarray(Lt,-8),{i:2},xt&&xt.out||new Be(Ji(Et)),xt&&xt.dictionary)}var so=null,br=null;function kn(Et,xt,Lt){return Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7),rn(Et,xt,[ue,me,function(){return[In]}],function(Rt){return ke(In(Rt.data[0],Rt.data[1]))},4,Lt)}function In(Et,xt){xt||(xt={});var Lt=Fi();Lt.p(Et);var Rt=ki(Et,xt,xt.dictionary?6:2,4);return Nr(Rt,xt),Rn(Rt,Rt.length-4,Lt.d()),Rt}var Oe=null,hi=null;function Je(Et,xt,Lt){return Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7),rn(Et,xt,[At,Ue,function(){return[fn]}],function(Rt){return ke(fn(Rt.data[0],Ie(Rt.data[1])))},5,Lt)}function fn(Et,xt){return We(Et.subarray(co(Et,xt&&xt.dictionary),-4),{i:2},xt&&xt.out,xt&&xt.dictionary)}var Ke=null,ni=null;function Ci(Et,xt,Lt){return Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7),Et[0]==31&&Et[1]==139&&Et[2]==8?Ea(Et,xt,Lt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?yo(Et,xt,Lt):Je(Et,xt,Lt)}function _i(Et,xt){return Et[0]==31&&Et[1]==139&&Et[2]==8?oa(Et,xt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?ks(Et,xt):fn(Et,xt)}var qi=function(Et,xt,Lt,Rt){for(var se in Et){var Zt=Et[se],pe=xt+se,ye=Rt;Array.isArray(Zt)&&(ye=Nt(Rt,Zt[1]),Zt=Zt[0]),Zt instanceof Be?Lt[pe]=[Zt,ye]:(Lt[pe+="/"]=[new Be(0),ye],qi(Zt,pe,Lt,Rt))}},on=typeof TextEncoder!="undefined"&&new TextEncoder,di=typeof TextDecoder!="undefined"&&new TextDecoder,Vi=0;try{di.decode(fi,{stream:!0}),Vi=1}catch(Et){}var kr=function(Et){for(var xt="",Lt=0;;){var Rt=Et[Lt++],se=(Rt>127)+(Rt>223)+(Rt>239);if(Lt+se>Et.length)return{s:xt,r:Vt(Et,Lt-1)};se?se==3?(Rt=((Rt&15)<<18|(Et[Lt++]&63)<<12|(Et[Lt++]&63)<<6|Et[Lt++]&63)-65536,xt+=String.fromCharCode(55296|Rt>>10,56320|Rt&1023)):se&1?xt+=String.fromCharCode((Rt&31)<<6|Et[Lt++]&63):xt+=String.fromCharCode((Rt&15)<<12|(Et[Lt++]&63)<<6|Et[Lt++]&63):xt+=String.fromCharCode(Rt)}},ii=null,wi=null;function dr(Et,xt){if(xt){for(var Lt=new Be(Et.length),Rt=0;Rt<Et.length;++Rt)Lt[Rt]=Et.charCodeAt(Rt);return Lt}if(on)return on.encode(Et);for(var se=Et.length,Zt=new Be(Et.length+(Et.length>>1)),pe=0,ye=function(pn){Zt[pe++]=pn},Rt=0;Rt<se;++Rt){if(pe+5>Zt.length){var Fe=new Be(pe+8+(se-Rt<<1));Fe.set(Zt),Zt=Fe}var Xe=Et.charCodeAt(Rt);Xe<128||xt?ye(Xe):Xe<2048?(ye(192|Xe>>6),ye(128|Xe&63)):Xe>55295&&Xe<57344?(Xe=65536+(Xe&1047552)|Et.charCodeAt(++Rt)&1023,ye(240|Xe>>18),ye(128|Xe>>12&63),ye(128|Xe>>6&63),ye(128|Xe&63)):(ye(224|Xe>>12),ye(128|Xe>>6&63),ye(128|Xe&63))}return Vt(Zt,0,pe)}function pi(Et,xt){if(xt){for(var Lt="",Rt=0;Rt<Et.length;Rt+=16384)Lt+=String.fromCharCode.apply(null,Et.subarray(Rt,Rt+16384));return Lt}else{if(di)return di.decode(Et);var se=kr(Et),Zt=se.s,Lt=se.r;return Lt.length&&Ne(8),Zt}}var yi=function(Et){return Et==1?3:Et<6?2:Et==9?1:0},vi=function(Et,xt){return xt+30+An(Et,xt+26)+An(Et,xt+28)},er=function(Et,xt,Lt){var Rt=An(Et,xt+28),se=pi(Et.subarray(xt+46,xt+46+Rt),!(An(Et,xt+8)&2048)),Zt=xt+46+Rt,pe=Dn(Et,xt+20),ye=Lt&&pe==4294967295?or(Et,Zt):[pe,Dn(Et,xt+24),Dn(Et,xt+42)],Fe=ye[0],Xe=ye[1],pn=ye[2];return[An(Et,xt+10),Fe,Xe,se,Zt+An(Et,xt+30)+An(Et,xt+32),pn]},or=function(Et,xt){for(;An(Et,xt)!=1;xt+=4+An(Et,xt+2));return[qn(Et,xt+12),qn(Et,xt+4),qn(Et,xt+20)]},Rr=function(Et){var xt=0;if(Et)for(var Lt in Et){var Rt=Et[Lt].length;Rt>65535&&Ne(9),xt+=Rt+4}return xt},Zr=function(Et,xt,Lt,Rt,se,Zt,pe,ye){var Fe=Rt.length,Xe=Lt.extra,pn=ye&&ye.length,gn=Rr(Xe);Rn(Et,xt,pe!=null?33639248:67324752),xt+=4,pe!=null&&(Et[xt++]=20,Et[xt++]=Lt.os),Et[xt]=20,xt+=2,Et[xt++]=Lt.flag<<1|(Zt<0&&8),Et[xt++]=se&&8,Et[xt++]=Lt.compression&255,Et[xt++]=Lt.compression>>8;var Nn=new Date(Lt.mtime==null?Date.now():Lt.mtime),He=Nn.getFullYear()-1980;if((He<0||He>119)&&Ne(10),Rn(Et,xt,He<<25|Nn.getMonth()+1<<21|Nn.getDate()<<16|Nn.getHours()<<11|Nn.getMinutes()<<5|Nn.getSeconds()>>1),xt+=4,Zt!=-1&&(Rn(Et,xt,Lt.crc),Rn(Et,xt+4,Zt<0?-Zt-2:Zt),Rn(Et,xt+8,Lt.size)),Rn(Et,xt+12,Fe),Rn(Et,xt+14,gn),xt+=16,pe!=null&&(Rn(Et,xt,pn),Rn(Et,xt+6,Lt.attrs),Rn(Et,xt+10,pe),xt+=14),Et.set(Rt,xt),xt+=Fe,gn)for(var ci in Xe){var Yn=Xe[ci],gi=Yn.length;Rn(Et,xt,+ci),Rn(Et,xt+2,gi),Et.set(Yn,xt+4),xt+=4+gi}return pn&&(Et.set(ye,xt),xt+=pn),xt},Xr=function(Et,xt,Lt,Rt,se){Rn(Et,xt,101010256),Rn(Et,xt+8,Lt),Rn(Et,xt+10,Lt),Rn(Et,xt+12,Rt),Rn(Et,xt+16,se)},ei=null,_o=null,Zo=null,cs=null;function ri(Et,xt,Lt){Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7);var Rt={};qi(Et,"",Rt,xt);var se=Object.keys(Rt),Zt=se.length,pe=0,ye=0,Fe=Zt,Xe=new Array(Zt),pn=[],gn=function(){for(var gi=0;gi<pn.length;++gi)pn[gi]()},Nn=function(gi,Un){wo(function(){Lt(gi,Un)})};wo(function(){Nn=Lt});var He=function(){var gi=new Be(ye+22),Un=pe,Ai=ye-pe;ye=0;for(var Hi=0;Hi<Fe;++Hi){var lr=Xe[Hi];try{var Ir=lr.c.length;Zr(gi,ye,lr,lr.f,lr.u,Ir);var io=30+lr.f.length+Rr(lr.extra),mr=ye+io;gi.set(lr.c,mr),Zr(gi,pe,lr,lr.f,lr.u,Ir,ye,lr.m),pe+=16+io+(lr.m?lr.m.length:0),ye=mr+Ir}catch(Ti){return Nn(Ti,null)}}Xr(gi,pe,Xe.length,Ai,Un),Nn(null,gi)};Zt||He();for(var ci=function(gi){var Un=se[gi],Ai=Rt[Un],Hi=Ai[0],lr=Ai[1],Ir=nn(),io=Hi.length;Ir.p(Hi);var mr=dr(Un),Ti=mr.length,Br=lr.comment,Wr=Br&&dr(Br),Qn=Wr&&Wr.length,$n=Rr(lr.extra),Zi=lr.level==0?0:8,ge=function(Ce,Ve){if(Ce)gn(),Nn(Ce,null);else{var en=Ve.length;Xe[gi]=Nt(lr,{size:io,crc:Ir.d(),c:Ve,f:mr,m:Wr,u:Ti!=Un.length||Wr&&Br.length!=Qn,compression:Zi}),pe+=30+Ti+$n+en,ye+=76+2*(Ti+$n)+(Qn||0)+en,--Zt||He()}};if(Ti>65535&&ge(Ne(11,0,1),null),!Zi)ge(null,Hi);else if(io<16e4)try{ge(null,pr(Hi,lr))}catch(Ce){ge(Ce,null)}else pn.push(Vr(Hi,lr,ge))},Yn=0;Yn<Fe;++Yn)ci(Yn);return gn}function rr(Et,xt){xt||(xt={});var Lt={},Rt=[];qi(Et,"",Lt,xt);var se=0,Zt=0;for(var pe in Lt){var ye=Lt[pe],Fe=ye[0],Xe=ye[1],pn=Xe.level==0?0:8,gn=dr(pe),Nn=gn.length,He=Xe.comment,ci=He&&dr(He),Yn=ci&&ci.length,gi=Rr(Xe.extra);Nn>65535&&Ne(11);var Un=pn?pr(Fe,Xe):Fe,Ai=Un.length,Hi=nn();Hi.p(Fe),Rt.push(Nt(Xe,{size:Fe.length,crc:Hi.d(),c:Un,f:gn,m:ci,u:Nn!=pe.length||ci&&He.length!=Yn,o:se,compression:pn})),se+=30+Nn+gi+Ai,Zt+=76+2*(Nn+gi)+(Yn||0)+Ai}for(var lr=new Be(Zt+22),Ir=se,io=Zt-se,mr=0;mr<Rt.length;++mr){var gn=Rt[mr];Zr(lr,gn.o,gn,gn.f,gn.u,gn.c.length);var Ti=30+gn.f.length+Rr(gn.extra);lr.set(gn.c,gn.o+Ti),Zr(lr,se,gn,gn.f,gn.u,gn.c.length,gn.o,gn.m),se+=16+Ti+(gn.m?gn.m.length:0)}return Xr(lr,se,Rt.length,io,Ir),lr}var Er=null,no=null,Fr=null,Gr=null,wo=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(Et){Et()};function fo(Et,xt,Lt){Lt||(Lt=xt,xt={}),typeof Lt!="function"&&Ne(7);var Rt=[],se=function(){for(var gi=0;gi<Rt.length;++gi)Rt[gi]()},Zt={},pe=function(gi,Un){wo(function(){Lt(gi,Un)})};wo(function(){pe=Lt});for(var ye=Et.length-22;Dn(Et,ye)!=101010256;--ye)if(!ye||Et.length-ye>65558)return pe(Ne(13,0,1),null),se;var Fe=An(Et,ye+8);if(Fe){var Xe=Fe,pn=Dn(Et,ye+16),gn=pn==4294967295||Xe==65535;if(gn){var Nn=Dn(Et,ye-12);gn=Dn(Et,Nn)==101075792,gn&&(Xe=Fe=Dn(Et,Nn+32),pn=Dn(Et,Nn+48))}for(var He=xt&&xt.filter,ci=function(gi){var Un=er(Et,pn,gn),Ai=Un[0],Hi=Un[1],lr=Un[2],Ir=Un[3],io=Un[4],mr=Un[5],Ti=vi(Et,mr);pn=io;var Br=function(Qn,$n){Qn?(se(),pe(Qn,null)):($n&&(Zt[Ir]=$n),--Fe||pe(null,Zt))};if(!He||He({name:Ir,size:Hi,originalSize:lr,compression:Ai}))if(!Ai)Br(null,Vt(Et,Ti,Ti+Hi));else if(Ai==8){var Wr=Et.subarray(Ti,Ti+Hi);if(lr<524288||Hi>.8*lr)try{Br(null,ks(Wr,{out:new Be(lr)}))}catch(Qn){Br(Qn,null)}else Rt.push(yo(Wr,{size:lr},Br))}else Br(Ne(14,"unknown compression type "+Ai,1),null);else Br(null,null)},Yn=0;Yn<Xe;++Yn)ci(Yn)}else pe(null,{});return se}function xo(Et,xt){for(var Lt={},Rt=Et.length-22;Dn(Et,Rt)!=101010256;--Rt)(!Rt||Et.length-Rt>65558)&&Ne(13);var se=An(Et,Rt+8);if(!se)return{};var Zt=Dn(Et,Rt+16),pe=Zt==4294967295||se==65535;if(pe){var ye=Dn(Et,Rt-12);pe=Dn(Et,ye)==101075792,pe&&(se=Dn(Et,ye+32),Zt=Dn(Et,ye+48))}for(var Fe=xt&&xt.filter,Xe=0;Xe<se;++Xe){var pn=er(Et,Zt,pe),gn=pn[0],Nn=pn[1],He=pn[2],ci=pn[3],Yn=pn[4],gi=pn[5],Un=vi(Et,gi);Zt=Yn,(!Fe||Fe({name:ci,size:Nn,originalSize:He,compression:gn}))&&(gn?gn==8?Lt[ci]=ks(Et.subarray(Un,Un+Nn),{out:new Be(He)}):Ne(14,"unknown compression type "+gn):Lt[ci]=Vt(Et,Un,Un+Nn))}return Lt}var _r=function(){return typeof window!="undefined"?window:typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:this}();function Si(){_r.console&&typeof _r.console.log=="function"&&_r.console.log.apply(_r.console,arguments)}var Ho={log:Si,warn:function(Et){_r.console&&(typeof _r.console.warn=="function"?_r.console.warn.apply(_r.console,arguments):Si.call(null,arguments))},error:function(Et){_r.console&&(typeof _r.console.error=="function"?_r.console.error.apply(_r.console,arguments):Si(Et))}};function Pi(Et,xt,Lt){var Rt=new XMLHttpRequest;Rt.open("GET",Et),Rt.responseType="blob",Rt.onload=function(){Gs(Rt.response,xt,Lt)},Rt.onerror=function(){Ho.error("could not download file")},Rt.send()}function ns(Et){var xt=new XMLHttpRequest;xt.open("HEAD",Et,!1);try{xt.send()}catch(Lt){}return xt.status>=200&&xt.status<=299}function qs(Et){try{Et.dispatchEvent(new MouseEvent("click"))}catch(Lt){var xt=document.createEvent("MouseEvents");xt.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Et.dispatchEvent(xt)}}var fs,Hs,Gs=_r.saveAs||((typeof window=="undefined"?"undefined":(0,Ft.Z)(window))!=="object"||window!==_r?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Et,xt,Lt){var Rt=_r.URL||_r.webkitURL,se=document.createElement("a");xt=xt||Et.name||"download",se.download=xt,se.rel="noopener",typeof Et=="string"?(se.href=Et,se.origin!==location.origin?ns(se.href)?Pi(Et,xt,Lt):qs(se,se.target="_blank"):qs(se)):(se.href=Rt.createObjectURL(Et),setTimeout(function(){Rt.revokeObjectURL(se.href)},4e4),setTimeout(function(){qs(se)},0))}:"msSaveOrOpenBlob"in navigator?function(Et,xt,Lt){if(xt=xt||Et.name||"download",typeof Et=="string")if(ns(Et))Pi(Et,xt,Lt);else{var Rt=document.createElement("a");Rt.href=Et,Rt.target="_blank",setTimeout(function(){qs(Rt)})}else navigator.msSaveOrOpenBlob(function(se,Zt){return Zt===void 0?Zt={autoBom:!1}:(0,Ft.Z)(Zt)!=="object"&&(Ho.warn("Deprecated: Expected third argument to be a object"),Zt={autoBom:!Zt}),Zt.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(se.type)?new Blob(["\uFEFF",se],{type:se.type}):se}(Et,Lt),xt)}:function(Et,xt,Lt,Rt){if((Rt=Rt||open("","_blank"))&&(Rt.document.title=Rt.document.body.innerText="downloading..."),typeof Et=="string")return Pi(Et,xt,Lt);var se=Et.type==="application/octet-stream",Zt=/constructor/i.test(_r.HTMLElement)||_r.safari,pe=/CriOS\/[\d]+/.test(navigator.userAgent);if((pe||se&&Zt)&&(typeof FileReader=="undefined"?"undefined":(0,Ft.Z)(FileReader))==="object"){var ye=new FileReader;ye.onloadend=function(){var pn=ye.result;pn=pe?pn:pn.replace(/^data:[^;]*;/,"data:attachment/file;"),Rt?Rt.location.href=pn:location=pn,Rt=null},ye.readAsDataURL(Et)}else{var Fe=_r.URL||_r.webkitURL,Xe=Fe.createObjectURL(Et);Rt?Rt.location=Xe:location.href=Xe,Rt=null,setTimeout(function(){Fe.revokeObjectURL(Xe)},4e4)}});function si(Et){var xt;Et=Et||"",this.ok=!1,Et.charAt(0)=="#"&&(Et=Et.substr(1,6)),Et={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"}[Et=(Et=Et.replace(/ /g,"")).toLowerCase()]||Et;for(var Lt=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(ye){return[parseInt(ye[1]),parseInt(ye[2]),parseInt(ye[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ye){return[parseInt(ye[1],16),parseInt(ye[2],16),parseInt(ye[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ye){return[parseInt(ye[1]+ye[1],16),parseInt(ye[2]+ye[2],16),parseInt(ye[3]+ye[3],16)]}}],Rt=0;Rt<Lt.length;Rt++){var se=Lt[Rt].re,Zt=Lt[Rt].process,pe=se.exec(Et);pe&&(xt=Zt(pe),this.r=xt[0],this.g=xt[1],this.b=xt[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 ye=this.r.toString(16),Fe=this.g.toString(16),Xe=this.b.toString(16);return ye.length==1&&(ye="0"+ye),Fe.length==1&&(Fe="0"+Fe),Xe.length==1&&(Xe="0"+Xe),"#"+ye+Fe+Xe}}function To(Et,xt){var Lt=Et[0],Rt=Et[1],se=Et[2],Zt=Et[3];Lt=rs(Lt,Rt,se,Zt,xt[0],7,-680876936),Zt=rs(Zt,Lt,Rt,se,xt[1],12,-389564586),se=rs(se,Zt,Lt,Rt,xt[2],17,606105819),Rt=rs(Rt,se,Zt,Lt,xt[3],22,-1044525330),Lt=rs(Lt,Rt,se,Zt,xt[4],7,-176418897),Zt=rs(Zt,Lt,Rt,se,xt[5],12,1200080426),se=rs(se,Zt,Lt,Rt,xt[6],17,-1473231341),Rt=rs(Rt,se,Zt,Lt,xt[7],22,-45705983),Lt=rs(Lt,Rt,se,Zt,xt[8],7,1770035416),Zt=rs(Zt,Lt,Rt,se,xt[9],12,-1958414417),se=rs(se,Zt,Lt,Rt,xt[10],17,-42063),Rt=rs(Rt,se,Zt,Lt,xt[11],22,-1990404162),Lt=rs(Lt,Rt,se,Zt,xt[12],7,1804603682),Zt=rs(Zt,Lt,Rt,se,xt[13],12,-40341101),se=rs(se,Zt,Lt,Rt,xt[14],17,-1502002290),Lt=Cr(Lt,Rt=rs(Rt,se,Zt,Lt,xt[15],22,1236535329),se,Zt,xt[1],5,-165796510),Zt=Cr(Zt,Lt,Rt,se,xt[6],9,-1069501632),se=Cr(se,Zt,Lt,Rt,xt[11],14,643717713),Rt=Cr(Rt,se,Zt,Lt,xt[0],20,-373897302),Lt=Cr(Lt,Rt,se,Zt,xt[5],5,-701558691),Zt=Cr(Zt,Lt,Rt,se,xt[10],9,38016083),se=Cr(se,Zt,Lt,Rt,xt[15],14,-660478335),Rt=Cr(Rt,se,Zt,Lt,xt[4],20,-405537848),Lt=Cr(Lt,Rt,se,Zt,xt[9],5,568446438),Zt=Cr(Zt,Lt,Rt,se,xt[14],9,-1019803690),se=Cr(se,Zt,Lt,Rt,xt[3],14,-187363961),Rt=Cr(Rt,se,Zt,Lt,xt[8],20,1163531501),Lt=Cr(Lt,Rt,se,Zt,xt[13],5,-1444681467),Zt=Cr(Zt,Lt,Rt,se,xt[2],9,-51403784),se=Cr(se,Zt,Lt,Rt,xt[7],14,1735328473),Lt=Le(Lt,Rt=Cr(Rt,se,Zt,Lt,xt[12],20,-1926607734),se,Zt,xt[5],4,-378558),Zt=Le(Zt,Lt,Rt,se,xt[8],11,-2022574463),se=Le(se,Zt,Lt,Rt,xt[11],16,1839030562),Rt=Le(Rt,se,Zt,Lt,xt[14],23,-35309556),Lt=Le(Lt,Rt,se,Zt,xt[1],4,-1530992060),Zt=Le(Zt,Lt,Rt,se,xt[4],11,1272893353),se=Le(se,Zt,Lt,Rt,xt[7],16,-155497632),Rt=Le(Rt,se,Zt,Lt,xt[10],23,-1094730640),Lt=Le(Lt,Rt,se,Zt,xt[13],4,681279174),Zt=Le(Zt,Lt,Rt,se,xt[0],11,-358537222),se=Le(se,Zt,Lt,Rt,xt[3],16,-722521979),Rt=Le(Rt,se,Zt,Lt,xt[6],23,76029189),Lt=Le(Lt,Rt,se,Zt,xt[9],4,-640364487),Zt=Le(Zt,Lt,Rt,se,xt[12],11,-421815835),se=Le(se,Zt,Lt,Rt,xt[15],16,530742520),Lt=qo(Lt,Rt=Le(Rt,se,Zt,Lt,xt[2],23,-995338651),se,Zt,xt[0],6,-198630844),Zt=qo(Zt,Lt,Rt,se,xt[7],10,1126891415),se=qo(se,Zt,Lt,Rt,xt[14],15,-1416354905),Rt=qo(Rt,se,Zt,Lt,xt[5],21,-57434055),Lt=qo(Lt,Rt,se,Zt,xt[12],6,1700485571),Zt=qo(Zt,Lt,Rt,se,xt[3],10,-1894986606),se=qo(se,Zt,Lt,Rt,xt[10],15,-1051523),Rt=qo(Rt,se,Zt,Lt,xt[1],21,-2054922799),Lt=qo(Lt,Rt,se,Zt,xt[8],6,1873313359),Zt=qo(Zt,Lt,Rt,se,xt[15],10,-30611744),se=qo(se,Zt,Lt,Rt,xt[6],15,-1560198380),Rt=qo(Rt,se,Zt,Lt,xt[13],21,1309151649),Lt=qo(Lt,Rt,se,Zt,xt[4],6,-145523070),Zt=qo(Zt,Lt,Rt,se,xt[11],10,-1120210379),se=qo(se,Zt,Lt,Rt,xt[2],15,718787259),Rt=qo(Rt,se,Zt,Lt,xt[9],21,-343485551),Et[0]=Lo(Lt,Et[0]),Et[1]=Lo(Rt,Et[1]),Et[2]=Lo(se,Et[2]),Et[3]=Lo(Zt,Et[3])}function us(Et,xt,Lt,Rt,se,Zt){return xt=Lo(Lo(xt,Et),Lo(Rt,Zt)),Lo(xt<<se|xt>>>32-se,Lt)}function rs(Et,xt,Lt,Rt,se,Zt,pe){return us(xt&Lt|~xt&Rt,Et,xt,se,Zt,pe)}function Cr(Et,xt,Lt,Rt,se,Zt,pe){return us(xt&Rt|Lt&~Rt,Et,xt,se,Zt,pe)}function Le(Et,xt,Lt,Rt,se,Zt,pe){return us(xt^Lt^Rt,Et,xt,se,Zt,pe)}function qo(Et,xt,Lt,Rt,se,Zt,pe){return us(Lt^(xt|~Rt),Et,xt,se,Zt,pe)}function ta(Et){var xt,Lt=Et.length,Rt=[1732584193,-271733879,-1732584194,271733878];for(xt=64;xt<=Et.length;xt+=64)To(Rt,qa(Et.substring(xt-64,xt)));Et=Et.substring(xt-64);var se=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(xt=0;xt<Et.length;xt++)se[xt>>2]|=Et.charCodeAt(xt)<<(xt%4<<3);if(se[xt>>2]|=128<<(xt%4<<3),xt>55)for(To(Rt,se),xt=0;xt<16;xt++)se[xt]=0;return se[14]=8*Lt,To(Rt,se),Rt}function qa(Et){var xt,Lt=[];for(xt=0;xt<64;xt+=4)Lt[xt>>2]=Et.charCodeAt(xt)+(Et.charCodeAt(xt+1)<<8)+(Et.charCodeAt(xt+2)<<16)+(Et.charCodeAt(xt+3)<<24);return Lt}fs=_r.atob.bind(_r),Hs=_r.btoa.bind(_r);var ol="0123456789abcdef".split("");function ml(Et){for(var xt="",Lt=0;Lt<4;Lt++)xt+=ol[Et>>8*Lt+4&15]+ol[Et>>8*Lt&15];return xt}function vr(Et){return String.fromCharCode((255&Et)>>0,(65280&Et)>>8,(16711680&Et)>>16,(4278190080&Et)>>24)}function $r(Et){return ta(Et).map(vr).join("")}var Xo=function(Et){for(var xt=0;xt<Et.length;xt++)Et[xt]=ml(Et[xt]);return Et.join("")}(ta("hello"))!="5d41402abc4b2a76b9719d911017c592";function Lo(Et,xt){if(Xo){var Lt=(65535&Et)+(65535&xt);return(Et>>16)+(xt>>16)+(Lt>>16)<<16|65535&Lt}return Et+xt&4294967295}function os(Et,xt){var Lt,Rt,se,Zt;if(Et!==Lt){for(var pe=(se=Et,Zt=1+(256/Et.length>>0),new Array(Zt+1).join(se)),ye=[],Fe=0;Fe<256;Fe++)ye[Fe]=Fe;var Xe=0;for(Fe=0;Fe<256;Fe++){var pn=ye[Fe];Xe=(Xe+pn+pe.charCodeAt(Fe))%256,ye[Fe]=ye[Xe],ye[Xe]=pn}Lt=Et,Rt=ye}else ye=Rt;var gn=xt.length,Nn=0,He=0,ci="";for(Fe=0;Fe<gn;Fe++)He=(He+(pn=ye[Nn=(Nn+1)%256]))%256,ye[Nn]=ye[He],ye[He]=pn,pe=ye[(ye[Nn]+ye[He])%256],ci+=String.fromCharCode(xt.charCodeAt(Fe)^pe);return ci}var Fa={print:4,modify:8,copy:16,"annot-forms":32};function ao(Et,xt,Lt,Rt){this.v=1,this.r=2;var se=192;Et.forEach(function(ye){if(Fa.perm!==void 0)throw new Error("Invalid permission: "+ye);se+=Fa[ye]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Zt=(xt+this.padding).substr(0,32),pe=(Lt+this.padding).substr(0,32);this.O=this.processOwnerPassword(Zt,pe),this.P=-(1+(255^se)),this.encryptionKey=$r(Zt+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Rt)).substr(0,5),this.U=os(this.encryptionKey,this.padding)}function mo(Et){if(/[^\u0000-\u00ff]/.test(Et))throw new Error("Invalid PDF Name Object: "+Et+", Only accept ASCII characters.");for(var xt="",Lt=Et.length,Rt=0;Rt<Lt;Rt++){var se=Et.charCodeAt(Rt);se<33||se===35||se===37||se===40||se===41||se===47||se===60||se===62||se===91||se===93||se===123||se===125||se>126?xt+="#"+("0"+se.toString(16)).slice(-2):xt+=Et[Rt]}return xt}function zi(Et){if((0,Ft.Z)(Et)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var xt={};this.subscribe=function(Lt,Rt,se){if(se=se||!1,typeof Lt!="string"||typeof Rt!="function"||typeof se!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");xt.hasOwnProperty(Lt)||(xt[Lt]={});var Zt=Math.random().toString(35);return xt[Lt][Zt]=[Rt,!!se],Zt},this.unsubscribe=function(Lt){for(var Rt in xt)if(xt[Rt][Lt])return delete xt[Rt][Lt],Object.keys(xt[Rt]).length===0&&delete xt[Rt],!0;return!1},this.publish=function(Lt){if(xt.hasOwnProperty(Lt)){var Rt=Array.prototype.slice.call(arguments,1),se=[];for(var Zt in xt[Lt]){var pe=xt[Lt][Zt];try{pe[0].apply(Et,Rt)}catch(ye){_r.console&&Ho.error("jsPDF PubSub Error",ye.message,ye)}pe[1]&&se.push(Zt)}se.length&&se.forEach(this.unsubscribe)}},this.getTopics=function(){return xt}}function Eo(Et){if(!(this instanceof Eo))return new Eo(Et);var xt="opacity,stroke-opacity".split(",");for(var Lt in Et)Et.hasOwnProperty(Lt)&&xt.indexOf(Lt)>=0&&(this[Lt]=Et[Lt]);this.id="",this.objectNumber=-1}function Es(Et,xt){this.gState=Et,this.matrix=xt,this.id="",this.objectNumber=-1}function la(Et,xt,Lt,Rt,se){if(!(this instanceof la))return new la(Et,xt,Lt,Rt,se);this.type=Et==="axial"?2:3,this.coords=xt,this.colors=Lt,Es.call(this,Rt,se)}function ca(Et,xt,Lt,Rt,se){if(!(this instanceof ca))return new ca(Et,xt,Lt,Rt,se);this.boundingBox=Et,this.xStep=xt,this.yStep=Lt,this.stream="",this.cloneIndex=0,Es.call(this,Rt,se)}function Qo(Et){var xt,Lt=typeof arguments[0]=="string"?arguments[0]:"p",Rt=arguments[1],se=arguments[2],Zt=arguments[3],pe=[],ye=1,Fe=16,Xe="S",pn=null;(0,Ft.Z)(Et=Et||{})==="object"&&(Lt=Et.orientation,Rt=Et.unit||Rt,se=Et.format||se,Zt=Et.compress||Et.compressPdf||Zt,(pn=Et.encryption||null)!==null&&(pn.userPassword=pn.userPassword||"",pn.ownerPassword=pn.ownerPassword||"",pn.userPermissions=pn.userPermissions||[]),ye=typeof Et.userUnit=="number"?Math.abs(Et.userUnit):1,Et.precision!==void 0&&(xt=Et.precision),Et.floatPrecision!==void 0&&(Fe=Et.floatPrecision),Xe=Et.defaultPathOperation||"S"),pe=Et.filters||(Zt===!0?["FlateEncode"]:pe),Rt=Rt||"mm",Lt=(""+(Lt||"P")).toLowerCase();var gn=Et.putOnlyUsedFonts||!1,Nn={},He={internal:{},__private__:{}};He.__private__.PubSub=zi;var ci="1.3",Yn=He.__private__.getPdfVersion=function(){return ci};He.__private__.setPdfVersion=function(Ae){ci=Ae};var gi={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]};He.__private__.getPageFormats=function(){return gi};var Un=He.__private__.getPageFormat=function(Ae){return gi[Ae]};se=se||"a4";var Ai={COMPAT:"compat",ADVANCED:"advanced"},Hi=Ai.COMPAT;function lr(){this.saveGraphicsState(),_n(new As(ho,0,0,-ho,0,Tc()*ho).toString()+" cm"),this.setFontSize(this.getFontSize()/ho),Xe="n",Hi=Ai.ADVANCED}function Ir(){this.restoreGraphicsState(),Xe="S",Hi=Ai.COMPAT}var io=He.__private__.combineFontStyleAndFontWeight=function(Ae,yn){if(Ae=="bold"&&yn=="normal"||Ae=="bold"&&yn==400||Ae=="normal"&&yn=="italic"||Ae=="bold"&&yn=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return yn&&(Ae=yn==400||yn==="normal"?Ae==="italic"?"italic":"normal":yn!=700&&yn!=="bold"||Ae!=="normal"?(yn==700?"bold":yn)+""+Ae:"bold"),Ae};He.advancedAPI=function(Ae){var yn=Hi===Ai.COMPAT;return yn&&lr.call(this),typeof Ae!="function"||(Ae(this),yn&&Ir.call(this)),this},He.compatAPI=function(Ae){var yn=Hi===Ai.ADVANCED;return yn&&Ir.call(this),typeof Ae!="function"||(Ae(this),yn&&lr.call(this)),this},He.isAdvancedAPI=function(){return Hi===Ai.ADVANCED};var mr,Ti=function(Ae){if(Hi!==Ai.ADVANCED)throw new Error(Ae+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Br=He.roundToPrecision=He.__private__.roundToPrecision=function(Ae,yn){var mi=xt||yn;if(isNaN(Ae)||isNaN(mi))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ae.toFixed(mi).replace(/0+$/,"")};mr=He.hpf=He.__private__.hpf=typeof Fe=="number"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return Br(Ae,Fe)}:Fe==="smart"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return Br(Ae,Ae>-1&&Ae<1?16:5)}:function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return Br(Ae,16)};var Wr=He.f2=He.__private__.f2=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f2");return Br(Ae,2)},Qn=He.__private__.f3=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f3");return Br(Ae,3)},$n=He.scale=He.__private__.scale=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.scale");return Hi===Ai.COMPAT?Ae*ho:Hi===Ai.ADVANCED?Ae:void 0},Zi=function(Ae){return Hi===Ai.COMPAT?Tc()-Ae:Hi===Ai.ADVANCED?Ae:void 0},ge=function(Ae){return $n(Zi(Ae))};He.__private__.setPrecision=He.setPrecision=function(Ae){typeof parseInt(Ae,10)=="number"&&(xt=parseInt(Ae,10))};var Ce,Ve="00000000000000000000000000000000",en=He.__private__.getFileId=function(){return Ve},un=He.__private__.setFileId=function(Ae){return Ve=Ae!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ae)?Ae.toUpperCase():Ve.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),pn!==null&&(Ul=new ao(pn.userPermissions,pn.userPassword,pn.ownerPassword,Ve)),Ve};He.setFileId=function(Ae){return un(Ae),this},He.getFileId=function(){return en()};var hn=He.__private__.convertDateToPDFDate=function(Ae){var yn=Ae.getTimezoneOffset(),mi=yn<0?"+":"-",Ri=Math.floor(Math.abs(yn/60)),ur=Math.abs(yn%60),Qr=[mi,vn(Ri),"'",vn(ur),"'"].join("");return["D:",Ae.getFullYear(),vn(Ae.getMonth()+1),vn(Ae.getDate()),vn(Ae.getHours()),vn(Ae.getMinutes()),vn(Ae.getSeconds()),Qr].join("")},Tn=He.__private__.convertPDFDateToDate=function(Ae){var yn=parseInt(Ae.substr(2,4),10),mi=parseInt(Ae.substr(6,2),10)-1,Ri=parseInt(Ae.substr(8,2),10),ur=parseInt(Ae.substr(10,2),10),Qr=parseInt(Ae.substr(12,2),10),vo=parseInt(Ae.substr(14,2),10);return new Date(yn,mi,Ri,ur,Qr,vo,0)},Xn=He.__private__.setCreationDate=function(Ae){var yn;if(Ae===void 0&&(Ae=new Date),Ae instanceof Date)yn=hn(Ae);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(Ae))throw new Error("Invalid argument passed to jsPDF.setCreationDate");yn=Ae}return Ce=yn},Te=He.__private__.getCreationDate=function(Ae){var yn=Ce;return Ae==="jsDate"&&(yn=Tn(Ce)),yn};He.setCreationDate=function(Ae){return Xn(Ae),this},He.getCreationDate=function(Ae){return Te(Ae)};var ln,vn=He.__private__.padd2=function(Ae){return("0"+parseInt(Ae)).slice(-2)},En=He.__private__.padd2Hex=function(Ae){return("00"+(Ae=Ae.toString())).substr(Ae.length)},Vn=0,li=[],oi=[],Ei=0,Ii=[],$i=[],sr=!1,Ar=oi,Jr=function(){Vn=0,Ei=0,oi=[],li=[],Ii=[],na=Ra(),Na=Ra()};He.__private__.setCustomOutputDestination=function(Ae){sr=!0,Ar=Ae};var Xi=function(Ae){sr||(Ar=Ae)};He.__private__.resetCustomOutputDestination=function(){sr=!1,Ar=oi};var _n=He.__private__.out=function(Ae){return Ae=Ae.toString(),Ei+=Ae.length+1,Ar.push(Ae),Ar},oo=He.__private__.write=function(Ae){return _n(arguments.length===1?Ae.toString():Array.prototype.join.call(arguments," "))},lo=He.__private__.getArrayBuffer=function(Ae){for(var yn=Ae.length,mi=new ArrayBuffer(yn),Ri=new Uint8Array(mi);yn--;)Ri[yn]=Ae.charCodeAt(yn);return mi},ir=[["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]];He.__private__.getStandardFonts=function(){return ir};var yr=Et.fontSize||16;He.__private__.setFontSize=He.setFontSize=function(Ae){return yr=Hi===Ai.ADVANCED?Ae/ho:Ae,this};var fr,nr=He.__private__.getFontSize=He.getFontSize=function(){return Hi===Ai.COMPAT?yr:yr*ho},Or=Et.R2L||!1;He.__private__.setR2L=He.setR2L=function(Ae){return Or=Ae,this},He.__private__.getR2L=He.getR2L=function(){return Or};var uo,So=He.__private__.setZoomMode=function(Ae){var yn=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ae))fr=Ae;else if(isNaN(Ae)){if(yn.indexOf(Ae)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ae+'" is not recognized.');fr=Ae}else fr=parseInt(Ae,10)};He.__private__.getZoomMode=function(){return fr};var Fo,zr=He.__private__.setPageMode=function(Ae){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ae)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ae+'" is not recognized.');uo=Ae};He.__private__.getPageMode=function(){return uo};var Vo=He.__private__.setLayoutMode=function(Ae){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ae)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ae+'" is not recognized.');Fo=Ae};He.__private__.getLayoutMode=function(){return Fo},He.__private__.setDisplayMode=He.setDisplayMode=function(Ae,yn,mi){return So(Ae),Vo(yn),zr(mi),this};var Mo={title:"",subject:"",author:"",keywords:"",creator:""};He.__private__.getDocumentProperty=function(Ae){if(Object.keys(Mo).indexOf(Ae)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Mo[Ae]},He.__private__.getDocumentProperties=function(){return Mo},He.__private__.setDocumentProperties=He.setProperties=He.setDocumentProperties=function(Ae){for(var yn in Mo)Mo.hasOwnProperty(yn)&&Ae[yn]&&(Mo[yn]=Ae[yn]);return this},He.__private__.setDocumentProperty=function(Ae,yn){if(Object.keys(Mo).indexOf(Ae)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Mo[Ae]=yn};var hs,ho,Pa,Os,Ps,Io={},Fs={},$a=[],js={},jl={},Po={},as={},ds=null,ko=0,Jo=[],bo=new zi(He),Ls=Et.hotfixes||[],_s={},ea={},Yl=[],As=function Ae(yn,mi,Ri,ur,Qr,vo){if(!(this instanceof Ae))return new Ae(yn,mi,Ri,ur,Qr,vo);isNaN(yn)&&(yn=1),isNaN(mi)&&(mi=0),isNaN(Ri)&&(Ri=0),isNaN(ur)&&(ur=1),isNaN(Qr)&&(Qr=0),isNaN(vo)&&(vo=0),this._matrix=[yn,mi,Ri,ur,Qr,vo]};Object.defineProperty(As.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(As.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(As.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(As.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(As.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(As.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(As.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(As.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(As.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(As.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(As.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(As.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(As.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(As.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(As.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(As.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),As.prototype.join=function(Ae){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(mr).join(Ae)},As.prototype.multiply=function(Ae){var yn=Ae.sx*this.sx+Ae.shy*this.shx,mi=Ae.sx*this.shy+Ae.shy*this.sy,Ri=Ae.shx*this.sx+Ae.sy*this.shx,ur=Ae.shx*this.shy+Ae.sy*this.sy,Qr=Ae.tx*this.sx+Ae.ty*this.shx+this.tx,vo=Ae.tx*this.shy+Ae.ty*this.sy+this.ty;return new As(yn,mi,Ri,ur,Qr,vo)},As.prototype.decompose=function(){var Ae=this.sx,yn=this.shy,mi=this.shx,Ri=this.sy,ur=this.tx,Qr=this.ty,vo=Math.sqrt(Ae*Ae+yn*yn),ps=(Ae/=vo)*mi+(yn/=vo)*Ri;mi-=Ae*ps,Ri-=yn*ps;var Ws=Math.sqrt(mi*mi+Ri*Ri);return ps/=Ws,Ae*(Ri/=Ws)<yn*(mi/=Ws)&&(Ae=-Ae,yn=-yn,ps=-ps,vo=-vo),{scale:new As(vo,0,0,Ws,0,0),translate:new As(1,0,0,1,ur,Qr),rotate:new As(Ae,yn,-yn,Ae,0,0),skew:new As(1,0,ps,1,0,0)}},As.prototype.toString=function(Ae){return this.join(" ")},As.prototype.inversed=function(){var Ae=this.sx,yn=this.shy,mi=this.shx,Ri=this.sy,ur=this.tx,Qr=this.ty,vo=1/(Ae*Ri-yn*mi),ps=Ri*vo,Ws=-yn*vo,_a=-mi*vo,ba=Ae*vo;return new As(ps,Ws,_a,ba,-ps*ur-_a*Qr,-Ws*ur-ba*Qr)},As.prototype.applyToPoint=function(Ae){var yn=Ae.x*this.sx+Ae.y*this.shx+this.tx,mi=Ae.x*this.shy+Ae.y*this.sy+this.ty;return new pc(yn,mi)},As.prototype.applyToRectangle=function(Ae){var yn=this.applyToPoint(Ae),mi=this.applyToPoint(new pc(Ae.x+Ae.w,Ae.y+Ae.h));return new hd(yn.x,yn.y,mi.x-yn.x,mi.y-yn.y)},As.prototype.clone=function(){var Ae=this.sx,yn=this.shy,mi=this.shx,Ri=this.sy,ur=this.tx,Qr=this.ty;return new As(Ae,yn,mi,Ri,ur,Qr)},He.Matrix=As;var eu=He.matrixMult=function(Ae,yn){return yn.multiply(Ae)},fa=new As(1,0,0,1,0,0);He.unitMatrix=He.identityMatrix=fa;var yl=function(Ae,yn){if(!jl[Ae]){var mi=(yn instanceof la?"Sh":"P")+(Object.keys(js).length+1).toString(10);yn.id=mi,jl[Ae]=mi,js[mi]=yn,bo.publish("addPattern",yn)}};He.ShadingPattern=la,He.TilingPattern=ca,He.addShadingPattern=function(Ae,yn){return Ti("addShadingPattern()"),yl(Ae,yn),this},He.beginTilingPattern=function(Ae){Ti("beginTilingPattern()"),Rh(Ae.boundingBox[0],Ae.boundingBox[1],Ae.boundingBox[2]-Ae.boundingBox[0],Ae.boundingBox[3]-Ae.boundingBox[1],Ae.matrix)},He.endTilingPattern=function(Ae,yn){Ti("endTilingPattern()"),yn.stream=$i[ln].join(`
`),yl(Ae,yn),bo.publish("endTilingPattern",yn),Yl.pop().restore()};var po=He.__private__.newObject=function(){var Ae=Ra();return Nu(Ae,!0),Ae},Ra=He.__private__.newObjectDeferred=function(){return Vn++,li[Vn]=function(){return Ei},Vn},Nu=function(Ae,yn){return yn=typeof yn=="boolean"&&yn,li[Ae]=Ei,yn&&_n(Ae+" 0 obj"),Ae},wa=He.__private__.newAdditionalObject=function(){var Ae={objId:Ra(),content:""};return Ii.push(Ae),Ae},na=Ra(),Na=Ra(),Xa=He.__private__.decodeColorString=function(Ae){var yn=Ae.split(" ");if(yn.length!==2||yn[1]!=="g"&&yn[1]!=="G")yn.length===5&&(yn[4]==="k"||yn[4]==="K")&&(yn=[(1-yn[0])*(1-yn[3]),(1-yn[1])*(1-yn[3]),(1-yn[2])*(1-yn[3]),"r"]);else{var mi=parseFloat(yn[0]);yn=[mi,mi,mi,"r"]}for(var Ri="#",ur=0;ur<3;ur++)Ri+=("0"+Math.floor(255*parseFloat(yn[ur])).toString(16)).slice(-2);return Ri},ul=He.__private__.encodeColorString=function(Ae){var yn;typeof Ae=="string"&&(Ae={ch1:Ae});var mi=Ae.ch1,Ri=Ae.ch2,ur=Ae.ch3,Qr=Ae.ch4,vo=Ae.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof mi=="string"&&mi.charAt(0)!=="#"){var ps=new si(mi);if(ps.ok)mi=ps.toHex();else if(!/^\d*\.?\d*$/.test(mi))throw new Error('Invalid color "'+mi+'" passed to jsPDF.encodeColorString.')}if(typeof mi=="string"&&/^#[0-9A-Fa-f]{3}$/.test(mi)&&(mi="#"+mi[1]+mi[1]+mi[2]+mi[2]+mi[3]+mi[3]),typeof mi=="string"&&/^#[0-9A-Fa-f]{6}$/.test(mi)){var Ws=parseInt(mi.substr(1),16);mi=Ws>>16&255,Ri=Ws>>8&255,ur=255&Ws}if(Ri===void 0||Qr===void 0&&mi===Ri&&Ri===ur)if(typeof mi=="string")yn=mi+" "+vo[0];else switch(Ae.precision){case 2:yn=Wr(mi/255)+" "+vo[0];break;case 3:default:yn=Qn(mi/255)+" "+vo[0]}else if(Qr===void 0||(0,Ft.Z)(Qr)==="object"){if(Qr&&!isNaN(Qr.a)&&Qr.a===0)return yn=["1.","1.","1.",vo[1]].join(" ");if(typeof mi=="string")yn=[mi,Ri,ur,vo[1]].join(" ");else switch(Ae.precision){case 2:yn=[Wr(mi/255),Wr(Ri/255),Wr(ur/255),vo[1]].join(" ");break;default:case 3:yn=[Qn(mi/255),Qn(Ri/255),Qn(ur/255),vo[1]].join(" ")}}else if(typeof mi=="string")yn=[mi,Ri,ur,Qr,vo[2]].join(" ");else switch(Ae.precision){case 2:yn=[Wr(mi),Wr(Ri),Wr(ur),Wr(Qr),vo[2]].join(" ");break;case 3:default:yn=[Qn(mi),Qn(Ri),Qn(ur),Qn(Qr),vo[2]].join(" ")}return yn},Qs=He.__private__.getFilters=function(){return pe},Ia=He.__private__.putStream=function(Ae){var yn=(Ae=Ae||{}).data||"",mi=Ae.filters||Qs(),Ri=Ae.alreadyAppliedFilters||[],ur=Ae.addLength1||!1,Qr=yn.length,vo=Ae.objectId,ps=function(Al){return Al};if(pn!==null&&vo===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");pn!==null&&(ps=Ul.encryptor(vo,0));var Ws={};mi===!0&&(mi=["FlateEncode"]);var _a=Ae.additionalKeyValues||[],ba=(Ws=Qo.API.processDataByFilters!==void 0?Qo.API.processDataByFilters(yn,mi):{data:yn,reverseChain:[]}).reverseChain+(Array.isArray(Ri)?Ri.join(" "):Ri.toString());if(Ws.data.length!==0&&(_a.push({key:"Length",value:Ws.data.length}),ur===!0&&_a.push({key:"Length1",value:Qr})),ba.length!=0)if(ba.split("/").length-1==1)_a.push({key:"Filter",value:ba});else{_a.push({key:"Filter",value:"["+ba+"]"});for(var Cl=0;Cl<_a.length;Cl+=1)if(_a[Cl].key==="DecodeParms"){for(var Us=[],Au=0;Au<Ws.reverseChain.split("/").length-1;Au+=1)Us.push("null");Us.push(_a[Cl].value),_a[Cl].value="["+Us.join(" ")+"]"}}_n("<<");for(var yu=0;yu<_a.length;yu++)_n("/"+_a[yu].key+" "+_a[yu].value);_n(">>"),Ws.data.length!==0&&(_n("stream"),_n(ps(Ws.data)),_n("endstream"))},Nl=He.__private__.putPage=function(Ae){var yn=Ae.number,mi=Ae.data,Ri=Ae.objId,ur=Ae.contentsObjId;Nu(Ri,!0),_n("<</Type /Page"),_n("/Parent "+Ae.rootDictionaryObjId+" 0 R"),_n("/Resources "+Ae.resourceDictionaryObjId+" 0 R"),_n("/MediaBox ["+parseFloat(mr(Ae.mediaBox.bottomLeftX))+" "+parseFloat(mr(Ae.mediaBox.bottomLeftY))+" "+mr(Ae.mediaBox.topRightX)+" "+mr(Ae.mediaBox.topRightY)+"]"),Ae.cropBox!==null&&_n("/CropBox ["+mr(Ae.cropBox.bottomLeftX)+" "+mr(Ae.cropBox.bottomLeftY)+" "+mr(Ae.cropBox.topRightX)+" "+mr(Ae.cropBox.topRightY)+"]"),Ae.bleedBox!==null&&_n("/BleedBox ["+mr(Ae.bleedBox.bottomLeftX)+" "+mr(Ae.bleedBox.bottomLeftY)+" "+mr(Ae.bleedBox.topRightX)+" "+mr(Ae.bleedBox.topRightY)+"]"),Ae.trimBox!==null&&_n("/TrimBox ["+mr(Ae.trimBox.bottomLeftX)+" "+mr(Ae.trimBox.bottomLeftY)+" "+mr(Ae.trimBox.topRightX)+" "+mr(Ae.trimBox.topRightY)+"]"),Ae.artBox!==null&&_n("/ArtBox ["+mr(Ae.artBox.bottomLeftX)+" "+mr(Ae.artBox.bottomLeftY)+" "+mr(Ae.artBox.topRightX)+" "+mr(Ae.artBox.topRightY)+"]"),typeof Ae.userUnit=="number"&&Ae.userUnit!==1&&_n("/UserUnit "+Ae.userUnit),bo.publish("putPage",{objId:Ri,pageContext:Jo[yn],pageNumber:yn,page:mi}),_n("/Contents "+ur+" 0 R"),_n(">>"),_n("endobj");var Qr=mi.join(`
`);return Hi===Ai.ADVANCED&&(Qr+=`
Q`),Nu(ur,!0),Ia({data:Qr,filters:Qs(),objectId:ur}),_n("endobj"),Ri},Iu=He.__private__.putPages=function(){var Ae,yn,mi=[];for(Ae=1;Ae<=ko;Ae++)Jo[Ae].objId=Ra(),Jo[Ae].contentsObjId=Ra();for(Ae=1;Ae<=ko;Ae++)mi.push(Nl({number:Ae,data:$i[Ae],objId:Jo[Ae].objId,contentsObjId:Jo[Ae].contentsObjId,mediaBox:Jo[Ae].mediaBox,cropBox:Jo[Ae].cropBox,bleedBox:Jo[Ae].bleedBox,trimBox:Jo[Ae].trimBox,artBox:Jo[Ae].artBox,userUnit:Jo[Ae].userUnit,rootDictionaryObjId:na,resourceDictionaryObjId:Na}));Nu(na,!0),_n("<</Type /Pages");var Ri="/Kids [";for(yn=0;yn<ko;yn++)Ri+=mi[yn]+" 0 R ";_n(Ri+"]"),_n("/Count "+ko),_n(">>"),_n("endobj"),bo.publish("postPutPages")},mu=function(Ae){bo.publish("putFont",{font:Ae,out:_n,newObject:po,putStream:Ia}),Ae.isAlreadyPutted!==!0&&(Ae.objectNumber=po(),_n("<<"),_n("/Type /Font"),_n("/BaseFont /"+mo(Ae.postScriptName)),_n("/Subtype /Type1"),typeof Ae.encoding=="string"&&_n("/Encoding /"+Ae.encoding),_n("/FirstChar 32"),_n("/LastChar 255"),_n(">>"),_n("endobj"))},Tu=function(){for(var Ae in Io)Io.hasOwnProperty(Ae)&&(gn===!1||gn===!0&&Nn.hasOwnProperty(Ae))&&mu(Io[Ae])},Gu=function(Ae){Ae.objectNumber=po();var yn=[];yn.push({key:"Type",value:"/XObject"}),yn.push({key:"Subtype",value:"/Form"}),yn.push({key:"BBox",value:"["+[mr(Ae.x),mr(Ae.y),mr(Ae.x+Ae.width),mr(Ae.y+Ae.height)].join(" ")+"]"}),yn.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"});var mi=Ae.pages[1].join(`
`);Ia({data:mi,additionalKeyValues:yn,objectId:Ae.objectNumber}),_n("endobj")},oh=function(){for(var Ae in _s)_s.hasOwnProperty(Ae)&&Gu(_s[Ae])},sh=function(Ae,yn){var mi,Ri=[],ur=1/(yn-1);for(mi=0;mi<1;mi+=ur)Ri.push(mi);if(Ri.push(1),Ae[0].offset!=0){var Qr={offset:0,color:Ae[0].color};Ae.unshift(Qr)}if(Ae[Ae.length-1].offset!=1){var vo={offset:1,color:Ae[Ae.length-1].color};Ae.push(vo)}for(var ps="",Ws=0,_a=0;_a<Ri.length;_a++){for(mi=Ri[_a];mi>Ae[Ws+1].offset;)Ws++;var ba=Ae[Ws].offset,Cl=(mi-ba)/(Ae[Ws+1].offset-ba),Us=Ae[Ws].color,Au=Ae[Ws+1].color;ps+=En(Math.round((1-Cl)*Us[0]+Cl*Au[0]).toString(16))+En(Math.round((1-Cl)*Us[1]+Cl*Au[1]).toString(16))+En(Math.round((1-Cl)*Us[2]+Cl*Au[2]).toString(16))}return ps.trim()},Va=function(Ae,yn){yn||(yn=21);var mi=po(),Ri=sh(Ae.colors,yn),ur=[];ur.push({key:"FunctionType",value:"0"}),ur.push({key:"Domain",value:"[0.0 1.0]"}),ur.push({key:"Size",value:"["+yn+"]"}),ur.push({key:"BitsPerSample",value:"8"}),ur.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ur.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ia({data:Ri,additionalKeyValues:ur,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:mi}),_n("endobj"),Ae.objectNumber=po(),_n("<< /ShadingType "+Ae.type),_n("/ColorSpace /DeviceRGB");var Qr="/Coords ["+mr(parseFloat(Ae.coords[0]))+" "+mr(parseFloat(Ae.coords[1]))+" ";Ae.type===2?Qr+=mr(parseFloat(Ae.coords[2]))+" "+mr(parseFloat(Ae.coords[3])):Qr+=mr(parseFloat(Ae.coords[2]))+" "+mr(parseFloat(Ae.coords[3]))+" "+mr(parseFloat(Ae.coords[4]))+" "+mr(parseFloat(Ae.coords[5])),_n(Qr+="]"),Ae.matrix&&_n("/Matrix ["+Ae.matrix.toString()+"]"),_n("/Function "+mi+" 0 R"),_n("/Extend [true true]"),_n(">>"),_n("endobj")},Cu=function(Ae,yn){var mi=Ra(),Ri=po();yn.push({resourcesOid:mi,objectOid:Ri}),Ae.objectNumber=Ri;var ur=[];ur.push({key:"Type",value:"/Pattern"}),ur.push({key:"PatternType",value:"1"}),ur.push({key:"PaintType",value:"1"}),ur.push({key:"TilingType",value:"1"}),ur.push({key:"BBox",value:"["+Ae.boundingBox.map(mr).join(" ")+"]"}),ur.push({key:"XStep",value:mr(Ae.xStep)}),ur.push({key:"YStep",value:mr(Ae.yStep)}),ur.push({key:"Resources",value:mi+" 0 R"}),Ae.matrix&&ur.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"}),Ia({data:Ae.stream,additionalKeyValues:ur,objectId:Ae.objectNumber}),_n("endobj")},Sl=function(Ae){var yn;for(yn in js)js.hasOwnProperty(yn)&&(js[yn]instanceof la?Va(js[yn]):js[yn]instanceof ca&&Cu(js[yn],Ae))},dl=function(Ae){for(var yn in Ae.objectNumber=po(),_n("<<"),Ae)switch(yn){case"opacity":_n("/ca "+Wr(Ae[yn]));break;case"stroke-opacity":_n("/CA "+Wr(Ae[yn]))}_n(">>"),_n("endobj")},ph=function(){var Ae;for(Ae in Po)Po.hasOwnProperty(Ae)&&dl(Po[Ae])},ec=function(){for(var Ae in _n("/XObject <<"),_s)_s.hasOwnProperty(Ae)&&_s[Ae].objectNumber>=0&&_n("/"+Ae+" "+_s[Ae].objectNumber+" 0 R");bo.publish("putXobjectDict"),_n(">>")},bh=function(){Ul.oid=po(),_n("<<"),_n("/Filter /Standard"),_n("/V "+Ul.v),_n("/R "+Ul.r),_n("/U <"+Ul.toHexString(Ul.U)+">"),_n("/O <"+Ul.toHexString(Ul.O)+">"),_n("/P "+Ul.P),_n(">>"),_n("endobj")},Dh=function(){for(var Ae in _n("/Font <<"),Io)Io.hasOwnProperty(Ae)&&(gn===!1||gn===!0&&Nn.hasOwnProperty(Ae))&&_n("/"+Ae+" "+Io[Ae].objectNumber+" 0 R");_n(">>")},fc=function(){if(Object.keys(js).length>0){for(var Ae in _n("/Shading <<"),js)js.hasOwnProperty(Ae)&&js[Ae]instanceof la&&js[Ae].objectNumber>=0&&_n("/"+Ae+" "+js[Ae].objectNumber+" 0 R");bo.publish("putShadingPatternDict"),_n(">>")}},Wu=function(Ae){if(Object.keys(js).length>0){for(var yn in _n("/Pattern <<"),js)js.hasOwnProperty(yn)&&js[yn]instanceof He.TilingPattern&&js[yn].objectNumber>=0&&js[yn].objectNumber<Ae&&_n("/"+yn+" "+js[yn].objectNumber+" 0 R");bo.publish("putTilingPatternDict"),_n(">>")}},Ta=function(){if(Object.keys(Po).length>0){var Ae;for(Ae in _n("/ExtGState <<"),Po)Po.hasOwnProperty(Ae)&&Po[Ae].objectNumber>=0&&_n("/"+Ae+" "+Po[Ae].objectNumber+" 0 R");bo.publish("putGStateDict"),_n(">>")}},ra=function(Ae){Nu(Ae.resourcesOid,!0),_n("<<"),_n("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Dh(),fc(),Wu(Ae.objectOid),Ta(),ec(),_n(">>"),_n("endobj")},uu=function(){var Ae=[];Tu(),ph(),oh(),Sl(Ae),bo.publish("putResources"),Ae.forEach(ra),ra({resourcesOid:Na,objectOid:Number.MAX_SAFE_INTEGER}),bo.publish("postPutResources")},wl=function(){bo.publish("putAdditionalObjects");for(var Ae=0;Ae<Ii.length;Ae++){var yn=Ii[Ae];Nu(yn.objId,!0),_n(yn.content),_n("endobj")}bo.publish("postPutAdditionalObjects")},ga=function(Ae){Fs[Ae.fontName]=Fs[Ae.fontName]||{},Fs[Ae.fontName][Ae.fontStyle]=Ae.id},hu=function(Ae,yn,mi,Ri,ur){var Qr={id:"F"+(Object.keys(Io).length+1).toString(10),postScriptName:Ae,fontName:yn,fontStyle:mi,encoding:Ri,isStandardFont:ur||!1,metadata:{}};return bo.publish("addFont",{font:Qr,instance:this}),Io[Qr.id]=Qr,ga(Qr),Qr.id},Ru=function(Ae){for(var yn=0,mi=ir.length;yn<mi;yn++){var Ri=hu.call(this,Ae[yn][0],Ae[yn][1],Ae[yn][2],ir[yn][3],!0);gn===!1&&(Nn[Ri]=!0);var ur=Ae[yn][0].split("-");ga({id:Ri,fontName:ur[0],fontStyle:ur[1]||""})}bo.publish("addFonts",{fonts:Io,dictionary:Fs})},ku=function(Ae){return Ae.foo=function(){try{return Ae.apply(this,arguments)}catch(Ri){var yn=Ri.stack||"";~yn.indexOf(" at ")&&(yn=yn.split(" at ")[1]);var mi="Error in function "+yn.split(`
`)[0].split("<")[0]+": "+Ri.message;if(!_r.console)throw new Error(mi);_r.console.error(mi,Ri),_r.alert&&alert(mi)}},Ae.foo.bar=Ae,Ae.foo},Yc=function(Ae,yn){var mi,Ri,ur,Qr,vo,ps,Ws,_a,ba;if(ur=(yn=yn||{}).sourceEncoding||"Unicode",vo=yn.outputEncoding,(yn.autoencode||vo)&&Io[hs].metadata&&Io[hs].metadata[ur]&&Io[hs].metadata[ur].encoding&&(Qr=Io[hs].metadata[ur].encoding,!vo&&Io[hs].encoding&&(vo=Io[hs].encoding),!vo&&Qr.codePages&&(vo=Qr.codePages[0]),typeof vo=="string"&&(vo=Qr[vo]),vo)){for(Ws=!1,ps=[],mi=0,Ri=Ae.length;mi<Ri;mi++)(_a=vo[Ae.charCodeAt(mi)])?ps.push(String.fromCharCode(_a)):ps.push(Ae[mi]),ps[mi].charCodeAt(0)>>8&&(Ws=!0);Ae=ps.join("")}for(mi=Ae.length;Ws===void 0&&mi!==0;)Ae.charCodeAt(mi-1)>>8&&(Ws=!0),mi--;if(!Ws)return Ae;for(ps=yn.noBOM?[]:[254,255],mi=0,Ri=Ae.length;mi<Ri;mi++){if((ba=(_a=Ae.charCodeAt(mi))>>8)>>8)throw new Error("Character at position "+mi+" of string '"+Ae+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ps.push(ba),ps.push(_a-(ba<<8))}return String.fromCharCode.apply(void 0,ps)},jn=He.__private__.pdfEscape=He.pdfEscape=function(Ae,yn){return Yc(Ae,yn).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},nc=He.__private__.beginPage=function(Ae){$i[++ko]=[],Jo[ko]={objId:0,contentsObjId:0,userUnit:Number(ye),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ae[0]),topRightY:Number(Ae[1])}},$c(ko),Xi($i[ln])},jh=function(Ae,yn){var mi,Ri,ur;switch(Lt=yn||Lt,typeof Ae=="string"&&(mi=Un(Ae.toLowerCase()),Array.isArray(mi)&&(Ri=mi[0],ur=mi[1])),Array.isArray(Ae)&&(Ri=Ae[0]*ho,ur=Ae[1]*ho),isNaN(Ri)&&(Ri=se[0],ur=se[1]),(Ri>14400||ur>14400)&&(Ho.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Ri=Math.min(14400,Ri),ur=Math.min(14400,ur)),se=[Ri,ur],Lt.substr(0,1)){case"l":ur>Ri&&(se=[ur,Ri]);break;case"p":Ri>ur&&(se=[ur,Ri])}nc(se),vh(hl),_n(ic),rc!==0&&_n(rc+" J"),QA!==0&&_n(QA+" j"),bo.publish("addPage",{pageNumber:ko})},EA=function(Ae){Ae>0&&Ae<=ko&&($i.splice(Ae,1),Jo.splice(Ae,1),ko--,ln>ko&&(ln=ko),this.setPage(ln))},$c=function(Ae){Ae>0&&Ae<=ko&&(ln=Ae)},Fc=He.__private__.getNumberOfPages=He.getNumberOfPages=function(){return $i.length-1},ad=function(Ae,yn,mi){var Ri,ur=void 0;return mi=mi||{},Ae=Ae!==void 0?Ae:Io[hs].fontName,yn=yn!==void 0?yn:Io[hs].fontStyle,Ri=Ae.toLowerCase(),Fs[Ri]!==void 0&&Fs[Ri][yn]!==void 0?ur=Fs[Ri][yn]:Fs[Ae]!==void 0&&Fs[Ae][yn]!==void 0?ur=Fs[Ae][yn]:mi.disableWarning===!1&&Ho.warn("Unable to look up font label for font '"+Ae+"', '"+yn+"'. Refer to getFontList() for available fonts."),ur||mi.noFallback||(ur=Fs.times[yn])==null&&(ur=Fs.times.normal),ur},HA=He.__private__.putInfo=function(){var Ae=po(),yn=function(Ri){return Ri};for(var mi in pn!==null&&(yn=Ul.encryptor(Ae,0)),_n("<<"),_n("/Producer ("+jn(yn("jsPDF "+Qo.version))+")"),Mo)Mo.hasOwnProperty(mi)&&Mo[mi]&&_n("/"+mi.substr(0,1).toUpperCase()+mi.substr(1)+" ("+jn(yn(Mo[mi]))+")");_n("/CreationDate ("+jn(yn(Ce))+")"),_n(">>"),_n("endobj")},vu=He.__private__.putCatalog=function(Ae){var yn=(Ae=Ae||{}).rootDictionaryObjId||na;switch(po(),_n("<<"),_n("/Type /Catalog"),_n("/Pages "+yn+" 0 R"),fr||(fr="fullwidth"),fr){case"fullwidth":_n("/OpenAction [3 0 R /FitH null]");break;case"fullheight":_n("/OpenAction [3 0 R /FitV null]");break;case"fullpage":_n("/OpenAction [3 0 R /Fit]");break;case"original":_n("/OpenAction [3 0 R /XYZ null null 1]");break;default:var mi=""+fr;mi.substr(mi.length-1)==="%"&&(fr=parseInt(fr)/100),typeof fr=="number"&&_n("/OpenAction [3 0 R /XYZ null null "+Wr(fr)+"]")}switch(Fo||(Fo="continuous"),Fo){case"continuous":_n("/PageLayout /OneColumn");break;case"single":_n("/PageLayout /SinglePage");break;case"two":case"twoleft":_n("/PageLayout /TwoColumnLeft");break;case"tworight":_n("/PageLayout /TwoColumnRight")}uo&&_n("/PageMode /"+uo),bo.publish("putCatalog"),_n(">>"),_n("endobj")},Sd=He.__private__.putTrailer=function(){_n("trailer"),_n("<<"),_n("/Size "+(Vn+1)),_n("/Root "+Vn+" 0 R"),_n("/Info "+(Vn-1)+" 0 R"),pn!==null&&_n("/Encrypt "+Ul.oid+" 0 R"),_n("/ID [ <"+Ve+"> <"+Ve+"> ]"),_n(">>")},Rd=He.__private__.putHeader=function(){_n("%PDF-"+ci),_n("%\xBA\xDF\xAC\xE0")},ld=He.__private__.putXRef=function(){var Ae="0000000000";_n("xref"),_n("0 "+(Vn+1)),_n("0000000000 65535 f ");for(var yn=1;yn<=Vn;yn++)typeof li[yn]=="function"?_n((Ae+li[yn]()).slice(-10)+" 00000 n "):li[yn]!==void 0?_n((Ae+li[yn]).slice(-10)+" 00000 n "):_n("0000000000 00000 n ")},Lc=He.__private__.buildDocument=function(){Jr(),Xi(oi),bo.publish("buildDocument"),Rd(),Iu(),wl(),uu(),pn!==null&&bh(),HA(),vu();var Ae=Ei;return ld(),Sd(),_n("startxref"),_n(""+Ae),_n("%%EOF"),Xi($i[ln]),oi.join(`
`)},_d=He.__private__.getBlob=function(Ae){return new Blob([lo(Ae)],{type:"application/pdf"})},Cd=He.output=He.__private__.output=ku(function(Ae,yn){switch(typeof(yn=yn||{})=="string"?yn={filename:yn}:yn.filename=yn.filename||"generated.pdf",Ae){case void 0:return Lc();case"save":He.save(yn.filename);break;case"arraybuffer":return lo(Lc());case"blob":return _d(Lc());case"bloburi":case"bloburl":if(_r.URL!==void 0&&typeof _r.URL.createObjectURL=="function")return _r.URL&&_r.URL.createObjectURL(_d(Lc()))||void 0;Ho.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var mi="",Ri=Lc();try{mi=Hs(Ri)}catch(Au){mi=Hs(unescape(encodeURIComponent(Ri)))}return"data:application/pdf;filename="+yn.filename+";base64,"+mi;case"pdfobjectnewwindow":if(Object.prototype.toString.call(_r)==="[object Window]"){var ur="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Qr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';yn.pdfObjectUrl&&(ur=yn.pdfObjectUrl,Qr="");var vo='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ur+'"'+Qr+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(yn)+");<\/script></body></html>",ps=_r.open();return ps!==null&&ps.document.write(vo),ps}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(_r)==="[object Window]"){var Ws='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(yn.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+yn.filename+'" width="500px" height="400px" /></body></html>',_a=_r.open();if(_a!==null){_a.document.write(Ws);var ba=this;_a.document.documentElement.querySelector("#pdfViewer").onload=function(){_a.document.title=yn.filename,_a.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ba.output("bloburl"))}}return _a}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(_r)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Cl='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",yn)+'"></iframe></body></html>',Us=_r.open();if(Us!==null&&(Us.document.write(Cl),Us.document.title=yn.filename),Us||typeof safari=="undefined")return Us;break;case"datauri":case"dataurl":return _r.document.location.href=this.output("datauristring",yn);default:return null}}),ah=function(Ae){return Array.isArray(Ls)===!0&&Ls.indexOf(Ae)>-1};switch(Rt){case"pt":ho=1;break;case"mm":ho=72/25.4;break;case"cm":ho=72/2.54;break;case"in":ho=72;break;case"px":ho=ah("px_scaling")==1?.75:96/72;break;case"pc":case"em":ho=12;break;case"ex":ho=6;break;default:if(typeof Rt!="number")throw new Error("Invalid unit: "+Rt);ho=Rt}var Ul=null;Xn(),un();var Bd=function(Ae){return pn!==null?Ul.encryptor(Ae,0):function(yn){return yn}},lA=He.__private__.getPageInfo=He.getPageInfo=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Jo[Ae].objId,pageNumber:Ae,pageContext:Jo[Ae]}},Ys=He.__private__.getPageInfoByObjId=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var yn in Jo)if(Jo[yn].objId===Ae)break;return lA(yn)},Xc=He.__private__.getCurrentPageInfo=He.getCurrentPageInfo=function(){return{objId:Jo[ln].objId,pageNumber:ln,pageContext:Jo[ln]}};He.addPage=function(){return jh.apply(this,arguments),this},He.setPage=function(){return $c.apply(this,arguments),Xi.call(this,$i[ln]),this},He.insertPage=function(Ae){return this.addPage(),this.movePage(ln,Ae),this},He.movePage=function(Ae,yn){var mi,Ri;if(Ae>yn){mi=$i[Ae],Ri=Jo[Ae];for(var ur=Ae;ur>yn;ur--)$i[ur]=$i[ur-1],Jo[ur]=Jo[ur-1];$i[yn]=mi,Jo[yn]=Ri,this.setPage(yn)}else if(Ae<yn){mi=$i[Ae],Ri=Jo[Ae];for(var Qr=Ae;Qr<yn;Qr++)$i[Qr]=$i[Qr+1],Jo[Qr]=Jo[Qr+1];$i[yn]=mi,Jo[yn]=Ri,this.setPage(yn)}return this},He.deletePage=function(){return EA.apply(this,arguments),this},He.__private__.text=He.text=function(Ae,yn,mi,Ri,ur){var Qr,vo,ps,Ws,_a,ba,Cl,Us,Au,yu=(Ri=Ri||{}).scope||this;if(typeof Ae=="number"&&typeof yn=="number"&&(typeof mi=="string"||Array.isArray(mi))){var Al=mi;mi=yn,yn=Ae,Ae=Al}if(arguments[3]instanceof As?(Ti("The transform parameter of text() with a Matrix value"),Au=ur):(ps=arguments[4],Ws=arguments[5],(0,Ft.Z)(Cl=arguments[3])==="object"&&Cl!==null||(typeof ps=="string"&&(Ws=ps,ps=null),typeof Cl=="string"&&(Ws=Cl,Cl=null),typeof Cl=="number"&&(ps=Cl,Cl=null),Ri={flags:Cl,angle:ps,align:Ws})),isNaN(yn)||isNaN(mi)||Ae==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ae.length===0)return yu;var Il="",wh=!1,Eh=typeof Ri.lineHeightFactor=="number"?Ri.lineHeightFactor:xa,oc=yu.internal.scaleFactor;function Vd(Ja){return Ja=Ja.split(" ").join(Array(Ri.TabLen||9).join(" ")),jn(Ja,Cl)}function cA(Ja){for(var Ua,Za=Ja.concat(),El=[],wu=Za.length;wu--;)typeof(Ua=Za.shift())=="string"?El.push(Ua):Array.isArray(Ja)&&(Ua.length===1||Ua[1]===void 0&&Ua[2]===void 0)?El.push(Ua[0]):El.push([Ua[0],Ua[1],Ua[2]]);return El}function dA(Ja,Ua){var Za;if(typeof Ja=="string")Za=Ua(Ja)[0];else if(Array.isArray(Ja)){for(var El,wu,Uo=Ja.concat(),Ca=[],Xl=Uo.length;Xl--;)typeof(El=Uo.shift())=="string"?Ca.push(Ua(El)[0]):Array.isArray(El)&&typeof El[0]=="string"&&(wu=Ua(El[0],El[1],El[2]),Ca.push([wu[0],wu[1],wu[2]]));Za=Ca}return Za}var AA=!1,kc=!0;if(typeof Ae=="string")AA=!0;else if(Array.isArray(Ae)){var Ld=Ae.concat();vo=[];for(var Oc,Sa=Ld.length;Sa--;)(typeof(Oc=Ld.shift())!="string"||Array.isArray(Oc)&&typeof Oc[0]!="string")&&(kc=!1);AA=kc}if(AA===!1)throw new Error('Type of text must be string or Array. "'+Ae+'" is not recognized.');typeof Ae=="string"&&(Ae=Ae.match(/[\r?\n]/)?Ae.split(/\r\n|\r|\n/g):[Ae]);var mc=yr/yu.internal.scaleFactor,Zd=mc*(Eh-1);switch(Ri.baseline){case"bottom":mi-=Zd;break;case"top":mi+=mc-Zd;break;case"hanging":mi+=mc-2*Zd;break;case"middle":mi+=mc/2-Zd}if((ba=Ri.maxWidth||0)>0&&(typeof Ae=="string"?Ae=yu.splitTextToSize(Ae,ba):Object.prototype.toString.call(Ae)==="[object Array]"&&(Ae=Ae.reduce(function(Ja,Ua){return Ja.concat(yu.splitTextToSize(Ua,ba))},[]))),Qr={text:Ae,x:yn,y:mi,options:Ri,mutex:{pdfEscape:jn,activeFontKey:hs,fonts:Io,activeFontSize:yr}},bo.publish("preProcessText",Qr),Ae=Qr.text,ps=(Ri=Qr.options).angle,!(Au instanceof As)&&ps&&typeof ps=="number"){ps*=Math.PI/180,Ri.rotationDirection===0&&(ps=-ps),Hi===Ai.ADVANCED&&(ps=-ps);var Jl=Math.cos(ps),_h=Math.sin(ps);Au=new As(Jl,_h,-_h,Jl,0,0)}else ps&&ps instanceof As&&(Au=ps);Hi!==Ai.ADVANCED||Au||(Au=fa),(_a=Ri.charSpace||uA)!==void 0&&(Il+=mr($n(_a))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Us=Ri.horizontalScale)!==void 0&&(Il+=mr(100*Us)+` Tz
`),Ri.lang;var _u=-1,cd=Ri.renderingMode!==void 0?Ri.renderingMode:Ri.stroke,Rl=yu.internal.getCurrentPageInfo().pageContext;switch(cd){case 0:case!1:case"fill":_u=0;break;case 1:case!0:case"stroke":_u=1;break;case 2:case"fillThenStroke":_u=2;break;case 3:case"invisible":_u=3;break;case 4:case"fillAndAddForClipping":_u=4;break;case 5:case"strokeAndAddPathForClipping":_u=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":_u=6;break;case 7:case"addToPathForClipping":_u=7}var Yd=Rl.usedRenderingMode!==void 0?Rl.usedRenderingMode:-1;_u!==-1?Il+=_u+` Tr
`:Yd!==-1&&(Il+=`0 Tr
`),_u!==-1&&(Rl.usedRenderingMode=_u),Ws=Ri.align||"left";var Eu,sc=yr*Eh,$d=yu.internal.pageSize.getWidth(),it=Io[hs];_a=Ri.charSpace||uA,ba=Ri.maxWidth||0,Cl=Object.assign({autoencode:!0,noBOM:!0},Ri.flags);var st=[],vt=function(Ja){return yu.getStringUnitWidth(Ja,{font:it,charSpace:_a,fontSize:yr,doKerning:!1})*yr/oc};if(Object.prototype.toString.call(Ae)==="[object Array]"){var gt;vo=cA(Ae),Ws!=="left"&&(Eu=vo.map(vt));var Bt,te=0;if(Ws==="right"){yn-=Eu[0],Ae=[],Sa=vo.length;for(var xe=0;xe<Sa;xe++)xe===0?(Bt=Uh(yn),gt=Vu(mi)):(Bt=$n(te-Eu[xe]),gt=-sc),Ae.push([vo[xe],Bt,gt]),te=Eu[xe]}else if(Ws==="center"){yn-=Eu[0]/2,Ae=[],Sa=vo.length;for(var je=0;je<Sa;je++)je===0?(Bt=Uh(yn),gt=Vu(mi)):(Bt=$n((te-Eu[je])/2),gt=-sc),Ae.push([vo[je],Bt,gt]),te=Eu[je]}else if(Ws==="left"){Ae=[],Sa=vo.length;for(var De=0;De<Sa;De++)Ae.push(vo[De])}else if(Ws==="justify"&&it.encoding==="Identity-H"){Ae=[],Sa=vo.length,ba=ba!==0?ba:$d;for(var an=0,Zn=0;Zn<Sa;Zn++)if(gt=Zn===0?Vu(mi):-sc,Bt=Zn===0?Uh(yn):an,Zn<Sa-1){var xn=$n((ba-Eu[Zn])/(vo[Zn].split(" ").length-1)),Mi=vo[Zn].split(" ");Ae.push([Mi[0]+" ",Bt,gt]),an=0;for(var bi=1;bi<Mi.length;bi++){var Mr=(vt(Mi[bi-1]+" "+Mi[bi])-vt(Mi[bi]))*oc+xn;bi==Mi.length-1?Ae.push([Mi[bi],Mr,0]):Ae.push([Mi[bi]+" ",Mr,0]),an-=Mr}}else Ae.push([vo[Zn],Bt,gt]);Ae.push(["",an,0])}else{if(Ws!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Ae=[],Sa=vo.length,ba=ba!==0?ba:$d,Zn=0;Zn<Sa;Zn++)gt=Zn===0?Vu(mi):-sc,Bt=Zn===0?Uh(yn):0,Zn<Sa-1?st.push(mr($n((ba-Eu[Zn])/(vo[Zn].split(" ").length-1)))):st.push(0),Ae.push([vo[Zn],Bt,gt])}}var jr=typeof Ri.R2L=="boolean"?Ri.R2L:Or;jr===!0&&(Ae=dA(Ae,function(Ja,Ua,Za){return[Ja.split("").reverse().join(""),Ua,Za]})),Qr={text:Ae,x:yn,y:mi,options:Ri,mutex:{pdfEscape:jn,activeFontKey:hs,fonts:Io,activeFontSize:yr}},bo.publish("postProcessText",Qr),Ae=Qr.text,wh=Qr.mutex.isHex||!1;var qr=Io[hs].encoding;qr!=="WinAnsiEncoding"&&qr!=="StandardEncoding"||(Ae=dA(Ae,function(Ja,Ua,Za){return[Vd(Ja),Ua,Za]})),vo=cA(Ae),Ae=[];for(var Co,$o,Oo,ss=0,Ds=1,Do=Array.isArray(vo[0])?Ds:ss,Js="",_l=function(Ja,Ua,Za){var El="";return Za instanceof As?(Za=typeof Ri.angle=="number"?eu(Za,new As(1,0,0,1,Ja,Ua)):eu(new As(1,0,0,1,Ja,Ua),Za),Hi===Ai.ADVANCED&&(Za=eu(new As(1,0,0,-1,0,0),Za)),El=Za.join(" ")+` Tm
`):El=mr(Ja)+" "+mr(Ua)+` Td
`,El},$l=0;$l<vo.length;$l++){switch(Js="",Do){case Ds:Oo=(wh?"<":"(")+vo[$l][0]+(wh?">":")"),Co=parseFloat(vo[$l][1]),$o=parseFloat(vo[$l][2]);break;case ss:Oo=(wh?"<":"(")+vo[$l]+(wh?">":")"),Co=Uh(yn),$o=Vu(mi)}st!==void 0&&st[$l]!==void 0&&(Js=st[$l]+` Tw
`),$l===0?Ae.push(Js+_l(Co,$o,Au)+Oo):Do===ss?Ae.push(Js+Oo):Do===Ds&&Ae.push(Js+_l(Co,$o,Au)+Oo)}Ae=Do===ss?Ae.join(` Tj
T* `):Ae.join(` Tj
`),Ae+=` Tj
`;var fl=`BT
/`;return fl+=hs+" "+yr+` Tf
`,fl+=mr(yr*Eh)+` TL
`,fl+=gc+`
`,fl+=Il,fl+=Ae,_n(fl+="ET"),Nn[hs]=!0,yu};var Pd=He.__private__.clip=He.clip=function(Ae){return _n(Ae==="evenodd"?"W*":"W"),this};He.clipEvenOdd=function(){return Pd("evenodd")},He.__private__.discardPath=He.discardPath=function(){return _n("n"),this};var mh=He.__private__.isValidStyle=function(Ae){var yn=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ae)!==-1&&(yn=!0),yn};He.__private__.setDefaultPathOperation=He.setDefaultPathOperation=function(Ae){return mh(Ae)&&(Xe=Ae),this};var qu=He.__private__.getStyle=He.getStyle=function(Ae){var yn=Xe;switch(Ae){case"D":case"S":yn="S";break;case"F":yn="f";break;case"FD":case"DF":yn="B";break;case"f":case"f*":case"B":case"B*":yn=Ae}return yn},Hd=He.close=function(){return _n("h"),this};He.stroke=function(){return _n("S"),this},He.fill=function(Ae){return ud("f",Ae),this},He.fillEvenOdd=function(Ae){return ud("f*",Ae),this},He.fillStroke=function(Ae){return ud("B",Ae),this},He.fillStrokeEvenOdd=function(Ae){return ud("B*",Ae),this};var ud=function(Ae,yn){(0,Ft.Z)(yn)==="object"?Ed(yn,Ae):_n(Ae)},th=function(Ae){Ae===null||Hi===Ai.ADVANCED&&Ae===void 0||(Ae=qu(Ae),_n(Ae))};function bd(Ae,yn,mi,Ri,ur){var Qr=new ca(yn||this.boundingBox,mi||this.xStep,Ri||this.yStep,this.gState,ur||this.matrix);Qr.stream=this.stream;var vo=Ae+"$$"+this.cloneIndex+++"$$";return yl(vo,Qr),Qr}var Ed=function(Ae,yn){var mi=jl[Ae.key],Ri=js[mi];if(Ri instanceof la)_n("q"),_n(Qd(yn)),Ri.gState&&He.setGState(Ri.gState),_n(Ae.matrix.toString()+" cm"),_n("/"+mi+" sh"),_n("Q");else if(Ri instanceof ca){var ur=new As(1,0,0,-1,0,Tc());Ae.matrix&&(ur=ur.multiply(Ae.matrix||fa),mi=bd.call(Ri,Ae.key,Ae.boundingBox,Ae.xStep,Ae.yStep,ur).id),_n("q"),_n("/Pattern cs"),_n("/"+mi+" scn"),Ri.gState&&He.setGState(Ri.gState),_n(yn),_n("Q")}},Qd=function(Ae){switch(Ae){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"}},nu=He.moveTo=function(Ae,yn){return _n(mr($n(Ae))+" "+mr(ge(yn))+" m"),this},cu=He.lineTo=function(Ae,yn){return _n(mr($n(Ae))+" "+mr(ge(yn))+" l"),this},Mc=He.curveTo=function(Ae,yn,mi,Ri,ur,Qr){return _n([mr($n(Ae)),mr(ge(yn)),mr($n(mi)),mr(ge(Ri)),mr($n(ur)),mr(ge(Qr)),"c"].join(" ")),this};He.__private__.line=He.line=function(Ae,yn,mi,Ri,ur){if(isNaN(Ae)||isNaN(yn)||isNaN(mi)||isNaN(Ri)||!mh(ur))throw new Error("Invalid arguments passed to jsPDF.line");return Hi===Ai.COMPAT?this.lines([[mi-Ae,Ri-yn]],Ae,yn,[1,1],ur||"S"):this.lines([[mi-Ae,Ri-yn]],Ae,yn,[1,1]).stroke()},He.__private__.lines=He.lines=function(Ae,yn,mi,Ri,ur,Qr){var vo,ps,Ws,_a,ba,Cl,Us,Au,yu,Al,Il,wh;if(typeof Ae=="number"&&(wh=mi,mi=yn,yn=Ae,Ae=wh),Ri=Ri||[1,1],Qr=Qr||!1,isNaN(yn)||isNaN(mi)||!Array.isArray(Ae)||!Array.isArray(Ri)||!mh(ur)||typeof Qr!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(nu(yn,mi),vo=Ri[0],ps=Ri[1],_a=Ae.length,Al=yn,Il=mi,Ws=0;Ws<_a;Ws++)(ba=Ae[Ws]).length===2?(Al=ba[0]*vo+Al,Il=ba[1]*ps+Il,cu(Al,Il)):(Cl=ba[0]*vo+Al,Us=ba[1]*ps+Il,Au=ba[2]*vo+Al,yu=ba[3]*ps+Il,Al=ba[4]*vo+Al,Il=ba[5]*ps+Il,Mc(Cl,Us,Au,yu,Al,Il));return Qr&&Hd(),th(ur),this},He.path=function(Ae){for(var yn=0;yn<Ae.length;yn++){var mi=Ae[yn],Ri=mi.c;switch(mi.op){case"m":nu(Ri[0],Ri[1]);break;case"l":cu(Ri[0],Ri[1]);break;case"c":Mc.apply(this,Ri);break;case"h":Hd()}}return this},He.__private__.rect=He.rect=function(Ae,yn,mi,Ri,ur){if(isNaN(Ae)||isNaN(yn)||isNaN(mi)||isNaN(Ri)||!mh(ur))throw new Error("Invalid arguments passed to jsPDF.rect");return Hi===Ai.COMPAT&&(Ri=-Ri),_n([mr($n(Ae)),mr(ge(yn)),mr($n(mi)),mr($n(Ri)),"re"].join(" ")),th(ur),this},He.__private__.triangle=He.triangle=function(Ae,yn,mi,Ri,ur,Qr,vo){if(isNaN(Ae)||isNaN(yn)||isNaN(mi)||isNaN(Ri)||isNaN(ur)||isNaN(Qr)||!mh(vo))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[mi-Ae,Ri-yn],[ur-mi,Qr-Ri],[Ae-ur,yn-Qr]],Ae,yn,[1,1],vo,!0),this},He.__private__.roundedRect=He.roundedRect=function(Ae,yn,mi,Ri,ur,Qr,vo){if(isNaN(Ae)||isNaN(yn)||isNaN(mi)||isNaN(Ri)||isNaN(ur)||isNaN(Qr)||!mh(vo))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ps=4/3*(Math.SQRT2-1);return ur=Math.min(ur,.5*mi),Qr=Math.min(Qr,.5*Ri),this.lines([[mi-2*ur,0],[ur*ps,0,ur,Qr-Qr*ps,ur,Qr],[0,Ri-2*Qr],[0,Qr*ps,-ur*ps,Qr,-ur,Qr],[2*ur-mi,0],[-ur*ps,0,-ur,-Qr*ps,-ur,-Qr],[0,2*Qr-Ri],[0,-Qr*ps,ur*ps,-Qr,ur,-Qr]],Ae+ur,yn,[1,1],vo,!0),this},He.__private__.ellipse=He.ellipse=function(Ae,yn,mi,Ri,ur){if(isNaN(Ae)||isNaN(yn)||isNaN(mi)||isNaN(Ri)||!mh(ur))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Qr=4/3*(Math.SQRT2-1)*mi,vo=4/3*(Math.SQRT2-1)*Ri;return nu(Ae+mi,yn),Mc(Ae+mi,yn-vo,Ae+Qr,yn-Ri,Ae,yn-Ri),Mc(Ae-Qr,yn-Ri,Ae-mi,yn-vo,Ae-mi,yn),Mc(Ae-mi,yn+vo,Ae-Qr,yn+Ri,Ae,yn+Ri),Mc(Ae+Qr,yn+Ri,Ae+mi,yn+vo,Ae+mi,yn),th(ur),this},He.__private__.circle=He.circle=function(Ae,yn,mi,Ri){if(isNaN(Ae)||isNaN(yn)||isNaN(mi)||!mh(Ri))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ae,yn,mi,mi,Ri)},He.setFont=function(Ae,yn,mi){return mi&&(yn=io(yn,mi)),hs=ad(Ae,yn,{disableWarning:!1}),this};var du=He.__private__.getFont=He.getFont=function(){return Io[ad.apply(He,arguments)]};He.__private__.getFontList=He.getFontList=function(){var Ae,yn,mi={};for(Ae in Fs)if(Fs.hasOwnProperty(Ae))for(yn in mi[Ae]=[],Fs[Ae])Fs[Ae].hasOwnProperty(yn)&&mi[Ae].push(yn);return mi},He.addFont=function(Ae,yn,mi,Ri,ur){var Qr=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Qr.indexOf(arguments[3])!==-1?ur=arguments[3]:arguments[3]&&Qr.indexOf(arguments[3])==-1&&(mi=io(mi,Ri)),ur=ur||"Identity-H",hu.call(this,Ae,yn,mi,ur)};var xa,hl=Et.lineWidth||.200025,Bu=He.__private__.getLineWidth=He.getLineWidth=function(){return hl},vh=He.__private__.setLineWidth=He.setLineWidth=function(Ae){return hl=Ae,_n(mr($n(Ae))+" w"),this};He.__private__.setLineDash=Qo.API.setLineDash=Qo.API.setLineDashPattern=function(Ae,yn){if(Ae=Ae||[],yn=yn||0,isNaN(yn)||!Array.isArray(Ae))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ae=Ae.map(function(mi){return mr($n(mi))}).join(" "),yn=mr($n(yn)),_n("["+Ae+"] "+yn+" d"),this};var yh=He.__private__.getLineHeight=He.getLineHeight=function(){return yr*xa};He.__private__.getLineHeight=He.getLineHeight=function(){return yr*xa};var zd=He.__private__.setLineHeightFactor=He.setLineHeightFactor=function(Ae){return typeof(Ae=Ae||1.15)=="number"&&(xa=Ae),this},Nc=He.__private__.getLineHeightFactor=He.getLineHeightFactor=function(){return xa};zd(Et.lineHeight);var Uh=He.__private__.getHorizontalCoordinate=function(Ae){return $n(Ae)},Vu=He.__private__.getVerticalCoordinate=function(Ae){return Hi===Ai.ADVANCED?Ae:Jo[ln].mediaBox.topRightY-Jo[ln].mediaBox.bottomLeftY-$n(Ae)},Ic=He.__private__.getHorizontalCoordinateString=He.getHorizontalCoordinateString=function(Ae){return mr(Uh(Ae))},Jc=He.__private__.getVerticalCoordinateString=He.getVerticalCoordinateString=function(Ae){return mr(Vu(Ae))},ic=Et.strokeColor||"0 G";He.__private__.getStrokeColor=He.getDrawColor=function(){return Xa(ic)},He.__private__.setStrokeColor=He.setDrawColor=function(Ae,yn,mi,Ri){return ic=ul({ch1:Ae,ch2:yn,ch3:mi,ch4:Ri,pdfColorType:"draw",precision:2}),_n(ic),this};var Kd=Et.fillColor||"0 g";He.__private__.getFillColor=He.getFillColor=function(){return Xa(Kd)},He.__private__.setFillColor=He.setFillColor=function(Ae,yn,mi,Ri){return Kd=ul({ch1:Ae,ch2:yn,ch3:mi,ch4:Ri,pdfColorType:"fill",precision:2}),_n(Kd),this};var gc=Et.textColor||"0 g",FA=He.__private__.getTextColor=He.getTextColor=function(){return Xa(gc)};He.__private__.setTextColor=He.setTextColor=function(Ae,yn,mi,Ri){return gc=ul({ch1:Ae,ch2:yn,ch3:mi,ch4:Ri,pdfColorType:"text",precision:3}),this};var uA=Et.charSpace,lf=He.__private__.getCharSpace=He.getCharSpace=function(){return parseFloat(uA||0)};He.__private__.setCharSpace=He.setCharSpace=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uA=Ae,this};var rc=0;He.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},He.__private__.setLineCap=He.setLineCap=function(Ae){var yn=He.CapJoinStyles[Ae];if(yn===void 0)throw new Error("Line cap style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return rc=yn,_n(yn+" J"),this};var QA=0;He.__private__.setLineJoin=He.setLineJoin=function(Ae){var yn=He.CapJoinStyles[Ae];if(yn===void 0)throw new Error("Line join style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return QA=yn,_n(yn+" j"),this},He.__private__.setLineMiterLimit=He.__private__.setMiterLimit=He.setLineMiterLimit=He.setMiterLimit=function(Ae){if(Ae=Ae||0,isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return _n(mr($n(Ae))+" M"),this},He.GState=Eo,He.setGState=function(Ae){(Ae=typeof Ae=="string"?Po[as[Ae]]:Gd(null,Ae)).equals(ds)||(_n("/"+Ae.id+" gs"),ds=Ae)};var Gd=function(Ae,yn){if(!Ae||!as[Ae]){var mi=!1;for(var Ri in Po)if(Po.hasOwnProperty(Ri)&&Po[Ri].equals(yn)){mi=!0;break}if(mi)yn=Po[Ri];else{var ur="GS"+(Object.keys(Po).length+1).toString(10);Po[ur]=yn,yn.id=ur}return Ae&&(as[Ae]=yn.id),bo.publish("addGState",yn),yn}};He.addGState=function(Ae,yn){return Gd(Ae,yn),this},He.saveGraphicsState=function(){return _n("q"),$a.push({key:hs,size:yr,color:gc}),this},He.restoreGraphicsState=function(){_n("Q");var Ae=$a.pop();return hs=Ae.key,yr=Ae.size,gc=Ae.color,ds=null,this},He.setCurrentTransformationMatrix=function(Ae){return _n(Ae.toString()+" cm"),this},He.comment=function(Ae){return _n("#"+Ae),this};var pc=function(Ae,yn){var mi=Ae||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return mi},set:function(Qr){isNaN(Qr)||(mi=parseFloat(Qr))}});var Ri=yn||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ri},set:function(Qr){isNaN(Qr)||(Ri=parseFloat(Qr))}});var ur="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ur},set:function(Qr){ur=Qr.toString()}}),this},hd=function(Ae,yn,mi,Ri){pc.call(this,Ae,yn),this.type="rect";var ur=mi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ur},set:function(vo){isNaN(vo)||(ur=parseFloat(vo))}});var Qr=Ri||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Qr},set:function(vo){isNaN(vo)||(Qr=parseFloat(vo))}}),this},hA=function(){this.page=ko,this.currentPage=ln,this.pages=$i.slice(0),this.pagesContext=Jo.slice(0),this.x=Pa,this.y=Os,this.matrix=Ps,this.width=Wd(ln),this.height=Tc(ln),this.outputDestination=Ar,this.id="",this.objectNumber=-1};hA.prototype.restore=function(){ko=this.page,ln=this.currentPage,Jo=this.pagesContext,$i=this.pages,Pa=this.x,Os=this.y,Ps=this.matrix,LA(ln,this.width),KA(ln,this.height),Ar=this.outputDestination};var Rh=function(Ae,yn,mi,Ri,ur){Yl.push(new hA),ko=ln=0,$i=[],Pa=Ae,Os=yn,Ps=ur,nc([mi,Ri])},zA=function(Ae){if(ea[Ae])Yl.pop().restore();else{var yn=new hA,mi="Xo"+(Object.keys(_s).length+1).toString(10);yn.id=mi,ea[Ae]=mi,_s[mi]=yn,bo.publish("addFormObject",yn),Yl.pop().restore()}};for(var Fd in He.beginFormObject=function(Ae,yn,mi,Ri,ur){return Rh(Ae,yn,mi,Ri,ur),this},He.endFormObject=function(Ae){return zA(Ae),this},He.doFormObject=function(Ae,yn){var mi=_s[ea[Ae]];return _n("q"),_n(yn.toString()+" cm"),_n("/"+mi.id+" Do"),_n("Q"),this},He.getFormObject=function(Ae){var yn=_s[ea[Ae]];return{x:yn.x,y:yn.y,width:yn.width,height:yn.height,matrix:yn.matrix}},He.save=function(Ae,yn){return Ae=Ae||"generated.pdf",(yn=yn||{}).returnPromise=yn.returnPromise||!1,yn.returnPromise===!1?(Gs(_d(Lc()),Ae),typeof Gs.unload=="function"&&_r.setTimeout&&setTimeout(Gs.unload,911),this):new Promise(function(mi,Ri){try{var ur=Gs(_d(Lc()),Ae);typeof Gs.unload=="function"&&_r.setTimeout&&setTimeout(Gs.unload,911),mi(ur)}catch(Qr){Ri(Qr.message)}})},Qo.API)Qo.API.hasOwnProperty(Fd)&&(Fd==="events"&&Qo.API.events.length?function(Ae,yn){var mi,Ri,ur;for(ur=yn.length-1;ur!==-1;ur--)mi=yn[ur][0],Ri=yn[ur][1],Ae.subscribe.apply(Ae,[mi].concat(typeof Ri=="function"?[Ri]:Ri))}(bo,Qo.API.events):He[Fd]=Qo.API[Fd]);var Wd=He.getPageWidth=function(Ae){return(Jo[Ae=Ae||ln].mediaBox.topRightX-Jo[Ae].mediaBox.bottomLeftX)/ho},LA=He.setPageWidth=function(Ae,yn){Jo[Ae].mediaBox.topRightX=yn*ho+Jo[Ae].mediaBox.bottomLeftX},Tc=He.getPageHeight=function(Ae){return(Jo[Ae=Ae||ln].mediaBox.topRightY-Jo[Ae].mediaBox.bottomLeftY)/ho},KA=He.setPageHeight=function(Ae,yn){Jo[Ae].mediaBox.topRightY=yn*ho+Jo[Ae].mediaBox.bottomLeftY};return He.internal={pdfEscape:jn,getStyle:qu,getFont:du,getFontSize:nr,getCharSpace:lf,getTextColor:FA,getLineHeight:yh,getLineHeightFactor:Nc,getLineWidth:Bu,write:oo,getHorizontalCoordinate:Uh,getVerticalCoordinate:Vu,getCoordinateString:Ic,getVerticalCoordinateString:Jc,collections:{},newObject:po,newAdditionalObject:wa,newObjectDeferred:Ra,newObjectDeferredBegin:Nu,getFilters:Qs,putStream:Ia,events:bo,scaleFactor:ho,pageSize:{getWidth:function(){return Wd(ln)},setWidth:function(Ae){LA(ln,Ae)},getHeight:function(){return Tc(ln)},setHeight:function(Ae){KA(ln,Ae)}},encryptionOptions:pn,encryption:Ul,getEncryptor:Bd,output:Cd,getNumberOfPages:Fc,pages:$i,out:_n,f2:Wr,f3:Qn,getPageInfo:lA,getPageInfoByObjId:Ys,getCurrentPageInfo:Xc,getPDFVersion:Yn,Point:pc,Rectangle:hd,Matrix:As,hasHotfix:ah},Object.defineProperty(He.internal.pageSize,"width",{get:function(){return Wd(ln)},set:function(Ae){LA(ln,Ae)},enumerable:!0,configurable:!0}),Object.defineProperty(He.internal.pageSize,"height",{get:function(){return Tc(ln)},set:function(Ae){KA(ln,Ae)},enumerable:!0,configurable:!0}),Ru.call(He,ir),hs="F1",jh(se,Lt),bo.publish("initialized"),He}ao.prototype.lsbFirstWord=function(Et){return String.fromCharCode(Et>>0&255,Et>>8&255,Et>>16&255,Et>>24&255)},ao.prototype.toHexString=function(Et){return Et.split("").map(function(xt){return("0"+(255&xt.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ao.prototype.hexToBytes=function(Et){for(var xt=[],Lt=0;Lt<Et.length;Lt+=2)xt.push(String.fromCharCode(parseInt(Et.substr(Lt,2),16)));return xt.join("")},ao.prototype.processOwnerPassword=function(Et,xt){return os($r(xt).substr(0,5),Et)},ao.prototype.encryptor=function(Et,xt){var Lt=$r(this.encryptionKey+String.fromCharCode(255&Et,Et>>8&255,Et>>16&255,255&xt,xt>>8&255)).substr(0,10);return function(Rt){return os(Lt,Rt)}},Eo.prototype.equals=function(Et){var xt,Lt="id,objectNumber,equals";if(!Et||(0,Ft.Z)(Et)!==(0,Ft.Z)(this))return!1;var Rt=0;for(xt in this)if(!(Lt.indexOf(xt)>=0)){if(this.hasOwnProperty(xt)&&!Et.hasOwnProperty(xt)||this[xt]!==Et[xt])return!1;Rt++}for(xt in Et)Et.hasOwnProperty(xt)&&Lt.indexOf(xt)<0&&Rt--;return Rt===0},Qo.API={events:[]},Qo.version="3.0.1";var Vs=Qo.API,Ka=1,Wl=function(Et){return Et.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},La=function(Et){return Et.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},vs=function(Et){return Et.toFixed(2)},ai=function(Et){return Et.toFixed(5)};Vs.__acroform__={};var ka=function(Et,xt){Et.prototype=Object.create(xt.prototype),Et.prototype.constructor=Et},bc=function(Et){return Et*Ka},Vl=function(Et){var xt=new Ma,Lt=No.internal.getHeight(Et)||0,Rt=No.internal.getWidth(Et)||0;return xt.BBox=[0,0,Number(vs(Rt)),Number(vs(Lt))],xt},kh=Vs.__acroform__.setBit=function(Et,xt){if(Et=Et||0,xt=xt||0,isNaN(Et)||isNaN(xt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Et|=1<<xt},sl=Vs.__acroform__.clearBit=function(Et,xt){if(Et=Et||0,xt=xt||0,isNaN(Et)||isNaN(xt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Et&=~(1<<xt)},Wc=Vs.__acroform__.getBit=function(Et,xt){if(isNaN(Et)||isNaN(xt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return Et&1<<xt?1:0},Fl=Vs.__acroform__.getBitForPdf=function(Et,xt){if(isNaN(Et)||isNaN(xt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Wc(Et,xt-1)},Is=Vs.__acroform__.setBitForPdf=function(Et,xt){if(isNaN(Et)||isNaN(xt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return kh(Et,xt-1)},ia=Vs.__acroform__.clearBitForPdf=function(Et,xt){if(isNaN(Et)||isNaN(xt))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return sl(Et,xt-1)},Ph=Vs.__acroform__.calculateCoordinates=function(Et,xt){var Lt=xt.internal.getHorizontalCoordinate,Rt=xt.internal.getVerticalCoordinate,se=Et[0],Zt=Et[1],pe=Et[2],ye=Et[3],Fe={};return Fe.lowerLeft_X=Lt(se)||0,Fe.lowerLeft_Y=Rt(Zt+ye)||0,Fe.upperRight_X=Lt(se+pe)||0,Fe.upperRight_Y=Rt(Zt)||0,[Number(vs(Fe.lowerLeft_X)),Number(vs(Fe.lowerLeft_Y)),Number(vs(Fe.upperRight_X)),Number(vs(Fe.upperRight_Y))]},is=function(Et){if(Et.appearanceStreamContent)return Et.appearanceStreamContent;if(Et.V||Et.DV){var xt=[],Lt=Et._V||Et.DV,Rt=Zs(Et,Lt),se=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id;xt.push("/Tx BMC"),xt.push("q"),xt.push("BT"),xt.push(Et.scope.__private__.encodeColorString(Et.color)),xt.push("/"+se+" "+vs(Rt.fontSize)+" Tf"),xt.push("1 0 0 1 0 0 Tm"),xt.push(Rt.text),xt.push("ET"),xt.push("Q"),xt.push("EMC");var Zt=Vl(Et);return Zt.scope=Et.scope,Zt.stream=xt.join(`
`),Zt}},Zs=function(Et,xt){var Lt=Et.fontSize===0?Et.maxFontSize:Et.fontSize,Rt={text:"",fontSize:""},se=(xt=(xt=xt.substr(0,1)=="("?xt.substr(1):xt).substr(xt.length-1)==")"?xt.substr(0,xt.length-1):xt).split(" ");se=Et.multiline?se.map(function(Qn){return Qn.split(`
`)}):se.map(function(Qn){return[Qn]});var Zt=Lt,pe=No.internal.getHeight(Et)||0;pe=pe<0?-pe:pe;var ye=No.internal.getWidth(Et)||0;ye=ye<0?-ye:ye;var Fe=function(Qn,$n,Zi){if(Qn+1<se.length){var ge=$n+" "+se[Qn+1][0];return ys(ge,Et,Zi).width<=ye-4}return!1};Zt++;t:for(;Zt>0;){xt="",Zt--;var Xe,pn,gn=ys("3",Et,Zt).height,Nn=Et.multiline?pe-Zt:(pe-gn)/2,He=Nn+=2,ci=0,Yn=0,gi=0;if(Zt<=0){xt=`(...) Tj
`,xt+="% Width of Text: "+ys(xt,Et,Zt=12).width+", FieldWidth:"+ye+`
`;break}for(var Un="",Ai=0,Hi=0;Hi<se.length;Hi++)if(se.hasOwnProperty(Hi)){var lr=!1;if(se[Hi].length!==1&&gi!==se[Hi].length-1){if((gn+2)*(Ai+2)+2>pe)continue t;Un+=se[Hi][gi],lr=!0,Yn=Hi,Hi--}else{Un=(Un+=se[Hi][gi]+" ").substr(Un.length-1)==" "?Un.substr(0,Un.length-1):Un;var Ir=parseInt(Hi),io=Fe(Ir,Un,Zt),mr=Hi>=se.length-1;if(io&&!mr){Un+=" ",gi=0;continue}if(io||mr){if(mr)Yn=Ir;else if(Et.multiline&&(gn+2)*(Ai+2)+2>pe)continue t}else{if(!Et.multiline||(gn+2)*(Ai+2)+2>pe)continue t;Yn=Ir}}for(var Ti="",Br=ci;Br<=Yn;Br++){var Wr=se[Br];if(Et.multiline){if(Br===Yn){Ti+=Wr[gi]+" ",gi=(gi+1)%Wr.length;continue}if(Br===ci){Ti+=Wr[Wr.length-1]+" ";continue}}Ti+=Wr[0]+" "}switch(Ti=Ti.substr(Ti.length-1)==" "?Ti.substr(0,Ti.length-1):Ti,pn=ys(Ti,Et,Zt).width,Et.textAlign){case"right":Xe=ye-pn-2;break;case"center":Xe=(ye-pn)/2;break;case"left":default:Xe=2}xt+=vs(Xe)+" "+vs(He)+` Td
`,xt+="("+Wl(Ti)+`) Tj
`,xt+=-vs(Xe)+` 0 Td
`,He=-(Zt+2),pn=0,ci=lr?Yn:Yn+1,Ai++,Un=""}break}return Rt.text=xt,Rt.fontSize=Zt,Rt},ys=function(Et,xt,Lt){var Rt=xt.scope.internal.getFont(xt.fontName,xt.fontStyle),se=xt.scope.getStringUnitWidth(Et,{font:Rt,fontSize:parseFloat(Lt),charSpace:0})*parseFloat(Lt);return{height:xt.scope.getStringUnitWidth("3",{font:Rt,fontSize:parseFloat(Lt),charSpace:0})*parseFloat(Lt)*1.5,width:se}},Hr={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},kl=function(Et,xt){var Lt={type:"reference",object:Et};xt.internal.getPageInfo(Et.page).pageContext.annotations.find(function(Rt){return Rt.type===Lt.type&&Rt.object===Lt.object})===void 0&&xt.internal.getPageInfo(Et.page).pageContext.annotations.push(Lt)},Ol=function(Et,xt){for(var Lt in Et)if(Et.hasOwnProperty(Lt)){var Rt=Lt,se=Et[Lt];xt.internal.newObjectDeferredBegin(se.objId,!0),(0,Ft.Z)(se)==="object"&&typeof se.putStream=="function"&&se.putStream(),delete Et[Rt]}},Ao=function(Et,xt){if(xt.scope=Et,Et.internal!==void 0&&(Et.internal.acroformPlugin===void 0||Et.internal.acroformPlugin.isInitialized===!1)){if(Bl.FieldNum=0,Et.internal.acroformPlugin=JSON.parse(JSON.stringify(Hr)),Et.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ka=Et.internal.scaleFactor,Et.internal.acroformPlugin.acroFormDictionaryRoot=new Oa,Et.internal.acroformPlugin.acroFormDictionaryRoot.scope=Et,Et.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Et.internal.events.subscribe("postPutResources",function(){(function(Lt){Lt.internal.events.unsubscribe(Lt.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Lt.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Lt.internal.acroformPlugin.printedOut=!0})(Et)}),Et.internal.events.subscribe("buildDocument",function(){(function(Lt){Lt.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Rt=Lt.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var se in Rt)if(Rt.hasOwnProperty(se)){var Zt=Rt[se];Zt.objId=void 0,Zt.hasAnnotation&&kl(Zt,Lt)}})(Et)}),Et.internal.events.subscribe("putCatalog",function(){(function(Lt){if(Lt.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Lt.internal.write("/AcroForm "+Lt.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(Et)}),Et.internal.events.subscribe("postPutPages",function(Lt){(function(Rt,se){var Zt=!Rt;for(var pe in Rt||(se.internal.newObjectDeferredBegin(se.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),se.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Rt=Rt||se.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Rt.hasOwnProperty(pe)){var ye=Rt[pe],Fe=[],Xe=ye.Rect;if(ye.Rect&&(ye.Rect=Ph(ye.Rect,se)),se.internal.newObjectDeferredBegin(ye.objId,!0),ye.DA=No.createDefaultAppearanceStream(ye),(0,Ft.Z)(ye)==="object"&&typeof ye.getKeyValueListForStream=="function"&&(Fe=ye.getKeyValueListForStream()),ye.Rect=Xe,ye.hasAppearanceStream&&!ye.appearanceStreamContent){var pn=is(ye);Fe.push({key:"AP",value:"<</N "+pn+">>"}),se.internal.acroformPlugin.xForms.push(pn)}if(ye.appearanceStreamContent){var gn="";for(var Nn in ye.appearanceStreamContent)if(ye.appearanceStreamContent.hasOwnProperty(Nn)){var He=ye.appearanceStreamContent[Nn];if(gn+="/"+Nn+" ",gn+="<<",Object.keys(He).length>=1||Array.isArray(He)){for(var pe in He)if(He.hasOwnProperty(pe)){var ci=He[pe];typeof ci=="function"&&(ci=ci.call(se,ye)),gn+="/"+pe+" "+ci+" ",se.internal.acroformPlugin.xForms.indexOf(ci)>=0||se.internal.acroformPlugin.xForms.push(ci)}}else typeof(ci=He)=="function"&&(ci=ci.call(se,ye)),gn+="/"+pe+" "+ci,se.internal.acroformPlugin.xForms.indexOf(ci)>=0||se.internal.acroformPlugin.xForms.push(ci);gn+=">>"}Fe.push({key:"AP",value:`<<
`+gn+">>"})}se.internal.putStream({additionalKeyValues:Fe,objectId:ye.objId}),se.internal.out("endobj")}Zt&&Ol(se.internal.acroformPlugin.xForms,se)})(Lt,Et)}),Et.internal.acroformPlugin.isInitialized=!0}},Ns=Vs.__acroform__.arrayToPdfArray=function(Et,xt,Lt){var Rt=function(pe){return pe};if(Array.isArray(Et)){for(var se="[",Zt=0;Zt<Et.length;Zt++)switch(Zt!==0&&(se+=" "),(0,Ft.Z)(Et[Zt])){case"boolean":case"number":case"object":se+=Et[Zt].toString();break;case"string":Et[Zt].substr(0,1)!=="/"?(xt!==void 0&&Lt&&(Rt=Lt.internal.getEncryptor(xt)),se+="("+Wl(Rt(Et[Zt].toString()))+")"):se+=Et[Zt].toString()}return se+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},da=function(Et,xt,Lt){var Rt=function(se){return se};return xt!==void 0&&Lt&&(Rt=Lt.internal.getEncryptor(xt)),(Et=Et||"").toString(),Et="("+Wl(Rt(Et))+")"},wr=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(Et){this._objId=Et}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};wr.prototype.toString=function(){return this.objId+" 0 R"},wr.prototype.putStream=function(){var Et=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Et,objectId:this.objId}),this.scope.internal.out("endobj")},wr.prototype.getKeyValueListForStream=function(){var Et=[],xt=Object.getOwnPropertyNames(this).filter(function(Zt){return Zt!="content"&&Zt!="appearanceStreamContent"&&Zt!="scope"&&Zt!="objId"&&Zt.substring(0,1)!="_"});for(var Lt in xt)if(Object.getOwnPropertyDescriptor(this,xt[Lt]).configurable===!1){var Rt=xt[Lt],se=this[Rt];se&&(Array.isArray(se)?Et.push({key:Rt,value:Ns(se,this.objId,this.scope)}):se instanceof wr?(se.scope=this.scope,Et.push({key:Rt,value:se.objId+" 0 R"})):typeof se!="function"&&Et.push({key:Rt,value:se}))}return Et};var Ma=function(){wr.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 Et,xt=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return xt},set:function(Lt){xt=Lt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Lt){Et=Lt.trim()},get:function(){return Et||null}})};ka(Ma,wr);var Oa=function(){wr.call(this);var Et,xt=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return xt.length>0?xt:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return xt}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Et){var Lt=function(Rt){return Rt};return this.scope&&(Lt=this.scope.internal.getEncryptor(this.objId)),"("+Wl(Lt(Et))+")"}},set:function(Lt){Et=Lt}})};ka(Oa,wr);var Bl=function Et(){wr.call(this);var xt=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return xt},set:function(Un){if(isNaN(Un))throw new Error('Invalid value "'+Un+'" for attribute F supplied.');xt=Un}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Fl(xt,3)},set:function(Un){Un?this.F=Is(xt,3):this.F=ia(xt,3)}});var Lt=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Lt},set:function(Un){if(isNaN(Un))throw new Error('Invalid value "'+Un+'" for attribute Ff supplied.');Lt=Un}});var Rt=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Rt.length!==0)return Rt},set:function(Un){Rt=Un!==void 0?Un:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Rt||isNaN(Rt[0])?0:Rt[0]},set:function(Un){Rt[0]=Un}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Rt||isNaN(Rt[1])?0:Rt[1]},set:function(Un){Rt[1]=Un}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Rt||isNaN(Rt[2])?0:Rt[2]},set:function(Un){Rt[2]=Un}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Rt||isNaN(Rt[3])?0:Rt[3]},set:function(Un){Rt[3]=Un}});var se="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return se},set:function(Un){switch(Un){case"/Btn":case"/Tx":case"/Ch":case"/Sig":se=Un;break;default:throw new Error('Invalid value "'+Un+'" for attribute FT supplied.')}}});var Zt=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Zt||Zt.length<1){if(this instanceof Ml)return;Zt="FieldObject"+Et.FieldNum++}var Un=function(Ai){return Ai};return this.scope&&(Un=this.scope.internal.getEncryptor(this.objId)),"("+Wl(Un(Zt))+")"},set:function(Un){Zt=Un.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Zt},set:function(Un){Zt=Un}});var pe="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return pe},set:function(Un){pe=Un}});var ye="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return ye},set:function(Un){ye=Un}});var Fe=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Fe},set:function(Un){Fe=Un}});var Xe=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Xe===void 0?50/Ka:Xe},set:function(Un){Xe=Un}});var pn="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return pn},set:function(Un){pn=Un}});var gn="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!gn||this instanceof Ml||this instanceof tu))return da(gn,this.objId,this.scope)},set:function(Un){Un=Un.toString(),gn=Un}});var Nn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Nn)return this instanceof Cs?Nn:da(Nn,this.objId,this.scope)},set:function(Un){Un=Un.toString(),Nn=this instanceof Cs?Un:Un.substr(0,1)==="("?La(Un.substr(1,Un.length-2)):La(Un)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Cs?La(Nn.substr(1,Nn.length-1)):Nn},set:function(Un){Un=Un.toString(),Nn=this instanceof Cs?"/"+Un:Un}});var He=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(He)return He},set:function(Un){this.V=Un}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(He)return this instanceof Cs?He:da(He,this.objId,this.scope)},set:function(Un){Un=Un.toString(),He=this instanceof Cs?Un:Un.substr(0,1)==="("?La(Un.substr(1,Un.length-2)):La(Un)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Cs?La(He.substr(1,He.length-1)):He},set:function(Un){Un=Un.toString(),He=this instanceof Cs?"/"+Un:Un}}),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 ci,Yn=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Yn},set:function(Un){Un=!!Un,Yn=Un}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(ci)return ci},set:function(Un){ci=Un}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,1)},set:function(Un){Un?this.Ff=Is(this.Ff,1):this.Ff=ia(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,2)},set:function(Un){Un?this.Ff=Is(this.Ff,2):this.Ff=ia(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,3)},set:function(Un){Un?this.Ff=Is(this.Ff,3):this.Ff=ia(this.Ff,3)}});var gi=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(gi!==null)return gi},set:function(Un){if([0,1,2].indexOf(Un)===-1)throw new Error('Invalid value "'+Un+'" for attribute Q supplied.');gi=Un}}),Object.defineProperty(this,"textAlign",{get:function(){var Un;switch(gi){case 0:default:Un="left";break;case 1:Un="center";break;case 2:Un="right"}return Un},configurable:!0,enumerable:!0,set:function(Un){switch(Un){case"right":case 2:gi=2;break;case"center":case 1:gi=1;break;case"left":case 0:default:gi=0}}})};ka(Bl,wr);var su=function(){Bl.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Et=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(Lt){Et=Lt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(Lt){Et=Lt}});var xt=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ns(xt,this.objId,this.scope)},set:function(Lt){var Rt,se;se=[],typeof(Rt=Lt)=="string"&&(se=function(Zt,pe,ye){ye||(ye=1);for(var Fe,Xe=[];Fe=pe.exec(Zt);)Xe.push(Fe[ye]);return Xe}(Rt,/\((.*?)\)/g)),xt=se}}),this.getOptions=function(){return xt},this.setOptions=function(Lt){xt=Lt,this.sort&&xt.sort()},this.addOption=function(Lt){Lt=(Lt=Lt||"").toString(),xt.push(Lt),this.sort&&xt.sort()},this.removeOption=function(Lt,Rt){for(Rt=Rt||!1,Lt=(Lt=Lt||"").toString();xt.indexOf(Lt)!==-1&&(xt.splice(xt.indexOf(Lt),1),Rt!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,18)},set:function(Lt){Lt?this.Ff=Is(this.Ff,18):this.Ff=ia(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,19)},set:function(Lt){this.combo===!0&&(Lt?this.Ff=Is(this.Ff,19):this.Ff=ia(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,20)},set:function(Lt){Lt?(this.Ff=Is(this.Ff,20),xt.sort()):this.Ff=ia(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,22)},set:function(Lt){Lt?this.Ff=Is(this.Ff,22):this.Ff=ia(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,23)},set:function(Lt){Lt?this.Ff=Is(this.Ff,23):this.Ff=ia(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,27)},set:function(Lt){Lt?this.Ff=Is(this.Ff,27):this.Ff=ia(this.Ff,27)}}),this.hasAppearanceStream=!1};ka(su,Bl);var au=function(){su.call(this),this.fontName="helvetica",this.combo=!1};ka(au,su);var Yo=function(){au.call(this),this.combo=!0};ka(Yo,au);var va=function(){Yo.call(this),this.edit=!0};ka(va,Yo);var Cs=function(){Bl.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,15)},set:function(Lt){Lt?this.Ff=Is(this.Ff,15):this.Ff=ia(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,16)},set:function(Lt){Lt?this.Ff=Is(this.Ff,16):this.Ff=ia(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,17)},set:function(Lt){Lt?this.Ff=Is(this.Ff,17):this.Ff=ia(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,26)},set:function(Lt){Lt?this.Ff=Is(this.Ff,26):this.Ff=ia(this.Ff,26)}});var Et,xt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Lt=function(Zt){return Zt};if(this.scope&&(Lt=this.scope.internal.getEncryptor(this.objId)),Object.keys(xt).length!==0){var Rt,se=[];for(Rt in se.push("<<"),xt)se.push("/"+Rt+" ("+Wl(Lt(xt[Rt]))+")");return se.push(">>"),se.join(`
`)}},set:function(Lt){(0,Ft.Z)(Lt)==="object"&&(xt=Lt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return xt.CA||""},set:function(Lt){typeof Lt=="string"&&(xt.CA=Lt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(Lt){Et=Lt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Et.substr(1,Et.length-1)},set:function(Lt){Et="/"+Lt}})};ka(Cs,Bl);var lu=function(){Cs.call(this),this.pushButton=!0};ka(lu,Cs);var Ll=function(){Cs.call(this),this.radio=!0,this.pushButton=!1;var Et=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(xt){Et=xt!==void 0?xt:[]}})};ka(Ll,Cs);var Ml=function(){var Et,xt;Bl.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Et},set:function(se){Et=se}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return xt},set:function(se){xt=se}});var Lt,Rt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var se=function(ye){return ye};this.scope&&(se=this.scope.internal.getEncryptor(this.objId));var Zt,pe=[];for(Zt in pe.push("<<"),Rt)pe.push("/"+Zt+" ("+Wl(se(Rt[Zt]))+")");return pe.push(">>"),pe.join(`
`)},set:function(se){(0,Ft.Z)(se)==="object"&&(Rt=se)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Rt.CA||""},set:function(se){typeof se=="string"&&(Rt.CA=se)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Lt},set:function(se){Lt=se}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Lt.substr(1,Lt.length-1)},set:function(se){Lt="/"+se}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=No.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ka(Ml,Bl),Ll.prototype.setAppearance=function(Et){if(!("createAppearanceStream"in Et)||!("getCA"in Et))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var xt in this.Kids)if(this.Kids.hasOwnProperty(xt)){var Lt=this.Kids[xt];Lt.appearanceStreamContent=Et.createAppearanceStream(Lt.optionName),Lt.caption=Et.getCA()}},Ll.prototype.createOption=function(Et){var xt=new Ml;return xt.Parent=this,xt.optionName=Et,this.Kids.push(xt),dc.call(this.scope,xt),xt};var tl=function(){Cs.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=No.CheckBox.createAppearanceStream()};ka(tl,Cs);var tu=function(){Bl.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,13)},set:function(xt){xt?this.Ff=Is(this.Ff,13):this.Ff=ia(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,21)},set:function(xt){xt?this.Ff=Is(this.Ff,21):this.Ff=ia(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,23)},set:function(xt){xt?this.Ff=Is(this.Ff,23):this.Ff=ia(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,24)},set:function(xt){xt?this.Ff=Is(this.Ff,24):this.Ff=ia(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,25)},set:function(xt){xt?this.Ff=Is(this.Ff,25):this.Ff=ia(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,26)},set:function(xt){xt?this.Ff=Is(this.Ff,26):this.Ff=ia(this.Ff,26)}});var Et=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Et},set:function(xt){Et=xt}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Et},set:function(xt){Number.isInteger(xt)&&(Et=xt)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ka(tu,Bl);var Pl=function(){tu.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Fl(this.Ff,14)},set:function(Et){Et?this.Ff=Is(this.Ff,14):this.Ff=ia(this.Ff,14)}}),this.password=!0};ka(Pl,tu);var No={CheckBox:{createAppearanceStream:function(){return{N:{On:No.CheckBox.YesNormal},D:{On:No.CheckBox.YesPushDown,Off:No.CheckBox.OffPushDown}}},YesPushDown:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=[],Rt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,se=Et.scope.__private__.encodeColorString(Et.color),Zt=Zs(Et,Et.caption);return Lt.push("0.749023 g"),Lt.push("0 0 "+vs(No.internal.getWidth(Et))+" "+vs(No.internal.getHeight(Et))+" re"),Lt.push("f"),Lt.push("BMC"),Lt.push("q"),Lt.push("0 0 1 rg"),Lt.push("/"+Rt+" "+vs(Zt.fontSize)+" Tf "+se),Lt.push("BT"),Lt.push(Zt.text),Lt.push("ET"),Lt.push("Q"),Lt.push("EMC"),xt.stream=Lt.join(`
`),xt},YesNormal:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,Rt=Et.scope.__private__.encodeColorString(Et.color),se=[],Zt=No.internal.getHeight(Et),pe=No.internal.getWidth(Et),ye=Zs(Et,Et.caption);return se.push("1 g"),se.push("0 0 "+vs(pe)+" "+vs(Zt)+" re"),se.push("f"),se.push("q"),se.push("0 0 1 rg"),se.push("0 0 "+vs(pe-1)+" "+vs(Zt-1)+" re"),se.push("W"),se.push("n"),se.push("0 g"),se.push("BT"),se.push("/"+Lt+" "+vs(ye.fontSize)+" Tf "+Rt),se.push(ye.text),se.push("ET"),se.push("Q"),xt.stream=se.join(`
`),xt},OffPushDown:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=[];return Lt.push("0.749023 g"),Lt.push("0 0 "+vs(No.internal.getWidth(Et))+" "+vs(No.internal.getHeight(Et))+" re"),Lt.push("f"),xt.stream=Lt.join(`
`),xt}},RadioButton:{Circle:{createAppearanceStream:function(Et){var xt={D:{Off:No.RadioButton.Circle.OffPushDown},N:{}};return xt.N[Et]=No.RadioButton.Circle.YesNormal,xt.D[Et]=No.RadioButton.Circle.YesPushDown,xt},getCA:function(){return"l"},YesNormal:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=[],Rt=No.internal.getWidth(Et)<=No.internal.getHeight(Et)?No.internal.getWidth(Et)/4:No.internal.getHeight(Et)/4;Rt=Number((.9*Rt).toFixed(5));var se=No.internal.Bezier_C,Zt=Number((Rt*se).toFixed(5));return Lt.push("q"),Lt.push("1 0 0 1 "+ai(No.internal.getWidth(Et)/2)+" "+ai(No.internal.getHeight(Et)/2)+" cm"),Lt.push(Rt+" 0 m"),Lt.push(Rt+" "+Zt+" "+Zt+" "+Rt+" 0 "+Rt+" c"),Lt.push("-"+Zt+" "+Rt+" -"+Rt+" "+Zt+" -"+Rt+" 0 c"),Lt.push("-"+Rt+" -"+Zt+" -"+Zt+" -"+Rt+" 0 -"+Rt+" c"),Lt.push(Zt+" -"+Rt+" "+Rt+" -"+Zt+" "+Rt+" 0 c"),Lt.push("f"),Lt.push("Q"),xt.stream=Lt.join(`
`),xt},YesPushDown:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=[],Rt=No.internal.getWidth(Et)<=No.internal.getHeight(Et)?No.internal.getWidth(Et)/4:No.internal.getHeight(Et)/4;Rt=Number((.9*Rt).toFixed(5));var se=Number((2*Rt).toFixed(5)),Zt=Number((se*No.internal.Bezier_C).toFixed(5)),pe=Number((Rt*No.internal.Bezier_C).toFixed(5));return Lt.push("0.749023 g"),Lt.push("q"),Lt.push("1 0 0 1 "+ai(No.internal.getWidth(Et)/2)+" "+ai(No.internal.getHeight(Et)/2)+" cm"),Lt.push(se+" 0 m"),Lt.push(se+" "+Zt+" "+Zt+" "+se+" 0 "+se+" c"),Lt.push("-"+Zt+" "+se+" -"+se+" "+Zt+" -"+se+" 0 c"),Lt.push("-"+se+" -"+Zt+" -"+Zt+" -"+se+" 0 -"+se+" c"),Lt.push(Zt+" -"+se+" "+se+" -"+Zt+" "+se+" 0 c"),Lt.push("f"),Lt.push("Q"),Lt.push("0 g"),Lt.push("q"),Lt.push("1 0 0 1 "+ai(No.internal.getWidth(Et)/2)+" "+ai(No.internal.getHeight(Et)/2)+" cm"),Lt.push(Rt+" 0 m"),Lt.push(Rt+" "+pe+" "+pe+" "+Rt+" 0 "+Rt+" c"),Lt.push("-"+pe+" "+Rt+" -"+Rt+" "+pe+" -"+Rt+" 0 c"),Lt.push("-"+Rt+" -"+pe+" -"+pe+" -"+Rt+" 0 -"+Rt+" c"),Lt.push(pe+" -"+Rt+" "+Rt+" -"+pe+" "+Rt+" 0 c"),Lt.push("f"),Lt.push("Q"),xt.stream=Lt.join(`
`),xt},OffPushDown:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=[],Rt=No.internal.getWidth(Et)<=No.internal.getHeight(Et)?No.internal.getWidth(Et)/4:No.internal.getHeight(Et)/4;Rt=Number((.9*Rt).toFixed(5));var se=Number((2*Rt).toFixed(5)),Zt=Number((se*No.internal.Bezier_C).toFixed(5));return Lt.push("0.749023 g"),Lt.push("q"),Lt.push("1 0 0 1 "+ai(No.internal.getWidth(Et)/2)+" "+ai(No.internal.getHeight(Et)/2)+" cm"),Lt.push(se+" 0 m"),Lt.push(se+" "+Zt+" "+Zt+" "+se+" 0 "+se+" c"),Lt.push("-"+Zt+" "+se+" -"+se+" "+Zt+" -"+se+" 0 c"),Lt.push("-"+se+" -"+Zt+" -"+Zt+" -"+se+" 0 -"+se+" c"),Lt.push(Zt+" -"+se+" "+se+" -"+Zt+" "+se+" 0 c"),Lt.push("f"),Lt.push("Q"),xt.stream=Lt.join(`
`),xt}},Cross:{createAppearanceStream:function(Et){var xt={D:{Off:No.RadioButton.Cross.OffPushDown},N:{}};return xt.N[Et]=No.RadioButton.Cross.YesNormal,xt.D[Et]=No.RadioButton.Cross.YesPushDown,xt},getCA:function(){return"8"},YesNormal:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=[],Rt=No.internal.calculateCross(Et);return Lt.push("q"),Lt.push("1 1 "+vs(No.internal.getWidth(Et)-2)+" "+vs(No.internal.getHeight(Et)-2)+" re"),Lt.push("W"),Lt.push("n"),Lt.push(vs(Rt.x1.x)+" "+vs(Rt.x1.y)+" m"),Lt.push(vs(Rt.x2.x)+" "+vs(Rt.x2.y)+" l"),Lt.push(vs(Rt.x4.x)+" "+vs(Rt.x4.y)+" m"),Lt.push(vs(Rt.x3.x)+" "+vs(Rt.x3.y)+" l"),Lt.push("s"),Lt.push("Q"),xt.stream=Lt.join(`
`),xt},YesPushDown:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=No.internal.calculateCross(Et),Rt=[];return Rt.push("0.749023 g"),Rt.push("0 0 "+vs(No.internal.getWidth(Et))+" "+vs(No.internal.getHeight(Et))+" re"),Rt.push("f"),Rt.push("q"),Rt.push("1 1 "+vs(No.internal.getWidth(Et)-2)+" "+vs(No.internal.getHeight(Et)-2)+" re"),Rt.push("W"),Rt.push("n"),Rt.push(vs(Lt.x1.x)+" "+vs(Lt.x1.y)+" m"),Rt.push(vs(Lt.x2.x)+" "+vs(Lt.x2.y)+" l"),Rt.push(vs(Lt.x4.x)+" "+vs(Lt.x4.y)+" m"),Rt.push(vs(Lt.x3.x)+" "+vs(Lt.x3.y)+" l"),Rt.push("s"),Rt.push("Q"),xt.stream=Rt.join(`
`),xt},OffPushDown:function(Et){var xt=Vl(Et);xt.scope=Et.scope;var Lt=[];return Lt.push("0.749023 g"),Lt.push("0 0 "+vs(No.internal.getWidth(Et))+" "+vs(No.internal.getHeight(Et))+" re"),Lt.push("f"),xt.stream=Lt.join(`
`),xt}}},createDefaultAppearanceStream:function(Et){var xt=Et.scope.internal.getFont(Et.fontName,Et.fontStyle).id,Lt=Et.scope.__private__.encodeColorString(Et.color);return"/"+xt+" "+Et.fontSize+" Tf "+Lt}};No.internal={Bezier_C:.551915024494,calculateCross:function(Et){var xt=No.internal.getWidth(Et),Lt=No.internal.getHeight(Et),Rt=Math.min(xt,Lt);return{x1:{x:(xt-Rt)/2,y:(Lt-Rt)/2+Rt},x2:{x:(xt-Rt)/2+Rt,y:(Lt-Rt)/2},x3:{x:(xt-Rt)/2,y:(Lt-Rt)/2},x4:{x:(xt-Rt)/2+Rt,y:(Lt-Rt)/2+Rt}}}},No.internal.getWidth=function(Et){var xt=0;return(0,Ft.Z)(Et)==="object"&&(xt=bc(Et.Rect[2])),xt},No.internal.getHeight=function(Et){var xt=0;return(0,Ft.Z)(Et)==="object"&&(xt=bc(Et.Rect[3])),xt};var dc=Vs.addField=function(Et){if(Ao(this,Et),!(Et instanceof Bl))throw new Error("Invalid argument passed to jsPDF.addField.");var xt;return(xt=Et).scope.internal.acroformPlugin.printedOut&&(xt.scope.internal.acroformPlugin.printedOut=!1,xt.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),xt.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(xt),Et.page=Et.scope.internal.getCurrentPageInfo().pageNumber,this};Vs.AcroFormChoiceField=su,Vs.AcroFormListBox=au,Vs.AcroFormComboBox=Yo,Vs.AcroFormEditBox=va,Vs.AcroFormButton=Cs,Vs.AcroFormPushButton=lu,Vs.AcroFormRadioButton=Ll,Vs.AcroFormCheckBox=tl,Vs.AcroFormTextField=tu,Vs.AcroFormPasswordField=Pl,Vs.AcroFormAppearance=No,Vs.AcroForm={ChoiceField:su,ListBox:au,ComboBox:Yo,EditBox:va,Button:Cs,PushButton:lu,RadioButton:Ll,CheckBox:tl,TextField:tu,PasswordField:Pl,Appearance:No},Qo.AcroForm={ChoiceField:su,ListBox:au,ComboBox:Yo,EditBox:va,Button:Cs,PushButton:lu,RadioButton:Ll,CheckBox:tl,TextField:tu,PasswordField:Pl,Appearance:No};var al=Qo.AcroForm;function zu(Et){return Et.reduce(function(xt,Lt,Rt){return xt[Lt]=Rt,xt},{})}(function(Et){Et.__addimage__={};var xt="UNKNOWN",Lt={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]]},Rt=Et.__addimage__.getImageFileTypeByImageData=function(Qn,$n){var Zi,ge,Ce,Ve,en,un=xt;if(($n=$n||xt)==="RGBA"||Qn.data!==void 0&&Qn.data instanceof Uint8ClampedArray&&"height"in Qn&&"width"in Qn)return"RGBA";if(io(Qn))for(en in Lt)for(Ce=Lt[en],Zi=0;Zi<Ce.length;Zi+=1){for(Ve=!0,ge=0;ge<Ce[Zi].length;ge+=1)if(Ce[Zi][ge]!==void 0&&Ce[Zi][ge]!==Qn[ge]){Ve=!1;break}if(Ve===!0){un=en;break}}else for(en in Lt)for(Ce=Lt[en],Zi=0;Zi<Ce.length;Zi+=1){for(Ve=!0,ge=0;ge<Ce[Zi].length;ge+=1)if(Ce[Zi][ge]!==void 0&&Ce[Zi][ge]!==Qn.charCodeAt(ge)){Ve=!1;break}if(Ve===!0){un=en;break}}return un===xt&&$n!==xt&&(un=$n),un},se=function Qn($n){for(var Zi=this.internal.write,ge=this.internal.putStream,Ce=(0,this.internal.getFilters)();Ce.indexOf("FlateEncode")!==-1;)Ce.splice(Ce.indexOf("FlateEncode"),1);$n.objectId=this.internal.newObject();var Ve=[];if(Ve.push({key:"Type",value:"/XObject"}),Ve.push({key:"Subtype",value:"/Image"}),Ve.push({key:"Width",value:$n.width}),Ve.push({key:"Height",value:$n.height}),$n.colorSpace===gi.INDEXED?Ve.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+($n.palette.length/3-1)+" "+("sMask"in $n&&$n.sMask!==void 0?$n.objectId+2:$n.objectId+1)+" 0 R]"}):(Ve.push({key:"ColorSpace",value:"/"+$n.colorSpace}),$n.colorSpace===gi.DEVICE_CMYK&&Ve.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Ve.push({key:"BitsPerComponent",value:$n.bitsPerComponent}),"decodeParameters"in $n&&$n.decodeParameters!==void 0&&Ve.push({key:"DecodeParms",value:"<<"+$n.decodeParameters+">>"}),"transparency"in $n&&Array.isArray($n.transparency)){for(var en="",un=0,hn=$n.transparency.length;un<hn;un++)en+=$n.transparency[un]+" "+$n.transparency[un]+" ";Ve.push({key:"Mask",value:"["+en+"]"})}$n.sMask!==void 0&&Ve.push({key:"SMask",value:$n.objectId+1+" 0 R"});var Tn=$n.filter!==void 0?["/"+$n.filter]:void 0;if(ge({data:$n.data,additionalKeyValues:Ve,alreadyAppliedFilters:Tn,objectId:$n.objectId}),Zi("endobj"),"sMask"in $n&&$n.sMask!==void 0){var Xn="/Predictor "+$n.predictor+" /Colors 1 /BitsPerComponent "+$n.bitsPerComponent+" /Columns "+$n.width,Te={width:$n.width,height:$n.height,colorSpace:"DeviceGray",bitsPerComponent:$n.bitsPerComponent,decodeParameters:Xn,data:$n.sMask};"filter"in $n&&(Te.filter=$n.filter),Qn.call(this,Te)}if($n.colorSpace===gi.INDEXED){var ln=this.internal.newObject();ge({data:Ti(new Uint8Array($n.palette)),objectId:ln}),Zi("endobj")}},Zt=function(){var Qn=this.internal.collections.addImage_images;for(var $n in Qn)se.call(this,Qn[$n])},pe=function(){var Qn,$n=this.internal.collections.addImage_images,Zi=this.internal.write;for(var ge in $n)Zi("/I"+(Qn=$n[ge]).index,Qn.objectId,"0","R")},ye=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Zt),this.internal.events.subscribe("putXobjectDict",pe))},Fe=function(){var Qn=this.internal.collections.addImage_images;return ye.call(this),Qn},Xe=function(){return Object.keys(this.internal.collections.addImage_images).length},pn=function(Qn){return typeof Et["process"+Qn.toUpperCase()]=="function"},gn=function(Qn){return(0,Ft.Z)(Qn)==="object"&&Qn.nodeType===1},Nn=function(Qn,$n){if(Qn.nodeName==="IMG"&&Qn.hasAttribute("src")){var Zi=""+Qn.getAttribute("src");if(Zi.indexOf("data:image/")===0)return fs(unescape(Zi).split("base64,").pop());var ge=Et.loadFile(Zi,!0);if(ge!==void 0)return ge}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 Ce;switch($n){case"PNG":Ce="image/png";break;case"WEBP":Ce="image/webp";break;case"JPEG":case"JPG":default:Ce="image/jpeg"}return fs(Qn.toDataURL(Ce,1).split("base64,").pop())}},He=function(Qn){var $n=this.internal.collections.addImage_images;if($n){for(var Zi in $n)if(Qn===$n[Zi].alias)return $n[Zi]}},ci=function(Qn,$n,Zi){return Qn||$n||(Qn=-96,$n=-96),Qn<0&&(Qn=-1*Zi.width*72/Qn/this.internal.scaleFactor),$n<0&&($n=-1*Zi.height*72/$n/this.internal.scaleFactor),Qn===0&&(Qn=$n*Zi.width/Zi.height),$n===0&&($n=Qn*Zi.height/Zi.width),[Qn,$n]},Yn=function(Qn,$n,Zi,ge,Ce,Ve){var en=ci.call(this,Zi,ge,Ce),un=this.internal.getCoordinateString,hn=this.internal.getVerticalCoordinateString,Tn=Fe.call(this);if(Zi=en[0],ge=en[1],Tn[Ce.index]=Ce,Ve){Ve*=Math.PI/180;var Xn=Math.cos(Ve),Te=Math.sin(Ve),ln=function(En){return En.toFixed(4)},vn=[ln(Xn),ln(Te),ln(-1*Te),ln(Xn),0,0,"cm"]}this.internal.write("q"),Ve?(this.internal.write([1,"0","0",1,un(Qn),hn($n+ge),"cm"].join(" ")),this.internal.write(vn.join(" ")),this.internal.write([un(Zi),"0","0",un(ge),"0","0","cm"].join(" "))):this.internal.write([un(Zi),"0","0",un(ge),un(Qn),hn($n+ge),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ce.index+" Do"),this.internal.write("Q")},gi=Et.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"};Et.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 Un=Et.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Ai=Et.__addimage__.sHashCode=function(Qn){var $n,Zi,ge=0;if(typeof Qn=="string")for(Zi=Qn.length,$n=0;$n<Zi;$n++)ge=(ge<<5)-ge+Qn.charCodeAt($n),ge|=0;else if(io(Qn))for(Zi=Qn.byteLength/2,$n=0;$n<Zi;$n++)ge=(ge<<5)-ge+Qn[$n],ge|=0;return ge},Hi=Et.__addimage__.validateStringAsBase64=function(Qn){(Qn=Qn||"").toString().trim();var $n=!0;return Qn.length===0&&($n=!1),Qn.length%4!=0&&($n=!1),/^[A-Za-z0-9+/]+$/.test(Qn.substr(0,Qn.length-2))===!1&&($n=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Qn.substr(-2))===!1&&($n=!1),$n},lr=Et.__addimage__.extractImageFromDataUrl=function(Qn){if(Qn==null||!(Qn=Qn.trim()).startsWith("data:"))return null;var $n=Qn.indexOf(",");return $n<0?null:Qn.substring(0,$n).trim().endsWith("base64")?Qn.substring($n+1):null},Ir=Et.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Et.__addimage__.isArrayBuffer=function(Qn){return Ir()&&Qn instanceof ArrayBuffer};var io=Et.__addimage__.isArrayBufferView=function(Qn){return Ir()&&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=Et.__addimage__.binaryStringToUint8Array=function(Qn){for(var $n=Qn.length,Zi=new Uint8Array($n),ge=0;ge<$n;ge++)Zi[ge]=Qn.charCodeAt(ge);return Zi},Ti=Et.__addimage__.arrayBufferToBinaryString=function(Qn){for(var $n="",Zi=io(Qn)?Qn:new Uint8Array(Qn),ge=0;ge<Zi.length;ge+=8192)$n+=String.fromCharCode.apply(null,Zi.subarray(ge,ge+8192));return $n};Et.addImage=function(){var Qn,$n,Zi,ge,Ce,Ve,en,un,hn;if(typeof arguments[1]=="number"?($n=xt,Zi=arguments[1],ge=arguments[2],Ce=arguments[3],Ve=arguments[4],en=arguments[5],un=arguments[6],hn=arguments[7]):($n=arguments[1],Zi=arguments[2],ge=arguments[3],Ce=arguments[4],Ve=arguments[5],en=arguments[6],un=arguments[7],hn=arguments[8]),(0,Ft.Z)(Qn=arguments[0])==="object"&&!gn(Qn)&&"imageData"in Qn){var Tn=Qn;Qn=Tn.imageData,$n=Tn.format||$n||xt,Zi=Tn.x||Zi||0,ge=Tn.y||ge||0,Ce=Tn.w||Tn.width||Ce,Ve=Tn.h||Tn.height||Ve,en=Tn.alias||en,un=Tn.compression||un,hn=Tn.rotation||Tn.angle||hn}var Xn=this.internal.getFilters();if(un===void 0&&Xn.indexOf("FlateEncode")!==-1&&(un="SLOW"),isNaN(Zi)||isNaN(ge))throw new Error("Invalid coordinates passed to jsPDF.addImage");ye.call(this);var Te=Br.call(this,Qn,$n,en,un);return Yn.call(this,Zi,ge,Ce,Ve,Te,hn),this};var Br=function(Qn,$n,Zi,ge){var Ce,Ve,en;if(typeof Qn=="string"&&Rt(Qn)===xt){Qn=unescape(Qn);var un=Wr(Qn,!1);(un!==""||(un=Et.loadFile(Qn,!0))!==void 0)&&(Qn=un)}if(gn(Qn)&&(Qn=Nn(Qn,$n)),$n=Rt(Qn,$n),!pn($n))throw new Error("addImage does not support files of type '"+$n+"', please ensure that a plugin for '"+$n+"' support is added.");if(((en=Zi)==null||en.length===0)&&(Zi=function(hn){return typeof hn=="string"||io(hn)?Ai(hn):io(hn.data)?Ai(hn.data):null}(Qn)),(Ce=He.call(this,Zi))||(Ir()&&(Qn instanceof Uint8Array||$n==="RGBA"||(Ve=Qn,Qn=mr(Qn))),Ce=this["process"+$n.toUpperCase()](Qn,Xe.call(this),Zi,function(hn){return hn&&typeof hn=="string"&&(hn=hn.toUpperCase()),hn in Et.image_compression?hn:Un.NONE}(ge),Ve)),!Ce)throw new Error("An unknown error occurred whilst processing the image.");return Ce},Wr=Et.__addimage__.convertBase64ToBinaryString=function(Qn,$n){$n=typeof $n!="boolean"||$n;var Zi,ge="";if(typeof Qn=="string"){var Ce;Zi=(Ce=lr(Qn))!==null&&Ce!==void 0?Ce:Qn;try{ge=fs(Zi)}catch(Ve){if($n)throw Hi(Zi)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Ve.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ge};Et.getImageProperties=function(Qn){var $n,Zi,ge="";if(gn(Qn)&&(Qn=Nn(Qn)),typeof Qn=="string"&&Rt(Qn)===xt&&((ge=Wr(Qn,!1))===""&&(ge=Et.loadFile(Qn)||""),Qn=ge),Zi=Rt(Qn),!pn(Zi))throw new Error("addImage does not support files of type '"+Zi+"', please ensure that a plugin for '"+Zi+"' support is added.");if(!Ir()||Qn instanceof Uint8Array||(Qn=mr(Qn)),!($n=this["process"+Zi.toUpperCase()](Qn)))throw new Error("An unknown error occurred whilst processing the image");return $n.fileType=Zi,$n}})(Qo.API),function(Et){var xt=function(Lt){if(Lt!==void 0&&Lt!="")return!0};Qo.API.events.push(["addPage",function(Lt){this.internal.getPageInfo(Lt.pageNumber).pageContext.annotations=[]}]),Et.events.push(["putPage",function(Lt){for(var Rt,se,Zt,pe=this.internal.getCoordinateString,ye=this.internal.getVerticalCoordinateString,Fe=this.internal.getPageInfoByObjId(Lt.objId),Xe=Lt.pageContext.annotations,pn=!1,gn=0;gn<Xe.length&&!pn;gn++)switch((Rt=Xe[gn]).type){case"link":(xt(Rt.options.url)||xt(Rt.options.pageNumber))&&(pn=!0);break;case"reference":case"text":case"freetext":pn=!0}if(pn!=0){this.internal.write("/Annots [");for(var Nn=0;Nn<Xe.length;Nn++){Rt=Xe[Nn];var He=this.internal.pdfEscape,ci=this.internal.getEncryptor(Lt.objId);switch(Rt.type){case"reference":this.internal.write(" "+Rt.object.objId+" 0 R ");break;case"text":var Yn=this.internal.newAdditionalObject(),gi=this.internal.newAdditionalObject(),Un=this.internal.getEncryptor(Yn.objId),Ai=Rt.title||"Note";Zt="<</Type /Annot /Subtype /Text "+(se="/Rect ["+pe(Rt.bounds.x)+" "+ye(Rt.bounds.y+Rt.bounds.h)+" "+pe(Rt.bounds.x+Rt.bounds.w)+" "+ye(Rt.bounds.y)+"] ")+"/Contents ("+He(Un(Rt.contents))+")",Zt+=" /Popup "+gi.objId+" 0 R",Zt+=" /P "+Fe.objId+" 0 R",Zt+=" /T ("+He(Un(Ai))+") >>",Yn.content=Zt;var Hi=Yn.objId+" 0 R";Zt="<</Type /Annot /Subtype /Popup "+(se="/Rect ["+pe(Rt.bounds.x+30)+" "+ye(Rt.bounds.y+Rt.bounds.h)+" "+pe(Rt.bounds.x+Rt.bounds.w+30)+" "+ye(Rt.bounds.y)+"] ")+" /Parent "+Hi,Rt.open&&(Zt+=" /Open true"),Zt+=" >>",gi.content=Zt,this.internal.write(Yn.objId,"0 R",gi.objId,"0 R");break;case"freetext":se="/Rect ["+pe(Rt.bounds.x)+" "+ye(Rt.bounds.y)+" "+pe(Rt.bounds.x+Rt.bounds.w)+" "+ye(Rt.bounds.y+Rt.bounds.h)+"] ";var lr=Rt.color||"#000000";Zt="<</Type /Annot /Subtype /FreeText "+se+"/Contents ("+He(ci(Rt.contents))+")",Zt+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+lr+")",Zt+=" /Border [0 0 0]",Zt+=" >>",this.internal.write(Zt);break;case"link":if(Rt.options.name){var Ir=this.annotations._nameMap[Rt.options.name];Rt.options.pageNumber=Ir.page,Rt.options.top=Ir.y}else Rt.options.top||(Rt.options.top=0);if(se="/Rect ["+Rt.finalBounds.x+" "+Rt.finalBounds.y+" "+Rt.finalBounds.w+" "+Rt.finalBounds.h+"] ",Zt="",Rt.options.url)Zt="<</Type /Annot /Subtype /Link "+se+"/Border [0 0 0] /A <</S /URI /URI ("+He(ci(Rt.options.url))+") >>";else if(Rt.options.pageNumber)switch(Zt="<</Type /Annot /Subtype /Link "+se+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Rt.options.pageNumber).objId+" 0 R",Rt.options.magFactor=Rt.options.magFactor||"XYZ",Rt.options.magFactor){case"Fit":Zt+=" /Fit]";break;case"FitH":Zt+=" /FitH "+Rt.options.top+"]";break;case"FitV":Rt.options.left=Rt.options.left||0,Zt+=" /FitV "+Rt.options.left+"]";break;case"XYZ":default:var io=ye(Rt.options.top);Rt.options.left=Rt.options.left||0,Rt.options.zoom===void 0&&(Rt.options.zoom=0),Zt+=" /XYZ "+Rt.options.left+" "+io+" "+Rt.options.zoom+"]"}Zt!=""&&(Zt+=" >>",this.internal.write(Zt))}}this.internal.write("]")}}]),Et.createAnnotation=function(Lt){var Rt=this.internal.getCurrentPageInfo();switch(Lt.type){case"link":this.link(Lt.bounds.x,Lt.bounds.y,Lt.bounds.w,Lt.bounds.h,Lt);break;case"text":case"freetext":Rt.pageContext.annotations.push(Lt)}},Et.link=function(Lt,Rt,se,Zt,pe){var ye=this.internal.getCurrentPageInfo(),Fe=this.internal.getCoordinateString,Xe=this.internal.getVerticalCoordinateString;ye.pageContext.annotations.push({finalBounds:{x:Fe(Lt),y:Xe(Rt),w:Fe(Lt+se),h:Xe(Rt+Zt)},options:pe,type:"link"})},Et.textWithLink=function(Lt,Rt,se,Zt){var pe,ye,Fe=this.getTextWidth(Lt),Xe=this.internal.getLineHeight()/this.internal.scaleFactor;if(Zt.maxWidth!==void 0){ye=Zt.maxWidth;var pn=this.splitTextToSize(Lt,ye).length;pe=Math.ceil(Xe*pn)}else ye=Fe,pe=Xe;return this.text(Lt,Rt,se,Zt),se+=.2*Xe,Zt.align==="center"&&(Rt-=Fe/2),Zt.align==="right"&&(Rt-=Fe),this.link(Rt,se-Xe,ye,pe,Zt),Fe},Et.getTextWidth=function(Lt){var Rt=this.internal.getFontSize();return this.getStringUnitWidth(Lt)*Rt/this.internal.scaleFactor}}(Qo.API),function(Et){var xt={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]},Lt={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}},Rt={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},se=[1570,1571,1573,1575];Et.__arabicParser__={};var Zt=Et.__arabicParser__.isInArabicSubstitutionA=function(Yn){return xt[Yn.charCodeAt(0)]!==void 0},pe=Et.__arabicParser__.isArabicLetter=function(Yn){return typeof Yn=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Yn)},ye=Et.__arabicParser__.isArabicEndLetter=function(Yn){return pe(Yn)&&Zt(Yn)&&xt[Yn.charCodeAt(0)].length<=2},Fe=Et.__arabicParser__.isArabicAlfLetter=function(Yn){return pe(Yn)&&se.indexOf(Yn.charCodeAt(0))>=0};Et.__arabicParser__.arabicLetterHasIsolatedForm=function(Yn){return pe(Yn)&&Zt(Yn)&&xt[Yn.charCodeAt(0)].length>=1};var Xe=Et.__arabicParser__.arabicLetterHasFinalForm=function(Yn){return pe(Yn)&&Zt(Yn)&&xt[Yn.charCodeAt(0)].length>=2};Et.__arabicParser__.arabicLetterHasInitialForm=function(Yn){return pe(Yn)&&Zt(Yn)&&xt[Yn.charCodeAt(0)].length>=3};var pn=Et.__arabicParser__.arabicLetterHasMedialForm=function(Yn){return pe(Yn)&&Zt(Yn)&&xt[Yn.charCodeAt(0)].length==4},gn=Et.__arabicParser__.resolveLigatures=function(Yn){var gi=0,Un=Lt,Ai="",Hi=0;for(gi=0;gi<Yn.length;gi+=1)Un[Yn.charCodeAt(gi)]!==void 0?(Hi++,typeof(Un=Un[Yn.charCodeAt(gi)])=="number"&&(Ai+=String.fromCharCode(Un),Un=Lt,Hi=0),gi===Yn.length-1&&(Un=Lt,Ai+=Yn.charAt(gi-(Hi-1)),gi-=Hi-1,Hi=0)):(Un=Lt,Ai+=Yn.charAt(gi-Hi),gi-=Hi,Hi=0);return Ai};Et.__arabicParser__.isArabicDiacritic=function(Yn){return Yn!==void 0&&Rt[Yn.charCodeAt(0)]!==void 0};var Nn=Et.__arabicParser__.getCorrectForm=function(Yn,gi,Un){return pe(Yn)?Zt(Yn)===!1?-1:!Xe(Yn)||!pe(gi)&&!pe(Un)||!pe(Un)&&ye(gi)||ye(Yn)&&!pe(gi)||ye(Yn)&&Fe(gi)||ye(Yn)&&ye(gi)?0:pn(Yn)&&pe(gi)&&!ye(gi)&&pe(Un)&&Xe(Un)?3:ye(Yn)||!pe(Un)?1:2:-1},He=function(Yn){var gi=0,Un=0,Ai=0,Hi="",lr="",Ir="",io=(Yn=Yn||"").split("\\s+"),mr=[];for(gi=0;gi<io.length;gi+=1){for(mr.push(""),Un=0;Un<io[gi].length;Un+=1)Hi=io[gi][Un],lr=io[gi][Un-1],Ir=io[gi][Un+1],pe(Hi)?(Ai=Nn(Hi,lr,Ir),mr[gi]+=Ai!==-1?String.fromCharCode(xt[Hi.charCodeAt(0)][Ai]):Hi):mr[gi]+=Hi;mr[gi]=gn(mr[gi])}return mr.join(" ")},ci=Et.__arabicParser__.processArabic=Et.processArabic=function(){var Yn,gi=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Un=[];if(Array.isArray(gi)){var Ai=0;for(Un=[],Ai=0;Ai<gi.length;Ai+=1)Array.isArray(gi[Ai])?Un.push([He(gi[Ai][0]),gi[Ai][1],gi[Ai][2]]):Un.push([He(gi[Ai])]);Yn=Un}else Yn=He(gi);return typeof arguments[0]=="string"?Yn:(arguments[0].text=Yn,arguments[0])};Et.events.push(["preProcessText",ci])}(Qo.API),Qo.API.autoPrint=function(Et){var xt;switch((Et=Et||{}).variant=Et.variant||"non-conform",Et.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){xt=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 "+xt+" 0 R")})}return this},function(Et){var xt=function(){var Lt=void 0;Object.defineProperty(this,"pdf",{get:function(){return Lt},set:function(ye){Lt=ye}});var Rt=150;Object.defineProperty(this,"width",{get:function(){return Rt},set:function(ye){Rt=isNaN(ye)||Number.isInteger(ye)===!1||ye<0?150:ye,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Rt+1)}});var se=300;Object.defineProperty(this,"height",{get:function(){return se},set:function(ye){se=isNaN(ye)||Number.isInteger(ye)===!1||ye<0?300:ye,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=se+1)}});var Zt=[];Object.defineProperty(this,"childNodes",{get:function(){return Zt},set:function(ye){Zt=ye}});var pe={};Object.defineProperty(this,"style",{get:function(){return pe},set:function(ye){pe=ye}}),Object.defineProperty(this,"parentNode",{})};xt.prototype.getContext=function(Lt,Rt){var se;if((Lt=Lt||"2d")!=="2d")return null;for(se in Rt)this.pdf.context2d.hasOwnProperty(se)&&(this.pdf.context2d[se]=Rt[se]);return this.pdf.context2d._canvas=this,this.pdf.context2d},xt.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Et.events.push(["initialized",function(){this.canvas=new xt,this.canvas.pdf=this}])}(Qo.API),function(Et){var xt={left:0,top:0,bottom:0,right:0},Lt=!1,Rt=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({},xt),this.internal.__cell__.margins.width=this.getPageWidth(),se.call(this))},se=function(){this.internal.__cell__.lastCell=new Zt,this.internal.__cell__.pages=1},Zt=function(){var Fe=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Fe},set:function(Yn){Fe=Yn}});var Xe=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Xe},set:function(Yn){Xe=Yn}});var pn=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return pn},set:function(Yn){pn=Yn}});var gn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return gn},set:function(Yn){gn=Yn}});var Nn=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Nn},set:function(Yn){Nn=Yn}});var He=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return He},set:function(Yn){He=Yn}});var ci=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return ci},set:function(Yn){ci=Yn}}),this};Zt.prototype.clone=function(){return new Zt(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Zt.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Et.setHeaderFunction=function(Fe){return Rt.call(this),this.internal.__cell__.headerFunction=typeof Fe=="function"?Fe:void 0,this},Et.getTextDimensions=function(Fe,Xe){Rt.call(this);var pn=(Xe=Xe||{}).fontSize||this.getFontSize(),gn=Xe.font||this.getFont(),Nn=Xe.scaleFactor||this.internal.scaleFactor,He=0,ci=0,Yn=0,gi=this;if(!Array.isArray(Fe)&&typeof Fe!="string"){if(typeof Fe!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Fe=String(Fe)}var Un=Xe.maxWidth;Un>0?typeof Fe=="string"?Fe=this.splitTextToSize(Fe,Un):Object.prototype.toString.call(Fe)==="[object Array]"&&(Fe=Fe.reduce(function(Hi,lr){return Hi.concat(gi.splitTextToSize(lr,Un))},[])):Fe=Array.isArray(Fe)?Fe:[Fe];for(var Ai=0;Ai<Fe.length;Ai++)He<(Yn=this.getStringUnitWidth(Fe[Ai],{font:gn})*pn)&&(He=Yn);return He!==0&&(ci=Fe.length),{w:He/=Nn,h:Math.max((ci*pn*this.getLineHeightFactor()-pn*(this.getLineHeightFactor()-1))/Nn,0)}},Et.cellAddPage=function(){Rt.call(this),this.addPage();var Fe=this.internal.__cell__.margins||xt;return this.internal.__cell__.lastCell=new Zt(Fe.left,Fe.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var pe=Et.cell=function(){var Fe;Fe=arguments[0]instanceof Zt?arguments[0]:new Zt(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Rt.call(this);var Xe=this.internal.__cell__.lastCell,pn=this.internal.__cell__.padding,gn=this.internal.__cell__.margins||xt,Nn=this.internal.__cell__.tableHeaderRow,He=this.internal.__cell__.printHeaders;return Xe.lineNumber!==void 0&&(Xe.lineNumber===Fe.lineNumber?(Fe.x=(Xe.x||0)+(Xe.width||0),Fe.y=Xe.y||0):Xe.y+Xe.height+Fe.height+gn.bottom>this.getPageHeight()?(this.cellAddPage(),Fe.y=gn.top,He&&Nn&&(this.printHeaderRow(Fe.lineNumber,!0),Fe.y+=Nn[0].height)):Fe.y=Xe.y+Xe.height||Fe.y),Fe.text[0]!==void 0&&(this.rect(Fe.x,Fe.y,Fe.width,Fe.height,Lt===!0?"FD":void 0),Fe.align==="right"?this.text(Fe.text,Fe.x+Fe.width-pn,Fe.y+pn,{align:"right",baseline:"top"}):Fe.align==="center"?this.text(Fe.text,Fe.x+Fe.width/2,Fe.y+pn,{align:"center",baseline:"top",maxWidth:Fe.width-pn-pn}):this.text(Fe.text,Fe.x+pn,Fe.y+pn,{align:"left",baseline:"top",maxWidth:Fe.width-pn-pn})),this.internal.__cell__.lastCell=Fe,this};Et.table=function(Fe,Xe,pn,gn,Nn){if(Rt.call(this),!pn)throw new Error("No data for PDF table.");var He,ci,Yn,gi,Un=[],Ai=[],Hi=[],lr={},Ir={},io=[],mr=[],Ti=(Nn=Nn||{}).autoSize||!1,Br=Nn.printHeaders!==!1,Wr=Nn.css&&Nn.css["font-size"]!==void 0?16*Nn.css["font-size"]:Nn.fontSize||12,Qn=Nn.margins||Object.assign({width:this.getPageWidth()},xt),$n=typeof Nn.padding=="number"?Nn.padding:3,Zi=Nn.headerBackgroundColor||"#c8c8c8",ge=Nn.headerTextColor||"#000";if(se.call(this),this.internal.__cell__.printHeaders=Br,this.internal.__cell__.margins=Qn,this.internal.__cell__.table_font_size=Wr,this.internal.__cell__.padding=$n,this.internal.__cell__.headerBackgroundColor=Zi,this.internal.__cell__.headerTextColor=ge,this.setFontSize(Wr),gn==null)Ai=Un=Object.keys(pn[0]),Hi=Un.map(function(){return"left"});else if(Array.isArray(gn)&&(0,Ft.Z)(gn[0])==="object")for(Un=gn.map(function(Tn){return Tn.name}),Ai=gn.map(function(Tn){return Tn.prompt||Tn.name||""}),Hi=gn.map(function(Tn){return Tn.align||"left"}),He=0;He<gn.length;He+=1)Ir[gn[He].name]=gn[He].width*(19.049976/25.4);else Array.isArray(gn)&&typeof gn[0]=="string"&&(Ai=Un=gn,Hi=Un.map(function(){return"left"}));if(Ti||Array.isArray(gn)&&typeof gn[0]=="string")for(He=0;He<Un.length;He+=1){for(lr[gi=Un[He]]=pn.map(function(Tn){return Tn[gi]}),this.setFont(void 0,"bold"),io.push(this.getTextDimensions(Ai[He],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),ci=lr[gi],this.setFont(void 0,"normal"),Yn=0;Yn<ci.length;Yn+=1)io.push(this.getTextDimensions(ci[Yn],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ir[gi]=Math.max.apply(null,io)+$n+$n,io=[]}if(Br){var Ce={};for(He=0;He<Un.length;He+=1)Ce[Un[He]]={},Ce[Un[He]].text=Ai[He],Ce[Un[He]].align=Hi[He];var Ve=ye.call(this,Ce,Ir);mr=Un.map(function(Tn){return new Zt(Fe,Xe,Ir[Tn],Ve,Ce[Tn].text,void 0,Ce[Tn].align)}),this.setTableHeaderRow(mr),this.printHeaderRow(1,!1)}var en=gn.reduce(function(Tn,Xn){return Tn[Xn.name]=Xn.align,Tn},{});for(He=0;He<pn.length;He+=1){"rowStart"in Nn&&Nn.rowStart instanceof Function&&Nn.rowStart({row:He,data:pn[He]},this);var un=ye.call(this,pn[He],Ir);for(Yn=0;Yn<Un.length;Yn+=1){var hn=pn[He][Un[Yn]];"cellStart"in Nn&&Nn.cellStart instanceof Function&&Nn.cellStart({row:He,col:Yn,data:hn},this),pe.call(this,new Zt(Fe,Xe,Ir[Un[Yn]],un,hn,He+2,en[Un[Yn]]))}}return this.internal.__cell__.table_x=Fe,this.internal.__cell__.table_y=Xe,this};var ye=function(Fe,Xe){var pn=this.internal.__cell__.padding,gn=this.internal.__cell__.table_font_size,Nn=this.internal.scaleFactor;return Object.keys(Fe).map(function(He){var ci=Fe[He];return this.splitTextToSize(ci.hasOwnProperty("text")?ci.text:ci,Xe[He]-pn-pn)},this).map(function(He){return this.getLineHeightFactor()*He.length*gn/Nn+pn+pn},this).reduce(function(He,ci){return Math.max(He,ci)},0)};Et.setTableHeaderRow=function(Fe){Rt.call(this),this.internal.__cell__.tableHeaderRow=Fe},Et.printHeaderRow=function(Fe,Xe){if(Rt.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var pn;if(Lt=!0,typeof this.internal.__cell__.headerFunction=="function"){var gn=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Zt(gn[0],gn[1],gn[2],gn[3],void 0,-1)}this.setFont(void 0,"bold");for(var Nn=[],He=0;He<this.internal.__cell__.tableHeaderRow.length;He+=1){pn=this.internal.__cell__.tableHeaderRow[He].clone(),Xe&&(pn.y=this.internal.__cell__.margins.top||0,Nn.push(pn)),pn.lineNumber=Fe;var ci=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),pe.call(this,pn),this.setTextColor(ci)}Nn.length>0&&this.setTableHeaderRow(Nn),this.setFont(void 0,"normal"),Lt=!1}}(Qo.API);var hh={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dh=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ga=zu(dh),ih=[100,200,300,400,500,600,700,800,900],Ec=zu(ih);function Vc(Et){var xt=Et.family.replace(/"|'/g,"").toLowerCase(),Lt=function(Zt){return hh[Zt=Zt||"normal"]?Zt:"normal"}(Et.style),Rt=function(Zt){if(!Zt)return 400;if(typeof Zt=="number")return Zt>=100&&Zt<=900&&Zt%100==0?Zt:400;if(/^\d00$/.test(Zt))return parseInt(Zt);switch(Zt){case"bold":return 700;case"normal":default:return 400}}(Et.weight),se=function(Zt){return typeof Ga[Zt=Zt||"normal"]=="number"?Zt:"normal"}(Et.stretch);return{family:xt,style:Lt,weight:Rt,stretch:se,src:Et.src||[],ref:Et.ref||{name:xt,style:[se,Lt,Rt].join(" ")}}}function Zc(Et,xt,Lt,Rt){var se;for(se=Lt;se>=0&&se<xt.length;se+=Rt)if(Et[xt[se]])return Et[xt[se]];for(se=Lt;se>=0&&se<xt.length;se-=Rt)if(Et[xt[se]])return Et[xt[se]]}var Bs={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ya={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Mu(Et){return[Et.stretch,Et.style,Et.weight,Et.family].join(" ")}function el(Et,xt,Lt){for(var Rt=(Lt=Lt||{}).defaultFontFamily||"times",se=Object.assign({},Bs,Lt.genericFontFamilies||{}),Zt=null,pe=null,ye=0;ye<xt.length;++ye)if(se[(Zt=Vc(xt[ye])).family]&&(Zt.family=se[Zt.family]),Et.hasOwnProperty(Zt.family)){pe=Et[Zt.family];break}if(!(pe=pe||Et[Rt]))throw new Error("Could not find a font-family for the rule '"+Mu(Zt)+"' and default family '"+Rt+"'.");if(pe=function(Fe,Xe){if(Xe[Fe])return Xe[Fe];var pn=Ga[Fe],gn=pn<=Ga.normal?-1:1,Nn=Zc(Xe,dh,pn,gn);if(!Nn)throw new Error("Could not find a matching font-stretch value for "+Fe);return Nn}(Zt.stretch,pe),pe=function(Fe,Xe){if(Xe[Fe])return Xe[Fe];for(var pn=hh[Fe],gn=0;gn<pn.length;++gn)if(Xe[pn[gn]])return Xe[pn[gn]];throw new Error("Could not find a matching font-style for "+Fe)}(Zt.style,pe),!(pe=function(Fe,Xe){if(Xe[Fe])return Xe[Fe];if(Fe===400&&Xe[500])return Xe[500];if(Fe===500&&Xe[400])return Xe[400];var pn=Ec[Fe],gn=Zc(Xe,ih,pn,Fe<400?-1:1);if(!gn)throw new Error("Could not find a matching font-weight for value "+Fe);return gn}(Zt.weight,pe)))throw new Error("Failed to resolve a font for the rule '"+Mu(Zt)+"'.");return pe}function ll(Et){return Et.trimLeft()}function Wa(Et,xt){for(var Lt=0;Lt<Et.length;){if(Et.charAt(Lt)===xt)return[Et.substring(0,Lt),Et.substring(Lt+1)];Lt+=1}return null}function Aa(Et){var xt=Et.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return xt===null?null:[xt[0],Et.substring(xt[0].length)]}var nl,Dl,Ac,rh=["times"];(function(Et){var xt,Lt,Rt,se,Zt,pe,ye,Fe,Xe,pn=function(Te){return Te=Te||{},this.isStrokeTransparent=Te.isStrokeTransparent||!1,this.strokeOpacity=Te.strokeOpacity||1,this.strokeStyle=Te.strokeStyle||"#000000",this.fillStyle=Te.fillStyle||"#000000",this.isFillTransparent=Te.isFillTransparent||!1,this.fillOpacity=Te.fillOpacity||1,this.font=Te.font||"10px sans-serif",this.textBaseline=Te.textBaseline||"alphabetic",this.textAlign=Te.textAlign||"left",this.lineWidth=Te.lineWidth||1,this.lineJoin=Te.lineJoin||"miter",this.lineCap=Te.lineCap||"butt",this.path=Te.path||[],this.transform=Te.transform!==void 0?Te.transform.clone():new Fe,this.globalCompositeOperation=Te.globalCompositeOperation||"normal",this.globalAlpha=Te.globalAlpha||1,this.clip_path=Te.clip_path||[],this.currentPoint=Te.currentPoint||new pe,this.miterLimit=Te.miterLimit||10,this.lastPoint=Te.lastPoint||new pe,this.lineDashOffset=Te.lineDashOffset||0,this.lineDash=Te.lineDash||[],this.margin=Te.margin||[0,0,0,0],this.prevPageLastElemOffset=Te.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Te.ignoreClearRect!="boolean"||Te.ignoreClearRect,this};Et.events.push(["initialized",function(){this.context2d=new gn(this),xt=this.internal.f2,Lt=this.internal.getCoordinateString,Rt=this.internal.getVerticalCoordinateString,se=this.internal.getHorizontalCoordinate,Zt=this.internal.getVerticalCoordinate,pe=this.internal.Point,ye=this.internal.Rectangle,Fe=this.internal.Matrix,Xe=new pn}]);var gn=function(Te){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var ln=Te;Object.defineProperty(this,"pdf",{get:function(){return ln}});var vn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return vn},set:function(Xi){vn=!!Xi}});var En=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return En},set:function(Xi){En=!!Xi}});var Vn=0;Object.defineProperty(this,"posX",{get:function(){return Vn},set:function(Xi){isNaN(Xi)||(Vn=Xi)}});var li=0;Object.defineProperty(this,"posY",{get:function(){return li},set:function(Xi){isNaN(Xi)||(li=Xi)}}),Object.defineProperty(this,"margin",{get:function(){return Xe.margin},set:function(Xi){var _n;typeof Xi=="number"?_n=[Xi,Xi,Xi,Xi]:((_n=new Array(4))[0]=Xi[0],_n[1]=Xi.length>=2?Xi[1]:_n[0],_n[2]=Xi.length>=3?Xi[2]:_n[0],_n[3]=Xi.length>=4?Xi[3]:_n[1]),Xe.margin=_n}});var oi=!1;Object.defineProperty(this,"autoPaging",{get:function(){return oi},set:function(Xi){oi=Xi}});var Ei=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ei},set:function(Xi){Ei=Xi}});var Ii=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ii},set:function(Xi){Ii=Xi}}),Object.defineProperty(this,"ctx",{get:function(){return Xe},set:function(Xi){Xi instanceof pn&&(Xe=Xi)}}),Object.defineProperty(this,"path",{get:function(){return Xe.path},set:function(Xi){Xe.path=Xi}});var $i=[];Object.defineProperty(this,"ctxStack",{get:function(){return $i},set:function(Xi){$i=Xi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Xi){var _n;_n=Nn(Xi),this.ctx.fillStyle=_n.style,this.ctx.isFillTransparent=_n.a===0,this.ctx.fillOpacity=_n.a,this.pdf.setFillColor(_n.r,_n.g,_n.b,{a:_n.a}),this.pdf.setTextColor(_n.r,_n.g,_n.b,{a:_n.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Xi){var _n=Nn(Xi);this.ctx.strokeStyle=_n.style,this.ctx.isStrokeTransparent=_n.a===0,this.ctx.strokeOpacity=_n.a,_n.a===0?this.pdf.setDrawColor(255,255,255):(_n.a,this.pdf.setDrawColor(_n.r,_n.g,_n.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Xi){["butt","round","square"].indexOf(Xi)!==-1&&(this.ctx.lineCap=Xi,this.pdf.setLineCap(Xi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Xi){isNaN(Xi)||(this.ctx.lineWidth=Xi,this.pdf.setLineWidth(Xi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Xi){["bevel","round","miter"].indexOf(Xi)!==-1&&(this.ctx.lineJoin=Xi,this.pdf.setLineJoin(Xi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Xi){isNaN(Xi)||(this.ctx.miterLimit=Xi,this.pdf.setMiterLimit(Xi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Xi){this.ctx.textBaseline=Xi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Xi){["right","end","center","left","start"].indexOf(Xi)!==-1&&(this.ctx.textAlign=Xi)}});var sr=null;function Ar(Xi,_n){if(sr===null){var oo=function(lo){var ir=[];return Object.keys(lo).forEach(function(yr){lo[yr].forEach(function(fr){var nr=null;switch(fr){case"bold":nr={family:yr,weight:"bold"};break;case"italic":nr={family:yr,style:"italic"};break;case"bolditalic":nr={family:yr,weight:"bold",style:"italic"};break;case"":case"normal":nr={family:yr}}nr!==null&&(nr.ref={name:yr,style:fr},ir.push(nr))})}),ir}(Xi.getFontList());sr=function(lo){for(var ir={},yr=0;yr<lo.length;++yr){var fr=Vc(lo[yr]),nr=fr.family,Or=fr.stretch,uo=fr.style,So=fr.weight;ir[nr]=ir[nr]||{},ir[nr][Or]=ir[nr][Or]||{},ir[nr][Or][uo]=ir[nr][Or][uo]||{},ir[nr][Or][uo][So]=fr}return ir}(oo.concat(_n))}return sr}var Jr=null;Object.defineProperty(this,"fontFaces",{get:function(){return Jr},set:function(Xi){sr=null,Jr=Xi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Xi){var _n;if(this.ctx.font=Xi,(_n=/^\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(Xi))!==null){var oo=_n[1];_n[2];var lo=_n[3],ir=_n[4];_n[5];var yr=_n[6],fr=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ir)[2];ir=Math.floor(fr==="px"?parseFloat(ir)*this.pdf.internal.scaleFactor:fr==="em"?parseFloat(ir)*this.pdf.getFontSize():parseFloat(ir)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ir);var nr=function(Mo){var hs,ho,Pa=[],Os=Mo.trim();if(Os==="")return rh;if(Os in ya)return[ya[Os]];for(;Os!=="";){switch(ho=null,hs=(Os=ll(Os)).charAt(0)){case'"':case"'":ho=Wa(Os.substring(1),hs);break;default:ho=Aa(Os)}if(ho===null||(Pa.push(ho[0]),(Os=ll(ho[1]))!==""&&Os.charAt(0)!==","))return rh;Os=Os.replace(/^,/,"")}return Pa}(yr);if(this.fontFaces){var Or=el(Ar(this.pdf,this.fontFaces),nr.map(function(Mo){return{family:Mo,stretch:"normal",weight:lo,style:oo}}));this.pdf.setFont(Or.ref.name,Or.ref.style)}else{var uo="";(lo==="bold"||parseInt(lo,10)>=700||oo==="bold")&&(uo="bold"),oo==="italic"&&(uo+="italic"),uo.length===0&&(uo="normal");for(var So="",Fo={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"},zr=0;zr<nr.length;zr++){if(this.pdf.internal.getFont(nr[zr],uo,{noFallback:!0,disableWarning:!0})!==void 0){So=nr[zr];break}if(uo==="bolditalic"&&this.pdf.internal.getFont(nr[zr],"bold",{noFallback:!0,disableWarning:!0})!==void 0)So=nr[zr],uo="bold";else if(this.pdf.internal.getFont(nr[zr],"normal",{noFallback:!0,disableWarning:!0})!==void 0){So=nr[zr],uo="normal";break}}if(So===""){for(var Vo=0;Vo<nr.length;Vo++)if(Fo[nr[Vo]]){So=Fo[nr[Vo]];break}}So=So===""?"Times":So,this.pdf.setFont(So,uo)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Xi){this.ctx.globalCompositeOperation=Xi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Xi){this.ctx.globalAlpha=Xi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Xi){this.ctx.lineDashOffset=Xi,Xn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Xi){this.ctx.lineDash=Xi,Xn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Xi){this.ctx.ignoreClearRect=!!Xi}})};gn.prototype.setLineDash=function(Te){this.lineDash=Te},gn.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},gn.prototype.fill=function(){lr.call(this,"fill",!1)},gn.prototype.stroke=function(){lr.call(this,"stroke",!1)},gn.prototype.beginPath=function(){this.path=[{type:"begin"}]},gn.prototype.moveTo=function(Te,ln){if(isNaN(Te)||isNaN(ln))throw Ho.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var vn=this.ctx.transform.applyToPoint(new pe(Te,ln));this.path.push({type:"mt",x:vn.x,y:vn.y}),this.ctx.lastPoint=new pe(Te,ln)},gn.prototype.closePath=function(){var Te=new pe(0,0),ln=0;for(ln=this.path.length-1;ln!==-1;ln--)if(this.path[ln].type==="begin"&&(0,Ft.Z)(this.path[ln+1])==="object"&&typeof this.path[ln+1].x=="number"){Te=new pe(this.path[ln+1].x,this.path[ln+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new pe(Te.x,Te.y)},gn.prototype.lineTo=function(Te,ln){if(isNaN(Te)||isNaN(ln))throw Ho.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var vn=this.ctx.transform.applyToPoint(new pe(Te,ln));this.path.push({type:"lt",x:vn.x,y:vn.y}),this.ctx.lastPoint=new pe(vn.x,vn.y)},gn.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),lr.call(this,null,!0)},gn.prototype.quadraticCurveTo=function(Te,ln,vn,En){if(isNaN(vn)||isNaN(En)||isNaN(Te)||isNaN(ln))throw Ho.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Vn=this.ctx.transform.applyToPoint(new pe(vn,En)),li=this.ctx.transform.applyToPoint(new pe(Te,ln));this.path.push({type:"qct",x1:li.x,y1:li.y,x:Vn.x,y:Vn.y}),this.ctx.lastPoint=new pe(Vn.x,Vn.y)},gn.prototype.bezierCurveTo=function(Te,ln,vn,En,Vn,li){if(isNaN(Vn)||isNaN(li)||isNaN(Te)||isNaN(ln)||isNaN(vn)||isNaN(En))throw Ho.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var oi=this.ctx.transform.applyToPoint(new pe(Vn,li)),Ei=this.ctx.transform.applyToPoint(new pe(Te,ln)),Ii=this.ctx.transform.applyToPoint(new pe(vn,En));this.path.push({type:"bct",x1:Ei.x,y1:Ei.y,x2:Ii.x,y2:Ii.y,x:oi.x,y:oi.y}),this.ctx.lastPoint=new pe(oi.x,oi.y)},gn.prototype.arc=function(Te,ln,vn,En,Vn,li){if(isNaN(Te)||isNaN(ln)||isNaN(vn)||isNaN(En)||isNaN(Vn))throw Ho.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(li=!!li,!this.ctx.transform.isIdentity){var oi=this.ctx.transform.applyToPoint(new pe(Te,ln));Te=oi.x,ln=oi.y;var Ei=this.ctx.transform.applyToPoint(new pe(0,vn)),Ii=this.ctx.transform.applyToPoint(new pe(0,0));vn=Math.sqrt(Math.pow(Ei.x-Ii.x,2)+Math.pow(Ei.y-Ii.y,2))}Math.abs(Vn-En)>=2*Math.PI&&(En=0,Vn=2*Math.PI),this.path.push({type:"arc",x:Te,y:ln,radius:vn,startAngle:En,endAngle:Vn,counterclockwise:li})},gn.prototype.arcTo=function(Te,ln,vn,En,Vn){throw new Error("arcTo not implemented.")},gn.prototype.rect=function(Te,ln,vn,En){if(isNaN(Te)||isNaN(ln)||isNaN(vn)||isNaN(En))throw Ho.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Te,ln),this.lineTo(Te+vn,ln),this.lineTo(Te+vn,ln+En),this.lineTo(Te,ln+En),this.lineTo(Te,ln),this.lineTo(Te+vn,ln),this.lineTo(Te,ln)},gn.prototype.fillRect=function(Te,ln,vn,En){if(isNaN(Te)||isNaN(ln)||isNaN(vn)||isNaN(En))throw Ho.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!He.call(this)){var Vn={};this.lineCap!=="butt"&&(Vn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Vn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Te,ln,vn,En),this.fill(),Vn.hasOwnProperty("lineCap")&&(this.lineCap=Vn.lineCap),Vn.hasOwnProperty("lineJoin")&&(this.lineJoin=Vn.lineJoin)}},gn.prototype.strokeRect=function(Te,ln,vn,En){if(isNaN(Te)||isNaN(ln)||isNaN(vn)||isNaN(En))throw Ho.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");ci.call(this)||(this.beginPath(),this.rect(Te,ln,vn,En),this.stroke())},gn.prototype.clearRect=function(Te,ln,vn,En){if(isNaN(Te)||isNaN(ln)||isNaN(vn)||isNaN(En))throw Ho.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Te,ln,vn,En))},gn.prototype.save=function(Te){Te=typeof Te!="boolean"||Te;for(var ln=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(ln),Te){this.ctx.fontSize=this.pdf.internal.getFontSize();var En=new pn(this.ctx);this.ctxStack.push(this.ctx),this.ctx=En}},gn.prototype.restore=function(Te){Te=typeof Te!="boolean"||Te;for(var ln=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(ln),Te&&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 Nn=function(Te){var ln,vn,En,Vn;if(Te.isCanvasGradient===!0&&(Te=Te.getColor()),!Te)return{r:0,g:0,b:0,a:0,style:Te};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Te))ln=0,vn=0,En=0,Vn=0;else{var li=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Te);if(li!==null)ln=parseInt(li[1]),vn=parseInt(li[2]),En=parseInt(li[3]),Vn=1;else if((li=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Te))!==null)ln=parseInt(li[1]),vn=parseInt(li[2]),En=parseInt(li[3]),Vn=parseFloat(li[4]);else{if(Vn=1,typeof Te=="string"&&Te.charAt(0)!=="#"){var oi=new si(Te);Te=oi.ok?oi.toHex():"#000000"}Te.length===4?(ln=Te.substring(1,2),ln+=ln,vn=Te.substring(2,3),vn+=vn,En=Te.substring(3,4),En+=En):(ln=Te.substring(1,3),vn=Te.substring(3,5),En=Te.substring(5,7)),ln=parseInt(ln,16),vn=parseInt(vn,16),En=parseInt(En,16)}}return{r:ln,g:vn,b:En,a:Vn,style:Te}},He=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},ci=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};gn.prototype.fillText=function(Te,ln,vn,En){if(isNaN(ln)||isNaN(vn)||typeof Te!="string")throw Ho.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(En=isNaN(En)?void 0:En,!He.call(this)){var Vn=un(this.ctx.transform.rotation),li=this.ctx.transform.scaleX;$n.call(this,{text:Te,x:ln,y:vn,scale:li,angle:Vn,align:this.textAlign,maxWidth:En})}},gn.prototype.strokeText=function(Te,ln,vn,En){if(isNaN(ln)||isNaN(vn)||typeof Te!="string")throw Ho.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!ci.call(this)){En=isNaN(En)?void 0:En;var Vn=un(this.ctx.transform.rotation),li=this.ctx.transform.scaleX;$n.call(this,{text:Te,x:ln,y:vn,scale:li,renderingMode:"stroke",angle:Vn,align:this.textAlign,maxWidth:En})}},gn.prototype.measureText=function(Te){if(typeof Te!="string")throw Ho.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var ln=this.pdf,vn=this.pdf.internal.scaleFactor,En=ln.internal.getFontSize(),Vn=ln.getStringUnitWidth(Te)*En/ln.internal.scaleFactor,li=function(oi){var Ei=(oi=oi||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ei}}),this};return new li({width:Vn*=Math.round(96*vn/72*1e4)/1e4})},gn.prototype.scale=function(Te,ln){if(isNaN(Te)||isNaN(ln))throw Ho.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var vn=new Fe(Te,0,0,ln,0,0);this.ctx.transform=this.ctx.transform.multiply(vn)},gn.prototype.rotate=function(Te){if(isNaN(Te))throw Ho.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var ln=new Fe(Math.cos(Te),Math.sin(Te),-Math.sin(Te),Math.cos(Te),0,0);this.ctx.transform=this.ctx.transform.multiply(ln)},gn.prototype.translate=function(Te,ln){if(isNaN(Te)||isNaN(ln))throw Ho.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var vn=new Fe(1,0,0,1,Te,ln);this.ctx.transform=this.ctx.transform.multiply(vn)},gn.prototype.transform=function(Te,ln,vn,En,Vn,li){if(isNaN(Te)||isNaN(ln)||isNaN(vn)||isNaN(En)||isNaN(Vn)||isNaN(li))throw Ho.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var oi=new Fe(Te,ln,vn,En,Vn,li);this.ctx.transform=this.ctx.transform.multiply(oi)},gn.prototype.setTransform=function(Te,ln,vn,En,Vn,li){Te=isNaN(Te)?1:Te,ln=isNaN(ln)?0:ln,vn=isNaN(vn)?0:vn,En=isNaN(En)?1:En,Vn=isNaN(Vn)?0:Vn,li=isNaN(li)?0:li,this.ctx.transform=new Fe(Te,ln,vn,En,Vn,li)};var Yn=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};gn.prototype.drawImage=function(Te,ln,vn,En,Vn,li,oi,Ei,Ii){var $i=this.pdf.getImageProperties(Te),sr=1,Ar=1,Jr=1,Xi=1;En!==void 0&&Ei!==void 0&&(Jr=Ei/En,Xi=Ii/Vn,sr=$i.width/En*Ei/En,Ar=$i.height/Vn*Ii/Vn),li===void 0&&(li=ln,oi=vn,ln=0,vn=0),En!==void 0&&Ei===void 0&&(Ei=En,Ii=Vn),En===void 0&&Ei===void 0&&(Ei=$i.width,Ii=$i.height);for(var _n,oo=this.ctx.transform.decompose(),lo=un(oo.rotate.shx),ir=new Fe,yr=(ir=(ir=(ir=ir.multiply(oo.translate)).multiply(oo.skew)).multiply(oo.scale)).applyToRectangle(new ye(li-ln*Jr,oi-vn*Xi,En*sr,Vn*Ar)),fr=gi.call(this,yr),nr=[],Or=0;Or<fr.length;Or+=1)nr.indexOf(fr[Or])===-1&&nr.push(fr[Or]);if(Hi(nr),this.autoPaging)for(var uo=nr[0],So=nr[nr.length-1],Fo=uo;Fo<So+1;Fo++){this.pdf.setPage(Fo);var zr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Vo=Fo===1?this.posY+this.margin[0]:this.margin[0],Mo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],hs=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ho=Fo===1?0:Mo+(Fo-2)*hs;if(this.ctx.clip_path.length!==0){var Pa=this.path;_n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(_n,this.posX+this.margin[3],-ho+Vo+this.ctx.prevPageLastElemOffset),Ir.call(this,"fill",!0),this.path=Pa}var Os=JSON.parse(JSON.stringify(yr));Os=Ai([Os],this.posX+this.margin[3],-ho+Vo+this.ctx.prevPageLastElemOffset)[0];var Ps=(Fo>uo||Fo<So)&&Yn.call(this);Ps&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],zr,hs,null).clip().discardPath()),this.pdf.addImage(Te,"JPEG",Os.x,Os.y,Os.w,Os.h,null,null,lo),Ps&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Te,"JPEG",yr.x,yr.y,yr.w,yr.h,null,null,lo)};var gi=function(Te,ln,vn){var En=[];ln=ln||this.pdf.internal.pageSize.width,vn=vn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Vn=this.posY+this.ctx.prevPageLastElemOffset;switch(Te.type){default:case"mt":case"lt":En.push(Math.floor((Te.y+Vn)/vn)+1);break;case"arc":En.push(Math.floor((Te.y+Vn-Te.radius)/vn)+1),En.push(Math.floor((Te.y+Vn+Te.radius)/vn)+1);break;case"qct":var li=hn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Te.x1,Te.y1,Te.x,Te.y);En.push(Math.floor((li.y+Vn)/vn)+1),En.push(Math.floor((li.y+li.h+Vn)/vn)+1);break;case"bct":var oi=Tn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Te.x1,Te.y1,Te.x2,Te.y2,Te.x,Te.y);En.push(Math.floor((oi.y+Vn)/vn)+1),En.push(Math.floor((oi.y+oi.h+Vn)/vn)+1);break;case"rect":En.push(Math.floor((Te.y+Vn)/vn)+1),En.push(Math.floor((Te.y+Te.h+Vn)/vn)+1)}for(var Ei=0;Ei<En.length;Ei+=1)for(;this.pdf.internal.getNumberOfPages()<En[Ei];)Un.call(this);return En},Un=function(){var Te=this.fillStyle,ln=this.strokeStyle,vn=this.font,En=this.lineCap,Vn=this.lineWidth,li=this.lineJoin;this.pdf.addPage(),this.fillStyle=Te,this.strokeStyle=ln,this.font=vn,this.lineCap=En,this.lineWidth=Vn,this.lineJoin=li},Ai=function(Te,ln,vn){for(var En=0;En<Te.length;En++)switch(Te[En].type){case"bct":Te[En].x2+=ln,Te[En].y2+=vn;case"qct":Te[En].x1+=ln,Te[En].y1+=vn;case"mt":case"lt":case"arc":default:Te[En].x+=ln,Te[En].y+=vn}return Te},Hi=function(Te){return Te.sort(function(ln,vn){return ln-vn})},lr=function(Te,ln){for(var vn,En,Vn=this.fillStyle,li=this.strokeStyle,oi=this.lineCap,Ei=this.lineWidth,Ii=Math.abs(Ei*this.ctx.transform.scaleX),$i=this.lineJoin,sr=JSON.parse(JSON.stringify(this.path)),Ar=JSON.parse(JSON.stringify(this.path)),Jr=[],Xi=0;Xi<Ar.length;Xi++)if(Ar[Xi].x!==void 0)for(var _n=gi.call(this,Ar[Xi]),oo=0;oo<_n.length;oo+=1)Jr.indexOf(_n[oo])===-1&&Jr.push(_n[oo]);for(var lo=0;lo<Jr.length;lo++)for(;this.pdf.internal.getNumberOfPages()<Jr[lo];)Un.call(this);if(Hi(Jr),this.autoPaging)for(var ir=Jr[0],yr=Jr[Jr.length-1],fr=ir;fr<yr+1;fr++){this.pdf.setPage(fr),this.fillStyle=Vn,this.strokeStyle=li,this.lineCap=oi,this.lineWidth=Ii,this.lineJoin=$i;var nr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Or=fr===1?this.posY+this.margin[0]:this.margin[0],uo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],So=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Fo=fr===1?0:uo+(fr-2)*So;if(this.ctx.clip_path.length!==0){var zr=this.path;vn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(vn,this.posX+this.margin[3],-Fo+Or+this.ctx.prevPageLastElemOffset),Ir.call(this,Te,!0),this.path=zr}if(En=JSON.parse(JSON.stringify(sr)),this.path=Ai(En,this.posX+this.margin[3],-Fo+Or+this.ctx.prevPageLastElemOffset),ln===!1||fr===0){var Vo=(fr>ir||fr<yr)&&Yn.call(this);Vo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],nr,So,null).clip().discardPath()),Ir.call(this,Te,ln),Vo&&this.pdf.restoreGraphicsState()}this.lineWidth=Ei}else this.lineWidth=Ii,Ir.call(this,Te,ln),this.lineWidth=Ei;this.path=sr},Ir=function(Te,ln){if((Te!=="stroke"||ln||!ci.call(this))&&(Te==="stroke"||ln||!He.call(this))){for(var vn,En,Vn=[],li=this.path,oi=0;oi<li.length;oi++){var Ei=li[oi];switch(Ei.type){case"begin":Vn.push({begin:!0});break;case"close":Vn.push({close:!0});break;case"mt":Vn.push({start:Ei,deltas:[],abs:[]});break;case"lt":var Ii=Vn.length;if(li[oi-1]&&!isNaN(li[oi-1].x)&&(vn=[Ei.x-li[oi-1].x,Ei.y-li[oi-1].y],Ii>0)){for(;Ii>=0;Ii--)if(Vn[Ii-1].close!==!0&&Vn[Ii-1].begin!==!0){Vn[Ii-1].deltas.push(vn),Vn[Ii-1].abs.push(Ei);break}}break;case"bct":vn=[Ei.x1-li[oi-1].x,Ei.y1-li[oi-1].y,Ei.x2-li[oi-1].x,Ei.y2-li[oi-1].y,Ei.x-li[oi-1].x,Ei.y-li[oi-1].y],Vn[Vn.length-1].deltas.push(vn);break;case"qct":var $i=li[oi-1].x+2/3*(Ei.x1-li[oi-1].x),sr=li[oi-1].y+2/3*(Ei.y1-li[oi-1].y),Ar=Ei.x+2/3*(Ei.x1-Ei.x),Jr=Ei.y+2/3*(Ei.y1-Ei.y),Xi=Ei.x,_n=Ei.y;vn=[$i-li[oi-1].x,sr-li[oi-1].y,Ar-li[oi-1].x,Jr-li[oi-1].y,Xi-li[oi-1].x,_n-li[oi-1].y],Vn[Vn.length-1].deltas.push(vn);break;case"arc":Vn.push({deltas:[],abs:[],arc:!0}),Array.isArray(Vn[Vn.length-1].abs)&&Vn[Vn.length-1].abs.push(Ei)}}En=ln?null:Te==="stroke"?"stroke":"fill";for(var oo=!1,lo=0;lo<Vn.length;lo++)if(Vn[lo].arc)for(var ir=Vn[lo].abs,yr=0;yr<ir.length;yr++){var fr=ir[yr];fr.type==="arc"?Ti.call(this,fr.x,fr.y,fr.radius,fr.startAngle,fr.endAngle,fr.counterclockwise,void 0,ln,!oo):Zi.call(this,fr.x,fr.y),oo=!0}else if(Vn[lo].close===!0)this.pdf.internal.out("h"),oo=!1;else if(Vn[lo].begin!==!0){var nr=Vn[lo].start.x,Or=Vn[lo].start.y;ge.call(this,Vn[lo].deltas,nr,Or),oo=!0}En&&Br.call(this,En),ln&&Wr.call(this)}},io=function(Te){var ln=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,vn=ln*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Te-vn;case"top":return Te+ln-vn;case"hanging":return Te+ln-2*vn;case"middle":return Te+ln/2-vn;case"ideographic":return Te;case"alphabetic":default:return Te}},mr=function(Te){return Te+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};gn.prototype.createLinearGradient=function(){var Te=function(){};return Te.colorStops=[],Te.addColorStop=function(ln,vn){this.colorStops.push([ln,vn])},Te.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Te.isCanvasGradient=!0,Te},gn.prototype.createPattern=function(){return this.createLinearGradient()},gn.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ti=function(Te,ln,vn,En,Vn,li,oi,Ei,Ii){for(var $i=Ve.call(this,vn,En,Vn,li),sr=0;sr<$i.length;sr++){var Ar=$i[sr];sr===0&&(Ii?Qn.call(this,Ar.x1+Te,Ar.y1+ln):Zi.call(this,Ar.x1+Te,Ar.y1+ln)),Ce.call(this,Te,ln,Ar.x2,Ar.y2,Ar.x3,Ar.y3,Ar.x4,Ar.y4)}Ei?Wr.call(this):Br.call(this,oi)},Br=function(Te){switch(Te){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Wr=function(){this.pdf.clip(),this.pdf.discardPath()},Qn=function(Te,ln){this.pdf.internal.out(Lt(Te)+" "+Rt(ln)+" m")},$n=function(Te){var ln;switch(Te.align){case"right":case"end":ln="right";break;case"center":ln="center";break;case"left":case"start":default:ln="left"}var vn=this.pdf.getTextDimensions(Te.text),En=io.call(this,Te.y),Vn=mr.call(this,En)-vn.h,li=this.ctx.transform.applyToPoint(new pe(Te.x,En)),oi=this.ctx.transform.decompose(),Ei=new Fe;Ei=(Ei=(Ei=Ei.multiply(oi.translate)).multiply(oi.skew)).multiply(oi.scale);for(var Ii,$i,sr,Ar=this.ctx.transform.applyToRectangle(new ye(Te.x,En,vn.w,vn.h)),Jr=Ei.applyToRectangle(new ye(Te.x,Vn,vn.w,vn.h)),Xi=gi.call(this,Jr),_n=[],oo=0;oo<Xi.length;oo+=1)_n.indexOf(Xi[oo])===-1&&_n.push(Xi[oo]);if(Hi(_n),this.autoPaging)for(var lo=_n[0],ir=_n[_n.length-1],yr=lo;yr<ir+1;yr++){this.pdf.setPage(yr);var fr=yr===1?this.posY+this.margin[0]:this.margin[0],nr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Or=this.pdf.internal.pageSize.height-this.margin[2],uo=Or-this.margin[0],So=this.pdf.internal.pageSize.width-this.margin[1],Fo=So-this.margin[3],zr=yr===1?0:nr+(yr-2)*uo;if(this.ctx.clip_path.length!==0){var Vo=this.path;Ii=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Ai(Ii,this.posX+this.margin[3],-1*zr+fr),Ir.call(this,"fill",!0),this.path=Vo}var Mo=Ai([JSON.parse(JSON.stringify(Jr))],this.posX+this.margin[3],-zr+fr+this.ctx.prevPageLastElemOffset)[0];Te.scale>=.01&&($i=this.pdf.internal.getFontSize(),this.pdf.setFontSize($i*Te.scale),sr=this.lineWidth,this.lineWidth=sr*Te.scale);var hs=this.autoPaging!=="text";if(hs||Mo.y+Mo.h<=Or){if(hs||Mo.y>=fr&&Mo.x<=So){var ho=hs?Te.text:this.pdf.splitTextToSize(Te.text,Te.maxWidth||So-Mo.x)[0],Pa=Ai([JSON.parse(JSON.stringify(Ar))],this.posX+this.margin[3],-zr+fr+this.ctx.prevPageLastElemOffset)[0],Os=hs&&(yr>lo||yr<ir)&&Yn.call(this);Os&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Fo,uo,null).clip().discardPath()),this.pdf.text(ho,Pa.x,Pa.y,{angle:Te.angle,align:ln,renderingMode:Te.renderingMode}),Os&&this.pdf.restoreGraphicsState()}}else Mo.y<Or&&(this.ctx.prevPageLastElemOffset+=Or-Mo.y);Te.scale>=.01&&(this.pdf.setFontSize($i),this.lineWidth=sr)}else Te.scale>=.01&&($i=this.pdf.internal.getFontSize(),this.pdf.setFontSize($i*Te.scale),sr=this.lineWidth,this.lineWidth=sr*Te.scale),this.pdf.text(Te.text,li.x+this.posX,li.y+this.posY,{angle:Te.angle,align:ln,renderingMode:Te.renderingMode,maxWidth:Te.maxWidth}),Te.scale>=.01&&(this.pdf.setFontSize($i),this.lineWidth=sr)},Zi=function(Te,ln,vn,En){vn=vn||0,En=En||0,this.pdf.internal.out(Lt(Te+vn)+" "+Rt(ln+En)+" l")},ge=function(Te,ln,vn){return this.pdf.lines(Te,ln,vn,null,null)},Ce=function(Te,ln,vn,En,Vn,li,oi,Ei){this.pdf.internal.out([xt(se(vn+Te)),xt(Zt(En+ln)),xt(se(Vn+Te)),xt(Zt(li+ln)),xt(se(oi+Te)),xt(Zt(Ei+ln)),"c"].join(" "))},Ve=function(Te,ln,vn,En){for(var Vn=2*Math.PI,li=Math.PI/2;ln>vn;)ln-=Vn;var oi=Math.abs(vn-ln);oi<Vn&&En&&(oi=Vn-oi);for(var Ei=[],Ii=En?-1:1,$i=ln;oi>1e-5;){var sr=$i+Ii*Math.min(oi,li);Ei.push(en.call(this,Te,$i,sr)),oi-=Math.abs(sr-$i),$i=sr}return Ei},en=function(Te,ln,vn){var En=(vn-ln)/2,Vn=Te*Math.cos(En),li=Te*Math.sin(En),oi=Vn,Ei=-li,Ii=oi*oi+Ei*Ei,$i=Ii+oi*Vn+Ei*li,sr=4/3*(Math.sqrt(2*Ii*$i)-$i)/(oi*li-Ei*Vn),Ar=oi-sr*Ei,Jr=Ei+sr*oi,Xi=Ar,_n=-Jr,oo=En+ln,lo=Math.cos(oo),ir=Math.sin(oo);return{x1:Te*Math.cos(ln),y1:Te*Math.sin(ln),x2:Ar*lo-Jr*ir,y2:Ar*ir+Jr*lo,x3:Xi*lo-_n*ir,y3:Xi*ir+_n*lo,x4:Te*Math.cos(vn),y4:Te*Math.sin(vn)}},un=function(Te){return 180*Te/Math.PI},hn=function(Te,ln,vn,En,Vn,li){var oi=Te+.5*(vn-Te),Ei=ln+.5*(En-ln),Ii=Vn+.5*(vn-Vn),$i=li+.5*(En-li),sr=Math.min(Te,Vn,oi,Ii),Ar=Math.max(Te,Vn,oi,Ii),Jr=Math.min(ln,li,Ei,$i),Xi=Math.max(ln,li,Ei,$i);return new ye(sr,Jr,Ar-sr,Xi-Jr)},Tn=function(Te,ln,vn,En,Vn,li,oi,Ei){var Ii,$i,sr,Ar,Jr,Xi,_n,oo,lo,ir,yr,fr,nr,Or,uo=vn-Te,So=En-ln,Fo=Vn-vn,zr=li-En,Vo=oi-Vn,Mo=Ei-li;for($i=0;$i<41;$i++)lo=(_n=(sr=Te+(Ii=$i/40)*uo)+Ii*((Jr=vn+Ii*Fo)-sr))+Ii*(Jr+Ii*(Vn+Ii*Vo-Jr)-_n),ir=(oo=(Ar=ln+Ii*So)+Ii*((Xi=En+Ii*zr)-Ar))+Ii*(Xi+Ii*(li+Ii*Mo-Xi)-oo),$i==0?(yr=lo,fr=ir,nr=lo,Or=ir):(yr=Math.min(yr,lo),fr=Math.min(fr,ir),nr=Math.max(nr,lo),Or=Math.max(Or,ir));return new ye(Math.round(yr),Math.round(fr),Math.round(nr-yr),Math.round(Or-fr))},Xn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Te,ln,vn=(Te=this.ctx.lineDash,ln=this.ctx.lineDashOffset,JSON.stringify({lineDash:Te,lineDashOffset:ln}));this.prevLineDash!==vn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=vn)}}})(Qo.API),function(Et){var xt=function(Zt){var pe,ye,Fe,Xe,pn,gn,Nn,He,ci,Yn;for(/[^\x00-\xFF]/.test(Zt),ye=[],Fe=0,Xe=(Zt+=pe="\0\0\0\0".slice(Zt.length%4||4)).length;Xe>Fe;Fe+=4)(pn=(Zt.charCodeAt(Fe)<<24)+(Zt.charCodeAt(Fe+1)<<16)+(Zt.charCodeAt(Fe+2)<<8)+Zt.charCodeAt(Fe+3))!==0?(gn=(pn=((pn=((pn=((pn=(pn-(Yn=pn%85))/85)-(ci=pn%85))/85)-(He=pn%85))/85)-(Nn=pn%85))/85)%85,ye.push(gn+33,Nn+33,He+33,ci+33,Yn+33)):ye.push(122);return function(gi,Un){for(var Ai=Un;Ai>0;Ai--)gi.pop()}(ye,pe.length),String.fromCharCode.apply(String,ye)+"~>"},Lt=function(Zt){var pe,ye,Fe,Xe,pn,gn=String,Nn="length",He=255,ci="charCodeAt",Yn="slice",gi="replace";for(Zt[Yn](-2),Zt=Zt[Yn](0,-2)[gi](/\s/g,"")[gi]("z","!!!!!"),Fe=[],Xe=0,pn=(Zt+=pe="uuuuu"[Yn](Zt[Nn]%5||5))[Nn];pn>Xe;Xe+=5)ye=52200625*(Zt[ci](Xe)-33)+614125*(Zt[ci](Xe+1)-33)+7225*(Zt[ci](Xe+2)-33)+85*(Zt[ci](Xe+3)-33)+(Zt[ci](Xe+4)-33),Fe.push(He&ye>>24,He&ye>>16,He&ye>>8,He&ye);return function(Un,Ai){for(var Hi=Ai;Hi>0;Hi--)Un.pop()}(Fe,pe[Nn]),gn.fromCharCode.apply(gn,Fe)},Rt=function(Zt){var pe=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Zt=Zt.replace(/\s/g,"")).indexOf(">")!==-1&&(Zt=Zt.substr(0,Zt.indexOf(">"))),Zt.length%2&&(Zt+="0"),pe.test(Zt)===!1)return"";for(var ye="",Fe=0;Fe<Zt.length;Fe+=2)ye+=String.fromCharCode("0x"+(Zt[Fe]+Zt[Fe+1]));return ye},se=function(Zt){for(var pe=new Uint8Array(Zt.length),ye=Zt.length;ye--;)pe[ye]=Zt.charCodeAt(ye);return Zt=(pe=In(pe)).reduce(function(Fe,Xe){return Fe+String.fromCharCode(Xe)},"")};Et.processDataByFilters=function(Zt,pe){var ye=0,Fe=Zt||"",Xe=[];for(typeof(pe=pe||[])=="string"&&(pe=[pe]),ye=0;ye<pe.length;ye+=1)switch(pe[ye]){case"ASCII85Decode":case"/ASCII85Decode":Fe=Lt(Fe),Xe.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Fe=xt(Fe),Xe.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Fe=Rt(Fe),Xe.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Fe=Fe.split("").map(function(pn){return("0"+pn.charCodeAt().toString(16)).slice(-2)}).join("")+">",Xe.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Fe=se(Fe),Xe.push("/FlateDecode");break;default:throw new Error('The filter: "'+pe[ye]+'" is not implemented')}return{data:Fe,reverseChain:Xe.reverse().join(" ")}}}(Qo.API),function(Et){Et.loadFile=function(xt,Lt,Rt){return function(se,Zt,pe){Zt=Zt!==!1,pe=typeof pe=="function"?pe:function(){};var ye=void 0;try{ye=function(Fe,Xe,pn){var gn=new XMLHttpRequest,Nn=0,He=function(ci){var Yn=ci.length,gi=[],Un=String.fromCharCode;for(Nn=0;Nn<Yn;Nn+=1)gi.push(Un(255&ci.charCodeAt(Nn)));return gi.join("")};if(gn.open("GET",Fe,!Xe),gn.overrideMimeType("text/plain; charset=x-user-defined"),Xe===!1&&(gn.onload=function(){gn.status===200?pn(He(this.responseText)):pn(void 0)}),gn.send(null),Xe&&gn.status===200)return He(gn.responseText)}(se,Zt,pe)}catch(Fe){}return ye}(xt,Lt,Rt)},Et.loadImageFile=Et.loadFile}(Qo.API),function(Et){function xt(){return(_r.html2canvas?Promise.resolve(_r.html2canvas):Promise.resolve().then(bt.t.bind(bt,64270,23))).catch(function(pe){return Promise.reject(new Error("Could not load html2canvas: "+pe))}).then(function(pe){return pe.default?pe.default:pe})}function Lt(){return(_r.DOMPurify?Promise.resolve(_r.DOMPurify):bt.e(2125).then(bt.bind(bt,12125))).catch(function(pe){return Promise.reject(new Error("Could not load dompurify: "+pe))}).then(function(pe){return pe.default?pe.default:pe})}var Rt=function(pe){var ye=(0,Ft.Z)(pe);return ye==="undefined"?"undefined":ye==="string"||pe instanceof String?"string":ye==="number"||pe instanceof Number?"number":ye==="function"||pe instanceof Function?"function":pe&&pe.constructor===Array?"array":pe&&pe.nodeType===1?"element":ye==="object"?"object":"unknown"},se=function(pe,ye){var Fe=document.createElement(pe);for(var Xe in ye.className&&(Fe.className=ye.className),ye.innerHTML&&ye.dompurify&&(Fe.innerHTML=ye.dompurify.sanitize(ye.innerHTML)),ye.style)Fe.style[Xe]=ye.style[Xe];return Fe},Zt=function pe(ye){var Fe=Object.assign(pe.convert(Promise.resolve()),JSON.parse(JSON.stringify(pe.template))),Xe=pe.convert(Promise.resolve(),Fe);return Xe=(Xe=Xe.setProgress(1,pe,1,[pe])).set(ye)};(Zt.prototype=Object.create(Promise.prototype)).constructor=Zt,Zt.convert=function(pe,ye){return pe.__proto__=ye||Zt.prototype,pe},Zt.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"}},Zt.prototype.from=function(pe,ye){return this.then(function(){switch(ye=ye||function(Fe){switch(Rt(Fe)){case"string":return"string";case"element":return Fe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(pe)){case"string":return this.then(Lt).then(function(Fe){return this.set({src:se("div",{innerHTML:pe,dompurify:Fe})})});case"element":return this.set({src:pe});case"canvas":return this.set({canvas:pe});case"img":return this.set({img:pe});default:return this.error("Unknown source type.")}})},Zt.prototype.to=function(pe){switch(pe){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Zt.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var pe={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},ye=function Fe(Xe,pn){for(var gn=Xe.nodeType===3?document.createTextNode(Xe.nodeValue):Xe.cloneNode(!1),Nn=Xe.firstChild;Nn;Nn=Nn.nextSibling)pn!==!0&&Nn.nodeType===1&&Nn.nodeName==="SCRIPT"||gn.appendChild(Fe(Nn,pn));return Xe.nodeType===1&&(Xe.nodeName==="CANVAS"?(gn.width=Xe.width,gn.height=Xe.height,gn.getContext("2d").drawImage(Xe,0,0)):Xe.nodeName!=="TEXTAREA"&&Xe.nodeName!=="SELECT"||(gn.value=Xe.value),gn.addEventListener("load",function(){gn.scrollTop=Xe.scrollTop,gn.scrollLeft=Xe.scrollLeft},!0)),gn}(this.prop.src,this.opt.html2canvas.javascriptEnabled);ye.tagName==="BODY"&&(pe.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=se("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=se("div",{className:"html2pdf__container",style:pe}),this.prop.container.appendChild(ye),this.prop.container.firstChild.appendChild(se("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"})},Zt.prototype.toCanvas=function(){var pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(pe).then(xt).then(function(ye){var Fe=Object.assign({},this.opt.html2canvas);return delete Fe.onrendered,ye(this.prop.container,Fe)}).then(function(ye){(this.opt.html2canvas.onrendered||function(){})(ye),this.prop.canvas=ye,document.body.removeChild(this.prop.overlay)})},Zt.prototype.toContext2d=function(){var pe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(pe).then(xt).then(function(ye){var Fe=this.opt.jsPDF,Xe=this.opt.fontFaces,pn=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:pn,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,Fe.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Fe.context2d.posX=this.opt.x,Fe.context2d.posY=this.opt.y,Fe.context2d.margin=this.opt.margin,Fe.context2d.fontFaces=Xe,Xe)for(var Nn=0;Nn<Xe.length;++Nn){var He=Xe[Nn],ci=He.src.find(function(Yn){return Yn.format==="truetype"});ci&&Fe.addFont(ci.url,He.ref.name,He.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,Fe.context2d.save(!0),ye(this.prop.container,gn)}).then(function(ye){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(ye),this.prop.canvas=ye,document.body.removeChild(this.prop.overlay)})},Zt.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var pe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=pe})},Zt.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Zt.prototype.output=function(pe,ye,Fe){return(Fe=Fe||"pdf").toLowerCase()==="img"||Fe.toLowerCase()==="image"?this.outputImg(pe,ye):this.outputPdf(pe,ye)},Zt.prototype.outputPdf=function(pe,ye){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(pe,ye)})},Zt.prototype.outputImg=function(pe){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(pe){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+pe+'" is not supported.'}})},Zt.prototype.save=function(pe){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(pe?{filename:pe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Zt.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Zt.prototype.set=function(pe){if(Rt(pe)!=="object")return this;var ye=Object.keys(pe||{}).map(function(Fe){if(Fe in Zt.template.prop)return function(){this.prop[Fe]=pe[Fe]};switch(Fe){case"margin":return this.setMargin.bind(this,pe.margin);case"jsPDF":return function(){return this.opt.jsPDF=pe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,pe.pageSize);default:return function(){this.opt[Fe]=pe[Fe]}}},this);return this.then(function(){return this.thenList(ye)})},Zt.prototype.get=function(pe,ye){return this.then(function(){var Fe=pe in Zt.template.prop?this.prop[pe]:this.opt[pe];return ye?ye(Fe):Fe})},Zt.prototype.setMargin=function(pe){return this.then(function(){switch(Rt(pe)){case"number":pe=[pe,pe,pe,pe];case"array":if(pe.length===2&&(pe=[pe[0],pe[1],pe[0],pe[1]]),pe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=pe}).then(this.setPageSize)},Zt.prototype.setPageSize=function(pe){function ye(Fe,Xe){return Math.floor(Fe*Xe/72*96)}return this.then(function(){(pe=pe||Qo.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(pe.inner={width:pe.width-this.opt.margin[1]-this.opt.margin[3],height:pe.height-this.opt.margin[0]-this.opt.margin[2]},pe.inner.px={width:ye(pe.inner.width,pe.k),height:ye(pe.inner.height,pe.k)},pe.inner.ratio=pe.inner.height/pe.inner.width),this.prop.pageSize=pe})},Zt.prototype.setProgress=function(pe,ye,Fe,Xe){return pe!=null&&(this.progress.val=pe),ye!=null&&(this.progress.state=ye),Fe!=null&&(this.progress.n=Fe),Xe!=null&&(this.progress.stack=Xe),this.progress.ratio=this.progress.val/this.progress.state,this},Zt.prototype.updateProgress=function(pe,ye,Fe,Xe){return this.setProgress(pe?this.progress.val+pe:null,ye||null,Fe?this.progress.n+Fe:null,Xe?this.progress.stack.concat(Xe):null)},Zt.prototype.then=function(pe,ye){var Fe=this;return this.thenCore(pe,ye,function(Xe,pn){return Fe.updateProgress(null,null,1,[Xe]),Promise.prototype.then.call(this,function(gn){return Fe.updateProgress(null,Xe),gn}).then(Xe,pn).then(function(gn){return Fe.updateProgress(1),gn})})},Zt.prototype.thenCore=function(pe,ye,Fe){Fe=Fe||Promise.prototype.then,pe&&(pe=pe.bind(this)),ye&&(ye=ye.bind(this));var Xe=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Zt.convert(Object.assign({},this),Promise.prototype),pn=Fe.call(Xe,pe,ye);return Zt.convert(pn,this.__proto__)},Zt.prototype.thenExternal=function(pe,ye){return Promise.prototype.then.call(this,pe,ye)},Zt.prototype.thenList=function(pe){var ye=this;return pe.forEach(function(Fe){ye=ye.thenCore(Fe)}),ye},Zt.prototype.catch=function(pe){pe&&(pe=pe.bind(this));var ye=Promise.prototype.catch.call(this,pe);return Zt.convert(ye,this)},Zt.prototype.catchExternal=function(pe){return Promise.prototype.catch.call(this,pe)},Zt.prototype.error=function(pe){return this.then(function(){throw new Error(pe)})},Zt.prototype.using=Zt.prototype.set,Zt.prototype.saveAs=Zt.prototype.save,Zt.prototype.export=Zt.prototype.output,Zt.prototype.run=Zt.prototype.then,Qo.getPageSize=function(pe,ye,Fe){if((0,Ft.Z)(pe)==="object"){var Xe=pe;pe=Xe.orientation,ye=Xe.unit||ye,Fe=Xe.format||Fe}ye=ye||"mm",Fe=Fe||"a4",pe=(""+(pe||"P")).toLowerCase();var pn,gn=(""+Fe).toLowerCase(),Nn={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(ye){case"pt":pn=1;break;case"mm":pn=72/25.4;break;case"cm":pn=72/2.54;break;case"in":pn=72;break;case"px":pn=.75;break;case"pc":case"em":pn=12;break;case"ex":pn=6;break;default:throw"Invalid unit: "+ye}var He,ci=0,Yn=0;if(Nn.hasOwnProperty(gn))ci=Nn[gn][1]/pn,Yn=Nn[gn][0]/pn;else try{ci=Fe[1],Yn=Fe[0]}catch(gi){throw new Error("Invalid format: "+Fe)}if(pe==="p"||pe==="portrait")pe="p",Yn>ci&&(He=Yn,Yn=ci,ci=He);else{if(pe!=="l"&&pe!=="landscape")throw"Invalid orientation: "+pe;pe="l",ci>Yn&&(He=Yn,Yn=ci,ci=He)}return{width:Yn,height:ci,unit:ye,k:pn,orientation:pe}},Et.html=function(pe,ye){(ye=ye||{}).callback=ye.callback||function(){},ye.html2canvas=ye.html2canvas||{},ye.html2canvas.canvas=ye.html2canvas.canvas||this.canvas,ye.jsPDF=ye.jsPDF||this,ye.fontFaces=ye.fontFaces?ye.fontFaces.map(Vc):null;var Fe=new Zt(ye);return ye.worker?Fe:Fe.from(pe).doCallback()}}(Qo.API),Qo.API.addJS=function(Et){return Ac=Et,this.internal.events.subscribe("postPutResources",function(){nl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(nl+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Dl=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ac+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){nl!==void 0&&Dl!==void 0&&this.internal.out("/Names <</JavaScript "+nl+" 0 R>>")}),this},function(Et){var xt;Et.events.push(["postPutResources",function(){var Lt=this,Rt=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var se=Lt.outline.render().split(/\r\n/),Zt=0;Zt<se.length;Zt++){var pe=se[Zt],ye=Rt.exec(pe);if(ye!=null){var Fe=ye[1];Lt.internal.newObjectDeferredBegin(Fe,!1)}Lt.internal.write(pe)}if(this.outline.createNamedDestinations){var Xe=this.internal.pages.length,pn=[];for(Zt=0;Zt<Xe;Zt++){var gn=Lt.internal.newObject();pn.push(gn);var Nn=Lt.internal.getPageInfo(Zt+1);Lt.internal.write("<< /D["+Nn.objId+" 0 R /XYZ null null null]>> endobj")}var He=Lt.internal.newObject();for(Lt.internal.write("<< /Names [ "),Zt=0;Zt<pn.length;Zt++)Lt.internal.write("(page_"+(Zt+1)+")"+pn[Zt]+" 0 R");Lt.internal.write(" ] >>","endobj"),xt=Lt.internal.newObject(),Lt.internal.write("<< /Dests "+He+" 0 R"),Lt.internal.write(">>","endobj")}}]),Et.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 "+xt+" 0 R"))}]),Et.events.push(["initialized",function(){var Lt=this;Lt.outline={createNamedDestinations:!1,root:{children:[]}},Lt.outline.add=function(Rt,se,Zt){var pe={title:se,options:Zt,children:[]};return Rt==null&&(Rt=this.root),Rt.children.push(pe),pe},Lt.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Lt,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Lt.outline.genIds_r=function(Rt){Rt.id=Lt.internal.newObjectDeferred();for(var se=0;se<Rt.children.length;se++)this.genIds_r(Rt.children[se])},Lt.outline.renderRoot=function(Rt){this.objStart(Rt),this.line("/Type /Outlines"),Rt.children.length>0&&(this.line("/First "+this.makeRef(Rt.children[0])),this.line("/Last "+this.makeRef(Rt.children[Rt.children.length-1]))),this.line("/Count "+this.count_r({count:0},Rt)),this.objEnd()},Lt.outline.renderItems=function(Rt){for(var se=this.ctx.pdf.internal.getVerticalCoordinateString,Zt=0;Zt<Rt.children.length;Zt++){var pe=Rt.children[Zt];this.objStart(pe),this.line("/Title "+this.makeString(pe.title)),this.line("/Parent "+this.makeRef(Rt)),Zt>0&&this.line("/Prev "+this.makeRef(Rt.children[Zt-1])),Zt<Rt.children.length-1&&this.line("/Next "+this.makeRef(Rt.children[Zt+1])),pe.children.length>0&&(this.line("/First "+this.makeRef(pe.children[0])),this.line("/Last "+this.makeRef(pe.children[pe.children.length-1])));var ye=this.count=this.count_r({count:0},pe);if(ye>0&&this.line("/Count "+ye),pe.options&&pe.options.pageNumber){var Fe=Lt.internal.getPageInfo(pe.options.pageNumber);this.line("/Dest ["+Fe.objId+" 0 R /XYZ 0 "+se(0)+" 0]")}this.objEnd()}for(var Xe=0;Xe<Rt.children.length;Xe++)this.renderItems(Rt.children[Xe])},Lt.outline.line=function(Rt){this.ctx.val+=Rt+`\r
`},Lt.outline.makeRef=function(Rt){return Rt.id+" 0 R"},Lt.outline.makeString=function(Rt){return"("+Lt.internal.pdfEscape(Rt)+")"},Lt.outline.objStart=function(Rt){this.ctx.val+=`\r
`+Rt.id+` 0 obj\r
<<\r
`},Lt.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},Lt.outline.count_r=function(Rt,se){for(var Zt=0;Zt<se.children.length;Zt++)Rt.count++,this.count_r(Rt,se.children[Zt]);return Rt.count}}])}(Qo.API),function(Et){var xt=[192,193,194,195,196,197,198,199];Et.processJPEG=function(Lt,Rt,se,Zt,pe,ye){var Fe,Xe=this.decode.DCT_DECODE,pn=null;if(typeof Lt=="string"||this.__addimage__.isArrayBuffer(Lt)||this.__addimage__.isArrayBufferView(Lt)){switch(Lt=pe||Lt,Lt=this.__addimage__.isArrayBuffer(Lt)?new Uint8Array(Lt):Lt,(Fe=function(gn){for(var Nn,He=256*gn.charCodeAt(4)+gn.charCodeAt(5),ci=gn.length,Yn={width:0,height:0,numcomponents:1},gi=4;gi<ci;gi+=2){if(gi+=He,xt.indexOf(gn.charCodeAt(gi+1))!==-1){Nn=256*gn.charCodeAt(gi+5)+gn.charCodeAt(gi+6),Yn={width:256*gn.charCodeAt(gi+7)+gn.charCodeAt(gi+8),height:Nn,numcomponents:gn.charCodeAt(gi+9)};break}He=256*gn.charCodeAt(gi+2)+gn.charCodeAt(gi+3)}return Yn}(Lt=this.__addimage__.isArrayBufferView(Lt)?this.__addimage__.arrayBufferToBinaryString(Lt):Lt)).numcomponents){case 1:ye=this.color_spaces.DEVICE_GRAY;break;case 4:ye=this.color_spaces.DEVICE_CMYK;break;case 3:ye=this.color_spaces.DEVICE_RGB}pn={data:Lt,width:Fe.width,height:Fe.height,colorSpace:ye,bitsPerComponent:8,filter:Xe,index:Rt,alias:se}}return pn}}(Qo.API);var cl,Ud,od,Ah,Ko,sA=function(){var Et,xt,Lt;function Rt(Zt){var pe,ye,Fe,Xe,pn,gn,Nn,He,ci,Yn,gi,Un,Ai,Hi;for(this.data=Zt,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},gn=null;;){switch(pe=this.readUInt32(),ci=function(){var lr,Ir;for(Ir=[],lr=0;lr<4;++lr)Ir.push(String.fromCharCode(this.data[this.pos++]));return Ir}.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(pe);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()},pn=this.readUInt16(),Xe=this.readUInt16()||100,gn.delay=1e3*pn/Xe,gn.disposeOp=this.data[this.pos++],gn.blendOp=this.data[this.pos++],gn.data=[];break;case"IDAT":case"fdAT":for(ci==="fdAT"&&(this.pos+=4,pe-=4),Zt=(gn!=null?gn.data:void 0)||this.imgData,Un=0;0<=pe?Un<pe:Un>pe;0<=pe?++Un:--Un)Zt.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Fe=this.palette.length/3,this.transparency.indexed=this.read(pe),this.transparency.indexed.length>Fe)throw new Error("More transparent colors than palette size");if((Yn=Fe-this.transparency.indexed.length)>0)for(Ai=0;0<=Yn?Ai<Yn:Ai>Yn;0<=Yn?++Ai:--Ai)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(pe)[0];break;case 2:this.transparency.rgb=this.read(pe)}break;case"tEXt":Nn=(gi=this.read(pe)).indexOf(0),He=String.fromCharCode.apply(String,gi.slice(0,Nn)),this.text[He]=String.fromCharCode.apply(String,gi.slice(Nn+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=(Hi=this.colorType)===4||Hi===6,ye=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*ye,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+=pe}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Rt.prototype.read=function(Zt){var pe,ye;for(ye=[],pe=0;0<=Zt?pe<Zt:pe>Zt;0<=Zt?++pe:--pe)ye.push(this.data[this.pos++]);return ye},Rt.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Rt.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Rt.prototype.decodePixels=function(Zt){var pe=this.pixelBitlength/8,ye=new Uint8Array(this.width*this.height*pe),Fe=0,Xe=this;if(Zt==null&&(Zt=this.imgData),Zt.length===0)return new Uint8Array(0);function pn(gn,Nn,He,ci){var Yn,gi,Un,Ai,Hi,lr,Ir,io,mr,Ti,Br,Wr,Qn,$n,Zi,ge,Ce,Ve,en,un,hn,Tn=Math.ceil((Xe.width-gn)/He),Xn=Math.ceil((Xe.height-Nn)/ci),Te=Xe.width==Tn&&Xe.height==Xn;for($n=pe*Tn,Wr=Te?ye:new Uint8Array($n*Xn),lr=Zt.length,Qn=0,gi=0;Qn<Xn&&Fe<lr;){switch(Zt[Fe++]){case 0:for(Ai=Ce=0;Ce<$n;Ai=Ce+=1)Wr[gi++]=Zt[Fe++];break;case 1:for(Ai=Ve=0;Ve<$n;Ai=Ve+=1)Yn=Zt[Fe++],Hi=Ai<pe?0:Wr[gi-pe],Wr[gi++]=(Yn+Hi)%256;break;case 2:for(Ai=en=0;en<$n;Ai=en+=1)Yn=Zt[Fe++],Un=(Ai-Ai%pe)/pe,Zi=Qn&&Wr[(Qn-1)*$n+Un*pe+Ai%pe],Wr[gi++]=(Zi+Yn)%256;break;case 3:for(Ai=un=0;un<$n;Ai=un+=1)Yn=Zt[Fe++],Un=(Ai-Ai%pe)/pe,Hi=Ai<pe?0:Wr[gi-pe],Zi=Qn&&Wr[(Qn-1)*$n+Un*pe+Ai%pe],Wr[gi++]=(Yn+Math.floor((Hi+Zi)/2))%256;break;case 4:for(Ai=hn=0;hn<$n;Ai=hn+=1)Yn=Zt[Fe++],Un=(Ai-Ai%pe)/pe,Hi=Ai<pe?0:Wr[gi-pe],Qn===0?Zi=ge=0:(Zi=Wr[(Qn-1)*$n+Un*pe+Ai%pe],ge=Un&&Wr[(Qn-1)*$n+(Un-1)*pe+Ai%pe]),Ir=Hi+Zi-ge,io=Math.abs(Ir-Hi),Ti=Math.abs(Ir-Zi),Br=Math.abs(Ir-ge),mr=io<=Ti&&io<=Br?Hi:Ti<=Br?Zi:ge,Wr[gi++]=(Yn+mr)%256;break;default:throw new Error("Invalid filter algorithm: "+Zt[Fe-1])}if(!Te){var ln=((Nn+Qn*ci)*Xe.width+gn)*pe,vn=Qn*$n;for(Ai=0;Ai<Tn;Ai+=1){for(var En=0;En<pe;En+=1)ye[ln++]=Wr[vn++];ln+=(He-1)*pe}}Qn++}}return Zt=fn(Zt),Xe.interlaceMethod==1?(pn(0,0,8,8),pn(4,0,8,8),pn(0,4,4,8),pn(2,0,4,4),pn(0,2,2,4),pn(1,0,2,2),pn(0,1,1,2)):pn(0,0,1,1),ye},Rt.prototype.decodePalette=function(){var Zt,pe,ye,Fe,Xe,pn,gn,Nn,He;for(ye=this.palette,pn=this.transparency.indexed||[],Xe=new Uint8Array((pn.length||0)+ye.length),Fe=0,Zt=0,pe=gn=0,Nn=ye.length;gn<Nn;pe=gn+=3)Xe[Fe++]=ye[pe],Xe[Fe++]=ye[pe+1],Xe[Fe++]=ye[pe+2],Xe[Fe++]=(He=pn[Zt++])!=null?He:255;return Xe},Rt.prototype.copyToImageData=function(Zt,pe){var ye,Fe,Xe,pn,gn,Nn,He,ci,Yn,gi,Un;if(Fe=this.colors,Yn=null,ye=this.hasAlphaChannel,this.palette.length&&(Yn=(Un=this._decodedPalette)!=null?Un:this._decodedPalette=this.decodePalette(),Fe=4,ye=!0),ci=(Xe=Zt.data||Zt).length,gn=Yn||pe,pn=Nn=0,Fe===1)for(;pn<ci;)He=Yn?4*pe[pn/4]:Nn,gi=gn[He++],Xe[pn++]=gi,Xe[pn++]=gi,Xe[pn++]=gi,Xe[pn++]=ye?gn[He++]:255,Nn=He;else for(;pn<ci;)He=Yn?4*pe[pn/4]:Nn,Xe[pn++]=gn[He++],Xe[pn++]=gn[He++],Xe[pn++]=gn[He++],Xe[pn++]=ye?gn[He++]:255,Nn=He},Rt.prototype.decode=function(){var Zt;return Zt=new Uint8Array(this.width*this.height*4),this.copyToImageData(Zt,this.decodePixels()),Zt};var se=function(){if(Object.prototype.toString.call(_r)==="[object Window]"){try{xt=_r.document.createElement("canvas"),Lt=xt.getContext("2d")}catch(Zt){return!1}return!0}return!1};return se(),Et=function(Zt){var pe;if(se()===!0)return Lt.width=Zt.width,Lt.height=Zt.height,Lt.clearRect(0,0,Zt.width,Zt.height),Lt.putImageData(Zt,0,0),(pe=new Image).src=xt.toDataURL(),pe;throw new Error("This method requires a Browser with Canvas-capability.")},Rt.prototype.decodeFrames=function(Zt){var pe,ye,Fe,Xe,pn,gn,Nn,He;if(this.animation){for(He=[],ye=pn=0,gn=(Nn=this.animation.frames).length;pn<gn;ye=++pn)pe=Nn[ye],Fe=Zt.createImageData(pe.width,pe.height),Xe=this.decodePixels(new Uint8Array(pe.data)),this.copyToImageData(Fe,Xe),pe.imageData=Fe,He.push(pe.image=Et(Fe));return He}},Rt.prototype.renderFrame=function(Zt,pe){var ye,Fe,Xe;return ye=(Fe=this.animation.frames)[pe],Xe=Fe[pe-1],pe===0&&Zt.clearRect(0,0,this.width,this.height),(Xe!=null?Xe.disposeOp:void 0)===1?Zt.clearRect(Xe.xOffset,Xe.yOffset,Xe.width,Xe.height):(Xe!=null?Xe.disposeOp:void 0)===2&&Zt.putImageData(Xe.imageData,Xe.xOffset,Xe.yOffset),ye.blendOp===0&&Zt.clearRect(ye.xOffset,ye.yOffset,ye.width,ye.height),Zt.drawImage(ye.image,ye.xOffset,ye.yOffset)},Rt.prototype.animate=function(Zt){var pe,ye,Fe,Xe,pn,gn,Nn=this;return ye=0,gn=this.animation,Xe=gn.numFrames,Fe=gn.frames,pn=gn.numPlays,(pe=function(){var He,ci;if(He=ye++%Xe,ci=Fe[He],Nn.renderFrame(Zt,He),Xe>1&&ye/Xe<pn)return Nn.animation._timeout=setTimeout(pe,ci.delay)})()},Rt.prototype.stopAnimation=function(){var Zt;return clearTimeout((Zt=this.animation)!=null?Zt._timeout:void 0)},Rt.prototype.render=function(Zt){var pe,ye;return Zt._png&&Zt._png.stopAnimation(),Zt._png=this,Zt.width=this.width,Zt.height=this.height,pe=Zt.getContext("2d"),this.animation?(this.decodeFrames(pe),this.animate(pe)):(ye=pe.createImageData(this.width,this.height),this.copyToImageData(ye,this.decodePixels()),pe.putImageData(ye,0,0))},Rt}();function bn(Et){var xt=0;if(Et[xt++]!==71||Et[xt++]!==73||Et[xt++]!==70||Et[xt++]!==56||(Et[xt++]+1&253)!=56||Et[xt++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Lt=Et[xt++]|Et[xt++]<<8,Rt=Et[xt++]|Et[xt++]<<8,se=Et[xt++],Zt=se>>7,pe=1<<(7&se)+1;Et[xt++],Et[xt++];var ye=null,Fe=null;Zt&&(ye=xt,Fe=pe,xt+=3*pe);var Xe=!0,pn=[],gn=0,Nn=null,He=0,ci=null;for(this.width=Lt,this.height=Rt;Xe&&xt<Et.length;)switch(Et[xt++]){case 33:switch(Et[xt++]){case 255:if(Et[xt]!==11||Et[xt+1]==78&&Et[xt+2]==69&&Et[xt+3]==84&&Et[xt+4]==83&&Et[xt+5]==67&&Et[xt+6]==65&&Et[xt+7]==80&&Et[xt+8]==69&&Et[xt+9]==50&&Et[xt+10]==46&&Et[xt+11]==48&&Et[xt+12]==3&&Et[xt+13]==1&&Et[xt+16]==0)xt+=14,ci=Et[xt++]|Et[xt++]<<8,xt++;else for(xt+=12;;){if(!((Qn=Et[xt++])>=0))throw Error("Invalid block size");if(Qn===0)break;xt+=Qn}break;case 249:if(Et[xt++]!==4||Et[xt+4]!==0)throw new Error("Invalid graphics extension block.");var Yn=Et[xt++];gn=Et[xt++]|Et[xt++]<<8,Nn=Et[xt++],!(1&Yn)&&(Nn=null),He=Yn>>2&7,xt++;break;case 254:for(;;){if(!((Qn=Et[xt++])>=0))throw Error("Invalid block size");if(Qn===0)break;xt+=Qn}break;default:throw new Error("Unknown graphic control label: 0x"+Et[xt-1].toString(16))}break;case 44:var gi=Et[xt++]|Et[xt++]<<8,Un=Et[xt++]|Et[xt++]<<8,Ai=Et[xt++]|Et[xt++]<<8,Hi=Et[xt++]|Et[xt++]<<8,lr=Et[xt++],Ir=lr>>6&1,io=1<<(7&lr)+1,mr=ye,Ti=Fe,Br=!1;lr>>7&&(Br=!0,mr=xt,Ti=io,xt+=3*io);var Wr=xt;for(xt++;;){var Qn;if(!((Qn=Et[xt++])>=0))throw Error("Invalid block size");if(Qn===0)break;xt+=Qn}pn.push({x:gi,y:Un,width:Ai,height:Hi,has_local_palette:Br,palette_offset:mr,palette_size:Ti,data_offset:Wr,data_length:xt-Wr,transparent_index:Nn,interlaced:!!Ir,delay:gn,disposal:He});break;case 59:Xe=!1;break;default:throw new Error("Unknown gif block: 0x"+Et[xt-1].toString(16))}this.numFrames=function(){return pn.length},this.loopCount=function(){return ci},this.frameInfo=function($n){if($n<0||$n>=pn.length)throw new Error("Frame index out of range.");return pn[$n]},this.decodeAndBlitFrameBGRA=function($n,Zi){var ge=this.frameInfo($n),Ce=ge.width*ge.height,Ve=new Uint8Array(Ce);Yi(Et,ge.data_offset,Ve,Ce);var en=ge.palette_offset,un=ge.transparent_index;un===null&&(un=256);var hn=ge.width,Tn=Lt-hn,Xn=hn,Te=4*(ge.y*Lt+ge.x),ln=4*((ge.y+ge.height)*Lt+ge.x),vn=Te,En=4*Tn;ge.interlaced===!0&&(En+=4*Lt*7);for(var Vn=8,li=0,oi=Ve.length;li<oi;++li){var Ei=Ve[li];if(Xn===0&&(Xn=hn,(vn+=En)>=ln&&(En=4*Tn+4*Lt*(Vn-1),vn=Te+(hn+Tn)*(Vn<<1),Vn>>=1)),Ei===un)vn+=4;else{var Ii=Et[en+3*Ei],$i=Et[en+3*Ei+1],sr=Et[en+3*Ei+2];Zi[vn++]=sr,Zi[vn++]=$i,Zi[vn++]=Ii,Zi[vn++]=255}--Xn}},this.decodeAndBlitFrameRGBA=function($n,Zi){var ge=this.frameInfo($n),Ce=ge.width*ge.height,Ve=new Uint8Array(Ce);Yi(Et,ge.data_offset,Ve,Ce);var en=ge.palette_offset,un=ge.transparent_index;un===null&&(un=256);var hn=ge.width,Tn=Lt-hn,Xn=hn,Te=4*(ge.y*Lt+ge.x),ln=4*((ge.y+ge.height)*Lt+ge.x),vn=Te,En=4*Tn;ge.interlaced===!0&&(En+=4*Lt*7);for(var Vn=8,li=0,oi=Ve.length;li<oi;++li){var Ei=Ve[li];if(Xn===0&&(Xn=hn,(vn+=En)>=ln&&(En=4*Tn+4*Lt*(Vn-1),vn=Te+(hn+Tn)*(Vn<<1),Vn>>=1)),Ei===un)vn+=4;else{var Ii=Et[en+3*Ei],$i=Et[en+3*Ei+1],sr=Et[en+3*Ei+2];Zi[vn++]=Ii,Zi[vn++]=$i,Zi[vn++]=sr,Zi[vn++]=255}--Xn}}}function Yi(Et,xt,Lt,Rt){for(var se=Et[xt++],Zt=1<<se,pe=Zt+1,ye=pe+1,Fe=se+1,Xe=(1<<Fe)-1,pn=0,gn=0,Nn=0,He=Et[xt++],ci=new Int32Array(4096),Yn=null;;){for(;pn<16&&He!==0;)gn|=Et[xt++]<<pn,pn+=8,He===1?He=Et[xt++]:--He;if(pn<Fe)break;var gi=gn&Xe;if(gn>>=Fe,pn-=Fe,gi!==Zt){if(gi===pe)break;for(var Un=gi<ye?gi:Yn,Ai=0,Hi=Un;Hi>Zt;)Hi=ci[Hi]>>8,++Ai;var lr=Hi;if(Nn+Ai+(Un!==gi?1:0)>Rt)return void Ho.log("Warning, gif stream longer than expected.");Lt[Nn++]=lr;var Ir=Nn+=Ai;for(Un!==gi&&(Lt[Nn++]=lr),Hi=Un;Ai--;)Hi=ci[Hi],Lt[--Ir]=255&Hi,Hi>>=8;Yn!==null&&ye<4096&&(ci[ye++]=Yn<<8|lr,ye>=Xe+1&&Fe<12&&(++Fe,Xe=Xe<<1|1)),Yn=gi}else ye=pe+1,Xe=(1<<(Fe=se+1))-1,Yn=null}return Nn!==Rt&&Ho.log("Warning, gif stream shorter than expected."),Lt}function aA(Et){var xt,Lt,Rt,se,Zt,pe=Math.floor,ye=new Array(64),Fe=new Array(64),Xe=new Array(64),pn=new Array(64),gn=new Array(65535),Nn=new Array(65535),He=new Array(64),ci=new Array(64),Yn=[],gi=0,Un=7,Ai=new Array(64),Hi=new Array(64),lr=new Array(64),Ir=new Array(256),io=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],Ti=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Br=[0,1,2,3,4,5,6,7,8,9,10,11],Wr=[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],$n=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Zi=[0,1,2,3,4,5,6,7,8,9,10,11],ge=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ce=[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 Ve(Te,ln){for(var vn=0,En=0,Vn=new Array,li=1;li<=16;li++){for(var oi=1;oi<=Te[li];oi++)Vn[ln[En]]=[],Vn[ln[En]][0]=vn,Vn[ln[En]][1]=li,En++,vn++;vn*=2}return Vn}function en(Te){for(var ln=Te[0],vn=Te[1]-1;vn>=0;)ln&1<<vn&&(gi|=1<<Un),vn--,--Un<0&&(gi==255?(un(255),un(0)):un(gi),Un=7,gi=0)}function un(Te){Yn.push(Te)}function hn(Te){un(Te>>8&255),un(255&Te)}function Tn(Te,ln,vn,En,Vn){for(var li,oi=Vn[0],Ei=Vn[240],Ii=function(ir,yr){var fr,nr,Or,uo,So,Fo,zr,Vo,Mo,hs,ho=0;for(Mo=0;Mo<8;++Mo){fr=ir[ho],nr=ir[ho+1],Or=ir[ho+2],uo=ir[ho+3],So=ir[ho+4],Fo=ir[ho+5],zr=ir[ho+6];var Pa=fr+(Vo=ir[ho+7]),Os=fr-Vo,Ps=nr+zr,Io=nr-zr,Fs=Or+Fo,$a=Or-Fo,js=uo+So,jl=uo-So,Po=Pa+js,as=Pa-js,ds=Ps+Fs,ko=Ps-Fs;ir[ho]=Po+ds,ir[ho+4]=Po-ds;var Jo=.707106781*(ko+as);ir[ho+2]=as+Jo,ir[ho+6]=as-Jo;var bo=.382683433*((Po=jl+$a)-(ko=Io+Os)),Ls=.5411961*Po+bo,_s=1.306562965*ko+bo,ea=.707106781*(ds=$a+Io),Yl=Os+ea,As=Os-ea;ir[ho+5]=As+Ls,ir[ho+3]=As-Ls,ir[ho+1]=Yl+_s,ir[ho+7]=Yl-_s,ho+=8}for(ho=0,Mo=0;Mo<8;++Mo){fr=ir[ho],nr=ir[ho+8],Or=ir[ho+16],uo=ir[ho+24],So=ir[ho+32],Fo=ir[ho+40],zr=ir[ho+48];var eu=fr+(Vo=ir[ho+56]),fa=fr-Vo,yl=nr+zr,po=nr-zr,Ra=Or+Fo,Nu=Or-Fo,wa=uo+So,na=uo-So,Na=eu+wa,Xa=eu-wa,ul=yl+Ra,Qs=yl-Ra;ir[ho]=Na+ul,ir[ho+32]=Na-ul;var Ia=.707106781*(Qs+Xa);ir[ho+16]=Xa+Ia,ir[ho+48]=Xa-Ia;var Nl=.382683433*((Na=na+Nu)-(Qs=po+fa)),Iu=.5411961*Na+Nl,mu=1.306562965*Qs+Nl,Tu=.707106781*(ul=Nu+po),Gu=fa+Tu,oh=fa-Tu;ir[ho+40]=oh+Iu,ir[ho+24]=oh-Iu,ir[ho+8]=Gu+mu,ir[ho+56]=Gu-mu,ho++}for(Mo=0;Mo<64;++Mo)hs=ir[Mo]*yr[Mo],He[Mo]=hs>0?hs+.5|0:hs-.5|0;return He}(Te,ln),$i=0;$i<64;++$i)ci[mr[$i]]=Ii[$i];var sr=ci[0]-vn;vn=ci[0],sr==0?en(En[0]):(en(En[Nn[li=32767+sr]]),en(gn[li]));for(var Ar=63;Ar>0&&ci[Ar]==0;)Ar--;if(Ar==0)return en(oi),vn;for(var Jr,Xi=1;Xi<=Ar;){for(var _n=Xi;ci[Xi]==0&&Xi<=Ar;)++Xi;var oo=Xi-_n;if(oo>=16){Jr=oo>>4;for(var lo=1;lo<=Jr;++lo)en(Ei);oo&=15}li=32767+ci[Xi],en(Vn[(oo<<4)+Nn[li]]),en(gn[li]),Xi++}return Ar!=63&&en(oi),vn}function Xn(Te){Te=Math.min(Math.max(Te,1),100),Zt!=Te&&(function(ln){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],En=0;En<64;En++){var Vn=pe((vn[En]*ln+50)/100);Vn=Math.min(Math.max(Vn,1),255),ye[mr[En]]=Vn}for(var li=[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],oi=0;oi<64;oi++){var Ei=pe((li[oi]*ln+50)/100);Ei=Math.min(Math.max(Ei,1),255),Fe[mr[oi]]=Ei}for(var Ii=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],$i=0,sr=0;sr<8;sr++)for(var Ar=0;Ar<8;Ar++)Xe[$i]=1/(ye[mr[$i]]*Ii[sr]*Ii[Ar]*8),pn[$i]=1/(Fe[mr[$i]]*Ii[sr]*Ii[Ar]*8),$i++}(Te<50?Math.floor(5e3/Te):Math.floor(200-2*Te)),Zt=Te)}this.encode=function(Te,ln){ln&&Xn(ln),Yn=new Array,gi=0,Un=7,hn(65496),hn(65504),hn(16),un(74),un(70),un(73),un(70),un(0),un(1),un(1),un(0),hn(1),hn(1),un(0),un(0),function(){hn(65499),hn(132),un(0);for(var nr=0;nr<64;nr++)un(ye[nr]);un(1);for(var Or=0;Or<64;Or++)un(Fe[Or])}(),function(nr,Or){hn(65472),hn(17),un(8),hn(Or),hn(nr),un(3),un(1),un(17),un(0),un(2),un(17),un(1),un(3),un(17),un(1)}(Te.width,Te.height),function(){hn(65476),hn(418),un(0);for(var nr=0;nr<16;nr++)un(Ti[nr+1]);for(var Or=0;Or<=11;Or++)un(Br[Or]);un(16);for(var uo=0;uo<16;uo++)un(Wr[uo+1]);for(var So=0;So<=161;So++)un(Qn[So]);un(1);for(var Fo=0;Fo<16;Fo++)un($n[Fo+1]);for(var zr=0;zr<=11;zr++)un(Zi[zr]);un(17);for(var Vo=0;Vo<16;Vo++)un(ge[Vo+1]);for(var Mo=0;Mo<=161;Mo++)un(Ce[Mo])}(),hn(65498),hn(12),un(3),un(1),un(0),un(2),un(17),un(3),un(17),un(0),un(63),un(0);var vn=0,En=0,Vn=0;gi=0,Un=7,this.encode.displayName="_encode_";for(var li,oi,Ei,Ii,$i,sr,Ar,Jr,Xi,_n=Te.data,oo=Te.width,lo=Te.height,ir=4*oo,yr=0;yr<lo;){for(li=0;li<ir;){for($i=ir*yr+li,Ar=-1,Jr=0,Xi=0;Xi<64;Xi++)sr=$i+(Jr=Xi>>3)*ir+(Ar=4*(7&Xi)),yr+Jr>=lo&&(sr-=ir*(yr+1+Jr-lo)),li+Ar>=ir&&(sr-=li+Ar-ir+4),oi=_n[sr++],Ei=_n[sr++],Ii=_n[sr++],Ai[Xi]=(io[oi]+io[Ei+256>>0]+io[Ii+512>>0]>>16)-128,Hi[Xi]=(io[oi+768>>0]+io[Ei+1024>>0]+io[Ii+1280>>0]>>16)-128,lr[Xi]=(io[oi+1280>>0]+io[Ei+1536>>0]+io[Ii+1792>>0]>>16)-128;vn=Tn(Ai,Xe,vn,xt,Rt),En=Tn(Hi,pn,En,Lt,se),Vn=Tn(lr,pn,Vn,Lt,se),li+=32}yr+=8}if(Un>=0){var fr=[];fr[1]=Un+1,fr[0]=(1<<Un+1)-1,en(fr)}return hn(65497),new Uint8Array(Yn)},Et=Et||50,function(){for(var Te=String.fromCharCode,ln=0;ln<256;ln++)Ir[ln]=Te(ln)}(),xt=Ve(Ti,Br),Lt=Ve($n,Zi),Rt=Ve(Wr,Qn),se=Ve(ge,Ce),function(){for(var Te=1,ln=2,vn=1;vn<=15;vn++){for(var En=Te;En<ln;En++)Nn[32767+En]=vn,gn[32767+En]=[],gn[32767+En][1]=vn,gn[32767+En][0]=En;for(var Vn=-(ln-1);Vn<=-Te;Vn++)Nn[32767+Vn]=vn,gn[32767+Vn]=[],gn[32767+Vn][1]=vn,gn[32767+Vn][0]=ln-1+Vn;Te<<=1,ln<<=1}}(),function(){for(var Te=0;Te<256;Te++)io[Te]=19595*Te,io[Te+256>>0]=38470*Te,io[Te+512>>0]=7471*Te+32768,io[Te+768>>0]=-11059*Te,io[Te+1024>>0]=-21709*Te,io[Te+1280>>0]=32768*Te+8421375,io[Te+1536>>0]=-27439*Te,io[Te+1792>>0]=-5329*Te}(),Xn(Et)}function tc(Et,xt){if(this.pos=0,this.buffer=Et,this.datav=new DataView(Et.buffer),this.is_with_alpha=!!xt,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 ju(Et){function xt(Ti){if(!Ti)throw Error("assert :P")}function Lt(Ti,Br,Wr){for(var Qn=0;4>Qn;Qn++)if(Ti[Br+Qn]!=Wr.charCodeAt(Qn))return!0;return!1}function Rt(Ti,Br,Wr,Qn,$n){for(var Zi=0;Zi<$n;Zi++)Ti[Br+Zi]=Wr[Qn+Zi]}function se(Ti,Br,Wr,Qn){for(var $n=0;$n<Qn;$n++)Ti[Br+$n]=Wr}function Zt(Ti){return new Int32Array(Ti)}function pe(Ti,Br){for(var Wr=[],Qn=0;Qn<Ti;Qn++)Wr.push(new Br);return Wr}function ye(Ti,Br){var Wr=[];return function Qn($n,Zi,ge){for(var Ce=ge[Zi],Ve=0;Ve<Ce&&($n.push(ge.length>Zi+1?[]:new Br),!(ge.length<Zi+1));Ve++)Qn($n[Ve],Zi+1,ge)}(Wr,0,Ti),Wr}var Fe=function(){var Ti=this;function Br(St,_t){for(var fe=1<<_t-1>>>0;St&fe;)fe>>>=1;return fe?(St&fe-1)+fe:St}function Wr(St,_t,fe,Ee,$e){xt(!(Ee%fe));do St[_t+(Ee-=fe)]=$e;while(0<Ee)}function Qn(St,_t,fe,Ee,$e){if(xt(2328>=$e),512>=$e)var mn=Zt(512);else if((mn=Zt($e))==null)return 0;return function(cn,Sn,Pn,zn,Bi,Ni){var tr,Ui,Pr=Sn,Lr=1<<Pn,ji=Zt(16),Ki=Zt(16);for(xt(Bi!=0),xt(zn!=null),xt(cn!=null),xt(0<Pn),Ui=0;Ui<Bi;++Ui){if(15<zn[Ui])return 0;++ji[zn[Ui]]}if(ji[0]==Bi)return 0;for(Ki[1]=0,tr=1;15>tr;++tr){if(ji[tr]>1<<tr)return 0;Ki[tr+1]=Ki[tr]+ji[tr]}for(Ui=0;Ui<Bi;++Ui)tr=zn[Ui],0<zn[Ui]&&(Ni[Ki[tr]++]=Ui);if(Ki[15]==1)return(zn=new $n).g=0,zn.value=Ni[0],Wr(cn,Pr,1,Lr,zn),Lr;var Dr,eo=-1,ro=Lr-1,ts=0,Wo=1,Ks=1,Jn=1<<Pn;for(Ui=0,tr=1,Bi=2;tr<=Pn;++tr,Bi<<=1){if(Wo+=Ks<<=1,0>(Ks-=ji[tr]))return 0;for(;0<ji[tr];--ji[tr])(zn=new $n).g=tr,zn.value=Ni[Ui++],Wr(cn,Pr+ts,Bi,Jn,zn),ts=Br(ts,tr)}for(tr=Pn+1,Bi=2;15>=tr;++tr,Bi<<=1){if(Wo+=Ks<<=1,0>(Ks-=ji[tr]))return 0;for(;0<ji[tr];--ji[tr]){if(zn=new $n,(ts&ro)!=eo){for(Pr+=Jn,Dr=1<<(eo=tr)-Pn;15>eo&&!(0>=(Dr-=ji[eo]));)++eo,Dr<<=1;Lr+=Jn=1<<(Dr=eo-Pn),cn[Sn+(eo=ts&ro)].g=Dr+Pn,cn[Sn+eo].value=Pr-Sn-eo}zn.g=tr-Pn,zn.value=Ni[Ui++],Wr(cn,Pr+(ts>>Pn),Bi,Jn,zn),ts=Br(ts,tr)}}return Wo!=2*Ki[15]-1?0:Lr}(St,_t,fe,Ee,$e,mn)}function $n(){this.value=this.g=0}function Zi(){this.value=this.g=0}function ge(){this.G=pe(5,$n),this.H=Zt(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=pe(Sa,Zi)}function Ce(St,_t,fe,Ee){xt(St!=null),xt(_t!=null),xt(2147483648>Ee),St.Ca=254,St.I=0,St.b=-8,St.Ka=0,St.oa=_t,St.pa=fe,St.Jd=_t,St.Yc=fe+Ee,St.Zc=4<=Ee?fe+Ee-4+1:fe,li(St)}function Ve(St,_t){for(var fe=0;0<_t--;)fe|=Ei(St,128)<<_t;return fe}function en(St,_t){var fe=Ve(St,_t);return oi(St)?-fe:fe}function un(St,_t,fe,Ee){var $e,mn=0;for(xt(St!=null),xt(_t!=null),xt(4294967288>Ee),St.Sb=Ee,St.Ra=0,St.u=0,St.h=0,4<Ee&&(Ee=4),$e=0;$e<Ee;++$e)mn+=_t[fe+$e]<<8*$e;St.Ra=mn,St.bb=Ee,St.oa=_t,St.pa=fe}function hn(St){for(;8<=St.u&&St.bb<St.Sb;)St.Ra>>>=8,St.Ra+=St.oa[St.pa+St.bb]<<Jl-8>>>0,++St.bb,St.u-=8;vn(St)&&(St.h=1,St.u=0)}function Tn(St,_t){if(xt(0<=_t),!St.h&&_t<=Zd){var fe=ln(St)&mc[_t];return St.u+=_t,hn(St),fe}return St.h=1,St.u=0}function Xn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Te(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ln(St){return St.Ra>>>(St.u&Jl-1)>>>0}function vn(St){return xt(St.bb<=St.Sb),St.h||St.bb==St.Sb&&St.u>Jl}function En(St,_t){St.u=_t,St.h=vn(St)}function Vn(St){St.u>=_h&&(xt(St.u>=_h),hn(St))}function li(St){xt(St!=null&&St.oa!=null),St.pa<St.Zc?(St.I=(St.oa[St.pa++]|St.I<<8)>>>0,St.b+=8):(xt(St!=null&&St.oa!=null),St.pa<St.Yc?(St.b+=8,St.I=St.oa[St.pa++]|St.I<<8):St.Ka?St.b=0:(St.I<<=8,St.b+=8,St.Ka=1))}function oi(St){return Ve(St,1)}function Ei(St,_t){var fe=St.Ca;0>St.b&&li(St);var Ee=St.b,$e=fe*_t>>>8,mn=(St.I>>>Ee>$e)+0;for(mn?(fe-=$e,St.I-=$e+1<<Ee>>>0):fe=$e+1,Ee=fe,$e=0;256<=Ee;)$e+=8,Ee>>=8;return Ee=7^$e+_u[Ee],St.b-=Ee,St.Ca=(fe<<Ee)-1,mn}function Ii(St,_t,fe){St[_t+0]=fe>>24&255,St[_t+1]=fe>>16&255,St[_t+2]=fe>>8&255,St[_t+3]=fe>>0&255}function $i(St,_t){return St[_t+0]<<0|St[_t+1]<<8}function sr(St,_t){return $i(St,_t)|St[_t+2]<<16}function Ar(St,_t){return $i(St,_t)|$i(St,_t+2)<<16}function Jr(St,_t){var fe=1<<_t;return xt(St!=null),xt(0<_t),St.X=Zt(fe),St.X==null?0:(St.Mb=32-_t,St.Xa=_t,1)}function Xi(St,_t){xt(St!=null),xt(_t!=null),xt(St.Xa==_t.Xa),Rt(_t.X,0,St.X,0,1<<_t.Xa)}function _n(){this.X=[],this.Xa=this.Mb=0}function oo(St,_t,fe,Ee){xt(fe!=null),xt(Ee!=null);var $e=fe[0],mn=Ee[0];return $e==0&&($e=(St*mn+_t/2)/_t),mn==0&&(mn=(_t*$e+St/2)/St),0>=$e||0>=mn?0:(fe[0]=$e,Ee[0]=mn,1)}function lo(St,_t){return St+(1<<_t)-1>>>_t}function ir(St,_t){return((4278255360&St)+(4278255360&_t)>>>0&4278255360)+((16711935&St)+(16711935&_t)>>>0&16711935)>>>0}function yr(St,_t){Ti[_t]=function(fe,Ee,$e,mn,cn,Sn,Pn){var zn;for(zn=0;zn<cn;++zn){var Bi=Ti[St](Sn[Pn+zn-1],$e,mn+zn);Sn[Pn+zn]=ir(fe[Ee+zn],Bi)}}}function fr(){this.ud=this.hd=this.jd=0}function nr(St,_t){return((4278124286&(St^_t))>>>1)+(St&_t)>>>0}function Or(St){return 0<=St&&256>St?St:0>St?0:255<St?255:void 0}function uo(St,_t){return Or(St+(St-_t+.5>>1))}function So(St,_t,fe){return Math.abs(_t-fe)-Math.abs(St-fe)}function Fo(St,_t,fe,Ee,$e,mn,cn){for(Ee=mn[cn-1],fe=0;fe<$e;++fe)mn[cn+fe]=Ee=ir(St[_t+fe],Ee)}function zr(St,_t,fe,Ee,$e){var mn;for(mn=0;mn<fe;++mn){var cn=St[_t+mn],Sn=cn>>8&255,Pn=16711935&(Pn=(Pn=16711935&cn)+((Sn<<16)+Sn));Ee[$e+mn]=(4278255360&cn)+Pn>>>0}}function Vo(St,_t){_t.jd=St>>0&255,_t.hd=St>>8&255,_t.ud=St>>16&255}function Mo(St,_t,fe,Ee,$e,mn){var cn;for(cn=0;cn<Ee;++cn){var Sn=_t[fe+cn],Pn=Sn>>>8,zn=Sn,Bi=255&(Bi=(Bi=Sn>>>16)+((St.jd<<24>>24)*(Pn<<24>>24)>>>5));zn=255&(zn=(zn=zn+((St.hd<<24>>24)*(Pn<<24>>24)>>>5))+((St.ud<<24>>24)*(Bi<<24>>24)>>>5)),$e[mn+cn]=(4278255360&Sn)+(Bi<<16)+zn}}function hs(St,_t,fe,Ee,$e){Ti[_t]=function(mn,cn,Sn,Pn,zn,Bi,Ni,tr,Ui){for(Pn=Ni;Pn<tr;++Pn)for(Ni=0;Ni<Ui;++Ni)zn[Bi++]=$e(Sn[Ee(mn[cn++])])},Ti[St]=function(mn,cn,Sn,Pn,zn,Bi,Ni){var tr=8>>mn.b,Ui=mn.Ea,Pr=mn.K[0],Lr=mn.w;if(8>tr)for(mn=(1<<mn.b)-1,Lr=(1<<tr)-1;cn<Sn;++cn){var ji,Ki=0;for(ji=0;ji<Ui;++ji)ji&mn||(Ki=Ee(Pn[zn++])),Bi[Ni++]=$e(Pr[Ki&Lr]),Ki>>=tr}else Ti["VP8LMapColor"+fe](Pn,zn,Pr,Lr,Bi,Ni,cn,Sn,Ui)}}function ho(St,_t,fe,Ee,$e){for(fe=_t+fe;_t<fe;){var mn=St[_t++];Ee[$e++]=mn>>16&255,Ee[$e++]=mn>>8&255,Ee[$e++]=mn>>0&255}}function Pa(St,_t,fe,Ee,$e){for(fe=_t+fe;_t<fe;){var mn=St[_t++];Ee[$e++]=mn>>16&255,Ee[$e++]=mn>>8&255,Ee[$e++]=mn>>0&255,Ee[$e++]=mn>>24&255}}function Os(St,_t,fe,Ee,$e){for(fe=_t+fe;_t<fe;){var mn=(cn=St[_t++])>>16&240|cn>>12&15,cn=cn>>0&240|cn>>28&15;Ee[$e++]=mn,Ee[$e++]=cn}}function Ps(St,_t,fe,Ee,$e){for(fe=_t+fe;_t<fe;){var mn=(cn=St[_t++])>>16&248|cn>>13&7,cn=cn>>5&224|cn>>3&31;Ee[$e++]=mn,Ee[$e++]=cn}}function Io(St,_t,fe,Ee,$e){for(fe=_t+fe;_t<fe;){var mn=St[_t++];Ee[$e++]=mn>>0&255,Ee[$e++]=mn>>8&255,Ee[$e++]=mn>>16&255}}function Fs(St,_t,fe,Ee,$e,mn){if(mn==0)for(fe=_t+fe;_t<fe;)Ii(Ee,((mn=St[_t++])[0]>>24|mn[1]>>8&65280|mn[2]<<8&16711680|mn[3]<<24)>>>0),$e+=32;else Rt(Ee,$e,St,_t,fe)}function $a(St,_t){Ti[_t][0]=Ti[St+"0"],Ti[_t][1]=Ti[St+"1"],Ti[_t][2]=Ti[St+"2"],Ti[_t][3]=Ti[St+"3"],Ti[_t][4]=Ti[St+"4"],Ti[_t][5]=Ti[St+"5"],Ti[_t][6]=Ti[St+"6"],Ti[_t][7]=Ti[St+"7"],Ti[_t][8]=Ti[St+"8"],Ti[_t][9]=Ti[St+"9"],Ti[_t][10]=Ti[St+"10"],Ti[_t][11]=Ti[St+"11"],Ti[_t][12]=Ti[St+"12"],Ti[_t][13]=Ti[St+"13"],Ti[_t][14]=Ti[St+"0"],Ti[_t][15]=Ti[St+"0"]}function js(St){return St==Hu||St==qc||St==Md||St==Cg}function jl(){this.eb=[],this.size=this.A=this.fb=0}function Po(){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 as(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new jl,this.f.kb=new Po,this.sd=null}function ds(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ko(){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 Jo(St){return alert("todo:WebPSamplerProcessPlane"),St.T}function bo(St,_t){var fe=St.T,Ee=_t.ba.f.RGBA,$e=Ee.eb,mn=Ee.fb+St.ka*Ee.A,cn=vc[_t.ba.S],Sn=St.y,Pn=St.O,zn=St.f,Bi=St.N,Ni=St.ea,tr=St.W,Ui=_t.cc,Pr=_t.dc,Lr=_t.Mc,ji=_t.Nc,Ki=St.ka,Dr=St.ka+St.T,eo=St.U,ro=eo+1>>1;for(Ki==0?cn(Sn,Pn,null,null,zn,Bi,Ni,tr,zn,Bi,Ni,tr,$e,mn,null,null,eo):(cn(_t.ec,_t.fc,Sn,Pn,Ui,Pr,Lr,ji,zn,Bi,Ni,tr,$e,mn-Ee.A,$e,mn,eo),++fe);Ki+2<Dr;Ki+=2)Ui=zn,Pr=Bi,Lr=Ni,ji=tr,Bi+=St.Rc,tr+=St.Rc,mn+=2*Ee.A,cn(Sn,(Pn+=2*St.fa)-St.fa,Sn,Pn,Ui,Pr,Lr,ji,zn,Bi,Ni,tr,$e,mn-Ee.A,$e,mn,eo);return Pn+=St.fa,St.j+Dr<St.o?(Rt(_t.ec,_t.fc,Sn,Pn,eo),Rt(_t.cc,_t.dc,zn,Bi,ro),Rt(_t.Mc,_t.Nc,Ni,tr,ro),fe--):1&Dr||cn(Sn,Pn,null,null,zn,Bi,Ni,tr,zn,Bi,Ni,tr,$e,mn+Ee.A,null,null,eo),fe}function Ls(St,_t,fe){var Ee=St.F,$e=[St.J];if(Ee!=null){var mn=St.U,cn=_t.ba.S,Sn=cn==eh||cn==Md;_t=_t.ba.f.RGBA;var Pn=[0],zn=St.ka;Pn[0]=St.T,St.Kb&&(zn==0?--Pn[0]:(--zn,$e[0]-=St.width),St.j+St.ka+St.T==St.o&&(Pn[0]=St.o-St.j-zn));var Bi=_t.eb;zn=_t.fb+zn*_t.A,St=Ua(Ee,$e[0],St.width,mn,Pn,Bi,zn+(Sn?0:3),_t.A),xt(fe==Pn),St&&js(cn)&&fl(Bi,zn,Sn,mn,Pn,_t.A)}return 0}function _s(St){var _t=St.ma,fe=_t.ba.S,Ee=11>fe,$e=fe==fu||fe==Fh||fe==eh||fe==xh||fe==12||js(fe);if(_t.memory=null,_t.Ib=null,_t.Jb=null,_t.Nd=null,!kc(_t.Oa,St,$e?11:12))return 0;if($e&&js(fe)&&vo(),St.da)alert("todo:use_scaling");else{if(Ee){if(_t.Ib=Jo,St.Kb){if(fe=St.U+1>>1,_t.memory=Zt(St.U+2*fe),_t.memory==null)return 0;_t.ec=_t.memory,_t.fc=0,_t.cc=_t.ec,_t.dc=_t.fc+St.U,_t.Mc=_t.cc,_t.Nc=_t.dc+fe,_t.Ib=bo,vo()}}else alert("todo:EmitYUV");$e&&(_t.Jb=Ls,Ee&&ur())}if(Ee&&!Eg){for(St=0;256>St;++St)Ut[St]=89858*(St-128)+IA>>xf,Qt[St]=-22014*(St-128)+IA,Kt[St]=-45773*(St-128),kt[St]=113618*(St-128)+IA>>xf;for(St=gA;St<fd;++St)_t=76283*(St-16)+IA>>xf,Pe[St-gA]=Eh(_t,255),qe[St-gA]=Eh(_t+8>>4,15);Eg=1}return 1}function ea(St){var _t=St.ma,fe=St.U,Ee=St.T;return xt(!(1&St.ka)),0>=fe||0>=Ee?0:(fe=_t.Ib(St,_t),_t.Jb!=null&&_t.Jb(St,_t,fe),_t.Dc+=fe,1)}function Yl(St){St.ma.memory=null}function As(St,_t,fe,Ee){return Tn(St,8)!=47?0:(_t[0]=Tn(St,14)+1,fe[0]=Tn(St,14)+1,Ee[0]=Tn(St,1),Tn(St,3)!=0?0:!St.h)}function eu(St,_t){if(4>St)return St+1;var fe=St-2>>1;return(2+(1&St)<<fe)+Tn(_t,fe)+1}function fa(St,_t){return 120<_t?_t-120:1<=(fe=((fe=GA[_t-1])>>4)*St+(8-(15&fe)))?fe:1;var fe}function yl(St,_t,fe){var Ee=ln(fe),$e=St[_t+=255&Ee].g-8;return 0<$e&&(En(fe,fe.u+8),Ee=ln(fe),_t+=St[_t].value,_t+=Ee&(1<<$e)-1),En(fe,fe.u+St[_t].g),St[_t].value}function po(St,_t,fe){return fe.g+=St.g,fe.value+=St.value<<_t>>>0,xt(8>=fe.g),St.g}function Ra(St,_t,fe){var Ee=St.xc;return xt((_t=Ee==0?0:St.vc[St.md*(fe>>Ee)+(_t>>Ee)])<St.Wb),St.Ya[_t]}function Nu(St,_t,fe,Ee){var $e=St.ab,mn=St.c*_t,cn=St.C;_t=cn+_t;var Sn=fe,Pn=Ee;for(Ee=St.Ta,fe=St.Ua;0<$e--;){var zn=St.gc[$e],Bi=cn,Ni=_t,tr=Sn,Ui=Pn,Pr=(Pn=Ee,Sn=fe,zn.Ea);switch(xt(Bi<Ni),xt(Ni<=zn.nc),zn.hc){case 2:Yd(tr,Ui,(Ni-Bi)*Pr,Pn,Sn);break;case 0:var Lr=Bi,ji=Ni,Ki=Pn,Dr=Sn,eo=(Jn=zn).Ea;Lr==0&&(cd(tr,Ui,null,null,1,Ki,Dr),Fo(tr,Ui+1,0,0,eo-1,Ki,Dr+1),Ui+=eo,Dr+=eo,++Lr);for(var ro=1<<Jn.b,ts=ro-1,Wo=lo(eo,Jn.b),Ks=Jn.K,Jn=Jn.w+(Lr>>Jn.b)*Wo;Lr<ji;){var gl=Ks,Tl=Jn,rl=1;for(Rl(tr,Ui,Ki,Dr-eo,1,Ki,Dr);rl<eo;){var Qa=(rl&~ts)+ro;Qa>eo&&(Qa=eo),(0,st[gl[Tl++]>>8&15])(tr,Ui+ +rl,Ki,Dr+rl-eo,Qa-rl,Ki,Dr+rl),rl=Qa}Ui+=eo,Dr+=eo,++Lr&ts||(Jn+=Wo)}Ni!=zn.nc&&Rt(Pn,Sn-Pr,Pn,Sn+(Ni-Bi-1)*Pr,Pr);break;case 1:for(Pr=tr,ji=Ui,eo=(tr=zn.Ea)-(Dr=tr&~(Ki=(Ui=1<<zn.b)-1)),Lr=lo(tr,zn.b),ro=zn.K,zn=zn.w+(Bi>>zn.b)*Lr;Bi<Ni;){for(ts=ro,Wo=zn,Ks=new fr,Jn=ji+Dr,gl=ji+tr;ji<Jn;)Vo(ts[Wo++],Ks),vt(Ks,Pr,ji,Ui,Pn,Sn),ji+=Ui,Sn+=Ui;ji<gl&&(Vo(ts[Wo++],Ks),vt(Ks,Pr,ji,eo,Pn,Sn),ji+=eo,Sn+=eo),++Bi&Ki||(zn+=Lr)}break;case 3:if(tr==Pn&&Ui==Sn&&0<zn.b){for(ji=Pn,tr=Pr=Sn+(Ni-Bi)*Pr-(Dr=(Ni-Bi)*lo(zn.Ea,zn.b)),Ui=Pn,Ki=Sn,Lr=[],Dr=(eo=Dr)-1;0<=Dr;--Dr)Lr[Dr]=Ui[Ki+Dr];for(Dr=eo-1;0<=Dr;--Dr)ji[tr+Dr]=Lr[Dr];Eu(zn,Bi,Ni,Pn,Pr,Pn,Sn)}else Eu(zn,Bi,Ni,tr,Ui,Pn,Sn)}Sn=Ee,Pn=fe}Pn!=fe&&Rt(Ee,fe,Sn,Pn,mn)}function wa(St,_t){var fe=St.V,Ee=St.Ba+St.c*St.C,$e=_t-St.C;if(xt(_t<=St.l.o),xt(16>=$e),0<$e){var mn=St.l,cn=St.Ta,Sn=St.Ua,Pn=mn.width;if(Nu(St,$e,fe,Ee),$e=Sn=[Sn],xt((fe=St.C)<(Ee=_t)),xt(mn.v<mn.va),Ee>mn.o&&(Ee=mn.o),fe<mn.j){var zn=mn.j-fe;fe=mn.j,$e[0]+=zn*Pn}if(fe>=Ee?fe=0:($e[0]+=4*mn.v,mn.ka=fe-mn.j,mn.U=mn.va-mn.v,mn.T=Ee-fe,fe=1),fe){if(Sn=Sn[0],11>(fe=St.ca).S){var Bi=fe.f.RGBA,Ni=(Ee=fe.S,$e=mn.U,mn=mn.T,zn=Bi.eb,Bi.A),tr=mn;for(Bi=Bi.fb+St.Ma*Bi.A;0<tr--;){var Ui=cn,Pr=Sn,Lr=$e,ji=zn,Ki=Bi;switch(Ee){case ch:gt(Ui,Pr,Lr,ji,Ki);break;case fu:Bt(Ui,Pr,Lr,ji,Ki);break;case Hu:Bt(Ui,Pr,Lr,ji,Ki),fl(ji,Ki,0,Lr,1,0);break;case Xd:je(Ui,Pr,Lr,ji,Ki);break;case Fh:Fs(Ui,Pr,Lr,ji,Ki,1);break;case qc:Fs(Ui,Pr,Lr,ji,Ki,1),fl(ji,Ki,0,Lr,1,0);break;case eh:Fs(Ui,Pr,Lr,ji,Ki,0);break;case Md:Fs(Ui,Pr,Lr,ji,Ki,0),fl(ji,Ki,1,Lr,1,0);break;case xh:te(Ui,Pr,Lr,ji,Ki);break;case Cg:te(Ui,Pr,Lr,ji,Ki),Ja(ji,Ki,Lr,1,0);break;case Ql:xe(Ui,Pr,Lr,ji,Ki);break;default:xt(0)}Sn+=Pn,Bi+=Ni}St.Ma+=mn}else alert("todo:EmitRescaledRowsYUVA");xt(St.Ma<=fe.height)}}St.C=_t,xt(St.C<=St.i)}function na(St){var _t;if(0<St.ua)return 0;for(_t=0;_t<St.Wb;++_t){var fe=St.Ya[_t].G,Ee=St.Ya[_t].H;if(0<fe[1][Ee[1]+0].g||0<fe[2][Ee[2]+0].g||0<fe[3][Ee[3]+0].g)return 0}return 1}function Na(St,_t,fe,Ee,$e,mn){if(St.Z!=0){var cn=St.qd,Sn=St.rd;for(xt(zh[St.Z]!=null);_t<fe;++_t)zh[St.Z](cn,Sn,Ee,$e,Ee,$e,mn),cn=Ee,Sn=$e,$e+=mn;St.qd=cn,St.rd=Sn}}function Xa(St,_t){var fe=St.l.ma,Ee=fe.Z==0||fe.Z==1?St.l.j:St.C;if(Ee=St.C<Ee?Ee:St.C,xt(_t<=St.l.o),_t>Ee){var $e=St.l.width,mn=fe.ca,cn=fe.tb+$e*Ee,Sn=St.V,Pn=St.Ba+St.c*Ee,zn=St.gc;xt(St.ab==1),xt(zn[0].hc==3),$d(zn[0],Ee,_t,Sn,Pn,mn,cn),Na(fe,Ee,_t,mn,cn,$e)}St.C=St.Ma=_t}function ul(St,_t,fe,Ee,$e,mn,cn){var Sn=St.$/Ee,Pn=St.$%Ee,zn=St.m,Bi=St.s,Ni=fe+St.$,tr=Ni;$e=fe+Ee*$e;var Ui=fe+Ee*mn,Pr=280+Bi.ua,Lr=St.Pb?Sn:16777216,ji=0<Bi.ua?Bi.Wa:null,Ki=Bi.wc,Dr=Ni<Ui?Ra(Bi,Pn,Sn):null;xt(St.C<mn),xt(Ui<=$e);var eo=!1;t:for(;;){for(;eo||Ni<Ui;){var ro=0;if(Sn>=Lr){var ts=Ni-fe;xt((Lr=St).Pb),Lr.wd=Lr.m,Lr.xd=ts,0<Lr.s.ua&&Xi(Lr.s.Wa,Lr.s.vb),Lr=Sn+Vf}if(Pn&Ki||(Dr=Ra(Bi,Pn,Sn)),xt(Dr!=null),Dr.Qb&&(_t[Ni]=Dr.qb,eo=!0),!eo)if(Vn(zn),Dr.jc){ro=zn,ts=_t;var Wo=Ni,Ks=Dr.pd[ln(ro)&Sa-1];xt(Dr.jc),256>Ks.g?(En(ro,ro.u+Ks.g),ts[Wo]=Ks.value,ro=0):(En(ro,ro.u+Ks.g-256),xt(256<=Ks.value),ro=Ks.value),ro==0&&(eo=!0)}else ro=yl(Dr.G[0],Dr.H[0],zn);if(zn.h)break;if(eo||256>ro){if(!eo)if(Dr.nd)_t[Ni]=(Dr.qb|ro<<8)>>>0;else{if(Vn(zn),eo=yl(Dr.G[1],Dr.H[1],zn),Vn(zn),ts=yl(Dr.G[2],Dr.H[2],zn),Wo=yl(Dr.G[3],Dr.H[3],zn),zn.h)break;_t[Ni]=(Wo<<24|eo<<16|ro<<8|ts)>>>0}if(eo=!1,++Ni,++Pn>=Ee&&(Pn=0,++Sn,cn!=null&&Sn<=mn&&!(Sn%16)&&cn(St,Sn),ji!=null))for(;tr<Ni;)ro=_t[tr++],ji.X[(506832829*ro&4294967295)>>>ji.Mb]=ro}else if(280>ro){if(ro=eu(ro-256,zn),ts=yl(Dr.G[4],Dr.H[4],zn),Vn(zn),ts=fa(Ee,ts=eu(ts,zn)),zn.h)break;if(Ni-fe<ts||$e-Ni<ro)break t;for(Wo=0;Wo<ro;++Wo)_t[Ni+Wo]=_t[Ni+Wo-ts];for(Ni+=ro,Pn+=ro;Pn>=Ee;)Pn-=Ee,++Sn,cn!=null&&Sn<=mn&&!(Sn%16)&&cn(St,Sn);if(xt(Ni<=$e),Pn&Ki&&(Dr=Ra(Bi,Pn,Sn)),ji!=null)for(;tr<Ni;)ro=_t[tr++],ji.X[(506832829*ro&4294967295)>>>ji.Mb]=ro}else{if(!(ro<Pr))break t;for(eo=ro-280,xt(ji!=null);tr<Ni;)ro=_t[tr++],ji.X[(506832829*ro&4294967295)>>>ji.Mb]=ro;ro=Ni,xt(!(eo>>>(ts=ji).Xa)),_t[ro]=ts.X[eo],eo=!0}eo||xt(zn.h==vn(zn))}if(St.Pb&&zn.h&&Ni<$e)xt(St.m.h),St.a=5,St.m=St.wd,St.$=St.xd,0<St.s.ua&&Xi(St.s.vb,St.s.Wa);else{if(zn.h)break t;cn!=null&&cn(St,Sn>mn?mn:Sn),St.a=0,St.$=Ni-fe}return 1}return St.a=3,0}function Qs(St){xt(St!=null),St.vc=null,St.yc=null,St.Ya=null;var _t=St.Wa;_t!=null&&(_t.X=null),St.vb=null,xt(St!=null)}function Ia(){var St=new zA;return St==null?null:(St.a=0,St.xb=td,$a("Predictor","VP8LPredictors"),$a("Predictor","VP8LPredictors_C"),$a("PredictorAdd","VP8LPredictorsAdd"),$a("PredictorAdd","VP8LPredictorsAdd_C"),Yd=zr,vt=Mo,gt=ho,Bt=Pa,te=Os,xe=Ps,je=Io,Ti.VP8LMapColor32b=sc,Ti.VP8LMapColor8b=it,St)}function Nl(St,_t,fe,Ee,$e){var mn=1,cn=[St],Sn=[_t],Pn=Ee.m,zn=Ee.s,Bi=null,Ni=0;t:for(;;){if(fe)for(;mn&&Tn(Pn,1);){var tr=cn,Ui=Sn,Pr=Ee,Lr=1,ji=Pr.m,Ki=Pr.gc[Pr.ab],Dr=Tn(ji,2);if(Pr.Oc&1<<Dr)mn=0;else{switch(Pr.Oc|=1<<Dr,Ki.hc=Dr,Ki.Ea=tr[0],Ki.nc=Ui[0],Ki.K=[null],++Pr.ab,xt(4>=Pr.ab),Dr){case 0:case 1:Ki.b=Tn(ji,3)+2,Lr=Nl(lo(Ki.Ea,Ki.b),lo(Ki.nc,Ki.b),0,Pr,Ki.K),Ki.K=Ki.K[0];break;case 3:var eo,ro=Tn(ji,8)+1,ts=16<ro?0:4<ro?1:2<ro?2:3;if(tr[0]=lo(Ki.Ea,ts),Ki.b=ts,eo=Lr=Nl(ro,1,0,Pr,Ki.K)){var Wo,Ks=ro,Jn=Ki,gl=1<<(8>>Jn.b),Tl=Zt(gl);if(Tl==null)eo=0;else{var rl=Jn.K[0],Qa=Jn.w;for(Tl[0]=Jn.K[0][0],Wo=1;Wo<1*Ks;++Wo)Tl[Wo]=ir(rl[Qa+Wo],Tl[Wo-1]);for(;Wo<4*gl;++Wo)Tl[Wo]=0;Jn.K[0]=null,Jn.K[0]=Tl,eo=1}}Lr=eo;break;case 2:break;default:xt(0)}mn=Lr}}if(cn=cn[0],Sn=Sn[0],mn&&Tn(Pn,1)&&!(mn=1<=(Ni=Tn(Pn,4))&&11>=Ni)){Ee.a=3;break t}var zl;if(zl=mn)e:{var Ha,ua,Qu,Id=Ee,Lh=cn,gd=Sn,bu=Ni,Ch=fe,pd=Id.m,Kh=Id.s,ac=[null],Dc=1,Jd=0,TA=MA[bu];n:for(;;){if(Ch&&Tn(pd,1)){var lc=Tn(pd,3)+2,lh=lo(Lh,lc),$f=lo(gd,lc),YA=lh*$f;if(!Nl(lh,$f,0,Id,ac))break n;for(ac=ac[0],Kh.xc=lc,Ha=0;Ha<YA;++Ha){var uf=ac[Ha]>>8&65535;ac[Ha]=uf,uf>=Dc&&(Dc=uf+1)}}if(pd.h)break n;for(ua=0;5>ua;++ua){var nh=dd[ua];!ua&&0<bu&&(nh+=1<<bu),Jd<nh&&(Jd=nh)}var Vg=pe(Dc*TA,$n),Cp=Dc,Bp=pe(Cp,ge);if(Bp==null)var Xf=null;else xt(65536>=Cp),Xf=Bp;var jc=Zt(Jd);if(Xf==null||jc==null||Vg==null){Id.a=1;break n}var Zg=Vg;for(Ha=Qu=0;Ha<Dc;++Ha){var pA=Xf[Ha],Gh=pA.G,ed=pA.H,wc=0,Kl=1,Yg=0;for(ua=0;5>ua;++ua){nh=dd[ua],Gh[ua]=Zg,ed[ua]=Qu,!ua&&0<bu&&(nh+=1<<bu);r:{var Jf,$g=nh,Sf=Id,Cf=jc,Go=Zg,Bf=Qu,Pf=0,$A=Sf.m,Pp=Tn($A,1);if(se(Cf,0,0,$g),Pp){var bp=Tn($A,1)+1,bf=Tn($A,1),h0=Tn($A,bf==0?1:8);Cf[h0]=1,bp==2&&(Cf[h0=Tn($A,8)]=1);var Xg=1}else{var qd=Zt(19),Ep=Tn($A,4)+4;if(19<Ep){Sf.a=3;var Fg=0;break r}for(Jf=0;Jf<Ep;++Jf)qd[yf[Jf]]=Tn($A,3);var ha=void 0,Uc=void 0,c0=Sf,Jg=qd,Lg=$g,qf=Cf,Rc=0,mA=c0.m,d0=8,A0=pe(128,$n);i:for(;Qn(A0,0,7,Jg,19);){if(Tn(mA,1)){var Fp=2+2*Tn(mA,3);if((ha=2+Tn(mA,Fp))>Lg)break i}else ha=Lg;for(Uc=0;Uc<Lg&&ha--;){Vn(mA);var qg=A0[0+(127&ln(mA))];En(mA,mA.u+qg.g);var Ef=qg.value;if(16>Ef)qf[Uc++]=Ef,Ef!=0&&(d0=Ef);else{var em=Ef==16,Lp=Ef-16,nm=Bg[Lp],Mp=Tn(mA,Hh[Lp])+nm;if(Uc+Mp>Lg)break i;for(var Np=em?d0:0;0<Mp--;)qf[Uc++]=Np}}Rc=1;break i}Rc||(c0.a=3),Xg=Rc}(Xg=Xg&&!$A.h)&&(Pf=Qn(Go,Bf,8,Cf,$g)),Xg&&Pf!=0?Fg=Pf:(Sf.a=3,Fg=0)}if(Fg==0)break n;if(Kl&&Wf[ua]==1&&(Kl=Zg[Qu].g==0),wc+=Zg[Qu].g,Qu+=Fg,3>=ua){var hf,Ip=jc[0];for(hf=1;hf<nh;++hf)jc[hf]>Ip&&(Ip=jc[hf]);Yg+=Ip}}if(pA.nd=Kl,pA.Qb=0,Kl&&(pA.qb=(Gh[3][ed[3]+0].value<<24|Gh[1][ed[1]+0].value<<16|Gh[2][ed[2]+0].value)>>>0,wc==0&&256>Gh[0][ed[0]+0].value&&(pA.Qb=1,pA.qb+=Gh[0][ed[0]+0].value<<8)),pA.jc=!pA.Qb&&6>Yg,pA.jc){var Tp,kA=pA;for(Tp=0;Tp<Sa;++Tp){var cf=Tp,OA=kA.pd[cf],Mg=kA.G[0][kA.H[0]+cf];256<=Mg.value?(OA.g=Mg.g+256,OA.value=Mg.value):(OA.g=0,OA.value=0,cf>>=po(Mg,8,OA),cf>>=po(kA.G[1][kA.H[1]+cf],16,OA),cf>>=po(kA.G[2][kA.H[2]+cf],0,OA),po(kA.G[3][kA.H[3]+cf],24,OA))}}}Kh.vc=ac,Kh.Wb=Dc,Kh.Ya=Xf,Kh.yc=Vg,zl=1;break e}zl=0}if(!(mn=zl)){Ee.a=3;break t}if(0<Ni){if(zn.ua=1<<Ni,!Jr(zn.Wa,Ni)){Ee.a=1,mn=0;break t}}else zn.ua=0;var tg=Ee,f0=cn,Mh=Sn,Ng=tg.s,tp=Ng.xc;if(tg.c=f0,tg.i=Mh,Ng.md=lo(f0,tp),Ng.wc=tp==0?-1:(1<<tp)-1,fe){Ee.xb=Pg;break t}if((Bi=Zt(cn*Sn))==null){Ee.a=1,mn=0;break t}mn=(mn=ul(Ee,Bi,0,cn,Sn,Sn,null))&&!Pn.h;break t}return mn?($e!=null?$e[0]=Bi:(xt(Bi==null),xt(fe)),Ee.$=0,fe||Qs(zn)):Qs(zn),mn}function Iu(St,_t){var fe=St.c*St.i,Ee=fe+_t+16*_t;return xt(St.c<=_t),St.V=Zt(Ee),St.V==null?(St.Ta=null,St.Ua=0,St.a=1,0):(St.Ta=St.V,St.Ua=St.Ba+fe+_t,1)}function mu(St,_t){var fe=St.C,Ee=_t-fe,$e=St.V,mn=St.Ba+St.c*fe;for(xt(_t<=St.l.o);0<Ee;){var cn=16<Ee?16:Ee,Sn=St.l.ma,Pn=St.l.width,zn=Pn*cn,Bi=Sn.ca,Ni=Sn.tb+Pn*fe,tr=St.Ta,Ui=St.Ua;Nu(St,cn,$e,mn),Za(tr,Ui,Bi,Ni,zn),Na(Sn,fe,fe+cn,Bi,Ni,Pn),Ee-=cn,$e+=cn*St.c,fe+=cn}xt(fe==_t),St.C=St.Ma=_t}function Tu(){this.ub=this.yd=this.td=this.Rb=0}function Gu(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function oh(){this.Fb=this.Bb=this.Cb=0,this.Zb=Zt(4),this.Lb=Zt(4)}function sh(){this.Yb=function(){var St=[];return function _t(fe,Ee,$e){for(var mn=$e[Ee],cn=0;cn<mn&&(fe.push($e.length>Ee+1?[]:0),!($e.length<Ee+1));cn++)_t(fe[cn],Ee+1,$e)}(St,0,[3,11]),St}()}function Va(){this.jb=Zt(3),this.Wc=ye([4,8],sh),this.Xc=ye([4,17],sh)}function Cu(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Zt(4),this.od=new Zt(4)}function Sl(){this.ld=this.La=this.dd=this.tc=0}function dl(){this.Na=this.la=0}function ph(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ec(){this.ad=Zt(384),this.Za=0,this.Ob=Zt(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function bh(){this.uc=this.M=this.Nb=0,this.wa=Array(new Sl),this.Y=0,this.ya=Array(new ec),this.aa=0,this.l=new Wu}function Dh(){this.y=Zt(16),this.f=Zt(8),this.ea=Zt(8)}function fc(){this.cb=this.a=0,this.sc="",this.m=new Xn,this.Od=new Tu,this.Kc=new Gu,this.ed=new Cu,this.Qa=new oh,this.Ic=this.$c=this.Aa=0,this.D=new bh,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=pe(8,Xn),this.ia=0,this.pb=pe(4,ph),this.Pa=new Va,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Dh),this.Hd=0,this.rb=Array(new dl),this.sb=0,this.wa=Array(new Sl),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 ec),this.L=this.aa=0,this.gd=ye([4,2],Sl),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 Wu(){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 Ta(){var St=new fc;return St!=null&&(St.a=0,St.sc="OK",St.cb=0,St.Xb=0,Pu||(Pu=ga)),St}function ra(St,_t,fe){return St.a==0&&(St.a=_t,St.sc=fe,St.cb=0),0}function uu(St,_t,fe){return 3<=fe&&St[_t+0]==157&&St[_t+1]==1&&St[_t+2]==42}function wl(St,_t){if(St==null)return 0;if(St.a=0,St.sc="OK",_t==null)return ra(St,2,"null VP8Io passed to VP8GetHeaders()");var fe=_t.data,Ee=_t.w,$e=_t.ha;if(4>$e)return ra(St,7,"Truncated header.");var mn=fe[Ee+0]|fe[Ee+1]<<8|fe[Ee+2]<<16,cn=St.Od;if(cn.Rb=!(1&mn),cn.td=mn>>1&7,cn.yd=mn>>4&1,cn.ub=mn>>5,3<cn.td)return ra(St,3,"Incorrect keyframe parameters.");if(!cn.yd)return ra(St,4,"Frame not displayable.");Ee+=3,$e-=3;var Sn=St.Kc;if(cn.Rb){if(7>$e)return ra(St,7,"cannot parse picture header");if(!uu(fe,Ee,$e))return ra(St,3,"Bad code word");Sn.c=16383&(fe[Ee+4]<<8|fe[Ee+3]),Sn.Td=fe[Ee+4]>>6,Sn.i=16383&(fe[Ee+6]<<8|fe[Ee+5]),Sn.Ud=fe[Ee+6]>>6,Ee+=7,$e-=7,St.za=Sn.c+15>>4,St.Ub=Sn.i+15>>4,_t.width=Sn.c,_t.height=Sn.i,_t.Da=0,_t.j=0,_t.v=0,_t.va=_t.width,_t.o=_t.height,_t.da=0,_t.ib=_t.width,_t.hb=_t.height,_t.U=_t.width,_t.T=_t.height,se((mn=St.Pa).jb,0,255,mn.jb.length),xt((mn=St.Qa)!=null),mn.Cb=0,mn.Bb=0,mn.Fb=1,se(mn.Zb,0,0,mn.Zb.length),se(mn.Lb,0,0,mn.Lb)}if(cn.ub>$e)return ra(St,7,"bad partition length");Ce(mn=St.m,fe,Ee,cn.ub),Ee+=cn.ub,$e-=cn.ub,cn.Rb&&(Sn.Ld=oi(mn),Sn.Kd=oi(mn)),Sn=St.Qa;var Pn,zn=St.Pa;if(xt(mn!=null),xt(Sn!=null),Sn.Cb=oi(mn),Sn.Cb){if(Sn.Bb=oi(mn),oi(mn)){for(Sn.Fb=oi(mn),Pn=0;4>Pn;++Pn)Sn.Zb[Pn]=oi(mn)?en(mn,7):0;for(Pn=0;4>Pn;++Pn)Sn.Lb[Pn]=oi(mn)?en(mn,6):0}if(Sn.Bb)for(Pn=0;3>Pn;++Pn)zn.jb[Pn]=oi(mn)?Ve(mn,8):255}else Sn.Bb=0;if(mn.Ka)return ra(St,3,"cannot parse segment header");if((Sn=St.ed).zd=oi(mn),Sn.Tb=Ve(mn,6),Sn.wb=Ve(mn,3),Sn.Pc=oi(mn),Sn.Pc&&oi(mn)){for(zn=0;4>zn;++zn)oi(mn)&&(Sn.vd[zn]=en(mn,6));for(zn=0;4>zn;++zn)oi(mn)&&(Sn.od[zn]=en(mn,6))}if(St.L=Sn.Tb==0?0:Sn.zd?1:2,mn.Ka)return ra(St,3,"cannot parse filter header");var Bi=$e;if($e=Pn=Ee,Ee=Pn+Bi,Sn=Bi,St.Xb=(1<<Ve(St.m,2))-1,Bi<3*(zn=St.Xb))fe=7;else{for(Pn+=3*zn,Sn-=3*zn,Bi=0;Bi<zn;++Bi){var Ni=fe[$e+0]|fe[$e+1]<<8|fe[$e+2]<<16;Ni>Sn&&(Ni=Sn),Ce(St.Jc[+Bi],fe,Pn,Ni),Pn+=Ni,Sn-=Ni,$e+=3}Ce(St.Jc[+zn],fe,Pn,Sn),fe=Pn<Ee?0:5}if(fe!=0)return ra(St,fe,"cannot parse partitions");for(fe=Ve(Pn=St.m,7),$e=oi(Pn)?en(Pn,4):0,Ee=oi(Pn)?en(Pn,4):0,Sn=oi(Pn)?en(Pn,4):0,zn=oi(Pn)?en(Pn,4):0,Pn=oi(Pn)?en(Pn,4):0,Bi=St.Qa,Ni=0;4>Ni;++Ni){if(Bi.Cb){var tr=Bi.Zb[Ni];Bi.Fb||(tr+=fe)}else{if(0<Ni){St.pb[Ni]=St.pb[0];continue}tr=fe}var Ui=St.pb[Ni];Ui.Sc[0]=fA[Eh(tr+$e,127)],Ui.Sc[1]=Nd[Eh(tr+0,127)],Ui.Eb[0]=2*fA[Eh(tr+Ee,127)],Ui.Eb[1]=101581*Nd[Eh(tr+Sn,127)]>>16,8>Ui.Eb[1]&&(Ui.Eb[1]=8),Ui.Qc[0]=fA[Eh(tr+zn,117)],Ui.Qc[1]=Nd[Eh(tr+Pn,127)],Ui.lc=tr+Pn}if(!cn.Rb)return ra(St,4,"Not a key frame.");for(oi(mn),cn=St.Pa,fe=0;4>fe;++fe){for($e=0;8>$e;++$e)for(Ee=0;3>Ee;++Ee)for(Sn=0;11>Sn;++Sn)zn=Ei(mn,VA[fe][$e][Ee][Sn])?Ve(mn,8):wp[fe][$e][Ee][Sn],cn.Wc[fe][$e].Yb[Ee][Sn]=zn;for($e=0;17>$e;++$e)cn.Xc[fe][$e]=cn.Wc[fe][Yf[$e]]}return St.kc=oi(mn),St.kc&&(St.Bd=Ve(mn,8)),St.cb=1}function ga(St,_t,fe,Ee,$e,mn,cn){var Sn=_t[$e].Yb[fe];for(fe=0;16>$e;++$e){if(!Ei(St,Sn[fe+0]))return $e;for(;!Ei(St,Sn[fe+1]);)if(Sn=_t[++$e].Yb[0],fe=0,$e==16)return 16;var Pn=_t[$e+1].Yb;if(Ei(St,Sn[fe+2])){var zn=St,Bi=0;if(Ei(zn,(tr=Sn)[(Ni=fe)+3]))if(Ei(zn,tr[Ni+6])){for(Sn=0,Ni=2*(Bi=Ei(zn,tr[Ni+8]))+(tr=Ei(zn,tr[Ni+9+Bi])),Bi=0,tr=Sh[Ni];tr[Sn];++Sn)Bi+=Bi+Ei(zn,tr[Sn]);Bi+=3+(8<<Ni)}else Ei(zn,tr[Ni+7])?(Bi=7+2*Ei(zn,165),Bi+=Ei(zn,145)):Bi=5+Ei(zn,159);else Bi=Ei(zn,tr[Ni+4])?3+Ei(zn,tr[Ni+5]):2;Sn=Pn[2]}else Bi=1,Sn=Pn[1];Pn=cn+Zf[$e],0>(zn=St).b&&li(zn);var Ni,tr=zn.b,Ui=(Ni=zn.Ca>>1)-(zn.I>>tr)>>31;--zn.b,zn.Ca+=Ui,zn.Ca|=1,zn.I-=(Ni+1&Ui)<<tr,mn[Pn]=((Bi^Ui)-Ui)*Ee[(0<$e)+0]}return 16}function hu(St){var _t=St.rb[St.sb-1];_t.la=0,_t.Na=0,se(St.zc,0,0,St.zc.length),St.ja=0}function Ru(St,_t){if(St==null)return 0;if(_t==null)return ra(St,2,"NULL VP8Io parameter in VP8Decode().");if(!St.cb&&!wl(St,_t))return 0;if(xt(St.cb),_t.ac==null||_t.ac(_t)){_t.ob&&(St.L=0);var fe=ti[St.L];if(St.L==2?(St.yb=0,St.zb=0):(St.yb=_t.v-fe>>4,St.zb=_t.j-fe>>4,0>St.yb&&(St.yb=0),0>St.zb&&(St.zb=0)),St.Va=_t.o+15+fe>>4,St.Hb=_t.va+15+fe>>4,St.Hb>St.za&&(St.Hb=St.za),St.Va>St.Ub&&(St.Va=St.Ub),0<St.L){var Ee=St.ed;for(fe=0;4>fe;++fe){var $e;if(St.Qa.Cb){var mn=St.Qa.Lb[fe];St.Qa.Fb||(mn+=Ee.Tb)}else mn=Ee.Tb;for($e=0;1>=$e;++$e){var cn=St.gd[fe][$e],Sn=mn;if(Ee.Pc&&(Sn+=Ee.vd[0],$e&&(Sn+=Ee.od[0])),0<(Sn=0>Sn?0:63<Sn?63:Sn)){var Pn=Sn;0<Ee.wb&&(Pn=4<Ee.wb?Pn>>2:Pn>>1)>9-Ee.wb&&(Pn=9-Ee.wb),1>Pn&&(Pn=1),cn.dd=Pn,cn.tc=2*Sn+Pn,cn.ld=40<=Sn?2:15<=Sn?1:0}else cn.tc=0;cn.La=$e}}}fe=0}else ra(St,6,"Frame setup failed"),fe=St.a;if(fe=fe==0){if(fe){St.$c=0,0<St.Aa||(St.Ic=Oi);t:{fe=St.Ic,Ee=4*(Pn=St.za);var zn=32*Pn,Bi=Pn+1,Ni=0<St.L?Pn*(0<St.Aa?2:1):0,tr=(St.Aa==2?2:1)*Pn;if((cn=Ee+832+($e=3*(16*fe+ti[St.L])/2*zn)+(mn=St.Fa!=null&&0<St.Fa.length?St.Kc.c*St.Kc.i:0))!=cn)fe=0;else{if(cn>St.Vb){if(St.Vb=0,St.Ec=Zt(cn),St.Fc=0,St.Ec==null){fe=ra(St,1,"no memory during frame initialization.");break t}St.Vb=cn}cn=St.Ec,Sn=St.Fc,St.Ac=cn,St.Bc=Sn,Sn+=Ee,St.Gd=pe(zn,Dh),St.Hd=0,St.rb=pe(Bi+1,dl),St.sb=1,St.wa=Ni?pe(Ni,Sl):null,St.Y=0,St.D.Nb=0,St.D.wa=St.wa,St.D.Y=St.Y,0<St.Aa&&(St.D.Y+=Pn),xt(!0),St.oc=cn,St.pc=Sn,Sn+=832,St.ya=pe(tr,ec),St.aa=0,St.D.ya=St.ya,St.D.aa=St.aa,St.Aa==2&&(St.D.aa+=Pn),St.R=16*Pn,St.B=8*Pn,Pn=(zn=ti[St.L])*St.R,zn=zn/2*St.B,St.sa=cn,St.ta=Sn+Pn,St.qa=St.sa,St.ra=St.ta+16*fe*St.R+zn,St.Ha=St.qa,St.Ia=St.ra+8*fe*St.B+zn,St.$c=0,Sn+=$e,St.mb=mn?cn:null,St.nb=mn?Sn:null,xt(Sn+mn<=St.Fc+St.Vb),hu(St),se(St.Ac,St.Bc,0,Ee),fe=1}}if(fe){if(_t.ka=0,_t.y=St.sa,_t.O=St.ta,_t.f=St.qa,_t.N=St.ra,_t.ea=St.Ha,_t.Vd=St.Ia,_t.fa=St.R,_t.Rc=St.B,_t.F=null,_t.J=0,!Xl){for(fe=-255;255>=fe;++fe)El[255+fe]=0>fe?-fe:fe;for(fe=-1020;1020>=fe;++fe)wu[1020+fe]=-128>fe?-128:127<fe?127:fe;for(fe=-112;112>=fe;++fe)Uo[112+fe]=-16>fe?-16:15<fe?15:fe;for(fe=-255;510>=fe;++fe)Ca[255+fe]=0>fe?0:255<fe?255:fe;Xl=1}De=HA,an=EA,xn=$c,Mi=Fc,bi=ad,Zn=jh,Mr=Kd,jr=gc,qr=lf,Co=rc,$o=FA,Oo=uA,ss=QA,Ds=Gd,Do=Nc,Js=Uh,_l=Vu,$l=Ic,Qh[0]=mh,Qh[1]=Sd,Qh[2]=Xc,Qh[3]=Pd,Qh[4]=qu,Qh[5]=ud,Qh[6]=Hd,Qh[7]=th,Qh[8]=Ed,Qh[9]=bd,NA[0]=ah,NA[1]=ld,NA[2]=Lc,NA[3]=_d,NA[4]=Ul,NA[5]=Bd,NA[6]=lA,Ad[0]=Mc,Ad[1]=Rd,Ad[2]=Qd,Ad[3]=nu,Ad[4]=xa,Ad[5]=du,Ad[6]=hl,fe=1}else fe=0}fe&&(fe=function(Ui,Pr){for(Ui.M=0;Ui.M<Ui.Va;++Ui.M){var Lr,ji=Ui.Jc[Ui.M&Ui.Xb],Ki=Ui.m,Dr=Ui;for(Lr=0;Lr<Dr.za;++Lr){var eo=Ki,ro=Dr,ts=ro.Ac,Wo=ro.Bc+4*Lr,Ks=ro.zc,Jn=ro.ya[ro.aa+Lr];if(ro.Qa.Bb?Jn.$b=Ei(eo,ro.Pa.jb[0])?2+Ei(eo,ro.Pa.jb[2]):Ei(eo,ro.Pa.jb[1]):Jn.$b=0,ro.kc&&(Jn.Ad=Ei(eo,ro.Bd)),Jn.Za=!Ei(eo,145)+0,Jn.Za){var gl=Jn.Ob,Tl=0;for(ro=0;4>ro;++ro){var rl,Qa=Ks[0+ro];for(rl=0;4>rl;++rl){Qa=WA[ts[Wo+rl]][Qa];for(var zl=Kg[Ei(eo,Qa[0])];0<zl;)zl=Kg[2*zl+Ei(eo,Qa[zl])];Qa=-zl,ts[Wo+rl]=Qa}Rt(gl,Tl,ts,Wo,4),Tl+=4,Ks[0+ro]=Qa}}else Qa=Ei(eo,156)?Ei(eo,128)?1:3:Ei(eo,163)?2:0,Jn.Ob[0]=Qa,se(ts,Wo,Qa,4),se(Ks,0,Qa,4);Jn.Dd=Ei(eo,142)?Ei(eo,114)?Ei(eo,183)?1:3:2:0}if(Dr.m.Ka)return ra(Ui,7,"Premature end-of-partition0 encountered.");for(;Ui.ja<Ui.za;++Ui.ja){if(Dr=ji,eo=(Ki=Ui).rb[Ki.sb-1],ts=Ki.rb[Ki.sb+Ki.ja],Lr=Ki.ya[Ki.aa+Ki.ja],Wo=Ki.kc?Lr.Ad:0)eo.la=ts.la=0,Lr.Za||(eo.Na=ts.Na=0),Lr.Hc=0,Lr.Gc=0,Lr.ia=0;else{var Ha,ua;if(eo=ts,ts=Dr,Wo=Ki.Pa.Xc,Ks=Ki.ya[Ki.aa+Ki.ja],Jn=Ki.pb[Ks.$b],ro=Ks.ad,gl=0,Tl=Ki.rb[Ki.sb-1],Qa=rl=0,se(ro,gl,0,384),Ks.Za)var Qu=0,Id=Wo[3];else{zl=Zt(16);var Lh=eo.Na+Tl.Na;if(Lh=Pu(ts,Wo[1],Lh,Jn.Eb,0,zl,0),eo.Na=Tl.Na=(0<Lh)+0,1<Lh)De(zl,0,ro,gl);else{var gd=zl[0]+3>>3;for(zl=0;256>zl;zl+=16)ro[gl+zl]=gd}Qu=1,Id=Wo[0]}var bu=15&eo.la,Ch=15&Tl.la;for(zl=0;4>zl;++zl){var pd=1&Ch;for(gd=ua=0;4>gd;++gd)bu=bu>>1|(pd=(Lh=Pu(ts,Id,Lh=pd+(1&bu),Jn.Sc,Qu,ro,gl))>Qu)<<7,ua=ua<<2|(3<Lh?3:1<Lh?2:ro[gl+0]!=0),gl+=16;bu>>=4,Ch=Ch>>1|pd<<7,rl=(rl<<8|ua)>>>0}for(Id=bu,Qu=Ch>>4,Ha=0;4>Ha;Ha+=2){for(ua=0,bu=eo.la>>4+Ha,Ch=Tl.la>>4+Ha,zl=0;2>zl;++zl){for(pd=1&Ch,gd=0;2>gd;++gd)Lh=pd+(1&bu),bu=bu>>1|(pd=0<(Lh=Pu(ts,Wo[2],Lh,Jn.Qc,0,ro,gl)))<<3,ua=ua<<2|(3<Lh?3:1<Lh?2:ro[gl+0]!=0),gl+=16;bu>>=2,Ch=Ch>>1|pd<<5}Qa|=ua<<4*Ha,Id|=bu<<4<<Ha,Qu|=(240&Ch)<<Ha}eo.la=Id,Tl.la=Qu,Ks.Hc=rl,Ks.Gc=Qa,Ks.ia=43690&Qa?0:Jn.ia,Wo=!(rl|Qa)}if(0<Ki.L&&(Ki.wa[Ki.Y+Ki.ja]=Ki.gd[Lr.$b][Lr.Za],Ki.wa[Ki.Y+Ki.ja].La|=!Wo),Dr.Ka)return ra(Ui,7,"Premature end-of-file encountered.")}if(hu(Ui),Ki=Pr,Dr=1,Lr=(ji=Ui).D,eo=0<ji.L&&ji.M>=ji.zb&&ji.M<=ji.Va,ji.Aa==0)t:{if(Lr.M=ji.M,Lr.uc=eo,dA(ji,Lr),Dr=1,Lr=(ua=ji.D).Nb,eo=(Qa=ti[ji.L])*ji.R,ts=Qa/2*ji.B,zl=16*Lr*ji.R,gd=8*Lr*ji.B,Wo=ji.sa,Ks=ji.ta-eo+zl,Jn=ji.qa,ro=ji.ra-ts+gd,gl=ji.Ha,Tl=ji.Ia-ts+gd,Ch=(bu=ua.M)==0,rl=bu>=ji.Va-1,ji.Aa==2&&dA(ji,ua),ua.uc)for(pd=(Lh=ji).D.M,xt(Lh.D.uc),ua=Lh.yb;ua<Lh.Hb;++ua){Qu=ua,Id=pd;var Kh=(ac=(nh=Lh).D).Nb;Ha=nh.R;var ac=ac.wa[ac.Y+Qu],Dc=nh.sa,Jd=nh.ta+16*Kh*Ha+16*Qu,TA=ac.dd,lc=ac.tc;if(lc!=0)if(xt(3<=lc),nh.L==1)0<Qu&&Js(Dc,Jd,Ha,lc+4),ac.La&&$l(Dc,Jd,Ha,lc),0<Id&&Do(Dc,Jd,Ha,lc+4),ac.La&&_l(Dc,Jd,Ha,lc);else{var lh=nh.B,$f=nh.qa,YA=nh.ra+8*Kh*lh+8*Qu,uf=nh.Ha,nh=nh.Ia+8*Kh*lh+8*Qu;Kh=ac.ld,0<Qu&&(jr(Dc,Jd,Ha,lc+4,TA,Kh),Co($f,YA,uf,nh,lh,lc+4,TA,Kh)),ac.La&&(Oo(Dc,Jd,Ha,lc,TA,Kh),Ds($f,YA,uf,nh,lh,lc,TA,Kh)),0<Id&&(Mr(Dc,Jd,Ha,lc+4,TA,Kh),qr($f,YA,uf,nh,lh,lc+4,TA,Kh)),ac.La&&($o(Dc,Jd,Ha,lc,TA,Kh),ss($f,YA,uf,nh,lh,lc,TA,Kh))}}if(ji.ia&&alert("todo:DitherRow"),Ki.put!=null){if(ua=16*bu,bu=16*(bu+1),Ch?(Ki.y=ji.sa,Ki.O=ji.ta+zl,Ki.f=ji.qa,Ki.N=ji.ra+gd,Ki.ea=ji.Ha,Ki.W=ji.Ia+gd):(ua-=Qa,Ki.y=Wo,Ki.O=Ks,Ki.f=Jn,Ki.N=ro,Ki.ea=gl,Ki.W=Tl),rl||(bu-=Qa),bu>Ki.o&&(bu=Ki.o),Ki.F=null,Ki.J=null,ji.Fa!=null&&0<ji.Fa.length&&ua<bu&&(Ki.J=KA(ji,Ki,ua,bu-ua),Ki.F=ji.mb,Ki.F==null&&Ki.F.length==0)){Dr=ra(ji,3,"Could not decode alpha data.");break t}ua<Ki.j&&(Qa=Ki.j-ua,ua=Ki.j,xt(!(1&Qa)),Ki.O+=ji.R*Qa,Ki.N+=ji.B*(Qa>>1),Ki.W+=ji.B*(Qa>>1),Ki.F!=null&&(Ki.J+=Ki.width*Qa)),ua<bu&&(Ki.O+=Ki.v,Ki.N+=Ki.v>>1,Ki.W+=Ki.v>>1,Ki.F!=null&&(Ki.J+=Ki.v),Ki.ka=ua-Ki.j,Ki.U=Ki.va-Ki.v,Ki.T=bu-ua,Dr=Ki.put(Ki))}Lr+1!=ji.Ic||rl||(Rt(ji.sa,ji.ta-eo,Wo,Ks+16*ji.R,eo),Rt(ji.qa,ji.ra-ts,Jn,ro+8*ji.B,ts),Rt(ji.Ha,ji.Ia-ts,gl,Tl+8*ji.B,ts))}if(!Dr)return ra(Ui,6,"Output aborted.")}return 1}(St,_t)),_t.bc!=null&&_t.bc(_t),fe&=1}return fe?(St.cb=0,fe):0}function ku(St,_t,fe,Ee,$e){$e=St[_t+fe+32*Ee]+($e>>3),St[_t+fe+32*Ee]=-256&$e?0>$e?0:255:$e}function Yc(St,_t,fe,Ee,$e,mn){ku(St,_t,0,fe,Ee+$e),ku(St,_t,1,fe,Ee+mn),ku(St,_t,2,fe,Ee-mn),ku(St,_t,3,fe,Ee-$e)}function jn(St){return(20091*St>>16)+St}function nc(St,_t,fe,Ee){var $e,mn=0,cn=Zt(16);for($e=0;4>$e;++$e){var Sn=St[_t+0]+St[_t+8],Pn=St[_t+0]-St[_t+8],zn=(35468*St[_t+4]>>16)-jn(St[_t+12]),Bi=jn(St[_t+4])+(35468*St[_t+12]>>16);cn[mn+0]=Sn+Bi,cn[mn+1]=Pn+zn,cn[mn+2]=Pn-zn,cn[mn+3]=Sn-Bi,mn+=4,_t++}for($e=mn=0;4>$e;++$e)Sn=(St=cn[mn+0]+4)+cn[mn+8],Pn=St-cn[mn+8],zn=(35468*cn[mn+4]>>16)-jn(cn[mn+12]),ku(fe,Ee,0,0,Sn+(Bi=jn(cn[mn+4])+(35468*cn[mn+12]>>16))),ku(fe,Ee,1,0,Pn+zn),ku(fe,Ee,2,0,Pn-zn),ku(fe,Ee,3,0,Sn-Bi),mn++,Ee+=32}function jh(St,_t,fe,Ee){var $e=St[_t+0]+4,mn=35468*St[_t+4]>>16,cn=jn(St[_t+4]),Sn=35468*St[_t+1]>>16;Yc(fe,Ee,0,$e+cn,St=jn(St[_t+1]),Sn),Yc(fe,Ee,1,$e+mn,St,Sn),Yc(fe,Ee,2,$e-mn,St,Sn),Yc(fe,Ee,3,$e-cn,St,Sn)}function EA(St,_t,fe,Ee,$e){nc(St,_t,fe,Ee),$e&&nc(St,_t+16,fe,Ee+4)}function $c(St,_t,fe,Ee){an(St,_t+0,fe,Ee,1),an(St,_t+32,fe,Ee+128,1)}function Fc(St,_t,fe,Ee){var $e;for(St=St[_t+0]+4,$e=0;4>$e;++$e)for(_t=0;4>_t;++_t)ku(fe,Ee,_t,$e,St)}function ad(St,_t,fe,Ee){St[_t+0]&&Mi(St,_t+0,fe,Ee),St[_t+16]&&Mi(St,_t+16,fe,Ee+4),St[_t+32]&&Mi(St,_t+32,fe,Ee+128),St[_t+48]&&Mi(St,_t+48,fe,Ee+128+4)}function HA(St,_t,fe,Ee){var $e,mn=Zt(16);for($e=0;4>$e;++$e){var cn=St[_t+0+$e]+St[_t+12+$e],Sn=St[_t+4+$e]+St[_t+8+$e],Pn=St[_t+4+$e]-St[_t+8+$e],zn=St[_t+0+$e]-St[_t+12+$e];mn[0+$e]=cn+Sn,mn[8+$e]=cn-Sn,mn[4+$e]=zn+Pn,mn[12+$e]=zn-Pn}for($e=0;4>$e;++$e)cn=(St=mn[0+4*$e]+3)+mn[3+4*$e],Sn=mn[1+4*$e]+mn[2+4*$e],Pn=mn[1+4*$e]-mn[2+4*$e],zn=St-mn[3+4*$e],fe[Ee+0]=cn+Sn>>3,fe[Ee+16]=zn+Pn>>3,fe[Ee+32]=cn-Sn>>3,fe[Ee+48]=zn-Pn>>3,Ee+=64}function vu(St,_t,fe){var Ee,$e=_t-32,mn=aa,cn=255-St[$e-1];for(Ee=0;Ee<fe;++Ee){var Sn,Pn=mn,zn=cn+St[_t-1];for(Sn=0;Sn<fe;++Sn)St[_t+Sn]=Pn[zn+St[$e+Sn]];_t+=32}}function Sd(St,_t){vu(St,_t,4)}function Rd(St,_t){vu(St,_t,8)}function ld(St,_t){vu(St,_t,16)}function Lc(St,_t){var fe;for(fe=0;16>fe;++fe)Rt(St,_t+32*fe,St,_t-32,16)}function _d(St,_t){var fe;for(fe=16;0<fe;--fe)se(St,_t,St[_t-1],16),_t+=32}function Cd(St,_t,fe){var Ee;for(Ee=0;16>Ee;++Ee)se(_t,fe+32*Ee,St,16)}function ah(St,_t){var fe,Ee=16;for(fe=0;16>fe;++fe)Ee+=St[_t-1+32*fe]+St[_t+fe-32];Cd(Ee>>5,St,_t)}function Ul(St,_t){var fe,Ee=8;for(fe=0;16>fe;++fe)Ee+=St[_t-1+32*fe];Cd(Ee>>4,St,_t)}function Bd(St,_t){var fe,Ee=8;for(fe=0;16>fe;++fe)Ee+=St[_t+fe-32];Cd(Ee>>4,St,_t)}function lA(St,_t){Cd(128,St,_t)}function Ys(St,_t,fe){return St+2*_t+fe+2>>2}function Xc(St,_t){var fe,Ee=_t-32;for(Ee=new Uint8Array([Ys(St[Ee-1],St[Ee+0],St[Ee+1]),Ys(St[Ee+0],St[Ee+1],St[Ee+2]),Ys(St[Ee+1],St[Ee+2],St[Ee+3]),Ys(St[Ee+2],St[Ee+3],St[Ee+4])]),fe=0;4>fe;++fe)Rt(St,_t+32*fe,Ee,0,Ee.length)}function Pd(St,_t){var fe=St[_t-1],Ee=St[_t-1+32],$e=St[_t-1+64],mn=St[_t-1+96];Ii(St,_t+0,16843009*Ys(St[_t-1-32],fe,Ee)),Ii(St,_t+32,16843009*Ys(fe,Ee,$e)),Ii(St,_t+64,16843009*Ys(Ee,$e,mn)),Ii(St,_t+96,16843009*Ys($e,mn,mn))}function mh(St,_t){var fe,Ee=4;for(fe=0;4>fe;++fe)Ee+=St[_t+fe-32]+St[_t-1+32*fe];for(Ee>>=3,fe=0;4>fe;++fe)se(St,_t+32*fe,Ee,4)}function qu(St,_t){var fe=St[_t-1+0],Ee=St[_t-1+32],$e=St[_t-1+64],mn=St[_t-1-32],cn=St[_t+0-32],Sn=St[_t+1-32],Pn=St[_t+2-32],zn=St[_t+3-32];St[_t+0+96]=Ys(Ee,$e,St[_t-1+96]),St[_t+1+96]=St[_t+0+64]=Ys(fe,Ee,$e),St[_t+2+96]=St[_t+1+64]=St[_t+0+32]=Ys(mn,fe,Ee),St[_t+3+96]=St[_t+2+64]=St[_t+1+32]=St[_t+0+0]=Ys(cn,mn,fe),St[_t+3+64]=St[_t+2+32]=St[_t+1+0]=Ys(Sn,cn,mn),St[_t+3+32]=St[_t+2+0]=Ys(Pn,Sn,cn),St[_t+3+0]=Ys(zn,Pn,Sn)}function Hd(St,_t){var fe=St[_t+1-32],Ee=St[_t+2-32],$e=St[_t+3-32],mn=St[_t+4-32],cn=St[_t+5-32],Sn=St[_t+6-32],Pn=St[_t+7-32];St[_t+0+0]=Ys(St[_t+0-32],fe,Ee),St[_t+1+0]=St[_t+0+32]=Ys(fe,Ee,$e),St[_t+2+0]=St[_t+1+32]=St[_t+0+64]=Ys(Ee,$e,mn),St[_t+3+0]=St[_t+2+32]=St[_t+1+64]=St[_t+0+96]=Ys($e,mn,cn),St[_t+3+32]=St[_t+2+64]=St[_t+1+96]=Ys(mn,cn,Sn),St[_t+3+64]=St[_t+2+96]=Ys(cn,Sn,Pn),St[_t+3+96]=Ys(Sn,Pn,Pn)}function ud(St,_t){var fe=St[_t-1+0],Ee=St[_t-1+32],$e=St[_t-1+64],mn=St[_t-1-32],cn=St[_t+0-32],Sn=St[_t+1-32],Pn=St[_t+2-32],zn=St[_t+3-32];St[_t+0+0]=St[_t+1+64]=mn+cn+1>>1,St[_t+1+0]=St[_t+2+64]=cn+Sn+1>>1,St[_t+2+0]=St[_t+3+64]=Sn+Pn+1>>1,St[_t+3+0]=Pn+zn+1>>1,St[_t+0+96]=Ys($e,Ee,fe),St[_t+0+64]=Ys(Ee,fe,mn),St[_t+0+32]=St[_t+1+96]=Ys(fe,mn,cn),St[_t+1+32]=St[_t+2+96]=Ys(mn,cn,Sn),St[_t+2+32]=St[_t+3+96]=Ys(cn,Sn,Pn),St[_t+3+32]=Ys(Sn,Pn,zn)}function th(St,_t){var fe=St[_t+0-32],Ee=St[_t+1-32],$e=St[_t+2-32],mn=St[_t+3-32],cn=St[_t+4-32],Sn=St[_t+5-32],Pn=St[_t+6-32],zn=St[_t+7-32];St[_t+0+0]=fe+Ee+1>>1,St[_t+1+0]=St[_t+0+64]=Ee+$e+1>>1,St[_t+2+0]=St[_t+1+64]=$e+mn+1>>1,St[_t+3+0]=St[_t+2+64]=mn+cn+1>>1,St[_t+0+32]=Ys(fe,Ee,$e),St[_t+1+32]=St[_t+0+96]=Ys(Ee,$e,mn),St[_t+2+32]=St[_t+1+96]=Ys($e,mn,cn),St[_t+3+32]=St[_t+2+96]=Ys(mn,cn,Sn),St[_t+3+64]=Ys(cn,Sn,Pn),St[_t+3+96]=Ys(Sn,Pn,zn)}function bd(St,_t){var fe=St[_t-1+0],Ee=St[_t-1+32],$e=St[_t-1+64],mn=St[_t-1+96];St[_t+0+0]=fe+Ee+1>>1,St[_t+2+0]=St[_t+0+32]=Ee+$e+1>>1,St[_t+2+32]=St[_t+0+64]=$e+mn+1>>1,St[_t+1+0]=Ys(fe,Ee,$e),St[_t+3+0]=St[_t+1+32]=Ys(Ee,$e,mn),St[_t+3+32]=St[_t+1+64]=Ys($e,mn,mn),St[_t+3+64]=St[_t+2+64]=St[_t+0+96]=St[_t+1+96]=St[_t+2+96]=St[_t+3+96]=mn}function Ed(St,_t){var fe=St[_t-1+0],Ee=St[_t-1+32],$e=St[_t-1+64],mn=St[_t-1+96],cn=St[_t-1-32],Sn=St[_t+0-32],Pn=St[_t+1-32],zn=St[_t+2-32];St[_t+0+0]=St[_t+2+32]=fe+cn+1>>1,St[_t+0+32]=St[_t+2+64]=Ee+fe+1>>1,St[_t+0+64]=St[_t+2+96]=$e+Ee+1>>1,St[_t+0+96]=mn+$e+1>>1,St[_t+3+0]=Ys(Sn,Pn,zn),St[_t+2+0]=Ys(cn,Sn,Pn),St[_t+1+0]=St[_t+3+32]=Ys(fe,cn,Sn),St[_t+1+32]=St[_t+3+64]=Ys(Ee,fe,cn),St[_t+1+64]=St[_t+3+96]=Ys($e,Ee,fe),St[_t+1+96]=Ys(mn,$e,Ee)}function Qd(St,_t){var fe;for(fe=0;8>fe;++fe)Rt(St,_t+32*fe,St,_t-32,8)}function nu(St,_t){var fe;for(fe=0;8>fe;++fe)se(St,_t,St[_t-1],8),_t+=32}function cu(St,_t,fe){var Ee;for(Ee=0;8>Ee;++Ee)se(_t,fe+32*Ee,St,8)}function Mc(St,_t){var fe,Ee=8;for(fe=0;8>fe;++fe)Ee+=St[_t+fe-32]+St[_t-1+32*fe];cu(Ee>>4,St,_t)}function du(St,_t){var fe,Ee=4;for(fe=0;8>fe;++fe)Ee+=St[_t+fe-32];cu(Ee>>3,St,_t)}function xa(St,_t){var fe,Ee=4;for(fe=0;8>fe;++fe)Ee+=St[_t-1+32*fe];cu(Ee>>3,St,_t)}function hl(St,_t){cu(128,St,_t)}function Bu(St,_t,fe){var Ee=St[_t-fe],$e=St[_t+0],mn=3*($e-Ee)+Hl[1020+St[_t-2*fe]-St[_t+fe]],cn=Zu[112+(mn+4>>3)];St[_t-fe]=aa[255+Ee+Zu[112+(mn+3>>3)]],St[_t+0]=aa[255+$e-cn]}function vh(St,_t,fe,Ee){var $e=St[_t+0],mn=St[_t+fe];return zs[255+St[_t-2*fe]-St[_t-fe]]>Ee||zs[255+mn-$e]>Ee}function yh(St,_t,fe,Ee){return 4*zs[255+St[_t-fe]-St[_t+0]]+zs[255+St[_t-2*fe]-St[_t+fe]]<=Ee}function zd(St,_t,fe,Ee,$e){var mn=St[_t-3*fe],cn=St[_t-2*fe],Sn=St[_t-fe],Pn=St[_t+0],zn=St[_t+fe],Bi=St[_t+2*fe],Ni=St[_t+3*fe];return 4*zs[255+Sn-Pn]+zs[255+cn-zn]>Ee?0:zs[255+St[_t-4*fe]-mn]<=$e&&zs[255+mn-cn]<=$e&&zs[255+cn-Sn]<=$e&&zs[255+Ni-Bi]<=$e&&zs[255+Bi-zn]<=$e&&zs[255+zn-Pn]<=$e}function Nc(St,_t,fe,Ee){var $e=2*Ee+1;for(Ee=0;16>Ee;++Ee)yh(St,_t+Ee,fe,$e)&&Bu(St,_t+Ee,fe)}function Uh(St,_t,fe,Ee){var $e=2*Ee+1;for(Ee=0;16>Ee;++Ee)yh(St,_t+Ee*fe,1,$e)&&Bu(St,_t+Ee*fe,1)}function Vu(St,_t,fe,Ee){var $e;for($e=3;0<$e;--$e)Nc(St,_t+=4*fe,fe,Ee)}function Ic(St,_t,fe,Ee){var $e;for($e=3;0<$e;--$e)Uh(St,_t+=4,fe,Ee)}function Jc(St,_t,fe,Ee,$e,mn,cn,Sn){for(mn=2*mn+1;0<$e--;){if(zd(St,_t,fe,mn,cn))if(vh(St,_t,fe,Sn))Bu(St,_t,fe);else{var Pn=St,zn=_t,Bi=fe,Ni=Pn[zn-2*Bi],tr=Pn[zn-Bi],Ui=Pn[zn+0],Pr=Pn[zn+Bi],Lr=Pn[zn+2*Bi],ji=27*(Dr=Hl[1020+3*(Ui-tr)+Hl[1020+Ni-Pr]])+63>>7,Ki=18*Dr+63>>7,Dr=9*Dr+63>>7;Pn[zn-3*Bi]=aa[255+Pn[zn-3*Bi]+Dr],Pn[zn-2*Bi]=aa[255+Ni+Ki],Pn[zn-Bi]=aa[255+tr+ji],Pn[zn+0]=aa[255+Ui-ji],Pn[zn+Bi]=aa[255+Pr-Ki],Pn[zn+2*Bi]=aa[255+Lr-Dr]}_t+=Ee}}function ic(St,_t,fe,Ee,$e,mn,cn,Sn){for(mn=2*mn+1;0<$e--;){if(zd(St,_t,fe,mn,cn))if(vh(St,_t,fe,Sn))Bu(St,_t,fe);else{var Pn=St,zn=_t,Bi=fe,Ni=Pn[zn-Bi],tr=Pn[zn+0],Ui=Pn[zn+Bi],Pr=Zu[112+((Lr=3*(tr-Ni))+4>>3)],Lr=Zu[112+(Lr+3>>3)],ji=Pr+1>>1;Pn[zn-2*Bi]=aa[255+Pn[zn-2*Bi]+ji],Pn[zn-Bi]=aa[255+Ni+Lr],Pn[zn+0]=aa[255+tr-Pr],Pn[zn+Bi]=aa[255+Ui-ji]}_t+=Ee}}function Kd(St,_t,fe,Ee,$e,mn){Jc(St,_t,fe,1,16,Ee,$e,mn)}function gc(St,_t,fe,Ee,$e,mn){Jc(St,_t,1,fe,16,Ee,$e,mn)}function FA(St,_t,fe,Ee,$e,mn){var cn;for(cn=3;0<cn;--cn)ic(St,_t+=4*fe,fe,1,16,Ee,$e,mn)}function uA(St,_t,fe,Ee,$e,mn){var cn;for(cn=3;0<cn;--cn)ic(St,_t+=4,1,fe,16,Ee,$e,mn)}function lf(St,_t,fe,Ee,$e,mn,cn,Sn){Jc(St,_t,$e,1,8,mn,cn,Sn),Jc(fe,Ee,$e,1,8,mn,cn,Sn)}function rc(St,_t,fe,Ee,$e,mn,cn,Sn){Jc(St,_t,1,$e,8,mn,cn,Sn),Jc(fe,Ee,1,$e,8,mn,cn,Sn)}function QA(St,_t,fe,Ee,$e,mn,cn,Sn){ic(St,_t+4*$e,$e,1,8,mn,cn,Sn),ic(fe,Ee+4*$e,$e,1,8,mn,cn,Sn)}function Gd(St,_t,fe,Ee,$e,mn,cn,Sn){ic(St,_t+4,1,$e,8,mn,cn,Sn),ic(fe,Ee+4,1,$e,8,mn,cn,Sn)}function pc(){this.ba=new as,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ko,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function hd(){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 hA(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Rh(){this.ua=0,this.Wa=new _n,this.vb=new _n,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ge,this.yc=new $n}function zA(){this.xb=this.a=0,this.l=new Wu,this.ca=new as,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Te,this.Pb=0,this.wd=new Te,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Rh,this.ab=0,this.gc=pe(4,hA),this.Oc=0}function Fd(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Wu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Wd(St,_t,fe,Ee,$e,mn,cn){for(St=St==null?0:St[_t+0],_t=0;_t<cn;++_t)$e[mn+_t]=St+fe[Ee+_t]&255,St=$e[mn+_t]}function LA(St,_t,fe,Ee,$e,mn,cn){var Sn;if(St==null)Wd(null,null,fe,Ee,$e,mn,cn);else for(Sn=0;Sn<cn;++Sn)$e[mn+Sn]=St[_t+Sn]+fe[Ee+Sn]&255}function Tc(St,_t,fe,Ee,$e,mn,cn){if(St==null)Wd(null,null,fe,Ee,$e,mn,cn);else{var Sn,Pn=St[_t+0],zn=Pn,Bi=Pn;for(Sn=0;Sn<cn;++Sn)zn=Bi+(Pn=St[_t+Sn])-zn,Bi=fe[Ee+Sn]+(-256&zn?0>zn?0:255:zn)&255,zn=Pn,$e[mn+Sn]=Bi}}function KA(St,_t,fe,Ee){var $e=_t.width,mn=_t.o;if(xt(St!=null&&_t!=null),0>fe||0>=Ee||fe+Ee>mn)return null;if(!St.Cc){if(St.ga==null){var cn;if(St.ga=new Fd,(cn=St.ga==null)||(cn=_t.width*_t.o,xt(St.Gb.length==0),St.Gb=Zt(cn),St.Uc=0,St.Gb==null?cn=0:(St.mb=St.Gb,St.nb=St.Uc,St.rc=null,cn=1),cn=!cn),!cn){cn=St.ga;var Sn=St.Fa,Pn=St.P,zn=St.qc,Bi=St.mb,Ni=St.nb,tr=Pn+1,Ui=zn-1,Pr=cn.l;if(xt(Sn!=null&&Bi!=null&&_t!=null),zh[0]=null,zh[1]=Wd,zh[2]=LA,zh[3]=Tc,cn.ca=Bi,cn.tb=Ni,cn.c=_t.width,cn.i=_t.height,xt(0<cn.c&&0<cn.i),1>=zn)_t=0;else if(cn.$a=Sn[Pn+0]>>0&3,cn.Z=Sn[Pn+0]>>2&3,cn.Lc=Sn[Pn+0]>>4&3,Pn=Sn[Pn+0]>>6&3,0>cn.$a||1<cn.$a||4<=cn.Z||1<cn.Lc||Pn)_t=0;else if(Pr.put=ea,Pr.ac=_s,Pr.bc=Yl,Pr.ma=cn,Pr.width=_t.width,Pr.height=_t.height,Pr.Da=_t.Da,Pr.v=_t.v,Pr.va=_t.va,Pr.j=_t.j,Pr.o=_t.o,cn.$a)t:{xt(cn.$a==1),_t=Ia();e:for(;;){if(_t==null){_t=0;break t}if(xt(cn!=null),cn.mc=_t,_t.c=cn.c,_t.i=cn.i,_t.l=cn.l,_t.l.ma=cn,_t.l.width=cn.c,_t.l.height=cn.i,_t.a=0,un(_t.m,Sn,tr,Ui),!Nl(cn.c,cn.i,1,_t,null)||(_t.ab==1&&_t.gc[0].hc==3&&na(_t.s)?(cn.ic=1,Sn=_t.c*_t.i,_t.Ta=null,_t.Ua=0,_t.V=Zt(Sn),_t.Ba=0,_t.V==null?(_t.a=1,_t=0):_t=1):(cn.ic=0,_t=Iu(_t,cn.c)),!_t))break e;_t=1;break t}cn.mc=null,_t=0}else _t=Ui>=cn.c*cn.i;cn=!_t}if(cn)return null;St.ga.Lc!=1?St.Ga=0:Ee=mn-fe}xt(St.ga!=null),xt(fe+Ee<=mn);t:{if(_t=(Sn=St.ga).c,mn=Sn.l.o,Sn.$a==0){if(tr=St.rc,Ui=St.Vc,Pr=St.Fa,Pn=St.P+1+fe*_t,zn=St.mb,Bi=St.nb+fe*_t,xt(Pn<=St.P+St.qc),Sn.Z!=0)for(xt(zh[Sn.Z]!=null),cn=0;cn<Ee;++cn)zh[Sn.Z](tr,Ui,Pr,Pn,zn,Bi,_t),tr=zn,Ui=Bi,Bi+=_t,Pn+=_t;else for(cn=0;cn<Ee;++cn)Rt(zn,Bi,Pr,Pn,_t),tr=zn,Ui=Bi,Bi+=_t,Pn+=_t;St.rc=tr,St.Vc=Ui}else{if(xt(Sn.mc!=null),_t=fe+Ee,xt((cn=Sn.mc)!=null),xt(_t<=cn.i),cn.C>=_t)_t=1;else if(Sn.ic||ur(),Sn.ic){Sn=cn.V,tr=cn.Ba,Ui=cn.c;var Lr=cn.i,ji=(Pr=1,Pn=cn.$/Ui,zn=cn.$%Ui,Bi=cn.m,Ni=cn.s,cn.$),Ki=Ui*Lr,Dr=Ui*_t,eo=Ni.wc,ro=ji<Dr?Ra(Ni,zn,Pn):null;xt(ji<=Ki),xt(_t<=Lr),xt(na(Ni));e:for(;;){for(;!Bi.h&&ji<Dr;){if(zn&eo||(ro=Ra(Ni,zn,Pn)),xt(ro!=null),Vn(Bi),256>(Lr=yl(ro.G[0],ro.H[0],Bi)))Sn[tr+ji]=Lr,++ji,++zn>=Ui&&(zn=0,++Pn<=_t&&!(Pn%16)&&Xa(cn,Pn));else{if(!(280>Lr)){Pr=0;break e}Lr=eu(Lr-256,Bi);var ts,Wo=yl(ro.G[4],ro.H[4],Bi);if(Vn(Bi),!(ji>=(Wo=fa(Ui,Wo=eu(Wo,Bi)))&&Ki-ji>=Lr)){Pr=0;break e}for(ts=0;ts<Lr;++ts)Sn[tr+ji+ts]=Sn[tr+ji+ts-Wo];for(ji+=Lr,zn+=Lr;zn>=Ui;)zn-=Ui,++Pn<=_t&&!(Pn%16)&&Xa(cn,Pn);ji<Dr&&zn&eo&&(ro=Ra(Ni,zn,Pn))}xt(Bi.h==vn(Bi))}Xa(cn,Pn>_t?_t:Pn);break e}!Pr||Bi.h&&ji<Ki?(Pr=0,cn.a=Bi.h?5:3):cn.$=ji,_t=Pr}else _t=ul(cn,cn.V,cn.Ba,cn.c,cn.i,_t,mu);if(!_t){Ee=0;break t}}fe+Ee>=mn&&(St.Cc=1),Ee=1}if(!Ee)return null;if(St.Cc&&((Ee=St.ga)!=null&&(Ee.mc=null),St.ga=null,0<St.Ga))return alert("todo:WebPDequantizeLevels"),null}return St.nb+fe*$e}function Ae(St,_t,fe,Ee,$e,mn){for(;0<$e--;){var cn,Sn=St,Pn=_t+(fe?1:0),zn=St,Bi=_t+(fe?0:3);for(cn=0;cn<Ee;++cn){var Ni=zn[Bi+4*cn];Ni!=255&&(Ni*=32897,Sn[Pn+4*cn+0]=Sn[Pn+4*cn+0]*Ni>>23,Sn[Pn+4*cn+1]=Sn[Pn+4*cn+1]*Ni>>23,Sn[Pn+4*cn+2]=Sn[Pn+4*cn+2]*Ni>>23)}_t+=mn}}function yn(St,_t,fe,Ee,$e){for(;0<Ee--;){var mn;for(mn=0;mn<fe;++mn){var cn=St[_t+2*mn+0],Sn=15&(zn=St[_t+2*mn+1]),Pn=4369*Sn,zn=(240&zn|zn>>4)*Pn>>16;St[_t+2*mn+0]=(240&cn|cn>>4)*Pn>>16&240|(15&cn|cn<<4)*Pn>>16>>4&15,St[_t+2*mn+1]=240&zn|Sn}_t+=$e}}function mi(St,_t,fe,Ee,$e,mn,cn,Sn){var Pn,zn,Bi=255;for(zn=0;zn<$e;++zn){for(Pn=0;Pn<Ee;++Pn){var Ni=St[_t+Pn];mn[cn+4*Pn]=Ni,Bi&=Ni}_t+=fe,cn+=Sn}return Bi!=255}function Ri(St,_t,fe,Ee,$e){var mn;for(mn=0;mn<$e;++mn)fe[Ee+mn]=St[_t+mn]>>8}function ur(){fl=Ae,Ja=yn,Ua=mi,Za=Ri}function Qr(St,_t,fe){Ti[St]=function(Ee,$e,mn,cn,Sn,Pn,zn,Bi,Ni,tr,Ui,Pr,Lr,ji,Ki,Dr,eo){var ro,ts=eo-1>>1,Wo=Sn[Pn+0]|zn[Bi+0]<<16,Ks=Ni[tr+0]|Ui[Pr+0]<<16;xt(Ee!=null);var Jn=3*Wo+Ks+131074>>2;for(_t(Ee[$e+0],255&Jn,Jn>>16,Lr,ji),mn!=null&&(Jn=3*Ks+Wo+131074>>2,_t(mn[cn+0],255&Jn,Jn>>16,Ki,Dr)),ro=1;ro<=ts;++ro){var gl=Sn[Pn+ro]|zn[Bi+ro]<<16,Tl=Ni[tr+ro]|Ui[Pr+ro]<<16,rl=Wo+gl+Ks+Tl+524296,Qa=rl+2*(gl+Ks)>>3;Jn=Qa+Wo>>1,Wo=(rl=rl+2*(Wo+Tl)>>3)+gl>>1,_t(Ee[$e+2*ro-1],255&Jn,Jn>>16,Lr,ji+(2*ro-1)*fe),_t(Ee[$e+2*ro-0],255&Wo,Wo>>16,Lr,ji+(2*ro-0)*fe),mn!=null&&(Jn=rl+Ks>>1,Wo=Qa+Tl>>1,_t(mn[cn+2*ro-1],255&Jn,Jn>>16,Ki,Dr+(2*ro-1)*fe),_t(mn[cn+2*ro+0],255&Wo,Wo>>16,Ki,Dr+(2*ro+0)*fe)),Wo=gl,Ks=Tl}1&eo||(Jn=3*Wo+Ks+131074>>2,_t(Ee[$e+eo-1],255&Jn,Jn>>16,Lr,ji+(eo-1)*fe),mn!=null&&(Jn=3*Ks+Wo+131074>>2,_t(mn[cn+eo-1],255&Jn,Jn>>16,Ki,Dr+(eo-1)*fe)))}}function vo(){vc[ch]=yc,vc[fu]=xp,vc[Xd]=ZA,vc[Fh]=wf,vc[eh]=Rs,vc[xh]=Gg,vc[Ql]=Sp,vc[Hu]=xp,vc[qc]=wf,vc[Md]=Rs,vc[Cg]=Gg}function ps(St){return St&~Wg?0>St?0:255:St>>bg}function Ws(St,_t){return ps((19077*St>>8)+(26149*_t>>8)-14234)}function _a(St,_t,fe){return ps((19077*St>>8)-(6419*_t>>8)-(13320*fe>>8)+8708)}function ba(St,_t){return ps((19077*St>>8)+(33050*_t>>8)-17685)}function Cl(St,_t,fe,Ee,$e){Ee[$e+0]=Ws(St,fe),Ee[$e+1]=_a(St,_t,fe),Ee[$e+2]=ba(St,_t)}function Us(St,_t,fe,Ee,$e){Ee[$e+0]=ba(St,_t),Ee[$e+1]=_a(St,_t,fe),Ee[$e+2]=Ws(St,fe)}function Au(St,_t,fe,Ee,$e){var mn=_a(St,_t,fe);_t=mn<<3&224|ba(St,_t)>>3,Ee[$e+0]=248&Ws(St,fe)|mn>>5,Ee[$e+1]=_t}function yu(St,_t,fe,Ee,$e){var mn=240&ba(St,_t)|15;Ee[$e+0]=240&Ws(St,fe)|_a(St,_t,fe)>>4,Ee[$e+1]=mn}function Al(St,_t,fe,Ee,$e){Ee[$e+0]=255,Cl(St,_t,fe,Ee,$e+1)}function Il(St,_t,fe,Ee,$e){Us(St,_t,fe,Ee,$e),Ee[$e+3]=255}function wh(St,_t,fe,Ee,$e){Cl(St,_t,fe,Ee,$e),Ee[$e+3]=255}function Eh(St,_t){return 0>St?0:St>_t?_t:St}function oc(St,_t,fe){Ti[St]=function(Ee,$e,mn,cn,Sn,Pn,zn,Bi,Ni){for(var tr=Bi+(-2&Ni)*fe;Bi!=tr;)_t(Ee[$e+0],mn[cn+0],Sn[Pn+0],zn,Bi),_t(Ee[$e+1],mn[cn+0],Sn[Pn+0],zn,Bi+fe),$e+=2,++cn,++Pn,Bi+=2*fe;1&Ni&&_t(Ee[$e+0],mn[cn+0],Sn[Pn+0],zn,Bi)}}function Vd(St,_t,fe){return fe==0?St==0?_t==0?6:5:_t==0?4:0:fe}function cA(St,_t,fe,Ee,$e){switch(St>>>30){case 3:an(_t,fe,Ee,$e,0);break;case 2:Zn(_t,fe,Ee,$e);break;case 1:Mi(_t,fe,Ee,$e)}}function dA(St,_t){var fe,Ee,$e=_t.M,mn=_t.Nb,cn=St.oc,Sn=St.pc+40,Pn=St.oc,zn=St.pc+584,Bi=St.oc,Ni=St.pc+600;for(fe=0;16>fe;++fe)cn[Sn+32*fe-1]=129;for(fe=0;8>fe;++fe)Pn[zn+32*fe-1]=129,Bi[Ni+32*fe-1]=129;for(0<$e?cn[Sn-1-32]=Pn[zn-1-32]=Bi[Ni-1-32]=129:(se(cn,Sn-32-1,127,21),se(Pn,zn-32-1,127,9),se(Bi,Ni-32-1,127,9)),Ee=0;Ee<St.za;++Ee){var tr=_t.ya[_t.aa+Ee];if(0<Ee){for(fe=-1;16>fe;++fe)Rt(cn,Sn+32*fe-4,cn,Sn+32*fe+12,4);for(fe=-1;8>fe;++fe)Rt(Pn,zn+32*fe-4,Pn,zn+32*fe+4,4),Rt(Bi,Ni+32*fe-4,Bi,Ni+32*fe+4,4)}var Ui=St.Gd,Pr=St.Hd+Ee,Lr=tr.ad,ji=tr.Hc;if(0<$e&&(Rt(cn,Sn-32,Ui[Pr].y,0,16),Rt(Pn,zn-32,Ui[Pr].f,0,8),Rt(Bi,Ni-32,Ui[Pr].ea,0,8)),tr.Za){var Ki=cn,Dr=Sn-32+16;for(0<$e&&(Ee>=St.za-1?se(Ki,Dr,Ui[Pr].y[15],4):Rt(Ki,Dr,Ui[Pr+1].y,0,4)),fe=0;4>fe;fe++)Ki[Dr+128+fe]=Ki[Dr+256+fe]=Ki[Dr+384+fe]=Ki[Dr+0+fe];for(fe=0;16>fe;++fe,ji<<=2)Ki=cn,Dr=Sn+Fn[fe],Qh[tr.Ob[fe]](Ki,Dr),cA(ji,Lr,16*+fe,Ki,Dr)}else if(Ki=Vd(Ee,$e,tr.Ob[0]),NA[Ki](cn,Sn),ji!=0)for(fe=0;16>fe;++fe,ji<<=2)cA(ji,Lr,16*+fe,cn,Sn+Fn[fe]);for(fe=tr.Gc,Ki=Vd(Ee,$e,tr.Dd),Ad[Ki](Pn,zn),Ad[Ki](Bi,Ni),ji=Lr,Ki=Pn,Dr=zn,255&(tr=fe>>0)&&(170&tr?xn(ji,256,Ki,Dr):bi(ji,256,Ki,Dr)),tr=Bi,ji=Ni,255&(fe>>=8)&&(170&fe?xn(Lr,320,tr,ji):bi(Lr,320,tr,ji)),$e<St.Ub-1&&(Rt(Ui[Pr].y,0,cn,Sn+480,16),Rt(Ui[Pr].f,0,Pn,zn+224,8),Rt(Ui[Pr].ea,0,Bi,Ni+224,8)),fe=8*mn*St.B,Ui=St.sa,Pr=St.ta+16*Ee+16*mn*St.R,Lr=St.qa,tr=St.ra+8*Ee+fe,ji=St.Ha,Ki=St.Ia+8*Ee+fe,fe=0;16>fe;++fe)Rt(Ui,Pr+fe*St.R,cn,Sn+32*fe,16);for(fe=0;8>fe;++fe)Rt(Lr,tr+fe*St.B,Pn,zn+32*fe,8),Rt(ji,Ki+fe*St.B,Bi,Ni+32*fe,8)}}function AA(St,_t,fe,Ee,$e,mn,cn,Sn,Pn){var zn=[0],Bi=[0],Ni=0,tr=Pn!=null?Pn.kd:0,Ui=Pn!=null?Pn:new hd;if(St==null||12>fe)return 7;Ui.data=St,Ui.w=_t,Ui.ha=fe,_t=[_t],fe=[fe],Ui.gb=[Ui.gb];t:{var Pr=_t,Lr=fe,ji=Ui.gb;if(xt(St!=null),xt(Lr!=null),xt(ji!=null),ji[0]=0,12<=Lr[0]&&!Lt(St,Pr[0],"RIFF")){if(Lt(St,Pr[0]+8,"WEBP")){ji=3;break t}var Ki=Ar(St,Pr[0]+4);if(12>Ki||4294967286<Ki){ji=3;break t}if(tr&&Ki>Lr[0]-8){ji=7;break t}ji[0]=Ki,Pr[0]+=12,Lr[0]-=12}ji=0}if(ji!=0)return ji;for(Ki=0<Ui.gb[0],fe=fe[0];;){t:{var Dr=St;Lr=_t,ji=fe;var eo=zn,ro=Bi,ts=Pr=[0];if((Jn=Ni=[Ni])[0]=0,8>ji[0])ji=7;else{if(!Lt(Dr,Lr[0],"VP8X")){if(Ar(Dr,Lr[0]+4)!=10){ji=3;break t}if(18>ji[0]){ji=7;break t}var Wo=Ar(Dr,Lr[0]+8),Ks=1+sr(Dr,Lr[0]+12);if(2147483648<=Ks*(Dr=1+sr(Dr,Lr[0]+15))){ji=3;break t}ts!=null&&(ts[0]=Wo),eo!=null&&(eo[0]=Ks),ro!=null&&(ro[0]=Dr),Lr[0]+=18,ji[0]-=18,Jn[0]=1}ji=0}}if(Ni=Ni[0],Pr=Pr[0],ji!=0)return ji;if(Lr=!!(2&Pr),!Ki&&Ni)return 3;if(mn!=null&&(mn[0]=!!(16&Pr)),cn!=null&&(cn[0]=Lr),Sn!=null&&(Sn[0]=0),cn=zn[0],Pr=Bi[0],Ni&&Lr&&Pn==null){ji=0;break}if(4>fe){ji=7;break}if(Ki&&Ni||!Ki&&!Ni&&!Lt(St,_t[0],"ALPH")){fe=[fe],Ui.na=[Ui.na],Ui.P=[Ui.P],Ui.Sa=[Ui.Sa];t:{Wo=St,ji=_t,Ki=fe;var Jn=Ui.gb;eo=Ui.na,ro=Ui.P,ts=Ui.Sa,Ks=22,xt(Wo!=null),xt(Ki!=null),Dr=ji[0];var gl=Ki[0];for(xt(eo!=null),xt(ts!=null),eo[0]=null,ro[0]=null,ts[0]=0;;){if(ji[0]=Dr,Ki[0]=gl,8>gl){ji=7;break t}var Tl=Ar(Wo,Dr+4);if(4294967286<Tl){ji=3;break t}var rl=8+Tl+1&-2;if(Ks+=rl,0<Jn&&Ks>Jn){ji=3;break t}if(!Lt(Wo,Dr,"VP8 ")||!Lt(Wo,Dr,"VP8L")){ji=0;break t}if(gl[0]<rl){ji=7;break t}Lt(Wo,Dr,"ALPH")||(eo[0]=Wo,ro[0]=Dr+8,ts[0]=Tl),Dr+=rl,gl-=rl}}if(fe=fe[0],Ui.na=Ui.na[0],Ui.P=Ui.P[0],Ui.Sa=Ui.Sa[0],ji!=0)break}fe=[fe],Ui.Ja=[Ui.Ja],Ui.xa=[Ui.xa];t:if(Jn=St,ji=_t,Ki=fe,eo=Ui.gb[0],ro=Ui.Ja,ts=Ui.xa,Wo=ji[0],Dr=!Lt(Jn,Wo,"VP8 "),Ks=!Lt(Jn,Wo,"VP8L"),xt(Jn!=null),xt(Ki!=null),xt(ro!=null),xt(ts!=null),8>Ki[0])ji=7;else{if(Dr||Ks){if(Jn=Ar(Jn,Wo+4),12<=eo&&Jn>eo-12){ji=3;break t}if(tr&&Jn>Ki[0]-8){ji=7;break t}ro[0]=Jn,ji[0]+=8,Ki[0]-=8,ts[0]=Ks}else ts[0]=5<=Ki[0]&&Jn[Wo+0]==47&&!(Jn[Wo+4]>>5),ro[0]=Ki[0];ji=0}if(fe=fe[0],Ui.Ja=Ui.Ja[0],Ui.xa=Ui.xa[0],_t=_t[0],ji!=0)break;if(4294967286<Ui.Ja)return 3;if(Sn==null||Lr||(Sn[0]=Ui.xa?2:1),cn=[cn],Pr=[Pr],Ui.xa){if(5>fe){ji=7;break}Sn=cn,tr=Pr,Lr=mn,St==null||5>fe?St=0:5<=fe&&St[_t+0]==47&&!(St[_t+4]>>5)?(Ki=[0],Jn=[0],eo=[0],un(ro=new Te,St,_t,fe),As(ro,Ki,Jn,eo)?(Sn!=null&&(Sn[0]=Ki[0]),tr!=null&&(tr[0]=Jn[0]),Lr!=null&&(Lr[0]=eo[0]),St=1):St=0):St=0}else{if(10>fe){ji=7;break}Sn=Pr,St==null||10>fe||!uu(St,_t+3,fe-3)?St=0:(tr=St[_t+0]|St[_t+1]<<8|St[_t+2]<<16,Lr=16383&(St[_t+7]<<8|St[_t+6]),St=16383&(St[_t+9]<<8|St[_t+8]),1&tr||3<(tr>>1&7)||!(tr>>4&1)||tr>>5>=Ui.Ja||!Lr||!St?St=0:(cn&&(cn[0]=Lr),Sn&&(Sn[0]=St),St=1))}if(!St||(cn=cn[0],Pr=Pr[0],Ni&&(zn[0]!=cn||Bi[0]!=Pr)))return 3;Pn!=null&&(Pn[0]=Ui,Pn.offset=_t-Pn.w,xt(4294967286>_t-Pn.w),xt(Pn.offset==Pn.ha-fe));break}return ji==0||ji==7&&Ni&&Pn==null?(mn!=null&&(mn[0]|=Ui.na!=null&&0<Ui.na.length),Ee!=null&&(Ee[0]=cn),$e!=null&&($e[0]=Pr),0):ji}function kc(St,_t,fe){var Ee=_t.width,$e=_t.height,mn=0,cn=0,Sn=Ee,Pn=$e;if(_t.Da=St!=null&&0<St.Da,_t.Da&&(Sn=St.cd,Pn=St.bd,mn=St.v,cn=St.j,11>fe||(mn&=-2,cn&=-2),0>mn||0>cn||0>=Sn||0>=Pn||mn+Sn>Ee||cn+Pn>$e))return 0;if(_t.v=mn,_t.j=cn,_t.va=mn+Sn,_t.o=cn+Pn,_t.U=Sn,_t.T=Pn,_t.da=St!=null&&0<St.da,_t.da){if(!oo(Sn,Pn,fe=[St.ib],mn=[St.hb]))return 0;_t.ib=fe[0],_t.hb=mn[0]}return _t.ob=St!=null&&St.ob,_t.Kb=St==null||!St.Sd,_t.da&&(_t.ob=_t.ib<3*Ee/4&&_t.hb<3*$e/4,_t.Kb=0),1}function Ld(St){if(St==null)return 2;if(11>St.S){var _t=St.f.RGBA;_t.fb+=(St.height-1)*_t.A,_t.A=-_t.A}else _t=St.f.kb,St=St.height,_t.O+=(St-1)*_t.fa,_t.fa=-_t.fa,_t.N+=(St-1>>1)*_t.Ab,_t.Ab=-_t.Ab,_t.W+=(St-1>>1)*_t.Db,_t.Db=-_t.Db,_t.F!=null&&(_t.J+=(St-1)*_t.lb,_t.lb=-_t.lb);return 0}function Oc(St,_t,fe,Ee){if(Ee==null||0>=St||0>=_t)return 2;if(fe!=null){if(fe.Da){var $e=fe.cd,mn=fe.bd,cn=-2&fe.v,Sn=-2&fe.j;if(0>cn||0>Sn||0>=$e||0>=mn||cn+$e>St||Sn+mn>_t)return 2;St=$e,_t=mn}if(fe.da){if(!oo(St,_t,$e=[fe.ib],mn=[fe.hb]))return 2;St=$e[0],_t=mn[0]}}Ee.width=St,Ee.height=_t;t:{var Pn=Ee.width,zn=Ee.height;if(St=Ee.S,0>=Pn||0>=zn||!(St>=ch&&13>St))St=2;else{if(0>=Ee.Rd&&Ee.sd==null){cn=mn=$e=_t=0;var Bi=(Sn=Pn*Qi[St])*zn;if(11>St||(mn=(zn+1)/2*(_t=(Pn+1)/2),St==12&&(cn=($e=Pn)*zn)),(zn=Zt(Bi+2*mn+cn))==null){St=1;break t}Ee.sd=zn,11>St?((Pn=Ee.f.RGBA).eb=zn,Pn.fb=0,Pn.A=Sn,Pn.size=Bi):((Pn=Ee.f.kb).y=zn,Pn.O=0,Pn.fa=Sn,Pn.Fd=Bi,Pn.f=zn,Pn.N=0+Bi,Pn.Ab=_t,Pn.Cd=mn,Pn.ea=zn,Pn.W=0+Bi+mn,Pn.Db=_t,Pn.Ed=mn,St==12&&(Pn.F=zn,Pn.J=0+Bi+2*mn),Pn.Tc=cn,Pn.lb=$e)}if(_t=1,$e=Ee.S,mn=Ee.width,cn=Ee.height,$e>=ch&&13>$e)if(11>$e)St=Ee.f.RGBA,_t&=(Sn=Math.abs(St.A))*(cn-1)+mn<=St.size,_t&=Sn>=mn*Qi[$e],_t&=St.eb!=null;else{St=Ee.f.kb,Sn=(mn+1)/2,Bi=(cn+1)/2,Pn=Math.abs(St.fa),zn=Math.abs(St.Ab);var Ni=Math.abs(St.Db),tr=Math.abs(St.lb),Ui=tr*(cn-1)+mn;_t&=Pn*(cn-1)+mn<=St.Fd,_t&=zn*(Bi-1)+Sn<=St.Cd,_t=(_t&=Ni*(Bi-1)+Sn<=St.Ed)&Pn>=mn&zn>=Sn&Ni>=Sn,_t&=St.y!=null,_t&=St.f!=null,_t&=St.ea!=null,$e==12&&(_t&=tr>=mn,_t&=Ui<=St.Tc,_t&=St.F!=null)}else _t=0;St=_t?0:2}}return St!=0||fe!=null&&fe.fd&&(St=Ld(Ee)),St}var Sa=64,mc=[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],Zd=24,Jl=32,_h=8,_u=[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];yr("Predictor0","PredictorAdd0"),Ti.Predictor0=function(){return 4278190080},Ti.Predictor1=function(St){return St},Ti.Predictor2=function(St,_t,fe){return _t[fe+0]},Ti.Predictor3=function(St,_t,fe){return _t[fe+1]},Ti.Predictor4=function(St,_t,fe){return _t[fe-1]},Ti.Predictor5=function(St,_t,fe){return nr(nr(St,_t[fe+1]),_t[fe+0])},Ti.Predictor6=function(St,_t,fe){return nr(St,_t[fe-1])},Ti.Predictor7=function(St,_t,fe){return nr(St,_t[fe+0])},Ti.Predictor8=function(St,_t,fe){return nr(_t[fe-1],_t[fe+0])},Ti.Predictor9=function(St,_t,fe){return nr(_t[fe+0],_t[fe+1])},Ti.Predictor10=function(St,_t,fe){return nr(nr(St,_t[fe-1]),nr(_t[fe+0],_t[fe+1]))},Ti.Predictor11=function(St,_t,fe){var Ee=_t[fe+0];return 0>=So(Ee>>24&255,St>>24&255,(_t=_t[fe-1])>>24&255)+So(Ee>>16&255,St>>16&255,_t>>16&255)+So(Ee>>8&255,St>>8&255,_t>>8&255)+So(255&Ee,255&St,255&_t)?Ee:St},Ti.Predictor12=function(St,_t,fe){var Ee=_t[fe+0];return(Or((St>>24&255)+(Ee>>24&255)-((_t=_t[fe-1])>>24&255))<<24|Or((St>>16&255)+(Ee>>16&255)-(_t>>16&255))<<16|Or((St>>8&255)+(Ee>>8&255)-(_t>>8&255))<<8|Or((255&St)+(255&Ee)-(255&_t)))>>>0},Ti.Predictor13=function(St,_t,fe){var Ee=_t[fe-1];return(uo((St=nr(St,_t[fe+0]))>>24&255,Ee>>24&255)<<24|uo(St>>16&255,Ee>>16&255)<<16|uo(St>>8&255,Ee>>8&255)<<8|uo(St>>0&255,Ee>>0&255))>>>0};var cd=Ti.PredictorAdd0;Ti.PredictorAdd1=Fo,yr("Predictor2","PredictorAdd2"),yr("Predictor3","PredictorAdd3"),yr("Predictor4","PredictorAdd4"),yr("Predictor5","PredictorAdd5"),yr("Predictor6","PredictorAdd6"),yr("Predictor7","PredictorAdd7"),yr("Predictor8","PredictorAdd8"),yr("Predictor9","PredictorAdd9"),yr("Predictor10","PredictorAdd10"),yr("Predictor11","PredictorAdd11"),yr("Predictor12","PredictorAdd12"),yr("Predictor13","PredictorAdd13");var Rl=Ti.PredictorAdd2;hs("ColorIndexInverseTransform","MapARGB","32b",function(St){return St>>8&255},function(St){return St}),hs("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(St){return St},function(St){return St>>8&255});var Yd,Eu=Ti.ColorIndexInverseTransform,sc=Ti.MapARGB,$d=Ti.VP8LColorIndexInverseTransformAlpha,it=Ti.MapAlpha,st=Ti.VP8LPredictorsAdd=[];st.length=16,(Ti.VP8LPredictors=[]).length=16,(Ti.VP8LPredictorsAdd_C=[]).length=16,(Ti.VP8LPredictors_C=[]).length=16;var vt,gt,Bt,te,xe,je,De,an,Zn,xn,Mi,bi,Mr,jr,qr,Co,$o,Oo,ss,Ds,Do,Js,_l,$l,fl,Ja,Ua,Za,El=Zt(511),wu=Zt(2041),Uo=Zt(225),Ca=Zt(767),Xl=0,Hl=wu,Zu=Uo,aa=Ca,zs=El,ch=0,fu=1,Xd=2,Fh=3,eh=4,xh=5,Ql=6,Hu=7,qc=8,Md=9,Cg=10,Hh=[2,3,7],Bg=[3,3,11],dd=[280,256,256,256,40],Wf=[0,1,1,1,0],yf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],GA=[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],MA=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Vf=8,fA=[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],Nd=[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],Pu=null,Sh=[[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]],Zf=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Kg=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],wp=[[[[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]]]],WA=[[[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]]],VA=[[[[255,255,255,255,255,255,255,255,255,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]]]],Yf=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],NA=[],Qh=[],Ad=[],Pg=1,td=2,zh=[],vc=[];Qr("UpsampleRgbLinePair",Cl,3),Qr("UpsampleBgrLinePair",Us,3),Qr("UpsampleRgbaLinePair",wh,4),Qr("UpsampleBgraLinePair",Il,4),Qr("UpsampleArgbLinePair",Al,4),Qr("UpsampleRgba4444LinePair",yu,2),Qr("UpsampleRgb565LinePair",Au,2);var yc=Ti.UpsampleRgbLinePair,ZA=Ti.UpsampleBgrLinePair,xp=Ti.UpsampleRgbaLinePair,wf=Ti.UpsampleBgraLinePair,Rs=Ti.UpsampleArgbLinePair,Gg=Ti.UpsampleRgba4444LinePair,Sp=Ti.UpsampleRgb565LinePair,xf=16,IA=1<<xf-1,gA=-227,fd=482,bg=6,Wg=(256<<bg)-1,Eg=0,Ut=Zt(256),kt=Zt(256),Kt=Zt(256),Qt=Zt(256),Pe=Zt(fd-gA),qe=Zt(fd-gA);oc("YuvToRgbRow",Cl,3),oc("YuvToBgrRow",Us,3),oc("YuvToRgbaRow",wh,4),oc("YuvToBgraRow",Il,4),oc("YuvToArgbRow",Al,4),oc("YuvToRgba4444Row",yu,2),oc("YuvToRgb565Row",Au,2);var Fn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ti=[0,2,8],On=[8,7,6,4,4,2,2,2,1,1,1,1],Oi=1;this.WebPDecodeRGBA=function(St,_t,fe,Ee,$e){var mn=fu,cn=new pc,Sn=new as;cn.ba=Sn,Sn.S=mn,Sn.width=[Sn.width],Sn.height=[Sn.height];var Pn=Sn.width,zn=Sn.height,Bi=new ds;if(Bi==null||St==null)var Ni=2;else xt(Bi!=null),Ni=AA(St,_t,fe,Bi.width,Bi.height,Bi.Pd,Bi.Qd,Bi.format,null);if(Ni!=0?Pn=0:(Pn!=null&&(Pn[0]=Bi.width[0]),zn!=null&&(zn[0]=Bi.height[0]),Pn=1),Pn){Sn.width=Sn.width[0],Sn.height=Sn.height[0],Ee!=null&&(Ee[0]=Sn.width),$e!=null&&($e[0]=Sn.height);t:{if(Ee=new Wu,($e=new hd).data=St,$e.w=_t,$e.ha=fe,$e.kd=1,_t=[0],xt($e!=null),((St=AA($e.data,$e.w,$e.ha,null,null,null,_t,null,$e))==0||St==7)&&_t[0]&&(St=4),(_t=St)==0){if(xt(cn!=null),Ee.data=$e.data,Ee.w=$e.w+$e.offset,Ee.ha=$e.ha-$e.offset,Ee.put=ea,Ee.ac=_s,Ee.bc=Yl,Ee.ma=cn,$e.xa){if((St=Ia())==null){cn=1;break t}if(function(tr,Ui){var Pr=[0],Lr=[0],ji=[0];e:for(;;){if(tr==null)return 0;if(Ui==null)return tr.a=2,0;if(tr.l=Ui,tr.a=0,un(tr.m,Ui.data,Ui.w,Ui.ha),!As(tr.m,Pr,Lr,ji)){tr.a=3;break e}if(tr.xb=td,Ui.width=Pr[0],Ui.height=Lr[0],!Nl(Pr[0],Lr[0],1,tr,null))break e;return 1}return xt(tr.a!=0),0}(St,Ee)){if(Ee=(_t=Oc(Ee.width,Ee.height,cn.Oa,cn.ba))==0){e:{Ee=St;n:for(;;){if(Ee==null){Ee=0;break e}if(xt(Ee.s.yc!=null),xt(Ee.s.Ya!=null),xt(0<Ee.s.Wb),xt((fe=Ee.l)!=null),xt(($e=fe.ma)!=null),Ee.xb!=0){if(Ee.ca=$e.ba,Ee.tb=$e.tb,xt(Ee.ca!=null),!kc($e.Oa,fe,Fh)){Ee.a=2;break n}if(!Iu(Ee,fe.width)||fe.da)break n;if((fe.da||js(Ee.ca.S))&&ur(),11>Ee.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Ee.ca.f.kb.F!=null&&ur()),Ee.Pb&&0<Ee.s.ua&&Ee.s.vb.X==null&&!Jr(Ee.s.vb,Ee.s.Wa.Xa)){Ee.a=1;break n}Ee.xb=0}if(!ul(Ee,Ee.V,Ee.Ba,Ee.c,Ee.i,fe.o,wa))break n;$e.Dc=Ee.Ma,Ee=1;break e}xt(Ee.a!=0),Ee=0}Ee=!Ee}Ee&&(_t=St.a)}else _t=St.a}else{if((St=new Ta)==null){cn=1;break t}if(St.Fa=$e.na,St.P=$e.P,St.qc=$e.Sa,wl(St,Ee)){if((_t=Oc(Ee.width,Ee.height,cn.Oa,cn.ba))==0){if(St.Aa=0,fe=cn.Oa,xt(($e=St)!=null),fe!=null){if(0<(Pn=0>(Pn=fe.Md)?0:100<Pn?255:255*Pn/100)){for(zn=Bi=0;4>zn;++zn)12>(Ni=$e.pb[zn]).lc&&(Ni.ia=Pn*On[0>Ni.lc?0:Ni.lc]>>3),Bi|=Ni.ia;Bi&&(alert("todo:VP8InitRandom"),$e.ia=1)}$e.Ga=fe.Id,100<$e.Ga?$e.Ga=100:0>$e.Ga&&($e.Ga=0)}Ru(St,Ee)||(_t=St.a)}}else _t=St.a}_t==0&&cn.Oa!=null&&cn.Oa.fd&&(_t=Ld(cn.ba))}cn=_t}mn=cn!=0?null:11>mn?Sn.f.RGBA.eb:Sn.f.kb.y}else mn=null;return mn};var Qi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Xe(Ti,Br){for(var Wr="",Qn=0;Qn<4;Qn++)Wr+=String.fromCharCode(Ti[Br++]);return Wr}function pn(Ti,Br){return(Ti[Br+0]<<0|Ti[Br+1]<<8|Ti[Br+2]<<16)>>>0}function gn(Ti,Br){return(Ti[Br+0]<<0|Ti[Br+1]<<8|Ti[Br+2]<<16|Ti[Br+3]<<24)>>>0}new Fe;var Nn=[0],He=[0],ci=[],Yn=new Fe,gi=Et,Un=function(Ti,Br){var Wr={},Qn=0,$n=!1,Zi=0,ge=0;if(Wr.frames=[],!function(ln,vn,En,Vn){for(var li=0;li<Vn;li++)if(ln[vn+li]!=En.charCodeAt(li))return!0;return!1}(Ti,Br,"RIFF",4)){for(gn(Ti,Br+=4),Br+=8;Br<Ti.length;){var Ce=Xe(Ti,Br),Ve=gn(Ti,Br+=4);Br+=4;var en=Ve+(1&Ve);switch(Ce){case"VP8 ":case"VP8L":Wr.frames[Qn]===void 0&&(Wr.frames[Qn]={}),(Tn=Wr.frames[Qn]).src_off=$n?ge:Br-8,Tn.src_size=Zi+Ve+8,Qn++,$n&&($n=!1,Zi=0,ge=0);break;case"VP8X":(Tn=Wr.header={}).feature_flags=Ti[Br];var un=Br+4;Tn.canvas_width=1+pn(Ti,un),un+=3,Tn.canvas_height=1+pn(Ti,un),un+=3;break;case"ALPH":$n=!0,Zi=en+8,ge=Br-8;break;case"ANIM":(Tn=Wr.header).bgcolor=gn(Ti,Br),un=Br+4,Tn.loop_count=(Xn=Ti)[(Te=un)+0]<<0|Xn[Te+1]<<8,un+=2;break;case"ANMF":var hn,Tn;(Tn=Wr.frames[Qn]={}).offset_x=2*pn(Ti,Br),Br+=3,Tn.offset_y=2*pn(Ti,Br),Br+=3,Tn.width=1+pn(Ti,Br),Br+=3,Tn.height=1+pn(Ti,Br),Br+=3,Tn.duration=pn(Ti,Br),Br+=3,hn=Ti[Br++],Tn.dispose=1&hn,Tn.blend=hn>>1&1}Ce!="ANMF"&&(Br+=en)}var Xn,Te;return Wr}}(gi,0);Un.response=gi,Un.rgbaoutput=!0,Un.dataurl=!1;var Ai=Un.header?Un.header:null,Hi=Un.frames?Un.frames:null;if(Ai){Ai.loop_counter=Ai.loop_count,Nn=[Ai.canvas_height],He=[Ai.canvas_width];for(var lr=0;lr<Hi.length&&Hi[lr].blend!=0;lr++);}var Ir=Hi[0],io=Yn.WebPDecodeRGBA(gi,Ir.src_off,Ir.src_size,He,Nn);Ir.rgba=io,Ir.imgwidth=He[0],Ir.imgheight=Nn[0];for(var mr=0;mr<He[0]*Nn[0]*4;mr++)ci[mr]=io[mr];return this.width=He,this.height=Nn,this.data=ci,this}(function(Et){var xt=function(){return typeof In=="function"},Lt=function(Nn,He,ci,Yn){var gi=4,Un=pe;switch(Yn){case Et.image_compression.FAST:gi=1,Un=Zt;break;case Et.image_compression.MEDIUM:gi=6,Un=ye;break;case Et.image_compression.SLOW:gi=9,Un=Fe}Nn=Rt(Nn,He,ci,Un);var Ai=In(Nn,{level:gi});return Et.__addimage__.arrayBufferToBinaryString(Ai)},Rt=function(Nn,He,ci,Yn){for(var gi,Un,Ai,Hi=Nn.length/He,lr=new Uint8Array(Nn.length+Hi),Ir=pn(),io=0;io<Hi;io+=1){if(Ai=io*He,gi=Nn.subarray(Ai,Ai+He),Yn)lr.set(Yn(gi,ci,Un),Ai+io);else{for(var mr,Ti=Ir.length,Br=[];mr<Ti;mr+=1)Br[mr]=Ir[mr](gi,ci,Un);var Wr=gn(Br.concat());lr.set(Br[Wr],Ai+io)}Un=gi}return lr},se=function(Nn){var He=Array.apply([],Nn);return He.unshift(0),He},Zt=function(Nn,He){var ci,Yn=[],gi=Nn.length;Yn[0]=1;for(var Un=0;Un<gi;Un+=1)ci=Nn[Un-He]||0,Yn[Un+1]=Nn[Un]-ci+256&255;return Yn},pe=function(Nn,He,ci){var Yn,gi=[],Un=Nn.length;gi[0]=2;for(var Ai=0;Ai<Un;Ai+=1)Yn=ci&&ci[Ai]||0,gi[Ai+1]=Nn[Ai]-Yn+256&255;return gi},ye=function(Nn,He,ci){var Yn,gi,Un=[],Ai=Nn.length;Un[0]=3;for(var Hi=0;Hi<Ai;Hi+=1)Yn=Nn[Hi-He]||0,gi=ci&&ci[Hi]||0,Un[Hi+1]=Nn[Hi]+256-(Yn+gi>>>1)&255;return Un},Fe=function(Nn,He,ci){var Yn,gi,Un,Ai,Hi=[],lr=Nn.length;Hi[0]=4;for(var Ir=0;Ir<lr;Ir+=1)Yn=Nn[Ir-He]||0,gi=ci&&ci[Ir]||0,Un=ci&&ci[Ir-He]||0,Ai=Xe(Yn,gi,Un),Hi[Ir+1]=Nn[Ir]-Ai+256&255;return Hi},Xe=function(Nn,He,ci){if(Nn===He&&He===ci)return Nn;var Yn=Math.abs(He-ci),gi=Math.abs(Nn-ci),Un=Math.abs(Nn+He-ci-ci);return Yn<=gi&&Yn<=Un?Nn:gi<=Un?He:ci},pn=function(){return[se,Zt,pe,ye,Fe]},gn=function(Nn){var He=Nn.map(function(ci){return ci.reduce(function(Yn,gi){return Yn+Math.abs(gi)},0)});return He.indexOf(Math.min.apply(null,He))};Et.processPNG=function(Nn,He,ci,Yn){var gi,Un,Ai,Hi,lr,Ir,io,mr,Ti,Br,Wr,Qn,$n,Zi,ge,Ce=this.decode.FLATE_DECODE,Ve="";if(this.__addimage__.isArrayBuffer(Nn)&&(Nn=new Uint8Array(Nn)),this.__addimage__.isArrayBufferView(Nn)){if(Nn=(Ai=new sA(Nn)).imgData,Un=Ai.bits,gi=Ai.colorSpace,lr=Ai.colors,[4,6].indexOf(Ai.colorType)!==-1){if(Ai.bits===8){Ti=(mr=Ai.pixelBitlength==32?new Uint32Array(Ai.decodePixels().buffer):Ai.pixelBitlength==16?new Uint16Array(Ai.decodePixels().buffer):new Uint8Array(Ai.decodePixels().buffer)).length,Wr=new Uint8Array(Ti*Ai.colors),Br=new Uint8Array(Ti);var en,un=Ai.pixelBitlength-Ai.bits;for(Zi=0,ge=0;Zi<Ti;Zi++){for($n=mr[Zi],en=0;en<un;)Wr[ge++]=$n>>>en&255,en+=Ai.bits;Br[Zi]=$n>>>en&255}}if(Ai.bits===16){Ti=(mr=new Uint32Array(Ai.decodePixels().buffer)).length,Wr=new Uint8Array(Ti*(32/Ai.pixelBitlength)*Ai.colors),Br=new Uint8Array(Ti*(32/Ai.pixelBitlength)),Qn=Ai.colors>1,Zi=0,ge=0;for(var hn=0;Zi<Ti;)$n=mr[Zi++],Wr[ge++]=$n>>>0&255,Qn&&(Wr[ge++]=$n>>>16&255,$n=mr[Zi++],Wr[ge++]=$n>>>0&255),Br[hn++]=$n>>>16&255;Un=8}Yn!==Et.image_compression.NONE&&xt()?(Nn=Lt(Wr,Ai.width*Ai.colors,Ai.colors,Yn),io=Lt(Br,Ai.width,1,Yn)):(Nn=Wr,io=Br,Ce=void 0)}if(Ai.colorType===3&&(gi=this.color_spaces.INDEXED,Ir=Ai.palette,Ai.transparency.indexed)){var Tn=Ai.transparency.indexed,Xn=0;for(Zi=0,Ti=Tn.length;Zi<Ti;++Zi)Xn+=Tn[Zi];if((Xn/=255)===Ti-1&&Tn.indexOf(0)!==-1)Hi=[Tn.indexOf(0)];else if(Xn!==Ti){for(mr=Ai.decodePixels(),Br=new Uint8Array(mr.length),Zi=0,Ti=mr.length;Zi<Ti;Zi++)Br[Zi]=Tn[mr[Zi]];io=Lt(Br,Ai.width,1)}}var Te=function(ln){var vn;switch(ln){case Et.image_compression.FAST:vn=11;break;case Et.image_compression.MEDIUM:vn=13;break;case Et.image_compression.SLOW:vn=14;break;default:vn=12}return vn}(Yn);return Ce===this.decode.FLATE_DECODE&&(Ve="/Predictor "+Te+" "),Ve+="/Colors "+lr+" /BitsPerComponent "+Un+" /Columns "+Ai.width,(this.__addimage__.isArrayBuffer(Nn)||this.__addimage__.isArrayBufferView(Nn))&&(Nn=this.__addimage__.arrayBufferToBinaryString(Nn)),(io&&this.__addimage__.isArrayBuffer(io)||this.__addimage__.isArrayBufferView(io))&&(io=this.__addimage__.arrayBufferToBinaryString(io)),{alias:ci,data:Nn,index:He,filter:Ce,decodeParameters:Ve,transparency:Hi,palette:Ir,sMask:io,predictor:Te,width:Ai.width,height:Ai.height,bitsPerComponent:Un,colorSpace:gi}}}})(Qo.API),function(Et){Et.processGIF89A=function(xt,Lt,Rt,se){var Zt=new bn(xt),pe=Zt.width,ye=Zt.height,Fe=[];Zt.decodeAndBlitFrameRGBA(0,Fe);var Xe={data:Fe,width:pe,height:ye},pn=new aA(100).encode(Xe,100);return Et.processJPEG.call(this,pn,Lt,Rt,se)},Et.processGIF87A=Et.processGIF89A}(Qo.API),tc.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 Et=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Et);for(var xt=0;xt<Et;xt++){var Lt=this.datav.getUint8(this.pos++,!0),Rt=this.datav.getUint8(this.pos++,!0),se=this.datav.getUint8(this.pos++,!0),Zt=this.datav.getUint8(this.pos++,!0);this.palette[xt]={red:se,green:Rt,blue:Lt,quad:Zt}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},tc.prototype.parseBGR=function(){this.pos=this.offset;try{var Et="bit"+this.bitPP,xt=this.width*this.height*4;this.data=new Uint8Array(xt),this[Et]()}catch(Lt){Ho.log("bit decode error:"+Lt)}},tc.prototype.bit1=function(){var Et,xt=Math.ceil(this.width/8),Lt=xt%4;for(Et=this.height-1;Et>=0;Et--){for(var Rt=this.bottom_up?Et:this.height-1-Et,se=0;se<xt;se++)for(var Zt=this.datav.getUint8(this.pos++,!0),pe=Rt*this.width*4+8*se*4,ye=0;ye<8&&8*se+ye<this.width;ye++){var Fe=this.palette[Zt>>7-ye&1];this.data[pe+4*ye]=Fe.blue,this.data[pe+4*ye+1]=Fe.green,this.data[pe+4*ye+2]=Fe.red,this.data[pe+4*ye+3]=255}Lt!==0&&(this.pos+=4-Lt)}},tc.prototype.bit4=function(){for(var Et=Math.ceil(this.width/2),xt=Et%4,Lt=this.height-1;Lt>=0;Lt--){for(var Rt=this.bottom_up?Lt:this.height-1-Lt,se=0;se<Et;se++){var Zt=this.datav.getUint8(this.pos++,!0),pe=Rt*this.width*4+2*se*4,ye=Zt>>4,Fe=15&Zt,Xe=this.palette[ye];if(this.data[pe]=Xe.blue,this.data[pe+1]=Xe.green,this.data[pe+2]=Xe.red,this.data[pe+3]=255,2*se+1>=this.width)break;Xe=this.palette[Fe],this.data[pe+4]=Xe.blue,this.data[pe+4+1]=Xe.green,this.data[pe+4+2]=Xe.red,this.data[pe+4+3]=255}xt!==0&&(this.pos+=4-xt)}},tc.prototype.bit8=function(){for(var Et=this.width%4,xt=this.height-1;xt>=0;xt--){for(var Lt=this.bottom_up?xt:this.height-1-xt,Rt=0;Rt<this.width;Rt++){var se=this.datav.getUint8(this.pos++,!0),Zt=Lt*this.width*4+4*Rt;if(se<this.palette.length){var pe=this.palette[se];this.data[Zt]=pe.red,this.data[Zt+1]=pe.green,this.data[Zt+2]=pe.blue,this.data[Zt+3]=255}else this.data[Zt]=255,this.data[Zt+1]=255,this.data[Zt+2]=255,this.data[Zt+3]=255}Et!==0&&(this.pos+=4-Et)}},tc.prototype.bit15=function(){for(var Et=this.width%3,xt=parseInt("11111",2),Lt=this.height-1;Lt>=0;Lt--){for(var Rt=this.bottom_up?Lt:this.height-1-Lt,se=0;se<this.width;se++){var Zt=this.datav.getUint16(this.pos,!0);this.pos+=2;var pe=(Zt&xt)/xt*255|0,ye=(Zt>>5&xt)/xt*255|0,Fe=(Zt>>10&xt)/xt*255|0,Xe=Zt>>15?255:0,pn=Rt*this.width*4+4*se;this.data[pn]=Fe,this.data[pn+1]=ye,this.data[pn+2]=pe,this.data[pn+3]=Xe}this.pos+=Et}},tc.prototype.bit16=function(){for(var Et=this.width%3,xt=parseInt("11111",2),Lt=parseInt("111111",2),Rt=this.height-1;Rt>=0;Rt--){for(var se=this.bottom_up?Rt:this.height-1-Rt,Zt=0;Zt<this.width;Zt++){var pe=this.datav.getUint16(this.pos,!0);this.pos+=2;var ye=(pe&xt)/xt*255|0,Fe=(pe>>5&Lt)/Lt*255|0,Xe=(pe>>11)/xt*255|0,pn=se*this.width*4+4*Zt;this.data[pn]=Xe,this.data[pn+1]=Fe,this.data[pn+2]=ye,this.data[pn+3]=255}this.pos+=Et}},tc.prototype.bit24=function(){for(var Et=this.height-1;Et>=0;Et--){for(var xt=this.bottom_up?Et:this.height-1-Et,Lt=0;Lt<this.width;Lt++){var Rt=this.datav.getUint8(this.pos++,!0),se=this.datav.getUint8(this.pos++,!0),Zt=this.datav.getUint8(this.pos++,!0),pe=xt*this.width*4+4*Lt;this.data[pe]=Zt,this.data[pe+1]=se,this.data[pe+2]=Rt,this.data[pe+3]=255}this.pos+=this.width%4}},tc.prototype.bit32=function(){for(var Et=this.height-1;Et>=0;Et--)for(var xt=this.bottom_up?Et:this.height-1-Et,Lt=0;Lt<this.width;Lt++){var Rt=this.datav.getUint8(this.pos++,!0),se=this.datav.getUint8(this.pos++,!0),Zt=this.datav.getUint8(this.pos++,!0),pe=this.datav.getUint8(this.pos++,!0),ye=xt*this.width*4+4*Lt;this.data[ye]=Zt,this.data[ye+1]=se,this.data[ye+2]=Rt,this.data[ye+3]=pe}},tc.prototype.getData=function(){return this.data},function(Et){Et.processBMP=function(xt,Lt,Rt,se){var Zt=new tc(xt,!1),pe=Zt.width,ye=Zt.height,Fe={data:Zt.getData(),width:pe,height:ye},Xe=new aA(100).encode(Fe,100);return Et.processJPEG.call(this,Xe,Lt,Rt,se)}}(Qo.API),ju.prototype.getData=function(){return this.data},function(Et){Et.processWEBP=function(xt,Lt,Rt,se){var Zt=new ju(xt),pe=Zt.width,ye=Zt.height,Fe={data:Zt.getData(),width:pe,height:ye},Xe=new aA(100).encode(Fe,100);return Et.processJPEG.call(this,Xe,Lt,Rt,se)}}(Qo.API),Qo.API.processRGBA=function(Et,xt,Lt){for(var Rt=Et.data,se=Rt.length,Zt=new Uint8Array(se/4*3),pe=new Uint8Array(se/4),ye=0,Fe=0,Xe=0;Xe<se;Xe+=4){var pn=Rt[Xe],gn=Rt[Xe+1],Nn=Rt[Xe+2],He=Rt[Xe+3];Zt[ye++]=pn,Zt[ye++]=gn,Zt[ye++]=Nn,pe[Fe++]=He}var ci=this.__addimage__.arrayBufferToBinaryString(Zt);return{alpha:this.__addimage__.arrayBufferToBinaryString(pe),data:ci,index:xt,alias:Lt,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Et.width,height:Et.height}},Qo.API.setLanguage=function(Et){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"}[Et]!==void 0&&(this.internal.languageSettings.languageCode=Et,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},cl=Qo.API,Ud=cl.getCharWidthsArray=function(Et,xt){var Lt,Rt,se=(xt=xt||{}).font||this.internal.getFont(),Zt=xt.fontSize||this.internal.getFontSize(),pe=xt.charSpace||this.internal.getCharSpace(),ye=xt.widths?xt.widths:se.metadata.Unicode.widths,Fe=ye.fof?ye.fof:1,Xe=xt.kerning?xt.kerning:se.metadata.Unicode.kerning,pn=Xe.fof?Xe.fof:1,gn=xt.doKerning!==!1,Nn=0,He=Et.length,ci=0,Yn=ye[0]||Fe,gi=[];for(Lt=0;Lt<He;Lt++)Rt=Et.charCodeAt(Lt),typeof se.metadata.widthOfString=="function"?gi.push((se.metadata.widthOfGlyph(se.metadata.characterToGlyph(Rt))+pe*(1e3/Zt)||0)/1e3):(Nn=gn&&(0,Ft.Z)(Xe[Rt])==="object"&&!isNaN(parseInt(Xe[Rt][ci],10))?Xe[Rt][ci]/pn:0,gi.push((ye[Rt]||Yn)/Fe+Nn)),ci=Rt;return gi},od=cl.getStringUnitWidth=function(Et,xt){var Lt=(xt=xt||{}).fontSize||this.internal.getFontSize(),Rt=xt.font||this.internal.getFont(),se=xt.charSpace||this.internal.getCharSpace();return cl.processArabic&&(Et=cl.processArabic(Et)),typeof Rt.metadata.widthOfString=="function"?Rt.metadata.widthOfString(Et,Lt,se)/Lt:Ud.apply(this,arguments).reduce(function(Zt,pe){return Zt+pe},0)},Ah=function(Et,xt,Lt,Rt){for(var se=[],Zt=0,pe=Et.length,ye=0;Zt!==pe&&ye+xt[Zt]<Lt;)ye+=xt[Zt],Zt++;se.push(Et.slice(0,Zt));var Fe=Zt;for(ye=0;Zt!==pe;)ye+xt[Zt]>Rt&&(se.push(Et.slice(Fe,Zt)),ye=0,Fe=Zt),ye+=xt[Zt],Zt++;return Fe!==Zt&&se.push(Et.slice(Fe,Zt)),se},Ko=function(Et,xt,Lt){Lt||(Lt={});var Rt,se,Zt,pe,ye,Fe,Xe,pn=[],gn=[pn],Nn=Lt.textIndent||0,He=0,ci=0,Yn=Et.split(" "),gi=Ud.apply(this,[" ",Lt])[0];if(Fe=Lt.lineIndent===-1?Yn[0].length+2:Lt.lineIndent||0){var Un=Array(Fe).join(" "),Ai=[];Yn.map(function(lr){(lr=lr.split(/\s*\n/)).length>1?Ai=Ai.concat(lr.map(function(Ir,io){return(io&&Ir.length?`
`:"")+Ir})):Ai.push(lr[0])}),Yn=Ai,Fe=od.apply(this,[Un,Lt])}for(Zt=0,pe=Yn.length;Zt<pe;Zt++){var Hi=0;if(Rt=Yn[Zt],Fe&&Rt[0]==`
`&&(Rt=Rt.substr(1),Hi=1),Nn+He+(ci=(se=Ud.apply(this,[Rt,Lt])).reduce(function(lr,Ir){return lr+Ir},0))>xt||Hi){if(ci>xt){for(ye=Ah.apply(this,[Rt,se,xt-(Nn+He),xt]),pn.push(ye.shift()),pn=[ye.pop()];ye.length;)gn.push([ye.shift()]);ci=se.slice(Rt.length-(pn[0]?pn[0].length:0)).reduce(function(lr,Ir){return lr+Ir},0)}else pn=[Rt];gn.push(pn),Nn=ci+Fe,He=gi}else pn.push(Rt),Nn+=He+ci,He=gi}return Xe=Fe?function(lr,Ir){return(Ir?Un:"")+lr.join(" ")}:function(lr){return lr.join(" ")},gn.map(Xe)},cl.splitTextToSize=function(Et,xt,Lt){var Rt,se=(Lt=Lt||{}).fontSize||this.internal.getFontSize(),Zt=function(pn){if(pn.widths&&pn.kerning)return{widths:pn.widths,kerning:pn.kerning};var gn=this.internal.getFont(pn.fontName,pn.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,Lt);Rt=Array.isArray(Et)?Et:String(Et).split(/\r?\n/);var pe=1*this.internal.scaleFactor*xt/se;Zt.textIndent=Lt.textIndent?1*Lt.textIndent*this.internal.scaleFactor/se:0,Zt.lineIndent=Lt.lineIndent;var ye,Fe,Xe=[];for(ye=0,Fe=Rt.length;ye<Fe;ye++)Xe=Xe.concat(Ko.apply(this,[Rt[ye],pe,Zt]));return Xe},function(Et){Et.__fontmetrics__=Et.__fontmetrics__||{};for(var xt="klmnopqrstuvwxyz",Lt={},Rt={},se=0;se<xt.length;se++)Lt[xt[se]]="0123456789abcdef"[se],Rt["0123456789abcdef"[se]]=xt[se];var Zt=function(gn){return"0x"+parseInt(gn,10).toString(16)},pe=Et.__fontmetrics__.compress=function(gn){var Nn,He,ci,Yn,gi=["{"];for(var Un in gn){if(Nn=gn[Un],isNaN(parseInt(Un,10))?He="'"+Un+"'":(Un=parseInt(Un,10),He=(He=Zt(Un).slice(2)).slice(0,-1)+Rt[He.slice(-1)]),typeof Nn=="number")Nn<0?(ci=Zt(Nn).slice(3),Yn="-"):(ci=Zt(Nn).slice(2),Yn=""),ci=Yn+ci.slice(0,-1)+Rt[ci.slice(-1)];else{if((0,Ft.Z)(Nn)!=="object")throw new Error("Don't know what to do with value type "+(0,Ft.Z)(Nn)+".");ci=pe(Nn)}gi.push(He+ci)}return gi.push("}"),gi.join("")},ye=Et.__fontmetrics__.uncompress=function(gn){if(typeof gn!="string")throw new Error("Invalid argument passed to uncompress.");for(var Nn,He,ci,Yn,gi={},Un=1,Ai=gi,Hi=[],lr="",Ir="",io=gn.length-1,mr=1;mr<io;mr+=1)(Yn=gn[mr])=="'"?Nn?(ci=Nn.join(""),Nn=void 0):Nn=[]:Nn?Nn.push(Yn):Yn=="{"?(Hi.push([Ai,ci]),Ai={},ci=void 0):Yn=="}"?((He=Hi.pop())[0][He[1]]=Ai,ci=void 0,Ai=He[0]):Yn=="-"?Un=-1:ci===void 0?Lt.hasOwnProperty(Yn)?(lr+=Lt[Yn],ci=parseInt(lr,16)*Un,Un=1,lr=""):lr+=Yn:Lt.hasOwnProperty(Yn)?(Ir+=Lt[Yn],Ai[ci]=parseInt(Ir,16)*Un,Un=1,ci=void 0,Ir=""):Ir+=Yn;return gi},Fe={codePages:["WinAnsiEncoding"],WinAnsiEncoding:ye("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Xe={Unicode:{Courier:Fe,"Courier-Bold":Fe,"Courier-BoldOblique":Fe,"Courier-Oblique":Fe,Helvetica:Fe,"Helvetica-Bold":Fe,"Helvetica-BoldOblique":Fe,"Helvetica-Oblique":Fe,"Times-Roman":Fe,"Times-Bold":Fe,"Times-BoldItalic":Fe,"Times-Italic":Fe}},pn={Unicode:{"Courier-Oblique":ye("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":ye("{'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":ye("{'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:ye("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":ye("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":ye("{'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:ye("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:ye("{'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":ye("{'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:ye("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":ye("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":ye("{'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":ye("{'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":ye("{'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}}}")}};Et.events.push(["addFont",function(gn){var Nn=gn.font,He=pn.Unicode[Nn.postScriptName];He&&(Nn.metadata.Unicode={},Nn.metadata.Unicode.widths=He.widths,Nn.metadata.Unicode.kerning=He.kerning);var ci=Xe.Unicode[Nn.postScriptName];ci&&(Nn.metadata.Unicode.encoding=ci,Nn.encoding=ci.codePages[0])}])}(Qo.API),function(Et){var xt=function(Lt){for(var Rt=Lt.length,se=new Uint8Array(Rt),Zt=0;Zt<Rt;Zt++)se[Zt]=Lt.charCodeAt(Zt);return se};Et.API.events.push(["addFont",function(Lt){var Rt=void 0,se=Lt.font,Zt=Lt.instance;if(!se.isStandardFont){if(Zt===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+se.postScriptName+"').");if(typeof(Rt=Zt.existsFileInVFS(se.postScriptName)===!1?Zt.loadFile(se.postScriptName):Zt.getFileFromVFS(se.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+se.postScriptName+"').");(function(pe,ye){ye=/^\x00\x01\x00\x00/.test(ye)?xt(ye):xt(fs(ye)),pe.metadata=Et.API.TTFFont.open(ye),pe.metadata.Unicode=pe.metadata.Unicode||{encoding:{},kerning:{},widths:[]},pe.metadata.glyIdsUsed=[0]})(se,Rt)}}])}(Qo),function(Et){function xt(){return(_r.canvg?Promise.resolve(_r.canvg):bt.e(3754).then(bt.bind(bt,63754))).catch(function(Lt){return Promise.reject(new Error("Could not load canvg: "+Lt))}).then(function(Lt){return Lt.default?Lt.default:Lt})}Qo.API.addSvgAsImage=function(Lt,Rt,se,Zt,pe,ye,Fe,Xe){if(isNaN(Rt)||isNaN(se))throw Ho.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Zt)||isNaN(pe))throw Ho.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var pn=document.createElement("canvas");pn.width=Zt,pn.height=pe;var gn=pn.getContext("2d");gn.fillStyle="#fff",gn.fillRect(0,0,pn.width,pn.height);var Nn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},He=this;return xt().then(function(ci){return ci.fromString(gn,Lt,Nn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(ci){return ci.render(Nn)}).then(function(){He.addImage(pn.toDataURL("image/jpeg",1),Rt,se,Zt,pe,Fe,Xe)})}}(),Qo.API.putTotalPages=function(Et){var xt,Lt=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(xt=new RegExp(Et,"g"),Lt=this.internal.getNumberOfPages()):(xt=new RegExp(this.pdfEscape16(Et,this.internal.getFont()),"g"),Lt=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Rt=1;Rt<=this.internal.getNumberOfPages();Rt++)for(var se=0;se<this.internal.pages[Rt].length;se++)this.internal.pages[Rt][se]=this.internal.pages[Rt][se].replace(xt,Lt);return this},Qo.API.viewerPreferences=function(Et,xt){var Lt;Et=Et||{},xt=xt||!1;var Rt,se,Zt,pe={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}},ye=Object.keys(pe),Fe=[],Xe=0,pn=0,gn=0;function Nn(ci,Yn){var gi,Un=!1;for(gi=0;gi<ci.length;gi+=1)ci[gi]===Yn&&(Un=!0);return Un}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(pe)),this.internal.viewerpreferences.isSubscribed=!1),Lt=this.internal.viewerpreferences.configuration,Et==="reset"||xt===!0){var He=ye.length;for(gn=0;gn<He;gn+=1)Lt[ye[gn]].value=Lt[ye[gn]].defaultValue,Lt[ye[gn]].explicitSet=!1}if((0,Ft.Z)(Et)==="object"){for(se in Et)if(Zt=Et[se],Nn(ye,se)&&Zt!==void 0){if(Lt[se].type==="boolean"&&typeof Zt=="boolean")Lt[se].value=Zt;else if(Lt[se].type==="name"&&Nn(Lt[se].valueSet,Zt))Lt[se].value=Zt;else if(Lt[se].type==="integer"&&Number.isInteger(Zt))Lt[se].value=Zt;else if(Lt[se].type==="array"){for(Xe=0;Xe<Zt.length;Xe+=1)if(Rt=!0,Zt[Xe].length===1&&typeof Zt[Xe][0]=="number")Fe.push(String(Zt[Xe]-1));else if(Zt[Xe].length>1){for(pn=0;pn<Zt[Xe].length;pn+=1)typeof Zt[Xe][pn]!="number"&&(Rt=!1);Rt===!0&&Fe.push([Zt[Xe][0]-1,Zt[Xe][1]-1].join(" "))}Lt[se].value="["+Fe.join(" ")+"]"}else Lt[se].value=Lt[se].defaultValue;Lt[se].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var ci,Yn=[];for(ci in Lt)Lt[ci].explicitSet===!0&&(Lt[ci].type==="name"?Yn.push("/"+ci+" /"+Lt[ci].value):Yn.push("/"+ci+" "+Lt[ci].value));Yn.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Yn.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Lt,this},function(Et){var xt=function(){var Rt='<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>',se=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Zt=unescape(encodeURIComponent(Rt)),pe=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ye=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Fe=unescape(encodeURIComponent("</x:xmpmeta>")),Xe=Zt.length+pe.length+ye.length+se.length+Fe.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Xe+" >>"),this.internal.write("stream"),this.internal.write(se+Zt+pe+ye+Fe),this.internal.write("endstream"),this.internal.write("endobj")},Lt=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Et.addMetadata=function(Rt,se){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Rt,namespaceuri:se||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Lt),this.internal.events.subscribe("postPutResources",xt)),this}}(Qo.API),function(Et){var xt=Et.API,Lt=xt.pdfEscape16=function(Zt,pe){for(var ye,Fe=pe.metadata.Unicode.widths,Xe=["","0","00","000","0000"],pn=[""],gn=0,Nn=Zt.length;gn<Nn;++gn){if(ye=pe.metadata.characterToGlyph(Zt.charCodeAt(gn)),pe.metadata.glyIdsUsed.push(ye),pe.metadata.toUnicode[ye]=Zt.charCodeAt(gn),Fe.indexOf(ye)==-1&&(Fe.push(ye),Fe.push([parseInt(pe.metadata.widthOfGlyph(ye),10)])),ye=="0")return pn.join("");ye=ye.toString(16),pn.push(Xe[4-ye.length],ye)}return pn.join("")},Rt=function(Zt){var pe,ye,Fe,Xe,pn,gn,Nn;for(pn=`/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`,Fe=[],gn=0,Nn=(ye=Object.keys(Zt).sort(function(He,ci){return He-ci})).length;gn<Nn;gn++)pe=ye[gn],Fe.length>=100&&(pn+=`
`+Fe.length+` beginbfchar
`+Fe.join(`
`)+`
endbfchar`,Fe=[]),Zt[pe]!==void 0&&Zt[pe]!==null&&typeof Zt[pe].toString=="function"&&(Xe=("0000"+Zt[pe].toString(16)).slice(-4),pe=("0000"+(+pe).toString(16)).slice(-4),Fe.push("<"+pe+"><"+Xe+">"));return Fe.length&&(pn+=`
`+Fe.length+` beginbfchar
`+Fe.join(`
`)+`
endbfchar
`),pn+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};xt.events.push(["putFont",function(Zt){(function(pe){var ye=pe.font,Fe=pe.out,Xe=pe.newObject,pn=pe.putStream;if(ye.metadata instanceof Et.API.TTFFont&&ye.encoding==="Identity-H"){for(var gn=ye.metadata.Unicode.widths,Nn=ye.metadata.subset.encode(ye.metadata.glyIdsUsed,1),He="",ci=0;ci<Nn.length;ci++)He+=String.fromCharCode(Nn[ci]);var Yn=Xe();pn({data:He,addLength1:!0,objectId:Yn}),Fe("endobj");var gi=Xe();pn({data:Rt(ye.metadata.toUnicode),addLength1:!0,objectId:gi}),Fe("endobj");var Un=Xe();Fe("<<"),Fe("/Type /FontDescriptor"),Fe("/FontName /"+mo(ye.fontName)),Fe("/FontFile2 "+Yn+" 0 R"),Fe("/FontBBox "+Et.API.PDFObject.convert(ye.metadata.bbox)),Fe("/Flags "+ye.metadata.flags),Fe("/StemV "+ye.metadata.stemV),Fe("/ItalicAngle "+ye.metadata.italicAngle),Fe("/Ascent "+ye.metadata.ascender),Fe("/Descent "+ye.metadata.decender),Fe("/CapHeight "+ye.metadata.capHeight),Fe(">>"),Fe("endobj");var Ai=Xe();Fe("<<"),Fe("/Type /Font"),Fe("/BaseFont /"+mo(ye.fontName)),Fe("/FontDescriptor "+Un+" 0 R"),Fe("/W "+Et.API.PDFObject.convert(gn)),Fe("/CIDToGIDMap /Identity"),Fe("/DW 1000"),Fe("/Subtype /CIDFontType2"),Fe("/CIDSystemInfo"),Fe("<<"),Fe("/Supplement 0"),Fe("/Registry (Adobe)"),Fe("/Ordering ("+ye.encoding+")"),Fe(">>"),Fe(">>"),Fe("endobj"),ye.objectNumber=Xe(),Fe("<<"),Fe("/Type /Font"),Fe("/Subtype /Type0"),Fe("/ToUnicode "+gi+" 0 R"),Fe("/BaseFont /"+mo(ye.fontName)),Fe("/Encoding /"+ye.encoding),Fe("/DescendantFonts ["+Ai+" 0 R]"),Fe(">>"),Fe("endobj"),ye.isAlreadyPutted=!0}})(Zt)}]),xt.events.push(["putFont",function(Zt){(function(pe){var ye=pe.font,Fe=pe.out,Xe=pe.newObject,pn=pe.putStream;if(ye.metadata instanceof Et.API.TTFFont&&ye.encoding==="WinAnsiEncoding"){for(var gn=ye.metadata.rawData,Nn="",He=0;He<gn.length;He++)Nn+=String.fromCharCode(gn[He]);var ci=Xe();pn({data:Nn,addLength1:!0,objectId:ci}),Fe("endobj");var Yn=Xe();pn({data:Rt(ye.metadata.toUnicode),addLength1:!0,objectId:Yn}),Fe("endobj");var gi=Xe();Fe("<<"),Fe("/Descent "+ye.metadata.decender),Fe("/CapHeight "+ye.metadata.capHeight),Fe("/StemV "+ye.metadata.stemV),Fe("/Type /FontDescriptor"),Fe("/FontFile2 "+ci+" 0 R"),Fe("/Flags 96"),Fe("/FontBBox "+Et.API.PDFObject.convert(ye.metadata.bbox)),Fe("/FontName /"+mo(ye.fontName)),Fe("/ItalicAngle "+ye.metadata.italicAngle),Fe("/Ascent "+ye.metadata.ascender),Fe(">>"),Fe("endobj"),ye.objectNumber=Xe();for(var Un=0;Un<ye.metadata.hmtx.widths.length;Un++)ye.metadata.hmtx.widths[Un]=parseInt(ye.metadata.hmtx.widths[Un]*(1e3/ye.metadata.head.unitsPerEm));Fe("<</Subtype/TrueType/Type/Font/ToUnicode "+Yn+" 0 R/BaseFont/"+mo(ye.fontName)+"/FontDescriptor "+gi+" 0 R/Encoding/"+ye.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Et.API.PDFObject.convert(ye.metadata.hmtx.widths)+">>"),Fe("endobj"),ye.isAlreadyPutted=!0}})(Zt)}]);var se=function(Zt){var pe,ye=Zt.text||"",Fe=Zt.x,Xe=Zt.y,pn=Zt.options||{},gn=Zt.mutex||{},Nn=gn.pdfEscape,He=gn.activeFontKey,ci=gn.fonts,Yn=He,gi="",Un=0,Ai="",Hi=ci[Yn].encoding;if(ci[Yn].encoding!=="Identity-H")return{text:ye,x:Fe,y:Xe,options:pn,mutex:gn};for(Ai=ye,Yn=He,Array.isArray(ye)&&(Ai=ye[0]),Un=0;Un<Ai.length;Un+=1)ci[Yn].metadata.hasOwnProperty("cmap")&&(pe=ci[Yn].metadata.cmap.unicode.codeMap[Ai[Un].charCodeAt(0)]),pe||Ai[Un].charCodeAt(0)<256&&ci[Yn].metadata.hasOwnProperty("Unicode")?gi+=Ai[Un]:gi+="";var lr="";return parseInt(Yn.slice(1))<14||Hi==="WinAnsiEncoding"?lr=Nn(gi,Yn).split("").map(function(Ir){return Ir.charCodeAt(0).toString(16)}).join(""):Hi==="Identity-H"&&(lr=Lt(gi,ci[Yn])),gn.isHex=!0,{text:lr,x:Fe,y:Xe,options:pn,mutex:gn}};xt.events.push(["postProcessText",function(Zt){var pe=Zt.text||"",ye=[],Fe={text:pe,x:Zt.x,y:Zt.y,options:Zt.options,mutex:Zt.mutex};if(Array.isArray(pe)){var Xe=0;for(Xe=0;Xe<pe.length;Xe+=1)Array.isArray(pe[Xe])&&pe[Xe].length===3?ye.push([se(Object.assign({},Fe,{text:pe[Xe][0]})).text,pe[Xe][1],pe[Xe][2]]):ye.push(se(Object.assign({},Fe,{text:pe[Xe]})).text);Zt.text=ye}else Zt.text=se(Object.assign({},Fe,{text:pe})).text}])}(Qo),function(Et){var xt=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Et.existsFileInVFS=function(Lt){return xt.call(this),this.internal.vFS[Lt]!==void 0},Et.addFileToVFS=function(Lt,Rt){return xt.call(this),this.internal.vFS[Lt]=Rt,this},Et.getFileFromVFS=function(Lt){return xt.call(this),this.internal.vFS[Lt]!==void 0?this.internal.vFS[Lt]:null}}(Qo.API),function(Et){Et.__bidiEngine__=Et.prototype.__bidiEngine__=function(Rt){var se,Zt,pe,ye,Fe,Xe,pn,gn=xt,Nn=[[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]],He=[[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]],ci={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Yn={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},gi=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],Un=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)$/),Ai=!1,Hi=0;this.__bidiEngine__={};var lr=function(Qn){var $n=Qn.charCodeAt(),Zi=$n>>8,ge=Yn[Zi];return ge!==void 0?gn[256*ge+(255&$n)]:Zi===252||Zi===253?"AL":Un.test(Zi)?"L":Zi===8?"R":"N"},Ir=function(Qn){for(var $n,Zi=0;Zi<Qn.length;Zi++){if(($n=lr(Qn.charAt(Zi)))==="L")return!1;if($n==="R")return!0}return!1},io=function(Qn,$n,Zi,ge){var Ce,Ve,en,un,hn=$n[ge];switch(hn){case"L":case"R":Ai=!1;break;case"N":case"AN":break;case"EN":Ai&&(hn="AN");break;case"AL":Ai=!0,hn="R";break;case"WS":hn="N";break;case"CS":ge<1||ge+1>=$n.length||(Ce=Zi[ge-1])!=="EN"&&Ce!=="AN"||(Ve=$n[ge+1])!=="EN"&&Ve!=="AN"?hn="N":Ai&&(Ve="AN"),hn=Ve===Ce?Ve:"N";break;case"ES":hn=(Ce=ge>0?Zi[ge-1]:"B")==="EN"&&ge+1<$n.length&&$n[ge+1]==="EN"?"EN":"N";break;case"ET":if(ge>0&&Zi[ge-1]==="EN"){hn="EN";break}if(Ai){hn="N";break}for(en=ge+1,un=$n.length;en<un&&$n[en]==="ET";)en++;hn=en<un&&$n[en]==="EN"?"EN":"N";break;case"NSM":if(pe&&!ye){for(un=$n.length,en=ge+1;en<un&&$n[en]==="NSM";)en++;if(en<un){var Tn=Qn[ge],Xn=Tn>=1425&&Tn<=2303||Tn===64286;if(Ce=$n[en],Xn&&(Ce==="R"||Ce==="AL")){hn="R";break}}}hn=ge<1||(Ce=$n[ge-1])==="B"?"N":Zi[ge-1];break;case"B":Ai=!1,se=!0,hn=Hi;break;case"S":Zt=!0,hn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Ai=!1;break;case"BN":hn="N"}return hn},mr=function(Qn,$n,Zi){var ge=Qn.split("");return Zi&&Ti(ge,Zi,{hiLevel:Hi}),ge.reverse(),$n&&$n.reverse(),ge.join("")},Ti=function(Qn,$n,Zi){var ge,Ce,Ve,en,un,hn=-1,Tn=Qn.length,Xn=0,Te=[],ln=Hi?He:Nn,vn=[];for(Ai=!1,se=!1,Zt=!1,Ce=0;Ce<Tn;Ce++)vn[Ce]=lr(Qn[Ce]);for(Ve=0;Ve<Tn;Ve++){if(un=Xn,Te[Ve]=io(Qn,vn,Te,Ve),ge=240&(Xn=ln[un][ci[Te[Ve]]]),Xn&=15,$n[Ve]=en=ln[Xn][5],ge>0)if(ge===16){for(Ce=hn;Ce<Ve;Ce++)$n[Ce]=1;hn=-1}else hn=-1;if(ln[Xn][6])hn===-1&&(hn=Ve);else if(hn>-1){for(Ce=hn;Ce<Ve;Ce++)$n[Ce]=en;hn=-1}vn[Ve]==="B"&&($n[Ve]=0),Zi.hiLevel|=en}Zt&&function(En,Vn,li){for(var oi=0;oi<li;oi++)if(En[oi]==="S"){Vn[oi]=Hi;for(var Ei=oi-1;Ei>=0&&En[Ei]==="WS";Ei--)Vn[Ei]=Hi}}(vn,$n,Tn)},Br=function(Qn,$n,Zi,ge,Ce){if(!(Ce.hiLevel<Qn)){if(Qn===1&&Hi===1&&!se)return $n.reverse(),void(Zi&&Zi.reverse());for(var Ve,en,un,hn,Tn=$n.length,Xn=0;Xn<Tn;){if(ge[Xn]>=Qn){for(un=Xn+1;un<Tn&&ge[un]>=Qn;)un++;for(hn=Xn,en=un-1;hn<en;hn++,en--)Ve=$n[hn],$n[hn]=$n[en],$n[en]=Ve,Zi&&(Ve=Zi[hn],Zi[hn]=Zi[en],Zi[en]=Ve);Xn=un}Xn++}}},Wr=function(Qn,$n,Zi){var ge=Qn.split(""),Ce={hiLevel:Hi};return Zi||(Zi=[]),Ti(ge,Zi,Ce),function(Ve,en,un){if(un.hiLevel!==0&&pn)for(var hn,Tn=0;Tn<Ve.length;Tn++)en[Tn]===1&&(hn=gi.indexOf(Ve[Tn]))>=0&&(Ve[Tn]=gi[hn+1])}(ge,Zi,Ce),Br(2,ge,$n,Zi,Ce),Br(1,ge,$n,Zi,Ce),ge.join("")};return this.__bidiEngine__.doBidiReorder=function(Qn,$n,Zi){if(function(Ce,Ve){if(Ve)for(var en=0;en<Ce.length;en++)Ve[en]=en;ye===void 0&&(ye=Ir(Ce)),Xe===void 0&&(Xe=Ir(Ce))}(Qn,$n),pe||!Fe||Xe)if(pe&&Fe&&ye^Xe)Hi=ye?1:0,Qn=mr(Qn,$n,Zi);else if(!pe&&Fe&&Xe)Hi=ye?1:0,Qn=Wr(Qn,$n,Zi),Qn=mr(Qn,$n);else if(!pe||ye||Fe||Xe){if(pe&&!Fe&&ye^Xe)Qn=mr(Qn,$n),ye?(Hi=0,Qn=Wr(Qn,$n,Zi)):(Hi=1,Qn=Wr(Qn,$n,Zi),Qn=mr(Qn,$n));else if(pe&&ye&&!Fe&&Xe)Hi=1,Qn=Wr(Qn,$n,Zi),Qn=mr(Qn,$n);else if(!pe&&!Fe&&ye^Xe){var ge=pn;ye?(Hi=1,Qn=Wr(Qn,$n,Zi),Hi=0,pn=!1,Qn=Wr(Qn,$n,Zi),pn=ge):(Hi=0,Qn=Wr(Qn,$n,Zi),Qn=mr(Qn,$n),Hi=1,pn=!1,Qn=Wr(Qn,$n,Zi),pn=ge,Qn=mr(Qn,$n))}}else Hi=0,Qn=Wr(Qn,$n,Zi);else Hi=ye?1:0,Qn=Wr(Qn,$n,Zi);return Qn},this.__bidiEngine__.setOptions=function(Qn){Qn&&(pe=Qn.isInputVisual,Fe=Qn.isOutputVisual,ye=Qn.isInputRtl,Xe=Qn.isOutputRtl,pn=Qn.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Rt),this.__bidiEngine__};var xt=["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"],Lt=new Et.__bidiEngine__({isInputVisual:!0});Et.API.events.push(["postProcessText",function(Rt){var se=Rt.text;Rt.x,Rt.y;var Zt=Rt.options||{};Rt.mutex,Zt.lang;var pe=[];if(Zt.isInputVisual=typeof Zt.isInputVisual!="boolean"||Zt.isInputVisual,Lt.setOptions(Zt),Object.prototype.toString.call(se)==="[object Array]"){var ye=0;for(pe=[],ye=0;ye<se.length;ye+=1)Object.prototype.toString.call(se[ye])==="[object Array]"?pe.push([Lt.doBidiReorder(se[ye][0]),se[ye][1],se[ye][2]]):pe.push([Lt.doBidiReorder(se[ye])]);Rt.text=pe}else Rt.text=Lt.doBidiReorder(se);Lt.setOptions({isInputVisual:!0})}])}(Qo),Qo.API.TTFFont=function(){function Et(xt){var Lt;if(this.rawData=xt,Lt=this.contents=new fh(xt),this.contents.pos=4,Lt.readString(4)==="ttcf")throw new Error("TTCF not supported.");Lt.pos=0,this.parse(),this.subset=new Zl(this),this.registerTTF()}return Et.open=function(xt){return new Et(xt)},Et.prototype.parse=function(){return this.directory=new _A(this.contents),this.head=new gs(this),this.name=new xl(this),this.cmap=new Ku(this),this.toUnicode={},this.hhea=new bl(this),this.maxp=new Oh(this),this.hmtx=new Su(this),this.post=new pu(this),this.os2=new sa(this),this.loca=new vl(this),this.glyf=new Da(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]},Et.prototype.registerTTF=function(){var xt,Lt,Rt,se,Zt;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var pe,ye,Fe,Xe;for(Xe=[],pe=0,ye=(Fe=this.bbox).length;pe<ye;pe++)xt=Fe[pe],Xe.push(Math.round(xt*this.scaleFactor));return Xe}.call(this),this.stemV=0,this.post.exists?(Rt=255&(se=this.post.italic_angle),32768&(Lt=se>>16)&&(Lt=-(1+(65535^Lt))),this.italicAngle=+(Lt+"."+Rt)):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=(Zt=this.familyClass)===1||Zt===2||Zt===3||Zt===4||Zt===5||Zt===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")},Et.prototype.characterToGlyph=function(xt){var Lt;return((Lt=this.cmap.unicode)!=null?Lt.codeMap[xt]:void 0)||0},Et.prototype.widthOfGlyph=function(xt){var Lt;return Lt=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(xt).advance*Lt},Et.prototype.widthOfString=function(xt,Lt,Rt){var se,Zt,pe,ye;for(pe=0,Zt=0,ye=(xt=""+xt).length;0<=ye?Zt<ye:Zt>ye;Zt=0<=ye?++Zt:--Zt)se=xt.charCodeAt(Zt),pe+=this.widthOfGlyph(this.characterToGlyph(se))+Rt*(1e3/Lt)||0;return pe*(Lt/1e3)},Et.prototype.lineHeight=function(xt,Lt){var Rt;return Lt==null&&(Lt=!1),Rt=Lt?this.lineGap:0,(this.ascender+Rt-this.decender)/1e3*xt},Et}();var Uu,fh=function(){function Et(xt){this.data=xt!=null?xt:[],this.pos=0,this.length=this.data.length}return Et.prototype.readByte=function(){return this.data[this.pos++]},Et.prototype.writeByte=function(xt){return this.data[this.pos++]=xt},Et.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Et.prototype.writeUInt32=function(xt){return this.writeByte(xt>>>24&255),this.writeByte(xt>>16&255),this.writeByte(xt>>8&255),this.writeByte(255&xt)},Et.prototype.readInt32=function(){var xt;return(xt=this.readUInt32())>=2147483648?xt-4294967296:xt},Et.prototype.writeInt32=function(xt){return xt<0&&(xt+=4294967296),this.writeUInt32(xt)},Et.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Et.prototype.writeUInt16=function(xt){return this.writeByte(xt>>8&255),this.writeByte(255&xt)},Et.prototype.readInt16=function(){var xt;return(xt=this.readUInt16())>=32768?xt-65536:xt},Et.prototype.writeInt16=function(xt){return xt<0&&(xt+=65536),this.writeUInt16(xt)},Et.prototype.readString=function(xt){var Lt,Rt;for(Rt=[],Lt=0;0<=xt?Lt<xt:Lt>xt;Lt=0<=xt?++Lt:--Lt)Rt[Lt]=String.fromCharCode(this.readByte());return Rt.join("")},Et.prototype.writeString=function(xt){var Lt,Rt,se;for(se=[],Lt=0,Rt=xt.length;0<=Rt?Lt<Rt:Lt>Rt;Lt=0<=Rt?++Lt:--Lt)se.push(this.writeByte(xt.charCodeAt(Lt)));return se},Et.prototype.readShort=function(){return this.readInt16()},Et.prototype.writeShort=function(xt){return this.writeInt16(xt)},Et.prototype.readLongLong=function(){var xt,Lt,Rt,se,Zt,pe,ye,Fe;return xt=this.readByte(),Lt=this.readByte(),Rt=this.readByte(),se=this.readByte(),Zt=this.readByte(),pe=this.readByte(),ye=this.readByte(),Fe=this.readByte(),128&xt?-1*(72057594037927940*(255^xt)+281474976710656*(255^Lt)+1099511627776*(255^Rt)+4294967296*(255^se)+16777216*(255^Zt)+65536*(255^pe)+256*(255^ye)+(255^Fe)+1):72057594037927940*xt+281474976710656*Lt+1099511627776*Rt+4294967296*se+16777216*Zt+65536*pe+256*ye+Fe},Et.prototype.writeLongLong=function(xt){var Lt,Rt;return Lt=Math.floor(xt/4294967296),Rt=4294967295&xt,this.writeByte(Lt>>24&255),this.writeByte(Lt>>16&255),this.writeByte(Lt>>8&255),this.writeByte(255&Lt),this.writeByte(Rt>>24&255),this.writeByte(Rt>>16&255),this.writeByte(Rt>>8&255),this.writeByte(255&Rt)},Et.prototype.readInt=function(){return this.readInt32()},Et.prototype.writeInt=function(xt){return this.writeInt32(xt)},Et.prototype.read=function(xt){var Lt,Rt;for(Lt=[],Rt=0;0<=xt?Rt<xt:Rt>xt;Rt=0<=xt?++Rt:--Rt)Lt.push(this.readByte());return Lt},Et.prototype.write=function(xt){var Lt,Rt,se,Zt;for(Zt=[],Rt=0,se=xt.length;Rt<se;Rt++)Lt=xt[Rt],Zt.push(this.writeByte(Lt));return Zt},Et}(),_A=function(){var Et;function xt(Lt){var Rt,se,Zt;for(this.scalarType=Lt.readInt(),this.tableCount=Lt.readShort(),this.searchRange=Lt.readShort(),this.entrySelector=Lt.readShort(),this.rangeShift=Lt.readShort(),this.tables={},se=0,Zt=this.tableCount;0<=Zt?se<Zt:se>Zt;se=0<=Zt?++se:--se)Rt={tag:Lt.readString(4),checksum:Lt.readInt(),offset:Lt.readInt(),length:Lt.readInt()},this.tables[Rt.tag]=Rt}return xt.prototype.encode=function(Lt){var Rt,se,Zt,pe,ye,Fe,Xe,pn,gn,Nn,He,ci,Yn;for(Yn in He=Object.keys(Lt).length,Fe=Math.log(2),gn=16*Math.floor(Math.log(He)/Fe),pe=Math.floor(gn/Fe),pn=16*He-gn,(se=new fh).writeInt(this.scalarType),se.writeShort(He),se.writeShort(gn),se.writeShort(pe),se.writeShort(pn),Zt=16*He,Xe=se.pos+Zt,ye=null,ci=[],Lt)for(Nn=Lt[Yn],se.writeString(Yn),se.writeInt(Et(Nn)),se.writeInt(Xe),se.writeInt(Nn.length),ci=ci.concat(Nn),Yn==="head"&&(ye=Xe),Xe+=Nn.length;Xe%4;)ci.push(0),Xe++;return se.write(ci),Rt=2981146554-Et(se.data),se.pos=ye+8,se.writeUInt32(Rt),se.data},Et=function(Lt){var Rt,se,Zt,pe;for(Lt=xd.call(Lt);Lt.length%4;)Lt.push(0);for(Zt=new fh(Lt),se=0,Rt=0,pe=Lt.length;Rt<pe;Rt=Rt+=4)se+=Zt.readUInt32();return 4294967295&se},xt}(),sd={}.hasOwnProperty,il=function(Et,xt){for(var Lt in xt)sd.call(xt,Lt)&&(Et[Lt]=xt[Lt]);function Rt(){this.constructor=Et}return Rt.prototype=xt.prototype,Et.prototype=new Rt,Et.__super__=xt.prototype,Et};Uu=function(){function Et(xt){var Lt;this.file=xt,Lt=this.file.directory.tables[this.tag],this.exists=!!Lt,Lt&&(this.offset=Lt.offset,this.length=Lt.length,this.parse(this.file.contents))}return Et.prototype.parse=function(){},Et.prototype.encode=function(){},Et.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Et}();var gs=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="head",xt.prototype.parse=function(Lt){return Lt.pos=this.offset,this.version=Lt.readInt(),this.revision=Lt.readInt(),this.checkSumAdjustment=Lt.readInt(),this.magicNumber=Lt.readInt(),this.flags=Lt.readShort(),this.unitsPerEm=Lt.readShort(),this.created=Lt.readLongLong(),this.modified=Lt.readLongLong(),this.xMin=Lt.readShort(),this.yMin=Lt.readShort(),this.xMax=Lt.readShort(),this.yMax=Lt.readShort(),this.macStyle=Lt.readShort(),this.lowestRecPPEM=Lt.readShort(),this.fontDirectionHint=Lt.readShort(),this.indexToLocFormat=Lt.readShort(),this.glyphDataFormat=Lt.readShort()},xt.prototype.encode=function(Lt){var Rt;return(Rt=new fh).writeInt(this.version),Rt.writeInt(this.revision),Rt.writeInt(this.checkSumAdjustment),Rt.writeInt(this.magicNumber),Rt.writeShort(this.flags),Rt.writeShort(this.unitsPerEm),Rt.writeLongLong(this.created),Rt.writeLongLong(this.modified),Rt.writeShort(this.xMin),Rt.writeShort(this.yMin),Rt.writeShort(this.xMax),Rt.writeShort(this.yMax),Rt.writeShort(this.macStyle),Rt.writeShort(this.lowestRecPPEM),Rt.writeShort(this.fontDirectionHint),Rt.writeShort(Lt),Rt.writeShort(this.glyphDataFormat),Rt.data},xt}(),Xu=function(){function Et(xt,Lt){var Rt,se,Zt,pe,ye,Fe,Xe,pn,gn,Nn,He,ci,Yn,gi,Un,Ai,Hi;switch(this.platformID=xt.readUInt16(),this.encodingID=xt.readShort(),this.offset=Lt+xt.readInt(),gn=xt.pos,xt.pos=this.offset,this.format=xt.readUInt16(),this.length=xt.readUInt16(),this.language=xt.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(Fe=0;Fe<256;++Fe)this.codeMap[Fe]=xt.readByte();break;case 4:for(He=xt.readUInt16(),Nn=He/2,xt.pos+=6,Zt=function(){var lr,Ir;for(Ir=[],Fe=lr=0;0<=Nn?lr<Nn:lr>Nn;Fe=0<=Nn?++lr:--lr)Ir.push(xt.readUInt16());return Ir}(),xt.pos+=2,Yn=function(){var lr,Ir;for(Ir=[],Fe=lr=0;0<=Nn?lr<Nn:lr>Nn;Fe=0<=Nn?++lr:--lr)Ir.push(xt.readUInt16());return Ir}(),Xe=function(){var lr,Ir;for(Ir=[],Fe=lr=0;0<=Nn?lr<Nn:lr>Nn;Fe=0<=Nn?++lr:--lr)Ir.push(xt.readUInt16());return Ir}(),pn=function(){var lr,Ir;for(Ir=[],Fe=lr=0;0<=Nn?lr<Nn:lr>Nn;Fe=0<=Nn?++lr:--lr)Ir.push(xt.readUInt16());return Ir}(),se=(this.length-xt.pos+this.offset)/2,ye=function(){var lr,Ir;for(Ir=[],Fe=lr=0;0<=se?lr<se:lr>se;Fe=0<=se?++lr:--lr)Ir.push(xt.readUInt16());return Ir}(),Fe=Un=0,Hi=Zt.length;Un<Hi;Fe=++Un)for(gi=Zt[Fe],Rt=Ai=ci=Yn[Fe];ci<=gi?Ai<=gi:Ai>=gi;Rt=ci<=gi?++Ai:--Ai)pn[Fe]===0?pe=Rt+Xe[Fe]:(pe=ye[pn[Fe]/2+(Rt-ci)-(Nn-Fe)]||0)!==0&&(pe+=Xe[Fe]),this.codeMap[Rt]=65535&pe}xt.pos=gn}return Et.encode=function(xt,Lt){var Rt,se,Zt,pe,ye,Fe,Xe,pn,gn,Nn,He,ci,Yn,gi,Un,Ai,Hi,lr,Ir,io,mr,Ti,Br,Wr,Qn,$n,Zi,ge,Ce,Ve,en,un,hn,Tn,Xn,Te,ln,vn,En,Vn,li,oi,Ei,Ii,$i,sr;switch(ge=new fh,pe=Object.keys(xt).sort(function(Ar,Jr){return Ar-Jr}),Lt){case"macroman":for(Yn=0,gi=function(){var Ar=[];for(ci=0;ci<256;++ci)Ar.push(0);return Ar}(),Ai={0:0},Zt={},Ce=0,hn=pe.length;Ce<hn;Ce++)Ai[Ei=xt[se=pe[Ce]]]==null&&(Ai[Ei]=++Yn),Zt[se]={old:xt[se],new:Ai[xt[se]]},gi[se]=Ai[xt[se]];return ge.writeUInt16(1),ge.writeUInt16(0),ge.writeUInt32(12),ge.writeUInt16(0),ge.writeUInt16(262),ge.writeUInt16(0),ge.write(gi),{charMap:Zt,subtable:ge.data,maxGlyphID:Yn+1};case"unicode":for($n=[],gn=[],Hi=0,Ai={},Rt={},Un=Xe=null,Ve=0,Tn=pe.length;Ve<Tn;Ve++)Ai[Ir=xt[se=pe[Ve]]]==null&&(Ai[Ir]=++Hi),Rt[se]={old:Ir,new:Ai[Ir]},ye=Ai[Ir]-se,Un!=null&&ye===Xe||(Un&&gn.push(Un),$n.push(se),Xe=ye),Un=se;for(Un&&gn.push(Un),gn.push(65535),$n.push(65535),Wr=2*(Br=$n.length),Ti=2*Math.pow(Math.log(Br)/Math.LN2,2),Nn=Math.log(Ti/2)/Math.LN2,mr=2*Br-Ti,Fe=[],io=[],He=[],ci=en=0,Xn=$n.length;en<Xn;ci=++en){if(Qn=$n[ci],pn=gn[ci],Qn===65535){Fe.push(0),io.push(0);break}if(Qn-(Zi=Rt[Qn].new)>=32768)for(Fe.push(0),io.push(2*(He.length+Br-ci)),se=un=Qn;Qn<=pn?un<=pn:un>=pn;se=Qn<=pn?++un:--un)He.push(Rt[se].new);else Fe.push(Zi-Qn),io.push(0)}for(ge.writeUInt16(3),ge.writeUInt16(1),ge.writeUInt32(12),ge.writeUInt16(4),ge.writeUInt16(16+8*Br+2*He.length),ge.writeUInt16(0),ge.writeUInt16(Wr),ge.writeUInt16(Ti),ge.writeUInt16(Nn),ge.writeUInt16(mr),li=0,Te=gn.length;li<Te;li++)se=gn[li],ge.writeUInt16(se);for(ge.writeUInt16(0),oi=0,ln=$n.length;oi<ln;oi++)se=$n[oi],ge.writeUInt16(se);for(Ii=0,vn=Fe.length;Ii<vn;Ii++)ye=Fe[Ii],ge.writeUInt16(ye);for($i=0,En=io.length;$i<En;$i++)lr=io[$i],ge.writeUInt16(lr);for(sr=0,Vn=He.length;sr<Vn;sr++)Yn=He[sr],ge.writeUInt16(Yn);return{charMap:Rt,subtable:ge.data,maxGlyphID:Hi+1}}},Et}(),Ku=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="cmap",xt.prototype.parse=function(Lt){var Rt,se,Zt;for(Lt.pos=this.offset,this.version=Lt.readUInt16(),Zt=Lt.readUInt16(),this.tables=[],this.unicode=null,se=0;0<=Zt?se<Zt:se>Zt;se=0<=Zt?++se:--se)Rt=new Xu(Lt,this.offset),this.tables.push(Rt),Rt.isUnicode&&this.unicode==null&&(this.unicode=Rt);return!0},xt.encode=function(Lt,Rt){var se,Zt;return Rt==null&&(Rt="macroman"),se=Xu.encode(Lt,Rt),(Zt=new fh).writeUInt16(0),Zt.writeUInt16(1),se.table=Zt.data.concat(se.subtable),se},xt}(),bl=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="hhea",xt.prototype.parse=function(Lt){return Lt.pos=this.offset,this.version=Lt.readInt(),this.ascender=Lt.readShort(),this.decender=Lt.readShort(),this.lineGap=Lt.readShort(),this.advanceWidthMax=Lt.readShort(),this.minLeftSideBearing=Lt.readShort(),this.minRightSideBearing=Lt.readShort(),this.xMaxExtent=Lt.readShort(),this.caretSlopeRise=Lt.readShort(),this.caretSlopeRun=Lt.readShort(),this.caretOffset=Lt.readShort(),Lt.pos+=8,this.metricDataFormat=Lt.readShort(),this.numberOfMetrics=Lt.readUInt16()},xt}(),sa=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="OS/2",xt.prototype.parse=function(Lt){if(Lt.pos=this.offset,this.version=Lt.readUInt16(),this.averageCharWidth=Lt.readShort(),this.weightClass=Lt.readUInt16(),this.widthClass=Lt.readUInt16(),this.type=Lt.readShort(),this.ySubscriptXSize=Lt.readShort(),this.ySubscriptYSize=Lt.readShort(),this.ySubscriptXOffset=Lt.readShort(),this.ySubscriptYOffset=Lt.readShort(),this.ySuperscriptXSize=Lt.readShort(),this.ySuperscriptYSize=Lt.readShort(),this.ySuperscriptXOffset=Lt.readShort(),this.ySuperscriptYOffset=Lt.readShort(),this.yStrikeoutSize=Lt.readShort(),this.yStrikeoutPosition=Lt.readShort(),this.familyClass=Lt.readShort(),this.panose=function(){var Rt,se;for(se=[],Rt=0;Rt<10;++Rt)se.push(Lt.readByte());return se}(),this.charRange=function(){var Rt,se;for(se=[],Rt=0;Rt<4;++Rt)se.push(Lt.readInt());return se}(),this.vendorID=Lt.readString(4),this.selection=Lt.readShort(),this.firstCharIndex=Lt.readShort(),this.lastCharIndex=Lt.readShort(),this.version>0&&(this.ascent=Lt.readShort(),this.descent=Lt.readShort(),this.lineGap=Lt.readShort(),this.winAscent=Lt.readShort(),this.winDescent=Lt.readShort(),this.codePageRange=function(){var Rt,se;for(se=[],Rt=0;Rt<2;Rt=++Rt)se.push(Lt.readInt());return se}(),this.version>1))return this.xHeight=Lt.readShort(),this.capHeight=Lt.readShort(),this.defaultChar=Lt.readShort(),this.breakChar=Lt.readShort(),this.maxContext=Lt.readShort()},xt}(),pu=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="post",xt.prototype.parse=function(Lt){var Rt,se,Zt;switch(Lt.pos=this.offset,this.format=Lt.readInt(),this.italicAngle=Lt.readInt(),this.underlinePosition=Lt.readShort(),this.underlineThickness=Lt.readShort(),this.isFixedPitch=Lt.readInt(),this.minMemType42=Lt.readInt(),this.maxMemType42=Lt.readInt(),this.minMemType1=Lt.readInt(),this.maxMemType1=Lt.readInt(),this.format){case 65536:break;case 131072:var pe;for(se=Lt.readUInt16(),this.glyphNameIndex=[],pe=0;0<=se?pe<se:pe>se;pe=0<=se?++pe:--pe)this.glyphNameIndex.push(Lt.readUInt16());for(this.names=[],Zt=[];Lt.pos<this.offset+this.length;)Rt=Lt.readByte(),Zt.push(this.names.push(Lt.readString(Rt)));return Zt;case 151552:return se=Lt.readUInt16(),this.offsets=Lt.read(se);case 196608:break;case 262144:return this.map=function(){var ye,Fe,Xe;for(Xe=[],pe=ye=0,Fe=this.file.maxp.numGlyphs;0<=Fe?ye<Fe:ye>Fe;pe=0<=Fe?++ye:--ye)Xe.push(Lt.readUInt32());return Xe}.call(this)}},xt}(),gh=function(Et,xt){this.raw=Et,this.length=Et.length,this.platformID=xt.platformID,this.encodingID=xt.encodingID,this.languageID=xt.languageID},xl=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="name",xt.prototype.parse=function(Lt){var Rt,se,Zt,pe,ye,Fe,Xe,pn,gn,Nn,He;for(Lt.pos=this.offset,Lt.readShort(),Rt=Lt.readShort(),Fe=Lt.readShort(),se=[],pe=0;0<=Rt?pe<Rt:pe>Rt;pe=0<=Rt?++pe:--pe)se.push({platformID:Lt.readShort(),encodingID:Lt.readShort(),languageID:Lt.readShort(),nameID:Lt.readShort(),length:Lt.readShort(),offset:this.offset+Fe+Lt.readShort()});for(Xe={},pe=gn=0,Nn=se.length;gn<Nn;pe=++gn)Zt=se[pe],Lt.pos=Zt.offset,pn=Lt.readString(Zt.length),ye=new gh(pn,Zt),Xe[He=Zt.nameID]==null&&(Xe[He]=[]),Xe[Zt.nameID].push(ye);this.strings=Xe,this.copyright=Xe[0],this.fontFamily=Xe[1],this.fontSubfamily=Xe[2],this.uniqueSubfamily=Xe[3],this.fontName=Xe[4],this.version=Xe[5];try{this.postscriptName=Xe[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(ci){this.postscriptName=Xe[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Xe[7],this.manufacturer=Xe[8],this.designer=Xe[9],this.description=Xe[10],this.vendorUrl=Xe[11],this.designerUrl=Xe[12],this.license=Xe[13],this.licenseUrl=Xe[14],this.preferredFamily=Xe[15],this.preferredSubfamily=Xe[17],this.compatibleFull=Xe[18],this.sampleText=Xe[19]},xt}(),Oh=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="maxp",xt.prototype.parse=function(Lt){return Lt.pos=this.offset,this.version=Lt.readInt(),this.numGlyphs=Lt.readUInt16(),this.maxPoints=Lt.readUInt16(),this.maxContours=Lt.readUInt16(),this.maxCompositePoints=Lt.readUInt16(),this.maxComponentContours=Lt.readUInt16(),this.maxZones=Lt.readUInt16(),this.maxTwilightPoints=Lt.readUInt16(),this.maxStorage=Lt.readUInt16(),this.maxFunctionDefs=Lt.readUInt16(),this.maxInstructionDefs=Lt.readUInt16(),this.maxStackElements=Lt.readUInt16(),this.maxSizeOfInstructions=Lt.readUInt16(),this.maxComponentElements=Lt.readUInt16(),this.maxComponentDepth=Lt.readUInt16()},xt}(),Su=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="hmtx",xt.prototype.parse=function(Lt){var Rt,se,Zt,pe,ye,Fe,Xe;for(Lt.pos=this.offset,this.metrics=[],Rt=0,Fe=this.file.hhea.numberOfMetrics;0<=Fe?Rt<Fe:Rt>Fe;Rt=0<=Fe?++Rt:--Rt)this.metrics.push({advance:Lt.readUInt16(),lsb:Lt.readInt16()});for(Zt=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var pn,gn;for(gn=[],Rt=pn=0;0<=Zt?pn<Zt:pn>Zt;Rt=0<=Zt?++pn:--pn)gn.push(Lt.readInt16());return gn}(),this.widths=function(){var pn,gn,Nn,He;for(He=[],pn=0,gn=(Nn=this.metrics).length;pn<gn;pn++)pe=Nn[pn],He.push(pe.advance);return He}.call(this),se=this.widths[this.widths.length-1],Xe=[],Rt=ye=0;0<=Zt?ye<Zt:ye>Zt;Rt=0<=Zt?++ye:--ye)Xe.push(this.widths.push(se));return Xe},xt.prototype.forGlyph=function(Lt){return Lt in this.metrics?this.metrics[Lt]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Lt-this.metrics.length]}},xt}(),xd=[].slice,Da=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="glyf",xt.prototype.parse=function(){return this.cache={}},xt.prototype.glyphFor=function(Lt){var Rt,se,Zt,pe,ye,Fe,Xe,pn,gn,Nn;return Lt in this.cache?this.cache[Lt]:(pe=this.file.loca,Rt=this.file.contents,se=pe.indexOf(Lt),(Zt=pe.lengthOf(Lt))===0?this.cache[Lt]=null:(Rt.pos=this.offset+se,ye=(Fe=new fh(Rt.read(Zt))).readShort(),pn=Fe.readShort(),Nn=Fe.readShort(),Xe=Fe.readShort(),gn=Fe.readShort(),this.cache[Lt]=ye===-1?new ja(Fe,pn,Nn,Xe,gn):new Ju(Fe,ye,pn,Nn,Xe,gn),this.cache[Lt]))},xt.prototype.encode=function(Lt,Rt,se){var Zt,pe,ye,Fe,Xe;for(ye=[],pe=[],Fe=0,Xe=Rt.length;Fe<Xe;Fe++)Zt=Lt[Rt[Fe]],pe.push(ye.length),Zt&&(ye=ye.concat(Zt.encode(se)));return pe.push(ye.length),{table:ye,offsets:pe}},xt}(),Ju=function(){function Et(xt,Lt,Rt,se,Zt,pe){this.raw=xt,this.numberOfContours=Lt,this.xMin=Rt,this.yMin=se,this.xMax=Zt,this.yMax=pe,this.compound=!1}return Et.prototype.encode=function(){return this.raw.data},Et}(),ja=function(){function Et(xt,Lt,Rt,se,Zt){var pe,ye;for(this.raw=xt,this.xMin=Lt,this.yMin=Rt,this.xMax=se,this.yMax=Zt,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],pe=this.raw;ye=pe.readShort(),this.glyphOffsets.push(pe.pos),this.glyphIDs.push(pe.readUInt16()),32&ye;)pe.pos+=1&ye?4:2,128&ye?pe.pos+=8:64&ye?pe.pos+=4:8&ye&&(pe.pos+=2)}return Et.prototype.encode=function(){var xt,Lt,Rt;for(Lt=new fh(xd.call(this.raw.data)),xt=0,Rt=this.glyphIDs.length;xt<Rt;++xt)Lt.pos=this.glyphOffsets[xt];return Lt.data},Et}(),vl=function(Et){function xt(){return xt.__super__.constructor.apply(this,arguments)}return il(xt,Uu),xt.prototype.tag="loca",xt.prototype.parse=function(Lt){var Rt,se;return Lt.pos=this.offset,Rt=this.file.head.indexToLocFormat,this.offsets=Rt===0?function(){var Zt,pe;for(pe=[],se=0,Zt=this.length;se<Zt;se+=2)pe.push(2*Lt.readUInt16());return pe}.call(this):function(){var Zt,pe;for(pe=[],se=0,Zt=this.length;se<Zt;se+=4)pe.push(Lt.readUInt32());return pe}.call(this)},xt.prototype.indexOf=function(Lt){return this.offsets[Lt]},xt.prototype.lengthOf=function(Lt){return this.offsets[Lt+1]-this.offsets[Lt]},xt.prototype.encode=function(Lt,Rt){for(var se=new Uint32Array(this.offsets.length),Zt=0,pe=0,ye=0;ye<se.length;++ye)if(se[ye]=Zt,pe<Rt.length&&Rt[pe]==ye){++pe,se[ye]=Zt;var Fe=this.offsets[ye],Xe=this.offsets[ye+1]-Fe;Xe>0&&(Zt+=Xe)}for(var pn=new Array(4*se.length),gn=0;gn<se.length;++gn)pn[4*gn+3]=255&se[gn],pn[4*gn+2]=(65280&se[gn])>>8,pn[4*gn+1]=(16711680&se[gn])>>16,pn[4*gn]=(4278190080&se[gn])>>24;return pn},xt}(),Zl=function(){function Et(xt){this.font=xt,this.subset={},this.unicodes={},this.next=33}return Et.prototype.generateCmap=function(){var xt,Lt,Rt,se,Zt;for(Lt in se=this.font.cmap.tables[0].codeMap,xt={},Zt=this.subset)Rt=Zt[Lt],xt[Lt]=se[Rt];return xt},Et.prototype.glyphsFor=function(xt){var Lt,Rt,se,Zt,pe,ye,Fe;for(se={},pe=0,ye=xt.length;pe<ye;pe++)se[Zt=xt[pe]]=this.font.glyf.glyphFor(Zt);for(Zt in Lt=[],se)(Rt=se[Zt])!=null&&Rt.compound&&Lt.push.apply(Lt,Rt.glyphIDs);if(Lt.length>0)for(Zt in Fe=this.glyphsFor(Lt))Rt=Fe[Zt],se[Zt]=Rt;return se},Et.prototype.encode=function(xt,Lt){var Rt,se,Zt,pe,ye,Fe,Xe,pn,gn,Nn,He,ci,Yn,gi,Un;for(se in Rt=Ku.encode(this.generateCmap(),"unicode"),pe=this.glyphsFor(xt),He={0:0},Un=Rt.charMap)He[(Fe=Un[se]).old]=Fe.new;for(ci in Nn=Rt.maxGlyphID,pe)ci in He||(He[ci]=Nn++);return pn=function(Ai){var Hi,lr;for(Hi in lr={},Ai)lr[Ai[Hi]]=Hi;return lr}(He),gn=Object.keys(pn).sort(function(Ai,Hi){return Ai-Hi}),Yn=function(){var Ai,Hi,lr;for(lr=[],Ai=0,Hi=gn.length;Ai<Hi;Ai++)ye=gn[Ai],lr.push(pn[ye]);return lr}(),Zt=this.font.glyf.encode(pe,Yn,He),Xe=this.font.loca.encode(Zt.offsets,Yn),gi={cmap:this.font.cmap.raw(),glyf:Zt.table,loca:Xe,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(Lt)},this.font.os2.exists&&(gi["OS/2"]=this.font.os2.raw()),this.font.directory.encode(gi)},Et}();Qo.API.PDFObject=function(){var Et;function xt(){}return Et=function(Lt,Rt){return(Array(Rt+1).join("0")+Lt).slice(-Rt)},xt.convert=function(Lt){var Rt,se,Zt,pe;if(Array.isArray(Lt))return"["+function(){var ye,Fe,Xe;for(Xe=[],ye=0,Fe=Lt.length;ye<Fe;ye++)Rt=Lt[ye],Xe.push(xt.convert(Rt));return Xe}().join(" ")+"]";if(typeof Lt=="string")return"/"+Lt;if(Lt!=null&&Lt.isString)return"("+Lt+")";if(Lt instanceof Date)return"(D:"+Et(Lt.getUTCFullYear(),4)+Et(Lt.getUTCMonth(),2)+Et(Lt.getUTCDate(),2)+Et(Lt.getUTCHours(),2)+Et(Lt.getUTCMinutes(),2)+Et(Lt.getUTCSeconds(),2)+"Z)";if({}.toString.call(Lt)==="[object Object]"){for(se in Zt=["<<"],Lt)pe=Lt[se],Zt.push("/"+se+" "+xt.convert(pe));return Zt.push(">>"),Zt.join(`
`)}return""+Lt},xt}()},86129:function(ui,wn,bt){var Ft=bt(19208).lW,ce=bt(97671);(function(re){ui.exports=re()})(function(){return function re(Be,ee,Yt){function It(Pt,oe){if(!ee[Pt]){if(!Be[Pt]){var zt=void 0;if(!oe&&zt)return require(Pt,!0);if(jt)return jt(Pt,!0);var Jt=new Error("Cannot find module '"+Pt+"'");throw Jt.code="MODULE_NOT_FOUND",Jt}var Ct=ee[Pt]={exports:{}};Be[Pt][0].call(Ct.exports,function(et){var tt=Be[Pt][1][et];return It(tt||et)},Ct,Ct.exports,re,Be,ee,Yt)}return ee[Pt].exports}for(var jt=void 0,Xt=0;Xt<Yt.length;Xt++)It(Yt[Xt]);return It}({1:[function(re,Be,ee){"use strict";var Yt=re("./utils"),It=re("./support"),jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ee.encode=function(Xt){for(var Pt,oe,zt,Jt,Ct,et,tt,lt=[],rt=0,ut=Xt.length,ct=ut,wt=Yt.getTypeOf(Xt)!=="string";rt<Xt.length;)ct=ut-rt,zt=wt?(Pt=Xt[rt++],oe=rt<ut?Xt[rt++]:0,rt<ut?Xt[rt++]:0):(Pt=Xt.charCodeAt(rt++),oe=rt<ut?Xt.charCodeAt(rt++):0,rt<ut?Xt.charCodeAt(rt++):0),Jt=Pt>>2,Ct=(3&Pt)<<4|oe>>4,et=1<ct?(15&oe)<<2|zt>>6:64,tt=2<ct?63&zt:64,lt.push(jt.charAt(Jt)+jt.charAt(Ct)+jt.charAt(et)+jt.charAt(tt));return lt.join("")},ee.decode=function(Xt){var Pt,oe,zt,Jt,Ct,et,tt=0,lt=0,rt="data:";if(Xt.substr(0,rt.length)===rt)throw new Error("Invalid base64 input, it looks like a data url.");var ut,ct=3*(Xt=Xt.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(Xt.charAt(Xt.length-1)===jt.charAt(64)&&ct--,Xt.charAt(Xt.length-2)===jt.charAt(64)&&ct--,ct%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ut=It.uint8array?new Uint8Array(0|ct):new Array(0|ct);tt<Xt.length;)Pt=jt.indexOf(Xt.charAt(tt++))<<2|(Jt=jt.indexOf(Xt.charAt(tt++)))>>4,oe=(15&Jt)<<4|(Ct=jt.indexOf(Xt.charAt(tt++)))>>2,zt=(3&Ct)<<6|(et=jt.indexOf(Xt.charAt(tt++))),ut[lt++]=Pt,Ct!==64&&(ut[lt++]=oe),et!==64&&(ut[lt++]=zt);return ut}},{"./support":30,"./utils":32}],2:[function(re,Be,ee){"use strict";var Yt=re("./external"),It=re("./stream/DataWorker"),jt=re("./stream/Crc32Probe"),Xt=re("./stream/DataLengthProbe");function Pt(oe,zt,Jt,Ct,et){this.compressedSize=oe,this.uncompressedSize=zt,this.crc32=Jt,this.compression=Ct,this.compressedContent=et}Pt.prototype={getContentWorker:function(){var oe=new It(Yt.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Xt("data_length")),zt=this;return oe.on("end",function(){if(this.streamInfo.data_length!==zt.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),oe},getCompressedWorker:function(){return new It(Yt.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},Pt.createWorkerFrom=function(oe,zt,Jt){return oe.pipe(new jt).pipe(new Xt("uncompressedSize")).pipe(zt.compressWorker(Jt)).pipe(new Xt("compressedSize")).withStreamInfo("compression",zt)},Be.exports=Pt},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(re,Be,ee){"use strict";var Yt=re("./stream/GenericWorker");ee.STORE={magic:"\0\0",compressWorker:function(){return new Yt("STORE compression")},uncompressWorker:function(){return new Yt("STORE decompression")}},ee.DEFLATE=re("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(re,Be,ee){"use strict";var Yt=re("./utils"),It=function(){for(var jt,Xt=[],Pt=0;Pt<256;Pt++){jt=Pt;for(var oe=0;oe<8;oe++)jt=1&jt?3988292384^jt>>>1:jt>>>1;Xt[Pt]=jt}return Xt}();Be.exports=function(jt,Xt){return jt!==void 0&&jt.length?Yt.getTypeOf(jt)!=="string"?function(Pt,oe,zt,Jt){var Ct=It,et=Jt+zt;Pt^=-1;for(var tt=Jt;tt<et;tt++)Pt=Pt>>>8^Ct[255&(Pt^oe[tt])];return-1^Pt}(0|Xt,jt,jt.length,0):function(Pt,oe,zt,Jt){var Ct=It,et=Jt+zt;Pt^=-1;for(var tt=Jt;tt<et;tt++)Pt=Pt>>>8^Ct[255&(Pt^oe.charCodeAt(tt))];return-1^Pt}(0|Xt,jt,jt.length,0):0}},{"./utils":32}],5:[function(re,Be,ee){"use strict";ee.base64=!1,ee.binary=!1,ee.dir=!1,ee.createFolders=!0,ee.date=null,ee.compression=null,ee.compressionOptions=null,ee.comment=null,ee.unixPermissions=null,ee.dosPermissions=null},{}],6:[function(re,Be,ee){"use strict";var Yt=null;Yt=typeof Promise!="undefined"?Promise:re("lie"),Be.exports={Promise:Yt}},{lie:37}],7:[function(re,Be,ee){"use strict";var Yt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",It=re("pako"),jt=re("./utils"),Xt=re("./stream/GenericWorker"),Pt=Yt?"uint8array":"array";function oe(zt,Jt){Xt.call(this,"FlateWorker/"+zt),this._pako=null,this._pakoAction=zt,this._pakoOptions=Jt,this.meta={}}ee.magic="\b\0",jt.inherits(oe,Xt),oe.prototype.processChunk=function(zt){this.meta=zt.meta,this._pako===null&&this._createPako(),this._pako.push(jt.transformTo(Pt,zt.data),!1)},oe.prototype.flush=function(){Xt.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},oe.prototype.cleanUp=function(){Xt.prototype.cleanUp.call(this),this._pako=null},oe.prototype._createPako=function(){this._pako=new It[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var zt=this;this._pako.onData=function(Jt){zt.push({data:Jt,meta:zt.meta})}},ee.compressWorker=function(zt){return new oe("Deflate",zt)},ee.uncompressWorker=function(){return new oe("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(re,Be,ee){"use strict";function Yt(Ct,et){var tt,lt="";for(tt=0;tt<et;tt++)lt+=String.fromCharCode(255&Ct),Ct>>>=8;return lt}function It(Ct,et,tt,lt,rt,ut){var ct,wt,Mt=Ct.file,Ot=Ct.compression,Ht=ut!==Pt.utf8encode,ne=jt.transformTo("string",ut(Mt.name)),ae=jt.transformTo("string",Pt.utf8encode(Mt.name)),de=Mt.comment,be=jt.transformTo("string",ut(de)),qt=jt.transformTo("string",Pt.utf8encode(de)),ze=ae.length!==Mt.name.length,Vt=qt.length!==de.length,Ge="",_e="",Ne="",We=Mt.dir,Re=Mt.date,ve={crc32:0,compressedSize:0,uncompressedSize:0};et&&!tt||(ve.crc32=Ct.crc32,ve.compressedSize=Ct.compressedSize,ve.uncompressedSize=Ct.uncompressedSize);var ie=0;et&&(ie|=8),Ht||!ze&&!Vt||(ie|=2048);var Se=0,Bn=0;We&&(Se|=16),rt==="UNIX"?(Bn=798,Se|=function(Ye,Mn){var Wn=Ye;return Ye||(Wn=Mn?16893:33204),(65535&Wn)<<16}(Mt.unixPermissions,We)):(Bn=20,Se|=function(Ye){return 63&(Ye||0)}(Mt.dosPermissions)),ct=Re.getUTCHours(),ct<<=6,ct|=Re.getUTCMinutes(),ct<<=5,ct|=Re.getUTCSeconds()/2,wt=Re.getUTCFullYear()-1980,wt<<=4,wt|=Re.getUTCMonth()+1,wt<<=5,wt|=Re.getUTCDate(),ze&&(_e=Yt(1,1)+Yt(oe(ne),4)+ae,Ge+="up"+Yt(_e.length,2)+_e),Vt&&(Ne=Yt(1,1)+Yt(oe(be),4)+qt,Ge+="uc"+Yt(Ne.length,2)+Ne);var Ln="";return Ln+=`
\0`,Ln+=Yt(ie,2),Ln+=Ot.magic,Ln+=Yt(ct,2),Ln+=Yt(wt,2),Ln+=Yt(ve.crc32,4),Ln+=Yt(ve.compressedSize,4),Ln+=Yt(ve.uncompressedSize,4),Ln+=Yt(ne.length,2),Ln+=Yt(Ge.length,2),{fileRecord:zt.LOCAL_FILE_HEADER+Ln+ne+Ge,dirRecord:zt.CENTRAL_FILE_HEADER+Yt(Bn,2)+Ln+Yt(be.length,2)+"\0\0\0\0"+Yt(Se,4)+Yt(lt,4)+ne+Ge+be}}var jt=re("../utils"),Xt=re("../stream/GenericWorker"),Pt=re("../utf8"),oe=re("../crc32"),zt=re("../signature");function Jt(Ct,et,tt,lt){Xt.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=et,this.zipPlatform=tt,this.encodeFileName=lt,this.streamFiles=Ct,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}jt.inherits(Jt,Xt),Jt.prototype.push=function(Ct){var et=Ct.meta.percent||0,tt=this.entriesCount,lt=this._sources.length;this.accumulate?this.contentBuffer.push(Ct):(this.bytesWritten+=Ct.data.length,Xt.prototype.push.call(this,{data:Ct.data,meta:{currentFile:this.currentFile,percent:tt?(et+100*(tt-lt-1))/tt:100}}))},Jt.prototype.openedSource=function(Ct){this.currentSourceOffset=this.bytesWritten,this.currentFile=Ct.file.name;var et=this.streamFiles&&!Ct.file.dir;if(et){var tt=It(Ct,et,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:tt.fileRecord,meta:{percent:0}})}else this.accumulate=!0},Jt.prototype.closedSource=function(Ct){this.accumulate=!1;var et=this.streamFiles&&!Ct.file.dir,tt=It(Ct,et,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(tt.dirRecord),et)this.push({data:function(lt){return zt.DATA_DESCRIPTOR+Yt(lt.crc32,4)+Yt(lt.compressedSize,4)+Yt(lt.uncompressedSize,4)}(Ct),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 Ct=this.bytesWritten,et=0;et<this.dirRecords.length;et++)this.push({data:this.dirRecords[et],meta:{percent:100}});var tt=this.bytesWritten-Ct,lt=function(rt,ut,ct,wt,Mt){var Ot=jt.transformTo("string",Mt(wt));return zt.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Yt(rt,2)+Yt(rt,2)+Yt(ut,4)+Yt(ct,4)+Yt(Ot.length,2)+Ot}(this.dirRecords.length,tt,Ct,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(Ct){this._sources.push(Ct);var et=this;return Ct.on("data",function(tt){et.processChunk(tt)}),Ct.on("end",function(){et.closedSource(et.previous.streamInfo),et._sources.length?et.prepareNextSource():et.end()}),Ct.on("error",function(tt){et.error(tt)}),this},Jt.prototype.resume=function(){return!!Xt.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(Ct){var et=this._sources;if(!Xt.prototype.error.call(this,Ct))return!1;for(var tt=0;tt<et.length;tt++)try{et[tt].error(Ct)}catch(lt){}return!0},Jt.prototype.lock=function(){Xt.prototype.lock.call(this);for(var Ct=this._sources,et=0;et<Ct.length;et++)Ct[et].lock()},Be.exports=Jt},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(re,Be,ee){"use strict";var Yt=re("../compressions"),It=re("./ZipFileWorker");ee.generateWorker=function(jt,Xt,Pt){var oe=new It(Xt.streamFiles,Pt,Xt.platform,Xt.encodeFileName),zt=0;try{jt.forEach(function(Jt,Ct){zt++;var et=function(ut,ct){var wt=ut||ct,Mt=Yt[wt];if(!Mt)throw new Error(wt+" is not a valid compression method !");return Mt}(Ct.options.compression,Xt.compression),tt=Ct.options.compressionOptions||Xt.compressionOptions||{},lt=Ct.dir,rt=Ct.date;Ct._compressWorker(et,tt).withStreamInfo("file",{name:Jt,dir:lt,date:rt,comment:Ct.comment||"",unixPermissions:Ct.unixPermissions,dosPermissions:Ct.dosPermissions}).pipe(oe)}),oe.entriesCount=zt}catch(Jt){oe.error(Jt)}return oe}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(re,Be,ee){"use strict";function Yt(){if(!(this instanceof Yt))return new Yt;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 It=new Yt;for(var jt in this)typeof this[jt]!="function"&&(It[jt]=this[jt]);return It}}(Yt.prototype=re("./object")).loadAsync=re("./load"),Yt.support=re("./support"),Yt.defaults=re("./defaults"),Yt.version="3.10.1",Yt.loadAsync=function(It,jt){return new Yt().loadAsync(It,jt)},Yt.external=re("./external"),Be.exports=Yt},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(re,Be,ee){"use strict";var Yt=re("./utils"),It=re("./external"),jt=re("./utf8"),Xt=re("./zipEntries"),Pt=re("./stream/Crc32Probe"),oe=re("./nodejsUtils");function zt(Jt){return new It.Promise(function(Ct,et){var tt=Jt.decompressed.getContentWorker().pipe(new Pt);tt.on("error",function(lt){et(lt)}).on("end",function(){tt.streamInfo.crc32!==Jt.decompressed.crc32?et(new Error("Corrupted zip : CRC32 mismatch")):Ct()}).resume()})}Be.exports=function(Jt,Ct){var et=this;return Ct=Yt.extend(Ct||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:jt.utf8decode}),oe.isNode&&oe.isStream(Jt)?It.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Yt.prepareContent("the loaded zip file",Jt,!0,Ct.optimizedBinaryString,Ct.base64).then(function(tt){var lt=new Xt(Ct);return lt.load(tt),lt}).then(function(tt){var lt=[It.Promise.resolve(tt)],rt=tt.files;if(Ct.checkCRC32)for(var ut=0;ut<rt.length;ut++)lt.push(zt(rt[ut]));return It.Promise.all(lt)}).then(function(tt){for(var lt=tt.shift(),rt=lt.files,ut=0;ut<rt.length;ut++){var ct=rt[ut],wt=ct.fileNameStr,Mt=Yt.resolve(ct.fileNameStr);et.file(Mt,ct.decompressed,{binary:!0,optimizedBinaryString:!0,date:ct.date,dir:ct.dir,comment:ct.fileCommentStr.length?ct.fileCommentStr:null,unixPermissions:ct.unixPermissions,dosPermissions:ct.dosPermissions,createFolders:Ct.createFolders}),ct.dir||(et.file(Mt).unsafeOriginalName=wt)}return lt.zipComment.length&&(et.comment=lt.zipComment),et})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(re,Be,ee){"use strict";var Yt=re("../utils"),It=re("../stream/GenericWorker");function jt(Xt,Pt){It.call(this,"Nodejs stream input adapter for "+Xt),this._upstreamEnded=!1,this._bindStream(Pt)}Yt.inherits(jt,It),jt.prototype._bindStream=function(Xt){var Pt=this;(this._stream=Xt).pause(),Xt.on("data",function(oe){Pt.push({data:oe,meta:{percent:0}})}).on("error",function(oe){Pt.isPaused?this.generatedError=oe:Pt.error(oe)}).on("end",function(){Pt.isPaused?Pt._upstreamEnded=!0:Pt.end()})},jt.prototype.pause=function(){return!!It.prototype.pause.call(this)&&(this._stream.pause(),!0)},jt.prototype.resume=function(){return!!It.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Be.exports=jt},{"../stream/GenericWorker":28,"../utils":32}],13:[function(re,Be,ee){"use strict";var Yt=re("readable-stream").Readable;function It(jt,Xt,Pt){Yt.call(this,Xt),this._helper=jt;var oe=this;jt.on("data",function(zt,Jt){oe.push(zt)||oe._helper.pause(),Pt&&Pt(Jt)}).on("error",function(zt){oe.emit("error",zt)}).on("end",function(){oe.push(null)})}re("../utils").inherits(It,Yt),It.prototype._read=function(){this._helper.resume()},Be.exports=It},{"../utils":32,"readable-stream":16}],14:[function(re,Be,ee){"use strict";Be.exports={isNode:typeof Ft!="undefined",newBufferFrom:function(Yt,It){if(Ft.from&&Ft.from!==Uint8Array.from)return Ft.from(Yt,It);if(typeof Yt=="number")throw new Error('The "data" argument must not be a number');return new Ft(Yt,It)},allocBuffer:function(Yt){if(Ft.alloc)return Ft.alloc(Yt);var It=new Ft(Yt);return It.fill(0),It},isBuffer:function(Yt){return Ft.isBuffer(Yt)},isStream:function(Yt){return Yt&&typeof Yt.on=="function"&&typeof Yt.pause=="function"&&typeof Yt.resume=="function"}}},{}],15:[function(re,Be,ee){"use strict";function Yt(Mt,Ot,Ht){var ne,ae=jt.getTypeOf(Ot),de=jt.extend(Ht||{},oe);de.date=de.date||new Date,de.compression!==null&&(de.compression=de.compression.toUpperCase()),typeof de.unixPermissions=="string"&&(de.unixPermissions=parseInt(de.unixPermissions,8)),de.unixPermissions&&16384&de.unixPermissions&&(de.dir=!0),de.dosPermissions&&16&de.dosPermissions&&(de.dir=!0),de.dir&&(Mt=rt(Mt)),de.createFolders&&(ne=lt(Mt))&&ut.call(this,ne,!0);var be=ae==="string"&&de.binary===!1&&de.base64===!1;Ht&&Ht.binary!==void 0||(de.binary=!be),(Ot instanceof zt&&Ot.uncompressedSize===0||de.dir||!Ot||Ot.length===0)&&(de.base64=!1,de.binary=!0,Ot="",de.compression="STORE",ae="string");var qt=null;qt=Ot instanceof zt||Ot instanceof Xt?Ot:et.isNode&&et.isStream(Ot)?new tt(Mt,Ot):jt.prepareContent(Mt,Ot,de.binary,de.optimizedBinaryString,de.base64);var ze=new Jt(Mt,qt,de);this.files[Mt]=ze}var It=re("./utf8"),jt=re("./utils"),Xt=re("./stream/GenericWorker"),Pt=re("./stream/StreamHelper"),oe=re("./defaults"),zt=re("./compressedObject"),Jt=re("./zipObject"),Ct=re("./generate"),et=re("./nodejsUtils"),tt=re("./nodejs/NodejsStreamInputAdapter"),lt=function(Mt){Mt.slice(-1)==="/"&&(Mt=Mt.substring(0,Mt.length-1));var Ot=Mt.lastIndexOf("/");return 0<Ot?Mt.substring(0,Ot):""},rt=function(Mt){return Mt.slice(-1)!=="/"&&(Mt+="/"),Mt},ut=function(Mt,Ot){return Ot=Ot!==void 0?Ot:oe.createFolders,Mt=rt(Mt),this.files[Mt]||Yt.call(this,Mt,null,{dir:!0,createFolders:Ot}),this.files[Mt]};function ct(Mt){return Object.prototype.toString.call(Mt)==="[object RegExp]"}var wt={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Mt){var Ot,Ht,ne;for(Ot in this.files)ne=this.files[Ot],(Ht=Ot.slice(this.root.length,Ot.length))&&Ot.slice(0,this.root.length)===this.root&&Mt(Ht,ne)},filter:function(Mt){var Ot=[];return this.forEach(function(Ht,ne){Mt(Ht,ne)&&Ot.push(ne)}),Ot},file:function(Mt,Ot,Ht){if(arguments.length!==1)return Mt=this.root+Mt,Yt.call(this,Mt,Ot,Ht),this;if(ct(Mt)){var ne=Mt;return this.filter(function(de,be){return!be.dir&&ne.test(de)})}var ae=this.files[this.root+Mt];return ae&&!ae.dir?ae:null},folder:function(Mt){if(!Mt)return this;if(ct(Mt))return this.filter(function(ae,de){return de.dir&&Mt.test(ae)});var Ot=this.root+Mt,Ht=ut.call(this,Ot),ne=this.clone();return ne.root=Ht.name,ne},remove:function(Mt){Mt=this.root+Mt;var Ot=this.files[Mt];if(Ot||(Mt.slice(-1)!=="/"&&(Mt+="/"),Ot=this.files[Mt]),Ot&&!Ot.dir)delete this.files[Mt];else for(var Ht=this.filter(function(ae,de){return de.name.slice(0,Mt.length)===Mt}),ne=0;ne<Ht.length;ne++)delete this.files[Ht[ne].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 Ot,Ht={};try{if((Ht=jt.extend(Mt||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:It.utf8encode})).type=Ht.type.toLowerCase(),Ht.compression=Ht.compression.toUpperCase(),Ht.type==="binarystring"&&(Ht.type="string"),!Ht.type)throw new Error("No output type specified.");jt.checkSupport(Ht.type),Ht.platform!=="darwin"&&Ht.platform!=="freebsd"&&Ht.platform!=="linux"&&Ht.platform!=="sunos"||(Ht.platform="UNIX"),Ht.platform==="win32"&&(Ht.platform="DOS");var ne=Ht.comment||this.comment||"";Ot=Ct.generateWorker(this,Ht,ne)}catch(ae){(Ot=new Xt("error")).error(ae)}return new Pt(Ot,Ht.type||"string",Ht.mimeType)},generateAsync:function(Mt,Ot){return this.generateInternalStream(Mt).accumulate(Ot)},generateNodeStream:function(Mt,Ot){return(Mt=Mt||{}).type||(Mt.type="nodebuffer"),this.generateInternalStream(Mt).toNodejsStream(Ot)}};Be.exports=wt},{"./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(re,Be,ee){"use strict";Be.exports=re("stream")},{stream:void 0}],17:[function(re,Be,ee){"use strict";var Yt=re("./DataReader");function It(jt){Yt.call(this,jt);for(var Xt=0;Xt<this.data.length;Xt++)jt[Xt]=255&jt[Xt]}re("../utils").inherits(It,Yt),It.prototype.byteAt=function(jt){return this.data[this.zero+jt]},It.prototype.lastIndexOfSignature=function(jt){for(var Xt=jt.charCodeAt(0),Pt=jt.charCodeAt(1),oe=jt.charCodeAt(2),zt=jt.charCodeAt(3),Jt=this.length-4;0<=Jt;--Jt)if(this.data[Jt]===Xt&&this.data[Jt+1]===Pt&&this.data[Jt+2]===oe&&this.data[Jt+3]===zt)return Jt-this.zero;return-1},It.prototype.readAndCheckSignature=function(jt){var Xt=jt.charCodeAt(0),Pt=jt.charCodeAt(1),oe=jt.charCodeAt(2),zt=jt.charCodeAt(3),Jt=this.readData(4);return Xt===Jt[0]&&Pt===Jt[1]&&oe===Jt[2]&&zt===Jt[3]},It.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return[];var Xt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,Xt},Be.exports=It},{"../utils":32,"./DataReader":18}],18:[function(re,Be,ee){"use strict";var Yt=re("../utils");function It(jt){this.data=jt,this.length=jt.length,this.index=0,this.zero=0}It.prototype={checkOffset:function(jt){this.checkIndex(this.index+jt)},checkIndex:function(jt){if(this.length<this.zero+jt||jt<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+jt+"). Corrupted zip ?")},setIndex:function(jt){this.checkIndex(jt),this.index=jt},skip:function(jt){this.setIndex(this.index+jt)},byteAt:function(){},readInt:function(jt){var Xt,Pt=0;for(this.checkOffset(jt),Xt=this.index+jt-1;Xt>=this.index;Xt--)Pt=(Pt<<8)+this.byteAt(Xt);return this.index+=jt,Pt},readString:function(jt){return Yt.transformTo("string",this.readData(jt))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var jt=this.readInt(4);return new Date(Date.UTC(1980+(jt>>25&127),(jt>>21&15)-1,jt>>16&31,jt>>11&31,jt>>5&63,(31&jt)<<1))}},Be.exports=It},{"../utils":32}],19:[function(re,Be,ee){"use strict";var Yt=re("./Uint8ArrayReader");function It(jt){Yt.call(this,jt)}re("../utils").inherits(It,Yt),It.prototype.readData=function(jt){this.checkOffset(jt);var Xt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,Xt},Be.exports=It},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(re,Be,ee){"use strict";var Yt=re("./DataReader");function It(jt){Yt.call(this,jt)}re("../utils").inherits(It,Yt),It.prototype.byteAt=function(jt){return this.data.charCodeAt(this.zero+jt)},It.prototype.lastIndexOfSignature=function(jt){return this.data.lastIndexOf(jt)-this.zero},It.prototype.readAndCheckSignature=function(jt){return jt===this.readData(4)},It.prototype.readData=function(jt){this.checkOffset(jt);var Xt=this.data.slice(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,Xt},Be.exports=It},{"../utils":32,"./DataReader":18}],21:[function(re,Be,ee){"use strict";var Yt=re("./ArrayReader");function It(jt){Yt.call(this,jt)}re("../utils").inherits(It,Yt),It.prototype.readData=function(jt){if(this.checkOffset(jt),jt===0)return new Uint8Array(0);var Xt=this.data.subarray(this.zero+this.index,this.zero+this.index+jt);return this.index+=jt,Xt},Be.exports=It},{"../utils":32,"./ArrayReader":17}],22:[function(re,Be,ee){"use strict";var Yt=re("../utils"),It=re("../support"),jt=re("./ArrayReader"),Xt=re("./StringReader"),Pt=re("./NodeBufferReader"),oe=re("./Uint8ArrayReader");Be.exports=function(zt){var Jt=Yt.getTypeOf(zt);return Yt.checkSupport(Jt),Jt!=="string"||It.uint8array?Jt==="nodebuffer"?new Pt(zt):It.uint8array?new oe(Yt.transformTo("uint8array",zt)):new jt(Yt.transformTo("array",zt)):new Xt(zt)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(re,Be,ee){"use strict";ee.LOCAL_FILE_HEADER="PK",ee.CENTRAL_FILE_HEADER="PK",ee.CENTRAL_DIRECTORY_END="PK",ee.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ee.ZIP64_CENTRAL_DIRECTORY_END="PK",ee.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(re,Be,ee){"use strict";var Yt=re("./GenericWorker"),It=re("../utils");function jt(Xt){Yt.call(this,"ConvertWorker to "+Xt),this.destType=Xt}It.inherits(jt,Yt),jt.prototype.processChunk=function(Xt){this.push({data:It.transformTo(this.destType,Xt.data),meta:Xt.meta})},Be.exports=jt},{"../utils":32,"./GenericWorker":28}],25:[function(re,Be,ee){"use strict";var Yt=re("./GenericWorker"),It=re("../crc32");function jt(){Yt.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}re("../utils").inherits(jt,Yt),jt.prototype.processChunk=function(Xt){this.streamInfo.crc32=It(Xt.data,this.streamInfo.crc32||0),this.push(Xt)},Be.exports=jt},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(re,Be,ee){"use strict";var Yt=re("../utils"),It=re("./GenericWorker");function jt(Xt){It.call(this,"DataLengthProbe for "+Xt),this.propName=Xt,this.withStreamInfo(Xt,0)}Yt.inherits(jt,It),jt.prototype.processChunk=function(Xt){if(Xt){var Pt=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=Pt+Xt.data.length}It.prototype.processChunk.call(this,Xt)},Be.exports=jt},{"../utils":32,"./GenericWorker":28}],27:[function(re,Be,ee){"use strict";var Yt=re("../utils"),It=re("./GenericWorker");function jt(Xt){It.call(this,"DataWorker");var Pt=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Xt.then(function(oe){Pt.dataIsReady=!0,Pt.data=oe,Pt.max=oe&&oe.length||0,Pt.type=Yt.getTypeOf(oe),Pt.isPaused||Pt._tickAndRepeat()},function(oe){Pt.error(oe)})}Yt.inherits(jt,It),jt.prototype.cleanUp=function(){It.prototype.cleanUp.call(this),this.data=null},jt.prototype.resume=function(){return!!It.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Yt.delay(this._tickAndRepeat,[],this)),!0)},jt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Yt.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},jt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Xt=null,Pt=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":Xt=this.data.substring(this.index,Pt);break;case"uint8array":Xt=this.data.subarray(this.index,Pt);break;case"array":case"nodebuffer":Xt=this.data.slice(this.index,Pt)}return this.index=Pt,this.push({data:Xt,meta:{percent:this.max?this.index/this.max*100:0}})},Be.exports=jt},{"../utils":32,"./GenericWorker":28}],28:[function(re,Be,ee){"use strict";function Yt(It){this.name=It||"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}Yt.prototype={push:function(It){this.emit("data",It)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(It){this.emit("error",It)}return!0},error:function(It){return!this.isFinished&&(this.isPaused?this.generatedError=It:(this.isFinished=!0,this.emit("error",It),this.previous&&this.previous.error(It),this.cleanUp()),!0)},on:function(It,jt){return this._listeners[It].push(jt),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(It,jt){if(this._listeners[It])for(var Xt=0;Xt<this._listeners[It].length;Xt++)this._listeners[It][Xt].call(this,jt)},pipe:function(It){return It.registerPrevious(this)},registerPrevious:function(It){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=It.streamInfo,this.mergeStreamInfo(),this.previous=It;var jt=this;return It.on("data",function(Xt){jt.processChunk(Xt)}),It.on("end",function(){jt.end()}),It.on("error",function(Xt){jt.error(Xt)}),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 It=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),It=!0),this.previous&&this.previous.resume(),!It},flush:function(){},processChunk:function(It){this.push(It)},withStreamInfo:function(It,jt){return this.extraStreamInfo[It]=jt,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var It in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,It)&&(this.streamInfo[It]=this.extraStreamInfo[It])},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 It="Worker "+this.name;return this.previous?this.previous+" -> "+It:It}},Be.exports=Yt},{}],29:[function(re,Be,ee){"use strict";var Yt=re("../utils"),It=re("./ConvertWorker"),jt=re("./GenericWorker"),Xt=re("../base64"),Pt=re("../support"),oe=re("../external"),zt=null;if(Pt.nodestream)try{zt=re("../nodejs/NodejsStreamOutputAdapter")}catch(et){}function Jt(et,tt){return new oe.Promise(function(lt,rt){var ut=[],ct=et._internalType,wt=et._outputType,Mt=et._mimeType;et.on("data",function(Ot,Ht){ut.push(Ot),tt&&tt(Ht)}).on("error",function(Ot){ut=[],rt(Ot)}).on("end",function(){try{var Ot=function(Ht,ne,ae){switch(Ht){case"blob":return Yt.newBlob(Yt.transformTo("arraybuffer",ne),ae);case"base64":return Xt.encode(ne);default:return Yt.transformTo(Ht,ne)}}(wt,function(Ht,ne){var ae,de=0,be=null,qt=0;for(ae=0;ae<ne.length;ae++)qt+=ne[ae].length;switch(Ht){case"string":return ne.join("");case"array":return Array.prototype.concat.apply([],ne);case"uint8array":for(be=new Uint8Array(qt),ae=0;ae<ne.length;ae++)be.set(ne[ae],de),de+=ne[ae].length;return be;case"nodebuffer":return Ft.concat(ne);default:throw new Error("concat : unsupported type '"+Ht+"'")}}(ct,ut),Mt);lt(Ot)}catch(Ht){rt(Ht)}ut=[]}).resume()})}function Ct(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,Yt.checkSupport(rt),this._worker=et.pipe(new It(rt)),et.lock()}catch(ut){this._worker=new jt("error"),this._worker.error(ut)}}Ct.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(){Yt.delay(tt,arguments,lt)}),this},resume:function(){return Yt.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(et){if(Yt.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new zt(this,{objectMode:this._outputType!=="nodebuffer"},et)}},Be.exports=Ct},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(re,Be,ee){"use strict";if(ee.base64=!0,ee.array=!0,ee.string=!0,ee.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ee.nodebuffer=typeof Ft!="undefined",ee.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ee.blob=!1;else{var Yt=new ArrayBuffer(0);try{ee.blob=new Blob([Yt],{type:"application/zip"}).size===0}catch(jt){try{var It=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);It.append(Yt),ee.blob=It.getBlob("application/zip").size===0}catch(Xt){ee.blob=!1}}}try{ee.nodestream=!!re("readable-stream").Readable}catch(jt){ee.nodestream=!1}},{"readable-stream":16}],31:[function(re,Be,ee){"use strict";for(var Yt=re("./utils"),It=re("./support"),jt=re("./nodejsUtils"),Xt=re("./stream/GenericWorker"),Pt=new Array(256),oe=0;oe<256;oe++)Pt[oe]=252<=oe?6:248<=oe?5:240<=oe?4:224<=oe?3:192<=oe?2:1;Pt[254]=Pt[254]=1;function zt(){Xt.call(this,"utf-8 decode"),this.leftOver=null}function Jt(){Xt.call(this,"utf-8 encode")}ee.utf8encode=function(Ct){return It.nodebuffer?jt.newBufferFrom(Ct,"utf-8"):function(et){var tt,lt,rt,ut,ct,wt=et.length,Mt=0;for(ut=0;ut<wt;ut++)(64512&(lt=et.charCodeAt(ut)))==55296&&ut+1<wt&&(64512&(rt=et.charCodeAt(ut+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ut++),Mt+=lt<128?1:lt<2048?2:lt<65536?3:4;for(tt=It.uint8array?new Uint8Array(Mt):new Array(Mt),ut=ct=0;ct<Mt;ut++)(64512&(lt=et.charCodeAt(ut)))==55296&&ut+1<wt&&(64512&(rt=et.charCodeAt(ut+1)))==56320&&(lt=65536+(lt-55296<<10)+(rt-56320),ut++),lt<128?tt[ct++]=lt:(lt<2048?tt[ct++]=192|lt>>>6:(lt<65536?tt[ct++]=224|lt>>>12:(tt[ct++]=240|lt>>>18,tt[ct++]=128|lt>>>12&63),tt[ct++]=128|lt>>>6&63),tt[ct++]=128|63&lt);return tt}(Ct)},ee.utf8decode=function(Ct){return It.nodebuffer?Yt.transformTo("nodebuffer",Ct).toString("utf-8"):function(et){var tt,lt,rt,ut,ct=et.length,wt=new Array(2*ct);for(tt=lt=0;tt<ct;)if((rt=et[tt++])<128)wt[lt++]=rt;else if(4<(ut=Pt[rt]))wt[lt++]=65533,tt+=ut-1;else{for(rt&=ut===2?31:ut===3?15:7;1<ut&&tt<ct;)rt=rt<<6|63&et[tt++],ut--;1<ut?wt[lt++]=65533:rt<65536?wt[lt++]=rt:(rt-=65536,wt[lt++]=55296|rt>>10&1023,wt[lt++]=56320|1023&rt)}return wt.length!==lt&&(wt.subarray?wt=wt.subarray(0,lt):wt.length=lt),Yt.applyFromCharCode(wt)}(Ct=Yt.transformTo(It.uint8array?"uint8array":"array",Ct))},Yt.inherits(zt,Xt),zt.prototype.processChunk=function(Ct){var et=Yt.transformTo(It.uint8array?"uint8array":"array",Ct.data);if(this.leftOver&&this.leftOver.length){if(It.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(ut,ct){var wt;for((ct=ct||ut.length)>ut.length&&(ct=ut.length),wt=ct-1;0<=wt&&(192&ut[wt])==128;)wt--;return wt<0||wt===0?ct:wt+Pt[ut[wt]]>ct?wt:ct}(et),rt=et;lt!==et.length&&(It.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:ee.utf8decode(rt),meta:Ct.meta})},zt.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ee.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ee.Utf8DecodeWorker=zt,Yt.inherits(Jt,Xt),Jt.prototype.processChunk=function(Ct){this.push({data:ee.utf8encode(Ct.data),meta:Ct.meta})},ee.Utf8EncodeWorker=Jt},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(re,Be,ee){"use strict";var Yt=re("./support"),It=re("./base64"),jt=re("./nodejsUtils"),Xt=re("./external");function Pt(tt){return tt}function oe(tt,lt){for(var rt=0;rt<tt.length;++rt)lt[rt]=255&tt.charCodeAt(rt);return lt}re("setimmediate"),ee.newBlob=function(tt,lt){ee.checkSupport("blob");try{return new Blob([tt],{type:lt})}catch(ut){try{var rt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return rt.append(tt),rt.getBlob(lt)}catch(ct){throw new Error("Bug : can't construct the Blob.")}}};var zt={stringifyByChunk:function(tt,lt,rt){var ut=[],ct=0,wt=tt.length;if(wt<=rt)return String.fromCharCode.apply(null,tt);for(;ct<wt;)lt==="array"||lt==="nodebuffer"?ut.push(String.fromCharCode.apply(null,tt.slice(ct,Math.min(ct+rt,wt)))):ut.push(String.fromCharCode.apply(null,tt.subarray(ct,Math.min(ct+rt,wt)))),ct+=rt;return ut.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 Yt.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(tt){return!1}}(),nodebuffer:function(){try{return Yt.nodebuffer&&String.fromCharCode.apply(null,jt.allocBuffer(1)).length===1}catch(tt){return!1}}()}};function Jt(tt){var lt=65536,rt=ee.getTypeOf(tt),ut=!0;if(rt==="uint8array"?ut=zt.applyCanBeUsed.uint8array:rt==="nodebuffer"&&(ut=zt.applyCanBeUsed.nodebuffer),ut)for(;1<lt;)try{return zt.stringifyByChunk(tt,rt,lt)}catch(ct){lt=Math.floor(lt/2)}return zt.stringifyByChar(tt)}function Ct(tt,lt){for(var rt=0;rt<tt.length;rt++)lt[rt]=tt[rt];return lt}ee.applyFromCharCode=Jt;var et={};et.string={string:Pt,array:function(tt){return oe(tt,new Array(tt.length))},arraybuffer:function(tt){return et.string.uint8array(tt).buffer},uint8array:function(tt){return oe(tt,new Uint8Array(tt.length))},nodebuffer:function(tt){return oe(tt,jt.allocBuffer(tt.length))}},et.array={string:Jt,array:Pt,arraybuffer:function(tt){return new Uint8Array(tt).buffer},uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return jt.newBufferFrom(tt)}},et.arraybuffer={string:function(tt){return Jt(new Uint8Array(tt))},array:function(tt){return Ct(new Uint8Array(tt),new Array(tt.byteLength))},arraybuffer:Pt,uint8array:function(tt){return new Uint8Array(tt)},nodebuffer:function(tt){return jt.newBufferFrom(new Uint8Array(tt))}},et.uint8array={string:Jt,array:function(tt){return Ct(tt,new Array(tt.length))},arraybuffer:function(tt){return tt.buffer},uint8array:Pt,nodebuffer:function(tt){return jt.newBufferFrom(tt)}},et.nodebuffer={string:Jt,array:function(tt){return Ct(tt,new Array(tt.length))},arraybuffer:function(tt){return et.nodebuffer.uint8array(tt).buffer},uint8array:function(tt){return Ct(tt,new Uint8Array(tt.length))},nodebuffer:Pt},ee.transformTo=function(tt,lt){if(lt=lt||"",!tt)return lt;ee.checkSupport(tt);var rt=ee.getTypeOf(lt);return et[rt][tt](lt)},ee.resolve=function(tt){for(var lt=tt.split("/"),rt=[],ut=0;ut<lt.length;ut++){var ct=lt[ut];ct==="."||ct===""&&ut!==0&&ut!==lt.length-1||(ct===".."?rt.pop():rt.push(ct))}return rt.join("/")},ee.getTypeOf=function(tt){return typeof tt=="string"?"string":Object.prototype.toString.call(tt)==="[object Array]"?"array":Yt.nodebuffer&&jt.isBuffer(tt)?"nodebuffer":Yt.uint8array&&tt instanceof Uint8Array?"uint8array":Yt.arraybuffer&&tt instanceof ArrayBuffer?"arraybuffer":void 0},ee.checkSupport=function(tt){if(!Yt[tt.toLowerCase()])throw new Error(tt+" is not supported by this platform")},ee.MAX_VALUE_16BITS=65535,ee.MAX_VALUE_32BITS=-1,ee.pretty=function(tt){var lt,rt,ut="";for(rt=0;rt<(tt||"").length;rt++)ut+="\\x"+((lt=tt.charCodeAt(rt))<16?"0":"")+lt.toString(16).toUpperCase();return ut},ee.delay=function(tt,lt,rt){setImmediate(function(){tt.apply(rt||null,lt||[])})},ee.inherits=function(tt,lt){function rt(){}rt.prototype=lt.prototype,tt.prototype=new rt},ee.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},ee.prepareContent=function(tt,lt,rt,ut,ct){return Xt.Promise.resolve(lt).then(function(wt){return Yt.blob&&(wt instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(wt))!==-1)&&typeof FileReader!="undefined"?new Xt.Promise(function(Mt,Ot){var Ht=new FileReader;Ht.onload=function(ne){Mt(ne.target.result)},Ht.onerror=function(ne){Ot(ne.target.error)},Ht.readAsArrayBuffer(wt)}):wt}).then(function(wt){var Mt=ee.getTypeOf(wt);return Mt?(Mt==="arraybuffer"?wt=ee.transformTo("uint8array",wt):Mt==="string"&&(ct?wt=It.decode(wt):rt&&ut!==!0&&(wt=function(Ot){return oe(Ot,Yt.uint8array?new Uint8Array(Ot.length):new Array(Ot.length))}(wt))),wt):Xt.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(re,Be,ee){"use strict";var Yt=re("./reader/readerFor"),It=re("./utils"),jt=re("./signature"),Xt=re("./zipEntry"),Pt=re("./support");function oe(zt){this.files=[],this.loadOptions=zt}oe.prototype={checkSignature:function(zt){if(!this.reader.readAndCheckSignature(zt)){this.reader.index-=4;var Jt=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+It.pretty(Jt)+", expected "+It.pretty(zt)+")")}},isSignature:function(zt,Jt){var Ct=this.reader.index;this.reader.setIndex(zt);var et=this.reader.readString(4)===Jt;return this.reader.setIndex(Ct),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 zt=this.reader.readData(this.zipCommentLength),Jt=Pt.uint8array?"uint8array":"array",Ct=It.transformTo(Jt,zt);this.zipComment=this.loadOptions.decodeFileName(Ct)},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 zt,Jt,Ct,et=this.zip64EndOfCentralSize-44;0<et;)zt=this.reader.readInt(2),Jt=this.reader.readInt(4),Ct=this.reader.readData(Jt),this.zip64ExtensibleData[zt]={id:zt,length:Jt,value:Ct}},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 zt,Jt;for(zt=0;zt<this.files.length;zt++)Jt=this.files[zt],this.reader.setIndex(Jt.localHeaderOffset),this.checkSignature(jt.LOCAL_FILE_HEADER),Jt.readLocalPart(this.reader),Jt.handleUTF8(),Jt.processAttributes()},readCentralDir:function(){var zt;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(jt.CENTRAL_FILE_HEADER);)(zt=new Xt({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(zt);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 zt=this.reader.lastIndexOfSignature(jt.CENTRAL_DIRECTORY_END);if(zt<0)throw this.isSignature(0,jt.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(zt);var Jt=zt;if(this.checkSignature(jt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===It.MAX_VALUE_16BITS||this.diskWithCentralDirStart===It.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===It.MAX_VALUE_16BITS||this.centralDirRecords===It.MAX_VALUE_16BITS||this.centralDirSize===It.MAX_VALUE_32BITS||this.centralDirOffset===It.MAX_VALUE_32BITS){if(this.zip64=!0,(zt=this.reader.lastIndexOfSignature(jt.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(zt),this.checkSignature(jt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,jt.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(jt.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(jt.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var Ct=this.centralDirOffset+this.centralDirSize;this.zip64&&(Ct+=20,Ct+=12+this.zip64EndOfCentralSize);var et=Jt-Ct;if(0<et)this.isSignature(Jt,jt.CENTRAL_FILE_HEADER)||(this.reader.zero=et);else if(et<0)throw new Error("Corrupted zip: missing "+Math.abs(et)+" bytes.")},prepareReader:function(zt){this.reader=Yt(zt)},load:function(zt){this.prepareReader(zt),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Be.exports=oe},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(re,Be,ee){"use strict";var Yt=re("./reader/readerFor"),It=re("./utils"),jt=re("./compressedObject"),Xt=re("./crc32"),Pt=re("./utf8"),oe=re("./compressions"),zt=re("./support");function Jt(Ct,et){this.options=Ct,this.loadOptions=et}Jt.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(Ct){var et,tt;if(Ct.skip(22),this.fileNameLength=Ct.readInt(2),tt=Ct.readInt(2),this.fileName=Ct.readData(this.fileNameLength),Ct.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 oe)if(Object.prototype.hasOwnProperty.call(oe,rt)&&oe[rt].magic===lt)return oe[rt];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+It.pretty(this.compressionMethod)+" unknown (inner file : "+It.transformTo("string",this.fileName)+")");this.decompressed=new jt(this.compressedSize,this.uncompressedSize,this.crc32,et,Ct.readData(this.compressedSize))},readCentralPart:function(Ct){this.versionMadeBy=Ct.readInt(2),Ct.skip(2),this.bitFlag=Ct.readInt(2),this.compressionMethod=Ct.readString(2),this.date=Ct.readDate(),this.crc32=Ct.readInt(4),this.compressedSize=Ct.readInt(4),this.uncompressedSize=Ct.readInt(4);var et=Ct.readInt(2);if(this.extraFieldsLength=Ct.readInt(2),this.fileCommentLength=Ct.readInt(2),this.diskNumberStart=Ct.readInt(2),this.internalFileAttributes=Ct.readInt(2),this.externalFileAttributes=Ct.readInt(4),this.localHeaderOffset=Ct.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Ct.skip(et),this.readExtraFields(Ct),this.parseZIP64ExtraField(Ct),this.fileComment=Ct.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Ct=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),Ct==0&&(this.dosPermissions=63&this.externalFileAttributes),Ct==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Ct=Yt(this.extraFields[1].value);this.uncompressedSize===It.MAX_VALUE_32BITS&&(this.uncompressedSize=Ct.readInt(8)),this.compressedSize===It.MAX_VALUE_32BITS&&(this.compressedSize=Ct.readInt(8)),this.localHeaderOffset===It.MAX_VALUE_32BITS&&(this.localHeaderOffset=Ct.readInt(8)),this.diskNumberStart===It.MAX_VALUE_32BITS&&(this.diskNumberStart=Ct.readInt(4))}},readExtraFields:function(Ct){var et,tt,lt,rt=Ct.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Ct.index+4<rt;)et=Ct.readInt(2),tt=Ct.readInt(2),lt=Ct.readData(tt),this.extraFields[et]={id:et,length:tt,value:lt};Ct.setIndex(rt)},handleUTF8:function(){var Ct=zt.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Pt.utf8decode(this.fileName),this.fileCommentStr=Pt.utf8decode(this.fileComment);else{var et=this.findExtraFieldUnicodePath();if(et!==null)this.fileNameStr=et;else{var tt=It.transformTo(Ct,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(tt)}var lt=this.findExtraFieldUnicodeComment();if(lt!==null)this.fileCommentStr=lt;else{var rt=It.transformTo(Ct,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(rt)}}},findExtraFieldUnicodePath:function(){var Ct=this.extraFields[28789];if(Ct){var et=Yt(Ct.value);return et.readInt(1)!==1||Xt(this.fileName)!==et.readInt(4)?null:Pt.utf8decode(et.readData(Ct.length-5))}return null},findExtraFieldUnicodeComment:function(){var Ct=this.extraFields[25461];if(Ct){var et=Yt(Ct.value);return et.readInt(1)!==1||Xt(this.fileComment)!==et.readInt(4)?null:Pt.utf8decode(et.readData(Ct.length-5))}return null}},Be.exports=Jt},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(re,Be,ee){"use strict";function Yt(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 It=re("./stream/StreamHelper"),jt=re("./stream/DataWorker"),Xt=re("./utf8"),Pt=re("./compressedObject"),oe=re("./stream/GenericWorker");Yt.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 ut=!this._dataBinary;ut&&!rt&&(tt=tt.pipe(new Xt.Utf8EncodeWorker)),!ut&&rt&&(tt=tt.pipe(new Xt.Utf8DecodeWorker))}catch(ct){(tt=new oe("error")).error(ct)}return new It(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 Pt&&this._data.compression.magic===et.magic)return this._data.getCompressedWorker();var lt=this._decompressWorker();return this._dataBinary||(lt=lt.pipe(new Xt.Utf8EncodeWorker)),Pt.createWorkerFrom(lt,et,tt)},_decompressWorker:function(){return this._data instanceof Pt?this._data.getContentWorker():this._data instanceof oe?this._data:new jt(this._data)}};for(var zt=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Jt=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Ct=0;Ct<zt.length;Ct++)Yt.prototype[zt[Ct]]=Jt;Be.exports=Yt},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(re,Be,ee){(function(Yt){"use strict";var It,jt,Xt=Yt.MutationObserver||Yt.WebKitMutationObserver;if(Xt){var Pt=0,oe=new Xt(et),zt=Yt.document.createTextNode("");oe.observe(zt,{characterData:!0}),It=function(){zt.data=Pt=++Pt%2}}else if(Yt.setImmediate||Yt.MessageChannel===void 0)It="document"in Yt&&"onreadystatechange"in Yt.document.createElement("script")?function(){var tt=Yt.document.createElement("script");tt.onreadystatechange=function(){et(),tt.onreadystatechange=null,tt.parentNode.removeChild(tt),tt=null},Yt.document.documentElement.appendChild(tt)}:function(){setTimeout(et,0)};else{var Jt=new Yt.MessageChannel;Jt.port1.onmessage=et,It=function(){Jt.port2.postMessage(0)}}var Ct=[];function et(){var tt,lt;jt=!0;for(var rt=Ct.length;rt;){for(lt=Ct,Ct=[],tt=-1;++tt<rt;)lt[tt]();rt=Ct.length}jt=!1}Be.exports=function(tt){Ct.push(tt)!==1||jt||It()}}).call(this,typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(re,Be,ee){"use strict";var Yt=re("immediate");function It(){}var jt={},Xt=["REJECTED"],Pt=["FULFILLED"],oe=["PENDING"];function zt(rt){if(typeof rt!="function")throw new TypeError("resolver must be a function");this.state=oe,this.queue=[],this.outcome=void 0,rt!==It&&tt(this,rt)}function Jt(rt,ut,ct){this.promise=rt,typeof ut=="function"&&(this.onFulfilled=ut,this.callFulfilled=this.otherCallFulfilled),typeof ct=="function"&&(this.onRejected=ct,this.callRejected=this.otherCallRejected)}function Ct(rt,ut,ct){Yt(function(){var wt;try{wt=ut(ct)}catch(Mt){return jt.reject(rt,Mt)}wt===rt?jt.reject(rt,new TypeError("Cannot resolve promise with itself")):jt.resolve(rt,wt)})}function et(rt){var ut=rt&&rt.then;if(rt&&(typeof rt=="object"||typeof rt=="function")&&typeof ut=="function")return function(){ut.apply(rt,arguments)}}function tt(rt,ut){var ct=!1;function wt(Ht){ct||(ct=!0,jt.reject(rt,Ht))}function Mt(Ht){ct||(ct=!0,jt.resolve(rt,Ht))}var Ot=lt(function(){ut(Mt,wt)});Ot.status==="error"&&wt(Ot.value)}function lt(rt,ut){var ct={};try{ct.value=rt(ut),ct.status="success"}catch(wt){ct.status="error",ct.value=wt}return ct}(Be.exports=zt).prototype.finally=function(rt){if(typeof rt!="function")return this;var ut=this.constructor;return this.then(function(ct){return ut.resolve(rt()).then(function(){return ct})},function(ct){return ut.resolve(rt()).then(function(){throw ct})})},zt.prototype.catch=function(rt){return this.then(null,rt)},zt.prototype.then=function(rt,ut){if(typeof rt!="function"&&this.state===Pt||typeof ut!="function"&&this.state===Xt)return this;var ct=new this.constructor(It);return this.state!==oe?Ct(ct,this.state===Pt?rt:ut,this.outcome):this.queue.push(new Jt(ct,rt,ut)),ct},Jt.prototype.callFulfilled=function(rt){jt.resolve(this.promise,rt)},Jt.prototype.otherCallFulfilled=function(rt){Ct(this.promise,this.onFulfilled,rt)},Jt.prototype.callRejected=function(rt){jt.reject(this.promise,rt)},Jt.prototype.otherCallRejected=function(rt){Ct(this.promise,this.onRejected,rt)},jt.resolve=function(rt,ut){var ct=lt(et,ut);if(ct.status==="error")return jt.reject(rt,ct.value);var wt=ct.value;if(wt)tt(rt,wt);else{rt.state=Pt,rt.outcome=ut;for(var Mt=-1,Ot=rt.queue.length;++Mt<Ot;)rt.queue[Mt].callFulfilled(ut)}return rt},jt.reject=function(rt,ut){rt.state=Xt,rt.outcome=ut;for(var ct=-1,wt=rt.queue.length;++ct<wt;)rt.queue[ct].callRejected(ut);return rt},zt.resolve=function(rt){return rt instanceof this?rt:jt.resolve(new this(It),rt)},zt.reject=function(rt){var ut=new this(It);return jt.reject(ut,rt)},zt.all=function(rt){var ut=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ct=rt.length,wt=!1;if(!ct)return this.resolve([]);for(var Mt=new Array(ct),Ot=0,Ht=-1,ne=new this(It);++Ht<ct;)ae(rt[Ht],Ht);return ne;function ae(de,be){ut.resolve(de).then(function(qt){Mt[be]=qt,++Ot!==ct||wt||(wt=!0,jt.resolve(ne,Mt))},function(qt){wt||(wt=!0,jt.reject(ne,qt))})}},zt.race=function(rt){var ut=this;if(Object.prototype.toString.call(rt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ct=rt.length,wt=!1;if(!ct)return this.resolve([]);for(var Mt=-1,Ot=new this(It);++Mt<ct;)Ht=rt[Mt],ut.resolve(Ht).then(function(ne){wt||(wt=!0,jt.resolve(Ot,ne))},function(ne){wt||(wt=!0,jt.reject(Ot,ne))});var Ht;return Ot}},{immediate:36}],38:[function(re,Be,ee){"use strict";var Yt={};(0,re("./lib/utils/common").assign)(Yt,re("./lib/deflate"),re("./lib/inflate"),re("./lib/zlib/constants")),Be.exports=Yt},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(re,Be,ee){"use strict";var Yt=re("./zlib/deflate"),It=re("./utils/common"),jt=re("./utils/strings"),Xt=re("./zlib/messages"),Pt=re("./zlib/zstream"),oe=Object.prototype.toString,zt=0,Jt=-1,Ct=0,et=8;function tt(rt){if(!(this instanceof tt))return new tt(rt);this.options=It.assign({level:Jt,method:et,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ct,to:""},rt||{});var ut=this.options;ut.raw&&0<ut.windowBits?ut.windowBits=-ut.windowBits:ut.gzip&&0<ut.windowBits&&ut.windowBits<16&&(ut.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Pt,this.strm.avail_out=0;var ct=Yt.deflateInit2(this.strm,ut.level,ut.method,ut.windowBits,ut.memLevel,ut.strategy);if(ct!==zt)throw new Error(Xt[ct]);if(ut.header&&Yt.deflateSetHeader(this.strm,ut.header),ut.dictionary){var wt;if(wt=typeof ut.dictionary=="string"?jt.string2buf(ut.dictionary):oe.call(ut.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ut.dictionary):ut.dictionary,(ct=Yt.deflateSetDictionary(this.strm,wt))!==zt)throw new Error(Xt[ct]);this._dict_set=!0}}function lt(rt,ut){var ct=new tt(ut);if(ct.push(rt,!0),ct.err)throw ct.msg||Xt[ct.err];return ct.result}tt.prototype.push=function(rt,ut){var ct,wt,Mt=this.strm,Ot=this.options.chunkSize;if(this.ended)return!1;wt=ut===~~ut?ut:ut===!0?4:0,typeof rt=="string"?Mt.input=jt.string2buf(rt):oe.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 It.Buf8(Ot),Mt.next_out=0,Mt.avail_out=Ot),(ct=Yt.deflate(Mt,wt))!==1&&ct!==zt)return this.onEnd(ct),!(this.ended=!0);Mt.avail_out!==0&&(Mt.avail_in!==0||wt!==4&&wt!==2)||(this.options.to==="string"?this.onData(jt.buf2binstring(It.shrinkBuf(Mt.output,Mt.next_out))):this.onData(It.shrinkBuf(Mt.output,Mt.next_out)))}while((0<Mt.avail_in||Mt.avail_out===0)&&ct!==1);return wt===4?(ct=Yt.deflateEnd(this.strm),this.onEnd(ct),this.ended=!0,ct===zt):wt!==2||(this.onEnd(zt),!(Mt.avail_out=0))},tt.prototype.onData=function(rt){this.chunks.push(rt)},tt.prototype.onEnd=function(rt){rt===zt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=It.flattenChunks(this.chunks)),this.chunks=[],this.err=rt,this.msg=this.strm.msg},ee.Deflate=tt,ee.deflate=lt,ee.deflateRaw=function(rt,ut){return(ut=ut||{}).raw=!0,lt(rt,ut)},ee.gzip=function(rt,ut){return(ut=ut||{}).gzip=!0,lt(rt,ut)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(re,Be,ee){"use strict";var Yt=re("./zlib/inflate"),It=re("./utils/common"),jt=re("./utils/strings"),Xt=re("./zlib/constants"),Pt=re("./zlib/messages"),oe=re("./zlib/zstream"),zt=re("./zlib/gzheader"),Jt=Object.prototype.toString;function Ct(tt){if(!(this instanceof Ct))return new Ct(tt);this.options=It.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 oe,this.strm.avail_out=0;var rt=Yt.inflateInit2(this.strm,lt.windowBits);if(rt!==Xt.Z_OK)throw new Error(Pt[rt]);this.header=new zt,Yt.inflateGetHeader(this.strm,this.header)}function et(tt,lt){var rt=new Ct(lt);if(rt.push(tt,!0),rt.err)throw rt.msg||Pt[rt.err];return rt.result}Ct.prototype.push=function(tt,lt){var rt,ut,ct,wt,Mt,Ot,Ht=this.strm,ne=this.options.chunkSize,ae=this.options.dictionary,de=!1;if(this.ended)return!1;ut=lt===~~lt?lt:lt===!0?Xt.Z_FINISH:Xt.Z_NO_FLUSH,typeof tt=="string"?Ht.input=jt.binstring2buf(tt):Jt.call(tt)==="[object ArrayBuffer]"?Ht.input=new Uint8Array(tt):Ht.input=tt,Ht.next_in=0,Ht.avail_in=Ht.input.length;do{if(Ht.avail_out===0&&(Ht.output=new It.Buf8(ne),Ht.next_out=0,Ht.avail_out=ne),(rt=Yt.inflate(Ht,Xt.Z_NO_FLUSH))===Xt.Z_NEED_DICT&&ae&&(Ot=typeof ae=="string"?jt.string2buf(ae):Jt.call(ae)==="[object ArrayBuffer]"?new Uint8Array(ae):ae,rt=Yt.inflateSetDictionary(this.strm,Ot)),rt===Xt.Z_BUF_ERROR&&de===!0&&(rt=Xt.Z_OK,de=!1),rt!==Xt.Z_STREAM_END&&rt!==Xt.Z_OK)return this.onEnd(rt),!(this.ended=!0);Ht.next_out&&(Ht.avail_out!==0&&rt!==Xt.Z_STREAM_END&&(Ht.avail_in!==0||ut!==Xt.Z_FINISH&&ut!==Xt.Z_SYNC_FLUSH)||(this.options.to==="string"?(ct=jt.utf8border(Ht.output,Ht.next_out),wt=Ht.next_out-ct,Mt=jt.buf2string(Ht.output,ct),Ht.next_out=wt,Ht.avail_out=ne-wt,wt&&It.arraySet(Ht.output,Ht.output,ct,wt,0),this.onData(Mt)):this.onData(It.shrinkBuf(Ht.output,Ht.next_out)))),Ht.avail_in===0&&Ht.avail_out===0&&(de=!0)}while((0<Ht.avail_in||Ht.avail_out===0)&&rt!==Xt.Z_STREAM_END);return rt===Xt.Z_STREAM_END&&(ut=Xt.Z_FINISH),ut===Xt.Z_FINISH?(rt=Yt.inflateEnd(this.strm),this.onEnd(rt),this.ended=!0,rt===Xt.Z_OK):ut!==Xt.Z_SYNC_FLUSH||(this.onEnd(Xt.Z_OK),!(Ht.avail_out=0))},Ct.prototype.onData=function(tt){this.chunks.push(tt)},Ct.prototype.onEnd=function(tt){tt===Xt.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=It.flattenChunks(this.chunks)),this.chunks=[],this.err=tt,this.msg=this.strm.msg},ee.Inflate=Ct,ee.inflate=et,ee.inflateRaw=function(tt,lt){return(lt=lt||{}).raw=!0,et(tt,lt)},ee.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(re,Be,ee){"use strict";var Yt=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ee.assign=function(Xt){for(var Pt=Array.prototype.slice.call(arguments,1);Pt.length;){var oe=Pt.shift();if(oe){if(typeof oe!="object")throw new TypeError(oe+"must be non-object");for(var zt in oe)oe.hasOwnProperty(zt)&&(Xt[zt]=oe[zt])}}return Xt},ee.shrinkBuf=function(Xt,Pt){return Xt.length===Pt?Xt:Xt.subarray?Xt.subarray(0,Pt):(Xt.length=Pt,Xt)};var It={arraySet:function(Xt,Pt,oe,zt,Jt){if(Pt.subarray&&Xt.subarray)Xt.set(Pt.subarray(oe,oe+zt),Jt);else for(var Ct=0;Ct<zt;Ct++)Xt[Jt+Ct]=Pt[oe+Ct]},flattenChunks:function(Xt){var Pt,oe,zt,Jt,Ct,et;for(Pt=zt=0,oe=Xt.length;Pt<oe;Pt++)zt+=Xt[Pt].length;for(et=new Uint8Array(zt),Pt=Jt=0,oe=Xt.length;Pt<oe;Pt++)Ct=Xt[Pt],et.set(Ct,Jt),Jt+=Ct.length;return et}},jt={arraySet:function(Xt,Pt,oe,zt,Jt){for(var Ct=0;Ct<zt;Ct++)Xt[Jt+Ct]=Pt[oe+Ct]},flattenChunks:function(Xt){return[].concat.apply([],Xt)}};ee.setTyped=function(Xt){Xt?(ee.Buf8=Uint8Array,ee.Buf16=Uint16Array,ee.Buf32=Int32Array,ee.assign(ee,It)):(ee.Buf8=Array,ee.Buf16=Array,ee.Buf32=Array,ee.assign(ee,jt))},ee.setTyped(Yt)},{}],42:[function(re,Be,ee){"use strict";var Yt=re("./common"),It=!0,jt=!0;try{String.fromCharCode.apply(null,[0])}catch(zt){It=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(zt){jt=!1}for(var Xt=new Yt.Buf8(256),Pt=0;Pt<256;Pt++)Xt[Pt]=252<=Pt?6:248<=Pt?5:240<=Pt?4:224<=Pt?3:192<=Pt?2:1;function oe(zt,Jt){if(Jt<65537&&(zt.subarray&&jt||!zt.subarray&&It))return String.fromCharCode.apply(null,Yt.shrinkBuf(zt,Jt));for(var Ct="",et=0;et<Jt;et++)Ct+=String.fromCharCode(zt[et]);return Ct}Xt[254]=Xt[254]=1,ee.string2buf=function(zt){var Jt,Ct,et,tt,lt,rt=zt.length,ut=0;for(tt=0;tt<rt;tt++)(64512&(Ct=zt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=zt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),ut+=Ct<128?1:Ct<2048?2:Ct<65536?3:4;for(Jt=new Yt.Buf8(ut),tt=lt=0;lt<ut;tt++)(64512&(Ct=zt.charCodeAt(tt)))==55296&&tt+1<rt&&(64512&(et=zt.charCodeAt(tt+1)))==56320&&(Ct=65536+(Ct-55296<<10)+(et-56320),tt++),Ct<128?Jt[lt++]=Ct:(Ct<2048?Jt[lt++]=192|Ct>>>6:(Ct<65536?Jt[lt++]=224|Ct>>>12:(Jt[lt++]=240|Ct>>>18,Jt[lt++]=128|Ct>>>12&63),Jt[lt++]=128|Ct>>>6&63),Jt[lt++]=128|63&Ct);return Jt},ee.buf2binstring=function(zt){return oe(zt,zt.length)},ee.binstring2buf=function(zt){for(var Jt=new Yt.Buf8(zt.length),Ct=0,et=Jt.length;Ct<et;Ct++)Jt[Ct]=zt.charCodeAt(Ct);return Jt},ee.buf2string=function(zt,Jt){var Ct,et,tt,lt,rt=Jt||zt.length,ut=new Array(2*rt);for(Ct=et=0;Ct<rt;)if((tt=zt[Ct++])<128)ut[et++]=tt;else if(4<(lt=Xt[tt]))ut[et++]=65533,Ct+=lt-1;else{for(tt&=lt===2?31:lt===3?15:7;1<lt&&Ct<rt;)tt=tt<<6|63&zt[Ct++],lt--;1<lt?ut[et++]=65533:tt<65536?ut[et++]=tt:(tt-=65536,ut[et++]=55296|tt>>10&1023,ut[et++]=56320|1023&tt)}return oe(ut,et)},ee.utf8border=function(zt,Jt){var Ct;for((Jt=Jt||zt.length)>zt.length&&(Jt=zt.length),Ct=Jt-1;0<=Ct&&(192&zt[Ct])==128;)Ct--;return Ct<0||Ct===0?Jt:Ct+Xt[zt[Ct]]>Jt?Ct:Jt}},{"./common":41}],43:[function(re,Be,ee){"use strict";Be.exports=function(Yt,It,jt,Xt){for(var Pt=65535&Yt|0,oe=Yt>>>16&65535|0,zt=0;jt!==0;){for(jt-=zt=2e3<jt?2e3:jt;oe=oe+(Pt=Pt+It[Xt++]|0)|0,--zt;);Pt%=65521,oe%=65521}return Pt|oe<<16|0}},{}],44:[function(re,Be,ee){"use strict";Be.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(re,Be,ee){"use strict";var Yt=function(){for(var It,jt=[],Xt=0;Xt<256;Xt++){It=Xt;for(var Pt=0;Pt<8;Pt++)It=1&It?3988292384^It>>>1:It>>>1;jt[Xt]=It}return jt}();Be.exports=function(It,jt,Xt,Pt){var oe=Yt,zt=Pt+Xt;It^=-1;for(var Jt=Pt;Jt<zt;Jt++)It=It>>>8^oe[255&(It^jt[Jt])];return-1^It}},{}],46:[function(re,Be,ee){"use strict";var Yt,It=re("../utils/common"),jt=re("./trees"),Xt=re("./adler32"),Pt=re("./crc32"),oe=re("./messages"),zt=0,Jt=4,Ct=0,et=-2,tt=-1,lt=4,rt=2,ut=8,ct=9,wt=286,Mt=30,Ot=19,Ht=2*wt+1,ne=15,ae=3,de=258,be=de+ae+1,qt=42,ze=113,Vt=1,Ge=2,_e=3,Ne=4;function We(Nt,Dt){return Nt.msg=oe[Dt],Dt}function Re(Nt){return(Nt<<1)-(4<Nt?9:0)}function ve(Nt){for(var Dt=Nt.length;0<=--Dt;)Nt[Dt]=0}function ie(Nt){var Dt=Nt.state,mt=Dt.pending;mt>Nt.avail_out&&(mt=Nt.avail_out),mt!==0&&(It.arraySet(Nt.output,Dt.pending_buf,Dt.pending_out,mt,Nt.next_out),Nt.next_out+=mt,Dt.pending_out+=mt,Nt.total_out+=mt,Nt.avail_out-=mt,Dt.pending-=mt,Dt.pending===0&&(Dt.pending_out=0))}function Se(Nt,Dt){jt._tr_flush_block(Nt,0<=Nt.block_start?Nt.block_start:-1,Nt.strstart-Nt.block_start,Dt),Nt.block_start=Nt.strstart,ie(Nt.strm)}function Bn(Nt,Dt){Nt.pending_buf[Nt.pending++]=Dt}function Ln(Nt,Dt){Nt.pending_buf[Nt.pending++]=Dt>>>8&255,Nt.pending_buf[Nt.pending++]=255&Dt}function Ye(Nt,Dt){var mt,ft,pt=Nt.max_chain_length,At=Nt.strstart,ue=Nt.prev_length,we=Nt.nice_match,le=Nt.strstart>Nt.w_size-be?Nt.strstart-(Nt.w_size-be):0,me=Nt.window,Ue=Nt.w_mask,ke=Nt.prev,Ie=Nt.strstart+de,rn=me[At+ue-1],Gn=me[At+ue];Nt.prev_length>=Nt.good_match&&(pt>>=2),we>Nt.lookahead&&(we=Nt.lookahead);do if(me[(mt=Dt)+ue]===Gn&&me[mt+ue-1]===rn&&me[mt]===me[At]&&me[++mt]===me[At+1]){At+=2,mt++;do;while(me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&me[++At]===me[++mt]&&At<Ie);if(ft=de-(Ie-At),At=Ie-de,ue<ft){if(Nt.match_start=Dt,we<=(ue=ft))break;rn=me[At+ue-1],Gn=me[At+ue]}}while((Dt=ke[Dt&Ue])>le&&--pt!=0);return ue<=Nt.lookahead?ue:Nt.lookahead}function Mn(Nt){var Dt,mt,ft,pt,At,ue,we,le,me,Ue,ke=Nt.w_size;do{if(pt=Nt.window_size-Nt.lookahead-Nt.strstart,Nt.strstart>=ke+(ke-be)){for(It.arraySet(Nt.window,Nt.window,ke,ke,0),Nt.match_start-=ke,Nt.strstart-=ke,Nt.block_start-=ke,Dt=mt=Nt.hash_size;ft=Nt.head[--Dt],Nt.head[Dt]=ke<=ft?ft-ke:0,--mt;);for(Dt=mt=ke;ft=Nt.prev[--Dt],Nt.prev[Dt]=ke<=ft?ft-ke:0,--mt;);pt+=ke}if(Nt.strm.avail_in===0)break;if(ue=Nt.strm,we=Nt.window,le=Nt.strstart+Nt.lookahead,me=pt,Ue=void 0,Ue=ue.avail_in,me<Ue&&(Ue=me),mt=Ue===0?0:(ue.avail_in-=Ue,It.arraySet(we,ue.input,ue.next_in,Ue,le),ue.state.wrap===1?ue.adler=Xt(ue.adler,we,Ue,le):ue.state.wrap===2&&(ue.adler=Pt(ue.adler,we,Ue,le)),ue.next_in+=Ue,ue.total_in+=Ue,Ue),Nt.lookahead+=mt,Nt.lookahead+Nt.insert>=ae)for(At=Nt.strstart-Nt.insert,Nt.ins_h=Nt.window[At],Nt.ins_h=(Nt.ins_h<<Nt.hash_shift^Nt.window[At+1])&Nt.hash_mask;Nt.insert&&(Nt.ins_h=(Nt.ins_h<<Nt.hash_shift^Nt.window[At+ae-1])&Nt.hash_mask,Nt.prev[At&Nt.w_mask]=Nt.head[Nt.ins_h],Nt.head[Nt.ins_h]=At,At++,Nt.insert--,!(Nt.lookahead+Nt.insert<ae)););}while(Nt.lookahead<be&&Nt.strm.avail_in!==0)}function Wn(Nt,Dt){for(var mt,ft;;){if(Nt.lookahead<be){if(Mn(Nt),Nt.lookahead<be&&Dt===zt)return Vt;if(Nt.lookahead===0)break}if(mt=0,Nt.lookahead>=ae&&(Nt.ins_h=(Nt.ins_h<<Nt.hash_shift^Nt.window[Nt.strstart+ae-1])&Nt.hash_mask,mt=Nt.prev[Nt.strstart&Nt.w_mask]=Nt.head[Nt.ins_h],Nt.head[Nt.ins_h]=Nt.strstart),mt!==0&&Nt.strstart-mt<=Nt.w_size-be&&(Nt.match_length=Ye(Nt,mt)),Nt.match_length>=ae)if(ft=jt._tr_tally(Nt,Nt.strstart-Nt.match_start,Nt.match_length-ae),Nt.lookahead-=Nt.match_length,Nt.match_length<=Nt.max_lazy_match&&Nt.lookahead>=ae){for(Nt.match_length--;Nt.strstart++,Nt.ins_h=(Nt.ins_h<<Nt.hash_shift^Nt.window[Nt.strstart+ae-1])&Nt.hash_mask,mt=Nt.prev[Nt.strstart&Nt.w_mask]=Nt.head[Nt.ins_h],Nt.head[Nt.ins_h]=Nt.strstart,--Nt.match_length!=0;);Nt.strstart++}else Nt.strstart+=Nt.match_length,Nt.match_length=0,Nt.ins_h=Nt.window[Nt.strstart],Nt.ins_h=(Nt.ins_h<<Nt.hash_shift^Nt.window[Nt.strstart+1])&Nt.hash_mask;else ft=jt._tr_tally(Nt,0,Nt.window[Nt.strstart]),Nt.lookahead--,Nt.strstart++;if(ft&&(Se(Nt,!1),Nt.strm.avail_out===0))return Vt}return Nt.insert=Nt.strstart<ae-1?Nt.strstart:ae-1,Dt===Jt?(Se(Nt,!0),Nt.strm.avail_out===0?_e:Ne):Nt.last_lit&&(Se(Nt,!1),Nt.strm.avail_out===0)?Vt:Ge}function fi(Nt,Dt){for(var mt,ft,pt;;){if(Nt.lookahead<be){if(Mn(Nt),Nt.lookahead<be&&Dt===zt)return Vt;if(Nt.lookahead===0)break}if(mt=0,Nt.lookahead>=ae&&(Nt.ins_h=(Nt.ins_h<<Nt.hash_shift^Nt.window[Nt.strstart+ae-1])&Nt.hash_mask,mt=Nt.prev[Nt.strstart&Nt.w_mask]=Nt.head[Nt.ins_h],Nt.head[Nt.ins_h]=Nt.strstart),Nt.prev_length=Nt.match_length,Nt.prev_match=Nt.match_start,Nt.match_length=ae-1,mt!==0&&Nt.prev_length<Nt.max_lazy_match&&Nt.strstart-mt<=Nt.w_size-be&&(Nt.match_length=Ye(Nt,mt),Nt.match_length<=5&&(Nt.strategy===1||Nt.match_length===ae&&4096<Nt.strstart-Nt.match_start)&&(Nt.match_length=ae-1)),Nt.prev_length>=ae&&Nt.match_length<=Nt.prev_length){for(pt=Nt.strstart+Nt.lookahead-ae,ft=jt._tr_tally(Nt,Nt.strstart-1-Nt.prev_match,Nt.prev_length-ae),Nt.lookahead-=Nt.prev_length-1,Nt.prev_length-=2;++Nt.strstart<=pt&&(Nt.ins_h=(Nt.ins_h<<Nt.hash_shift^Nt.window[Nt.strstart+ae-1])&Nt.hash_mask,mt=Nt.prev[Nt.strstart&Nt.w_mask]=Nt.head[Nt.ins_h],Nt.head[Nt.ins_h]=Nt.strstart),--Nt.prev_length!=0;);if(Nt.match_available=0,Nt.match_length=ae-1,Nt.strstart++,ft&&(Se(Nt,!1),Nt.strm.avail_out===0))return Vt}else if(Nt.match_available){if((ft=jt._tr_tally(Nt,0,Nt.window[Nt.strstart-1]))&&Se(Nt,!1),Nt.strstart++,Nt.lookahead--,Nt.strm.avail_out===0)return Vt}else Nt.match_available=1,Nt.strstart++,Nt.lookahead--}return Nt.match_available&&(ft=jt._tr_tally(Nt,0,Nt.window[Nt.strstart-1]),Nt.match_available=0),Nt.insert=Nt.strstart<ae-1?Nt.strstart:ae-1,Dt===Jt?(Se(Nt,!0),Nt.strm.avail_out===0?_e:Ne):Nt.last_lit&&(Se(Nt,!1),Nt.strm.avail_out===0)?Vt:Ge}function Hn(Nt,Dt,mt,ft,pt){this.good_length=Nt,this.max_lazy=Dt,this.nice_length=mt,this.max_chain=ft,this.func=pt}function xi(){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=ut,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 It.Buf16(2*Ht),this.dyn_dtree=new It.Buf16(2*(2*Mt+1)),this.bl_tree=new It.Buf16(2*(2*Ot+1)),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new It.Buf16(ne+1),this.heap=new It.Buf16(2*wt+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new It.Buf16(2*wt+1),ve(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 nn(Nt){var Dt;return Nt&&Nt.state?(Nt.total_in=Nt.total_out=0,Nt.data_type=rt,(Dt=Nt.state).pending=0,Dt.pending_out=0,Dt.wrap<0&&(Dt.wrap=-Dt.wrap),Dt.status=Dt.wrap?qt:ze,Nt.adler=Dt.wrap===2?0:1,Dt.last_flush=zt,jt._tr_init(Dt),Ct):We(Nt,et)}function Fi(Nt){var Dt=nn(Nt);return Dt===Ct&&function(mt){mt.window_size=2*mt.w_size,ve(mt.head),mt.max_lazy_match=Yt[mt.level].max_lazy,mt.good_match=Yt[mt.level].good_length,mt.nice_match=Yt[mt.level].nice_length,mt.max_chain_length=Yt[mt.level].max_chain,mt.strstart=0,mt.block_start=0,mt.lookahead=0,mt.insert=0,mt.match_length=mt.prev_length=ae-1,mt.match_available=0,mt.ins_h=0}(Nt.state),Dt}function ki(Nt,Dt,mt,ft,pt,At){if(!Nt)return et;var ue=1;if(Dt===tt&&(Dt=6),ft<0?(ue=0,ft=-ft):15<ft&&(ue=2,ft-=16),pt<1||ct<pt||mt!==ut||ft<8||15<ft||Dt<0||9<Dt||At<0||lt<At)return We(Nt,et);ft===8&&(ft=9);var we=new xi;return(Nt.state=we).strm=Nt,we.wrap=ue,we.gzhead=null,we.w_bits=ft,we.w_size=1<<we.w_bits,we.w_mask=we.w_size-1,we.hash_bits=pt+7,we.hash_size=1<<we.hash_bits,we.hash_mask=we.hash_size-1,we.hash_shift=~~((we.hash_bits+ae-1)/ae),we.window=new It.Buf8(2*we.w_size),we.head=new It.Buf16(we.hash_size),we.prev=new It.Buf16(we.w_size),we.lit_bufsize=1<<pt+6,we.pending_buf_size=4*we.lit_bufsize,we.pending_buf=new It.Buf8(we.pending_buf_size),we.d_buf=1*we.lit_bufsize,we.l_buf=3*we.lit_bufsize,we.level=Dt,we.strategy=At,we.method=mt,Fi(Nt)}Yt=[new Hn(0,0,0,0,function(Nt,Dt){var mt=65535;for(mt>Nt.pending_buf_size-5&&(mt=Nt.pending_buf_size-5);;){if(Nt.lookahead<=1){if(Mn(Nt),Nt.lookahead===0&&Dt===zt)return Vt;if(Nt.lookahead===0)break}Nt.strstart+=Nt.lookahead,Nt.lookahead=0;var ft=Nt.block_start+mt;if((Nt.strstart===0||Nt.strstart>=ft)&&(Nt.lookahead=Nt.strstart-ft,Nt.strstart=ft,Se(Nt,!1),Nt.strm.avail_out===0)||Nt.strstart-Nt.block_start>=Nt.w_size-be&&(Se(Nt,!1),Nt.strm.avail_out===0))return Vt}return Nt.insert=0,Dt===Jt?(Se(Nt,!0),Nt.strm.avail_out===0?_e:Ne):(Nt.strstart>Nt.block_start&&(Se(Nt,!1),Nt.strm.avail_out),Vt)}),new Hn(4,4,8,4,Wn),new Hn(4,5,16,8,Wn),new Hn(4,6,32,32,Wn),new Hn(4,4,16,16,fi),new Hn(8,16,32,32,fi),new Hn(8,16,128,128,fi),new Hn(8,32,128,256,fi),new Hn(32,128,258,1024,fi),new Hn(32,258,258,4096,fi)],ee.deflateInit=function(Nt,Dt){return ki(Nt,Dt,ut,15,8,0)},ee.deflateInit2=ki,ee.deflateReset=Fi,ee.deflateResetKeep=nn,ee.deflateSetHeader=function(Nt,Dt){return Nt&&Nt.state?Nt.state.wrap!==2?et:(Nt.state.gzhead=Dt,Ct):et},ee.deflate=function(Nt,Dt){var mt,ft,pt,At;if(!Nt||!Nt.state||5<Dt||Dt<0)return Nt?We(Nt,et):et;if(ft=Nt.state,!Nt.output||!Nt.input&&Nt.avail_in!==0||ft.status===666&&Dt!==Jt)return We(Nt,Nt.avail_out===0?-5:et);if(ft.strm=Nt,mt=ft.last_flush,ft.last_flush=Dt,ft.status===qt)if(ft.wrap===2)Nt.adler=0,Bn(ft,31),Bn(ft,139),Bn(ft,8),ft.gzhead?(Bn(ft,(ft.gzhead.text?1:0)+(ft.gzhead.hcrc?2:0)+(ft.gzhead.extra?4:0)+(ft.gzhead.name?8:0)+(ft.gzhead.comment?16:0)),Bn(ft,255&ft.gzhead.time),Bn(ft,ft.gzhead.time>>8&255),Bn(ft,ft.gzhead.time>>16&255),Bn(ft,ft.gzhead.time>>24&255),Bn(ft,ft.level===9?2:2<=ft.strategy||ft.level<2?4:0),Bn(ft,255&ft.gzhead.os),ft.gzhead.extra&&ft.gzhead.extra.length&&(Bn(ft,255&ft.gzhead.extra.length),Bn(ft,ft.gzhead.extra.length>>8&255)),ft.gzhead.hcrc&&(Nt.adler=Pt(Nt.adler,ft.pending_buf,ft.pending,0)),ft.gzindex=0,ft.status=69):(Bn(ft,0),Bn(ft,0),Bn(ft,0),Bn(ft,0),Bn(ft,0),Bn(ft,ft.level===9?2:2<=ft.strategy||ft.level<2?4:0),Bn(ft,3),ft.status=ze);else{var ue=ut+(ft.w_bits-8<<4)<<8;ue|=(2<=ft.strategy||ft.level<2?0:ft.level<6?1:ft.level===6?2:3)<<6,ft.strstart!==0&&(ue|=32),ue+=31-ue%31,ft.status=ze,Ln(ft,ue),ft.strstart!==0&&(Ln(ft,Nt.adler>>>16),Ln(ft,65535&Nt.adler)),Nt.adler=1}if(ft.status===69)if(ft.gzhead.extra){for(pt=ft.pending;ft.gzindex<(65535&ft.gzhead.extra.length)&&(ft.pending!==ft.pending_buf_size||(ft.gzhead.hcrc&&ft.pending>pt&&(Nt.adler=Pt(Nt.adler,ft.pending_buf,ft.pending-pt,pt)),ie(Nt),pt=ft.pending,ft.pending!==ft.pending_buf_size));)Bn(ft,255&ft.gzhead.extra[ft.gzindex]),ft.gzindex++;ft.gzhead.hcrc&&ft.pending>pt&&(Nt.adler=Pt(Nt.adler,ft.pending_buf,ft.pending-pt,pt)),ft.gzindex===ft.gzhead.extra.length&&(ft.gzindex=0,ft.status=73)}else ft.status=73;if(ft.status===73)if(ft.gzhead.name){pt=ft.pending;do{if(ft.pending===ft.pending_buf_size&&(ft.gzhead.hcrc&&ft.pending>pt&&(Nt.adler=Pt(Nt.adler,ft.pending_buf,ft.pending-pt,pt)),ie(Nt),pt=ft.pending,ft.pending===ft.pending_buf_size)){At=1;break}At=ft.gzindex<ft.gzhead.name.length?255&ft.gzhead.name.charCodeAt(ft.gzindex++):0,Bn(ft,At)}while(At!==0);ft.gzhead.hcrc&&ft.pending>pt&&(Nt.adler=Pt(Nt.adler,ft.pending_buf,ft.pending-pt,pt)),At===0&&(ft.gzindex=0,ft.status=91)}else ft.status=91;if(ft.status===91)if(ft.gzhead.comment){pt=ft.pending;do{if(ft.pending===ft.pending_buf_size&&(ft.gzhead.hcrc&&ft.pending>pt&&(Nt.adler=Pt(Nt.adler,ft.pending_buf,ft.pending-pt,pt)),ie(Nt),pt=ft.pending,ft.pending===ft.pending_buf_size)){At=1;break}At=ft.gzindex<ft.gzhead.comment.length?255&ft.gzhead.comment.charCodeAt(ft.gzindex++):0,Bn(ft,At)}while(At!==0);ft.gzhead.hcrc&&ft.pending>pt&&(Nt.adler=Pt(Nt.adler,ft.pending_buf,ft.pending-pt,pt)),At===0&&(ft.status=103)}else ft.status=103;if(ft.status===103&&(ft.gzhead.hcrc?(ft.pending+2>ft.pending_buf_size&&ie(Nt),ft.pending+2<=ft.pending_buf_size&&(Bn(ft,255&Nt.adler),Bn(ft,Nt.adler>>8&255),Nt.adler=0,ft.status=ze)):ft.status=ze),ft.pending!==0){if(ie(Nt),Nt.avail_out===0)return ft.last_flush=-1,Ct}else if(Nt.avail_in===0&&Re(Dt)<=Re(mt)&&Dt!==Jt)return We(Nt,-5);if(ft.status===666&&Nt.avail_in!==0)return We(Nt,-5);if(Nt.avail_in!==0||ft.lookahead!==0||Dt!==zt&&ft.status!==666){var we=ft.strategy===2?function(le,me){for(var Ue;;){if(le.lookahead===0&&(Mn(le),le.lookahead===0)){if(me===zt)return Vt;break}if(le.match_length=0,Ue=jt._tr_tally(le,0,le.window[le.strstart]),le.lookahead--,le.strstart++,Ue&&(Se(le,!1),le.strm.avail_out===0))return Vt}return le.insert=0,me===Jt?(Se(le,!0),le.strm.avail_out===0?_e:Ne):le.last_lit&&(Se(le,!1),le.strm.avail_out===0)?Vt:Ge}(ft,Dt):ft.strategy===3?function(le,me){for(var Ue,ke,Ie,rn,Gn=le.window;;){if(le.lookahead<=de){if(Mn(le),le.lookahead<=de&&me===zt)return Vt;if(le.lookahead===0)break}if(le.match_length=0,le.lookahead>=ae&&0<le.strstart&&(ke=Gn[Ie=le.strstart-1])===Gn[++Ie]&&ke===Gn[++Ie]&&ke===Gn[++Ie]){rn=le.strstart+de;do;while(ke===Gn[++Ie]&&ke===Gn[++Ie]&&ke===Gn[++Ie]&&ke===Gn[++Ie]&&ke===Gn[++Ie]&&ke===Gn[++Ie]&&ke===Gn[++Ie]&&ke===Gn[++Ie]&&Ie<rn);le.match_length=de-(rn-Ie),le.match_length>le.lookahead&&(le.match_length=le.lookahead)}if(le.match_length>=ae?(Ue=jt._tr_tally(le,1,le.match_length-ae),le.lookahead-=le.match_length,le.strstart+=le.match_length,le.match_length=0):(Ue=jt._tr_tally(le,0,le.window[le.strstart]),le.lookahead--,le.strstart++),Ue&&(Se(le,!1),le.strm.avail_out===0))return Vt}return le.insert=0,me===Jt?(Se(le,!0),le.strm.avail_out===0?_e:Ne):le.last_lit&&(Se(le,!1),le.strm.avail_out===0)?Vt:Ge}(ft,Dt):Yt[ft.level].func(ft,Dt);if(we!==_e&&we!==Ne||(ft.status=666),we===Vt||we===_e)return Nt.avail_out===0&&(ft.last_flush=-1),Ct;if(we===Ge&&(Dt===1?jt._tr_align(ft):Dt!==5&&(jt._tr_stored_block(ft,0,0,!1),Dt===3&&(ve(ft.head),ft.lookahead===0&&(ft.strstart=0,ft.block_start=0,ft.insert=0))),ie(Nt),Nt.avail_out===0))return ft.last_flush=-1,Ct}return Dt!==Jt?Ct:ft.wrap<=0?1:(ft.wrap===2?(Bn(ft,255&Nt.adler),Bn(ft,Nt.adler>>8&255),Bn(ft,Nt.adler>>16&255),Bn(ft,Nt.adler>>24&255),Bn(ft,255&Nt.total_in),Bn(ft,Nt.total_in>>8&255),Bn(ft,Nt.total_in>>16&255),Bn(ft,Nt.total_in>>24&255)):(Ln(ft,Nt.adler>>>16),Ln(ft,65535&Nt.adler)),ie(Nt),0<ft.wrap&&(ft.wrap=-ft.wrap),ft.pending!==0?Ct:1)},ee.deflateEnd=function(Nt){var Dt;return Nt&&Nt.state?(Dt=Nt.state.status)!==qt&&Dt!==69&&Dt!==73&&Dt!==91&&Dt!==103&&Dt!==ze&&Dt!==666?We(Nt,et):(Nt.state=null,Dt===ze?We(Nt,-3):Ct):et},ee.deflateSetDictionary=function(Nt,Dt){var mt,ft,pt,At,ue,we,le,me,Ue=Dt.length;if(!Nt||!Nt.state||(At=(mt=Nt.state).wrap)===2||At===1&&mt.status!==qt||mt.lookahead)return et;for(At===1&&(Nt.adler=Xt(Nt.adler,Dt,Ue,0)),mt.wrap=0,Ue>=mt.w_size&&(At===0&&(ve(mt.head),mt.strstart=0,mt.block_start=0,mt.insert=0),me=new It.Buf8(mt.w_size),It.arraySet(me,Dt,Ue-mt.w_size,mt.w_size,0),Dt=me,Ue=mt.w_size),ue=Nt.avail_in,we=Nt.next_in,le=Nt.input,Nt.avail_in=Ue,Nt.next_in=0,Nt.input=Dt,Mn(mt);mt.lookahead>=ae;){for(ft=mt.strstart,pt=mt.lookahead-(ae-1);mt.ins_h=(mt.ins_h<<mt.hash_shift^mt.window[ft+ae-1])&mt.hash_mask,mt.prev[ft&mt.w_mask]=mt.head[mt.ins_h],mt.head[mt.ins_h]=ft,ft++,--pt;);mt.strstart=ft,mt.lookahead=ae-1,Mn(mt)}return mt.strstart+=mt.lookahead,mt.block_start=mt.strstart,mt.insert=mt.lookahead,mt.lookahead=0,mt.match_length=mt.prev_length=ae-1,mt.match_available=0,Nt.next_in=we,Nt.input=le,Nt.avail_in=ue,mt.wrap=At,Ct},ee.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(re,Be,ee){"use strict";Be.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(re,Be,ee){"use strict";Be.exports=function(Yt,It){var jt,Xt,Pt,oe,zt,Jt,Ct,et,tt,lt,rt,ut,ct,wt,Mt,Ot,Ht,ne,ae,de,be,qt,ze,Vt,Ge;jt=Yt.state,Xt=Yt.next_in,Vt=Yt.input,Pt=Xt+(Yt.avail_in-5),oe=Yt.next_out,Ge=Yt.output,zt=oe-(It-Yt.avail_out),Jt=oe+(Yt.avail_out-257),Ct=jt.dmax,et=jt.wsize,tt=jt.whave,lt=jt.wnext,rt=jt.window,ut=jt.hold,ct=jt.bits,wt=jt.lencode,Mt=jt.distcode,Ot=(1<<jt.lenbits)-1,Ht=(1<<jt.distbits)-1;t:do{ct<15&&(ut+=Vt[Xt++]<<ct,ct+=8,ut+=Vt[Xt++]<<ct,ct+=8),ne=wt[ut&Ot];e:for(;;){if(ut>>>=ae=ne>>>24,ct-=ae,(ae=ne>>>16&255)===0)Ge[oe++]=65535&ne;else{if(!(16&ae)){if(!(64&ae)){ne=wt[(65535&ne)+(ut&(1<<ae)-1)];continue e}if(32&ae){jt.mode=12;break t}Yt.msg="invalid literal/length code",jt.mode=30;break t}de=65535&ne,(ae&=15)&&(ct<ae&&(ut+=Vt[Xt++]<<ct,ct+=8),de+=ut&(1<<ae)-1,ut>>>=ae,ct-=ae),ct<15&&(ut+=Vt[Xt++]<<ct,ct+=8,ut+=Vt[Xt++]<<ct,ct+=8),ne=Mt[ut&Ht];n:for(;;){if(ut>>>=ae=ne>>>24,ct-=ae,!(16&(ae=ne>>>16&255))){if(!(64&ae)){ne=Mt[(65535&ne)+(ut&(1<<ae)-1)];continue n}Yt.msg="invalid distance code",jt.mode=30;break t}if(be=65535&ne,ct<(ae&=15)&&(ut+=Vt[Xt++]<<ct,(ct+=8)<ae&&(ut+=Vt[Xt++]<<ct,ct+=8)),Ct<(be+=ut&(1<<ae)-1)){Yt.msg="invalid distance too far back",jt.mode=30;break t}if(ut>>>=ae,ct-=ae,(ae=oe-zt)<be){if(tt<(ae=be-ae)&&jt.sane){Yt.msg="invalid distance too far back",jt.mode=30;break t}if(ze=rt,(qt=0)===lt){if(qt+=et-ae,ae<de){for(de-=ae;Ge[oe++]=rt[qt++],--ae;);qt=oe-be,ze=Ge}}else if(lt<ae){if(qt+=et+lt-ae,(ae-=lt)<de){for(de-=ae;Ge[oe++]=rt[qt++],--ae;);if(qt=0,lt<de){for(de-=ae=lt;Ge[oe++]=rt[qt++],--ae;);qt=oe-be,ze=Ge}}}else if(qt+=lt-ae,ae<de){for(de-=ae;Ge[oe++]=rt[qt++],--ae;);qt=oe-be,ze=Ge}for(;2<de;)Ge[oe++]=ze[qt++],Ge[oe++]=ze[qt++],Ge[oe++]=ze[qt++],de-=3;de&&(Ge[oe++]=ze[qt++],1<de&&(Ge[oe++]=ze[qt++]))}else{for(qt=oe-be;Ge[oe++]=Ge[qt++],Ge[oe++]=Ge[qt++],Ge[oe++]=Ge[qt++],2<(de-=3););de&&(Ge[oe++]=Ge[qt++],1<de&&(Ge[oe++]=Ge[qt++]))}break}}break}}while(Xt<Pt&&oe<Jt);Xt-=de=ct>>3,ut&=(1<<(ct-=de<<3))-1,Yt.next_in=Xt,Yt.next_out=oe,Yt.avail_in=Xt<Pt?Pt-Xt+5:5-(Xt-Pt),Yt.avail_out=oe<Jt?Jt-oe+257:257-(oe-Jt),jt.hold=ut,jt.bits=ct}},{}],49:[function(re,Be,ee){"use strict";var Yt=re("../utils/common"),It=re("./adler32"),jt=re("./crc32"),Xt=re("./inffast"),Pt=re("./inftrees"),oe=1,zt=2,Jt=0,Ct=-2,et=1,tt=852,lt=592;function rt(qt){return(qt>>>24&255)+(qt>>>8&65280)+((65280&qt)<<8)+((255&qt)<<24)}function ut(){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 Yt.Buf16(320),this.work=new Yt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ct(qt){var ze;return qt&&qt.state?(ze=qt.state,qt.total_in=qt.total_out=ze.total=0,qt.msg="",ze.wrap&&(qt.adler=1&ze.wrap),ze.mode=et,ze.last=0,ze.havedict=0,ze.dmax=32768,ze.head=null,ze.hold=0,ze.bits=0,ze.lencode=ze.lendyn=new Yt.Buf32(tt),ze.distcode=ze.distdyn=new Yt.Buf32(lt),ze.sane=1,ze.back=-1,Jt):Ct}function wt(qt){var ze;return qt&&qt.state?((ze=qt.state).wsize=0,ze.whave=0,ze.wnext=0,ct(qt)):Ct}function Mt(qt,ze){var Vt,Ge;return qt&&qt.state?(Ge=qt.state,ze<0?(Vt=0,ze=-ze):(Vt=1+(ze>>4),ze<48&&(ze&=15)),ze&&(ze<8||15<ze)?Ct:(Ge.window!==null&&Ge.wbits!==ze&&(Ge.window=null),Ge.wrap=Vt,Ge.wbits=ze,wt(qt))):Ct}function Ot(qt,ze){var Vt,Ge;return qt?(Ge=new ut,(qt.state=Ge).window=null,(Vt=Mt(qt,ze))!==Jt&&(qt.state=null),Vt):Ct}var Ht,ne,ae=!0;function de(qt){if(ae){var ze;for(Ht=new Yt.Buf32(512),ne=new Yt.Buf32(32),ze=0;ze<144;)qt.lens[ze++]=8;for(;ze<256;)qt.lens[ze++]=9;for(;ze<280;)qt.lens[ze++]=7;for(;ze<288;)qt.lens[ze++]=8;for(Pt(oe,qt.lens,0,288,Ht,0,qt.work,{bits:9}),ze=0;ze<32;)qt.lens[ze++]=5;Pt(zt,qt.lens,0,32,ne,0,qt.work,{bits:5}),ae=!1}qt.lencode=Ht,qt.lenbits=9,qt.distcode=ne,qt.distbits=5}function be(qt,ze,Vt,Ge){var _e,Ne=qt.state;return Ne.window===null&&(Ne.wsize=1<<Ne.wbits,Ne.wnext=0,Ne.whave=0,Ne.window=new Yt.Buf8(Ne.wsize)),Ge>=Ne.wsize?(Yt.arraySet(Ne.window,ze,Vt-Ne.wsize,Ne.wsize,0),Ne.wnext=0,Ne.whave=Ne.wsize):(Ge<(_e=Ne.wsize-Ne.wnext)&&(_e=Ge),Yt.arraySet(Ne.window,ze,Vt-Ge,_e,Ne.wnext),(Ge-=_e)?(Yt.arraySet(Ne.window,ze,Vt-Ge,Ge,0),Ne.wnext=Ge,Ne.whave=Ne.wsize):(Ne.wnext+=_e,Ne.wnext===Ne.wsize&&(Ne.wnext=0),Ne.whave<Ne.wsize&&(Ne.whave+=_e))),0}ee.inflateReset=wt,ee.inflateReset2=Mt,ee.inflateResetKeep=ct,ee.inflateInit=function(qt){return Ot(qt,15)},ee.inflateInit2=Ot,ee.inflate=function(qt,ze){var Vt,Ge,_e,Ne,We,Re,ve,ie,Se,Bn,Ln,Ye,Mn,Wn,fi,Hn,xi,nn,Fi,ki,Nt,Dt,mt,ft,pt=0,At=new Yt.Buf8(4),ue=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!qt||!qt.state||!qt.output||!qt.input&&qt.avail_in!==0)return Ct;(Vt=qt.state).mode===12&&(Vt.mode=13),We=qt.next_out,_e=qt.output,ve=qt.avail_out,Ne=qt.next_in,Ge=qt.input,Re=qt.avail_in,ie=Vt.hold,Se=Vt.bits,Bn=Re,Ln=ve,Dt=Jt;t:for(;;)switch(Vt.mode){case et:if(Vt.wrap===0){Vt.mode=13;break}for(;Se<16;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(2&Vt.wrap&&ie===35615){At[Vt.check=0]=255&ie,At[1]=ie>>>8&255,Vt.check=jt(Vt.check,At,2,0),Se=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){qt.msg="incorrect header check",Vt.mode=30;break}if((15&ie)!=8){qt.msg="unknown compression method",Vt.mode=30;break}if(Se-=4,Nt=8+(15&(ie>>>=4)),Vt.wbits===0)Vt.wbits=Nt;else if(Nt>Vt.wbits){qt.msg="invalid window size",Vt.mode=30;break}Vt.dmax=1<<Nt,qt.adler=Vt.check=1,Vt.mode=512&ie?10:12,Se=ie=0;break;case 2:for(;Se<16;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(Vt.flags=ie,(255&Vt.flags)!=8){qt.msg="unknown compression method",Vt.mode=30;break}if(57344&Vt.flags){qt.msg="unknown header flags set",Vt.mode=30;break}Vt.head&&(Vt.head.text=ie>>8&1),512&Vt.flags&&(At[0]=255&ie,At[1]=ie>>>8&255,Vt.check=jt(Vt.check,At,2,0)),Se=ie=0,Vt.mode=3;case 3:for(;Se<32;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}Vt.head&&(Vt.head.time=ie),512&Vt.flags&&(At[0]=255&ie,At[1]=ie>>>8&255,At[2]=ie>>>16&255,At[3]=ie>>>24&255,Vt.check=jt(Vt.check,At,4,0)),Se=ie=0,Vt.mode=4;case 4:for(;Se<16;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}Vt.head&&(Vt.head.xflags=255&ie,Vt.head.os=ie>>8),512&Vt.flags&&(At[0]=255&ie,At[1]=ie>>>8&255,Vt.check=jt(Vt.check,At,2,0)),Se=ie=0,Vt.mode=5;case 5:if(1024&Vt.flags){for(;Se<16;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}Vt.length=ie,Vt.head&&(Vt.head.extra_len=ie),512&Vt.flags&&(At[0]=255&ie,At[1]=ie>>>8&255,Vt.check=jt(Vt.check,At,2,0)),Se=ie=0}else Vt.head&&(Vt.head.extra=null);Vt.mode=6;case 6:if(1024&Vt.flags&&(Re<(Ye=Vt.length)&&(Ye=Re),Ye&&(Vt.head&&(Nt=Vt.head.extra_len-Vt.length,Vt.head.extra||(Vt.head.extra=new Array(Vt.head.extra_len)),Yt.arraySet(Vt.head.extra,Ge,Ne,Ye,Nt)),512&Vt.flags&&(Vt.check=jt(Vt.check,Ge,Ye,Ne)),Re-=Ye,Ne+=Ye,Vt.length-=Ye),Vt.length))break t;Vt.length=0,Vt.mode=7;case 7:if(2048&Vt.flags){if(Re===0)break t;for(Ye=0;Nt=Ge[Ne+Ye++],Vt.head&&Nt&&Vt.length<65536&&(Vt.head.name+=String.fromCharCode(Nt)),Nt&&Ye<Re;);if(512&Vt.flags&&(Vt.check=jt(Vt.check,Ge,Ye,Ne)),Re-=Ye,Ne+=Ye,Nt)break t}else Vt.head&&(Vt.head.name=null);Vt.length=0,Vt.mode=8;case 8:if(4096&Vt.flags){if(Re===0)break t;for(Ye=0;Nt=Ge[Ne+Ye++],Vt.head&&Nt&&Vt.length<65536&&(Vt.head.comment+=String.fromCharCode(Nt)),Nt&&Ye<Re;);if(512&Vt.flags&&(Vt.check=jt(Vt.check,Ge,Ye,Ne)),Re-=Ye,Ne+=Ye,Nt)break t}else Vt.head&&(Vt.head.comment=null);Vt.mode=9;case 9:if(512&Vt.flags){for(;Se<16;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(ie!==(65535&Vt.check)){qt.msg="header crc mismatch",Vt.mode=30;break}Se=ie=0}Vt.head&&(Vt.head.hcrc=Vt.flags>>9&1,Vt.head.done=!0),qt.adler=Vt.check=0,Vt.mode=12;break;case 10:for(;Se<32;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}qt.adler=Vt.check=rt(ie),Se=ie=0,Vt.mode=11;case 11:if(Vt.havedict===0)return qt.next_out=We,qt.avail_out=ve,qt.next_in=Ne,qt.avail_in=Re,Vt.hold=ie,Vt.bits=Se,2;qt.adler=Vt.check=1,Vt.mode=12;case 12:if(ze===5||ze===6)break t;case 13:if(Vt.last){ie>>>=7&Se,Se-=7&Se,Vt.mode=27;break}for(;Se<3;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}switch(Vt.last=1&ie,Se-=1,3&(ie>>>=1)){case 0:Vt.mode=14;break;case 1:if(de(Vt),Vt.mode=20,ze!==6)break;ie>>>=2,Se-=2;break t;case 2:Vt.mode=17;break;case 3:qt.msg="invalid block type",Vt.mode=30}ie>>>=2,Se-=2;break;case 14:for(ie>>>=7&Se,Se-=7&Se;Se<32;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if((65535&ie)!=(ie>>>16^65535)){qt.msg="invalid stored block lengths",Vt.mode=30;break}if(Vt.length=65535&ie,Se=ie=0,Vt.mode=15,ze===6)break t;case 15:Vt.mode=16;case 16:if(Ye=Vt.length){if(Re<Ye&&(Ye=Re),ve<Ye&&(Ye=ve),Ye===0)break t;Yt.arraySet(_e,Ge,Ne,Ye,We),Re-=Ye,Ne+=Ye,ve-=Ye,We+=Ye,Vt.length-=Ye;break}Vt.mode=12;break;case 17:for(;Se<14;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(Vt.nlen=257+(31&ie),ie>>>=5,Se-=5,Vt.ndist=1+(31&ie),ie>>>=5,Se-=5,Vt.ncode=4+(15&ie),ie>>>=4,Se-=4,286<Vt.nlen||30<Vt.ndist){qt.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(;Se<3;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}Vt.lens[ue[Vt.have++]]=7&ie,ie>>>=3,Se-=3}for(;Vt.have<19;)Vt.lens[ue[Vt.have++]]=0;if(Vt.lencode=Vt.lendyn,Vt.lenbits=7,mt={bits:Vt.lenbits},Dt=Pt(0,Vt.lens,0,19,Vt.lencode,0,Vt.work,mt),Vt.lenbits=mt.bits,Dt){qt.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(;Hn=(pt=Vt.lencode[ie&(1<<Vt.lenbits)-1])>>>16&255,xi=65535&pt,!((fi=pt>>>24)<=Se);){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(xi<16)ie>>>=fi,Se-=fi,Vt.lens[Vt.have++]=xi;else{if(xi===16){for(ft=fi+2;Se<ft;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(ie>>>=fi,Se-=fi,Vt.have===0){qt.msg="invalid bit length repeat",Vt.mode=30;break}Nt=Vt.lens[Vt.have-1],Ye=3+(3&ie),ie>>>=2,Se-=2}else if(xi===17){for(ft=fi+3;Se<ft;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}Se-=fi,Nt=0,Ye=3+(7&(ie>>>=fi)),ie>>>=3,Se-=3}else{for(ft=fi+7;Se<ft;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}Se-=fi,Nt=0,Ye=11+(127&(ie>>>=fi)),ie>>>=7,Se-=7}if(Vt.have+Ye>Vt.nlen+Vt.ndist){qt.msg="invalid bit length repeat",Vt.mode=30;break}for(;Ye--;)Vt.lens[Vt.have++]=Nt}}if(Vt.mode===30)break;if(Vt.lens[256]===0){qt.msg="invalid code -- missing end-of-block",Vt.mode=30;break}if(Vt.lenbits=9,mt={bits:Vt.lenbits},Dt=Pt(oe,Vt.lens,0,Vt.nlen,Vt.lencode,0,Vt.work,mt),Vt.lenbits=mt.bits,Dt){qt.msg="invalid literal/lengths set",Vt.mode=30;break}if(Vt.distbits=6,Vt.distcode=Vt.distdyn,mt={bits:Vt.distbits},Dt=Pt(zt,Vt.lens,Vt.nlen,Vt.ndist,Vt.distcode,0,Vt.work,mt),Vt.distbits=mt.bits,Dt){qt.msg="invalid distances set",Vt.mode=30;break}if(Vt.mode=20,ze===6)break t;case 20:Vt.mode=21;case 21:if(6<=Re&&258<=ve){qt.next_out=We,qt.avail_out=ve,qt.next_in=Ne,qt.avail_in=Re,Vt.hold=ie,Vt.bits=Se,Xt(qt,Ln),We=qt.next_out,_e=qt.output,ve=qt.avail_out,Ne=qt.next_in,Ge=qt.input,Re=qt.avail_in,ie=Vt.hold,Se=Vt.bits,Vt.mode===12&&(Vt.back=-1);break}for(Vt.back=0;Hn=(pt=Vt.lencode[ie&(1<<Vt.lenbits)-1])>>>16&255,xi=65535&pt,!((fi=pt>>>24)<=Se);){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(Hn&&!(240&Hn)){for(nn=fi,Fi=Hn,ki=xi;Hn=(pt=Vt.lencode[ki+((ie&(1<<nn+Fi)-1)>>nn)])>>>16&255,xi=65535&pt,!(nn+(fi=pt>>>24)<=Se);){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}ie>>>=nn,Se-=nn,Vt.back+=nn}if(ie>>>=fi,Se-=fi,Vt.back+=fi,Vt.length=xi,Hn===0){Vt.mode=26;break}if(32&Hn){Vt.back=-1,Vt.mode=12;break}if(64&Hn){qt.msg="invalid literal/length code",Vt.mode=30;break}Vt.extra=15&Hn,Vt.mode=22;case 22:if(Vt.extra){for(ft=Vt.extra;Se<ft;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}Vt.length+=ie&(1<<Vt.extra)-1,ie>>>=Vt.extra,Se-=Vt.extra,Vt.back+=Vt.extra}Vt.was=Vt.length,Vt.mode=23;case 23:for(;Hn=(pt=Vt.distcode[ie&(1<<Vt.distbits)-1])>>>16&255,xi=65535&pt,!((fi=pt>>>24)<=Se);){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(!(240&Hn)){for(nn=fi,Fi=Hn,ki=xi;Hn=(pt=Vt.distcode[ki+((ie&(1<<nn+Fi)-1)>>nn)])>>>16&255,xi=65535&pt,!(nn+(fi=pt>>>24)<=Se);){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}ie>>>=nn,Se-=nn,Vt.back+=nn}if(ie>>>=fi,Se-=fi,Vt.back+=fi,64&Hn){qt.msg="invalid distance code",Vt.mode=30;break}Vt.offset=xi,Vt.extra=15&Hn,Vt.mode=24;case 24:if(Vt.extra){for(ft=Vt.extra;Se<ft;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}Vt.offset+=ie&(1<<Vt.extra)-1,ie>>>=Vt.extra,Se-=Vt.extra,Vt.back+=Vt.extra}if(Vt.offset>Vt.dmax){qt.msg="invalid distance too far back",Vt.mode=30;break}Vt.mode=25;case 25:if(ve===0)break t;if(Ye=Ln-ve,Vt.offset>Ye){if((Ye=Vt.offset-Ye)>Vt.whave&&Vt.sane){qt.msg="invalid distance too far back",Vt.mode=30;break}Mn=Ye>Vt.wnext?(Ye-=Vt.wnext,Vt.wsize-Ye):Vt.wnext-Ye,Ye>Vt.length&&(Ye=Vt.length),Wn=Vt.window}else Wn=_e,Mn=We-Vt.offset,Ye=Vt.length;for(ve<Ye&&(Ye=ve),ve-=Ye,Vt.length-=Ye;_e[We++]=Wn[Mn++],--Ye;);Vt.length===0&&(Vt.mode=21);break;case 26:if(ve===0)break t;_e[We++]=Vt.length,ve--,Vt.mode=21;break;case 27:if(Vt.wrap){for(;Se<32;){if(Re===0)break t;Re--,ie|=Ge[Ne++]<<Se,Se+=8}if(Ln-=ve,qt.total_out+=Ln,Vt.total+=Ln,Ln&&(qt.adler=Vt.check=Vt.flags?jt(Vt.check,_e,Ln,We-Ln):It(Vt.check,_e,Ln,We-Ln)),Ln=ve,(Vt.flags?ie:rt(ie))!==Vt.check){qt.msg="incorrect data check",Vt.mode=30;break}Se=ie=0}Vt.mode=28;case 28:if(Vt.wrap&&Vt.flags){for(;Se<32;){if(Re===0)break t;Re--,ie+=Ge[Ne++]<<Se,Se+=8}if(ie!==(4294967295&Vt.total)){qt.msg="incorrect length check",Vt.mode=30;break}Se=ie=0}Vt.mode=29;case 29:Dt=1;break t;case 30:Dt=-3;break t;case 31:return-4;case 32:default:return Ct}return qt.next_out=We,qt.avail_out=ve,qt.next_in=Ne,qt.avail_in=Re,Vt.hold=ie,Vt.bits=Se,(Vt.wsize||Ln!==qt.avail_out&&Vt.mode<30&&(Vt.mode<27||ze!==4))&&be(qt,qt.output,qt.next_out,Ln-qt.avail_out)?(Vt.mode=31,-4):(Bn-=qt.avail_in,Ln-=qt.avail_out,qt.total_in+=Bn,qt.total_out+=Ln,Vt.total+=Ln,Vt.wrap&&Ln&&(qt.adler=Vt.check=Vt.flags?jt(Vt.check,_e,Ln,qt.next_out-Ln):It(Vt.check,_e,Ln,qt.next_out-Ln)),qt.data_type=Vt.bits+(Vt.last?64:0)+(Vt.mode===12?128:0)+(Vt.mode===20||Vt.mode===15?256:0),(Bn==0&&Ln===0||ze===4)&&Dt===Jt&&(Dt=-5),Dt)},ee.inflateEnd=function(qt){if(!qt||!qt.state)return Ct;var ze=qt.state;return ze.window&&(ze.window=null),qt.state=null,Jt},ee.inflateGetHeader=function(qt,ze){var Vt;return qt&&qt.state&&2&(Vt=qt.state).wrap?((Vt.head=ze).done=!1,Jt):Ct},ee.inflateSetDictionary=function(qt,ze){var Vt,Ge=ze.length;return qt&&qt.state?(Vt=qt.state).wrap!==0&&Vt.mode!==11?Ct:Vt.mode===11&&It(1,ze,Ge,0)!==Vt.check?-3:be(qt,ze,Ge,Ge)?(Vt.mode=31,-4):(Vt.havedict=1,Jt):Ct},ee.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(re,Be,ee){"use strict";var Yt=re("../utils/common"),It=[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],jt=[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],Xt=[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],Pt=[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];Be.exports=function(oe,zt,Jt,Ct,et,tt,lt,rt){var ut,ct,wt,Mt,Ot,Ht,ne,ae,de,be=rt.bits,qt=0,ze=0,Vt=0,Ge=0,_e=0,Ne=0,We=0,Re=0,ve=0,ie=0,Se=null,Bn=0,Ln=new Yt.Buf16(16),Ye=new Yt.Buf16(16),Mn=null,Wn=0;for(qt=0;qt<=15;qt++)Ln[qt]=0;for(ze=0;ze<Ct;ze++)Ln[zt[Jt+ze]]++;for(_e=be,Ge=15;1<=Ge&&Ln[Ge]===0;Ge--);if(Ge<_e&&(_e=Ge),Ge===0)return et[tt++]=20971520,et[tt++]=20971520,rt.bits=1,0;for(Vt=1;Vt<Ge&&Ln[Vt]===0;Vt++);for(_e<Vt&&(_e=Vt),qt=Re=1;qt<=15;qt++)if(Re<<=1,(Re-=Ln[qt])<0)return-1;if(0<Re&&(oe===0||Ge!==1))return-1;for(Ye[1]=0,qt=1;qt<15;qt++)Ye[qt+1]=Ye[qt]+Ln[qt];for(ze=0;ze<Ct;ze++)zt[Jt+ze]!==0&&(lt[Ye[zt[Jt+ze]]++]=ze);if(Ht=oe===0?(Se=Mn=lt,19):oe===1?(Se=It,Bn-=257,Mn=jt,Wn-=257,256):(Se=Xt,Mn=Pt,-1),qt=Vt,Ot=tt,We=ze=ie=0,wt=-1,Mt=(ve=1<<(Ne=_e))-1,oe===1&&852<ve||oe===2&&592<ve)return 1;for(;;){for(ne=qt-We,de=lt[ze]<Ht?(ae=0,lt[ze]):lt[ze]>Ht?(ae=Mn[Wn+lt[ze]],Se[Bn+lt[ze]]):(ae=96,0),ut=1<<qt-We,Vt=ct=1<<Ne;et[Ot+(ie>>We)+(ct-=ut)]=ne<<24|ae<<16|de|0,ct!==0;);for(ut=1<<qt-1;ie&ut;)ut>>=1;if(ut!==0?(ie&=ut-1,ie+=ut):ie=0,ze++,--Ln[qt]==0){if(qt===Ge)break;qt=zt[Jt+lt[ze]]}if(_e<qt&&(ie&Mt)!==wt){for(We===0&&(We=_e),Ot+=Vt,Re=1<<(Ne=qt-We);Ne+We<Ge&&!((Re-=Ln[Ne+We])<=0);)Ne++,Re<<=1;if(ve+=1<<Ne,oe===1&&852<ve||oe===2&&592<ve)return 1;et[wt=ie&Mt]=_e<<24|Ne<<16|Ot-tt|0}}return ie!==0&&(et[Ot+ie]=qt-We<<24|64<<16|0),rt.bits=_e,0}},{"../utils/common":41}],51:[function(re,Be,ee){"use strict";Be.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(re,Be,ee){"use strict";var Yt=re("../utils/common"),It=0,jt=1;function Xt(pt){for(var At=pt.length;0<=--At;)pt[At]=0}var Pt=0,oe=29,zt=256,Jt=zt+1+oe,Ct=30,et=19,tt=2*Jt+1,lt=15,rt=16,ut=7,ct=256,wt=16,Mt=17,Ot=18,Ht=[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],ne=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],be=new Array(2*(Jt+2));Xt(be);var qt=new Array(2*Ct);Xt(qt);var ze=new Array(512);Xt(ze);var Vt=new Array(256);Xt(Vt);var Ge=new Array(oe);Xt(Ge);var _e,Ne,We,Re=new Array(Ct);function ve(pt,At,ue,we,le){this.static_tree=pt,this.extra_bits=At,this.extra_base=ue,this.elems=we,this.max_length=le,this.has_stree=pt&&pt.length}function ie(pt,At){this.dyn_tree=pt,this.max_code=0,this.stat_desc=At}function Se(pt){return pt<256?ze[pt]:ze[256+(pt>>>7)]}function Bn(pt,At){pt.pending_buf[pt.pending++]=255&At,pt.pending_buf[pt.pending++]=At>>>8&255}function Ln(pt,At,ue){pt.bi_valid>rt-ue?(pt.bi_buf|=At<<pt.bi_valid&65535,Bn(pt,pt.bi_buf),pt.bi_buf=At>>rt-pt.bi_valid,pt.bi_valid+=ue-rt):(pt.bi_buf|=At<<pt.bi_valid&65535,pt.bi_valid+=ue)}function Ye(pt,At,ue){Ln(pt,ue[2*At],ue[2*At+1])}function Mn(pt,At){for(var ue=0;ue|=1&pt,pt>>>=1,ue<<=1,0<--At;);return ue>>>1}function Wn(pt,At,ue){var we,le,me=new Array(lt+1),Ue=0;for(we=1;we<=lt;we++)me[we]=Ue=Ue+ue[we-1]<<1;for(le=0;le<=At;le++){var ke=pt[2*le+1];ke!==0&&(pt[2*le]=Mn(me[ke]++,ke))}}function fi(pt){var At;for(At=0;At<Jt;At++)pt.dyn_ltree[2*At]=0;for(At=0;At<Ct;At++)pt.dyn_dtree[2*At]=0;for(At=0;At<et;At++)pt.bl_tree[2*At]=0;pt.dyn_ltree[2*ct]=1,pt.opt_len=pt.static_len=0,pt.last_lit=pt.matches=0}function Hn(pt){8<pt.bi_valid?Bn(pt,pt.bi_buf):0<pt.bi_valid&&(pt.pending_buf[pt.pending++]=pt.bi_buf),pt.bi_buf=0,pt.bi_valid=0}function xi(pt,At,ue,we){var le=2*At,me=2*ue;return pt[le]<pt[me]||pt[le]===pt[me]&&we[At]<=we[ue]}function nn(pt,At,ue){for(var we=pt.heap[ue],le=ue<<1;le<=pt.heap_len&&(le<pt.heap_len&&xi(At,pt.heap[le+1],pt.heap[le],pt.depth)&&le++,!xi(At,we,pt.heap[le],pt.depth));)pt.heap[ue]=pt.heap[le],ue=le,le<<=1;pt.heap[ue]=we}function Fi(pt,At,ue){var we,le,me,Ue,ke=0;if(pt.last_lit!==0)for(;we=pt.pending_buf[pt.d_buf+2*ke]<<8|pt.pending_buf[pt.d_buf+2*ke+1],le=pt.pending_buf[pt.l_buf+ke],ke++,we===0?Ye(pt,le,At):(Ye(pt,(me=Vt[le])+zt+1,At),(Ue=Ht[me])!==0&&Ln(pt,le-=Ge[me],Ue),Ye(pt,me=Se(--we),ue),(Ue=ne[me])!==0&&Ln(pt,we-=Re[me],Ue)),ke<pt.last_lit;);Ye(pt,ct,At)}function ki(pt,At){var ue,we,le,me=At.dyn_tree,Ue=At.stat_desc.static_tree,ke=At.stat_desc.has_stree,Ie=At.stat_desc.elems,rn=-1;for(pt.heap_len=0,pt.heap_max=tt,ue=0;ue<Ie;ue++)me[2*ue]!==0?(pt.heap[++pt.heap_len]=rn=ue,pt.depth[ue]=0):me[2*ue+1]=0;for(;pt.heap_len<2;)me[2*(le=pt.heap[++pt.heap_len]=rn<2?++rn:0)]=1,pt.depth[le]=0,pt.opt_len--,ke&&(pt.static_len-=Ue[2*le+1]);for(At.max_code=rn,ue=pt.heap_len>>1;1<=ue;ue--)nn(pt,me,ue);for(le=Ie;ue=pt.heap[1],pt.heap[1]=pt.heap[pt.heap_len--],nn(pt,me,1),we=pt.heap[1],pt.heap[--pt.heap_max]=ue,pt.heap[--pt.heap_max]=we,me[2*le]=me[2*ue]+me[2*we],pt.depth[le]=(pt.depth[ue]>=pt.depth[we]?pt.depth[ue]:pt.depth[we])+1,me[2*ue+1]=me[2*we+1]=le,pt.heap[1]=le++,nn(pt,me,1),2<=pt.heap_len;);pt.heap[--pt.heap_max]=pt.heap[1],function(Gn,dn){var An,Dn,qn,Rn,Di,cr,Ji=dn.dyn_tree,Sr=dn.max_code,Nr=dn.stat_desc.static_tree,co=dn.stat_desc.has_stree,to=dn.stat_desc.extra_bits,Kr=dn.stat_desc.extra_base,gr=dn.stat_desc.max_length,Vr=0;for(Rn=0;Rn<=lt;Rn++)Gn.bl_count[Rn]=0;for(Ji[2*Gn.heap[Gn.heap_max]+1]=0,An=Gn.heap_max+1;An<tt;An++)gr<(Rn=Ji[2*Ji[2*(Dn=Gn.heap[An])+1]+1]+1)&&(Rn=gr,Vr++),Ji[2*Dn+1]=Rn,Sr<Dn||(Gn.bl_count[Rn]++,Di=0,Kr<=Dn&&(Di=to[Dn-Kr]),cr=Ji[2*Dn],Gn.opt_len+=cr*(Rn+Di),co&&(Gn.static_len+=cr*(Nr[2*Dn+1]+Di)));if(Vr!==0){do{for(Rn=gr-1;Gn.bl_count[Rn]===0;)Rn--;Gn.bl_count[Rn]--,Gn.bl_count[Rn+1]+=2,Gn.bl_count[gr]--,Vr-=2}while(0<Vr);for(Rn=gr;Rn!==0;Rn--)for(Dn=Gn.bl_count[Rn];Dn!==0;)Sr<(qn=Gn.heap[--An])||(Ji[2*qn+1]!==Rn&&(Gn.opt_len+=(Rn-Ji[2*qn+1])*Ji[2*qn],Ji[2*qn+1]=Rn),Dn--)}}(pt,At),Wn(me,rn,pt.bl_count)}function Nt(pt,At,ue){var we,le,me=-1,Ue=At[1],ke=0,Ie=7,rn=4;for(Ue===0&&(Ie=138,rn=3),At[2*(ue+1)+1]=65535,we=0;we<=ue;we++)le=Ue,Ue=At[2*(we+1)+1],++ke<Ie&&le===Ue||(ke<rn?pt.bl_tree[2*le]+=ke:le!==0?(le!==me&&pt.bl_tree[2*le]++,pt.bl_tree[2*wt]++):ke<=10?pt.bl_tree[2*Mt]++:pt.bl_tree[2*Ot]++,me=le,rn=(ke=0)===Ue?(Ie=138,3):le===Ue?(Ie=6,3):(Ie=7,4))}function Dt(pt,At,ue){var we,le,me=-1,Ue=At[1],ke=0,Ie=7,rn=4;for(Ue===0&&(Ie=138,rn=3),we=0;we<=ue;we++)if(le=Ue,Ue=At[2*(we+1)+1],!(++ke<Ie&&le===Ue)){if(ke<rn)for(;Ye(pt,le,pt.bl_tree),--ke!=0;);else le!==0?(le!==me&&(Ye(pt,le,pt.bl_tree),ke--),Ye(pt,wt,pt.bl_tree),Ln(pt,ke-3,2)):ke<=10?(Ye(pt,Mt,pt.bl_tree),Ln(pt,ke-3,3)):(Ye(pt,Ot,pt.bl_tree),Ln(pt,ke-11,7));me=le,rn=(ke=0)===Ue?(Ie=138,3):le===Ue?(Ie=6,3):(Ie=7,4)}}Xt(Re);var mt=!1;function ft(pt,At,ue,we){Ln(pt,(Pt<<1)+(we?1:0),3),function(le,me,Ue,ke){Hn(le),ke&&(Bn(le,Ue),Bn(le,~Ue)),Yt.arraySet(le.pending_buf,le.window,me,Ue,le.pending),le.pending+=Ue}(pt,At,ue,!0)}ee._tr_init=function(pt){mt||(function(){var At,ue,we,le,me,Ue=new Array(lt+1);for(le=we=0;le<oe-1;le++)for(Ge[le]=we,At=0;At<1<<Ht[le];At++)Vt[we++]=le;for(Vt[we-1]=le,le=me=0;le<16;le++)for(Re[le]=me,At=0;At<1<<ne[le];At++)ze[me++]=le;for(me>>=7;le<Ct;le++)for(Re[le]=me<<7,At=0;At<1<<ne[le]-7;At++)ze[256+me++]=le;for(ue=0;ue<=lt;ue++)Ue[ue]=0;for(At=0;At<=143;)be[2*At+1]=8,At++,Ue[8]++;for(;At<=255;)be[2*At+1]=9,At++,Ue[9]++;for(;At<=279;)be[2*At+1]=7,At++,Ue[7]++;for(;At<=287;)be[2*At+1]=8,At++,Ue[8]++;for(Wn(be,Jt+1,Ue),At=0;At<Ct;At++)qt[2*At+1]=5,qt[2*At]=Mn(At,5);_e=new ve(be,Ht,zt+1,Jt,lt),Ne=new ve(qt,ne,0,Ct,lt),We=new ve(new Array(0),ae,0,et,ut)}(),mt=!0),pt.l_desc=new ie(pt.dyn_ltree,_e),pt.d_desc=new ie(pt.dyn_dtree,Ne),pt.bl_desc=new ie(pt.bl_tree,We),pt.bi_buf=0,pt.bi_valid=0,fi(pt)},ee._tr_stored_block=ft,ee._tr_flush_block=function(pt,At,ue,we){var le,me,Ue=0;0<pt.level?(pt.strm.data_type===2&&(pt.strm.data_type=function(ke){var Ie,rn=4093624447;for(Ie=0;Ie<=31;Ie++,rn>>>=1)if(1&rn&&ke.dyn_ltree[2*Ie]!==0)return It;if(ke.dyn_ltree[18]!==0||ke.dyn_ltree[20]!==0||ke.dyn_ltree[26]!==0)return jt;for(Ie=32;Ie<zt;Ie++)if(ke.dyn_ltree[2*Ie]!==0)return jt;return It}(pt)),ki(pt,pt.l_desc),ki(pt,pt.d_desc),Ue=function(ke){var Ie;for(Nt(ke,ke.dyn_ltree,ke.l_desc.max_code),Nt(ke,ke.dyn_dtree,ke.d_desc.max_code),ki(ke,ke.bl_desc),Ie=et-1;3<=Ie&&ke.bl_tree[2*de[Ie]+1]===0;Ie--);return ke.opt_len+=3*(Ie+1)+5+5+4,Ie}(pt),le=pt.opt_len+3+7>>>3,(me=pt.static_len+3+7>>>3)<=le&&(le=me)):le=me=ue+5,ue+4<=le&&At!==-1?ft(pt,At,ue,we):pt.strategy===4||me===le?(Ln(pt,2+(we?1:0),3),Fi(pt,be,qt)):(Ln(pt,4+(we?1:0),3),function(ke,Ie,rn,Gn){var dn;for(Ln(ke,Ie-257,5),Ln(ke,rn-1,5),Ln(ke,Gn-4,4),dn=0;dn<Gn;dn++)Ln(ke,ke.bl_tree[2*de[dn]+1],3);Dt(ke,ke.dyn_ltree,Ie-1),Dt(ke,ke.dyn_dtree,rn-1)}(pt,pt.l_desc.max_code+1,pt.d_desc.max_code+1,Ue+1),Fi(pt,pt.dyn_ltree,pt.dyn_dtree)),fi(pt),we&&Hn(pt)},ee._tr_tally=function(pt,At,ue){return pt.pending_buf[pt.d_buf+2*pt.last_lit]=At>>>8&255,pt.pending_buf[pt.d_buf+2*pt.last_lit+1]=255&At,pt.pending_buf[pt.l_buf+pt.last_lit]=255&ue,pt.last_lit++,At===0?pt.dyn_ltree[2*ue]++:(pt.matches++,At--,pt.dyn_ltree[2*(Vt[ue]+zt+1)]++,pt.dyn_dtree[2*Se(At)]++),pt.last_lit===pt.lit_bufsize-1},ee._tr_align=function(pt){Ln(pt,2,3),Ye(pt,ct,be),function(At){At.bi_valid===16?(Bn(At,At.bi_buf),At.bi_buf=0,At.bi_valid=0):8<=At.bi_valid&&(At.pending_buf[At.pending++]=255&At.bi_buf,At.bi_buf>>=8,At.bi_valid-=8)}(pt)}},{"../utils/common":41}],53:[function(re,Be,ee){"use strict";Be.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(re,Be,ee){(function(Yt){(function(It,jt){"use strict";if(!It.setImmediate){var Xt,Pt,oe,zt,Jt=1,Ct={},et=!1,tt=It.document,lt=Object.getPrototypeOf&&Object.getPrototypeOf(It);lt=lt&&lt.setTimeout?lt:It,Xt={}.toString.call(It.process)==="[object process]"?function(wt){ce.nextTick(function(){ut(wt)})}:function(){if(It.postMessage&&!It.importScripts){var wt=!0,Mt=It.onmessage;return It.onmessage=function(){wt=!1},It.postMessage("","*"),It.onmessage=Mt,wt}}()?(zt="setImmediate$"+Math.random()+"$",It.addEventListener?It.addEventListener("message",ct,!1):It.attachEvent("onmessage",ct),function(wt){It.postMessage(zt+wt,"*")}):It.MessageChannel?((oe=new MessageChannel).port1.onmessage=function(wt){ut(wt.data)},function(wt){oe.port2.postMessage(wt)}):tt&&"onreadystatechange"in tt.createElement("script")?(Pt=tt.documentElement,function(wt){var Mt=tt.createElement("script");Mt.onreadystatechange=function(){ut(wt),Mt.onreadystatechange=null,Pt.removeChild(Mt),Mt=null},Pt.appendChild(Mt)}):function(wt){setTimeout(ut,0,wt)},lt.setImmediate=function(wt){typeof wt!="function"&&(wt=new Function(""+wt));for(var Mt=new Array(arguments.length-1),Ot=0;Ot<Mt.length;Ot++)Mt[Ot]=arguments[Ot+1];var Ht={callback:wt,args:Mt};return Ct[Jt]=Ht,Xt(Jt),Jt++},lt.clearImmediate=rt}function rt(wt){delete Ct[wt]}function ut(wt){if(et)setTimeout(ut,0,wt);else{var Mt=Ct[wt];if(Mt){et=!0;try{(function(Ot){var Ht=Ot.callback,ne=Ot.args;switch(ne.length){case 0:Ht();break;case 1:Ht(ne[0]);break;case 2:Ht(ne[0],ne[1]);break;case 3:Ht(ne[0],ne[1],ne[2]);break;default:Ht.apply(jt,ne)}})(Mt)}finally{rt(wt),et=!1}}}}function ct(wt){wt.source===It&&typeof wt.data=="string"&&wt.data.indexOf(zt)===0&&ut(+wt.data.slice(zt.length))}})(typeof self=="undefined"?Yt===void 0?this:Yt:self)}).call(this,typeof bt.g!="undefined"?bt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},2859:function(ui,wn,bt){"use strict";bt.d(wn,{hP:function(){return ki}});var Ft=function(Nt,Dt){return(Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,ft){mt.__proto__=ft}||function(mt,ft){for(var pt in ft)Object.prototype.hasOwnProperty.call(ft,pt)&&(mt[pt]=ft[pt])})(Nt,Dt)};function ce(Nt,Dt){function mt(){this.constructor=Nt}Ft(Nt,Dt),Nt.prototype=Dt===null?Object.create(Dt):(mt.prototype=Dt.prototype,new mt)}function re(Nt,Dt,mt,ft){return new(mt||(mt=Promise))(function(pt,At){function ue(me){try{le(ft.next(me))}catch(Ue){At(Ue)}}function we(me){try{le(ft.throw(me))}catch(Ue){At(Ue)}}function le(me){var Ue;me.done?pt(me.value):(Ue=me.value,Ue instanceof mt?Ue:new mt(function(ke){ke(Ue)})).then(ue,we)}le((ft=ft.apply(Nt,Dt||[])).next())})}function Be(Nt,Dt){var mt,ft,pt,At,ue={label:0,sent:function(){if(1&pt[0])throw pt[1];return pt[1]},trys:[],ops:[]};return At={next:we(0),throw:we(1),return:we(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function we(le){return function(me){return function(Ue){if(mt)throw new TypeError("Generator is already executing.");for(;ue;)try{if(mt=1,ft&&(pt=2&Ue[0]?ft.return:Ue[0]?ft.throw||((pt=ft.return)&&pt.call(ft),0):ft.next)&&!(pt=pt.call(ft,Ue[1])).done)return pt;switch(ft=0,pt&&(Ue=[2&Ue[0],pt.value]),Ue[0]){case 0:case 1:pt=Ue;break;case 4:return ue.label++,{value:Ue[1],done:!1};case 5:ue.label++,ft=Ue[1],Ue=[0];continue;case 7:Ue=ue.ops.pop(),ue.trys.pop();continue;default:if(pt=ue.trys,!((pt=pt.length>0&&pt[pt.length-1])||Ue[0]!==6&&Ue[0]!==2)){ue=0;continue}if(Ue[0]===3&&(!pt||Ue[1]>pt[0]&&Ue[1]<pt[3])){ue.label=Ue[1];break}if(Ue[0]===6&&ue.label<pt[1]){ue.label=pt[1],pt=Ue;break}if(pt&&ue.label<pt[2]){ue.label=pt[2],ue.ops.push(Ue);break}pt[2]&&ue.ops.pop(),ue.trys.pop();continue}Ue=Dt.call(Nt,ue)}catch(ke){Ue=[6,ke],ft=0}finally{mt=pt=0}if(5&Ue[0])throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}([le,me])}}}function ee(){for(var Nt=0,Dt=0,mt=arguments.length;Dt<mt;Dt++)Nt+=arguments[Dt].length;var ft=Array(Nt),pt=0;for(Dt=0;Dt<mt;Dt++)for(var At=arguments[Dt],ue=0,we=At.length;ue<we;ue++,pt++)ft[pt]=At[ue];return ft}var Yt=function(){function Nt(){}return Nt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Nt.setAttributes=function(Dt,mt){for(var ft=0,pt=mt;ft<pt.length;ft++){var At=pt[ft],ue=At[0],we=At[1];Dt.setAttribute(ue,we)}},Nt.createRect=function(Dt,mt,ft){var pt=document.createElementNS("http://www.w3.org/2000/svg","rect");return pt.setAttribute("width",Dt.toString()),pt.setAttribute("height",mt.toString()),ft&&Nt.setAttributes(pt,ft),pt},Nt.createLine=function(Dt,mt,ft,pt,At){var ue=document.createElementNS("http://www.w3.org/2000/svg","line");return ue.setAttribute("x1",Dt.toString()),ue.setAttribute("y1",mt.toString()),ue.setAttribute("x2",ft.toString()),ue.setAttribute("y2",pt.toString()),At&&Nt.setAttributes(ue,At),ue},Nt.createPolygon=function(Dt,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ft.setAttribute("points",Dt),mt&&Nt.setAttributes(ft,mt),ft},Nt.createCircle=function(Dt,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","circle");return ft.setAttribute("cx",(Dt/2).toString()),ft.setAttribute("cy",(Dt/2).toString()),ft.setAttribute("r",Dt.toString()),mt&&Nt.setAttributes(ft,mt),ft},Nt.createEllipse=function(Dt,mt,ft){var pt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pt.setAttribute("cx",(Dt/2).toString()),pt.setAttribute("cy",(mt/2).toString()),pt.setAttribute("rx",(Dt/2).toString()),pt.setAttribute("ry",(mt/2).toString()),ft&&Nt.setAttributes(pt,ft),pt},Nt.createGroup=function(Dt){var mt=document.createElementNS("http://www.w3.org/2000/svg","g");return Dt&&Nt.setAttributes(mt,Dt),mt},Nt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Nt.createMarker=function(Dt,mt,ft,pt,At,ue,we){var le=document.createElementNS("http://www.w3.org/2000/svg","marker");return Nt.setAttributes(le,[["id",Dt],["orient",mt],["markerWidth",ft.toString()],["markerHeight",pt.toString()],["refX",At.toString()],["refY",ue.toString()]]),le.appendChild(we),le},Nt.createText=function(Dt){var mt=document.createElementNS("http://www.w3.org/2000/svg","text");return mt.setAttribute("x","0"),mt.setAttribute("y","0"),Dt&&Nt.setAttributes(mt,Dt),mt},Nt.createTSpan=function(Dt,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ft.textContent=Dt,mt&&Nt.setAttributes(ft,mt),ft},Nt.createImage=function(Dt){var mt=document.createElementNS("http://www.w3.org/2000/svg","image");return Dt&&Nt.setAttributes(mt,Dt),mt},Nt.createPoint=function(Dt,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ft.x=Dt,ft.y=mt,ft},Nt.createPath=function(Dt,mt){var ft=document.createElementNS("http://www.w3.org/2000/svg","path");return ft.setAttribute("d",Dt),mt&&Nt.setAttributes(ft,mt),ft},Nt}(),It=function(){function Nt(){}return Nt.addKey=function(Dt){Nt.key=Dt},Object.defineProperty(Nt,"isLicensed",{get:function(){return!!Nt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Nt.key)},enumerable:!1,configurable:!0}),Nt}(),jt=function(){function Nt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Nt.prototype.rasterize=function(Dt,mt,ft){var pt=this;return new Promise(function(At){var ue=ft!==void 0?ft:document.createElement("canvas");Dt===null&&(pt.markersOnly=!0,pt.naturalSize=!1);var we=document.createElementNS("http://www.w3.org/2000/svg","svg");we.setAttribute("xmlns","http://www.w3.org/2000/svg"),we.setAttribute("width",mt.width.baseVal.valueAsString),we.setAttribute("height",mt.height.baseVal.valueAsString),we.setAttribute("viewBox","0 0 "+mt.viewBox.baseVal.width.toString()+" "+mt.viewBox.baseVal.height.toString()),we.innerHTML=mt.innerHTML,pt.naturalSize===!0?(we.width.baseVal.value=Dt.naturalWidth,we.height.baseVal.value=Dt.naturalHeight):pt.width!==void 0&&pt.height!==void 0&&(we.width.baseVal.value=pt.width,we.height.baseVal.value=pt.height),ue.width=we.width.baseVal.value,ue.height=we.height.baseVal.value;var le=we.outerHTML,me=ue.getContext("2d");pt.markersOnly!==!0&&me.drawImage(Dt,0,0,ue.width,ue.height);var Ue=window.URL,ke=new Image(ue.width,ue.height);ke.setAttribute("crossOrigin","anonymous");var Ie=new Blob([le],{type:"image/svg+xml"}),rn=Ue.createObjectURL(Ie);ke.onload=function(){me.drawImage(ke,0,0),Ue.revokeObjectURL(rn);var Gn=ue.toDataURL(pt.imageType,pt.imageQuality);At(Gn)},ke.src=rn})},Nt}(),Xt=function(){},Pt=function(){function Nt(Dt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Dt+"_"}return Object.defineProperty(Nt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.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(Nt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Nt.prototype.addClass=function(Dt){return this.styleSheet===void 0&&this.addStyleSheet(),Dt.name=""+this.classNamePrefix+Dt.localName,this.classes.push(Dt),this.styleSheet.sheet.insertRule("."+Dt.name+" {"+Dt.style+"}",this.styleSheet.sheet.cssRules.length),Dt},Nt.prototype.addRule=function(Dt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Dt),this.styleSheet.sheet.insertRule(Dt.selector+" {"+Dt.style+"}",this.styleSheet.sheet.cssRules.length)},Nt.prototype.addStyleSheet=function(){var Dt;this.styleSheet=document.createElement("style"),((Dt=this.styleSheetRoot)!==null&&Dt!==void 0?Dt:document.head).appendChild(this.styleSheet),this.addRule(new oe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new oe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new oe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new zt("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new zt("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Nt.prototype.removeStyleSheet=function(){var Dt;this.styleSheet&&(((Dt=this.styleSheetRoot)!==null&&Dt!==void 0?Dt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Nt}(),oe=function(Nt,Dt){this.selector=Nt,this.style=Dt},zt=function(Nt,Dt){this.localName=Nt,this.style=Dt},Jt=function(){function Nt(Dt,mt,ft,pt,At){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Dt,this.displayMode=mt,this.markerItems=ft,this.uiStyleSettings=pt,this.styles=At,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Nt.prototype.show=function(Dt){var mt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Dt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ft=document.createElement("div");ft.className=this.toolbarBlockStyleClass.name,ft.style.whiteSpace="nowrap",this.uiContainer.appendChild(ft),this.addActionButton(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(ft,'<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(At){var ue=document.createElement("div");ue.className=""+mt.toolbarButtonStyleClass.name,ue.setAttribute("data-type-name",At.typeName),ue.innerHTML=At.icon,ue.addEventListener("click",function(){mt.markerToolbarButtonClicked(ue,At)}),mt.buttons.push(ue),mt.markerButtons.push(ue)}),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 pt=document.createElement("div");pt.className=this.toolbarBlockStyleClass.name,pt.style.whiteSpace="nowrap",pt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(pt),this.addActionButton(pt,'<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(pt,'<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()},Nt.prototype.addButtonClickListener=function(Dt){this.buttonClickListeners.push(Dt)},Nt.prototype.removeButtonClickListener=function(Dt){this.buttonClickListeners.indexOf(Dt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Dt),1)},Nt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Nt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Dt=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<Dt||mt===Dt&&this.markerButtons.length-1===Dt?this.markerButtonBlock.appendChild(this.markerButtons[mt]):(mt===Dt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[mt]))}},Nt.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")},Nt.prototype.resetButtonStyles=function(){var Dt=this;this.buttons.forEach(function(mt){mt.className=mt.className.replace(Dt.uiStyleSettings.toolbarButtonStyleColorsClassName?Dt.uiStyleSettings.toolbarButtonStyleColorsClassName:Dt.toolbarButtonStyleColorsClass.name,"").trim(),mt.className=mt.className.replace(Dt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Dt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Dt.toolbarActiveButtonStyleColorsClass.name,"").trim(),mt.className+=" "+(Dt.uiStyleSettings.toolbarButtonStyleColorsClassName?Dt.uiStyleSettings.toolbarButtonStyleColorsClassName:Dt.toolbarButtonStyleColorsClass.name)})},Nt.prototype.addActionButton=function(Dt,mt,ft){var pt=this,At=document.createElement("div");switch(At.className=""+this.toolbarButtonStyleClass.name,At.innerHTML=mt,At.setAttribute("data-action",ft),At.addEventListener("click",function(){pt.actionToolbarButtonClicked(At,ft)}),ft){case"select":At.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":At.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":At.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":At.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":At.style.fill=this.uiStyleSettings.closeButtonColor}Dt.appendChild(At),this.buttons.push(At)},Nt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new zt("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 zt("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new zt("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new zt("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 zt("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Dt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new zt("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Dt)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Dt)+`px;
padding: `+Dt+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new zt("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new zt("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new oe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new oe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Nt.prototype.markerToolbarButtonClicked=function(Dt,mt){this.setActiveButton(Dt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ft){return ft("marker",mt)}),this.markerButtonOverflowBlock.style.display="none"},Nt.prototype.actionToolbarButtonClicked=function(Dt,mt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ft){return ft("action",mt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Nt.prototype.setActiveButton=function(Dt){this.resetButtonStyles(),Dt.className=Dt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Dt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Nt.prototype.setActiveMarkerButton=function(Dt){var mt=this.markerButtons.find(function(ft){return ft.getAttribute("data-type-name")===Dt});mt&&this.setActiveButton(mt)},Nt.prototype.setCurrentMarker=function(Dt){var mt=this;this.currentMarker=Dt,this.buttons.filter(function(ft){return/delete|notes/.test(ft.getAttribute("data-action"))}).forEach(function(ft){mt.currentMarker===void 0?(ft.style.fillOpacity="0.4",ft.style.pointerEvents="none"):(ft.style.fillOpacity="1",ft.style.pointerEvents="all")})},Nt}(),Ct=function(){function Nt(Dt,mt,ft,pt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Dt,this.displayMode=mt,this.uiStyleSettings=ft,this.styles=pt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Nt.prototype.addStyles=function(){var Dt;this.toolboxStyleClass=this.styles.addClass(new zt("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 zt("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var mt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new zt("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new zt("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new zt("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 zt("toolbox-panel-row_colors",`
background-color: `+((Dt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Dt!==void 0?Dt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new zt("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 zt("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new zt("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new oe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new oe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Nt.prototype.show=function(Dt){var mt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Dt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Nt.prototype.setPanelButtons=function(Dt){var mt,ft,pt=this;this.panels=Dt,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+" "+((ft=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ft!==void 0?ft:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(At){var ue;At.uiStyleSettings=pt.uiStyleSettings;var we=document.createElement("div");we.className=pt.toolboxButtonStyleClass.name+" "+((ue=pt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ue!==void 0?ue:pt.toolboxButtonStyleColorsClass.name),we.innerHTML=At.icon,we.title=At.title,we.addEventListener("click",function(){pt.panelButtonClick(At)}),pt.panelButtons.push(we),pt.buttonRow.appendChild(we)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Nt.prototype.panelButtonClick=function(Dt){var mt=this,ft=-1;if(Dt!==this.activePanel){ft=this.panels.indexOf(Dt),this.panelRow.innerHTML="";var pt=Dt.getUi();pt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(pt),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=Dt}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(At,ue){var we,le;At.className=mt.toolboxButtonStyleClass.name+" "+(ue===ft?""+((we=mt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&we!==void 0?we:mt.toolboxActiveButtonStyleColorsClass.name):""+((le=mt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:mt.toolboxButtonStyleColorsClass.name))})},Nt}(),et=function(Nt,Dt){this.title=Nt,this.icon=Dt},tt=function(Nt){function Dt(mt,ft,pt,At){var ue=Nt.call(this,mt,At||'<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 ue.colors=[],ue.addTransparent=!1,ue.colorBoxes=[],ue.colors=ft,ue.currentColor=pt,ue.setCurrentColor=ue.setCurrentColor.bind(ue),ue.getColorBox=ue.getColorBox.bind(ue),ue}return ce(Dt,Nt),Dt.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.overflow="hidden",ft.style.whiteSpace="nowrap",this.colors.forEach(function(pt){var At=mt.getColorBox(pt);ft.appendChild(At),mt.colorBoxes.push(At)}),ft},Dt.prototype.getColorBox=function(mt){var ft=this,pt=this.uiStyleSettings.toolbarHeight/4,At=this.uiStyleSettings.toolbarHeight-pt,ue=document.createElement("div");ue.style.display="inline-block",ue.style.boxSizing="content-box",ue.style.width=At-2+"px",ue.style.height=At-2+"px",ue.style.padding="1px",ue.style.marginRight="2px",ue.style.marginBottom="2px",ue.style.borderWidth="2px",ue.style.borderStyle="solid",ue.style.borderRadius=(At+2)/2+"px",ue.style.borderColor=mt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ue.addEventListener("click",function(){ft.setCurrentColor(mt,ue)});var we=document.createElement("div");return we.style.display="inline-block",we.style.width=At-2+"px",we.style.height=At-2+"px",we.style.backgroundColor=mt,we.style.borderRadius=At/2+"px",mt==="transparent"&&(we.style.fill=this.uiStyleSettings.toolboxAccentColor,we.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ue.appendChild(we),ue},Dt.prototype.setCurrentColor=function(mt,ft){var pt=this;this.currentColor=mt,this.colorBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(mt)},Dt}(et),lt=function(){function Nt(Dt,mt,ft){this._state="new",this._isSelected=!1,this._container=Dt,this._overlayContainer=mt,this.globalSettings=ft,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Nt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Nt.prototype.ownsTarget=function(Dt){return!1},Object.defineProperty(Nt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Nt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Nt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Nt.prototype.pointerDown=function(Dt,mt){},Nt.prototype.dblClick=function(Dt,mt){},Nt.prototype.manipulate=function(Dt){},Nt.prototype.pointerUp=function(Dt){this.stateChanged()},Nt.prototype.dispose=function(){},Nt.prototype.addMarkerVisualToContainer=function(Dt){this.container.childNodes.length>0?this.container.insertBefore(Dt,this.container.childNodes[0]):this.container.appendChild(Dt)},Nt.prototype.getState=function(){return{typeName:Nt.typeName,state:this.state,notes:this.notes}},Nt.prototype.restoreState=function(Dt){this._state=Dt.state,this.notes=Dt.notes},Nt.prototype.scale=function(Dt,mt){},Nt.prototype.colorChanged=function(Dt){this.onColorChanged&&this.onColorChanged(Dt),this.stateChanged()},Nt.prototype.fillColorChanged=function(Dt){this.onFillColorChanged&&this.onFillColorChanged(Dt),this.stateChanged()},Nt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Dt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Dt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Dt)&&this.onStateChanged(this)}},Nt.typeName="MarkerBase",Nt}(),rt=function(){function Nt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Nt.prototype.findGripByVisual=function(Dt){return this.topLeft.ownsTarget(Dt)?this.topLeft:this.topCenter.ownsTarget(Dt)?this.topCenter:this.topRight.ownsTarget(Dt)?this.topRight:this.centerLeft.ownsTarget(Dt)?this.centerLeft:this.centerRight.ownsTarget(Dt)?this.centerRight:this.bottomLeft.ownsTarget(Dt)?this.bottomLeft:this.bottomCenter.ownsTarget(Dt)?this.bottomCenter:this.bottomRight.ownsTarget(Dt)?this.bottomRight:void 0},Nt}(),ut=function(){function Nt(){this.GRIP_SIZE=10,this.visual=Yt.createGroup(),this.visual.appendChild(Yt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Yt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Nt.prototype.ownsTarget=function(Dt){return Dt===this.visual||Dt===this.visual.childNodes[0]||Dt===this.visual.childNodes[1]},Nt}(),ct=function(){function Nt(){}return Nt.toITransformMatrix=function(Dt){return{a:Dt.a,b:Dt.b,c:Dt.c,d:Dt.d,e:Dt.e,f:Dt.f}},Nt.toSVGMatrix=function(Dt,mt){return Dt.a=mt.a,Dt.b=mt.b,Dt.c=mt.c,Dt.d=mt.d,Dt.e=mt.e,Dt.f=mt.f,Dt},Nt}(),wt=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.left=0,At.top=0,At.width=0,At.height=0,At.defaultSize={x:50,y:20},At.offsetX=0,At.offsetY=0,At.rotationAngle=0,At.CB_DISTANCE=10,At._suppressMarkerCreateEvent=!1,At.container.transform.baseVal.appendItem(Yt.createTransform()),At.setupControlBox(),At}return ce(Dt,Nt),Object.defineProperty(Dt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"visual",{get:function(){return this._visual},set:function(mt){this._visual=mt;var ft=Yt.createTransform();this._visual.transform.baseVal.appendItem(ft)},enumerable:!1,configurable:!0}),Dt.prototype.ownsTarget=function(mt){return!!Nt.prototype.ownsTarget.call(this,mt)||!!(this.controlGrips.findGripByVisual(mt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(mt))},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),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 pt=this.unrotatePoint(mt);if(this.manipulationStartX=pt.x,this.manipulationStartY=pt.y,this.offsetX=pt.x-this.left,this.offsetY=pt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ft),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ft)){this.activeGrip=this.rotatorGrip;var At=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=At.x-this.width/2,this.top=At.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ue=this.container.transform.baseVal.getItem(0);ue.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ue,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Dt.prototype.pointerUp=function(mt){var ft=this.state;Nt.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",ft==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Dt.prototype.moveVisual=function(mt){this.visual.style.transform="translate("+mt.x+"px, "+mt.y+"px)"},Dt.prototype.manipulate=function(mt){var ft=this.unrotatePoint(mt);this.state==="creating"?this.resize(mt):this.state==="move"?(this.left=this.manipulationStartLeft+(ft.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ft.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ft):this.state==="rotate"&&this.rotate(mt)},Dt.prototype.resize=function(mt){var ft=this.manipulationStartLeft,pt=this.manipulationStartWidth,At=this.manipulationStartTop,ue=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ft=this.manipulationStartLeft+mt.x-this.manipulationStartX,pt=this.manipulationStartWidth+this.manipulationStartLeft-ft;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:pt=this.manipulationStartWidth+mt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:At=this.manipulationStartTop+mt.y-this.manipulationStartY,ue=this.manipulationStartHeight+this.manipulationStartTop-At;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ue=this.manipulationStartHeight+mt.y-this.manipulationStartY}pt>=0?(this.left=ft,this.width=pt):(this.left=ft+pt,this.width=-pt),ue>=0?(this.top=At,this.height=ue):(this.top=At+ue,this.height=-ue),this.setSize()},Dt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Dt.prototype.rotate=function(mt){if(Math.abs(mt.x-this.centerX)>.1){var ft=Math.sign(mt.x-this.centerX);this.rotationAngle=180*Math.atan((mt.y-this.centerY)/(mt.x-this.centerX))/Math.PI+90*ft,this.applyRotation()}},Dt.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)},Dt.prototype.rotatePoint=function(mt){if(this.rotationAngle===0)return mt;var ft=this.container.getCTM(),pt=Yt.createPoint(mt.x,mt.y);return{x:(pt=pt.matrixTransform(ft)).x,y:pt.y}},Dt.prototype.unrotatePoint=function(mt){if(this.rotationAngle===0)return mt;var ft=this.container.getCTM();ft=ft.inverse();var pt=Yt.createPoint(mt.x,mt.y);return{x:(pt=pt.matrixTransform(ft)).x,y:pt.y}},Dt.prototype.select=function(){Nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Dt.prototype.deselect=function(){Nt.prototype.deselect.call(this),this.controlBox.style.display="none"},Dt.prototype.setupControlBox=function(){this.controlBox=Yt.createGroup();var mt=Yt.createTransform();mt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(mt),this.container.appendChild(this.controlBox),this.controlRect=Yt.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=Yt.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 rt,this.addControlGrips(),this.controlBox.style.display="none"},Dt.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()},Dt.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()},Dt.prototype.createGrip=function(){var mt=new ut;return mt.visual.transform.baseVal.appendItem(Yt.createTransform()),this.controlBox.appendChild(mt.visual),mt},Dt.prototype.positionGrips=function(){var mt=this.controlGrips.topLeft.GRIP_SIZE,ft=-mt/2,pt=ft,At=(this.width+this.CB_DISTANCE)/2-mt/2,ue=(this.height+this.CB_DISTANCE)/2-mt/2,we=this.height+this.CB_DISTANCE-mt/2,le=this.width+this.CB_DISTANCE-mt/2;this.positionGrip(this.controlGrips.topLeft.visual,ft,pt),this.positionGrip(this.controlGrips.topCenter.visual,At,pt),this.positionGrip(this.controlGrips.topRight.visual,le,pt),this.positionGrip(this.controlGrips.centerLeft.visual,ft,ue),this.positionGrip(this.controlGrips.centerRight.visual,le,ue),this.positionGrip(this.controlGrips.bottomLeft.visual,ft,we),this.positionGrip(this.controlGrips.bottomCenter.visual,At,we),this.positionGrip(this.controlGrips.bottomRight.visual,le,we),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,At,pt-3*this.CB_DISTANCE)},Dt.prototype.positionGrip=function(mt,ft,pt){var At=mt.transform.baseVal.getItem(0);At.setTranslate(ft,pt),mt.transform.baseVal.replaceItem(At,0)},Dt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Dt.prototype.showControlBox=function(){this.controlBox.style.display=""},Dt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Nt.prototype.getState.call(this))},Dt.prototype.restoreState=function(mt){Nt.prototype.restoreState.call(this,mt);var ft=mt;this.left=ft.left,this.top=ft.top,this.width=ft.width,this.height=ft.height,this.rotationAngle=ft.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ft.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ft.containerTransformMatrix))},Dt.prototype.scale=function(mt,ft){Nt.prototype.scale.call(this,mt,ft);var pt=this.rotatePoint({x:this.left,y:this.top}),At=this.unrotatePoint({x:pt.x*mt,y:pt.y*ft});this.left=At.x,this.top=At.y,this.width=this.width*mt,this.height=this.height*ft,this.adjustControlBox()},Dt}(lt),Mt=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return!(!Nt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},Dt.prototype.createVisual=function(){this.visual=Yt.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)},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Dt.prototype.manipulate=function(mt){Nt.prototype.manipulate.call(this,mt)},Dt.prototype.resize=function(mt){Nt.prototype.resize.call(this,mt),this.setSize()},Dt.prototype.setSize=function(){Nt.prototype.setSize.call(this),Yt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Dt.prototype.pointerUp=function(mt){Nt.prototype.pointerUp.call(this,mt),this.setSize()},Dt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&Yt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Dt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&Yt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Dt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&Yt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Dt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&Yt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Dt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Nt.prototype.getState.call(this))},Dt.prototype.restoreState=function(mt){var ft=mt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.opacity=ft.opacity,this.createVisual(),Nt.prototype.restoreState.call(this,mt),this.setSize()},Dt.prototype.scale=function(mt,ft){Nt.prototype.scale.call(this,mt,ft),this.setSize()},Dt.title="Rectangle marker",Dt}(wt),Ot=function(Nt){function Dt(mt,ft,pt,At){var ue=Nt.call(this,mt,At||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ue.widths=[],ue.widthBoxes=[],ue.widths=ft,ue.currentWidth=pt,ue.setCurrentWidth=ue.setCurrentWidth.bind(ue),ue}return ce(Dt,Nt),Dt.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",this.widths.forEach(function(pt){var At=document.createElement("div");At.style.display="flex",At.style.flexGrow="2",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=pt===mt.currentWidth?mt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){mt.setCurrentWidth(pt,At)}),ft.appendChild(At);var ue=document.createElement("div");ue.innerText=pt.toString(),ue.style.marginRight="5px",At.appendChild(ue);var we=document.createElement("div");we.style.minHeight="20px",we.style.flexGrow="2",we.style.display="flex",we.style.alignItems="center";var le=document.createElement("hr");le.style.minWidth="20px",le.style.border="0px",le.style.borderTop=pt+"px solid "+mt.uiStyleSettings.toolboxColor,le.style.flexGrow="2",we.appendChild(le),At.appendChild(we),mt.widthBoxes.push(At)}),ft},Dt.prototype.setCurrentWidth=function(mt,ft){var pt=this;this.currentWidth=mt,this.widthBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Dt}(et),Ht=function(Nt){function Dt(mt,ft,pt,At){var ue=Nt.call(this,mt,At||'<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 ue.styles=[],ue.styleBoxes=[],ue.styles=ft,ue.currentStyle=pt,ue.setCurrentStyle=ue.setCurrentStyle.bind(ue),ue}return ce(Dt,Nt),Dt.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",this.styles.forEach(function(pt){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/mt.styles.length-5+"%",At.style.borderColor=pt===mt.currentStyle?mt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){mt.setCurrentStyle(pt,At)}),ft.appendChild(At);var ue=document.createElement("div");ue.style.minHeight="20px",ue.style.flexGrow="2",ue.style.overflow="hidden";var we=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+mt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(pt!==""?'stroke-dasharray="'+pt+'"':"")+` />
</svg>`;ue.innerHTML=we,At.appendChild(ue),mt.styleBoxes.push(At)}),ft},Dt.prototype.setCurrentStyle=function(mt,ft){var pt=this;this.currentStyle=mt,this.styleBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Dt}(et),ne=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",pt.defaultColorSet,pt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ot("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Ht("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Dt,Nt),Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Nt.prototype.getState.call(this);return mt.typeName=Dt.typeName,mt},Dt.typeName="FrameMarker",Dt.title="Frame marker",Dt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Dt}(Mt),ae=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"},de=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.x1=0,At.y1=0,At.x2=0,At.y2=0,At.defaultLength=50,At.manipulationStartX=0,At.manipulationStartY=0,At.manipulationStartX1=0,At.manipulationStartY1=0,At.manipulationStartX2=0,At.manipulationStartY2=0,At.setupControlBox(),At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return!!Nt.prototype.ownsTarget.call(this,mt)||!(!this.grip1.ownsTarget(mt)&&!this.grip2.ownsTarget(mt))},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),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(ft)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ft)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Dt.prototype.pointerUp=function(mt){var ft=this.state;Nt.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",ft==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Dt.prototype.adjustVisual=function(){},Dt.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)},Dt.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()},Dt.prototype.select=function(){Nt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Dt.prototype.deselect=function(){Nt.prototype.deselect.call(this),this.controlBox.style.display="none"},Dt.prototype.setupControlBox=function(){this.controlBox=Yt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Dt.prototype.adjustControlBox=function(){this.positionGrips()},Dt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Dt.prototype.createGrip=function(){var mt=new ut;return mt.visual.transform.baseVal.appendItem(Yt.createTransform()),this.controlBox.appendChild(mt.visual),mt},Dt.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)},Dt.prototype.positionGrip=function(mt,ft,pt){var At=mt.transform.baseVal.getItem(0);At.setTranslate(ft,pt),mt.transform.baseVal.replaceItem(At,0)},Dt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Nt.prototype.getState.call(this))},Dt.prototype.restoreState=function(mt){Nt.prototype.restoreState.call(this,mt);var ft=mt;this.x1=ft.x1,this.y1=ft.y1,this.x2=ft.x2,this.y2=ft.y2},Dt.prototype.scale=function(mt,ft){Nt.prototype.scale.call(this,mt,ft),this.x1=this.x1*mt,this.y1=this.y1*ft,this.x2=this.x2*mt,this.y2=this.y2*ft,this.adjustVisual(),this.adjustControlBox()},Dt}(lt),be=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",pt.defaultColorSet,pt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ot("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Ht("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return!(!Nt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorLine&&mt!==this.visibleLine)},Dt.prototype.createVisual=function(){this.visual=Yt.createGroup(),this.selectorLine=Yt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Yt.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)},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Dt.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()),Yt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Yt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Yt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Dt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},Dt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},Dt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Nt.prototype.getState.call(this));return mt.typeName=Dt.typeName,mt},Dt.prototype.restoreState=function(mt){Nt.prototype.restoreState.call(this,mt);var ft=mt;this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.createVisual(),this.adjustVisual()},Dt.typeName="LineMarker",Dt.title="Line marker",Dt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Dt}(de),qt=function(Nt){function Dt(mt,ft,pt,At){var ue=Nt.call(this,mt,At||'<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 ue.fonts=[],ue.fontBoxes=[],ue.fonts=ft,ue.currentFont=pt,ue.setCurrentFont=ue.setCurrentFont.bind(ue),ue}return ce(Dt,Nt),Dt.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.overflow="hidden",ft.style.flexGrow="2",this.fonts.forEach(function(pt){var At=document.createElement("div");At.style.display="inline-block",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.overflow="hidden",At.style.maxWidth=100/mt.fonts.length-5+"%",At.style.borderColor=pt===mt.currentFont?mt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){mt.setCurrentFont(pt,At)}),ft.appendChild(At);var ue=document.createElement("div");ue.style.display="flex",ue.style.minHeight="20px",ue.style.flexGrow="2",ue.style.fontFamily=pt,ue.style.overflow="hidden";var we=document.createElement("div");we.style.whiteSpace="nowrap",we.style.overflow="hidden",we.style.textOverflow="ellipsis",we.innerHTML="The quick brown fox jumps over the lazy dog",ue.appendChild(we),At.appendChild(ue),mt.fontBoxes.push(At)}),ft},Dt.prototype.setCurrentFont=function(mt,ft){var pt=this;this.currentFont=mt,this.fontBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Dt}(et),ze=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.color="transparent",At.padding=5,At.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",At.text=At.DEFAULT_TEXT,At.isMoved=!1,At.color=pt.defaultColor,At.fontFamily=pt.defaultFontFamily,At.defaultSize={x:100,y:30},At.setColor=At.setColor.bind(At),At.setFont=At.setFont.bind(At),At.renderText=At.renderText.bind(At),At.sizeText=At.sizeText.bind(At),At.textEditDivClicked=At.textEditDivClicked.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.setSize=At.setSize.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.colorPanel=new tt("Color",pt.defaultColorSet,pt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.fontFamilyPanel=new qt("Font",pt.defaultFontFamilies,pt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){if(Nt.prototype.ownsTarget.call(this,mt)||mt===this.visual||mt===this.textElement||mt===this.bgRectangle)return!0;var ft=!1;return this.textElement.childNodes.forEach(function(pt){pt===mt&&(ft=!0)}),ft},Dt.prototype.createVisual=function(){this.visual=Yt.createGroup(),this.bgRectangle=Yt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Yt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Yt.createTransform()),this.textElement.transform.baseVal.appendItem(Yt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Dt.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(ft){mt.textElement.appendChild(Yt.createTSpan(ft.trim()===""?" ":ft.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Dt.prototype.getTextScale=function(){var mt=this.textElement.getBBox(),ft=1;if(mt.width>0&&mt.height>0){var pt=(1*this.width-this.width*this.padding*2/100)/mt.width,At=(1*this.height-this.height*this.padding*2/100)/mt.height;ft=Math.min(pt,At)}return ft},Dt.prototype.getTextPosition=function(mt){var ft=this.textElement.getBBox(),pt=0,At=0;return ft.width>0&&ft.height>0&&(pt=(this.width-ft.width*mt)/2,At=this.height/2-ft.height*mt/2),{x:pt,y:At}},Dt.prototype.sizeText=function(){var mt=this.textElement.getBBox(),ft=this.getTextScale(),pt=this.getTextPosition(ft);pt.y-=mt.y*ft,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+pt.x+"px, "+pt.y+"px) scale("+ft+", "+ft+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(pt.x,pt.y),this.textElement.transform.baseVal.getItem(1).setScale(ft,ft))},Dt.prototype.manipulate=function(mt){Nt.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)},Dt.prototype.resize=function(mt){Nt.prototype.resize.call(this,mt),this.isMoved=!0,this.setSize(),this.sizeText()},Dt.prototype.setSize=function(){Nt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Yt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Yt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Dt.prototype.pointerUp=function(mt){var ft=this.state;ft==="creating"&&(this._suppressMarkerCreateEvent=!0),Nt.prototype.pointerUp.call(this,mt),this.setSize(),(ft==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Dt.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(ft){ft.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ft=Number.parseFloat(mt.textEditor.style.fontSize);mt.textEditor.clientWidth>=Number.parseInt(mt.textEditor.style.maxWidth)&&ft>.9;)ft-=.1,mt.textEditor.style.fontSize=Math.max(ft,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ft){ft.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ft){if(ft.clipboardData){var pt=ft.clipboardData.getData("text"),At=window.getSelection();if(!At.rangeCount)return!1;At.deleteFromDocument(),At.getRangeAt(0).insertNode(document.createTextNode(pt)),ft.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")},Dt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var mt=this.getTextScale(),ft=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),pt=this.textElement.getBBox(),At={x:pt.width*mt,y:pt.height*mt};ft.x-=At.x/2,ft.y-=At.y/2,this.textEditor.style.top=ft.y+"px",this.textEditor.style.left=ft.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ft.x+"px",this.textEditor.style.fontSize=Math.max(16*mt,12)+"px",this.textElement.style.display="none"}},Dt.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()},Dt.prototype.select=function(){Nt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Dt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Nt.prototype.deselect.call(this)},Dt.prototype.dblClick=function(mt,ft){Nt.prototype.dblClick.call(this,mt,ft),this.showTextEditor()},Dt.prototype.setColor=function(mt){this.textElement&&Yt.setAttributes(this.textElement,[["fill",mt]]),this.color=mt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(mt)},Dt.prototype.setFont=function(mt){this.textElement&&Yt.setAttributes(this.textElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Dt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Dt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Nt.prototype.getState.call(this));return mt.typeName=Dt.typeName,mt},Dt.prototype.restoreState=function(mt){var ft=mt;this.color=ft.color,this.fontFamily=ft.fontFamily,this.padding=ft.padding,this.text=ft.text,this.createVisual(),Nt.prototype.restoreState.call(this,mt),this.setSize()},Dt.prototype.scale=function(mt,ft){Nt.prototype.scale.call(this,mt,ft),this.setSize(),this.sizeText(),this.positionTextEditor()},Dt.typeName="TextMarker",Dt.title="Text marker",Dt.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>',Dt}(wt),Vt=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.color="transparent",At.lineWidth=3,At.drawing=!1,At.pixelRatio=1,At.color=pt.defaultColor,At.lineWidth=pt.defaultStrokeWidth,At.pixelRatio=pt.freehandPixelRatio,At.setColor=At.setColor.bind(At),At.addCanvas=At.addCanvas.bind(At),At.finishCreation=At.finishCreation.bind(At),At.setLineWidth=At.setLineWidth.bind(At),At.colorPanel=new tt("Color",pt.defaultColorSet,pt.defaultColor),At.colorPanel.onColorChanged=At.setColor,At.lineWidthPanel=new Ot("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.lineWidthPanel.onWidthChanged=At.setLineWidth,At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return!(!Nt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.drawingImage)},Dt.prototype.createVisual=function(){this.visual=Yt.createGroup(),this.drawingImage=Yt.createImage(),this.visual.appendChild(this.drawingImage);var mt=Yt.createTransform();this.visual.transform.baseVal.appendItem(mt),this.addMarkerVisualToContainer(this.visual)},Dt.prototype.pointerDown=function(mt,ft){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):Nt.prototype.pointerDown.call(this,mt,ft)},Dt.prototype.manipulate=function(mt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(mt.x,mt.y),this.canvasContext.stroke()):Nt.prototype.manipulate.call(this,mt)},Dt.prototype.resize=function(mt){Nt.prototype.resize.call(this,mt),Yt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Yt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Dt.prototype.pointerUp=function(mt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Nt.prototype.pointerUp.call(this,mt)},Dt.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)},Dt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Nt.prototype.select.call(this)},Dt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Nt.prototype.deselect.call(this)},Dt.prototype.finishCreation=function(){for(var mt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ft=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],pt=ft[0],At=ft[1],ue=ft[2],we=ft[3],le=!1,me=0;me<this.canvasElement.height;me++)for(var Ue=0;Ue<this.canvasElement.width;Ue++)mt.data[me*this.canvasElement.width*4+4*Ue+3]>0&&(le=!0,me<At&&(At=me),Ue<pt&&(pt=Ue),me>we&&(we=me),Ue>ue&&(ue=Ue));if(le){this.left=pt/this.pixelRatio,this.top=At/this.pixelRatio,this.width=(ue-pt)/this.pixelRatio,this.height=(we-At)/this.pixelRatio;var ke=document.createElement("canvas");ke.width=ue-pt,ke.height=we-At,ke.getContext("2d").putImageData(this.canvasContext.getImageData(pt,At,ue-pt,we-At),0,0),this.drawingImgUrl=ke.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Dt.prototype.setDrawingImage=function(){Yt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Yt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Dt.prototype.setColor=function(mt){this.color=mt,this.colorChanged(mt)},Dt.prototype.setLineWidth=function(mt){this.lineWidth=mt},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Object.assign({drawingImgUrl:this.drawingImgUrl},Nt.prototype.getState.call(this));return mt.typeName=Dt.typeName,mt},Dt.prototype.restoreState=function(mt){this.createVisual(),Nt.prototype.restoreState.call(this,mt),this.drawingImgUrl=mt.drawingImgUrl,this.setDrawingImage()},Dt.prototype.scale=function(mt,ft){Nt.prototype.scale.call(this,mt,ft),this.setDrawingImage()},Dt.typeName="FreehandMarker",Dt.title="Freehand marker",Dt.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>',Dt}(wt),Ge=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,pt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return At.typeBoxes=[],At.currentType=ft,At.setCurrentType=At.setCurrentType.bind(At),At}return ce(Dt,Nt),Dt.prototype.getUi=function(){var mt=this,ft=document.createElement("div");ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2";for(var pt=function(we){var le="both";switch(we){case 0:le="both";break;case 1:le="start";break;case 2:le="end";break;case 3:le="none"}var me=document.createElement("div");if(me.style.display="flex",me.style.flexGrow="2",me.style.alignItems="center",me.style.justifyContent="space-between",me.style.padding="5px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderColor=le===At.currentType?At.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){mt.setCurrentType(le,me)}),ft.appendChild(me),le==="both"||le==="start"){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.minHeight="20px",Ue.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="`+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ue.style.marginLeft="5px",me.appendChild(Ue)}var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.minHeight="20px",ke.style.flexGrow="2";var Ie=document.createElement("hr");if(Ie.style.minWidth="20px",Ie.style.border="0px",Ie.style.borderTop="3px solid "+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee"),Ie.style.flexGrow="2",ke.appendChild(Ie),me.appendChild(ke),le==="both"||le==="end"){var rn=document.createElement("div");rn.style.display="flex",rn.style.alignItems="center",rn.style.minHeight="20px",rn.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="`+(At.uiStyleSettings!==void 0?At.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,rn.style.marginRight="5px",me.appendChild(rn)}At.typeBoxes.push(me)},At=this,ue=0;ue<4;ue++)pt(ue);return ft},Dt.prototype.setCurrentType=function(mt,ft){var pt=this;this.currentType=mt,this.typeBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings!==void 0?pt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Dt}(et),_e=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.arrowType="end",At.arrowBaseHeight=10,At.arrowBaseWidth=10,At.getArrowPoints=At.getArrowPoints.bind(At),At.setArrowType=At.setArrowType.bind(At),At.arrowTypePanel=new Ge("Arrow type","end"),At.arrowTypePanel.onArrowTypeChanged=At.setArrowType,At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return!(!Nt.prototype.ownsTarget.call(this,mt)&&mt!==this.arrow1&&mt!==this.arrow2)},Dt.prototype.getArrowPoints=function(mt,ft){var pt=this.arrowBaseWidth+2*this.strokeWidth,At=this.arrowBaseHeight+2*this.strokeWidth;return mt-pt/2+","+(ft+At/2)+" "+mt+","+(ft-At/2)+" "+(mt+pt/2)+","+(ft+At/2)},Dt.prototype.createTips=function(){this.arrow1=Yt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Yt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Yt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Yt.createTransform()),this.visual.appendChild(this.arrow2)},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),this.state==="creating"&&this.createTips()},Dt.prototype.adjustVisual=function(){if(Nt.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",Yt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Yt.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 ft=this.arrow1.transform.baseVal.getItem(0);ft.setRotate(mt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ft,0);var pt=this.arrow2.transform.baseVal.getItem(0);pt.setRotate(mt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(pt,0)}},Dt.prototype.setArrowType=function(mt){this.arrowType=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Object.assign({arrowType:this.arrowType},Nt.prototype.getState.call(this));return mt.typeName=Dt.typeName,mt},Dt.prototype.restoreState=function(mt){Nt.prototype.restoreState.call(this,mt);var ft=mt;this.arrowType=ft.arrowType,this.createTips(),this.adjustVisual()},Dt.typeName="ArrowMarker",Dt.title="Arrow marker",Dt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Dt}(be),Ne=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.fillColor=pt.defaultFillColor,At.strokeWidth=0,At.fillPanel=new tt("Color",pt.defaultColorSet,pt.defaultFillColor),At.fillPanel.onColorChanged=At.setFillColor,At}return ce(Dt,Nt),Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Nt.prototype.getState.call(this);return mt.typeName=Dt.typeName,mt},Dt.typeName="CoverMarker",Dt.title="Cover marker",Dt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Dt}(Mt),We=function(Nt){function Dt(mt,ft,pt,At){var ue=Nt.call(this,mt,At||'<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 ue.opacities=[],ue.opacityBoxes=[],ue.opacities=ft,ue.currentOpacity=pt,ue.setCurrentOpacity=ue.setCurrentOpacity.bind(ue),ue}return ce(Dt,Nt),Dt.prototype.getUi=function(){var mt=this,ft=document.createElement("div");return ft.style.display="flex",ft.style.overflow="hidden",ft.style.flexGrow="2",ft.style.justifyContent="space-between",this.opacities.forEach(function(pt){var At=document.createElement("div");At.style.display="flex",At.style.alignItems="center",At.style.justifyContent="center",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=pt===mt.currentOpacity?mt.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){mt.setCurrentOpacity(pt,At)}),ft.appendChild(At);var ue=document.createElement("div");ue.innerText=100*pt+"%",At.appendChild(ue),mt.opacityBoxes.push(At)}),ft},Dt.prototype.setCurrentOpacity=function(mt,ft){var pt=this;this.currentOpacity=mt,this.opacityBoxes.forEach(function(At){At.style.borderColor=At===ft?pt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Dt}(et),Re=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.setOpacity=At.setOpacity.bind(At),At.fillColor=pt.defaultHighlightColor,At.strokeWidth=0,At.opacity=pt.defaultHighlightOpacity,At.fillPanel=new tt("Color",pt.defaultColorSet,At.fillColor),At.fillPanel.onColorChanged=At.setFillColor,At.opacityPanel=new We("Opacity",pt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return ce(Dt,Nt),Dt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&Yt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Nt.prototype.getState.call(this);return mt.typeName=Dt.typeName,mt},Dt.typeName="HighlightMarker",Dt.title="Highlight marker",Dt.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>',Dt}(Ne),ve='<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>',ie='<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>',Se=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.bgColor="transparent",At.tipPosition={x:0,y:0},At.tipBase1Position={x:0,y:0},At.tipBase2Position={x:0,y:0},At.tipMoving=!1,At.color=pt.defaultStrokeColor,At.bgColor=pt.defaultFillColor,At.fontFamily=pt.defaultFontFamily,At.defaultSize={x:100,y:30},At.setBgColor=At.setBgColor.bind(At),At.getTipPoints=At.getTipPoints.bind(At),At.positionTip=At.positionTip.bind(At),At.setTipPoints=At.setTipPoints.bind(At),At.colorPanel=new tt("Text color",pt.defaultColorSet,At.color,ve),At.colorPanel.onColorChanged=At.setColor,At.bgColorPanel=new tt("Fill color",pt.defaultColorSet,At.bgColor,ie),At.bgColorPanel.onColorChanged=At.setBgColor,At.fontFamilyPanel=new qt("Font",pt.defaultFontFamilies,pt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.tipGrip=new ut,At.tipGrip.visual.transform.baseVal.appendItem(Yt.createTransform()),At.controlBox.appendChild(At.tipGrip.visual),At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return Nt.prototype.ownsTarget.call(this,mt)||this.tipGrip.ownsTarget(mt)||this.tip===mt},Dt.prototype.createTip=function(){Yt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Yt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Dt.prototype.pointerDown=function(mt,ft){this.state==="new"&&Nt.prototype.pointerDown.call(this,mt,ft),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ft)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Nt.prototype.pointerDown.call(this,mt,ft)},Dt.prototype.pointerUp=function(mt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Nt.prototype.pointerUp.call(this,mt);else{var ft=this.state==="creating";Nt.prototype.pointerUp.call(this,mt),this.setTipPoints(ft),this.positionTip()}},Dt.prototype.manipulate=function(mt){if(this.tipMoving){var ft=this.unrotatePoint(mt);this.tipPosition={x:ft.x-this.manipulationStartLeft,y:ft.y-this.manipulationStartTop},this.positionTip()}else Nt.prototype.manipulate.call(this,mt)},Dt.prototype.setBgColor=function(mt){this.bgRectangle&&this.tip&&(Yt.setAttributes(this.bgRectangle,[["fill",mt]]),Yt.setAttributes(this.tip,[["fill",mt]])),this.bgColor=mt,this.fillColorChanged(mt)},Dt.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},Dt.prototype.setTipPoints=function(mt){mt===void 0&&(mt=!1);var ft=Math.min(this.height/2,15),pt=this.height/5;mt&&(this.tipPosition={x:ft+pt/2,y:this.height+20});var At=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?At<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(pt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:ft,y:0},this.tipBase2Position={x:ft+pt,y:0}):(this.tipBase1Position={x:0,y:ft},this.tipBase2Position={x:0,y:ft+pt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?At<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(pt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ft-pt,y:0},this.tipBase2Position={x:this.width-ft,y:0}):(this.tipBase1Position={x:this.width,y:ft},this.tipBase2Position={x:this.width,y:ft+pt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?At<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(pt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ft-pt,y:this.height},this.tipBase2Position={x:this.width-ft,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ft-pt},this.tipBase2Position={x:this.width,y:this.height-ft}):At<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(pt=this.width/5,ft=Math.min(this.width/2,15),this.tipBase1Position={x:ft,y:this.height},this.tipBase2Position={x:ft+pt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ft},this.tipBase2Position={x:0,y:this.height-ft-pt})},Dt.prototype.resize=function(mt){Nt.prototype.resize.call(this,mt),this.positionTip()},Dt.prototype.positionTip=function(){Yt.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(Dt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Dt.prototype.select=function(){this.positionTip(),Nt.prototype.select.call(this)},Dt.prototype.getState=function(){var mt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Nt.prototype.getState.call(this));return mt.typeName=Dt.typeName,mt},Dt.prototype.restoreState=function(mt){var ft=mt;this.bgColor=ft.bgColor,this.tipPosition=ft.tipPosition,Nt.prototype.restoreState.call(this,mt),this.createTip(),this.setTipPoints()},Dt.prototype.scale=function(mt,ft){Nt.prototype.scale.call(this,mt,ft),this.tipPosition={x:this.tipPosition.x*mt,y:this.tipPosition.y*ft},this.positionTip()},Dt.typeName="CalloutMarker",Dt.title="Callout marker",Dt.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>',Dt}(ze),Bn=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.opacity=1,At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.fillColor=pt.defaultFillColor,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.setOpacity=At.setOpacity.bind(At),At.createVisual=At.createVisual.bind(At),At.strokePanel=new tt("Line color",ee(pt.defaultColorSet,["transparent"]),pt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new tt("Fill color",ee(pt.defaultColorSet,["transparent"]),At.fillColor,ie),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Ot("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Ht("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.opacityPanel=new We("Opacity",pt.defaultOpacitySteps,At.opacity),At.opacityPanel.onOpacityChanged=At.setOpacity,At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return!(!Nt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},Dt.prototype.createVisual=function(){this.visual=Yt.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)},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Dt.prototype.manipulate=function(mt){Nt.prototype.manipulate.call(this,mt)},Dt.prototype.resize=function(mt){Nt.prototype.resize.call(this,mt),this.setSize()},Dt.prototype.setSize=function(){Nt.prototype.setSize.call(this),Yt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Dt.prototype.pointerUp=function(mt){Nt.prototype.pointerUp.call(this,mt),this.setSize()},Dt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&Yt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Dt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&Yt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},Dt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&Yt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Dt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&Yt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Dt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&Yt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Nt.prototype.getState.call(this));return mt.typeName=Dt.typeName,mt},Dt.prototype.restoreState=function(mt){var ft=mt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.opacity=ft.opacity,this.createVisual(),Nt.prototype.restoreState.call(this,mt),this.setSize()},Dt.prototype.scale=function(mt,ft){Nt.prototype.scale.call(this,mt,ft),this.setSize()},Dt.typeName="EllipseMarker",Dt.title="Ellipse marker",Dt.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>',Dt}(wt),Ln=function(Nt){function Dt(mt,ft,pt){return Nt.call(this,mt,ft,pt)||this}return ce(Dt,Nt),Object.defineProperty(Dt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Dt.prototype.ownsTarget=function(mt){return!(!Nt.prototype.ownsTarget.call(this,mt)&&mt!==this.tip1&&mt!==this.tip2)},Dt.prototype.createTips=function(){this.tip1=Yt.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(Yt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Yt.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(Yt.createTransform()),this.visual.appendChild(this.tip2)},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),this.state==="creating"&&this.createTips()},Dt.prototype.adjustVisual=function(){if(Nt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Yt.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()]]),Yt.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),ft=this.tip1.transform.baseVal.getItem(0);ft.setRotate(mt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ft,0);var pt=this.tip2.transform.baseVal.getItem(0);pt.setRotate(mt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(pt,0)}},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Nt.prototype.getState.call(this);return mt.typeName=Dt.typeName,mt},Dt.prototype.restoreState=function(mt){Nt.prototype.restoreState.call(this,mt),this.createTips(),this.adjustVisual()},Dt.typeName="MeasurementMarker",Dt.title="Measurement marker",Dt.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>',Dt}(be),Ye=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.strokePanel.colors=pt.defaultColorSet,At.fillColor="transparent",At}return ce(Dt,Nt),Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Nt.prototype.getState.call(this);return mt.typeName=Dt.typeName,mt},Dt.typeName="EllipseFrameMarker",Dt.title="Ellipse frame marker",Dt.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>',Dt}(Bn),Mn=function(){function Nt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Nt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Nt.prototype.addUndoStep=function(Dt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Dt)||(this.undoStack.push(Dt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Dt)&&this.redoStack.splice(0,this.redoStack.length))},Nt.prototype.replaceLastUndoStep=function(Dt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Dt)},Nt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Nt.prototype.undo=function(){if(this.undoStack.length>1){var Dt=this.undoStack.pop();return Dt!==void 0&&this.redoStack.push(Dt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Nt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Nt}(),Wn=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.curveX=0,At.curveY=0,At.manipulationStartCurveX=0,At.manipulationStartCurveY=0,At.setStrokeColor=At.setStrokeColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.positionGrips=At.positionGrips.bind(At),At.addControlGrips=At.addControlGrips.bind(At),At.adjustVisual=At.adjustVisual.bind(At),At.setupControlBox=At.setupControlBox.bind(At),At.resize=At.resize.bind(At),At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.strokePanel=new tt("Line color",pt.defaultColorSet,pt.defaultColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.strokeWidthPanel=new Ot("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Ht("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return!(!Nt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorCurve&&mt!==this.visibleCurve&&!this.curveGrip.ownsTarget(mt))},Dt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Dt.prototype.createVisual=function(){this.visual=Yt.createGroup(),this.selectorCurve=Yt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Yt.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)},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),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(ft)&&(this.activeGrip=this.curveGrip,this._state="resize")},Dt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Yt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Yt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Yt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Dt.prototype.setupControlBox=function(){Nt.prototype.setupControlBox.call(this),this.curveControlLine1=Yt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Yt.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)},Dt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Nt.prototype.addControlGrips.call(this)},Dt.prototype.positionGrips=function(){Nt.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()))},Dt.prototype.manipulate=function(mt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+mt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+mt.y-this.manipulationStartY),Nt.prototype.manipulate.call(this,mt)},Dt.prototype.resize=function(mt){this.activeGrip===this.curveGrip&&(this.curveX=mt.x,this.curveY=mt.y),Nt.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)},Dt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},Dt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},Dt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual()},Dt.prototype.scale=function(mt,ft){this.curveX=this.curveX*mt,this.curveY=this.curveY*ft,Nt.prototype.scale.call(this,mt,ft)},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Dt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Nt.prototype.getState.call(this));return mt.typeName=Dt.typeName,mt},Dt.prototype.restoreState=function(mt){Nt.prototype.restoreState.call(this,mt);var ft=mt;this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.curveX=ft.curveX,this.curveY=ft.curveY,this.createVisual(),this.adjustVisual()},Dt.typeName="CurveMarker",Dt.title="Curve marker",Dt.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>',Dt}(de),fi=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,ft,pt)||this;return At.fillColor="transparent",At.strokeColor="transparent",At.strokeWidth=0,At.strokeDasharray="",At.textColor="transparent",At.fontSize="1rem",At.isMoved=!1,At.captionText="Caption",At.PADDING=5,At.captionBoxWidth=0,At.captionBoxHeight=0,At.strokeColor=pt.defaultColor,At.strokeWidth=pt.defaultStrokeWidth,At.strokeDasharray=pt.defaultStrokeDasharray,At.fillColor=pt.defaultFillColor,At.textColor=pt.defaultStrokeColor,At.fontFamily=pt.defaultFontFamily,At.fontSize=pt.defaultCaptionFontSize,At.captionText=pt.defaultCaptionText,At.setStrokeColor=At.setStrokeColor.bind(At),At.setFillColor=At.setFillColor.bind(At),At.setStrokeWidth=At.setStrokeWidth.bind(At),At.setStrokeDasharray=At.setStrokeDasharray.bind(At),At.createVisual=At.createVisual.bind(At),At.sizeCaption=At.sizeCaption.bind(At),At.setCaptionText=At.setCaptionText.bind(At),At.showTextEditor=At.showTextEditor.bind(At),At.positionTextEditor=At.positionTextEditor.bind(At),At.finishTextEditing=At.finishTextEditing.bind(At),At.setFont=At.setFont.bind(At),At.setTextColor=At.setTextColor.bind(At),At.strokePanel=new tt("Line color",ee(pt.defaultColorSet,["transparent"]),At.strokeColor),At.strokePanel.onColorChanged=At.setStrokeColor,At.fillPanel=new tt("Fill color",ee(pt.defaultColorSet,["transparent"]),At.fillColor,ie),At.fillPanel.onColorChanged=At.setFillColor,At.strokeWidthPanel=new Ot("Line width",pt.defaultStrokeWidths,pt.defaultStrokeWidth),At.strokeWidthPanel.onWidthChanged=At.setStrokeWidth,At.strokeStylePanel=new Ht("Line style",pt.defaultStrokeDasharrays,pt.defaultStrokeDasharray),At.strokeStylePanel.onStyleChanged=At.setStrokeDasharray,At.fontFamilyPanel=new qt("Font",pt.defaultFontFamilies,pt.defaultFontFamily),At.fontFamilyPanel.onFontChanged=At.setFont,At.textColorPanel=new tt("Text color",pt.defaultColorSet,At.textColor,ve),At.textColorPanel.onColorChanged=At.setTextColor,At}return ce(Dt,Nt),Dt.prototype.ownsTarget=function(mt){return!(!Nt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.frame&&mt!==this.captionBg&&mt!==this.captionElement)},Dt.prototype.createVisual=function(){this.visual=Yt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Yt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Yt.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=Yt.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()},Dt.prototype.setCaptionText=function(mt){this.captionText=mt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Dt.prototype.pointerDown=function(mt,ft){Nt.prototype.pointerDown.call(this,mt,ft),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},Dt.prototype.manipulate=function(mt){Nt.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)},Dt.prototype.resize=function(mt){Nt.prototype.resize.call(this,mt),this.setSize()},Dt.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),Yt.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')"]]),Yt.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')"]])},Dt.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(ft){ft.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ft){ft.key==="Enter"&&mt.finishTextEditing(mt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ft){ft.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()},Dt.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"))},Dt.prototype.finishTextEditing=function(mt){this.setCaptionText(mt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Dt.prototype.setFont=function(mt){this.captionElement&&Yt.setAttributes(this.captionElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Dt.prototype.setTextColor=function(mt){this.captionElement&&Yt.setAttributes(this.captionElement,[["fill",mt]]),this.textColor=mt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Dt.prototype.setSize=function(){Nt.prototype.setSize.call(this),Yt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Dt.prototype.pointerUp=function(mt){Nt.prototype.pointerUp.call(this,mt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Dt.prototype.dblClick=function(mt,ft){Nt.prototype.dblClick.call(this,mt,ft),this.showTextEditor()},Dt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.frame&&Yt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},Dt.prototype.setFillColor=function(mt){this.fillColor=mt,this.captionBg&&Yt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},Dt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.frame&&Yt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Dt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.frame&&Yt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Dt.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},Nt.prototype.getState.call(this));return mt.typeName=this.typeName,mt},Dt.prototype.restoreState=function(mt){var ft=mt;this.fillColor=ft.fillColor,this.strokeColor=ft.strokeColor,this.strokeWidth=ft.strokeWidth,this.strokeDasharray=ft.strokeDasharray,this.textColor=ft.textColor,this.fontFamily=ft.fontFamily,this.captionText=ft.captionText,this.fontSize=ft.fontSize,this.createVisual(),Nt.prototype.restoreState.call(this,mt),this.setSize()},Dt.prototype.scale=function(mt,ft){Nt.prototype.scale.call(this,mt,ft),this.setSize()},Dt.typeName="CaptionFrameMarker",Dt.title="Caption frame marker",Dt.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>',Dt}(wt),Hn=function(){function Nt(Dt,mt){mt===void 0&&(mt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Dt,this.cancelable=mt}return Object.defineProperty(Nt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Nt.prototype.preventDefault=function(){this._defaultPrevented=!0},Nt}(),xi=function(Nt){function Dt(mt,ft,pt){var At=Nt.call(this,mt,!1)||this;return At.dataUrl=ft,At.state=pt,At}return ce(Dt,Nt),Dt}(Hn),nn=function(Nt){function Dt(mt,ft,pt){pt===void 0&&(pt=!1);var At=Nt.call(this,mt,pt)||this;return At.marker=ft,At}return ce(Dt,Nt),Dt}(Hn),Fi=function(){function Nt(){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 Nt.prototype.addEventListener=function(Dt,mt){this[Dt].push(mt)},Nt.prototype.removeEventListener=function(Dt,mt){var ft=this[Dt].indexOf(mt);ft>-1&&this[Dt].splice(ft,1)},Nt}(),ki=function(){function Nt(Dt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ae,this._isOpen=!1,this.undoRedoManager=new Mn,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 Fi,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Nt.instanceCounter++,this.styles=new Pt(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Dt,this.targetRoot=document.body,this.width=Dt.clientWidth,this.height=Dt.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(Nt.prototype,"ALL_MARKER_TYPES",{get:function(){return[ne,Vt,_e,ze,Ye,Bn,Re,Se,Ln,Ne,be,Wn,fi]},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ne,Vt,_e,ze,Bn,Re,Se]},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ne,Vt,_e,ze,Re]},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Dt){var mt=this;this._availableMarkerTypes.splice(0),Dt.forEach(function(ft){if(typeof ft=="string"){var pt=mt.ALL_MARKER_TYPES.find(function(At){return At.typeName===ft});pt!==void 0&&mt._availableMarkerTypes.push(pt)}else mt._availableMarkerTypes.push(ft)})},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Nt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Dt){this._zoomLevel=Dt,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(Nt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Nt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),It.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Nt.prototype.show=function(){var Dt=this;this.styles.styleSheetRoot===void 0&&Xt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Xt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(mt){return mt(new Hn(Dt))})},Nt.prototype.render=function(){return re(this,void 0,void 0,function(){var Dt;return Be(this,function(mt){switch(mt.label){case 0:return this.setCurrentMarker(),(Dt=new jt).naturalSize=this.renderAtNaturalSize,Dt.imageType=this.renderImageType,Dt.imageQuality=this.renderImageQuality,Dt.markersOnly=this.renderMarkersOnly,Dt.width=this.renderWidth,Dt.height=this.renderHeight,[4,Dt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return mt.sent(),[4,Dt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,mt.sent()]}})})},Nt.prototype.close=function(Dt){var mt=this;if(Dt===void 0&&(Dt=!1),this.isOpen){var ft=!1;Dt||this.eventListeners.beforeclose.forEach(function(pt){var At=new Hn(mt,!0);pt(At),At.defaultPrevented&&(ft=!0)}),ft||(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(pt){return pt(new Hn(mt))}),this.detachEvents(),this._isOpen=!1)}},Nt.prototype.addMarkersToToolbar=function(){for(var Dt,mt=[],ft=0;ft<arguments.length;ft++)mt[ft]=arguments[ft];(Dt=this._availableMarkerTypes).push.apply(Dt,mt)},Nt.prototype.addRenderEventListener=function(Dt){this.addEventListener("render",function(mt){Dt(mt.dataUrl,mt.state)})},Nt.prototype.removeRenderEventListener=function(Dt){},Nt.prototype.addCloseEventListener=function(Dt){this.addEventListener("close",function(){Dt()})},Nt.prototype.removeCloseEventListener=function(Dt){},Nt.prototype.setupResizeObserver=function(){var Dt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Dt.resize(Dt.target.clientWidth,Dt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Dt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Nt.prototype.onPopupTargetResize=function(){var Dt=1*this.target.clientWidth/this.target.clientHeight,mt=this.editorCanvas.clientWidth/Dt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Dt:this.editorCanvas.clientWidth,ft=mt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Dt;this.resize(mt,ft)},Nt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Nt.prototype.resize=function(Dt,mt){this._isResizing=!0;var ft=Dt/this.imageWidth,pt=mt/this.imageHeight;this.imageWidth=Math.round(Dt),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(ft,pt),this._isResizing=!1},Nt.prototype.scaleMarkers=function(Dt,mt){var ft,pt=this;this._currentMarker&&this._currentMarker instanceof ze?this._currentMarker.scale(Dt,mt):(ft=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(At){At!==pt._currentMarker&&At.scale(Dt,mt)}),ft!==void 0&&this.setCurrentMarker(ft)},Nt.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"},Nt.prototype.setTopLeft=function(){var Dt=this.editingTarget.getBoundingClientRect(),mt=this.editorCanvas.getBoundingClientRect();this.left=Dt.left-mt.left,this.top=Dt.top-mt.top},Nt.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)},Nt.prototype.addDefs=function(){for(var Dt,mt=[],ft=0;ft<arguments.length;ft++)mt[ft]=arguments[ft];this.defs=Yt.createDefs(),this.addDefsToImage(),(Dt=this.defs).append.apply(Dt,mt)},Nt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Nt.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)},Nt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Nt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Nt.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)},Nt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Nt.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)},Nt.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 Dt=document.createElement("a");Dt.href="https://markerjs.com/",Dt.target="_blank",Dt.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>',Dt.title="Powered by marker.js",Dt.style.display="grid",Dt.style.alignItems="center",Dt.style.justifyItems="center",Dt.style.padding="3px",Dt.style.width="20px",Dt.style.height="20px",this.logoUI.appendChild(Dt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Nt.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")},Nt.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"},Nt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Nt.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 Dt=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=Dt+"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 Jt(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 Ct(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Nt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Nt.prototype.removeMarker=function(Dt){this.markerImage.removeChild(Dt.container),this.markers.indexOf(Dt)>-1&&this.markers.splice(this.markers.indexOf(Dt),1),Dt.dispose()},Nt.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())},Nt.prototype.toolbarButtonClicked=function(Dt,mt){if(Dt==="marker"&&mt!==void 0)this.createNewMarker(mt);else if(Dt==="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()}},Nt.prototype.deleteSelectedMarker=function(){var Dt=this;if(this._currentMarker!==void 0){var mt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pt){var At=new nn(Dt,Dt._currentMarker,!0);pt(At),At.defaultPrevented&&(mt=!0)}),!mt){var ft=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(pt){return pt(new nn(Dt,ft))})}}},Nt.prototype.clear=function(){var Dt=this,mt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ue){var we=new nn(Dt,void 0,!0);ue(we),we.defaultPrevented&&(mt=!0)}),!mt)){this.setCurrentMarker();for(var ft=function(ue){var we=pt.markers[ue];pt.setCurrentMarker(pt.markers[ue]),pt._currentMarker.dispose(),pt.markerImage.removeChild(pt._currentMarker.container),pt.markers.splice(pt.markers.indexOf(pt._currentMarker),1),pt.eventListeners.markerdelete.forEach(function(le){return le(new nn(Dt,we))})},pt=this,At=this.markers.length-1;At>=0;At--)ft(At);this.addUndoStep()}},Object.defineProperty(Nt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Nt.prototype.showNotesEditor=function(){var Dt;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=(Dt=this._currentMarker.notes)!==null&&Dt!==void 0?Dt:"",this.overlayContainer.appendChild(this.notesArea))},Nt.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)},Nt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Nt.prototype.addUndoStep=function(){var Dt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var mt=this.getState(),ft=this.undoRedoManager.getLastUndoStep();if(!ft||ft.width===mt.width&&ft.height===mt.height){var pt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(mt),pt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(At){return At(new Hn(Dt))})}else this.undoRedoManager.replaceLastUndoStep(mt),this.eventListeners.statechange.forEach(function(At){return At(new Hn(Dt))})}},Nt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Nt.prototype.undoStep=function(){var Dt=this,mt=this.undoRedoManager.undo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ft){return ft(new Hn(Dt))}))},Nt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Nt.prototype.redoStep=function(){var Dt=this,mt=this.undoRedoManager.redo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ft){return ft(new Hn(Dt))}))},Nt.prototype.stepZoom=function(){var Dt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Dt<this.zoomSteps.length-1?this.zoomSteps[Dt+1]:this.zoomSteps[0]},Nt.prototype.panTo=function(Dt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Dt.x,top:this.prevPanPoint.y-Dt.y}),this.prevPanPoint=Dt},Nt.prototype.startRenderAndClose=function(){return re(this,void 0,void 0,function(){var Dt,mt,ft=this;return Be(this,function(pt){switch(pt.label){case 0:return[4,this.render()];case 1:return Dt=pt.sent(),mt=this.getState(),this.eventListeners.render.forEach(function(At){return At(new xi(ft,Dt,mt))}),this.close(!0),[2]}})})},Nt.prototype.getState=function(Dt){Dt===!0&&this.setCurrentMarker();var mt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ft){return mt.markers.push(ft.getState())}),mt},Nt.prototype.restoreState=function(Dt){var mt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Dt.markers.forEach(function(ft){var pt=mt._availableMarkerTypes.find(function(ue){return ue.typeName===ft.typeName});if(pt!==void 0){var At=mt.addNewMarker(pt);At.restoreState(ft),mt.markers.push(At)}}),Dt.width&&Dt.height&&(Dt.width!==this.imageWidth||Dt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Dt.width,this.imageHeight/Dt.height),this.eventListeners.restorestate.forEach(function(ft){return ft(new Hn(mt))})},Nt.prototype.addNewMarker=function(Dt){var mt=Yt.createGroup();return this.markerImage.appendChild(mt),new Dt(mt,this.overlayContainer,this.settings)},Nt.prototype.createNewMarker=function(Dt){var mt,ft=this;(mt=typeof Dt=="string"?this._availableMarkerTypes.find(function(pt){return pt.typeName===Dt}):Dt)&&(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(pt){return pt(new nn(ft,ft._currentMarker))}))},Nt.prototype.markerCreated=function(Dt){var mt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Dt),this.setCurrentMarker(Dt),Dt instanceof Vt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Vt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ft){return ft(new nn(mt,mt._currentMarker))})},Nt.prototype.colorChanged=function(Dt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Dt,this.settings.defaultStrokeColor=Dt)},Nt.prototype.fillColorChanged=function(Dt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Dt)},Nt.prototype.markerStateChanged=function(Dt){var mt=this;this.eventListeners.markerchange.forEach(function(ft){return ft(new nn(mt,Dt))})},Nt.prototype.setCurrentMarker=function(Dt){var mt=this;this._currentMarker!==Dt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ft){return ft(new nn(mt,mt._currentMarker))})),this._currentMarker=Dt,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(ft){return ft(new nn(mt,mt._currentMarker))}))},Nt.prototype.onPointerDown=function(Dt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Dt.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(ft){return ft.ownsTarget(Dt.target)});mt!==void 0?(this.setCurrentMarker(mt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Dt.clientX,Dt.clientY),Dt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Dt.clientX,y:Dt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Dt.clientX,Dt.clientY))},Nt.prototype.onDblClick=function(Dt){if(this._isFocused||this.focus(),this.mode==="select"){var mt=this.markers.find(function(ft){return ft.ownsTarget(Dt.target)});mt!==void 0&&mt!==this._currentMarker&&this.setCurrentMarker(mt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Dt.clientX,Dt.clientY),Dt.target):this.setCurrentMarker()}},Nt.prototype.onPointerMove=function(Dt){this.touchPoints!==1&&Dt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Dt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Dt.clientX,Dt.clientY)):this.zoomLevel>1&&this.panTo({x:Dt.clientX,y:Dt.clientY}))},Nt.prototype.onPointerUp=function(Dt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Dt.clientX,Dt.clientY)),this.isDragging=!1,this.addUndoStep()},Nt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Nt.prototype.onKeyUp=function(Dt){this._currentMarker===void 0||this.notesArea!==void 0||Dt.key!=="Delete"&&Dt.key!=="Backspace"||this.deleteSelectedMarker()},Nt.prototype.clientToLocalCoordinates=function(Dt,mt){var ft=this.markerImage.getBoundingClientRect();return{x:(Dt-ft.left)/this.zoomLevel,y:(mt-ft.top)/this.zoomLevel}},Nt.prototype.onWindowResize=function(){this.positionUI()},Nt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Dt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Dt+"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()},Nt.prototype.addLicenseKey=function(Dt){It.addKey(Dt)},Nt.prototype.addEventListener=function(Dt,mt){this.eventListeners.addEventListener(Dt,mt)},Nt.prototype.removeEventListener=function(Dt,mt){this.eventListeners.removeEventListener(Dt,mt)},Nt.prototype.renderState=function(Dt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Dt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Nt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Nt.prototype.focus=function(){var Dt=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 Hn(Dt))}))},Nt.prototype.blur=function(){var Dt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(mt){return mt(new Hn(Dt))}))},Nt.instanceCounter=0,Nt}()},17115:function(ui,wn,bt){"use strict";bt.d(wn,{ZP:function(){return It}});var Ft=bt(52487),ce=bt(59301),re=bt(47273),Be=0,ee=(0,re.Z)();function Yt(){var jt;return ee?(jt=Be,Be+=1):jt="TEST_OR_SSR",jt}function It(jt){var Xt=ce.useState(),Pt=(0,Ft.Z)(Xt,2),oe=Pt[0],zt=Pt[1];return ce.useEffect(function(){zt("rc_select_".concat(Yt()))},[]),jt||oe}},77861:function(ui,wn,bt){"use strict";bt.d(wn,{Ac:function(){return rn},Xo:function(){return to},Wx:function(){return gr},ZP:function(){return Je},lk:function(){return wt}});var Ft=bt(72308),ce=bt(80702),re=bt(49618),Be=bt(77321),ee=bt(52487),Yt=bt(74416),It=bt(62853),jt=bt(18929),Xt=bt(48736),Pt=bt(59301),oe=bt(92310),zt=bt.n(oe),Jt=bt(34280),Ct=bt(49658),et=bt(10228),tt=bt(8654),lt=function(Ke){var ni=Ke.className,Ci=Ke.customizeIcon,_i=Ke.customizeIconProps,qi=Ke.onMouseDown,on=Ke.onClick,di=Ke.children,Vi;return typeof Ci=="function"?Vi=Ci(_i):Vi=Ci,Pt.createElement("span",{className:ni,onMouseDown:function(ii){ii.preventDefault(),qi&&qi(ii)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:on,"aria-hidden":!0},Vi!==void 0?Vi:Pt.createElement("span",{className:zt()(ni.split(/\s+/).map(function(kr){return"".concat(kr,"-icon")}))},di))},rt=lt;function ut(fn,Ke,ni,Ci,_i){var qi=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,on=arguments.length>6?arguments[6]:void 0,di=arguments.length>7?arguments[7]:void 0,Vi=Pt.useMemo(function(){if((0,It.Z)(Ci)==="object")return Ci.clearIcon;if(_i)return _i},[Ci,_i]),kr=Pt.useMemo(function(){return!!(!qi&&Ci&&(ni.length||on)&&!(di==="combobox"&&on===""))},[Ci,qi,ni.length,on,di]);return{allowClear:kr,clearIcon:Pt.createElement(rt,{className:"".concat(fn,"-clear"),onMouseDown:Ke,customizeIcon:Vi},"\xD7")}}var ct=Pt.createContext(null);function wt(){return Pt.useContext(ct)}function Mt(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ke=Pt.useState(!1),ni=(0,ee.Z)(Ke,2),Ci=ni[0],_i=ni[1],qi=Pt.useRef(null),on=function(){window.clearTimeout(qi.current)};Pt.useEffect(function(){return on},[]);var di=function(kr,ii){on(),qi.current=window.setTimeout(function(){_i(kr),ii&&ii()},fn)};return[Ci,di,on]}function Ot(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ke=Pt.useRef(null),ni=Pt.useRef(null);Pt.useEffect(function(){return function(){window.clearTimeout(ni.current)}},[]);function Ci(_i){(_i||Ke.current===null)&&(Ke.current=_i),window.clearTimeout(ni.current),ni.current=window.setTimeout(function(){Ke.current=null},fn)}return[function(){return Ke.current},Ci]}function Ht(fn,Ke,ni,Ci){var _i=Pt.useRef(null);_i.current={open:Ke,triggerOpen:ni,customizedTrigger:Ci},Pt.useEffect(function(){function qi(on){var di;if(!((di=_i.current)!==null&&di!==void 0&&di.customizedTrigger)){var Vi=on.target;Vi.shadowRoot&&on.composed&&(Vi=on.composedPath()[0]||Vi),_i.current.open&&fn().filter(function(kr){return kr}).every(function(kr){return!kr.contains(Vi)&&kr!==Vi})&&_i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",qi),function(){return window.removeEventListener("mousedown",qi)}},[])}var ne=bt(26112),ae=bt(11780),de=function(Ke,ni){var Ci,_i,qi=Ke.prefixCls,on=Ke.id,di=Ke.inputElement,Vi=Ke.disabled,kr=Ke.tabIndex,ii=Ke.autoFocus,wi=Ke.autoComplete,dr=Ke.editable,pi=Ke.activeDescendantId,yi=Ke.value,vi=Ke.maxLength,er=Ke.onKeyDown,or=Ke.onMouseDown,Rr=Ke.onChange,Zr=Ke.onPaste,Xr=Ke.onCompositionStart,ei=Ke.onCompositionEnd,_o=Ke.open,Zo=Ke.attrs,cs=di||Pt.createElement("input",null),ri=cs,rr=ri.ref,Er=ri.props,no=Er.onKeyDown,Fr=Er.onChange,Gr=Er.onMouseDown,wo=Er.onCompositionStart,fo=Er.onCompositionEnd,xo=Er.style;return(0,Xt.Kp)(!("maxLength"in cs.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),cs=Pt.cloneElement(cs,(0,Be.Z)((0,Be.Z)((0,Be.Z)({type:"search"},Er),{},{id:on,ref:(0,tt.sQ)(ni,rr),disabled:Vi,tabIndex:kr,autoComplete:wi||"off",autoFocus:ii,className:zt()("".concat(qi,"-selection-search-input"),(Ci=cs)===null||Ci===void 0||(_i=Ci.props)===null||_i===void 0?void 0:_i.className),role:"combobox","aria-label":"Search","aria-expanded":_o||!1,"aria-haspopup":"listbox","aria-owns":"".concat(on,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(on,"_list"),"aria-activedescendant":_o?pi:void 0},Zo),{},{value:dr?yi:"",maxLength:vi,readOnly:!dr,unselectable:dr?null:"on",style:(0,Be.Z)((0,Be.Z)({},xo),{},{opacity:dr?null:0}),onKeyDown:function(Si){er(Si),no&&no(Si)},onMouseDown:function(Si){or(Si),Gr&&Gr(Si)},onChange:function(Si){Rr(Si),Fr&&Fr(Si)},onCompositionStart:function(Si){Xr(Si),wo&&wo(Si)},onCompositionEnd:function(Si){ei(Si),fo&&fo(Si)},onPaste:Zr})),cs},be=Pt.forwardRef(de);be.displayName="Input";var qt=be;function ze(fn){return Array.isArray(fn)?fn:fn!==void 0?[fn]:[]}var Vt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ge=Vt;function _e(fn){return fn!=null}function Ne(fn){return!fn&&fn!==0}function We(fn){return["string","number"].includes((0,It.Z)(fn))}function Re(fn){var Ke=void 0;return fn&&(We(fn.title)?Ke=fn.title.toString():We(fn.label)&&(Ke=fn.label.toString())),Ke}function ve(fn,Ke){Ge?Pt.useLayoutEffect(fn,Ke):Pt.useEffect(fn,Ke)}function ie(fn){var Ke;return(Ke=fn.key)!==null&&Ke!==void 0?Ke:fn.value}var Se=function(Ke){Ke.preventDefault(),Ke.stopPropagation()},Bn=function(Ke){var ni=Ke.id,Ci=Ke.prefixCls,_i=Ke.values,qi=Ke.open,on=Ke.searchValue,di=Ke.autoClearSearchValue,Vi=Ke.inputRef,kr=Ke.placeholder,ii=Ke.disabled,wi=Ke.mode,dr=Ke.showSearch,pi=Ke.autoFocus,yi=Ke.autoComplete,vi=Ke.activeDescendantId,er=Ke.tabIndex,or=Ke.removeIcon,Rr=Ke.maxTagCount,Zr=Ke.maxTagTextLength,Xr=Ke.maxTagPlaceholder,ei=Xr===void 0?function(qo){return"+ ".concat(qo.length," ...")}:Xr,_o=Ke.tagRender,Zo=Ke.onToggleOpen,cs=Ke.onRemove,ri=Ke.onInputChange,rr=Ke.onInputPaste,Er=Ke.onInputKeyDown,no=Ke.onInputMouseDown,Fr=Ke.onInputCompositionStart,Gr=Ke.onInputCompositionEnd,wo=Pt.useRef(null),fo=(0,Pt.useState)(0),xo=(0,ee.Z)(fo,2),_r=xo[0],Si=xo[1],Ho=(0,Pt.useState)(!1),Pi=(0,ee.Z)(Ho,2),ns=Pi[0],qs=Pi[1],fs="".concat(Ci,"-selection"),Hs=qi||wi==="multiple"&&di===!1||wi==="tags"?on:"",Gs=wi==="tags"||wi==="multiple"&&di===!1||dr&&(qi||ns);ve(function(){Si(wo.current.scrollWidth)},[Hs]);function si(qo,ta,qa,ol,ml){return Pt.createElement("span",{className:zt()("".concat(fs,"-item"),(0,re.Z)({},"".concat(fs,"-item-disabled"),qa)),title:Re(qo)},Pt.createElement("span",{className:"".concat(fs,"-item-content")},ta),ol&&Pt.createElement(rt,{className:"".concat(fs,"-item-remove"),onMouseDown:Se,onClick:ml,customizeIcon:or},"\xD7"))}function To(qo,ta,qa,ol,ml){var vr=function(Xo){Se(Xo),Zo(!qi)};return Pt.createElement("span",{onMouseDown:vr},_o({label:ta,value:qo,disabled:qa,closable:ol,onClose:ml}))}function us(qo){var ta=qo.disabled,qa=qo.label,ol=qo.value,ml=!ii&&!ta,vr=qa;if(typeof Zr=="number"&&(typeof qa=="string"||typeof qa=="number")){var $r=String(vr);$r.length>Zr&&(vr="".concat($r.slice(0,Zr),"..."))}var Xo=function(os){os&&os.stopPropagation(),cs(qo)};return typeof _o=="function"?To(ol,vr,ta,ml,Xo):si(qo,vr,ta,ml,Xo)}function rs(qo){var ta=typeof ei=="function"?ei(qo):ei;return si({title:ta},ta,!1)}var Cr=Pt.createElement("div",{className:"".concat(fs,"-search"),style:{width:_r},onFocus:function(){qs(!0)},onBlur:function(){qs(!1)}},Pt.createElement(qt,{ref:Vi,open:qi,prefixCls:Ci,id:ni,inputElement:null,disabled:ii,autoFocus:pi,autoComplete:yi,editable:Gs,activeDescendantId:vi,value:Hs,onKeyDown:Er,onMouseDown:no,onChange:ri,onPaste:rr,onCompositionStart:Fr,onCompositionEnd:Gr,tabIndex:er,attrs:(0,ne.Z)(Ke,!0)}),Pt.createElement("span",{ref:wo,className:"".concat(fs,"-search-mirror"),"aria-hidden":!0},Hs,"\xA0")),Le=Pt.createElement(ae.Z,{prefixCls:"".concat(fs,"-overflow"),data:_i,renderItem:us,renderRest:rs,suffix:Cr,itemKey:ie,maxCount:Rr});return Pt.createElement(Pt.Fragment,null,Le,!_i.length&&!Hs&&Pt.createElement("span",{className:"".concat(fs,"-placeholder")},kr))},Ln=Bn,Ye=function(Ke){var ni=Ke.inputElement,Ci=Ke.prefixCls,_i=Ke.id,qi=Ke.inputRef,on=Ke.disabled,di=Ke.autoFocus,Vi=Ke.autoComplete,kr=Ke.activeDescendantId,ii=Ke.mode,wi=Ke.open,dr=Ke.values,pi=Ke.placeholder,yi=Ke.tabIndex,vi=Ke.showSearch,er=Ke.searchValue,or=Ke.activeValue,Rr=Ke.maxLength,Zr=Ke.onInputKeyDown,Xr=Ke.onInputMouseDown,ei=Ke.onInputChange,_o=Ke.onInputPaste,Zo=Ke.onInputCompositionStart,cs=Ke.onInputCompositionEnd,ri=Ke.title,rr=Pt.useState(!1),Er=(0,ee.Z)(rr,2),no=Er[0],Fr=Er[1],Gr=ii==="combobox",wo=Gr||vi,fo=dr[0],xo=er||"";Gr&&or&&!no&&(xo=or),Pt.useEffect(function(){Gr&&Fr(!1)},[Gr,or]);var _r=ii!=="combobox"&&!wi&&!vi?!1:!!xo,Si=ri===void 0?Re(fo):ri,Ho=function(){if(fo)return null;var ns=_r?{visibility:"hidden"}:void 0;return Pt.createElement("span",{className:"".concat(Ci,"-selection-placeholder"),style:ns},pi)};return Pt.createElement(Pt.Fragment,null,Pt.createElement("span",{className:"".concat(Ci,"-selection-search")},Pt.createElement(qt,{ref:qi,prefixCls:Ci,id:_i,open:wi,inputElement:ni,disabled:on,autoFocus:di,autoComplete:Vi,editable:wo,activeDescendantId:kr,value:xo,onKeyDown:Zr,onMouseDown:Xr,onChange:function(ns){Fr(!0),ei(ns)},onPaste:_o,onCompositionStart:Zo,onCompositionEnd:cs,tabIndex:yi,attrs:(0,ne.Z)(Ke,!0),maxLength:Gr?Rr:void 0})),!Gr&&fo?Pt.createElement("span",{className:"".concat(Ci,"-selection-item"),title:Si,style:_r?{visibility:"hidden"}:void 0},fo.label):null,Ho())},Mn=Ye;function Wn(fn){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(fn)}var fi=function(Ke,ni){var Ci=(0,Pt.useRef)(null),_i=(0,Pt.useRef)(!1),qi=Ke.prefixCls,on=Ke.open,di=Ke.mode,Vi=Ke.showSearch,kr=Ke.tokenWithEnter,ii=Ke.autoClearSearchValue,wi=Ke.onSearch,dr=Ke.onSearchSubmit,pi=Ke.onToggleOpen,yi=Ke.onInputKeyDown,vi=Ke.domRef;Pt.useImperativeHandle(ni,function(){return{focus:function(){Ci.current.focus()},blur:function(){Ci.current.blur()}}});var er=Ot(0),or=(0,ee.Z)(er,2),Rr=or[0],Zr=or[1],Xr=function(xo){var _r=xo.which;(_r===et.Z.UP||_r===et.Z.DOWN)&&xo.preventDefault(),yi&&yi(xo),_r===et.Z.ENTER&&di==="tags"&&!_i.current&&!on&&(dr==null||dr(xo.target.value)),Wn(_r)&&pi(!0)},ei=function(){Zr(!0)},_o=(0,Pt.useRef)(null),Zo=function(xo){wi(xo,!0,_i.current)!==!1&&pi(!0)},cs=function(){_i.current=!0},ri=function(xo){_i.current=!1,di!=="combobox"&&Zo(xo.target.value)},rr=function(xo){var _r=xo.target.value;if(kr&&_o.current&&/[\r\n]/.test(_o.current)){var Si=_o.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_r=_r.replace(Si,_o.current)}_o.current=null,Zo(_r)},Er=function(xo){var _r=xo.clipboardData,Si=_r.getData("text");_o.current=Si},no=function(xo){var _r=xo.target;if(_r!==Ci.current){var Si=document.body.style.msTouchAction!==void 0;Si?setTimeout(function(){Ci.current.focus()}):Ci.current.focus()}},Fr=function(xo){var _r=Rr();xo.target!==Ci.current&&!_r&&di!=="combobox"&&xo.preventDefault(),(di!=="combobox"&&(!Vi||!_r)||!on)&&(on&&ii!==!1&&wi("",!0,!1),pi())},Gr={inputRef:Ci,onInputKeyDown:Xr,onInputMouseDown:ei,onInputChange:rr,onInputPaste:Er,onInputCompositionStart:cs,onInputCompositionEnd:ri},wo=di==="multiple"||di==="tags"?Pt.createElement(Ln,(0,Ft.Z)({},Ke,Gr)):Pt.createElement(Mn,(0,Ft.Z)({},Ke,Gr));return Pt.createElement("div",{ref:vi,className:"".concat(qi,"-selector"),onClick:no,onMouseDown:Fr},wo)},Hn=Pt.forwardRef(fi);Hn.displayName="Selector";var xi=Hn,nn=bt(35593),Fi=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ki=function(Ke){var ni=Ke===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ni,adjustY:1},htmlRegion:"scroll"}}},Nt=function(Ke,ni){var Ci=Ke.prefixCls,_i=Ke.disabled,qi=Ke.visible,on=Ke.children,di=Ke.popupElement,Vi=Ke.animation,kr=Ke.transitionName,ii=Ke.dropdownStyle,wi=Ke.dropdownClassName,dr=Ke.direction,pi=dr===void 0?"ltr":dr,yi=Ke.placement,vi=Ke.builtinPlacements,er=Ke.dropdownMatchSelectWidth,or=Ke.dropdownRender,Rr=Ke.dropdownAlign,Zr=Ke.getPopupContainer,Xr=Ke.empty,ei=Ke.getTriggerDOMNode,_o=Ke.onPopupVisibleChange,Zo=Ke.onPopupMouseEnter,cs=(0,Yt.Z)(Ke,Fi),ri="".concat(Ci,"-dropdown"),rr=di;or&&(rr=or(di));var Er=Pt.useMemo(function(){return vi||ki(er)},[vi,er]),no=Vi?"".concat(ri,"-").concat(Vi):kr,Fr=typeof er=="number",Gr=Pt.useMemo(function(){return Fr?null:er===!1?"minWidth":"width"},[er,Fr]),wo=ii;Fr&&(wo=(0,Be.Z)((0,Be.Z)({},wo),{},{width:er}));var fo=Pt.useRef(null);return Pt.useImperativeHandle(ni,function(){return{getPopupElement:function(){return fo.current}}}),Pt.createElement(nn.Z,(0,Ft.Z)({},cs,{showAction:_o?["click"]:[],hideAction:_o?["click"]:[],popupPlacement:yi||(pi==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Er,prefixCls:ri,popupTransitionName:no,popup:Pt.createElement("div",{ref:fo,onMouseEnter:Zo},rr),stretch:Gr,popupAlign:Rr,popupVisible:qi,getPopupContainer:Zr,popupClassName:zt()(wi,(0,re.Z)({},"".concat(ri,"-empty"),Xr)),popupStyle:wo,getTriggerDOMNode:ei,onPopupVisibleChange:_o}),on)},Dt=Pt.forwardRef(Nt);Dt.displayName="SelectTrigger";var mt=Dt,ft=bt(68413);function pt(fn,Ke){var ni=fn.key,Ci;return"value"in fn&&(Ci=fn.value),ni!=null?ni:Ci!==void 0?Ci:"rc-index-key-".concat(Ke)}function At(fn,Ke){var ni=fn||{},Ci=ni.label,_i=ni.value,qi=ni.options,on=ni.groupLabel,di=Ci||(Ke?"children":"label");return{label:di,value:_i||"value",options:qi||"options",groupLabel:on||di}}function ue(fn){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ni=Ke.fieldNames,Ci=Ke.childrenAsData,_i=[],qi=At(ni,!1),on=qi.label,di=qi.value,Vi=qi.options,kr=qi.groupLabel;function ii(wi,dr){wi.forEach(function(pi){if(dr||!(Vi in pi)){var yi=pi[di];_i.push({key:pt(pi,_i.length),groupOption:dr,data:pi,label:pi[on],value:yi})}else{var vi=pi[kr];vi===void 0&&Ci&&(vi=pi.label),_i.push({key:pt(pi,_i.length),group:!0,data:pi,label:vi}),ii(pi[Vi],!0)}})}return ii(fn,!1),_i}function we(fn){var Ke=(0,Be.Z)({},fn);return"props"in Ke||Object.defineProperty(Ke,"props",{get:function(){return(0,Xt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ke}}),Ke}function le(fn,Ke){if(!Ke||!Ke.length)return null;var ni=!1;function Ci(qi,on){var di=(0,ft.Z)(on),Vi=di[0],kr=di.slice(1);if(!Vi)return[qi];var ii=qi.split(Vi);return ni=ni||ii.length>1,ii.reduce(function(wi,dr){return[].concat((0,ce.Z)(wi),(0,ce.Z)(Ci(dr,kr)))},[]).filter(function(wi){return wi})}var _i=Ci(fn,Ke);return ni?_i:null}var me=["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"],Ue=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ke(fn){return fn==="tags"||fn==="multiple"}var Ie=Pt.forwardRef(function(fn,Ke){var ni,Ci,_i=fn.id,qi=fn.prefixCls,on=fn.className,di=fn.showSearch,Vi=fn.tagRender,kr=fn.direction,ii=fn.omitDomProps,wi=fn.displayValues,dr=fn.onDisplayValuesChange,pi=fn.emptyOptions,yi=fn.notFoundContent,vi=yi===void 0?"Not Found":yi,er=fn.onClear,or=fn.mode,Rr=fn.disabled,Zr=fn.loading,Xr=fn.getInputElement,ei=fn.getRawInputElement,_o=fn.open,Zo=fn.defaultOpen,cs=fn.onDropdownVisibleChange,ri=fn.activeValue,rr=fn.onActiveValueChange,Er=fn.activeDescendantId,no=fn.searchValue,Fr=fn.autoClearSearchValue,Gr=fn.onSearch,wo=fn.onSearchSplit,fo=fn.tokenSeparators,xo=fn.allowClear,_r=fn.suffixIcon,Si=fn.clearIcon,Ho=fn.OptionList,Pi=fn.animation,ns=fn.transitionName,qs=fn.dropdownStyle,fs=fn.dropdownClassName,Hs=fn.dropdownMatchSelectWidth,Gs=fn.dropdownRender,si=fn.dropdownAlign,To=fn.placement,us=fn.builtinPlacements,rs=fn.getPopupContainer,Cr=fn.showAction,Le=Cr===void 0?[]:Cr,qo=fn.onFocus,ta=fn.onBlur,qa=fn.onKeyUp,ol=fn.onKeyDown,ml=fn.onMouseDown,vr=(0,Yt.Z)(fn,me),$r=ke(or),Xo=(di!==void 0?di:$r)||or==="combobox",Lo=(0,Be.Z)({},vr);Ue.forEach(function(Bs){delete Lo[Bs]}),ii==null||ii.forEach(function(Bs){delete Lo[Bs]});var os=Pt.useState(!1),Fa=(0,ee.Z)(os,2),ao=Fa[0],mo=Fa[1];Pt.useEffect(function(){mo((0,Ct.Z)())},[]);var zi=Pt.useRef(null),Eo=Pt.useRef(null),Es=Pt.useRef(null),la=Pt.useRef(null),ca=Pt.useRef(null),Qo=Mt(),Vs=(0,ee.Z)(Qo,3),Ka=Vs[0],Wl=Vs[1],La=Vs[2];Pt.useImperativeHandle(Ke,function(){var Bs,ya;return{focus:(Bs=la.current)===null||Bs===void 0?void 0:Bs.focus,blur:(ya=la.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(el){var ll;return(ll=ca.current)===null||ll===void 0?void 0:ll.scrollTo(el)}}});var vs=Pt.useMemo(function(){var Bs;if(or!=="combobox")return no;var ya=(Bs=wi[0])===null||Bs===void 0?void 0:Bs.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[no,or,wi]),ai=or==="combobox"&&typeof Xr=="function"&&Xr()||null,ka=typeof ei=="function"&&ei(),bc=(0,tt.x1)(Eo,ka==null||(ni=ka.props)===null||ni===void 0?void 0:ni.ref),Vl=Pt.useState(!1),kh=(0,ee.Z)(Vl,2),sl=kh[0],Wc=kh[1];(0,Jt.Z)(function(){Wc(!0)},[]);var Fl=(0,jt.Z)(!1,{defaultValue:Zo,value:_o}),Is=(0,ee.Z)(Fl,2),ia=Is[0],Ph=Is[1],is=sl?ia:!1,Zs=!vi&&pi;(Rr||Zs&&is&&or==="combobox")&&(is=!1);var ys=Zs?!1:is,Hr=Pt.useCallback(function(Bs){var ya=Bs!==void 0?Bs:!is;Rr||(Ph(ya),is!==ya&&(cs==null||cs(ya)))},[Rr,is,Ph,cs]),kl=Pt.useMemo(function(){return(fo||[]).some(function(Bs){return[`
`,`\r
`].includes(Bs)})},[fo]),Ol=function(ya,Mu,el){var ll=!0,Wa=ya;rr==null||rr(null);var Aa=el?null:le(ya,fo);return or!=="combobox"&&Aa&&(Wa="",wo==null||wo(Aa),Hr(!1),ll=!1),Gr&&vs!==Wa&&Gr(Wa,{source:Mu?"typing":"effect"}),ll},Ao=function(ya){!ya||!ya.trim()||Gr(ya,{source:"submit"})};Pt.useEffect(function(){!is&&!$r&&or!=="combobox"&&Ol("",!1,!1)},[is]),Pt.useEffect(function(){ia&&Rr&&Ph(!1),Rr&&Wl(!1)},[Rr]);var Ns=Ot(),da=(0,ee.Z)(Ns,2),wr=da[0],Ma=da[1],Oa=function(ya){var Mu=wr(),el=ya.which;if(el===et.Z.ENTER&&(or!=="combobox"&&ya.preventDefault(),is||Hr(!0)),Ma(!!vs),el===et.Z.BACKSPACE&&!Mu&&$r&&!vs&&wi.length){for(var ll=(0,ce.Z)(wi),Wa=null,Aa=ll.length-1;Aa>=0;Aa-=1){var nl=ll[Aa];if(!nl.disabled){ll.splice(Aa,1),Wa=nl;break}}Wa&&dr(ll,{type:"remove",values:[Wa]})}for(var Dl=arguments.length,Ac=new Array(Dl>1?Dl-1:0),rh=1;rh<Dl;rh++)Ac[rh-1]=arguments[rh];if(is&&ca.current){var cl;(cl=ca.current).onKeyDown.apply(cl,[ya].concat(Ac))}ol==null||ol.apply(void 0,[ya].concat(Ac))},Bl=function(ya){for(var Mu=arguments.length,el=new Array(Mu>1?Mu-1:0),ll=1;ll<Mu;ll++)el[ll-1]=arguments[ll];if(is&&ca.current){var Wa;(Wa=ca.current).onKeyUp.apply(Wa,[ya].concat(el))}qa==null||qa.apply(void 0,[ya].concat(el))},su=function(ya){var Mu=wi.filter(function(el){return el!==ya});dr(Mu,{type:"remove",values:[ya]})},au=Pt.useRef(!1),Yo=function(){Wl(!0),Rr||(qo&&!au.current&&qo.apply(void 0,arguments),Le.includes("focus")&&Hr(!0)),au.current=!0},va=function(){Wl(!1,function(){au.current=!1,Hr(!1)}),!Rr&&(vs&&(or==="tags"?Gr(vs,{source:"submit"}):or==="multiple"&&Gr("",{source:"blur"})),ta&&ta.apply(void 0,arguments))},Cs=[];Pt.useEffect(function(){return function(){Cs.forEach(function(Bs){return clearTimeout(Bs)}),Cs.splice(0,Cs.length)}},[]);var lu=function(ya){var Mu,el=ya.target,ll=(Mu=Es.current)===null||Mu===void 0?void 0:Mu.getPopupElement();if(ll&&ll.contains(el)){var Wa=setTimeout(function(){var Ac=Cs.indexOf(Wa);if(Ac!==-1&&Cs.splice(Ac,1),La(),!ao&&!ll.contains(document.activeElement)){var rh;(rh=la.current)===null||rh===void 0||rh.focus()}});Cs.push(Wa)}for(var Aa=arguments.length,nl=new Array(Aa>1?Aa-1:0),Dl=1;Dl<Aa;Dl++)nl[Dl-1]=arguments[Dl];ml==null||ml.apply(void 0,[ya].concat(nl))},Ll=Pt.useState({}),Ml=(0,ee.Z)(Ll,2),tl=Ml[1];function tu(){tl({})}var Pl;ka&&(Pl=function(ya){Hr(ya)}),Ht(function(){var Bs;return[zi.current,(Bs=Es.current)===null||Bs===void 0?void 0:Bs.getPopupElement()]},ys,Hr,!!ka);var No=Pt.useMemo(function(){return(0,Be.Z)((0,Be.Z)({},fn),{},{notFoundContent:vi,open:is,triggerOpen:ys,id:_i,showSearch:Xo,multiple:$r,toggleOpen:Hr})},[fn,vi,ys,is,_i,Xo,$r,Hr]),dc=!!_r||Zr,al;dc&&(al=Pt.createElement(rt,{className:zt()("".concat(qi,"-arrow"),(0,re.Z)({},"".concat(qi,"-arrow-loading"),Zr)),customizeIcon:_r,customizeIconProps:{loading:Zr,searchValue:vs,open:is,focused:Ka,showSearch:Xo}}));var zu=function(){var ya;er==null||er(),(ya=la.current)===null||ya===void 0||ya.focus(),dr([],{type:"clear",values:wi}),Ol("",!1,!1)},hh=ut(qi,zu,wi,xo,Si,Rr,vs,or),dh=hh.allowClear,Ga=hh.clearIcon,ih=Pt.createElement(Ho,{ref:ca}),Ec=zt()(qi,on,(Ci={},(0,re.Z)(Ci,"".concat(qi,"-focused"),Ka),(0,re.Z)(Ci,"".concat(qi,"-multiple"),$r),(0,re.Z)(Ci,"".concat(qi,"-single"),!$r),(0,re.Z)(Ci,"".concat(qi,"-allow-clear"),xo),(0,re.Z)(Ci,"".concat(qi,"-show-arrow"),dc),(0,re.Z)(Ci,"".concat(qi,"-disabled"),Rr),(0,re.Z)(Ci,"".concat(qi,"-loading"),Zr),(0,re.Z)(Ci,"".concat(qi,"-open"),is),(0,re.Z)(Ci,"".concat(qi,"-customize-input"),ai),(0,re.Z)(Ci,"".concat(qi,"-show-search"),Xo),Ci)),Vc=Pt.createElement(mt,{ref:Es,disabled:Rr,prefixCls:qi,visible:ys,popupElement:ih,animation:Pi,transitionName:ns,dropdownStyle:qs,dropdownClassName:fs,direction:kr,dropdownMatchSelectWidth:Hs,dropdownRender:Gs,dropdownAlign:si,placement:To,builtinPlacements:us,getPopupContainer:rs,empty:pi,getTriggerDOMNode:function(){return Eo.current},onPopupVisibleChange:Pl,onPopupMouseEnter:tu},ka?Pt.cloneElement(ka,{ref:bc}):Pt.createElement(xi,(0,Ft.Z)({},fn,{domRef:Eo,prefixCls:qi,inputElement:ai,ref:la,id:_i,showSearch:Xo,autoClearSearchValue:Fr,mode:or,activeDescendantId:Er,tagRender:Vi,values:wi,open:is,onToggleOpen:Hr,activeValue:ri,searchValue:vs,onSearch:Ol,onSearchSubmit:Ao,onRemove:su,tokenWithEnter:kl}))),Zc;return ka?Zc=Vc:Zc=Pt.createElement("div",(0,Ft.Z)({className:Ec},Lo,{ref:zi,onMouseDown:lu,onKeyDown:Oa,onKeyUp:Bl,onFocus:Yo,onBlur:va}),Ka&&!is&&Pt.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(wi.map(function(Bs){var ya=Bs.label,Mu=Bs.value;return["number","string"].includes((0,It.Z)(ya))?ya:Mu}).join(", "))),Vc,al,dh&&Ga),Pt.createElement(ct.Provider,{value:No},Zc)}),rn=Ie,Gn=function(fn,Ke){var ni=Pt.useRef({values:new Map,options:new Map}),Ci=Pt.useMemo(function(){var qi=ni.current,on=qi.values,di=qi.options,Vi=fn.map(function(wi){if(wi.label===void 0){var dr;return(0,Be.Z)((0,Be.Z)({},wi),{},{label:(dr=on.get(wi.value))===null||dr===void 0?void 0:dr.label})}return wi}),kr=new Map,ii=new Map;return Vi.forEach(function(wi){kr.set(wi.value,wi),ii.set(wi.value,Ke.get(wi.value)||di.get(wi.value))}),ni.current.values=kr,ni.current.options=ii,Vi},[fn,Ke]),_i=Pt.useCallback(function(qi){return Ke.get(qi)||ni.current.options.get(qi)},[Ke]);return[Ci,_i]};function dn(fn,Ke){return ze(fn).join("").toUpperCase().includes(Ke)}var An=function(fn,Ke,ni,Ci,_i){return Pt.useMemo(function(){if(!ni||Ci===!1)return fn;var qi=Ke.options,on=Ke.label,di=Ke.value,Vi=[],kr=typeof Ci=="function",ii=ni.toUpperCase(),wi=kr?Ci:function(pi,yi){return _i?dn(yi[_i],ii):yi[qi]?dn(yi[on!=="children"?on:"label"],ii):dn(yi[di],ii)},dr=kr?function(pi){return we(pi)}:function(pi){return pi};return fn.forEach(function(pi){if(pi[qi]){var yi=wi(ni,dr(pi));if(yi)Vi.push(pi);else{var vi=pi[qi].filter(function(er){return wi(ni,dr(er))});vi.length&&Vi.push((0,Be.Z)((0,Be.Z)({},pi),{},(0,re.Z)({},qi,vi)))}return}wi(ni,dr(pi))&&Vi.push(pi)}),Vi},[fn,Ci,_i,ni,Ke])},Dn=bt(17115),qn=bt(11592),Rn=["children","value"],Di=["children"];function cr(fn){var Ke=fn,ni=Ke.key,Ci=Ke.props,_i=Ci.children,qi=Ci.value,on=(0,Yt.Z)(Ci,Rn);return(0,Be.Z)({key:ni,value:qi!==void 0?qi:ni,children:_i},on)}function Ji(fn){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,qn.Z)(fn).map(function(ni,Ci){if(!Pt.isValidElement(ni)||!ni.type)return null;var _i=ni,qi=_i.type.isSelectOptGroup,on=_i.key,di=_i.props,Vi=di.children,kr=(0,Yt.Z)(di,Di);return Ke||!qi?cr(ni):(0,Be.Z)((0,Be.Z)({key:"__RC_SELECT_GRP__".concat(on===null?Ci:on,"__"),label:on},kr),{},{options:Ji(Vi)})}).filter(function(ni){return ni})}function Sr(fn,Ke,ni,Ci,_i){return Pt.useMemo(function(){var qi=fn,on=!fn;on&&(qi=Ji(Ke));var di=new Map,Vi=new Map,kr=function(dr,pi,yi){yi&&typeof yi=="string"&&dr.set(pi[yi],pi)};function ii(wi){for(var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pi=0;pi<wi.length;pi+=1){var yi=wi[pi];!yi[ni.options]||dr?(di.set(yi[ni.value],yi),kr(Vi,yi,ni.label),kr(Vi,yi,Ci),kr(Vi,yi,_i)):ii(yi[ni.options],!0)}}return ii(qi),{options:qi,valueOptions:di,labelOptions:Vi}},[fn,Ke,ni,Ci,_i])}function Nr(fn){var Ke=Pt.useRef();Ke.current=fn;var ni=Pt.useCallback(function(){return Ke.current.apply(Ke,arguments)},[]);return ni}var co=function(){return null};co.isSelectOptGroup=!0;var to=co,Kr=function(){return null};Kr.isSelectOption=!0;var gr=Kr,Vr=bt(80547),pr=bt(2738),zo=bt(45680),es=Pt.createContext(null),yo=es;function ks(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ws=["disabled","title","children","style","className"];function Wt(fn){return typeof fn=="string"||typeof fn=="number"}var xs=function(Ke,ni){var Ci=wt(),_i=Ci.prefixCls,qi=Ci.id,on=Ci.open,di=Ci.multiple,Vi=Ci.mode,kr=Ci.searchValue,ii=Ci.toggleOpen,wi=Ci.notFoundContent,dr=Ci.onPopupScroll,pi=Pt.useContext(yo),yi=pi.flattenOptions,vi=pi.onActiveValue,er=pi.defaultActiveFirstOption,or=pi.onSelect,Rr=pi.menuItemSelectedIcon,Zr=pi.rawValues,Xr=pi.fieldNames,ei=pi.virtual,_o=pi.direction,Zo=pi.listHeight,cs=pi.listItemHeight,ri="".concat(_i,"-item"),rr=(0,Vr.Z)(function(){return yi},[on,yi],function(si,To){return To[0]&&si[1]!==To[1]}),Er=Pt.useRef(null),no=function(To){To.preventDefault()},Fr=function(To){Er.current&&Er.current.scrollTo(typeof To=="number"?{index:To}:To)},Gr=function(To){for(var us=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,rs=rr.length,Cr=0;Cr<rs;Cr+=1){var Le=(To+Cr*us+rs)%rs,qo=rr[Le],ta=qo.group,qa=qo.data;if(!ta&&!qa.disabled)return Le}return-1},wo=Pt.useState(function(){return Gr(0)}),fo=(0,ee.Z)(wo,2),xo=fo[0],_r=fo[1],Si=function(To){var us=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_r(To);var rs={source:us?"keyboard":"mouse"},Cr=rr[To];if(!Cr){vi(null,-1,rs);return}vi(Cr.value,To,rs)};(0,Pt.useEffect)(function(){Si(er!==!1?Gr(0):-1)},[rr.length,kr]);var Ho=Pt.useCallback(function(si){return Zr.has(si)&&Vi!=="combobox"},[Vi,(0,ce.Z)(Zr).toString(),Zr.size]);(0,Pt.useEffect)(function(){var si=setTimeout(function(){if(!di&&on&&Zr.size===1){var us=Array.from(Zr)[0],rs=rr.findIndex(function(Cr){var Le=Cr.data;return Le.value===us});rs!==-1&&(Si(rs),Fr(rs))}});if(on){var To;(To=Er.current)===null||To===void 0||To.scrollTo(void 0)}return function(){return clearTimeout(si)}},[on,kr,yi.length]);var Pi=function(To){To!==void 0&&or(To,{selected:!Zr.has(To)}),di||ii(!1)};if(Pt.useImperativeHandle(ni,function(){return{onKeyDown:function(To){var us=To.which,rs=To.ctrlKey;switch(us){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var Cr=0;if(us===et.Z.UP?Cr=-1:us===et.Z.DOWN?Cr=1:ks()&&rs&&(us===et.Z.N?Cr=1:us===et.Z.P&&(Cr=-1)),Cr!==0){var Le=Gr(xo+Cr,Cr);Fr(Le),Si(Le,!0)}break}case et.Z.ENTER:{var qo=rr[xo];qo&&!qo.data.disabled?Pi(qo.value):Pi(void 0),on&&To.preventDefault();break}case et.Z.ESC:ii(!1),on&&To.stopPropagation()}},onKeyUp:function(){},scrollTo:function(To){Fr(To)}}}),rr.length===0)return Pt.createElement("div",{role:"listbox",id:"".concat(qi,"_list"),className:"".concat(ri,"-empty"),onMouseDown:no},wi);var ns=Object.keys(Xr).map(function(si){return Xr[si]}),qs=function(To){return To.label};function fs(si,To){var us=si.group;return{role:us?"presentation":"option",id:"".concat(qi,"_list_").concat(To)}}var Hs=function(To){var us=rr[To];if(!us)return null;var rs=us.data||{},Cr=rs.value,Le=us.group,qo=(0,ne.Z)(rs,!0),ta=qs(us);return us?Pt.createElement("div",(0,Ft.Z)({"aria-label":typeof ta=="string"&&!Le?ta:null},qo,{key:To},fs(us,To),{"aria-selected":Ho(Cr)}),Cr):null},Gs={role:"listbox",id:"".concat(qi,"_list")};return Pt.createElement(Pt.Fragment,null,ei&&Pt.createElement("div",(0,Ft.Z)({},Gs,{style:{height:0,width:0,overflow:"hidden"}}),Hs(xo-1),Hs(xo),Hs(xo+1)),Pt.createElement(zo.Z,{itemKey:"key",ref:Er,data:rr,height:Zo,itemHeight:cs,fullHeight:!1,onMouseDown:no,onScroll:dr,virtual:ei,direction:_o,innerProps:ei?null:Gs},function(si,To){var us,rs=si.group,Cr=si.groupOption,Le=si.data,qo=si.label,ta=si.value,qa=Le.key;if(rs){var ol,ml=(ol=Le.title)!==null&&ol!==void 0?ol:Wt(qo)?qo.toString():void 0;return Pt.createElement("div",{className:zt()(ri,"".concat(ri,"-group")),title:ml},qo!==void 0?qo:qa)}var vr=Le.disabled,$r=Le.title,Xo=Le.children,Lo=Le.style,os=Le.className,Fa=(0,Yt.Z)(Le,ws),ao=(0,pr.Z)(Fa,ns),mo=Ho(ta),zi="".concat(ri,"-option"),Eo=zt()(ri,zi,os,(us={},(0,re.Z)(us,"".concat(zi,"-grouped"),Cr),(0,re.Z)(us,"".concat(zi,"-active"),xo===To&&!vr),(0,re.Z)(us,"".concat(zi,"-disabled"),vr),(0,re.Z)(us,"".concat(zi,"-selected"),mo),us)),Es=qs(si),la=!Rr||typeof Rr=="function"||mo,ca=typeof Es=="number"?Es:Es||ta,Qo=Wt(ca)?ca.toString():void 0;return $r!==void 0&&(Qo=$r),Pt.createElement("div",(0,Ft.Z)({},(0,ne.Z)(ao),ei?{}:fs(si,To),{"aria-selected":mo,className:Eo,title:Qo,onMouseMove:function(){xo===To||vr||Si(To)},onClick:function(){vr||Pi(ta)},style:Lo}),Pt.createElement("div",{className:"".concat(zi,"-content")},ca),Pt.isValidElement(Rr)||mo,la&&Pt.createElement(rt,{className:"".concat(ri,"-option-state"),customizeIcon:Rr,customizeIconProps:{isSelected:mo}},mo?"\u2713":null))}))},Ss=Pt.forwardRef(xs);Ss.displayName="OptionList";var Ms=Ss;function ma(fn){var Ke=fn.mode,ni=fn.options,Ci=fn.children,_i=fn.backfill,qi=fn.allowClear,on=fn.placeholder,di=fn.getInputElement,Vi=fn.showSearch,kr=fn.onSearch,ii=fn.defaultOpen,wi=fn.autoFocus,dr=fn.labelInValue,pi=fn.value,yi=fn.inputValue,vi=fn.optionLabelProp,er=isMultiple(Ke),or=Vi!==void 0?Vi:er||Ke==="combobox",Rr=ni||convertChildrenToData(Ci);if(warning(Ke!=="tags"||Rr.every(function(_o){return!_o.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ke==="tags"||Ke==="combobox"){var Zr=Rr.some(function(_o){return _o.options?_o.options.some(function(Zo){return typeof("value"in Zo?Zo.value:Zo.key)=="number"}):typeof("value"in _o?_o.value:_o.key)=="number"});warning(!Zr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ke!=="combobox"||!vi,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ke==="combobox"||!_i,"`backfill` only works with `combobox` mode."),warning(Ke==="combobox"||!di,"`getInputElement` only work with `combobox` mode."),noteOnce(Ke!=="combobox"||!di||!qi||!on,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),kr&&!or&&Ke!=="combobox"&&Ke!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ii||wi,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),pi!=null){var Xr=toArray(pi);warning(!dr||Xr.every(function(_o){return _typeof(_o)==="object"&&("key"in _o||"value"in _o)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!er||Array.isArray(pi),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ci){var ei=null;toNodeArray(Ci).some(function(_o){if(!React.isValidElement(_o)||!_o.type)return!1;var Zo=_o,cs=Zo.type;if(cs.isSelectOption)return!1;if(cs.isSelectOptGroup){var ri=toNodeArray(_o.props.children).every(function(rr){return!React.isValidElement(rr)||!_o.type||rr.type.isSelectOption?!0:(ei=rr.type,!1)});return!ri}return ei=cs,!0}),ei&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ei.displayName||ei.name||ei,"`.")),warning(yi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ea(fn,Ke){if(fn){var ni=function Ci(_i){for(var qi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<_i.length;on++){var di=_i[on];if(di[Ke==null?void 0:Ke.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!qi&&Array.isArray(di[Ke==null?void 0:Ke.options])&&Ci(di[Ke==null?void 0:Ke.options],!0))break}};ni(fn)}}var oa=null,so=["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"],br=["inputValue"];function kn(fn){return!fn||(0,It.Z)(fn)!=="object"}var In=Pt.forwardRef(function(fn,Ke){var ni=fn.id,Ci=fn.mode,_i=fn.prefixCls,qi=_i===void 0?"rc-select":_i,on=fn.backfill,di=fn.fieldNames,Vi=fn.inputValue,kr=fn.searchValue,ii=fn.onSearch,wi=fn.autoClearSearchValue,dr=wi===void 0?!0:wi,pi=fn.onSelect,yi=fn.onDeselect,vi=fn.dropdownMatchSelectWidth,er=vi===void 0?!0:vi,or=fn.filterOption,Rr=fn.filterSort,Zr=fn.optionFilterProp,Xr=fn.optionLabelProp,ei=fn.options,_o=fn.children,Zo=fn.defaultActiveFirstOption,cs=fn.menuItemSelectedIcon,ri=fn.virtual,rr=fn.direction,Er=fn.listHeight,no=Er===void 0?200:Er,Fr=fn.listItemHeight,Gr=Fr===void 0?20:Fr,wo=fn.value,fo=fn.defaultValue,xo=fn.labelInValue,_r=fn.onChange,Si=(0,Yt.Z)(fn,so),Ho=(0,Dn.ZP)(ni),Pi=ke(Ci),ns=!!(!ei&&_o),qs=Pt.useMemo(function(){return or===void 0&&Ci==="combobox"?!1:or},[or,Ci]),fs=Pt.useMemo(function(){return At(di,ns)},[JSON.stringify(di),ns]),Hs=(0,jt.Z)("",{value:kr!==void 0?kr:Vi,postState:function(Zs){return Zs||""}}),Gs=(0,ee.Z)(Hs,2),si=Gs[0],To=Gs[1],us=Sr(ei,_o,fs,Zr,Xr),rs=us.valueOptions,Cr=us.labelOptions,Le=us.options,qo=Pt.useCallback(function(is){var Zs=ze(is);return Zs.map(function(ys){var Hr,kl,Ol,Ao,Ns;if(kn(ys))Hr=ys;else{var da;Ol=ys.key,kl=ys.label,Hr=(da=ys.value)!==null&&da!==void 0?da:Ol}var wr=rs.get(Hr);if(wr){var Ma;if(kl===void 0&&(kl=wr==null?void 0:wr[Xr||fs.label]),Ol===void 0&&(Ol=(Ma=wr==null?void 0:wr.key)!==null&&Ma!==void 0?Ma:Hr),Ao=wr==null?void 0:wr.disabled,Ns=wr==null?void 0:wr.title,0)var Oa}return{label:kl,value:Hr,key:Ol,disabled:Ao,title:Ns}})},[fs,Xr,rs]),ta=(0,jt.Z)(fo,{value:wo}),qa=(0,ee.Z)(ta,2),ol=qa[0],ml=qa[1],vr=Pt.useMemo(function(){var is,Zs=qo(ol);return Ci==="combobox"&&Ne((is=Zs[0])===null||is===void 0?void 0:is.value)?[]:Zs},[ol,qo,Ci]),$r=Gn(vr,rs),Xo=(0,ee.Z)($r,2),Lo=Xo[0],os=Xo[1],Fa=Pt.useMemo(function(){if(!Ci&&Lo.length===1){var is=Lo[0];if(is.value===null&&(is.label===null||is.label===void 0))return[]}return Lo.map(function(Zs){var ys;return(0,Be.Z)((0,Be.Z)({},Zs),{},{label:(ys=Zs.label)!==null&&ys!==void 0?ys:Zs.value})})},[Ci,Lo]),ao=Pt.useMemo(function(){return new Set(Lo.map(function(is){return is.value}))},[Lo]);Pt.useEffect(function(){if(Ci==="combobox"){var is,Zs=(is=Lo[0])===null||is===void 0?void 0:is.value;To(_e(Zs)?String(Zs):"")}},[Lo]);var mo=Nr(function(is,Zs){var ys,Hr=Zs!=null?Zs:is;return ys={},(0,re.Z)(ys,fs.value,is),(0,re.Z)(ys,fs.label,Hr),ys}),zi=Pt.useMemo(function(){if(Ci!=="tags")return Le;var is=(0,ce.Z)(Le),Zs=function(Hr){return rs.has(Hr)};return(0,ce.Z)(Lo).sort(function(ys,Hr){return ys.value<Hr.value?-1:1}).forEach(function(ys){var Hr=ys.value;Zs(Hr)||is.push(mo(Hr,ys.label))}),is},[mo,Le,rs,Lo,Ci]),Eo=An(zi,fs,si,qs,Zr),Es=Pt.useMemo(function(){return Ci!=="tags"||!si||Eo.some(function(is){return is[Zr||"value"]===si})||Eo.some(function(is){return is[fs.value]===si})?Eo:[mo(si)].concat((0,ce.Z)(Eo))},[mo,Zr,Ci,Eo,si,fs]),la=Pt.useMemo(function(){return Rr?(0,ce.Z)(Es).sort(function(is,Zs){return Rr(is,Zs)}):Es},[Es,Rr]),ca=Pt.useMemo(function(){return ue(la,{fieldNames:fs,childrenAsData:ns})},[la,fs,ns]),Qo=function(Zs){var ys=qo(Zs);if(ml(ys),_r&&(ys.length!==Lo.length||ys.some(function(Ol,Ao){var Ns;return((Ns=Lo[Ao])===null||Ns===void 0?void 0:Ns.value)!==(Ol==null?void 0:Ol.value)}))){var Hr=xo?ys:ys.map(function(Ol){return Ol.value}),kl=ys.map(function(Ol){return we(os(Ol.value))});_r(Pi?Hr:Hr[0],Pi?kl:kl[0])}},Vs=Pt.useState(null),Ka=(0,ee.Z)(Vs,2),Wl=Ka[0],La=Ka[1],vs=Pt.useState(0),ai=(0,ee.Z)(vs,2),ka=ai[0],bc=ai[1],Vl=Zo!==void 0?Zo:Ci!=="combobox",kh=Pt.useCallback(function(is,Zs){var ys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Hr=ys.source,kl=Hr===void 0?"keyboard":Hr;bc(Zs),on&&Ci==="combobox"&&is!==null&&kl==="keyboard"&&La(String(is))},[on,Ci]),sl=function(Zs,ys,Hr){var kl=function(){var au,Yo=os(Zs);return[xo?{label:Yo==null?void 0:Yo[fs.label],value:Zs,key:(au=Yo==null?void 0:Yo.key)!==null&&au!==void 0?au:Zs}:Zs,we(Yo)]};if(ys&&pi){var Ol=kl(),Ao=(0,ee.Z)(Ol,2),Ns=Ao[0],da=Ao[1];pi(Ns,da)}else if(!ys&&yi&&Hr!=="clear"){var wr=kl(),Ma=(0,ee.Z)(wr,2),Oa=Ma[0],Bl=Ma[1];yi(Oa,Bl)}},Wc=Nr(function(is,Zs){var ys,Hr=Pi?Zs.selected:!0;Hr?ys=Pi?[].concat((0,ce.Z)(Lo),[is]):[is]:ys=Lo.filter(function(kl){return kl.value!==is}),Qo(ys),sl(is,Hr),Ci==="combobox"?La(""):(!ke||dr)&&(To(""),La(""))}),Fl=function(Zs,ys){Qo(Zs);var Hr=ys.type,kl=ys.values;(Hr==="remove"||Hr==="clear")&&kl.forEach(function(Ol){sl(Ol.value,!1,Hr)})},Is=function(Zs,ys){if(To(Zs),La(null),ys.source==="submit"){var Hr=(Zs||"").trim();if(Hr){var kl=Array.from(new Set([].concat((0,ce.Z)(ao),[Hr])));Qo(kl),sl(Hr,!0),To("")}return}ys.source!=="blur"&&(Ci==="combobox"&&Qo(Zs),ii==null||ii(Zs))},ia=function(Zs){var ys=Zs;Ci!=="tags"&&(ys=Zs.map(function(kl){var Ol=Cr.get(kl);return Ol==null?void 0:Ol.value}).filter(function(kl){return kl!==void 0}));var Hr=Array.from(new Set([].concat((0,ce.Z)(ao),(0,ce.Z)(ys))));Qo(Hr),Hr.forEach(function(kl){sl(kl,!0)})},Ph=Pt.useMemo(function(){var is=ri!==!1&&er!==!1;return(0,Be.Z)((0,Be.Z)({},us),{},{flattenOptions:ca,onActiveValue:kh,defaultActiveFirstOption:Vl,onSelect:Wc,menuItemSelectedIcon:cs,rawValues:ao,fieldNames:fs,virtual:is,direction:rr,listHeight:no,listItemHeight:Gr,childrenAsData:ns})},[us,ca,kh,Vl,Wc,cs,ao,fs,ri,er,no,Gr,ns]);return Pt.createElement(yo.Provider,{value:Ph},Pt.createElement(rn,(0,Ft.Z)({},Si,{id:Ho,prefixCls:qi,ref:Ke,omitDomProps:br,mode:Ci,displayValues:Fa,onDisplayValuesChange:Fl,direction:rr,searchValue:si,onSearch:Is,autoClearSearchValue:dr,onSearchSplit:ia,dropdownMatchSelectWidth:er,OptionList:Ms,emptyOptions:!ca.length,activeValue:Wl,activeDescendantId:"".concat(Ho,"_list_").concat(ka)})))}),Oe=In;Oe.Option=gr,Oe.OptGroup=to;var hi=Oe,Je=hi},9296:function(ui,wn,bt){"use strict";bt.r(wn),bt.d(wn,{ResizableTextArea:function(){return be},default:function(){return Ne}});var Ft=bt(72308),ce=bt(77321),re=bt(49618),Be=bt(62853),ee=bt(52487),Yt=bt(74416),It=bt(80702),jt=bt(92310),Xt=bt.n(jt),Pt=bt(93681),oe=bt(5643),zt=bt(18929),Jt=bt(59301),Ct=bt(29301),et=bt(34280),tt=bt(16089),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"],ut={},ct;function wt(We){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=We.getAttribute("id")||We.getAttribute("data-reactid")||We.getAttribute("name");if(Re&&ut[ve])return ut[ve];var ie=window.getComputedStyle(We),Se=ie.getPropertyValue("box-sizing")||ie.getPropertyValue("-moz-box-sizing")||ie.getPropertyValue("-webkit-box-sizing"),Bn=parseFloat(ie.getPropertyValue("padding-bottom"))+parseFloat(ie.getPropertyValue("padding-top")),Ln=parseFloat(ie.getPropertyValue("border-bottom-width"))+parseFloat(ie.getPropertyValue("border-top-width")),Ye=rt.map(function(Wn){return"".concat(Wn,":").concat(ie.getPropertyValue(Wn))}).join(";"),Mn={sizingStyle:Ye,paddingSize:Bn,borderSize:Ln,boxSizing:Se};return Re&&ve&&(ut[ve]=Mn),Mn}function Mt(We){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ct||(ct=document.createElement("textarea"),ct.setAttribute("tab-index","-1"),ct.setAttribute("aria-hidden","true"),document.body.appendChild(ct)),We.getAttribute("wrap")?ct.setAttribute("wrap",We.getAttribute("wrap")):ct.removeAttribute("wrap");var Se=wt(We,Re),Bn=Se.paddingSize,Ln=Se.borderSize,Ye=Se.boxSizing,Mn=Se.sizingStyle;ct.setAttribute("style","".concat(Mn,";").concat(lt)),ct.value=We.value||We.placeholder||"";var Wn=void 0,fi=void 0,Hn,xi=ct.scrollHeight;if(Ye==="border-box"?xi+=Ln:Ye==="content-box"&&(xi-=Bn),ve!==null||ie!==null){ct.value=" ";var nn=ct.scrollHeight-Bn;ve!==null&&(Wn=nn*ve,Ye==="border-box"&&(Wn=Wn+Bn+Ln),xi=Math.max(Wn,xi)),ie!==null&&(fi=nn*ie,Ye==="border-box"&&(fi=fi+Bn+Ln),Hn=xi>fi?"":"hidden",xi=Math.min(fi,xi))}var Fi={height:xi,overflowY:Hn,resize:"none"};return Wn&&(Fi.minHeight=Wn),fi&&(Fi.maxHeight=fi),Fi}var Ot=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ht=0,ne=1,ae=2,de=Jt.forwardRef(function(We,Re){var ve=We,ie=ve.prefixCls,Se=ve.onPressEnter,Bn=ve.defaultValue,Ln=ve.value,Ye=ve.autoSize,Mn=ve.onResize,Wn=ve.className,fi=ve.style,Hn=ve.disabled,xi=ve.onChange,nn=ve.onInternalAutoSize,Fi=(0,Yt.Z)(ve,Ot),ki=(0,zt.Z)(Bn,{value:Ln,postState:function(to){return to!=null?to:""}}),Nt=(0,ee.Z)(ki,2),Dt=Nt[0],mt=Nt[1],ft=function(to){mt(to.target.value),xi==null||xi(to)},pt=Jt.useRef();Jt.useImperativeHandle(Re,function(){return{textArea:pt.current}});var At=Jt.useMemo(function(){return Ye&&(0,Be.Z)(Ye)==="object"?[Ye.minRows,Ye.maxRows]:[]},[Ye]),ue=(0,ee.Z)(At,2),we=ue[0],le=ue[1],me=!!Ye,Ue=function(){try{if(document.activeElement===pt.current){var to=pt.current,Kr=to.selectionStart,gr=to.selectionEnd,Vr=to.scrollTop;pt.current.setSelectionRange(Kr,gr),pt.current.scrollTop=Vr}}catch(pr){}},ke=Jt.useState(ae),Ie=(0,ee.Z)(ke,2),rn=Ie[0],Gn=Ie[1],dn=Jt.useState(),An=(0,ee.Z)(dn,2),Dn=An[0],qn=An[1],Rn=function(){Gn(Ht)};(0,et.Z)(function(){me&&Rn()},[Ln,we,le,me]),(0,et.Z)(function(){if(rn===Ht)Gn(ne);else if(rn===ne){var co=Mt(pt.current,!1,we,le);Gn(ae),qn(co)}else Ue()},[rn]);var Di=Jt.useRef(),cr=function(){tt.Z.cancel(Di.current)},Ji=function(to){rn===ae&&(Mn==null||Mn(to),Ye&&(cr(),Di.current=(0,tt.Z)(function(){Rn()})))};Jt.useEffect(function(){return cr},[]);var Sr=me?Dn:null,Nr=(0,ce.Z)((0,ce.Z)({},fi),Sr);return(rn===Ht||rn===ne)&&(Nr.overflowY="hidden",Nr.overflowX="hidden"),Jt.createElement(Ct.Z,{onResize:Ji,disabled:!(Ye||Mn)},Jt.createElement("textarea",(0,Ft.Z)({},Fi,{ref:pt,style:Nr,className:Xt()(ie,Wn,(0,re.Z)({},"".concat(ie,"-disabled"),Hn)),disabled:Hn,value:Dt,onChange:ft})))}),be=de,qt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ze(We,Re){return(0,It.Z)(We||"").slice(0,Re).join("")}function Vt(We,Re,ve,ie){var Se=ve;return We?Se=ze(ve,ie):(0,It.Z)(Re||"").length<ve.length&&(0,It.Z)(ve||"").length>ie&&(Se=Re),Se}var Ge=Jt.forwardRef(function(We,Re){var ve,ie=We.defaultValue,Se=We.value,Bn=We.onFocus,Ln=We.onBlur,Ye=We.onChange,Mn=We.allowClear,Wn=We.maxLength,fi=We.onCompositionStart,Hn=We.onCompositionEnd,xi=We.suffix,nn=We.prefixCls,Fi=nn===void 0?"rc-textarea":nn,ki=We.classes,Nt=We.showCount,Dt=We.className,mt=We.style,ft=We.disabled,pt=We.hidden,At=We.classNames,ue=We.styles,we=We.onResize,le=(0,Yt.Z)(We,qt),me=(0,zt.Z)(ie,{value:Se,defaultValue:ie}),Ue=(0,ee.Z)(me,2),ke=Ue[0],Ie=Ue[1],rn=(0,Jt.useRef)(null),Gn=Jt.useState(!1),dn=(0,ee.Z)(Gn,2),An=dn[0],Dn=dn[1],qn=Jt.useState(!1),Rn=(0,ee.Z)(qn,2),Di=Rn[0],cr=Rn[1],Ji=Jt.useRef(),Sr=Jt.useRef(0),Nr=Jt.useState(null),co=(0,ee.Z)(Nr,2),to=co[0],Kr=co[1],gr=function(){var kn;(kn=rn.current)===null||kn===void 0||kn.textArea.focus()};(0,Jt.useImperativeHandle)(Re,function(){return{resizableTextArea:rn.current,focus:gr,blur:function(){var kn;(kn=rn.current)===null||kn===void 0||kn.textArea.blur()}}}),(0,Jt.useEffect)(function(){Dn(function(br){return!ft&&br})},[ft]);var Vr=Number(Wn)>0,pr=function(kn){cr(!0),Ji.current=ke,Sr.current=kn.currentTarget.selectionStart,fi==null||fi(kn)},zo=function(kn){cr(!1);var In=kn.currentTarget.value;if(Vr){var Oe,hi=Sr.current>=Wn+1||Sr.current===((Oe=Ji.current)===null||Oe===void 0?void 0:Oe.length);In=Vt(hi,Ji.current,In,Wn)}In!==ke&&(Ie(In),(0,oe.rJ)(kn.currentTarget,kn,Ye,In)),Hn==null||Hn(kn)},es=function(kn){var In=kn.target.value;if(!Di&&Vr){var Oe=kn.target.selectionStart>=Wn+1||kn.target.selectionStart===In.length||!kn.target.selectionStart;In=Vt(Oe,ke,In,Wn)}Ie(In),(0,oe.rJ)(kn.currentTarget,kn,Ye,In)},yo=function(kn){var In=le.onPressEnter,Oe=le.onKeyDown;kn.key==="Enter"&&In&&In(kn),Oe==null||Oe(kn)},ks=function(kn){Dn(!0),Bn==null||Bn(kn)},ws=function(kn){Dn(!1),Ln==null||Ln(kn)},Wt=function(kn){var In;Ie(""),gr(),(0,oe.rJ)((In=rn.current)===null||In===void 0?void 0:In.textArea,kn,Ye)},xs=(0,oe.D7)(ke);!Di&&Vr&&Se==null&&(xs=ze(xs,Wn));var Ss=xi,Ms;if(Nt){var ma=(0,It.Z)(xs).length;(0,Be.Z)(Nt)==="object"?Ms=Nt.formatter({value:xs,count:ma,maxLength:Wn}):Ms="".concat(ma).concat(Vr?" / ".concat(Wn):""),Ss=Jt.createElement(Jt.Fragment,null,Ss,Jt.createElement("span",{className:Xt()("".concat(Fi,"-data-count"),At==null?void 0:At.count),style:ue==null?void 0:ue.count},Ms))}var Ea=function(kn){var In;we==null||we(kn),(In=rn.current)!==null&&In!==void 0&&In.textArea.style.height&&Kr(!0)},oa=!le.autoSize&&!Nt&&!Mn,so=Jt.createElement(Pt.BaseInput,{value:xs,allowClear:Mn,handleReset:Wt,suffix:Ss,prefixCls:Fi,classes:{affixWrapper:Xt()(ki==null?void 0:ki.affixWrapper,(ve={},(0,re.Z)(ve,"".concat(Fi,"-show-count"),Nt),(0,re.Z)(ve,"".concat(Fi,"-textarea-allow-clear"),Mn),ve))},disabled:ft,focused:An,className:Dt,style:(0,ce.Z)((0,ce.Z)({},mt),to&&!oa?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ms=="string"?Ms:void 0}},hidden:pt,inputElement:Jt.createElement(be,(0,Ft.Z)({},le,{onKeyDown:yo,onChange:es,onFocus:ks,onBlur:ws,onCompositionStart:pr,onCompositionEnd:zo,className:At==null?void 0:At.textarea,style:(0,ce.Z)((0,ce.Z)({},ue==null?void 0:ue.textarea),{},{resize:mt==null?void 0:mt.resize}),disabled:ft,prefixCls:Fi,onResize:Ea,ref:rn}))});return so}),_e=Ge,Ne=_e},39417:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ne}});var Ft=bt(72308),ce=bt(49618),re=bt(74416),Be=bt(77321),ee=bt(96949),Yt=bt(55090),It=bt(80237),jt=bt(77205),Xt=bt(38793),Pt=bt(92310),oe=bt.n(Pt),zt=bt(26112),Jt=bt(59301),Ct=bt(39378),et=function(de){for(var be=de.prefixCls,qt=de.level,ze=de.isStart,Vt=de.isEnd,Ge="".concat(be,"-indent-unit"),_e=[],Ne=0;Ne<qt;Ne+=1){var We;_e.push(Jt.createElement("span",{key:Ne,className:oe()(Ge,(We={},(0,ce.Z)(We,"".concat(Ge,"-start"),ze[Ne]),(0,ce.Z)(We,"".concat(Ge,"-end"),Vt[Ne]),We))}))}return Jt.createElement("span",{"aria-hidden":"true",className:"".concat(be,"-indent")},_e)},tt=Jt.memo(et),lt=bt(67841),rt=bt(71430),ut=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ct="open",wt="close",Mt="---",Ot=function(ae){(0,jt.Z)(be,ae);var de=(0,Xt.Z)(be);function be(){var qt;(0,ee.Z)(this,be);for(var ze=arguments.length,Vt=new Array(ze),Ge=0;Ge<ze;Ge++)Vt[Ge]=arguments[Ge];return qt=de.call.apply(de,[this].concat(Vt)),qt.state={dragNodeHighlight:!1},qt.selectHandle=void 0,qt.cacheIndent=void 0,qt.onSelectorClick=function(_e){var Ne=qt.props.context.onNodeClick;Ne(_e,(0,rt.F)(qt.props)),qt.isSelectable()?qt.onSelect(_e):qt.onCheck(_e)},qt.onSelectorDoubleClick=function(_e){var Ne=qt.props.context.onNodeDoubleClick;Ne(_e,(0,rt.F)(qt.props))},qt.onSelect=function(_e){if(!qt.isDisabled()){var Ne=qt.props.context.onNodeSelect;Ne(_e,(0,rt.F)(qt.props))}},qt.onCheck=function(_e){if(!qt.isDisabled()){var Ne=qt.props,We=Ne.disableCheckbox,Re=Ne.checked,ve=qt.props.context.onNodeCheck;if(!(!qt.isCheckable()||We)){var ie=!Re;ve(_e,(0,rt.F)(qt.props),ie)}}},qt.onMouseEnter=function(_e){var Ne=qt.props.context.onNodeMouseEnter;Ne(_e,(0,rt.F)(qt.props))},qt.onMouseLeave=function(_e){var Ne=qt.props.context.onNodeMouseLeave;Ne(_e,(0,rt.F)(qt.props))},qt.onContextMenu=function(_e){var Ne=qt.props.context.onNodeContextMenu;Ne(_e,(0,rt.F)(qt.props))},qt.onDragStart=function(_e){var Ne=qt.props.context.onNodeDragStart;_e.stopPropagation(),qt.setState({dragNodeHighlight:!0}),Ne(_e,(0,It.Z)(qt));try{_e.dataTransfer.setData("text/plain","")}catch(We){}},qt.onDragEnter=function(_e){var Ne=qt.props.context.onNodeDragEnter;_e.preventDefault(),_e.stopPropagation(),Ne(_e,(0,It.Z)(qt))},qt.onDragOver=function(_e){var Ne=qt.props.context.onNodeDragOver;_e.preventDefault(),_e.stopPropagation(),Ne(_e,(0,It.Z)(qt))},qt.onDragLeave=function(_e){var Ne=qt.props.context.onNodeDragLeave;_e.stopPropagation(),Ne(_e,(0,It.Z)(qt))},qt.onDragEnd=function(_e){var Ne=qt.props.context.onNodeDragEnd;_e.stopPropagation(),qt.setState({dragNodeHighlight:!1}),Ne(_e,(0,It.Z)(qt))},qt.onDrop=function(_e){var Ne=qt.props.context.onNodeDrop;_e.preventDefault(),_e.stopPropagation(),qt.setState({dragNodeHighlight:!1}),Ne(_e,(0,It.Z)(qt))},qt.onExpand=function(_e){var Ne=qt.props,We=Ne.loading,Re=Ne.context.onNodeExpand;We||Re(_e,(0,rt.F)(qt.props))},qt.setSelectHandle=function(_e){qt.selectHandle=_e},qt.getNodeState=function(){var _e=qt.props.expanded;return qt.isLeaf()?null:_e?ct:wt},qt.hasChildren=function(){var _e=qt.props.eventKey,Ne=qt.props.context.keyEntities,We=(0,lt.Z)(Ne,_e)||{},Re=We.children;return!!(Re||[]).length},qt.isLeaf=function(){var _e=qt.props,Ne=_e.isLeaf,We=_e.loaded,Re=qt.props.context.loadData,ve=qt.hasChildren();return Ne===!1?!1:Ne||!Re&&!ve||Re&&We&&!ve},qt.isDisabled=function(){var _e=qt.props.disabled,Ne=qt.props.context.disabled;return!!(Ne||_e)},qt.isCheckable=function(){var _e=qt.props.checkable,Ne=qt.props.context.checkable;return!Ne||_e===!1?!1:Ne},qt.syncLoadData=function(_e){var Ne=_e.expanded,We=_e.loading,Re=_e.loaded,ve=qt.props.context,ie=ve.loadData,Se=ve.onNodeLoad;We||ie&&Ne&&!qt.isLeaf()&&!qt.hasChildren()&&!Re&&Se((0,rt.F)(qt.props))},qt.isDraggable=function(){var _e=qt.props,Ne=_e.data,We=_e.context.draggable;return!!(We&&(!We.nodeDraggable||We.nodeDraggable(Ne)))},qt.renderDragHandler=function(){var _e=qt.props.context,Ne=_e.draggable,We=_e.prefixCls;return Ne!=null&&Ne.icon?Jt.createElement("span",{className:"".concat(We,"-draggable-icon")},Ne.icon):null},qt.renderSwitcherIconDom=function(_e){var Ne=qt.props.switcherIcon,We=qt.props.context.switcherIcon,Re=Ne||We;return typeof Re=="function"?Re((0,Be.Z)((0,Be.Z)({},qt.props),{},{isLeaf:_e})):Re},qt.renderSwitcher=function(){var _e=qt.props.expanded,Ne=qt.props.context.prefixCls;if(qt.isLeaf()){var We=qt.renderSwitcherIconDom(!0);return We!==!1?Jt.createElement("span",{className:oe()("".concat(Ne,"-switcher"),"".concat(Ne,"-switcher-noop"))},We):null}var Re=oe()("".concat(Ne,"-switcher"),"".concat(Ne,"-switcher_").concat(_e?ct:wt)),ve=qt.renderSwitcherIconDom(!1);return ve!==!1?Jt.createElement("span",{onClick:qt.onExpand,className:Re},ve):null},qt.renderCheckbox=function(){var _e=qt.props,Ne=_e.checked,We=_e.halfChecked,Re=_e.disableCheckbox,ve=qt.props.context.prefixCls,ie=qt.isDisabled(),Se=qt.isCheckable();if(!Se)return null;var Bn=typeof Se!="boolean"?Se:null;return Jt.createElement("span",{className:oe()("".concat(ve,"-checkbox"),Ne&&"".concat(ve,"-checkbox-checked"),!Ne&&We&&"".concat(ve,"-checkbox-indeterminate"),(ie||Re)&&"".concat(ve,"-checkbox-disabled")),onClick:qt.onCheck},Bn)},qt.renderIcon=function(){var _e=qt.props.loading,Ne=qt.props.context.prefixCls;return Jt.createElement("span",{className:oe()("".concat(Ne,"-iconEle"),"".concat(Ne,"-icon__").concat(qt.getNodeState()||"docu"),_e&&"".concat(Ne,"-icon_loading"))})},qt.renderSelector=function(){var _e=qt.state.dragNodeHighlight,Ne=qt.props,We=Ne.title,Re=We===void 0?Mt:We,ve=Ne.selected,ie=Ne.icon,Se=Ne.loading,Bn=Ne.data,Ln=qt.props.context,Ye=Ln.prefixCls,Mn=Ln.showIcon,Wn=Ln.icon,fi=Ln.loadData,Hn=Ln.titleRender,xi=qt.isDisabled(),nn="".concat(Ye,"-node-content-wrapper"),Fi;if(Mn){var ki=ie||Wn;Fi=ki?Jt.createElement("span",{className:oe()("".concat(Ye,"-iconEle"),"".concat(Ye,"-icon__customize"))},typeof ki=="function"?ki(qt.props):ki):qt.renderIcon()}else fi&&Se&&(Fi=qt.renderIcon());var Nt;typeof Re=="function"?Nt=Re(Bn):Hn?Nt=Hn(Bn):Nt=Re;var Dt=Jt.createElement("span",{className:"".concat(Ye,"-title")},Nt);return Jt.createElement("span",{ref:qt.setSelectHandle,title:typeof Re=="string"?Re:"",className:oe()("".concat(nn),"".concat(nn,"-").concat(qt.getNodeState()||"normal"),!xi&&(ve||_e)&&"".concat(Ye,"-node-selected")),onMouseEnter:qt.onMouseEnter,onMouseLeave:qt.onMouseLeave,onContextMenu:qt.onContextMenu,onClick:qt.onSelectorClick,onDoubleClick:qt.onSelectorDoubleClick},Fi,Dt,qt.renderDropIndicator())},qt.renderDropIndicator=function(){var _e=qt.props,Ne=_e.disabled,We=_e.eventKey,Re=qt.props.context,ve=Re.draggable,ie=Re.dropLevelOffset,Se=Re.dropPosition,Bn=Re.prefixCls,Ln=Re.indent,Ye=Re.dropIndicatorRender,Mn=Re.dragOverNodeKey,Wn=Re.direction,fi=!!ve,Hn=!Ne&&fi&&Mn===We,xi=Ln!=null?Ln:qt.cacheIndent;return qt.cacheIndent=Ln,Hn?Ye({dropPosition:Se,dropLevelOffset:ie,indent:xi,prefixCls:Bn,direction:Wn}):null},qt}return(0,Yt.Z)(be,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ze=this.props.selectable,Vt=this.props.context.selectable;return typeof ze=="boolean"?ze:Vt}},{key:"render",value:function(){var ze,Vt=this.props,Ge=Vt.eventKey,_e=Vt.className,Ne=Vt.style,We=Vt.dragOver,Re=Vt.dragOverGapTop,ve=Vt.dragOverGapBottom,ie=Vt.isLeaf,Se=Vt.isStart,Bn=Vt.isEnd,Ln=Vt.expanded,Ye=Vt.selected,Mn=Vt.checked,Wn=Vt.halfChecked,fi=Vt.loading,Hn=Vt.domRef,xi=Vt.active,nn=Vt.data,Fi=Vt.onMouseMove,ki=Vt.selectable,Nt=(0,re.Z)(Vt,ut),Dt=this.props.context,mt=Dt.prefixCls,ft=Dt.filterTreeNode,pt=Dt.keyEntities,At=Dt.dropContainerKey,ue=Dt.dropTargetKey,we=Dt.draggingNodeKey,le=this.isDisabled(),me=(0,zt.Z)(Nt,{aria:!0,data:!0}),Ue=(0,lt.Z)(pt,Ge)||{},ke=Ue.level,Ie=Bn[Bn.length-1],rn=this.isDraggable(),Gn=!le&&rn,dn=we===Ge,An=ki!==void 0?{"aria-selected":!!ki}:void 0;return Jt.createElement("div",(0,Ft.Z)({ref:Hn,className:oe()(_e,"".concat(mt,"-treenode"),(ze={},(0,ce.Z)(ze,"".concat(mt,"-treenode-disabled"),le),(0,ce.Z)(ze,"".concat(mt,"-treenode-switcher-").concat(Ln?"open":"close"),!ie),(0,ce.Z)(ze,"".concat(mt,"-treenode-checkbox-checked"),Mn),(0,ce.Z)(ze,"".concat(mt,"-treenode-checkbox-indeterminate"),Wn),(0,ce.Z)(ze,"".concat(mt,"-treenode-selected"),Ye),(0,ce.Z)(ze,"".concat(mt,"-treenode-loading"),fi),(0,ce.Z)(ze,"".concat(mt,"-treenode-active"),xi),(0,ce.Z)(ze,"".concat(mt,"-treenode-leaf-last"),Ie),(0,ce.Z)(ze,"".concat(mt,"-treenode-draggable"),rn),(0,ce.Z)(ze,"dragging",dn),(0,ce.Z)(ze,"drop-target",ue===Ge),(0,ce.Z)(ze,"drop-container",At===Ge),(0,ce.Z)(ze,"drag-over",!le&&We),(0,ce.Z)(ze,"drag-over-gap-top",!le&&Re),(0,ce.Z)(ze,"drag-over-gap-bottom",!le&&ve),(0,ce.Z)(ze,"filter-node",ft&&ft((0,rt.F)(this.props))),ze)),style:Ne,draggable:Gn,"aria-grabbed":dn,onDragStart:Gn?this.onDragStart:void 0,onDragEnter:rn?this.onDragEnter:void 0,onDragOver:rn?this.onDragOver:void 0,onDragLeave:rn?this.onDragLeave:void 0,onDrop:rn?this.onDrop:void 0,onDragEnd:rn?this.onDragEnd:void 0,onMouseMove:Fi},An,me),Jt.createElement(tt,{prefixCls:mt,level:ke,isStart:Se,isEnd:Bn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),be}(Jt.Component),Ht=function(de){return Jt.createElement(Ct.k.Consumer,null,function(be){return Jt.createElement(Ot,(0,Ft.Z)({},de,{context:be}))})};Ht.displayName="TreeNode",Ht.isTreeNode=1;var ne=Ht},39378:function(ui,wn,bt){"use strict";bt.d(wn,{k:function(){return ce}});var Ft=bt(59301),ce=Ft.createContext(null)},54844:function(ui,wn,bt){"use strict";bt.d(wn,{O:function(){return ne.Z},Z:function(){return Dt}});var Ft=bt(72308),ce=bt(49618),re=bt(62853),Be=bt(77321),ee=bt(80702),Yt=bt(96949),It=bt(55090),jt=bt(80237),Xt=bt(77205),Pt=bt(38793),oe=bt(92310),zt=bt.n(oe),Jt=bt(10228),Ct=bt(26112),et=bt(48736),tt=bt(59301),lt=bt(39378);function rt(mt){var ft=mt.dropPosition,pt=mt.dropLevelOffset,At=mt.indent,ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ft){case-1:ue.top=0,ue.left=-pt*At;break;case 1:ue.bottom=0,ue.left=-pt*At;break;case 0:ue.bottom=0,ue.left=At;break}return tt.createElement("div",{style:ue})}function ut(mt){if(mt==null)throw new TypeError("Cannot destructure "+mt)}var ct=bt(52487),wt=bt(74416),Mt=bt(34280),Ot=bt(45680),Ht=bt(77900),ne=bt(39417);function ae(mt,ft){var pt=tt.useState(!1),At=(0,ct.Z)(pt,2),ue=At[0],we=At[1];tt.useLayoutEffect(function(){if(ue)return mt(),function(){ft()}},[ue]),tt.useLayoutEffect(function(){return we(!0),function(){we(!1)}},[])}var de=bt(71430),be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],qt=function(ft,pt){var At=ft.className,ue=ft.style,we=ft.motion,le=ft.motionNodes,me=ft.motionType,Ue=ft.onMotionStart,ke=ft.onMotionEnd,Ie=ft.active,rn=ft.treeNodeRequiredProps,Gn=(0,wt.Z)(ft,be),dn=tt.useState(!0),An=(0,ct.Z)(dn,2),Dn=An[0],qn=An[1],Rn=tt.useContext(lt.k),Di=Rn.prefixCls,cr=le&&me!=="hide";(0,Mt.Z)(function(){le&&cr!==Dn&&qn(cr)},[le]);var Ji=function(){le&&Ue()},Sr=tt.useRef(!1),Nr=function(){le&&!Sr.current&&(Sr.current=!0,ke())};ae(Ji,Nr);var co=function(Kr){cr===Kr&&Nr()};return le?tt.createElement(Ht.default,(0,Ft.Z)({ref:pt,visible:Dn},we,{motionAppear:me==="show",onVisibleChanged:co}),function(to,Kr){var gr=to.className,Vr=to.style;return tt.createElement("div",{ref:Kr,className:zt()("".concat(Di,"-treenode-motion"),gr),style:Vr},le.map(function(pr){var zo=(0,Ft.Z)({},(ut(pr.data),pr.data)),es=pr.title,yo=pr.key,ks=pr.isStart,ws=pr.isEnd;delete zo.children;var Wt=(0,de.H8)(yo,rn);return tt.createElement(ne.Z,(0,Ft.Z)({},zo,Wt,{title:es,active:Ie,data:pr.data,key:yo,isStart:ks,isEnd:ws}))}))}):tt.createElement(ne.Z,(0,Ft.Z)({domRef:pt,className:At,style:ue},Gn,{active:Ie}))};qt.displayName="MotionTreeNode";var ze=tt.forwardRef(qt),Vt=ze;function Ge(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pt=mt.length,At=ft.length;if(Math.abs(pt-At)!==1)return{add:!1,key:null};function ue(we,le){var me=new Map;we.forEach(function(ke){me.set(ke,!0)});var Ue=le.filter(function(ke){return!me.has(ke)});return Ue.length===1?Ue[0]:null}return pt<At?{add:!0,key:ue(mt,ft)}:{add:!1,key:ue(ft,mt)}}function _e(mt,ft,pt){var At=mt.findIndex(function(me){return me.key===pt}),ue=mt[At+1],we=ft.findIndex(function(me){return me.key===pt});if(ue){var le=ft.findIndex(function(me){return me.key===ue.key});return ft.slice(we+1,le)}return ft.slice(we+1)}var Ne=["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"],We={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Re=function(){},ve="RC_TREE_MOTION_".concat(Math.random()),ie={key:ve},Se={key:ve,level:0,index:0,pos:"0",node:ie,nodes:[ie]},Bn={parent:null,children:[],pos:Se.pos,data:ie,title:null,key:ve,isStart:[],isEnd:[]};function Ln(mt,ft,pt,At){return ft===!1||!pt?mt:mt.slice(0,Math.ceil(pt/At)+1)}function Ye(mt){var ft=mt.key,pt=mt.pos;return(0,de.km)(ft,pt)}function Mn(mt){for(var ft=String(mt.data.key),pt=mt;pt.parent;)pt=pt.parent,ft="".concat(pt.data.key," > ").concat(ft);return ft}var Wn=tt.forwardRef(function(mt,ft){var pt=mt.prefixCls,At=mt.data,ue=mt.selectable,we=mt.checkable,le=mt.expandedKeys,me=mt.selectedKeys,Ue=mt.checkedKeys,ke=mt.loadedKeys,Ie=mt.loadingKeys,rn=mt.halfCheckedKeys,Gn=mt.keyEntities,dn=mt.disabled,An=mt.dragging,Dn=mt.dragOverNodeKey,qn=mt.dropPosition,Rn=mt.motion,Di=mt.height,cr=mt.itemHeight,Ji=mt.virtual,Sr=mt.focusable,Nr=mt.activeItem,co=mt.focused,to=mt.tabIndex,Kr=mt.onKeyDown,gr=mt.onFocus,Vr=mt.onBlur,pr=mt.onActiveChange,zo=mt.onListChangeStart,es=mt.onListChangeEnd,yo=(0,wt.Z)(mt,Ne),ks=tt.useRef(null),ws=tt.useRef(null);tt.useImperativeHandle(ft,function(){return{scrollTo:function(wi){ks.current.scrollTo(wi)},getIndentWidth:function(){return ws.current.offsetWidth}}});var Wt=tt.useState(le),xs=(0,ct.Z)(Wt,2),Ss=xs[0],Ms=xs[1],ma=tt.useState(At),Ea=(0,ct.Z)(ma,2),oa=Ea[0],so=Ea[1],br=tt.useState(At),kn=(0,ct.Z)(br,2),In=kn[0],Oe=kn[1],hi=tt.useState([]),Je=(0,ct.Z)(hi,2),fn=Je[0],Ke=Je[1],ni=tt.useState(null),Ci=(0,ct.Z)(ni,2),_i=Ci[0],qi=Ci[1],on=tt.useRef(At);on.current=At;function di(){var ii=on.current;so(ii),Oe(ii),Ke([]),qi(null),es()}(0,Mt.Z)(function(){Ms(le);var ii=Ge(Ss,le);if(ii.key!==null)if(ii.add){var wi=oa.findIndex(function(or){var Rr=or.key;return Rr===ii.key}),dr=Ln(_e(oa,At,ii.key),Ji,Di,cr),pi=oa.slice();pi.splice(wi+1,0,Bn),Oe(pi),Ke(dr),qi("show")}else{var yi=At.findIndex(function(or){var Rr=or.key;return Rr===ii.key}),vi=Ln(_e(At,oa,ii.key),Ji,Di,cr),er=At.slice();er.splice(yi+1,0,Bn),Oe(er),Ke(vi),qi("hide")}else oa!==At&&(so(At),Oe(At))},[le,At]),tt.useEffect(function(){An||di()},[An]);var Vi=Rn?In:At,kr={expandedKeys:le,selectedKeys:me,loadedKeys:ke,loadingKeys:Ie,checkedKeys:Ue,halfCheckedKeys:rn,dragOverNodeKey:Dn,dropPosition:qn,keyEntities:Gn};return tt.createElement(tt.Fragment,null,co&&Nr&&tt.createElement("span",{style:We,"aria-live":"assertive"},Mn(Nr)),tt.createElement("div",null,tt.createElement("input",{style:We,disabled:Sr===!1||dn,tabIndex:Sr!==!1?to:null,onKeyDown:Kr,onFocus:gr,onBlur:Vr,value:"",onChange:Re,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(pt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(pt,"-indent")},tt.createElement("div",{ref:ws,className:"".concat(pt,"-indent-unit")}))),tt.createElement(Ot.Z,(0,Ft.Z)({},yo,{data:Vi,itemKey:Ye,height:Di,fullHeight:!1,virtual:Ji,itemHeight:cr,prefixCls:"".concat(pt,"-list"),ref:ks,onVisibleChange:function(wi,dr){var pi=new Set(wi),yi=dr.filter(function(vi){return!pi.has(vi)});yi.some(function(vi){return Ye(vi)===ve})&&di()}}),function(ii){var wi=ii.pos,dr=(0,Ft.Z)({},(ut(ii.data),ii.data)),pi=ii.title,yi=ii.key,vi=ii.isStart,er=ii.isEnd,or=(0,de.km)(yi,wi);delete dr.key,delete dr.children;var Rr=(0,de.H8)(or,kr);return tt.createElement(Vt,(0,Ft.Z)({},dr,Rr,{title:pi,active:!!Nr&&yi===Nr.key,pos:wi,data:ii.data,isStart:vi,isEnd:er,motion:Rn,motionNodes:yi===ve?fn:null,motionType:_i,onMotionStart:zo,onMotionEnd:di,treeNodeRequiredProps:kr,onMouseMove:function(){pr(null)}}))}))});Wn.displayName="NodeList";var fi=Wn,Hn=bt(35654),xi=bt(90782),nn=bt(67841),Fi=10,ki=function(mt){(0,Xt.Z)(pt,mt);var ft=(0,Pt.Z)(pt);function pt(){var At;(0,Yt.Z)(this,pt);for(var ue=arguments.length,we=new Array(ue),le=0;le<ue;le++)we[le]=arguments[le];return At=ft.call.apply(ft,[this].concat(we)),At.destroyed=!1,At.delayedDragEnterLogic=void 0,At.loadingRetryTimes={},At.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,de.w$)()},At.dragStartMousePosition=null,At.dragNode=void 0,At.currentMouseOverDroppableNodeKey=null,At.listRef=tt.createRef(),At.onNodeDragStart=function(me,Ue){var ke=At.state,Ie=ke.expandedKeys,rn=ke.keyEntities,Gn=At.props.onDragStart,dn=Ue.props.eventKey;At.dragNode=Ue,At.dragStartMousePosition={x:me.clientX,y:me.clientY};var An=(0,Hn._5)(Ie,dn);At.setState({draggingNodeKey:dn,dragChildrenKeys:(0,Hn.wA)(dn,rn),indent:At.listRef.current.getIndentWidth()}),At.setExpandedKeys(An),window.addEventListener("dragend",At.onWindowDragEnd),Gn==null||Gn({event:me,node:(0,de.F)(Ue.props)})},At.onNodeDragEnter=function(me,Ue){var ke=At.state,Ie=ke.expandedKeys,rn=ke.keyEntities,Gn=ke.dragChildrenKeys,dn=ke.flattenNodes,An=ke.indent,Dn=At.props,qn=Dn.onDragEnter,Rn=Dn.onExpand,Di=Dn.allowDrop,cr=Dn.direction,Ji=Ue.props,Sr=Ji.pos,Nr=Ji.eventKey,co=(0,jt.Z)(At),to=co.dragNode;if(At.currentMouseOverDroppableNodeKey!==Nr&&(At.currentMouseOverDroppableNodeKey=Nr),!to){At.resetDragState();return}var Kr=(0,Hn.OM)(me,to,Ue,An,At.dragStartMousePosition,Di,dn,rn,Ie,cr),gr=Kr.dropPosition,Vr=Kr.dropLevelOffset,pr=Kr.dropTargetKey,zo=Kr.dropContainerKey,es=Kr.dropTargetPos,yo=Kr.dropAllowed,ks=Kr.dragOverNodeKey;if(Gn.indexOf(pr)!==-1||!yo){At.resetDragState();return}if(At.delayedDragEnterLogic||(At.delayedDragEnterLogic={}),Object.keys(At.delayedDragEnterLogic).forEach(function(ws){clearTimeout(At.delayedDragEnterLogic[ws])}),to.props.eventKey!==Ue.props.eventKey&&(me.persist(),At.delayedDragEnterLogic[Sr]=window.setTimeout(function(){if(At.state.draggingNodeKey!==null){var ws=(0,ee.Z)(Ie),Wt=(0,nn.Z)(rn,Ue.props.eventKey);Wt&&(Wt.children||[]).length&&(ws=(0,Hn.L0)(Ie,Ue.props.eventKey)),"expandedKeys"in At.props||At.setExpandedKeys(ws),Rn==null||Rn(ws,{node:(0,de.F)(Ue.props),expanded:!0,nativeEvent:me.nativeEvent})}},800)),to.props.eventKey===pr&&Vr===0){At.resetDragState();return}At.setState({dragOverNodeKey:ks,dropPosition:gr,dropLevelOffset:Vr,dropTargetKey:pr,dropContainerKey:zo,dropTargetPos:es,dropAllowed:yo}),qn==null||qn({event:me,node:(0,de.F)(Ue.props),expandedKeys:Ie})},At.onNodeDragOver=function(me,Ue){var ke=At.state,Ie=ke.dragChildrenKeys,rn=ke.flattenNodes,Gn=ke.keyEntities,dn=ke.expandedKeys,An=ke.indent,Dn=At.props,qn=Dn.onDragOver,Rn=Dn.allowDrop,Di=Dn.direction,cr=(0,jt.Z)(At),Ji=cr.dragNode;if(Ji){var Sr=(0,Hn.OM)(me,Ji,Ue,An,At.dragStartMousePosition,Rn,rn,Gn,dn,Di),Nr=Sr.dropPosition,co=Sr.dropLevelOffset,to=Sr.dropTargetKey,Kr=Sr.dropContainerKey,gr=Sr.dropAllowed,Vr=Sr.dropTargetPos,pr=Sr.dragOverNodeKey;Ie.indexOf(to)!==-1||!gr||(Ji.props.eventKey===to&&co===0?At.state.dropPosition===null&&At.state.dropLevelOffset===null&&At.state.dropTargetKey===null&&At.state.dropContainerKey===null&&At.state.dropTargetPos===null&&At.state.dropAllowed===!1&&At.state.dragOverNodeKey===null||At.resetDragState():Nr===At.state.dropPosition&&co===At.state.dropLevelOffset&&to===At.state.dropTargetKey&&Kr===At.state.dropContainerKey&&Vr===At.state.dropTargetPos&&gr===At.state.dropAllowed&&pr===At.state.dragOverNodeKey||At.setState({dropPosition:Nr,dropLevelOffset:co,dropTargetKey:to,dropContainerKey:Kr,dropTargetPos:Vr,dropAllowed:gr,dragOverNodeKey:pr}),qn==null||qn({event:me,node:(0,de.F)(Ue.props)}))}},At.onNodeDragLeave=function(me,Ue){At.currentMouseOverDroppableNodeKey===Ue.props.eventKey&&!me.currentTarget.contains(me.relatedTarget)&&(At.resetDragState(),At.currentMouseOverDroppableNodeKey=null);var ke=At.props.onDragLeave;ke==null||ke({event:me,node:(0,de.F)(Ue.props)})},At.onWindowDragEnd=function(me){At.onNodeDragEnd(me,null,!0),window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDragEnd=function(me,Ue){var ke=At.props.onDragEnd;At.setState({dragOverNodeKey:null}),At.cleanDragState(),ke==null||ke({event:me,node:(0,de.F)(Ue.props)}),At.dragNode=null,window.removeEventListener("dragend",At.onWindowDragEnd)},At.onNodeDrop=function(me,Ue){var ke,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rn=At.state,Gn=rn.dragChildrenKeys,dn=rn.dropPosition,An=rn.dropTargetKey,Dn=rn.dropTargetPos,qn=rn.dropAllowed;if(qn){var Rn=At.props.onDrop;if(At.setState({dragOverNodeKey:null}),At.cleanDragState(),An!==null){var Di=(0,Be.Z)((0,Be.Z)({},(0,de.H8)(An,At.getTreeNodeRequiredProps())),{},{active:((ke=At.getActiveItem())===null||ke===void 0?void 0:ke.key)===An,data:(0,nn.Z)(At.state.keyEntities,An).node}),cr=Gn.indexOf(An)!==-1;(0,et.ZP)(!cr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ji=(0,Hn.yx)(Dn),Sr={event:me,node:(0,de.F)(Di),dragNode:At.dragNode?(0,de.F)(At.dragNode.props):null,dragNodesKeys:[At.dragNode.props.eventKey].concat(Gn),dropToGap:dn!==0,dropPosition:dn+Number(Ji[Ji.length-1])};Ie||Rn==null||Rn(Sr),At.dragNode=null}}},At.cleanDragState=function(){var me=At.state.draggingNodeKey;me!==null&&At.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),At.dragStartMousePosition=null,At.currentMouseOverDroppableNodeKey=null},At.triggerExpandActionExpand=function(me,Ue){var ke=At.state,Ie=ke.expandedKeys,rn=ke.flattenNodes,Gn=Ue.expanded,dn=Ue.key,An=Ue.isLeaf;if(!(An||me.shiftKey||me.metaKey||me.ctrlKey)){var Dn=rn.filter(function(Rn){return Rn.key===dn})[0],qn=(0,de.F)((0,Be.Z)((0,Be.Z)({},(0,de.H8)(dn,At.getTreeNodeRequiredProps())),{},{data:Dn.data}));At.setExpandedKeys(Gn?(0,Hn._5)(Ie,dn):(0,Hn.L0)(Ie,dn)),At.onNodeExpand(me,qn)}},At.onNodeClick=function(me,Ue){var ke=At.props,Ie=ke.onClick,rn=ke.expandAction;rn==="click"&&At.triggerExpandActionExpand(me,Ue),Ie==null||Ie(me,Ue)},At.onNodeDoubleClick=function(me,Ue){var ke=At.props,Ie=ke.onDoubleClick,rn=ke.expandAction;rn==="doubleClick"&&At.triggerExpandActionExpand(me,Ue),Ie==null||Ie(me,Ue)},At.onNodeSelect=function(me,Ue){var ke=At.state.selectedKeys,Ie=At.state,rn=Ie.keyEntities,Gn=Ie.fieldNames,dn=At.props,An=dn.onSelect,Dn=dn.multiple,qn=Ue.selected,Rn=Ue[Gn.key],Di=!qn;Di?Dn?ke=(0,Hn.L0)(ke,Rn):ke=[Rn]:ke=(0,Hn._5)(ke,Rn);var cr=ke.map(function(Ji){var Sr=(0,nn.Z)(rn,Ji);return Sr?Sr.node:null}).filter(function(Ji){return Ji});At.setUncontrolledState({selectedKeys:ke}),An==null||An(ke,{event:"select",selected:Di,node:Ue,selectedNodes:cr,nativeEvent:me.nativeEvent})},At.onNodeCheck=function(me,Ue,ke){var Ie=At.state,rn=Ie.keyEntities,Gn=Ie.checkedKeys,dn=Ie.halfCheckedKeys,An=At.props,Dn=An.checkStrictly,qn=An.onCheck,Rn=Ue.key,Di,cr={event:"check",node:Ue,checked:ke,nativeEvent:me.nativeEvent};if(Dn){var Ji=ke?(0,Hn.L0)(Gn,Rn):(0,Hn._5)(Gn,Rn),Sr=(0,Hn._5)(dn,Rn);Di={checked:Ji,halfChecked:Sr},cr.checkedNodes=Ji.map(function(Vr){return(0,nn.Z)(rn,Vr)}).filter(function(Vr){return Vr}).map(function(Vr){return Vr.node}),At.setUncontrolledState({checkedKeys:Ji})}else{var Nr=(0,xi.S)([].concat((0,ee.Z)(Gn),[Rn]),!0,rn),co=Nr.checkedKeys,to=Nr.halfCheckedKeys;if(!ke){var Kr=new Set(co);Kr.delete(Rn);var gr=(0,xi.S)(Array.from(Kr),{checked:!1,halfCheckedKeys:to},rn);co=gr.checkedKeys,to=gr.halfCheckedKeys}Di=co,cr.checkedNodes=[],cr.checkedNodesPositions=[],cr.halfCheckedKeys=to,co.forEach(function(Vr){var pr=(0,nn.Z)(rn,Vr);if(pr){var zo=pr.node,es=pr.pos;cr.checkedNodes.push(zo),cr.checkedNodesPositions.push({node:zo,pos:es})}}),At.setUncontrolledState({checkedKeys:co},!1,{halfCheckedKeys:to})}qn==null||qn(Di,cr)},At.onNodeLoad=function(me){var Ue=me.key,ke=new Promise(function(Ie,rn){At.setState(function(Gn){var dn=Gn.loadedKeys,An=dn===void 0?[]:dn,Dn=Gn.loadingKeys,qn=Dn===void 0?[]:Dn,Rn=At.props,Di=Rn.loadData,cr=Rn.onLoad;if(!Di||An.indexOf(Ue)!==-1||qn.indexOf(Ue)!==-1)return null;var Ji=Di(me);return Ji.then(function(){var Sr=At.state.loadedKeys,Nr=(0,Hn.L0)(Sr,Ue);cr==null||cr(Nr,{event:"load",node:me}),At.setUncontrolledState({loadedKeys:Nr}),At.setState(function(co){return{loadingKeys:(0,Hn._5)(co.loadingKeys,Ue)}}),Ie()}).catch(function(Sr){if(At.setState(function(co){return{loadingKeys:(0,Hn._5)(co.loadingKeys,Ue)}}),At.loadingRetryTimes[Ue]=(At.loadingRetryTimes[Ue]||0)+1,At.loadingRetryTimes[Ue]>=Fi){var Nr=At.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),At.setUncontrolledState({loadedKeys:(0,Hn.L0)(Nr,Ue)}),Ie()}rn(Sr)}),{loadingKeys:(0,Hn.L0)(qn,Ue)}})});return ke.catch(function(){}),ke},At.onNodeMouseEnter=function(me,Ue){var ke=At.props.onMouseEnter;ke==null||ke({event:me,node:Ue})},At.onNodeMouseLeave=function(me,Ue){var ke=At.props.onMouseLeave;ke==null||ke({event:me,node:Ue})},At.onNodeContextMenu=function(me,Ue){var ke=At.props.onRightClick;ke&&(me.preventDefault(),ke({event:me,node:Ue}))},At.onFocus=function(){var me=At.props.onFocus;At.setState({focused:!0});for(var Ue=arguments.length,ke=new Array(Ue),Ie=0;Ie<Ue;Ie++)ke[Ie]=arguments[Ie];me==null||me.apply(void 0,ke)},At.onBlur=function(){var me=At.props.onBlur;At.setState({focused:!1}),At.onActiveChange(null);for(var Ue=arguments.length,ke=new Array(Ue),Ie=0;Ie<Ue;Ie++)ke[Ie]=arguments[Ie];me==null||me.apply(void 0,ke)},At.getTreeNodeRequiredProps=function(){var me=At.state,Ue=me.expandedKeys,ke=me.selectedKeys,Ie=me.loadedKeys,rn=me.loadingKeys,Gn=me.checkedKeys,dn=me.halfCheckedKeys,An=me.dragOverNodeKey,Dn=me.dropPosition,qn=me.keyEntities;return{expandedKeys:Ue||[],selectedKeys:ke||[],loadedKeys:Ie||[],loadingKeys:rn||[],checkedKeys:Gn||[],halfCheckedKeys:dn||[],dragOverNodeKey:An,dropPosition:Dn,keyEntities:qn}},At.setExpandedKeys=function(me){var Ue=At.state,ke=Ue.treeData,Ie=Ue.fieldNames,rn=(0,de.oH)(ke,me,Ie);At.setUncontrolledState({expandedKeys:me,flattenNodes:rn},!0)},At.onNodeExpand=function(me,Ue){var ke=At.state.expandedKeys,Ie=At.state,rn=Ie.listChanging,Gn=Ie.fieldNames,dn=At.props,An=dn.onExpand,Dn=dn.loadData,qn=Ue.expanded,Rn=Ue[Gn.key];if(!rn){var Di=ke.indexOf(Rn),cr=!qn;if((0,et.ZP)(qn&&Di!==-1||!qn&&Di===-1,"Expand state not sync with index check"),cr?ke=(0,Hn.L0)(ke,Rn):ke=(0,Hn._5)(ke,Rn),At.setExpandedKeys(ke),An==null||An(ke,{node:Ue,expanded:cr,nativeEvent:me.nativeEvent}),cr&&Dn){var Ji=At.onNodeLoad(Ue);Ji&&Ji.then(function(){var Sr=(0,de.oH)(At.state.treeData,ke,Gn);At.setUncontrolledState({flattenNodes:Sr})}).catch(function(){var Sr=At.state.expandedKeys,Nr=(0,Hn._5)(Sr,Rn);At.setExpandedKeys(Nr)})}}},At.onListChangeStart=function(){At.setUncontrolledState({listChanging:!0})},At.onListChangeEnd=function(){setTimeout(function(){At.setUncontrolledState({listChanging:!1})})},At.onActiveChange=function(me){var Ue=At.state.activeKey,ke=At.props.onActiveChange;Ue!==me&&(At.setState({activeKey:me}),me!==null&&At.scrollTo({key:me}),ke==null||ke(me))},At.getActiveItem=function(){var me=At.state,Ue=me.activeKey,ke=me.flattenNodes;return Ue===null?null:ke.find(function(Ie){var rn=Ie.key;return rn===Ue})||null},At.offsetActiveKey=function(me){var Ue=At.state,ke=Ue.flattenNodes,Ie=Ue.activeKey,rn=ke.findIndex(function(An){var Dn=An.key;return Dn===Ie});rn===-1&&me<0&&(rn=ke.length),rn=(rn+me+ke.length)%ke.length;var Gn=ke[rn];if(Gn){var dn=Gn.key;At.onActiveChange(dn)}else At.onActiveChange(null)},At.onKeyDown=function(me){var Ue=At.state,ke=Ue.activeKey,Ie=Ue.expandedKeys,rn=Ue.checkedKeys,Gn=Ue.fieldNames,dn=At.props,An=dn.onKeyDown,Dn=dn.checkable,qn=dn.selectable;switch(me.which){case Jt.Z.UP:{At.offsetActiveKey(-1),me.preventDefault();break}case Jt.Z.DOWN:{At.offsetActiveKey(1),me.preventDefault();break}}var Rn=At.getActiveItem();if(Rn&&Rn.data){var Di=At.getTreeNodeRequiredProps(),cr=Rn.data.isLeaf===!1||!!(Rn.data[Gn.children]||[]).length,Ji=(0,de.F)((0,Be.Z)((0,Be.Z)({},(0,de.H8)(ke,Di)),{},{data:Rn.data,active:!0}));switch(me.which){case Jt.Z.LEFT:{cr&&Ie.includes(ke)?At.onNodeExpand({},Ji):Rn.parent&&At.onActiveChange(Rn.parent.key),me.preventDefault();break}case Jt.Z.RIGHT:{cr&&!Ie.includes(ke)?At.onNodeExpand({},Ji):Rn.children&&Rn.children.length&&At.onActiveChange(Rn.children[0].key),me.preventDefault();break}case Jt.Z.ENTER:case Jt.Z.SPACE:{Dn&&!Ji.disabled&&Ji.checkable!==!1&&!Ji.disableCheckbox?At.onNodeCheck({},Ji,!rn.includes(ke)):!Dn&&qn&&!Ji.disabled&&Ji.selectable!==!1&&At.onNodeSelect({},Ji);break}}}An==null||An(me)},At.setUncontrolledState=function(me){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!At.destroyed){var Ie=!1,rn=!0,Gn={};Object.keys(me).forEach(function(dn){if(dn in At.props){rn=!1;return}Ie=!0,Gn[dn]=me[dn]}),Ie&&(!Ue||rn)&&At.setState((0,Be.Z)((0,Be.Z)({},Gn),ke))}},At.scrollTo=function(me){At.listRef.current.scrollTo(me)},At}return(0,It.Z)(pt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ue=this.props.activeKey;ue!==void 0&&ue!==this.state.activeKey&&(this.setState({activeKey:ue}),ue!==null&&this.scrollTo({key:ue}))}},{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 ue,we=this.state,le=we.focused,me=we.flattenNodes,Ue=we.keyEntities,ke=we.draggingNodeKey,Ie=we.activeKey,rn=we.dropLevelOffset,Gn=we.dropContainerKey,dn=we.dropTargetKey,An=we.dropPosition,Dn=we.dragOverNodeKey,qn=we.indent,Rn=this.props,Di=Rn.prefixCls,cr=Rn.className,Ji=Rn.style,Sr=Rn.showLine,Nr=Rn.focusable,co=Rn.tabIndex,to=co===void 0?0:co,Kr=Rn.selectable,gr=Rn.showIcon,Vr=Rn.icon,pr=Rn.switcherIcon,zo=Rn.draggable,es=Rn.checkable,yo=Rn.checkStrictly,ks=Rn.disabled,ws=Rn.motion,Wt=Rn.loadData,xs=Rn.filterTreeNode,Ss=Rn.height,Ms=Rn.itemHeight,ma=Rn.virtual,Ea=Rn.titleRender,oa=Rn.dropIndicatorRender,so=Rn.onContextMenu,br=Rn.onScroll,kn=Rn.direction,In=Rn.rootClassName,Oe=Rn.rootStyle,hi=(0,Ct.Z)(this.props,{aria:!0,data:!0}),Je;return zo&&((0,re.Z)(zo)==="object"?Je=zo:typeof zo=="function"?Je={nodeDraggable:zo}:Je={}),tt.createElement(lt.k.Provider,{value:{prefixCls:Di,selectable:Kr,showIcon:gr,icon:Vr,switcherIcon:pr,draggable:Je,draggingNodeKey:ke,checkable:es,checkStrictly:yo,disabled:ks,keyEntities:Ue,dropLevelOffset:rn,dropContainerKey:Gn,dropTargetKey:dn,dropPosition:An,dragOverNodeKey:Dn,indent:qn,direction:kn,dropIndicatorRender:oa,loadData:Wt,filterTreeNode:xs,titleRender:Ea,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:zt()(Di,cr,In,(ue={},(0,ce.Z)(ue,"".concat(Di,"-show-line"),Sr),(0,ce.Z)(ue,"".concat(Di,"-focused"),le),(0,ce.Z)(ue,"".concat(Di,"-active-focused"),Ie!==null),ue)),style:Oe},tt.createElement(fi,(0,Ft.Z)({ref:this.listRef,prefixCls:Di,style:Ji,data:me,disabled:ks,selectable:Kr,checkable:!!es,motion:ws,dragging:ke!==null,height:Ss,itemHeight:Ms,virtual:ma,focusable:Nr,focused:le,tabIndex:to,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:so,onScroll:br},this.getTreeNodeRequiredProps(),hi))))}}],[{key:"getDerivedStateFromProps",value:function(ue,we){var le=we.prevProps,me={prevProps:ue};function Ue(Nr){return!le&&Nr in ue||le&&le[Nr]!==ue[Nr]}var ke,Ie=we.fieldNames;if(Ue("fieldNames")&&(Ie=(0,de.w$)(ue.fieldNames),me.fieldNames=Ie),Ue("treeData")?ke=ue.treeData:Ue("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ke=(0,de.zn)(ue.children)),ke){me.treeData=ke;var rn=(0,de.I8)(ke,{fieldNames:Ie});me.keyEntities=(0,Be.Z)((0,ce.Z)({},ve,Se),rn.keyEntities)}var Gn=me.keyEntities||we.keyEntities;if(Ue("expandedKeys")||le&&Ue("autoExpandParent"))me.expandedKeys=ue.autoExpandParent||!le&&ue.defaultExpandParent?(0,Hn.r7)(ue.expandedKeys,Gn):ue.expandedKeys;else if(!le&&ue.defaultExpandAll){var dn=(0,Be.Z)({},Gn);delete dn[ve],me.expandedKeys=Object.keys(dn).map(function(Nr){return dn[Nr].key})}else!le&&ue.defaultExpandedKeys&&(me.expandedKeys=ue.autoExpandParent||ue.defaultExpandParent?(0,Hn.r7)(ue.defaultExpandedKeys,Gn):ue.defaultExpandedKeys);if(me.expandedKeys||delete me.expandedKeys,ke||me.expandedKeys){var An=(0,de.oH)(ke||we.treeData,me.expandedKeys||we.expandedKeys,Ie);me.flattenNodes=An}if(ue.selectable&&(Ue("selectedKeys")?me.selectedKeys=(0,Hn.BT)(ue.selectedKeys,ue):!le&&ue.defaultSelectedKeys&&(me.selectedKeys=(0,Hn.BT)(ue.defaultSelectedKeys,ue))),ue.checkable){var Dn;if(Ue("checkedKeys")?Dn=(0,Hn.E6)(ue.checkedKeys)||{}:!le&&ue.defaultCheckedKeys?Dn=(0,Hn.E6)(ue.defaultCheckedKeys)||{}:ke&&(Dn=(0,Hn.E6)(ue.checkedKeys)||{checkedKeys:we.checkedKeys,halfCheckedKeys:we.halfCheckedKeys}),Dn){var qn=Dn,Rn=qn.checkedKeys,Di=Rn===void 0?[]:Rn,cr=qn.halfCheckedKeys,Ji=cr===void 0?[]:cr;if(!ue.checkStrictly){var Sr=(0,xi.S)(Di,!0,Gn);Di=Sr.checkedKeys,Ji=Sr.halfCheckedKeys}me.checkedKeys=Di,me.halfCheckedKeys=Ji}}return Ue("loadedKeys")&&(me.loadedKeys=ue.loadedKeys),me}}]),pt}(tt.Component);ki.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},ki.TreeNode=ne.Z;var Nt=ki,Dt=Nt},35654:function(ui,wn,bt){"use strict";bt.d(wn,{BT:function(){return tt},E6:function(){return ut},L0:function(){return Pt},OM:function(){return et},_5:function(){return Xt},r7:function(){return ct},wA:function(){return zt},yx:function(){return oe}});var Ft=bt(80702),ce=bt(62853),re=bt(48736),Be=bt(59301),ee=bt(39417),Yt=bt(67841),It=bt(71430),jt=null;function Xt(wt,Mt){if(!wt)return[];var Ot=wt.slice(),Ht=Ot.indexOf(Mt);return Ht>=0&&Ot.splice(Ht,1),Ot}function Pt(wt,Mt){var Ot=(wt||[]).slice();return Ot.indexOf(Mt)===-1&&Ot.push(Mt),Ot}function oe(wt){return wt.split("-")}function zt(wt,Mt){var Ot=[],Ht=(0,Yt.Z)(Mt,wt);function ne(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ae.forEach(function(de){var be=de.key,qt=de.children;Ot.push(be),ne(qt)})}return ne(Ht.children),Ot}function Jt(wt){if(wt.parent){var Mt=oe(wt.pos);return Number(Mt[Mt.length-1])===wt.parent.children.length-1}return!1}function Ct(wt){var Mt=oe(wt.pos);return Number(Mt[Mt.length-1])===0}function et(wt,Mt,Ot,Ht,ne,ae,de,be,qt,ze){var Vt,Ge=wt.clientX,_e=wt.clientY,Ne=wt.target.getBoundingClientRect(),We=Ne.top,Re=Ne.height,ve=(ze==="rtl"?-1:1)*(((ne==null?void 0:ne.x)||0)-Ge),ie=(ve-12)/Ht,Se=(0,Yt.Z)(be,Ot.props.eventKey);if(_e<We+Re/2){var Bn=de.findIndex(function(Dt){return Dt.key===Se.key}),Ln=Bn<=0?0:Bn-1,Ye=de[Ln].key;Se=(0,Yt.Z)(be,Ye)}var Mn=Se.key,Wn=Se,fi=Se.key,Hn=0,xi=0;if(!qt.includes(Mn))for(var nn=0;nn<ie&&Jt(Se);nn+=1)Se=Se.parent,xi+=1;var Fi=Mt.props.data,ki=Se.node,Nt=!0;return Ct(Se)&&Se.level===0&&_e<We+Re/2&&ae({dragNode:Fi,dropNode:ki,dropPosition:-1})&&Se.key===Ot.props.eventKey?Hn=-1:(Wn.children||[]).length&&qt.includes(fi)?ae({dragNode:Fi,dropNode:ki,dropPosition:0})?Hn=0:Nt=!1:xi===0?ie>-1.5?ae({dragNode:Fi,dropNode:ki,dropPosition:1})?Hn=1:Nt=!1:ae({dragNode:Fi,dropNode:ki,dropPosition:0})?Hn=0:ae({dragNode:Fi,dropNode:ki,dropPosition:1})?Hn=1:Nt=!1:ae({dragNode:Fi,dropNode:ki,dropPosition:1})?Hn=1:Nt=!1,{dropPosition:Hn,dropLevelOffset:xi,dropTargetKey:Se.key,dropTargetPos:Se.pos,dragOverNodeKey:fi,dropContainerKey:Hn===0?null:((Vt=Se.parent)===null||Vt===void 0?void 0:Vt.key)||null,dropAllowed:Nt}}function tt(wt,Mt){if(wt){var Ot=Mt.multiple;return Ot?wt.slice():wt.length?[wt[0]]:wt}}var lt=function(Mt){return Mt};function rt(wt,Mt){if(!wt)return[];var Ot=Mt||{},Ht=Ot.processProps,ne=Ht===void 0?lt:Ht,ae=Array.isArray(wt)?wt:[wt];return ae.map(function(de){var be=de.children,qt=_objectWithoutProperties(de,jt),ze=rt(be,Mt);return React.createElement(TreeNode,_extends({key:qt.key},ne(qt)),ze)})}function ut(wt){if(!wt)return null;var Mt;if(Array.isArray(wt))Mt={checkedKeys:wt,halfCheckedKeys:void 0};else if((0,ce.Z)(wt)==="object")Mt={checkedKeys:wt.checked||void 0,halfCheckedKeys:wt.halfChecked||void 0};else return(0,re.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Mt}function ct(wt,Mt){var Ot=new Set;function Ht(ne){if(!Ot.has(ne)){var ae=(0,Yt.Z)(Mt,ne);if(ae){Ot.add(ne);var de=ae.parent,be=ae.node;be.disabled||de&&Ht(de.key)}}}return(wt||[]).forEach(function(ne){Ht(ne)}),(0,Ft.Z)(Ot)}},90782:function(ui,wn,bt){"use strict";bt.d(wn,{S:function(){return It}});var Ft=bt(48736),ce=bt(67841);function re(jt,Xt){var Pt=new Set;return jt.forEach(function(oe){Xt.has(oe)||Pt.add(oe)}),Pt}function Be(jt){var Xt=jt||{},Pt=Xt.disabled,oe=Xt.disableCheckbox,zt=Xt.checkable;return!!(Pt||oe)||zt===!1}function ee(jt,Xt,Pt,oe){for(var zt=new Set(jt),Jt=new Set,Ct=0;Ct<=Pt;Ct+=1){var et=Xt.get(Ct)||new Set;et.forEach(function(ut){var ct=ut.key,wt=ut.node,Mt=ut.children,Ot=Mt===void 0?[]:Mt;zt.has(ct)&&!oe(wt)&&Ot.filter(function(Ht){return!oe(Ht.node)}).forEach(function(Ht){zt.add(Ht.key)})})}for(var tt=new Set,lt=Pt;lt>=0;lt-=1){var rt=Xt.get(lt)||new Set;rt.forEach(function(ut){var ct=ut.parent,wt=ut.node;if(!(oe(wt)||!ut.parent||tt.has(ut.parent.key))){if(oe(ut.parent.node)){tt.add(ct.key);return}var Mt=!0,Ot=!1;(ct.children||[]).filter(function(Ht){return!oe(Ht.node)}).forEach(function(Ht){var ne=Ht.key,ae=zt.has(ne);Mt&&!ae&&(Mt=!1),!Ot&&(ae||Jt.has(ne))&&(Ot=!0)}),Mt&&zt.add(ct.key),Ot&&Jt.add(ct.key),tt.add(ct.key)}})}return{checkedKeys:Array.from(zt),halfCheckedKeys:Array.from(re(Jt,zt))}}function Yt(jt,Xt,Pt,oe,zt){for(var Jt=new Set(jt),Ct=new Set(Xt),et=0;et<=oe;et+=1){var tt=Pt.get(et)||new Set;tt.forEach(function(ct){var wt=ct.key,Mt=ct.node,Ot=ct.children,Ht=Ot===void 0?[]:Ot;!Jt.has(wt)&&!Ct.has(wt)&&!zt(Mt)&&Ht.filter(function(ne){return!zt(ne.node)}).forEach(function(ne){Jt.delete(ne.key)})})}Ct=new Set;for(var lt=new Set,rt=oe;rt>=0;rt-=1){var ut=Pt.get(rt)||new Set;ut.forEach(function(ct){var wt=ct.parent,Mt=ct.node;if(!(zt(Mt)||!ct.parent||lt.has(ct.parent.key))){if(zt(ct.parent.node)){lt.add(wt.key);return}var Ot=!0,Ht=!1;(wt.children||[]).filter(function(ne){return!zt(ne.node)}).forEach(function(ne){var ae=ne.key,de=Jt.has(ae);Ot&&!de&&(Ot=!1),!Ht&&(de||Ct.has(ae))&&(Ht=!0)}),Ot||Jt.delete(wt.key),Ht&&Ct.add(wt.key),lt.add(wt.key)}})}return{checkedKeys:Array.from(Jt),halfCheckedKeys:Array.from(re(Ct,Jt))}}function It(jt,Xt,Pt,oe){var zt=[],Jt;oe?Jt=oe:Jt=Be;var Ct=new Set(jt.filter(function(rt){var ut=!!(0,ce.Z)(Pt,rt);return ut||zt.push(rt),ut})),et=new Map,tt=0;Object.keys(Pt).forEach(function(rt){var ut=Pt[rt],ct=ut.level,wt=et.get(ct);wt||(wt=new Set,et.set(ct,wt)),wt.add(ut),tt=Math.max(tt,ct)}),(0,Ft.ZP)(!zt.length,"Tree missing follow keys: ".concat(zt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var lt;return Xt===!0?lt=ee(Ct,et,tt,Jt):lt=Yt(Ct,Xt.halfCheckedKeys,et,tt,Jt),lt}},67841:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return Ft}});function Ft(ce,re){return ce[re]}},71430:function(ui,wn,bt){"use strict";bt.d(wn,{F:function(){return ct},H8:function(){return ut},I8:function(){return rt},km:function(){return zt},oH:function(){return tt},w$:function(){return Jt},zn:function(){return et}});var Ft=bt(62853),ce=bt(80702),re=bt(77321),Be=bt(74416),ee=bt(11592),Yt=bt(2738),It=bt(48736),jt=bt(67841),Xt=["children"];function Pt(wt,Mt){return"".concat(wt,"-").concat(Mt)}function oe(wt){return wt&&wt.type&&wt.type.isTreeNode}function zt(wt,Mt){return wt!=null?wt:Mt}function Jt(wt){var Mt=wt||{},Ot=Mt.title,Ht=Mt._title,ne=Mt.key,ae=Mt.children,de=Ot||"title";return{title:de,_title:Ht||[de],key:ne||"key",children:ae||"children"}}function Ct(wt,Mt){var Ot=new Map;function Ht(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ne||[]).forEach(function(de){var be=de[Mt.key],qt=de[Mt.children];warning(be!=null,"Tree node must have a certain key: [".concat(ae).concat(be,"]"));var ze=String(be);warning(!Ot.has(ze)||be===null||be===void 0,"Same 'key' exist in the Tree: ".concat(ze)),Ot.set(ze,!0),Ht(qt,"".concat(ae).concat(ze," > "))})}Ht(wt)}function et(wt){function Mt(Ot){var Ht=(0,ee.Z)(Ot);return Ht.map(function(ne){if(!oe(ne))return(0,It.ZP)(!ne,"Tree/TreeNode can only accept TreeNode as children."),null;var ae=ne.key,de=ne.props,be=de.children,qt=(0,Be.Z)(de,Xt),ze=(0,re.Z)({key:ae},qt),Vt=Mt(be);return Vt.length&&(ze.children=Vt),ze}).filter(function(ne){return ne})}return Mt(wt)}function tt(wt,Mt,Ot){var Ht=Jt(Ot),ne=Ht._title,ae=Ht.key,de=Ht.children,be=new Set(Mt===!0?[]:Mt),qt=[];function ze(Vt){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Vt.map(function(_e,Ne){for(var We=Pt(Ge?Ge.pos:"0",Ne),Re=zt(_e[ae],We),ve,ie=0;ie<ne.length;ie+=1){var Se=ne[ie];if(_e[Se]!==void 0){ve=_e[Se];break}}var Bn=(0,re.Z)((0,re.Z)({},(0,Yt.Z)(_e,[].concat((0,ce.Z)(ne),[ae,de]))),{},{title:ve,key:Re,parent:Ge,pos:We,children:null,data:_e,isStart:[].concat((0,ce.Z)(Ge?Ge.isStart:[]),[Ne===0]),isEnd:[].concat((0,ce.Z)(Ge?Ge.isEnd:[]),[Ne===Vt.length-1])});return qt.push(Bn),Mt===!0||be.has(Re)?Bn.children=ze(_e[de]||[],Bn):Bn.children=[],Bn})}return ze(wt),qt}function lt(wt,Mt,Ot){var Ht={};(0,Ft.Z)(Ot)==="object"?Ht=Ot:Ht={externalGetKey:Ot},Ht=Ht||{};var ne=Ht,ae=ne.childrenPropName,de=ne.externalGetKey,be=ne.fieldNames,qt=Jt(be),ze=qt.key,Vt=qt.children,Ge=ae||Vt,_e;de?typeof de=="string"?_e=function(Re){return Re[de]}:typeof de=="function"&&(_e=function(Re){return de(Re)}):_e=function(Re,ve){return zt(Re[ze],ve)};function Ne(We,Re,ve,ie){var Se=We?We[Ge]:wt,Bn=We?Pt(ve.pos,Re):"0",Ln=We?[].concat((0,ce.Z)(ie),[We]):[];if(We){var Ye=_e(We,Bn),Mn={node:We,index:Re,pos:Bn,key:Ye,parentPos:ve.node?ve.pos:null,level:ve.level+1,nodes:Ln};Mt(Mn)}Se&&Se.forEach(function(Wn,fi){Ne(Wn,fi,{node:We,pos:Bn,level:ve?ve.level+1:-1},Ln)})}Ne(null)}function rt(wt){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ot=Mt.initWrapper,Ht=Mt.processEntity,ne=Mt.onProcessFinished,ae=Mt.externalGetKey,de=Mt.childrenPropName,be=Mt.fieldNames,qt=arguments.length>2?arguments[2]:void 0,ze=ae||qt,Vt={},Ge={},_e={posEntities:Vt,keyEntities:Ge};return Ot&&(_e=Ot(_e)||_e),lt(wt,function(Ne){var We=Ne.node,Re=Ne.index,ve=Ne.pos,ie=Ne.key,Se=Ne.parentPos,Bn=Ne.level,Ln=Ne.nodes,Ye={node:We,nodes:Ln,index:Re,key:ie,pos:ve,level:Bn},Mn=zt(ie,ve);Vt[ve]=Ye,Ge[Mn]=Ye,Ye.parent=Vt[Se],Ye.parent&&(Ye.parent.children=Ye.parent.children||[],Ye.parent.children.push(Ye)),Ht&&Ht(Ye,_e)},{externalGetKey:ze,childrenPropName:de,fieldNames:be}),ne&&ne(_e),_e}function ut(wt,Mt){var Ot=Mt.expandedKeys,Ht=Mt.selectedKeys,ne=Mt.loadedKeys,ae=Mt.loadingKeys,de=Mt.checkedKeys,be=Mt.halfCheckedKeys,qt=Mt.dragOverNodeKey,ze=Mt.dropPosition,Vt=Mt.keyEntities,Ge=(0,jt.Z)(Vt,wt),_e={eventKey:wt,expanded:Ot.indexOf(wt)!==-1,selected:Ht.indexOf(wt)!==-1,loaded:ne.indexOf(wt)!==-1,loading:ae.indexOf(wt)!==-1,checked:de.indexOf(wt)!==-1,halfChecked:be.indexOf(wt)!==-1,pos:String(Ge?Ge.pos:""),dragOver:qt===wt&&ze===0,dragOverGapTop:qt===wt&&ze===-1,dragOverGapBottom:qt===wt&&ze===1};return _e}function ct(wt){var Mt=wt.data,Ot=wt.expanded,Ht=wt.selected,ne=wt.checked,ae=wt.loaded,de=wt.loading,be=wt.halfChecked,qt=wt.dragOver,ze=wt.dragOverGapTop,Vt=wt.dragOverGapBottom,Ge=wt.pos,_e=wt.active,Ne=wt.eventKey,We=(0,re.Z)((0,re.Z)({},Mt),{},{expanded:Ot,selected:Ht,checked:ne,loaded:ae,loading:de,halfChecked:be,dragOver:qt,dragOverGapTop:ze,dragOverGapBottom:Vt,pos:Ge,active:_e,key:Ne});return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,It.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),wt}}),We}},8224:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ce}});var Ft=bt(4676);function ce(re,Be,ee,Yt){var It=Ft.unstable_batchedUpdates?function(Xt){Ft.unstable_batchedUpdates(ee,Xt)}:ee;return re!=null&&re.addEventListener&&re.addEventListener(Be,It,Yt),{remove:function(){re!=null&&re.removeEventListener&&re.removeEventListener(Be,It,Yt)}}}},55468:function(ui,wn,bt){"use strict";bt.d(wn,{g1:function(){return oe},os:function(){return Jt}});var Ft=/margin|padding|width|height|max|min|offset/,ce={left:!0,top:!0},re={cssFloat:1,styleFloat:1,float:1};function Be(Ct){return Ct.nodeType===1?Ct.ownerDocument.defaultView.getComputedStyle(Ct,null):{}}function ee(Ct,et,tt){if(et=et.toLowerCase(),tt==="auto"){if(et==="height")return Ct.offsetHeight;if(et==="width")return Ct.offsetWidth}return et in ce||(ce[et]=Ft.test(et)),ce[et]?parseFloat(tt)||0:tt}function Yt(Ct,et){var tt=arguments.length,lt=Be(Ct);return et=re[et]?"cssFloat"in Ct.style?"cssFloat":"styleFloat":et,tt===1?lt:ee(Ct,et,lt[et]||Ct.style[et])}function It(Ct,et,tt){var lt=arguments.length;if(et=re[et]?"cssFloat"in Ct.style?"cssFloat":"styleFloat":et,lt===3)return typeof tt=="number"&&Ft.test(et)&&(tt="".concat(tt,"px")),Ct.style[et]=tt,tt;for(var rt in et)et.hasOwnProperty(rt)&&It(Ct,rt,et[rt]);return Be(Ct)}function jt(Ct){return Ct===document.body?document.documentElement.clientWidth:Ct.offsetWidth}function Xt(Ct){return Ct===document.body?window.innerHeight||document.documentElement.clientHeight:Ct.offsetHeight}function Pt(){var Ct=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ct,height:et}}function oe(){var Ct=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:Ct,height:et}}function zt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Jt(Ct){var et=Ct.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)}}},24514:function(ui,wn,bt){"use strict";bt.d(wn,{G:function(){return Be}});var Ft=bt(47273),ce=function(Yt){if((0,Ft.Z)()&&window.document.documentElement){var It=Array.isArray(Yt)?Yt:[Yt],jt=window.document.documentElement;return It.some(function(Xt){return Xt in jt.style})}return!1},re=function(Yt,It){if(!ce(Yt))return!1;var jt=document.createElement("div"),Xt=jt.style[Yt];return jt.style[Yt]=It,jt.style[Yt]!==Xt};function Be(ee,Yt){return!Array.isArray(ee)&&Yt!==void 0?re(ee,Yt):ce(ee)}},45680:function(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return ki}});var Ft=bt(72308),ce=bt(62853),re=bt(77321),Be=bt(49618),ee=bt(52487),Yt=bt(74416),It=bt(92310),jt=bt.n(It),Xt=bt(29301),Pt=bt(70425),oe=bt(34280),zt=bt(59301),Jt=bt(4676),Ct=zt.forwardRef(function(Nt,Dt){var mt=Nt.height,ft=Nt.offsetY,pt=Nt.offsetX,At=Nt.children,ue=Nt.prefixCls,we=Nt.onInnerResize,le=Nt.innerProps,me=Nt.rtl,Ue=Nt.extra,ke={},Ie={display:"flex",flexDirection:"column"};return ft!==void 0&&(ke={height:mt,position:"relative",overflow:"hidden"},Ie=(0,re.Z)((0,re.Z)({},Ie),{},(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({transform:"translateY(".concat(ft,"px)")},me?"marginRight":"marginLeft",-pt),"position","absolute"),"left",0),"right",0),"top",0))),zt.createElement("div",{style:ke},zt.createElement(Xt.Z,{onResize:function(Gn){var dn=Gn.offsetHeight;dn&&we&&we()}},zt.createElement("div",(0,Ft.Z)({style:Ie,className:jt()((0,Be.Z)({},"".concat(ue,"-holder-inner"),ue)),ref:Dt},le),At,Ue)))});Ct.displayName="Filler";var et=Ct;function tt(Nt){var Dt=Nt.children,mt=Nt.setRef,ft=zt.useCallback(function(pt){mt(pt)},[]);return zt.cloneElement(Dt,{ref:ft})}function lt(Nt,Dt,mt,ft,pt,At,ue,we){var le=we.getKey;return Nt.slice(Dt,mt+1).map(function(me,Ue){var ke=Dt+Ue,Ie=ue(me,ke,{style:{width:ft},offsetX:pt}),rn=le(me);return zt.createElement(tt,{key:rn,setRef:function(dn){return At(me,dn)}},Ie)})}function rt(Nt,Dt,mt,ft){var pt=mt-Nt,At=Dt-mt,ue=Math.min(pt,At)*2;if(ft<=ue){var we=Math.floor(ft/2);return ft%2?mt+we+1:mt-we}return pt>At?mt-(ft-At):mt+(ft-pt)}function ut(Nt,Dt,mt){var ft=Nt.length,pt=Dt.length,At,ue;if(ft===0&&pt===0)return null;ft<pt?(At=Nt,ue=Dt):(At=Dt,ue=Nt);var we={__EMPTY_ITEM__:!0};function le(Gn){return Gn!==void 0?mt(Gn):we}for(var me=null,Ue=Math.abs(ft-pt)!==1,ke=0;ke<ue.length;ke+=1){var Ie=le(At[ke]),rn=le(ue[ke]);if(Ie!==rn){me=ke,Ue=Ue||Ie!==le(ue[ke+1]);break}}return me===null?null:{index:me,multiple:Ue}}function ct(Nt,Dt,mt){var ft=zt.useState(Nt),pt=(0,ee.Z)(ft,2),At=pt[0],ue=pt[1],we=zt.useState(null),le=(0,ee.Z)(we,2),me=le[0],Ue=le[1];return zt.useEffect(function(){var ke=ut(At||[],Nt||[],Dt);(ke==null?void 0:ke.index)!==void 0&&(mt==null||mt(ke.index),Ue(Nt[ke.index])),ue(Nt)},[Nt]),[me]}var wt=bt(16089),Mt=(typeof navigator=="undefined"?"undefined":(0,ce.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ot=Mt,Ht=function(Nt,Dt,mt,ft){var pt=(0,zt.useRef)(!1),At=(0,zt.useRef)(null);function ue(){clearTimeout(At.current),pt.current=!0,At.current=setTimeout(function(){pt.current=!1},50)}var we=(0,zt.useRef)({top:Nt,bottom:Dt,left:mt,right:ft});return we.current.top=Nt,we.current.bottom=Dt,we.current.left=mt,we.current.right=ft,function(le,me){var Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ke=le?me<0&&we.current.left||me>0&&we.current.right:me<0&&we.current.top||me>0&&we.current.bottom;return Ue&&ke?(clearTimeout(At.current),pt.current=!1):(!ke||pt.current)&&ue(),!pt.current&&ke}};function ne(Nt,Dt,mt,ft,pt,At,ue){var we=(0,zt.useRef)(0),le=(0,zt.useRef)(null),me=(0,zt.useRef)(null),Ue=(0,zt.useRef)(!1),ke=Ht(Dt,mt,ft,pt);function Ie(qn,Rn){if(wt.Z.cancel(le.current),!ke(!1,Rn)){var Di=qn;if(!Di._virtualHandled)Di._virtualHandled=!0;else return;we.current+=Rn,me.current=Rn,Ot||Di.preventDefault(),le.current=(0,wt.Z)(function(){var cr=Ue.current?10:1;ue(we.current*cr,!1),we.current=0})}}function rn(qn,Rn){ue(Rn,!0),Ot||qn.preventDefault()}var Gn=(0,zt.useRef)(null),dn=(0,zt.useRef)(null);function An(qn){if(Nt){wt.Z.cancel(dn.current),dn.current=(0,wt.Z)(function(){Gn.current=null},2);var Rn=qn.deltaX,Di=qn.deltaY,cr=qn.shiftKey,Ji=Rn,Sr=Di;(Gn.current==="sx"||!Gn.current&&cr&&Di&&!Rn)&&(Ji=Di,Sr=0,Gn.current="sx");var Nr=Math.abs(Ji),co=Math.abs(Sr);Gn.current===null&&(Gn.current=At&&Nr>co?"x":"y"),Gn.current==="y"?Ie(qn,Sr):rn(qn,Ji)}}function Dn(qn){Nt&&(Ue.current=qn.detail===me.current)}return[An,Dn]}function ae(Nt,Dt,mt,ft){var pt=zt.useMemo(function(){return[new Map,[]]},[Nt,mt.id,ft]),At=(0,ee.Z)(pt,2),ue=At[0],we=At[1],le=function(Ue){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue,Ie=ue.get(Ue),rn=ue.get(ke);if(Ie===void 0||rn===void 0)for(var Gn=Nt.length,dn=we.length;dn<Gn;dn+=1){var An,Dn=Nt[dn],qn=Dt(Dn);ue.set(qn,dn);var Rn=(An=mt.get(qn))!==null&&An!==void 0?An:ft;if(we[dn]=(we[dn-1]||0)+Rn,qn===Ue&&(Ie=dn),qn===ke&&(rn=dn),Ie!==void 0&&rn!==void 0)break}return{top:we[Ie-1]||0,bottom:we[rn]}};return le}var de=bt(96949),be=bt(55090),qt=function(){function Nt(){(0,de.Z)(this,Nt),(0,Be.Z)(this,"maps",void 0),(0,Be.Z)(this,"id",0),(0,Be.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,be.Z)(Nt,[{key:"set",value:function(mt,ft){this.maps[mt]=ft,this.id+=1,this.diffKeys.add(mt)}},{key:"get",value:function(mt){return this.maps[mt]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Nt}(),ze=qt;function Vt(Nt){var Dt=parseFloat(Nt);return isNaN(Dt)?0:Dt}function Ge(Nt,Dt,mt){var ft=zt.useState(0),pt=(0,ee.Z)(ft,2),At=pt[0],ue=pt[1],we=(0,zt.useRef)(new Map),le=(0,zt.useRef)(new ze),me=(0,zt.useRef)(0);function Ue(){me.current+=1}function ke(){var rn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ue();var Gn=function(){var Dn=!1;we.current.forEach(function(qn,Rn){if(qn&&qn.offsetParent){var Di=qn.offsetHeight,cr=getComputedStyle(qn),Ji=cr.marginTop,Sr=cr.marginBottom,Nr=Vt(Ji),co=Vt(Sr),to=Di+Nr+co;le.current.get(Rn)!==to&&(le.current.set(Rn,to),Dn=!0)}}),Dn&&ue(function(qn){return qn+1})};if(rn)Gn();else{me.current+=1;var dn=me.current;Promise.resolve().then(function(){dn===me.current&&Gn()})}}function Ie(rn,Gn){var dn=Nt(rn),An=we.current.get(dn);Gn?(we.current.set(dn,Gn),ke()):we.current.delete(dn),!An!=!Gn&&(Gn?Dt==null||Dt(rn):mt==null||mt(rn))}return(0,zt.useEffect)(function(){return Ue},[]),[Ie,ke,le.current,At]}var _e=14/15;function Ne(Nt,Dt,mt){var ft=(0,zt.useRef)(!1),pt=(0,zt.useRef)(0),At=(0,zt.useRef)(0),ue=(0,zt.useRef)(null),we=(0,zt.useRef)(null),le,me=function(rn){if(ft.current){var Gn=Math.ceil(rn.touches[0].pageX),dn=Math.ceil(rn.touches[0].pageY),An=pt.current-Gn,Dn=At.current-dn,qn=Math.abs(An)>Math.abs(Dn);qn?pt.current=Gn:At.current=dn;var Rn=mt(qn,qn?An:Dn,!1,rn);Rn&&rn.preventDefault(),clearInterval(we.current),Rn&&(we.current=setInterval(function(){qn?An*=_e:Dn*=_e;var Di=Math.floor(qn?An:Dn);(!mt(qn,Di,!0)||Math.abs(Di)<=.1)&&clearInterval(we.current)},16))}},Ue=function(){ft.current=!1,le()},ke=function(rn){le(),rn.touches.length===1&&!ft.current&&(ft.current=!0,pt.current=Math.ceil(rn.touches[0].pageX),At.current=Math.ceil(rn.touches[0].pageY),ue.current=rn.target,ue.current.addEventListener("touchmove",me,{passive:!1}),ue.current.addEventListener("touchend",Ue,{passive:!0}))};le=function(){ue.current&&(ue.current.removeEventListener("touchmove",me),ue.current.removeEventListener("touchend",Ue))},(0,oe.Z)(function(){return Nt&&Dt.current.addEventListener("touchstart",ke,{passive:!0}),function(){var Ie;(Ie=Dt.current)===null||Ie===void 0||Ie.removeEventListener("touchstart",ke),le(),clearInterval(we.current)}},[Nt])}function We(Nt){return Math.floor(Math.pow(Nt,.5))}function Re(Nt,Dt){var mt="touches"in Nt?Nt.touches[0]:Nt;return mt[Dt?"pageX":"pageY"]-window[Dt?"scrollX":"scrollY"]}function ve(Nt,Dt,mt){zt.useEffect(function(){var ft=Dt.current;if(Nt&&ft){var pt=!1,At,ue,we=function(){wt.Z.cancel(At)},le=function Ie(){we(),At=(0,wt.Z)(function(){mt(ue),Ie()})},me=function(rn){if(!(rn.target.draggable||rn.button!==0)){var Gn=rn;Gn._virtualHandled||(Gn._virtualHandled=!0,pt=!0)}},Ue=function(){pt=!1,we()},ke=function(rn){if(pt){var Gn=Re(rn,!1),dn=ft.getBoundingClientRect(),An=dn.top,Dn=dn.bottom;if(Gn<=An){var qn=An-Gn;ue=-We(qn),le()}else if(Gn>=Dn){var Rn=Gn-Dn;ue=We(Rn),le()}else we()}};return ft.addEventListener("mousedown",me),ft.ownerDocument.addEventListener("mouseup",Ue),ft.ownerDocument.addEventListener("mousemove",ke),function(){ft.removeEventListener("mousedown",me),ft.ownerDocument.removeEventListener("mouseup",Ue),ft.ownerDocument.removeEventListener("mousemove",ke),we()}}},[Nt])}var ie=10;function Se(Nt,Dt,mt,ft,pt,At,ue,we){var le=zt.useRef(),me=zt.useState(null),Ue=(0,ee.Z)(me,2),ke=Ue[0],Ie=Ue[1];return(0,oe.Z)(function(){if(ke&&ke.times<ie){if(!Nt.current){Ie(function(ws){return(0,re.Z)({},ws)});return}At();var rn=ke.targetAlign,Gn=ke.originAlign,dn=ke.index,An=ke.offset,Dn=Nt.current.clientHeight,qn=!1,Rn=rn,Di=null;if(Dn){for(var cr=rn||Gn,Ji=0,Sr=0,Nr=0,co=Math.min(Dt.length-1,dn),to=0;to<=co;to+=1){var Kr=pt(Dt[to]);Sr=Ji;var gr=mt.get(Kr);Nr=Sr+(gr===void 0?ft:gr),Ji=Nr}for(var Vr=cr==="top"?An:Dn-An,pr=co;pr>=0;pr-=1){var zo=pt(Dt[pr]),es=mt.get(zo);if(es===void 0){qn=!0;break}if(Vr-=es,Vr<=0)break}switch(cr){case"top":Di=Sr-An;break;case"bottom":Di=Nr-Dn+An;break;default:{var yo=Nt.current.scrollTop,ks=yo+Dn;Sr<yo?Rn="top":Nr>ks&&(Rn="bottom")}}Di!==null&&ue(Di),Di!==ke.lastTop&&(qn=!0)}qn&&Ie((0,re.Z)((0,re.Z)({},ke),{},{times:ke.times+1,targetAlign:Rn,lastTop:Di}))}},[ke,Nt.current]),function(rn){if(rn==null){we();return}if(wt.Z.cancel(le.current),typeof rn=="number")ue(rn);else if(rn&&(0,ce.Z)(rn)==="object"){var Gn,dn=rn.align;"index"in rn?Gn=rn.index:Gn=Dt.findIndex(function(qn){return pt(qn)===rn.key});var An=rn.offset,Dn=An===void 0?0:An;Ie({times:0,index:Gn,offset:Dn,originAlign:dn})}}}var Bn=zt.forwardRef(function(Nt,Dt){var mt=Nt.prefixCls,ft=Nt.rtl,pt=Nt.scrollOffset,At=Nt.scrollRange,ue=Nt.onStartMove,we=Nt.onStopMove,le=Nt.onScroll,me=Nt.horizontal,Ue=Nt.spinSize,ke=Nt.containerSize,Ie=Nt.style,rn=Nt.thumbStyle,Gn=Nt.showScrollBar,dn=zt.useState(!1),An=(0,ee.Z)(dn,2),Dn=An[0],qn=An[1],Rn=zt.useState(null),Di=(0,ee.Z)(Rn,2),cr=Di[0],Ji=Di[1],Sr=zt.useState(null),Nr=(0,ee.Z)(Sr,2),co=Nr[0],to=Nr[1],Kr=!ft,gr=zt.useRef(),Vr=zt.useRef(),pr=zt.useState(Gn),zo=(0,ee.Z)(pr,2),es=zo[0],yo=zo[1],ks=zt.useRef(),ws=function(){Gn===!0||Gn===!1||(clearTimeout(ks.current),yo(!0),ks.current=setTimeout(function(){yo(!1)},3e3))},Wt=At-ke||0,xs=ke-Ue||0,Ss=zt.useMemo(function(){if(pt===0||Wt===0)return 0;var Oe=pt/Wt;return Oe*xs},[pt,Wt,xs]),Ms=function(hi){hi.stopPropagation(),hi.preventDefault()},ma=zt.useRef({top:Ss,dragging:Dn,pageY:cr,startTop:co});ma.current={top:Ss,dragging:Dn,pageY:cr,startTop:co};var Ea=function(hi){qn(!0),Ji(Re(hi,me)),to(ma.current.top),ue(),hi.stopPropagation(),hi.preventDefault()};zt.useEffect(function(){var Oe=function(Ke){Ke.preventDefault()},hi=gr.current,Je=Vr.current;return hi.addEventListener("touchstart",Oe,{passive:!1}),Je.addEventListener("touchstart",Ea,{passive:!1}),function(){hi.removeEventListener("touchstart",Oe),Je.removeEventListener("touchstart",Ea)}},[]);var oa=zt.useRef();oa.current=Wt;var so=zt.useRef();so.current=xs,zt.useEffect(function(){if(Dn){var Oe,hi=function(Ke){var ni=ma.current,Ci=ni.dragging,_i=ni.pageY,qi=ni.startTop;wt.Z.cancel(Oe);var on=gr.current.getBoundingClientRect(),di=ke/(me?on.width:on.height);if(Ci){var Vi=(Re(Ke,me)-_i)*di,kr=qi;!Kr&&me?kr-=Vi:kr+=Vi;var ii=oa.current,wi=so.current,dr=wi?kr/wi:0,pi=Math.ceil(dr*ii);pi=Math.max(pi,0),pi=Math.min(pi,ii),Oe=(0,wt.Z)(function(){le(pi,me)})}},Je=function(){qn(!1),we()};return window.addEventListener("mousemove",hi,{passive:!0}),window.addEventListener("touchmove",hi,{passive:!0}),window.addEventListener("mouseup",Je,{passive:!0}),window.addEventListener("touchend",Je,{passive:!0}),function(){window.removeEventListener("mousemove",hi),window.removeEventListener("touchmove",hi),window.removeEventListener("mouseup",Je),window.removeEventListener("touchend",Je),wt.Z.cancel(Oe)}}},[Dn]),zt.useEffect(function(){return ws(),function(){clearTimeout(ks.current)}},[pt]),zt.useImperativeHandle(Dt,function(){return{delayHidden:ws}});var br="".concat(mt,"-scrollbar"),kn={position:"absolute",visibility:es?null:"hidden"},In={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return me?(kn.height=8,kn.left=0,kn.right=0,kn.bottom=0,In.height="100%",In.width=Ue,Kr?In.left=Ss:In.right=Ss):(kn.width=8,kn.top=0,kn.bottom=0,Kr?kn.right=0:kn.left=0,In.width="100%",In.height=Ue,In.top=Ss),zt.createElement("div",{ref:gr,className:jt()(br,(0,Be.Z)((0,Be.Z)((0,Be.Z)({},"".concat(br,"-horizontal"),me),"".concat(br,"-vertical"),!me),"".concat(br,"-visible"),es)),style:(0,re.Z)((0,re.Z)({},kn),Ie),onMouseDown:Ms,onMouseMove:ws},zt.createElement("div",{ref:Vr,className:jt()("".concat(br,"-thumb"),(0,Be.Z)({},"".concat(br,"-thumb-moving"),Dn)),style:(0,re.Z)((0,re.Z)({},In),rn),onMouseDown:Ea}))}),Ln=Bn,Ye=20;function Mn(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,mt=Nt/Dt*Nt;return isNaN(mt)&&(mt=0),mt=Math.max(mt,Ye),Math.floor(mt)}var Wn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],fi=[],Hn={overflowY:"auto",overflowAnchor:"none"};function xi(Nt,Dt){var mt=Nt.prefixCls,ft=mt===void 0?"rc-virtual-list":mt,pt=Nt.className,At=Nt.height,ue=Nt.itemHeight,we=Nt.fullHeight,le=we===void 0?!0:we,me=Nt.style,Ue=Nt.data,ke=Nt.children,Ie=Nt.itemKey,rn=Nt.virtual,Gn=Nt.direction,dn=Nt.scrollWidth,An=Nt.component,Dn=An===void 0?"div":An,qn=Nt.onScroll,Rn=Nt.onVirtualScroll,Di=Nt.onVisibleChange,cr=Nt.innerProps,Ji=Nt.extraRender,Sr=Nt.styles,Nr=Nt.showScrollBar,co=Nr===void 0?"optional":Nr,to=(0,Yt.Z)(Nt,Wn),Kr=zt.useCallback(function(vr){return typeof Ie=="function"?Ie(vr):vr==null?void 0:vr[Ie]},[Ie]),gr=Ge(Kr,null,null),Vr=(0,ee.Z)(gr,4),pr=Vr[0],zo=Vr[1],es=Vr[2],yo=Vr[3],ks=!!(rn!==!1&&At&&ue),ws=zt.useMemo(function(){return Object.values(es.maps).reduce(function(vr,$r){return vr+$r},0)},[es.id,es.maps]),Wt=ks&&Ue&&(Math.max(ue*Ue.length,ws)>At||!!dn),xs=Gn==="rtl",Ss=jt()(ft,(0,Be.Z)({},"".concat(ft,"-rtl"),xs),pt),Ms=Ue||fi,ma=(0,zt.useRef)(),Ea=(0,zt.useRef)(),oa=(0,zt.useRef)(),so=(0,zt.useState)(0),br=(0,ee.Z)(so,2),kn=br[0],In=br[1],Oe=(0,zt.useState)(0),hi=(0,ee.Z)(Oe,2),Je=hi[0],fn=hi[1],Ke=(0,zt.useState)(!1),ni=(0,ee.Z)(Ke,2),Ci=ni[0],_i=ni[1],qi=function(){_i(!0)},on=function(){_i(!1)},di={getKey:Kr};function Vi(vr){In(function($r){var Xo;typeof vr=="function"?Xo=vr($r):Xo=vr;var Lo=Gr(Xo);return ma.current.scrollTop=Lo,Lo})}var kr=(0,zt.useRef)({start:0,end:Ms.length}),ii=(0,zt.useRef)(),wi=ct(Ms,Kr),dr=(0,ee.Z)(wi,1),pi=dr[0];ii.current=pi;var yi=zt.useMemo(function(){if(!ks)return{scrollHeight:void 0,start:0,end:Ms.length-1,offset:void 0};if(!Wt){var vr;return{scrollHeight:((vr=Ea.current)===null||vr===void 0?void 0:vr.offsetHeight)||0,start:0,end:Ms.length-1,offset:void 0}}for(var $r=0,Xo,Lo,os,Fa=Ms.length,ao=0;ao<Fa;ao+=1){var mo=Ms[ao],zi=Kr(mo),Eo=es.get(zi),Es=$r+(Eo===void 0?ue:Eo);Es>=kn&&Xo===void 0&&(Xo=ao,Lo=$r),Es>kn+At&&os===void 0&&(os=ao),$r=Es}return Xo===void 0&&(Xo=0,Lo=0,os=Math.ceil(At/ue)),os===void 0&&(os=Ms.length-1),os=Math.min(os+1,Ms.length-1),{scrollHeight:$r,start:Xo,end:os,offset:Lo}},[Wt,ks,kn,Ms,yo,At]),vi=yi.scrollHeight,er=yi.start,or=yi.end,Rr=yi.offset;kr.current.start=er,kr.current.end=or,zt.useLayoutEffect(function(){var vr=es.getRecord();if(vr.size===1){var $r=Array.from(vr)[0],Xo=Ms[er];if(Xo){var Lo=Kr(Xo);if(Lo===$r){var os=es.get($r),Fa=os-ue;Vi(function(ao){return ao+Fa})}}}es.resetRecord()},[vi]);var Zr=zt.useState({width:0,height:At}),Xr=(0,ee.Z)(Zr,2),ei=Xr[0],_o=Xr[1],Zo=function($r){_o({width:$r.offsetWidth,height:$r.offsetHeight})},cs=(0,zt.useRef)(),ri=(0,zt.useRef)(),rr=zt.useMemo(function(){return Mn(ei.width,dn)},[ei.width,dn]),Er=zt.useMemo(function(){return Mn(ei.height,vi)},[ei.height,vi]),no=vi-At,Fr=(0,zt.useRef)(no);Fr.current=no;function Gr(vr){var $r=vr;return Number.isNaN(Fr.current)||($r=Math.min($r,Fr.current)),$r=Math.max($r,0),$r}var wo=kn<=0,fo=kn>=no,xo=Je<=0,_r=Je>=dn,Si=Ht(wo,fo,xo,_r),Ho=function(){return{x:xs?-Je:Je,y:kn}},Pi=(0,zt.useRef)(Ho()),ns=(0,Pt.useEvent)(function(vr){if(Rn){var $r=(0,re.Z)((0,re.Z)({},Ho()),vr);(Pi.current.x!==$r.x||Pi.current.y!==$r.y)&&(Rn($r),Pi.current=$r)}});function qs(vr,$r){var Xo=vr;$r?((0,Jt.flushSync)(function(){fn(Xo)}),ns()):Vi(Xo)}function fs(vr){var $r=vr.currentTarget.scrollTop;$r!==kn&&Vi($r),qn==null||qn(vr),ns()}var Hs=function($r){var Xo=$r,Lo=dn?dn-ei.width:0;return Xo=Math.max(Xo,0),Xo=Math.min(Xo,Lo),Xo},Gs=(0,Pt.useEvent)(function(vr,$r){$r?((0,Jt.flushSync)(function(){fn(function(Xo){var Lo=Xo+(xs?-vr:vr);return Hs(Lo)})}),ns()):Vi(function(Xo){var Lo=Xo+vr;return Lo})}),si=ne(ks,wo,fo,xo,_r,!!dn,Gs),To=(0,ee.Z)(si,2),us=To[0],rs=To[1];Ne(ks,ma,function(vr,$r,Xo,Lo){var os=Lo;return Si(vr,$r,Xo)?!1:!os||!os._virtualHandled?(os&&(os._virtualHandled=!0),us({preventDefault:function(){},deltaX:vr?$r:0,deltaY:vr?0:$r}),!0):!1}),ve(Wt,ma,function(vr){Vi(function($r){return $r+vr})}),(0,oe.Z)(function(){function vr(Xo){var Lo=wo&&Xo.detail<0,os=fo&&Xo.detail>0;ks&&!Lo&&!os&&Xo.preventDefault()}var $r=ma.current;return $r.addEventListener("wheel",us,{passive:!1}),$r.addEventListener("DOMMouseScroll",rs,{passive:!0}),$r.addEventListener("MozMousePixelScroll",vr,{passive:!1}),function(){$r.removeEventListener("wheel",us),$r.removeEventListener("DOMMouseScroll",rs),$r.removeEventListener("MozMousePixelScroll",vr)}},[ks,wo,fo]),(0,oe.Z)(function(){if(dn){var vr=Hs(Je);fn(vr),ns({x:vr})}},[ei.width,dn]);var Cr=function(){var $r,Xo;($r=cs.current)===null||$r===void 0||$r.delayHidden(),(Xo=ri.current)===null||Xo===void 0||Xo.delayHidden()},Le=Se(ma,Ms,es,ue,Kr,function(){return zo(!0)},Vi,Cr);zt.useImperativeHandle(Dt,function(){return{nativeElement:oa.current,getScrollInfo:Ho,scrollTo:function($r){function Xo(Lo){return Lo&&(0,ce.Z)(Lo)==="object"&&("left"in Lo||"top"in Lo)}Xo($r)?($r.left!==void 0&&fn(Hs($r.left)),Le($r.top)):Le($r)}}}),(0,oe.Z)(function(){if(Di){var vr=Ms.slice(er,or+1);Di(vr,Ms)}},[er,or,Ms]);var qo=ae(Ms,Kr,es,ue),ta=Ji==null?void 0:Ji({start:er,end:or,virtual:Wt,offsetX:Je,offsetY:Rr,rtl:xs,getSize:qo}),qa=lt(Ms,er,or,dn,Je,pr,ke,di),ol=null;At&&(ol=(0,re.Z)((0,Be.Z)({},le?"height":"maxHeight",At),Hn),ks&&(ol.overflowY="hidden",dn&&(ol.overflowX="hidden"),Ci&&(ol.pointerEvents="none")));var ml={};return xs&&(ml.dir="rtl"),zt.createElement("div",(0,Ft.Z)({ref:oa,style:(0,re.Z)((0,re.Z)({},me),{},{position:"relative"}),className:Ss},ml,to),zt.createElement(Xt.Z,{onResize:Zo},zt.createElement(Dn,{className:"".concat(ft,"-holder"),style:ol,ref:ma,onScroll:fs,onMouseEnter:Cr},zt.createElement(et,{prefixCls:ft,height:vi,offsetX:Je,offsetY:Rr,scrollWidth:dn,onInnerResize:zo,ref:Ea,innerProps:cr,rtl:xs,extra:ta},qa))),Wt&&vi>At&&zt.createElement(Ln,{ref:cs,prefixCls:ft,scrollOffset:kn,scrollRange:vi,rtl:xs,onScroll:qs,onStartMove:qi,onStopMove:on,spinSize:Er,containerSize:ei.height,style:Sr==null?void 0:Sr.verticalScrollBar,thumbStyle:Sr==null?void 0:Sr.verticalScrollBarThumb,showScrollBar:co}),Wt&&dn>ei.width&&zt.createElement(Ln,{ref:ri,prefixCls:ft,scrollOffset:Je,scrollRange:dn,rtl:xs,onScroll:qs,onStartMove:qi,onStopMove:on,spinSize:rr,containerSize:ei.width,horizontal:!0,style:Sr==null?void 0:Sr.horizontalScrollBar,thumbStyle:Sr==null?void 0:Sr.horizontalScrollBarThumb,showScrollBar:co}))}var nn=zt.forwardRef(xi);nn.displayName="List";var Fi=nn,ki=Fi},2637:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),Object.defineProperty(wn,"DraggableCore",{enumerable:!0,get:function(){return jt.default}}),wn.default=void 0;var Ft=zt(bt(59301)),ce=Pt(bt(12708)),re=Pt(bt(4676)),Be=Pt(bt(57780)),ee=bt(13957),Yt=bt(60976),It=bt(36641),jt=Pt(bt(80486)),Xt=Pt(bt(94187));function Pt(rt){return rt&&rt.__esModule?rt:{default:rt}}function oe(rt){if(typeof WeakMap!="function")return null;var ut=new WeakMap,ct=new WeakMap;return(oe=function(wt){return wt?ct:ut})(rt)}function zt(rt,ut){if(!ut&&rt&&rt.__esModule)return rt;if(rt===null||typeof rt!="object"&&typeof rt!="function")return{default:rt};var ct=oe(ut);if(ct&&ct.has(rt))return ct.get(rt);var wt={},Mt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ot in rt)if(Ot!=="default"&&Object.prototype.hasOwnProperty.call(rt,Ot)){var Ht=Mt?Object.getOwnPropertyDescriptor(rt,Ot):null;Ht&&(Ht.get||Ht.set)?Object.defineProperty(wt,Ot,Ht):wt[Ot]=rt[Ot]}return wt.default=rt,ct&&ct.set(rt,wt),wt}function Jt(){return Jt=Object.assign?Object.assign.bind():function(rt){for(var ut=1;ut<arguments.length;ut++){var ct=arguments[ut];for(var wt in ct)Object.prototype.hasOwnProperty.call(ct,wt)&&(rt[wt]=ct[wt])}return rt},Jt.apply(this,arguments)}function Ct(rt,ut,ct){return ut=et(ut),ut in rt?Object.defineProperty(rt,ut,{value:ct,enumerable:!0,configurable:!0,writable:!0}):rt[ut]=ct,rt}function et(rt){var ut=tt(rt,"string");return typeof ut=="symbol"?ut:String(ut)}function tt(rt,ut){if(typeof rt!="object"||rt===null)return rt;var ct=rt[Symbol.toPrimitive];if(ct!==void 0){var wt=ct.call(rt,ut||"default");if(typeof wt!="object")return wt;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ut==="string"?String:Number)(rt)}class lt extends Ft.Component{static getDerivedStateFromProps(ut,ct){let{position:wt}=ut,{prevPropsPosition:Mt}=ct;return wt&&(!Mt||wt.x!==Mt.x||wt.y!==Mt.y)?((0,Xt.default)("Draggable: getDerivedStateFromProps %j",{position:wt,prevPropsPosition:Mt}),{x:wt.x,y:wt.y,prevPropsPosition:Sg({},wt)}):null}constructor(ut){super(ut),Ct(this,"onDragStart",(ct,wt)=>{if((0,Xt.default)("Draggable: onDragStart: %j",wt),this.props.onStart(ct,(0,Yt.createDraggableData)(this,wt))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),Ct(this,"onDrag",(ct,wt)=>{if(!this.state.dragging)return!1;(0,Xt.default)("Draggable: onDrag: %j",wt);const Mt=(0,Yt.createDraggableData)(this,wt),Ot={x:Mt.x,y:Mt.y,slackX:0,slackY:0};if(this.props.bounds){const{x:ne,y:ae}=Ot;Ot.x+=this.state.slackX,Ot.y+=this.state.slackY;const[de,be]=(0,Yt.getBoundPosition)(this,Ot.x,Ot.y);Ot.x=de,Ot.y=be,Ot.slackX=this.state.slackX+(ne-Ot.x),Ot.slackY=this.state.slackY+(ae-Ot.y),Mt.x=Ot.x,Mt.y=Ot.y,Mt.deltaX=Ot.x-this.state.x,Mt.deltaY=Ot.y-this.state.y}if(this.props.onDrag(ct,Mt)===!1)return!1;this.setState(Ot)}),Ct(this,"onDragStop",(ct,wt)=>{if(!this.state.dragging||this.props.onStop(ct,(0,Yt.createDraggableData)(this,wt))===!1)return!1;(0,Xt.default)("Draggable: onDragStop: %j",wt);const Ot={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:ne,y:ae}=this.props.position;Ot.x=ne,Ot.y=ae}this.setState(Ot)}),this.state={dragging:!1,dragged:!1,x:ut.position?ut.position.x:ut.defaultPosition.x,y:ut.position?ut.position.y:ut.defaultPosition.y,prevPropsPosition:Sg({},ut.position),slackX:0,slackY:0,isElementSVG:!1},ut.position&&!(ut.onDrag||ut.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 ut,ct;return(ut=(ct=this.props)===null||ct===void 0||(ct=ct.nodeRef)===null||ct===void 0?void 0:ct.current)!==null&&ut!==void 0?ut:re.default.findDOMNode(this)}render(){const ve=this.props,{axis:ut,bounds:ct,children:wt,defaultPosition:Mt,defaultClassName:Ot,defaultClassNameDragging:Ht,defaultClassNameDragged:ne,position:ae,positionOffset:de,scale:be}=ve,qt=Pw(ve,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let ze={},Vt=null;const _e=!!!ae||this.state.dragging,Ne=ae||Mt,We={x:(0,Yt.canDragX)(this)&&_e?this.state.x:Ne.x,y:(0,Yt.canDragY)(this)&&_e?this.state.y:Ne.y};this.state.isElementSVG?Vt=(0,ee.createSVGTransform)(We,de):ze=(0,ee.createCSSTransform)(We,de);const Re=(0,Be.default)(wt.props.className||"",Ot,{[Ht]:this.state.dragging,[ne]:this.state.dragged});return Ft.createElement(jt.default,Jt({},qt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),Ft.cloneElement(Ft.Children.only(wt),{className:Re,style:Sg(Sg({},wt.props.style),ze),transform:Vt}))}}wn.default=lt,Ct(lt,"displayName","Draggable"),Ct(lt,"propTypes",Iy(Sg({},jt.default.propTypes),{axis:ce.default.oneOf(["both","x","y","none"]),bounds:ce.default.oneOfType([ce.default.shape({left:ce.default.number,right:ce.default.number,top:ce.default.number,bottom:ce.default.number}),ce.default.string,ce.default.oneOf([!1])]),defaultClassName:ce.default.string,defaultClassNameDragging:ce.default.string,defaultClassNameDragged:ce.default.string,defaultPosition:ce.default.shape({x:ce.default.number,y:ce.default.number}),positionOffset:ce.default.shape({x:ce.default.oneOfType([ce.default.number,ce.default.string]),y:ce.default.oneOfType([ce.default.number,ce.default.string])}),position:ce.default.shape({x:ce.default.number,y:ce.default.number}),className:It.dontSetMe,style:It.dontSetMe,transform:It.dontSetMe})),Ct(lt,"defaultProps",Iy(Sg({},jt.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(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var Ft=Pt(bt(59301)),ce=jt(bt(12708)),re=jt(bt(4676)),Be=bt(13957),ee=bt(60976),Yt=bt(36641),It=jt(bt(94187));function jt(lt){return lt&&lt.__esModule?lt:{default:lt}}function Xt(lt){if(typeof WeakMap!="function")return null;var rt=new WeakMap,ut=new WeakMap;return(Xt=function(ct){return ct?ut:rt})(lt)}function Pt(lt,rt){if(!rt&&lt&&lt.__esModule)return lt;if(lt===null||typeof lt!="object"&&typeof lt!="function")return{default:lt};var ut=Xt(rt);if(ut&&ut.has(lt))return ut.get(lt);var ct={},wt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Mt in lt)if(Mt!=="default"&&Object.prototype.hasOwnProperty.call(lt,Mt)){var Ot=wt?Object.getOwnPropertyDescriptor(lt,Mt):null;Ot&&(Ot.get||Ot.set)?Object.defineProperty(ct,Mt,Ot):ct[Mt]=lt[Mt]}return ct.default=lt,ut&&ut.set(lt,ct),ct}function oe(lt,rt,ut){return rt=zt(rt),rt in lt?Object.defineProperty(lt,rt,{value:ut,enumerable:!0,configurable:!0,writable:!0}):lt[rt]=ut,lt}function zt(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 ut=lt[Symbol.toPrimitive];if(ut!==void 0){var ct=ut.call(lt,rt||"default");if(typeof ct!="object")return ct;throw new TypeError("@@toPrimitive must return a primitive value.")}return(rt==="string"?String:Number)(lt)}const Ct={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let et=Ct.mouse;class tt extends Ft.Component{constructor(){super(...arguments),oe(this,"dragging",!1),oe(this,"lastX",NaN),oe(this,"lastY",NaN),oe(this,"touchIdentifier",null),oe(this,"mounted",!1),oe(this,"handleDragStart",rt=>{if(this.props.onMouseDown(rt),!this.props.allowAnyClick&&typeof rt.button=="number"&&rt.button!==0)return!1;const ut=this.findDOMNode();if(!ut||!ut.ownerDocument||!ut.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:ct}=ut;if(this.props.disabled||!(rt.target instanceof ct.defaultView.Node)||this.props.handle&&!(0,Be.matchesSelectorAndParentsTo)(rt.target,this.props.handle,ut)||this.props.cancel&&(0,Be.matchesSelectorAndParentsTo)(rt.target,this.props.cancel,ut))return;rt.type==="touchstart"&&rt.preventDefault();const wt=(0,Be.getTouchIdentifier)(rt);this.touchIdentifier=wt;const Mt=(0,ee.getControlPosition)(rt,wt,this);if(Mt==null)return;const{x:Ot,y:Ht}=Mt,ne=(0,ee.createCoreData)(this,Ot,Ht);(0,It.default)("DraggableCore: handleDragStart: %j",ne),(0,It.default)("calling",this.props.onStart),!(this.props.onStart(rt,ne)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Be.addUserSelectStyles)(ct),this.dragging=!0,this.lastX=Ot,this.lastY=Ht,(0,Be.addEvent)(ct,et.move,this.handleDrag),(0,Be.addEvent)(ct,et.stop,this.handleDragStop))}),oe(this,"handleDrag",rt=>{const ut=(0,ee.getControlPosition)(rt,this.touchIdentifier,this);if(ut==null)return;let{x:ct,y:wt}=ut;if(Array.isArray(this.props.grid)){let Ht=ct-this.lastX,ne=wt-this.lastY;if([Ht,ne]=(0,ee.snapToGrid)(this.props.grid,Ht,ne),!Ht&&!ne)return;ct=this.lastX+Ht,wt=this.lastY+ne}const Mt=(0,ee.createCoreData)(this,ct,wt);if((0,It.default)("DraggableCore: handleDrag: %j",Mt),this.props.onDrag(rt,Mt)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Ht){const ne=document.createEvent("MouseEvents");ne.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(ne)}return}this.lastX=ct,this.lastY=wt}),oe(this,"handleDragStop",rt=>{if(!this.dragging)return;const ut=(0,ee.getControlPosition)(rt,this.touchIdentifier,this);if(ut==null)return;let{x:ct,y:wt}=ut;if(Array.isArray(this.props.grid)){let ne=ct-this.lastX||0,ae=wt-this.lastY||0;[ne,ae]=(0,ee.snapToGrid)(this.props.grid,ne,ae),ct=this.lastX+ne,wt=this.lastY+ae}const Mt=(0,ee.createCoreData)(this,ct,wt);if(this.props.onStop(rt,Mt)===!1||this.mounted===!1)return!1;const Ht=this.findDOMNode();Ht&&this.props.enableUserSelectHack&&(0,Be.removeUserSelectStyles)(Ht.ownerDocument),(0,It.default)("DraggableCore: handleDragStop: %j",Mt),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Ht&&((0,It.default)("DraggableCore: Removing handlers"),(0,Be.removeEvent)(Ht.ownerDocument,et.move,this.handleDrag),(0,Be.removeEvent)(Ht.ownerDocument,et.stop,this.handleDragStop))}),oe(this,"onMouseDown",rt=>(et=Ct.mouse,this.handleDragStart(rt))),oe(this,"onMouseUp",rt=>(et=Ct.mouse,this.handleDragStop(rt))),oe(this,"onTouchStart",rt=>(et=Ct.touch,this.handleDragStart(rt))),oe(this,"onTouchEnd",rt=>(et=Ct.touch,this.handleDragStop(rt)))}componentDidMount(){this.mounted=!0;const rt=this.findDOMNode();rt&&(0,Be.addEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const rt=this.findDOMNode();if(rt){const{ownerDocument:ut}=rt;(0,Be.removeEvent)(ut,Ct.mouse.move,this.handleDrag),(0,Be.removeEvent)(ut,Ct.touch.move,this.handleDrag),(0,Be.removeEvent)(ut,Ct.mouse.stop,this.handleDragStop),(0,Be.removeEvent)(ut,Ct.touch.stop,this.handleDragStop),(0,Be.removeEvent)(rt,Ct.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Be.removeUserSelectStyles)(ut)}}findDOMNode(){var rt,ut;return(rt=this.props)!==null&&rt!==void 0&&rt.nodeRef?(ut=this.props)===null||ut===void 0||(ut=ut.nodeRef)===null||ut===void 0?void 0:ut.current:re.default.findDOMNode(this)}render(){return Ft.cloneElement(Ft.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}wn.default=tt,oe(tt,"displayName","DraggableCore"),oe(tt,"propTypes",{allowAnyClick:ce.default.bool,children:ce.default.node.isRequired,disabled:ce.default.bool,enableUserSelectHack:ce.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:ce.default.arrayOf(ce.default.number),handle:ce.default.string,cancel:ce.default.string,nodeRef:ce.default.object,onStart:ce.default.func,onDrag:ce.default.func,onStop:ce.default.func,onMouseDown:ce.default.func,scale:ce.default.number,className:Yt.dontSetMe,style:Yt.dontSetMe,transform:Yt.dontSetMe}),oe(tt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},12911:function(ui,wn,bt){"use strict";const{default:Ft,DraggableCore:ce}=bt(2637);ui.exports=Ft,ui.exports.default=Ft,ui.exports.DraggableCore=ce},13957:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.addClassName=Mt,wn.addEvent=jt,wn.addUserSelectStyles=ct,wn.createCSSTransform=et,wn.createSVGTransform=tt,wn.getTouch=rt,wn.getTouchIdentifier=ut,wn.getTranslation=lt,wn.innerHeight=zt,wn.innerWidth=Jt,wn.matchesSelector=Yt,wn.matchesSelectorAndParentsTo=It,wn.offsetXYFromParent=Ct,wn.outerHeight=Pt,wn.outerWidth=oe,wn.removeClassName=Ot,wn.removeEvent=Xt,wn.removeUserSelectStyles=wt;var Ft=bt(36641),ce=Be(bt(32092));function re(Ht){if(typeof WeakMap!="function")return null;var ne=new WeakMap,ae=new WeakMap;return(re=function(de){return de?ae:ne})(Ht)}function Be(Ht,ne){if(!ne&&Ht&&Ht.__esModule)return Ht;if(Ht===null||typeof Ht!="object"&&typeof Ht!="function")return{default:Ht};var ae=re(ne);if(ae&&ae.has(Ht))return ae.get(Ht);var de={},be=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qt in Ht)if(qt!=="default"&&Object.prototype.hasOwnProperty.call(Ht,qt)){var ze=be?Object.getOwnPropertyDescriptor(Ht,qt):null;ze&&(ze.get||ze.set)?Object.defineProperty(de,qt,ze):de[qt]=Ht[qt]}return de.default=Ht,ae&&ae.set(Ht,de),de}let ee="";function Yt(Ht,ne){return ee||(ee=(0,Ft.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(ae){return(0,Ft.isFunction)(Ht[ae])})),(0,Ft.isFunction)(Ht[ee])?Ht[ee](ne):!1}function It(Ht,ne,ae){let de=Ht;do{if(Yt(de,ne))return!0;if(de===ae)return!1;de=de.parentNode}while(de);return!1}function jt(Ht,ne,ae,de){if(!Ht)return;const be=Sg({capture:!0},de);Ht.addEventListener?Ht.addEventListener(ne,ae,be):Ht.attachEvent?Ht.attachEvent("on"+ne,ae):Ht["on"+ne]=ae}function Xt(Ht,ne,ae,de){if(!Ht)return;const be=Sg({capture:!0},de);Ht.removeEventListener?Ht.removeEventListener(ne,ae,be):Ht.detachEvent?Ht.detachEvent("on"+ne,ae):Ht["on"+ne]=null}function Pt(Ht){let ne=Ht.clientHeight;const ae=Ht.ownerDocument.defaultView.getComputedStyle(Ht);return ne+=(0,Ft.int)(ae.borderTopWidth),ne+=(0,Ft.int)(ae.borderBottomWidth),ne}function oe(Ht){let ne=Ht.clientWidth;const ae=Ht.ownerDocument.defaultView.getComputedStyle(Ht);return ne+=(0,Ft.int)(ae.borderLeftWidth),ne+=(0,Ft.int)(ae.borderRightWidth),ne}function zt(Ht){let ne=Ht.clientHeight;const ae=Ht.ownerDocument.defaultView.getComputedStyle(Ht);return ne-=(0,Ft.int)(ae.paddingTop),ne-=(0,Ft.int)(ae.paddingBottom),ne}function Jt(Ht){let ne=Ht.clientWidth;const ae=Ht.ownerDocument.defaultView.getComputedStyle(Ht);return ne-=(0,Ft.int)(ae.paddingLeft),ne-=(0,Ft.int)(ae.paddingRight),ne}function Ct(Ht,ne,ae){const be=ne===ne.ownerDocument.body?{left:0,top:0}:ne.getBoundingClientRect(),qt=(Ht.clientX+ne.scrollLeft-be.left)/ae,ze=(Ht.clientY+ne.scrollTop-be.top)/ae;return{x:qt,y:ze}}function et(Ht,ne){const ae=lt(Ht,ne,"px");return{[(0,ce.browserPrefixToKey)("transform",ce.default)]:ae}}function tt(Ht,ne){return lt(Ht,ne,"")}function lt(Ht,ne,ae){let{x:de,y:be}=Ht,qt="translate(".concat(de).concat(ae,",").concat(be).concat(ae,")");if(ne){const ze="".concat(typeof ne.x=="string"?ne.x:ne.x+ae),Vt="".concat(typeof ne.y=="string"?ne.y:ne.y+ae);qt="translate(".concat(ze,", ").concat(Vt,")")+qt}return qt}function rt(Ht,ne){return Ht.targetTouches&&(0,Ft.findInArray)(Ht.targetTouches,ae=>ne===ae.identifier)||Ht.changedTouches&&(0,Ft.findInArray)(Ht.changedTouches,ae=>ne===ae.identifier)}function ut(Ht){if(Ht.targetTouches&&Ht.targetTouches[0])return Ht.targetTouches[0].identifier;if(Ht.changedTouches&&Ht.changedTouches[0])return Ht.changedTouches[0].identifier}function ct(Ht){if(!Ht)return;let ne=Ht.getElementById("react-draggable-style-el");ne||(ne=Ht.createElement("style"),ne.type="text/css",ne.id="react-draggable-style-el",ne.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,ne.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,Ht.getElementsByTagName("head")[0].appendChild(ne)),Ht.body&&Mt(Ht.body,"react-draggable-transparent-selection")}function wt(Ht){if(Ht)try{if(Ht.body&&Ot(Ht.body,"react-draggable-transparent-selection"),Ht.selection)Ht.selection.empty();else{const ne=(Ht.defaultView||window).getSelection();ne&&ne.type!=="Caret"&&ne.removeAllRanges()}}catch(ne){}}function Mt(Ht,ne){Ht.classList?Ht.classList.add(ne):Ht.className.match(new RegExp("(?:^|\\s)".concat(ne,"(?!\\S)")))||(Ht.className+=" ".concat(ne))}function Ot(Ht,ne){Ht.classList?Ht.classList.remove(ne):Ht.className=Ht.className.replace(new RegExp("(?:^|\\s)".concat(ne,"(?!\\S)"),"g"),"")}},32092:function(ui,wn){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.browserPrefixToKey=ce,wn.browserPrefixToStyle=re,wn.default=void 0,wn.getPrefix=Ft;const bt=["Moz","Webkit","O","ms"];function Ft(){var Yt;let It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const jt=(Yt=window.document)===null||Yt===void 0||(Yt=Yt.documentElement)===null||Yt===void 0?void 0:Yt.style;if(!jt||It in jt)return"";for(let Xt=0;Xt<bt.length;Xt++)if(ce(It,bt[Xt])in jt)return bt[Xt];return""}function ce(Yt,It){return It?"".concat(It).concat(Be(Yt)):Yt}function re(Yt,It){return It?"-".concat(It.toLowerCase(),"-").concat(Yt):Yt}function Be(Yt){let It="",jt=!0;for(let Xt=0;Xt<Yt.length;Xt++)jt?(It+=Yt[Xt].toUpperCase(),jt=!1):Yt[Xt]==="-"?jt=!0:It+=Yt[Xt];return It}var ee=wn.default=Ft()},94187:function(ui,wn){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=bt;function bt(){}},60976:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.canDragX=ee,wn.canDragY=Yt,wn.createCoreData=jt,wn.createDraggableData=Xt,wn.getBoundPosition=re,wn.getControlPosition=It,wn.snapToGrid=Be;var Ft=bt(36641),ce=bt(13957);function re(zt,Jt,Ct){if(!zt.props.bounds)return[Jt,Ct];let{bounds:et}=zt.props;et=typeof et=="string"?et:Pt(et);const tt=oe(zt);if(typeof et=="string"){const{ownerDocument:lt}=tt,rt=lt.defaultView;let ut;if(et==="parent"?ut=tt.parentNode:ut=lt.querySelector(et),!(ut instanceof rt.HTMLElement))throw new Error('Bounds selector "'+et+'" could not find an element.');const ct=ut,wt=rt.getComputedStyle(tt),Mt=rt.getComputedStyle(ct);et={left:-tt.offsetLeft+(0,Ft.int)(Mt.paddingLeft)+(0,Ft.int)(wt.marginLeft),top:-tt.offsetTop+(0,Ft.int)(Mt.paddingTop)+(0,Ft.int)(wt.marginTop),right:(0,ce.innerWidth)(ct)-(0,ce.outerWidth)(tt)-tt.offsetLeft+(0,Ft.int)(Mt.paddingRight)-(0,Ft.int)(wt.marginRight),bottom:(0,ce.innerHeight)(ct)-(0,ce.outerHeight)(tt)-tt.offsetTop+(0,Ft.int)(Mt.paddingBottom)-(0,Ft.int)(wt.marginBottom)}}return(0,Ft.isNum)(et.right)&&(Jt=Math.min(Jt,et.right)),(0,Ft.isNum)(et.bottom)&&(Ct=Math.min(Ct,et.bottom)),(0,Ft.isNum)(et.left)&&(Jt=Math.max(Jt,et.left)),(0,Ft.isNum)(et.top)&&(Ct=Math.max(Ct,et.top)),[Jt,Ct]}function Be(zt,Jt,Ct){const et=Math.round(Jt/zt[0])*zt[0],tt=Math.round(Ct/zt[1])*zt[1];return[et,tt]}function ee(zt){return zt.props.axis==="both"||zt.props.axis==="x"}function Yt(zt){return zt.props.axis==="both"||zt.props.axis==="y"}function It(zt,Jt,Ct){const et=typeof Jt=="number"?(0,ce.getTouch)(zt,Jt):null;if(typeof Jt=="number"&&!et)return null;const tt=oe(Ct),lt=Ct.props.offsetParent||tt.offsetParent||tt.ownerDocument.body;return(0,ce.offsetXYFromParent)(et||zt,lt,Ct.props.scale)}function jt(zt,Jt,Ct){const et=!(0,Ft.isNum)(zt.lastX),tt=oe(zt);return et?{node:tt,deltaX:0,deltaY:0,lastX:Jt,lastY:Ct,x:Jt,y:Ct}:{node:tt,deltaX:Jt-zt.lastX,deltaY:Ct-zt.lastY,lastX:zt.lastX,lastY:zt.lastY,x:Jt,y:Ct}}function Xt(zt,Jt){const Ct=zt.props.scale;return{node:Jt.node,x:zt.state.x+Jt.deltaX/Ct,y:zt.state.y+Jt.deltaY/Ct,deltaX:Jt.deltaX/Ct,deltaY:Jt.deltaY/Ct,lastX:zt.state.x,lastY:zt.state.y}}function Pt(zt){return{left:zt.left,top:zt.top,right:zt.right,bottom:zt.bottom}}function oe(zt){const Jt=zt.findDOMNode();if(!Jt)throw new Error("<DraggableCore>: Unmounted during event!");return Jt}},36641:function(ui,wn){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.dontSetMe=Be,wn.findInArray=bt,wn.int=re,wn.isFunction=Ft,wn.isNum=ce;function bt(ee,Yt){for(let It=0,jt=ee.length;It<jt;It++)if(Yt.apply(Yt,[ee[It],It,ee]))return ee[It]}function Ft(ee){return typeof ee=="function"||Object.prototype.toString.call(ee)==="[object Function]"}function ce(ee){return typeof ee=="number"&&!isNaN(ee)}function re(ee){return parseInt(ee,10)}function Be(ee,Yt,It){if(ee[Yt])return new Error("Invalid prop ".concat(Yt," passed to ").concat(It," - do not set this, set it on the child."))}},27774:function(ui,wn){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.SizeSensorId=wn.SensorTabIndex=wn.SensorClassName=void 0;var bt="size-sensor-id";wn.SizeSensorId=bt;var Ft="size-sensor-object";wn.SensorClassName=Ft;var ce="-1";wn.SensorTabIndex=ce},79301:function(ui,wn){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var bt=function(ce){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,Be=null;return function(){for(var ee=this,Yt=arguments.length,It=new Array(Yt),jt=0;jt<Yt;jt++)It[jt]=arguments[jt];clearTimeout(Be),Be=setTimeout(function(){ce.apply(ee,It)},re)}};wn.default=bt},79789:function(ui,wn){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var bt=1,Ft=function(){return"".concat(bt++)};wn.default=Ft},47242:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.ver=wn.clear=wn.bind=void 0;var Ft=bt(95270),ce=function(Yt,It){var jt=(0,Ft.getSensor)(Yt);return jt.bind(It),function(){jt.unbind(It)}};wn.bind=ce;var re=function(Yt){var It=(0,Ft.getSensor)(Yt);(0,Ft.removeSensor)(It)};wn.clear=re;var Be="1.0.2";wn.ver=Be},95270:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.removeSensor=wn.getSensor=wn.Sensors=void 0;var Ft=Be(bt(79789)),ce=bt(57829),re=bt(27774);function Be(Xt){return Xt&&Xt.__esModule?Xt:{default:Xt}}var ee={};wn.Sensors=ee;function Yt(Xt){Xt&&ee[Xt]&&delete ee[Xt]}var It=function(Pt){var oe=Pt.getAttribute(re.SizeSensorId);if(oe&&ee[oe])return ee[oe];var zt=(0,Ft.default)();Pt.setAttribute(re.SizeSensorId,zt);var Jt=(0,ce.createSensor)(Pt,function(){return Yt(zt)});return ee[zt]=Jt,Jt};wn.getSensor=It;var jt=function(Pt){var oe=Pt.element.getAttribute(re.SizeSensorId);Pt.destroy(),Yt(oe)};wn.removeSensor=jt},57829:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.createSensor=void 0;var Ft=bt(20953),ce=bt(55202),re=typeof ResizeObserver!="undefined"?ce.createSensor:Ft.createSensor;wn.createSensor=re},20953:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.createSensor=void 0;var Ft=re(bt(79301)),ce=bt(27774);function re(ee){return ee&&ee.__esModule?ee:{default:ee}}var Be=function(Yt,It){var jt=void 0,Xt=[],Pt=function(){getComputedStyle(Yt).position==="static"&&(Yt.style.position="relative");var tt=document.createElement("object");return tt.onload=function(){tt.contentDocument.defaultView.addEventListener("resize",oe),oe()},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",ce.SensorClassName),tt.setAttribute("tabindex",ce.SensorTabIndex),tt.type="text/html",Yt.appendChild(tt),tt.data="about:blank",tt},oe=(0,Ft.default)(function(){Xt.forEach(function(et){et(Yt)})}),zt=function(tt){jt||(jt=Pt()),Xt.indexOf(tt)===-1&&Xt.push(tt)},Jt=function(){jt&&jt.parentNode&&(jt.contentDocument&&jt.contentDocument.defaultView.removeEventListener("resize",oe),jt.parentNode.removeChild(jt),Yt.removeAttribute(ce.SizeSensorId),jt=void 0,Xt=[],It&&It())},Ct=function(tt){var lt=Xt.indexOf(tt);lt!==-1&&Xt.splice(lt,1),Xt.length===0&&jt&&Jt()};return{element:Yt,bind:zt,destroy:Jt,unbind:Ct}};wn.createSensor=Be},55202:function(ui,wn,bt){"use strict";Object.defineProperty(wn,"__esModule",{value:!0}),wn.createSensor=void 0;var Ft=bt(27774),ce=re(bt(79301));function re(ee){return ee&&ee.__esModule?ee:{default:ee}}var Be=function(Yt,It){var jt=void 0,Xt=[],Pt=(0,ce.default)(function(){Xt.forEach(function(et){et(Yt)})}),oe=function(){var tt=new ResizeObserver(Pt);return tt.observe(Yt),Pt(),tt},zt=function(tt){jt||(jt=oe()),Xt.indexOf(tt)===-1&&Xt.push(tt)},Jt=function(){jt.disconnect(),Xt=[],jt=void 0,Yt.removeAttribute(Ft.SizeSensorId),It&&It()},Ct=function(tt){var lt=Xt.indexOf(tt);lt!==-1&&Xt.splice(lt,1),Xt.length===0&&jt&&Jt()};return{element:Yt,bind:zt,destroy:Jt,unbind:Ct}};wn.createSensor=Be},93314:function(ui){"use strict";ui.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(ui){"use strict";ui.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(ui){"use strict";ui.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(ui){"use strict";ui.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(ui,wn,bt){"use strict";bt.d(wn,{Z:function(){return jt}});const Ft=Xt=>typeof Xt=="object"&&Xt!=null&&Xt.nodeType===1,ce=(Xt,Pt)=>(!Pt||Xt!=="hidden")&&Xt!=="visible"&&Xt!=="clip",re=(Xt,Pt)=>{if(Xt.clientHeight<Xt.scrollHeight||Xt.clientWidth<Xt.scrollWidth){const oe=getComputedStyle(Xt,null);return ce(oe.overflowY,Pt)||ce(oe.overflowX,Pt)||(zt=>{const Jt=(Ct=>{if(!Ct.ownerDocument||!Ct.ownerDocument.defaultView)return null;try{return Ct.ownerDocument.defaultView.frameElement}catch(et){return null}})(zt);return!!Jt&&(Jt.clientHeight<zt.scrollHeight||Jt.clientWidth<zt.scrollWidth)})(Xt)}return!1},Be=(Xt,Pt,oe,zt,Jt,Ct,et,tt)=>Ct<Xt&&et>Pt||Ct>Xt&&et<Pt?0:Ct<=Xt&&tt<=oe||et>=Pt&&tt>=oe?Ct-Xt-zt:et>Pt&&tt<oe||Ct<Xt&&tt>oe?et-Pt+Jt:0,ee=Xt=>{const Pt=Xt.parentElement;return Pt==null?Xt.getRootNode().host||null:Pt},Yt=(Xt,Pt)=>{var oe,zt,Jt,Ct;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:lt,boundary:rt,skipOverflowHiddenElements:ut}=Pt,ct=typeof rt=="function"?rt:Ln=>Ln!==rt;if(!Ft(Xt))throw new TypeError("Invalid target");const wt=document.scrollingElement||document.documentElement,Mt=[];let Ot=Xt;for(;Ft(Ot)&&ct(Ot);){if(Ot=ee(Ot),Ot===wt){Mt.push(Ot);break}Ot!=null&&Ot===document.body&&re(Ot)&&!re(document.documentElement)||Ot!=null&&re(Ot,ut)&&Mt.push(Ot)}const Ht=(zt=(oe=window.visualViewport)==null?void 0:oe.width)!=null?zt:innerWidth,ne=(Ct=(Jt=window.visualViewport)==null?void 0:Jt.height)!=null?Ct:innerHeight,{scrollX:ae,scrollY:de}=window,{height:be,width:qt,top:ze,right:Vt,bottom:Ge,left:_e}=Xt.getBoundingClientRect(),{top:Ne,right:We,bottom:Re,left:ve}=(Ln=>{const Ye=window.getComputedStyle(Ln);return{top:parseFloat(Ye.scrollMarginTop)||0,right:parseFloat(Ye.scrollMarginRight)||0,bottom:parseFloat(Ye.scrollMarginBottom)||0,left:parseFloat(Ye.scrollMarginLeft)||0}})(Xt);let ie=tt==="start"||tt==="nearest"?ze-Ne:tt==="end"?Ge+Re:ze+be/2-Ne+Re,Se=lt==="center"?_e+qt/2-ve+We:lt==="end"?Vt+We:_e-ve;const Bn=[];for(let Ln=0;Ln<Mt.length;Ln++){const Ye=Mt[Ln],{height:Mn,width:Wn,top:fi,right:Hn,bottom:xi,left:nn}=Ye.getBoundingClientRect();if(et==="if-needed"&&ze>=0&&_e>=0&&Ge<=ne&&Vt<=Ht&&(Ye===wt&&!re(Ye)||ze>=fi&&Ge<=xi&&_e>=nn&&Vt<=Hn))return Bn;const Fi=getComputedStyle(Ye),ki=parseInt(Fi.borderLeftWidth,10),Nt=parseInt(Fi.borderTopWidth,10),Dt=parseInt(Fi.borderRightWidth,10),mt=parseInt(Fi.borderBottomWidth,10);let ft=0,pt=0;const At="offsetWidth"in Ye?Ye.offsetWidth-Ye.clientWidth-ki-Dt:0,ue="offsetHeight"in Ye?Ye.offsetHeight-Ye.clientHeight-Nt-mt:0,we="offsetWidth"in Ye?Ye.offsetWidth===0?0:Wn/Ye.offsetWidth:0,le="offsetHeight"in Ye?Ye.offsetHeight===0?0:Mn/Ye.offsetHeight:0;if(wt===Ye)ft=tt==="start"?ie:tt==="end"?ie-ne:tt==="nearest"?Be(de,de+ne,ne,Nt,mt,de+ie,de+ie+be,be):ie-ne/2,pt=lt==="start"?Se:lt==="center"?Se-Ht/2:lt==="end"?Se-Ht:Be(ae,ae+Ht,Ht,ki,Dt,ae+Se,ae+Se+qt,qt),ft=Math.max(0,ft+de),pt=Math.max(0,pt+ae);else{ft=tt==="start"?ie-fi-Nt:tt==="end"?ie-xi+mt+ue:tt==="nearest"?Be(fi,xi,Mn,Nt,mt+ue,ie,ie+be,be):ie-(fi+Mn/2)+ue/2,pt=lt==="start"?Se-nn-ki:lt==="center"?Se-(nn+Wn/2)+At/2:lt==="end"?Se-Hn+Dt+At:Be(nn,Hn,Wn,ki,Dt+At,Se,Se+qt,qt);const{scrollLeft:me,scrollTop:Ue}=Ye;ft=le===0?0:Math.max(0,Math.min(Ue+ft/le,Ye.scrollHeight-Mn/le+ue)),pt=we===0?0:Math.max(0,Math.min(me+pt/we,Ye.scrollWidth-Wn/we+At)),ie+=Ue-ft,Se+=me-pt}Bn.push({el:Ye,top:ft,left:pt})}return Bn},It=Xt=>Xt===!1?{block:"end",inline:"nearest"}:(Pt=>Pt===Object(Pt)&&Object.keys(Pt).length!==0)(Xt)?Xt:{block:"start",inline:"nearest"};function jt(Xt,Pt){if(!Xt.isConnected||!(Jt=>{let Ct=Jt;for(;Ct&&Ct.parentNode;){if(Ct.parentNode===document)return!0;Ct=Ct.parentNode instanceof ShadowRoot?Ct.parentNode.host:Ct.parentNode}return!1})(Xt))return;const oe=(Jt=>{const Ct=window.getComputedStyle(Jt);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(Xt);if((Jt=>typeof Jt=="object"&&typeof Jt.behavior=="function")(Pt))return Pt.behavior(Yt(Xt,Pt));const zt=typeof Pt=="boolean"||Pt==null?void 0:Pt.behavior;for(const{el:Jt,top:Ct,left:et}of Yt(Xt,It(Pt))){const tt=Ct-oe.top+oe.bottom,lt=et-oe.left+oe.right;Jt.scroll({top:tt,left:lt,behavior:zt})}}}}]);
}());